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/mips64/full-codegen-mips64.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/mips/lithium-codegen-mips.cc ('k') | src/mips64/lithium-codegen-mips64.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_MIPS64 7 #if V8_TARGET_ARCH_MIPS64
8 8
9 // Note on Mips implementation: 9 // Note on Mips implementation:
10 // 10 //
(...skipping 1296 matching lines...) Expand 10 before | Expand all | Expand 10 after
1307 // space for nested functions that don't need literals cloning. If 1307 // space for nested functions that don't need literals cloning. If
1308 // we're running with the --always-opt or the --prepare-always-opt 1308 // we're running with the --always-opt or the --prepare-always-opt
1309 // flag, we need to use the runtime function so that the new function 1309 // flag, we need to use the runtime function so that the new function
1310 // we are creating here gets a chance to have its code optimized and 1310 // we are creating here gets a chance to have its code optimized and
1311 // doesn't just get a copy of the existing unoptimized code. 1311 // doesn't just get a copy of the existing unoptimized code.
1312 if (!FLAG_always_opt && 1312 if (!FLAG_always_opt &&
1313 !FLAG_prepare_always_opt && 1313 !FLAG_prepare_always_opt &&
1314 !pretenure && 1314 !pretenure &&
1315 scope()->is_function_scope() && 1315 scope()->is_function_scope() &&
1316 info->num_literals() == 0) { 1316 info->num_literals() == 0) {
1317 FastNewClosureStub stub(isolate(), 1317 FastNewClosureStub stub(isolate(), info->strict_mode(), info->kind());
1318 info->strict_mode(),
1319 info->is_generator());
1320 __ li(a2, Operand(info)); 1318 __ li(a2, Operand(info));
1321 __ CallStub(&stub); 1319 __ CallStub(&stub);
1322 } else { 1320 } else {
1323 __ li(a0, Operand(info)); 1321 __ li(a0, Operand(info));
1324 __ LoadRoot(a1, pretenure ? Heap::kTrueValueRootIndex 1322 __ LoadRoot(a1, pretenure ? Heap::kTrueValueRootIndex
1325 : Heap::kFalseValueRootIndex); 1323 : Heap::kFalseValueRootIndex);
1326 __ Push(cp, a0, a1); 1324 __ Push(cp, a0, a1);
1327 __ CallRuntime(Runtime::kNewClosure, 3); 1325 __ CallRuntime(Runtime::kNewClosure, 3);
1328 } 1326 }
1329 context()->Plug(v0); 1327 context()->Plug(v0);
(...skipping 3553 matching lines...) Expand 10 before | Expand all | Expand 10 after
4883 Assembler::target_address_at(pc_immediate_load_address)) == 4881 Assembler::target_address_at(pc_immediate_load_address)) ==
4884 reinterpret_cast<uint64_t>( 4882 reinterpret_cast<uint64_t>(
4885 isolate->builtins()->OsrAfterStackCheck()->entry())); 4883 isolate->builtins()->OsrAfterStackCheck()->entry()));
4886 return OSR_AFTER_STACK_CHECK; 4884 return OSR_AFTER_STACK_CHECK;
4887 } 4885 }
4888 4886
4889 4887
4890 } } // namespace v8::internal 4888 } } // namespace v8::internal
4891 4889
4892 #endif // V8_TARGET_ARCH_MIPS64 4890 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | src/mips64/lithium-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698