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

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

Issue 2424623002: [wasm] Use a Managed<WasmModule> to hold metadata about modules. (Closed)
Patch Set: 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 36f286f73cffcd58a940d74e7d06442ed8fe1f92..c4de120863831e61e325bc6ba736fd94122e47f5 100644
--- a/src/wasm/wasm-js.cc
+++ b/src/wasm/wasm-js.cc
@@ -92,10 +92,8 @@ void VerifyModule(const v8::FunctionCallbackInfo<v8::Value>& args) {
RawBuffer buffer = GetRawBufferSource(args[0], &thrower);
if (thrower.error()) return;
- i::Zone zone(isolate->allocator());
- 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.Failed("", result);

Powered by Google App Engine
This is Rietveld 408576698