#include <memory>
#include "src/execution/microtask-queue.h"
#include "src/objects/objects-inl.h"
#include "src/wasm/function-compiler.h"
#include "src/wasm/wasm-engine.h"
#include "src/wasm/wasm-module-builder.h"
#include "src/wasm/wasm-module.h"
#include "src/wasm/wasm-objects-inl.h"
#include "test/cctest/cctest.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_wasm_shared_engine {
SharedModule;
class SharedEngineIsolate { … };
class SharedEngineThread : public v8::base::Thread { … };
namespace {
ZoneBuffer* BuildReturnConstantModule(Zone* zone, int constant) { … }
class MockInstantiationResolver : public InstantiationResultResolver { … };
class MockCompilationResolver : public CompilationResultResolver { … };
void PumpMessageLoop(SharedEngineIsolate* isolate) { … }
Handle<WasmInstanceObject> CompileAndInstantiateAsync(
SharedEngineIsolate* isolate, ZoneBuffer* buffer) { … }
}
TEST(SharedEngineRunSeparated) { … }
TEST(SharedEngineRunImported) { … }
TEST(SharedEngineRunThreadedBuildingSync) { … }
TEST(SharedEngineRunThreadedBuildingAsync) { … }
TEST(SharedEngineRunThreadedExecution) { … }
TEST(SharedEngineRunThreadedTierUp) { … }
}
}
}
}