• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2021-2025 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef ECMASCRIPT_RUNTIME_CALL_ID_H
17 #define ECMASCRIPT_RUNTIME_CALL_ID_H
18 
19 #include "ecmascript/base/config.h"
20 #include "ecmascript/dfx/vmstat/runtime_stat.h"
21 
22 namespace panda::ecmascript {
23 // NOLINTNEXTLINE(cppcoreguidelines-macro-usage)
24 #define INTERPRETER_CALLER_LIST(V)   \
25     V(RunInternal)                   \
26     V(Ldnan)                         \
27     V(Ldinfinity)                    \
28     V(Ldundefined)                   \
29     V(Ldboolean)                     \
30     V(Ldnumber)                      \
31     V(Ldstring)                      \
32     V(Ldnull)                        \
33     V(Ldsymbol)                      \
34     V(Ldfunction)                    \
35     V(Ldglobal)                      \
36     V(Ldtrue)                        \
37     V(Ldfalse)                       \
38     V(Tonumber)                      \
39     V(Toboolean)                     \
40     V(Add2)                          \
41     V(Sub2)                          \
42     V(Mul2)                          \
43     V(Div2)                          \
44     V(Mod2)                          \
45     V(Eq)                            \
46     V(NotEq)                         \
47     V(Less)                          \
48     V(LessEq)                        \
49     V(Greater)                       \
50     V(GreaterEq)                     \
51     V(StrictNotEq)                   \
52     V(StrictEq)                      \
53     V(Shl2)                          \
54     V(Shr2)                          \
55     V(Ashr2)                         \
56     V(And2)                          \
57     V(Or2)                           \
58     V(Xor2)                          \
59     V(Neg)                           \
60     V(Not)                           \
61     V(Inc)                           \
62     V(Dec)                           \
63     V(Exp)                           \
64     V(Throw)                         \
65     V(LdObjByIndex)                  \
66     V(StObjByIndex)                  \
67     V(LdObjByName)                   \
68     V(StObjByName)                   \
69     V(LdObjByValue)                  \
70     V(StObjByValue)                  \
71     V(StOwnByName)                   \
72     V(StOwnById)                     \
73     V(StOwnByValue)                  \
74     V(Trygetobjprop)                 \
75     V(Delobjprop)                    \
76     V(Defineglobalvar)               \
77     V(Definelocalvar)                \
78     V(Definefuncexpr)                \
79     V(DefineFunc)                    \
80     V(SetPatchModule)                \
81     V(NewobjRange)                   \
82     V(Refeq)                         \
83     V(Typeof)                        \
84     V(Ldnewobjrange)                 \
85     V(IsIn)                          \
86     V(Instanceof)                    \
87     V(InstanceofByHandler)           \
88     V(NewObjApply)                   \
89     V(CallArg0)                      \
90     V(CallArg1)                      \
91     V(CallArg2)                      \
92     V(CallArg3)                      \
93     V(CallThisRange)                 \
94     V(CallRange)                     \
95     V(CallSpread)                    \
96     V(Newlexenv)                     \
97     V(NewlexenvwithName)             \
98     V(NewSendableEnv)                \
99     V(Stlexvar)                      \
100     V(Ldlexvar)                      \
101     V(Ldlexenv)                      \
102     V(GetPropIterator)               \
103     V(GetPropIteratorSlowpath)       \
104     V(PrimitiveStringCreate)         \
105     V(CreateIterResultObj)           \
106     V(SuspendGenerator)              \
107     V(ResumeGenerator)               \
108     V(GetResumeMode)                 \
109     V(CreateGeneratorObj)            \
110     V(DefineGetterSetterByValue)     \
111     V(AsyncFunctionEnter)            \
112     V(AsyncFunctionAwaitUncaught)    \
113     V(AsyncFunctionResolveOrReject ) \
114     V(ThrowUndefined)                \
115     V(ThrowConstAssignment)          \
116     V(ThrowUndefinedIfHole)          \
117     V(Copyrestargs)                  \
118     V(Trystobjprop)                  \
119     V(GetTemplateObject)             \
120     V(CreateStringIterator)          \
121     V(NewJSArrayIterator)            \
122     V(NewJSTypedArrayIterator)       \
123     V(MapIteratorNext)               \
124     V(SetIteratorNext)               \
125     V(StringIteratorNext)            \
126     V(ArrayIteratorNext)             \
127     V(GetIterator)                   \
128     V(GetAsyncIterator)              \
129     V(ThrowIfNotObject)              \
130     V(ThrowThrowNotExists)           \
131     V(CreateObjectWithExcludedKeys ) \
132     V(ThrowPatternNonCoercible)      \
133     V(IterNext)                      \
134     V(CloseIterator)                 \
135     V(StArraySpread)                 \
136     V(GetCallSpreadArgs)             \
137     V(TryLoadICByName)               \
138     V(LoadICByName)                  \
139     V(GetPropertyByName)             \
140     V(TryLoadICByValue)              \
141     V(LoadICByValue)                 \
142     V(TryStoreICByName)              \
143     V(StoreOwnICByValue)             \
144     V(StoreICByName)                 \
145     V(StoreOwnICByName)              \
146     V(TryStoreICByValue)             \
147     V(StoreICByValue)                \
148     V(NotifyInlineCache)             \
149     V(LoadGlobalICByName)            \
150     V(StoreGlobalICByName)           \
151     V(StoreICWithHandler)            \
152     V(StorePrototype)                \
153     V(StoreWithTransition)           \
154     V(StoreTransWithProto)           \
155     V(StoreWithAOT)                  \
156     V(StoreField)                    \
157     V(StoreGlobal)                   \
158     V(LoadPrototype)                 \
159     V(LoadICWithHandler)             \
160     V(StoreElement)                  \
161     V(CallGetter)                    \
162     V(CallSetter)                    \
163     V(AddPropertyByName)             \
164     V(AddPropertyByIndex)            \
165     V(GetPropertyByIndex)            \
166     V(GetPropertyByValue)            \
167     V(SetPropertyByIndex)            \
168     V(SetPropertyByValue)            \
169     V(FastTypeOf)                    \
170     V(FastSetPropertyByIndex)        \
171     V(FastSetPropertyByValue)        \
172     V(FastGetPropertyByName)         \
173     V(FastGetPropertyByValue)        \
174     V(FastGetPropertyByIndex)        \
175     V(NewLexicalEnv)                 \
176     V(ExecuteNative)                 \
177     V(Execute)                       \
178     V(AsmExecute)                    \
179     V(ExecuteAot)                    \
180     V(ToJSTaggedValueWithInt32)      \
181     V(ToJSTaggedValueWithUint32)     \
182     V(ThrowIfSuperNotCorrectCall)    \
183     V(CreateEmptyArray)              \
184     V(CreateEmptyObject)             \
185     V(CreateObjectWithBuffer)        \
186     V(CreateObjectHavingMethod)      \
187     V(SetObjectWithProto)            \
188     V(getmodulenamespace)            \
189     V(StModuleVar)                   \
190     V(LdModuleVar)                   \
191     V(CreateRegExpWithLiteral)       \
192     V(CreateArrayWithBuffer)         \
193     V(GetNextPropName)               \
194     V(GetNextPropNameSlowpath)       \
195     V(CopyDataProperties)            \
196     V(GetUnmapedArgs)                \
197     V(TryStGlobalByName)             \
198     V(LdGlobalVar)                   \
199     V(StGlobalVar)                   \
200     V(TryUpdateGlobalRecord)         \
201     V(LdGlobalRecord)                \
202     V(StGlobalRecord)                \
203     V(ThrowReferenceError)           \
204     V(ThrowTypeError)                \
205     V(MismatchError)                 \
206     V(ThrowSyntaxError)              \
207     V(NewClassFunc)                  \
208     V(DefineClass)                   \
209     V(SuperCall)                     \
210     V(SuperCallSpread)               \
211     V(DefineMethod)                  \
212     V(LdSuperByValue)                \
213     V(StSuperByValue)                \
214     V(ThrowDeleteSuperProperty)      \
215     V(SetPropertyByName)             \
216     V(LdBigInt)                      \
217     V(Tonumeric)                     \
218     V(CreateAsyncGeneratorObj)       \
219     V(AsyncGeneratorResolve)         \
220     V(GetSuperConstructor)           \
221     V(DynamicImport)                 \
222     V(LdPatchVar)                    \
223     V(StPatchVar)                    \
224     V(AsyncGeneratorReject)          \
225     V(LdPrivateProperty)             \
226     V(StPrivateProperty)             \
227     V(TestIn)                        \
228     V(NotifyConcurrentResult)        \
229     V(DefineField)                   \
230     V(ToPropertyKey)                 \
231     V(CreatePrivateProperty)         \
232     V(DefinePrivateProperty)         \
233     V(CreateSharedClass)             \
234     V(LdSendableClass)               \
235     V(UpdateAOTHClass)               \
236     V(TraceNum)                      \
237     V(TraceLazyDeoptNum)             \
238     V(TraceLazyDeoptFailNum)         \
239     V(SetGeneratorState)
240 
241 // NOLINTNEXTLINE(cppcoreguidelines-macro-usage)
242 #define BUILTINS_API_LIST(V)                   \
243     V(Array, Constructor)                     \
244     V(Array, From)                            \
245     V(Array, Of)                              \
246     V(Array, IsArray)                         \
247     V(Array, Entries)                         \
248     V(Array, Species)                         \
249     V(Array, Concat)                          \
250     V(Array, CopyWithin)                      \
251     V(Array, Every)                           \
252     V(Array, Fill)                            \
253     V(Array, Filter)                          \
254     V(Array, Find)                            \
255     V(Array, FindIndex)                       \
256     V(Array, FindLast)                        \
257     V(Array, FindLastIndex)                   \
258     V(Array, ForEach)                         \
259     V(Array, IndexOf)                         \
260     V(Array, Join)                            \
261     V(Array, Keys)                            \
262     V(Array, LastIndexOf)                     \
263     V(Array, Map)                             \
264     V(Array, Pop)                             \
265     V(Array, Push)                            \
266     V(Array, Reduce)                          \
267     V(Array, ReduceRight)                     \
268     V(Array, Reverse)                         \
269     V(Array, Shift)                           \
270     V(Array, Slice)                           \
271     V(Array, Some)                            \
272     V(Array, Sort)                            \
273     V(Array, Splice)                          \
274     V(Array, ToLocaleString)                  \
275     V(Array, ToString)                        \
276     V(Array, Unscopables)                     \
277     V(Array, Unshift)                         \
278     V(Array, Values)                          \
279     V(Array, Includes)                        \
280     V(Array, Flat)                            \
281     V(Array, FlatMap)                         \
282     V(Array, At)                              \
283     V(Array, ToReversed)                      \
284     V(Array, With)                            \
285     V(Array, ToSorted)                        \
286     V(Array, ToSpliced)                       \
287     V(SharedArray, Constructor)               \
288     V(SharedArray, From)                      \
289     V(SharedArray, Create)                    \
290     V(SharedArray, IsArray)                   \
291     V(SharedArray, Entries)                   \
292     V(SharedArray, Species)                   \
293     V(SharedArray, Concat)                    \
294     V(SharedArray, Fill)                      \
295     V(SharedArray, Filter)                    \
296     V(SharedArray, Find)                      \
297     V(SharedArray, FindLast)                  \
298     V(SharedArray, FindIndex)                 \
299     V(SharedArray, FindLastIndex)             \
300     V(SharedArray, ForEach)                   \
301     V(SharedArray, IndexOf)                   \
302     V(SharedArray, Join)                      \
303     V(SharedArray, Keys)                      \
304     V(SharedArray, Map)                       \
305     V(SharedArray, Pop)                       \
306     V(SharedArray, Push)                      \
307     V(SharedArray, Reduce)                    \
308     V(SharedArray, Shift)                     \
309     V(SharedArray, Slice)                     \
310     V(SharedArray, Sort)                      \
311     V(SharedArray, Splice)                    \
312     V(SharedArray, ToString)                  \
313     V(SharedArray, ToLocaleString)            \
314     V(SharedArray, Unscopables)               \
315     V(SharedArray, Unshift)                   \
316     V(SharedArray, Values)                    \
317     V(SharedArray, Includes)                  \
318     V(SharedArray, Flat)                      \
319     V(SharedArray, FlatMap)                   \
320     V(SharedArray, At)                        \
321     V(SharedArray, With)                      \
322     V(SharedArray, ShrinkTo)                  \
323     V(SharedArray, ExtendTo)                  \
324     V(SharedArray, Every)                     \
325     V(SharedArray, Some)                      \
326     V(SharedArray, LastIndexOf)               \
327     V(SharedArray, Of)                        \
328     V(SharedArray, CopyWithin)                \
329     V(SharedArray, Reverse)                   \
330     V(SharedArray, ReduceRight)               \
331     V(ArrayBuffer, Constructor)               \
332     V(ArrayBuffer, Slice)                     \
333     V(ArrayBuffer, Species)                   \
334     V(ArrayBuffer, GetByteLength)             \
335     V(ArrayBuffer, GetValueFromBuffer)        \
336     V(ArrayBuffer, SetValueInBuffer)          \
337     V(ArrayBuffer, CloneArrayBuffer)          \
338     V(ArrayBuffer, AllocateArrayBuffer)       \
339     V(ArrayBuffer, IsView)                    \
340     V(SharedArrayBuffer, Constructor)         \
341     V(SharedArrayBuffer, Slice)               \
342     V(SharedArrayBuffer, AllocateSharedArrayBuffer) \
343     V(SharedArrayBuffer, IsSharedArrayBuffer) \
344     V(SharedArrayBuffer, IsView)              \
345     V(SharedArrayBuffer, Species)             \
346     V(SharedArrayBuffer, GetByteLength)       \
347     V(SendableArrayBuffer, Constructor)       \
348     V(SendableArrayBuffer, Slice)             \
349     V(SendableArrayBuffer, Species)           \
350     V(SendableArrayBuffer, GetByteLength)     \
351     V(SendableArrayBuffer, GetValueFromBuffer)  \
352     V(SendableArrayBuffer, SetValueInBuffer)  \
353     V(SendableArrayBuffer, CloneArrayBuffer)  \
354     V(SendableArrayBuffer, AllocateSendableArrayBuffer) \
355     V(SendableArrayBuffer, IsView)            \
356     V(AsyncFromSyncIterator, Next)            \
357     V(AsyncFromSyncIterator, Throw)           \
358     V(AsyncFromSyncIterator, Return)          \
359     V(AsyncFunction, Constructor)             \
360     V(SharedAsyncFunction, Constructor)       \
361     V(Boolean, BooleanPrototypeToString)      \
362     V(Boolean, BooleanPrototypeValueOf)       \
363     V(Boolean, Constructor)                   \
364     V(Boolean, ThisBooleanValue)              \
365     V(CjsExports, CjsExportsConstructor)      \
366     V(CjsModule, CjsModuleConstructor)        \
367     V(CjsModule, Compiler)                    \
368     V(CjsModule, Load)                        \
369     V(CjsModule, ResolveFilename)             \
370     V(CjsModule, Require)                     \
371     V(CjsModule, GetExportsForCircularRequire) \
372     V(CjsModule, UpdateChildren)              \
373     V(CjsRequire, CjsRequireConstructor)      \
374     V(CjsRequire, Main)                       \
375     V(CjsRequire, Resolve)                    \
376     V(Collator, CollatorConstructor)          \
377     V(Collator, SupportedLocalesOf)           \
378     V(Collator, Compare)                      \
379     V(Collator, AnonymousCollator)            \
380     V(Collator, ResolvedOptions)              \
381     V(DataView, Constructor)                  \
382     V(DataView, GetBuffer)                    \
383     V(DataView, GetByteLength)                \
384     V(DataView, GetOffset)                    \
385     V(DataView, GetViewValue)                 \
386     V(DataView, SetViewValue)                 \
387     V(DataView, GetFloat32)                   \
388     V(DataView, GetFloat64)                   \
389     V(DataView, GetInt8)                      \
390     V(DataView, GetInt16)                     \
391     V(DataView, GetInt32)                     \
392     V(DataView, GetUint8)                     \
393     V(DataView, GetUint16)                    \
394     V(DataView, GetUint32)                    \
395     V(DataView, GetBigInt64)                  \
396     V(DataView, GetBigUint64)                 \
397     V(DataView, SetFloat32)                   \
398     V(DataView, SetFloat64)                   \
399     V(DataView, SetInt8)                      \
400     V(DataView, SetInt16)                     \
401     V(DataView, SetInt32)                     \
402     V(DataView, SetUint8)                     \
403     V(DataView, SetUint16)                    \
404     V(DataView, SetUint32)                    \
405     V(DataView, SetBigInt64)                  \
406     V(DataView, SetBigUint64)                 \
407     V(DataView, GetTypedValue)                \
408     V(DataView, SetTypedValue)                \
409     V(Date, Constructor)                      \
410     V(Date, Now)                              \
411     V(Date, UTC)                              \
412     V(Date, Parse)                            \
413     V(Date, GetDateField)                     \
414     V(Date, GetTime)                          \
415     V(Date, SetTime)                          \
416     V(Date, ToJSON)                           \
417     V(Date, ValueOf)                          \
418     V(Date, ToPrimitive)                      \
419     V(Date, ToLocaleString)                   \
420     V(Date, ToLocaleDateString)               \
421     V(Date, ToLocaleTimeString)               \
422     V(DateTimeFormat, Constructor)            \
423     V(DateTimeFormat, SupportedLocalesOf)     \
424     V(DateTimeFormat, Format)                 \
425     V(DateTimeFormat, AnonymousDateTimeFormat) \
426     V(DateTimeFormat, FormatToParts)          \
427     V(DateTimeFormat, ResolvedOptions)        \
428     V(DateTimeFormat, FormatRange)            \
429     V(DateTimeFormat, FormatRangeToParts)     \
430     V(DisplayNames, Constructor)              \
431     V(DisplayNames, SupportedLocalesOf)       \
432     V(DisplayNames, Of)                       \
433     V(DisplayNames, ResolvedOptions)          \
434     V(Segmenter, Constructor)                 \
435     V(Segmenter, SupportedLocalesOf)          \
436     V(Segmenter, ResolvedOptions)             \
437     V(Segmenter, Segment)                     \
438     V(Segments, Containing)                   \
439     V(Segments, GetSegmentIterator)           \
440     V(SegmentIterator, Next)                  \
441     V(Error, ErrorConstructor)                \
442     V(Error, ErrorToString)                   \
443     V(Error, RangeErrorConstructor)           \
444     V(Error, RangeErrorToString)              \
445     V(Error, ReferenceErrorConstructor)       \
446     V(Error, ReferenceErrorToString)          \
447     V(Error, TypeErrorConstructor)            \
448     V(Error, TypeErrorToString)               \
449     V(Error, ThrowTypeError)                  \
450     V(Error, URIErrorConstructor)             \
451     V(Error, URIErrorToString)                \
452     V(Error, SyntaxErrorConstructor)          \
453     V(Error, SyntaxErrorToString)             \
454     V(Error, EvalErrorConstructor)            \
455     V(Error, EvalErrorToString)               \
456     V(Error, AggregateErrorConstructor)       \
457     V(Error, AggregateErrorToString)          \
458     V(Error, OOMErrorConstructor)             \
459     V(Error, OOMErrorToString)                \
460     V(Error, TerminationErrorConstructor)     \
461     V(Error, TerminationErrorToString)        \
462     V(Function, Constructor)                  \
463     V(Function, PrototypeApply)               \
464     V(Function, PrototypeBind)                \
465     V(Function, PrototypeCall)                \
466     V(Function, PrototypeToString)            \
467     V(Function, PrototypeHasInstance)         \
468     V(Function, PrototypeInvokeSelf)          \
469     V(Generator, Constructor)                 \
470     V(Generator, PrototypeNext)               \
471     V(Generator, PrototypeReturn)             \
472     V(Generator, PrototypeThrow)              \
473     V(Global, IsFinite)                       \
474     V(Global, NotSupportEval)                 \
475     V(Global, Encode)                         \
476     V(Global, IsNaN)                          \
477     V(Global, PrintEntryPoint)                \
478     V(Global, NewobjRange)                    \
479     V(Global, Decode)                         \
480     V(Global, PrintString)                    \
481     V(Global, StartRuntimeStat)               \
482     V(Global, StopRuntimeStat)                \
483     V(Global, PrintOptStat)                   \
484     V(Global, PrintMegaICStat)                \
485     V(Global, PrintFunctionCallStat)          \
486     V(Global, CallJsBoundFunction)            \
487     V(Global, CallJsProxy)                    \
488     V(Global, DecodeURI)                      \
489     V(Global, EncodeURI)                      \
490     V(Global, DecodeURIComponent)             \
491     V(Global, EncodeURIComponent)             \
492     V(Global, Escape)                         \
493     V(Global, Unescape)                       \
494     V(Global, GetCurrentModuleName)           \
495     V(Global, GetCurrentBundleName)           \
496     V(Intl, GetCanonicalLocales)              \
497     V(Iterator, Constructor)                  \
498     V(Iterator, Next)                         \
499     V(Iterator, Throw)                        \
500     V(Iterator, Return)                       \
501     V(Iterator, GetObj)                       \
502     V(Locale, Constructor)                    \
503     V(Locale, Maximize)                       \
504     V(Locale, Minimize)                       \
505     V(Locale, ToString)                       \
506     V(Locale, GetBaseName)                    \
507     V(Locale, GetCalendar)                    \
508     V(Locale, GetCaseFirst)                   \
509     V(Locale, GetCollation)                   \
510     V(Locale, GetHourCycle)                   \
511     V(Locale, GetNumeric)                     \
512     V(Locale, GetNumberingSystem)             \
513     V(Locale, GetLanguage)                    \
514     V(Locale, GetScript)                      \
515     V(Locale, GetRegion)                      \
516     V(AsyncIterator, Constructor)             \
517     V(AsyncIterator, Next)                    \
518     V(AsyncIterator, Throw)                   \
519     V(AsyncIterator, Return)                  \
520     V(AsyncIterator, GetObj)                  \
521     V(Json, Parse)                            \
522     V(Json, Stringify)                        \
523     V(Map, Constructor)                       \
524     V(Map, Species)                           \
525     V(Map, Clear)                             \
526     V(Map, Delete)                            \
527     V(Map, Entries)                           \
528     V(Map, Get)                               \
529     V(Map, Has)                               \
530     V(Map, Keys)                              \
531     V(Map, Set)                               \
532     V(Map, GetSize)                           \
533     V(Map, Values)                            \
534     V(Map, ForEach)                           \
535     V(Map, AddEntriesFromIterable)            \
536     V(SharedMap, Constructor)               \
537     V(SharedMap, Species)                   \
538     V(SharedMap, Clear)                     \
539     V(SharedMap, Delete)                    \
540     V(SharedMap, Entries)                   \
541     V(SharedMap, Get)                       \
542     V(SharedMap, Has)                       \
543     V(SharedMap, Keys)                      \
544     V(SharedMap, Set)                       \
545     V(SharedMap, GetSize)                   \
546     V(SharedMap, Values)                    \
547     V(SharedMap, ForEach)                   \
548     V(SharedMap, AddEntriesFromIterable)    \
549     V(Math, Abs)                              \
550     V(Math, Acos)                             \
551     V(Math, Acosh)                            \
552     V(Math, Asin)                             \
553     V(Math, Asinh)                            \
554     V(Math, Atan)                             \
555     V(Math, Atanh)                            \
556     V(Math, Atan2)                            \
557     V(Math, Cbrt)                             \
558     V(Math, Ceil)                             \
559     V(Math, Clz32)                            \
560     V(Math, Cos)                              \
561     V(Math, Cosh)                             \
562     V(Math, Exp)                              \
563     V(Math, Expm1)                            \
564     V(Math, Floor)                            \
565     V(Math, Fround)                           \
566     V(Math, Hypot)                            \
567     V(Math, Imul)                             \
568     V(Math, Log)                              \
569     V(Math, Log1p)                            \
570     V(Math, Log10)                            \
571     V(Math, Log2)                             \
572     V(Math, Max)                              \
573     V(Math, Min)                              \
574     V(Math, Pow)                              \
575     V(Math, Random)                           \
576     V(Math, Round)                            \
577     V(Math, Sign)                             \
578     V(Math, Sin)                              \
579     V(Math, Sinh)                             \
580     V(Math, Sqrt)                             \
581     V(Math, Tan)                              \
582     V(Math, Tanh)                             \
583     V(Math, Trunc)                            \
584     V(NumberFormat, Constructor)              \
585     V(NumberFormat, SupportedLocalesOf)       \
586     V(NumberFormat, Format)                   \
587     V(NumberFormat, FormatToParts)            \
588     V(NumberFormat, ResolvedOptions)          \
589     V(Atomics, AtomicReadModifyWrite)         \
590     V(Atomics, AtomicReadModifyWriteCase)     \
591     V(Atomics, Add)                           \
592     V(Atomics, And)                           \
593     V(Atomics, DoWait)                        \
594     V(Atomics, HandleWithUint8)               \
595     V(Atomics, HandleWithInt8)                \
596     V(Atomics, HandleWithUint16)              \
597     V(Atomics, HandleWithInt16)               \
598     V(Atomics, HandleWithUint32)              \
599     V(Atomics, HandleWithInt32)               \
600     V(Atomics, HandleWithBigInt64)            \
601     V(Atomics, HandleWithBigUint64)           \
602     V(Atomics, Or)                            \
603     V(Atomics, Xor)                           \
604     V(Atomics, Sub)                           \
605     V(Atomics, Exchange)                      \
606     V(Atomics, CompareExchange)               \
607     V(Atomics, Store)                         \
608     V(Atomics, Load)                          \
609     V(Atomics, IsLockFree)                    \
610     V(Atomics, Wait)                          \
611     V(Atomics, Notify)                        \
612     V(Number, Constructor)                    \
613     V(Number, IsFinite)                       \
614     V(Number, IsInteger)                      \
615     V(Number, IsNaN)                          \
616     V(Number, IsSafeInteger)                  \
617     V(Number, ParseFloat)                     \
618     V(Number, ParseInt)                       \
619     V(Number, ToExponential)                  \
620     V(Number, ToFixed)                        \
621     V(Number, ToLocaleString)                 \
622     V(Number, ToPrecision)                    \
623     V(Number, ToString)                       \
624     V(Number, ValueOf)                        \
625     V(Number, ThisNumberValue)                \
626     V(BigInt, Constructor)                    \
627     V(BigInt, AsUintN)                        \
628     V(BigInt, AsIntN)                         \
629     V(BigInt, ToLocaleString)                 \
630     V(BigInt, ToString)                       \
631     V(BigInt, ValueOf)                        \
632     V(BigInt, ThisBigIntValue)                \
633     V(AsyncGenerator, Constructor)            \
634     V(AsyncGenerator, PrototypeNext)          \
635     V(AsyncGenerator, PrototypeReturn)        \
636     V(AsyncGenerator, PrototypeThrow)         \
637     V(Object, Constructor)                    \
638     V(Object, Assign)                         \
639     V(Object, Create)                         \
640     V(Object, CreateDataPropertyOnObjectFunctions) \
641     V(Object, DefineProperties)               \
642     V(Object, DefineProperty)                 \
643     V(Object, Freeze)                         \
644     V(Object, FromEntries)                    \
645     V(Object, GetOwnPropertyDescriptor)       \
646     V(Object, GetOwnPropertyDescriptors)      \
647     V(Object, GetOwnPropertyKeys)             \
648     V(Object, GetOwnPropertyNames)            \
649     V(Object, GetOwnPropertySymbols)          \
650     V(Object, GetPrototypeOf)                 \
651     V(Object, Is)                             \
652     V(Object, IsExtensible)                   \
653     V(Object, IsFrozen)                       \
654     V(Object, IsSealed)                       \
655     V(Object, PropertyIsEnumerable)           \
656     V(Object, CreateRealm)                    \
657     V(Object, Keys)                           \
658     V(Object, Values)                         \
659     V(Object, PreventExtensions)              \
660     V(Object, Seal)                           \
661     V(Object, SetPrototypeOf)                 \
662     V(Object, HasOwnProperty)                 \
663     V(Object, HasOwn)                         \
664     V(Object, IsPrototypeOf)                  \
665     V(Object, ToLocaleString)                 \
666     V(Object, GetBuiltinObjectToString)       \
667     V(Object, ToString)                       \
668     V(Object, ValueOf)                        \
669     V(Object, ProtoGetter)                    \
670     V(Object, ProtoSetter)                    \
671     V(PluralRules, Constructor)               \
672     V(PluralRules, SupportedLocalesOf)        \
673     V(PluralRules, Select)                    \
674     V(PluralRules, ResolvedOptions)           \
675     V(PromiseHandler, Resolve)                \
676     V(PromiseHandler, Reject)                 \
677     V(PromiseHandler, Executor)               \
678     V(PromiseHandler, ResolveElementFunction) \
679     V(PromiseHandler, AllSettledResolveElementFunction) \
680     V(PromiseHandler, AllSettledRejectElementFunction) \
681     V(PromiseHandler, AnyRejectElementFunction) \
682     V(PromiseHandler, AsyncAwaitRejected)     \
683     V(PromiseHandler, AsyncAwaitFulfilled)    \
684     V(PromiseHandler, valueThunkFunction)     \
685     V(PromiseHandler, throwerFunction)        \
686     V(PromiseHandler, ThenFinally)            \
687     V(PromiseHandler, CatchFinally)           \
688     V(PromiseHandler, PromiseResolve)         \
689     V(PromiseJob, Reaction)                   \
690     V(PromiseJob, ResolveThenableJob)         \
691     V(PromiseJob, DynamicImportJob)           \
692     V(PromiseJob, CatchException)             \
693     V(Promise, Constructor)                   \
694     V(Promise, All)                           \
695     V(Promise, Race)                          \
696     V(Promise, Reject)                        \
697     V(Promise, Resolve)                       \
698     V(Promise, GetSpecies)                    \
699     V(Promise, GetPromiseResolve)             \
700     V(Promise, Catch)                         \
701     V(Promise, Then)                          \
702     V(Promise, PerformPromiseThen)            \
703     V(Promise, Finally)                       \
704     V(Promise, Any)                           \
705     V(Promise, PerformPromiseAny)             \
706     V(Promise, AllSettled)                    \
707     V(Promise, PerformPromiseRace)            \
708     V(Promise, PerformPromiseAll)             \
709     V(Promise, PerformPromiseAllSettled)      \
710     V(Proxy, Constructor)                     \
711     V(Proxy, Revocable)                       \
712     V(Proxy, InvalidateProxyFunction)         \
713     V(Reflect, Apply)                         \
714     V(Reflect, Constructor)                   \
715     V(Reflect, DefineProperty)                \
716     V(Reflect, DeleteProperty)                \
717     V(Reflect, Get)                           \
718     V(Reflect, GetOwnPropertyDescriptor)      \
719     V(Reflect, GetPrototypeOf)                \
720     V(Reflect, Has)                           \
721     V(Reflect, OwnKeys)                       \
722     V(Reflect, PreventExtensions)             \
723     V(Reflect, Set)                           \
724     V(Reflect, SetPrototypeOf)                \
725     V(RegExp, Constructor)                    \
726     V(RegExp, Exec)                           \
727     V(RegExp, Test)                           \
728     V(RegExp, ToString)                       \
729     V(RegExp, GetFlags)                       \
730     V(RegExp, GetSpecies)                     \
731     V(RegExp, Match)                          \
732     V(RegExp, MatchAll)                       \
733     V(RegExp, Replace)                        \
734     V(RegExp, Search)                         \
735     V(RegExp, Split)                          \
736     V(RegExp, Create)                         \
737     V(RegExp, GetGlobal)                      \
738     V(RegExp, GetHasIndices)                  \
739     V(RegExp, GetIgnoreCase)                  \
740     V(RegExp, GetMultiline)                   \
741     V(RegExp, GetDotAll)                      \
742     V(RegExp, GetSource)                      \
743     V(RegExp, GetSticky)                      \
744     V(RegExp, GetUnicode)                     \
745     V(RegExp, RegExpReplaceFast)              \
746     V(RegExp, Matcher)                        \
747     V(RegExp, GetFlagsInternal)               \
748     V(RegExp, RegExpBuiltinExec)              \
749     V(RegExp, RegExpExec)                     \
750     V(RegExp, UpdateExpressionFlags)          \
751     V(RegExp, RegExpAlloc)                    \
752     V(RegExp, GetDollarString)                \
753     V(RegExp, RegExpInitialize)               \
754     V(RegExp, EscapeRegExpPattern)            \
755     V(RegExp, FlagsBitsToString)              \
756     V(RelativeTimeFormat, Constructor)        \
757     V(RelativeTimeFormat, SupportedLocalesOf) \
758     V(RelativeTimeFormat, Format)             \
759     V(RelativeTimeFormat, FormatToParts)      \
760     V(RelativeTimeFormat, ResolvedOptions)    \
761     V(Set, Constructor)                       \
762     V(Set, Species)                           \
763     V(Set, Add)                               \
764     V(Set, Clear)                             \
765     V(Set, Delete)                            \
766     V(Set, Entries)                           \
767     V(Set, Has)                               \
768     V(Set, GetSize)                           \
769     V(Set, Values)                            \
770     V(Set, ForEach)                           \
771     V(SharedSet, Constructor)                 \
772     V(SharedSet, Species)                     \
773     V(SharedSet, Add)                         \
774     V(SharedSet, Clear)                       \
775     V(SharedSet, Delete)                      \
776     V(SharedSet, Entries)                     \
777     V(SharedSet, Has)                         \
778     V(SharedSet, GetSize)                     \
779     V(SharedSet, Values)                      \
780     V(SharedSet, ForEach)                     \
781     V(StringIterator, Next)                   \
782     V(String, Constructor)                    \
783     V(String, FromCharCode)                   \
784     V(String, FromCodePoint)                  \
785     V(String, Raw)                            \
786     V(String, GetSubstitution)                \
787     V(String, At)                             \
788     V(String, CharAt)                         \
789     V(String, CharCodeAt)                     \
790     V(String, IsWellFormed)                   \
791     V(String, ToWellFormed)                   \
792     V(String, CodePointAt)                    \
793     V(String, Concat)                         \
794     V(String, EndsWith)                       \
795     V(String, Includes)                       \
796     V(String, IndexOf)                        \
797     V(String, LastIndexOf)                    \
798     V(String, LocaleCompare)                  \
799     V(String, Match)                          \
800     V(String, MatchAll)                       \
801     V(String, Normalize)                      \
802     V(String, PadStart)                       \
803     V(String, PadEnd)                         \
804     V(String, Repeat)                         \
805     V(String, Replace)                        \
806     V(String, ReplaceAll)                     \
807     V(String, Search)                         \
808     V(String, Slice)                          \
809     V(String, Split)                          \
810     V(String, StartsWith)                     \
811     V(String, Substring)                      \
812     V(String, ToLocaleLowerCase)              \
813     V(String, ToLocaleUpperCase)              \
814     V(String, ToLowerCase)                    \
815     V(String, ToString)                       \
816     V(String, ToUpperCase)                    \
817     V(String, Trim)                           \
818     V(String, TrimStart)                      \
819     V(String, TrimEnd)                        \
820     V(String, TrimLeft)                       \
821     V(String, TrimRight)                      \
822     V(String, GetStringIterator)              \
823     V(String, SubStr)                         \
824     V(String, GetLength)                      \
825     V(String, ThisStringValue)                \
826     V(String, Pad)                            \
827     V(Symbol, Constructor)                    \
828     V(Symbol, ToString)                       \
829     V(Symbol, ValueOf)                        \
830     V(Symbol, For)                            \
831     V(Symbol, KeyFor)                         \
832     V(Symbol, DescriptionGetter)              \
833     V(Symbol, ThisSymbolValue)                \
834     V(Symbol, ToPrimitive)                    \
835     V(Symbol, SymbolDescriptiveString)        \
836     V(TypedArray, BaseConstructor)            \
837     V(TypedArray, Int8ArrayConstructor)       \
838     V(TypedArray, Uint8ArrayConstructor)      \
839     V(TypedArray, Uint8ClampedArrayConstructor) \
840     V(TypedArray, Int16ArrayConstructor)      \
841     V(TypedArray, Uint16ArrayConstructor)     \
842     V(TypedArray, Int32ArrayConstructor)      \
843     V(TypedArray, Uint32ArrayConstructor)     \
844     V(TypedArray, Float32ArrayConstructor)    \
845     V(TypedArray, Float64ArrayConstructor)    \
846     V(TypedArray, BigInt64ArrayConstructor)   \
847     V(TypedArray, BigUint64ArrayConstructor)  \
848     V(TypedArray, Fill)                       \
849     V(TypedArray, Find)                       \
850     V(TypedArray, FindIndex)                  \
851     V(TypedArray, FindLast)                   \
852     V(TypedArray, FindLastIndex)              \
853     V(TypedArray, IndexOf)                    \
854     V(TypedArray, LastIndexOf)                \
855     V(TypedArray, Reduce)                     \
856     V(TypedArray, ReduceRight)                \
857     V(TypedArray, Reverse)                    \
858     V(TypedArray, Some)                       \
859     V(TypedArray, ToLocaleString)             \
860     V(TypedArray, ToString)                   \
861     V(TypedArray, Includes)                   \
862     V(TypedArray, From)                       \
863     V(TypedArray, Of)                         \
864     V(TypedArray, Species)                    \
865     V(TypedArray, GetBuffer)                  \
866     V(TypedArray, GetByteLength)              \
867     V(TypedArray, GetByteOffset)              \
868     V(TypedArray, CopyWithin)                 \
869     V(TypedArray, Entries)                    \
870     V(TypedArray, Every)                      \
871     V(TypedArray, Filter)                     \
872     V(TypedArray, ForEach)                    \
873     V(TypedArray, Join)                       \
874     V(TypedArray, Keys)                       \
875     V(TypedArray, GetLength)                  \
876     V(TypedArray, Map)                        \
877     V(TypedArray, Set)                        \
878     V(TypedArray, Slice)                      \
879     V(TypedArray, Sort)                       \
880     V(TypedArray, ToSorted)                   \
881     V(TypedArray, Subarray)                   \
882     V(TypedArray, Values)                     \
883     V(TypedArray, With)                       \
884     V(TypedArray, ToStringTag)                \
885     V(TypedArray, At)                         \
886     V(TypedArray, ToReversed)                 \
887     V(SharedTypedArray, BaseConstructor)              \
888     V(SharedTypedArray, Int8ArrayConstructor)         \
889     V(SharedTypedArray, Uint8ArrayConstructor)        \
890     V(SharedTypedArray, Uint8ClampedArrayConstructor) \
891     V(SharedTypedArray, Int16ArrayConstructor)        \
892     V(SharedTypedArray, Uint16ArrayConstructor)       \
893     V(SharedTypedArray, Int32ArrayConstructor)        \
894     V(SharedTypedArray, Uint32ArrayConstructor)       \
895     V(SharedTypedArray, Float32ArrayConstructor)      \
896     V(SharedTypedArray, Float64ArrayConstructor)      \
897     V(SharedTypedArray, BigInt64ArrayConstructor)     \
898     V(SharedTypedArray, BigUint64ArrayConstructor)    \
899     V(SharedTypedArray, Fill)                 \
900     V(SharedTypedArray, Find)                 \
901     V(SharedTypedArray, FindIndex)            \
902     V(SharedTypedArray, IndexOf)              \
903     V(SharedTypedArray, LastIndexOf)          \
904     V(SharedTypedArray, Reduce)               \
905     V(SharedTypedArray, ReduceRight)          \
906     V(SharedTypedArray, Reverse)              \
907     V(SharedTypedArray, Some)                 \
908     V(SharedTypedArray, ToLocaleString)       \
909     V(SharedTypedArray, ToString)             \
910     V(SharedTypedArray, Includes)             \
911     V(SharedTypedArray, From)                 \
912     V(SharedTypedArray, Of)                   \
913     V(SharedTypedArray, Species)              \
914     V(SharedTypedArray, GetBuffer)            \
915     V(SharedTypedArray, GetByteLength)        \
916     V(SharedTypedArray, GetByteOffset)        \
917     V(SharedTypedArray, GetLength)            \
918     V(SharedTypedArray, CopyWithin)           \
919     V(SharedTypedArray, Entries)              \
920     V(SharedTypedArray, Every)                \
921     V(SharedTypedArray, Filter)               \
922     V(SharedTypedArray, ForEach)              \
923     V(SharedTypedArray, Join)                 \
924     V(SharedTypedArray, Keys)                 \
925     V(SharedTypedArray, Map)                  \
926     V(SharedTypedArray, Set)                  \
927     V(SharedTypedArray, Slice)                \
928     V(SharedTypedArray, Sort)                 \
929     V(SharedTypedArray, Subarray)             \
930     V(SharedTypedArray, Values)               \
931     V(SharedTypedArray, ToStringTag)          \
932     V(SharedTypedArray, At)                   \
933     V(WeakMap, Constructor)                   \
934     V(WeakMap, Delete)                        \
935     V(WeakMap, Get)                           \
936     V(WeakMap, Has)                           \
937     V(WeakMap, Set)                           \
938     V(WeakSet, Constructor)                   \
939     V(WeakSet, Delete)                        \
940     V(WeakSet, Add)                           \
941     V(WeakSet, Has)                           \
942     V(WeakRef, Constructor)                   \
943     V(WeakRef, Deref)                         \
944     V(FinalizationRegistry, Constructor)      \
945     V(FinalizationRegistry, Register)         \
946     V(FinalizationRegistry, Unregister)       \
947     V(ArrayList, Constructor)                 \
948     V(ArrayList, Add)                         \
949     V(ArrayList, Insert)                      \
950     V(ArrayList, Clear)                       \
951     V(ArrayList, Clone)                       \
952     V(ArrayList, Has)                         \
953     V(ArrayList, GetCapacity)                 \
954     V(ArrayList, IncreaseCapacityTo)          \
955     V(ArrayList, TrimToCurrentLength)         \
956     V(ArrayList, GetIndexOf)                  \
957     V(ArrayList, IsEmpty)                     \
958     V(ArrayList, GetLastIndexOf)              \
959     V(ArrayList, RemoveByIndex)               \
960     V(ArrayList, Remove)                      \
961     V(ArrayList, RemoveByRange)               \
962     V(ArrayList, ReplaceAllElements)          \
963     V(ArrayList, Sort)                        \
964     V(ArrayList, SubArrayList)                \
965     V(ArrayList, ConvertToArray)              \
966     V(ArrayList, ForEach)                     \
967     V(ArrayList, GetIteratorObj)              \
968     V(ArrayList, Get)                         \
969     V(ArrayList, Set)                         \
970     V(ArrayList, GetSize)                     \
971     V(BitVector, Constructor)                 \
972     V(BitVector, Push)                        \
973     V(BitVector, Pop)                         \
974     V(BitVector, Has)                         \
975     V(BitVector, SetBitsByRange)              \
976     V(BitVector, GetBitsByRange)              \
977     V(BitVector, Resize)                      \
978     V(BitVector, SetAllBits)                  \
979     V(BitVector, GetBitCountByRange)          \
980     V(BitVector, GetIndexOf)                  \
981     V(BitVector, GetLastIndexOf)              \
982     V(BitVector, FlipBitByIndex)              \
983     V(BitVector, FlipBitsByRange)             \
984     V(BitVector, GetSize)                     \
985     V(BitVector, GetIteratorObj)              \
986     V(ListFormat, Constructor)                \
987     V(ListFormat, SupportedLocalesOf)         \
988     V(ListFormat, Format)                     \
989     V(ListFormat, FormatToParts)              \
990     V(ListFormat, ResolvedOptions)            \
991     V(LightWeightMap, Constructor)            \
992     V(LightWeightMap, HasAll)                 \
993     V(LightWeightMap, HasKey)                 \
994     V(LightWeightMap, HasValue)               \
995     V(LightWeightMap, IncreaseCapacityTo)     \
996     V(LightWeightMap, Entries)                \
997     V(LightWeightMap, Get)                    \
998     V(LightWeightMap, GetIndexOfKey)          \
999     V(LightWeightMap, GetIndexOfValue)        \
1000     V(LightWeightMap, IsEmpty)                \
1001     V(LightWeightMap, GetKeyAt)               \
1002     V(LightWeightMap, Keys)                   \
1003     V(LightWeightMap, SetAll)                 \
1004     V(LightWeightMap, Set)                    \
1005     V(LightWeightMap, Remove)                 \
1006     V(LightWeightMap, RemoveAt)               \
1007     V(LightWeightMap, Clear)                  \
1008     V(LightWeightMap, SetValueAt)             \
1009     V(LightWeightMap, ForEach)                \
1010     V(LightWeightMap, ToString)               \
1011     V(LightWeightMap, GetValueAt)             \
1012     V(LightWeightMap, Length)                 \
1013     V(LightWeightSet, Constructor)            \
1014     V(LightWeightSet, Add)                    \
1015     V(LightWeightSet, AddAll)                 \
1016     V(LightWeightSet, IsEmpty)                \
1017     V(LightWeightSet, GetValueAt)             \
1018     V(LightWeightSet, HasAll)                 \
1019     V(LightWeightSet, Has)                    \
1020     V(LightWeightSet, HasHash)                \
1021     V(LightWeightSet, Equal)                  \
1022     V(LightWeightSet, IncreaseCapacityTo)     \
1023     V(LightWeightSet, GetIteratorObj)         \
1024     V(LightWeightSet, Values)                 \
1025     V(LightWeightSet, Entries)                \
1026     V(LightWeightSet, ForEach)                \
1027     V(LightWeightSet, GetIndexOf)             \
1028     V(LightWeightSet, Remove)                 \
1029     V(LightWeightSet, RemoveAt)               \
1030     V(LightWeightSet, Clear)                  \
1031     V(LightWeightSet, ToString)               \
1032     V(LightWeightSet, ToArray)                \
1033     V(LightWeightSet, GetSize)                \
1034     V(PlainArray, Constructor)                \
1035     V(PlainArray, Add)                        \
1036     V(PlainArray, Clear)                      \
1037     V(PlainArray, Clone)                      \
1038     V(PlainArray, Has)                        \
1039     V(PlainArray, Get)                        \
1040     V(PlainArray, GetIteratorObj)             \
1041     V(PlainArray, ForEach)                    \
1042     V(PlainArray, ToString)                   \
1043     V(PlainArray, GetIndexOfKey)              \
1044     V(PlainArray, GetIndexOfValue)            \
1045     V(PlainArray, IsEmpty)                    \
1046     V(PlainArray, GetKeyAt)                   \
1047     V(PlainArray, Remove)                     \
1048     V(PlainArray, RemoveAt)                   \
1049     V(PlainArray, RemoveRangeFrom)            \
1050     V(PlainArray, SetValueAt)                 \
1051     V(PlainArray, GetValueAt)                 \
1052     V(PlainArray, GetSize)                    \
1053     V(HashMap, Constructor)                   \
1054     V(HashMap, HasKey)                        \
1055     V(HashMap, HasValue)                      \
1056     V(HashMap, Replace)                       \
1057     V(HashMap, Keys)                          \
1058     V(HashMap, Values)                        \
1059     V(HashMap, GetIteratorObj)                \
1060     V(HashMap, Entries)                       \
1061     V(HashMap, ForEach)                       \
1062     V(HashMap, Set)                           \
1063     V(HashMap, SetAll)                        \
1064     V(HashMap, Remove)                        \
1065     V(HashMap, Get)                           \
1066     V(HashMap, Clear)                         \
1067     V(HashMap, GetLength)                     \
1068     V(HashMap, IsEmpty)                       \
1069     V(HashSet, Constructor)                   \
1070     V(HashSet, IsEmpty)                       \
1071     V(HashSet, Has)                           \
1072     V(HashSet, Add)                           \
1073     V(HashSet, Remove)                        \
1074     V(HashSet, Clear)                         \
1075     V(HashSet, GetLength)                     \
1076     V(HashSet, GetIteratorObj)                \
1077     V(HashSet, Values)                        \
1078     V(HashSet, Entries)                       \
1079     V(HashSet, ForEach)                       \
1080     V(TreeMap, Constructor)                   \
1081     V(TreeMap, HasKey)                        \
1082     V(TreeMap, HasValue)                      \
1083     V(TreeMap, GetFirstKey)                   \
1084     V(TreeMap, GetLastKey)                    \
1085     V(TreeMap, Set)                           \
1086     V(TreeMap, Get)                           \
1087     V(TreeMap, SetAll)                        \
1088     V(TreeMap, Remove)                        \
1089     V(TreeMap, Clear)                         \
1090     V(TreeMap, GetLowerKey)                   \
1091     V(TreeMap, GetHigherKey)                  \
1092     V(TreeMap, Replace)                       \
1093     V(TreeMap, IsEmpty)                       \
1094     V(TreeMap, GetLength)                     \
1095     V(TreeMap, Keys)                          \
1096     V(TreeMap, Values)                        \
1097     V(TreeMap, Entries)                       \
1098     V(TreeMap, ForEach)                       \
1099     V(TreeSet, Constructor)                   \
1100     V(TreeSet, Add)                           \
1101     V(TreeSet, Remove)                        \
1102     V(TreeSet, Clear)                         \
1103     V(TreeSet, Has)                           \
1104     V(TreeSet, GetFirstValue)                 \
1105     V(TreeSet, GetLastValue)                  \
1106     V(TreeSet, GetLowerValue)                 \
1107     V(TreeSet, GetHigherValue)                \
1108     V(TreeSet, PopFirst)                      \
1109     V(TreeSet, PopLast)                       \
1110     V(TreeSet, IsEmpty)                       \
1111     V(TreeSet, GetLength)                     \
1112     V(TreeSet, Values)                        \
1113     V(TreeSet, ForEach)                       \
1114     V(TreeSet, Entries)                       \
1115     V(Deque, Constructor)                     \
1116     V(Deque, InsertFront)                     \
1117     V(Deque, InsertEnd)                       \
1118     V(Deque, GetFirst)                        \
1119     V(Deque, GetLast)                         \
1120     V(Deque, GetFront)                        \
1121     V(Deque, GetTail)                         \
1122     V(Deque, Has)                             \
1123     V(Deque, PopFirst)                        \
1124     V(Deque, PopLast)                         \
1125     V(Deque, ForEach)                         \
1126     V(Deque, GetIteratorObj)                  \
1127     V(Deque, GetSize)                         \
1128     V(Stack, Constructor)                     \
1129     V(Stack, Iterator)                        \
1130     V(Stack, IsEmpty)                         \
1131     V(Stack, Push)                            \
1132     V(Stack, Peek)                            \
1133     V(Stack, Pop)                             \
1134     V(Stack, Locate)                          \
1135     V(Stack, ForEach)                         \
1136     V(Stack, GetLength)                       \
1137     V(Vector, Constructor)                    \
1138     V(Vector, Add)                            \
1139     V(Vector, Insert)                         \
1140     V(Vector, SetLength)                      \
1141     V(Vector, GetCapacity)                    \
1142     V(Vector, IncreaseCapacityTo)             \
1143     V(Vector, Get)                            \
1144     V(Vector, GetIndexOf)                     \
1145     V(Vector, GetIndexFrom)                   \
1146     V(Vector, IsEmpty)                        \
1147     V(Vector, GetLastElement)                 \
1148     V(Vector, GetLastIndexOf)                 \
1149     V(Vector, GetLastIndexFrom)               \
1150     V(Vector, Remove)                         \
1151     V(Vector, RemoveByIndex)                  \
1152     V(Vector, RemoveByRange)                  \
1153     V(Vector, Set)                            \
1154     V(Vector, SubVector)                      \
1155     V(Vector, ToString)                       \
1156     V(Vector, GetSize)                        \
1157     V(Vector, ForEach)                        \
1158     V(Vector, ReplaceAllElements)             \
1159     V(Vector, Has)                            \
1160     V(Vector, Sort)                           \
1161     V(Vector, Clear)                          \
1162     V(Vector, Clone)                          \
1163     V(Vector, CopyToArray)                    \
1164     V(Vector, ConvertToArray)                 \
1165     V(Vector, GetFirstElement)                \
1166     V(Vector, TrimToCurrentLength)            \
1167     V(Vector, GetIteratorObj)                 \
1168     V(Queue, Constructor)                     \
1169     V(Queue, Add)                             \
1170     V(Queue, GetFirst)                        \
1171     V(Queue, Pop)                             \
1172     V(Queue, ForEach)                         \
1173     V(Queue, GetIteratorObj)                  \
1174     V(Queue, GetSize)                         \
1175     V(List, Constructor)                      \
1176     V(List, Add)                              \
1177     V(List, GetFirst)                         \
1178     V(List, GetLast)                          \
1179     V(List, Insert)                           \
1180     V(List, Clear)                            \
1181     V(List, RemoveByIndex)                    \
1182     V(List, Remove)                           \
1183     V(List, Has)                              \
1184     V(List, IsEmpty)                          \
1185     V(List, Get)                              \
1186     V(List, GetIndexOf)                       \
1187     V(List, GetLastIndexOf)                   \
1188     V(List, Set)                              \
1189     V(List, ForEach)                          \
1190     V(List, ReplaceAllElements)               \
1191     V(List, GetIteratorObj)                   \
1192     V(List, Equal)                            \
1193     V(List, Sort)                             \
1194     V(List, ConvertToArray)                   \
1195     V(List, GetSubList)                       \
1196     V(List, Length)                           \
1197     V(LinkedList, Constructor)                \
1198     V(LinkedList, Length)                     \
1199     V(LinkedList, Add)                        \
1200     V(LinkedList, GetFirst)                   \
1201     V(LinkedList, GetLast)                    \
1202     V(LinkedList, Insert)                     \
1203     V(LinkedList, AddFirst)                   \
1204     V(LinkedList, Clear)                      \
1205     V(LinkedList, Clone)                      \
1206     V(LinkedList, Has)                        \
1207     V(LinkedList, Get)                        \
1208     V(LinkedList, GetIndexOf)                 \
1209     V(LinkedList, GetLastIndexOf)             \
1210     V(LinkedList, RemoveByIndex)              \
1211     V(LinkedList, Remove)                     \
1212     V(LinkedList, RemoveFirst)                \
1213     V(LinkedList, RemoveLast)                 \
1214     V(LinkedList, RemoveFirstFound)           \
1215     V(LinkedList, RemoveLastFound)            \
1216     V(LinkedList, Set)                        \
1217     V(LinkedList, ConvertToArray)             \
1218     V(LinkedList, ForEach)                    \
1219     V(LinkedList, GetIteratorObj)             \
1220     V(Buffer, Constructor)                    \
1221     V(Buffer, WriteUIntBE)                    \
1222     V(Buffer, WriteUIntLE)                    \
1223     V(Buffer, WriteUInt8BE)                   \
1224     V(Buffer, WriteUInt8LE)                   \
1225     V(Buffer, WriteUInt16BE)                  \
1226     V(Buffer, WriteUInt16LE)                  \
1227     V(Buffer, WriteUInt32BE)                  \
1228     V(Buffer, WriteUInt32LE)                  \
1229     V(Buffer, WriteBigUInt64BE)               \
1230     V(Buffer, WriteBigUInt64LE)               \
1231     V(Buffer, WriteIntBE)                     \
1232     V(Buffer, WriteIntLE)                     \
1233     V(Buffer, WriteInt8BE)                    \
1234     V(Buffer, WriteInt8LE)                    \
1235     V(Buffer, WriteInt16BE)                   \
1236     V(Buffer, WriteInt16LE)                   \
1237     V(Buffer, WriteInt32BE)                   \
1238     V(Buffer, WriteInt32LE)                   \
1239     V(Buffer, WriteBigInt64BE)                \
1240     V(Buffer, WriteBigInt64LE)                \
1241     V(Buffer, WriteFloat32BE)                 \
1242     V(Buffer, WriteFloat32LE)                 \
1243     V(Buffer, WriteFloat64BE)                 \
1244     V(Buffer, WriteFloat64LE)                 \
1245     V(Buffer, ReadUIntBE)                     \
1246     V(Buffer, ReadUIntLE)                     \
1247     V(Buffer, ReadUInt8BE)                    \
1248     V(Buffer, ReadUInt8LE)                    \
1249     V(Buffer, ReadUInt16BE)                   \
1250     V(Buffer, ReadUInt16LE)                   \
1251     V(Buffer, ReadUInt32BE)                   \
1252     V(Buffer, ReadUInt32LE)                   \
1253     V(Buffer, ReadBigUInt64BE)                \
1254     V(Buffer, ReadBigUInt64LE)                \
1255     V(Buffer, ReadIntBE)                      \
1256     V(Buffer, ReadIntLE)                      \
1257     V(Buffer, ReadInt8BE)                     \
1258     V(Buffer, ReadInt8LE)                     \
1259     V(Buffer, ReadInt16BE)                    \
1260     V(Buffer, ReadInt16LE)                    \
1261     V(Buffer, ReadInt32BE)                    \
1262     V(Buffer, ReadInt32LE)                    \
1263     V(Buffer, ReadBigInt64BE)                 \
1264     V(Buffer, ReadBigInt64LE)                 \
1265     V(Buffer, ReadFloat32BE)                  \
1266     V(Buffer, ReadFloat32LE)                  \
1267     V(Buffer, ReadFloat64BE)                  \
1268     V(Buffer, ReadFloat64LE)                  \
1269     V(Buffer, Write)                          \
1270     V(Buffer, Compare)                        \
1271     V(Buffer, Equals)                         \
1272     V(Buffer, IndexOf)                        \
1273     V(Buffer, LastIndexOf)                    \
1274     V(Buffer, Includes)                       \
1275     V(Buffer, Copy)                           \
1276     V(Buffer, Fill)                           \
1277     V(Buffer, GetSize)                        \
1278     V(Buffer, From)                           \
1279     V(Buffer, Entries)                        \
1280     V(Buffer, Keys)                           \
1281     V(Buffer, Values)                         \
1282     V(Buffer, Alloc)                          \
1283     V(Buffer, GetArrayBuffer)                 \
1284     V(Buffer, GetByteOffset)                  \
1285     V(Buffer, ToString)
1286 
1287 #define ABSTRACT_OPERATION_LIST(V) \
1288     V(JSTaggedValue, ToString)     \
1289 
1290 #define MEM_ALLOCATE_AND_GC_LIST(V)  \
1291     V(FullGC_RunPhases)              \
1292     V(PartialGC_RunPhases)           \
1293     V(ConcurrentMarking)             \
1294     V(ConcurrentMarkingInitialize)   \
1295     V(IncrementalMarking)            \
1296     V(IncrementalMarkingInitialize)  \
1297     V(WaitConcurrentMarkingFinished) \
1298     V(ReMarking)                     \
1299     V(ConcurrentSweepingInitialize)  \
1300     V(ConcurrentSweepingWait)        \
1301     V(ParallelEvacuationInitialize)  \
1302     V(ParallelEvacuation)            \
1303     V(ParallelUpdateReference)       \
1304     V(WaitUpdateFinished)            \
1305     V(UpdateRoot)                    \
1306     V(UpdateWeakReferenceOpt)        \
1307     V(ParallelEvacuator)             \
1308     V(ParallelEvacuatorInitialize)   \
1309     V(ParallelEvacuatorFinalize)     \
1310     V(HugeSpaceExpand)               \
1311     V(NonMovableSpaceExpand)         \
1312     V(HeapPrepare)                   \
1313 
1314 // NOLINTNEXTLINE(cppcoreguidelines-macro-usage)
1315 #define INTERPRETER_CALLER_ID(name) INTERPRETER_ID_##name,
1316 #define RUNTIME_CALLER_ID(name) RUNTIME_ID_##name,
1317 // NOLINTNEXTLINE(cppcoreguidelines-macro-usage)
1318 // NOLINTNEXTLINE(cppcoreguidelines-macro-usage)
1319 #define BUILTINS_API_ID(class, name) BUILTINS_ID_##class##_##name,
1320 // NOLINTNEXTLINE(cppcoreguidelines-macro-usage)
1321 #define ABSTRACT_OPERATION_ID(class, name) ABSTRACT_ID_##class##_##name,
1322 
1323 #define MEM_ALLOCATE_AND_GC_ID(name) MEM_ID##name,
1324 
1325 enum EcmaRuntimeCallerId {
1326     INTERPRETER_CALLER_LIST(INTERPRETER_CALLER_ID) BUILTINS_API_LIST(BUILTINS_API_ID)
1327     ABSTRACT_OPERATION_LIST(ABSTRACT_OPERATION_ID)
1328     MEM_ALLOCATE_AND_GC_LIST(MEM_ALLOCATE_AND_GC_ID)
1329 #define DEF_RUNTIME_ID(name) RUNTIME_ID_##name,
1330     RUNTIME_STUB_WITH_GC_LIST(DEF_RUNTIME_ID)
1331     RUNTIME_STUB_WITH_DFX(DEF_RUNTIME_ID)
1332 #undef DEF_RUNTIME_ID
1333     RUNTIME_CALLER_NUMBER,
1334 };
1335 
1336 #if ECMASCRIPT_ENABLE_INTERPRETER_RUNTIME_STAT
1337 // NOLINTNEXTLINE(cppcoreguidelines-macro-usage)
1338 #define INTERPRETER_TRACE(thread, name)                                                                    \
1339     [[maybe_unused]] JSThread *_js_thread_ = thread;                                                       \
1340     [[maybe_unused]] EcmaRuntimeStat *_run_stat_ = _js_thread_->GetEcmaVM()->GetRuntimeStat();             \
1341     RuntimeTimerScope interpret_##name##_scope_(INTERPRETER_CALLER_ID(name) _run_stat_)
1342 #if defined(ECMASCRIPT_SUPPORT_CPUPROFILER)
1343 // NOLINTNEXTLINE(cppcoreguidelines-macro-usage)
1344 #define RUNTIME_TRACE(thread, name)                                                                        \
1345     [[maybe_unused]] JSThread *_js_thread_ = thread;                                                       \
1346     [[maybe_unused]] EcmaRuntimeStat *_run_stat_ = _js_thread_->GetEcmaVM()->GetRuntimeStat();             \
1347     RuntimeTimerScope interpret_##name##_scope_(RUNTIME_CALLER_ID(name) _run_stat_);                       \
1348     [[maybe_unused]] RuntimeStateScope _runtime_state_##name##_scope_(_js_thread_)
1349 #else
1350 #define RUNTIME_TRACE(thread, name)                                                                        \
1351     [[maybe_unused]] JSThread *_js_thread_ = thread;                                                       \
1352     [[maybe_unused]] EcmaRuntimeStat *_run_stat_ = _js_thread_->GetEcmaVM()->GetRuntimeStat();             \
1353     RuntimeTimerScope interpret_##name##_scope_(RUNTIME_CALLER_ID(name) _run_stat_);
1354 #endif
1355 #else
1356 #define INTERPRETER_TRACE(thread, name) static_cast<void>(0) // NOLINT(cppcoreguidelines-macro-usage)
1357 #if defined(ECMASCRIPT_SUPPORT_CPUPROFILER)
1358 // NOLINTNEXTLINE(cppcoreguidelines-macro-usage)
1359 #define RUNTIME_TRACE(thread, name)                                                            \
1360     [[maybe_unused]] JSThread *_js_thread_ = thread;                                           \
1361     [[maybe_unused]] RuntimeStateScope _runtime_state_##name##_scope_(_js_thread_)
1362 #else
1363 #define RUNTIME_TRACE(thread, name) static_cast<void>(0) // NOLINT(cppcoreguidelines-macro-usage)
1364 #endif // defined(ECMASCRIPT_SUPPORT_CPUPROFILER)
1365 #endif // ECMASCRIPT_ENABLE_INTERPRETER_RUNTIME_STAT
1366 
1367 #if ECMASCRIPT_ENABLE_BUILTINS_RUNTIME_STAT
1368 // NOLINTNEXTLINE(cppcoreguidelines-macro-usage)
1369 #define BUILTINS_API_TRACE(thread, class, name)                                                            \
1370     [[maybe_unused]] JSThread *_js_thread_ = thread;                                                       \
1371     [[maybe_unused]] EcmaRuntimeStat *_run_stat_ = _js_thread_->GetEcmaVM()->GetRuntimeStat();             \
1372     RuntimeTimerScope builtins_##class##name##_scope_(BUILTINS_API_ID(class, name) _run_stat_)
1373 
1374 // NOLINTNEXTLINE(cppcoreguidelines-macro-usage)
1375 #define ABSTRACT_OPERATION_TRACE(thread, class, name)                                                      \
1376     [[maybe_unused]] JSThread *_js_thread_ = thread;                                                       \
1377     [[maybe_unused]] EcmaRuntimeStat *_run_stat_ = _js_thread_->GetEcmaVM()->GetRuntimeStat();             \
1378     RuntimeTimerScope abstract_##class##name##_scope_(ABSTRACT_OPERATION_ID(class, name) _run_stat_)
1379 #else
1380 #define BUILTINS_API_TRACE(thread, class, name) static_cast<void>(0) // NOLINT(cppcoreguidelines-macro-usage)
1381 #define ABSTRACT_OPERATION_TRACE(class, name) static_cast<void>(0) // NOLINT(cppcoreguidelines-macro-usage)
1382 #endif // ECMASCRIPT_ENABLE_BUILTINS_RUNTIME_STAT
1383 
1384 #if ECMASCRIPT_ENABLE_ALLOCATE_AND_GC_RUNTIME_STAT
1385 #define MEM_ALLOCATE_AND_GC_TRACE(vm, name)                                                     \
1386     CHECK_JS_THREAD(vm);                                                                        \
1387     EcmaRuntimeStat *_run_stat_ = vm->GetRuntimeStat();                                         \
1388     RuntimeTimerScope mem_##name##_scope_(MEM_ALLOCATE_AND_GC_ID(name) _run_stat_)
1389 #else
1390 #define MEM_ALLOCATE_AND_GC_TRACE(vm, name) static_cast<void>(0) // NOLINT(cppcoreguidelines-macro-usage)
1391 #endif // ECMASCRIPT_ENABLE_ALLOCATE_AND_GC_RUNTIME_STAT
1392 }  // namespace panda::ecmascript
1393 #endif
1394