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

Side by Side Diff: src/full-codegen/x64/full-codegen-x64.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/ppc/full-codegen-ppc.cc ('k') | src/full-codegen/x87/full-codegen-x87.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_X64 5 #if V8_TARGET_ARCH_X64
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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 SetVar(arguments, rax, rbx, rdx); 280 SetVar(arguments, rax, rbx, rdx);
281 } 281 }
282 282
283 if (FLAG_trace) { 283 if (FLAG_trace) {
284 __ CallRuntime(Runtime::kTraceEnter); 284 __ CallRuntime(Runtime::kTraceEnter);
285 } 285 }
286 286
287 // Visit the declarations and body unless there is an illegal 287 // Visit the declarations and body unless there is an illegal
288 // redeclaration. 288 // redeclaration.
289 if (scope()->HasIllegalRedeclaration()) { 289 if (scope()->HasIllegalRedeclaration()) {
290 Comment cmnt(masm_, "[ Declarations"); 290 EmitIllegalRedeclaration();
291 VisitForEffect(scope()->GetIllegalRedeclaration());
292
293 } else { 291 } else {
294 PrepareForBailoutForId(BailoutId::FunctionEntry(), NO_REGISTERS); 292 PrepareForBailoutForId(BailoutId::FunctionEntry(), NO_REGISTERS);
295 { Comment cmnt(masm_, "[ Declarations"); 293 { Comment cmnt(masm_, "[ Declarations");
296 VisitDeclarations(scope()->declarations()); 294 VisitDeclarations(scope()->declarations());
297 } 295 }
298 296
299 // Assert that the declarations do not use ICs. Otherwise the debugger 297 // Assert that the declarations do not use ICs. Otherwise the debugger
300 // won't be able to redirect a PC at an IC to the correct IC in newly 298 // won't be able to redirect a PC at an IC to the correct IC in newly
301 // recompiled code. 299 // recompiled code.
302 DCHECK_EQ(0, ic_total_count_); 300 DCHECK_EQ(0, ic_total_count_);
(...skipping 3767 matching lines...) Expand 10 before | Expand all | Expand 10 after
4070 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), 4068 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
4071 Assembler::target_address_at(call_target_address, 4069 Assembler::target_address_at(call_target_address,
4072 unoptimized_code)); 4070 unoptimized_code));
4073 return OSR_AFTER_STACK_CHECK; 4071 return OSR_AFTER_STACK_CHECK;
4074 } 4072 }
4075 4073
4076 } // namespace internal 4074 } // namespace internal
4077 } // namespace v8 4075 } // namespace v8
4078 4076
4079 #endif // V8_TARGET_ARCH_X64 4077 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/full-codegen/ppc/full-codegen-ppc.cc ('k') | src/full-codegen/x87/full-codegen-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698