| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 1336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1347 | 1347 |
| 1348 | 1348 |
| 1349 static void LeaveArgumentsAdaptorFrame(MacroAssembler* masm) { | 1349 static void LeaveArgumentsAdaptorFrame(MacroAssembler* masm) { |
| 1350 // ----------- S t a t e ------------- | 1350 // ----------- S t a t e ------------- |
| 1351 // -- r0 : result being passed through | 1351 // -- r0 : result being passed through |
| 1352 // ----------------------------------- | 1352 // ----------------------------------- |
| 1353 // Get the number of arguments passed (as a smi), tear down the frame and | 1353 // Get the number of arguments passed (as a smi), tear down the frame and |
| 1354 // then tear down the parameters. | 1354 // then tear down the parameters. |
| 1355 __ ldr(r1, MemOperand(fp, -(StandardFrameConstants::kFixedFrameSizeFromFp + | 1355 __ ldr(r1, MemOperand(fp, -(StandardFrameConstants::kFixedFrameSizeFromFp + |
| 1356 kPointerSize))); | 1356 kPointerSize))); |
| 1357 __ mov(sp, fp); | 1357 |
| 1358 __ ldm(ia_w, sp, fp.bit() | lr.bit()); | 1358 if (FLAG_enable_ool_constant_pool) { |
| 1359 __ add(sp, fp, Operand(StandardFrameConstants::kConstantPoolOffset)); |
| 1360 __ ldm(ia_w, sp, pp.bit() | fp.bit() | lr.bit()); |
| 1361 } else { |
| 1362 __ mov(sp, fp);; |
| 1363 __ ldm(ia_w, sp, fp.bit() | lr.bit()); |
| 1364 } |
| 1359 __ add(sp, sp, Operand::PointerOffsetFromSmiKey(r1)); | 1365 __ add(sp, sp, Operand::PointerOffsetFromSmiKey(r1)); |
| 1360 __ add(sp, sp, Operand(kPointerSize)); // adjust for receiver | 1366 __ add(sp, sp, Operand(kPointerSize)); // adjust for receiver |
| 1361 } | 1367 } |
| 1362 | 1368 |
| 1363 | 1369 |
| 1364 void Builtins::Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm) { | 1370 void Builtins::Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm) { |
| 1365 // ----------- S t a t e ------------- | 1371 // ----------- S t a t e ------------- |
| 1366 // -- r0 : actual number of arguments | 1372 // -- r0 : actual number of arguments |
| 1367 // -- r1 : function (passed through to callee) | 1373 // -- r1 : function (passed through to callee) |
| 1368 // -- r2 : expected number of arguments | 1374 // -- r2 : expected number of arguments |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1468 __ bind(&dont_adapt_arguments); | 1474 __ bind(&dont_adapt_arguments); |
| 1469 __ Jump(r3); | 1475 __ Jump(r3); |
| 1470 } | 1476 } |
| 1471 | 1477 |
| 1472 | 1478 |
| 1473 #undef __ | 1479 #undef __ |
| 1474 | 1480 |
| 1475 } } // namespace v8::internal | 1481 } } // namespace v8::internal |
| 1476 | 1482 |
| 1477 #endif // V8_TARGET_ARCH_ARM | 1483 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |