diff options
Diffstat (limited to 'deps/v8/src/wasm/wasm-js.cc')
-rw-r--r-- | deps/v8/src/wasm/wasm-js.cc | 31 |
1 files changed, 23 insertions, 8 deletions
diff --git a/deps/v8/src/wasm/wasm-js.cc b/deps/v8/src/wasm/wasm-js.cc index fdc02771b4c..64719fb59a3 100644 --- a/deps/v8/src/wasm/wasm-js.cc +++ b/deps/v8/src/wasm/wasm-js.cc @@ -73,8 +73,12 @@ class WasmStreaming::WasmStreamingImpl { void SetClient(std::shared_ptr<Client> client) { streaming_decoder_->SetModuleCompiledCallback( - [client](const std::shared_ptr<i::wasm::NativeModule>& native_module) { - client->OnModuleCompiled(Utils::Convert(native_module)); + [client, streaming_decoder = streaming_decoder_]( + const std::shared_ptr<i::wasm::NativeModule>& native_module) { + i::Vector<const char> url = streaming_decoder->url(); + auto compiled_wasm_module = + CompiledWasmModule(native_module, url.begin(), url.size()); + client->OnModuleCompiled(compiled_wasm_module); }); } @@ -331,14 +335,10 @@ class InstantiateBytesResultResolver isolate_->factory()->NewJSObject(isolate_->object_function()); i::Handle<i::String> instance_name = - isolate_->factory() - ->NewStringFromOneByte(i::StaticCharVector("instance")) - .ToHandleChecked(); + isolate_->factory()->NewStringFromStaticChars("instance"); i::Handle<i::String> module_name = - isolate_->factory() - ->NewStringFromOneByte(i::StaticCharVector("module")) - .ToHandleChecked(); + isolate_->factory()->NewStringFromStaticChars("module"); i::JSObject::AddProperty(isolate_, result, instance_name, instance, i::NONE); @@ -1364,6 +1364,11 @@ void WebAssemblyGlobal(const v8::FunctionCallbackInfo<v8::Value>& args) { } break; } + case i::wasm::ValueType::kRef: + case i::wasm::ValueType::kOptRef: + case i::wasm::ValueType::kEqRef: + // TODO(7748): Implement these. + UNIMPLEMENTED(); case i::wasm::ValueType::kStmt: case i::wasm::ValueType::kS128: case i::wasm::ValueType::kBottom: @@ -1812,6 +1817,11 @@ void WebAssemblyGlobalGetValueCommon( receiver->GetRef()->IsNull()); return_value.Set(Utils::ToLocal(receiver->GetRef())); break; + case i::wasm::ValueType::kRef: + case i::wasm::ValueType::kOptRef: + case i::wasm::ValueType::kEqRef: + // TODO(7748): Implement these. + UNIMPLEMENTED(); case i::wasm::ValueType::kBottom: case i::wasm::ValueType::kStmt: case i::wasm::ValueType::kS128: @@ -1897,6 +1907,11 @@ void WebAssemblyGlobalSetValue( } break; } + case i::wasm::ValueType::kRef: + case i::wasm::ValueType::kOptRef: + case i::wasm::ValueType::kEqRef: + // TODO(7748): Implement these. + UNIMPLEMENTED(); case i::wasm::ValueType::kBottom: case i::wasm::ValueType::kStmt: case i::wasm::ValueType::kS128: |