| OLD | NEW | 
|---|
| 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  Loading... | 
| 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  Loading... | 
| 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 | 
| OLD | NEW | 
|---|