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 825 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
836 // r1 - isolate | 836 // r1 - isolate |
837 FrameScope scope(masm, StackFrame::MANUAL); | 837 FrameScope scope(masm, StackFrame::MANUAL); |
838 __ stm(db_w, sp, r0.bit() | r1.bit() | fp.bit() | lr.bit()); | 838 __ stm(db_w, sp, r0.bit() | r1.bit() | fp.bit() | lr.bit()); |
839 __ PrepareCallCFunction(1, 0, r2); | 839 __ PrepareCallCFunction(1, 0, r2); |
840 __ mov(r1, Operand(ExternalReference::isolate_address(masm->isolate()))); | 840 __ mov(r1, Operand(ExternalReference::isolate_address(masm->isolate()))); |
841 __ CallCFunction(ExternalReference::get_mark_code_as_executed_function( | 841 __ CallCFunction(ExternalReference::get_mark_code_as_executed_function( |
842 masm->isolate()), 2); | 842 masm->isolate()), 2); |
843 __ ldm(ia_w, sp, r0.bit() | r1.bit() | fp.bit() | lr.bit()); | 843 __ ldm(ia_w, sp, r0.bit() | r1.bit() | fp.bit() | lr.bit()); |
844 | 844 |
845 // Perform prologue operations usually performed by the young code stub. | 845 // Perform prologue operations usually performed by the young code stub. |
846 __ stm(db_w, sp, r1.bit() | cp.bit() | fp.bit() | lr.bit()); | 846 __ PushFixedFrame(r1); |
| 847 if (FLAG_enable_ool_constant_pool) { |
| 848 __ ldr(pp, FieldMemOperand(r1, JSFunction::kConstantPoolOffset)); |
| 849 } |
847 __ add(fp, sp, Operand(StandardFrameConstants::kFixedFrameSizeFromFp)); | 850 __ add(fp, sp, Operand(StandardFrameConstants::kFixedFrameSizeFromFp)); |
848 | 851 |
849 // Jump to point after the code-age stub. | 852 // Jump to point after the code-age stub. |
850 __ add(r0, r0, Operand(kNoCodeAgeSequenceLength * Assembler::kInstrSize)); | 853 __ add(r0, r0, Operand(kNoCodeAgeSequenceLength * Assembler::kInstrSize)); |
851 __ mov(pc, r0); | 854 __ mov(pc, r0); |
852 } | 855 } |
853 | 856 |
854 | 857 |
855 void Builtins::Generate_MarkCodeAsExecutedTwice(MacroAssembler* masm) { | 858 void Builtins::Generate_MarkCodeAsExecutedTwice(MacroAssembler* masm) { |
856 GenerateMakeCodeYoungAgainCommon(masm); | 859 GenerateMakeCodeYoungAgainCommon(masm); |
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1346 // Tear down the internal frame and remove function, receiver and args. | 1349 // Tear down the internal frame and remove function, receiver and args. |
1347 } | 1350 } |
1348 __ add(sp, sp, Operand(3 * kPointerSize)); | 1351 __ add(sp, sp, Operand(3 * kPointerSize)); |
1349 __ Jump(lr); | 1352 __ Jump(lr); |
1350 } | 1353 } |
1351 | 1354 |
1352 | 1355 |
1353 static void EnterArgumentsAdaptorFrame(MacroAssembler* masm) { | 1356 static void EnterArgumentsAdaptorFrame(MacroAssembler* masm) { |
1354 __ SmiTag(r0); | 1357 __ SmiTag(r0); |
1355 __ mov(r4, Operand(Smi::FromInt(StackFrame::ARGUMENTS_ADAPTOR))); | 1358 __ mov(r4, Operand(Smi::FromInt(StackFrame::ARGUMENTS_ADAPTOR))); |
1356 __ stm(db_w, sp, r0.bit() | r1.bit() | r4.bit() | fp.bit() | lr.bit()); | 1359 __ stm(db_w, sp, r0.bit() | r1.bit() | r4.bit() | |
| 1360 (FLAG_enable_ool_constant_pool ? pp.bit() : 0) | |
| 1361 fp.bit() | lr.bit()); |
1357 __ add(fp, sp, | 1362 __ add(fp, sp, |
1358 Operand(StandardFrameConstants::kFixedFrameSizeFromFp + kPointerSize)); | 1363 Operand(StandardFrameConstants::kFixedFrameSizeFromFp + kPointerSize)); |
1359 } | 1364 } |
1360 | 1365 |
1361 | 1366 |
1362 static void LeaveArgumentsAdaptorFrame(MacroAssembler* masm) { | 1367 static void LeaveArgumentsAdaptorFrame(MacroAssembler* masm) { |
1363 // ----------- S t a t e ------------- | 1368 // ----------- S t a t e ------------- |
1364 // -- r0 : result being passed through | 1369 // -- r0 : result being passed through |
1365 // ----------------------------------- | 1370 // ----------------------------------- |
1366 // Get the number of arguments passed (as a smi), tear down the frame and | 1371 // Get the number of arguments passed (as a smi), tear down the frame and |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1482 __ bind(&dont_adapt_arguments); | 1487 __ bind(&dont_adapt_arguments); |
1483 __ Jump(r3); | 1488 __ Jump(r3); |
1484 } | 1489 } |
1485 | 1490 |
1486 | 1491 |
1487 #undef __ | 1492 #undef __ |
1488 | 1493 |
1489 } } // namespace v8::internal | 1494 } } // namespace v8::internal |
1490 | 1495 |
1491 #endif // V8_TARGET_ARCH_ARM | 1496 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |