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

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: 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
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 735 matching lines...) Expand 10 before | Expand all | Expand 10 after
746 void FullCodeGenerator::VisitFunctionDeclaration( 746 void FullCodeGenerator::VisitFunctionDeclaration(
747 FunctionDeclaration* declaration) { 747 FunctionDeclaration* declaration) {
748 VariableProxy* proxy = declaration->proxy(); 748 VariableProxy* proxy = declaration->proxy();
749 Variable* variable = proxy->var(); 749 Variable* variable = proxy->var();
750 switch (variable->location()) { 750 switch (variable->location()) {
751 case VariableLocation::UNALLOCATED: { 751 case VariableLocation::UNALLOCATED: {
752 globals_->Add(variable->name(), zone()); 752 globals_->Add(variable->name(), zone());
753 FeedbackVectorSlot slot = proxy->VariableFeedbackSlot(); 753 FeedbackVectorSlot slot = proxy->VariableFeedbackSlot();
754 DCHECK(!slot.IsInvalid()); 754 DCHECK(!slot.IsInvalid());
755 globals_->Add(handle(Smi::FromInt(slot.ToInt()), isolate()), zone()); 755 globals_->Add(handle(Smi::FromInt(slot.ToInt()), isolate()), zone());
756 Handle<SharedFunctionInfo> function = Compiler::GetSharedFunctionInfo( 756 Handle<SharedFunctionInfo> function =
757 declaration->fun(), script(), info_, compilation_mode_); 757 Compiler::GetSharedFunctionInfo(declaration->fun(), script(), info_);
758 // Check for stack-overflow exception. 758 // Check for stack-overflow exception.
759 if (function.is_null()) return SetStackOverflow(); 759 if (function.is_null()) return SetStackOverflow();
760 globals_->Add(function, zone()); 760 globals_->Add(function, zone());
761 break; 761 break;
762 } 762 }
763 763
764 case VariableLocation::PARAMETER: 764 case VariableLocation::PARAMETER:
765 case VariableLocation::LOCAL: { 765 case VariableLocation::LOCAL: {
766 Comment cmnt(masm_, "[ FunctionDeclaration"); 766 Comment cmnt(masm_, "[ FunctionDeclaration");
767 VisitForAccumulatorValue(declaration->fun()); 767 VisitForAccumulatorValue(declaration->fun());
(...skipping 2002 matching lines...) Expand 10 before | Expand all | Expand 10 after
2770 2770
2771 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); 2771 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address)));
2772 2772
2773 DCHECK(interrupt_address == 2773 DCHECK(interrupt_address ==
2774 isolate->builtins()->OnStackReplacement()->entry()); 2774 isolate->builtins()->OnStackReplacement()->entry());
2775 return ON_STACK_REPLACEMENT; 2775 return ON_STACK_REPLACEMENT;
2776 } 2776 }
2777 } // namespace internal 2777 } // namespace internal
2778 } // namespace v8 2778 } // namespace v8
2779 #endif // V8_TARGET_ARCH_PPC 2779 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/full-codegen/mips64/full-codegen-mips64.cc ('k') | src/full-codegen/s390/full-codegen-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698