Searched refs:OwnedVector (Results 1 – 19 of 19) sorted by relevance
155 class OwnedVector {157 MOVE_ONLY_WITH_DEFAULT_CONSTRUCTORS(OwnedVector);158 OwnedVector(std::unique_ptr<T[]> data, size_t length) in OwnedVector() function169 OwnedVector(OwnedVector<U>&& other) in OwnedVector() function208 static OwnedVector<T> New(size_t size) { in New()210 return OwnedVector<T>(std::make_unique<T[]>(size), size); in New()215 static OwnedVector<T> NewForOverwrite(size_t size) { in NewForOverwrite()218 return OwnedVector<T>(std::unique_ptr<T[]>(new T[size]), size); in NewForOverwrite()227 static OwnedVector<T> Of(const U& collection) { in Of()232 OwnedVector<non_const_t>::NewForOverwrite(std::distance(begin, end)); in Of()[all …]
194 OwnedVector<byte> SourcePositionTableBuilder::ToSourcePositionTableVector() { in ToSourcePositionTableVector()195 if (bytes_.empty()) return OwnedVector<byte>(); in ToSourcePositionTableVector()198 OwnedVector<byte> table = OwnedVector<byte>::Of(bytes_); in ToSourcePositionTableVector()
93 : buffer_(OwnedVector<uint8_t>::NewForOverwrite(size)) { in DefaultAssemblerBuffer()109 OwnedVector<uint8_t> buffer_;
60 OwnedVector<byte> ToSourcePositionTableVector();
51 holder_->buffer_ = OwnedVector<uint8_t>::NewForOverwrite(new_size); in Grow()61 : buffer_(OwnedVector<uint8_t>::NewForOverwrite(size)) {} in WasmInstructionBufferImpl()78 OwnedVector<uint8_t> buffer_;82 OwnedVector<uint8_t> old_buffer_;
67 OwnedVector<byte> source_positions;68 OwnedVector<byte> protected_instructions_data;
61 bytes_(OwnedVector<uint8_t>::NewForOverwrite( in SectionBuffer()87 const OwnedVector<uint8_t> bytes_;284 OwnedVector<uint8_t> bytes = in Finish()285 OwnedVector<uint8_t>::NewForOverwrite(total_size_); in Finish()
54 virtual void OnFinishedStream(OwnedVector<uint8_t> bytes) = 0;
882 OwnedVector<byte> reloc_info; in AddCodeForTesting()884 reloc_info = OwnedVector<byte>::Of( in AddCodeForTesting()889 OwnedVector<byte> source_pos = in AddCodeForTesting()890 OwnedVector<byte>::NewForOverwrite(source_pos_table->length()); in AddCodeForTesting()1421 std::shared_ptr<OwnedVector<const uint8_t>> wire_bytes) in NativeModuleWireBytesStorage()1431 const std::shared_ptr<OwnedVector<const uint8_t>> wire_bytes_;1435 void NativeModule::SetWireBytes(OwnedVector<const uint8_t> wire_bytes) { in SetWireBytes()1437 std::make_shared<OwnedVector<const uint8_t>>(std::move(wire_bytes)); in SetWireBytes()
612 void SetWireBytes(OwnedVector<const uint8_t> wire_bytes);738 std::shared_ptr<OwnedVector<const uint8_t>> wire_bytes_;
237 OwnedVector<const uint8_t> encoded_offsets_;
638 OwnedVector<uint8_t>::Of(wire_bytes_vec)); in DeserializeNativeModule()
1610 OwnedVector<uint8_t> wire_bytes_copy = in CompileToNativeModule()1611 OwnedVector<uint8_t>::Of(wire_bytes.module_bytes()); in CompileToNativeModule()1747 void OnFinishedStream(OwnedVector<uint8_t> bytes) override;2600 void AsyncStreamingProcessor::OnFinishedStream(OwnedVector<uint8_t> bytes) { in OnFinishedStream()
140 : encoded_offsets_(OwnedVector<const uint8_t>::Of(encoded_offsets)) {} in AsmJsOffsetInformation()
1243 OwnedVector<WasmCode*>::Of(live_wasm_code).as_vector()); in ReportLiveCodeFromStackForGC()
139 OwnedVector<byte> GetSourcePositionTable();140 OwnedVector<byte> GetProtectedInstructionsData();
466 OwnedVector<byte> CodeGenerator::GetSourcePositionTable() { in GetSourcePositionTable()470 OwnedVector<byte> CodeGenerator::GetProtectedInstructionsData() { in GetProtectedInstructionsData()471 return OwnedVector<byte>::Of( in GetProtectedInstructionsData()
292 OwnedVector<char> null_terminated = OwnedVector<char>::New(name.size() + 1); in GetName()
372 OwnedVector<uint8_t> GetSourcePositionTable() { in GetSourcePositionTable()376 OwnedVector<uint8_t> GetProtectedInstructionsData() const { in GetProtectedInstructionsData()377 return OwnedVector<uint8_t>::Of( in GetProtectedInstructionsData()