| 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/ast/scopes.h" | 7 #include "src/ast/scopes.h" |
| 8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
| 9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
| 10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
| (...skipping 3436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3447 | 3447 |
| 3448 __ AssertString(x0); | 3448 __ AssertString(x0); |
| 3449 | 3449 |
| 3450 __ Ldr(x10, FieldMemOperand(x0, String::kHashFieldOffset)); | 3450 __ Ldr(x10, FieldMemOperand(x0, String::kHashFieldOffset)); |
| 3451 __ IndexFromHash(x10, x0); | 3451 __ IndexFromHash(x10, x0); |
| 3452 | 3452 |
| 3453 context()->Plug(x0); | 3453 context()->Plug(x0); |
| 3454 } | 3454 } |
| 3455 | 3455 |
| 3456 | 3456 |
| 3457 void FullCodeGenerator::EmitGetSuperConstructor(CallRuntime* expr) { |
| 3458 ZoneList<Expression*>* args = expr->arguments(); |
| 3459 DCHECK_EQ(1, args->length()); |
| 3460 VisitForAccumulatorValue(args->at(0)); |
| 3461 __ AssertFunction(x0); |
| 3462 __ Ldr(x0, FieldMemOperand(x0, HeapObject::kMapOffset)); |
| 3463 __ Ldr(x0, FieldMemOperand(x0, Map::kPrototypeOffset)); |
| 3464 context()->Plug(x0); |
| 3465 } |
| 3466 |
| 3467 |
| 3457 void FullCodeGenerator::EmitFastOneByteArrayJoin(CallRuntime* expr) { | 3468 void FullCodeGenerator::EmitFastOneByteArrayJoin(CallRuntime* expr) { |
| 3458 ASM_LOCATION("FullCodeGenerator::EmitFastOneByteArrayJoin"); | 3469 ASM_LOCATION("FullCodeGenerator::EmitFastOneByteArrayJoin"); |
| 3459 | 3470 |
| 3460 ZoneList<Expression*>* args = expr->arguments(); | 3471 ZoneList<Expression*>* args = expr->arguments(); |
| 3461 DCHECK(args->length() == 2); | 3472 DCHECK(args->length() == 2); |
| 3462 VisitForStackValue(args->at(1)); | 3473 VisitForStackValue(args->at(1)); |
| 3463 VisitForAccumulatorValue(args->at(0)); | 3474 VisitForAccumulatorValue(args->at(0)); |
| 3464 | 3475 |
| 3465 Register array = x0; | 3476 Register array = x0; |
| 3466 Register result = x0; | 3477 Register result = x0; |
| (...skipping 1396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4863 } | 4874 } |
| 4864 | 4875 |
| 4865 return INTERRUPT; | 4876 return INTERRUPT; |
| 4866 } | 4877 } |
| 4867 | 4878 |
| 4868 | 4879 |
| 4869 } // namespace internal | 4880 } // namespace internal |
| 4870 } // namespace v8 | 4881 } // namespace v8 |
| 4871 | 4882 |
| 4872 #endif // V8_TARGET_ARCH_ARM64 | 4883 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |