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

Side by Side Diff: src/full-codegen/arm64/full-codegen-arm64.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/arm/full-codegen-arm.cc ('k') | src/full-codegen/full-codegen.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_ARM64 5 #if V8_TARGET_ARCH_ARM64
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 762 matching lines...) Expand 10 before | Expand all | Expand 10 after
773 void FullCodeGenerator::VisitFunctionDeclaration( 773 void FullCodeGenerator::VisitFunctionDeclaration(
774 FunctionDeclaration* declaration) { 774 FunctionDeclaration* declaration) {
775 VariableProxy* proxy = declaration->proxy(); 775 VariableProxy* proxy = declaration->proxy();
776 Variable* variable = proxy->var(); 776 Variable* variable = proxy->var();
777 switch (variable->location()) { 777 switch (variable->location()) {
778 case VariableLocation::UNALLOCATED: { 778 case VariableLocation::UNALLOCATED: {
779 globals_->Add(variable->name(), zone()); 779 globals_->Add(variable->name(), zone());
780 FeedbackVectorSlot slot = proxy->VariableFeedbackSlot(); 780 FeedbackVectorSlot slot = proxy->VariableFeedbackSlot();
781 DCHECK(!slot.IsInvalid()); 781 DCHECK(!slot.IsInvalid());
782 globals_->Add(handle(Smi::FromInt(slot.ToInt()), isolate()), zone()); 782 globals_->Add(handle(Smi::FromInt(slot.ToInt()), isolate()), zone());
783 Handle<SharedFunctionInfo> function = Compiler::GetSharedFunctionInfo( 783 Handle<SharedFunctionInfo> function =
784 declaration->fun(), script(), info_, compilation_mode_); 784 Compiler::GetSharedFunctionInfo(declaration->fun(), script(), info_);
785 // Check for stack overflow exception. 785 // Check for stack overflow exception.
786 if (function.is_null()) return SetStackOverflow(); 786 if (function.is_null()) return SetStackOverflow();
787 globals_->Add(function, zone()); 787 globals_->Add(function, zone());
788 break; 788 break;
789 } 789 }
790 790
791 case VariableLocation::PARAMETER: 791 case VariableLocation::PARAMETER:
792 case VariableLocation::LOCAL: { 792 case VariableLocation::LOCAL: {
793 Comment cmnt(masm_, "[ Function Declaration"); 793 Comment cmnt(masm_, "[ Function Declaration");
794 VisitForAccumulatorValue(declaration->fun()); 794 VisitForAccumulatorValue(declaration->fun());
(...skipping 2041 matching lines...) Expand 10 before | Expand all | Expand 10 after
2836 } 2836 }
2837 2837
2838 return INTERRUPT; 2838 return INTERRUPT;
2839 } 2839 }
2840 2840
2841 2841
2842 } // namespace internal 2842 } // namespace internal
2843 } // namespace v8 2843 } // namespace v8
2844 2844
2845 #endif // V8_TARGET_ARCH_ARM64 2845 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/full-codegen/arm/full-codegen-arm.cc ('k') | src/full-codegen/full-codegen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698