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

Unified Diff: src/property.h

Issue 16826016: Implement IC support for Constant Function transitions. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 6 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/ic.cc ('k') | src/x64/stub-cache-x64.cc » ('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 f853fc8ba035519cbcbfe1288a0027ee3cc91e8e..5bb2c4d87a7e9d64f83a0e2034158dc34a70b783 100644
--- a/src/property.h
+++ b/src/property.h
@@ -392,6 +392,11 @@ class LookupResult BASE_EMBEDDED {
return IsTransition() && GetTransitionDetails(map).type() == FIELD;
}
+ bool IsTransitionToConstantFunction(Map* map) {
+ return IsTransition() &&
+ GetTransitionDetails(map).type() == CONSTANT_FUNCTION;
+ }
+
Map* GetTransitionMap() {
ASSERT(IsTransition());
return Map::cast(GetValue());
« no previous file with comments | « src/ic.cc ('k') | src/x64/stub-cache-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698