Debian Codegraph @

js/src/jit/MIROps.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] MIR Opcodes
6 # =======================
7 # This file defines all MIR opcodes. It is parsed by GenerateMIRFiles.py
8 # at build time to create MIROpsGenerated.h. Each opcode consists of a
9 # name and a set of attributes that are described below. A few of the
10 # attributes below allow setting the value to "custom", meaning the
11 # method will be declared for the MIR op, but will need to be implemented
12 # in C++ (typically done in MIR.cpp). Unless marked as required, attributes
13 # are optional.
14 #
15 # name [required]
16 # ====
17 # Opcode name.
18 # Possible values:
19 # - opcode string: used as the name for MIR opcode.
20 #
21 # gen_boilerplate
22 # ===============
23 # Used to decide to generate MIR boilerplate.
24 # - true (default): auto generate boilerplate for this MIR opcode
25 # - false: do not generate boilerplate for this MIR opcode
26 #
27 # operands
28 # ========
29 # A list of operands for the MIR op class constructor. Each operand is a
30 # MIR node. The operand kind is specified from the one of the kinds from
31 # the MIRType enum in IonTypes.h. The specified types for the
32 # operands will decide the type policy for the instruction.
33 #
34 # The naming of operands is how the NAMED_OPERANDS macro will define
35 # its operands.
36 #
37 # For example:
38 # object: Object
39 # id: Value
40 # value: Object
41 #
42 # Will result in an instruction having the type policy of:
43 # MixPolicy<ObjectPolicy<0>, BoxPolicy<1>, ObjectPolicy<2>>
44 # and a named operands definition that looks like the following:
45 # NAMED_OPERANDS((0, object), (1, idValue), (2, value))
46 #
47 # - attribute not specified (default): no code generated
48 # - operand list: MIRTypes (See MIRType in jit/IonTypes.h)
49 #
50 # arguments
51 # =========
52 # A list of non-MIR node arguments to the MIR op class constructor
53 # that are passed along with the operands. The arguments require
54 # both a name and a full type signature for each item in the list.
55 #
56 # For example:
57 # templateObject: JSObject*
58 # initialHeap: gc::Heap
59 #
60 # For each argument a private variable declaration will be autogenerated
61 # in the MIR op class, as well as simple accessor for that variable. If
62 # the type of the variable is a GC pointer it will by automatically
63 # wrapped by CompilerGCPointer. The above arguments list will result in
64 # the following declarations and accessors:
65 #
66 # CompilerGCPointer<JSObject*> templateObject_;
67 # gc::Heap initialHeap_;
68 #
69 # JSObject* templateObject() const { return templateObject_; }
70 # gc::Heap initialHeap() const { return initialHeap_; }
71 #
72 # - attribute not specified (default): no code generated
73 # - operand list: argument names and their full type signature
74 #
75 # type_policy
76 # ============
77 # If this attribute is present, then the type policy for that opcode will be
78 # NoTypePolicy. This is used for opcode that should have no type policy.
79 # - attribute not specified (default): no code generated, type policy
80 # is based off of operands
81 # - none: defines the type policy as opcode's NoTypePolicy
82 #
83 # result_type
84 # ===========
85 # Defines the result type of the MIR opcode.
86 # - attribute not specified (default): no code is generated
87 # - MIRType string: Will add a call to setResultType to the opcode constructor.
88 # This will set the MIR opcodes result type to whatever the
89 # specified MIRType is (See MIRType in jit/IonTypes.h).
90 #
91 # guard
92 # =====
93 # Set if the opcode is a guard instruction and is used for checks in optimizations
94 # such as range analysis and value numbering.
95 # - attribute not specified (default): no code generated
96 # - true: adds setGuard to opcode constructor
97 #
98 # movable
99 # =======
100 # Defines the movable MIR flag for movable instructions. This is used for knowing
101 # whether we can hoist an instruction.
102 # - attribute not specified (default): no code generated
103 # - true: adds setMovable call in opcode constructor
104 #
105 # folds_to
106 # ========
107 # The foldsTo method is used for determining if an instruction can be folded into
108 # simpler instruction or for constant folding, depending on its operands.
109 # - attribute not specified (default): no code generated, no constants to fold
110 # - custom: custom C++ implementation
111 #
112 # congruent_to
113 # ============
114 # Used by ValueNumbering to determine if two values are congruent.
115 # - attribute not specified (default): no code generated, congruentTo(foo) returns
116 # false
117 # - if_operands_equal: congruentTo(foo) will return congruentIfOperandsEqual(foo)
118 # - custom: custom C++ implementation
119 #
120 # alias_set
121 # =========
122 # Defines the getAliasSet function for a MIR op. The alias set is used for alias
123 # analysis. The default alias set is Any.
124 # - attribute not specified (default): no code generated, alias set is Any
125 # - none: this is the most common case, this is will set the alias set to None.
126 # - custom: custom C++ implementation in MIR.cpp
127 #
128 # possibly_calls
129 # ==============
130 # Defines if a opcode can possibly call.
131 # - attribute not specified (default): no code generated, opcode does not call
132 # - true: possiblyCalls returns true
133 # - custom: custom C++ implementation
134 #
135 # compute_range
136 # =============
137 # Computes and sets the range value for a MIR node, which is then used in range
138 # analysis.
139 # - attribute not specified (default): no code generated, range is not set for node
140 # - custom: custom C++ implementation in RangeAnalysis.cpp
141 #
142 # can_recover
143 # ===========
144 # Indicates whether this instruction can be recovered on bailout.
145 # Possible values:
146 # - attribute not specified (default): no code generated, canRecoverOnBailout
147 # returns false
148 # - true: canRecoverOnBailout returns true
149 # - custom: canRecoverOnBailout has a custom C++ implementation
150 # If the value is either 'true' or 'custom', writeRecoverData has a custom C++
151 # implementation.
152 #
153 # clone
154 # =====
155 # Allows cloning for that MIR op.
156 # - attribute not specified (default): no code generated
157 # - true: allows cloning
158 #
159 # can_consume_float32
160 # ===================
161 # Indicates whether this instruction's operands can have MIRType::Float32.
162 # Possible values:
163 # - attribute not specified (default): no code generated
164 # - true: canConsumeFloat32 returns true
165 #
166 # generate_lir
167 # ===================
168 # Controls whether to generate direct 1-1 mapping LIR instruction for the MIR op
169 # Possible values:
170 # - attribute not specified (default): no code generated
171 # - true: generates corresponding LIR classes in LIROpsGenerated.h
172 #
173 # lir_temps
174 # ===================
175 # Specifies the number of temporary virtual registers, LDefinitions, used by
176 # the corresponding LIR op in case generate_lir is true.
177 # Possible values:
178 # - attribute not specified (default): number of temps is set to 0
179 # - number: sets number of temps max 15
180 #
181
182 # TODO(no-TI): try to remove this instruction.
183 - name: Start
184
185 # Instruction marking on entrypoint for on-stack replacement.
186 # OSR may occur at loop headers (at JSOp::LoopHead).
187 # There is at most one MOsrEntry per MIRGraph.
188 - name: OsrEntry
189 result_type: Pointer
190
191 - name: Nop
192 alias_set: none
193 clone: true
194
195 - name: LimitedTruncate
196 gen_boilerplate: false
197
198 - name: IntPtrLimitedTruncate
199 gen_boilerplate: false
200
201 - name: Int64LimitedTruncate
202 gen_boilerplate: false
203
204 - name: Constant
205 gen_boilerplate: false
206
207 - name: WasmNullConstant
208 gen_boilerplate: false
209
210 - name: WasmFloatConstant
211 gen_boilerplate: false
212
213 - name: Parameter
214 gen_boilerplate: false
215
216 - name: Callee
217 result_type: Object
218 movable: true
219 congruent_to: if_operands_equal
220 alias_set: none
221 generate_lir: true
222
223 - name: IsConstructing
224 result_type: Boolean
225 movable: true
226 congruent_to: if_operands_equal
227 alias_set: none
228 generate_lir: true
229
230 - name: TableSwitch
231 gen_boilerplate: false
232
233 - name: Goto
234 gen_boilerplate: false
235
236 - name: Test
237 gen_boilerplate: false
238
239 - name: Return
240 gen_boilerplate: false
241
242 - name: Throw
243 operands:
244 value: Value
245 alias_set: custom
246 possibly_calls: true
247 generate_lir: true
248
249 - name: ThrowWithStack
250 operands:
251 value: Value
252 stack: Value
253 alias_set: custom
254 possibly_calls: true
255 generate_lir: true
256
257 - name: NewArray
258 gen_boilerplate: false
259
260 - name: NewArrayDynamicLength
261 operands:
262 length: Int32
263 arguments:
264 templateObject: JSObject*
265 initialHeap: gc::Heap
266 result_type: Object
267 # Need to throw if length is negative.
268 guard: true
269 # Throws if length is negative.
270 alias_set: custom
271 generate_lir: true
272 lir_temps: 1
273
274 - name: NewTypedArray
275 gen_boilerplate: false
276
277 - name: NewTypedArrayDynamicLength
278 operands:
279 length: Int32
280 arguments:
281 templateObject: JSObject*
282 initialHeap: gc::Heap
283 result_type: Object
284 guard: true
285 # Throws if length is negative.
286 alias_set: custom
287 generate_lir: true
288 lir_temps: 1
289
290 # Create a new TypedArray from an Array (or Array-like object) or a TypedArray.
291 - name: NewTypedArrayFromArray
292 operands:
293 array: Object
294 arguments:
295 templateObject: JSObject*
296 initialHeap: gc::Heap
297 result_type: Object
298 guard: true
299 possibly_calls: true
300 generate_lir: true
301
302 # Create a new TypedArray from an ArrayBuffer (or SharedArrayBuffer).
303 - name: NewTypedArrayFromArrayBuffer
304 operands:
305 arrayBuffer: Object
306 byteOffset: Value
307 length: Value
308 arguments:
309 templateObject: JSObject*
310 initialHeap: gc::Heap
311 result_type: Object
312 guard: true
313 possibly_calls: true
314 generate_lir: true
315
316 - name: NewMapObject
317 arguments:
318 templateObject: JSObject*
319 result_type: Object
320 possibly_calls: true
321
322 - name: NewSetObject
323 arguments:
324 templateObject: JSObject*
325 result_type: Object
326 possibly_calls: true
327
328 - name: NewMapObjectFromIterable
329 operands:
330 iterable: Value
331 arguments:
332 templateObject: JSObject*
333 result_type: Object
334 possibly_calls: true
335 generate_lir: true
336 lir_temps: 2
337
338 - name: NewSetObjectFromIterable
339 operands:
340 iterable: Value
341 arguments:
342 templateObject: JSObject*
343 result_type: Object
344 possibly_calls: true
345 generate_lir: true
346 lir_temps: 2
347
348 - name: NewObject
349 gen_boilerplate: false
350
351 - name: NewPlainObject
352 gen_boilerplate: false
353
354 - name: NewArrayObject
355 gen_boilerplate: false
356
357 - name: NewIterator
358 gen_boilerplate: false
359
360 - name: ObjectState
361 gen_boilerplate: false
362
363 - name: ArrayState
364 gen_boilerplate: false
365
366 - name: BindFunction
367 gen_boilerplate: false
368
369 - name: NewBoundFunction
370 arguments:
371 templateObj: JSObject*
372 result_type: Object
373 alias_set: none
374 generate_lir: true
375 lir_temps: 1
376
377 - name: BoundFunctionNumArgs
378 operands:
379 object: Object
380 result_type: Int32
381 movable: true
382 congruent_to: if_operands_equal
383 # A bound function's state is immutable, so there is no
384 # implicit dependency.
385 alias_set: none
386 generate_lir: true
387
388 - name: GuardBoundFunctionIsConstructor
389 operands:
390 object: Object
391 result_type: Object
392 guard: true
393 movable: true
394 congruent_to: if_operands_equal
395 # The is-constructor flag is immutable for a bound function.
396 alias_set: none
397
398 # Setting __proto__ in an object literal.
399 - name: MutateProto
400 operands:
401 object: Object
402 value: Value
403 result_type: None
404 possibly_calls: true
405
406 - name: InitPropGetterSetter
407 operands:
408 object: Object
409 value: Object
410 arguments:
411 name: PropertyName*
412
413 - name: InitElemGetterSetter
414 operands:
415 object: Object
416 id: Value
417 value: Object
418
419 - name: Call
420 gen_boilerplate: false
421
422 - name: CallClassHook
423 gen_boilerplate: false
424
425 - name: ApplyArgs
426 gen_boilerplate: false
427
428 - name: ApplyArgsObj
429 gen_boilerplate: false
430
431 - name: ApplyArray
432 gen_boilerplate: false
433
434 - name: ConstructArgs
435 gen_boilerplate: false
436
437 - name: ConstructArray
438 gen_boilerplate: false
439
440 - name: Bail
441 gen_boilerplate: false
442 generate_lir: true
443
444 - name: Unreachable
445 gen_boilerplate: false
446
447 # This op serves as a way to force the encoding of a snapshot, even if there
448 # is no resume point using it. This is useful to run MAssertRecoveredOnBailout
449 # assertions.
450 - name: EncodeSnapshot
451 guard: true
452 generate_lir: true
453
454 - name: AssertRecoveredOnBailout
455 gen_boilerplate: false
456
457 - name: AssertFloat32
458 gen_boilerplate: false
459
460 - name: Compare
461 gen_boilerplate: false
462
463 - name: StrictConstantCompareInt32
464 operands:
465 value: Value
466 arguments:
467 constant: int32_t
468 jsop: JSOp
469 can_recover: true
470 movable: true
471 alias_set: none
472 result_type: Boolean
473 generate_lir: true
474 lir_temps: 2
475
476 - name: StrictConstantCompareBoolean
477 operands:
478 value: Value
479 arguments:
480 constant: bool
481 jsop: JSOp
482 can_recover: true
483 movable: true
484 alias_set: none
485 result_type: Boolean
486 generate_lir: true
487 lir_temps: 1
488
489 - name: SameValueDouble
490 operands:
491 left: Double
492 right: Double
493 result_type: Boolean
494 movable: true
495 congruent_to: if_operands_equal
496 alias_set: none
497 folds_to: custom
498 clone: true
499 generate_lir: true
500 lir_temps: 1
501
502 - name: SameValue
503 operands:
504 left: Value
505 right: Value
506 result_type: Boolean
507 movable: true
508 congruent_to: if_operands_equal
509 alias_set: none
510 folds_to: custom
511 clone: true
512 generate_lir: true
513
514 - name: Box
515 gen_boilerplate: false
516
517 - name: Unbox
518 gen_boilerplate: false
519
520 - name: AssertRange
521 gen_boilerplate: false
522
523 - name: AssertClass
524 gen_boilerplate: false
525
526 - name: AssertShape
527 gen_boilerplate: false
528
529 # Caller-side allocation of |this| for |new|:
530 # Constructs |this| when possible, else MagicValue(JS_IS_CONSTRUCTING).
531 - name: CreateThis
532 operands:
533 callee: Object
534 newTarget: Object
535 result_type: Value
536 # Performs a property read from |newTarget| iff |newTarget| is a JSFunction
537 # with an own |.prototype| property.
538 alias_set: custom
539 possibly_calls: true
540 generate_lir: true
541
542 - name: CreateArgumentsObject
543 gen_boilerplate: false
544
545 - name: CreateInlinedArgumentsObject
546 gen_boilerplate: false
547
548 - name: GetInlinedArgument
549 gen_boilerplate: false
550
551 - name: GetInlinedArgumentHole
552 gen_boilerplate: false
553
554 # Get argument from arguments object.
555 - name: GetArgumentsObjectArg
556 operands:
557 argsObject: Object
558 arguments:
559 argno: size_t
560 result_type: Value
561 congruent_to: custom
562 alias_set: custom
563 generate_lir: true
564 lir_temps: 1
565
566 # Set argument on arguments object.
567 - name: SetArgumentsObjectArg
568 operands:
569 argsObject: Object
570 value: Value
571 arguments:
572 argno: size_t
573 alias_set: custom
574 generate_lir: true
575 lir_temps: 1
576
577 # Load |arguments[index]| from a mapped or unmapped arguments object. Bails out
578 # when any elements were overridden or deleted. Also bails out if the index is
579 # out of bounds.
580 - name: LoadArgumentsObjectArg
581 operands:
582 argsObject: Object
583 index: Int32
584 result_type: Value
585 guard: true
586 congruent_to: if_operands_equal
587 alias_set: custom
588 generate_lir: true
589 lir_temps: 1
590
591 # Load |arguments[index]| from a mapped or unmapped arguments object. Bails out
592 # when any elements were overridden or deleted. Returns undefined if the index is
593 # out of bounds.
594 - name: LoadArgumentsObjectArgHole
595 operands:
596 argsObject: Object
597 index: Int32
598 result_type: Value
599 guard: true
600 congruent_to: if_operands_equal
601 alias_set: custom
602 generate_lir: true
603 lir_temps: 1
604
605 - name: InArgumentsObjectArg
606 operands:
607 argsObject: Object
608 index: Int32
609 result_type: Boolean
610 guard: true
611 congruent_to: if_operands_equal
612 alias_set: custom
613 generate_lir: true
614 lir_temps: 1
615
616 # Load |arguments.length|. Bails out if the length has been overriden.
617 - name: ArgumentsObjectLength
618 operands:
619 argsObject: Object
620 result_type: Int32
621 guard: true
622 movable: true
623 congruent_to: if_operands_equal
624 # Even though the "length" property is lazily resolved, it acts similar to
625 # a normal property load, so we can treat this operation like any other
626 # property read.
627 alias_set: custom
628 generate_lir: true
629
630 # Create an array from an arguments object.
631 - name: ArrayFromArgumentsObject
632 operands:
633 argsObject: Object
634 arguments:
635 shape: Shape*
636 result_type: Object
637 possibly_calls: true
638 generate_lir: true
639
640 # Guard that the given flags are not set on the arguments object.
641 - name: GuardArgumentsObjectFlags
642 operands:
643 argsObject: Object
644 arguments:
645 flags: uint32_t
646 result_type: Object
647 movable: true
648 guard: true
649 congruent_to: custom
650 # The flags are packed with the length in a fixed private slot.
651 alias_set: custom
652
653 # Guard cx->realm() == obj->realm().
654 - name: GuardObjectHasSameRealm
655 operands:
656 object: Object
657 result_type: Object
658 guard: true
659 movable: true
660 congruent_to: if_operands_equal
661 # The object's realm is immutable. The context's realm must always be the same
662 # realm for this compilation.
663 alias_set: none
664
665 - name: LoadScriptedProxyHandler
666 operands:
667 object: Object
668 result_type: Object
669 guard: true
670 congruent_to: if_operands_equal
671 alias_set: custom
672 generate_lir: true
673
674 #ifdef JS_PUNBOX64
675 - name: CheckScriptedProxyGetResult
676 operands:
677 target: Value
678 id: Value
679 value: Value
680 guard: true
681 alias_set: custom
682 generate_lir: true
683 lir_temps: 2
684 #endif
685
686 - name: IdToStringOrSymbol
687 operands:
688 idVal: Value
689 result_type: Value
690 congruent_to: if_operands_equal
691 alias_set: none
692 folds_to: custom
693 generate_lir: true
694 lir_temps: 1
695
696 # Given a MIRType::Value A and a MIRType::Object B:
697 # If the Value may be safely unboxed to an Object, return Object(A).
698 # Otherwise, return B.
699 # Used to implement return behavior for inlined constructors.
700 - name: ReturnFromCtor
701 operands:
702 value: Value
703 object: Object
704 result_type: Object
705 folds_to: custom
706 congruent_to: if_operands_equal
707 alias_set: none
708 generate_lir: true
709
710 - name: ToDouble
711 gen_boilerplate: false
712
713 - name: ToFloat32
714 gen_boilerplate: false
715
716 - name: ToFloat16
717 gen_boilerplate: false
718
719 # Converts a uint32 to a double (coming from wasm).
720 - name: WasmUnsignedToDouble
721 operands:
722 def: Int32
723 type_policy: none
724 result_type: Double
725 movable: true
726 folds_to: custom
727 congruent_to: if_operands_equal
728 alias_set: none
729 clone: true
730
731 - name: WasmUnsignedToFloat32
732 gen_boilerplate: false
733
734 - name: WrapInt64ToInt32
735 gen_boilerplate: false
736
737 - name: ExtendInt32ToInt64
738 gen_boilerplate: false
739
740 - name: WasmBuiltinTruncateToInt64
741 gen_boilerplate: false
742
743 - name: WasmTruncateToInt64
744 gen_boilerplate: false
745
746 - name: WasmTruncateToInt32
747 gen_boilerplate: false
748
749 - name: WasmAnyRefFromJSValue
750 operands:
751 def: Value
752 result_type: WasmAnyRef
753 congruent_to: if_operands_equal
754 alias_set: none
755 generate_lir: true
756 lir_temps: 1
757
758 - name: WasmAnyRefFromJSObject
759 operands:
760 def: Object
761 type_policy: none
762 result_type: WasmAnyRef
763 congruent_to: if_operands_equal
764 alias_set: none
765 generate_lir: true
766 generate_lir: true
767
768 - name: WasmAnyRefFromJSString
769 operands:
770 def: String
771 type_policy: none
772 result_type: WasmAnyRef
773 congruent_to: if_operands_equal
774 alias_set: none
775 generate_lir: true
776
777 - name: WasmAnyRefIsJSString
778 operands:
779 input: WasmAnyRef
780 type_policy: none
781 result_type: Int32
782 congruent_to: if_operands_equal
783 alias_set: none
784 movable: true
785 clone: true
786 generate_lir: true
787 lir_temps: 1
788
789 - name: WasmTrapIfAnyRefIsNotJSString
790 operands:
791 input: WasmAnyRef
792 arguments:
793 trap: wasm::Trap
794 trapSiteDesc: wasm::TrapSiteDesc
795 type_policy: none
796 congruent_to: if_operands_equal
797 alias_set: none
798 guard: true
799 clone: true
800 generate_lir: true
801 lir_temps: 1
802
803 - name: WasmAnyRefJSStringLength
804 operands:
805 input: WasmAnyRef
806 arguments:
807 trap: wasm::Trap
808 trapSiteDesc: wasm::TrapSiteDesc
809 type_policy: none
810 result_type: Int32
811 congruent_to: if_operands_equal
812 alias_set: none
813 guard: true
814 clone: true
815 generate_lir: true
816 lir_temps: 1
817
818 - name: WasmNewI31Ref
819 gen_boilerplate: false
820
821 - name: WasmI31RefGet
822 operands:
823 input: WasmAnyRef
824 arguments:
825 wideningOp: wasm::FieldWideningOp
826 type_policy: none
827 result_type: Int32
828 congruent_to: custom
829 alias_set: none
830 generate_lir: true
831
832 - name: Int32ToIntPtr
833 gen_boilerplate: false
834
835 - name: NonNegativeIntPtrToInt32
836 gen_boilerplate: false
837
838 - name: IntPtrToDouble
839 gen_boilerplate: false
840
841 - name: AdjustDataViewLength
842 gen_boilerplate: false
843
844 - name: Int64ToFloatingPoint
845 gen_boilerplate: false
846
847 - name: BuiltinInt64ToFloatingPoint
848 gen_boilerplate: false
849
850 - name: ToNumberInt32
851 gen_boilerplate: false
852
853 - name: BooleanToInt32
854 operands:
855 input: Boolean
856 result_type: Int32
857 movable: true
858 compute_range: custom
859 folds_to: custom
860 congruent_to: if_operands_equal
861 alias_set: none
862
863 - name: TruncateToInt32
864 gen_boilerplate: false
865
866 - name: WasmBuiltinTruncateToInt32
867 gen_boilerplate: false
868
869 - name: ToBigInt
870 gen_boilerplate: false
871
872 - name: ToInt64
873 gen_boilerplate: false
874
875 - name: TruncateBigIntToInt64
876 gen_boilerplate: false
877
878 - name: Int64ToBigInt
879 gen_boilerplate: false
880
881 - name: Int64ToIntPtr
882 gen_boilerplate: false
883
884 - name: IntPtrToInt64
885 gen_boilerplate: false
886
887 - name: ToString
888 gen_boilerplate: false
889
890 - name: BitNot
891 gen_boilerplate: false
892
893 - name: TypeOf
894 gen_boilerplate: false
895
896 - name: TypeOfName
897 operands:
898 input: Int32
899 result_type: String
900 movable: true
901 folds_to: custom
902 congruent_to: if_operands_equal
903 alias_set: none
904 can_recover: true
905 generate_lir: true
906
907 - name: TypeOfIs
908 gen_boilerplate: false
909
910 - name: ToAsyncIter
911 operands:
912 iterator: Object
913 nextMethod: Value
914 result_type: Object
915
916 - name: ToPropertyKeyCache
917 operands:
918 input: Value
919 result_type: Value
920 generate_lir: true
921
922 - name: BitAnd
923 gen_boilerplate: false
924
925 - name: BitOr
926 gen_boilerplate: false
927
928 - name: BitXor
929 gen_boilerplate: false
930
931 - name: Lsh
932 gen_boilerplate: false
933
934 - name: Rsh
935 gen_boilerplate: false
936
937 - name: Ursh
938 gen_boilerplate: false
939
940 - name: SignExtendInt32
941 gen_boilerplate: false
942
943 - name: SignExtendInt64
944 gen_boilerplate: false
945
946 - name: SignExtendIntPtr
947 gen_boilerplate: false
948
949 - name: MinMax
950 gen_boilerplate: false
951
952 - name: MinMaxArray
953 gen_boilerplate: false
954
955 - name: Abs
956 gen_boilerplate: false
957
958 - name: Clz
959 gen_boilerplate: false
960
961 - name: Ctz
962 gen_boilerplate: false
963
964 - name: Popcnt
965 gen_boilerplate: false
966
967 - name: Sqrt
968 gen_boilerplate: false
969
970 - name: CopySign
971 gen_boilerplate: false
972
973 # Inline implementation of atan2 (arctangent of y/x).
974 - name: Atan2
975 operands:
976 y: Double
977 x: Double
978 result_type: Double
979 movable: true
980 congruent_to: if_operands_equal
981 alias_set: none
982 possibly_calls: true
983 can_recover: true
984 clone: true
985
986 - name: Hypot
987 gen_boilerplate: false
988
989 - name: Pow
990 gen_boilerplate: false
991
992 - name: PowHalf
993 gen_boilerplate: false
994
995 - name: Random
996 result_type: Double
997 alias_set: custom
998 possibly_calls: true
999 compute_range: custom
1000 can_recover: custom
1001 clone: true
1002
1003 - name: Sign
1004 gen_boilerplate: false
1005
1006 - name: MathFunction
1007 gen_boilerplate: false
1008
1009 - name: Add
1010 gen_boilerplate: false
1011
1012 - name: Sub
1013 gen_boilerplate: false
1014
1015 - name: Mul
1016 gen_boilerplate: false
1017
1018 - name: Div
1019 gen_boilerplate: false
1020
1021 - name: WasmBuiltinDivI64
1022 gen_boilerplate: false
1023
1024 - name: Mod
1025 gen_boilerplate: false
1026
1027 - name: WasmBuiltinModD
1028 gen_boilerplate: false
1029
1030 - name: WasmBuiltinModI64
1031 gen_boilerplate: false
1032
1033 - name: BigIntAdd
1034 gen_boilerplate: false
1035
1036 - name: BigIntSub
1037 gen_boilerplate: false
1038
1039 - name: BigIntMul
1040 gen_boilerplate: false
1041
1042 - name: BigIntDiv
1043 gen_boilerplate: false
1044
1045 - name: BigIntMod
1046 gen_boilerplate: false
1047
1048 - name: BigIntPow
1049 gen_boilerplate: false
1050
1051 - name: BigIntBitAnd
1052 gen_boilerplate: false
1053
1054 - name: BigIntBitOr
1055 gen_boilerplate: false
1056
1057 - name: BigIntBitXor
1058 gen_boilerplate: false
1059
1060 - name: BigIntLsh
1061 gen_boilerplate: false
1062
1063 - name: BigIntRsh
1064 gen_boilerplate: false
1065
1066 - name: BigIntIncrement
1067 gen_boilerplate: false
1068
1069 - name: BigIntDecrement
1070 gen_boilerplate: false
1071
1072 - name: BigIntNegate
1073 gen_boilerplate: false
1074
1075 - name: BigIntBitNot
1076 gen_boilerplate: false
1077
1078 - name: BigIntToIntPtr
1079 operands:
1080 input: BigInt
1081 result_type: IntPtr
1082 movable: true
1083 congruent_to: if_operands_equal
1084 alias_set: none
1085 folds_to: custom
1086 can_recover: true
1087 clone: true
1088 generate_lir: true
1089
1090 - name: IntPtrToBigInt
1091 operands:
1092 input: IntPtr
1093 result_type: BigInt
1094 movable: true
1095 congruent_to: if_operands_equal
1096 alias_set: none
1097 folds_to: custom
1098 can_recover: true
1099 clone: true
1100 generate_lir: true
1101 lir_temps: 1
1102
1103 - name: BigIntPtrAdd
1104 gen_boilerplate: false
1105
1106 - name: BigIntPtrSub
1107 gen_boilerplate: false
1108
1109 - name: BigIntPtrMul
1110 gen_boilerplate: false
1111
1112 - name: BigIntPtrDiv
1113 gen_boilerplate: false
1114
1115 - name: BigIntPtrMod
1116 gen_boilerplate: false
1117
1118 - name: BigIntPtrPow
1119 gen_boilerplate: false
1120
1121 - name: BigIntPtrBitAnd
1122 gen_boilerplate: false
1123
1124 - name: BigIntPtrBitOr
1125 gen_boilerplate: false
1126
1127 - name: BigIntPtrBitXor
1128 gen_boilerplate: false
1129
1130 - name: BigIntPtrLsh
1131 gen_boilerplate: false
1132
1133 - name: BigIntPtrRsh
1134 gen_boilerplate: false
1135
1136 - name: BigIntPtrBitNot
1137 gen_boilerplate: false
1138
1139 - name: Int32ToStringWithBase
1140 operands:
1141 input: Int32
1142 base: Int32
1143 arguments:
1144 lowerCase: bool
1145 result_type: String
1146 movable: true
1147 congruent_to: custom
1148 alias_set: none
1149 generate_lir: true
1150 lir_temps: 2
1151
1152 - name: NumberParseInt
1153 operands:
1154 string: String
1155 radix: Int32
1156 result_type: Value
1157 movable: true
1158 congruent_to: if_operands_equal
1159 alias_set: none
1160 possibly_calls: true
1161 generate_lir: true
1162 lir_temps: 1
1163
1164 - name: DoubleParseInt
1165 operands:
1166 number: Double
1167 result_type: Int32
1168 movable: true
1169 congruent_to: if_operands_equal
1170 alias_set: none
1171 generate_lir: true
1172 lir_temps: 1
1173
1174 - name: Concat
1175 gen_boilerplate: false
1176
1177 - name: LinearizeString
1178 operands:
1179 string: String
1180 result_type: String
1181 movable: true
1182 congruent_to: if_operands_equal
1183 # Strings are immutable, so there is no implicit dependency.
1184 alias_set: none
1185 generate_lir: true
1186
1187 - name: LinearizeForCharAccess
1188 operands:
1189 string: String
1190 index: Int32
1191 result_type: String
1192 movable: true
1193 congruent_to: if_operands_equal
1194 # Strings are immutable, so there is no implicit dependency.
1195 alias_set: none
1196 generate_lir: true
1197
1198 - name: LinearizeForCodePointAccess
1199 operands:
1200 string: String
1201 index: Int32
1202 result_type: String
1203 movable: true
1204 congruent_to: if_operands_equal
1205 # Strings are immutable, so there is no implicit dependency.
1206 alias_set: none
1207 generate_lir: true
1208 lir_temps: 1
1209
1210 - name: ToRelativeStringIndex
1211 operands:
1212 index: Int32
1213 length: Int32
1214 result_type: Int32
1215 movable: true
1216 folds_to: custom
1217 congruent_to: if_operands_equal
1218 alias_set: none
1219 generate_lir: true
1220
1221 - name: CharCodeAt
1222 operands:
1223 string: String
1224 index: Int32
1225 result_type: Int32
1226 movable: true
1227 folds_to: custom
1228 congruent_to: if_operands_equal
1229 # Strings are immutable, so there is no implicit dependency.
1230 alias_set: none
1231 compute_range: custom
1232 can_recover: true
1233 clone: true
1234 generate_lir: true
1235 lir_temps: 2
1236
1237 # Similar to CharCodeAt, but returns a negative value on out-of-bounds access.
1238 - name: CharCodeAtOrNegative
1239 operands:
1240 string: String
1241 index: Int32
1242 result_type: Int32
1243 movable: true
1244 congruent_to: if_operands_equal
1245 # Strings are immutable, so there is no implicit dependency.
1246 alias_set: none
1247 generate_lir: true
1248 lir_temps: 2
1249
1250 - name: CodePointAt
1251 operands:
1252 string: String
1253 index: Int32
1254 result_type: Int32
1255 movable: true
1256 folds_to: custom
1257 congruent_to: if_operands_equal
1258 # Strings are immutable, so there is no implicit dependency.
1259 alias_set: none
1260 compute_range: custom
1261 clone: true
1262 generate_lir: true
1263 lir_temps: 2
1264
1265 # Similar to CodePointAt, but returns a negative value on out-of-bounds access.
1266 - name: CodePointAtOrNegative
1267 operands:
1268 string: String
1269 index: Int32
1270 result_type: Int32
1271 movable: true
1272 congruent_to: if_operands_equal
1273 # Strings are immutable, so there is no implicit dependency.
1274 alias_set: none
1275 generate_lir: true
1276 lir_temps: 2
1277
1278 # Return the input if non-negative, otherwise return NaN.
1279 - name: NegativeToNaN
1280 operands:
1281 input: Int32
1282 result_type: Value
1283 movable: true
1284 congruent_to: if_operands_equal
1285 alias_set: none
1286 generate_lir: true
1287
1288 # Return the input if non-negative, otherwise return undefined.
1289 - name: NegativeToUndefined
1290 operands:
1291 input: Int32
1292 result_type: Value
1293 movable: true
1294 congruent_to: if_operands_equal
1295 alias_set: none
1296 generate_lir: true
1297
1298 # Convert uint16 character code to a string.
1299 - name: FromCharCode
1300 operands:
1301 code: Int32
1302 result_type: String
1303 movable: true
1304 congruent_to: if_operands_equal
1305 alias_set: none
1306 can_recover: true
1307 clone: true
1308 generate_lir: true
1309
1310 # Similar to FromCharCode, but returns the empty string if the input is negative.
1311 - name: FromCharCodeEmptyIfNegative
1312 operands:
1313 code: Int32
1314 result_type: String
1315 movable: true
1316 congruent_to: if_operands_equal
1317 alias_set: none
1318 can_recover: true
1319 clone: true
1320 generate_lir: true
1321
1322 # Similar to FromCharCode, but returns the |undefined| if the input is negative.
1323 - name: FromCharCodeUndefinedIfNegative
1324 operands:
1325 code: Int32
1326 result_type: Value
1327 movable: true
1328 congruent_to: if_operands_equal
1329 alias_set: none
1330 generate_lir: true
1331
1332 # Convert uint32 code point to a string.
1333 - name: FromCodePoint
1334 operands:
1335 codePoint: Int32
1336 result_type: String
1337 guard: true
1338 movable: true
1339 congruent_to: if_operands_equal
1340 alias_set: none
1341 clone: true
1342 generate_lir: true
1343 lir_temps: 2
1344
1345 # Test if a string includes the search string.
1346 - name: StringIncludes
1347 operands:
1348 string: String
1349 searchString: String
1350 result_type: Boolean
1351 movable: true
1352 congruent_to: if_operands_equal
1353 alias_set: none
1354 possibly_calls: true
1355 generate_lir: true
1356
1357 # Search for the first index of the search string.
1358 - name: StringIndexOf
1359 operands:
1360 string: String
1361 searchString: String
1362 result_type: Int32
1363 movable: true
1364 congruent_to: if_operands_equal
1365 alias_set: none
1366 possibly_calls: true
1367 generate_lir: true
1368
1369 # Search for the last index of the search string.
1370 - name: StringLastIndexOf
1371 operands:
1372 string: String
1373 searchString: String
1374 result_type: Int32
1375 movable: true
1376 congruent_to: if_operands_equal
1377 alias_set: none
1378 possibly_calls: true
1379 generate_lir: true
1380
1381 # Test if a string starts with the search string.
1382 - name: StringStartsWith
1383 operands:
1384 string: String
1385 searchString: String
1386 result_type: Boolean
1387 movable: true
1388 congruent_to: if_operands_equal
1389 alias_set: none
1390 possibly_calls: true
1391 generate_lir: true
1392
1393 # Test if a string ends with the search string.
1394 - name: StringEndsWith
1395 operands:
1396 string: String
1397 searchString: String
1398 result_type: Boolean
1399 movable: true
1400 congruent_to: if_operands_equal
1401 alias_set: none
1402 possibly_calls: true
1403 generate_lir: true
1404
1405 - name: StringConvertCase
1406 gen_boilerplate: false
1407
1408 - name: CharCodeConvertCase
1409 gen_boilerplate: false
1410
1411 # Index of first non-whitespace character.
1412 - name: StringTrimStartIndex
1413 operands:
1414 string: String
1415 result_type: Int32
1416 movable: true
1417 congruent_to: if_operands_equal
1418 alias_set: none
1419 generate_lir: true
1420
1421 # Index of last non-whitespace character.
1422 - name: StringTrimEndIndex
1423 operands:
1424 string: String
1425 start: Int32
1426 result_type: Int32
1427 movable: true
1428 congruent_to: if_operands_equal
1429 alias_set: none
1430 generate_lir: true
1431
1432 - name: StringSplit
1433 operands:
1434 string: String
1435 separator: String
1436 result_type: Object
1437 possibly_calls: true
1438 # Although this instruction returns a new array, we don't have to mark
1439 # it as store instruction, see also MNewArray.
1440 alias_set: none
1441 can_recover: true
1442 generate_lir: true
1443
1444 - name: BoxNonStrictThis
1445 operands:
1446 def: Value
1447 arguments:
1448 globalThis: JSObject*
1449 result_type: Object
1450 folds_to: custom
1451 possibly_calls: true
1452 # This instruction can allocate a new object for wrapped primitives, but
1453 # has no effect on existing objects.
1454 alias_set: none
1455
1456 - name: ImplicitThis
1457 operands:
1458 env: Object
1459 result_type: Value
1460 generate_lir: true
1461
1462 - name: Phi
1463 gen_boilerplate: false
1464
1465 - name: Beta
1466 gen_boilerplate: false
1467
1468 - name: NaNToZero
1469 gen_boilerplate: false
1470
1471 - name: OsrValue
1472 gen_boilerplate: false
1473
1474 - name: OsrEnvironmentChain
1475 gen_boilerplate: false
1476
1477 - name: OsrArgumentsObject
1478 gen_boilerplate: false
1479
1480 - name: OsrReturnValue
1481 gen_boilerplate: false
1482
1483 - name: BinaryCache
1484 gen_boilerplate: false
1485
1486 - name: UnaryCache
1487 operands:
1488 input: Value
1489 result_type: Value
1490 generate_lir: true
1491
1492 # Checks whether we need to fire the interrupt handler.
1493 - name: CheckOverRecursed
1494 guard: true
1495 alias_set: none
1496 generate_lir: true
1497
1498 # Check whether we need to fire the interrupt handler.
1499 - name: InterruptCheck
1500 guard: true
1501 alias_set: none
1502 generate_lir: true
1503
1504 - name: WasmInterruptCheck
1505 gen_boilerplate: false
1506
1507 - name: WasmTrap
1508 gen_boilerplate: false
1509 generate_lir: true
1510
1511 - name: LexicalCheck
1512 gen_boilerplate: false
1513
1514 # Unconditionally throw an uninitialized let error.
1515 - name: ThrowRuntimeLexicalError
1516 arguments:
1517 errorNumber: unsigned
1518 result_type: None
1519 guard: true
1520 alias_set: custom
1521
1522 - name: ThrowMsg
1523 gen_boilerplate: false
1524
1525 # In the prologues of global and eval scripts, check for redeclarations and
1526 # initialize bindings.
1527 - name: GlobalDeclInstantiation
1528 guard: true
1529 generate_lir: true
1530
1531 - name: RegExp
1532 arguments:
1533 source: RegExpObject*
1534 hasShared: bool
1535 result_type: Object
1536 possibly_calls: true
1537 alias_set: none
1538
1539 - name: RegExpMatcher
1540 operands:
1541 regexp: Object
1542 string: String
1543 lastIndex: Int32
1544 result_type: Value
1545 possibly_calls: true
1546 generate_lir: true
1547
1548 # Note: this instruction writes to cx->regExpSearcherLastLimit.
1549 # See also MRegExpSearcherLastLimit.
1550 - name: RegExpSearcher
1551 operands:
1552 regexp: Object
1553 string: String
1554 lastIndex: Int32
1555 result_type: Int32
1556 possibly_calls: true
1557 generate_lir: true
1558
1559 # This instruction loads cx->regExpSearcherLastLimit. We don't have a
1560 # specialized alias set for this so just use the default alias set similar to
1561 # the MRegExpSearcher instruction that precedes it.
1562 - name: RegExpSearcherLastLimit
1563 result_type: Int32
1564 generate_lir: true
1565 lir_temps: 1
1566
1567 - name: RegExpExecMatch
1568 operands:
1569 regexp: Object
1570 string: String
1571 result_type: Value
1572 possibly_calls: true
1573 generate_lir: true
1574
1575 - name: RegExpExecTest
1576 operands:
1577 regexp: Object
1578 string: String
1579 result_type: Boolean
1580 possibly_calls: true
1581 generate_lir: true
1582
1583 - name: RegExpHasCaptureGroups
1584 operands:
1585 regexp: Object
1586 input: String
1587 result_type: Boolean
1588 possibly_calls: true
1589
1590 - name: GetFirstDollarIndex
1591 gen_boilerplate: false
1592
1593 - name: StringReplace
1594 gen_boilerplate: false
1595
1596 - name: Substr
1597 operands:
1598 string: String
1599 begin: Int32
1600 length: Int32
1601 result_type: String
1602 folds_to: custom
1603 congruent_to: if_operands_equal
1604 alias_set: none
1605 can_recover: true
1606 generate_lir: true
1607 lir_temps: 3
1608
1609 - name: ModuleMetadata
1610 arguments:
1611 module: JSObject*
1612 result_type: Object
1613
1614 - name: DynamicImport
1615 operands:
1616 specifier: Value
1617 options: Value
1618 result_type: Object
1619
1620 - name: Lambda
1621 gen_boilerplate: false
1622
1623 - name: FunctionWithProto
1624 gen_boilerplate: false
1625
1626 - name: SetFunName
1627 operands:
1628 fun: Object
1629 name: Value
1630 arguments:
1631 prefixKind: uint8_t
1632 result_type: None
1633 possibly_calls: true
1634 generate_lir: true
1635
1636 # Returns obj->slots.
1637 - name: Slots
1638 operands:
1639 object: Object
1640 result_type: Slots
1641 movable: true
1642 congruent_to: if_operands_equal
1643 alias_set: custom
1644 might_alias: custom
1645 clone: true
1646 generate_lir: true
1647
1648 # Returns obj->elements.
1649 - name: Elements
1650 operands:
1651 object: Object
1652 result_type: Elements
1653 movable: true
1654 congruent_to: if_operands_equal
1655 alias_set: custom
1656 clone: true
1657 generate_lir: true
1658
1659 # Load the initialized length from an elements header.
1660 - name: InitializedLength
1661 operands:
1662 elements: Elements
1663 type_policy: none
1664 result_type: Int32
1665 movable: true
1666 congruent_to: if_operands_equal
1667 alias_set: custom
1668 compute_range: custom
1669 clone: true
1670 generate_lir: true
1671
1672 # Store to the initialized length in an elements header. Note the input is an
1673 # *index*, one less than the desired initialized length.
1674 - name: SetInitializedLength
1675 operands:
1676 elements: Elements
1677 index: Int32
1678 type_policy: none
1679 alias_set: custom
1680 clone: true
1681 generate_lir: true
1682
1683 # Load the array length from an elements header.
1684 - name: ArrayLength
1685 operands:
1686 elements: Elements
1687 type_policy: none
1688 result_type: Int32
1689 movable: true
1690 congruent_to: if_operands_equal
1691 folds_to: custom
1692 alias_set: custom
1693 compute_range: custom
1694 clone: true
1695 generate_lir: true
1696
1697 # Store to the length in an elements header. Note the input is an *index*, one
1698 # less than the desired length.
1699 - name: SetArrayLength
1700 operands:
1701 elements: Elements
1702 index: Int32
1703 type_policy: none
1704 alias_set: custom
1705 generate_lir: true
1706
1707 # Load the function length. Bails for functions with lazy scripts or a
1708 # resolved "length" property.
1709 - name: FunctionLength
1710 operands:
1711 function: Object
1712 result_type: Int32
1713 guard: true
1714 congruent_to: if_operands_equal
1715 # Even though the "length" property is lazily resolved, it acts similar to
1716 # a normal property load, so we can treat this operation like any other
1717 # property read.
1718 alias_set: custom
1719 generate_lir: true
1720
1721 # Load the function name. Bails for bound functions when the bound function
1722 # name prefix isn't present or functions with a resolved "name" property.
1723 - name: FunctionName
1724 operands:
1725 function: Object
1726 result_type: String
1727 guard: true
1728 congruent_to: if_operands_equal
1729 # Even though the "name" property is lazily resolved, it acts similar to
1730 # a normal property load, so we can treat this operation like any other
1731 # property read.
1732 alias_set: custom
1733 generate_lir: true
1734
1735 - name: GetNextEntryForIterator
1736 gen_boilerplate: false
1737
1738 # Read the byte length of an array buffer as IntPtr.
1739 - name: ArrayBufferByteLength
1740 operands:
1741 object: Object
1742 result_type: IntPtr
1743 movable: true
1744 congruent_to: if_operands_equal
1745 alias_set: custom
1746 generate_lir: true
1747
1748 # Read the length of an array buffer view.
1749 - name: ArrayBufferViewLength
1750 operands:
1751 object: Object
1752 result_type: IntPtr
1753 movable: true
1754 congruent_to: if_operands_equal
1755 alias_set: custom
1756 compute_range: custom
1757 generate_lir: true
1758
1759 # Read the byteOffset of an array buffer view.
1760 - name: ArrayBufferViewByteOffset
1761 operands:
1762 object: Object
1763 result_type: IntPtr
1764 movable: true
1765 congruent_to: if_operands_equal
1766 alias_set: custom
1767 compute_range: custom
1768 generate_lir: true
1769
1770 # Read the length of an array buffer view.
1771 - name: ArrayBufferViewElements
1772 operands:
1773 object: Object
1774 result_type: Elements
1775 movable: true
1776 congruent_to: if_operands_equal
1777 alias_set: custom
1778 clone: true
1779 generate_lir: true
1780
1781 # Implements the TypedArrayByteOffset intrinsic for resizable typed arrays,
1782 # which calls TypedArrayObject::byteOffsetMaybeOutOfBounds().
1783 - name: ResizableTypedArrayByteOffsetMaybeOutOfBounds
1784 operands:
1785 object: Object
1786 result_type: IntPtr
1787 movable: true
1788 congruent_to: if_operands_equal
1789 alias_set: custom
1790 compute_range: custom
1791 generate_lir: true
1792 lir_temps: 1
1793
1794 # Read the length of a resizable typed array.
1795 - name: ResizableTypedArrayLength
1796 operands:
1797 object: Object
1798 arguments:
1799 requiresMemoryBarrier: MemoryBarrierRequirement
1800 result_type: IntPtr
1801 # Not removable or movable when a barrier is needed.
1802 guard: true
1803 movable: false
1804 congruent_to: custom
1805 alias_set: custom
1806 compute_range: custom
1807
1808 # Read the byteLength of a resizable dataview.
1809 - name: ResizableDataViewByteLength
1810 operands:
1811 object: Object
1812 arguments:
1813 requiresMemoryBarrier: MemoryBarrierRequirement
1814 result_type: IntPtr
1815 # Not removable or movable when a barrier is needed.
1816 guard: true
1817 movable: false
1818 congruent_to: custom
1819 alias_set: custom
1820 compute_range: custom
1821
1822 # Read the byte length of a growable shared array buffer as IntPtr.
1823 - name: GrowableSharedArrayBufferByteLength
1824 operands:
1825 object: Object
1826 result_type: IntPtr
1827 guard: true
1828 movable: false
1829 alias_set: custom
1830 generate_lir: true
1831
1832 # Return the element size of a typed array.
1833 - name: TypedArrayElementSize
1834 operands:
1835 object: Object
1836 result_type: Int32
1837 movable: true
1838 congruent_to: if_operands_equal
1839 # Class is immutable. See also MHasClass.
1840 alias_set: none
1841 compute_range: custom
1842 generate_lir: true
1843
1844 # Guard an ArrayBufferView has an attached ArrayBuffer.
1845 - name: GuardHasAttachedArrayBuffer
1846 operands:
1847 object: Object
1848 result_type: Object
1849 guard: true
1850 movable: true
1851 congruent_to: if_operands_equal
1852 alias_set: custom
1853
1854 # Guard a resizable typed array is in-bounds.
1855 - name: GuardResizableArrayBufferViewInBounds
1856 operands:
1857 object: Object
1858 result_type: Object
1859 guard: true
1860 movable: true
1861 congruent_to: if_operands_equal
1862 alias_set: custom
1863
1864 # Guard a resizable typed array is in-bounds or detached.
1865 - name: GuardResizableArrayBufferViewInBoundsOrDetached
1866 operands:
1867 object: Object
1868 result_type: Object
1869 guard: true
1870 movable: true
1871 congruent_to: if_operands_equal
1872 alias_set: custom
1873
1874 - name: GuardNumberToIntPtrIndex
1875 gen_boilerplate: false
1876
1877 - name: KeepAliveObject
1878 operands:
1879 object: Object
1880 result_type: None
1881 guard: true
1882
1883 - name: DebugEnterGCUnsafeRegion
1884 result_type: None
1885 guard: true
1886 alias_set: none
1887
1888 - name: DebugLeaveGCUnsafeRegion
1889 result_type: None
1890 guard: true
1891 alias_set: none
1892
1893 - name: Not
1894 gen_boilerplate: false
1895
1896 - name: BoundsCheck
1897 gen_boilerplate: false
1898
1899 - name: BoundsCheckLower
1900 gen_boilerplate: false
1901
1902 - name: SpectreMaskIndex
1903 gen_boilerplate: false
1904
1905 - name: LoadElement
1906 gen_boilerplate: false
1907
1908 - name: LoadElementAndUnbox
1909 gen_boilerplate: false
1910
1911 - name: LoadElementHole
1912 gen_boilerplate: false
1913
1914 - name: StoreElement
1915 gen_boilerplate: false
1916
1917 - name: StoreHoleValueElement
1918 gen_boilerplate: false
1919
1920 - name: StoreElementHole
1921 gen_boilerplate: false
1922
1923 - name: ArrayPopShift
1924 gen_boilerplate: false
1925
1926 # Array.prototype.push on a dense array. Returns the new array length.
1927 - name: ArrayPush
1928 operands:
1929 object: Object
1930 value: Value
1931 result_type: Int32
1932 alias_set: custom
1933 compute_range: custom
1934 clone: true
1935 generate_lir: true
1936 lir_temps: 2
1937
1938 # Array.prototype.slice on a dense array.
1939 - name: ArraySlice
1940 operands:
1941 object: Object
1942 begin: Int32
1943 end: Int32
1944 arguments:
1945 templateObj: JSObject*
1946 initialHeap: gc::Heap
1947 result_type: Object
1948 possibly_calls: true
1949 generate_lir: true
1950 lir_temps: 2
1951
1952 # Array.prototype.slice on an arguments object.
1953 - name: ArgumentsSlice
1954 operands:
1955 object: Object
1956 begin: Int32
1957 end: Int32
1958 arguments:
1959 templateObj: JSObject*
1960 initialHeap: gc::Heap
1961 result_type: Object
1962 possibly_calls: true
1963 generate_lir: true
1964 lir_temps: 2
1965
1966 # Array.prototype.slice on an arguments object.
1967 - name: FrameArgumentsSlice
1968 operands:
1969 begin: Int32
1970 count: Int32
1971 arguments:
1972 templateObj: JSObject*
1973 initialHeap: gc::Heap
1974 result_type: Object
1975 alias_set: none
1976 possibly_calls: true
1977
1978 # Array.prototype.slice on an inlined arguments object.
1979 - name: InlineArgumentsSlice
1980 gen_boilerplate: false
1981
1982 - name: NormalizeSliceTerm
1983 operands:
1984 value: Int32
1985 length: Int32
1986 result_type: Int32
1987 movable: true
1988 congruent_to: if_operands_equal
1989 alias_set: none
1990 folds_to: custom
1991 generate_lir: true
1992
1993 # MArrayJoin doesn't override |getAliasSet()|, because Array.prototype.join
1994 # might coerce the elements of the Array to strings. This coercion might
1995 # cause the evaluation of JavaScript code.
1996 - name: ArrayJoin
1997 operands:
1998 array: Object
1999 separator: String
2000 result_type: String
2001 possibly_calls: true
2002 folds_to: custom
2003 generate_lir: true
2004 lir_temps: 1
2005 # MArrayJoin doesn't override |getAliasSet()|, because Array.prototype.join
2006 # might coerce the elements of the Array to strings. This coercion might
2007 # cause the evaluation of JavaScript code.
2008
2009 # Object.prototype.keys. Used to elide it when possible.
2010 - name: ObjectKeys
2011 operands:
2012 object: Object
2013 result_type: Object
2014
2015 # We can recover Object.keys on bailout as long as the object is not escaped
2016 # or that the object is not mutated by any aliased calls in-between the
2017 # instruction and the recovered location, as the recovered keys array might be
2018 # different.
2019 can_recover: custom
2020
2021 # Used to fold Object.keys(obj).length into a single operation.
2022 #
2023 # This should not be used with a Proxy, as proxies can have a user-defined
2024 # `ownKeys` function which can have arbitrary outputs.
2025 #
2026 # This MIR node is created by folding an MObjectKeys with an MArrayLength, as
2027 # part of MArrayLength::foldsTo.
2028 - name: ObjectKeysLength
2029 operands:
2030 object: Object
2031 result_type: Int32
2032 movable: false
2033 congruent_to: if_operands_equal
2034 alias_set: custom
2035 clone: true
2036
2037 - name: LoadUnboxedScalar
2038 gen_boilerplate: false
2039
2040 - name: LoadDataViewElement
2041 gen_boilerplate: false
2042
2043 - name: LoadTypedArrayElementHole
2044 gen_boilerplate: false
2045
2046 - name: StoreUnboxedScalar
2047 gen_boilerplate: false
2048
2049 - name: StoreDataViewElement
2050 gen_boilerplate: false
2051
2052 - name: StoreTypedArrayElementHole
2053 gen_boilerplate: false
2054
2055 - name: EffectiveAddress
2056 gen_boilerplate: false
2057
2058 - name: ClampToUint8
2059 gen_boilerplate: false
2060
2061 - name: LoadFixedSlot
2062 gen_boilerplate: false
2063
2064 - name: LoadFixedSlotAndUnbox
2065 gen_boilerplate: false
2066
2067 - name: LoadDynamicSlotAndUnbox
2068 gen_boilerplate: false
2069
2070 - name: StoreFixedSlot
2071 gen_boilerplate: false
2072
2073 - name: GetPropertyCache
2074 gen_boilerplate: false
2075
2076 - name: HomeObjectSuperBase
2077 operands:
2078 homeObject: Object
2079 result_type: Value
2080 movable: true
2081 congruent_to: if_operands_equal
2082 alias_set: custom
2083 generate_lir: true
2084
2085 - name: GetPropSuperCache
2086 gen_boilerplate: false
2087
2088 - name: BindNameCache
2089 operands:
2090 environmentChain: Object
2091 result_type: Object
2092 generate_lir: true
2093 lir_temps: 1
2094
2095 - name: CallBindVar
2096 operands:
2097 environmentChain: Object
2098 result_type: Object
2099 movable: true
2100 congruent_to: custom
2101 alias_set: none
2102 generate_lir: true
2103
2104 - name: GuardShape
2105 operands:
2106 object: Object
2107 arguments:
2108 shape: Shape*
2109 result_type: Object
2110 guard: true
2111 movable: true
2112 congruent_to: custom
2113 alias_set: custom
2114 might_alias: custom
2115 generate_lir: true
2116 lir_temps: 1
2117
2118 - name: HasShape
2119 operands:
2120 object: Object
2121 arguments:
2122 shape: Shape*
2123 result_type: Boolean
2124 movable: true
2125 congruent_to: custom
2126 alias_set: custom
2127 generate_lir: true
2128
2129 - name: GuardFuse
2130 arguments:
2131 fuseIndex: RealmFuses::FuseIndex
2132 result_type: None
2133 guard: true
2134 movable: true
2135 congruent_to: custom
2136 alias_set: custom
2137
2138 - name: GuardMultipleShapes
2139 operands:
2140 object: Object
2141 shapeList: Object
2142 result_type: Object
2143 guard: true
2144 movable: true
2145 congruent_to: if_operands_equal
2146 alias_set: custom
2147 generate_lir: true
2148 lir_temps: 4
2149
2150 - name: GuardProto
2151 gen_boilerplate: false
2152
2153 - name: GuardNullProto
2154 gen_boilerplate: false
2155
2156 # Guard the object is a native object.
2157 - name: GuardIsNativeObject
2158 operands:
2159 object: Object
2160 result_type: Object
2161 guard: true
2162 movable: true
2163 congruent_to: if_operands_equal
2164 alias_set: custom
2165
2166 - name: GuardGlobalGeneration
2167 arguments:
2168 expected: uint32_t
2169 generationAddr: const void*
2170 result_type: None
2171 guard: true
2172 movable: true
2173 alias_set: custom
2174 congruent_to: custom
2175
2176 - name: GuardIsProxy
2177 operands:
2178 object: Object
2179 result_type: Object
2180 guard: true
2181 movable: true
2182 congruent_to: if_operands_equal
2183 alias_set: custom
2184
2185 - name: GuardIsNotDOMProxy
2186 operands:
2187 proxy: Object
2188 result_type: Object
2189 guard: true
2190 movable: true
2191 congruent_to: if_operands_equal
2192 alias_set: custom
2193
2194 - name: GuardIsNotProxy
2195 operands:
2196 object: Object
2197 result_type: Object
2198 guard: true
2199 movable: true
2200 congruent_to: if_operands_equal
2201 folds_to: custom
2202 alias_set: custom
2203
2204 - name: ProxyGet
2205 operands:
2206 proxy: Object
2207 arguments:
2208 id: jsid
2209 result_type: Value
2210 possibly_calls: true
2211 generate_lir: true
2212 lir_temps: 1
2213
2214 - name: ProxyGetByValue
2215 operands:
2216 proxy: Object
2217 idVal: Value
2218 result_type: Value
2219 possibly_calls: true
2220 generate_lir: true
2221
2222 - name: ProxyHasProp
2223 operands:
2224 proxy: Object
2225 idVal: Value
2226 arguments:
2227 hasOwn: bool
2228 result_type: Boolean
2229 possibly_calls: true
2230
2231 - name: ProxySet
2232 operands:
2233 proxy: Object
2234 rhs: Value
2235 arguments:
2236 id: jsid
2237 strict: bool
2238 possibly_calls: true
2239 generate_lir: true
2240 lir_temps: 1
2241
2242 - name: ProxySetByValue
2243 operands:
2244 proxy: Object
2245 idVal: Value
2246 rhs: Value
2247 arguments:
2248 strict: bool
2249 possibly_calls: true
2250 generate_lir: true
2251
2252 - name: CallSetArrayLength
2253 operands:
2254 obj: Object
2255 rhs: Value
2256 arguments:
2257 strict: bool
2258 possibly_calls: true
2259 generate_lir: true
2260
2261 - name: MegamorphicLoadSlot
2262 operands:
2263 object: Object
2264 arguments:
2265 name: PropertyKey
2266 result_type: Value
2267 # Bails when non-native or accessor properties are encountered, so we can't
2268 # DCE this instruction.
2269 guard: true
2270 possibly_calls: true
2271 congruent_to: custom
2272 alias_set: custom
2273 generate_lir: true
2274 lir_temps: 4
2275
2276 - name: MegamorphicLoadSlotPermissive
2277 operands:
2278 object: Object
2279 arguments:
2280 name: PropertyKey
2281 result_type: Value
2282 guard: true
2283 possibly_calls: true
2284 generate_lir: true
2285 lir_temps: 4
2286
2287 - name: MegamorphicLoadSlotByValue
2288 operands:
2289 object: Object
2290 idVal: Value
2291 result_type: Value
2292 # Bails when non-native or accessor properties are encountered, so we can't
2293 # DCE this instruction.
2294 guard: true
2295 folds_to: custom
2296 congruent_to: if_operands_equal
2297 alias_set: custom
2298 possibly_calls: true
2299 generate_lir: true
2300 lir_temps: 3
2301
2302 - name: MegamorphicLoadSlotByValuePermissive
2303 operands:
2304 object: Object
2305 idVal: Value
2306 result_type: Value
2307 guard: true
2308 folds_to: custom
2309 possibly_calls: true
2310 generate_lir: true
2311 #ifdef JS_CODEGEN_X86
2312 lir_temps: 3
2313 #else
2314 lir_temps: 4
2315 #endif
2316
2317 - name: MegamorphicStoreSlot
2318 operands:
2319 object: Object
2320 rhs: Value
2321 arguments:
2322 name: PropertyKey
2323 strict: bool
2324 possibly_calls: true
2325 generate_lir: true
2326 #ifdef JS_CODEGEN_X86
2327 lir_temps: 1
2328 #else
2329 lir_temps: 3
2330 #endif
2331
2332 - name: MegamorphicHasProp
2333 operands:
2334 object: Object
2335 idVal: Value
2336 arguments:
2337 hasOwn: bool
2338 result_type: Boolean
2339 # Bails when non-native or accessor properties are encountered, so we can't
2340 # DCE this instruction.
2341 guard: true
2342 congruent_to: custom
2343 alias_set: custom
2344 possibly_calls: true
2345 generate_lir: true
2346 lir_temps: 3
2347
2348 - name: SmallObjectVariableKeyHasProp
2349 operands:
2350 idStr: String
2351 arguments:
2352 shape: Shape*
2353 congruent_to: custom
2354 result_type: Boolean
2355 alias_set: custom
2356 generate_lir: true
2357
2358 - name: GuardIsNotArrayBufferMaybeShared
2359 operands:
2360 object: Object
2361 result_type: Object
2362 guard: true
2363 movable: true
2364 congruent_to: if_operands_equal
2365 folds_to: custom
2366 alias_set: none
2367
2368 - name: GuardIsTypedArray
2369 operands:
2370 object: Object
2371 result_type: Object
2372 guard: true
2373 movable: true
2374 congruent_to: if_operands_equal
2375 alias_set: none
2376
2377 - name: GuardIsFixedLengthTypedArray
2378 operands:
2379 object: Object
2380 result_type: Object
2381 guard: true
2382 movable: true
2383 congruent_to: if_operands_equal
2384 alias_set: none
2385
2386 - name: GuardIsResizableTypedArray
2387 operands:
2388 object: Object
2389 result_type: Object
2390 guard: true
2391 movable: true
2392 congruent_to: if_operands_equal
2393 alias_set: none
2394
2395 - name: GuardHasProxyHandler
2396 operands:
2397 object: Object
2398 arguments:
2399 handler: const void*
2400 result_type: Object
2401 guard: true
2402 movable: true
2403 congruent_to: if_operands_equal
2404 alias_set: custom
2405
2406 # Loads a specific JSObject* that was originally nursery-allocated.
2407 # See also WarpObjectField.
2408 - name: NurseryObject
2409 arguments:
2410 # Index in the Vector of objects stored in the WarpSnapshot.
2411 nurseryIndex: uint32_t
2412 result_type: Object
2413 movable: true
2414 congruent_to: custom
2415 alias_set: none
2416 generate_lir: true
2417
2418 - name: GuardValue
2419 gen_boilerplate: false
2420
2421 - name: GuardNullOrUndefined
2422 operands:
2423 value: Value
2424 result_type: Value
2425 guard: true
2426 movable: true
2427 congruent_to: if_operands_equal
2428 folds_to: custom
2429 alias_set: none
2430
2431 - name: GuardIsNotObject
2432 operands:
2433 value: Value
2434 result_type: Value
2435 guard: true
2436 movable: true
2437 congruent_to: if_operands_equal
2438 folds_to: custom
2439 alias_set: none
2440
2441 - name: GuardFunctionFlags
2442 gen_boilerplate: false
2443
2444 - name: GuardFunctionIsNonBuiltinCtor
2445 operands:
2446 function: Object
2447 result_type: Object
2448 guard: true
2449 movable: true
2450 congruent_to: if_operands_equal
2451 alias_set: custom
2452
2453 - name: GuardFunctionKind
2454 operands:
2455 function: Object
2456 arguments:
2457 expected: FunctionFlags::FunctionKind
2458 bailOnEquality: bool
2459 result_type: Object
2460 guard: true
2461 movable: true
2462 congruent_to: custom
2463 alias_set: custom
2464
2465 - name: GuardFunctionScript
2466 operands:
2467 function: Object
2468 arguments:
2469 expected: BaseScript*
2470 nargs: uint16_t
2471 flags: FunctionFlags
2472 result_type: Object
2473 guard: true
2474 movable: true
2475 folds_to: custom
2476 congruent_to: custom
2477 # A JSFunction's BaseScript pointer is immutable. Relazification of
2478 # self-hosted functions is an exception to this, but we don't use this
2479 # guard for self-hosted functions.
2480 alias_set: custom
2481
2482 - name: GuardObjectIdentity
2483 gen_boilerplate: false
2484
2485 - name: GuardSpecificFunction
2486 gen_boilerplate: false
2487
2488 - name: GuardSpecificAtom
2489 operands:
2490 str: String
2491 arguments:
2492 atom: JSAtom*
2493 result_type: String
2494 guard: true
2495 movable: true
2496 congruent_to: custom
2497 folds_to: custom
2498 alias_set: none
2499
2500 - name: GuardSpecificSymbol
2501 gen_boilerplate: false
2502
2503 - name: GuardSpecificInt32
2504 operands:
2505 num: Int32
2506 arguments:
2507 expected: int32_t
2508 result_type: Int32
2509 guard: true
2510 movable: true
2511 folds_to: custom
2512 alias_set: none
2513
2514 - name: GuardStringToIndex
2515 operands:
2516 string: String
2517 result_type: Int32
2518 # Mark as guard because this instruction must not be eliminated. For
2519 # example, if the string is not an index the operation could change from a
2520 # typed array load to a getter call.
2521 guard: true
2522 movable: true
2523 congruent_to: if_operands_equal
2524 folds_to: custom
2525 alias_set: none
2526 generate_lir: true
2527
2528 - name: GuardStringToInt32
2529 operands:
2530 string: String
2531 result_type: Int32
2532 # Mark as guard to prevent the issue described in MGuardStringToIndex's
2533 # constructor.
2534 guard: true
2535 movable: true
2536 congruent_to: if_operands_equal
2537 folds_to: custom
2538 alias_set: none
2539 generate_lir: true
2540 lir_temps: 1
2541
2542 - name: GuardStringToDouble
2543 operands:
2544 string: String
2545 result_type: Double
2546 # Mark as guard to prevent the issue described in MGuardStringToIndex's
2547 # constructor.
2548 guard: true
2549 movable: true
2550 congruent_to: if_operands_equal
2551 folds_to: custom
2552 alias_set: none
2553 generate_lir: true
2554 lir_temps: 2
2555
2556 - name: GuardNoDenseElements
2557 operands:
2558 object: Object
2559 result_type: Object
2560 guard: true
2561 movable: true
2562 alias_set: custom
2563
2564 - name: GuardTagNotEqual
2565 gen_boilerplate: false
2566
2567 - name: LoadDynamicSlot
2568 gen_boilerplate: false
2569
2570 # Inline call to access a function's environment (scope chain).
2571 - name: FunctionEnvironment
2572 operands:
2573 function: Object
2574 result_type: Object
2575 movable: true
2576 folds_to: custom
2577 # A function's environment is fixed.
2578 alias_set: none
2579 generate_lir: true
2580
2581 # Allocate a new BlockLexicalEnvironmentObject.
2582 - name: NewLexicalEnvironmentObject
2583 operands:
2584 templateObj: Object
2585 result_type: Object
2586 alias_set: none
2587
2588 # Allocate a new ClassBodyEnvironmentObject.
2589 - name: NewClassBodyEnvironmentObject
2590 operands:
2591 templateObj: Object
2592 result_type: Object
2593 alias_set: none
2594
2595 - name: NewVarEnvironmentObject
2596 operands:
2597 templateObj: Object
2598 result_type: Object
2599 alias_set: none
2600
2601 - name: HomeObject
2602 operands:
2603 function: Object
2604 result_type: Object
2605 movable: true
2606 # A function's [[HomeObject]] is fixed.
2607 alias_set: none
2608 generate_lir: true
2609
2610 - name: AddAndStoreSlot
2611 gen_boilerplate: false
2612
2613 - name: AllocateAndStoreSlot
2614 operands:
2615 object: Object
2616 value: Value
2617 arguments:
2618 slotOffset: uint32_t
2619 shape: Shape*
2620 numNewSlots: uint32_t
2621 possibly_calls: true
2622 alias_set: custom
2623 generate_lir: true
2624 lir_temps: 2
2625
2626 - name: AddSlotAndCallAddPropHook
2627 operands:
2628 object: Object
2629 value: Value
2630 arguments:
2631 shape: Shape*
2632 possibly_calls: true
2633 generate_lir: true
2634
2635 - name: StoreDynamicSlot
2636 gen_boilerplate: false
2637
2638 # Note, Name ICs always return a Value. There are no V/T variants.
2639 - name: GetNameCache
2640 operands:
2641 envObj: Object
2642 result_type: Value
2643 generate_lir: true
2644 lir_temps: 1
2645
2646 - name: CallGetIntrinsicValue
2647 arguments:
2648 name: PropertyName*
2649 result_type: Value
2650 possibly_calls: true
2651 generate_lir: true
2652
2653 - name: DeleteProperty
2654 operands:
2655 value: Value
2656 arguments:
2657 name: PropertyName*
2658 strict: bool
2659 result_type: Boolean
2660
2661 - name: DeleteElement
2662 operands:
2663 value: Value
2664 index: Value
2665 arguments:
2666 strict: bool
2667 result_type: Boolean
2668
2669 - name: SetPropertyCache
2670 gen_boilerplate: false
2671
2672 - name: MegamorphicSetElement
2673 gen_boilerplate: false
2674
2675 - name: SetDOMProperty
2676 gen_boilerplate: false
2677
2678 - name: GetDOMProperty
2679 gen_boilerplate: false
2680
2681 - name: GetDOMMember
2682 gen_boilerplate: false
2683
2684 - name: ObjectToIterator
2685 gen_boilerplate: false
2686
2687 - name: ValueToIterator
2688 operands:
2689 value: Value
2690 result_type: Object
2691
2692 - name: IteratorHasIndices
2693 operands:
2694 object: Object
2695 iterator: Object
2696 result_type: Boolean
2697 alias_set: custom
2698
2699 - name: LoadSlotByIteratorIndex
2700 operands:
2701 object: Object
2702 iterator: Object # TODO: add MIRType::NativeIterator?
2703 result_type: Value
2704 alias_set: custom
2705 generate_lir: true
2706 lir_temps: 2
2707
2708 - name: StoreSlotByIteratorIndex
2709 operands:
2710 object: Object
2711 iterator: Object
2712 value: Value
2713 alias_set: custom
2714 generate_lir: true
2715 lir_temps: 2
2716
2717 # Load the private value expando from a DOM proxy. The target is stored in the
2718 # proxy object's private slot.
2719 # This is either an UndefinedValue (no expando), ObjectValue (the expando
2720 # object), or PrivateValue(ExpandoAndGeneration*).
2721 - name: LoadDOMExpandoValue
2722 operands:
2723 proxy: Object
2724 result_type: Value
2725 movable: true
2726 congruent_to: if_operands_equal
2727 alias_set: custom
2728 generate_lir: true
2729
2730 - name: LoadDOMExpandoValueGuardGeneration
2731 gen_boilerplate: false
2732
2733 - name: LoadDOMExpandoValueIgnoreGeneration
2734 operands:
2735 proxy: Object
2736 result_type: Value
2737 movable: true
2738 congruent_to: if_operands_equal
2739 alias_set: custom
2740 generate_lir: true
2741
2742 # Takes an expando Value as input, then guards it's either UndefinedValue or
2743 # an object with the expected shape.
2744 - name: GuardDOMExpandoMissingOrGuardShape
2745 operands:
2746 expando: Value
2747 arguments:
2748 shape: Shape*
2749 result_type: Value
2750 guard: true
2751 movable: true
2752 congruent_to: custom
2753 alias_set: custom
2754
2755 # Read length field of a JSString*.
2756 - name: StringLength
2757 operands:
2758 string: String
2759 result_type: Int32
2760 movable: true
2761 folds_to: custom
2762 congruent_to: if_operands_equal
2763 # The string |length| property is immutable, so there is no
2764 # implicit dependency.
2765 alias_set: none
2766 compute_range: custom
2767 can_recover: true
2768 clone: true
2769 generate_lir: true
2770
2771 - name: Floor
2772 gen_boilerplate: false
2773
2774 - name: Ceil
2775 gen_boilerplate: false
2776
2777 - name: Round
2778 gen_boilerplate: false
2779
2780 - name: Trunc
2781 gen_boilerplate: false
2782
2783 - name: NearbyInt
2784 gen_boilerplate: false
2785
2786 - name: GetIteratorCache
2787 gen_boilerplate: false
2788
2789 - name: OptimizeSpreadCallCache
2790 operands:
2791 value: Value
2792 result_type: Value
2793 generate_lir: true
2794 lir_temps: 1
2795
2796 - name: IteratorMore
2797 operands:
2798 iterator: Object
2799 result_type: Value
2800 generate_lir: true
2801 lir_temps: 1
2802
2803 - name: IsNoIter
2804 operands:
2805 def: Object
2806 result_type: Boolean
2807 type_policy: none
2808 movable : true
2809 alias_set: none
2810
2811 - name: IteratorEnd
2812 operands:
2813 iterator: Object
2814 generate_lir: true
2815 lir_temps: 3
2816
2817 - name: CloseIterCache
2818 operands:
2819 iter: Object
2820 arguments:
2821 completionKind: uint8_t
2822 possibly_calls: true
2823
2824 - name: OptimizeGetIteratorCache
2825 operands:
2826 value: Value
2827 result_type: Boolean
2828 generate_lir: true
2829 lir_temps: 1
2830
2831 - name: InCache
2832 gen_boilerplate: false
2833
2834 - name: InArray
2835 gen_boilerplate: false
2836
2837 - name: GuardElementNotHole
2838 gen_boilerplate: false
2839
2840 - name: NewPrivateName
2841 arguments:
2842 name: JSAtom*
2843 result_type: Symbol
2844 possibly_calls: true
2845 generate_lir: true
2846
2847 - name: CheckPrivateFieldCache
2848 gen_boilerplate: false
2849
2850 - name: HasOwnCache
2851 gen_boilerplate: false
2852
2853 - name: InstanceOf
2854 gen_boilerplate: false
2855
2856 # Implementation for instanceof operator with unknown rhs.
2857 - name: InstanceOfCache
2858 operands:
2859 obj: Value
2860 proto: Object
2861 result_type: Boolean
2862 generate_lir: true
2863
2864 # Read the number of actual arguments.
2865 - name: ArgumentsLength
2866 result_type: Int32
2867 movable: true
2868 congruent_to: if_operands_equal
2869 # Arguments |length| cannot be mutated by Ion Code.
2870 alias_set: none
2871 compute_range: custom
2872 can_recover: true
2873 generate_lir: true
2874
2875 # This MIR instruction is used to get an argument from the actual arguments.
2876 - name: GetFrameArgument
2877 operands:
2878 index: Int32
2879 result_type: Value
2880 movable: true
2881 congruent_to: if_operands_equal
2882 # This instruction is never aliased, because ops like JSOp::SetArg don't
2883 # write to the argument frames. We create an arguments object in that case.
2884 alias_set: none
2885 generate_lir: true
2886
2887 # This MIR instruction is used to get an argument from the actual arguments.
2888 # Returns undefined if |index| is larger-or-equals to |length|. Bails out if
2889 # |index| is negative.
2890 - name: GetFrameArgumentHole
2891 operands:
2892 index: Int32
2893 length: Int32
2894 result_type: Value
2895 guard: true
2896 movable: true
2897 congruent_to: if_operands_equal
2898 # This instruction is never aliased, because ops like JSOp::SetArg don't
2899 # write to the argument frames. We create an arguments object in that case.
2900 alias_set: none
2901 generate_lir: true
2902 lir_temps: 1
2903
2904 - name: NewTarget
2905 result_type: Value
2906 movable: true
2907 congruent_to: if_operands_equal
2908 alias_set: none
2909 generate_lir: true
2910
2911 # Create the rest parameter.
2912 - name: Rest
2913 operands:
2914 numActuals: Int32
2915 arguments:
2916 numFormals: unsigned
2917 shape: Shape*
2918 result_type: Object
2919 possibly_calls: true
2920 alias_set: none
2921 can_recover: true
2922 generate_lir: true
2923 lir_temps: 4
2924
2925 - name: PostWriteBarrier
2926 gen_boilerplate: false
2927
2928 - name: PostWriteElementBarrier
2929 gen_boilerplate: false
2930
2931 - name: AssertCanElidePostWriteBarrier
2932 operands:
2933 object: Object
2934 value: Value
2935 result_type: None
2936 guard: true
2937 alias_set: none
2938
2939 # Allocates a new NamedLambdaObject.
2940 #
2941 # This instruction generates two possible instruction sets:
2942 # (1) An inline allocation of the call object is attempted.
2943 # (2) Otherwise, a callVM create a new object.
2944 - name: NewNamedLambdaObject
2945 arguments:
2946 templateObj: NamedLambdaObject*
2947 initialHeap: gc::Heap
2948 result_type: Object
2949 alias_set: none
2950 generate_lir: true
2951 lir_temps: 1
2952
2953 - name: NewCallObject
2954 gen_boilerplate: false
2955
2956 - name: NewStringObject
2957 gen_boilerplate: false
2958
2959 - name: IsCallable
2960 gen_boilerplate: false
2961
2962 - name: IsConstructor
2963 operands:
2964 object: Object
2965 result_type: Boolean
2966 movable: true
2967 congruent_to: if_operands_equal
2968 alias_set: custom
2969 generate_lir: true
2970
2971 - name: IsCrossRealmArrayConstructor
2972 operands:
2973 object: Object
2974 result_type: Boolean
2975 movable: true
2976 congruent_to: if_operands_equal
2977 alias_set: none
2978 generate_lir: true
2979
2980 - name: IsObject
2981 operands:
2982 object: Value
2983 result_type: Boolean
2984 movable: true
2985 folds_to: custom
2986 congruent_to: if_operands_equal
2987 alias_set: none
2988 generate_lir: true
2989
2990 - name: IsNullOrUndefined
2991 operands:
2992 value: Value
2993 result_type: Boolean
2994 movable: true
2995 folds_to: custom
2996 congruent_to: if_operands_equal
2997 alias_set: none
2998 type_policy: none
2999 can_consume_float32: true
3000 generate_lir: true
3001
3002 - name: HasClass
3003 gen_boilerplate: false
3004
3005 - name: GuardToClass
3006 gen_boilerplate: false
3007
3008 - name: GuardToEitherClass
3009 gen_boilerplate: false
3010
3011 - name: GuardToFunction
3012 gen_boilerplate: false
3013
3014 - name: IsArray
3015 gen_boilerplate: false
3016
3017 - name: IsTypedArray
3018 gen_boilerplate: false
3019
3020 - name: ObjectClassToString
3021 operands:
3022 object: Object
3023 result_type: String
3024 guard: true
3025 movable: true
3026 congruent_to: if_operands_equal
3027 possibly_calls: true
3028 # Tests @@toStringTag is neither present on this object nor on any object
3029 # of the prototype chain.
3030 alias_set: custom
3031 generate_lir: true
3032 lir_temps: 1
3033
3034 - name: CheckReturn
3035 operands:
3036 returnValue: Value
3037 thisValue: Value
3038 result_type: Value
3039 guard: true
3040 folds_to: custom
3041 alias_set: custom
3042 generate_lir: true
3043
3044 - name: CheckThis
3045 operands:
3046 thisValue: Value
3047 result_type: Value
3048 guard: true
3049 folds_to: custom
3050 alias_set: custom
3051
3052 - name: AsyncResolve
3053 operands:
3054 generator: Object
3055 value: Value
3056 result_type: Object
3057
3058 - name: AsyncReject
3059 operands:
3060 generator: Object
3061 reason: Value
3062 stack: Value
3063 result_type: Object
3064
3065 # Returns from this function to the previous caller; this looks like a regular
3066 # Unary instruction and is used to lie to the MIR generator about suspending
3067 # ops like Yield/Await, which are emitted like returns, but MIR-Build like
3068 # regular instructions.
3069 - name: GeneratorReturn
3070 operands:
3071 input: Value
3072 guard: true
3073 alias_set: none
3074
3075 - name: AsyncAwait
3076 operands:
3077 value: Value
3078 generator: Object
3079 result_type: Object
3080
3081 - name: CheckThisReinit
3082 operands:
3083 thisValue: Value
3084 result_type: Value
3085 guard: true
3086 folds_to: custom
3087 alias_set: custom
3088
3089 - name: Generator
3090 gen_boilerplate: false
3091
3092 - name: CanSkipAwait
3093 operands:
3094 value: Value
3095 result_type: Boolean
3096
3097 - name: MaybeExtractAwaitValue
3098 gen_boilerplate: false
3099
3100 - name: IncrementWarmUpCounter
3101 arguments:
3102 script: JSScript*
3103 alias_set: none
3104 generate_lir: true
3105 lir_temps: 1
3106
3107 - name: AtomicIsLockFree
3108 gen_boilerplate: false
3109
3110 - name: AtomicPause
3111 guard: true
3112 movable: false
3113 alias_set: none
3114 generate_lir: true
3115
3116 - name: CompareExchangeTypedArrayElement
3117 gen_boilerplate: false
3118
3119 - name: AtomicExchangeTypedArrayElement
3120 gen_boilerplate: false
3121
3122 - name: AtomicTypedArrayElementBinop
3123 gen_boilerplate: false
3124
3125 - name: Debugger
3126 gen_boilerplate: false
3127
3128 - name: CheckIsObj
3129 operands:
3130 value: Value
3131 arguments:
3132 checkKind: uint8_t
3133 result_type: Object
3134 guard: true
3135 folds_to: custom
3136 alias_set: custom
3137 generate_lir: true
3138
3139 - name: CheckObjCoercible
3140 operands:
3141 checkValue: Value
3142 result_type: Value
3143 guard: true
3144 folds_to: custom
3145 # Throws on null or undefined.
3146 alias_set: custom
3147
3148 - name: CheckClassHeritage
3149 operands:
3150 heritage: Value
3151 result_type: Value
3152 guard: true
3153
3154 - name: DebugCheckSelfHosted
3155 operands:
3156 checkValue: Value
3157 result_type: Value
3158 guard: true
3159
3160 - name: IsPackedArray
3161 operands:
3162 object: Object
3163 result_type: Boolean
3164 movable: true
3165 alias_set: custom
3166 generate_lir: true
3167 lir_temps: 1
3168
3169 - name: GuardArrayIsPacked
3170 operands:
3171 array: Object
3172 result_type: Object
3173 guard: true
3174 movable: true
3175 congruent_to: if_operands_equal
3176 alias_set: custom
3177
3178 - name: GetPrototypeOf
3179 operands:
3180 target: Object
3181 result_type: Value
3182 # May throw if target is a proxy.
3183 guard: true
3184 generate_lir: true
3185
3186 - name: ObjectWithProto
3187 operands:
3188 prototype: Value
3189 result_type: Object
3190 # May throw if prototype is neither an object nor null.
3191 guard: true
3192 possibly_calls: true
3193 generate_lir: true
3194
3195 - name: ObjectStaticProto
3196 gen_boilerplate: false
3197
3198 # This is basically just a limited case of Constant, for objects which are
3199 # the prototype of another object and will be used for a GuardShape. It
3200 # includes a reference to the receiver object so we can eliminate redundant
3201 # shape guards.
3202 - name: ConstantProto
3203 gen_boilerplate: false
3204
3205 - name: BuiltinObject
3206 arguments:
3207 builtinObjectKind: BuiltinObjectKind
3208 result_type: Object
3209 possibly_calls: true
3210 generate_lir: true
3211
3212 - name: SuperFunction
3213 operands:
3214 callee: Object
3215 result_type: Value
3216 movable: true
3217 congruent_to: if_operands_equal
3218 alias_set: custom
3219 generate_lir: true
3220 lir_temps: 1
3221
3222 - name: InitHomeObject
3223 operands:
3224 function: Object
3225 homeObject: Value
3226 result_type: Object
3227 alias_set: custom
3228 generate_lir: true
3229
3230 # Return true if the object is definitely a TypedArray constructor, but not
3231 # necessarily from the currently active realm. Return false if the object is
3232 # not a TypedArray constructor or if it's a wrapper.
3233 - name: IsTypedArrayConstructor
3234 operands:
3235 object: Object
3236 result_type: Boolean
3237 alias_set: none
3238 generate_lir: true
3239
3240 # Load the JSValueTag on all platforms except ARM64. See the comments in
3241 # MacroAssembler-arm64.h for the |cmpTag(Register, ImmTag)| method for why
3242 # ARM64 doesn't use the raw JSValueTag, but instead a modified tag value. That
3243 # modified tag value can't be directly compared against JSValueTag constants.
3244 - name: LoadValueTag
3245 operands:
3246 value: Value
3247 result_type: Int32
3248 movable: true
3249 congruent_to: if_operands_equal
3250 alias_set: none
3251 generate_lir: true
3252
3253 # Load the target object from a proxy wrapper. The target is stored in the
3254 # proxy object's private slot. This operation is fallible if the proxy can
3255 # be revoked.
3256 - name: LoadWrapperTarget
3257 operands:
3258 object: Object
3259 arguments:
3260 fallible: bool
3261 result_type: Object
3262 movable: true
3263 congruent_to: custom
3264 # Can't use |AliasSet::None| because the target changes on navigation.
3265 # TODO: Investigate using a narrower or a custom alias set.
3266 alias_set: custom
3267 generate_lir: true
3268
3269 # Guard the accessor shape is present on the object or its prototype chain.
3270 - name: GuardHasGetterSetter
3271 operands:
3272 object: Object
3273 arguments:
3274 propId: jsid
3275 getterSetter: GetterSetter*
3276 result_type: Object
3277 guard: true
3278 movable: true
3279 possibly_calls: true
3280 congruent_to: custom
3281 alias_set: custom
3282
3283 - name: GuardIsExtensible
3284 operands:
3285 object: Object
3286 result_type: Object
3287 guard: true
3288 movable: true
3289 congruent_to: if_operands_equal
3290 alias_set: custom
3291
3292 - name: GuardInt32IsNonNegative
3293 operands:
3294 index: Int32
3295 result_type: Int32
3296 guard: true
3297 movable: true
3298 congruent_to: if_operands_equal
3299 folds_to: custom
3300 alias_set: none
3301
3302 - name: GuardInt32Range
3303 operands:
3304 input: Int32
3305 arguments:
3306 minimum: int32_t
3307 maximum: int32_t
3308 result_type: Int32
3309 guard: true
3310 movable: true
3311 congruent_to: if_operands_equal
3312 folds_to: custom
3313 alias_set: none
3314
3315 # Guard the input index is either greater than the dense initialized length of
3316 # an object, or a hole element.
3317 - name: GuardIndexIsNotDenseElement
3318 operands:
3319 object: Object
3320 index: Int32
3321 result_type: Int32
3322 guard: true
3323 movable: true
3324 congruent_to: if_operands_equal
3325 alias_set: custom
3326
3327 # Guard an array object's length can be updated successfully when adding an
3328 # element at the input index.
3329 - name: GuardIndexIsValidUpdateOrAdd
3330 operands:
3331 object: Object
3332 index: Int32
3333 result_type: Int32
3334 guard: true
3335 movable: true
3336 congruent_to: if_operands_equal
3337 alias_set: custom
3338
3339 # Add or update a sparse element of an ArrayObject or PlainObject. It's allowed
3340 # for the sparse element to be already present on the object. It may also be an
3341 # accessor property, so this instruction is always marked as effectful.
3342 - name: CallAddOrUpdateSparseElement
3343 operands:
3344 object: Object
3345 index: Int32
3346 value: Value
3347 arguments:
3348 strict: bool
3349 possibly_calls: true
3350 generate_lir: true
3351
3352 # Get a sparse element from an ArrayObject or PlainObject, possibly by calling
3353 # an accessor property.
3354 - name: CallGetSparseElement
3355 operands:
3356 object: Object
3357 index: Int32
3358 result_type: Value
3359 possibly_calls: true
3360 generate_lir: true
3361
3362 - name: CallNativeGetElement
3363 operands:
3364 object: Object
3365 index: Int32
3366 result_type: Value
3367 possibly_calls: true
3368 generate_lir: true
3369
3370 - name: CallNativeGetElementSuper
3371 operands:
3372 object: Object
3373 index: Int32
3374 receiver: Value
3375 result_type: Value
3376 possibly_calls: true
3377 generate_lir: true
3378
3379 # Test if a native object has an own element (sparse or dense) at an index.
3380 - name: CallObjectHasSparseElement
3381 operands:
3382 object: Object
3383 index: Int32
3384 result_type: Boolean
3385 guard: true
3386 congruent_to: if_operands_equal
3387 possibly_calls: true
3388 alias_set: custom
3389 generate_lir: true
3390 lir_temps: 2
3391
3392 - name: BigIntAsIntN
3393 operands:
3394 bits: Int32
3395 input: BigInt
3396 result_type: BigInt
3397 movable: true
3398 congruent_to: if_operands_equal
3399 possibly_calls: true
3400 folds_to: custom
3401 alias_set: none
3402 can_recover: true
3403 clone: true
3404 generate_lir: true
3405
3406 - name: BigIntAsUintN
3407 operands:
3408 bits: Int32
3409 input: BigInt
3410 result_type: BigInt
3411 movable: true
3412 congruent_to: if_operands_equal
3413 possibly_calls: true
3414 folds_to: custom
3415 alias_set: none
3416 can_recover: true
3417 clone: true
3418 generate_lir: true
3419
3420 - name: GuardNonGCThing
3421 operands:
3422 input: Value
3423 result_type: Value
3424 guard: true
3425 movable: true
3426 congruent_to: if_operands_equal
3427 folds_to: custom
3428 alias_set: none
3429
3430 - name: ToHashableNonGCThing
3431 operands:
3432 input: Value
3433 result_type: Value
3434 movable: true
3435 congruent_to: if_operands_equal
3436 alias_set: none
3437 generate_lir: true
3438 lir_temps: 1
3439
3440 - name: ToHashableString
3441 operands:
3442 input: String
3443 result_type: String
3444 movable: true
3445 congruent_to: if_operands_equal
3446 alias_set: none
3447 generate_lir: true
3448
3449 - name: ToHashableValue
3450 operands:
3451 input: Value
3452 result_type: Value
3453 movable: true
3454 congruent_to: if_operands_equal
3455 alias_set: none
3456 generate_lir: true
3457 lir_temps: 1
3458
3459 - name: HashNonGCThing
3460 operands:
3461 input: Value
3462 result_type: Int32
3463 movable: true
3464 congruent_to: if_operands_equal
3465 alias_set: none
3466 generate_lir: true
3467 lir_temps: 1
3468
3469 - name: HashString
3470 operands:
3471 input: String
3472 result_type: Int32
3473 movable: true
3474 congruent_to: if_operands_equal
3475 alias_set: none
3476 generate_lir: true
3477 lir_temps: 1
3478
3479 - name: HashSymbol
3480 operands:
3481 input: Symbol
3482 result_type: Int32
3483 movable: true
3484 congruent_to: if_operands_equal
3485 alias_set: none
3486 generate_lir: true
3487
3488 - name: HashBigInt
3489 operands:
3490 input: BigInt
3491 result_type: Int32
3492 movable: true
3493 congruent_to: if_operands_equal
3494 alias_set: none
3495 generate_lir: true
3496 lir_temps: 3
3497
3498 - name: HashObject
3499 operands:
3500 setObject: Object
3501 input: Value
3502 result_type: Int32
3503 # In contrast to the previous hash operations, we can't move this
3504 # instruction, because the hashcode is computed from the object's address,
3505 # which can change when the object is moved by the GC.
3506 movable: false
3507 alias_set: none
3508 generate_lir: true
3509 lir_temps: 4
3510
3511 - name: HashValue
3512 operands:
3513 setObject: Object
3514 input: Value
3515 result_type: Int32
3516 movable: false
3517 alias_set: none
3518 generate_lir: true
3519 lir_temps: 4
3520
3521 - name: SetObjectHasNonBigInt
3522 operands:
3523 setObject: Object
3524 value: Value
3525 hash: Int32
3526 result_type: Boolean
3527 movable: true
3528 congruent_to: if_operands_equal
3529 alias_set: custom
3530 generate_lir: true
3531 lir_temps: 2
3532
3533 - name: SetObjectHasBigInt
3534 operands:
3535 setObject: Object
3536 value: Value
3537 hash: Int32
3538 result_type: Boolean
3539 movable: true
3540 congruent_to: if_operands_equal
3541 alias_set: custom
3542 generate_lir: true
3543 lir_temps: 4
3544
3545 - name: SetObjectHasValue
3546 operands:
3547 setObject: Object
3548 value: Value
3549 hash: Int32
3550 result_type: Boolean
3551 movable: true
3552 congruent_to: if_operands_equal
3553 alias_set: custom
3554 generate_lir: true
3555 lir_temps: 4
3556
3557 - name: SetObjectHasValueVMCall
3558 operands:
3559 setObject: Object
3560 value: Value
3561 result_type: Boolean
3562 movable: true
3563 congruent_to: if_operands_equal
3564 alias_set: custom
3565 possibly_calls: true
3566 generate_lir: true
3567
3568 - name: SetObjectDelete
3569 operands:
3570 setObject: Object
3571 key: Value
3572 result_type: Boolean
3573 possibly_calls: true
3574 generate_lir: true
3575
3576 - name: SetObjectAdd
3577 operands:
3578 setObject: Object
3579 key: Value
3580 possibly_calls: true
3581 generate_lir: true
3582
3583 - name: SetObjectSize
3584 operands:
3585 setObject: Object
3586 result_type: Int32
3587 movable: true
3588 congruent_to: if_operands_equal
3589 alias_set: custom
3590 generate_lir: true
3591
3592 - name: MapObjectHasNonBigInt
3593 operands:
3594 mapObject: Object
3595 value: Value
3596 hash: Int32
3597 result_type: Boolean
3598 movable: true
3599 congruent_to: if_operands_equal
3600 alias_set: custom
3601 generate_lir: true
3602 lir_temps: 2
3603
3604 - name: MapObjectHasBigInt
3605 operands:
3606 mapObject: Object
3607 value: Value
3608 hash: Int32
3609 result_type: Boolean
3610 movable: true
3611 congruent_to: if_operands_equal
3612 alias_set: custom
3613 generate_lir: true
3614 lir_temps: 4
3615
3616 - name: MapObjectHasValue
3617 operands:
3618 mapObject: Object
3619 value: Value
3620 hash: Int32
3621 result_type: Boolean
3622 movable: true
3623 congruent_to: if_operands_equal
3624 alias_set: custom
3625 generate_lir: true
3626 lir_temps: 4
3627
3628 - name: MapObjectHasValueVMCall
3629 operands:
3630 mapObject: Object
3631 value: Value
3632 result_type: Boolean
3633 movable: true
3634 congruent_to: if_operands_equal
3635 alias_set: custom
3636 possibly_calls: true
3637 generate_lir: true
3638
3639 - name: MapObjectGetNonBigInt
3640 operands:
3641 mapObject: Object
3642 value: Value
3643 hash: Int32
3644 result_type: Value
3645 movable: true
3646 congruent_to: if_operands_equal
3647 alias_set: custom
3648 generate_lir: true
3649 lir_temps: 2
3650
3651 - name: MapObjectGetBigInt
3652 operands:
3653 mapObject: Object
3654 value: Value
3655 hash: Int32
3656 result_type: Value
3657 movable: true
3658 congruent_to: if_operands_equal
3659 alias_set: custom
3660 generate_lir: true
3661 lir_temps: 4
3662
3663 - name: MapObjectGetValue
3664 operands:
3665 mapObject: Object
3666 value: Value
3667 hash: Int32
3668 result_type: Value
3669 movable: true
3670 congruent_to: if_operands_equal
3671 alias_set: custom
3672 generate_lir: true
3673 lir_temps: 4
3674
3675 - name: MapObjectGetValueVMCall
3676 operands:
3677 mapObject: Object
3678 value: Value
3679 result_type: Value
3680 movable: true
3681 congruent_to: if_operands_equal
3682 alias_set: custom
3683 possibly_calls: true
3684 generate_lir: true
3685
3686 - name: MapObjectDelete
3687 operands:
3688 mapObject: Object
3689 key: Value
3690 result_type: Boolean
3691 possibly_calls: true
3692 generate_lir: true
3693
3694 - name: MapObjectSet
3695 operands:
3696 mapObject: Object
3697 key: Value
3698 value: Value
3699 possibly_calls: true
3700 generate_lir: true
3701
3702 - name: MapObjectSize
3703 operands:
3704 mapObject: Object
3705 result_type: Int32
3706 movable: true
3707 congruent_to: if_operands_equal
3708 alias_set: custom
3709 generate_lir: true
3710
3711 - name: DateFillLocalTimeSlots
3712 operands:
3713 date: Object
3714 congruent_to: if_operands_equal
3715 alias_set: custom
3716 generate_lir: true
3717 lir_temps: 1
3718
3719 - name: DateHoursFromSecondsIntoYear
3720 operands:
3721 secondsIntoYear: Value
3722 result_type: Value
3723 movable: true
3724 congruent_to: if_operands_equal
3725 alias_set: none
3726 generate_lir: true
3727 lir_temps: 2
3728
3729 - name: DateMinutesFromSecondsIntoYear
3730 operands:
3731 secondsIntoYear: Value
3732 result_type: Value
3733 movable: true
3734 congruent_to: if_operands_equal
3735 alias_set: none
3736 generate_lir: true
3737 lir_temps: 2
3738
3739 - name: DateSecondsFromSecondsIntoYear
3740 operands:
3741 secondsIntoYear: Value
3742 result_type: Value
3743 movable: true
3744 congruent_to: if_operands_equal
3745 alias_set: none
3746 generate_lir: true
3747 lir_temps: 2
3748
3749 - name: PostIntPtrConversion
3750 gen_boilerplate: false
3751
3752 - name: CanonicalizeNaN
3753 gen_boilerplate: false
3754
3755 - name: WasmNeg
3756 gen_boilerplate: false
3757
3758 - name: WasmBinaryBitwise
3759 gen_boilerplate: false
3760
3761 - name: WasmLoadInstance
3762 gen_boilerplate: false
3763
3764 - name: WasmStoreInstance
3765 gen_boilerplate: false
3766
3767 - name: WasmHeapReg
3768 gen_boilerplate: false
3769
3770 - name: WasmBoundsCheck
3771 gen_boilerplate: false
3772
3773 - name: WasmBoundsCheckRange32
3774 operands:
3775 index: Int32
3776 length: Int32
3777 limit: Int32
3778 arguments:
3779 trapSiteDesc: wasm::TrapSiteDesc
3780 result_type: Int32
3781 congruent_to: if_operands_equal
3782 type_policy: none
3783 generate_lir: true
3784 lir_temps: 1
3785
3786 - name: WasmExtendU32Index
3787 operands:
3788 input: Int32
3789 result_type: Int64
3790 movable: true
3791 congruent_to: if_operands_equal
3792 folds_to: custom
3793 type_policy: none
3794 alias_set: none
3795
3796 - name: WasmWrapU32Index
3797 operands:
3798 input: Int64
3799 result_type: Int32
3800 movable: true
3801 congruent_to: if_operands_equal
3802 folds_to: custom
3803 type_policy: none
3804 alias_set: none
3805
3806 - name: WasmClampTable64Address
3807 operands:
3808 address: Int64
3809 result_type: Int32
3810 movable: true
3811 congruent_to: if_operands_equal
3812 type_policy: none
3813 alias_set: none
3814 generate_lir: true
3815
3816 - name: WasmAddOffset
3817 gen_boilerplate: false
3818
3819 - name: WasmAlignmentCheck
3820 gen_boilerplate: false
3821
3822 - name: WasmLoad
3823 gen_boilerplate: false
3824
3825 - name: WasmStore
3826 gen_boilerplate: false
3827
3828 - name: AsmJSLoadHeap
3829 gen_boilerplate: false
3830
3831 - name: AsmJSStoreHeap
3832 gen_boilerplate: false
3833
3834 - name: WasmFence
3835 guard: true
3836 alias_set: none
3837 clone: true
3838 generate_lir: true
3839
3840 - name: WasmCompareExchangeHeap
3841 gen_boilerplate: false
3842
3843 - name: WasmAtomicExchangeHeap
3844 gen_boilerplate: false
3845
3846 - name: WasmAtomicBinopHeap
3847 gen_boilerplate: false
3848
3849 - name: WasmLoadInstanceDataField
3850 gen_boilerplate: false
3851
3852 - name: WasmLoadGlobalCell
3853 gen_boilerplate: false
3854
3855 - name: WasmLoadTableElement
3856 gen_boilerplate: false
3857
3858 - name: WasmStoreInstanceDataField
3859 gen_boilerplate: false
3860
3861 - name: WasmStoreGlobalCell
3862 gen_boilerplate: false
3863
3864 - name: WasmStoreStackResult
3865 gen_boilerplate: false
3866
3867 - name: WasmDerivedPointer
3868 gen_boilerplate: false
3869
3870 - name: WasmDerivedIndexPointer
3871 gen_boilerplate: false
3872
3873 - name: WasmStoreRef
3874 gen_boilerplate: false
3875
3876 - name: WasmPostWriteBarrierWholeCell
3877 gen_boilerplate: false
3878
3879 - name: WasmPostWriteBarrierEdgeAtIndex
3880 gen_boilerplate: false
3881
3882 - name: WasmParameter
3883 gen_boilerplate: false
3884
3885 - name: WasmReturn
3886 gen_boilerplate: false
3887
3888 - name: WasmReturnVoid
3889 gen_boilerplate: false
3890
3891 - name: WasmStackArg
3892 gen_boilerplate: false
3893
3894 - name: WasmRegisterResult
3895 gen_boilerplate: false
3896
3897 - name: WasmFloatRegisterResult
3898 gen_boilerplate: false
3899
3900 - name: WasmRegister64Result
3901 gen_boilerplate: false
3902
3903 - name: WasmStackResultArea
3904 gen_boilerplate: false
3905
3906 - name: WasmStackResult
3907 gen_boilerplate: false
3908
3909 - name: WasmCallCatchable
3910 gen_boilerplate: false
3911
3912 - name: WasmCallUncatchable
3913 gen_boilerplate: false
3914
3915 - name: WasmCallLandingPrePad
3916 gen_boilerplate: false
3917 generate_lir: true
3918
3919 - name: WasmReturnCall
3920 gen_boilerplate: false
3921
3922 - name: WasmSelect
3923 gen_boilerplate: false
3924
3925 - name: ReinterpretCast
3926 gen_boilerplate: false
3927
3928 - name: Rotate
3929 gen_boilerplate: false
3930
3931 - name: WasmStackSwitchToMain
3932 operands:
3933 suspender: Object
3934 fn: Object
3935 data: WasmAnyRef
3936 result_type: WasmAnyRef
3937 type_policy: none
3938
3939 - name: WasmStackSwitchToSuspendable
3940 operands:
3941 suspender: Object
3942 fn: Object
3943 data: WasmAnyRef
3944 type_policy: none
3945
3946 - name: WasmStackContinueOnSuspendable
3947 operands:
3948 suspender: Object
3949 result: WasmAnyRef
3950 type_policy: none
3951
3952 - name: WasmBinarySimd128
3953 gen_boilerplate: false
3954
3955 - name: WasmBinarySimd128WithConstant
3956 gen_boilerplate: false
3957
3958 # (v128, i32) -> v128 effect-free shift operations.
3959 - name: WasmShiftSimd128
3960 operands:
3961 lhs: Simd128
3962 rhs: Int32
3963 arguments:
3964 simdOp: wasm::SimdOp
3965 type_policy: none
3966 result_type: Simd128
3967 movable: true
3968 congruent_to: custom
3969 alias_set: none
3970 clone: true
3971
3972 # (v128, v128, mask) -> v128 effect-free operation.
3973 - name: WasmShuffleSimd128
3974 operands:
3975 lhs: Simd128
3976 rhs: Simd128
3977 arguments:
3978 shuffle: SimdShuffle
3979 type_policy: none
3980 result_type: Simd128
3981 movable: true
3982 congruent_to: custom
3983 alias_set: none
3984 clone: true
3985
3986 - name: WasmReplaceLaneSimd128
3987 gen_boilerplate: false
3988
3989 - name: WasmUnarySimd128
3990 operands:
3991 src: Simd128
3992 arguments:
3993 simdOp: wasm::SimdOp
3994 type_policy: none
3995 result_type: Simd128
3996 movable: true
3997 congruent_to: custom
3998 alias_set: none
3999 clone: true
4000 generate_lir: true
4001 # temp is FPR (if in use).
4002 lir_temps: 1
4003
4004 - name: WasmTernarySimd128
4005 gen_boilerplate: false
4006
4007 - name: WasmScalarToSimd128
4008 gen_boilerplate: false
4009
4010 - name: WasmReduceSimd128
4011 gen_boilerplate: false
4012
4013 - name: WasmLoadLaneSimd128
4014 gen_boilerplate: false
4015
4016 - name: WasmStoreLaneSimd128
4017 gen_boilerplate: false
4018
4019 - name: UnreachableResult
4020 gen_boilerplate: false
4021
4022 - name: IonToWasmCall
4023 gen_boilerplate: false
4024
4025 - name: WasmLoadField
4026 gen_boilerplate: false
4027
4028 - name: WasmLoadElement
4029 gen_boilerplate: false
4030
4031 - name: WasmStoreField
4032 gen_boilerplate: false
4033
4034 - name: WasmStoreFieldRef
4035 gen_boilerplate: false
4036
4037 - name: WasmStoreElement
4038 gen_boilerplate: false
4039
4040 - name: WasmStoreElementRef
4041 gen_boilerplate: false
4042
4043 - name: WasmRefAsNonNull
4044 gen_boilerplate: false
4045
4046 - name: WasmRefTestConcrete
4047 gen_boilerplate: false
4048
4049 - name: WasmRefTestAbstract
4050 gen_boilerplate: false
4051
4052 - name: WasmRefCastConcrete
4053 gen_boilerplate: false
4054
4055 - name: WasmRefCastAbstract
4056 gen_boilerplate: false
4057
4058 - name: WasmRefConvertAnyExtern
4059 gen_boilerplate: false
4060
4061 - name: WasmNewStructObject
4062 gen_boilerplate: false
4063
4064 - name: WasmNewArrayObject
4065 gen_boilerplate: false
4066
4067 #ifdef FUZZING_JS_FUZZILLI
4068 - name: FuzzilliHash
4069 gen_boilerplate: false
4070
4071 - name: FuzzilliHashStore
4072 gen_boilerplate: false
4073 #endif
4074
4075 #ifdef ENABLE_EXPLICIT_RESOURCE_MANAGEMENT
4076 - name: AddDisposableResource
4077 operands:
4078 environment: Object
4079 resource: Value
4080 method: Value
4081 needsClosure: Boolean
4082 arguments:
4083 hint: uint8_t
4084
4085 - name: TakeDisposeCapability
4086 operands:
4087 environment: Object
4088 result_type: Value
4089 generate_lir: true
4090
4091 - name: CreateSuppressedError
4092 operands:
4093 error: Value
4094 suppressed: Value
4095 result_type: Object
4096 alias_set: none
4097 #endif