Skip to content

Commit db8875d

Browse files
committed
v128 intrinsic bisection step 7
1 parent 750e494 commit db8875d

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/mono/wasm/runtime/jiterpreter-trace-generator.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3509,12 +3509,14 @@ const simdShiftTable = new Set<SimdIntrinsic3>([
35093509
SimdIntrinsic3.V128_I8_URIGHT_SHIFT,
35103510
]);
35113511

3512-
function append_stloc_simd_zero(builder: WasmBuilder, offset: number) {
3512+
/*
3513+
function append_stloc_simd_zero (builder: WasmBuilder, offset: number) {
35133514
builder.local("pLocals");
35143515
builder.appendSimd(WasmSimdOpcode.v128_const);
35153516
builder.appendBytes(new Uint8Array(sizeOfV128));
35163517
append_stloc_tail(builder, offset, WasmOpcode.PREFIX_simd, WasmSimdOpcode.v128_store);
35173518
}
3519+
*/
35183520

35193521
function emit_simd_2(builder: WasmBuilder, ip: MintOpcodePtr, index: SimdIntrinsic2): boolean {
35203522
const simple = <WasmSimdOpcode>cwraps.mono_jiterp_get_simd_opcode(1, index);
@@ -3525,9 +3527,8 @@ function emit_simd_2(builder: WasmBuilder, ip: MintOpcodePtr, index: SimdIntrins
35253527
return true;
35263528
}
35273529

3528-
return false;
3529-
35303530
switch (index) {
3531+
/*
35313532
case SimdIntrinsic2.V128_I1_CREATE_SCALAR:
35323533
// Zero then write scalar component
35333534
builder.local("pLocals");
@@ -3556,6 +3557,7 @@ function emit_simd_2(builder: WasmBuilder, ip: MintOpcodePtr, index: SimdIntrins
35563557
append_ldloc(builder, getArgU16(ip, 2), WasmOpcode.i64_load);
35573558
append_stloc_tail(builder, getArgU16(ip, 1), WasmOpcode.i64_store);
35583559
return true;
3560+
*/
35593561

35603562
case SimdIntrinsic2.V128_I1_CREATE:
35613563
append_simd_2_load(builder, ip, WasmSimdOpcode.v128_load8_splat);

src/mono/wasm/runtime/jiterpreter.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ export const disabledOpcodes: Array<MintOpcode> = [
9797
// Having any items in this list will add some overhead to the jitting of *all* traces
9898
// These names can be substrings and instrumentation will happen if the substring is found in the full name
9999
export const instrumentedMethodNames: Array<string> = [
100+
"WidenFourAsciiBytesToUtf16AndWriteToBuffer",
101+
"ToBase64CharsLarge"
100102
];
101103

102104
export class InstrumentedTraceState {

0 commit comments

Comments
 (0)