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

Unified Diff: src/objects-inl.h

Issue 1636013002: Replace HeapType with a non-templated FieldType class. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix tracing of generalizations Created 4 years, 11 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 9771dcf729a788e108aa851e04146119acca93dc..f6f3287bfbe388c3782756d1ca99b1057e42310f 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -2973,15 +2973,14 @@ int DescriptorArray::GetFieldIndex(int descriptor_number) {
return GetDetails(descriptor_number).field_index();
}
-
-HeapType* DescriptorArray::GetFieldType(int descriptor_number) {
+FieldType* DescriptorArray::GetFieldType(int descriptor_number) {
DCHECK(GetDetails(descriptor_number).location() == kField);
Object* value = GetValue(descriptor_number);
if (value->IsWeakCell()) {
- if (WeakCell::cast(value)->cleared()) return HeapType::None();
+ if (WeakCell::cast(value)->cleared()) return FieldType::None();
value = WeakCell::cast(value)->value();
}
- return HeapType::cast(value);
+ return FieldType::cast(value);
}
« src/ic/ic.cc ('K') | « src/objects-debug.cc ('k') | src/parsing/json-parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698