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

Side by Side Diff: runtime/vm/intrinsifier_arm.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/lib/profiler.cc ('k') | runtime/vm/intrinsifier_arm64.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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_ARM. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM.
6 #if defined(TARGET_ARCH_ARM) 6 #if defined(TARGET_ARCH_ARM)
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 1605 matching lines...) Expand 10 before | Expand all | Expand 10 after
1616 // Set Isolate::user_tag_. 1616 // Set Isolate::user_tag_.
1617 __ str(R2, Address(R1, Isolate::user_tag_offset())); 1617 __ str(R2, Address(R1, Isolate::user_tag_offset()));
1618 __ Ret(); 1618 __ Ret();
1619 } 1619 }
1620 1620
1621 1621
1622 void Intrinsifier::UserTag_defaultTag(Assembler* assembler) { 1622 void Intrinsifier::UserTag_defaultTag(Assembler* assembler) {
1623 Isolate* isolate = Isolate::Current(); 1623 Isolate* isolate = Isolate::Current();
1624 // Set return value to default tag address. 1624 // Set return value to default tag address.
1625 __ LoadImmediate(R0, 1625 __ LoadImmediate(R0,
1626 reinterpret_cast<uword>(isolate->object_store()) + 1626 reinterpret_cast<uword>(isolate) + Isolate::default_tag_offset());
1627 ObjectStore::default_tag_offset());
1628 __ ldr(R0, Address(R0, 0)); 1627 __ ldr(R0, Address(R0, 0));
1629 __ Ret(); 1628 __ Ret();
1630 } 1629 }
1631 1630
1632 1631
1633 void Intrinsifier::Profiler_getCurrentTag(Assembler* assembler) { 1632 void Intrinsifier::Profiler_getCurrentTag(Assembler* assembler) {
1634 // R1: Default tag address. 1633 // R1: Default tag address.
1635 Isolate* isolate = Isolate::Current(); 1634 Isolate* isolate = Isolate::Current();
1636 __ LoadImmediate(R1, reinterpret_cast<uword>(isolate)); 1635 __ LoadImmediate(R1, reinterpret_cast<uword>(isolate));
1637 // Set return value to Isolate::current_tag_. 1636 // Set return value to Isolate::current_tag_.
1638 __ ldr(R0, Address(R1, Isolate::current_tag_offset())); 1637 __ ldr(R0, Address(R1, Isolate::current_tag_offset()));
1639 __ Ret(); 1638 __ Ret();
1640 } 1639 }
1641 1640
1642 } // namespace dart 1641 } // namespace dart
1643 1642
1644 #endif // defined TARGET_ARCH_ARM 1643 #endif // defined TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « runtime/lib/profiler.cc ('k') | runtime/vm/intrinsifier_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698