| Index: src/objects-inl.h
|
| diff --git a/src/objects-inl.h b/src/objects-inl.h
|
| index 86a3fe7b35bc7455b830902ad8029959589592b9..2b7ea9aa1ab0fc0888254f37ab08907d2176cf62 100644
|
| --- a/src/objects-inl.h
|
| +++ b/src/objects-inl.h
|
| @@ -4001,27 +4001,21 @@ Handle<Object> FixedTypedArray<Traits>::get(
|
|
|
|
|
| template <class Traits>
|
| -void FixedTypedArray<Traits>::SetValue(Handle<JSObject> holder,
|
| - Handle<FixedTypedArray<Traits> > array,
|
| +void FixedTypedArray<Traits>::SetValue(Handle<FixedTypedArray<Traits> > array,
|
| uint32_t index, Handle<Object> value) {
|
| ElementType cast_value = Traits::defaultValue();
|
| - Handle<JSArrayBufferView> view = Handle<JSArrayBufferView>::cast(holder);
|
| - if (!view->WasNeutered()) {
|
| - if (index < static_cast<uint32_t>(array->length())) {
|
| - if (value->IsSmi()) {
|
| - int int_value = Handle<Smi>::cast(value)->value();
|
| - cast_value = from_int(int_value);
|
| - } else if (value->IsHeapNumber()) {
|
| - double double_value = Handle<HeapNumber>::cast(value)->value();
|
| - cast_value = from_double(double_value);
|
| - } else {
|
| - // Clamp undefined to the default value. All other types have been
|
| - // converted to a number type further up in the call chain.
|
| - DCHECK(value->IsUndefined());
|
| - }
|
| - array->set(index, cast_value);
|
| - }
|
| + if (value->IsSmi()) {
|
| + int int_value = Handle<Smi>::cast(value)->value();
|
| + cast_value = from_int(int_value);
|
| + } else if (value->IsHeapNumber()) {
|
| + double double_value = Handle<HeapNumber>::cast(value)->value();
|
| + cast_value = from_double(double_value);
|
| + } else {
|
| + // Clamp undefined to the default value. All other types have been
|
| + // converted to a number type further up in the call chain.
|
| + DCHECK(value->IsUndefined());
|
| }
|
| + array->set(index, cast_value);
|
| }
|
|
|
|
|
|
|