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

Side by Side Diff: src/x64/full-codegen-x64.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: merge Created 6 years, 3 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
« no previous file with comments | « src/v8natives.js ('k') | src/x64/lithium-codegen-x64.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_X64 7 #if V8_TARGET_ARCH_X64
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 1270 matching lines...) Expand 10 before | Expand all | Expand 10 after
1281 // space for nested functions that don't need literals cloning. If 1281 // space for nested functions that don't need literals cloning. If
1282 // we're running with the --always-opt or the --prepare-always-opt 1282 // we're running with the --always-opt or the --prepare-always-opt
1283 // flag, we need to use the runtime function so that the new function 1283 // flag, we need to use the runtime function so that the new function
1284 // we are creating here gets a chance to have its code optimized and 1284 // we are creating here gets a chance to have its code optimized and
1285 // doesn't just get a copy of the existing unoptimized code. 1285 // doesn't just get a copy of the existing unoptimized code.
1286 if (!FLAG_always_opt && 1286 if (!FLAG_always_opt &&
1287 !FLAG_prepare_always_opt && 1287 !FLAG_prepare_always_opt &&
1288 !pretenure && 1288 !pretenure &&
1289 scope()->is_function_scope() && 1289 scope()->is_function_scope() &&
1290 info->num_literals() == 0) { 1290 info->num_literals() == 0) {
1291 FastNewClosureStub stub(isolate(), 1291 FastNewClosureStub stub(isolate(), info->strict_mode(), info->kind());
1292 info->strict_mode(),
1293 info->is_generator());
1294 __ Move(rbx, info); 1292 __ Move(rbx, info);
1295 __ CallStub(&stub); 1293 __ CallStub(&stub);
1296 } else { 1294 } else {
1297 __ Push(rsi); 1295 __ Push(rsi);
1298 __ Push(info); 1296 __ Push(info);
1299 __ Push(pretenure 1297 __ Push(pretenure
1300 ? isolate()->factory()->true_value() 1298 ? isolate()->factory()->true_value()
1301 : isolate()->factory()->false_value()); 1299 : isolate()->factory()->false_value());
1302 __ CallRuntime(Runtime::kNewClosure, 3); 1300 __ CallRuntime(Runtime::kNewClosure, 3);
1303 } 1301 }
(...skipping 3532 matching lines...) Expand 10 before | Expand all | Expand 10 after
4836 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), 4834 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
4837 Assembler::target_address_at(call_target_address, 4835 Assembler::target_address_at(call_target_address,
4838 unoptimized_code)); 4836 unoptimized_code));
4839 return OSR_AFTER_STACK_CHECK; 4837 return OSR_AFTER_STACK_CHECK;
4840 } 4838 }
4841 4839
4842 4840
4843 } } // namespace v8::internal 4841 } } // namespace v8::internal
4844 4842
4845 #endif // V8_TARGET_ARCH_X64 4843 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/v8natives.js ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698