Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index 99c160b51d5c79e93fa2675745387428fa207c31..f3432fcdc05b7db3fceaa07364c0792015a7eb64 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -5337,6 +5337,8 @@ class Code: public HeapObject { |
DECLARE_VERIFIER(Code) |
void ClearInlineCaches(); |
+ void ClearInlineCaches(Kind kind); |
+ |
void ClearTypeFeedbackCells(Heap* heap); |
BailoutId TranslatePcOffsetToAstId(uint32_t pc_offset); |
@@ -5505,6 +5507,8 @@ class Code: public HeapObject { |
private: |
friend class RelocIterator; |
+ void ClearInlineCaches(Kind* kind); |
+ |
// Code aging |
byte* FindCodeAgeSequence(); |
static void GetCodeAgeAndParity(Code* code, Age* age, |
@@ -5796,6 +5800,10 @@ class Map: public HeapObject { |
static bool IsValidElementsTransition(ElementsKind from_kind, |
ElementsKind to_kind); |
+ // Returns true if the current map doesn't have DICTIONARY_ELEMENTS but if a |
+ // map with DICTIONARY_ELEMENTS was found in the prototype chain. |
+ bool DictionaryElementsInPrototypeChainOnly(); |
+ |
inline bool HasTransitionArray(); |
inline bool HasElementsTransition(); |
inline Map* elements_transition_map(); |