Index: src/compiler/node-properties-inl.h |
diff --git a/src/compiler/node-properties-inl.h b/src/compiler/node-properties-inl.h |
index 4a0f1573b591f8f656cab01b9489611dc2c268d2..00e66e7d3890c5d3d25981c0d6ed5bd8e45b29bd 100644 |
--- a/src/compiler/node-properties-inl.h |
+++ b/src/compiler/node-properties-inl.h |
@@ -29,10 +29,14 @@ inline int NodeProperties::FirstContextIndex(Node* node) { |
return PastValueIndex(node); |
} |
-inline int NodeProperties::FirstEffectIndex(Node* node) { |
+inline int NodeProperties::FirstFrameStateIndex(Node* node) { |
return PastContextIndex(node); |
} |
+inline int NodeProperties::FirstEffectIndex(Node* node) { |
+ return PastFrameStateIndex(node); |
+} |
+ |
inline int NodeProperties::FirstControlIndex(Node* node) { |
return PastEffectIndex(node); |
} |
@@ -48,6 +52,11 @@ inline int NodeProperties::PastContextIndex(Node* node) { |
OperatorProperties::GetContextInputCount(node->op()); |
} |
+inline int NodeProperties::PastFrameStateIndex(Node* node) { |
+ return FirstFrameStateIndex(node) + |
+ OperatorProperties::GetFrameStateInputCount(node->op()); |
+} |
+ |
inline int NodeProperties::PastEffectIndex(Node* node) { |
return FirstEffectIndex(node) + |
OperatorProperties::GetEffectInputCount(node->op()); |
@@ -73,6 +82,11 @@ inline Node* NodeProperties::GetContextInput(Node* node) { |
return node->InputAt(FirstContextIndex(node)); |
} |
+inline Node* NodeProperties::GetFrameStateInput(Node* node) { |
+ DCHECK(OperatorProperties::HasFrameStateInput(node->op())); |
+ return node->InputAt(FirstFrameStateIndex(node)); |
+} |
+ |
inline Node* NodeProperties::GetEffectInput(Node* node, int index) { |
DCHECK(0 <= index && |
index < OperatorProperties::GetEffectInputCount(node->op())); |
@@ -85,6 +99,10 @@ inline Node* NodeProperties::GetControlInput(Node* node, int index) { |
return node->InputAt(FirstControlIndex(node) + index); |
} |
+inline int NodeProperties::GetFrameStateIndex(Node* node) { |
+ DCHECK(OperatorProperties::HasFrameStateInput(node->op())); |
+ return FirstFrameStateIndex(node); |
+} |
// ----------------------------------------------------------------------------- |
// Edge kinds. |