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

Side by Side Diff: src/x87/full-codegen-x87.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: Add strict formal param checking 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_X87 7 #if V8_TARGET_ARCH_X87
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 // flag, we need to use the runtime function so that the new function 1247 // flag, we need to use the runtime function so that the new function
1248 // we are creating here gets a chance to have its code optimized and 1248 // we are creating here gets a chance to have its code optimized and
1249 // doesn't just get a copy of the existing unoptimized code. 1249 // doesn't just get a copy of the existing unoptimized code.
1250 if (!FLAG_always_opt && 1250 if (!FLAG_always_opt &&
1251 !FLAG_prepare_always_opt && 1251 !FLAG_prepare_always_opt &&
1252 !pretenure && 1252 !pretenure &&
1253 scope()->is_function_scope() && 1253 scope()->is_function_scope() &&
1254 info->num_literals() == 0) { 1254 info->num_literals() == 0) {
1255 FastNewClosureStub stub(isolate(), 1255 FastNewClosureStub stub(isolate(),
1256 info->strict_mode(), 1256 info->strict_mode(),
1257 info->is_generator()); 1257 info->is_generator(),
1258 info->is_concise_method();
1258 __ mov(ebx, Immediate(info)); 1259 __ mov(ebx, Immediate(info));
1259 __ CallStub(&stub); 1260 __ CallStub(&stub);
1260 } else { 1261 } else {
1261 __ push(esi); 1262 __ push(esi);
1262 __ push(Immediate(info)); 1263 __ push(Immediate(info));
1263 __ push(Immediate(pretenure 1264 __ push(Immediate(pretenure
1264 ? isolate()->factory()->true_value() 1265 ? isolate()->factory()->true_value()
1265 : isolate()->factory()->false_value())); 1266 : isolate()->factory()->false_value()));
1266 __ CallRuntime(Runtime::kNewClosure, 3); 1267 __ CallRuntime(Runtime::kNewClosure, 3);
1267 } 1268 }
(...skipping 3550 matching lines...) Expand 10 before | Expand all | Expand 10 after
4818 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), 4819 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
4819 Assembler::target_address_at(call_target_address, 4820 Assembler::target_address_at(call_target_address,
4820 unoptimized_code)); 4821 unoptimized_code));
4821 return OSR_AFTER_STACK_CHECK; 4822 return OSR_AFTER_STACK_CHECK;
4822 } 4823 }
4823 4824
4824 4825
4825 } } // namespace v8::internal 4826 } } // namespace v8::internal
4826 4827
4827 #endif // V8_TARGET_ARCH_X87 4828 #endif // V8_TARGET_ARCH_X87
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698