DescriptionReshuffle an if() condition to not depend on an uninitialized value.
Node::class_id_ contains garbage for newly allocated (FREE) nodes. This patch
changes the code to first test the node state_, then (for non-FREE nodes),
class_id_, and not the other way around.
This does not affect the branch taken (i.e. the current code is correct),
but makes Valgrind and MSan happy.
Committed: https://code.google.com/p/v8/source/detail?r=12903
Patch Set 1 #
Messages
Total messages: 4 (0 generated)
|