Index: src/ic/ic.h |
diff --git a/src/ic/ic.h b/src/ic/ic.h |
index 15479371cb6f80e217309bd801f222add71b0637..7a6ee616b8061be2fa0e36eb1f1131342fdeb37f 100644 |
--- a/src/ic/ic.h |
+++ b/src/ic/ic.h |
@@ -542,6 +542,8 @@ class KeyedStoreIC : public StoreIC { |
class ExtraICStateKeyedAccessStoreMode |
: public BitField<KeyedAccessStoreMode, 2, 4> {}; // NOLINT |
+ class IcCheckTypeField : public BitField<IcCheckType, 6, 1> {}; |
+ |
static ExtraICState ComputeExtraICState(StrictMode flag, |
KeyedAccessStoreMode mode) { |
return StrictModeState::encode(flag) | |
@@ -553,6 +555,10 @@ class KeyedStoreIC : public StoreIC { |
return ExtraICStateKeyedAccessStoreMode::decode(extra_state); |
} |
+ static IcCheckType GetKeyType(ExtraICState extra_state) { |
+ return IcCheckTypeField::decode(extra_state); |
+ } |
+ |
KeyedStoreIC(FrameDepth depth, Isolate* isolate) : StoreIC(depth, isolate) { |
DCHECK(target()->is_keyed_store_stub()); |
} |