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

Unified Diff: runtime/vm/object.h

Issue 26436004: Implement constructor kinds in the VM mirrors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: both_ Created 7 years, 2 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
Index: runtime/vm/object.h
diff --git a/runtime/vm/object.h b/runtime/vm/object.h
index 30ce9f77c20ad338046d74f5dcdc8b2ce0f6deb1..30ffe5a75c85cc25ca0b4a45320ffaef59854c7a 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -1699,6 +1699,11 @@ class Function : public Object {
}
void set_is_recognized(bool value) const;
+ bool is_redirecting() const {
+ return RedirectingBit::decode(raw_ptr()->kind_tag_);
+ }
+ void set_is_redirecting(bool value) const;
+
bool HasOptimizedCode() const;
// Returns true if the argument counts are valid for calling this function.
@@ -1858,7 +1863,8 @@ class Function : public Object {
kVisibleBit = 8,
kIntrinsicBit = 9,
kRecognizedBit = 10,
- kKindTagBit = 11,
+ kRedirectingBit = 11,
+ kKindTagBit = 12,
kKindTagSize = 4,
};
class StaticBit : public BitField<bool, kStaticBit, 1> {};
@@ -1872,6 +1878,7 @@ class Function : public Object {
class VisibleBit : public BitField<bool, kVisibleBit, 1> {};
class IntrinsicBit : public BitField<bool, kIntrinsicBit, 1> {};
class RecognizedBit : public BitField<bool, kRecognizedBit, 1> {};
+ class RedirectingBit : public BitField<bool, kRedirectingBit, 1> {};
class KindBits :
public BitField<RawFunction::Kind, kKindTagBit, kKindTagSize> {}; // NOLINT

Powered by Google App Engine
This is Rietveld 408576698