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

Side by Side Diff: src/arm64/full-codegen-arm64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_ARM64 7 #if V8_TARGET_ARCH_ARM64
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 1301 matching lines...) Expand 10 before | Expand all | Expand 10 after
1312 // nested functions that don't need literals cloning. If we're running with 1312 // nested functions that don't need literals cloning. If we're running with
1313 // the --always-opt or the --prepare-always-opt flag, we need to use the 1313 // the --always-opt or the --prepare-always-opt flag, we need to use the
1314 // runtime function so that the new function we are creating here gets a 1314 // runtime function so that the new function we are creating here gets a
1315 // chance to have its code optimized and doesn't just get a copy of the 1315 // chance to have its code optimized and doesn't just get a copy of the
1316 // existing unoptimized code. 1316 // existing unoptimized code.
1317 if (!FLAG_always_opt && 1317 if (!FLAG_always_opt &&
1318 !FLAG_prepare_always_opt && 1318 !FLAG_prepare_always_opt &&
1319 !pretenure && 1319 !pretenure &&
1320 scope()->is_function_scope() && 1320 scope()->is_function_scope() &&
1321 info->num_literals() == 0) { 1321 info->num_literals() == 0) {
1322 FastNewClosureStub stub(isolate(), 1322 FastNewClosureStub stub(isolate(), info->strict_mode(),
1323 info->strict_mode(), 1323 info->is_generator(), info->is_concise_method());
1324 info->is_generator());
1325 __ Mov(x2, Operand(info)); 1324 __ Mov(x2, Operand(info));
1326 __ CallStub(&stub); 1325 __ CallStub(&stub);
1327 } else { 1326 } else {
1328 __ Mov(x11, Operand(info)); 1327 __ Mov(x11, Operand(info));
1329 __ LoadRoot(x10, pretenure ? Heap::kTrueValueRootIndex 1328 __ LoadRoot(x10, pretenure ? Heap::kTrueValueRootIndex
1330 : Heap::kFalseValueRootIndex); 1329 : Heap::kFalseValueRootIndex);
1331 __ Push(cp, x11, x10); 1330 __ Push(cp, x11, x10);
1332 __ CallRuntime(Runtime::kNewClosure, 3); 1331 __ CallRuntime(Runtime::kNewClosure, 3);
1333 } 1332 }
1334 context()->Plug(x0); 1333 context()->Plug(x0);
(...skipping 3575 matching lines...) Expand 10 before | Expand all | Expand 10 after
4910 return previous_; 4909 return previous_;
4911 } 4910 }
4912 4911
4913 4912
4914 #undef __ 4913 #undef __
4915 4914
4916 4915
4917 } } // namespace v8::internal 4916 } } // namespace v8::internal
4918 4917
4919 #endif // V8_TARGET_ARCH_ARM64 4918 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/arm64/lithium-codegen-arm64.cc » ('j') | src/parser.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698