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

Unified Diff: src/property.h

Issue 400523007: Cache IC handlers on the prototype's map if possible (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: addressed comment 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-inl.h ('k') | src/stub-cache.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/property.h
diff --git a/src/property.h b/src/property.h
index 2c05188359b9f4c3fd1cb335457153bd8e1c8e9a..191b45789fbec659d2f687612d50b2c93a069de2 100644
--- a/src/property.h
+++ b/src/property.h
@@ -460,6 +460,12 @@ class LookupResult V8_FINAL BASE_EMBEDDED {
return map->FindFieldOwner(number_);
}
+ bool ReceiverIsHolder(Handle<Object> receiver) {
+ if (*receiver == holder()) return true;
+ if (lookup_type_ == TRANSITION_TYPE) return true;
+ return false;
+ }
+
void Iterate(ObjectVisitor* visitor);
private:
« no previous file with comments | « src/objects-inl.h ('k') | src/stub-cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698