Description[Interpreter] Transform StrictEquality with null/undefined to special bytecodes.
Transform LdaNull/LdaUndefined followed by StrictEquality to TestNull/TestUndefined.
This would avoid a call to the compare IC. In the bytecode-graph builder these are
mapped to StrictEqual javascript operator. When reducing this operator, we already
optimize the cases for null/undefined.
BUG=v8:4280
Review-Url: https://codereview.chromium.org/2554723004
Cr-Commit-Position: refs/heads/master@{#41768}
Committed: https://chromium.googlesource.com/v8/v8/+/74ccda64dc6b3ecec1eecf8987da37a106da57de
Patch Set 1 #Patch Set 2 : "Fixed a DCHECK" #
Total comments: 4
Patch Set 3 : Fixed nits from Ross. #Patch Set 4 : rebased the patch. #Messages
Total messages: 38 (22 generated)
|