Commit ce9cfb6e authored by Igor Sheludko's avatar Igor Sheludko Committed by Commit Bot

[zone-compr] Fix WasmCapiTest

... by ensuring that the V8 platform is initialized before the
AccountingAllocator used in the tests.

Bug: v8:9923
Change-Id: I2d75b7c26dab55b9258c1be800a37a6f777f1103
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2328791Reviewed-by: 's avatarAndreas Haas <ahaas@chromium.org>
Commit-Queue: Igor Sheludko <ishell@chromium.org>
Cr-Commit-Position: refs/heads/master@{#69144}
parent 48c91e8c
......@@ -40,12 +40,12 @@ class WasmCapiTest : public ::testing::Test {
public:
WasmCapiTest()
: Test(),
engine_(Engine::make()),
zone_(&allocator_, ZONE_NAME),
wire_bytes_(&zone_),
builder_(&zone_),
exports_(ownvec<Extern>::make()),
wasm_i_i_sig_(1, 1, wasm_i_i_sig_types_) {
engine_ = Engine::make();
store_ = Store::make(engine_.get());
cpp_i_i_sig_ =
FuncType::make(ownvec<ValType>::make(ValType::make(::wasm::I32)),
......@@ -134,11 +134,11 @@ class WasmCapiTest : public ::testing::Test {
FuncType* cpp_i_i_sig() { return cpp_i_i_sig_.get(); }
private:
own<Engine> engine_;
AccountingAllocator allocator_;
Zone zone_;
ZoneBuffer wire_bytes_;
WasmModuleBuilder builder_;
own<Engine> engine_;
own<Store> store_;
own<Module> module_;
own<Instance> instance_;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment