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/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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 SetVar(arguments, r3, r4, r5); | 295 SetVar(arguments, r3, r4, r5); |
296 } | 296 } |
297 | 297 |
298 if (FLAG_trace) { | 298 if (FLAG_trace) { |
299 __ CallRuntime(Runtime::kTraceEnter); | 299 __ CallRuntime(Runtime::kTraceEnter); |
300 } | 300 } |
301 | 301 |
302 // Visit the declarations and body unless there is an illegal | 302 // Visit the declarations and body unless there is an illegal |
303 // redeclaration. | 303 // redeclaration. |
304 if (scope()->HasIllegalRedeclaration()) { | 304 if (scope()->HasIllegalRedeclaration()) { |
305 Comment cmnt(masm_, "[ Declarations"); | 305 EmitIllegalRedeclaration(); |
306 VisitForEffect(scope()->GetIllegalRedeclaration()); | |
307 | |
308 } else { | 306 } else { |
309 PrepareForBailoutForId(BailoutId::FunctionEntry(), NO_REGISTERS); | 307 PrepareForBailoutForId(BailoutId::FunctionEntry(), NO_REGISTERS); |
310 { | 308 { |
311 Comment cmnt(masm_, "[ Declarations"); | 309 Comment cmnt(masm_, "[ Declarations"); |
312 VisitDeclarations(scope()->declarations()); | 310 VisitDeclarations(scope()->declarations()); |
313 } | 311 } |
314 | 312 |
315 // Assert that the declarations do not use ICs. Otherwise the debugger | 313 // Assert that the declarations do not use ICs. Otherwise the debugger |
316 // won't be able to redirect a PC at an IC to the correct IC in newly | 314 // won't be able to redirect a PC at an IC to the correct IC in newly |
317 // recompiled code. | 315 // recompiled code. |
(...skipping 3859 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4177 return ON_STACK_REPLACEMENT; | 4175 return ON_STACK_REPLACEMENT; |
4178 } | 4176 } |
4179 | 4177 |
4180 DCHECK(interrupt_address == | 4178 DCHECK(interrupt_address == |
4181 isolate->builtins()->OsrAfterStackCheck()->entry()); | 4179 isolate->builtins()->OsrAfterStackCheck()->entry()); |
4182 return OSR_AFTER_STACK_CHECK; | 4180 return OSR_AFTER_STACK_CHECK; |
4183 } | 4181 } |
4184 } // namespace internal | 4182 } // namespace internal |
4185 } // namespace v8 | 4183 } // namespace v8 |
4186 #endif // V8_TARGET_ARCH_PPC | 4184 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |