2020-10-06 09:46:56 +00:00
|
|
|
// Copyright 2020 the V8 project authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
|
|
|
#include "src/wasm/wasm-module-builder.h"
|
|
|
|
#include "src/wasm/wasm-objects-inl.h"
|
|
|
|
#include "test/cctest/cctest.h"
|
|
|
|
#include "test/common/wasm/flag-utils.h"
|
|
|
|
#include "test/common/wasm/test-signatures.h"
|
|
|
|
#include "test/common/wasm/wasm-macro-gen.h"
|
|
|
|
#include "test/common/wasm/wasm-module-runner.h"
|
|
|
|
|
|
|
|
namespace v8 {
|
|
|
|
namespace internal {
|
|
|
|
namespace wasm {
|
|
|
|
namespace test_run_wasm_wrappers {
|
|
|
|
|
|
|
|
using testing::CompileAndInstantiateForTesting;
|
|
|
|
|
|
|
|
#ifdef V8_TARGET_ARCH_X64
|
|
|
|
namespace {
|
2020-11-16 13:07:32 +00:00
|
|
|
Handle<WasmInstanceObject> CompileModule(Zone* zone, Isolate* isolate,
|
|
|
|
WasmModuleBuilder* builder) {
|
|
|
|
ZoneBuffer buffer(zone);
|
|
|
|
builder->WriteTo(&buffer);
|
|
|
|
testing::SetupIsolateForWasmModule(isolate);
|
|
|
|
ErrorThrower thrower(isolate, "CompileAndRunWasmModule");
|
|
|
|
MaybeHandle<WasmInstanceObject> maybe_instance =
|
|
|
|
CompileAndInstantiateForTesting(
|
|
|
|
isolate, &thrower, ModuleWireBytes(buffer.begin(), buffer.end()));
|
|
|
|
return maybe_instance.ToHandleChecked();
|
|
|
|
}
|
|
|
|
|
|
|
|
bool IsGeneric(Code wrapper) {
|
|
|
|
return wrapper.is_builtin() &&
|
|
|
|
wrapper.builtin_index() == Builtins::kGenericJSToWasmWrapper;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool IsSpecific(Code wrapper) {
|
|
|
|
return wrapper.kind() == CodeKind::JS_TO_WASM_FUNCTION;
|
|
|
|
}
|
|
|
|
|
|
|
|
Handle<Object> SmiHandle(Isolate* isolate, int value) {
|
|
|
|
return Handle<Object>(Smi::FromInt(value), isolate);
|
|
|
|
}
|
|
|
|
|
|
|
|
void SmiCall(Isolate* isolate, Handle<WasmExportedFunction> exported_function,
|
|
|
|
int argc, Handle<Object>* argv, int expected_result) {
|
|
|
|
Handle<Object> receiver = isolate->factory()->undefined_value();
|
|
|
|
Handle<Object> result =
|
|
|
|
Execution::Call(isolate, exported_function, receiver, argc, argv)
|
|
|
|
.ToHandleChecked();
|
|
|
|
CHECK(result->IsSmi() && Smi::ToInt(*result) == expected_result);
|
|
|
|
}
|
|
|
|
|
2020-10-06 09:46:56 +00:00
|
|
|
void Cleanup() {
|
|
|
|
// By sending a low memory notifications, we will try hard to collect all
|
|
|
|
// garbage and will therefore also invoke all weak callbacks of actually
|
|
|
|
// unreachable persistent handles.
|
|
|
|
Isolate* isolate = CcTest::InitIsolateOnce();
|
|
|
|
reinterpret_cast<v8::Isolate*>(isolate)->LowMemoryNotification();
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace
|
|
|
|
|
2020-11-11 17:23:19 +00:00
|
|
|
TEST(WrapperBudget) {
|
2020-10-06 09:46:56 +00:00
|
|
|
{
|
|
|
|
// This test assumes use of the generic wrapper.
|
|
|
|
FlagScope<bool> use_wasm_generic_wrapper(&FLAG_wasm_generic_wrapper, true);
|
|
|
|
|
2020-11-16 13:07:32 +00:00
|
|
|
// Initialize the environment and create a module builder.
|
2020-10-06 09:46:56 +00:00
|
|
|
AccountingAllocator allocator;
|
|
|
|
Zone zone(&allocator, ZONE_NAME);
|
2020-11-16 13:07:32 +00:00
|
|
|
Isolate* isolate = CcTest::InitIsolateOnce();
|
|
|
|
HandleScope scope(isolate);
|
|
|
|
WasmModuleBuilder* builder = zone.New<WasmModuleBuilder>(&zone);
|
2020-10-06 09:46:56 +00:00
|
|
|
|
|
|
|
// Define the Wasm function.
|
2020-11-16 13:07:32 +00:00
|
|
|
TestSignatures sigs;
|
2020-10-06 09:46:56 +00:00
|
|
|
WasmFunctionBuilder* f = builder->AddFunction(sigs.i_ii());
|
|
|
|
f->builder()->AddExport(CStrVector("main"), f);
|
2020-12-17 16:55:33 +00:00
|
|
|
byte code[] = {WASM_I32_MUL(WASM_LOCAL_GET(0), WASM_LOCAL_GET(1)),
|
2020-10-06 09:46:56 +00:00
|
|
|
WASM_END};
|
|
|
|
f->EmitCode(code, sizeof(code));
|
|
|
|
|
2020-11-16 13:07:32 +00:00
|
|
|
// Compile the module.
|
|
|
|
Handle<WasmInstanceObject> instance =
|
|
|
|
CompileModule(&zone, isolate, builder);
|
2020-10-06 09:46:56 +00:00
|
|
|
|
2020-11-16 13:07:32 +00:00
|
|
|
// Get the exported function and the function data.
|
|
|
|
Handle<WasmExportedFunction> main_export =
|
|
|
|
testing::GetExportedFunction(isolate, instance, "main")
|
|
|
|
.ToHandleChecked();
|
|
|
|
Handle<WasmExportedFunctionData> main_function_data =
|
|
|
|
handle(main_export->shared().wasm_exported_function_data(), isolate);
|
2020-10-06 09:46:56 +00:00
|
|
|
|
2020-11-11 17:23:19 +00:00
|
|
|
// Check that the generic-wrapper budget has initially a value of
|
|
|
|
// kGenericWrapperBudget.
|
2020-11-16 13:07:32 +00:00
|
|
|
CHECK_EQ(main_function_data->wrapper_budget(), kGenericWrapperBudget);
|
2020-11-11 17:23:19 +00:00
|
|
|
CHECK_GT(kGenericWrapperBudget, 0);
|
2020-10-06 09:46:56 +00:00
|
|
|
|
2020-11-16 13:07:32 +00:00
|
|
|
// Call the exported Wasm function.
|
|
|
|
Handle<Object> params[2] = {SmiHandle(isolate, 6), SmiHandle(isolate, 7)};
|
|
|
|
SmiCall(isolate, main_export, 2, params, 42);
|
2020-10-06 09:46:56 +00:00
|
|
|
|
2020-11-11 17:23:19 +00:00
|
|
|
// Check that the budget has now a value of (kGenericWrapperBudget - 1).
|
2020-11-16 13:07:32 +00:00
|
|
|
CHECK_EQ(main_function_data->wrapper_budget(), kGenericWrapperBudget - 1);
|
2020-10-06 09:46:56 +00:00
|
|
|
}
|
|
|
|
Cleanup();
|
|
|
|
}
|
2020-10-14 09:50:26 +00:00
|
|
|
|
|
|
|
TEST(WrapperReplacement) {
|
|
|
|
{
|
|
|
|
// This test assumes use of the generic wrapper.
|
|
|
|
FlagScope<bool> use_wasm_generic_wrapper(&FLAG_wasm_generic_wrapper, true);
|
|
|
|
|
2020-11-16 13:07:32 +00:00
|
|
|
// Initialize the environment and create a module builder.
|
2020-10-14 09:50:26 +00:00
|
|
|
AccountingAllocator allocator;
|
|
|
|
Zone zone(&allocator, ZONE_NAME);
|
2020-11-16 13:07:32 +00:00
|
|
|
Isolate* isolate = CcTest::InitIsolateOnce();
|
|
|
|
HandleScope scope(isolate);
|
|
|
|
WasmModuleBuilder* builder = zone.New<WasmModuleBuilder>(&zone);
|
2020-10-14 09:50:26 +00:00
|
|
|
|
|
|
|
// Define the Wasm function.
|
2020-11-16 13:07:32 +00:00
|
|
|
TestSignatures sigs;
|
2020-10-14 09:50:26 +00:00
|
|
|
WasmFunctionBuilder* f = builder->AddFunction(sigs.i_i());
|
|
|
|
f->builder()->AddExport(CStrVector("main"), f);
|
2020-12-17 16:55:33 +00:00
|
|
|
byte code[] = {WASM_LOCAL_GET(0), WASM_END};
|
2020-10-14 09:50:26 +00:00
|
|
|
f->EmitCode(code, sizeof(code));
|
|
|
|
|
2020-11-16 13:07:32 +00:00
|
|
|
// Compile the module.
|
|
|
|
Handle<WasmInstanceObject> instance =
|
|
|
|
CompileModule(&zone, isolate, builder);
|
2020-10-14 09:50:26 +00:00
|
|
|
|
2020-11-16 13:07:32 +00:00
|
|
|
// Get the exported function and the function data.
|
|
|
|
Handle<WasmExportedFunction> main_export =
|
|
|
|
testing::GetExportedFunction(isolate, instance, "main")
|
|
|
|
.ToHandleChecked();
|
|
|
|
Handle<WasmExportedFunctionData> main_function_data =
|
|
|
|
handle(main_export->shared().wasm_exported_function_data(), isolate);
|
2020-10-14 09:50:26 +00:00
|
|
|
|
2020-11-11 17:23:19 +00:00
|
|
|
// Check that the generic-wrapper budget has initially a value of
|
|
|
|
// kGenericWrapperBudget.
|
2020-11-16 13:07:32 +00:00
|
|
|
CHECK_EQ(main_function_data->wrapper_budget(), kGenericWrapperBudget);
|
2020-11-11 17:23:19 +00:00
|
|
|
CHECK_GT(kGenericWrapperBudget, 0);
|
|
|
|
|
2020-11-16 13:07:32 +00:00
|
|
|
// Set the generic-wrapper budget to a value that allows for a few
|
|
|
|
// more calls through the generic wrapper.
|
|
|
|
const int remaining_budget =
|
|
|
|
std::min(static_cast<int>(kGenericWrapperBudget), 2);
|
|
|
|
main_function_data->set_wrapper_budget(remaining_budget);
|
|
|
|
|
2020-11-11 17:23:19 +00:00
|
|
|
// Call the exported Wasm function as many times as required to almost
|
2020-11-16 13:07:32 +00:00
|
|
|
// exhaust the remaining budget for using the generic wrapper.
|
|
|
|
Handle<Code> wrapper_before_call;
|
|
|
|
for (int i = remaining_budget; i > 0; --i) {
|
|
|
|
// Verify that the wrapper to be used is the generic one.
|
|
|
|
wrapper_before_call =
|
|
|
|
Handle<Code>(main_function_data->wrapper_code(), isolate);
|
|
|
|
CHECK(IsGeneric(*wrapper_before_call));
|
2020-10-14 09:50:26 +00:00
|
|
|
// Call the function.
|
2020-11-16 13:07:32 +00:00
|
|
|
Handle<Object> params[1] = {SmiHandle(isolate, i)};
|
|
|
|
SmiCall(isolate, main_export, 1, params, i);
|
|
|
|
// Verify that the budget has now a value of (i - 1).
|
|
|
|
CHECK_EQ(main_function_data->wrapper_budget(), i - 1);
|
2020-10-14 09:50:26 +00:00
|
|
|
}
|
|
|
|
|
2020-11-16 13:07:32 +00:00
|
|
|
// Get the wrapper-code object after the wrapper replacement.
|
|
|
|
Code wrapper_after_call = main_function_data->wrapper_code();
|
|
|
|
|
|
|
|
// Verify that the budget has been exhausted.
|
|
|
|
CHECK_EQ(main_function_data->wrapper_budget(), 0);
|
|
|
|
// Verify that the wrapper-code object has changed and the wrapper is now a
|
|
|
|
// specific one.
|
|
|
|
CHECK_NE(wrapper_after_call, *wrapper_before_call);
|
|
|
|
CHECK(IsSpecific(wrapper_after_call));
|
2020-10-14 09:50:26 +00:00
|
|
|
}
|
|
|
|
Cleanup();
|
|
|
|
}
|
2020-11-10 16:30:51 +00:00
|
|
|
|
|
|
|
TEST(EagerWrapperReplacement) {
|
|
|
|
{
|
|
|
|
// This test assumes use of the generic wrapper.
|
|
|
|
FlagScope<bool> use_wasm_generic_wrapper(&FLAG_wasm_generic_wrapper, true);
|
|
|
|
|
2020-11-16 13:07:32 +00:00
|
|
|
// Initialize the environment and create a module builder.
|
2020-11-10 16:30:51 +00:00
|
|
|
AccountingAllocator allocator;
|
|
|
|
Zone zone(&allocator, ZONE_NAME);
|
2020-11-16 13:07:32 +00:00
|
|
|
Isolate* isolate = CcTest::InitIsolateOnce();
|
|
|
|
HandleScope scope(isolate);
|
|
|
|
WasmModuleBuilder* builder = zone.New<WasmModuleBuilder>(&zone);
|
2020-11-10 16:30:51 +00:00
|
|
|
|
|
|
|
// Define three Wasm functions.
|
|
|
|
// Two of these functions (add and mult) will share the same signature,
|
|
|
|
// while the other one (id) won't.
|
2020-11-16 13:07:32 +00:00
|
|
|
TestSignatures sigs;
|
2020-11-10 16:30:51 +00:00
|
|
|
WasmFunctionBuilder* add = builder->AddFunction(sigs.i_ii());
|
|
|
|
add->builder()->AddExport(CStrVector("add"), add);
|
2020-12-17 16:55:33 +00:00
|
|
|
byte add_code[] = {WASM_I32_ADD(WASM_LOCAL_GET(0), WASM_LOCAL_GET(1)),
|
2020-11-10 16:30:51 +00:00
|
|
|
WASM_END};
|
|
|
|
add->EmitCode(add_code, sizeof(add_code));
|
|
|
|
WasmFunctionBuilder* mult = builder->AddFunction(sigs.i_ii());
|
|
|
|
mult->builder()->AddExport(CStrVector("mult"), mult);
|
2020-12-17 16:55:33 +00:00
|
|
|
byte mult_code[] = {WASM_I32_MUL(WASM_LOCAL_GET(0), WASM_LOCAL_GET(1)),
|
2020-11-10 16:30:51 +00:00
|
|
|
WASM_END};
|
|
|
|
mult->EmitCode(mult_code, sizeof(mult_code));
|
|
|
|
WasmFunctionBuilder* id = builder->AddFunction(sigs.i_i());
|
|
|
|
id->builder()->AddExport(CStrVector("id"), id);
|
2020-12-17 16:55:33 +00:00
|
|
|
byte id_code[] = {WASM_LOCAL_GET(0), WASM_END};
|
2020-11-10 16:30:51 +00:00
|
|
|
id->EmitCode(id_code, sizeof(id_code));
|
|
|
|
|
2020-11-16 13:07:32 +00:00
|
|
|
// Compile the module.
|
|
|
|
Handle<WasmInstanceObject> instance =
|
|
|
|
CompileModule(&zone, isolate, builder);
|
2020-11-10 16:30:51 +00:00
|
|
|
|
|
|
|
// Get the exported functions.
|
|
|
|
Handle<WasmExportedFunction> add_export =
|
|
|
|
testing::GetExportedFunction(isolate, instance, "add")
|
|
|
|
.ToHandleChecked();
|
|
|
|
Handle<WasmExportedFunction> mult_export =
|
|
|
|
testing::GetExportedFunction(isolate, instance, "mult")
|
|
|
|
.ToHandleChecked();
|
|
|
|
Handle<WasmExportedFunction> id_export =
|
|
|
|
testing::GetExportedFunction(isolate, instance, "id").ToHandleChecked();
|
|
|
|
|
|
|
|
// Get the function data for all exported functions.
|
2020-11-16 13:07:32 +00:00
|
|
|
Handle<WasmExportedFunctionData> add_function_data =
|
|
|
|
handle(add_export->shared().wasm_exported_function_data(), isolate);
|
|
|
|
Handle<WasmExportedFunctionData> mult_function_data =
|
|
|
|
handle(mult_export->shared().wasm_exported_function_data(), isolate);
|
|
|
|
Handle<WasmExportedFunctionData> id_function_data =
|
|
|
|
handle(id_export->shared().wasm_exported_function_data(), isolate);
|
2020-11-10 16:30:51 +00:00
|
|
|
|
2020-11-11 17:23:19 +00:00
|
|
|
// Set the remaining generic-wrapper budget for add to 1,
|
2020-11-10 16:30:51 +00:00
|
|
|
// so that the next call to it will cause the function to tier up.
|
2020-11-16 13:07:32 +00:00
|
|
|
add_function_data->set_wrapper_budget(1);
|
2020-11-10 16:30:51 +00:00
|
|
|
|
2020-11-11 17:23:19 +00:00
|
|
|
// Verify that the generic-wrapper budgets for all functions are correct.
|
2020-11-16 13:07:32 +00:00
|
|
|
CHECK_EQ(add_function_data->wrapper_budget(), 1);
|
|
|
|
CHECK_EQ(mult_function_data->wrapper_budget(), kGenericWrapperBudget);
|
|
|
|
CHECK_EQ(id_function_data->wrapper_budget(), kGenericWrapperBudget);
|
2020-11-10 16:30:51 +00:00
|
|
|
|
|
|
|
// Verify that all functions are set to use the generic wrapper.
|
2020-11-16 13:07:32 +00:00
|
|
|
CHECK(IsGeneric(add_function_data->wrapper_code()));
|
|
|
|
CHECK(IsGeneric(mult_function_data->wrapper_code()));
|
|
|
|
CHECK(IsGeneric(id_function_data->wrapper_code()));
|
2020-11-10 16:30:51 +00:00
|
|
|
|
|
|
|
// Call the add function to trigger the tier up.
|
|
|
|
{
|
2020-11-16 13:07:32 +00:00
|
|
|
Handle<Object> params[2] = {SmiHandle(isolate, 10),
|
|
|
|
SmiHandle(isolate, 11)};
|
|
|
|
SmiCall(isolate, add_export, 2, params, 21);
|
|
|
|
// Verify that the generic-wrapper budgets for all functions are correct.
|
|
|
|
CHECK_EQ(add_function_data->wrapper_budget(), 0);
|
|
|
|
CHECK_EQ(mult_function_data->wrapper_budget(), kGenericWrapperBudget);
|
|
|
|
CHECK_EQ(id_function_data->wrapper_budget(), kGenericWrapperBudget);
|
|
|
|
// Verify that the tier-up of the add function replaced the wrapper
|
|
|
|
// for both the add and the mult functions, but not the id function.
|
|
|
|
CHECK(IsSpecific(add_function_data->wrapper_code()));
|
|
|
|
CHECK(IsSpecific(mult_function_data->wrapper_code()));
|
|
|
|
CHECK(IsGeneric(id_function_data->wrapper_code()));
|
2020-11-10 16:30:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Call the mult function to verify that the compiled wrapper is used.
|
|
|
|
{
|
2020-11-16 13:07:32 +00:00
|
|
|
Handle<Object> params[2] = {SmiHandle(isolate, 6), SmiHandle(isolate, 7)};
|
|
|
|
SmiCall(isolate, mult_export, 2, params, 42);
|
|
|
|
// Verify that mult's budget is still intact, which means that the call
|
|
|
|
// didn't go through the generic wrapper.
|
|
|
|
CHECK_EQ(mult_function_data->wrapper_budget(), kGenericWrapperBudget);
|
2020-11-10 16:30:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Call the id function to verify that the generic wrapper is used.
|
|
|
|
{
|
2020-11-16 13:07:32 +00:00
|
|
|
Handle<Object> params[1] = {SmiHandle(isolate, 6)};
|
|
|
|
SmiCall(isolate, id_export, 1, params, 6);
|
|
|
|
// Verify that id's budget decreased by 1, which means that the call
|
|
|
|
// used the generic wrapper.
|
|
|
|
CHECK_EQ(id_function_data->wrapper_budget(), kGenericWrapperBudget - 1);
|
2020-11-10 16:30:51 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
Cleanup();
|
|
|
|
}
|
2020-11-17 10:33:59 +00:00
|
|
|
|
|
|
|
TEST(WrapperReplacement_IndirectExport) {
|
|
|
|
{
|
|
|
|
// This test assumes use of the generic wrapper.
|
|
|
|
FlagScope<bool> use_wasm_generic_wrapper(&FLAG_wasm_generic_wrapper, true);
|
|
|
|
|
|
|
|
// Initialize the environment and create a module builder.
|
|
|
|
AccountingAllocator allocator;
|
|
|
|
Zone zone(&allocator, ZONE_NAME);
|
|
|
|
Isolate* isolate = CcTest::InitIsolateOnce();
|
|
|
|
HandleScope scope(isolate);
|
|
|
|
WasmModuleBuilder* builder = zone.New<WasmModuleBuilder>(&zone);
|
|
|
|
|
|
|
|
// Define a Wasm function, but do not add it to the exports.
|
|
|
|
TestSignatures sigs;
|
|
|
|
WasmFunctionBuilder* f = builder->AddFunction(sigs.i_i());
|
2020-12-17 16:55:33 +00:00
|
|
|
byte code[] = {WASM_LOCAL_GET(0), WASM_END};
|
2020-11-17 10:33:59 +00:00
|
|
|
f->EmitCode(code, sizeof(code));
|
|
|
|
uint32_t function_index = f->func_index();
|
|
|
|
|
|
|
|
// Export a table of indirect functions.
|
|
|
|
uint32_t table_index = builder->AllocateIndirectFunctions(2);
|
|
|
|
builder->AddExport(CStrVector("exported_table"), kExternalTable, 0);
|
|
|
|
// Point from the exported table to the Wasm function.
|
|
|
|
builder->SetIndirectFunction(0, function_index);
|
|
|
|
|
|
|
|
// Compile the module.
|
|
|
|
Handle<WasmInstanceObject> instance =
|
|
|
|
CompileModule(&zone, isolate, builder);
|
|
|
|
|
|
|
|
// Get the exported table.
|
|
|
|
Handle<WasmTableObject> table = handle(
|
|
|
|
WasmTableObject::cast(instance->tables().get(table_index)), isolate);
|
|
|
|
// Get the Wasm function through the exported table.
|
|
|
|
Handle<Object> function =
|
|
|
|
WasmTableObject::Get(isolate, table, function_index);
|
|
|
|
Handle<WasmExportedFunction> indirect_function =
|
|
|
|
handle(WasmExportedFunction::cast(*function), isolate);
|
|
|
|
// Get the function data.
|
|
|
|
Handle<WasmExportedFunctionData> indirect_function_data = handle(
|
|
|
|
indirect_function->shared().wasm_exported_function_data(), isolate);
|
|
|
|
|
|
|
|
// Verify that the generic-wrapper budget has initially a value of
|
|
|
|
// kGenericWrapperBudget and the wrapper to be used for calls to the
|
|
|
|
// indirect function is the generic one.
|
|
|
|
CHECK(IsGeneric(indirect_function_data->wrapper_code()));
|
|
|
|
CHECK(indirect_function_data->wrapper_budget() == kGenericWrapperBudget);
|
|
|
|
|
|
|
|
// Set the remaining generic-wrapper budget for the indirect function to 1,
|
|
|
|
// so that the next call to it will cause the function to tier up.
|
|
|
|
indirect_function_data->set_wrapper_budget(1);
|
|
|
|
|
|
|
|
// Call the Wasm function.
|
|
|
|
Handle<Object> params[1] = {SmiHandle(isolate, 6)};
|
|
|
|
SmiCall(isolate, indirect_function, 1, params, 6);
|
|
|
|
|
|
|
|
// Verify that the budget is now exhausted and the generic wrapper has been
|
|
|
|
// replaced by a specific one.
|
|
|
|
CHECK_EQ(indirect_function_data->wrapper_budget(), 0);
|
|
|
|
CHECK(IsSpecific(indirect_function_data->wrapper_code()));
|
|
|
|
}
|
|
|
|
Cleanup();
|
|
|
|
}
|
2020-10-06 09:46:56 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
} // namespace test_run_wasm_wrappers
|
|
|
|
} // namespace wasm
|
|
|
|
} // namespace internal
|
|
|
|
} // namespace v8
|