Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 25e1d7d74b4c70993c4367a81e65a2270ecad947..5341bdf41bb77d3c151b12cdeb90ab68f81669e5 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -4851,15 +4851,19 @@ Code::Kind Code::kind() { |
return ExtractKindFromFlags(flags()); |
} |
- |
bool Code::IsCodeStubOrIC() { |
- return kind() == STUB || kind() == HANDLER || kind() == LOAD_IC || |
- kind() == KEYED_LOAD_IC || kind() == CALL_IC || kind() == STORE_IC || |
- kind() == KEYED_STORE_IC || kind() == BINARY_OP_IC || |
- kind() == COMPARE_IC || kind() == TO_BOOLEAN_IC; |
+ switch (kind()) { |
+ case STUB: |
+ case HANDLER: |
+#define CASE_KIND(kind) case kind: |
+ IC_KIND_LIST(CASE_KIND) |
+#undef CASE_KIND |
+ return true; |
+ default: |
+ return false; |
+ } |
} |
- |
ExtraICState Code::extra_ic_state() { |
DCHECK(is_inline_cache_stub() || is_debug_stub()); |
return ExtractExtraICStateFromFlags(flags()); |