summaryrefslogtreecommitdiff
path: root/deps/v8/src/heap/scavenger-inl.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/heap/scavenger-inl.h')
-rw-r--r--deps/v8/src/heap/scavenger-inl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/deps/v8/src/heap/scavenger-inl.h b/deps/v8/src/heap/scavenger-inl.h
index 1ea2f3493c..99e1a8004e 100644
--- a/deps/v8/src/heap/scavenger-inl.h
+++ b/deps/v8/src/heap/scavenger-inl.h
@@ -116,7 +116,7 @@ bool Scavenger::PromoteObject(Map* map, HeapObject** slot, HeapObject* object,
}
*slot = target;
- if (!ContainsOnlyData(static_cast<VisitorId>(map->visitor_id()))) {
+ if (!ContainsOnlyData(map->visitor_id())) {
promotion_list_.Push(ObjectAndSize(target, object_size));
}
promoted_size_ += object_size;
@@ -206,7 +206,7 @@ void Scavenger::EvacuateObject(HeapObject** slot, Map* map,
int size = source->SizeFromMap(map);
// Cannot use ::cast() below because that would add checks in debug mode
// that require re-reading the map.
- switch (static_cast<VisitorId>(map->visitor_id())) {
+ switch (map->visitor_id()) {
case kVisitThinString:
EvacuateThinString(map, slot, reinterpret_cast<ThinString*>(source),
size);