| Index: src/runtime/runtime-test.cc
|
| diff --git a/src/runtime/runtime-test.cc b/src/runtime/runtime-test.cc
|
| index 88d4bbd22b50a16b6e846cf7a4868826134999c2..2c51879307be128ba982ff7f34683dbb1e2de3dd 100644
|
| --- a/src/runtime/runtime-test.cc
|
| +++ b/src/runtime/runtime-test.cc
|
| @@ -773,5 +773,31 @@ RUNTIME_FUNCTION(Runtime_DeserializeWasmModule) {
|
| wasm::ModuleOrigin::kWasmOrigin);
|
| }
|
|
|
| +RUNTIME_FUNCTION(Runtime_ValidateWasmInstancesChain) {
|
| + HandleScope shs(isolate);
|
| + DCHECK(args.length() == 2);
|
| + CONVERT_ARG_HANDLE_CHECKED(JSObject, module_obj, 0);
|
| + CONVERT_ARG_HANDLE_CHECKED(Smi, instance_count, 1);
|
| + wasm::testing::ValidateInstancesChain(isolate, module_obj,
|
| + instance_count->value());
|
| + return isolate->heap()->ToBoolean(true);
|
| +}
|
| +
|
| +RUNTIME_FUNCTION(Runtime_ValidateWasmModuleState) {
|
| + HandleScope shs(isolate);
|
| + DCHECK(args.length() == 1);
|
| + CONVERT_ARG_HANDLE_CHECKED(JSObject, module_obj, 0);
|
| + wasm::testing::ValidateModuleState(isolate, module_obj);
|
| + return isolate->heap()->ToBoolean(true);
|
| +}
|
| +
|
| +RUNTIME_FUNCTION(Runtime_ValidateWasmOrphanedInstance) {
|
| + HandleScope shs(isolate);
|
| + DCHECK(args.length() == 1);
|
| + CONVERT_ARG_HANDLE_CHECKED(JSObject, instance_obj, 0);
|
| + wasm::testing::ValidateOrphanedInstance(isolate, instance_obj);
|
| + return isolate->heap()->ToBoolean(true);
|
| +}
|
| +
|
| } // namespace internal
|
| } // namespace v8
|
|
|