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

Unified Diff: vm/object.h

Issue 12096105: Instead of setting up the can intrinsify state lazily setup eagerly (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 7 years, 11 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
« no previous file with comments | « vm/intrinsifier.cc ('k') | vm/object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/object.h
===================================================================
--- vm/object.h (revision 17993)
+++ vm/object.h (working copy)
@@ -1426,16 +1426,10 @@
}
void set_is_visible(bool value) const;
- enum IntrinsicKind {
- kUnknownIntrinsic = 0, // Initial value.
- kIsIntrinsic,
- kIsNotIntrinsic,
- };
-
- IntrinsicKind intrinsic_kind() const {
- return IntrinsicKindBits::decode(raw_ptr()->kind_tag_);
+ bool is_intrinsic() const {
+ return IntrinsicBit::decode(raw_ptr()->kind_tag_);
}
- void set_intrinsic_kind(IntrinsicKind value) const;
+ void set_is_intrinsic(bool value) const;
bool HasOptimizedCode() const;
@@ -1582,9 +1576,8 @@
kAbstractBit = 6,
kExternalBit = 7,
kVisibleBit = 8,
- kIntrinsicTagBit = 9,
- kIntrinsicTagSize = 2,
- kKindTagBit = 11,
+ kIntrinsicBit = 9,
+ kKindTagBit = 10,
kKindTagSize = 4,
};
class StaticBit : public BitField<bool, kStaticBit, 1> {};
@@ -1596,9 +1589,7 @@
class AbstractBit : public BitField<bool, kAbstractBit, 1> {};
class ExternalBit : public BitField<bool, kExternalBit, 1> {};
class VisibleBit : public BitField<bool, kVisibleBit, 1> {};
- class IntrinsicKindBits :
- public BitField<Function::IntrinsicKind,
- kIntrinsicTagBit, kIntrinsicTagSize> {}; // NOLINT
+ class IntrinsicBit : public BitField<bool, kIntrinsicBit, 1> {};
class KindBits :
public BitField<RawFunction::Kind, kKindTagBit, kKindTagSize> {}; // NOLINT
« no previous file with comments | « vm/intrinsifier.cc ('k') | vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698