heap-symbols.h 40.6 KB
Newer Older
1 2 3 4
// Copyright 2015 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.

5 6
#ifndef V8_INIT_HEAP_SYMBOLS_H_
#define V8_INIT_HEAP_SYMBOLS_H_
7

8
#ifdef V8_INTL_SUPPORT
9
#define INTERNALIZED_STRING_LIST_GENERATOR_INTL(V, _)               \
Frank Tang's avatar
Frank Tang committed
10 11
  V(_, adoptText_string, "adoptText")                               \
  V(_, baseName_string, "baseName")                                 \
12
  V(_, accounting_string, "accounting")                             \
13
  V(_, breakType_string, "breakType")                               \
14
  V(_, calendars_string, "calendars")                               \
15
  V(_, cardinal_string, "cardinal")                                 \
16
  V(_, caseFirst_string, "caseFirst")                               \
17
  V(_, ceil_string, "ceil")                                         \
Frank Tang's avatar
Frank Tang committed
18
  V(_, compare_string, "compare")                                   \
19
  V(_, collation_string, "collation")                               \
20
  V(_, collations_string, "collations")                             \
21
  V(_, compact_string, "compact")                                   \
22
  V(_, compactDisplay_string, "compactDisplay")                     \
23 24
  V(_, currency_string, "currency")                                 \
  V(_, currencyDisplay_string, "currencyDisplay")                   \
25
  V(_, currencySign_string, "currencySign")                         \
26
  V(_, dateStyle_string, "dateStyle")                               \
27
  V(_, dateTimeField_string, "dateTimeField")                       \
28 29
  V(_, dayPeriod_string, "dayPeriod")                               \
  V(_, decimal_string, "decimal")                                   \
Frank Tang's avatar
Frank Tang committed
30
  V(_, dialect_string, "dialect")                                   \
31
  V(_, direction_string, "direction")                               \
32
  V(_, endRange_string, "endRange")                                 \
33
  V(_, engineering_string, "engineering")                           \
34
  V(_, exceptZero_string, "exceptZero")                             \
35
  V(_, expand_string, "expand")                                     \
36 37 38
  V(_, exponentInteger_string, "exponentInteger")                   \
  V(_, exponentMinusSign_string, "exponentMinusSign")               \
  V(_, exponentSeparator_string, "exponentSeparator")               \
39
  V(_, fallback_string, "fallback")                                 \
40
  V(_, first_string, "first")                                       \
41
  V(_, firstDay_string, "firstDay")                                 \
42
  V(_, floor_string, "floor")                                       \
43
  V(_, format_string, "format")                                     \
44
  V(_, fraction_string, "fraction")                                 \
45
  V(_, fractionalSecond_string, "fractionalSecond")                 \
46
  V(_, fractionalSecondDigits_string, "fractionalSecondDigits")     \
47
  V(_, full_string, "full")                                         \
48 49
  V(_, granularity_string, "granularity")                           \
  V(_, grapheme_string, "grapheme")                                 \
50 51 52 53 54
  V(_, group_string, "group")                                       \
  V(_, h11_string, "h11")                                           \
  V(_, h12_string, "h12")                                           \
  V(_, h23_string, "h23")                                           \
  V(_, h24_string, "h24")                                           \
55 56 57 58 59
  V(_, halfCeil_string, "halfCeil")                                 \
  V(_, halfEven_string, "halfEven")                                 \
  V(_, halfExpand_string, "halfExpand")                             \
  V(_, halfFloor_string, "halfFloor")                               \
  V(_, halfTrunc_string, "halfTrunc")                               \
60 61
  V(_, hour12_string, "hour12")                                     \
  V(_, hourCycle_string, "hourCycle")                               \
62
  V(_, hourCycles_string, "hourCycles")                             \
63
  V(_, ideo_string, "ideo")                                         \
64
  V(_, ignorePunctuation_string, "ignorePunctuation")               \
65
  V(_, Invalid_Date_string, "Invalid Date")                         \
66
  V(_, integer_string, "integer")                                   \
67
  V(_, isWordLike_string, "isWordLike")                             \
68
  V(_, kana_string, "kana")                                         \
Frank Tang's avatar
Frank Tang committed
69
  V(_, language_string, "language")                                 \
Frank Tang's avatar
Frank Tang committed
70
  V(_, languageDisplay_string, "languageDisplay")                   \
71
  V(_, lessPrecision_string, "lessPrecision")                       \
72
  V(_, letter_string, "letter")                                     \
73
  V(_, list_string, "list")                                         \
74 75
  V(_, literal_string, "literal")                                   \
  V(_, locale_string, "locale")                                     \
76
  V(_, loose_string, "loose")                                       \
77
  V(_, lower_string, "lower")                                       \
78
  V(_, ltr_string, "ltr")                                           \
79 80
  V(_, maximumFractionDigits_string, "maximumFractionDigits")       \
  V(_, maximumSignificantDigits_string, "maximumSignificantDigits") \
81
  V(_, min2_string, "min2")                                         \
82
  V(_, minimalDays_string, "minimalDays")                           \
83 84 85
  V(_, minimumFractionDigits_string, "minimumFractionDigits")       \
  V(_, minimumIntegerDigits_string, "minimumIntegerDigits")         \
  V(_, minimumSignificantDigits_string, "minimumSignificantDigits") \
86
  V(_, minus_0, "-0")                                               \
87
  V(_, minusSign_string, "minusSign")                               \
88
  V(_, morePrecision_string, "morePrecision")                       \
Frank Tang's avatar
Frank Tang committed
89
  V(_, nan_string, "nan")                                           \
90
  V(_, narrowSymbol_string, "narrowSymbol")                         \
91
  V(_, negative_string, "negative")                                 \
92
  V(_, never_string, "never")                                       \
93
  V(_, none_string, "none")                                         \
94
  V(_, notation_string, "notation")                                 \
95
  V(_, normal_string, "normal")                                     \
96
  V(_, numberingSystem_string, "numberingSystem")                   \
97
  V(_, numberingSystems_string, "numberingSystems")                 \
98
  V(_, numeric_string, "numeric")                                   \
99
  V(_, ordinal_string, "ordinal")                                   \
100 101 102
  V(_, percentSign_string, "percentSign")                           \
  V(_, plusSign_string, "plusSign")                                 \
  V(_, quarter_string, "quarter")                                   \
Frank Tang's avatar
Frank Tang committed
103
  V(_, region_string, "region")                                     \
104
  V(_, relatedYear_string, "relatedYear")                           \
105 106
  V(_, roundingMode_string, "roundingMode")                         \
  V(_, roundingPriority_string, "roundingPriority")                 \
107
  V(_, rtl_string, "rtl")                                           \
108
  V(_, scientific_string, "scientific")                             \
109 110
  V(_, segment_string, "segment")                                   \
  V(_, SegmentIterator_string, "Segment Iterator")                  \
111
  V(_, Segments_string, "Segments")                                 \
112
  V(_, sensitivity_string, "sensitivity")                           \
113
  V(_, sep_string, "sep")                                           \
114
  V(_, shared_string, "shared")                                     \
115
  V(_, signDisplay_string, "signDisplay")                           \
116
  V(_, standard_string, "standard")                                 \
117
  V(_, startRange_string, "startRange")                             \
118
  V(_, strict_string, "strict")                                     \
119
  V(_, stripIfInteger_string, "stripIfInteger")                     \
120
  V(_, style_string, "style")                                       \
121
  V(_, term_string, "term")                                         \
122
  V(_, textInfo_string, "textInfo")                                 \
123
  V(_, timeStyle_string, "timeStyle")                               \
124
  V(_, timeZones_string, "timeZones")                               \
125
  V(_, timeZoneName_string, "timeZoneName")                         \
126 127
  V(_, trailingZeroDisplay_string, "trailingZeroDisplay")           \
  V(_, trunc_string, "trunc")                                       \
128
  V(_, type_string, "type")                                         \
129
  V(_, unknown_string, "unknown")                                   \
130 131 132
  V(_, upper_string, "upper")                                       \
  V(_, usage_string, "usage")                                       \
  V(_, useGrouping_string, "useGrouping")                           \
133
  V(_, unitDisplay_string, "unitDisplay")                           \
134
  V(_, weekday_string, "weekday")                                   \
135
  V(_, weekend_string, "weekend")                                   \
136
  V(_, weekInfo_string, "weekInfo")                                 \
137
  V(_, yearName_string, "yearName")
138 139 140 141
#else  // V8_INTL_SUPPORT
#define INTERNALIZED_STRING_LIST_GENERATOR_INTL(V, _)
#endif  // V8_INTL_SUPPORT

142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186
#define INTERNALIZED_STRING_LIST_GENERATOR(V, _)                      \
  INTERNALIZED_STRING_LIST_GENERATOR_INTL(V, _)                       \
  V(_, add_string, "add")                                             \
  V(_, AggregateError_string, "AggregateError")                       \
  V(_, always_string, "always")                                       \
  V(_, anonymous_function_string, "(anonymous function)")             \
  V(_, anonymous_string, "anonymous")                                 \
  V(_, apply_string, "apply")                                         \
  V(_, Arguments_string, "Arguments")                                 \
  V(_, arguments_string, "arguments")                                 \
  V(_, arguments_to_string, "[object Arguments]")                     \
  V(_, Array_string, "Array")                                         \
  V(_, array_to_string, "[object Array]")                             \
  V(_, ArrayBuffer_string, "ArrayBuffer")                             \
  V(_, ArrayIterator_string, "Array Iterator")                        \
  V(_, as_string, "as")                                               \
  V(_, assert_string, "assert")                                       \
  V(_, async_string, "async")                                         \
  V(_, auto_string, "auto")                                           \
  V(_, await_string, "await")                                         \
  V(_, BigInt_string, "BigInt")                                       \
  V(_, bigint_string, "bigint")                                       \
  V(_, BigInt64Array_string, "BigInt64Array")                         \
  V(_, BigUint64Array_string, "BigUint64Array")                       \
  V(_, bind_string, "bind")                                           \
  V(_, blank_string, "blank")                                         \
  V(_, Boolean_string, "Boolean")                                     \
  V(_, boolean_string, "boolean")                                     \
  V(_, boolean_to_string, "[object Boolean]")                         \
  V(_, bound__string, "bound ")                                       \
  V(_, buffer_string, "buffer")                                       \
  V(_, byte_length_string, "byteLength")                              \
  V(_, byte_offset_string, "byteOffset")                              \
  V(_, CompileError_string, "CompileError")                           \
  V(_, calendar_string, "calendar")                                   \
  V(_, callee_string, "callee")                                       \
  V(_, caller_string, "caller")                                       \
  V(_, cause_string, "cause")                                         \
  V(_, character_string, "character")                                 \
  V(_, closure_string, "(closure)")                                   \
  V(_, code_string, "code")                                           \
  V(_, column_string, "column")                                       \
  V(_, computed_string, "<computed>")                                 \
  V(_, configurable_string, "configurable")                           \
  V(_, conjunction_string, "conjunction")                             \
187
  V(_, console_string, "console")                                     \
188
  V(_, constrain_string, "constrain")                                 \
189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216
  V(_, construct_string, "construct")                                 \
  V(_, constructor_string, "constructor")                             \
  V(_, current_string, "current")                                     \
  V(_, Date_string, "Date")                                           \
  V(_, date_to_string, "[object Date]")                               \
  V(_, dateAdd_string, "dateAdd")                                     \
  V(_, dateFromFields_string, "dateFromFields")                       \
  V(_, dateUntil_string, "dateUntil")                                 \
  V(_, day_string, "day")                                             \
  V(_, dayOfWeek_string, "dayOfWeek")                                 \
  V(_, dayOfYear_string, "dayOfYear")                                 \
  V(_, days_string, "days")                                           \
  V(_, daysInMonth_string, "daysInMonth")                             \
  V(_, daysInWeek_string, "daysInWeek")                               \
  V(_, daysInYear_string, "daysInYear")                               \
  V(_, default_string, "default")                                     \
  V(_, defineProperty_string, "defineProperty")                       \
  V(_, deleteProperty_string, "deleteProperty")                       \
  V(_, disjunction_string, "disjunction")                             \
  V(_, done_string, "done")                                           \
  V(_, dot_brand_string, ".brand")                                    \
  V(_, dot_catch_string, ".catch")                                    \
  V(_, dot_default_string, ".default")                                \
  V(_, dot_for_string, ".for")                                        \
  V(_, dot_generator_object_string, ".generator_object")              \
  V(_, dot_home_object_string, ".home_object")                        \
  V(_, dot_result_string, ".result")                                  \
  V(_, dot_repl_result_string, ".repl_result")                        \
217
  V(_, dot_static_home_object_string, ".static_home_object")          \
218 219 220 221 222 223 224 225 226 227 228
  V(_, dot_string, ".")                                               \
  V(_, dot_switch_tag_string, ".switch_tag")                          \
  V(_, dotAll_string, "dotAll")                                       \
  V(_, Error_string, "Error")                                         \
  V(_, EvalError_string, "EvalError")                                 \
  V(_, enumerable_string, "enumerable")                               \
  V(_, element_string, "element")                                     \
  V(_, epochMicroseconds_string, "epochMicroseconds")                 \
  V(_, epochMilliseconds_string, "epochMilliseconds")                 \
  V(_, epochNanoseconds_string, "epochNanoseconds")                   \
  V(_, epochSeconds_string, "epochSeconds")                           \
229 230
  V(_, era_string, "era")                                             \
  V(_, eraYear_string, "eraYear")                                     \
231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251
  V(_, errors_string, "errors")                                       \
  V(_, error_to_string, "[object Error]")                             \
  V(_, eval_string, "eval")                                           \
  V(_, exception_string, "exception")                                 \
  V(_, exec_string, "exec")                                           \
  V(_, false_string, "false")                                         \
  V(_, fields_string, "fields")                                       \
  V(_, FinalizationRegistry_string, "FinalizationRegistry")           \
  V(_, flags_string, "flags")                                         \
  V(_, Float32Array_string, "Float32Array")                           \
  V(_, Float64Array_string, "Float64Array")                           \
  V(_, from_string, "from")                                           \
  V(_, Function_string, "Function")                                   \
  V(_, function_native_code_string, "function () { [native code] }")  \
  V(_, function_string, "function")                                   \
  V(_, function_to_string, "[object Function]")                       \
  V(_, Generator_string, "Generator")                                 \
  V(_, get_space_string, "get ")                                      \
  V(_, get_string, "get")                                             \
  V(_, getOffsetNanosecondsFor_string, "getOffsetNanosecondsFor")     \
  V(_, getOwnPropertyDescriptor_string, "getOwnPropertyDescriptor")   \
252
  V(_, getPossibleInstantsFor_string, "getPossibleInstantsFor")       \
253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349
  V(_, getPrototypeOf_string, "getPrototypeOf")                       \
  V(_, global_string, "global")                                       \
  V(_, globalThis_string, "globalThis")                               \
  V(_, groups_string, "groups")                                       \
  V(_, growable_string, "growable")                                   \
  V(_, GrowableSharedArrayBuffer_string, "GrowableSharedArrayBuffer") \
  V(_, has_string, "has")                                             \
  V(_, hasIndices_string, "hasIndices")                               \
  V(_, hour_string, "hour")                                           \
  V(_, hours_string, "hours")                                         \
  V(_, hoursInDay_string, "hoursInDay")                               \
  V(_, ignoreCase_string, "ignoreCase")                               \
  V(_, id_string, "id")                                               \
  V(_, illegal_access_string, "illegal access")                       \
  V(_, illegal_argument_string, "illegal argument")                   \
  V(_, inLeapYear_string, "inLeapYear")                               \
  V(_, index_string, "index")                                         \
  V(_, indices_string, "indices")                                     \
  V(_, Infinity_string, "Infinity")                                   \
  V(_, infinity_string, "infinity")                                   \
  V(_, input_string, "input")                                         \
  V(_, Int16Array_string, "Int16Array")                               \
  V(_, Int32Array_string, "Int32Array")                               \
  V(_, Int8Array_string, "Int8Array")                                 \
  V(_, isExtensible_string, "isExtensible")                           \
  V(_, iso8601_string, "iso8601")                                     \
  V(_, isoDay_string, "isoDay")                                       \
  V(_, isoHour_string, "isoHour")                                     \
  V(_, isoMicrosecond_string, "isoMicrosecond")                       \
  V(_, isoMillisecond_string, "isoMillisecond")                       \
  V(_, isoMinute_string, "isoMinute")                                 \
  V(_, isoMonth_string, "isoMonth")                                   \
  V(_, isoNanosecond_string, "isoNanosecond")                         \
  V(_, isoSecond_string, "isoSecond")                                 \
  V(_, isoYear_string, "isoYear")                                     \
  V(_, jsMemoryEstimate_string, "jsMemoryEstimate")                   \
  V(_, jsMemoryRange_string, "jsMemoryRange")                         \
  V(_, keys_string, "keys")                                           \
  V(_, largestUnit_string, "largestUnit")                             \
  V(_, lastIndex_string, "lastIndex")                                 \
  V(_, length_string, "length")                                       \
  V(_, let_string, "let")                                             \
  V(_, line_string, "line")                                           \
  V(_, linear_string, "linear")                                       \
  V(_, LinkError_string, "LinkError")                                 \
  V(_, long_string, "long")                                           \
  V(_, Map_string, "Map")                                             \
  V(_, MapIterator_string, "Map Iterator")                            \
  V(_, max_byte_length_string, "maxByteLength")                       \
  V(_, medium_string, "medium")                                       \
  V(_, mergeFields_string, "mergeFields")                             \
  V(_, message_string, "message")                                     \
  V(_, meta_string, "meta")                                           \
  V(_, minus_Infinity_string, "-Infinity")                            \
  V(_, microsecond_string, "microsecond")                             \
  V(_, microseconds_string, "microseconds")                           \
  V(_, millisecond_string, "millisecond")                             \
  V(_, milliseconds_string, "milliseconds")                           \
  V(_, minute_string, "minute")                                       \
  V(_, minutes_string, "minutes")                                     \
  V(_, Module_string, "Module")                                       \
  V(_, month_string, "month")                                         \
  V(_, monthDayFromFields_string, "monthDayFromFields")               \
  V(_, months_string, "months")                                       \
  V(_, monthsInYear_string, "monthsInYear")                           \
  V(_, monthCode_string, "monthCode")                                 \
  V(_, multiline_string, "multiline")                                 \
  V(_, name_string, "name")                                           \
  V(_, NaN_string, "NaN")                                             \
  V(_, nanosecond_string, "nanosecond")                               \
  V(_, nanoseconds_string, "nanoseconds")                             \
  V(_, narrow_string, "narrow")                                       \
  V(_, native_string, "native")                                       \
  V(_, new_target_string, ".new.target")                              \
  V(_, next_string, "next")                                           \
  V(_, NFC_string, "NFC")                                             \
  V(_, NFD_string, "NFD")                                             \
  V(_, NFKC_string, "NFKC")                                           \
  V(_, NFKD_string, "NFKD")                                           \
  V(_, not_equal_string, "not-equal")                                 \
  V(_, null_string, "null")                                           \
  V(_, null_to_string, "[object Null]")                               \
  V(_, Number_string, "Number")                                       \
  V(_, number_string, "number")                                       \
  V(_, number_to_string, "[object Number]")                           \
  V(_, Object_string, "Object")                                       \
  V(_, object_string, "object")                                       \
  V(_, object_to_string, "[object Object]")                           \
  V(_, of_string, "of")                                               \
  V(_, offset_string, "offset")                                       \
  V(_, offsetNanoseconds_string, "offsetNanoseconds")                 \
  V(_, ok_string, "ok")                                               \
  V(_, one_string, "1")                                               \
  V(_, other_string, "other")                                         \
  V(_, overflow_string, "overflow")                                   \
  V(_, ownKeys_string, "ownKeys")                                     \
  V(_, percent_string, "percent")                                     \
350 351
  V(_, plainDate_string, "plainDate")                                 \
  V(_, plainTime_string, "plainTime")                                 \
352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368
  V(_, position_string, "position")                                   \
  V(_, preventExtensions_string, "preventExtensions")                 \
  V(_, private_constructor_string, "#constructor")                    \
  V(_, Promise_string, "Promise")                                     \
  V(_, proto_string, "__proto__")                                     \
  V(_, prototype_string, "prototype")                                 \
  V(_, proxy_string, "proxy")                                         \
  V(_, Proxy_string, "Proxy")                                         \
  V(_, query_colon_string, "(?:)")                                    \
  V(_, RangeError_string, "RangeError")                               \
  V(_, raw_string, "raw")                                             \
  V(_, ReferenceError_string, "ReferenceError")                       \
  V(_, ReflectGet_string, "Reflect.get")                              \
  V(_, ReflectHas_string, "Reflect.has")                              \
  V(_, RegExp_string, "RegExp")                                       \
  V(_, regexp_to_string, "[object RegExp]")                           \
  V(_, reject_string, "reject")                                       \
369
  V(_, relativeTo_string, "relativeTo")                               \
370 371 372 373 374
  V(_, resizable_string, "resizable")                                 \
  V(_, ResizableArrayBuffer_string, "ResizableArrayBuffer")           \
  V(_, resolve_string, "resolve")                                     \
  V(_, return_string, "return")                                       \
  V(_, revoke_string, "revoke")                                       \
375
  V(_, roundingIncrement_string, "roundingIncrement")                 \
376 377 378 379 380 381 382 383 384 385 386 387 388
  V(_, RuntimeError_string, "RuntimeError")                           \
  V(_, WebAssemblyException_string, "WebAssembly.Exception")          \
  V(_, Script_string, "Script")                                       \
  V(_, script_string, "script")                                       \
  V(_, second_string, "second")                                       \
  V(_, seconds_string, "seconds")                                     \
  V(_, short_string, "short")                                         \
  V(_, Set_string, "Set")                                             \
  V(_, sentence_string, "sentence")                                   \
  V(_, set_space_string, "set ")                                      \
  V(_, set_string, "set")                                             \
  V(_, SetIterator_string, "Set Iterator")                            \
  V(_, setPrototypeOf_string, "setPrototypeOf")                       \
389
  V(_, ShadowRealm_string, "ShadowRealm")                             \
390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439
  V(_, SharedArrayBuffer_string, "SharedArrayBuffer")                 \
  V(_, sign_string, "sign")                                           \
  V(_, smallestUnit_string, "smallestUnit")                           \
  V(_, source_string, "source")                                       \
  V(_, sourceText_string, "sourceText")                               \
  V(_, stack_string, "stack")                                         \
  V(_, stackTraceLimit_string, "stackTraceLimit")                     \
  V(_, sticky_string, "sticky")                                       \
  V(_, String_string, "String")                                       \
  V(_, string_string, "string")                                       \
  V(_, string_to_string, "[object String]")                           \
  V(_, symbol_species_string, "[Symbol.species]")                     \
  V(_, Symbol_string, "Symbol")                                       \
  V(_, symbol_string, "symbol")                                       \
  V(_, SyntaxError_string, "SyntaxError")                             \
  V(_, target_string, "target")                                       \
  V(_, then_string, "then")                                           \
  V(_, this_function_string, ".this_function")                        \
  V(_, this_string, "this")                                           \
  V(_, throw_string, "throw")                                         \
  V(_, timed_out_string, "timed-out")                                 \
  V(_, timeZone_string, "timeZone")                                   \
  V(_, toJSON_string, "toJSON")                                       \
  V(_, toString_string, "toString")                                   \
  V(_, true_string, "true")                                           \
  V(_, total_string, "total")                                         \
  V(_, TypeError_string, "TypeError")                                 \
  V(_, Uint16Array_string, "Uint16Array")                             \
  V(_, Uint32Array_string, "Uint32Array")                             \
  V(_, Uint8Array_string, "Uint8Array")                               \
  V(_, Uint8ClampedArray_string, "Uint8ClampedArray")                 \
  V(_, undefined_string, "undefined")                                 \
  V(_, undefined_to_string, "[object Undefined]")                     \
  V(_, unicode_string, "unicode")                                     \
  V(_, unit_string, "unit")                                           \
  V(_, URIError_string, "URIError")                                   \
  V(_, UTC_string, "UTC")                                             \
  V(_, value_string, "value")                                         \
  V(_, valueOf_string, "valueOf")                                     \
  V(_, WeakMap_string, "WeakMap")                                     \
  V(_, WeakRef_string, "WeakRef")                                     \
  V(_, WeakSet_string, "WeakSet")                                     \
  V(_, week_string, "week")                                           \
  V(_, weeks_string, "weeks")                                         \
  V(_, weekOfYear_string, "weekOfYear")                               \
  V(_, word_string, "word")                                           \
  V(_, writable_string, "writable")                                   \
  V(_, yearMonthFromFields_string, "yearMonthFromFields")             \
  V(_, year_string, "year")                                           \
  V(_, years_string, "years")                                         \
440
  V(_, zero_string, "0")
441

442
#define PRIVATE_SYMBOL_LIST_GENERATOR(V, _)    \
443
  V(_, array_buffer_wasm_memory_symbol)        \
444
  V(_, call_site_info_symbol)                  \
445 446 447 448 449 450 451
  V(_, console_context_id_symbol)              \
  V(_, console_context_name_symbol)            \
  V(_, class_fields_symbol)                    \
  V(_, class_positions_symbol)                 \
  V(_, elements_transition_symbol)             \
  V(_, error_end_pos_symbol)                   \
  V(_, error_script_symbol)                    \
452
  V(_, error_stack_symbol)                     \
453 454 455
  V(_, error_start_pos_symbol)                 \
  V(_, frozen_symbol)                          \
  V(_, interpreter_trampoline_symbol)          \
456
  V(_, mega_dom_symbol)                        \
457 458 459 460 461 462 463 464
  V(_, megamorphic_symbol)                     \
  V(_, native_context_index_symbol)            \
  V(_, nonextensible_symbol)                   \
  V(_, not_mapped_symbol)                      \
  V(_, promise_debug_marker_symbol)            \
  V(_, promise_debug_message_symbol)           \
  V(_, promise_forwarding_handler_symbol)      \
  V(_, promise_handled_by_symbol)              \
465
  V(_, promise_awaited_by_symbol)              \
466 467 468 469 470 471 472 473 474 475 476
  V(_, regexp_result_names_symbol)             \
  V(_, regexp_result_regexp_input_symbol)      \
  V(_, regexp_result_regexp_last_index_symbol) \
  V(_, sealed_symbol)                          \
  V(_, strict_function_transition_symbol)      \
  V(_, wasm_exception_tag_symbol)              \
  V(_, wasm_exception_values_symbol)           \
  V(_, wasm_uncatchable_symbol)                \
  V(_, wasm_wrapped_object_symbol)             \
  V(_, wasm_debug_proxy_cache_symbol)          \
  V(_, wasm_debug_proxy_names_symbol)          \
477
  V(_, uninitialized_symbol)
478

479 480 481 482 483 484 485 486 487 488 489
#define PUBLIC_SYMBOL_LIST_GENERATOR(V, _)                \
  V(_, async_iterator_symbol, Symbol.asyncIterator)       \
  V(_, iterator_symbol, Symbol.iterator)                  \
  V(_, intl_fallback_symbol, IntlLegacyConstructedSymbol) \
  V(_, match_all_symbol, Symbol.matchAll)                 \
  V(_, match_symbol, Symbol.match)                        \
  V(_, replace_symbol, Symbol.replace)                    \
  V(_, search_symbol, Symbol.search)                      \
  V(_, species_symbol, Symbol.species)                    \
  V(_, split_symbol, Symbol.split)                        \
  V(_, to_primitive_symbol, Symbol.toPrimitive)           \
490
  V(_, unscopables_symbol, Symbol.unscopables)
491 492 493 494 495

// Well-Known Symbols are "Public" symbols, which have a bit set which causes
// them to produce an undefined value when a load results in a failed access
// check. Because this behaviour is not specified properly as of yet, it only
// applies to a subset of spec-defined Well-Known Symbols.
496 497 498 499
#define WELL_KNOWN_SYMBOL_LIST_GENERATOR(V, _)                 \
  V(_, has_instance_symbol, Symbol.hasInstance)                \
  V(_, is_concat_spreadable_symbol, Symbol.isConcatSpreadable) \
  V(_, to_string_tag_symbol, Symbol.toStringTag)
500

501 502 503
#define INCREMENTAL_SCOPES(F)                                      \
  /* MC_INCREMENTAL is the top-level incremental marking scope. */ \
  F(MC_INCREMENTAL)                                                \
504 505
  F(MC_INCREMENTAL_EMBEDDER_PROLOGUE)                              \
  F(MC_INCREMENTAL_EMBEDDER_TRACING)                               \
506 507
  F(MC_INCREMENTAL_EXTERNAL_EPILOGUE)                              \
  F(MC_INCREMENTAL_EXTERNAL_PROLOGUE)                              \
508 509
  F(MC_INCREMENTAL_FINALIZE)                                       \
  F(MC_INCREMENTAL_FINALIZE_BODY)                                  \
510 511 512
  F(MC_INCREMENTAL_LAYOUT_CHANGE)                                  \
  F(MC_INCREMENTAL_START)                                          \
  F(MC_INCREMENTAL_SWEEPING)
513

514 515 516 517 518 519 520 521 522
#define TOP_MC_SCOPES(F) \
  F(MC_CLEAR)            \
  F(MC_EPILOGUE)         \
  F(MC_EVACUATE)         \
  F(MC_FINISH)           \
  F(MC_MARK)             \
  F(MC_PROLOGUE)         \
  F(MC_SWEEP)

523 524
#define TRACER_SCOPES(F)                             \
  INCREMENTAL_SCOPES(F)                              \
525
  F(HEAP_EMBEDDER_TRACING_EPILOGUE)                  \
526 527
  F(HEAP_EPILOGUE)                                   \
  F(HEAP_EPILOGUE_REDUCE_NEW_SPACE)                  \
528
  F(HEAP_EPILOGUE_SAFEPOINT)                         \
529
  F(HEAP_EXTERNAL_EPILOGUE)                          \
530
  F(HEAP_EXTERNAL_NEAR_HEAP_LIMIT)                   \
531 532 533
  F(HEAP_EXTERNAL_PROLOGUE)                          \
  F(HEAP_EXTERNAL_WEAK_GLOBAL_HANDLES)               \
  F(HEAP_PROLOGUE)                                   \
534
  F(HEAP_PROLOGUE_SAFEPOINT)                         \
535
  F(MARK_COMPACTOR)                                  \
536
  TOP_MC_SCOPES(F)                                   \
537
  F(MC_CLEAR_DEPENDENT_CODE)                         \
538
  F(MC_CLEAR_EXTERNAL_STRING_TABLE)                  \
539
  F(MC_CLEAR_FLUSHABLE_BYTECODE)                     \
540
  F(MC_CLEAR_FLUSHED_JS_FUNCTIONS)                   \
541
  F(MC_CLEAR_JOIN_JOB)                               \
542 543 544 545
  F(MC_CLEAR_MAPS)                                   \
  F(MC_CLEAR_SLOTS_BUFFER)                           \
  F(MC_CLEAR_STRING_TABLE)                           \
  F(MC_CLEAR_WEAK_COLLECTIONS)                       \
546
  F(MC_CLEAR_WEAK_GLOBAL_HANDLES)                    \
547
  F(MC_CLEAR_WEAK_LISTS)                             \
548
  F(MC_CLEAR_WEAK_REFERENCES)                        \
549
  F(MC_SWEEP_EXTERNAL_POINTER_TABLE)                 \
550
  F(MC_COMPLETE_SWEEP_ARRAY_BUFFERS)                 \
551
  F(MC_COMPLETE_SWEEPING)                            \
552 553 554
  F(MC_EVACUATE_CANDIDATES)                          \
  F(MC_EVACUATE_CLEAN_UP)                            \
  F(MC_EVACUATE_COPY)                                \
555
  F(MC_EVACUATE_COPY_PARALLEL)                       \
556 557 558 559
  F(MC_EVACUATE_EPILOGUE)                            \
  F(MC_EVACUATE_PROLOGUE)                            \
  F(MC_EVACUATE_REBALANCE)                           \
  F(MC_EVACUATE_UPDATE_POINTERS)                     \
560
  F(MC_EVACUATE_UPDATE_POINTERS_CLIENT_HEAPS)        \
561
  F(MC_EVACUATE_UPDATE_POINTERS_PARALLEL)            \
562
  F(MC_EVACUATE_UPDATE_POINTERS_SLOTS_MAIN)          \
563 564
  F(MC_EVACUATE_UPDATE_POINTERS_TO_NEW_ROOTS)        \
  F(MC_EVACUATE_UPDATE_POINTERS_WEAK)                \
565
  F(MC_FINISH_SWEEP_ARRAY_BUFFERS)                   \
566
  F(MC_MARK_CLIENT_HEAPS)                            \
567 568 569
  F(MC_MARK_EMBEDDER_PROLOGUE)                       \
  F(MC_MARK_EMBEDDER_TRACING)                        \
  F(MC_MARK_EMBEDDER_TRACING_CLOSURE)                \
570
  F(MC_MARK_FINISH_INCREMENTAL)                      \
571
  F(MC_MARK_MAIN)                                    \
572 573
  F(MC_MARK_ROOTS)                                   \
  F(MC_MARK_WEAK_CLOSURE)                            \
574
  F(MC_MARK_WEAK_CLOSURE_EPHEMERON)                  \
575
  F(MC_MARK_WEAK_CLOSURE_EPHEMERON_MARKING)          \
576
  F(MC_MARK_WEAK_CLOSURE_EPHEMERON_LINEAR)           \
577 578 579
  F(MC_SWEEP_CODE)                                   \
  F(MC_SWEEP_MAP)                                    \
  F(MC_SWEEP_OLD)                                    \
580
  F(MINOR_MARK_COMPACTOR)                            \
581 582 583 584
  F(MINOR_MC)                                        \
  F(MINOR_MC_CLEAR)                                  \
  F(MINOR_MC_CLEAR_STRING_TABLE)                     \
  F(MINOR_MC_CLEAR_WEAK_LISTS)                       \
585
  F(MINOR_MC_COMPLETE_SWEEP_ARRAY_BUFFERS)           \
586 587 588
  F(MINOR_MC_EVACUATE)                               \
  F(MINOR_MC_EVACUATE_CLEAN_UP)                      \
  F(MINOR_MC_EVACUATE_COPY)                          \
589
  F(MINOR_MC_EVACUATE_COPY_PARALLEL)                 \
590 591 592 593
  F(MINOR_MC_EVACUATE_EPILOGUE)                      \
  F(MINOR_MC_EVACUATE_PROLOGUE)                      \
  F(MINOR_MC_EVACUATE_REBALANCE)                     \
  F(MINOR_MC_EVACUATE_UPDATE_POINTERS)               \
594
  F(MINOR_MC_EVACUATE_UPDATE_POINTERS_PARALLEL)      \
595 596 597 598 599
  F(MINOR_MC_EVACUATE_UPDATE_POINTERS_SLOTS)         \
  F(MINOR_MC_EVACUATE_UPDATE_POINTERS_TO_NEW_ROOTS)  \
  F(MINOR_MC_EVACUATE_UPDATE_POINTERS_WEAK)          \
  F(MINOR_MC_MARK)                                   \
  F(MINOR_MC_MARK_GLOBAL_HANDLES)                    \
600
  F(MINOR_MC_MARK_PARALLEL)                          \
601 602 603 604 605 606
  F(MINOR_MC_MARK_SEED)                              \
  F(MINOR_MC_MARK_ROOTS)                             \
  F(MINOR_MC_MARK_WEAK)                              \
  F(MINOR_MC_MARKING_DEQUE)                          \
  F(MINOR_MC_RESET_LIVENESS)                         \
  F(MINOR_MC_SWEEPING)                               \
607
  F(SAFEPOINT)                                       \
608
  F(SCAVENGER)                                       \
609
  F(SCAVENGER_COMPLETE_SWEEP_ARRAY_BUFFERS)          \
610
  F(SCAVENGER_FAST_PROMOTE)                          \
611
  F(SCAVENGER_FREE_REMEMBERED_SET)                   \
612 613 614 615 616
  F(SCAVENGER_SCAVENGE)                              \
  F(SCAVENGER_SCAVENGE_WEAK_GLOBAL_HANDLES_IDENTIFY) \
  F(SCAVENGER_SCAVENGE_WEAK_GLOBAL_HANDLES_PROCESS)  \
  F(SCAVENGER_SCAVENGE_PARALLEL)                     \
  F(SCAVENGER_SCAVENGE_ROOTS)                        \
617
  F(SCAVENGER_SCAVENGE_STACK_ROOTS)                  \
618
  F(SCAVENGER_SCAVENGE_UPDATE_REFS)                  \
619
  F(SCAVENGER_SCAVENGE_WEAK)                         \
620
  F(SCAVENGER_SCAVENGE_FINALIZE)                     \
621
  F(SCAVENGER_SWEEP_ARRAY_BUFFERS)                   \
622
  F(TIME_TO_GLOBAL_SAFEPOINT)                        \
623
  F(TIME_TO_SAFEPOINT)                               \
624 625
  F(UNMAPPER)                                        \
  F(UNPARK)
626

627
#define TRACER_BACKGROUND_SCOPES(F)               \
628 629
  F(BACKGROUND_YOUNG_ARRAY_BUFFER_SWEEP)          \
  F(BACKGROUND_FULL_ARRAY_BUFFER_SWEEP)           \
630
  F(BACKGROUND_COLLECTION)                        \
631
  F(BACKGROUND_UNMAPPER)                          \
632 633
  F(BACKGROUND_UNPARK)                            \
  F(BACKGROUND_SAFEPOINT)                         \
634 635
  F(MC_BACKGROUND_EVACUATE_COPY)                  \
  F(MC_BACKGROUND_EVACUATE_UPDATE_POINTERS)       \
636 637
  F(MC_BACKGROUND_MARKING)                        \
  F(MC_BACKGROUND_SWEEPING)                       \
638 639 640 641
  F(MINOR_MC_BACKGROUND_EVACUATE_COPY)            \
  F(MINOR_MC_BACKGROUND_EVACUATE_UPDATE_POINTERS) \
  F(MINOR_MC_BACKGROUND_MARKING)                  \
  F(SCAVENGER_BACKGROUND_SCAVENGE_PARALLEL)
642

643 644 645 646 647 648 649
#define TRACER_YOUNG_EPOCH_SCOPES(F)        \
  F(BACKGROUND_YOUNG_ARRAY_BUFFER_SWEEP)    \
  F(MINOR_MARK_COMPACTOR)                   \
  F(MINOR_MC_COMPLETE_SWEEP_ARRAY_BUFFERS)  \
  F(SCAVENGER)                              \
  F(SCAVENGER_BACKGROUND_SCAVENGE_PARALLEL) \
  F(SCAVENGER_COMPLETE_SWEEP_ARRAY_BUFFERS)
650

651
#endif  // V8_INIT_HEAP_SYMBOLS_H_