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