HObjectAccess access() const { return access_; }
HValue* new_space_dominator() const { return new_space_dominator_; }
-
- bool has_transition() const {
- return transition() != object();
- }
+ bool has_transition() const { return has_transition_; }
Handle<Map> transition_map() const {
if (has_transition()) {
map->AddDependentCompilationInfo(DependentCode::kTransitionGroup, info);
}
SetOperandAt(2, map_constant);
+ has_transition_ = true;
}
bool NeedsWriteBarrier() {
HValue* val)
: access_(access),
new_space_dominator_(NULL),
- write_barrier_mode_(UPDATE_WRITE_BARRIER) {
+ write_barrier_mode_(UPDATE_WRITE_BARRIER),
+ has_transition_(false) {
SetOperandAt(0, obj);
SetOperandAt(1, val);
SetOperandAt(2, obj);
HObjectAccess access_;
HValue* new_space_dominator_;
- WriteBarrierMode write_barrier_mode_;
+ WriteBarrierMode write_barrier_mode_ : 1;
+ bool has_transition_ : 1;
};