| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM64. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM64. |
| 6 #if defined(TARGET_ARCH_ARM64) | 6 #if defined(TARGET_ARCH_ARM64) |
| 7 | 7 |
| 8 #include "vm/intrinsifier.h" | 8 #include "vm/intrinsifier.h" |
| 9 | 9 |
| 10 #include "vm/assembler.h" | 10 #include "vm/assembler.h" |
| (...skipping 1498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1509 // Set Isolate::user_tag_. | 1509 // Set Isolate::user_tag_. |
| 1510 __ str(R2, Address(R1, Isolate::user_tag_offset())); | 1510 __ str(R2, Address(R1, Isolate::user_tag_offset())); |
| 1511 __ ret(); | 1511 __ ret(); |
| 1512 } | 1512 } |
| 1513 | 1513 |
| 1514 | 1514 |
| 1515 void Intrinsifier::UserTag_defaultTag(Assembler* assembler) { | 1515 void Intrinsifier::UserTag_defaultTag(Assembler* assembler) { |
| 1516 Isolate* isolate = Isolate::Current(); | 1516 Isolate* isolate = Isolate::Current(); |
| 1517 // Set return value to default tag address. | 1517 // Set return value to default tag address. |
| 1518 __ LoadImmediate(R0, | 1518 __ LoadImmediate(R0, |
| 1519 reinterpret_cast<uword>(isolate->object_store()) + | 1519 reinterpret_cast<uword>(isolate) + Isolate::default_tag_offset(), |
| 1520 ObjectStore::default_tag_offset(), kNoPP); | 1520 kNoPP); |
| 1521 __ ldr(R0, Address(R0)); | 1521 __ ldr(R0, Address(R0)); |
| 1522 __ ret(); | 1522 __ ret(); |
| 1523 } | 1523 } |
| 1524 | 1524 |
| 1525 | 1525 |
| 1526 void Intrinsifier::Profiler_getCurrentTag(Assembler* assembler) { | 1526 void Intrinsifier::Profiler_getCurrentTag(Assembler* assembler) { |
| 1527 // R1: Default tag address. | 1527 // R1: Default tag address. |
| 1528 Isolate* isolate = Isolate::Current(); | 1528 Isolate* isolate = Isolate::Current(); |
| 1529 __ LoadImmediate(R1, reinterpret_cast<uword>(isolate), kNoPP); | 1529 __ LoadImmediate(R1, reinterpret_cast<uword>(isolate), kNoPP); |
| 1530 // Set return value to Isolate::current_tag_. | 1530 // Set return value to Isolate::current_tag_. |
| 1531 __ ldr(R0, Address(R1, Isolate::current_tag_offset())); | 1531 __ ldr(R0, Address(R1, Isolate::current_tag_offset())); |
| 1532 __ ret(); | 1532 __ ret(); |
| 1533 } | 1533 } |
| 1534 | 1534 |
| 1535 } // namespace dart | 1535 } // namespace dart |
| 1536 | 1536 |
| 1537 #endif // defined TARGET_ARCH_ARM64 | 1537 #endif // defined TARGET_ARCH_ARM64 |
| OLD | NEW |