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

Unified Diff: runtime/vm/object.h

Issue 23512004: Revert "Compress memory usage. Imprive speed of finding exception handle..." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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
« no previous file with comments | « runtime/vm/exceptions.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.h
diff --git a/runtime/vm/object.h b/runtime/vm/object.h
index b6183bcbb82bd6cbaea059604ff439027c6cab6b..fe1c18582640a7f672e4197f0dc1e3882e7d41fc 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -2952,15 +2952,18 @@ class Code : public Object {
intptr_t pointer_offsets_length() const {
return raw_ptr()->pointer_offsets_length_;
}
-
bool is_optimized() const {
- return OptimizedBit::decode(raw_ptr()->state_bits_);
+ return (raw_ptr()->is_optimized_ == 1);
+ }
+ void set_is_optimized(bool value) const {
+ raw_ptr()->is_optimized_ = value ? 1 : 0;
}
- void set_is_optimized(bool value) const;
bool is_alive() const {
- return AliveBit::decode(raw_ptr()->state_bits_);
+ return (raw_ptr()->is_alive_ == 1);
+ }
+ void set_is_alive(bool value) const {
+ raw_ptr()->is_alive_ = value ? 1 : 0;
}
- void set_is_alive(bool value) const;
uword EntryPoint() const {
const Instructions& instr = Instructions::Handle(instructions());
@@ -3132,17 +3135,6 @@ class Code : public Object {
RawArray* ExtractTypeFeedbackArray() const;
private:
- void set_state_bits(intptr_t bits) const;
-
- friend class RawCode;
- enum {
- kOptimizedBit = 0,
- kAliveBit = 1,
- };
-
- class OptimizedBit : public BitField<bool, kOptimizedBit, 1> {};
- class AliveBit : public BitField<bool, kAliveBit, 1> {};
-
// An object finder visitor interface.
class FindRawCodeVisitor : public FindObjectVisitor {
public:
« no previous file with comments | « runtime/vm/exceptions.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698