Commit c7cd3cc6 authored by Michael Lippautz's avatar Michael Lippautz Committed by Commit Bot

[heap] Introduce sub-visitors for JSArrayBufferView

Introduces visitor methods for
- JSDataView
- JSTypedArray

Bug: chromium:885125, chromium:843903
Change-Id: I812eaf0619034641c6998f9d164bee84bc4c6ca2
Reviewed-on: https://chromium-review.googlesource.com/1235693Reviewed-by: 's avatarHannes Payer <hpayer@chromium.org>
Commit-Queue: Michael Lippautz <mlippautz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#56061}
parent b75a778c
...@@ -188,7 +188,11 @@ class ConcurrentMarkingVisitor final ...@@ -188,7 +188,11 @@ class ConcurrentMarkingVisitor final
return VisitJSObjectSubclass(map, object); return VisitJSObjectSubclass(map, object);
} }
int VisitJSArrayBufferView(Map* map, JSArrayBufferView* object) { int VisitJSDataView(Map* map, JSDataView* object) {
return VisitJSObjectSubclass(map, object);
}
int VisitJSTypedArray(Map* map, JSTypedArray* object) {
return VisitJSObjectSubclass(map, object); return VisitJSObjectSubclass(map, object);
} }
......
...@@ -21,8 +21,9 @@ class BigInt; ...@@ -21,8 +21,9 @@ class BigInt;
class BytecodeArray; class BytecodeArray;
class DataHandler; class DataHandler;
class JSArrayBuffer; class JSArrayBuffer;
class JSArrayBufferView; class JSDataView;
class JSRegExp; class JSRegExp;
class JSTypedArray;
class JSWeakCollection; class JSWeakCollection;
class UncompiledDataWithoutPreParsedScope; class UncompiledDataWithoutPreParsedScope;
class UncompiledDataWithPreParsedScope; class UncompiledDataWithPreParsedScope;
...@@ -45,8 +46,9 @@ class UncompiledDataWithPreParsedScope; ...@@ -45,8 +46,9 @@ class UncompiledDataWithPreParsedScope;
V(FixedFloat64Array) \ V(FixedFloat64Array) \
V(FixedTypedArrayBase) \ V(FixedTypedArrayBase) \
V(JSArrayBuffer) \ V(JSArrayBuffer) \
V(JSArrayBufferView) \ V(JSDataView) \
V(JSObject) \ V(JSObject) \
V(JSTypedArray) \
V(JSWeakCollection) \ V(JSWeakCollection) \
V(Map) \ V(Map) \
V(Oddball) \ V(Oddball) \
......
...@@ -3161,8 +3161,10 @@ VisitorId Map::GetVisitorId(Map* map) { ...@@ -3161,8 +3161,10 @@ VisitorId Map::GetVisitorId(Map* map) {
return kVisitJSArrayBuffer; return kVisitJSArrayBuffer;
case JS_DATA_VIEW_TYPE: case JS_DATA_VIEW_TYPE:
return kVisitJSDataView;
case JS_TYPED_ARRAY_TYPE: case JS_TYPED_ARRAY_TYPE:
return kVisitJSArrayBufferView; return kVisitJSTypedArray;
case SMALL_ORDERED_HASH_MAP_TYPE: case SMALL_ORDERED_HASH_MAP_TYPE:
return kVisitSmallOrderedHashMap; return kVisitSmallOrderedHashMap;
......
...@@ -37,9 +37,10 @@ namespace internal { ...@@ -37,9 +37,10 @@ namespace internal {
V(FreeSpace) \ V(FreeSpace) \
V(JSApiObject) \ V(JSApiObject) \
V(JSArrayBuffer) \ V(JSArrayBuffer) \
V(JSArrayBufferView) \ V(JSDataView) \
V(JSObject) \ V(JSObject) \
V(JSObjectFast) \ V(JSObjectFast) \
V(JSTypedArray) \
V(JSWeakCollection) \ V(JSWeakCollection) \
V(Map) \ V(Map) \
V(NativeContext) \ V(NativeContext) \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment