Commit 4aeb2657 authored by cwhan.tunz's avatar cwhan.tunz Committed by Commit bot

Remove DCHECKs in TypedElementsAccessor

Since typedarrays are integer indexed exotic objects, we don't need to
check if prototypes of a typedarray have elements or not.

https://tc39.github.io/ecma262/#sec-integer-indexed-exotic-objects-get-p-receiver

BUG=699020

Review-Url: https://codereview.chromium.org/2744103002
Cr-Commit-Position: refs/heads/master@{#43738}
parent 384fe54e
......@@ -2819,7 +2819,6 @@ class TypedElementsAccessor
Handle<JSObject> receiver,
Handle<Object> value,
uint32_t start_from, uint32_t length) {
DCHECK(JSObject::PrototypeHasNoElements(isolate, *receiver));
DisallowHeapAllocation no_gc;
// TODO(caitp): return Just(false) here when implementing strict throwing on
......@@ -2874,7 +2873,6 @@ class TypedElementsAccessor
Handle<JSObject> receiver,
Handle<Object> value,
uint32_t start_from, uint32_t length) {
DCHECK(JSObject::PrototypeHasNoElements(isolate, *receiver));
DisallowHeapAllocation no_gc;
if (WasNeutered(*receiver)) return Just<int64_t>(-1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment