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

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

Issue 132193005: Merged r16772, r18000, r18030, r18298, r18319 into 3.21 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.21
Patch Set: 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/arm/assembler-arm.h ('k') | src/arm/deoptimizer-arm.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 811 matching lines...) Expand 10 before | Expand all | Expand 10 after
822 MacroAssembler* masm) { \ 822 MacroAssembler* masm) { \
823 GenerateMakeCodeYoungAgainCommon(masm); \ 823 GenerateMakeCodeYoungAgainCommon(masm); \
824 } \ 824 } \
825 void Builtins::Generate_Make##C##CodeYoungAgainOddMarking( \ 825 void Builtins::Generate_Make##C##CodeYoungAgainOddMarking( \
826 MacroAssembler* masm) { \ 826 MacroAssembler* masm) { \
827 GenerateMakeCodeYoungAgainCommon(masm); \ 827 GenerateMakeCodeYoungAgainCommon(masm); \
828 } 828 }
829 CODE_AGE_LIST(DEFINE_CODE_AGE_BUILTIN_GENERATOR) 829 CODE_AGE_LIST(DEFINE_CODE_AGE_BUILTIN_GENERATOR)
830 #undef DEFINE_CODE_AGE_BUILTIN_GENERATOR 830 #undef DEFINE_CODE_AGE_BUILTIN_GENERATOR
831 831
832 832 static void Generate_NotifyStubFailureHelper(MacroAssembler* masm,
833 void Builtins::Generate_NotifyStubFailure(MacroAssembler* masm) { 833 SaveFPRegsMode save_doubles) {
834 { 834 {
835 FrameScope scope(masm, StackFrame::INTERNAL); 835 FrameScope scope(masm, StackFrame::INTERNAL);
836 836
837 // Preserve registers across notification, this is important for compiled 837 // Preserve registers across notification, this is important for compiled
838 // stubs that tail call the runtime on deopts passing their parameters in 838 // stubs that tail call the runtime on deopts passing their parameters in
839 // registers. 839 // registers.
840 __ stm(db_w, sp, kJSCallerSaved | kCalleeSaved); 840 __ stm(db_w, sp, kJSCallerSaved | kCalleeSaved);
841 // Pass the function and deoptimization type to the runtime system. 841 // Pass the function and deoptimization type to the runtime system.
842 __ CallRuntime(Runtime::kNotifyStubFailure, 0); 842 __ CallRuntime(Runtime::kNotifyStubFailure, 0, save_doubles);
843 __ ldm(ia_w, sp, kJSCallerSaved | kCalleeSaved); 843 __ ldm(ia_w, sp, kJSCallerSaved | kCalleeSaved);
844 } 844 }
845 845
846 __ add(sp, sp, Operand(kPointerSize)); // Ignore state 846 __ add(sp, sp, Operand(kPointerSize)); // Ignore state
847 __ mov(pc, lr); // Jump to miss handler 847 __ mov(pc, lr); // Jump to miss handler
848 } 848 }
849 849
850 850
851 void Builtins::Generate_NotifyStubFailure(MacroAssembler* masm) {
852 Generate_NotifyStubFailureHelper(masm, kDontSaveFPRegs);
853 }
854
855
856 void Builtins::Generate_NotifyStubFailureSaveDoubles(MacroAssembler* masm) {
857 Generate_NotifyStubFailureHelper(masm, kSaveFPRegs);
858 }
859
860
851 static void Generate_NotifyDeoptimizedHelper(MacroAssembler* masm, 861 static void Generate_NotifyDeoptimizedHelper(MacroAssembler* masm,
852 Deoptimizer::BailoutType type) { 862 Deoptimizer::BailoutType type) {
853 { 863 {
854 FrameScope scope(masm, StackFrame::INTERNAL); 864 FrameScope scope(masm, StackFrame::INTERNAL);
855 // Pass the function and deoptimization type to the runtime system. 865 // Pass the function and deoptimization type to the runtime system.
856 __ mov(r0, Operand(Smi::FromInt(static_cast<int>(type)))); 866 __ mov(r0, Operand(Smi::FromInt(static_cast<int>(type))));
857 __ push(r0); 867 __ push(r0);
858 __ CallRuntime(Runtime::kNotifyDeoptimized, 1); 868 __ CallRuntime(Runtime::kNotifyDeoptimized, 1);
859 } 869 }
860 870
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after
1437 __ bind(&dont_adapt_arguments); 1447 __ bind(&dont_adapt_arguments);
1438 __ Jump(r3); 1448 __ Jump(r3);
1439 } 1449 }
1440 1450
1441 1451
1442 #undef __ 1452 #undef __
1443 1453
1444 } } // namespace v8::internal 1454 } } // namespace v8::internal
1445 1455
1446 #endif // V8_TARGET_ARCH_ARM 1456 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/assembler-arm.h ('k') | src/arm/deoptimizer-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698