OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_PPC | 5 #if V8_TARGET_ARCH_PPC |
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 752 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
763 void FullCodeGenerator::VisitFunctionDeclaration( | 763 void FullCodeGenerator::VisitFunctionDeclaration( |
764 FunctionDeclaration* declaration) { | 764 FunctionDeclaration* declaration) { |
765 VariableProxy* proxy = declaration->proxy(); | 765 VariableProxy* proxy = declaration->proxy(); |
766 Variable* variable = proxy->var(); | 766 Variable* variable = proxy->var(); |
767 switch (variable->location()) { | 767 switch (variable->location()) { |
768 case VariableLocation::UNALLOCATED: { | 768 case VariableLocation::UNALLOCATED: { |
769 globals_->Add(variable->name(), zone()); | 769 globals_->Add(variable->name(), zone()); |
770 FeedbackVectorSlot slot = proxy->VariableFeedbackSlot(); | 770 FeedbackVectorSlot slot = proxy->VariableFeedbackSlot(); |
771 DCHECK(!slot.IsInvalid()); | 771 DCHECK(!slot.IsInvalid()); |
772 globals_->Add(handle(Smi::FromInt(slot.ToInt()), isolate()), zone()); | 772 globals_->Add(handle(Smi::FromInt(slot.ToInt()), isolate()), zone()); |
773 Handle<SharedFunctionInfo> function = Compiler::GetSharedFunctionInfo( | 773 Handle<SharedFunctionInfo> function = |
774 declaration->fun(), script(), info_, compilation_mode_); | 774 Compiler::GetSharedFunctionInfo(declaration->fun(), script(), info_); |
775 // Check for stack-overflow exception. | 775 // Check for stack-overflow exception. |
776 if (function.is_null()) return SetStackOverflow(); | 776 if (function.is_null()) return SetStackOverflow(); |
777 globals_->Add(function, zone()); | 777 globals_->Add(function, zone()); |
778 break; | 778 break; |
779 } | 779 } |
780 | 780 |
781 case VariableLocation::PARAMETER: | 781 case VariableLocation::PARAMETER: |
782 case VariableLocation::LOCAL: { | 782 case VariableLocation::LOCAL: { |
783 Comment cmnt(masm_, "[ FunctionDeclaration"); | 783 Comment cmnt(masm_, "[ FunctionDeclaration"); |
784 VisitForAccumulatorValue(declaration->fun()); | 784 VisitForAccumulatorValue(declaration->fun()); |
(...skipping 2077 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2862 | 2862 |
2863 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); | 2863 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); |
2864 | 2864 |
2865 DCHECK(interrupt_address == | 2865 DCHECK(interrupt_address == |
2866 isolate->builtins()->OnStackReplacement()->entry()); | 2866 isolate->builtins()->OnStackReplacement()->entry()); |
2867 return ON_STACK_REPLACEMENT; | 2867 return ON_STACK_REPLACEMENT; |
2868 } | 2868 } |
2869 } // namespace internal | 2869 } // namespace internal |
2870 } // namespace v8 | 2870 } // namespace v8 |
2871 #endif // V8_TARGET_ARCH_PPC | 2871 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |