Commit 03e8c9d0 authored by bmeurer@chromium.org's avatar bmeurer@chromium.org

ARM: fix cctest/test-code-stub-arm.cc

TEST=cctest/test-code-stub-arm.cc
R=bmeurer@chromium.org

Review URL: https://codereview.chromium.org/23843003

Patch from Rodolph Perfetta <rodolph.perfetta@gmail.com>.

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@16541 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent a6a8455f
......@@ -63,8 +63,11 @@ ConvertDToIFunc MakeConvertDToIFuncTrampoline(Isolate* isolate,
__ Push(r7, r6, r5, r4);
__ Push(lr);
// For softfp, move the input value into d0.
if (!masm.use_eabi_hardfloat()) {
__ vmov(d0, r0, r1);
}
// Push the double argument.
__ vmov(d0, r0, r1);
__ sub(sp, sp, Operand(kDoubleSize));
__ vstr(d0, sp, 0);
if (!source_reg.is(sp)) {
......@@ -124,6 +127,7 @@ ConvertDToIFunc MakeConvertDToIFuncTrampoline(Isolate* isolate,
CodeDesc desc;
masm.GetCode(&desc);
CPU::FlushICache(buffer, actual_size);
return (reinterpret_cast<ConvertDToIFunc>(
reinterpret_cast<intptr_t>(buffer)));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment