R=mstarzinger@chromium.org
Review URL: https://codereview.chromium.org/
1147973002
Cr-Commit-Position: refs/heads/master@{#28505}
#include "src/compiler/opcodes.h"
#include <algorithm>
+#include <ostream>
#include "src/base/macros.h"
return kMnemonics[n];
}
+
+std::ostream& operator<<(std::ostream& os, IrOpcode::Value opcode) {
+ return os << IrOpcode::Mnemonic(opcode);
+}
+
} // namespace compiler
} // namespace internal
} // namespace v8
#ifndef V8_COMPILER_OPCODES_H_
#define V8_COMPILER_OPCODES_H_
+#include <iosfwd>
+
// Opcodes for control operators.
#define CONTROL_OP_LIST(V) \
V(Start) \
}
};
+std::ostream& operator<<(std::ostream&, IrOpcode::Value);
+
} // namespace compiler
} // namespace internal
} // namespace v8