Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 8308146052e5361cea0fd11438d15079c6963ef7..651ad6f378721cf9c1bbb260abbba2a18b94751f 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -1028,6 +1028,12 @@ Object* Object::GetPrototype(Isolate* isolate) { |
} |
+Map* Object::GetMarkerMap(Isolate* isolate) { |
+ if (IsSmi()) return isolate->heap()->heap_number_map(); |
+ return HeapObject::cast(this)->map(); |
+} |
+ |
+ |
Object* Object::GetHash() { |
// The object is either a number, a name, an odd-ball, |
// a real JS object, or a Harmony proxy. |