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

Side by Side Diff: src/full-codegen/arm/full-codegen-arm.cc

Issue 2579973002: Don't compile inner functions when compiling via the dispatcher (Closed)
Patch Set: added comment Created 4 years 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/full-codegen/full-codegen.h" 7 #include "src/full-codegen/full-codegen.h"
8 #include "src/ast/compile-time-value.h" 8 #include "src/ast/compile-time-value.h"
9 #include "src/ast/scopes.h" 9 #include "src/ast/scopes.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after
791 void FullCodeGenerator::VisitFunctionDeclaration( 791 void FullCodeGenerator::VisitFunctionDeclaration(
792 FunctionDeclaration* declaration) { 792 FunctionDeclaration* declaration) {
793 VariableProxy* proxy = declaration->proxy(); 793 VariableProxy* proxy = declaration->proxy();
794 Variable* variable = proxy->var(); 794 Variable* variable = proxy->var();
795 switch (variable->location()) { 795 switch (variable->location()) {
796 case VariableLocation::UNALLOCATED: { 796 case VariableLocation::UNALLOCATED: {
797 globals_->Add(variable->name(), zone()); 797 globals_->Add(variable->name(), zone());
798 FeedbackVectorSlot slot = proxy->VariableFeedbackSlot(); 798 FeedbackVectorSlot slot = proxy->VariableFeedbackSlot();
799 DCHECK(!slot.IsInvalid()); 799 DCHECK(!slot.IsInvalid());
800 globals_->Add(handle(Smi::FromInt(slot.ToInt()), isolate()), zone()); 800 globals_->Add(handle(Smi::FromInt(slot.ToInt()), isolate()), zone());
801 Handle<SharedFunctionInfo> function = 801 Handle<SharedFunctionInfo> function = Compiler::GetSharedFunctionInfo(
802 Compiler::GetSharedFunctionInfo(declaration->fun(), script(), info_); 802 declaration->fun(), script(), info_, compilation_mode_);
803 // Check for stack-overflow exception. 803 // Check for stack-overflow exception.
804 if (function.is_null()) return SetStackOverflow(); 804 if (function.is_null()) return SetStackOverflow();
805 globals_->Add(function, zone()); 805 globals_->Add(function, zone());
806 break; 806 break;
807 } 807 }
808 808
809 case VariableLocation::PARAMETER: 809 case VariableLocation::PARAMETER:
810 case VariableLocation::LOCAL: { 810 case VariableLocation::LOCAL: {
811 Comment cmnt(masm_, "[ FunctionDeclaration"); 811 Comment cmnt(masm_, "[ FunctionDeclaration");
812 VisitForAccumulatorValue(declaration->fun()); 812 VisitForAccumulatorValue(declaration->fun());
(...skipping 2106 matching lines...) Expand 10 before | Expand all | Expand 10 after
2919 DCHECK(interrupt_address == 2919 DCHECK(interrupt_address ==
2920 isolate->builtins()->OnStackReplacement()->entry()); 2920 isolate->builtins()->OnStackReplacement()->entry());
2921 return ON_STACK_REPLACEMENT; 2921 return ON_STACK_REPLACEMENT;
2922 } 2922 }
2923 2923
2924 2924
2925 } // namespace internal 2925 } // namespace internal
2926 } // namespace v8 2926 } // namespace v8
2927 2927
2928 #endif // V8_TARGET_ARCH_ARM 2928 #endif // V8_TARGET_ARCH_ARM
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698