| 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] LIR Opcodes |
| 6 |
# ======================= |
| 7 |
# This file defines all LIR opcodes as well as LIR opcode class |
| 8 |
# definitions. It is parsed by GenerateLIRFiles.py at build time to |
| 9 |
# create LIROpsGenerated.h. Each opcode consists of a |
| 10 |
# name and a set of attributes that are described below. Unless |
| 11 |
# marked as required, attributes are optional. |
| 12 |
# |
| 13 |
# name [required] |
| 14 |
# ==== |
| 15 |
# Opcode name. |
| 16 |
# Possible values: |
| 17 |
# - opcode string: used as the name for LIR opcode. |
| 18 |
# |
| 19 |
# gen_boilerplate |
| 20 |
# =============== |
| 21 |
# Used to decide to generate LIR boilerplate. |
| 22 |
# - true (default): auto generate boilerplate for this LIR opcode |
| 23 |
# - false: do not generate boilerplate for this LIR opcode |
| 24 |
# |
| 25 |
# result_type |
| 26 |
# =========== |
| 27 |
# Specifies the result type that is produced by this LIR instruction. |
| 28 |
# The result type can be any of the following: WordSized, BoxedValue, |
| 29 |
# or Int64. |
| 30 |
# - attribute not specified (default): there is no result produced |
| 31 |
# by this LIR instruction |
| 32 |
# - result type: sets result type for this LIR instruction |
| 33 |
# |
| 34 |
# successors |
| 35 |
# =========== |
| 36 |
# Specifies the list of successor blocks for control instruction LIR nodes. |
| 37 |
# Control instruction nodes inherit from LControlInstructionHelper. The |
| 38 |
# "result_type" attribute can't be used when this attribute is present. |
| 39 |
# |
| 40 |
# For example: |
| 41 |
# successors: [ifTrue, ifFalse] |
| 42 |
# |
| 43 |
# Will generate the following getters: |
| 44 |
# MBasicBlock* ifTrue() const { return getSuccessor(0); } |
| 45 |
# MBasicBlock* ifFalse() const { return getSuccessor(1); } |
| 46 |
# |
| 47 |
# operands |
| 48 |
# ======== |
| 49 |
# A list of operands to the LIR node. Each operand will be |
| 50 |
# passed into and set in the instruction's constructor. A simple getter |
| 51 |
# will also be auto generated for the operand. Each operand in the |
| 52 |
# following list is defined by its name and an type. |
| 53 |
# The type can be WordSized, BoxedValue, or Int64. |
| 54 |
# |
| 55 |
# For example: |
| 56 |
# operands: |
| 57 |
# lhs: BoxedValue |
| 58 |
# rhs: WordSized |
| 59 |
# |
| 60 |
# Will result in: |
| 61 |
# explicit LInstanceOfV(const LBoxAllocation& lhs, const LAllocation& rhs) |
| 62 |
# : LInstructionHelper(classOpcode) { |
| 63 |
# setBoxOperand(lhsIndex, lhs); |
| 64 |
# setOperand(rhsIndex, rhs); |
| 65 |
# } |
| 66 |
# const LAllocation* rhs() { return getOperand(0); } |
| 67 |
# |
| 68 |
# static const size_t lhsIndex = 0; |
| 69 |
# static const size_t rhsIndex = BOX_PIECES; |
| 70 |
# |
| 71 |
# - attribute not specified (default): no code generated |
| 72 |
# - list of operand names with their types: operand getters and setters |
| 73 |
# are generated and passed into the constructor |
| 74 |
# |
| 75 |
# arguments |
| 76 |
# ========= |
| 77 |
# A list of non-LIR node arguments to the LIR op class constructor |
| 78 |
# that are passed along with the operands. The arguments require |
| 79 |
# both a name and a full type signature for each item in the list. |
| 80 |
# |
| 81 |
# For example: |
| 82 |
# offset: size_t |
| 83 |
# type: MIRType |
| 84 |
# |
| 85 |
# For each argument a private variable declaration will be autogenerated |
| 86 |
# in the LIR op class, as well as simple accessor for that variable. The |
| 87 |
# above arguments list will result in the following declarations and |
| 88 |
# accessors: |
| 89 |
# |
| 90 |
# size_t offset_; |
| 91 |
# MIRType type_; |
| 92 |
# |
| 93 |
# size_t offset() const { return offset_; } |
| 94 |
# MIRType type() const { return type_; } |
| 95 |
# |
| 96 |
# - attribute not specified (default): no code generated |
| 97 |
# - argument list: argument names and their full type signature |
| 98 |
# |
| 99 |
# num_temps |
| 100 |
# ======== |
| 101 |
# Specifies the number of temporary virtual registers, LDefinitions, used by |
| 102 |
# this LIR op. |
| 103 |
# - attribute not specified (default): number of temps is set to 0 |
| 104 |
# - number of LDefinition temps: sets number of temps max 15 |
| 105 |
# |
| 106 |
# call_instruction |
| 107 |
# ================ |
| 108 |
# Used to define call instructions. |
| 109 |
# - attribute not specified (default): no code generated |
| 110 |
# - true: generates a call to setIsCall in the op's constructor |
| 111 |
# |
| 112 |
# mir_op |
| 113 |
# ====== |
| 114 |
# If a LIR instruction corresponds one-to-one with a particular MIR |
| 115 |
# instruction, this will generate a method that returns that MIR |
| 116 |
# instruction. |
| 117 |
# - attribute not specified (default): no code generated |
| 118 |
# - true: generates a method to return MIR instruction |
| 119 |
# - mir string: returns this specified MIR instruction |
| 120 |
# |
| 121 |
# extra_name |
| 122 |
# ========== |
| 123 |
# Add a declaration for the `extraName` method. |
| 124 |
# - attribute not specified (default): no code generated |
| 125 |
# - true: adds the `inline const char* extraName() const;` declaration |
| 126 |
# |
| 127 |
# defer_init |
| 128 |
# ========== |
| 129 |
# Control whether or not operands and temps are initialized outside the |
| 130 |
# constructor. |
| 131 |
# - attribute not specified (default): operands and temps are initialized in |
| 132 |
# the constructor. |
| 133 |
# - true: operands and temps are not initialized in the constructor, instead |
| 134 |
# setter definitions are added for manual initialization. |
| 135 |
|
| 136 |
- name: Phi |
| 137 |
gen_boilerplate: false |
| 138 |
|
| 139 |
- name: Box |
| 140 |
result_type: BoxedValue |
| 141 |
operands: |
| 142 |
payload: WordSized |
| 143 |
arguments: |
| 144 |
type: MIRType |
| 145 |
extra_name: true |
| 146 |
|
| 147 |
- name: OsiPoint |
| 148 |
gen_boilerplate: false |
| 149 |
|
| 150 |
- name: MoveGroup |
| 151 |
gen_boilerplate: false |
| 152 |
|
| 153 |
# Constant 32-bit integer. |
| 154 |
- name: Integer |
| 155 |
result_type: WordSized |
| 156 |
arguments: |
| 157 |
i32: int32_t |
| 158 |
|
| 159 |
# Constant 64-bit integer. |
| 160 |
- name: Integer64 |
| 161 |
result_type: Int64 |
| 162 |
arguments: |
| 163 |
i64: int64_t |
| 164 |
|
| 165 |
# Constant pointer. |
| 166 |
- name: Pointer |
| 167 |
result_type: WordSized |
| 168 |
arguments: |
| 169 |
gcptr: gc::Cell* |
| 170 |
|
| 171 |
# Constant double. |
| 172 |
- name: Double |
| 173 |
result_type: WordSized |
| 174 |
arguments: |
| 175 |
value: double |
| 176 |
|
| 177 |
# Constant float32. |
| 178 |
- name: Float32 |
| 179 |
result_type: WordSized |
| 180 |
arguments: |
| 181 |
value: float |
| 182 |
|
| 183 |
- name: Value |
| 184 |
gen_boilerplate: false |
| 185 |
|
| 186 |
# Formal argument for a function, returning a box. Formal arguments are |
| 187 |
# initially read from the stack. |
| 188 |
- name: Parameter |
| 189 |
result_type: BoxedValue |
| 190 |
|
| 191 |
# Jumps to the start of a basic block. |
| 192 |
- name: Goto |
| 193 |
successors: [target] |
| 194 |
|
| 195 |
- name: NewArray |
| 196 |
result_type: WordSized |
| 197 |
num_temps: 1 |
| 198 |
mir_op: true |
| 199 |
extra_name: true |
| 200 |
|
| 201 |
- name: NewIterator |
| 202 |
result_type: WordSized |
| 203 |
num_temps: 1 |
| 204 |
mir_op: true |
| 205 |
|
| 206 |
- name: NewTypedArray |
| 207 |
result_type: WordSized |
| 208 |
num_temps: 2 |
| 209 |
mir_op: true |
| 210 |
|
| 211 |
- name: BindFunction |
| 212 |
result_type: WordSized |
| 213 |
operands: |
| 214 |
target: WordSized |
| 215 |
call_instruction: true |
| 216 |
num_temps: 2 |
| 217 |
mir_op: true |
| 218 |
|
| 219 |
- name: NewObject |
| 220 |
result_type: WordSized |
| 221 |
num_temps: 1 |
| 222 |
mir_op: true |
| 223 |
extra_name: true |
| 224 |
|
| 225 |
- name: NewPlainObject |
| 226 |
result_type: WordSized |
| 227 |
num_temps: 3 |
| 228 |
mir_op: true |
| 229 |
|
| 230 |
- name: NewArrayObject |
| 231 |
result_type: WordSized |
| 232 |
num_temps: 2 |
| 233 |
mir_op: true |
| 234 |
|
| 235 |
# Allocates a new CallObject. |
| 236 |
# |
| 237 |
# This instruction generates two possible instruction sets: |
| 238 |
# (1) If the call object is extensible, this is a callVM to create the |
| 239 |
# call object. |
| 240 |
# (2) Otherwise, an inline allocation of the call object is attempted. |
| 241 |
# |
| 242 |
- name: NewCallObject |
| 243 |
result_type: WordSized |
| 244 |
num_temps: 1 |
| 245 |
mir_op: true |
| 246 |
|
| 247 |
- name: NewMapObject |
| 248 |
result_type: WordSized |
| 249 |
num_temps: 1 |
| 250 |
mir_op: true |
| 251 |
|
| 252 |
- name: NewSetObject |
| 253 |
result_type: WordSized |
| 254 |
num_temps: 1 |
| 255 |
mir_op: true |
| 256 |
|
| 257 |
- name: NewStringObject |
| 258 |
result_type: WordSized |
| 259 |
operands: |
| 260 |
input: WordSized |
| 261 |
num_temps: 1 |
| 262 |
mir_op: true |
| 263 |
|
| 264 |
- name: InitElemGetterSetter |
| 265 |
operands: |
| 266 |
object: WordSized |
| 267 |
id: BoxedValue |
| 268 |
value: WordSized |
| 269 |
call_instruction: true |
| 270 |
mir_op: true |
| 271 |
|
| 272 |
# Takes in an Object and a Value. |
| 273 |
- name: MutateProto |
| 274 |
operands: |
| 275 |
object: WordSized |
| 276 |
value: BoxedValue |
| 277 |
call_instruction: true |
| 278 |
|
| 279 |
- name: InitPropGetterSetter |
| 280 |
operands: |
| 281 |
object: WordSized |
| 282 |
value: WordSized |
| 283 |
call_instruction: true |
| 284 |
mir_op: true |
| 285 |
|
| 286 |
- name: WasmRefAsNonNull |
| 287 |
operands: |
| 288 |
ref: WordSized |
| 289 |
result_type: WordSized |
| 290 |
mir_op: true |
| 291 |
|
| 292 |
- name: WasmRefTestConcrete |
| 293 |
mir_op: true |
| 294 |
operands: |
| 295 |
ref: WordSized |
| 296 |
superSTV: WordSized |
| 297 |
result_type: WordSized |
| 298 |
num_temps: 2 |
| 299 |
|
| 300 |
- name: WasmRefTestAbstract |
| 301 |
mir_op: true |
| 302 |
operands: |
| 303 |
ref: WordSized |
| 304 |
result_type: WordSized |
| 305 |
num_temps: 1 |
| 306 |
|
| 307 |
- name: WasmRefTestConcreteAndBranch |
| 308 |
successors: [ifTrue, ifFalse] |
| 309 |
operands: |
| 310 |
ref: WordSized |
| 311 |
superSTV: WordSized |
| 312 |
arguments: |
| 313 |
sourceType: wasm::MaybeRefType |
| 314 |
destType: wasm::RefType |
| 315 |
num_temps: 2 |
| 316 |
|
| 317 |
- name: WasmRefTestAbstractAndBranch |
| 318 |
successors: [ifTrue, ifFalse] |
| 319 |
operands: |
| 320 |
ref: WordSized |
| 321 |
arguments: |
| 322 |
sourceType: wasm::MaybeRefType |
| 323 |
destType: wasm::RefType |
| 324 |
num_temps: 1 |
| 325 |
|
| 326 |
- name: WasmRefCastConcrete |
| 327 |
mir_op: true |
| 328 |
operands: |
| 329 |
ref: WordSized |
| 330 |
superSTV: WordSized |
| 331 |
result_type: WordSized |
| 332 |
num_temps: 2 |
| 333 |
|
| 334 |
- name: WasmRefCastAbstract |
| 335 |
mir_op: true |
| 336 |
operands: |
| 337 |
ref: WordSized |
| 338 |
result_type: WordSized |
| 339 |
num_temps: 1 |
| 340 |
|
| 341 |
- name: WasmNewStructObject |
| 342 |
mir_op: true |
| 343 |
operands: |
| 344 |
instance: WordSized |
| 345 |
allocSite: WordSized |
| 346 |
result_type: WordSized |
| 347 |
num_temps: 1 |
| 348 |
|
| 349 |
- name: WasmNewArrayObject |
| 350 |
mir_op: true |
| 351 |
operands: |
| 352 |
instance: WordSized |
| 353 |
numElements: WordSized |
| 354 |
allocSite: WordSized |
| 355 |
result_type: WordSized |
| 356 |
num_temps: 2 |
| 357 |
|
| 358 |
- name: ReinterpretCast |
| 359 |
operands: |
| 360 |
input: WordSized |
| 361 |
result_type: WordSized |
| 362 |
mir_op: ReinterpretCast |
| 363 |
|
| 364 |
- name: ReinterpretCastFromI64 |
| 365 |
operands: |
| 366 |
input: Int64 |
| 367 |
result_type: WordSized |
| 368 |
mir_op: ReinterpretCast |
| 369 |
|
| 370 |
- name: ReinterpretCastToI64 |
| 371 |
operands: |
| 372 |
input: WordSized |
| 373 |
result_type: Int64 |
| 374 |
mir_op: ReinterpretCast |
| 375 |
|
| 376 |
- name: Rotate |
| 377 |
result_type: WordSized |
| 378 |
operands: |
| 379 |
input: WordSized |
| 380 |
count: WordSized |
| 381 |
mir_op: true |
| 382 |
defer_init: true |
| 383 |
|
| 384 |
- name: RotateI64 |
| 385 |
result_type: Int64 |
| 386 |
operands: |
| 387 |
input: Int64 |
| 388 |
count: WordSized |
| 389 |
num_temps: 1 |
| 390 |
mir_op: Rotate |
| 391 |
defer_init: true |
| 392 |
|
| 393 |
- name: WasmStackSwitchToMain |
| 394 |
result_type: WordSized |
| 395 |
operands: |
| 396 |
suspender: WordSized |
| 397 |
fn: WordSized |
| 398 |
data: WordSized |
| 399 |
call_instruction: true |
| 400 |
|
| 401 |
- name: WasmStackSwitchToSuspendable |
| 402 |
operands: |
| 403 |
suspender: WordSized |
| 404 |
fn: WordSized |
| 405 |
data: WordSized |
| 406 |
call_instruction: true |
| 407 |
|
| 408 |
- name: WasmStackContinueOnSuspendable |
| 409 |
operands: |
| 410 |
suspender: WordSized |
| 411 |
result: WordSized |
| 412 |
call_instruction: true |
| 413 |
|
| 414 |
- name: WasmInterruptCheck |
| 415 |
operands: |
| 416 |
instance: WordSized |
| 417 |
mir_op: true |
| 418 |
|
| 419 |
- name: TypeOfV |
| 420 |
result_type: WordSized |
| 421 |
operands: |
| 422 |
input: BoxedValue |
| 423 |
num_temps: 1 |
| 424 |
mir_op: TypeOf |
| 425 |
|
| 426 |
- name: TypeOfO |
| 427 |
result_type: WordSized |
| 428 |
operands: |
| 429 |
object: WordSized |
| 430 |
mir_op: TypeOf |
| 431 |
|
| 432 |
- name: TypeOfIsNonPrimitiveV |
| 433 |
result_type: WordSized |
| 434 |
operands: |
| 435 |
input: BoxedValue |
| 436 |
num_temps: 1 |
| 437 |
mir_op: TypeOfIs |
| 438 |
|
| 439 |
- name: TypeOfIsNonPrimitiveO |
| 440 |
result_type: WordSized |
| 441 |
operands: |
| 442 |
input: WordSized |
| 443 |
mir_op: TypeOfIs |
| 444 |
|
| 445 |
- name: TypeOfIsPrimitive |
| 446 |
result_type: WordSized |
| 447 |
operands: |
| 448 |
input: BoxedValue |
| 449 |
mir_op: TypeOfIs |
| 450 |
|
| 451 |
- name: ToAsyncIter |
| 452 |
result_type: WordSized |
| 453 |
operands: |
| 454 |
iterator: WordSized |
| 455 |
nextMethod: BoxedValue |
| 456 |
call_instruction: true |
| 457 |
|
| 458 |
# Allocate a new arguments object for the frame. |
| 459 |
- name: CreateArgumentsObject |
| 460 |
result_type: WordSized |
| 461 |
operands: |
| 462 |
callObject: WordSized |
| 463 |
num_temps: 3 |
| 464 |
call_instruction: true |
| 465 |
mir_op: true |
| 466 |
|
| 467 |
- name: CreateInlinedArgumentsObject |
| 468 |
gen_boilerplate: false |
| 469 |
|
| 470 |
- name: GetInlinedArgument |
| 471 |
gen_boilerplate: false |
| 472 |
|
| 473 |
- name: GetInlinedArgumentHole |
| 474 |
gen_boilerplate: false |
| 475 |
|
| 476 |
# Guard that the given flags are not set on the arguments object. |
| 477 |
- name: GuardArgumentsObjectFlags |
| 478 |
operands: |
| 479 |
argsObject: WordSized |
| 480 |
num_temps: 1 |
| 481 |
mir_op: true |
| 482 |
|
| 483 |
- name: GuardObjectHasSameRealm |
| 484 |
operands: |
| 485 |
object: WordSized |
| 486 |
num_temps: 1 |
| 487 |
mir_op: true |
| 488 |
|
| 489 |
- name: GuardBoundFunctionIsConstructor |
| 490 |
operands: |
| 491 |
object: WordSized |
| 492 |
|
| 493 |
- name: BoxNonStrictThis |
| 494 |
result_type: WordSized |
| 495 |
operands: |
| 496 |
value: BoxedValue |
| 497 |
mir_op: true |
| 498 |
|
| 499 |
# Writes a typed argument for a function call to the frame's argument vector. |
| 500 |
- name: StackArgT |
| 501 |
operands: |
| 502 |
arg: WordSized |
| 503 |
arguments: |
| 504 |
# Index into frame-scope argument vector. |
| 505 |
argslot: uint32_t |
| 506 |
type: MIRType |
| 507 |
|
| 508 |
# Writes a typed argument for a function call to the frame's argument vector. |
| 509 |
- name: StackArgV |
| 510 |
operands: |
| 511 |
value: BoxedValue |
| 512 |
arguments: |
| 513 |
# Index into frame-scope argument vector. |
| 514 |
argslot: uint32_t |
| 515 |
|
| 516 |
- name: CallGeneric |
| 517 |
gen_boilerplate: false |
| 518 |
|
| 519 |
- name: CallKnown |
| 520 |
gen_boilerplate: false |
| 521 |
|
| 522 |
- name: CallNative |
| 523 |
gen_boilerplate: false |
| 524 |
|
| 525 |
- name: CallDOMNative |
| 526 |
gen_boilerplate: false |
| 527 |
|
| 528 |
- name: CallClassHook |
| 529 |
gen_boilerplate: false |
| 530 |
|
| 531 |
- name: Unreachable |
| 532 |
successors: [] |
| 533 |
|
| 534 |
- name: UnreachableResultV |
| 535 |
result_type: BoxedValue |
| 536 |
|
| 537 |
- name: UnreachableResultT |
| 538 |
result_type: WordSized |
| 539 |
|
| 540 |
- name: GetDOMProperty |
| 541 |
result_type: BoxedValue |
| 542 |
operands: |
| 543 |
object: WordSized |
| 544 |
num_temps: 3 |
| 545 |
call_instruction: true |
| 546 |
mir_op: true |
| 547 |
|
| 548 |
- name: GetDOMMemberV |
| 549 |
result_type: BoxedValue |
| 550 |
operands: |
| 551 |
object: WordSized |
| 552 |
mir_op: GetDOMMember |
| 553 |
|
| 554 |
- name: GetDOMMemberT |
| 555 |
result_type: WordSized |
| 556 |
operands: |
| 557 |
object: WordSized |
| 558 |
mir_op: GetDOMMember |
| 559 |
|
| 560 |
- name: SetDOMProperty |
| 561 |
operands: |
| 562 |
object: WordSized |
| 563 |
value: BoxedValue |
| 564 |
num_temps: 3 |
| 565 |
call_instruction: true |
| 566 |
mir_op: true |
| 567 |
|
| 568 |
- name: LoadDOMExpandoValueGuardGeneration |
| 569 |
result_type: BoxedValue |
| 570 |
operands: |
| 571 |
proxy: WordSized |
| 572 |
mir_op: true |
| 573 |
|
| 574 |
- name: GuardDOMExpandoMissingOrGuardShape |
| 575 |
operands: |
| 576 |
input: BoxedValue |
| 577 |
num_temps: 1 |
| 578 |
mir_op: true |
| 579 |
|
| 580 |
- name: ApplyArgsGeneric |
| 581 |
gen_boilerplate: false |
| 582 |
|
| 583 |
- name: ApplyArgsObj |
| 584 |
gen_boilerplate: false |
| 585 |
|
| 586 |
- name: ApplyArrayGeneric |
| 587 |
gen_boilerplate: false |
| 588 |
|
| 589 |
- name: ConstructArgsGeneric |
| 590 |
gen_boilerplate: false |
| 591 |
|
| 592 |
- name: ConstructArrayGeneric |
| 593 |
gen_boilerplate: false |
| 594 |
|
| 595 |
- name: ApplyArgsNative |
| 596 |
gen_boilerplate: false |
| 597 |
|
| 598 |
- name: ApplyArgsObjNative |
| 599 |
gen_boilerplate: false |
| 600 |
|
| 601 |
- name: ApplyArrayNative |
| 602 |
gen_boilerplate: false |
| 603 |
|
| 604 |
- name: ConstructArgsNative |
| 605 |
gen_boilerplate: false |
| 606 |
|
| 607 |
- name: ConstructArrayNative |
| 608 |
gen_boilerplate: false |
| 609 |
|
| 610 |
# Takes in either an integer or boolean input and tests it for truthiness. |
| 611 |
- name: TestIAndBranch |
| 612 |
successors: [ifTrue, ifFalse] |
| 613 |
operands: |
| 614 |
input: WordSized |
| 615 |
|
| 616 |
# Takes in intptr input and tests it for truthiness. |
| 617 |
- name: TestIPtrAndBranch |
| 618 |
successors: [ifTrue, ifFalse] |
| 619 |
operands: |
| 620 |
input: WordSized |
| 621 |
|
| 622 |
# Takes in an int64 input and tests it for truthiness. |
| 623 |
- name: TestI64AndBranch |
| 624 |
successors: [ifTrue, ifFalse] |
| 625 |
operands: |
| 626 |
input: Int64 |
| 627 |
|
| 628 |
# Takes in a double input and tests it for truthiness. |
| 629 |
- name: TestDAndBranch |
| 630 |
successors: [ifTrue, ifFalse] |
| 631 |
operands: |
| 632 |
input: WordSized |
| 633 |
|
| 634 |
# Takes in a float32 input and tests it for truthiness. |
| 635 |
- name: TestFAndBranch |
| 636 |
successors: [ifTrue, ifFalse] |
| 637 |
operands: |
| 638 |
input: WordSized |
| 639 |
|
| 640 |
# Takes in a bigint input and tests it for truthiness. |
| 641 |
- name: TestBIAndBranch |
| 642 |
successors: [ifTrue, ifFalse] |
| 643 |
operands: |
| 644 |
input: WordSized |
| 645 |
|
| 646 |
# Takes an object and tests it for truthiness. An object is falsy iff it |
| 647 |
# emulates |undefined|; see js::EmulatesUndefined. |
| 648 |
- name: TestOAndBranch |
| 649 |
successors: [ifTruthy, ifFalsy] |
| 650 |
operands: |
| 651 |
input: WordSized |
| 652 |
num_temps: 1 |
| 653 |
mir_op: Test |
| 654 |
|
| 655 |
# Takes in a boxed value and tests it for truthiness. |
| 656 |
- name: TestVAndBranch |
| 657 |
successors: [ifTruthy, ifFalsy] |
| 658 |
operands: |
| 659 |
input: BoxedValue |
| 660 |
num_temps: 3 |
| 661 |
mir_op: Test |
| 662 |
|
| 663 |
# Compares two integral values of the same JS type, either integer or object. |
| 664 |
# For objects, both operands are in registers. |
| 665 |
- name: Compare |
| 666 |
result_type: WordSized |
| 667 |
operands: |
| 668 |
left: WordSized |
| 669 |
right: WordSized |
| 670 |
arguments: |
| 671 |
jsop: JSOp |
| 672 |
mir_op: true |
| 673 |
extra_name: true |
| 674 |
|
| 675 |
- name: CompareI64 |
| 676 |
result_type: WordSized |
| 677 |
operands: |
| 678 |
left: Int64 |
| 679 |
right: Int64 |
| 680 |
arguments: |
| 681 |
jsop: JSOp |
| 682 |
mir_op: Compare |
| 683 |
extra_name: true |
| 684 |
|
| 685 |
- name: CompareI64AndBranch |
| 686 |
successors: [ifTrue, ifFalse] |
| 687 |
operands: |
| 688 |
left: Int64 |
| 689 |
right: Int64 |
| 690 |
arguments: |
| 691 |
cmpMir: MCompare* |
| 692 |
jsop: JSOp |
| 693 |
mir_op: Test |
| 694 |
extra_name: true |
| 695 |
|
| 696 |
# Compares two integral values of the same JS type, either integer or object. |
| 697 |
# For objects, both operands are in registers. |
| 698 |
- name: CompareAndBranch |
| 699 |
successors: [ifTrue, ifFalse] |
| 700 |
operands: |
| 701 |
left: WordSized |
| 702 |
right: WordSized |
| 703 |
arguments: |
| 704 |
cmpMir: MCompare* |
| 705 |
jsop: JSOp |
| 706 |
mir_op: Test |
| 707 |
extra_name: true |
| 708 |
|
| 709 |
- name: CompareD |
| 710 |
result_type: WordSized |
| 711 |
operands: |
| 712 |
left: WordSized |
| 713 |
right: WordSized |
| 714 |
mir_op: Compare |
| 715 |
|
| 716 |
- name: CompareF |
| 717 |
result_type: WordSized |
| 718 |
operands: |
| 719 |
left: WordSized |
| 720 |
right: WordSized |
| 721 |
mir_op: Compare |
| 722 |
|
| 723 |
- name: CompareDAndBranch |
| 724 |
successors: [ifTrue, ifFalse] |
| 725 |
operands: |
| 726 |
left: WordSized |
| 727 |
right: WordSized |
| 728 |
arguments: |
| 729 |
cmpMir: MCompare* |
| 730 |
|
| 731 |
- name: CompareFAndBranch |
| 732 |
successors: [ifTrue, ifFalse] |
| 733 |
operands: |
| 734 |
left: WordSized |
| 735 |
right: WordSized |
| 736 |
arguments: |
| 737 |
cmpMir: MCompare* |
| 738 |
|
| 739 |
- name: CompareS |
| 740 |
result_type: WordSized |
| 741 |
operands: |
| 742 |
left: WordSized |
| 743 |
right: WordSized |
| 744 |
mir_op: Compare |
| 745 |
|
| 746 |
- name: CompareSInline |
| 747 |
result_type: WordSized |
| 748 |
operands: |
| 749 |
input: WordSized |
| 750 |
arguments: |
| 751 |
constant: JSLinearString* |
| 752 |
mir_op: Compare |
| 753 |
|
| 754 |
- name: CompareSSingle |
| 755 |
result_type: WordSized |
| 756 |
operands: |
| 757 |
input: WordSized |
| 758 |
arguments: |
| 759 |
jsop: JSOp |
| 760 |
constant: JSLinearString* |
| 761 |
num_temps: 1 |
| 762 |
mir_op: Compare |
| 763 |
|
| 764 |
- name: CompareBigInt |
| 765 |
result_type: WordSized |
| 766 |
operands: |
| 767 |
left: WordSized |
| 768 |
right: WordSized |
| 769 |
num_temps: 3 |
| 770 |
mir_op: Compare |
| 771 |
|
| 772 |
- name: CompareBigIntInt32 |
| 773 |
result_type: WordSized |
| 774 |
operands: |
| 775 |
left: WordSized |
| 776 |
right: WordSized |
| 777 |
num_temps: 2 |
| 778 |
mir_op: Compare |
| 779 |
|
| 780 |
- name: CompareBigIntDouble |
| 781 |
result_type: WordSized |
| 782 |
operands: |
| 783 |
left: WordSized |
| 784 |
right: WordSized |
| 785 |
call_instruction: true |
| 786 |
mir_op: Compare |
| 787 |
|
| 788 |
- name: CompareBigIntString |
| 789 |
result_type: WordSized |
| 790 |
operands: |
| 791 |
left: WordSized |
| 792 |
right: WordSized |
| 793 |
call_instruction: true |
| 794 |
mir_op: Compare |
| 795 |
|
| 796 |
- name: CompareBigIntInt32AndBranch |
| 797 |
successors: [ifTrue, ifFalse] |
| 798 |
operands: |
| 799 |
left: WordSized |
| 800 |
right: WordSized |
| 801 |
arguments: |
| 802 |
cmpMir: MCompare* |
| 803 |
num_temps: 2 |
| 804 |
|
| 805 |
- name: BitAndAndBranch |
| 806 |
successors: [ifTrue, ifFalse] |
| 807 |
operands: |
| 808 |
left: WordSized |
| 809 |
right: WordSized |
| 810 |
arguments: |
| 811 |
cond: Assembler::Condition |
| 812 |
|
| 813 |
- name: BitAnd64AndBranch |
| 814 |
successors: [ifTrue, ifFalse] |
| 815 |
operands: |
| 816 |
left: Int64 |
| 817 |
right: Int64 |
| 818 |
arguments: |
| 819 |
cond: Assembler::Condition |
| 820 |
|
| 821 |
# Takes a value and tests whether it is null, undefined, or is an object that |
| 822 |
# emulates |undefined|, as determined by the JSCLASS_EMULATES_UNDEFINED class |
| 823 |
# flag on unwrapped objects. See also js::EmulatesUndefined. |
| 824 |
- name: IsNullOrLikeUndefinedV |
| 825 |
result_type: WordSized |
| 826 |
operands: |
| 827 |
value: BoxedValue |
| 828 |
num_temps: 1 |
| 829 |
mir_op: Compare |
| 830 |
|
| 831 |
# Takes an object pointer and tests whether it is an object that emulates |
| 832 |
# |undefined|, as above. |
| 833 |
- name: IsNullOrLikeUndefinedT |
| 834 |
result_type: WordSized |
| 835 |
operands: |
| 836 |
input: WordSized |
| 837 |
mir_op: Compare |
| 838 |
|
| 839 |
# Takes a value and tests whether it is null. |
| 840 |
- name: IsNull |
| 841 |
result_type: WordSized |
| 842 |
operands: |
| 843 |
value: BoxedValue |
| 844 |
mir_op: Compare |
| 845 |
|
| 846 |
# Takes a value and tests whether it is undefined. |
| 847 |
- name: IsUndefined |
| 848 |
result_type: WordSized |
| 849 |
operands: |
| 850 |
value: BoxedValue |
| 851 |
mir_op: Compare |
| 852 |
|
| 853 |
- name: IsNullOrLikeUndefinedAndBranchV |
| 854 |
successors: [ifTrue, ifFalse] |
| 855 |
operands: |
| 856 |
value: BoxedValue |
| 857 |
arguments: |
| 858 |
cmpMir: MCompare* |
| 859 |
num_temps: 2 |
| 860 |
mir_op: Test |
| 861 |
|
| 862 |
- name: IsNullOrLikeUndefinedAndBranchT |
| 863 |
successors: [ifTrue, ifFalse] |
| 864 |
operands: |
| 865 |
value: WordSized |
| 866 |
arguments: |
| 867 |
cmpMir: MCompare* |
| 868 |
num_temps: 1 |
| 869 |
mir_op: Test |
| 870 |
|
| 871 |
- name: IsNullAndBranch |
| 872 |
successors: [ifTrue, ifFalse] |
| 873 |
operands: |
| 874 |
value: BoxedValue |
| 875 |
arguments: |
| 876 |
cmpMir: MCompare* |
| 877 |
|
| 878 |
- name: IsUndefinedAndBranch |
| 879 |
successors: [ifTrue, ifFalse] |
| 880 |
operands: |
| 881 |
value: BoxedValue |
| 882 |
arguments: |
| 883 |
cmpMir: MCompare* |
| 884 |
|
| 885 |
# Not operation on an integer. |
| 886 |
- name: NotI |
| 887 |
result_type: WordSized |
| 888 |
operands: |
| 889 |
input: WordSized |
| 890 |
|
| 891 |
# Not operation on an intptr. |
| 892 |
- name: NotIPtr |
| 893 |
result_type: WordSized |
| 894 |
operands: |
| 895 |
input: WordSized |
| 896 |
|
| 897 |
# Not operation on an int64. |
| 898 |
- name: NotI64 |
| 899 |
result_type: WordSized |
| 900 |
operands: |
| 901 |
inputI64: Int64 |
| 902 |
|
| 903 |
# Not operation on a double. |
| 904 |
- name: NotD |
| 905 |
result_type: WordSized |
| 906 |
operands: |
| 907 |
input: WordSized |
| 908 |
mir_op: Not |
| 909 |
|
| 910 |
# Not operation on a float32. |
| 911 |
- name: NotF |
| 912 |
result_type: WordSized |
| 913 |
operands: |
| 914 |
input: WordSized |
| 915 |
mir_op: Not |
| 916 |
|
| 917 |
# Not operation on a BigInt. |
| 918 |
- name: NotBI |
| 919 |
result_type: WordSized |
| 920 |
operands: |
| 921 |
input: WordSized |
| 922 |
mir_op: Not |
| 923 |
|
| 924 |
# Boolean complement operation on an object. |
| 925 |
- name: NotO |
| 926 |
result_type: WordSized |
| 927 |
operands: |
| 928 |
input: WordSized |
| 929 |
mir_op: Not |
| 930 |
|
| 931 |
# Boolean complement operation on a value. |
| 932 |
- name: NotV |
| 933 |
result_type: WordSized |
| 934 |
operands: |
| 935 |
input: BoxedValue |
| 936 |
num_temps: 2 |
| 937 |
mir_op: Not |
| 938 |
|
| 939 |
# Bitwise not operation, takes a 32-bit integer as input and returning |
| 940 |
# a 32-bit integer result as an output. |
| 941 |
- name: BitNotI |
| 942 |
result_type: WordSized |
| 943 |
operands: |
| 944 |
input: WordSized |
| 945 |
defer_init: true |
| 946 |
|
| 947 |
- name: BitNotI64 |
| 948 |
result_type: Int64 |
| 949 |
operands: |
| 950 |
input: Int64 |
| 951 |
defer_init: true |
| 952 |
|
| 953 |
# Binary bitwise operation, taking two 32-bit integers as inputs and returning |
| 954 |
# a 32-bit integer result as an output. |
| 955 |
- name: BitOpI |
| 956 |
result_type: WordSized |
| 957 |
operands: |
| 958 |
lhs: WordSized |
| 959 |
rhs: WordSized |
| 960 |
arguments: |
| 961 |
bitop: JSOp |
| 962 |
extra_name: true |
| 963 |
defer_init: true |
| 964 |
|
| 965 |
- name: BitOpI64 |
| 966 |
result_type: Int64 |
| 967 |
operands: |
| 968 |
lhs: Int64 |
| 969 |
rhs: Int64 |
| 970 |
arguments: |
| 971 |
bitop: JSOp |
| 972 |
extra_name: true |
| 973 |
defer_init: true |
| 974 |
|
| 975 |
# Shift operation, taking two 32-bit integers as inputs and returning |
| 976 |
# a 32-bit integer result as an output. |
| 977 |
- name: ShiftI |
| 978 |
result_type: WordSized |
| 979 |
operands: |
| 980 |
lhs: WordSized |
| 981 |
rhs: WordSized |
| 982 |
arguments: |
| 983 |
bitop: JSOp |
| 984 |
mir_op: Instruction |
| 985 |
extra_name: true |
| 986 |
defer_init: true |
| 987 |
|
| 988 |
- name: ShiftI64 |
| 989 |
result_type: Int64 |
| 990 |
operands: |
| 991 |
lhs: Int64 |
| 992 |
rhs: WordSized |
| 993 |
arguments: |
| 994 |
bitop: JSOp |
| 995 |
mir_op: Instruction |
| 996 |
extra_name: true |
| 997 |
defer_init: true |
| 998 |
|
| 999 |
- name: SignExtendInt32 |
| 1000 |
result_type: WordSized |
| 1001 |
operands: |
| 1002 |
input: WordSized |
| 1003 |
mir_op: true |
| 1004 |
|
| 1005 |
- name: SignExtendIntPtr |
| 1006 |
result_type: WordSized |
| 1007 |
operands: |
| 1008 |
input: WordSized |
| 1009 |
mir_op: true |
| 1010 |
|
| 1011 |
- name: SignExtendInt64 |
| 1012 |
result_type: Int64 |
| 1013 |
operands: |
| 1014 |
input: Int64 |
| 1015 |
mir_op: true |
| 1016 |
|
| 1017 |
- name: UrshD |
| 1018 |
result_type: WordSized |
| 1019 |
operands: |
| 1020 |
lhs: WordSized |
| 1021 |
rhs: WordSized |
| 1022 |
num_temps: 1 |
| 1023 |
|
| 1024 |
- name: Return |
| 1025 |
gen_boilerplate: false |
| 1026 |
|
| 1027 |
- name: MinMaxI |
| 1028 |
result_type: WordSized |
| 1029 |
operands: |
| 1030 |
first: WordSized |
| 1031 |
second: WordSized |
| 1032 |
mir_op: MinMax |
| 1033 |
extra_name: true |
| 1034 |
|
| 1035 |
- name: MinMaxD |
| 1036 |
result_type: WordSized |
| 1037 |
operands: |
| 1038 |
first: WordSized |
| 1039 |
second: WordSized |
| 1040 |
mir_op: MinMax |
| 1041 |
extra_name: true |
| 1042 |
|
| 1043 |
- name: MinMaxF |
| 1044 |
result_type: WordSized |
| 1045 |
operands: |
| 1046 |
first: WordSized |
| 1047 |
second: WordSized |
| 1048 |
mir_op: MinMax |
| 1049 |
extra_name: true |
| 1050 |
|
| 1051 |
- name: MinMaxArrayI |
| 1052 |
result_type: WordSized |
| 1053 |
operands: |
| 1054 |
array: WordSized |
| 1055 |
num_temps: 3 |
| 1056 |
mir_op: MinMaxArray |
| 1057 |
|
| 1058 |
- name: MinMaxArrayD |
| 1059 |
result_type: WordSized |
| 1060 |
operands: |
| 1061 |
array: WordSized |
| 1062 |
num_temps: 3 |
| 1063 |
mir_op: MinMaxArray |
| 1064 |
|
| 1065 |
# Negative of integer |
| 1066 |
- name: NegI |
| 1067 |
result_type: WordSized |
| 1068 |
operands: |
| 1069 |
input: WordSized |
| 1070 |
|
| 1071 |
# Negative of an int64 |
| 1072 |
- name: NegI64 |
| 1073 |
result_type: Int64 |
| 1074 |
operands: |
| 1075 |
input: Int64 |
| 1076 |
|
| 1077 |
# Negative of double |
| 1078 |
- name: NegD |
| 1079 |
result_type: WordSized |
| 1080 |
operands: |
| 1081 |
input: WordSized |
| 1082 |
|
| 1083 |
# Negative of float32 |
| 1084 |
- name: NegF |
| 1085 |
result_type: WordSized |
| 1086 |
operands: |
| 1087 |
input: WordSized |
| 1088 |
|
| 1089 |
# Absolute value of an integer. |
| 1090 |
- name: AbsI |
| 1091 |
result_type: WordSized |
| 1092 |
operands: |
| 1093 |
input: WordSized |
| 1094 |
mir_op: Abs |
| 1095 |
|
| 1096 |
# Absolute value of a double. |
| 1097 |
- name: AbsD |
| 1098 |
result_type: WordSized |
| 1099 |
operands: |
| 1100 |
input: WordSized |
| 1101 |
|
| 1102 |
# Absolute value of a float32. |
| 1103 |
- name: AbsF |
| 1104 |
result_type: WordSized |
| 1105 |
operands: |
| 1106 |
input: WordSized |
| 1107 |
|
| 1108 |
# Copysign for doubles. |
| 1109 |
- name: CopySignD |
| 1110 |
result_type: WordSized |
| 1111 |
operands: |
| 1112 |
lhs: WordSized |
| 1113 |
rhs: WordSized |
| 1114 |
num_temps: 2 |
| 1115 |
defer_init: true |
| 1116 |
|
| 1117 |
# Copysign for float32. |
| 1118 |
- name: CopySignF |
| 1119 |
result_type: WordSized |
| 1120 |
operands: |
| 1121 |
lhs: WordSized |
| 1122 |
rhs: WordSized |
| 1123 |
num_temps: 2 |
| 1124 |
defer_init: true |
| 1125 |
|
| 1126 |
# Count leading zeroes on an int32. |
| 1127 |
- name: ClzI |
| 1128 |
result_type: WordSized |
| 1129 |
operands: |
| 1130 |
input: WordSized |
| 1131 |
mir_op: Clz |
| 1132 |
|
| 1133 |
# Count leading zeroes on an int64. |
| 1134 |
- name: ClzI64 |
| 1135 |
result_type: Int64 |
| 1136 |
operands: |
| 1137 |
input: Int64 |
| 1138 |
mir_op: Clz |
| 1139 |
|
| 1140 |
# Count trailing zeroes on an int32. |
| 1141 |
- name: CtzI |
| 1142 |
result_type: WordSized |
| 1143 |
operands: |
| 1144 |
input: WordSized |
| 1145 |
mir_op: Ctz |
| 1146 |
|
| 1147 |
# Count trailing zeroes on an int64. |
| 1148 |
- name: CtzI64 |
| 1149 |
result_type: Int64 |
| 1150 |
operands: |
| 1151 |
input: Int64 |
| 1152 |
mir_op: Ctz |
| 1153 |
|
| 1154 |
# Count population on an int32. |
| 1155 |
- name: PopcntI |
| 1156 |
result_type: WordSized |
| 1157 |
operands: |
| 1158 |
input: WordSized |
| 1159 |
num_temps: 1 |
| 1160 |
mir_op: Popcnt |
| 1161 |
|
| 1162 |
# Count population on an int64. |
| 1163 |
- name: PopcntI64 |
| 1164 |
result_type: Int64 |
| 1165 |
operands: |
| 1166 |
input: Int64 |
| 1167 |
num_temps: 1 |
| 1168 |
mir_op: Popcnt |
| 1169 |
|
| 1170 |
- name: SqrtD |
| 1171 |
result_type: WordSized |
| 1172 |
operands: |
| 1173 |
input: WordSized |
| 1174 |
|
| 1175 |
- name: SqrtF |
| 1176 |
result_type: WordSized |
| 1177 |
operands: |
| 1178 |
input: WordSized |
| 1179 |
|
| 1180 |
- name: Atan2D |
| 1181 |
result_type: WordSized |
| 1182 |
operands: |
| 1183 |
y: WordSized |
| 1184 |
x: WordSized |
| 1185 |
call_instruction: true |
| 1186 |
|
| 1187 |
- name: Hypot |
| 1188 |
gen_boilerplate: false |
| 1189 |
|
| 1190 |
# Double raised to an integer power. |
| 1191 |
- name: PowI |
| 1192 |
result_type: WordSized |
| 1193 |
operands: |
| 1194 |
value: WordSized |
| 1195 |
power: WordSized |
| 1196 |
call_instruction: true |
| 1197 |
|
| 1198 |
# Integer raised to an integer power. |
| 1199 |
- name: PowII |
| 1200 |
result_type: WordSized |
| 1201 |
operands: |
| 1202 |
value: WordSized |
| 1203 |
power: WordSized |
| 1204 |
num_temps: 2 |
| 1205 |
mir_op: Pow |
| 1206 |
|
| 1207 |
# Double raised to a double power. |
| 1208 |
- name: PowD |
| 1209 |
result_type: WordSized |
| 1210 |
operands: |
| 1211 |
value: WordSized |
| 1212 |
power: WordSized |
| 1213 |
call_instruction: true |
| 1214 |
|
| 1215 |
# Constant of a power of two raised to an integer power. |
| 1216 |
- name: PowOfTwoI |
| 1217 |
result_type: WordSized |
| 1218 |
operands: |
| 1219 |
power: WordSized |
| 1220 |
arguments: |
| 1221 |
base: uint32_t |
| 1222 |
|
| 1223 |
# Sign value of an integer. |
| 1224 |
- name: SignI |
| 1225 |
result_type: WordSized |
| 1226 |
operands: |
| 1227 |
input: WordSized |
| 1228 |
|
| 1229 |
# Sign value of an integer. |
| 1230 |
- name: SignD |
| 1231 |
result_type: WordSized |
| 1232 |
operands: |
| 1233 |
input: WordSized |
| 1234 |
|
| 1235 |
# Sign value of a double with expected int32 result. |
| 1236 |
- name: SignDI |
| 1237 |
result_type: WordSized |
| 1238 |
operands: |
| 1239 |
input: WordSized |
| 1240 |
num_temps: 1 |
| 1241 |
|
| 1242 |
# Sign value of a int32 with expected double result. |
| 1243 |
- name: SignID |
| 1244 |
result_type: WordSized |
| 1245 |
operands: |
| 1246 |
input: WordSized |
| 1247 |
num_temps: 1 |
| 1248 |
|
| 1249 |
- name: MathFunctionD |
| 1250 |
result_type: WordSized |
| 1251 |
operands: |
| 1252 |
input: WordSized |
| 1253 |
call_instruction: true |
| 1254 |
mir_op: MathFunction |
| 1255 |
extra_name: true |
| 1256 |
|
| 1257 |
- name: MathFunctionF |
| 1258 |
result_type: WordSized |
| 1259 |
operands: |
| 1260 |
input: WordSized |
| 1261 |
call_instruction: true |
| 1262 |
mir_op: MathFunction |
| 1263 |
extra_name: true |
| 1264 |
|
| 1265 |
- name: AddI |
| 1266 |
gen_boilerplate: false |
| 1267 |
|
| 1268 |
- name: AddI64 |
| 1269 |
result_type: Int64 |
| 1270 |
operands: |
| 1271 |
lhs: Int64 |
| 1272 |
rhs: Int64 |
| 1273 |
defer_init: true |
| 1274 |
|
| 1275 |
- name: SubI |
| 1276 |
gen_boilerplate: false |
| 1277 |
|
| 1278 |
- name: SubI64 |
| 1279 |
result_type: Int64 |
| 1280 |
operands: |
| 1281 |
lhs: Int64 |
| 1282 |
rhs: Int64 |
| 1283 |
defer_init: true |
| 1284 |
|
| 1285 |
- name: MulI64 |
| 1286 |
result_type: Int64 |
| 1287 |
operands: |
| 1288 |
lhs: Int64 |
| 1289 |
rhs: Int64 |
| 1290 |
num_temps: 1 |
| 1291 |
defer_init: true |
| 1292 |
|
| 1293 |
# Performs an add, sub, mul, or div on two double values. |
| 1294 |
- name: MathD |
| 1295 |
result_type: WordSized |
| 1296 |
operands: |
| 1297 |
lhs: WordSized |
| 1298 |
rhs: WordSized |
| 1299 |
arguments: |
| 1300 |
jsop: JSOp |
| 1301 |
extra_name: true |
| 1302 |
defer_init: true |
| 1303 |
|
| 1304 |
# Performs an add, sub, mul, or div on two float values. |
| 1305 |
- name: MathF |
| 1306 |
result_type: WordSized |
| 1307 |
operands: |
| 1308 |
lhs: WordSized |
| 1309 |
rhs: WordSized |
| 1310 |
arguments: |
| 1311 |
jsop: JSOp |
| 1312 |
extra_name: true |
| 1313 |
defer_init: true |
| 1314 |
|
| 1315 |
- name: ModD |
| 1316 |
result_type: WordSized |
| 1317 |
operands: |
| 1318 |
lhs: WordSized |
| 1319 |
rhs: WordSized |
| 1320 |
call_instruction: true |
| 1321 |
mir_op: Mod |
| 1322 |
|
| 1323 |
- name: ModPowTwoD |
| 1324 |
result_type: WordSized |
| 1325 |
operands: |
| 1326 |
lhs: WordSized |
| 1327 |
arguments: |
| 1328 |
divisor: uint32_t |
| 1329 |
mir_op: Mod |
| 1330 |
|
| 1331 |
- name: WasmBuiltinModD |
| 1332 |
result_type: WordSized |
| 1333 |
operands: |
| 1334 |
lhs: WordSized |
| 1335 |
rhs: WordSized |
| 1336 |
instance: WordSized |
| 1337 |
call_instruction: true |
| 1338 |
mir_op: true |
| 1339 |
|
| 1340 |
- name: BigIntAdd |
| 1341 |
result_type: WordSized |
| 1342 |
operands: |
| 1343 |
lhs: WordSized |
| 1344 |
rhs: WordSized |
| 1345 |
call_instruction: true |
| 1346 |
mir_op: true |
| 1347 |
|
| 1348 |
- name: BigIntSub |
| 1349 |
result_type: WordSized |
| 1350 |
operands: |
| 1351 |
lhs: WordSized |
| 1352 |
rhs: WordSized |
| 1353 |
call_instruction: true |
| 1354 |
mir_op: true |
| 1355 |
|
| 1356 |
- name: BigIntMul |
| 1357 |
result_type: WordSized |
| 1358 |
operands: |
| 1359 |
lhs: WordSized |
| 1360 |
rhs: WordSized |
| 1361 |
call_instruction: true |
| 1362 |
mir_op: true |
| 1363 |
|
| 1364 |
- name: BigIntDiv |
| 1365 |
result_type: WordSized |
| 1366 |
operands: |
| 1367 |
lhs: WordSized |
| 1368 |
rhs: WordSized |
| 1369 |
call_instruction: true |
| 1370 |
mir_op: true |
| 1371 |
|
| 1372 |
- name: BigIntMod |
| 1373 |
result_type: WordSized |
| 1374 |
operands: |
| 1375 |
lhs: WordSized |
| 1376 |
rhs: WordSized |
| 1377 |
call_instruction: true |
| 1378 |
mir_op: true |
| 1379 |
|
| 1380 |
- name: BigIntPow |
| 1381 |
result_type: WordSized |
| 1382 |
operands: |
| 1383 |
lhs: WordSized |
| 1384 |
rhs: WordSized |
| 1385 |
call_instruction: true |
| 1386 |
mir_op: true |
| 1387 |
|
| 1388 |
- name: BigIntBitAnd |
| 1389 |
result_type: WordSized |
| 1390 |
operands: |
| 1391 |
lhs: WordSized |
| 1392 |
rhs: WordSized |
| 1393 |
call_instruction: true |
| 1394 |
mir_op: true |
| 1395 |
|
| 1396 |
- name: BigIntBitOr |
| 1397 |
result_type: WordSized |
| 1398 |
operands: |
| 1399 |
lhs: WordSized |
| 1400 |
rhs: WordSized |
| 1401 |
call_instruction: true |
| 1402 |
mir_op: true |
| 1403 |
|
| 1404 |
- name: BigIntBitXor |
| 1405 |
result_type: WordSized |
| 1406 |
operands: |
| 1407 |
lhs: WordSized |
| 1408 |
rhs: WordSized |
| 1409 |
call_instruction: true |
| 1410 |
mir_op: true |
| 1411 |
|
| 1412 |
- name: BigIntLsh |
| 1413 |
result_type: WordSized |
| 1414 |
operands: |
| 1415 |
lhs: WordSized |
| 1416 |
rhs: WordSized |
| 1417 |
call_instruction: true |
| 1418 |
mir_op: true |
| 1419 |
|
| 1420 |
- name: BigIntRsh |
| 1421 |
result_type: WordSized |
| 1422 |
operands: |
| 1423 |
lhs: WordSized |
| 1424 |
rhs: WordSized |
| 1425 |
call_instruction: true |
| 1426 |
mir_op: true |
| 1427 |
|
| 1428 |
- name: BigIntIncrement |
| 1429 |
result_type: WordSized |
| 1430 |
operands: |
| 1431 |
input: WordSized |
| 1432 |
call_instruction: true |
| 1433 |
mir_op: true |
| 1434 |
|
| 1435 |
- name: BigIntDecrement |
| 1436 |
result_type: WordSized |
| 1437 |
operands: |
| 1438 |
input: WordSized |
| 1439 |
call_instruction: true |
| 1440 |
mir_op: true |
| 1441 |
|
| 1442 |
- name: BigIntNegate |
| 1443 |
result_type: WordSized |
| 1444 |
operands: |
| 1445 |
input: WordSized |
| 1446 |
num_temps: 1 |
| 1447 |
mir_op: true |
| 1448 |
|
| 1449 |
- name: BigIntBitNot |
| 1450 |
result_type: WordSized |
| 1451 |
operands: |
| 1452 |
input: WordSized |
| 1453 |
call_instruction: true |
| 1454 |
mir_op: true |
| 1455 |
|
| 1456 |
- name: BigIntPtrAdd |
| 1457 |
result_type: WordSized |
| 1458 |
operands: |
| 1459 |
lhs: WordSized |
| 1460 |
rhs: WordSized |
| 1461 |
mir_op: true |
| 1462 |
|
| 1463 |
- name: BigIntPtrSub |
| 1464 |
result_type: WordSized |
| 1465 |
operands: |
| 1466 |
lhs: WordSized |
| 1467 |
rhs: WordSized |
| 1468 |
mir_op: true |
| 1469 |
|
| 1470 |
- name: BigIntPtrMul |
| 1471 |
result_type: WordSized |
| 1472 |
operands: |
| 1473 |
lhs: WordSized |
| 1474 |
rhs: WordSized |
| 1475 |
mir_op: true |
| 1476 |
|
| 1477 |
- name: BigIntPtrDiv |
| 1478 |
result_type: WordSized |
| 1479 |
operands: |
| 1480 |
lhs: WordSized |
| 1481 |
rhs: WordSized |
| 1482 |
num_temps: 2 |
| 1483 |
mir_op: true |
| 1484 |
|
| 1485 |
- name: BigIntPtrDivPowTwo |
| 1486 |
result_type: WordSized |
| 1487 |
operands: |
| 1488 |
lhs: WordSized |
| 1489 |
arguments: |
| 1490 |
shift: int32_t |
| 1491 |
negativeDivisor: bool |
| 1492 |
|
| 1493 |
- name: BigIntPtrMod |
| 1494 |
result_type: WordSized |
| 1495 |
operands: |
| 1496 |
lhs: WordSized |
| 1497 |
rhs: WordSized |
| 1498 |
num_temps: 2 |
| 1499 |
mir_op: true |
| 1500 |
|
| 1501 |
- name: BigIntPtrModPowTwo |
| 1502 |
result_type: WordSized |
| 1503 |
operands: |
| 1504 |
lhs: WordSized |
| 1505 |
arguments: |
| 1506 |
shift: int32_t |
| 1507 |
num_temps: 1 |
| 1508 |
|
| 1509 |
- name: BigIntPtrPow |
| 1510 |
result_type: WordSized |
| 1511 |
operands: |
| 1512 |
lhs: WordSized |
| 1513 |
rhs: WordSized |
| 1514 |
num_temps: 2 |
| 1515 |
mir_op: true |
| 1516 |
|
| 1517 |
- name: BigIntPtrBitAnd |
| 1518 |
result_type: WordSized |
| 1519 |
operands: |
| 1520 |
lhs: WordSized |
| 1521 |
rhs: WordSized |
| 1522 |
mir_op: true |
| 1523 |
|
| 1524 |
- name: BigIntPtrBitOr |
| 1525 |
result_type: WordSized |
| 1526 |
operands: |
| 1527 |
lhs: WordSized |
| 1528 |
rhs: WordSized |
| 1529 |
mir_op: true |
| 1530 |
|
| 1531 |
- name: BigIntPtrBitXor |
| 1532 |
result_type: WordSized |
| 1533 |
operands: |
| 1534 |
lhs: WordSized |
| 1535 |
rhs: WordSized |
| 1536 |
mir_op: true |
| 1537 |
|
| 1538 |
- name: BigIntPtrLsh |
| 1539 |
result_type: WordSized |
| 1540 |
operands: |
| 1541 |
lhs: WordSized |
| 1542 |
rhs: WordSized |
| 1543 |
num_temps: 2 |
| 1544 |
mir_op: true |
| 1545 |
|
| 1546 |
- name: BigIntPtrRsh |
| 1547 |
result_type: WordSized |
| 1548 |
operands: |
| 1549 |
lhs: WordSized |
| 1550 |
rhs: WordSized |
| 1551 |
num_temps: 2 |
| 1552 |
mir_op: true |
| 1553 |
|
| 1554 |
- name: BigIntPtrBitNot |
| 1555 |
result_type: WordSized |
| 1556 |
operands: |
| 1557 |
input: WordSized |
| 1558 |
mir_op: true |
| 1559 |
|
| 1560 |
# Adds two string, returning a string. |
| 1561 |
- name: Concat |
| 1562 |
result_type: WordSized |
| 1563 |
operands: |
| 1564 |
lhs: WordSized |
| 1565 |
rhs: WordSized |
| 1566 |
num_temps: 5 |
| 1567 |
|
| 1568 |
# Test if a string includes the constant search string. |
| 1569 |
- name: StringIncludesSIMD |
| 1570 |
result_type: WordSized |
| 1571 |
operands: |
| 1572 |
string: WordSized |
| 1573 |
arguments: |
| 1574 |
searchString: JSLinearString* |
| 1575 |
num_temps: 3 |
| 1576 |
|
| 1577 |
# Search for the first index of the constant search string. |
| 1578 |
- name: StringIndexOfSIMD |
| 1579 |
result_type: WordSized |
| 1580 |
operands: |
| 1581 |
string: WordSized |
| 1582 |
arguments: |
| 1583 |
searchString: JSLinearString* |
| 1584 |
num_temps: 3 |
| 1585 |
|
| 1586 |
# Test if a string starts with the constant search string |
| 1587 |
- name: StringStartsWithInline |
| 1588 |
result_type: WordSized |
| 1589 |
operands: |
| 1590 |
string: WordSized |
| 1591 |
arguments: |
| 1592 |
searchString: JSLinearString* |
| 1593 |
num_temps: 1 |
| 1594 |
|
| 1595 |
# Test if a string ends with the constant search string |
| 1596 |
- name: StringEndsWithInline |
| 1597 |
result_type: WordSized |
| 1598 |
operands: |
| 1599 |
string: WordSized |
| 1600 |
arguments: |
| 1601 |
searchString: JSLinearString* |
| 1602 |
num_temps: 1 |
| 1603 |
|
| 1604 |
# Calls the ToLowerCase case conversion function. Inlines the case conversion |
| 1605 |
# when possible. |
| 1606 |
- name: StringToLowerCase |
| 1607 |
result_type: WordSized |
| 1608 |
operands: |
| 1609 |
string: WordSized |
| 1610 |
num_temps: 5 |
| 1611 |
mir_op: StringConvertCase |
| 1612 |
|
| 1613 |
# Calls the ToLowerCase case conversion function. Inlines the case conversion |
| 1614 |
# when possible. |
| 1615 |
- name: CharCodeToLowerCase |
| 1616 |
result_type: WordSized |
| 1617 |
operands: |
| 1618 |
code: WordSized |
| 1619 |
num_temps: 1 |
| 1620 |
mir_op: CharCodeConvertCase |
| 1621 |
|
| 1622 |
# Calls the ToUpperCase case conversion function. |
| 1623 |
- name: StringToUpperCase |
| 1624 |
result_type: WordSized |
| 1625 |
operands: |
| 1626 |
string: WordSized |
| 1627 |
call_instruction: true |
| 1628 |
mir_op: StringConvertCase |
| 1629 |
|
| 1630 |
# Calls the ToUpperCase case conversion function. Inlines the case conversion |
| 1631 |
# when possible. |
| 1632 |
- name: CharCodeToUpperCase |
| 1633 |
result_type: WordSized |
| 1634 |
operands: |
| 1635 |
code: WordSized |
| 1636 |
num_temps: 1 |
| 1637 |
mir_op: CharCodeConvertCase |
| 1638 |
|
| 1639 |
- name: Int32ToDouble |
| 1640 |
result_type: WordSized |
| 1641 |
operands: |
| 1642 |
input: WordSized |
| 1643 |
|
| 1644 |
- name: Float32ToDouble |
| 1645 |
result_type: WordSized |
| 1646 |
operands: |
| 1647 |
input: WordSized |
| 1648 |
|
| 1649 |
- name: DoubleToFloat32 |
| 1650 |
result_type: WordSized |
| 1651 |
operands: |
| 1652 |
input: WordSized |
| 1653 |
|
| 1654 |
- name: Int32ToFloat32 |
| 1655 |
result_type: WordSized |
| 1656 |
operands: |
| 1657 |
input: WordSized |
| 1658 |
|
| 1659 |
- name: DoubleToFloat16 |
| 1660 |
result_type: WordSized |
| 1661 |
operands: |
| 1662 |
input: WordSized |
| 1663 |
num_temps: 1 |
| 1664 |
|
| 1665 |
- name: DoubleToFloat32ToFloat16 |
| 1666 |
result_type: WordSized |
| 1667 |
operands: |
| 1668 |
input: WordSized |
| 1669 |
num_temps: 2 |
| 1670 |
|
| 1671 |
- name: Float32ToFloat16 |
| 1672 |
result_type: WordSized |
| 1673 |
operands: |
| 1674 |
input: WordSized |
| 1675 |
num_temps: 1 |
| 1676 |
|
| 1677 |
- name: Int32ToFloat16 |
| 1678 |
result_type: WordSized |
| 1679 |
operands: |
| 1680 |
input: WordSized |
| 1681 |
num_temps: 1 |
| 1682 |
|
| 1683 |
# Convert a value to a double. |
| 1684 |
- name: ValueToDouble |
| 1685 |
result_type: WordSized |
| 1686 |
operands: |
| 1687 |
input: BoxedValue |
| 1688 |
mir_op: ToDouble |
| 1689 |
|
| 1690 |
# Convert a value to a float32. |
| 1691 |
- name: ValueToFloat32 |
| 1692 |
result_type: WordSized |
| 1693 |
operands: |
| 1694 |
input: BoxedValue |
| 1695 |
mir_op: ToFloat32 |
| 1696 |
|
| 1697 |
# Convert a value to a float16. |
| 1698 |
- name: ValueToFloat16 |
| 1699 |
result_type: WordSized |
| 1700 |
operands: |
| 1701 |
input: BoxedValue |
| 1702 |
num_temps: 1 |
| 1703 |
mir_op: ToFloat16 |
| 1704 |
|
| 1705 |
# Convert a value to an int32. |
| 1706 |
- name: ValueToNumberInt32 |
| 1707 |
result_type: WordSized |
| 1708 |
operands: |
| 1709 |
input: BoxedValue |
| 1710 |
num_temps: 1 |
| 1711 |
mir_op: ToNumberInt32 |
| 1712 |
|
| 1713 |
# Convert a value to an int32 with truncation. |
| 1714 |
- name: ValueTruncateToInt32 |
| 1715 |
result_type: WordSized |
| 1716 |
operands: |
| 1717 |
input: BoxedValue |
| 1718 |
num_temps: 2 |
| 1719 |
mir_op: TruncateToInt32 |
| 1720 |
|
| 1721 |
# Convert a value to a BigInt. |
| 1722 |
- name: ValueToBigInt |
| 1723 |
result_type: WordSized |
| 1724 |
operands: |
| 1725 |
input: BoxedValue |
| 1726 |
mir_op: ToBigInt |
| 1727 |
|
| 1728 |
# Convert a double to an int32. |
| 1729 |
# Input: floating-point Register |
| 1730 |
# Output: 32-bit integer |
| 1731 |
# Bailout: if the double cannot be converted to an integer. |
| 1732 |
- name: DoubleToInt32 |
| 1733 |
result_type: WordSized |
| 1734 |
operands: |
| 1735 |
input: WordSized |
| 1736 |
mir_op: ToNumberInt32 |
| 1737 |
|
| 1738 |
# Convert a float32 to an int32. |
| 1739 |
# Input: floating-point Register |
| 1740 |
# Output: 32-bit integer |
| 1741 |
# Bailout: if the float32 cannot be converted to an integer. |
| 1742 |
- name: Float32ToInt32 |
| 1743 |
result_type: WordSized |
| 1744 |
operands: |
| 1745 |
input: WordSized |
| 1746 |
mir_op: ToNumberInt32 |
| 1747 |
|
| 1748 |
# Convert a double to a truncated int32. |
| 1749 |
# Input: floating-point Register |
| 1750 |
# Output: 32-bit integer |
| 1751 |
- name: TruncateDToInt32 |
| 1752 |
result_type: WordSized |
| 1753 |
operands: |
| 1754 |
input: WordSized |
| 1755 |
num_temps: 1 |
| 1756 |
mir_op: TruncateToInt32 |
| 1757 |
|
| 1758 |
# Convert a double to a truncated int32 with instance offset because we need it |
| 1759 |
# for the slow ool path. |
| 1760 |
- name: WasmBuiltinTruncateDToInt32 |
| 1761 |
result_type: WordSized |
| 1762 |
operands: |
| 1763 |
input: WordSized |
| 1764 |
instance: WordSized |
| 1765 |
num_temps: 1 |
| 1766 |
mir_op: WasmBuiltinTruncateToInt32 |
| 1767 |
|
| 1768 |
# Convert a float32 to a truncated int32. |
| 1769 |
# Input: floating-point Register |
| 1770 |
# Output: 32-bit integer |
| 1771 |
- name: TruncateFToInt32 |
| 1772 |
result_type: WordSized |
| 1773 |
operands: |
| 1774 |
input: WordSized |
| 1775 |
num_temps: 1 |
| 1776 |
mir_op: TruncateToInt32 |
| 1777 |
|
| 1778 |
# Convert a float32 to a truncated int32 with instance offset because we need |
| 1779 |
# it for the slow ool path. |
| 1780 |
- name: WasmBuiltinTruncateFToInt32 |
| 1781 |
result_type: WordSized |
| 1782 |
operands: |
| 1783 |
input: WordSized |
| 1784 |
instance: WordSized |
| 1785 |
num_temps: 1 |
| 1786 |
mir_op: WasmBuiltinTruncateToInt32 |
| 1787 |
|
| 1788 |
- name: WasmTruncateToInt32 |
| 1789 |
result_type: WordSized |
| 1790 |
operands: |
| 1791 |
input: WordSized |
| 1792 |
mir_op: true |
| 1793 |
|
| 1794 |
- name: WrapInt64ToInt32 |
| 1795 |
result_type: WordSized |
| 1796 |
operands: |
| 1797 |
input: Int64 |
| 1798 |
mir_op: true |
| 1799 |
|
| 1800 |
- name: ExtendInt32ToInt64 |
| 1801 |
result_type: Int64 |
| 1802 |
operands: |
| 1803 |
input: WordSized |
| 1804 |
mir_op: true |
| 1805 |
|
| 1806 |
# Convert a boolean value to a string. |
| 1807 |
- name: BooleanToString |
| 1808 |
result_type: WordSized |
| 1809 |
operands: |
| 1810 |
input: WordSized |
| 1811 |
mir_op: ToString |
| 1812 |
|
| 1813 |
# Convert an integer hosted on one definition to a string with a function call. |
| 1814 |
- name: IntToString |
| 1815 |
result_type: WordSized |
| 1816 |
operands: |
| 1817 |
input: WordSized |
| 1818 |
mir_op: ToString |
| 1819 |
|
| 1820 |
# Convert a double hosted on one definition to a string with a function call. |
| 1821 |
- name: DoubleToString |
| 1822 |
result_type: WordSized |
| 1823 |
operands: |
| 1824 |
input: WordSized |
| 1825 |
num_temps: 1 |
| 1826 |
mir_op: ToString |
| 1827 |
|
| 1828 |
# Convert a primitive to a string with a function call. |
| 1829 |
- name: ValueToString |
| 1830 |
result_type: WordSized |
| 1831 |
operands: |
| 1832 |
input: BoxedValue |
| 1833 |
num_temps: 1 |
| 1834 |
mir_op: ToString |
| 1835 |
|
| 1836 |
# Double raised to a half power. |
| 1837 |
- name: PowHalfD |
| 1838 |
result_type: WordSized |
| 1839 |
operands: |
| 1840 |
input: WordSized |
| 1841 |
mir_op: PowHalf |
| 1842 |
|
| 1843 |
- name: NaNToZero |
| 1844 |
result_type: WordSized |
| 1845 |
operands: |
| 1846 |
input: WordSized |
| 1847 |
num_temps: 1 |
| 1848 |
mir_op: true |
| 1849 |
|
| 1850 |
- name: OsrEntry |
| 1851 |
gen_boilerplate: false |
| 1852 |
|
| 1853 |
# Materialize a Value stored in an interpreter frame for OSR. |
| 1854 |
- name: OsrValue |
| 1855 |
result_type: BoxedValue |
| 1856 |
operands: |
| 1857 |
entry: WordSized |
| 1858 |
mir_op: true |
| 1859 |
|
| 1860 |
# Materialize a JSObject env chain stored in an interpreter frame for OSR. |
| 1861 |
- name: OsrEnvironmentChain |
| 1862 |
result_type: WordSized |
| 1863 |
operands: |
| 1864 |
entry: WordSized |
| 1865 |
mir_op: true |
| 1866 |
|
| 1867 |
# Materialize a JSObject env chain stored in an interpreter frame for OSR. |
| 1868 |
- name: OsrReturnValue |
| 1869 |
result_type: BoxedValue |
| 1870 |
operands: |
| 1871 |
entry: WordSized |
| 1872 |
mir_op: true |
| 1873 |
|
| 1874 |
- name: OsrArgumentsObject |
| 1875 |
result_type: WordSized |
| 1876 |
operands: |
| 1877 |
entry: WordSized |
| 1878 |
mir_op: true |
| 1879 |
|
| 1880 |
- name: RegExp |
| 1881 |
result_type: WordSized |
| 1882 |
num_temps: 1 |
| 1883 |
mir_op: true |
| 1884 |
|
| 1885 |
- name: RegExpHasCaptureGroups |
| 1886 |
result_type: WordSized |
| 1887 |
operands: |
| 1888 |
regexp: WordSized |
| 1889 |
input: WordSized |
| 1890 |
mir_op: true |
| 1891 |
|
| 1892 |
- name: GetFirstDollarIndex |
| 1893 |
result_type: WordSized |
| 1894 |
operands: |
| 1895 |
str: WordSized |
| 1896 |
num_temps: 3 |
| 1897 |
|
| 1898 |
- name: StringReplace |
| 1899 |
result_type: WordSized |
| 1900 |
operands: |
| 1901 |
string: WordSized |
| 1902 |
pattern: WordSized |
| 1903 |
replacement: WordSized |
| 1904 |
call_instruction: true |
| 1905 |
mir_op: true |
| 1906 |
|
| 1907 |
- name: BinaryValueCache |
| 1908 |
result_type: BoxedValue |
| 1909 |
operands: |
| 1910 |
lhs: BoxedValue |
| 1911 |
rhs: BoxedValue |
| 1912 |
# Takes two temps: these are intended to be FloatReg0 and FloatReg1 |
| 1913 |
# to allow the actual cache code to safely clobber those values without |
| 1914 |
# save and restore. |
| 1915 |
num_temps: 2 |
| 1916 |
mir_op: BinaryCache |
| 1917 |
|
| 1918 |
- name: BinaryBoolCache |
| 1919 |
result_type: WordSized |
| 1920 |
operands: |
| 1921 |
lhs: BoxedValue |
| 1922 |
rhs: BoxedValue |
| 1923 |
# Takes two temps: these are intendend to be FloatReg0 and FloatReg1 |
| 1924 |
# To allow the actual cache code to safely clobber those values without |
| 1925 |
# save and restore. |
| 1926 |
num_temps: 2 |
| 1927 |
mir_op: BinaryCache |
| 1928 |
|
| 1929 |
- name: ModuleMetadata |
| 1930 |
result_type: WordSized |
| 1931 |
call_instruction: true |
| 1932 |
mir_op: true |
| 1933 |
|
| 1934 |
- name: DynamicImport |
| 1935 |
result_type: WordSized |
| 1936 |
operands: |
| 1937 |
specifier: BoxedValue |
| 1938 |
options: BoxedValue |
| 1939 |
call_instruction: true |
| 1940 |
mir_op: true |
| 1941 |
|
| 1942 |
- name: Lambda |
| 1943 |
result_type: WordSized |
| 1944 |
operands: |
| 1945 |
environmentChain: WordSized |
| 1946 |
num_temps: 1 |
| 1947 |
mir_op: true |
| 1948 |
|
| 1949 |
- name: FunctionWithProto |
| 1950 |
result_type: WordSized |
| 1951 |
operands: |
| 1952 |
envChain: WordSized |
| 1953 |
prototype: WordSized |
| 1954 |
call_instruction: true |
| 1955 |
mir_op: true |
| 1956 |
|
| 1957 |
- name: KeepAliveObject |
| 1958 |
operands: |
| 1959 |
object: WordSized |
| 1960 |
|
| 1961 |
- name: DebugEnterGCUnsafeRegion |
| 1962 |
num_temps: 1 |
| 1963 |
|
| 1964 |
- name: DebugLeaveGCUnsafeRegion |
| 1965 |
num_temps: 1 |
| 1966 |
|
| 1967 |
- name: GetNextEntryForIterator |
| 1968 |
result_type: WordSized |
| 1969 |
operands: |
| 1970 |
iter: WordSized |
| 1971 |
result: WordSized |
| 1972 |
num_temps: 3 |
| 1973 |
mir_op: true |
| 1974 |
|
| 1975 |
# Read the length of a resizable typed array. |
| 1976 |
- name: ResizableTypedArrayLength |
| 1977 |
result_type: WordSized |
| 1978 |
operands: |
| 1979 |
object: WordSized |
| 1980 |
arguments: |
| 1981 |
synchronization: js::jit::Synchronization |
| 1982 |
num_temps: 1 |
| 1983 |
|
| 1984 |
# Read the byte length of a resizable data view. |
| 1985 |
- name: ResizableDataViewByteLength |
| 1986 |
result_type: WordSized |
| 1987 |
operands: |
| 1988 |
object: WordSized |
| 1989 |
arguments: |
| 1990 |
synchronization: js::jit::Synchronization |
| 1991 |
num_temps: 1 |
| 1992 |
|
| 1993 |
# Guard a resizable array buffer view is in-bounds. |
| 1994 |
- name: GuardResizableArrayBufferViewInBounds |
| 1995 |
operands: |
| 1996 |
object: WordSized |
| 1997 |
num_temps: 1 |
| 1998 |
|
| 1999 |
# Guard a resizable array buffer view is in-bounds. |
| 2000 |
- name: GuardResizableArrayBufferViewInBoundsOrDetached |
| 2001 |
operands: |
| 2002 |
object: WordSized |
| 2003 |
num_temps: 1 |
| 2004 |
|
| 2005 |
- name: GuardHasAttachedArrayBuffer |
| 2006 |
operands: |
| 2007 |
object: WordSized |
| 2008 |
num_temps: 1 |
| 2009 |
|
| 2010 |
# Double to IntPtr, eligible for accessing into a TypedArray or DataView. If |
| 2011 |
# the index isn't exactly representable as an IntPtr, depending on the |
| 2012 |
# supportOOB flag on the MIR instruction, either bail out or produce an IntPtr |
| 2013 |
# which is equivalent to an OOB access. |
| 2014 |
- name: GuardNumberToIntPtrIndex |
| 2015 |
result_type: WordSized |
| 2016 |
operands: |
| 2017 |
input: WordSized |
| 2018 |
mir_op: true |
| 2019 |
|
| 2020 |
# Bailout if index >= length. |
| 2021 |
- name: BoundsCheck |
| 2022 |
operands: |
| 2023 |
index: WordSized |
| 2024 |
length: WordSized |
| 2025 |
mir_op: true |
| 2026 |
|
| 2027 |
# Bailout if index + minimum < 0 or index + maximum >= length. |
| 2028 |
- name: BoundsCheckRange |
| 2029 |
operands: |
| 2030 |
index: WordSized |
| 2031 |
length: WordSized |
| 2032 |
num_temps: 1 |
| 2033 |
mir_op: BoundsCheck |
| 2034 |
|
| 2035 |
# Bailout if index < minimum. |
| 2036 |
- name: BoundsCheckLower |
| 2037 |
operands: |
| 2038 |
index: WordSized |
| 2039 |
mir_op: true |
| 2040 |
|
| 2041 |
- name: SpectreMaskIndex |
| 2042 |
result_type: WordSized |
| 2043 |
operands: |
| 2044 |
index: WordSized |
| 2045 |
length: WordSized |
| 2046 |
mir_op: true |
| 2047 |
|
| 2048 |
# Load a value from a dense array's elements vector. Bail out if it's the hole |
| 2049 |
# value. |
| 2050 |
- name: LoadElementV |
| 2051 |
result_type: BoxedValue |
| 2052 |
operands: |
| 2053 |
elements: WordSized |
| 2054 |
index: WordSized |
| 2055 |
mir_op: LoadElement |
| 2056 |
|
| 2057 |
- name: InArray |
| 2058 |
result_type: WordSized |
| 2059 |
operands: |
| 2060 |
elements: WordSized |
| 2061 |
index: WordSized |
| 2062 |
initLength: WordSized |
| 2063 |
mir_op: true |
| 2064 |
|
| 2065 |
- name: GuardElementNotHole |
| 2066 |
operands: |
| 2067 |
elements: WordSized |
| 2068 |
index: WordSized |
| 2069 |
|
| 2070 |
# Load a value from an array's elements vector, loading |undefined| if we hit a |
| 2071 |
# hole. Bail out if we get a negative index. |
| 2072 |
- name: LoadElementHole |
| 2073 |
result_type: BoxedValue |
| 2074 |
operands: |
| 2075 |
elements: WordSized |
| 2076 |
index: WordSized |
| 2077 |
initLength: WordSized |
| 2078 |
mir_op: true |
| 2079 |
|
| 2080 |
# Store a boxed value to a dense array's element vector. |
| 2081 |
- name: StoreElementV |
| 2082 |
operands: |
| 2083 |
elements: WordSized |
| 2084 |
index: WordSized |
| 2085 |
value: BoxedValue |
| 2086 |
mir_op: StoreElement |
| 2087 |
extra_name: true |
| 2088 |
|
| 2089 |
# Store a typed value to a dense array's elements vector. Compared to |
| 2090 |
# LStoreElementV, this instruction can store doubles and constants directly, |
| 2091 |
# and does not store the type tag if the array is monomorphic and known to |
| 2092 |
# be packed. |
| 2093 |
- name: StoreElementT |
| 2094 |
operands: |
| 2095 |
elements: WordSized |
| 2096 |
index: WordSized |
| 2097 |
value: WordSized |
| 2098 |
mir_op: StoreElement |
| 2099 |
extra_name: true |
| 2100 |
|
| 2101 |
- name: StoreHoleValueElement |
| 2102 |
operands: |
| 2103 |
elements: WordSized |
| 2104 |
index: WordSized |
| 2105 |
|
| 2106 |
# Like LStoreElementV, but supports indexes >= initialized length. |
| 2107 |
- name: StoreElementHoleV |
| 2108 |
operands: |
| 2109 |
object: WordSized |
| 2110 |
elements: WordSized |
| 2111 |
index: WordSized |
| 2112 |
value: BoxedValue |
| 2113 |
num_temps: 1 |
| 2114 |
mir_op: StoreElementHole |
| 2115 |
|
| 2116 |
# Like LStoreElementT, but supports indexes >= initialized length. |
| 2117 |
- name: StoreElementHoleT |
| 2118 |
operands: |
| 2119 |
object: WordSized |
| 2120 |
elements: WordSized |
| 2121 |
index: WordSized |
| 2122 |
value: WordSized |
| 2123 |
num_temps: 1 |
| 2124 |
mir_op: StoreElementHole |
| 2125 |
|
| 2126 |
- name: ArrayPopShift |
| 2127 |
result_type: BoxedValue |
| 2128 |
operands: |
| 2129 |
object: WordSized |
| 2130 |
num_temps: 2 |
| 2131 |
mir_op: true |
| 2132 |
extra_name: true |
| 2133 |
|
| 2134 |
- name: FrameArgumentsSlice |
| 2135 |
result_type: WordSized |
| 2136 |
operands: |
| 2137 |
begin: WordSized |
| 2138 |
count: WordSized |
| 2139 |
num_temps: 1 |
| 2140 |
mir_op: true |
| 2141 |
|
| 2142 |
- name: InlineArgumentsSlice |
| 2143 |
gen_boilerplate: false |
| 2144 |
|
| 2145 |
- name: ObjectKeys |
| 2146 |
result_type: WordSized |
| 2147 |
operands: |
| 2148 |
object: WordSized |
| 2149 |
num_temps: 0 |
| 2150 |
call_instruction: true |
| 2151 |
|
| 2152 |
- name: ObjectKeysLength |
| 2153 |
result_type: WordSized |
| 2154 |
operands: |
| 2155 |
object: WordSized |
| 2156 |
num_temps: 0 |
| 2157 |
call_instruction: true |
| 2158 |
|
| 2159 |
- name: LoadUnboxedScalar |
| 2160 |
result_type: WordSized |
| 2161 |
operands: |
| 2162 |
elements: WordSized |
| 2163 |
index: WordSized |
| 2164 |
num_temps: 2 |
| 2165 |
mir_op: true |
| 2166 |
|
| 2167 |
- name: LoadUnboxedInt64 |
| 2168 |
result_type: Int64 |
| 2169 |
operands: |
| 2170 |
elements: WordSized |
| 2171 |
index: WordSized |
| 2172 |
mir_op: LoadUnboxedScalar |
| 2173 |
|
| 2174 |
- name: LoadDataViewElement |
| 2175 |
result_type: WordSized |
| 2176 |
operands: |
| 2177 |
elements: WordSized |
| 2178 |
index: WordSized |
| 2179 |
littleEndian: WordSized |
| 2180 |
num_temps: 2 |
| 2181 |
num_temps64: 1 |
| 2182 |
mir_op: true |
| 2183 |
|
| 2184 |
- name: LoadDataViewElement64 |
| 2185 |
result_type: Int64 |
| 2186 |
operands: |
| 2187 |
elements: WordSized |
| 2188 |
index: WordSized |
| 2189 |
littleEndian: WordSized |
| 2190 |
mir_op: LoadDataViewElement |
| 2191 |
|
| 2192 |
- name: LoadTypedArrayElementHole |
| 2193 |
result_type: BoxedValue |
| 2194 |
operands: |
| 2195 |
elements: WordSized |
| 2196 |
index: WordSized |
| 2197 |
length: WordSized |
| 2198 |
num_temps: 1 |
| 2199 |
mir_op: true |
| 2200 |
|
| 2201 |
- name: LoadTypedArrayElementHoleBigInt |
| 2202 |
result_type: BoxedValue |
| 2203 |
operands: |
| 2204 |
elements: WordSized |
| 2205 |
index: WordSized |
| 2206 |
length: WordSized |
| 2207 |
num_temps: 1 |
| 2208 |
num_temps64: 1 |
| 2209 |
mir_op: LoadTypedArrayElementHole |
| 2210 |
|
| 2211 |
- name: StoreUnboxedScalar |
| 2212 |
operands: |
| 2213 |
elements: WordSized |
| 2214 |
index: WordSized |
| 2215 |
value: WordSized |
| 2216 |
num_temps: 1 |
| 2217 |
mir_op: true |
| 2218 |
|
| 2219 |
- name: StoreUnboxedInt64 |
| 2220 |
operands: |
| 2221 |
elements: WordSized |
| 2222 |
index: WordSized |
| 2223 |
value: Int64 |
| 2224 |
mir_op: StoreUnboxedScalar |
| 2225 |
|
| 2226 |
- name: StoreDataViewElement |
| 2227 |
operands: |
| 2228 |
elements: WordSized |
| 2229 |
index: WordSized |
| 2230 |
value: WordSized |
| 2231 |
littleEndian: WordSized |
| 2232 |
num_temps: 1 |
| 2233 |
num_temps64: 1 |
| 2234 |
mir_op: true |
| 2235 |
|
| 2236 |
- name: StoreDataViewElement64 |
| 2237 |
operands: |
| 2238 |
elements: WordSized |
| 2239 |
index: WordSized |
| 2240 |
value: Int64 |
| 2241 |
littleEndian: WordSized |
| 2242 |
num_temps64: 1 |
| 2243 |
mir_op: StoreDataViewElement |
| 2244 |
|
| 2245 |
- name: StoreTypedArrayElementHole |
| 2246 |
operands: |
| 2247 |
elements: WordSized |
| 2248 |
length: WordSized |
| 2249 |
index: WordSized |
| 2250 |
value: WordSized |
| 2251 |
num_temps: 1 |
| 2252 |
mir_op: true |
| 2253 |
|
| 2254 |
- name: StoreTypedArrayElementHoleInt64 |
| 2255 |
operands: |
| 2256 |
elements: WordSized |
| 2257 |
length: WordSized |
| 2258 |
index: WordSized |
| 2259 |
value: Int64 |
| 2260 |
num_temps: 1 |
| 2261 |
mir_op: StoreTypedArrayElementHole |
| 2262 |
|
| 2263 |
- name: AtomicIsLockFree |
| 2264 |
result_type: WordSized |
| 2265 |
operands: |
| 2266 |
value: WordSized |
| 2267 |
|
| 2268 |
- name: CompareExchangeTypedArrayElement |
| 2269 |
result_type: WordSized |
| 2270 |
operands: |
| 2271 |
elements: WordSized |
| 2272 |
index: WordSized |
| 2273 |
oldval: WordSized |
| 2274 |
newval: WordSized |
| 2275 |
# Needs additional temps on LL/SC platforms to extract/insert bits of word. |
| 2276 |
#if defined(JS_CODEGEN_MIPS64) || defined(JS_CODEGEN_LOONG64) || defined(JS_CODEGEN_RISCV64) |
| 2277 |
num_temps: 4 |
| 2278 |
#else |
| 2279 |
num_temps: 1 |
| 2280 |
#endif |
| 2281 |
mir_op: true |
| 2282 |
|
| 2283 |
- name: AtomicExchangeTypedArrayElement |
| 2284 |
result_type: WordSized |
| 2285 |
operands: |
| 2286 |
elements: WordSized |
| 2287 |
index: WordSized |
| 2288 |
value: WordSized |
| 2289 |
# Needs additional temps on LL/SC platforms to extract/insert bits of word. |
| 2290 |
#if defined(JS_CODEGEN_MIPS64) || defined(JS_CODEGEN_LOONG64) || defined(JS_CODEGEN_RISCV64) |
| 2291 |
num_temps: 4 |
| 2292 |
#else |
| 2293 |
num_temps: 1 |
| 2294 |
#endif |
| 2295 |
mir_op: true |
| 2296 |
|
| 2297 |
- name: AtomicTypedArrayElementBinop |
| 2298 |
result_type: WordSized |
| 2299 |
operands: |
| 2300 |
elements: WordSized |
| 2301 |
index: WordSized |
| 2302 |
value: WordSized |
| 2303 |
# Needs additional temps on LL/SC platforms to extract/insert bits of word. |
| 2304 |
#if defined(JS_CODEGEN_MIPS64) || defined(JS_CODEGEN_LOONG64) || defined(JS_CODEGEN_RISCV64) |
| 2305 |
num_temps: 4 |
| 2306 |
#else |
| 2307 |
num_temps: 2 |
| 2308 |
#endif |
| 2309 |
mir_op: true |
| 2310 |
|
| 2311 |
# Atomic binary operation where the result is discarded. |
| 2312 |
- name: AtomicTypedArrayElementBinopForEffect |
| 2313 |
operands: |
| 2314 |
elements: WordSized |
| 2315 |
index: WordSized |
| 2316 |
value: WordSized |
| 2317 |
# Additional temp that may be used on LL/SC platforms for the flag result of the store. |
| 2318 |
# Needs additional temps on LL/SC platforms to extract/insert bits of word. |
| 2319 |
#if defined(JS_CODEGEN_ARM) || defined(JS_CODEGEN_ARM64) |
| 2320 |
num_temps: 1 |
| 2321 |
#elif defined(JS_CODEGEN_MIPS64) || defined(JS_CODEGEN_LOONG64) || defined(JS_CODEGEN_RISCV64) |
| 2322 |
num_temps: 3 |
| 2323 |
#endif |
| 2324 |
mir_op: AtomicTypedArrayElementBinop |
| 2325 |
|
| 2326 |
- name: AtomicLoad64 |
| 2327 |
result_type: Int64 |
| 2328 |
operands: |
| 2329 |
elements: WordSized |
| 2330 |
index: WordSized |
| 2331 |
#ifdef JS_CODEGEN_X86 |
| 2332 |
num_temps64: 1 |
| 2333 |
#endif |
| 2334 |
mir_op: LoadUnboxedScalar |
| 2335 |
|
| 2336 |
- name: AtomicStore64 |
| 2337 |
operands: |
| 2338 |
elements: WordSized |
| 2339 |
index: WordSized |
| 2340 |
value: Int64 |
| 2341 |
#if defined(JS_CODEGEN_X86) || defined(JS_CODEGEN_ARM) |
| 2342 |
num_temps64: 1 |
| 2343 |
#endif |
| 2344 |
mir_op: StoreUnboxedScalar |
| 2345 |
|
| 2346 |
- name: CompareExchangeTypedArrayElement64 |
| 2347 |
result_type: Int64 |
| 2348 |
operands: |
| 2349 |
elements: WordSized |
| 2350 |
index: WordSized |
| 2351 |
oldval: Int64 |
| 2352 |
newval: Int64 |
| 2353 |
mir_op: CompareExchangeTypedArrayElement |
| 2354 |
|
| 2355 |
- name: AtomicExchangeTypedArrayElement64 |
| 2356 |
result_type: Int64 |
| 2357 |
operands: |
| 2358 |
elements: WordSized |
| 2359 |
index: WordSized |
| 2360 |
value: Int64 |
| 2361 |
mir_op: AtomicExchangeTypedArrayElement |
| 2362 |
|
| 2363 |
- name: AtomicTypedArrayElementBinop64 |
| 2364 |
result_type: Int64 |
| 2365 |
operands: |
| 2366 |
elements: WordSized |
| 2367 |
index: WordSized |
| 2368 |
value: Int64 |
| 2369 |
#ifndef JS_CODEGEN_X86 |
| 2370 |
num_temps64: 1 |
| 2371 |
#endif |
| 2372 |
mir_op: AtomicTypedArrayElementBinop |
| 2373 |
|
| 2374 |
# Atomic binary operation where the result is discarded. |
| 2375 |
- name: AtomicTypedArrayElementBinopForEffect64 |
| 2376 |
operands: |
| 2377 |
elements: WordSized |
| 2378 |
index: WordSized |
| 2379 |
value: Int64 |
| 2380 |
#ifndef JS_CODEGEN_X64 |
| 2381 |
num_temps64: 1 |
| 2382 |
#endif |
| 2383 |
mir_op: AtomicTypedArrayElementBinop |
| 2384 |
|
| 2385 |
- name: EffectiveAddress |
| 2386 |
result_type: WordSized |
| 2387 |
operands: |
| 2388 |
base: WordSized |
| 2389 |
index: WordSized |
| 2390 |
mir_op: true |
| 2391 |
|
| 2392 |
- name: ClampIToUint8 |
| 2393 |
result_type: WordSized |
| 2394 |
operands: |
| 2395 |
input: WordSized |
| 2396 |
|
| 2397 |
- name: ClampDToUint8 |
| 2398 |
result_type: WordSized |
| 2399 |
operands: |
| 2400 |
input: WordSized |
| 2401 |
num_temps: 1 |
| 2402 |
|
| 2403 |
- name: ClampVToUint8 |
| 2404 |
result_type: WordSized |
| 2405 |
operands: |
| 2406 |
input: BoxedValue |
| 2407 |
num_temps: 1 |
| 2408 |
mir_op: ClampToUint8 |
| 2409 |
|
| 2410 |
# Load a boxed value from an object's fixed slot. |
| 2411 |
- name: LoadFixedSlotV |
| 2412 |
result_type: BoxedValue |
| 2413 |
operands: |
| 2414 |
object: WordSized |
| 2415 |
mir_op: LoadFixedSlot |
| 2416 |
|
| 2417 |
# Load a boxed value from an object's fixed slot. |
| 2418 |
# If it is a non-atom string, atomize it and update the slot. |
| 2419 |
- name: LoadFixedSlotAndAtomize |
| 2420 |
result_type: BoxedValue |
| 2421 |
operands: |
| 2422 |
object: WordSized |
| 2423 |
num_temps: 1 |
| 2424 |
mir_op: LoadFixedSlot |
| 2425 |
|
| 2426 |
# Load a typed value from an object's fixed slot. |
| 2427 |
- name: LoadFixedSlotT |
| 2428 |
result_type: WordSized |
| 2429 |
operands: |
| 2430 |
object: WordSized |
| 2431 |
mir_op: LoadFixedSlot |
| 2432 |
|
| 2433 |
- name: LoadFixedSlotAndUnbox |
| 2434 |
result_type: WordSized |
| 2435 |
operands: |
| 2436 |
object: WordSized |
| 2437 |
mir_op: true |
| 2438 |
|
| 2439 |
- name: LoadDynamicSlotAndUnbox |
| 2440 |
result_type: WordSized |
| 2441 |
operands: |
| 2442 |
slots: WordSized |
| 2443 |
mir_op: true |
| 2444 |
|
| 2445 |
- name: LoadElementAndUnbox |
| 2446 |
result_type: WordSized |
| 2447 |
operands: |
| 2448 |
elements: WordSized |
| 2449 |
index: WordSized |
| 2450 |
mir_op: true |
| 2451 |
|
| 2452 |
- name: LoadFixedSlotUnboxAndAtomize |
| 2453 |
result_type: WordSized |
| 2454 |
operands: |
| 2455 |
object: WordSized |
| 2456 |
mir_op: LoadFixedSlotAndUnbox |
| 2457 |
|
| 2458 |
- name: LoadDynamicSlotUnboxAndAtomize |
| 2459 |
result_type: WordSized |
| 2460 |
operands: |
| 2461 |
slots: WordSized |
| 2462 |
mir_op: LoadDynamicSlotAndUnbox |
| 2463 |
|
| 2464 |
- name: AddAndStoreSlot |
| 2465 |
operands: |
| 2466 |
object: WordSized |
| 2467 |
value: BoxedValue |
| 2468 |
num_temps: 1 |
| 2469 |
mir_op: true |
| 2470 |
|
| 2471 |
# Store a boxed value to an object's fixed slot. |
| 2472 |
- name: StoreFixedSlotV |
| 2473 |
operands: |
| 2474 |
obj: WordSized |
| 2475 |
value: BoxedValue |
| 2476 |
mir_op: StoreFixedSlot |
| 2477 |
|
| 2478 |
# Store a typed value to an object's fixed slot. |
| 2479 |
- name: StoreFixedSlotT |
| 2480 |
operands: |
| 2481 |
obj: WordSized |
| 2482 |
value: WordSized |
| 2483 |
mir_op: StoreFixedSlot |
| 2484 |
|
| 2485 |
- name: GetPropSuperCache |
| 2486 |
result_type: BoxedValue |
| 2487 |
operands: |
| 2488 |
obj: WordSized |
| 2489 |
receiver: BoxedValue |
| 2490 |
id: BoxedValue |
| 2491 |
mir_op: true |
| 2492 |
|
| 2493 |
# Patchable jump to stubs generated for a GetProperty cache, which loads a |
| 2494 |
# boxed value. |
| 2495 |
- name: GetPropertyCache |
| 2496 |
result_type: BoxedValue |
| 2497 |
operands: |
| 2498 |
value: BoxedValue |
| 2499 |
id: BoxedValue |
| 2500 |
mir_op: true |
| 2501 |
|
| 2502 |
# Load a value from an object's dslots or a slots vector. |
| 2503 |
- name: LoadDynamicSlotV |
| 2504 |
result_type: BoxedValue |
| 2505 |
operands: |
| 2506 |
input: WordSized |
| 2507 |
mir_op: LoadDynamicSlot |
| 2508 |
|
| 2509 |
# Load a value from an object's dslots or a slots vector. |
| 2510 |
# If it is a non-atom string, atomize it and update the slot. |
| 2511 |
- name: LoadDynamicSlotAndAtomize |
| 2512 |
result_type: BoxedValue |
| 2513 |
operands: |
| 2514 |
input: WordSized |
| 2515 |
num_temps: 1 |
| 2516 |
mir_op: LoadDynamicSlot |
| 2517 |
|
| 2518 |
# Store a value to an object's dslots or a slots vector. |
| 2519 |
- name: StoreDynamicSlotV |
| 2520 |
operands: |
| 2521 |
slots: WordSized |
| 2522 |
value: BoxedValue |
| 2523 |
mir_op: StoreDynamicSlot |
| 2524 |
|
| 2525 |
# Store a typed value to an object's dslots or a slots vector. This has a |
| 2526 |
# few advantages over LStoreDynamicSlotV: |
| 2527 |
# 1) We can bypass storing the type tag if the slot has the same type as |
| 2528 |
# the value. |
| 2529 |
# 2) Better Register allocation: we can store constants and FP regs directly |
| 2530 |
# without requiring a second Register for the value. |
| 2531 |
- name: StoreDynamicSlotT |
| 2532 |
operands: |
| 2533 |
slots: WordSized |
| 2534 |
value: WordSized |
| 2535 |
mir_op: StoreDynamicSlot |
| 2536 |
|
| 2537 |
# Take the floor of a double precision number and converts it to an int32. |
| 2538 |
# Implements Math.floor(). |
| 2539 |
- name: Floor |
| 2540 |
result_type: WordSized |
| 2541 |
operands: |
| 2542 |
input: WordSized |
| 2543 |
|
| 2544 |
# Take the floor of a single precision number and converts it to an int32. |
| 2545 |
# Implements Math.floor(). |
| 2546 |
- name: FloorF |
| 2547 |
result_type: WordSized |
| 2548 |
operands: |
| 2549 |
input: WordSized |
| 2550 |
|
| 2551 |
# Take the ceiling of a double precision number and converts it to an int32. |
| 2552 |
# Implements Math.ceil(). |
| 2553 |
- name: Ceil |
| 2554 |
result_type: WordSized |
| 2555 |
operands: |
| 2556 |
input: WordSized |
| 2557 |
|
| 2558 |
# Take the ceiling of a single precision number and converts it to an int32. |
| 2559 |
# Implements Math.ceil(). |
| 2560 |
- name: CeilF |
| 2561 |
result_type: WordSized |
| 2562 |
operands: |
| 2563 |
input: WordSized |
| 2564 |
|
| 2565 |
# Round a double precision number and converts it to an int32. |
| 2566 |
# Implements Math.round(). |
| 2567 |
- name: Round |
| 2568 |
result_type: WordSized |
| 2569 |
operands: |
| 2570 |
input: WordSized |
| 2571 |
num_temps: 1 |
| 2572 |
mir_op: true |
| 2573 |
|
| 2574 |
# Round a single precision number and converts it to an int32. |
| 2575 |
# Implements Math.round(). |
| 2576 |
- name: RoundF |
| 2577 |
result_type: WordSized |
| 2578 |
operands: |
| 2579 |
input: WordSized |
| 2580 |
num_temps: 1 |
| 2581 |
mir_op: Round |
| 2582 |
|
| 2583 |
# Truncates a double precision number and converts it to an int32. |
| 2584 |
# Implements Math.trunc(). |
| 2585 |
- name: Trunc |
| 2586 |
result_type: WordSized |
| 2587 |
operands: |
| 2588 |
input: WordSized |
| 2589 |
|
| 2590 |
# Truncates a single precision number and converts it to an int32. |
| 2591 |
# Implements Math.trunc(). |
| 2592 |
- name: TruncF |
| 2593 |
result_type: WordSized |
| 2594 |
operands: |
| 2595 |
input: WordSized |
| 2596 |
|
| 2597 |
# Rounds a double precision number accordingly to mir()->roundingMode(), |
| 2598 |
# and keeps a double output. |
| 2599 |
- name: NearbyInt |
| 2600 |
result_type: WordSized |
| 2601 |
operands: |
| 2602 |
input: WordSized |
| 2603 |
mir_op: true |
| 2604 |
|
| 2605 |
# Rounds a single precision number accordingly to mir()->roundingMode(), |
| 2606 |
# and keeps a single output. |
| 2607 |
- name: NearbyIntF |
| 2608 |
result_type: WordSized |
| 2609 |
operands: |
| 2610 |
input: WordSized |
| 2611 |
mir_op: NearbyInt |
| 2612 |
|
| 2613 |
- name: NewLexicalEnvironmentObject |
| 2614 |
result_type: WordSized |
| 2615 |
num_temps: 1 |
| 2616 |
mir_op: true |
| 2617 |
|
| 2618 |
- name: NewClassBodyEnvironmentObject |
| 2619 |
result_type: WordSized |
| 2620 |
num_temps: 1 |
| 2621 |
mir_op: true |
| 2622 |
|
| 2623 |
- name: NewVarEnvironmentObject |
| 2624 |
result_type: WordSized |
| 2625 |
num_temps: 1 |
| 2626 |
mir_op: true |
| 2627 |
|
| 2628 |
- name: MegamorphicSetElement |
| 2629 |
operands: |
| 2630 |
object: WordSized |
| 2631 |
index: BoxedValue |
| 2632 |
value: BoxedValue |
| 2633 |
# On x86 we do not have enough registers to use 3 temps for this *and* take |
| 2634 |
# five words worth of operands. Since it's 32-bit, though, we get two |
| 2635 |
# registers from pushing `value`, which doesn't get used until the end |
| 2636 |
# anyway. This is somewhat klunky, but oh well. |
| 2637 |
#ifdef JS_CODEGEN_X86 |
| 2638 |
num_temps: 1 |
| 2639 |
#else |
| 2640 |
num_temps: 3 |
| 2641 |
#endif |
| 2642 |
call_instruction: true |
| 2643 |
mir_op: true |
| 2644 |
|
| 2645 |
- name: CallDeleteProperty |
| 2646 |
result_type: WordSized |
| 2647 |
operands: |
| 2648 |
value: BoxedValue |
| 2649 |
call_instruction: true |
| 2650 |
mir_op: DeleteProperty |
| 2651 |
|
| 2652 |
- name: CallDeleteElement |
| 2653 |
result_type: WordSized |
| 2654 |
operands: |
| 2655 |
value: BoxedValue |
| 2656 |
index: BoxedValue |
| 2657 |
call_instruction: true |
| 2658 |
mir_op: DeleteElement |
| 2659 |
|
| 2660 |
- name: ObjectToIterator |
| 2661 |
result_type: WordSized |
| 2662 |
operands: |
| 2663 |
object: WordSized |
| 2664 |
num_temps: 3 |
| 2665 |
mir_op: true |
| 2666 |
|
| 2667 |
- name: ValueToIterator |
| 2668 |
result_type: WordSized |
| 2669 |
operands: |
| 2670 |
value: BoxedValue |
| 2671 |
call_instruction: true |
| 2672 |
mir_op: ValueToIterator |
| 2673 |
|
| 2674 |
- name: IteratorHasIndicesAndBranch |
| 2675 |
successors: [ifTrue, ifFalse] |
| 2676 |
operands: |
| 2677 |
object: WordSized |
| 2678 |
iterator: WordSized |
| 2679 |
num_temps: 2 |
| 2680 |
|
| 2681 |
# Patchable jump to stubs generated for a SetProperty cache. |
| 2682 |
- name: SetPropertyCache |
| 2683 |
operands: |
| 2684 |
object: WordSized |
| 2685 |
id: BoxedValue |
| 2686 |
value: BoxedValue |
| 2687 |
# Takes an additional temp: this is intendend to be FloatReg0 to allow the |
| 2688 |
# actual cache code to safely clobber that value without save and restore. |
| 2689 |
num_temps: 2 |
| 2690 |
mir_op: true |
| 2691 |
|
| 2692 |
- name: GetIteratorCache |
| 2693 |
result_type: WordSized |
| 2694 |
operands: |
| 2695 |
value: BoxedValue |
| 2696 |
num_temps: 2 |
| 2697 |
mir_op: true |
| 2698 |
|
| 2699 |
- name: IsNoIterAndBranch |
| 2700 |
successors: [ifTrue, ifFalse] |
| 2701 |
operands: |
| 2702 |
input: BoxedValue |
| 2703 |
|
| 2704 |
- name: CloseIterCache |
| 2705 |
operands: |
| 2706 |
iter: WordSized |
| 2707 |
num_temps: 1 |
| 2708 |
mir_op: true |
| 2709 |
|
| 2710 |
- name: Int32ToIntPtr |
| 2711 |
result_type: WordSized |
| 2712 |
operands: |
| 2713 |
input: WordSized |
| 2714 |
mir_op: true |
| 2715 |
|
| 2716 |
- name: NonNegativeIntPtrToInt32 |
| 2717 |
result_type: WordSized |
| 2718 |
operands: |
| 2719 |
input: WordSized |
| 2720 |
|
| 2721 |
- name: IntPtrToDouble |
| 2722 |
result_type: WordSized |
| 2723 |
operands: |
| 2724 |
input: WordSized |
| 2725 |
|
| 2726 |
- name: AdjustDataViewLength |
| 2727 |
result_type: WordSized |
| 2728 |
operands: |
| 2729 |
input: WordSized |
| 2730 |
mir_op: true |
| 2731 |
|
| 2732 |
# Convert a Boolean to an Int64, following ToBigInt. |
| 2733 |
- name: BooleanToInt64 |
| 2734 |
result_type: Int64 |
| 2735 |
operands: |
| 2736 |
input: WordSized |
| 2737 |
mir_op: ToInt64 |
| 2738 |
|
| 2739 |
# Convert a String to an Int64, following ToBigInt. |
| 2740 |
- name: StringToInt64 |
| 2741 |
result_type: Int64 |
| 2742 |
operands: |
| 2743 |
input: WordSized |
| 2744 |
mir_op: ToInt64 |
| 2745 |
|
| 2746 |
# Simulate ToBigInt on a Value and produce a matching Int64. |
| 2747 |
- name: ValueToInt64 |
| 2748 |
result_type: Int64 |
| 2749 |
operands: |
| 2750 |
input: BoxedValue |
| 2751 |
num_temps: 1 |
| 2752 |
mir_op: ToInt64 |
| 2753 |
|
| 2754 |
# Truncate a BigInt to an unboxed int64. |
| 2755 |
- name: TruncateBigIntToInt64 |
| 2756 |
result_type: Int64 |
| 2757 |
operands: |
| 2758 |
input: WordSized |
| 2759 |
mir_op: true |
| 2760 |
|
| 2761 |
# Create a new BigInt* from an unboxed int64. |
| 2762 |
- name: Int64ToBigInt |
| 2763 |
result_type: WordSized |
| 2764 |
operands: |
| 2765 |
input: Int64 |
| 2766 |
num_temps64: 1 |
| 2767 |
|
| 2768 |
# Create a new BigInt* from an unboxed uint64. |
| 2769 |
- name: Uint64ToBigInt |
| 2770 |
result_type: WordSized |
| 2771 |
operands: |
| 2772 |
input: Int64 |
| 2773 |
num_temps: 1 |
| 2774 |
mir_op: Int64ToBigInt |
| 2775 |
|
| 2776 |
# Return intptr from an unboxed int64. Bails if the input exceeds intptr limits. |
| 2777 |
- name: Int64ToIntPtr |
| 2778 |
result_type: WordSized |
| 2779 |
operands: |
| 2780 |
input: Int64 |
| 2781 |
mir_op: true |
| 2782 |
|
| 2783 |
# Return an int64 from an intptr. |
| 2784 |
- name: IntPtrToInt64 |
| 2785 |
result_type: Int64 |
| 2786 |
operands: |
| 2787 |
input: WordSized |
| 2788 |
|
| 2789 |
# Generational write barrier used when writing an object to another object. |
| 2790 |
- name: PostWriteBarrierO |
| 2791 |
operands: |
| 2792 |
object: WordSized |
| 2793 |
value: WordSized |
| 2794 |
num_temps: 1 |
| 2795 |
mir_op: PostWriteBarrier |
| 2796 |
|
| 2797 |
# Generational write barrier used when writing a string to an object. |
| 2798 |
- name: PostWriteBarrierS |
| 2799 |
operands: |
| 2800 |
object: WordSized |
| 2801 |
value: WordSized |
| 2802 |
num_temps: 1 |
| 2803 |
mir_op: PostWriteBarrier |
| 2804 |
|
| 2805 |
# Generational write barrier used when writing a BigInt to an object. |
| 2806 |
- name: PostWriteBarrierBI |
| 2807 |
operands: |
| 2808 |
object: WordSized |
| 2809 |
value: WordSized |
| 2810 |
num_temps: 1 |
| 2811 |
mir_op: PostWriteBarrier |
| 2812 |
|
| 2813 |
# Generational write barrier used when writing a value to another object. |
| 2814 |
- name: PostWriteBarrierV |
| 2815 |
operands: |
| 2816 |
object: WordSized |
| 2817 |
value: BoxedValue |
| 2818 |
num_temps: 1 |
| 2819 |
mir_op: PostWriteBarrier |
| 2820 |
|
| 2821 |
# Generational write barrier used when writing an object to another object's |
| 2822 |
# elements. |
| 2823 |
- name: PostWriteElementBarrierO |
| 2824 |
operands: |
| 2825 |
object: WordSized |
| 2826 |
value: WordSized |
| 2827 |
index: WordSized |
| 2828 |
num_temps: 1 |
| 2829 |
mir_op: PostWriteElementBarrier |
| 2830 |
|
| 2831 |
# Generational write barrier used when writing a string to an object's |
| 2832 |
# elements. |
| 2833 |
- name: PostWriteElementBarrierS |
| 2834 |
operands: |
| 2835 |
object: WordSized |
| 2836 |
value: WordSized |
| 2837 |
index: WordSized |
| 2838 |
num_temps: 1 |
| 2839 |
mir_op: PostWriteElementBarrier |
| 2840 |
|
| 2841 |
# Generational write barrier used when writing a BigInt to an object's |
| 2842 |
# elements. |
| 2843 |
- name: PostWriteElementBarrierBI |
| 2844 |
operands: |
| 2845 |
object: WordSized |
| 2846 |
value: WordSized |
| 2847 |
index: WordSized |
| 2848 |
num_temps: 1 |
| 2849 |
mir_op: PostWriteElementBarrier |
| 2850 |
|
| 2851 |
# Generational write barrier used when writing a value to another object's |
| 2852 |
# elements. |
| 2853 |
- name: PostWriteElementBarrierV |
| 2854 |
operands: |
| 2855 |
object: WordSized |
| 2856 |
index: WordSized |
| 2857 |
value: BoxedValue |
| 2858 |
num_temps: 1 |
| 2859 |
mir_op: PostWriteElementBarrier |
| 2860 |
|
| 2861 |
# Assert in debug mode that a post write barrier can be elided. |
| 2862 |
- name: AssertCanElidePostWriteBarrier |
| 2863 |
operands: |
| 2864 |
object: WordSized |
| 2865 |
value: BoxedValue |
| 2866 |
num_temps: 1 |
| 2867 |
|
| 2868 |
# Guard against an object's identity. |
| 2869 |
- name: GuardObjectIdentity |
| 2870 |
operands: |
| 2871 |
input: WordSized |
| 2872 |
expected: WordSized |
| 2873 |
mir_op: true |
| 2874 |
|
| 2875 |
# Guard against an function's identity. |
| 2876 |
- name: GuardSpecificFunction |
| 2877 |
operands: |
| 2878 |
input: WordSized |
| 2879 |
expected: WordSized |
| 2880 |
|
| 2881 |
- name: GuardSpecificAtom |
| 2882 |
operands: |
| 2883 |
str: WordSized |
| 2884 |
num_temps: 1 |
| 2885 |
mir_op: true |
| 2886 |
|
| 2887 |
- name: GuardSpecificSymbol |
| 2888 |
operands: |
| 2889 |
symbol: WordSized |
| 2890 |
mir_op: true |
| 2891 |
|
| 2892 |
- name: GuardSpecificInt32 |
| 2893 |
operands: |
| 2894 |
num: WordSized |
| 2895 |
mir_op: true |
| 2896 |
|
| 2897 |
- name: GuardProto |
| 2898 |
operands: |
| 2899 |
object: WordSized |
| 2900 |
expected: WordSized |
| 2901 |
num_temps: 1 |
| 2902 |
|
| 2903 |
- name: GuardNullProto |
| 2904 |
operands: |
| 2905 |
object: WordSized |
| 2906 |
num_temps: 1 |
| 2907 |
|
| 2908 |
- name: GuardIsNativeObject |
| 2909 |
operands: |
| 2910 |
object: WordSized |
| 2911 |
num_temps: 1 |
| 2912 |
|
| 2913 |
- name: GuardGlobalGeneration |
| 2914 |
mir_op: true |
| 2915 |
num_temps: 1 |
| 2916 |
|
| 2917 |
- name: GuardFuse |
| 2918 |
mir_op: true |
| 2919 |
num_temps: 1 |
| 2920 |
|
| 2921 |
- name: GuardIsProxy |
| 2922 |
operands: |
| 2923 |
object: WordSized |
| 2924 |
num_temps: 1 |
| 2925 |
|
| 2926 |
- name: GuardIsNotProxy |
| 2927 |
operands: |
| 2928 |
object: WordSized |
| 2929 |
num_temps: 1 |
| 2930 |
|
| 2931 |
- name: GuardIsNotDOMProxy |
| 2932 |
operands: |
| 2933 |
proxy: WordSized |
| 2934 |
num_temps: 1 |
| 2935 |
|
| 2936 |
- name: ProxyHasProp |
| 2937 |
result_type: BoxedValue |
| 2938 |
operands: |
| 2939 |
proxy: WordSized |
| 2940 |
id: BoxedValue |
| 2941 |
call_instruction: true |
| 2942 |
mir_op: true |
| 2943 |
|
| 2944 |
- name: GuardIsNotArrayBufferMaybeShared |
| 2945 |
operands: |
| 2946 |
object: WordSized |
| 2947 |
num_temps: 1 |
| 2948 |
|
| 2949 |
- name: GuardIsTypedArray |
| 2950 |
operands: |
| 2951 |
object: WordSized |
| 2952 |
num_temps: 1 |
| 2953 |
|
| 2954 |
- name: GuardIsFixedLengthTypedArray |
| 2955 |
operands: |
| 2956 |
object: WordSized |
| 2957 |
num_temps: 1 |
| 2958 |
|
| 2959 |
- name: GuardIsResizableTypedArray |
| 2960 |
operands: |
| 2961 |
object: WordSized |
| 2962 |
num_temps: 1 |
| 2963 |
|
| 2964 |
- name: GuardHasProxyHandler |
| 2965 |
operands: |
| 2966 |
object: WordSized |
| 2967 |
mir_op: true |
| 2968 |
|
| 2969 |
- name: GuardNoDenseElements |
| 2970 |
operands: |
| 2971 |
input: WordSized |
| 2972 |
num_temps: 1 |
| 2973 |
|
| 2974 |
- name: InCache |
| 2975 |
result_type: WordSized |
| 2976 |
operands: |
| 2977 |
lhs: BoxedValue |
| 2978 |
rhs: WordSized |
| 2979 |
num_temps: 1 |
| 2980 |
mir_op: true |
| 2981 |
|
| 2982 |
- name: HasOwnCache |
| 2983 |
result_type: WordSized |
| 2984 |
operands: |
| 2985 |
value: BoxedValue |
| 2986 |
id: BoxedValue |
| 2987 |
mir_op: true |
| 2988 |
|
| 2989 |
- name: CheckPrivateFieldCache |
| 2990 |
result_type: WordSized |
| 2991 |
operands: |
| 2992 |
value: BoxedValue |
| 2993 |
id: BoxedValue |
| 2994 |
mir_op: true |
| 2995 |
|
| 2996 |
- name: InstanceOfO |
| 2997 |
result_type: WordSized |
| 2998 |
operands: |
| 2999 |
lhs: WordSized |
| 3000 |
rhs: WordSized |
| 3001 |
mir_op: InstanceOf |
| 3002 |
|
| 3003 |
- name: InstanceOfV |
| 3004 |
result_type: WordSized |
| 3005 |
operands: |
| 3006 |
lhs: BoxedValue |
| 3007 |
rhs: WordSized |
| 3008 |
mir_op: InstanceOf |
| 3009 |
|
| 3010 |
- name: IsCallableO |
| 3011 |
result_type: WordSized |
| 3012 |
operands: |
| 3013 |
object: WordSized |
| 3014 |
mir_op: IsCallable |
| 3015 |
|
| 3016 |
- name: IsCallableV |
| 3017 |
result_type: WordSized |
| 3018 |
operands: |
| 3019 |
object: BoxedValue |
| 3020 |
num_temps: 1 |
| 3021 |
mir_op: IsCallable |
| 3022 |
|
| 3023 |
- name: IsArrayO |
| 3024 |
result_type: WordSized |
| 3025 |
operands: |
| 3026 |
object: WordSized |
| 3027 |
mir_op: IsArray |
| 3028 |
|
| 3029 |
- name: IsArrayV |
| 3030 |
result_type: WordSized |
| 3031 |
operands: |
| 3032 |
value: BoxedValue |
| 3033 |
num_temps: 1 |
| 3034 |
mir_op: IsArray |
| 3035 |
|
| 3036 |
- name: IsTypedArray |
| 3037 |
result_type: WordSized |
| 3038 |
operands: |
| 3039 |
object: WordSized |
| 3040 |
mir_op: true |
| 3041 |
|
| 3042 |
- name: IsObjectAndBranch |
| 3043 |
successors: [ifTrue, ifFalse] |
| 3044 |
operands: |
| 3045 |
input: BoxedValue |
| 3046 |
|
| 3047 |
- name: IsNullOrUndefinedAndBranch |
| 3048 |
successors: [ifTrue, ifFalse] |
| 3049 |
operands: |
| 3050 |
input: BoxedValue |
| 3051 |
|
| 3052 |
- name: HasClass |
| 3053 |
result_type: WordSized |
| 3054 |
operands: |
| 3055 |
lhs: WordSized |
| 3056 |
mir_op: true |
| 3057 |
|
| 3058 |
- name: GuardToClass |
| 3059 |
result_type: WordSized |
| 3060 |
operands: |
| 3061 |
lhs: WordSized |
| 3062 |
num_temps: 1 |
| 3063 |
mir_op: true |
| 3064 |
|
| 3065 |
- name: GuardToEitherClass |
| 3066 |
result_type: WordSized |
| 3067 |
operands: |
| 3068 |
lhs: WordSized |
| 3069 |
num_temps: 1 |
| 3070 |
mir_op: true |
| 3071 |
|
| 3072 |
- name: GuardToFunction |
| 3073 |
result_type: WordSized |
| 3074 |
operands: |
| 3075 |
lhs: WordSized |
| 3076 |
num_temps: 1 |
| 3077 |
mir_op: true |
| 3078 |
|
| 3079 |
- name: WasmSelect |
| 3080 |
result_type: WordSized |
| 3081 |
operands: |
| 3082 |
trueExpr: WordSized |
| 3083 |
falseExpr: WordSized |
| 3084 |
condExpr: WordSized |
| 3085 |
mir_op: true |
| 3086 |
|
| 3087 |
- name: WasmSelectI64 |
| 3088 |
result_type: Int64 |
| 3089 |
operands: |
| 3090 |
trueExpr: Int64 |
| 3091 |
falseExpr: Int64 |
| 3092 |
condExpr: WordSized |
| 3093 |
mir_op: WasmSelect |
| 3094 |
|
| 3095 |
- name: WasmCompareAndSelect |
| 3096 |
result_type: WordSized |
| 3097 |
operands: |
| 3098 |
leftExpr: WordSized |
| 3099 |
rightExpr: WordSized |
| 3100 |
ifTrueExpr: WordSized |
| 3101 |
ifFalseExpr: WordSized |
| 3102 |
arguments: |
| 3103 |
compareType: MCompare::CompareType |
| 3104 |
jsop: JSOp |
| 3105 |
mir_op: WasmSelect |
| 3106 |
|
| 3107 |
- name: WasmAddOffset |
| 3108 |
result_type: WordSized |
| 3109 |
operands: |
| 3110 |
base: WordSized |
| 3111 |
mir_op: true |
| 3112 |
|
| 3113 |
- name: WasmAddOffset64 |
| 3114 |
result_type: Int64 |
| 3115 |
operands: |
| 3116 |
base: Int64 |
| 3117 |
mir_op: WasmAddOffset |
| 3118 |
|
| 3119 |
- name: WasmBoundsCheck |
| 3120 |
result_type: WordSized |
| 3121 |
operands: |
| 3122 |
ptr: WordSized |
| 3123 |
boundsCheckLimit: WordSized |
| 3124 |
mir_op: true |
| 3125 |
|
| 3126 |
- name: WasmBoundsCheck64 |
| 3127 |
result_type: Int64 |
| 3128 |
operands: |
| 3129 |
ptr: Int64 |
| 3130 |
boundsCheckLimit: Int64 |
| 3131 |
mir_op: WasmBoundsCheck |
| 3132 |
|
| 3133 |
- name: WasmExtendU32Index |
| 3134 |
result_type: WordSized |
| 3135 |
operands: |
| 3136 |
input: WordSized |
| 3137 |
mir_op: true |
| 3138 |
|
| 3139 |
- name: WasmWrapU32Index |
| 3140 |
result_type: WordSized |
| 3141 |
operands: |
| 3142 |
input: WordSized |
| 3143 |
mir_op: true |
| 3144 |
|
| 3145 |
- name: WasmAlignmentCheck |
| 3146 |
operands: |
| 3147 |
ptr: WordSized |
| 3148 |
mir_op: true |
| 3149 |
|
| 3150 |
- name: WasmAlignmentCheck64 |
| 3151 |
operands: |
| 3152 |
ptr: Int64 |
| 3153 |
mir_op: WasmAlignmentCheck |
| 3154 |
|
| 3155 |
- name: WasmLoadInstance |
| 3156 |
result_type: WordSized |
| 3157 |
operands: |
| 3158 |
instance: WordSized |
| 3159 |
mir_op: true |
| 3160 |
|
| 3161 |
- name: WasmLoadInstance64 |
| 3162 |
result_type: Int64 |
| 3163 |
operands: |
| 3164 |
instance: WordSized |
| 3165 |
mir_op: WasmLoadInstance |
| 3166 |
|
| 3167 |
- name: WasmHeapReg |
| 3168 |
result_type: WordSized |
| 3169 |
mir_op: true |
| 3170 |
|
| 3171 |
- name: WasmLoad |
| 3172 |
result_type: WordSized |
| 3173 |
operands: |
| 3174 |
ptr: WordSized |
| 3175 |
memoryBase: WordSized |
| 3176 |
#if defined(JS_CODEGEN_ARM) || defined(JS_CODEGEN_MIPS64) || defined(JS_CODEGEN_LOONG64) || defined(JS_CODEGEN_RISCV64) |
| 3177 |
num_temps: 1 |
| 3178 |
#endif |
| 3179 |
mir_op: true |
| 3180 |
|
| 3181 |
- name: WasmLoadI64 |
| 3182 |
result_type: Int64 |
| 3183 |
operands: |
| 3184 |
ptr: WordSized |
| 3185 |
memoryBase: WordSized |
| 3186 |
#ifdef JS_CODEGEN_ARM |
| 3187 |
num_temps: 2 |
| 3188 |
#elif defined(JS_CODEGEN_MIPS64) || defined(JS_CODEGEN_LOONG64) || defined(JS_CODEGEN_RISCV64) |
| 3189 |
num_temps: 1 |
| 3190 |
#endif |
| 3191 |
mir_op: WasmLoad |
| 3192 |
|
| 3193 |
- name: WasmStore |
| 3194 |
operands: |
| 3195 |
ptr: WordSized |
| 3196 |
value: WordSized |
| 3197 |
memoryBase: WordSized |
| 3198 |
#if defined(JS_CODEGEN_ARM) || defined(JS_CODEGEN_MIPS64) || defined(JS_CODEGEN_LOONG64) || defined(JS_CODEGEN_RISCV64) |
| 3199 |
num_temps: 1 |
| 3200 |
#endif |
| 3201 |
mir_op: true |
| 3202 |
|
| 3203 |
- name: WasmStoreI64 |
| 3204 |
operands: |
| 3205 |
ptr: WordSized |
| 3206 |
value: Int64 |
| 3207 |
memoryBase: WordSized |
| 3208 |
#if defined(JS_CODEGEN_ARM) || defined(JS_CODEGEN_MIPS64) || defined(JS_CODEGEN_LOONG64) || defined(JS_CODEGEN_RISCV64) |
| 3209 |
num_temps: 1 |
| 3210 |
#endif |
| 3211 |
mir_op: WasmStore |
| 3212 |
|
| 3213 |
- name: AsmJSLoadHeap |
| 3214 |
result_type: WordSized |
| 3215 |
operands: |
| 3216 |
ptr: WordSized |
| 3217 |
boundsCheckLimit: WordSized |
| 3218 |
memoryBase: WordSized |
| 3219 |
mir_op: true |
| 3220 |
|
| 3221 |
- name: AsmJSStoreHeap |
| 3222 |
result_type: WordSized |
| 3223 |
operands: |
| 3224 |
ptr: WordSized |
| 3225 |
value: WordSized |
| 3226 |
boundsCheckLimit: WordSized |
| 3227 |
memoryBase: WordSized |
| 3228 |
mir_op: true |
| 3229 |
|
| 3230 |
- name: WasmCompareExchangeHeap |
| 3231 |
result_type: WordSized |
| 3232 |
operands: |
| 3233 |
ptr: WordSized |
| 3234 |
oldValue: WordSized |
| 3235 |
newValue: WordSized |
| 3236 |
memoryBase: WordSized |
| 3237 |
#ifdef JS_CODEGEN_X86 |
| 3238 |
num_temps: 1 |
| 3239 |
#elif defined(JS_CODEGEN_MIPS64) || defined(JS_CODEGEN_LOONG64) || defined(JS_CODEGEN_RISCV64) |
| 3240 |
# Temp that may be used on LL/SC platforms for extract/insert bits of word. |
| 3241 |
num_temps: 3 |
| 3242 |
#endif |
| 3243 |
mir_op: true |
| 3244 |
|
| 3245 |
- name: WasmAtomicExchangeHeap |
| 3246 |
result_type: WordSized |
| 3247 |
operands: |
| 3248 |
ptr: WordSized |
| 3249 |
value: WordSized |
| 3250 |
memoryBase: WordSized |
| 3251 |
#ifdef JS_CODEGEN_X86 |
| 3252 |
num_temps: 1 |
| 3253 |
#elif defined(JS_CODEGEN_MIPS64) || defined(JS_CODEGEN_LOONG64) || defined(JS_CODEGEN_RISCV64) |
| 3254 |
# Temp that may be used on LL/SC platforms for extract/insert bits of word. |
| 3255 |
num_temps: 3 |
| 3256 |
#endif |
| 3257 |
mir_op: true |
| 3258 |
|
| 3259 |
- name: WasmAtomicBinopHeap |
| 3260 |
result_type: WordSized |
| 3261 |
operands: |
| 3262 |
ptr: WordSized |
| 3263 |
value: WordSized |
| 3264 |
memoryBase: WordSized |
| 3265 |
#if defined(JS_CODEGEN_MIPS64) || defined(JS_CODEGEN_LOONG64) || defined(JS_CODEGEN_RISCV64) |
| 3266 |
# Temp that may be used on LL/SC platforms for extract/insert bits of word. |
| 3267 |
num_temps: 3 |
| 3268 |
#elifdef JS_CODEGEN_X86 |
| 3269 |
# Additional temp to hold a computed address. |
| 3270 |
num_temps: 2 |
| 3271 |
#else |
| 3272 |
num_temps: 1 |
| 3273 |
#endif |
| 3274 |
mir_op: true |
| 3275 |
|
| 3276 |
# Atomic binary operation where the result is discarded. |
| 3277 |
- name: WasmAtomicBinopHeapForEffect |
| 3278 |
operands: |
| 3279 |
ptr: WordSized |
| 3280 |
value: WordSized |
| 3281 |
memoryBase: WordSized |
| 3282 |
#if defined(JS_CODEGEN_MIPS64) || defined(JS_CODEGEN_LOONG64) || defined(JS_CODEGEN_RISCV64) |
| 3283 |
# Temp that may be used on LL/SC platforms for extract/insert bits of word. |
| 3284 |
num_temps: 3 |
| 3285 |
#elif defined(JS_CODEGEN_X86) || defined(JS_CODEGEN_ARM) || defined(JS_CODEGEN_ARM64) |
| 3286 |
num_temps: 1 |
| 3287 |
#endif |
| 3288 |
mir_op: WasmAtomicBinopHeap |
| 3289 |
|
| 3290 |
- name: WasmLoadSlot |
| 3291 |
result_type: WordSized |
| 3292 |
operands: |
| 3293 |
containerRef: WordSized |
| 3294 |
arguments: |
| 3295 |
offset: size_t |
| 3296 |
type: MIRType |
| 3297 |
wideningOp: MWideningOp |
| 3298 |
maybeTrap: wasm::MaybeTrapSiteDesc |
| 3299 |
|
| 3300 |
- name: WasmLoadElement |
| 3301 |
result_type: WordSized |
| 3302 |
operands: |
| 3303 |
base: WordSized |
| 3304 |
index: WordSized |
| 3305 |
arguments: |
| 3306 |
type: MIRType |
| 3307 |
wideningOp: MWideningOp |
| 3308 |
scale: Scale |
| 3309 |
maybeTrap: wasm::MaybeTrapSiteDesc |
| 3310 |
num_temps: 1 |
| 3311 |
|
| 3312 |
- name: WasmLoadSlotI64 |
| 3313 |
result_type: Int64 |
| 3314 |
operands: |
| 3315 |
containerRef: WordSized |
| 3316 |
arguments: |
| 3317 |
offset: size_t |
| 3318 |
maybeTrap: wasm::MaybeTrapSiteDesc |
| 3319 |
|
| 3320 |
- name: WasmLoadElementI64 |
| 3321 |
result_type: Int64 |
| 3322 |
operands: |
| 3323 |
base: WordSized |
| 3324 |
index: WordSized |
| 3325 |
arguments: |
| 3326 |
maybeTrap: wasm::MaybeTrapSiteDesc |
| 3327 |
|
| 3328 |
- name: WasmStoreSlot |
| 3329 |
operands: |
| 3330 |
value: WordSized |
| 3331 |
containerRef: WordSized |
| 3332 |
arguments: |
| 3333 |
offset: size_t |
| 3334 |
type: MIRType |
| 3335 |
narrowingOp: MNarrowingOp |
| 3336 |
maybeTrap: wasm::MaybeTrapSiteDesc |
| 3337 |
|
| 3338 |
- name: WasmStoreSlotI64 |
| 3339 |
operands: |
| 3340 |
value: Int64 |
| 3341 |
containerRef: WordSized |
| 3342 |
arguments: |
| 3343 |
offset: size_t |
| 3344 |
maybeTrap: wasm::MaybeTrapSiteDesc |
| 3345 |
|
| 3346 |
- name: WasmStoreStackResult |
| 3347 |
operands: |
| 3348 |
value: WordSized |
| 3349 |
stackResultsArea: WordSized |
| 3350 |
arguments: |
| 3351 |
offset: size_t |
| 3352 |
type: MIRType |
| 3353 |
|
| 3354 |
- name: WasmStoreStackResultI64 |
| 3355 |
operands: |
| 3356 |
value: Int64 |
| 3357 |
stackResultsArea: WordSized |
| 3358 |
arguments: |
| 3359 |
offset: size_t |
| 3360 |
|
| 3361 |
- name: WasmStoreElement |
| 3362 |
operands: |
| 3363 |
base: WordSized |
| 3364 |
index: WordSized |
| 3365 |
value: WordSized |
| 3366 |
arguments: |
| 3367 |
type: MIRType |
| 3368 |
narrowingOp: MNarrowingOp |
| 3369 |
scale: Scale |
| 3370 |
maybeTrap: wasm::MaybeTrapSiteDesc |
| 3371 |
num_temps: 1 |
| 3372 |
|
| 3373 |
- name: WasmStoreElementI64 |
| 3374 |
operands: |
| 3375 |
base: WordSized |
| 3376 |
index: WordSized |
| 3377 |
value: Int64 |
| 3378 |
arguments: |
| 3379 |
maybeTrap: wasm::MaybeTrapSiteDesc |
| 3380 |
|
| 3381 |
- name: WasmStoreElementRef |
| 3382 |
operands: |
| 3383 |
instance: WordSized |
| 3384 |
base: WordSized |
| 3385 |
index: WordSized |
| 3386 |
value: WordSized |
| 3387 |
arguments: |
| 3388 |
maybeTrap: wasm::MaybeTrapSiteDesc |
| 3389 |
preBarrierKind: WasmPreBarrierKind |
| 3390 |
num_temps: 2 |
| 3391 |
|
| 3392 |
- name: WasmLoadTableElement |
| 3393 |
result_type: WordSized |
| 3394 |
operands: |
| 3395 |
elements: WordSized |
| 3396 |
index: WordSized |
| 3397 |
|
| 3398 |
- name: WasmDerivedPointer |
| 3399 |
result_type: WordSized |
| 3400 |
operands: |
| 3401 |
base: WordSized |
| 3402 |
mir_op: true |
| 3403 |
|
| 3404 |
- name: WasmDerivedIndexPointer |
| 3405 |
result_type: WordSized |
| 3406 |
operands: |
| 3407 |
base: WordSized |
| 3408 |
index: WordSized |
| 3409 |
mir_op: true |
| 3410 |
|
| 3411 |
- name: WasmStoreRef |
| 3412 |
operands: |
| 3413 |
instance: WordSized |
| 3414 |
valueBase: WordSized |
| 3415 |
value: WordSized |
| 3416 |
arguments: |
| 3417 |
offset: uint32_t |
| 3418 |
maybeTrap: wasm::MaybeTrapSiteDesc |
| 3419 |
preBarrierKind: WasmPreBarrierKind |
| 3420 |
num_temps: 1 |
| 3421 |
mir_op: true |
| 3422 |
|
| 3423 |
# Generational write barrier used when writing an object to another object. |
| 3424 |
- name: WasmPostWriteBarrierWholeCell |
| 3425 |
operands: |
| 3426 |
instance: WordSized |
| 3427 |
object: WordSized |
| 3428 |
value: WordSized |
| 3429 |
num_temps: 1 |
| 3430 |
mir_op: true |
| 3431 |
|
| 3432 |
# Ditto, but with a scaled index instead of a constant offset. |
| 3433 |
- name: WasmPostWriteBarrierEdgeAtIndex |
| 3434 |
operands: |
| 3435 |
instance: WordSized |
| 3436 |
object: WordSized |
| 3437 |
valueBase: WordSized |
| 3438 |
index: WordSized |
| 3439 |
value: WordSized |
| 3440 |
arguments: |
| 3441 |
elemSize: uint32_t |
| 3442 |
num_temps: 1 |
| 3443 |
mir_op: true |
| 3444 |
|
| 3445 |
- name: WasmParameter |
| 3446 |
result_type: WordSized |
| 3447 |
|
| 3448 |
- name: WasmParameterI64 |
| 3449 |
result_type: Int64 |
| 3450 |
|
| 3451 |
- name: WasmReturn |
| 3452 |
operands: |
| 3453 |
rval: WordSized |
| 3454 |
instance: WordSized |
| 3455 |
|
| 3456 |
- name: WasmReturnI64 |
| 3457 |
operands: |
| 3458 |
rval: Int64 |
| 3459 |
instance: WordSized |
| 3460 |
|
| 3461 |
- name: WasmReturnVoid |
| 3462 |
operands: |
| 3463 |
rval: WordSized |
| 3464 |
|
| 3465 |
- name: WasmStackArg |
| 3466 |
operands: |
| 3467 |
arg: WordSized |
| 3468 |
mir_op: true |
| 3469 |
|
| 3470 |
- name: WasmStackArgI64 |
| 3471 |
operands: |
| 3472 |
arg: Int64 |
| 3473 |
mir_op: WasmStackArg |
| 3474 |
|
| 3475 |
- name: WasmNullConstant |
| 3476 |
result_type: WordSized |
| 3477 |
|
| 3478 |
- name: WasmCallIndirectAdjunctSafepoint |
| 3479 |
gen_boilerplate: false |
| 3480 |
|
| 3481 |
- name: WasmCall |
| 3482 |
gen_boilerplate: false |
| 3483 |
|
| 3484 |
- name: WasmRegisterResult |
| 3485 |
gen_boilerplate: false |
| 3486 |
|
| 3487 |
- name: WasmRegisterPairResult |
| 3488 |
gen_boilerplate: false |
| 3489 |
|
| 3490 |
- name: WasmStackResultArea |
| 3491 |
result_type: WordSized |
| 3492 |
num_temps: 1 |
| 3493 |
mir_op: true |
| 3494 |
|
| 3495 |
- name: WasmStackResult |
| 3496 |
gen_boilerplate: false |
| 3497 |
|
| 3498 |
- name: WasmStackResult64 |
| 3499 |
gen_boilerplate: false |
| 3500 |
|
| 3501 |
- name: AssertRangeI |
| 3502 |
operands: |
| 3503 |
input: WordSized |
| 3504 |
mir_op: AssertRange |
| 3505 |
|
| 3506 |
- name: AssertRangeD |
| 3507 |
operands: |
| 3508 |
input: WordSized |
| 3509 |
num_temps: 1 |
| 3510 |
mir_op: AssertRange |
| 3511 |
|
| 3512 |
- name: AssertRangeF |
| 3513 |
operands: |
| 3514 |
input: WordSized |
| 3515 |
num_temps: 2 |
| 3516 |
mir_op: AssertRange |
| 3517 |
|
| 3518 |
- name: AssertRangeV |
| 3519 |
operands: |
| 3520 |
input: BoxedValue |
| 3521 |
num_temps: 3 |
| 3522 |
mir_op: AssertRange |
| 3523 |
|
| 3524 |
- name: AssertClass |
| 3525 |
operands: |
| 3526 |
input: WordSized |
| 3527 |
num_temps: 1 |
| 3528 |
mir_op: true |
| 3529 |
|
| 3530 |
- name: AssertShape |
| 3531 |
operands: |
| 3532 |
input: WordSized |
| 3533 |
mir_op: true |
| 3534 |
|
| 3535 |
- name: GuardValue |
| 3536 |
operands: |
| 3537 |
input: BoxedValue |
| 3538 |
num_temps: 1 |
| 3539 |
mir_op: true |
| 3540 |
|
| 3541 |
- name: GuardNullOrUndefined |
| 3542 |
operands: |
| 3543 |
input: BoxedValue |
| 3544 |
mir_op: true |
| 3545 |
|
| 3546 |
- name: GuardIsNotObject |
| 3547 |
operands: |
| 3548 |
input: BoxedValue |
| 3549 |
mir_op: true |
| 3550 |
|
| 3551 |
- name: GuardFunctionFlags |
| 3552 |
operands: |
| 3553 |
function: WordSized |
| 3554 |
mir_op: true |
| 3555 |
|
| 3556 |
- name: GuardFunctionIsNonBuiltinCtor |
| 3557 |
operands: |
| 3558 |
function: WordSized |
| 3559 |
num_temps: 1 |
| 3560 |
|
| 3561 |
- name: GuardFunctionKind |
| 3562 |
operands: |
| 3563 |
function: WordSized |
| 3564 |
num_temps: 1 |
| 3565 |
mir_op: true |
| 3566 |
|
| 3567 |
- name: GuardFunctionScript |
| 3568 |
operands: |
| 3569 |
function: WordSized |
| 3570 |
mir_op: true |
| 3571 |
|
| 3572 |
- name: LexicalCheck |
| 3573 |
operands: |
| 3574 |
input: BoxedValue |
| 3575 |
mir_op: true |
| 3576 |
|
| 3577 |
- name: ThrowRuntimeLexicalError |
| 3578 |
call_instruction: true |
| 3579 |
mir_op: true |
| 3580 |
|
| 3581 |
- name: ThrowMsg |
| 3582 |
call_instruction: true |
| 3583 |
mir_op: true |
| 3584 |
|
| 3585 |
- name: MemoryBarrier |
| 3586 |
arguments: |
| 3587 |
barrier: jit::MemoryBarrier |
| 3588 |
|
| 3589 |
- name: Debugger |
| 3590 |
num_temps: 1 |
| 3591 |
call_instruction: true |
| 3592 |
|
| 3593 |
# Math.random() |
| 3594 |
- name: Random |
| 3595 |
result_type: WordSized |
| 3596 |
num_temps: 1 |
| 3597 |
num_temps64: 2 |
| 3598 |
mir_op: true |
| 3599 |
|
| 3600 |
- name: CheckObjCoercible |
| 3601 |
operands: |
| 3602 |
value: BoxedValue |
| 3603 |
|
| 3604 |
- name: CheckClassHeritage |
| 3605 |
operands: |
| 3606 |
heritage: BoxedValue |
| 3607 |
num_temps: 2 |
| 3608 |
|
| 3609 |
- name: CheckThis |
| 3610 |
operands: |
| 3611 |
value: BoxedValue |
| 3612 |
|
| 3613 |
- name: CheckThisReinit |
| 3614 |
operands: |
| 3615 |
thisValue: BoxedValue |
| 3616 |
|
| 3617 |
- name: Generator |
| 3618 |
result_type: WordSized |
| 3619 |
operands: |
| 3620 |
callee: WordSized |
| 3621 |
environmentChain: WordSized |
| 3622 |
argsObject: WordSized |
| 3623 |
call_instruction: true |
| 3624 |
mir_op: true |
| 3625 |
|
| 3626 |
- name: AsyncResolve |
| 3627 |
result_type: WordSized |
| 3628 |
operands: |
| 3629 |
generator: WordSized |
| 3630 |
value: BoxedValue |
| 3631 |
call_instruction: true |
| 3632 |
mir_op: true |
| 3633 |
|
| 3634 |
- name: AsyncReject |
| 3635 |
result_type: WordSized |
| 3636 |
operands: |
| 3637 |
generator: WordSized |
| 3638 |
reason: BoxedValue |
| 3639 |
stack: BoxedValue |
| 3640 |
call_instruction: true |
| 3641 |
mir_op: true |
| 3642 |
|
| 3643 |
- name: AsyncAwait |
| 3644 |
result_type: WordSized |
| 3645 |
operands: |
| 3646 |
value: BoxedValue |
| 3647 |
generator: WordSized |
| 3648 |
call_instruction: true |
| 3649 |
mir_op: true |
| 3650 |
|
| 3651 |
- name: CanSkipAwait |
| 3652 |
result_type: WordSized |
| 3653 |
operands: |
| 3654 |
value: BoxedValue |
| 3655 |
call_instruction: true |
| 3656 |
mir_op: true |
| 3657 |
|
| 3658 |
- name: MaybeExtractAwaitValue |
| 3659 |
result_type: BoxedValue |
| 3660 |
operands: |
| 3661 |
value: BoxedValue |
| 3662 |
canSkip: WordSized |
| 3663 |
call_instruction: true |
| 3664 |
mir_op: true |
| 3665 |
|
| 3666 |
- name: DebugCheckSelfHosted |
| 3667 |
operands: |
| 3668 |
value: BoxedValue |
| 3669 |
call_instruction: true |
| 3670 |
|
| 3671 |
- name: GuardArrayIsPacked |
| 3672 |
operands: |
| 3673 |
array: WordSized |
| 3674 |
num_temps: 2 |
| 3675 |
mir_op: true |
| 3676 |
|
| 3677 |
- name: ObjectStaticProto |
| 3678 |
result_type: WordSized |
| 3679 |
operands: |
| 3680 |
object: WordSized |
| 3681 |
|
| 3682 |
- name: GuardTagNotEqual |
| 3683 |
operands: |
| 3684 |
lhs: WordSized |
| 3685 |
rhs: WordSized |
| 3686 |
|
| 3687 |
- name: GuardHasGetterSetter |
| 3688 |
operands: |
| 3689 |
object: WordSized |
| 3690 |
num_temps: 3 |
| 3691 |
call_instruction: true |
| 3692 |
mir_op: true |
| 3693 |
|
| 3694 |
- name: GuardIsExtensible |
| 3695 |
operands: |
| 3696 |
object: WordSized |
| 3697 |
num_temps: 1 |
| 3698 |
|
| 3699 |
- name: GuardInt32IsNonNegative |
| 3700 |
operands: |
| 3701 |
index: WordSized |
| 3702 |
|
| 3703 |
- name: GuardInt32Range |
| 3704 |
operands: |
| 3705 |
input: WordSized |
| 3706 |
mir_op: true |
| 3707 |
|
| 3708 |
- name: GuardIndexIsNotDenseElement |
| 3709 |
operands: |
| 3710 |
object: WordSized |
| 3711 |
index: WordSized |
| 3712 |
num_temps: 2 |
| 3713 |
|
| 3714 |
- name: GuardIndexIsValidUpdateOrAdd |
| 3715 |
operands: |
| 3716 |
object: WordSized |
| 3717 |
index: WordSized |
| 3718 |
num_temps: 2 |
| 3719 |
|
| 3720 |
- name: GuardNonGCThing |
| 3721 |
operands: |
| 3722 |
input: BoxedValue |
| 3723 |
|
| 3724 |
# Canonicalize a double value. |
| 3725 |
- name: CanonicalizeNaND |
| 3726 |
result_type: WordSized |
| 3727 |
operands: |
| 3728 |
input: WordSized |
| 3729 |
|
| 3730 |
# Canonicalize a float32 value. |
| 3731 |
- name: CanonicalizeNaNF |
| 3732 |
result_type: WordSized |
| 3733 |
operands: |
| 3734 |
input: WordSized |
| 3735 |
|
| 3736 |
- name: IonToWasmCall |
| 3737 |
gen_boilerplate: false |
| 3738 |
|
| 3739 |
- name: IonToWasmCallV |
| 3740 |
gen_boilerplate: false |
| 3741 |
|
| 3742 |
- name: IonToWasmCallI64 |
| 3743 |
gen_boilerplate: false |
| 3744 |
|
| 3745 |
- name: WasmNewI31Ref |
| 3746 |
mir_op: true |
| 3747 |
result_type: WordSized |
| 3748 |
operands: |
| 3749 |
value: WordSized |
| 3750 |
|
| 3751 |
# Constant Simd128 |
| 3752 |
- name: Simd128 |
| 3753 |
result_type: WordSized |
| 3754 |
arguments: |
| 3755 |
simd128: SimdConstant |
| 3756 |
|
| 3757 |
# (v128, v128, v128) -> v128 effect-free operation. |
| 3758 |
# temp is FPR. |
| 3759 |
- name: WasmTernarySimd128 |
| 3760 |
result_type: WordSized |
| 3761 |
operands: |
| 3762 |
v0: WordSized |
| 3763 |
v1: WordSized |
| 3764 |
v2: WordSized |
| 3765 |
arguments: |
| 3766 |
simdOp: wasm::SimdOp |
| 3767 |
num_temps: 1 |
| 3768 |
|
| 3769 |
# (v128, v128) -> v128 effect-free operations |
| 3770 |
# lhs and dest are the same. |
| 3771 |
# temps (if in use) are FPR. |
| 3772 |
# The op may differ from the MIR node's op. |
| 3773 |
- name: WasmBinarySimd128 |
| 3774 |
result_type: WordSized |
| 3775 |
operands: |
| 3776 |
lhs: WordSized |
| 3777 |
rhs: WordSized |
| 3778 |
arguments: |
| 3779 |
simdOp: wasm::SimdOp |
| 3780 |
num_temps: 2 |
| 3781 |
|
| 3782 |
- name: WasmBinarySimd128WithConstant |
| 3783 |
result_type: WordSized |
| 3784 |
operands: |
| 3785 |
lhs: WordSized |
| 3786 |
arguments: |
| 3787 |
rhs: SimdConstant |
| 3788 |
num_temps: 1 |
| 3789 |
mir_op: true |
| 3790 |
|
| 3791 |
# (v128, i32) -> v128 effect-free variable-width shift operations |
| 3792 |
# lhs and dest are the same. |
| 3793 |
- name: WasmVariableShiftSimd128 |
| 3794 |
result_type: WordSized |
| 3795 |
operands: |
| 3796 |
lhs: WordSized |
| 3797 |
rhs: WordSized |
| 3798 |
#if defined(JS_CODEGEN_X86) || defined(JS_CODEGEN_X64) |
| 3799 |
# temp is an FPR (if in use). |
| 3800 |
num_temps: 1 |
| 3801 |
#endif |
| 3802 |
mir_op: WasmShiftSimd128 |
| 3803 |
|
| 3804 |
# (v128, i32) -> v128 effect-free constant-width shift operations |
| 3805 |
- name: WasmConstantShiftSimd128 |
| 3806 |
result_type: WordSized |
| 3807 |
operands: |
| 3808 |
src: WordSized |
| 3809 |
arguments: |
| 3810 |
shift: int32_t |
| 3811 |
mir_op: WasmShiftSimd128 |
| 3812 |
|
| 3813 |
# (v128) -> v128 sign replication operation. |
| 3814 |
- name: WasmSignReplicationSimd128 |
| 3815 |
result_type: WordSized |
| 3816 |
operands: |
| 3817 |
src: WordSized |
| 3818 |
mir_op: WasmShiftSimd128 |
| 3819 |
|
| 3820 |
# // (v128, v128, imm_simd) -> v128 effect-free operation. |
| 3821 |
- name: WasmShuffleSimd128 |
| 3822 |
result_type: WordSized |
| 3823 |
operands: |
| 3824 |
lhs: WordSized |
| 3825 |
rhs: WordSized |
| 3826 |
arguments: |
| 3827 |
op: SimdShuffleOp |
| 3828 |
control: SimdConstant |
| 3829 |
#if defined(JS_CODEGEN_X86) || defined(JS_CODEGEN_X64) |
| 3830 |
# temp is FPR (and always in use). |
| 3831 |
num_temps: 1 |
| 3832 |
#endif |
| 3833 |
|
| 3834 |
# (v128, imm_simd) -> v128 effect-free operation. |
| 3835 |
- name: WasmPermuteSimd128 |
| 3836 |
result_type: WordSized |
| 3837 |
operands: |
| 3838 |
src: WordSized |
| 3839 |
arguments: |
| 3840 |
op: SimdPermuteOp |
| 3841 |
control: SimdConstant |
| 3842 |
|
| 3843 |
- name: WasmReplaceLaneSimd128 |
| 3844 |
result_type: WordSized |
| 3845 |
operands: |
| 3846 |
lhs: WordSized |
| 3847 |
rhs: WordSized |
| 3848 |
mir_op: true |
| 3849 |
|
| 3850 |
- name: WasmReplaceInt64LaneSimd128 |
| 3851 |
result_type: WordSized |
| 3852 |
operands: |
| 3853 |
lhs: WordSized |
| 3854 |
rhs: Int64 |
| 3855 |
mir_op: WasmReplaceLaneSimd128 |
| 3856 |
|
| 3857 |
# (scalar) -> v128 effect-free operations, scalar != int64 |
| 3858 |
- name: WasmScalarToSimd128 |
| 3859 |
result_type: WordSized |
| 3860 |
operands: |
| 3861 |
src: WordSized |
| 3862 |
mir_op: true |
| 3863 |
|
| 3864 |
# (int64) -> v128 effect-free operations |
| 3865 |
- name: WasmInt64ToSimd128 |
| 3866 |
result_type: WordSized |
| 3867 |
operands: |
| 3868 |
src: Int64 |
| 3869 |
mir_op: WasmScalarToSimd128 |
| 3870 |
|
| 3871 |
# // (v128, imm) -> scalar effect-free operations. |
| 3872 |
- name: WasmReduceSimd128 |
| 3873 |
result_type: WordSized |
| 3874 |
operands: |
| 3875 |
src: WordSized |
| 3876 |
#ifdef JS_CODEGEN_ARM64 |
| 3877 |
# temp is FPR (if in use). |
| 3878 |
num_temps: 1 |
| 3879 |
#endif |
| 3880 |
mir_op: true |
| 3881 |
|
| 3882 |
# (v128, onTrue, onFalse) test-and-branch operations. |
| 3883 |
- name: WasmReduceAndBranchSimd128 |
| 3884 |
successors: [ifTrue, ifFalse] |
| 3885 |
operands: |
| 3886 |
src: WordSized |
| 3887 |
arguments: |
| 3888 |
simdOp: wasm::SimdOp |
| 3889 |
|
| 3890 |
# (v128, imm) -> i64 effect-free operations |
| 3891 |
- name: WasmReduceSimd128ToInt64 |
| 3892 |
result_type: Int64 |
| 3893 |
operands: |
| 3894 |
src: WordSized |
| 3895 |
mir_op: WasmReduceSimd128 |
| 3896 |
|
| 3897 |
- name: WasmLoadLaneSimd128 |
| 3898 |
result_type: WordSized |
| 3899 |
operands: |
| 3900 |
ptr: WordSized |
| 3901 |
src: WordSized |
| 3902 |
memoryBase: WordSized |
| 3903 |
#ifdef JS_CODEGEN_ARM64 |
| 3904 |
num_temps: 1 |
| 3905 |
#endif |
| 3906 |
mir_op: true |
| 3907 |
|
| 3908 |
- name: WasmStoreLaneSimd128 |
| 3909 |
result_type: WordSized |
| 3910 |
operands: |
| 3911 |
ptr: WordSized |
| 3912 |
src: WordSized |
| 3913 |
memoryBase: WordSized |
| 3914 |
#ifdef JS_CODEGEN_ARM64 |
| 3915 |
num_temps: 1 |
| 3916 |
#endif |
| 3917 |
mir_op: true |
| 3918 |
|
| 3919 |
- name: Unbox |
| 3920 |
gen_boilerplate: false |
| 3921 |
|
| 3922 |
- name: UnboxFloatingPoint |
| 3923 |
result_type: WordSized |
| 3924 |
operands: |
| 3925 |
input: BoxedValue |
| 3926 |
mir_op: Unbox |
| 3927 |
|
| 3928 |
# Convert a 32-bit unsigned integer to a double. |
| 3929 |
- name: WasmUint32ToDouble |
| 3930 |
result_type: WordSized |
| 3931 |
operands: |
| 3932 |
input: WordSized |
| 3933 |
#ifdef JS_CODEGEN_X86 |
| 3934 |
num_temps: 1 |
| 3935 |
#endif |
| 3936 |
|
| 3937 |
# Convert a 32-bit unsigned integer to a float32. |
| 3938 |
- name: WasmUint32ToFloat32 |
| 3939 |
result_type: WordSized |
| 3940 |
operands: |
| 3941 |
input: WordSized |
| 3942 |
#ifdef JS_CODEGEN_X86 |
| 3943 |
num_temps: 1 |
| 3944 |
#endif |
| 3945 |
|
| 3946 |
- name: DivI |
| 3947 |
result_type: WordSized |
| 3948 |
operands: |
| 3949 |
lhs: WordSized |
| 3950 |
rhs: WordSized |
| 3951 |
num_temps: 1 |
| 3952 |
mir_op: Div |
| 3953 |
extra_name: true |
| 3954 |
|
| 3955 |
- name: ModI |
| 3956 |
result_type: WordSized |
| 3957 |
operands: |
| 3958 |
lhs: WordSized |
| 3959 |
rhs: WordSized |
| 3960 |
#if !defined(JS_CODEGEN_ARM) && !defined(JS_CODEGEN_ARM64) |
| 3961 |
num_temps: 1 |
| 3962 |
#endif |
| 3963 |
mir_op: Mod |
| 3964 |
extra_name: true |
| 3965 |
|
| 3966 |
# Signed division by a power-of-two constant. |
| 3967 |
- name: DivPowTwoI |
| 3968 |
result_type: WordSized |
| 3969 |
operands: |
| 3970 |
numerator: WordSized |
| 3971 |
#if defined(JS_CODEGEN_X86) || defined(JS_CODEGEN_X64) |
| 3972 |
numeratorCopy: WordSized |
| 3973 |
#endif |
| 3974 |
arguments: |
| 3975 |
shift: int32_t |
| 3976 |
#if defined(JS_CODEGEN_X86) || defined(JS_CODEGEN_X64) || defined(JS_CODEGEN_ARM64) |
| 3977 |
# Negative divisor case not implemented for all targets. |
| 3978 |
negativeDivisor: bool |
| 3979 |
#endif |
| 3980 |
#if defined(JS_CODEGEN_MIPS64) || defined(JS_CODEGEN_LOONG64) || defined(JS_CODEGEN_RISCV64) |
| 3981 |
num_temps: 1 |
| 3982 |
#endif |
| 3983 |
mir_op: Div |
| 3984 |
|
| 3985 |
- name: ModPowTwoI |
| 3986 |
result_type: WordSized |
| 3987 |
operands: |
| 3988 |
input: WordSized |
| 3989 |
arguments: |
| 3990 |
shift: int32_t |
| 3991 |
mir_op: Mod |
| 3992 |
|
| 3993 |
# Takes a tableswitch with an integer to decide. |
| 3994 |
- name: TableSwitch |
| 3995 |
operands: |
| 3996 |
index: WordSized |
| 3997 |
num_temps: 2 |
| 3998 |
mir_op: true |
| 3999 |
|
| 4000 |
# Takes a tableswitch with a value to decide. |
| 4001 |
- name: TableSwitchV |
| 4002 |
operands: |
| 4003 |
input: BoxedValue |
| 4004 |
num_temps: 3 |
| 4005 |
mir_op: TableSwitch |
| 4006 |
|
| 4007 |
- name: MulI |
| 4008 |
result_type: WordSized |
| 4009 |
operands: |
| 4010 |
lhs: WordSized |
| 4011 |
rhs: WordSized |
| 4012 |
#if defined(JS_CODEGEN_X86) || defined(JS_CODEGEN_X64) |
| 4013 |
lhsCopy: WordSized |
| 4014 |
#endif |
| 4015 |
mir_op: Mul |
| 4016 |
extra_name: true |
| 4017 |
#if !defined(JS_CODEGEN_X86) && !defined(JS_CODEGEN_X64) |
| 4018 |
defer_init: true |
| 4019 |
#endif |
| 4020 |
|
| 4021 |
#ifdef JS_CODEGEN_X86 |
| 4022 |
- name: BoxFloatingPoint |
| 4023 |
result_type: BoxedValue |
| 4024 |
operands: |
| 4025 |
input: WordSized |
| 4026 |
arguments: |
| 4027 |
type: MIRType |
| 4028 |
num_temps: 2 |
| 4029 |
extra_name: true |
| 4030 |
|
| 4031 |
- name: DivOrModI64 |
| 4032 |
gen_boilerplate: false |
| 4033 |
|
| 4034 |
- name: UDivOrModI64 |
| 4035 |
gen_boilerplate: false |
| 4036 |
|
| 4037 |
- name: DivOrModConstantI |
| 4038 |
gen_boilerplate: false |
| 4039 |
|
| 4040 |
- name: UDivOrMod |
| 4041 |
gen_boilerplate: false |
| 4042 |
|
| 4043 |
- name: UDivOrModConstant |
| 4044 |
gen_boilerplate: false |
| 4045 |
|
| 4046 |
- name: WasmTruncateToInt64 |
| 4047 |
result_type: Int64 |
| 4048 |
operands: |
| 4049 |
input: WordSized |
| 4050 |
num_temps: 1 |
| 4051 |
mir_op: true |
| 4052 |
|
| 4053 |
- name: Int64ToFloatingPoint |
| 4054 |
result_type: WordSized |
| 4055 |
operands: |
| 4056 |
input: Int64 |
| 4057 |
num_temps: 1 |
| 4058 |
mir_op: true |
| 4059 |
|
| 4060 |
- name: WasmAtomicLoadI64 |
| 4061 |
result_type: Int64 |
| 4062 |
operands: |
| 4063 |
ptr: WordSized |
| 4064 |
memoryBase: WordSized |
| 4065 |
num_temps64: 1 |
| 4066 |
mir_op: WasmLoad |
| 4067 |
|
| 4068 |
- name: WasmAtomicStoreI64 |
| 4069 |
operands: |
| 4070 |
ptr: WordSized |
| 4071 |
value: Int64 |
| 4072 |
memoryBase: WordSized |
| 4073 |
num_temps64: 1 |
| 4074 |
mir_op: WasmStore |
| 4075 |
|
| 4076 |
- name: WasmCompareExchangeI64 |
| 4077 |
result_type: Int64 |
| 4078 |
operands: |
| 4079 |
ptr: WordSized |
| 4080 |
expected: Int64 |
| 4081 |
replacement: Int64 |
| 4082 |
memoryBase: WordSized |
| 4083 |
mir_op: WasmCompareExchangeHeap |
| 4084 |
|
| 4085 |
- name: WasmAtomicBinopI64 |
| 4086 |
result_type: Int64 |
| 4087 |
operands: |
| 4088 |
ptr: WordSized |
| 4089 |
value: Int64 |
| 4090 |
memoryBase: WordSized |
| 4091 |
arguments: |
| 4092 |
access: const wasm::MemoryAccessDesc& |
| 4093 |
operation: AtomicOp |
| 4094 |
|
| 4095 |
- name: WasmAtomicExchangeI64 |
| 4096 |
result_type: Int64 |
| 4097 |
operands: |
| 4098 |
ptr: WordSized |
| 4099 |
value: Int64 |
| 4100 |
memoryBase: WordSized |
| 4101 |
arguments: |
| 4102 |
access: const wasm::MemoryAccessDesc& |
| 4103 |
#endif |
| 4104 |
|
| 4105 |
#ifdef JS_CODEGEN_X64 |
| 4106 |
- name: DivOrModI64 |
| 4107 |
gen_boilerplate: false |
| 4108 |
|
| 4109 |
- name: UDivOrModI64 |
| 4110 |
gen_boilerplate: false |
| 4111 |
|
| 4112 |
- name: DivOrModConstantI |
| 4113 |
gen_boilerplate: false |
| 4114 |
|
| 4115 |
- name: UDivOrMod |
| 4116 |
gen_boilerplate: false |
| 4117 |
|
| 4118 |
- name: UDivOrModConstant |
| 4119 |
gen_boilerplate: false |
| 4120 |
|
| 4121 |
- name: WasmTruncateToInt64 |
| 4122 |
result_type: Int64 |
| 4123 |
operands: |
| 4124 |
input: WordSized |
| 4125 |
num_temps: 1 |
| 4126 |
mir_op: true |
| 4127 |
|
| 4128 |
- name: Int64ToFloatingPoint |
| 4129 |
result_type: WordSized |
| 4130 |
operands: |
| 4131 |
input: Int64 |
| 4132 |
num_temps: 1 |
| 4133 |
mir_op: true |
| 4134 |
#endif |
| 4135 |
|
| 4136 |
#ifdef JS_CODEGEN_ARM |
| 4137 |
- name: BoxFloatingPoint |
| 4138 |
result_type: BoxedValue |
| 4139 |
operands: |
| 4140 |
input: WordSized |
| 4141 |
arguments: |
| 4142 |
type: MIRType |
| 4143 |
num_temps: 1 |
| 4144 |
extra_name: true |
| 4145 |
|
| 4146 |
- name: DivOrModI64 |
| 4147 |
gen_boilerplate: false |
| 4148 |
|
| 4149 |
- name: UDivOrModI64 |
| 4150 |
gen_boilerplate: false |
| 4151 |
|
| 4152 |
# LSoftDivI is a software divide for ARM cores that don't support a hardware |
| 4153 |
# divide instruction, implemented as a C++ native call. |
| 4154 |
- name: SoftDivI |
| 4155 |
result_type: WordSized |
| 4156 |
operands: |
| 4157 |
lhs: WordSized |
| 4158 |
rhs: WordSized |
| 4159 |
call_instruction: true |
| 4160 |
mir_op: Div |
| 4161 |
|
| 4162 |
- name: SoftModI |
| 4163 |
result_type: WordSized |
| 4164 |
operands: |
| 4165 |
lhs: WordSized |
| 4166 |
rhs: WordSized |
| 4167 |
num_temps: 1 |
| 4168 |
call_instruction: true |
| 4169 |
mir_op: Mod |
| 4170 |
|
| 4171 |
- name: ModMaskI |
| 4172 |
result_type: WordSized |
| 4173 |
operands: |
| 4174 |
input: WordSized |
| 4175 |
arguments: |
| 4176 |
shift: int32_t |
| 4177 |
num_temps: 2 |
| 4178 |
mir_op: Mod |
| 4179 |
|
| 4180 |
- name: UDiv |
| 4181 |
result_type: WordSized |
| 4182 |
operands: |
| 4183 |
lhs: WordSized |
| 4184 |
rhs: WordSized |
| 4185 |
mir_op: Div |
| 4186 |
defer_init: true |
| 4187 |
|
| 4188 |
- name: UMod |
| 4189 |
result_type: WordSized |
| 4190 |
operands: |
| 4191 |
lhs: WordSized |
| 4192 |
rhs: WordSized |
| 4193 |
mir_op: Mod |
| 4194 |
defer_init: true |
| 4195 |
|
| 4196 |
- name: SoftUDivOrMod |
| 4197 |
result_type: WordSized |
| 4198 |
operands: |
| 4199 |
lhs: WordSized |
| 4200 |
rhs: WordSized |
| 4201 |
call_instruction: true |
| 4202 |
mir_op: Instruction |
| 4203 |
|
| 4204 |
- name: Int64ToFloatingPointCall |
| 4205 |
result_type: WordSized |
| 4206 |
operands: |
| 4207 |
input: Int64 |
| 4208 |
instance: WordSized |
| 4209 |
call_instruction: true |
| 4210 |
mir_op: BuiltinInt64ToFloatingPoint |
| 4211 |
|
| 4212 |
- name: WasmTruncateToInt64 |
| 4213 |
result_type: Int64 |
| 4214 |
operands: |
| 4215 |
input: WordSized |
| 4216 |
instance: WordSized |
| 4217 |
call_instruction: true |
| 4218 |
mir_op: WasmBuiltinTruncateToInt64 |
| 4219 |
|
| 4220 |
- name: WasmAtomicLoadI64 |
| 4221 |
result_type: Int64 |
| 4222 |
operands: |
| 4223 |
ptr: WordSized |
| 4224 |
memoryBase: WordSized |
| 4225 |
mir_op: WasmLoad |
| 4226 |
|
| 4227 |
- name: WasmAtomicStoreI64 |
| 4228 |
operands: |
| 4229 |
ptr: WordSized |
| 4230 |
value: Int64 |
| 4231 |
memoryBase: WordSized |
| 4232 |
num_temps64: 1 |
| 4233 |
mir_op: WasmStore |
| 4234 |
|
| 4235 |
- name: WasmCompareExchangeI64 |
| 4236 |
result_type: Int64 |
| 4237 |
operands: |
| 4238 |
ptr: WordSized |
| 4239 |
expected: Int64 |
| 4240 |
replacement: Int64 |
| 4241 |
memoryBase: WordSized |
| 4242 |
mir_op: WasmCompareExchangeHeap |
| 4243 |
|
| 4244 |
- name: WasmAtomicBinopI64 |
| 4245 |
result_type: Int64 |
| 4246 |
operands: |
| 4247 |
ptr: WordSized |
| 4248 |
value: Int64 |
| 4249 |
memoryBase: WordSized |
| 4250 |
arguments: |
| 4251 |
access: const wasm::MemoryAccessDesc& |
| 4252 |
operation: AtomicOp |
| 4253 |
num_temps64: 1 |
| 4254 |
|
| 4255 |
- name: WasmAtomicExchangeI64 |
| 4256 |
result_type: Int64 |
| 4257 |
operands: |
| 4258 |
ptr: WordSized |
| 4259 |
value: Int64 |
| 4260 |
memoryBase: WordSized |
| 4261 |
arguments: |
| 4262 |
access: const wasm::MemoryAccessDesc& |
| 4263 |
#endif |
| 4264 |
|
| 4265 |
#ifdef JS_CODEGEN_ARM64 |
| 4266 |
- name: DivOrModI64 |
| 4267 |
gen_boilerplate: false |
| 4268 |
|
| 4269 |
- name: UDivOrModI64 |
| 4270 |
gen_boilerplate: false |
| 4271 |
|
| 4272 |
- name: DivConstantI |
| 4273 |
result_type: WordSized |
| 4274 |
operands: |
| 4275 |
numerator: WordSized |
| 4276 |
arguments: |
| 4277 |
denominator: int32_t |
| 4278 |
num_temps: 1 |
| 4279 |
mir_op: Div |
| 4280 |
|
| 4281 |
- name: UDivConstantI |
| 4282 |
result_type: WordSized |
| 4283 |
operands: |
| 4284 |
numerator: WordSized |
| 4285 |
arguments: |
| 4286 |
denominator: int32_t |
| 4287 |
num_temps: 1 |
| 4288 |
mir_op: Div |
| 4289 |
|
| 4290 |
- name: ModMaskI |
| 4291 |
result_type: WordSized |
| 4292 |
operands: |
| 4293 |
input: WordSized |
| 4294 |
arguments: |
| 4295 |
shift: int32_t |
| 4296 |
num_temps: 2 |
| 4297 |
mir_op: Mod |
| 4298 |
|
| 4299 |
- name: UDiv |
| 4300 |
result_type: WordSized |
| 4301 |
operands: |
| 4302 |
lhs: WordSized |
| 4303 |
rhs: WordSized |
| 4304 |
num_temps: 1 |
| 4305 |
mir_op: Div |
| 4306 |
|
| 4307 |
- name: UMod |
| 4308 |
result_type: WordSized |
| 4309 |
operands: |
| 4310 |
lhs: WordSized |
| 4311 |
rhs: WordSized |
| 4312 |
mir_op: Mod |
| 4313 |
|
| 4314 |
- name: WasmTruncateToInt64 |
| 4315 |
result_type: Int64 |
| 4316 |
operands: |
| 4317 |
input: WordSized |
| 4318 |
mir_op: true |
| 4319 |
|
| 4320 |
- name: Int64ToFloatingPoint |
| 4321 |
result_type: WordSized |
| 4322 |
operands: |
| 4323 |
input: Int64 |
| 4324 |
mir_op: true |
| 4325 |
#endif |
| 4326 |
|
| 4327 |
#ifdef JS_CODEGEN_MIPS64 |
| 4328 |
- name: DivOrModI64 |
| 4329 |
gen_boilerplate: false |
| 4330 |
|
| 4331 |
- name: UDivOrMod |
| 4332 |
gen_boilerplate: false |
| 4333 |
|
| 4334 |
- name: UDivOrModI64 |
| 4335 |
gen_boilerplate: false |
| 4336 |
|
| 4337 |
- name: ModMaskI |
| 4338 |
result_type: WordSized |
| 4339 |
operands: |
| 4340 |
input: WordSized |
| 4341 |
arguments: |
| 4342 |
shift: int32_t |
| 4343 |
num_temps: 2 |
| 4344 |
mir_op: Mod |
| 4345 |
|
| 4346 |
- name: WasmTruncateToInt64 |
| 4347 |
result_type: Int64 |
| 4348 |
operands: |
| 4349 |
input: WordSized |
| 4350 |
mir_op: true |
| 4351 |
|
| 4352 |
- name: Int64ToFloatingPoint |
| 4353 |
result_type: WordSized |
| 4354 |
operands: |
| 4355 |
input: Int64 |
| 4356 |
mir_op: true |
| 4357 |
|
| 4358 |
- name: WasmUnalignedLoad |
| 4359 |
result_type: WordSized |
| 4360 |
operands: |
| 4361 |
ptr: WordSized |
| 4362 |
memoryBase: WordSized |
| 4363 |
num_temps: 2 |
| 4364 |
mir_op: WasmLoad |
| 4365 |
|
| 4366 |
- name: WasmUnalignedLoadI64 |
| 4367 |
result_type: Int64 |
| 4368 |
operands: |
| 4369 |
ptr: WordSized |
| 4370 |
memoryBase: WordSized |
| 4371 |
num_temps: 2 |
| 4372 |
mir_op: WasmLoad |
| 4373 |
|
| 4374 |
- name: WasmUnalignedStore |
| 4375 |
operands: |
| 4376 |
ptr: WordSized |
| 4377 |
value: WordSized |
| 4378 |
memoryBase: WordSized |
| 4379 |
num_temps: 2 |
| 4380 |
mir_op: WasmStore |
| 4381 |
|
| 4382 |
- name: WasmUnalignedStoreI64 |
| 4383 |
operands: |
| 4384 |
ptr: WordSized |
| 4385 |
value: Int64 |
| 4386 |
memoryBase: WordSized |
| 4387 |
num_temps: 2 |
| 4388 |
mir_op: WasmStore |
| 4389 |
|
| 4390 |
- name: WasmCompareExchangeI64 |
| 4391 |
result_type: Int64 |
| 4392 |
operands: |
| 4393 |
ptr: WordSized |
| 4394 |
oldValue: Int64 |
| 4395 |
newValue: Int64 |
| 4396 |
memoryBase: WordSized |
| 4397 |
mir_op: WasmCompareExchangeHeap |
| 4398 |
|
| 4399 |
- name: WasmAtomicBinopI64 |
| 4400 |
result_type: Int64 |
| 4401 |
operands: |
| 4402 |
ptr: WordSized |
| 4403 |
value: Int64 |
| 4404 |
memoryBase: WordSized |
| 4405 |
num_temps64: 1 |
| 4406 |
mir_op: WasmAtomicBinopHeap |
| 4407 |
|
| 4408 |
- name: WasmAtomicExchangeI64 |
| 4409 |
result_type: Int64 |
| 4410 |
operands: |
| 4411 |
ptr: WordSized |
| 4412 |
value: Int64 |
| 4413 |
memoryBase: WordSized |
| 4414 |
mir_op: WasmAtomicExchangeHeap |
| 4415 |
#endif |
| 4416 |
|
| 4417 |
#ifdef JS_CODEGEN_LOONG64 |
| 4418 |
- name: DivOrModI64 |
| 4419 |
gen_boilerplate: false |
| 4420 |
|
| 4421 |
- name: UDivOrMod |
| 4422 |
gen_boilerplate: false |
| 4423 |
|
| 4424 |
- name: UDivOrModI64 |
| 4425 |
gen_boilerplate: false |
| 4426 |
|
| 4427 |
- name: ModMaskI |
| 4428 |
result_type: WordSized |
| 4429 |
operands: |
| 4430 |
input: WordSized |
| 4431 |
arguments: |
| 4432 |
shift: int32_t |
| 4433 |
num_temps: 2 |
| 4434 |
mir_op: Mod |
| 4435 |
|
| 4436 |
- name: WasmTruncateToInt64 |
| 4437 |
result_type: Int64 |
| 4438 |
operands: |
| 4439 |
input: WordSized |
| 4440 |
mir_op: true |
| 4441 |
|
| 4442 |
- name: Int64ToFloatingPoint |
| 4443 |
result_type: WordSized |
| 4444 |
operands: |
| 4445 |
input: Int64 |
| 4446 |
mir_op: true |
| 4447 |
|
| 4448 |
- name: WasmCompareExchangeI64 |
| 4449 |
result_type: Int64 |
| 4450 |
operands: |
| 4451 |
ptr: WordSized |
| 4452 |
oldValue: Int64 |
| 4453 |
newValue: Int64 |
| 4454 |
memoryBase: WordSized |
| 4455 |
mir_op: WasmCompareExchangeHeap |
| 4456 |
|
| 4457 |
- name: WasmAtomicBinopI64 |
| 4458 |
result_type: Int64 |
| 4459 |
operands: |
| 4460 |
ptr: WordSized |
| 4461 |
value: Int64 |
| 4462 |
memoryBase: WordSized |
| 4463 |
num_temps64: 1 |
| 4464 |
mir_op: WasmAtomicBinopHeap |
| 4465 |
|
| 4466 |
- name: WasmAtomicExchangeI64 |
| 4467 |
result_type: Int64 |
| 4468 |
operands: |
| 4469 |
ptr: WordSized |
| 4470 |
value: Int64 |
| 4471 |
memoryBase: WordSized |
| 4472 |
mir_op: WasmAtomicExchangeHeap |
| 4473 |
#endif |
| 4474 |
|
| 4475 |
#ifdef JS_CODEGEN_RISCV64 |
| 4476 |
- name: DivOrModI64 |
| 4477 |
gen_boilerplate: false |
| 4478 |
|
| 4479 |
- name: UDivOrMod |
| 4480 |
gen_boilerplate: false |
| 4481 |
|
| 4482 |
- name: UDivOrModI64 |
| 4483 |
gen_boilerplate: false |
| 4484 |
|
| 4485 |
- name: ModMaskI |
| 4486 |
result_type: WordSized |
| 4487 |
operands: |
| 4488 |
input: WordSized |
| 4489 |
arguments: |
| 4490 |
shift: int32_t |
| 4491 |
num_temps: 2 |
| 4492 |
mir_op: Mod |
| 4493 |
|
| 4494 |
- name: WasmTruncateToInt64 |
| 4495 |
result_type: Int64 |
| 4496 |
operands: |
| 4497 |
input: WordSized |
| 4498 |
mir_op: true |
| 4499 |
|
| 4500 |
- name: Int64ToFloatingPoint |
| 4501 |
result_type: WordSized |
| 4502 |
operands: |
| 4503 |
input: Int64 |
| 4504 |
mir_op: true |
| 4505 |
|
| 4506 |
- name: WasmCompareExchangeI64 |
| 4507 |
result_type: Int64 |
| 4508 |
operands: |
| 4509 |
ptr: WordSized |
| 4510 |
oldValue: Int64 |
| 4511 |
newValue: Int64 |
| 4512 |
memoryBase: WordSized |
| 4513 |
mir_op: WasmCompareExchangeHeap |
| 4514 |
|
| 4515 |
- name: WasmAtomicBinopI64 |
| 4516 |
result_type: Int64 |
| 4517 |
operands: |
| 4518 |
ptr: WordSized |
| 4519 |
value: Int64 |
| 4520 |
memoryBase: WordSized |
| 4521 |
num_temps64: 1 |
| 4522 |
mir_op: WasmAtomicBinopHeap |
| 4523 |
|
| 4524 |
- name: WasmAtomicExchangeI64 |
| 4525 |
result_type: Int64 |
| 4526 |
operands: |
| 4527 |
ptr: WordSized |
| 4528 |
value: Int64 |
| 4529 |
memoryBase: WordSized |
| 4530 |
mir_op: WasmAtomicExchangeHeap |
| 4531 |
#endif |
| 4532 |
|
| 4533 |
#ifdef FUZZING_JS_FUZZILLI |
| 4534 |
- name: FuzzilliHashT |
| 4535 |
result_type: WordSized |
| 4536 |
operands: |
| 4537 |
value: WordSized |
| 4538 |
num_temps: 2 |
| 4539 |
mir_op: FuzzilliHash |
| 4540 |
|
| 4541 |
- name: FuzzilliHashV |
| 4542 |
result_type: WordSized |
| 4543 |
operands: |
| 4544 |
value: BoxedValue |
| 4545 |
num_temps: 2 |
| 4546 |
mir_op: FuzzilliHash |
| 4547 |
|
| 4548 |
- name: FuzzilliHashStore |
| 4549 |
operands: |
| 4550 |
value: WordSized |
| 4551 |
num_temps: 2 |
| 4552 |
mir_op: FuzzilliHashStore |
| 4553 |
#endif |
| 4554 |
|
| 4555 |
#ifdef ENABLE_EXPLICIT_RESOURCE_MANAGEMENT |
| 4556 |
- name: AddDisposableResource |
| 4557 |
operands: |
| 4558 |
environment: WordSized |
| 4559 |
resource: BoxedValue |
| 4560 |
method: BoxedValue |
| 4561 |
needsClosure: WordSized |
| 4562 |
arguments: |
| 4563 |
hint: uint8_t |
| 4564 |
call_instruction: true |
| 4565 |
|
| 4566 |
- name: CreateSuppressedError |
| 4567 |
operands: |
| 4568 |
error: BoxedValue |
| 4569 |
suppressed: BoxedValue |
| 4570 |
result_type: WordSized |
| 4571 |
call_instruction: true |
| 4572 |
#endif |