| 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_X87 | 5 #if V8_TARGET_ARCH_X87 |
| 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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 } | 312 } |
| 313 | 313 |
| 314 if (FLAG_trace) { | 314 if (FLAG_trace) { |
| 315 __ CallRuntime(Runtime::kTraceEnter, 0); | 315 __ CallRuntime(Runtime::kTraceEnter, 0); |
| 316 } | 316 } |
| 317 | 317 |
| 318 // Visit the declarations and body unless there is an illegal | 318 // Visit the declarations and body unless there is an illegal |
| 319 // redeclaration. | 319 // redeclaration. |
| 320 if (scope()->HasIllegalRedeclaration()) { | 320 if (scope()->HasIllegalRedeclaration()) { |
| 321 Comment cmnt(masm_, "[ Declarations"); | 321 Comment cmnt(masm_, "[ Declarations"); |
| 322 scope()->VisitIllegalRedeclaration(this); | 322 VisitForEffect(scope()->GetIllegalRedeclaration()); |
| 323 | 323 |
| 324 } else { | 324 } else { |
| 325 PrepareForBailoutForId(BailoutId::FunctionEntry(), NO_REGISTERS); | 325 PrepareForBailoutForId(BailoutId::FunctionEntry(), NO_REGISTERS); |
| 326 { Comment cmnt(masm_, "[ Declarations"); | 326 { Comment cmnt(masm_, "[ Declarations"); |
| 327 VisitDeclarations(scope()->declarations()); | 327 VisitDeclarations(scope()->declarations()); |
| 328 } | 328 } |
| 329 | 329 |
| 330 // Assert that the declarations do not use ICs. Otherwise the debugger | 330 // Assert that the declarations do not use ICs. Otherwise the debugger |
| 331 // won't be able to redirect a PC at an IC to the correct IC in newly | 331 // won't be able to redirect a PC at an IC to the correct IC in newly |
| 332 // recompiled code. | 332 // recompiled code. |
| (...skipping 4885 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5218 Assembler::target_address_at(call_target_address, | 5218 Assembler::target_address_at(call_target_address, |
| 5219 unoptimized_code)); | 5219 unoptimized_code)); |
| 5220 return OSR_AFTER_STACK_CHECK; | 5220 return OSR_AFTER_STACK_CHECK; |
| 5221 } | 5221 } |
| 5222 | 5222 |
| 5223 | 5223 |
| 5224 } // namespace internal | 5224 } // namespace internal |
| 5225 } // namespace v8 | 5225 } // namespace v8 |
| 5226 | 5226 |
| 5227 #endif // V8_TARGET_ARCH_X87 | 5227 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |