Index: src/compiler/ia32/code-generator-ia32.cc |
diff --git a/src/compiler/ia32/code-generator-ia32.cc b/src/compiler/ia32/code-generator-ia32.cc |
index 9f9da620820c1b1c30833ca226de276da99d30a4..3174c219b52e569ac91fef409187f5c8cbdb1d71 100644 |
--- a/src/compiler/ia32/code-generator-ia32.cc |
+++ b/src/compiler/ia32/code-generator-ia32.cc |
@@ -1714,7 +1714,7 @@ void CodeGenerator::AssembleArchTrap(Instruction* instr, |
ExternalReference::wasm_call_trap_callback_for_testing(isolate()), |
0); |
} else { |
- __ Move(esi, isolate()->native_context()); |
+ __ Move(esi, Smi::kZero); |
gen_->AssembleSourcePosition(instr_); |
__ CallRuntime(trap_id); |
} |