Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1034)

Unified Diff: src/wasm/wasm-js.cc

Issue 2424623002: [wasm] Use a Managed<WasmModule> to hold metadata about modules. (Closed)
Patch Set: Review comments Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/wasm/wasm-js.cc
diff --git a/src/wasm/wasm-js.cc b/src/wasm/wasm-js.cc
index b18524bdf65be30d1b492e328a90f0c9bbbd4b04..9d0899b2869185f1f132c9e1073b484229879df5 100644
--- a/src/wasm/wasm-js.cc
+++ b/src/wasm/wasm-js.cc
@@ -95,10 +95,8 @@ void VerifyModule(const v8::FunctionCallbackInfo<v8::Value>& args) {
RawBuffer buffer = GetRawBufferSource(args[0], &thrower);
if (thrower.error()) return;
- i::Zone zone(isolate->allocator(), ZONE_NAME);
- internal::wasm::ModuleResult result =
- internal::wasm::DecodeWasmModule(isolate, &zone, buffer.start, buffer.end,
- true, internal::wasm::kWasmOrigin);
+ internal::wasm::ModuleResult result = internal::wasm::DecodeWasmModule(
+ isolate, buffer.start, buffer.end, true, internal::wasm::kWasmOrigin);
if (result.failed()) {
thrower.CompileFailed("", result);

Powered by Google App Engine
This is Rietveld 408576698