Lines Matching defs:bytes
65 void OnBytesReceived(const uint8_t* bytes, size_t size) {
66 streaming_decoder_->OnBytesReceived(base::VectorOf(bytes, size));
85 bool SetCompiledModuleBytes(const uint8_t* bytes, size_t size) {
86 if (!i::wasm::IsSupportedVersion({bytes, size})) return false;
87 return streaming_decoder_->SetCompiledModuleBytes({bytes, size});
118 void WasmStreaming::OnBytesReceived(const uint8_t* bytes, size_t size) {
119 TRACE_EVENT1("v8.wasm", "wasm.OnBytesReceived", "bytes", size);
120 impl_->OnBytesReceived(bytes, size);
133 bool WasmStreaming::SetCompiledModuleBytes(const uint8_t* bytes, size_t size) {
135 return impl_->SetCompiledModuleBytes(bytes, size);
340 // This class resolves the result of WebAssembly.instantiate(bytes, imports).
405 // WebAssembly.instantiate(bytes, imports). When compilation finishes,
506 // WebAssembly.compile(bytes) -> Promise
529 auto bytes = GetFirstArgumentAsBytes(args, &thrower, &is_shared);
534 // Asynchronous compilation handles copying wire bytes if necessary.
537 std::move(resolver), bytes, is_shared,
553 i::wasm::ModuleWireBytes bytes =
559 streaming->OnBytesReceived(bytes.start(), bytes.length());
632 // WebAssembly.validate(bytes) -> bool
640 auto bytes = GetFirstArgumentAsBytes(args, &thrower, &is_shared);
653 // Make a copy of the wire bytes to avoid concurrent modification.
654 std::unique_ptr<uint8_t[]> copy(new uint8_t[bytes.length()]);
655 memcpy(copy.get(), bytes.start(), bytes.length());
657 copy.get() + bytes.length());
661 // The wire bytes are not shared, OK to use them directly.
663 enabled_features, bytes);
688 // new WebAssembly.Module(bytes) -> WebAssembly.Module
707 auto bytes = GetFirstArgumentAsBytes(args, &thrower, &is_shared);
715 // Make a copy of the wire bytes to avoid concurrent modification.
716 std::unique_ptr<uint8_t[]> copy(new uint8_t[bytes.length()]);
717 memcpy(copy.get(), bytes.start(), bytes.length());
719 copy.get() + bytes.length());
723 // The wire bytes are not shared, OK to use them directly.
725 i_isolate, enabled_features, &thrower, bytes);
941 // WebAssembly.instantiate(bytes, imports) ->
993 auto bytes = GetFirstArgumentAsBytes(args, &thrower, &is_shared);
1015 // Asynchronous compilation handles copying wire bytes if necessary.
1018 std::move(compilation_resolver), bytes,