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

Side by Side Diff: src/full-codegen/ia32/full-codegen-ia32.cc

Issue 1759603002: [debugger] Ensure at least one breakable position per function. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 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/full-codegen/full-codegen.cc ('k') | src/full-codegen/mips/full-codegen-mips.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 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 #if V8_TARGET_ARCH_IA32 5 #if V8_TARGET_ARCH_IA32
6 6
7 #include "src/ast/scopes.h" 7 #include "src/ast/scopes.h"
8 #include "src/code-factory.h" 8 #include "src/code-factory.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 SetVar(arguments, eax, ebx, edx); 284 SetVar(arguments, eax, ebx, edx);
285 } 285 }
286 286
287 if (FLAG_trace) { 287 if (FLAG_trace) {
288 __ CallRuntime(Runtime::kTraceEnter); 288 __ CallRuntime(Runtime::kTraceEnter);
289 } 289 }
290 290
291 // Visit the declarations and body unless there is an illegal 291 // Visit the declarations and body unless there is an illegal
292 // redeclaration. 292 // redeclaration.
293 if (scope()->HasIllegalRedeclaration()) { 293 if (scope()->HasIllegalRedeclaration()) {
294 Comment cmnt(masm_, "[ Declarations"); 294 EmitIllegalRedeclaration();
295 VisitForEffect(scope()->GetIllegalRedeclaration());
296
297 } else { 295 } else {
298 PrepareForBailoutForId(BailoutId::FunctionEntry(), NO_REGISTERS); 296 PrepareForBailoutForId(BailoutId::FunctionEntry(), NO_REGISTERS);
299 { Comment cmnt(masm_, "[ Declarations"); 297 { Comment cmnt(masm_, "[ Declarations");
300 VisitDeclarations(scope()->declarations()); 298 VisitDeclarations(scope()->declarations());
301 } 299 }
302 300
303 // Assert that the declarations do not use ICs. Otherwise the debugger 301 // Assert that the declarations do not use ICs. Otherwise the debugger
304 // won't be able to redirect a PC at an IC to the correct IC in newly 302 // won't be able to redirect a PC at an IC to the correct IC in newly
305 // recompiled code. 303 // recompiled code.
306 DCHECK_EQ(0, ic_total_count_); 304 DCHECK_EQ(0, ic_total_count_);
(...skipping 3777 matching lines...) Expand 10 before | Expand all | Expand 10 after
4084 Assembler::target_address_at(call_target_address, 4082 Assembler::target_address_at(call_target_address,
4085 unoptimized_code)); 4083 unoptimized_code));
4086 return OSR_AFTER_STACK_CHECK; 4084 return OSR_AFTER_STACK_CHECK;
4087 } 4085 }
4088 4086
4089 4087
4090 } // namespace internal 4088 } // namespace internal
4091 } // namespace v8 4089 } // namespace v8
4092 4090
4093 #endif // V8_TARGET_ARCH_IA32 4091 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/full-codegen/full-codegen.cc ('k') | src/full-codegen/mips/full-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698