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

Side by Side Diff: src/x64/lithium-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: 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_X64 7 #if V8_TARGET_ARCH_X64
8 8
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/hydrogen-osr.h" 10 #include "src/hydrogen-osr.h"
(...skipping 5416 matching lines...) Expand 10 before | Expand all | Expand 10 after
5427 } 5427 }
5428 } 5428 }
5429 5429
5430 5430
5431 void LCodeGen::DoFunctionLiteral(LFunctionLiteral* instr) { 5431 void LCodeGen::DoFunctionLiteral(LFunctionLiteral* instr) {
5432 DCHECK(ToRegister(instr->context()).is(rsi)); 5432 DCHECK(ToRegister(instr->context()).is(rsi));
5433 // Use the fast case closure allocation code that allocates in new 5433 // Use the fast case closure allocation code that allocates in new
5434 // space for nested functions that don't need literals cloning. 5434 // space for nested functions that don't need literals cloning.
5435 bool pretenure = instr->hydrogen()->pretenure(); 5435 bool pretenure = instr->hydrogen()->pretenure();
5436 if (!pretenure && instr->hydrogen()->has_no_literals()) { 5436 if (!pretenure && instr->hydrogen()->has_no_literals()) {
5437 FastNewClosureStub stub(isolate(), 5437 FastNewClosureStub stub(isolate(), instr->hydrogen()->strict_mode(),
5438 instr->hydrogen()->strict_mode(), 5438 instr->hydrogen()->is_generator(),
5439 instr->hydrogen()->is_generator()); 5439 instr->hydrogen()->is_concise_method());
5440 __ Move(rbx, instr->hydrogen()->shared_info()); 5440 __ Move(rbx, instr->hydrogen()->shared_info());
5441 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr); 5441 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr);
5442 } else { 5442 } else {
5443 __ Push(rsi); 5443 __ Push(rsi);
5444 __ Push(instr->hydrogen()->shared_info()); 5444 __ Push(instr->hydrogen()->shared_info());
5445 __ PushRoot(pretenure ? Heap::kTrueValueRootIndex : 5445 __ PushRoot(pretenure ? Heap::kTrueValueRootIndex :
5446 Heap::kFalseValueRootIndex); 5446 Heap::kFalseValueRootIndex);
5447 CallRuntime(Runtime::kNewClosure, 3, instr); 5447 CallRuntime(Runtime::kNewClosure, 3, instr);
5448 } 5448 }
5449 } 5449 }
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
5852 CallRuntime(Runtime::kPushBlockContext, 2, instr); 5852 CallRuntime(Runtime::kPushBlockContext, 2, instr);
5853 RecordSafepoint(Safepoint::kNoLazyDeopt); 5853 RecordSafepoint(Safepoint::kNoLazyDeopt);
5854 } 5854 }
5855 5855
5856 5856
5857 #undef __ 5857 #undef __
5858 5858
5859 } } // namespace v8::internal 5859 } } // namespace v8::internal
5860 5860
5861 #endif // V8_TARGET_ARCH_X64 5861 #endif // V8_TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698