Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/full-codegen/s390/full-codegen-s390.cc

Issue 2618553004: [compiler] Collect eager inner functions for compilation during renumbering. (Closed)
Patch Set: Remove unused variable Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 724 matching lines...) Expand 10 before | Expand all | Expand 10 after
735 void FullCodeGenerator::VisitFunctionDeclaration( 735 void FullCodeGenerator::VisitFunctionDeclaration(
736 FunctionDeclaration* declaration) { 736 FunctionDeclaration* declaration) {
737 VariableProxy* proxy = declaration->proxy(); 737 VariableProxy* proxy = declaration->proxy();
738 Variable* variable = proxy->var(); 738 Variable* variable = proxy->var();
739 switch (variable->location()) { 739 switch (variable->location()) {
740 case VariableLocation::UNALLOCATED: { 740 case VariableLocation::UNALLOCATED: {
741 globals_->Add(variable->name(), zone()); 741 globals_->Add(variable->name(), zone());
742 FeedbackVectorSlot slot = proxy->VariableFeedbackSlot(); 742 FeedbackVectorSlot slot = proxy->VariableFeedbackSlot();
743 DCHECK(!slot.IsInvalid()); 743 DCHECK(!slot.IsInvalid());
744 globals_->Add(handle(Smi::FromInt(slot.ToInt()), isolate()), zone()); 744 globals_->Add(handle(Smi::FromInt(slot.ToInt()), isolate()), zone());
745 Handle<SharedFunctionInfo> function = Compiler::GetSharedFunctionInfo( 745 Handle<SharedFunctionInfo> function =
746 declaration->fun(), script(), info_, compilation_mode_); 746 Compiler::GetSharedFunctionInfo(declaration->fun(), script(), info_);
747 // Check for stack-overflow exception. 747 // Check for stack-overflow exception.
748 if (function.is_null()) return SetStackOverflow(); 748 if (function.is_null()) return SetStackOverflow();
749 globals_->Add(function, zone()); 749 globals_->Add(function, zone());
750 break; 750 break;
751 } 751 }
752 752
753 case VariableLocation::PARAMETER: 753 case VariableLocation::PARAMETER:
754 case VariableLocation::LOCAL: { 754 case VariableLocation::LOCAL: {
755 Comment cmnt(masm_, "[ FunctionDeclaration"); 755 Comment cmnt(masm_, "[ FunctionDeclaration");
756 VisitForAccumulatorValue(declaration->fun()); 756 VisitForAccumulatorValue(declaration->fun());
(...skipping 2042 matching lines...) Expand 10 before | Expand all | Expand 10 after
2799 DCHECK(kOSRBranchInstruction == br_instr); 2799 DCHECK(kOSRBranchInstruction == br_instr);
2800 2800
2801 DCHECK(interrupt_address == 2801 DCHECK(interrupt_address ==
2802 isolate->builtins()->OnStackReplacement()->entry()); 2802 isolate->builtins()->OnStackReplacement()->entry());
2803 return ON_STACK_REPLACEMENT; 2803 return ON_STACK_REPLACEMENT;
2804 } 2804 }
2805 2805
2806 } // namespace internal 2806 } // namespace internal
2807 } // namespace v8 2807 } // namespace v8
2808 #endif // V8_TARGET_ARCH_S390 2808 #endif // V8_TARGET_ARCH_S390
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698