summaryrefslogtreecommitdiff
path: root/deps/v8/test/cctest/wasm/test-wasm-shared-engine.cc
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/cctest/wasm/test-wasm-shared-engine.cc')
-rw-r--r--deps/v8/test/cctest/wasm/test-wasm-shared-engine.cc13
1 files changed, 8 insertions, 5 deletions
diff --git a/deps/v8/test/cctest/wasm/test-wasm-shared-engine.cc b/deps/v8/test/cctest/wasm/test-wasm-shared-engine.cc
index 4fe4425e2f..855e44aba2 100644
--- a/deps/v8/test/cctest/wasm/test-wasm-shared-engine.cc
+++ b/deps/v8/test/cctest/wasm/test-wasm-shared-engine.cc
@@ -138,7 +138,7 @@ ZoneBuffer* BuildReturnConstantModule(Zone* zone, int constant) {
byte code[] = {WASM_I32V_2(constant)};
f->EmitCode(code, sizeof(code));
f->Emit(kExprEnd);
- builder->WriteTo(*buffer);
+ builder->WriteTo(buffer);
return buffer;
}
@@ -159,8 +159,9 @@ class MockInstantiationResolver : public InstantiationResultResolver {
class MockCompilationResolver : public CompilationResultResolver {
public:
- MockCompilationResolver(SharedEngineIsolate& isolate,
- Handle<Object>* out_instance)
+ MockCompilationResolver(
+ SharedEngineIsolate& isolate, // NOLINT(runtime/references)
+ Handle<Object>* out_instance)
: isolate_(isolate), out_instance_(out_instance) {}
void OnCompilationSucceeded(Handle<WasmModuleObject> result) override {
isolate_.isolate()->wasm_engine()->AsyncInstantiate(
@@ -177,7 +178,8 @@ class MockCompilationResolver : public CompilationResultResolver {
Handle<Object>* out_instance_;
};
-void PumpMessageLoop(SharedEngineIsolate& isolate) {
+void PumpMessageLoop(
+ SharedEngineIsolate& isolate) { // NOLINT(runtime/references)
v8::platform::PumpMessageLoop(i::V8::GetCurrentPlatform(),
isolate.v8_isolate(),
platform::MessageLoopBehavior::kWaitForWork);
@@ -186,7 +188,8 @@ void PumpMessageLoop(SharedEngineIsolate& isolate) {
}
Handle<WasmInstanceObject> CompileAndInstantiateAsync(
- SharedEngineIsolate& isolate, ZoneBuffer* buffer) {
+ SharedEngineIsolate& isolate, // NOLINT(runtime/references)
+ ZoneBuffer* buffer) {
Handle<Object> maybe_instance = handle(Smi::kZero, isolate.isolate());
auto enabled_features = WasmFeaturesFromIsolate(isolate.isolate());
constexpr const char* kAPIMethodName = "Test.CompileAndInstantiateAsync";