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

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

Issue 1207583002: Revert "Keep a canonical list of shared function infos." (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 912 matching lines...) Expand 10 before | Expand all | Expand 10 after
923 923
924 924
925 void FullCodeGenerator::VisitFunctionDeclaration( 925 void FullCodeGenerator::VisitFunctionDeclaration(
926 FunctionDeclaration* declaration) { 926 FunctionDeclaration* declaration) {
927 VariableProxy* proxy = declaration->proxy(); 927 VariableProxy* proxy = declaration->proxy();
928 Variable* variable = proxy->var(); 928 Variable* variable = proxy->var();
929 switch (variable->location()) { 929 switch (variable->location()) {
930 case Variable::UNALLOCATED: { 930 case Variable::UNALLOCATED: {
931 globals_->Add(variable->name(), zone()); 931 globals_->Add(variable->name(), zone());
932 Handle<SharedFunctionInfo> function = 932 Handle<SharedFunctionInfo> function =
933 Compiler::GetSharedFunctionInfo(declaration->fun(), script(), info_); 933 Compiler::BuildFunctionInfo(declaration->fun(), script(), info_);
934 // Check for stack-overflow exception. 934 // Check for stack-overflow exception.
935 if (function.is_null()) return SetStackOverflow(); 935 if (function.is_null()) return SetStackOverflow();
936 globals_->Add(function, zone()); 936 globals_->Add(function, zone());
937 break; 937 break;
938 } 938 }
939 939
940 case Variable::PARAMETER: 940 case Variable::PARAMETER:
941 case Variable::LOCAL: { 941 case Variable::LOCAL: {
942 Comment cmnt(masm_, "[ FunctionDeclaration"); 942 Comment cmnt(masm_, "[ FunctionDeclaration");
943 VisitForAccumulatorValue(declaration->fun()); 943 VisitForAccumulatorValue(declaration->fun());
(...skipping 4624 matching lines...) Expand 10 before | Expand all | Expand 10 after
5568 reinterpret_cast<uint64_t>( 5568 reinterpret_cast<uint64_t>(
5569 isolate->builtins()->OsrAfterStackCheck()->entry())); 5569 isolate->builtins()->OsrAfterStackCheck()->entry()));
5570 return OSR_AFTER_STACK_CHECK; 5570 return OSR_AFTER_STACK_CHECK;
5571 } 5571 }
5572 5572
5573 5573
5574 } // namespace internal 5574 } // namespace internal
5575 } // namespace v8 5575 } // namespace v8
5576 5576
5577 #endif // V8_TARGET_ARCH_MIPS64 5577 #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