Index: src/ic/ic-state.cc |
diff --git a/src/ic/ic-state.cc b/src/ic/ic-state.cc |
index f94803681bb8d6f8350f8f421386331cd051a887..7439ecd2c0610c31f4c29b6c2fcfb19cc9507b9d 100644 |
--- a/src/ic/ic-state.cc |
+++ b/src/ic/ic-state.cc |
@@ -61,6 +61,23 @@ ExtraICState BinaryOpICState::GetExtraICState() const { |
return extra_ic_state; |
} |
+std::string BinaryOpICState::ToString() const { |
+ std::string ret = "("; |
+ ret += Token::Name(op_); |
+ if (CouldCreateAllocationMementos()) ret += "_CreateAllocationMementos"; |
+ ret += ":"; |
+ ret += BinaryOpICState::KindToString(left_kind_); |
+ ret += "*"; |
+ if (fixed_right_arg_.IsJust()) { |
+ ret += fixed_right_arg_.FromJust(); |
+ } else { |
+ ret += BinaryOpICState::KindToString(right_kind_); |
+ } |
+ ret += "->"; |
+ ret += BinaryOpICState::KindToString(result_kind_); |
+ ret += ")"; |
+ return ret; |
+} |
// static |
void BinaryOpICState::GenerateAheadOfTime( |