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

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

Issue 1161393007: OLD type Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix 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/hydrogen.h ('k') | src/ia32/lithium-codegen-ia32.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_IA32 7 #if V8_TARGET_ARCH_IA32
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 1227 matching lines...) Expand 10 before | Expand all | Expand 10 after
1238 1238
1239 void FullCodeGenerator::EmitNewClosure(Handle<SharedFunctionInfo> info, 1239 void FullCodeGenerator::EmitNewClosure(Handle<SharedFunctionInfo> info,
1240 bool pretenure) { 1240 bool pretenure) {
1241 // Use the fast case closure allocation code that allocates in new 1241 // Use the fast case closure allocation code that allocates in new
1242 // space for nested functions that don't need literals cloning. If 1242 // space for nested functions that don't need literals cloning. If
1243 // we're running with the --always-opt or the --prepare-always-opt 1243 // we're running with the --always-opt or the --prepare-always-opt
1244 // flag, we need to use the runtime function so that the new function 1244 // flag, we need to use the runtime function so that the new function
1245 // we are creating here gets a chance to have its code optimized and 1245 // we are creating here gets a chance to have its code optimized and
1246 // doesn't just get a copy of the existing unoptimized code. 1246 // doesn't just get a copy of the existing unoptimized code.
1247 if (!FLAG_always_opt && 1247 if (!FLAG_always_opt &&
1248 info->asm_mode() != ASM_FUNCTION &&
1248 !FLAG_prepare_always_opt && 1249 !FLAG_prepare_always_opt &&
1249 !pretenure && 1250 !pretenure &&
1250 scope()->is_function_scope() && 1251 scope()->is_function_scope() &&
1251 info->num_literals() == 0) { 1252 info->num_literals() == 0) {
1252 FastNewClosureStub stub(isolate(), info->language_mode(), info->kind()); 1253 FastNewClosureStub stub(isolate(), info->language_mode(), info->kind());
1253 __ mov(ebx, Immediate(info)); 1254 __ mov(ebx, Immediate(info));
1254 __ CallStub(&stub); 1255 __ CallStub(&stub);
1255 } else { 1256 } else {
1256 __ push(esi); 1257 __ push(esi);
1257 __ push(Immediate(info)); 1258 __ push(Immediate(info));
(...skipping 4202 matching lines...) Expand 10 before | Expand all | Expand 10 after
5460 Assembler::target_address_at(call_target_address, 5461 Assembler::target_address_at(call_target_address,
5461 unoptimized_code)); 5462 unoptimized_code));
5462 return OSR_AFTER_STACK_CHECK; 5463 return OSR_AFTER_STACK_CHECK;
5463 } 5464 }
5464 5465
5465 5466
5466 } // namespace internal 5467 } // namespace internal
5467 } // namespace v8 5468 } // namespace v8
5468 5469
5469 #endif // V8_TARGET_ARCH_IA32 5470 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/hydrogen.h ('k') | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698