Lines Matching refs:bytes
66 // Native modules cached by their wire bytes.
73 base::Vector<const uint8_t> bytes;
76 bool eq = bytes == other.bytes;
83 DCHECK_IMPLIES(!bytes.empty() && !other.bytes.empty(),
84 bytes != other.bytes);
87 if (bytes.size() != other.bytes.size()) {
88 return bytes.size() < other.bytes.size();
92 if (bytes.begin() == other.bytes.begin()) {
96 DCHECK_NOT_NULL(bytes.begin());
97 DCHECK_NOT_NULL(other.bytes.begin());
98 return memcmp(bytes.begin(), other.bytes.begin(), bytes.size()) < 0;
112 static size_t WireBytesHash(base::Vector<const uint8_t> bytes);
114 // Hash the wire bytes up to the code section header. Used as a heuristic to
116 // cache. See {GetStreamingCompilationOwnership}. Assumes that the bytes have
121 // Each key points to the corresponding native module's wire bytes, so they
151 // Synchronously validates the given bytes that represent an encoded Wasm
155 const ModuleWireBytes& bytes,
158 // Synchronously compiles the given bytes that represent a translated
161 Isolate* isolate, ErrorThrower* thrower, const ModuleWireBytes& bytes,
168 // Synchronously compiles the given bytes that represent an encoded Wasm
173 const ModuleWireBytes& bytes);
183 // Begin an asynchronous compilation of the given bytes that represent an
185 // The {is_shared} flag indicates if the bytes backing the module could
189 const ModuleWireBytes& bytes, bool is_shared,
288 // Return {nullptr} if no {NativeModule} exists for these bytes. In this case,
290 // for these bytes is currently being created. The caller should eventually
317 // module from the cache or get ownership for the compilation of these bytes.