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/full-codegen/full-codegen.h" | 7 #include "src/full-codegen/full-codegen.h" |
8 #include "src/ast/compile-time-value.h" | 8 #include "src/ast/compile-time-value.h" |
9 #include "src/ast/scopes.h" | 9 #include "src/ast/scopes.h" |
10 #include "src/code-factory.h" | 10 #include "src/code-factory.h" |
(...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
759 void FullCodeGenerator::VisitFunctionDeclaration( | 759 void FullCodeGenerator::VisitFunctionDeclaration( |
760 FunctionDeclaration* declaration) { | 760 FunctionDeclaration* declaration) { |
761 VariableProxy* proxy = declaration->proxy(); | 761 VariableProxy* proxy = declaration->proxy(); |
762 Variable* variable = proxy->var(); | 762 Variable* variable = proxy->var(); |
763 switch (variable->location()) { | 763 switch (variable->location()) { |
764 case VariableLocation::UNALLOCATED: { | 764 case VariableLocation::UNALLOCATED: { |
765 globals_->Add(variable->name(), zone()); | 765 globals_->Add(variable->name(), zone()); |
766 FeedbackVectorSlot slot = proxy->VariableFeedbackSlot(); | 766 FeedbackVectorSlot slot = proxy->VariableFeedbackSlot(); |
767 DCHECK(!slot.IsInvalid()); | 767 DCHECK(!slot.IsInvalid()); |
768 globals_->Add(handle(Smi::FromInt(slot.ToInt()), isolate()), zone()); | 768 globals_->Add(handle(Smi::FromInt(slot.ToInt()), isolate()), zone()); |
769 Handle<SharedFunctionInfo> function = | 769 Handle<SharedFunctionInfo> function = Compiler::GetSharedFunctionInfo( |
770 Compiler::GetSharedFunctionInfo(declaration->fun(), script(), info_); | 770 declaration->fun(), script(), info_, compilation_mode_); |
771 // Check for stack-overflow exception. | 771 // Check for stack-overflow exception. |
772 if (function.is_null()) return SetStackOverflow(); | 772 if (function.is_null()) return SetStackOverflow(); |
773 globals_->Add(function, zone()); | 773 globals_->Add(function, zone()); |
774 break; | 774 break; |
775 } | 775 } |
776 | 776 |
777 case VariableLocation::PARAMETER: | 777 case VariableLocation::PARAMETER: |
778 case VariableLocation::LOCAL: { | 778 case VariableLocation::LOCAL: { |
779 Comment cmnt(masm_, "[ FunctionDeclaration"); | 779 Comment cmnt(masm_, "[ FunctionDeclaration"); |
780 VisitForAccumulatorValue(declaration->fun()); | 780 VisitForAccumulatorValue(declaration->fun()); |
(...skipping 2077 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2858 | 2858 |
2859 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); | 2859 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); |
2860 | 2860 |
2861 DCHECK(interrupt_address == | 2861 DCHECK(interrupt_address == |
2862 isolate->builtins()->OnStackReplacement()->entry()); | 2862 isolate->builtins()->OnStackReplacement()->entry()); |
2863 return ON_STACK_REPLACEMENT; | 2863 return ON_STACK_REPLACEMENT; |
2864 } | 2864 } |
2865 } // namespace internal | 2865 } // namespace internal |
2866 } // namespace v8 | 2866 } // namespace v8 |
2867 #endif // V8_TARGET_ARCH_PPC | 2867 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |