Index: src/transitions.h |
diff --git a/src/transitions.h b/src/transitions.h |
index 220d54949fb61fa11593e27468e04d72e2b08a19..6ee2f8660eac16d2559dc5642332824e6756b15e 100644 |
--- a/src/transitions.h |
+++ b/src/transitions.h |
@@ -96,18 +96,19 @@ class TransitionArray: public FixedArray { |
inline int number_of_entries() { return number_of_transitions(); } |
// Allocate a new transition array with a single entry. |
- static MUST_USE_RESULT MaybeObject* NewWith( |
- SimpleTransitionFlag flag, |
- Name* key, |
- Map* target, |
- Object* back_pointer); |
+ static Handle<TransitionArray> NewWith(SimpleTransitionFlag flag, |
+ Handle<Name> key, |
+ Handle<Map> target, |
+ Handle<Object> back_pointer); |
MUST_USE_RESULT MaybeObject* ExtendToFullTransitionArray(); |
// Copy the transition array, inserting a new transition. |
// TODO(verwaest): This should not cause an existing transition to be |
// overwritten. |
- MUST_USE_RESULT MaybeObject* CopyInsert(Name* name, Map* target); |
+ static Handle<TransitionArray> CopyInsert(Handle<Map> map, |
+ Handle<Name> name, |
+ Handle<Map> target); |
// Copy a single transition from the origin array. |
inline void NoIncrementalWriteBarrierCopyFrom(TransitionArray* origin, |
@@ -121,6 +122,9 @@ class TransitionArray: public FixedArray { |
MUST_USE_RESULT static MaybeObject* Allocate( |
Isolate* isolate, int number_of_transitions); |
+ MUST_USE_RESULT static MaybeObject* AllocateSimple( |
+ Isolate* isolate, Map* target); |
+ |
bool IsSimpleTransition() { |
return length() == kSimpleTransitionSize && |
get(kSimpleTransitionTarget)->IsHeapObject() && |