| 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:
|
|
|