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

Side by Side Diff: src/arm64/full-codegen-arm64.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/arm/full-codegen-arm.cc ('k') | src/ast.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_ARM64 7 #if V8_TARGET_ARCH_ARM64
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 905 matching lines...) Expand 10 before | Expand all | Expand 10 after
916 916
917 917
918 void FullCodeGenerator::VisitFunctionDeclaration( 918 void FullCodeGenerator::VisitFunctionDeclaration(
919 FunctionDeclaration* declaration) { 919 FunctionDeclaration* declaration) {
920 VariableProxy* proxy = declaration->proxy(); 920 VariableProxy* proxy = declaration->proxy();
921 Variable* variable = proxy->var(); 921 Variable* variable = proxy->var();
922 switch (variable->location()) { 922 switch (variable->location()) {
923 case Variable::UNALLOCATED: { 923 case Variable::UNALLOCATED: {
924 globals_->Add(variable->name(), zone()); 924 globals_->Add(variable->name(), zone());
925 Handle<SharedFunctionInfo> function = 925 Handle<SharedFunctionInfo> function =
926 Compiler::BuildFunctionInfo(declaration->fun(), script(), info_); 926 Compiler::GetSharedFunctionInfo(declaration->fun(), script(), info_);
927 // Check for stack overflow exception. 927 // Check for stack overflow exception.
928 if (function.is_null()) return SetStackOverflow(); 928 if (function.is_null()) return SetStackOverflow();
929 globals_->Add(function, zone()); 929 globals_->Add(function, zone());
930 break; 930 break;
931 } 931 }
932 932
933 case Variable::PARAMETER: 933 case Variable::PARAMETER:
934 case Variable::LOCAL: { 934 case Variable::LOCAL: {
935 Comment cmnt(masm_, "[ Function Declaration"); 935 Comment cmnt(masm_, "[ Function Declaration");
936 VisitForAccumulatorValue(declaration->fun()); 936 VisitForAccumulatorValue(declaration->fun());
(...skipping 4653 matching lines...) Expand 10 before | Expand all | Expand 10 after
5590 } 5590 }
5591 5591
5592 return INTERRUPT; 5592 return INTERRUPT;
5593 } 5593 }
5594 5594
5595 5595
5596 } // namespace internal 5596 } // namespace internal
5597 } // namespace v8 5597 } // namespace v8
5598 5598
5599 #endif // V8_TARGET_ARCH_ARM64 5599 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/ast.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698