| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_MIPS64 | 5 #if V8_TARGET_ARCH_MIPS64 |
| 6 | 6 |
| 7 #include "src/codegen.h" | 7 #include "src/codegen.h" |
| 8 #include "src/debug/debug.h" | 8 #include "src/debug/debug.h" |
| 9 #include "src/deoptimizer.h" | 9 #include "src/deoptimizer.h" |
| 10 #include "src/full-codegen/full-codegen.h" | 10 #include "src/full-codegen/full-codegen.h" |
| (...skipping 1535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1546 FrameScope scope(masm, StackFrame::MANUAL); | 1546 FrameScope scope(masm, StackFrame::MANUAL); |
| 1547 __ MultiPush(saved_regs); | 1547 __ MultiPush(saved_regs); |
| 1548 __ PrepareCallCFunction(2, 0, a2); | 1548 __ PrepareCallCFunction(2, 0, a2); |
| 1549 __ li(a1, Operand(ExternalReference::isolate_address(masm->isolate()))); | 1549 __ li(a1, Operand(ExternalReference::isolate_address(masm->isolate()))); |
| 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 __ MultiPop(saved_regs); | 1552 __ MultiPop(saved_regs); |
| 1553 __ Jump(a0); | 1553 __ Jump(a0); |
| 1554 } | 1554 } |
| 1555 | 1555 |
| 1556 #define DEFINE_CODE_AGE_BUILTIN_GENERATOR(C) \ | 1556 #define DEFINE_CODE_AGE_BUILTIN_GENERATOR(C) \ |
| 1557 void Builtins::Generate_Make##C##CodeYoungAgainEvenMarking( \ | 1557 void Builtins::Generate_Make##C##CodeYoungAgain(MacroAssembler* masm) { \ |
| 1558 MacroAssembler* masm) { \ | 1558 GenerateMakeCodeYoungAgainCommon(masm); \ |
| 1559 GenerateMakeCodeYoungAgainCommon(masm); \ | |
| 1560 } \ | |
| 1561 void Builtins::Generate_Make##C##CodeYoungAgainOddMarking( \ | |
| 1562 MacroAssembler* masm) { \ | |
| 1563 GenerateMakeCodeYoungAgainCommon(masm); \ | |
| 1564 } | 1559 } |
| 1565 CODE_AGE_LIST(DEFINE_CODE_AGE_BUILTIN_GENERATOR) | 1560 CODE_AGE_LIST(DEFINE_CODE_AGE_BUILTIN_GENERATOR) |
| 1566 #undef DEFINE_CODE_AGE_BUILTIN_GENERATOR | 1561 #undef DEFINE_CODE_AGE_BUILTIN_GENERATOR |
| 1567 | 1562 |
| 1568 void Builtins::Generate_MarkCodeAsExecutedOnce(MacroAssembler* masm) { | 1563 void Builtins::Generate_MarkCodeAsExecutedOnce(MacroAssembler* masm) { |
| 1569 // For now, as in GenerateMakeCodeYoungAgainCommon, we are relying on the fact | 1564 // For now, as in GenerateMakeCodeYoungAgainCommon, we are relying on the fact |
| 1570 // that make_code_young doesn't do any garbage collection which allows us to | 1565 // that make_code_young doesn't do any garbage collection which allows us to |
| 1571 // save/restore the registers without worrying about which of them contain | 1566 // save/restore the registers without worrying about which of them contain |
| 1572 // pointers. | 1567 // pointers. |
| 1573 | 1568 |
| (...skipping 1396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2970 __ break_(0xCC); | 2965 __ break_(0xCC); |
| 2971 } | 2966 } |
| 2972 } | 2967 } |
| 2973 | 2968 |
| 2974 #undef __ | 2969 #undef __ |
| 2975 | 2970 |
| 2976 } // namespace internal | 2971 } // namespace internal |
| 2977 } // namespace v8 | 2972 } // namespace v8 |
| 2978 | 2973 |
| 2979 #endif // V8_TARGET_ARCH_MIPS64 | 2974 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |