Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(174)

Side by Side Diff: src/x64/builtins-x64.cc

Issue 128303002: Merged r18000, r18013, r18298, r18319 into 3.22 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.22
Patch Set: Fix mips Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/version.cc ('k') | src/x64/deoptimizer-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 645 matching lines...) Expand 10 before | Expand all | Expand 10 after
656 // Jump to point after the code-age stub. 656 // Jump to point after the code-age stub.
657 __ ret(0); 657 __ ret(0);
658 } 658 }
659 659
660 660
661 void Builtins::Generate_MarkCodeAsExecutedTwice(MacroAssembler* masm) { 661 void Builtins::Generate_MarkCodeAsExecutedTwice(MacroAssembler* masm) {
662 GenerateMakeCodeYoungAgainCommon(masm); 662 GenerateMakeCodeYoungAgainCommon(masm);
663 } 663 }
664 664
665 665
666 void Builtins::Generate_NotifyStubFailure(MacroAssembler* masm) { 666 static void Generate_NotifyStubFailureHelper(MacroAssembler* masm,
667 SaveFPRegsMode save_doubles) {
667 // Enter an internal frame. 668 // Enter an internal frame.
668 { 669 {
669 FrameScope scope(masm, StackFrame::INTERNAL); 670 FrameScope scope(masm, StackFrame::INTERNAL);
670 671
671 // Preserve registers across notification, this is important for compiled 672 // Preserve registers across notification, this is important for compiled
672 // stubs that tail call the runtime on deopts passing their parameters in 673 // stubs that tail call the runtime on deopts passing their parameters in
673 // registers. 674 // registers.
674 __ Pushad(); 675 __ Pushad();
675 __ CallRuntime(Runtime::kNotifyStubFailure, 0); 676 __ CallRuntime(Runtime::kNotifyStubFailure, 0, save_doubles);
676 __ Popad(); 677 __ Popad();
677 // Tear down internal frame. 678 // Tear down internal frame.
678 } 679 }
679 680
680 __ pop(MemOperand(rsp, 0)); // Ignore state offset 681 __ pop(MemOperand(rsp, 0)); // Ignore state offset
681 __ ret(0); // Return to IC Miss stub, continuation still on stack. 682 __ ret(0); // Return to IC Miss stub, continuation still on stack.
682 } 683 }
683 684
684 685
686 void Builtins::Generate_NotifyStubFailure(MacroAssembler* masm) {
687 Generate_NotifyStubFailureHelper(masm, kDontSaveFPRegs);
688 }
689
690
691 void Builtins::Generate_NotifyStubFailureSaveDoubles(MacroAssembler* masm) {
692 Generate_NotifyStubFailureHelper(masm, kSaveFPRegs);
693 }
694
695
685 static void Generate_NotifyDeoptimizedHelper(MacroAssembler* masm, 696 static void Generate_NotifyDeoptimizedHelper(MacroAssembler* masm,
686 Deoptimizer::BailoutType type) { 697 Deoptimizer::BailoutType type) {
687 // Enter an internal frame. 698 // Enter an internal frame.
688 { 699 {
689 FrameScope scope(masm, StackFrame::INTERNAL); 700 FrameScope scope(masm, StackFrame::INTERNAL);
690 701
691 // Pass the deoptimization type to the runtime system. 702 // Pass the deoptimization type to the runtime system.
692 __ Push(Smi::FromInt(static_cast<int>(type))); 703 __ Push(Smi::FromInt(static_cast<int>(type)));
693 704
694 __ CallRuntime(Runtime::kNotifyDeoptimized, 1); 705 __ CallRuntime(Runtime::kNotifyDeoptimized, 1);
(...skipping 742 matching lines...) Expand 10 before | Expand all | Expand 10 after
1437 __ bind(&ok); 1448 __ bind(&ok);
1438 __ ret(0); 1449 __ ret(0);
1439 } 1450 }
1440 1451
1441 1452
1442 #undef __ 1453 #undef __
1443 1454
1444 } } // namespace v8::internal 1455 } } // namespace v8::internal
1445 1456
1446 #endif // V8_TARGET_ARCH_X64 1457 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/version.cc ('k') | src/x64/deoptimizer-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698