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

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: Address comments and remove field from ParseInfo 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
« no previous file with comments | « src/full-codegen/full-codegen.cc ('k') | src/full-codegen/mips/full-codegen-mips.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 715 matching lines...) Expand 10 before | Expand all | Expand 10 after
726 void FullCodeGenerator::VisitFunctionDeclaration( 726 void FullCodeGenerator::VisitFunctionDeclaration(
727 FunctionDeclaration* declaration) { 727 FunctionDeclaration* declaration) {
728 VariableProxy* proxy = declaration->proxy(); 728 VariableProxy* proxy = declaration->proxy();
729 Variable* variable = proxy->var(); 729 Variable* variable = proxy->var();
730 switch (variable->location()) { 730 switch (variable->location()) {
731 case VariableLocation::UNALLOCATED: { 731 case VariableLocation::UNALLOCATED: {
732 globals_->Add(variable->name(), zone()); 732 globals_->Add(variable->name(), zone());
733 FeedbackVectorSlot slot = proxy->VariableFeedbackSlot(); 733 FeedbackVectorSlot slot = proxy->VariableFeedbackSlot();
734 DCHECK(!slot.IsInvalid()); 734 DCHECK(!slot.IsInvalid());
735 globals_->Add(handle(Smi::FromInt(slot.ToInt()), isolate()), zone()); 735 globals_->Add(handle(Smi::FromInt(slot.ToInt()), isolate()), zone());
736 Handle<SharedFunctionInfo> function = Compiler::GetSharedFunctionInfo( 736 Handle<SharedFunctionInfo> function =
737 declaration->fun(), script(), info_, compilation_mode_); 737 Compiler::GetSharedFunctionInfo(declaration->fun(), script(), info_);
738 // Check for stack-overflow exception. 738 // Check for stack-overflow exception.
739 if (function.is_null()) return SetStackOverflow(); 739 if (function.is_null()) return SetStackOverflow();
740 globals_->Add(function, zone()); 740 globals_->Add(function, zone());
741 break; 741 break;
742 } 742 }
743 743
744 case VariableLocation::PARAMETER: 744 case VariableLocation::PARAMETER:
745 case VariableLocation::LOCAL: { 745 case VariableLocation::LOCAL: {
746 Comment cmnt(masm_, "[ FunctionDeclaration"); 746 Comment cmnt(masm_, "[ FunctionDeclaration");
747 VisitForAccumulatorValue(declaration->fun()); 747 VisitForAccumulatorValue(declaration->fun());
(...skipping 1956 matching lines...) Expand 10 before | Expand all | Expand 10 after
2704 isolate->builtins()->OnStackReplacement()->entry(), 2704 isolate->builtins()->OnStackReplacement()->entry(),
2705 Assembler::target_address_at(call_target_address, unoptimized_code)); 2705 Assembler::target_address_at(call_target_address, unoptimized_code));
2706 return ON_STACK_REPLACEMENT; 2706 return ON_STACK_REPLACEMENT;
2707 } 2707 }
2708 2708
2709 2709
2710 } // namespace internal 2710 } // namespace internal
2711 } // namespace v8 2711 } // namespace v8
2712 2712
2713 #endif // V8_TARGET_ARCH_IA32 2713 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/full-codegen/full-codegen.cc ('k') | src/full-codegen/mips/full-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698