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

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

Issue 1668103002: Type Feedback Vector lives in the closure (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE. Created 4 years, 10 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/arm/full-codegen-arm.cc ('k') | src/full-codegen/full-codegen.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 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 #if V8_TARGET_ARCH_ARM64 5 #if V8_TARGET_ARCH_ARM64
6 6
7 #include "src/ast/scopes.h" 7 #include "src/ast/scopes.h"
8 #include "src/code-factory.h" 8 #include "src/code-factory.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 1197 matching lines...) Expand 10 before | Expand all | Expand 10 after
1208 1208
1209 1209
1210 void FullCodeGenerator::EmitNewClosure(Handle<SharedFunctionInfo> info, 1210 void FullCodeGenerator::EmitNewClosure(Handle<SharedFunctionInfo> info,
1211 bool pretenure) { 1211 bool pretenure) {
1212 // Use the fast case closure allocation code that allocates in new space for 1212 // Use the fast case closure allocation code that allocates in new space for
1213 // nested functions that don't need literals cloning. If we're running with 1213 // nested functions that don't need literals cloning. If we're running with
1214 // the --always-opt or the --prepare-always-opt flag, we need to use the 1214 // the --always-opt or the --prepare-always-opt flag, we need to use the
1215 // runtime function so that the new function we are creating here gets a 1215 // runtime function so that the new function we are creating here gets a
1216 // chance to have its code optimized and doesn't just get a copy of the 1216 // chance to have its code optimized and doesn't just get a copy of the
1217 // existing unoptimized code. 1217 // existing unoptimized code.
1218 if (!FLAG_always_opt && 1218 if (!FLAG_always_opt && !FLAG_prepare_always_opt && !pretenure &&
1219 !FLAG_prepare_always_opt && 1219 scope()->is_function_scope()) {
1220 !pretenure &&
1221 scope()->is_function_scope() &&
1222 info->num_literals() == 0) {
1223 FastNewClosureStub stub(isolate(), info->language_mode(), info->kind()); 1220 FastNewClosureStub stub(isolate(), info->language_mode(), info->kind());
1224 __ Mov(x2, Operand(info)); 1221 __ Mov(x2, Operand(info));
1225 __ CallStub(&stub); 1222 __ CallStub(&stub);
1226 } else { 1223 } else {
1227 __ Push(info); 1224 __ Push(info);
1228 __ CallRuntime(pretenure ? Runtime::kNewClosure_Tenured 1225 __ CallRuntime(pretenure ? Runtime::kNewClosure_Tenured
1229 : Runtime::kNewClosure); 1226 : Runtime::kNewClosure);
1230 } 1227 }
1231 context()->Plug(x0); 1228 context()->Plug(x0);
1232 } 1229 }
(...skipping 3596 matching lines...) Expand 10 before | Expand all | Expand 10 after
4829 } 4826 }
4830 4827
4831 return INTERRUPT; 4828 return INTERRUPT;
4832 } 4829 }
4833 4830
4834 4831
4835 } // namespace internal 4832 } // namespace internal
4836 } // namespace v8 4833 } // namespace v8
4837 4834
4838 #endif // V8_TARGET_ARCH_ARM64 4835 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/full-codegen/arm/full-codegen-arm.cc ('k') | src/full-codegen/full-codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698