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

Side by Side Diff: src/arm/lithium-codegen-arm.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 #include "src/arm/lithium-codegen-arm.h" 7 #include "src/arm/lithium-codegen-arm.h"
8 #include "src/arm/lithium-gap-resolver-arm.h" 8 #include "src/arm/lithium-gap-resolver-arm.h"
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 5449 matching lines...) Expand 10 before | Expand all | Expand 10 after
5460 __ CopyFields(r0, r1, double_scratch0(), size / kPointerSize); 5460 __ CopyFields(r0, r1, double_scratch0(), size / kPointerSize);
5461 } 5461 }
5462 5462
5463 5463
5464 void LCodeGen::DoFunctionLiteral(LFunctionLiteral* instr) { 5464 void LCodeGen::DoFunctionLiteral(LFunctionLiteral* instr) {
5465 DCHECK(ToRegister(instr->context()).is(cp)); 5465 DCHECK(ToRegister(instr->context()).is(cp));
5466 // Use the fast case closure allocation code that allocates in new 5466 // Use the fast case closure allocation code that allocates in new
5467 // space for nested functions that don't need literals cloning. 5467 // space for nested functions that don't need literals cloning.
5468 bool pretenure = instr->hydrogen()->pretenure(); 5468 bool pretenure = instr->hydrogen()->pretenure();
5469 if (!pretenure && instr->hydrogen()->has_no_literals()) { 5469 if (!pretenure && instr->hydrogen()->has_no_literals()) {
5470 FastNewClosureStub stub(isolate(), 5470 FastNewClosureStub stub(isolate(), instr->hydrogen()->strict_mode(),
5471 instr->hydrogen()->strict_mode(), 5471 instr->hydrogen()->is_generator(),
5472 instr->hydrogen()->is_generator()); 5472 instr->hydrogen()->is_concise_method());
5473 __ mov(r2, Operand(instr->hydrogen()->shared_info())); 5473 __ mov(r2, Operand(instr->hydrogen()->shared_info()));
5474 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr); 5474 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr);
5475 } else { 5475 } else {
5476 __ mov(r2, Operand(instr->hydrogen()->shared_info())); 5476 __ mov(r2, Operand(instr->hydrogen()->shared_info()));
5477 __ mov(r1, Operand(pretenure ? factory()->true_value() 5477 __ mov(r1, Operand(pretenure ? factory()->true_value()
5478 : factory()->false_value())); 5478 : factory()->false_value()));
5479 __ Push(cp, r2, r1); 5479 __ Push(cp, r2, r1);
5480 CallRuntime(Runtime::kNewClosure, 3, instr); 5480 CallRuntime(Runtime::kNewClosure, 3, instr);
5481 } 5481 }
5482 } 5482 }
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
5884 __ Push(scope_info); 5884 __ Push(scope_info);
5885 __ push(ToRegister(instr->function())); 5885 __ push(ToRegister(instr->function()));
5886 CallRuntime(Runtime::kPushBlockContext, 2, instr); 5886 CallRuntime(Runtime::kPushBlockContext, 2, instr);
5887 RecordSafepoint(Safepoint::kNoLazyDeopt); 5887 RecordSafepoint(Safepoint::kNoLazyDeopt);
5888 } 5888 }
5889 5889
5890 5890
5891 #undef __ 5891 #undef __
5892 5892
5893 } } // namespace v8::internal 5893 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/arm64/full-codegen-arm64.cc » ('j') | src/parser.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698