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/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 709 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
720 void FullCodeGenerator::VisitFunctionDeclaration( | 720 void FullCodeGenerator::VisitFunctionDeclaration( |
721 FunctionDeclaration* declaration) { | 721 FunctionDeclaration* declaration) { |
722 VariableProxy* proxy = declaration->proxy(); | 722 VariableProxy* proxy = declaration->proxy(); |
723 Variable* variable = proxy->var(); | 723 Variable* variable = proxy->var(); |
724 switch (variable->location()) { | 724 switch (variable->location()) { |
725 case VariableLocation::UNALLOCATED: { | 725 case VariableLocation::UNALLOCATED: { |
726 globals_->Add(variable->name(), zone()); | 726 globals_->Add(variable->name(), zone()); |
727 FeedbackVectorSlot slot = proxy->VariableFeedbackSlot(); | 727 FeedbackVectorSlot slot = proxy->VariableFeedbackSlot(); |
728 DCHECK(!slot.IsInvalid()); | 728 DCHECK(!slot.IsInvalid()); |
729 globals_->Add(handle(Smi::FromInt(slot.ToInt()), isolate()), zone()); | 729 globals_->Add(handle(Smi::FromInt(slot.ToInt()), isolate()), zone()); |
730 Handle<SharedFunctionInfo> function = Compiler::GetSharedFunctionInfo( | 730 Handle<SharedFunctionInfo> function = |
731 declaration->fun(), script(), info_, compilation_mode_); | 731 Compiler::GetSharedFunctionInfo(declaration->fun(), script(), info_); |
732 // Check for stack-overflow exception. | 732 // Check for stack-overflow exception. |
733 if (function.is_null()) return SetStackOverflow(); | 733 if (function.is_null()) return SetStackOverflow(); |
734 globals_->Add(function, zone()); | 734 globals_->Add(function, zone()); |
735 break; | 735 break; |
736 } | 736 } |
737 | 737 |
738 case VariableLocation::PARAMETER: | 738 case VariableLocation::PARAMETER: |
739 case VariableLocation::LOCAL: { | 739 case VariableLocation::LOCAL: { |
740 Comment cmnt(masm_, "[ FunctionDeclaration"); | 740 Comment cmnt(masm_, "[ FunctionDeclaration"); |
741 VisitForAccumulatorValue(declaration->fun()); | 741 VisitForAccumulatorValue(declaration->fun()); |
(...skipping 1967 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2709 DCHECK(kOSRBranchInstruction == br_instr); | 2709 DCHECK(kOSRBranchInstruction == br_instr); |
2710 | 2710 |
2711 DCHECK(interrupt_address == | 2711 DCHECK(interrupt_address == |
2712 isolate->builtins()->OnStackReplacement()->entry()); | 2712 isolate->builtins()->OnStackReplacement()->entry()); |
2713 return ON_STACK_REPLACEMENT; | 2713 return ON_STACK_REPLACEMENT; |
2714 } | 2714 } |
2715 | 2715 |
2716 } // namespace internal | 2716 } // namespace internal |
2717 } // namespace v8 | 2717 } // namespace v8 |
2718 #endif // V8_TARGET_ARCH_S390 | 2718 #endif // V8_TARGET_ARCH_S390 |
OLD | NEW |