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

Unified Diff: vm/raw_object.h

Issue 10386060: Speed up the Dart_IsBlah functions by checking the class index. This (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 7 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 side-by-side diff with in-line comments
Download patch
« vm/dart_api_impl.cc ('K') | « vm/dart_api_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/raw_object.h
===================================================================
--- vm/raw_object.h (revision 7467)
+++ vm/raw_object.h (working copy)
@@ -236,6 +236,11 @@
return (addr & kNewObjectAlignmentOffset) == kOldObjectAlignmentOffset;
}
+ intptr_t GetClassTag() const {
Ivan Posva 2012/05/09 23:28:16 Should we make this private?
turnidge 2012/05/10 17:49:38 Done.
+ uword tags = ptr()->tags_;
+ return ClassTag::decode(tags);
+ }
+
// Support for GC marking bit.
bool IsMarked() const {
return MarkBit::decode(ptr()->tags_);
« vm/dart_api_impl.cc ('K') | « vm/dart_api_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698