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 764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
775 void FullCodeGenerator::VisitFunctionDeclaration( | 775 void FullCodeGenerator::VisitFunctionDeclaration( |
776 FunctionDeclaration* declaration) { | 776 FunctionDeclaration* declaration) { |
777 VariableProxy* proxy = declaration->proxy(); | 777 VariableProxy* proxy = declaration->proxy(); |
778 Variable* variable = proxy->var(); | 778 Variable* variable = proxy->var(); |
779 switch (variable->location()) { | 779 switch (variable->location()) { |
780 case VariableLocation::UNALLOCATED: { | 780 case VariableLocation::UNALLOCATED: { |
781 globals_->Add(variable->name(), zone()); | 781 globals_->Add(variable->name(), zone()); |
782 FeedbackVectorSlot slot = proxy->VariableFeedbackSlot(); | 782 FeedbackVectorSlot slot = proxy->VariableFeedbackSlot(); |
783 DCHECK(!slot.IsInvalid()); | 783 DCHECK(!slot.IsInvalid()); |
784 globals_->Add(handle(Smi::FromInt(slot.ToInt()), isolate()), zone()); | 784 globals_->Add(handle(Smi::FromInt(slot.ToInt()), isolate()), zone()); |
785 Handle<SharedFunctionInfo> function = Compiler::GetSharedFunctionInfo( | 785 Handle<SharedFunctionInfo> function = |
786 declaration->fun(), script(), info_, compilation_mode_); | 786 Compiler::GetSharedFunctionInfo(declaration->fun(), script(), info_); |
787 // Check for stack overflow exception. | 787 // Check for stack overflow exception. |
788 if (function.is_null()) return SetStackOverflow(); | 788 if (function.is_null()) return SetStackOverflow(); |
789 globals_->Add(function, zone()); | 789 globals_->Add(function, zone()); |
790 break; | 790 break; |
791 } | 791 } |
792 | 792 |
793 case VariableLocation::PARAMETER: | 793 case VariableLocation::PARAMETER: |
794 case VariableLocation::LOCAL: { | 794 case VariableLocation::LOCAL: { |
795 Comment cmnt(masm_, "[ Function Declaration"); | 795 Comment cmnt(masm_, "[ Function Declaration"); |
796 VisitForAccumulatorValue(declaration->fun()); | 796 VisitForAccumulatorValue(declaration->fun()); |
(...skipping 2041 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2838 } | 2838 } |
2839 | 2839 |
2840 return INTERRUPT; | 2840 return INTERRUPT; |
2841 } | 2841 } |
2842 | 2842 |
2843 | 2843 |
2844 } // namespace internal | 2844 } // namespace internal |
2845 } // namespace v8 | 2845 } // namespace v8 |
2846 | 2846 |
2847 #endif // V8_TARGET_ARCH_ARM64 | 2847 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |