| 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 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 568 GenerateMakeCodeYoungAgainCommon(masm); \ | 568 GenerateMakeCodeYoungAgainCommon(masm); \ |
| 569 } \ | 569 } \ |
| 570 void Builtins::Generate_Make##C##CodeYoungAgainOddMarking( \ | 570 void Builtins::Generate_Make##C##CodeYoungAgainOddMarking( \ |
| 571 MacroAssembler* masm) { \ | 571 MacroAssembler* masm) { \ |
| 572 GenerateMakeCodeYoungAgainCommon(masm); \ | 572 GenerateMakeCodeYoungAgainCommon(masm); \ |
| 573 } | 573 } |
| 574 CODE_AGE_LIST(DEFINE_CODE_AGE_BUILTIN_GENERATOR) | 574 CODE_AGE_LIST(DEFINE_CODE_AGE_BUILTIN_GENERATOR) |
| 575 #undef DEFINE_CODE_AGE_BUILTIN_GENERATOR | 575 #undef DEFINE_CODE_AGE_BUILTIN_GENERATOR |
| 576 | 576 |
| 577 | 577 |
| 578 void Builtins::Generate_NotifyICMiss(MacroAssembler* masm) { | 578 void Builtins::Generate_NotifyStubFailure(MacroAssembler* masm) { |
| 579 // Enter an internal frame. | 579 // Enter an internal frame. |
| 580 { | 580 { |
| 581 FrameScope scope(masm, StackFrame::INTERNAL); | 581 FrameScope scope(masm, StackFrame::INTERNAL); |
| 582 | 582 |
| 583 // Preserve registers across notification, this is important for compiled | 583 // Preserve registers across notification, this is important for compiled |
| 584 // stubs that tail call the runtime on deopts passing their parameters in | 584 // stubs that tail call the runtime on deopts passing their parameters in |
| 585 // registers. | 585 // registers. |
| 586 __ pushad(); | 586 __ pushad(); |
| 587 __ CallRuntime(Runtime::kNotifyICMiss, 0); | 587 __ CallRuntime(Runtime::kNotifyStubFailure, 0); |
| 588 __ popad(); | 588 __ popad(); |
| 589 // Tear down internal frame. | 589 // Tear down internal frame. |
| 590 } | 590 } |
| 591 | 591 |
| 592 __ pop(MemOperand(esp, 0)); // Ignore state offset | 592 __ pop(MemOperand(esp, 0)); // Ignore state offset |
| 593 __ ret(0); // Return to IC Miss stub, continuation still on stack. | 593 __ ret(0); // Return to IC Miss stub, continuation still on stack. |
| 594 } | 594 } |
| 595 | 595 |
| 596 | 596 |
| 597 static void Generate_NotifyDeoptimizedHelper(MacroAssembler* masm, | 597 static void Generate_NotifyDeoptimizedHelper(MacroAssembler* masm, |
| (...skipping 1226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1824 Deoptimizer::EntryGenerator generator(masm, Deoptimizer::OSR); | 1824 Deoptimizer::EntryGenerator generator(masm, Deoptimizer::OSR); |
| 1825 generator.Generate(); | 1825 generator.Generate(); |
| 1826 } | 1826 } |
| 1827 | 1827 |
| 1828 | 1828 |
| 1829 #undef __ | 1829 #undef __ |
| 1830 } | 1830 } |
| 1831 } // namespace v8::internal | 1831 } // namespace v8::internal |
| 1832 | 1832 |
| 1833 #endif // V8_TARGET_ARCH_IA32 | 1833 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |