Index: src/ic.h |
diff --git a/src/ic.h b/src/ic.h |
index c1b95494de7214f3caa74121e0925c0bce11aec7..c86f316ef315b4949fa94a428aee2cb08e228e0c 100644 |
--- a/src/ic.h |
+++ b/src/ic.h |
@@ -451,7 +451,7 @@ class KeyedIC: public IC { |
private: |
void GetReceiverMapsForStub(Handle<Code> stub, MapHandleList* result); |
- Handle<Code> ComputeMonomorphicStub(Handle<JSObject> receiver, |
+ Handle<Code> ComputeMonomorphicStub(Handle<Map> receiver_map, |
StubKind stub_kind, |
StrictModeFlag strict_mode, |
Handle<Code> default_stub); |
@@ -467,6 +467,12 @@ class KeyedIC: public IC { |
static bool IsGrowStubKind(StubKind stub_kind) { |
return stub_kind >= STORE_AND_GROW_NO_TRANSITION; |
} |
+ |
+ static StubKind GetNoTransitionStubKind(StubKind stub_kind) { |
+ if (!IsTransitionStubKind(stub_kind)) return stub_kind; |
+ if (IsGrowStubKind(stub_kind)) return STORE_AND_GROW_NO_TRANSITION; |
+ return STORE_NO_TRANSITION; |
+ } |
}; |