Index: src/compiler/common-operator.h |
diff --git a/src/compiler/common-operator.h b/src/compiler/common-operator.h |
index c59ca49f5c9d67368b38b7df16bc9d0b70564d53..9b077c314f7703439974703648f982176cac25f5 100644 |
--- a/src/compiler/common-operator.h |
+++ b/src/compiler/common-operator.h |
@@ -67,6 +67,10 @@ class OutputFrameStateCombine { |
return kind_ == kPushOutput && parameter_ == 0; |
} |
+ size_t ConsumedOutputCount() const { |
+ return kind_ == kPushOutput ? GetPushCount() : 1; |
+ } |
+ |
bool operator==(OutputFrameStateCombine const& other) const { |
return kind_ == other.kind_ && parameter_ == other.parameter_; |
} |