I'm trying to use snapshot to cache the context with compiled code (JS 
source code and wasm bytes code) inside. I can go througth with JS code.

But for wasm, I can compile the wasm code in regular isolate, but once I 
declare SnapshotCreator in the code like follow line:

`Isolate::CreateParams create_params;
create_params.array_buffer_allocator =
v8::ArrayBuffer::Allocator::NewDefaultAllocator();
auto isolate = Isolate::New(create_params);
SnapshotCreator creator(isolate);`

WasmModuleObject::Compile doesn't work and return a non-WasmModuleObject. 

I also tried with v8::Script::Compile, and I got the same issue. The code 
works without SnapshotCreator declare, but doesn't work with 
SnapshotCreator. 

Is there any compiler restraint in SnapshotCreator that cannot compile wasm 
code, or I miss any configs?  Thanks!

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/v8-users/267acde6-1eb1-447b-b2f4-d0c8d2407992n%40googlegroups.com.

Reply via email to