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

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

Issue 23600072: Delete Runtime_NotifyOSR. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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 | « no previous file | src/builtins.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 873 matching lines...) Expand 10 before | Expand all | Expand 10 after
884 void Builtins::Generate_NotifySoftDeoptimized(MacroAssembler* masm) { 884 void Builtins::Generate_NotifySoftDeoptimized(MacroAssembler* masm) {
885 Generate_NotifyDeoptimizedHelper(masm, Deoptimizer::SOFT); 885 Generate_NotifyDeoptimizedHelper(masm, Deoptimizer::SOFT);
886 } 886 }
887 887
888 888
889 void Builtins::Generate_NotifyLazyDeoptimized(MacroAssembler* masm) { 889 void Builtins::Generate_NotifyLazyDeoptimized(MacroAssembler* masm) {
890 Generate_NotifyDeoptimizedHelper(masm, Deoptimizer::LAZY); 890 Generate_NotifyDeoptimizedHelper(masm, Deoptimizer::LAZY);
891 } 891 }
892 892
893 893
894 void Builtins::Generate_NotifyOSR(MacroAssembler* masm) {
895 // For now, we are relying on the fact that Runtime::NotifyOSR
896 // doesn't do any garbage collection which allows us to save/restore
897 // the registers without worrying about which of them contain
898 // pointers. This seems a bit fragile.
899 __ stm(db_w, sp, kJSCallerSaved | kCalleeSaved | lr.bit() | fp.bit());
900 {
901 FrameScope scope(masm, StackFrame::INTERNAL);
902 __ CallRuntime(Runtime::kNotifyOSR, 0);
903 }
904 __ ldm(ia_w, sp, kJSCallerSaved | kCalleeSaved | lr.bit() | fp.bit());
905 __ Ret();
906 }
907
908
909 void Builtins::Generate_OnStackReplacement(MacroAssembler* masm) { 894 void Builtins::Generate_OnStackReplacement(MacroAssembler* masm) {
910 // Lookup the function in the JavaScript frame. 895 // Lookup the function in the JavaScript frame.
911 __ ldr(r0, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); 896 __ ldr(r0, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset));
912 { 897 {
913 FrameScope scope(masm, StackFrame::INTERNAL); 898 FrameScope scope(masm, StackFrame::INTERNAL);
914 // Lookup and calculate pc offset. 899 // Lookup and calculate pc offset.
915 __ ldr(r1, MemOperand(fp, StandardFrameConstants::kCallerPCOffset)); 900 __ ldr(r1, MemOperand(fp, StandardFrameConstants::kCallerPCOffset));
916 __ ldr(r2, FieldMemOperand(r0, JSFunction::kSharedFunctionInfoOffset)); 901 __ ldr(r2, FieldMemOperand(r0, JSFunction::kSharedFunctionInfoOffset));
917 __ ldr(r2, FieldMemOperand(r2, SharedFunctionInfo::kCodeOffset)); 902 __ ldr(r2, FieldMemOperand(r2, SharedFunctionInfo::kCodeOffset));
918 __ sub(r1, r1, Operand(Code::kHeaderSize - kHeapObjectTag)); 903 __ sub(r1, r1, Operand(Code::kHeaderSize - kHeapObjectTag));
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
1433 __ bind(&dont_adapt_arguments); 1418 __ bind(&dont_adapt_arguments);
1434 __ Jump(r3); 1419 __ Jump(r3);
1435 } 1420 }
1436 1421
1437 1422
1438 #undef __ 1423 #undef __
1439 1424
1440 } } // namespace v8::internal 1425 } } // namespace v8::internal
1441 1426
1442 #endif // V8_TARGET_ARCH_ARM 1427 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/builtins.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698