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

Unified Diff: src/lookup.cc

Issue 502903002: Remove HolderIsNonGlobalHiddenPrototype since OWN* now also checks globals (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Remove explicit JSGlobalObject check since it's always either that or Null Created 6 years, 4 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/lookup.h ('k') | src/lookup-inl.h » ('j') | src/lookup-inl.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/lookup.cc
diff --git a/src/lookup.cc b/src/lookup.cc
index 97fd53522a91fbb5bf082d0e3100d31ac0f6f70c..5bce620abd1e0bacdbcfc08b4f7e3bd98d7d4b22 100644
--- a/src/lookup.cc
+++ b/src/lookup.cc
@@ -273,16 +273,6 @@ bool LookupIterator::HolderIsReceiverOrHiddenPrototype() const {
}
-bool LookupIterator::HolderIsNonGlobalHiddenPrototype() const {
- if (!HolderIsReceiverOrHiddenPrototype()) return false;
- Handle<Object> receiver = GetReceiver();
- Handle<JSReceiver> holder = GetHolder<JSReceiver>();
- if (receiver.is_identical_to(holder)) return false;
- if (receiver->IsJSGlobalProxy()) return !holder->IsJSGlobalObject();
- return true;
-}
-
-
Handle<Object> LookupIterator::FetchValue() const {
Object* result = NULL;
Handle<JSObject> holder = GetHolder<JSObject>();
« no previous file with comments | « src/lookup.h ('k') | src/lookup-inl.h » ('j') | src/lookup-inl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698