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

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

Issue 1211453002: Reland "Keep a canonical list of shared function infos." (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix alwaysopt Created 5 years, 5 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 | « no previous file | src/arm64/full-codegen-arm64.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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_ARM 7 #if V8_TARGET_ARCH_ARM
8 8
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 915 matching lines...) Expand 10 before | Expand all | Expand 10 after
926 926
927 927
928 void FullCodeGenerator::VisitFunctionDeclaration( 928 void FullCodeGenerator::VisitFunctionDeclaration(
929 FunctionDeclaration* declaration) { 929 FunctionDeclaration* declaration) {
930 VariableProxy* proxy = declaration->proxy(); 930 VariableProxy* proxy = declaration->proxy();
931 Variable* variable = proxy->var(); 931 Variable* variable = proxy->var();
932 switch (variable->location()) { 932 switch (variable->location()) {
933 case Variable::UNALLOCATED: { 933 case Variable::UNALLOCATED: {
934 globals_->Add(variable->name(), zone()); 934 globals_->Add(variable->name(), zone());
935 Handle<SharedFunctionInfo> function = 935 Handle<SharedFunctionInfo> function =
936 Compiler::BuildFunctionInfo(declaration->fun(), script(), info_); 936 Compiler::GetSharedFunctionInfo(declaration->fun(), script(), info_);
937 // Check for stack-overflow exception. 937 // Check for stack-overflow exception.
938 if (function.is_null()) return SetStackOverflow(); 938 if (function.is_null()) return SetStackOverflow();
939 globals_->Add(function, zone()); 939 globals_->Add(function, zone());
940 break; 940 break;
941 } 941 }
942 942
943 case Variable::PARAMETER: 943 case Variable::PARAMETER:
944 case Variable::LOCAL: { 944 case Variable::LOCAL: {
945 Comment cmnt(masm_, "[ FunctionDeclaration"); 945 Comment cmnt(masm_, "[ FunctionDeclaration");
946 VisitForAccumulatorValue(declaration->fun()); 946 VisitForAccumulatorValue(declaration->fun());
(...skipping 4661 matching lines...) Expand 10 before | Expand all | Expand 10 after
5608 DCHECK(interrupt_address == 5608 DCHECK(interrupt_address ==
5609 isolate->builtins()->OsrAfterStackCheck()->entry()); 5609 isolate->builtins()->OsrAfterStackCheck()->entry());
5610 return OSR_AFTER_STACK_CHECK; 5610 return OSR_AFTER_STACK_CHECK;
5611 } 5611 }
5612 5612
5613 5613
5614 } // namespace internal 5614 } // namespace internal
5615 } // namespace v8 5615 } // namespace v8
5616 5616
5617 #endif // V8_TARGET_ARCH_ARM 5617 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm64/full-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698