From 566ad98223f2c54867801be52327c377ae7db8ba Mon Sep 17 00:00:00 2001 From: Jairus Date: Mon, 6 Jan 2025 17:05:40 -0800 Subject: [PATCH] fix: #101 --- assembly/index.ts | 1 + assembly/test.ts | 124 +++++++++++------------------------ transform/lib/builder.js.map | 2 +- transform/lib/index.js | 122 ++++++++++++++++++++-------------- transform/lib/index.js.map | 2 +- transform/lib/linker.js.map | 2 +- transform/lib/types.js | 2 + transform/lib/types.js.map | 2 +- transform/src/builder.ts | 3 +- transform/src/index.ts | 107 ++++++++++++++++-------------- transform/src/linker.ts | 3 +- transform/src/types.ts | 4 +- 12 files changed, 182 insertions(+), 192 deletions(-) diff --git a/assembly/index.ts b/assembly/index.ts index 1d5f351..f01f98f 100644 --- a/assembly/index.ts +++ b/assembly/index.ts @@ -19,6 +19,7 @@ import { dtoa_buffered, itoa_buffered } from "util/number"; import { serializeBool } from "./serialize/simple/bool"; import { serializeInteger } from "./serialize/simple/integer"; import { serializeFloat } from "./serialize/simple/float"; +import { serializeObject } from "./serialize/simple/object"; class Nullable { } diff --git a/assembly/test.ts b/assembly/test.ts index 6de6b1d..1c80f64 100644 --- a/assembly/test.ts +++ b/assembly/test.ts @@ -1,97 +1,53 @@ -import { VecBase } from "./types"; -import { bytes } from "./util/bytes"; +import { bs } from "as-bs"; import { JSON } from "."; +@json +class ItemPluginsBasket { + @alias("catalog_id") + catalogId!: string; + @alias("catalog_item_id") + catalogItemId!: string; + @alias("outlet_id") + outletId!: string; +} @json -class Vec3 { - base: VecBase = new VecBase(); - x: i32 = 1; - @omitif((v: i32) => { - if (v == 1) return true; - return false; - }) - y: i32 = 2; - z: i32 = 3; - @inline __ALLOCATE(): void { - bs.ensureSize(1024); - } - @inline __SERIALIZE_BS(ptr: usize, staticSize: bool): void { - store(bs.offset, 9570664606466171, 0); // {"x" - store(bs.offset, 58, 8); // : - bs.offset += 10; - JSON.serialize_simple(load(ptr, offsetof("x")), staticSize); - store(bs.offset, 9570668901433388, 0); // ,"y" - store(bs.offset, 58, 8); // : - bs.offset += 10; - JSON.serialize_simple(load(ptr, offsetof("y")), staticSize); - store(bs.offset, 9570673196400684, 0); // ,"z" - store(bs.offset, 58, 8); // : - bs.offset += 10; - JSON.serialize_simple(load(ptr, offsetof("z")), staticSize); - store(bs.offset, 125, 0); // } - bs.offset += 2; - } +class ItemPlugins { + @omitnull() + basket!: ItemPluginsBasket | null; } -function strToNum(data: string): void { - console.log(data); - let srcPtr = changetype(data); - let n = bytes(data); - while (n >= 8) { - console.log(" i64: " + load(srcPtr).toString()); - n -= 8; - } - while (n >= 4) { - console.log(" i32: " + load(srcPtr).toString()); - n -= 4; - } - while (n >= 2) { - console.log(" i16: " + load(srcPtr).toString()); - n -= 16; - } - while (n >= 0) { - console.log(" i8: " + load(srcPtr).toString()); - n -= 1; - } +@json +class Item { + id!: string; + @omitnull() + plugins!: ItemPlugins | null; +} + +@json +class Vec3 { + vxyz: i8 = 1; + y: i8 = 2; + z: i8 = 3; } -console.log(load(changetype("{}")).toString()) -strToNum(',"z":') const vec: Vec3 = { - base: { - base: 9 - }, - x: 1, + vxyz: 1, y: 2, z: 3 } -bs.ensureSize(1024); -// vec.__SERIALIZE_BS(changetype(vec), true); -let out = __new(bs.offset - bs.buffer, idof()) -const serialized = bs.shrinkTo(); -console.log("Serialized: " + JSON.stringify(vec)); - -bench("Serialize Object (New)", () => { - vec.__SERIALIZE_BS(changetype(vec), true); - bs.out(); -}); - -// __reset() - -// bench("Serialize Object (Old)", () => { -// vec.__SERIALIZE(changetype(vec)); -// }); - +const item: Item = { + id: "1", + plugins: { + basket: { + catalogId: "1", + catalogItemId: "2", + outletId: "3" + } + } +}; -function bench(desc: string, routine: () => void): void { - const start = Date.now(); - const totalOps = 20_000_000; - let ops = totalOps; - while (--ops) routine(); - const elapsed = Date.now() - start; - const opsPerSecond = Math.round(f64(totalOps) / (f64(elapsed) / 1000.0)) - console.log(desc + ": " + elapsed.toString() + "ms @ " + opsPerSecond.toString() + "ops/s"); -} -// const deserialized = JSON.parse(serialized); -// console.log("Deserialized: " + JSON.stringify(deserialized)); +bs.ensureSize(2048); +console.log(JSON.stringify(vec)); +bs.ensureSize(2048); +console.log(JSON.stringify(item)); \ No newline at end of file diff --git a/transform/lib/builder.js.map b/transform/lib/builder.js.map index fc95133..a7fbfd0 100644 --- a/transform/lib/builder.js.map +++ b/transform/lib/builder.js.map @@ -1 +1 @@ -{"version":3,"file":"builder.js","sourceRoot":"","sources":["../src/builder.ts"],"names":[],"mappings":"AAGA,OAAO,EAA0vC,aAAa,EAAE,qBAAqB,EAAiE,IAAI,EAAmB,MAAM,uCAAuC,CAAC;AAC36C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAGvC,SAAS,MAAM,CAAI,QAAW,EAAE,UAAkB,iBAAiB;IACjE,IAAI,CAAC,QAAQ;QAAE,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC;IACxC,OAAO,QAAQ,CAAC;AAClB,CAAC;AAGD,MAAM,OAAO,UAAW,SAAQ,OAAO;IAErC,MAAM,CAAC,KAAK,CAAC,IAAU;QACrB,IAAI,OAAO,GAAG,IAAI,UAAU,EAAE,CAAC;QAC/B,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;QACxB,OAAO,OAAO,CAAC,MAAM,EAAE,CAAC;IAC1B,CAAC;IAEO,EAAE,GAAa,EAAE,CAAC;IAClB,WAAW,GAAW,CAAC,CAAC;IAChC,SAAS,CAAC,IAAU;QAClB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;IAED,WAAW,CAAC,MAAc;QACxB,IAAI,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;QACnC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,UAAU,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC;YAClD,IAAI,CAAC,qBAAqB,CAAC,UAAU,CAAC,CAAC,CA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;IAED,wBAAwB,CAAC,IAA0B;QACjD,IAAI,EAAE,GAAG,IAAI,CAAC,EAAE,CAAC;QACjB,IAAI,IAAI,CAAC,EAAE,KAAoB,EAAE,CAAC;YAChC,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACrB,CAAC;aAAM,IAAI,IAAI,CAAC,EAAE,KAAqB,EAAE,CAAC;YACxC,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QACtB,CAAC;aAAM,IAAI,IAAI,CAAC,EAAE,MAAuB,EAAE,CAAC;YAC1C,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QACxB,CAAC;QACD,IAAI,IAAI,CAAC,EAAE,IAAoB,EAAE,CAAC;YAChC,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACrB,CAAC;aAAM,IAAI,IAAI,CAAC,EAAE,KAAsB,EAAE,CAAC;YACzC,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACvB,CAAC;QACD,IAAI,IAAI,CAAC,EAAE,IAAsB,EAAE,CAAC;YAClC,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACvB,CAAC;IACH,CAAC;IAED,MAAM;QACJ,IAAI,GAAG,GAAG,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAC3B,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,OAAO,GAAG,CAAC;IACb,CAAC;CACF"} \ No newline at end of file diff --git a/transform/lib/index.js b/transform/lib/index.js index 6e470ec..af504ac 100644 --- a/transform/lib/index.js +++ b/transform/lib/index.js @@ -15,6 +15,7 @@ class JSONTransform extends Visitor { imports = []; jsonImport = null; bsImport = null; + newStmts = []; visitClassDeclaration(node) { if (!node.decorators?.length) return; @@ -79,6 +80,8 @@ class JSONTransform extends Visitor { mem.type = type; mem.value = value; mem.node = member; + mem.byteSize = sizeof(mem.type); + this.schema.byteSize += mem.byteSize; if (type.includes("JSON.Raw")) mem.flags.set(PropertyFlags.Raw, null); if (member.decorators) { @@ -96,11 +99,6 @@ class JSONTransform extends Visitor { const arg = decorator.args[0]; if (!decorator.args?.length) throwError("@omitif must have an argument or callback that resolves to type bool", member.range); - if (arg.kind == 14) { - const fn = arg; - const returnType = fn.declaration.signature.returnType; - console.log("returnType: " + toString(fn)); - } mem.flags.set(PropertyFlags.OmitIf, arg); this.schema.static = false; break; @@ -123,58 +121,70 @@ class JSONTransform extends Visitor { } if (!this.schema.static) this.schema.members = sortMembers(this.schema.members); - let SERIALIZE_RAW = "@inline __SERIALIZE(ptr: usize = changetype(this)): string \n let out = `{"; - let SERIALIZE_BS = "@inline __SERIALIZE_BS(ptr: usize, staticSize: bool): void {\n"; + let SERIALIZE_RAW = "__SERIALIZE(ptr: usize = changetype(this)): string \n let out = `{"; + let SERIALIZE_BS = "__SERIALIZE_BS(ptr: usize, staticSize: bool): void {\n"; let INITIALIZE = "@inline __INITIALIZE(): this {\n"; - let DESERIALIZE = "@inline __DESERIALIZE(data: string, key_start: i32, key_end: i32, value_start: i32, value_end: i32): boolean {\n const len = key_end - key_start;\n"; + let DESERIALIZE = "__DESERIALIZE(data: string, key_start: i32, key_end: i32, value_start: i32, value_end: i32): boolean {\n const len = key_end - key_start;\n"; + let ALLOCATE = "@inline __ALLOCATE(): void {\n"; indent = " "; if (this.schema.static == false) { if (this.schema.members.some(v => v.flags.has(PropertyFlags.OmitNull))) { SERIALIZE_BS += indent + "let block: usize = 0;\n"; } + this.schema.byteSize += 2; SERIALIZE_BS += indent + "store(bs.offset, 123, 0); // {\n"; SERIALIZE_BS += indent + "bs.offset += 2;\n"; } let isPure = this.schema.static; let isRegular = isPure; let isFirst = true; - console.log(this.schema.static); for (let i = 0; i < this.schema.members.length; i++) { const member = this.schema.members[i]; + const aliasName = JSON.stringify(member.alias || member.name); + const realName = member.name; const isLast = i == this.schema.members.length - 1; if (!isRegular && !member.flags.has(PropertyFlags.OmitIf) && !member.flags.has(PropertyFlags.OmitNull)) isRegular = true; if (isRegular && isPure) { - SERIALIZE_BS += strToStores((isFirst ? "{" : ",") + JSON.stringify(member.name) + ":").map(v => indent + v + "\n").join(""); - SERIALIZE_BS += indent + `JSON.serialize_simple<${member.type}>(load<${member.type}>(ptr, offsetof("${member.name}")), staticSize);\n`; + const keyPart = (isFirst ? "{" : ",") + aliasName + ":"; + this.schema.byteSize += keyPart.length << 1; + SERIALIZE_BS += strToStores(keyPart).map(v => indent + v + "\n").join(""); + SERIALIZE_BS += indent + `JSON.serialize_simple<${member.type}>(load<${member.type}>(ptr, offsetof("${realName}")), ${isPrimitive(member.type)});\n`; if (isFirst) isFirst = false; } else if (isRegular && !isPure) { - SERIALIZE_BS += strToStores((isFirst ? "" : ",") + JSON.stringify(member.name) + ":").map(v => indent + v + "\n").join(""); - SERIALIZE_BS += indent + `JSON.serialize_simple<${member.type}>(load<${member.type}>(ptr, offsetof("${member.name}")), staticSize);\n`; + const keyPart = (isFirst ? "" : ",") + aliasName + ":"; + this.schema.byteSize += keyPart.length << 1; + SERIALIZE_BS += strToStores(keyPart).map(v => indent + v + "\n").join(""); + SERIALIZE_BS += indent + `JSON.serialize_simple<${member.type}>(load<${member.type}>(ptr, offsetof("${realName}")), staticSize);\n`; if (isFirst) isFirst = false; } else { if (member.flags.has(PropertyFlags.OmitNull)) { - SERIALIZE_BS += indent + `if ((block = load(ptr, offsetof("${member.name}"))) !== 0) {\n`; + SERIALIZE_BS += indent + `if ((block = load(ptr, offsetof("${realName}"))) !== 0) {\n`; indentInc(); - SERIALIZE_BS += strToStores(JSON.stringify(member.name) + ":").map(v => indent + v + "\n").join(""); - SERIALIZE_BS += indent + `JSON.serialize_simple<${member.type}>(load<${member.type}>(ptr, offsetof("${member.name}")), staticSize);\n`; + const keyPart = aliasName + ":"; + this.schema.byteSize += keyPart.length << 1; + SERIALIZE_BS += strToStores(keyPart).map(v => indent + v + "\n").join(""); + SERIALIZE_BS += indent + `JSON.serialize_simple<${member.type}>(load<${member.type}>(ptr, offsetof("${realName}")), staticSize);\n`; if (!isLast) { + this.schema.byteSize += 2; SERIALIZE_BS += indent + `store(bs.offset, 44, 0); // ,\n`; SERIALIZE_BS += indent + `bs.offset += 2;\n`; } indentDec(); + this.schema.byteSize += 2; SERIALIZE_BS += indent + `}\n`; } - else if (member.flags.has(PropertyFlags.OmitIf) && member.flags.get(PropertyFlags.OmitIf)) { - SERIALIZE_BS += indent + `if ((block = load(ptr, offsetof("${member.name}"))) !== 0) {\n`; + else if (member.flags.has(PropertyFlags.OmitIf)) { + SERIALIZE_BS += indent + `if (${toString}) !== 0) {\n`; indentInc(); - SERIALIZE_BS += strToStores(JSON.stringify(member.name) + ":").map(v => indent + v + "\n").join(""); - SERIALIZE_BS += indent + `JSON.serialize_simple<${member.type}>(load<${member.type}>(ptr, offsetof("${member.name}")), staticSize);\n`; + SERIALIZE_BS += strToStores(aliasName + ":").map(v => indent + v + "\n").join(""); + SERIALIZE_BS += indent + `JSON.serialize_simple<${member.type}>(load<${member.type}>(ptr, offsetof("${realName}")), staticSize);\n`; if (!isLast) { + this.schema.byteSize += 2; SERIALIZE_BS += indent + `store(bs.offset, 44, 0); // ,\n`; SERIALIZE_BS += indent + `bs.offset += 2;\n`; } @@ -183,15 +193,24 @@ class JSONTransform extends Visitor { } } } + this.schema.byteSize += 2; SERIALIZE_BS += indent + "store(bs.offset, 125, 0); // }\n"; SERIALIZE_BS += indent + "bs.offset += 2;\n"; SERIALIZE_BS += "}"; + indentDec(); + indentInc(); + ALLOCATE += indent + "bs.ensureSize(" + this.schema.byteSize + ");\n"; + ALLOCATE += "}"; if (process.env["JSON_DEBUG"]) { console.log(SERIALIZE_BS); + console.log(ALLOCATE); } const SERIALIZE_BS_METHOD = SimpleParser.parseClassMember(SERIALIZE_BS, node); + const ALLOCATE_METHOD = SimpleParser.parseClassMember(ALLOCATE, node); if (!node.members.find((v) => v.name.text == "__SERIALIZE_BS")) node.members.push(SERIALIZE_BS_METHOD); + if (!node.members.find((v) => v.name.text == "__ALLOCATE")) + node.members.push(ALLOCATE_METHOD); super.visitClassDeclaration(node); } generateEmptyMethods(node) { @@ -199,16 +218,19 @@ class JSONTransform extends Visitor { let SERIALIZE_BS_EMPTY = "@inline __SERIALIZE_BS(ptr: usize, staticSize: bool): void {\n store(bs.offset, 8192123);\n bs.offset += 4;\n}"; let INITIALIZE_EMPTY = "@inline __INITIALIZE(): this {\n return this;\n}"; let DESERIALIZE_EMPTY = "@inline __DESERIALIZE(data: string, key_start: i32, key_end: i32, value_start: i32, value_end: i32): boolean {\n return false;\n}"; + let ALLOCATE_EMPTY = "@inline __ALLOCATE(): void {\n bs.ensureSize(4);\n}"; if (process.env["JSON_DEBUG"]) { console.log(SERIALIZE_RAW_EMPTY); console.log(SERIALIZE_BS_EMPTY); console.log(INITIALIZE_EMPTY); console.log(DESERIALIZE_EMPTY); + console.log(ALLOCATE_EMPTY); } const SERIALIZE_RAW_METHOD_EMPTY = SimpleParser.parseClassMember(SERIALIZE_RAW_EMPTY, node); const SERIALIZE_BS_METHOD_EMPTY = SimpleParser.parseClassMember(SERIALIZE_BS_EMPTY, node); const INITIALIZE_METHOD_EMPTY = SimpleParser.parseClassMember(INITIALIZE_EMPTY, node); const DESERIALIZE_METHOD_EMPTY = SimpleParser.parseClassMember(DESERIALIZE_EMPTY, node); + const ALLOCATE_METHOD_EMPTY = SimpleParser.parseClassMember(ALLOCATE_EMPTY, node); if (!node.members.find((v) => v.name.text == "__SERIALIZE")) node.members.push(SERIALIZE_RAW_METHOD_EMPTY); if (!node.members.find((v) => v.name.text == "__SERIALIZE_BS")) @@ -217,6 +239,8 @@ class JSONTransform extends Visitor { node.members.push(INITIALIZE_METHOD_EMPTY); if (!node.members.find((v) => v.name.text == "__DESERIALIZE")) node.members.push(DESERIALIZE_METHOD_EMPTY); + if (!node.members.find((v) => v.name.text == "__ALLOCATE")) + node.members.push(ALLOCATE_METHOD_EMPTY); } visitImportStatement(node) { super.visitImportStatement(node); @@ -315,33 +339,6 @@ function sortMembers(members) { } }); } -function charCodeAt32(data, offset) { - return (data.charCodeAt(offset + 1) << 16) | data.charCodeAt(offset); -} -function charCodeAt64(data, offset) { - if (offset + 3 >= data.length) { - throw new Error("The string must have at least 4 characters from the specified offset."); - } - const firstCharCode = BigInt(data.charCodeAt(offset)); - const secondCharCode = BigInt(data.charCodeAt(offset + 1)); - const thirdCharCode = BigInt(data.charCodeAt(offset + 2)); - const fourthCharCode = BigInt(data.charCodeAt(offset + 3)); - const u64Value = (fourthCharCode << 48n) | (thirdCharCode << 32n) | (secondCharCode << 16n) | firstCharCode; - return u64Value; -} -function encodeKey(key) { - const data = JSON.stringify(key); - return data.slice(1, data.length - 1); -} -function escapeString(data) { - return data.replace(/\\/g, "\\\\").replace(/\`/g, "\\`"); -} -function escapeSlash(data) { - return data.replace(/\\/g, "\\\\").replace(/\`/g, "\\`"); -} -function escapeQuote(data) { - return data.replace(/\"/g, '\\"'); -} function getArgs(args) { if (!args) return []; @@ -410,14 +407,14 @@ function strToNum(data, simd = false, offset = 0) { } return out; } -function strToStores(data, simd = false) { - console.log(data); +function strToStores(data, simd = true) { const out = []; const nums = strToNum(data, simd); let offset = 0; for (const [size, num] of nums) { if (size == "v128") { - out.push("store(" + num + ");"); + out.push("store(bs.offset, " + num + ", " + offset + "); // " + data.slice((offset >> 1), (offset >> 1) + 8)); + offset += 16; } if (size == "u64") { out.push("store(bs.offset, " + num + ", " + offset + "); // " + data.slice((offset >> 1), (offset >> 1) + 4)); @@ -455,4 +452,29 @@ function indentInc() { function indentDec() { indent = indent.slice(0, Math.max(0, indent.length - 2)); } +function sizeof(type) { + if (type == "u8") + return 6; + else if (type == "i8") + return 8; + else if (type == "u16") + return 10; + else if (type == "i16") + return 12; + else if (type == "u32") + return 20; + else if (type == "i32") + return 22; + else if (type == "u64") + return 40; + else if (type == "i64") + return 40; + else if (type == "bool" || type == "boolean") + return 10; + else + return 0; +} +function allPrimitive(schema) { + return !schema.members.some(p => p.byteSize == 0); +} //# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/transform/lib/index.js.map b/transform/lib/index.js.map index 4a1b246..994c9d7 100644 --- a/transform/lib/index.js.map +++ b/transform/lib/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsC,oBAAoB,EAAU,MAAM,EAAqC,uBAAuB,EAAE,wBAAwB,EAAE,sBAAsB,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAA0E,SAAS,EAA8J,MAAM,uCAAuC,CAAC;AAC/gB,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACnD,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE3D,IAAI,MAAM,GAAG,IAAI,CAAC;AAElB,MAAM,aAAc,SAAQ,OAAO;IAC1B,MAAM,CAAU;IAChB,OAAO,GAAa,EAAE,CAAC;IACvB,MAAM,CAAU;IAChB,OAAO,GAAG,IAAI,GAAG,EAAU,CAAC;IAC5B,OAAO,GAAsB,EAAE,CAAC;IAEhC,UAAU,GAAkB,IAAI,CAAC;IACjC,QAAQ,GAAkB,IAAI,CAAC;IAEtC,qBAAqB,CAAC,IAAsB;QAC1C,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,MAAM;YAAE,OAAO;QAErC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE;YACpC,MAAM,IAAI,GAA0B,SAAS,CAAC,IAAK,CAAC,I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M,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,QAAQ,EAAE,IAAI,CAAC;IAC/H,MAAM,GAAG,CAAC;AACZ,CAAC;AAED,SAAS,SAAS;IAChB,MAAM,IAAI,IAAI,CAAC;AACjB,CAAC;AAED,SAAS,SAAS;IAChB,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC;AAC3D,CAAC;AAED,SAAS,MAAM,CAAC,IAAY;IAC1B,IAAI,IAAI,IAAI,IAAI;QAAE,OAAO,CAAC,CAAC;SACtB,IAAI,IAAI,IAAI,IAAI;QAAE,OAAO,CAAC,CAAC;SAC3B,IAAI,IAAI,IAAI,KAAK;QAAE,OAAO,EAAE,CAAC;SAC7B,IAAI,IAAI,IAAI,KAAK;QAAE,OAAO,EAAE,CAAC;SAC7B,IAAI,IAAI,IAAI,KAAK;QAAE,OAAO,EAAE,CAAC;SAC7B,IAAI,IAAI,IAAI,KAAK;QAAE,OAAO,EAAE,CAAC;SAC7B,IAAI,IAAI,IAAI,KAAK;QAAE,OAAO,EAAE,CAAC;SAC7B,IAAI,IAAI,IAAI,KAAK;QAAE,OAAO,EAAE,CAAC;SAC7B,IAAI,IAAI,IAAI,MAAM,IAAI,IAAI,IAAI,SAAS;QAAE,OAAO,EAAE,CAAC;;QACnD,OAAO,CAAC,CAAC;AAChB,CAAC;AAED,SAAS,YAAY,CAAC,MAAc;IAClC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,CAAC;AACpD,CAAC"} \ No newline at end of file diff --git a/transform/lib/linker.js.map b/transform/lib/linker.js.map index 8f14731..fb66545 100644 --- a/transform/lib/linker.js.map +++ b/transform/lib/linker.js.map @@ -1 +1 @@ -{"version":3,"file":"linker.js","sourceRoot":"","sources":["../src/linker.ts"],"names":[],"mappings":"AAGA,MAAM,UAAU,UAAU,CAAC,MAAc;IACrC,OAAO,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,OAAoB,CAAsB,CAAC;AAC1F,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,IAAY,EAAE,MAAc,EAAE,MAAc;IACzE,KAAK,MAAM,IAAI,IAAI,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC;QACtC,MAAM,cAAc,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,YAAY,KAAK,IAAI,CAAC,YAAY,CAAC,CAAC;QAC1F,IAAI,CAAC,cAAc;YAAE,SAAS;QAE9B,MAAM,gBAAgB,GAAG,cAAc,CAAC,UAAU,CAAC,IAAI,CACrD,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,OAA8B,IAAuB,CAAE,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAC3D,CAAC;QAE7B,IAAI,gBAAgB;YAAE,OAAO,gBAAgB,CAAC;IAChD,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAGH,MAAM,UAAU,UAAU,CAAC,MAAc;IACrC,OAAO,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,OAA8B,CAAuB,CAAC;AACrG,CAAC"} \ No newline at end of file +{"version":3,"file":"linker.js","sourceRoot":"","sources":["../src/linker.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,UAAU,CAAC,MAAc;IACrC,OAAO,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,OAAoB,CAAsB,CAAC;AAC1F,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,IAAY,EAAE,MAAc,EAAE,MAAc;IACzE,KAAK,MAAM,IAAI,IAAI,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC;QACtC,MAAM,cAAc,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,YAAY,KAAK,IAAI,CAAC,YAAY,CAAC,CAAC;QAC1F,IAAI,CAAC,cAAc;YAAE,SAAS;QAE9B,MAAM,gBAAgB,GAAG,cAAc,CAAC,UAAU,CAAC,IAAI,CACrD,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,OAA8B,IAAuB,CAAE,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAC3D,CAAC;QAE7B,IAAI,gBAAgB;YAAE,OAAO,gBAAgB,CAAC;IAChD,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAGH,MAAM,UAAU,UAAU,CAAC,MAAc;IACrC,OAAO,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,OAA8B,CAAuB,CAAC;AACrG,CAAC"} \ No newline at end of file diff --git a/transform/lib/types.js b/transform/lib/types.js index 657d31a..a577c46 100644 --- a/transform/lib/types.js +++ b/transform/lib/types.js @@ -11,6 +11,7 @@ export class Property { value = null; flags = new Map(); node; + byteSize = 0; } export class Schema { static = true; @@ -19,5 +20,6 @@ export class Schema { parent = null; node; needsLink = null; + byteSize = 0; } //# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/transform/lib/types.js.map b/transform/lib/types.js.map index 6c71089..f581301 100644 --- a/transform/lib/types.js.map +++ b/transform/lib/types.js.map @@ -1 +1 @@ -{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAEA,MAAM,CAAN,IAAY,aAIX;AAJD,WAAY,aAAa;IACrB,yDAAQ,CAAA;IACR,qDAAM,CAAA;IACN,+CAAG,CAAA;AACP,CAAC,EAJW,aAAa,KAAb,aAAa,QAIxB;AAED,MAAM,OAAO,QAAQ;IACV,IAAI,GAAW,EAAE,CAAC;IAClB,KAAK,GAAkB,IAAI,CAAC;IAC5B,IAAI,GAAW,EAAE,CAAC;IAClB,KAAK,GAAkB,IAAI,CAAC;IAC5B,KAAK,GAA0C,IAAI,GAAG,EAAoC,CAAC;IAC3F,IAAI,CAAoB;CAClC;AAED,MAAM,OAAO,MAAM;IACR,MAAM,GAAY,IAAI,CAAC;IACvB,IAAI,GAAW,EAAE,CAAC;IAClB,OAAO,GAAe,EAAE,CAAC;IACzB,MAAM,GAAkB,IAAI,CAAC;IAC7B,IAAI,CAAoB;IACxB,SAAS,GAAkB,IAAI,CAAC;CAC1C"} \ No newline at end of file +{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAEA,MAAM,CAAN,IAAY,aAIX;AAJD,WAAY,aAAa;IACrB,yDAAQ,CAAA;IACR,qDAAM,CAAA;IACN,+CAAG,CAAA;AACP,CAAC,EAJW,aAAa,KAAb,aAAa,QAIxB;AAED,MAAM,OAAO,QAAQ;IACV,IAAI,GAAW,EAAE,CAAC;IAClB,KAAK,GAAkB,IAAI,CAAC;IAC5B,IAAI,GAAW,EAAE,CAAC;IAClB,KAAK,GAAkB,IAAI,CAAC;IAC5B,KAAK,GAA0C,IAAI,GAAG,EAAoC,CAAC;IAC3F,IAAI,CAAoB;IACxB,QAAQ,GAAW,CAAC,CAAC;CAC/B;AAED,MAAM,OAAO,MAAM;IACR,MAAM,GAAY,IAAI,CAAC;IACvB,IAAI,GAAW,EAAE,CAAC;IAClB,OAAO,GAAe,EAAE,CAAC;IACzB,MAAM,GAAkB,IAAI,CAAC;IAC7B,IAAI,CAAoB;IACxB,SAAS,GAAkB,IAAI,CAAC;IAChC,QAAQ,GAAW,CAAC,CAAC;CAC/B"} \ No newline at end of file diff --git a/transform/src/builder.ts b/transform/src/builder.ts index e5192e2..ab58e8f 100644 --- a/transform/src/builder.ts +++ b/transform/src/builder.ts @@ -1,9 +1,8 @@ // Taken from https://github.com/as-pect/visitor-as/blob/master/src/astBuilder.ts // tslint:disable: as-internal-case -import { CommonFlags, TypeNode, Node, NodeKind, Source, NamedTypeNode, FunctionTypeNode, TypeParameterNode, IdentifierExpression, CallExpression, ClassExpression, ElementAccessExpression, FunctionExpression, InstanceOfExpression, LiteralExpression, NewExpression, ParenthesizedExpression, PropertyAccessExpression, TernaryExpression, UnaryPostfixExpression, UnaryPrefixExpression, BlockStatement, BreakStatement, ContinueStatement, DoStatement, EmptyStatement, ExportStatement, ExportDefaultStatement, ExportImportStatement, ExpressionStatement, ForStatement, IfStatement, ImportStatement, ReturnStatement, SwitchStatement, ThrowStatement, TryStatement, VariableStatement, WhileStatement, ClassDeclaration, EnumDeclaration, EnumValueDeclaration, FieldDeclaration, FunctionDeclaration, ImportDeclaration, InterfaceDeclaration, MethodDeclaration, NamespaceDeclaration, TypeDeclaration, VariableDeclaration, DecoratorNode, ExportMember, ParameterNode, SwitchCase, TypeName, ArrayLiteralExpression, Expression, ObjectLiteralExpression, AssertionKind, LiteralKind, FloatLiteralExpression, StringLiteralExpression, RegexpLiteralExpression, UnaryExpression, ArrowKind, ParameterKind, DeclarationStatement, AssertionExpression, BinaryExpression, CommaExpression, IntegerLiteralExpression, isTypeOmitted, operatorTokenToString, ForOfStatement, IndexSignatureNode, TemplateLiteralExpression, util, FalseExpression } from "assemblyscript/dist/assemblyscript.js"; +import { CommonFlags, TypeNode, Node, NodeKind, Source, NamedTypeNode, FunctionTypeNode, TypeParameterNode, IdentifierExpression, CallExpression, ClassExpression, ElementAccessExpression, FunctionExpression, InstanceOfExpression, LiteralExpression, NewExpression, ParenthesizedExpression, PropertyAccessExpression, TernaryExpression, UnaryPostfixExpression, UnaryPrefixExpression, BlockStatement, BreakStatement, ContinueStatement, DoStatement, EmptyStatement, ExportStatement, ExportDefaultStatement, ExportImportStatement, ExpressionStatement, ForStatement, IfStatement, ImportStatement, ReturnStatement, SwitchStatement, ThrowStatement, TryStatement, VariableStatement, WhileStatement, ClassDeclaration, EnumDeclaration, EnumValueDeclaration, FieldDeclaration, FunctionDeclaration, ImportDeclaration, InterfaceDeclaration, MethodDeclaration, NamespaceDeclaration, TypeDeclaration, VariableDeclaration, DecoratorNode, ExportMember, ParameterNode, SwitchCase, TypeName, ArrayLiteralExpression, Expression, ObjectLiteralExpression, AssertionKind, LiteralKind, FloatLiteralExpression, StringLiteralExpression, RegexpLiteralExpression, UnaryExpression, ArrowKind, ParameterKind, DeclarationStatement, AssertionExpression, BinaryExpression, CommaExpression, IntegerLiteralExpression, isTypeOmitted, operatorTokenToString, ForOfStatement, IndexSignatureNode, TemplateLiteralExpression, util, FalseExpression, NullExpression, TrueExpression } from "assemblyscript/dist/assemblyscript.js"; import { Visitor } from "./visitor.js"; -import { NullExpression, TrueExpression } from "types:assemblyscript/src/ast"; function assert(isTruish: T, message: string = "assertion error"): T { if (!isTruish) throw new Error(message); diff --git a/transform/src/index.ts b/transform/src/index.ts index b2d231f..7bc4321 100644 --- a/transform/src/index.ts +++ b/transform/src/index.ts @@ -18,6 +18,7 @@ class JSONTransform extends Visitor { public jsonImport: string | null = null; public bsImport: string | null = null; + public newStmts: Statement[] = []; visitClassDeclaration(node: ClassDeclaration): void { if (!node.decorators?.length) return; @@ -30,7 +31,7 @@ class JSONTransform extends Visitor { this.schema = new Schema(); this.schema.node = node; this.schema.name = node.name.text; - + this.schemas.push(this.schema); console.log("Created schema: " + this.schema.name); @@ -94,6 +95,9 @@ class JSONTransform extends Visitor { mem.type = type; mem.value = value; mem.node = member; + mem.byteSize = sizeof(mem.type); + + this.schema.byteSize += mem.byteSize; if (type.includes("JSON.Raw")) mem.flags.set(PropertyFlags.Raw, null); @@ -127,15 +131,17 @@ class JSONTransform extends Visitor { } } } + this.schema.members.push(mem); } if (!this.schema.static) this.schema.members = sortMembers(this.schema.members); - let SERIALIZE_RAW = "@inline __SERIALIZE(ptr: usize = changetype(this)): string \n let out = `{"; - let SERIALIZE_BS = "@inline __SERIALIZE_BS(ptr: usize, staticSize: bool): void {\n"; + let SERIALIZE_RAW = "__SERIALIZE(ptr: usize = changetype(this)): string \n let out = `{"; + let SERIALIZE_BS = "__SERIALIZE_BS(ptr: usize, staticSize: bool): void {\n"; let INITIALIZE = "@inline __INITIALIZE(): this {\n"; - let DESERIALIZE = "@inline __DESERIALIZE(data: string, key_start: i32, key_end: i32, value_start: i32, value_end: i32): boolean {\n const len = key_end - key_start;\n"; + let DESERIALIZE = "__DESERIALIZE(data: string, key_start: i32, key_end: i32, value_start: i32, value_end: i32): boolean {\n const len = key_end - key_start;\n"; + let ALLOCATE = "@inline __ALLOCATE(): void {\n"; indent = " "; @@ -143,6 +149,7 @@ class JSONTransform extends Visitor { if (this.schema.members.some(v => v.flags.has(PropertyFlags.OmitNull))) { SERIALIZE_BS += indent + "let block: usize = 0;\n"; } + this.schema.byteSize += 2; SERIALIZE_BS += indent + "store(bs.offset, 123, 0); // {\n"; SERIALIZE_BS += indent + "bs.offset += 2;\n"; } @@ -151,8 +158,6 @@ class JSONTransform extends Visitor { let isRegular = isPure; let isFirst = true; - console.log(this.schema.static) - for (let i = 0; i < this.schema.members.length; i++) { const member = this.schema.members[i]; const aliasName = JSON.stringify(member.alias || member.name); @@ -161,26 +166,34 @@ class JSONTransform extends Visitor { if (!isRegular && !member.flags.has(PropertyFlags.OmitIf) && !member.flags.has(PropertyFlags.OmitNull)) isRegular = true; if (isRegular && isPure) { - SERIALIZE_BS += strToStores((isFirst ? "{" : ",") + aliasName + ":").map(v => indent + v + "\n").join(""); - SERIALIZE_BS += indent + `JSON.serialize_simple<${member.type}>(load<${member.type}>(ptr, offsetof("${realName}")), staticSize);\n`; + const keyPart = (isFirst ? "{" : ",") + aliasName + ":"; + this.schema.byteSize += keyPart.length << 1; + SERIALIZE_BS += strToStores(keyPart).map(v => indent + v + "\n").join(""); + SERIALIZE_BS += indent + `JSON.serialize_simple<${member.type}>(load<${member.type}>(ptr, offsetof("${realName}")), ${isPrimitive(member.type)});\n`; if (isFirst) isFirst = false; } else if (isRegular && !isPure) { - SERIALIZE_BS += strToStores((isFirst ? "" : ",") + aliasName + ":").map(v => indent + v + "\n").join(""); + const keyPart = (isFirst ? "" : ",") + aliasName + ":"; + this.schema.byteSize += keyPart.length << 1; + SERIALIZE_BS += strToStores(keyPart).map(v => indent + v + "\n").join(""); SERIALIZE_BS += indent + `JSON.serialize_simple<${member.type}>(load<${member.type}>(ptr, offsetof("${realName}")), staticSize);\n`; if (isFirst) isFirst = false; } else { if (member.flags.has(PropertyFlags.OmitNull)) { SERIALIZE_BS += indent + `if ((block = load(ptr, offsetof("${realName}"))) !== 0) {\n`; indentInc(); - SERIALIZE_BS += strToStores(aliasName + ":").map(v => indent + v + "\n").join(""); + const keyPart = aliasName + ":"; + this.schema.byteSize += keyPart.length << 1; + SERIALIZE_BS += strToStores(keyPart).map(v => indent + v + "\n").join(""); SERIALIZE_BS += indent + `JSON.serialize_simple<${member.type}>(load<${member.type}>(ptr, offsetof("${realName}")), staticSize);\n`; if (!isLast) { + this.schema.byteSize += 2; SERIALIZE_BS += indent + `store(bs.offset, 44, 0); // ,\n`; SERIALIZE_BS += indent + `bs.offset += 2;\n`; } indentDec(); + this.schema.byteSize += 2; SERIALIZE_BS += indent + `}\n`; } else if (member.flags.has(PropertyFlags.OmitIf)) { SERIALIZE_BS += indent + `if (${toString}) !== 0) {\n`; @@ -189,6 +202,7 @@ class JSONTransform extends Visitor { SERIALIZE_BS += indent + `JSON.serialize_simple<${member.type}>(load<${member.type}>(ptr, offsetof("${realName}")), staticSize);\n`; if (!isLast) { + this.schema.byteSize += 2; SERIALIZE_BS += indent + `store(bs.offset, 44, 0); // ,\n`; SERIALIZE_BS += indent + `bs.offset += 2;\n`; } @@ -199,26 +213,35 @@ class JSONTransform extends Visitor { } } + this.schema.byteSize += 2; SERIALIZE_BS += indent + "store(bs.offset, 125, 0); // }\n"; SERIALIZE_BS += indent + "bs.offset += 2;\n"; SERIALIZE_BS += "}"; + indentDec(); + + indentInc(); + ALLOCATE += indent + "bs.ensureSize(" + this.schema.byteSize + ");\n"; + ALLOCATE += "}"; if (process.env["JSON_DEBUG"]) { // console.log(SERIALIZE_RAW); console.log(SERIALIZE_BS); // console.log(INITIALIZE); // console.log(DESERIALIZE); + console.log(ALLOCATE); } // const SERIALIZE_RAW_METHOD = SimpleParser.parseClassMember(SERIALIZE_RAW, node); const SERIALIZE_BS_METHOD = SimpleParser.parseClassMember(SERIALIZE_BS, node); // const INITIALIZE_METHOD = SimpleParser.parseClassMember(INITIALIZE, node); // const DESERIALIZE_METHOD = SimpleParser.parseClassMember(DESERIALIZE, node); + const ALLOCATE_METHOD = SimpleParser.parseClassMember(ALLOCATE, node); // if (!node.members.find((v) => v.name.text == "__SERIALIZE")) node.members.push(SERIALIZE_RAW_METHOD); if (!node.members.find((v) => v.name.text == "__SERIALIZE_BS")) node.members.push(SERIALIZE_BS_METHOD); // if (!node.members.find((v) => v.name.text == "__INITIALIZE")) node.members.push(INITIALIZE_METHOD); // if (!node.members.find((v) => v.name.text == "__DESERIALIZE")) node.members.push(DESERIALIZE_METHOD); + if (!node.members.find((v) => v.name.text == "__ALLOCATE")) node.members.push(ALLOCATE_METHOD); super.visitClassDeclaration(node); } generateEmptyMethods(node: ClassDeclaration): void { @@ -226,23 +249,27 @@ class JSONTransform extends Visitor { let SERIALIZE_BS_EMPTY = "@inline __SERIALIZE_BS(ptr: usize, staticSize: bool): void {\n store(bs.offset, 8192123);\n bs.offset += 4;\n}"; let INITIALIZE_EMPTY = "@inline __INITIALIZE(): this {\n return this;\n}"; let DESERIALIZE_EMPTY = "@inline __DESERIALIZE(data: string, key_start: i32, key_end: i32, value_start: i32, value_end: i32): boolean {\n return false;\n}"; + let ALLOCATE_EMPTY = "@inline __ALLOCATE(): void {\n bs.ensureSize(4);\n}"; if (process.env["JSON_DEBUG"]) { console.log(SERIALIZE_RAW_EMPTY); console.log(SERIALIZE_BS_EMPTY); console.log(INITIALIZE_EMPTY); console.log(DESERIALIZE_EMPTY); + console.log(ALLOCATE_EMPTY); } const SERIALIZE_RAW_METHOD_EMPTY = SimpleParser.parseClassMember(SERIALIZE_RAW_EMPTY, node); const SERIALIZE_BS_METHOD_EMPTY = SimpleParser.parseClassMember(SERIALIZE_BS_EMPTY, node); const INITIALIZE_METHOD_EMPTY = SimpleParser.parseClassMember(INITIALIZE_EMPTY, node); const DESERIALIZE_METHOD_EMPTY = SimpleParser.parseClassMember(DESERIALIZE_EMPTY, node); + const ALLOCATE_METHOD_EMPTY = SimpleParser.parseClassMember(ALLOCATE_EMPTY, node); if (!node.members.find((v) => v.name.text == "__SERIALIZE")) node.members.push(SERIALIZE_RAW_METHOD_EMPTY); if (!node.members.find((v) => v.name.text == "__SERIALIZE_BS")) node.members.push(SERIALIZE_BS_METHOD_EMPTY); if (!node.members.find((v) => v.name.text == "__INITIALIZE")) node.members.push(INITIALIZE_METHOD_EMPTY); if (!node.members.find((v) => v.name.text == "__DESERIALIZE")) node.members.push(DESERIALIZE_METHOD_EMPTY); + if (!node.members.find((v) => v.name.text == "__ALLOCATE")) node.members.push(ALLOCATE_METHOD_EMPTY); } // visitCallExpression(node: CallExpression, ref: Node): void { // super.visitCallExpression(node, ref); @@ -379,42 +406,6 @@ function sortMembers(members: Property[]): Property[] { }); } -function charCodeAt32(data: string, offset: number): number { - return (data.charCodeAt(offset + 1) << 16) | data.charCodeAt(offset); -} - -function charCodeAt64(data: string, offset: number): bigint { - if (offset + 3 >= data.length) { - throw new Error("The string must have at least 4 characters from the specified offset."); - } - - const firstCharCode = BigInt(data.charCodeAt(offset)); - const secondCharCode = BigInt(data.charCodeAt(offset + 1)); - const thirdCharCode = BigInt(data.charCodeAt(offset + 2)); - const fourthCharCode = BigInt(data.charCodeAt(offset + 3)); - - const u64Value = (fourthCharCode << 48n) | (thirdCharCode << 32n) | (secondCharCode << 16n) | firstCharCode; - - return u64Value; -} - -function encodeKey(key: string): string { - const data = JSON.stringify(key); - return data.slice(1, data.length - 1); -} - -function escapeString(data: string): string { - return data.replace(/\\/g, "\\\\").replace(/\`/g, "\\`"); -} - -function escapeSlash(data: string): string { - return data.replace(/\\/g, "\\\\").replace(/\`/g, "\\`"); -} - -function escapeQuote(data: string): string { - return data.replace(/\"/g, '\\"'); -} - function getArgs(args: Expression[] | null): string[] { if (!args) return []; let out: string[] = []; @@ -488,14 +479,15 @@ function strToNum(data: string, simd: boolean = false, offset: number = 0): stri return out; } -function strToStores(data: string, simd: boolean = false): string[] { - console.log(data); +function strToStores(data: string, simd: boolean = true): string[] { + // console.log(data); const out: string[] = []; const nums = strToNum(data, simd); let offset = 0; for (const [size, num] of nums) { if (size == "v128") { - out.push("store(" + num + ");"); + out.push("store(bs.offset, " + num + ", " + offset + "); // " + data.slice((offset >> 1), (offset >> 1) + 8)); + offset += 16; } if (size == "u64") { out.push("store(bs.offset, " + num + ", " + offset + "); // " + data.slice((offset >> 1), (offset >> 1) + 4)); @@ -534,4 +526,21 @@ function indentInc(): void { function indentDec(): void { indent = indent.slice(0, Math.max(0, indent.length - 2)); +} + +function sizeof(type: string): number { + if (type == "u8") return 6; // -127 + else if (type == "i8") return 8; // 255 + else if (type == "u16") return 10; // 65536 + else if (type == "i16") return 12; // -32767 + else if (type == "u32") return 20; // 4294967295 + else if (type == "i32") return 22; // -2147483647 + else if (type == "u64") return 40; // 18446744073709551615 + else if (type == "i64") return 40; // -9223372036854775807 + else if (type == "bool" || type == "boolean") return 10; + else return 0; +} + +function allPrimitive(schema: Schema): boolean { + return !schema.members.some(p => p.byteSize == 0); } \ No newline at end of file diff --git a/transform/src/linker.ts b/transform/src/linker.ts index a55fd91..6fe1a9a 100644 --- a/transform/src/linker.ts +++ b/transform/src/linker.ts @@ -1,5 +1,4 @@ -import { Visitor } from "./visitor"; -import { ClassDeclaration, ImportStatement, NodeKind, Parser, Source } from "assemblyscript/dist/assemblyscript"; +import { ClassDeclaration, ImportStatement, NodeKind, Parser, Source } from "assemblyscript/dist/assemblyscript.js"; export function getImports(source: Source): ImportStatement[] { return source.statements.filter(v => v.kind === NodeKind.Import) as ImportStatement[]; diff --git a/transform/src/types.ts b/transform/src/types.ts index b59fe88..83ab490 100644 --- a/transform/src/types.ts +++ b/transform/src/types.ts @@ -1,4 +1,4 @@ -import { ClassDeclaration, Expression, FieldDeclaration } from "assemblyscript/dist/assemblyscript"; +import { ClassDeclaration, Expression, FieldDeclaration } from "assemblyscript/dist/assemblyscript.js"; export enum PropertyFlags { OmitNull, @@ -13,6 +13,7 @@ export class Property { public value: string | null = null; public flags: Map = new Map(); public node!: FieldDeclaration; + public byteSize: number = 0; } export class Schema { @@ -22,4 +23,5 @@ export class Schema { public parent: Schema | null = null; public node!: ClassDeclaration; public needsLink: string | null = null; + public byteSize: number = 0; } \ No newline at end of file