Index: src/compiler/instruction.cc |
diff --git a/src/compiler/instruction.cc b/src/compiler/instruction.cc |
index 37c81d91fee8b3c5f63cd43376ad20db44e2518a..e3d4901bdd58969a25f425cbbc99502548c6feac 100644 |
--- a/src/compiler/instruction.cc |
+++ b/src/compiler/instruction.cc |
@@ -867,7 +867,7 @@ size_t FrameStateDescriptor::GetJSFrameCount() const { |
size_t count = 0; |
for (const FrameStateDescriptor* iter = this; iter != NULL; |
iter = iter->outer_state_) { |
- if (iter->type_ == FrameStateType::kJavaScriptFunction) { |
+ if (FrameStateFunctionInfo::IsJSFunctionType(iter->type_)) { |
++count; |
} |
} |