[turbofan] extend type asserts to cover all JS types

Extend type assertions to all types covering JavaScript values.
This is achieved by allocating type representations on the heap using
newly defined HeapObject subclasses. To allocate these in the compiler,
we disable concurrent compilation for the --assert-types flag for now.

Fix two type errors that came up with the existing tests:
1. JSCreateKeyValueArray has type Array (i.e., a JSArray) instead of
   OtherObject.
2. OperationTyper::NumberToString(Type) can type the result as the
   HeapConstant Factory::zero_string(). However, NumberToString does
   not always produce this string. To avoid regressions, the CL keeps
   the HeapConstant type and changes the runtime and builtin code to
   always produce the canonical "0" string.

A few tests were failing because they check for truncations to work
and prevent deoptimization. However, AssertType nodes destroy all
truncations (which is by design), so these tests are incompatible
and now disabled for the assert_types variant.

Drive-by fix: a few minor Torque issues that came up.

Change-Id: If03b7851f7e6803a2f69edead4fa91231998f764
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3234717
Reviewed-by: Nico Hartmann <nicohartmann@chromium.org>
Reviewed-by: Omer Katz <omerkatz@chromium.org>
Commit-Queue: Tobias Tebbi <tebbi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#77565}
This commit is contained in:
Tobias Tebbi 2021-10-26 17:48:46 +00:00 committed by V8 LUCI CQ
parent 78387ca75d
commit 45227ffdb4
40 changed files with 521 additions and 185 deletions

View File

@ -836,6 +836,7 @@ filegroup(
"src/objects/template-objects.tq",
"src/objects/templates.tq",
"src/objects/torque-defined-classes.tq",
"src/objects/turbofan-types.tq",
"test/torque/test-torque.tq",
"third_party/v8/builtins/array-sort.tq",
] + select({
@ -1707,6 +1708,8 @@ filegroup(
"src/objects/transitions-inl.h",
"src/objects/transitions.cc",
"src/objects/transitions.h",
"src/objects/turbofan-types-inl.h",
"src/objects/turbofan-types.h",
"src/objects/type-hints.cc",
"src/objects/type-hints.h",
"src/objects/value-serializer.cc",

View File

@ -1784,6 +1784,7 @@ torque_files = [
"src/objects/template-objects.tq",
"src/objects/templates.tq",
"src/objects/torque-defined-classes.tq",
"src/objects/turbofan-types.tq",
"test/torque/test-torque.tq",
"third_party/v8/builtins/array-sort.tq",
]
@ -3253,6 +3254,8 @@ v8_header_set("v8_internal_headers") {
"src/objects/torque-defined-classes.h",
"src/objects/transitions-inl.h",
"src/objects/transitions.h",
"src/objects/turbofan-types-inl.h",
"src/objects/turbofan-types.h",
"src/objects/type-hints.h",
"src/objects/value-serializer.h",
"src/objects/visitors-inl.h",

View File

@ -1168,7 +1168,7 @@ extern macro Int32Constant(constexpr int31): int31;
extern macro Int32Constant(constexpr int32): int32;
extern macro Int64Constant(constexpr int64): int64;
extern macro Uint64Constant(constexpr uint64): uint64;
extern macro Float64Constant(constexpr int31): float64;
extern macro Float64Constant(constexpr int32): float64;
extern macro Float64Constant(constexpr float64): float64;
extern macro SmiConstant(constexpr int31): Smi;
extern macro SmiConstant(constexpr Smi): Smi;
@ -1799,7 +1799,6 @@ macro Float64IsSomeInfinity(value: float64): bool {
return value == (Convert<float64>(0) - V8_INFINITY);
}
@export
macro IsIntegerOrSomeInfinity(o: Object): bool {
typeswitch (o) {
case (Smi): {
@ -1817,20 +1816,6 @@ macro IsIntegerOrSomeInfinity(o: Object): bool {
}
}
builtin CheckNumberInRange(implicit context: Context)(
value: Number, min: Number, max: Number, nodeId: Smi): Undefined {
if (IsIntegerOrSomeInfinity(value) && min <= value && value <= max) {
return Undefined;
} else {
Print('Range type assertion failed! (value/min/max/nodeId)');
Print(value);
Print(min);
Print(max);
Print(nodeId);
unreachable;
}
}
// Assert that the objects satisfy SameValue or are both the hole.
builtin CheckSameObject(implicit context: Context)(
lhs: Object, rhs: Object): Undefined {

View File

@ -88,6 +88,9 @@ FromConstexpr<uintptr, constexpr int31>(i: constexpr int31): uintptr {
FromConstexpr<float64, constexpr int31>(i: constexpr int31): float64 {
return Float64Constant(i);
}
FromConstexpr<float64, constexpr int32>(i: constexpr int32): float64 {
return Float64Constant(i);
}
FromConstexpr<float64, constexpr float64>(i: constexpr float64): float64 {
return Float64Constant(i);
}

View File

@ -75,6 +75,9 @@ macro NumberToStringSmi(x: int32, radix: int32): String labels Slow {
if (!isNegative) {
// Fast case where the result is a one character string.
if (x < radix) {
if (x == 0) {
return ZeroStringConstant();
}
return StringFromSingleCharCode(ToCharCode(n));
}
} else {

View File

@ -20,6 +20,9 @@ AddTypeAssertionsReducer::~AddTypeAssertionsReducer() = default;
Reduction AddTypeAssertionsReducer::Reduce(Node* node) {
if (node->opcode() == IrOpcode::kAssertType ||
node->opcode() == IrOpcode::kAllocate ||
node->opcode() == IrOpcode::kObjectState ||
node->opcode() == IrOpcode::kObjectId ||
node->opcode() == IrOpcode::kPhi || !NodeProperties::IsTyped(node) ||
visited_.Get(node)) {
return NoChange();

View File

@ -30,6 +30,7 @@
#include "src/objects/heap-number.h"
#include "src/objects/oddball.h"
#include "src/objects/ordered-hash-table.h"
#include "src/objects/turbofan-types.h"
namespace v8 {
namespace internal {
@ -6193,10 +6194,17 @@ Node* EffectControlLinearizer::LowerAssertType(Node* node) {
Type type = OpParameter<Type>(node->op());
CHECK(type.CanBeAsserted());
Node* const input = node->InputAt(0);
Node* const min = __ NumberConstant(type.Min());
Node* const max = __ NumberConstant(type.Max());
CallBuiltin(Builtin::kCheckNumberInRange, node->op()->properties(), input,
min, max, __ SmiConstant(node->id()));
Node* allocated_type;
{
DCHECK(isolate()->CurrentLocalHeap()->is_main_thread());
base::Optional<UnparkedScope> unparked_scope;
if (isolate()->CurrentLocalHeap()->IsParked()) {
unparked_scope.emplace(isolate()->main_thread_local_isolate());
}
allocated_type = __ HeapConstant(type.AllocateOnHeap(factory()));
}
CallBuiltin(Builtin::kCheckTurbofanType, node->op()->properties(), input,
allocated_type, __ SmiConstant(node->id()));
return input;
}

View File

@ -1274,7 +1274,7 @@ Type Typer::Visitor::TypeJSCreateStringIterator(Node* node) {
}
Type Typer::Visitor::TypeJSCreateKeyValueArray(Node* node) {
return Type::OtherObject();
return Type::Array();
}
Type Typer::Visitor::TypeJSCreateObject(Node* node) {

View File

@ -10,6 +10,7 @@
#include "src/handles/handles-inl.h"
#include "src/objects/instance-type.h"
#include "src/objects/objects-inl.h"
#include "src/objects/turbofan-types.h"
#include "src/utils/ostreams.h"
namespace v8 {
@ -1142,6 +1143,40 @@ std::ostream& operator<<(std::ostream& os, Type type) {
return os;
}
Handle<TurbofanType> Type::AllocateOnHeap(Factory* factory) {
DCHECK(CanBeAsserted());
if (IsBitset()) {
return factory->NewTurbofanBitsetType(AsBitset(), AllocationType::kYoung);
} else if (IsUnion()) {
const UnionType* union_type = AsUnion();
Handle<TurbofanType> result = union_type->Get(0).AllocateOnHeap(factory);
for (int i = 1; i < union_type->Length(); ++i) {
result = factory->NewTurbofanUnionType(
result, union_type->Get(i).AllocateOnHeap(factory),
AllocationType::kYoung);
}
return result;
} else if (IsHeapConstant()) {
return factory->NewTurbofanHeapConstantType(AsHeapConstant()->Value(),
AllocationType::kYoung);
} else if (IsOtherNumberConstant()) {
return factory->NewTurbofanOtherNumberConstantType(
AsOtherNumberConstant()->Value(), AllocationType::kYoung);
} else if (IsRange()) {
return factory->NewTurbofanRangeType(AsRange()->Min(), AsRange()->Max(),
AllocationType::kYoung);
} else {
// Other types are not supported for type assertions.
UNREACHABLE();
}
}
#define VERIFY_TORQUE_BITSET_AGREEMENT(Name, _) \
STATIC_ASSERT(BitsetType::k##Name == TurbofanTypeBits::k##Name);
INTERNAL_BITSET_TYPE_LIST(VERIFY_TORQUE_BITSET_AGREEMENT)
PROPER_ATOMIC_BITSET_TYPE_LIST(VERIFY_TORQUE_BITSET_AGREEMENT)
#undef VERIFY_TORQUE_BITSET_AGREEMENT
} // namespace compiler
} // namespace internal
} // namespace v8

View File

@ -102,8 +102,7 @@ namespace compiler {
V(OtherNumber, 1u << 4) \
V(OtherString, 1u << 5) \
#define PROPER_BITSET_TYPE_LIST(V) \
V(None, 0u) \
#define PROPER_ATOMIC_BITSET_TYPE_LIST(V) \
V(Negative31, 1u << 6) \
V(Null, 1u << 7) \
V(Undefined, 1u << 8) \
@ -131,7 +130,10 @@ namespace compiler {
/* TODO(v8:10391): Remove this type once all ExternalPointer usages are */ \
/* sandbox-ready. */ \
V(SandboxedExternalPointer, 1u << 31) \
\
#define PROPER_BITSET_TYPE_LIST(V) \
V(None, 0u) \
PROPER_ATOMIC_BITSET_TYPE_LIST(V) \
V(Signed31, kUnsigned30 | kNegative31) \
V(Signed32, kSigned31 | kOtherUnsigned31 | \
kOtherSigned32) \
@ -416,9 +418,8 @@ class V8_EXPORT_PRIVATE Type {
(Is(Type::PlainNumber()) && Min() == Max());
}
bool CanBeAsserted() const {
return IsRange() || (Is(Type::Integral32()) && !IsNone());
}
bool CanBeAsserted() const { return Is(Type::NonInternal()); }
Handle<TurbofanType> AllocateOnHeap(Factory* factory);
const HeapConstantType* AsHeapConstant() const;
const OtherNumberConstantType* AsOtherNumberConstant() const;

View File

@ -693,7 +693,7 @@ void Verifier::Visitor::Check(Node* node, const AllNodes& all) {
CheckTypeIs(node, Type::OtherObject());
break;
case IrOpcode::kJSCreateKeyValueArray:
CheckTypeIs(node, Type::OtherObject());
CheckTypeIs(node, Type::Array());
break;
case IrOpcode::kJSCreateObject:
CheckTypeIs(node, Type::OtherObject());

View File

@ -33,6 +33,7 @@
#include "src/objects/js-array-inl.h"
#include "src/objects/objects-inl.h"
#include "src/objects/objects.h"
#include "src/objects/turbofan-types-inl.h"
#include "src/roots/roots.h"
#ifdef V8_INTL_SUPPORT
#include "src/objects/js-break-iterator-inl.h"

View File

@ -549,6 +549,9 @@ DEFINE_NEG_IMPLICATION(jitless, interpreted_frames_native_stack)
DEFINE_BOOL(assert_types, false,
"generate runtime type assertions to test the typer")
// TODO(tebbi): Support allocating types from background thread.
DEFINE_NEG_IMPLICATION(assert_types, concurrent_recompilation)
DEFINE_NEG_IMPLICATION(assert_types, concurrent_inlining)
DEFINE_BOOL(trace_compilation_dependencies, false, "trace code dependencies")
// Depend on --trace-deopt-verbose for reporting dependency invalidations.

View File

@ -3119,10 +3119,15 @@ Handle<String> Factory::HeapNumberToString(Handle<HeapNumber> number,
if (!cached->IsUndefined(isolate())) return Handle<String>::cast(cached);
}
char arr[kNumberToStringBufferSize];
base::Vector<char> buffer(arr, arraysize(arr));
const char* string = DoubleToCString(value, buffer);
Handle<String> result = CharToString(this, string, mode);
Handle<String> result;
if (value == 0) {
result = zero_string();
} else {
char arr[kNumberToStringBufferSize];
base::Vector<char> buffer(arr, arraysize(arr));
const char* string = DoubleToCString(value, buffer);
result = CharToString(this, string, mode);
}
if (mode != NumberCacheMode::kIgnore) {
NumberToStringCacheSet(number, hash, result);
}
@ -3136,10 +3141,15 @@ inline Handle<String> Factory::SmiToString(Smi number, NumberCacheMode mode) {
if (!cached->IsUndefined(isolate())) return Handle<String>::cast(cached);
}
char arr[kNumberToStringBufferSize];
base::Vector<char> buffer(arr, arraysize(arr));
const char* string = IntToCString(number.value(), buffer);
Handle<String> result = CharToString(this, string, mode);
Handle<String> result;
if (number == Smi::zero()) {
result = zero_string();
} else {
char arr[kNumberToStringBufferSize];
base::Vector<char> buffer(arr, arraysize(arr));
const char* string = IntToCString(number.value(), buffer);
result = CharToString(this, string, mode);
}
if (mode != NumberCacheMode::kIgnore) {
NumberToStringCacheSet(handle(number, isolate()), hash, result);
}

View File

@ -42,6 +42,7 @@
#include "src/objects/synthetic-module.h"
#include "src/objects/template-objects-inl.h"
#include "src/objects/torque-defined-classes-inl.h"
#include "src/objects/turbofan-types.h"
#include "src/regexp/regexp.h"
#if V8_ENABLE_WEBASSEMBLY

View File

@ -52,6 +52,10 @@ extern class Map extends HeapObject {
}
}
macro IsUndetectable(): bool {
return this.bit_field.is_undetectable;
}
instance_size_in_words: uint8;
inobject_properties_start_or_constructor_function_index: uint8;
used_or_unused_instance_size_in_words: uint8;

View File

@ -24,6 +24,7 @@
#include "src/objects/synthetic-module.h"
#include "src/objects/torque-defined-classes-inl.h"
#include "src/objects/transitions.h"
#include "src/objects/turbofan-types-inl.h"
#if V8_ENABLE_WEBASSEMBLY
#include "src/wasm/wasm-objects-inl.h"

View File

@ -12,6 +12,10 @@ extern class String extends Name {
Convert<uint16>(this.map.instance_type));
}
macro IsNotInternalized(): bool {
return this.StringInstanceType().is_not_internalized;
}
const length: int32;
}

View File

@ -0,0 +1,24 @@
// Copyright 2021 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_OBJECTS_TURBOFAN_TYPES_INL_H_
#define V8_OBJECTS_TURBOFAN_TYPES_INL_H_
#include "src/heap/heap-write-barrier.h"
#include "src/objects/turbofan-types.h"
// Has to be the last include (doesn't have include guards):
#include "src/objects/object-macros.h"
namespace v8 {
namespace internal {
#include "torque-generated/src/objects/turbofan-types-tq-inl.inc"
} // namespace internal
} // namespace v8
#include "src/objects/object-macros-undef.h"
#endif // V8_OBJECTS_TURBOFAN_TYPES_INL_H_

View File

@ -0,0 +1,30 @@
// Copyright 2021 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_OBJECTS_TURBOFAN_TYPES_H_
#define V8_OBJECTS_TURBOFAN_TYPES_H_
#include "src/common/globals.h"
#include "src/objects/heap-object.h"
#include "torque-generated/bit-fields.h"
// Has to be the last include (doesn't have include guards):
#include "src/objects/object-macros.h"
namespace v8 {
namespace internal {
#include "torque-generated/src/objects/turbofan-types-tq.inc"
class TurbofanTypeBits {
public:
DEFINE_TORQUE_GENERATED_TURBOFAN_TYPE_BITS()
};
} // namespace internal
} // namespace v8
#include "src/objects/object-macros-undef.h"
#endif // V8_OBJECTS_TURBOFAN_TYPES_H_

View File

@ -0,0 +1,204 @@
// Copyright 2021 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/objects/turbofan-types.h"
@export
@abstract
class TurbofanType extends HeapObject {
}
bitfield struct TurbofanTypeBits extends uint32 {
_unused_padding_field_1: bool: 1 bit;
other_unsigned31: bool: 1 bit;
other_unsigned32: bool: 1 bit;
other_signed32: bool: 1 bit;
other_number: bool: 1 bit;
other_string: bool: 1 bit;
negative31: bool: 1 bit;
null: bool: 1 bit;
undefined: bool: 1 bit;
boolean: bool: 1 bit;
unsigned30: bool: 1 bit;
minus_zero: bool: 1 bit;
naN: bool: 1 bit;
symbol: bool: 1 bit;
internalized_string: bool: 1 bit;
_unused_padding_field_2: bool: 1 bit;
other_callable: bool: 1 bit;
other_object: bool: 1 bit;
other_undetectable: bool: 1 bit;
callable_proxy: bool: 1 bit;
other_proxy: bool: 1 bit;
function: bool: 1 bit;
bound_function: bool: 1 bit;
hole: bool: 1 bit;
other_internal: bool: 1 bit;
external_pointer: bool: 1 bit;
array: bool: 1 bit;
unsigned_big_int_63: bool: 1 bit;
other_unsigned_big_int_64: bool: 1 bit;
negative_big_int_63: bool: 1 bit;
other_big_int: bool: 1 bit;
sandboxed_external_pointer: bool: 1 bit;
}
@export
class TurbofanBitsetType extends TurbofanType {
bitset: TurbofanTypeBits;
}
@export
class TurbofanUnionType extends TurbofanType {
type1: TurbofanType;
type2: TurbofanType;
}
@export
class TurbofanRangeType extends TurbofanType {
min: float64;
max: float64;
}
@export
class TurbofanHeapConstantType extends TurbofanType {
constant: HeapObject;
}
@export
class TurbofanOtherNumberConstantType extends TurbofanType {
constant: float64;
}
macro IsMinusZero(x: float64): bool {
return x == 0 && 1 / x < 0;
}
macro TestTurbofanBitsetType(value: Object, bitset: TurbofanTypeBits): bool {
typeswitch (value) {
case (value: Number): {
const valueF = Convert<float64>(value);
if (IsInteger(value)) {
if (IsMinusZero(valueF)) {
return bitset.minus_zero;
} else if (valueF < Convert<float64>(-0x80000000)) {
return bitset.other_number;
} else if (valueF < -0x40000000) {
return bitset.other_signed32;
} else if (valueF < 0) {
return bitset.negative31;
} else if (valueF < Convert<float64>(0x40000000)) {
return bitset.unsigned30;
} else if (valueF < 0x80000000) {
return bitset.other_unsigned31;
} else if (valueF <= 0xffffffff) {
return bitset.other_unsigned32;
} else {
return bitset.other_number;
}
} else if (Float64IsNaN(valueF)) {
return bitset.naN;
} else {
return bitset.other_number;
}
}
case (Null): {
return bitset.null;
}
case (Undefined): {
return bitset.undefined;
}
case (Boolean): {
return bitset.boolean;
}
case (Symbol): {
return bitset.symbol;
}
case (s: String): {
if (s.IsNotInternalized()) {
return bitset.other_string;
} else {
return bitset.internalized_string;
}
}
case (proxy: JSProxy): {
return Is<Callable>(proxy) ? bitset.callable_proxy : bitset.other_proxy;
}
case (JSFunction): {
return bitset.function;
}
case (JSBoundFunction): {
return bitset.bound_function;
}
case (TheHole): {
return bitset.hole;
}
case (JSArray): {
return bitset.array;
}
case (BigInt): {
// TODO (tebbi): Distinguish different BigInt types.
return bitset.unsigned_big_int_63 | bitset.other_unsigned_big_int_64 |
bitset.negative_big_int_63 | bitset.other_big_int;
}
case (Callable): {
return bitset.other_callable;
}
case (object: JSObject): {
if (object.map.IsUndetectable()) {
return bitset.other_undetectable;
} else {
return bitset.other_object;
}
}
case (Object): {
return false;
}
}
}
builtin TestTurbofanType(implicit context: Context)(
value: Object, expectedType: TurbofanType): Boolean {
typeswitch (expectedType) {
case (t: TurbofanBitsetType): {
return Convert<Boolean>(TestTurbofanBitsetType(value, t.bitset));
}
case (t: TurbofanUnionType): {
return Convert<Boolean>(
TestTurbofanType(value, t.type1) == True ||
TestTurbofanType(value, t.type2) == True);
}
case (t: TurbofanRangeType): {
const value = Cast<Number>(value) otherwise return False;
if (!IsIntegerOrSomeInfinity(value)) return False;
const valueF = Convert<float64>(value);
return Convert<Boolean>(
!IsMinusZero(valueF) && t.min <= valueF && valueF <= t.max);
}
case (t: TurbofanHeapConstantType): {
return Convert<Boolean>(TaggedEqual(value, t.constant));
}
case (t: TurbofanOtherNumberConstantType): {
const value =
Convert<float64>(Cast<Number>(value) otherwise return False);
return Convert<Boolean>(value == t.constant);
}
case (TurbofanType): {
unreachable;
}
}
}
builtin CheckTurbofanType(implicit context: Context)(
value: Object, expectedType: TurbofanType, nodeId: Smi): Undefined {
if (TestTurbofanType(value, expectedType) == True) {
return Undefined;
}
Print('Type assertion failed! (value/expectedType/nodeId)');
Print(value);
Print(expectedType);
Print(nodeId);
unreachable;
}

View File

@ -202,9 +202,12 @@ Macro* Declarations::DeclareMacro(
base::Optional<std::string> external_assembler_name,
const Signature& signature, base::Optional<Statement*> body,
base::Optional<std::string> op, bool is_user_defined) {
if (TryLookupMacro(name, signature.GetExplicitTypes())) {
ReportError("cannot redeclare macro ", name,
" with identical explicit parameters");
if (Macro* existing_macro =
TryLookupMacro(name, signature.GetExplicitTypes())) {
if (existing_macro->ParentScope() == CurrentScope::Get()) {
ReportError("cannot redeclare macro ", name,
" with identical explicit parameters");
}
}
Macro* macro;
if (external_assembler_name) {

View File

@ -4205,13 +4205,16 @@ void CppClassGenerator::GenerateClass() {
}
void CppClassGenerator::GenerateClassCasts() {
cpp::Function f("cast");
cpp::Class owner({cpp::TemplateParameter("D"), cpp::TemplateParameter("P")},
gen_name_);
cpp::Function f(&owner, "cast");
f.SetFlags(cpp::Function::kV8Inline | cpp::Function::kStatic);
f.SetReturnType("D");
f.AddParameter("Object", "object");
// V8_INLINE static D cast(Object)
f.PrintInlineDefinition(hdr_, [](std::ostream& stream) {
f.PrintDeclaration(hdr_);
f.PrintDefinition(inl_, [](std::ostream& stream) {
stream << " return D(object.ptr());\n";
});
// V8_INLINE static D unchecked_cast(Object)
@ -4731,9 +4734,10 @@ void ImplementationVisitor::GenerateClassDefinitions(
factory_impl << " HeapObject result =\n";
factory_impl << " factory()->AllocateRawWithImmortalMap(size, "
"allocation_type, map);\n";
factory_impl << " WriteBarrierMode write_barrier_mode =\n"
<< " allocation_type == AllocationType::kYoung\n"
<< " ? SKIP_WRITE_BARRIER : UPDATE_WRITE_BARRIER;\n";
factory_impl << " WriteBarrierMode write_barrier_mode =\n"
<< " allocation_type == AllocationType::kYoung\n"
<< " ? SKIP_WRITE_BARRIER : UPDATE_WRITE_BARRIER;\n"
<< " USE(write_barrier_mode);\n";
factory_impl << " " << type->HandlifiedCppTypeName()
<< " result_handle(" << type->name()
<< "::cast(result), factory()->isolate());\n";
@ -5280,32 +5284,9 @@ void ImplementationVisitor::GenerateExportedMacrosAssembler(
h_contents << "#include \"src/compiler/code-assembler.h\"\n";
h_contents << "#include \"src/execution/frames.h\"\n";
h_contents << "#include \"torque-generated/csa-types.h\"\n";
cc_contents << "#include \"src/objects/fixed-array-inl.h\"\n";
cc_contents << "#include \"src/objects/free-space.h\"\n";
cc_contents << "#include \"src/objects/js-regexp-string-iterator.h\"\n";
cc_contents << "#include \"src/objects/js-temporal-objects.h\"\n";
cc_contents << "#include \"src/objects/js-weak-refs.h\"\n";
cc_contents << "#include \"src/objects/ordered-hash-table.h\"\n";
cc_contents << "#include \"src/objects/property-descriptor-object.h\"\n";
cc_contents << "#include \"src/objects/stack-frame-info.h\"\n";
cc_contents << "#include \"src/objects/swiss-name-dictionary.h\"\n";
cc_contents << "#include \"src/objects/synthetic-module.h\"\n";
cc_contents << "#include \"src/objects/template-objects.h\"\n";
cc_contents << "#include \"src/objects/torque-defined-classes.h\"\n";
{
IfDefScope intl_scope(cc_contents, "V8_INTL_SUPPORT");
cc_contents << "#include \"src/objects/js-break-iterator.h\"\n";
cc_contents << "#include \"src/objects/js-collator.h\"\n";
cc_contents << "#include \"src/objects/js-date-time-format.h\"\n";
cc_contents << "#include \"src/objects/js-display-names.h\"\n";
cc_contents << "#include \"src/objects/js-list-format.h\"\n";
cc_contents << "#include \"src/objects/js-locale.h\"\n";
cc_contents << "#include \"src/objects/js-number-format.h\"\n";
cc_contents << "#include \"src/objects/js-plural-rules.h\"\n";
cc_contents << "#include \"src/objects/js-relative-time-format.h\"\n";
cc_contents << "#include \"src/objects/js-segment-iterator.h\"\n";
cc_contents << "#include \"src/objects/js-segmenter.h\"\n";
cc_contents << "#include \"src/objects/js-segments.h\"\n";
for (const std::string& include_path : GlobalContext::CppIncludes()) {
cc_contents << "#include " << StringLiteralQuote(include_path) << "\n";
}
cc_contents << "#include \"torque-generated/" << file_name << ".h\"\n";

View File

@ -1137,8 +1137,8 @@ std::tuple<size_t, std::string> Field::GetFieldSizeInformation() const {
return *optional;
}
Error("fields of type ", *name_and_type.type, " are not (yet) supported")
.Position(pos);
return std::make_tuple(0, "#no size");
.Position(pos)
.Throw();
}
size_t Type::AlignmentLog2() const {

View File

@ -1241,4 +1241,18 @@
'test-streaming-compilation/AsyncTestIncrementalCaching': [SKIP],
'test-streaming-compilation/SingleThreadedTestIncrementalCaching': [SKIP],
}],
##############################################################################
['variant == assert_types', {
# Type assertions add strong pointers, breaking these test.
'test-heap/ObjectsInOptimizedCodeAreWeak': [SKIP],
'test-heap/ObjectsInEagerlyDeoptimizedCodeAreWeak': [SKIP],
'test-heap/NewSpaceObjectsInOptimizedCode': [SKIP],
'test-heap/LeakNativeContextViaMapKeyed': [SKIP],
'test-heap/CellsInOptimizedCodeAreWeak': [SKIP],
# Type assertions only work without concurrent compilation, but this test
# always triggers a concurrent compilation.
'test-concurrent-shared-function-info/TestConcurrentSharedFunctionInfo': [SKIP],
}], # variant == assert_types
]

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --allow-natives-syntax
// Flags: --allow-natives-syntax --no-assert-types
// Check that the branch elimination replace the redundant branch condition with
// a phi node, and then the branch is folded in EffectControlLinearizationPhase.

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --allow-natives-syntax --opt
// Flags: --allow-natives-syntax --opt --no-assert-types
// Test that NumberCeil propagates kIdentifyZeros truncations.
(function() {

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --allow-natives-syntax --opt --turbo-inlining
// Flags: --allow-natives-syntax --opt --turbo-inlining --no-assert-types
// Test that SpeculativeNumberEqual[SignedSmall] properly passes the
// kIdentifyZeros truncation.

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --allow-natives-syntax --opt
// Flags: --allow-natives-syntax --opt --no-assert-types
// Test that NumberFloor propagates kIdentifyZeros truncations.
(function() {

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --allow-natives-syntax --opt
// Flags: --allow-natives-syntax --opt --no-assert-types
// Test that NumberMax properly passes the kIdentifyZeros truncation.
(function() {

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --allow-natives-syntax --opt
// Flags: --allow-natives-syntax --opt --no-assert-types
// Test that NumberMin properly passes the kIdentifyZeros truncation.
(function() {

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --allow-natives-syntax --opt --noalways-opt
// Flags: --allow-natives-syntax --opt --no-always-opt --no-assert-types
// Test that NumberModulus passes kIdentifiesZero to the

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --allow-natives-syntax --opt
// Flags: --allow-natives-syntax --opt --no-assert-types
// Test that NumberRound propagates kIdentifyZeros truncations.
(function() {

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --allow-natives-syntax --opt
// Flags: --allow-natives-syntax --opt --no-assert-types
// Test that NumberTrunc propagates kIdentifyZeros truncations.
(function() {

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --allow-natives-syntax --no-stress-opt --no-always-opt
// Flags: --allow-natives-syntax --no-stress-opt --no-always-opt --no-concurrent-recompilation
function foo(x) {
return %VerifyType(x * x);

View File

@ -25,7 +25,7 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// Flags: --allow-natives-syntax --noalways-opt --opt
// Flags: --allow-natives-syntax --noalways-opt --opt --no-assert-types
// It's nice to run this in other browsers too.
var standalone = false;

View File

@ -25,7 +25,7 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// Flags: --allow-natives-syntax --opt --no-always-opt
// Flags: --allow-natives-syntax --opt --no-always-opt --no-assert-types
function mul(x, y) {
return (x * y) | 0;

View File

@ -25,7 +25,7 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// Flags: --allow-natives-syntax --opt --no-always-opt
// Flags: --allow-natives-syntax --opt --no-always-opt --no-assert-types
function divp4(x) {
return x / 4;

View File

@ -62,7 +62,8 @@ INCOMPATIBLE_FLAGS_PER_VARIANT = {
"slow_path": ["--no-force-slow-path"],
"stress_concurrent_allocation": ["--single-threaded-gc", "--predictable"],
"stress_concurrent_inlining": ["--single-threaded", "--predictable",
"--turboprop", "--lazy-feedback-allocation"],
"--turboprop", "--lazy-feedback-allocation",
"--assert-types"],
"turboprop": ["--stress_concurrent_inlining"],
# The fast API tests initialize an embedder object that never needs to be
# serialized to the snapshot, so we don't have a
@ -81,6 +82,7 @@ INCOMPATIBLE_FLAGS_PER_VARIANT = {
# There is a negative implication: --perf-prof disables
# --wasm-write-protect-code-memory.
"wasm_write_protect_code": ["--perf-prof"],
"assert_types": ["--concurrent-recompilation", "--concurrent-inlining", "--stress_concurrent_inlining", "--no-assert-types"],
}
# Flags that lead to a contradiction under certain build variables.

View File

@ -109,53 +109,58 @@ INSTANCE_TYPES = {
145: "NATIVE_CONTEXT_TYPE",
146: "SCRIPT_CONTEXT_TYPE",
147: "WITH_CONTEXT_TYPE",
148: "EXPORTED_SUB_CLASS_BASE_TYPE",
149: "EXPORTED_SUB_CLASS_TYPE",
150: "EXPORTED_SUB_CLASS2_TYPE",
151: "SMALL_ORDERED_HASH_MAP_TYPE",
152: "SMALL_ORDERED_HASH_SET_TYPE",
153: "SMALL_ORDERED_NAME_DICTIONARY_TYPE",
154: "DESCRIPTOR_ARRAY_TYPE",
155: "STRONG_DESCRIPTOR_ARRAY_TYPE",
156: "SOURCE_TEXT_MODULE_TYPE",
157: "SYNTHETIC_MODULE_TYPE",
158: "UNCOMPILED_DATA_WITH_PREPARSE_DATA_TYPE",
159: "UNCOMPILED_DATA_WITHOUT_PREPARSE_DATA_TYPE",
160: "WEAK_FIXED_ARRAY_TYPE",
161: "TRANSITION_ARRAY_TYPE",
162: "CALL_REF_DATA_TYPE",
163: "CELL_TYPE",
164: "CODE_TYPE",
165: "CODE_DATA_CONTAINER_TYPE",
166: "COVERAGE_INFO_TYPE",
167: "EMBEDDER_DATA_ARRAY_TYPE",
168: "FEEDBACK_METADATA_TYPE",
169: "FEEDBACK_VECTOR_TYPE",
170: "FILLER_TYPE",
171: "FREE_SPACE_TYPE",
172: "INTERNAL_CLASS_TYPE",
173: "INTERNAL_CLASS_WITH_STRUCT_ELEMENTS_TYPE",
174: "MAP_TYPE",
175: "MEGA_DOM_HANDLER_TYPE",
176: "ON_HEAP_BASIC_BLOCK_PROFILER_DATA_TYPE",
177: "PREPARSE_DATA_TYPE",
178: "PROPERTY_ARRAY_TYPE",
179: "PROPERTY_CELL_TYPE",
180: "SCOPE_INFO_TYPE",
181: "SHARED_FUNCTION_INFO_TYPE",
182: "SMI_BOX_TYPE",
183: "SMI_PAIR_TYPE",
184: "SORT_STATE_TYPE",
185: "SWISS_NAME_DICTIONARY_TYPE",
186: "WEAK_ARRAY_LIST_TYPE",
187: "WEAK_CELL_TYPE",
188: "WASM_ARRAY_TYPE",
189: "WASM_STRUCT_TYPE",
190: "JS_PROXY_TYPE",
148: "TURBOFAN_BITSET_TYPE_TYPE",
149: "TURBOFAN_HEAP_CONSTANT_TYPE_TYPE",
150: "TURBOFAN_OTHER_NUMBER_CONSTANT_TYPE_TYPE",
151: "TURBOFAN_RANGE_TYPE_TYPE",
152: "TURBOFAN_UNION_TYPE_TYPE",
153: "EXPORTED_SUB_CLASS_BASE_TYPE",
154: "EXPORTED_SUB_CLASS_TYPE",
155: "EXPORTED_SUB_CLASS2_TYPE",
156: "SMALL_ORDERED_HASH_MAP_TYPE",
157: "SMALL_ORDERED_HASH_SET_TYPE",
158: "SMALL_ORDERED_NAME_DICTIONARY_TYPE",
159: "DESCRIPTOR_ARRAY_TYPE",
160: "STRONG_DESCRIPTOR_ARRAY_TYPE",
161: "SOURCE_TEXT_MODULE_TYPE",
162: "SYNTHETIC_MODULE_TYPE",
163: "UNCOMPILED_DATA_WITH_PREPARSE_DATA_TYPE",
164: "UNCOMPILED_DATA_WITHOUT_PREPARSE_DATA_TYPE",
165: "WEAK_FIXED_ARRAY_TYPE",
166: "TRANSITION_ARRAY_TYPE",
167: "CALL_REF_DATA_TYPE",
168: "CELL_TYPE",
169: "CODE_TYPE",
170: "CODE_DATA_CONTAINER_TYPE",
171: "COVERAGE_INFO_TYPE",
172: "EMBEDDER_DATA_ARRAY_TYPE",
173: "FEEDBACK_METADATA_TYPE",
174: "FEEDBACK_VECTOR_TYPE",
175: "FILLER_TYPE",
176: "FREE_SPACE_TYPE",
177: "INTERNAL_CLASS_TYPE",
178: "INTERNAL_CLASS_WITH_STRUCT_ELEMENTS_TYPE",
179: "MAP_TYPE",
180: "MEGA_DOM_HANDLER_TYPE",
181: "ON_HEAP_BASIC_BLOCK_PROFILER_DATA_TYPE",
182: "PREPARSE_DATA_TYPE",
183: "PROPERTY_ARRAY_TYPE",
184: "PROPERTY_CELL_TYPE",
185: "SCOPE_INFO_TYPE",
186: "SHARED_FUNCTION_INFO_TYPE",
187: "SMI_BOX_TYPE",
188: "SMI_PAIR_TYPE",
189: "SORT_STATE_TYPE",
190: "SWISS_NAME_DICTIONARY_TYPE",
191: "WEAK_ARRAY_LIST_TYPE",
192: "WEAK_CELL_TYPE",
193: "WASM_ARRAY_TYPE",
194: "WASM_STRUCT_TYPE",
195: "JS_PROXY_TYPE",
1057: "JS_OBJECT_TYPE",
191: "JS_GLOBAL_OBJECT_TYPE",
192: "JS_GLOBAL_PROXY_TYPE",
193: "JS_MODULE_NAMESPACE_TYPE",
196: "JS_GLOBAL_OBJECT_TYPE",
197: "JS_GLOBAL_PROXY_TYPE",
198: "JS_MODULE_NAMESPACE_TYPE",
1040: "JS_SPECIAL_API_OBJECT_TYPE",
1041: "JS_PRIMITIVE_WRAPPER_TYPE",
1058: "JS_API_OBJECT_TYPE",
@ -249,16 +254,16 @@ INSTANCE_TYPES = {
# List of known V8 maps.
KNOWN_MAPS = {
("read_only_space", 0x02119): (174, "MetaMap"),
("read_only_space", 0x02119): (179, "MetaMap"),
("read_only_space", 0x02141): (67, "NullMap"),
("read_only_space", 0x02169): (155, "StrongDescriptorArrayMap"),
("read_only_space", 0x02191): (160, "WeakFixedArrayMap"),
("read_only_space", 0x02169): (160, "StrongDescriptorArrayMap"),
("read_only_space", 0x02191): (165, "WeakFixedArrayMap"),
("read_only_space", 0x021d1): (100, "EnumCacheMap"),
("read_only_space", 0x02205): (120, "FixedArrayMap"),
("read_only_space", 0x02251): (8, "OneByteInternalizedStringMap"),
("read_only_space", 0x0229d): (171, "FreeSpaceMap"),
("read_only_space", 0x022c5): (170, "OnePointerFillerMap"),
("read_only_space", 0x022ed): (170, "TwoPointerFillerMap"),
("read_only_space", 0x0229d): (176, "FreeSpaceMap"),
("read_only_space", 0x022c5): (175, "OnePointerFillerMap"),
("read_only_space", 0x022ed): (175, "TwoPointerFillerMap"),
("read_only_space", 0x02315): (67, "UninitializedMap"),
("read_only_space", 0x0238d): (67, "UndefinedMap"),
("read_only_space", 0x023d1): (66, "HeapNumberMap"),
@ -269,15 +274,15 @@ KNOWN_MAPS = {
("read_only_space", 0x02559): (121, "HashTableMap"),
("read_only_space", 0x02581): (64, "SymbolMap"),
("read_only_space", 0x025a9): (40, "OneByteStringMap"),
("read_only_space", 0x025d1): (180, "ScopeInfoMap"),
("read_only_space", 0x025f9): (181, "SharedFunctionInfoMap"),
("read_only_space", 0x02621): (164, "CodeMap"),
("read_only_space", 0x02649): (163, "CellMap"),
("read_only_space", 0x02671): (179, "GlobalPropertyCellMap"),
("read_only_space", 0x025d1): (185, "ScopeInfoMap"),
("read_only_space", 0x025f9): (186, "SharedFunctionInfoMap"),
("read_only_space", 0x02621): (169, "CodeMap"),
("read_only_space", 0x02649): (168, "CellMap"),
("read_only_space", 0x02671): (184, "GlobalPropertyCellMap"),
("read_only_space", 0x02699): (70, "ForeignMap"),
("read_only_space", 0x026c1): (161, "TransitionArrayMap"),
("read_only_space", 0x026c1): (166, "TransitionArrayMap"),
("read_only_space", 0x026e9): (45, "ThinOneByteStringMap"),
("read_only_space", 0x02711): (169, "FeedbackVectorMap"),
("read_only_space", 0x02711): (174, "FeedbackVectorMap"),
("read_only_space", 0x02749): (67, "ArgumentsMarkerMap"),
("read_only_space", 0x027a9): (67, "ExceptionMap"),
("read_only_space", 0x02805): (67, "TerminationExceptionMap"),
@ -285,17 +290,17 @@ KNOWN_MAPS = {
("read_only_space", 0x028cd): (67, "StaleRegisterMap"),
("read_only_space", 0x0292d): (132, "ScriptContextTableMap"),
("read_only_space", 0x02955): (130, "ClosureFeedbackCellArrayMap"),
("read_only_space", 0x0297d): (168, "FeedbackMetadataArrayMap"),
("read_only_space", 0x0297d): (173, "FeedbackMetadataArrayMap"),
("read_only_space", 0x029a5): (120, "ArrayListMap"),
("read_only_space", 0x029cd): (65, "BigIntMap"),
("read_only_space", 0x029f5): (131, "ObjectBoilerplateDescriptionMap"),
("read_only_space", 0x02a1d): (134, "BytecodeArrayMap"),
("read_only_space", 0x02a45): (165, "CodeDataContainerMap"),
("read_only_space", 0x02a6d): (166, "CoverageInfoMap"),
("read_only_space", 0x02a45): (170, "CodeDataContainerMap"),
("read_only_space", 0x02a6d): (171, "CoverageInfoMap"),
("read_only_space", 0x02a95): (135, "FixedDoubleArrayMap"),
("read_only_space", 0x02abd): (123, "GlobalDictionaryMap"),
("read_only_space", 0x02ae5): (101, "ManyClosuresCellMap"),
("read_only_space", 0x02b0d): (175, "MegaDomHandlerMap"),
("read_only_space", 0x02b0d): (180, "MegaDomHandlerMap"),
("read_only_space", 0x02b35): (120, "ModuleInfoMap"),
("read_only_space", 0x02b5d): (124, "NameDictionaryMap"),
("read_only_space", 0x02b85): (101, "NoClosuresCellMap"),
@ -304,26 +309,26 @@ KNOWN_MAPS = {
("read_only_space", 0x02bfd): (126, "OrderedHashMapMap"),
("read_only_space", 0x02c25): (127, "OrderedHashSetMap"),
("read_only_space", 0x02c4d): (128, "OrderedNameDictionaryMap"),
("read_only_space", 0x02c75): (177, "PreparseDataMap"),
("read_only_space", 0x02c9d): (178, "PropertyArrayMap"),
("read_only_space", 0x02c75): (182, "PreparseDataMap"),
("read_only_space", 0x02c9d): (183, "PropertyArrayMap"),
("read_only_space", 0x02cc5): (97, "SideEffectCallHandlerInfoMap"),
("read_only_space", 0x02ced): (97, "SideEffectFreeCallHandlerInfoMap"),
("read_only_space", 0x02d15): (97, "NextCallSideEffectFreeCallHandlerInfoMap"),
("read_only_space", 0x02d3d): (129, "SimpleNumberDictionaryMap"),
("read_only_space", 0x02d65): (151, "SmallOrderedHashMapMap"),
("read_only_space", 0x02d8d): (152, "SmallOrderedHashSetMap"),
("read_only_space", 0x02db5): (153, "SmallOrderedNameDictionaryMap"),
("read_only_space", 0x02ddd): (156, "SourceTextModuleMap"),
("read_only_space", 0x02e05): (185, "SwissNameDictionaryMap"),
("read_only_space", 0x02e2d): (157, "SyntheticModuleMap"),
("read_only_space", 0x02d65): (156, "SmallOrderedHashMapMap"),
("read_only_space", 0x02d8d): (157, "SmallOrderedHashSetMap"),
("read_only_space", 0x02db5): (158, "SmallOrderedNameDictionaryMap"),
("read_only_space", 0x02ddd): (161, "SourceTextModuleMap"),
("read_only_space", 0x02e05): (190, "SwissNameDictionaryMap"),
("read_only_space", 0x02e2d): (162, "SyntheticModuleMap"),
("read_only_space", 0x02e55): (72, "WasmCapiFunctionDataMap"),
("read_only_space", 0x02e7d): (73, "WasmExportedFunctionDataMap"),
("read_only_space", 0x02ea5): (74, "WasmJSFunctionDataMap"),
("read_only_space", 0x02ecd): (75, "WasmTypeInfoMap"),
("read_only_space", 0x02ef5): (186, "WeakArrayListMap"),
("read_only_space", 0x02ef5): (191, "WeakArrayListMap"),
("read_only_space", 0x02f1d): (122, "EphemeronHashTableMap"),
("read_only_space", 0x02f45): (167, "EmbedderDataArrayMap"),
("read_only_space", 0x02f6d): (187, "WeakCellMap"),
("read_only_space", 0x02f45): (172, "EmbedderDataArrayMap"),
("read_only_space", 0x02f6d): (192, "WeakCellMap"),
("read_only_space", 0x02f95): (32, "StringMap"),
("read_only_space", 0x02fbd): (41, "ConsOneByteStringMap"),
("read_only_space", 0x02fe5): (33, "ConsStringMap"),
@ -380,31 +385,36 @@ KNOWN_MAPS = {
("read_only_space", 0x0613d): (118, "WasmExceptionTagMap"),
("read_only_space", 0x06165): (119, "WasmIndirectFunctionTableMap"),
("read_only_space", 0x0618d): (137, "SloppyArgumentsElementsMap"),
("read_only_space", 0x061b5): (154, "DescriptorArrayMap"),
("read_only_space", 0x061dd): (159, "UncompiledDataWithoutPreparseDataMap"),
("read_only_space", 0x06205): (158, "UncompiledDataWithPreparseDataMap"),
("read_only_space", 0x0622d): (176, "OnHeapBasicBlockProfilerDataMap"),
("read_only_space", 0x06255): (172, "InternalClassMap"),
("read_only_space", 0x0627d): (183, "SmiPairMap"),
("read_only_space", 0x062a5): (182, "SmiBoxMap"),
("read_only_space", 0x062cd): (148, "ExportedSubClassBaseMap"),
("read_only_space", 0x062f5): (149, "ExportedSubClassMap"),
("read_only_space", 0x0631d): (68, "AbstractInternalClassSubclass1Map"),
("read_only_space", 0x06345): (69, "AbstractInternalClassSubclass2Map"),
("read_only_space", 0x0636d): (136, "InternalClassWithSmiElementsMap"),
("read_only_space", 0x06395): (173, "InternalClassWithStructElementsMap"),
("read_only_space", 0x063bd): (150, "ExportedSubClass2Map"),
("read_only_space", 0x063e5): (184, "SortStateMap"),
("read_only_space", 0x0640d): (162, "CallRefDataMap"),
("read_only_space", 0x06435): (90, "AllocationSiteWithWeakNextMap"),
("read_only_space", 0x0645d): (90, "AllocationSiteWithoutWeakNextMap"),
("read_only_space", 0x06485): (81, "LoadHandler1Map"),
("read_only_space", 0x064ad): (81, "LoadHandler2Map"),
("read_only_space", 0x064d5): (81, "LoadHandler3Map"),
("read_only_space", 0x064fd): (82, "StoreHandler0Map"),
("read_only_space", 0x06525): (82, "StoreHandler1Map"),
("read_only_space", 0x0654d): (82, "StoreHandler2Map"),
("read_only_space", 0x06575): (82, "StoreHandler3Map"),
("read_only_space", 0x061b5): (159, "DescriptorArrayMap"),
("read_only_space", 0x061dd): (164, "UncompiledDataWithoutPreparseDataMap"),
("read_only_space", 0x06205): (163, "UncompiledDataWithPreparseDataMap"),
("read_only_space", 0x0622d): (181, "OnHeapBasicBlockProfilerDataMap"),
("read_only_space", 0x06255): (148, "TurbofanBitsetTypeMap"),
("read_only_space", 0x0627d): (152, "TurbofanUnionTypeMap"),
("read_only_space", 0x062a5): (151, "TurbofanRangeTypeMap"),
("read_only_space", 0x062cd): (149, "TurbofanHeapConstantTypeMap"),
("read_only_space", 0x062f5): (150, "TurbofanOtherNumberConstantTypeMap"),
("read_only_space", 0x0631d): (177, "InternalClassMap"),
("read_only_space", 0x06345): (188, "SmiPairMap"),
("read_only_space", 0x0636d): (187, "SmiBoxMap"),
("read_only_space", 0x06395): (153, "ExportedSubClassBaseMap"),
("read_only_space", 0x063bd): (154, "ExportedSubClassMap"),
("read_only_space", 0x063e5): (68, "AbstractInternalClassSubclass1Map"),
("read_only_space", 0x0640d): (69, "AbstractInternalClassSubclass2Map"),
("read_only_space", 0x06435): (136, "InternalClassWithSmiElementsMap"),
("read_only_space", 0x0645d): (178, "InternalClassWithStructElementsMap"),
("read_only_space", 0x06485): (155, "ExportedSubClass2Map"),
("read_only_space", 0x064ad): (189, "SortStateMap"),
("read_only_space", 0x064d5): (167, "CallRefDataMap"),
("read_only_space", 0x064fd): (90, "AllocationSiteWithWeakNextMap"),
("read_only_space", 0x06525): (90, "AllocationSiteWithoutWeakNextMap"),
("read_only_space", 0x0654d): (81, "LoadHandler1Map"),
("read_only_space", 0x06575): (81, "LoadHandler2Map"),
("read_only_space", 0x0659d): (81, "LoadHandler3Map"),
("read_only_space", 0x065c5): (82, "StoreHandler0Map"),
("read_only_space", 0x065ed): (82, "StoreHandler1Map"),
("read_only_space", 0x06615): (82, "StoreHandler2Map"),
("read_only_space", 0x0663d): (82, "StoreHandler3Map"),
("map_space", 0x02119): (1057, "ExternalMap"),
("map_space", 0x02141): (2114, "JSMessageObjectMap"),
}