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/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 767 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
778 void FullCodeGenerator::VisitFunctionDeclaration( | 778 void FullCodeGenerator::VisitFunctionDeclaration( |
779 FunctionDeclaration* declaration) { | 779 FunctionDeclaration* declaration) { |
780 VariableProxy* proxy = declaration->proxy(); | 780 VariableProxy* proxy = declaration->proxy(); |
781 Variable* variable = proxy->var(); | 781 Variable* variable = proxy->var(); |
782 switch (variable->location()) { | 782 switch (variable->location()) { |
783 case VariableLocation::UNALLOCATED: { | 783 case VariableLocation::UNALLOCATED: { |
784 globals_->Add(variable->name(), zone()); | 784 globals_->Add(variable->name(), zone()); |
785 FeedbackVectorSlot slot = proxy->VariableFeedbackSlot(); | 785 FeedbackVectorSlot slot = proxy->VariableFeedbackSlot(); |
786 DCHECK(!slot.IsInvalid()); | 786 DCHECK(!slot.IsInvalid()); |
787 globals_->Add(handle(Smi::FromInt(slot.ToInt()), isolate()), zone()); | 787 globals_->Add(handle(Smi::FromInt(slot.ToInt()), isolate()), zone()); |
788 Handle<SharedFunctionInfo> function = Compiler::GetSharedFunctionInfo( | 788 Handle<SharedFunctionInfo> function = |
789 declaration->fun(), script(), info_, compilation_mode_); | 789 Compiler::GetSharedFunctionInfo(declaration->fun(), script(), info_); |
790 // Check for stack-overflow exception. | 790 // Check for stack-overflow exception. |
791 if (function.is_null()) return SetStackOverflow(); | 791 if (function.is_null()) return SetStackOverflow(); |
792 globals_->Add(function, zone()); | 792 globals_->Add(function, zone()); |
793 break; | 793 break; |
794 } | 794 } |
795 | 795 |
796 case VariableLocation::PARAMETER: | 796 case VariableLocation::PARAMETER: |
797 case VariableLocation::LOCAL: { | 797 case VariableLocation::LOCAL: { |
798 Comment cmnt(masm_, "[ FunctionDeclaration"); | 798 Comment cmnt(masm_, "[ FunctionDeclaration"); |
799 VisitForAccumulatorValue(declaration->fun()); | 799 VisitForAccumulatorValue(declaration->fun()); |
(...skipping 2031 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2831 DCHECK(interrupt_address == | 2831 DCHECK(interrupt_address == |
2832 isolate->builtins()->OnStackReplacement()->entry()); | 2832 isolate->builtins()->OnStackReplacement()->entry()); |
2833 return ON_STACK_REPLACEMENT; | 2833 return ON_STACK_REPLACEMENT; |
2834 } | 2834 } |
2835 | 2835 |
2836 | 2836 |
2837 } // namespace internal | 2837 } // namespace internal |
2838 } // namespace v8 | 2838 } // namespace v8 |
2839 | 2839 |
2840 #endif // V8_TARGET_ARCH_ARM | 2840 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |