porffor 0.18.35 → 0.18.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,7 +7,6 @@ export const __String_prototype_${a0} = (_this: string) => {
|
|
7
7
|
let out: string = Porffor.s\`<${a1}>\`;
|
8
8
|
|
9
9
|
let outPtr: i32 = Porffor.wasm\`local.get \${out}\` + ${(2 + a1.length) * 2};
|
10
|
-
|
11
10
|
let thisPtr: i32 = Porffor.wasm\`local.get \${_this}\`;
|
12
11
|
let thisLen: i32 = _this.length;
|
13
12
|
let endPtr: i32 = thisPtr + thisLen * 2;
|
@@ -35,7 +34,6 @@ export const __ByteString_prototype_${a0} = (_this: bytestring) => {
|
|
35
34
|
let out: bytestring = Porffor.bs\`<${a1}>\`;
|
36
35
|
|
37
36
|
let outPtr: i32 = Porffor.wasm\`local.get \${out}\` + ${2 + a1.length};
|
38
|
-
|
39
37
|
let thisPtr: i32 = Porffor.wasm\`local.get \${_this}\`;
|
40
38
|
let thisLen: i32 = _this.length;
|
41
39
|
let endPtr: i32 = thisPtr + thisLen;
|
@@ -68,5 +66,76 @@ ${[...a1].map((x, i) => ` Porffor.wasm.i32.store8(outPtr, ${x.charCodeAt(0)}, 0
|
|
68
66
|
noArgs('sub', 'sub');
|
69
67
|
noArgs('sup', 'sup');
|
70
68
|
|
69
|
+
const arg = (name, s1, s2) => out += `
|
70
|
+
export const __String_prototype_${name} = (_this: string, arg: any) => {
|
71
|
+
let out: string = Porffor.s\`${`<${s1} ${s2}="`}\`;
|
72
|
+
out += arg;
|
73
|
+
|
74
|
+
let outPtr: i32 = Porffor.wasm\`local.get \${out}\` + ${(`<${s1} ${s2}="`.length + 2) * 2} + arg.length * 2;
|
75
|
+
|
76
|
+
Porffor.wasm.i32.store16(outPtr, 34, 0, 0); // "
|
77
|
+
Porffor.wasm.i32.store16(outPtr, 62, 0, 2); // >
|
78
|
+
|
79
|
+
let thisPtr: i32 = Porffor.wasm\`local.get \${_this}\`;
|
80
|
+
let thisLen: i32 = _this.length;
|
81
|
+
let endPtr: i32 = thisPtr + thisLen * 2;
|
82
|
+
|
83
|
+
while (thisPtr < endPtr) {
|
84
|
+
let chr: i32 = Porffor.wasm.i32.load16_u(thisPtr, 0, 4);
|
85
|
+
Porffor.wasm.i32.store16(outPtr, chr, 0, 4);
|
86
|
+
|
87
|
+
thisPtr += 2;
|
88
|
+
outPtr += 2;
|
89
|
+
}
|
90
|
+
|
91
|
+
Porffor.wasm.i32.store16(outPtr, 60, 0, 4); // <
|
92
|
+
Porffor.wasm.i32.store16(outPtr, 47, 0, 6); // /
|
93
|
+
|
94
|
+
${[...s1].map((x, i) => ` Porffor.wasm.i32.store16(outPtr, ${x.charCodeAt(0)}, 0, ${8 + i * 2}); // ${x}`).join('\n')}
|
95
|
+
|
96
|
+
Porffor.wasm.i32.store16(outPtr, 62, 0, ${8 + s1.length * 2}); // >
|
97
|
+
|
98
|
+
out.length = thisLen + arg.length + ${`<${s1} ${s2}="`.length + s1.length + 5};
|
99
|
+
|
100
|
+
return out;
|
101
|
+
};
|
102
|
+
export const __ByteString_prototype_${name} = (_this: bytestring, arg: any) => {
|
103
|
+
let out: string = Porffor.s\`${`<${s1} ${s2}="`}\`;
|
104
|
+
out += arg;
|
105
|
+
|
106
|
+
let outPtr: i32 = Porffor.wasm\`local.get \${out}\` + ${(`<${s1} ${s2}="`.length + 2) * 2} + arg.length * 2;
|
107
|
+
|
108
|
+
Porffor.wasm.i32.store16(outPtr, 34, 0, 0); // "
|
109
|
+
Porffor.wasm.i32.store16(outPtr, 62, 0, 2); // >
|
110
|
+
|
111
|
+
let thisPtr: i32 = Porffor.wasm\`local.get \${_this}\`;
|
112
|
+
let thisLen: i32 = _this.length;
|
113
|
+
let endPtr: i32 = thisPtr + thisLen;
|
114
|
+
|
115
|
+
while (thisPtr < endPtr) {
|
116
|
+
let chr: i32 = Porffor.wasm.i32.load8_u(thisPtr++, 0, 4);
|
117
|
+
Porffor.wasm.i32.store16(outPtr, chr, 0, 4);
|
118
|
+
|
119
|
+
outPtr += 2;
|
120
|
+
}
|
121
|
+
|
122
|
+
Porffor.wasm.i32.store16(outPtr, 60, 0, 4); // <
|
123
|
+
Porffor.wasm.i32.store16(outPtr, 47, 0, 6); // /
|
124
|
+
|
125
|
+
${[...s1].map((x, i) => ` Porffor.wasm.i32.store16(outPtr, ${x.charCodeAt(0)}, 0, ${8 + i * 2}); // ${x}`).join('\n')}
|
126
|
+
|
127
|
+
Porffor.wasm.i32.store16(outPtr, 62, 0, ${8 + s1.length * 2}); // >
|
128
|
+
|
129
|
+
out.length = thisLen + arg.length + ${`<${s1} ${s2}="`.length + s1.length + 5};
|
130
|
+
|
131
|
+
return out;
|
132
|
+
};
|
133
|
+
`;
|
134
|
+
|
135
|
+
arg('fontcolor', 'font', 'color');
|
136
|
+
arg('fontsize', 'font', 'size');
|
137
|
+
arg('anchor', 'a', 'name');
|
138
|
+
arg('link', 'a', 'href');
|
139
|
+
|
71
140
|
return out;
|
72
141
|
};
|
@@ -96,6 +96,38 @@ export const __ByteString_prototype_toLocaleUpperCase = (_this: bytestring) => _
|
|
96
96
|
export const __String_prototype_toLocaleLowerCase = (_this: string) => __String_prototype_toUpperCase(_this);
|
97
97
|
export const __ByteString_prototype_toLocaleLowerCase = (_this: bytestring) => __ByteString_prototype_toLowerCase(_this);
|
98
98
|
|
99
|
+
export const __String_prototype_codePointAt = (_this: string, index: number) => {
|
100
|
+
const len: i32 = _this.length;
|
101
|
+
|
102
|
+
index |= 0;
|
103
|
+
if (Porffor.fastOr(index < 0, index >= len)) return undefined;
|
104
|
+
|
105
|
+
index *= 2;
|
106
|
+
const c1: i32 = Porffor.wasm.i32.load16_u(Porffor.wasm`local.get ${_this}` + index, 0, 4);
|
107
|
+
if (Porffor.fastAnd(c1 >= 0xD800, c1 <= 0xDBFF)) {
|
108
|
+
// 1st char is leading surrogate, handle 2nd char
|
109
|
+
// check oob
|
110
|
+
if (index + 1 >= len) return c1;
|
111
|
+
|
112
|
+
const c2: i32 = Porffor.wasm.i32.load16_u(Porffor.wasm`local.get ${_this}` + index + 2, 0, 4);
|
113
|
+
if (Porffor.fastAnd(c2 >= 0xDC00, c2 <= 0xDFFF)) {
|
114
|
+
// 2nd char is trailing surrogate, return code point
|
115
|
+
return (c1 << 10) + c2 - 56613888;
|
116
|
+
}
|
117
|
+
}
|
118
|
+
|
119
|
+
return c1;
|
120
|
+
};
|
121
|
+
|
122
|
+
export const __ByteString_prototype_codePointAt = (_this: bytestring, index: number) => {
|
123
|
+
const len: i32 = _this.length;
|
124
|
+
|
125
|
+
index |= 0;
|
126
|
+
if (Porffor.fastOr(index < 0, index >= len)) return undefined;
|
127
|
+
|
128
|
+
// bytestrings cannot have surrogates, so just do charCodeAt
|
129
|
+
return Porffor.wasm.i32.load8_u(Porffor.wasm`local.get ${_this}` + index, 0, 4);
|
130
|
+
};
|
99
131
|
|
100
132
|
export const __String_prototype_startsWith = (_this: string, searchString: string, position: number) => {
|
101
133
|
// todo: handle bytestring searchString
|
@@ -128,6 +128,62 @@ export const BuiltinFuncs = function() {
|
|
128
128
|
locals: [127,127,127,127,127,127,127], localNames: ["_this","_this#type","out","outPtr","thisPtr","thisLen","endPtr","chr","__length_setter_tmp"],
|
129
129
|
data: [[0,[5,0,0,0,60,115,117,112,62]]],
|
130
130
|
};
|
131
|
+
this.__String_prototype_fontcolor = {
|
132
|
+
wasm: (scope, {allocPage,builtin}) => [...number(allocPage(scope, 'string: __String_prototype_fontcolor/out', 'i16') * pageSize, 127),[34,4],[32,2],[33,5],[33,8],[65,1],[64,0],[65,128,128,4],[108],[34,9],[32,8],[40,0,0],[34,7],[32,5],[40,0,0],[34,6],[106],[54,1,0],[65,194,0],[65,194,1],[70],[4,64],[32,8],[32,7],[16, builtin('__Porffor_bytestringToString')],[33,8],[11],[32,3],[65,194,1],[70],[4,64],[32,5],[32,6],[16, builtin('__Porffor_bytestringToString')],[33,5],[11],[32,9],[65,4],[106],[32,8],[65,4],[106],[65,252,255,3],[252,10,0,0],[32,9],[65,4],[106],[32,7],[65,2],[108],[106],[32,5],[65,4],[106],[32,6],[65,2],[108],[252,10,0,0],[32,9],[34,4],[65,30],[106],[32,2],[40,1,0],[65,2],[108],[106],[34,11],[65,34],[59,0,0],[32,11],[65,62],[59,0,2],[32,0],[33,12],[32,0],[40,1,0],[33,13],[32,12],[32,13],[65,2],[108],[106],[33,14],[3,64],[32,12],[32,14],[72],[4,64],[32,12],[47,0,4],[33,15],[32,11],[32,15],[59,0,4],[32,12],[65,2],[106],[33,12],[32,11],[65,2],[106],[33,11],[12,1],[11],[11],[32,11],[65,60],[59,0,4],[32,11],[65,47],[59,0,6],[32,11],[65,230,0],[59,0,8],[32,11],[65,239,0],[59,0,10],[32,11],[65,238,0],[59,0,12],[32,11],[65,244,0],[59,0,14],[32,11],[65,62],[59,0,16],[32,4],[32,13],[32,2],[40,1,0],[106],[65,22],[106],[34,16],[54,1,0],[32,4],[65,194,0],[15]],
|
133
|
+
params: [127,127,127,127], typedParams: 1,
|
134
|
+
returns: [127,127], typedReturns: 1,
|
135
|
+
locals: [127,127,127,127,127,127,127,127,127,127,127,127,127], localNames: ["_this","_this#type","arg","arg#type","out","concat_right_pointer","concat_right_length","concat_left_length","concat_left_pointer","concat_out_pointer","#last_type","outPtr","thisPtr","thisLen","endPtr","chr","__length_setter_tmp"],
|
136
|
+
data: [[0,[13,0,0,0,60,0,102,0,111,0,110,0,116,0,32,0,99,0,111,0,108,0,111,0,114,0,61,0,34,0]]],
|
137
|
+
};
|
138
|
+
this.__ByteString_prototype_fontcolor = {
|
139
|
+
wasm: (scope, {allocPage,builtin}) => [...number(allocPage(scope, 'string: __ByteString_prototype_fontcolor/out', 'i16') * pageSize, 127),[34,4],[32,2],[33,5],[33,8],[65,1],[64,0],[65,128,128,4],[108],[34,9],[32,8],[40,0,0],[34,7],[32,5],[40,0,0],[34,6],[106],[54,1,0],[65,194,0],[65,194,1],[70],[4,64],[32,8],[32,7],[16, builtin('__Porffor_bytestringToString')],[33,8],[11],[32,3],[65,194,1],[70],[4,64],[32,5],[32,6],[16, builtin('__Porffor_bytestringToString')],[33,5],[11],[32,9],[65,4],[106],[32,8],[65,4],[106],[65,252,255,3],[252,10,0,0],[32,9],[65,4],[106],[32,7],[65,2],[108],[106],[32,5],[65,4],[106],[32,6],[65,2],[108],[252,10,0,0],[32,9],[34,4],[65,30],[106],[32,2],[40,1,0],[65,2],[108],[106],[34,11],[65,34],[59,0,0],[32,11],[65,62],[59,0,2],[32,0],[33,12],[32,0],[40,1,0],[33,13],[32,12],[32,13],[106],[33,14],[3,64],[32,12],[32,14],[72],[4,64],[32,12],[32,12],[65,1],[106],[33,12],[45,0,4],[33,15],[32,11],[32,15],[59,0,4],[32,11],[65,2],[106],[33,11],[12,1],[11],[11],[32,11],[65,60],[59,0,4],[32,11],[65,47],[59,0,6],[32,11],[65,230,0],[59,0,8],[32,11],[65,239,0],[59,0,10],[32,11],[65,238,0],[59,0,12],[32,11],[65,244,0],[59,0,14],[32,11],[65,62],[59,0,16],[32,4],[32,13],[32,2],[40,1,0],[106],[65,22],[106],[34,16],[54,1,0],[32,4],[65,194,0],[15]],
|
140
|
+
params: [127,127,127,127], typedParams: 1,
|
141
|
+
returns: [127,127], typedReturns: 1,
|
142
|
+
locals: [127,127,127,127,127,127,127,127,127,127,127,127,127], localNames: ["_this","_this#type","arg","arg#type","out","concat_right_pointer","concat_right_length","concat_left_length","concat_left_pointer","concat_out_pointer","#last_type","outPtr","thisPtr","thisLen","endPtr","chr","__length_setter_tmp"],
|
143
|
+
data: [[0,[13,0,0,0,60,0,102,0,111,0,110,0,116,0,32,0,99,0,111,0,108,0,111,0,114,0,61,0,34,0]]],
|
144
|
+
};
|
145
|
+
this.__String_prototype_fontsize = {
|
146
|
+
wasm: (scope, {allocPage,builtin}) => [...number(allocPage(scope, 'string: __String_prototype_fontsize/out', 'i16') * pageSize, 127),[34,4],[32,2],[33,5],[33,8],[65,1],[64,0],[65,128,128,4],[108],[34,9],[32,8],[40,0,0],[34,7],[32,5],[40,0,0],[34,6],[106],[54,1,0],[65,194,0],[65,194,1],[70],[4,64],[32,8],[32,7],[16, builtin('__Porffor_bytestringToString')],[33,8],[11],[32,3],[65,194,1],[70],[4,64],[32,5],[32,6],[16, builtin('__Porffor_bytestringToString')],[33,5],[11],[32,9],[65,4],[106],[32,8],[65,4],[106],[65,252,255,3],[252,10,0,0],[32,9],[65,4],[106],[32,7],[65,2],[108],[106],[32,5],[65,4],[106],[32,6],[65,2],[108],[252,10,0,0],[32,9],[34,4],[65,28],[106],[32,2],[40,1,0],[65,2],[108],[106],[34,11],[65,34],[59,0,0],[32,11],[65,62],[59,0,2],[32,0],[33,12],[32,0],[40,1,0],[33,13],[32,12],[32,13],[65,2],[108],[106],[33,14],[3,64],[32,12],[32,14],[72],[4,64],[32,12],[47,0,4],[33,15],[32,11],[32,15],[59,0,4],[32,12],[65,2],[106],[33,12],[32,11],[65,2],[106],[33,11],[12,1],[11],[11],[32,11],[65,60],[59,0,4],[32,11],[65,47],[59,0,6],[32,11],[65,230,0],[59,0,8],[32,11],[65,239,0],[59,0,10],[32,11],[65,238,0],[59,0,12],[32,11],[65,244,0],[59,0,14],[32,11],[65,62],[59,0,16],[32,4],[32,13],[32,2],[40,1,0],[106],[65,21],[106],[34,16],[54,1,0],[32,4],[65,194,0],[15]],
|
147
|
+
params: [127,127,127,127], typedParams: 1,
|
148
|
+
returns: [127,127], typedReturns: 1,
|
149
|
+
locals: [127,127,127,127,127,127,127,127,127,127,127,127,127], localNames: ["_this","_this#type","arg","arg#type","out","concat_right_pointer","concat_right_length","concat_left_length","concat_left_pointer","concat_out_pointer","#last_type","outPtr","thisPtr","thisLen","endPtr","chr","__length_setter_tmp"],
|
150
|
+
data: [[0,[12,0,0,0,60,0,102,0,111,0,110,0,116,0,32,0,115,0,105,0,122,0,101,0,61,0,34,0]]],
|
151
|
+
};
|
152
|
+
this.__ByteString_prototype_fontsize = {
|
153
|
+
wasm: (scope, {allocPage,builtin}) => [...number(allocPage(scope, 'string: __ByteString_prototype_fontsize/out', 'i16') * pageSize, 127),[34,4],[32,2],[33,5],[33,8],[65,1],[64,0],[65,128,128,4],[108],[34,9],[32,8],[40,0,0],[34,7],[32,5],[40,0,0],[34,6],[106],[54,1,0],[65,194,0],[65,194,1],[70],[4,64],[32,8],[32,7],[16, builtin('__Porffor_bytestringToString')],[33,8],[11],[32,3],[65,194,1],[70],[4,64],[32,5],[32,6],[16, builtin('__Porffor_bytestringToString')],[33,5],[11],[32,9],[65,4],[106],[32,8],[65,4],[106],[65,252,255,3],[252,10,0,0],[32,9],[65,4],[106],[32,7],[65,2],[108],[106],[32,5],[65,4],[106],[32,6],[65,2],[108],[252,10,0,0],[32,9],[34,4],[65,28],[106],[32,2],[40,1,0],[65,2],[108],[106],[34,11],[65,34],[59,0,0],[32,11],[65,62],[59,0,2],[32,0],[33,12],[32,0],[40,1,0],[33,13],[32,12],[32,13],[106],[33,14],[3,64],[32,12],[32,14],[72],[4,64],[32,12],[32,12],[65,1],[106],[33,12],[45,0,4],[33,15],[32,11],[32,15],[59,0,4],[32,11],[65,2],[106],[33,11],[12,1],[11],[11],[32,11],[65,60],[59,0,4],[32,11],[65,47],[59,0,6],[32,11],[65,230,0],[59,0,8],[32,11],[65,239,0],[59,0,10],[32,11],[65,238,0],[59,0,12],[32,11],[65,244,0],[59,0,14],[32,11],[65,62],[59,0,16],[32,4],[32,13],[32,2],[40,1,0],[106],[65,21],[106],[34,16],[54,1,0],[32,4],[65,194,0],[15]],
|
154
|
+
params: [127,127,127,127], typedParams: 1,
|
155
|
+
returns: [127,127], typedReturns: 1,
|
156
|
+
locals: [127,127,127,127,127,127,127,127,127,127,127,127,127], localNames: ["_this","_this#type","arg","arg#type","out","concat_right_pointer","concat_right_length","concat_left_length","concat_left_pointer","concat_out_pointer","#last_type","outPtr","thisPtr","thisLen","endPtr","chr","__length_setter_tmp"],
|
157
|
+
data: [[0,[12,0,0,0,60,0,102,0,111,0,110,0,116,0,32,0,115,0,105,0,122,0,101,0,61,0,34,0]]],
|
158
|
+
};
|
159
|
+
this.__String_prototype_anchor = {
|
160
|
+
wasm: (scope, {allocPage,builtin}) => [...number(allocPage(scope, 'string: __String_prototype_anchor/out', 'i16') * pageSize, 127),[34,4],[32,2],[33,5],[33,8],[65,1],[64,0],[65,128,128,4],[108],[34,9],[32,8],[40,0,0],[34,7],[32,5],[40,0,0],[34,6],[106],[54,1,0],[65,194,0],[65,194,1],[70],[4,64],[32,8],[32,7],[16, builtin('__Porffor_bytestringToString')],[33,8],[11],[32,3],[65,194,1],[70],[4,64],[32,5],[32,6],[16, builtin('__Porffor_bytestringToString')],[33,5],[11],[32,9],[65,4],[106],[32,8],[65,4],[106],[65,252,255,3],[252,10,0,0],[32,9],[65,4],[106],[32,7],[65,2],[108],[106],[32,5],[65,4],[106],[32,6],[65,2],[108],[252,10,0,0],[32,9],[34,4],[65,22],[106],[32,2],[40,1,0],[65,2],[108],[106],[34,11],[65,34],[59,0,0],[32,11],[65,62],[59,0,2],[32,0],[33,12],[32,0],[40,1,0],[33,13],[32,12],[32,13],[65,2],[108],[106],[33,14],[3,64],[32,12],[32,14],[72],[4,64],[32,12],[47,0,4],[33,15],[32,11],[32,15],[59,0,4],[32,12],[65,2],[106],[33,12],[32,11],[65,2],[106],[33,11],[12,1],[11],[11],[32,11],[65,60],[59,0,4],[32,11],[65,47],[59,0,6],[32,11],[65,225,0],[59,0,8],[32,11],[65,62],[59,0,10],[32,4],[32,13],[32,2],[40,1,0],[106],[65,15],[106],[34,16],[54,1,0],[32,4],[65,194,0],[15]],
|
161
|
+
params: [127,127,127,127], typedParams: 1,
|
162
|
+
returns: [127,127], typedReturns: 1,
|
163
|
+
locals: [127,127,127,127,127,127,127,127,127,127,127,127,127], localNames: ["_this","_this#type","arg","arg#type","out","concat_right_pointer","concat_right_length","concat_left_length","concat_left_pointer","concat_out_pointer","#last_type","outPtr","thisPtr","thisLen","endPtr","chr","__length_setter_tmp"],
|
164
|
+
data: [[0,[9,0,0,0,60,0,97,0,32,0,110,0,97,0,109,0,101,0,61,0,34,0]]],
|
165
|
+
};
|
166
|
+
this.__ByteString_prototype_anchor = {
|
167
|
+
wasm: (scope, {allocPage,builtin}) => [...number(allocPage(scope, 'string: __ByteString_prototype_anchor/out', 'i16') * pageSize, 127),[34,4],[32,2],[33,5],[33,8],[65,1],[64,0],[65,128,128,4],[108],[34,9],[32,8],[40,0,0],[34,7],[32,5],[40,0,0],[34,6],[106],[54,1,0],[65,194,0],[65,194,1],[70],[4,64],[32,8],[32,7],[16, builtin('__Porffor_bytestringToString')],[33,8],[11],[32,3],[65,194,1],[70],[4,64],[32,5],[32,6],[16, builtin('__Porffor_bytestringToString')],[33,5],[11],[32,9],[65,4],[106],[32,8],[65,4],[106],[65,252,255,3],[252,10,0,0],[32,9],[65,4],[106],[32,7],[65,2],[108],[106],[32,5],[65,4],[106],[32,6],[65,2],[108],[252,10,0,0],[32,9],[34,4],[65,22],[106],[32,2],[40,1,0],[65,2],[108],[106],[34,11],[65,34],[59,0,0],[32,11],[65,62],[59,0,2],[32,0],[33,12],[32,0],[40,1,0],[33,13],[32,12],[32,13],[106],[33,14],[3,64],[32,12],[32,14],[72],[4,64],[32,12],[32,12],[65,1],[106],[33,12],[45,0,4],[33,15],[32,11],[32,15],[59,0,4],[32,11],[65,2],[106],[33,11],[12,1],[11],[11],[32,11],[65,60],[59,0,4],[32,11],[65,47],[59,0,6],[32,11],[65,225,0],[59,0,8],[32,11],[65,62],[59,0,10],[32,4],[32,13],[32,2],[40,1,0],[106],[65,15],[106],[34,16],[54,1,0],[32,4],[65,194,0],[15]],
|
168
|
+
params: [127,127,127,127], typedParams: 1,
|
169
|
+
returns: [127,127], typedReturns: 1,
|
170
|
+
locals: [127,127,127,127,127,127,127,127,127,127,127,127,127], localNames: ["_this","_this#type","arg","arg#type","out","concat_right_pointer","concat_right_length","concat_left_length","concat_left_pointer","concat_out_pointer","#last_type","outPtr","thisPtr","thisLen","endPtr","chr","__length_setter_tmp"],
|
171
|
+
data: [[0,[9,0,0,0,60,0,97,0,32,0,110,0,97,0,109,0,101,0,61,0,34,0]]],
|
172
|
+
};
|
173
|
+
this.__String_prototype_link = {
|
174
|
+
wasm: (scope, {allocPage,builtin}) => [...number(allocPage(scope, 'string: __String_prototype_link/out', 'i16') * pageSize, 127),[34,4],[32,2],[33,5],[33,8],[65,1],[64,0],[65,128,128,4],[108],[34,9],[32,8],[40,0,0],[34,7],[32,5],[40,0,0],[34,6],[106],[54,1,0],[65,194,0],[65,194,1],[70],[4,64],[32,8],[32,7],[16, builtin('__Porffor_bytestringToString')],[33,8],[11],[32,3],[65,194,1],[70],[4,64],[32,5],[32,6],[16, builtin('__Porffor_bytestringToString')],[33,5],[11],[32,9],[65,4],[106],[32,8],[65,4],[106],[65,252,255,3],[252,10,0,0],[32,9],[65,4],[106],[32,7],[65,2],[108],[106],[32,5],[65,4],[106],[32,6],[65,2],[108],[252,10,0,0],[32,9],[34,4],[65,22],[106],[32,2],[40,1,0],[65,2],[108],[106],[34,11],[65,34],[59,0,0],[32,11],[65,62],[59,0,2],[32,0],[33,12],[32,0],[40,1,0],[33,13],[32,12],[32,13],[65,2],[108],[106],[33,14],[3,64],[32,12],[32,14],[72],[4,64],[32,12],[47,0,4],[33,15],[32,11],[32,15],[59,0,4],[32,12],[65,2],[106],[33,12],[32,11],[65,2],[106],[33,11],[12,1],[11],[11],[32,11],[65,60],[59,0,4],[32,11],[65,47],[59,0,6],[32,11],[65,225,0],[59,0,8],[32,11],[65,62],[59,0,10],[32,4],[32,13],[32,2],[40,1,0],[106],[65,15],[106],[34,16],[54,1,0],[32,4],[65,194,0],[15]],
|
175
|
+
params: [127,127,127,127], typedParams: 1,
|
176
|
+
returns: [127,127], typedReturns: 1,
|
177
|
+
locals: [127,127,127,127,127,127,127,127,127,127,127,127,127], localNames: ["_this","_this#type","arg","arg#type","out","concat_right_pointer","concat_right_length","concat_left_length","concat_left_pointer","concat_out_pointer","#last_type","outPtr","thisPtr","thisLen","endPtr","chr","__length_setter_tmp"],
|
178
|
+
data: [[0,[9,0,0,0,60,0,97,0,32,0,104,0,114,0,101,0,102,0,61,0,34,0]]],
|
179
|
+
};
|
180
|
+
this.__ByteString_prototype_link = {
|
181
|
+
wasm: (scope, {allocPage,builtin}) => [...number(allocPage(scope, 'string: __ByteString_prototype_link/out', 'i16') * pageSize, 127),[34,4],[32,2],[33,5],[33,8],[65,1],[64,0],[65,128,128,4],[108],[34,9],[32,8],[40,0,0],[34,7],[32,5],[40,0,0],[34,6],[106],[54,1,0],[65,194,0],[65,194,1],[70],[4,64],[32,8],[32,7],[16, builtin('__Porffor_bytestringToString')],[33,8],[11],[32,3],[65,194,1],[70],[4,64],[32,5],[32,6],[16, builtin('__Porffor_bytestringToString')],[33,5],[11],[32,9],[65,4],[106],[32,8],[65,4],[106],[65,252,255,3],[252,10,0,0],[32,9],[65,4],[106],[32,7],[65,2],[108],[106],[32,5],[65,4],[106],[32,6],[65,2],[108],[252,10,0,0],[32,9],[34,4],[65,22],[106],[32,2],[40,1,0],[65,2],[108],[106],[34,11],[65,34],[59,0,0],[32,11],[65,62],[59,0,2],[32,0],[33,12],[32,0],[40,1,0],[33,13],[32,12],[32,13],[106],[33,14],[3,64],[32,12],[32,14],[72],[4,64],[32,12],[32,12],[65,1],[106],[33,12],[45,0,4],[33,15],[32,11],[32,15],[59,0,4],[32,11],[65,2],[106],[33,11],[12,1],[11],[11],[32,11],[65,60],[59,0,4],[32,11],[65,47],[59,0,6],[32,11],[65,225,0],[59,0,8],[32,11],[65,62],[59,0,10],[32,4],[32,13],[32,2],[40,1,0],[106],[65,15],[106],[34,16],[54,1,0],[32,4],[65,194,0],[15]],
|
182
|
+
params: [127,127,127,127], typedParams: 1,
|
183
|
+
returns: [127,127], typedReturns: 1,
|
184
|
+
locals: [127,127,127,127,127,127,127,127,127,127,127,127,127], localNames: ["_this","_this#type","arg","arg#type","out","concat_right_pointer","concat_right_length","concat_left_length","concat_left_pointer","concat_out_pointer","#last_type","outPtr","thisPtr","thisLen","endPtr","chr","__length_setter_tmp"],
|
185
|
+
data: [[0,[9,0,0,0,60,0,97,0,32,0,104,0,114,0,101,0,102,0,61,0,34,0]]],
|
186
|
+
};
|
131
187
|
this.__String_prototype_trimLeft = {
|
132
188
|
wasm: (scope, {builtin}) => [[32,0],[65,194,0],[16, builtin('__String_prototype_trimStart')],[34,2],[15]],
|
133
189
|
params: [127,127], typedParams: 1,
|
@@ -1530,6 +1586,18 @@ export const BuiltinFuncs = function() {
|
|
1530
1586
|
returns: [127,127], typedReturns: 1,
|
1531
1587
|
locals: [127], localNames: ["_this","_this#type","#last_type"],
|
1532
1588
|
};
|
1589
|
+
this.__String_prototype_codePointAt = {
|
1590
|
+
wasm: (scope, {}) => [[32,0],[40,1,0],[33,4],[32,2],[65,0],[114],[34,2],[65,0],[72],[32,2],[32,4],[78],[114],[4,64],[65,0],[65,3],[15],[11],[32,2],[65,2],[108],[33,2],[32,0],[32,2],[106],[47,0,4],[34,5],[65,128,176,3],[78],[32,5],[65,255,183,3],[76],[113],[4,64],[32,2],[65,1],[106],[32,4],[78],[4,64],[32,5],[65,0],[15],[11],[32,0],[32,2],[106],[65,2],[106],[47,0,4],[34,6],[65,128,184,3],[78],[32,6],[65,255,191,3],[76],[113],[4,64],[32,5],[65,10],[116],[32,6],[106],[65,128,184,255,26],[107],[65,0],[15],[11],[11],[32,5],[65,0],[15]],
|
1591
|
+
params: [127,127,127,127], typedParams: 1,
|
1592
|
+
returns: [127,127], typedReturns: 1,
|
1593
|
+
locals: [127,127,127], localNames: ["_this","_this#type","index","index#type","len","c1","c2"],
|
1594
|
+
};
|
1595
|
+
this.__ByteString_prototype_codePointAt = {
|
1596
|
+
wasm: (scope, {}) => [[32,0],[40,1,0],[33,4],[32,2],[65,0],[114],[34,2],[65,0],[72],[32,2],[32,4],[78],[114],[4,64],[65,0],[65,3],[15],[11],[32,0],[32,2],[106],[45,0,4],[65,0],[15]],
|
1597
|
+
params: [127,127,127,127], typedParams: 1,
|
1598
|
+
returns: [127,127], typedReturns: 1,
|
1599
|
+
locals: [127], localNames: ["_this","_this#type","index","index#type","len"],
|
1600
|
+
};
|
1533
1601
|
this.__String_prototype_startsWith = {
|
1534
1602
|
wasm: (scope, {}) => [[32,0],[33,6],[32,2],[33,7],[32,0],[40,1,0],[33,8],[32,4],[65,0],[74],[4,64],[32,4],[32,8],[74],[4,64],[32,8],[33,4],[5],[32,4],[65,0],[114],[33,4],[11],[5],[65,0],[33,4],[11],[32,6],[32,4],[65,2],[108],[106],[33,6],[32,2],[40,1,0],[65,2],[108],[33,9],[65,0],[33,10],[3,64],[32,10],[32,9],[72],[4,64],[32,6],[32,10],[106],[47,0,4],[33,11],[32,7],[32,10],[106],[47,0,4],[33,12],[32,11],[32,12],[71],[4,64],[65,0],[65,1],[15],[11],[32,10],[65,2],[106],[34,10],[12,1],[11],[11],[65,1],[65,1],[15]],
|
1535
1603
|
params: [127,127,127,127,127,127], typedParams: 1,
|
package/package.json
CHANGED