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

Side by Side Diff: src/full-codegen/arm64/full-codegen-arm64.cc

Issue 1365503005: [es6] Fix invalid ToString in implementation of ToName. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Meh! Created 5 years, 2 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
« no previous file with comments | « src/full-codegen/arm/full-codegen-arm.cc ('k') | src/full-codegen/ia32/full-codegen-ia32.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 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 #if V8_TARGET_ARCH_ARM64 5 #if V8_TARGET_ARCH_ARM64
6 6
7 #include "src/code-factory.h" 7 #include "src/code-factory.h"
8 #include "src/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/codegen.h" 9 #include "src/codegen.h"
10 #include "src/compiler.h" 10 #include "src/compiler.h"
(...skipping 3496 matching lines...) Expand 10 before | Expand all | Expand 10 after
3507 DCHECK_EQ(1, args->length()); 3507 DCHECK_EQ(1, args->length());
3508 3508
3509 // Load the argument into x0 and convert it. 3509 // Load the argument into x0 and convert it.
3510 VisitForAccumulatorValue(args->at(0)); 3510 VisitForAccumulatorValue(args->at(0));
3511 3511
3512 Label convert, done_convert; 3512 Label convert, done_convert;
3513 __ JumpIfSmi(x0, &convert); 3513 __ JumpIfSmi(x0, &convert);
3514 STATIC_ASSERT(FIRST_NAME_TYPE == FIRST_TYPE); 3514 STATIC_ASSERT(FIRST_NAME_TYPE == FIRST_TYPE);
3515 __ JumpIfObjectType(x0, x1, x1, LAST_NAME_TYPE, &done_convert, ls); 3515 __ JumpIfObjectType(x0, x1, x1, LAST_NAME_TYPE, &done_convert, ls);
3516 __ Bind(&convert); 3516 __ Bind(&convert);
3517 ToStringStub stub(isolate()); 3517 __ Push(x0);
3518 __ CallStub(&stub); 3518 __ CallRuntime(Runtime::kToName, 1);
3519 __ Bind(&done_convert); 3519 __ Bind(&done_convert);
3520 context()->Plug(x0); 3520 context()->Plug(x0);
3521 } 3521 }
3522 3522
3523 3523
3524 void FullCodeGenerator::EmitToObject(CallRuntime* expr) { 3524 void FullCodeGenerator::EmitToObject(CallRuntime* expr) {
3525 ZoneList<Expression*>* args = expr->arguments(); 3525 ZoneList<Expression*>* args = expr->arguments();
3526 DCHECK_EQ(1, args->length()); 3526 DCHECK_EQ(1, args->length());
3527 3527
3528 // Load the argument into x0 and convert it. 3528 // Load the argument into x0 and convert it.
(...skipping 1712 matching lines...) Expand 10 before | Expand all | Expand 10 after
5241 } 5241 }
5242 5242
5243 return INTERRUPT; 5243 return INTERRUPT;
5244 } 5244 }
5245 5245
5246 5246
5247 } // namespace internal 5247 } // namespace internal
5248 } // namespace v8 5248 } // namespace v8
5249 5249
5250 #endif // V8_TARGET_ARCH_ARM64 5250 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/full-codegen/arm/full-codegen-arm.cc ('k') | src/full-codegen/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698