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

Unified Diff: src/objects-inl.h

Issue 688853007: Implement aging of maps embedded in optimized code. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 1 month 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
« src/objects.h ('K') | « src/objects.cc ('k') | src/serialize.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 9564ff0be077f56e1e3abd8361f5c778b4ae0dfb..63fb32e451a8f96182d24afbb6f8806e210d31a1 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -843,6 +843,9 @@ bool Object::IsWeakHashTable() const {
}
+bool Object::IsEmbeddedMapCache() const { return IsHashTable(); }
+
+
bool Object::IsDictionary() const {
return IsHashTable() &&
this != HeapObject::cast(this)->GetHeap()->string_table();
@@ -3308,6 +3311,7 @@ CAST_ACCESSOR(Symbol)
CAST_ACCESSOR(UnseededNumberDictionary)
CAST_ACCESSOR(WeakCell)
CAST_ACCESSOR(WeakHashTable)
+CAST_ACCESSOR(EmbeddedMapCache)
Hannes Payer (out of office) 2014/11/17 17:34:33 alphabetic order
template <class Traits>
@@ -7022,29 +7026,29 @@ Handle<ObjectHashTable> ObjectHashTable::Shrink(
template <int entrysize>
-bool WeakHashTableShape<entrysize>::IsMatch(Handle<Object> key, Object* other) {
+bool HeapPointerShape<entrysize>::IsMatch(Handle<Object> key, Object* other) {
return key->SameValue(other);
}
template <int entrysize>
-uint32_t WeakHashTableShape<entrysize>::Hash(Handle<Object> key) {
+uint32_t HeapPointerShape<entrysize>::Hash(Handle<Object> key) {
intptr_t hash = reinterpret_cast<intptr_t>(*key);
return (uint32_t)(hash & 0xFFFFFFFF);
}
template <int entrysize>
-uint32_t WeakHashTableShape<entrysize>::HashForObject(Handle<Object> key,
- Object* other) {
+uint32_t HeapPointerShape<entrysize>::HashForObject(Handle<Object> key,
+ Object* other) {
intptr_t hash = reinterpret_cast<intptr_t>(other);
return (uint32_t)(hash & 0xFFFFFFFF);
}
template <int entrysize>
-Handle<Object> WeakHashTableShape<entrysize>::AsHandle(Isolate* isolate,
- Handle<Object> key) {
+Handle<Object> HeapPointerShape<entrysize>::AsHandle(Isolate* isolate,
+ Handle<Object> key) {
return key;
}
« src/objects.h ('K') | « src/objects.cc ('k') | src/serialize.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698