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 628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
639 GenerateMakeCodeYoungAgainCommon(masm); \ | 639 GenerateMakeCodeYoungAgainCommon(masm); \ |
640 } \ | 640 } \ |
641 void Builtins::Generate_Make##C##CodeYoungAgainOddMarking( \ | 641 void Builtins::Generate_Make##C##CodeYoungAgainOddMarking( \ |
642 MacroAssembler* masm) { \ | 642 MacroAssembler* masm) { \ |
643 GenerateMakeCodeYoungAgainCommon(masm); \ | 643 GenerateMakeCodeYoungAgainCommon(masm); \ |
644 } | 644 } |
645 CODE_AGE_LIST(DEFINE_CODE_AGE_BUILTIN_GENERATOR) | 645 CODE_AGE_LIST(DEFINE_CODE_AGE_BUILTIN_GENERATOR) |
646 #undef DEFINE_CODE_AGE_BUILTIN_GENERATOR | 646 #undef DEFINE_CODE_AGE_BUILTIN_GENERATOR |
647 | 647 |
648 | 648 |
649 void Builtins::Generate_NotifyICMiss(MacroAssembler* masm) { | 649 void Builtins::Generate_NotifyStubFailure(MacroAssembler* masm) { |
650 // Enter an internal frame. | 650 // Enter an internal frame. |
651 { | 651 { |
652 FrameScope scope(masm, StackFrame::INTERNAL); | 652 FrameScope scope(masm, StackFrame::INTERNAL); |
653 | 653 |
654 // Preserve registers across notification, this is important for compiled | 654 // Preserve registers across notification, this is important for compiled |
655 // stubs that tail call the runtime on deopts passing their parameters in | 655 // stubs that tail call the runtime on deopts passing their parameters in |
656 // registers. | 656 // registers. |
657 __ Pushad(); | 657 __ Pushad(); |
658 __ CallRuntime(Runtime::kNotifyICMiss, 0); | 658 __ CallRuntime(Runtime::kNotifyStubFailure, 0); |
659 __ Popad(); | 659 __ Popad(); |
660 // Tear down internal frame. | 660 // Tear down internal frame. |
661 } | 661 } |
662 | 662 |
663 __ pop(MemOperand(rsp, 0)); // Ignore state offset | 663 __ pop(MemOperand(rsp, 0)); // Ignore state offset |
664 __ ret(0); // Return to IC Miss stub, continuation still on stack. | 664 __ ret(0); // Return to IC Miss stub, continuation still on stack. |
665 } | 665 } |
666 | 666 |
667 | 667 |
668 static void Generate_NotifyDeoptimizedHelper(MacroAssembler* masm, | 668 static void Generate_NotifyDeoptimizedHelper(MacroAssembler* masm, |
(...skipping 1166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1835 Deoptimizer::EntryGenerator generator(masm, Deoptimizer::OSR); | 1835 Deoptimizer::EntryGenerator generator(masm, Deoptimizer::OSR); |
1836 generator.Generate(); | 1836 generator.Generate(); |
1837 } | 1837 } |
1838 | 1838 |
1839 | 1839 |
1840 #undef __ | 1840 #undef __ |
1841 | 1841 |
1842 } } // namespace v8::internal | 1842 } } // namespace v8::internal |
1843 | 1843 |
1844 #endif // V8_TARGET_ARCH_X64 | 1844 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |