| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 821 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 832 // x0 - The address from which to resume execution. | 832 // x0 - The address from which to resume execution. |
| 833 // x1 - isolate | 833 // x1 - isolate |
| 834 // lr - The return address for the JSFunction itself. It has not yet been | 834 // lr - The return address for the JSFunction itself. It has not yet been |
| 835 // preserved on the stack because the frame setup code was replaced | 835 // preserved on the stack because the frame setup code was replaced |
| 836 // with a call to this stub, to handle code ageing. | 836 // with a call to this stub, to handle code ageing. |
| 837 { | 837 { |
| 838 FrameScope scope(masm, StackFrame::MANUAL); | 838 FrameScope scope(masm, StackFrame::MANUAL); |
| 839 __ Push(x0, x1, fp, lr); | 839 __ Push(x0, x1, fp, lr); |
| 840 __ Mov(x1, Operand(ExternalReference::isolate_address(masm->isolate()))); | 840 __ Mov(x1, Operand(ExternalReference::isolate_address(masm->isolate()))); |
| 841 __ CallCFunction( | 841 __ CallCFunction( |
| 842 ExternalReference::get_make_code_young_function(masm->isolate()), 2); | 842 ExternalReference::get_mark_code_as_executed_function( |
| 843 masm->isolate()), 2); |
| 843 __ Pop(lr, fp, x1, x0); | 844 __ Pop(lr, fp, x1, x0); |
| 844 | 845 |
| 845 // Perform prologue operations usually performed by the young code stub. | 846 // Perform prologue operations usually performed by the young code stub. |
| 846 __ EmitFrameSetupForCodeAgePatching(masm); | 847 __ EmitFrameSetupForCodeAgePatching(masm); |
| 847 } | 848 } |
| 848 | 849 |
| 849 // Jump to point after the code-age stub. | 850 // Jump to point after the code-age stub. |
| 850 __ Add(x0, x0, kCodeAgeSequenceSize); | 851 __ Add(x0, x0, kCodeAgeSequenceSize); |
| 851 __ Br(x0); | 852 __ Br(x0); |
| 852 } | 853 } |
| (...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1472 __ Bind(&dont_adapt_arguments); | 1473 __ Bind(&dont_adapt_arguments); |
| 1473 __ Jump(x3); | 1474 __ Jump(x3); |
| 1474 } | 1475 } |
| 1475 | 1476 |
| 1476 | 1477 |
| 1477 #undef __ | 1478 #undef __ |
| 1478 | 1479 |
| 1479 } } // namespace v8::internal | 1480 } } // namespace v8::internal |
| 1480 | 1481 |
| 1481 #endif // V8_TARGET_ARCH_ARM | 1482 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |