Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index fb6ac8d678289925530f6e2fa80fcd7886cf91da..27a626779cfdd24cb22744967cde1076de9e91a7 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -4041,7 +4041,12 @@ void Code::set_marked_for_deoptimization(bool flag) { |
bool Code::is_inline_cache_stub() { |
Kind kind = this->kind(); |
- return kind >= FIRST_IC_KIND && kind <= LAST_IC_KIND; |
+ switch (kind) { |
+#define CASE(name) case name: return true; |
+ IC_KIND_LIST(CASE) |
+#undef CASE |
+ default: return false; |
+ } |
} |