Home
last modified time | relevance | path

Searched refs:OwnedVector (Results 1 – 19 of 19) sorted by relevance

/external/v8/src/utils/
Dvector.h155 class OwnedVector {
157 MOVE_ONLY_WITH_DEFAULT_CONSTRUCTORS(OwnedVector);
158 OwnedVector(std::unique_ptr<T[]> data, size_t length) in OwnedVector() function
169 OwnedVector(OwnedVector<U>&& other) in OwnedVector() function
208 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 …]
/external/v8/src/codegen/
Dsource-position-table.cc194 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()
Dassembler.cc93 : buffer_(OwnedVector<uint8_t>::NewForOverwrite(size)) { in DefaultAssemblerBuffer()
109 OwnedVector<uint8_t> buffer_;
Dsource-position-table.h60 OwnedVector<byte> ToSourcePositionTableVector();
/external/v8/src/wasm/
Dfunction-compiler.cc51 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_;
Dfunction-compiler.h67 OwnedVector<byte> source_positions;
68 OwnedVector<byte> protected_instructions_data;
Dstreaming-decoder.cc61 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()
Dstreaming-decoder.h54 virtual void OnFinishedStream(OwnedVector<uint8_t> bytes) = 0;
Dwasm-code-manager.cc882 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()
Dwasm-code-manager.h612 void SetWireBytes(OwnedVector<const uint8_t> wire_bytes);
738 std::shared_ptr<OwnedVector<const uint8_t>> wire_bytes_;
Dwasm-module.h237 OwnedVector<const uint8_t> encoded_offsets_;
Dwasm-serialization.cc638 OwnedVector<uint8_t>::Of(wire_bytes_vec)); in DeserializeNativeModule()
Dmodule-compiler.cc1610 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()
Dwasm-module.cc140 : encoded_offsets_(OwnedVector<const uint8_t>::Of(encoded_offsets)) {} in AsmJsOffsetInformation()
Dwasm-engine.cc1243 OwnedVector<WasmCode*>::Of(live_wasm_code).as_vector()); in ReportLiveCodeFromStackForGC()
/external/v8/src/compiler/backend/
Dcode-generator.h139 OwnedVector<byte> GetSourcePositionTable();
140 OwnedVector<byte> GetProtectedInstructionsData();
Dcode-generator.cc466 OwnedVector<byte> CodeGenerator::GetSourcePositionTable() { in GetSourcePositionTable()
470 OwnedVector<byte> CodeGenerator::GetProtectedInstructionsData() { in GetProtectedInstructionsData()
471 return OwnedVector<byte>::Of( in GetProtectedInstructionsData()
/external/v8/src/profiler/
Dprofiler-listener.cc292 OwnedVector<char> null_terminated = OwnedVector<char>::New(name.size() + 1); in GetName()
/external/v8/src/wasm/baseline/
Dliftoff-compiler.cc372 OwnedVector<uint8_t> GetSourcePositionTable() { in GetSourcePositionTable()
376 OwnedVector<uint8_t> GetProtectedInstructionsData() const { in GetProtectedInstructionsData()
377 return OwnedVector<uint8_t>::Of( in GetProtectedInstructionsData()