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

Side by Side Diff: runtime/vm/intrinsifier_arm64.cc

Issue 583583007: 1. Add user tag to the pointers traversed in the object store (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: 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 | « runtime/vm/intrinsifier_arm.cc ('k') | runtime/vm/intrinsifier_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 (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
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
OLDNEW
« no previous file with comments | « runtime/vm/intrinsifier_arm.cc ('k') | runtime/vm/intrinsifier_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698