Chromium Code Reviews| Index: src/objects.h |
| diff --git a/src/objects.h b/src/objects.h |
| index fdc60676cf4d92fb05c69c3f248d1eecb418ae60..6c6fefb2e99085a4a0765affb2ca512f35108bcd 100644 |
| --- a/src/objects.h |
| +++ b/src/objects.h |
| @@ -4917,10 +4917,8 @@ class ExternalUint8ClampedArray: public ExternalArray { |
| int index); |
| inline void set(int index, uint8_t value); |
| - // This accessor applies the correct conversion from Smi, HeapNumber and |
| - // undefined and clamps the converted value between 0 and 255. |
| - Object* SetValue(uint32_t index, Object* value); |
| - |
| + // This accessor applies the correct conversion from Smi, HeapNumber |
| + // and undefined. |
|
Dmitry Lomov (no reviews)
2014/04/15 08:04:34
Nit: keep the "clamping" comment
Yang
2014/04/15 08:09:27
Done.
|
| static Handle<Object> SetValue(Handle<ExternalUint8ClampedArray> array, |
| uint32_t index, |
| Handle<Object> value); |
| @@ -4945,14 +4943,12 @@ class ExternalInt8Array: public ExternalArray { |
| static inline Handle<Object> get(Handle<ExternalInt8Array> array, int index); |
| inline void set(int index, int8_t value); |
| + // This accessor applies the correct conversion from Smi, HeapNumber |
| + // and undefined. |
| static Handle<Object> SetValue(Handle<ExternalInt8Array> array, |
| uint32_t index, |
| Handle<Object> value); |
| - // This accessor applies the correct conversion from Smi, HeapNumber |
| - // and undefined. |
| - MUST_USE_RESULT MaybeObject* SetValue(uint32_t index, Object* value); |
| - |
| // Casting. |
| static inline ExternalInt8Array* cast(Object* obj); |
| @@ -4973,14 +4969,12 @@ class ExternalUint8Array: public ExternalArray { |
| static inline Handle<Object> get(Handle<ExternalUint8Array> array, int index); |
| inline void set(int index, uint8_t value); |
| + // This accessor applies the correct conversion from Smi, HeapNumber |
| + // and undefined. |
| static Handle<Object> SetValue(Handle<ExternalUint8Array> array, |
| uint32_t index, |
| Handle<Object> value); |
| - // This accessor applies the correct conversion from Smi, HeapNumber |
| - // and undefined. |
| - MUST_USE_RESULT MaybeObject* SetValue(uint32_t index, Object* value); |
| - |
| // Casting. |
| static inline ExternalUint8Array* cast(Object* obj); |
| @@ -5001,14 +4995,12 @@ class ExternalInt16Array: public ExternalArray { |
| static inline Handle<Object> get(Handle<ExternalInt16Array> array, int index); |
| inline void set(int index, int16_t value); |
| + // This accessor applies the correct conversion from Smi, HeapNumber |
| + // and undefined. |
| static Handle<Object> SetValue(Handle<ExternalInt16Array> array, |
| uint32_t index, |
| Handle<Object> value); |
| - // This accessor applies the correct conversion from Smi, HeapNumber |
| - // and undefined. |
| - MUST_USE_RESULT MaybeObject* SetValue(uint32_t index, Object* value); |
| - |
| // Casting. |
| static inline ExternalInt16Array* cast(Object* obj); |
| @@ -5030,14 +5022,12 @@ class ExternalUint16Array: public ExternalArray { |
| int index); |
| inline void set(int index, uint16_t value); |
| + // This accessor applies the correct conversion from Smi, HeapNumber |
| + // and undefined. |
| static Handle<Object> SetValue(Handle<ExternalUint16Array> array, |
| uint32_t index, |
| Handle<Object> value); |
| - // This accessor applies the correct conversion from Smi, HeapNumber |
| - // and undefined. |
| - MUST_USE_RESULT MaybeObject* SetValue(uint32_t index, Object* value); |
| - |
| // Casting. |
| static inline ExternalUint16Array* cast(Object* obj); |
| @@ -5058,14 +5048,12 @@ class ExternalInt32Array: public ExternalArray { |
| static inline Handle<Object> get(Handle<ExternalInt32Array> array, int index); |
| inline void set(int index, int32_t value); |
| + // This accessor applies the correct conversion from Smi, HeapNumber |
| + // and undefined. |
| static Handle<Object> SetValue(Handle<ExternalInt32Array> array, |
| uint32_t index, |
| Handle<Object> value); |
| - // This accessor applies the correct conversion from Smi, HeapNumber |
| - // and undefined. |
| - MUST_USE_RESULT MaybeObject* SetValue(uint32_t index, Object* value); |
| - |
| // Casting. |
| static inline ExternalInt32Array* cast(Object* obj); |
| @@ -5087,14 +5075,12 @@ class ExternalUint32Array: public ExternalArray { |
| int index); |
| inline void set(int index, uint32_t value); |
| + // This accessor applies the correct conversion from Smi, HeapNumber |
| + // and undefined. |
| static Handle<Object> SetValue(Handle<ExternalUint32Array> array, |
| uint32_t index, |
| Handle<Object> value); |
| - // This accessor applies the correct conversion from Smi, HeapNumber |
| - // and undefined. |
| - MUST_USE_RESULT MaybeObject* SetValue(uint32_t index, Object* value); |
| - |
| // Casting. |
| static inline ExternalUint32Array* cast(Object* obj); |
| @@ -5116,14 +5102,12 @@ class ExternalFloat32Array: public ExternalArray { |
| int index); |
| inline void set(int index, float value); |
| + // This accessor applies the correct conversion from Smi, HeapNumber |
| + // and undefined. |
| static Handle<Object> SetValue(Handle<ExternalFloat32Array> array, |
| uint32_t index, |
| Handle<Object> value); |
| - // This accessor applies the correct conversion from Smi, HeapNumber |
| - // and undefined. |
| - MUST_USE_RESULT MaybeObject* SetValue(uint32_t index, Object* value); |
| - |
| // Casting. |
| static inline ExternalFloat32Array* cast(Object* obj); |
| @@ -5145,14 +5129,12 @@ class ExternalFloat64Array: public ExternalArray { |
| int index); |
| inline void set(int index, double value); |
| + // This accessor applies the correct conversion from Smi, HeapNumber |
| + // and undefined. |
| static Handle<Object> SetValue(Handle<ExternalFloat64Array> array, |
| uint32_t index, |
| Handle<Object> value); |
| - // This accessor applies the correct conversion from Smi, HeapNumber |
| - // and undefined. |
| - MUST_USE_RESULT MaybeObject* SetValue(uint32_t index, Object* value); |
| - |
| // Casting. |
| static inline ExternalFloat64Array* cast(Object* obj); |