Index: src/transitions-inl.h |
diff --git a/src/transitions-inl.h b/src/transitions-inl.h |
index 45b645724520910292f19362da73dd17c7541b3b..c4825fcf734a590dc6dbe114355fa3fc08fede2a 100644 |
--- a/src/transitions-inl.h |
+++ b/src/transitions-inl.h |
@@ -57,30 +57,8 @@ TransitionArray* TransitionArray::cast(Object* object) { |
} |
-Map* TransitionArray::elements_transition() { |
- Object* transition_map = get(kElementsTransitionIndex); |
- return Map::cast(transition_map); |
-} |
- |
- |
-void TransitionArray::ClearElementsTransition() { |
- WRITE_FIELD(this, kElementsTransitionOffset, Smi::FromInt(0)); |
-} |
- |
- |
bool TransitionArray::HasElementsTransition() { |
- return IsFullTransitionArray() && |
- get(kElementsTransitionIndex) != Smi::FromInt(0); |
-} |
- |
- |
-void TransitionArray::set_elements_transition(Map* transition_map, |
- WriteBarrierMode mode) { |
- ASSERT(IsFullTransitionArray()); |
- Heap* heap = GetHeap(); |
- WRITE_FIELD(this, kElementsTransitionOffset, transition_map); |
- CONDITIONAL_WRITE_BARRIER( |
- heap, this, kElementsTransitionOffset, transition_map, mode); |
+ return Search(GetHeap()->elements_transition_symbol()) != kNotFound; |
} |