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

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

Issue 2618553004: [compiler] Collect eager inner functions for compilation during renumbering. (Closed)
Patch Set: Move to ThreadedList 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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_X87 5 #if V8_TARGET_ARCH_X87
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 713 matching lines...) Expand 10 before | Expand all | Expand 10 after
724 void FullCodeGenerator::VisitFunctionDeclaration( 724 void FullCodeGenerator::VisitFunctionDeclaration(
725 FunctionDeclaration* declaration) { 725 FunctionDeclaration* declaration) {
726 VariableProxy* proxy = declaration->proxy(); 726 VariableProxy* proxy = declaration->proxy();
727 Variable* variable = proxy->var(); 727 Variable* variable = proxy->var();
728 switch (variable->location()) { 728 switch (variable->location()) {
729 case VariableLocation::UNALLOCATED: { 729 case VariableLocation::UNALLOCATED: {
730 globals_->Add(variable->name(), zone()); 730 globals_->Add(variable->name(), zone());
731 FeedbackVectorSlot slot = proxy->VariableFeedbackSlot(); 731 FeedbackVectorSlot slot = proxy->VariableFeedbackSlot();
732 DCHECK(!slot.IsInvalid()); 732 DCHECK(!slot.IsInvalid());
733 globals_->Add(handle(Smi::FromInt(slot.ToInt()), isolate()), zone()); 733 globals_->Add(handle(Smi::FromInt(slot.ToInt()), isolate()), zone());
734 Handle<SharedFunctionInfo> function = Compiler::GetSharedFunctionInfo( 734 Handle<SharedFunctionInfo> function =
735 declaration->fun(), script(), info_, compilation_mode_); 735 Compiler::GetSharedFunctionInfo(declaration->fun(), script(), info_);
736 // Check for stack-overflow exception. 736 // Check for stack-overflow exception.
737 if (function.is_null()) return SetStackOverflow(); 737 if (function.is_null()) return SetStackOverflow();
738 globals_->Add(function, zone()); 738 globals_->Add(function, zone());
739 break; 739 break;
740 } 740 }
741 741
742 case VariableLocation::PARAMETER: 742 case VariableLocation::PARAMETER:
743 case VariableLocation::LOCAL: { 743 case VariableLocation::LOCAL: {
744 Comment cmnt(masm_, "[ FunctionDeclaration"); 744 Comment cmnt(masm_, "[ FunctionDeclaration");
745 VisitForAccumulatorValue(declaration->fun()); 745 VisitForAccumulatorValue(declaration->fun());
(...skipping 1952 matching lines...) Expand 10 before | Expand all | Expand 10 after
2698 isolate->builtins()->OnStackReplacement()->entry(), 2698 isolate->builtins()->OnStackReplacement()->entry(),
2699 Assembler::target_address_at(call_target_address, unoptimized_code)); 2699 Assembler::target_address_at(call_target_address, unoptimized_code));
2700 return ON_STACK_REPLACEMENT; 2700 return ON_STACK_REPLACEMENT;
2701 } 2701 }
2702 2702
2703 2703
2704 } // namespace internal 2704 } // namespace internal
2705 } // namespace v8 2705 } // namespace v8
2706 2706
2707 #endif // V8_TARGET_ARCH_X87 2707 #endif // V8_TARGET_ARCH_X87
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698