DescriptionHide WasmModule.origin field behind readable accessors.
Besides adding accessors get_origin() and set_origin(), it creates easier test
accessors is_wasm() and is_asm_js().
This allows the possibility of caching boolean flags for is_wasm() and
is_asm_js() without having to change any code except for the files containing
the class definition for WasmModule.
BUG=v8:6152
R=bbudge@chromium.org,mtrofin@chromium.org
Review-Url: https://codereview.chromium.org/2771803005
Cr-Commit-Position: refs/heads/master@{#44130}
Committed: https://chromium.googlesource.com/v8/v8/+/98ed1f9ca97882c2566646c67cdfabaa71d7ac5c
Patch Set 1 #Patch Set 2 : Fix merge conflict with master. #
Total comments: 6
Patch Set 3 : Fix origin references in debug build. #
Total comments: 3
Patch Set 4 : Change field origin to origin_ #Patch Set 5 : Use boolean accessors instead of get_origin. #
Messages
Total messages: 42 (24 generated)
|