Convert IsTypeOp to an enum class
commit7e112d6f81e4826e81c4727bc737cfcff895d3cb
authorJordan DeLong <jdelong@fb.com>
Mon, 2 Dec 2013 23:06:03 +0000 (2 15:06 -0800)
committerSara Golemon <sgolemon@fb.com>
Wed, 4 Dec 2013 22:30:54 +0000 (4 14:30 -0800)
tree5a84f8318da1cc26448445f3670ec2db68620458
parent1ca0022e67080b0e8fb111894ea6124c217954b9
Convert IsTypeOp to an enum class

Also name the types more like other type names (in both
JIT::Type and HHBBC) for macro-friendliness, and remove default cases
from switches so we'll find places that need to be updated when we add
new cases to the enum.

Reviewed By: aravind

Differential Revision: D1079271
hphp/compiler/analysis/emitter.cpp
hphp/doc/bytecode.specification
hphp/hhbbc/type-system.h
hphp/runtime/vm/as.cpp
hphp/runtime/vm/bytecode.cpp
hphp/runtime/vm/hhbc.h
hphp/runtime/vm/jit/ir-translator.cpp
hphp/runtime/vm/jit/translator.cpp
hphp/runtime/vm/verifier/check_func.cpp
hphp/system/php/array_filter.hhas
hphp/system/php/array_map.hhas