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

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

Issue 1183733006: Keep a canonical list of shared function infos. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix test Created 5 years, 6 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/mips/full-codegen-mips.cc ('k') | src/objects.h » ('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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_MIPS64 7 #if V8_TARGET_ARCH_MIPS64
8 8
9 // Note on Mips implementation: 9 // Note on Mips implementation:
10 // 10 //
(...skipping 902 matching lines...) Expand 10 before | Expand all | Expand 10 after
913 913
914 914
915 void FullCodeGenerator::VisitFunctionDeclaration( 915 void FullCodeGenerator::VisitFunctionDeclaration(
916 FunctionDeclaration* declaration) { 916 FunctionDeclaration* declaration) {
917 VariableProxy* proxy = declaration->proxy(); 917 VariableProxy* proxy = declaration->proxy();
918 Variable* variable = proxy->var(); 918 Variable* variable = proxy->var();
919 switch (variable->location()) { 919 switch (variable->location()) {
920 case Variable::UNALLOCATED: { 920 case Variable::UNALLOCATED: {
921 globals_->Add(variable->name(), zone()); 921 globals_->Add(variable->name(), zone());
922 Handle<SharedFunctionInfo> function = 922 Handle<SharedFunctionInfo> function =
923 Compiler::BuildFunctionInfo(declaration->fun(), script(), info_); 923 Compiler::GetSharedFunctionInfo(declaration->fun(), script(), info_);
924 // Check for stack-overflow exception. 924 // Check for stack-overflow exception.
925 if (function.is_null()) return SetStackOverflow(); 925 if (function.is_null()) return SetStackOverflow();
926 globals_->Add(function, zone()); 926 globals_->Add(function, zone());
927 break; 927 break;
928 } 928 }
929 929
930 case Variable::PARAMETER: 930 case Variable::PARAMETER:
931 case Variable::LOCAL: { 931 case Variable::LOCAL: {
932 Comment cmnt(masm_, "[ FunctionDeclaration"); 932 Comment cmnt(masm_, "[ FunctionDeclaration");
933 VisitForAccumulatorValue(declaration->fun()); 933 VisitForAccumulatorValue(declaration->fun());
(...skipping 4639 matching lines...) Expand 10 before | Expand all | Expand 10 after
5573 reinterpret_cast<uint64_t>( 5573 reinterpret_cast<uint64_t>(
5574 isolate->builtins()->OsrAfterStackCheck()->entry())); 5574 isolate->builtins()->OsrAfterStackCheck()->entry()));
5575 return OSR_AFTER_STACK_CHECK; 5575 return OSR_AFTER_STACK_CHECK;
5576 } 5576 }
5577 5577
5578 5578
5579 } // namespace internal 5579 } // namespace internal
5580 } // namespace v8 5580 } // namespace v8
5581 5581
5582 #endif // V8_TARGET_ARCH_MIPS64 5582 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/full-codegen-mips.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698