Make v8_context_snapshot.bin writing deterministic.
V8 currently writes the raw values for embedder fields always, so don't put pointers (which differ even between runs of the same binary, due to ASLR) in there until that's fixed. Instead, put a magic integer there and transform that to a pointer at deserialization time. (Also remove a redundant call from CreatePlainWrapper() -- the caller of CreatePlainWrapper() already sets the embedder field, no need to do that twice. This part is behavior-preserving.) Bug: 870584 Change-Id: I6b29286ec8c7a68a662d51c36b5642b968f2e343 Reviewed-on: https://chromium-review.googlesource.com/c/1293791 Commit-Queue: Nico Weber <thakis@chromium.org> Reviewed-by:Kentaro Hara <haraken@chromium.org> Reviewed-by:
Hans Wennborg <hans@chromium.org> Cr-Commit-Position: refs/heads/master@{#601628}
Showing
Please register or sign in to comment