| 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 842 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 853 // r1 - isolate | 853 // r1 - isolate |
| 854 FrameScope scope(masm, StackFrame::MANUAL); | 854 FrameScope scope(masm, StackFrame::MANUAL); |
| 855 __ stm(db_w, sp, r0.bit() | r1.bit() | fp.bit() | lr.bit()); | 855 __ stm(db_w, sp, r0.bit() | r1.bit() | fp.bit() | lr.bit()); |
| 856 __ PrepareCallCFunction(2, 0, r2); | 856 __ PrepareCallCFunction(2, 0, r2); |
| 857 __ mov(r1, Operand(ExternalReference::isolate_address(masm->isolate()))); | 857 __ mov(r1, Operand(ExternalReference::isolate_address(masm->isolate()))); |
| 858 __ CallCFunction(ExternalReference::get_mark_code_as_executed_function( | 858 __ CallCFunction(ExternalReference::get_mark_code_as_executed_function( |
| 859 masm->isolate()), 2); | 859 masm->isolate()), 2); |
| 860 __ ldm(ia_w, sp, r0.bit() | r1.bit() | fp.bit() | lr.bit()); | 860 __ ldm(ia_w, sp, r0.bit() | r1.bit() | fp.bit() | lr.bit()); |
| 861 | 861 |
| 862 // Perform prologue operations usually performed by the young code stub. | 862 // Perform prologue operations usually performed by the young code stub. |
| 863 __ stm(db_w, sp, r1.bit() | cp.bit() | fp.bit() | lr.bit()); | 863 __ PushFixedFrame(r1); |
| 864 __ add(fp, sp, Operand(StandardFrameConstants::kFixedFrameSizeFromFp)); | 864 __ add(fp, sp, Operand(StandardFrameConstants::kFixedFrameSizeFromFp)); |
| 865 | 865 |
| 866 // Jump to point after the code-age stub. | 866 // Jump to point after the code-age stub. |
| 867 __ add(r0, r0, Operand(kNoCodeAgeSequenceLength * Assembler::kInstrSize)); | 867 __ add(r0, r0, Operand(kNoCodeAgeSequenceLength * Assembler::kInstrSize)); |
| 868 __ mov(pc, r0); | 868 __ mov(pc, r0); |
| 869 } | 869 } |
| 870 | 870 |
| 871 | 871 |
| 872 void Builtins::Generate_MarkCodeAsExecutedTwice(MacroAssembler* masm) { | 872 void Builtins::Generate_MarkCodeAsExecutedTwice(MacroAssembler* masm) { |
| 873 GenerateMakeCodeYoungAgainCommon(masm); | 873 GenerateMakeCodeYoungAgainCommon(masm); |
| (...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1354 // Tear down the internal frame and remove function, receiver and args. | 1354 // Tear down the internal frame and remove function, receiver and args. |
| 1355 } | 1355 } |
| 1356 __ add(sp, sp, Operand(3 * kPointerSize)); | 1356 __ add(sp, sp, Operand(3 * kPointerSize)); |
| 1357 __ Jump(lr); | 1357 __ Jump(lr); |
| 1358 } | 1358 } |
| 1359 | 1359 |
| 1360 | 1360 |
| 1361 static void EnterArgumentsAdaptorFrame(MacroAssembler* masm) { | 1361 static void EnterArgumentsAdaptorFrame(MacroAssembler* masm) { |
| 1362 __ SmiTag(r0); | 1362 __ SmiTag(r0); |
| 1363 __ mov(r4, Operand(Smi::FromInt(StackFrame::ARGUMENTS_ADAPTOR))); | 1363 __ mov(r4, Operand(Smi::FromInt(StackFrame::ARGUMENTS_ADAPTOR))); |
| 1364 __ stm(db_w, sp, r0.bit() | r1.bit() | r4.bit() | fp.bit() | lr.bit()); | 1364 __ stm(db_w, sp, r0.bit() | r1.bit() | r4.bit() | |
| 1365 (FLAG_enable_ool_constant_pool ? pp.bit() : 0) | |
| 1366 fp.bit() | lr.bit()); |
| 1365 __ add(fp, sp, | 1367 __ add(fp, sp, |
| 1366 Operand(StandardFrameConstants::kFixedFrameSizeFromFp + kPointerSize)); | 1368 Operand(StandardFrameConstants::kFixedFrameSizeFromFp + kPointerSize)); |
| 1367 } | 1369 } |
| 1368 | 1370 |
| 1369 | 1371 |
| 1370 static void LeaveArgumentsAdaptorFrame(MacroAssembler* masm) { | 1372 static void LeaveArgumentsAdaptorFrame(MacroAssembler* masm) { |
| 1371 // ----------- S t a t e ------------- | 1373 // ----------- S t a t e ------------- |
| 1372 // -- r0 : result being passed through | 1374 // -- r0 : result being passed through |
| 1373 // ----------------------------------- | 1375 // ----------------------------------- |
| 1374 // Get the number of arguments passed (as a smi), tear down the frame and | 1376 // 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... |
| 1490 __ bind(&dont_adapt_arguments); | 1492 __ bind(&dont_adapt_arguments); |
| 1491 __ Jump(r3); | 1493 __ Jump(r3); |
| 1492 } | 1494 } |
| 1493 | 1495 |
| 1494 | 1496 |
| 1495 #undef __ | 1497 #undef __ |
| 1496 | 1498 |
| 1497 } } // namespace v8::internal | 1499 } } // namespace v8::internal |
| 1498 | 1500 |
| 1499 #endif // V8_TARGET_ARCH_ARM | 1501 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |