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
This commit is contained in:
parent
a6a8455fdb
commit
03e8c9d015
@ -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)));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user