OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_S390 | 5 #if V8_TARGET_ARCH_S390 |
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 720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
731 void FullCodeGenerator::VisitFunctionDeclaration( | 731 void FullCodeGenerator::VisitFunctionDeclaration( |
732 FunctionDeclaration* declaration) { | 732 FunctionDeclaration* declaration) { |
733 VariableProxy* proxy = declaration->proxy(); | 733 VariableProxy* proxy = declaration->proxy(); |
734 Variable* variable = proxy->var(); | 734 Variable* variable = proxy->var(); |
735 switch (variable->location()) { | 735 switch (variable->location()) { |
736 case VariableLocation::UNALLOCATED: { | 736 case VariableLocation::UNALLOCATED: { |
737 globals_->Add(variable->name(), zone()); | 737 globals_->Add(variable->name(), zone()); |
738 FeedbackVectorSlot slot = proxy->VariableFeedbackSlot(); | 738 FeedbackVectorSlot slot = proxy->VariableFeedbackSlot(); |
739 DCHECK(!slot.IsInvalid()); | 739 DCHECK(!slot.IsInvalid()); |
740 globals_->Add(handle(Smi::FromInt(slot.ToInt()), isolate()), zone()); | 740 globals_->Add(handle(Smi::FromInt(slot.ToInt()), isolate()), zone()); |
741 Handle<SharedFunctionInfo> function = | 741 Handle<SharedFunctionInfo> function = Compiler::GetSharedFunctionInfo( |
742 Compiler::GetSharedFunctionInfo(declaration->fun(), script(), info_); | 742 declaration->fun(), script(), info_, compilation_mode_); |
743 // Check for stack-overflow exception. | 743 // Check for stack-overflow exception. |
744 if (function.is_null()) return SetStackOverflow(); | 744 if (function.is_null()) return SetStackOverflow(); |
745 globals_->Add(function, zone()); | 745 globals_->Add(function, zone()); |
746 break; | 746 break; |
747 } | 747 } |
748 | 748 |
749 case VariableLocation::PARAMETER: | 749 case VariableLocation::PARAMETER: |
750 case VariableLocation::LOCAL: { | 750 case VariableLocation::LOCAL: { |
751 Comment cmnt(masm_, "[ FunctionDeclaration"); | 751 Comment cmnt(masm_, "[ FunctionDeclaration"); |
752 VisitForAccumulatorValue(declaration->fun()); | 752 VisitForAccumulatorValue(declaration->fun()); |
(...skipping 2042 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2795 DCHECK(kOSRBranchInstruction == br_instr); | 2795 DCHECK(kOSRBranchInstruction == br_instr); |
2796 | 2796 |
2797 DCHECK(interrupt_address == | 2797 DCHECK(interrupt_address == |
2798 isolate->builtins()->OnStackReplacement()->entry()); | 2798 isolate->builtins()->OnStackReplacement()->entry()); |
2799 return ON_STACK_REPLACEMENT; | 2799 return ON_STACK_REPLACEMENT; |
2800 } | 2800 } |
2801 | 2801 |
2802 } // namespace internal | 2802 } // namespace internal |
2803 } // namespace v8 | 2803 } // namespace v8 |
2804 #endif // V8_TARGET_ARCH_S390 | 2804 #endif // V8_TARGET_ARCH_S390 |
OLD | NEW |