Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(604)

Unified Diff: src/objects-inl.h

Issue 390323002: Remove JSReceiver::GetPrototype and replace it with PrototypeIterator calls (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: updates Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/objects.cc ('k') | src/objects-printer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « src/objects.cc ('k') | src/objects-printer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698