Chromium Code Reviews
DescriptionAvoid initialization checks when loading from an immutable context variable.
This patch tries to address the issue by copying some code from the context specialization reduction. Sorry I am not yet familiar enough with the code to really write this, but it does avoid the initialization checks and a phi that frustrates further optimization, and it passes the checks, and looks plausible.
This can make a significant performance improvement to asm.js style code that frequently references immutable module variables, and should help JS code in general. The Odin asm.js implementation optimizes a 'const' module variable, but with this patch v8 appears to also optimize an immutable 'var' well. Further, Odin compiles before the module variables have been initialized, but with this patch V8 can compile knowing the initialized variable values which is a very interesting feature. See https://bugzilla.mozilla.org/show_bug.cgi?id=1138132 for a request to add the later support to Odin and asm.js and some discussion.
BUG=
Patch Set 1 #
Messages
Total messages: 11 (3 generated)
|
|||||||||||||||||||