Debian Codegraph @

js/src/jit/CacheIROps.yaml

raw
1 # This Source Code Form is subject to the terms of the Mozilla Public
2 # License, v. 2.0. If a copy of the MPL was not distributed with this
3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
5 # [SMDOC] CacheIR Opcodes
6 # =======================
7 # This file defines all CacheIR opcodes and their arguments.
8 #
9 # Each op has the following attributes:
10 #
11 # name
12 # ====
13 # Opcode name. Convention is to use a name ending in *Result for ops that store
14 # to the IC's output register.
15 #
16 # shared
17 # ======
18 # If true, Baseline and Ion use the same CacheIRCompiler code for this op.
19 # If false, the op must be implemented in both BaselineCacheIRCompiler and
20 # IonCacheIRCompiler.
21 #
22 # transpile
23 # =========
24 # Whether this op can be transpiled to MIR by WarpCacheIRTranspiler.
25 #
26 # cost_estimate
27 # =========
28 # Score of an individual CacheIR Opcode's contribution to the overall score for
29 # each stub. This score is based off of the cost of the masm calls made by the op's
30 # implementation. The higher the score the more costly the op is.
31 #
32 # How to decide the cost estimate for a CacheIROp:
33 # 0 points - Generates no code
34 # 1 point - 1-5 simple masm ops, no callVM or callWithABI
35 # 2 points - 5-20 masm ops, no callVM or callWithABI
36 # 3 points - 20+ masm ops, no callVM or callWithABI
37 # 4 points - callWithABI
38 # 5 points - callVM
39 # 6 points - more than one callWithABI or callVM
40 #
41 # In the case of the op not being shared, default to counting the Baseline
42 # implementation.
43 #
44 # If the cost estimate is different based off of what branch of a conditional
45 # is taken, assign the score of the branch with the highest cost.
46 #
47 # Note:
48 # Currently, the scoring is tentative. It is in place to provide an
49 # estimate for the cost of each op. The scoring will be refined.
50 #
51 # custom_writer (optional)
52 # ========================
53 # If true, the generated CacheIRWriter method will be private and has a trailing
54 # '_'. This is useful for ops that need custom CacheIRWriter logic on top of the
55 # generated code.
56 #
57 # args
58 # ====
59 # List of arguments encoded in the bytecode stream. There are three argument
60 # kinds:
61 #
62 # - Id (ObjId, ValId, ...): refers to either an IC input or a value defined by
63 # a previous CacheIR instruction. This is encoded as integer in the bytecode
64 # stream.
65 #
66 # - Field (ObjectField, StringField, ...): specific value is stored in the stub
67 # data and the bytecode stream stores the offset of this field. This means the
68 # CacheIR is not specialized for particular values and code can be shared.
69 #
70 # - Immediate (BoolImm, Int32Imm, JSOpImm, ...): a value baked directly into
71 # the bytecode stream. This is useful for bits of state that need to be
72 # available to all CacheIR compilers/transpilers.
73 #
74 # If there's an argument named 'result', the generated CacheIRWriter method will
75 # return a new OperandId of this type.
76
77 - name: ReturnFromIC
78 shared: false
79 transpile: true
80 cost_estimate: 1
81 args:
82
83 - name: GuardToObject
84 shared: true
85 transpile: true
86 cost_estimate: 1
87 custom_writer: true
88 args:
89 input: ValId
90
91 - name: GuardIsNullOrUndefined
92 shared: true
93 transpile: true
94 cost_estimate: 1
95 args:
96 input: ValId
97
98 - name: GuardIsNull
99 shared: true
100 transpile: true
101 cost_estimate: 1
102 args:
103 input: ValId
104
105 - name: GuardIsUndefined
106 shared: true
107 transpile: true
108 cost_estimate: 1
109 args:
110 input: ValId
111
112 - name: GuardIsNotUninitializedLexical
113 shared: true
114 transpile: true
115 cost_estimate: 1
116 args:
117 val: ValId
118
119 - name: GuardToBoolean
120 shared: true
121 transpile: true
122 cost_estimate: 1
123 custom_writer: true
124 args:
125 input: ValId
126
127 - name: GuardToString
128 shared: true
129 transpile: true
130 cost_estimate: 1
131 custom_writer: true
132 args:
133 input: ValId
134
135 - name: GuardToSymbol
136 shared: true
137 transpile: true
138 cost_estimate: 1
139 custom_writer: true
140 args:
141 input: ValId
142
143 - name: GuardToBigInt
144 shared: true
145 transpile: true
146 cost_estimate: 1
147 custom_writer: true
148 args:
149 input: ValId
150
151 - name: GuardIsNumber
152 shared: true
153 transpile: true
154 cost_estimate: 1
155 custom_writer: true
156 args:
157 input: ValId
158
159 - name: GuardToInt32
160 shared: true
161 transpile: true
162 cost_estimate: 1
163 custom_writer: true
164 args:
165 input: ValId
166
167 - name: GuardToNonGCThing
168 shared: true
169 transpile: true
170 cost_estimate: 1
171 args:
172 input: ValId
173
174 # If the Value is a boolean, convert it to int32.
175 - name: GuardBooleanToInt32
176 shared: true
177 transpile: true
178 cost_estimate: 1
179 args:
180 input: ValId
181 result: Int32Id
182
183 - name: GuardToInt32Index
184 shared: true
185 transpile: true
186 cost_estimate: 1
187 args:
188 input: ValId
189 result: Int32Id
190
191 - name: Int32ToIntPtr
192 shared: true
193 transpile: true
194 cost_estimate: 1
195 args:
196 input: Int32Id
197 result: IntPtrId
198
199 - name: GuardNumberToIntPtrIndex
200 shared: true
201 transpile: true
202 cost_estimate: 2
203 args:
204 input: NumberId
205 supportOOB: BoolImm
206 result: IntPtrId
207
208 - name: GuardToInt32ModUint32
209 shared: true
210 transpile: true
211 cost_estimate: 2
212 args:
213 input: ValId
214 result: Int32Id
215
216 - name: GuardToUint8Clamped
217 shared: true
218 transpile: true
219 cost_estimate: 2
220 args:
221 input: ValId
222 result: Int32Id
223
224 # Note: this doesn't accept doubles to avoid ambiguity about whether it includes
225 # int32 values. Use GuardIsNumber instead.
226 - name: GuardNonDoubleType
227 shared: true
228 transpile: true
229 cost_estimate: 1
230 args:
231 input: ValId
232 type: ValueTypeImm
233
234 - name: GuardShape
235 shared: false
236 transpile: true
237 cost_estimate: 1
238 args:
239 obj: ObjId
240 shape: WeakShapeField
241
242 - name: GuardMultipleShapes
243 shared: true
244 transpile: true
245 cost_estimate: 2
246 custom_writer: true
247 args:
248 obj: ObjId
249 shapes: ObjectField
250
251 - name: GuardProto
252 shared: false
253 transpile: true
254 cost_estimate: 1
255 args:
256 obj: ObjId
257 proto: WeakObjectField
258
259 - name: GuardNullProto
260 shared: true
261 transpile: true
262 cost_estimate: 1
263 args:
264 obj: ObjId
265
266 # Guard per GuardClassKind.
267 - name: GuardClass
268 shared: true
269 transpile: true
270 cost_estimate: 1
271 args:
272 obj: ObjId
273 kind: GuardClassKindImm
274
275 # Guard per GuardClassKind.
276 - name: GuardEitherClass
277 shared: true
278 transpile: true
279 cost_estimate: 1
280 args:
281 obj: ObjId
282 kind1: GuardClassKindImm
283 kind2: GuardClassKindImm
284
285 # Guard on a realm fuse.
286 - name: GuardFuse
287 shared: true
288 transpile: true
289 cost_estimate: 1
290 args:
291 fuseWord: RealmFuseIndexImm
292
293 # Guard on an arbitrary JSClass.
294 - name: GuardAnyClass
295 shared: false
296 transpile: true
297 cost_estimate: 1
298 args:
299 obj: ObjId
300 clasp: RawPointerField
301
302 - name: GuardGlobalGeneration
303 shared: true
304 transpile: true
305 cost_estimate: 1
306 args:
307 expected: RawInt32Field
308 generationAddr: RawPointerField
309
310 - name: HasClassResult
311 shared: false
312 transpile: true
313 cost_estimate: 1
314 args:
315 obj: ObjId
316 clasp: RawPointerField
317
318 - name: HasShapeResult
319 shared: false
320 transpile: true
321 cost_estimate: 1
322 args:
323 obj: ObjId
324 shape: ShapeField
325
326 - name: CallRegExpMatcherResult
327 shared: false
328 transpile: true
329 cost_estimate: 5
330 args:
331 regexp: ObjId
332 input: StringId
333 lastIndex: Int32Id
334 stub: JitCodeField
335
336 - name: CallRegExpSearcherResult
337 shared: false
338 transpile: true
339 cost_estimate: 5
340 args:
341 regexp: ObjId
342 input: StringId
343 lastIndex: Int32Id
344 stub: JitCodeField
345
346 - name: RegExpSearcherLastLimitResult
347 shared: true
348 transpile: true
349 cost_estimate: 1
350 args:
351
352 - name: RegExpHasCaptureGroupsResult
353 shared: false
354 transpile: true
355 cost_estimate: 1
356 args:
357 regexp: ObjId
358 input: StringId
359
360 - name: RegExpBuiltinExecMatchResult
361 shared: false
362 transpile: true
363 cost_estimate: 5
364 args:
365 regexp: ObjId
366 input: StringId
367 stub: JitCodeField
368
369 - name: RegExpBuiltinExecTestResult
370 shared: false
371 transpile: true
372 cost_estimate: 5
373 args:
374 regexp: ObjId
375 input: StringId
376 stub: JitCodeField
377
378 - name: RegExpFlagResult
379 shared: true
380 transpile: true
381 cost_estimate: 2
382 args:
383 regexp: ObjId
384 flagsMask: Int32Imm
385
386 - name: CallSubstringKernelResult
387 shared: true
388 transpile: true
389 cost_estimate: 5
390 args:
391 str: StringId
392 begin: Int32Id
393 length: Int32Id
394
395 - name: StringReplaceStringResult
396 shared: true
397 transpile: true
398 cost_estimate: 5
399 args:
400 str: StringId
401 pattern: StringId
402 replacement: StringId
403
404 - name: StringSplitStringResult
405 shared: true
406 transpile: true
407 cost_estimate: 5
408 args:
409 str: StringId
410 separator: StringId
411
412 - name: GetFirstDollarIndexResult
413 shared: true
414 transpile: true
415 cost_estimate: 5
416 args:
417 str: StringId
418
419 # Add a reference to a global in the compartment to keep it alive.
420 - name: GuardCompartment
421 shared: false
422 transpile: false
423 cost_estimate: 2
424 args:
425 obj: ObjId
426 global: ObjectField
427 compartment: RawPointerField
428
429 - name: GuardIsExtensible
430 shared: true
431 transpile: true
432 cost_estimate: 1
433 args:
434 obj: ObjId
435
436 - name: GuardIsNativeObject
437 shared: true
438 transpile: true
439 cost_estimate: 1
440 args:
441 obj: ObjId
442
443 - name: GuardIsProxy
444 shared: true
445 transpile: true
446 cost_estimate: 1
447 args:
448 obj: ObjId
449
450 - name: GuardIsNotProxy
451 shared: true
452 transpile: true
453 cost_estimate: 1
454 args:
455 obj: ObjId
456
457 - name: GuardIsNotArrayBufferMaybeShared
458 shared: true
459 transpile: true
460 cost_estimate: 1
461 args:
462 obj: ObjId
463
464 - name: GuardIsTypedArray
465 shared: true
466 transpile: true
467 cost_estimate: 1
468 args:
469 obj: ObjId
470
471 - name: GuardIsFixedLengthTypedArray
472 shared: true
473 transpile: true
474 cost_estimate: 1
475 args:
476 obj: ObjId
477
478 - name: GuardIsResizableTypedArray
479 shared: true
480 transpile: true
481 cost_estimate: 1
482 args:
483 obj: ObjId
484
485 - name: GuardHasProxyHandler
486 shared: false
487 transpile: true
488 cost_estimate: 1
489 args:
490 obj: ObjId
491 handler: RawPointerField
492
493 - name: GuardIsNotDOMProxy
494 shared: true
495 transpile: true
496 cost_estimate: 1
497 args:
498 obj: ObjId
499
500 - name: GuardSpecificObject
501 shared: false
502 transpile: true
503 cost_estimate: 1
504 args:
505 obj: ObjId
506 expected: WeakObjectField
507
508 - name: GuardObjectIdentity
509 shared: true
510 transpile: true
511 cost_estimate: 1
512 args:
513 obj1: ObjId
514 obj2: ObjId
515
516 - name: GuardSpecificFunction
517 shared: false
518 transpile: true
519 cost_estimate: 1
520 custom_writer: true
521 args:
522 fun: ObjId
523 expected: WeakObjectField
524 nargsAndFlags: RawInt32Field
525
526 - name: GuardFunctionScript
527 shared: false
528 transpile: true
529 cost_estimate: 1
530 custom_writer: true
531 args:
532 obj: ObjId
533 expected: WeakBaseScriptField
534 nargsAndFlags: RawInt32Field
535
536 - name: GuardSpecificAtom
537 shared: false
538 transpile: true
539 cost_estimate: 4
540 args:
541 str: StringId
542 expected: AtomField
543
544 - name: GuardSpecificSymbol
545 shared: false
546 transpile: true
547 cost_estimate: 1
548 args:
549 sym: SymbolId
550 expected: SymbolField
551
552 - name: GuardSpecificInt32
553 shared: true
554 transpile: true
555 cost_estimate: 1
556 args:
557 num: Int32Id
558 expected: Int32Imm
559
560 - name: GuardSpecificValue
561 shared: false
562 transpile: true
563 cost_estimate: 1
564 args:
565 val: ValId
566 expected: ValueField
567
568 - name: GuardNoDenseElements
569 shared: true
570 transpile: true
571 cost_estimate: 1
572 args:
573 obj: ObjId
574
575 - name: GuardStringToIndex
576 shared: true
577 transpile: true
578 cost_estimate: 4
579 args:
580 str: StringId
581 result: Int32Id
582
583 - name: GuardStringToInt32
584 shared: true
585 transpile: true
586 cost_estimate: 4
587 args:
588 str: StringId
589 result: Int32Id
590
591 - name: GuardStringToNumber
592 shared: true
593 transpile: true
594 cost_estimate: 4
595 args:
596 str: StringId
597 result: NumberId
598
599 - name: StringToAtom
600 shared: true
601 transpile: true
602 custom_writer: true
603 cost_estimate: 4
604 args:
605 str: StringId
606
607 - name: BooleanToNumber
608 shared: true
609 transpile: true
610 cost_estimate: 1
611 args:
612 boolean: BooleanId
613 result: NumberId
614
615 - name: GuardHasGetterSetter
616 shared: true
617 transpile: true
618 cost_estimate: 4
619 args:
620 obj: ObjId
621 id: IdField
622 getterSetter: WeakGetterSetterField
623
624 - name: GuardInt32IsNonNegative
625 shared: true
626 transpile: true
627 cost_estimate: 1
628 args:
629 index: Int32Id
630
631 - name: GuardIndexIsValidUpdateOrAdd
632 shared: true
633 transpile: true
634 cost_estimate: 1
635 args:
636 obj: ObjId
637 index: Int32Id
638
639 - name: GuardIndexIsNotDenseElement
640 shared: true
641 transpile: true
642 cost_estimate: 1
643 args:
644 obj: ObjId
645 index: Int32Id
646
647 - name: GuardTagNotEqual
648 shared: true
649 transpile: true
650 cost_estimate: 1
651 args:
652 lhs: ValueTagId
653 rhs: ValueTagId
654
655 - name: GuardXrayExpandoShapeAndDefaultProto
656 shared: true
657 transpile: false
658 cost_estimate: 2
659 args:
660 obj: ObjId
661 shapeWrapper: ObjectField
662
663 - name: GuardXrayNoExpando
664 shared: true
665 transpile: false
666 cost_estimate: 2
667 args:
668 obj: ObjId
669
670 # Guard obj[slot] == expected.
671 - name: GuardDynamicSlotIsSpecificObject
672 shared: true
673 transpile: true
674 cost_estimate: 1
675 args:
676 obj: ObjId
677 expected: ObjId
678 slot: RawInt32Field
679
680 # Guard obj[slot] is not an object.
681 - name: GuardDynamicSlotIsNotObject
682 shared: true
683 transpile: true
684 cost_estimate: 1
685 args:
686 obj: ObjId
687 slot: RawInt32Field
688
689 - name: GuardFixedSlotValue
690 shared: true
691 transpile: true
692 cost_estimate: 1
693 args:
694 obj: ObjId
695 offset: RawInt32Field
696 val: ValueField
697
698 - name: GuardDynamicSlotValue
699 shared: true
700 transpile: true
701 cost_estimate: 1
702 args:
703 obj: ObjId
704 offset: RawInt32Field
705 val: ValueField
706
707 - name: LoadScriptedProxyHandler
708 shared: true
709 transpile: true
710 cost_estimate: 1
711 args:
712 result: ObjId
713 obj: ObjId
714
715 - name: IdToStringOrSymbol
716 shared: true
717 transpile: true
718 cost_estimate: 2
719 args:
720 result: ValId
721 id: ValId
722
723 - name: LoadFixedSlot
724 shared: true
725 transpile: true
726 cost_estimate: 1
727 args:
728 result: ValId
729 obj: ObjId
730 offset: RawInt32Field
731
732 - name: LoadDynamicSlot
733 shared: true
734 transpile: true
735 cost_estimate: 1
736 args:
737 result: ValId
738 obj: ObjId
739 slot: RawInt32Field
740
741 - name: GuardNoAllocationMetadataBuilder
742 shared: true
743 transpile: true
744 cost_estimate: 1
745 args:
746 builderAddr: RawPointerField
747
748 - name: GuardFunctionHasJitEntry
749 shared: true
750 transpile: true
751 cost_estimate: 1
752 args:
753 fun: ObjId
754
755 - name: GuardFunctionHasNoJitEntry
756 shared: true
757 transpile: true
758 cost_estimate: 1
759 args:
760 fun: ObjId
761
762 - name: GuardFunctionIsNonBuiltinCtor
763 shared: true
764 transpile: true
765 cost_estimate: 1
766 args:
767 fun: ObjId
768
769 - name: GuardFunctionIsConstructor
770 shared: true
771 transpile: true
772 cost_estimate: 1
773 args:
774 fun: ObjId
775
776 - name: GuardNotClassConstructor
777 shared: true
778 transpile: true
779 cost_estimate: 1
780 args:
781 fun: ObjId
782
783 - name: GuardArrayIsPacked
784 shared: true
785 transpile: true
786 cost_estimate: 1
787 args:
788 array: ObjId
789
790 - name: GuardArgumentsObjectFlags
791 shared: true
792 transpile: true
793 cost_estimate: 1
794 args:
795 obj: ObjId
796 flags: ByteImm
797
798 # Guard cx->realm() == obj->realm().
799 - name: GuardObjectHasSameRealm
800 shared: true
801 transpile: true
802 cost_estimate: 1
803 args:
804 obj: ObjId
805
806 - name: LoadObject
807 shared: true
808 transpile: true
809 cost_estimate: 1
810 args:
811 result: ObjId
812 obj: ObjectField
813
814 # This is just LoadObject with extra information for the purpose of optimizing
815 # out shape guards if we're just storing to slots of the receiver object.
816 - name: LoadProtoObject
817 shared: true
818 transpile: true
819 cost_estimate: 1
820 args:
821 result: ObjId
822 protoObj: ObjectField
823 receiverObj: ObjId
824
825 - name: LoadProto
826 shared: true
827 transpile: true
828 cost_estimate: 1
829 args:
830 obj: ObjId
831 result: ObjId
832
833 - name: LoadEnclosingEnvironment
834 shared: true
835 transpile: true
836 cost_estimate: 1
837 args:
838 obj: ObjId
839 result: ObjId
840
841 - name: LoadWrapperTarget
842 shared: true
843 transpile: true
844 cost_estimate: 1
845 args:
846 obj: ObjId
847 result: ObjId
848 fallible: BoolImm
849
850 - name: LoadValueTag
851 shared: true
852 transpile: true
853 cost_estimate: 1
854 args:
855 val: ValId
856 result: ValueTagId
857
858 - name: LoadArgumentFixedSlot
859 shared: false
860 transpile: true
861 cost_estimate: 1
862 custom_writer: true
863 args:
864 result: ValId
865 slotIndex: ByteImm
866
867 - name: LoadArgumentDynamicSlot
868 shared: false
869 transpile: true
870 cost_estimate: 1
871 custom_writer: true
872 args:
873 result: ValId
874 argc: Int32Id
875 slotIndex: ByteImm
876
877 - name: TruncateDoubleToUInt32
878 shared: true
879 transpile: true
880 cost_estimate: 4
881 args:
882 input: NumberId
883 result: Int32Id
884
885 - name: DoubleToUint8Clamped
886 shared: true
887 transpile: true
888 cost_estimate: 2
889 args:
890 input: NumberId
891 result: Int32Id
892
893 - name: MegamorphicLoadSlotResult
894 shared: true
895 transpile: true
896 cost_estimate: 4
897 args:
898 obj: ObjId
899 name: IdField
900
901 - name: MegamorphicLoadSlotByValueResult
902 shared: true
903 transpile: true
904 cost_estimate: 4
905 args:
906 obj: ObjId
907 id: ValId
908
909 - name: MegamorphicLoadSlotPermissiveResult
910 shared: true
911 transpile: true
912 cost_estimate: 4
913 args:
914 obj: ObjId
915 name: IdField
916
917 - name: MegamorphicLoadSlotByValuePermissiveResult
918 shared: true
919 transpile: true
920 cost_estimate: 4
921 args:
922 obj: ObjId
923 id: ValId
924
925 - name: MegamorphicStoreSlot
926 shared: true
927 transpile: true
928 cost_estimate: 5
929 args:
930 obj: ObjId
931 name: IdField
932 rhs: ValId
933 strict: BoolImm
934
935 - name: MegamorphicSetElement
936 shared: false
937 transpile: true
938 cost_estimate: 5
939 args:
940 obj: ObjId
941 id: ValId
942 rhs: ValId
943 strict: BoolImm
944
945 - name: MegamorphicHasPropResult
946 shared: true
947 transpile: true
948 cost_estimate: 4
949 args:
950 obj: ObjId
951 id: ValId
952 hasOwn: BoolImm
953
954 # For the case where we have an object with a small number of properties,
955 # we can do better than a megamorphic hasprop if we just run through those
956 # IDs and check for atom pointer equality.
957 - name: SmallObjectVariableKeyHasOwnResult
958 shared: true
959 transpile: true
960 cost_estimate: 4
961 args:
962 # We don't actually need the object, because we only care about the shape,
963 # which was guarded before this
964 id: StringId
965 # We include the prop names to speed up and simplify the Baseline case,
966 # but only the shape is used from Ion to achieve an unrolled loop with
967 # comparisons to known atoms
968 propNames: ObjectField
969 shape: ShapeField
970
971 - name: ObjectToIteratorResult
972 shared: true
973 transpile: true
974 cost_estimate: 5
975 args:
976 obj: ObjId
977 enumeratorsAddr: RawPointerField
978
979 - name: ValueToIteratorResult
980 shared: true
981 transpile: true
982 cost_estimate: 5
983 args:
984 val: ValId
985
986 # See CacheIR.cpp 'DOM proxies' comment.
987 - name: LoadDOMExpandoValue
988 shared: true
989 transpile: true
990 cost_estimate: 1
991 args:
992 obj: ObjId
993 result: ValId
994
995 - name: LoadDOMExpandoValueGuardGeneration
996 shared: false
997 transpile: true
998 cost_estimate: 2
999 args:
1000 obj: ObjId
1001 expandoAndGeneration: RawPointerField
1002 generation: RawInt64Field
1003 result: ValId
1004
1005 - name: LoadDOMExpandoValueIgnoreGeneration
1006 shared: true
1007 transpile: true
1008 cost_estimate: 1
1009 args:
1010 obj: ObjId
1011 result: ValId
1012
1013 - name: GuardDOMExpandoMissingOrGuardShape
1014 shared: false
1015 transpile: true
1016 cost_estimate: 2
1017 args:
1018 expando: ValId
1019 shape: ShapeField
1020
1021 - name: StoreFixedSlot
1022 shared: false
1023 transpile: true
1024 cost_estimate: 6
1025 args:
1026 obj: ObjId
1027 offset: RawInt32Field
1028 rhs: ValId
1029
1030 - name: StoreDynamicSlot
1031 shared: false
1032 transpile: true
1033 cost_estimate: 6
1034 args:
1035 obj: ObjId
1036 offset: RawInt32Field
1037 rhs: ValId
1038
1039 - name: AddAndStoreFixedSlot
1040 shared: false
1041 transpile: true
1042 cost_estimate: 6
1043 args:
1044 obj: ObjId
1045 offset: RawInt32Field
1046 rhs: ValId
1047 newShape: ShapeField
1048
1049 - name: AddAndStoreDynamicSlot
1050 shared: false
1051 transpile: true
1052 cost_estimate: 6
1053 args:
1054 obj: ObjId
1055 offset: RawInt32Field
1056 rhs: ValId
1057 newShape: ShapeField
1058
1059 - name: AllocateAndStoreDynamicSlot
1060 shared: false
1061 transpile: true
1062 cost_estimate: 6
1063 args:
1064 obj: ObjId
1065 offset: RawInt32Field
1066 rhs: ValId
1067 newShape: ShapeField
1068 numNewSlots: RawInt32Field
1069
1070 - name: AddSlotAndCallAddPropHook
1071 shared: true
1072 transpile: true
1073 cost_estimate: 6
1074 args:
1075 obj: ObjId
1076 rhs: ValId
1077 newShape: ShapeField
1078
1079 - name: StoreDenseElement
1080 shared: true
1081 transpile: true
1082 cost_estimate: 6
1083 args:
1084 obj: ObjId
1085 index: Int32Id
1086 rhs: ValId
1087
1088 - name: StoreDenseElementHole
1089 shared: true
1090 transpile: true
1091 cost_estimate: 6
1092 args:
1093 obj: ObjId
1094 index: Int32Id
1095 rhs: ValId
1096 handleAdd: BoolImm
1097
1098 - name: ArrayPush
1099 shared: true
1100 transpile: true
1101 cost_estimate: 6
1102 args:
1103 obj: ObjId
1104 rhs: ValId
1105
1106 - name: ArrayJoinResult
1107 shared: false
1108 transpile: true
1109 cost_estimate: 5
1110 args:
1111 obj: ObjId
1112 sep: StringId
1113
1114 - name: ObjectKeysResult
1115 shared: true
1116 transpile: true
1117 cost_estimate: 6
1118 args:
1119 obj: ObjId
1120
1121 - name: PackedArrayPopResult
1122 shared: true
1123 transpile: true
1124 cost_estimate: 2
1125 args:
1126 array: ObjId
1127
1128 - name: PackedArrayShiftResult
1129 shared: true
1130 transpile: true
1131 cost_estimate: 4
1132 args:
1133 array: ObjId
1134
1135 - name: PackedArraySliceResult
1136 shared: false
1137 transpile: true
1138 cost_estimate: 5
1139 args:
1140 templateObject: ObjectField
1141 array: ObjId
1142 begin: Int32Id
1143 end: Int32Id
1144
1145 - name: ArgumentsSliceResult
1146 shared: false
1147 transpile: true
1148 cost_estimate: 5
1149 args:
1150 templateObject: ObjectField
1151 args: ObjId
1152 begin: Int32Id
1153 end: Int32Id
1154
1155 - name: IsArrayResult
1156 shared: false
1157 transpile: true
1158 cost_estimate: 5
1159 args:
1160 input: ValId
1161
1162 - name: StoreFixedSlotUndefinedResult
1163 shared: true
1164 transpile: true
1165 args:
1166 obj: ObjId
1167 offset: RawInt32Field
1168 rhs: ValId
1169
1170 - name: IsObjectResult
1171 shared: true
1172 transpile: true
1173 cost_estimate: 1
1174 args:
1175 input: ValId
1176
1177 - name: IsPackedArrayResult
1178 shared: true
1179 transpile: true
1180 cost_estimate: 2
1181 args:
1182 obj: ObjId
1183
1184 - name: IsCallableResult
1185 shared: true
1186 transpile: true
1187 cost_estimate: 4
1188 args:
1189 input: ValId
1190
1191 - name: IsConstructorResult
1192 shared: true
1193 transpile: true
1194 cost_estimate: 4
1195 args:
1196 obj: ObjId
1197
1198 - name: IsCrossRealmArrayConstructorResult
1199 shared: true
1200 transpile: true
1201 cost_estimate: 2
1202 args:
1203 obj: ObjId
1204
1205 - name: IsTypedArrayResult
1206 shared: false
1207 transpile: true
1208 cost_estimate: 5
1209 args:
1210 obj: ObjId
1211 isPossiblyWrapped: BoolImm
1212
1213 - name: IsTypedArrayConstructorResult
1214 shared: true
1215 transpile: true
1216 cost_estimate: 2
1217 args:
1218 obj: ObjId
1219
1220 - name: ArrayBufferViewByteOffsetInt32Result
1221 shared: true
1222 transpile: true
1223 cost_estimate: 1
1224 args:
1225 obj: ObjId
1226
1227 - name: ArrayBufferViewByteOffsetDoubleResult
1228 shared: true
1229 transpile: true
1230 cost_estimate: 1
1231 args:
1232 obj: ObjId
1233
1234 - name: ResizableTypedArrayByteOffsetMaybeOutOfBoundsInt32Result
1235 shared: true
1236 transpile: true
1237 cost_estimate: 2
1238 args:
1239 obj: ObjId
1240
1241 - name: ResizableTypedArrayByteOffsetMaybeOutOfBoundsDoubleResult
1242 shared: true
1243 transpile: true
1244 cost_estimate: 2
1245 args:
1246 obj: ObjId
1247
1248 - name: TypedArrayByteLengthInt32Result
1249 shared: true
1250 transpile: true
1251 cost_estimate: 2
1252 args:
1253 obj: ObjId
1254
1255 - name: TypedArrayByteLengthDoubleResult
1256 shared: true
1257 transpile: true
1258 cost_estimate: 2
1259 args:
1260 obj: ObjId
1261
1262 - name: ResizableTypedArrayByteLengthInt32Result
1263 shared: true
1264 transpile: true
1265 cost_estimate: 2
1266 args:
1267 obj: ObjId
1268
1269 - name: ResizableTypedArrayByteLengthDoubleResult
1270 shared: true
1271 transpile: true
1272 cost_estimate: 2
1273 args:
1274 obj: ObjId
1275
1276 - name: ResizableTypedArrayLengthInt32Result
1277 shared: true
1278 transpile: true
1279 cost_estimate: 2
1280 args:
1281 obj: ObjId
1282
1283 - name: ResizableTypedArrayLengthDoubleResult
1284 shared: true
1285 transpile: true
1286 cost_estimate: 2
1287 args:
1288 obj: ObjId
1289
1290 - name: TypedArrayElementSizeResult
1291 shared: true
1292 transpile: true
1293 cost_estimate: 2
1294 args:
1295 obj: ObjId
1296
1297 - name: ResizableDataViewByteLengthInt32Result
1298 shared: true
1299 transpile: true
1300 cost_estimate: 2
1301 args:
1302 obj: ObjId
1303
1304 - name: ResizableDataViewByteLengthDoubleResult
1305 shared: true
1306 transpile: true
1307 cost_estimate: 2
1308 args:
1309 obj: ObjId
1310
1311 - name: GrowableSharedArrayBufferByteLengthInt32Result
1312 shared: true
1313 transpile: true
1314 cost_estimate: 2
1315 args:
1316 obj: ObjId
1317
1318 - name: GrowableSharedArrayBufferByteLengthDoubleResult
1319 shared: true
1320 transpile: true
1321 cost_estimate: 2
1322 args:
1323 obj: ObjId
1324
1325 - name: GuardHasAttachedArrayBuffer
1326 shared: true
1327 transpile: true
1328 cost_estimate: 2
1329 args:
1330 obj: ObjId
1331
1332 - name: GuardResizableArrayBufferViewInBounds
1333 shared: true
1334 transpile: true
1335 cost_estimate: 2
1336 args:
1337 obj: ObjId
1338
1339 - name: GuardResizableArrayBufferViewInBoundsOrDetached
1340 shared: true
1341 transpile: true
1342 cost_estimate: 2
1343 args:
1344 obj: ObjId
1345
1346 - name: NewArrayIteratorResult
1347 shared: true
1348 transpile: true
1349 cost_estimate: 5
1350 args:
1351 templateObject: ObjectField
1352
1353 - name: NewStringIteratorResult
1354 shared: true
1355 transpile: true
1356 cost_estimate: 5
1357 args:
1358 templateObject: ObjectField
1359
1360 - name: NewRegExpStringIteratorResult
1361 shared: true
1362 transpile: true
1363 cost_estimate: 5
1364 args:
1365 templateObject: ObjectField
1366
1367 - name: ObjectCreateResult
1368 shared: true
1369 transpile: true
1370 cost_estimate: 5
1371 args:
1372 templateObject: ObjectField
1373
1374 - name: NewArrayFromLengthResult
1375 shared: true
1376 transpile: true
1377 cost_estimate: 5
1378 args:
1379 templateObject: ObjectField
1380 length: Int32Id
1381 site: AllocSiteField
1382
1383 - name: NewTypedArrayFromLengthResult
1384 shared: true
1385 transpile: true
1386 cost_estimate: 5
1387 args:
1388 templateObject: ObjectField
1389 length: Int32Id
1390
1391 - name: NewTypedArrayFromArrayBufferResult
1392 shared: true
1393 transpile: true
1394 cost_estimate: 5
1395 args:
1396 templateObject: ObjectField
1397 buffer: ObjId
1398 byteOffset: ValId
1399 length: ValId
1400
1401 - name: NewTypedArrayFromArrayResult
1402 shared: true
1403 transpile: true
1404 cost_estimate: 5
1405 args:
1406 templateObject: ObjectField
1407 array: ObjId
1408
1409 - name: NewMapObjectResult
1410 shared: true
1411 transpile: true
1412 cost_estimate: 5
1413 args:
1414 templateObject: ObjectField
1415
1416 - name: NewSetObjectResult
1417 shared: true
1418 transpile: true
1419 cost_estimate: 5
1420 args:
1421 templateObject: ObjectField
1422
1423 - name: NewMapObjectFromIterableResult
1424 shared: true
1425 transpile: true
1426 cost_estimate: 5
1427 args:
1428 templateObject: ObjectField
1429 iterable: ValId
1430
1431 - name: NewSetObjectFromIterableResult
1432 shared: true
1433 transpile: true
1434 cost_estimate: 5
1435 args:
1436 templateObject: ObjectField
1437 iterable: ValId
1438
1439 - name: NewStringObjectResult
1440 shared: true
1441 transpile: true
1442 cost_estimate: 5
1443 args:
1444 templateObject: ObjectField
1445 str: StringId
1446
1447 - name: StringFromCharCodeResult
1448 shared: false
1449 transpile: true
1450 cost_estimate: 5
1451 args:
1452 code: Int32Id
1453
1454 - name: StringFromCodePointResult
1455 shared: false
1456 transpile: true
1457 cost_estimate: 5
1458 args:
1459 code: Int32Id
1460
1461 - name: StringIncludesResult
1462 shared: true
1463 transpile: true
1464 cost_estimate: 5
1465 args:
1466 str: StringId
1467 searchStr: StringId
1468
1469 - name: StringIndexOfResult
1470 shared: true
1471 transpile: true
1472 cost_estimate: 5
1473 args:
1474 str: StringId
1475 searchStr: StringId
1476
1477 - name: StringLastIndexOfResult
1478 shared: true
1479 transpile: true
1480 cost_estimate: 5
1481 args:
1482 str: StringId
1483 searchStr: StringId
1484
1485 - name: StringStartsWithResult
1486 shared: true
1487 transpile: true
1488 cost_estimate: 5
1489 args:
1490 str: StringId
1491 searchStr: StringId
1492
1493 - name: StringEndsWithResult
1494 shared: true
1495 transpile: true
1496 cost_estimate: 5
1497 args:
1498 str: StringId
1499 searchStr: StringId
1500
1501 - name: StringToLowerCaseResult
1502 shared: true
1503 transpile: true
1504 cost_estimate: 5
1505 args:
1506 str: StringId
1507
1508 - name: StringToUpperCaseResult
1509 shared: true
1510 transpile: true
1511 cost_estimate: 5
1512 args:
1513 str: StringId
1514
1515 - name: StringTrimResult
1516 shared: true
1517 transpile: true
1518 cost_estimate: 5
1519 args:
1520 str: StringId
1521
1522 - name: StringTrimStartResult
1523 shared: true
1524 transpile: true
1525 cost_estimate: 5
1526 args:
1527 str: StringId
1528
1529 - name: StringTrimEndResult
1530 shared: true
1531 transpile: true
1532 cost_estimate: 5
1533 args:
1534 str: StringId
1535
1536 - name: MathAbsInt32Result
1537 shared: true
1538 transpile: true
1539 cost_estimate: 2
1540 args:
1541 input: Int32Id
1542
1543 - name: MathAbsNumberResult
1544 shared: true
1545 transpile: true
1546 cost_estimate: 1
1547 args:
1548 input: NumberId
1549
1550 - name: MathClz32Result
1551 shared: true
1552 transpile: true
1553 cost_estimate: 1
1554 args:
1555 input: Int32Id
1556
1557 - name: MathSignInt32Result
1558 shared: true
1559 transpile: true
1560 cost_estimate: 1
1561 args:
1562 input: Int32Id
1563
1564 - name: MathSignNumberResult
1565 shared: true
1566 transpile: true
1567 cost_estimate: 2
1568 args:
1569 input: NumberId
1570
1571 - name: MathSignNumberToInt32Result
1572 shared: true
1573 transpile: true
1574 cost_estimate: 2
1575 args:
1576 input: NumberId
1577
1578 - name: MathImulResult
1579 shared: true
1580 transpile: true
1581 cost_estimate: 1
1582 args:
1583 lhs: Int32Id
1584 rhs: Int32Id
1585
1586 - name: MathSqrtNumberResult
1587 shared: true
1588 transpile: true
1589 cost_estimate: 1
1590 args:
1591 input: NumberId
1592
1593 - name: MathFRoundNumberResult
1594 shared: true
1595 transpile: true
1596 cost_estimate: 1
1597 args:
1598 input: NumberId
1599
1600 - name: MathF16RoundNumberResult
1601 shared: true
1602 transpile: true
1603 cost_estimate: 4
1604 args:
1605 input: NumberId
1606
1607 # Because Baseline stub code is shared by all realms in the Zone, this
1608 # instruction loads a pointer to the RNG from a stub field.
1609 - name: MathRandomResult
1610 shared: false
1611 transpile: true
1612 cost_estimate: 3
1613 args:
1614 rng: RawPointerField
1615
1616 - name: MathHypot2NumberResult
1617 shared: true
1618 transpile: true
1619 cost_estimate: 4
1620 args:
1621 first: NumberId
1622 second: NumberId
1623
1624 - name: MathHypot3NumberResult
1625 shared: true
1626 transpile: true
1627 cost_estimate: 4
1628 args:
1629 first: NumberId
1630 second: NumberId
1631 third: NumberId
1632
1633 - name: MathHypot4NumberResult
1634 shared: true
1635 transpile: true
1636 cost_estimate: 4
1637 args:
1638 first: NumberId
1639 second: NumberId
1640 third: NumberId
1641 fourth: NumberId
1642
1643 - name: MathAtan2NumberResult
1644 shared: true
1645 transpile: true
1646 cost_estimate: 4
1647 args:
1648 lhs: NumberId
1649 rhs: NumberId
1650
1651 - name: MathFloorNumberResult
1652 shared: true
1653 transpile: true
1654 cost_estimate: 4
1655 args:
1656 input: NumberId
1657
1658 - name: MathCeilNumberResult
1659 shared: true
1660 transpile: true
1661 cost_estimate: 4
1662 args:
1663 input: NumberId
1664
1665 - name: MathTruncNumberResult
1666 shared: true
1667 transpile: true
1668 cost_estimate: 4
1669 args:
1670 input: NumberId
1671
1672 - name: MathFloorToInt32Result
1673 shared: true
1674 transpile: true
1675 cost_estimate: 3
1676 args:
1677 input: NumberId
1678
1679 - name: MathCeilToInt32Result
1680 shared: true
1681 transpile: true
1682 cost_estimate: 1
1683 args:
1684 input: NumberId
1685
1686 - name: MathTruncToInt32Result
1687 shared: true
1688 transpile: true
1689 args:
1690 input: NumberId
1691
1692 - name: MathRoundToInt32Result
1693 shared: true
1694 transpile: true
1695 cost_estimate: 1
1696 args:
1697 input: NumberId
1698
1699 - name: Int32MinMax
1700 shared: true
1701 transpile: true
1702 cost_estimate: 1
1703 args:
1704 isMax: BoolImm
1705 first: Int32Id
1706 second: Int32Id
1707 result: Int32Id
1708
1709 - name: NumberMinMax
1710 shared: true
1711 transpile: true
1712 cost_estimate: 1
1713 args:
1714 isMax: BoolImm
1715 first: NumberId
1716 second: NumberId
1717 result: NumberId
1718
1719 - name: Int32MinMaxArrayResult
1720 shared: true
1721 transpile: true
1722 cost_estimate: 3
1723 args:
1724 array: ObjId
1725 isMax: BoolImm
1726
1727 - name: NumberMinMaxArrayResult
1728 shared: true
1729 transpile: true
1730 cost_estimate: 3
1731 args:
1732 array: ObjId
1733 isMax: BoolImm
1734
1735 - name: MathFunctionNumberResult
1736 shared: true
1737 transpile: true
1738 cost_estimate: 4
1739 args:
1740 input: NumberId
1741 fun: UnaryMathFunctionImm
1742
1743 - name: NumberParseIntResult
1744 shared: true
1745 transpile: true
1746 cost_estimate: 5
1747 args:
1748 str: StringId
1749 radix: Int32Id
1750
1751 - name: DoubleParseIntResult
1752 shared: true
1753 transpile: true
1754 cost_estimate: 2
1755 args:
1756 num: NumberId
1757
1758 - name: ObjectToStringResult
1759 shared: true
1760 transpile: true
1761 cost_estimate: 4
1762 args:
1763 obj: ObjId
1764
1765 - name: ReflectGetPrototypeOfResult
1766 shared: false
1767 transpile: true
1768 cost_estimate: 5
1769 args:
1770 obj: ObjId
1771
1772 - name: StoreTypedArrayElement
1773 shared: true
1774 transpile: true
1775 cost_estimate: 3
1776 args:
1777 obj: ObjId
1778 elementType: ScalarTypeImm
1779 index: IntPtrId
1780 rhs: RawId
1781 handleOOB: BoolImm
1782 viewKind: ArrayBufferViewKindImm
1783
1784 - name: AtomicsCompareExchangeResult
1785 shared: true
1786 transpile: true
1787 cost_estimate: 4
1788 args:
1789 obj: ObjId
1790 index: IntPtrId
1791 expected: RawId
1792 replacement: RawId
1793 elementType: ScalarTypeImm
1794 viewKind: ArrayBufferViewKindImm
1795
1796 - name: AtomicsExchangeResult
1797 shared: true
1798 transpile: true
1799 cost_estimate: 4
1800 args:
1801 obj: ObjId
1802 index: IntPtrId
1803 value: RawId
1804 elementType: ScalarTypeImm
1805 viewKind: ArrayBufferViewKindImm
1806
1807 - name: AtomicsAddResult
1808 shared: true
1809 transpile: true
1810 cost_estimate: 4
1811 args:
1812 obj: ObjId
1813 index: IntPtrId
1814 value: RawId
1815 elementType: ScalarTypeImm
1816 forEffect: BoolImm
1817 viewKind: ArrayBufferViewKindImm
1818
1819 - name: AtomicsSubResult
1820 shared: true
1821 transpile: true
1822 cost_estimate: 4
1823 args:
1824 obj: ObjId
1825 index: IntPtrId
1826 value: RawId
1827 elementType: ScalarTypeImm
1828 forEffect: BoolImm
1829 viewKind: ArrayBufferViewKindImm
1830
1831 - name: AtomicsAndResult
1832 shared: true
1833 transpile: true
1834 cost_estimate: 4
1835 args:
1836 obj: ObjId
1837 index: IntPtrId
1838 value: RawId
1839 elementType: ScalarTypeImm
1840 forEffect: BoolImm
1841 viewKind: ArrayBufferViewKindImm
1842
1843 - name: AtomicsOrResult
1844 shared: true
1845 transpile: true
1846 cost_estimate: 4
1847 args:
1848 obj: ObjId
1849 index: IntPtrId
1850 value: RawId
1851 elementType: ScalarTypeImm
1852 forEffect: BoolImm
1853 viewKind: ArrayBufferViewKindImm
1854
1855 - name: AtomicsXorResult
1856 shared: true
1857 transpile: true
1858 cost_estimate: 4
1859 args:
1860 obj: ObjId
1861 index: IntPtrId
1862 value: RawId
1863 elementType: ScalarTypeImm
1864 forEffect: BoolImm
1865 viewKind: ArrayBufferViewKindImm
1866
1867 - name: AtomicsLoadResult
1868 shared: true
1869 transpile: true
1870 cost_estimate: 2
1871 args:
1872 obj: ObjId
1873 index: IntPtrId
1874 elementType: ScalarTypeImm
1875 viewKind: ArrayBufferViewKindImm
1876
1877 - name: AtomicsStoreResult
1878 shared: true
1879 transpile: true
1880 cost_estimate: 2
1881 args:
1882 obj: ObjId
1883 index: IntPtrId
1884 value: RawId
1885 elementType: ScalarTypeImm
1886 viewKind: ArrayBufferViewKindImm
1887
1888 - name: AtomicsIsLockFreeResult
1889 shared: true
1890 transpile: true
1891 cost_estimate: 1
1892 args:
1893 value: Int32Id
1894
1895 - name: AtomicsPauseResult
1896 shared: true
1897 transpile: true
1898 cost_estimate: 1
1899 args:
1900
1901 - name: CallNativeSetter
1902 shared: false
1903 transpile: true
1904 cost_estimate: 5
1905 custom_writer: true
1906 args:
1907 receiver: ObjId
1908 setter: ObjectField
1909 rhs: ValId
1910 sameRealm: BoolImm
1911 nargsAndFlags: RawInt32Field
1912
1913 - name: CallScriptedSetter
1914 shared: false
1915 transpile: true
1916 cost_estimate: 3
1917 custom_writer: true
1918 args:
1919 receiver: ObjId
1920 setter: ObjectField
1921 rhs: ValId
1922 sameRealm: BoolImm
1923 nargsAndFlags: RawInt32Field
1924
1925 - name: CallInlinedSetter
1926 shared: false
1927 transpile: true
1928 cost_estimate: 3
1929 custom_writer: true
1930 args:
1931 receiver: ObjId
1932 setter: ObjectField
1933 rhs: ValId
1934 icScript: ICScriptField
1935 sameRealm: BoolImm
1936 nargsAndFlags: RawInt32Field
1937
1938 - name: CallDOMSetter
1939 shared: false
1940 transpile: true
1941 cost_estimate: 4
1942 args:
1943 obj: ObjId
1944 jitInfo: RawPointerField
1945 rhs: ValId
1946
1947 - name: CallSetArrayLength
1948 shared: false
1949 transpile: true
1950 cost_estimate: 5
1951 args:
1952 obj: ObjId
1953 strict: BoolImm
1954 rhs: ValId
1955
1956 - name: ProxySet
1957 shared: false
1958 transpile: true
1959 cost_estimate: 5
1960 args:
1961 obj: ObjId
1962 id: IdField
1963 rhs: ValId
1964 strict: BoolImm
1965
1966 - name: ProxySetByValue
1967 shared: false
1968 transpile: true
1969 cost_estimate: 5
1970 args:
1971 obj: ObjId
1972 id: ValId
1973 rhs: ValId
1974 strict: BoolImm
1975
1976 - name: CallAddOrUpdateSparseElementHelper
1977 shared: false
1978 transpile: true
1979 cost_estimate: 5
1980 args:
1981 obj: ObjId
1982 id: Int32Id
1983 rhs: ValId
1984 strict: BoolImm
1985
1986 - name: CallInt32ToString
1987 shared: true
1988 transpile: true
1989 cost_estimate: 4
1990 args:
1991 input: Int32Id
1992 result: StringId
1993
1994 - name: CallNumberToString
1995 shared: true
1996 transpile: true
1997 cost_estimate: 4
1998 args:
1999 input: NumberId
2000 result: StringId
2001
2002 - name: Int32ToStringWithBaseResult
2003 shared: true
2004 transpile: true
2005 cost_estimate: 3
2006 args:
2007 input: Int32Id
2008 base: Int32Id
2009
2010 - name: BooleanToString
2011 shared: true
2012 transpile: true
2013 cost_estimate: 2
2014 args:
2015 input: BooleanId
2016 result: StringId
2017
2018 - name: CallScriptedFunction
2019 shared: false
2020 transpile: true
2021 cost_estimate: 3
2022 custom_writer: true
2023 args:
2024 callee: ObjId
2025 argc: Int32Id
2026 flags: CallFlagsImm
2027 argcFixed: UInt32Imm
2028
2029 - name: CallBoundScriptedFunction
2030 shared: false
2031 transpile: true
2032 cost_estimate: 3
2033 args:
2034 callee: ObjId
2035 target: ObjId
2036 argc: Int32Id
2037 flags: CallFlagsImm
2038 numBoundArgs: UInt32Imm
2039
2040 - name: CallWasmFunction
2041 shared: false
2042 transpile: true
2043 cost_estimate: 3
2044 args:
2045 callee: ObjId
2046 argc: Int32Id
2047 flags: CallFlagsImm
2048 argcFixed: UInt32Imm
2049 funcType: RawPointerField
2050 instance: ObjectField
2051
2052 - name: GuardWasmArg
2053 shared: true
2054 transpile: true
2055 cost_estimate: 2
2056 args:
2057 arg: ValId
2058 type: WasmValTypeImm
2059
2060 - name: CallNativeFunction
2061 shared: false
2062 transpile: true
2063 cost_estimate: 4
2064 custom_writer: true
2065 args:
2066 callee: ObjId
2067 argc: Int32Id
2068 flags: CallFlagsImm
2069 argcFixed: UInt32Imm
2070 #ifdef JS_SIMULATOR
2071 target: RawPointerField
2072 #else
2073 ignoresReturnValue: BoolImm
2074 #endif
2075
2076 - name: CallDOMFunction
2077 shared: false
2078 transpile: true
2079 cost_estimate: 4
2080 custom_writer: true
2081 args:
2082 callee: ObjId
2083 argc: Int32Id
2084 thisObj: ObjId
2085 flags: CallFlagsImm
2086 argcFixed: UInt32Imm
2087 #ifdef JS_SIMULATOR
2088 target: RawPointerField
2089 #endif
2090
2091 - name: CallDOMFunctionWithAllocSite
2092 shared: false
2093 transpile: true
2094 cost_estimate: 4
2095 custom_writer: true
2096 args:
2097 callee: ObjId
2098 argc: Int32Id
2099 thisObj: ObjId
2100 flags: CallFlagsImm
2101 argcFixed: UInt32Imm
2102 site: AllocSiteField
2103 #ifdef JS_SIMULATOR
2104 target: RawPointerField
2105 #endif
2106
2107 - name: CallClassHook
2108 shared: false
2109 transpile: true
2110 cost_estimate: 4
2111 custom_writer: true
2112 args:
2113 callee: ObjId
2114 argc: Int32Id
2115 flags: CallFlagsImm
2116 argcFixed: UInt32Imm
2117 target: RawPointerField
2118
2119 - name: CallInlinedFunction
2120 shared: false
2121 transpile: true
2122 cost_estimate: 4
2123 custom_writer: true
2124 args:
2125 callee: ObjId
2126 argc: Int32Id
2127 icScript: ICScriptField
2128 flags: CallFlagsImm
2129 argcFixed: UInt32Imm
2130
2131 #ifdef JS_PUNBOX64
2132 - name: CallScriptedProxyGetResult
2133 shared: false
2134 transpile: true
2135 cost_estimate: 4
2136 custom_writer: true
2137 args:
2138 target: ValId
2139 receiver: ObjId
2140 handler: ObjId
2141 trap: ObjId
2142 property: IdField
2143 nargsAndFlags: UInt32Imm
2144
2145 - name: CallScriptedProxyGetByValueResult
2146 shared: false
2147 transpile: true
2148 cost_estimate: 4
2149 custom_writer: true
2150 args:
2151 target: ValId
2152 receiver: ObjId
2153 handler: ObjId
2154 property: ValId
2155 trap: ObjId
2156 nargsAndFlags: UInt32Imm
2157 #endif
2158
2159 # Meta ops generate no code, but contain data for the Warp Transpiler.
2160 - name: MetaScriptedThisShape
2161 shared: true
2162 transpile: true
2163 cost_estimate: 0
2164 custom_writer: true
2165 args:
2166 thisShape: ShapeField
2167
2168 - name: BindFunctionResult
2169 shared: false
2170 transpile: true
2171 cost_estimate: 5
2172 args:
2173 target: ObjId
2174 argc: UInt32Imm
2175 templateObject: ObjectField
2176
2177 - name: SpecializedBindFunctionResult
2178 shared: false
2179 transpile: true
2180 cost_estimate: 4
2181 args:
2182 target: ObjId
2183 argc: UInt32Imm
2184 templateObject: ObjectField
2185
2186 - name: LoadFixedSlotResult
2187 shared: false
2188 transpile: true
2189 cost_estimate: 1
2190 args:
2191 obj: ObjId
2192 offset: RawInt32Field
2193
2194 - name: LoadFixedSlotTypedResult
2195 shared: false
2196 transpile: true
2197 cost_estimate: 1
2198 args:
2199 obj: ObjId
2200 offset: RawInt32Field
2201 type: ValueTypeImm
2202
2203 - name: LoadDynamicSlotResult
2204 shared: false
2205 transpile: true
2206 cost_estimate: 1
2207 args:
2208 obj: ObjId
2209 offset: RawInt32Field
2210
2211 - name: LoadDenseElementResult
2212 shared: true
2213 transpile: true
2214 cost_estimate: 2
2215 args:
2216 obj: ObjId
2217 index: Int32Id
2218
2219 - name: LoadDenseElementHoleResult
2220 shared: true
2221 transpile: true
2222 cost_estimate: 2
2223 args:
2224 obj: ObjId
2225 index: Int32Id
2226
2227 - name: CallGetSparseElementResult
2228 shared: true
2229 transpile: true
2230 cost_estimate: 5
2231 args:
2232 obj: ObjId
2233 index: Int32Id
2234
2235 - name: LoadDenseElementExistsResult
2236 shared: true
2237 transpile: true
2238 cost_estimate: 1
2239 args:
2240 obj: ObjId
2241 index: Int32Id
2242
2243 - name: LoadTypedArrayElementExistsResult
2244 shared: true
2245 transpile: true
2246 cost_estimate: 2
2247 args:
2248 obj: ObjId
2249 index: IntPtrId
2250 viewKind: ArrayBufferViewKindImm
2251
2252 - name: LoadDenseElementHoleExistsResult
2253 shared: true
2254 transpile: true
2255 cost_estimate: 2
2256 args:
2257 obj: ObjId
2258 index: Int32Id
2259
2260 - name: LoadTypedArrayElementResult
2261 shared: true
2262 transpile: true
2263 cost_estimate: 4
2264 args:
2265 obj: ObjId
2266 index: IntPtrId
2267 elementType: ScalarTypeImm
2268 handleOOB: BoolImm
2269 forceDoubleForUint32: BoolImm
2270 viewKind: ArrayBufferViewKindImm
2271
2272 - name: LoadDataViewValueResult
2273 shared: true
2274 transpile: true
2275 cost_estimate: 4
2276 args:
2277 obj: ObjId
2278 offset: IntPtrId
2279 littleEndian: BooleanId
2280 elementType: ScalarTypeImm
2281 forceDoubleForUint32: BoolImm
2282 viewKind: ArrayBufferViewKindImm
2283
2284 - name: StoreDataViewValueResult
2285 shared: true
2286 transpile: true
2287 cost_estimate: 4
2288 args:
2289 obj: ObjId
2290 offset: IntPtrId
2291 value: RawId
2292 littleEndian: BooleanId
2293 elementType: ScalarTypeImm
2294 viewKind: ArrayBufferViewKindImm
2295
2296 - name: LoadInt32ArrayLengthResult
2297 shared: true
2298 transpile: true
2299 cost_estimate: 1
2300 args:
2301 obj: ObjId
2302
2303 - name: LoadInt32ArrayLength
2304 shared: true
2305 transpile: true
2306 cost_estimate: 1
2307 args:
2308 obj: ObjId
2309 result: Int32Id
2310
2311 - name: LoadArgumentsObjectArgResult
2312 shared: true
2313 transpile: true
2314 cost_estimate: 2
2315 args:
2316 obj: ObjId
2317 index: Int32Id
2318
2319 - name: LoadArgumentsObjectArgHoleResult
2320 shared: true
2321 transpile: true
2322 cost_estimate: 2
2323 args:
2324 obj: ObjId
2325 index: Int32Id
2326
2327 - name: LoadArgumentsObjectArgExistsResult
2328 shared: true
2329 transpile: true
2330 cost_estimate: 2
2331 args:
2332 obj: ObjId
2333 index: Int32Id
2334
2335 - name: LoadArgumentsObjectLengthResult
2336 shared: true
2337 transpile: true
2338 cost_estimate: 1
2339 args:
2340 obj: ObjId
2341
2342 - name: LoadArgumentsObjectLength
2343 shared: true
2344 transpile: true
2345 cost_estimate: 1
2346 args:
2347 obj: ObjId
2348 result: Int32Id
2349
2350 - name: LoadFunctionLengthResult
2351 shared: true
2352 transpile: true
2353 cost_estimate: 2
2354 args:
2355 obj: ObjId
2356
2357 - name: LoadFunctionNameResult
2358 shared: true
2359 transpile: true
2360 cost_estimate: 2
2361 args:
2362 obj: ObjId
2363
2364 - name: LoadBoundFunctionNumArgs
2365 shared: true
2366 transpile: true
2367 cost_estimate: 1
2368 args:
2369 obj: ObjId
2370 result: Int32Id
2371
2372 - name: LoadBoundFunctionTarget
2373 shared: true
2374 transpile: true
2375 cost_estimate: 1
2376 args:
2377 obj: ObjId
2378 result: ObjId
2379
2380 - name: LoadBoundFunctionArgument
2381 shared: true
2382 transpile: true
2383 cost_estimate: 2
2384 args:
2385 obj: ObjId
2386 index: UInt32Imm
2387 result: ValId
2388
2389 - name: GuardBoundFunctionIsConstructor
2390 shared: true
2391 transpile: true
2392 cost_estimate: 1
2393 args:
2394 obj: ObjId
2395
2396 - name: LoadArrayBufferByteLengthInt32Result
2397 shared: true
2398 transpile: true
2399 cost_estimate: 1
2400 args:
2401 obj: ObjId
2402
2403 - name: LoadArrayBufferByteLengthDoubleResult
2404 shared: true
2405 transpile: true
2406 cost_estimate: 1
2407 args:
2408 obj: ObjId
2409
2410 - name: LoadArrayBufferViewLengthInt32Result
2411 shared: true
2412 transpile: true
2413 cost_estimate: 1
2414 args:
2415 obj: ObjId
2416
2417 - name: LoadArrayBufferViewLengthDoubleResult
2418 shared: true
2419 transpile: true
2420 cost_estimate: 1
2421 args:
2422 obj: ObjId
2423
2424 - name: LinearizeForCharAccess
2425 shared: true
2426 transpile: true
2427 cost_estimate: 4
2428 args:
2429 str: StringId
2430 index: Int32Id
2431 result: StringId
2432
2433 - name: LinearizeForCodePointAccess
2434 shared: true
2435 transpile: true
2436 cost_estimate: 4
2437 args:
2438 str: StringId
2439 index: Int32Id
2440 result: StringId
2441
2442 - name: ToRelativeStringIndex
2443 shared: true
2444 transpile: true
2445 cost_estimate: 1
2446 args:
2447 index: Int32Id
2448 str: StringId
2449 result: Int32Id
2450
2451 - name: LoadStringCharResult
2452 shared: false
2453 transpile: true
2454 cost_estimate: 5
2455 args:
2456 str: StringId
2457 index: Int32Id
2458 handleOOB: BoolImm
2459
2460 - name: LoadStringAtResult
2461 shared: false
2462 transpile: true
2463 cost_estimate: 5
2464 args:
2465 str: StringId
2466 index: Int32Id
2467 handleOOB: BoolImm
2468
2469 - name: LoadStringCharCodeResult
2470 shared: true
2471 transpile: true
2472 cost_estimate: 3
2473 args:
2474 str: StringId
2475 index: Int32Id
2476 handleOOB: BoolImm
2477
2478 - name: LoadStringCodePointResult
2479 shared: true
2480 transpile: true
2481 cost_estimate: 3
2482 args:
2483 str: StringId
2484 index: Int32Id
2485 handleOOB: BoolImm
2486
2487 - name: LoadStringLengthResult
2488 shared: true
2489 transpile: true
2490 cost_estimate: 1
2491 args:
2492 str: StringId
2493
2494 - name: FrameIsConstructingResult
2495 shared: false
2496 transpile: true
2497 cost_estimate: 1
2498 args:
2499
2500 - name: LoadObjectResult
2501 shared: true
2502 transpile: true
2503 cost_estimate: 1
2504 args:
2505 obj: ObjId
2506
2507 - name: LoadStringResult
2508 shared: true
2509 transpile: true
2510 cost_estimate: 1
2511 args:
2512 str: StringId
2513
2514 - name: LoadSymbolResult
2515 shared: true
2516 transpile: true
2517 cost_estimate: 1
2518 args:
2519 sym: SymbolId
2520
2521 - name: LoadInt32Result
2522 shared: true
2523 transpile: true
2524 cost_estimate: 1
2525 args:
2526 val: Int32Id
2527
2528 - name: LoadDoubleResult
2529 shared: true
2530 transpile: true
2531 cost_estimate: 2
2532 args:
2533 val: NumberId
2534
2535 - name: LoadBigIntResult
2536 shared: true
2537 transpile: true
2538 cost_estimate: 1
2539 args:
2540 val: BigIntId
2541
2542 - name: CallScriptedGetterResult
2543 shared: false
2544 transpile: true
2545 cost_estimate: 5
2546 custom_writer: true
2547 args:
2548 receiver: ValId
2549 getter: ObjectField
2550 sameRealm: BoolImm
2551 nargsAndFlags: RawInt32Field
2552
2553 - name: CallInlinedGetterResult
2554 shared: false
2555 transpile: true
2556 cost_estimate: 5
2557 custom_writer: true
2558 args:
2559 receiver: ValId
2560 getter: ObjectField
2561 icScript: ICScriptField
2562 sameRealm: BoolImm
2563 nargsAndFlags: RawInt32Field
2564
2565 - name: CallNativeGetterResult
2566 shared: false
2567 transpile: true
2568 cost_estimate: 5
2569 custom_writer: true
2570 args:
2571 receiver: ValId
2572 getter: ObjectField
2573 sameRealm: BoolImm
2574 nargsAndFlags: RawInt32Field
2575
2576 - name: CallDOMGetterResult
2577 shared: false
2578 transpile: true
2579 cost_estimate: 4
2580 args:
2581 obj: ObjId
2582 jitInfo: RawPointerField
2583
2584 - name: ProxyGetResult
2585 shared: false
2586 transpile: true
2587 cost_estimate: 5
2588 args:
2589 obj: ObjId
2590 id: IdField
2591
2592 - name: ProxyGetByValueResult
2593 shared: true
2594 transpile: true
2595 cost_estimate: 5
2596 args:
2597 obj: ObjId
2598 id: ValId
2599
2600 - name: ProxyHasPropResult
2601 shared: true
2602 transpile: true
2603 cost_estimate: 5
2604 args:
2605 obj: ObjId
2606 id: ValId
2607 hasOwn: BoolImm
2608
2609 - name: CallObjectHasSparseElementResult
2610 shared: true
2611 transpile: true
2612 cost_estimate: 4
2613 args:
2614 obj: ObjId
2615 index: Int32Id
2616
2617 - name: CallNativeGetElementResult
2618 shared: true
2619 transpile: true
2620 cost_estimate: 5
2621 args:
2622 obj: ObjId
2623 index: Int32Id
2624
2625 - name: CallNativeGetElementSuperResult
2626 shared: true
2627 transpile: true
2628 cost_estimate: 5
2629 args:
2630 obj: ObjId
2631 index: Int32Id
2632 receiver: ValId
2633
2634 - name: GetNextMapSetEntryForIteratorResult
2635 shared: true
2636 transpile: true
2637 cost_estimate: 4
2638 args:
2639 iter: ObjId
2640 resultArr: ObjId
2641 isMap: BoolImm
2642
2643 - name: LoadUndefinedResult
2644 shared: true
2645 transpile: true
2646 cost_estimate: 1
2647 args:
2648
2649 - name: LoadBooleanResult
2650 shared: true
2651 transpile: true
2652 cost_estimate: 1
2653 args:
2654 val: BoolImm
2655
2656 - name: LoadInt32Constant
2657 shared: true
2658 transpile: true
2659 cost_estimate: 1
2660 args:
2661 val: RawInt32Field
2662 result: Int32Id
2663
2664 - name: LoadDoubleConstant
2665 shared: true
2666 transpile: true
2667 cost_estimate: 1
2668 args:
2669 val: DoubleField
2670 result: NumberId
2671
2672 - name: LoadBooleanConstant
2673 shared: true
2674 transpile: true
2675 cost_estimate: 1
2676 args:
2677 val: BoolImm
2678 result: BooleanId
2679
2680 - name: LoadUndefined
2681 shared: true
2682 transpile: true
2683 cost_estimate: 1
2684 args:
2685 result: ValId
2686
2687 - name: LoadConstantString
2688 shared: true
2689 transpile: true
2690 cost_estimate: 1
2691 args:
2692 str: StringField
2693 result: StringId
2694
2695 - name: LoadConstantStringResult
2696 shared: false
2697 transpile: true
2698 cost_estimate: 1
2699 args:
2700 str: StringField
2701
2702 - name: LoadInstanceOfObjectResult
2703 shared: true
2704 transpile: true
2705 cost_estimate: 3
2706 args:
2707 lhs: ValId
2708 proto: ObjId
2709
2710 - name: LoadTypeOfObjectResult
2711 shared: true
2712 transpile: true
2713 cost_estimate: 4
2714 args:
2715 obj: ObjId
2716
2717 - name: LoadTypeOfEqObjectResult
2718 shared: true
2719 transpile: true
2720 cost_estimate: 4
2721 args:
2722 obj: ObjId
2723 operand: TypeofEqOperandImm
2724
2725 - name: DoubleAddResult
2726 shared: true
2727 transpile: true
2728 cost_estimate: 2
2729 args:
2730 lhs: NumberId
2731 rhs: NumberId
2732
2733 - name: DoubleSubResult
2734 shared: true
2735 transpile: true
2736 cost_estimate: 2
2737 args:
2738 lhs: NumberId
2739 rhs: NumberId
2740
2741 - name: DoubleMulResult
2742 shared: true
2743 transpile: true
2744 cost_estimate: 2
2745 args:
2746 lhs: NumberId
2747 rhs: NumberId
2748
2749 - name: DoubleDivResult
2750 shared: true
2751 transpile: true
2752 cost_estimate: 2
2753 args:
2754 lhs: NumberId
2755 rhs: NumberId
2756
2757 - name: DoubleModResult
2758 shared: true
2759 transpile: true
2760 cost_estimate: 4
2761 args:
2762 lhs: NumberId
2763 rhs: NumberId
2764
2765 - name: DoublePowResult
2766 shared: true
2767 transpile: true
2768 cost_estimate: 4
2769 args:
2770 lhs: NumberId
2771 rhs: NumberId
2772
2773 - name: Int32AddResult
2774 shared: true
2775 transpile: true
2776 cost_estimate: 1
2777 args:
2778 lhs: Int32Id
2779 rhs: Int32Id
2780
2781 - name: Int32SubResult
2782 shared: true
2783 transpile: true
2784 cost_estimate: 1
2785 args:
2786 lhs: Int32Id
2787 rhs: Int32Id
2788
2789 - name: Int32MulResult
2790 shared: true
2791 transpile: true
2792 cost_estimate: 2
2793 args:
2794 lhs: Int32Id
2795 rhs: Int32Id
2796
2797 - name: Int32DivResult
2798 shared: true
2799 transpile: true
2800 cost_estimate: 2
2801 args:
2802 lhs: Int32Id
2803 rhs: Int32Id
2804
2805 - name: Int32ModResult
2806 shared: true
2807 transpile: true
2808 cost_estimate: 2
2809 args:
2810 lhs: Int32Id
2811 rhs: Int32Id
2812
2813 - name: Int32PowResult
2814 shared: true
2815 transpile: true
2816 cost_estimate: 1
2817 args:
2818 lhs: Int32Id
2819 rhs: Int32Id
2820
2821 - name: BigIntAddResult
2822 shared: true
2823 transpile: true
2824 cost_estimate: 5
2825 args:
2826 lhs: BigIntId
2827 rhs: BigIntId
2828
2829 - name: BigIntSubResult
2830 shared: true
2831 transpile: true
2832 cost_estimate: 5
2833 args:
2834 lhs: BigIntId
2835 rhs: BigIntId
2836
2837 - name: BigIntMulResult
2838 shared: true
2839 transpile: true
2840 cost_estimate: 5
2841 args:
2842 lhs: BigIntId
2843 rhs: BigIntId
2844
2845 - name: BigIntDivResult
2846 shared: true
2847 transpile: true
2848 cost_estimate: 5
2849 args:
2850 lhs: BigIntId
2851 rhs: BigIntId
2852
2853 - name: BigIntModResult
2854 shared: true
2855 transpile: true
2856 cost_estimate: 5
2857 args:
2858 lhs: BigIntId
2859 rhs: BigIntId
2860
2861 - name: BigIntPowResult
2862 shared: true
2863 transpile: true
2864 cost_estimate: 5
2865 args:
2866 lhs: BigIntId
2867 rhs: BigIntId
2868
2869 - name: BigIntToIntPtr
2870 shared: true
2871 transpile: true
2872 cost_estimate: 1
2873 args:
2874 input: BigIntId
2875 result: IntPtrId
2876
2877 - name: IntPtrToBigIntResult
2878 shared: true
2879 transpile: true
2880 cost_estimate: 5
2881 args:
2882 input: IntPtrId
2883
2884 - name: BigIntPtrAdd
2885 shared: true
2886 transpile: true
2887 cost_estimate: 1
2888 args:
2889 lhs: IntPtrId
2890 rhs: IntPtrId
2891 result: IntPtrId
2892
2893 - name: BigIntPtrSub
2894 shared: true
2895 transpile: true
2896 cost_estimate: 1
2897 args:
2898 lhs: IntPtrId
2899 rhs: IntPtrId
2900 result: IntPtrId
2901
2902 - name: BigIntPtrMul
2903 shared: true
2904 transpile: true
2905 cost_estimate: 1
2906 args:
2907 lhs: IntPtrId
2908 rhs: IntPtrId
2909 result: IntPtrId
2910
2911 - name: BigIntPtrDiv
2912 shared: true
2913 transpile: true
2914 cost_estimate: 1
2915 args:
2916 lhs: IntPtrId
2917 rhs: IntPtrId
2918 result: IntPtrId
2919
2920 - name: BigIntPtrMod
2921 shared: true
2922 transpile: true
2923 cost_estimate: 1
2924 args:
2925 lhs: IntPtrId
2926 rhs: IntPtrId
2927 result: IntPtrId
2928
2929 - name: BigIntPtrPow
2930 shared: true
2931 transpile: true
2932 cost_estimate: 2
2933 args:
2934 lhs: IntPtrId
2935 rhs: IntPtrId
2936 result: IntPtrId
2937
2938 - name: Int32BitOrResult
2939 shared: true
2940 transpile: true
2941 cost_estimate: 1
2942 args:
2943 lhs: Int32Id
2944 rhs: Int32Id
2945
2946 - name: Int32BitXorResult
2947 shared: true
2948 transpile: true
2949 cost_estimate: 1
2950 args:
2951 lhs: Int32Id
2952 rhs: Int32Id
2953
2954 - name: Int32BitAndResult
2955 shared: true
2956 transpile: true
2957 cost_estimate: 1
2958 args:
2959 lhs: Int32Id
2960 rhs: Int32Id
2961
2962 - name: Int32LeftShiftResult
2963 shared: true
2964 transpile: true
2965 cost_estimate: 1
2966 args:
2967 lhs: Int32Id
2968 rhs: Int32Id
2969
2970 - name: Int32RightShiftResult
2971 shared: true
2972 transpile: true
2973 cost_estimate: 1
2974 args:
2975 lhs: Int32Id
2976 rhs: Int32Id
2977
2978 - name: Int32URightShiftResult
2979 shared: true
2980 transpile: true
2981 cost_estimate: 2
2982 args:
2983 lhs: Int32Id
2984 rhs: Int32Id
2985 forceDouble: BoolImm
2986
2987 - name: Int32NotResult
2988 shared: true
2989 transpile: true
2990 cost_estimate: 1
2991 args:
2992 input: Int32Id
2993
2994 - name: BigIntBitOrResult
2995 shared: true
2996 transpile: true
2997 cost_estimate: 5
2998 args:
2999 lhs: BigIntId
3000 rhs: BigIntId
3001
3002 - name: BigIntBitXorResult
3003 shared: true
3004 transpile: true
3005 cost_estimate: 5
3006 args:
3007 lhs: BigIntId
3008 rhs: BigIntId
3009
3010 - name: BigIntBitAndResult
3011 shared: true
3012 transpile: true
3013 cost_estimate: 5
3014 args:
3015 lhs: BigIntId
3016 rhs: BigIntId
3017
3018 - name: BigIntLeftShiftResult
3019 shared: true
3020 transpile: true
3021 cost_estimate: 5
3022 args:
3023 lhs: BigIntId
3024 rhs: BigIntId
3025
3026 - name: BigIntRightShiftResult
3027 shared: true
3028 transpile: true
3029 cost_estimate: 5
3030 args:
3031 lhs: BigIntId
3032 rhs: BigIntId
3033
3034 - name: BigIntNotResult
3035 shared: true
3036 transpile: true
3037 cost_estimate: 5
3038 args:
3039 input: BigIntId
3040
3041 - name: BigIntPtrBitOr
3042 shared: true
3043 transpile: true
3044 cost_estimate: 1
3045 args:
3046 lhs: IntPtrId
3047 rhs: IntPtrId
3048 result: IntPtrId
3049
3050 - name: BigIntPtrBitXor
3051 shared: true
3052 transpile: true
3053 cost_estimate: 1
3054 args:
3055 lhs: IntPtrId
3056 rhs: IntPtrId
3057 result: IntPtrId
3058
3059 - name: BigIntPtrBitAnd
3060 shared: true
3061 transpile: true
3062 cost_estimate: 1
3063 args:
3064 lhs: IntPtrId
3065 rhs: IntPtrId
3066 result: IntPtrId
3067
3068 - name: BigIntPtrLeftShift
3069 shared: true
3070 transpile: true
3071 cost_estimate: 3
3072 args:
3073 lhs: IntPtrId
3074 rhs: IntPtrId
3075 result: IntPtrId
3076
3077 - name: BigIntPtrRightShift
3078 shared: true
3079 transpile: true
3080 cost_estimate: 3
3081 args:
3082 lhs: IntPtrId
3083 rhs: IntPtrId
3084 result: IntPtrId
3085
3086 - name: BigIntPtrNot
3087 shared: true
3088 transpile: true
3089 cost_estimate: 1
3090 args:
3091 input: IntPtrId
3092 result: IntPtrId
3093
3094 - name: Int32NegationResult
3095 shared: true
3096 transpile: true
3097 cost_estimate: 1
3098 args:
3099 input: Int32Id
3100
3101 - name: DoubleNegationResult
3102 shared: true
3103 transpile: true
3104 cost_estimate: 1
3105 args:
3106 input: NumberId
3107
3108 - name: BigIntNegationResult
3109 shared: true
3110 transpile: true
3111 cost_estimate: 5
3112 args:
3113 input: BigIntId
3114
3115 - name: BigIntPtrNegation
3116 shared: true
3117 transpile: true
3118 cost_estimate: 1
3119 args:
3120 input: IntPtrId
3121 result: IntPtrId
3122
3123 - name: Int32IncResult
3124 shared: true
3125 transpile: true
3126 cost_estimate: 1
3127 args:
3128 input: Int32Id
3129
3130 - name: Int32DecResult
3131 shared: true
3132 transpile: true
3133 cost_estimate: 1
3134 args:
3135 input: Int32Id
3136
3137 - name: DoubleIncResult
3138 shared: true
3139 transpile: true
3140 cost_estimate: 1
3141 args:
3142 input: NumberId
3143
3144 - name: DoubleDecResult
3145 shared: true
3146 transpile: true
3147 cost_estimate: 1
3148 args:
3149 input: NumberId
3150
3151 - name: BigIntIncResult
3152 shared: true
3153 transpile: true
3154 cost_estimate: 5
3155 args:
3156 input: BigIntId
3157
3158 - name: BigIntDecResult
3159 shared: true
3160 transpile: true
3161 cost_estimate: 5
3162 args:
3163 input: BigIntId
3164
3165 - name: BigIntPtrInc
3166 shared: true
3167 transpile: true
3168 cost_estimate: 1
3169 args:
3170 input: IntPtrId
3171 result: IntPtrId
3172
3173 - name: BigIntPtrDec
3174 shared: true
3175 transpile: true
3176 cost_estimate: 1
3177 args:
3178 input: IntPtrId
3179 result: IntPtrId
3180
3181 - name: LoadInt32TruthyResult
3182 shared: true
3183 transpile: true
3184 cost_estimate: 2
3185 args:
3186 input: ValId
3187
3188 - name: LoadDoubleTruthyResult
3189 shared: true
3190 transpile: true
3191 cost_estimate: 2
3192 args:
3193 input: NumberId
3194
3195 - name: LoadStringTruthyResult
3196 shared: true
3197 transpile: true
3198 cost_estimate: 2
3199 args:
3200 str: StringId
3201
3202 - name: LoadObjectTruthyResult
3203 shared: true
3204 transpile: true
3205 cost_estimate: 4
3206 args:
3207 obj: ObjId
3208
3209 - name: LoadBigIntTruthyResult
3210 shared: true
3211 transpile: true
3212 cost_estimate: 2
3213 args:
3214 bigInt: BigIntId
3215
3216 - name: LoadValueTruthyResult
3217 shared: true
3218 transpile: true
3219 cost_estimate: 4
3220 args:
3221 input: ValId
3222
3223 - name: LoadValueResult
3224 shared: false
3225 transpile: false
3226 cost_estimate: 1
3227 args:
3228 val: ValueField
3229
3230 - name: LoadOperandResult
3231 shared: true
3232 transpile: true
3233 cost_estimate: 1
3234 args:
3235 input: ValId
3236
3237 - name: NewPlainObjectResult
3238 shared: false
3239 transpile: true
3240 cost_estimate: 4
3241 args:
3242 numFixedSlots: UInt32Imm
3243 numDynamicSlots: UInt32Imm
3244 allocKind: AllocKindImm
3245 shape: ShapeField
3246 site: AllocSiteField
3247
3248 - name: NewArrayObjectResult
3249 shared: false
3250 transpile: true
3251 cost_estimate: 4
3252 args:
3253 arrayLength: UInt32Imm
3254 shape: ShapeField
3255 site: AllocSiteField
3256
3257 - name: NewFunctionCloneResult
3258 shared: false
3259 transpile: true
3260 cost_estimate: 4
3261 args:
3262 canonical: ObjectField
3263 allocKind: AllocKindImm
3264 site: AllocSiteField
3265
3266 - name: ConcatStringsResult
3267 shared: true
3268 transpile: true
3269 cost_estimate: 5
3270 args:
3271 lhs: StringId
3272 rhs: StringId
3273 stub: JitCodeField
3274
3275 - name: CallStringObjectConcatResult
3276 shared: false
3277 transpile: false
3278 cost_estimate: 5
3279 args:
3280 lhs: ValId
3281 rhs: ValId
3282
3283 - name: CallIsSuspendedGeneratorResult
3284 shared: true
3285 transpile: false
3286 cost_estimate: 2
3287 args:
3288 val: ValId
3289
3290 - name: CompareStringResult
3291 shared: false
3292 transpile: true
3293 cost_estimate: 5
3294 args:
3295 op: JSOpImm
3296 lhs: StringId
3297 rhs: StringId
3298
3299 - name: CompareObjectResult
3300 shared: true
3301 transpile: true
3302 cost_estimate: 2
3303 args:
3304 op: JSOpImm
3305 lhs: ObjId
3306 rhs: ObjId
3307
3308 - name: CompareSymbolResult
3309 shared: true
3310 transpile: true
3311 cost_estimate: 2
3312 args:
3313 op: JSOpImm
3314 lhs: SymbolId
3315 rhs: SymbolId
3316
3317 - name: CompareInt32Result
3318 shared: true
3319 transpile: true
3320 cost_estimate: 2
3321 args:
3322 op: JSOpImm
3323 lhs: Int32Id
3324 rhs: Int32Id
3325
3326 - name: CompareDoubleResult
3327 shared: true
3328 transpile: true
3329 cost_estimate: 2
3330 args:
3331 op: JSOpImm
3332 lhs: NumberId
3333 rhs: NumberId
3334
3335 - name: CompareBigIntResult
3336 shared: true
3337 transpile: true
3338 cost_estimate: 4
3339 args:
3340 op: JSOpImm
3341 lhs: BigIntId
3342 rhs: BigIntId
3343
3344 - name: CompareBigIntInt32Result
3345 shared: true
3346 transpile: true
3347 cost_estimate: 3
3348 args:
3349 op: JSOpImm
3350 lhs: BigIntId
3351 rhs: Int32Id
3352
3353 - name: CompareBigIntNumberResult
3354 shared: true
3355 transpile: true
3356 cost_estimate: 4
3357 args:
3358 op: JSOpImm
3359 lhs: BigIntId
3360 rhs: NumberId
3361
3362 - name: CompareBigIntStringResult
3363 shared: true
3364 transpile: true
3365 cost_estimate: 5
3366 args:
3367 op: JSOpImm
3368 lhs: BigIntId
3369 rhs: StringId
3370
3371 - name: CompareNullUndefinedResult
3372 shared: true
3373 transpile: true
3374 cost_estimate: 2
3375 args:
3376 op: JSOpImm
3377 isUndefined: BoolImm
3378 input: ValId
3379
3380 - name: CompareDoubleSameValueResult
3381 shared: true
3382 transpile: true
3383 cost_estimate: 3
3384 args:
3385 lhs: NumberId
3386 rhs: NumberId
3387
3388 - name: SameValueResult
3389 shared: false
3390 transpile: true
3391 cost_estimate: 4
3392 args:
3393 lhs: ValId
3394 rhs: ValId
3395
3396 - name: IndirectTruncateInt32Result
3397 shared: true
3398 transpile: true
3399 cost_estimate: 1
3400 args:
3401 val: Int32Id
3402
3403 - name: BigIntAsIntNResult
3404 shared: true
3405 transpile: true
3406 cost_estimate: 5
3407 args:
3408 bits: Int32Id
3409 bigInt: BigIntId
3410
3411 - name: BigIntAsUintNResult
3412 shared: true
3413 transpile: true
3414 cost_estimate: 5
3415 args:
3416 bits: Int32Id
3417 bigInt: BigIntId
3418
3419 - name: SetHasResult
3420 shared: true
3421 transpile: true
3422 cost_estimate: 5
3423 args:
3424 set: ObjId
3425 val: ValId
3426
3427 - name: SetHasNonGCThingResult
3428 shared: true
3429 transpile: true
3430 cost_estimate: 3
3431 args:
3432 set: ObjId
3433 val: ValId
3434
3435 - name: SetHasStringResult
3436 shared: false
3437 transpile: true
3438 cost_estimate: 5
3439 args:
3440 set: ObjId
3441 str: StringId
3442
3443 - name: SetHasSymbolResult
3444 shared: true
3445 transpile: true
3446 cost_estimate: 3
3447 args:
3448 set: ObjId
3449 sym: SymbolId
3450
3451 - name: SetHasBigIntResult
3452 shared: true
3453 transpile: true
3454 cost_estimate: 3
3455 args:
3456 set: ObjId
3457 bigInt: BigIntId
3458
3459 - name: SetHasObjectResult
3460 shared: true
3461 transpile: true
3462 cost_estimate: 3
3463 args:
3464 set: ObjId
3465 obj: ObjId
3466
3467 - name: SetDeleteResult
3468 shared: true
3469 transpile: true
3470 cost_estimate: 5
3471 args:
3472 set: ObjId
3473 val: ValId
3474
3475 - name: SetAddResult
3476 shared: true
3477 transpile: true
3478 cost_estimate: 5
3479 args:
3480 set: ObjId
3481 key: ValId
3482
3483 - name: SetSizeResult
3484 shared: true
3485 transpile: true
3486 cost_estimate: 1
3487 args:
3488 set: ObjId
3489
3490 - name: MapHasResult
3491 shared: true
3492 transpile: true
3493 cost_estimate: 5
3494 args:
3495 map: ObjId
3496 val: ValId
3497
3498 - name: MapHasNonGCThingResult
3499 shared: true
3500 transpile: true
3501 cost_estimate: 3
3502 args:
3503 map: ObjId
3504 val: ValId
3505
3506 - name: MapHasStringResult
3507 shared: false
3508 transpile: true
3509 cost_estimate: 5
3510 args:
3511 map: ObjId
3512 str: StringId
3513
3514 - name: MapHasSymbolResult
3515 shared: true
3516 transpile: true
3517 cost_estimate: 3
3518 args:
3519 map: ObjId
3520 sym: SymbolId
3521
3522 - name: MapHasBigIntResult
3523 shared: true
3524 transpile: true
3525 cost_estimate: 3
3526 args:
3527 map: ObjId
3528 bigInt: BigIntId
3529
3530 - name: MapHasObjectResult
3531 shared: true
3532 transpile: true
3533 cost_estimate: 3
3534 args:
3535 map: ObjId
3536 obj: ObjId
3537
3538 - name: MapGetResult
3539 shared: true
3540 transpile: true
3541 cost_estimate: 5
3542 args:
3543 map: ObjId
3544 val: ValId
3545
3546 - name: MapGetNonGCThingResult
3547 shared: true
3548 transpile: true
3549 cost_estimate: 3
3550 args:
3551 map: ObjId
3552 val: ValId
3553
3554 - name: MapGetStringResult
3555 shared: false
3556 transpile: true
3557 cost_estimate: 5
3558 args:
3559 map: ObjId
3560 str: StringId
3561
3562 - name: MapGetSymbolResult
3563 shared: true
3564 transpile: true
3565 cost_estimate: 3
3566 args:
3567 map: ObjId
3568 sym: SymbolId
3569
3570 - name: MapGetBigIntResult
3571 shared: true
3572 transpile: true
3573 cost_estimate: 3
3574 args:
3575 map: ObjId
3576 bigInt: BigIntId
3577
3578 - name: MapGetObjectResult
3579 shared: true
3580 transpile: true
3581 cost_estimate: 3
3582 args:
3583 map: ObjId
3584 obj: ObjId
3585
3586 - name: MapDeleteResult
3587 shared: true
3588 transpile: true
3589 cost_estimate: 5
3590 args:
3591 map: ObjId
3592 val: ValId
3593
3594 - name: MapSetResult
3595 shared: true
3596 transpile: true
3597 cost_estimate: 5
3598 args:
3599 map: ObjId
3600 key: ValId
3601 val: ValId
3602
3603 - name: MapSizeResult
3604 shared: true
3605 transpile: true
3606 cost_estimate: 1
3607 args:
3608 map: ObjId
3609
3610 - name: DateFillLocalTimeSlots
3611 shared: true
3612 transpile: true
3613 cost_estimate: 4
3614 args:
3615 date: ObjId
3616
3617 - name: DateHoursFromSecondsIntoYearResult
3618 shared: true
3619 transpile: true
3620 cost_estimate: 2
3621 args:
3622 secondsIntoYear: ValId
3623
3624 - name: DateMinutesFromSecondsIntoYearResult
3625 shared: true
3626 transpile: true
3627 cost_estimate: 2
3628 args:
3629 secondsIntoYear: ValId
3630
3631 - name: DateSecondsFromSecondsIntoYearResult
3632 shared: true
3633 transpile: true
3634 cost_estimate: 2
3635 args:
3636 secondsIntoYear: ValId
3637
3638 - name: ArrayFromArgumentsObjectResult
3639 shared: true
3640 transpile: true
3641 cost_estimate: 5
3642 args:
3643 obj: ObjId
3644 shape: ShapeField
3645
3646 - name: CloseIterScriptedResult
3647 shared: false
3648 transpile: true
3649 cost_estimate: 5
3650 args:
3651 iter: ObjId
3652 callee: ObjId
3653 kind: CompletionKindImm
3654 targetNargs: UInt32Imm
3655
3656 - name: CallPrintString
3657 shared: true
3658 transpile: false
3659 cost_estimate: 1
3660 args:
3661 str: StaticStringImm
3662
3663 - name: Breakpoint
3664 shared: true
3665 transpile: false
3666 cost_estimate: 1
3667 args:
3668
3669 - name: WrapResult
3670 shared: true
3671 transpile: false
3672 cost_estimate: 4
3673 args:
3674
3675 - name: Bailout
3676 shared: true
3677 transpile: true
3678 cost_estimate: 0
3679 args:
3680
3681 - name: AssertFloat32Result
3682 shared: true
3683 transpile: true
3684 cost_estimate: 1
3685 args:
3686 val: ValId
3687 mustBeFloat32: BoolImm
3688
3689 - name: AssertRecoveredOnBailoutResult
3690 shared: true
3691 transpile: true
3692 cost_estimate: 1
3693 args:
3694 val: ValId
3695 mustBeRecovered: BoolImm
3696
3697 - name: AssertPropertyLookup
3698 shared: true
3699 transpile: true
3700 cost_estimate: 4
3701 args:
3702 obj: ObjId
3703 id: IdField
3704 slot: RawInt32Field
3705
3706 #ifdef FUZZING_JS_FUZZILLI
3707 - name: FuzzilliHashResult
3708 shared: true
3709 transpile: true
3710 cost_estimate: 4
3711 args:
3712 val: ValId
3713 #endif