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