Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index b750b71a88b75ba5395c4913b7a95c4a5cd04416..a538ed4c69df127b8eb2c5879a0f42de0d6b81af 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -26,6 +26,7 @@ |
#include "src/objects.h" |
#include "src/objects-visiting.h" |
#include "src/property.h" |
+#include "src/prototype.h" |
#include "src/spaces.h" |
#include "src/store-buffer.h" |
#include "src/transitions-inl.h" |
@@ -6576,11 +6577,6 @@ bool String::AsArrayIndex(uint32_t* index) { |
} |
-Object* JSReceiver::GetPrototype() const { |
- return map()->prototype(); |
-} |
- |
- |
Object* JSReceiver::GetConstructor() { |
return map()->constructor(); |
} |
@@ -6633,7 +6629,9 @@ bool JSGlobalObject::IsDetached() { |
bool JSGlobalProxy::IsDetachedFrom(GlobalObject* global) const { |
- return GetPrototype() != global; |
+ const PrototypeIterator iter(this->GetIsolate(), |
+ const_cast<JSGlobalProxy*>(this)); |
+ return iter.GetCurrent() != global; |
} |