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

Side by Side Diff: src/full-codegen/mips64/full-codegen-mips64.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/mips/full-codegen-mips.cc ('k') | src/full-codegen/ppc/full-codegen-ppc.cc » ('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 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_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
6 6
7 // Note on Mips implementation: 7 // Note on Mips implementation:
8 // 8 //
9 // The result_register() for mips is the 'v0' register, which is defined 9 // The result_register() for mips is the 'v0' register, which is defined
10 // by the ABI to contain function return values. However, the first 10 // by the ABI to contain function return values. However, the first
(...skipping 766 matching lines...) Expand 10 before | Expand all | Expand 10 after
777 void FullCodeGenerator::VisitFunctionDeclaration( 777 void FullCodeGenerator::VisitFunctionDeclaration(
778 FunctionDeclaration* declaration) { 778 FunctionDeclaration* declaration) {
779 VariableProxy* proxy = declaration->proxy(); 779 VariableProxy* proxy = declaration->proxy();
780 Variable* variable = proxy->var(); 780 Variable* variable = proxy->var();
781 switch (variable->location()) { 781 switch (variable->location()) {
782 case VariableLocation::UNALLOCATED: { 782 case VariableLocation::UNALLOCATED: {
783 globals_->Add(variable->name(), zone()); 783 globals_->Add(variable->name(), zone());
784 FeedbackVectorSlot slot = proxy->VariableFeedbackSlot(); 784 FeedbackVectorSlot slot = proxy->VariableFeedbackSlot();
785 DCHECK(!slot.IsInvalid()); 785 DCHECK(!slot.IsInvalid());
786 globals_->Add(handle(Smi::FromInt(slot.ToInt()), isolate()), zone()); 786 globals_->Add(handle(Smi::FromInt(slot.ToInt()), isolate()), zone());
787 Handle<SharedFunctionInfo> function = Compiler::GetSharedFunctionInfo( 787 Handle<SharedFunctionInfo> function =
788 declaration->fun(), script(), info_, compilation_mode_); 788 Compiler::GetSharedFunctionInfo(declaration->fun(), script(), info_);
789 // Check for stack-overflow exception. 789 // Check for stack-overflow exception.
790 if (function.is_null()) return SetStackOverflow(); 790 if (function.is_null()) return SetStackOverflow();
791 globals_->Add(function, zone()); 791 globals_->Add(function, zone());
792 break; 792 break;
793 } 793 }
794 794
795 case VariableLocation::PARAMETER: 795 case VariableLocation::PARAMETER:
796 case VariableLocation::LOCAL: { 796 case VariableLocation::LOCAL: {
797 Comment cmnt(masm_, "[ FunctionDeclaration"); 797 Comment cmnt(masm_, "[ FunctionDeclaration");
798 VisitForAccumulatorValue(declaration->fun()); 798 VisitForAccumulatorValue(declaration->fun());
(...skipping 2000 matching lines...) Expand 10 before | Expand all | Expand 10 after
2799 reinterpret_cast<uint64_t>( 2799 reinterpret_cast<uint64_t>(
2800 isolate->builtins()->OnStackReplacement()->entry())); 2800 isolate->builtins()->OnStackReplacement()->entry()));
2801 return ON_STACK_REPLACEMENT; 2801 return ON_STACK_REPLACEMENT;
2802 } 2802 }
2803 2803
2804 2804
2805 } // namespace internal 2805 } // namespace internal
2806 } // namespace v8 2806 } // namespace v8
2807 2807
2808 #endif // V8_TARGET_ARCH_MIPS64 2808 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/full-codegen/mips/full-codegen-mips.cc ('k') | src/full-codegen/ppc/full-codegen-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698