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 1389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2967 __ Unreachable(); | 2962 __ Unreachable(); |
2968 } | 2963 } |
2969 } | 2964 } |
2970 | 2965 |
2971 #undef __ | 2966 #undef __ |
2972 | 2967 |
2973 } // namespace internal | 2968 } // namespace internal |
2974 } // namespace v8 | 2969 } // namespace v8 |
2975 | 2970 |
2976 #endif // V8_TARGET_ARCH_ARM | 2971 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |