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

Side by Side Diff: src/full-codegen/ia32/full-codegen-ia32.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_IA32 5 #if V8_TARGET_ARCH_IA32
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 717 matching lines...) Expand 10 before | Expand all | Expand 10 after
728 void FullCodeGenerator::VisitFunctionDeclaration( 728 void FullCodeGenerator::VisitFunctionDeclaration(
729 FunctionDeclaration* declaration) { 729 FunctionDeclaration* declaration) {
730 VariableProxy* proxy = declaration->proxy(); 730 VariableProxy* proxy = declaration->proxy();
731 Variable* variable = proxy->var(); 731 Variable* variable = proxy->var();
732 switch (variable->location()) { 732 switch (variable->location()) {
733 case VariableLocation::UNALLOCATED: { 733 case VariableLocation::UNALLOCATED: {
734 globals_->Add(variable->name(), zone()); 734 globals_->Add(variable->name(), zone());
735 FeedbackVectorSlot slot = proxy->VariableFeedbackSlot(); 735 FeedbackVectorSlot slot = proxy->VariableFeedbackSlot();
736 DCHECK(!slot.IsInvalid()); 736 DCHECK(!slot.IsInvalid());
737 globals_->Add(handle(Smi::FromInt(slot.ToInt()), isolate()), zone()); 737 globals_->Add(handle(Smi::FromInt(slot.ToInt()), isolate()), zone());
738 Handle<SharedFunctionInfo> function = Compiler::GetSharedFunctionInfo( 738 Handle<SharedFunctionInfo> function =
739 declaration->fun(), script(), info_, compilation_mode_); 739 Compiler::GetSharedFunctionInfo(declaration->fun(), script(), info_);
740 // Check for stack-overflow exception. 740 // Check for stack-overflow exception.
741 if (function.is_null()) return SetStackOverflow(); 741 if (function.is_null()) return SetStackOverflow();
742 globals_->Add(function, zone()); 742 globals_->Add(function, zone());
743 break; 743 break;
744 } 744 }
745 745
746 case VariableLocation::PARAMETER: 746 case VariableLocation::PARAMETER:
747 case VariableLocation::LOCAL: { 747 case VariableLocation::LOCAL: {
748 Comment cmnt(masm_, "[ FunctionDeclaration"); 748 Comment cmnt(masm_, "[ FunctionDeclaration");
749 VisitForAccumulatorValue(declaration->fun()); 749 VisitForAccumulatorValue(declaration->fun());
(...skipping 1956 matching lines...) Expand 10 before | Expand all | Expand 10 after
2706 isolate->builtins()->OnStackReplacement()->entry(), 2706 isolate->builtins()->OnStackReplacement()->entry(),
2707 Assembler::target_address_at(call_target_address, unoptimized_code)); 2707 Assembler::target_address_at(call_target_address, unoptimized_code));
2708 return ON_STACK_REPLACEMENT; 2708 return ON_STACK_REPLACEMENT;
2709 } 2709 }
2710 2710
2711 2711
2712 } // namespace internal 2712 } // namespace internal
2713 } // namespace v8 2713 } // namespace v8
2714 2714
2715 #endif // V8_TARGET_ARCH_IA32 2715 #endif // V8_TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698