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