[compiler] Mark Name as kNeverSerialized

Bug: v8:7790
Change-Id: I44469e08131ad6a5f95a465cf2d461da0785221e
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2616218
Commit-Queue: Santiago Aboy Solanes <solanes@chromium.org>
Reviewed-by: Georg Neis <neis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#72012}
This commit is contained in:
Santiago Aboy Solanes 2021-01-11 15:25:58 +00:00 committed by Commit Bot
parent 79c0db8feb
commit 73875e9585
2 changed files with 4 additions and 2 deletions

View File

@ -71,6 +71,7 @@ enum class OddballType : uint8_t {
V(ArrayBoilerplateDescription) \
V(CallHandlerInfo) \
V(Cell) \
V(Name) \
V(TemplateObjectDescription)
// This list is sorted such that subtypes appear before their supertypes.
@ -108,7 +109,6 @@ enum class OddballType : uint8_t {
V(HeapNumber) \
V(JSReceiver) \
V(Map) \
V(Name) \
V(PropertyCell) \
V(SharedFunctionInfo) \
V(SourceTextModule) \

View File

@ -766,7 +766,9 @@ class NativeContextData : public ContextData {
class NameData : public HeapObjectData {
public:
NameData(JSHeapBroker* broker, ObjectData** storage, Handle<Name> object)
: HeapObjectData(broker, storage, object) {}
: HeapObjectData(broker, storage, object) {
DCHECK(!FLAG_turbo_direct_heap_access);
}
};
class StringData : public NameData {