Chromium Code Reviews| Index: src/objects.h |
| diff --git a/src/objects.h b/src/objects.h |
| index 7efddfaa8ff1c3ab43030836ab3b0f122847f326..99d49f50c0aaa723ff85b26f819144a5ebc07a66 100644 |
| --- a/src/objects.h |
| +++ b/src/objects.h |
| @@ -1930,11 +1930,14 @@ class JSObject: public JSReceiver { |
| WriteBarrierMode mode |
| = UPDATE_WRITE_BARRIER); |
| - // initializes the body after properties slot, properties slot is |
| - // initialized by set_properties |
| + // Initializes the body after properties slot, properties slot is |
| + // initialized by set_properties. Fill the pre-allocated fields with |
| + // pre_allocated_value and the rest with filler_value. |
| // Note: this call does not update write barrier, it is caller's |
| // reponsibility to ensure that *v* can be collected without WB here. |
|
Vyacheslav Egorov (Chromium)
2011/09/19 11:30:39
update comment (it references *v*)
|
| - inline void InitializeBody(int object_size, Object* value); |
| + inline void InitializeBody(Map* map, |
| + Object* pre_allocated_value, |
| + Object* filler_value); |
| // Check whether this object references another object |
| bool ReferencesObject(Object* obj); |