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

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

Issue 2618553004: [compiler] Collect eager inner functions for compilation during renumbering. (Closed)
Patch Set: Move to ThreadedList 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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_PPC 5 #if V8_TARGET_ARCH_PPC
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 737 matching lines...) Expand 10 before | Expand all | Expand 10 after
748 void FullCodeGenerator::VisitFunctionDeclaration( 748 void FullCodeGenerator::VisitFunctionDeclaration(
749 FunctionDeclaration* declaration) { 749 FunctionDeclaration* declaration) {
750 VariableProxy* proxy = declaration->proxy(); 750 VariableProxy* proxy = declaration->proxy();
751 Variable* variable = proxy->var(); 751 Variable* variable = proxy->var();
752 switch (variable->location()) { 752 switch (variable->location()) {
753 case VariableLocation::UNALLOCATED: { 753 case VariableLocation::UNALLOCATED: {
754 globals_->Add(variable->name(), zone()); 754 globals_->Add(variable->name(), zone());
755 FeedbackVectorSlot slot = proxy->VariableFeedbackSlot(); 755 FeedbackVectorSlot slot = proxy->VariableFeedbackSlot();
756 DCHECK(!slot.IsInvalid()); 756 DCHECK(!slot.IsInvalid());
757 globals_->Add(handle(Smi::FromInt(slot.ToInt()), isolate()), zone()); 757 globals_->Add(handle(Smi::FromInt(slot.ToInt()), isolate()), zone());
758 Handle<SharedFunctionInfo> function = Compiler::GetSharedFunctionInfo( 758 Handle<SharedFunctionInfo> function =
759 declaration->fun(), script(), info_, compilation_mode_); 759 Compiler::GetSharedFunctionInfo(declaration->fun(), script(), info_);
760 // Check for stack-overflow exception. 760 // Check for stack-overflow exception.
761 if (function.is_null()) return SetStackOverflow(); 761 if (function.is_null()) return SetStackOverflow();
762 globals_->Add(function, zone()); 762 globals_->Add(function, zone());
763 break; 763 break;
764 } 764 }
765 765
766 case VariableLocation::PARAMETER: 766 case VariableLocation::PARAMETER:
767 case VariableLocation::LOCAL: { 767 case VariableLocation::LOCAL: {
768 Comment cmnt(masm_, "[ FunctionDeclaration"); 768 Comment cmnt(masm_, "[ FunctionDeclaration");
769 VisitForAccumulatorValue(declaration->fun()); 769 VisitForAccumulatorValue(declaration->fun());
(...skipping 2002 matching lines...) Expand 10 before | Expand all | Expand 10 after
2772 2772
2773 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); 2773 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address)));
2774 2774
2775 DCHECK(interrupt_address == 2775 DCHECK(interrupt_address ==
2776 isolate->builtins()->OnStackReplacement()->entry()); 2776 isolate->builtins()->OnStackReplacement()->entry());
2777 return ON_STACK_REPLACEMENT; 2777 return ON_STACK_REPLACEMENT;
2778 } 2778 }
2779 } // namespace internal 2779 } // namespace internal
2780 } // namespace v8 2780 } // namespace v8
2781 #endif // V8_TARGET_ARCH_PPC 2781 #endif // V8_TARGET_ARCH_PPC
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698