| Index: src/objects.h
|
| ===================================================================
|
| --- src/objects.h (revision 3737)
|
| +++ src/objects.h (working copy)
|
| @@ -1023,8 +1023,12 @@
|
| // Casting.
|
| static inline HeapObject* cast(Object* obj);
|
|
|
| - // Return the write barrier mode for this.
|
| - inline WriteBarrierMode GetWriteBarrierMode();
|
| + // Return the write barrier mode for this. Callers of this function
|
| + // must be able to present a reference to an AssertNoAllocation
|
| + // object as a sign that they are not going to use this function
|
| + // from code that allocates and thus invalidates the returned write
|
| + // barrier mode.
|
| + inline WriteBarrierMode GetWriteBarrierMode(const AssertNoAllocation&);
|
|
|
| // Dispatched behavior.
|
| void HeapObjectShortPrint(StringStream* accumulator);
|
| @@ -4475,6 +4479,10 @@
|
| // [length]: The length property.
|
| DECL_ACCESSORS(length, Object)
|
|
|
| + // Overload the length setter to skip write barrier when the length
|
| + // is set to a smi. This matches the set function on FixedArray.
|
| + inline void set_length(Smi* length);
|
| +
|
| Object* JSArrayUpdateLengthFromIndex(uint32_t index, Object* value);
|
|
|
| // Initialize the array with the given capacity. The function may
|
|
|