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

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

Issue 1670813005: Revert of Type Feedback Vector lives in the closure (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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/full-codegen.cc ('k') | src/full-codegen/mips/full-codegen-mips.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 #if V8_TARGET_ARCH_IA32 5 #if V8_TARGET_ARCH_IA32
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 1126 matching lines...) Expand 10 before | Expand all | Expand 10 after
1137 1137
1138 1138
1139 void FullCodeGenerator::EmitNewClosure(Handle<SharedFunctionInfo> info, 1139 void FullCodeGenerator::EmitNewClosure(Handle<SharedFunctionInfo> info,
1140 bool pretenure) { 1140 bool pretenure) {
1141 // Use the fast case closure allocation code that allocates in new 1141 // Use the fast case closure allocation code that allocates in new
1142 // space for nested functions that don't need literals cloning. If 1142 // space for nested functions that don't need literals cloning. If
1143 // we're running with the --always-opt or the --prepare-always-opt 1143 // we're running with the --always-opt or the --prepare-always-opt
1144 // flag, we need to use the runtime function so that the new function 1144 // flag, we need to use the runtime function so that the new function
1145 // we are creating here gets a chance to have its code optimized and 1145 // we are creating here gets a chance to have its code optimized and
1146 // doesn't just get a copy of the existing unoptimized code. 1146 // doesn't just get a copy of the existing unoptimized code.
1147 if (!FLAG_always_opt && !FLAG_prepare_always_opt && !pretenure && 1147 if (!FLAG_always_opt &&
1148 scope()->is_function_scope()) { 1148 !FLAG_prepare_always_opt &&
1149 !pretenure &&
1150 scope()->is_function_scope() &&
1151 info->num_literals() == 0) {
1149 FastNewClosureStub stub(isolate(), info->language_mode(), info->kind()); 1152 FastNewClosureStub stub(isolate(), info->language_mode(), info->kind());
1150 __ mov(ebx, Immediate(info)); 1153 __ mov(ebx, Immediate(info));
1151 __ CallStub(&stub); 1154 __ CallStub(&stub);
1152 } else { 1155 } else {
1153 __ push(Immediate(info)); 1156 __ push(Immediate(info));
1154 __ CallRuntime(pretenure ? Runtime::kNewClosure_Tenured 1157 __ CallRuntime(pretenure ? Runtime::kNewClosure_Tenured
1155 : Runtime::kNewClosure); 1158 : Runtime::kNewClosure);
1156 } 1159 }
1157 context()->Plug(eax); 1160 context()->Plug(eax);
1158 } 1161 }
(...skipping 3548 matching lines...) Expand 10 before | Expand all | Expand 10 after
4707 Assembler::target_address_at(call_target_address, 4710 Assembler::target_address_at(call_target_address,
4708 unoptimized_code)); 4711 unoptimized_code));
4709 return OSR_AFTER_STACK_CHECK; 4712 return OSR_AFTER_STACK_CHECK;
4710 } 4713 }
4711 4714
4712 4715
4713 } // namespace internal 4716 } // namespace internal
4714 } // namespace v8 4717 } // namespace v8
4715 4718
4716 #endif // V8_TARGET_ARCH_IA32 4719 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/full-codegen/full-codegen.cc ('k') | src/full-codegen/mips/full-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698