Home
last modified time | relevance | path

Searched refs:byte_length (Results 1 – 25 of 40) sorted by relevance

12

/external/v8/src/runtime/
Druntime-typedarray.cc20 return holder->byte_length(); in RUNTIME_FUNCTION()
43 CHECK(NumberToSize(target->byte_length()) >= target_length); in RUNTIME_FUNCTION()
47 size_t source_byte_length = NumberToSize(source->byte_length()); in RUNTIME_FUNCTION()
62 CHECK(Smi::kZero == array_buffer->byte_length()); in RUNTIME_FUNCTION()
69 size_t byte_length = NumberToSize(array_buffer->byte_length()); in RUNTIME_FUNCTION() local
73 isolate->array_buffer_allocator()->Free(backing_store, byte_length); in RUNTIME_FUNCTION()
119 size_t byte_length = 0; in RUNTIME_FUNCTION() local
121 CHECK(TryNumberToSize(*byte_length_object, &byte_length)); in RUNTIME_FUNCTION()
125 size_t array_buffer_byte_length = NumberToSize(buffer->byte_length()); in RUNTIME_FUNCTION()
127 CHECK(array_buffer_byte_length - byte_offset >= byte_length); in RUNTIME_FUNCTION()
[all …]
Druntime-test.cc853 int mem_size = static_cast<int>(buffer->byte_length()->Number()); in RUNTIME_FUNCTION()
868 static_cast<int>(wire_bytes->byte_length()->Number()))); in RUNTIME_FUNCTION()
/external/v8/src/js/
Darraybuffer.js39 var byte_length = %_ArrayBufferGetByteLength(this);
41 first = MaxSimple(byte_length + relativeStart, 0);
43 first = MinSimple(relativeStart, byte_length);
45 var relativeEnd = IS_UNDEFINED(end) ? byte_length : end;
48 fin = MaxSimple(byte_length + relativeEnd, 0);
50 fin = MinSimple(relativeEnd, byte_length);
/external/v8/src/parsing/
Dscanner-character-streams.cc461 size_t byte_length; member
477 chunks.empty() ? 0 : (chunks.back().byte_pos + chunks.back().byte_length); in FindChunk()
480 bool out_of_data = !chunks.empty() && chunks.back().byte_length == 0; in FindChunk()
498 DCHECK_EQ(end_pos, chunks.back().byte_pos + chunks.back().byte_length); in FindChunk()
499 DCHECK_EQ(out_of_data, chunks.back().byte_length == 0); in FindChunk()
517 DCHECK_LT(position, chunks[chunk_no].byte_pos + chunks[chunk_no].byte_length); in FindChunk()
546 if (chunk.byte_length == 0) return 0; in FillBuffer()
549 size_t len = i::Min(kBufferSize, chunk.byte_length - start_pos); in FillBuffer()
598 if (chunks_[chunk_no].byte_length == 0) { in ReadBlock()
616 previous_chunk.data[previous_chunk.byte_length - 1] << 8; in ReadBlock()
[all …]
/external/libtextclassifier/util/utf8/
Dunicodetext.cc83 void UnicodeText::Repr::append(const char* bytes, int byte_length) { in append() argument
84 reserve(size_ + byte_length); in append()
85 memcpy(data_ + size_, bytes, byte_length); in append()
86 size_ += byte_length; in append()
112 UnicodeText& UnicodeText::PointToUTF8(const char* buffer, int byte_length) { in PointToUTF8() argument
113 repr_.PointTo(buffer, byte_length); in PointToUTF8()
117 UnicodeText& UnicodeText::CopyUTF8(const char* buffer, int byte_length) { in CopyUTF8() argument
118 repr_.Copy(buffer, byte_length); in CopyUTF8()
Dunicodetext.h166 UnicodeText& PointToUTF8(const char* utf8_buffer, int byte_length);
167 UnicodeText& CopyUTF8(const char* utf8_buffer, int byte_length);
198 void append(const char* bytes, int byte_length);
/external/v8/src/builtins/
Dbuiltins-dataview.cc35 Handle<Object> byte_length = args.atOrUndefined(isolate, 3); in BUILTIN() local
57 double const buffer_byte_length = array_buffer->byte_length()->Number(); in BUILTIN()
66 if (byte_length->IsUndefined(isolate)) { in BUILTIN()
78 Object::ToIndex(isolate, byte_length, in BUILTIN()
123 return data_view->byte_length(); in BUILTIN()
179 size_t const data_view_byte_length = NumberToSize(data_view->byte_length()); in GetViewValue()
191 DCHECK_GE(NumberToSize(buffer->byte_length()), buffer_offset + sizeof(T)); in GetViewValue()
266 size_t const data_view_byte_length = NumberToSize(data_view->byte_length()); in SetViewValue()
279 DCHECK(NumberToSize(buffer->byte_length()) >= buffer_offset + sizeof(T)); in SetViewValue()
Dbuiltins-arraybuffer.cc46 size_t byte_length; in BUILTIN() local
47 if (!TryNumberToSize(*number_length, &byte_length)) { in BUILTIN()
56 isolate, byte_length, true, in BUILTIN()
79 return array_buffer->byte_length(); in BUILTIN()
Dbuiltins-sharedarraybuffer.cc25 return array_buffer->byte_length(); in BUILTIN()
/external/v8/src/
Dvalue-serializer.cc397 uint32_t byte_length = chars.length() * sizeof(uc16); in WriteString() local
399 if ((buffer_size_ + 1 + BytesNeededForVarint(byte_length)) & 1) in WriteString()
769 double byte_length = array_buffer->byte_length()->Number(); in WriteJSArrayBuffer() local
770 if (byte_length > std::numeric_limits<uint32_t>::max()) { in WriteJSArrayBuffer()
775 WriteVarint<uint32_t>(byte_length); in WriteJSArrayBuffer()
776 WriteRawBytes(array_buffer->backing_store(), byte_length); in WriteJSArrayBuffer()
801 WriteVarint(NumberToUint32(view->byte_length())); in WriteJSArrayBufferView()
1189 uint32_t byte_length; in ReadOneByteString() local
1191 if (!ReadVarint<uint32_t>().To(&byte_length) || in ReadOneByteString()
1192 byte_length > in ReadOneByteString()
[all …]
Dfutex-emulation.cc79 DCHECK(addr < NumberToSize(array_buffer->byte_length())); in Wait()
194 DCHECK(addr < NumberToSize(array_buffer->byte_length())); in Wake()
221 DCHECK(addr < NumberToSize(array_buffer->byte_length())); in NumWaitersForTesting()
Dfactory.cc2114 size_t byte_offset, size_t byte_length, in SetupArrayBufferView() argument
2116 DCHECK(byte_offset + byte_length <= in SetupArrayBufferView()
2117 static_cast<size_t>(buffer->byte_length()->Number())); in SetupArrayBufferView()
2132 isolate->factory()->NewNumberFromSize(byte_length, pretenure); in SetupArrayBufferView()
2174 size_t byte_length = length * element_size; in NewJSTypedArray() local
2175 SetupArrayBufferView(isolate(), obj, buffer, byte_offset, byte_length, in NewJSTypedArray()
2206 size_t byte_length = number_of_elements * element_size; in NewJSTypedArray() local
2210 NewNumberFromSize(byte_length, pretenure); in NewJSTypedArray()
2218 JSArrayBuffer::Setup(buffer, isolate(), true, NULL, byte_length, in NewJSTypedArray()
2230 size_t byte_length) { in NewJSDataView() argument
[all …]
Dobjects-debug.cc1001 VerifyPointer(byte_length()); in JSArrayBufferVerify()
1002 CHECK(byte_length()->IsSmi() || byte_length()->IsHeapNumber() || in JSArrayBufferVerify()
1003 byte_length()->IsUndefined(GetIsolate())); in JSArrayBufferVerify()
Dapi.cc7614 size_t byte_length = static_cast<size_t>(self->byte_length()->Number()); in GetContents() local
7617 contents.byte_length_ = byte_length; in GetContents()
7638 return static_cast<size_t>(obj->byte_length()->Number()); in ByteLength()
7642 Local<ArrayBuffer> v8::ArrayBuffer::New(Isolate* isolate, size_t byte_length) { in New() argument
7650 if (!i::JSArrayBuffer::SetupAllocatingData(obj, i_isolate, byte_length)) { in New()
7658 size_t byte_length, in New() argument
7661 CHECK(byte_length == 0 || data != NULL); in New()
7669 byte_length); in New()
7689 size_t v8::ArrayBufferView::CopyContents(void* dest, size_t byte_length) { in CopyContents() argument
7693 i::Min(byte_length, i::NumberToSize(self->byte_length())); in CopyContents()
[all …]
Dobjects-printer.cc933 os << "\n - byte_length = " << Brief(byte_length()); in JSArrayBufferPrint()
943 os << "\n - byte_length = " << Brief(byte_length()); in JSTypedArrayPrint()
973 os << "\n - byte_length = " << Brief(byte_length()); in JSDataViewPrint()
/external/v8/src/regexp/
Dregexp-macro-assembler.cc32 size_t byte_length, in CaseInsensitiveCompareUC16() argument
39 DCHECK(byte_length % 2 == 0); in CaseInsensitiveCompareUC16()
42 size_t length = byte_length >> 1; in CaseInsensitiveCompareUC16()
205 intptr_t byte_length = *input_end - *input_start; in CheckStackGuardState() local
207 *input_end = *input_start + byte_length; in CheckStackGuardState()
257 int byte_length = char_length << char_size_shift; in Match() local
258 const byte* input_end = input_start + byte_length; in Match()
Dregexp-macro-assembler.h161 size_t byte_length, Isolate* isolate);
/external/tcpdump/
Dprint-eigrp.c215 u_int tlen,eigrp_tlv_len,eigrp_tlv_type,tlv_tlen, byte_length, bit_length; in eigrp_print() local
354 byte_length = (bit_length + 7) / 8; /* variable length encoding */ in eigrp_print()
356 memcpy(prefix,&tlv_ptr.eigrp_tlv_ip_int->destination,byte_length); in eigrp_print()
388 byte_length = (bit_length + 7) / 8; /* variable length encoding */ in eigrp_print()
390 memcpy(prefix,&tlv_ptr.eigrp_tlv_ip_ext->destination,byte_length); in eigrp_print()
Dprint-isoclns.c2057 u_int metric, status_byte, bit_length, byte_length, sublen, processed, subtlvtype, subtlvlen; in isis_print_extd_ip_reach() local
2092 byte_length = (bit_length + 7) / 8; /* prefix has variable length encoding */ in isis_print_extd_ip_reach()
2094 if (!ND_TTEST2(*tptr, byte_length)) in isis_print_extd_ip_reach()
2097 memcpy(prefix,tptr,byte_length); /* copy as much as is stored in the TLV */ in isis_print_extd_ip_reach()
2098 tptr+=byte_length; in isis_print_extd_ip_reach()
2099 processed+=byte_length; in isis_print_extd_ip_reach()
/external/webrtc/webrtc/modules/rtp_rtcp/source/
Dh264_sps_parser.cc24 H264SpsParser::H264SpsParser(const uint8_t* sps, size_t byte_length) in H264SpsParser() argument
25 : sps_(sps), byte_length_(byte_length), width_(), height_() { in H264SpsParser()
Dh264_sps_parser.h22 H264SpsParser(const uint8_t* sps, size_t byte_length);
/external/v8/src/heap/
Darray-buffer-tracker-inl.h17 size_t length = NumberToSize(buffer->byte_length()); in RegisterNew()
/external/v8/src/wasm/
Dwasm-module.cc63 -buffer->byte_length()->Number()); in MemoryFinalizer()
1151 ? 0 : static_cast<uint32_t>(memory_->byte_length()->Number()); in Build()
1165 static_cast<uint32_t>(memory_->byte_length()->Number()); in Build()
1608 memory_->byte_length()->Number() / WasmModule::kPageSize); in ProcessImports()
2104 return buffer->byte_length()->Number() / WasmModule::kPageSize; in GetInstanceMemorySize()
2133 old_size = old_buffer->byte_length()->Number(); in GrowMemoryBuffer()
2162 uint32_t new_size = mem_buffer->byte_length()->Number(); in UncheckedUpdateInstanceMemory()
2178 int64_t byte_length = NumberToSize(buffer->byte_length()); in DetachArrayBuffer() local
2186 isolate->array_buffer_allocator()->Free(backing_store, byte_length); in DetachArrayBuffer()
2191 ->AdjustAmountOfExternalAllocatedMemory(-byte_length); in DetachArrayBuffer()
[all …]
/external/v8/src/compiler/
Djs-typed-lowering.cc1318 double const byte_length = array->byte_length()->Number(); in ReduceJSLoadProperty() local
1320 if (key_type->Is(shifted_int32_ranges_[k]) && byte_length <= kMaxInt) { in ReduceJSLoadProperty()
1325 Node* length = jsgraph()->Constant(byte_length); in ReduceJSLoadProperty()
1370 double const byte_length = array->byte_length()->Number(); in ReduceJSStoreProperty() local
1373 key_type->Is(shifted_int32_ranges_[k]) && byte_length <= kMaxInt) { in ReduceJSStoreProperty()
1378 Node* length = jsgraph()->Constant(byte_length); in ReduceJSStoreProperty()
/external/v8/src/ast/
Dast-value-factory.h88 int byte_length() const { return literal_bytes_.length(); } in byte_length() function

12