| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_ARM64 | 7 #if V8_TARGET_ARCH_ARM64 |
| 8 | 8 |
| 9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
| 10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
| (...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 | 343 |
| 344 // Visit the declarations and body unless there is an illegal | 344 // Visit the declarations and body unless there is an illegal |
| 345 // redeclaration. | 345 // redeclaration. |
| 346 if (scope()->HasIllegalRedeclaration()) { | 346 if (scope()->HasIllegalRedeclaration()) { |
| 347 Comment cmnt(masm_, "[ Declarations"); | 347 Comment cmnt(masm_, "[ Declarations"); |
| 348 scope()->VisitIllegalRedeclaration(this); | 348 scope()->VisitIllegalRedeclaration(this); |
| 349 | 349 |
| 350 } else { | 350 } else { |
| 351 PrepareForBailoutForId(BailoutId::FunctionEntry(), NO_REGISTERS); | 351 PrepareForBailoutForId(BailoutId::FunctionEntry(), NO_REGISTERS); |
| 352 { Comment cmnt(masm_, "[ Declarations"); | 352 { Comment cmnt(masm_, "[ Declarations"); |
| 353 if (scope()->is_function_scope() && scope()->function() != NULL) { | |
| 354 VariableDeclaration* function = scope()->function(); | |
| 355 DCHECK(function->proxy()->var()->mode() == CONST || | |
| 356 function->proxy()->var()->mode() == CONST_LEGACY); | |
| 357 DCHECK(!function->proxy()->var()->IsUnallocatedOrGlobalSlot()); | |
| 358 VisitVariableDeclaration(function); | |
| 359 } | |
| 360 VisitDeclarations(scope()->declarations()); | 353 VisitDeclarations(scope()->declarations()); |
| 361 } | 354 } |
| 362 | 355 |
| 363 { | 356 { |
| 364 Comment cmnt(masm_, "[ Stack check"); | 357 Comment cmnt(masm_, "[ Stack check"); |
| 365 PrepareForBailoutForId(BailoutId::Declarations(), NO_REGISTERS); | 358 PrepareForBailoutForId(BailoutId::Declarations(), NO_REGISTERS); |
| 366 Label ok; | 359 Label ok; |
| 367 DCHECK(jssp.Is(__ StackPointer())); | 360 DCHECK(jssp.Is(__ StackPointer())); |
| 368 __ CompareRoot(jssp, Heap::kStackLimitRootIndex); | 361 __ CompareRoot(jssp, Heap::kStackLimitRootIndex); |
| 369 __ B(hs, &ok); | 362 __ B(hs, &ok); |
| (...skipping 5200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5570 } | 5563 } |
| 5571 | 5564 |
| 5572 return INTERRUPT; | 5565 return INTERRUPT; |
| 5573 } | 5566 } |
| 5574 | 5567 |
| 5575 | 5568 |
| 5576 } // namespace internal | 5569 } // namespace internal |
| 5577 } // namespace v8 | 5570 } // namespace v8 |
| 5578 | 5571 |
| 5579 #endif // V8_TARGET_ARCH_ARM64 | 5572 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |