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

Unified Diff: src/wasm/wasm-module.h

Issue 2380463006: [wasm] Properly handlify WasmCompiledModule::Clone. (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « no previous file | src/wasm/wasm-module.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/wasm/wasm-module.h
diff --git a/src/wasm/wasm-module.h b/src/wasm/wasm-module.h
index 80cd98fa82663ed6d689896f818debf7f7fa75d7..8cf5501efb0274afa7018c2964e8001c8a36c390 100644
--- a/src/wasm/wasm-module.h
+++ b/src/wasm/wasm-module.h
@@ -442,13 +442,14 @@ class WasmCompiledModule : public FixedArray {
return handle(WasmCompiledModule::cast(*ret));
}
- Handle<WasmCompiledModule> Clone(Isolate* isolate) {
- Handle<WasmCompiledModule> ret = handle(WasmCompiledModule::cast(
- *isolate->factory()->CopyFixedArray(handle(this))));
+ static Handle<WasmCompiledModule> Clone(Isolate* isolate,
+ Handle<WasmCompiledModule> module) {
+ Handle<WasmCompiledModule> ret = Handle<WasmCompiledModule>::cast(
+ isolate->factory()->CopyFixedArray(module));
Handle<HeapNumber> number =
isolate->factory()->NewHeapNumber(0.0, MUTABLE, TENURED);
ret->set(kID_mem_size, *number);
- ret->set_mem_size(mem_size());
+ ret->set_mem_size(module->mem_size());
return ret;
}
« no previous file with comments | « no previous file | src/wasm/wasm-module.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698