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

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: Remove unused variable 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_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 784 matching lines...) Expand 10 before | Expand all | Expand 10 after
795 void FullCodeGenerator::VisitFunctionDeclaration( 795 void FullCodeGenerator::VisitFunctionDeclaration(
796 FunctionDeclaration* declaration) { 796 FunctionDeclaration* declaration) {
797 VariableProxy* proxy = declaration->proxy(); 797 VariableProxy* proxy = declaration->proxy();
798 Variable* variable = proxy->var(); 798 Variable* variable = proxy->var();
799 switch (variable->location()) { 799 switch (variable->location()) {
800 case VariableLocation::UNALLOCATED: { 800 case VariableLocation::UNALLOCATED: {
801 globals_->Add(variable->name(), zone()); 801 globals_->Add(variable->name(), zone());
802 FeedbackVectorSlot slot = proxy->VariableFeedbackSlot(); 802 FeedbackVectorSlot slot = proxy->VariableFeedbackSlot();
803 DCHECK(!slot.IsInvalid()); 803 DCHECK(!slot.IsInvalid());
804 globals_->Add(handle(Smi::FromInt(slot.ToInt()), isolate()), zone()); 804 globals_->Add(handle(Smi::FromInt(slot.ToInt()), isolate()), zone());
805 Handle<SharedFunctionInfo> function = Compiler::GetSharedFunctionInfo( 805 Handle<SharedFunctionInfo> function =
806 declaration->fun(), script(), info_, compilation_mode_); 806 Compiler::GetSharedFunctionInfo(declaration->fun(), script(), info_);
807 // Check for stack-overflow exception. 807 // Check for stack-overflow exception.
808 if (function.is_null()) return SetStackOverflow(); 808 if (function.is_null()) return SetStackOverflow();
809 globals_->Add(function, zone()); 809 globals_->Add(function, zone());
810 break; 810 break;
811 } 811 }
812 812
813 case VariableLocation::PARAMETER: 813 case VariableLocation::PARAMETER:
814 case VariableLocation::LOCAL: { 814 case VariableLocation::LOCAL: {
815 Comment cmnt(masm_, "[ FunctionDeclaration"); 815 Comment cmnt(masm_, "[ FunctionDeclaration");
816 VisitForAccumulatorValue(declaration->fun()); 816 VisitForAccumulatorValue(declaration->fun());
(...skipping 2106 matching lines...) Expand 10 before | Expand all | Expand 10 after
2923 DCHECK(interrupt_address == 2923 DCHECK(interrupt_address ==
2924 isolate->builtins()->OnStackReplacement()->entry()); 2924 isolate->builtins()->OnStackReplacement()->entry());
2925 return ON_STACK_REPLACEMENT; 2925 return ON_STACK_REPLACEMENT;
2926 } 2926 }
2927 2927
2928 2928
2929 } // namespace internal 2929 } // namespace internal
2930 } // namespace v8 2930 } // namespace v8
2931 2931
2932 #endif // V8_TARGET_ARCH_ARM 2932 #endif // V8_TARGET_ARCH_ARM
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698