| OLD | NEW |
| 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/code-factory.h" | 7 #include "src/code-factory.h" |
| 8 #include "src/code-stubs.h" | 8 #include "src/code-stubs.h" |
| 9 #include "src/codegen.h" | 9 #include "src/codegen.h" |
| 10 #include "src/compiler.h" | 10 #include "src/compiler.h" |
| (...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 } | 313 } |
| 314 | 314 |
| 315 if (FLAG_trace) { | 315 if (FLAG_trace) { |
| 316 __ CallRuntime(Runtime::kTraceEnter, 0); | 316 __ CallRuntime(Runtime::kTraceEnter, 0); |
| 317 } | 317 } |
| 318 | 318 |
| 319 // Visit the declarations and body unless there is an illegal | 319 // Visit the declarations and body unless there is an illegal |
| 320 // redeclaration. | 320 // redeclaration. |
| 321 if (scope()->HasIllegalRedeclaration()) { | 321 if (scope()->HasIllegalRedeclaration()) { |
| 322 Comment cmnt(masm_, "[ Declarations"); | 322 Comment cmnt(masm_, "[ Declarations"); |
| 323 scope()->VisitIllegalRedeclaration(this); | 323 VisitForEffect(scope()->GetIllegalRedeclaration()); |
| 324 | 324 |
| 325 } else { | 325 } else { |
| 326 PrepareForBailoutForId(BailoutId::FunctionEntry(), NO_REGISTERS); | 326 PrepareForBailoutForId(BailoutId::FunctionEntry(), NO_REGISTERS); |
| 327 { Comment cmnt(masm_, "[ Declarations"); | 327 { Comment cmnt(masm_, "[ Declarations"); |
| 328 VisitDeclarations(scope()->declarations()); | 328 VisitDeclarations(scope()->declarations()); |
| 329 } | 329 } |
| 330 | 330 |
| 331 // Assert that the declarations do not use ICs. Otherwise the debugger | 331 // Assert that the declarations do not use ICs. Otherwise the debugger |
| 332 // won't be able to redirect a PC at an IC to the correct IC in newly | 332 // won't be able to redirect a PC at an IC to the correct IC in newly |
| 333 // recompiled code. | 333 // recompiled code. |
| (...skipping 4901 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5235 Assembler::target_address_at(call_target_address, | 5235 Assembler::target_address_at(call_target_address, |
| 5236 unoptimized_code)); | 5236 unoptimized_code)); |
| 5237 return OSR_AFTER_STACK_CHECK; | 5237 return OSR_AFTER_STACK_CHECK; |
| 5238 } | 5238 } |
| 5239 | 5239 |
| 5240 | 5240 |
| 5241 } // namespace internal | 5241 } // namespace internal |
| 5242 } // namespace v8 | 5242 } // namespace v8 |
| 5243 | 5243 |
| 5244 #endif // V8_TARGET_ARCH_X64 | 5244 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |