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_ARM | 5 #if V8_TARGET_ARCH_ARM |
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 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 } | 314 } |
315 | 315 |
316 if (FLAG_trace) { | 316 if (FLAG_trace) { |
317 __ CallRuntime(Runtime::kTraceEnter, 0); | 317 __ CallRuntime(Runtime::kTraceEnter, 0); |
318 } | 318 } |
319 | 319 |
320 // Visit the declarations and body unless there is an illegal | 320 // Visit the declarations and body unless there is an illegal |
321 // redeclaration. | 321 // redeclaration. |
322 if (scope()->HasIllegalRedeclaration()) { | 322 if (scope()->HasIllegalRedeclaration()) { |
323 Comment cmnt(masm_, "[ Declarations"); | 323 Comment cmnt(masm_, "[ Declarations"); |
324 scope()->VisitIllegalRedeclaration(this); | 324 VisitForEffect(scope()->GetIllegalRedeclaration()); |
325 | 325 |
326 } else { | 326 } else { |
327 PrepareForBailoutForId(BailoutId::FunctionEntry(), NO_REGISTERS); | 327 PrepareForBailoutForId(BailoutId::FunctionEntry(), NO_REGISTERS); |
328 { Comment cmnt(masm_, "[ Declarations"); | 328 { Comment cmnt(masm_, "[ Declarations"); |
329 VisitDeclarations(scope()->declarations()); | 329 VisitDeclarations(scope()->declarations()); |
330 } | 330 } |
331 | 331 |
332 // Assert that the declarations do not use ICs. Otherwise the debugger | 332 // Assert that the declarations do not use ICs. Otherwise the debugger |
333 // won't be able to redirect a PC at an IC to the correct IC in newly | 333 // won't be able to redirect a PC at an IC to the correct IC in newly |
334 // recompiled code. | 334 // recompiled code. |
(...skipping 5013 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5348 DCHECK(interrupt_address == | 5348 DCHECK(interrupt_address == |
5349 isolate->builtins()->OsrAfterStackCheck()->entry()); | 5349 isolate->builtins()->OsrAfterStackCheck()->entry()); |
5350 return OSR_AFTER_STACK_CHECK; | 5350 return OSR_AFTER_STACK_CHECK; |
5351 } | 5351 } |
5352 | 5352 |
5353 | 5353 |
5354 } // namespace internal | 5354 } // namespace internal |
5355 } // namespace v8 | 5355 } // namespace v8 |
5356 | 5356 |
5357 #endif // V8_TARGET_ARCH_ARM | 5357 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |