Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 22af01e8bc3f4366b8d74adc617ed018012aacbc..f3686b37bb5b994942995c9d39ab454e3db9c2bf 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -676,6 +676,11 @@ bool Object::IsCodeCacheHashTable() { |
} |
+bool Object::IsPolymorphicCodeCacheHashTable() { |
+ return IsHashTable(); |
+} |
+ |
+ |
bool Object::IsMapCache() { |
return IsHashTable(); |
} |
@@ -1891,6 +1896,7 @@ CAST_ACCESSOR(JSFunctionResultCache) |
CAST_ACCESSOR(NormalizedMapCache) |
CAST_ACCESSOR(CompilationCacheTable) |
CAST_ACCESSOR(CodeCacheHashTable) |
+CAST_ACCESSOR(PolymorphicCodeCacheHashTable) |
CAST_ACCESSOR(MapCache) |
CAST_ACCESSOR(String) |
CAST_ACCESSOR(SeqString) |
@@ -3324,6 +3330,8 @@ void SharedFunctionInfo::set_native(bool value) { |
ACCESSORS(CodeCache, default_cache, FixedArray, kDefaultCacheOffset) |
ACCESSORS(CodeCache, normal_type_cache, Object, kNormalTypeCacheOffset) |
+ACCESSORS(PolymorphicCodeCache, cache, Object, kCacheOffset) |
+ |
bool Script::HasValidSource() { |
Object* src = this->source(); |
if (!src->IsString()) return true; |