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

Side by Side Diff: src/full-codegen/arm/full-codegen-arm.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/d8.h ('k') | src/full-codegen/arm64/full-codegen-arm64.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_ARM 5 #if V8_TARGET_ARCH_ARM
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 767 matching lines...) Expand 10 before | Expand all | Expand 10 after
778 void FullCodeGenerator::VisitFunctionDeclaration( 778 void FullCodeGenerator::VisitFunctionDeclaration(
779 FunctionDeclaration* declaration) { 779 FunctionDeclaration* declaration) {
780 VariableProxy* proxy = declaration->proxy(); 780 VariableProxy* proxy = declaration->proxy();
781 Variable* variable = proxy->var(); 781 Variable* variable = proxy->var();
782 switch (variable->location()) { 782 switch (variable->location()) {
783 case VariableLocation::UNALLOCATED: { 783 case VariableLocation::UNALLOCATED: {
784 globals_->Add(variable->name(), zone()); 784 globals_->Add(variable->name(), zone());
785 FeedbackVectorSlot slot = proxy->VariableFeedbackSlot(); 785 FeedbackVectorSlot slot = proxy->VariableFeedbackSlot();
786 DCHECK(!slot.IsInvalid()); 786 DCHECK(!slot.IsInvalid());
787 globals_->Add(handle(Smi::FromInt(slot.ToInt()), isolate()), zone()); 787 globals_->Add(handle(Smi::FromInt(slot.ToInt()), isolate()), zone());
788 Handle<SharedFunctionInfo> function = Compiler::GetSharedFunctionInfo( 788 Handle<SharedFunctionInfo> function =
789 declaration->fun(), script(), info_, compilation_mode_); 789 Compiler::GetSharedFunctionInfo(declaration->fun(), script(), info_);
790 // Check for stack-overflow exception. 790 // Check for stack-overflow exception.
791 if (function.is_null()) return SetStackOverflow(); 791 if (function.is_null()) return SetStackOverflow();
792 globals_->Add(function, zone()); 792 globals_->Add(function, zone());
793 break; 793 break;
794 } 794 }
795 795
796 case VariableLocation::PARAMETER: 796 case VariableLocation::PARAMETER:
797 case VariableLocation::LOCAL: { 797 case VariableLocation::LOCAL: {
798 Comment cmnt(masm_, "[ FunctionDeclaration"); 798 Comment cmnt(masm_, "[ FunctionDeclaration");
799 VisitForAccumulatorValue(declaration->fun()); 799 VisitForAccumulatorValue(declaration->fun());
(...skipping 2031 matching lines...) Expand 10 before | Expand all | Expand 10 after
2831 DCHECK(interrupt_address == 2831 DCHECK(interrupt_address ==
2832 isolate->builtins()->OnStackReplacement()->entry()); 2832 isolate->builtins()->OnStackReplacement()->entry());
2833 return ON_STACK_REPLACEMENT; 2833 return ON_STACK_REPLACEMENT;
2834 } 2834 }
2835 2835
2836 2836
2837 } // namespace internal 2837 } // namespace internal
2838 } // namespace v8 2838 } // namespace v8
2839 2839
2840 #endif // V8_TARGET_ARCH_ARM 2840 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/d8.h ('k') | src/full-codegen/arm64/full-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698