Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 1cd0c7cdb43f990fed5740369a16c75f90485307..2f322b80f7800f35abc4604eab8b24bbfd54cc75 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -4686,7 +4686,8 @@ |
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; |
+ kind() == COMPARE_IC || kind() == COMPARE_NIL_IC || |
+ kind() == TO_BOOLEAN_IC; |
} |
@@ -4976,6 +4977,7 @@ |
bool Code::is_call_stub() { return kind() == CALL_IC; } |
bool Code::is_binary_op_stub() { return kind() == BINARY_OP_IC; } |
bool Code::is_compare_ic_stub() { return kind() == COMPARE_IC; } |
+bool Code::is_compare_nil_ic_stub() { return kind() == COMPARE_NIL_IC; } |
bool Code::is_to_boolean_ic_stub() { return kind() == TO_BOOLEAN_IC; } |
bool Code::is_optimized_code() { return kind() == OPTIMIZED_FUNCTION; } |
bool Code::is_wasm_code() { return kind() == WASM_FUNCTION; } |
@@ -4983,7 +4985,7 @@ |
bool Code::embeds_maps_weakly() { |
Kind k = kind(); |
return (k == LOAD_IC || k == STORE_IC || k == KEYED_LOAD_IC || |
- k == KEYED_STORE_IC) && |
+ k == KEYED_STORE_IC || k == COMPARE_NIL_IC) && |
ic_state() == MONOMORPHIC; |
} |