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

Unified Diff: src/objects-inl.h

Issue 1217943004: Vector ICs: Introduce an InstanceType for the type feedback vector. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Improved printer. Created 5 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
Index: src/objects-inl.h
diff --git a/src/objects-inl.h b/src/objects-inl.h
index 1e40ac5d9c12f6b253f75530812d4f4bc41573ea..f13ad94be14db877c05d6d75e7146eed5fdab08b 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -718,6 +718,7 @@ TYPE_CHECKER(Map, MAP_TYPE)
TYPE_CHECKER(FixedArray, FIXED_ARRAY_TYPE)
TYPE_CHECKER(FixedDoubleArray, FIXED_DOUBLE_ARRAY_TYPE)
TYPE_CHECKER(WeakFixedArray, FIXED_ARRAY_TYPE)
+TYPE_CHECKER(TypeFeedbackVector, FEEDBACK_VECTOR_TYPE)
bool Object::IsJSWeakCollection() const {
@@ -743,9 +744,6 @@ bool Object::IsTransitionArray() const {
}
-bool Object::IsTypeFeedbackVector() const { return IsFixedArray(); }
-
-
bool Object::IsDeoptimizationInputData() const {
// Must be a fixed array.
if (!IsFixedArray()) return false;
@@ -4111,7 +4109,8 @@ int HeapObject::SizeFromMap(Map* map) {
if (instance_size != kVariableSizeSentinel) return instance_size;
// Only inline the most frequent cases.
InstanceType instance_type = map->instance_type();
- if (instance_type == FIXED_ARRAY_TYPE) {
+ if (instance_type == FIXED_ARRAY_TYPE ||
+ instance_type == FEEDBACK_VECTOR_TYPE) {
return FixedArray::BodyDescriptor::SizeOf(map, this);
}
if (instance_type == ONE_BYTE_STRING_TYPE ||

Powered by Google App Engine
This is Rietveld 408576698