summaryrefslogtreecommitdiff
path: root/deps/v8/test/cctest/test-code-stubs-ia32.cc
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/cctest/test-code-stubs-ia32.cc')
-rw-r--r--deps/v8/test/cctest/test-code-stubs-ia32.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/deps/v8/test/cctest/test-code-stubs-ia32.cc b/deps/v8/test/cctest/test-code-stubs-ia32.cc
index 11506b589f..77a2254245 100644
--- a/deps/v8/test/cctest/test-code-stubs-ia32.cc
+++ b/deps/v8/test/cctest/test-code-stubs-ia32.cc
@@ -53,8 +53,8 @@ ConvertDToIFunc MakeConvertDToIFuncTrampoline(Isolate* isolate,
MacroAssembler masm(isolate, buffer, static_cast<int>(allocated),
v8::internal::CodeObjectRequired::kYes);
- DoubleToIStub stub(isolate, destination_reg);
- byte* start = stub.GetCode()->raw_instruction_start();
+ Handle<Code> code = BUILTIN_CODE(isolate, DoubleToI);
+ Address start = code->InstructionStart();
__ push(ebx);
__ push(ecx);
@@ -81,6 +81,7 @@ ConvertDToIFunc MakeConvertDToIFuncTrampoline(Isolate* isolate,
// Call through to the actual stub
__ call(start, RelocInfo::EXTERNAL_REFERENCE);
+ __ mov(destination_reg, MemOperand(esp, 0));
__ add(esp, Immediate(kDoubleSize));