DescriptionReplaced unary negation by multiplication with -1.
This fixes a deopt loop in the Epic Citadel demo and removes some code. Apart from that, this change is performance-neutral.
When we do something similar for BIT_NOT, the whole UnaryOp stuff can go away.
R=jkummerow@chromium.org
Committed: http://code.google.com/p/v8/source/detail?r=16029
Patch Set 1 #Patch Set 2 : Added some ASSERTs to make it explicit that only BIT_NOT is left. #Patch Set 3 : Added test #Patch Set 4 : Fix for --stress-opt #Patch Set 5 : rebased #
Messages
Total messages: 3 (0 generated)
|