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 737 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
748 void FullCodeGenerator::VisitFunctionDeclaration( | 748 void FullCodeGenerator::VisitFunctionDeclaration( |
749 FunctionDeclaration* declaration) { | 749 FunctionDeclaration* declaration) { |
750 VariableProxy* proxy = declaration->proxy(); | 750 VariableProxy* proxy = declaration->proxy(); |
751 Variable* variable = proxy->var(); | 751 Variable* variable = proxy->var(); |
752 switch (variable->location()) { | 752 switch (variable->location()) { |
753 case VariableLocation::UNALLOCATED: { | 753 case VariableLocation::UNALLOCATED: { |
754 globals_->Add(variable->name(), zone()); | 754 globals_->Add(variable->name(), zone()); |
755 FeedbackVectorSlot slot = proxy->VariableFeedbackSlot(); | 755 FeedbackVectorSlot slot = proxy->VariableFeedbackSlot(); |
756 DCHECK(!slot.IsInvalid()); | 756 DCHECK(!slot.IsInvalid()); |
757 globals_->Add(handle(Smi::FromInt(slot.ToInt()), isolate()), zone()); | 757 globals_->Add(handle(Smi::FromInt(slot.ToInt()), isolate()), zone()); |
758 Handle<SharedFunctionInfo> function = Compiler::GetSharedFunctionInfo( | 758 Handle<SharedFunctionInfo> function = |
759 declaration->fun(), script(), info_, compilation_mode_); | 759 Compiler::GetSharedFunctionInfo(declaration->fun(), script(), info_); |
760 // Check for stack-overflow exception. | 760 // Check for stack-overflow exception. |
761 if (function.is_null()) return SetStackOverflow(); | 761 if (function.is_null()) return SetStackOverflow(); |
762 globals_->Add(function, zone()); | 762 globals_->Add(function, zone()); |
763 break; | 763 break; |
764 } | 764 } |
765 | 765 |
766 case VariableLocation::PARAMETER: | 766 case VariableLocation::PARAMETER: |
767 case VariableLocation::LOCAL: { | 767 case VariableLocation::LOCAL: { |
768 Comment cmnt(masm_, "[ FunctionDeclaration"); | 768 Comment cmnt(masm_, "[ FunctionDeclaration"); |
769 VisitForAccumulatorValue(declaration->fun()); | 769 VisitForAccumulatorValue(declaration->fun()); |
(...skipping 2002 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2772 | 2772 |
2773 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); | 2773 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); |
2774 | 2774 |
2775 DCHECK(interrupt_address == | 2775 DCHECK(interrupt_address == |
2776 isolate->builtins()->OnStackReplacement()->entry()); | 2776 isolate->builtins()->OnStackReplacement()->entry()); |
2777 return ON_STACK_REPLACEMENT; | 2777 return ON_STACK_REPLACEMENT; |
2778 } | 2778 } |
2779 } // namespace internal | 2779 } // namespace internal |
2780 } // namespace v8 | 2780 } // namespace v8 |
2781 #endif // V8_TARGET_ARCH_PPC | 2781 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |