Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index af0a8911c873bfeff4a74b79cca91d109ccef6a2..832457a15fc0bf787f119e96714afc32ebc8ef8d 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -1756,6 +1756,13 @@ class HeapObject: public Object { |
// during marking GC. |
static inline Object** RawField(HeapObject* obj, int offset); |
+ // Adds the |code| object related to |name| to the code cache of this map. If |
+ // this map is a dictionary map that is shared, the map copied and installed |
+ // onto the object. |
+ static void UpdateMapCodeCache(Handle<HeapObject> object, |
+ Handle<Name> name, |
+ Handle<Code> code); |
+ |
// Casting. |
static inline HeapObject* cast(Object* obj); |
@@ -2574,10 +2581,6 @@ class JSObject: public JSReceiver { |
MUST_USE_RESULT MaybeObject* NormalizeElements(); |
- static void UpdateMapCodeCache(Handle<JSObject> object, |
- Handle<Name> name, |
- Handle<Code> code); |
- |
// Transform slow named properties to fast variants. |
// Returns failure if allocation failed. |
static void TransformToFastProperties(Handle<JSObject> object, |
@@ -5909,6 +5912,10 @@ class Map: public HeapObject { |
return instance_type() >= FIRST_JS_OBJECT_TYPE; |
} |
+ bool IsJSObjectMap() { |
+ return instance_type() >= FIRST_JS_OBJECT_TYPE; |
+ } |
+ |
// Fires when the layout of an object with a leaf map changes. |
// This includes adding transitions to the leaf map or changing |
// the descriptor array. |