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

Unified Diff: src/ic.cc

Issue 10575032: In-place shrinking of descriptor arrays with non-live transitions. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 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/factory.cc ('k') | src/mark-compact.cc » ('j') | src/objects.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ic.cc
diff --git a/src/ic.cc b/src/ic.cc
index 47a72b495636465761ce27fe4a0d97a107430f78..10c737b68313ad3b35570560a302d8facede1baf 100644
--- a/src/ic.cc
+++ b/src/ic.cc
@@ -1301,7 +1301,7 @@ void KeyedLoadIC::UpdateCaches(LookupResult* lookup,
static bool StoreICableLookup(LookupResult* lookup) {
// Bail out if we didn't find a result.
- if (!lookup->IsFound() || lookup->type() == NULL_DESCRIPTOR) return false;
+ if (!lookup->IsFound()) return false;
// Bail out if inline caching is not allowed.
if (!lookup->IsCacheable()) return false;
@@ -1439,8 +1439,6 @@ void StoreIC::UpdateCaches(LookupResult* lookup,
ASSERT(StoreICableLookup(lookup));
// These are not cacheable, so we never see such LookupResults here.
ASSERT(lookup->type() != HANDLER);
- // We get only called for properties or transitions, see StoreICableLookup.
- ASSERT(lookup->type() != NULL_DESCRIPTOR);
Michael Starzinger 2012/06/25 11:21:57 We should actually keep this and assert against NO
Toon Verwaest 2012/06/25 12:20:48 As discussed offline, replaced with IsFound(). On
// If the property has a non-field type allowing map transitions
// where there is extra room in the object, we leave the IC in its
@@ -1512,8 +1510,8 @@ void StoreIC::UpdateCaches(LookupResult* lookup,
case CONSTANT_FUNCTION:
case CONSTANT_TRANSITION:
return;
+ case NONEXISTENT:
case HANDLER:
- case NULL_DESCRIPTOR:
UNREACHABLE();
return;
}
@@ -1941,8 +1939,6 @@ void KeyedStoreIC::UpdateCaches(LookupResult* lookup,
ASSERT(StoreICableLookup(lookup));
// These are not cacheable, so we never see such LookupResults here.
ASSERT(lookup->type() != HANDLER);
- // We get only called for properties or transitions, see StoreICableLookup.
- ASSERT(lookup->type() != NULL_DESCRIPTOR);
Michael Starzinger 2012/06/25 11:21:57 Likewise.
Toon Verwaest 2012/06/25 12:20:48 Done.
// If the property has a non-field type allowing map transitions
// where there is extra room in the object, we leave the IC in its
@@ -1981,7 +1977,7 @@ void KeyedStoreIC::UpdateCaches(LookupResult* lookup,
: generic_stub();
break;
case HANDLER:
- case NULL_DESCRIPTOR:
+ case NONEXISTENT:
UNREACHABLE();
return;
}
« no previous file with comments | « src/factory.cc ('k') | src/mark-compact.cc » ('j') | src/objects.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698