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

Side by Side Diff: runtime/vm/intrinsifier_x64.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_mips.cc ('k') | runtime/vm/isolate.h » ('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_X64. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64.
6 #if defined(TARGET_ARCH_X64) 6 #if defined(TARGET_ARCH_X64)
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 1518 matching lines...) Expand 10 before | Expand all | Expand 10 after
1529 // Set Isolate::user_tag_. 1529 // Set Isolate::user_tag_.
1530 __ movq(Address(RBX, Isolate::user_tag_offset()), R10); 1530 __ movq(Address(RBX, Isolate::user_tag_offset()), R10);
1531 __ ret(); 1531 __ ret();
1532 } 1532 }
1533 1533
1534 1534
1535 void Intrinsifier::UserTag_defaultTag(Assembler* assembler) { 1535 void Intrinsifier::UserTag_defaultTag(Assembler* assembler) {
1536 // RBX: Address of default tag. 1536 // RBX: Address of default tag.
1537 Isolate* isolate = Isolate::Current(); 1537 Isolate* isolate = Isolate::Current();
1538 const Immediate& default_tag_addr = 1538 const Immediate& default_tag_addr =
1539 Immediate(reinterpret_cast<int64_t>(isolate->object_store()) + 1539 Immediate(reinterpret_cast<int64_t>(isolate) +
1540 ObjectStore::default_tag_offset()); 1540 Isolate::default_tag_offset());
1541 __ movq(RBX, default_tag_addr); 1541 __ movq(RBX, default_tag_addr);
1542 // Set return value. 1542 // Set return value.
1543 __ movq(RAX, Address(RBX, 0)); 1543 __ movq(RAX, Address(RBX, 0));
1544 __ ret(); 1544 __ ret();
1545 } 1545 }
1546 1546
1547 1547
1548 void Intrinsifier::Profiler_getCurrentTag(Assembler* assembler) { 1548 void Intrinsifier::Profiler_getCurrentTag(Assembler* assembler) {
1549 // RBX: Isolate. 1549 // RBX: Isolate.
1550 Isolate* isolate = Isolate::Current(); 1550 Isolate* isolate = Isolate::Current();
1551 const Immediate& isolate_address = 1551 const Immediate& isolate_address =
1552 Immediate(reinterpret_cast<int64_t>(isolate)); 1552 Immediate(reinterpret_cast<int64_t>(isolate));
1553 __ movq(RBX, isolate_address); 1553 __ movq(RBX, isolate_address);
1554 // Set return value to Isolate::current_tag_. 1554 // Set return value to Isolate::current_tag_.
1555 __ movq(RAX, Address(RBX, Isolate::current_tag_offset())); 1555 __ movq(RAX, Address(RBX, Isolate::current_tag_offset()));
1556 __ ret(); 1556 __ ret();
1557 } 1557 }
1558 1558
1559 #undef __ 1559 #undef __
1560 1560
1561 } // namespace dart 1561 } // namespace dart
1562 1562
1563 #endif // defined TARGET_ARCH_X64 1563 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « runtime/vm/intrinsifier_mips.cc ('k') | runtime/vm/isolate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698