Reviewers: Jakob,
Description:
Improved printing of HBitwise instructions.
Please review this at http://codereview.chromium.org/9972007/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files:
M src/hydrogen-instructions.h
M src/hydrogen-instructions.cc
Index: src/hydrogen-instructions.cc
diff --git a/src/hydrogen-instructions.cc b/src/hydrogen-instructions.cc
index
b55d40ece85a38d6eee0765ed240b9a71db20578..2c13b8885b3b3c81e6fb95882bc917aa78b55e0e
100644
--- a/src/hydrogen-instructions.cc
+++ b/src/hydrogen-instructions.cc
@@ -2272,6 +2272,13 @@ void HIn::PrintDataTo(StringStream* stream) {
}
+void HBitwise::PrintDataTo(StringStream* stream) {
+ stream->Add(Token::Name(op_));
+ stream->Add(" ");
+ HBitwiseBinaryOperation::PrintDataTo(stream);
+}
+
+
Representation HPhi::InferredRepresentation() {
bool double_occurred = false;
bool int32_occurred = false;
Index: src/hydrogen-instructions.h
diff --git a/src/hydrogen-instructions.h b/src/hydrogen-instructions.h
index
1754ad4d7739a6896021bdc50b65fa8956000176..ba8d2e781dc1c102fa0789f95b23c4384c29db8a
100644
--- a/src/hydrogen-instructions.h
+++ b/src/hydrogen-instructions.h
@@ -3353,6 +3353,8 @@ class HBitwise: public HBitwiseBinaryOperation {
HValue* left,
HValue* right);
+ virtual void PrintDataTo(StringStream* stream);
+
DECLARE_CONCRETE_INSTRUCTION(Bitwise)
protected:
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev