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

Side by Side Diff: src/codegen.cc

Issue 1218493005: Debugger: use debug break slots instead of ICs (except for calls). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: addressed comments Created 5 years, 5 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
« no previous file with comments | « src/codegen.h ('k') | src/debug.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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if defined(V8_OS_AIX) 7 #if defined(V8_OS_AIX)
8 #include <fenv.h> 8 #include <fenv.h>
9 #endif 9 #endif
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 } 232 }
233 if (print_source) { 233 if (print_source) {
234 os << "source_position = " << function->start_position() << "\n"; 234 os << "source_position = " << function->start_position() << "\n";
235 } 235 }
236 code->Disassemble(debug_name, os); 236 code->Disassemble(debug_name, os);
237 os << "--- End code ---\n"; 237 os << "--- End code ---\n";
238 } 238 }
239 #endif // ENABLE_DISASSEMBLER 239 #endif // ENABLE_DISASSEMBLER
240 } 240 }
241 241
242
243 bool CodeGenerator::RecordPositions(MacroAssembler* masm,
244 int pos,
245 bool right_here) {
246 if (pos != RelocInfo::kNoPosition) {
247 masm->positions_recorder()->RecordStatementPosition(pos);
248 masm->positions_recorder()->RecordPosition(pos);
249 if (right_here) {
250 return masm->positions_recorder()->WriteRecordedPositions();
251 }
252 }
253 return false;
254 }
255
256 } // namespace internal 242 } // namespace internal
257 } // namespace v8 243 } // namespace v8
OLDNEW
« no previous file with comments | « src/codegen.h ('k') | src/debug.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698