OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_ARM | 7 #if V8_TARGET_ARCH_ARM |
8 | 8 |
9 #include "src/codegen.h" | 9 #include "src/codegen.h" |
10 #include "src/debug.h" | 10 #include "src/debug.h" |
(...skipping 1404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1415 | 1415 |
1416 static void LeaveArgumentsAdaptorFrame(MacroAssembler* masm) { | 1416 static void LeaveArgumentsAdaptorFrame(MacroAssembler* masm) { |
1417 // ----------- S t a t e ------------- | 1417 // ----------- S t a t e ------------- |
1418 // -- r0 : result being passed through | 1418 // -- r0 : result being passed through |
1419 // ----------------------------------- | 1419 // ----------------------------------- |
1420 // Get the number of arguments passed (as a smi), tear down the frame and | 1420 // Get the number of arguments passed (as a smi), tear down the frame and |
1421 // then tear down the parameters. | 1421 // then tear down the parameters. |
1422 __ ldr(r1, MemOperand(fp, -(StandardFrameConstants::kFixedFrameSizeFromFp + | 1422 __ ldr(r1, MemOperand(fp, -(StandardFrameConstants::kFixedFrameSizeFromFp + |
1423 kPointerSize))); | 1423 kPointerSize))); |
1424 | 1424 |
1425 if (FLAG_enable_ool_constant_pool) { | 1425 __ LeaveFrame(StackFrame::ARGUMENTS_ADAPTOR); |
1426 __ add(sp, fp, Operand(StandardFrameConstants::kConstantPoolOffset)); | |
1427 __ ldm(ia_w, sp, pp.bit() | fp.bit() | lr.bit()); | |
1428 } else { | |
1429 __ mov(sp, fp);; | |
1430 __ ldm(ia_w, sp, fp.bit() | lr.bit()); | |
1431 } | |
1432 __ add(sp, sp, Operand::PointerOffsetFromSmiKey(r1)); | 1426 __ add(sp, sp, Operand::PointerOffsetFromSmiKey(r1)); |
1433 __ add(sp, sp, Operand(kPointerSize)); // adjust for receiver | 1427 __ add(sp, sp, Operand(kPointerSize)); // adjust for receiver |
1434 } | 1428 } |
1435 | 1429 |
1436 | 1430 |
1437 void Builtins::Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm) { | 1431 void Builtins::Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm) { |
1438 // ----------- S t a t e ------------- | 1432 // ----------- S t a t e ------------- |
1439 // -- r0 : actual number of arguments | 1433 // -- r0 : actual number of arguments |
1440 // -- r1 : function (passed through to callee) | 1434 // -- r1 : function (passed through to callee) |
1441 // -- r2 : expected number of arguments | 1435 // -- r2 : expected number of arguments |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1551 __ bkpt(0); | 1545 __ bkpt(0); |
1552 } | 1546 } |
1553 } | 1547 } |
1554 | 1548 |
1555 | 1549 |
1556 #undef __ | 1550 #undef __ |
1557 | 1551 |
1558 } } // namespace v8::internal | 1552 } } // namespace v8::internal |
1559 | 1553 |
1560 #endif // V8_TARGET_ARCH_ARM | 1554 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |