Chromium Code Reviews| Index: src/objects.h |
| diff --git a/src/objects.h b/src/objects.h |
| index 30c3f63ea385178dd4ad7508afd388ac22d0515b..4aa8fd7cfff160101d95b2a5c23718b6b5092b67 100644 |
| --- a/src/objects.h |
| +++ b/src/objects.h |
| @@ -9191,11 +9191,17 @@ class PropertyCell: public Cell { |
| // a change of the type of the cell's contents, code dependent on the cell |
| // will be deoptimized. |
| static void SetValueInferType(Handle<PropertyCell> cell, |
| - Handle<Object> value, |
| - WriteBarrierMode mode = UPDATE_WRITE_BARRIER); |
| - MUST_USE_RESULT MaybeObject* SetValueInferType( |
| - Object* value, |
| - WriteBarrierMode mode = UPDATE_WRITE_BARRIER); |
| + Handle<Object> value); |
| + |
| + // Computes the new type of the cell's contents for the given value, but |
| + // without actually modifying the 'type' field. |
| + // TODO(mstarzinger): Return value should be handlified. |
| + static Type* UpdateType(Handle<PropertyCell> cell, |
|
rossberg
2013/10/21 12:16:35
Maybe it would be clearer to call this UpdatedType
Michael Starzinger
2013/10/21 12:49:44
Done.
|
| + Handle<Object> value); |
| + |
| + void AddDependentCompilationInfo(CompilationInfo* info); |
| + |
| + void AddDependentCode(Handle<Code> code); |
| // Casting. |
| static inline PropertyCell* cast(Object* obj); |
| @@ -9220,13 +9226,6 @@ class PropertyCell: public Cell { |
| kSize, |
| kSize> BodyDescriptor; |
| - void AddDependentCompilationInfo(CompilationInfo* info); |
| - |
| - void AddDependentCode(Handle<Code> code); |
| - |
| - static Type* UpdateType(Handle<PropertyCell> cell, |
| - Handle<Object> value); |
| - |
| private: |
| DECL_ACCESSORS(type_raw, Object) |
| DISALLOW_IMPLICIT_CONSTRUCTORS(PropertyCell); |