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