Index: src/compiler/x64/code-generator-x64.cc |
diff --git a/src/compiler/x64/code-generator-x64.cc b/src/compiler/x64/code-generator-x64.cc |
index 502af6a37656be1f0d732e0c14b315c362e8264b..324cc094597d26c47261abffd3c9cb1ef198f5aa 100644 |
--- a/src/compiler/x64/code-generator-x64.cc |
+++ b/src/compiler/x64/code-generator-x64.cc |
@@ -2342,7 +2342,7 @@ void CodeGenerator::AssembleArchTrap(Instruction* instr, |
ExternalReference::wasm_call_trap_callback_for_testing(isolate()), |
0); |
} else { |
- __ Move(rsi, isolate()->native_context()); |
+ __ Move(rsi, Smi::kZero); |
gen_->AssembleSourcePosition(instr_); |
__ CallRuntime(trap_id); |
} |