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

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

Issue 23600072: Delete Runtime_NotifyOSR. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 2 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/ia32/builtins-ia32.cc ('k') | src/runtime.h » ('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 906 matching lines...) Expand 10 before | Expand all | Expand 10 after
917 void Builtins::Generate_NotifySoftDeoptimized(MacroAssembler* masm) { 917 void Builtins::Generate_NotifySoftDeoptimized(MacroAssembler* masm) {
918 Generate_NotifyDeoptimizedHelper(masm, Deoptimizer::SOFT); 918 Generate_NotifyDeoptimizedHelper(masm, Deoptimizer::SOFT);
919 } 919 }
920 920
921 921
922 void Builtins::Generate_NotifyLazyDeoptimized(MacroAssembler* masm) { 922 void Builtins::Generate_NotifyLazyDeoptimized(MacroAssembler* masm) {
923 Generate_NotifyDeoptimizedHelper(masm, Deoptimizer::LAZY); 923 Generate_NotifyDeoptimizedHelper(masm, Deoptimizer::LAZY);
924 } 924 }
925 925
926 926
927 void Builtins::Generate_NotifyOSR(MacroAssembler* masm) {
928 // For now, we are relying on the fact that Runtime::NotifyOSR
929 // doesn't do any garbage collection which allows us to save/restore
930 // the registers without worrying about which of them contain
931 // pointers. This seems a bit fragile.
932 RegList saved_regs =
933 (kJSCallerSaved | kCalleeSaved | ra.bit() | fp.bit()) & ~sp.bit();
934 __ MultiPush(saved_regs);
935 {
936 FrameScope scope(masm, StackFrame::INTERNAL);
937 __ CallRuntime(Runtime::kNotifyOSR, 0);
938 }
939 __ MultiPop(saved_regs);
940 __ Ret();
941 }
942
943
944 void Builtins::Generate_OnStackReplacement(MacroAssembler* masm) { 927 void Builtins::Generate_OnStackReplacement(MacroAssembler* masm) {
945 // Lookup the function in the JavaScript frame. 928 // Lookup the function in the JavaScript frame.
946 __ lw(a0, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); 929 __ lw(a0, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset));
947 { 930 {
948 FrameScope scope(masm, StackFrame::INTERNAL); 931 FrameScope scope(masm, StackFrame::INTERNAL);
949 // Lookup and calculate pc offset. 932 // Lookup and calculate pc offset.
950 __ lw(a1, MemOperand(fp, StandardFrameConstants::kCallerPCOffset)); 933 __ lw(a1, MemOperand(fp, StandardFrameConstants::kCallerPCOffset));
951 __ lw(a2, FieldMemOperand(a0, JSFunction::kSharedFunctionInfoOffset)); 934 __ lw(a2, FieldMemOperand(a0, JSFunction::kSharedFunctionInfoOffset));
952 __ lw(a2, FieldMemOperand(a2, SharedFunctionInfo::kCodeOffset)); 935 __ lw(a2, FieldMemOperand(a2, SharedFunctionInfo::kCodeOffset));
953 __ Subu(a1, a1, Operand(Code::kHeaderSize - kHeapObjectTag)); 936 __ Subu(a1, a1, Operand(Code::kHeaderSize - kHeapObjectTag));
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
1474 __ bind(&dont_adapt_arguments); 1457 __ bind(&dont_adapt_arguments);
1475 __ Jump(a3); 1458 __ Jump(a3);
1476 } 1459 }
1477 1460
1478 1461
1479 #undef __ 1462 #undef __
1480 1463
1481 } } // namespace v8::internal 1464 } } // namespace v8::internal
1482 1465
1483 #endif // V8_TARGET_ARCH_MIPS 1466 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/ia32/builtins-ia32.cc ('k') | src/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698