| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 #if V8_TARGET_ARCH_ARM64 | 5 #if V8_TARGET_ARCH_ARM64 |
| 6 | 6 |
| 7 #include "src/arm64/frames-arm64.h" | 7 #include "src/arm64/frames-arm64.h" |
| 8 #include "src/codegen.h" | 8 #include "src/codegen.h" |
| 9 #include "src/debug/debug.h" | 9 #include "src/debug/debug.h" |
| 10 #include "src/deoptimizer.h" | 10 #include "src/deoptimizer.h" |
| (...skipping 1539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1550 __ CallCFunction( | 1550 __ CallCFunction( |
| 1551 ExternalReference::get_make_code_young_function(masm->isolate()), 2); | 1551 ExternalReference::get_make_code_young_function(masm->isolate()), 2); |
| 1552 __ Pop(lr, fp, x3, x1, x0); | 1552 __ Pop(lr, fp, x3, x1, x0); |
| 1553 } | 1553 } |
| 1554 | 1554 |
| 1555 // The calling function has been made young again, so return to execute the | 1555 // The calling function has been made young again, so return to execute the |
| 1556 // real frame set-up code. | 1556 // real frame set-up code. |
| 1557 __ Br(x0); | 1557 __ Br(x0); |
| 1558 } | 1558 } |
| 1559 | 1559 |
| 1560 #define DEFINE_CODE_AGE_BUILTIN_GENERATOR(C) \ | 1560 #define DEFINE_CODE_AGE_BUILTIN_GENERATOR(C) \ |
| 1561 void Builtins::Generate_Make##C##CodeYoungAgainEvenMarking( \ | 1561 void Builtins::Generate_Make##C##CodeYoungAgain(MacroAssembler* masm) { \ |
| 1562 MacroAssembler* masm) { \ | 1562 GenerateMakeCodeYoungAgainCommon(masm); \ |
| 1563 GenerateMakeCodeYoungAgainCommon(masm); \ | |
| 1564 } \ | |
| 1565 void Builtins::Generate_Make##C##CodeYoungAgainOddMarking( \ | |
| 1566 MacroAssembler* masm) { \ | |
| 1567 GenerateMakeCodeYoungAgainCommon(masm); \ | |
| 1568 } | 1563 } |
| 1569 CODE_AGE_LIST(DEFINE_CODE_AGE_BUILTIN_GENERATOR) | 1564 CODE_AGE_LIST(DEFINE_CODE_AGE_BUILTIN_GENERATOR) |
| 1570 #undef DEFINE_CODE_AGE_BUILTIN_GENERATOR | 1565 #undef DEFINE_CODE_AGE_BUILTIN_GENERATOR |
| 1571 | 1566 |
| 1572 void Builtins::Generate_MarkCodeAsExecutedOnce(MacroAssembler* masm) { | 1567 void Builtins::Generate_MarkCodeAsExecutedOnce(MacroAssembler* masm) { |
| 1573 // For now, as in GenerateMakeCodeYoungAgainCommon, we are relying on the fact | 1568 // For now, as in GenerateMakeCodeYoungAgainCommon, we are relying on the fact |
| 1574 // that make_code_young doesn't do any garbage collection which allows us to | 1569 // that make_code_young doesn't do any garbage collection which allows us to |
| 1575 // save/restore the registers without worrying about which of them contain | 1570 // save/restore the registers without worrying about which of them contain |
| 1576 // pointers. | 1571 // pointers. |
| 1577 | 1572 |
| (...skipping 1426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3004 __ Unreachable(); | 2999 __ Unreachable(); |
| 3005 } | 3000 } |
| 3006 } | 3001 } |
| 3007 | 3002 |
| 3008 #undef __ | 3003 #undef __ |
| 3009 | 3004 |
| 3010 } // namespace internal | 3005 } // namespace internal |
| 3011 } // namespace v8 | 3006 } // namespace v8 |
| 3012 | 3007 |
| 3013 #endif // V8_TARGET_ARCH_ARM | 3008 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |