| 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/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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 SetVar(arguments, eax, ebx, edx); | 281 SetVar(arguments, eax, ebx, edx); |
| 282 } | 282 } |
| 283 | 283 |
| 284 if (FLAG_trace) { | 284 if (FLAG_trace) { |
| 285 __ CallRuntime(Runtime::kTraceEnter); | 285 __ CallRuntime(Runtime::kTraceEnter); |
| 286 } | 286 } |
| 287 | 287 |
| 288 // Visit the declarations and body unless there is an illegal | 288 // Visit the declarations and body unless there is an illegal |
| 289 // redeclaration. | 289 // redeclaration. |
| 290 if (scope()->HasIllegalRedeclaration()) { | 290 if (scope()->HasIllegalRedeclaration()) { |
| 291 Comment cmnt(masm_, "[ Declarations"); | 291 EmitIllegalRedeclaration(); |
| 292 VisitForEffect(scope()->GetIllegalRedeclaration()); | |
| 293 | |
| 294 } else { | 292 } else { |
| 295 PrepareForBailoutForId(BailoutId::FunctionEntry(), NO_REGISTERS); | 293 PrepareForBailoutForId(BailoutId::FunctionEntry(), NO_REGISTERS); |
| 296 { Comment cmnt(masm_, "[ Declarations"); | 294 { Comment cmnt(masm_, "[ Declarations"); |
| 297 VisitDeclarations(scope()->declarations()); | 295 VisitDeclarations(scope()->declarations()); |
| 298 } | 296 } |
| 299 | 297 |
| 300 // Assert that the declarations do not use ICs. Otherwise the debugger | 298 // Assert that the declarations do not use ICs. Otherwise the debugger |
| 301 // won't be able to redirect a PC at an IC to the correct IC in newly | 299 // won't be able to redirect a PC at an IC to the correct IC in newly |
| 302 // recompiled code. | 300 // recompiled code. |
| 303 DCHECK_EQ(0, ic_total_count_); | 301 DCHECK_EQ(0, ic_total_count_); |
| (...skipping 3772 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4076 Assembler::target_address_at(call_target_address, | 4074 Assembler::target_address_at(call_target_address, |
| 4077 unoptimized_code)); | 4075 unoptimized_code)); |
| 4078 return OSR_AFTER_STACK_CHECK; | 4076 return OSR_AFTER_STACK_CHECK; |
| 4079 } | 4077 } |
| 4080 | 4078 |
| 4081 | 4079 |
| 4082 } // namespace internal | 4080 } // namespace internal |
| 4083 } // namespace v8 | 4081 } // namespace v8 |
| 4084 | 4082 |
| 4085 #endif // V8_TARGET_ARCH_X87 | 4083 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |