| Index: src/objects.h
|
| diff --git a/src/objects.h b/src/objects.h
|
| index 3322a036dac4c6564b941de344780c55ed20a452..24a7ce7bdf38ac34c3fddd3151ce006364abb680 100644
|
| --- a/src/objects.h
|
| +++ b/src/objects.h
|
| @@ -1885,9 +1885,16 @@ class JSObject: public JSReceiver {
|
| // Handles the special representation of JS global objects.
|
| Object* GetNormalizedProperty(LookupResult* result);
|
|
|
| + // Sets the property value in a normalized object given (key, value).
|
| + // Handles the special representation of JS global objects.
|
| + static Handle<Object> SetNormalizedProperty(Handle<JSObject> object,
|
| + LookupResult* result,
|
| + Handle<Object> value);
|
| +
|
| // Sets the property value in a normalized object given a lookup result.
|
| // Handles the special representation of JS global objects.
|
| - Object* SetNormalizedProperty(LookupResult* result, Object* value);
|
| + MUST_USE_RESULT MaybeObject* SetNormalizedProperty(LookupResult* result,
|
| + Object* value);
|
|
|
| // Sets the property value in a normalized object given (key, value, details).
|
| // Handles the special representation of JS global objects.
|
| @@ -8586,6 +8593,14 @@ class PropertyCell: public Cell {
|
| // property.
|
| DECL_ACCESSORS(dependent_code, DependentCode)
|
|
|
| + // Sets the value of the cell and updates the type field to be the union
|
| + // of the cell's current type and the value's type. If the change causes
|
| + // a change of the type of the cell's contents, code dependent on the cell
|
| + // will be deoptimized.
|
| + MUST_USE_RESULT MaybeObject* SetValueInferType(
|
| + Object* value,
|
| + WriteBarrierMode mode = UPDATE_WRITE_BARRIER);
|
| +
|
| // Casting.
|
| static inline PropertyCell* cast(Object* obj);
|
|
|
| @@ -8613,6 +8628,9 @@ class PropertyCell: public Cell {
|
|
|
| void AddDependentCode(Handle<Code> code);
|
|
|
| + static Type* UpdateType(Handle<PropertyCell> cell,
|
| + Handle<Object> value);
|
| +
|
| private:
|
| DECL_ACCESSORS(type_raw, Object)
|
| DISALLOW_IMPLICIT_CONSTRUCTORS(PropertyCell);
|
|
|