Description[turbofan] Introduce simplified NumberBitwise{Or,Xor,And} operators.
Currently we still (mis)used some machine operators in typed lowering
(namely Word32Or, Word32Xor and Word32And). But these operators are
"polymorphic" in the signedness of their inputs and output, hence the
representation selection (and thereby simplified lowering) was unable to
figure out whether a bitwise operation that was seen would produce an
unsigned or a signed result. If such nodes also have frame state uses,
the only safe choice was float64, which was not only a lot less ideal,
but also the main cause of the for-in related deoptimizer loops.
Adding dedicated NumberBitwiseOr, NumberBitwiseAnd and NumberBitwiseXor
simplified operators not only gives us precise (and correct) typing for
the bitwise operations, but also allows us to actually verify the graph
properly after typed lowering.
Drive-by-fix: Remove the double-to-smi magic from the Deoptimizer, which
is responsible for various deopt-loops in TurboFan, and is no longer
needed with the addition of the NumberBitwise operators.
R=jarin@chromium.org
Committed: https://crrev.com/d08f9045a1ee0062ced514dcb7f8047d505fd957
Cr-Commit-Position: refs/heads/master@{#31594}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Fix typo in SimplifiedLowering. #Patch Set 3 : Implement Jaro's suggestion. #
Total comments: 2
Patch Set 4 : Use NewNumber instead of NewHeapNumber in the Deoptimizer. #
Messages
Total messages: 16 (6 generated)
|