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

Side by Side Diff: src/arm64/lithium-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 #include "src/arm64/lithium-codegen-arm64.h" 7 #include "src/arm64/lithium-codegen-arm64.h"
8 #include "src/arm64/lithium-gap-resolver-arm64.h" 8 #include "src/arm64/lithium-gap-resolver-arm64.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 2817 matching lines...) Expand 10 before | Expand all | Expand 10 after
2828 2828
2829 void LCodeGen::DoFunctionLiteral(LFunctionLiteral* instr) { 2829 void LCodeGen::DoFunctionLiteral(LFunctionLiteral* instr) {
2830 DCHECK(ToRegister(instr->context()).is(cp)); 2830 DCHECK(ToRegister(instr->context()).is(cp));
2831 // FunctionLiteral instruction is marked as call, we can trash any register. 2831 // FunctionLiteral instruction is marked as call, we can trash any register.
2832 DCHECK(instr->IsMarkedAsCall()); 2832 DCHECK(instr->IsMarkedAsCall());
2833 2833
2834 // Use the fast case closure allocation code that allocates in new 2834 // Use the fast case closure allocation code that allocates in new
2835 // space for nested functions that don't need literals cloning. 2835 // space for nested functions that don't need literals cloning.
2836 bool pretenure = instr->hydrogen()->pretenure(); 2836 bool pretenure = instr->hydrogen()->pretenure();
2837 if (!pretenure && instr->hydrogen()->has_no_literals()) { 2837 if (!pretenure && instr->hydrogen()->has_no_literals()) {
2838 FastNewClosureStub stub(isolate(), 2838 FastNewClosureStub stub(isolate(), instr->hydrogen()->strict_mode(),
2839 instr->hydrogen()->strict_mode(), 2839 instr->hydrogen()->is_generator(),
2840 instr->hydrogen()->is_generator()); 2840 instr->hydrogen()->is_concise_method());
2841 __ Mov(x2, Operand(instr->hydrogen()->shared_info())); 2841 __ Mov(x2, Operand(instr->hydrogen()->shared_info()));
2842 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr); 2842 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr);
2843 } else { 2843 } else {
2844 __ Mov(x2, Operand(instr->hydrogen()->shared_info())); 2844 __ Mov(x2, Operand(instr->hydrogen()->shared_info()));
2845 __ Mov(x1, Operand(pretenure ? factory()->true_value() 2845 __ Mov(x1, Operand(pretenure ? factory()->true_value()
2846 : factory()->false_value())); 2846 : factory()->false_value()));
2847 __ Push(cp, x2, x1); 2847 __ Push(cp, x2, x1);
2848 CallRuntime(Runtime::kNewClosure, 3, instr); 2848 CallRuntime(Runtime::kNewClosure, 3, instr);
2849 } 2849 }
2850 } 2850 }
(...skipping 3175 matching lines...) Expand 10 before | Expand all | Expand 10 after
6026 Handle<ScopeInfo> scope_info = instr->scope_info(); 6026 Handle<ScopeInfo> scope_info = instr->scope_info();
6027 __ Push(scope_info); 6027 __ Push(scope_info);
6028 __ Push(ToRegister(instr->function())); 6028 __ Push(ToRegister(instr->function()));
6029 CallRuntime(Runtime::kPushBlockContext, 2, instr); 6029 CallRuntime(Runtime::kPushBlockContext, 2, instr);
6030 RecordSafepoint(Safepoint::kNoLazyDeopt); 6030 RecordSafepoint(Safepoint::kNoLazyDeopt);
6031 } 6031 }
6032 6032
6033 6033
6034 6034
6035 } } // namespace v8::internal 6035 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm64/full-codegen-arm64.cc ('k') | src/ast.h » ('j') | src/parser.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698