Index: src/code-stubs.h |
diff --git a/src/code-stubs.h b/src/code-stubs.h |
index ad1f09be1140ed894228582f732713d7818d193d..013086e1f1586c4197bb890e766dae4e88daf7bd 100644 |
--- a/src/code-stubs.h |
+++ b/src/code-stubs.h |
@@ -1080,6 +1080,8 @@ class ICCompareStub: public PlatformCodeStub { |
return static_cast<CompareIC::State>(HandlerStateField::decode(minor_key)); |
} |
+ virtual InlineCacheState GetICState(); |
+ |
private: |
class OpField: public BitField<int, 0, 3> { }; |
class LeftStateField: public BitField<int, 3, 4> { }; |
@@ -2027,6 +2029,13 @@ class ToBooleanStub: public HydrogenCodeStub { |
return types_.ToIntegral(); |
} |
+ virtual InlineCacheState GetICState() { |
+ if (types_.IsEmpty()) { |
+ return ::v8::internal::UNINITIALIZED; |
+ } else { |
+ return MONOMORPHIC; |
+ } |
+ } |
private: |
Major MajorKey() { return ToBoolean; } |