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

Side by Side Diff: src/x64/codegen-x64.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.cc ('k') | src/x64/macro-assembler-x64.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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 2200 matching lines...) Expand 10 before | Expand all | Expand 10 after
2211 2211
2212 2212
2213 void CodeGenerator::VisitDebuggerStatement(DebuggerStatement* node) { 2213 void CodeGenerator::VisitDebuggerStatement(DebuggerStatement* node) {
2214 ASSERT(!in_spilled_code()); 2214 ASSERT(!in_spilled_code());
2215 Comment cmnt(masm_, "[ DebuggerStatement"); 2215 Comment cmnt(masm_, "[ DebuggerStatement");
2216 CodeForStatementPosition(node); 2216 CodeForStatementPosition(node);
2217 #ifdef ENABLE_DEBUGGER_SUPPORT 2217 #ifdef ENABLE_DEBUGGER_SUPPORT
2218 // Spill everything, even constants, to the frame. 2218 // Spill everything, even constants, to the frame.
2219 frame_->SpillAll(); 2219 frame_->SpillAll();
2220 2220
2221 DebuggerStatementStub ces; 2221 frame_->DebugBreak();
2222 frame_->CallStub(&ces, 0);
2223 // Ignore the return value. 2222 // Ignore the return value.
2224 #endif 2223 #endif
2225 } 2224 }
2226 2225
2227 2226
2228 void CodeGenerator::InstantiateBoilerplate(Handle<JSFunction> boilerplate) { 2227 void CodeGenerator::InstantiateBoilerplate(Handle<JSFunction> boilerplate) {
2229 ASSERT(boilerplate->IsBoilerplate()); 2228 ASSERT(boilerplate->IsBoilerplate());
2230 2229
2231 // The inevitable call will sync frame elements to memory anyway, so 2230 // The inevitable call will sync frame elements to memory anyway, so
2232 // we do it eagerly to allow us to push the arguments directly into 2231 // we do it eagerly to allow us to push the arguments directly into
(...skipping 6958 matching lines...) Expand 10 before | Expand all | Expand 10 after
9191 // Call the function from C++. 9190 // Call the function from C++.
9192 return FUNCTION_CAST<ModuloFunction>(buffer); 9191 return FUNCTION_CAST<ModuloFunction>(buffer);
9193 } 9192 }
9194 9193
9195 #endif 9194 #endif
9196 9195
9197 9196
9198 #undef __ 9197 #undef __
9199 9198
9200 } } // namespace v8::internal 9199 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/virtual-frame-ia32.cc ('k') | src/x64/macro-assembler-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698