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 #if V8_TARGET_ARCH_ARM64 | 5 #if V8_TARGET_ARCH_ARM64 |
6 | 6 |
7 #include "src/ast/compile-time-value.h" | 7 #include "src/ast/compile-time-value.h" |
8 #include "src/ast/scopes.h" | 8 #include "src/ast/scopes.h" |
9 #include "src/builtins/builtins-constructor.h" | 9 #include "src/builtins/builtins-constructor.h" |
10 #include "src/code-factory.h" | 10 #include "src/code-factory.h" |
(...skipping 779 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
790 void FullCodeGenerator::VisitFunctionDeclaration( | 790 void FullCodeGenerator::VisitFunctionDeclaration( |
791 FunctionDeclaration* declaration) { | 791 FunctionDeclaration* declaration) { |
792 VariableProxy* proxy = declaration->proxy(); | 792 VariableProxy* proxy = declaration->proxy(); |
793 Variable* variable = proxy->var(); | 793 Variable* variable = proxy->var(); |
794 switch (variable->location()) { | 794 switch (variable->location()) { |
795 case VariableLocation::UNALLOCATED: { | 795 case VariableLocation::UNALLOCATED: { |
796 globals_->Add(variable->name(), zone()); | 796 globals_->Add(variable->name(), zone()); |
797 FeedbackVectorSlot slot = proxy->VariableFeedbackSlot(); | 797 FeedbackVectorSlot slot = proxy->VariableFeedbackSlot(); |
798 DCHECK(!slot.IsInvalid()); | 798 DCHECK(!slot.IsInvalid()); |
799 globals_->Add(handle(Smi::FromInt(slot.ToInt()), isolate()), zone()); | 799 globals_->Add(handle(Smi::FromInt(slot.ToInt()), isolate()), zone()); |
800 Handle<SharedFunctionInfo> function = Compiler::GetSharedFunctionInfo( | 800 Handle<SharedFunctionInfo> function = |
801 declaration->fun(), script(), info_, compilation_mode_); | 801 Compiler::GetSharedFunctionInfo(declaration->fun(), script(), info_); |
802 // Check for stack overflow exception. | 802 // Check for stack overflow exception. |
803 if (function.is_null()) return SetStackOverflow(); | 803 if (function.is_null()) return SetStackOverflow(); |
804 globals_->Add(function, zone()); | 804 globals_->Add(function, zone()); |
805 break; | 805 break; |
806 } | 806 } |
807 | 807 |
808 case VariableLocation::PARAMETER: | 808 case VariableLocation::PARAMETER: |
809 case VariableLocation::LOCAL: { | 809 case VariableLocation::LOCAL: { |
810 Comment cmnt(masm_, "[ Function Declaration"); | 810 Comment cmnt(masm_, "[ Function Declaration"); |
811 VisitForAccumulatorValue(declaration->fun()); | 811 VisitForAccumulatorValue(declaration->fun()); |
(...skipping 2112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2924 } | 2924 } |
2925 | 2925 |
2926 return INTERRUPT; | 2926 return INTERRUPT; |
2927 } | 2927 } |
2928 | 2928 |
2929 | 2929 |
2930 } // namespace internal | 2930 } // namespace internal |
2931 } // namespace v8 | 2931 } // namespace v8 |
2932 | 2932 |
2933 #endif // V8_TARGET_ARCH_ARM64 | 2933 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |