Chromium Code Reviews| Index: src/compiler/operator.h |
| diff --git a/src/compiler/operator.h b/src/compiler/operator.h |
| index d8f19bfdeb8fef10bc57fddadb4ee3c0358870a7..da4073bbbcb0a275588b9c5bce092fb10b550b49 100644 |
| --- a/src/compiler/operator.h |
| +++ b/src/compiler/operator.h |
| @@ -49,6 +49,12 @@ class Operator : public ZoneObject { |
| kEliminatable = kNoDeopt | kNoWrite | kNoThrow, |
| kPure = kNoDeopt | kNoRead | kNoWrite | kNoThrow | kIdempotent |
| }; |
| + |
| +// List of all bits, for the visualizer. |
| +#define OP_PROP_LIST(V) \ |
|
Jarin
2016/08/09 14:08:26
OP_PROP_LIST -> OPERATOR_PROPERTY_LIST?
|
| + V(Commutative) \ |
| + V(Associative) V(Idempotent) V(NoRead) V(NoWrite) V(NoThrow) V(NoDeopt) |
| + |
| typedef base::Flags<Property, uint8_t> Properties; |
| enum class PrintVerbosity { kVerbose, kSilent }; |
| @@ -122,6 +128,8 @@ class Operator : public ZoneObject { |
| return PrintToImpl(os, verbose); |
| } |
| + void PrintPropsTo(std::ostream& os) const; |
| + |
| protected: |
| virtual void PrintToImpl(std::ostream& os, PrintVerbosity verbose) const; |