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

Side by Side Diff: src/ia32/virtual-frame-ia32.cc

Issue 561049: Using RelocInfo instead of DebuggerStatementStub (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 10 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/virtual-frame-ia32.h ('k') | src/x64/codegen-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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 835 matching lines...) Expand 10 before | Expand all | Expand 10 after
846 Result VirtualFrame::CallRuntime(Runtime::FunctionId id, int arg_count) { 846 Result VirtualFrame::CallRuntime(Runtime::FunctionId id, int arg_count) {
847 PrepareForCall(arg_count, arg_count); 847 PrepareForCall(arg_count, arg_count);
848 ASSERT(cgen()->HasValidEntryRegisters()); 848 ASSERT(cgen()->HasValidEntryRegisters());
849 __ CallRuntime(id, arg_count); 849 __ CallRuntime(id, arg_count);
850 Result result = cgen()->allocator()->Allocate(eax); 850 Result result = cgen()->allocator()->Allocate(eax);
851 ASSERT(result.is_valid()); 851 ASSERT(result.is_valid());
852 return result; 852 return result;
853 } 853 }
854 854
855 855
856 #ifdef ENABLE_DEBUGGER_SUPPORT
857 void VirtualFrame::DebugBreak() {
858 PrepareForCall(0, 0);
859 ASSERT(cgen()->HasValidEntryRegisters());
860 __ DebugBreak();
861 Result result = cgen()->allocator()->Allocate(eax);
862 ASSERT(result.is_valid());
863 }
864 #endif
865
866
856 Result VirtualFrame::InvokeBuiltin(Builtins::JavaScript id, 867 Result VirtualFrame::InvokeBuiltin(Builtins::JavaScript id,
857 InvokeFlag flag, 868 InvokeFlag flag,
858 int arg_count) { 869 int arg_count) {
859 PrepareForCall(arg_count, arg_count); 870 PrepareForCall(arg_count, arg_count);
860 ASSERT(cgen()->HasValidEntryRegisters()); 871 ASSERT(cgen()->HasValidEntryRegisters());
861 __ InvokeBuiltin(id, flag); 872 __ InvokeBuiltin(id, flag);
862 Result result = cgen()->allocator()->Allocate(eax); 873 Result result = cgen()->allocator()->Allocate(eax);
863 ASSERT(result.is_valid()); 874 ASSERT(result.is_valid());
864 return result; 875 return result;
865 } 876 }
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
1110 ASSERT(stack_pointer_ == element_count() - 1); 1121 ASSERT(stack_pointer_ == element_count() - 1);
1111 elements_.Add(FrameElement::MemoryElement()); 1122 elements_.Add(FrameElement::MemoryElement());
1112 stack_pointer_++; 1123 stack_pointer_++;
1113 __ push(immediate); 1124 __ push(immediate);
1114 } 1125 }
1115 1126
1116 1127
1117 #undef __ 1128 #undef __
1118 1129
1119 } } // namespace v8::internal 1130 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/virtual-frame-ia32.h ('k') | src/x64/codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698