/external/v8/src/builtins/ |
D | builtins-sharedarraybuffer.cc | 42 Handle<JSTypedArray> typed_array = Handle<JSTypedArray>::cast(object); in ValidateSharedIntegerTypedArray() local 43 if (typed_array->GetBuffer()->is_shared()) { in ValidateSharedIntegerTypedArray() 45 if (typed_array->type() == kExternalInt32Array) return typed_array; in ValidateSharedIntegerTypedArray() 47 if (typed_array->type() != kExternalFloat32Array && in ValidateSharedIntegerTypedArray() 48 typed_array->type() != kExternalFloat64Array && in ValidateSharedIntegerTypedArray() 49 typed_array->type() != kExternalUint8ClampedArray) in ValidateSharedIntegerTypedArray() 50 return typed_array; in ValidateSharedIntegerTypedArray() 66 Isolate* isolate, Handle<JSTypedArray> typed_array, in ValidateAtomicAccess() argument 77 access_index >= typed_array->length_value()) { in ValidateAtomicAccess()
|
D | builtins-typed-array-gen.h | 40 TNode<JSTypedArray> typed_array, 61 Node* LoadDataPtr(Node* typed_array); 73 TNode<JSArrayBuffer> LoadTypedArrayBuffer(TNode<JSTypedArray> typed_array) { in LoadTypedArrayBuffer() argument 74 return LoadObjectField<JSArrayBuffer>(typed_array, in LoadTypedArrayBuffer()
|
D | builtins-typed-array.cc | 21 CHECK_RECEIVER(JSTypedArray, typed_array, in BUILTIN() 23 return *typed_array->GetBuffer(); in BUILTIN()
|
D | builtins-typed-array-gen.cc | 483 TNode<JSTypedArray> typed_array, TNode<Smi> element_size) { in ConstructByTypedArray() argument 495 typed_array, JSArrayBufferView::kBufferOffset); in ConstructByTypedArray() 505 source_length = LoadTypedArrayLength(typed_array); in ConstructByTypedArray() 529 ConstructByArrayLike(context, holder, typed_array, source_length.value(), in ConstructByTypedArray() 537 Node* TypedArrayBuiltinsAssembler::LoadDataPtr(Node* typed_array) { in LoadDataPtr() argument 538 CSA_ASSERT(this, IsJSTypedArray(typed_array)); in LoadDataPtr() 539 Node* elements = LoadElements(typed_array); in LoadDataPtr() 699 TNode<JSTypedArray> typed_array = CAST(arg1_heap_object); in TF_BUILTIN() local 700 ConstructByTypedArray(context, result, typed_array, element_size); in TF_BUILTIN()
|
D | builtins-array-gen.h | 154 TNode<JSTypedArray> typed_array);
|
D | builtins-array-gen.cc | 530 TNode<JSTypedArray> typed_array = CAST(receiver_); in GenerateIteratingTypedArrayBuiltinBody() local 531 o_ = typed_array; in GenerateIteratingTypedArrayBuiltinBody() 533 TNode<JSArrayBuffer> array_buffer = LoadArrayBufferViewBuffer(typed_array); in GenerateIteratingTypedArrayBuiltinBody() 536 len_ = LoadTypedArrayLength(typed_array); in GenerateIteratingTypedArrayBuiltinBody() 578 Node* instance_type = LoadInstanceType(LoadElements(typed_array)); in GenerateIteratingTypedArrayBuiltinBody() 591 typed_array); in GenerateIteratingTypedArrayBuiltinBody() 676 ForEachDirection direction, TNode<JSTypedArray> typed_array) { in VisitAllTypedArrayElements() argument 681 Node* elements = LoadElements(typed_array); in VisitAllTypedArrayElements()
|
D | typed-array.tq | 5 module typed_array {
|
/external/v8/src/objects/ |
D | js-array-buffer.cc | 155 Handle<JSTypedArray> typed_array) { in MaterializeArrayBuffer() argument 156 DCHECK(typed_array->is_on_heap()); in MaterializeArrayBuffer() 158 Isolate* isolate = typed_array->GetIsolate(); in MaterializeArrayBuffer() 160 DCHECK(IsFixedTypedArrayElementsKind(typed_array->GetElementsKind())); in MaterializeArrayBuffer() 163 FixedTypedArrayBase::cast(typed_array->elements()), isolate); in MaterializeArrayBuffer() 165 Handle<JSArrayBuffer> buffer(JSArrayBuffer::cast(typed_array->buffer()), in MaterializeArrayBuffer() 192 fixed_typed_array->length(), typed_array->type(), in MaterializeArrayBuffer() 195 typed_array->set_elements(*new_elements); in MaterializeArrayBuffer() 196 DCHECK(!typed_array->is_on_heap()); in MaterializeArrayBuffer()
|
D | js-array-buffer.h | 200 Handle<JSTypedArray> typed_array);
|
/external/brotli/js/ |
D | polyfill.js | 8 var typed_array = new this(obj.length); 9 for(var i = 0; i < typed_array.length; i++) { 10 typed_array[i] = obj[i]; 12 return typed_array;
|
/external/v8/src/snapshot/ |
D | serializer.cc | 431 JSTypedArray* typed_array = JSTypedArray::cast(object_); in SerializeJSTypedArray() local 433 FixedTypedArrayBase::cast(typed_array->elements()); in SerializeJSTypedArray() 435 if (!typed_array->WasNeutered()) { in SerializeJSTypedArray() 436 if (!typed_array->is_on_heap()) { in SerializeJSTypedArray() 438 JSArrayBuffer* buffer = JSArrayBuffer::cast(typed_array->buffer()); in SerializeJSTypedArray() 440 CHECK(typed_array->byte_offset()->IsSmi()); in SerializeJSTypedArray() 442 int32_t byte_offset = NumberToInt32(typed_array->byte_offset()); in SerializeJSTypedArray()
|
D | deserializer.cc | 227 JSTypedArray* typed_array = JSTypedArray::cast(obj); in PostProcessNewObject() local 228 CHECK(typed_array->byte_offset()->IsSmi()); in PostProcessNewObject() 229 int32_t byte_offset = NumberToInt32(typed_array->byte_offset()); in PostProcessNewObject() 232 FixedTypedArrayBase::cast(typed_array->elements()); in PostProcessNewObject() 234 DCHECK(!typed_array->is_on_heap()); in PostProcessNewObject()
|
/external/v8/src/ |
D | value-serializer.cc | 1750 Handle<JSTypedArray> typed_array = isolate_->factory()->NewJSTypedArray( in ReadJSArrayBufferView() local 1753 AddObjectWithID(id, typed_array); in ReadJSArrayBufferView() 1754 return typed_array; in ReadJSArrayBufferView()
|
D | code-stub-assembler.h | 867 TNode<Smi> LoadTypedArrayLength(TNode<JSTypedArray> typed_array); 1086 TNode<FixedTypedArrayBase> typed_array);
|
D | code-stub-assembler.cc | 1595 TNode<JSTypedArray> typed_array) { in LoadTypedArrayLength() argument 1596 return CAST(LoadObjectField(typed_array, JSTypedArray::kLengthOffset)); in LoadTypedArrayLength() 2023 TNode<FixedTypedArrayBase> typed_array) { in LoadFixedTypedArrayBackingStore() argument 2026 LoadObjectField(typed_array, FixedTypedArrayBase::kExternalPointerOffset, in LoadFixedTypedArrayBackingStore() 2029 LoadObjectField(typed_array, FixedTypedArrayBase::kBasePointerOffset); in LoadFixedTypedArrayBackingStore()
|
D | api.cc | 7728 i::Handle<i::JSTypedArray> typed_array(i::JSTypedArray::cast(*self), in CopyContents() local 7731 i::FixedTypedArrayBase::cast(typed_array->elements()), isolate); in CopyContents()
|
/external/v8/src/compiler/ |
D | js-native-context-specialization.cc | 2241 Handle<JSTypedArray> typed_array = Handle<JSTypedArray>::cast(m.Value()); in BuildElementAccess() local 2245 jsgraph()->Constant(static_cast<double>(typed_array->length_value())); in BuildElementAccess() 2248 buffer = jsgraph()->HeapConstant(typed_array->GetBuffer()); in BuildElementAccess() 2255 FixedTypedArrayBase::cast(typed_array->elements()) in BuildElementAccess()
|