Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index e142320aa0d102d2b343c2cc880347276d4f2759..b2fb95fa6f2cd7d083b5784b49bd030da51be78a 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -1885,7 +1885,7 @@ class JSReceiver: public HeapObject { |
// Returns the constructor name (the name (possibly, inferred name) of the |
// function that was used to instantiate the object). |
- String* constructor_name(); |
+ static Handle<String> GetConstructorName(Handle<JSReceiver> receiver); |
Context* GetCreationContext(); |
@@ -5647,10 +5647,6 @@ class Map: public HeapObject { |
static Handle<Map> Normalize(Handle<Map> map, PropertyNormalizationMode mode, |
const char* reason); |
- // Returns the constructor name (the name (possibly, inferred name) of the |
- // function that was used to instantiate the object). |
- String* constructor_name(); |
- |
// Tells whether the map is used for JSObjects in dictionary mode (ie |
// normalized objects, ie objects for which HasFastProperties returns false). |
// A map can never be used for both dictionary mode and fast mode JSObjects. |
@@ -6155,8 +6151,6 @@ class PrototypeInfo : public Struct { |
// given receiver embed the currently valid cell for that receiver's prototype |
// during their compilation and check it on execution. |
DECL_ACCESSORS(validity_cell, Object) |
- // [constructor_name]: User-friendly name of the original constructor. |
- DECL_ACCESSORS(constructor_name, Object) |
DECLARE_CAST(PrototypeInfo) |