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

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 1236 matching lines...) Expand 10 before | Expand all | Expand 10 after
1247 // space for nested functions that don't need literals cloning. If 1247 // space for nested functions that don't need literals cloning. If
1248 // we're running with the --always-opt or the --prepare-always-opt 1248 // we're running with the --always-opt or the --prepare-always-opt
1249 // flag, we need to use the runtime function so that the new function 1249 // flag, we need to use the runtime function so that the new function
1250 // we are creating here gets a chance to have its code optimized and 1250 // we are creating here gets a chance to have its code optimized and
1251 // doesn't just get a copy of the existing unoptimized code. 1251 // doesn't just get a copy of the existing unoptimized code.
1252 if (!FLAG_always_opt && 1252 if (!FLAG_always_opt &&
1253 !FLAG_prepare_always_opt && 1253 !FLAG_prepare_always_opt &&
1254 !pretenure && 1254 !pretenure &&
1255 scope()->is_function_scope() && 1255 scope()->is_function_scope() &&
1256 info->num_literals() == 0) { 1256 info->num_literals() == 0) {
1257 FastNewClosureStub stub(isolate(), 1257 FastNewClosureStub stub(isolate(), info->strict_mode(), info->kind());
1258 info->strict_mode(),
1259 info->is_generator());
1260 __ mov(ebx, Immediate(info)); 1258 __ mov(ebx, Immediate(info));
1261 __ CallStub(&stub); 1259 __ CallStub(&stub);
1262 } else { 1260 } else {
1263 __ push(esi); 1261 __ push(esi);
1264 __ push(Immediate(info)); 1262 __ push(Immediate(info));
1265 __ push(Immediate(pretenure 1263 __ push(Immediate(pretenure
1266 ? isolate()->factory()->true_value() 1264 ? isolate()->factory()->true_value()
1267 : isolate()->factory()->false_value())); 1265 : isolate()->factory()->false_value()));
1268 __ CallRuntime(Runtime::kNewClosure, 3); 1266 __ CallRuntime(Runtime::kNewClosure, 3);
1269 } 1267 }
(...skipping 3554 matching lines...) Expand 10 before | Expand all | Expand 10 after
4824 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), 4822 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
4825 Assembler::target_address_at(call_target_address, 4823 Assembler::target_address_at(call_target_address,
4826 unoptimized_code)); 4824 unoptimized_code));
4827 return OSR_AFTER_STACK_CHECK; 4825 return OSR_AFTER_STACK_CHECK;
4828 } 4826 }
4829 4827
4830 4828
4831 } } // namespace v8::internal 4829 } } // namespace v8::internal
4832 4830
4833 #endif // V8_TARGET_ARCH_IA32 4831 #endif // V8_TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698