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

Unified Diff: runtime/vm/object.h

Issue 1259123009: Initial tree-shaking for precompilation: only selective compilation, no removal of unused Functions… (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: sync + more dart:io roots Created 5 years, 4 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 aceb710921fb2e1622080a823a9dbfea51512e52..cdf7e71d5f85e35666875993e611e9e8d1bfb5c3 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -1282,6 +1282,11 @@ class Class : public Object {
}
void set_is_cycle_free() const;
+ bool is_allocated() const {
+ return IsAllocatedBit::decode(raw_ptr()->state_bits_);
+ }
+ void set_is_allocated() const;
+
uint16_t num_native_fields() const {
return raw_ptr()->num_native_fields_;
}
@@ -1399,6 +1404,7 @@ class Class : public Object {
kCycleFreeBit = 12,
kEnumBit = 13,
kTraceAllocationBit = 14,
+ kIsAllocatedBit = 15,
};
class ConstBit : public BitField<bool, kConstBit, 1> {};
class ImplementedBit : public BitField<bool, kImplementedBit, 1> {};
@@ -1416,6 +1422,7 @@ class Class : public Object {
class CycleFreeBit : public BitField<bool, kCycleFreeBit, 1> {};
class EnumBit : public BitField<bool, kEnumBit, 1> {};
class TraceAllocationBit : public BitField<bool, kTraceAllocationBit, 1> {};
+ class IsAllocatedBit : public BitField<bool, kIsAllocatedBit, 1> {};
void set_name(const String& value) const;
void set_pretty_name(const String& value) const;
« no previous file with comments | « runtime/vm/compiler.cc ('k') | runtime/vm/object.cc » ('j') | runtime/vm/precompiler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698