Index: src/ic.h |
diff --git a/src/ic.h b/src/ic.h |
index 8767f988a2936554007b0147bed95515e9f8d328..a487ab65ab43ffbcc975a2150f6814b286062e97 100644 |
--- a/src/ic.h |
+++ b/src/ic.h |
@@ -426,6 +426,15 @@ class KeyedIC: public IC { |
ElementsKind elements_kind, |
KeyedAccessGrowMode grow_mode) = 0; |
+ static bool IsTransitionStubKind(StubKind stub_kind) { |
+ return stub_kind > STORE_NO_TRANSITION && |
+ stub_kind != STORE_AND_GROW_NO_TRANSITION; |
+ } |
+ |
+ static bool IsGrowStubKind(StubKind stub_kind) { |
+ return stub_kind >= STORE_AND_GROW_NO_TRANSITION; |
+ } |
+ |
protected: |
virtual Handle<Code> string_stub() { |
return Handle<Code>::null(); |
@@ -459,15 +468,6 @@ class KeyedIC: public IC { |
Handle<Map> ComputeTransitionedMap(Handle<JSObject> receiver, |
StubKind stub_kind); |
- static bool IsTransitionStubKind(StubKind stub_kind) { |
- return stub_kind > STORE_NO_TRANSITION && |
- stub_kind != STORE_AND_GROW_NO_TRANSITION; |
- } |
- |
- 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; |