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

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: 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/x64/full-codegen-x64.cc ('k') | src/interpreter/bytecode-generator.h » ('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_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 711 matching lines...) Expand 10 before | Expand all | Expand 10 after
722 void FullCodeGenerator::VisitFunctionDeclaration( 722 void FullCodeGenerator::VisitFunctionDeclaration(
723 FunctionDeclaration* declaration) { 723 FunctionDeclaration* declaration) {
724 VariableProxy* proxy = declaration->proxy(); 724 VariableProxy* proxy = declaration->proxy();
725 Variable* variable = proxy->var(); 725 Variable* variable = proxy->var();
726 switch (variable->location()) { 726 switch (variable->location()) {
727 case VariableLocation::UNALLOCATED: { 727 case VariableLocation::UNALLOCATED: {
728 globals_->Add(variable->name(), zone()); 728 globals_->Add(variable->name(), zone());
729 FeedbackVectorSlot slot = proxy->VariableFeedbackSlot(); 729 FeedbackVectorSlot slot = proxy->VariableFeedbackSlot();
730 DCHECK(!slot.IsInvalid()); 730 DCHECK(!slot.IsInvalid());
731 globals_->Add(handle(Smi::FromInt(slot.ToInt()), isolate()), zone()); 731 globals_->Add(handle(Smi::FromInt(slot.ToInt()), isolate()), zone());
732 Handle<SharedFunctionInfo> function = Compiler::GetSharedFunctionInfo( 732 Handle<SharedFunctionInfo> function =
733 declaration->fun(), script(), info_, compilation_mode_); 733 Compiler::GetSharedFunctionInfo(declaration->fun(), script(), info_);
734 // Check for stack-overflow exception. 734 // Check for stack-overflow exception.
735 if (function.is_null()) return SetStackOverflow(); 735 if (function.is_null()) return SetStackOverflow();
736 globals_->Add(function, zone()); 736 globals_->Add(function, zone());
737 break; 737 break;
738 } 738 }
739 739
740 case VariableLocation::PARAMETER: 740 case VariableLocation::PARAMETER:
741 case VariableLocation::LOCAL: { 741 case VariableLocation::LOCAL: {
742 Comment cmnt(masm_, "[ FunctionDeclaration"); 742 Comment cmnt(masm_, "[ FunctionDeclaration");
743 VisitForAccumulatorValue(declaration->fun()); 743 VisitForAccumulatorValue(declaration->fun());
(...skipping 1952 matching lines...) Expand 10 before | Expand all | Expand 10 after
2696 isolate->builtins()->OnStackReplacement()->entry(), 2696 isolate->builtins()->OnStackReplacement()->entry(),
2697 Assembler::target_address_at(call_target_address, unoptimized_code)); 2697 Assembler::target_address_at(call_target_address, unoptimized_code));
2698 return ON_STACK_REPLACEMENT; 2698 return ON_STACK_REPLACEMENT;
2699 } 2699 }
2700 2700
2701 2701
2702 } // namespace internal 2702 } // namespace internal
2703 } // namespace v8 2703 } // namespace v8
2704 2704
2705 #endif // V8_TARGET_ARCH_X87 2705 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/full-codegen/x64/full-codegen-x64.cc ('k') | src/interpreter/bytecode-generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698