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

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

Issue 477263002: ES6: Add support for method shorthand in object literals (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
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-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 1237 matching lines...) Expand 10 before | Expand all | Expand 10 after
1248 // space for nested functions that don't need literals cloning. If 1248 // space for nested functions that don't need literals cloning. If
1249 // we're running with the --always-opt or the --prepare-always-opt 1249 // we're running with the --always-opt or the --prepare-always-opt
1250 // flag, we need to use the runtime function so that the new function 1250 // flag, we need to use the runtime function so that the new function
1251 // we are creating here gets a chance to have its code optimized and 1251 // we are creating here gets a chance to have its code optimized and
1252 // doesn't just get a copy of the existing unoptimized code. 1252 // doesn't just get a copy of the existing unoptimized code.
1253 if (!FLAG_always_opt && 1253 if (!FLAG_always_opt &&
1254 !FLAG_prepare_always_opt && 1254 !FLAG_prepare_always_opt &&
1255 !pretenure && 1255 !pretenure &&
1256 scope()->is_function_scope() && 1256 scope()->is_function_scope() &&
1257 info->num_literals() == 0) { 1257 info->num_literals() == 0) {
1258 FastNewClosureStub stub(isolate(), 1258 FastNewClosureStub stub(isolate(), info->strict_mode(),
1259 info->strict_mode(), 1259 info->is_generator(), info->is_concise_method());
1260 info->is_generator());
1261 __ mov(ebx, Immediate(info)); 1260 __ mov(ebx, Immediate(info));
1262 __ CallStub(&stub); 1261 __ CallStub(&stub);
1263 } else { 1262 } else {
1264 __ push(esi); 1263 __ push(esi);
1265 __ push(Immediate(info)); 1264 __ push(Immediate(info));
1266 __ push(Immediate(pretenure 1265 __ push(Immediate(pretenure
1267 ? isolate()->factory()->true_value() 1266 ? isolate()->factory()->true_value()
1268 : isolate()->factory()->false_value())); 1267 : isolate()->factory()->false_value()));
1269 __ CallRuntime(Runtime::kNewClosure, 3); 1268 __ CallRuntime(Runtime::kNewClosure, 3);
1270 } 1269 }
(...skipping 3554 matching lines...) Expand 10 before | Expand all | Expand 10 after
4825 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), 4824 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
4826 Assembler::target_address_at(call_target_address, 4825 Assembler::target_address_at(call_target_address,
4827 unoptimized_code)); 4826 unoptimized_code));
4828 return OSR_AFTER_STACK_CHECK; 4827 return OSR_AFTER_STACK_CHECK;
4829 } 4828 }
4830 4829
4831 4830
4832 } } // namespace v8::internal 4831 } } // namespace v8::internal
4833 4832
4834 #endif // V8_TARGET_ARCH_IA32 4833 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« src/ast.h ('K') | « src/hydrogen-instructions.h ('k') | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698