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

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

Issue 1563213002: Type Feedback Vector lives in the closure (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Exclude an ignition test. Created 4 years, 11 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 1187 matching lines...) Expand 10 before | Expand all | Expand 10 after
1198 1198
1199 1199
1200 void FullCodeGenerator::EmitNewClosure(Handle<SharedFunctionInfo> info, 1200 void FullCodeGenerator::EmitNewClosure(Handle<SharedFunctionInfo> info,
1201 bool pretenure) { 1201 bool pretenure) {
1202 // Use the fast case closure allocation code that allocates in new space for 1202 // Use the fast case closure allocation code that allocates in new space for
1203 // nested functions that don't need literals cloning. If we're running with 1203 // nested functions that don't need literals cloning. If we're running with
1204 // the --always-opt or the --prepare-always-opt flag, we need to use the 1204 // the --always-opt or the --prepare-always-opt flag, we need to use the
1205 // runtime function so that the new function we are creating here gets a 1205 // runtime function so that the new function we are creating here gets a
1206 // chance to have its code optimized and doesn't just get a copy of the 1206 // chance to have its code optimized and doesn't just get a copy of the
1207 // existing unoptimized code. 1207 // existing unoptimized code.
1208 if (!FLAG_always_opt && 1208 if (!FLAG_always_opt && !FLAG_prepare_always_opt && !pretenure &&
1209 !FLAG_prepare_always_opt && 1209 scope()->is_function_scope()) {
1210 !pretenure &&
1211 scope()->is_function_scope() &&
1212 info->num_literals() == 0) {
1213 FastNewClosureStub stub(isolate(), info->language_mode(), info->kind()); 1210 FastNewClosureStub stub(isolate(), info->language_mode(), info->kind());
1214 __ Mov(x2, Operand(info)); 1211 __ Mov(x2, Operand(info));
1215 __ CallStub(&stub); 1212 __ CallStub(&stub);
1216 } else { 1213 } else {
1217 __ Push(info); 1214 __ Push(info);
1218 __ CallRuntime(pretenure ? Runtime::kNewClosure_Tenured 1215 __ CallRuntime(pretenure ? Runtime::kNewClosure_Tenured
1219 : Runtime::kNewClosure); 1216 : Runtime::kNewClosure);
1220 } 1217 }
1221 context()->Plug(x0); 1218 context()->Plug(x0);
1222 } 1219 }
(...skipping 3615 matching lines...) Expand 10 before | Expand all | Expand 10 after
4838 } 4835 }
4839 4836
4840 return INTERRUPT; 4837 return INTERRUPT;
4841 } 4838 }
4842 4839
4843 4840
4844 } // namespace internal 4841 } // namespace internal
4845 } // namespace v8 4842 } // namespace v8
4846 4843
4847 #endif // V8_TARGET_ARCH_ARM64 4844 #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