| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_PPC | 5 #if V8_TARGET_ARCH_PPC |
| 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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 } | 326 } |
| 327 | 327 |
| 328 if (FLAG_trace) { | 328 if (FLAG_trace) { |
| 329 __ CallRuntime(Runtime::kTraceEnter, 0); | 329 __ CallRuntime(Runtime::kTraceEnter, 0); |
| 330 } | 330 } |
| 331 | 331 |
| 332 // Visit the declarations and body unless there is an illegal | 332 // Visit the declarations and body unless there is an illegal |
| 333 // redeclaration. | 333 // redeclaration. |
| 334 if (scope()->HasIllegalRedeclaration()) { | 334 if (scope()->HasIllegalRedeclaration()) { |
| 335 Comment cmnt(masm_, "[ Declarations"); | 335 Comment cmnt(masm_, "[ Declarations"); |
| 336 scope()->VisitIllegalRedeclaration(this); | 336 VisitForEffect(scope()->GetIllegalRedeclaration()); |
| 337 | 337 |
| 338 } else { | 338 } else { |
| 339 PrepareForBailoutForId(BailoutId::FunctionEntry(), NO_REGISTERS); | 339 PrepareForBailoutForId(BailoutId::FunctionEntry(), NO_REGISTERS); |
| 340 { | 340 { |
| 341 Comment cmnt(masm_, "[ Declarations"); | 341 Comment cmnt(masm_, "[ Declarations"); |
| 342 VisitDeclarations(scope()->declarations()); | 342 VisitDeclarations(scope()->declarations()); |
| 343 } | 343 } |
| 344 | 344 |
| 345 // Assert that the declarations do not use ICs. Otherwise the debugger | 345 // Assert that the declarations do not use ICs. Otherwise the debugger |
| 346 // won't be able to redirect a PC at an IC to the correct IC in newly | 346 // won't be able to redirect a PC at an IC to the correct IC in newly |
| (...skipping 4947 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5294 return ON_STACK_REPLACEMENT; | 5294 return ON_STACK_REPLACEMENT; |
| 5295 } | 5295 } |
| 5296 | 5296 |
| 5297 DCHECK(interrupt_address == | 5297 DCHECK(interrupt_address == |
| 5298 isolate->builtins()->OsrAfterStackCheck()->entry()); | 5298 isolate->builtins()->OsrAfterStackCheck()->entry()); |
| 5299 return OSR_AFTER_STACK_CHECK; | 5299 return OSR_AFTER_STACK_CHECK; |
| 5300 } | 5300 } |
| 5301 } // namespace internal | 5301 } // namespace internal |
| 5302 } // namespace v8 | 5302 } // namespace v8 |
| 5303 #endif // V8_TARGET_ARCH_PPC | 5303 #endif // V8_TARGET_ARCH_PPC |
| OLD | NEW |