DescriptionOptimize ~~(expr) in optimized code.
~~ is commonly used to truncate a value to int32 (ToInt32).
This change avoid actually emitting the bitwise operations, and
just truncates the subexpression of ~~.
BUG=v8:2037
TEST=test/mjsunit/compiler/optimize-bitnot.js
Committed: https://code.google.com/p/v8/source/detail?r=11390
Patch Set 1 #
Messages
Total messages: 2 (0 generated)
|