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

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: 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/arm64/full-codegen-arm64.cc ('k') | src/ast.h » ('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 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/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 2846 matching lines...) Expand 10 before | Expand all | Expand 10 after
2857 2857
2858 void LCodeGen::DoFunctionLiteral(LFunctionLiteral* instr) { 2858 void LCodeGen::DoFunctionLiteral(LFunctionLiteral* instr) {
2859 DCHECK(ToRegister(instr->context()).is(cp)); 2859 DCHECK(ToRegister(instr->context()).is(cp));
2860 // FunctionLiteral instruction is marked as call, we can trash any register. 2860 // FunctionLiteral instruction is marked as call, we can trash any register.
2861 DCHECK(instr->IsMarkedAsCall()); 2861 DCHECK(instr->IsMarkedAsCall());
2862 2862
2863 // Use the fast case closure allocation code that allocates in new 2863 // Use the fast case closure allocation code that allocates in new
2864 // space for nested functions that don't need literals cloning. 2864 // space for nested functions that don't need literals cloning.
2865 bool pretenure = instr->hydrogen()->pretenure(); 2865 bool pretenure = instr->hydrogen()->pretenure();
2866 if (!pretenure && instr->hydrogen()->has_no_literals()) { 2866 if (!pretenure && instr->hydrogen()->has_no_literals()) {
2867 FastNewClosureStub stub(isolate(), 2867 FastNewClosureStub stub(isolate(), instr->hydrogen()->strict_mode(),
2868 instr->hydrogen()->strict_mode(), 2868 instr->hydrogen()->kind());
2869 instr->hydrogen()->is_generator());
2870 __ Mov(x2, Operand(instr->hydrogen()->shared_info())); 2869 __ Mov(x2, Operand(instr->hydrogen()->shared_info()));
2871 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr); 2870 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr);
2872 } else { 2871 } else {
2873 __ Mov(x2, Operand(instr->hydrogen()->shared_info())); 2872 __ Mov(x2, Operand(instr->hydrogen()->shared_info()));
2874 __ Mov(x1, Operand(pretenure ? factory()->true_value() 2873 __ Mov(x1, Operand(pretenure ? factory()->true_value()
2875 : factory()->false_value())); 2874 : factory()->false_value()));
2876 __ Push(cp, x2, x1); 2875 __ Push(cp, x2, x1);
2877 CallRuntime(Runtime::kNewClosure, 3, instr); 2876 CallRuntime(Runtime::kNewClosure, 3, instr);
2878 } 2877 }
2879 } 2878 }
(...skipping 3171 matching lines...) Expand 10 before | Expand all | Expand 10 after
6051 Handle<ScopeInfo> scope_info = instr->scope_info(); 6050 Handle<ScopeInfo> scope_info = instr->scope_info();
6052 __ Push(scope_info); 6051 __ Push(scope_info);
6053 __ Push(ToRegister(instr->function())); 6052 __ Push(ToRegister(instr->function()));
6054 CallRuntime(Runtime::kPushBlockContext, 2, instr); 6053 CallRuntime(Runtime::kPushBlockContext, 2, instr);
6055 RecordSafepoint(Safepoint::kNoLazyDeopt); 6054 RecordSafepoint(Safepoint::kNoLazyDeopt);
6056 } 6055 }
6057 6056
6058 6057
6059 6058
6060 } } // namespace v8::internal 6059 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm64/full-codegen-arm64.cc ('k') | src/ast.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698