Skip to content

Truly independent web browser

LibJS: Pack the bytecode with 16-bit operands

Andreas Klinge7d867d10158
diff --git a/Libraries/LibJS/Flap/src/bytecode.rs b/Libraries/LibJS/Flap/src/bytecode.rs
index 00d0b578ba9..1700e17c154 100644
--- a/Libraries/LibJS/Flap/src/bytecode.rs
+++ b/Libraries/LibJS/Flap/src/bytecode.rs
@@ -157,7 +157,7 @@ fn bytecode_field_type_name(field: &crate::metadata::Field) -> String {
fn bytecode_field_type_matches(field: &crate::metadata::Field, parameter_type: &Type) -> bool {
if field.is_array {
return match field.ty.as_str() {
- "Operand" | "Optional<Operand>" => *parameter_type == Type::Sequence(Box::new(Type::U32)),
+ "Operand" | "Optional<Operand>" => *parameter_type == Type::Sequence(Box::new(Type::U16)),
"Value" => *parameter_type == Type::Sequence(Box::new(Type::Value)),
_ => false,
};
diff --git a/Libraries/LibJS/Flap/src/frontend/parser.rs b/Libraries/LibJS/Flap/src/frontend/parser.rs
index 4662c01c909..d10ada0bcda 100644
--- a/Libraries/LibJS/Flap/src/frontend/parser.rs
+++ b/Libraries/LibJS/Flap/src/frontend/parser.rs
@@ -619,7 +619,7 @@ impl<'a> Parser<'a> {
self.advance();
self.consume(TokenKind::RightBracket, "']'")?;
if ty == Type::Operand {
- ty = Type::U32;
+ ty = Type::U16;
}
ty = Type::Sequence(Box::new(ty));
}
diff --git a/Libraries/LibJS/Flap/src/hir/mod.rs b/Libraries/LibJS/Flap/src/hir/mod.rs
index 3d399474200..2e4661ba659 100644
--- a/Libraries/LibJS/Flap/src/hir/mod.rs
+++ b/Libraries/LibJS/Flap/src/hir/mod.rs
@@ -1399,7 +1399,7 @@ impl<'a> Checker<'a> {
symbol.ty,
Type::EnvironmentCoordinateCacheIndex | Type::GlobalVariableCacheIndex | Type::PropertyLookupCacheIndex
) {
- return Some((symbol.ty.clone(), Type::U32, BytecodeOperation::Load(FieldWidth::U32)));
+ return Some((symbol.ty.clone(), Type::U32, BytecodeOperation::Load(FieldWidth::U16)));
}
if matches!(
symbol.ty,
diff --git a/Libraries/LibJS/Flap/src/low_ir/lowering.rs b/Libraries/LibJS/Flap/src/low_ir/lowering.rs
index ecac4b5ab72..630e641f6ac 100644
--- a/Libraries/LibJS/Flap/src/low_ir/lowering.rs
+++ b/Libraries/LibJS/Flap/src/low_ir/lowering.rs
@@ -2280,7 +2280,8 @@ fn lower_instruction(
let destination_index = Operand::VirtualRegister(destination_index_register.clone());
let source_index = Operand::VirtualRegister(source_index_register.clone());
let value = Operand::VirtualRegister(format!("ssa_move_operand_{}_value", instruction_id.0).into());
- emit!(output; MachineOperation::load_pair(PairWidth::Word) => [destination_index.clone(), source_index.clone(), bytecode_field_memory(destination), bytecode_field_memory(source)];);
+ emit!(output; MachineOperation::load(OPERAND_FIELD_WIDTH, false) => [destination_index.clone(), bytecode_field_memory(destination)];);
+ emit!(output; MachineOperation::load(OPERAND_FIELD_WIDTH, false) => [source_index.clone(), bytecode_field_memory(source)];);
emit!(output;
MachineOperation::load(MemoryWidth::DoubleWord, false) => [value.clone(), Operand::Address(MemoryAddress {
base: AddressRegister::Interpreter(InterpreterRegister::Values),
@@ -2304,7 +2305,7 @@ fn lower_instruction(
return Err("'load' requires one bytecode operand field".to_string());
};
let index = operand_load_index(instruction_id, 0);
- emit!(output; MachineOperation::load(MemoryWidth::Word, false) => [index.clone(), bytecode_field_memory(field)];);
+ emit!(output; MachineOperation::load(OPERAND_FIELD_WIDTH, false) => [index.clone(), bytecode_field_memory(field)];);
emit!(output; MachineOperation::load(MemoryWidth::DoubleWord, false) => [destination.clone(), indexed_value_memory(&index)?];);
}
Operation::Intrinsic(Intrinsic::Operand(OperandOperation::Decode)) => {
@@ -2312,7 +2313,7 @@ fn lower_instruction(
let [Operand::BytecodeField(field)] = inputs.as_slice() else {
return Err("'decode_operand' requires one bytecode field".to_string());
};
- emit!(output; MachineOperation::load(MemoryWidth::Word, false) => [destination.clone(), bytecode_field_memory(field)];);
+ emit!(output; MachineOperation::load(OPERAND_FIELD_WIDTH, false) => [destination.clone(), bytecode_field_memory(field)];);
}
Operation::Intrinsic(Intrinsic::Operand(OperandOperation::Load(
OperandLoad::Index | OperandLoad::RematerializedIndex,
@@ -2582,7 +2583,8 @@ fn lower_instruction(
};
let lhs_index = operand_load_index(instruction_id, 0);
let rhs_index = operand_load_index(instruction_id, 1);
- emit!(output; MachineOperation::load_pair(PairWidth::Word) => [lhs_index.clone(), rhs_index.clone(), bytecode_field_memory(lhs_field), bytecode_field_memory(rhs_field)];);
+ emit!(output; MachineOperation::load(OPERAND_FIELD_WIDTH, false) => [lhs_index.clone(), bytecode_field_memory(lhs_field)];);
+ emit!(output; MachineOperation::load(OPERAND_FIELD_WIDTH, false) => [rhs_index.clone(), bytecode_field_memory(rhs_field)];);
emit!(output; MachineOperation::load(MemoryWidth::DoubleWord, false) => [lhs.clone(), indexed_value_memory(&lhs_index)?];);
emit!(output; MachineOperation::load(MemoryWidth::DoubleWord, false) => [rhs.clone(), indexed_value_memory(&rhs_index)?];);
}
@@ -3590,6 +3592,9 @@ fn machine_instruction(operation: MachineOperation, operands: Vec<Operand>) -> I
}
}
+/// How wide the loads of operand fields are, which `metadata::OPERAND_SIZE` lays out.
+const OPERAND_FIELD_WIDTH: MemoryWidth = MemoryWidth::HalfWord;
+
fn bytecode_field_memory(field: &BytecodeFieldId) -> Operand {
Operand::Address(MemoryAddress {
base: AddressRegister::Interpreter(InterpreterRegister::ProgramBase),
diff --git a/Libraries/LibJS/Flap/src/metadata.rs b/Libraries/LibJS/Flap/src/metadata.rs
index d19059565d4..7c73d1a8a89 100644
--- a/Libraries/LibJS/Flap/src/metadata.rs
+++ b/Libraries/LibJS/Flap/src/metadata.rs
@@ -218,27 +218,27 @@ pub struct ArrayLayout {
pub element_size: usize,
}
+/// The type of an instruction field. Instructions are packed, so fields have no alignment.
pub struct FieldType {
pub rust_type: &'static str,
- pub align: usize,
pub size: usize,
pub kind: &'static str,
}
-impl From<(&'static str, usize, usize, &'static str)> for FieldType {
- fn from(v: (&'static str, usize, usize, &'static str)) -> Self {
+impl From<(&'static str, usize, &'static str)> for FieldType {
+ fn from(v: (&'static str, usize, &'static str)) -> Self {
Self {
rust_type: v.0,
- align: v.1,
- size: v.2,
- kind: v.3,
+ size: v.1,
+ kind: v.2,
}
}
}
-/// The alignment of every instruction in the bytecode, that of a pointer.
-/// On 64-bit: alignof(void*) = 8.
-pub const STRUCT_ALIGN: usize = 8;
+/// How many bytes an operand takes in an instruction.
+pub const OPERAND_SIZE: usize = 2;
+/// The encoding of an absent optional operand.
+pub const NO_OPERAND: i64 = u16::MAX as i64;
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct ParseError {
@@ -670,37 +670,38 @@ impl SpecializationParser<'_> {
fn try_field_type_info(ty: &str) -> Option<FieldType> {
Some(
match ty {
- "bool" => ("bool", 1, 1, "bool"),
- "i32" => ("i32", 4, 4, "i32"),
- "u32" => ("u32", 4, 4, "u32"),
- "u64" => ("u64", 8, 8, "u64"),
- "Operand" => ("Operand", 4, 4, "operand"),
- "Optional<Operand>" => ("Option<Operand>", 4, 4, "optional_operand"),
- "Label" => ("Label", 4, 4, "label"),
- "Optional<Label>" => ("Option<Label>", 4, 8, "optional_label"),
- "IdentifierTableIndex" => ("IdentifierTableIndex", 4, 4, "u32_newtype"),
- "Optional<IdentifierTableIndex>" => ("Option<IdentifierTableIndex>", 4, 4, "optional_u32_newtype"),
- "PropertyKeyTableIndex" => ("PropertyKeyTableIndex", 4, 4, "u32_newtype"),
- "StringTableIndex" => ("StringTableIndex", 4, 4, "u32_newtype"),
- "Optional<StringTableIndex>" => ("Option<StringTableIndex>", 4, 4, "optional_u32_newtype"),
- "EnvironmentCoordinate" => ("EnvironmentCoordinate", 4, 8, "env_coord"),
- "Builtin" => ("u8", 1, 1, "u8"),
- "Completion::Type" => ("u32", 4, 4, "u32"),
- "IteratorHint" => ("u32", 4, 4, "u32"),
- "EnvironmentMode" => ("u32", 4, 4, "u32"),
- "PutKind" => ("u32", 4, 4, "u32"),
- "ArgumentsKind" => ("u32", 4, 4, "u32"),
- "FunctionNamePrefix" => ("u32", 4, 4, "u32"),
- "Value" => ("u64", 8, 8, "u64"),
+ "bool" => ("bool", 1, "bool"),
+ "i32" => ("i32", 4, "i32"),
+ "u32" => ("u32", 4, "u32"),
+ "u64" => ("u64", 8, "u64"),
+ "Operand" => ("Operand", OPERAND_SIZE, "operand"),
+ "Optional<Operand>" => ("Option<Operand>", OPERAND_SIZE, "optional_operand"),
+ "Label" => ("Label", 4, "label"),
+ "Optional<Label>" => ("Option<Label>", 5, "optional_label"),
+ "IdentifierTableIndex" => ("IdentifierTableIndex", 2, "u32_newtype"),
+ "Optional<IdentifierTableIndex>" => ("Option<IdentifierTableIndex>", 2, "optional_u32_newtype"),
+ "PropertyKeyTableIndex" => ("PropertyKeyTableIndex", 2, "u32_newtype"),
+ "StringTableIndex" => ("StringTableIndex", 2, "u32_newtype"),
+ "Optional<StringTableIndex>" => ("Option<StringTableIndex>", 2, "optional_u32_newtype"),
+ "EnvironmentCoordinate" => ("EnvironmentCoordinate", 8, "env_coord"),
+ "Builtin" => ("u8", 1, "u8"),
+ "Completion::Type" => ("u32", 4, "u32"),
+ "IteratorHint" => ("u32", 4, "u32"),
+ "EnvironmentMode" => ("u32", 4, "u32"),
+ "PutKind" => ("u32", 4, "u32"),
+ "ArgumentsKind" => ("u32", 4, "u32"),
+ "FunctionNamePrefix" => ("u32", 4, "u32"),
+ "Value" => ("u64", 8, "u64"),
"PropertyLookupCacheIndex"
| "GlobalVariableCacheIndex"
| "EnvironmentCoordinateCacheIndex"
- | "TemplateObjectCacheIndex"
- | "ObjectShapeCacheIndex"
- | "ObjectPropertyIteratorCacheIndex"
- | "EnvironmentShapeCacheIndex" => ("u32", 4, 4, "u32"),
+ | "ObjectShapeCacheIndex" => ("u32", 2, "cache_index"),
+ // NB: The sites of these are rare and they cannot share a slot, so they stay wide.
+ "TemplateObjectCacheIndex" | "ObjectPropertyIteratorCacheIndex" | "EnvironmentShapeCacheIndex" => {
+ ("u32", 4, "u32")
+ }
"ArithFeedbackIndex" | "CallFeedbackIndex" | "KeyedFeedbackIndex" | "ValueFeedbackIndex" => {
- ("u16", 2, 2, "u16")
+ ("u16", 2, "u16")
}
_ => return None,
}
@@ -744,7 +745,7 @@ fn validate_op(op: &mut InstructionDefinition) -> Result<(), String> {
return Err(format!("op '{}' must derive directly from Instruction", op.name));
}
- let mut offset = 2usize;
+ let mut offset = 1usize;
let mut field_offsets = HashMap::new();
let array_indices = op
.fields
@@ -769,10 +770,6 @@ fn validate_op(op: &mut InstructionDefinition) -> Result<(), String> {
continue;
}
let info = try_field_type_info(&field.ty).expect("field types are checked while parsing");
- offset = offset
- .checked_add(info.align - 1)
- .map(|offset| offset & !(info.align - 1))
- .ok_or_else(|| format!("layout of op '{}' overflows usize", op.name))?;
field_offsets.insert(field.name.clone(), offset);
offset = offset
.checked_add(info.size)
@@ -794,34 +791,18 @@ fn validate_op(op: &mut InstructionDefinition) -> Result<(), String> {
)
})?;
let info = try_field_type_info(&op.fields[array_index].ty).expect("field types are checked while parsing");
- let array_offset = offset
- .checked_add(info.align - 1)
- .map(|offset| offset & !(info.align - 1))
- .ok_or_else(|| format!("layout of op '{}' overflows usize", op.name))?;
- field_offsets.insert(op.fields[array_index].name.clone(), array_offset);
+ field_offsets.insert(op.fields[array_index].name.clone(), offset);
Some(ArrayLayout {
field_index: array_index,
count_field_index,
- offset: array_offset,
+ offset,
element_size: info.size,
})
} else {
None
};
- let size = if array.is_some() {
- None
- } else {
- Some(
- offset
- .checked_add(STRUCT_ALIGN - 1)
- .map(|offset| offset & !(STRUCT_ALIGN - 1))
- .ok_or_else(|| format!("layout of op '{}' overflows usize", op.name))?,
- )
- };
- let minimum_size = offset
- .checked_add(STRUCT_ALIGN - 1)
- .map(|offset| offset & !(STRUCT_ALIGN - 1))
- .ok_or_else(|| format!("layout of op '{}' overflows usize", op.name))?;
+ let size = array.is_none().then_some(offset);
+ let minimum_size = offset;
let m_length_offset = field_offsets.get("m_length").copied();
op.layout = OpLayout {
field_offsets,
@@ -840,7 +821,7 @@ pub struct OpLayout {
pub field_offsets: HashMap<String, usize>,
/// Total encoded size (for fixed-size instructions), or None for variable-length.
pub size: Option<usize>,
- /// Minimum encoded size, including the fixed header and tail padding.
+ /// Minimum encoded size: the fixed fields, without the array.
pub minimum_size: usize,
/// Byte offset of m_length for variable-length instructions.
pub m_length_offset: Option<usize>,
diff --git a/Libraries/LibJS/Flap/src/runtime_interface.rs b/Libraries/LibJS/Flap/src/runtime_interface.rs
index 71680da2d02..4c68ab92105 100644
--- a/Libraries/LibJS/Flap/src/runtime_interface.rs
+++ b/Libraries/LibJS/Flap/src/runtime_interface.rs
@@ -48,7 +48,8 @@ pub enum RuntimeFunctionKind {
/// in `values`, and nonzero to leave the instruction to the handler.
Try { op: String, layout: SlowPathLayout },
/// A `call_binary_slow_path` target:
- /// `i64 f(VM*, u32 pc, Value& dst, Value lhs, Value rhs)`.
+ /// `i64 f(VM*, u32 pc, Value& dst, Value lhs, Value rhs, u32 length)`, where `length` is the length of the
+ /// instruction, which the slow path continues after.
BinarySlowPath,
/// A `call_jump_slow_path` target:
/// `i64 f(VM*, u32 pc, Value lhs, Value rhs, u32 true_target, u32 false_target)`.
diff --git a/Libraries/LibJS/Flap/src/rust_bytecode.rs b/Libraries/LibJS/Flap/src/rust_bytecode.rs
index c744b9709c6..6b3cbe2dcbe 100644
--- a/Libraries/LibJS/Flap/src/rust_bytecode.rs
+++ b/Libraries/LibJS/Flap/src/rust_bytecode.rs
@@ -21,6 +21,7 @@
use crate::metadata::Field;
use crate::metadata::InstructionDefinition;
+use crate::metadata::OPERAND_SIZE;
use crate::metadata::Specialization;
use crate::metadata::SpecializedInstruction;
use crate::metadata::field_type_info;
@@ -94,31 +95,37 @@ pub fn read_expr_for_type(ty: &str, offset: &str, reader: &str) -> String {
| "PutKind"
| "ArgumentsKind"
| "FunctionNamePrefix"
- | "PropertyLookupCacheIndex"
- | "GlobalVariableCacheIndex"
- | "EnvironmentCoordinateCacheIndex"
| "TemplateObjectCacheIndex"
- | "ObjectShapeCacheIndex"
| "ObjectPropertyIteratorCacheIndex"
| "EnvironmentShapeCacheIndex" => format!("{reader}read_u32(bytes, {offset})"),
+ "PropertyLookupCacheIndex"
+ | "GlobalVariableCacheIndex"
+ | "EnvironmentCoordinateCacheIndex"
+ | "ObjectShapeCacheIndex" => format!("u32::from({reader}read_u16(bytes, {offset}))"),
"ArithFeedbackIndex" | "CallFeedbackIndex" | "KeyedFeedbackIndex" | "ValueFeedbackIndex" => {
format!("{reader}read_u16(bytes, {offset})")
}
"u64" | "Value" => format!("{reader}read_u64(bytes, {offset})"),
- "Operand" => format!("Operand::from_raw({reader}read_u32(bytes, {offset}))"),
- "Optional<Operand>" => format!("Operand::optional_from_raw({reader}read_u32(bytes, {offset}))"),
+ "Operand" => format!("Operand::from_raw(u32::from({reader}read_u16(bytes, {offset})))"),
+ "Optional<Operand>" => format!(
+ "match {reader}read_u16(bytes, {offset}) {{ u16::MAX => None, raw => Some(Operand::from_raw(u32::from(raw))) }}"
+ ),
"Label" => format!("Label({reader}read_u32(bytes, {offset}))"),
"Optional<Label>" => {
format!("if bytes[{offset} + 4] != 0 {{ Some(Label({reader}read_u32(bytes, {offset}))) }} else {{ None }}")
}
- "IdentifierTableIndex" => format!("IdentifierTableIndex({reader}read_u32(bytes, {offset}))"),
+ "IdentifierTableIndex" => format!("IdentifierTableIndex(u32::from({reader}read_u16(bytes, {offset})))"),
"Optional<IdentifierTableIndex>" => {
- format!("IdentifierTableIndex::optional_from_raw({reader}read_u32(bytes, {offset}))")
+ format!(
+ "match {reader}read_u16(bytes, {offset}) {{ u16::MAX => None, raw => Some(IdentifierTableIndex(u32::from(raw))) }}"
+ )
}
- "PropertyKeyTableIndex" => format!("PropertyKeyTableIndex({reader}read_u32(bytes, {offset}))"),
- "StringTableIndex" => format!("StringTableIndex({reader}read_u32(bytes, {offset}))"),
+ "PropertyKeyTableIndex" => format!("PropertyKeyTableIndex(u32::from({reader}read_u16(bytes, {offset})))"),
+ "StringTableIndex" => format!("StringTableIndex(u32::from({reader}read_u16(bytes, {offset})))"),
"Optional<StringTableIndex>" => {
- format!("StringTableIndex::optional_from_raw({reader}read_u32(bytes, {offset}))")
+ format!(
+ "match {reader}read_u16(bytes, {offset}) {{ u16::MAX => None, raw => Some(StringTableIndex(u32::from(raw))) }}"
+ )
}
"EnvironmentCoordinate" => format!(
"EnvironmentCoordinate {{ hops: {reader}read_u32(bytes, {offset}), index: {reader}read_u32(bytes, {offset} + 4) }}"
@@ -358,10 +365,9 @@ pub fn generate_encoded_size_method(mut w: impl Write, ops: &[InstructionDefinit
)?;
writeln!(
w,
- " let base = {} + {}.len() * {};",
+ " {} + {}.len() * {}",
op.layout.minimum_size, arr_name, array.element_size
)?;
- writeln!(w, " (base + 7) & !7 // round up to 8")?;
writeln!(w, " }}")?;
}
}
@@ -385,10 +391,7 @@ pub fn generate_encode_method(
w,
" /// Encode this instruction into bytes in the struct layout of its fields."
)?;
- writeln!(
- w,
- " pub fn {method_name}(&self, strict: bool, encoder: &mut {encoder_type}) {{"
- )?;
+ writeln!(w, " pub fn {method_name}(&self, encoder: &mut {encoder_type}) {{")?;
writeln!(w, " match self {{")?;
for op in ops {
@@ -427,10 +430,8 @@ fn generate_encode_body(mut w: impl Write, op: &InstructionDefinition) -> Genera
};
writeln!(w, " let mut out = [0u8; {fixed_size}];")?;
writeln!(w, " out[0] = OpCode::{} as u8;", op.name)?;
- writeln!(w, " out[1] = strict as u8;")?;
- // We iterate ALL fields (including m_type, m_strict, m_length) for
- // accurate alignment but only emit writes for user fields.
+ // NB: Only the user fields get written; the opcode is written above.
for f in &op.fields {
if f.is_array || f.name == "m_type" || f.name == "m_strict" || f.name == "m_length" {
continue;
@@ -459,7 +460,7 @@ fn generate_encode_body(mut w: impl Write, op: &InstructionDefinition) -> Genera
writeln!(w, " }}")?;
writeln!(
w,
- " let target = ({} + {}.len() * {} + 7) & !7;",
+ " let target = {} + {}.len() * {};",
op.layout.minimum_size, rname, array.element_size
)?;
writeln!(w, " encoder.bytes.resize(start + target, 0);")?;
@@ -503,7 +504,7 @@ pub fn generate_typed_instructions(
" /// Whether an operand that is a constant may select a specialized form."
)?;
writeln!(w, " fn may_specialize(&self) -> bool;")?;
- writeln!(w, " fn encode(&self, strict: bool, encoder: &mut {encoder_type});")?;
+ writeln!(w, " fn encode(&self, encoder: &mut {encoder_type});")?;
writeln!(w, " fn to_instruction(&self) -> Instruction;")?;
writeln!(w, "}}")?;
writeln!(w)?;
@@ -543,7 +544,7 @@ pub fn generate_typed_instructions(
writeln!(w, " fn may_specialize(&self) -> bool {{ {} }}", tests.join(" || "))?;
}
writeln!(w, " #[inline(always)]")?;
- writeln!(w, " fn encode(&self, strict: bool, encoder: &mut {encoder_type}) {{")?;
+ writeln!(w, " fn encode(&self, encoder: &mut {encoder_type}) {{")?;
if !fields.is_empty() {
let bindings: Vec<String> = fields.iter().map(|f| rust_field_name(&f.name)).collect();
writeln!(w, " let Self {{ {} }} = self;", bindings.join(", "))?;
@@ -596,28 +597,40 @@ fn emit_field_store(mut w: impl Write, name: &str, kind: &str, offset: usize) ->
"operand" => writeln!(
w,
"{prefix}{}",
- store(&format!("encoder.operand(*{name}, {offset}).to_ne_bytes()"), 4)
+ store(
+ &format!("(encoder.operand(*{name}, {offset}) as u16).to_ne_bytes()"),
+ OPERAND_SIZE
+ )
)?,
"optional_operand" => {
- let value = format!("{name}.map_or(Operand::INVALID, |op| encoder.operand(op, {offset})).to_ne_bytes()");
- writeln!(w, "{prefix}{}", store(&value, 4))?;
+ let value = format!("{name}.map_or(u16::MAX, |op| encoder.operand(op, {offset}) as u16).to_ne_bytes()");
+ writeln!(w, "{prefix}{}", store(&value, OPERAND_SIZE))?;
}
"label" => {
writeln!(w, "{prefix}encoder.note_label({offset});")?;
writeln!(w, "{prefix}{}", store(&format!("{name}.0.to_ne_bytes()"), 4))?;
}
"optional_label" => {
- // Optional<Label> layout: u32 value, bool has_value, 3 bytes padding = 8 bytes total
+ // Optional<Label> layout: u32 value, then bool has_value.
writeln!(w, "{prefix}if let Some(lbl) = {name} {{")?;
writeln!(w, "{prefix} encoder.note_label({offset});")?;
writeln!(w, "{prefix} {}", store("lbl.0.to_ne_bytes()", 4))?;
writeln!(w, "{prefix} out[{}] = 1;", offset + 4)?;
writeln!(w, "{prefix}}}")?;
}
- "u32_newtype" => writeln!(w, "{prefix}{}", store(&format!("{name}.0.to_ne_bytes()"), 4))?,
+ "u32_newtype" => writeln!(
+ w,
+ "{prefix}{}",
+ store(&format!("narrow_index({name}.0).to_ne_bytes()"), 2)
+ )?,
+ "cache_index" => writeln!(
+ w,
+ "{prefix}{}",
+ store(&format!("narrow_index(*{name}).to_ne_bytes()"), 2)
+ )?,
"optional_u32_newtype" => {
- let value = format!("{name}.map_or(0xFFFF_FFFFu32, |idx| idx.0).to_ne_bytes()");
- writeln!(w, "{prefix}{}", store(&value, 4))?;
+ let value = format!("{name}.map_or(u16::MAX, |idx| narrow_index(idx.0)).to_ne_bytes()");
+ writeln!(w, "{prefix}{}", store(&value, 2))?;
}
"env_coord" => {
writeln!(w, "{prefix}{}", store(&format!("{name}.hops.to_ne_bytes()"), 4))?;
@@ -644,17 +657,20 @@ fn emit_field_write(mut w: impl Write, name: &str, kind: &str) -> GeneratorResul
writeln!(w, "{prefix}encoder.bytes.extend_from_slice(&{name}.to_ne_bytes());")?
}
"operand" => {
- writeln!(w, "{prefix}let raw = encoder.operand(*{name}, 0);")?;
+ writeln!(w, "{prefix}let raw = encoder.operand(*{name}, 0) as u16;")?;
writeln!(w, "{prefix}encoder.bytes.extend_from_slice(&raw.to_ne_bytes());")?;
}
"optional_operand" => {
writeln!(
w,
- "{prefix}let raw = {name}.map_or(Operand::INVALID, |op| encoder.operand(op, 0));"
+ "{prefix}let raw = {name}.map_or(u16::MAX, |op| encoder.operand(op, 0) as u16);"
)?;
writeln!(w, "{prefix}encoder.bytes.extend_from_slice(&raw.to_ne_bytes());")?;
}
- "u32_newtype" => writeln!(w, "{prefix}encoder.bytes.extend_from_slice(&{name}.0.to_ne_bytes());")?,
+ "u32_newtype" => writeln!(
+ w,
+ "{prefix}encoder.bytes.extend_from_slice(&narrow_index({name}.0).to_ne_bytes());"
+ )?,
other => panic!("Unknown array element encoding kind: {other}"),
}
diff --git a/Libraries/LibJS/Flap/src/target/aarch64/finalize.rs b/Libraries/LibJS/Flap/src/target/aarch64/finalize.rs
index 93fe365130c..5b1cf86d55a 100644
--- a/Libraries/LibJS/Flap/src/target/aarch64/finalize.rs
+++ b/Libraries/LibJS/Flap/src/target/aarch64/finalize.rs
@@ -637,7 +637,7 @@ fn operand_store(
load(
emit,
- MemoryWidth::Word,
+ MemoryWidth::HalfWord,
false,
index,
MachineMemoryAddress::offset(X21, offset),
@@ -905,7 +905,7 @@ fn call_with_scalar_values(
function: crate::low_ir::Relocation,
layout: &crate::metadata::SlowPathLayout,
) -> Result<(), CompileError> {
- use crate::metadata::ParameterMode;
+ use crate::metadata::{NO_OPERAND, ParameterMode};
use crate::target::registers::aarch64::{SP, X0, X1, X3, X4, X5, X6, X7, X9, X10, X11, X21, X27};
let registers = [X3, X4, X5, X6, X7];
let inputs: Vec<_> = layout
@@ -923,14 +923,14 @@ fn call_with_scalar_values(
let ready = emit.unique_label("scalar_value_ready");
call_values_load(
emit,
- MemoryWidth::Word,
+ MemoryWidth::HalfWord,
X9,
MachineMemoryAddress::offset(X21, field.instruction_offset as i64),
)?;
if field.optional {
let empty = emit.constant(KnownLayoutConstant::EmptyValue)?;
move_immediate(emit, X10, empty, IntegerWidth::U64);
- move_immediate(emit, X11, -1, IntegerWidth::U32);
+ move_immediate(emit, X11, NO_OPERAND, IntegerWidth::U32);
emit!(emit.output, Aarch64;
Opcode::CompareRegister(IntegerWidth::U32) => [register X9, register X11];
Opcode::BranchCondition(super::Condition::Equal) => [label ready.clone()];
@@ -971,7 +971,7 @@ fn call_with_scalar_values(
if let Some(output) = layout.fields.iter().find(|field| field.mode == ParameterMode::Out) {
call_values_load(
emit,
- MemoryWidth::Word,
+ MemoryWidth::HalfWord,
X9,
MachineMemoryAddress::offset(X21, output.instruction_offset as i64),
)?;
@@ -998,7 +998,7 @@ fn call_with_values(
kind: crate::target::backend::HelperCallKind,
) -> Result<(), CompileError> {
use super::Condition;
- use crate::metadata::{ParameterMode, SlowPathAbi, SlowPathArray};
+ use crate::metadata::{NO_OPERAND, ParameterMode, SlowPathAbi, SlowPathArray};
use crate::target::description::ShiftOperation;
use crate::target::registers::aarch64::{
SP, X0, X3, X4, X5, X6, X7, X9, X10, X11, X12, X13, X14, X20, X21, X27, X28,
@@ -1110,12 +1110,12 @@ fn call_with_values(
}
call_values_load(
emit,
- MemoryWidth::Word,
+ MemoryWidth::HalfWord,
X12,
MachineMemoryAddress::offset(X21, field.instruction_offset as i64),
)?;
if field.optional {
- move_immediate(emit, X13, -1, IntegerWidth::U32);
+ move_immediate(emit, X13, NO_OPERAND, IntegerWidth::U32);
emit!(emit.output, Aarch64;
Opcode::CompareRegister(IntegerWidth::U32) => [register X12, register X13];
Opcode::BranchCondition(Condition::Equal) => [label ready.clone()];
@@ -1178,16 +1178,16 @@ fn call_with_values(
);
call_values_load(
emit,
- MemoryWidth::Word,
+ MemoryWidth::HalfWord,
X12,
MachineMemoryAddress {
- scale: Some(4),
+ scale: Some(2),
..MachineMemoryAddress::indexed(X3, X9)
},
)?;
if optional {
move_immediate(emit, X11, empty, IntegerWidth::U64);
- move_immediate(emit, X13, -1, IntegerWidth::U32);
+ move_immediate(emit, X13, NO_OPERAND, IntegerWidth::U32);
emit!(emit.output, Aarch64;
Opcode::CompareRegister(IntegerWidth::U32) => [register X12, register X13];
Opcode::BranchCondition(Condition::Equal) => [label ready.clone()];
@@ -1255,12 +1255,12 @@ fn call_with_values(
let skip = emit.unique_label("skip_output_value");
call_values_load(
emit,
- MemoryWidth::Word,
+ MemoryWidth::HalfWord,
X12,
MachineMemoryAddress::offset(X21, field.instruction_offset as i64),
)?;
if field.optional {
- move_immediate(emit, X13, -1, IntegerWidth::U32);
+ move_immediate(emit, X13, NO_OPERAND, IntegerWidth::U32);
emit!(emit.output, Aarch64;
Opcode::CompareRegister(IntegerWidth::U32) => [register X12, register X13];
Opcode::BranchCondition(Condition::Equal) => [label skip.clone()];
@@ -1316,12 +1316,12 @@ fn call_with_values(
let skip = emit.unique_label("skip_exceptional_output");
call_values_load(
emit,
- MemoryWidth::Word,
+ MemoryWidth::HalfWord,
X12,
MachineMemoryAddress::offset(X21, field.instruction_offset as i64),
)?;
if field.optional {
- move_immediate(emit, X13, -1, IntegerWidth::U32);
+ move_immediate(emit, X13, NO_OPERAND, IntegerWidth::U32);
emit!(emit.output, Aarch64;
Opcode::CompareRegister(IntegerWidth::U32) => [register X12, register X13];
Opcode::BranchCondition(Condition::Equal) => [label skip.clone()];
@@ -1779,7 +1779,8 @@ impl Backend for Aarch64Backend {
operands.physical_register(3),
];
let [dispatch_register, dispatch_scratch] = [operands.physical_register(4), operands.physical_register(5)];
- use crate::target::registers::aarch64::{SP, X0, X2, X3, X4, X9, X10, X27};
+ use crate::target::registers::aarch64::{SP, X0, X2, X3, X4, X5, X9, X10, X27};
+ let length = emit.binary_slow_path_instruction_length()?;
emit!(emit.output, Aarch64;
Opcode::AddSubtractImmediate { operation: AddSubtractOperation::Subtract, shift: super::ImmediateShift::None, flags: FlagUpdate::Preserve } => [register SP, register SP, immediate 16];
@@ -1791,6 +1792,7 @@ impl Backend for Aarch64Backend {
destination,
)?;
push_parallel_register_moves(emit, &[(X3, lhs), (X4, rhs)], dispatch_scratch);
+ move_immediate(emit, X5, length, IntegerWidth::U32);
call_values_add(emit, X2, SP, 0);
vm_pc_arguments(emit);
store_slow_path_program_counter(emit, dispatch_register, dispatch_scratch)?;
diff --git a/Libraries/LibJS/Flap/src/target/finalize_support.rs b/Libraries/LibJS/Flap/src/target/finalize_support.rs
index 24559ca3ab7..7fe6d4a0622 100644
--- a/Libraries/LibJS/Flap/src/target/finalize_support.rs
+++ b/Libraries/LibJS/Flap/src/target/finalize_support.rs
@@ -84,6 +84,14 @@ impl<'a> Emit<'a> {
finalize_error(self.handler, message)
}
+ /// The length of the instruction of a handler that calls a binary slow path, which the slow path continues after.
+ pub(crate) fn binary_slow_path_instruction_length(&self) -> Result<i64, CompileError> {
+ match self.handler_size {
+ Some(size) => Ok(i64::from(size)),
+ None => self.error("a variable-length handler cannot call a binary slow path"),
+ }
+ }
+
/// A layout constant the handler cannot be finalized without.
pub(crate) fn constant(&self, constant: KnownLayoutConstant) -> Result<i64, CompileError> {
required_runtime_constant(self.runtime, constant, self.handler)
diff --git a/Libraries/LibJS/Flap/src/target/x86_64/finalize.rs b/Libraries/LibJS/Flap/src/target/x86_64/finalize.rs
index 3ac0ca02731..eaa5c2c77dd 100644
--- a/Libraries/LibJS/Flap/src/target/x86_64/finalize.rs
+++ b/Libraries/LibJS/Flap/src/target/x86_64/finalize.rs
@@ -501,7 +501,7 @@ fn operand_store(emit: &mut Emit<'_>, offset: i64, source: &AllocatedOperand, sc
emit!(emit.output, X86_64;
Opcode::Load {
- width: MemoryWidth::Word,
+ width: MemoryWidth::HalfWord,
signed: false,
} => [register index, address MachineMemoryAddress::indexed_offset(R14, R13, offset)];
);
@@ -639,7 +639,7 @@ fn call_with_scalar_values(
function: crate::low_ir::Relocation,
layout: &crate::metadata::SlowPathLayout,
) -> Result<(), CompileError> {
- use crate::metadata::ParameterMode;
+ use crate::metadata::{NO_OPERAND, ParameterMode};
use crate::target::registers::x86_64::{R8, R9, R10, R11, R13, R14, RAX, RBX, RCX, RDX, RSP};
let registers = [RCX, R8, R9];
let inputs: Vec<_> = layout
@@ -655,13 +655,13 @@ fn call_with_scalar_values(
for (index, field) in inputs.iter().enumerate() {
let ready = emit.unique_label("scalar_value_ready");
emit!(emit.output, X86_64;
- Opcode::Load { width: MemoryWidth::Word, signed: false } => [register R10, address MachineMemoryAddress::offset(R11, field.instruction_offset as i64)];
+ Opcode::Load { width: MemoryWidth::HalfWord, signed: false } => [register R10, address MachineMemoryAddress::offset(R11, field.instruction_offset as i64)];
);
if field.optional {
let empty = emit.constant(KnownLayoutConstant::EmptyValue)?;
emit!(emit.output, X86_64;
Opcode::MoveAbsolute64Immediate => [register RAX, immediate empty];
- Opcode::CompareImmediate(IntegerWidth::U32) => [register R10, immediate -1];
+ Opcode::CompareImmediate(IntegerWidth::U32) => [register R10, immediate NO_OPERAND];
Opcode::JumpCondition(super::Condition::Equal) => [label ready.clone()];
);
}
@@ -696,7 +696,7 @@ fn call_with_scalar_values(
if let Some(output) = layout.fields.iter().find(|field| field.mode == ParameterMode::Out) {
emit!(emit.output, X86_64;
Opcode::LoadEffectiveAddress => [register RCX, address MachineMemoryAddress::indexed(R14, R13)];
- Opcode::Load { width: MemoryWidth::Word, signed: false } => [register R10, address MachineMemoryAddress::offset(RCX, output.instruction_offset as i64)];
+ Opcode::Load { width: MemoryWidth::HalfWord, signed: false } => [register R10, address MachineMemoryAddress::offset(RCX, output.instruction_offset as i64)];
Opcode::Store(MemoryWidth::DoubleWord) => [address MachineMemoryAddress { scale: Some(8), ..MachineMemoryAddress::indexed(RBX, R10) }, register RDX];
);
}
@@ -712,7 +712,7 @@ fn call_with_values(
kind: crate::target::backend::HelperCallKind,
) -> Result<(), CompileError> {
use super::{AluOperation, Condition};
- use crate::metadata::{ParameterMode, SlowPathAbi, SlowPathArray};
+ use crate::metadata::{NO_OPERAND, ParameterMode, SlowPathAbi, SlowPathArray};
use crate::target::registers::x86_64::{R8, R9, R10, R11, R13, R14, RAX, RBX, RCX, RDX, RSP};
let Some(layout) = emit.runtime.slow_paths.get(emit.handler).cloned() else {
@@ -815,11 +815,11 @@ fn call_with_values(
emit!(emit.output, X86_64; Opcode::MoveAbsolute64Immediate => [register RAX, immediate empty];);
}
emit!(emit.output, X86_64;
- Opcode::Load { width: MemoryWidth::Word, signed: false } => [register R10, address MachineMemoryAddress::offset(RCX, field.instruction_offset as i64)];
+ Opcode::Load { width: MemoryWidth::HalfWord, signed: false } => [register R10, address MachineMemoryAddress::offset(RCX, field.instruction_offset as i64)];
);
if field.optional {
emit!(emit.output, X86_64;
- Opcode::CompareImmediate(IntegerWidth::U32) => [register R10, immediate -1];
+ Opcode::CompareImmediate(IntegerWidth::U32) => [register R10, immediate NO_OPERAND];
Opcode::JumpCondition(Condition::Equal) => [label ready.clone()];
);
}
@@ -861,12 +861,12 @@ fn call_with_values(
Opcode::Label => [label next.clone()];
Opcode::CompareRegister(IntegerWidth::U64) => [register R11, register R10];
Opcode::JumpCondition(Condition::UnsignedGreaterOrEqual) => [label end.clone()];
- Opcode::Load { width: MemoryWidth::Word, signed: false } => [register RDX, address MachineMemoryAddress { scale: Some(4), ..MachineMemoryAddress::indexed_offset(RCX, R11, array_offset as i64) }];
+ Opcode::Load { width: MemoryWidth::HalfWord, signed: false } => [register RDX, address MachineMemoryAddress { scale: Some(2), ..MachineMemoryAddress::indexed_offset(RCX, R11, array_offset as i64) }];
);
if optional {
emit!(emit.output, X86_64;
Opcode::MoveAbsolute64Immediate => [register RAX, immediate empty];
- Opcode::CompareImmediate(IntegerWidth::U32) => [register RDX, immediate -1];
+ Opcode::CompareImmediate(IntegerWidth::U32) => [register RDX, immediate NO_OPERAND];
Opcode::JumpCondition(Condition::Equal) => [label ready.clone()];
);
}
@@ -930,11 +930,11 @@ fn call_with_values(
}
let skip = emit.unique_label("skip_output_value");
emit!(emit.output, X86_64;
- Opcode::Load { width: MemoryWidth::Word, signed: false } => [register R10, address MachineMemoryAddress::offset(RCX, field.instruction_offset as i64)];
+ Opcode::Load { width: MemoryWidth::HalfWord, signed: false } => [register R10, address MachineMemoryAddress::offset(RCX, field.instruction_offset as i64)];
);
if field.optional {
emit!(emit.output, X86_64;
- Opcode::CompareImmediate(IntegerWidth::U32) => [register R10, immediate -1];
+ Opcode::CompareImmediate(IntegerWidth::U32) => [register R10, immediate NO_OPERAND];
Opcode::JumpCondition(Condition::Equal) => [label skip.clone()];
);
}
@@ -976,11 +976,11 @@ fn call_with_values(
let skip = emit.unique_label("skip_exceptional_output");
emit!(emit.output, X86_64;
Opcode::LoadEffectiveAddress => [register RCX, address MachineMemoryAddress::indexed(R14, R13)];
- Opcode::Load { width: MemoryWidth::Word, signed: false } => [register R10, address MachineMemoryAddress::offset(RCX, field.instruction_offset as i64)];
+ Opcode::Load { width: MemoryWidth::HalfWord, signed: false } => [register R10, address MachineMemoryAddress::offset(RCX, field.instruction_offset as i64)];
);
if field.optional {
emit!(emit.output, X86_64;
- Opcode::CompareImmediate(IntegerWidth::U32) => [register R10, immediate -1];
+ Opcode::CompareImmediate(IntegerWidth::U32) => [register R10, immediate NO_OPERAND];
Opcode::JumpCondition(Condition::Equal) => [label skip.clone()];
);
}
@@ -1400,6 +1400,7 @@ impl Backend for X86_64Backend {
];
let [result_scratch, state_scratch] = [operands.physical_register(4), operands.physical_register(5)];
use crate::target::registers::x86_64::{R8, R9, R10, R11, R13, RAX, RBX, RCX, RDI, RDX, RSI, RSP};
+ let length = emit.binary_slow_path_instruction_length()?;
store_slow_path_program_counter(emit)?;
let result_offset = if emit.object_format == ObjectFormat::Coff {
@@ -1424,12 +1425,20 @@ impl Backend for X86_64Backend {
StoreSource::Register(rhs),
None,
);
+ store(
+ emit,
+ MemoryWidth::Word,
+ MachineMemoryAddress::offset(RSP, 40),
+ StoreSource::Immediate(length),
+ None,
+ );
push_parallel_register_moves(emit, &[(R9, lhs)], state_scratch);
emit!(emit.output, X86_64; Opcode::LoadEffectiveAddress => [register R8, address MachineMemoryAddress::offset(RSP, result_offset)];);
vm_load(emit, RCX);
emit!(emit.output, X86_64; Opcode::Move32Register => [register RDX, register R13];);
} else {
push_parallel_register_moves(emit, &[(RCX, lhs), (R8, rhs)], state_scratch);
+ emit!(emit.output, X86_64; Opcode::Move32Immediate => [register R9, immediate length];);
emit!(emit.output, X86_64; Opcode::LoadEffectiveAddress => [register RDX, address MachineMemoryAddress::offset(RSP, result_offset)];);
vm_load(emit, RDI);
emit!(emit.output, X86_64; Opcode::Move32Register => [register RSI, register R13];);
diff --git a/Libraries/LibJS/Flap/src/types.rs b/Libraries/LibJS/Flap/src/types.rs
index 73bb922d8ea..c070b4ccb97 100644
--- a/Libraries/LibJS/Flap/src/types.rs
+++ b/Libraries/LibJS/Flap/src/types.rs
@@ -237,9 +237,9 @@ define_named_types! {
InlineInt32 => "Int32", Some(4), false;
SlotIndex => "SlotIndex", Some(4), false;
BytecodeOffset => "BytecodeOffset", Some(4), false;
- EnvironmentCoordinateCacheIndex => "EnvironmentCoordinateCacheIndex", Some(4), false;
- GlobalVariableCacheIndex => "GlobalVariableCacheIndex", Some(4), false;
- PropertyLookupCacheIndex => "PropertyLookupCacheIndex", Some(4), false;
+ EnvironmentCoordinateCacheIndex => "EnvironmentCoordinateCacheIndex", Some(2), false;
+ GlobalVariableCacheIndex => "GlobalVariableCacheIndex", Some(2), false;
+ PropertyLookupCacheIndex => "PropertyLookupCacheIndex", Some(2), false;
ArithFeedbackIndex => "ArithFeedbackIndex", Some(2), false;
ValueFeedbackIndex => "ValueFeedbackIndex", Some(2), false;
CallFeedbackIndex => "CallFeedbackIndex", Some(2), false;
diff --git a/Libraries/LibJS/Flap/tests/interpreter-assembly/aarch64.S b/Libraries/LibJS/Flap/tests/interpreter-assembly/aarch64.S
index 3d33b85dcdb..56318441a80 100644
--- a/Libraries/LibJS/Flap/tests/interpreter-assembly/aarch64.S
+++ b/Libraries/LibJS/Flap/tests/interpreter-assembly/aarch64.S
@@ -1688,28 +1688,30 @@ asm_handler_Enter:
.Lasm_Enter.ssa_block_7:
mov w9, #1
strb w9, [x28, #79]
- ldrb w9, [x21, #8]
- add x21, x21, #8
+ ldrb w9, [x21, #1]
+ add x21, x21, #1
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_Enter_hot_end:
.p2align 4
asm_handler_Mov:
- ldp w0, w1, [x21, #4]
+ ldurh w0, [x21, #1]
+ ldurh w1, [x21, #3]
ldr x1, [x27, x1, lsl #3]
str x1, [x27, x0, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #5]
+ add x21, x21, #5
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_Mov_hot_end:
.p2align 4
asm_handler_Add:
- ldp w1, w0, [x21, #8]
- ldr x1, [x27, x1, lsl #3]
- ldr x0, [x27, x0, lsl #3]
+ ldurh w0, [x21, #5]
+ ldurh w2, [x21, #7]
+ ldr x1, [x27, x0, lsl #3]
+ ldr x0, [x27, x2, lsl #3]
lsr x2, x1, #48
cmp w2, w22
b.ne .Lasm_Add.ssa_block_5
@@ -1719,19 +1721,20 @@ asm_handler_Add:
adds w1, w1, w0
b.vs .Lasm_Add.ssa_checked_6_failure
movk x1, #0x7ffa, lsl #48
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x1, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_Add_hot_end:
.p2align 4
asm_handler_Sub:
- ldp w1, w0, [x21, #8]
- ldr x1, [x27, x1, lsl #3]
- ldr x0, [x27, x0, lsl #3]
+ ldurh w0, [x21, #5]
+ ldurh w2, [x21, #7]
+ ldr x1, [x27, x0, lsl #3]
+ ldr x0, [x27, x2, lsl #3]
lsr x2, x1, #48
cmp w2, w22
b.ne .Lasm_Sub.ssa_block_5
@@ -1741,19 +1744,20 @@ asm_handler_Sub:
subs w1, w1, w0
b.vs .Lasm_Sub.ssa_checked_6_failure
movk x1, #0x7ffa, lsl #48
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x1, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_Sub_hot_end:
.p2align 4
asm_handler_Mul:
- ldp w1, w0, [x21, #8]
- ldr x1, [x27, x1, lsl #3]
- ldr x0, [x27, x0, lsl #3]
+ ldurh w0, [x21, #5]
+ ldurh w2, [x21, #7]
+ ldr x1, [x27, x0, lsl #3]
+ ldr x0, [x27, x2, lsl #3]
lsr x2, x1, #48
cmp w2, w22
b.ne .Lasm_Mul.ssa_block_6
@@ -1772,17 +1776,17 @@ asm_handler_Mul:
1:
.Lasm_Mul.ssa_block_13:
movk x2, #0x7ffa, lsl #48
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x2, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_Mul_hot_end:
.p2align 4
asm_handler_Jump:
- ldr w0, [x21, #4]
+ ldur w0, [x21, #1]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
@@ -1791,7 +1795,7 @@ asm_handler_Jump_hot_end:
.p2align 4
asm_handler_JumpIf:
- ldr w0, [x21, #4]
+ ldurh w0, [x21, #1]
ldr x0, [x27, x0, lsl #3]
lsr x1, x0, #48
cmp w1, w23
@@ -1809,7 +1813,7 @@ asm_handler_JumpIf:
ldrh w0, [x0, #12]
tbnz x0, #13, .Lasm_JumpIf.ssa_block_1
.Lasm_JumpIf.ssa_block_2:
- ldr w0, [x21, #8]
+ ldur w0, [x21, #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
@@ -1820,7 +1824,7 @@ asm_handler_JumpIf:
b.hs .Lasm_JumpIf.assert_predicate_failure_7
cbnz x0, .Lasm_JumpIf.ssa_block_2
.Lasm_JumpIf.ssa_block_1:
- ldr w0, [x21, #12]
+ ldur w0, [x21, #7]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
@@ -1832,14 +1836,14 @@ asm_handler_JumpIf_hot_end:
.p2align 4
asm_handler_JumpTrue:
- ldr w0, [x21, #4]
+ ldurh w0, [x21, #1]
ldr x0, [x27, x0, lsl #3]
lsr x1, x0, #48
cmp w1, w23
b.ne .Lasm_JumpTrue.ssa_block_6
tbnz x0, #0, .Lasm_JumpTrue.ssa_block_1
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #7]
+ add x21, x21, #7
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_JumpTrue.ssa_block_6:
@@ -1852,8 +1856,8 @@ asm_handler_JumpTrue:
add x0, x0, x24
ldrh w0, [x0, #12]
tbz x0, #13, .Lasm_JumpTrue.ssa_block_1
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #7]
+ add x21, x21, #7
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_JumpTrue.ssa_block_2:
@@ -1861,18 +1865,18 @@ asm_handler_JumpTrue:
cmp x0, #2
b.hs .Lasm_JumpTrue.assert_predicate_failure_6
cbnz x0, .Lasm_JumpTrue.ssa_block_1
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #7]
+ add x21, x21, #7
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_JumpTrue.ssa_block_3:
cbnz w0, .Lasm_JumpTrue.ssa_block_1
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #7]
+ add x21, x21, #7
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_JumpTrue.ssa_block_1:
- ldr w0, [x21, #8]
+ ldur w0, [x21, #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
@@ -1881,14 +1885,14 @@ asm_handler_JumpTrue_hot_end:
.p2align 4
asm_handler_JumpFalse:
- ldr w0, [x21, #4]
+ ldurh w0, [x21, #1]
ldr x0, [x27, x0, lsl #3]
lsr x1, x0, #48
cmp w1, w23
b.ne .Lasm_JumpFalse.ssa_block_6
tbz x0, #0, .Lasm_JumpFalse.ssa_block_1
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #7]
+ add x21, x21, #7
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_JumpFalse.ssa_block_6:
@@ -1901,8 +1905,8 @@ asm_handler_JumpFalse:
add x0, x0, x24
ldrh w0, [x0, #12]
tbnz x0, #13, .Lasm_JumpFalse.ssa_block_1
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #7]
+ add x21, x21, #7
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_JumpFalse.ssa_block_2:
@@ -1910,18 +1914,18 @@ asm_handler_JumpFalse:
cmp x0, #2
b.hs .Lasm_JumpFalse.assert_predicate_failure_6
cbz x0, .Lasm_JumpFalse.ssa_block_1
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #7]
+ add x21, x21, #7
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_JumpFalse.ssa_block_3:
cbz w0, .Lasm_JumpFalse.ssa_block_1
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #7]
+ add x21, x21, #7
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_JumpFalse.ssa_block_1:
- ldr w0, [x21, #8]
+ ldur w0, [x21, #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
@@ -1930,20 +1934,20 @@ asm_handler_JumpFalse_hot_end:
.p2align 4
asm_handler_JumpNullish:
- ldr w0, [x21, #4]
+ ldurh w0, [x21, #1]
ldr x0, [x27, x0, lsl #3]
lsr x0, x0, #48
and w0, w0, #0xfffe
mov w9, #32766
cmp w0, w9
b.ne .Lasm_JumpNullish.ssa_block_2
- ldr w0, [x21, #8]
+ ldur w0, [x21, #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_JumpNullish.ssa_block_2:
- ldr w0, [x21, #12]
+ ldur w0, [x21, #7]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
@@ -1952,18 +1956,18 @@ asm_handler_JumpNullish_hot_end:
.p2align 4
asm_handler_JumpUndefined:
- ldr w0, [x21, #4]
+ ldurh w0, [x21, #1]
ldr x0, [x27, x0, lsl #3]
movz x1, #0x7ffe, lsl #48
cmp x0, x1
b.ne .Lasm_JumpUndefined.ssa_block_2
- ldr w0, [x21, #8]
+ ldur w0, [x21, #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_JumpUndefined.ssa_block_2:
- ldr w0, [x21, #12]
+ ldur w0, [x21, #7]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
@@ -1972,9 +1976,10 @@ asm_handler_JumpUndefined_hot_end:
.p2align 4
asm_handler_JumpLessThan:
- ldp w1, w0, [x21, #4]
- ldr x1, [x27, x1, lsl #3]
- ldr x0, [x27, x0, lsl #3]
+ ldurh w0, [x21, #3]
+ ldurh w2, [x21, #5]
+ ldr x1, [x27, x0, lsl #3]
+ ldr x0, [x27, x2, lsl #3]
lsr x2, x1, #48
cmp w2, w22
b.ne .Lasm_JumpLessThan.ssa_block_8
@@ -1985,13 +1990,13 @@ asm_handler_JumpLessThan:
cmp w2, w0
b.ge .Lasm_JumpLessThan.ssa_block_3
.Lasm_JumpLessThan.ssa_block_2:
- ldr w0, [x21, #12]
+ ldur w0, [x21, #7]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_JumpLessThan.ssa_block_3:
- ldr w0, [x21, #16]
+ ldur w0, [x21, #11]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
@@ -2000,9 +2005,10 @@ asm_handler_JumpLessThan_hot_end:
.p2align 4
asm_handler_JumpGreaterThan:
- ldp w1, w0, [x21, #4]
- ldr x1, [x27, x1, lsl #3]
- ldr x0, [x27, x0, lsl #3]
+ ldurh w0, [x21, #3]
+ ldurh w2, [x21, #5]
+ ldr x1, [x27, x0, lsl #3]
+ ldr x0, [x27, x2, lsl #3]
lsr x2, x1, #48
cmp w2, w22
b.ne .Lasm_JumpGreaterThan.ssa_block_8
@@ -2013,13 +2019,13 @@ asm_handler_JumpGreaterThan:
cmp w2, w0
b.le .Lasm_JumpGreaterThan.ssa_block_3
.Lasm_JumpGreaterThan.ssa_block_2:
- ldr w0, [x21, #12]
+ ldur w0, [x21, #7]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_JumpGreaterThan.ssa_block_3:
- ldr w0, [x21, #16]
+ ldur w0, [x21, #11]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
@@ -2028,9 +2034,10 @@ asm_handler_JumpGreaterThan_hot_end:
.p2align 4
asm_handler_JumpLessThanEquals:
- ldp w1, w0, [x21, #4]
- ldr x1, [x27, x1, lsl #3]
- ldr x0, [x27, x0, lsl #3]
+ ldurh w0, [x21, #3]
+ ldurh w2, [x21, #5]
+ ldr x1, [x27, x0, lsl #3]
+ ldr x0, [x27, x2, lsl #3]
lsr x2, x1, #48
cmp w2, w22
b.ne .Lasm_JumpLessThanEquals.ssa_block_8
@@ -2041,13 +2048,13 @@ asm_handler_JumpLessThanEquals:
cmp w2, w0
b.gt .Lasm_JumpLessThanEquals.ssa_block_3
.Lasm_JumpLessThanEquals.ssa_block_2:
- ldr w0, [x21, #12]
+ ldur w0, [x21, #7]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_JumpLessThanEquals.ssa_block_3:
- ldr w0, [x21, #16]
+ ldur w0, [x21, #11]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
@@ -2056,9 +2063,10 @@ asm_handler_JumpLessThanEquals_hot_end:
.p2align 4
asm_handler_JumpGreaterThanEquals:
- ldp w1, w0, [x21, #4]
- ldr x1, [x27, x1, lsl #3]
- ldr x0, [x27, x0, lsl #3]
+ ldurh w0, [x21, #3]
+ ldurh w2, [x21, #5]
+ ldr x1, [x27, x0, lsl #3]
+ ldr x0, [x27, x2, lsl #3]
lsr x2, x1, #48
cmp w2, w22
b.ne .Lasm_JumpGreaterThanEquals.ssa_block_8
@@ -2069,13 +2077,13 @@ asm_handler_JumpGreaterThanEquals:
cmp w2, w0
b.lt .Lasm_JumpGreaterThanEquals.ssa_block_3
.Lasm_JumpGreaterThanEquals.ssa_block_2:
- ldr w0, [x21, #12]
+ ldur w0, [x21, #7]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_JumpGreaterThanEquals.ssa_block_3:
- ldr w0, [x21, #16]
+ ldur w0, [x21, #11]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
@@ -2084,7 +2092,8 @@ asm_handler_JumpGreaterThanEquals_hot_end:
.p2align 4
asm_handler_JumpLooselyEquals:
- ldp w0, w1, [x21, #4]
+ ldurh w0, [x21, #3]
+ ldurh w1, [x21, #5]
ldr x0, [x27, x0, lsl #3]
ldr x2, [x27, x1, lsl #3]
lsr x3, x2, #48
@@ -2164,13 +2173,13 @@ asm_handler_JumpLooselyEquals:
b.ne .Lasm_JumpLooselyEquals.ssa_block_22
b .Lasm_JumpLooselyEquals.ssa_block_1
.Lasm_JumpLooselyEquals.ssa_block_3:
- ldr w0, [x21, #16]
+ ldur w0, [x21, #11]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_JumpLooselyEquals.ssa_block_2:
- ldr w0, [x21, #12]
+ ldur w0, [x21, #7]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
@@ -2179,7 +2188,8 @@ asm_handler_JumpLooselyEquals_hot_end:
.p2align 4
asm_handler_JumpLooselyInequals:
- ldp w0, w1, [x21, #4]
+ ldurh w0, [x21, #3]
+ ldurh w1, [x21, #5]
ldr x0, [x27, x0, lsl #3]
ldr x2, [x27, x1, lsl #3]
lsr x3, x2, #48
@@ -2259,13 +2269,13 @@ asm_handler_JumpLooselyInequals:
b.ne .Lasm_JumpLooselyInequals.ssa_block_22
b .Lasm_JumpLooselyInequals.ssa_block_1
.Lasm_JumpLooselyInequals.ssa_block_2:
- ldr w0, [x21, #12]
+ ldur w0, [x21, #7]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_JumpLooselyInequals.ssa_block_3:
- ldr w0, [x21, #16]
+ ldur w0, [x21, #11]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
@@ -2274,7 +2284,8 @@ asm_handler_JumpLooselyInequals_hot_end:
.p2align 4
asm_handler_JumpStrictlyEquals:
- ldp w0, w1, [x21, #4]
+ ldurh w0, [x21, #3]
+ ldurh w1, [x21, #5]
ldr x0, [x27, x0, lsl #3]
ldr x2, [x27, x1, lsl #3]
lsr x3, x2, #48
@@ -2355,13 +2366,13 @@ asm_handler_JumpStrictlyEquals:
cmp w3, w9
b.ne .Lasm_JumpStrictlyEquals.ssa_block_20
.Lasm_JumpStrictlyEquals.ssa_block_3:
- ldr w0, [x21, #16]
+ ldur w0, [x21, #11]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_JumpStrictlyEquals.ssa_block_2:
- ldr w0, [x21, #12]
+ ldur w0, [x21, #7]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
@@ -2370,7 +2381,8 @@ asm_handler_JumpStrictlyEquals_hot_end:
.p2align 4
asm_handler_JumpStrictlyInequals:
- ldp w0, w1, [x21, #4]
+ ldurh w0, [x21, #3]
+ ldurh w1, [x21, #5]
ldr x0, [x27, x0, lsl #3]
ldr x2, [x27, x1, lsl #3]
lsr x3, x2, #48
@@ -2451,13 +2463,13 @@ asm_handler_JumpStrictlyInequals:
cmp w3, w9
b.ne .Lasm_JumpStrictlyInequals.ssa_block_20
.Lasm_JumpStrictlyInequals.ssa_block_2:
- ldr w0, [x21, #12]
+ ldur w0, [x21, #7]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_JumpStrictlyInequals.ssa_block_3:
- ldr w0, [x21, #16]
+ ldur w0, [x21, #11]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
@@ -2466,7 +2478,7 @@ asm_handler_JumpStrictlyInequals_hot_end:
.p2align 4
asm_handler_JumpLoop:
- ldr w0, [x21, #4]
+ ldur w0, [x21, #1]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
@@ -2475,7 +2487,7 @@ asm_handler_JumpLoop_hot_end:
.p2align 4
asm_handler_JumpIfLoop:
- ldr w0, [x21, #4]
+ ldurh w0, [x21, #1]
ldr x0, [x27, x0, lsl #3]
lsr x1, x0, #48
cmp w1, w23
@@ -2493,7 +2505,7 @@ asm_handler_JumpIfLoop:
ldrh w0, [x0, #12]
tbnz x0, #13, .Lasm_JumpIfLoop.ssa_block_1
.Lasm_JumpIfLoop.ssa_block_2:
- ldr w0, [x21, #8]
+ ldur w0, [x21, #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
@@ -2504,7 +2516,7 @@ asm_handler_JumpIfLoop:
b.hs .Lasm_JumpIfLoop.assert_predicate_failure_7
cbnz x0, .Lasm_JumpIfLoop.ssa_block_2
.Lasm_JumpIfLoop.ssa_block_1:
- ldr w0, [x21, #12]
+ ldur w0, [x21, #7]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
@@ -2516,14 +2528,14 @@ asm_handler_JumpIfLoop_hot_end:
.p2align 4
asm_handler_JumpTrueLoop:
- ldr w0, [x21, #4]
+ ldurh w0, [x21, #1]
ldr x0, [x27, x0, lsl #3]
lsr x1, x0, #48
cmp w1, w23
b.ne .Lasm_JumpTrueLoop.ssa_block_6
tbnz x0, #0, .Lasm_JumpTrueLoop.ssa_block_1
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #7]
+ add x21, x21, #7
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_JumpTrueLoop.ssa_block_6:
@@ -2536,8 +2548,8 @@ asm_handler_JumpTrueLoop:
add x0, x0, x24
ldrh w0, [x0, #12]
tbz x0, #13, .Lasm_JumpTrueLoop.ssa_block_1
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #7]
+ add x21, x21, #7
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_JumpTrueLoop.ssa_block_2:
@@ -2545,18 +2557,18 @@ asm_handler_JumpTrueLoop:
cmp x0, #2
b.hs .Lasm_JumpTrueLoop.assert_predicate_failure_6
cbnz x0, .Lasm_JumpTrueLoop.ssa_block_1
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #7]
+ add x21, x21, #7
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_JumpTrueLoop.ssa_block_3:
cbnz w0, .Lasm_JumpTrueLoop.ssa_block_1
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #7]
+ add x21, x21, #7
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_JumpTrueLoop.ssa_block_1:
- ldr w0, [x21, #8]
+ ldur w0, [x21, #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
@@ -2565,14 +2577,14 @@ asm_handler_JumpTrueLoop_hot_end:
.p2align 4
asm_handler_JumpFalseLoop:
- ldr w0, [x21, #4]
+ ldurh w0, [x21, #1]
ldr x0, [x27, x0, lsl #3]
lsr x1, x0, #48
cmp w1, w23
b.ne .Lasm_JumpFalseLoop.ssa_block_6
tbz x0, #0, .Lasm_JumpFalseLoop.ssa_block_1
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #7]
+ add x21, x21, #7
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_JumpFalseLoop.ssa_block_6:
@@ -2585,8 +2597,8 @@ asm_handler_JumpFalseLoop:
add x0, x0, x24
ldrh w0, [x0, #12]
tbnz x0, #13, .Lasm_JumpFalseLoop.ssa_block_1
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #7]
+ add x21, x21, #7
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_JumpFalseLoop.ssa_block_2:
@@ -2594,18 +2606,18 @@ asm_handler_JumpFalseLoop:
cmp x0, #2
b.hs .Lasm_JumpFalseLoop.assert_predicate_failure_6
cbz x0, .Lasm_JumpFalseLoop.ssa_block_1
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #7]
+ add x21, x21, #7
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_JumpFalseLoop.ssa_block_3:
cbz w0, .Lasm_JumpFalseLoop.ssa_block_1
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #7]
+ add x21, x21, #7
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_JumpFalseLoop.ssa_block_1:
- ldr w0, [x21, #8]
+ ldur w0, [x21, #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
@@ -2614,9 +2626,10 @@ asm_handler_JumpFalseLoop_hot_end:
.p2align 4
asm_handler_JumpLessThanLoop:
- ldp w1, w0, [x21, #4]
- ldr x1, [x27, x1, lsl #3]
- ldr x0, [x27, x0, lsl #3]
+ ldurh w0, [x21, #3]
+ ldurh w2, [x21, #5]
+ ldr x1, [x27, x0, lsl #3]
+ ldr x0, [x27, x2, lsl #3]
lsr x2, x1, #48
cmp w2, w22
b.ne .Lasm_JumpLessThanLoop.ssa_block_8
@@ -2627,13 +2640,13 @@ asm_handler_JumpLessThanLoop:
cmp w2, w0
b.ge .Lasm_JumpLessThanLoop.ssa_block_3
.Lasm_JumpLessThanLoop.ssa_block_2:
- ldr w0, [x21, #12]
+ ldur w0, [x21, #7]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_JumpLessThanLoop.ssa_block_3:
- ldr w0, [x21, #16]
+ ldur w0, [x21, #11]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
@@ -2642,9 +2655,10 @@ asm_handler_JumpLessThanLoop_hot_end:
.p2align 4
asm_handler_JumpGreaterThanLoop:
- ldp w1, w0, [x21, #4]
- ldr x1, [x27, x1, lsl #3]
- ldr x0, [x27, x0, lsl #3]
+ ldurh w0, [x21, #3]
+ ldurh w2, [x21, #5]
+ ldr x1, [x27, x0, lsl #3]
+ ldr x0, [x27, x2, lsl #3]
lsr x2, x1, #48
cmp w2, w22
b.ne .Lasm_JumpGreaterThanLoop.ssa_block_8
@@ -2655,13 +2669,13 @@ asm_handler_JumpGreaterThanLoop:
cmp w2, w0
b.le .Lasm_JumpGreaterThanLoop.ssa_block_3
.Lasm_JumpGreaterThanLoop.ssa_block_2:
- ldr w0, [x21, #12]
+ ldur w0, [x21, #7]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_JumpGreaterThanLoop.ssa_block_3:
- ldr w0, [x21, #16]
+ ldur w0, [x21, #11]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
@@ -2670,9 +2684,10 @@ asm_handler_JumpGreaterThanLoop_hot_end:
.p2align 4
asm_handler_JumpLessThanEqualsLoop:
- ldp w1, w0, [x21, #4]
- ldr x1, [x27, x1, lsl #3]
- ldr x0, [x27, x0, lsl #3]
+ ldurh w0, [x21, #3]
+ ldurh w2, [x21, #5]
+ ldr x1, [x27, x0, lsl #3]
+ ldr x0, [x27, x2, lsl #3]
lsr x2, x1, #48
cmp w2, w22
b.ne .Lasm_JumpLessThanEqualsLoop.ssa_block_8
@@ -2683,13 +2698,13 @@ asm_handler_JumpLessThanEqualsLoop:
cmp w2, w0
b.gt .Lasm_JumpLessThanEqualsLoop.ssa_block_3
.Lasm_JumpLessThanEqualsLoop.ssa_block_2:
- ldr w0, [x21, #12]
+ ldur w0, [x21, #7]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_JumpLessThanEqualsLoop.ssa_block_3:
- ldr w0, [x21, #16]
+ ldur w0, [x21, #11]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
@@ -2698,9 +2713,10 @@ asm_handler_JumpLessThanEqualsLoop_hot_end:
.p2align 4
asm_handler_JumpGreaterThanEqualsLoop:
- ldp w1, w0, [x21, #4]
- ldr x1, [x27, x1, lsl #3]
- ldr x0, [x27, x0, lsl #3]
+ ldurh w0, [x21, #3]
+ ldurh w2, [x21, #5]
+ ldr x1, [x27, x0, lsl #3]
+ ldr x0, [x27, x2, lsl #3]
lsr x2, x1, #48
cmp w2, w22
b.ne .Lasm_JumpGreaterThanEqualsLoop.ssa_block_8
@@ -2711,13 +2727,13 @@ asm_handler_JumpGreaterThanEqualsLoop:
cmp w2, w0
b.lt .Lasm_JumpGreaterThanEqualsLoop.ssa_block_3
.Lasm_JumpGreaterThanEqualsLoop.ssa_block_2:
- ldr w0, [x21, #12]
+ ldur w0, [x21, #7]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_JumpGreaterThanEqualsLoop.ssa_block_3:
- ldr w0, [x21, #16]
+ ldur w0, [x21, #11]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
@@ -2726,7 +2742,8 @@ asm_handler_JumpGreaterThanEqualsLoop_hot_end:
.p2align 4
asm_handler_JumpLooselyEqualsLoop:
- ldp w0, w1, [x21, #4]
+ ldurh w0, [x21, #3]
+ ldurh w1, [x21, #5]
ldr x0, [x27, x0, lsl #3]
ldr x2, [x27, x1, lsl #3]
lsr x3, x2, #48
@@ -2806,13 +2823,13 @@ asm_handler_JumpLooselyEqualsLoop:
b.ne .Lasm_JumpLooselyEqualsLoop.ssa_block_22
b .Lasm_JumpLooselyEqualsLoop.ssa_block_1
.Lasm_JumpLooselyEqualsLoop.ssa_block_3:
- ldr w0, [x21, #16]
+ ldur w0, [x21, #11]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_JumpLooselyEqualsLoop.ssa_block_2:
- ldr w0, [x21, #12]
+ ldur w0, [x21, #7]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
@@ -2821,7 +2838,8 @@ asm_handler_JumpLooselyEqualsLoop_hot_end:
.p2align 4
asm_handler_JumpLooselyInequalsLoop:
- ldp w0, w1, [x21, #4]
+ ldurh w0, [x21, #3]
+ ldurh w1, [x21, #5]
ldr x0, [x27, x0, lsl #3]
ldr x2, [x27, x1, lsl #3]
lsr x3, x2, #48
@@ -2901,13 +2919,13 @@ asm_handler_JumpLooselyInequalsLoop:
b.ne .Lasm_JumpLooselyInequalsLoop.ssa_block_22
b .Lasm_JumpLooselyInequalsLoop.ssa_block_1
.Lasm_JumpLooselyInequalsLoop.ssa_block_2:
- ldr w0, [x21, #12]
+ ldur w0, [x21, #7]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_JumpLooselyInequalsLoop.ssa_block_3:
- ldr w0, [x21, #16]
+ ldur w0, [x21, #11]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
@@ -2916,7 +2934,8 @@ asm_handler_JumpLooselyInequalsLoop_hot_end:
.p2align 4
asm_handler_JumpStrictlyEqualsLoop:
- ldp w0, w1, [x21, #4]
+ ldurh w0, [x21, #3]
+ ldurh w1, [x21, #5]
ldr x0, [x27, x0, lsl #3]
ldr x2, [x27, x1, lsl #3]
lsr x3, x2, #48
@@ -2997,13 +3016,13 @@ asm_handler_JumpStrictlyEqualsLoop:
cmp w3, w9
b.ne .Lasm_JumpStrictlyEqualsLoop.ssa_block_20
.Lasm_JumpStrictlyEqualsLoop.ssa_block_3:
- ldr w0, [x21, #16]
+ ldur w0, [x21, #11]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_JumpStrictlyEqualsLoop.ssa_block_2:
- ldr w0, [x21, #12]
+ ldur w0, [x21, #7]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
@@ -3012,7 +3031,8 @@ asm_handler_JumpStrictlyEqualsLoop_hot_end:
.p2align 4
asm_handler_JumpStrictlyInequalsLoop:
- ldp w0, w1, [x21, #4]
+ ldurh w0, [x21, #3]
+ ldurh w1, [x21, #5]
ldr x0, [x27, x0, lsl #3]
ldr x2, [x27, x1, lsl #3]
lsr x3, x2, #48
@@ -3093,13 +3113,13 @@ asm_handler_JumpStrictlyInequalsLoop:
cmp w3, w9
b.ne .Lasm_JumpStrictlyInequalsLoop.ssa_block_20
.Lasm_JumpStrictlyInequalsLoop.ssa_block_2:
- ldr w0, [x21, #12]
+ ldur w0, [x21, #7]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_JumpStrictlyInequalsLoop.ssa_block_3:
- ldr w0, [x21, #16]
+ ldur w0, [x21, #11]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
@@ -3108,7 +3128,7 @@ asm_handler_JumpStrictlyInequalsLoop_hot_end:
.p2align 4
asm_handler_Increment:
- ldr w0, [x21, #4]
+ ldurh w0, [x21, #3]
ldr x1, [x27, x0, lsl #3]
lsr x9, x1, #48
cmp x9, x22
@@ -3117,15 +3137,15 @@ asm_handler_Increment:
b.vs .Lasm_Increment.ssa_block_1
movk x1, #0x7ffa, lsl #48
str x1, [x27, x0, lsl #3]
- ldrb w9, [x21, #8]
- add x21, x21, #8
+ ldrb w9, [x21, #5]
+ add x21, x21, #5
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_Increment_hot_end:
.p2align 4
asm_handler_Decrement:
- ldr w0, [x21, #4]
+ ldurh w0, [x21, #3]
ldr x1, [x27, x0, lsl #3]
lsr x9, x1, #48
cmp x9, x22
@@ -3134,15 +3154,15 @@ asm_handler_Decrement:
b.vs .Lasm_Decrement.ssa_block_1
movk x1, #0x7ffa, lsl #48
str x1, [x27, x0, lsl #3]
- ldrb w9, [x21, #8]
- add x21, x21, #8
+ ldrb w9, [x21, #5]
+ add x21, x21, #5
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_Decrement_hot_end:
.p2align 4
asm_handler_Not:
- ldr w0, [x21, #8]
+ ldurh w0, [x21, #3]
ldr x0, [x27, x0, lsl #3]
lsr x1, x0, #48
cmp w1, w23
@@ -3154,12 +3174,12 @@ asm_handler_Not:
b.ne .Lasm_Not.ssa_block_6
cbnz w0, .Lasm_Not.ssa_block_2
.Lasm_Not.ssa_block_1:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
movz x10, #0x1, lsl #0
movk x10, #0x7ff9, lsl #48
str x10, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #5]
+ add x21, x21, #5
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_Not.ssa_block_6:
@@ -3182,28 +3202,28 @@ asm_handler_Not:
ldrh w0, [x0, #12]
tbnz x0, #13, .Lasm_Not.ssa_block_1
.Lasm_Not.ssa_block_2:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
movz x10, #0x7ff9, lsl #48
str x10, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #5]
+ add x21, x21, #5
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_Not_hot_end:
.p2align 4
asm_handler_ToBoolean:
- ldr w0, [x21, #8]
+ ldurh w0, [x21, #3]
ldr x0, [x27, x0, lsl #3]
bl CSYM(asm_helper_to_boolean)
cmp x0, #2
b.hs .Lasm_ToBoolean.assert_predicate_failure_3
movz x1, #0x7ff9, lsl #48
orr x0, x0, x1
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #5]
+ add x21, x21, #5
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_ToBoolean_hot_end:
@@ -3211,19 +3231,19 @@ asm_handler_ToBoolean_hot_end:
.p2align 4
asm_handler_Catch:
ldr x0, [x27, #8]
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
movz x9, #0x7ffb, lsl #48
str x9, [x27, #8]
- ldrb w9, [x21, #8]
- add x21, x21, #8
+ ldrb w9, [x21, #5]
+ add x21, x21, #5
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_Catch_hot_end:
.p2align 4
asm_handler_Return:
- ldr w0, [x21, #4]
+ ldurh w0, [x21, #1]
ldr x1, [x27, x0, lsl #3]
movz x2, #0x7ffb, lsl #48
cmp x1, x2
@@ -3273,7 +3293,7 @@ asm_handler_Return_hot_end:
.p2align 4
asm_handler_End:
- ldr w0, [x21, #4]
+ ldurh w0, [x21, #1]
ldr x1, [x27, x0, lsl #3]
lsr x9, x1, #48
mov w10, #32763
@@ -3326,17 +3346,17 @@ asm_handler_GetLexicalEnvironment:
and x0, x0, #0x7ffffffff
movz x1, #0xfff8, lsl #48
orr x0, x0, x1
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #8]
- add x21, x21, #8
+ ldrb w9, [x21, #3]
+ add x21, x21, #3
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_GetLexicalEnvironment_hot_end:
.p2align 4
asm_handler_SetLexicalEnvironment:
- ldr w0, [x21, #4]
+ ldurh w0, [x21, #1]
ldr x0, [x27, x0, lsl #3]
lsr x1, x0, #48
mov w9, #65528
@@ -3345,8 +3365,8 @@ asm_handler_SetLexicalEnvironment:
and x0, x0, #0x7ffffffff
add x0, x0, x24
str x0, [x28, #32]
- ldrb w9, [x21, #8]
- add x21, x21, #8
+ ldrb w9, [x21, #3]
+ add x21, x21, #3
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_SetLexicalEnvironment_hot_end:
@@ -3354,7 +3374,7 @@ asm_handler_SetLexicalEnvironment_hot_end:
.p2align 4
asm_handler_GetBinding:
ldr x0, [x28, #32]
- add x1, x21, #12
+ add x1, x21, #7
ldp w1, w2, [x1, #0]
cbz x0, .Lasm_GetBinding.assert_predicate_failure_9
cbz w1, .Lasm_GetBinding.ssa_block_3
@@ -3374,10 +3394,10 @@ asm_handler_GetBinding:
movz x9, #0x7ffb, lsl #48
cmp x0, x9
b.eq .Lasm_GetBinding.ssa_block_1
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #24]
- add x21, x21, #24
+ ldrb w9, [x21, #15]
+ add x21, x21, #15
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_GetBinding_hot_end:
@@ -3386,7 +3406,7 @@ asm_handler_GetBinding_hot_end:
asm_handler_DynamicGetBinding:
ldr x0, [x28, #88]
ldr x0, [x0, #200]
- ldr w1, [x21, #12]
+ ldurh w1, [x21, #7]
add x0, x0, x1, lsl #3
ldp w1, w2, [x0, #0]
movn w9, #1
@@ -3419,10 +3439,10 @@ asm_handler_DynamicGetBinding:
movz x9, #0x7ffb, lsl #48
cmp x0, x9
b.eq .Lasm_DynamicGetBinding.ssa_block_1
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_DynamicGetBinding_hot_end:
@@ -3430,7 +3450,7 @@ asm_handler_DynamicGetBinding_hot_end:
.p2align 4
asm_handler_GetInitializedBinding:
ldr x0, [x28, #32]
- add x1, x21, #12
+ add x1, x21, #7
ldp w1, w2, [x1, #0]
cbz x0, .Lasm_GetInitializedBinding.assert_predicate_failure_9
cbz w1, .Lasm_GetInitializedBinding.ssa_block_2
@@ -3447,10 +3467,10 @@ asm_handler_GetInitializedBinding:
ldr x0, [x0, #24]
cbz x0, .Lasm_GetInitializedBinding.assert_failure_0
ldr x0, [x0, x2, lsl #3]
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #24]
- add x21, x21, #24
+ ldrb w9, [x21, #15]
+ add x21, x21, #15
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_GetInitializedBinding_hot_end:
@@ -3459,7 +3479,7 @@ asm_handler_GetInitializedBinding_hot_end:
asm_handler_DynamicGetInitializedBinding:
ldr x0, [x28, #88]
ldr x0, [x0, #200]
- ldr w1, [x21, #12]
+ ldurh w1, [x21, #7]
add x0, x0, x1, lsl #3
ldp w1, w2, [x0, #0]
movn w9, #1
@@ -3489,10 +3509,10 @@ asm_handler_DynamicGetInitializedBinding:
ldr x0, [x0, #24]
cbz x0, .Lasm_DynamicGetInitializedBinding.assert_failure_0
ldr x0, [x0, x2, lsl #3]
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_DynamicGetInitializedBinding_hot_end:
@@ -3500,7 +3520,7 @@ asm_handler_DynamicGetInitializedBinding_hot_end:
.p2align 4
asm_handler_InitializeLexicalBinding:
ldr x0, [x28, #32]
- add x1, x21, #12
+ add x1, x21, #5
ldp w1, w2, [x1, #0]
cbz x0, .Lasm_InitializeLexicalBinding.assert_predicate_failure_9
cbz w1, .Lasm_InitializeLexicalBinding.ssa_block_2
@@ -3516,11 +3536,11 @@ asm_handler_InitializeLexicalBinding:
cbz x0, .Lasm_InitializeLexicalBinding.assert_predicate_failure_12
ldr x0, [x0, #24]
cbz x0, .Lasm_InitializeLexicalBinding.assert_failure_0
- ldr w1, [x21, #8]
+ ldurh w1, [x21, #3]
ldr x1, [x27, x1, lsl #3]
str x1, [x0, x2, lsl #3]
- ldrb w9, [x21, #24]
- add x21, x21, #24
+ ldrb w9, [x21, #13]
+ add x21, x21, #13
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_InitializeLexicalBinding_hot_end:
@@ -3528,7 +3548,7 @@ asm_handler_InitializeLexicalBinding_hot_end:
.p2align 4
asm_handler_InitializeVariableBinding:
ldr x0, [x28, #40]
- add x1, x21, #12
+ add x1, x21, #5
ldp w1, w2, [x1, #0]
cbz x0, .Lasm_InitializeVariableBinding.assert_predicate_failure_9
cbz w1, .Lasm_InitializeVariableBinding.ssa_block_2
@@ -3544,11 +3564,11 @@ asm_handler_InitializeVariableBinding:
cbz x0, .Lasm_InitializeVariableBinding.assert_predicate_failure_12
ldr x0, [x0, #24]
cbz x0, .Lasm_InitializeVariableBinding.assert_failure_0
- ldr w1, [x21, #8]
+ ldurh w1, [x21, #3]
ldr x1, [x27, x1, lsl #3]
str x1, [x0, x2, lsl #3]
- ldrb w9, [x21, #24]
- add x21, x21, #24
+ ldrb w9, [x21, #13]
+ add x21, x21, #13
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_InitializeVariableBinding_hot_end:
@@ -3557,7 +3577,7 @@ asm_handler_InitializeVariableBinding_hot_end:
asm_handler_DynamicInitializeLexicalBinding:
ldr x0, [x28, #88]
ldr x0, [x0, #200]
- ldr w1, [x21, #12]
+ ldurh w1, [x21, #5]
add x0, x0, x1, lsl #3
ldp w1, w2, [x0, #0]
movn w9, #1
@@ -3586,11 +3606,11 @@ asm_handler_DynamicInitializeLexicalBinding:
cbnz w9, .Lasm_DynamicInitializeLexicalBinding.ssa_block_1
ldr x0, [x0, #24]
cbz x0, .Lasm_DynamicInitializeLexicalBinding.assert_failure_0
- ldr w1, [x21, #8]
+ ldurh w1, [x21, #3]
ldr x1, [x27, x1, lsl #3]
str x1, [x0, x2, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #7]
+ add x21, x21, #7
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_DynamicInitializeLexicalBinding_hot_end:
@@ -3599,7 +3619,7 @@ asm_handler_DynamicInitializeLexicalBinding_hot_end:
asm_handler_DynamicInitializeVariableBinding:
ldr x0, [x28, #88]
ldr x0, [x0, #200]
- ldr w1, [x21, #12]
+ ldurh w1, [x21, #5]
add x0, x0, x1, lsl #3
ldp w1, w2, [x0, #0]
movn w9, #1
@@ -3628,11 +3648,11 @@ asm_handler_DynamicInitializeVariableBinding:
cbnz w9, .Lasm_DynamicInitializeVariableBinding.ssa_block_1
ldr x0, [x0, #24]
cbz x0, .Lasm_DynamicInitializeVariableBinding.assert_failure_0
- ldr w1, [x21, #8]
+ ldurh w1, [x21, #3]
ldr x1, [x27, x1, lsl #3]
str x1, [x0, x2, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #7]
+ add x21, x21, #7
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_DynamicInitializeVariableBinding_hot_end:
@@ -3640,7 +3660,7 @@ asm_handler_DynamicInitializeVariableBinding_hot_end:
.p2align 4
asm_handler_SetLexicalBinding:
ldr x1, [x28, #32]
- add x0, x21, #12
+ add x0, x21, #5
ldp w2, w0, [x0, #0]
cbz x1, .Lasm_SetLexicalBinding.assert_predicate_failure_9
cbz w2, .Lasm_SetLexicalBinding.ssa_block_5
@@ -3695,11 +3715,11 @@ asm_handler_SetLexicalBinding:
tbnz x1, #1, 1f
b .Lasm_SetLexicalBinding.ssa_block_1
1:
- ldr w1, [x21, #8]
+ ldurh w1, [x21, #3]
ldr x1, [x27, x1, lsl #3]
str x1, [x3, x0, lsl #3]
- ldrb w9, [x21, #24]
- add x21, x21, #24
+ ldrb w9, [x21, #13]
+ add x21, x21, #13
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_SetLexicalBinding_hot_end:
@@ -3707,7 +3727,7 @@ asm_handler_SetLexicalBinding_hot_end:
.p2align 4
asm_handler_SetVariableBinding:
ldr x1, [x28, #40]
- add x0, x21, #12
+ add x0, x21, #5
ldp w2, w0, [x0, #0]
cbz x1, .Lasm_SetVariableBinding.assert_predicate_failure_9
cbz w2, .Lasm_SetVariableBinding.ssa_block_5
@@ -3762,11 +3782,11 @@ asm_handler_SetVariableBinding:
tbnz x1, #1, 1f
b .Lasm_SetVariableBinding.ssa_block_1
1:
- ldr w1, [x21, #8]
+ ldurh w1, [x21, #3]
ldr x1, [x27, x1, lsl #3]
str x1, [x3, x0, lsl #3]
- ldrb w9, [x21, #24]
- add x21, x21, #24
+ ldrb w9, [x21, #13]
+ add x21, x21, #13
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_SetVariableBinding_hot_end:
@@ -3775,7 +3795,7 @@ asm_handler_SetVariableBinding_hot_end:
asm_handler_DynamicSetLexicalBinding:
ldr x0, [x28, #88]
ldr x0, [x0, #200]
- ldr w1, [x21, #12]
+ ldurh w1, [x21, #5]
add x0, x0, x1, lsl #3
ldp w2, w1, [x0, #0]
movn w9, #1
@@ -3843,11 +3863,11 @@ asm_handler_DynamicSetLexicalBinding:
tbnz x0, #1, 1f
b .Lasm_DynamicSetLexicalBinding.ssa_block_1
1:
- ldr w0, [x21, #8]
+ ldurh w0, [x21, #3]
ldr x0, [x27, x0, lsl #3]
str x0, [x3, x1, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #7]
+ add x21, x21, #7
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_DynamicSetLexicalBinding_hot_end:
@@ -3856,7 +3876,7 @@ asm_handler_DynamicSetLexicalBinding_hot_end:
asm_handler_DynamicSetVariableBinding:
ldr x0, [x28, #88]
ldr x0, [x0, #200]
- ldr w1, [x21, #12]
+ ldurh w1, [x21, #5]
add x0, x0, x1, lsl #3
ldp w2, w1, [x0, #0]
movn w9, #1
@@ -3924,39 +3944,40 @@ asm_handler_DynamicSetVariableBinding:
tbnz x0, #1, 1f
b .Lasm_DynamicSetVariableBinding.ssa_block_1
1:
- ldr w0, [x21, #8]
+ ldurh w0, [x21, #3]
ldr x0, [x27, x0, lsl #3]
str x0, [x3, x1, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #7]
+ add x21, x21, #7
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_DynamicSetVariableBinding_hot_end:
.p2align 4
asm_handler_PostfixIncrement:
- ldr w0, [x21, #8]
+ ldurh w0, [x21, #5]
ldr x1, [x27, x0, lsl #3]
lsr x9, x1, #48
cmp x9, x22
b.ne .Lasm_PostfixIncrement.ssa_block_2
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x1, [x27, x9, lsl #3]
adds w1, w1, #1
b.vs .Lasm_PostfixIncrement.ssa_block_1
movk x1, #0x7ffa, lsl #48
str x1, [x27, x0, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #7]
+ add x21, x21, #7
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_PostfixIncrement_hot_end:
.p2align 4
asm_handler_Div:
- ldp w1, w0, [x21, #8]
- ldr x1, [x27, x1, lsl #3]
- ldr x0, [x27, x0, lsl #3]
+ ldurh w0, [x21, #5]
+ ldurh w2, [x21, #7]
+ ldr x1, [x27, x0, lsl #3]
+ ldr x0, [x27, x2, lsl #3]
lsr x2, x1, #48
cmp w2, w22
b.ne .Lasm_Div.ssa_block_11
@@ -3991,10 +4012,10 @@ asm_handler_Div:
cbz w0, .Lasm_Div.ssa_block_2
.Lasm_Div.ssa_block_3:
movk x0, #0x7ffa, lsl #48
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_Div.ssa_block_2:
@@ -4005,19 +4026,20 @@ asm_handler_Div:
fcmp d0, d0
b.vs .Lasm_Div.canon_nan_0
.Lasm_Div.canon_nan_0_ret:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_Div_hot_end:
.p2align 4
asm_handler_LessThan:
- ldp w1, w0, [x21, #8]
- ldr x1, [x27, x1, lsl #3]
- ldr x0, [x27, x0, lsl #3]
+ ldurh w0, [x21, #5]
+ ldurh w2, [x21, #7]
+ ldr x1, [x27, x0, lsl #3]
+ ldr x0, [x27, x2, lsl #3]
lsr x2, x1, #48
cmp w2, w22
b.ne .Lasm_LessThan.ssa_block_8
@@ -4028,29 +4050,30 @@ asm_handler_LessThan:
cmp w2, w0
b.ge .Lasm_LessThan.ssa_block_2
.Lasm_LessThan.ssa_block_1:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
movz x10, #0x1, lsl #0
movk x10, #0x7ff9, lsl #48
str x10, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_LessThan.ssa_block_2:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
movz x10, #0x7ff9, lsl #48
str x10, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_LessThan_hot_end:
.p2align 4
asm_handler_LessThanEquals:
- ldp w1, w0, [x21, #8]
- ldr x1, [x27, x1, lsl #3]
- ldr x0, [x27, x0, lsl #3]
+ ldurh w0, [x21, #5]
+ ldurh w2, [x21, #7]
+ ldr x1, [x27, x0, lsl #3]
+ ldr x0, [x27, x2, lsl #3]
lsr x2, x1, #48
cmp w2, w22
b.ne .Lasm_LessThanEquals.ssa_block_8
@@ -4061,29 +4084,30 @@ asm_handler_LessThanEquals:
cmp w2, w0
b.gt .Lasm_LessThanEquals.ssa_block_2
.Lasm_LessThanEquals.ssa_block_1:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
movz x10, #0x1, lsl #0
movk x10, #0x7ff9, lsl #48
str x10, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_LessThanEquals.ssa_block_2:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
movz x10, #0x7ff9, lsl #48
str x10, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_LessThanEquals_hot_end:
.p2align 4
asm_handler_GreaterThan:
- ldp w1, w0, [x21, #8]
- ldr x1, [x27, x1, lsl #3]
- ldr x0, [x27, x0, lsl #3]
+ ldurh w0, [x21, #5]
+ ldurh w2, [x21, #7]
+ ldr x1, [x27, x0, lsl #3]
+ ldr x0, [x27, x2, lsl #3]
lsr x2, x1, #48
cmp w2, w22
b.ne .Lasm_GreaterThan.ssa_block_8
@@ -4094,29 +4118,30 @@ asm_handler_GreaterThan:
cmp w2, w0
b.le .Lasm_GreaterThan.ssa_block_2
.Lasm_GreaterThan.ssa_block_1:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
movz x10, #0x1, lsl #0
movk x10, #0x7ff9, lsl #48
str x10, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_GreaterThan.ssa_block_2:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
movz x10, #0x7ff9, lsl #48
str x10, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_GreaterThan_hot_end:
.p2align 4
asm_handler_GreaterThanEquals:
- ldp w1, w0, [x21, #8]
- ldr x1, [x27, x1, lsl #3]
- ldr x0, [x27, x0, lsl #3]
+ ldurh w0, [x21, #5]
+ ldurh w2, [x21, #7]
+ ldr x1, [x27, x0, lsl #3]
+ ldr x0, [x27, x2, lsl #3]
lsr x2, x1, #48
cmp w2, w22
b.ne .Lasm_GreaterThanEquals.ssa_block_8
@@ -4127,29 +4152,30 @@ asm_handler_GreaterThanEquals:
cmp w2, w0
b.lt .Lasm_GreaterThanEquals.ssa_block_2
.Lasm_GreaterThanEquals.ssa_block_1:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
movz x10, #0x1, lsl #0
movk x10, #0x7ff9, lsl #48
str x10, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_GreaterThanEquals.ssa_block_2:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
movz x10, #0x7ff9, lsl #48
str x10, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_GreaterThanEquals_hot_end:
.p2align 4
asm_handler_BitwiseXor:
- ldp w1, w0, [x21, #8]
- ldr x1, [x27, x1, lsl #3]
- ldr x0, [x27, x0, lsl #3]
+ ldurh w0, [x21, #5]
+ ldurh w2, [x21, #7]
+ ldr x1, [x27, x0, lsl #3]
+ ldr x0, [x27, x2, lsl #3]
lsr x2, x1, #48
cmp w2, w22
b.ne .Lasm_BitwiseXor.ssa_block_2
@@ -4158,109 +4184,110 @@ asm_handler_BitwiseXor:
b.ne .Lasm_BitwiseXor.ssa_block_2
eor w1, w1, w0
movk x1, #0x7ffa, lsl #48
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x1, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_BitwiseXor_hot_end:
.p2align 4
asm_handler_UnaryPlus:
- ldr w0, [x21, #8]
+ ldurh w0, [x21, #5]
ldr x0, [x27, x0, lsl #3]
lsr x1, x0, #48
cmp w1, w22
b.ne .Lasm_UnaryPlus.ssa_block_4
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #7]
+ add x21, x21, #7
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_UnaryPlus_hot_end:
.p2align 4
asm_handler_ThrowIfTDZ:
- ldr w0, [x21, #4]
+ ldurh w0, [x21, #1]
ldr x0, [x27, x0, lsl #3]
movz x9, #0x7ffb, lsl #48
cmp x0, x9
b.eq .Lasm_ThrowIfTDZ.ssa_block_1
- ldrb w9, [x21, #8]
- add x21, x21, #8
+ ldrb w9, [x21, #3]
+ add x21, x21, #3
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_ThrowIfTDZ_hot_end:
.p2align 4
asm_handler_ThrowIfNotObject:
- ldr w0, [x21, #4]
+ ldurh w0, [x21, #1]
ldr x0, [x27, x0, lsl #3]
lsr x9, x0, #48
mov w10, #65529
cmp x9, x10
b.ne .Lasm_ThrowIfNotObject.ssa_block_1
- ldrb w9, [x21, #8]
- add x21, x21, #8
+ ldrb w9, [x21, #3]
+ add x21, x21, #3
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_ThrowIfNotObject_hot_end:
.p2align 4
asm_handler_ThrowIfNullish:
- ldr w0, [x21, #4]
+ ldurh w0, [x21, #1]
ldr x0, [x27, x0, lsl #3]
lsr x0, x0, #48
and w0, w0, #0xfffe
mov w9, #32766
cmp w0, w9
b.eq .Lasm_ThrowIfNullish.ssa_block_1
- ldrb w9, [x21, #8]
- add x21, x21, #8
+ ldrb w9, [x21, #3]
+ add x21, x21, #3
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_ThrowIfNullish_hot_end:
.p2align 4
asm_handler_ToPrimitiveWithStringHint:
- ldr w0, [x21, #8]
+ ldurh w0, [x21, #3]
ldr x0, [x27, x0, lsl #3]
lsr x9, x0, #48
mov w10, #65529
cmp x9, x10
b.eq .Lasm_ToPrimitiveWithStringHint.ssa_block_1
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #5]
+ add x21, x21, #5
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_ToPrimitiveWithStringHint_hot_end:
.p2align 4
asm_handler_BitwiseNot:
- ldr w0, [x21, #8]
+ ldurh w0, [x21, #5]
ldr x0, [x27, x0, lsl #3]
lsr x9, x0, #48
cmp x9, x22
b.ne .Lasm_BitwiseNot.ssa_block_2
mvn w0, w0
movk x0, #0x7ffa, lsl #48
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #7]
+ add x21, x21, #7
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_BitwiseNot_hot_end:
.p2align 4
asm_handler_BitwiseAnd:
- ldp w1, w0, [x21, #8]
- ldr x1, [x27, x1, lsl #3]
- ldr x0, [x27, x0, lsl #3]
+ ldurh w0, [x21, #5]
+ ldurh w2, [x21, #7]
+ ldr x1, [x27, x0, lsl #3]
+ ldr x0, [x27, x2, lsl #3]
lsr x2, x1, #48
cmp w2, w22
b.ne .Lasm_BitwiseAnd.ssa_block_2
@@ -4269,19 +4296,20 @@ asm_handler_BitwiseAnd:
b.ne .Lasm_BitwiseAnd.ssa_block_2
and w1, w1, w0
movk x1, #0x7ffa, lsl #48
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x1, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_BitwiseAnd_hot_end:
.p2align 4
asm_handler_BitwiseOr:
- ldp w1, w0, [x21, #8]
- ldr x1, [x27, x1, lsl #3]
- ldr x0, [x27, x0, lsl #3]
+ ldurh w0, [x21, #5]
+ ldurh w2, [x21, #7]
+ ldr x1, [x27, x0, lsl #3]
+ ldr x0, [x27, x2, lsl #3]
lsr x2, x1, #48
cmp w2, w22
b.ne .Lasm_BitwiseOr.ssa_block_2
@@ -4290,17 +4318,18 @@ asm_handler_BitwiseOr:
b.ne .Lasm_BitwiseOr.ssa_block_2
orr w1, w1, w0
movk x1, #0x7ffa, lsl #48
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x1, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_BitwiseOr_hot_end:
.p2align 4
asm_handler_LeftShift:
- ldp w0, w1, [x21, #8]
+ ldurh w0, [x21, #5]
+ ldurh w1, [x21, #7]
ldr x0, [x27, x0, lsl #3]
ldr x1, [x27, x1, lsl #3]
lsr x9, x0, #48
@@ -4311,17 +4340,18 @@ asm_handler_LeftShift:
b.ne .Lasm_LeftShift.ssa_block_1
lsl w0, w0, w1
movk x0, #0x7ffa, lsl #48
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_LeftShift_hot_end:
.p2align 4
asm_handler_RightShift:
- ldp w0, w1, [x21, #8]
+ ldurh w0, [x21, #5]
+ ldurh w1, [x21, #7]
ldr x0, [x27, x0, lsl #3]
ldr x1, [x27, x1, lsl #3]
lsr x9, x0, #48
@@ -4332,17 +4362,18 @@ asm_handler_RightShift:
b.ne .Lasm_RightShift.ssa_block_1
asr w0, w0, w1
movk x0, #0x7ffa, lsl #48
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_RightShift_hot_end:
.p2align 4
asm_handler_UnsignedRightShift:
- ldp w0, w1, [x21, #8]
+ ldurh w0, [x21, #5]
+ ldurh w1, [x21, #7]
ldr x0, [x27, x0, lsl #3]
ldr x1, [x27, x1, lsl #3]
lsr x9, x0, #48
@@ -4356,22 +4387,22 @@ asm_handler_UnsignedRightShift:
b .Lasm_UnsignedRightShift.ssa_block_2
1:
movk x0, #0x7ffa, lsl #48
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_UnsignedRightShift_hot_end:
.p2align 4
asm_handler_Mod:
- ldr w0, [x21, #8]
+ ldurh w0, [x21, #5]
ldr x0, [x27, x0, lsl #3]
lsr x9, x0, #48
cmp x9, x22
b.ne .Lasm_Mod.ssa_block_2
- ldr w1, [x21, #12]
+ ldurh w1, [x21, #7]
ldr x1, [x27, x1, lsl #3]
lsr x9, x1, #48
cmp x9, x22
@@ -4383,17 +4414,18 @@ asm_handler_Mod:
sdiv w9, w0, w1
msub w0, w9, w1, w0
movk x0, #0x7ffa, lsl #48
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_Mod_hot_end:
.p2align 4
asm_handler_StrictlyEquals:
- ldp w0, w1, [x21, #8]
+ ldurh w0, [x21, #5]
+ ldurh w1, [x21, #7]
ldr x0, [x27, x0, lsl #3]
ldr x2, [x27, x1, lsl #3]
lsr x3, x2, #48
@@ -4474,27 +4506,28 @@ asm_handler_StrictlyEquals:
cmp w3, w9
b.ne .Lasm_StrictlyEquals.ssa_block_20
.Lasm_StrictlyEquals.ssa_block_3:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
movz x10, #0x7ff9, lsl #48
str x10, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_StrictlyEquals.ssa_block_2:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
movz x10, #0x1, lsl #0
movk x10, #0x7ff9, lsl #48
str x10, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_StrictlyEquals_hot_end:
.p2align 4
asm_handler_StrictlyInequals:
- ldp w0, w1, [x21, #8]
+ ldurh w0, [x21, #5]
+ ldurh w1, [x21, #7]
ldr x0, [x27, x0, lsl #3]
ldr x2, [x27, x1, lsl #3]
lsr x3, x2, #48
@@ -4575,20 +4608,20 @@ asm_handler_StrictlyInequals:
cmp w3, w9
b.ne .Lasm_StrictlyInequals.ssa_block_20
.Lasm_StrictlyInequals.ssa_block_2:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
movz x10, #0x1, lsl #0
movk x10, #0x7ff9, lsl #48
str x10, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_StrictlyInequals.ssa_block_3:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
movz x10, #0x7ff9, lsl #48
str x10, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_StrictlyInequals_hot_end:
@@ -4596,7 +4629,7 @@ asm_handler_StrictlyInequals_hot_end:
.p2align 4
asm_handler_GetCalleeAndThisFromEnvironment:
ldr x0, [x28, #32]
- add x1, x21, #16
+ add x1, x21, #9
ldp w1, w2, [x1, #0]
cbz x0, .Lasm_GetCalleeAndThisFromEnvironment.assert_predicate_failure_9
cbz w1, .Lasm_GetCalleeAndThisFromEnvironment.ssa_block_3
@@ -4616,13 +4649,13 @@ asm_handler_GetCalleeAndThisFromEnvironment:
movz x9, #0x7ffb, lsl #48
cmp x0, x9
b.eq .Lasm_GetCalleeAndThisFromEnvironment.ssa_block_1
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #5]
movz x10, #0x7ffe, lsl #48
str x10, [x27, x9, lsl #3]
- ldrb w9, [x21, #24]
- add x21, x21, #24
+ ldrb w9, [x21, #17]
+ add x21, x21, #17
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_GetCalleeAndThisFromEnvironment_hot_end:
@@ -4631,7 +4664,7 @@ asm_handler_GetCalleeAndThisFromEnvironment_hot_end:
asm_handler_DynamicGetCalleeAndThisFromEnvironment:
ldr x0, [x28, #88]
ldr x0, [x0, #200]
- ldr w1, [x21, #16]
+ ldurh w1, [x21, #9]
add x0, x0, x1, lsl #3
ldp w1, w2, [x0, #0]
movn w9, #1
@@ -4664,20 +4697,21 @@ asm_handler_DynamicGetCalleeAndThisFromEnvironment:
movz x9, #0x7ffb, lsl #48
cmp x0, x9
b.eq .Lasm_DynamicGetCalleeAndThisFromEnvironment.ssa_block_1
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #5]
movz x10, #0x7ffe, lsl #48
str x10, [x27, x9, lsl #3]
- ldrb w9, [x21, #24]
- add x21, x21, #24
+ ldrb w9, [x21, #11]
+ add x21, x21, #11
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_DynamicGetCalleeAndThisFromEnvironment_hot_end:
.p2align 4
asm_handler_LooselyEquals:
- ldp w0, w1, [x21, #8]
+ ldurh w0, [x21, #5]
+ ldurh w1, [x21, #7]
ldr x0, [x27, x0, lsl #3]
ldr x2, [x27, x1, lsl #3]
lsr x3, x2, #48
@@ -4757,27 +4791,28 @@ asm_handler_LooselyEquals:
b.ne .Lasm_LooselyEquals.ssa_block_22
b .Lasm_LooselyEquals.ssa_block_1
.Lasm_LooselyEquals.ssa_block_3:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
movz x10, #0x7ff9, lsl #48
str x10, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_LooselyEquals.ssa_block_2:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
movz x10, #0x1, lsl #0
movk x10, #0x7ff9, lsl #48
str x10, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_LooselyEquals_hot_end:
.p2align 4
asm_handler_LooselyInequals:
- ldp w0, w1, [x21, #8]
+ ldurh w0, [x21, #5]
+ ldurh w1, [x21, #7]
ldr x0, [x27, x0, lsl #3]
ldr x2, [x27, x1, lsl #3]
lsr x3, x2, #48
@@ -4857,27 +4892,27 @@ asm_handler_LooselyInequals:
b.ne .Lasm_LooselyInequals.ssa_block_22
b .Lasm_LooselyInequals.ssa_block_1
.Lasm_LooselyInequals.ssa_block_2:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
movz x10, #0x1, lsl #0
movk x10, #0x7ff9, lsl #48
str x10, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_LooselyInequals.ssa_block_3:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
movz x10, #0x7ff9, lsl #48
str x10, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_LooselyInequals_hot_end:
.p2align 4
asm_handler_UnaryMinus:
- ldr w0, [x21, #8]
+ ldurh w0, [x21, #5]
ldr x0, [x27, x0, lsl #3]
lsr x1, x0, #48
cmp w1, w22
@@ -4886,58 +4921,58 @@ asm_handler_UnaryMinus:
negs w0, w0
b.vs .Lasm_UnaryMinus.ssa_block_2
movk x0, #0x7ffa, lsl #48
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #7]
+ add x21, x21, #7
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_UnaryMinus_hot_end:
.p2align 4
asm_handler_PostfixDecrement:
- ldr w0, [x21, #8]
+ ldurh w0, [x21, #5]
ldr x1, [x27, x0, lsl #3]
lsr x9, x1, #48
cmp x9, x22
b.ne .Lasm_PostfixDecrement.ssa_block_2
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x1, [x27, x9, lsl #3]
subs w1, w1, #1
b.vs .Lasm_PostfixDecrement.ssa_block_1
movk x1, #0x7ffa, lsl #48
str x1, [x27, x0, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #7]
+ add x21, x21, #7
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_PostfixDecrement_hot_end:
.p2align 4
asm_handler_ToInt32:
- ldr w0, [x21, #8]
+ ldurh w0, [x21, #5]
ldr x0, [x27, x0, lsl #3]
lsr x9, x0, #48
cmp x9, x22
b.ne .Lasm_ToInt32.ssa_block_2
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #7]
+ add x21, x21, #7
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_ToInt32_hot_end:
.p2align 4
asm_handler_PutByValue:
- ldrb w9, [x21, #16]
+ ldrb w9, [x21, #9]
cbnz w9, .Lasm_PutByValue.ssa_block_1
- ldr w0, [x21, #8]
+ ldurh w0, [x21, #5]
ldr x4, [x27, x0, lsl #3]
lsr x9, x4, #48
cmp x9, x22
b.ne .Lasm_PutByValue.ssa_block_4
- ldr w0, [x21, #4]
+ ldurh w0, [x21, #3]
ldr x3, [x27, x0, lsl #3]
lsr x9, x3, #48
mov w10, #65529
@@ -4962,11 +4997,11 @@ asm_handler_PutByValue:
ldur w2, [x1, #-8]
cmp x0, x2
b.hs .Lasm_PutByValue.ssa_block_1
- ldr w2, [x21, #12]
+ ldurh w2, [x21, #7]
ldr x2, [x27, x2, lsl #3]
str x2, [x1, x0, lsl #3]
- ldrb w9, [x21, #32]
- add x21, x21, #32
+ ldrb w9, [x21, #17]
+ add x21, x21, #17
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_PutByValue.ssa_switch_10_after_preferred:
@@ -4984,11 +5019,11 @@ asm_handler_PutByValue:
movz x9, #0x7ffb, lsl #48
cmp x2, x9
b.eq .Lasm_PutByValue.ssa_block_5
- ldr w2, [x21, #12]
+ ldurh w2, [x21, #7]
ldr x2, [x27, x2, lsl #3]
str x2, [x1, x0, lsl #3]
- ldrb w9, [x21, #32]
- add x21, x21, #32
+ ldrb w9, [x21, #17]
+ add x21, x21, #17
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_PutByValue.ssa_block_11:
@@ -5005,7 +5040,7 @@ asm_handler_PutByValue:
cmp x0, x4
b.hs .Lasm_PutByValue.ssa_block_1
ldrb w3, [x3, #64]
- ldr w4, [x21, #12]
+ ldurh w4, [x21, #7]
ldr x4, [x27, x4, lsl #3]
lsr x5, x4, #48
cmp w5, w22
@@ -5032,8 +5067,8 @@ asm_handler_PutByValue:
and x0, x0, #0x3ffffffffff
adds x0, x0, x1
strb w4, [x0]
- ldrb w9, [x21, #32]
- add x21, x21, #32
+ ldrb w9, [x21, #17]
+ add x21, x21, #17
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_PutByValue.ssa_block_16:
@@ -5041,8 +5076,8 @@ asm_handler_PutByValue:
and x0, x0, #0x3ffffffffff
adds x0, x0, x1
strh w4, [x0]
- ldrb w9, [x21, #32]
- add x21, x21, #32
+ ldrb w9, [x21, #17]
+ add x21, x21, #17
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_PutByValue.ssa_block_17:
@@ -5053,8 +5088,8 @@ asm_handler_PutByValue:
mov x4, #0
.Lasm_PutByValue.ssa_block_23:
strb w4, [x0]
- ldrb w9, [x21, #32]
- add x21, x21, #32
+ ldrb w9, [x21, #17]
+ add x21, x21, #17
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_PutByValue.ssa_block_22:
@@ -5067,8 +5102,8 @@ asm_handler_PutByValue:
and x0, x0, #0x3ffffffffff
adds x0, x0, x1
str w4, [x0]
- ldrb w9, [x21, #32]
- add x21, x21, #32
+ ldrb w9, [x21, #17]
+ add x21, x21, #17
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_PutByValue.ssa_block_19:
@@ -5078,8 +5113,8 @@ asm_handler_PutByValue:
scvtf d0, w4
fcvt s0, d0
str s0, [x0]
- ldrb w9, [x21, #32]
- add x21, x21, #32
+ ldrb w9, [x21, #17]
+ add x21, x21, #17
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_PutByValue.ssa_block_20:
@@ -5089,8 +5124,8 @@ asm_handler_PutByValue:
scvtf d0, w4
fmov x1, d0
str x1, [x0]
- ldrb w9, [x21, #32]
- add x21, x21, #32
+ ldrb w9, [x21, #17]
+ add x21, x21, #17
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_PutByValue.ssa_block_7:
@@ -5106,8 +5141,8 @@ asm_handler_PutByValue:
fmov d0, x4
fcvt s0, d0
str s0, [x0]
- ldrb w9, [x21, #32]
- add x21, x21, #32
+ ldrb w9, [x21, #17]
+ add x21, x21, #17
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_PutByValue.ssa_switch_7_after_preferred:
@@ -5132,8 +5167,8 @@ asm_handler_PutByValue:
and x0, x0, #0x3ffffffffff
adds x0, x0, x1
str x4, [x0]
- ldrb w9, [x21, #32]
- add x21, x21, #32
+ ldrb w9, [x21, #17]
+ add x21, x21, #17
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_PutByValue.ssa_block_29:
@@ -5152,8 +5187,8 @@ asm_handler_PutByValue:
and x0, x0, #0x3ffffffffff
adds x0, x0, x1
strb w3, [x0]
- ldrb w9, [x21, #32]
- add x21, x21, #32
+ ldrb w9, [x21, #17]
+ add x21, x21, #17
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_PutByValue.ssa_block_30:
@@ -5172,8 +5207,8 @@ asm_handler_PutByValue:
and x0, x0, #0x3ffffffffff
adds x0, x0, x1
strh w3, [x0]
- ldrb w9, [x21, #32]
- add x21, x21, #32
+ ldrb w9, [x21, #17]
+ add x21, x21, #17
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_PutByValue.ssa_block_31:
@@ -5192,8 +5227,8 @@ asm_handler_PutByValue:
and x0, x0, #0x3ffffffffff
adds x1, x1, x0
str w3, [x1]
- ldrb w9, [x21, #32]
- add x21, x21, #32
+ ldrb w9, [x21, #17]
+ add x21, x21, #17
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_PutByValue.ssa_block_4:
@@ -5201,13 +5236,13 @@ asm_handler_PutByValue:
cbz x0, .Lasm_PutByValue.assert_predicate_failure_15
ldr x0, [x0, #152]
cbz x0, .Lasm_PutByValue.assert_failure_1
- ldr w1, [x21, #24]
+ ldurh w1, [x21, #15]
ldr x0, [x0, x1, lsl #3]
cbz x0, .Lasm_PutByValue.ssa_block_1
cmp x0, #3
b.eq .Lasm_PutByValue.ssa_block_2
and x0, x0, #0xfffffffffffffffc
- ldr w1, [x21, #4]
+ ldurh w1, [x21, #3]
ldr x2, [x27, x1, lsl #3]
lsr x9, x2, #48
mov w10, #65529
@@ -5238,18 +5273,18 @@ asm_handler_PutByValue:
mov w10, #65532
cmp x9, x10
b.eq .Lasm_PutByValue.ssa_block_3
- ldr w1, [x21, #12]
+ ldurh w1, [x21, #7]
ldr x1, [x27, x1, lsl #3]
str x1, [x0, x3, lsl #3]
- ldrb w9, [x21, #32]
- add x21, x21, #32
+ ldrb w9, [x21, #17]
+ add x21, x21, #17
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_PutByValue_hot_end:
.p2align 4
asm_handler_GetById:
- ldr w0, [x21, #8]
+ ldurh w0, [x21, #5]
ldr x3, [x27, x0, lsl #3]
lsr x9, x3, #48
mov w10, #65529
@@ -5264,11 +5299,11 @@ asm_handler_GetById:
cbz x1, .Lasm_GetById.assert_predicate_failure_123
ldr x2, [x1, #152]
cbz x2, .Lasm_GetById.assert_failure_1
- ldr w4, [x21, #20]
+ ldurh w4, [x21, #11]
ldr x2, [x2, x4, lsl #3]
cbz x2, .Lasm_GetById.ssa_block_1
and x2, x2, #0xfffffffffffffffc
- cbz x2, .Lasm_GetById.assert_predicate_failure_338
+ cbz x2, .Lasm_GetById.assert_predicate_failure_337
ldr x9, [x2, #24]
cmp x9, x0
b.ne .Lasm_GetById.ssa_block_15
@@ -5290,16 +5325,16 @@ asm_handler_GetById:
mov w10, #65532
cmp x9, x10
b.eq .Lasm_GetById.ssa_block_17
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #24]
- add x21, x21, #24
+ ldrb w9, [x21, #13]
+ add x21, x21, #13
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_GetById.ssa_block_15:
ldr x1, [x1, #152]
cbz x1, .Lasm_GetById.assert_failure_3
- ldr w2, [x21, #20]
+ ldurh w2, [x21, #11]
ldr x1, [x1, x2, lsl #3]
mov x2, x1
and x2, x2, #0x3
@@ -5337,17 +5372,17 @@ asm_handler_GetById:
mov w10, #65532
cmp x9, x10
b.eq .Lasm_GetById.ssa_block_1
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #24]
- add x21, x21, #24
+ ldrb w9, [x21, #13]
+ add x21, x21, #13
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_GetById_hot_end:
.p2align 4
asm_handler_PutById:
- ldr w0, [x21, #4]
+ ldurh w0, [x21, #1]
ldr x2, [x27, x0, lsl #3]
lsr x9, x2, #48
mov w10, #65529
@@ -5362,7 +5397,7 @@ asm_handler_PutById:
cbz x0, .Lasm_PutById.assert_predicate_failure_14
ldr x0, [x0, #152]
cbz x0, .Lasm_PutById.assert_failure_1
- ldr w3, [x21, #20]
+ ldurh w3, [x21, #11]
ldr x0, [x0, x3, lsl #3]
cbz x0, .Lasm_PutById.ssa_block_2
and x0, x0, #0xfffffffffffffffc
@@ -5384,23 +5419,23 @@ asm_handler_PutById:
mov w10, #65532
cmp x9, x10
b.eq .Lasm_PutById.ssa_block_2
- ldr w1, [x21, #12]
+ ldurh w1, [x21, #5]
ldr x1, [x27, x1, lsl #3]
str x1, [x0, x3, lsl #3]
- ldrb w9, [x21, #32]
- add x21, x21, #32
+ ldrb w9, [x21, #15]
+ add x21, x21, #15
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_PutById_hot_end:
.p2align 4
asm_handler_GetByValue:
- ldr w0, [x21, #16]
+ ldurh w0, [x21, #9]
ldr x4, [x27, x0, lsl #3]
lsr x9, x4, #48
cmp x9, x22
b.ne .Lasm_GetByValue.ssa_block_5
- ldr w0, [x21, #12]
+ ldurh w0, [x21, #7]
ldr x3, [x27, x0, lsl #3]
lsr x0, x3, #48
mov w9, #65529
@@ -5426,10 +5461,10 @@ asm_handler_GetByValue:
cmp x0, x2
b.hs .Lasm_GetByValue.ssa_block_1
ldr x0, [x1, x0, lsl #3]
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #5]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #32]
- add x21, x21, #32
+ ldrb w9, [x21, #15]
+ add x21, x21, #15
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_GetByValue.ssa_switch_21_after_preferred:
@@ -5447,10 +5482,10 @@ asm_handler_GetByValue:
movz x9, #0x7ffb, lsl #48
cmp x0, x9
b.eq .Lasm_GetByValue.ssa_block_1
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #5]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #32]
- add x21, x21, #32
+ ldrb w9, [x21, #15]
+ add x21, x21, #15
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_GetByValue.ssa_block_20:
@@ -5474,10 +5509,10 @@ asm_handler_GetByValue:
adds x0, x0, x1
ldrb w0, [x0]
movk x0, #0x7ffa, lsl #48
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #5]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #32]
- add x21, x21, #32
+ ldrb w9, [x21, #15]
+ add x21, x21, #15
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_GetByValue.ssa_switch_20_after_preferred:
@@ -5530,10 +5565,10 @@ asm_handler_GetByValue:
1:
.Lasm_GetByValue.ssa_block_11:
movk x0, #0x7ffa, lsl #48
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #5]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #32]
- add x21, x21, #32
+ ldrb w9, [x21, #15]
+ add x21, x21, #15
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_GetByValue.ssa_block_30:
@@ -5566,10 +5601,10 @@ asm_handler_GetByValue:
b.ne .Lasm_GetByValue.ssa_block_10
.Lasm_GetByValue.ssa_block_9:
movk x0, #0x7ffa, lsl #48
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #5]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #32]
- add x21, x21, #32
+ ldrb w9, [x21, #15]
+ add x21, x21, #15
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_GetByValue.ssa_block_10:
@@ -5577,10 +5612,10 @@ asm_handler_GetByValue:
fcmp d0, d0
b.vs .Lasm_GetByValue.canon_nan_1
.Lasm_GetByValue.canon_nan_1_ret:
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #5]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #32]
- add x21, x21, #32
+ ldrb w9, [x21, #15]
+ add x21, x21, #15
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_GetByValue.ssa_block_8:
@@ -5637,14 +5672,14 @@ asm_handler_GetByValue:
mov w10, #65530
cmp x9, x10
b.ne .Lasm_GetByValue.assert_predicate_failure_297
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #5]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #32]
- add x21, x21, #32
+ ldrb w9, [x21, #15]
+ add x21, x21, #15
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_GetByValue.ssa_block_5:
- ldr w0, [x21, #12]
+ ldurh w0, [x21, #7]
ldr x2, [x27, x0, lsl #3]
lsr x9, x2, #48
mov w10, #65529
@@ -5653,7 +5688,7 @@ asm_handler_GetByValue:
ldr x0, [x28, #88]
ldr x1, [x0, #152]
cbz x1, .Lasm_GetByValue.assert_failure_2
- ldr w3, [x21, #24]
+ ldurh w3, [x21, #13]
ldr x1, [x1, x3, lsl #3]
and x2, x2, #0x7ffffffff
add x2, x2, x24
@@ -5662,7 +5697,7 @@ asm_handler_GetByValue:
cbz x0, .Lasm_GetByValue.assert_predicate_failure_231
ldr x0, [x0, #152]
cbz x0, .Lasm_GetByValue.assert_failure_3
- ldr w1, [x21, #24]
+ ldurh w1, [x21, #13]
ldr x0, [x0, x1, lsl #3]
cbz x0, .Lasm_GetByValue.ssa_block_1
cmp x0, #3
@@ -5693,17 +5728,17 @@ asm_handler_GetByValue:
mov w10, #65532
cmp x9, x10
b.eq .Lasm_GetByValue.ssa_block_1
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #5]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #32]
- add x21, x21, #32
+ ldrb w9, [x21, #15]
+ add x21, x21, #15
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_GetByValue_hot_end:
.p2align 4
asm_handler_GetLength:
- ldr w0, [x21, #12]
+ ldurh w0, [x21, #7]
ldr x2, [x27, x0, lsl #3]
lsr x0, x2, #48
mov w9, #65529
@@ -5718,10 +5753,10 @@ asm_handler_GetLength:
b .Lasm_GetLength.ssa_block_3
1:
movk x0, #0x7ffa, lsl #48
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #5]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #24]
- add x21, x21, #24
+ ldrb w9, [x21, #13]
+ add x21, x21, #13
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_GetLength.ssa_block_6:
@@ -5732,7 +5767,7 @@ asm_handler_GetLength:
cbz x0, .Lasm_GetLength.assert_predicate_failure_21
ldr x0, [x0, #152]
cbz x0, .Lasm_GetLength.assert_failure_1
- ldr w3, [x21, #20]
+ ldurh w3, [x21, #11]
ldr x0, [x0, x3, lsl #3]
cbz x0, .Lasm_GetLength.ssa_block_1
and x0, x0, #0xfffffffffffffffc
@@ -5755,10 +5790,10 @@ asm_handler_GetLength:
mov w10, #65532
cmp x9, x10
b.eq .Lasm_GetLength.ssa_block_1
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #5]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #24]
- add x21, x21, #24
+ ldrb w9, [x21, #13]
+ add x21, x21, #13
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_GetLength.ssa_block_2:
@@ -5772,10 +5807,10 @@ asm_handler_GetLength:
b .Lasm_GetLength.ssa_block_1
1:
movk x0, #0x7ffa, lsl #48
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #5]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #24]
- add x21, x21, #24
+ ldrb w9, [x21, #13]
+ add x21, x21, #13
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_GetLength_hot_end:
@@ -5788,7 +5823,7 @@ asm_handler_GetGlobal:
cbz x0, .Lasm_GetGlobal.assert_predicate_failure_9
ldr x1, [x0, #176]
cbz x1, .Lasm_GetGlobal.assert_failure_0
- ldr w0, [x21, #12]
+ ldurh w0, [x21, #7]
mov w9, #80
mul x0, x0, x9
adds x0, x0, x1
@@ -5814,10 +5849,10 @@ asm_handler_GetGlobal:
mov w10, #65532
cmp x9, x10
b.eq .Lasm_GetGlobal.ssa_block_1
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_GetGlobal.ssa_block_2:
@@ -5830,10 +5865,10 @@ asm_handler_GetGlobal:
movz x9, #0x7ffb, lsl #48
cmp x0, x9
b.eq .Lasm_GetGlobal.ssa_block_1
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_GetGlobal_hot_end:
@@ -5846,7 +5881,7 @@ asm_handler_ResolveGlobalBinding:
cbz x0, .Lasm_ResolveGlobalBinding.assert_predicate_failure_9
ldr x1, [x0, #176]
cbz x1, .Lasm_ResolveGlobalBinding.assert_failure_0
- ldr w0, [x21, #12]
+ ldurh w0, [x21, #5]
mov w9, #80
mul x0, x0, x9
adds x0, x0, x1
@@ -5865,23 +5900,23 @@ asm_handler_ResolveGlobalBinding:
ldr w9, [x1, #40]
cmp w9, w2
b.ne .Lasm_ResolveGlobalBinding.ssa_block_2
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
movz x10, #0x1, lsl #0
movk x10, #0x7ff9, lsl #48
str x10, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #7]
+ add x21, x21, #7
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_ResolveGlobalBinding.ssa_block_2:
ldrb w9, [x0, #76]
cbz w9, .Lasm_ResolveGlobalBinding.ssa_block_1
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
movz x10, #0x1, lsl #0
movk x10, #0x7ff9, lsl #48
str x10, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #7]
+ add x21, x21, #7
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_ResolveGlobalBinding_hot_end:
@@ -5894,7 +5929,7 @@ asm_handler_SetGlobal:
cbz x0, .Lasm_SetGlobal.assert_predicate_failure_9
ldr x2, [x0, #176]
cbz x2, .Lasm_SetGlobal.assert_failure_0
- ldr w0, [x21, #12]
+ ldurh w0, [x21, #5]
mov w9, #80
mul x0, x0, x9
adds x0, x0, x2
@@ -5922,11 +5957,11 @@ asm_handler_SetGlobal:
b.eq .Lasm_SetGlobal.ssa_block_1
ldrb w9, [x0, #13]
cbz w9, .Lasm_SetGlobal.ssa_block_1
- ldr w0, [x21, #8]
+ ldurh w0, [x21, #3]
ldr x0, [x27, x0, lsl #3]
str x0, [x1, x4, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #7]
+ add x21, x21, #7
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_SetGlobal.ssa_block_2:
@@ -5974,18 +6009,18 @@ asm_handler_SetGlobal:
tbnz x1, #1, 1f
b .Lasm_SetGlobal.ssa_block_1
1:
- ldr w1, [x21, #8]
+ ldurh w1, [x21, #3]
ldr x1, [x27, x1, lsl #3]
str x1, [x3, x0, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #7]
+ add x21, x21, #7
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_SetGlobal_hot_end:
.p2align 4
asm_handler_Call:
- ldr w0, [x21, #16]
+ ldurh w0, [x21, #11]
ldr x1, [x27, x0, lsl #3]
lsr x9, x1, #48
mov w10, #65529
@@ -6012,7 +6047,7 @@ asm_handler_Call:
tbnz x0, #33, .Lasm_Call.ssa_block_2
movz x6, #0x7ffb, lsl #48
tbz x0, #34, .Lasm_Call.ssa_block_9
- ldr w3, [x21, #20]
+ ldurh w3, [x21, #13]
ldr x6, [x27, x3, lsl #3]
tbnz x0, #35, .Lasm_Call.ssa_block_9
lsr x3, x6, #48
@@ -6039,16 +6074,16 @@ asm_handler_Call:
cmp w3, w9
b.ne .Lasm_Call.ssa_block_2
.Lasm_Call.ssa_block_9:
- ldr w4, [x21, #24]
+ ldur w4, [x21, #15]
mov w3, w0
cmp x3, x4
b.hs .Lasm_Call.ssa_block_29
mov x3, x4
.Lasm_Call.ssa_block_29:
- cbz x2, .Lasm_Call.assert_predicate_failure_353
+ cbz x2, .Lasm_Call.assert_predicate_failure_357
ldp w0, w4, [x2, #12]
cmp x4, x0
- b.lo .Lasm_Call.assert_predicate_failure_359
+ b.lo .Lasm_Call.assert_predicate_failure_363
movn w0, #0
subs x0, x0, x4
cmp x0, x3
@@ -6063,13 +6098,13 @@ asm_handler_Call:
add x5, x5, #128
adds x5, x5, x0
cmp x5, x0
- b.lo .Lasm_Call.assert_predicate_failure_374
+ b.lo .Lasm_Call.assert_predicate_failure_378
cmp x5, x8
b.hi .Lasm_Call.ssa_block_1
mov x8, x20
str x5, [x8, #16]
stp w7, w3, [x0, #116]
- ldr w5, [x21, #24]
+ ldur w5, [x21, #15]
str w5, [x0, #104]
ldr w5, [x1, #20]
cbz x5, .Lasm_Call.assert_failure_6
@@ -6082,7 +6117,7 @@ asm_handler_Call:
add x9, x24, w5, uxtw #3
cmp w5, #0
csel x5, x9, xzr, ne
- cbz x5, .Lasm_Call.assert_predicate_failure_400
+ cbz x5, .Lasm_Call.assert_predicate_failure_404
stp x5, x5, [x0, #32]
str xzr, [x0, #48]
ldrb w9, [x1, #15]
@@ -6122,22 +6157,23 @@ asm_handler_Call:
strb wzr, [x0, #124]
strb wzr, [x0, #125]
str x28, [x0, #96]
- ldp w2, w5, [x21, #8]
+ ldur w2, [x21, #5]
+ ldurh w5, [x21, #9]
sub w1, w21, w26
adds x2, x2, x1
str w1, [x28, #64]
stp w2, w5, [x0, #108]
- ldr w2, [x21, #24]
+ ldur w2, [x21, #15]
cmp x3, x2
- b.lo .Lasm_Call.assert_predicate_failure_266
+ b.lo .Lasm_Call.assert_predicate_failure_268
add x6, x28, #128
- add x7, x21, #32
+ add x7, x21, #21
add x5, x0, #128
mov x1, #0
.Lasm_Call.ssa_block_19:
cmp x1, x2
b.hs .Lasm_Call.ssa_block_18
- ldr w8, [x7, x1, lsl #2]
+ ldrh w8, [x7, x1, lsl #1]
ldr x8, [x6, x8, lsl #3]
str x8, [x5, x4, lsl #3]
add x1, x1, #1
@@ -6155,7 +6191,7 @@ asm_handler_Call:
b .Lasm_Call.ssa_block_22
.Lasm_Call.ssa_block_21:
ldr x1, [x0, #88]
- cbz x1, .Lasm_Call.assert_predicate_failure_289
+ cbz x1, .Lasm_Call.assert_predicate_failure_292
ldr x26, [x1, #40]
cbz x26, .Lasm_Call.assert_failure_10
mov x1, x20
@@ -6171,7 +6207,7 @@ asm_handler_Call:
tbnz x0, #1, 1f
b .Lasm_Call.ssa_block_1
1:
- ldr w3, [x21, #24]
+ ldur w3, [x21, #15]
mov x0, x20
ldp x0, x4, [x0, #16]
cbz x0, .Lasm_Call.assert_failure_11
@@ -6208,7 +6244,7 @@ asm_handler_Call:
stp x2, x4, [x0, #32]
ldr x2, [x28, #48]
str x2, [x0, #48]
- ldr w2, [x21, #20]
+ ldurh w2, [x21, #13]
ldr x2, [x27, x2, lsl #3]
str x2, [x0, #80]
str xzr, [x0, #16]
@@ -6229,20 +6265,21 @@ asm_handler_Call:
strb wzr, [x0, #79]
strb wzr, [x0, #124]
strb wzr, [x0, #125]
- ldp w2, w5, [x21, #8]
+ ldur w2, [x21, #5]
+ ldurh w5, [x21, #9]
sub w4, w21, w26
adds x2, x2, x4
str w4, [x28, #64]
str x28, [x0, #96]
stp w2, w5, [x0, #108]
add x4, x28, #128
- add x5, x21, #32
+ add x5, x21, #21
add x6, x0, #128
mov x2, #0
.Lasm_Call.ssa_block_25:
cmp x2, x3
b.hs .Lasm_Call.ssa_block_24
- ldr w7, [x5, x2, lsl #2]
+ ldrh w7, [x5, x2, lsl #1]
ldr x7, [x4, x7, lsl #3]
str x7, [x6, x2, lsl #3]
add x2, x2, #1
@@ -6260,7 +6297,7 @@ asm_handler_Call:
adds x0, x0, x1
ldr w1, [x0, #8]
cmp x1, #1
- b.hs .Lasm_Call.assert_predicate_failure_324
+ b.hs .Lasm_Call.assert_predicate_failure_328
ldr x2, [x0]
cbz x2, .Lasm_Call.assert_failure_17
mov x9, x2
@@ -6268,25 +6305,25 @@ asm_handler_Call:
blr x9
and x1, x1, #0xff
cmp x1, #2
- b.hs .Lasm_Call.assert_predicate_failure_331
+ b.hs .Lasm_Call.assert_predicate_failure_335
cbnz x1, .Lasm_Call.ssa_block_4
ldr x1, [x28, #96]
- cbz x1, .Lasm_Call.assert_predicate_failure_337
+ cbz x1, .Lasm_Call.assert_predicate_failure_341
mov x2, x20
str x1, [x2]
str x28, [x2, #16]
mov x28, x1
add x27, x28, #128
- ldr w9, [x21, #12]
+ ldurh w9, [x21, #9]
str x0, [x27, x9, lsl #3]
- ldr w0, [x21, #8]
+ ldur w0, [x21, #5]
add x21, x21, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_Call.ssa_block_2:
add x9, sp, #0
- ldr w10, [x21, #24]
+ ldur w10, [x21, #15]
lsl x10, x10, #3
add x10, x10, #55
and x10, x10, #0xfffffffffffffff0
@@ -6309,22 +6346,22 @@ asm_handler_Call:
.Lasm_Call.values_allocated_21:
add sp, x14, #0
str x9, [sp]
- ldr w12, [x21, #16]
+ ldurh w12, [x21, #11]
ldr x11, [x27, x12, lsl #3]
.Lasm_Call.value_ready_22:
str x11, [sp, #24]
- ldr w12, [x21, #20]
+ ldurh w12, [x21, #13]
ldr x11, [x27, x12, lsl #3]
.Lasm_Call.value_ready_23:
str x11, [sp, #32]
mov w9, #0
- ldr w10, [x21, #24]
+ ldur w10, [x21, #15]
add x14, sp, #40
- add x3, x21, #32
+ add x3, x21, #21
.Lasm_Call.array_value_next_24:
cmp x9, x10
b.hs .Lasm_Call.array_values_end_26
- ldr w12, [x3, x9, lsl #2]
+ ldrh w12, [x3, x9, lsl #1]
ldr x11, [x27, x12, lsl #3]
.Lasm_Call.array_value_ready_25:
str x11, [x14, x9, lsl #3]
@@ -6340,7 +6377,7 @@ asm_handler_Call:
cmp x9, x28
b.ne .Lasm_Call.values_restore_stack_27
cbnz x0, .Lasm_Call.values_exceptional_outputs_28
- ldr w12, [x21, #12]
+ ldurh w12, [x21, #9]
ldr x11, [sp, #16]
str x11, [x27, x12, lsl #3]
.Lasm_Call.skip_output_value_29:
@@ -6368,7 +6405,7 @@ asm_handler_Call_hot_end:
.p2align 4
asm_handler_ObjectPropertyIteratorNext:
- ldr w0, [x21, #12]
+ ldurh w0, [x21, #5]
ldr x3, [x27, x0, lsl #3]
lsr x9, x3, #48
mov w10, #65529
@@ -6376,7 +6413,7 @@ asm_handler_ObjectPropertyIteratorNext:
b.ne .Lasm_ObjectPropertyIteratorNext.ssa_block_1
and x3, x3, #0x7ffffffff
add x3, x3, x24
- ldr w0, [x21, #16]
+ ldurh w0, [x21, #7]
ldr x0, [x27, x0, lsl #3]
lsr x1, x0, #48
mov w9, #65528
@@ -6422,7 +6459,7 @@ asm_handler_ObjectPropertyIteratorNext:
ldrb w9, [x1, #11]
cbz w9, .Lasm_ObjectPropertyIteratorNext.ssa_block_1
.Lasm_ObjectPropertyIteratorNext.ssa_block_8:
- ldr w2, [x21, #20]
+ ldurh w2, [x21, #9]
ldr x1, [x27, x2, lsl #3]
lsr x9, x1, #48
cmp x9, x22
@@ -6441,31 +6478,31 @@ asm_handler_ObjectPropertyIteratorNext:
ldr x0, [x0, #32]
cbz x0, .Lasm_ObjectPropertyIteratorNext.assert_predicate_failure_66
ldr x0, [x0, x1, lsl #3]
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
str x0, [x27, x9, lsl #3]
movk x3, #0x7ffa, lsl #48
str x3, [x27, x2, lsl #3]
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #3]
movz x10, #0x7ff9, lsl #48
str x10, [x27, x9, lsl #3]
- ldrb w9, [x21, #24]
- add x21, x21, #24
+ ldrb w9, [x21, #11]
+ add x21, x21, #11
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_ObjectPropertyIteratorNext.ssa_block_13:
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #3]
movz x10, #0x1, lsl #0
movk x10, #0x7ff9, lsl #48
str x10, [x27, x9, lsl #3]
- ldrb w9, [x21, #24]
- add x21, x21, #24
+ ldrb w9, [x21, #11]
+ add x21, x21, #11
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_ObjectPropertyIteratorNext_hot_end:
.p2align 4
asm_handler_IteratorClose:
- ldr w0, [x21, #4]
+ ldurh w0, [x21, #1]
ldr x0, [x27, x0, lsl #3]
lsr x9, x0, #48
cmp x9, x22
@@ -6475,15 +6512,15 @@ asm_handler_IteratorClose:
cbz x0, .Lasm_IteratorClose.ssa_block_1
ldrb w9, [x0, #11]
cbz w9, .Lasm_IteratorClose.ssa_block_1
- ldrb w9, [x21, #32]
- add x21, x21, #32
+ ldrb w9, [x21, #15]
+ add x21, x21, #15
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_IteratorClose.ssa_block_3:
ldr x1, [x28, #88]
ldr x1, [x1, #152]
cbz x1, .Lasm_IteratorClose.assert_failure_0
- ldr w2, [x21, #24]
+ ldurh w2, [x21, #13]
lsl x2, x2, #3
adds x1, x1, x2
bl CSYM(asm_try_get_by_id_cache)
@@ -6492,15 +6529,15 @@ asm_handler_IteratorClose:
mov w9, #32766
cmp w0, w9
b.ne .Lasm_IteratorClose.ssa_block_1
- ldrb w9, [x21, #32]
- add x21, x21, #32
+ ldrb w9, [x21, #15]
+ add x21, x21, #15
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_IteratorClose_hot_end:
.p2align 4
asm_handler_IteratorNextUnpack:
- ldr w2, [x21, #12]
+ ldurh w2, [x21, #5]
ldr x0, [x27, x2, lsl #3]
lsr x9, x0, #48
cmp x9, x22
@@ -6509,12 +6546,12 @@ asm_handler_IteratorNextUnpack:
tbz w0, #31, 1f
b .Lasm_IteratorNextUnpack.ssa_block_1
1:
- ldr w3, [x21, #20]
+ ldurh w3, [x21, #9]
ldr x1, [x27, x3, lsl #3]
tbz x1, #0, 1f
b .Lasm_IteratorNextUnpack.ssa_block_1
1:
- ldr w1, [x21, #16]
+ ldurh w1, [x21, #7]
ldr x1, [x27, x1, lsl #3]
lsr x9, x1, #48
mov w10, #65529
@@ -6532,18 +6569,18 @@ asm_handler_IteratorNextUnpack:
ldr w4, [x1, #16]
cmp x0, x4
b.lo .Lasm_IteratorNextUnpack.ssa_block_7
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
movz x10, #0x7ffe, lsl #48
str x10, [x27, x9, lsl #3]
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #3]
movz x10, #0x1, lsl #0
movk x10, #0x7ff9, lsl #48
str x10, [x27, x9, lsl #3]
movz x9, #0x1, lsl #0
movk x9, #0x7ff9, lsl #48
str x9, [x27, x3, lsl #3]
- ldrb w9, [x21, #24]
- add x21, x21, #24
+ ldrb w9, [x21, #11]
+ add x21, x21, #11
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_IteratorNextUnpack.ssa_block_7:
@@ -6563,22 +6600,22 @@ asm_handler_IteratorNextUnpack:
b.eq .Lasm_IteratorNextUnpack.ssa_block_1
adds w0, w0, #1
b.vs .Lasm_IteratorNextUnpack.ssa_block_1
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
str x1, [x27, x9, lsl #3]
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #3]
movz x10, #0x7ff9, lsl #48
str x10, [x27, x9, lsl #3]
movk x0, #0x7ffa, lsl #48
str x0, [x27, x2, lsl #3]
- ldrb w9, [x21, #24]
- add x21, x21, #24
+ ldrb w9, [x21, #11]
+ add x21, x21, #11
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_IteratorNextUnpack_hot_end:
.p2align 4
asm_handler_IsCallable:
- ldr w0, [x21, #8]
+ ldurh w0, [x21, #3]
ldr x0, [x27, x0, lsl #3]
lsr x9, x0, #48
mov w10, #65529
@@ -6588,20 +6625,20 @@ asm_handler_IsCallable:
add x0, x0, x24
ldrh w0, [x0, #12]
tbz x0, #7, .Lasm_IsCallable.ssa_block_1
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
movz x10, #0x1, lsl #0
movk x10, #0x7ff9, lsl #48
str x10, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #5]
+ add x21, x21, #5
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_IsCallable.ssa_block_1:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
movz x10, #0x7ff9, lsl #48
str x10, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #5]
+ add x21, x21, #5
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_IsCallable_hot_end:
@@ -6615,8 +6652,8 @@ asm_handler_LeavePrivateEnvironment:
cmp w0, #0
csel x0, x9, xzr, ne
str x0, [x28, #48]
- ldrb w9, [x21, #8]
- add x21, x21, #8
+ ldrb w9, [x21, #1]
+ add x21, x21, #1
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_LeavePrivateEnvironment_hot_end:
@@ -6627,27 +6664,27 @@ asm_handler_ResolveThisBinding:
movz x9, #0x7ffb, lsl #48
cmp x0, x9
b.eq .Lasm_ResolveThisBinding.ssa_block_1
- ldrb w9, [x21, #8]
- add x21, x21, #8
+ ldrb w9, [x21, #1]
+ add x21, x21, #1
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_ResolveThisBinding_hot_end:
.p2align 4
asm_handler_MovSrcUndefined:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
movz x10, #0x7ffe, lsl #48
str x10, [x27, x9, lsl #3]
- ldrb w9, [x21, #8]
- add x21, x21, #8
+ ldrb w9, [x21, #3]
+ add x21, x21, #3
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_MovSrcUndefined_hot_end:
.p2align 4
asm_handler_AddLhsInt32:
- ldr w2, [x21, #8]
- ldr w0, [x21, #12]
+ ldur w2, [x21, #5]
+ ldurh w0, [x21, #9]
ldr x0, [x27, x0, lsl #3]
lsr x1, x0, #48
cmp w1, w22
@@ -6655,57 +6692,57 @@ asm_handler_AddLhsInt32:
adds w2, w2, w0
b.vs .Lasm_AddLhsInt32.ssa_block_8
movk x2, #0x7ffa, lsl #48
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x2, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #11]
+ add x21, x21, #11
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_AddLhsInt32_hot_end:
.p2align 4
asm_handler_AddRhsInt32:
- ldr w0, [x21, #8]
+ ldurh w0, [x21, #5]
ldr x0, [x27, x0, lsl #3]
lsr x1, x0, #48
cmp w1, w22
b.ne .Lasm_AddRhsInt32.ssa_block_5
- ldr w9, [x21, #12]
+ ldur w9, [x21, #7]
adds w0, w0, w9
b.vs .Lasm_AddRhsInt32.ssa_checked_6_failure
movk x0, #0x7ffa, lsl #48
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #11]
+ add x21, x21, #11
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_AddRhsInt32_hot_end:
.p2align 4
asm_handler_SubRhsInt32:
- ldr w0, [x21, #8]
+ ldurh w0, [x21, #5]
ldr x0, [x27, x0, lsl #3]
lsr x1, x0, #48
cmp w1, w22
b.ne .Lasm_SubRhsInt32.ssa_block_5
- ldr w9, [x21, #12]
+ ldur w9, [x21, #7]
subs w0, w0, w9
b.vs .Lasm_SubRhsInt32.ssa_checked_6_failure
movk x0, #0x7ffa, lsl #48
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #11]
+ add x21, x21, #11
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_SubRhsInt32_hot_end:
.p2align 4
asm_handler_MulRhsInt32:
- ldr w0, [x21, #8]
+ ldurh w0, [x21, #5]
ldr x0, [x27, x0, lsl #3]
- ldr w1, [x21, #12]
+ ldur w1, [x21, #7]
lsr x2, x0, #48
cmp w2, w22
b.ne .Lasm_MulRhsInt32.ssa_block_6
@@ -6721,19 +6758,19 @@ asm_handler_MulRhsInt32:
1:
.Lasm_MulRhsInt32.ssa_block_11:
movk x2, #0x7ffa, lsl #48
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x2, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #11]
+ add x21, x21, #11
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_MulRhsInt32_hot_end:
.p2align 4
asm_handler_DivRhsInt32:
- ldr w0, [x21, #8]
+ ldurh w0, [x21, #5]
ldr x0, [x27, x0, lsl #3]
- ldr w2, [x21, #12]
+ ldur w2, [x21, #7]
lsr x1, x0, #48
cmp w1, w22
b.ne .Lasm_DivRhsInt32.ssa_block_11
@@ -6756,10 +6793,10 @@ asm_handler_DivRhsInt32:
cbz w0, .Lasm_DivRhsInt32.ssa_block_2
.Lasm_DivRhsInt32.ssa_block_3:
movk x0, #0x7ffa, lsl #48
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #11]
+ add x21, x21, #11
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_DivRhsInt32.ssa_block_2:
@@ -6770,109 +6807,109 @@ asm_handler_DivRhsInt32:
fcmp d0, d0
b.vs .Lasm_DivRhsInt32.canon_nan_0
.Lasm_DivRhsInt32.canon_nan_0_ret:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #11]
+ add x21, x21, #11
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_DivRhsInt32_hot_end:
.p2align 4
asm_handler_BitwiseXorRhsInt32:
- ldr w0, [x21, #8]
+ ldurh w0, [x21, #5]
ldr x0, [x27, x0, lsl #3]
- ldr w1, [x21, #12]
+ ldur w1, [x21, #7]
lsr x9, x0, #48
cmp x9, x22
b.ne .Lasm_BitwiseXorRhsInt32.ssa_block_2
eor w0, w0, w1
movk x0, #0x7ffa, lsl #48
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #11]
+ add x21, x21, #11
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_BitwiseXorRhsInt32_hot_end:
.p2align 4
asm_handler_BitwiseAndRhsInt32:
- ldr w0, [x21, #8]
+ ldurh w0, [x21, #5]
ldr x0, [x27, x0, lsl #3]
- ldr w1, [x21, #12]
+ ldur w1, [x21, #7]
lsr x9, x0, #48
cmp x9, x22
b.ne .Lasm_BitwiseAndRhsInt32.ssa_block_2
and w0, w0, w1
movk x0, #0x7ffa, lsl #48
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #11]
+ add x21, x21, #11
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_BitwiseAndRhsInt32_hot_end:
.p2align 4
asm_handler_BitwiseOrRhsInt32:
- ldr w0, [x21, #8]
+ ldurh w0, [x21, #5]
ldr x0, [x27, x0, lsl #3]
- ldr w1, [x21, #12]
+ ldur w1, [x21, #7]
lsr x9, x0, #48
cmp x9, x22
b.ne .Lasm_BitwiseOrRhsInt32.ssa_block_2
orr w0, w0, w1
movk x0, #0x7ffa, lsl #48
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #11]
+ add x21, x21, #11
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_BitwiseOrRhsInt32_hot_end:
.p2align 4
asm_handler_LeftShiftRhsInt32:
- ldr w0, [x21, #8]
+ ldurh w0, [x21, #5]
ldr x0, [x27, x0, lsl #3]
- ldr w1, [x21, #12]
+ ldur w1, [x21, #7]
lsr x9, x0, #48
cmp x9, x22
b.ne .Lasm_LeftShiftRhsInt32.ssa_block_1
lsl w0, w0, w1
movk x0, #0x7ffa, lsl #48
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #11]
+ add x21, x21, #11
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_LeftShiftRhsInt32_hot_end:
.p2align 4
asm_handler_RightShiftRhsInt32:
- ldr w0, [x21, #8]
+ ldurh w0, [x21, #5]
ldr x0, [x27, x0, lsl #3]
- ldr w1, [x21, #12]
+ ldur w1, [x21, #7]
lsr x9, x0, #48
cmp x9, x22
b.ne .Lasm_RightShiftRhsInt32.ssa_block_1
asr w0, w0, w1
movk x0, #0x7ffa, lsl #48
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #11]
+ add x21, x21, #11
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_RightShiftRhsInt32_hot_end:
.p2align 4
asm_handler_UnsignedRightShiftRhsInt32:
- ldr w0, [x21, #8]
+ ldurh w0, [x21, #5]
ldr x0, [x27, x0, lsl #3]
- ldr w1, [x21, #12]
+ ldur w1, [x21, #7]
lsr x9, x0, #48
cmp x9, x22
b.ne .Lasm_UnsignedRightShiftRhsInt32.ssa_block_1
@@ -6881,22 +6918,22 @@ asm_handler_UnsignedRightShiftRhsInt32:
b .Lasm_UnsignedRightShiftRhsInt32.ssa_block_2
1:
movk x0, #0x7ffa, lsl #48
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #11]
+ add x21, x21, #11
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_UnsignedRightShiftRhsInt32_hot_end:
.p2align 4
asm_handler_ModRhsInt32:
- ldr w0, [x21, #8]
+ ldurh w0, [x21, #5]
ldr x0, [x27, x0, lsl #3]
lsr x9, x0, #48
cmp x9, x22
b.ne .Lasm_ModRhsInt32.ssa_block_2
- ldr w1, [x21, #12]
+ ldur w1, [x21, #7]
cbz w1, .Lasm_ModRhsInt32.ssa_block_1
tbz w0, #31, 1f
b .Lasm_ModRhsInt32.ssa_block_2
@@ -6904,148 +6941,148 @@ asm_handler_ModRhsInt32:
sdiv w9, w0, w1
msub w0, w9, w1, w0
movk x0, #0x7ffa, lsl #48
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #11]
+ add x21, x21, #11
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_ModRhsInt32_hot_end:
.p2align 4
asm_handler_LessThanRhsInt32:
- ldr w0, [x21, #8]
+ ldurh w0, [x21, #5]
ldr x0, [x27, x0, lsl #3]
- ldr w2, [x21, #12]
+ ldur w2, [x21, #7]
lsr x1, x0, #48
cmp w1, w22
b.ne .Lasm_LessThanRhsInt32.ssa_block_8
cmp w0, w2
b.lt .Lasm_LessThanRhsInt32.ssa_block_1
.Lasm_LessThanRhsInt32.ssa_block_2:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
movz x10, #0x7ff9, lsl #48
str x10, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #11]
+ add x21, x21, #11
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_LessThanRhsInt32.ssa_block_1:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
movz x10, #0x1, lsl #0
movk x10, #0x7ff9, lsl #48
str x10, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #11]
+ add x21, x21, #11
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_LessThanRhsInt32_hot_end:
.p2align 4
asm_handler_LessThanEqualsRhsInt32:
- ldr w0, [x21, #8]
+ ldurh w0, [x21, #5]
ldr x0, [x27, x0, lsl #3]
- ldr w2, [x21, #12]
+ ldur w2, [x21, #7]
lsr x1, x0, #48
cmp w1, w22
b.ne .Lasm_LessThanEqualsRhsInt32.ssa_block_8
cmp w0, w2
b.le .Lasm_LessThanEqualsRhsInt32.ssa_block_1
.Lasm_LessThanEqualsRhsInt32.ssa_block_2:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
movz x10, #0x7ff9, lsl #48
str x10, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #11]
+ add x21, x21, #11
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_LessThanEqualsRhsInt32.ssa_block_1:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
movz x10, #0x1, lsl #0
movk x10, #0x7ff9, lsl #48
str x10, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #11]
+ add x21, x21, #11
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_LessThanEqualsRhsInt32_hot_end:
.p2align 4
asm_handler_GreaterThanRhsInt32:
- ldr w0, [x21, #8]
+ ldurh w0, [x21, #5]
ldr x0, [x27, x0, lsl #3]
- ldr w2, [x21, #12]
+ ldur w2, [x21, #7]
lsr x1, x0, #48
cmp w1, w22
b.ne .Lasm_GreaterThanRhsInt32.ssa_block_8
cmp w0, w2
b.gt .Lasm_GreaterThanRhsInt32.ssa_block_1
.Lasm_GreaterThanRhsInt32.ssa_block_2:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
movz x10, #0x7ff9, lsl #48
str x10, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #11]
+ add x21, x21, #11
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_GreaterThanRhsInt32.ssa_block_1:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
movz x10, #0x1, lsl #0
movk x10, #0x7ff9, lsl #48
str x10, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #11]
+ add x21, x21, #11
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_GreaterThanRhsInt32_hot_end:
.p2align 4
asm_handler_GreaterThanEqualsRhsInt32:
- ldr w0, [x21, #8]
+ ldurh w0, [x21, #5]
ldr x0, [x27, x0, lsl #3]
- ldr w2, [x21, #12]
+ ldur w2, [x21, #7]
lsr x1, x0, #48
cmp w1, w22
b.ne .Lasm_GreaterThanEqualsRhsInt32.ssa_block_8
cmp w0, w2
b.ge .Lasm_GreaterThanEqualsRhsInt32.ssa_block_1
.Lasm_GreaterThanEqualsRhsInt32.ssa_block_2:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
movz x10, #0x7ff9, lsl #48
str x10, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #11]
+ add x21, x21, #11
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_GreaterThanEqualsRhsInt32.ssa_block_1:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
movz x10, #0x1, lsl #0
movk x10, #0x7ff9, lsl #48
str x10, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #11]
+ add x21, x21, #11
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_GreaterThanEqualsRhsInt32_hot_end:
.p2align 4
asm_handler_JumpLessThanRhsInt32:
- ldr w0, [x21, #4]
+ ldurh w0, [x21, #3]
ldr x0, [x27, x0, lsl #3]
- ldr w2, [x21, #8]
+ ldur w2, [x21, #5]
lsr x1, x0, #48
cmp w1, w22
b.ne .Lasm_JumpLessThanRhsInt32.ssa_block_8
cmp w0, w2
b.lt .Lasm_JumpLessThanRhsInt32.ssa_block_2
.Lasm_JumpLessThanRhsInt32.ssa_block_3:
- ldr w0, [x21, #16]
+ ldur w0, [x21, #13]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_JumpLessThanRhsInt32.ssa_block_2:
- ldr w0, [x21, #12]
+ ldur w0, [x21, #9]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
@@ -7054,22 +7091,22 @@ asm_handler_JumpLessThanRhsInt32_hot_end:
.p2align 4
asm_handler_JumpLessThanEqualsRhsInt32:
- ldr w0, [x21, #4]
+ ldurh w0, [x21, #3]
ldr x0, [x27, x0, lsl #3]
- ldr w2, [x21, #8]
+ ldur w2, [x21, #5]
lsr x1, x0, #48
cmp w1, w22
b.ne .Lasm_JumpLessThanEqualsRhsInt32.ssa_block_8
cmp w0, w2
b.le .Lasm_JumpLessThanEqualsRhsInt32.ssa_block_2
.Lasm_JumpLessThanEqualsRhsInt32.ssa_block_3:
- ldr w0, [x21, #16]
+ ldur w0, [x21, #13]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_JumpLessThanEqualsRhsInt32.ssa_block_2:
- ldr w0, [x21, #12]
+ ldur w0, [x21, #9]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
@@ -7078,22 +7115,22 @@ asm_handler_JumpLessThanEqualsRhsInt32_hot_end:
.p2align 4
asm_handler_JumpGreaterThanRhsInt32:
- ldr w0, [x21, #4]
+ ldurh w0, [x21, #3]
ldr x0, [x27, x0, lsl #3]
- ldr w2, [x21, #8]
+ ldur w2, [x21, #5]
lsr x1, x0, #48
cmp w1, w22
b.ne .Lasm_JumpGreaterThanRhsInt32.ssa_block_8
cmp w0, w2
b.gt .Lasm_JumpGreaterThanRhsInt32.ssa_block_2
.Lasm_JumpGreaterThanRhsInt32.ssa_block_3:
- ldr w0, [x21, #16]
+ ldur w0, [x21, #13]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_JumpGreaterThanRhsInt32.ssa_block_2:
- ldr w0, [x21, #12]
+ ldur w0, [x21, #9]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
@@ -7102,22 +7139,22 @@ asm_handler_JumpGreaterThanRhsInt32_hot_end:
.p2align 4
asm_handler_JumpGreaterThanEqualsRhsInt32:
- ldr w0, [x21, #4]
+ ldurh w0, [x21, #3]
ldr x0, [x27, x0, lsl #3]
- ldr w2, [x21, #8]
+ ldur w2, [x21, #5]
lsr x1, x0, #48
cmp w1, w22
b.ne .Lasm_JumpGreaterThanEqualsRhsInt32.ssa_block_8
cmp w0, w2
b.ge .Lasm_JumpGreaterThanEqualsRhsInt32.ssa_block_2
.Lasm_JumpGreaterThanEqualsRhsInt32.ssa_block_3:
- ldr w0, [x21, #16]
+ ldur w0, [x21, #13]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_JumpGreaterThanEqualsRhsInt32.ssa_block_2:
- ldr w0, [x21, #12]
+ ldur w0, [x21, #9]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
@@ -7126,9 +7163,9 @@ asm_handler_JumpGreaterThanEqualsRhsInt32_hot_end:
.p2align 4
asm_handler_StrictlyEqualsRhsInt32:
- ldr w0, [x21, #8]
+ ldurh w0, [x21, #5]
ldr x0, [x27, x0, lsl #3]
- ldr w1, [x21, #12]
+ ldur w1, [x21, #7]
movk x1, #0x7ffa, lsl #48
b .Lasm_StrictlyEqualsRhsInt32.ssa_block_9
lsr x2, x0, #48
@@ -7208,29 +7245,29 @@ asm_handler_StrictlyEqualsRhsInt32:
cmp w2, w9
b.ne .Lasm_StrictlyEqualsRhsInt32.ssa_block_20
.Lasm_StrictlyEqualsRhsInt32.ssa_block_3:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
movz x10, #0x7ff9, lsl #48
str x10, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #11]
+ add x21, x21, #11
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_StrictlyEqualsRhsInt32.ssa_block_2:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
movz x10, #0x1, lsl #0
movk x10, #0x7ff9, lsl #48
str x10, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #11]
+ add x21, x21, #11
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_StrictlyEqualsRhsInt32_hot_end:
.p2align 4
asm_handler_StrictlyInequalsRhsInt32:
- ldr w0, [x21, #8]
+ ldurh w0, [x21, #5]
ldr x0, [x27, x0, lsl #3]
- ldr w1, [x21, #12]
+ ldur w1, [x21, #7]
movk x1, #0x7ffa, lsl #48
b .Lasm_StrictlyInequalsRhsInt32.ssa_block_9
lsr x2, x0, #48
@@ -7310,29 +7347,29 @@ asm_handler_StrictlyInequalsRhsInt32:
cmp w2, w9
b.ne .Lasm_StrictlyInequalsRhsInt32.ssa_block_20
.Lasm_StrictlyInequalsRhsInt32.ssa_block_2:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
movz x10, #0x1, lsl #0
movk x10, #0x7ff9, lsl #48
str x10, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #11]
+ add x21, x21, #11
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_StrictlyInequalsRhsInt32.ssa_block_3:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
movz x10, #0x7ff9, lsl #48
str x10, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #11]
+ add x21, x21, #11
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_StrictlyInequalsRhsInt32_hot_end:
.p2align 4
asm_handler_LooselyEqualsRhsInt32:
- ldr w0, [x21, #8]
+ ldurh w0, [x21, #5]
ldr x0, [x27, x0, lsl #3]
- ldr w1, [x21, #12]
+ ldur w1, [x21, #7]
movk x1, #0x7ffa, lsl #48
b .Lasm_LooselyEqualsRhsInt32.ssa_block_9
lsr x2, x0, #48
@@ -7406,29 +7443,29 @@ asm_handler_LooselyEqualsRhsInt32:
b.ne .Lasm_LooselyEqualsRhsInt32.ssa_block_22
b .Lasm_LooselyEqualsRhsInt32.ssa_block_1
.Lasm_LooselyEqualsRhsInt32.ssa_block_3:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
movz x10, #0x7ff9, lsl #48
str x10, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #11]
+ add x21, x21, #11
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_LooselyEqualsRhsInt32.ssa_block_2:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
movz x10, #0x1, lsl #0
movk x10, #0x7ff9, lsl #48
str x10, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #11]
+ add x21, x21, #11
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_LooselyEqualsRhsInt32_hot_end:
.p2align 4
asm_handler_LooselyInequalsRhsInt32:
- ldr w0, [x21, #8]
+ ldurh w0, [x21, #5]
ldr x0, [x27, x0, lsl #3]
- ldr w1, [x21, #12]
+ ldur w1, [x21, #7]
movk x1, #0x7ffa, lsl #48
b .Lasm_LooselyInequalsRhsInt32.ssa_block_9
lsr x2, x0, #48
@@ -7502,29 +7539,29 @@ asm_handler_LooselyInequalsRhsInt32:
b.ne .Lasm_LooselyInequalsRhsInt32.ssa_block_22
b .Lasm_LooselyInequalsRhsInt32.ssa_block_1
.Lasm_LooselyInequalsRhsInt32.ssa_block_2:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
movz x10, #0x1, lsl #0
movk x10, #0x7ff9, lsl #48
str x10, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #11]
+ add x21, x21, #11
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_LooselyInequalsRhsInt32.ssa_block_3:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
movz x10, #0x7ff9, lsl #48
str x10, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #11]
+ add x21, x21, #11
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_LooselyInequalsRhsInt32_hot_end:
.p2align 4
asm_handler_JumpStrictlyEqualsRhsInt32:
- ldr w0, [x21, #4]
+ ldurh w0, [x21, #3]
ldr x0, [x27, x0, lsl #3]
- ldr w1, [x21, #8]
+ ldur w1, [x21, #5]
movk x1, #0x7ffa, lsl #48
b .Lasm_JumpStrictlyEqualsRhsInt32.ssa_block_9
lsr x2, x0, #48
@@ -7604,13 +7641,13 @@ asm_handler_JumpStrictlyEqualsRhsInt32:
cmp w2, w9
b.ne .Lasm_JumpStrictlyEqualsRhsInt32.ssa_block_20
.Lasm_JumpStrictlyEqualsRhsInt32.ssa_block_3:
- ldr w0, [x21, #16]
+ ldur w0, [x21, #13]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_JumpStrictlyEqualsRhsInt32.ssa_block_2:
- ldr w0, [x21, #12]
+ ldur w0, [x21, #9]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
@@ -7619,9 +7656,9 @@ asm_handler_JumpStrictlyEqualsRhsInt32_hot_end:
.p2align 4
asm_handler_JumpStrictlyInequalsRhsInt32:
- ldr w0, [x21, #4]
+ ldurh w0, [x21, #3]
ldr x0, [x27, x0, lsl #3]
- ldr w1, [x21, #8]
+ ldur w1, [x21, #5]
movk x1, #0x7ffa, lsl #48
b .Lasm_JumpStrictlyInequalsRhsInt32.ssa_block_9
lsr x2, x0, #48
@@ -7701,13 +7738,13 @@ asm_handler_JumpStrictlyInequalsRhsInt32:
cmp w2, w9
b.ne .Lasm_JumpStrictlyInequalsRhsInt32.ssa_block_20
.Lasm_JumpStrictlyInequalsRhsInt32.ssa_block_2:
- ldr w0, [x21, #12]
+ ldur w0, [x21, #9]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_JumpStrictlyInequalsRhsInt32.ssa_block_3:
- ldr w0, [x21, #16]
+ ldur w0, [x21, #13]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
@@ -7716,9 +7753,9 @@ asm_handler_JumpStrictlyInequalsRhsInt32_hot_end:
.p2align 4
asm_handler_JumpLooselyEqualsRhsInt32:
- ldr w0, [x21, #4]
+ ldurh w0, [x21, #3]
ldr x0, [x27, x0, lsl #3]
- ldr w1, [x21, #8]
+ ldur w1, [x21, #5]
movk x1, #0x7ffa, lsl #48
b .Lasm_JumpLooselyEqualsRhsInt32.ssa_block_9
lsr x2, x0, #48
@@ -7792,13 +7829,13 @@ asm_handler_JumpLooselyEqualsRhsInt32:
b.ne .Lasm_JumpLooselyEqualsRhsInt32.ssa_block_22
b .Lasm_JumpLooselyEqualsRhsInt32.ssa_block_1
.Lasm_JumpLooselyEqualsRhsInt32.ssa_block_3:
- ldr w0, [x21, #16]
+ ldur w0, [x21, #13]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_JumpLooselyEqualsRhsInt32.ssa_block_2:
- ldr w0, [x21, #12]
+ ldur w0, [x21, #9]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
@@ -7807,9 +7844,9 @@ asm_handler_JumpLooselyEqualsRhsInt32_hot_end:
.p2align 4
asm_handler_JumpLooselyInequalsRhsInt32:
- ldr w0, [x21, #4]
+ ldurh w0, [x21, #3]
ldr x0, [x27, x0, lsl #3]
- ldr w1, [x21, #8]
+ ldur w1, [x21, #5]
movk x1, #0x7ffa, lsl #48
b .Lasm_JumpLooselyInequalsRhsInt32.ssa_block_9
lsr x2, x0, #48
@@ -7883,13 +7920,13 @@ asm_handler_JumpLooselyInequalsRhsInt32:
b.ne .Lasm_JumpLooselyInequalsRhsInt32.ssa_block_22
b .Lasm_JumpLooselyInequalsRhsInt32.ssa_block_1
.Lasm_JumpLooselyInequalsRhsInt32.ssa_block_2:
- ldr w0, [x21, #12]
+ ldur w0, [x21, #9]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_JumpLooselyInequalsRhsInt32.ssa_block_3:
- ldr w0, [x21, #16]
+ ldur w0, [x21, #13]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
@@ -7898,22 +7935,22 @@ asm_handler_JumpLooselyInequalsRhsInt32_hot_end:
.p2align 4
asm_handler_JumpLessThanLoopRhsInt32:
- ldr w0, [x21, #4]
+ ldurh w0, [x21, #3]
ldr x0, [x27, x0, lsl #3]
- ldr w2, [x21, #8]
+ ldur w2, [x21, #5]
lsr x1, x0, #48
cmp w1, w22
b.ne .Lasm_JumpLessThanLoopRhsInt32.ssa_block_8
cmp w0, w2
b.lt .Lasm_JumpLessThanLoopRhsInt32.ssa_block_2
.Lasm_JumpLessThanLoopRhsInt32.ssa_block_3:
- ldr w0, [x21, #16]
+ ldur w0, [x21, #13]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_JumpLessThanLoopRhsInt32.ssa_block_2:
- ldr w0, [x21, #12]
+ ldur w0, [x21, #9]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
@@ -7922,22 +7959,22 @@ asm_handler_JumpLessThanLoopRhsInt32_hot_end:
.p2align 4
asm_handler_JumpLessThanEqualsLoopRhsInt32:
- ldr w0, [x21, #4]
+ ldurh w0, [x21, #3]
ldr x0, [x27, x0, lsl #3]
- ldr w2, [x21, #8]
+ ldur w2, [x21, #5]
lsr x1, x0, #48
cmp w1, w22
b.ne .Lasm_JumpLessThanEqualsLoopRhsInt32.ssa_block_8
cmp w0, w2
b.le .Lasm_JumpLessThanEqualsLoopRhsInt32.ssa_block_2
.Lasm_JumpLessThanEqualsLoopRhsInt32.ssa_block_3:
- ldr w0, [x21, #16]
+ ldur w0, [x21, #13]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_JumpLessThanEqualsLoopRhsInt32.ssa_block_2:
- ldr w0, [x21, #12]
+ ldur w0, [x21, #9]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
@@ -7946,22 +7983,22 @@ asm_handler_JumpLessThanEqualsLoopRhsInt32_hot_end:
.p2align 4
asm_handler_JumpGreaterThanLoopRhsInt32:
- ldr w0, [x21, #4]
+ ldurh w0, [x21, #3]
ldr x0, [x27, x0, lsl #3]
- ldr w2, [x21, #8]
+ ldur w2, [x21, #5]
lsr x1, x0, #48
cmp w1, w22
b.ne .Lasm_JumpGreaterThanLoopRhsInt32.ssa_block_8
cmp w0, w2
b.gt .Lasm_JumpGreaterThanLoopRhsInt32.ssa_block_2
.Lasm_JumpGreaterThanLoopRhsInt32.ssa_block_3:
- ldr w0, [x21, #16]
+ ldur w0, [x21, #13]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_JumpGreaterThanLoopRhsInt32.ssa_block_2:
- ldr w0, [x21, #12]
+ ldur w0, [x21, #9]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
@@ -7970,22 +8007,22 @@ asm_handler_JumpGreaterThanLoopRhsInt32_hot_end:
.p2align 4
asm_handler_JumpGreaterThanEqualsLoopRhsInt32:
- ldr w0, [x21, #4]
+ ldurh w0, [x21, #3]
ldr x0, [x27, x0, lsl #3]
- ldr w2, [x21, #8]
+ ldur w2, [x21, #5]
lsr x1, x0, #48
cmp w1, w22
b.ne .Lasm_JumpGreaterThanEqualsLoopRhsInt32.ssa_block_8
cmp w0, w2
b.ge .Lasm_JumpGreaterThanEqualsLoopRhsInt32.ssa_block_2
.Lasm_JumpGreaterThanEqualsLoopRhsInt32.ssa_block_3:
- ldr w0, [x21, #16]
+ ldur w0, [x21, #13]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_JumpGreaterThanEqualsLoopRhsInt32.ssa_block_2:
- ldr w0, [x21, #12]
+ ldur w0, [x21, #9]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
@@ -7994,9 +8031,9 @@ asm_handler_JumpGreaterThanEqualsLoopRhsInt32_hot_end:
.p2align 4
asm_handler_JumpStrictlyEqualsLoopRhsInt32:
- ldr w0, [x21, #4]
+ ldurh w0, [x21, #3]
ldr x0, [x27, x0, lsl #3]
- ldr w1, [x21, #8]
+ ldur w1, [x21, #5]
movk x1, #0x7ffa, lsl #48
b .Lasm_JumpStrictlyEqualsLoopRhsInt32.ssa_block_9
lsr x2, x0, #48
@@ -8076,13 +8113,13 @@ asm_handler_JumpStrictlyEqualsLoopRhsInt32:
cmp w2, w9
b.ne .Lasm_JumpStrictlyEqualsLoopRhsInt32.ssa_block_20
.Lasm_JumpStrictlyEqualsLoopRhsInt32.ssa_block_3:
- ldr w0, [x21, #16]
+ ldur w0, [x21, #13]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_JumpStrictlyEqualsLoopRhsInt32.ssa_block_2:
- ldr w0, [x21, #12]
+ ldur w0, [x21, #9]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
@@ -8091,9 +8128,9 @@ asm_handler_JumpStrictlyEqualsLoopRhsInt32_hot_end:
.p2align 4
asm_handler_JumpStrictlyInequalsLoopRhsInt32:
- ldr w0, [x21, #4]
+ ldurh w0, [x21, #3]
ldr x0, [x27, x0, lsl #3]
- ldr w1, [x21, #8]
+ ldur w1, [x21, #5]
movk x1, #0x7ffa, lsl #48
b .Lasm_JumpStrictlyInequalsLoopRhsInt32.ssa_block_9
lsr x2, x0, #48
@@ -8173,13 +8210,13 @@ asm_handler_JumpStrictlyInequalsLoopRhsInt32:
cmp w2, w9
b.ne .Lasm_JumpStrictlyInequalsLoopRhsInt32.ssa_block_20
.Lasm_JumpStrictlyInequalsLoopRhsInt32.ssa_block_2:
- ldr w0, [x21, #12]
+ ldur w0, [x21, #9]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_JumpStrictlyInequalsLoopRhsInt32.ssa_block_3:
- ldr w0, [x21, #16]
+ ldur w0, [x21, #13]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
@@ -8188,9 +8225,9 @@ asm_handler_JumpStrictlyInequalsLoopRhsInt32_hot_end:
.p2align 4
asm_handler_JumpLooselyEqualsLoopRhsInt32:
- ldr w0, [x21, #4]
+ ldurh w0, [x21, #3]
ldr x0, [x27, x0, lsl #3]
- ldr w1, [x21, #8]
+ ldur w1, [x21, #5]
movk x1, #0x7ffa, lsl #48
b .Lasm_JumpLooselyEqualsLoopRhsInt32.ssa_block_9
lsr x2, x0, #48
@@ -8264,13 +8301,13 @@ asm_handler_JumpLooselyEqualsLoopRhsInt32:
b.ne .Lasm_JumpLooselyEqualsLoopRhsInt32.ssa_block_22
b .Lasm_JumpLooselyEqualsLoopRhsInt32.ssa_block_1
.Lasm_JumpLooselyEqualsLoopRhsInt32.ssa_block_3:
- ldr w0, [x21, #16]
+ ldur w0, [x21, #13]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_JumpLooselyEqualsLoopRhsInt32.ssa_block_2:
- ldr w0, [x21, #12]
+ ldur w0, [x21, #9]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
@@ -8279,9 +8316,9 @@ asm_handler_JumpLooselyEqualsLoopRhsInt32_hot_end:
.p2align 4
asm_handler_JumpLooselyInequalsLoopRhsInt32:
- ldr w0, [x21, #4]
+ ldurh w0, [x21, #3]
ldr x0, [x27, x0, lsl #3]
- ldr w1, [x21, #8]
+ ldur w1, [x21, #5]
movk x1, #0x7ffa, lsl #48
b .Lasm_JumpLooselyInequalsLoopRhsInt32.ssa_block_9
lsr x2, x0, #48
@@ -8355,13 +8392,13 @@ asm_handler_JumpLooselyInequalsLoopRhsInt32:
b.ne .Lasm_JumpLooselyInequalsLoopRhsInt32.ssa_block_22
b .Lasm_JumpLooselyInequalsLoopRhsInt32.ssa_block_1
.Lasm_JumpLooselyInequalsLoopRhsInt32.ssa_block_2:
- ldr w0, [x21, #12]
+ ldur w0, [x21, #9]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_JumpLooselyInequalsLoopRhsInt32.ssa_block_3:
- ldr w0, [x21, #16]
+ ldur w0, [x21, #13]
add x21, x26, w0, uxtw
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
@@ -8384,10 +8421,10 @@ asm_handler_Add_cold:
scvtf d1, w0
fadd d0, d0, d1
fmov x0, d0
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_Add.ssa_block_8:
@@ -8441,18 +8478,19 @@ asm_handler_Add_cold:
b.vs .Lasm_Add.canon_nan_0
.Lasm_Add.canon_nan_0_ret:
.Lasm_Add.ssa_box_number_6_done:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_Add.ssa_block_1:
- ldr w2, [x21, #4]
+ ldurh w2, [x21, #3]
sub sp, sp, #16
str w2, [sp, #8]
mov x3, x1
mov x4, x0
+ mov w5, #9
add x2, sp, #0
mov x0, x20
sub w1, w21, w26
@@ -8507,10 +8545,10 @@ asm_handler_Sub_cold:
scvtf d1, w0
fsub d0, d0, d1
fmov x0, d0
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_Sub.ssa_block_8:
@@ -8564,18 +8602,19 @@ asm_handler_Sub_cold:
b.vs .Lasm_Sub.canon_nan_0
.Lasm_Sub.canon_nan_0_ret:
.Lasm_Sub.ssa_box_number_6_done:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_Sub.ssa_block_1:
- ldr w2, [x21, #4]
+ ldurh w2, [x21, #3]
sub sp, sp, #16
str w2, [sp, #8]
mov x3, x1
mov x4, x0
+ mov w5, #9
add x2, sp, #0
mov x0, x20
sub w1, w21, w26
@@ -8629,18 +8668,18 @@ asm_handler_Mul_cold:
scvtf d1, w0
fmul d0, d0, d1
fmov x0, d0
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_Mul.ssa_block_3:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
movz x10, #0x8000, lsl #48
str x10, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_Mul.ssa_block_9:
@@ -8694,18 +8733,19 @@ asm_handler_Mul_cold:
b.vs .Lasm_Mul.canon_nan_0
.Lasm_Mul.canon_nan_0_ret:
.Lasm_Mul.ssa_box_number_6_done:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_Mul.ssa_block_1:
- ldr w2, [x21, #4]
+ ldurh w2, [x21, #3]
sub sp, sp, #16
str w2, [sp, #8]
mov x3, x1
mov x4, x0
+ mov w5, #9
add x2, sp, #0
mov x0, x20
sub w1, w21, w26
@@ -8752,14 +8792,16 @@ asm_handler_Mul_cold:
asm_handler_Mul_cold_end:
.p2align 4
asm_handler_Exp:
- ldp w0, w1, [x21, #8]
+ ldurh w0, [x21, #5]
+ ldurh w1, [x21, #7]
ldr x0, [x27, x0, lsl #3]
ldr x1, [x27, x1, lsl #3]
- ldr w2, [x21, #4]
+ ldurh w2, [x21, #3]
sub sp, sp, #16
str w2, [sp, #8]
mov x3, x0
mov x4, x1
+ mov w5, #9
add x2, sp, #0
mov x0, x20
sub w1, w21, w26
@@ -8804,11 +8846,11 @@ asm_handler_ConcatString:
sub w1, w21, w26
str w1, [x28, #64]
sub sp, sp, #16
- ldr w12, [x21, #4]
+ ldurh w12, [x21, #1]
ldr x11, [x27, x12, lsl #3]
.Lasm_ConcatString.value_ready_1:
mov x4, x11
- ldr w12, [x21, #8]
+ ldurh w12, [x21, #3]
ldr x11, [x27, x12, lsl #3]
.Lasm_ConcatString.value_ready_2:
mov x5, x11
@@ -8819,7 +8861,7 @@ asm_handler_ConcatString:
bl CSYM(asm_slow_path_concat_string)
tbnz x0, #63, .Lasm_ConcatString.values_exceptional_outputs_4
tbz x0, #32, .Lasm_ConcatString.values_exceptional_outputs_4
- ldr w12, [x21, #4]
+ ldurh w12, [x21, #1]
ldr x11, [sp]
str x11, [x27, x12, lsl #3]
.Lasm_ConcatString.skip_output_value_5:
@@ -8832,7 +8874,7 @@ asm_handler_ConcatString:
ldr x9, [x20]
cmp x9, x28
b.ne .Lasm_ConcatString.values_restore_stack_3
- ldr w12, [x21, #4]
+ ldurh w12, [x21, #1]
ldr x11, [sp]
str x11, [x27, x12, lsl #3]
.Lasm_ConcatString.skip_exceptional_output_6:
@@ -8866,7 +8908,7 @@ asm_handler_CopyObjectExcludingProperties:
sub w1, w21, w26
str w1, [x28, #64]
add x9, sp, #0
- ldr w10, [x21, #16]
+ ldur w10, [x21, #9]
lsl x10, x10, #3
add x10, x10, #47
and x10, x10, #0xfffffffffffffff0
@@ -8891,18 +8933,18 @@ asm_handler_CopyObjectExcludingProperties:
.Lasm_CopyObjectExcludingProperties.values_allocated_3:
add sp, x14, #0
str x9, [sp]
- ldr w12, [x21, #12]
+ ldurh w12, [x21, #7]
ldr x11, [x27, x12, lsl #3]
.Lasm_CopyObjectExcludingProperties.value_ready_4:
str x11, [sp, #24]
mov w9, #0
- ldr w10, [x21, #16]
+ ldur w10, [x21, #9]
add x14, sp, #32
- add x3, x21, #20
+ add x3, x21, #13
.Lasm_CopyObjectExcludingProperties.array_value_next_5:
cmp x9, x10
b.hs .Lasm_CopyObjectExcludingProperties.array_values_end_7
- ldr w12, [x3, x9, lsl #2]
+ ldrh w12, [x3, x9, lsl #1]
ldr x11, [x27, x12, lsl #3]
.Lasm_CopyObjectExcludingProperties.array_value_ready_6:
str x11, [x14, x9, lsl #3]
@@ -8916,7 +8958,7 @@ asm_handler_CopyObjectExcludingProperties:
bl CSYM(asm_slow_path_copy_object_excluding_properties)
tbnz x0, #63, .Lasm_CopyObjectExcludingProperties.values_exceptional_outputs_9
tbz x0, #32, .Lasm_CopyObjectExcludingProperties.values_exceptional_outputs_9
- ldr w12, [x21, #8]
+ ldurh w12, [x21, #5]
ldr x11, [sp, #16]
str x11, [x27, x12, lsl #3]
.Lasm_CopyObjectExcludingProperties.skip_output_value_10:
@@ -8957,11 +8999,11 @@ asm_handler_ImportCall:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #3]
ldr x10, [x27, x9, lsl #3]
.Lasm_ImportCall.scalar_value_ready_0:
mov x3, x10
- ldr w9, [x21, #12]
+ ldurh w9, [x21, #5]
ldr x10, [x27, x9, lsl #3]
.Lasm_ImportCall.scalar_value_ready_1:
mov x4, x10
@@ -8971,7 +9013,7 @@ asm_handler_ImportCall:
bl CSYM(asm_slow_path_import_call)
tbnz x0, #63, .Lasm_ImportCall.scalar_result_done_2
tbz x0, #32, .Lasm_ImportCall.scalar_result_done_2
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -9010,7 +9052,7 @@ asm_handler_GetClassFieldInitializerName:
bl CSYM(asm_slow_path_get_class_field_initializer_name)
tbnz x0, #63, .Lasm_GetClassFieldInitializerName.scalar_result_done_0
tbz x0, #32, .Lasm_GetClassFieldInitializerName.scalar_result_done_0
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -9043,7 +9085,7 @@ asm_handler_GetClassProtoParent:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #3]
ldr x10, [x27, x9, lsl #3]
.Lasm_GetClassProtoParent.scalar_value_ready_0:
mov x3, x10
@@ -9053,7 +9095,7 @@ asm_handler_GetClassProtoParent:
bl CSYM(asm_slow_path_get_class_proto_parent)
tbnz x0, #63, .Lasm_GetClassProtoParent.scalar_result_done_1
tbz x0, #32, .Lasm_GetClassProtoParent.scalar_result_done_1
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -9087,7 +9129,7 @@ asm_handler_NewClass:
sub w1, w21, w26
str w1, [x28, #64]
add x9, sp, #0
- ldr w10, [x21, #36]
+ ldur w10, [x21, #21]
lsl x10, x10, #3
add x10, x10, #71
and x10, x10, #0xfffffffffffffff0
@@ -9113,43 +9155,43 @@ asm_handler_NewClass:
add sp, x14, #0
str x9, [sp]
movz x11, #0x7ffb, lsl #48
- ldr w12, [x21, #12]
- movn w13, #0
+ ldurh w12, [x21, #7]
+ mov w13, #65535
cmp w12, w13
b.eq .Lasm_NewClass.value_ready_4
ldr x11, [x27, x12, lsl #3]
.Lasm_NewClass.value_ready_4:
str x11, [sp, #24]
movz x11, #0x7ffb, lsl #48
- ldr w12, [x21, #16]
- movn w13, #0
+ ldurh w12, [x21, #9]
+ mov w13, #65535
cmp w12, w13
b.eq .Lasm_NewClass.value_ready_5
ldr x11, [x27, x12, lsl #3]
.Lasm_NewClass.value_ready_5:
str x11, [sp, #32]
- ldr w12, [x21, #20]
+ ldurh w12, [x21, #11]
ldr x11, [x27, x12, lsl #3]
.Lasm_NewClass.value_ready_6:
str x11, [sp, #40]
movz x11, #0x7ffb, lsl #48
- ldr w12, [x21, #32]
- movn w13, #0
+ ldurh w12, [x21, #19]
+ mov w13, #65535
cmp w12, w13
b.eq .Lasm_NewClass.value_ready_7
ldr x11, [x27, x12, lsl #3]
.Lasm_NewClass.value_ready_7:
str x11, [sp, #48]
mov w9, #0
- ldr w10, [x21, #36]
+ ldur w10, [x21, #21]
add x14, sp, #56
- add x3, x21, #40
+ add x3, x21, #25
.Lasm_NewClass.array_value_next_8:
cmp x9, x10
b.hs .Lasm_NewClass.array_values_end_10
- ldr w12, [x3, x9, lsl #2]
+ ldrh w12, [x3, x9, lsl #1]
movz x11, #0x7ffb, lsl #48
- movn w13, #0
+ mov w13, #65535
cmp w12, w13
b.eq .Lasm_NewClass.array_value_ready_9
ldr x11, [x27, x12, lsl #3]
@@ -9165,7 +9207,7 @@ asm_handler_NewClass:
bl CSYM(asm_slow_path_new_class)
tbnz x0, #63, .Lasm_NewClass.values_exceptional_outputs_12
tbz x0, #32, .Lasm_NewClass.values_exceptional_outputs_12
- ldr w12, [x21, #8]
+ ldurh w12, [x21, #5]
ldr x11, [sp, #16]
str x11, [x27, x12, lsl #3]
.Lasm_NewClass.skip_output_value_13:
@@ -9247,8 +9289,8 @@ asm_handler_JumpLessThan_cold:
b.mi .Lasm_JumpLessThan.ssa_block_2
b .Lasm_JumpLessThan.ssa_block_3
.Lasm_JumpLessThan.ssa_block_1:
- ldr w2, [x21, #12]
- ldr w3, [x21, #16]
+ ldur w2, [x21, #7]
+ ldur w3, [x21, #11]
mov x4, x2
mov x2, x1
mov x5, x3
@@ -9311,8 +9353,8 @@ asm_handler_JumpGreaterThan_cold:
b.gt .Lasm_JumpGreaterThan.ssa_block_2
b .Lasm_JumpGreaterThan.ssa_block_3
.Lasm_JumpGreaterThan.ssa_block_1:
- ldr w2, [x21, #12]
- ldr w3, [x21, #16]
+ ldur w2, [x21, #7]
+ ldur w3, [x21, #11]
mov x4, x2
mov x2, x1
mov x5, x3
@@ -9375,8 +9417,8 @@ asm_handler_JumpLessThanEquals_cold:
b.ls .Lasm_JumpLessThanEquals.ssa_block_2
b .Lasm_JumpLessThanEquals.ssa_block_3
.Lasm_JumpLessThanEquals.ssa_block_1:
- ldr w2, [x21, #12]
- ldr w3, [x21, #16]
+ ldur w2, [x21, #7]
+ ldur w3, [x21, #11]
mov x4, x2
mov x2, x1
mov x5, x3
@@ -9439,8 +9481,8 @@ asm_handler_JumpGreaterThanEquals_cold:
b.ge .Lasm_JumpGreaterThanEquals.ssa_block_2
b .Lasm_JumpGreaterThanEquals.ssa_block_3
.Lasm_JumpGreaterThanEquals.ssa_block_1:
- ldr w2, [x21, #12]
- ldr w3, [x21, #16]
+ ldur w2, [x21, #7]
+ ldur w3, [x21, #11]
mov x4, x2
mov x2, x1
mov x5, x3
@@ -9493,8 +9535,8 @@ asm_handler_JumpLooselyEquals_cold:
cmp w1, w9
b.eq .Lasm_JumpLooselyEquals.ssa_block_36
.Lasm_JumpLooselyEquals.ssa_block_1:
- ldr w1, [x21, #12]
- ldr w3, [x21, #16]
+ ldur w1, [x21, #7]
+ ldur w3, [x21, #11]
mov x4, x1
mov x5, x3
mov x3, x2
@@ -9554,8 +9596,8 @@ asm_handler_JumpLooselyInequals_cold:
cmp w1, w9
b.eq .Lasm_JumpLooselyInequals.ssa_block_36
.Lasm_JumpLooselyInequals.ssa_block_1:
- ldr w1, [x21, #12]
- ldr w3, [x21, #16]
+ ldur w1, [x21, #7]
+ ldur w3, [x21, #11]
mov x4, x1
mov x5, x3
mov x3, x2
@@ -9615,8 +9657,8 @@ asm_handler_JumpStrictlyEquals_cold:
cmp w1, w9
b.eq .Lasm_JumpStrictlyEquals.ssa_block_34
.Lasm_JumpStrictlyEquals.ssa_block_1:
- ldr w1, [x21, #12]
- ldr w3, [x21, #16]
+ ldur w1, [x21, #7]
+ ldur w3, [x21, #11]
mov x4, x1
mov x5, x3
mov x3, x2
@@ -9676,8 +9718,8 @@ asm_handler_JumpStrictlyInequals_cold:
cmp w1, w9
b.eq .Lasm_JumpStrictlyInequals.ssa_block_34
.Lasm_JumpStrictlyInequals.ssa_block_1:
- ldr w1, [x21, #12]
- ldr w3, [x21, #16]
+ ldur w1, [x21, #7]
+ ldur w3, [x21, #11]
mov x4, x1
mov x5, x3
mov x3, x2
@@ -9755,8 +9797,8 @@ asm_handler_JumpLessThanLoop_cold:
b.mi .Lasm_JumpLessThanLoop.ssa_block_2
b .Lasm_JumpLessThanLoop.ssa_block_3
.Lasm_JumpLessThanLoop.ssa_block_1:
- ldr w2, [x21, #12]
- ldr w3, [x21, #16]
+ ldur w2, [x21, #7]
+ ldur w3, [x21, #11]
mov x4, x2
mov x2, x1
mov x5, x3
@@ -9819,8 +9861,8 @@ asm_handler_JumpGreaterThanLoop_cold:
b.gt .Lasm_JumpGreaterThanLoop.ssa_block_2
b .Lasm_JumpGreaterThanLoop.ssa_block_3
.Lasm_JumpGreaterThanLoop.ssa_block_1:
- ldr w2, [x21, #12]
- ldr w3, [x21, #16]
+ ldur w2, [x21, #7]
+ ldur w3, [x21, #11]
mov x4, x2
mov x2, x1
mov x5, x3
@@ -9883,8 +9925,8 @@ asm_handler_JumpLessThanEqualsLoop_cold:
b.ls .Lasm_JumpLessThanEqualsLoop.ssa_block_2
b .Lasm_JumpLessThanEqualsLoop.ssa_block_3
.Lasm_JumpLessThanEqualsLoop.ssa_block_1:
- ldr w2, [x21, #12]
- ldr w3, [x21, #16]
+ ldur w2, [x21, #7]
+ ldur w3, [x21, #11]
mov x4, x2
mov x2, x1
mov x5, x3
@@ -9947,8 +9989,8 @@ asm_handler_JumpGreaterThanEqualsLoop_cold:
b.ge .Lasm_JumpGreaterThanEqualsLoop.ssa_block_2
b .Lasm_JumpGreaterThanEqualsLoop.ssa_block_3
.Lasm_JumpGreaterThanEqualsLoop.ssa_block_1:
- ldr w2, [x21, #12]
- ldr w3, [x21, #16]
+ ldur w2, [x21, #7]
+ ldur w3, [x21, #11]
mov x4, x2
mov x2, x1
mov x5, x3
@@ -10001,8 +10043,8 @@ asm_handler_JumpLooselyEqualsLoop_cold:
cmp w1, w9
b.eq .Lasm_JumpLooselyEqualsLoop.ssa_block_36
.Lasm_JumpLooselyEqualsLoop.ssa_block_1:
- ldr w1, [x21, #12]
- ldr w3, [x21, #16]
+ ldur w1, [x21, #7]
+ ldur w3, [x21, #11]
mov x4, x1
mov x5, x3
mov x3, x2
@@ -10062,8 +10104,8 @@ asm_handler_JumpLooselyInequalsLoop_cold:
cmp w1, w9
b.eq .Lasm_JumpLooselyInequalsLoop.ssa_block_36
.Lasm_JumpLooselyInequalsLoop.ssa_block_1:
- ldr w1, [x21, #12]
- ldr w3, [x21, #16]
+ ldur w1, [x21, #7]
+ ldur w3, [x21, #11]
mov x4, x1
mov x5, x3
mov x3, x2
@@ -10123,8 +10165,8 @@ asm_handler_JumpStrictlyEqualsLoop_cold:
cmp w1, w9
b.eq .Lasm_JumpStrictlyEqualsLoop.ssa_block_34
.Lasm_JumpStrictlyEqualsLoop.ssa_block_1:
- ldr w1, [x21, #12]
- ldr w3, [x21, #16]
+ ldur w1, [x21, #7]
+ ldur w3, [x21, #11]
mov x4, x1
mov x5, x3
mov x3, x2
@@ -10184,8 +10226,8 @@ asm_handler_JumpStrictlyInequalsLoop_cold:
cmp w1, w9
b.eq .Lasm_JumpStrictlyInequalsLoop.ssa_block_34
.Lasm_JumpStrictlyInequalsLoop.ssa_block_1:
- ldr w1, [x21, #12]
- ldr w3, [x21, #16]
+ ldur w1, [x21, #7]
+ ldur w3, [x21, #11]
mov x4, x1
mov x5, x3
mov x3, x2
@@ -10231,10 +10273,10 @@ asm_handler_Increment_cold:
fmov d1, x0
fadd d0, d0, d1
fmov x0, d0
- ldr w1, [x21, #4]
+ ldurh w1, [x21, #3]
str x0, [x27, x1, lsl #3]
- ldrb w9, [x21, #8]
- add x21, x21, #8
+ ldrb w9, [x21, #5]
+ add x21, x21, #5
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_Increment.ssa_block_2:
@@ -10242,7 +10284,7 @@ asm_handler_Increment_cold:
sub w1, w21, w26
str w1, [x28, #64]
sub sp, sp, #16
- ldr w12, [x21, #4]
+ ldurh w12, [x21, #3]
ldr x11, [x27, x12, lsl #3]
.Lasm_Increment.value_ready_1:
mov x4, x11
@@ -10257,7 +10299,7 @@ asm_handler_Increment_cold:
tbnz x0, #32, 1f
b .Lasm_Increment.values_exceptional_outputs_3
1:
- ldr w12, [x21, #4]
+ ldurh w12, [x21, #3]
ldr x11, [sp]
str x11, [x27, x12, lsl #3]
.Lasm_Increment.skip_output_value_4:
@@ -10270,7 +10312,7 @@ asm_handler_Increment_cold:
ldr x9, [x20]
cmp x9, x28
b.ne .Lasm_Increment.values_restore_stack_2
- ldr w12, [x21, #4]
+ ldurh w12, [x21, #3]
ldr x11, [sp]
str x11, [x27, x12, lsl #3]
.Lasm_Increment.skip_exceptional_output_5:
@@ -10307,10 +10349,10 @@ asm_handler_Decrement_cold:
fmov d1, x0
fsub d0, d0, d1
fmov x0, d0
- ldr w1, [x21, #4]
+ ldurh w1, [x21, #3]
str x0, [x27, x1, lsl #3]
- ldrb w9, [x21, #8]
- add x21, x21, #8
+ ldrb w9, [x21, #5]
+ add x21, x21, #5
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_Decrement.ssa_block_2:
@@ -10318,7 +10360,7 @@ asm_handler_Decrement_cold:
sub w1, w21, w26
str w1, [x28, #64]
sub sp, sp, #16
- ldr w12, [x21, #4]
+ ldurh w12, [x21, #3]
ldr x11, [x27, x12, lsl #3]
.Lasm_Decrement.value_ready_1:
mov x4, x11
@@ -10333,7 +10375,7 @@ asm_handler_Decrement_cold:
tbnz x0, #32, 1f
b .Lasm_Decrement.values_exceptional_outputs_3
1:
- ldr w12, [x21, #4]
+ ldurh w12, [x21, #3]
ldr x11, [sp]
str x11, [x27, x12, lsl #3]
.Lasm_Decrement.skip_output_value_4:
@@ -10346,7 +10388,7 @@ asm_handler_Decrement_cold:
ldr x9, [x20]
cmp x9, x28
b.ne .Lasm_Decrement.values_restore_stack_2
- ldr w12, [x21, #4]
+ ldurh w12, [x21, #3]
ldr x11, [sp]
str x11, [x27, x12, lsl #3]
.Lasm_Decrement.skip_exceptional_output_5:
@@ -10396,7 +10438,7 @@ asm_handler_GetImportMeta:
bl CSYM(asm_slow_path_get_import_meta)
tbnz x0, #63, .Lasm_GetImportMeta.scalar_result_done_0
tbz x0, #32, .Lasm_GetImportMeta.scalar_result_done_0
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -10435,7 +10477,7 @@ asm_handler_GetImport:
bl CSYM(asm_slow_path_get_import)
tbnz x0, #63, .Lasm_GetImport.scalar_result_done_0
tbz x0, #32, .Lasm_GetImport.scalar_result_done_0
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -10474,7 +10516,7 @@ asm_handler_GetNewTarget:
bl CSYM(asm_slow_path_get_new_target)
tbnz x0, #63, .Lasm_GetNewTarget.scalar_result_done_0
tbz x0, #32, .Lasm_GetNewTarget.scalar_result_done_0
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -10513,7 +10555,7 @@ asm_handler_GetSuperConstructor:
bl CSYM(asm_slow_path_get_super_constructor)
tbnz x0, #63, .Lasm_GetSuperConstructor.scalar_result_done_0
tbz x0, #32, .Lasm_GetSuperConstructor.scalar_result_done_0
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -10559,7 +10601,7 @@ asm_handler_GetBinding_cold:
tbnz x0, #32, 1f
b .Lasm_GetBinding.scalar_result_done_1
1:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -10602,7 +10644,7 @@ asm_handler_DynamicGetBinding_cold:
tbnz x0, #32, 1f
b .Lasm_DynamicGetBinding.scalar_result_done_1
1:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -10647,7 +10689,7 @@ asm_handler_DynamicGetInitializedBinding_cold:
tbnz x0, #32, 1f
b .Lasm_DynamicGetInitializedBinding.scalar_result_done_1
1:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -10684,7 +10726,7 @@ asm_handler_DynamicInitializeLexicalBinding_cold:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #3]
ldr x10, [x27, x9, lsl #3]
.Lasm_DynamicInitializeLexicalBinding.scalar_value_ready_1:
mov x3, x10
@@ -10729,7 +10771,7 @@ asm_handler_DynamicInitializeVariableBinding_cold:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #3]
ldr x10, [x27, x9, lsl #3]
.Lasm_DynamicInitializeVariableBinding.scalar_value_ready_1:
mov x3, x10
@@ -10774,7 +10816,7 @@ asm_handler_SetLexicalBinding_cold:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #3]
ldr x10, [x27, x9, lsl #3]
.Lasm_SetLexicalBinding.scalar_value_ready_4:
mov x3, x10
@@ -10819,7 +10861,7 @@ asm_handler_SetVariableBinding_cold:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #3]
ldr x10, [x27, x9, lsl #3]
.Lasm_SetVariableBinding.scalar_value_ready_4:
mov x3, x10
@@ -10864,7 +10906,7 @@ asm_handler_DynamicSetLexicalBinding_cold:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #3]
ldr x10, [x27, x9, lsl #3]
.Lasm_DynamicSetLexicalBinding.scalar_value_ready_4:
mov x3, x10
@@ -10908,7 +10950,7 @@ asm_handler_SetVariableBindingOfBlockFunction:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #3]
ldr x10, [x27, x9, lsl #3]
.Lasm_SetVariableBindingOfBlockFunction.scalar_value_ready_0:
mov x3, x10
@@ -10950,7 +10992,7 @@ asm_handler_DynamicSetVariableBinding_cold:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #3]
ldr x10, [x27, x9, lsl #3]
.Lasm_DynamicSetVariableBinding.scalar_value_ready_4:
mov x3, x10
@@ -11000,7 +11042,7 @@ asm_handler_ResolveBinding:
bl CSYM(asm_slow_path_resolve_binding)
tbnz x0, #63, .Lasm_ResolveBinding.scalar_result_done_0
tbz x0, #32, .Lasm_ResolveBinding.scalar_result_done_0
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -11039,7 +11081,7 @@ asm_handler_ResolveSuperBase:
bl CSYM(asm_slow_path_resolve_super_base)
tbnz x0, #63, .Lasm_ResolveSuperBase.scalar_result_done_0
tbz x0, #32, .Lasm_ResolveSuperBase.scalar_result_done_0
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -11072,7 +11114,7 @@ asm_handler_GetResolvedBinding:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #3]
ldr x10, [x27, x9, lsl #3]
.Lasm_GetResolvedBinding.scalar_value_ready_0:
mov x3, x10
@@ -11082,7 +11124,7 @@ asm_handler_GetResolvedBinding:
bl CSYM(asm_slow_path_get_resolved_binding)
tbnz x0, #63, .Lasm_GetResolvedBinding.scalar_result_done_1
tbz x0, #32, .Lasm_GetResolvedBinding.scalar_result_done_1
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -11115,11 +11157,11 @@ asm_handler_SetResolvedBinding:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
ldr x10, [x27, x9, lsl #3]
.Lasm_SetResolvedBinding.scalar_value_ready_0:
mov x3, x10
- ldr w9, [x21, #12]
+ ldurh w9, [x21, #5]
ldr x10, [x27, x9, lsl #3]
.Lasm_SetResolvedBinding.scalar_value_ready_1:
mov x4, x10
@@ -11166,7 +11208,7 @@ asm_handler_TypeofBinding:
bl CSYM(asm_slow_path_typeof_binding)
tbnz x0, #63, .Lasm_TypeofBinding.scalar_result_done_0
tbz x0, #32, .Lasm_TypeofBinding.scalar_result_done_0
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -11205,7 +11247,7 @@ asm_handler_DynamicTypeofBinding:
bl CSYM(asm_slow_path_dynamic_typeof_binding)
tbnz x0, #63, .Lasm_DynamicTypeofBinding.scalar_result_done_0
tbz x0, #32, .Lasm_DynamicTypeofBinding.scalar_result_done_0
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -11244,7 +11286,7 @@ asm_handler_TypeofGlobal:
bl CSYM(asm_slow_path_typeof_global)
tbnz x0, #63, .Lasm_TypeofGlobal.scalar_result_done_0
tbz x0, #32, .Lasm_TypeofGlobal.scalar_result_done_0
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -11314,7 +11356,7 @@ asm_handler_HasPrivateId:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #3]
ldr x10, [x27, x9, lsl #3]
.Lasm_HasPrivateId.scalar_value_ready_0:
mov x3, x10
@@ -11324,7 +11366,7 @@ asm_handler_HasPrivateId:
bl CSYM(asm_slow_path_has_private_id)
tbnz x0, #63, .Lasm_HasPrivateId.scalar_result_done_1
tbz x0, #32, .Lasm_HasPrivateId.scalar_result_done_1
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -11357,11 +11399,11 @@ asm_handler_SetFunctionName:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
ldr x10, [x27, x9, lsl #3]
.Lasm_SetFunctionName.scalar_value_ready_0:
mov x3, x10
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #3]
ldr x10, [x27, x9, lsl #3]
.Lasm_SetFunctionName.scalar_value_ready_1:
mov x4, x10
@@ -11402,7 +11444,7 @@ asm_handler_NewArrayWithLength:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #3]
ldr x10, [x27, x9, lsl #3]
.Lasm_NewArrayWithLength.scalar_value_ready_0:
mov x3, x10
@@ -11412,7 +11454,7 @@ asm_handler_NewArrayWithLength:
bl CSYM(asm_slow_path_new_array_with_length)
tbnz x0, #63, .Lasm_NewArrayWithLength.scalar_result_done_1
tbz x0, #32, .Lasm_NewArrayWithLength.scalar_result_done_1
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -11445,11 +11487,11 @@ asm_handler_ArrayAppend:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
ldr x10, [x27, x9, lsl #3]
.Lasm_ArrayAppend.scalar_value_ready_0:
mov x3, x10
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #3]
ldr x10, [x27, x9, lsl #3]
.Lasm_ArrayAppend.scalar_value_ready_1:
mov x4, x10
@@ -11527,7 +11569,7 @@ asm_handler_EnterObjectEnvironment:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #3]
ldr x10, [x27, x9, lsl #3]
.Lasm_EnterObjectEnvironment.scalar_value_ready_0:
mov x3, x10
@@ -11537,7 +11579,7 @@ asm_handler_EnterObjectEnvironment:
bl CSYM(asm_slow_path_enter_object_environment)
tbnz x0, #63, .Lasm_EnterObjectEnvironment.scalar_result_done_1
tbz x0, #32, .Lasm_EnterObjectEnvironment.scalar_result_done_1
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -11575,10 +11617,10 @@ asm_handler_PostfixIncrement_cold:
fmov d1, x0
fadd d0, d0, d1
fmov x0, d0
- ldr w1, [x21, #8]
+ ldurh w1, [x21, #5]
str x0, [x27, x1, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #7]
+ add x21, x21, #7
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_PostfixIncrement.ssa_block_2:
@@ -11586,7 +11628,7 @@ asm_handler_PostfixIncrement_cold:
sub w1, w21, w26
str w1, [x28, #64]
sub sp, sp, #16
- ldr w12, [x21, #8]
+ ldurh w12, [x21, #5]
ldr x11, [x27, x12, lsl #3]
.Lasm_PostfixIncrement.value_ready_1:
mov x4, x11
@@ -11601,11 +11643,11 @@ asm_handler_PostfixIncrement_cold:
tbnz x0, #32, 1f
b .Lasm_PostfixIncrement.values_exceptional_outputs_3
1:
- ldr w12, [x21, #4]
+ ldurh w12, [x21, #3]
ldr x11, [sp]
str x11, [x27, x12, lsl #3]
.Lasm_PostfixIncrement.skip_output_value_4:
- ldr w12, [x21, #8]
+ ldurh w12, [x21, #5]
ldr x11, [sp, #8]
str x11, [x27, x12, lsl #3]
.Lasm_PostfixIncrement.skip_output_value_5:
@@ -11618,7 +11660,7 @@ asm_handler_PostfixIncrement_cold:
ldr x9, [x20]
cmp x9, x28
b.ne .Lasm_PostfixIncrement.values_restore_stack_2
- ldr w12, [x21, #8]
+ ldurh w12, [x21, #5]
ldr x11, [sp, #8]
str x11, [x27, x12, lsl #3]
.Lasm_PostfixIncrement.skip_exceptional_output_6:
@@ -11648,11 +11690,12 @@ asm_handler_PostfixIncrement_cold_end:
asm_handler_Div_cold:
// Cold paths for Div
.Lasm_Div.ssa_block_1:
- ldr w2, [x21, #4]
+ ldurh w2, [x21, #3]
sub sp, sp, #16
str w2, [sp, #8]
mov x3, x1
mov x4, x0
+ mov w5, #9
add x2, sp, #0
mov x0, x20
sub w1, w21, w26
@@ -11731,11 +11774,12 @@ asm_handler_LessThan_cold:
b.mi .Lasm_LessThan.ssa_block_1
b .Lasm_LessThan.ssa_block_2
.Lasm_LessThan.ssa_block_3:
- ldr w2, [x21, #4]
+ ldurh w2, [x21, #3]
sub sp, sp, #16
str w2, [sp, #8]
mov x3, x1
mov x4, x0
+ mov w5, #9
add x2, sp, #0
mov x0, x20
sub w1, w21, w26
@@ -11811,11 +11855,12 @@ asm_handler_LessThanEquals_cold:
b.ls .Lasm_LessThanEquals.ssa_block_1
b .Lasm_LessThanEquals.ssa_block_2
.Lasm_LessThanEquals.ssa_block_3:
- ldr w2, [x21, #4]
+ ldurh w2, [x21, #3]
sub sp, sp, #16
str w2, [sp, #8]
mov x3, x1
mov x4, x0
+ mov w5, #9
add x2, sp, #0
mov x0, x20
sub w1, w21, w26
@@ -11891,11 +11936,12 @@ asm_handler_GreaterThan_cold:
b.gt .Lasm_GreaterThan.ssa_block_1
b .Lasm_GreaterThan.ssa_block_2
.Lasm_GreaterThan.ssa_block_3:
- ldr w2, [x21, #4]
+ ldurh w2, [x21, #3]
sub sp, sp, #16
str w2, [sp, #8]
mov x3, x1
mov x4, x0
+ mov w5, #9
add x2, sp, #0
mov x0, x20
sub w1, w21, w26
@@ -11971,11 +12017,12 @@ asm_handler_GreaterThanEquals_cold:
b.ge .Lasm_GreaterThanEquals.ssa_block_1
b .Lasm_GreaterThanEquals.ssa_block_2
.Lasm_GreaterThanEquals.ssa_block_3:
- ldr w2, [x21, #4]
+ ldurh w2, [x21, #3]
sub sp, sp, #16
str w2, [sp, #8]
mov x3, x1
mov x4, x0
+ mov w5, #9
add x2, sp, #0
mov x0, x20
sub w1, w21, w26
@@ -12051,11 +12098,12 @@ asm_handler_BitwiseXor_cold:
b.ne .Lasm_BitwiseXor.ssa_block_1
b .Lasm_BitwiseXor.ssa_block_7
.Lasm_BitwiseXor.ssa_block_1:
- ldr w2, [x21, #4]
+ ldurh w2, [x21, #3]
sub sp, sp, #16
str w2, [sp, #8]
mov x3, x1
mov x4, x0
+ mov w5, #9
add x2, sp, #0
mov x0, x20
sub w1, w21, w26
@@ -12101,10 +12149,10 @@ asm_handler_BitwiseXor_cold:
.Lasm_BitwiseXor.ssa_block_7:
eor w2, w2, w3
movk x2, #0x7ffa, lsl #48
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x2, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_BitwiseXor_cold_end:
@@ -12118,7 +12166,7 @@ asm_handler_UnaryPlus_cold:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #5]
ldr x10, [x27, x9, lsl #3]
.Lasm_UnaryPlus.scalar_value_ready_0:
mov x3, x10
@@ -12132,7 +12180,7 @@ asm_handler_UnaryPlus_cold:
tbnz x0, #32, 1f
b .Lasm_UnaryPlus.scalar_result_done_1
1:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -12159,10 +12207,10 @@ asm_handler_UnaryPlus_cold:
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_UnaryPlus.ssa_block_2:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #7]
+ add x21, x21, #7
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_UnaryPlus_cold_end:
@@ -12172,7 +12220,7 @@ asm_handler_ThrowIfTDZ_cold:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
ldr x10, [x27, x9, lsl #3]
.Lasm_ThrowIfTDZ.scalar_value_ready_0:
mov x3, x10
@@ -12217,7 +12265,7 @@ asm_handler_ThrowIfNotObject_cold:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
ldr x10, [x27, x9, lsl #3]
.Lasm_ThrowIfNotObject.scalar_value_ready_0:
mov x3, x10
@@ -12262,7 +12310,7 @@ asm_handler_ThrowIfNullish_cold:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
ldr x10, [x27, x9, lsl #3]
.Lasm_ThrowIfNullish.scalar_value_ready_0:
mov x3, x10
@@ -12343,7 +12391,7 @@ asm_handler_ThrowNotAFunction:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
ldr x10, [x27, x9, lsl #3]
.Lasm_ThrowNotAFunction.scalar_value_ready_0:
mov x3, x10
@@ -12390,7 +12438,7 @@ asm_handler_GetArgumentCount:
bl CSYM(asm_slow_path_get_argument_count)
tbnz x0, #63, .Lasm_GetArgumentCount.scalar_result_done_0
tbz x0, #32, .Lasm_GetArgumentCount.scalar_result_done_0
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -12423,7 +12471,7 @@ asm_handler_Throw:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
ldr x10, [x27, x9, lsl #3]
.Lasm_Throw.scalar_value_ready_0:
mov x3, x10
@@ -12501,7 +12549,7 @@ asm_handler_Await:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #5]
ldr x10, [x27, x9, lsl #3]
.Lasm_Await.scalar_value_ready_0:
mov x3, x10
@@ -12542,7 +12590,7 @@ asm_handler_Yield:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #12]
+ ldrh w9, [x21, #6]
ldr x10, [x27, x9, lsl #3]
.Lasm_Yield.scalar_value_ready_0:
mov x3, x10
@@ -12583,7 +12631,7 @@ asm_handler_YieldIteratorResult:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #5]
ldr x10, [x27, x9, lsl #3]
.Lasm_YieldIteratorResult.scalar_value_ready_0:
mov x3, x10
@@ -12624,7 +12672,7 @@ asm_handler_ToString:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #3]
ldr x10, [x27, x9, lsl #3]
.Lasm_ToString.scalar_value_ready_0:
mov x3, x10
@@ -12634,7 +12682,7 @@ asm_handler_ToString:
bl CSYM(asm_slow_path_to_string)
tbnz x0, #63, .Lasm_ToString.scalar_result_done_1
tbz x0, #32, .Lasm_ToString.scalar_result_done_1
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -12668,7 +12716,7 @@ asm_handler_ToPrimitiveWithStringHint_cold:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #3]
ldr x10, [x27, x9, lsl #3]
.Lasm_ToPrimitiveWithStringHint.scalar_value_ready_0:
mov x3, x10
@@ -12682,7 +12730,7 @@ asm_handler_ToPrimitiveWithStringHint_cold:
tbnz x0, #32, 1f
b .Lasm_ToPrimitiveWithStringHint.scalar_result_done_1
1:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -12714,7 +12762,7 @@ asm_handler_ToObject:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #3]
ldr x10, [x27, x9, lsl #3]
.Lasm_ToObject.scalar_value_ready_0:
mov x3, x10
@@ -12724,7 +12772,7 @@ asm_handler_ToObject:
bl CSYM(asm_slow_path_to_object)
tbnz x0, #63, .Lasm_ToObject.scalar_result_done_1
tbz x0, #32, .Lasm_ToObject.scalar_result_done_1
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -12757,7 +12805,7 @@ asm_handler_ToLength:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #3]
ldr x10, [x27, x9, lsl #3]
.Lasm_ToLength.scalar_value_ready_0:
mov x3, x10
@@ -12767,7 +12815,7 @@ asm_handler_ToLength:
bl CSYM(asm_slow_path_to_length)
tbnz x0, #63, .Lasm_ToLength.scalar_result_done_1
tbz x0, #32, .Lasm_ToLength.scalar_result_done_1
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -12801,7 +12849,7 @@ asm_handler_BitwiseNot_cold:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #5]
ldr x10, [x27, x9, lsl #3]
.Lasm_BitwiseNot.scalar_value_ready_0:
mov x3, x10
@@ -12815,7 +12863,7 @@ asm_handler_BitwiseNot_cold:
tbnz x0, #32, 1f
b .Lasm_BitwiseNot.scalar_result_done_1
1:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -12876,11 +12924,12 @@ asm_handler_BitwiseAnd_cold:
b.ne .Lasm_BitwiseAnd.ssa_block_1
b .Lasm_BitwiseAnd.ssa_block_7
.Lasm_BitwiseAnd.ssa_block_1:
- ldr w2, [x21, #4]
+ ldurh w2, [x21, #3]
sub sp, sp, #16
str w2, [sp, #8]
mov x3, x1
mov x4, x0
+ mov w5, #9
add x2, sp, #0
mov x0, x20
sub w1, w21, w26
@@ -12926,10 +12975,10 @@ asm_handler_BitwiseAnd_cold:
.Lasm_BitwiseAnd.ssa_block_7:
and w2, w2, w3
movk x2, #0x7ffa, lsl #48
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x2, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_BitwiseAnd_cold_end:
@@ -12967,11 +13016,12 @@ asm_handler_BitwiseOr_cold:
b.ne .Lasm_BitwiseOr.ssa_block_1
b .Lasm_BitwiseOr.ssa_block_7
.Lasm_BitwiseOr.ssa_block_1:
- ldr w2, [x21, #4]
+ ldurh w2, [x21, #3]
sub sp, sp, #16
str w2, [sp, #8]
mov x3, x1
mov x4, x0
+ mov w5, #9
add x2, sp, #0
mov x0, x20
sub w1, w21, w26
@@ -13017,21 +13067,22 @@ asm_handler_BitwiseOr_cold:
.Lasm_BitwiseOr.ssa_block_7:
orr w2, w2, w3
movk x2, #0x7ffa, lsl #48
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x2, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_BitwiseOr_cold_end:
asm_handler_LeftShift_cold:
// Cold paths for LeftShift
.Lasm_LeftShift.ssa_block_1:
- ldr w2, [x21, #4]
+ ldurh w2, [x21, #3]
sub sp, sp, #16
str w2, [sp, #8]
mov x3, x0
mov x4, x1
+ mov w5, #9
add x2, sp, #0
mov x0, x20
sub w1, w21, w26
@@ -13076,11 +13127,12 @@ asm_handler_LeftShift_cold_end:
asm_handler_RightShift_cold:
// Cold paths for RightShift
.Lasm_RightShift.ssa_block_1:
- ldr w2, [x21, #4]
+ ldurh w2, [x21, #3]
sub sp, sp, #16
str w2, [sp, #8]
mov x3, x0
mov x4, x1
+ mov w5, #9
add x2, sp, #0
mov x0, x20
sub w1, w21, w26
@@ -13127,18 +13179,19 @@ asm_handler_UnsignedRightShift_cold:
.Lasm_UnsignedRightShift.ssa_block_2:
scvtf d0, x0
fmov x0, d0
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_UnsignedRightShift.ssa_block_1:
- ldr w2, [x21, #4]
+ ldurh w2, [x21, #3]
sub sp, sp, #16
str w2, [sp, #8]
mov x3, x0
mov x4, x1
+ mov w5, #9
add x2, sp, #0
mov x0, x20
sub w1, w21, w26
@@ -13183,7 +13236,7 @@ asm_handler_UnsignedRightShift_cold_end:
asm_handler_Mod_cold:
// Cold paths for Mod
.Lasm_Mod.ssa_block_2:
- ldr w1, [x21, #12]
+ ldurh w1, [x21, #7]
ldr x1, [x27, x1, lsl #3]
lsr x2, x0, #48
cmp w2, w22
@@ -13234,19 +13287,19 @@ asm_handler_Mod_cold:
cmp x2, x1
b.ne .Lasm_Mod.ssa_block_5
movk x0, #0x7ffa, lsl #48
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_Mod.ssa_block_5:
scvtf d0, x1
fmov x0, d0
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_Mod.ssa_block_3:
@@ -13257,28 +13310,29 @@ asm_handler_Mod_cold:
b .Lasm_Mod.ssa_block_4
1:
movz x0, #0x7ffa, lsl #48
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_Mod.ssa_block_4:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
movz x10, #0x8000, lsl #48
str x10, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_Mod.ssa_block_1:
- ldr w1, [x21, #12]
+ ldurh w1, [x21, #7]
ldr x1, [x27, x1, lsl #3]
- ldr w2, [x21, #4]
+ ldurh w2, [x21, #3]
sub sp, sp, #16
str w2, [sp, #8]
mov x3, x0
mov x4, x1
+ mov w5, #9
add x2, sp, #0
mov x0, x20
sub w1, w21, w26
@@ -13344,11 +13398,12 @@ asm_handler_StrictlyEquals_cold:
cmp w1, w9
b.eq .Lasm_StrictlyEquals.ssa_block_34
.Lasm_StrictlyEquals.ssa_block_1:
- ldr w1, [x21, #4]
+ ldurh w1, [x21, #3]
sub sp, sp, #16
str w1, [sp, #8]
mov x3, x0
mov x4, x2
+ mov w5, #9
add x2, sp, #0
mov x0, x20
sub w1, w21, w26
@@ -13421,11 +13476,12 @@ asm_handler_StrictlyInequals_cold:
cmp w1, w9
b.eq .Lasm_StrictlyInequals.ssa_block_34
.Lasm_StrictlyInequals.ssa_block_1:
- ldr w1, [x21, #4]
+ ldurh w1, [x21, #3]
sub sp, sp, #16
str w1, [sp, #8]
mov x3, x0
mov x4, x2
+ mov w5, #9
add x2, sp, #0
mov x0, x20
sub w1, w21, w26
@@ -13492,11 +13548,11 @@ asm_handler_GetCalleeAndThisFromEnvironment_cold:
tbnz x0, #32, 1f
b .Lasm_GetCalleeAndThisFromEnvironment.values_exceptional_outputs_3
1:
- ldr w12, [x21, #4]
+ ldurh w12, [x21, #3]
ldr x11, [sp]
str x11, [x27, x12, lsl #3]
.Lasm_GetCalleeAndThisFromEnvironment.skip_output_value_4:
- ldr w12, [x21, #8]
+ ldurh w12, [x21, #5]
ldr x11, [sp, #8]
str x11, [x27, x12, lsl #3]
.Lasm_GetCalleeAndThisFromEnvironment.skip_output_value_5:
@@ -13547,11 +13603,11 @@ asm_handler_DynamicGetCalleeAndThisFromEnvironment_cold:
tbnz x0, #32, 1f
b .Lasm_DynamicGetCalleeAndThisFromEnvironment.values_exceptional_outputs_3
1:
- ldr w12, [x21, #4]
+ ldurh w12, [x21, #3]
ldr x11, [sp]
str x11, [x27, x12, lsl #3]
.Lasm_DynamicGetCalleeAndThisFromEnvironment.skip_output_value_4:
- ldr w12, [x21, #8]
+ ldurh w12, [x21, #5]
ldr x11, [sp, #8]
str x11, [x27, x12, lsl #3]
.Lasm_DynamicGetCalleeAndThisFromEnvironment.skip_output_value_5:
@@ -13608,11 +13664,12 @@ asm_handler_LooselyEquals_cold:
cmp w1, w9
b.eq .Lasm_LooselyEquals.ssa_block_36
.Lasm_LooselyEquals.ssa_block_1:
- ldr w1, [x21, #4]
+ ldurh w1, [x21, #3]
sub sp, sp, #16
str w1, [sp, #8]
mov x3, x0
mov x4, x2
+ mov w5, #9
add x2, sp, #0
mov x0, x20
sub w1, w21, w26
@@ -13685,11 +13742,12 @@ asm_handler_LooselyInequals_cold:
cmp w1, w9
b.eq .Lasm_LooselyInequals.ssa_block_36
.Lasm_LooselyInequals.ssa_block_1:
- ldr w1, [x21, #4]
+ ldurh w1, [x21, #3]
sub sp, sp, #16
str w1, [sp, #8]
mov x3, x0
mov x4, x2
+ mov w5, #9
add x2, sp, #0
mov x0, x20
sub w1, w21, w26
@@ -13748,7 +13806,7 @@ asm_handler_UnaryMinus_cold:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #5]
ldr x10, [x27, x9, lsl #3]
.Lasm_UnaryMinus.scalar_value_ready_0:
mov x3, x10
@@ -13762,7 +13820,7 @@ asm_handler_UnaryMinus_cold:
tbnz x0, #32, 1f
b .Lasm_UnaryMinus.scalar_result_done_1
1:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -13790,10 +13848,10 @@ asm_handler_UnaryMinus_cold:
br x10
.Lasm_UnaryMinus.ssa_block_4:
eor x0, x0, #0x8000000000000000
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #7]
+ add x21, x21, #7
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_UnaryMinus.ssa_block_2:
@@ -13801,18 +13859,18 @@ asm_handler_UnaryMinus_cold:
neg x0, x0
scvtf d0, x0
fmov x0, d0
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #7]
+ add x21, x21, #7
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_UnaryMinus.ssa_block_1:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
movz x10, #0x8000, lsl #48
str x10, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #7]
+ add x21, x21, #7
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_UnaryMinus_cold_end:
@@ -13826,10 +13884,10 @@ asm_handler_PostfixDecrement_cold:
fmov d1, x0
fsub d0, d0, d1
fmov x0, d0
- ldr w1, [x21, #8]
+ ldurh w1, [x21, #5]
str x0, [x27, x1, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #7]
+ add x21, x21, #7
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_PostfixDecrement.ssa_block_2:
@@ -13837,7 +13895,7 @@ asm_handler_PostfixDecrement_cold:
sub w1, w21, w26
str w1, [x28, #64]
sub sp, sp, #16
- ldr w12, [x21, #8]
+ ldurh w12, [x21, #5]
ldr x11, [x27, x12, lsl #3]
.Lasm_PostfixDecrement.value_ready_1:
mov x4, x11
@@ -13852,11 +13910,11 @@ asm_handler_PostfixDecrement_cold:
tbnz x0, #32, 1f
b .Lasm_PostfixDecrement.values_exceptional_outputs_3
1:
- ldr w12, [x21, #4]
+ ldurh w12, [x21, #3]
ldr x11, [sp]
str x11, [x27, x12, lsl #3]
.Lasm_PostfixDecrement.skip_output_value_4:
- ldr w12, [x21, #8]
+ ldurh w12, [x21, #5]
ldr x11, [sp, #8]
str x11, [x27, x12, lsl #3]
.Lasm_PostfixDecrement.skip_output_value_5:
@@ -13869,7 +13927,7 @@ asm_handler_PostfixDecrement_cold:
ldr x9, [x20]
cmp x9, x28
b.ne .Lasm_PostfixDecrement.values_restore_stack_2
- ldr w12, [x21, #8]
+ ldurh w12, [x21, #5]
ldr x11, [sp, #8]
str x11, [x27, x12, lsl #3]
.Lasm_PostfixDecrement.skip_exceptional_output_6:
@@ -13899,7 +13957,7 @@ asm_handler_PostfixDecrement_cold_end:
asm_handler_ToInt32_cold:
// Cold paths for ToInt32
.Lasm_ToInt32.ssa_block_2:
- ldr w0, [x21, #8]
+ ldurh w0, [x21, #5]
ldr x0, [x27, x0, lsl #3]
lsr x1, x0, #48
cmp x1, x22
@@ -13919,7 +13977,7 @@ asm_handler_ToInt32_cold:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #5]
ldr x10, [x27, x9, lsl #3]
.Lasm_ToInt32.scalar_value_ready_0:
mov x3, x10
@@ -13933,7 +13991,7 @@ asm_handler_ToInt32_cold:
tbnz x0, #32, 1f
b .Lasm_ToInt32.scalar_result_done_1
1:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -13963,10 +14021,10 @@ asm_handler_ToInt32_cold:
sxtw x0, w0
.Lasm_ToInt32.ssa_block_6:
movk x0, #0x7ffa, lsl #48
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #7]
+ add x21, x21, #7
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_ToInt32_cold_end:
@@ -13995,15 +14053,15 @@ asm_handler_PutByValue_cold:
b .Lasm_PutByValue.ssa_block_46
.Lasm_PutByValue.ssa_block_6:
sub sp, sp, #32
- ldr w12, [x21, #4]
+ ldurh w12, [x21, #3]
ldr x11, [x27, x12, lsl #3]
.Lasm_PutByValue.value_ready_5:
str x11, [sp]
- ldr w12, [x21, #8]
+ ldurh w12, [x21, #5]
ldr x11, [x27, x12, lsl #3]
.Lasm_PutByValue.value_ready_6:
str x11, [sp, #8]
- ldr w12, [x21, #12]
+ ldurh w12, [x21, #7]
ldr x11, [x27, x12, lsl #3]
.Lasm_PutByValue.value_ready_7:
str x11, [sp, #16]
@@ -14016,23 +14074,23 @@ asm_handler_PutByValue_cold:
add sp, sp, #32
.Lasm_PutByValue.values_call_done_4:
cbnz w0, .Lasm_PutByValue.ssa_block_1
- ldrb w9, [x21, #32]
- add x21, x21, #32
+ ldrb w9, [x21, #17]
+ add x21, x21, #17
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_PutByValue.ssa_block_2:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
ldr x10, [x27, x9, lsl #3]
.Lasm_PutByValue.scalar_value_ready_9:
mov x3, x10
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #5]
ldr x10, [x27, x9, lsl #3]
.Lasm_PutByValue.scalar_value_ready_10:
mov x4, x10
- ldr w9, [x21, #12]
+ ldurh w9, [x21, #7]
ldr x10, [x27, x9, lsl #3]
.Lasm_PutByValue.scalar_value_ready_11:
mov x5, x10
@@ -14074,15 +14132,15 @@ asm_handler_PutByValue_cold:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
ldr x10, [x27, x9, lsl #3]
.Lasm_PutByValue.scalar_value_ready_14:
mov x3, x10
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #5]
ldr x10, [x27, x9, lsl #3]
.Lasm_PutByValue.scalar_value_ready_15:
mov x4, x10
- ldr w9, [x21, #12]
+ ldurh w9, [x21, #7]
ldr x10, [x27, x9, lsl #3]
.Lasm_PutByValue.scalar_value_ready_16:
mov x5, x10
@@ -14122,15 +14180,15 @@ asm_handler_PutByValue_cold:
br x10
.Lasm_PutByValue.ssa_block_3:
sub sp, sp, #32
- ldr w12, [x21, #4]
+ ldurh w12, [x21, #3]
ldr x11, [x27, x12, lsl #3]
.Lasm_PutByValue.value_ready_20:
str x11, [sp]
- ldr w12, [x21, #8]
+ ldurh w12, [x21, #5]
ldr x11, [x27, x12, lsl #3]
.Lasm_PutByValue.value_ready_21:
str x11, [sp, #8]
- ldr w12, [x21, #12]
+ ldurh w12, [x21, #7]
ldr x11, [x27, x12, lsl #3]
.Lasm_PutByValue.value_ready_22:
str x11, [sp, #16]
@@ -14143,21 +14201,21 @@ asm_handler_PutByValue_cold:
add sp, sp, #32
.Lasm_PutByValue.values_call_done_19:
cbnz w0, .Lasm_PutByValue.ssa_block_1
- ldrb w9, [x21, #32]
- add x21, x21, #32
+ ldrb w9, [x21, #17]
+ add x21, x21, #17
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_PutByValue.ssa_block_5:
sub sp, sp, #32
- ldr w12, [x21, #4]
+ ldurh w12, [x21, #3]
ldr x11, [x27, x12, lsl #3]
.Lasm_PutByValue.value_ready_25:
str x11, [sp]
- ldr w12, [x21, #8]
+ ldurh w12, [x21, #5]
ldr x11, [x27, x12, lsl #3]
.Lasm_PutByValue.value_ready_26:
str x11, [sp, #8]
- ldr w12, [x21, #12]
+ ldurh w12, [x21, #7]
ldr x11, [x27, x12, lsl #3]
.Lasm_PutByValue.value_ready_27:
str x11, [sp, #16]
@@ -14170,8 +14228,8 @@ asm_handler_PutByValue_cold:
add sp, sp, #32
.Lasm_PutByValue.values_call_done_24:
cbnz w0, .Lasm_PutByValue.ssa_block_1
- ldrb w9, [x21, #32]
- add x21, x21, #32
+ ldrb w9, [x21, #17]
+ add x21, x21, #17
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_PutByValue_cold_end:
@@ -14223,10 +14281,10 @@ asm_handler_GetById_cold:
movz x1, #0xfff9, lsl #48
orr x0, x0, x1
.Lasm_GetById.ssa_block_51:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #24]
- add x21, x21, #24
+ ldrb w9, [x21, #13]
+ add x21, x21, #13
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_GetById.ssa_block_25:
@@ -14291,7 +14349,7 @@ asm_handler_GetById_cold:
strb wzr, [x0, #124]
strb wzr, [x0, #125]
sub w1, w21, w26
- ldp w2, w3, [x21, #4]
+ ldurh w2, [x21, #3]
str w1, [x28, #64]
str x28, [x0, #96]
add x1, x1, #1
@@ -14307,34 +14365,34 @@ asm_handler_GetById_cold:
blr x9
and x1, x1, #0xff
cmp x1, #2
- b.hs .Lasm_GetById.assert_predicate_failure_268
+ b.hs .Lasm_GetById.assert_predicate_failure_267
cbnz x1, .Lasm_GetById.ssa_block_6
ldr x1, [x28, #96]
- cbz x1, .Lasm_GetById.assert_predicate_failure_277
+ cbz x1, .Lasm_GetById.assert_predicate_failure_276
mov x2, x20
str x1, [x2]
str x28, [x2, #16]
mov x28, x1
add x27, x28, #128
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #24]
- add x21, x21, #24
+ ldrb w9, [x21, #13]
+ add x21, x21, #13
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_GetById.ssa_block_5:
movz x0, #0x7ffe, lsl #48
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #24]
- add x21, x21, #24
+ ldrb w9, [x21, #13]
+ add x21, x21, #13
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_GetById.ssa_block_4:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #5]
ldr x10, [x27, x9, lsl #3]
.Lasm_GetById.scalar_value_ready_11:
mov x3, x10
@@ -14348,7 +14406,7 @@ asm_handler_GetById_cold:
tbnz x0, #32, 1f
b .Lasm_GetById.scalar_result_done_12
1:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -14398,7 +14456,7 @@ asm_handler_GetById_cold:
b .Lasm_GetById.ssa_block_24
.Lasm_GetById.ssa_block_3:
sub sp, sp, #16
- ldr w12, [x21, #8]
+ ldurh w12, [x21, #5]
ldr x11, [x27, x12, lsl #3]
.Lasm_GetById.value_ready_15:
str x11, [sp, #8]
@@ -14411,7 +14469,7 @@ asm_handler_GetById_cold:
cmp x9, x28
b.ne .Lasm_GetById.values_restore_stack_16
cbnz x0, .Lasm_GetById.values_exceptional_outputs_17
- ldr w12, [x21, #4]
+ ldurh w12, [x21, #3]
ldr x11, [sp]
str x11, [x27, x12, lsl #3]
.Lasm_GetById.skip_output_value_18:
@@ -14465,8 +14523,8 @@ asm_handler_GetById_cold:
ldr x0, [x28, #88]
ldr x1, [x0, #152]
cbz x1, .Lasm_GetById.assert_failure_21
- ldr w2, [x21, #20]
- ldr w0, [x21, #8]
+ ldurh w2, [x21, #11]
+ ldurh w0, [x21, #5]
ldr x0, [x27, x0, lsl #3]
lsl x2, x2, #3
adds x1, x1, x2
@@ -14474,15 +14532,15 @@ asm_handler_GetById_cold:
movz x9, #0x7ffb, lsl #48
cmp x0, x9
b.eq .Lasm_GetById.ssa_block_2
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #24]
- add x21, x21, #24
+ ldrb w9, [x21, #13]
+ add x21, x21, #13
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_GetById.ssa_block_14:
sub sp, sp, #16
- ldr w12, [x21, #8]
+ ldurh w12, [x21, #5]
ldr x11, [x27, x12, lsl #3]
.Lasm_GetById.value_ready_23:
str x11, [sp, #8]
@@ -14495,7 +14553,7 @@ asm_handler_GetById_cold:
cmp x9, x28
b.ne .Lasm_GetById.values_restore_stack_24
cbnz x0, .Lasm_GetById.values_exceptional_outputs_25
- ldr w12, [x21, #4]
+ ldurh w12, [x21, #3]
ldr x11, [sp]
str x11, [x27, x12, lsl #3]
.Lasm_GetById.skip_output_value_26:
@@ -14505,15 +14563,15 @@ asm_handler_GetById_cold:
add sp, sp, #16
.Lasm_GetById.values_call_done_22:
cbnz w0, .Lasm_GetById.ssa_block_2
- ldrb w9, [x21, #24]
- add x21, x21, #24
+ ldrb w9, [x21, #13]
+ add x21, x21, #13
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_GetById.ssa_block_2:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #5]
ldr x10, [x27, x9, lsl #3]
.Lasm_GetById.scalar_value_ready_27:
mov x3, x10
@@ -14527,7 +14585,7 @@ asm_handler_GetById_cold:
tbnz x0, #32, 1f
b .Lasm_GetById.scalar_result_done_28
1:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -14561,11 +14619,11 @@ asm_handler_GetByIdWithThis:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #5]
ldr x10, [x27, x9, lsl #3]
.Lasm_GetByIdWithThis.scalar_value_ready_0:
mov x3, x10
- ldr w9, [x21, #16]
+ ldurh w9, [x21, #9]
ldr x10, [x27, x9, lsl #3]
.Lasm_GetByIdWithThis.scalar_value_ready_1:
mov x4, x10
@@ -14575,7 +14633,7 @@ asm_handler_GetByIdWithThis:
bl CSYM(asm_slow_path_get_by_id_with_this)
tbnz x0, #63, .Lasm_GetByIdWithThis.scalar_result_done_2
tbz x0, #32, .Lasm_GetByIdWithThis.scalar_result_done_2
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -14607,11 +14665,11 @@ asm_handler_PutById_cold:
// Cold paths for PutById
.Lasm_PutById.ssa_block_2:
sub sp, sp, #16
- ldr w12, [x21, #4]
+ ldurh w12, [x21, #1]
ldr x11, [x27, x12, lsl #3]
.Lasm_PutById.value_ready_4:
str x11, [sp]
- ldr w12, [x21, #12]
+ ldurh w12, [x21, #5]
ldr x11, [x27, x12, lsl #3]
.Lasm_PutById.value_ready_5:
str x11, [sp, #8]
@@ -14624,19 +14682,19 @@ asm_handler_PutById_cold:
add sp, sp, #16
.Lasm_PutById.values_call_done_3:
cbnz w0, .Lasm_PutById.ssa_block_1
- ldrb w9, [x21, #32]
- add x21, x21, #32
+ ldrb w9, [x21, #15]
+ add x21, x21, #15
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_PutById.ssa_block_1:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
ldr x10, [x27, x9, lsl #3]
.Lasm_PutById.scalar_value_ready_7:
mov x3, x10
- ldr w9, [x21, #12]
+ ldurh w9, [x21, #5]
ldr x10, [x27, x9, lsl #3]
.Lasm_PutById.scalar_value_ready_8:
mov x4, x10
@@ -14680,15 +14738,15 @@ asm_handler_PutByIdWithThis:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
ldr x10, [x27, x9, lsl #3]
.Lasm_PutByIdWithThis.scalar_value_ready_0:
mov x3, x10
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #3]
ldr x10, [x27, x9, lsl #3]
.Lasm_PutByIdWithThis.scalar_value_ready_1:
mov x4, x10
- ldr w9, [x21, #16]
+ ldurh w9, [x21, #7]
ldr x10, [x27, x9, lsl #3]
.Lasm_PutByIdWithThis.scalar_value_ready_2:
mov x5, x10
@@ -14768,28 +14826,28 @@ asm_handler_GetByValue_cold:
mov w10, #65532
cmp x9, x10
b.eq .Lasm_GetByValue.ssa_block_2
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #5]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #32]
- add x21, x21, #32
+ ldrb w9, [x21, #15]
+ add x21, x21, #15
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_GetByValue.ssa_block_12:
scvtf d0, x0
fmov x0, d0
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #5]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #32]
- add x21, x21, #32
+ ldrb w9, [x21, #15]
+ add x21, x21, #15
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_GetByValue.ssa_block_4:
sub sp, sp, #32
- ldr w12, [x21, #12]
+ ldurh w12, [x21, #7]
ldr x11, [x27, x12, lsl #3]
.Lasm_GetByValue.value_ready_10:
str x11, [sp, #8]
- ldr w12, [x21, #16]
+ ldurh w12, [x21, #9]
ldr x11, [x27, x12, lsl #3]
.Lasm_GetByValue.value_ready_11:
str x11, [sp, #16]
@@ -14802,7 +14860,7 @@ asm_handler_GetByValue_cold:
cmp x9, x28
b.ne .Lasm_GetByValue.values_restore_stack_12
cbnz x0, .Lasm_GetByValue.values_exceptional_outputs_13
- ldr w12, [x21, #8]
+ ldurh w12, [x21, #5]
ldr x11, [sp]
str x11, [x27, x12, lsl #3]
.Lasm_GetByValue.skip_output_value_14:
@@ -14812,19 +14870,19 @@ asm_handler_GetByValue_cold:
add sp, sp, #32
.Lasm_GetByValue.values_call_done_9:
cbnz w0, .Lasm_GetByValue.ssa_block_1
- ldrb w9, [x21, #32]
- add x21, x21, #32
+ ldrb w9, [x21, #15]
+ add x21, x21, #15
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_GetByValue.ssa_block_7:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #12]
+ ldurh w9, [x21, #7]
ldr x10, [x27, x9, lsl #3]
.Lasm_GetByValue.scalar_value_ready_15:
mov x3, x10
- ldr w9, [x21, #16]
+ ldurh w9, [x21, #9]
ldr x10, [x27, x9, lsl #3]
.Lasm_GetByValue.scalar_value_ready_16:
mov x4, x10
@@ -14838,7 +14896,7 @@ asm_handler_GetByValue_cold:
tbnz x0, #32, 1f
b .Lasm_GetByValue.scalar_result_done_17
1:
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #5]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -14865,7 +14923,7 @@ asm_handler_GetByValue_cold:
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_GetByValue.ssa_block_6:
- ldr w0, [x21, #16]
+ ldurh w0, [x21, #9]
ldr x0, [x27, x0, lsl #3]
lsr x9, x0, #48
mov w10, #65530
@@ -14875,11 +14933,11 @@ asm_handler_GetByValue_cold:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #12]
+ ldurh w9, [x21, #7]
ldr x10, [x27, x9, lsl #3]
.Lasm_GetByValue.scalar_value_ready_19:
mov x3, x10
- ldr w9, [x21, #16]
+ ldurh w9, [x21, #9]
ldr x10, [x27, x9, lsl #3]
.Lasm_GetByValue.scalar_value_ready_20:
mov x4, x10
@@ -14893,7 +14951,7 @@ asm_handler_GetByValue_cold:
tbnz x0, #32, 1f
b .Lasm_GetByValue.scalar_result_done_21
1:
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #5]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -14923,11 +14981,11 @@ asm_handler_GetByValue_cold:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #12]
+ ldurh w9, [x21, #7]
ldr x10, [x27, x9, lsl #3]
.Lasm_GetByValue.scalar_value_ready_23:
mov x3, x10
- ldr w9, [x21, #16]
+ ldurh w9, [x21, #9]
ldr x10, [x27, x9, lsl #3]
.Lasm_GetByValue.scalar_value_ready_24:
mov x4, x10
@@ -14941,7 +14999,7 @@ asm_handler_GetByValue_cold:
tbnz x0, #32, 1f
b .Lasm_GetByValue.scalar_result_done_25
1:
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #5]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -14969,11 +15027,11 @@ asm_handler_GetByValue_cold:
br x10
.Lasm_GetByValue.ssa_block_3:
sub sp, sp, #32
- ldr w12, [x21, #12]
+ ldurh w12, [x21, #7]
ldr x11, [x27, x12, lsl #3]
.Lasm_GetByValue.value_ready_28:
str x11, [sp, #8]
- ldr w12, [x21, #16]
+ ldurh w12, [x21, #9]
ldr x11, [x27, x12, lsl #3]
.Lasm_GetByValue.value_ready_29:
str x11, [sp, #16]
@@ -14986,7 +15044,7 @@ asm_handler_GetByValue_cold:
cmp x9, x28
b.ne .Lasm_GetByValue.values_restore_stack_30
cbnz x0, .Lasm_GetByValue.values_exceptional_outputs_31
- ldr w12, [x21, #8]
+ ldurh w12, [x21, #5]
ldr x11, [sp]
str x11, [x27, x12, lsl #3]
.Lasm_GetByValue.skip_output_value_32:
@@ -14996,8 +15054,8 @@ asm_handler_GetByValue_cold:
add sp, sp, #32
.Lasm_GetByValue.values_call_done_27:
cbnz w0, .Lasm_GetByValue.ssa_block_1
- ldrb w9, [x21, #32]
- add x21, x21, #32
+ ldrb w9, [x21, #15]
+ add x21, x21, #15
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_GetByValue.canon_nan_1:
@@ -15009,15 +15067,15 @@ asm_handler_GetByValueWithThis:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #5]
ldr x10, [x27, x9, lsl #3]
.Lasm_GetByValueWithThis.scalar_value_ready_0:
mov x3, x10
- ldr w9, [x21, #12]
+ ldurh w9, [x21, #7]
ldr x10, [x27, x9, lsl #3]
.Lasm_GetByValueWithThis.scalar_value_ready_1:
mov x4, x10
- ldr w9, [x21, #16]
+ ldurh w9, [x21, #9]
ldr x10, [x27, x9, lsl #3]
.Lasm_GetByValueWithThis.scalar_value_ready_2:
mov x5, x10
@@ -15027,7 +15085,7 @@ asm_handler_GetByValueWithThis:
bl CSYM(asm_slow_path_get_by_value_with_this)
tbnz x0, #63, .Lasm_GetByValueWithThis.scalar_result_done_3
tbz x0, #32, .Lasm_GetByValueWithThis.scalar_result_done_3
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -15060,19 +15118,19 @@ asm_handler_PutByValueWithThis:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
ldr x10, [x27, x9, lsl #3]
.Lasm_PutByValueWithThis.scalar_value_ready_0:
mov x3, x10
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #3]
ldr x10, [x27, x9, lsl #3]
.Lasm_PutByValueWithThis.scalar_value_ready_1:
mov x4, x10
- ldr w9, [x21, #12]
+ ldurh w9, [x21, #5]
ldr x10, [x27, x9, lsl #3]
.Lasm_PutByValueWithThis.scalar_value_ready_2:
mov x5, x10
- ldr w9, [x21, #16]
+ ldurh w9, [x21, #7]
ldr x10, [x27, x9, lsl #3]
.Lasm_PutByValueWithThis.scalar_value_ready_3:
mov x6, x10
@@ -15113,11 +15171,11 @@ asm_handler_PutBySpread:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
ldr x10, [x27, x9, lsl #3]
.Lasm_PutBySpread.scalar_value_ready_0:
mov x3, x10
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #3]
ldr x10, [x27, x9, lsl #3]
.Lasm_PutBySpread.scalar_value_ready_1:
mov x4, x10
@@ -15158,17 +15216,17 @@ asm_handler_GetLength_cold:
.Lasm_GetLength.ssa_block_3:
scvtf d0, x0
fmov x0, d0
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #5]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #24]
- add x21, x21, #24
+ ldrb w9, [x21, #13]
+ add x21, x21, #13
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_GetLength.ssa_block_1:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #12]
+ ldurh w9, [x21, #7]
ldr x10, [x27, x9, lsl #3]
.Lasm_GetLength.scalar_value_ready_3:
mov x3, x10
@@ -15182,7 +15240,7 @@ asm_handler_GetLength_cold:
tbnz x0, #32, 1f
b .Lasm_GetLength.scalar_result_done_4
1:
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #5]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -15214,11 +15272,11 @@ asm_handler_GetLengthWithThis:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #5]
ldr x10, [x27, x9, lsl #3]
.Lasm_GetLengthWithThis.scalar_value_ready_0:
mov x3, x10
- ldr w9, [x21, #12]
+ ldurh w9, [x21, #7]
ldr x10, [x27, x9, lsl #3]
.Lasm_GetLengthWithThis.scalar_value_ready_1:
mov x4, x10
@@ -15228,7 +15286,7 @@ asm_handler_GetLengthWithThis:
bl CSYM(asm_slow_path_get_length_with_this)
tbnz x0, #63, .Lasm_GetLengthWithThis.scalar_result_done_2
tbz x0, #32, .Lasm_GetLengthWithThis.scalar_result_done_2
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -15261,7 +15319,7 @@ asm_handler_GetMethod:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #3]
ldr x10, [x27, x9, lsl #3]
.Lasm_GetMethod.scalar_value_ready_0:
mov x3, x10
@@ -15271,7 +15329,7 @@ asm_handler_GetMethod:
bl CSYM(asm_slow_path_get_method)
tbnz x0, #63, .Lasm_GetMethod.scalar_result_done_1
tbz x0, #32, .Lasm_GetMethod.scalar_result_done_1
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -15305,7 +15363,7 @@ asm_handler_GetIterator:
sub w1, w21, w26
str w1, [x28, #64]
sub sp, sp, #32
- ldr w12, [x21, #16]
+ ldurh w12, [x21, #7]
ldr x11, [x27, x12, lsl #3]
.Lasm_GetIterator.value_ready_1:
mov x4, x11
@@ -15316,15 +15374,15 @@ asm_handler_GetIterator:
bl CSYM(asm_slow_path_get_iterator)
tbnz x0, #63, .Lasm_GetIterator.values_exceptional_outputs_3
tbz x0, #32, .Lasm_GetIterator.values_exceptional_outputs_3
- ldr w12, [x21, #4]
+ ldurh w12, [x21, #1]
ldr x11, [sp]
str x11, [x27, x12, lsl #3]
.Lasm_GetIterator.skip_output_value_4:
- ldr w12, [x21, #8]
+ ldurh w12, [x21, #3]
ldr x11, [sp, #8]
str x11, [x27, x12, lsl #3]
.Lasm_GetIterator.skip_output_value_5:
- ldr w12, [x21, #12]
+ ldurh w12, [x21, #5]
ldr x11, [sp, #16]
str x11, [x27, x12, lsl #3]
.Lasm_GetIterator.skip_output_value_6:
@@ -15374,7 +15432,7 @@ asm_handler_GetGlobal_cold:
tbnz x0, #32, 1f
b .Lasm_GetGlobal.scalar_result_done_4
1:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -15417,7 +15475,7 @@ asm_handler_ResolveGlobalBinding_cold:
tbnz x0, #32, 1f
b .Lasm_ResolveGlobalBinding.scalar_result_done_2
1:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -15450,7 +15508,7 @@ asm_handler_SetGlobal_cold:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #3]
ldr x10, [x27, x9, lsl #3]
.Lasm_SetGlobal.scalar_value_ready_7:
mov x3, x10
@@ -15500,10 +15558,10 @@ asm_handler_Call_cold:
1:
mov x0, x20
ldr x28, [x0]
- cbz x28, .Lasm_Call.assert_predicate_failure_142
+ cbz x28, .Lasm_Call.assert_predicate_failure_143
add x27, x28, #128
ldr x0, [x28, #88]
- cbz x0, .Lasm_Call.assert_predicate_failure_148
+ cbz x0, .Lasm_Call.assert_predicate_failure_149
ldr x26, [x0, #40]
cbz x26, .Lasm_Call.assert_failure_31
ldr w25, [x28, #64]
@@ -15516,7 +15574,7 @@ asm_handler_Call_cold:
sub w1, w21, w26
str w1, [x28, #64]
add x9, sp, #0
- ldr w10, [x21, #24]
+ ldur w10, [x21, #15]
lsl x10, x10, #3
add x10, x10, #55
and x10, x10, #0xfffffffffffffff0
@@ -15541,22 +15599,22 @@ asm_handler_Call_cold:
.Lasm_Call.values_allocated_35:
add sp, x14, #0
str x9, [sp]
- ldr w12, [x21, #16]
+ ldurh w12, [x21, #11]
ldr x11, [x27, x12, lsl #3]
.Lasm_Call.value_ready_36:
str x11, [sp, #24]
- ldr w12, [x21, #20]
+ ldurh w12, [x21, #13]
ldr x11, [x27, x12, lsl #3]
.Lasm_Call.value_ready_37:
str x11, [sp, #32]
mov w9, #0
- ldr w10, [x21, #24]
+ ldur w10, [x21, #15]
add x14, sp, #40
- add x3, x21, #32
+ add x3, x21, #21
.Lasm_Call.array_value_next_38:
cmp x9, x10
b.hs .Lasm_Call.array_values_end_40
- ldr w12, [x3, x9, lsl #2]
+ ldrh w12, [x3, x9, lsl #1]
ldr x11, [x27, x12, lsl #3]
.Lasm_Call.array_value_ready_39:
str x11, [x14, x9, lsl #3]
@@ -15574,7 +15632,7 @@ asm_handler_Call_cold:
tbnz x0, #32, 1f
b .Lasm_Call.values_exceptional_outputs_42
1:
- ldr w12, [x21, #12]
+ ldurh w12, [x21, #9]
ldr x11, [sp, #16]
str x11, [x27, x12, lsl #3]
.Lasm_Call.skip_output_value_43:
@@ -15617,7 +15675,7 @@ asm_handler_GetObjectPropertyIterator:
sub w1, w21, w26
str w1, [x28, #64]
sub sp, sp, #32
- ldr w12, [x21, #12]
+ ldurh w12, [x21, #5]
ldr x11, [x27, x12, lsl #3]
.Lasm_GetObjectPropertyIterator.value_ready_1:
mov x4, x11
@@ -15628,11 +15686,11 @@ asm_handler_GetObjectPropertyIterator:
bl CSYM(asm_slow_path_get_object_property_iterator)
tbnz x0, #63, .Lasm_GetObjectPropertyIterator.values_exceptional_outputs_3
tbz x0, #32, .Lasm_GetObjectPropertyIterator.values_exceptional_outputs_3
- ldr w12, [x21, #4]
+ ldurh w12, [x21, #1]
ldr x11, [sp]
str x11, [x27, x12, lsl #3]
.Lasm_GetObjectPropertyIterator.skip_output_value_4:
- ldr w12, [x21, #8]
+ ldurh w12, [x21, #3]
ldr x11, [sp, #8]
str x11, [x27, x12, lsl #3]
.Lasm_GetObjectPropertyIterator.skip_output_value_5:
@@ -15673,15 +15731,15 @@ asm_handler_ObjectPropertyIteratorNext_cold:
sub w1, w21, w26
str w1, [x28, #64]
sub sp, sp, #48
- ldr w12, [x21, #12]
+ ldurh w12, [x21, #5]
ldr x11, [x27, x12, lsl #3]
.Lasm_ObjectPropertyIteratorNext.value_ready_2:
mov x4, x11
- ldr w12, [x21, #16]
+ ldurh w12, [x21, #7]
ldr x11, [x27, x12, lsl #3]
.Lasm_ObjectPropertyIteratorNext.value_ready_3:
mov x5, x11
- ldr w12, [x21, #20]
+ ldurh w12, [x21, #9]
ldr x11, [x27, x12, lsl #3]
.Lasm_ObjectPropertyIteratorNext.value_ready_4:
mov x6, x11
@@ -15696,15 +15754,15 @@ asm_handler_ObjectPropertyIteratorNext_cold:
tbnz x0, #32, 1f
b .Lasm_ObjectPropertyIteratorNext.values_exceptional_outputs_6
1:
- ldr w12, [x21, #4]
+ ldurh w12, [x21, #1]
ldr x11, [sp]
str x11, [x27, x12, lsl #3]
.Lasm_ObjectPropertyIteratorNext.skip_output_value_7:
- ldr w12, [x21, #8]
+ ldurh w12, [x21, #3]
ldr x11, [sp, #8]
str x11, [x27, x12, lsl #3]
.Lasm_ObjectPropertyIteratorNext.skip_output_value_8:
- ldr w12, [x21, #20]
+ ldurh w12, [x21, #9]
ldr x11, [sp, #32]
str x11, [x27, x12, lsl #3]
.Lasm_ObjectPropertyIteratorNext.skip_output_value_9:
@@ -15717,7 +15775,7 @@ asm_handler_ObjectPropertyIteratorNext_cold:
ldr x9, [x20]
cmp x9, x28
b.ne .Lasm_ObjectPropertyIteratorNext.values_restore_stack_5
- ldr w12, [x21, #20]
+ ldurh w12, [x21, #9]
ldr x11, [sp, #32]
str x11, [x27, x12, lsl #3]
.Lasm_ObjectPropertyIteratorNext.skip_exceptional_output_10:
@@ -15750,19 +15808,19 @@ asm_handler_IteratorClose_cold:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
ldr x10, [x27, x9, lsl #3]
.Lasm_IteratorClose.scalar_value_ready_1:
mov x3, x10
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #3]
ldr x10, [x27, x9, lsl #3]
.Lasm_IteratorClose.scalar_value_ready_2:
mov x4, x10
- ldr w9, [x21, #12]
+ ldurh w9, [x21, #5]
ldr x10, [x27, x9, lsl #3]
.Lasm_IteratorClose.scalar_value_ready_3:
mov x5, x10
- ldr w9, [x21, #20]
+ ldurh w9, [x21, #11]
ldr x10, [x27, x9, lsl #3]
.Lasm_IteratorClose.scalar_value_ready_4:
mov x6, x10
@@ -15807,15 +15865,15 @@ asm_handler_IteratorNext:
sub w1, w21, w26
str w1, [x28, #64]
sub sp, sp, #32
- ldr w12, [x21, #8]
+ ldurh w12, [x21, #3]
ldr x11, [x27, x12, lsl #3]
.Lasm_IteratorNext.value_ready_1:
mov x4, x11
- ldr w12, [x21, #12]
+ ldurh w12, [x21, #5]
ldr x11, [x27, x12, lsl #3]
.Lasm_IteratorNext.value_ready_2:
mov x5, x11
- ldr w12, [x21, #16]
+ ldurh w12, [x21, #7]
ldr x11, [x27, x12, lsl #3]
.Lasm_IteratorNext.value_ready_3:
mov x6, x11
@@ -15826,11 +15884,11 @@ asm_handler_IteratorNext:
bl CSYM(asm_slow_path_iterator_next)
tbnz x0, #63, .Lasm_IteratorNext.values_exceptional_outputs_5
tbz x0, #32, .Lasm_IteratorNext.values_exceptional_outputs_5
- ldr w12, [x21, #4]
+ ldurh w12, [x21, #1]
ldr x11, [sp]
str x11, [x27, x12, lsl #3]
.Lasm_IteratorNext.skip_output_value_6:
- ldr w12, [x21, #16]
+ ldurh w12, [x21, #7]
ldr x11, [sp, #24]
str x11, [x27, x12, lsl #3]
.Lasm_IteratorNext.skip_output_value_7:
@@ -15843,7 +15901,7 @@ asm_handler_IteratorNext:
ldr x9, [x20]
cmp x9, x28
b.ne .Lasm_IteratorNext.values_restore_stack_4
- ldr w12, [x21, #16]
+ ldurh w12, [x21, #7]
ldr x11, [sp, #24]
str x11, [x27, x12, lsl #3]
.Lasm_IteratorNext.skip_exceptional_output_8:
@@ -15877,15 +15935,15 @@ asm_handler_IteratorStep:
sub w1, w21, w26
str w1, [x28, #64]
sub sp, sp, #32
- ldr w12, [x21, #8]
+ ldurh w12, [x21, #3]
ldr x11, [x27, x12, lsl #3]
.Lasm_IteratorStep.value_ready_1:
mov x4, x11
- ldr w12, [x21, #12]
+ ldurh w12, [x21, #5]
ldr x11, [x27, x12, lsl #3]
.Lasm_IteratorStep.value_ready_2:
mov x5, x11
- ldr w12, [x21, #16]
+ ldurh w12, [x21, #7]
ldr x11, [x27, x12, lsl #3]
.Lasm_IteratorStep.value_ready_3:
mov x6, x11
@@ -15896,15 +15954,15 @@ asm_handler_IteratorStep:
bl CSYM(asm_slow_path_iterator_step)
tbnz x0, #63, .Lasm_IteratorStep.values_exceptional_outputs_5
tbz x0, #32, .Lasm_IteratorStep.values_exceptional_outputs_5
- ldr w12, [x21, #4]
+ ldurh w12, [x21, #1]
ldr x11, [sp]
str x11, [x27, x12, lsl #3]
.Lasm_IteratorStep.skip_output_value_6:
- ldr w12, [x21, #8]
+ ldurh w12, [x21, #3]
ldr x11, [sp, #8]
str x11, [x27, x12, lsl #3]
.Lasm_IteratorStep.skip_output_value_7:
- ldr w12, [x21, #16]
+ ldurh w12, [x21, #7]
ldr x11, [sp, #24]
str x11, [x27, x12, lsl #3]
.Lasm_IteratorStep.skip_output_value_8:
@@ -15917,11 +15975,11 @@ asm_handler_IteratorStep:
ldr x9, [x20]
cmp x9, x28
b.ne .Lasm_IteratorStep.values_restore_stack_4
- ldr w12, [x21, #8]
+ ldurh w12, [x21, #3]
ldr x11, [sp, #8]
str x11, [x27, x12, lsl #3]
.Lasm_IteratorStep.skip_exceptional_output_9:
- ldr w12, [x21, #16]
+ ldurh w12, [x21, #7]
ldr x11, [sp, #24]
str x11, [x27, x12, lsl #3]
.Lasm_IteratorStep.skip_exceptional_output_10:
@@ -15956,15 +16014,15 @@ asm_handler_IteratorNextUnpack_cold:
sub w1, w21, w26
str w1, [x28, #64]
sub sp, sp, #48
- ldr w12, [x21, #12]
+ ldurh w12, [x21, #5]
ldr x11, [x27, x12, lsl #3]
.Lasm_IteratorNextUnpack.value_ready_1:
mov x4, x11
- ldr w12, [x21, #16]
+ ldurh w12, [x21, #7]
ldr x11, [x27, x12, lsl #3]
.Lasm_IteratorNextUnpack.value_ready_2:
mov x5, x11
- ldr w12, [x21, #20]
+ ldurh w12, [x21, #9]
ldr x11, [x27, x12, lsl #3]
.Lasm_IteratorNextUnpack.value_ready_3:
mov x6, x11
@@ -15979,19 +16037,19 @@ asm_handler_IteratorNextUnpack_cold:
tbnz x0, #32, 1f
b .Lasm_IteratorNextUnpack.values_exceptional_outputs_5
1:
- ldr w12, [x21, #4]
+ ldurh w12, [x21, #1]
ldr x11, [sp]
str x11, [x27, x12, lsl #3]
.Lasm_IteratorNextUnpack.skip_output_value_6:
- ldr w12, [x21, #8]
+ ldurh w12, [x21, #3]
ldr x11, [sp, #8]
str x11, [x27, x12, lsl #3]
.Lasm_IteratorNextUnpack.skip_output_value_7:
- ldr w12, [x21, #12]
+ ldurh w12, [x21, #5]
ldr x11, [sp, #16]
str x11, [x27, x12, lsl #3]
.Lasm_IteratorNextUnpack.skip_output_value_8:
- ldr w12, [x21, #20]
+ ldurh w12, [x21, #9]
ldr x11, [sp, #32]
str x11, [x27, x12, lsl #3]
.Lasm_IteratorNextUnpack.skip_output_value_9:
@@ -16004,11 +16062,11 @@ asm_handler_IteratorNextUnpack_cold:
ldr x9, [x20]
cmp x9, x28
b.ne .Lasm_IteratorNextUnpack.values_restore_stack_4
- ldr w12, [x21, #12]
+ ldurh w12, [x21, #5]
ldr x11, [sp, #16]
str x11, [x27, x12, lsl #3]
.Lasm_IteratorNextUnpack.skip_exceptional_output_10:
- ldr w12, [x21, #20]
+ ldurh w12, [x21, #9]
ldr x11, [sp, #32]
str x11, [x27, x12, lsl #3]
.Lasm_IteratorNextUnpack.skip_exceptional_output_11:
@@ -16041,15 +16099,15 @@ asm_handler_IteratorToArray:
sub w1, w21, w26
str w1, [x28, #64]
sub sp, sp, #32
- ldr w12, [x21, #8]
+ ldurh w12, [x21, #3]
ldr x11, [x27, x12, lsl #3]
.Lasm_IteratorToArray.value_ready_1:
mov x4, x11
- ldr w12, [x21, #12]
+ ldurh w12, [x21, #5]
ldr x11, [x27, x12, lsl #3]
.Lasm_IteratorToArray.value_ready_2:
mov x5, x11
- ldr w12, [x21, #16]
+ ldurh w12, [x21, #7]
ldr x11, [x27, x12, lsl #3]
.Lasm_IteratorToArray.value_ready_3:
mov x6, x11
@@ -16060,11 +16118,11 @@ asm_handler_IteratorToArray:
bl CSYM(asm_slow_path_iterator_to_array)
tbnz x0, #63, .Lasm_IteratorToArray.values_exceptional_outputs_5
tbz x0, #32, .Lasm_IteratorToArray.values_exceptional_outputs_5
- ldr w12, [x21, #4]
+ ldurh w12, [x21, #1]
ldr x11, [sp]
str x11, [x27, x12, lsl #3]
.Lasm_IteratorToArray.skip_output_value_6:
- ldr w12, [x21, #16]
+ ldurh w12, [x21, #7]
ldr x11, [sp, #24]
str x11, [x27, x12, lsl #3]
.Lasm_IteratorToArray.skip_output_value_7:
@@ -16077,7 +16135,7 @@ asm_handler_IteratorToArray:
ldr x9, [x20]
cmp x9, x28
b.ne .Lasm_IteratorToArray.values_restore_stack_4
- ldr w12, [x21, #16]
+ ldurh w12, [x21, #7]
ldr x11, [sp, #24]
str x11, [x27, x12, lsl #3]
.Lasm_IteratorToArray.skip_exceptional_output_8:
@@ -16111,7 +16169,7 @@ asm_handler_CallConstruct:
sub w1, w21, w26
str w1, [x28, #64]
add x9, sp, #0
- ldr w10, [x21, #20]
+ ldur w10, [x21, #13]
lsl x10, x10, #3
add x10, x10, #47
and x10, x10, #0xfffffffffffffff0
@@ -16136,18 +16194,18 @@ asm_handler_CallConstruct:
.Lasm_CallConstruct.values_allocated_3:
add sp, x14, #0
str x9, [sp]
- ldr w12, [x21, #16]
+ ldurh w12, [x21, #11]
ldr x11, [x27, x12, lsl #3]
.Lasm_CallConstruct.value_ready_4:
str x11, [sp, #24]
mov w9, #0
- ldr w10, [x21, #20]
+ ldur w10, [x21, #13]
add x14, sp, #32
- add x3, x21, #28
+ add x3, x21, #19
.Lasm_CallConstruct.array_value_next_5:
cmp x9, x10
b.hs .Lasm_CallConstruct.array_values_end_7
- ldr w12, [x3, x9, lsl #2]
+ ldrh w12, [x3, x9, lsl #1]
ldr x11, [x27, x12, lsl #3]
.Lasm_CallConstruct.array_value_ready_6:
str x11, [x14, x9, lsl #3]
@@ -16161,7 +16219,7 @@ asm_handler_CallConstruct:
bl CSYM(asm_slow_path_call_construct)
tbnz x0, #63, .Lasm_CallConstruct.values_exceptional_outputs_9
tbz x0, #32, .Lasm_CallConstruct.values_exceptional_outputs_9
- ldr w12, [x21, #12]
+ ldurh w12, [x21, #9]
ldr x11, [sp, #16]
str x11, [x27, x12, lsl #3]
.Lasm_CallConstruct.skip_output_value_10:
@@ -16203,7 +16261,7 @@ asm_handler_CallDirectEval:
sub w1, w21, w26
str w1, [x28, #64]
add x9, sp, #0
- ldr w10, [x21, #24]
+ ldur w10, [x21, #15]
lsl x10, x10, #3
add x10, x10, #55
and x10, x10, #0xfffffffffffffff0
@@ -16228,22 +16286,22 @@ asm_handler_CallDirectEval:
.Lasm_CallDirectEval.values_allocated_3:
add sp, x14, #0
str x9, [sp]
- ldr w12, [x21, #16]
+ ldurh w12, [x21, #11]
ldr x11, [x27, x12, lsl #3]
.Lasm_CallDirectEval.value_ready_4:
str x11, [sp, #24]
- ldr w12, [x21, #20]
+ ldurh w12, [x21, #13]
ldr x11, [x27, x12, lsl #3]
.Lasm_CallDirectEval.value_ready_5:
str x11, [sp, #32]
mov w9, #0
- ldr w10, [x21, #24]
+ ldur w10, [x21, #15]
add x14, sp, #40
- add x3, x21, #32
+ add x3, x21, #21
.Lasm_CallDirectEval.array_value_next_6:
cmp x9, x10
b.hs .Lasm_CallDirectEval.array_values_end_8
- ldr w12, [x3, x9, lsl #2]
+ ldrh w12, [x3, x9, lsl #1]
ldr x11, [x27, x12, lsl #3]
.Lasm_CallDirectEval.array_value_ready_7:
str x11, [x14, x9, lsl #3]
@@ -16257,7 +16315,7 @@ asm_handler_CallDirectEval:
bl CSYM(asm_slow_path_call_direct_eval)
tbnz x0, #63, .Lasm_CallDirectEval.values_exceptional_outputs_10
tbz x0, #32, .Lasm_CallDirectEval.values_exceptional_outputs_10
- ldr w12, [x21, #12]
+ ldurh w12, [x21, #9]
ldr x11, [sp, #16]
str x11, [x27, x12, lsl #3]
.Lasm_CallDirectEval.skip_output_value_11:
@@ -16298,15 +16356,15 @@ asm_handler_CallWithArgumentArray:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #12]
+ ldurh w9, [x21, #7]
ldr x10, [x27, x9, lsl #3]
.Lasm_CallWithArgumentArray.scalar_value_ready_0:
mov x3, x10
- ldr w9, [x21, #16]
+ ldurh w9, [x21, #9]
ldr x10, [x27, x9, lsl #3]
.Lasm_CallWithArgumentArray.scalar_value_ready_1:
mov x4, x10
- ldr w9, [x21, #20]
+ ldurh w9, [x21, #11]
ldr x10, [x27, x9, lsl #3]
.Lasm_CallWithArgumentArray.scalar_value_ready_2:
mov x5, x10
@@ -16316,7 +16374,7 @@ asm_handler_CallWithArgumentArray:
bl CSYM(asm_slow_path_call_with_argument_array)
tbnz x0, #63, .Lasm_CallWithArgumentArray.scalar_result_done_3
tbz x0, #32, .Lasm_CallWithArgumentArray.scalar_result_done_3
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #5]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -16349,15 +16407,15 @@ asm_handler_CallDirectEvalWithArgumentArray:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #12]
+ ldurh w9, [x21, #7]
ldr x10, [x27, x9, lsl #3]
.Lasm_CallDirectEvalWithArgumentArray.scalar_value_ready_0:
mov x3, x10
- ldr w9, [x21, #16]
+ ldurh w9, [x21, #9]
ldr x10, [x27, x9, lsl #3]
.Lasm_CallDirectEvalWithArgumentArray.scalar_value_ready_1:
mov x4, x10
- ldr w9, [x21, #20]
+ ldurh w9, [x21, #11]
ldr x10, [x27, x9, lsl #3]
.Lasm_CallDirectEvalWithArgumentArray.scalar_value_ready_2:
mov x5, x10
@@ -16367,7 +16425,7 @@ asm_handler_CallDirectEvalWithArgumentArray:
bl CSYM(asm_slow_path_call_direct_eval_with_argument_array)
tbnz x0, #63, .Lasm_CallDirectEvalWithArgumentArray.scalar_result_done_3
tbz x0, #32, .Lasm_CallDirectEvalWithArgumentArray.scalar_result_done_3
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #5]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -16400,15 +16458,15 @@ asm_handler_CallConstructWithArgumentArray:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #12]
+ ldurh w9, [x21, #7]
ldr x10, [x27, x9, lsl #3]
.Lasm_CallConstructWithArgumentArray.scalar_value_ready_0:
mov x3, x10
- ldr w9, [x21, #16]
+ ldurh w9, [x21, #9]
ldr x10, [x27, x9, lsl #3]
.Lasm_CallConstructWithArgumentArray.scalar_value_ready_1:
mov x4, x10
- ldr w9, [x21, #20]
+ ldurh w9, [x21, #11]
ldr x10, [x27, x9, lsl #3]
.Lasm_CallConstructWithArgumentArray.scalar_value_ready_2:
mov x5, x10
@@ -16418,7 +16476,7 @@ asm_handler_CallConstructWithArgumentArray:
bl CSYM(asm_slow_path_call_construct_with_argument_array)
tbnz x0, #63, .Lasm_CallConstructWithArgumentArray.scalar_result_done_3
tbz x0, #32, .Lasm_CallConstructWithArgumentArray.scalar_result_done_3
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #5]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -16451,11 +16509,11 @@ asm_handler_SuperCallWithArgumentArray:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #12]
+ ldurh w9, [x21, #7]
ldr x10, [x27, x9, lsl #3]
.Lasm_SuperCallWithArgumentArray.scalar_value_ready_0:
mov x3, x10
- ldr w9, [x21, #16]
+ ldurh w9, [x21, #9]
ldr x10, [x27, x9, lsl #3]
.Lasm_SuperCallWithArgumentArray.scalar_value_ready_1:
mov x4, x10
@@ -16465,7 +16523,7 @@ asm_handler_SuperCallWithArgumentArray:
bl CSYM(asm_slow_path_super_call_with_argument_array)
tbnz x0, #63, .Lasm_SuperCallWithArgumentArray.scalar_result_done_2
tbz x0, #32, .Lasm_SuperCallWithArgumentArray.scalar_result_done_2
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #5]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -16504,7 +16562,7 @@ asm_handler_NewObject:
bl CSYM(asm_slow_path_new_object)
tbnz x0, #63, .Lasm_NewObject.scalar_result_done_0
tbz x0, #32, .Lasm_NewObject.scalar_result_done_0
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -16543,7 +16601,7 @@ asm_handler_NewObjectWithNoPrototype:
bl CSYM(asm_slow_path_new_object_with_no_prototype)
tbnz x0, #63, .Lasm_NewObjectWithNoPrototype.scalar_result_done_0
tbz x0, #32, .Lasm_NewObjectWithNoPrototype.scalar_result_done_0
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -16576,7 +16634,7 @@ asm_handler_CacheObjectShape:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
ldr x10, [x27, x9, lsl #3]
.Lasm_CacheObjectShape.scalar_value_ready_0:
mov x3, x10
@@ -16617,11 +16675,11 @@ asm_handler_InitObjectLiteralProperty:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
ldr x10, [x27, x9, lsl #3]
.Lasm_InitObjectLiteralProperty.scalar_value_ready_0:
mov x3, x10
- ldr w9, [x21, #12]
+ ldurh w9, [x21, #5]
ldr x10, [x27, x9, lsl #3]
.Lasm_InitObjectLiteralProperty.scalar_value_ready_1:
mov x4, x10
@@ -16663,7 +16721,7 @@ asm_handler_NewArray:
sub w1, w21, w26
str w1, [x28, #64]
add x9, sp, #0
- ldr w10, [x21, #12]
+ ldur w10, [x21, #7]
lsl x10, x10, #3
add x10, x10, #39
and x10, x10, #0xfffffffffffffff0
@@ -16689,13 +16747,13 @@ asm_handler_NewArray:
add sp, x14, #0
str x9, [sp]
mov w9, #0
- ldr w10, [x21, #12]
+ ldur w10, [x21, #7]
add x14, sp, #24
- add x3, x21, #16
+ add x3, x21, #11
.Lasm_NewArray.array_value_next_4:
cmp x9, x10
b.hs .Lasm_NewArray.array_values_end_6
- ldr w12, [x3, x9, lsl #2]
+ ldrh w12, [x3, x9, lsl #1]
ldr x11, [x27, x12, lsl #3]
.Lasm_NewArray.array_value_ready_5:
str x11, [x14, x9, lsl #3]
@@ -16709,7 +16767,7 @@ asm_handler_NewArray:
bl CSYM(asm_slow_path_new_array)
tbnz x0, #63, .Lasm_NewArray.values_exceptional_outputs_8
tbz x0, #32, .Lasm_NewArray.values_exceptional_outputs_8
- ldr w12, [x21, #8]
+ ldurh w12, [x21, #5]
ldr x11, [sp, #16]
str x11, [x27, x12, lsl #3]
.Lasm_NewArray.skip_output_value_9:
@@ -16756,7 +16814,7 @@ asm_handler_NewPrimitiveArray:
bl CSYM(asm_slow_path_new_primitive_array)
tbnz x0, #63, .Lasm_NewPrimitiveArray.scalar_result_done_0
tbz x0, #32, .Lasm_NewPrimitiveArray.scalar_result_done_0
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #5]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -16795,7 +16853,7 @@ asm_handler_NewRegExp:
bl CSYM(asm_slow_path_new_regexp)
tbnz x0, #63, .Lasm_NewRegExp.scalar_result_done_0
tbz x0, #32, .Lasm_NewRegExp.scalar_result_done_0
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -16834,7 +16892,7 @@ asm_handler_NewReferenceError:
bl CSYM(asm_slow_path_new_reference_error)
tbnz x0, #63, .Lasm_NewReferenceError.scalar_result_done_0
tbz x0, #32, .Lasm_NewReferenceError.scalar_result_done_0
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -16873,7 +16931,7 @@ asm_handler_NewTypeError:
bl CSYM(asm_slow_path_new_type_error)
tbnz x0, #63, .Lasm_NewTypeError.scalar_result_done_0
tbz x0, #32, .Lasm_NewTypeError.scalar_result_done_0
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -16906,11 +16964,11 @@ asm_handler_InstanceOf:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #3]
ldr x10, [x27, x9, lsl #3]
.Lasm_InstanceOf.scalar_value_ready_0:
mov x3, x10
- ldr w9, [x21, #12]
+ ldurh w9, [x21, #5]
ldr x10, [x27, x9, lsl #3]
.Lasm_InstanceOf.scalar_value_ready_1:
mov x4, x10
@@ -16920,7 +16978,7 @@ asm_handler_InstanceOf:
bl CSYM(asm_slow_path_instance_of)
tbnz x0, #63, .Lasm_InstanceOf.scalar_result_done_2
tbz x0, #32, .Lasm_InstanceOf.scalar_result_done_2
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -16953,11 +17011,11 @@ asm_handler_In:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #3]
ldr x10, [x27, x9, lsl #3]
.Lasm_In.scalar_value_ready_0:
mov x3, x10
- ldr w9, [x21, #12]
+ ldurh w9, [x21, #5]
ldr x10, [x27, x9, lsl #3]
.Lasm_In.scalar_value_ready_1:
mov x4, x10
@@ -16967,7 +17025,7 @@ asm_handler_In:
bl CSYM(asm_slow_path_in)
tbnz x0, #63, .Lasm_In.scalar_result_done_2
tbz x0, #32, .Lasm_In.scalar_result_done_2
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -17002,7 +17060,7 @@ asm_handler_IsConstructor:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #3]
ldr x10, [x27, x9, lsl #3]
.Lasm_IsConstructor.scalar_value_ready_0:
mov x3, x10
@@ -17012,7 +17070,7 @@ asm_handler_IsConstructor:
bl CSYM(asm_slow_path_is_constructor)
tbnz x0, #63, .Lasm_IsConstructor.scalar_result_done_1
tbz x0, #32, .Lasm_IsConstructor.scalar_result_done_1
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -17082,15 +17140,15 @@ asm_handler_CreateAsyncFromSyncIterator:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #3]
ldr x10, [x27, x9, lsl #3]
.Lasm_CreateAsyncFromSyncIterator.scalar_value_ready_0:
mov x3, x10
- ldr w9, [x21, #12]
+ ldurh w9, [x21, #5]
ldr x10, [x27, x9, lsl #3]
.Lasm_CreateAsyncFromSyncIterator.scalar_value_ready_1:
mov x4, x10
- ldr w9, [x21, #16]
+ ldurh w9, [x21, #7]
ldr x10, [x27, x9, lsl #3]
.Lasm_CreateAsyncFromSyncIterator.scalar_value_ready_2:
mov x5, x10
@@ -17100,7 +17158,7 @@ asm_handler_CreateAsyncFromSyncIterator:
bl CSYM(asm_slow_path_create_async_from_sync_iterator)
tbnz x0, #63, .Lasm_CreateAsyncFromSyncIterator.scalar_result_done_3
tbz x0, #32, .Lasm_CreateAsyncFromSyncIterator.scalar_result_done_3
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -17133,15 +17191,15 @@ asm_handler_CreateDataPropertyOrThrow:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
ldr x10, [x27, x9, lsl #3]
.Lasm_CreateDataPropertyOrThrow.scalar_value_ready_0:
mov x3, x10
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #3]
ldr x10, [x27, x9, lsl #3]
.Lasm_CreateDataPropertyOrThrow.scalar_value_ready_1:
mov x4, x10
- ldr w9, [x21, #12]
+ ldurh w9, [x21, #5]
ldr x10, [x27, x9, lsl #3]
.Lasm_CreateDataPropertyOrThrow.scalar_value_ready_2:
mov x5, x10
@@ -17182,7 +17240,7 @@ asm_handler_CreateImmutableBinding:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
ldr x10, [x27, x9, lsl #3]
.Lasm_CreateImmutableBinding.scalar_value_ready_0:
mov x3, x10
@@ -17223,7 +17281,7 @@ asm_handler_CreateMutableBinding:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
ldr x10, [x27, x9, lsl #3]
.Lasm_CreateMutableBinding.scalar_value_ready_0:
mov x3, x10
@@ -17270,7 +17328,7 @@ asm_handler_CreateRestParams:
bl CSYM(asm_slow_path_create_rest_params)
tbnz x0, #63, .Lasm_CreateRestParams.scalar_result_done_0
tbz x0, #32, .Lasm_CreateRestParams.scalar_result_done_0
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -17311,8 +17369,8 @@ asm_handler_CreateArguments:
bl CSYM(asm_slow_path_create_arguments)
tbnz x0, #63, .Lasm_CreateArguments.values_exceptional_outputs_2
tbz x0, #32, .Lasm_CreateArguments.values_exceptional_outputs_2
- ldr w12, [x21, #4]
- movn w13, #0
+ ldurh w12, [x21, #1]
+ mov w13, #65535
cmp w12, w13
b.eq .Lasm_CreateArguments.skip_output_value_3
ldr x11, [sp]
@@ -17353,7 +17411,7 @@ asm_handler_CreateLexicalEnvironment:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #3]
ldr x10, [x27, x9, lsl #3]
.Lasm_CreateLexicalEnvironment.scalar_value_ready_0:
mov x3, x10
@@ -17363,7 +17421,7 @@ asm_handler_CreateLexicalEnvironment:
bl CSYM(asm_slow_path_create_lexical_environment)
tbnz x0, #63, .Lasm_CreateLexicalEnvironment.scalar_result_done_1
tbz x0, #32, .Lasm_CreateLexicalEnvironment.scalar_result_done_1
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -17470,7 +17528,7 @@ asm_handler_DeleteById:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #3]
ldr x10, [x27, x9, lsl #3]
.Lasm_DeleteById.scalar_value_ready_0:
mov x3, x10
@@ -17480,7 +17538,7 @@ asm_handler_DeleteById:
bl CSYM(asm_slow_path_delete_by_id)
tbnz x0, #63, .Lasm_DeleteById.scalar_result_done_1
tbz x0, #32, .Lasm_DeleteById.scalar_result_done_1
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -17513,11 +17571,11 @@ asm_handler_DeleteByValue:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #3]
ldr x10, [x27, x9, lsl #3]
.Lasm_DeleteByValue.scalar_value_ready_0:
mov x3, x10
- ldr w9, [x21, #12]
+ ldurh w9, [x21, #5]
ldr x10, [x27, x9, lsl #3]
.Lasm_DeleteByValue.scalar_value_ready_1:
mov x4, x10
@@ -17527,7 +17585,7 @@ asm_handler_DeleteByValue:
bl CSYM(asm_slow_path_delete_by_value)
tbnz x0, #63, .Lasm_DeleteByValue.scalar_result_done_2
tbz x0, #32, .Lasm_DeleteByValue.scalar_result_done_2
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -17566,7 +17624,7 @@ asm_handler_DeleteVariable:
bl CSYM(asm_slow_path_delete_variable)
tbnz x0, #63, .Lasm_DeleteVariable.scalar_result_done_0
tbz x0, #32, .Lasm_DeleteVariable.scalar_result_done_0
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -17605,7 +17663,7 @@ asm_handler_NewDisposableResourceStack:
bl CSYM(asm_slow_path_new_disposable_resource_stack)
tbnz x0, #63, .Lasm_NewDisposableResourceStack.scalar_result_done_0
tbz x0, #32, .Lasm_NewDisposableResourceStack.scalar_result_done_0
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -17638,11 +17696,11 @@ asm_handler_AddDisposableResource:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
ldr x10, [x27, x9, lsl #3]
.Lasm_AddDisposableResource.scalar_value_ready_0:
mov x3, x10
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #3]
ldr x10, [x27, x9, lsl #3]
.Lasm_AddDisposableResource.scalar_value_ready_1:
mov x4, x10
@@ -17683,15 +17741,15 @@ asm_handler_DisposeResources:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
ldr x10, [x27, x9, lsl #3]
.Lasm_DisposeResources.scalar_value_ready_0:
mov x3, x10
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #3]
ldr x10, [x27, x9, lsl #3]
.Lasm_DisposeResources.scalar_value_ready_1:
mov x4, x10
- ldr w9, [x21, #12]
+ ldurh w9, [x21, #5]
ldr x10, [x27, x9, lsl #3]
.Lasm_DisposeResources.scalar_value_ready_2:
mov x5, x10
@@ -17733,23 +17791,23 @@ asm_handler_AsyncDisposeResourcesStep:
sub w1, w21, w26
str w1, [x28, #64]
sub sp, sp, #80
- ldr w12, [x21, #12]
+ ldurh w12, [x21, #5]
ldr x11, [x27, x12, lsl #3]
.Lasm_AsyncDisposeResourcesStep.value_ready_1:
mov x4, x11
- ldr w12, [x21, #16]
+ ldurh w12, [x21, #7]
ldr x11, [x27, x12, lsl #3]
.Lasm_AsyncDisposeResourcesStep.value_ready_2:
mov x5, x11
- ldr w12, [x21, #20]
+ ldurh w12, [x21, #9]
ldr x11, [x27, x12, lsl #3]
.Lasm_AsyncDisposeResourcesStep.value_ready_3:
mov x6, x11
- ldr w12, [x21, #24]
+ ldurh w12, [x21, #11]
ldr x11, [x27, x12, lsl #3]
.Lasm_AsyncDisposeResourcesStep.value_ready_4:
mov x7, x11
- ldr w12, [x21, #28]
+ ldurh w12, [x21, #13]
ldr x11, [x27, x12, lsl #3]
.Lasm_AsyncDisposeResourcesStep.value_ready_5:
str x11, [sp]
@@ -17760,11 +17818,11 @@ asm_handler_AsyncDisposeResourcesStep:
bl CSYM(asm_slow_path_async_dispose_resources_step)
tbnz x0, #63, .Lasm_AsyncDisposeResourcesStep.values_exceptional_outputs_7
tbz x0, #32, .Lasm_AsyncDisposeResourcesStep.values_exceptional_outputs_7
- ldr w12, [x21, #4]
+ ldurh w12, [x21, #1]
ldr x11, [sp, #16]
str x11, [x27, x12, lsl #3]
.Lasm_AsyncDisposeResourcesStep.skip_output_value_8:
- ldr w12, [x21, #8]
+ ldurh w12, [x21, #3]
ldr x11, [sp, #24]
str x11, [x27, x12, lsl #3]
.Lasm_AsyncDisposeResourcesStep.skip_output_value_9:
@@ -17804,7 +17862,7 @@ asm_handler_GetCompletionFields:
sub w1, w21, w26
str w1, [x28, #64]
sub sp, sp, #32
- ldr w12, [x21, #12]
+ ldurh w12, [x21, #5]
ldr x11, [x27, x12, lsl #3]
.Lasm_GetCompletionFields.value_ready_1:
mov x4, x11
@@ -17815,11 +17873,11 @@ asm_handler_GetCompletionFields:
bl CSYM(asm_slow_path_get_completion_fields)
tbnz x0, #63, .Lasm_GetCompletionFields.values_exceptional_outputs_3
tbz x0, #32, .Lasm_GetCompletionFields.values_exceptional_outputs_3
- ldr w12, [x21, #4]
+ ldurh w12, [x21, #1]
ldr x11, [sp]
str x11, [x27, x12, lsl #3]
.Lasm_GetCompletionFields.skip_output_value_4:
- ldr w12, [x21, #8]
+ ldurh w12, [x21, #3]
ldr x11, [sp, #8]
str x11, [x27, x12, lsl #3]
.Lasm_GetCompletionFields.skip_output_value_5:
@@ -17858,7 +17916,7 @@ asm_handler_SetCompletionType:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
ldr x10, [x27, x9, lsl #3]
.Lasm_SetCompletionType.scalar_value_ready_0:
mov x3, x10
@@ -17900,7 +17958,7 @@ asm_handler_GetTemplateObject:
sub w1, w21, w26
str w1, [x28, #64]
add x9, sp, #0
- ldr w10, [x21, #12]
+ ldur w10, [x21, #7]
lsl x10, x10, #3
add x10, x10, #39
and x10, x10, #0xfffffffffffffff0
@@ -17926,13 +17984,13 @@ asm_handler_GetTemplateObject:
add sp, x14, #0
str x9, [sp]
mov w9, #0
- ldr w10, [x21, #12]
+ ldur w10, [x21, #7]
add x14, sp, #24
- add x3, x21, #20
+ add x3, x21, #15
.Lasm_GetTemplateObject.array_value_next_4:
cmp x9, x10
b.hs .Lasm_GetTemplateObject.array_values_end_6
- ldr w12, [x3, x9, lsl #2]
+ ldrh w12, [x3, x9, lsl #1]
ldr x11, [x27, x12, lsl #3]
.Lasm_GetTemplateObject.array_value_ready_5:
str x11, [x14, x9, lsl #3]
@@ -17946,7 +18004,7 @@ asm_handler_GetTemplateObject:
bl CSYM(asm_slow_path_get_template_object)
tbnz x0, #63, .Lasm_GetTemplateObject.values_exceptional_outputs_8
tbz x0, #32, .Lasm_GetTemplateObject.values_exceptional_outputs_8
- ldr w12, [x21, #8]
+ ldurh w12, [x21, #5]
ldr x11, [sp, #16]
str x11, [x27, x12, lsl #3]
.Lasm_GetTemplateObject.skip_output_value_9:
@@ -17987,9 +18045,9 @@ asm_handler_NewFunction:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #16]
+ ldurh w9, [x21, #9]
movz x10, #0x7ffb, lsl #48
- movn w11, #0
+ mov w11, #65535
cmp w9, w11
b.eq .Lasm_NewFunction.scalar_value_ready_0
ldr x10, [x27, x9, lsl #3]
@@ -18001,7 +18059,7 @@ asm_handler_NewFunction:
bl CSYM(asm_slow_path_new_function)
tbnz x0, #63, .Lasm_NewFunction.scalar_result_done_1
tbz x0, #32, .Lasm_NewFunction.scalar_result_done_1
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -18034,7 +18092,7 @@ asm_handler_Typeof:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #3]
ldr x10, [x27, x9, lsl #3]
.Lasm_Typeof.scalar_value_ready_0:
mov x3, x10
@@ -18044,7 +18102,7 @@ asm_handler_Typeof:
bl CSYM(asm_slow_path_typeof)
tbnz x0, #63, .Lasm_Typeof.scalar_result_done_1
tbz x0, #32, .Lasm_Typeof.scalar_result_done_1
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -18120,7 +18178,7 @@ asm_handler_GetPrivateById:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #8]
+ ldurh w9, [x21, #3]
ldr x10, [x27, x9, lsl #3]
.Lasm_GetPrivateById.scalar_value_ready_0:
mov x3, x10
@@ -18130,7 +18188,7 @@ asm_handler_GetPrivateById:
bl CSYM(asm_slow_path_get_private_by_id)
tbnz x0, #63, .Lasm_GetPrivateById.scalar_result_done_1
tbz x0, #32, .Lasm_GetPrivateById.scalar_result_done_1
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
str x1, [x27, x9, lsl #3]
add x21, x26, w0, uxtw
ldrb w9, [x21]
@@ -18163,11 +18221,11 @@ asm_handler_PutPrivateById:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #1]
ldr x10, [x27, x9, lsl #3]
.Lasm_PutPrivateById.scalar_value_ready_0:
mov x3, x10
- ldr w9, [x21, #12]
+ ldurh w9, [x21, #5]
ldr x10, [x27, x9, lsl #3]
.Lasm_PutPrivateById.scalar_value_ready_1:
mov x4, x10
@@ -18212,13 +18270,14 @@ asm_handler_AddLhsInt32_cold:
mov w9, #32760
cmp w1, w9
b.ne .Lasm_AddLhsInt32.ssa_block_5
- ldr w1, [x21, #8]
+ ldur w1, [x21, #5]
movk x1, #0x7ffa, lsl #48
- ldr w2, [x21, #4]
+ ldurh w2, [x21, #3]
sub sp, sp, #16
str w2, [sp, #8]
mov x3, x1
mov x4, x0
+ mov w5, #11
add x2, sp, #0
mov x0, x20
sub w1, w21, w26
@@ -18261,7 +18320,7 @@ asm_handler_AddLhsInt32_cold:
br x10
.Lasm_AddLhsInt32.ssa_block_5:
fmov d1, x0
- ldr w0, [x21, #8]
+ ldur w0, [x21, #5]
scvtf d0, w0
fadd d0, d0, d1
fcvtzs w1, d0
@@ -18286,23 +18345,23 @@ asm_handler_AddLhsInt32_cold:
b.vs .Lasm_AddLhsInt32.canon_nan_2
.Lasm_AddLhsInt32.canon_nan_2_ret:
.Lasm_AddLhsInt32.ssa_box_number_6_done:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #11]
+ add x21, x21, #11
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_AddLhsInt32.ssa_block_8:
sxtw x0, w0
- ldr w1, [x21, #8]
+ ldur w1, [x21, #5]
scvtf d0, w1
scvtf d1, w0
fadd d0, d0, d1
fmov x0, d0
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #11]
+ add x21, x21, #11
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_AddLhsInt32.canon_nan_2:
@@ -18312,18 +18371,18 @@ asm_handler_AddLhsInt32_cold_end:
asm_handler_AddRhsInt32_cold:
// Cold paths for AddRhsInt32
.Lasm_AddRhsInt32.ssa_checked_6_failure:
- ldr w9, [x21, #12]
+ ldur w9, [x21, #7]
subs w0, w0, w9
sxtw x0, w0
- ldr w1, [x21, #12]
+ ldur w1, [x21, #7]
scvtf d0, w0
scvtf d1, w1
fadd d0, d0, d1
fmov x0, d0
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #11]
+ add x21, x21, #11
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_AddRhsInt32.ssa_block_5:
@@ -18332,7 +18391,7 @@ asm_handler_AddRhsInt32_cold:
cmp w1, w9
b.eq .Lasm_AddRhsInt32.ssa_block_1
fmov d0, x0
- ldr w0, [x21, #12]
+ ldur w0, [x21, #7]
scvtf d1, w0
fadd d0, d0, d1
fcvtzs w1, d0
@@ -18357,20 +18416,21 @@ asm_handler_AddRhsInt32_cold:
b.vs .Lasm_AddRhsInt32.canon_nan_0
.Lasm_AddRhsInt32.canon_nan_0_ret:
.Lasm_AddRhsInt32.ssa_box_number_8_done:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #11]
+ add x21, x21, #11
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_AddRhsInt32.ssa_block_1:
- ldr w1, [x21, #12]
+ ldur w1, [x21, #7]
movk x1, #0x7ffa, lsl #48
- ldr w2, [x21, #4]
+ ldurh w2, [x21, #3]
sub sp, sp, #16
str w2, [sp, #8]
mov x3, x0
mov x4, x1
+ mov w5, #11
add x2, sp, #0
mov x0, x20
sub w1, w21, w26
@@ -18418,18 +18478,18 @@ asm_handler_AddRhsInt32_cold_end:
asm_handler_SubRhsInt32_cold:
// Cold paths for SubRhsInt32
.Lasm_SubRhsInt32.ssa_checked_6_failure:
- ldr w9, [x21, #12]
+ ldur w9, [x21, #7]
adds w0, w0, w9
sxtw x0, w0
- ldr w1, [x21, #12]
+ ldur w1, [x21, #7]
scvtf d0, w0
scvtf d1, w1
fsub d0, d0, d1
fmov x0, d0
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #11]
+ add x21, x21, #11
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_SubRhsInt32.ssa_block_5:
@@ -18438,7 +18498,7 @@ asm_handler_SubRhsInt32_cold:
cmp w1, w9
b.eq .Lasm_SubRhsInt32.ssa_block_1
fmov d0, x0
- ldr w0, [x21, #12]
+ ldur w0, [x21, #7]
scvtf d1, w0
fsub d0, d0, d1
fcvtzs w1, d0
@@ -18463,20 +18523,21 @@ asm_handler_SubRhsInt32_cold:
b.vs .Lasm_SubRhsInt32.canon_nan_0
.Lasm_SubRhsInt32.canon_nan_0_ret:
.Lasm_SubRhsInt32.ssa_box_number_8_done:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #11]
+ add x21, x21, #11
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_SubRhsInt32.ssa_block_1:
- ldr w1, [x21, #12]
+ ldur w1, [x21, #7]
movk x1, #0x7ffa, lsl #48
- ldr w2, [x21, #4]
+ ldurh w2, [x21, #3]
sub sp, sp, #16
str w2, [sp, #8]
mov x3, x0
mov x4, x1
+ mov w5, #11
add x2, sp, #0
mov x0, x20
sub w1, w21, w26
@@ -18528,13 +18589,14 @@ asm_handler_MulRhsInt32_cold:
mov w9, #32760
cmp w2, w9
b.ne .Lasm_MulRhsInt32.ssa_block_13
- ldr w1, [x21, #12]
+ ldur w1, [x21, #7]
movk x1, #0x7ffa, lsl #48
- ldr w2, [x21, #4]
+ ldurh w2, [x21, #3]
sub sp, sp, #16
str w2, [sp, #8]
mov x3, x0
mov x4, x1
+ mov w5, #11
add x2, sp, #0
mov x0, x20
sub w1, w21, w26
@@ -18577,7 +18639,7 @@ asm_handler_MulRhsInt32_cold:
br x10
.Lasm_MulRhsInt32.ssa_block_13:
fmov d0, x0
- ldr w0, [x21, #12]
+ ldur w0, [x21, #7]
scvtf d1, w0
fmul d0, d0, d1
fcvtzs w1, d0
@@ -18602,31 +18664,31 @@ asm_handler_MulRhsInt32_cold:
b.vs .Lasm_MulRhsInt32.canon_nan_2
.Lasm_MulRhsInt32.canon_nan_2_ret:
.Lasm_MulRhsInt32.ssa_box_number_8_done:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #11]
+ add x21, x21, #11
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_MulRhsInt32.ssa_block_3:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
movz x10, #0x8000, lsl #48
str x10, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #11]
+ add x21, x21, #11
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_MulRhsInt32.ssa_block_9:
sxtw x0, w0
- ldr w1, [x21, #12]
+ ldur w1, [x21, #7]
scvtf d0, w0
scvtf d1, w1
fmul d0, d0, d1
fmov x0, d0
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #11]
+ add x21, x21, #11
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_MulRhsInt32.canon_nan_2:
@@ -18635,15 +18697,16 @@ asm_handler_MulRhsInt32_cold:
asm_handler_MulRhsInt32_cold_end:
.p2align 4
asm_handler_ExpRhsInt32:
- ldr w0, [x21, #8]
+ ldurh w0, [x21, #5]
ldr x0, [x27, x0, lsl #3]
- ldr w1, [x21, #12]
+ ldur w1, [x21, #7]
movk x1, #0x7ffa, lsl #48
- ldr w2, [x21, #4]
+ ldurh w2, [x21, #3]
sub sp, sp, #16
str w2, [sp, #8]
mov x3, x0
mov x4, x1
+ mov w5, #11
add x2, sp, #0
mov x0, x20
sub w1, w21, w26
@@ -18685,13 +18748,14 @@ asm_handler_ExpRhsInt32_cold_end:
asm_handler_DivRhsInt32_cold:
// Cold paths for DivRhsInt32
.Lasm_DivRhsInt32.ssa_block_1:
- ldr w1, [x21, #12]
+ ldur w1, [x21, #7]
movk x1, #0x7ffa, lsl #48
- ldr w2, [x21, #4]
+ ldurh w2, [x21, #3]
sub sp, sp, #16
str w2, [sp, #8]
mov x3, x0
mov x4, x1
+ mov w5, #11
add x2, sp, #0
mov x0, x20
sub w1, w21, w26
@@ -18739,7 +18803,7 @@ asm_handler_DivRhsInt32_cold_end:
asm_handler_BitwiseXorRhsInt32_cold:
// Cold paths for BitwiseXorRhsInt32
.Lasm_BitwiseXorRhsInt32.ssa_block_2:
- ldr w1, [x21, #12]
+ ldur w1, [x21, #7]
lsr x2, x0, #48
movk x1, #0x7ffa, lsl #48
cmp x2, x22
@@ -18773,11 +18837,12 @@ asm_handler_BitwiseXorRhsInt32_cold:
b.ne .Lasm_BitwiseXorRhsInt32.ssa_block_1
b .Lasm_BitwiseXorRhsInt32.ssa_block_7
.Lasm_BitwiseXorRhsInt32.ssa_block_1:
- ldr w2, [x21, #4]
+ ldurh w2, [x21, #3]
sub sp, sp, #16
str w2, [sp, #8]
mov x3, x0
mov x4, x1
+ mov w5, #11
add x2, sp, #0
mov x0, x20
sub w1, w21, w26
@@ -18823,17 +18888,17 @@ asm_handler_BitwiseXorRhsInt32_cold:
.Lasm_BitwiseXorRhsInt32.ssa_block_7:
eor w2, w2, w3
movk x2, #0x7ffa, lsl #48
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x2, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #11]
+ add x21, x21, #11
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_BitwiseXorRhsInt32_cold_end:
asm_handler_BitwiseAndRhsInt32_cold:
// Cold paths for BitwiseAndRhsInt32
.Lasm_BitwiseAndRhsInt32.ssa_block_2:
- ldr w1, [x21, #12]
+ ldur w1, [x21, #7]
lsr x2, x0, #48
movk x1, #0x7ffa, lsl #48
cmp x2, x22
@@ -18867,11 +18932,12 @@ asm_handler_BitwiseAndRhsInt32_cold:
b.ne .Lasm_BitwiseAndRhsInt32.ssa_block_1
b .Lasm_BitwiseAndRhsInt32.ssa_block_7
.Lasm_BitwiseAndRhsInt32.ssa_block_1:
- ldr w2, [x21, #4]
+ ldurh w2, [x21, #3]
sub sp, sp, #16
str w2, [sp, #8]
mov x3, x0
mov x4, x1
+ mov w5, #11
add x2, sp, #0
mov x0, x20
sub w1, w21, w26
@@ -18917,17 +18983,17 @@ asm_handler_BitwiseAndRhsInt32_cold:
.Lasm_BitwiseAndRhsInt32.ssa_block_7:
and w2, w2, w3
movk x2, #0x7ffa, lsl #48
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x2, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #11]
+ add x21, x21, #11
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_BitwiseAndRhsInt32_cold_end:
asm_handler_BitwiseOrRhsInt32_cold:
// Cold paths for BitwiseOrRhsInt32
.Lasm_BitwiseOrRhsInt32.ssa_block_2:
- ldr w1, [x21, #12]
+ ldur w1, [x21, #7]
lsr x2, x0, #48
movk x1, #0x7ffa, lsl #48
cmp x2, x22
@@ -18961,11 +19027,12 @@ asm_handler_BitwiseOrRhsInt32_cold:
b.ne .Lasm_BitwiseOrRhsInt32.ssa_block_1
b .Lasm_BitwiseOrRhsInt32.ssa_block_7
.Lasm_BitwiseOrRhsInt32.ssa_block_1:
- ldr w2, [x21, #4]
+ ldurh w2, [x21, #3]
sub sp, sp, #16
str w2, [sp, #8]
mov x3, x0
mov x4, x1
+ mov w5, #11
add x2, sp, #0
mov x0, x20
sub w1, w21, w26
@@ -19011,23 +19078,24 @@ asm_handler_BitwiseOrRhsInt32_cold:
.Lasm_BitwiseOrRhsInt32.ssa_block_7:
orr w2, w2, w3
movk x2, #0x7ffa, lsl #48
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x2, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #11]
+ add x21, x21, #11
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_BitwiseOrRhsInt32_cold_end:
asm_handler_LeftShiftRhsInt32_cold:
// Cold paths for LeftShiftRhsInt32
.Lasm_LeftShiftRhsInt32.ssa_block_1:
- ldr w1, [x21, #12]
+ ldur w1, [x21, #7]
movk x1, #0x7ffa, lsl #48
- ldr w2, [x21, #4]
+ ldurh w2, [x21, #3]
sub sp, sp, #16
str w2, [sp, #8]
mov x3, x0
mov x4, x1
+ mov w5, #11
add x2, sp, #0
mov x0, x20
sub w1, w21, w26
@@ -19072,13 +19140,14 @@ asm_handler_LeftShiftRhsInt32_cold_end:
asm_handler_RightShiftRhsInt32_cold:
// Cold paths for RightShiftRhsInt32
.Lasm_RightShiftRhsInt32.ssa_block_1:
- ldr w1, [x21, #12]
+ ldur w1, [x21, #7]
movk x1, #0x7ffa, lsl #48
- ldr w2, [x21, #4]
+ ldurh w2, [x21, #3]
sub sp, sp, #16
str w2, [sp, #8]
mov x3, x0
mov x4, x1
+ mov w5, #11
add x2, sp, #0
mov x0, x20
sub w1, w21, w26
@@ -19125,20 +19194,21 @@ asm_handler_UnsignedRightShiftRhsInt32_cold:
.Lasm_UnsignedRightShiftRhsInt32.ssa_block_2:
scvtf d0, x0
fmov x0, d0
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #11]
+ add x21, x21, #11
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_UnsignedRightShiftRhsInt32.ssa_block_1:
- ldr w1, [x21, #12]
+ ldur w1, [x21, #7]
movk x1, #0x7ffa, lsl #48
- ldr w2, [x21, #4]
+ ldurh w2, [x21, #3]
sub sp, sp, #16
str w2, [sp, #8]
mov x3, x0
mov x4, x1
+ mov w5, #11
add x2, sp, #0
mov x0, x20
sub w1, w21, w26
@@ -19202,7 +19272,7 @@ asm_handler_ModRhsInt32_cold:
sxtw x1, w0
sxtw x2, w1
.Lasm_ModRhsInt32.ssa_block_20:
- ldr w1, [x21, #12]
+ ldur w1, [x21, #7]
sxtw x1, w1
cbz x1, .Lasm_ModRhsInt32.ssa_block_1
cmn x1, #1
@@ -19215,19 +19285,19 @@ asm_handler_ModRhsInt32_cold:
cmp x2, x1
b.ne .Lasm_ModRhsInt32.ssa_block_5
movk x0, #0x7ffa, lsl #48
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #11]
+ add x21, x21, #11
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_ModRhsInt32.ssa_block_5:
scvtf d0, x1
fmov x0, d0
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #11]
+ add x21, x21, #11
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_ModRhsInt32.ssa_block_3:
@@ -19238,28 +19308,29 @@ asm_handler_ModRhsInt32_cold:
b .Lasm_ModRhsInt32.ssa_block_4
1:
movz x0, #0x7ffa, lsl #48
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #11]
+ add x21, x21, #11
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_ModRhsInt32.ssa_block_4:
- ldr w9, [x21, #4]
+ ldurh w9, [x21, #3]
movz x10, #0x8000, lsl #48
str x10, [x27, x9, lsl #3]
- ldrb w9, [x21, #16]
- add x21, x21, #16
+ ldrb w9, [x21, #11]
+ add x21, x21, #11
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_ModRhsInt32.ssa_block_1:
- ldr w1, [x21, #12]
+ ldur w1, [x21, #7]
movk x1, #0x7ffa, lsl #48
- ldr w2, [x21, #4]
+ ldurh w2, [x21, #3]
sub sp, sp, #16
str w2, [sp, #8]
mov x3, x0
mov x4, x1
+ mov w5, #11
add x2, sp, #0
mov x0, x20
sub w1, w21, w26
@@ -19308,13 +19379,14 @@ asm_handler_LessThanRhsInt32_cold:
mov w9, #32760
cmp w1, w9
b.ne .Lasm_LessThanRhsInt32.ssa_block_15
- ldr w1, [x21, #12]
+ ldur w1, [x21, #7]
movk x1, #0x7ffa, lsl #48
- ldr w2, [x21, #4]
+ ldurh w2, [x21, #3]
sub sp, sp, #16
str w2, [sp, #8]
mov x3, x0
mov x4, x1
+ mov w5, #11
add x2, sp, #0
mov x0, x20
sub w1, w21, w26
@@ -19357,7 +19429,7 @@ asm_handler_LessThanRhsInt32_cold:
br x10
.Lasm_LessThanRhsInt32.ssa_block_15:
fmov d0, x0
- ldr w0, [x21, #12]
+ ldur w0, [x21, #7]
scvtf d1, w0
fcmp d0, d1
b.vs .Lasm_LessThanRhsInt32.ssa_block_2
@@ -19371,13 +19443,14 @@ asm_handler_LessThanEqualsRhsInt32_cold:
mov w9, #32760
cmp w1, w9
b.ne .Lasm_LessThanEqualsRhsInt32.ssa_block_15
- ldr w1, [x21, #12]
+ ldur w1, [x21, #7]
movk x1, #0x7ffa, lsl #48
- ldr w2, [x21, #4]
+ ldurh w2, [x21, #3]
sub sp, sp, #16
str w2, [sp, #8]
mov x3, x0
mov x4, x1
+ mov w5, #11
add x2, sp, #0
mov x0, x20
sub w1, w21, w26
@@ -19420,7 +19493,7 @@ asm_handler_LessThanEqualsRhsInt32_cold:
br x10
.Lasm_LessThanEqualsRhsInt32.ssa_block_15:
fmov d0, x0
- ldr w0, [x21, #12]
+ ldur w0, [x21, #7]
scvtf d1, w0
fcmp d0, d1
b.vs .Lasm_LessThanEqualsRhsInt32.ssa_block_2
@@ -19434,13 +19507,14 @@ asm_handler_GreaterThanRhsInt32_cold:
mov w9, #32760
cmp w1, w9
b.ne .Lasm_GreaterThanRhsInt32.ssa_block_15
- ldr w1, [x21, #12]
+ ldur w1, [x21, #7]
movk x1, #0x7ffa, lsl #48
- ldr w2, [x21, #4]
+ ldurh w2, [x21, #3]
sub sp, sp, #16
str w2, [sp, #8]
mov x3, x0
mov x4, x1
+ mov w5, #11
add x2, sp, #0
mov x0, x20
sub w1, w21, w26
@@ -19483,7 +19557,7 @@ asm_handler_GreaterThanRhsInt32_cold:
br x10
.Lasm_GreaterThanRhsInt32.ssa_block_15:
fmov d0, x0
- ldr w0, [x21, #12]
+ ldur w0, [x21, #7]
scvtf d1, w0
fcmp d0, d1
b.vs .Lasm_GreaterThanRhsInt32.ssa_block_2
@@ -19497,13 +19571,14 @@ asm_handler_GreaterThanEqualsRhsInt32_cold:
mov w9, #32760
cmp w1, w9
b.ne .Lasm_GreaterThanEqualsRhsInt32.ssa_block_15
- ldr w1, [x21, #12]
+ ldur w1, [x21, #7]
movk x1, #0x7ffa, lsl #48
- ldr w2, [x21, #4]
+ ldurh w2, [x21, #3]
sub sp, sp, #16
str w2, [sp, #8]
mov x3, x0
mov x4, x1
+ mov w5, #11
add x2, sp, #0
mov x0, x20
sub w1, w21, w26
@@ -19546,7 +19621,7 @@ asm_handler_GreaterThanEqualsRhsInt32_cold:
br x10
.Lasm_GreaterThanEqualsRhsInt32.ssa_block_15:
fmov d0, x0
- ldr w0, [x21, #12]
+ ldur w0, [x21, #7]
scvtf d1, w0
fcmp d0, d1
b.vs .Lasm_GreaterThanEqualsRhsInt32.ssa_block_2
@@ -19560,9 +19635,9 @@ asm_handler_JumpLessThanRhsInt32_cold:
mov w9, #32760
cmp w1, w9
b.ne .Lasm_JumpLessThanRhsInt32.ssa_block_15
- ldr w1, [x21, #8]
- ldr w2, [x21, #12]
- ldr w3, [x21, #16]
+ ldur w1, [x21, #5]
+ ldur w2, [x21, #9]
+ ldur w3, [x21, #13]
movk x1, #0x7ffa, lsl #48
mov x4, x2
mov x2, x0
@@ -19593,7 +19668,7 @@ asm_handler_JumpLessThanRhsInt32_cold:
br x10
.Lasm_JumpLessThanRhsInt32.ssa_block_15:
fmov d0, x0
- ldr w0, [x21, #8]
+ ldur w0, [x21, #5]
scvtf d1, w0
fcmp d0, d1
b.vs .Lasm_JumpLessThanRhsInt32.ssa_block_3
@@ -19607,9 +19682,9 @@ asm_handler_JumpLessThanEqualsRhsInt32_cold:
mov w9, #32760
cmp w1, w9
b.ne .Lasm_JumpLessThanEqualsRhsInt32.ssa_block_15
- ldr w1, [x21, #8]
- ldr w2, [x21, #12]
- ldr w3, [x21, #16]
+ ldur w1, [x21, #5]
+ ldur w2, [x21, #9]
+ ldur w3, [x21, #13]
movk x1, #0x7ffa, lsl #48
mov x4, x2
mov x2, x0
@@ -19640,7 +19715,7 @@ asm_handler_JumpLessThanEqualsRhsInt32_cold:
br x10
.Lasm_JumpLessThanEqualsRhsInt32.ssa_block_15:
fmov d0, x0
- ldr w0, [x21, #8]
+ ldur w0, [x21, #5]
scvtf d1, w0
fcmp d0, d1
b.vs .Lasm_JumpLessThanEqualsRhsInt32.ssa_block_3
@@ -19654,9 +19729,9 @@ asm_handler_JumpGreaterThanRhsInt32_cold:
mov w9, #32760
cmp w1, w9
b.ne .Lasm_JumpGreaterThanRhsInt32.ssa_block_15
- ldr w1, [x21, #8]
- ldr w2, [x21, #12]
- ldr w3, [x21, #16]
+ ldur w1, [x21, #5]
+ ldur w2, [x21, #9]
+ ldur w3, [x21, #13]
movk x1, #0x7ffa, lsl #48
mov x4, x2
mov x2, x0
@@ -19687,7 +19762,7 @@ asm_handler_JumpGreaterThanRhsInt32_cold:
br x10
.Lasm_JumpGreaterThanRhsInt32.ssa_block_15:
fmov d0, x0
- ldr w0, [x21, #8]
+ ldur w0, [x21, #5]
scvtf d1, w0
fcmp d0, d1
b.vs .Lasm_JumpGreaterThanRhsInt32.ssa_block_3
@@ -19701,9 +19776,9 @@ asm_handler_JumpGreaterThanEqualsRhsInt32_cold:
mov w9, #32760
cmp w1, w9
b.ne .Lasm_JumpGreaterThanEqualsRhsInt32.ssa_block_15
- ldr w1, [x21, #8]
- ldr w2, [x21, #12]
- ldr w3, [x21, #16]
+ ldur w1, [x21, #5]
+ ldur w2, [x21, #9]
+ ldur w3, [x21, #13]
movk x1, #0x7ffa, lsl #48
mov x4, x2
mov x2, x0
@@ -19734,7 +19809,7 @@ asm_handler_JumpGreaterThanEqualsRhsInt32_cold:
br x10
.Lasm_JumpGreaterThanEqualsRhsInt32.ssa_block_15:
fmov d0, x0
- ldr w0, [x21, #8]
+ ldur w0, [x21, #5]
scvtf d1, w0
fcmp d0, d1
b.vs .Lasm_JumpGreaterThanEqualsRhsInt32.ssa_block_3
@@ -19767,11 +19842,12 @@ asm_handler_StrictlyEqualsRhsInt32_cold:
cmp x9, x10
b.eq .Lasm_StrictlyEqualsRhsInt32.ssa_block_34
.Lasm_StrictlyEqualsRhsInt32.ssa_block_1:
- ldr w2, [x21, #4]
+ ldurh w2, [x21, #3]
sub sp, sp, #16
str w2, [sp, #8]
mov x3, x0
mov x4, x1
+ mov w5, #11
add x2, sp, #0
mov x0, x20
sub w1, w21, w26
@@ -19846,11 +19922,12 @@ asm_handler_StrictlyInequalsRhsInt32_cold:
cmp x9, x10
b.eq .Lasm_StrictlyInequalsRhsInt32.ssa_block_34
.Lasm_StrictlyInequalsRhsInt32.ssa_block_1:
- ldr w2, [x21, #4]
+ ldurh w2, [x21, #3]
sub sp, sp, #16
str w2, [sp, #8]
mov x3, x0
mov x4, x1
+ mov w5, #11
add x2, sp, #0
mov x0, x20
sub w1, w21, w26
@@ -19925,11 +20002,12 @@ asm_handler_LooselyEqualsRhsInt32_cold:
cmp x9, x10
b.eq .Lasm_LooselyEqualsRhsInt32.ssa_block_36
.Lasm_LooselyEqualsRhsInt32.ssa_block_1:
- ldr w2, [x21, #4]
+ ldurh w2, [x21, #3]
sub sp, sp, #16
str w2, [sp, #8]
mov x3, x0
mov x4, x1
+ mov w5, #11
add x2, sp, #0
mov x0, x20
sub w1, w21, w26
@@ -20004,11 +20082,12 @@ asm_handler_LooselyInequalsRhsInt32_cold:
cmp x9, x10
b.eq .Lasm_LooselyInequalsRhsInt32.ssa_block_36
.Lasm_LooselyInequalsRhsInt32.ssa_block_1:
- ldr w2, [x21, #4]
+ ldurh w2, [x21, #3]
sub sp, sp, #16
str w2, [sp, #8]
mov x3, x0
mov x4, x1
+ mov w5, #11
add x2, sp, #0
mov x0, x20
sub w1, w21, w26
@@ -20083,8 +20162,8 @@ asm_handler_JumpStrictlyEqualsRhsInt32_cold:
cmp x9, x10
b.eq .Lasm_JumpStrictlyEqualsRhsInt32.ssa_block_34
.Lasm_JumpStrictlyEqualsRhsInt32.ssa_block_1:
- ldr w2, [x21, #12]
- ldr w3, [x21, #16]
+ ldur w2, [x21, #9]
+ ldur w3, [x21, #13]
mov x4, x2
mov x2, x0
mov x5, x3
@@ -20146,8 +20225,8 @@ asm_handler_JumpStrictlyInequalsRhsInt32_cold:
cmp x9, x10
b.eq .Lasm_JumpStrictlyInequalsRhsInt32.ssa_block_34
.Lasm_JumpStrictlyInequalsRhsInt32.ssa_block_1:
- ldr w2, [x21, #12]
- ldr w3, [x21, #16]
+ ldur w2, [x21, #9]
+ ldur w3, [x21, #13]
mov x4, x2
mov x2, x0
mov x5, x3
@@ -20209,8 +20288,8 @@ asm_handler_JumpLooselyEqualsRhsInt32_cold:
cmp x9, x10
b.eq .Lasm_JumpLooselyEqualsRhsInt32.ssa_block_36
.Lasm_JumpLooselyEqualsRhsInt32.ssa_block_1:
- ldr w2, [x21, #12]
- ldr w3, [x21, #16]
+ ldur w2, [x21, #9]
+ ldur w3, [x21, #13]
mov x4, x2
mov x2, x0
mov x5, x3
@@ -20272,8 +20351,8 @@ asm_handler_JumpLooselyInequalsRhsInt32_cold:
cmp x9, x10
b.eq .Lasm_JumpLooselyInequalsRhsInt32.ssa_block_36
.Lasm_JumpLooselyInequalsRhsInt32.ssa_block_1:
- ldr w2, [x21, #12]
- ldr w3, [x21, #16]
+ ldur w2, [x21, #9]
+ ldur w3, [x21, #13]
mov x4, x2
mov x2, x0
mov x5, x3
@@ -20316,9 +20395,9 @@ asm_handler_JumpLessThanLoopRhsInt32_cold:
mov w9, #32760
cmp w1, w9
b.ne .Lasm_JumpLessThanLoopRhsInt32.ssa_block_15
- ldr w1, [x21, #8]
- ldr w2, [x21, #12]
- ldr w3, [x21, #16]
+ ldur w1, [x21, #5]
+ ldur w2, [x21, #9]
+ ldur w3, [x21, #13]
movk x1, #0x7ffa, lsl #48
mov x4, x2
mov x2, x0
@@ -20349,7 +20428,7 @@ asm_handler_JumpLessThanLoopRhsInt32_cold:
br x10
.Lasm_JumpLessThanLoopRhsInt32.ssa_block_15:
fmov d0, x0
- ldr w0, [x21, #8]
+ ldur w0, [x21, #5]
scvtf d1, w0
fcmp d0, d1
b.vs .Lasm_JumpLessThanLoopRhsInt32.ssa_block_3
@@ -20363,9 +20442,9 @@ asm_handler_JumpLessThanEqualsLoopRhsInt32_cold:
mov w9, #32760
cmp w1, w9
b.ne .Lasm_JumpLessThanEqualsLoopRhsInt32.ssa_block_15
- ldr w1, [x21, #8]
- ldr w2, [x21, #12]
- ldr w3, [x21, #16]
+ ldur w1, [x21, #5]
+ ldur w2, [x21, #9]
+ ldur w3, [x21, #13]
movk x1, #0x7ffa, lsl #48
mov x4, x2
mov x2, x0
@@ -20396,7 +20475,7 @@ asm_handler_JumpLessThanEqualsLoopRhsInt32_cold:
br x10
.Lasm_JumpLessThanEqualsLoopRhsInt32.ssa_block_15:
fmov d0, x0
- ldr w0, [x21, #8]
+ ldur w0, [x21, #5]
scvtf d1, w0
fcmp d0, d1
b.vs .Lasm_JumpLessThanEqualsLoopRhsInt32.ssa_block_3
@@ -20410,9 +20489,9 @@ asm_handler_JumpGreaterThanLoopRhsInt32_cold:
mov w9, #32760
cmp w1, w9
b.ne .Lasm_JumpGreaterThanLoopRhsInt32.ssa_block_15
- ldr w1, [x21, #8]
- ldr w2, [x21, #12]
- ldr w3, [x21, #16]
+ ldur w1, [x21, #5]
+ ldur w2, [x21, #9]
+ ldur w3, [x21, #13]
movk x1, #0x7ffa, lsl #48
mov x4, x2
mov x2, x0
@@ -20443,7 +20522,7 @@ asm_handler_JumpGreaterThanLoopRhsInt32_cold:
br x10
.Lasm_JumpGreaterThanLoopRhsInt32.ssa_block_15:
fmov d0, x0
- ldr w0, [x21, #8]
+ ldur w0, [x21, #5]
scvtf d1, w0
fcmp d0, d1
b.vs .Lasm_JumpGreaterThanLoopRhsInt32.ssa_block_3
@@ -20457,9 +20536,9 @@ asm_handler_JumpGreaterThanEqualsLoopRhsInt32_cold:
mov w9, #32760
cmp w1, w9
b.ne .Lasm_JumpGreaterThanEqualsLoopRhsInt32.ssa_block_15
- ldr w1, [x21, #8]
- ldr w2, [x21, #12]
- ldr w3, [x21, #16]
+ ldur w1, [x21, #5]
+ ldur w2, [x21, #9]
+ ldur w3, [x21, #13]
movk x1, #0x7ffa, lsl #48
mov x4, x2
mov x2, x0
@@ -20490,7 +20569,7 @@ asm_handler_JumpGreaterThanEqualsLoopRhsInt32_cold:
br x10
.Lasm_JumpGreaterThanEqualsLoopRhsInt32.ssa_block_15:
fmov d0, x0
- ldr w0, [x21, #8]
+ ldur w0, [x21, #5]
scvtf d1, w0
fcmp d0, d1
b.vs .Lasm_JumpGreaterThanEqualsLoopRhsInt32.ssa_block_3
@@ -20523,8 +20602,8 @@ asm_handler_JumpStrictlyEqualsLoopRhsInt32_cold:
cmp x9, x10
b.eq .Lasm_JumpStrictlyEqualsLoopRhsInt32.ssa_block_34
.Lasm_JumpStrictlyEqualsLoopRhsInt32.ssa_block_1:
- ldr w2, [x21, #12]
- ldr w3, [x21, #16]
+ ldur w2, [x21, #9]
+ ldur w3, [x21, #13]
mov x4, x2
mov x2, x0
mov x5, x3
@@ -20586,8 +20665,8 @@ asm_handler_JumpStrictlyInequalsLoopRhsInt32_cold:
cmp x9, x10
b.eq .Lasm_JumpStrictlyInequalsLoopRhsInt32.ssa_block_34
.Lasm_JumpStrictlyInequalsLoopRhsInt32.ssa_block_1:
- ldr w2, [x21, #12]
- ldr w3, [x21, #16]
+ ldur w2, [x21, #9]
+ ldur w3, [x21, #13]
mov x4, x2
mov x2, x0
mov x5, x3
@@ -20649,8 +20728,8 @@ asm_handler_JumpLooselyEqualsLoopRhsInt32_cold:
cmp x9, x10
b.eq .Lasm_JumpLooselyEqualsLoopRhsInt32.ssa_block_36
.Lasm_JumpLooselyEqualsLoopRhsInt32.ssa_block_1:
- ldr w2, [x21, #12]
- ldr w3, [x21, #16]
+ ldur w2, [x21, #9]
+ ldur w3, [x21, #13]
mov x4, x2
mov x2, x0
mov x5, x3
@@ -20712,8 +20791,8 @@ asm_handler_JumpLooselyInequalsLoopRhsInt32_cold:
cmp x9, x10
b.eq .Lasm_JumpLooselyInequalsLoopRhsInt32.ssa_block_36
.Lasm_JumpLooselyInequalsLoopRhsInt32.ssa_block_1:
- ldr w2, [x21, #12]
- ldr w3, [x21, #16]
+ ldur w2, [x21, #9]
+ ldur w3, [x21, #13]
mov x4, x2
mov x2, x0
mov x5, x3
@@ -20925,7 +21004,7 @@ asm_assertion_failure_traps:
brk #0
.Lasm_GetById.assert_failure_1:
brk #0
-.Lasm_GetById.assert_predicate_failure_338:
+.Lasm_GetById.assert_predicate_failure_337:
brk #0
.Lasm_GetById.assert_failure_2:
brk #0
@@ -20955,9 +21034,9 @@ asm_assertion_failure_traps:
brk #0
.Lasm_GetById.assert_failure_10:
brk #0
-.Lasm_GetById.assert_predicate_failure_268:
+.Lasm_GetById.assert_predicate_failure_267:
brk #0
-.Lasm_GetById.assert_predicate_failure_277:
+.Lasm_GetById.assert_predicate_failure_276:
brk #0
.Lasm_GetById.assert_predicate_failure_26:
brk #0
@@ -21061,29 +21140,29 @@ asm_assertion_failure_traps:
brk #0
.Lasm_Call.assert_failure_3:
brk #0
-.Lasm_Call.assert_predicate_failure_353:
+.Lasm_Call.assert_predicate_failure_357:
brk #0
-.Lasm_Call.assert_predicate_failure_359:
+.Lasm_Call.assert_predicate_failure_363:
brk #0
.Lasm_Call.assert_failure_4:
brk #0
.Lasm_Call.assert_failure_5:
brk #0
-.Lasm_Call.assert_predicate_failure_374:
+.Lasm_Call.assert_predicate_failure_378:
brk #0
.Lasm_Call.assert_failure_6:
brk #0
.Lasm_Call.assert_failure_7:
brk #0
-.Lasm_Call.assert_predicate_failure_400:
+.Lasm_Call.assert_predicate_failure_404:
brk #0
.Lasm_Call.assert_failure_8:
brk #0
.Lasm_Call.assert_failure_9:
brk #0
-.Lasm_Call.assert_predicate_failure_266:
+.Lasm_Call.assert_predicate_failure_268:
brk #0
-.Lasm_Call.assert_predicate_failure_289:
+.Lasm_Call.assert_predicate_failure_292:
brk #0
.Lasm_Call.assert_failure_10:
brk #0
@@ -21107,13 +21186,13 @@ asm_assertion_failure_traps:
brk #0
.Lasm_Call.assert_failure_16:
brk #0
-.Lasm_Call.assert_predicate_failure_324:
+.Lasm_Call.assert_predicate_failure_328:
brk #0
.Lasm_Call.assert_failure_17:
brk #0
-.Lasm_Call.assert_predicate_failure_331:
+.Lasm_Call.assert_predicate_failure_335:
brk #0
-.Lasm_Call.assert_predicate_failure_337:
+.Lasm_Call.assert_predicate_failure_341:
brk #0
.Lasm_Call.assert_predicate_failure_11:
brk #0
@@ -21121,9 +21200,9 @@ asm_assertion_failure_traps:
brk #0
.Lasm_Call.assert_failure_30:
brk #0
-.Lasm_Call.assert_predicate_failure_142:
+.Lasm_Call.assert_predicate_failure_143:
brk #0
-.Lasm_Call.assert_predicate_failure_148:
+.Lasm_Call.assert_predicate_failure_149:
brk #0
.Lasm_Call.assert_failure_31:
brk #0
diff --git a/Libraries/LibJS/Flap/tests/interpreter-assembly/x86_64.S b/Libraries/LibJS/Flap/tests/interpreter-assembly/x86_64.S
index f22c0e4d424..7bae455b2a8 100644
--- a/Libraries/LibJS/Flap/tests/interpreter-assembly/x86_64.S
+++ b/Libraries/LibJS/Flap/tests/interpreter-assembly/x86_64.S
@@ -1669,28 +1669,28 @@ asm_handler_Enter:
jmp .Lasm_Enter.ssa_block_8
.Lasm_Enter.ssa_block_7:
mov BYTE PTR [rbx - 49], 1
- add r13d, 8
+ add r13d, 1
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_Enter_hot_end:
.p2align 6
asm_handler_Mov:
- mov eax, DWORD PTR [r14 + r13 + 4]
- mov ecx, DWORD PTR [r14 + r13 + 8]
+ movzx eax, WORD PTR [r14 + r13 + 1]
+ movzx ecx, WORD PTR [r14 + r13 + 3]
mov rcx, QWORD PTR [rbx + rcx * 8]
mov QWORD PTR [rbx + rax * 8], rcx
- add r13d, 16
+ add r13d, 5
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_Mov_hot_end:
.p2align 6
asm_handler_Add:
- mov ecx, DWORD PTR [r14 + r13 + 8]
- mov eax, DWORD PTR [r14 + r13 + 12]
- mov rdx, QWORD PTR [rbx + rcx * 8]
- mov rcx, QWORD PTR [rbx + rax * 8]
+ movzx eax, WORD PTR [r14 + r13 + 5]
+ movzx ecx, WORD PTR [r14 + r13 + 7]
+ mov rdx, QWORD PTR [rbx + rax * 8]
+ mov rcx, QWORD PTR [rbx + rcx * 8]
mov rax, rdx
shr rax, 48
cmp ax, 32762
@@ -1703,19 +1703,19 @@ asm_handler_Add:
jo .Lasm_Add.ssa_checked_6_failure
movabs r11, 9221683186994511872
or rdx, r11
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rdx
- add r13d, 16
+ add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_Add_hot_end:
.p2align 6
asm_handler_Sub:
- mov ecx, DWORD PTR [r14 + r13 + 8]
- mov eax, DWORD PTR [r14 + r13 + 12]
- mov rdx, QWORD PTR [rbx + rcx * 8]
- mov rcx, QWORD PTR [rbx + rax * 8]
+ movzx eax, WORD PTR [r14 + r13 + 5]
+ movzx ecx, WORD PTR [r14 + r13 + 7]
+ mov rdx, QWORD PTR [rbx + rax * 8]
+ mov rcx, QWORD PTR [rbx + rcx * 8]
mov rax, rdx
shr rax, 48
cmp ax, 32762
@@ -1728,19 +1728,19 @@ asm_handler_Sub:
jo .Lasm_Sub.ssa_checked_6_failure
movabs r11, 9221683186994511872
or rdx, r11
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rdx
- add r13d, 16
+ add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_Sub_hot_end:
.p2align 6
asm_handler_Mul:
- mov ecx, DWORD PTR [r14 + r13 + 8]
- mov eax, DWORD PTR [r14 + r13 + 12]
- mov rdx, QWORD PTR [rbx + rcx * 8]
- mov rcx, QWORD PTR [rbx + rax * 8]
+ movzx eax, WORD PTR [r14 + r13 + 5]
+ movzx ecx, WORD PTR [r14 + r13 + 7]
+ mov rdx, QWORD PTR [rbx + rax * 8]
+ mov rcx, QWORD PTR [rbx + rcx * 8]
mov rax, rdx
shr rax, 48
cmp ax, 32762
@@ -1759,23 +1759,23 @@ asm_handler_Mul:
.Lasm_Mul.ssa_block_13:
movabs r11, 9221683186994511872
or rax, r11
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 16
+ add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_Mul_hot_end:
.p2align 6
asm_handler_Jump:
- mov r13d, DWORD PTR [r14 + r13 + 4]
+ mov r13d, DWORD PTR [r14 + r13 + 1]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_Jump_hot_end:
.p2align 6
asm_handler_JumpIf:
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 1]
mov rcx, QWORD PTR [rbx + rax * 8]
mov rax, rcx
shr rax, 48
@@ -1796,7 +1796,7 @@ asm_handler_JumpIf:
test eax, 8192
jnz .Lasm_JumpIf.ssa_block_1
.Lasm_JumpIf.ssa_block_2:
- mov r13d, DWORD PTR [r14 + r13 + 8]
+ mov r13d, DWORD PTR [r14 + r13 + 3]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_JumpIf.ssa_block_3:
@@ -1807,7 +1807,7 @@ asm_handler_JumpIf:
test rax, rax
jnz .Lasm_JumpIf.ssa_block_2
.Lasm_JumpIf.ssa_block_1:
- mov r13d, DWORD PTR [r14 + r13 + 12]
+ mov r13d, DWORD PTR [r14 + r13 + 7]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_JumpIf.ssa_block_4:
@@ -1818,7 +1818,7 @@ asm_handler_JumpIf_hot_end:
.p2align 6
asm_handler_JumpTrue:
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 1]
mov rcx, QWORD PTR [rbx + rax * 8]
mov rax, rcx
shr rax, 48
@@ -1826,7 +1826,7 @@ asm_handler_JumpTrue:
jne .Lasm_JumpTrue.ssa_block_6
test ecx, 1
jnz .Lasm_JumpTrue.ssa_block_1
- add r13d, 16
+ add r13d, 7
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_JumpTrue.ssa_block_6:
@@ -1840,7 +1840,7 @@ asm_handler_JumpTrue:
movzx eax, WORD PTR [rcx + 12]
test eax, 8192
jz .Lasm_JumpTrue.ssa_block_1
- add r13d, 16
+ add r13d, 7
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_JumpTrue.ssa_block_2:
@@ -1850,24 +1850,24 @@ asm_handler_JumpTrue:
jae .Lasm_JumpTrue.assert_predicate_failure_6
test rax, rax
jnz .Lasm_JumpTrue.ssa_block_1
- add r13d, 16
+ add r13d, 7
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_JumpTrue.ssa_block_3:
test ecx, ecx
jnz .Lasm_JumpTrue.ssa_block_1
- add r13d, 16
+ add r13d, 7
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_JumpTrue.ssa_block_1:
- mov r13d, DWORD PTR [r14 + r13 + 8]
+ mov r13d, DWORD PTR [r14 + r13 + 3]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_JumpTrue_hot_end:
.p2align 6
asm_handler_JumpFalse:
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 1]
mov rcx, QWORD PTR [rbx + rax * 8]
mov rax, rcx
shr rax, 48
@@ -1875,7 +1875,7 @@ asm_handler_JumpFalse:
jne .Lasm_JumpFalse.ssa_block_6
test ecx, 1
jz .Lasm_JumpFalse.ssa_block_1
- add r13d, 16
+ add r13d, 7
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_JumpFalse.ssa_block_6:
@@ -1889,7 +1889,7 @@ asm_handler_JumpFalse:
movzx eax, WORD PTR [rcx + 12]
test eax, 8192
jnz .Lasm_JumpFalse.ssa_block_1
- add r13d, 16
+ add r13d, 7
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_JumpFalse.ssa_block_2:
@@ -1899,60 +1899,60 @@ asm_handler_JumpFalse:
jae .Lasm_JumpFalse.assert_predicate_failure_6
test rax, rax
jz .Lasm_JumpFalse.ssa_block_1
- add r13d, 16
+ add r13d, 7
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_JumpFalse.ssa_block_3:
test ecx, ecx
jz .Lasm_JumpFalse.ssa_block_1
- add r13d, 16
+ add r13d, 7
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_JumpFalse.ssa_block_1:
- mov r13d, DWORD PTR [r14 + r13 + 8]
+ mov r13d, DWORD PTR [r14 + r13 + 3]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_JumpFalse_hot_end:
.p2align 6
asm_handler_JumpNullish:
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 1]
mov rax, QWORD PTR [rbx + rax * 8]
shr rax, 48
and ax, 65534
cmp ax, 32766
jne .Lasm_JumpNullish.ssa_block_2
- mov r13d, DWORD PTR [r14 + r13 + 8]
+ mov r13d, DWORD PTR [r14 + r13 + 3]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_JumpNullish.ssa_block_2:
- mov r13d, DWORD PTR [r14 + r13 + 12]
+ mov r13d, DWORD PTR [r14 + r13 + 7]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_JumpNullish_hot_end:
.p2align 6
asm_handler_JumpUndefined:
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 1]
mov rax, QWORD PTR [rbx + rax * 8]
movabs rcx, 9222809086901354496
cmp rax, rcx
jne .Lasm_JumpUndefined.ssa_block_2
- mov r13d, DWORD PTR [r14 + r13 + 8]
+ mov r13d, DWORD PTR [r14 + r13 + 3]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_JumpUndefined.ssa_block_2:
- mov r13d, DWORD PTR [r14 + r13 + 12]
+ mov r13d, DWORD PTR [r14 + r13 + 7]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_JumpUndefined_hot_end:
.p2align 6
asm_handler_JumpLessThan:
- mov ecx, DWORD PTR [r14 + r13 + 4]
- mov eax, DWORD PTR [r14 + r13 + 8]
- mov rdx, QWORD PTR [rbx + rcx * 8]
- mov rcx, QWORD PTR [rbx + rax * 8]
+ movzx eax, WORD PTR [r14 + r13 + 3]
+ movzx ecx, WORD PTR [r14 + r13 + 5]
+ mov rdx, QWORD PTR [rbx + rax * 8]
+ mov rcx, QWORD PTR [rbx + rcx * 8]
mov rax, rdx
shr rax, 48
cmp ax, 32762
@@ -1965,21 +1965,21 @@ asm_handler_JumpLessThan:
cmp eax, ecx
jge .Lasm_JumpLessThan.ssa_block_3
.Lasm_JumpLessThan.ssa_block_2:
- mov r13d, DWORD PTR [r14 + r13 + 12]
+ mov r13d, DWORD PTR [r14 + r13 + 7]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_JumpLessThan.ssa_block_3:
- mov r13d, DWORD PTR [r14 + r13 + 16]
+ mov r13d, DWORD PTR [r14 + r13 + 11]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_JumpLessThan_hot_end:
.p2align 6
asm_handler_JumpGreaterThan:
- mov ecx, DWORD PTR [r14 + r13 + 4]
- mov eax, DWORD PTR [r14 + r13 + 8]
- mov rdx, QWORD PTR [rbx + rcx * 8]
- mov rcx, QWORD PTR [rbx + rax * 8]
+ movzx eax, WORD PTR [r14 + r13 + 3]
+ movzx ecx, WORD PTR [r14 + r13 + 5]
+ mov rdx, QWORD PTR [rbx + rax * 8]
+ mov rcx, QWORD PTR [rbx + rcx * 8]
mov rax, rdx
shr rax, 48
cmp ax, 32762
@@ -1992,21 +1992,21 @@ asm_handler_JumpGreaterThan:
cmp eax, ecx
jle .Lasm_JumpGreaterThan.ssa_block_3
.Lasm_JumpGreaterThan.ssa_block_2:
- mov r13d, DWORD PTR [r14 + r13 + 12]
+ mov r13d, DWORD PTR [r14 + r13 + 7]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_JumpGreaterThan.ssa_block_3:
- mov r13d, DWORD PTR [r14 + r13 + 16]
+ mov r13d, DWORD PTR [r14 + r13 + 11]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_JumpGreaterThan_hot_end:
.p2align 6
asm_handler_JumpLessThanEquals:
- mov ecx, DWORD PTR [r14 + r13 + 4]
- mov eax, DWORD PTR [r14 + r13 + 8]
- mov rdx, QWORD PTR [rbx + rcx * 8]
- mov rcx, QWORD PTR [rbx + rax * 8]
+ movzx eax, WORD PTR [r14 + r13 + 3]
+ movzx ecx, WORD PTR [r14 + r13 + 5]
+ mov rdx, QWORD PTR [rbx + rax * 8]
+ mov rcx, QWORD PTR [rbx + rcx * 8]
mov rax, rdx
shr rax, 48
cmp ax, 32762
@@ -2019,21 +2019,21 @@ asm_handler_JumpLessThanEquals:
cmp eax, ecx
jg .Lasm_JumpLessThanEquals.ssa_block_3
.Lasm_JumpLessThanEquals.ssa_block_2:
- mov r13d, DWORD PTR [r14 + r13 + 12]
+ mov r13d, DWORD PTR [r14 + r13 + 7]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_JumpLessThanEquals.ssa_block_3:
- mov r13d, DWORD PTR [r14 + r13 + 16]
+ mov r13d, DWORD PTR [r14 + r13 + 11]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_JumpLessThanEquals_hot_end:
.p2align 6
asm_handler_JumpGreaterThanEquals:
- mov ecx, DWORD PTR [r14 + r13 + 4]
- mov eax, DWORD PTR [r14 + r13 + 8]
- mov rdx, QWORD PTR [rbx + rcx * 8]
- mov rcx, QWORD PTR [rbx + rax * 8]
+ movzx eax, WORD PTR [r14 + r13 + 3]
+ movzx ecx, WORD PTR [r14 + r13 + 5]
+ mov rdx, QWORD PTR [rbx + rax * 8]
+ mov rcx, QWORD PTR [rbx + rcx * 8]
mov rax, rdx
shr rax, 48
cmp ax, 32762
@@ -2046,21 +2046,21 @@ asm_handler_JumpGreaterThanEquals:
cmp eax, ecx
jl .Lasm_JumpGreaterThanEquals.ssa_block_3
.Lasm_JumpGreaterThanEquals.ssa_block_2:
- mov r13d, DWORD PTR [r14 + r13 + 12]
+ mov r13d, DWORD PTR [r14 + r13 + 7]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_JumpGreaterThanEquals.ssa_block_3:
- mov r13d, DWORD PTR [r14 + r13 + 16]
+ mov r13d, DWORD PTR [r14 + r13 + 11]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_JumpGreaterThanEquals_hot_end:
.p2align 6
asm_handler_JumpLooselyEquals:
- mov ecx, DWORD PTR [r14 + r13 + 4]
- mov eax, DWORD PTR [r14 + r13 + 8]
- mov rcx, QWORD PTR [rbx + rcx * 8]
- mov rdx, QWORD PTR [rbx + rax * 8]
+ movzx eax, WORD PTR [r14 + r13 + 3]
+ movzx edx, WORD PTR [r14 + r13 + 5]
+ mov rcx, QWORD PTR [rbx + rax * 8]
+ mov rdx, QWORD PTR [rbx + rdx * 8]
mov rsi, rdx
shr rsi, 48
cmp rsi, 32762
@@ -2134,21 +2134,21 @@ asm_handler_JumpLooselyEquals:
jne .Lasm_JumpLooselyEquals.ssa_block_22
jmp .Lasm_JumpLooselyEquals.ssa_block_1
.Lasm_JumpLooselyEquals.ssa_block_3:
- mov r13d, DWORD PTR [r14 + r13 + 16]
+ mov r13d, DWORD PTR [r14 + r13 + 11]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_JumpLooselyEquals.ssa_block_2:
- mov r13d, DWORD PTR [r14 + r13 + 12]
+ mov r13d, DWORD PTR [r14 + r13 + 7]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_JumpLooselyEquals_hot_end:
.p2align 6
asm_handler_JumpLooselyInequals:
- mov ecx, DWORD PTR [r14 + r13 + 4]
- mov eax, DWORD PTR [r14 + r13 + 8]
- mov rcx, QWORD PTR [rbx + rcx * 8]
- mov rdx, QWORD PTR [rbx + rax * 8]
+ movzx eax, WORD PTR [r14 + r13 + 3]
+ movzx edx, WORD PTR [r14 + r13 + 5]
+ mov rcx, QWORD PTR [rbx + rax * 8]
+ mov rdx, QWORD PTR [rbx + rdx * 8]
mov rsi, rdx
shr rsi, 48
cmp rsi, 32762
@@ -2222,21 +2222,21 @@ asm_handler_JumpLooselyInequals:
jne .Lasm_JumpLooselyInequals.ssa_block_22
jmp .Lasm_JumpLooselyInequals.ssa_block_1
.Lasm_JumpLooselyInequals.ssa_block_2:
- mov r13d, DWORD PTR [r14 + r13 + 12]
+ mov r13d, DWORD PTR [r14 + r13 + 7]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_JumpLooselyInequals.ssa_block_3:
- mov r13d, DWORD PTR [r14 + r13 + 16]
+ mov r13d, DWORD PTR [r14 + r13 + 11]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_JumpLooselyInequals_hot_end:
.p2align 6
asm_handler_JumpStrictlyEquals:
- mov ecx, DWORD PTR [r14 + r13 + 4]
- mov eax, DWORD PTR [r14 + r13 + 8]
- mov rcx, QWORD PTR [rbx + rcx * 8]
- mov rdx, QWORD PTR [rbx + rax * 8]
+ movzx eax, WORD PTR [r14 + r13 + 3]
+ movzx edx, WORD PTR [r14 + r13 + 5]
+ mov rcx, QWORD PTR [rbx + rax * 8]
+ mov rdx, QWORD PTR [rbx + rdx * 8]
mov rsi, rdx
shr rsi, 48
cmp rsi, 32762
@@ -2312,21 +2312,21 @@ asm_handler_JumpStrictlyEquals:
cmp si, 32760
jne .Lasm_JumpStrictlyEquals.ssa_block_20
.Lasm_JumpStrictlyEquals.ssa_block_3:
- mov r13d, DWORD PTR [r14 + r13 + 16]
+ mov r13d, DWORD PTR [r14 + r13 + 11]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_JumpStrictlyEquals.ssa_block_2:
- mov r13d, DWORD PTR [r14 + r13 + 12]
+ mov r13d, DWORD PTR [r14 + r13 + 7]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_JumpStrictlyEquals_hot_end:
.p2align 6
asm_handler_JumpStrictlyInequals:
- mov ecx, DWORD PTR [r14 + r13 + 4]
- mov eax, DWORD PTR [r14 + r13 + 8]
- mov rcx, QWORD PTR [rbx + rcx * 8]
- mov rdx, QWORD PTR [rbx + rax * 8]
+ movzx eax, WORD PTR [r14 + r13 + 3]
+ movzx edx, WORD PTR [r14 + r13 + 5]
+ mov rcx, QWORD PTR [rbx + rax * 8]
+ mov rdx, QWORD PTR [rbx + rdx * 8]
mov rsi, rdx
shr rsi, 48
cmp rsi, 32762
@@ -2402,25 +2402,25 @@ asm_handler_JumpStrictlyInequals:
cmp si, 32760
jne .Lasm_JumpStrictlyInequals.ssa_block_20
.Lasm_JumpStrictlyInequals.ssa_block_2:
- mov r13d, DWORD PTR [r14 + r13 + 12]
+ mov r13d, DWORD PTR [r14 + r13 + 7]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_JumpStrictlyInequals.ssa_block_3:
- mov r13d, DWORD PTR [r14 + r13 + 16]
+ mov r13d, DWORD PTR [r14 + r13 + 11]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_JumpStrictlyInequals_hot_end:
.p2align 6
asm_handler_JumpLoop:
- mov r13d, DWORD PTR [r14 + r13 + 4]
+ mov r13d, DWORD PTR [r14 + r13 + 1]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_JumpLoop_hot_end:
.p2align 6
asm_handler_JumpIfLoop:
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 1]
mov rcx, QWORD PTR [rbx + rax * 8]
mov rax, rcx
shr rax, 48
@@ -2441,7 +2441,7 @@ asm_handler_JumpIfLoop:
test eax, 8192
jnz .Lasm_JumpIfLoop.ssa_block_1
.Lasm_JumpIfLoop.ssa_block_2:
- mov r13d, DWORD PTR [r14 + r13 + 8]
+ mov r13d, DWORD PTR [r14 + r13 + 3]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_JumpIfLoop.ssa_block_3:
@@ -2452,7 +2452,7 @@ asm_handler_JumpIfLoop:
test rax, rax
jnz .Lasm_JumpIfLoop.ssa_block_2
.Lasm_JumpIfLoop.ssa_block_1:
- mov r13d, DWORD PTR [r14 + r13 + 12]
+ mov r13d, DWORD PTR [r14 + r13 + 7]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_JumpIfLoop.ssa_block_4:
@@ -2463,7 +2463,7 @@ asm_handler_JumpIfLoop_hot_end:
.p2align 6
asm_handler_JumpTrueLoop:
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 1]
mov rcx, QWORD PTR [rbx + rax * 8]
mov rax, rcx
shr rax, 48
@@ -2471,7 +2471,7 @@ asm_handler_JumpTrueLoop:
jne .Lasm_JumpTrueLoop.ssa_block_6
test ecx, 1
jnz .Lasm_JumpTrueLoop.ssa_block_1
- add r13d, 16
+ add r13d, 7
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_JumpTrueLoop.ssa_block_6:
@@ -2485,7 +2485,7 @@ asm_handler_JumpTrueLoop:
movzx eax, WORD PTR [rcx + 12]
test eax, 8192
jz .Lasm_JumpTrueLoop.ssa_block_1
- add r13d, 16
+ add r13d, 7
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_JumpTrueLoop.ssa_block_2:
@@ -2495,24 +2495,24 @@ asm_handler_JumpTrueLoop:
jae .Lasm_JumpTrueLoop.assert_predicate_failure_6
test rax, rax
jnz .Lasm_JumpTrueLoop.ssa_block_1
- add r13d, 16
+ add r13d, 7
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_JumpTrueLoop.ssa_block_3:
test ecx, ecx
jnz .Lasm_JumpTrueLoop.ssa_block_1
- add r13d, 16
+ add r13d, 7
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_JumpTrueLoop.ssa_block_1:
- mov r13d, DWORD PTR [r14 + r13 + 8]
+ mov r13d, DWORD PTR [r14 + r13 + 3]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_JumpTrueLoop_hot_end:
.p2align 6
asm_handler_JumpFalseLoop:
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 1]
mov rcx, QWORD PTR [rbx + rax * 8]
mov rax, rcx
shr rax, 48
@@ -2520,7 +2520,7 @@ asm_handler_JumpFalseLoop:
jne .Lasm_JumpFalseLoop.ssa_block_6
test ecx, 1
jz .Lasm_JumpFalseLoop.ssa_block_1
- add r13d, 16
+ add r13d, 7
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_JumpFalseLoop.ssa_block_6:
@@ -2534,7 +2534,7 @@ asm_handler_JumpFalseLoop:
movzx eax, WORD PTR [rcx + 12]
test eax, 8192
jnz .Lasm_JumpFalseLoop.ssa_block_1
- add r13d, 16
+ add r13d, 7
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_JumpFalseLoop.ssa_block_2:
@@ -2544,27 +2544,27 @@ asm_handler_JumpFalseLoop:
jae .Lasm_JumpFalseLoop.assert_predicate_failure_6
test rax, rax
jz .Lasm_JumpFalseLoop.ssa_block_1
- add r13d, 16
+ add r13d, 7
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_JumpFalseLoop.ssa_block_3:
test ecx, ecx
jz .Lasm_JumpFalseLoop.ssa_block_1
- add r13d, 16
+ add r13d, 7
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_JumpFalseLoop.ssa_block_1:
- mov r13d, DWORD PTR [r14 + r13 + 8]
+ mov r13d, DWORD PTR [r14 + r13 + 3]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_JumpFalseLoop_hot_end:
.p2align 6
asm_handler_JumpLessThanLoop:
- mov ecx, DWORD PTR [r14 + r13 + 4]
- mov eax, DWORD PTR [r14 + r13 + 8]
- mov rdx, QWORD PTR [rbx + rcx * 8]
- mov rcx, QWORD PTR [rbx + rax * 8]
+ movzx eax, WORD PTR [r14 + r13 + 3]
+ movzx ecx, WORD PTR [r14 + r13 + 5]
+ mov rdx, QWORD PTR [rbx + rax * 8]
+ mov rcx, QWORD PTR [rbx + rcx * 8]
mov rax, rdx
shr rax, 48
cmp ax, 32762
@@ -2577,21 +2577,21 @@ asm_handler_JumpLessThanLoop:
cmp eax, ecx
jge .Lasm_JumpLessThanLoop.ssa_block_3
.Lasm_JumpLessThanLoop.ssa_block_2:
- mov r13d, DWORD PTR [r14 + r13 + 12]
+ mov r13d, DWORD PTR [r14 + r13 + 7]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_JumpLessThanLoop.ssa_block_3:
- mov r13d, DWORD PTR [r14 + r13 + 16]
+ mov r13d, DWORD PTR [r14 + r13 + 11]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_JumpLessThanLoop_hot_end:
.p2align 6
asm_handler_JumpGreaterThanLoop:
- mov ecx, DWORD PTR [r14 + r13 + 4]
- mov eax, DWORD PTR [r14 + r13 + 8]
- mov rdx, QWORD PTR [rbx + rcx * 8]
- mov rcx, QWORD PTR [rbx + rax * 8]
+ movzx eax, WORD PTR [r14 + r13 + 3]
+ movzx ecx, WORD PTR [r14 + r13 + 5]
+ mov rdx, QWORD PTR [rbx + rax * 8]
+ mov rcx, QWORD PTR [rbx + rcx * 8]
mov rax, rdx
shr rax, 48
cmp ax, 32762
@@ -2604,21 +2604,21 @@ asm_handler_JumpGreaterThanLoop:
cmp eax, ecx
jle .Lasm_JumpGreaterThanLoop.ssa_block_3
.Lasm_JumpGreaterThanLoop.ssa_block_2:
- mov r13d, DWORD PTR [r14 + r13 + 12]
+ mov r13d, DWORD PTR [r14 + r13 + 7]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_JumpGreaterThanLoop.ssa_block_3:
- mov r13d, DWORD PTR [r14 + r13 + 16]
+ mov r13d, DWORD PTR [r14 + r13 + 11]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_JumpGreaterThanLoop_hot_end:
.p2align 6
asm_handler_JumpLessThanEqualsLoop:
- mov ecx, DWORD PTR [r14 + r13 + 4]
- mov eax, DWORD PTR [r14 + r13 + 8]
- mov rdx, QWORD PTR [rbx + rcx * 8]
- mov rcx, QWORD PTR [rbx + rax * 8]
+ movzx eax, WORD PTR [r14 + r13 + 3]
+ movzx ecx, WORD PTR [r14 + r13 + 5]
+ mov rdx, QWORD PTR [rbx + rax * 8]
+ mov rcx, QWORD PTR [rbx + rcx * 8]
mov rax, rdx
shr rax, 48
cmp ax, 32762
@@ -2631,21 +2631,21 @@ asm_handler_JumpLessThanEqualsLoop:
cmp eax, ecx
jg .Lasm_JumpLessThanEqualsLoop.ssa_block_3
.Lasm_JumpLessThanEqualsLoop.ssa_block_2:
- mov r13d, DWORD PTR [r14 + r13 + 12]
+ mov r13d, DWORD PTR [r14 + r13 + 7]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_JumpLessThanEqualsLoop.ssa_block_3:
- mov r13d, DWORD PTR [r14 + r13 + 16]
+ mov r13d, DWORD PTR [r14 + r13 + 11]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_JumpLessThanEqualsLoop_hot_end:
.p2align 6
asm_handler_JumpGreaterThanEqualsLoop:
- mov ecx, DWORD PTR [r14 + r13 + 4]
- mov eax, DWORD PTR [r14 + r13 + 8]
- mov rdx, QWORD PTR [rbx + rcx * 8]
- mov rcx, QWORD PTR [rbx + rax * 8]
+ movzx eax, WORD PTR [r14 + r13 + 3]
+ movzx ecx, WORD PTR [r14 + r13 + 5]
+ mov rdx, QWORD PTR [rbx + rax * 8]
+ mov rcx, QWORD PTR [rbx + rcx * 8]
mov rax, rdx
shr rax, 48
cmp ax, 32762
@@ -2658,21 +2658,21 @@ asm_handler_JumpGreaterThanEqualsLoop:
cmp eax, ecx
jl .Lasm_JumpGreaterThanEqualsLoop.ssa_block_3
.Lasm_JumpGreaterThanEqualsLoop.ssa_block_2:
- mov r13d, DWORD PTR [r14 + r13 + 12]
+ mov r13d, DWORD PTR [r14 + r13 + 7]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_JumpGreaterThanEqualsLoop.ssa_block_3:
- mov r13d, DWORD PTR [r14 + r13 + 16]
+ mov r13d, DWORD PTR [r14 + r13 + 11]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_JumpGreaterThanEqualsLoop_hot_end:
.p2align 6
asm_handler_JumpLooselyEqualsLoop:
- mov ecx, DWORD PTR [r14 + r13 + 4]
- mov eax, DWORD PTR [r14 + r13 + 8]
- mov rcx, QWORD PTR [rbx + rcx * 8]
- mov rdx, QWORD PTR [rbx + rax * 8]
+ movzx eax, WORD PTR [r14 + r13 + 3]
+ movzx edx, WORD PTR [r14 + r13 + 5]
+ mov rcx, QWORD PTR [rbx + rax * 8]
+ mov rdx, QWORD PTR [rbx + rdx * 8]
mov rsi, rdx
shr rsi, 48
cmp rsi, 32762
@@ -2746,21 +2746,21 @@ asm_handler_JumpLooselyEqualsLoop:
jne .Lasm_JumpLooselyEqualsLoop.ssa_block_22
jmp .Lasm_JumpLooselyEqualsLoop.ssa_block_1
.Lasm_JumpLooselyEqualsLoop.ssa_block_3:
- mov r13d, DWORD PTR [r14 + r13 + 16]
+ mov r13d, DWORD PTR [r14 + r13 + 11]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_JumpLooselyEqualsLoop.ssa_block_2:
- mov r13d, DWORD PTR [r14 + r13 + 12]
+ mov r13d, DWORD PTR [r14 + r13 + 7]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_JumpLooselyEqualsLoop_hot_end:
.p2align 6
asm_handler_JumpLooselyInequalsLoop:
- mov ecx, DWORD PTR [r14 + r13 + 4]
- mov eax, DWORD PTR [r14 + r13 + 8]
- mov rcx, QWORD PTR [rbx + rcx * 8]
- mov rdx, QWORD PTR [rbx + rax * 8]
+ movzx eax, WORD PTR [r14 + r13 + 3]
+ movzx edx, WORD PTR [r14 + r13 + 5]
+ mov rcx, QWORD PTR [rbx + rax * 8]
+ mov rdx, QWORD PTR [rbx + rdx * 8]
mov rsi, rdx
shr rsi, 48
cmp rsi, 32762
@@ -2834,21 +2834,21 @@ asm_handler_JumpLooselyInequalsLoop:
jne .Lasm_JumpLooselyInequalsLoop.ssa_block_22
jmp .Lasm_JumpLooselyInequalsLoop.ssa_block_1
.Lasm_JumpLooselyInequalsLoop.ssa_block_2:
- mov r13d, DWORD PTR [r14 + r13 + 12]
+ mov r13d, DWORD PTR [r14 + r13 + 7]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_JumpLooselyInequalsLoop.ssa_block_3:
- mov r13d, DWORD PTR [r14 + r13 + 16]
+ mov r13d, DWORD PTR [r14 + r13 + 11]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_JumpLooselyInequalsLoop_hot_end:
.p2align 6
asm_handler_JumpStrictlyEqualsLoop:
- mov ecx, DWORD PTR [r14 + r13 + 4]
- mov eax, DWORD PTR [r14 + r13 + 8]
- mov rcx, QWORD PTR [rbx + rcx * 8]
- mov rdx, QWORD PTR [rbx + rax * 8]
+ movzx eax, WORD PTR [r14 + r13 + 3]
+ movzx edx, WORD PTR [r14 + r13 + 5]
+ mov rcx, QWORD PTR [rbx + rax * 8]
+ mov rdx, QWORD PTR [rbx + rdx * 8]
mov rsi, rdx
shr rsi, 48
cmp rsi, 32762
@@ -2924,21 +2924,21 @@ asm_handler_JumpStrictlyEqualsLoop:
cmp si, 32760
jne .Lasm_JumpStrictlyEqualsLoop.ssa_block_20
.Lasm_JumpStrictlyEqualsLoop.ssa_block_3:
- mov r13d, DWORD PTR [r14 + r13 + 16]
+ mov r13d, DWORD PTR [r14 + r13 + 11]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_JumpStrictlyEqualsLoop.ssa_block_2:
- mov r13d, DWORD PTR [r14 + r13 + 12]
+ mov r13d, DWORD PTR [r14 + r13 + 7]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_JumpStrictlyEqualsLoop_hot_end:
.p2align 6
asm_handler_JumpStrictlyInequalsLoop:
- mov ecx, DWORD PTR [r14 + r13 + 4]
- mov eax, DWORD PTR [r14 + r13 + 8]
- mov rcx, QWORD PTR [rbx + rcx * 8]
- mov rdx, QWORD PTR [rbx + rax * 8]
+ movzx eax, WORD PTR [r14 + r13 + 3]
+ movzx edx, WORD PTR [r14 + r13 + 5]
+ mov rcx, QWORD PTR [rbx + rax * 8]
+ mov rdx, QWORD PTR [rbx + rdx * 8]
mov rsi, rdx
shr rsi, 48
cmp rsi, 32762
@@ -3014,18 +3014,18 @@ asm_handler_JumpStrictlyInequalsLoop:
cmp si, 32760
jne .Lasm_JumpStrictlyInequalsLoop.ssa_block_20
.Lasm_JumpStrictlyInequalsLoop.ssa_block_2:
- mov r13d, DWORD PTR [r14 + r13 + 12]
+ mov r13d, DWORD PTR [r14 + r13 + 7]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_JumpStrictlyInequalsLoop.ssa_block_3:
- mov r13d, DWORD PTR [r14 + r13 + 16]
+ mov r13d, DWORD PTR [r14 + r13 + 11]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_JumpStrictlyInequalsLoop_hot_end:
.p2align 6
asm_handler_Increment:
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov rcx, QWORD PTR [rbx + rax * 8]
mov r11, rcx
shr r11, 48
@@ -3036,14 +3036,14 @@ asm_handler_Increment:
movabs r11, 9221683186994511872
or rcx, r11
mov QWORD PTR [rbx + rax * 8], rcx
- add r13d, 8
+ add r13d, 5
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_Increment_hot_end:
.p2align 6
asm_handler_Decrement:
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov rcx, QWORD PTR [rbx + rax * 8]
mov r11, rcx
shr r11, 48
@@ -3054,14 +3054,14 @@ asm_handler_Decrement:
movabs r11, 9221683186994511872
or rcx, r11
mov QWORD PTR [rbx + rax * 8], rcx
- add r13d, 8
+ add r13d, 5
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_Decrement_hot_end:
.p2align 6
asm_handler_Not:
- mov eax, DWORD PTR [r14 + r13 + 8]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov rcx, QWORD PTR [rbx + rax * 8]
mov rax, rcx
shr rax, 48
@@ -3077,9 +3077,9 @@ asm_handler_Not:
jnz .Lasm_Not.ssa_block_2
.Lasm_Not.ssa_block_1:
movabs r11, 9221401712017801217
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 1]
mov QWORD PTR [rbx + rax * 8], r11
- add r13d, 16
+ add r13d, 5
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_Not.ssa_block_6:
@@ -3105,16 +3105,16 @@ asm_handler_Not:
jnz .Lasm_Not.ssa_block_1
.Lasm_Not.ssa_block_2:
movabs r11, 9221401712017801216
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 1]
mov QWORD PTR [rbx + rax * 8], r11
- add r13d, 16
+ add r13d, 5
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_Not_hot_end:
.p2align 6
asm_handler_ToBoolean:
- mov eax, DWORD PTR [r14 + r13 + 8]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov rcx, QWORD PTR [rbx + rax * 8]
mov rdi, rcx
call CSYM(asm_helper_to_boolean)
@@ -3122,9 +3122,9 @@ asm_handler_ToBoolean:
jae .Lasm_ToBoolean.assert_predicate_failure_3
movabs rcx, 9221401712017801216
or rax, rcx
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 1]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 16
+ add r13d, 5
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_ToBoolean_hot_end:
@@ -3132,18 +3132,18 @@ asm_handler_ToBoolean_hot_end:
.p2align 6
asm_handler_Catch:
mov rax, QWORD PTR [rbx + 8]
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
movabs r11, 9221964661971222528
mov QWORD PTR [rbx + 8], r11
- add r13d, 8
+ add r13d, 5
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_Catch_hot_end:
.p2align 6
asm_handler_Return:
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 1]
mov rcx, QWORD PTR [rbx + rax * 8]
movabs rdx, 9221964661971222528
cmp rcx, rdx
@@ -3193,7 +3193,7 @@ asm_handler_Return_hot_end:
.p2align 6
asm_handler_End:
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 1]
mov rcx, QWORD PTR [rbx + rax * 8]
mov r11, rcx
shr r11, 48
@@ -3248,16 +3248,16 @@ asm_handler_GetLexicalEnvironment:
and rax, rcx
movabs rcx, -2251799813685248
or rax, rcx
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 1]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 8
+ add r13d, 3
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_GetLexicalEnvironment_hot_end:
.p2align 6
asm_handler_SetLexicalEnvironment:
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 1]
mov rax, QWORD PTR [rbx + rax * 8]
mov rcx, rax
shr rcx, 48
@@ -3267,7 +3267,7 @@ asm_handler_SetLexicalEnvironment:
and rax, r11
add rax, r15
mov QWORD PTR [rbx - 96], rax
- add r13d, 8
+ add r13d, 3
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_SetLexicalEnvironment_hot_end:
@@ -3275,7 +3275,7 @@ asm_handler_SetLexicalEnvironment_hot_end:
.p2align 6
asm_handler_GetBinding:
mov rax, QWORD PTR [rbx - 96]
- lea rcx, [r14 + r13 + 12]
+ lea rcx, [r14 + r13 + 7]
mov edx, DWORD PTR [rcx + 4]
mov ecx, DWORD PTR [rcx]
test rax, rax
@@ -3303,9 +3303,9 @@ asm_handler_GetBinding:
shr r11, 48
cmp r11w, 32763
je .Lasm_GetBinding.ssa_block_1
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 24
+ add r13d, 15
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_GetBinding_hot_end:
@@ -3314,7 +3314,7 @@ asm_handler_GetBinding_hot_end:
asm_handler_DynamicGetBinding:
mov rax, QWORD PTR [rbx - 40]
mov rax, QWORD PTR [rax + 200]
- mov ecx, DWORD PTR [r14 + r13 + 12]
+ movzx ecx, WORD PTR [r14 + r13 + 7]
lea rax, [rax + rcx * 8]
mov ecx, DWORD PTR [rax]
mov edx, DWORD PTR [rax + 4]
@@ -3354,9 +3354,9 @@ asm_handler_DynamicGetBinding:
shr r11, 48
cmp r11w, 32763
je .Lasm_DynamicGetBinding.ssa_block_1
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 16
+ add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_DynamicGetBinding_hot_end:
@@ -3364,7 +3364,7 @@ asm_handler_DynamicGetBinding_hot_end:
.p2align 6
asm_handler_GetInitializedBinding:
mov rax, QWORD PTR [rbx - 96]
- lea rcx, [r14 + r13 + 12]
+ lea rcx, [r14 + r13 + 7]
mov edx, DWORD PTR [rcx + 4]
mov ecx, DWORD PTR [rcx]
test rax, rax
@@ -3388,9 +3388,9 @@ asm_handler_GetInitializedBinding:
test rax, rax
jz .Lasm_GetInitializedBinding.assert_failure_0
mov rax, QWORD PTR [rax + rdx * 8]
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 24
+ add r13d, 15
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_GetInitializedBinding_hot_end:
@@ -3399,7 +3399,7 @@ asm_handler_GetInitializedBinding_hot_end:
asm_handler_DynamicGetInitializedBinding:
mov rax, QWORD PTR [rbx - 40]
mov rax, QWORD PTR [rax + 200]
- mov ecx, DWORD PTR [r14 + r13 + 12]
+ movzx ecx, WORD PTR [r14 + r13 + 7]
lea rax, [rax + rcx * 8]
mov ecx, DWORD PTR [rax]
mov edx, DWORD PTR [rax + 4]
@@ -3435,9 +3435,9 @@ asm_handler_DynamicGetInitializedBinding:
test rax, rax
jz .Lasm_DynamicGetInitializedBinding.assert_failure_0
mov rax, QWORD PTR [rax + rdx * 8]
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 16
+ add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_DynamicGetInitializedBinding_hot_end:
@@ -3445,7 +3445,7 @@ asm_handler_DynamicGetInitializedBinding_hot_end:
.p2align 6
asm_handler_InitializeLexicalBinding:
mov rax, QWORD PTR [rbx - 96]
- lea rcx, [r14 + r13 + 12]
+ lea rcx, [r14 + r13 + 5]
mov edx, DWORD PTR [rcx + 4]
mov ecx, DWORD PTR [rcx]
test rax, rax
@@ -3468,10 +3468,10 @@ asm_handler_InitializeLexicalBinding:
mov rax, QWORD PTR [rax + 24]
test rax, rax
jz .Lasm_InitializeLexicalBinding.assert_failure_0
- mov ecx, DWORD PTR [r14 + r13 + 8]
+ movzx ecx, WORD PTR [r14 + r13 + 3]
mov rcx, QWORD PTR [rbx + rcx * 8]
mov QWORD PTR [rax + rdx * 8], rcx
- add r13d, 24
+ add r13d, 13
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_InitializeLexicalBinding_hot_end:
@@ -3479,7 +3479,7 @@ asm_handler_InitializeLexicalBinding_hot_end:
.p2align 6
asm_handler_InitializeVariableBinding:
mov rax, QWORD PTR [rbx - 88]
- lea rcx, [r14 + r13 + 12]
+ lea rcx, [r14 + r13 + 5]
mov edx, DWORD PTR [rcx + 4]
mov ecx, DWORD PTR [rcx]
test rax, rax
@@ -3502,10 +3502,10 @@ asm_handler_InitializeVariableBinding:
mov rax, QWORD PTR [rax + 24]
test rax, rax
jz .Lasm_InitializeVariableBinding.assert_failure_0
- mov ecx, DWORD PTR [r14 + r13 + 8]
+ movzx ecx, WORD PTR [r14 + r13 + 3]
mov rcx, QWORD PTR [rbx + rcx * 8]
mov QWORD PTR [rax + rdx * 8], rcx
- add r13d, 24
+ add r13d, 13
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_InitializeVariableBinding_hot_end:
@@ -3514,7 +3514,7 @@ asm_handler_InitializeVariableBinding_hot_end:
asm_handler_DynamicInitializeLexicalBinding:
mov rax, QWORD PTR [rbx - 40]
mov rax, QWORD PTR [rax + 200]
- mov ecx, DWORD PTR [r14 + r13 + 12]
+ movzx ecx, WORD PTR [r14 + r13 + 5]
lea rax, [rax + rcx * 8]
mov ecx, DWORD PTR [rax]
mov edx, DWORD PTR [rax + 4]
@@ -3549,10 +3549,10 @@ asm_handler_DynamicInitializeLexicalBinding:
mov rax, QWORD PTR [rax + 24]
test rax, rax
jz .Lasm_DynamicInitializeLexicalBinding.assert_failure_0
- mov ecx, DWORD PTR [r14 + r13 + 8]
+ movzx ecx, WORD PTR [r14 + r13 + 3]
mov rcx, QWORD PTR [rbx + rcx * 8]
mov QWORD PTR [rax + rdx * 8], rcx
- add r13d, 16
+ add r13d, 7
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_DynamicInitializeLexicalBinding_hot_end:
@@ -3561,7 +3561,7 @@ asm_handler_DynamicInitializeLexicalBinding_hot_end:
asm_handler_DynamicInitializeVariableBinding:
mov rax, QWORD PTR [rbx - 40]
mov rax, QWORD PTR [rax + 200]
- mov ecx, DWORD PTR [r14 + r13 + 12]
+ movzx ecx, WORD PTR [r14 + r13 + 5]
lea rax, [rax + rcx * 8]
mov ecx, DWORD PTR [rax]
mov edx, DWORD PTR [rax + 4]
@@ -3596,10 +3596,10 @@ asm_handler_DynamicInitializeVariableBinding:
mov rax, QWORD PTR [rax + 24]
test rax, rax
jz .Lasm_DynamicInitializeVariableBinding.assert_failure_0
- mov ecx, DWORD PTR [r14 + r13 + 8]
+ movzx ecx, WORD PTR [r14 + r13 + 3]
mov rcx, QWORD PTR [rbx + rcx * 8]
mov QWORD PTR [rax + rdx * 8], rcx
- add r13d, 16
+ add r13d, 7
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_DynamicInitializeVariableBinding_hot_end:
@@ -3607,7 +3607,7 @@ asm_handler_DynamicInitializeVariableBinding_hot_end:
.p2align 6
asm_handler_SetLexicalBinding:
mov rcx, QWORD PTR [rbx - 96]
- lea rax, [r14 + r13 + 12]
+ lea rax, [r14 + r13 + 5]
mov edx, DWORD PTR [rax]
mov eax, DWORD PTR [rax + 4]
test rcx, rcx
@@ -3673,10 +3673,10 @@ asm_handler_SetLexicalBinding:
.Lasm_SetLexicalBinding.ssa_block_10:
test ecx, 2
jz .Lasm_SetLexicalBinding.ssa_block_1
- mov ecx, DWORD PTR [r14 + r13 + 8]
+ movzx ecx, WORD PTR [r14 + r13 + 3]
mov rcx, QWORD PTR [rbx + rcx * 8]
mov QWORD PTR [rsi + rax * 8], rcx
- add r13d, 24
+ add r13d, 13
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_SetLexicalBinding_hot_end:
@@ -3684,7 +3684,7 @@ asm_handler_SetLexicalBinding_hot_end:
.p2align 6
asm_handler_SetVariableBinding:
mov rcx, QWORD PTR [rbx - 88]
- lea rax, [r14 + r13 + 12]
+ lea rax, [r14 + r13 + 5]
mov edx, DWORD PTR [rax]
mov eax, DWORD PTR [rax + 4]
test rcx, rcx
@@ -3750,10 +3750,10 @@ asm_handler_SetVariableBinding:
.Lasm_SetVariableBinding.ssa_block_10:
test ecx, 2
jz .Lasm_SetVariableBinding.ssa_block_1
- mov ecx, DWORD PTR [r14 + r13 + 8]
+ movzx ecx, WORD PTR [r14 + r13 + 3]
mov rcx, QWORD PTR [rbx + rcx * 8]
mov QWORD PTR [rsi + rax * 8], rcx
- add r13d, 24
+ add r13d, 13
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_SetVariableBinding_hot_end:
@@ -3762,7 +3762,7 @@ asm_handler_SetVariableBinding_hot_end:
asm_handler_DynamicSetLexicalBinding:
mov rax, QWORD PTR [rbx - 40]
mov rax, QWORD PTR [rax + 200]
- mov ecx, DWORD PTR [r14 + r13 + 12]
+ movzx ecx, WORD PTR [r14 + r13 + 5]
lea rax, [rax + rcx * 8]
mov edx, DWORD PTR [rax]
mov ecx, DWORD PTR [rax + 4]
@@ -3840,10 +3840,10 @@ asm_handler_DynamicSetLexicalBinding:
.Lasm_DynamicSetLexicalBinding.ssa_block_14:
test eax, 2
jz .Lasm_DynamicSetLexicalBinding.ssa_block_1
- mov eax, DWORD PTR [r14 + r13 + 8]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov rax, QWORD PTR [rbx + rax * 8]
mov QWORD PTR [rsi + rcx * 8], rax
- add r13d, 16
+ add r13d, 7
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_DynamicSetLexicalBinding_hot_end:
@@ -3852,7 +3852,7 @@ asm_handler_DynamicSetLexicalBinding_hot_end:
asm_handler_DynamicSetVariableBinding:
mov rax, QWORD PTR [rbx - 40]
mov rax, QWORD PTR [rax + 200]
- mov ecx, DWORD PTR [r14 + r13 + 12]
+ movzx ecx, WORD PTR [r14 + r13 + 5]
lea rax, [rax + rcx * 8]
mov edx, DWORD PTR [rax]
mov ecx, DWORD PTR [rax + 4]
@@ -3930,40 +3930,40 @@ asm_handler_DynamicSetVariableBinding:
.Lasm_DynamicSetVariableBinding.ssa_block_14:
test eax, 2
jz .Lasm_DynamicSetVariableBinding.ssa_block_1
- mov eax, DWORD PTR [r14 + r13 + 8]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov rax, QWORD PTR [rbx + rax * 8]
mov QWORD PTR [rsi + rcx * 8], rax
- add r13d, 16
+ add r13d, 7
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_DynamicSetVariableBinding_hot_end:
.p2align 6
asm_handler_PostfixIncrement:
- mov eax, DWORD PTR [r14 + r13 + 8]
+ movzx eax, WORD PTR [r14 + r13 + 5]
mov rcx, QWORD PTR [rbx + rax * 8]
mov r11, rcx
shr r11, 48
cmp r11w, 32762
jne .Lasm_PostfixIncrement.ssa_block_2
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rcx
inc ecx
jo .Lasm_PostfixIncrement.ssa_block_1
movabs r11, 9221683186994511872
or rcx, r11
mov QWORD PTR [rbx + rax * 8], rcx
- add r13d, 16
+ add r13d, 7
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_PostfixIncrement_hot_end:
.p2align 6
asm_handler_Div:
- mov ecx, DWORD PTR [r14 + r13 + 8]
- mov eax, DWORD PTR [r14 + r13 + 12]
- mov rdx, QWORD PTR [rbx + rcx * 8]
- mov rcx, QWORD PTR [rbx + rax * 8]
+ movzx eax, WORD PTR [r14 + r13 + 5]
+ movzx ecx, WORD PTR [r14 + r13 + 7]
+ mov rdx, QWORD PTR [rbx + rax * 8]
+ mov rcx, QWORD PTR [rbx + rcx * 8]
mov rax, rdx
shr rax, 48
cmp ax, 32762
@@ -4002,9 +4002,9 @@ asm_handler_Div:
.Lasm_Div.ssa_block_3:
movabs r11, 9221683186994511872
or rax, r11
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 16
+ add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_Div.ssa_block_2:
@@ -4016,19 +4016,19 @@ asm_handler_Div:
ucomisd xmm0, xmm0
jp .Lasm_Div.canon_nan_0
.Lasm_Div.canon_nan_0_ret:
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 16
+ add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_Div_hot_end:
.p2align 6
asm_handler_LessThan:
- mov ecx, DWORD PTR [r14 + r13 + 8]
- mov eax, DWORD PTR [r14 + r13 + 12]
- mov rdx, QWORD PTR [rbx + rcx * 8]
- mov rcx, QWORD PTR [rbx + rax * 8]
+ movzx eax, WORD PTR [r14 + r13 + 5]
+ movzx ecx, WORD PTR [r14 + r13 + 7]
+ mov rdx, QWORD PTR [rbx + rax * 8]
+ mov rcx, QWORD PTR [rbx + rcx * 8]
mov rax, rdx
shr rax, 48
cmp ax, 32762
@@ -4042,26 +4042,26 @@ asm_handler_LessThan:
jge .Lasm_LessThan.ssa_block_2
.Lasm_LessThan.ssa_block_1:
movabs r11, 9221401712017801217
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + rax * 8], r11
- add r13d, 16
+ add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_LessThan.ssa_block_2:
movabs r11, 9221401712017801216
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + rax * 8], r11
- add r13d, 16
+ add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_LessThan_hot_end:
.p2align 6
asm_handler_LessThanEquals:
- mov ecx, DWORD PTR [r14 + r13 + 8]
- mov eax, DWORD PTR [r14 + r13 + 12]
- mov rdx, QWORD PTR [rbx + rcx * 8]
- mov rcx, QWORD PTR [rbx + rax * 8]
+ movzx eax, WORD PTR [r14 + r13 + 5]
+ movzx ecx, WORD PTR [r14 + r13 + 7]
+ mov rdx, QWORD PTR [rbx + rax * 8]
+ mov rcx, QWORD PTR [rbx + rcx * 8]
mov rax, rdx
shr rax, 48
cmp ax, 32762
@@ -4075,26 +4075,26 @@ asm_handler_LessThanEquals:
jg .Lasm_LessThanEquals.ssa_block_2
.Lasm_LessThanEquals.ssa_block_1:
movabs r11, 9221401712017801217
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + rax * 8], r11
- add r13d, 16
+ add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_LessThanEquals.ssa_block_2:
movabs r11, 9221401712017801216
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + rax * 8], r11
- add r13d, 16
+ add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_LessThanEquals_hot_end:
.p2align 6
asm_handler_GreaterThan:
- mov ecx, DWORD PTR [r14 + r13 + 8]
- mov eax, DWORD PTR [r14 + r13 + 12]
- mov rdx, QWORD PTR [rbx + rcx * 8]
- mov rcx, QWORD PTR [rbx + rax * 8]
+ movzx eax, WORD PTR [r14 + r13 + 5]
+ movzx ecx, WORD PTR [r14 + r13 + 7]
+ mov rdx, QWORD PTR [rbx + rax * 8]
+ mov rcx, QWORD PTR [rbx + rcx * 8]
mov rax, rdx
shr rax, 48
cmp ax, 32762
@@ -4108,26 +4108,26 @@ asm_handler_GreaterThan:
jle .Lasm_GreaterThan.ssa_block_2
.Lasm_GreaterThan.ssa_block_1:
movabs r11, 9221401712017801217
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + rax * 8], r11
- add r13d, 16
+ add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_GreaterThan.ssa_block_2:
movabs r11, 9221401712017801216
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + rax * 8], r11
- add r13d, 16
+ add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_GreaterThan_hot_end:
.p2align 6
asm_handler_GreaterThanEquals:
- mov ecx, DWORD PTR [r14 + r13 + 8]
- mov eax, DWORD PTR [r14 + r13 + 12]
- mov rdx, QWORD PTR [rbx + rcx * 8]
- mov rcx, QWORD PTR [rbx + rax * 8]
+ movzx eax, WORD PTR [r14 + r13 + 5]
+ movzx ecx, WORD PTR [r14 + r13 + 7]
+ mov rdx, QWORD PTR [rbx + rax * 8]
+ mov rcx, QWORD PTR [rbx + rcx * 8]
mov rax, rdx
shr rax, 48
cmp ax, 32762
@@ -4141,26 +4141,26 @@ asm_handler_GreaterThanEquals:
jl .Lasm_GreaterThanEquals.ssa_block_2
.Lasm_GreaterThanEquals.ssa_block_1:
movabs r11, 9221401712017801217
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + rax * 8], r11
- add r13d, 16
+ add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_GreaterThanEquals.ssa_block_2:
movabs r11, 9221401712017801216
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + rax * 8], r11
- add r13d, 16
+ add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_GreaterThanEquals_hot_end:
.p2align 6
asm_handler_BitwiseXor:
- mov ecx, DWORD PTR [r14 + r13 + 8]
- mov eax, DWORD PTR [r14 + r13 + 12]
- mov rsi, QWORD PTR [rbx + rcx * 8]
- mov rdx, QWORD PTR [rbx + rax * 8]
+ movzx eax, WORD PTR [r14 + r13 + 5]
+ movzx ecx, WORD PTR [r14 + r13 + 7]
+ mov rsi, QWORD PTR [rbx + rax * 8]
+ mov rdx, QWORD PTR [rbx + rcx * 8]
mov rax, rsi
shr rax, 48
cmp ax, 32762
@@ -4172,85 +4172,85 @@ asm_handler_BitwiseXor:
xor esi, edx
movabs r11, 9221683186994511872
or rsi, r11
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rsi
- add r13d, 16
+ add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_BitwiseXor_hot_end:
.p2align 6
asm_handler_UnaryPlus:
- mov eax, DWORD PTR [r14 + r13 + 8]
+ movzx eax, WORD PTR [r14 + r13 + 5]
mov rax, QWORD PTR [rbx + rax * 8]
mov rcx, rax
shr rcx, 48
cmp cx, 32762
jne .Lasm_UnaryPlus.ssa_block_4
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 16
+ add r13d, 7
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_UnaryPlus_hot_end:
.p2align 6
asm_handler_ThrowIfTDZ:
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 1]
mov rax, QWORD PTR [rbx + rax * 8]
mov r11, rax
shr r11, 48
cmp r11w, 32763
je .Lasm_ThrowIfTDZ.ssa_block_1
- add r13d, 8
+ add r13d, 3
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_ThrowIfTDZ_hot_end:
.p2align 6
asm_handler_ThrowIfNotObject:
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 1]
mov rax, QWORD PTR [rbx + rax * 8]
mov r11, rax
shr r11, 48
cmp r11w, 65529
jne .Lasm_ThrowIfNotObject.ssa_block_1
- add r13d, 8
+ add r13d, 3
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_ThrowIfNotObject_hot_end:
.p2align 6
asm_handler_ThrowIfNullish:
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 1]
mov rax, QWORD PTR [rbx + rax * 8]
shr rax, 48
and ax, 65534
cmp ax, 32766
je .Lasm_ThrowIfNullish.ssa_block_1
- add r13d, 8
+ add r13d, 3
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_ThrowIfNullish_hot_end:
.p2align 6
asm_handler_ToPrimitiveWithStringHint:
- mov eax, DWORD PTR [r14 + r13 + 8]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov rax, QWORD PTR [rbx + rax * 8]
mov r11, rax
shr r11, 48
cmp r11w, 65529
je .Lasm_ToPrimitiveWithStringHint.ssa_block_1
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 1]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 16
+ add r13d, 5
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_ToPrimitiveWithStringHint_hot_end:
.p2align 6
asm_handler_BitwiseNot:
- mov eax, DWORD PTR [r14 + r13 + 8]
+ movzx eax, WORD PTR [r14 + r13 + 5]
mov rax, QWORD PTR [rbx + rax * 8]
mov r11, rax
shr r11, 48
@@ -4259,19 +4259,19 @@ asm_handler_BitwiseNot:
not eax
movabs r11, 9221683186994511872
or rax, r11
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 16
+ add r13d, 7
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_BitwiseNot_hot_end:
.p2align 6
asm_handler_BitwiseAnd:
- mov ecx, DWORD PTR [r14 + r13 + 8]
- mov eax, DWORD PTR [r14 + r13 + 12]
- mov rsi, QWORD PTR [rbx + rcx * 8]
- mov rdx, QWORD PTR [rbx + rax * 8]
+ movzx eax, WORD PTR [r14 + r13 + 5]
+ movzx ecx, WORD PTR [r14 + r13 + 7]
+ mov rsi, QWORD PTR [rbx + rax * 8]
+ mov rdx, QWORD PTR [rbx + rcx * 8]
mov rax, rsi
shr rax, 48
cmp ax, 32762
@@ -4283,19 +4283,19 @@ asm_handler_BitwiseAnd:
and esi, edx
movabs r11, 9221683186994511872
or rsi, r11
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rsi
- add r13d, 16
+ add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_BitwiseAnd_hot_end:
.p2align 6
asm_handler_BitwiseOr:
- mov ecx, DWORD PTR [r14 + r13 + 8]
- mov eax, DWORD PTR [r14 + r13 + 12]
- mov rsi, QWORD PTR [rbx + rcx * 8]
- mov rdx, QWORD PTR [rbx + rax * 8]
+ movzx eax, WORD PTR [r14 + r13 + 5]
+ movzx ecx, WORD PTR [r14 + r13 + 7]
+ mov rsi, QWORD PTR [rbx + rax * 8]
+ mov rdx, QWORD PTR [rbx + rcx * 8]
mov rax, rsi
shr rax, 48
cmp ax, 32762
@@ -4307,19 +4307,19 @@ asm_handler_BitwiseOr:
or esi, edx
movabs r11, 9221683186994511872
or rsi, r11
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rsi
- add r13d, 16
+ add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_BitwiseOr_hot_end:
.p2align 6
asm_handler_LeftShift:
- mov ecx, DWORD PTR [r14 + r13 + 8]
- mov eax, DWORD PTR [r14 + r13 + 12]
- mov rdx, QWORD PTR [rbx + rcx * 8]
- mov rcx, QWORD PTR [rbx + rax * 8]
+ movzx eax, WORD PTR [r14 + r13 + 5]
+ movzx ecx, WORD PTR [r14 + r13 + 7]
+ mov rdx, QWORD PTR [rbx + rax * 8]
+ mov rcx, QWORD PTR [rbx + rcx * 8]
mov r11, rdx
shr r11, 48
cmp r11w, 32762
@@ -4331,19 +4331,19 @@ asm_handler_LeftShift:
shl edx, cl
movabs r11, 9221683186994511872
or rdx, r11
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rdx
- add r13d, 16
+ add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_LeftShift_hot_end:
.p2align 6
asm_handler_RightShift:
- mov ecx, DWORD PTR [r14 + r13 + 8]
- mov eax, DWORD PTR [r14 + r13 + 12]
- mov rdx, QWORD PTR [rbx + rcx * 8]
- mov rcx, QWORD PTR [rbx + rax * 8]
+ movzx eax, WORD PTR [r14 + r13 + 5]
+ movzx ecx, WORD PTR [r14 + r13 + 7]
+ mov rdx, QWORD PTR [rbx + rax * 8]
+ mov rcx, QWORD PTR [rbx + rcx * 8]
mov r11, rdx
shr r11, 48
cmp r11w, 32762
@@ -4355,19 +4355,19 @@ asm_handler_RightShift:
sar edx, cl
movabs r11, 9221683186994511872
or rdx, r11
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rdx
- add r13d, 16
+ add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_RightShift_hot_end:
.p2align 6
asm_handler_UnsignedRightShift:
- mov ecx, DWORD PTR [r14 + r13 + 8]
- mov eax, DWORD PTR [r14 + r13 + 12]
- mov rdx, QWORD PTR [rbx + rcx * 8]
- mov rcx, QWORD PTR [rbx + rax * 8]
+ movzx eax, WORD PTR [r14 + r13 + 5]
+ movzx ecx, WORD PTR [r14 + r13 + 7]
+ mov rdx, QWORD PTR [rbx + rax * 8]
+ mov rcx, QWORD PTR [rbx + rcx * 8]
mov r11, rdx
shr r11, 48
cmp r11w, 32762
@@ -4381,22 +4381,22 @@ asm_handler_UnsignedRightShift:
js .Lasm_UnsignedRightShift.ssa_block_2
movabs r11, 9221683186994511872
or rdx, r11
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rdx
- add r13d, 16
+ add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_UnsignedRightShift_hot_end:
.p2align 6
asm_handler_Mod:
- mov eax, DWORD PTR [r14 + r13 + 8]
+ movzx eax, WORD PTR [r14 + r13 + 5]
mov rcx, QWORD PTR [rbx + rax * 8]
mov r11, rcx
shr r11, 48
cmp r11w, 32762
jne .Lasm_Mod.ssa_block_2
- mov eax, DWORD PTR [r14 + r13 + 12]
+ movzx eax, WORD PTR [r14 + r13 + 7]
mov rsi, QWORD PTR [rbx + rax * 8]
mov r11, rsi
shr r11, 48
@@ -4411,19 +4411,19 @@ asm_handler_Mod:
idiv esi
movabs r11, 9221683186994511872
or rdx, r11
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rdx
- add r13d, 16
+ add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_Mod_hot_end:
.p2align 6
asm_handler_StrictlyEquals:
- mov ecx, DWORD PTR [r14 + r13 + 8]
- mov eax, DWORD PTR [r14 + r13 + 12]
- mov rcx, QWORD PTR [rbx + rcx * 8]
- mov rdx, QWORD PTR [rbx + rax * 8]
+ movzx eax, WORD PTR [r14 + r13 + 5]
+ movzx edx, WORD PTR [r14 + r13 + 7]
+ mov rcx, QWORD PTR [rbx + rax * 8]
+ mov rdx, QWORD PTR [rbx + rdx * 8]
mov rsi, rdx
shr rsi, 48
cmp rsi, 32762
@@ -4500,26 +4500,26 @@ asm_handler_StrictlyEquals:
jne .Lasm_StrictlyEquals.ssa_block_20
.Lasm_StrictlyEquals.ssa_block_3:
movabs r11, 9221401712017801216
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + rax * 8], r11
- add r13d, 16
+ add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_StrictlyEquals.ssa_block_2:
movabs r11, 9221401712017801217
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + rax * 8], r11
- add r13d, 16
+ add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_StrictlyEquals_hot_end:
.p2align 6
asm_handler_StrictlyInequals:
- mov ecx, DWORD PTR [r14 + r13 + 8]
- mov eax, DWORD PTR [r14 + r13 + 12]
- mov rcx, QWORD PTR [rbx + rcx * 8]
- mov rdx, QWORD PTR [rbx + rax * 8]
+ movzx eax, WORD PTR [r14 + r13 + 5]
+ movzx edx, WORD PTR [r14 + r13 + 7]
+ mov rcx, QWORD PTR [rbx + rax * 8]
+ mov rdx, QWORD PTR [rbx + rdx * 8]
mov rsi, rdx
shr rsi, 48
cmp rsi, 32762
@@ -4596,16 +4596,16 @@ asm_handler_StrictlyInequals:
jne .Lasm_StrictlyInequals.ssa_block_20
.Lasm_StrictlyInequals.ssa_block_2:
movabs r11, 9221401712017801217
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + rax * 8], r11
- add r13d, 16
+ add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_StrictlyInequals.ssa_block_3:
movabs r11, 9221401712017801216
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + rax * 8], r11
- add r13d, 16
+ add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_StrictlyInequals_hot_end:
@@ -4613,7 +4613,7 @@ asm_handler_StrictlyInequals_hot_end:
.p2align 6
asm_handler_GetCalleeAndThisFromEnvironment:
mov rax, QWORD PTR [rbx - 96]
- lea rcx, [r14 + r13 + 16]
+ lea rcx, [r14 + r13 + 9]
mov edx, DWORD PTR [rcx + 4]
mov ecx, DWORD PTR [rcx]
test rax, rax
@@ -4641,12 +4641,12 @@ asm_handler_GetCalleeAndThisFromEnvironment:
shr r11, 48
cmp r11w, 32763
je .Lasm_GetCalleeAndThisFromEnvironment.ssa_block_1
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
movabs r11, 9222809086901354496
- mov eax, DWORD PTR [r14 + r13 + 8]
+ movzx eax, WORD PTR [r14 + r13 + 5]
mov QWORD PTR [rbx + rax * 8], r11
- add r13d, 24
+ add r13d, 17
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_GetCalleeAndThisFromEnvironment_hot_end:
@@ -4655,7 +4655,7 @@ asm_handler_GetCalleeAndThisFromEnvironment_hot_end:
asm_handler_DynamicGetCalleeAndThisFromEnvironment:
mov rax, QWORD PTR [rbx - 40]
mov rax, QWORD PTR [rax + 200]
- mov ecx, DWORD PTR [r14 + r13 + 16]
+ movzx ecx, WORD PTR [r14 + r13 + 9]
lea rax, [rax + rcx * 8]
mov ecx, DWORD PTR [rax]
mov edx, DWORD PTR [rax + 4]
@@ -4695,22 +4695,22 @@ asm_handler_DynamicGetCalleeAndThisFromEnvironment:
shr r11, 48
cmp r11w, 32763
je .Lasm_DynamicGetCalleeAndThisFromEnvironment.ssa_block_1
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
movabs r11, 9222809086901354496
- mov eax, DWORD PTR [r14 + r13 + 8]
+ movzx eax, WORD PTR [r14 + r13 + 5]
mov QWORD PTR [rbx + rax * 8], r11
- add r13d, 24
+ add r13d, 11
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_DynamicGetCalleeAndThisFromEnvironment_hot_end:
.p2align 6
asm_handler_LooselyEquals:
- mov ecx, DWORD PTR [r14 + r13 + 8]
- mov eax, DWORD PTR [r14 + r13 + 12]
- mov rcx, QWORD PTR [rbx + rcx * 8]
- mov rdx, QWORD PTR [rbx + rax * 8]
+ movzx eax, WORD PTR [r14 + r13 + 5]
+ movzx edx, WORD PTR [r14 + r13 + 7]
+ mov rcx, QWORD PTR [rbx + rax * 8]
+ mov rdx, QWORD PTR [rbx + rdx * 8]
mov rsi, rdx
shr rsi, 48
cmp rsi, 32762
@@ -4785,26 +4785,26 @@ asm_handler_LooselyEquals:
jmp .Lasm_LooselyEquals.ssa_block_1
.Lasm_LooselyEquals.ssa_block_3:
movabs r11, 9221401712017801216
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + rax * 8], r11
- add r13d, 16
+ add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_LooselyEquals.ssa_block_2:
movabs r11, 9221401712017801217
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + rax * 8], r11
- add r13d, 16
+ add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_LooselyEquals_hot_end:
.p2align 6
asm_handler_LooselyInequals:
- mov ecx, DWORD PTR [r14 + r13 + 8]
- mov eax, DWORD PTR [r14 + r13 + 12]
- mov rcx, QWORD PTR [rbx + rcx * 8]
- mov rdx, QWORD PTR [rbx + rax * 8]
+ movzx eax, WORD PTR [r14 + r13 + 5]
+ movzx edx, WORD PTR [r14 + r13 + 7]
+ mov rcx, QWORD PTR [rbx + rax * 8]
+ mov rdx, QWORD PTR [rbx + rdx * 8]
mov rsi, rdx
shr rsi, 48
cmp rsi, 32762
@@ -4879,23 +4879,23 @@ asm_handler_LooselyInequals:
jmp .Lasm_LooselyInequals.ssa_block_1
.Lasm_LooselyInequals.ssa_block_2:
movabs r11, 9221401712017801217
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + rax * 8], r11
- add r13d, 16
+ add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_LooselyInequals.ssa_block_3:
movabs r11, 9221401712017801216
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + rax * 8], r11
- add r13d, 16
+ add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_LooselyInequals_hot_end:
.p2align 6
asm_handler_UnaryMinus:
- mov eax, DWORD PTR [r14 + r13 + 8]
+ movzx eax, WORD PTR [r14 + r13 + 5]
mov rax, QWORD PTR [rbx + rax * 8]
mov rcx, rax
shr rcx, 48
@@ -4907,59 +4907,59 @@ asm_handler_UnaryMinus:
jo .Lasm_UnaryMinus.ssa_block_2
movabs r11, 9221683186994511872
or rax, r11
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 16
+ add r13d, 7
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_UnaryMinus_hot_end:
.p2align 6
asm_handler_PostfixDecrement:
- mov eax, DWORD PTR [r14 + r13 + 8]
+ movzx eax, WORD PTR [r14 + r13 + 5]
mov rcx, QWORD PTR [rbx + rax * 8]
mov r11, rcx
shr r11, 48
cmp r11w, 32762
jne .Lasm_PostfixDecrement.ssa_block_2
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rcx
dec ecx
jo .Lasm_PostfixDecrement.ssa_block_1
movabs r11, 9221683186994511872
or rcx, r11
mov QWORD PTR [rbx + rax * 8], rcx
- add r13d, 16
+ add r13d, 7
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_PostfixDecrement_hot_end:
.p2align 6
asm_handler_ToInt32:
- mov eax, DWORD PTR [r14 + r13 + 8]
+ movzx eax, WORD PTR [r14 + r13 + 5]
mov rax, QWORD PTR [rbx + rax * 8]
mov r11, rax
shr r11, 48
cmp r11w, 32762
jne .Lasm_ToInt32.ssa_block_2
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 16
+ add r13d, 7
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_ToInt32_hot_end:
.p2align 6
asm_handler_PutByValue:
- cmp BYTE PTR [r14 + r13 + 16], 0
+ cmp BYTE PTR [r14 + r13 + 9], 0
jnz .Lasm_PutByValue.ssa_block_1
- mov eax, DWORD PTR [r14 + r13 + 8]
+ movzx eax, WORD PTR [r14 + r13 + 5]
mov rdi, QWORD PTR [rbx + rax * 8]
mov r11, rdi
shr r11, 48
cmp r11w, 32762
jne .Lasm_PutByValue.ssa_block_4
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov rcx, QWORD PTR [rbx + rax * 8]
mov r11, rcx
shr r11, 48
@@ -4986,10 +4986,10 @@ asm_handler_PutByValue:
mov edx, DWORD PTR [rcx - 8]
cmp rax, rdx
jae .Lasm_PutByValue.ssa_block_1
- mov edx, DWORD PTR [r14 + r13 + 12]
+ movzx edx, WORD PTR [r14 + r13 + 7]
mov rdx, QWORD PTR [rbx + rdx * 8]
mov QWORD PTR [rcx + rax * 8], rdx
- add r13d, 32
+ add r13d, 17
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_PutByValue.ssa_switch_10_after_preferred:
@@ -5009,10 +5009,10 @@ asm_handler_PutByValue:
shr r11, 48
cmp r11w, 32763
je .Lasm_PutByValue.ssa_block_5
- mov edx, DWORD PTR [r14 + r13 + 12]
+ movzx edx, WORD PTR [r14 + r13 + 7]
mov rdx, QWORD PTR [rbx + rdx * 8]
mov QWORD PTR [rcx + rax * 8], rdx
- add r13d, 32
+ add r13d, 17
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_PutByValue.ssa_block_11:
@@ -5029,7 +5029,7 @@ asm_handler_PutByValue:
cmp rax, rdi
jae .Lasm_PutByValue.ssa_block_1
movzx ecx, BYTE PTR [rcx + 64]
- mov edi, DWORD PTR [r14 + r13 + 12]
+ movzx edi, WORD PTR [r14 + r13 + 7]
mov rdi, QWORD PTR [rbx + rdi * 8]
mov r8, rdi
shr r8, 48
@@ -5061,7 +5061,7 @@ asm_handler_PutByValue:
and rax, rcx
add rax, rdx
mov BYTE PTR [rax], dil
- add r13d, 32
+ add r13d, 17
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_PutByValue.ssa_block_16:
@@ -5070,7 +5070,7 @@ asm_handler_PutByValue:
and rax, rcx
add rax, rdx
mov WORD PTR [rax], di
- add r13d, 32
+ add r13d, 17
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_PutByValue.ssa_block_17:
@@ -5083,7 +5083,7 @@ asm_handler_PutByValue:
xor rdi, rdi
.Lasm_PutByValue.ssa_block_23:
mov BYTE PTR [rax], dil
- add r13d, 32
+ add r13d, 17
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_PutByValue.ssa_block_22:
@@ -5097,7 +5097,7 @@ asm_handler_PutByValue:
and rax, rcx
add rax, rdx
mov DWORD PTR [rax], edi
- add r13d, 32
+ add r13d, 17
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_PutByValue.ssa_block_19:
@@ -5108,7 +5108,7 @@ asm_handler_PutByValue:
cvtsi2sd xmm0, edi
cvtsd2ss xmm0, xmm0
movss DWORD PTR [rax], xmm0
- add r13d, 32
+ add r13d, 17
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_PutByValue.ssa_block_20:
@@ -5119,7 +5119,7 @@ asm_handler_PutByValue:
cvtsi2sd xmm0, edi
movq rcx, xmm0
mov QWORD PTR [rax], rcx
- add r13d, 32
+ add r13d, 17
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_PutByValue.ssa_block_7:
@@ -5135,7 +5135,7 @@ asm_handler_PutByValue:
movq xmm0, rdi
cvtsd2ss xmm0, xmm0
movss DWORD PTR [rax], xmm0
- add r13d, 32
+ add r13d, 17
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_PutByValue.ssa_switch_7_after_preferred:
@@ -5163,7 +5163,7 @@ asm_handler_PutByValue:
and rax, rcx
add rax, rdx
mov QWORD PTR [rax], rdi
- add r13d, 32
+ add r13d, 17
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_PutByValue.ssa_block_29:
@@ -5183,7 +5183,7 @@ asm_handler_PutByValue:
and rax, rcx
add rax, rdx
mov BYTE PTR [rax], dil
- add r13d, 32
+ add r13d, 17
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_PutByValue.ssa_block_30:
@@ -5203,7 +5203,7 @@ asm_handler_PutByValue:
and rax, rcx
add rax, rdx
mov WORD PTR [rax], di
- add r13d, 32
+ add r13d, 17
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_PutByValue.ssa_block_31:
@@ -5223,7 +5223,7 @@ asm_handler_PutByValue:
and rax, rcx
add rdx, rax
mov DWORD PTR [rdx], edi
- add r13d, 32
+ add r13d, 17
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_PutByValue.ssa_block_4:
@@ -5233,14 +5233,14 @@ asm_handler_PutByValue:
mov rax, QWORD PTR [rax + 152]
test rax, rax
jz .Lasm_PutByValue.assert_failure_1
- mov ecx, DWORD PTR [r14 + r13 + 24]
+ movzx ecx, WORD PTR [r14 + r13 + 15]
mov rax, QWORD PTR [rax + rcx * 8]
test rax, rax
jz .Lasm_PutByValue.ssa_block_1
cmp rax, 3
je .Lasm_PutByValue.ssa_block_2
and rax, -4
- mov ecx, DWORD PTR [r14 + r13 + 4]
+ movzx ecx, WORD PTR [r14 + r13 + 3]
mov rdx, QWORD PTR [rbx + rcx * 8]
mov r11, rdx
shr r11, 48
@@ -5275,17 +5275,17 @@ asm_handler_PutByValue:
shr r11, 48
cmp r11w, 65532
je .Lasm_PutByValue.ssa_block_3
- mov ecx, DWORD PTR [r14 + r13 + 12]
+ movzx ecx, WORD PTR [r14 + r13 + 7]
mov rcx, QWORD PTR [rbx + rcx * 8]
mov QWORD PTR [rax + rsi * 8], rcx
- add r13d, 32
+ add r13d, 17
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_PutByValue_hot_end:
.p2align 6
asm_handler_GetById:
- mov eax, DWORD PTR [r14 + r13 + 8]
+ movzx eax, WORD PTR [r14 + r13 + 5]
mov rsi, QWORD PTR [rbx + rax * 8]
mov r11, rsi
shr r11, 48
@@ -5304,13 +5304,13 @@ asm_handler_GetById:
mov rdx, QWORD PTR [rcx + 152]
test rdx, rdx
jz .Lasm_GetById.assert_failure_1
- mov edi, DWORD PTR [r14 + r13 + 20]
+ movzx edi, WORD PTR [r14 + r13 + 11]
mov rdx, QWORD PTR [rdx + rdi * 8]
test rdx, rdx
jz .Lasm_GetById.ssa_block_1
and rdx, -4
test rdx, rdx
- jz .Lasm_GetById.assert_predicate_failure_338
+ jz .Lasm_GetById.assert_predicate_failure_337
cmp QWORD PTR [rdx + 24], rax
jne .Lasm_GetById.ssa_block_15
mov ecx, DWORD PTR [rdx]
@@ -5333,16 +5333,16 @@ asm_handler_GetById:
shr r11, 48
cmp r11w, 65532
je .Lasm_GetById.ssa_block_17
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 24
+ add r13d, 13
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_GetById.ssa_block_15:
mov rcx, QWORD PTR [rcx + 152]
test rcx, rcx
jz .Lasm_GetById.assert_failure_3
- mov edx, DWORD PTR [r14 + r13 + 20]
+ movzx edx, WORD PTR [r14 + r13 + 11]
mov rcx, QWORD PTR [rcx + rdx * 8]
mov rdx, rcx
and rdx, 3
@@ -5378,16 +5378,16 @@ asm_handler_GetById:
shr r11, 48
cmp r11w, 65532
je .Lasm_GetById.ssa_block_1
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 24
+ add r13d, 13
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_GetById_hot_end:
.p2align 6
asm_handler_PutById:
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 1]
mov rdx, QWORD PTR [rbx + rax * 8]
mov r11, rdx
shr r11, 48
@@ -5406,7 +5406,7 @@ asm_handler_PutById:
mov rax, QWORD PTR [rax + 152]
test rax, rax
jz .Lasm_PutById.assert_failure_1
- mov esi, DWORD PTR [r14 + r13 + 20]
+ movzx esi, WORD PTR [r14 + r13 + 11]
mov rax, QWORD PTR [rax + rsi * 8]
test rax, rax
jz .Lasm_PutById.ssa_block_2
@@ -5433,23 +5433,23 @@ asm_handler_PutById:
shr r11, 48
cmp r11w, 65532
je .Lasm_PutById.ssa_block_2
- mov ecx, DWORD PTR [r14 + r13 + 12]
+ movzx ecx, WORD PTR [r14 + r13 + 5]
mov rcx, QWORD PTR [rbx + rcx * 8]
mov QWORD PTR [rax + rsi * 8], rcx
- add r13d, 32
+ add r13d, 15
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_PutById_hot_end:
.p2align 6
asm_handler_GetByValue:
- mov eax, DWORD PTR [r14 + r13 + 16]
+ movzx eax, WORD PTR [r14 + r13 + 9]
mov rdi, QWORD PTR [rbx + rax * 8]
mov r11, rdi
shr r11, 48
cmp r11w, 32762
jne .Lasm_GetByValue.ssa_block_5
- mov eax, DWORD PTR [r14 + r13 + 12]
+ movzx eax, WORD PTR [r14 + r13 + 7]
mov rsi, QWORD PTR [rbx + rax * 8]
mov rax, rsi
shr rax, 48
@@ -5477,9 +5477,9 @@ asm_handler_GetByValue:
cmp rax, rdx
jae .Lasm_GetByValue.ssa_block_1
mov rax, QWORD PTR [rcx + rax * 8]
- mov r11d, DWORD PTR [r14 + r13 + 8]
+ movzx r11d, WORD PTR [r14 + r13 + 5]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 32
+ add r13d, 15
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_GetByValue.ssa_switch_21_after_preferred:
@@ -5499,9 +5499,9 @@ asm_handler_GetByValue:
shr r11, 48
cmp r11w, 32763
je .Lasm_GetByValue.ssa_block_1
- mov r11d, DWORD PTR [r14 + r13 + 8]
+ movzx r11d, WORD PTR [r14 + r13 + 5]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 32
+ add r13d, 15
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_GetByValue.ssa_block_20:
@@ -5527,9 +5527,9 @@ asm_handler_GetByValue:
movzx eax, BYTE PTR [rax]
movabs r11, 9221683186994511872
or rax, r11
- mov r11d, DWORD PTR [r14 + r13 + 8]
+ movzx r11d, WORD PTR [r14 + r13 + 5]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 32
+ add r13d, 15
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_GetByValue.ssa_switch_20_after_preferred:
@@ -5587,9 +5587,9 @@ asm_handler_GetByValue:
.Lasm_GetByValue.ssa_block_11:
movabs r11, 9221683186994511872
or rax, r11
- mov r11d, DWORD PTR [r14 + r13 + 8]
+ movzx r11d, WORD PTR [r14 + r13 + 5]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 32
+ add r13d, 15
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_GetByValue.ssa_block_30:
@@ -5629,9 +5629,9 @@ asm_handler_GetByValue:
.Lasm_GetByValue.ssa_block_9:
movabs r11, 9221683186994511872
or rax, r11
- mov r11d, DWORD PTR [r14 + r13 + 8]
+ movzx r11d, WORD PTR [r14 + r13 + 5]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 32
+ add r13d, 15
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_GetByValue.ssa_block_10:
@@ -5639,9 +5639,9 @@ asm_handler_GetByValue:
ucomisd xmm0, xmm0
jp .Lasm_GetByValue.canon_nan_1
.Lasm_GetByValue.canon_nan_1_ret:
- mov r11d, DWORD PTR [r14 + r13 + 8]
+ movzx r11d, WORD PTR [r14 + r13 + 5]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 32
+ add r13d, 15
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_GetByValue.ssa_block_8:
@@ -5702,13 +5702,13 @@ asm_handler_GetByValue:
shr r11, 48
cmp r11w, 65530
jne .Lasm_GetByValue.assert_predicate_failure_297
- mov r11d, DWORD PTR [r14 + r13 + 8]
+ movzx r11d, WORD PTR [r14 + r13 + 5]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 32
+ add r13d, 15
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_GetByValue.ssa_block_5:
- mov eax, DWORD PTR [r14 + r13 + 12]
+ movzx eax, WORD PTR [r14 + r13 + 7]
mov rdx, QWORD PTR [rbx + rax * 8]
mov r11, rdx
shr r11, 48
@@ -5718,7 +5718,7 @@ asm_handler_GetByValue:
mov rcx, QWORD PTR [rax + 152]
test rcx, rcx
jz .Lasm_GetByValue.assert_failure_2
- mov esi, DWORD PTR [r14 + r13 + 24]
+ movzx esi, WORD PTR [r14 + r13 + 13]
mov rcx, QWORD PTR [rcx + rsi * 8]
movabs r11, 34359738367
and rdx, r11
@@ -5730,7 +5730,7 @@ asm_handler_GetByValue:
mov rax, QWORD PTR [rax + 152]
test rax, rax
jz .Lasm_GetByValue.assert_failure_3
- mov ecx, DWORD PTR [r14 + r13 + 24]
+ movzx ecx, WORD PTR [r14 + r13 + 13]
mov rax, QWORD PTR [rax + rcx * 8]
test rax, rax
jz .Lasm_GetByValue.ssa_block_1
@@ -5764,16 +5764,16 @@ asm_handler_GetByValue:
shr r11, 48
cmp r11w, 65532
je .Lasm_GetByValue.ssa_block_1
- mov r11d, DWORD PTR [r14 + r13 + 8]
+ movzx r11d, WORD PTR [r14 + r13 + 5]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 32
+ add r13d, 15
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_GetByValue_hot_end:
.p2align 6
asm_handler_GetLength:
- mov eax, DWORD PTR [r14 + r13 + 12]
+ movzx eax, WORD PTR [r14 + r13 + 7]
mov rdx, QWORD PTR [rbx + rax * 8]
mov rax, rdx
shr rax, 48
@@ -5790,9 +5790,9 @@ asm_handler_GetLength:
js .Lasm_GetLength.ssa_block_3
movabs r11, 9221683186994511872
or rax, r11
- mov r11d, DWORD PTR [r14 + r13 + 8]
+ movzx r11d, WORD PTR [r14 + r13 + 5]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 24
+ add r13d, 13
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_GetLength.ssa_block_6:
@@ -5806,7 +5806,7 @@ asm_handler_GetLength:
mov rax, QWORD PTR [rax + 152]
test rax, rax
jz .Lasm_GetLength.assert_failure_1
- mov esi, DWORD PTR [r14 + r13 + 20]
+ movzx esi, WORD PTR [r14 + r13 + 11]
mov rax, QWORD PTR [rax + rsi * 8]
test rax, rax
jz .Lasm_GetLength.ssa_block_1
@@ -5834,9 +5834,9 @@ asm_handler_GetLength:
shr r11, 48
cmp r11w, 65532
je .Lasm_GetLength.ssa_block_1
- mov r11d, DWORD PTR [r14 + r13 + 8]
+ movzx r11d, WORD PTR [r14 + r13 + 5]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 24
+ add r13d, 13
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_GetLength.ssa_block_2:
@@ -5850,9 +5850,9 @@ asm_handler_GetLength:
js .Lasm_GetLength.ssa_block_1
movabs r11, 9221683186994511872
or rax, r11
- mov r11d, DWORD PTR [r14 + r13 + 8]
+ movzx r11d, WORD PTR [r14 + r13 + 5]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 24
+ add r13d, 13
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_GetLength_hot_end:
@@ -5868,7 +5868,7 @@ asm_handler_GetGlobal:
mov rcx, QWORD PTR [rax + 176]
test rcx, rcx
jz .Lasm_GetGlobal.assert_failure_0
- mov eax, DWORD PTR [r14 + r13 + 12]
+ movzx eax, WORD PTR [r14 + r13 + 7]
imul rax, rax, 80
add rax, rcx
test rax, rax
@@ -5894,9 +5894,9 @@ asm_handler_GetGlobal:
shr r11, 48
cmp r11w, 65532
je .Lasm_GetGlobal.ssa_block_1
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 16
+ add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_GetGlobal.ssa_block_2:
@@ -5911,9 +5911,9 @@ asm_handler_GetGlobal:
shr r11, 48
cmp r11w, 32763
je .Lasm_GetGlobal.ssa_block_1
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 16
+ add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_GetGlobal_hot_end:
@@ -5929,7 +5929,7 @@ asm_handler_ResolveGlobalBinding:
mov rcx, QWORD PTR [rax + 176]
test rcx, rcx
jz .Lasm_ResolveGlobalBinding.assert_failure_0
- mov eax, DWORD PTR [r14 + r13 + 12]
+ movzx eax, WORD PTR [r14 + r13 + 5]
imul rax, rax, 80
add rax, rcx
test rax, rax
@@ -5947,18 +5947,18 @@ asm_handler_ResolveGlobalBinding:
cmp DWORD PTR [rcx + 40], edx
jne .Lasm_ResolveGlobalBinding.ssa_block_2
movabs r11, 9221401712017801217
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 1]
mov QWORD PTR [rbx + rax * 8], r11
- add r13d, 16
+ add r13d, 7
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_ResolveGlobalBinding.ssa_block_2:
cmp BYTE PTR [rax + 76], 0
jz .Lasm_ResolveGlobalBinding.ssa_block_1
movabs r11, 9221401712017801217
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 1]
mov QWORD PTR [rbx + rax * 8], r11
- add r13d, 16
+ add r13d, 7
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_ResolveGlobalBinding_hot_end:
@@ -5974,7 +5974,7 @@ asm_handler_SetGlobal:
mov rdx, QWORD PTR [rax + 176]
test rdx, rdx
jz .Lasm_SetGlobal.assert_failure_0
- mov eax, DWORD PTR [r14 + r13 + 12]
+ movzx eax, WORD PTR [r14 + r13 + 5]
imul rax, rax, 80
add rax, rdx
test rax, rax
@@ -6002,10 +6002,10 @@ asm_handler_SetGlobal:
je .Lasm_SetGlobal.ssa_block_1
cmp BYTE PTR [rax + 13], 0
jz .Lasm_SetGlobal.ssa_block_1
- mov eax, DWORD PTR [r14 + r13 + 8]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov rax, QWORD PTR [rbx + rax * 8]
mov QWORD PTR [rcx + rdi * 8], rax
- add r13d, 16
+ add r13d, 7
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_SetGlobal.ssa_block_2:
@@ -6058,17 +6058,17 @@ asm_handler_SetGlobal:
.Lasm_SetGlobal.ssa_block_7:
test ecx, 2
jz .Lasm_SetGlobal.ssa_block_1
- mov ecx, DWORD PTR [r14 + r13 + 8]
+ movzx ecx, WORD PTR [r14 + r13 + 3]
mov rcx, QWORD PTR [rbx + rcx * 8]
mov QWORD PTR [rsi + rax * 8], rcx
- add r13d, 16
+ add r13d, 7
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_SetGlobal_hot_end:
.p2align 6
asm_handler_Call:
- mov eax, DWORD PTR [r14 + r13 + 16]
+ movzx eax, WORD PTR [r14 + r13 + 11]
mov rcx, QWORD PTR [rbx + rax * 8]
mov r11, rcx
shr r11, 48
@@ -6098,7 +6098,7 @@ asm_handler_Call:
movabs r9, 9221964661971222528
bt rax, 34
jnc .Lasm_Call.ssa_block_9
- mov esi, DWORD PTR [r14 + r13 + 20]
+ movzx esi, WORD PTR [r14 + r13 + 13]
mov r9, QWORD PTR [rbx + rsi * 8]
bt rax, 35
jc .Lasm_Call.ssa_block_9
@@ -6129,18 +6129,18 @@ asm_handler_Call:
cmp si, 65529
jne .Lasm_Call.ssa_block_2
.Lasm_Call.ssa_block_9:
- mov edi, DWORD PTR [r14 + r13 + 24]
+ mov edi, DWORD PTR [r14 + r13 + 15]
mov esi, eax
cmp rsi, rdi
jae .Lasm_Call.ssa_block_29
mov rsi, rdi
.Lasm_Call.ssa_block_29:
test rdx, rdx
- jz .Lasm_Call.assert_predicate_failure_353
+ jz .Lasm_Call.assert_predicate_failure_357
mov eax, DWORD PTR [rdx + 12]
mov edi, DWORD PTR [rdx + 16]
cmp rdi, rax
- jb .Lasm_Call.assert_predicate_failure_359
+ jb .Lasm_Call.assert_predicate_failure_363
mov eax, 4294967295
sub rax, rdi
cmp rax, rsi
@@ -6159,14 +6159,14 @@ asm_handler_Call:
lea r8, [r8 + 128]
add r8, rax
cmp r8, rax
- jb .Lasm_Call.assert_predicate_failure_374
+ jb .Lasm_Call.assert_predicate_failure_378
cmp r8, r11
ja .Lasm_Call.ssa_block_1
mov r11, QWORD PTR [rbp - 48]
mov QWORD PTR [r11 + 16], r8
mov DWORD PTR [rax + 116], r10d
mov DWORD PTR [rax + 120], esi
- mov r8d, DWORD PTR [r14 + r13 + 24]
+ mov r8d, DWORD PTR [r14 + r13 + 15]
mov DWORD PTR [rax + 104], r8d
mov r8d, DWORD PTR [rcx + 20]
test r8, r8
@@ -6183,7 +6183,7 @@ asm_handler_Call:
test r8d, r8d
cmovnz r8, r11
test r8, r8
- jz .Lasm_Call.assert_predicate_failure_400
+ jz .Lasm_Call.assert_predicate_failure_404
mov QWORD PTR [rax + 32], r8
mov QWORD PTR [rax + 40], r8
mov QWORD PTR [rax + 48], 0
@@ -6227,24 +6227,24 @@ asm_handler_Call:
mov BYTE PTR [rax + 125], 0
lea r11, [rbx - 128]
mov QWORD PTR [rax + 96], r11
- mov edx, DWORD PTR [r14 + r13 + 8]
- mov r8d, DWORD PTR [r14 + r13 + 12]
+ mov edx, DWORD PTR [r14 + r13 + 5]
+ movzx r8d, WORD PTR [r14 + r13 + 9]
mov ecx, r13d
add rdx, rcx
mov DWORD PTR [rbx - 64], ecx
mov DWORD PTR [rax + 108], edx
mov DWORD PTR [rax + 112], r8d
- mov edx, DWORD PTR [r14 + r13 + 24]
+ mov edx, DWORD PTR [r14 + r13 + 15]
cmp rsi, rdx
- jb .Lasm_Call.assert_predicate_failure_266
+ jb .Lasm_Call.assert_predicate_failure_268
lea r9, [rbx]
- lea r10, [r14 + r13 + 32]
+ lea r10, [r14 + r13 + 21]
lea r8, [rax + 128]
xor rcx, rcx
.Lasm_Call.ssa_block_19:
cmp rcx, rdx
jae .Lasm_Call.ssa_block_18
- mov r11d, DWORD PTR [r10 + rcx * 4]
+ movzx r11d, WORD PTR [r10 + rcx * 2]
mov r11, QWORD PTR [r9 + r11 * 8]
mov QWORD PTR [r8 + rdi * 8], r11
lea rcx, [rcx + 1]
@@ -6263,7 +6263,7 @@ asm_handler_Call:
.Lasm_Call.ssa_block_21:
mov rcx, QWORD PTR [rax + 88]
test rcx, rcx
- jz .Lasm_Call.assert_predicate_failure_289
+ jz .Lasm_Call.assert_predicate_failure_292
mov r14, QWORD PTR [rcx + 40]
test r14, r14
jz .Lasm_Call.assert_failure_10
@@ -6276,7 +6276,7 @@ asm_handler_Call:
.Lasm_Call.ssa_block_3:
test eax, 2
jz .Lasm_Call.ssa_block_1
- mov esi, DWORD PTR [r14 + r13 + 24]
+ mov esi, DWORD PTR [r14 + r13 + 15]
mov rax, QWORD PTR [rbp - 48]
mov rdi, QWORD PTR [rax + 24]
mov rax, QWORD PTR [rax + 16]
@@ -6325,7 +6325,7 @@ asm_handler_Call:
mov QWORD PTR [rax + 40], rdi
mov rdx, QWORD PTR [rbx - 80]
mov QWORD PTR [rax + 48], rdx
- mov edx, DWORD PTR [r14 + r13 + 20]
+ movzx edx, WORD PTR [r14 + r13 + 13]
mov rdx, QWORD PTR [rbx + rdx * 8]
mov QWORD PTR [rax + 80], rdx
mov QWORD PTR [rax + 16], 0
@@ -6346,8 +6346,8 @@ asm_handler_Call:
mov BYTE PTR [rax + 79], 0
mov BYTE PTR [rax + 124], 0
mov BYTE PTR [rax + 125], 0
- mov edx, DWORD PTR [r14 + r13 + 8]
- mov r8d, DWORD PTR [r14 + r13 + 12]
+ mov edx, DWORD PTR [r14 + r13 + 5]
+ movzx r8d, WORD PTR [r14 + r13 + 9]
mov edi, r13d
add rdx, rdi
mov DWORD PTR [rbx - 64], edi
@@ -6356,13 +6356,13 @@ asm_handler_Call:
mov DWORD PTR [rax + 108], edx
mov DWORD PTR [rax + 112], r8d
lea rdi, [rbx]
- lea r8, [r14 + r13 + 32]
+ lea r8, [r14 + r13 + 21]
lea r9, [rax + 128]
xor rdx, rdx
.Lasm_Call.ssa_block_25:
cmp rdx, rsi
jae .Lasm_Call.ssa_block_24
- mov r10d, DWORD PTR [r8 + rdx * 4]
+ movzx r10d, WORD PTR [r8 + rdx * 2]
mov r10, QWORD PTR [rdi + r10 * 8]
mov QWORD PTR [r9 + rdx * 8], r10
lea rdx, [rdx + 1]
@@ -6380,7 +6380,7 @@ asm_handler_Call:
add rax, rcx
mov ecx, DWORD PTR [rax + 8]
cmp rcx, 1
- jae .Lasm_Call.assert_predicate_failure_324
+ jae .Lasm_Call.assert_predicate_failure_328
mov rdx, QWORD PTR [rax]
test rdx, rdx
jz .Lasm_Call.assert_failure_17
@@ -6390,27 +6390,27 @@ asm_handler_Call:
mov rcx, rdx
and rcx, 255
cmp rcx, 2
- jae .Lasm_Call.assert_predicate_failure_331
+ jae .Lasm_Call.assert_predicate_failure_335
test rcx, rcx
jnz .Lasm_Call.ssa_block_4
mov rcx, QWORD PTR [rbx - 32]
test rcx, rcx
- jz .Lasm_Call.assert_predicate_failure_337
+ jz .Lasm_Call.assert_predicate_failure_341
mov rdx, QWORD PTR [rbp - 48]
mov QWORD PTR [rdx], rcx
lea r11, [rbx - 128]
mov QWORD PTR [rdx + 16], r11
lea rbx, [rcx + 128]
- mov r11d, DWORD PTR [r14 + r13 + 12]
+ movzx r11d, WORD PTR [r14 + r13 + 9]
mov QWORD PTR [rbx + r11 * 8], rax
- mov ecx, DWORD PTR [r14 + r13 + 8]
+ mov ecx, DWORD PTR [r14 + r13 + 5]
add r13d, ecx
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_Call.ssa_block_2:
lea rcx, [r14 + r13]
mov r11, rsp
- mov r10d, DWORD PTR [rcx + 24]
+ mov r10d, DWORD PTR [rcx + 15]
shl r10, 3
add r10, 55
and r10, -16
@@ -6434,20 +6434,20 @@ asm_handler_Call:
.Lasm_Call.values_allocated_21:
mov rsp, rax
mov QWORD PTR [rsp], r11
- mov r10d, DWORD PTR [rcx + 16]
+ movzx r10d, WORD PTR [rcx + 11]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_Call.value_ready_22:
mov QWORD PTR [rsp + 24], rax
- mov r10d, DWORD PTR [rcx + 20]
+ movzx r10d, WORD PTR [rcx + 13]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_Call.value_ready_23:
mov QWORD PTR [rsp + 32], rax
mov r11d, 0
- mov r10d, DWORD PTR [rcx + 24]
+ mov r10d, DWORD PTR [rcx + 15]
.Lasm_Call.array_value_next_24:
cmp r11, r10
jae .Lasm_Call.array_values_end_26
- mov edx, DWORD PTR [rcx + r11 * 4 + 32]
+ movzx edx, WORD PTR [rcx + r11 * 2 + 21]
mov rax, QWORD PTR [rbx + rdx * 8]
.Lasm_Call.array_value_ready_25:
mov QWORD PTR [rsp + r11 * 8 + 40], rax
@@ -6467,7 +6467,7 @@ asm_handler_Call:
test rax, rax
jne .Lasm_Call.values_exceptional_outputs_28
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 12]
+ movzx r10d, WORD PTR [rcx + 9]
mov r11, QWORD PTR [rsp + 16]
mov QWORD PTR [rbx + r10 * 8], r11
.Lasm_Call.skip_output_value_29:
@@ -6496,7 +6496,7 @@ asm_handler_Call_hot_end:
.p2align 6
asm_handler_ObjectPropertyIteratorNext:
- mov eax, DWORD PTR [r14 + r13 + 12]
+ movzx eax, WORD PTR [r14 + r13 + 5]
mov rsi, QWORD PTR [rbx + rax * 8]
mov r11, rsi
shr r11, 48
@@ -6505,7 +6505,7 @@ asm_handler_ObjectPropertyIteratorNext:
movabs r11, 34359738367
and rsi, r11
add rsi, r15
- mov eax, DWORD PTR [r14 + r13 + 16]
+ movzx eax, WORD PTR [r14 + r13 + 7]
mov rax, QWORD PTR [rbx + rax * 8]
mov rcx, rax
shr rcx, 48
@@ -6552,7 +6552,7 @@ asm_handler_ObjectPropertyIteratorNext:
cmp BYTE PTR [rcx + 11], 0
jz .Lasm_ObjectPropertyIteratorNext.ssa_block_1
.Lasm_ObjectPropertyIteratorNext.ssa_block_8:
- mov edx, DWORD PTR [r14 + r13 + 20]
+ movzx edx, WORD PTR [r14 + r13 + 9]
mov rcx, QWORD PTR [rbx + rdx * 8]
mov r11, rcx
shr r11, 48
@@ -6572,29 +6572,29 @@ asm_handler_ObjectPropertyIteratorNext:
test rax, rax
jz .Lasm_ObjectPropertyIteratorNext.assert_predicate_failure_66
mov rax, QWORD PTR [rax + rcx * 8]
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 1]
mov QWORD PTR [rbx + r11 * 8], rax
movabs r11, 9221683186994511872
or rsi, r11
mov QWORD PTR [rbx + rdx * 8], rsi
movabs r11, 9221401712017801216
- mov eax, DWORD PTR [r14 + r13 + 8]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + rax * 8], r11
- add r13d, 24
+ add r13d, 11
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_ObjectPropertyIteratorNext.ssa_block_13:
movabs r11, 9221401712017801217
- mov eax, DWORD PTR [r14 + r13 + 8]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + rax * 8], r11
- add r13d, 24
+ add r13d, 11
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_ObjectPropertyIteratorNext_hot_end:
.p2align 6
asm_handler_IteratorClose:
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 1]
mov rcx, QWORD PTR [rbx + rax * 8]
mov r11, rcx
shr r11, 48
@@ -6606,7 +6606,7 @@ asm_handler_IteratorClose:
jz .Lasm_IteratorClose.ssa_block_1
cmp BYTE PTR [rax + 11], 0
jz .Lasm_IteratorClose.ssa_block_1
- add r13d, 32
+ add r13d, 15
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_IteratorClose.ssa_block_3:
@@ -6614,7 +6614,7 @@ asm_handler_IteratorClose:
mov rdx, QWORD PTR [rax + 152]
test rdx, rdx
jz .Lasm_IteratorClose.assert_failure_0
- mov eax, DWORD PTR [r14 + r13 + 24]
+ movzx eax, WORD PTR [r14 + r13 + 13]
shl rax, 3
add rdx, rax
mov rdi, rcx
@@ -6624,14 +6624,14 @@ asm_handler_IteratorClose:
and ax, 65534
cmp ax, 32766
jne .Lasm_IteratorClose.ssa_block_1
- add r13d, 32
+ add r13d, 15
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_IteratorClose_hot_end:
.p2align 6
asm_handler_IteratorNextUnpack:
- mov edx, DWORD PTR [r14 + r13 + 12]
+ movzx edx, WORD PTR [r14 + r13 + 5]
mov rax, QWORD PTR [rbx + rdx * 8]
mov r11, rax
shr r11, 48
@@ -6640,11 +6640,11 @@ asm_handler_IteratorNextUnpack:
movsxd rcx, eax
test ecx, ecx
js .Lasm_IteratorNextUnpack.ssa_block_1
- mov esi, DWORD PTR [r14 + r13 + 20]
+ movzx esi, WORD PTR [r14 + r13 + 9]
mov rax, QWORD PTR [rbx + rsi * 8]
test eax, 1
jnz .Lasm_IteratorNextUnpack.ssa_block_1
- mov eax, DWORD PTR [r14 + r13 + 16]
+ movzx eax, WORD PTR [r14 + r13 + 7]
mov rax, QWORD PTR [rbx + rax * 8]
mov r11, rax
shr r11, 48
@@ -6662,14 +6662,14 @@ asm_handler_IteratorNextUnpack:
cmp rcx, rdi
jb .Lasm_IteratorNextUnpack.ssa_block_7
movabs r11, 9222809086901354496
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 1]
mov QWORD PTR [rbx + rax * 8], r11
movabs r11, 9221401712017801217
- mov eax, DWORD PTR [r14 + r13 + 8]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + rax * 8], r11
movabs r11, 9221401712017801217
mov QWORD PTR [rbx + rsi * 8], r11
- add r13d, 24
+ add r13d, 11
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_IteratorNextUnpack.ssa_block_7:
@@ -6691,22 +6691,22 @@ asm_handler_IteratorNextUnpack:
je .Lasm_IteratorNextUnpack.ssa_block_1
inc ecx
jo .Lasm_IteratorNextUnpack.ssa_block_1
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 1]
mov QWORD PTR [rbx + r11 * 8], rax
movabs r11, 9221401712017801216
- mov eax, DWORD PTR [r14 + r13 + 8]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + rax * 8], r11
movabs r11, 9221683186994511872
or rcx, r11
mov QWORD PTR [rbx + rdx * 8], rcx
- add r13d, 24
+ add r13d, 11
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_IteratorNextUnpack_hot_end:
.p2align 6
asm_handler_IsCallable:
- mov eax, DWORD PTR [r14 + r13 + 8]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov rax, QWORD PTR [rbx + rax * 8]
mov r11, rax
shr r11, 48
@@ -6719,16 +6719,16 @@ asm_handler_IsCallable:
test eax, 128
jz .Lasm_IsCallable.ssa_block_1
movabs r11, 9221401712017801217
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 1]
mov QWORD PTR [rbx + rax * 8], r11
- add r13d, 16
+ add r13d, 5
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_IsCallable.ssa_block_1:
movabs r11, 9221401712017801216
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 1]
mov QWORD PTR [rbx + rax * 8], r11
- add r13d, 16
+ add r13d, 5
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_IsCallable_hot_end:
@@ -6743,7 +6743,7 @@ asm_handler_LeavePrivateEnvironment:
test eax, eax
cmovnz rax, r11
mov QWORD PTR [rbx - 80], rax
- add r13d, 8
+ add r13d, 1
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_LeavePrivateEnvironment_hot_end:
@@ -6755,7 +6755,7 @@ asm_handler_ResolveThisBinding:
shr r11, 48
cmp r11w, 32763
je .Lasm_ResolveThisBinding.ssa_block_1
- add r13d, 8
+ add r13d, 1
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_ResolveThisBinding_hot_end:
@@ -6763,17 +6763,17 @@ asm_handler_ResolveThisBinding_hot_end:
.p2align 6
asm_handler_MovSrcUndefined:
movabs r11, 9222809086901354496
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 1]
mov QWORD PTR [rbx + rax * 8], r11
- add r13d, 8
+ add r13d, 3
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_MovSrcUndefined_hot_end:
.p2align 6
asm_handler_AddLhsInt32:
- mov edx, DWORD PTR [r14 + r13 + 8]
- mov eax, DWORD PTR [r14 + r13 + 12]
+ mov edx, DWORD PTR [r14 + r13 + 5]
+ movzx eax, WORD PTR [r14 + r13 + 9]
mov rcx, QWORD PTR [rbx + rax * 8]
mov rax, rcx
shr rax, 48
@@ -6783,56 +6783,56 @@ asm_handler_AddLhsInt32:
jo .Lasm_AddLhsInt32.ssa_block_8
movabs r11, 9221683186994511872
or rdx, r11
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rdx
- add r13d, 16
+ add r13d, 11
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_AddLhsInt32_hot_end:
.p2align 6
asm_handler_AddRhsInt32:
- mov eax, DWORD PTR [r14 + r13 + 8]
+ movzx eax, WORD PTR [r14 + r13 + 5]
mov rcx, QWORD PTR [rbx + rax * 8]
mov rax, rcx
shr rax, 48
cmp ax, 32762
jne .Lasm_AddRhsInt32.ssa_block_5
- add ecx, DWORD PTR [r14 + r13 + 12]
+ add ecx, DWORD PTR [r14 + r13 + 7]
jo .Lasm_AddRhsInt32.ssa_checked_6_failure
movabs r11, 9221683186994511872
or rcx, r11
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rcx
- add r13d, 16
+ add r13d, 11
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_AddRhsInt32_hot_end:
.p2align 6
asm_handler_SubRhsInt32:
- mov eax, DWORD PTR [r14 + r13 + 8]
+ movzx eax, WORD PTR [r14 + r13 + 5]
mov rcx, QWORD PTR [rbx + rax * 8]
mov rax, rcx
shr rax, 48
cmp ax, 32762
jne .Lasm_SubRhsInt32.ssa_block_5
- sub ecx, DWORD PTR [r14 + r13 + 12]
+ sub ecx, DWORD PTR [r14 + r13 + 7]
jo .Lasm_SubRhsInt32.ssa_checked_6_failure
movabs r11, 9221683186994511872
or rcx, r11
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rcx
- add r13d, 16
+ add r13d, 11
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_SubRhsInt32_hot_end:
.p2align 6
asm_handler_MulRhsInt32:
- mov eax, DWORD PTR [r14 + r13 + 8]
+ movzx eax, WORD PTR [r14 + r13 + 5]
mov rcx, QWORD PTR [rbx + rax * 8]
- mov eax, DWORD PTR [r14 + r13 + 12]
+ mov eax, DWORD PTR [r14 + r13 + 7]
mov rdx, rcx
shr rdx, 48
cmp dx, 32762
@@ -6847,18 +6847,18 @@ asm_handler_MulRhsInt32:
.Lasm_MulRhsInt32.ssa_block_11:
movabs r11, 9221683186994511872
or rdx, r11
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rdx
- add r13d, 16
+ add r13d, 11
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_MulRhsInt32_hot_end:
.p2align 6
asm_handler_DivRhsInt32:
- mov eax, DWORD PTR [r14 + r13 + 8]
+ movzx eax, WORD PTR [r14 + r13 + 5]
mov rcx, QWORD PTR [rbx + rax * 8]
- mov edx, DWORD PTR [r14 + r13 + 12]
+ mov edx, DWORD PTR [r14 + r13 + 7]
mov rax, rcx
shr rax, 48
cmp ax, 32762
@@ -6885,9 +6885,9 @@ asm_handler_DivRhsInt32:
.Lasm_DivRhsInt32.ssa_block_3:
movabs r11, 9221683186994511872
or rax, r11
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 16
+ add r13d, 11
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_DivRhsInt32.ssa_block_2:
@@ -6899,18 +6899,18 @@ asm_handler_DivRhsInt32:
ucomisd xmm0, xmm0
jp .Lasm_DivRhsInt32.canon_nan_0
.Lasm_DivRhsInt32.canon_nan_0_ret:
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 16
+ add r13d, 11
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_DivRhsInt32_hot_end:
.p2align 6
asm_handler_BitwiseXorRhsInt32:
- mov eax, DWORD PTR [r14 + r13 + 8]
+ movzx eax, WORD PTR [r14 + r13 + 5]
mov rdx, QWORD PTR [rbx + rax * 8]
- mov eax, DWORD PTR [r14 + r13 + 12]
+ mov eax, DWORD PTR [r14 + r13 + 7]
mov r11, rdx
shr r11, 48
cmp r11w, 32762
@@ -6918,18 +6918,18 @@ asm_handler_BitwiseXorRhsInt32:
xor edx, eax
movabs r11, 9221683186994511872
or rdx, r11
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rdx
- add r13d, 16
+ add r13d, 11
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_BitwiseXorRhsInt32_hot_end:
.p2align 6
asm_handler_BitwiseAndRhsInt32:
- mov eax, DWORD PTR [r14 + r13 + 8]
+ movzx eax, WORD PTR [r14 + r13 + 5]
mov rdx, QWORD PTR [rbx + rax * 8]
- mov eax, DWORD PTR [r14 + r13 + 12]
+ mov eax, DWORD PTR [r14 + r13 + 7]
mov r11, rdx
shr r11, 48
cmp r11w, 32762
@@ -6937,18 +6937,18 @@ asm_handler_BitwiseAndRhsInt32:
and edx, eax
movabs r11, 9221683186994511872
or rdx, r11
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rdx
- add r13d, 16
+ add r13d, 11
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_BitwiseAndRhsInt32_hot_end:
.p2align 6
asm_handler_BitwiseOrRhsInt32:
- mov eax, DWORD PTR [r14 + r13 + 8]
+ movzx eax, WORD PTR [r14 + r13 + 5]
mov rdx, QWORD PTR [rbx + rax * 8]
- mov eax, DWORD PTR [r14 + r13 + 12]
+ mov eax, DWORD PTR [r14 + r13 + 7]
mov r11, rdx
shr r11, 48
cmp r11w, 32762
@@ -6956,18 +6956,18 @@ asm_handler_BitwiseOrRhsInt32:
or edx, eax
movabs r11, 9221683186994511872
or rdx, r11
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rdx
- add r13d, 16
+ add r13d, 11
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_BitwiseOrRhsInt32_hot_end:
.p2align 6
asm_handler_LeftShiftRhsInt32:
- mov eax, DWORD PTR [r14 + r13 + 8]
+ movzx eax, WORD PTR [r14 + r13 + 5]
mov rdx, QWORD PTR [rbx + rax * 8]
- mov ecx, DWORD PTR [r14 + r13 + 12]
+ mov ecx, DWORD PTR [r14 + r13 + 7]
mov r11, rdx
shr r11, 48
cmp r11w, 32762
@@ -6975,18 +6975,18 @@ asm_handler_LeftShiftRhsInt32:
shl edx, cl
movabs r11, 9221683186994511872
or rdx, r11
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rdx
- add r13d, 16
+ add r13d, 11
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_LeftShiftRhsInt32_hot_end:
.p2align 6
asm_handler_RightShiftRhsInt32:
- mov eax, DWORD PTR [r14 + r13 + 8]
+ movzx eax, WORD PTR [r14 + r13 + 5]
mov rdx, QWORD PTR [rbx + rax * 8]
- mov ecx, DWORD PTR [r14 + r13 + 12]
+ mov ecx, DWORD PTR [r14 + r13 + 7]
mov r11, rdx
shr r11, 48
cmp r11w, 32762
@@ -6994,18 +6994,18 @@ asm_handler_RightShiftRhsInt32:
sar edx, cl
movabs r11, 9221683186994511872
or rdx, r11
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rdx
- add r13d, 16
+ add r13d, 11
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_RightShiftRhsInt32_hot_end:
.p2align 6
asm_handler_UnsignedRightShiftRhsInt32:
- mov eax, DWORD PTR [r14 + r13 + 8]
+ movzx eax, WORD PTR [r14 + r13 + 5]
mov rdx, QWORD PTR [rbx + rax * 8]
- mov ecx, DWORD PTR [r14 + r13 + 12]
+ mov ecx, DWORD PTR [r14 + r13 + 7]
mov r11, rdx
shr r11, 48
cmp r11w, 32762
@@ -7015,22 +7015,22 @@ asm_handler_UnsignedRightShiftRhsInt32:
js .Lasm_UnsignedRightShiftRhsInt32.ssa_block_2
movabs r11, 9221683186994511872
or rdx, r11
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rdx
- add r13d, 16
+ add r13d, 11
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_UnsignedRightShiftRhsInt32_hot_end:
.p2align 6
asm_handler_ModRhsInt32:
- mov eax, DWORD PTR [r14 + r13 + 8]
+ movzx eax, WORD PTR [r14 + r13 + 5]
mov rcx, QWORD PTR [rbx + rax * 8]
mov r11, rcx
shr r11, 48
cmp r11w, 32762
jne .Lasm_ModRhsInt32.ssa_block_2
- mov esi, DWORD PTR [r14 + r13 + 12]
+ mov esi, DWORD PTR [r14 + r13 + 7]
test esi, esi
jz .Lasm_ModRhsInt32.ssa_block_1
test ecx, ecx
@@ -7040,18 +7040,18 @@ asm_handler_ModRhsInt32:
idiv esi
movabs r11, 9221683186994511872
or rdx, r11
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rdx
- add r13d, 16
+ add r13d, 11
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_ModRhsInt32_hot_end:
.p2align 6
asm_handler_LessThanRhsInt32:
- mov eax, DWORD PTR [r14 + r13 + 8]
+ movzx eax, WORD PTR [r14 + r13 + 5]
mov rcx, QWORD PTR [rbx + rax * 8]
- mov edx, DWORD PTR [r14 + r13 + 12]
+ mov edx, DWORD PTR [r14 + r13 + 7]
mov rax, rcx
shr rax, 48
cmp ax, 32762
@@ -7060,25 +7060,25 @@ asm_handler_LessThanRhsInt32:
jl .Lasm_LessThanRhsInt32.ssa_block_1
.Lasm_LessThanRhsInt32.ssa_block_2:
movabs r11, 9221401712017801216
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + rax * 8], r11
- add r13d, 16
+ add r13d, 11
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_LessThanRhsInt32.ssa_block_1:
movabs r11, 9221401712017801217
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + rax * 8], r11
- add r13d, 16
+ add r13d, 11
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_LessThanRhsInt32_hot_end:
.p2align 6
asm_handler_LessThanEqualsRhsInt32:
- mov eax, DWORD PTR [r14 + r13 + 8]
+ movzx eax, WORD PTR [r14 + r13 + 5]
mov rcx, QWORD PTR [rbx + rax * 8]
- mov edx, DWORD PTR [r14 + r13 + 12]
+ mov edx, DWORD PTR [r14 + r13 + 7]
mov rax, rcx
shr rax, 48
cmp ax, 32762
@@ -7087,25 +7087,25 @@ asm_handler_LessThanEqualsRhsInt32:
jle .Lasm_LessThanEqualsRhsInt32.ssa_block_1
.Lasm_LessThanEqualsRhsInt32.ssa_block_2:
movabs r11, 9221401712017801216
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + rax * 8], r11
- add r13d, 16
+ add r13d, 11
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_LessThanEqualsRhsInt32.ssa_block_1:
movabs r11, 9221401712017801217
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + rax * 8], r11
- add r13d, 16
+ add r13d, 11
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_LessThanEqualsRhsInt32_hot_end:
.p2align 6
asm_handler_GreaterThanRhsInt32:
- mov eax, DWORD PTR [r14 + r13 + 8]
+ movzx eax, WORD PTR [r14 + r13 + 5]
mov rcx, QWORD PTR [rbx + rax * 8]
- mov edx, DWORD PTR [r14 + r13 + 12]
+ mov edx, DWORD PTR [r14 + r13 + 7]
mov rax, rcx
shr rax, 48
cmp ax, 32762
@@ -7114,25 +7114,25 @@ asm_handler_GreaterThanRhsInt32:
jg .Lasm_GreaterThanRhsInt32.ssa_block_1
.Lasm_GreaterThanRhsInt32.ssa_block_2:
movabs r11, 9221401712017801216
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + rax * 8], r11
- add r13d, 16
+ add r13d, 11
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_GreaterThanRhsInt32.ssa_block_1:
movabs r11, 9221401712017801217
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + rax * 8], r11
- add r13d, 16
+ add r13d, 11
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_GreaterThanRhsInt32_hot_end:
.p2align 6
asm_handler_GreaterThanEqualsRhsInt32:
- mov eax, DWORD PTR [r14 + r13 + 8]
+ movzx eax, WORD PTR [r14 + r13 + 5]
mov rcx, QWORD PTR [rbx + rax * 8]
- mov edx, DWORD PTR [r14 + r13 + 12]
+ mov edx, DWORD PTR [r14 + r13 + 7]
mov rax, rcx
shr rax, 48
cmp ax, 32762
@@ -7141,25 +7141,25 @@ asm_handler_GreaterThanEqualsRhsInt32:
jge .Lasm_GreaterThanEqualsRhsInt32.ssa_block_1
.Lasm_GreaterThanEqualsRhsInt32.ssa_block_2:
movabs r11, 9221401712017801216
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + rax * 8], r11
- add r13d, 16
+ add r13d, 11
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_GreaterThanEqualsRhsInt32.ssa_block_1:
movabs r11, 9221401712017801217
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + rax * 8], r11
- add r13d, 16
+ add r13d, 11
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_GreaterThanEqualsRhsInt32_hot_end:
.p2align 6
asm_handler_JumpLessThanRhsInt32:
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov rcx, QWORD PTR [rbx + rax * 8]
- mov edx, DWORD PTR [r14 + r13 + 8]
+ mov edx, DWORD PTR [r14 + r13 + 5]
mov rax, rcx
shr rax, 48
cmp ax, 32762
@@ -7167,20 +7167,20 @@ asm_handler_JumpLessThanRhsInt32:
cmp ecx, edx
jl .Lasm_JumpLessThanRhsInt32.ssa_block_2
.Lasm_JumpLessThanRhsInt32.ssa_block_3:
- mov r13d, DWORD PTR [r14 + r13 + 16]
+ mov r13d, DWORD PTR [r14 + r13 + 13]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_JumpLessThanRhsInt32.ssa_block_2:
- mov r13d, DWORD PTR [r14 + r13 + 12]
+ mov r13d, DWORD PTR [r14 + r13 + 9]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_JumpLessThanRhsInt32_hot_end:
.p2align 6
asm_handler_JumpLessThanEqualsRhsInt32:
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov rcx, QWORD PTR [rbx + rax * 8]
- mov edx, DWORD PTR [r14 + r13 + 8]
+ mov edx, DWORD PTR [r14 + r13 + 5]
mov rax, rcx
shr rax, 48
cmp ax, 32762
@@ -7188,20 +7188,20 @@ asm_handler_JumpLessThanEqualsRhsInt32:
cmp ecx, edx
jle .Lasm_JumpLessThanEqualsRhsInt32.ssa_block_2
.Lasm_JumpLessThanEqualsRhsInt32.ssa_block_3:
- mov r13d, DWORD PTR [r14 + r13 + 16]
+ mov r13d, DWORD PTR [r14 + r13 + 13]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_JumpLessThanEqualsRhsInt32.ssa_block_2:
- mov r13d, DWORD PTR [r14 + r13 + 12]
+ mov r13d, DWORD PTR [r14 + r13 + 9]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_JumpLessThanEqualsRhsInt32_hot_end:
.p2align 6
asm_handler_JumpGreaterThanRhsInt32:
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov rcx, QWORD PTR [rbx + rax * 8]
- mov edx, DWORD PTR [r14 + r13 + 8]
+ mov edx, DWORD PTR [r14 + r13 + 5]
mov rax, rcx
shr rax, 48
cmp ax, 32762
@@ -7209,20 +7209,20 @@ asm_handler_JumpGreaterThanRhsInt32:
cmp ecx, edx
jg .Lasm_JumpGreaterThanRhsInt32.ssa_block_2
.Lasm_JumpGreaterThanRhsInt32.ssa_block_3:
- mov r13d, DWORD PTR [r14 + r13 + 16]
+ mov r13d, DWORD PTR [r14 + r13 + 13]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_JumpGreaterThanRhsInt32.ssa_block_2:
- mov r13d, DWORD PTR [r14 + r13 + 12]
+ mov r13d, DWORD PTR [r14 + r13 + 9]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_JumpGreaterThanRhsInt32_hot_end:
.p2align 6
asm_handler_JumpGreaterThanEqualsRhsInt32:
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov rcx, QWORD PTR [rbx + rax * 8]
- mov edx, DWORD PTR [r14 + r13 + 8]
+ mov edx, DWORD PTR [r14 + r13 + 5]
mov rax, rcx
shr rax, 48
cmp ax, 32762
@@ -7230,20 +7230,20 @@ asm_handler_JumpGreaterThanEqualsRhsInt32:
cmp ecx, edx
jge .Lasm_JumpGreaterThanEqualsRhsInt32.ssa_block_2
.Lasm_JumpGreaterThanEqualsRhsInt32.ssa_block_3:
- mov r13d, DWORD PTR [r14 + r13 + 16]
+ mov r13d, DWORD PTR [r14 + r13 + 13]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_JumpGreaterThanEqualsRhsInt32.ssa_block_2:
- mov r13d, DWORD PTR [r14 + r13 + 12]
+ mov r13d, DWORD PTR [r14 + r13 + 9]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_JumpGreaterThanEqualsRhsInt32_hot_end:
.p2align 6
asm_handler_StrictlyEqualsRhsInt32:
- mov eax, DWORD PTR [r14 + r13 + 8]
+ movzx eax, WORD PTR [r14 + r13 + 5]
mov rcx, QWORD PTR [rbx + rax * 8]
- mov edx, DWORD PTR [r14 + r13 + 12]
+ mov edx, DWORD PTR [r14 + r13 + 7]
movabs r11, 9221683186994511872
or rdx, r11
jmp .Lasm_StrictlyEqualsRhsInt32.ssa_block_9
@@ -7321,25 +7321,25 @@ asm_handler_StrictlyEqualsRhsInt32:
jne .Lasm_StrictlyEqualsRhsInt32.ssa_block_20
.Lasm_StrictlyEqualsRhsInt32.ssa_block_3:
movabs r11, 9221401712017801216
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + rax * 8], r11
- add r13d, 16
+ add r13d, 11
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_StrictlyEqualsRhsInt32.ssa_block_2:
movabs r11, 9221401712017801217
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + rax * 8], r11
- add r13d, 16
+ add r13d, 11
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_StrictlyEqualsRhsInt32_hot_end:
.p2align 6
asm_handler_StrictlyInequalsRhsInt32:
- mov eax, DWORD PTR [r14 + r13 + 8]
+ movzx eax, WORD PTR [r14 + r13 + 5]
mov rcx, QWORD PTR [rbx + rax * 8]
- mov edx, DWORD PTR [r14 + r13 + 12]
+ mov edx, DWORD PTR [r14 + r13 + 7]
movabs r11, 9221683186994511872
or rdx, r11
jmp .Lasm_StrictlyInequalsRhsInt32.ssa_block_9
@@ -7417,25 +7417,25 @@ asm_handler_StrictlyInequalsRhsInt32:
jne .Lasm_StrictlyInequalsRhsInt32.ssa_block_20
.Lasm_StrictlyInequalsRhsInt32.ssa_block_2:
movabs r11, 9221401712017801217
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + rax * 8], r11
- add r13d, 16
+ add r13d, 11
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_StrictlyInequalsRhsInt32.ssa_block_3:
movabs r11, 9221401712017801216
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + rax * 8], r11
- add r13d, 16
+ add r13d, 11
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_StrictlyInequalsRhsInt32_hot_end:
.p2align 6
asm_handler_LooselyEqualsRhsInt32:
- mov eax, DWORD PTR [r14 + r13 + 8]
+ movzx eax, WORD PTR [r14 + r13 + 5]
mov rcx, QWORD PTR [rbx + rax * 8]
- mov edx, DWORD PTR [r14 + r13 + 12]
+ mov edx, DWORD PTR [r14 + r13 + 7]
movabs r11, 9221683186994511872
or rdx, r11
jmp .Lasm_LooselyEqualsRhsInt32.ssa_block_9
@@ -7508,25 +7508,25 @@ asm_handler_LooselyEqualsRhsInt32:
jmp .Lasm_LooselyEqualsRhsInt32.ssa_block_1
.Lasm_LooselyEqualsRhsInt32.ssa_block_3:
movabs r11, 9221401712017801216
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + rax * 8], r11
- add r13d, 16
+ add r13d, 11
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_LooselyEqualsRhsInt32.ssa_block_2:
movabs r11, 9221401712017801217
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + rax * 8], r11
- add r13d, 16
+ add r13d, 11
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_LooselyEqualsRhsInt32_hot_end:
.p2align 6
asm_handler_LooselyInequalsRhsInt32:
- mov eax, DWORD PTR [r14 + r13 + 8]
+ movzx eax, WORD PTR [r14 + r13 + 5]
mov rcx, QWORD PTR [rbx + rax * 8]
- mov edx, DWORD PTR [r14 + r13 + 12]
+ mov edx, DWORD PTR [r14 + r13 + 7]
movabs r11, 9221683186994511872
or rdx, r11
jmp .Lasm_LooselyInequalsRhsInt32.ssa_block_9
@@ -7599,25 +7599,25 @@ asm_handler_LooselyInequalsRhsInt32:
jmp .Lasm_LooselyInequalsRhsInt32.ssa_block_1
.Lasm_LooselyInequalsRhsInt32.ssa_block_2:
movabs r11, 9221401712017801217
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + rax * 8], r11
- add r13d, 16
+ add r13d, 11
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_LooselyInequalsRhsInt32.ssa_block_3:
movabs r11, 9221401712017801216
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + rax * 8], r11
- add r13d, 16
+ add r13d, 11
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_LooselyInequalsRhsInt32_hot_end:
.p2align 6
asm_handler_JumpStrictlyEqualsRhsInt32:
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov rcx, QWORD PTR [rbx + rax * 8]
- mov edx, DWORD PTR [r14 + r13 + 8]
+ mov edx, DWORD PTR [r14 + r13 + 5]
movabs r11, 9221683186994511872
or rdx, r11
jmp .Lasm_JumpStrictlyEqualsRhsInt32.ssa_block_9
@@ -7694,20 +7694,20 @@ asm_handler_JumpStrictlyEqualsRhsInt32:
cmp si, 32760
jne .Lasm_JumpStrictlyEqualsRhsInt32.ssa_block_20
.Lasm_JumpStrictlyEqualsRhsInt32.ssa_block_3:
- mov r13d, DWORD PTR [r14 + r13 + 16]
+ mov r13d, DWORD PTR [r14 + r13 + 13]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_JumpStrictlyEqualsRhsInt32.ssa_block_2:
- mov r13d, DWORD PTR [r14 + r13 + 12]
+ mov r13d, DWORD PTR [r14 + r13 + 9]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_JumpStrictlyEqualsRhsInt32_hot_end:
.p2align 6
asm_handler_JumpStrictlyInequalsRhsInt32:
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov rcx, QWORD PTR [rbx + rax * 8]
- mov edx, DWORD PTR [r14 + r13 + 8]
+ mov edx, DWORD PTR [r14 + r13 + 5]
movabs r11, 9221683186994511872
or rdx, r11
jmp .Lasm_JumpStrictlyInequalsRhsInt32.ssa_block_9
@@ -7784,20 +7784,20 @@ asm_handler_JumpStrictlyInequalsRhsInt32:
cmp si, 32760
jne .Lasm_JumpStrictlyInequalsRhsInt32.ssa_block_20
.Lasm_JumpStrictlyInequalsRhsInt32.ssa_block_2:
- mov r13d, DWORD PTR [r14 + r13 + 12]
+ mov r13d, DWORD PTR [r14 + r13 + 9]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_JumpStrictlyInequalsRhsInt32.ssa_block_3:
- mov r13d, DWORD PTR [r14 + r13 + 16]
+ mov r13d, DWORD PTR [r14 + r13 + 13]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_JumpStrictlyInequalsRhsInt32_hot_end:
.p2align 6
asm_handler_JumpLooselyEqualsRhsInt32:
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov rcx, QWORD PTR [rbx + rax * 8]
- mov edx, DWORD PTR [r14 + r13 + 8]
+ mov edx, DWORD PTR [r14 + r13 + 5]
movabs r11, 9221683186994511872
or rdx, r11
jmp .Lasm_JumpLooselyEqualsRhsInt32.ssa_block_9
@@ -7869,20 +7869,20 @@ asm_handler_JumpLooselyEqualsRhsInt32:
jne .Lasm_JumpLooselyEqualsRhsInt32.ssa_block_22
jmp .Lasm_JumpLooselyEqualsRhsInt32.ssa_block_1
.Lasm_JumpLooselyEqualsRhsInt32.ssa_block_3:
- mov r13d, DWORD PTR [r14 + r13 + 16]
+ mov r13d, DWORD PTR [r14 + r13 + 13]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_JumpLooselyEqualsRhsInt32.ssa_block_2:
- mov r13d, DWORD PTR [r14 + r13 + 12]
+ mov r13d, DWORD PTR [r14 + r13 + 9]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_JumpLooselyEqualsRhsInt32_hot_end:
.p2align 6
asm_handler_JumpLooselyInequalsRhsInt32:
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov rcx, QWORD PTR [rbx + rax * 8]
- mov edx, DWORD PTR [r14 + r13 + 8]
+ mov edx, DWORD PTR [r14 + r13 + 5]
movabs r11, 9221683186994511872
or rdx, r11
jmp .Lasm_JumpLooselyInequalsRhsInt32.ssa_block_9
@@ -7954,20 +7954,20 @@ asm_handler_JumpLooselyInequalsRhsInt32:
jne .Lasm_JumpLooselyInequalsRhsInt32.ssa_block_22
jmp .Lasm_JumpLooselyInequalsRhsInt32.ssa_block_1
.Lasm_JumpLooselyInequalsRhsInt32.ssa_block_2:
- mov r13d, DWORD PTR [r14 + r13 + 12]
+ mov r13d, DWORD PTR [r14 + r13 + 9]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_JumpLooselyInequalsRhsInt32.ssa_block_3:
- mov r13d, DWORD PTR [r14 + r13 + 16]
+ mov r13d, DWORD PTR [r14 + r13 + 13]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_JumpLooselyInequalsRhsInt32_hot_end:
.p2align 6
asm_handler_JumpLessThanLoopRhsInt32:
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov rcx, QWORD PTR [rbx + rax * 8]
- mov edx, DWORD PTR [r14 + r13 + 8]
+ mov edx, DWORD PTR [r14 + r13 + 5]
mov rax, rcx
shr rax, 48
cmp ax, 32762
@@ -7975,20 +7975,20 @@ asm_handler_JumpLessThanLoopRhsInt32:
cmp ecx, edx
jl .Lasm_JumpLessThanLoopRhsInt32.ssa_block_2
.Lasm_JumpLessThanLoopRhsInt32.ssa_block_3:
- mov r13d, DWORD PTR [r14 + r13 + 16]
+ mov r13d, DWORD PTR [r14 + r13 + 13]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_JumpLessThanLoopRhsInt32.ssa_block_2:
- mov r13d, DWORD PTR [r14 + r13 + 12]
+ mov r13d, DWORD PTR [r14 + r13 + 9]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_JumpLessThanLoopRhsInt32_hot_end:
.p2align 6
asm_handler_JumpLessThanEqualsLoopRhsInt32:
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov rcx, QWORD PTR [rbx + rax * 8]
- mov edx, DWORD PTR [r14 + r13 + 8]
+ mov edx, DWORD PTR [r14 + r13 + 5]
mov rax, rcx
shr rax, 48
cmp ax, 32762
@@ -7996,20 +7996,20 @@ asm_handler_JumpLessThanEqualsLoopRhsInt32:
cmp ecx, edx
jle .Lasm_JumpLessThanEqualsLoopRhsInt32.ssa_block_2
.Lasm_JumpLessThanEqualsLoopRhsInt32.ssa_block_3:
- mov r13d, DWORD PTR [r14 + r13 + 16]
+ mov r13d, DWORD PTR [r14 + r13 + 13]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_JumpLessThanEqualsLoopRhsInt32.ssa_block_2:
- mov r13d, DWORD PTR [r14 + r13 + 12]
+ mov r13d, DWORD PTR [r14 + r13 + 9]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_JumpLessThanEqualsLoopRhsInt32_hot_end:
.p2align 6
asm_handler_JumpGreaterThanLoopRhsInt32:
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov rcx, QWORD PTR [rbx + rax * 8]
- mov edx, DWORD PTR [r14 + r13 + 8]
+ mov edx, DWORD PTR [r14 + r13 + 5]
mov rax, rcx
shr rax, 48
cmp ax, 32762
@@ -8017,20 +8017,20 @@ asm_handler_JumpGreaterThanLoopRhsInt32:
cmp ecx, edx
jg .Lasm_JumpGreaterThanLoopRhsInt32.ssa_block_2
.Lasm_JumpGreaterThanLoopRhsInt32.ssa_block_3:
- mov r13d, DWORD PTR [r14 + r13 + 16]
+ mov r13d, DWORD PTR [r14 + r13 + 13]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_JumpGreaterThanLoopRhsInt32.ssa_block_2:
- mov r13d, DWORD PTR [r14 + r13 + 12]
+ mov r13d, DWORD PTR [r14 + r13 + 9]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_JumpGreaterThanLoopRhsInt32_hot_end:
.p2align 6
asm_handler_JumpGreaterThanEqualsLoopRhsInt32:
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov rcx, QWORD PTR [rbx + rax * 8]
- mov edx, DWORD PTR [r14 + r13 + 8]
+ mov edx, DWORD PTR [r14 + r13 + 5]
mov rax, rcx
shr rax, 48
cmp ax, 32762
@@ -8038,20 +8038,20 @@ asm_handler_JumpGreaterThanEqualsLoopRhsInt32:
cmp ecx, edx
jge .Lasm_JumpGreaterThanEqualsLoopRhsInt32.ssa_block_2
.Lasm_JumpGreaterThanEqualsLoopRhsInt32.ssa_block_3:
- mov r13d, DWORD PTR [r14 + r13 + 16]
+ mov r13d, DWORD PTR [r14 + r13 + 13]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_JumpGreaterThanEqualsLoopRhsInt32.ssa_block_2:
- mov r13d, DWORD PTR [r14 + r13 + 12]
+ mov r13d, DWORD PTR [r14 + r13 + 9]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_JumpGreaterThanEqualsLoopRhsInt32_hot_end:
.p2align 6
asm_handler_JumpStrictlyEqualsLoopRhsInt32:
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov rcx, QWORD PTR [rbx + rax * 8]
- mov edx, DWORD PTR [r14 + r13 + 8]
+ mov edx, DWORD PTR [r14 + r13 + 5]
movabs r11, 9221683186994511872
or rdx, r11
jmp .Lasm_JumpStrictlyEqualsLoopRhsInt32.ssa_block_9
@@ -8128,20 +8128,20 @@ asm_handler_JumpStrictlyEqualsLoopRhsInt32:
cmp si, 32760
jne .Lasm_JumpStrictlyEqualsLoopRhsInt32.ssa_block_20
.Lasm_JumpStrictlyEqualsLoopRhsInt32.ssa_block_3:
- mov r13d, DWORD PTR [r14 + r13 + 16]
+ mov r13d, DWORD PTR [r14 + r13 + 13]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_JumpStrictlyEqualsLoopRhsInt32.ssa_block_2:
- mov r13d, DWORD PTR [r14 + r13 + 12]
+ mov r13d, DWORD PTR [r14 + r13 + 9]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_JumpStrictlyEqualsLoopRhsInt32_hot_end:
.p2align 6
asm_handler_JumpStrictlyInequalsLoopRhsInt32:
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov rcx, QWORD PTR [rbx + rax * 8]
- mov edx, DWORD PTR [r14 + r13 + 8]
+ mov edx, DWORD PTR [r14 + r13 + 5]
movabs r11, 9221683186994511872
or rdx, r11
jmp .Lasm_JumpStrictlyInequalsLoopRhsInt32.ssa_block_9
@@ -8218,20 +8218,20 @@ asm_handler_JumpStrictlyInequalsLoopRhsInt32:
cmp si, 32760
jne .Lasm_JumpStrictlyInequalsLoopRhsInt32.ssa_block_20
.Lasm_JumpStrictlyInequalsLoopRhsInt32.ssa_block_2:
- mov r13d, DWORD PTR [r14 + r13 + 12]
+ mov r13d, DWORD PTR [r14 + r13 + 9]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_JumpStrictlyInequalsLoopRhsInt32.ssa_block_3:
- mov r13d, DWORD PTR [r14 + r13 + 16]
+ mov r13d, DWORD PTR [r14 + r13 + 13]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_JumpStrictlyInequalsLoopRhsInt32_hot_end:
.p2align 6
asm_handler_JumpLooselyEqualsLoopRhsInt32:
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov rcx, QWORD PTR [rbx + rax * 8]
- mov edx, DWORD PTR [r14 + r13 + 8]
+ mov edx, DWORD PTR [r14 + r13 + 5]
movabs r11, 9221683186994511872
or rdx, r11
jmp .Lasm_JumpLooselyEqualsLoopRhsInt32.ssa_block_9
@@ -8303,20 +8303,20 @@ asm_handler_JumpLooselyEqualsLoopRhsInt32:
jne .Lasm_JumpLooselyEqualsLoopRhsInt32.ssa_block_22
jmp .Lasm_JumpLooselyEqualsLoopRhsInt32.ssa_block_1
.Lasm_JumpLooselyEqualsLoopRhsInt32.ssa_block_3:
- mov r13d, DWORD PTR [r14 + r13 + 16]
+ mov r13d, DWORD PTR [r14 + r13 + 13]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_JumpLooselyEqualsLoopRhsInt32.ssa_block_2:
- mov r13d, DWORD PTR [r14 + r13 + 12]
+ mov r13d, DWORD PTR [r14 + r13 + 9]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_JumpLooselyEqualsLoopRhsInt32_hot_end:
.p2align 6
asm_handler_JumpLooselyInequalsLoopRhsInt32:
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov rcx, QWORD PTR [rbx + rax * 8]
- mov edx, DWORD PTR [r14 + r13 + 8]
+ mov edx, DWORD PTR [r14 + r13 + 5]
movabs r11, 9221683186994511872
or rdx, r11
jmp .Lasm_JumpLooselyInequalsLoopRhsInt32.ssa_block_9
@@ -8388,11 +8388,11 @@ asm_handler_JumpLooselyInequalsLoopRhsInt32:
jne .Lasm_JumpLooselyInequalsLoopRhsInt32.ssa_block_22
jmp .Lasm_JumpLooselyInequalsLoopRhsInt32.ssa_block_1
.Lasm_JumpLooselyInequalsLoopRhsInt32.ssa_block_2:
- mov r13d, DWORD PTR [r14 + r13 + 12]
+ mov r13d, DWORD PTR [r14 + r13 + 9]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_JumpLooselyInequalsLoopRhsInt32.ssa_block_3:
- mov r13d, DWORD PTR [r14 + r13 + 16]
+ mov r13d, DWORD PTR [r14 + r13 + 13]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_JumpLooselyInequalsLoopRhsInt32_hot_end:
@@ -8413,9 +8413,9 @@ asm_handler_Add_cold:
cvtsi2sd xmm1, eax
addsd xmm0, xmm1
movq rax, xmm0
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 16
+ add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_Add.ssa_block_8:
@@ -8471,18 +8471,19 @@ asm_handler_Add_cold:
jp .Lasm_Add.canon_nan_0
.Lasm_Add.canon_nan_0_ret:
.Lasm_Add.ssa_box_number_6_done:
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 16
+ add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_Add.ssa_block_1:
- mov esi, DWORD PTR [r14 + r13 + 4]
+ movzx esi, WORD PTR [r14 + r13 + 3]
mov DWORD PTR [rbx + -64], r13d
sub rsp, 16
mov DWORD PTR [rsp + 8], esi
mov r8, rcx
mov rcx, rdx
+ mov r9d, 9
lea rdx, [rsp]
mov rdi, QWORD PTR [rbp - 48]
mov esi, r13d
@@ -8530,9 +8531,9 @@ asm_handler_Sub_cold:
cvtsi2sd xmm1, eax
subsd xmm0, xmm1
movq rax, xmm0
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 16
+ add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_Sub.ssa_block_8:
@@ -8588,18 +8589,19 @@ asm_handler_Sub_cold:
jp .Lasm_Sub.canon_nan_0
.Lasm_Sub.canon_nan_0_ret:
.Lasm_Sub.ssa_box_number_6_done:
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 16
+ add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_Sub.ssa_block_1:
- mov esi, DWORD PTR [r14 + r13 + 4]
+ movzx esi, WORD PTR [r14 + r13 + 3]
mov DWORD PTR [rbx + -64], r13d
sub rsp, 16
mov DWORD PTR [rsp + 8], esi
mov r8, rcx
mov rcx, rdx
+ mov r9d, 9
lea rdx, [rsp]
mov rdi, QWORD PTR [rbp - 48]
mov esi, r13d
@@ -8646,16 +8648,16 @@ asm_handler_Mul_cold:
cvtsi2sd xmm1, eax
mulsd xmm0, xmm1
movq rax, xmm0
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 16
+ add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_Mul.ssa_block_3:
movabs r11, -9223372036854775808
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + rax * 8], r11
- add r13d, 16
+ add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_Mul.ssa_block_9:
@@ -8711,18 +8713,19 @@ asm_handler_Mul_cold:
jp .Lasm_Mul.canon_nan_0
.Lasm_Mul.canon_nan_0_ret:
.Lasm_Mul.ssa_box_number_6_done:
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 16
+ add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_Mul.ssa_block_1:
- mov esi, DWORD PTR [r14 + r13 + 4]
+ movzx esi, WORD PTR [r14 + r13 + 3]
mov DWORD PTR [rbx + -64], r13d
sub rsp, 16
mov DWORD PTR [rsp + 8], esi
mov r8, rcx
mov rcx, rdx
+ mov r9d, 9
lea rdx, [rsp]
mov rdi, QWORD PTR [rbp - 48]
mov esi, r13d
@@ -8762,15 +8765,16 @@ asm_handler_Mul_cold:
asm_handler_Mul_cold_end:
.p2align 4
asm_handler_Exp:
- mov ecx, DWORD PTR [r14 + r13 + 8]
- mov eax, DWORD PTR [r14 + r13 + 12]
- mov rcx, QWORD PTR [rbx + rcx * 8]
- mov rdx, QWORD PTR [rbx + rax * 8]
- mov esi, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 5]
+ movzx edx, WORD PTR [r14 + r13 + 7]
+ mov rcx, QWORD PTR [rbx + rax * 8]
+ mov rdx, QWORD PTR [rbx + rdx * 8]
+ movzx esi, WORD PTR [r14 + r13 + 3]
mov DWORD PTR [rbx + -64], r13d
sub rsp, 16
mov DWORD PTR [rsp + 8], esi
mov r8, rdx
+ mov r9d, 9
lea rdx, [rsp]
mov rdi, QWORD PTR [rbp - 48]
mov esi, r13d
@@ -8813,11 +8817,11 @@ asm_handler_ConcatString:
mov DWORD PTR [rbx + -64], r13d
lea rcx, [r14 + r13]
sub rsp, 16
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 1]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_ConcatString.value_ready_1:
mov r8, rax
- mov r10d, DWORD PTR [rcx + 8]
+ movzx r10d, WORD PTR [rcx + 3]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_ConcatString.value_ready_2:
mov r9, rax
@@ -8831,7 +8835,7 @@ asm_handler_ConcatString:
bt rax, 32
jnc .Lasm_ConcatString.values_exceptional_outputs_4
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 1]
mov r11, QWORD PTR [rsp]
mov QWORD PTR [rbx + r10 * 8], r11
.Lasm_ConcatString.skip_output_value_5:
@@ -8846,7 +8850,7 @@ asm_handler_ConcatString:
cmp r10, rbx
jne .Lasm_ConcatString.values_restore_stack_3
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 1]
mov r11, QWORD PTR [rsp]
mov QWORD PTR [rbx + r10 * 8], r11
.Lasm_ConcatString.skip_exceptional_output_6:
@@ -8878,7 +8882,7 @@ asm_handler_CopyObjectExcludingProperties:
mov DWORD PTR [rbx + -64], r13d
lea rcx, [r14 + r13]
mov r11, rsp
- mov r10d, DWORD PTR [rcx + 16]
+ mov r10d, DWORD PTR [rcx + 9]
shl r10, 3
add r10, 47
and r10, -16
@@ -8905,16 +8909,16 @@ asm_handler_CopyObjectExcludingProperties:
.Lasm_CopyObjectExcludingProperties.values_allocated_3:
mov rsp, rax
mov QWORD PTR [rsp], r11
- mov r10d, DWORD PTR [rcx + 12]
+ movzx r10d, WORD PTR [rcx + 7]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_CopyObjectExcludingProperties.value_ready_4:
mov QWORD PTR [rsp + 24], rax
mov r11d, 0
- mov r10d, DWORD PTR [rcx + 16]
+ mov r10d, DWORD PTR [rcx + 9]
.Lasm_CopyObjectExcludingProperties.array_value_next_5:
cmp r11, r10
jae .Lasm_CopyObjectExcludingProperties.array_values_end_7
- mov edx, DWORD PTR [rcx + r11 * 4 + 20]
+ movzx edx, WORD PTR [rcx + r11 * 2 + 13]
mov rax, QWORD PTR [rbx + rdx * 8]
.Lasm_CopyObjectExcludingProperties.array_value_ready_6:
mov QWORD PTR [rsp + r11 * 8 + 32], rax
@@ -8931,7 +8935,7 @@ asm_handler_CopyObjectExcludingProperties:
bt rax, 32
jnc .Lasm_CopyObjectExcludingProperties.values_exceptional_outputs_9
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 8]
+ movzx r10d, WORD PTR [rcx + 5]
mov r11, QWORD PTR [rsp + 16]
mov QWORD PTR [rbx + r10 * 8], r11
.Lasm_CopyObjectExcludingProperties.skip_output_value_10:
@@ -8967,11 +8971,11 @@ asm_handler_CopyObjectExcludingProperties_cold_end:
asm_handler_ImportCall:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 8]
+ movzx r10d, WORD PTR [r11 + 3]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_ImportCall.scalar_value_ready_0:
mov rcx, rax
- mov r10d, DWORD PTR [r11 + 12]
+ movzx r10d, WORD PTR [r11 + 5]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_ImportCall.scalar_value_ready_1:
mov r8, rax
@@ -8984,7 +8988,7 @@ asm_handler_ImportCall:
bt rax, 32
jnc .Lasm_ImportCall.scalar_result_done_2
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 1]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -9023,7 +9027,7 @@ asm_handler_GetClassFieldInitializerName:
bt rax, 32
jnc .Lasm_GetClassFieldInitializerName.scalar_result_done_0
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 1]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -9053,7 +9057,7 @@ asm_handler_GetClassFieldInitializerName_cold_end:
asm_handler_GetClassProtoParent:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 8]
+ movzx r10d, WORD PTR [r11 + 3]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_GetClassProtoParent.scalar_value_ready_0:
mov rcx, rax
@@ -9066,7 +9070,7 @@ asm_handler_GetClassProtoParent:
bt rax, 32
jnc .Lasm_GetClassProtoParent.scalar_result_done_1
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 1]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -9097,7 +9101,7 @@ asm_handler_NewClass:
mov DWORD PTR [rbx + -64], r13d
lea rcx, [r14 + r13]
mov r11, rsp
- mov r10d, DWORD PTR [rcx + 36]
+ mov r10d, DWORD PTR [rcx + 21]
shl r10, 3
add r10, 71
and r10, -16
@@ -9125,38 +9129,38 @@ asm_handler_NewClass:
mov rsp, rax
mov QWORD PTR [rsp], r11
movabs rax, 9221964661971222528
- mov r10d, DWORD PTR [rcx + 12]
- cmp r10d, -1
+ movzx r10d, WORD PTR [rcx + 7]
+ cmp r10d, 65535
je .Lasm_NewClass.value_ready_4
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_NewClass.value_ready_4:
mov QWORD PTR [rsp + 24], rax
movabs rax, 9221964661971222528
- mov r10d, DWORD PTR [rcx + 16]
- cmp r10d, -1
+ movzx r10d, WORD PTR [rcx + 9]
+ cmp r10d, 65535
je .Lasm_NewClass.value_ready_5
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_NewClass.value_ready_5:
mov QWORD PTR [rsp + 32], rax
- mov r10d, DWORD PTR [rcx + 20]
+ movzx r10d, WORD PTR [rcx + 11]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_NewClass.value_ready_6:
mov QWORD PTR [rsp + 40], rax
movabs rax, 9221964661971222528
- mov r10d, DWORD PTR [rcx + 32]
- cmp r10d, -1
+ movzx r10d, WORD PTR [rcx + 19]
+ cmp r10d, 65535
je .Lasm_NewClass.value_ready_7
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_NewClass.value_ready_7:
mov QWORD PTR [rsp + 48], rax
mov r11d, 0
- mov r10d, DWORD PTR [rcx + 36]
+ mov r10d, DWORD PTR [rcx + 21]
.Lasm_NewClass.array_value_next_8:
cmp r11, r10
jae .Lasm_NewClass.array_values_end_10
- mov edx, DWORD PTR [rcx + r11 * 4 + 40]
+ movzx edx, WORD PTR [rcx + r11 * 2 + 25]
movabs rax, 9221964661971222528
- cmp edx, -1
+ cmp edx, 65535
je .Lasm_NewClass.array_value_ready_9
mov rax, QWORD PTR [rbx + rdx * 8]
.Lasm_NewClass.array_value_ready_9:
@@ -9174,7 +9178,7 @@ asm_handler_NewClass:
bt rax, 32
jnc .Lasm_NewClass.values_exceptional_outputs_12
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 8]
+ movzx r10d, WORD PTR [rcx + 5]
mov r11, QWORD PTR [rsp + 16]
mov QWORD PTR [rbx + r10 * 8], r11
.Lasm_NewClass.skip_output_value_13:
@@ -9250,8 +9254,8 @@ asm_handler_JumpLessThan_cold:
jb .Lasm_JumpLessThan.ssa_block_2
jmp .Lasm_JumpLessThan.ssa_block_3
.Lasm_JumpLessThan.ssa_block_1:
- mov esi, DWORD PTR [r14 + r13 + 12]
- mov edi, DWORD PTR [r14 + r13 + 16]
+ mov esi, DWORD PTR [r14 + r13 + 7]
+ mov edi, DWORD PTR [r14 + r13 + 11]
mov DWORD PTR [rbx + -64], r13d
mov r8, rsi
mov r9, rdi
@@ -9307,8 +9311,8 @@ asm_handler_JumpGreaterThan_cold:
ja .Lasm_JumpGreaterThan.ssa_block_2
jmp .Lasm_JumpGreaterThan.ssa_block_3
.Lasm_JumpGreaterThan.ssa_block_1:
- mov esi, DWORD PTR [r14 + r13 + 12]
- mov edi, DWORD PTR [r14 + r13 + 16]
+ mov esi, DWORD PTR [r14 + r13 + 7]
+ mov edi, DWORD PTR [r14 + r13 + 11]
mov DWORD PTR [rbx + -64], r13d
mov r8, rsi
mov r9, rdi
@@ -9364,8 +9368,8 @@ asm_handler_JumpLessThanEquals_cold:
jbe .Lasm_JumpLessThanEquals.ssa_block_2
jmp .Lasm_JumpLessThanEquals.ssa_block_3
.Lasm_JumpLessThanEquals.ssa_block_1:
- mov esi, DWORD PTR [r14 + r13 + 12]
- mov edi, DWORD PTR [r14 + r13 + 16]
+ mov esi, DWORD PTR [r14 + r13 + 7]
+ mov edi, DWORD PTR [r14 + r13 + 11]
mov DWORD PTR [rbx + -64], r13d
mov r8, rsi
mov r9, rdi
@@ -9421,8 +9425,8 @@ asm_handler_JumpGreaterThanEquals_cold:
jae .Lasm_JumpGreaterThanEquals.ssa_block_2
jmp .Lasm_JumpGreaterThanEquals.ssa_block_3
.Lasm_JumpGreaterThanEquals.ssa_block_1:
- mov esi, DWORD PTR [r14 + r13 + 12]
- mov edi, DWORD PTR [r14 + r13 + 16]
+ mov esi, DWORD PTR [r14 + r13 + 7]
+ mov edi, DWORD PTR [r14 + r13 + 11]
mov DWORD PTR [rbx + -64], r13d
mov r8, rsi
mov r9, rdi
@@ -9468,8 +9472,8 @@ asm_handler_JumpLooselyEquals_cold:
cmp ax, 65530
je .Lasm_JumpLooselyEquals.ssa_block_36
.Lasm_JumpLooselyEquals.ssa_block_1:
- mov esi, DWORD PTR [r14 + r13 + 12]
- mov edi, DWORD PTR [r14 + r13 + 16]
+ mov esi, DWORD PTR [r14 + r13 + 7]
+ mov edi, DWORD PTR [r14 + r13 + 11]
mov DWORD PTR [rbx + -64], r13d
mov r8, rsi
mov r9, rdi
@@ -9525,8 +9529,8 @@ asm_handler_JumpLooselyInequals_cold:
cmp ax, 65530
je .Lasm_JumpLooselyInequals.ssa_block_36
.Lasm_JumpLooselyInequals.ssa_block_1:
- mov esi, DWORD PTR [r14 + r13 + 12]
- mov edi, DWORD PTR [r14 + r13 + 16]
+ mov esi, DWORD PTR [r14 + r13 + 7]
+ mov edi, DWORD PTR [r14 + r13 + 11]
mov DWORD PTR [rbx + -64], r13d
mov r8, rsi
mov r9, rdi
@@ -9582,8 +9586,8 @@ asm_handler_JumpStrictlyEquals_cold:
cmp ax, 65530
je .Lasm_JumpStrictlyEquals.ssa_block_34
.Lasm_JumpStrictlyEquals.ssa_block_1:
- mov esi, DWORD PTR [r14 + r13 + 12]
- mov edi, DWORD PTR [r14 + r13 + 16]
+ mov esi, DWORD PTR [r14 + r13 + 7]
+ mov edi, DWORD PTR [r14 + r13 + 11]
mov DWORD PTR [rbx + -64], r13d
mov r8, rsi
mov r9, rdi
@@ -9639,8 +9643,8 @@ asm_handler_JumpStrictlyInequals_cold:
cmp ax, 65530
je .Lasm_JumpStrictlyInequals.ssa_block_34
.Lasm_JumpStrictlyInequals.ssa_block_1:
- mov esi, DWORD PTR [r14 + r13 + 12]
- mov edi, DWORD PTR [r14 + r13 + 16]
+ mov esi, DWORD PTR [r14 + r13 + 7]
+ mov edi, DWORD PTR [r14 + r13 + 11]
mov DWORD PTR [rbx + -64], r13d
mov r8, rsi
mov r9, rdi
@@ -9714,8 +9718,8 @@ asm_handler_JumpLessThanLoop_cold:
jb .Lasm_JumpLessThanLoop.ssa_block_2
jmp .Lasm_JumpLessThanLoop.ssa_block_3
.Lasm_JumpLessThanLoop.ssa_block_1:
- mov esi, DWORD PTR [r14 + r13 + 12]
- mov edi, DWORD PTR [r14 + r13 + 16]
+ mov esi, DWORD PTR [r14 + r13 + 7]
+ mov edi, DWORD PTR [r14 + r13 + 11]
mov DWORD PTR [rbx + -64], r13d
mov r8, rsi
mov r9, rdi
@@ -9771,8 +9775,8 @@ asm_handler_JumpGreaterThanLoop_cold:
ja .Lasm_JumpGreaterThanLoop.ssa_block_2
jmp .Lasm_JumpGreaterThanLoop.ssa_block_3
.Lasm_JumpGreaterThanLoop.ssa_block_1:
- mov esi, DWORD PTR [r14 + r13 + 12]
- mov edi, DWORD PTR [r14 + r13 + 16]
+ mov esi, DWORD PTR [r14 + r13 + 7]
+ mov edi, DWORD PTR [r14 + r13 + 11]
mov DWORD PTR [rbx + -64], r13d
mov r8, rsi
mov r9, rdi
@@ -9828,8 +9832,8 @@ asm_handler_JumpLessThanEqualsLoop_cold:
jbe .Lasm_JumpLessThanEqualsLoop.ssa_block_2
jmp .Lasm_JumpLessThanEqualsLoop.ssa_block_3
.Lasm_JumpLessThanEqualsLoop.ssa_block_1:
- mov esi, DWORD PTR [r14 + r13 + 12]
- mov edi, DWORD PTR [r14 + r13 + 16]
+ mov esi, DWORD PTR [r14 + r13 + 7]
+ mov edi, DWORD PTR [r14 + r13 + 11]
mov DWORD PTR [rbx + -64], r13d
mov r8, rsi
mov r9, rdi
@@ -9885,8 +9889,8 @@ asm_handler_JumpGreaterThanEqualsLoop_cold:
jae .Lasm_JumpGreaterThanEqualsLoop.ssa_block_2
jmp .Lasm_JumpGreaterThanEqualsLoop.ssa_block_3
.Lasm_JumpGreaterThanEqualsLoop.ssa_block_1:
- mov esi, DWORD PTR [r14 + r13 + 12]
- mov edi, DWORD PTR [r14 + r13 + 16]
+ mov esi, DWORD PTR [r14 + r13 + 7]
+ mov edi, DWORD PTR [r14 + r13 + 11]
mov DWORD PTR [rbx + -64], r13d
mov r8, rsi
mov r9, rdi
@@ -9932,8 +9936,8 @@ asm_handler_JumpLooselyEqualsLoop_cold:
cmp ax, 65530
je .Lasm_JumpLooselyEqualsLoop.ssa_block_36
.Lasm_JumpLooselyEqualsLoop.ssa_block_1:
- mov esi, DWORD PTR [r14 + r13 + 12]
- mov edi, DWORD PTR [r14 + r13 + 16]
+ mov esi, DWORD PTR [r14 + r13 + 7]
+ mov edi, DWORD PTR [r14 + r13 + 11]
mov DWORD PTR [rbx + -64], r13d
mov r8, rsi
mov r9, rdi
@@ -9989,8 +9993,8 @@ asm_handler_JumpLooselyInequalsLoop_cold:
cmp ax, 65530
je .Lasm_JumpLooselyInequalsLoop.ssa_block_36
.Lasm_JumpLooselyInequalsLoop.ssa_block_1:
- mov esi, DWORD PTR [r14 + r13 + 12]
- mov edi, DWORD PTR [r14 + r13 + 16]
+ mov esi, DWORD PTR [r14 + r13 + 7]
+ mov edi, DWORD PTR [r14 + r13 + 11]
mov DWORD PTR [rbx + -64], r13d
mov r8, rsi
mov r9, rdi
@@ -10046,8 +10050,8 @@ asm_handler_JumpStrictlyEqualsLoop_cold:
cmp ax, 65530
je .Lasm_JumpStrictlyEqualsLoop.ssa_block_34
.Lasm_JumpStrictlyEqualsLoop.ssa_block_1:
- mov esi, DWORD PTR [r14 + r13 + 12]
- mov edi, DWORD PTR [r14 + r13 + 16]
+ mov esi, DWORD PTR [r14 + r13 + 7]
+ mov edi, DWORD PTR [r14 + r13 + 11]
mov DWORD PTR [rbx + -64], r13d
mov r8, rsi
mov r9, rdi
@@ -10103,8 +10107,8 @@ asm_handler_JumpStrictlyInequalsLoop_cold:
cmp ax, 65530
je .Lasm_JumpStrictlyInequalsLoop.ssa_block_34
.Lasm_JumpStrictlyInequalsLoop.ssa_block_1:
- mov esi, DWORD PTR [r14 + r13 + 12]
- mov edi, DWORD PTR [r14 + r13 + 16]
+ mov esi, DWORD PTR [r14 + r13 + 7]
+ mov edi, DWORD PTR [r14 + r13 + 11]
mov DWORD PTR [rbx + -64], r13d
mov r8, rsi
mov r9, rdi
@@ -10148,16 +10152,16 @@ asm_handler_Increment_cold:
movq xmm1, rax
addsd xmm0, xmm1
movq rax, xmm0
- mov ecx, DWORD PTR [r14 + r13 + 4]
+ movzx ecx, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + rcx * 8], rax
- add r13d, 8
+ add r13d, 5
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_Increment.ssa_block_2:
mov DWORD PTR [rbx + -64], r13d
lea rcx, [r14 + r13]
sub rsp, 16
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 3]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_Increment.value_ready_1:
mov r8, rax
@@ -10171,7 +10175,7 @@ asm_handler_Increment_cold:
bt rax, 32
jnc .Lasm_Increment.values_exceptional_outputs_3
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 3]
mov r11, QWORD PTR [rsp]
mov QWORD PTR [rbx + r10 * 8], r11
.Lasm_Increment.skip_output_value_4:
@@ -10186,7 +10190,7 @@ asm_handler_Increment_cold:
cmp r10, rbx
jne .Lasm_Increment.values_restore_stack_2
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 3]
mov r11, QWORD PTR [rsp]
mov QWORD PTR [rbx + r10 * 8], r11
.Lasm_Increment.skip_exceptional_output_5:
@@ -10220,16 +10224,16 @@ asm_handler_Decrement_cold:
movq xmm1, rax
subsd xmm0, xmm1
movq rax, xmm0
- mov ecx, DWORD PTR [r14 + r13 + 4]
+ movzx ecx, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + rcx * 8], rax
- add r13d, 8
+ add r13d, 5
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_Decrement.ssa_block_2:
mov DWORD PTR [rbx + -64], r13d
lea rcx, [r14 + r13]
sub rsp, 16
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 3]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_Decrement.value_ready_1:
mov r8, rax
@@ -10243,7 +10247,7 @@ asm_handler_Decrement_cold:
bt rax, 32
jnc .Lasm_Decrement.values_exceptional_outputs_3
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 3]
mov r11, QWORD PTR [rsp]
mov QWORD PTR [rbx + r10 * 8], r11
.Lasm_Decrement.skip_output_value_4:
@@ -10258,7 +10262,7 @@ asm_handler_Decrement_cold:
cmp r10, rbx
jne .Lasm_Decrement.values_restore_stack_2
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 3]
mov r11, QWORD PTR [rsp]
mov QWORD PTR [rbx + r10 * 8], r11
.Lasm_Decrement.skip_exceptional_output_5:
@@ -10307,7 +10311,7 @@ asm_handler_GetImportMeta:
bt rax, 32
jnc .Lasm_GetImportMeta.scalar_result_done_0
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 1]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -10346,7 +10350,7 @@ asm_handler_GetImport:
bt rax, 32
jnc .Lasm_GetImport.scalar_result_done_0
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 1]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -10385,7 +10389,7 @@ asm_handler_GetNewTarget:
bt rax, 32
jnc .Lasm_GetNewTarget.scalar_result_done_0
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 1]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -10424,7 +10428,7 @@ asm_handler_GetSuperConstructor:
bt rax, 32
jnc .Lasm_GetSuperConstructor.scalar_result_done_0
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 1]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -10466,7 +10470,7 @@ asm_handler_GetBinding_cold:
bt rax, 32
jnc .Lasm_GetBinding.scalar_result_done_1
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 3]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -10503,7 +10507,7 @@ asm_handler_DynamicGetBinding_cold:
bt rax, 32
jnc .Lasm_DynamicGetBinding.scalar_result_done_1
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 3]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -10542,7 +10546,7 @@ asm_handler_DynamicGetInitializedBinding_cold:
bt rax, 32
jnc .Lasm_DynamicGetInitializedBinding.scalar_result_done_1
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 3]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -10574,7 +10578,7 @@ asm_handler_DynamicInitializeLexicalBinding_cold:
.Lasm_DynamicInitializeLexicalBinding.ssa_block_1:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 8]
+ movzx r10d, WORD PTR [r11 + 3]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_DynamicInitializeLexicalBinding.scalar_value_ready_1:
mov rcx, rax
@@ -10612,7 +10616,7 @@ asm_handler_DynamicInitializeVariableBinding_cold:
.Lasm_DynamicInitializeVariableBinding.ssa_block_1:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 8]
+ movzx r10d, WORD PTR [r11 + 3]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_DynamicInitializeVariableBinding.scalar_value_ready_1:
mov rcx, rax
@@ -10650,7 +10654,7 @@ asm_handler_SetLexicalBinding_cold:
.Lasm_SetLexicalBinding.ssa_block_1:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 8]
+ movzx r10d, WORD PTR [r11 + 3]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_SetLexicalBinding.scalar_value_ready_4:
mov rcx, rax
@@ -10688,7 +10692,7 @@ asm_handler_SetVariableBinding_cold:
.Lasm_SetVariableBinding.ssa_block_1:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 8]
+ movzx r10d, WORD PTR [r11 + 3]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_SetVariableBinding.scalar_value_ready_4:
mov rcx, rax
@@ -10726,7 +10730,7 @@ asm_handler_DynamicSetLexicalBinding_cold:
.Lasm_DynamicSetLexicalBinding.ssa_block_1:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 8]
+ movzx r10d, WORD PTR [r11 + 3]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_DynamicSetLexicalBinding.scalar_value_ready_4:
mov rcx, rax
@@ -10763,7 +10767,7 @@ asm_handler_DynamicSetLexicalBinding_cold_end:
asm_handler_SetVariableBindingOfBlockFunction:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 8]
+ movzx r10d, WORD PTR [r11 + 3]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_SetVariableBindingOfBlockFunction.scalar_value_ready_0:
mov rcx, rax
@@ -10804,7 +10808,7 @@ asm_handler_DynamicSetVariableBinding_cold:
.Lasm_DynamicSetVariableBinding.ssa_block_1:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 8]
+ movzx r10d, WORD PTR [r11 + 3]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_DynamicSetVariableBinding.scalar_value_ready_4:
mov rcx, rax
@@ -10850,7 +10854,7 @@ asm_handler_ResolveBinding:
bt rax, 32
jnc .Lasm_ResolveBinding.scalar_result_done_0
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 1]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -10889,7 +10893,7 @@ asm_handler_ResolveSuperBase:
bt rax, 32
jnc .Lasm_ResolveSuperBase.scalar_result_done_0
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 1]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -10919,7 +10923,7 @@ asm_handler_ResolveSuperBase_cold_end:
asm_handler_GetResolvedBinding:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 8]
+ movzx r10d, WORD PTR [r11 + 3]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_GetResolvedBinding.scalar_value_ready_0:
mov rcx, rax
@@ -10932,7 +10936,7 @@ asm_handler_GetResolvedBinding:
bt rax, 32
jnc .Lasm_GetResolvedBinding.scalar_result_done_1
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 1]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -10962,11 +10966,11 @@ asm_handler_GetResolvedBinding_cold_end:
asm_handler_SetResolvedBinding:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 4]
+ movzx r10d, WORD PTR [r11 + 1]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_SetResolvedBinding.scalar_value_ready_0:
mov rcx, rax
- mov r10d, DWORD PTR [r11 + 12]
+ movzx r10d, WORD PTR [r11 + 5]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_SetResolvedBinding.scalar_value_ready_1:
mov r8, rax
@@ -11015,7 +11019,7 @@ asm_handler_TypeofBinding:
bt rax, 32
jnc .Lasm_TypeofBinding.scalar_result_done_0
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 1]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -11054,7 +11058,7 @@ asm_handler_DynamicTypeofBinding:
bt rax, 32
jnc .Lasm_DynamicTypeofBinding.scalar_result_done_0
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 1]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -11093,7 +11097,7 @@ asm_handler_TypeofGlobal:
bt rax, 32
jnc .Lasm_TypeofGlobal.scalar_result_done_0
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 1]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -11159,7 +11163,7 @@ asm_handler_VerifyEnvironmentCoordinate_cold_end:
asm_handler_HasPrivateId:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 8]
+ movzx r10d, WORD PTR [r11 + 3]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_HasPrivateId.scalar_value_ready_0:
mov rcx, rax
@@ -11172,7 +11176,7 @@ asm_handler_HasPrivateId:
bt rax, 32
jnc .Lasm_HasPrivateId.scalar_result_done_1
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 1]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -11202,11 +11206,11 @@ asm_handler_HasPrivateId_cold_end:
asm_handler_SetFunctionName:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 4]
+ movzx r10d, WORD PTR [r11 + 1]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_SetFunctionName.scalar_value_ready_0:
mov rcx, rax
- mov r10d, DWORD PTR [r11 + 8]
+ movzx r10d, WORD PTR [r11 + 3]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_SetFunctionName.scalar_value_ready_1:
mov r8, rax
@@ -11246,7 +11250,7 @@ asm_handler_SetFunctionName_cold_end:
asm_handler_NewArrayWithLength:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 8]
+ movzx r10d, WORD PTR [r11 + 3]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_NewArrayWithLength.scalar_value_ready_0:
mov rcx, rax
@@ -11259,7 +11263,7 @@ asm_handler_NewArrayWithLength:
bt rax, 32
jnc .Lasm_NewArrayWithLength.scalar_result_done_1
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 1]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -11289,11 +11293,11 @@ asm_handler_NewArrayWithLength_cold_end:
asm_handler_ArrayAppend:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 4]
+ movzx r10d, WORD PTR [r11 + 1]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_ArrayAppend.scalar_value_ready_0:
mov rcx, rax
- mov r10d, DWORD PTR [r11 + 8]
+ movzx r10d, WORD PTR [r11 + 3]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_ArrayAppend.scalar_value_ready_1:
mov r8, rax
@@ -11369,7 +11373,7 @@ asm_handler_CreateVariable_cold_end:
asm_handler_EnterObjectEnvironment:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 8]
+ movzx r10d, WORD PTR [r11 + 3]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_EnterObjectEnvironment.scalar_value_ready_0:
mov rcx, rax
@@ -11382,7 +11386,7 @@ asm_handler_EnterObjectEnvironment:
bt rax, 32
jnc .Lasm_EnterObjectEnvironment.scalar_result_done_1
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 1]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -11418,16 +11422,16 @@ asm_handler_PostfixIncrement_cold:
movq xmm1, rax
addsd xmm0, xmm1
movq rax, xmm0
- mov ecx, DWORD PTR [r14 + r13 + 8]
+ movzx ecx, WORD PTR [r14 + r13 + 5]
mov QWORD PTR [rbx + rcx * 8], rax
- add r13d, 16
+ add r13d, 7
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_PostfixIncrement.ssa_block_2:
mov DWORD PTR [rbx + -64], r13d
lea rcx, [r14 + r13]
sub rsp, 16
- mov r10d, DWORD PTR [rcx + 8]
+ movzx r10d, WORD PTR [rcx + 5]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_PostfixIncrement.value_ready_1:
mov r8, rax
@@ -11441,11 +11445,11 @@ asm_handler_PostfixIncrement_cold:
bt rax, 32
jnc .Lasm_PostfixIncrement.values_exceptional_outputs_3
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 3]
mov r11, QWORD PTR [rsp]
mov QWORD PTR [rbx + r10 * 8], r11
.Lasm_PostfixIncrement.skip_output_value_4:
- mov r10d, DWORD PTR [rcx + 8]
+ movzx r10d, WORD PTR [rcx + 5]
mov r11, QWORD PTR [rsp + 8]
mov QWORD PTR [rbx + r10 * 8], r11
.Lasm_PostfixIncrement.skip_output_value_5:
@@ -11460,7 +11464,7 @@ asm_handler_PostfixIncrement_cold:
cmp r10, rbx
jne .Lasm_PostfixIncrement.values_restore_stack_2
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 8]
+ movzx r10d, WORD PTR [rcx + 5]
mov r11, QWORD PTR [rsp + 8]
mov QWORD PTR [rbx + r10 * 8], r11
.Lasm_PostfixIncrement.skip_exceptional_output_6:
@@ -11487,12 +11491,13 @@ asm_handler_PostfixIncrement_cold_end:
asm_handler_Div_cold:
# Cold paths for Div
.Lasm_Div.ssa_block_1:
- mov esi, DWORD PTR [r14 + r13 + 4]
+ movzx esi, WORD PTR [r14 + r13 + 3]
mov DWORD PTR [rbx + -64], r13d
sub rsp, 16
mov DWORD PTR [rsp + 8], esi
mov r8, rcx
mov rcx, rdx
+ mov r9d, 9
lea rdx, [rsp]
mov rdi, QWORD PTR [rbp - 48]
mov esi, r13d
@@ -11562,12 +11567,13 @@ asm_handler_LessThan_cold:
jb .Lasm_LessThan.ssa_block_1
jmp .Lasm_LessThan.ssa_block_2
.Lasm_LessThan.ssa_block_3:
- mov esi, DWORD PTR [r14 + r13 + 4]
+ movzx esi, WORD PTR [r14 + r13 + 3]
mov DWORD PTR [rbx + -64], r13d
sub rsp, 16
mov DWORD PTR [rsp + 8], esi
mov r8, rcx
mov rcx, rdx
+ mov r9d, 9
lea rdx, [rsp]
mov rdi, QWORD PTR [rbp - 48]
mov esi, r13d
@@ -11634,12 +11640,13 @@ asm_handler_LessThanEquals_cold:
jbe .Lasm_LessThanEquals.ssa_block_1
jmp .Lasm_LessThanEquals.ssa_block_2
.Lasm_LessThanEquals.ssa_block_3:
- mov esi, DWORD PTR [r14 + r13 + 4]
+ movzx esi, WORD PTR [r14 + r13 + 3]
mov DWORD PTR [rbx + -64], r13d
sub rsp, 16
mov DWORD PTR [rsp + 8], esi
mov r8, rcx
mov rcx, rdx
+ mov r9d, 9
lea rdx, [rsp]
mov rdi, QWORD PTR [rbp - 48]
mov esi, r13d
@@ -11706,12 +11713,13 @@ asm_handler_GreaterThan_cold:
ja .Lasm_GreaterThan.ssa_block_1
jmp .Lasm_GreaterThan.ssa_block_2
.Lasm_GreaterThan.ssa_block_3:
- mov esi, DWORD PTR [r14 + r13 + 4]
+ movzx esi, WORD PTR [r14 + r13 + 3]
mov DWORD PTR [rbx + -64], r13d
sub rsp, 16
mov DWORD PTR [rsp + 8], esi
mov r8, rcx
mov rcx, rdx
+ mov r9d, 9
lea rdx, [rsp]
mov rdi, QWORD PTR [rbp - 48]
mov esi, r13d
@@ -11778,12 +11786,13 @@ asm_handler_GreaterThanEquals_cold:
jae .Lasm_GreaterThanEquals.ssa_block_1
jmp .Lasm_GreaterThanEquals.ssa_block_2
.Lasm_GreaterThanEquals.ssa_block_3:
- mov esi, DWORD PTR [r14 + r13 + 4]
+ movzx esi, WORD PTR [r14 + r13 + 3]
mov DWORD PTR [rbx + -64], r13d
sub rsp, 16
mov DWORD PTR [rsp + 8], esi
mov r8, rcx
mov rcx, rdx
+ mov r9d, 9
lea rdx, [rsp]
mov rdi, QWORD PTR [rbp - 48]
mov esi, r13d
@@ -11855,12 +11864,13 @@ asm_handler_BitwiseXor_cold:
mov edi, edi
jmp .Lasm_BitwiseXor.ssa_block_7
.Lasm_BitwiseXor.ssa_block_1:
- mov ecx, DWORD PTR [r14 + r13 + 4]
+ movzx ecx, WORD PTR [r14 + r13 + 3]
mov DWORD PTR [rbx + -64], r13d
sub rsp, 16
mov DWORD PTR [rsp + 8], ecx
mov rcx, rsi
mov r8, rdx
+ mov r9d, 9
lea rdx, [rsp]
mov rdi, QWORD PTR [rbp - 48]
mov esi, r13d
@@ -11900,9 +11910,9 @@ asm_handler_BitwiseXor_cold:
xor eax, edi
movabs r11, 9221683186994511872
or rax, r11
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 16
+ add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_BitwiseXor_cold_end:
@@ -11914,7 +11924,7 @@ asm_handler_UnaryPlus_cold:
jne .Lasm_UnaryPlus.ssa_block_2
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 8]
+ movzx r10d, WORD PTR [r11 + 5]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_UnaryPlus.scalar_value_ready_0:
mov rcx, rax
@@ -11927,7 +11937,7 @@ asm_handler_UnaryPlus_cold:
bt rax, 32
jnc .Lasm_UnaryPlus.scalar_result_done_1
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 3]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -11950,9 +11960,9 @@ asm_handler_UnaryPlus_cold:
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_UnaryPlus.ssa_block_2:
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 16
+ add r13d, 7
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_UnaryPlus_cold_end:
@@ -11961,7 +11971,7 @@ asm_handler_ThrowIfTDZ_cold:
.Lasm_ThrowIfTDZ.ssa_block_1:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 4]
+ movzx r10d, WORD PTR [r11 + 1]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_ThrowIfTDZ.scalar_value_ready_0:
mov rcx, rax
@@ -11999,7 +12009,7 @@ asm_handler_ThrowIfNotObject_cold:
.Lasm_ThrowIfNotObject.ssa_block_1:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 4]
+ movzx r10d, WORD PTR [r11 + 1]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_ThrowIfNotObject.scalar_value_ready_0:
mov rcx, rax
@@ -12037,7 +12047,7 @@ asm_handler_ThrowIfNullish_cold:
.Lasm_ThrowIfNullish.ssa_block_1:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 4]
+ movzx r10d, WORD PTR [r11 + 1]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_ThrowIfNullish.scalar_value_ready_0:
mov rcx, rax
@@ -12110,7 +12120,7 @@ asm_handler_ThrowConstAssignment_cold_end:
asm_handler_ThrowNotAFunction:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 4]
+ movzx r10d, WORD PTR [r11 + 1]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_ThrowNotAFunction.scalar_value_ready_0:
mov rcx, rax
@@ -12159,7 +12169,7 @@ asm_handler_GetArgumentCount:
bt rax, 32
jnc .Lasm_GetArgumentCount.scalar_result_done_0
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 1]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -12189,7 +12199,7 @@ asm_handler_GetArgumentCount_cold_end:
asm_handler_Throw:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 4]
+ movzx r10d, WORD PTR [r11 + 1]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_Throw.scalar_value_ready_0:
mov rcx, rax
@@ -12265,7 +12275,7 @@ asm_handler_Debugger_cold_end:
asm_handler_Await:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 8]
+ movzx r10d, WORD PTR [r11 + 5]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_Await.scalar_value_ready_0:
mov rcx, rax
@@ -12305,7 +12315,7 @@ asm_handler_Await_cold_end:
asm_handler_Yield:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 12]
+ movzx r10d, WORD PTR [r11 + 6]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_Yield.scalar_value_ready_0:
mov rcx, rax
@@ -12345,7 +12355,7 @@ asm_handler_Yield_cold_end:
asm_handler_YieldIteratorResult:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 8]
+ movzx r10d, WORD PTR [r11 + 5]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_YieldIteratorResult.scalar_value_ready_0:
mov rcx, rax
@@ -12385,7 +12395,7 @@ asm_handler_YieldIteratorResult_cold_end:
asm_handler_ToString:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 8]
+ movzx r10d, WORD PTR [r11 + 3]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_ToString.scalar_value_ready_0:
mov rcx, rax
@@ -12398,7 +12408,7 @@ asm_handler_ToString:
bt rax, 32
jnc .Lasm_ToString.scalar_result_done_1
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 1]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -12429,7 +12439,7 @@ asm_handler_ToPrimitiveWithStringHint_cold:
.Lasm_ToPrimitiveWithStringHint.ssa_block_1:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 8]
+ movzx r10d, WORD PTR [r11 + 3]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_ToPrimitiveWithStringHint.scalar_value_ready_0:
mov rcx, rax
@@ -12442,7 +12452,7 @@ asm_handler_ToPrimitiveWithStringHint_cold:
bt rax, 32
jnc .Lasm_ToPrimitiveWithStringHint.scalar_result_done_1
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 1]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -12469,7 +12479,7 @@ asm_handler_ToPrimitiveWithStringHint_cold_end:
asm_handler_ToObject:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 8]
+ movzx r10d, WORD PTR [r11 + 3]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_ToObject.scalar_value_ready_0:
mov rcx, rax
@@ -12482,7 +12492,7 @@ asm_handler_ToObject:
bt rax, 32
jnc .Lasm_ToObject.scalar_result_done_1
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 1]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -12512,7 +12522,7 @@ asm_handler_ToObject_cold_end:
asm_handler_ToLength:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 8]
+ movzx r10d, WORD PTR [r11 + 3]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_ToLength.scalar_value_ready_0:
mov rcx, rax
@@ -12525,7 +12535,7 @@ asm_handler_ToLength:
bt rax, 32
jnc .Lasm_ToLength.scalar_result_done_1
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 1]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -12556,7 +12566,7 @@ asm_handler_BitwiseNot_cold:
.Lasm_BitwiseNot.ssa_block_2:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 8]
+ movzx r10d, WORD PTR [r11 + 5]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_BitwiseNot.scalar_value_ready_0:
mov rcx, rax
@@ -12569,7 +12579,7 @@ asm_handler_BitwiseNot_cold:
bt rax, 32
jnc .Lasm_BitwiseNot.scalar_result_done_1
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 3]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -12629,12 +12639,13 @@ asm_handler_BitwiseAnd_cold:
mov edi, edi
jmp .Lasm_BitwiseAnd.ssa_block_7
.Lasm_BitwiseAnd.ssa_block_1:
- mov ecx, DWORD PTR [r14 + r13 + 4]
+ movzx ecx, WORD PTR [r14 + r13 + 3]
mov DWORD PTR [rbx + -64], r13d
sub rsp, 16
mov DWORD PTR [rsp + 8], ecx
mov rcx, rsi
mov r8, rdx
+ mov r9d, 9
lea rdx, [rsp]
mov rdi, QWORD PTR [rbp - 48]
mov esi, r13d
@@ -12674,9 +12685,9 @@ asm_handler_BitwiseAnd_cold:
and eax, edi
movabs r11, 9221683186994511872
or rax, r11
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 16
+ add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_BitwiseAnd_cold_end:
@@ -12717,12 +12728,13 @@ asm_handler_BitwiseOr_cold:
mov edi, edi
jmp .Lasm_BitwiseOr.ssa_block_7
.Lasm_BitwiseOr.ssa_block_1:
- mov ecx, DWORD PTR [r14 + r13 + 4]
+ movzx ecx, WORD PTR [r14 + r13 + 3]
mov DWORD PTR [rbx + -64], r13d
sub rsp, 16
mov DWORD PTR [rsp + 8], ecx
mov rcx, rsi
mov r8, rdx
+ mov r9d, 9
lea rdx, [rsp]
mov rdi, QWORD PTR [rbp - 48]
mov esi, r13d
@@ -12762,21 +12774,22 @@ asm_handler_BitwiseOr_cold:
or eax, edi
movabs r11, 9221683186994511872
or rax, r11
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 16
+ add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_BitwiseOr_cold_end:
asm_handler_LeftShift_cold:
# Cold paths for LeftShift
.Lasm_LeftShift.ssa_block_1:
- mov esi, DWORD PTR [r14 + r13 + 4]
+ movzx esi, WORD PTR [r14 + r13 + 3]
mov DWORD PTR [rbx + -64], r13d
sub rsp, 16
mov DWORD PTR [rsp + 8], esi
mov r8, rcx
mov rcx, rdx
+ mov r9d, 9
lea rdx, [rsp]
mov rdi, QWORD PTR [rbp - 48]
mov esi, r13d
@@ -12814,12 +12827,13 @@ asm_handler_LeftShift_cold_end:
asm_handler_RightShift_cold:
# Cold paths for RightShift
.Lasm_RightShift.ssa_block_1:
- mov esi, DWORD PTR [r14 + r13 + 4]
+ movzx esi, WORD PTR [r14 + r13 + 3]
mov DWORD PTR [rbx + -64], r13d
sub rsp, 16
mov DWORD PTR [rsp + 8], esi
mov r8, rcx
mov rcx, rdx
+ mov r9d, 9
lea rdx, [rsp]
mov rdi, QWORD PTR [rbp - 48]
mov esi, r13d
@@ -12859,18 +12873,19 @@ asm_handler_UnsignedRightShift_cold:
.Lasm_UnsignedRightShift.ssa_block_2:
cvtsi2sd xmm0, rdx
movq rax, xmm0
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 16
+ add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_UnsignedRightShift.ssa_block_1:
- mov esi, DWORD PTR [r14 + r13 + 4]
+ movzx esi, WORD PTR [r14 + r13 + 3]
mov DWORD PTR [rbx + -64], r13d
sub rsp, 16
mov DWORD PTR [rsp + 8], esi
mov r8, rcx
mov rcx, rdx
+ mov r9d, 9
lea rdx, [rsp]
mov rdi, QWORD PTR [rbp - 48]
mov esi, r13d
@@ -12908,7 +12923,7 @@ asm_handler_UnsignedRightShift_cold_end:
asm_handler_Mod_cold:
# Cold paths for Mod
.Lasm_Mod.ssa_block_2:
- mov eax, DWORD PTR [r14 + r13 + 12]
+ movzx eax, WORD PTR [r14 + r13 + 7]
mov rax, QWORD PTR [rbx + rax * 8]
mov rdx, rcx
shr rdx, 48
@@ -12961,17 +12976,17 @@ asm_handler_Mod_cold:
jne .Lasm_Mod.ssa_block_5
movabs r11, 9221683186994511872
or rax, r11
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 16
+ add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_Mod.ssa_block_5:
cvtsi2sd xmm0, rdx
movq rax, xmm0
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 16
+ add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_Mod.ssa_block_3:
@@ -12980,26 +12995,27 @@ asm_handler_Mod_cold:
test rcx, rcx
js .Lasm_Mod.ssa_block_4
movabs rax, 9221683186994511872
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 16
+ add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_Mod.ssa_block_4:
movabs r11, -9223372036854775808
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + rax * 8], r11
- add r13d, 16
+ add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_Mod.ssa_block_1:
- mov eax, DWORD PTR [r14 + r13 + 12]
+ movzx eax, WORD PTR [r14 + r13 + 7]
mov rdx, QWORD PTR [rbx + rax * 8]
- mov esi, DWORD PTR [r14 + r13 + 4]
+ movzx esi, WORD PTR [r14 + r13 + 3]
mov DWORD PTR [rbx + -64], r13d
sub rsp, 16
mov DWORD PTR [rsp + 8], esi
mov r8, rdx
+ mov r9d, 9
lea rdx, [rsp]
mov rdi, QWORD PTR [rbp - 48]
mov esi, r13d
@@ -13056,11 +13072,12 @@ asm_handler_StrictlyEquals_cold:
cmp ax, 65530
je .Lasm_StrictlyEquals.ssa_block_34
.Lasm_StrictlyEquals.ssa_block_1:
- mov esi, DWORD PTR [r14 + r13 + 4]
+ movzx esi, WORD PTR [r14 + r13 + 3]
mov DWORD PTR [rbx + -64], r13d
sub rsp, 16
mov DWORD PTR [rsp + 8], esi
mov r8, rdx
+ mov r9d, 9
lea rdx, [rsp]
mov rdi, QWORD PTR [rbp - 48]
mov esi, r13d
@@ -13124,11 +13141,12 @@ asm_handler_StrictlyInequals_cold:
cmp ax, 65530
je .Lasm_StrictlyInequals.ssa_block_34
.Lasm_StrictlyInequals.ssa_block_1:
- mov esi, DWORD PTR [r14 + r13 + 4]
+ movzx esi, WORD PTR [r14 + r13 + 3]
mov DWORD PTR [rbx + -64], r13d
sub rsp, 16
mov DWORD PTR [rsp + 8], esi
mov r8, rdx
+ mov r9d, 9
lea rdx, [rsp]
mov rdi, QWORD PTR [rbp - 48]
mov esi, r13d
@@ -13186,11 +13204,11 @@ asm_handler_GetCalleeAndThisFromEnvironment_cold:
bt rax, 32
jnc .Lasm_GetCalleeAndThisFromEnvironment.values_exceptional_outputs_3
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 3]
mov r11, QWORD PTR [rsp]
mov QWORD PTR [rbx + r10 * 8], r11
.Lasm_GetCalleeAndThisFromEnvironment.skip_output_value_4:
- mov r10d, DWORD PTR [rcx + 8]
+ movzx r10d, WORD PTR [rcx + 5]
mov r11, QWORD PTR [rsp + 8]
mov QWORD PTR [rbx + r10 * 8], r11
.Lasm_GetCalleeAndThisFromEnvironment.skip_output_value_5:
@@ -13235,11 +13253,11 @@ asm_handler_DynamicGetCalleeAndThisFromEnvironment_cold:
bt rax, 32
jnc .Lasm_DynamicGetCalleeAndThisFromEnvironment.values_exceptional_outputs_3
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 3]
mov r11, QWORD PTR [rsp]
mov QWORD PTR [rbx + r10 * 8], r11
.Lasm_DynamicGetCalleeAndThisFromEnvironment.skip_output_value_4:
- mov r10d, DWORD PTR [rcx + 8]
+ movzx r10d, WORD PTR [rcx + 5]
mov r11, QWORD PTR [rsp + 8]
mov QWORD PTR [rbx + r10 * 8], r11
.Lasm_DynamicGetCalleeAndThisFromEnvironment.skip_output_value_5:
@@ -13290,11 +13308,12 @@ asm_handler_LooselyEquals_cold:
cmp ax, 65530
je .Lasm_LooselyEquals.ssa_block_36
.Lasm_LooselyEquals.ssa_block_1:
- mov esi, DWORD PTR [r14 + r13 + 4]
+ movzx esi, WORD PTR [r14 + r13 + 3]
mov DWORD PTR [rbx + -64], r13d
sub rsp, 16
mov DWORD PTR [rsp + 8], esi
mov r8, rdx
+ mov r9d, 9
lea rdx, [rsp]
mov rdi, QWORD PTR [rbp - 48]
mov esi, r13d
@@ -13358,11 +13377,12 @@ asm_handler_LooselyInequals_cold:
cmp ax, 65530
je .Lasm_LooselyInequals.ssa_block_36
.Lasm_LooselyInequals.ssa_block_1:
- mov esi, DWORD PTR [r14 + r13 + 4]
+ movzx esi, WORD PTR [r14 + r13 + 3]
mov DWORD PTR [rbx + -64], r13d
sub rsp, 16
mov DWORD PTR [rsp + 8], esi
mov r8, rdx
+ mov r9d, 9
lea rdx, [rsp]
mov rdi, QWORD PTR [rbp - 48]
mov esi, r13d
@@ -13412,7 +13432,7 @@ asm_handler_UnaryMinus_cold:
jne .Lasm_UnaryMinus.ssa_block_4
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 8]
+ movzx r10d, WORD PTR [r11 + 5]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_UnaryMinus.scalar_value_ready_0:
mov rcx, rax
@@ -13425,7 +13445,7 @@ asm_handler_UnaryMinus_cold:
bt rax, 32
jnc .Lasm_UnaryMinus.scalar_result_done_1
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 3]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -13449,9 +13469,9 @@ asm_handler_UnaryMinus_cold:
jmp [r12 + rax * 8]
.Lasm_UnaryMinus.ssa_block_4:
btc rax, 63
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 16
+ add r13d, 7
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_UnaryMinus.ssa_block_2:
@@ -13459,16 +13479,16 @@ asm_handler_UnaryMinus_cold:
neg rax
cvtsi2sd xmm0, rax
movq rax, xmm0
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 16
+ add r13d, 7
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_UnaryMinus.ssa_block_1:
movabs r11, -9223372036854775808
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + rax * 8], r11
- add r13d, 16
+ add r13d, 7
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_UnaryMinus_cold_end:
@@ -13482,16 +13502,16 @@ asm_handler_PostfixDecrement_cold:
movq xmm1, rax
subsd xmm0, xmm1
movq rax, xmm0
- mov ecx, DWORD PTR [r14 + r13 + 8]
+ movzx ecx, WORD PTR [r14 + r13 + 5]
mov QWORD PTR [rbx + rcx * 8], rax
- add r13d, 16
+ add r13d, 7
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_PostfixDecrement.ssa_block_2:
mov DWORD PTR [rbx + -64], r13d
lea rcx, [r14 + r13]
sub rsp, 16
- mov r10d, DWORD PTR [rcx + 8]
+ movzx r10d, WORD PTR [rcx + 5]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_PostfixDecrement.value_ready_1:
mov r8, rax
@@ -13505,11 +13525,11 @@ asm_handler_PostfixDecrement_cold:
bt rax, 32
jnc .Lasm_PostfixDecrement.values_exceptional_outputs_3
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 3]
mov r11, QWORD PTR [rsp]
mov QWORD PTR [rbx + r10 * 8], r11
.Lasm_PostfixDecrement.skip_output_value_4:
- mov r10d, DWORD PTR [rcx + 8]
+ movzx r10d, WORD PTR [rcx + 5]
mov r11, QWORD PTR [rsp + 8]
mov QWORD PTR [rbx + r10 * 8], r11
.Lasm_PostfixDecrement.skip_output_value_5:
@@ -13524,7 +13544,7 @@ asm_handler_PostfixDecrement_cold:
cmp r10, rbx
jne .Lasm_PostfixDecrement.values_restore_stack_2
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 8]
+ movzx r10d, WORD PTR [rcx + 5]
mov r11, QWORD PTR [rsp + 8]
mov QWORD PTR [rbx + r10 * 8], r11
.Lasm_PostfixDecrement.skip_exceptional_output_6:
@@ -13551,7 +13571,7 @@ asm_handler_PostfixDecrement_cold_end:
asm_handler_ToInt32_cold:
# Cold paths for ToInt32
.Lasm_ToInt32.ssa_block_2:
- mov eax, DWORD PTR [r14 + r13 + 8]
+ movzx eax, WORD PTR [r14 + r13 + 5]
mov rax, QWORD PTR [rbx + rax * 8]
mov rcx, rax
shr rcx, 48
@@ -13572,7 +13592,7 @@ asm_handler_ToInt32_cold:
.Lasm_ToInt32.ssa_block_1:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 8]
+ movzx r10d, WORD PTR [r11 + 5]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_ToInt32.scalar_value_ready_0:
mov rcx, rax
@@ -13585,7 +13605,7 @@ asm_handler_ToInt32_cold:
bt rax, 32
jnc .Lasm_ToInt32.scalar_result_done_1
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 3]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -13612,9 +13632,9 @@ asm_handler_ToInt32_cold:
.Lasm_ToInt32.ssa_block_6:
movabs r11, 9221683186994511872
or rax, r11
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 16
+ add r13d, 7
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_ToInt32_cold_end:
@@ -13647,15 +13667,15 @@ asm_handler_PutByValue_cold:
.Lasm_PutByValue.ssa_block_6:
lea rcx, [r14 + r13]
sub rsp, 32
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 3]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_PutByValue.value_ready_5:
mov QWORD PTR [rsp], rax
- mov r10d, DWORD PTR [rcx + 8]
+ movzx r10d, WORD PTR [rcx + 5]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_PutByValue.value_ready_6:
mov QWORD PTR [rsp + 8], rax
- mov r10d, DWORD PTR [rcx + 12]
+ movzx r10d, WORD PTR [rcx + 7]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_PutByValue.value_ready_7:
mov QWORD PTR [rsp + 16], rax
@@ -13669,21 +13689,21 @@ asm_handler_PutByValue_cold:
.Lasm_PutByValue.values_call_done_4:
test eax, eax
jnz .Lasm_PutByValue.ssa_block_1
- add r13d, 32
+ add r13d, 17
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_PutByValue.ssa_block_2:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 4]
+ movzx r10d, WORD PTR [r11 + 3]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_PutByValue.scalar_value_ready_9:
mov rcx, rax
- mov r10d, DWORD PTR [r11 + 8]
+ movzx r10d, WORD PTR [r11 + 5]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_PutByValue.scalar_value_ready_10:
mov r8, rax
- mov r10d, DWORD PTR [r11 + 12]
+ movzx r10d, WORD PTR [r11 + 7]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_PutByValue.scalar_value_ready_11:
mov r9, rax
@@ -13718,15 +13738,15 @@ asm_handler_PutByValue_cold:
.Lasm_PutByValue.ssa_block_1:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 4]
+ movzx r10d, WORD PTR [r11 + 3]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_PutByValue.scalar_value_ready_14:
mov rcx, rax
- mov r10d, DWORD PTR [r11 + 8]
+ movzx r10d, WORD PTR [r11 + 5]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_PutByValue.scalar_value_ready_15:
mov r8, rax
- mov r10d, DWORD PTR [r11 + 12]
+ movzx r10d, WORD PTR [r11 + 7]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_PutByValue.scalar_value_ready_16:
mov r9, rax
@@ -13761,15 +13781,15 @@ asm_handler_PutByValue_cold:
.Lasm_PutByValue.ssa_block_3:
lea rcx, [r14 + r13]
sub rsp, 32
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 3]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_PutByValue.value_ready_20:
mov QWORD PTR [rsp], rax
- mov r10d, DWORD PTR [rcx + 8]
+ movzx r10d, WORD PTR [rcx + 5]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_PutByValue.value_ready_21:
mov QWORD PTR [rsp + 8], rax
- mov r10d, DWORD PTR [rcx + 12]
+ movzx r10d, WORD PTR [rcx + 7]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_PutByValue.value_ready_22:
mov QWORD PTR [rsp + 16], rax
@@ -13783,21 +13803,21 @@ asm_handler_PutByValue_cold:
.Lasm_PutByValue.values_call_done_19:
test eax, eax
jnz .Lasm_PutByValue.ssa_block_1
- add r13d, 32
+ add r13d, 17
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_PutByValue.ssa_block_5:
lea rcx, [r14 + r13]
sub rsp, 32
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 3]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_PutByValue.value_ready_25:
mov QWORD PTR [rsp], rax
- mov r10d, DWORD PTR [rcx + 8]
+ movzx r10d, WORD PTR [rcx + 5]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_PutByValue.value_ready_26:
mov QWORD PTR [rsp + 8], rax
- mov r10d, DWORD PTR [rcx + 12]
+ movzx r10d, WORD PTR [rcx + 7]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_PutByValue.value_ready_27:
mov QWORD PTR [rsp + 16], rax
@@ -13811,7 +13831,7 @@ asm_handler_PutByValue_cold:
.Lasm_PutByValue.values_call_done_24:
test eax, eax
jnz .Lasm_PutByValue.ssa_block_1
- add r13d, 32
+ add r13d, 17
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_PutByValue_cold_end:
@@ -13867,9 +13887,9 @@ asm_handler_GetById_cold:
movabs rcx, -1970324836974592
or rax, rcx
.Lasm_GetById.ssa_block_51:
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 24
+ add r13d, 13
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_GetById.ssa_block_25:
@@ -13946,8 +13966,7 @@ asm_handler_GetById_cold:
mov BYTE PTR [rax + 124], 0
mov BYTE PTR [rax + 125], 0
mov ecx, r13d
- mov edx, DWORD PTR [r14 + r13 + 4]
- mov esi, DWORD PTR [r14 + r13 + 8]
+ movzx edx, WORD PTR [r14 + r13 + 3]
mov DWORD PTR [rbx - 64], ecx
lea r11, [rbx - 128]
mov QWORD PTR [rax + 96], r11
@@ -13966,33 +13985,33 @@ asm_handler_GetById_cold:
mov rcx, rdx
and rcx, 255
cmp rcx, 2
- jae .Lasm_GetById.assert_predicate_failure_268
+ jae .Lasm_GetById.assert_predicate_failure_267
test rcx, rcx
jnz .Lasm_GetById.ssa_block_6
mov rcx, QWORD PTR [rbx - 32]
test rcx, rcx
- jz .Lasm_GetById.assert_predicate_failure_277
+ jz .Lasm_GetById.assert_predicate_failure_276
mov rdx, QWORD PTR [rbp - 48]
mov QWORD PTR [rdx], rcx
lea r11, [rbx - 128]
mov QWORD PTR [rdx + 16], r11
lea rbx, [rcx + 128]
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 24
+ add r13d, 13
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_GetById.ssa_block_5:
movabs rax, 9222809086901354496
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 24
+ add r13d, 13
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_GetById.ssa_block_4:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 8]
+ movzx r10d, WORD PTR [r11 + 5]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_GetById.scalar_value_ready_11:
mov rcx, rax
@@ -14005,7 +14024,7 @@ asm_handler_GetById_cold:
bt rax, 32
jnc .Lasm_GetById.scalar_result_done_12
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 3]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -14053,7 +14072,7 @@ asm_handler_GetById_cold:
.Lasm_GetById.ssa_block_3:
lea rcx, [r14 + r13]
sub rsp, 16
- mov r10d, DWORD PTR [rcx + 8]
+ movzx r10d, WORD PTR [rcx + 5]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_GetById.value_ready_15:
mov QWORD PTR [rsp + 8], rax
@@ -14070,7 +14089,7 @@ asm_handler_GetById_cold:
test rax, rax
jne .Lasm_GetById.values_exceptional_outputs_17
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 3]
mov r11, QWORD PTR [rsp]
mov QWORD PTR [rbx + r10 * 8], r11
.Lasm_GetById.skip_output_value_18:
@@ -14130,8 +14149,8 @@ asm_handler_GetById_cold:
mov rdx, QWORD PTR [rax + 152]
test rdx, rdx
jz .Lasm_GetById.assert_failure_21
- mov eax, DWORD PTR [r14 + r13 + 20]
- mov ecx, DWORD PTR [r14 + r13 + 8]
+ movzx eax, WORD PTR [r14 + r13 + 11]
+ movzx ecx, WORD PTR [r14 + r13 + 5]
mov rcx, QWORD PTR [rbx + rcx * 8]
shl rax, 3
add rdx, rax
@@ -14142,15 +14161,15 @@ asm_handler_GetById_cold:
shr r11, 48
cmp r11w, 32763
je .Lasm_GetById.ssa_block_2
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 24
+ add r13d, 13
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_GetById.ssa_block_14:
lea rcx, [r14 + r13]
sub rsp, 16
- mov r10d, DWORD PTR [rcx + 8]
+ movzx r10d, WORD PTR [rcx + 5]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_GetById.value_ready_23:
mov QWORD PTR [rsp + 8], rax
@@ -14167,7 +14186,7 @@ asm_handler_GetById_cold:
test rax, rax
jne .Lasm_GetById.values_exceptional_outputs_25
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 3]
mov r11, QWORD PTR [rsp]
mov QWORD PTR [rbx + r10 * 8], r11
.Lasm_GetById.skip_output_value_26:
@@ -14178,13 +14197,13 @@ asm_handler_GetById_cold:
.Lasm_GetById.values_call_done_22:
test eax, eax
jnz .Lasm_GetById.ssa_block_2
- add r13d, 24
+ add r13d, 13
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_GetById.ssa_block_2:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 8]
+ movzx r10d, WORD PTR [r11 + 5]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_GetById.scalar_value_ready_27:
mov rcx, rax
@@ -14197,7 +14216,7 @@ asm_handler_GetById_cold:
bt rax, 32
jnc .Lasm_GetById.scalar_result_done_28
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 3]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -14226,11 +14245,11 @@ asm_handler_GetById_cold_end:
asm_handler_GetByIdWithThis:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 8]
+ movzx r10d, WORD PTR [r11 + 5]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_GetByIdWithThis.scalar_value_ready_0:
mov rcx, rax
- mov r10d, DWORD PTR [r11 + 16]
+ movzx r10d, WORD PTR [r11 + 9]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_GetByIdWithThis.scalar_value_ready_1:
mov r8, rax
@@ -14243,7 +14262,7 @@ asm_handler_GetByIdWithThis:
bt rax, 32
jnc .Lasm_GetByIdWithThis.scalar_result_done_2
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 3]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -14274,11 +14293,11 @@ asm_handler_PutById_cold:
.Lasm_PutById.ssa_block_2:
lea rcx, [r14 + r13]
sub rsp, 16
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 1]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_PutById.value_ready_4:
mov QWORD PTR [rsp], rax
- mov r10d, DWORD PTR [rcx + 12]
+ movzx r10d, WORD PTR [rcx + 5]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_PutById.value_ready_5:
mov QWORD PTR [rsp + 8], rax
@@ -14292,17 +14311,17 @@ asm_handler_PutById_cold:
.Lasm_PutById.values_call_done_3:
test eax, eax
jnz .Lasm_PutById.ssa_block_1
- add r13d, 32
+ add r13d, 15
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_PutById.ssa_block_1:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 4]
+ movzx r10d, WORD PTR [r11 + 1]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_PutById.scalar_value_ready_7:
mov rcx, rax
- mov r10d, DWORD PTR [r11 + 12]
+ movzx r10d, WORD PTR [r11 + 5]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_PutById.scalar_value_ready_8:
mov r8, rax
@@ -14339,15 +14358,15 @@ asm_handler_PutById_cold_end:
asm_handler_PutByIdWithThis:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 4]
+ movzx r10d, WORD PTR [r11 + 1]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_PutByIdWithThis.scalar_value_ready_0:
mov rcx, rax
- mov r10d, DWORD PTR [r11 + 8]
+ movzx r10d, WORD PTR [r11 + 3]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_PutByIdWithThis.scalar_value_ready_1:
mov r8, rax
- mov r10d, DWORD PTR [r11 + 16]
+ movzx r10d, WORD PTR [r11 + 7]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_PutByIdWithThis.scalar_value_ready_2:
mov r9, rax
@@ -14424,27 +14443,27 @@ asm_handler_GetByValue_cold:
shr r11, 48
cmp r11w, 65532
je .Lasm_GetByValue.ssa_block_2
- mov r11d, DWORD PTR [r14 + r13 + 8]
+ movzx r11d, WORD PTR [r14 + r13 + 5]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 32
+ add r13d, 15
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_GetByValue.ssa_block_12:
cvtsi2sd xmm0, rax
movq rax, xmm0
- mov r11d, DWORD PTR [r14 + r13 + 8]
+ movzx r11d, WORD PTR [r14 + r13 + 5]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 32
+ add r13d, 15
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_GetByValue.ssa_block_4:
lea rcx, [r14 + r13]
sub rsp, 32
- mov r10d, DWORD PTR [rcx + 12]
+ movzx r10d, WORD PTR [rcx + 7]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_GetByValue.value_ready_10:
mov QWORD PTR [rsp + 8], rax
- mov r10d, DWORD PTR [rcx + 16]
+ movzx r10d, WORD PTR [rcx + 9]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_GetByValue.value_ready_11:
mov QWORD PTR [rsp + 16], rax
@@ -14461,7 +14480,7 @@ asm_handler_GetByValue_cold:
test rax, rax
jne .Lasm_GetByValue.values_exceptional_outputs_13
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 8]
+ movzx r10d, WORD PTR [rcx + 5]
mov r11, QWORD PTR [rsp]
mov QWORD PTR [rbx + r10 * 8], r11
.Lasm_GetByValue.skip_output_value_14:
@@ -14472,17 +14491,17 @@ asm_handler_GetByValue_cold:
.Lasm_GetByValue.values_call_done_9:
test eax, eax
jnz .Lasm_GetByValue.ssa_block_1
- add r13d, 32
+ add r13d, 15
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_GetByValue.ssa_block_7:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 12]
+ movzx r10d, WORD PTR [r11 + 7]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_GetByValue.scalar_value_ready_15:
mov rcx, rax
- mov r10d, DWORD PTR [r11 + 16]
+ movzx r10d, WORD PTR [r11 + 9]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_GetByValue.scalar_value_ready_16:
mov r8, rax
@@ -14495,7 +14514,7 @@ asm_handler_GetByValue_cold:
bt rax, 32
jnc .Lasm_GetByValue.scalar_result_done_17
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 8]
+ movzx r10d, WORD PTR [rcx + 5]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -14518,7 +14537,7 @@ asm_handler_GetByValue_cold:
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_GetByValue.ssa_block_6:
- mov eax, DWORD PTR [r14 + r13 + 16]
+ movzx eax, WORD PTR [r14 + r13 + 9]
mov rax, QWORD PTR [rbx + rax * 8]
mov r11, rax
shr r11, 48
@@ -14527,11 +14546,11 @@ asm_handler_GetByValue_cold:
.Lasm_GetByValue.ssa_block_2:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 12]
+ movzx r10d, WORD PTR [r11 + 7]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_GetByValue.scalar_value_ready_19:
mov rcx, rax
- mov r10d, DWORD PTR [r11 + 16]
+ movzx r10d, WORD PTR [r11 + 9]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_GetByValue.scalar_value_ready_20:
mov r8, rax
@@ -14544,7 +14563,7 @@ asm_handler_GetByValue_cold:
bt rax, 32
jnc .Lasm_GetByValue.scalar_result_done_21
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 8]
+ movzx r10d, WORD PTR [rcx + 5]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -14569,11 +14588,11 @@ asm_handler_GetByValue_cold:
.Lasm_GetByValue.ssa_block_1:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 12]
+ movzx r10d, WORD PTR [r11 + 7]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_GetByValue.scalar_value_ready_23:
mov rcx, rax
- mov r10d, DWORD PTR [r11 + 16]
+ movzx r10d, WORD PTR [r11 + 9]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_GetByValue.scalar_value_ready_24:
mov r8, rax
@@ -14586,7 +14605,7 @@ asm_handler_GetByValue_cold:
bt rax, 32
jnc .Lasm_GetByValue.scalar_result_done_25
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 8]
+ movzx r10d, WORD PTR [rcx + 5]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -14611,11 +14630,11 @@ asm_handler_GetByValue_cold:
.Lasm_GetByValue.ssa_block_3:
lea rcx, [r14 + r13]
sub rsp, 32
- mov r10d, DWORD PTR [rcx + 12]
+ movzx r10d, WORD PTR [rcx + 7]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_GetByValue.value_ready_28:
mov QWORD PTR [rsp + 8], rax
- mov r10d, DWORD PTR [rcx + 16]
+ movzx r10d, WORD PTR [rcx + 9]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_GetByValue.value_ready_29:
mov QWORD PTR [rsp + 16], rax
@@ -14632,7 +14651,7 @@ asm_handler_GetByValue_cold:
test rax, rax
jne .Lasm_GetByValue.values_exceptional_outputs_31
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 8]
+ movzx r10d, WORD PTR [rcx + 5]
mov r11, QWORD PTR [rsp]
mov QWORD PTR [rbx + r10 * 8], r11
.Lasm_GetByValue.skip_output_value_32:
@@ -14643,7 +14662,7 @@ asm_handler_GetByValue_cold:
.Lasm_GetByValue.values_call_done_27:
test eax, eax
jnz .Lasm_GetByValue.ssa_block_1
- add r13d, 32
+ add r13d, 15
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_GetByValue.canon_nan_1:
@@ -14654,15 +14673,15 @@ asm_handler_GetByValue_cold_end:
asm_handler_GetByValueWithThis:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 8]
+ movzx r10d, WORD PTR [r11 + 5]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_GetByValueWithThis.scalar_value_ready_0:
mov rcx, rax
- mov r10d, DWORD PTR [r11 + 12]
+ movzx r10d, WORD PTR [r11 + 7]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_GetByValueWithThis.scalar_value_ready_1:
mov r8, rax
- mov r10d, DWORD PTR [r11 + 16]
+ movzx r10d, WORD PTR [r11 + 9]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_GetByValueWithThis.scalar_value_ready_2:
mov r9, rax
@@ -14675,7 +14694,7 @@ asm_handler_GetByValueWithThis:
bt rax, 32
jnc .Lasm_GetByValueWithThis.scalar_result_done_3
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 3]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -14706,19 +14725,19 @@ asm_handler_PutByValueWithThis:
mov DWORD PTR [rbx + -64], r13d
sub rsp, 16
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 4]
+ movzx r10d, WORD PTR [r11 + 1]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_PutByValueWithThis.scalar_value_ready_0:
mov rcx, rax
- mov r10d, DWORD PTR [r11 + 8]
+ movzx r10d, WORD PTR [r11 + 3]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_PutByValueWithThis.scalar_value_ready_1:
mov r8, rax
- mov r10d, DWORD PTR [r11 + 12]
+ movzx r10d, WORD PTR [r11 + 5]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_PutByValueWithThis.scalar_value_ready_2:
mov r9, rax
- mov r10d, DWORD PTR [r11 + 16]
+ movzx r10d, WORD PTR [r11 + 7]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_PutByValueWithThis.scalar_value_ready_3:
mov QWORD PTR [rsp], rax
@@ -14759,11 +14778,11 @@ asm_handler_PutByValueWithThis_cold_end:
asm_handler_PutBySpread:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 4]
+ movzx r10d, WORD PTR [r11 + 1]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_PutBySpread.scalar_value_ready_0:
mov rcx, rax
- mov r10d, DWORD PTR [r11 + 8]
+ movzx r10d, WORD PTR [r11 + 3]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_PutBySpread.scalar_value_ready_1:
mov r8, rax
@@ -14804,15 +14823,15 @@ asm_handler_GetLength_cold:
.Lasm_GetLength.ssa_block_3:
cvtsi2sd xmm0, rax
movq rax, xmm0
- mov r11d, DWORD PTR [r14 + r13 + 8]
+ movzx r11d, WORD PTR [r14 + r13 + 5]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 24
+ add r13d, 13
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_GetLength.ssa_block_1:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 12]
+ movzx r10d, WORD PTR [r11 + 7]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_GetLength.scalar_value_ready_3:
mov rcx, rax
@@ -14825,7 +14844,7 @@ asm_handler_GetLength_cold:
bt rax, 32
jnc .Lasm_GetLength.scalar_result_done_4
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 8]
+ movzx r10d, WORD PTR [rcx + 5]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -14852,11 +14871,11 @@ asm_handler_GetLength_cold_end:
asm_handler_GetLengthWithThis:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 8]
+ movzx r10d, WORD PTR [r11 + 5]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_GetLengthWithThis.scalar_value_ready_0:
mov rcx, rax
- mov r10d, DWORD PTR [r11 + 12]
+ movzx r10d, WORD PTR [r11 + 7]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_GetLengthWithThis.scalar_value_ready_1:
mov r8, rax
@@ -14869,7 +14888,7 @@ asm_handler_GetLengthWithThis:
bt rax, 32
jnc .Lasm_GetLengthWithThis.scalar_result_done_2
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 3]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -14899,7 +14918,7 @@ asm_handler_GetLengthWithThis_cold_end:
asm_handler_GetMethod:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 8]
+ movzx r10d, WORD PTR [r11 + 3]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_GetMethod.scalar_value_ready_0:
mov rcx, rax
@@ -14912,7 +14931,7 @@ asm_handler_GetMethod:
bt rax, 32
jnc .Lasm_GetMethod.scalar_result_done_1
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 1]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -14943,7 +14962,7 @@ asm_handler_GetIterator:
mov DWORD PTR [rbx + -64], r13d
lea rcx, [r14 + r13]
sub rsp, 32
- mov r10d, DWORD PTR [rcx + 16]
+ movzx r10d, WORD PTR [rcx + 7]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_GetIterator.value_ready_1:
mov r8, rax
@@ -14957,15 +14976,15 @@ asm_handler_GetIterator:
bt rax, 32
jnc .Lasm_GetIterator.values_exceptional_outputs_3
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 1]
mov r11, QWORD PTR [rsp]
mov QWORD PTR [rbx + r10 * 8], r11
.Lasm_GetIterator.skip_output_value_4:
- mov r10d, DWORD PTR [rcx + 8]
+ movzx r10d, WORD PTR [rcx + 3]
mov r11, QWORD PTR [rsp + 8]
mov QWORD PTR [rbx + r10 * 8], r11
.Lasm_GetIterator.skip_output_value_5:
- mov r10d, DWORD PTR [rcx + 12]
+ movzx r10d, WORD PTR [rcx + 5]
mov r11, QWORD PTR [rsp + 16]
mov QWORD PTR [rbx + r10 * 8], r11
.Lasm_GetIterator.skip_output_value_6:
@@ -15011,7 +15030,7 @@ asm_handler_GetGlobal_cold:
bt rax, 32
jnc .Lasm_GetGlobal.scalar_result_done_4
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 3]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -15048,7 +15067,7 @@ asm_handler_ResolveGlobalBinding_cold:
bt rax, 32
jnc .Lasm_ResolveGlobalBinding.scalar_result_done_2
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 1]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -15076,7 +15095,7 @@ asm_handler_SetGlobal_cold:
.Lasm_SetGlobal.ssa_block_1:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 8]
+ movzx r10d, WORD PTR [r11 + 3]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_SetGlobal.scalar_value_ready_7:
mov rcx, rax
@@ -15123,10 +15142,10 @@ asm_handler_Call_cold:
mov rbx, QWORD PTR [rax]
add rbx, 128
test rbx, rbx
- jz .Lasm_Call.assert_predicate_failure_142
+ jz .Lasm_Call.assert_predicate_failure_143
mov rax, QWORD PTR [rbx - 40]
test rax, rax
- jz .Lasm_Call.assert_predicate_failure_148
+ jz .Lasm_Call.assert_predicate_failure_149
mov r14, QWORD PTR [rax + 40]
test r14, r14
jz .Lasm_Call.assert_failure_31
@@ -15137,7 +15156,7 @@ asm_handler_Call_cold:
mov DWORD PTR [rbx + -64], r13d
lea rcx, [r14 + r13]
mov r11, rsp
- mov r10d, DWORD PTR [rcx + 24]
+ mov r10d, DWORD PTR [rcx + 15]
shl r10, 3
add r10, 55
and r10, -16
@@ -15164,20 +15183,20 @@ asm_handler_Call_cold:
.Lasm_Call.values_allocated_35:
mov rsp, rax
mov QWORD PTR [rsp], r11
- mov r10d, DWORD PTR [rcx + 16]
+ movzx r10d, WORD PTR [rcx + 11]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_Call.value_ready_36:
mov QWORD PTR [rsp + 24], rax
- mov r10d, DWORD PTR [rcx + 20]
+ movzx r10d, WORD PTR [rcx + 13]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_Call.value_ready_37:
mov QWORD PTR [rsp + 32], rax
mov r11d, 0
- mov r10d, DWORD PTR [rcx + 24]
+ mov r10d, DWORD PTR [rcx + 15]
.Lasm_Call.array_value_next_38:
cmp r11, r10
jae .Lasm_Call.array_values_end_40
- mov edx, DWORD PTR [rcx + r11 * 4 + 32]
+ movzx edx, WORD PTR [rcx + r11 * 2 + 21]
mov rax, QWORD PTR [rbx + rdx * 8]
.Lasm_Call.array_value_ready_39:
mov QWORD PTR [rsp + r11 * 8 + 40], rax
@@ -15194,7 +15213,7 @@ asm_handler_Call_cold:
bt rax, 32
jnc .Lasm_Call.values_exceptional_outputs_42
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 12]
+ movzx r10d, WORD PTR [rcx + 9]
mov r11, QWORD PTR [rsp + 16]
mov QWORD PTR [rbx + r10 * 8], r11
.Lasm_Call.skip_output_value_43:
@@ -15230,7 +15249,7 @@ asm_handler_GetObjectPropertyIterator:
mov DWORD PTR [rbx + -64], r13d
lea rcx, [r14 + r13]
sub rsp, 32
- mov r10d, DWORD PTR [rcx + 12]
+ movzx r10d, WORD PTR [rcx + 5]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_GetObjectPropertyIterator.value_ready_1:
mov r8, rax
@@ -15244,11 +15263,11 @@ asm_handler_GetObjectPropertyIterator:
bt rax, 32
jnc .Lasm_GetObjectPropertyIterator.values_exceptional_outputs_3
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 1]
mov r11, QWORD PTR [rsp]
mov QWORD PTR [rbx + r10 * 8], r11
.Lasm_GetObjectPropertyIterator.skip_output_value_4:
- mov r10d, DWORD PTR [rcx + 8]
+ movzx r10d, WORD PTR [rcx + 3]
mov r11, QWORD PTR [rsp + 8]
mov QWORD PTR [rbx + r10 * 8], r11
.Lasm_GetObjectPropertyIterator.skip_output_value_5:
@@ -15286,15 +15305,15 @@ asm_handler_ObjectPropertyIteratorNext_cold:
mov DWORD PTR [rbx + -64], r13d
lea rcx, [r14 + r13]
sub rsp, 64
- mov r10d, DWORD PTR [rcx + 12]
+ movzx r10d, WORD PTR [rcx + 5]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_ObjectPropertyIteratorNext.value_ready_2:
mov r8, rax
- mov r10d, DWORD PTR [rcx + 16]
+ movzx r10d, WORD PTR [rcx + 7]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_ObjectPropertyIteratorNext.value_ready_3:
mov r9, rax
- mov r10d, DWORD PTR [rcx + 20]
+ movzx r10d, WORD PTR [rcx + 9]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_ObjectPropertyIteratorNext.value_ready_4:
mov QWORD PTR [rsp], rax
@@ -15308,15 +15327,15 @@ asm_handler_ObjectPropertyIteratorNext_cold:
bt rax, 32
jnc .Lasm_ObjectPropertyIteratorNext.values_exceptional_outputs_6
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 1]
mov r11, QWORD PTR [rsp + 16]
mov QWORD PTR [rbx + r10 * 8], r11
.Lasm_ObjectPropertyIteratorNext.skip_output_value_7:
- mov r10d, DWORD PTR [rcx + 8]
+ movzx r10d, WORD PTR [rcx + 3]
mov r11, QWORD PTR [rsp + 24]
mov QWORD PTR [rbx + r10 * 8], r11
.Lasm_ObjectPropertyIteratorNext.skip_output_value_8:
- mov r10d, DWORD PTR [rcx + 20]
+ movzx r10d, WORD PTR [rcx + 9]
mov r11, QWORD PTR [rsp + 48]
mov QWORD PTR [rbx + r10 * 8], r11
.Lasm_ObjectPropertyIteratorNext.skip_output_value_9:
@@ -15331,7 +15350,7 @@ asm_handler_ObjectPropertyIteratorNext_cold:
cmp r10, rbx
jne .Lasm_ObjectPropertyIteratorNext.values_restore_stack_5
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 20]
+ movzx r10d, WORD PTR [rcx + 9]
mov r11, QWORD PTR [rsp + 48]
mov QWORD PTR [rbx + r10 * 8], r11
.Lasm_ObjectPropertyIteratorNext.skip_exceptional_output_10:
@@ -15361,19 +15380,19 @@ asm_handler_IteratorClose_cold:
mov DWORD PTR [rbx + -64], r13d
sub rsp, 16
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 4]
+ movzx r10d, WORD PTR [r11 + 1]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_IteratorClose.scalar_value_ready_1:
mov rcx, rax
- mov r10d, DWORD PTR [r11 + 8]
+ movzx r10d, WORD PTR [r11 + 3]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_IteratorClose.scalar_value_ready_2:
mov r8, rax
- mov r10d, DWORD PTR [r11 + 12]
+ movzx r10d, WORD PTR [r11 + 5]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_IteratorClose.scalar_value_ready_3:
mov r9, rax
- mov r10d, DWORD PTR [r11 + 20]
+ movzx r10d, WORD PTR [r11 + 11]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_IteratorClose.scalar_value_ready_4:
mov QWORD PTR [rsp], rax
@@ -15412,15 +15431,15 @@ asm_handler_IteratorNext:
mov DWORD PTR [rbx + -64], r13d
lea rcx, [r14 + r13]
sub rsp, 48
- mov r10d, DWORD PTR [rcx + 8]
+ movzx r10d, WORD PTR [rcx + 3]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_IteratorNext.value_ready_1:
mov r8, rax
- mov r10d, DWORD PTR [rcx + 12]
+ movzx r10d, WORD PTR [rcx + 5]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_IteratorNext.value_ready_2:
mov r9, rax
- mov r10d, DWORD PTR [rcx + 16]
+ movzx r10d, WORD PTR [rcx + 7]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_IteratorNext.value_ready_3:
mov QWORD PTR [rsp], rax
@@ -15434,11 +15453,11 @@ asm_handler_IteratorNext:
bt rax, 32
jnc .Lasm_IteratorNext.values_exceptional_outputs_5
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 1]
mov r11, QWORD PTR [rsp + 16]
mov QWORD PTR [rbx + r10 * 8], r11
.Lasm_IteratorNext.skip_output_value_6:
- mov r10d, DWORD PTR [rcx + 16]
+ movzx r10d, WORD PTR [rcx + 7]
mov r11, QWORD PTR [rsp + 40]
mov QWORD PTR [rbx + r10 * 8], r11
.Lasm_IteratorNext.skip_output_value_7:
@@ -15453,7 +15472,7 @@ asm_handler_IteratorNext:
cmp r10, rbx
jne .Lasm_IteratorNext.values_restore_stack_4
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 16]
+ movzx r10d, WORD PTR [rcx + 7]
mov r11, QWORD PTR [rsp + 40]
mov QWORD PTR [rbx + r10 * 8], r11
.Lasm_IteratorNext.skip_exceptional_output_8:
@@ -15485,15 +15504,15 @@ asm_handler_IteratorStep:
mov DWORD PTR [rbx + -64], r13d
lea rcx, [r14 + r13]
sub rsp, 48
- mov r10d, DWORD PTR [rcx + 8]
+ movzx r10d, WORD PTR [rcx + 3]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_IteratorStep.value_ready_1:
mov r8, rax
- mov r10d, DWORD PTR [rcx + 12]
+ movzx r10d, WORD PTR [rcx + 5]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_IteratorStep.value_ready_2:
mov r9, rax
- mov r10d, DWORD PTR [rcx + 16]
+ movzx r10d, WORD PTR [rcx + 7]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_IteratorStep.value_ready_3:
mov QWORD PTR [rsp], rax
@@ -15507,15 +15526,15 @@ asm_handler_IteratorStep:
bt rax, 32
jnc .Lasm_IteratorStep.values_exceptional_outputs_5
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 1]
mov r11, QWORD PTR [rsp + 16]
mov QWORD PTR [rbx + r10 * 8], r11
.Lasm_IteratorStep.skip_output_value_6:
- mov r10d, DWORD PTR [rcx + 8]
+ movzx r10d, WORD PTR [rcx + 3]
mov r11, QWORD PTR [rsp + 24]
mov QWORD PTR [rbx + r10 * 8], r11
.Lasm_IteratorStep.skip_output_value_7:
- mov r10d, DWORD PTR [rcx + 16]
+ movzx r10d, WORD PTR [rcx + 7]
mov r11, QWORD PTR [rsp + 40]
mov QWORD PTR [rbx + r10 * 8], r11
.Lasm_IteratorStep.skip_output_value_8:
@@ -15530,12 +15549,12 @@ asm_handler_IteratorStep:
cmp r10, rbx
jne .Lasm_IteratorStep.values_restore_stack_4
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 8]
+ movzx r10d, WORD PTR [rcx + 3]
mov r11, QWORD PTR [rsp + 24]
mov QWORD PTR [rbx + r10 * 8], r11
.Lasm_IteratorStep.skip_exceptional_output_9:
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 16]
+ movzx r10d, WORD PTR [rcx + 7]
mov r11, QWORD PTR [rsp + 40]
mov QWORD PTR [rbx + r10 * 8], r11
.Lasm_IteratorStep.skip_exceptional_output_10:
@@ -15568,15 +15587,15 @@ asm_handler_IteratorNextUnpack_cold:
mov DWORD PTR [rbx + -64], r13d
lea rcx, [r14 + r13]
sub rsp, 64
- mov r10d, DWORD PTR [rcx + 12]
+ movzx r10d, WORD PTR [rcx + 5]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_IteratorNextUnpack.value_ready_1:
mov r8, rax
- mov r10d, DWORD PTR [rcx + 16]
+ movzx r10d, WORD PTR [rcx + 7]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_IteratorNextUnpack.value_ready_2:
mov r9, rax
- mov r10d, DWORD PTR [rcx + 20]
+ movzx r10d, WORD PTR [rcx + 9]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_IteratorNextUnpack.value_ready_3:
mov QWORD PTR [rsp], rax
@@ -15590,19 +15609,19 @@ asm_handler_IteratorNextUnpack_cold:
bt rax, 32
jnc .Lasm_IteratorNextUnpack.values_exceptional_outputs_5
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 1]
mov r11, QWORD PTR [rsp + 16]
mov QWORD PTR [rbx + r10 * 8], r11
.Lasm_IteratorNextUnpack.skip_output_value_6:
- mov r10d, DWORD PTR [rcx + 8]
+ movzx r10d, WORD PTR [rcx + 3]
mov r11, QWORD PTR [rsp + 24]
mov QWORD PTR [rbx + r10 * 8], r11
.Lasm_IteratorNextUnpack.skip_output_value_7:
- mov r10d, DWORD PTR [rcx + 12]
+ movzx r10d, WORD PTR [rcx + 5]
mov r11, QWORD PTR [rsp + 32]
mov QWORD PTR [rbx + r10 * 8], r11
.Lasm_IteratorNextUnpack.skip_output_value_8:
- mov r10d, DWORD PTR [rcx + 20]
+ movzx r10d, WORD PTR [rcx + 9]
mov r11, QWORD PTR [rsp + 48]
mov QWORD PTR [rbx + r10 * 8], r11
.Lasm_IteratorNextUnpack.skip_output_value_9:
@@ -15617,12 +15636,12 @@ asm_handler_IteratorNextUnpack_cold:
cmp r10, rbx
jne .Lasm_IteratorNextUnpack.values_restore_stack_4
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 12]
+ movzx r10d, WORD PTR [rcx + 5]
mov r11, QWORD PTR [rsp + 32]
mov QWORD PTR [rbx + r10 * 8], r11
.Lasm_IteratorNextUnpack.skip_exceptional_output_10:
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 20]
+ movzx r10d, WORD PTR [rcx + 9]
mov r11, QWORD PTR [rsp + 48]
mov QWORD PTR [rbx + r10 * 8], r11
.Lasm_IteratorNextUnpack.skip_exceptional_output_11:
@@ -15651,15 +15670,15 @@ asm_handler_IteratorToArray:
mov DWORD PTR [rbx + -64], r13d
lea rcx, [r14 + r13]
sub rsp, 48
- mov r10d, DWORD PTR [rcx + 8]
+ movzx r10d, WORD PTR [rcx + 3]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_IteratorToArray.value_ready_1:
mov r8, rax
- mov r10d, DWORD PTR [rcx + 12]
+ movzx r10d, WORD PTR [rcx + 5]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_IteratorToArray.value_ready_2:
mov r9, rax
- mov r10d, DWORD PTR [rcx + 16]
+ movzx r10d, WORD PTR [rcx + 7]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_IteratorToArray.value_ready_3:
mov QWORD PTR [rsp], rax
@@ -15673,11 +15692,11 @@ asm_handler_IteratorToArray:
bt rax, 32
jnc .Lasm_IteratorToArray.values_exceptional_outputs_5
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 1]
mov r11, QWORD PTR [rsp + 16]
mov QWORD PTR [rbx + r10 * 8], r11
.Lasm_IteratorToArray.skip_output_value_6:
- mov r10d, DWORD PTR [rcx + 16]
+ movzx r10d, WORD PTR [rcx + 7]
mov r11, QWORD PTR [rsp + 40]
mov QWORD PTR [rbx + r10 * 8], r11
.Lasm_IteratorToArray.skip_output_value_7:
@@ -15692,7 +15711,7 @@ asm_handler_IteratorToArray:
cmp r10, rbx
jne .Lasm_IteratorToArray.values_restore_stack_4
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 16]
+ movzx r10d, WORD PTR [rcx + 7]
mov r11, QWORD PTR [rsp + 40]
mov QWORD PTR [rbx + r10 * 8], r11
.Lasm_IteratorToArray.skip_exceptional_output_8:
@@ -15724,7 +15743,7 @@ asm_handler_CallConstruct:
mov DWORD PTR [rbx + -64], r13d
lea rcx, [r14 + r13]
mov r11, rsp
- mov r10d, DWORD PTR [rcx + 20]
+ mov r10d, DWORD PTR [rcx + 13]
shl r10, 3
add r10, 47
and r10, -16
@@ -15751,16 +15770,16 @@ asm_handler_CallConstruct:
.Lasm_CallConstruct.values_allocated_3:
mov rsp, rax
mov QWORD PTR [rsp], r11
- mov r10d, DWORD PTR [rcx + 16]
+ movzx r10d, WORD PTR [rcx + 11]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_CallConstruct.value_ready_4:
mov QWORD PTR [rsp + 24], rax
mov r11d, 0
- mov r10d, DWORD PTR [rcx + 20]
+ mov r10d, DWORD PTR [rcx + 13]
.Lasm_CallConstruct.array_value_next_5:
cmp r11, r10
jae .Lasm_CallConstruct.array_values_end_7
- mov edx, DWORD PTR [rcx + r11 * 4 + 28]
+ movzx edx, WORD PTR [rcx + r11 * 2 + 19]
mov rax, QWORD PTR [rbx + rdx * 8]
.Lasm_CallConstruct.array_value_ready_6:
mov QWORD PTR [rsp + r11 * 8 + 32], rax
@@ -15777,7 +15796,7 @@ asm_handler_CallConstruct:
bt rax, 32
jnc .Lasm_CallConstruct.values_exceptional_outputs_9
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 12]
+ movzx r10d, WORD PTR [rcx + 9]
mov r11, QWORD PTR [rsp + 16]
mov QWORD PTR [rbx + r10 * 8], r11
.Lasm_CallConstruct.skip_output_value_10:
@@ -15814,7 +15833,7 @@ asm_handler_CallDirectEval:
mov DWORD PTR [rbx + -64], r13d
lea rcx, [r14 + r13]
mov r11, rsp
- mov r10d, DWORD PTR [rcx + 24]
+ mov r10d, DWORD PTR [rcx + 15]
shl r10, 3
add r10, 55
and r10, -16
@@ -15841,20 +15860,20 @@ asm_handler_CallDirectEval:
.Lasm_CallDirectEval.values_allocated_3:
mov rsp, rax
mov QWORD PTR [rsp], r11
- mov r10d, DWORD PTR [rcx + 16]
+ movzx r10d, WORD PTR [rcx + 11]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_CallDirectEval.value_ready_4:
mov QWORD PTR [rsp + 24], rax
- mov r10d, DWORD PTR [rcx + 20]
+ movzx r10d, WORD PTR [rcx + 13]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_CallDirectEval.value_ready_5:
mov QWORD PTR [rsp + 32], rax
mov r11d, 0
- mov r10d, DWORD PTR [rcx + 24]
+ mov r10d, DWORD PTR [rcx + 15]
.Lasm_CallDirectEval.array_value_next_6:
cmp r11, r10
jae .Lasm_CallDirectEval.array_values_end_8
- mov edx, DWORD PTR [rcx + r11 * 4 + 32]
+ movzx edx, WORD PTR [rcx + r11 * 2 + 21]
mov rax, QWORD PTR [rbx + rdx * 8]
.Lasm_CallDirectEval.array_value_ready_7:
mov QWORD PTR [rsp + r11 * 8 + 40], rax
@@ -15871,7 +15890,7 @@ asm_handler_CallDirectEval:
bt rax, 32
jnc .Lasm_CallDirectEval.values_exceptional_outputs_10
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 12]
+ movzx r10d, WORD PTR [rcx + 9]
mov r11, QWORD PTR [rsp + 16]
mov QWORD PTR [rbx + r10 * 8], r11
.Lasm_CallDirectEval.skip_output_value_11:
@@ -15907,15 +15926,15 @@ asm_handler_CallDirectEval_cold_end:
asm_handler_CallWithArgumentArray:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 12]
+ movzx r10d, WORD PTR [r11 + 7]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_CallWithArgumentArray.scalar_value_ready_0:
mov rcx, rax
- mov r10d, DWORD PTR [r11 + 16]
+ movzx r10d, WORD PTR [r11 + 9]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_CallWithArgumentArray.scalar_value_ready_1:
mov r8, rax
- mov r10d, DWORD PTR [r11 + 20]
+ movzx r10d, WORD PTR [r11 + 11]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_CallWithArgumentArray.scalar_value_ready_2:
mov r9, rax
@@ -15928,7 +15947,7 @@ asm_handler_CallWithArgumentArray:
bt rax, 32
jnc .Lasm_CallWithArgumentArray.scalar_result_done_3
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 8]
+ movzx r10d, WORD PTR [rcx + 5]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -15958,15 +15977,15 @@ asm_handler_CallWithArgumentArray_cold_end:
asm_handler_CallDirectEvalWithArgumentArray:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 12]
+ movzx r10d, WORD PTR [r11 + 7]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_CallDirectEvalWithArgumentArray.scalar_value_ready_0:
mov rcx, rax
- mov r10d, DWORD PTR [r11 + 16]
+ movzx r10d, WORD PTR [r11 + 9]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_CallDirectEvalWithArgumentArray.scalar_value_ready_1:
mov r8, rax
- mov r10d, DWORD PTR [r11 + 20]
+ movzx r10d, WORD PTR [r11 + 11]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_CallDirectEvalWithArgumentArray.scalar_value_ready_2:
mov r9, rax
@@ -15979,7 +15998,7 @@ asm_handler_CallDirectEvalWithArgumentArray:
bt rax, 32
jnc .Lasm_CallDirectEvalWithArgumentArray.scalar_result_done_3
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 8]
+ movzx r10d, WORD PTR [rcx + 5]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -16009,15 +16028,15 @@ asm_handler_CallDirectEvalWithArgumentArray_cold_end:
asm_handler_CallConstructWithArgumentArray:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 12]
+ movzx r10d, WORD PTR [r11 + 7]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_CallConstructWithArgumentArray.scalar_value_ready_0:
mov rcx, rax
- mov r10d, DWORD PTR [r11 + 16]
+ movzx r10d, WORD PTR [r11 + 9]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_CallConstructWithArgumentArray.scalar_value_ready_1:
mov r8, rax
- mov r10d, DWORD PTR [r11 + 20]
+ movzx r10d, WORD PTR [r11 + 11]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_CallConstructWithArgumentArray.scalar_value_ready_2:
mov r9, rax
@@ -16030,7 +16049,7 @@ asm_handler_CallConstructWithArgumentArray:
bt rax, 32
jnc .Lasm_CallConstructWithArgumentArray.scalar_result_done_3
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 8]
+ movzx r10d, WORD PTR [rcx + 5]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -16060,11 +16079,11 @@ asm_handler_CallConstructWithArgumentArray_cold_end:
asm_handler_SuperCallWithArgumentArray:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 12]
+ movzx r10d, WORD PTR [r11 + 7]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_SuperCallWithArgumentArray.scalar_value_ready_0:
mov rcx, rax
- mov r10d, DWORD PTR [r11 + 16]
+ movzx r10d, WORD PTR [r11 + 9]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_SuperCallWithArgumentArray.scalar_value_ready_1:
mov r8, rax
@@ -16077,7 +16096,7 @@ asm_handler_SuperCallWithArgumentArray:
bt rax, 32
jnc .Lasm_SuperCallWithArgumentArray.scalar_result_done_2
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 8]
+ movzx r10d, WORD PTR [rcx + 5]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -16116,7 +16135,7 @@ asm_handler_NewObject:
bt rax, 32
jnc .Lasm_NewObject.scalar_result_done_0
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 1]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -16155,7 +16174,7 @@ asm_handler_NewObjectWithNoPrototype:
bt rax, 32
jnc .Lasm_NewObjectWithNoPrototype.scalar_result_done_0
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 1]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -16185,7 +16204,7 @@ asm_handler_NewObjectWithNoPrototype_cold_end:
asm_handler_CacheObjectShape:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 4]
+ movzx r10d, WORD PTR [r11 + 1]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_CacheObjectShape.scalar_value_ready_0:
mov rcx, rax
@@ -16225,11 +16244,11 @@ asm_handler_CacheObjectShape_cold_end:
asm_handler_InitObjectLiteralProperty:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 4]
+ movzx r10d, WORD PTR [r11 + 1]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_InitObjectLiteralProperty.scalar_value_ready_0:
mov rcx, rax
- mov r10d, DWORD PTR [r11 + 12]
+ movzx r10d, WORD PTR [r11 + 5]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_InitObjectLiteralProperty.scalar_value_ready_1:
mov r8, rax
@@ -16270,7 +16289,7 @@ asm_handler_NewArray:
mov DWORD PTR [rbx + -64], r13d
lea rcx, [r14 + r13]
mov r11, rsp
- mov r10d, DWORD PTR [rcx + 12]
+ mov r10d, DWORD PTR [rcx + 7]
shl r10, 3
add r10, 39
and r10, -16
@@ -16298,11 +16317,11 @@ asm_handler_NewArray:
mov rsp, rax
mov QWORD PTR [rsp], r11
mov r11d, 0
- mov r10d, DWORD PTR [rcx + 12]
+ mov r10d, DWORD PTR [rcx + 7]
.Lasm_NewArray.array_value_next_4:
cmp r11, r10
jae .Lasm_NewArray.array_values_end_6
- mov edx, DWORD PTR [rcx + r11 * 4 + 16]
+ movzx edx, WORD PTR [rcx + r11 * 2 + 11]
mov rax, QWORD PTR [rbx + rdx * 8]
.Lasm_NewArray.array_value_ready_5:
mov QWORD PTR [rsp + r11 * 8 + 24], rax
@@ -16319,7 +16338,7 @@ asm_handler_NewArray:
bt rax, 32
jnc .Lasm_NewArray.values_exceptional_outputs_8
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 8]
+ movzx r10d, WORD PTR [rcx + 5]
mov r11, QWORD PTR [rsp + 16]
mov QWORD PTR [rbx + r10 * 8], r11
.Lasm_NewArray.skip_output_value_9:
@@ -16364,7 +16383,7 @@ asm_handler_NewPrimitiveArray:
bt rax, 32
jnc .Lasm_NewPrimitiveArray.scalar_result_done_0
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 8]
+ movzx r10d, WORD PTR [rcx + 5]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -16403,7 +16422,7 @@ asm_handler_NewRegExp:
bt rax, 32
jnc .Lasm_NewRegExp.scalar_result_done_0
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 1]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -16442,7 +16461,7 @@ asm_handler_NewReferenceError:
bt rax, 32
jnc .Lasm_NewReferenceError.scalar_result_done_0
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 1]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -16481,7 +16500,7 @@ asm_handler_NewTypeError:
bt rax, 32
jnc .Lasm_NewTypeError.scalar_result_done_0
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 1]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -16511,11 +16530,11 @@ asm_handler_NewTypeError_cold_end:
asm_handler_InstanceOf:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 8]
+ movzx r10d, WORD PTR [r11 + 3]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_InstanceOf.scalar_value_ready_0:
mov rcx, rax
- mov r10d, DWORD PTR [r11 + 12]
+ movzx r10d, WORD PTR [r11 + 5]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_InstanceOf.scalar_value_ready_1:
mov r8, rax
@@ -16528,7 +16547,7 @@ asm_handler_InstanceOf:
bt rax, 32
jnc .Lasm_InstanceOf.scalar_result_done_2
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 1]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -16558,11 +16577,11 @@ asm_handler_InstanceOf_cold_end:
asm_handler_In:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 8]
+ movzx r10d, WORD PTR [r11 + 3]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_In.scalar_value_ready_0:
mov rcx, rax
- mov r10d, DWORD PTR [r11 + 12]
+ movzx r10d, WORD PTR [r11 + 5]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_In.scalar_value_ready_1:
mov r8, rax
@@ -16575,7 +16594,7 @@ asm_handler_In:
bt rax, 32
jnc .Lasm_In.scalar_result_done_2
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 1]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -16607,7 +16626,7 @@ asm_handler_IsCallable_cold_end:
asm_handler_IsConstructor:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 8]
+ movzx r10d, WORD PTR [r11 + 3]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_IsConstructor.scalar_value_ready_0:
mov rcx, rax
@@ -16620,7 +16639,7 @@ asm_handler_IsConstructor:
bt rax, 32
jnc .Lasm_IsConstructor.scalar_result_done_1
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 1]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -16686,15 +16705,15 @@ asm_handler_AddPrivateName_cold_end:
asm_handler_CreateAsyncFromSyncIterator:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 8]
+ movzx r10d, WORD PTR [r11 + 3]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_CreateAsyncFromSyncIterator.scalar_value_ready_0:
mov rcx, rax
- mov r10d, DWORD PTR [r11 + 12]
+ movzx r10d, WORD PTR [r11 + 5]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_CreateAsyncFromSyncIterator.scalar_value_ready_1:
mov r8, rax
- mov r10d, DWORD PTR [r11 + 16]
+ movzx r10d, WORD PTR [r11 + 7]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_CreateAsyncFromSyncIterator.scalar_value_ready_2:
mov r9, rax
@@ -16707,7 +16726,7 @@ asm_handler_CreateAsyncFromSyncIterator:
bt rax, 32
jnc .Lasm_CreateAsyncFromSyncIterator.scalar_result_done_3
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 1]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -16737,15 +16756,15 @@ asm_handler_CreateAsyncFromSyncIterator_cold_end:
asm_handler_CreateDataPropertyOrThrow:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 4]
+ movzx r10d, WORD PTR [r11 + 1]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_CreateDataPropertyOrThrow.scalar_value_ready_0:
mov rcx, rax
- mov r10d, DWORD PTR [r11 + 8]
+ movzx r10d, WORD PTR [r11 + 3]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_CreateDataPropertyOrThrow.scalar_value_ready_1:
mov r8, rax
- mov r10d, DWORD PTR [r11 + 12]
+ movzx r10d, WORD PTR [r11 + 5]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_CreateDataPropertyOrThrow.scalar_value_ready_2:
mov r9, rax
@@ -16785,7 +16804,7 @@ asm_handler_CreateDataPropertyOrThrow_cold_end:
asm_handler_CreateImmutableBinding:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 4]
+ movzx r10d, WORD PTR [r11 + 1]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_CreateImmutableBinding.scalar_value_ready_0:
mov rcx, rax
@@ -16825,7 +16844,7 @@ asm_handler_CreateImmutableBinding_cold_end:
asm_handler_CreateMutableBinding:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 4]
+ movzx r10d, WORD PTR [r11 + 1]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_CreateMutableBinding.scalar_value_ready_0:
mov rcx, rax
@@ -16874,7 +16893,7 @@ asm_handler_CreateRestParams:
bt rax, 32
jnc .Lasm_CreateRestParams.scalar_result_done_0
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 1]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -16915,8 +16934,8 @@ asm_handler_CreateArguments:
bt rax, 32
jnc .Lasm_CreateArguments.values_exceptional_outputs_2
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
- cmp r10d, -1
+ movzx r10d, WORD PTR [rcx + 1]
+ cmp r10d, 65535
je .Lasm_CreateArguments.skip_output_value_3
mov r11, QWORD PTR [rsp]
mov QWORD PTR [rbx + r10 * 8], r11
@@ -16953,7 +16972,7 @@ asm_handler_CreateArguments_cold_end:
asm_handler_CreateLexicalEnvironment:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 8]
+ movzx r10d, WORD PTR [r11 + 3]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_CreateLexicalEnvironment.scalar_value_ready_0:
mov rcx, rax
@@ -16966,7 +16985,7 @@ asm_handler_CreateLexicalEnvironment:
bt rax, 32
jnc .Lasm_CreateLexicalEnvironment.scalar_result_done_1
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 1]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -17068,7 +17087,7 @@ asm_handler_CreateVariableEnvironment_cold_end:
asm_handler_DeleteById:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 8]
+ movzx r10d, WORD PTR [r11 + 3]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_DeleteById.scalar_value_ready_0:
mov rcx, rax
@@ -17081,7 +17100,7 @@ asm_handler_DeleteById:
bt rax, 32
jnc .Lasm_DeleteById.scalar_result_done_1
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 1]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -17111,11 +17130,11 @@ asm_handler_DeleteById_cold_end:
asm_handler_DeleteByValue:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 8]
+ movzx r10d, WORD PTR [r11 + 3]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_DeleteByValue.scalar_value_ready_0:
mov rcx, rax
- mov r10d, DWORD PTR [r11 + 12]
+ movzx r10d, WORD PTR [r11 + 5]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_DeleteByValue.scalar_value_ready_1:
mov r8, rax
@@ -17128,7 +17147,7 @@ asm_handler_DeleteByValue:
bt rax, 32
jnc .Lasm_DeleteByValue.scalar_result_done_2
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 1]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -17167,7 +17186,7 @@ asm_handler_DeleteVariable:
bt rax, 32
jnc .Lasm_DeleteVariable.scalar_result_done_0
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 1]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -17206,7 +17225,7 @@ asm_handler_NewDisposableResourceStack:
bt rax, 32
jnc .Lasm_NewDisposableResourceStack.scalar_result_done_0
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 1]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -17236,11 +17255,11 @@ asm_handler_NewDisposableResourceStack_cold_end:
asm_handler_AddDisposableResource:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 4]
+ movzx r10d, WORD PTR [r11 + 1]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_AddDisposableResource.scalar_value_ready_0:
mov rcx, rax
- mov r10d, DWORD PTR [r11 + 8]
+ movzx r10d, WORD PTR [r11 + 3]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_AddDisposableResource.scalar_value_ready_1:
mov r8, rax
@@ -17280,15 +17299,15 @@ asm_handler_AddDisposableResource_cold_end:
asm_handler_DisposeResources:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 4]
+ movzx r10d, WORD PTR [r11 + 1]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_DisposeResources.scalar_value_ready_0:
mov rcx, rax
- mov r10d, DWORD PTR [r11 + 8]
+ movzx r10d, WORD PTR [r11 + 3]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_DisposeResources.scalar_value_ready_1:
mov r8, rax
- mov r10d, DWORD PTR [r11 + 12]
+ movzx r10d, WORD PTR [r11 + 5]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_DisposeResources.scalar_value_ready_2:
mov r9, rax
@@ -17329,23 +17348,23 @@ asm_handler_AsyncDisposeResourcesStep:
mov DWORD PTR [rbx + -64], r13d
lea rcx, [r14 + r13]
sub rsp, 96
- mov r10d, DWORD PTR [rcx + 12]
+ movzx r10d, WORD PTR [rcx + 5]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_AsyncDisposeResourcesStep.value_ready_1:
mov r8, rax
- mov r10d, DWORD PTR [rcx + 16]
+ movzx r10d, WORD PTR [rcx + 7]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_AsyncDisposeResourcesStep.value_ready_2:
mov r9, rax
- mov r10d, DWORD PTR [rcx + 20]
+ movzx r10d, WORD PTR [rcx + 9]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_AsyncDisposeResourcesStep.value_ready_3:
mov QWORD PTR [rsp], rax
- mov r10d, DWORD PTR [rcx + 24]
+ movzx r10d, WORD PTR [rcx + 11]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_AsyncDisposeResourcesStep.value_ready_4:
mov QWORD PTR [rsp + 8], rax
- mov r10d, DWORD PTR [rcx + 28]
+ movzx r10d, WORD PTR [rcx + 13]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_AsyncDisposeResourcesStep.value_ready_5:
mov QWORD PTR [rsp + 16], rax
@@ -17359,11 +17378,11 @@ asm_handler_AsyncDisposeResourcesStep:
bt rax, 32
jnc .Lasm_AsyncDisposeResourcesStep.values_exceptional_outputs_7
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 1]
mov r11, QWORD PTR [rsp + 32]
mov QWORD PTR [rbx + r10 * 8], r11
.Lasm_AsyncDisposeResourcesStep.skip_output_value_8:
- mov r10d, DWORD PTR [rcx + 8]
+ movzx r10d, WORD PTR [rcx + 3]
mov r11, QWORD PTR [rsp + 40]
mov QWORD PTR [rbx + r10 * 8], r11
.Lasm_AsyncDisposeResourcesStep.skip_output_value_9:
@@ -17400,7 +17419,7 @@ asm_handler_GetCompletionFields:
mov DWORD PTR [rbx + -64], r13d
lea rcx, [r14 + r13]
sub rsp, 32
- mov r10d, DWORD PTR [rcx + 12]
+ movzx r10d, WORD PTR [rcx + 5]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_GetCompletionFields.value_ready_1:
mov r8, rax
@@ -17414,11 +17433,11 @@ asm_handler_GetCompletionFields:
bt rax, 32
jnc .Lasm_GetCompletionFields.values_exceptional_outputs_3
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 1]
mov r11, QWORD PTR [rsp]
mov QWORD PTR [rbx + r10 * 8], r11
.Lasm_GetCompletionFields.skip_output_value_4:
- mov r10d, DWORD PTR [rcx + 8]
+ movzx r10d, WORD PTR [rcx + 3]
mov r11, QWORD PTR [rsp + 8]
mov QWORD PTR [rbx + r10 * 8], r11
.Lasm_GetCompletionFields.skip_output_value_5:
@@ -17454,7 +17473,7 @@ asm_handler_GetCompletionFields_cold_end:
asm_handler_SetCompletionType:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 4]
+ movzx r10d, WORD PTR [r11 + 1]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_SetCompletionType.scalar_value_ready_0:
mov rcx, rax
@@ -17495,7 +17514,7 @@ asm_handler_GetTemplateObject:
mov DWORD PTR [rbx + -64], r13d
lea rcx, [r14 + r13]
mov r11, rsp
- mov r10d, DWORD PTR [rcx + 12]
+ mov r10d, DWORD PTR [rcx + 7]
shl r10, 3
add r10, 39
and r10, -16
@@ -17523,11 +17542,11 @@ asm_handler_GetTemplateObject:
mov rsp, rax
mov QWORD PTR [rsp], r11
mov r11d, 0
- mov r10d, DWORD PTR [rcx + 12]
+ mov r10d, DWORD PTR [rcx + 7]
.Lasm_GetTemplateObject.array_value_next_4:
cmp r11, r10
jae .Lasm_GetTemplateObject.array_values_end_6
- mov edx, DWORD PTR [rcx + r11 * 4 + 20]
+ movzx edx, WORD PTR [rcx + r11 * 2 + 15]
mov rax, QWORD PTR [rbx + rdx * 8]
.Lasm_GetTemplateObject.array_value_ready_5:
mov QWORD PTR [rsp + r11 * 8 + 24], rax
@@ -17544,7 +17563,7 @@ asm_handler_GetTemplateObject:
bt rax, 32
jnc .Lasm_GetTemplateObject.values_exceptional_outputs_8
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 8]
+ movzx r10d, WORD PTR [rcx + 5]
mov r11, QWORD PTR [rsp + 16]
mov QWORD PTR [rbx + r10 * 8], r11
.Lasm_GetTemplateObject.skip_output_value_9:
@@ -17580,9 +17599,9 @@ asm_handler_GetTemplateObject_cold_end:
asm_handler_NewFunction:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 16]
+ movzx r10d, WORD PTR [r11 + 9]
movabs rax, 9221964661971222528
- cmp r10d, -1
+ cmp r10d, 65535
je .Lasm_NewFunction.scalar_value_ready_0
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_NewFunction.scalar_value_ready_0:
@@ -17596,7 +17615,7 @@ asm_handler_NewFunction:
bt rax, 32
jnc .Lasm_NewFunction.scalar_result_done_1
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 1]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -17626,7 +17645,7 @@ asm_handler_NewFunction_cold_end:
asm_handler_Typeof:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 8]
+ movzx r10d, WORD PTR [r11 + 3]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_Typeof.scalar_value_ready_0:
mov rcx, rax
@@ -17639,7 +17658,7 @@ asm_handler_Typeof:
bt rax, 32
jnc .Lasm_Typeof.scalar_result_done_1
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 1]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -17705,7 +17724,7 @@ asm_handler_ResolveThisBinding_cold_end:
asm_handler_GetPrivateById:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 8]
+ movzx r10d, WORD PTR [r11 + 3]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_GetPrivateById.scalar_value_ready_0:
mov rcx, rax
@@ -17718,7 +17737,7 @@ asm_handler_GetPrivateById:
bt rax, 32
jnc .Lasm_GetPrivateById.scalar_result_done_1
lea rcx, [r14 + r13]
- mov r10d, DWORD PTR [rcx + 4]
+ movzx r10d, WORD PTR [rcx + 1]
mov QWORD PTR [rbx + r10 * 8], rdx
mov r13d, eax
movzx eax, BYTE PTR [r14 + r13]
@@ -17748,11 +17767,11 @@ asm_handler_GetPrivateById_cold_end:
asm_handler_PutPrivateById:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- mov r10d, DWORD PTR [r11 + 4]
+ movzx r10d, WORD PTR [r11 + 1]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_PutPrivateById.scalar_value_ready_0:
mov rcx, rax
- mov r10d, DWORD PTR [r11 + 12]
+ movzx r10d, WORD PTR [r11 + 5]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_PutPrivateById.scalar_value_ready_1:
mov r8, rax
@@ -17796,15 +17815,16 @@ asm_handler_AddLhsInt32_cold:
and ax, 32760
cmp ax, 32760
jne .Lasm_AddLhsInt32.ssa_block_5
- mov edx, DWORD PTR [r14 + r13 + 8]
+ mov edx, DWORD PTR [r14 + r13 + 5]
movabs r11, 9221683186994511872
or rdx, r11
- mov esi, DWORD PTR [r14 + r13 + 4]
+ movzx esi, WORD PTR [r14 + r13 + 3]
mov DWORD PTR [rbx + -64], r13d
sub rsp, 16
mov DWORD PTR [rsp + 8], esi
mov r8, rcx
mov rcx, rdx
+ mov r9d, 11
lea rdx, [rsp]
mov rdi, QWORD PTR [rbp - 48]
mov esi, r13d
@@ -17840,7 +17860,7 @@ asm_handler_AddLhsInt32_cold:
jmp [r12 + rax * 8]
.Lasm_AddLhsInt32.ssa_block_5:
movq xmm1, rcx
- mov eax, DWORD PTR [r14 + r13 + 8]
+ mov eax, DWORD PTR [r14 + r13 + 5]
cvtsi2sd xmm0, eax
addsd xmm0, xmm1
cvttsd2si edx, xmm0
@@ -17869,21 +17889,21 @@ asm_handler_AddLhsInt32_cold:
jp .Lasm_AddLhsInt32.canon_nan_2
.Lasm_AddLhsInt32.canon_nan_2_ret:
.Lasm_AddLhsInt32.ssa_box_number_6_done:
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 16
+ add r13d, 11
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_AddLhsInt32.ssa_block_8:
movsxd rax, ecx
- mov ecx, DWORD PTR [r14 + r13 + 8]
+ mov ecx, DWORD PTR [r14 + r13 + 5]
cvtsi2sd xmm0, ecx
cvtsi2sd xmm1, eax
addsd xmm0, xmm1
movq rax, xmm0
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 16
+ add r13d, 11
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_AddLhsInt32.canon_nan_2:
@@ -17893,16 +17913,16 @@ asm_handler_AddLhsInt32_cold_end:
asm_handler_AddRhsInt32_cold:
# Cold paths for AddRhsInt32
.Lasm_AddRhsInt32.ssa_checked_6_failure:
- sub ecx, DWORD PTR [r14 + r13 + 12]
+ sub ecx, DWORD PTR [r14 + r13 + 7]
movsxd rax, ecx
- mov ecx, DWORD PTR [r14 + r13 + 12]
+ mov ecx, DWORD PTR [r14 + r13 + 7]
cvtsi2sd xmm0, eax
cvtsi2sd xmm1, ecx
addsd xmm0, xmm1
movq rax, xmm0
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 16
+ add r13d, 11
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_AddRhsInt32.ssa_block_5:
@@ -17910,7 +17930,7 @@ asm_handler_AddRhsInt32_cold:
cmp ax, 32760
je .Lasm_AddRhsInt32.ssa_block_1
movq xmm0, rcx
- mov eax, DWORD PTR [r14 + r13 + 12]
+ mov eax, DWORD PTR [r14 + r13 + 7]
cvtsi2sd xmm1, eax
addsd xmm0, xmm1
cvttsd2si edx, xmm0
@@ -17939,20 +17959,21 @@ asm_handler_AddRhsInt32_cold:
jp .Lasm_AddRhsInt32.canon_nan_0
.Lasm_AddRhsInt32.canon_nan_0_ret:
.Lasm_AddRhsInt32.ssa_box_number_8_done:
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 16
+ add r13d, 11
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_AddRhsInt32.ssa_block_1:
- mov edx, DWORD PTR [r14 + r13 + 12]
+ mov edx, DWORD PTR [r14 + r13 + 7]
movabs r11, 9221683186994511872
or rdx, r11
- mov esi, DWORD PTR [r14 + r13 + 4]
+ movzx esi, WORD PTR [r14 + r13 + 3]
mov DWORD PTR [rbx + -64], r13d
sub rsp, 16
mov DWORD PTR [rsp + 8], esi
mov r8, rdx
+ mov r9d, 11
lea rdx, [rsp]
mov rdi, QWORD PTR [rbp - 48]
mov esi, r13d
@@ -17993,16 +18014,16 @@ asm_handler_AddRhsInt32_cold_end:
asm_handler_SubRhsInt32_cold:
# Cold paths for SubRhsInt32
.Lasm_SubRhsInt32.ssa_checked_6_failure:
- add ecx, DWORD PTR [r14 + r13 + 12]
+ add ecx, DWORD PTR [r14 + r13 + 7]
movsxd rax, ecx
- mov ecx, DWORD PTR [r14 + r13 + 12]
+ mov ecx, DWORD PTR [r14 + r13 + 7]
cvtsi2sd xmm0, eax
cvtsi2sd xmm1, ecx
subsd xmm0, xmm1
movq rax, xmm0
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 16
+ add r13d, 11
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_SubRhsInt32.ssa_block_5:
@@ -18010,7 +18031,7 @@ asm_handler_SubRhsInt32_cold:
cmp ax, 32760
je .Lasm_SubRhsInt32.ssa_block_1
movq xmm0, rcx
- mov eax, DWORD PTR [r14 + r13 + 12]
+ mov eax, DWORD PTR [r14 + r13 + 7]
cvtsi2sd xmm1, eax
subsd xmm0, xmm1
cvttsd2si edx, xmm0
@@ -18039,20 +18060,21 @@ asm_handler_SubRhsInt32_cold:
jp .Lasm_SubRhsInt32.canon_nan_0
.Lasm_SubRhsInt32.canon_nan_0_ret:
.Lasm_SubRhsInt32.ssa_box_number_8_done:
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 16
+ add r13d, 11
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_SubRhsInt32.ssa_block_1:
- mov edx, DWORD PTR [r14 + r13 + 12]
+ mov edx, DWORD PTR [r14 + r13 + 7]
movabs r11, 9221683186994511872
or rdx, r11
- mov esi, DWORD PTR [r14 + r13 + 4]
+ movzx esi, WORD PTR [r14 + r13 + 3]
mov DWORD PTR [rbx + -64], r13d
sub rsp, 16
mov DWORD PTR [rsp + 8], esi
mov r8, rdx
+ mov r9d, 11
lea rdx, [rsp]
mov rdi, QWORD PTR [rbp - 48]
mov esi, r13d
@@ -18096,14 +18118,15 @@ asm_handler_MulRhsInt32_cold:
and dx, 32760
cmp dx, 32760
jne .Lasm_MulRhsInt32.ssa_block_13
- mov edx, DWORD PTR [r14 + r13 + 12]
+ mov edx, DWORD PTR [r14 + r13 + 7]
movabs r11, 9221683186994511872
or rdx, r11
- mov esi, DWORD PTR [r14 + r13 + 4]
+ movzx esi, WORD PTR [r14 + r13 + 3]
mov DWORD PTR [rbx + -64], r13d
sub rsp, 16
mov DWORD PTR [rsp + 8], esi
mov r8, rdx
+ mov r9d, 11
lea rdx, [rsp]
mov rdi, QWORD PTR [rbp - 48]
mov esi, r13d
@@ -18139,7 +18162,7 @@ asm_handler_MulRhsInt32_cold:
jmp [r12 + rax * 8]
.Lasm_MulRhsInt32.ssa_block_13:
movq xmm0, rcx
- mov eax, DWORD PTR [r14 + r13 + 12]
+ mov eax, DWORD PTR [r14 + r13 + 7]
cvtsi2sd xmm1, eax
mulsd xmm0, xmm1
cvttsd2si edx, xmm0
@@ -18168,28 +18191,28 @@ asm_handler_MulRhsInt32_cold:
jp .Lasm_MulRhsInt32.canon_nan_2
.Lasm_MulRhsInt32.canon_nan_2_ret:
.Lasm_MulRhsInt32.ssa_box_number_8_done:
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 16
+ add r13d, 11
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_MulRhsInt32.ssa_block_3:
movabs r11, -9223372036854775808
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + rax * 8], r11
- add r13d, 16
+ add r13d, 11
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_MulRhsInt32.ssa_block_9:
movsxd rax, ecx
- mov ecx, DWORD PTR [r14 + r13 + 12]
+ mov ecx, DWORD PTR [r14 + r13 + 7]
cvtsi2sd xmm0, eax
cvtsi2sd xmm1, ecx
mulsd xmm0, xmm1
movq rax, xmm0
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 16
+ add r13d, 11
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_MulRhsInt32.canon_nan_2:
@@ -18198,16 +18221,17 @@ asm_handler_MulRhsInt32_cold:
asm_handler_MulRhsInt32_cold_end:
.p2align 4
asm_handler_ExpRhsInt32:
- mov eax, DWORD PTR [r14 + r13 + 8]
+ movzx eax, WORD PTR [r14 + r13 + 5]
mov rcx, QWORD PTR [rbx + rax * 8]
- mov edx, DWORD PTR [r14 + r13 + 12]
+ mov edx, DWORD PTR [r14 + r13 + 7]
movabs r11, 9221683186994511872
or rdx, r11
- mov esi, DWORD PTR [r14 + r13 + 4]
+ movzx esi, WORD PTR [r14 + r13 + 3]
mov DWORD PTR [rbx + -64], r13d
sub rsp, 16
mov DWORD PTR [rsp + 8], esi
mov r8, rdx
+ mov r9d, 11
lea rdx, [rsp]
mov rdi, QWORD PTR [rbp - 48]
mov esi, r13d
@@ -18248,14 +18272,15 @@ asm_handler_ExpRhsInt32_cold_end:
asm_handler_DivRhsInt32_cold:
# Cold paths for DivRhsInt32
.Lasm_DivRhsInt32.ssa_block_1:
- mov edx, DWORD PTR [r14 + r13 + 12]
+ mov edx, DWORD PTR [r14 + r13 + 7]
movabs r11, 9221683186994511872
or rdx, r11
- mov esi, DWORD PTR [r14 + r13 + 4]
+ movzx esi, WORD PTR [r14 + r13 + 3]
mov DWORD PTR [rbx + -64], r13d
sub rsp, 16
mov DWORD PTR [rsp + 8], esi
mov r8, rdx
+ mov r9d, 11
lea rdx, [rsp]
mov rdi, QWORD PTR [rbp - 48]
mov esi, r13d
@@ -18296,7 +18321,7 @@ asm_handler_DivRhsInt32_cold_end:
asm_handler_BitwiseXorRhsInt32_cold:
# Cold paths for BitwiseXorRhsInt32
.Lasm_BitwiseXorRhsInt32.ssa_block_2:
- mov esi, DWORD PTR [r14 + r13 + 12]
+ mov esi, DWORD PTR [r14 + r13 + 7]
mov rax, rdx
shr rax, 48
movabs r11, 9221683186994511872
@@ -18335,12 +18360,13 @@ asm_handler_BitwiseXorRhsInt32_cold:
mov edi, edi
jmp .Lasm_BitwiseXorRhsInt32.ssa_block_7
.Lasm_BitwiseXorRhsInt32.ssa_block_1:
- mov ecx, DWORD PTR [r14 + r13 + 4]
+ movzx ecx, WORD PTR [r14 + r13 + 3]
mov DWORD PTR [rbx + -64], r13d
sub rsp, 16
mov DWORD PTR [rsp + 8], ecx
mov rcx, rdx
mov r8, rsi
+ mov r9d, 11
lea rdx, [rsp]
mov rdi, QWORD PTR [rbp - 48]
mov esi, r13d
@@ -18380,16 +18406,16 @@ asm_handler_BitwiseXorRhsInt32_cold:
xor eax, edi
movabs r11, 9221683186994511872
or rax, r11
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 16
+ add r13d, 11
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_BitwiseXorRhsInt32_cold_end:
asm_handler_BitwiseAndRhsInt32_cold:
# Cold paths for BitwiseAndRhsInt32
.Lasm_BitwiseAndRhsInt32.ssa_block_2:
- mov esi, DWORD PTR [r14 + r13 + 12]
+ mov esi, DWORD PTR [r14 + r13 + 7]
mov rax, rdx
shr rax, 48
movabs r11, 9221683186994511872
@@ -18428,12 +18454,13 @@ asm_handler_BitwiseAndRhsInt32_cold:
mov edi, edi
jmp .Lasm_BitwiseAndRhsInt32.ssa_block_7
.Lasm_BitwiseAndRhsInt32.ssa_block_1:
- mov ecx, DWORD PTR [r14 + r13 + 4]
+ movzx ecx, WORD PTR [r14 + r13 + 3]
mov DWORD PTR [rbx + -64], r13d
sub rsp, 16
mov DWORD PTR [rsp + 8], ecx
mov rcx, rdx
mov r8, rsi
+ mov r9d, 11
lea rdx, [rsp]
mov rdi, QWORD PTR [rbp - 48]
mov esi, r13d
@@ -18473,16 +18500,16 @@ asm_handler_BitwiseAndRhsInt32_cold:
and eax, edi
movabs r11, 9221683186994511872
or rax, r11
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 16
+ add r13d, 11
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_BitwiseAndRhsInt32_cold_end:
asm_handler_BitwiseOrRhsInt32_cold:
# Cold paths for BitwiseOrRhsInt32
.Lasm_BitwiseOrRhsInt32.ssa_block_2:
- mov esi, DWORD PTR [r14 + r13 + 12]
+ mov esi, DWORD PTR [r14 + r13 + 7]
mov rax, rdx
shr rax, 48
movabs r11, 9221683186994511872
@@ -18521,12 +18548,13 @@ asm_handler_BitwiseOrRhsInt32_cold:
mov edi, edi
jmp .Lasm_BitwiseOrRhsInt32.ssa_block_7
.Lasm_BitwiseOrRhsInt32.ssa_block_1:
- mov ecx, DWORD PTR [r14 + r13 + 4]
+ movzx ecx, WORD PTR [r14 + r13 + 3]
mov DWORD PTR [rbx + -64], r13d
sub rsp, 16
mov DWORD PTR [rsp + 8], ecx
mov rcx, rdx
mov r8, rsi
+ mov r9d, 11
lea rdx, [rsp]
mov rdi, QWORD PTR [rbp - 48]
mov esi, r13d
@@ -18566,24 +18594,25 @@ asm_handler_BitwiseOrRhsInt32_cold:
or eax, edi
movabs r11, 9221683186994511872
or rax, r11
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 16
+ add r13d, 11
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_BitwiseOrRhsInt32_cold_end:
asm_handler_LeftShiftRhsInt32_cold:
# Cold paths for LeftShiftRhsInt32
.Lasm_LeftShiftRhsInt32.ssa_block_1:
- mov ecx, DWORD PTR [r14 + r13 + 12]
+ mov ecx, DWORD PTR [r14 + r13 + 7]
movabs r11, 9221683186994511872
or rcx, r11
- mov esi, DWORD PTR [r14 + r13 + 4]
+ movzx esi, WORD PTR [r14 + r13 + 3]
mov DWORD PTR [rbx + -64], r13d
sub rsp, 16
mov DWORD PTR [rsp + 8], esi
mov r8, rcx
mov rcx, rdx
+ mov r9d, 11
lea rdx, [rsp]
mov rdi, QWORD PTR [rbp - 48]
mov esi, r13d
@@ -18621,15 +18650,16 @@ asm_handler_LeftShiftRhsInt32_cold_end:
asm_handler_RightShiftRhsInt32_cold:
# Cold paths for RightShiftRhsInt32
.Lasm_RightShiftRhsInt32.ssa_block_1:
- mov ecx, DWORD PTR [r14 + r13 + 12]
+ mov ecx, DWORD PTR [r14 + r13 + 7]
movabs r11, 9221683186994511872
or rcx, r11
- mov esi, DWORD PTR [r14 + r13 + 4]
+ movzx esi, WORD PTR [r14 + r13 + 3]
mov DWORD PTR [rbx + -64], r13d
sub rsp, 16
mov DWORD PTR [rsp + 8], esi
mov r8, rcx
mov rcx, rdx
+ mov r9d, 11
lea rdx, [rsp]
mov rdi, QWORD PTR [rbp - 48]
mov esi, r13d
@@ -18669,21 +18699,22 @@ asm_handler_UnsignedRightShiftRhsInt32_cold:
.Lasm_UnsignedRightShiftRhsInt32.ssa_block_2:
cvtsi2sd xmm0, rdx
movq rax, xmm0
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 16
+ add r13d, 11
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_UnsignedRightShiftRhsInt32.ssa_block_1:
- mov ecx, DWORD PTR [r14 + r13 + 12]
+ mov ecx, DWORD PTR [r14 + r13 + 7]
movabs r11, 9221683186994511872
or rcx, r11
- mov esi, DWORD PTR [r14 + r13 + 4]
+ movzx esi, WORD PTR [r14 + r13 + 3]
mov DWORD PTR [rbx + -64], r13d
sub rsp, 16
mov DWORD PTR [rsp + 8], esi
mov r8, rcx
mov rcx, rdx
+ mov r9d, 11
lea rdx, [rsp]
mov rdi, QWORD PTR [rbp - 48]
mov esi, r13d
@@ -18739,7 +18770,7 @@ asm_handler_ModRhsInt32_cold:
movsxd rax, ecx
movsxd rsi, eax
.Lasm_ModRhsInt32.ssa_block_20:
- mov eax, DWORD PTR [r14 + r13 + 12]
+ mov eax, DWORD PTR [r14 + r13 + 7]
movsxd rdi, eax
test rdi, rdi
jz .Lasm_ModRhsInt32.ssa_block_1
@@ -18756,17 +18787,17 @@ asm_handler_ModRhsInt32_cold:
jne .Lasm_ModRhsInt32.ssa_block_5
movabs r11, 9221683186994511872
or rax, r11
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 16
+ add r13d, 11
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_ModRhsInt32.ssa_block_5:
cvtsi2sd xmm0, rdx
movq rax, xmm0
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 16
+ add r13d, 11
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_ModRhsInt32.ssa_block_3:
@@ -18775,27 +18806,28 @@ asm_handler_ModRhsInt32_cold:
test rcx, rcx
js .Lasm_ModRhsInt32.ssa_block_4
movabs rax, 9221683186994511872
- mov r11d, DWORD PTR [r14 + r13 + 4]
+ movzx r11d, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 16
+ add r13d, 11
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_ModRhsInt32.ssa_block_4:
movabs r11, -9223372036854775808
- mov eax, DWORD PTR [r14 + r13 + 4]
+ movzx eax, WORD PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + rax * 8], r11
- add r13d, 16
+ add r13d, 11
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_ModRhsInt32.ssa_block_1:
- mov edx, DWORD PTR [r14 + r13 + 12]
+ mov edx, DWORD PTR [r14 + r13 + 7]
movabs r11, 9221683186994511872
or rdx, r11
- mov esi, DWORD PTR [r14 + r13 + 4]
+ movzx esi, WORD PTR [r14 + r13 + 3]
mov DWORD PTR [rbx + -64], r13d
sub rsp, 16
mov DWORD PTR [rsp + 8], esi
mov r8, rdx
+ mov r9d, 11
lea rdx, [rsp]
mov rdi, QWORD PTR [rbp - 48]
mov esi, r13d
@@ -18836,14 +18868,15 @@ asm_handler_LessThanRhsInt32_cold:
and ax, 32760
cmp ax, 32760
jne .Lasm_LessThanRhsInt32.ssa_block_15
- mov edx, DWORD PTR [r14 + r13 + 12]
+ mov edx, DWORD PTR [r14 + r13 + 7]
movabs r11, 9221683186994511872
or rdx, r11
- mov esi, DWORD PTR [r14 + r13 + 4]
+ movzx esi, WORD PTR [r14 + r13 + 3]
mov DWORD PTR [rbx + -64], r13d
sub rsp, 16
mov DWORD PTR [rsp + 8], esi
mov r8, rdx
+ mov r9d, 11
lea rdx, [rsp]
mov rdi, QWORD PTR [rbp - 48]
mov esi, r13d
@@ -18879,7 +18912,7 @@ asm_handler_LessThanRhsInt32_cold:
jmp [r12 + rax * 8]
.Lasm_LessThanRhsInt32.ssa_block_15:
movq xmm0, rcx
- mov eax, DWORD PTR [r14 + r13 + 12]
+ mov eax, DWORD PTR [r14 + r13 + 7]
cvtsi2sd xmm1, eax
ucomisd xmm0, xmm1
jp .Lasm_LessThanRhsInt32.ssa_block_2
@@ -18892,14 +18925,15 @@ asm_handler_LessThanEqualsRhsInt32_cold:
and ax, 32760
cmp ax, 32760
jne .Lasm_LessThanEqualsRhsInt32.ssa_block_15
- mov edx, DWORD PTR [r14 + r13 + 12]
+ mov edx, DWORD PTR [r14 + r13 + 7]
movabs r11, 9221683186994511872
or rdx, r11
- mov esi, DWORD PTR [r14 + r13 + 4]
+ movzx esi, WORD PTR [r14 + r13 + 3]
mov DWORD PTR [rbx + -64], r13d
sub rsp, 16
mov DWORD PTR [rsp + 8], esi
mov r8, rdx
+ mov r9d, 11
lea rdx, [rsp]
mov rdi, QWORD PTR [rbp - 48]
mov esi, r13d
@@ -18935,7 +18969,7 @@ asm_handler_LessThanEqualsRhsInt32_cold:
jmp [r12 + rax * 8]
.Lasm_LessThanEqualsRhsInt32.ssa_block_15:
movq xmm0, rcx
- mov eax, DWORD PTR [r14 + r13 + 12]
+ mov eax, DWORD PTR [r14 + r13 + 7]
cvtsi2sd xmm1, eax
ucomisd xmm0, xmm1
jp .Lasm_LessThanEqualsRhsInt32.ssa_block_2
@@ -18948,14 +18982,15 @@ asm_handler_GreaterThanRhsInt32_cold:
and ax, 32760
cmp ax, 32760
jne .Lasm_GreaterThanRhsInt32.ssa_block_15
- mov edx, DWORD PTR [r14 + r13 + 12]
+ mov edx, DWORD PTR [r14 + r13 + 7]
movabs r11, 9221683186994511872
or rdx, r11
- mov esi, DWORD PTR [r14 + r13 + 4]
+ movzx esi, WORD PTR [r14 + r13 + 3]
mov DWORD PTR [rbx + -64], r13d
sub rsp, 16
mov DWORD PTR [rsp + 8], esi
mov r8, rdx
+ mov r9d, 11
lea rdx, [rsp]
mov rdi, QWORD PTR [rbp - 48]
mov esi, r13d
@@ -18991,7 +19026,7 @@ asm_handler_GreaterThanRhsInt32_cold:
jmp [r12 + rax * 8]
.Lasm_GreaterThanRhsInt32.ssa_block_15:
movq xmm0, rcx
- mov eax, DWORD PTR [r14 + r13 + 12]
+ mov eax, DWORD PTR [r14 + r13 + 7]
cvtsi2sd xmm1, eax
ucomisd xmm0, xmm1
jp .Lasm_GreaterThanRhsInt32.ssa_block_2
@@ -19004,14 +19039,15 @@ asm_handler_GreaterThanEqualsRhsInt32_cold:
and ax, 32760
cmp ax, 32760
jne .Lasm_GreaterThanEqualsRhsInt32.ssa_block_15
- mov edx, DWORD PTR [r14 + r13 + 12]
+ mov edx, DWORD PTR [r14 + r13 + 7]
movabs r11, 9221683186994511872
or rdx, r11
- mov esi, DWORD PTR [r14 + r13 + 4]
+ movzx esi, WORD PTR [r14 + r13 + 3]
mov DWORD PTR [rbx + -64], r13d
sub rsp, 16
mov DWORD PTR [rsp + 8], esi
mov r8, rdx
+ mov r9d, 11
lea rdx, [rsp]
mov rdi, QWORD PTR [rbp - 48]
mov esi, r13d
@@ -19047,7 +19083,7 @@ asm_handler_GreaterThanEqualsRhsInt32_cold:
jmp [r12 + rax * 8]
.Lasm_GreaterThanEqualsRhsInt32.ssa_block_15:
movq xmm0, rcx
- mov eax, DWORD PTR [r14 + r13 + 12]
+ mov eax, DWORD PTR [r14 + r13 + 7]
cvtsi2sd xmm1, eax
ucomisd xmm0, xmm1
jp .Lasm_GreaterThanEqualsRhsInt32.ssa_block_2
@@ -19060,9 +19096,9 @@ asm_handler_JumpLessThanRhsInt32_cold:
and ax, 32760
cmp ax, 32760
jne .Lasm_JumpLessThanRhsInt32.ssa_block_15
- mov edx, DWORD PTR [r14 + r13 + 8]
- mov esi, DWORD PTR [r14 + r13 + 12]
- mov edi, DWORD PTR [r14 + r13 + 16]
+ mov edx, DWORD PTR [r14 + r13 + 5]
+ mov esi, DWORD PTR [r14 + r13 + 9]
+ mov edi, DWORD PTR [r14 + r13 + 13]
movabs r11, 9221683186994511872
or rdx, r11
mov DWORD PTR [rbx + -64], r13d
@@ -19092,7 +19128,7 @@ asm_handler_JumpLessThanRhsInt32_cold:
jmp [r12 + rax * 8]
.Lasm_JumpLessThanRhsInt32.ssa_block_15:
movq xmm0, rcx
- mov eax, DWORD PTR [r14 + r13 + 8]
+ mov eax, DWORD PTR [r14 + r13 + 5]
cvtsi2sd xmm1, eax
ucomisd xmm0, xmm1
jp .Lasm_JumpLessThanRhsInt32.ssa_block_3
@@ -19105,9 +19141,9 @@ asm_handler_JumpLessThanEqualsRhsInt32_cold:
and ax, 32760
cmp ax, 32760
jne .Lasm_JumpLessThanEqualsRhsInt32.ssa_block_15
- mov edx, DWORD PTR [r14 + r13 + 8]
- mov esi, DWORD PTR [r14 + r13 + 12]
- mov edi, DWORD PTR [r14 + r13 + 16]
+ mov edx, DWORD PTR [r14 + r13 + 5]
+ mov esi, DWORD PTR [r14 + r13 + 9]
+ mov edi, DWORD PTR [r14 + r13 + 13]
movabs r11, 9221683186994511872
or rdx, r11
mov DWORD PTR [rbx + -64], r13d
@@ -19137,7 +19173,7 @@ asm_handler_JumpLessThanEqualsRhsInt32_cold:
jmp [r12 + rax * 8]
.Lasm_JumpLessThanEqualsRhsInt32.ssa_block_15:
movq xmm0, rcx
- mov eax, DWORD PTR [r14 + r13 + 8]
+ mov eax, DWORD PTR [r14 + r13 + 5]
cvtsi2sd xmm1, eax
ucomisd xmm0, xmm1
jp .Lasm_JumpLessThanEqualsRhsInt32.ssa_block_3
@@ -19150,9 +19186,9 @@ asm_handler_JumpGreaterThanRhsInt32_cold:
and ax, 32760
cmp ax, 32760
jne .Lasm_JumpGreaterThanRhsInt32.ssa_block_15
- mov edx, DWORD PTR [r14 + r13 + 8]
- mov esi, DWORD PTR [r14 + r13 + 12]
- mov edi, DWORD PTR [r14 + r13 + 16]
+ mov edx, DWORD PTR [r14 + r13 + 5]
+ mov esi, DWORD PTR [r14 + r13 + 9]
+ mov edi, DWORD PTR [r14 + r13 + 13]
movabs r11, 9221683186994511872
or rdx, r11
mov DWORD PTR [rbx + -64], r13d
@@ -19182,7 +19218,7 @@ asm_handler_JumpGreaterThanRhsInt32_cold:
jmp [r12 + rax * 8]
.Lasm_JumpGreaterThanRhsInt32.ssa_block_15:
movq xmm0, rcx
- mov eax, DWORD PTR [r14 + r13 + 8]
+ mov eax, DWORD PTR [r14 + r13 + 5]
cvtsi2sd xmm1, eax
ucomisd xmm0, xmm1
jp .Lasm_JumpGreaterThanRhsInt32.ssa_block_3
@@ -19195,9 +19231,9 @@ asm_handler_JumpGreaterThanEqualsRhsInt32_cold:
and ax, 32760
cmp ax, 32760
jne .Lasm_JumpGreaterThanEqualsRhsInt32.ssa_block_15
- mov edx, DWORD PTR [r14 + r13 + 8]
- mov esi, DWORD PTR [r14 + r13 + 12]
- mov edi, DWORD PTR [r14 + r13 + 16]
+ mov edx, DWORD PTR [r14 + r13 + 5]
+ mov esi, DWORD PTR [r14 + r13 + 9]
+ mov edi, DWORD PTR [r14 + r13 + 13]
movabs r11, 9221683186994511872
or rdx, r11
mov DWORD PTR [rbx + -64], r13d
@@ -19227,7 +19263,7 @@ asm_handler_JumpGreaterThanEqualsRhsInt32_cold:
jmp [r12 + rax * 8]
.Lasm_JumpGreaterThanEqualsRhsInt32.ssa_block_15:
movq xmm0, rcx
- mov eax, DWORD PTR [r14 + r13 + 8]
+ mov eax, DWORD PTR [r14 + r13 + 5]
cvtsi2sd xmm1, eax
ucomisd xmm0, xmm1
jp .Lasm_JumpGreaterThanEqualsRhsInt32.ssa_block_3
@@ -19260,11 +19296,12 @@ asm_handler_StrictlyEqualsRhsInt32_cold:
cmp r11w, 65530
je .Lasm_StrictlyEqualsRhsInt32.ssa_block_34
.Lasm_StrictlyEqualsRhsInt32.ssa_block_1:
- mov esi, DWORD PTR [r14 + r13 + 4]
+ movzx esi, WORD PTR [r14 + r13 + 3]
mov DWORD PTR [rbx + -64], r13d
sub rsp, 16
mov DWORD PTR [rsp + 8], esi
mov r8, rdx
+ mov r9d, 11
lea rdx, [rsp]
mov rdi, QWORD PTR [rbp - 48]
mov esi, r13d
@@ -19332,11 +19369,12 @@ asm_handler_StrictlyInequalsRhsInt32_cold:
cmp r11w, 65530
je .Lasm_StrictlyInequalsRhsInt32.ssa_block_34
.Lasm_StrictlyInequalsRhsInt32.ssa_block_1:
- mov esi, DWORD PTR [r14 + r13 + 4]
+ movzx esi, WORD PTR [r14 + r13 + 3]
mov DWORD PTR [rbx + -64], r13d
sub rsp, 16
mov DWORD PTR [rsp + 8], esi
mov r8, rdx
+ mov r9d, 11
lea rdx, [rsp]
mov rdi, QWORD PTR [rbp - 48]
mov esi, r13d
@@ -19404,11 +19442,12 @@ asm_handler_LooselyEqualsRhsInt32_cold:
cmp r11w, 65530
je .Lasm_LooselyEqualsRhsInt32.ssa_block_36
.Lasm_LooselyEqualsRhsInt32.ssa_block_1:
- mov esi, DWORD PTR [r14 + r13 + 4]
+ movzx esi, WORD PTR [r14 + r13 + 3]
mov DWORD PTR [rbx + -64], r13d
sub rsp, 16
mov DWORD PTR [rsp + 8], esi
mov r8, rdx
+ mov r9d, 11
lea rdx, [rsp]
mov rdi, QWORD PTR [rbp - 48]
mov esi, r13d
@@ -19476,11 +19515,12 @@ asm_handler_LooselyInequalsRhsInt32_cold:
cmp r11w, 65530
je .Lasm_LooselyInequalsRhsInt32.ssa_block_36
.Lasm_LooselyInequalsRhsInt32.ssa_block_1:
- mov esi, DWORD PTR [r14 + r13 + 4]
+ movzx esi, WORD PTR [r14 + r13 + 3]
mov DWORD PTR [rbx + -64], r13d
sub rsp, 16
mov DWORD PTR [rsp + 8], esi
mov r8, rdx
+ mov r9d, 11
lea rdx, [rsp]
mov rdi, QWORD PTR [rbp - 48]
mov esi, r13d
@@ -19548,8 +19588,8 @@ asm_handler_JumpStrictlyEqualsRhsInt32_cold:
cmp r11w, 65530
je .Lasm_JumpStrictlyEqualsRhsInt32.ssa_block_34
.Lasm_JumpStrictlyEqualsRhsInt32.ssa_block_1:
- mov esi, DWORD PTR [r14 + r13 + 12]
- mov edi, DWORD PTR [r14 + r13 + 16]
+ mov esi, DWORD PTR [r14 + r13 + 9]
+ mov edi, DWORD PTR [r14 + r13 + 13]
mov DWORD PTR [rbx + -64], r13d
mov r8, rsi
mov r9, rdi
@@ -19609,8 +19649,8 @@ asm_handler_JumpStrictlyInequalsRhsInt32_cold:
cmp r11w, 65530
je .Lasm_JumpStrictlyInequalsRhsInt32.ssa_block_34
.Lasm_JumpStrictlyInequalsRhsInt32.ssa_block_1:
- mov esi, DWORD PTR [r14 + r13 + 12]
- mov edi, DWORD PTR [r14 + r13 + 16]
+ mov esi, DWORD PTR [r14 + r13 + 9]
+ mov edi, DWORD PTR [r14 + r13 + 13]
mov DWORD PTR [rbx + -64], r13d
mov r8, rsi
mov r9, rdi
@@ -19670,8 +19710,8 @@ asm_handler_JumpLooselyEqualsRhsInt32_cold:
cmp r11w, 65530
je .Lasm_JumpLooselyEqualsRhsInt32.ssa_block_36
.Lasm_JumpLooselyEqualsRhsInt32.ssa_block_1:
- mov esi, DWORD PTR [r14 + r13 + 12]
- mov edi, DWORD PTR [r14 + r13 + 16]
+ mov esi, DWORD PTR [r14 + r13 + 9]
+ mov edi, DWORD PTR [r14 + r13 + 13]
mov DWORD PTR [rbx + -64], r13d
mov r8, rsi
mov r9, rdi
@@ -19731,8 +19771,8 @@ asm_handler_JumpLooselyInequalsRhsInt32_cold:
cmp r11w, 65530
je .Lasm_JumpLooselyInequalsRhsInt32.ssa_block_36
.Lasm_JumpLooselyInequalsRhsInt32.ssa_block_1:
- mov esi, DWORD PTR [r14 + r13 + 12]
- mov edi, DWORD PTR [r14 + r13 + 16]
+ mov esi, DWORD PTR [r14 + r13 + 9]
+ mov edi, DWORD PTR [r14 + r13 + 13]
mov DWORD PTR [rbx + -64], r13d
mov r8, rsi
mov r9, rdi
@@ -19772,9 +19812,9 @@ asm_handler_JumpLessThanLoopRhsInt32_cold:
and ax, 32760
cmp ax, 32760
jne .Lasm_JumpLessThanLoopRhsInt32.ssa_block_15
- mov edx, DWORD PTR [r14 + r13 + 8]
- mov esi, DWORD PTR [r14 + r13 + 12]
- mov edi, DWORD PTR [r14 + r13 + 16]
+ mov edx, DWORD PTR [r14 + r13 + 5]
+ mov esi, DWORD PTR [r14 + r13 + 9]
+ mov edi, DWORD PTR [r14 + r13 + 13]
movabs r11, 9221683186994511872
or rdx, r11
mov DWORD PTR [rbx + -64], r13d
@@ -19804,7 +19844,7 @@ asm_handler_JumpLessThanLoopRhsInt32_cold:
jmp [r12 + rax * 8]
.Lasm_JumpLessThanLoopRhsInt32.ssa_block_15:
movq xmm0, rcx
- mov eax, DWORD PTR [r14 + r13 + 8]
+ mov eax, DWORD PTR [r14 + r13 + 5]
cvtsi2sd xmm1, eax
ucomisd xmm0, xmm1
jp .Lasm_JumpLessThanLoopRhsInt32.ssa_block_3
@@ -19817,9 +19857,9 @@ asm_handler_JumpLessThanEqualsLoopRhsInt32_cold:
and ax, 32760
cmp ax, 32760
jne .Lasm_JumpLessThanEqualsLoopRhsInt32.ssa_block_15
- mov edx, DWORD PTR [r14 + r13 + 8]
- mov esi, DWORD PTR [r14 + r13 + 12]
- mov edi, DWORD PTR [r14 + r13 + 16]
+ mov edx, DWORD PTR [r14 + r13 + 5]
+ mov esi, DWORD PTR [r14 + r13 + 9]
+ mov edi, DWORD PTR [r14 + r13 + 13]
movabs r11, 9221683186994511872
or rdx, r11
mov DWORD PTR [rbx + -64], r13d
@@ -19849,7 +19889,7 @@ asm_handler_JumpLessThanEqualsLoopRhsInt32_cold:
jmp [r12 + rax * 8]
.Lasm_JumpLessThanEqualsLoopRhsInt32.ssa_block_15:
movq xmm0, rcx
- mov eax, DWORD PTR [r14 + r13 + 8]
+ mov eax, DWORD PTR [r14 + r13 + 5]
cvtsi2sd xmm1, eax
ucomisd xmm0, xmm1
jp .Lasm_JumpLessThanEqualsLoopRhsInt32.ssa_block_3
@@ -19862,9 +19902,9 @@ asm_handler_JumpGreaterThanLoopRhsInt32_cold:
and ax, 32760
cmp ax, 32760
jne .Lasm_JumpGreaterThanLoopRhsInt32.ssa_block_15
- mov edx, DWORD PTR [r14 + r13 + 8]
- mov esi, DWORD PTR [r14 + r13 + 12]
- mov edi, DWORD PTR [r14 + r13 + 16]
+ mov edx, DWORD PTR [r14 + r13 + 5]
+ mov esi, DWORD PTR [r14 + r13 + 9]
+ mov edi, DWORD PTR [r14 + r13 + 13]
movabs r11, 9221683186994511872
or rdx, r11
mov DWORD PTR [rbx + -64], r13d
@@ -19894,7 +19934,7 @@ asm_handler_JumpGreaterThanLoopRhsInt32_cold:
jmp [r12 + rax * 8]
.Lasm_JumpGreaterThanLoopRhsInt32.ssa_block_15:
movq xmm0, rcx
- mov eax, DWORD PTR [r14 + r13 + 8]
+ mov eax, DWORD PTR [r14 + r13 + 5]
cvtsi2sd xmm1, eax
ucomisd xmm0, xmm1
jp .Lasm_JumpGreaterThanLoopRhsInt32.ssa_block_3
@@ -19907,9 +19947,9 @@ asm_handler_JumpGreaterThanEqualsLoopRhsInt32_cold:
and ax, 32760
cmp ax, 32760
jne .Lasm_JumpGreaterThanEqualsLoopRhsInt32.ssa_block_15
- mov edx, DWORD PTR [r14 + r13 + 8]
- mov esi, DWORD PTR [r14 + r13 + 12]
- mov edi, DWORD PTR [r14 + r13 + 16]
+ mov edx, DWORD PTR [r14 + r13 + 5]
+ mov esi, DWORD PTR [r14 + r13 + 9]
+ mov edi, DWORD PTR [r14 + r13 + 13]
movabs r11, 9221683186994511872
or rdx, r11
mov DWORD PTR [rbx + -64], r13d
@@ -19939,7 +19979,7 @@ asm_handler_JumpGreaterThanEqualsLoopRhsInt32_cold:
jmp [r12 + rax * 8]
.Lasm_JumpGreaterThanEqualsLoopRhsInt32.ssa_block_15:
movq xmm0, rcx
- mov eax, DWORD PTR [r14 + r13 + 8]
+ mov eax, DWORD PTR [r14 + r13 + 5]
cvtsi2sd xmm1, eax
ucomisd xmm0, xmm1
jp .Lasm_JumpGreaterThanEqualsLoopRhsInt32.ssa_block_3
@@ -19972,8 +20012,8 @@ asm_handler_JumpStrictlyEqualsLoopRhsInt32_cold:
cmp r11w, 65530
je .Lasm_JumpStrictlyEqualsLoopRhsInt32.ssa_block_34
.Lasm_JumpStrictlyEqualsLoopRhsInt32.ssa_block_1:
- mov esi, DWORD PTR [r14 + r13 + 12]
- mov edi, DWORD PTR [r14 + r13 + 16]
+ mov esi, DWORD PTR [r14 + r13 + 9]
+ mov edi, DWORD PTR [r14 + r13 + 13]
mov DWORD PTR [rbx + -64], r13d
mov r8, rsi
mov r9, rdi
@@ -20033,8 +20073,8 @@ asm_handler_JumpStrictlyInequalsLoopRhsInt32_cold:
cmp r11w, 65530
je .Lasm_JumpStrictlyInequalsLoopRhsInt32.ssa_block_34
.Lasm_JumpStrictlyInequalsLoopRhsInt32.ssa_block_1:
- mov esi, DWORD PTR [r14 + r13 + 12]
- mov edi, DWORD PTR [r14 + r13 + 16]
+ mov esi, DWORD PTR [r14 + r13 + 9]
+ mov edi, DWORD PTR [r14 + r13 + 13]
mov DWORD PTR [rbx + -64], r13d
mov r8, rsi
mov r9, rdi
@@ -20094,8 +20134,8 @@ asm_handler_JumpLooselyEqualsLoopRhsInt32_cold:
cmp r11w, 65530
je .Lasm_JumpLooselyEqualsLoopRhsInt32.ssa_block_36
.Lasm_JumpLooselyEqualsLoopRhsInt32.ssa_block_1:
- mov esi, DWORD PTR [r14 + r13 + 12]
- mov edi, DWORD PTR [r14 + r13 + 16]
+ mov esi, DWORD PTR [r14 + r13 + 9]
+ mov edi, DWORD PTR [r14 + r13 + 13]
mov DWORD PTR [rbx + -64], r13d
mov r8, rsi
mov r9, rdi
@@ -20155,8 +20195,8 @@ asm_handler_JumpLooselyInequalsLoopRhsInt32_cold:
cmp r11w, 65530
je .Lasm_JumpLooselyInequalsLoopRhsInt32.ssa_block_36
.Lasm_JumpLooselyInequalsLoopRhsInt32.ssa_block_1:
- mov esi, DWORD PTR [r14 + r13 + 12]
- mov edi, DWORD PTR [r14 + r13 + 16]
+ mov esi, DWORD PTR [r14 + r13 + 9]
+ mov edi, DWORD PTR [r14 + r13 + 13]
mov DWORD PTR [rbx + -64], r13d
mov r8, rsi
mov r9, rdi
@@ -20366,7 +20406,7 @@ asm_assertion_failure_traps:
ud2
.Lasm_GetById.assert_failure_1:
ud2
-.Lasm_GetById.assert_predicate_failure_338:
+.Lasm_GetById.assert_predicate_failure_337:
ud2
.Lasm_GetById.assert_failure_2:
ud2
@@ -20396,9 +20436,9 @@ asm_assertion_failure_traps:
ud2
.Lasm_GetById.assert_failure_10:
ud2
-.Lasm_GetById.assert_predicate_failure_268:
+.Lasm_GetById.assert_predicate_failure_267:
ud2
-.Lasm_GetById.assert_predicate_failure_277:
+.Lasm_GetById.assert_predicate_failure_276:
ud2
.Lasm_GetById.assert_predicate_failure_26:
ud2
@@ -20502,29 +20542,29 @@ asm_assertion_failure_traps:
ud2
.Lasm_Call.assert_failure_3:
ud2
-.Lasm_Call.assert_predicate_failure_353:
+.Lasm_Call.assert_predicate_failure_357:
ud2
-.Lasm_Call.assert_predicate_failure_359:
+.Lasm_Call.assert_predicate_failure_363:
ud2
.Lasm_Call.assert_failure_4:
ud2
.Lasm_Call.assert_failure_5:
ud2
-.Lasm_Call.assert_predicate_failure_374:
+.Lasm_Call.assert_predicate_failure_378:
ud2
.Lasm_Call.assert_failure_6:
ud2
.Lasm_Call.assert_failure_7:
ud2
-.Lasm_Call.assert_predicate_failure_400:
+.Lasm_Call.assert_predicate_failure_404:
ud2
.Lasm_Call.assert_failure_8:
ud2
.Lasm_Call.assert_failure_9:
ud2
-.Lasm_Call.assert_predicate_failure_266:
+.Lasm_Call.assert_predicate_failure_268:
ud2
-.Lasm_Call.assert_predicate_failure_289:
+.Lasm_Call.assert_predicate_failure_292:
ud2
.Lasm_Call.assert_failure_10:
ud2
@@ -20548,13 +20588,13 @@ asm_assertion_failure_traps:
ud2
.Lasm_Call.assert_failure_16:
ud2
-.Lasm_Call.assert_predicate_failure_324:
+.Lasm_Call.assert_predicate_failure_328:
ud2
.Lasm_Call.assert_failure_17:
ud2
-.Lasm_Call.assert_predicate_failure_331:
+.Lasm_Call.assert_predicate_failure_335:
ud2
-.Lasm_Call.assert_predicate_failure_337:
+.Lasm_Call.assert_predicate_failure_341:
ud2
.Lasm_Call.assert_predicate_failure_11:
ud2
@@ -20562,9 +20602,9 @@ asm_assertion_failure_traps:
ud2
.Lasm_Call.assert_failure_30:
ud2
-.Lasm_Call.assert_predicate_failure_142:
+.Lasm_Call.assert_predicate_failure_143:
ud2
-.Lasm_Call.assert_predicate_failure_148:
+.Lasm_Call.assert_predicate_failure_149:
ud2
.Lasm_Call.assert_failure_31:
ud2
diff --git a/Libraries/LibJS/Interpreter/interpreter.flap b/Libraries/LibJS/Interpreter/interpreter.flap
index e45c95801c7..4f50763b20d 100644
--- a/Libraries/LibJS/Interpreter/interpreter.flap
+++ b/Libraries/LibJS/Interpreter/interpreter.flap
@@ -15,10 +15,10 @@ inline fn call_site_info(
length: u32,
dst: out Operand
) -> (u32, u32, u32) {
- let [instruction_length, destination_index] = load_pair32(
- [pb, pc, length],
- [pb, pc, dst]
- );
+ let mut instruction_length: u32;
+ load32(instruction_length, [pb, pc, length]);
+ let mut destination_index: u32;
+ load16(destination_index, [pb, pc, dst]);
let current_pc: u32 = pc;
let return_pc: u32 = current_pc + instruction_length;
(current_pc, return_pc, destination_index)
@@ -111,7 +111,10 @@ inline fn load_direct_getter_value(
}
inline fn move_operand(dst: out Operand, src: in Operand) {
- let [dst_index, src_index] = load_pair32([pb, pc, dst], [pb, pc, src]);
+ let mut dst_index: u32;
+ load16(dst_index, [pb, pc, dst]);
+ let mut src_index: u32;
+ load16(src_index, [pb, pc, src]);
values[dst_index] = values[src_index];
}
@@ -3249,10 +3252,8 @@ handler GetById(
native_frame.returns_to_native_caller = false;
native_frame.runs_jit_code = false;
let native_pc: u32 = pc;
- let [destination_offset, _] = load_pair32(
- [pb, pc, dst],
- [pb, pc, base]
- );
+ let mut destination_offset: u32;
+ load16(destination_offset, [pb, pc, dst]);
exec_ctx.program_counter = native_pc;
native_frame.caller_frame = exec_ctx;
# The exception helper only needs a PC within the current instruction.
@@ -3964,7 +3965,7 @@ handler Call(
let argument_operand_indices = &arguments;
let mut argument_index: u32 = 0;
while argument_index < actual_argument_count {
- frame_values[write_index] = caller_values[argument_operand_indices[argument_index]];
+ frame_values[write_index] = caller_values[u32(argument_operand_indices[argument_index])];
argument_index = argument_index + 1;
write_index = write_index + 1;
}
@@ -4062,7 +4063,7 @@ handler Call(
let native_frame_values = native_frame.slots;
let mut argument_index: u32 = 0;
while argument_index < actual_argument_count {
- native_frame_values[argument_index] = native_caller_values[native_argument_operand_indices[argument_index]];
+ native_frame_values[argument_index] = native_caller_values[u32(native_argument_operand_indices[argument_index])];
argument_index = argument_index + 1;
}
let native_running_vm = current_vm();
diff --git a/Libraries/LibJS/JIT/Rust/build.rs b/Libraries/LibJS/JIT/Rust/build.rs
index ea42e097242..8409f30f835 100644
--- a/Libraries/LibJS/JIT/Rust/build.rs
+++ b/Libraries/LibJS/JIT/Rust/build.rs
@@ -419,7 +419,7 @@ fn generate_rust_code(mut w: impl Write, ops: &[InstructionDefinition], record_f
generate_encoded_size_method(&mut w, ops)?;
writeln!(
w,
- " pub fn encode(&self, strict: bool, bytes: &mut Vec<u8>) {{ self.encode_with(strict, &mut TestEncoder {{ bytes }}); }}"
+ " pub fn encode(&self, bytes: &mut Vec<u8>) {{ self.encode_with(&mut TestEncoder {{ bytes }}); }}"
)?;
writeln!(w, "}}")?;
writeln!(w)?;
diff --git a/Libraries/LibJS/JIT/Rust/src/builder/slow_paths.rs b/Libraries/LibJS/JIT/Rust/src/builder/slow_paths.rs
index 8df5f66d4df..030108a4dab 100644
--- a/Libraries/LibJS/JIT/Rust/src/builder/slow_paths.rs
+++ b/Libraries/LibJS/JIT/Rust/src/builder/slow_paths.rs
@@ -68,23 +68,29 @@ impl GraphBuilder<'_> {
.instruction
.opcode();
let layout = slow_path_layout(opcode);
- let read_u32 = |offset: u32| -> Result<u32, CompileFailure> {
+ let bytes_at = |offset: u32, size: usize| -> Result<&[u8], CompileFailure> {
let at = (self.function.pc + offset) as usize;
- let bytes = self
- .function
+ self.function
.executable
.bytecode
- .get(at..at + 4)
+ .get(at..at + size)
.ok_or(CompileFailure::InvalidBytecode {
pc: self.function.pc,
reason: "operand field outside the bytecode",
- })?;
- Ok(u32::from_ne_bytes(bytes.try_into().expect("four bytes")))
+ })
+ };
+ let read_operand = |offset: u32| -> Result<u32, CompileFailure> {
+ let raw = u16::from_ne_bytes(bytes_at(offset, 2)?.try_into().expect("two bytes"));
+ Ok(if raw == u16::MAX {
+ Operand::INVALID
+ } else {
+ u32::from(raw)
+ })
};
let mut inputs = Vec::new();
let mut outputs = Vec::new();
for (index, field) in layout.fields.iter().enumerate() {
- let operand = read_u32(field.instruction_offset)?;
+ let operand = read_operand(field.instruction_offset)?;
if field.role != OperandRole::Out {
inputs.push(operand);
}
@@ -93,8 +99,9 @@ impl GraphBuilder<'_> {
}
}
if let Some(array) = layout.array {
- for element in 0..read_u32(array.count_offset)? {
- inputs.push(read_u32(array.instruction_offset + 4 * element)?);
+ let count = u32::from_ne_bytes(bytes_at(array.count_offset, 4)?.try_into().expect("four bytes"));
+ for element in 0..count {
+ inputs.push(read_operand(array.instruction_offset + 2 * element)?);
}
}
Ok(SlowPathOperands { inputs, outputs })
diff --git a/Libraries/LibJS/JIT/Rust/src/builder/tests.rs b/Libraries/LibJS/JIT/Rust/src/builder/tests.rs
index ee7fe013cb5..88dfc96045b 100644
--- a/Libraries/LibJS/JIT/Rust/src/builder/tests.rs
+++ b/Libraries/LibJS/JIT/Rust/src/builder/tests.rs
@@ -221,11 +221,11 @@ fn straight_line_code_renames_moves_and_passes_values_to_slow_paths() {
[[B1]] (pc 0) <- [[B0]]:
[[V5]] = LoadSlot a0
InitializeFrame
- [[V6]] = CallSlowPath Exp @40 (#10, [[V5]]) [[[FS0]]]
+ [[V6]] = CallSlowPath Exp @11 (#10, [[V5]]) [[[FS0]]]
[[V7]] = EmptyToUndefined ([[V6]])
Return ([[V7]])
frame states:
- [[FS0]]: pc 40 after -> r7 {} frame [r7]
+ [[FS0]]: pc 11 after -> r7 {} frame [r7]
",
);
}
@@ -272,17 +272,17 @@ fn if_else_merges_with_phis() {
Jump [[B8]]
[[B6]] <- [[B4]]:
Jump [[B7]]
- [[B7]] (pc 56) <- [[B3]], [[B6]]:
+ [[B7]] (pc 26) <- [[B3]], [[B6]]:
Jump [[B9]]
- [[B8]] (pc 32) <- [[B2]], [[B5]]:
+ [[B8]] (pc 16) <- [[B2]], [[B5]]:
Jump [[B9]]
- [[B9]] (pc 72) <- [[B7]], [[B8]]:
+ [[B9]] (pc 31) <- [[B7]], [[B8]]:
[[V14]] = Phi (#10, #0)
- [[V15]] = CallSlowPath Exp @72 ([[V14]], [[V1]]) [[[FS0]]]
+ [[V15]] = CallSlowPath Exp @31 ([[V14]], [[V1]]) [[[FS0]]]
[[V16]] = EmptyToUndefined ([[V15]])
Return ([[V16]])
frame states:
- [[FS0]]: pc 72 after -> r6 {} frame [r6]
+ [[FS0]]: pc 31 after -> r6 {} frame [r6]
",
);
}
@@ -307,12 +307,12 @@ fn writes_to_constant_operands_go_to_the_frame() {
[[V1]] = LoadSlot a0
StoreSlot c0 ([[V1]])
[[V3]] = LoadSlot c0
- CallSlowPath ToString @16 ([[V3]]) [[[FS0]]]
+ CallSlowPath ToString @5 ([[V3]]) [[[FS0]]]
[[V5]] = LoadSlot c1
[[V6]] = EmptyToUndefined ([[V5]])
Return ([[V6]])
frame states:
- [[FS0]]: pc 16 after -> c1 {}
+ [[FS0]]: pc 5 after -> c1 {}
",
);
}
@@ -451,38 +451,38 @@ fn nested_loops_get_phis_for_slots_slow_paths_assign() {
[[B1]] (pc 0) <- [[B0]]:
[[V7]] = LoadSlot a0
Jump [[B2]]
- [[B2]] (pc 24) <- [[B1]], [[B10]] loop:
+ [[B2]] (pc 6) <- [[B1]], [[B10]] loop:
[[V6]] = Phi (#0, [[V20]])
EnsureFrameInitialized
- [[V8]]:int32 = CallSlowPath JumpLessThan @24 ([[V6]], [[V7]]) [[[FS0]]]
- BranchOnPc @48 ([[V8]]) -> [[B3]], [[B4]]
+ [[V8]]:int32 = CallSlowPath JumpLessThan @6 ([[V6]], [[V7]]) [[[FS0]]]
+ BranchOnPc @21 ([[V8]]) -> [[B3]], [[B4]]
[[B3]] <- [[B2]]:
Jump [[B6]]
[[B4]] <- [[B2]]:
Jump [[B5]]
- [[B5]] (pc 136) <- [[B4]]:
+ [[B5]] (pc 69) <- [[B4]]:
Return ([[V6]])
- [[B6]] (pc 48) <- [[B3]]:
+ [[B6]] (pc 21) <- [[B3]]:
Jump [[B7]]
- [[B7]] (pc 64) <- [[B6]], [[B11]] loop:
+ [[B7]] (pc 26) <- [[B6]], [[B11]] loop:
[[V14]] = Phi (#0, [[V22]])
- [[V15]]:int32 = CallSlowPath JumpLessThan @64 ([[V14]], [[V7]]) [[[FS1]]]
- BranchOnPc @88 ([[V15]]) -> [[B8]], [[B9]]
+ [[V15]]:int32 = CallSlowPath JumpLessThan @26 ([[V14]], [[V7]]) [[[FS1]]]
+ BranchOnPc @41 ([[V15]]) -> [[B8]], [[B9]]
[[B8]] <- [[B7]]:
Jump [[B11]]
[[B9]] <- [[B7]]:
Jump [[B10]]
- [[B10]] (pc 112) <- [[B9]]:
- [[V20]] = CallSlowPath Exp @112 ([[V6]], #10) [[[FS2]]]
+ [[B10]] (pc 55) <- [[B9]]:
+ [[V20]] = CallSlowPath Exp @55 ([[V6]], #10) [[[FS2]]]
Jump [[B2]]
- [[B11]] (pc 88) <- [[B8]]:
- [[V22]] = CallSlowPath Exp @88 ([[V14]], #10) [[[FS3]]]
+ [[B11]] (pc 41) <- [[B8]]:
+ [[V22]] = CallSlowPath Exp @41 ([[V14]], #10) [[[FS3]]]
Jump [[B7]]
frame states:
- [[FS0]]: pc 24 after {r5=[[V6]]} frame [a0]
- [[FS1]]: pc 64 after {r5=[[V6]], r6=[[V14]]} frame [a0]
- [[FS2]]: pc 112 after -> r5 {r5=[[V6]]} frame [a0]
- [[FS3]]: pc 88 after -> r6 {r5=[[V6]], r6=[[V14]]} frame [a0]
+ [[FS0]]: pc 6 after {r5=[[V6]]} frame [a0]
+ [[FS1]]: pc 26 after {r5=[[V6]], r6=[[V14]]} frame [a0]
+ [[FS2]]: pc 55 after -> r5 {r5=[[V6]]} frame [a0]
+ [[FS3]]: pc 41 after -> r6 {r5=[[V6]], r6=[[V14]]} frame [a0]
",
);
}
@@ -527,9 +527,9 @@ fn truthiness_values_and_tag_branches() {
Jump [[B11]]
[[B9]] <- [[B7]]:
Jump [[B10]]
- [[B10]] (pc 40) <- [[B9]]:
+ [[B10]] (pc 19) <- [[B9]]:
Return ([[V1]])
- [[B11]] (pc 32) <- [[B8]]:
+ [[B11]] (pc 16) <- [[B8]]:
Return ([[V11]])
",
);
@@ -612,7 +612,7 @@ fn numeric_feedback_and_failed_speculations_use_double_arithmetic() {
);
assert!(!text.contains("CallSlowPath"), "{text}");
// An overflow at the addition: it adds doubles.
- let text = counting_loop(1, vec![(48, ExitKind::Overflow)]);
+ let text = counting_loop(1, vec![(21, ExitKind::Overflow)]);
assert!(text.contains("Int32LessThan"), "{text}");
assert!(text.contains("Float64Add") && !text.contains("Int32Add"), "{text}");
}
@@ -706,7 +706,7 @@ fn instructions_that_never_ran_exit_with_the_live_values() {
[[V2]] = LoadSlot a0
Exit NoFeedback [[[FS0]]]
frame states:
- [[FS0]]: pc 32 at {r5=#10, r6=[[V2]]}
+ [[FS0]]: pc 10 at {r5=#10, r6=[[V2]]}
",
);
}
@@ -738,10 +738,10 @@ fn calls_write_back_their_arguments_and_values_survive_them() {
[[B1]] (pc 0) <- [[B0]]:
[[V1]] = LoadSlot a0
[[V2]] = LoadSlot r5
- [[V3]] = CallSlowPath Call @16 ([[V2]], [[V2]], [[V1]]) [[[FS0]]]
+ [[V3]] = CallSlowPath Call @5 ([[V2]], [[V2]], [[V1]]) [[[FS0]]]
Return ([[V1]])
frame states:
- [[FS0]]: pc 16 after -> r7 {r6=[[V1]]} frame [r7]
+ [[FS0]]: pc 5 after -> r7 {r6=[[V1]]} frame [r7]
",
);
}
@@ -774,10 +774,10 @@ fn trivial_frame_operations_are_native() {
[[V5]] = IsCallable ([[V2]])
[[V6]]:pointer = SetLexicalEnvironment ([[V2]])
LeavePrivateEnvironment
- CallSlowPath Throw @104 ([[V5]]) [[[FS0]]]
+ CallSlowPath Throw @33 ([[V5]]) [[[FS0]]]
Unreachable
frame states:
- [[FS0]]: pc 104 after {}
+ [[FS0]]: pc 33 after {}
",
);
}
@@ -898,7 +898,7 @@ pub(crate) mod property_access {
Return ([[V17]])
frame states:
[[FS0]]: pc 0 at {} frame [a0]
- [[FS1]]: pc 48 at {r5=[[V6]], r6=[[V6]]} frame [a0]
+ [[FS1]]: pc 26 at {r5=[[V6]], r6=[[V6]]} frame [a0]
",
);
}
@@ -941,7 +941,7 @@ pub(crate) mod property_access {
Return ([[V19]])
frame states:
[[FS0]]: pc 0 at {} frame [a0]
- [[FS1]]: pc 24 at {r5=[[V6]]} frame [a0]
+ [[FS1]]: pc 13 at {r5=[[V6]]} frame [a0]
",
);
}
@@ -1351,7 +1351,7 @@ pub(crate) mod property_access {
(1 | (1 << 5) | (1 << 9), Vec::new()),
(
1 | (1 << 5),
- vec![(0, ExitKind::BadElements), (32, ExitKind::OutOfBounds)],
+ vec![(0, ExitKind::BadElements), (15, ExitKind::OutOfBounds)],
),
] {
let text = dump_element_loads(bits, exit_sites);
@@ -1554,15 +1554,15 @@ pub(crate) mod property_access {
CheckShape [0x100] ([[V1]], [[V4]]) [[[FS0]]]
StoreNamed +2 ([[V1]], #10, [[V4]]) [[[FS0]]]
[[V13]] = LoadSlot l1
- [[V14]] = CallSlowPath Exp @56 ([[V13]], #10) [[[FS1]]]
+ [[V14]] = CallSlowPath Exp @28 ([[V13]], #10) [[[FS1]]]
CheckShape [0x100] ([[V1]], [[V4]]) [[[FS2]]]
[[V19]] = LoadNamed +2 ([[V1]], [[V4]]) [[[FS2]]]
[[V20]] = EmptyToUndefined ([[V19]])
Return ([[V20]])
frame states:
[[FS0]]: pc 0 at {} frame [l1, a0]
- [[FS1]]: pc 56 after -> l1 {r5=#10} frame [a0]
- [[FS2]]: pc 72 at {r5=#10} frame [a0]
+ [[FS1]]: pc 28 after -> l1 {r5=#10} frame [a0]
+ [[FS2]]: pc 37 at {r5=#10} frame [a0]
",
);
}
@@ -1840,7 +1840,7 @@ pub(crate) mod inlining {
[[B3]] <- [[B2]]:
Return (#10)
frame states:
- [[FS0]]: pc 8 at {} frame [a0]
+ [[FS0]]: pc 1 at {} frame [a0]
",
);
}
@@ -1871,15 +1871,15 @@ pub(crate) mod inlining {
Jump [[B2]]
[[B2]] (pc 0) <- [[B1]]:
PublishFrame
- [[V9]] = CallSlowPath Exp @e1:8 (#10, #10) [[[FS2]]]
+ [[V9]] = CallSlowPath Exp @e1:1 (#10, #10) [[[FS2]]]
[[V10]] = EmptyToUndefined ([[V9]])
Jump [[B3]]
[[B3]] <- [[B2]]:
Return ([[V10]])
frame states:
- [[FS0]]: pc 8 at {} frame [a0]
- [[FS1]]: pc 8 after -> r5 {}
- [[FS2]]: e1 pc 8 after -> r5 {r0=#empty, r2=#empty, r3=#empty, r4=#empty, r5=#empty} in [[FS1]]
+ [[FS0]]: pc 1 at {} frame [a0]
+ [[FS1]]: pc 1 after -> r5 {}
+ [[FS2]]: e1 pc 1 after -> r5 {r0=#empty, r2=#empty, r3=#empty, r4=#empty, r5=#empty} in [[FS1]]
",
);
@@ -1893,7 +1893,7 @@ pub(crate) mod inlining {
]
});
let text = dump_inlined(&caller(), &resolves_this, function(true, false));
- assert!(text.contains("CallSlowPath ResolveThisBinding @e1:8 [fs2]"), "{text}");
+ assert!(text.contains("CallSlowPath ResolveThisBinding @e1:1 [fs2]"), "{text}");
assert!(!text.contains("Generic"), "{text}");
}
@@ -1953,7 +1953,7 @@ pub(crate) mod inlining {
[[B3]] <- [[B2]], [[B7]]:
[[V15]] = Phi ([[V9]], [[V12]])
EnsureFrameInitialized
- [[V16]] = CallSlowPath Add @48 ([[V6]], [[V15]]) [[[FS1]]]
+ [[V16]] = CallSlowPath Add @25 ([[V6]], [[V15]]) [[[FS1]]]
BranchBindingMutable 2 ([[V5]]) -> [[B4]], [[B8]]
[[B4]] <- [[B3]]:
[[V20]] = LoadEnvironmentBinding 2 ([[V5]])
@@ -1965,19 +1965,19 @@ pub(crate) mod inlining {
[[V29]] = EmptyToUndefined ([[V16]])
Return ([[V29]])
[[B7]] <- [[B1]] cold:
- [[V12]] = CallSlowPath GetGlobal @32 [[[FS0]]]
+ [[V12]] = CallSlowPath GetGlobal @16 [[[FS0]]]
Jump [[B3]]
[[B8]] <- [[B3]] cold:
Jump [[B10]]
[[B9]] <- [[B4]] cold:
Jump [[B10]]
[[B10]] <- [[B8]], [[B9]] cold:
- CallSlowPath SetLexicalBinding @64 ([[V16]]) [[[FS2]]]
+ CallSlowPath SetLexicalBinding @34 ([[V16]]) [[[FS2]]]
Jump [[B6]]
frame states:
- [[FS0]]: pc 32 at {r5=[[V6]]}
- [[FS1]]: pc 48 after -> r7 {} frame [r7]
- [[FS2]]: pc 64 at {r7=[[V16]]}
+ [[FS0]]: pc 16 at {r5=[[V6]]}
+ [[FS1]]: pc 25 after -> r7 {} frame [r7]
+ [[FS2]]: pc 34 at {r7=[[V16]]}
",
);
// Inlined callees have constant ones: those of their function.
@@ -2000,7 +2000,7 @@ pub(crate) mod inlining {
[[B4]] <- [[B3]], [[B9]]:
[[V20]] = Phi ([[V14]], [[V17]])
PublishFrame
- [[V21]] = CallSlowPath Add @e1:48 ([[V11]], [[V20]]) [[[FS3]]]
+ [[V21]] = CallSlowPath Add @e1:25 ([[V11]], [[V20]]) [[[FS3]]]
BranchBindingMutable 2 ([[V10]]) -> [[B5]], [[B10]]
[[B5]] <- [[B4]]:
[[V25]] = LoadEnvironmentBinding 2 ([[V10]])
@@ -2015,21 +2015,21 @@ pub(crate) mod inlining {
Return ([[V34]])
[[B9]] <- [[B2]] cold:
PublishFrame
- [[V17]] = CallSlowPath GetGlobal @e1:32 [[[FS2]]]
+ [[V17]] = CallSlowPath GetGlobal @e1:16 [[[FS2]]]
Jump [[B4]]
[[B10]] <- [[B4]] cold:
Jump [[B12]]
[[B11]] <- [[B5]] cold:
Jump [[B12]]
[[B12]] <- [[B10]], [[B11]] cold:
- CallSlowPath SetLexicalBinding @e1:64 ([[V21]]) [[[FS4]]]
+ CallSlowPath SetLexicalBinding @e1:34 ([[V21]]) [[[FS4]]]
Jump [[B7]]
frame states:
- [[FS0]]: pc 8 at {} frame [a0]
- [[FS1]]: pc 8 after -> r5 {}
- [[FS2]]: e1 pc 32 at {r0=#empty, r2=#empty, r3=#empty, r4=#empty, r5=[[V11]]} in [[FS1]]
- [[FS3]]: e1 pc 48 after -> r7 {r0=#empty, r2=#empty, r3=#empty, r4=#empty, r7=#empty} in [[FS1]]
- [[FS4]]: e1 pc 64 at {r0=#empty, r2=#empty, r3=#empty, r4=#empty, r7=[[V21]]} in [[FS1]]
+ [[FS0]]: pc 1 at {} frame [a0]
+ [[FS1]]: pc 1 after -> r5 {}
+ [[FS2]]: e1 pc 16 at {r0=#empty, r2=#empty, r3=#empty, r4=#empty, r5=[[V11]]} in [[FS1]]
+ [[FS3]]: e1 pc 25 after -> r7 {r0=#empty, r2=#empty, r3=#empty, r4=#empty, r7=#empty} in [[FS1]]
+ [[FS4]]: e1 pc 34 at {r0=#empty, r2=#empty, r3=#empty, r4=#empty, r7=[[V21]]} in [[FS1]]
",
);
}
@@ -2079,9 +2079,9 @@ pub(crate) mod inlining {
[[B2]] (pc 0) <- [[B1]]:
Exit NoFeedback [[[FS2]]]
frame states:
- [[FS0]]: pc 24 at {r6=#0} frame [a0]
- [[FS1]]: pc 24 after -> r5 {r6=#0}
- [[FS2]]: e1 pc 24 at {r0=#empty, r2=#empty, r3=#empty, r4=#empty, l0=#10} in [[FS1]]
+ [[FS0]]: pc 6 at {r6=#0} frame [a0]
+ [[FS1]]: pc 6 after -> r5 {r6=#0}
+ [[FS2]]: e1 pc 6 at {r0=#empty, r2=#empty, r3=#empty, r4=#empty, l0=#10} in [[FS1]]
",
);
}
@@ -2219,8 +2219,8 @@ pub(crate) mod inlining {
let mutual = dump(&optimized_graph(&snapshot), &test_layout());
assert_eq!(mutual.matches("CallSlowPath Call").count(), 1, "{mutual}");
assert!(mutual.contains("CallSlowPath Call @e2:"), "{mutual}");
- assert_eq!(mutual.matches("e1 pc 8 after").count(), 3, "{mutual}");
- assert_eq!(mutual.matches("e2 pc 8 after").count(), 3, "{mutual}");
+ assert_eq!(mutual.matches("e1 pc 1 after").count(), 3, "{mutual}");
+ assert_eq!(mutual.matches("e2 pc 1 after").count(), 3, "{mutual}");
// A callee too big to inline.
let big = assemble(|_| {
diff --git a/Libraries/LibJS/JIT/Rust/src/bytecode/instruction.rs b/Libraries/LibJS/JIT/Rust/src/bytecode/instruction.rs
index b949b886cd0..b44cee7fe75 100644
--- a/Libraries/LibJS/JIT/Rust/src/bytecode/instruction.rs
+++ b/Libraries/LibJS/JIT/Rust/src/bytecode/instruction.rs
@@ -171,7 +171,6 @@ pub struct DecodedInstruction {
pub pc: u32,
/// Encoded length in bytes; the next instruction starts at `pc + length`.
pub length: u32,
- pub strict: bool,
pub instruction: Instruction,
}
@@ -215,6 +214,14 @@ impl DecodedInstruction {
}
}
+#[cfg(test)]
+fn narrow_index(index: u32) -> u16 {
+ if index == u32::MAX {
+ return u16::MAX;
+ }
+ u16::try_from(index).expect("bytecode indices fit in 16 bits")
+}
+
fn read_u16(bytes: &[u8], at: usize) -> u16 {
u16::from_ne_bytes(bytes[at..at + 2].try_into().unwrap())
}
@@ -231,12 +238,10 @@ fn read_u64(bytes: &[u8], at: usize) -> u64 {
pub fn decode_instruction(bytes: &[u8], pc: u32) -> Result<DecodedInstruction, DecodeError> {
let error = |kind| DecodeError { pc, kind };
let at = pc as usize;
- // The two byte header holds the opcode and the strict mode flag.
- if at.checked_add(2).is_none_or(|header_end| header_end > bytes.len()) {
+ if at >= bytes.len() {
return Err(error(DecodeErrorKind::TruncatedInstruction));
}
let opcode = bytes[at];
- let strict = bytes[at + 1] != 0;
let length = instruction_length_from_bytes(opcode, bytes, at).map_err(error)?;
if length == 0 || at + length > bytes.len() {
return Err(error(DecodeErrorKind::TruncatedInstruction));
@@ -246,7 +251,6 @@ pub fn decode_instruction(bytes: &[u8], pc: u32) -> Result<DecodedInstruction, D
Ok(DecodedInstruction {
pc,
length: length_u32,
- strict,
instruction,
})
}
@@ -289,15 +293,13 @@ mod tests {
#[test]
fn decodes_hand_assembled_mov() {
- let mut bytes = vec![OpCode::Mov as u8, 1, 0, 0];
- bytes.extend(7u32.to_ne_bytes()); // dst
- bytes.extend(12u32.to_ne_bytes()); // src
- bytes.extend([0; 4]); // Padding to the 8 byte instruction alignment.
+ let mut bytes = vec![OpCode::Mov as u8];
+ bytes.extend(7u16.to_ne_bytes()); // dst
+ bytes.extend(12u16.to_ne_bytes()); // src
let decoded = decode_instruction(&bytes, 0).unwrap();
assert_eq!(decoded.pc, 0);
- assert_eq!(decoded.length, 16);
- assert!(decoded.strict);
+ assert_eq!(decoded.length, 5);
assert_eq!(
decoded.instruction,
Instruction::Mov {
@@ -317,17 +319,16 @@ mod tests {
#[test]
fn decodes_hand_assembled_jump_if() {
let mut bytes = vec![0; 16];
- let mut jump = vec![OpCode::JumpIf as u8, 0, 0, 0];
- jump.extend(5u32.to_ne_bytes()); // condition
+ let mut jump = vec![OpCode::JumpIf as u8];
+ jump.extend(5u16.to_ne_bytes()); // condition
jump.extend(32u32.to_ne_bytes()); // true_target
jump.extend(48u32.to_ne_bytes()); // false_target
bytes.extend(jump);
let decoded = decode_instruction(&bytes, 16).unwrap();
assert_eq!(decoded.pc, 16);
- assert_eq!(decoded.length, 16);
- assert_eq!(decoded.next_pc(), 32);
- assert!(!decoded.strict);
+ assert_eq!(decoded.length, 11);
+ assert_eq!(decoded.next_pc(), 27);
assert_eq!(
decoded.instruction,
Instruction::JumpIf {
@@ -359,8 +360,7 @@ mod tests {
arguments: vec![operand(8), operand(20), operand(21)],
};
let mut bytes = Vec::new();
- call.encode(true, &mut bytes);
- assert_eq!(bytes.len() % 8, 0);
+ call.encode(&mut bytes);
let decoded = decode_instruction(&bytes, 0).unwrap();
assert_eq!(decoded.length as usize, bytes.len());
@@ -437,17 +437,16 @@ mod tests {
},
];
let mut bytes = Vec::new();
- for (index, instruction) in instructions.iter().enumerate() {
- instruction.encode(index % 2 == 0, &mut bytes);
+ for instruction in &instructions {
+ instruction.encode(&mut bytes);
}
let decoded = decode_all(&bytes).unwrap();
assert_eq!(decoded.len(), instructions.len());
let mut pc = 0;
- for (index, (decoded, instruction)) in decoded.iter().zip(&instructions).enumerate() {
+ for (decoded, instruction) in decoded.iter().zip(&instructions) {
assert_eq!(&decoded.instruction, instruction);
assert_eq!(decoded.pc, pc);
- assert_eq!(decoded.strict, index % 2 == 0);
pc += u32::try_from(instruction.encoded_size()).unwrap();
}
@@ -486,8 +485,8 @@ mod tests {
dst: operand(5),
src: operand(6),
}
- .encode(false, &mut mov);
- assert_eq!(error(&mov[..8]), DecodeErrorKind::TruncatedInstruction);
+ .encode(&mut mov);
+ assert_eq!(error(&mov[..4]), DecodeErrorKind::TruncatedInstruction);
let mut call = Vec::new();
Instruction::Call {
@@ -500,23 +499,23 @@ mod tests {
expression_string: None,
arguments: vec![operand(8)],
}
- .encode(false, &mut call);
- // Call's layout: header, value and call feedback slots, m_length at 8, dst, callee, this_value,
- // argument_count at 24.
+ .encode(&mut call);
+ // Call's layout: header, value and call feedback slots, m_length at 5, dst, callee, this_value,
+ // argument_count at 15.
let mut short_length = call.clone();
- short_length[8..12].copy_from_slice(&4u32.to_ne_bytes());
+ short_length[5..9].copy_from_slice(&4u32.to_ne_bytes());
assert_eq!(error(&short_length), DecodeErrorKind::InvalidLength);
let mut too_many_arguments = call.clone();
- too_many_arguments[24..28].copy_from_slice(&100u32.to_ne_bytes());
+ too_many_arguments[15..19].copy_from_slice(&100u32.to_ne_bytes());
assert_eq!(error(&too_many_arguments), DecodeErrorKind::InvalidLength);
- assert_eq!(error(&call[..call.len() - 8]), DecodeErrorKind::TruncatedInstruction);
+ assert_eq!(error(&call[..call.len() - 2]), DecodeErrorKind::TruncatedInstruction);
let mut stream = mov.clone();
- stream.extend(&mov[..8]);
+ stream.extend(&mov[..4]);
assert_eq!(
decode_all(&stream).unwrap_err(),
DecodeError {
- pc: 16,
+ pc: 5,
kind: DecodeErrorKind::TruncatedInstruction
}
);
diff --git a/Libraries/LibJS/JIT/Rust/src/bytecode/mod.rs b/Libraries/LibJS/JIT/Rust/src/bytecode/mod.rs
index 4ebb77cb4bb..e719158da03 100644
--- a/Libraries/LibJS/JIT/Rust/src/bytecode/mod.rs
+++ b/Libraries/LibJS/JIT/Rust/src/bytecode/mod.rs
@@ -196,7 +196,7 @@ pub(crate) mod test_support {
let mut bytes = Vec::new();
for instruction in build(&|index| Label(offsets[index])) {
- instruction.encode(false, &mut bytes);
+ instruction.encode(&mut bytes);
}
assert_eq!(bytes.len(), offset as usize);
diff --git a/Libraries/LibJS/JIT/Rust/src/codegen/mod.rs b/Libraries/LibJS/JIT/Rust/src/codegen/mod.rs
index 633122eaec4..04fad64d12a 100644
--- a/Libraries/LibJS/JIT/Rust/src/codegen/mod.rs
+++ b/Libraries/LibJS/JIT/Rust/src/codegen/mod.rs
@@ -914,6 +914,25 @@ impl<M: PortableMacroAssembler> Codegen<'_, M> {
})
}
+ /// The operand at `offset` in the instruction at `pc` of executable `executable`, `Operand::INVALID` if absent.
+ fn read_operand(&self, executable: u32, pc: u32, offset: u32) -> Result<u32, CompileFailure> {
+ let at = (pc + offset) as usize;
+ let bytes =
+ self.executables[executable as usize]
+ .bytecode
+ .get(at..at + 2)
+ .ok_or(CompileFailure::InvalidBytecode {
+ pc,
+ reason: "operand field outside the bytecode",
+ })?;
+ let raw = u16::from_ne_bytes(bytes.try_into().expect("two bytes"));
+ Ok(if raw == u16::MAX {
+ crate::bytecode::Operand::INVALID
+ } else {
+ u32::from(raw)
+ })
+ }
+
/// The u32 at `offset` in the instruction at `pc` of executable `executable`.
fn read_u32(&self, executable: u32, pc: u32, offset: u32) -> Result<u32, CompileFailure> {
let at = (pc + offset) as usize;
@@ -2606,6 +2625,7 @@ impl<M: PortableMacroAssembler> Codegen<'_, M> {
self.masm.load_effective_address(arguments[2], &destination);
self.load_value(arguments[3], lhs)?;
self.load_value(arguments[4], rhs)?;
+ self.masm.move_imm32(arguments[5], next_pc - pc);
self.masm.move64(arguments[0], self.pinned.vm);
self.masm.move_imm32(arguments[1], pc);
self.masm.call_absolute(address);
@@ -2650,7 +2670,7 @@ impl<M: PortableMacroAssembler> Codegen<'_, M> {
} else {
let layout = slow_path_layout(opcode);
for field in layout.fields {
- let operand = self.read_u32(executable, pc, field.instruction_offset)?;
+ let operand = self.read_operand(executable, pc, field.instruction_offset)?;
if field.role != OperandRole::Out {
operands.push(operand);
}
@@ -2660,7 +2680,7 @@ impl<M: PortableMacroAssembler> Codegen<'_, M> {
}
if let Some(array) = layout.array {
for element in 0..self.read_u32(executable, pc, array.count_offset)? {
- operands.push(self.read_u32(executable, pc, array.instruction_offset + 4 * element)?);
+ operands.push(self.read_operand(executable, pc, array.instruction_offset + 2 * element)?);
}
}
}
@@ -2905,7 +2925,7 @@ impl<M: PortableMacroAssembler> Codegen<'_, M> {
let operands = layout
.fields
.iter()
- .map(|field| self.read_u32(executable, pc, field.instruction_offset))
+ .map(|field| self.read_operand(executable, pc, field.instruction_offset))
.collect::<Result<Vec<_>, _>>()?;
// Inputs passed by value: in the remaining argument registers, then on the stack.
@@ -2984,7 +3004,7 @@ impl<M: PortableMacroAssembler> Codegen<'_, M> {
let count = self.read_u32(executable, pc, array.count_offset)?;
let first_input = input_index(layout.fields.len());
for element in 0..count {
- let operand = self.read_u32(executable, pc, array.instruction_offset + 4 * element)?;
+ let operand = self.read_operand(executable, pc, array.instruction_offset + 2 * element)?;
load(self, scratch, operand, first_input + element as usize)?;
let index = layout.fields.len() as u32 + element;
let address = self.local_address(self.locals.record + 8 * index);
diff --git a/Libraries/LibJS/JIT/Rust/src/codegen/slow_path_calls.rs b/Libraries/LibJS/JIT/Rust/src/codegen/slow_path_calls.rs
index cd1435ac77f..832153e796b 100644
--- a/Libraries/LibJS/JIT/Rust/src/codegen/slow_path_calls.rs
+++ b/Libraries/LibJS/JIT/Rust/src/codegen/slow_path_calls.rs
@@ -212,7 +212,7 @@ impl<M: PortableMacroAssembler> Codegen<'_, M> {
if field.role == crate::bytecode::OperandRole::In {
continue;
}
- if self.read_u32(executable, pc, field.instruction_offset)? != crate::bytecode::Operand::INVALID {
+ if self.read_operand(executable, pc, field.instruction_offset)? != crate::bytecode::Operand::INVALID {
outputs.push(field_index as u32);
}
}
diff --git a/Libraries/LibJS/JIT/Rust/src/codegen/tests.rs b/Libraries/LibJS/JIT/Rust/src/codegen/tests.rs
index 6c07a5c2026..ee17fc26026 100644
--- a/Libraries/LibJS/JIT/Rust/src/codegen/tests.rs
+++ b/Libraries/LibJS/JIT/Rust/src/codegen/tests.rs
@@ -240,7 +240,11 @@ struct SlowPathResult {
}
#[jit_abi]
-extern "C" fn add_values(vm: *mut u64, pc: u32, dst: *mut u64, lhs: u64, rhs: u64) -> i64 {
+extern "C" fn add_values(vm: *mut u64, pc: u32, dst: *mut u64, lhs: u64, rhs: u64, length: u32) -> i64 {
+ let next_pc = decode_instruction(&test_state(vm).borrow().bytecodes[running_executable(vm)], pc)
+ .unwrap()
+ .next_pc();
+ assert_eq!(pc + length, next_pc);
let control = continuation_after(vm, pc);
if control >= 0 && control as u64 & CONTINUATION_BIT != 0 {
// SAFETY: Compiled code passes the address of a frame slot.
diff --git a/Libraries/LibJS/Rust/generate/ops.rs b/Libraries/LibJS/Rust/generate/ops.rs
index 851698fb813..6f53affdf3f 100644
--- a/Libraries/LibJS/Rust/generate/ops.rs
+++ b/Libraries/LibJS/Rust/generate/ops.rs
@@ -48,6 +48,7 @@ fn rust_type(ty: &str) -> String {
let info = field_type_info(ty);
match info.kind {
"bool" | "u8" | "u16" | "i32" | "u32" | "u64" => info.kind.to_string(),
+ "cache_index" => "u16".to_string(),
other => panic!("no Rust view for bytecode field type {ty} ({other})"),
}
}
@@ -64,7 +65,7 @@ pub fn generate(ops: &[InstructionDefinition], ops_with_values: &BTreeSet<String
}
let _ = writeln!(
out,
- "#[repr(C)]\npub struct {} {{\n pub header: InstructionHeader,",
+ "#[repr(C, packed)]\npub struct {} {{\n pub header: InstructionHeader,",
op.name
);
let mut assertions = String::new();
@@ -99,11 +100,19 @@ pub fn generate(ops: &[InstructionDefinition], ops_with_values: &BTreeSet<String
let count_field = field_name(&op.fields[array.count_field_index].name);
let name = field_name(&array_field.name);
let ty = rust_type(&array_field.ty);
- let _ = writeln!(
- out,
- "impl {op_name} {{\n /// The elements the instruction holds after its fixed fields, within the length it records.\n pub fn {name}(&self) -> &[{ty}] {{\n let count = self.{count_field} as usize;\n assert!(core::mem::offset_of!({op_name}, {name}) + count * size_of::<{ty}>() <= self.length() as usize);\n // SAFETY: The instruction is a view of bytecode that holds the length it records, which the elements are\n // within.\n unsafe {{ ak::slice_from_raw_parts(self.{name}.as_ptr(), count) }}\n }}\n}}",
- op_name = op.name
- );
+ let accessor = if ty == "Value" {
+ format!(
+ "impl {op_name} {{\n /// The elements the instruction holds after its fixed fields, within the length it records.\n pub fn {name}(&self) -> impl ExactSizeIterator<Item = Value> + '_ {{\n let count = self.{count_field} as usize;\n assert!(core::mem::offset_of!({op_name}, {name}) + count * size_of::<Value>() <= self.length() as usize);\n let elements = core::ptr::addr_of!(self.{name}).cast::<Value>();\n // SAFETY: The instruction is a view of bytecode that holds the length it records, which the elements are\n // within. They can be unaligned, so they are read as such.\n (0..count).map(move |index| unsafe {{ elements.add(index).read_unaligned() }})\n }}\n}}",
+ op_name = op.name
+ )
+ } else {
+ format!(
+ "impl {op_name} {{\n /// The elements the instruction holds after its fixed fields, within the length it records.\n pub fn {name}(&self) -> &[{ty}] {{\n let count = self.{count_field} as usize;\n assert!(core::mem::offset_of!({op_name}, {name}) + count * size_of::<{ty}>() <= self.length() as usize);\n // SAFETY: The instruction is a view of bytecode that holds the length it records, which the elements are\n // within. {ty} has an alignment of 1.\n unsafe {{ ak::slice_from_raw_parts(core::ptr::addr_of!(self.{name}).cast::<{ty}>(), count) }}\n }}\n}}",
+ op_name = op.name
+ )
+ };
+ out.push_str(&accessor);
+ out.push('\n');
}
match (op.layout.size, op.layout.m_length_offset) {
(Some(size), _) => {
diff --git a/Libraries/LibJS/Rust/generate/runtime_functions.rs b/Libraries/LibJS/Rust/generate/runtime_functions.rs
index 398e7d3ab04..68697711d90 100644
--- a/Libraries/LibJS/Rust/generate/runtime_functions.rs
+++ b/Libraries/LibJS/Rust/generate/runtime_functions.rs
@@ -149,6 +149,7 @@ impl EntryPointSignature {
("dst", "*mut Value"),
("lhs", "Value"),
("rhs", "Value"),
+ ("length", "u32"),
]),
Some("i64"),
),
@@ -258,11 +259,11 @@ pub fn generate(functions: &[RuntimeFunction], ops: &[InstructionDefinition]) ->
RuntimeFunctionKind::BinarySlowPath => {
let _ = writeln!(
methods,
- " fn {name}(_vm: &Vm, pc: u32, _dst: &Cell<Value>, _lhs: Value, _rhs: Value) -> SlowPathControl;"
+ " fn {name}(_vm: &Vm, pc: u32, _dst: &Cell<Value>, _lhs: Value, _rhs: Value, _length: u32) -> SlowPathControl;"
);
let _ = writeln!(
entry_points,
- " // SAFETY: The interpreter passes its VM and a live value slot.\n let (vm, dst) = unsafe {{ (&*vm, &*dst.cast::<Cell<Value>>()) }};\n <Runtime as RuntimeFunctions>::{name}(vm, pc, dst, lhs, rhs).0\n}}"
+ " // SAFETY: The interpreter passes its VM and a live value slot.\n let (vm, dst) = unsafe {{ (&*vm, &*dst.cast::<Cell<Value>>()) }};\n <Runtime as RuntimeFunctions>::{name}(vm, pc, dst, lhs, rhs, length).0\n}}"
);
}
RuntimeFunctionKind::JumpSlowPath => {
diff --git a/Libraries/LibJS/Rust/src/bytecode/codegen/constructs.rs b/Libraries/LibJS/Rust/src/bytecode/codegen/constructs.rs
index e9af413d296..b89be199a6f 100644
--- a/Libraries/LibJS/Rust/src/bytecode/codegen/constructs.rs
+++ b/Libraries/LibJS/Rust/src/bytecode/codegen/constructs.rs
@@ -236,7 +236,7 @@ impl Generator<'_> {
} else {
None
};
- let saved_strict = std::mem::replace(&mut self.strict, true);
+ let strict_code = self.begin_strict_code();
let first_temporary = self.next_temporary();
let dst = self.temporary();
let held = self.hold_registers();
@@ -362,7 +362,7 @@ impl Generator<'_> {
if let Some(private_environment) = private_environment {
self.leave_class_private_environment(private_environment);
}
- self.strict = saved_strict;
+ self.end_strict_code(strict_code);
self.release_held_registers(held);
self.push_value(dst, first_temporary);
Ok(())
diff --git a/Libraries/LibJS/Rust/src/bytecode/codegen/context.rs b/Libraries/LibJS/Rust/src/bytecode/codegen/context.rs
index b3afc439a45..5d0bcc1007d 100644
--- a/Libraries/LibJS/Rust/src/bytecode/codegen/context.rs
+++ b/Libraries/LibJS/Rust/src/bytecode/codegen/context.rs
@@ -27,6 +27,7 @@ use crate::bytecode::instruction::Instruction;
use crate::bytecode::instruction::OpCode;
use crate::bytecode::instruction::typed as op;
use crate::bytecode::instruction::typed::TypedInstruction;
+use crate::bytecode::operand::UNCACHED_SITE;
use crate::bytecode::operand::*;
use crate::bytecode::source_map::SourceOffset;
use crate::parser::EnclosingCode;
@@ -140,6 +141,17 @@ macro_rules! next_cache_method {
};
}
+macro_rules! next_shared_cache_method {
+ ($method:ident, $field:ident) => {
+ #[inline(always)]
+ pub(super) fn $method(&mut self) -> u32 {
+ let index = self.$field.min(UNCACHED_SITE);
+ self.$field = index + 1;
+ index
+ }
+ };
+}
+
macro_rules! next_feedback_slot_method {
($method:ident, $field:ident) => {
#[inline(always)]
@@ -408,11 +420,11 @@ impl<'t> Generator<'t> {
// --- Cache index allocation ---
- next_cache_method!(next_property_lookup_cache, next_property_lookup_cache);
- next_cache_method!(next_global_variable_cache, next_global_variable_cache);
- next_cache_method!(next_environment_coordinate_cache, next_environment_coordinate_cache);
+ next_shared_cache_method!(next_property_lookup_cache, next_property_lookup_cache);
+ next_shared_cache_method!(next_global_variable_cache, next_global_variable_cache);
+ next_shared_cache_method!(next_environment_coordinate_cache, next_environment_coordinate_cache);
next_cache_method!(next_template_object_cache, next_template_object_cache);
- next_cache_method!(next_object_shape_cache, next_object_shape_cache);
+ next_shared_cache_method!(next_object_shape_cache, next_object_shape_cache);
next_cache_method!(next_object_property_iterator_cache, next_object_property_iterator_cache);
next_cache_method!(next_environment_shape_cache, next_environment_shape_cache);
next_feedback_slot_method!(next_arith_feedback, next_arith_feedback);
diff --git a/Libraries/LibJS/Rust/src/bytecode/codegen/emitter.rs b/Libraries/LibJS/Rust/src/bytecode/codegen/emitter.rs
index 348deab349b..5d1752517e6 100644
--- a/Libraries/LibJS/Rust/src/bytecode/codegen/emitter.rs
+++ b/Libraries/LibJS/Rust/src/bytecode/codegen/emitter.rs
@@ -6,7 +6,7 @@
//! What the emission core writes instructions with, and what it leaves when it is done.
-use crate::bytecode::executable_data::ExceptionHandler;
+use crate::bytecode::executable_data::{ExceptionHandler, StrictRange};
use crate::bytecode::operand::Operand;
use crate::bytecode::operand::OperandType;
use crate::bytecode::source_map::SourceOffsetEntry;
@@ -16,6 +16,7 @@ use crate::u32_from_usize;
/// The result of assembling bytecode.
pub struct AssembledBytecode {
pub bytecode: BlockSlice<u8>,
+ pub strict_ranges: Box<[StrictRange]>,
pub source_map: BlockSlice<SourceOffsetEntry>,
pub exception_handlers: BlockSlice<ExceptionHandler>,
pub number_of_registers: u32,
@@ -31,11 +32,23 @@ pub(super) struct BlockPosition {
pub(super) offset: u32,
}
+/// How many bytes an operand takes in an instruction.
+pub(super) const OPERAND_SIZE: usize = 2;
+
+/// Where an operand that is not a register sits in a block, and what kind of operand it is.
+#[derive(Clone, Copy)]
+pub(super) struct OperandPosition {
+ pub(super) offset: u32,
+ pub(super) operand_type: OperandType,
+ /// The index among the operands of that type, which only a full operand can hold before the frame is laid out.
+ pub(super) index: u32,
+}
+
/// What the generated encoder writes an instruction with: the bytes of its block, and the notes for `finish()`.
pub struct BlockEncoder<'a> {
pub bytes: &'a mut Vec<u8>,
block: u32,
- operand_positions: &'a mut Vec<BlockPosition>,
+ operand_positions: &'a mut Vec<OperandPosition>,
label_positions: &'a mut Vec<BlockPosition>,
/// One past the highest argument that an instruction refers to so far.
number_of_arguments: &'a mut u32,
@@ -48,7 +61,7 @@ impl<'a> BlockEncoder<'a> {
#[inline(always)]
pub(super) fn for_stream(
bytes: &'a mut Vec<u8>,
- operand_positions: &'a mut Vec<BlockPosition>,
+ operand_positions: &'a mut Vec<OperandPosition>,
label_positions: &'a mut Vec<BlockPosition>,
number_of_arguments: &'a mut u32,
watched: Operand,
@@ -76,21 +89,23 @@ impl BlockEncoder<'_> {
self.watched = Operand::invalid();
self.watched_position = u32_from_usize(self.bytes.len() + offset);
}
+ assert!(operand.index() < u32::from(u16::MAX), "registers fit in an operand");
}
OperandType::Argument => {
*self.number_of_arguments = (*self.number_of_arguments).max(operand.index() + 1);
- self.note_operand(offset);
+ self.note_operand(offset, operand);
}
- OperandType::Local | OperandType::Constant => self.note_operand(offset),
+ OperandType::Local | OperandType::Constant => self.note_operand(offset, operand),
}
operand.raw()
}
#[inline(always)]
- fn note_operand(&mut self, offset: usize) {
- self.operand_positions.push(BlockPosition {
- block: self.block,
+ fn note_operand(&mut self, offset: usize, operand: Operand) {
+ self.operand_positions.push(OperandPosition {
offset: u32_from_usize(self.bytes.len() + offset),
+ operand_type: operand.operand_type(),
+ index: operand.index(),
});
}
diff --git a/Libraries/LibJS/Rust/src/bytecode/codegen/scope.rs b/Libraries/LibJS/Rust/src/bytecode/codegen/scope.rs
index 2e54f3f31ba..cd3157f2086 100644
--- a/Libraries/LibJS/Rust/src/bytecode/codegen/scope.rs
+++ b/Libraries/LibJS/Rust/src/bytecode/codegen/scope.rs
@@ -2039,6 +2039,7 @@ impl Generator<'_> {
let executable = ExecutableData {
bytecode: assembled.bytecode,
exception_handlers: assembled.exception_handlers,
+ strict_ranges: assembled.strict_ranges,
source_map: assembled.source_map,
number_of_registers: assembled.number_of_registers,
number_of_arguments: assembled.number_of_arguments,
diff --git a/Libraries/LibJS/Rust/src/bytecode/codegen/stream.rs b/Libraries/LibJS/Rust/src/bytecode/codegen/stream.rs
index 16270d633c9..1e50ab679f9 100644
--- a/Libraries/LibJS/Rust/src/bytecode/codegen/stream.rs
+++ b/Libraries/LibJS/Rust/src/bytecode/codegen/stream.rs
@@ -27,6 +27,7 @@ use crate::bytecode::constant_fold::try_constant_fold_binary;
use crate::bytecode::constant_fold::try_constant_fold_unary;
use crate::bytecode::executable_data::ConstantValue;
use crate::bytecode::executable_data::ExceptionHandler;
+use crate::bytecode::executable_data::StrictRange;
use crate::bytecode::instruction::Instruction;
use crate::bytecode::instruction::specialize_instruction;
use crate::bytecode::instruction::typed as op;
@@ -46,6 +47,8 @@ use super::emitter::AssembledBytecode;
use super::emitter::BlockEncoder;
use super::emitter::BlockPosition;
use super::emitter::FrameLayout;
+use super::emitter::OPERAND_SIZE;
+use super::emitter::OperandPosition;
use super::generators::DisposalKind;
use super::generators::emit_dispose_resources;
use super::generators::generate_await_of_value;
@@ -58,8 +61,52 @@ use super::registers::ScopedOperand;
const UNBOUND: u32 = u32::MAX;
-/// Where the destination of a binary operator is in its instruction, which all have the same layout up to there.
-const DESTINATION_OFFSET_OF_BINARY_OPERATOR: u32 = 4;
+/// Where a binary operator's instruction holds its destination. It is the first operand, behind the
+/// arithmetic feedback index of the operators that have one.
+fn destination_offset_of_binary_operator(operator: BinaryOp) -> u32 {
+ match operator {
+ BinaryOp::In | BinaryOp::InstanceOf => BINARY_OPERATOR_DESTINATION_OFFSET,
+ _ => ARITHMETIC_OPERATOR_DESTINATION_OFFSET,
+ }
+}
+
+const BINARY_OPERATOR_DESTINATION_OFFSET: u32 = 1;
+const ARITHMETIC_OPERATOR_DESTINATION_OFFSET: u32 = 3;
+
+#[cfg(not(test))]
+const _: () = {
+ use crate::bytecode::op as view;
+ use core::mem::offset_of;
+ assert!(offset_of!(view::In, dst) == BINARY_OPERATOR_DESTINATION_OFFSET as usize);
+ assert!(offset_of!(view::InstanceOf, dst) == BINARY_OPERATOR_DESTINATION_OFFSET as usize);
+ macro_rules! assert_arithmetic_destination {
+ ($($name:ident),*) => {
+ $(assert!(offset_of!(view::$name, dst) == ARITHMETIC_OPERATOR_DESTINATION_OFFSET as usize);)*
+ };
+ }
+ assert_arithmetic_destination!(
+ Add,
+ Sub,
+ Mul,
+ Div,
+ Mod,
+ Exp,
+ StrictlyEquals,
+ StrictlyInequals,
+ LooselyEquals,
+ LooselyInequals,
+ GreaterThan,
+ GreaterThanEquals,
+ LessThan,
+ LessThanEquals,
+ BitwiseAnd,
+ BitwiseOr,
+ BitwiseXor,
+ LeftShift,
+ RightShift,
+ UnsignedRightShift
+ );
+};
/// What an evaluated expression is, for whatever consumes it.
#[derive(Clone, Copy, PartialEq, Eq, Debug)]
@@ -154,6 +201,22 @@ struct LastComparison {
rhs: Operand,
}
+impl Segment {
+ /// The end of the segment was cut off, and what comes next must not count as part of a strict range.
+ fn clamp_last_strict_range(&mut self) {
+ let end_offset = u32_from_usize(self.bytes.len());
+ if let Some(range) = self.strict_ranges.last_mut() {
+ range.end_offset = range.end_offset.min(end_offset);
+ }
+ }
+}
+
+/// Where strict code began, and what the code around it is.
+pub(super) struct StrictCode {
+ was_strict: bool,
+ start_offset: u32,
+}
+
/// The destination of the instruction that was just emitted, in case it can write straight to where the value goes.
#[derive(Clone, Copy)]
struct LastDestination {
@@ -261,6 +324,7 @@ struct BodyStart {
offset: u32,
operand_positions: usize,
label_positions: usize,
+ strict_ranges: usize,
source_entries: usize,
labels: usize,
handler_changes: usize,
@@ -269,8 +333,10 @@ struct BodyStart {
#[derive(Default)]
pub(super) struct Segment {
bytes: Vec<u8>,
- operand_positions: Vec<BlockPosition>,
+ operand_positions: Vec<OperandPosition>,
label_positions: Vec<BlockPosition>,
+ /// Where a class body makes the code strict in a function that is not.
+ strict_ranges: Vec<StrictRange>,
/// (offset of the first instruction from there on, where in the source that came from)
source_entries: Vec<(u32, SourceOffset)>,
last_source_offset: Option<SourceOffset>,
@@ -281,6 +347,7 @@ impl Segment {
fn clear(&mut self) {
self.bytes.clear();
self.operand_positions.clear();
+ self.strict_ranges.clear();
self.label_positions.clear();
self.source_entries.clear();
self.last_source_offset = None;
@@ -479,6 +546,26 @@ impl Generator<'_> {
self.end_head();
}
+ /// A class body starts, which is strict code even in a function that is not.
+ pub(super) fn begin_strict_code(&mut self) -> StrictCode {
+ StrictCode {
+ was_strict: std::mem::replace(&mut self.strict, true),
+ start_offset: u32_from_usize(self.context.stream.current.bytes.len()),
+ }
+ }
+
+ pub(super) fn end_strict_code(&mut self, code: StrictCode) {
+ self.strict = code.was_strict;
+ let segment = &mut self.context.stream.current;
+ let end_offset = u32_from_usize(segment.bytes.len());
+ if !code.was_strict && code.start_offset != end_offset {
+ segment.strict_ranges.push(StrictRange {
+ start_offset: code.start_offset,
+ end_offset,
+ });
+ }
+ }
+
/// The code of the parameters ended here, and from now on `in_head()` is about what comes right after that.
pub(super) fn begin_body_head(&mut self) {
let stream = &mut self.context.stream;
@@ -486,6 +573,7 @@ impl Generator<'_> {
offset: u32_from_usize(stream.current.bytes.len()),
operand_positions: stream.current.operand_positions.len(),
label_positions: stream.current.label_positions.len(),
+ strict_ranges: stream.current.strict_ranges.len(),
source_entries: stream.current.source_entries.len(),
labels: stream.labels.len(),
handler_changes: stream.handler_changes.len(),
@@ -517,15 +605,23 @@ impl Generator<'_> {
for position in &mut current.label_positions[start.label_positions..] {
position.offset += size;
}
+ for range in &mut current.strict_ranges[start.strict_ranges..] {
+ *range = range.shifted(size);
+ }
for entry in &mut current.source_entries[start.source_entries..] {
entry.0 += size;
}
current
.operand_positions
- .extend(head.operand_positions.iter().map(|position| BlockPosition {
- block: 0,
+ .extend(head.operand_positions.iter().map(|position| OperandPosition {
offset: position.offset + start.offset,
+ operand_type: position.operand_type,
+ index: position.index,
}));
+ current.strict_ranges.splice(
+ start.strict_ranges..start.strict_ranges,
+ head.strict_ranges.iter().map(|range| range.shifted(start.offset)),
+ );
current.source_entries.splice(
start.source_entries..start.source_entries,
head.source_entries
@@ -559,8 +655,7 @@ impl Generator<'_> {
}
#[inline(always)]
- fn encode_into_stream(&mut self, encode: impl FnOnce(bool, &mut BlockEncoder<'_>), watched: Operand) -> u32 {
- let strict = self.strict;
+ fn encode_into_stream(&mut self, encode: impl FnOnce(&mut BlockEncoder<'_>), watched: Operand) -> u32 {
let context = &mut *self.context;
let stream = &mut context.stream;
let segment = &mut stream.current;
@@ -577,7 +672,7 @@ impl Generator<'_> {
&mut stream.number_of_arguments,
watched,
);
- encode(strict, &mut encoder);
+ encode(&mut encoder);
encoder.watched_position
}
@@ -595,7 +690,7 @@ impl Generator<'_> {
let position = if instruction.may_specialize() {
self.put_specialized(&instruction.to_instruction(), watched)
} else {
- self.encode_into_stream(|strict, encoder| instruction.encode(strict, encoder), watched)
+ self.encode_into_stream(|encoder| instruction.encode(encoder), watched)
};
if I::IS_TERMINATOR {
self.context.stream.current.dead = true;
@@ -607,10 +702,7 @@ impl Generator<'_> {
fn put_specialized(&mut self, instruction: &Instruction, watched: Operand) -> u32 {
let specialized = specialize_instruction(instruction, &self.context.constants.values);
let instruction = specialized.as_ref().unwrap_or(instruction);
- self.encode_into_stream(
- |strict, encoder| instruction.encode_into_block(strict, encoder),
- watched,
- )
+ self.encode_into_stream(|encoder| instruction.encode_into_block(encoder), watched)
}
/// Emits an instruction with a destination that the next thing to happen may redirect.
@@ -1165,16 +1257,18 @@ impl Generator<'_> {
// NB: A handler sees a local as it was if the instruction throws, so that it cannot write the local itself.
if let Some(last) = stream.last_destination
&& last.dst == value
+ && last.dst.is_register()
&& last.end as usize == stream.current.bytes.len()
&& (stream.handler.is_none() || dst.is_register())
{
let position = last.position as usize;
- stream.current.bytes[position..position + 4].copy_from_slice(&dst.raw().to_ne_bytes());
+ stream.current.bytes[position..position + OPERAND_SIZE].copy_from_slice(&(dst.raw() as u16).to_ne_bytes());
stream.last_destination = None;
if !dst.is_register() {
- stream.current.operand_positions.push(BlockPosition {
- block: 0,
+ stream.current.operand_positions.push(OperandPosition {
offset: last.position,
+ operand_type: dst.operand_type(),
+ index: dst.index(),
});
}
if dst.is_argument() {
@@ -1214,6 +1308,7 @@ impl Generator<'_> {
{
// NB: Nothing else knows about this jump, so that it is as if it never was.
segment.bytes.truncate(jump.start as usize);
+ segment.clamp_last_strict_range();
segment.label_positions.truncate(jump.label_position_count as usize);
segment.dead = false;
}
@@ -1262,6 +1357,7 @@ impl Generator<'_> {
return None;
}
stream.current.bytes.truncate(comparison.start as usize);
+ stream.current.clamp_last_strict_range();
stream
.current
.operand_positions
@@ -2166,7 +2262,7 @@ impl Generator<'_> {
// NB: Every operator writes its destination, and that is the first operand.
stream.last_destination = Some(LastDestination {
end,
- position: start + DESTINATION_OFFSET_OF_BINARY_OPERATOR,
+ position: start + destination_offset_of_binary_operator(operator),
dst,
});
}
@@ -3662,10 +3758,37 @@ impl Generator<'_> {
/// Assembles what was emitted into a new block, which has `other_tables_size` bytes left: the operands that come
/// after the registers get their place in the frame, and labels their offsets.
pub(super) fn finish_stream(&mut self, other_tables_size: usize) -> (AssembledBytecode, SliceBlockBuilder) {
+ // NB: Folding leaves constants that nothing uses, and they would take up slots in every frame.
+ let mut constant_is_used = vec![false; self.context.constants.values.len()];
+ let stream = &self.context.stream;
+ for position in stream
+ .head
+ .operand_positions
+ .iter()
+ .chain(&stream.current.operand_positions)
+ {
+ if position.operand_type == OperandType::Constant {
+ constant_is_used[position.index as usize] = true;
+ }
+ }
+ let mut used_constant_count = 0;
+ let new_constant_indices: Vec<u32> = constant_is_used
+ .iter()
+ .map(|&is_used| {
+ let new_index = used_constant_count;
+ used_constant_count += u32::from(is_used);
+ new_index
+ })
+ .collect();
+ let mut is_used = constant_is_used.iter();
+ self.context
+ .constants
+ .values
+ .retain(|_| *is_used.next().expect("a flag per constant"));
let frame = FrameLayout {
register_count: self.context.stream.temporary_count.max(Register::RESERVED_COUNT),
local_count: self.context.scope.local_count(),
- constant_count: u32_from_usize(self.context.constants.values.len()),
+ constant_count: used_constant_count,
};
let stream = &mut self.context.stream;
let head = &stream.head;
@@ -3699,18 +3822,24 @@ impl Generator<'_> {
)
};
let mut bytecode = block.slice_from_parts(&head.bytes, &segment.bytes);
- let head_positions = head.operand_positions.iter().map(|position| position.offset);
+ let head_positions = head
+ .operand_positions
+ .iter()
+ .map(|position| (position.offset, *position));
let positions = segment
.operand_positions
.iter()
- .map(|position| position.offset + head_size);
- for offset in head_positions.chain(positions) {
+ .map(|position| (position.offset + head_size, *position));
+ for (offset, position) in head_positions.chain(positions) {
let at = offset as usize;
- let bytes = &mut bytecode[at..at + 4];
- let raw = u32::from_ne_bytes((&*bytes).try_into().expect("an operand is four bytes"));
- let mut operand = Operand::from_raw(raw);
- operand.offset_index_by(frame.start_of(operand.operand_type()));
- bytes.copy_from_slice(&operand.raw().to_ne_bytes());
+ let bytes = &mut bytecode[at..at + OPERAND_SIZE];
+ let index = match position.operand_type {
+ OperandType::Constant => new_constant_indices[position.index as usize],
+ _ => position.index,
+ };
+ let slot = index + frame.start_of(position.operand_type);
+ let slot = u16::try_from(slot).expect("frame slots fit in 16 bits");
+ bytes.copy_from_slice(&slot.to_ne_bytes());
}
for position in &segment.label_positions {
let at = (position.offset + head_size) as usize;
@@ -3732,8 +3861,15 @@ impl Generator<'_> {
source_offset,
}),
);
+ let strict_ranges = head
+ .strict_ranges
+ .iter()
+ .copied()
+ .chain(segment.strict_ranges.iter().map(|range| range.shifted(head_size)))
+ .collect();
let assembled = AssembledBytecode {
bytecode,
+ strict_ranges,
source_map,
exception_handlers: block.slice(exception_handlers.into_iter()),
number_of_registers: frame.register_count,
diff --git a/Libraries/LibJS/Rust/src/bytecode/dump.rs b/Libraries/LibJS/Rust/src/bytecode/dump.rs
index 21dfc94c1d3..84d59947045 100644
--- a/Libraries/LibJS/Rust/src/bytecode/dump.rs
+++ b/Libraries/LibJS/Rust/src/bytecode/dump.rs
@@ -14,6 +14,8 @@ use super::instruction::instruction_name_from_opcode;
use super::instruction::visit_labels_from_bytes;
use super::native_disassembler::disassemble;
use super::operand::Operand;
+use super::operand::narrow_index;
+use super::operand::read_u16;
use super::operand::read_u32;
use crate::bytecode::encoded_value::EncodedValue;
use crate::bytecode::encoded_value::EncodedValueKind;
@@ -290,7 +292,7 @@ impl BytecodeDumper<'_> {
pub fn append_property_key_quoted(&mut self, index: u32) {
let key = self
.executable
- .get_property_key(PropertyKeyTableIndex(index))
+ .get_property_key(PropertyKeyTableIndex(narrow_index(index)))
.to_utf16_string();
self.append_quoted(Utf16View::of_string(&key));
}
@@ -298,7 +300,7 @@ impl BytecodeDumper<'_> {
pub fn append_property_key_plain(&mut self, index: u32) {
let key = self
.executable
- .get_property_key(PropertyKeyTableIndex(index))
+ .get_property_key(PropertyKeyTableIndex(narrow_index(index)))
.to_utf16_string();
Utf16View::of_string(&key).append_as_wtf8_to(self.output);
}
@@ -341,7 +343,7 @@ impl BytecodeDumper<'_> {
if i != 0 {
self.append(", ");
}
- self.append_operand("", Operand::from_raw(read_u32(bytes, offset + i * 4)));
+ self.append_operand("", Operand::from_raw(u32::from(read_u16(bytes, offset + i * 2))));
}
self.append("]");
}
@@ -351,10 +353,11 @@ impl BytecodeDumper<'_> {
self.append(":[");
let mut first_elem = true;
for i in 0..count {
- let raw = read_u32(bytes, offset + i * 4);
- let Some(operand) = Operand::optional_from_raw(raw) else {
+ let raw = read_u16(bytes, offset + i * 2);
+ if raw == u16::MAX {
continue;
- };
+ }
+ let operand = Operand::from_raw(u32::from(raw));
if !first_elem {
self.append(", ");
}
@@ -381,7 +384,7 @@ impl BytecodeDumper<'_> {
self.append(":[");
let mut first_elem = true;
for i in 0..count {
- let element_offset = offset + i * 8;
+ let element_offset = offset + i * 5;
if bytes[element_offset + 4] == 0 {
continue;
}
diff --git a/Libraries/LibJS/Rust/src/bytecode/encoding.rs b/Libraries/LibJS/Rust/src/bytecode/encoding.rs
index 3eba78da184..21ec4fe4a94 100644
--- a/Libraries/LibJS/Rust/src/bytecode/encoding.rs
+++ b/Libraries/LibJS/Rust/src/bytecode/encoding.rs
@@ -10,28 +10,25 @@ use core::marker::PhantomData;
#[repr(C)]
pub struct InstructionHeader {
pub opcode: u8,
- pub strict: bool,
}
-/// An operand, encoded as a 3-bit kind above the index of its slot in the frame.
+/// An operand: the index of its slot in the frame.
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
-#[repr(transparent)]
-pub struct Operand(pub u32);
+#[repr(C, packed)]
+pub struct Operand(pub u16);
impl Operand {
- const INDEX_MASK: u32 = 0x1fff_ffff;
-
pub fn index(self) -> usize {
- (self.0 & Self::INDEX_MASK) as usize
+ self.0 as usize
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
-#[repr(transparent)]
-pub struct OptionalOperand(pub u32);
+#[repr(C, packed)]
+pub struct OptionalOperand(pub u16);
impl OptionalOperand {
- const NONE: u32 = u32::MAX;
+ const NONE: u16 = u16::MAX;
pub fn get(self) -> Option<Operand> {
(self.0 != Self::NONE).then_some(Operand(self.0))
@@ -40,11 +37,11 @@ impl OptionalOperand {
/// The bytecode offset of a basic block.
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
-#[repr(transparent)]
+#[repr(C, packed)]
pub struct Label(pub u32);
#[derive(Clone, Copy, Debug)]
-#[repr(C)]
+#[repr(C, packed)]
pub struct OptionalLabel {
pub label: Label,
pub has_value: bool,
@@ -60,11 +57,11 @@ macro_rules! define_table_index {
($($name:ident),*) => {
$(
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
- #[repr(transparent)]
- pub struct $name(pub u32);
+ #[repr(C, packed)]
+ pub struct $name(pub u16);
- impl From<u32> for $name {
- fn from(index: u32) -> Self {
+ impl From<u16> for $name {
+ fn from(index: u16) -> Self {
Self(index)
}
}
@@ -75,11 +72,12 @@ macro_rules! define_table_index {
define_table_index!(IdentifierTableIndex, PropertyKeyTableIndex, StringTableIndex);
/// A table index that may be absent, encoded with all bits set.
-#[repr(transparent)]
-pub struct OptionalIndex<T>(pub u32, PhantomData<T>);
+#[repr(C, packed)]
+pub struct OptionalIndex<T>(pub u16, PhantomData<T>);
-impl<T: From<u32>> OptionalIndex<T> {
+impl<T: From<u16>> OptionalIndex<T> {
pub fn get(&self) -> Option<T> {
- (self.0 != u32::MAX).then(|| T::from(self.0))
+ let raw = self.0;
+ (raw != u16::MAX).then(|| T::from(raw))
}
}
diff --git a/Libraries/LibJS/Rust/src/bytecode/executable.rs b/Libraries/LibJS/Rust/src/bytecode/executable.rs
index c7f2d56703a..4f966417544 100644
--- a/Libraries/LibJS/Rust/src/bytecode/executable.rs
+++ b/Libraries/LibJS/Rust/src/bytecode/executable.rs
@@ -20,6 +20,7 @@ use crate::bytecode::encoding::{IdentifierTableIndex, PropertyKeyTableIndex, Str
use crate::bytecode::executable_data::{ConstantValue, ExceptionHandler, MAXIMUM_INTERNED_CONSTANT_LENGTH};
use crate::bytecode::executable_data::{ExecutableData, LocalVariableMetadata};
use crate::bytecode::feedback::{ExecutableFeedback, FeedbackSlotCounts};
+use crate::bytecode::operand::UNCACHED_SITE;
use crate::bytecode::source_map::{SourceMapEntry, SourceOffset, SourceOffsetEntry};
use crate::gc::class::{ExternalMemorySize, Finalize, GcCell, define_cell};
use crate::gc::defer_gc::DeferGc;
@@ -137,8 +138,20 @@ impl PropertyLookupCacheEntryData {
unsafe impl SweptAfterCollection for PropertyLookupCacheEntry {}
impl PropertyLookupCacheEntry {
- pub fn new() -> Self {
- Self::from_data(PropertyLookupCacheEntryData::default())
+ /// An empty entry, like the default PropertyLookupCacheEntryData.
+ pub const fn new() -> Self {
+ Self {
+ entry_type: Cell::new(PropertyLookupCacheEntryType::Empty),
+ property_offset: Cell::new(0),
+ shape_dictionary_generation: Cell::new(0),
+ writes_data_property: Cell::new(false),
+ new_shape: Cell::new(None),
+ shape: Cell::new(None),
+ prototype: Cell::new(None),
+ prototype_chain_validity: Cell::new(None),
+ key: Cell::new(0),
+ getter: Cell::new(None),
+ }
}
fn from_data(data: PropertyLookupCacheEntryData) -> Self {
@@ -240,6 +253,25 @@ struct MonomorphicData {
entry: PropertyLookupCacheEntry,
}
+/// The data of the caches of the slot that the sites past the last one share, in every thread. Its entry stays empty,
+/// so that their accesses go straight to their slow paths.
+#[repr(transparent)]
+struct UncacheableData(MonomorphicData);
+
+// SAFETY: Nothing writes the entry, so threads only ever read it: monomorphic_data() does not hand it out, so neither
+// do first_entry_slot(), entries() and entry_slots_for_shape(), update(), forget_entries() and
+// remove_dead_entries() skip the caches that share it, and clear() does not free it.
+unsafe impl Sync for UncacheableData {}
+
+static UNCACHEABLE_DATA: UncacheableData = UncacheableData(MonomorphicData {
+ entry: PropertyLookupCacheEntry::new(),
+});
+
+/// The data pointer of the caches that share UNCACHEABLE_DATA.
+fn uncacheable_data() -> usize {
+ core::ptr::addr_of!(UNCACHEABLE_DATA.0).expose_provenance()
+}
+
#[repr(C)]
struct PolymorphicData {
entries: [PropertyLookupCacheEntry; MAX_NUMBER_OF_SHAPES_TO_REMEMBER],
@@ -324,17 +356,33 @@ impl PropertyLookupCache {
Self { data: Cell::new(0) }
}
+ /// The cache of the slot that the sites past the last one share.
+ fn new_uncacheable() -> Self {
+ Self {
+ data: Cell::new(uncacheable_data()),
+ }
+ }
+
+ fn is_uncacheable(&self) -> bool {
+ self.data.get() == uncacheable_data()
+ }
+
fn data_pointer<T>(&self, tag: usize) -> Option<&T> {
let data = self.data.get();
if data == 0 || data & PROPERTY_LOOKUP_CACHE_DATA_TAG_MASK != tag {
return None;
}
let pointer = core::ptr::with_exposed_provenance::<T>(data & !PROPERTY_LOOKUP_CACHE_DATA_TAG_MASK);
- // SAFETY: The tagged pointer came from Box::into_raw of a T with this tag, and the cache owns it until clear().
+ // SAFETY: The tagged pointer came from Box::into_raw of a T with this tag, and the cache owns it until clear(), or
+ // it is UNCACHEABLE_DATA, which is static.
Some(unsafe { &*pointer })
}
+ /// The data of a monomorphic cache, never UNCACHEABLE_DATA, whose entry must not be lent out.
fn monomorphic_data(&self) -> Option<&MonomorphicData> {
+ if self.is_uncacheable() {
+ return None;
+ }
self.data_pointer(0)
}
@@ -455,7 +503,7 @@ impl PropertyLookupCache {
entry_type: PropertyLookupCacheEntryType,
callback: impl FnOnce(&mut PropertyLookupCacheEntryData),
) {
- if self.is_keyed_generic() {
+ if self.is_keyed_generic() || self.is_uncacheable() {
return;
}
@@ -575,6 +623,9 @@ impl PropertyLookupCache {
/// Forgets the entries, but keeps the storage of a monomorphic cache, whose next entry then takes the place of the
/// empty one.
pub fn forget_entries(&self) {
+ if self.is_uncacheable() {
+ return;
+ }
if let Some(data) = self.monomorphic_data() {
data.entry.set(PropertyLookupCacheEntryData::default());
return;
@@ -583,6 +634,12 @@ impl PropertyLookupCache {
}
pub fn clear(&self) {
+ if !self.is_uncacheable() {
+ self.free_data();
+ }
+ }
+
+ fn free_data(&self) {
let data = self.data.get();
if data == 0 || data == PROPERTY_LOOKUP_CACHE_KEYED_GENERIC_DATA {
self.data.set(0);
@@ -613,6 +670,9 @@ impl PropertyLookupCache {
/// Forgets the entries with a cell that died in this collection.
pub fn remove_dead_entries(&self, sweep: &Sweep<'_>) {
+ if self.is_uncacheable() {
+ return;
+ }
if let Some(data) = self.megamorphic_data() {
for entry in data
.primary_entries
@@ -1236,7 +1296,7 @@ define_cell!(Executable, Other, external_memory_size: external_memory_size);
// Executable::external_memory_size(): the tables of the executable, and its code while nothing else holds the code.
// Code that something else holds, like a program that gets linked again, is that holder's memory. A property lookup
// cache makes its data once its access runs, so each one counts as if it had the one entry that most caches that run
-// have.
+// have. The cache of the slot that the sites past the last one share has no data of its own.
impl ExternalMemorySize for Executable {
fn external_memory_size(&self) -> usize {
let code_size = if Arc::strong_count(&self.code) == 1 {
@@ -1244,7 +1304,8 @@ impl ExternalMemorySize for Executable {
} else {
0
};
- let cache_data_size = self.head.property_lookup_caches.len() * size_of::<MonomorphicData>();
+ let cache_data_size =
+ self.head.property_lookup_caches.len().min(UNCACHED_SITE as usize) * size_of::<MonomorphicData>();
code_size + self.tables_memory_size() + cache_data_size
}
}
@@ -1342,8 +1403,13 @@ impl Executable {
_defer_gc: &DeferGc<'_>,
) -> Self {
let cache_counts = &code.cache_counts;
- let property_lookup_caches =
- tables.slice((0..cache_counts.property_lookup).map(|_| PropertyLookupCache::new()));
+ let property_lookup_caches = tables.slice((0..cache_counts.property_lookup).map(|index| {
+ if index == UNCACHED_SITE {
+ PropertyLookupCache::new_uncacheable()
+ } else {
+ PropertyLookupCache::new()
+ }
+ }));
let global_variable_caches =
tables.slice((0..cache_counts.global_variable).map(|_| GlobalVariableCache::default()));
let environment_coordinate_caches =
@@ -1696,9 +1762,19 @@ impl Executable {
&self.code.variable_names[self.local_variable_metadata().len()..]
}
+ /// Whether the code at the bytecode offset `pc` is strict.
+ pub fn is_strict_at(&self, pc: u32) -> bool {
+ if self.is_strict_mode {
+ return true;
+ }
+ let ranges = &self.code.strict_ranges;
+ let index = ranges.partition_point(|range| range.end_offset <= pc);
+ ranges.get(index).is_some_and(|range| range.start_offset <= pc)
+ }
+
pub fn length_identifier(&self) -> Option<PropertyKeyTableIndex> {
self.length_identifier
- .map(|index| PropertyKeyTableIndex(index.get() - 1))
+ .map(|index| PropertyKeyTableIndex((index.get() - 1) as u16))
}
fn rare_data_mut(&mut self) -> &mut ExecutableRareData {
diff --git a/Libraries/LibJS/Rust/src/bytecode/executable_data.rs b/Libraries/LibJS/Rust/src/bytecode/executable_data.rs
index 42915e28033..3b3696aa074 100644
--- a/Libraries/LibJS/Rust/src/bytecode/executable_data.rs
+++ b/Libraries/LibJS/Rust/src/bytecode/executable_data.rs
@@ -168,6 +168,23 @@ pub struct LocalVariableMetadata {
pub scope_end: SourceOffset,
}
+/// A range of bytecode offsets, from `start_offset` up to but not including `end_offset`.
+#[derive(Clone, Copy)]
+pub struct StrictRange {
+ pub start_offset: u32,
+ pub end_offset: u32,
+}
+
+impl StrictRange {
+ /// The same range, `distance` bytes later.
+ pub fn shifted(self, distance: u32) -> Self {
+ Self {
+ start_offset: self.start_offset + distance,
+ end_offset: self.end_offset + distance,
+ }
+ }
+}
+
/// One compiled script, module or function body: everything about it that does not depend on where it runs. Nothing
/// here changes once it is compiled, so any number of [`Executable`]s can link it, each with caches, constants and
/// functions of its own, and they all run the same bytecode.
@@ -186,6 +203,8 @@ pub struct ExecutableData {
pub number_of_registers: u32,
pub number_of_arguments: u32,
pub is_strict: bool,
+ /// Sorted by start offset. Where a class body makes the code strict, if the function is not.
+ pub strict_ranges: Box<[StrictRange]>,
pub cache_counts: ExecutableCacheCounts,
pub identifier_table: BlockSlice<ak::Utf16FlyString>,
pub string_table: BlockSlice<ak::Utf16FlyString>,
@@ -250,6 +269,7 @@ impl ExecutableData {
+ size_of_val(&*self.bytecode)
+ size_of_val(&*self.exception_handlers)
+ size_of_val(&*self.source_map)
+ + size_of_val(&*self.strict_ranges)
+ size_of_val(&*self.identifier_table)
+ size_of_val(&*self.string_table)
+ size_of_val(&*self.variable_names)
diff --git a/Libraries/LibJS/Rust/src/bytecode/operand.rs b/Libraries/LibJS/Rust/src/bytecode/operand.rs
index 09911264c2e..2abe91d1204 100644
--- a/Libraries/LibJS/Rust/src/bytecode/operand.rs
+++ b/Libraries/LibJS/Rust/src/bytecode/operand.rs
@@ -12,6 +12,18 @@ pub enum InstructionLengthError {
InvalidLength,
}
+/// The last slot of a cache table, which all the sites past it share. It never remembers anything.
+pub const UNCACHED_SITE: u32 = u16::MAX as u32;
+
+/// A table or cache index as an instruction holds it. `u32::MAX` means none, which stays all bits set.
+#[inline]
+pub fn narrow_index(index: u32) -> u16 {
+ if index == u32::MAX {
+ return u16::MAX;
+ }
+ u16::try_from(index).expect("bytecode indices fit in 16 bits")
+}
+
#[inline]
pub fn read_u16(bytes: &[u8], at: usize) -> u16 {
u16::from_ne_bytes(bytes[at..at + 2].try_into().unwrap())
@@ -55,7 +67,7 @@ impl Register {
///
/// `raw = (type << 29) | index`
///
-/// This encoding is ABI-compatible with the VM's operand format.
+/// The bytecode does not hold this encoding, but the frame slot that the operand ends up in.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct Operand(u32);
@@ -130,15 +142,6 @@ impl Operand {
pub fn optional_from_raw(raw: u32) -> Option<Self> {
if raw == Self::INVALID { None } else { Some(Self(raw)) }
}
-
- /// Offset the index by the given amount, stripping the type tag and
- /// leaving a flat index into the combined
- /// [registers | locals | constants | arguments] array.
- /// Used when the operands of finished code get their final indices.
- pub fn offset_index_by(&mut self, offset: u32) {
- self.0 &= Self::INDEX_MASK;
- self.0 = self.0.checked_add(offset).expect("operand index overflow");
- }
}
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
diff --git a/Libraries/LibJS/Rust/src/interpreter/slow_paths/bindings.rs b/Libraries/LibJS/Rust/src/interpreter/slow_paths/bindings.rs
index 9109921067f..4ffc192c8b6 100644
--- a/Libraries/LibJS/Rust/src/interpreter/slow_paths/bindings.rs
+++ b/Libraries/LibJS/Rust/src/interpreter/slow_paths/bindings.rs
@@ -8,12 +8,15 @@
use core::cell::Cell;
+use ak::ScopeGuard;
use ak::Utf16FlyString;
use libjs_abi::{EnvironmentMode, register};
-use crate::bytecode::encoding::{IdentifierTableIndex, InstructionHeader};
+use super::strict_at;
+use crate::bytecode::encoding::IdentifierTableIndex;
use crate::bytecode::executable::{Executable, PropertyLookupCacheEntryType};
use crate::bytecode::op;
+use crate::bytecode::operand::UNCACHED_SITE;
use crate::bytecode::property_access::{Strict, get_cached_property_value};
use crate::interpreter::runtime_functions::{SlowPathControl, asm_try, handle_asm_exception};
use crate::interpreter::vm::Vm;
@@ -249,10 +252,6 @@ fn get_identifier(vm: &Vm, index: IdentifierTableIndex) -> Utf16FlyString {
current_executable(vm).identifier_table()[index.0 as usize].clone()
}
-fn strict_of(header: &InstructionHeader) -> Strict {
- if header.strict { Strict::Yes } else { Strict::No }
-}
-
fn environment_mode_of(raw_mode: u32) -> EnvironmentMode {
match raw_mode {
0 => EnvironmentMode::Lexical,
@@ -305,6 +304,13 @@ impl EnvironmentCoordinateCacheSlot {
fn get(&self) -> &Cell<EnvironmentCoordinate> {
self.executable.environment_coordinate_cache(self.index)
}
+
+ /// Remembers where a binding was resolved from `environment`, unless this is the slot that sites share.
+ fn update(&self, environment: Gc<Environment>, coordinate: Option<EnvironmentCoordinate>) {
+ if self.index != UNCACHED_SITE {
+ update_environment_coordinate_cache(environment, coordinate, self.get());
+ }
+ }
}
/// The environment `hops` steps out from `environment`, which a static coordinate says is there.
@@ -395,7 +401,7 @@ fn asm_dynamic_get_binding(
pc,
vm.resolve_binding(&get_identifier(vm, identifier_index), strict, None)
);
- update_environment_coordinate_cache(current_environment, reference.environment_coordinate(), cache.get());
+ cache.update(current_environment, reference.environment_coordinate());
update_dynamic_global_variable_cache(vm, current_environment, &reference, cache);
*dst = asm_try!(vm, pc, reference.get_value(vm));
@@ -438,7 +444,7 @@ fn asm_dynamic_get_callee_and_this_from_environment(
pc,
vm.resolve_binding(&get_identifier(vm, identifier_index), strict, None)
);
- update_environment_coordinate_cache(current_environment, reference.environment_coordinate(), cache.get());
+ cache.update(current_environment, reference.environment_coordinate());
update_dynamic_global_variable_cache(vm, current_environment, &reference, cache);
let callee = asm_try!(vm, pc, reference.get_value(vm));
@@ -511,7 +517,7 @@ fn cached_dynamic_global_variable_value(
let identifier = &cache.executable.identifier_table()[identifier_index.0 as usize];
if is_global_environment_at_hops(vm, current_environment, hops, identifier) {
let global_variable_cache = cache.executable.dynamic_global_variable_cache(cache.index);
- if let Some(value) = global_variable_value(vm, identifier_index, global_variable_cache, strict)? {
+ if let Some(value) = global_variable_value(vm, identifier_index, global_variable_cache, cache.index, strict)? {
return Ok(Some(value));
}
}
@@ -526,7 +532,7 @@ fn update_dynamic_global_variable_cache(
reference: &Reference,
cache: &EnvironmentCoordinateCacheSlot,
) {
- if cache.get().get().is_valid() || !reference.is_environment_reference() {
+ if cache.index == UNCACHED_SITE || cache.get().get().is_valid() || !reference.is_environment_reference() {
return;
}
let base_environment = reference.base_environment();
@@ -634,7 +640,7 @@ fn asm_dynamic_initialize_or_set_binding(
pc,
vm.resolve_binding(&get_identifier(vm, identifier_index), strict, Some(environment))
);
- update_environment_coordinate_cache(environment, reference.environment_coordinate(), cache.get());
+ cache.update(environment, reference.environment_coordinate());
match initialization_mode {
BindingInitializationMode::Initialize => {
asm_try!(
@@ -695,7 +701,7 @@ pub fn initialize_lexical_binding(
pc,
EnvironmentMode::Lexical,
BindingInitializationMode::Initialize,
- strict_of(&instruction.header),
+ strict_at(vm, pc),
values.src,
instruction.cache,
);
@@ -714,7 +720,7 @@ pub fn initialize_variable_binding(
pc,
EnvironmentMode::Var,
BindingInitializationMode::Initialize,
- strict_of(&instruction.header),
+ strict_at(vm, pc),
values.src,
instruction.cache,
);
@@ -727,13 +733,13 @@ pub fn dynamic_get_binding(
instruction: &op::DynamicGetBinding,
values: &mut op::DynamicGetBindingValues,
) -> SlowPathControl {
- let cache = EnvironmentCoordinateCacheSlot::of_running_executable(vm, instruction.cache);
+ let cache = EnvironmentCoordinateCacheSlot::of_running_executable(vm, instruction.cache.into());
let next_pc = asm_dynamic_get_binding(
vm,
pc,
&mut values.dst,
instruction.identifier,
- strict_of(&instruction.header),
+ strict_at(vm, pc),
&cache,
AsmBindingIsKnownToBeInitialized::No,
);
@@ -746,13 +752,13 @@ pub fn dynamic_get_initialized_binding(
instruction: &op::DynamicGetInitializedBinding,
values: &mut op::DynamicGetInitializedBindingValues,
) -> SlowPathControl {
- let cache = EnvironmentCoordinateCacheSlot::of_running_executable(vm, instruction.cache);
+ let cache = EnvironmentCoordinateCacheSlot::of_running_executable(vm, instruction.cache.into());
let next_pc = asm_dynamic_get_binding(
vm,
pc,
&mut values.dst,
instruction.identifier,
- strict_of(&instruction.header),
+ strict_at(vm, pc),
&cache,
AsmBindingIsKnownToBeInitialized::Yes,
);
@@ -790,14 +796,14 @@ pub fn dynamic_get_callee_and_this(
instruction: &op::DynamicGetCalleeAndThisFromEnvironment,
values: &mut op::DynamicGetCalleeAndThisFromEnvironmentValues,
) -> SlowPathControl {
- let cache = EnvironmentCoordinateCacheSlot::of_running_executable(vm, instruction.cache);
+ let cache = EnvironmentCoordinateCacheSlot::of_running_executable(vm, instruction.cache.into());
let next_pc = asm_dynamic_get_callee_and_this_from_environment(
vm,
pc,
&mut values.callee,
&mut values.this_value,
instruction.identifier,
- strict_of(&instruction.header),
+ strict_at(vm, pc),
&cache,
);
advance_or_continue(pc, next_pc, op::DynamicGetCalleeAndThisFromEnvironment::LENGTH)
@@ -840,14 +846,15 @@ pub fn get_new_target(
}
pub fn get_global(vm: &Vm, pc: u32, instruction: &op::GetGlobal, values: &mut op::GetGlobalValues) -> SlowPathControl {
- let strict = strict_of(&instruction.header);
+ let strict = strict_at(vm, pc);
match asm_try!(
vm,
pc,
global_variable_value(
vm,
instruction.identifier,
- current_executable(vm).global_variable_cache(instruction.cache),
+ current_executable(vm).global_variable_cache(instruction.cache.into()),
+ instruction.cache.into(),
strict
)
) {
@@ -872,14 +879,15 @@ pub fn typeof_global(
instruction: &op::TypeofGlobal,
values: &mut op::TypeofGlobalValues,
) -> SlowPathControl {
- let strict = strict_of(&instruction.header);
+ let strict = strict_at(vm, pc);
let value = asm_try!(
vm,
pc,
global_variable_value(
vm,
instruction.identifier,
- current_executable(vm).global_variable_cache(instruction.cache),
+ current_executable(vm).global_variable_cache(instruction.cache.into()),
+ instruction.cache.into(),
strict
)
);
@@ -894,8 +902,11 @@ fn global_variable_value(
vm: &Vm,
identifier: IdentifierTableIndex,
cache: &GlobalVariableCache,
+ cache_index: u32,
strict: Strict,
) -> ThrowCompletionOr<Option<Value>> {
+ // NB: Sites past the last slot share it, and what one of them remembers means nothing for the others.
+ let _forget = (cache_index == UNCACHED_SITE).then(|| ScopeGuard::new(|| cache.reset()));
let binding_object = vm.global_object();
let declarative_record = vm.global_declarative_environment();
@@ -963,10 +974,12 @@ pub fn set_global(vm: &Vm, pc: u32, instruction: &op::SetGlobal, values: &mut op
let binding_object = vm.global_object();
let declarative_record = vm.global_declarative_environment();
let executable = current_executable(vm);
- let cache = || executable.global_variable_cache(instruction.cache);
+ let cache = || executable.global_variable_cache(instruction.cache.into());
+ // NB: Sites past the last slot share it, and what one of them remembers means nothing for the others.
+ let _forget = (u32::from(instruction.cache) == UNCACHED_SITE).then(|| ScopeGuard::new(|| cache().reset()));
let shape = binding_object.shape();
let src = values.src;
- let strict = strict_of(&instruction.header);
+ let strict = strict_at(vm, pc);
if cache().environment_serial_number.get() == declarative_record.environment_serial_number() {
if let Some(entry) = cache().first_entry()
@@ -1100,9 +1113,9 @@ pub fn dynamic_initialize_lexical_binding(
EnvironmentMode::Lexical,
BindingInitializationMode::Initialize,
instruction.identifier,
- strict_of(&instruction.header),
+ strict_at(vm, pc),
values.src,
- &EnvironmentCoordinateCacheSlot::of_running_executable(vm, instruction.cache),
+ &EnvironmentCoordinateCacheSlot::of_running_executable(vm, instruction.cache.into()),
);
advance_or_continue(pc, next_pc, op::DynamicInitializeLexicalBinding::LENGTH)
}
@@ -1119,9 +1132,9 @@ pub fn dynamic_initialize_variable_binding(
EnvironmentMode::Var,
BindingInitializationMode::Initialize,
instruction.identifier,
- strict_of(&instruction.header),
+ strict_at(vm, pc),
values.src,
- &EnvironmentCoordinateCacheSlot::of_running_executable(vm, instruction.cache),
+ &EnvironmentCoordinateCacheSlot::of_running_executable(vm, instruction.cache.into()),
);
advance_or_continue(pc, next_pc, op::DynamicInitializeVariableBinding::LENGTH)
}
@@ -1137,7 +1150,7 @@ pub fn set_lexical_binding(
pc,
EnvironmentMode::Lexical,
BindingInitializationMode::Set,
- strict_of(&instruction.header),
+ strict_at(vm, pc),
values.src,
instruction.cache,
);
@@ -1156,9 +1169,9 @@ pub fn dynamic_set_lexical_binding(
EnvironmentMode::Lexical,
BindingInitializationMode::Set,
instruction.identifier,
- strict_of(&instruction.header),
+ strict_at(vm, pc),
values.src,
- &EnvironmentCoordinateCacheSlot::of_running_executable(vm, instruction.cache),
+ &EnvironmentCoordinateCacheSlot::of_running_executable(vm, instruction.cache.into()),
);
advance_or_continue(pc, next_pc, op::DynamicSetLexicalBinding::LENGTH)
}
@@ -1174,7 +1187,7 @@ pub fn set_variable_binding(
pc,
EnvironmentMode::Var,
BindingInitializationMode::Set,
- strict_of(&instruction.header),
+ strict_at(vm, pc),
values.src,
instruction.cache,
);
@@ -1193,9 +1206,9 @@ pub fn dynamic_set_variable_binding(
EnvironmentMode::Var,
BindingInitializationMode::Set,
instruction.identifier,
- strict_of(&instruction.header),
+ strict_at(vm, pc),
values.src,
- &EnvironmentCoordinateCacheSlot::of_running_executable(vm, instruction.cache),
+ &EnvironmentCoordinateCacheSlot::of_running_executable(vm, instruction.cache.into()),
);
advance_or_continue(pc, next_pc, op::DynamicSetVariableBinding::LENGTH)
}
@@ -1264,11 +1277,7 @@ pub fn resolve_binding(
values: &mut op::ResolveBindingValues,
) -> SlowPathControl {
let identifier = get_identifier(vm, instruction.identifier);
- let reference = asm_try!(
- vm,
- pc,
- vm.resolve_binding(&identifier, strict_of(&instruction.header), None)
- );
+ let reference = asm_try!(vm, pc, vm.resolve_binding(&identifier, strict_at(vm, pc), None));
if reference.is_unresolvable() {
values.dst = Value::NULL;
return SlowPathControl::continue_at(pc + op::ResolveBinding::LENGTH);
@@ -1288,11 +1297,7 @@ pub fn resolve_global_binding(
values: &mut op::ResolveGlobalBindingValues,
) -> SlowPathControl {
let identifier = get_identifier(vm, instruction.identifier);
- let reference = asm_try!(
- vm,
- pc,
- vm.resolve_binding(&identifier, strict_of(&instruction.header), None)
- );
+ let reference = asm_try!(vm, pc, vm.resolve_binding(&identifier, strict_at(vm, pc), None));
let is_resolvable = !reference.is_unresolvable();
if is_resolvable {
let global_environment = vm
@@ -1327,7 +1332,7 @@ pub fn get_resolved_binding(
values: &mut op::GetResolvedBindingValues,
) -> SlowPathControl {
let identifier = get_identifier(vm, instruction.identifier);
- let strict = strict_of(&instruction.header);
+ let strict = strict_at(vm, pc);
let reference = if values.environment.is_null() {
Reference::with_base_type(BaseType::Unresolvable, PropertyKey::from(identifier), strict)
} else {
@@ -1344,7 +1349,7 @@ pub fn set_resolved_binding(
values: &mut op::SetResolvedBindingValues,
) -> SlowPathControl {
let identifier = get_identifier(vm, instruction.identifier);
- let strict = strict_of(&instruction.header);
+ let strict = strict_at(vm, pc);
let environment = values.environment;
let reference = if environment.is_null() {
Reference::with_base_type(BaseType::Unresolvable, PropertyKey::from(identifier), strict)
@@ -1361,7 +1366,8 @@ pub fn typeof_binding(
instruction: &op::TypeofBinding,
values: &mut op::TypeofBindingValues,
) -> SlowPathControl {
- assert!(instruction.cache.is_valid());
+ let cache = instruction.cache;
+ assert!(cache.is_valid());
let environment = environment_at_hops(running_lexical_environment(vm), instruction.cache.hops);
@@ -1380,7 +1386,7 @@ pub fn dynamic_typeof_binding(
instruction: &op::DynamicTypeofBinding,
values: &mut op::DynamicTypeofBindingValues,
) -> SlowPathControl {
- let cache = EnvironmentCoordinateCacheSlot::of_running_executable(vm, instruction.cache);
+ let cache = EnvironmentCoordinateCacheSlot::of_running_executable(vm, instruction.cache.into());
let current_environment = running_lexical_environment(vm);
if let Some(environment) = get_cached_environment(current_environment, cache.get()) {
let value = asm_try!(
@@ -1395,11 +1401,7 @@ pub fn dynamic_typeof_binding(
let reference = asm_try!(
vm,
pc,
- vm.resolve_binding(
- &get_identifier(vm, instruction.identifier),
- strict_of(&instruction.header),
- None
- )
+ vm.resolve_binding(&get_identifier(vm, instruction.identifier), strict_at(vm, pc), None)
);
if reference.is_unresolvable() {
values.dst = Value::from_string(PrimitiveString::create_from_fly_string(
@@ -1409,7 +1411,7 @@ pub fn dynamic_typeof_binding(
return SlowPathControl::continue_at(pc + op::DynamicTypeofBinding::LENGTH);
}
- update_environment_coordinate_cache(current_environment, reference.environment_coordinate(), cache.get());
+ cache.update(current_environment, reference.environment_coordinate());
let value = asm_try!(vm, pc, reference.get_value(vm));
values.dst = Value::from_string(value.typeof_(vm));
SlowPathControl::continue_at(pc + op::DynamicTypeofBinding::LENGTH)
@@ -1629,11 +1631,7 @@ pub fn delete_variable(
values: &mut op::DeleteVariableValues,
) -> SlowPathControl {
let string = get_identifier(vm, instruction.identifier);
- let reference = asm_try!(
- vm,
- pc,
- vm.resolve_binding(&string, strict_of(&instruction.header), None)
- );
+ let reference = asm_try!(vm, pc, vm.resolve_binding(&string, strict_at(vm, pc), None));
let result = asm_try!(vm, pc, reference.delete_(vm));
values.dst = Value::from_bool(result);
SlowPathControl::continue_at(pc + op::DeleteVariable::LENGTH)
diff --git a/Libraries/LibJS/Rust/src/interpreter/slow_paths/calls.rs b/Libraries/LibJS/Rust/src/interpreter/slow_paths/calls.rs
index 14dd0b305e4..018c50214a8 100644
--- a/Libraries/LibJS/Rust/src/interpreter/slow_paths/calls.rs
+++ b/Libraries/LibJS/Rust/src/interpreter/slow_paths/calls.rs
@@ -9,7 +9,8 @@
use ak::{ScopeGuard, Utf16FlyString};
use libjs_abi::{ArgumentsKind, FunctionNamePrefix};
-use crate::bytecode::encoding::{InstructionHeader, OptionalOperand, StringTableIndex};
+use super::strict_at;
+use crate::bytecode::encoding::{OptionalOperand, StringTableIndex};
use crate::bytecode::op;
use crate::bytecode::property_access::Strict;
use crate::interpreter::runtime_functions::{
@@ -62,10 +63,6 @@ fn running_execution_context(vm: &Vm) -> &ExecutionContext {
.expect("a slow path runs in a running frame")
}
-fn strict_of(header: &InstructionHeader) -> Strict {
- if header.strict { Strict::Yes } else { Strict::No }
-}
-
fn caller_mode_of(strict: Strict) -> CallerMode {
if strict == Strict::Yes {
CallerMode::Strict
@@ -409,7 +406,7 @@ pub fn call(
arguments,
argument_count_of(arguments.len()),
pc + instruction.length(),
- instruction.dst.0,
+ instruction.dst.0.into(),
values.this_value,
)
.is_some()
@@ -428,7 +425,7 @@ pub fn call(
arguments,
&mut values.dst,
instruction.expression_string.get(),
- strict_of(&instruction.header),
+ strict_at(vm, pc),
)
);
SlowPathControl::continue_at(pc + instruction.length())
@@ -496,7 +493,7 @@ pub fn call_direct_eval(
arguments,
&mut values.dst,
instruction.expression_string.get(),
- strict_of(&instruction.header),
+ strict_at(vm, pc),
)
);
SlowPathControl::continue_at(pc + instruction.length())
@@ -593,7 +590,7 @@ pub fn call_with_argument_array(
values.arguments,
&mut values.dst,
instruction.expression_string.get(),
- strict_of(&instruction.header),
+ strict_at(vm, pc),
)
);
SlowPathControl::continue_at(pc + op::CallWithArgumentArray::LENGTH)
@@ -616,7 +613,7 @@ pub fn call_direct_eval_with_argument_array(
values.arguments,
&mut values.dst,
instruction.expression_string.get(),
- strict_of(&instruction.header),
+ strict_at(vm, pc),
)
);
SlowPathControl::continue_at(pc + op::CallDirectEvalWithArgumentArray::LENGTH)
@@ -653,7 +650,7 @@ pub fn call_construct(
function.inline_call_executable(),
arguments,
pc + instruction.length(),
- instruction.dst.0,
+ instruction.dst.0.into(),
Value::from_object(this_object),
Some(function.upcast()),
true,
@@ -678,7 +675,7 @@ pub fn call_construct(
arguments,
&mut values.dst,
instruction.expression_string.get(),
- strict_of(&instruction.header),
+ strict_at(vm, pc),
)
);
SlowPathControl::continue_at(pc + instruction.length())
@@ -701,7 +698,7 @@ pub fn call_construct_with_argument_array(
values.arguments,
&mut values.dst,
instruction.expression_string.get(),
- strict_of(&instruction.header),
+ strict_at(vm, pc),
)
);
SlowPathControl::continue_at(pc + op::CallConstructWithArgumentArray::LENGTH)
@@ -858,7 +855,7 @@ pub fn try_inline_call(vm: &Vm, pc: u32, instruction: &op::Call, values: &op::Ca
callee_function.inline_call_executable(),
arguments,
pc + instruction.length(),
- instruction.dst.0,
+ instruction.dst.0.into(),
values.this_value,
None,
false,
diff --git a/Libraries/LibJS/Rust/src/interpreter/slow_paths/control.rs b/Libraries/LibJS/Rust/src/interpreter/slow_paths/control.rs
index 5fca2730538..efd6478691f 100644
--- a/Libraries/LibJS/Rust/src/interpreter/slow_paths/control.rs
+++ b/Libraries/LibJS/Rust/src/interpreter/slow_paths/control.rs
@@ -95,8 +95,15 @@ fn iterator_record_from_registers(
}
/// The primitive values a NewPrimitiveArray instruction carries after its fixed fields.
-fn primitive_array_elements(instruction: &op::NewPrimitiveArray) -> &[Value] {
- instruction.elements()
+#[cfg_attr(
+ ladybird_gc_lints,
+ expect(
+ gc_container_on_stack,
+ reason = "the elements are numbers, booleans, null and holes, which are not cells"
+ )
+)]
+fn primitive_array_elements(instruction: &op::NewPrimitiveArray) -> Vec<Value> {
+ instruction.elements().collect()
}
pub fn debugger_check_breakpoint(vm: &Vm, pc: u32) {
@@ -165,7 +172,7 @@ pub fn new_primitive_array(
instruction: &op::NewPrimitiveArray,
values: &mut op::NewPrimitiveArrayValues,
) -> SlowPathControl {
- values.dst = Value::from_object(create_array_literal(vm, primitive_array_elements(instruction)));
+ values.dst = Value::from_object(create_array_literal(vm, &primitive_array_elements(instruction)));
SlowPathControl::continue_at(pc + instruction.length())
}
diff --git a/Libraries/LibJS/Rust/src/interpreter/slow_paths/mod.rs b/Libraries/LibJS/Rust/src/interpreter/slow_paths/mod.rs
index 95154a5c352..2d61e1237bc 100644
--- a/Libraries/LibJS/Rust/src/interpreter/slow_paths/mod.rs
+++ b/Libraries/LibJS/Rust/src/interpreter/slow_paths/mod.rs
@@ -21,10 +21,20 @@ use super::vm::Vm;
use crate::bytecode::executable::PropertyLookupCache;
use crate::bytecode::feedback::{call_feedback_flags, keyed_feedback_bits};
use crate::bytecode::op;
+use crate::bytecode::property_access::Strict;
use crate::layout::value::Value;
use libjs_abi::PutKind;
use property_access::KeyedSiteCache;
+/// Whether the code at the bytecode offset `pc` of the running executable is strict.
+pub(super) fn strict_at(vm: &Vm, pc: u32) -> Strict {
+ if vm.current_executable().is_strict_at(pc) {
+ Strict::Yes
+ } else {
+ Strict::No
+ }
+}
+
/// The VM a helper receives as an integer argument.
fn vm_from_helper_argument<'vm>(argument: u64) -> &'vm Vm {
// SAFETY: The interpreter passes the VM it runs on, whose address escaped to it through the FFI call that started
@@ -101,84 +111,140 @@ impl RuntimeFunctions for Runtime {
operators::helper_single_ascii_character_string(vm_from_helper_argument(vm), encoded_value)
}
- fn add_values(vm: &Vm, pc: u32, dst: &Cell<Value>, lhs: Value, rhs: Value) -> SlowPathControl {
- operators::add_values(vm, pc, dst, lhs, rhs)
+ fn add_values(vm: &Vm, pc: u32, dst: &Cell<Value>, lhs: Value, rhs: Value, length: u32) -> SlowPathControl {
+ operators::add_values(vm, pc, dst, lhs, rhs, length)
}
- fn sub_values(vm: &Vm, pc: u32, dst: &Cell<Value>, lhs: Value, rhs: Value) -> SlowPathControl {
- operators::sub_values(vm, pc, dst, lhs, rhs)
+ fn sub_values(vm: &Vm, pc: u32, dst: &Cell<Value>, lhs: Value, rhs: Value, length: u32) -> SlowPathControl {
+ operators::sub_values(vm, pc, dst, lhs, rhs, length)
}
- fn mul_values(vm: &Vm, pc: u32, dst: &Cell<Value>, lhs: Value, rhs: Value) -> SlowPathControl {
- operators::mul_values(vm, pc, dst, lhs, rhs)
+ fn mul_values(vm: &Vm, pc: u32, dst: &Cell<Value>, lhs: Value, rhs: Value, length: u32) -> SlowPathControl {
+ operators::mul_values(vm, pc, dst, lhs, rhs, length)
}
- fn div_values(vm: &Vm, pc: u32, dst: &Cell<Value>, lhs: Value, rhs: Value) -> SlowPathControl {
- operators::div_values(vm, pc, dst, lhs, rhs)
+ fn div_values(vm: &Vm, pc: u32, dst: &Cell<Value>, lhs: Value, rhs: Value, length: u32) -> SlowPathControl {
+ operators::div_values(vm, pc, dst, lhs, rhs, length)
}
- fn mod_values(vm: &Vm, pc: u32, dst: &Cell<Value>, lhs: Value, rhs: Value) -> SlowPathControl {
- operators::mod_values(vm, pc, dst, lhs, rhs)
+ fn mod_values(vm: &Vm, pc: u32, dst: &Cell<Value>, lhs: Value, rhs: Value, length: u32) -> SlowPathControl {
+ operators::mod_values(vm, pc, dst, lhs, rhs, length)
}
- fn exp_values(vm: &Vm, pc: u32, dst: &Cell<Value>, lhs: Value, rhs: Value) -> SlowPathControl {
- operators::exp_values(vm, pc, dst, lhs, rhs)
+ fn exp_values(vm: &Vm, pc: u32, dst: &Cell<Value>, lhs: Value, rhs: Value, length: u32) -> SlowPathControl {
+ operators::exp_values(vm, pc, dst, lhs, rhs, length)
}
- fn bitwise_and_values(vm: &Vm, pc: u32, dst: &Cell<Value>, lhs: Value, rhs: Value) -> SlowPathControl {
- operators::bitwise_and_values(vm, pc, dst, lhs, rhs)
+ fn bitwise_and_values(vm: &Vm, pc: u32, dst: &Cell<Value>, lhs: Value, rhs: Value, length: u32) -> SlowPathControl {
+ operators::bitwise_and_values(vm, pc, dst, lhs, rhs, length)
}
- fn bitwise_or_values(vm: &Vm, pc: u32, dst: &Cell<Value>, lhs: Value, rhs: Value) -> SlowPathControl {
- operators::bitwise_or_values(vm, pc, dst, lhs, rhs)
+ fn bitwise_or_values(vm: &Vm, pc: u32, dst: &Cell<Value>, lhs: Value, rhs: Value, length: u32) -> SlowPathControl {
+ operators::bitwise_or_values(vm, pc, dst, lhs, rhs, length)
}
- fn bitwise_xor_values(vm: &Vm, pc: u32, dst: &Cell<Value>, lhs: Value, rhs: Value) -> SlowPathControl {
- operators::bitwise_xor_values(vm, pc, dst, lhs, rhs)
+ fn bitwise_xor_values(vm: &Vm, pc: u32, dst: &Cell<Value>, lhs: Value, rhs: Value, length: u32) -> SlowPathControl {
+ operators::bitwise_xor_values(vm, pc, dst, lhs, rhs, length)
}
- fn left_shift_values(vm: &Vm, pc: u32, dst: &Cell<Value>, lhs: Value, rhs: Value) -> SlowPathControl {
- operators::left_shift_values(vm, pc, dst, lhs, rhs)
+ fn left_shift_values(vm: &Vm, pc: u32, dst: &Cell<Value>, lhs: Value, rhs: Value, length: u32) -> SlowPathControl {
+ operators::left_shift_values(vm, pc, dst, lhs, rhs, length)
}
- fn right_shift_values(vm: &Vm, pc: u32, dst: &Cell<Value>, lhs: Value, rhs: Value) -> SlowPathControl {
- operators::right_shift_values(vm, pc, dst, lhs, rhs)
+ fn right_shift_values(vm: &Vm, pc: u32, dst: &Cell<Value>, lhs: Value, rhs: Value, length: u32) -> SlowPathControl {
+ operators::right_shift_values(vm, pc, dst, lhs, rhs, length)
}
- fn unsigned_right_shift_values(vm: &Vm, pc: u32, dst: &Cell<Value>, lhs: Value, rhs: Value) -> SlowPathControl {
- operators::unsigned_right_shift_values(vm, pc, dst, lhs, rhs)
+ fn unsigned_right_shift_values(
+ vm: &Vm,
+ pc: u32,
+ dst: &Cell<Value>,
+ lhs: Value,
+ rhs: Value,
+ length: u32,
+ ) -> SlowPathControl {
+ operators::unsigned_right_shift_values(vm, pc, dst, lhs, rhs, length)
}
- fn less_than_values(vm: &Vm, pc: u32, dst: &Cell<Value>, lhs: Value, rhs: Value) -> SlowPathControl {
- operators::less_than_values(vm, pc, dst, lhs, rhs)
+ fn less_than_values(vm: &Vm, pc: u32, dst: &Cell<Value>, lhs: Value, rhs: Value, length: u32) -> SlowPathControl {
+ operators::less_than_values(vm, pc, dst, lhs, rhs, length)
}
- fn less_than_equals_values(vm: &Vm, pc: u32, dst: &Cell<Value>, lhs: Value, rhs: Value) -> SlowPathControl {
- operators::less_than_equals_values(vm, pc, dst, lhs, rhs)
+ fn less_than_equals_values(
+ vm: &Vm,
+ pc: u32,
+ dst: &Cell<Value>,
+ lhs: Value,
+ rhs: Value,
+ length: u32,
+ ) -> SlowPathControl {
+ operators::less_than_equals_values(vm, pc, dst, lhs, rhs, length)
}
- fn greater_than_values(vm: &Vm, pc: u32, dst: &Cell<Value>, lhs: Value, rhs: Value) -> SlowPathControl {
- operators::greater_than_values(vm, pc, dst, lhs, rhs)
+ fn greater_than_values(
+ vm: &Vm,
+ pc: u32,
+ dst: &Cell<Value>,
+ lhs: Value,
+ rhs: Value,
+ length: u32,
+ ) -> SlowPathControl {
+ operators::greater_than_values(vm, pc, dst, lhs, rhs, length)
}
- fn greater_than_equals_values(vm: &Vm, pc: u32, dst: &Cell<Value>, lhs: Value, rhs: Value) -> SlowPathControl {
- operators::greater_than_equals_values(vm, pc, dst, lhs, rhs)
+ fn greater_than_equals_values(
+ vm: &Vm,
+ pc: u32,
+ dst: &Cell<Value>,
+ lhs: Value,
+ rhs: Value,
+ length: u32,
+ ) -> SlowPathControl {
+ operators::greater_than_equals_values(vm, pc, dst, lhs, rhs, length)
}
- fn loosely_equals_values(vm: &Vm, pc: u32, dst: &Cell<Value>, lhs: Value, rhs: Value) -> SlowPathControl {
- operators::loosely_equals_values(vm, pc, dst, lhs, rhs)
+ fn loosely_equals_values(
+ vm: &Vm,
+ pc: u32,
+ dst: &Cell<Value>,
+ lhs: Value,
+ rhs: Value,
+ length: u32,
+ ) -> SlowPathControl {
+ operators::loosely_equals_values(vm, pc, dst, lhs, rhs, length)
}
- fn loosely_inequals_values(vm: &Vm, pc: u32, dst: &Cell<Value>, lhs: Value, rhs: Value) -> SlowPathControl {
- operators::loosely_inequals_values(vm, pc, dst, lhs, rhs)
+ fn loosely_inequals_values(
+ vm: &Vm,
+ pc: u32,
+ dst: &Cell<Value>,
+ lhs: Value,
+ rhs: Value,
+ length: u32,
+ ) -> SlowPathControl {
+ operators::loosely_inequals_values(vm, pc, dst, lhs, rhs, length)
}
- fn strictly_equals_values(_vm: &Vm, pc: u32, dst: &Cell<Value>, lhs: Value, rhs: Value) -> SlowPathControl {
- operators::strictly_equals_values(pc, dst, lhs, rhs)
+ fn strictly_equals_values(
+ _vm: &Vm,
+ pc: u32,
+ dst: &Cell<Value>,
+ lhs: Value,
+ rhs: Value,
+ length: u32,
+ ) -> SlowPathControl {
+ operators::strictly_equals_values(pc, dst, lhs, rhs, length)
}
- fn strictly_inequals_values(_vm: &Vm, pc: u32, dst: &Cell<Value>, lhs: Value, rhs: Value) -> SlowPathControl {
- operators::strictly_inequals_values(pc, dst, lhs, rhs)
+ fn strictly_inequals_values(
+ _vm: &Vm,
+ pc: u32,
+ dst: &Cell<Value>,
+ lhs: Value,
+ rhs: Value,
+ length: u32,
+ ) -> SlowPathControl {
+ operators::strictly_inequals_values(pc, dst, lhs, rhs, length)
}
fn jump_less_than_values(
diff --git a/Libraries/LibJS/Rust/src/interpreter/slow_paths/operators.rs b/Libraries/LibJS/Rust/src/interpreter/slow_paths/operators.rs
index c284c7607bc..4357f8e8e21 100644
--- a/Libraries/LibJS/Rust/src/interpreter/slow_paths/operators.rs
+++ b/Libraries/LibJS/Rust/src/interpreter/slow_paths/operators.rs
@@ -18,8 +18,6 @@ use crate::runtime::primitive_string::PrimitiveString;
use crate::runtime::value::{self, PreferredType};
/// Stores the result of the binary operator instruction at `pc`, whose length is `length`, and continues after it.
-/// NB: The slow paths that receive their operands in registers each serve the instruction of one opcode, so they know
-/// its length.
fn finish_binary_slow_path_value(pc: u32, length: u32, destination: &Cell<Value>, result: Value) -> SlowPathControl {
destination.set(result);
SlowPathControl::continue_at(pc + length)
@@ -45,50 +43,53 @@ fn finish_binary_slow_path_with_boolean(
finish_binary_slow_path_value(pc, length, destination, Value::from_bool(asm_try!(vm, pc, result)))
}
-pub fn add_values(vm: &Vm, pc: u32, destination: &Cell<Value>, lhs: Value, rhs: Value) -> SlowPathControl {
- finish_binary_slow_path(vm, pc, op::Add::LENGTH, destination, value::add(vm, lhs, rhs))
+pub fn add_values(vm: &Vm, pc: u32, destination: &Cell<Value>, lhs: Value, rhs: Value, length: u32) -> SlowPathControl {
+ finish_binary_slow_path(vm, pc, length, destination, value::add(vm, lhs, rhs))
}
-pub fn sub_values(vm: &Vm, pc: u32, destination: &Cell<Value>, lhs: Value, rhs: Value) -> SlowPathControl {
- finish_binary_slow_path(vm, pc, op::Sub::LENGTH, destination, value::sub(vm, lhs, rhs))
+pub fn sub_values(vm: &Vm, pc: u32, destination: &Cell<Value>, lhs: Value, rhs: Value, length: u32) -> SlowPathControl {
+ finish_binary_slow_path(vm, pc, length, destination, value::sub(vm, lhs, rhs))
}
-pub fn mul_values(vm: &Vm, pc: u32, destination: &Cell<Value>, lhs: Value, rhs: Value) -> SlowPathControl {
- finish_binary_slow_path(vm, pc, op::Mul::LENGTH, destination, value::mul(vm, lhs, rhs))
+pub fn mul_values(vm: &Vm, pc: u32, destination: &Cell<Value>, lhs: Value, rhs: Value, length: u32) -> SlowPathControl {
+ finish_binary_slow_path(vm, pc, length, destination, value::mul(vm, lhs, rhs))
}
-pub fn div_values(vm: &Vm, pc: u32, destination: &Cell<Value>, lhs: Value, rhs: Value) -> SlowPathControl {
- finish_binary_slow_path(vm, pc, op::Div::LENGTH, destination, value::div(vm, lhs, rhs))
+pub fn div_values(vm: &Vm, pc: u32, destination: &Cell<Value>, lhs: Value, rhs: Value, length: u32) -> SlowPathControl {
+ finish_binary_slow_path(vm, pc, length, destination, value::div(vm, lhs, rhs))
}
-pub fn less_than_values(vm: &Vm, pc: u32, destination: &Cell<Value>, lhs: Value, rhs: Value) -> SlowPathControl {
- finish_binary_slow_path_with_boolean(
- vm,
- pc,
- op::LessThan::LENGTH,
- destination,
- value::less_than(vm, lhs, rhs),
- )
+pub fn less_than_values(
+ vm: &Vm,
+ pc: u32,
+ destination: &Cell<Value>,
+ lhs: Value,
+ rhs: Value,
+ length: u32,
+) -> SlowPathControl {
+ finish_binary_slow_path_with_boolean(vm, pc, length, destination, value::less_than(vm, lhs, rhs))
}
-pub fn less_than_equals_values(vm: &Vm, pc: u32, destination: &Cell<Value>, lhs: Value, rhs: Value) -> SlowPathControl {
- finish_binary_slow_path_with_boolean(
- vm,
- pc,
- op::LessThanEquals::LENGTH,
- destination,
- value::less_than_equals(vm, lhs, rhs),
- )
+pub fn less_than_equals_values(
+ vm: &Vm,
+ pc: u32,
+ destination: &Cell<Value>,
+ lhs: Value,
+ rhs: Value,
+ length: u32,
+) -> SlowPathControl {
+ finish_binary_slow_path_with_boolean(vm, pc, length, destination, value::less_than_equals(vm, lhs, rhs))
}
-pub fn greater_than_values(vm: &Vm, pc: u32, destination: &Cell<Value>, lhs: Value, rhs: Value) -> SlowPathControl {
- finish_binary_slow_path_with_boolean(
- vm,
- pc,
- op::GreaterThan::LENGTH,
- destination,
- value::greater_than(vm, lhs, rhs),
- )
+pub fn greater_than_values(
+ vm: &Vm,
+ pc: u32,
+ destination: &Cell<Value>,
+ lhs: Value,
+ rhs: Value,
+ length: u32,
+) -> SlowPathControl {
+ finish_binary_slow_path_with_boolean(vm, pc, length, destination, value::greater_than(vm, lhs, rhs))
}
pub fn greater_than_equals_values(
@@ -97,14 +98,9 @@ pub fn greater_than_equals_values(
destination: &Cell<Value>,
lhs: Value,
rhs: Value,
+ length: u32,
) -> SlowPathControl {
- finish_binary_slow_path_with_boolean(
- vm,
- pc,
- op::GreaterThanEquals::LENGTH,
- destination,
- value::greater_than_equals(vm, lhs, rhs),
- )
+ finish_binary_slow_path_with_boolean(vm, pc, length, destination, value::greater_than_equals(vm, lhs, rhs))
}
pub fn increment(vm: &Vm, pc: u32, values: &mut op::IncrementValues) -> SlowPathControl {
@@ -257,58 +253,63 @@ pub fn concat_string(vm: &Vm, pc: u32, values: &mut op::ConcatStringValues) -> S
SlowPathControl::continue_at(pc + op::ConcatString::LENGTH)
}
-pub fn exp_values(vm: &Vm, pc: u32, destination: &Cell<Value>, lhs: Value, rhs: Value) -> SlowPathControl {
- finish_binary_slow_path(vm, pc, op::Exp::LENGTH, destination, value::exp(vm, lhs, rhs))
+pub fn exp_values(vm: &Vm, pc: u32, destination: &Cell<Value>, lhs: Value, rhs: Value, length: u32) -> SlowPathControl {
+ finish_binary_slow_path(vm, pc, length, destination, value::exp(vm, lhs, rhs))
}
-pub fn bitwise_xor_values(vm: &Vm, pc: u32, destination: &Cell<Value>, lhs: Value, rhs: Value) -> SlowPathControl {
- finish_binary_slow_path(
- vm,
- pc,
- op::BitwiseXor::LENGTH,
- destination,
- value::bitwise_xor(vm, lhs, rhs),
- )
+pub fn bitwise_xor_values(
+ vm: &Vm,
+ pc: u32,
+ destination: &Cell<Value>,
+ lhs: Value,
+ rhs: Value,
+ length: u32,
+) -> SlowPathControl {
+ finish_binary_slow_path(vm, pc, length, destination, value::bitwise_xor(vm, lhs, rhs))
}
-pub fn bitwise_and_values(vm: &Vm, pc: u32, destination: &Cell<Value>, lhs: Value, rhs: Value) -> SlowPathControl {
- finish_binary_slow_path(
- vm,
- pc,
- op::BitwiseAnd::LENGTH,
- destination,
- value::bitwise_and(vm, lhs, rhs),
- )
+pub fn bitwise_and_values(
+ vm: &Vm,
+ pc: u32,
+ destination: &Cell<Value>,
+ lhs: Value,
+ rhs: Value,
+ length: u32,
+) -> SlowPathControl {
+ finish_binary_slow_path(vm, pc, length, destination, value::bitwise_and(vm, lhs, rhs))
}
-pub fn bitwise_or_values(vm: &Vm, pc: u32, destination: &Cell<Value>, lhs: Value, rhs: Value) -> SlowPathControl {
- finish_binary_slow_path(
- vm,
- pc,
- op::BitwiseOr::LENGTH,
- destination,
- value::bitwise_or(vm, lhs, rhs),
- )
+pub fn bitwise_or_values(
+ vm: &Vm,
+ pc: u32,
+ destination: &Cell<Value>,
+ lhs: Value,
+ rhs: Value,
+ length: u32,
+) -> SlowPathControl {
+ finish_binary_slow_path(vm, pc, length, destination, value::bitwise_or(vm, lhs, rhs))
}
-pub fn left_shift_values(vm: &Vm, pc: u32, destination: &Cell<Value>, lhs: Value, rhs: Value) -> SlowPathControl {
- finish_binary_slow_path(
- vm,
- pc,
- op::LeftShift::LENGTH,
- destination,
- value::left_shift(vm, lhs, rhs),
- )
+pub fn left_shift_values(
+ vm: &Vm,
+ pc: u32,
+ destination: &Cell<Value>,
+ lhs: Value,
+ rhs: Value,
+ length: u32,
+) -> SlowPathControl {
+ finish_binary_slow_path(vm, pc, length, destination, value::left_shift(vm, lhs, rhs))
}
-pub fn right_shift_values(vm: &Vm, pc: u32, destination: &Cell<Value>, lhs: Value, rhs: Value) -> SlowPathControl {
- finish_binary_slow_path(
- vm,
- pc,
- op::RightShift::LENGTH,
- destination,
- value::right_shift(vm, lhs, rhs),
- )
+pub fn right_shift_values(
+ vm: &Vm,
+ pc: u32,
+ destination: &Cell<Value>,
+ lhs: Value,
+ rhs: Value,
+ length: u32,
+) -> SlowPathControl {
+ finish_binary_slow_path(vm, pc, length, destination, value::right_shift(vm, lhs, rhs))
}
pub fn unsigned_right_shift_values(
@@ -317,18 +318,13 @@ pub fn unsigned_right_shift_values(
destination: &Cell<Value>,
lhs: Value,
rhs: Value,
+ length: u32,
) -> SlowPathControl {
- finish_binary_slow_path(
- vm,
- pc,
- op::UnsignedRightShift::LENGTH,
- destination,
- value::unsigned_right_shift(vm, lhs, rhs),
- )
+ finish_binary_slow_path(vm, pc, length, destination, value::unsigned_right_shift(vm, lhs, rhs))
}
-pub fn mod_values(vm: &Vm, pc: u32, destination: &Cell<Value>, lhs: Value, rhs: Value) -> SlowPathControl {
- finish_binary_slow_path(vm, pc, op::Mod::LENGTH, destination, value::r#mod(vm, lhs, rhs))
+pub fn mod_values(vm: &Vm, pc: u32, destination: &Cell<Value>, lhs: Value, rhs: Value, length: u32) -> SlowPathControl {
+ finish_binary_slow_path(vm, pc, length, destination, value::r#mod(vm, lhs, rhs))
}
fn loosely_equals(vm: &Vm, lhs: Value, rhs: Value) -> ThrowCompletionOr<bool> {
@@ -349,42 +345,46 @@ fn strictly_equals(lhs: Value, rhs: Value) -> bool {
value::is_strictly_equal(lhs, rhs)
}
-pub fn strictly_equals_values(pc: u32, destination: &Cell<Value>, lhs: Value, rhs: Value) -> SlowPathControl {
- finish_binary_slow_path_value(
- pc,
- op::StrictlyEquals::LENGTH,
- destination,
- Value::from_bool(strictly_equals(lhs, rhs)),
- )
+pub fn strictly_equals_values(
+ pc: u32,
+ destination: &Cell<Value>,
+ lhs: Value,
+ rhs: Value,
+ length: u32,
+) -> SlowPathControl {
+ finish_binary_slow_path_value(pc, length, destination, Value::from_bool(strictly_equals(lhs, rhs)))
}
-pub fn strictly_inequals_values(pc: u32, destination: &Cell<Value>, lhs: Value, rhs: Value) -> SlowPathControl {
- finish_binary_slow_path_value(
- pc,
- op::StrictlyInequals::LENGTH,
- destination,
- Value::from_bool(!strictly_equals(lhs, rhs)),
- )
+pub fn strictly_inequals_values(
+ pc: u32,
+ destination: &Cell<Value>,
+ lhs: Value,
+ rhs: Value,
+ length: u32,
+) -> SlowPathControl {
+ finish_binary_slow_path_value(pc, length, destination, Value::from_bool(!strictly_equals(lhs, rhs)))
}
-pub fn loosely_equals_values(vm: &Vm, pc: u32, destination: &Cell<Value>, lhs: Value, rhs: Value) -> SlowPathControl {
- finish_binary_slow_path_with_boolean(
- vm,
- pc,
- op::LooselyEquals::LENGTH,
- destination,
- loosely_equals(vm, lhs, rhs),
- )
+pub fn loosely_equals_values(
+ vm: &Vm,
+ pc: u32,
+ destination: &Cell<Value>,
+ lhs: Value,
+ rhs: Value,
+ length: u32,
+) -> SlowPathControl {
+ finish_binary_slow_path_with_boolean(vm, pc, length, destination, loosely_equals(vm, lhs, rhs))
}
-pub fn loosely_inequals_values(vm: &Vm, pc: u32, destination: &Cell<Value>, lhs: Value, rhs: Value) -> SlowPathControl {
- finish_binary_slow_path_with_boolean(
- vm,
- pc,
- op::LooselyInequals::LENGTH,
- destination,
- loosely_inequals(vm, lhs, rhs),
- )
+pub fn loosely_inequals_values(
+ vm: &Vm,
+ pc: u32,
+ destination: &Cell<Value>,
+ lhs: Value,
+ rhs: Value,
+ length: u32,
+) -> SlowPathControl {
+ finish_binary_slow_path_with_boolean(vm, pc, length, destination, loosely_inequals(vm, lhs, rhs))
}
pub fn unary_minus(vm: &Vm, pc: u32, values: &mut op::UnaryMinusValues) -> SlowPathControl {
diff --git a/Libraries/LibJS/Rust/src/interpreter/slow_paths/property_access.rs b/Libraries/LibJS/Rust/src/interpreter/slow_paths/property_access.rs
index ddd629ea95c..1743ff8382f 100644
--- a/Libraries/LibJS/Rust/src/interpreter/slow_paths/property_access.rs
+++ b/Libraries/LibJS/Rust/src/interpreter/slow_paths/property_access.rs
@@ -13,14 +13,16 @@ use ak::Utf16FlyString;
use libjs_abi::PutKind;
use libjs_abi::value as nan_box;
+use super::strict_at;
use crate::bytecode::encoding::{IdentifierTableIndex, OptionalIndex};
use crate::bytecode::executable::{
Executable, KeyedPropertyLookup, KeyedPropertyLookupCache, ObjectPropertyIteratorCache,
ObjectPropertyIteratorCacheData, ObjectPropertyIteratorFastPath, PropertyLookupCache, PropertyLookupCacheEntryType,
};
use crate::bytecode::op;
+use crate::bytecode::operand::UNCACHED_SITE;
use crate::bytecode::property_access::{
- self, GetByIdMode, Strict, base_object_for_get, get_by_value_with_keyed_cache, get_cached_property_value,
+ self, GetByIdMode, base_object_for_get, get_by_value_with_keyed_cache, get_cached_property_value,
get_with_property_lookup_cache, object_can_cache_property_additions, property_addition_is_cacheable,
put_by_property_key, throw_if_nullish_put_base,
};
@@ -48,10 +50,6 @@ use crate::runtime::reference::Reference;
use crate::runtime::shape::ShapeKey;
use crate::runtime::typed_array::{Kind, is_valid_integer_index, typed_array_of_object};
-fn strict_of(header_strict: bool) -> Strict {
- if header_strict { Strict::Yes } else { Strict::No }
-}
-
pub(crate) fn put_kind_from_operand(kind: u32) -> PutKind {
match kind {
0 => PutKind::Normal,
@@ -234,7 +232,7 @@ pub fn put_by_id(vm: &Vm, pc: u32, instruction: &op::PutById, values: &mut op::P
|| optional_identifier(vm, &instruction.base_identifier),
property_key,
put_kind_from_operand(instruction.kind),
- strict_of(instruction.header.strict),
+ strict_at(vm, pc),
Some(cache),
0,
)
@@ -264,7 +262,7 @@ pub fn put_by_id_with_this(
|| None,
name,
put_kind_from_operand(instruction.kind),
- strict_of(instruction.header.strict),
+ strict_at(vm, pc),
Some(cache),
0,
)
@@ -474,7 +472,7 @@ pub fn put_by_value(
base,
|| optional_identifier(vm, &instruction.base_identifier),
&property,
- strict_of(instruction.header.strict),
+ strict_at(vm, pc),
)
);
let property_key = asm_try!(vm, pc, property.to_property_key(vm));
@@ -496,7 +494,7 @@ pub fn put_by_value(
|| optional_identifier(vm, &instruction.base_identifier),
&property_key,
put_kind_from_operand(instruction.kind),
- strict_of(instruction.header.strict),
+ strict_at(vm, pc),
Some(cache),
cache_key,
)
@@ -511,7 +509,7 @@ pub fn put_by_value(
asm_try!(
vm,
pc,
- put_by_value_with_keyed_store_cache(vm, instruction, base, property, value, &property_key)
+ put_by_value_with_keyed_store_cache(vm, pc, instruction, base, property, value, &property_key)
);
return SlowPathControl::continue_at(pc + op::PutByValue::LENGTH);
}
@@ -526,7 +524,7 @@ pub fn put_by_value(
|| optional_identifier(vm, &instruction.base_identifier),
&property_key,
put_kind_from_operand(instruction.kind),
- strict_of(instruction.header.strict),
+ strict_at(vm, pc),
None,
0,
)
@@ -541,6 +539,7 @@ pub fn put_by_value(
/// to make generically otherwise, so that other puts it cannot make only pay for the lookup.
fn put_by_value_with_keyed_store_cache(
vm: &Vm,
+ pc: u32,
instruction: &op::PutByValue,
base: Value,
key: Value,
@@ -561,7 +560,7 @@ fn put_by_value_with_keyed_store_cache(
|| optional_identifier(vm, &instruction.base_identifier),
property_key,
PutKind::Normal,
- strict_of(instruction.header.strict),
+ strict_at(vm, pc),
cache,
cache_key,
)
@@ -633,13 +632,7 @@ pub fn put_by_value_with_this(
asm_try!(
vm,
pc,
- throw_if_nullish_put_base(
- vm,
- base,
- || None,
- &values.property,
- strict_of(instruction.header.strict)
- )
+ throw_if_nullish_put_base(vm, base, || None, &values.property, strict_at(vm, pc))
);
let property_key = asm_try!(vm, pc, values.property.to_property_key(vm));
asm_try!(
@@ -653,7 +646,7 @@ pub fn put_by_value_with_this(
|| None,
&property_key,
put_kind_from_operand(instruction.kind),
- strict_of(instruction.header.strict),
+ strict_at(vm, pc),
None,
0,
)
@@ -686,7 +679,7 @@ pub fn delete_by_id(
let result = asm_try!(
vm,
pc,
- Reference::with_base_value(values.base, property_key, None, strict_of(instruction.header.strict)).delete_(vm)
+ Reference::with_base_value(values.base, property_key, None, strict_at(vm, pc)).delete_(vm)
);
values.dst = Value::from_bool(result);
SlowPathControl::continue_at(pc + op::DeleteById::LENGTH)
@@ -695,7 +688,7 @@ pub fn delete_by_id(
pub fn delete_by_value(
vm: &Vm,
pc: u32,
- instruction: &op::DeleteByValue,
+ _instruction: &op::DeleteByValue,
values: &mut op::DeleteByValueValues,
) -> SlowPathControl {
// NB: delete converts the base to an object before it converts the key to a property key.
@@ -706,7 +699,7 @@ pub fn delete_by_value(
let result = asm_try!(
vm,
pc,
- Reference::with_base_value(values.base, property_key, None, strict_of(instruction.header.strict)).delete_(vm)
+ Reference::with_base_value(values.base, property_key, None, strict_at(vm, pc)).delete_(vm)
);
values.dst = Value::from_bool(result);
SlowPathControl::continue_at(pc + op::DeleteByValue::LENGTH)
@@ -752,9 +745,9 @@ pub fn create_data_property_or_throw(
pub fn new_object(vm: &Vm, pc: u32, instruction: &op::NewObject, values: &mut op::NewObjectValues) -> SlowPathControl {
let realm = vm.current_realm().expect("there is a current realm");
- if instruction.cache != u32::MAX {
+ if u32::from(instruction.cache) != UNCACHED_SITE {
let executable = vm.current_executable();
- let cache = executable.object_shape_cache(instruction.cache);
+ let cache = executable.object_shape_cache(instruction.cache.into());
if let Some(cached_shape) = cache.shape.get() {
values.dst = Value::from_object(Object::create_with_premade_shape(vm, cached_shape));
return SlowPathControl::continue_at(pc + op::NewObject::LENGTH);
@@ -781,8 +774,11 @@ pub fn cache_object_shape(
instruction: &op::CacheObjectShape,
values: &mut op::CacheObjectShapeValues,
) -> SlowPathControl {
+ if u32::from(instruction.cache) == UNCACHED_SITE {
+ return SlowPathControl::continue_at(pc + op::CacheObjectShape::LENGTH);
+ }
let executable = vm.current_executable();
- let cache = executable.object_shape_cache(instruction.cache);
+ let cache = executable.object_shape_cache(instruction.cache.into());
if cache.shape.get().is_none() {
let object = values.object.as_object();
if !object.shape().is_dictionary() {
@@ -1459,7 +1455,7 @@ pub fn try_inline_get_by_id_accessor(vm: &Vm, pc: u32, instruction: &op::GetById
getter_function.inline_call_executable(),
&[],
pc + instruction.length(),
- instruction.dst.0,
+ instruction.dst.0.into(),
Value::from_object(object),
None,
false,
diff --git a/Libraries/LibJS/Rust/src/jit/calls.rs b/Libraries/LibJS/Rust/src/jit/calls.rs
index 460a574890f..074f1c80334 100644
--- a/Libraries/LibJS/Rust/src/jit/calls.rs
+++ b/Libraries/LibJS/Rust/src/jit/calls.rs
@@ -661,7 +661,7 @@ pub unsafe extern "C" fn libjs_jit_call(vm: *const Vm, frame: *mut ExecutionCont
frame,
pc,
return_pc: pc + length,
- dst: dst.0,
+ dst: dst.0.into(),
};
let control = match opcode {
@@ -791,7 +791,7 @@ fn call_spreading_arguments_from_jit(
frame,
pc,
return_pc: pc + op::CallWithArgumentArray::LENGTH,
- dst: call.dst.0,
+ dst: call.dst.0.into(),
};
// NB: Iterate an arguments object (whose iterator is the original one, since nothing saw it) like the spread does,
// which is observable if %ArrayIteratorPrototype%.next is not the original.
@@ -840,13 +840,14 @@ pub unsafe extern "C" fn libjs_jit_call_forwarding_arguments(
return call_spreading_arguments_from_jit(vm, frame, pc, call).0;
}
let call = instruction_at::<op::Call>(&executable, pc);
- assert_eq!(call.argument_count, 2);
+ let argument_count = call.argument_count;
+ assert_eq!(argument_count, 2);
let slots = frame_ref.slots();
let site = JitCallSite {
frame,
pc,
return_pc: pc + call.length(),
- dst: call.dst.0,
+ dst: call.dst.0.into(),
};
// 20.2.3.1 Function.prototype.apply ( thisArg, argArray ), https://tc39.es/ecma262/#sec-function.prototype.apply
@@ -1152,7 +1153,7 @@ pub fn get_by_id_from_jit(
frame,
pc,
return_pc: pc + op::GetById::LENGTH,
- dst: instruction.dst.0,
+ dst: instruction.dst.0.into(),
};
let control = call_ecmascript_function_from_jit(vm, &site, function, values.base, &[]);
if control.continues_in_frame() {
diff --git a/Tests/LibJS/Bytecode/expected/annex-b-function-in-if.txt b/Tests/LibJS/Bytecode/expected/annex-b-function-in-if.txt
index e9858bae570..6feae14223a 100644
--- a/Tests/LibJS/Bytecode/expected/annex-b-function-in-if.txt
+++ b/Tests/LibJS/Bytecode/expected/annex-b-function-in-if.txt
@@ -1,4 +1,4 @@
-$7e20502e annex-b-function-in-if.js:13:1
+$f9d7ab1a annex-b-function-in-if.js:13:1
Registers: 9
Blocks: 1
Constants:
@@ -8,21 +8,21 @@ $7e20502e annex-b-function-in-if.js:13:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `console`
- [ 28] GetById value_feedback:1, dst:reg7, base:reg6, `log`
- [ 40] GetGlobal value_feedback:2, dst:reg8, `annexBFunctionInIf`
- [ 50] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined, arguments:[Bool(true)]
- [ 78] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ a0] GetGlobal value_feedback:5, dst:reg6, `console`
- [ b0] GetById value_feedback:6, dst:reg7, base:reg6, `log`
- [ c8] GetGlobal value_feedback:7, dst:reg8, `annexBFunctionInIf`
- [ d8] Call value_feedback:8, call_feedback:2, dst:reg8, callee:reg8, this_value:Undefined, arguments:[Bool(false)]
- [ 100] Call value_feedback:9, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 128] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `console`
+ [ f] GetById value_feedback:1, dst:reg7, base:reg6, `log`
+ [ 1c] GetGlobal value_feedback:2, dst:reg8, `annexBFunctionInIf`
+ [ 25] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined, arguments:[Bool(true)]
+ [ 3c] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 53] GetGlobal value_feedback:5, dst:reg6, `console`
+ [ 5c] GetById value_feedback:6, dst:reg7, base:reg6, `log`
+ [ 69] GetGlobal value_feedback:7, dst:reg8, `annexBFunctionInIf`
+ [ 72] Call value_feedback:8, call_feedback:2, dst:reg8, callee:reg8, this_value:Undefined, arguments:[Bool(false)]
+ [ 89] Call value_feedback:9, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ a0] End value:reg5
-annexBFunctionInIf$c86c2a51 annex-b-function-in-if.js:2:10
+annexBFunctionInIf$795c4ed3 annex-b-function-in-if.js:2:10
Registers: 6
Blocks: 4
Locals: inner~0, inner~1, inner~2
@@ -31,24 +31,24 @@ annexBFunctionInIf$c86c2a51 annex-b-function-in-if.js:2:10
block0:
[ 0] Enter
- [ 8] Mov dst:inner~0, src:Undefined
- [ 18] JumpFalse condition:arg0, target:block2
+ [ 1] Mov dst:inner~0, src:Undefined
+ [ 6] JumpFalse condition:arg0, target:block2
block1:
- [ 28] NewFunction dst:inner~1, shared_function_data_index:0
- [ 40] Mov dst:inner~0, src:inner~1
- [ 50] Jump target:block3
+ [ d] NewFunction dst:inner~1, shared_function_data_index:0
+ [ 18] Mov dst:inner~0, src:inner~1
+ [ 1d] Jump target:block3
block2:
- [ 58] NewFunction dst:inner~2, shared_function_data_index:1
- [ 70] Mov dst:inner~0, src:inner~2
+ [ 22] NewFunction dst:inner~2, shared_function_data_index:1
+ [ 2d] Mov dst:inner~0, src:inner~2
block3:
- [ 80] Call value_feedback:0, call_feedback:0, dst:reg5, callee:inner~0, this_value:Undefined
- [ a0] Return value:reg5
+ [ 32] Call value_feedback:0, call_feedback:0, dst:reg5, callee:inner~0, this_value:Undefined
+ [ 47] Return value:reg5
-inner$3192ffc2 annex-b-function-in-if.js:4:13
+inner$7507ed16 annex-b-function-in-if.js:4:13
Registers: 5
Blocks: 1
Constants:
@@ -56,10 +56,10 @@ inner$3192ffc2 annex-b-function-in-if.js:4:13
block0:
[ 0] Enter
- [ 8] Return value:String("true branch")
+ [ 1] Return value:String("true branch")
-inner$081ea88e annex-b-function-in-if.js:8:13
+inner$ca319d5a annex-b-function-in-if.js:8:13
Registers: 5
Blocks: 1
Constants:
@@ -67,7 +67,7 @@ inner$081ea88e annex-b-function-in-if.js:8:13
block0:
[ 0] Enter
- [ 8] Return value:String("false branch")
+ [ 1] Return value:String("false branch")
"true branch"
diff --git a/Tests/LibJS/Bytecode/expected/annexb-function-existing-var.txt b/Tests/LibJS/Bytecode/expected/annexb-function-existing-var.txt
index 66b41861248..1845915f9f6 100644
--- a/Tests/LibJS/Bytecode/expected/annexb-function-existing-var.txt
+++ b/Tests/LibJS/Bytecode/expected/annexb-function-existing-var.txt
@@ -1,4 +1,4 @@
-$d0a338ae annexb-function-existing-var.js:10:1
+$3d020c49 annexb-function-existing-var.js:10:1
Registers: 7
Blocks: 1
Constants:
@@ -6,25 +6,24 @@ $d0a338ae annexb-function-existing-var.js:10:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `test`
- [ 28] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 48] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `test`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 24] End value:reg5
-test$7e3c78a8 annexb-function-existing-var.js:2:9
+test$6a55b74e annexb-function-existing-var.js:2:9
Registers: 5
Blocks: 1
Locals: f~0, f~1
Constants:
[0] = Undefined
[1] = Int32(123)
- [2] = Bool(true)
block0:
[ 0] Enter
- [ 8] Mov dst:f~0, src:Undefined
- [ 18] Mov dst:f~0, src:Int32(123)
- [ 28] NewFunction dst:f~1, shared_function_data_index:0
- [ 40] Mov dst:f~0, src:f~1
- [ 50] Return value:f~0
+ [ 1] Mov dst:f~0, src:Undefined
+ [ 6] Mov dst:f~0, src:Int32(123)
+ [ b] NewFunction dst:f~1, shared_function_data_index:0
+ [ 16] Mov dst:f~0, src:f~1
+ [ 1b] Return value:f~0
diff --git a/Tests/LibJS/Bytecode/expected/annexb-var-coordinate-with-default-param.txt b/Tests/LibJS/Bytecode/expected/annexb-var-coordinate-with-default-param.txt
index 40eba95a136..4b027f761a1 100644
--- a/Tests/LibJS/Bytecode/expected/annexb-var-coordinate-with-default-param.txt
+++ b/Tests/LibJS/Bytecode/expected/annexb-var-coordinate-with-default-param.txt
@@ -1,4 +1,4 @@
-$c5390f08 annexb-var-coordinate-with-default-param.js:12:1
+$09ca5fef annexb-var-coordinate-with-default-param.js:12:1
Registers: 7
Blocks: 1
Constants:
@@ -6,13 +6,13 @@ $c5390f08 annexb-var-coordinate-with-default-param.js:12:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `f`
- [ 28] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 48] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `f`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 24] End value:reg5
-f$7d6f9ea4 annexb-var-coordinate-with-default-param.js:3:12
+f$4362e813 annexb-var-coordinate-with-default-param.js:3:12
Registers: 7
Blocks: 3
Locals: g~0, g~1
@@ -20,37 +20,36 @@ f$7d6f9ea4 annexb-var-coordinate-with-default-param.js:3:12
[0] = Int32(1)
[1] = Undefined
[2] = Int32(2)
- [3] = Bool(true)
block0:
[ 0] Enter
- [ 8] CreateVariable `x`, is_immutable:false, is_global:false, is_strict:false
- [ 18] GetLexicalEnvironment dst:reg4
- [ 20] JumpUndefined condition:arg0, true_target:block1, false_target:block2
+ [ 1] CreateVariable `x`, is_immutable:false, is_global:false, is_strict:false
+ [ b] GetLexicalEnvironment dst:reg4
+ [ e] JumpUndefined condition:arg0, true_target:block1, false_target:block2
block1:
- [ 30] Mov dst:arg0, src:Int32(1)
+ [ 19] Mov dst:arg0, src:Int32(1)
block2:
- [ 40] InitializeLexicalBinding `x`, src:arg0
- [ 58] CreateVariableEnvironment capacity:1
- [ 60] GetLexicalEnvironment dst:reg5
- [ 68] Mov dst:g~0, src:Undefined
- [ 78] CreateVariable `y`, is_immutable:false, is_global:false, is_strict:false
- [ 88] InitializeLexicalBinding `y`, src:Int32(2)
- [ a0] NewFunction dst:g~1, shared_function_data_index:0
- [ b8] Mov dst:g~0, src:g~1
- [ c8] Call value_feedback:0, call_feedback:0, dst:reg6, callee:g~0, this_value:Undefined
- [ e8] Return value:reg6
-
-
-g$27f07b98 annexb-var-coordinate-with-default-param.js:7:13
+ [ 1e] InitializeLexicalBinding `x`, src:arg0
+ [ 2b] CreateVariableEnvironment capacity:1
+ [ 30] GetLexicalEnvironment dst:reg5
+ [ 33] Mov dst:g~0, src:Undefined
+ [ 38] CreateVariable `y`, is_immutable:false, is_global:false, is_strict:false
+ [ 42] InitializeLexicalBinding `y`, src:Int32(2)
+ [ 4f] NewFunction dst:g~1, shared_function_data_index:0
+ [ 5a] Mov dst:g~0, src:g~1
+ [ 5f] Call value_feedback:0, call_feedback:0, dst:reg6, callee:g~0, this_value:Undefined
+ [ 74] Return value:reg6
+
+
+g$a4e6f593 annexb-var-coordinate-with-default-param.js:7:13
Registers: 7
Blocks: 1
block0:
[ 0] Enter
- [ 8] GetBinding value_feedback:0, dst:reg5, `x`
- [ 20] GetBinding value_feedback:1, dst:reg6, `y`
- [ 38] Add arith_feedback:0, dst:reg5, lhs:reg5, rhs:reg6
- [ 48] Return value:reg5
+ [ 1] GetBinding value_feedback:0, dst:reg5, `x`
+ [ 10] GetBinding value_feedback:1, dst:reg6, `y`
+ [ 1f] Add arith_feedback:0, dst:reg5, lhs:reg5, rhs:reg6
+ [ 28] Return value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/argument-postfix-self-move.txt b/Tests/LibJS/Bytecode/expected/argument-postfix-self-move.txt
index afe664e93cd..47d08fdfd13 100644
--- a/Tests/LibJS/Bytecode/expected/argument-postfix-self-move.txt
+++ b/Tests/LibJS/Bytecode/expected/argument-postfix-self-move.txt
@@ -1,4 +1,4 @@
-$916dd419 argument-postfix-self-move.js:5:1
+$549d2c78 argument-postfix-self-move.js:5:1
Registers: 7
Blocks: 1
Constants:
@@ -7,17 +7,17 @@ $916dd419 argument-postfix-self-move.js:5:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `f`
- [ 28] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(10)]
- [ 50] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `f`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(10)]
+ [ 26] End value:reg5
-f$7aefafb7 argument-postfix-self-move.js:2:6
+f$2d8761b6 argument-postfix-self-move.js:2:6
Registers: 5
Blocks: 1
block0:
[ 0] Enter
- [ 8] Decrement arith_feedback:0, dst:arg0
- [ 10] Return value:arg0
+ [ 1] Decrement arith_feedback:0, dst:arg0
+ [ 6] Return value:arg0
diff --git a/Tests/LibJS/Bytecode/expected/argument-variables.txt b/Tests/LibJS/Bytecode/expected/argument-variables.txt
index 214c6ebf405..669946dccdd 100644
--- a/Tests/LibJS/Bytecode/expected/argument-variables.txt
+++ b/Tests/LibJS/Bytecode/expected/argument-variables.txt
@@ -1,4 +1,4 @@
-$ba294ac8 argument-variables.js:12:1
+$371fc4c3 argument-variables.js:12:1
Registers: 7
Blocks: 1
Constants:
@@ -8,28 +8,28 @@ $ba294ac8 argument-variables.js:12:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `identity`
- [ 28] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(1)]
- [ 50] GetGlobal value_feedback:2, dst:reg6, `swap`
- [ 60] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(1), Int32(2)]
- [ 88] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `identity`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(1)]
+ [ 26] GetGlobal value_feedback:2, dst:reg6, `swap`
+ [ 2f] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(1), Int32(2)]
+ [ 48] End value:reg5
-identity$f6a18ea3 argument-variables.js:5:5
+identity$348e99d7 argument-variables.js:5:5
Registers: 5
Blocks: 1
block0:
[ 0] Enter
- [ 8] Return value:arg0
+ [ 1] Return value:arg0
-swap$d149ca94 argument-variables.js:9:5
+swap$67aee809 argument-variables.js:9:5
Registers: 6
Blocks: 1
block0:
[ 0] Enter
- [ 8] Add arith_feedback:0, dst:reg5, lhs:arg1, rhs:arg0
- [ 18] Return value:reg5
+ [ 1] Add arith_feedback:0, dst:reg5, lhs:arg1, rhs:arg0
+ [ a] Return value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/arguments-with-arguments-fn.txt b/Tests/LibJS/Bytecode/expected/arguments-with-arguments-fn.txt
index 32c90bd3c60..969d40098d8 100644
--- a/Tests/LibJS/Bytecode/expected/arguments-with-arguments-fn.txt
+++ b/Tests/LibJS/Bytecode/expected/arguments-with-arguments-fn.txt
@@ -1,4 +1,4 @@
-$28d58d80 arguments-with-arguments-fn.js:4:1
+$6d66de67 arguments-with-arguments-fn.js:4:1
Registers: 7
Blocks: 1
Constants:
@@ -6,13 +6,13 @@ $28d58d80 arguments-with-arguments-fn.js:4:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `f`
- [ 28] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 48] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `f`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 24] End value:reg5
-f$a062956e arguments-with-arguments-fn.js:1:12
+f$f1ab3812 arguments-with-arguments-fn.js:1:12
Registers: 5
Blocks: 3
Locals: arguments~0
@@ -22,12 +22,12 @@ f$a062956e arguments-with-arguments-fn.js:1:12
block0:
[ 0] Enter
- [ 8] JumpUndefined condition:arg0, true_target:block1, false_target:block2
+ [ 1] JumpUndefined condition:arg0, true_target:block1, false_target:block2
block1:
- [ 18] Mov dst:arg0, src:Int32(1)
+ [ c] Mov dst:arg0, src:Int32(1)
block2:
- [ 28] Mov dst:arguments~0, src:Undefined
- [ 38] NewFunction dst:arguments~0, shared_function_data_index:0
- [ 50] End value:Undefined
+ [ 11] Mov dst:arguments~0, src:Undefined
+ [ 16] NewFunction dst:arguments~0, shared_function_data_index:0
+ [ 21] End value:Undefined
diff --git a/Tests/LibJS/Bytecode/expected/assign-to-argument-no-tdz.txt b/Tests/LibJS/Bytecode/expected/assign-to-argument-no-tdz.txt
index 0472dd23816..beb309d834c 100644
--- a/Tests/LibJS/Bytecode/expected/assign-to-argument-no-tdz.txt
+++ b/Tests/LibJS/Bytecode/expected/assign-to-argument-no-tdz.txt
@@ -1,4 +1,4 @@
-$36778e37 assign-to-argument-no-tdz.js:11:1
+$e3875e16 assign-to-argument-no-tdz.js:11:1
Registers: 7
Blocks: 1
Constants:
@@ -7,13 +7,13 @@ $36778e37 assign-to-argument-no-tdz.js:11:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `f`
- [ 28] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(0)]
- [ 50] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `f`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(0)]
+ [ 26] End value:reg5
-f$d1ced614 assign-to-argument-no-tdz.js:6:9
+f$b59c418a assign-to-argument-no-tdz.js:6:9
Registers: 5
Blocks: 1
Locals: y~0
@@ -22,6 +22,6 @@ f$d1ced614 assign-to-argument-no-tdz.js:6:9
block0:
[ 0] Enter
- [ 8] Mov dst:y~0, src:Int32(1)
- [ 18] Mov dst:arg0, src:y~0
- [ 28] Return value:arg0
+ [ 1] Mov dst:y~0, src:Int32(1)
+ [ 6] Mov dst:arg0, src:y~0
+ [ b] Return value:arg0
diff --git a/Tests/LibJS/Bytecode/expected/assign-to-let-variable-tdz.txt b/Tests/LibJS/Bytecode/expected/assign-to-let-variable-tdz.txt
index 3dd64d367ac..df4132bd859 100644
--- a/Tests/LibJS/Bytecode/expected/assign-to-let-variable-tdz.txt
+++ b/Tests/LibJS/Bytecode/expected/assign-to-let-variable-tdz.txt
@@ -1,4 +1,4 @@
-$ba294ac8 assign-to-let-variable-tdz.js:12:1
+$68557e3a assign-to-let-variable-tdz.js:12:1
Registers: 8
Blocks: 1
Constants:
@@ -7,16 +7,16 @@ $ba294ac8 assign-to-let-variable-tdz.js:12:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `f`
- [ 28] NewObject dst:reg7
- [ 38] InitObjectLiteralProperty object:reg7, `location`, src:String("hello"), shape_cache_index:0, property_slot:0
- [ 50] CacheObjectShape object:reg7
- [ 60] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
- [ 88] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `f`
+ [ f] NewObject dst:reg7
+ [ 14] InitObjectLiteralProperty object:reg7, `location`, src:String("hello"), shape_cache_index:0, property_slot:0
+ [ 23] CacheObjectShape object:reg7
+ [ 28] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
+ [ 3f] End value:reg5
-f$d11be5f1 assign-to-let-variable-tdz.js:7:5
+f$bdc04e81 assign-to-let-variable-tdz.js:7:5
Registers: 7
Blocks: 3
Locals: a~0
@@ -27,27 +27,27 @@ f$d11be5f1 assign-to-let-variable-tdz.js:7:5
block0:
[ 0] Enter
- [ 8] Mov dst:a~0, src:<Empty>
- [ 18] ThrowIfNullish src:arg0
- [ 20] Mov dst:reg5, src:arg0
- [ 30] GetById value_feedback:0, dst:a~0, base:reg5, `location`
- [ 48] Typeof dst:reg5, src:a~0
- [ 58] LooselyEquals arith_feedback:0, dst:reg5, lhs:String("string"), rhs:reg5
- [ 68] JumpFalse condition:reg5, target:block2
+ [ 1] Mov dst:a~0, src:<Empty>
+ [ 6] ThrowIfNullish src:arg0
+ [ 9] Mov dst:reg5, src:arg0
+ [ e] GetById value_feedback:0, dst:a~0, base:reg5, `location`
+ [ 1b] Typeof dst:reg5, src:a~0
+ [ 20] LooselyEquals arith_feedback:0, dst:reg5, lhs:String("string"), rhs:reg5
+ [ 29] JumpFalse condition:reg5, target:block2
block1:
- [ 78] GetGlobal value_feedback:1, dst:reg6, `g`
- [ 88] Call value_feedback:2, call_feedback:0, dst:a~0, callee:reg6, this_value:Undefined, arguments:[a~0]
- [ b0] Mov dst:reg5, src:a~0
+ [ 30] GetGlobal value_feedback:1, dst:reg6, `g`
+ [ 39] Call value_feedback:2, call_feedback:0, dst:a~0, callee:reg6, this_value:Undefined, arguments:[a~0]
+ [ 50] Mov dst:reg5, src:a~0
block2:
- [ c0] Return value:a~0
+ [ 55] Return value:a~0
-g$702c1d97 assign-to-let-variable-tdz.js:4:17
+g$323f1263 assign-to-let-variable-tdz.js:4:17
Registers: 5
Blocks: 1
block0:
[ 0] Enter
- [ 8] Return value:arg0
+ [ 1] Return value:arg0
diff --git a/Tests/LibJS/Bytecode/expected/assign-to-parameter.txt b/Tests/LibJS/Bytecode/expected/assign-to-parameter.txt
index 187d26fdfe2..bb2ae58d05e 100644
--- a/Tests/LibJS/Bytecode/expected/assign-to-parameter.txt
+++ b/Tests/LibJS/Bytecode/expected/assign-to-parameter.txt
@@ -1,4 +1,4 @@
-$136acfcc assign-to-parameter.js:8:1
+$d69a282b assign-to-parameter.js:8:1
Registers: 7
Blocks: 1
Constants:
@@ -6,13 +6,13 @@ $136acfcc assign-to-parameter.js:8:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `isect`
- [ 28] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 48] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `isect`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 24] End value:reg5
-isect$cb769f09 assign-to-parameter.js:5:9
+isect$f4608550 assign-to-parameter.js:5:9
Registers: 5
Blocks: 1
Constants:
@@ -20,5 +20,5 @@ isect$cb769f09 assign-to-parameter.js:5:9
block0:
[ 0] Enter
- [ 8] Mov dst:arg0, src:arg1
- [ 18] End value:Undefined
+ [ 1] Mov dst:arg0, src:arg1
+ [ 6] End value:Undefined
diff --git a/Tests/LibJS/Bytecode/expected/async-await-in-try-catch.txt b/Tests/LibJS/Bytecode/expected/async-await-in-try-catch.txt
index 65c7e45ec9e..e4fc47ded89 100644
--- a/Tests/LibJS/Bytecode/expected/async-await-in-try-catch.txt
+++ b/Tests/LibJS/Bytecode/expected/async-await-in-try-catch.txt
@@ -1,4 +1,4 @@
-$818af885 async-await-in-try-catch.js:9:1
+$ec423ea3 async-await-in-try-catch.js:9:1
Registers: 8
Blocks: 1
Constants:
@@ -6,14 +6,14 @@ $818af885 async-await-in-try-catch.js:9:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `f`
- [ 28] NewObject dst:reg7
- [ 38] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
- [ 60] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `f`
+ [ f] NewObject dst:reg7
+ [ 14] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
+ [ 2b] End value:reg5
-f$055cd79c async-await-in-try-catch.js:2:5
+f$4c20dfea async-await-in-try-catch.js:2:5
Registers: 10
Blocks: 7
Locals: e~0
@@ -24,36 +24,36 @@ f$055cd79c async-await-in-try-catch.js:2:5
block0:
[ 0] Enter
- [ 8] GetLexicalEnvironment dst:reg4
+ [ 1] GetLexicalEnvironment dst:reg4
block1:
- [ 10] EnterObjectEnvironment dst:reg5, object:arg0
- [ 20] Mov dst:reg6, src:reg0
- [ 30] Await continuation_label:block2, argument:Int32(1)
+ [ 4] EnterObjectEnvironment dst:reg5, object:arg0
+ [ 9] Mov dst:reg6, src:reg0
+ [ e] Await continuation_label:block2, argument:Int32(1)
block2:
- [ 40] Mov dst:reg6, src:reg0
- [ 50] GetCompletionFields type_dst:reg7, value_dst:reg8, completion:reg6
- [ 60] StrictlyEqualsRhsInt32 arith_feedback:0, dst:reg9, lhs:reg7, rhs:1
- [ 70] JumpIf condition:reg9, true_target:block4, false_target:block3
+ [ 15] Mov dst:reg6, src:reg0
+ [ 1a] GetCompletionFields type_dst:reg7, value_dst:reg8, completion:reg6
+ [ 21] StrictlyEqualsRhsInt32 arith_feedback:0, dst:reg9, lhs:reg7, rhs:1
+ [ 2c] JumpIf condition:reg9, true_target:block4, false_target:block3
block3:
- [ 80] Throw src:reg8
+ [ 37] Throw src:reg8
block4:
- [ 88] Mov dst:reg6, src:reg8
- [ 98] SetLexicalEnvironment environment:reg4
- [ a0] Jump target:block6
+ [ 3a] Mov dst:reg6, src:reg8
+ [ 3f] SetLexicalEnvironment environment:reg4
+ [ 42] Jump target:block6
block5:
- [ a8] Catch value_feedback:0, dst:reg5
- [ b0] SetLexicalEnvironment environment:reg4
- [ b8] Mov dst:e~0, src:<Empty>
- [ c8] Mov dst:e~0, src:reg5
- [ d8] Jump target:block6
+ [ 47] Catch value_feedback:0, dst:reg5
+ [ 4c] SetLexicalEnvironment environment:reg4
+ [ 4f] Mov dst:e~0, src:<Empty>
+ [ 54] Mov dst:e~0, src:reg5
+ [ 59] Jump target:block6
block6:
- [ e0] Yield value:Undefined
+ [ 5e] Yield value:Undefined
Exception handlers:
- [ 10 .. a8] => handler block5
+ [ 4 .. 47] => handler block5
diff --git a/Tests/LibJS/Bytecode/expected/async-await.txt b/Tests/LibJS/Bytecode/expected/async-await.txt
index 79d6aff327d..97c1e803fbb 100644
--- a/Tests/LibJS/Bytecode/expected/async-await.txt
+++ b/Tests/LibJS/Bytecode/expected/async-await.txt
@@ -1,4 +1,4 @@
-$faa11ddd async-await.js:9:1
+$1d77f81a async-await.js:9:1
Registers: 7
Blocks: 1
Constants:
@@ -6,36 +6,35 @@ $faa11ddd async-await.js:9:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `f`
- [ 28] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 48] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `f`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 24] End value:reg5
-f$4cf5fc59 async-await.js:7:5
+f$f6257795 async-await.js:7:5
Registers: 10
Blocks: 4
Constants:
[0] = Int32(42)
- [1] = Int32(1)
block0:
[ 0] Enter
- [ 8] GetGlobal value_feedback:0, dst:reg5, `Promise`
- [ 18] GetById value_feedback:1, dst:reg6, base:reg5, `resolve`
- [ 30] Call value_feedback:2, call_feedback:0, dst:reg5, callee:reg6, this_value:reg5, arguments:[Int32(42)]
- [ 58] Mov dst:reg6, src:reg0
- [ 68] Await continuation_label:block1, argument:reg5
+ [ 1] GetGlobal value_feedback:0, dst:reg5, `Promise`
+ [ a] GetById value_feedback:1, dst:reg6, base:reg5, `resolve`
+ [ 17] Call value_feedback:2, call_feedback:0, dst:reg5, callee:reg6, this_value:reg5, arguments:[Int32(42)]
+ [ 2e] Mov dst:reg6, src:reg0
+ [ 33] Await continuation_label:block1, argument:reg5
block1:
- [ 78] Mov dst:reg6, src:reg0
- [ 88] GetCompletionFields type_dst:reg7, value_dst:reg8, completion:reg6
- [ 98] StrictlyEqualsRhsInt32 arith_feedback:0, dst:reg9, lhs:reg7, rhs:1
- [ a8] JumpIf condition:reg9, true_target:block3, false_target:block2
+ [ 3a] Mov dst:reg6, src:reg0
+ [ 3f] GetCompletionFields type_dst:reg7, value_dst:reg8, completion:reg6
+ [ 46] StrictlyEqualsRhsInt32 arith_feedback:0, dst:reg9, lhs:reg7, rhs:1
+ [ 51] JumpIf condition:reg9, true_target:block3, false_target:block2
block2:
- [ b8] Throw src:reg8
+ [ 5c] Throw src:reg8
block3:
- [ c0] Mov dst:reg5, src:reg8
- [ d0] Yield value:reg5
+ [ 5f] Mov dst:reg5, src:reg8
+ [ 64] Yield value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/async-generator-yield-await.txt b/Tests/LibJS/Bytecode/expected/async-generator-yield-await.txt
index c91e342625c..65566a2aca9 100644
--- a/Tests/LibJS/Bytecode/expected/async-generator-yield-await.txt
+++ b/Tests/LibJS/Bytecode/expected/async-generator-yield-await.txt
@@ -1,4 +1,4 @@
-$676feeea async-generator-yield-await.js:6:1
+$b4d83ceb async-generator-yield-await.js:6:1
Registers: 7
Blocks: 1
Constants:
@@ -7,96 +7,93 @@ $676feeea async-generator-yield-await.js:6:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `f`
- [ 28] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(1)]
- [ 50] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `f`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(1)]
+ [ 26] End value:reg5
-f$62cc1714 async-generator-yield-await.js:4:5
+f$5f5a409e async-generator-yield-await.js:4:5
Registers: 15
Blocks: 19
Constants:
[0] = Undefined
- [1] = Int32(1)
- [2] = Int32(4)
- [3] = Int32(5)
block0:
[ 0] Enter
- [ 8] Yield continuation_label:block1, value:Undefined
+ [ 1] Yield continuation_label:block1, value:Undefined
block1:
- [ 18] Mov dst:reg5, src:reg0
- [ 28] Await continuation_label:block2, argument:arg0
+ [ 9] Mov dst:reg5, src:reg0
+ [ e] Await continuation_label:block2, argument:arg0
block2:
- [ 38] Mov dst:reg5, src:reg0
- [ 48] GetCompletionFields type_dst:reg6, value_dst:reg7, completion:reg5
- [ 58] StrictlyEqualsRhsInt32 arith_feedback:0, dst:reg8, lhs:reg6, rhs:1
- [ 68] JumpIf condition:reg8, true_target:block4, false_target:block3
+ [ 15] Mov dst:reg5, src:reg0
+ [ 1a] GetCompletionFields type_dst:reg6, value_dst:reg7, completion:reg5
+ [ 21] StrictlyEqualsRhsInt32 arith_feedback:0, dst:reg8, lhs:reg6, rhs:1
+ [ 2c] JumpIf condition:reg8, true_target:block4, false_target:block3
block3:
- [ 78] Throw src:reg7
+ [ 37] Throw src:reg7
block4:
- [ 80] Mov dst:reg5, src:reg7
- [ 90] Await continuation_label:block5, argument:reg5
+ [ 3a] Mov dst:reg5, src:reg7
+ [ 3f] Await continuation_label:block5, argument:reg5
block5:
- [ a0] Mov dst:reg6, src:reg0
- [ b0] GetCompletionFields type_dst:reg7, value_dst:reg8, completion:reg6
- [ c0] StrictlyEqualsRhsInt32 arith_feedback:1, dst:reg9, lhs:reg7, rhs:1
- [ d0] JumpIf condition:reg9, true_target:block7, false_target:block6
+ [ 46] Mov dst:reg6, src:reg0
+ [ 4b] GetCompletionFields type_dst:reg7, value_dst:reg8, completion:reg6
+ [ 52] StrictlyEqualsRhsInt32 arith_feedback:1, dst:reg9, lhs:reg7, rhs:1
+ [ 5d] JumpIf condition:reg9, true_target:block7, false_target:block6
block6:
- [ e0] Throw src:reg8
+ [ 68] Throw src:reg8
block7:
- [ e8] Yield continuation_label:block8, value:reg8
+ [ 6b] Yield continuation_label:block8, value:reg8
block8:
- [ f8] Mov dst:reg6, src:reg0
- [ 108] GetCompletionFields type_dst:reg7, value_dst:reg8, completion:reg6
- [ 118] StrictlyInequalsRhsInt32 arith_feedback:2, dst:reg10, lhs:reg7, rhs:4
- [ 128] JumpIf condition:reg10, true_target:block14, false_target:block9
+ [ 73] Mov dst:reg6, src:reg0
+ [ 78] GetCompletionFields type_dst:reg7, value_dst:reg8, completion:reg6
+ [ 7f] StrictlyInequalsRhsInt32 arith_feedback:2, dst:reg10, lhs:reg7, rhs:4
+ [ 8a] JumpIf condition:reg10, true_target:block14, false_target:block9
block9:
- [ 138] Await continuation_label:block10, argument:reg8
+ [ 95] Await continuation_label:block10, argument:reg8
block10:
- [ 148] Mov dst:reg6, src:reg0
- [ 158] GetCompletionFields type_dst:reg7, value_dst:reg8, completion:reg6
- [ 168] StrictlyEqualsRhsInt32 arith_feedback:3, dst:reg11, lhs:reg7, rhs:1
- [ 178] JumpIf condition:reg11, true_target:block12, false_target:block11
+ [ 9c] Mov dst:reg6, src:reg0
+ [ a1] GetCompletionFields type_dst:reg7, value_dst:reg8, completion:reg6
+ [ a8] StrictlyEqualsRhsInt32 arith_feedback:3, dst:reg11, lhs:reg7, rhs:1
+ [ b3] JumpIf condition:reg11, true_target:block12, false_target:block11
block11:
- [ 188] Throw src:reg8
+ [ be] Throw src:reg8
block12:
- [ 190] StrictlyEqualsRhsInt32 arith_feedback:4, dst:reg12, lhs:reg7, rhs:5
- [ 1a0] JumpIf condition:reg12, true_target:block14, false_target:block13
+ [ c1] StrictlyEqualsRhsInt32 arith_feedback:4, dst:reg12, lhs:reg7, rhs:5
+ [ cc] JumpIf condition:reg12, true_target:block14, false_target:block13
block13:
- [ 1b0] SetCompletionType completion:reg6
- [ 1c0] Jump target:block14
+ [ d7] SetCompletionType completion:reg6
+ [ de] Jump target:block14
block14:
- [ 1c8] Mov dst:reg6, src:reg0
- [ 1d8] GetCompletionFields type_dst:reg7, value_dst:reg8, completion:reg6
- [ 1e8] StrictlyEqualsRhsInt32 arith_feedback:5, dst:reg13, lhs:reg7, rhs:1
- [ 1f8] JumpIf condition:reg13, true_target:block18, false_target:block15
+ [ e3] Mov dst:reg6, src:reg0
+ [ e8] GetCompletionFields type_dst:reg7, value_dst:reg8, completion:reg6
+ [ ef] StrictlyEqualsRhsInt32 arith_feedback:5, dst:reg13, lhs:reg7, rhs:1
+ [ fa] JumpIf condition:reg13, true_target:block18, false_target:block15
block15:
- [ 208] StrictlyEqualsRhsInt32 arith_feedback:6, dst:reg14, lhs:reg7, rhs:5
- [ 218] JumpIf condition:reg14, true_target:block16, false_target:block17
+ [ 105] StrictlyEqualsRhsInt32 arith_feedback:6, dst:reg14, lhs:reg7, rhs:5
+ [ 110] JumpIf condition:reg14, true_target:block16, false_target:block17
block16:
- [ 228] Throw src:reg8
+ [ 11b] Throw src:reg8
block17:
- [ 230] Yield value:reg8
+ [ 11e] Yield value:reg8
block18:
- [ 240] Mov dst:reg5, src:reg8
- [ 250] Yield value:Undefined
+ [ 126] Mov dst:reg5, src:reg8
+ [ 12b] Yield value:Undefined
diff --git a/Tests/LibJS/Bytecode/expected/async-generator-yield.txt b/Tests/LibJS/Bytecode/expected/async-generator-yield.txt
index 3dcb9f60ac0..1c7b07ab5f3 100644
--- a/Tests/LibJS/Bytecode/expected/async-generator-yield.txt
+++ b/Tests/LibJS/Bytecode/expected/async-generator-yield.txt
@@ -1,4 +1,4 @@
-$4ea63cfb async-generator-yield.js:7:1
+$fbb60cda async-generator-yield.js:7:1
Registers: 7
Blocks: 1
Constants:
@@ -7,82 +7,79 @@ $4ea63cfb async-generator-yield.js:7:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `f`
- [ 28] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(1)]
- [ 50] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `f`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(1)]
+ [ 26] End value:reg5
-f$1da6a868 async-generator-yield.js:5:5
+f$4fd609f6 async-generator-yield.js:5:5
Registers: 14
Blocks: 16
Constants:
[0] = Undefined
- [1] = Int32(1)
- [2] = Int32(4)
- [3] = Int32(5)
block0:
[ 0] Enter
- [ 8] Yield continuation_label:block1, value:Undefined
+ [ 1] Yield continuation_label:block1, value:Undefined
block1:
- [ 18] Await continuation_label:block2, argument:arg0
+ [ 9] Await continuation_label:block2, argument:arg0
block2:
- [ 28] Mov dst:reg5, src:reg0
- [ 38] GetCompletionFields type_dst:reg6, value_dst:reg7, completion:reg5
- [ 48] StrictlyEqualsRhsInt32 arith_feedback:0, dst:reg8, lhs:reg6, rhs:1
- [ 58] JumpIf condition:reg8, true_target:block4, false_target:block3
+ [ 10] Mov dst:reg5, src:reg0
+ [ 15] GetCompletionFields type_dst:reg6, value_dst:reg7, completion:reg5
+ [ 1c] StrictlyEqualsRhsInt32 arith_feedback:0, dst:reg8, lhs:reg6, rhs:1
+ [ 27] JumpIf condition:reg8, true_target:block4, false_target:block3
block3:
- [ 68] Throw src:reg7
+ [ 32] Throw src:reg7
block4:
- [ 70] Yield continuation_label:block5, value:reg7
+ [ 35] Yield continuation_label:block5, value:reg7
block5:
- [ 80] Mov dst:reg5, src:reg0
- [ 90] GetCompletionFields type_dst:reg6, value_dst:reg7, completion:reg5
- [ a0] StrictlyInequalsRhsInt32 arith_feedback:1, dst:reg9, lhs:reg6, rhs:4
- [ b0] JumpIf condition:reg9, true_target:block11, false_target:block6
+ [ 3d] Mov dst:reg5, src:reg0
+ [ 42] GetCompletionFields type_dst:reg6, value_dst:reg7, completion:reg5
+ [ 49] StrictlyInequalsRhsInt32 arith_feedback:1, dst:reg9, lhs:reg6, rhs:4
+ [ 54] JumpIf condition:reg9, true_target:block11, false_target:block6
block6:
- [ c0] Await continuation_label:block7, argument:reg7
+ [ 5f] Await continuation_label:block7, argument:reg7
block7:
- [ d0] Mov dst:reg5, src:reg0
- [ e0] GetCompletionFields type_dst:reg6, value_dst:reg7, completion:reg5
- [ f0] StrictlyEqualsRhsInt32 arith_feedback:2, dst:reg10, lhs:reg6, rhs:1
- [ 100] JumpIf condition:reg10, true_target:block9, false_target:block8
+ [ 66] Mov dst:reg5, src:reg0
+ [ 6b] GetCompletionFields type_dst:reg6, value_dst:reg7, completion:reg5
+ [ 72] StrictlyEqualsRhsInt32 arith_feedback:2, dst:reg10, lhs:reg6, rhs:1
+ [ 7d] JumpIf condition:reg10, true_target:block9, false_target:block8
block8:
- [ 110] Throw src:reg7
+ [ 88] Throw src:reg7
block9:
- [ 118] StrictlyEqualsRhsInt32 arith_feedback:3, dst:reg11, lhs:reg6, rhs:5
- [ 128] JumpIf condition:reg11, true_target:block11, false_target:block10
+ [ 8b] StrictlyEqualsRhsInt32 arith_feedback:3, dst:reg11, lhs:reg6, rhs:5
+ [ 96] JumpIf condition:reg11, true_target:block11, false_target:block10
block10:
- [ 138] SetCompletionType completion:reg5
- [ 148] Jump target:block11
+ [ a1] SetCompletionType completion:reg5
+ [ a8] Jump target:block11
block11:
- [ 150] Mov dst:reg5, src:reg0
- [ 160] GetCompletionFields type_dst:reg6, value_dst:reg7, completion:reg5
- [ 170] StrictlyEqualsRhsInt32 arith_feedback:4, dst:reg12, lhs:reg6, rhs:1
- [ 180] JumpIf condition:reg12, true_target:block15, false_target:block12
+ [ ad] Mov dst:reg5, src:reg0
+ [ b2] GetCompletionFields type_dst:reg6, value_dst:reg7, completion:reg5
+ [ b9] StrictlyEqualsRhsInt32 arith_feedback:4, dst:reg12, lhs:reg6, rhs:1
+ [ c4] JumpIf condition:reg12, true_target:block15, false_target:block12
block12:
- [ 190] StrictlyEqualsRhsInt32 arith_feedback:5, dst:reg13, lhs:reg6, rhs:5
- [ 1a0] JumpIf condition:reg13, true_target:block13, false_target:block14
+ [ cf] StrictlyEqualsRhsInt32 arith_feedback:5, dst:reg13, lhs:reg6, rhs:5
+ [ da] JumpIf condition:reg13, true_target:block13, false_target:block14
block13:
- [ 1b0] Throw src:reg7
+ [ e5] Throw src:reg7
block14:
- [ 1b8] Yield value:reg7
+ [ e8] Yield value:reg7
block15:
- [ 1c8] Mov dst:reg5, src:reg7
- [ 1d8] Yield value:Undefined
+ [ f0] Mov dst:reg5, src:reg7
+ [ f5] Yield value:Undefined
diff --git a/Tests/LibJS/Bytecode/expected/async-return-bare.txt b/Tests/LibJS/Bytecode/expected/async-return-bare.txt
index 4e4527deab2..9911a349897 100644
--- a/Tests/LibJS/Bytecode/expected/async-return-bare.txt
+++ b/Tests/LibJS/Bytecode/expected/async-return-bare.txt
@@ -1,4 +1,4 @@
-$28d58d80 async-return-bare.js:4:1
+$6d66de67 async-return-bare.js:4:1
Registers: 7
Blocks: 1
Constants:
@@ -6,13 +6,13 @@ $28d58d80 async-return-bare.js:4:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `f`
- [ 28] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 48] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `f`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 24] End value:reg5
-f$68537474 async-return-bare.js:2:5
+f$b5bbc275 async-return-bare.js:2:5
Registers: 5
Blocks: 1
Constants:
@@ -20,4 +20,4 @@ f$68537474 async-return-bare.js:2:5
block0:
[ 0] Enter
- [ 8] Yield value:Undefined
+ [ 1] Yield value:Undefined
diff --git a/Tests/LibJS/Bytecode/expected/baseline.txt b/Tests/LibJS/Bytecode/expected/baseline.txt
index ef5342160ae..41c75d36787 100644
--- a/Tests/LibJS/Bytecode/expected/baseline.txt
+++ b/Tests/LibJS/Bytecode/expected/baseline.txt
@@ -1,4 +1,4 @@
-$8ea9e309 baseline.js:5:1
+$916dd419 baseline.js:5:1
Registers: 9
Blocks: 1
Constants:
@@ -8,23 +8,23 @@ $8ea9e309 baseline.js:5:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `console`
- [ 28] GetById value_feedback:1, dst:reg7, base:reg6, `log`
- [ 40] GetGlobal value_feedback:2, dst:reg8, `add`
- [ 50] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined, arguments:[Int32(1), Int32(2)]
- [ 78] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ a0] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `console`
+ [ f] GetById value_feedback:1, dst:reg7, base:reg6, `log`
+ [ 1c] GetGlobal value_feedback:2, dst:reg8, `add`
+ [ 25] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined, arguments:[Int32(1), Int32(2)]
+ [ 3e] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 55] End value:reg5
-add$1b0f3483 baseline.js:2:5
+add$927dcc5e baseline.js:2:5
Registers: 6
Blocks: 1
block0:
[ 0] Enter
- [ 8] Add arith_feedback:0, dst:reg5, lhs:arg0, rhs:arg1
- [ 18] Return value:reg5
+ [ 1] Add arith_feedback:0, dst:reg5, lhs:arg0, rhs:arg1
+ [ a] Return value:reg5
3
diff --git a/Tests/LibJS/Bytecode/expected/bigint-binary-literal-fold.txt b/Tests/LibJS/Bytecode/expected/bigint-binary-literal-fold.txt
index 64482086493..5005ade1b2c 100644
--- a/Tests/LibJS/Bytecode/expected/bigint-binary-literal-fold.txt
+++ b/Tests/LibJS/Bytecode/expected/bigint-binary-literal-fold.txt
@@ -1,14 +1,12 @@
-$6ed542b5 bigint-binary-literal-fold.js:1:1
+$4d1acc0b bigint-binary-literal-fold.js:1:1
Registers: 6
Blocks: 1
Constants:
[0] = Undefined
- [1] = BigInt(3n)
- [2] = BigInt(1n)
- [3] = BigInt(1n)
+ [1] = BigInt(1n)
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] Mov dst:reg5, src:BigInt(1n)
- [ 28] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] Mov dst:reg5, src:BigInt(1n)
+ [ b] End value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/bigint-constant-folding.txt b/Tests/LibJS/Bytecode/expected/bigint-constant-folding.txt
index 24e02d6f23f..ba875abb2d4 100644
--- a/Tests/LibJS/Bytecode/expected/bigint-constant-folding.txt
+++ b/Tests/LibJS/Bytecode/expected/bigint-constant-folding.txt
@@ -1,44 +1,27 @@
-$0f6f4eb1 bigint-constant-folding.js:1:5
+$82fd91e9 bigint-constant-folding.js:1:5
Registers: 6
Blocks: 1
Constants:
[0] = Undefined
- [1] = BigInt(1n)
- [2] = BigInt(2n)
- [3] = BigInt(3n)
- [4] = BigInt(10n)
- [5] = BigInt(3n)
- [6] = BigInt(7n)
- [7] = BigInt(2n)
- [8] = BigInt(3n)
- [9] = BigInt(6n)
- [10] = BigInt(10n)
- [11] = BigInt(3n)
- [12] = BigInt(3n)
- [13] = BigInt(10n)
- [14] = BigInt(3n)
- [15] = BigInt(1n)
- [16] = BigInt(2n)
- [17] = BigInt(3n)
- [18] = BigInt(8n)
- [19] = BigInt(1n)
- [20] = BigInt(1n)
- [21] = Bool(true)
- [22] = BigInt(1n)
- [23] = Int32(1)
- [24] = BigInt(1n)
- [25] = BigInt(-2n)
+ [1] = BigInt(3n)
+ [2] = BigInt(7n)
+ [3] = BigInt(6n)
+ [4] = BigInt(3n)
+ [5] = BigInt(1n)
+ [6] = BigInt(8n)
+ [7] = Bool(true)
+ [8] = BigInt(-2n)
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] SetGlobal `a`, src:BigInt(3n)
- [ 28] SetGlobal `b`, src:BigInt(7n)
- [ 38] SetGlobal `c`, src:BigInt(6n)
- [ 48] SetGlobal `d`, src:BigInt(3n)
- [ 58] SetGlobal `e`, src:BigInt(1n)
- [ 68] SetGlobal `f`, src:BigInt(8n)
- [ 78] SetGlobal `g`, src:Bool(true)
- [ 88] SetGlobal `h`, src:Bool(true)
- [ 98] SetGlobal `i`, src:BigInt(-2n)
- [ a8] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] SetGlobal `a`, src:BigInt(3n)
+ [ d] SetGlobal `b`, src:BigInt(7n)
+ [ 14] SetGlobal `c`, src:BigInt(6n)
+ [ 1b] SetGlobal `d`, src:BigInt(3n)
+ [ 22] SetGlobal `e`, src:BigInt(1n)
+ [ 29] SetGlobal `f`, src:BigInt(8n)
+ [ 30] SetGlobal `g`, src:Bool(true)
+ [ 37] SetGlobal `h`, src:Bool(true)
+ [ 3e] SetGlobal `i`, src:BigInt(-2n)
+ [ 45] End value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/bigint-large-constant-folding.txt b/Tests/LibJS/Bytecode/expected/bigint-large-constant-folding.txt
index 0a7873ec8bf..c29f197713b 100644
--- a/Tests/LibJS/Bytecode/expected/bigint-large-constant-folding.txt
+++ b/Tests/LibJS/Bytecode/expected/bigint-large-constant-folding.txt
@@ -1,22 +1,16 @@
-$a89ab222 bigint-large-constant-folding.js:2:5
+$d564ed0c bigint-large-constant-folding.js:2:5
Registers: 6
Blocks: 1
Constants:
[0] = Undefined
- [1] = BigInt(18364758544493064720n)
- [2] = BigInt(18364758544493064720n)
- [3] = BigInt(337264356397531028994973048178108678400n)
- [4] = BigInt(340282366920938463463374607431768211455n)
- [5] = BigInt(1n)
- [6] = BigInt(340282366920938463463374607431768211456n)
- [7] = BigInt(18364758544493064720n)
- [8] = BigInt(3n)
- [9] = BigInt(6193778470904512180693671865081363252814433915244866048000n)
+ [1] = BigInt(337264356397531028994973048178108678400n)
+ [2] = BigInt(340282366920938463463374607431768211456n)
+ [3] = BigInt(6193778470904512180693671865081363252814433915244866048000n)
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] SetGlobal `a`, src:BigInt(337264356397531028994973048178108678400n)
- [ 28] SetGlobal `b`, src:BigInt(340282366920938463463374607431768211456n)
- [ 38] SetGlobal `c`, src:BigInt(6193778470904512180693671865081363252814433915244866048000n)
- [ 48] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] SetGlobal `a`, src:BigInt(337264356397531028994973048178108678400n)
+ [ d] SetGlobal `b`, src:BigInt(340282366920938463463374607431768211456n)
+ [ 14] SetGlobal `c`, src:BigInt(6193778470904512180693671865081363252814433915244866048000n)
+ [ 1b] End value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/bigint-truthiness.txt b/Tests/LibJS/Bytecode/expected/bigint-truthiness.txt
index 1ce753c3e7e..3622c03e06f 100644
--- a/Tests/LibJS/Bytecode/expected/bigint-truthiness.txt
+++ b/Tests/LibJS/Bytecode/expected/bigint-truthiness.txt
@@ -1,48 +1,39 @@
-$797b0455 bigint-truthiness.js:2:5
+$8f2c0ea8 bigint-truthiness.js:2:5
Registers: 7
Blocks: 4
Constants:
[0] = Undefined
- [1] = BigInt(0n)
- [2] = String("truthy")
- [3] = String("falsy")
- [4] = BigInt(0n)
- [5] = BigInt(0n)
- [6] = BigInt(0n)
- [7] = BigInt(1n)
- [8] = BigInt(1n)
- [9] = BigInt(1n)
- [10] = BigInt(0n)
- [11] = Bool(true)
- [12] = BigInt(0n)
- [13] = Bool(false)
+ [1] = String("truthy")
+ [2] = String("falsy")
+ [3] = Bool(true)
+ [4] = Bool(false)
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] Mov dst:reg6, src:String("falsy")
- [ 28] SetGlobal `a`, src:reg6
- [ 38] Mov dst:reg6, src:String("falsy")
- [ 48] SetGlobal `b`, src:reg6
- [ 58] Mov dst:reg6, src:String("falsy")
- [ 68] SetGlobal `c`, src:reg6
- [ 78] Mov dst:reg6, src:String("falsy")
- [ 88] SetGlobal `d`, src:reg6
- [ 98] Mov dst:reg6, src:String("truthy")
- [ a8] Jump target:block1
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] Mov dst:reg6, src:String("falsy")
+ [ b] SetGlobal `a`, src:reg6
+ [ 12] Mov dst:reg6, src:String("falsy")
+ [ 17] SetGlobal `b`, src:reg6
+ [ 1e] Mov dst:reg6, src:String("falsy")
+ [ 23] SetGlobal `c`, src:reg6
+ [ 2a] Mov dst:reg6, src:String("falsy")
+ [ 2f] SetGlobal `d`, src:reg6
+ [ 36] Mov dst:reg6, src:String("truthy")
+ [ 3b] Jump target:block1
block1:
- [ b0] SetGlobal `e`, src:reg6
- [ c0] Mov dst:reg6, src:String("truthy")
- [ d0] Jump target:block2
+ [ 40] SetGlobal `e`, src:reg6
+ [ 47] Mov dst:reg6, src:String("truthy")
+ [ 4c] Jump target:block2
block2:
- [ d8] SetGlobal `f`, src:reg6
- [ e8] Mov dst:reg6, src:String("truthy")
- [ f8] Jump target:block3
+ [ 51] SetGlobal `f`, src:reg6
+ [ 58] Mov dst:reg6, src:String("truthy")
+ [ 5d] Jump target:block3
block3:
- [ 100] SetGlobal `g`, src:reg6
- [ 110] SetGlobal `h`, src:Bool(true)
- [ 120] SetGlobal `i`, src:Bool(false)
- [ 130] End value:reg5
+ [ 62] SetGlobal `g`, src:reg6
+ [ 69] SetGlobal `h`, src:Bool(true)
+ [ 70] SetGlobal `i`, src:Bool(false)
+ [ 77] End value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/bitwise-numeric-preconvert.txt b/Tests/LibJS/Bytecode/expected/bitwise-numeric-preconvert.txt
index 68a57874287..b37c778f24a 100644
--- a/Tests/LibJS/Bytecode/expected/bitwise-numeric-preconvert.txt
+++ b/Tests/LibJS/Bytecode/expected/bitwise-numeric-preconvert.txt
@@ -1,4 +1,4 @@
-$aa378608 bitwise-numeric-preconvert.js:4:1
+$0dbf5c89 bitwise-numeric-preconvert.js:4:1
Registers: 7
Blocks: 1
Constants:
@@ -7,13 +7,13 @@ $aa378608 bitwise-numeric-preconvert.js:4:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `test`
- [ 28] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(1)]
- [ 50] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `test`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(1)]
+ [ 26] End value:reg5
-test$65b6c8dc bitwise-numeric-preconvert.js:2:5
+test$f957f541 bitwise-numeric-preconvert.js:2:5
Registers: 6
Blocks: 1
Constants:
@@ -21,5 +21,5 @@ test$65b6c8dc bitwise-numeric-preconvert.js:2:5
block0:
[ 0] Enter
- [ 8] RightShift arith_feedback:0, dst:reg5, lhs:Double(2147483648), rhs:arg0
- [ 18] Return value:reg5
+ [ 1] RightShift arith_feedback:0, dst:reg5, lhs:Double(2147483648), rhs:arg0
+ [ a] Return value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/block-function-declaration-order.txt b/Tests/LibJS/Bytecode/expected/block-function-declaration-order.txt
index 6414ce585f4..8f5f3131c59 100644
--- a/Tests/LibJS/Bytecode/expected/block-function-declaration-order.txt
+++ b/Tests/LibJS/Bytecode/expected/block-function-declaration-order.txt
@@ -1,4 +1,4 @@
-$63c57e75 block-function-declaration-order.js:1:1
+$1ea903a4 block-function-declaration-order.js:1:1
Registers: 6
Blocks: 1
Locals: f1~0, f2~1
@@ -7,9 +7,9 @@ $63c57e75 block-function-declaration-order.js:1:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] NewFunction dst:f1~0, shared_function_data_index:0
- [ 30] NewFunction dst:f2~1, shared_function_data_index:1
- [ 48] SetVariableBindingOfBlockFunction `f1`, src:f1~0, program_environment_depth:0
- [ 58] SetVariableBindingOfBlockFunction `f2`, src:f2~1, program_environment_depth:0
- [ 68] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] NewFunction dst:f1~0, shared_function_data_index:0
+ [ 11] NewFunction dst:f2~1, shared_function_data_index:1
+ [ 1c] SetVariableBindingOfBlockFunction `f1`, src:f1~0, program_environment_depth:0
+ [ 25] SetVariableBindingOfBlockFunction `f2`, src:f2~1, program_environment_depth:0
+ [ 2e] End value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/block-scoped-function-no-tdz.txt b/Tests/LibJS/Bytecode/expected/block-scoped-function-no-tdz.txt
index c5319185e81..f78ddf37727 100644
--- a/Tests/LibJS/Bytecode/expected/block-scoped-function-no-tdz.txt
+++ b/Tests/LibJS/Bytecode/expected/block-scoped-function-no-tdz.txt
@@ -1,4 +1,4 @@
-$66896f85 block-scoped-function-no-tdz.js:1:1
+$b24a3009 block-scoped-function-no-tdz.js:1:1
Registers: 7
Blocks: 1
Constants:
@@ -7,14 +7,14 @@ $66896f85 block-scoped-function-no-tdz.js:1:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] Mov dst:reg5, src:String("use strict")
- [ 28] GetGlobal value_feedback:0, dst:reg6, `test`
- [ 38] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 58] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] Mov dst:reg5, src:String("use strict")
+ [ b] GetGlobal value_feedback:0, dst:reg6, `test`
+ [ 14] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 29] End value:reg5
-test$6572c6b9 block-scoped-function-no-tdz.js:3:9
+test$1d925ad8 block-scoped-function-no-tdz.js:3:9
Registers: 6
Blocks: 1
Locals: result~0, foo~1
@@ -23,13 +23,13 @@ test$6572c6b9 block-scoped-function-no-tdz.js:3:9
block0:
[ 0] Enter
- [ 8] Mov dst:result~0, src:Undefined
- [ 18] NewFunction dst:foo~1, shared_function_data_index:0
- [ 30] Call value_feedback:0, call_feedback:0, dst:result~0, callee:foo~1, this_value:Undefined
- [ 50] Return value:result~0
+ [ 1] Mov dst:result~0, src:Undefined
+ [ 6] NewFunction dst:foo~1, shared_function_data_index:0
+ [ 11] Call value_feedback:0, call_feedback:0, dst:result~0, callee:foo~1, this_value:Undefined
+ [ 26] Return value:result~0
-foo$7890849c block-scoped-function-no-tdz.js:5:26
+foo$351b9748 block-scoped-function-no-tdz.js:5:26
Registers: 5
Blocks: 1
Constants:
@@ -37,4 +37,4 @@ foo$7890849c block-scoped-function-no-tdz.js:5:26
block0:
[ 0] Enter
- [ 8] Return value:Int32(42)
+ [ 1] Return value:Int32(42)
diff --git a/Tests/LibJS/Bytecode/expected/block-scoping.txt b/Tests/LibJS/Bytecode/expected/block-scoping.txt
index eec5d42c8bb..840681cf3e9 100644
--- a/Tests/LibJS/Bytecode/expected/block-scoping.txt
+++ b/Tests/LibJS/Bytecode/expected/block-scoping.txt
@@ -1,4 +1,4 @@
-$80e4413e block-scoping.js:13:1
+$b0dadba6 block-scoping.js:13:1
Registers: 9
Blocks: 1
Constants:
@@ -6,21 +6,21 @@ $80e4413e block-scoping.js:13:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `console`
- [ 28] GetById value_feedback:1, dst:reg7, base:reg6, `log`
- [ 40] GetGlobal value_feedback:2, dst:reg8, `closureOverBlockScope`
- [ 50] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined
- [ 70] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 98] GetGlobal value_feedback:5, dst:reg6, `console`
- [ a8] GetById value_feedback:6, dst:reg7, base:reg6, `log`
- [ c0] GetGlobal value_feedback:7, dst:reg8, `breakThroughBlockScopes`
- [ d0] Call value_feedback:8, call_feedback:2, dst:reg8, callee:reg8, this_value:Undefined
- [ f0] Call value_feedback:9, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 118] End value:reg5
-
-
-closureOverBlockScope$987bcbef block-scoping.js:2:15
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `console`
+ [ f] GetById value_feedback:1, dst:reg7, base:reg6, `log`
+ [ 1c] GetGlobal value_feedback:2, dst:reg8, `closureOverBlockScope`
+ [ 25] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined
+ [ 3a] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 51] GetGlobal value_feedback:5, dst:reg6, `console`
+ [ 5a] GetById value_feedback:6, dst:reg7, base:reg6, `log`
+ [ 67] GetGlobal value_feedback:7, dst:reg8, `breakThroughBlockScopes`
+ [ 70] Call value_feedback:8, call_feedback:2, dst:reg8, callee:reg8, this_value:Undefined
+ [ 85] Call value_feedback:9, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 9c] End value:reg5
+
+
+closureOverBlockScope$f1c47f12 block-scoping.js:2:15
Registers: 8
Blocks: 1
Locals: fns~0
@@ -31,100 +31,98 @@ closureOverBlockScope$987bcbef block-scoping.js:2:15
block0:
[ 0] Enter
- [ 8] GetLexicalEnvironment dst:reg4
- [ 10] NewArray dst:fns~0
- [ 20] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false
- [ 38] CreateVariable `x`, is_immutable:false, is_global:false, is_strict:false
- [ 48] InitializeLexicalBinding `x`, src:Int32(1)
- [ 60] GetById value_feedback:0, dst:reg6, base:fns~0, `push`
- [ 78] NewFunction dst:reg7, shared_function_data_index:0
- [ 90] Call value_feedback:1, call_feedback:0, dst:reg6, callee:reg6, this_value:fns~0, arguments:[reg7]
- [ b8] SetLexicalEnvironment environment:reg4
- [ c0] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false
- [ d8] CreateVariable `y`, is_immutable:false, is_global:false, is_strict:false
- [ e8] InitializeLexicalBinding `y`, src:Int32(2)
- [ 100] GetById value_feedback:2, dst:reg6, base:fns~0, `push`
- [ 118] NewFunction dst:reg7, shared_function_data_index:1
- [ 130] Call value_feedback:3, call_feedback:1, dst:reg6, callee:reg6, this_value:fns~0, arguments:[reg7]
- [ 158] SetLexicalEnvironment environment:reg4
- [ 160] GetByValue value_feedback:4, keyed_feedback:0, dst:reg5, base:fns~0, property:Int32(0)
- [ 180] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg5, this_value:fns~0
- [ 1a0] GetByValue value_feedback:6, keyed_feedback:1, dst:reg6, base:fns~0, property:Int32(1)
- [ 1c0] Call value_feedback:7, call_feedback:3, dst:reg6, callee:reg6, this_value:fns~0
- [ 1e0] Add arith_feedback:0, dst:reg5, lhs:reg5, rhs:reg6
- [ 1f0] Return value:reg5
-
-
-$cd30f87a block-scoping.js:5:18
+ [ 1] GetLexicalEnvironment dst:reg4
+ [ 4] NewArray dst:fns~0
+ [ f] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false
+ [ 1d] CreateVariable `x`, is_immutable:false, is_global:false, is_strict:false
+ [ 27] InitializeLexicalBinding `x`, src:Int32(1)
+ [ 34] GetById value_feedback:0, dst:reg6, base:fns~0, `push`
+ [ 41] NewFunction dst:reg7, shared_function_data_index:0
+ [ 4c] Call value_feedback:1, call_feedback:0, dst:reg6, callee:reg6, this_value:fns~0, arguments:[reg7]
+ [ 63] SetLexicalEnvironment environment:reg4
+ [ 66] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false
+ [ 74] CreateVariable `y`, is_immutable:false, is_global:false, is_strict:false
+ [ 7e] InitializeLexicalBinding `y`, src:Int32(2)
+ [ 8b] GetById value_feedback:2, dst:reg6, base:fns~0, `push`
+ [ 98] NewFunction dst:reg7, shared_function_data_index:1
+ [ a3] Call value_feedback:3, call_feedback:1, dst:reg6, callee:reg6, this_value:fns~0, arguments:[reg7]
+ [ ba] SetLexicalEnvironment environment:reg4
+ [ bd] GetByValue value_feedback:4, keyed_feedback:0, dst:reg5, base:fns~0, property:Int32(0)
+ [ cc] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg5, this_value:fns~0
+ [ e1] GetByValue value_feedback:6, keyed_feedback:1, dst:reg6, base:fns~0, property:Int32(1)
+ [ f0] Call value_feedback:7, call_feedback:3, dst:reg6, callee:reg6, this_value:fns~0
+ [ 105] Add arith_feedback:0, dst:reg5, lhs:reg5, rhs:reg6
+ [ 10e] Return value:reg5
+
+
+$fe66b1f1 block-scoping.js:5:18
Registers: 6
Blocks: 1
block0:
[ 0] Enter
- [ 8] GetBinding value_feedback:0, dst:reg5, `x`
- [ 20] Return value:reg5
+ [ 1] GetBinding value_feedback:0, dst:reg5, `x`
+ [ 10] Return value:reg5
-$b50249b6 block-scoping.js:9:18
+$e8fbf43d block-scoping.js:9:18
Registers: 6
Blocks: 1
block0:
[ 0] Enter
- [ 8] GetBinding value_feedback:0, dst:reg5, `y`
- [ 20] Return value:reg5
+ [ 1] GetBinding value_feedback:0, dst:reg5, `y`
+ [ 10] Return value:reg5
-breakThroughBlockScopes$df256a3b block-scoping.js:16:9
+breakThroughBlockScopes$d7877c71 block-scoping.js:16:9
Registers: 7
Blocks: 6
Locals: result~0, i~1, f~2
Constants:
[0] = Undefined
[1] = Int32(0)
- [2] = Int32(1)
- [3] = Int32(3)
block0:
[ 0] Enter
- [ 8] GetLexicalEnvironment dst:reg4
- [ 10] Mov dst:result~0, src:Undefined
- [ 20] Mov dst:i~1, src:Int32(0)
- [ 30] Jump target:block4
+ [ 1] GetLexicalEnvironment dst:reg4
+ [ 4] Mov dst:result~0, src:Undefined
+ [ 9] Mov dst:i~1, src:Int32(0)
+ [ e] Jump target:block4
block1:
- [ 38] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false
- [ 50] CreateVariable `x`, is_immutable:false, is_global:false, is_strict:false
- [ 60] InitializeLexicalBinding `x`, src:i~1
- [ 78] NewFunction dst:f~2, shared_function_data_index:0 (f)
- [ 90] GetBinding value_feedback:0, dst:reg6, `x`
- [ a8] JumpGreaterThanRhsInt32 arith_feedback:0, lhs:reg6, rhs:1, true_target:block2, false_target:block3
+ [ 13] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false
+ [ 21] CreateVariable `x`, is_immutable:false, is_global:false, is_strict:false
+ [ 2b] InitializeLexicalBinding `x`, src:i~1
+ [ 38] NewFunction dst:f~2, shared_function_data_index:0 (f)
+ [ 43] GetBinding value_feedback:0, dst:reg6, `x`
+ [ 52] JumpGreaterThanRhsInt32 arith_feedback:0, lhs:reg6, rhs:1, true_target:block2, false_target:block3
block2:
- [ c0] Mov dst:result~0, src:f~2
- [ d0] SetLexicalEnvironment environment:reg4
- [ d8] Jump target:block5
+ [ 63] Mov dst:result~0, src:f~2
+ [ 68] SetLexicalEnvironment environment:reg4
+ [ 6b] Jump target:block5
block3:
- [ e0] SetLexicalEnvironment environment:reg4
- [ e8] Increment arith_feedback:1, dst:i~1
+ [ 70] SetLexicalEnvironment environment:reg4
+ [ 73] Increment arith_feedback:1, dst:i~1
block4:
- [ f0] JumpLessThanLoopRhsInt32 arith_feedback:2, lhs:i~1, rhs:3, true_target:block1, false_target:block5
+ [ 78] JumpLessThanLoopRhsInt32 arith_feedback:2, lhs:i~1, rhs:3, true_target:block1, false_target:block5
block5:
- [ 108] Call value_feedback:1, call_feedback:0, dst:reg5, callee:result~0, this_value:Undefined
- [ 128] Return value:reg5
+ [ 89] Call value_feedback:1, call_feedback:0, dst:reg5, callee:result~0, this_value:Undefined
+ [ 9e] Return value:reg5
-f$667a1882 block-scoping.js:20:21
+f$94ebe0e9 block-scoping.js:20:21
Registers: 6
Blocks: 1
block0:
[ 0] Enter
- [ 8] GetBinding value_feedback:0, dst:reg5, `x`
- [ 20] Return value:reg5
+ [ 1] GetBinding value_feedback:0, dst:reg5, `x`
+ [ 10] Return value:reg5
3
diff --git a/Tests/LibJS/Bytecode/expected/call-spread-register-order.txt b/Tests/LibJS/Bytecode/expected/call-spread-register-order.txt
index 2630d38b2d0..e01eb59a58c 100644
--- a/Tests/LibJS/Bytecode/expected/call-spread-register-order.txt
+++ b/Tests/LibJS/Bytecode/expected/call-spread-register-order.txt
@@ -1,23 +1,22 @@
-$13106a66 call-spread-register-order.js:2:1
+$a6266ce1 call-spread-register-order.js:2:1
Registers: 9
Blocks: 1
Constants:
[0] = Undefined
[1] = Int32(42)
- [2] = Int32(1)
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `f`
- [ 28] NewArray dst:reg7, elements:[Int32(42)]
- [ 40] NewPrimitiveArray dst:reg8, elements:[1]
- [ 58] ArrayAppend dst:reg7, src:reg8, is_spread:true
- [ 68] CallWithArgumentArray value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:reg7
- [ 88] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `f`
+ [ f] NewArray dst:reg7, elements:[Int32(42)]
+ [ 1c] NewPrimitiveArray dst:reg8, elements:[1]
+ [ 2f] ArrayAppend dst:reg7, src:reg8, is_spread:true
+ [ 35] CallWithArgumentArray value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:reg7
+ [ 44] End value:reg5
-f$f948a77b
+f$3cbd94cf
Registers: 5
Blocks: 1
Constants:
@@ -25,4 +24,4 @@ f$f948a77b
block0:
[ 0] Enter
- [ 8] End value:Undefined
+ [ 1] End value:Undefined
diff --git a/Tests/LibJS/Bytecode/expected/captured-variables.txt b/Tests/LibJS/Bytecode/expected/captured-variables.txt
index b862aa724bc..3676d7e98ff 100644
--- a/Tests/LibJS/Bytecode/expected/captured-variables.txt
+++ b/Tests/LibJS/Bytecode/expected/captured-variables.txt
@@ -1,4 +1,4 @@
-$c5390f08 captured-variables.js:12:1
+$09ca5fef captured-variables.js:12:1
Registers: 7
Blocks: 1
Constants:
@@ -6,13 +6,13 @@ $c5390f08 captured-variables.js:12:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `outer`
- [ 28] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 48] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `outer`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 24] End value:reg5
-outer$b5cac890 captured-variables.js:5:9
+outer$aabb0450 captured-variables.js:5:9
Registers: 6
Blocks: 1
Locals: inner~0
@@ -22,19 +22,19 @@ outer$b5cac890 captured-variables.js:5:9
block0:
[ 0] Enter
- [ 8] CreateVariable `captured`, is_immutable:false, is_global:false, is_strict:false
- [ 18] Mov dst:inner~0, src:Undefined
- [ 28] NewFunction dst:inner~0, shared_function_data_index:0
- [ 40] InitializeLexicalBinding `captured`, src:Int32(1)
- [ 58] Call value_feedback:0, call_feedback:0, dst:reg5, callee:inner~0, this_value:Undefined
- [ 78] Return value:reg5
+ [ 1] CreateVariable `captured`, is_immutable:false, is_global:false, is_strict:false
+ [ b] Mov dst:inner~0, src:Undefined
+ [ 10] NewFunction dst:inner~0, shared_function_data_index:0
+ [ 1b] InitializeLexicalBinding `captured`, src:Int32(1)
+ [ 28] Call value_feedback:0, call_feedback:0, dst:reg5, callee:inner~0, this_value:Undefined
+ [ 3d] Return value:reg5
-inner$65d3f16d captured-variables.js:7:9
+inner$37622906 captured-variables.js:7:9
Registers: 6
Blocks: 1
block0:
[ 0] Enter
- [ 8] GetBinding value_feedback:0, dst:reg5, `captured`
- [ 20] Return value:reg5
+ [ 1] GetBinding value_feedback:0, dst:reg5, `captured`
+ [ 10] Return value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/catch-scope-boundary.txt b/Tests/LibJS/Bytecode/expected/catch-scope-boundary.txt
index 42931357dbf..81b19f6fdd1 100644
--- a/Tests/LibJS/Bytecode/expected/catch-scope-boundary.txt
+++ b/Tests/LibJS/Bytecode/expected/catch-scope-boundary.txt
@@ -1,4 +1,4 @@
-$be943a25 catch-scope-boundary.js:14:1
+$fca400d5 catch-scope-boundary.js:14:1
Registers: 9
Blocks: 1
Constants:
@@ -6,21 +6,21 @@ $be943a25 catch-scope-boundary.js:14:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `console`
- [ 28] GetById value_feedback:1, dst:reg7, base:reg6, `log`
- [ 40] GetGlobal value_feedback:2, dst:reg8, `throwInCatch`
- [ 50] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined
- [ 70] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 98] GetGlobal value_feedback:5, dst:reg6, `console`
- [ a8] GetById value_feedback:6, dst:reg7, base:reg6, `log`
- [ c0] GetGlobal value_feedback:7, dst:reg8, `throwInCatchWithLocals`
- [ d0] Call value_feedback:8, call_feedback:2, dst:reg8, callee:reg8, this_value:Undefined
- [ f0] Call value_feedback:9, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 118] End value:reg5
-
-
-throwInCatch$db4351ba catch-scope-boundary.js:2:9
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `console`
+ [ f] GetById value_feedback:1, dst:reg7, base:reg6, `log`
+ [ 1c] GetGlobal value_feedback:2, dst:reg8, `throwInCatch`
+ [ 25] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined
+ [ 3a] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 51] GetGlobal value_feedback:5, dst:reg6, `console`
+ [ 5a] GetById value_feedback:6, dst:reg7, base:reg6, `log`
+ [ 67] GetGlobal value_feedback:7, dst:reg8, `throwInCatchWithLocals`
+ [ 70] Call value_feedback:8, call_feedback:2, dst:reg8, callee:reg8, this_value:Undefined
+ [ 85] Call value_feedback:9, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 9c] End value:reg5
+
+
+throwInCatch$adedece6 catch-scope-boundary.js:2:9
Registers: 7
Blocks: 7
Locals: result~0, e~1, e2~2
@@ -33,38 +33,38 @@ throwInCatch$db4351ba catch-scope-boundary.js:2:9
block0:
[ 0] Enter
- [ 8] Mov dst:result~0, src:String("bad")
+ [ 1] Mov dst:result~0, src:String("bad")
block1:
- [ 18] Throw src:Int32(1)
+ [ 6] Throw src:Int32(1)
block2:
- [ 20] Catch value_feedback:0, dst:reg5
- [ 28] Mov dst:e~1, src:<Empty>
- [ 38] Mov dst:e~1, src:reg5
+ [ 9] Catch value_feedback:0, dst:reg5
+ [ e] Mov dst:e~1, src:<Empty>
+ [ 13] Mov dst:e~1, src:reg5
block3:
- [ 48] Throw src:Int32(2)
+ [ 18] Throw src:Int32(2)
block4:
- [ 50] Catch value_feedback:1, dst:reg6
- [ 58] Mov dst:e2~2, src:<Empty>
- [ 68] Mov dst:e2~2, src:reg6
- [ 78] Mov dst:result~0, src:String("good")
- [ 88] Jump target:block5
+ [ 1b] Catch value_feedback:1, dst:reg6
+ [ 20] Mov dst:e2~2, src:<Empty>
+ [ 25] Mov dst:e2~2, src:reg6
+ [ 2a] Mov dst:result~0, src:String("good")
+ [ 2f] Jump target:block5
block5:
- [ 90] Jump target:block6
+ [ 34] Jump target:block6
block6:
- [ 98] Return value:result~0
+ [ 39] Return value:result~0
Exception handlers:
- [ 18 .. 20] => handler block2
- [ 48 .. 50] => handler block4
+ [ 6 .. 9] => handler block2
+ [ 18 .. 1b] => handler block4
-throwInCatchWithLocals$d64ae5e5 catch-scope-boundary.js:17:9
+throwInCatchWithLocals$e1e5d40f catch-scope-boundary.js:17:9
Registers: 8
Blocks: 5
Locals: outerVar~0, e~1, catchLocal~2, inner~3
@@ -78,33 +78,33 @@ throwInCatchWithLocals$d64ae5e5 catch-scope-boundary.js:17:9
block0:
[ 0] Enter
- [ 8] Mov dst:outerVar~0, src:String("outer")
+ [ 1] Mov dst:outerVar~0, src:String("outer")
block1:
- [ 18] Throw src:String("first")
+ [ 6] Throw src:String("first")
block2:
- [ 20] Catch value_feedback:0, dst:reg5
- [ 28] Mov dst:e~1, src:<Empty>
- [ 38] Mov dst:e~1, src:reg5
- [ 48] Add arith_feedback:0, dst:catchLocal~2, lhs:String("local:"), rhs:e~1
+ [ 9] Catch value_feedback:0, dst:reg5
+ [ e] Mov dst:e~1, src:<Empty>
+ [ 13] Mov dst:e~1, src:reg5
+ [ 18] Add arith_feedback:0, dst:catchLocal~2, lhs:String("local:"), rhs:e~1
block3:
- [ 58] Throw src:String("second")
+ [ 21] Throw src:String("second")
block4:
- [ 60] Catch value_feedback:1, dst:reg6
- [ 68] Mov dst:inner~3, src:<Empty>
- [ 78] Mov dst:inner~3, src:reg6
- [ 88] Add arith_feedback:1, dst:reg7, lhs:outerVar~0, rhs:String(",")
- [ 98] Add arith_feedback:2, dst:reg7, lhs:reg7, rhs:catchLocal~2
- [ a8] Add arith_feedback:3, dst:reg7, lhs:reg7, rhs:String(",")
- [ b8] Add arith_feedback:4, dst:reg7, lhs:reg7, rhs:inner~3
- [ c8] Return value:reg7
+ [ 24] Catch value_feedback:1, dst:reg6
+ [ 29] Mov dst:inner~3, src:<Empty>
+ [ 2e] Mov dst:inner~3, src:reg6
+ [ 33] Add arith_feedback:1, dst:reg7, lhs:outerVar~0, rhs:String(",")
+ [ 3c] Add arith_feedback:2, dst:reg7, lhs:reg7, rhs:catchLocal~2
+ [ 45] Add arith_feedback:3, dst:reg7, lhs:reg7, rhs:String(",")
+ [ 4e] Add arith_feedback:4, dst:reg7, lhs:reg7, rhs:inner~3
+ [ 57] Return value:reg7
Exception handlers:
- [ 18 .. 20] => handler block2
- [ 58 .. 60] => handler block4
+ [ 6 .. 9] => handler block2
+ [ 21 .. 24] => handler block4
"good"
diff --git a/Tests/LibJS/Bytecode/expected/chained-member-call.txt b/Tests/LibJS/Bytecode/expected/chained-member-call.txt
index a0ae405cc06..dda0f64cc5a 100644
--- a/Tests/LibJS/Bytecode/expected/chained-member-call.txt
+++ b/Tests/LibJS/Bytecode/expected/chained-member-call.txt
@@ -1,4 +1,4 @@
-$90917f1b chained-member-call.js:12:1
+$7a94b217 chained-member-call.js:12:1
Registers: 7
Blocks: 7
Constants:
@@ -7,61 +7,61 @@ $90917f1b chained-member-call.js:12:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] Mov dst:reg5, src:Undefined
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] Mov dst:reg5, src:Undefined
block1:
- [ 28] GetGlobal value_feedback:0, dst:reg6, `chained_computed_call`
- [ 38] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(0), Int32(0), Int32(0)]
- [ 68] Jump target:block3
+ [ b] GetGlobal value_feedback:0, dst:reg6, `chained_computed_call`
+ [ 14] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(0), Int32(0), Int32(0)]
+ [ 2f] Jump target:block3
block2:
- [ 70] Catch value_feedback:2, dst:reg6
- [ 78] Mov dst:reg5, src:Undefined
- [ 88] Jump target:block3
+ [ 34] Catch value_feedback:2, dst:reg6
+ [ 39] Mov dst:reg5, src:Undefined
+ [ 3e] Jump target:block3
block3:
- [ 90] Mov dst:reg5, src:Undefined
+ [ 43] Mov dst:reg5, src:Undefined
block4:
- [ a0] GetGlobal value_feedback:3, dst:reg6, `chained_dot_call`
- [ b0] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(0)]
- [ d8] Jump target:block6
+ [ 48] GetGlobal value_feedback:3, dst:reg6, `chained_dot_call`
+ [ 51] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(0)]
+ [ 68] Jump target:block6
block5:
- [ e0] Catch value_feedback:5, dst:reg6
- [ e8] Mov dst:reg5, src:Undefined
- [ f8] Jump target:block6
+ [ 6d] Catch value_feedback:5, dst:reg6
+ [ 72] Mov dst:reg5, src:Undefined
+ [ 77] Jump target:block6
block6:
- [ 100] End value:reg5
+ [ 7c] End value:reg5
Exception handlers:
- [ 28 .. 70] => handler block2
- [ a0 .. e0] => handler block5
+ [ b .. 34] => handler block2
+ [ 48 .. 6d] => handler block5
-chained_computed_call$78bf026a chained-member-call.js:5:5
+chained_computed_call$16deb966 chained-member-call.js:5:5
Registers: 7
Blocks: 1
block0:
[ 0] Enter
- [ 8] GetByValue value_feedback:0, keyed_feedback:0, dst:reg5, base:arg0, property:arg1
- [ 28] GetByValue value_feedback:1, keyed_feedback:1, dst:reg5, base:reg5, property:arg2
- [ 48] GetById value_feedback:2, dst:reg6, base:reg5, `foo`
- [ 60] Call value_feedback:3, call_feedback:0, dst:reg5, callee:reg6, this_value:reg5
- [ 80] Return value:reg5
+ [ 1] GetByValue value_feedback:0, keyed_feedback:0, dst:reg5, base:arg0, property:arg1
+ [ 10] GetByValue value_feedback:1, keyed_feedback:1, dst:reg5, base:reg5, property:arg2
+ [ 1f] GetById value_feedback:2, dst:reg6, base:reg5, `foo`
+ [ 2c] Call value_feedback:3, call_feedback:0, dst:reg5, callee:reg6, this_value:reg5
+ [ 41] Return value:reg5
-chained_dot_call$5f87afa0 chained-member-call.js:9:5
+chained_dot_call$de25b718 chained-member-call.js:9:5
Registers: 7
Blocks: 1
block0:
[ 0] Enter
- [ 8] GetById value_feedback:0, dst:reg5, base:arg0, `b`
- [ 20] GetById value_feedback:1, dst:reg5, base:reg5, `c`
- [ 38] GetById value_feedback:2, dst:reg6, base:reg5, `bar`
- [ 50] Call value_feedback:3, call_feedback:0, dst:reg5, callee:reg6, this_value:reg5
- [ 70] Return value:reg5
+ [ 1] GetById value_feedback:0, dst:reg5, base:arg0, `b`
+ [ e] GetById value_feedback:1, dst:reg5, base:reg5, `c`
+ [ 1b] GetById value_feedback:2, dst:reg6, base:reg5, `bar`
+ [ 28] Call value_feedback:3, call_feedback:0, dst:reg5, callee:reg6, this_value:reg5
+ [ 3d] Return value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/class-computed-field-lhs-name.txt b/Tests/LibJS/Bytecode/expected/class-computed-field-lhs-name.txt
index a8515bf1c1f..f4e69e71f98 100644
--- a/Tests/LibJS/Bytecode/expected/class-computed-field-lhs-name.txt
+++ b/Tests/LibJS/Bytecode/expected/class-computed-field-lhs-name.txt
@@ -1,26 +1,24 @@
-$90d14739 class-computed-field-lhs-name.js:1:5
+$d065dfea class-computed-field-lhs-name.js:1:5
Registers: 8
Blocks: 1
Constants:
[0] = Undefined
- [1] = Int32(1)
- [2] = Int32(2)
- [3] = Int32(3)
+ [1] = Int32(3)
block0:
[ 0] Enter
- [ 8] GetLexicalEnvironment dst:reg4
- [ 10] Mov dst:reg5, src:Undefined
- [ 20] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:0, is_catch_environment:false
- [ 38] SetLexicalEnvironment environment:reg4
- [ 40] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0 (C), element_keys:[element_keys:Int32(3)]
- [ 70] SetGlobal `C`, src:reg6
- [ 80] GetGlobal value_feedback:0, dst:reg6, `C`
- [ 90] CallConstruct value_feedback:1, call_feedback:0, dst:reg5, callee:reg6
- [ b0] End value:reg5
+ [ 1] GetLexicalEnvironment dst:reg4
+ [ 4] Mov dst:reg5, src:Undefined
+ [ 9] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:0, is_catch_environment:false
+ [ 17] SetLexicalEnvironment environment:reg4
+ [ 1a] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0 (C), element_keys:[element_keys:Int32(3)]
+ [ 35] SetGlobal `C`, src:reg6
+ [ 3c] GetGlobal value_feedback:0, dst:reg6, `C`
+ [ 45] CallConstruct value_feedback:1, call_feedback:0, dst:reg5, callee:reg6
+ [ 58] End value:reg5
-C$638b9046
+C$259e8512
Registers: 5
Blocks: 1
Constants:
@@ -28,16 +26,16 @@ C$638b9046
block0:
[ 0] Enter
- [ 8] End value:Undefined
+ [ 1] End value:Undefined
-field$dc317dda class-computed-field-lhs-name.js:2:15
+field$12ef1971 class-computed-field-lhs-name.js:2:15
Registers: 7
Blocks: 1
block0:
[ 0] Enter
- [ 8] GetClassFieldInitializerName dst:reg5
- [ 10] NewFunction dst:reg6, shared_function_data_index:0
- [ 28] SetFunctionName function:reg6, name:reg5
- [ 38] Return value:reg6
+ [ 1] GetClassFieldInitializerName dst:reg5
+ [ 4] NewFunction dst:reg6, shared_function_data_index:0
+ [ f] SetFunctionName function:reg6, name:reg5
+ [ 18] Return value:reg6
diff --git a/Tests/LibJS/Bytecode/expected/class-computed-key.txt b/Tests/LibJS/Bytecode/expected/class-computed-key.txt
index c14f013567b..1abd0b8638d 100644
--- a/Tests/LibJS/Bytecode/expected/class-computed-key.txt
+++ b/Tests/LibJS/Bytecode/expected/class-computed-key.txt
@@ -1,4 +1,4 @@
-$d0a338ae class-computed-key.js:10:1
+$3d020c49 class-computed-key.js:10:1
Registers: 7
Blocks: 1
Constants:
@@ -6,24 +6,24 @@ $d0a338ae class-computed-key.js:10:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `f`
- [ 28] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 48] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `f`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 24] End value:reg5
-f$048cbb7a class-computed-key.js:4:5
+f$67835852 class-computed-key.js:4:5
Registers: 9
Blocks: 1
block0:
[ 0] Enter
- [ 8] GetLexicalEnvironment dst:reg4
- [ 10] CreateLexicalEnvironment dst:reg6, parent:reg4, capacity:0, is_catch_environment:false
- [ 28] CreateVariable ``, is_immutable:true, is_global:false, is_strict:true
- [ 38] GetGlobal value_feedback:0, dst:reg7, `Symbol`
- [ 48] GetById value_feedback:1, dst:reg7, base:reg7, `iterator`
- [ 60] ToPrimitiveWithStringHint dst:reg8, value:reg7
- [ 70] SetLexicalEnvironment environment:reg4
- [ 78] NewClass dst:reg5, class_environment:reg6, class_blueprint_index:0, element_keys:[element_keys:reg8]
- [ a8] Return value:reg5
+ [ 1] GetLexicalEnvironment dst:reg4
+ [ 4] CreateLexicalEnvironment dst:reg6, parent:reg4, capacity:0, is_catch_environment:false
+ [ 12] CreateVariable ``, is_immutable:true, is_global:false, is_strict:true
+ [ 1c] GetGlobal value_feedback:0, dst:reg7, `Symbol`
+ [ 25] GetById value_feedback:1, dst:reg7, base:reg7, `iterator`
+ [ 32] ToPrimitiveWithStringHint dst:reg8, value:reg7
+ [ 37] SetLexicalEnvironment environment:reg4
+ [ 3a] NewClass dst:reg5, class_environment:reg6, class_blueprint_index:0, element_keys:[element_keys:reg8]
+ [ 55] Return value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/class-environment.txt b/Tests/LibJS/Bytecode/expected/class-environment.txt
index b22ca740ec6..943ae5ee3c5 100644
--- a/Tests/LibJS/Bytecode/expected/class-environment.txt
+++ b/Tests/LibJS/Bytecode/expected/class-environment.txt
@@ -1,4 +1,4 @@
-$241c3dcd class-environment.js:9:1
+$b9f02199 class-environment.js:9:1
Registers: 9
Blocks: 1
Constants:
@@ -6,16 +6,16 @@ $241c3dcd class-environment.js:9:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `console`
- [ 28] GetById value_feedback:1, dst:reg7, base:reg6, `log`
- [ 40] GetGlobal value_feedback:2, dst:reg8, `classWithName`
- [ 50] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined
- [ 70] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 98] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `console`
+ [ f] GetById value_feedback:1, dst:reg7, base:reg6, `log`
+ [ 1c] GetGlobal value_feedback:2, dst:reg8, `classWithName`
+ [ 25] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined
+ [ 3a] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 51] End value:reg5
-classWithName$f3615e6d class-environment.js:2:9
+classWithName$013513bd class-environment.js:2:9
Registers: 7
Blocks: 1
Locals: C~0
@@ -24,20 +24,20 @@ classWithName$f3615e6d class-environment.js:2:9
block0:
[ 0] Enter
- [ 8] GetLexicalEnvironment dst:reg4
- [ 10] CreateLexicalEnvironment dst:reg6, parent:reg4, capacity:1, is_catch_environment:false
- [ 28] CreateVariable `Foo`, is_immutable:true, is_global:false, is_strict:true
- [ 38] SetLexicalEnvironment environment:reg4
- [ 40] NewClass dst:reg5, class_environment:reg6, class_blueprint_index:0, element_keys:[element_keys:String("method")]
- [ 70] Mov dst:C~0, src:reg5
- [ 80] CallConstruct value_feedback:0, call_feedback:0, dst:reg5, callee:C~0
- [ a0] GetById value_feedback:1, dst:reg6, base:reg5, `method`
- [ b8] Call value_feedback:2, call_feedback:1, dst:reg5, callee:reg6, this_value:reg5
- [ d8] StrictlyEquals arith_feedback:0, dst:reg5, lhs:reg5, rhs:C~0
- [ e8] Return value:reg5
-
-
-Foo$cf27a8b3
+ [ 1] GetLexicalEnvironment dst:reg4
+ [ 4] CreateLexicalEnvironment dst:reg6, parent:reg4, capacity:1, is_catch_environment:false
+ [ 12] CreateVariable `Foo`, is_immutable:true, is_global:false, is_strict:true
+ [ 1c] SetLexicalEnvironment environment:reg4
+ [ 1f] NewClass dst:reg5, class_environment:reg6, class_blueprint_index:0, element_keys:[element_keys:String("method")]
+ [ 3a] Mov dst:C~0, src:reg5
+ [ 3f] CallConstruct value_feedback:0, call_feedback:0, dst:reg5, callee:C~0
+ [ 52] GetById value_feedback:1, dst:reg6, base:reg5, `method`
+ [ 5f] Call value_feedback:2, call_feedback:1, dst:reg5, callee:reg6, this_value:reg5
+ [ 74] StrictlyEquals arith_feedback:0, dst:reg5, lhs:reg5, rhs:C~0
+ [ 7d] Return value:reg5
+
+
+Foo$129c9607
Registers: 5
Blocks: 1
Constants:
@@ -45,17 +45,17 @@ Foo$cf27a8b3
block0:
[ 0] Enter
- [ 8] End value:Undefined
+ [ 1] End value:Undefined
-method$7036d623 class-environment.js:4:13
+method$f8c83e48 class-environment.js:4:13
Registers: 6
Blocks: 1
block0:
[ 0] Enter
- [ 8] GetBinding value_feedback:0, dst:reg5, `Foo`
- [ 20] Return value:reg5
+ [ 1] GetBinding value_feedback:0, dst:reg5, `Foo`
+ [ 10] Return value:reg5
true
diff --git a/Tests/LibJS/Bytecode/expected/class-lhs-name-no-createvariable.txt b/Tests/LibJS/Bytecode/expected/class-lhs-name-no-createvariable.txt
index 7bb24c650fa..cb7eb160b12 100644
--- a/Tests/LibJS/Bytecode/expected/class-lhs-name-no-createvariable.txt
+++ b/Tests/LibJS/Bytecode/expected/class-lhs-name-no-createvariable.txt
@@ -1,4 +1,4 @@
-$8e0d5629 class-lhs-name-no-createvariable.js:1:5
+$0b8efa0e class-lhs-name-no-createvariable.js:1:5
Registers: 8
Blocks: 1
Constants:
@@ -7,10 +7,10 @@ $8e0d5629 class-lhs-name-no-createvariable.js:1:5
block0:
[ 0] Enter
- [ 8] GetLexicalEnvironment dst:reg4
- [ 10] Mov dst:reg5, src:Undefined
- [ 20] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:0, is_catch_environment:false
- [ 38] SetLexicalEnvironment environment:reg4
- [ 40] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0 (x), element_keys:[element_keys:String("method")]
- [ 70] SetGlobal `x`, src:reg6
- [ 80] End value:reg5
+ [ 1] GetLexicalEnvironment dst:reg4
+ [ 4] Mov dst:reg5, src:Undefined
+ [ 9] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:0, is_catch_environment:false
+ [ 17] SetLexicalEnvironment environment:reg4
+ [ 1a] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0 (x), element_keys:[element_keys:String("method")]
+ [ 35] SetGlobal `x`, src:reg6
+ [ 3c] End value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/class-literal-fields.txt b/Tests/LibJS/Bytecode/expected/class-literal-fields.txt
index 169b7663e07..4702c161bfa 100644
--- a/Tests/LibJS/Bytecode/expected/class-literal-fields.txt
+++ b/Tests/LibJS/Bytecode/expected/class-literal-fields.txt
@@ -1,4 +1,4 @@
-$a05c6db7 class-literal-fields.js:12:5
+$3e13b645 class-literal-fields.js:12:5
Registers: 14
Blocks: 1
Constants:
@@ -6,29 +6,29 @@ $a05c6db7 class-literal-fields.js:12:5
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `test`
- [ 28] Call value_feedback:1, call_feedback:0, dst:reg6, callee:reg6, this_value:Undefined
- [ 48] DynamicInitializeLexicalBinding `a`, src:reg6
- [ 58] GetGlobal value_feedback:2, dst:reg6, `console`
- [ 68] GetById value_feedback:3, dst:reg7, base:reg6, `log`
- [ 80] GetGlobal value_feedback:4, dst:reg8, `a`
- [ 90] GetById value_feedback:5, dst:reg8, base:reg8, `x`
- [ a8] GetGlobal value_feedback:6, dst:reg9, `a`
- [ b8] GetById value_feedback:7, dst:reg9, base:reg9, `y`
- [ d0] GetGlobal value_feedback:8, dst:reg10, `a`
- [ e0] GetById value_feedback:9, dst:reg10, base:reg10, `z`
- [ f8] GetGlobal value_feedback:10, dst:reg11, `a`
- [ 108] GetById value_feedback:11, dst:reg11, base:reg11, `w`
- [ 120] GetGlobal value_feedback:12, dst:reg12, `a`
- [ 130] GetById value_feedback:13, dst:reg12, base:reg12, `s`
- [ 148] GetGlobal value_feedback:14, dst:reg13, `a`
- [ 158] GetById value_feedback:15, dst:reg13, base:reg13, `computed`
- [ 170] Call value_feedback:16, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8, reg9, reg10, reg11, reg12, reg13]
- [ 1a8] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `test`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg6, callee:reg6, this_value:Undefined
+ [ 24] DynamicInitializeLexicalBinding `a`, src:reg6
+ [ 2b] GetGlobal value_feedback:2, dst:reg6, `console`
+ [ 34] GetById value_feedback:3, dst:reg7, base:reg6, `log`
+ [ 41] GetGlobal value_feedback:4, dst:reg8, `a`
+ [ 4a] GetById value_feedback:5, dst:reg8, base:reg8, `x`
+ [ 57] GetGlobal value_feedback:6, dst:reg9, `a`
+ [ 60] GetById value_feedback:7, dst:reg9, base:reg9, `y`
+ [ 6d] GetGlobal value_feedback:8, dst:reg10, `a`
+ [ 76] GetById value_feedback:9, dst:reg10, base:reg10, `z`
+ [ 83] GetGlobal value_feedback:10, dst:reg11, `a`
+ [ 8c] GetById value_feedback:11, dst:reg11, base:reg11, `w`
+ [ 99] GetGlobal value_feedback:12, dst:reg12, `a`
+ [ a2] GetById value_feedback:13, dst:reg12, base:reg12, `s`
+ [ af] GetGlobal value_feedback:14, dst:reg13, `a`
+ [ b8] GetById value_feedback:15, dst:reg13, base:reg13, `computed`
+ [ c5] Call value_feedback:16, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8, reg9, reg10, reg11, reg12, reg13]
+ [ e6] End value:reg5
-test$8c6df7bc class-literal-fields.js:2:5
+test$111f0b3e class-literal-fields.js:2:5
Registers: 7
Blocks: 1
Locals: A~0
@@ -42,18 +42,18 @@ test$8c6df7bc class-literal-fields.js:2:5
block0:
[ 0] Enter
- [ 8] GetLexicalEnvironment dst:reg4
- [ 10] CreateLexicalEnvironment dst:reg6, parent:reg4, capacity:1, is_catch_environment:false
- [ 28] CreateVariable `A`, is_immutable:true, is_global:false, is_strict:true
- [ 38] SetLexicalEnvironment environment:reg4
- [ 40] NewClass dst:reg5, class_environment:reg6, class_blueprint_index:0, element_keys:[element_keys:String("x"), element_keys:String("y"), element_keys:String("z"), element_keys:String("w"), element_keys:String("s"), element_keys:String("computed")]
- [ 80] Mov dst:A~0, src:reg5
- [ 90] ThrowIfTDZ src:A~0
- [ 98] CallConstruct value_feedback:0, call_feedback:0, dst:reg5, callee:A~0
- [ b8] Return value:reg5
+ [ 1] GetLexicalEnvironment dst:reg4
+ [ 4] CreateLexicalEnvironment dst:reg6, parent:reg4, capacity:1, is_catch_environment:false
+ [ 12] CreateVariable `A`, is_immutable:true, is_global:false, is_strict:true
+ [ 1c] SetLexicalEnvironment environment:reg4
+ [ 1f] NewClass dst:reg5, class_environment:reg6, class_blueprint_index:0, element_keys:[element_keys:String("x"), element_keys:String("y"), element_keys:String("z"), element_keys:String("w"), element_keys:String("s"), element_keys:String("computed")]
+ [ 44] Mov dst:A~0, src:reg5
+ [ 49] ThrowIfTDZ src:A~0
+ [ 4c] CallConstruct value_feedback:0, call_feedback:0, dst:reg5, callee:A~0
+ [ 5f] Return value:reg5
-A$70678274
+A$2cf29520
Registers: 5
Blocks: 1
Constants:
@@ -61,20 +61,18 @@ A$70678274
block0:
[ 0] Enter
- [ 8] End value:Undefined
+ [ 1] End value:Undefined
-field$4eb4aa79 class-literal-fields.js:8:22
+field$922997cd class-literal-fields.js:8:22
Registers: 5
Blocks: 1
Constants:
- [0] = Int32(1)
- [1] = Int32(2)
- [2] = Int32(3)
+ [0] = Int32(3)
block0:
[ 0] Enter
- [ 8] Return value:Int32(3)
+ [ 1] Return value:Int32(3)
42 -1 true null "hi" 3
diff --git a/Tests/LibJS/Bytecode/expected/computed-compound-assign-register-reuse.txt b/Tests/LibJS/Bytecode/expected/computed-compound-assign-register-reuse.txt
index f0c4a6d7286..93b258decfc 100644
--- a/Tests/LibJS/Bytecode/expected/computed-compound-assign-register-reuse.txt
+++ b/Tests/LibJS/Bytecode/expected/computed-compound-assign-register-reuse.txt
@@ -1,24 +1,20 @@
-$9a6e7215 computed-compound-assign-register-reuse.js:9:1
+$b2c0b1fc computed-compound-assign-register-reuse.js:9:1
Registers: 9
Blocks: 1
Constants:
[0] = Undefined
- [1] = Int32(1)
- [2] = Int32(2)
- [3] = Int32(3)
- [4] = Int32(4)
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `subVector`
- [ 28] NewPrimitiveArray dst:reg7, elements:[1, 2]
- [ 48] NewPrimitiveArray dst:reg8, elements:[3, 4]
- [ 68] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7, reg8]
- [ 90] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `subVector`
+ [ f] NewPrimitiveArray dst:reg7, elements:[1, 2]
+ [ 2a] NewPrimitiveArray dst:reg8, elements:[3, 4]
+ [ 45] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7, reg8]
+ [ 5e] End value:reg5
-subVector$b437e388 computed-compound-assign-register-reuse.js:5:13
+subVector$0b08684c computed-compound-assign-register-reuse.js:5:13
Registers: 8
Blocks: 1
Constants:
@@ -28,12 +24,12 @@ subVector$b437e388 computed-compound-assign-register-reuse.js:5:13
block0:
[ 0] Enter
- [ 8] GetByValue value_feedback:0, keyed_feedback:0, dst:reg5, base:arg0, property:Int32(0)
- [ 28] GetByValue value_feedback:1, keyed_feedback:1, dst:reg6, base:arg1, property:Int32(0)
- [ 48] Sub arith_feedback:0, dst:reg7, lhs:reg5, rhs:reg6
- [ 58] PutByValue keyed_feedback:2, base:arg0, property:Int32(0), src:reg7, kind:Normal
- [ 78] GetByValue value_feedback:2, keyed_feedback:3, dst:reg5, base:arg0, property:Int32(1)
- [ 98] GetByValue value_feedback:3, keyed_feedback:4, dst:reg6, base:arg1, property:Int32(1)
- [ b8] Sub arith_feedback:1, dst:reg7, lhs:reg5, rhs:reg6
- [ c8] PutByValue keyed_feedback:5, base:arg0, property:Int32(1), src:reg7, kind:Normal
- [ e8] End value:Undefined
+ [ 1] GetByValue value_feedback:0, keyed_feedback:0, dst:reg5, base:arg0, property:Int32(0)
+ [ 10] GetByValue value_feedback:1, keyed_feedback:1, dst:reg6, base:arg1, property:Int32(0)
+ [ 1f] Sub arith_feedback:0, dst:reg7, lhs:reg5, rhs:reg6
+ [ 28] PutByValue keyed_feedback:2, base:arg0, property:Int32(0), src:reg7, kind:Normal
+ [ 39] GetByValue value_feedback:2, keyed_feedback:3, dst:reg5, base:arg0, property:Int32(1)
+ [ 48] GetByValue value_feedback:3, keyed_feedback:4, dst:reg6, base:arg1, property:Int32(1)
+ [ 57] Sub arith_feedback:1, dst:reg7, lhs:reg5, rhs:reg6
+ [ 60] PutByValue keyed_feedback:5, base:arg0, property:Int32(1), src:reg7, kind:Normal
+ [ 71] End value:Undefined
diff --git a/Tests/LibJS/Bytecode/expected/computed-member-access.txt b/Tests/LibJS/Bytecode/expected/computed-member-access.txt
index a9de0c5b0fc..aa010f6c48f 100644
--- a/Tests/LibJS/Bytecode/expected/computed-member-access.txt
+++ b/Tests/LibJS/Bytecode/expected/computed-member-access.txt
@@ -1,24 +1,23 @@
-$b1dd7798 computed-member-access.js:12:1
+$1aed3039 computed-member-access.js:12:1
Registers: 8
Blocks: 1
Constants:
[0] = Undefined
- [1] = Int32(1)
- [2] = Int32(0)
+ [1] = Int32(0)
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `computed_read`
- [ 28] NewPrimitiveArray dst:reg7, elements:[1]
- [ 40] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
- [ 68] GetGlobal value_feedback:2, dst:reg6, `computed_read_expression`
- [ 78] NewPrimitiveArray dst:reg7, elements:[1]
- [ 90] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7, Int32(0)]
- [ b8] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `computed_read`
+ [ f] NewPrimitiveArray dst:reg7, elements:[1]
+ [ 22] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
+ [ 39] GetGlobal value_feedback:2, dst:reg6, `computed_read_expression`
+ [ 42] NewPrimitiveArray dst:reg7, elements:[1]
+ [ 55] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7, Int32(0)]
+ [ 6e] End value:reg5
-computed_read$f0ef6ac1 computed-member-access.js:5:5
+computed_read$3b93c7b2 computed-member-access.js:5:5
Registers: 6
Blocks: 1
Constants:
@@ -26,15 +25,15 @@ computed_read$f0ef6ac1 computed-member-access.js:5:5
block0:
[ 0] Enter
- [ 8] GetByValue value_feedback:0, keyed_feedback:0, dst:reg5, base:arg0, property:Int32(0)
- [ 28] Return value:reg5
+ [ 1] GetByValue value_feedback:0, keyed_feedback:0, dst:reg5, base:arg0, property:Int32(0)
+ [ 10] Return value:reg5
-computed_read_expression$c18fd380 computed-member-access.js:9:5
+computed_read_expression$b79c72d3 computed-member-access.js:9:5
Registers: 6
Blocks: 1
block0:
[ 0] Enter
- [ 8] GetByValue value_feedback:0, keyed_feedback:0, dst:reg5, base:arg0, property:arg1
- [ 28] Return value:reg5
+ [ 1] GetByValue value_feedback:0, keyed_feedback:0, dst:reg5, base:arg0, property:arg1
+ [ 10] Return value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/computed-member-compound-assign.txt b/Tests/LibJS/Bytecode/expected/computed-member-compound-assign.txt
index 04de37f4eef..4347d377dac 100644
--- a/Tests/LibJS/Bytecode/expected/computed-member-compound-assign.txt
+++ b/Tests/LibJS/Bytecode/expected/computed-member-compound-assign.txt
@@ -1,4 +1,4 @@
-$fe6555f3 computed-member-compound-assign.js:15:1
+$000ce370 computed-member-compound-assign.js:15:1
Registers: 8
Blocks: 1
Constants:
@@ -8,48 +8,46 @@ $fe6555f3 computed-member-compound-assign.js:15:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `compound_computed`
- [ 28] NewObject dst:reg7
- [ 38] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7, String("x")]
- [ 60] GetGlobal value_feedback:2, dst:reg6, `compound_then_assign`
- [ 70] NewObject dst:reg7
- [ 80] InitObjectLiteralProperty object:reg7, `x`, src:Int32(1), shape_cache_index:0, property_slot:0
- [ 98] CacheObjectShape object:reg7
- [ a8] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7, String("x")]
- [ d0] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `compound_computed`
+ [ f] NewObject dst:reg7
+ [ 14] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7, String("x")]
+ [ 2d] GetGlobal value_feedback:2, dst:reg6, `compound_then_assign`
+ [ 36] NewObject dst:reg7
+ [ 3b] InitObjectLiteralProperty object:reg7, `x`, src:Int32(1), shape_cache_index:0, property_slot:0
+ [ 4a] CacheObjectShape object:reg7
+ [ 4f] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7, String("x")]
+ [ 68] End value:reg5
-compound_computed$7b93fbbb computed-member-compound-assign.js:7:14
+compound_computed$556e0684 computed-member-compound-assign.js:7:14
Registers: 8
Blocks: 1
Constants:
- [0] = Int32(1)
- [1] = Undefined
+ [0] = Undefined
block0:
[ 0] Enter
- [ 8] ThrowIfNullish src:arg0
- [ 10] ToPrimitiveWithStringHint dst:reg5, value:arg1
- [ 20] GetByValue value_feedback:0, keyed_feedback:0, dst:reg6, base:arg0, property:reg5
- [ 40] AddRhsInt32 arith_feedback:0, dst:reg7, lhs:reg6, rhs:1
- [ 50] PutByValue keyed_feedback:1, base:arg0, property:reg5, src:reg7, kind:Normal
- [ 70] End value:Undefined
+ [ 1] ThrowIfNullish src:arg0
+ [ 4] ToPrimitiveWithStringHint dst:reg5, value:arg1
+ [ 9] GetByValue value_feedback:0, keyed_feedback:0, dst:reg6, base:arg0, property:reg5
+ [ 18] AddRhsInt32 arith_feedback:0, dst:reg7, lhs:reg6, rhs:1
+ [ 23] PutByValue keyed_feedback:1, base:arg0, property:reg5, src:reg7, kind:Normal
+ [ 34] End value:Undefined
-compound_then_assign$abe99b2c computed-member-compound-assign.js:11:13
+compound_then_assign$b9bd507c computed-member-compound-assign.js:11:13
Registers: 8
Blocks: 1
Constants:
- [0] = Int32(0)
- [1] = Undefined
+ [0] = Undefined
block0:
[ 0] Enter
- [ 8] ThrowIfNullish src:arg0
- [ 10] ToPrimitiveWithStringHint dst:reg5, value:arg1
- [ 20] GetByValue value_feedback:0, keyed_feedback:0, dst:reg6, base:arg0, property:reg5
- [ 40] AddRhsInt32 arith_feedback:0, dst:reg7, lhs:reg6, rhs:0
- [ 50] PutByValue keyed_feedback:1, base:arg0, property:reg5, src:reg7, kind:Normal
- [ 70] PutByValue keyed_feedback:2, base:arg0, property:arg1, src:arg1, kind:Normal
- [ 90] End value:Undefined
+ [ 1] ThrowIfNullish src:arg0
+ [ 4] ToPrimitiveWithStringHint dst:reg5, value:arg1
+ [ 9] GetByValue value_feedback:0, keyed_feedback:0, dst:reg6, base:arg0, property:reg5
+ [ 18] AddRhsInt32 arith_feedback:0, dst:reg7, lhs:reg6, rhs:0
+ [ 23] PutByValue keyed_feedback:1, base:arg0, property:reg5, src:reg7, kind:Normal
+ [ 34] PutByValue keyed_feedback:2, base:arg0, property:arg1, src:arg1, kind:Normal
+ [ 45] End value:Undefined
diff --git a/Tests/LibJS/Bytecode/expected/computed-string-object-literal.txt b/Tests/LibJS/Bytecode/expected/computed-string-object-literal.txt
index 01c4abab1cc..082b1bdcc71 100644
--- a/Tests/LibJS/Bytecode/expected/computed-string-object-literal.txt
+++ b/Tests/LibJS/Bytecode/expected/computed-string-object-literal.txt
@@ -1,4 +1,4 @@
-$f8dd73d3 computed-string-object-literal.js:15:1
+$6278565e computed-string-object-literal.js:15:1
Registers: 7
Blocks: 1
Constants:
@@ -7,47 +7,45 @@ $f8dd73d3 computed-string-object-literal.js:15:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `simple_computed`
- [ 28] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 48] GetGlobal value_feedback:2, dst:reg6, `mixed`
- [ 58] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined
- [ 78] GetGlobal value_feedback:4, dst:reg6, `dynamic`
- [ 88] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg6, this_value:Undefined, arguments:[String("x")]
- [ b0] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `simple_computed`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 24] GetGlobal value_feedback:2, dst:reg6, `mixed`
+ [ 2d] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined
+ [ 42] GetGlobal value_feedback:4, dst:reg6, `dynamic`
+ [ 4b] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg6, this_value:Undefined, arguments:[String("x")]
+ [ 62] End value:reg5
-simple_computed$ee1d99de computed-string-object-literal.js:6:5
+simple_computed$5ee7ec06 computed-string-object-literal.js:6:5
Registers: 6
Blocks: 1
Constants:
- [0] = String("x")
- [1] = Int32(1)
+ [0] = Int32(1)
block0:
[ 0] Enter
- [ 8] NewObject dst:reg5
- [ 18] PutById base:reg5, `x`, src:Int32(1), kind:Own
- [ 38] Return value:reg5
+ [ 1] NewObject dst:reg5
+ [ 6] PutById base:reg5, `x`, src:Int32(1), kind:Own
+ [ 15] Return value:reg5
-mixed$15906784 computed-string-object-literal.js:9:5
+mixed$ba546433 computed-string-object-literal.js:9:5
Registers: 6
Blocks: 1
Constants:
- [0] = String("a")
- [1] = Int32(1)
- [2] = Int32(2)
+ [0] = Int32(1)
+ [1] = Int32(2)
block0:
[ 0] Enter
- [ 8] NewObject dst:reg5
- [ 18] PutById base:reg5, `a`, src:Int32(1), kind:Own
- [ 38] PutById base:reg5, `b`, src:Int32(2), kind:Own
- [ 58] Return value:reg5
+ [ 1] NewObject dst:reg5
+ [ 6] PutById base:reg5, `a`, src:Int32(1), kind:Own
+ [ 15] PutById base:reg5, `b`, src:Int32(2), kind:Own
+ [ 24] Return value:reg5
-dynamic$fd0d2731 computed-string-object-literal.js:12:5
+dynamic$1a5c1f4e computed-string-object-literal.js:12:5
Registers: 7
Blocks: 1
Constants:
@@ -55,7 +53,7 @@ dynamic$fd0d2731 computed-string-object-literal.js:12:5
block0:
[ 0] Enter
- [ 8] NewObject dst:reg5
- [ 18] ToPrimitiveWithStringHint dst:reg6, value:arg0
- [ 28] PutByValue keyed_feedback:0, base:reg5, property:reg6, src:Int32(1), kind:Own
- [ 48] Return value:reg5
+ [ 1] NewObject dst:reg5
+ [ 6] ToPrimitiveWithStringHint dst:reg6, value:arg0
+ [ b] PutByValue keyed_feedback:0, base:reg5, property:reg6, src:Int32(1), kind:Own
+ [ 1c] Return value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/computed-string-to-ById.txt b/Tests/LibJS/Bytecode/expected/computed-string-to-ById.txt
index 69c6c7fc014..92319a632e8 100644
--- a/Tests/LibJS/Bytecode/expected/computed-string-to-ById.txt
+++ b/Tests/LibJS/Bytecode/expected/computed-string-to-ById.txt
@@ -1,4 +1,4 @@
-$5ae1dd2a computed-string-to-ById.js:17:1
+$e6a5b48c computed-string-to-ById.js:17:1
Registers: 8
Blocks: 1
Constants:
@@ -6,49 +6,46 @@ $5ae1dd2a computed-string-to-ById.js:17:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `get_string_prop`
- [ 28] NewObject dst:reg7
- [ 38] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
- [ 60] GetGlobal value_feedback:2, dst:reg6, `set_string_prop`
- [ 70] NewObject dst:reg7
- [ 80] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
- [ a8] GetGlobal value_feedback:4, dst:reg6, `get_index_prop`
- [ b8] NewArray dst:reg7
- [ c8] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
- [ f0] GetGlobal value_feedback:6, dst:reg6, `get_length_prop`
- [ 100] NewArray dst:reg7
- [ 110] Call value_feedback:7, call_feedback:3, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
- [ 138] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `get_string_prop`
+ [ f] NewObject dst:reg7
+ [ 14] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
+ [ 2b] GetGlobal value_feedback:2, dst:reg6, `set_string_prop`
+ [ 34] NewObject dst:reg7
+ [ 39] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
+ [ 50] GetGlobal value_feedback:4, dst:reg6, `get_index_prop`
+ [ 59] NewArray dst:reg7
+ [ 64] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
+ [ 7b] GetGlobal value_feedback:6, dst:reg6, `get_length_prop`
+ [ 84] NewArray dst:reg7
+ [ 8f] Call value_feedback:7, call_feedback:3, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
+ [ a6] End value:reg5
-get_string_prop$d3f03c93 computed-string-to-ById.js:5:5
+get_string_prop$026204fa computed-string-to-ById.js:5:5
Registers: 6
Blocks: 1
- Constants:
- [0] = String("hello")
block0:
[ 0] Enter
- [ 8] GetById value_feedback:0, dst:reg5, base:arg0, `hello`
- [ 20] Return value:reg5
+ [ 1] GetById value_feedback:0, dst:reg5, base:arg0, `hello`
+ [ e] Return value:reg5
-set_string_prop$50de4e97 computed-string-to-ById.js:8:16
+set_string_prop$5ad1af44 computed-string-to-ById.js:8:16
Registers: 5
Blocks: 1
Constants:
- [0] = String("hello")
- [1] = Int32(42)
- [2] = Undefined
+ [0] = Int32(42)
+ [1] = Undefined
block0:
[ 0] Enter
- [ 8] PutById base:arg0, `hello`, src:Int32(42), kind:Normal
- [ 28] End value:Undefined
+ [ 1] PutById base:arg0, `hello`, src:Int32(42), kind:Normal
+ [ 10] End value:Undefined
-get_index_prop$a54df54e computed-string-to-ById.js:11:5
+get_index_prop$4f99d41d computed-string-to-ById.js:11:5
Registers: 6
Blocks: 1
Constants:
@@ -56,17 +53,15 @@ get_index_prop$a54df54e computed-string-to-ById.js:11:5
block0:
[ 0] Enter
- [ 8] GetByValue value_feedback:0, keyed_feedback:0, dst:reg5, base:arg0, property:String("0")
- [ 28] Return value:reg5
+ [ 1] GetByValue value_feedback:0, keyed_feedback:0, dst:reg5, base:arg0, property:String("0")
+ [ 10] Return value:reg5
-get_length_prop$0563fe89 computed-string-to-ById.js:14:5
+get_length_prop$2b89f3c0 computed-string-to-ById.js:14:5
Registers: 6
Blocks: 1
- Constants:
- [0] = String("length")
block0:
[ 0] Enter
- [ 8] GetLength value_feedback:0, keyed_feedback:0, dst:reg5, base:arg0
- [ 20] Return value:reg5
+ [ 1] GetLength value_feedback:0, keyed_feedback:0, dst:reg5, base:arg0
+ [ e] Return value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/computed-update-register-order.txt b/Tests/LibJS/Bytecode/expected/computed-update-register-order.txt
index a7756295269..77d996920c8 100644
--- a/Tests/LibJS/Bytecode/expected/computed-update-register-order.txt
+++ b/Tests/LibJS/Bytecode/expected/computed-update-register-order.txt
@@ -1,23 +1,19 @@
-$b5fc1514 computed-update-register-order.js:8:1
+$d2b9d388 computed-update-register-order.js:8:1
Registers: 8
Blocks: 1
Constants:
[0] = Undefined
- [1] = Int32(1)
- [2] = Int32(2)
- [3] = Int32(3)
- [4] = Int32(4)
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `test`
- [ 28] NewPrimitiveArray dst:reg7, elements:[1, 2, 3, 4]
- [ 58] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
- [ 80] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `test`
+ [ f] NewPrimitiveArray dst:reg7, elements:[1, 2, 3, 4]
+ [ 3a] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
+ [ 51] End value:reg5
-test$7becb49f computed-update-register-order.js:5:9
+test$831c243c computed-update-register-order.js:5:9
Registers: 7
Blocks: 1
Constants:
@@ -26,18 +22,18 @@ test$7becb49f computed-update-register-order.js:5:9
block0:
[ 0] Enter
- [ 8] GetByValue value_feedback:0, keyed_feedback:0, dst:reg5, base:arg0, property:Int32(3)
- [ 28] PostfixIncrement arith_feedback:0, dst:reg6, src:reg5
- [ 38] PutByValue keyed_feedback:1, base:arg0, property:Int32(3), src:reg5, kind:Normal
- [ 58] GetGlobal value_feedback:1, dst:reg5, `foo`
- [ 68] Call value_feedback:2, call_feedback:0, dst:reg5, callee:reg5, this_value:Undefined, arguments:[arg0]
- [ 90] End value:Undefined
+ [ 1] GetByValue value_feedback:0, keyed_feedback:0, dst:reg5, base:arg0, property:Int32(3)
+ [ 10] PostfixIncrement arith_feedback:0, dst:reg6, src:reg5
+ [ 17] PutByValue keyed_feedback:1, base:arg0, property:Int32(3), src:reg5, kind:Normal
+ [ 28] GetGlobal value_feedback:1, dst:reg5, `foo`
+ [ 31] Call value_feedback:2, call_feedback:0, dst:reg5, callee:reg5, this_value:Undefined, arguments:[arg0]
+ [ 48] End value:Undefined
-foo$14c42854 computed-update-register-order.js:2:5
+foo$d14f3b00 computed-update-register-order.js:2:5
Registers: 5
Blocks: 1
block0:
[ 0] Enter
- [ 8] Return value:arg0
+ [ 1] Return value:arg0
diff --git a/Tests/LibJS/Bytecode/expected/condition-dead-code-elim.txt b/Tests/LibJS/Bytecode/expected/condition-dead-code-elim.txt
index bc75494fb1c..82ff7840273 100644
--- a/Tests/LibJS/Bytecode/expected/condition-dead-code-elim.txt
+++ b/Tests/LibJS/Bytecode/expected/condition-dead-code-elim.txt
@@ -1,4 +1,4 @@
-$f79f8bdb condition-dead-code-elim.js:141:1
+$15a2b517 condition-dead-code-elim.js:141:1
Registers: 7
Blocks: 1
Constants:
@@ -7,108 +7,100 @@ $f79f8bdb condition-dead-code-elim.js:141:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `ternary_true`
- [ 28] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 48] GetGlobal value_feedback:2, dst:reg6, `ternary_truthy`
- [ 58] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined
- [ 78] GetGlobal value_feedback:4, dst:reg6, `ternary_false`
- [ 88] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg6, this_value:Undefined
- [ a8] GetGlobal value_feedback:6, dst:reg6, `ternary_falsey`
- [ b8] Call value_feedback:7, call_feedback:3, dst:reg5, callee:reg6, this_value:Undefined
- [ d8] GetGlobal value_feedback:8, dst:reg6, `while_falsey`
- [ e8] Call value_feedback:9, call_feedback:4, dst:reg5, callee:reg6, this_value:Undefined
- [ 108] GetGlobal value_feedback:10, dst:reg6, `do_while_falsey`
- [ 118] Call value_feedback:11, call_feedback:5, dst:reg5, callee:reg6, this_value:Undefined
- [ 138] GetGlobal value_feedback:12, dst:reg6, `if_falsely`
- [ 148] Call value_feedback:13, call_feedback:6, dst:reg5, callee:reg6, this_value:Undefined
- [ 168] GetGlobal value_feedback:14, dst:reg6, `if_truthy`
- [ 178] Call value_feedback:15, call_feedback:7, dst:reg5, callee:reg6, this_value:Undefined
- [ 198] GetGlobal value_feedback:16, dst:reg6, `if_exhausted`
- [ 1a8] Call value_feedback:17, call_feedback:8, dst:reg5, callee:reg6, this_value:Undefined
- [ 1c8] GetGlobal value_feedback:18, dst:reg6, `for_false`
- [ 1d8] Call value_feedback:19, call_feedback:9, dst:reg5, callee:reg6, this_value:Undefined
- [ 1f8] GetGlobal value_feedback:20, dst:reg6, `for_true`
- [ 208] Call value_feedback:21, call_feedback:10, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Bool(true)]
- [ 230] End value:reg5
-
-
-ternary_true$d2eab697 condition-dead-code-elim.js:9:5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `ternary_true`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 24] GetGlobal value_feedback:2, dst:reg6, `ternary_truthy`
+ [ 2d] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined
+ [ 42] GetGlobal value_feedback:4, dst:reg6, `ternary_false`
+ [ 4b] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg6, this_value:Undefined
+ [ 60] GetGlobal value_feedback:6, dst:reg6, `ternary_falsey`
+ [ 69] Call value_feedback:7, call_feedback:3, dst:reg5, callee:reg6, this_value:Undefined
+ [ 7e] GetGlobal value_feedback:8, dst:reg6, `while_falsey`
+ [ 87] Call value_feedback:9, call_feedback:4, dst:reg5, callee:reg6, this_value:Undefined
+ [ 9c] GetGlobal value_feedback:10, dst:reg6, `do_while_falsey`
+ [ a5] Call value_feedback:11, call_feedback:5, dst:reg5, callee:reg6, this_value:Undefined
+ [ ba] GetGlobal value_feedback:12, dst:reg6, `if_falsely`
+ [ c3] Call value_feedback:13, call_feedback:6, dst:reg5, callee:reg6, this_value:Undefined
+ [ d8] GetGlobal value_feedback:14, dst:reg6, `if_truthy`
+ [ e1] Call value_feedback:15, call_feedback:7, dst:reg5, callee:reg6, this_value:Undefined
+ [ f6] GetGlobal value_feedback:16, dst:reg6, `if_exhausted`
+ [ ff] Call value_feedback:17, call_feedback:8, dst:reg5, callee:reg6, this_value:Undefined
+ [ 114] GetGlobal value_feedback:18, dst:reg6, `for_false`
+ [ 11d] Call value_feedback:19, call_feedback:9, dst:reg5, callee:reg6, this_value:Undefined
+ [ 132] GetGlobal value_feedback:20, dst:reg6, `for_true`
+ [ 13b] Call value_feedback:21, call_feedback:10, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Bool(true)]
+ [ 152] End value:reg5
+
+
+ternary_true$ec595a11 condition-dead-code-elim.js:9:5
Registers: 7
Blocks: 2
Constants:
- [0] = Bool(true)
- [1] = Int32(1)
- [2] = Undefined
+ [0] = Int32(1)
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Int32(1)
- [ 18] Jump target:block1
+ [ 1] Mov dst:reg5, src:Int32(1)
+ [ 6] Jump target:block1
block1:
- [ 20] Return value:reg5
+ [ b] Return value:reg5
-ternary_truthy$86be54a2 condition-dead-code-elim.js:12:5
+ternary_truthy$2c9eb4e4 condition-dead-code-elim.js:12:5
Registers: 7
Blocks: 2
Constants:
[0] = Int32(1)
- [1] = Undefined
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Int32(1)
- [ 18] Jump target:block1
+ [ 1] Mov dst:reg5, src:Int32(1)
+ [ 6] Jump target:block1
block1:
- [ 20] Return value:reg5
+ [ b] Return value:reg5
-ternary_false$96da6fca condition-dead-code-elim.js:15:5
+ternary_false$601cd433 condition-dead-code-elim.js:15:5
Registers: 7
Blocks: 1
Constants:
- [0] = Bool(false)
- [1] = Undefined
- [2] = Int32(1)
+ [0] = Int32(1)
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Int32(1)
- [ 18] Return value:reg5
+ [ 1] Mov dst:reg5, src:Int32(1)
+ [ 6] Return value:reg5
-ternary_falsey$c01a9076 condition-dead-code-elim.js:18:5
+ternary_falsey$9730aa2f condition-dead-code-elim.js:18:5
Registers: 7
Blocks: 1
Constants:
- [0] = Undefined
- [1] = Int32(1)
+ [0] = Int32(1)
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Int32(1)
- [ 18] Return value:reg5
+ [ 1] Mov dst:reg5, src:Int32(1)
+ [ 6] Return value:reg5
-while_falsey$195d6166 condition-dead-code-elim.js:22:17
+while_falsey$899c89a4 condition-dead-code-elim.js:22:17
Registers: 6
Blocks: 1
Constants:
- [0] = Bool(false)
- [1] = Undefined
- [2] = Null
+ [0] = Undefined
block0:
[ 0] Enter
- [ 8] GetGlobal value_feedback:6, dst:reg5, `alive`
- [ 18] Call value_feedback:7, call_feedback:3, dst:reg5, callee:reg5, this_value:Undefined
- [ 38] End value:Undefined
+ [ 1] GetGlobal value_feedback:6, dst:reg5, `alive`
+ [ a] Call value_feedback:7, call_feedback:3, dst:reg5, callee:reg5, this_value:Undefined
+ [ 1f] End value:Undefined
-alive$5bc4a6b5 condition-dead-code-elim.js:2:5
+alive$1dd79b81 condition-dead-code-elim.js:2:5
Registers: 5
Blocks: 1
Constants:
@@ -116,145 +108,134 @@ alive$5bc4a6b5 condition-dead-code-elim.js:2:5
block0:
[ 0] Enter
- [ 8] Return value:String("alive")
+ [ 1] Return value:String("alive")
-do_while_falsey$af48c539 condition-dead-code-elim.js:37:9
+do_while_falsey$52f05e55 condition-dead-code-elim.js:37:9
Registers: 6
Blocks: 1
Constants:
[0] = Undefined
- [1] = Bool(false)
- [2] = Null
block0:
[ 0] Enter
- [ 8] GetGlobal value_feedback:0, dst:reg5, `alive`
- [ 18] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg5, this_value:Undefined
- [ 38] GetGlobal value_feedback:2, dst:reg5, `alive`
- [ 48] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg5, this_value:Undefined
- [ 68] GetGlobal value_feedback:4, dst:reg5, `alive`
- [ 78] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg5, this_value:Undefined
- [ 98] GetGlobal value_feedback:6, dst:reg5, `alive`
- [ a8] Call value_feedback:7, call_feedback:3, dst:reg5, callee:reg5, this_value:Undefined
- [ c8] End value:Undefined
-
-
-if_falsely$3704b7c0 condition-dead-code-elim.js:51:14
+ [ 1] GetGlobal value_feedback:0, dst:reg5, `alive`
+ [ a] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg5, this_value:Undefined
+ [ 1f] GetGlobal value_feedback:2, dst:reg5, `alive`
+ [ 28] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg5, this_value:Undefined
+ [ 3d] GetGlobal value_feedback:4, dst:reg5, `alive`
+ [ 46] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg5, this_value:Undefined
+ [ 5b] GetGlobal value_feedback:6, dst:reg5, `alive`
+ [ 64] Call value_feedback:7, call_feedback:3, dst:reg5, callee:reg5, this_value:Undefined
+ [ 79] End value:Undefined
+
+
+if_falsely$d1d553c2 condition-dead-code-elim.js:51:14
Registers: 6
Blocks: 1
Constants:
- [0] = Bool(false)
- [1] = Undefined
- [2] = Null
+ [0] = Undefined
block0:
[ 0] Enter
- [ 8] GetGlobal value_feedback:6, dst:reg5, `alive`
- [ 18] Call value_feedback:7, call_feedback:3, dst:reg5, callee:reg5, this_value:Undefined
- [ 38] End value:Undefined
+ [ 1] GetGlobal value_feedback:6, dst:reg5, `alive`
+ [ a] Call value_feedback:7, call_feedback:3, dst:reg5, callee:reg5, this_value:Undefined
+ [ 1f] End value:Undefined
-if_truthy$a6783770 condition-dead-code-elim.js:66:9
+if_truthy$86654e43 condition-dead-code-elim.js:66:9
Registers: 6
Blocks: 4
Constants:
- [0] = Bool(true)
- [1] = Undefined
- [2] = String("abc")
- [3] = Int32(123)
+ [0] = Undefined
block0:
[ 0] Enter
- [ 8] GetGlobal value_feedback:0, dst:reg5, `alive`
- [ 18] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg5, this_value:Undefined
- [ 38] Jump target:block1
+ [ 1] GetGlobal value_feedback:0, dst:reg5, `alive`
+ [ a] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg5, this_value:Undefined
+ [ 1f] Jump target:block1
block1:
- [ 40] GetGlobal value_feedback:4, dst:reg5, `alive`
- [ 50] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg5, this_value:Undefined
- [ 70] Jump target:block2
+ [ 24] GetGlobal value_feedback:4, dst:reg5, `alive`
+ [ 2d] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg5, this_value:Undefined
+ [ 42] Jump target:block2
block2:
- [ 78] GetGlobal value_feedback:8, dst:reg5, `alive`
- [ 88] Call value_feedback:9, call_feedback:4, dst:reg5, callee:reg5, this_value:Undefined
- [ a8] Jump target:block3
+ [ 47] GetGlobal value_feedback:8, dst:reg5, `alive`
+ [ 50] Call value_feedback:9, call_feedback:4, dst:reg5, callee:reg5, this_value:Undefined
+ [ 65] Jump target:block3
block3:
- [ b0] GetGlobal value_feedback:12, dst:reg5, `alive`
- [ c0] Call value_feedback:13, call_feedback:6, dst:reg5, callee:reg5, this_value:Undefined
- [ e0] End value:Undefined
+ [ 6a] GetGlobal value_feedback:12, dst:reg5, `alive`
+ [ 73] Call value_feedback:13, call_feedback:6, dst:reg5, callee:reg5, this_value:Undefined
+ [ 88] End value:Undefined
-if_exhausted$56ba4c21 condition-dead-code-elim.js:85:14
+if_exhausted$4977d07a condition-dead-code-elim.js:85:14
Registers: 6
Blocks: 2
Constants:
- [0] = Bool(false)
- [1] = Undefined
- [2] = Bool(true)
+ [0] = Undefined
block0:
[ 0] Enter
- [ 8] GetGlobal value_feedback:4, dst:reg5, `alive`
- [ 18] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg5, this_value:Undefined
- [ 38] GetGlobal value_feedback:6, dst:reg5, `alive`
- [ 48] Call value_feedback:7, call_feedback:3, dst:reg5, callee:reg5, this_value:Undefined
- [ 68] Jump target:block1
+ [ 1] GetGlobal value_feedback:4, dst:reg5, `alive`
+ [ a] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg5, this_value:Undefined
+ [ 1f] GetGlobal value_feedback:6, dst:reg5, `alive`
+ [ 28] Call value_feedback:7, call_feedback:3, dst:reg5, callee:reg5, this_value:Undefined
+ [ 3d] Jump target:block1
block1:
- [ 70] GetGlobal value_feedback:12, dst:reg5, `alive`
- [ 80] Call value_feedback:13, call_feedback:6, dst:reg5, callee:reg5, this_value:Undefined
- [ a0] End value:Undefined
+ [ 42] GetGlobal value_feedback:12, dst:reg5, `alive`
+ [ 4b] Call value_feedback:13, call_feedback:6, dst:reg5, callee:reg5, this_value:Undefined
+ [ 60] End value:Undefined
-for_false$6708fd83 condition-dead-code-elim.js:109:9
+for_false$ce8dd464 condition-dead-code-elim.js:109:9
Registers: 6
Blocks: 9
Locals: x~0
Constants:
[0] = Undefined
- [1] = Bool(false)
- [2] = Null
block0:
[ 0] Enter
- [ 8] Jump target:block2
+ [ 1] Jump target:block2
block1:
- [ 10] GetGlobal value_feedback:0, dst:reg5, `dead`
- [ 20] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg5, this_value:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg5, `dead`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg5, this_value:Undefined
block2:
- [ 40] Jump target:block4
+ [ 24] Jump target:block4
block3:
- [ 48] GetGlobal value_feedback:2, dst:reg5, `dead`
- [ 58] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg5, this_value:Undefined
+ [ 29] GetGlobal value_feedback:2, dst:reg5, `dead`
+ [ 32] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg5, this_value:Undefined
block4:
- [ 78] Jump target:block6
+ [ 47] Jump target:block6
block5:
- [ 80] GetGlobal value_feedback:4, dst:reg5, `dead`
- [ 90] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg5, this_value:Undefined
+ [ 4c] GetGlobal value_feedback:4, dst:reg5, `dead`
+ [ 55] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg5, this_value:Undefined
block6:
- [ b0] GetGlobal value_feedback:6, dst:reg5, `call_this`
- [ c0] Call value_feedback:7, call_feedback:3, dst:x~0, callee:reg5, this_value:Undefined
- [ e0] Jump target:block8
+ [ 6a] GetGlobal value_feedback:6, dst:reg5, `call_this`
+ [ 73] Call value_feedback:7, call_feedback:3, dst:x~0, callee:reg5, this_value:Undefined
+ [ 88] Jump target:block8
block7:
- [ e8] GetGlobal value_feedback:8, dst:reg5, `dead`
- [ f8] Call value_feedback:9, call_feedback:4, dst:reg5, callee:reg5, this_value:Undefined
+ [ 8d] GetGlobal value_feedback:8, dst:reg5, `dead`
+ [ 96] Call value_feedback:9, call_feedback:4, dst:reg5, callee:reg5, this_value:Undefined
block8:
- [ 118] GetGlobal value_feedback:10, dst:reg5, `alive`
- [ 128] Call value_feedback:11, call_feedback:5, dst:reg5, callee:reg5, this_value:Undefined
- [ 148] End value:Undefined
+ [ ab] GetGlobal value_feedback:10, dst:reg5, `alive`
+ [ b4] Call value_feedback:11, call_feedback:5, dst:reg5, callee:reg5, this_value:Undefined
+ [ c9] End value:Undefined
-call_this$f8b916c2 condition-dead-code-elim.js:105:5
+call_this$3c2e0416 condition-dead-code-elim.js:105:5
Registers: 5
Blocks: 1
Constants:
@@ -262,47 +243,45 @@ call_this$f8b916c2 condition-dead-code-elim.js:105:5
block0:
[ 0] Enter
- [ 8] Return value:Int32(1)
+ [ 1] Return value:Int32(1)
-for_true$08bfa266 condition-dead-code-elim.js:128:9
+for_true$fd24b43c condition-dead-code-elim.js:128:9
Registers: 6
Blocks: 9
Constants:
[0] = Undefined
- [1] = Bool(true)
- [2] = Int32(1)
block0:
[ 0] Enter
- [ 8] Jump target:block3
+ [ 1] Jump target:block3
block1:
- [ 10] GetGlobal value_feedback:0, dst:reg5, `alive`
- [ 20] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg5, this_value:Undefined
- [ 40] JumpFalse condition:arg0, target:block3
+ [ 6] GetGlobal value_feedback:0, dst:reg5, `alive`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg5, this_value:Undefined
+ [ 24] JumpFalse condition:arg0, target:block3
block2:
- [ 50] Jump target:block4
+ [ 2b] Jump target:block4
block3:
- [ 58] JumpLoop target:block1
+ [ 30] JumpLoop target:block1
block4:
- [ 60] Jump target:block7
+ [ 35] Jump target:block7
block5:
- [ 68] GetGlobal value_feedback:2, dst:reg5, `alive`
- [ 78] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg5, this_value:Undefined
- [ 98] JumpFalse condition:arg0, target:block7
+ [ 3a] GetGlobal value_feedback:2, dst:reg5, `alive`
+ [ 43] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg5, this_value:Undefined
+ [ 58] JumpFalse condition:arg0, target:block7
block6:
- [ a8] Jump target:block8
+ [ 5f] Jump target:block8
block7:
- [ b0] JumpLoop target:block5
+ [ 64] JumpLoop target:block5
block8:
- [ b8] GetGlobal value_feedback:4, dst:reg5, `alive`
- [ c8] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg5, this_value:Undefined
- [ e8] End value:Undefined
+ [ 69] GetGlobal value_feedback:4, dst:reg5, `alive`
+ [ 72] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg5, this_value:Undefined
+ [ 87] End value:Undefined
diff --git a/Tests/LibJS/Bytecode/expected/conditional-register-order.txt b/Tests/LibJS/Bytecode/expected/conditional-register-order.txt
index 6f3a078303a..5254d627850 100644
--- a/Tests/LibJS/Bytecode/expected/conditional-register-order.txt
+++ b/Tests/LibJS/Bytecode/expected/conditional-register-order.txt
@@ -1,4 +1,4 @@
-$28d58d80 conditional-register-order.js:4:1
+$6d66de67 conditional-register-order.js:4:1
Registers: 7
Blocks: 1
Constants:
@@ -6,13 +6,13 @@ $28d58d80 conditional-register-order.js:4:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `foo`
- [ 28] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 48] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `foo`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 24] End value:reg5
-foo$9e71f40c conditional-register-order.js:2:5
+foo$367e9efe conditional-register-order.js:2:5
Registers: 6
Blocks: 4
Constants:
@@ -21,14 +21,14 @@ foo$9e71f40c conditional-register-order.js:2:5
block0:
[ 0] Enter
- [ 8] JumpFalse condition:arg0, target:block2
+ [ 1] JumpFalse condition:arg0, target:block2
block1:
- [ 18] Mov dst:reg5, src:Int32(1)
- [ 28] Jump target:block3
+ [ 8] Mov dst:reg5, src:Int32(1)
+ [ d] Jump target:block3
block2:
- [ 30] Mov dst:reg5, src:Int32(2)
+ [ 12] Mov dst:reg5, src:Int32(2)
block3:
- [ 40] Return value:reg5
+ [ 17] Return value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/const-assignment-no-extra-tdz.txt b/Tests/LibJS/Bytecode/expected/const-assignment-no-extra-tdz.txt
index 68b04dcdffa..bdc6eb73c96 100644
--- a/Tests/LibJS/Bytecode/expected/const-assignment-no-extra-tdz.txt
+++ b/Tests/LibJS/Bytecode/expected/const-assignment-no-extra-tdz.txt
@@ -1,4 +1,4 @@
-$8ea9e309 const-assignment-no-extra-tdz.js:5:1
+$348a434b const-assignment-no-extra-tdz.js:5:1
Registers: 7
Blocks: 4
Locals: e~0
@@ -8,39 +8,38 @@ $8ea9e309 const-assignment-no-extra-tdz.js:5:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] Mov dst:reg5, src:Undefined
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] Mov dst:reg5, src:Undefined
block1:
- [ 28] GetGlobal value_feedback:0, dst:reg6, `f`
- [ 38] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 58] Jump target:block3
+ [ b] GetGlobal value_feedback:0, dst:reg6, `f`
+ [ 14] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 29] Jump target:block3
block2:
- [ 60] Catch value_feedback:2, dst:reg6
- [ 68] Mov dst:reg5, src:Undefined
- [ 78] Mov dst:e~0, src:<Empty>
- [ 88] Mov dst:e~0, src:reg6
- [ 98] Jump target:block3
+ [ 2e] Catch value_feedback:2, dst:reg6
+ [ 33] Mov dst:reg5, src:Undefined
+ [ 38] Mov dst:e~0, src:<Empty>
+ [ 3d] Mov dst:e~0, src:reg6
+ [ 42] Jump target:block3
block3:
- [ a0] End value:reg5
+ [ 47] End value:reg5
Exception handlers:
- [ 28 .. 60] => handler block2
+ [ b .. 2e] => handler block2
-f$c80d9f4a const-assignment-no-extra-tdz.js:2:11
+f$222d3f08 const-assignment-no-extra-tdz.js:2:11
Registers: 5
Blocks: 1
Locals: x~0
Constants:
[0] = Int32(1)
- [1] = Int32(2)
- [2] = Undefined
+ [1] = Undefined
block0:
[ 0] Enter
- [ 8] Mov dst:x~0, src:Int32(1)
- [ 18] ThrowConstAssignment
- [ 20] End value:Undefined
+ [ 1] Mov dst:x~0, src:Int32(1)
+ [ 6] ThrowConstAssignment
+ [ 7] End value:Undefined
diff --git a/Tests/LibJS/Bytecode/expected/const-fold-exponentiation.txt b/Tests/LibJS/Bytecode/expected/const-fold-exponentiation.txt
index ee93eed612f..915aa7fdf1b 100644
--- a/Tests/LibJS/Bytecode/expected/const-fold-exponentiation.txt
+++ b/Tests/LibJS/Bytecode/expected/const-fold-exponentiation.txt
@@ -1,22 +1,16 @@
-$b6d67583 const-fold-exponentiation.js:1:7
+$9c4b6e76 const-fold-exponentiation.js:1:7
Registers: 6
Blocks: 1
Constants:
[0] = Undefined
- [1] = Int32(1)
- [2] = Int32(-1)
- [3] = Double(inf)
- [4] = Double(nan)
- [5] = Double(-inf)
- [6] = Int32(2)
- [7] = Int32(10)
- [8] = Int32(1024)
+ [1] = Double(nan)
+ [2] = Int32(1024)
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] DynamicInitializeLexicalBinding `a`, src:Double(nan)
- [ 28] DynamicInitializeLexicalBinding `b`, src:Double(nan)
- [ 38] DynamicInitializeLexicalBinding `c`, src:Double(nan)
- [ 48] DynamicInitializeLexicalBinding `d`, src:Int32(1024)
- [ 58] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] DynamicInitializeLexicalBinding `a`, src:Double(nan)
+ [ d] DynamicInitializeLexicalBinding `b`, src:Double(nan)
+ [ 14] DynamicInitializeLexicalBinding `c`, src:Double(nan)
+ [ 1b] DynamicInitializeLexicalBinding `d`, src:Int32(1024)
+ [ 22] End value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/const-fold-template-literals.txt b/Tests/LibJS/Bytecode/expected/const-fold-template-literals.txt
index fa59bd35c03..06178ab0dee 100644
--- a/Tests/LibJS/Bytecode/expected/const-fold-template-literals.txt
+++ b/Tests/LibJS/Bytecode/expected/const-fold-template-literals.txt
@@ -1,4 +1,4 @@
-$9b013f68 const-fold-template-literals.js:20:7
+$847f9433 const-fold-template-literals.js:20:7
Registers: 7
Blocks: 1
Constants:
@@ -6,45 +6,44 @@ $9b013f68 const-fold-template-literals.js:20:7
[1] = String("abc")
[2] = String("xyz")
[3] = String("abcxyz")
- [4] = String("")
- [5] = Int32(1)
- [6] = Int32(2)
- [7] = Int32(3)
+ [4] = Int32(1)
+ [5] = Int32(2)
+ [6] = Int32(3)
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] DynamicInitializeLexicalBinding `a`, src:String("abcxyz")
- [ 28] DynamicInitializeLexicalBinding `b`, src:String("abcxyz")
- [ 38] DynamicInitializeLexicalBinding `c`, src:String("abcxyz")
- [ 48] DynamicInitializeLexicalBinding `d`, src:String("abcxyz")
- [ 58] DynamicInitializeLexicalBinding `e`, src:String("abcxyz")
- [ 68] DynamicInitializeLexicalBinding `f`, src:String("abcxyz")
- [ 78] Mov dst:reg6, src:String("abc")
- [ 88] ConcatString dst:reg6, src:String("xyz")
- [ 98] DynamicInitializeLexicalBinding `g`, src:reg6
- [ a8] GetGlobal value_feedback:0, dst:reg6, `prefix`
- [ b8] Call value_feedback:1, call_feedback:0, dst:reg6, callee:reg6, this_value:Undefined, arguments:[String("abc")]
- [ e0] DynamicInitializeLexicalBinding `_prefix`, src:reg6
- [ f0] GetGlobal value_feedback:2, dst:reg6, `suffix`
- [ 100] Call value_feedback:3, call_feedback:1, dst:reg6, callee:reg6, this_value:Undefined, arguments:[String("abc")]
- [ 128] DynamicInitializeLexicalBinding `_suffix`, src:reg6
- [ 138] GetGlobal value_feedback:4, dst:reg6, `tostring`
- [ 148] Call value_feedback:5, call_feedback:2, dst:reg6, callee:reg6, this_value:Undefined, arguments:[String("abc")]
- [ 170] DynamicInitializeLexicalBinding `_tostring`, src:reg6
- [ 180] GetGlobal value_feedback:6, dst:reg6, `multi`
- [ 190] Call value_feedback:7, call_feedback:3, dst:reg6, callee:reg6, this_value:Undefined, arguments:[Int32(1), Int32(2), Int32(3)]
- [ 1c0] DynamicInitializeLexicalBinding `_multi`, src:reg6
- [ 1d0] GetGlobal value_feedback:8, dst:reg6, `literal`
- [ 1e0] Call value_feedback:9, call_feedback:4, dst:reg6, callee:reg6, this_value:Undefined
- [ 200] DynamicInitializeLexicalBinding `_literal`, src:reg6
- [ 210] GetGlobal value_feedback:10, dst:reg6, `empty`
- [ 220] Call value_feedback:11, call_feedback:5, dst:reg6, callee:reg6, this_value:Undefined
- [ 240] DynamicInitializeLexicalBinding `_empty`, src:reg6
- [ 250] End value:reg5
-
-
-prefix$ee05ef82 const-fold-template-literals.js:2:5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] DynamicInitializeLexicalBinding `a`, src:String("abcxyz")
+ [ d] DynamicInitializeLexicalBinding `b`, src:String("abcxyz")
+ [ 14] DynamicInitializeLexicalBinding `c`, src:String("abcxyz")
+ [ 1b] DynamicInitializeLexicalBinding `d`, src:String("abcxyz")
+ [ 22] DynamicInitializeLexicalBinding `e`, src:String("abcxyz")
+ [ 29] DynamicInitializeLexicalBinding `f`, src:String("abcxyz")
+ [ 30] Mov dst:reg6, src:String("abc")
+ [ 35] ConcatString dst:reg6, src:String("xyz")
+ [ 3a] DynamicInitializeLexicalBinding `g`, src:reg6
+ [ 41] GetGlobal value_feedback:0, dst:reg6, `prefix`
+ [ 4a] Call value_feedback:1, call_feedback:0, dst:reg6, callee:reg6, this_value:Undefined, arguments:[String("abc")]
+ [ 61] DynamicInitializeLexicalBinding `_prefix`, src:reg6
+ [ 68] GetGlobal value_feedback:2, dst:reg6, `suffix`
+ [ 71] Call value_feedback:3, call_feedback:1, dst:reg6, callee:reg6, this_value:Undefined, arguments:[String("abc")]
+ [ 88] DynamicInitializeLexicalBinding `_suffix`, src:reg6
+ [ 8f] GetGlobal value_feedback:4, dst:reg6, `tostring`
+ [ 98] Call value_feedback:5, call_feedback:2, dst:reg6, callee:reg6, this_value:Undefined, arguments:[String("abc")]
+ [ af] DynamicInitializeLexicalBinding `_tostring`, src:reg6
+ [ b6] GetGlobal value_feedback:6, dst:reg6, `multi`
+ [ bf] Call value_feedback:7, call_feedback:3, dst:reg6, callee:reg6, this_value:Undefined, arguments:[Int32(1), Int32(2), Int32(3)]
+ [ da] DynamicInitializeLexicalBinding `_multi`, src:reg6
+ [ e1] GetGlobal value_feedback:8, dst:reg6, `literal`
+ [ ea] Call value_feedback:9, call_feedback:4, dst:reg6, callee:reg6, this_value:Undefined
+ [ ff] DynamicInitializeLexicalBinding `_literal`, src:reg6
+ [ 106] GetGlobal value_feedback:10, dst:reg6, `empty`
+ [ 10f] Call value_feedback:11, call_feedback:5, dst:reg6, callee:reg6, this_value:Undefined
+ [ 124] DynamicInitializeLexicalBinding `_empty`, src:reg6
+ [ 12b] End value:reg5
+
+
+prefix$0cfc751c const-fold-template-literals.js:2:5
Registers: 6
Blocks: 1
Constants:
@@ -52,12 +51,12 @@ prefix$ee05ef82 const-fold-template-literals.js:2:5
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:String("prefix-")
- [ 18] ConcatString dst:reg5, src:arg0
- [ 28] Return value:reg5
+ [ 1] Mov dst:reg5, src:String("prefix-")
+ [ 6] ConcatString dst:reg5, src:arg0
+ [ b] Return value:reg5
-suffix$2d50857a const-fold-template-literals.js:5:5
+suffix$4f0afc24 const-fold-template-literals.js:5:5
Registers: 6
Blocks: 1
Constants:
@@ -65,34 +64,34 @@ suffix$2d50857a const-fold-template-literals.js:5:5
block0:
[ 0] Enter
- [ 8] ToString dst:reg5, value:arg0
- [ 18] ConcatString dst:reg5, src:String("-suffix")
- [ 28] Return value:reg5
+ [ 1] ToString dst:reg5, value:arg0
+ [ 6] ConcatString dst:reg5, src:String("-suffix")
+ [ b] Return value:reg5
-tostring$38b2333e const-fold-template-literals.js:8:5
+tostring$0d045be7 const-fold-template-literals.js:8:5
Registers: 6
Blocks: 1
block0:
[ 0] Enter
- [ 8] ToString dst:reg5, value:arg0
- [ 18] Return value:reg5
+ [ 1] ToString dst:reg5, value:arg0
+ [ 6] Return value:reg5
-multi$78d1543a const-fold-template-literals.js:11:5
+multi$30f0e859 const-fold-template-literals.js:11:5
Registers: 6
Blocks: 1
block0:
[ 0] Enter
- [ 8] ToString dst:reg5, value:arg0
- [ 18] ConcatString dst:reg5, src:arg1
- [ 28] ConcatString dst:reg5, src:arg2
- [ 38] Return value:reg5
+ [ 1] ToString dst:reg5, value:arg0
+ [ 6] ConcatString dst:reg5, src:arg1
+ [ b] ConcatString dst:reg5, src:arg2
+ [ 10] Return value:reg5
-literal$96ebafed const-fold-template-literals.js:14:5
+literal$5376c299 const-fold-template-literals.js:14:5
Registers: 6
Blocks: 1
Constants:
@@ -100,10 +99,10 @@ literal$96ebafed const-fold-template-literals.js:14:5
block0:
[ 0] Enter
- [ 8] Return value:String("hello world")
+ [ 1] Return value:String("hello world")
-empty$c72ec9ec const-fold-template-literals.js:17:5
+empty$8941beb8 const-fold-template-literals.js:17:5
Registers: 6
Blocks: 1
Constants:
@@ -111,4 +110,4 @@ empty$c72ec9ec const-fold-template-literals.js:17:5
block0:
[ 0] Enter
- [ 8] Return value:String("")
+ [ 1] Return value:String("")
diff --git a/Tests/LibJS/Bytecode/expected/constant-fold-large-string-to-number.txt b/Tests/LibJS/Bytecode/expected/constant-fold-large-string-to-number.txt
index 2c71a5f5b1e..7da3f22e90e 100644
--- a/Tests/LibJS/Bytecode/expected/constant-fold-large-string-to-number.txt
+++ b/Tests/LibJS/Bytecode/expected/constant-fold-large-string-to-number.txt
@@ -1,19 +1,15 @@
-$07237b81 constant-fold-large-string-to-number.js:1:5
+$ec987474 constant-fold-large-string-to-number.js:1:5
Registers: 6
Blocks: 1
Constants:
[0] = Undefined
- [1] = String("0x10000000000000000")
- [2] = Double(18446744073709552000)
- [3] = String("0xFFFFFFFFFFFFFFFF")
- [4] = String("0b10000000000000000000000000000000000000000000000000000000000000000")
- [5] = String("0o2000000000000000000000")
+ [1] = Double(18446744073709552000)
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] SetGlobal `a`, src:Double(18446744073709552000)
- [ 28] SetGlobal `b`, src:Double(18446744073709552000)
- [ 38] SetGlobal `c`, src:Double(18446744073709552000)
- [ 48] SetGlobal `d`, src:Double(18446744073709552000)
- [ 58] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] SetGlobal `a`, src:Double(18446744073709552000)
+ [ d] SetGlobal `b`, src:Double(18446744073709552000)
+ [ 14] SetGlobal `c`, src:Double(18446744073709552000)
+ [ 1b] SetGlobal `d`, src:Double(18446744073709552000)
+ [ 22] End value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/constant-fold-string-to-number.txt b/Tests/LibJS/Bytecode/expected/constant-fold-string-to-number.txt
index 427ee7e71a8..30d72af95c1 100644
--- a/Tests/LibJS/Bytecode/expected/constant-fold-string-to-number.txt
+++ b/Tests/LibJS/Bytecode/expected/constant-fold-string-to-number.txt
@@ -1,22 +1,18 @@
-$07237b81 constant-fold-string-to-number.js:1:5
+$ec987474 constant-fold-string-to-number.js:1:5
Registers: 6
Blocks: 1
Constants:
[0] = Undefined
- [1] = String("12345")
- [2] = Int32(12345)
- [3] = Int32(10)
- [4] = Int32(123450)
- [5] = String("42")
- [6] = Int32(-42)
- [7] = String("5")
- [8] = Int32(-6)
+ [1] = Int32(12345)
+ [2] = Int32(123450)
+ [3] = Int32(-42)
+ [4] = Int32(-6)
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] SetGlobal `a`, src:Int32(12345)
- [ 28] SetGlobal `b`, src:Int32(123450)
- [ 38] SetGlobal `c`, src:Int32(-42)
- [ 48] SetGlobal `d`, src:Int32(-6)
- [ 58] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] SetGlobal `a`, src:Int32(12345)
+ [ d] SetGlobal `b`, src:Int32(123450)
+ [ 14] SetGlobal `c`, src:Int32(-42)
+ [ 1b] SetGlobal `d`, src:Int32(-6)
+ [ 22] End value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/debugger-statement.txt b/Tests/LibJS/Bytecode/expected/debugger-statement.txt
index 7b6af5eb21d..6dca93ea559 100644
--- a/Tests/LibJS/Bytecode/expected/debugger-statement.txt
+++ b/Tests/LibJS/Bytecode/expected/debugger-statement.txt
@@ -1,4 +1,4 @@
-$e60df662 debugger-statement.js:6:1
+$d3cec285 debugger-statement.js:6:1
Registers: 7
Blocks: 1
Constants:
@@ -6,13 +6,13 @@ $e60df662 debugger-statement.js:6:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `run`
- [ 28] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 48] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `run`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 24] End value:reg5
-run$c8d7583b debugger-statement.js:2:5
+run$3abe0df6 debugger-statement.js:2:5
Registers: 5
Blocks: 1
Constants:
@@ -20,5 +20,5 @@ run$c8d7583b debugger-statement.js:2:5
block0:
[ 0] Enter
- [ 8] Debugger
- [ 10] Return value:Int32(42)
+ [ 1] Debugger
+ [ 2] Return value:Int32(42)
diff --git a/Tests/LibJS/Bytecode/expected/default-param-self-reference.txt b/Tests/LibJS/Bytecode/expected/default-param-self-reference.txt
index 3343a5c22b9..295e2cf41aa 100644
--- a/Tests/LibJS/Bytecode/expected/default-param-self-reference.txt
+++ b/Tests/LibJS/Bytecode/expected/default-param-self-reference.txt
@@ -1,4 +1,4 @@
-$b5a1afae default-param-self-reference.js:2:1
+$0309fdaf default-param-self-reference.js:2:1
Registers: 7
Blocks: 1
Constants:
@@ -7,13 +7,13 @@ $b5a1afae default-param-self-reference.js:2:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `f`
- [ 28] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(1)]
- [ 50] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `f`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(1)]
+ [ 26] End value:reg5
-f$b0fa3bce default-param-self-reference.js:1:12
+f$993325d1 default-param-self-reference.js:1:12
Registers: 5
Blocks: 3
Constants:
@@ -22,11 +22,11 @@ f$b0fa3bce default-param-self-reference.js:1:12
block0:
[ 0] Enter
- [ 8] JumpUndefined condition:arg0, true_target:block1, false_target:block2
+ [ 1] JumpUndefined condition:arg0, true_target:block1, false_target:block2
block1:
- [ 18] Mov dst:arg0, src:<Empty>
- [ 28] ThrowIfTDZ src:arg0
+ [ c] Mov dst:arg0, src:<Empty>
+ [ 11] ThrowIfTDZ src:arg0
block2:
- [ 30] End value:Undefined
+ [ 14] End value:Undefined
diff --git a/Tests/LibJS/Bytecode/expected/delete-expression-register.txt b/Tests/LibJS/Bytecode/expected/delete-expression-register.txt
index 187a56221f9..9e39f5c00fe 100644
--- a/Tests/LibJS/Bytecode/expected/delete-expression-register.txt
+++ b/Tests/LibJS/Bytecode/expected/delete-expression-register.txt
@@ -1,4 +1,4 @@
-$676feeea delete-expression-register.js:6:1
+$b4d83ceb delete-expression-register.js:6:1
Registers: 7
Blocks: 1
Constants:
@@ -7,13 +7,13 @@ $676feeea delete-expression-register.js:6:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `f`
- [ 28] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(1)]
- [ 50] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `f`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(1)]
+ [ 26] End value:reg5
-f$9c808ee0 delete-expression-register.js:2:9
+f$3370d63f delete-expression-register.js:2:9
Registers: 7
Blocks: 3
Locals: arguments~0, x~1
@@ -24,15 +24,15 @@ f$9c808ee0 delete-expression-register.js:2:9
block0:
[ 0] Enter
- [ 8] CreateArguments dst:arguments~0, is_immutable:false, creates_parameter_bindings:false
- [ 18] Mov dst:x~1, src:Undefined
- [ 28] Mov dst:x~1, src:Bool(false)
- [ 38] Mov dst:reg5, src:x~1
- [ 48] JumpTrue condition:reg5, target:block2
+ [ 1] CreateArguments dst:arguments~0, is_immutable:false, creates_parameter_bindings:false
+ [ a] Mov dst:x~1, src:Undefined
+ [ f] Mov dst:x~1, src:Bool(false)
+ [ 14] Mov dst:reg5, src:x~1
+ [ 19] JumpTrue condition:reg5, target:block2
block1:
- [ 58] DeleteByValue dst:reg5, base:arguments~0, property:Int32(0)
+ [ 20] DeleteByValue dst:reg5, base:arguments~0, property:Int32(0)
block2:
- [ 68] Mov dst:x~1, src:reg5
- [ 78] Return value:x~1
+ [ 27] Mov dst:x~1, src:reg5
+ [ 2c] Return value:x~1
diff --git a/Tests/LibJS/Bytecode/expected/delete-super-eval-order.txt b/Tests/LibJS/Bytecode/expected/delete-super-eval-order.txt
index 3542bc1d024..07780c48138 100644
--- a/Tests/LibJS/Bytecode/expected/delete-super-eval-order.txt
+++ b/Tests/LibJS/Bytecode/expected/delete-super-eval-order.txt
@@ -1,4 +1,4 @@
-$ebe22a63 delete-super-eval-order.js:4:1
+$b6eed7c5 delete-super-eval-order.js:4:1
Registers: 8
Blocks: 4
Constants:
@@ -8,36 +8,36 @@ $ebe22a63 delete-super-eval-order.js:4:1
block0:
[ 0] Enter
- [ 8] GetLexicalEnvironment dst:reg4
- [ 10] Mov dst:reg5, src:Undefined
- [ 20] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
- [ 38] CreateVariable `A`, is_immutable:true, is_global:false, is_strict:true
- [ 48] SetLexicalEnvironment environment:reg4
- [ 50] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys:[element_keys:String("m")]
- [ 80] DynamicInitializeLexicalBinding `A`, src:reg6
- [ 90] Mov dst:reg5, src:Undefined
+ [ 1] GetLexicalEnvironment dst:reg4
+ [ 4] Mov dst:reg5, src:Undefined
+ [ 9] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
+ [ 17] CreateVariable `A`, is_immutable:true, is_global:false, is_strict:true
+ [ 21] SetLexicalEnvironment environment:reg4
+ [ 24] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys:[element_keys:String("m")]
+ [ 3f] DynamicInitializeLexicalBinding `A`, src:reg6
+ [ 46] Mov dst:reg5, src:Undefined
block1:
- [ a0] GetGlobal value_feedback:0, dst:reg6, `A`
- [ b0] CallConstruct value_feedback:1, call_feedback:0, dst:reg6, callee:reg6
- [ d0] GetById value_feedback:2, dst:reg7, base:reg6, `m`
- [ e8] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[String("x")]
- [ 110] Jump target:block3
+ [ 4b] GetGlobal value_feedback:0, dst:reg6, `A`
+ [ 54] CallConstruct value_feedback:1, call_feedback:0, dst:reg6, callee:reg6
+ [ 67] GetById value_feedback:2, dst:reg7, base:reg6, `m`
+ [ 74] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[String("x")]
+ [ 8b] Jump target:block3
block2:
- [ 118] Catch value_feedback:4, dst:reg6
- [ 120] SetLexicalEnvironment environment:reg4
- [ 128] Mov dst:reg5, src:Undefined
- [ 138] Jump target:block3
+ [ 90] Catch value_feedback:4, dst:reg6
+ [ 95] SetLexicalEnvironment environment:reg4
+ [ 98] Mov dst:reg5, src:Undefined
+ [ 9d] Jump target:block3
block3:
- [ 140] End value:reg5
+ [ a2] End value:reg5
Exception handlers:
- [ a0 .. 118] => handler block2
+ [ 4b .. 90] => handler block2
-A$70678274
+A$2cf29520
Registers: 5
Blocks: 1
Constants:
@@ -45,16 +45,16 @@ A$70678274
block0:
[ 0] Enter
- [ 8] End value:Undefined
+ [ 1] End value:Undefined
-m$0f7c4977 delete-super-eval-order.js:6:9
+m$084cd9da delete-super-eval-order.js:6:9
Registers: 6
Blocks: 1
block0:
[ 0] Enter
- [ 8] ResolveThisBinding
- [ 10] ResolveSuperBase dst:reg5
- [ 18] NewReferenceError dst:reg5, Can't delete a property on 'super'
- [ 28] Throw src:reg5
+ [ 1] ResolveThisBinding
+ [ 2] ResolveSuperBase dst:reg5
+ [ 5] NewReferenceError dst:reg5, Can't delete a property on 'super'
+ [ a] Throw src:reg5
diff --git a/Tests/LibJS/Bytecode/expected/delete-super-property.txt b/Tests/LibJS/Bytecode/expected/delete-super-property.txt
index a86e0306f81..a446c5f8df2 100644
--- a/Tests/LibJS/Bytecode/expected/delete-super-property.txt
+++ b/Tests/LibJS/Bytecode/expected/delete-super-property.txt
@@ -1,4 +1,4 @@
-$752dc5b7 delete-super-property.js:1:1
+$f86052f1 delete-super-property.js:1:1
Registers: 8
Blocks: 7
Locals: e~0, e~1
@@ -10,57 +10,57 @@ $752dc5b7 delete-super-property.js:1:1
block0:
[ 0] Enter
- [ 8] GetLexicalEnvironment dst:reg4
- [ 10] Mov dst:reg5, src:Undefined
- [ 20] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
- [ 38] CreateVariable `A`, is_immutable:true, is_global:false, is_strict:true
- [ 48] SetLexicalEnvironment environment:reg4
- [ 50] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys:[element_keys:String("foo"), element_keys:String("baz")]
- [ 80] DynamicInitializeLexicalBinding `A`, src:reg6
- [ 90] Mov dst:reg5, src:Undefined
+ [ 1] GetLexicalEnvironment dst:reg4
+ [ 4] Mov dst:reg5, src:Undefined
+ [ 9] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
+ [ 17] CreateVariable `A`, is_immutable:true, is_global:false, is_strict:true
+ [ 21] SetLexicalEnvironment environment:reg4
+ [ 24] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys:[element_keys:String("foo"), element_keys:String("baz")]
+ [ 41] DynamicInitializeLexicalBinding `A`, src:reg6
+ [ 48] Mov dst:reg5, src:Undefined
block1:
- [ a0] GetGlobal value_feedback:0, dst:reg6, `A`
- [ b0] CallConstruct value_feedback:1, call_feedback:0, dst:reg6, callee:reg6
- [ d0] GetById value_feedback:2, dst:reg7, base:reg6, `foo`
- [ e8] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6
- [ 108] Jump target:block3
+ [ 4d] GetGlobal value_feedback:0, dst:reg6, `A`
+ [ 56] CallConstruct value_feedback:1, call_feedback:0, dst:reg6, callee:reg6
+ [ 69] GetById value_feedback:2, dst:reg7, base:reg6, `foo`
+ [ 76] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6
+ [ 8b] Jump target:block3
block2:
- [ 110] Catch value_feedback:4, dst:reg6
- [ 118] SetLexicalEnvironment environment:reg4
- [ 120] Mov dst:reg5, src:Undefined
- [ 130] Mov dst:e~0, src:<Empty>
- [ 140] Mov dst:e~0, src:reg6
- [ 150] Jump target:block3
+ [ 90] Catch value_feedback:4, dst:reg6
+ [ 95] SetLexicalEnvironment environment:reg4
+ [ 98] Mov dst:reg5, src:Undefined
+ [ 9d] Mov dst:e~0, src:<Empty>
+ [ a2] Mov dst:e~0, src:reg6
+ [ a7] Jump target:block3
block3:
- [ 158] Mov dst:reg5, src:Undefined
+ [ ac] Mov dst:reg5, src:Undefined
block4:
- [ 168] GetGlobal value_feedback:5, dst:reg6, `A`
- [ 178] CallConstruct value_feedback:6, call_feedback:2, dst:reg6, callee:reg6
- [ 198] GetById value_feedback:7, dst:reg7, base:reg6, `baz`
- [ 1b0] Call value_feedback:8, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6
- [ 1d0] Jump target:block6
+ [ b1] GetGlobal value_feedback:5, dst:reg6, `A`
+ [ ba] CallConstruct value_feedback:6, call_feedback:2, dst:reg6, callee:reg6
+ [ cd] GetById value_feedback:7, dst:reg7, base:reg6, `baz`
+ [ da] Call value_feedback:8, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6
+ [ ef] Jump target:block6
block5:
- [ 1d8] Catch value_feedback:9, dst:reg6
- [ 1e0] SetLexicalEnvironment environment:reg4
- [ 1e8] Mov dst:reg5, src:Undefined
- [ 1f8] Mov dst:e~1, src:<Empty>
- [ 208] Mov dst:e~1, src:reg6
- [ 218] Jump target:block6
+ [ f4] Catch value_feedback:9, dst:reg6
+ [ f9] SetLexicalEnvironment environment:reg4
+ [ fc] Mov dst:reg5, src:Undefined
+ [ 101] Mov dst:e~1, src:<Empty>
+ [ 106] Mov dst:e~1, src:reg6
+ [ 10b] Jump target:block6
block6:
- [ 220] End value:reg5
+ [ 110] End value:reg5
Exception handlers:
- [ a0 .. 110] => handler block2
- [ 168 .. 1d8] => handler block5
+ [ 4d .. 90] => handler block2
+ [ b1 .. f4] => handler block5
-A$70678274
+A$2cf29520
Registers: 5
Blocks: 1
Constants:
@@ -68,30 +68,28 @@ A$70678274
block0:
[ 0] Enter
- [ 8] End value:Undefined
+ [ 1] End value:Undefined
-foo$7707d509 delete-super-property.js:3:9
+foo$dddec684 delete-super-property.js:3:9
Registers: 6
Blocks: 1
block0:
[ 0] Enter
- [ 8] ResolveThisBinding
- [ 10] ResolveSuperBase dst:reg5
- [ 18] NewReferenceError dst:reg5, Can't delete a property on 'super'
- [ 28] Throw src:reg5
+ [ 1] ResolveThisBinding
+ [ 2] ResolveSuperBase dst:reg5
+ [ 5] NewReferenceError dst:reg5, Can't delete a property on 'super'
+ [ a] Throw src:reg5
-baz$8acb3acb delete-super-property.js:6:9
+baz$fcb1f086 delete-super-property.js:6:9
Registers: 6
Blocks: 1
- Constants:
- [0] = String("bar")
block0:
[ 0] Enter
- [ 8] ResolveThisBinding
- [ 10] ResolveSuperBase dst:reg5
- [ 18] NewReferenceError dst:reg5, Can't delete a property on 'super'
- [ 28] Throw src:reg5
+ [ 1] ResolveThisBinding
+ [ 2] ResolveSuperBase dst:reg5
+ [ 5] NewReferenceError dst:reg5, Can't delete a property on 'super'
+ [ a] Throw src:reg5
diff --git a/Tests/LibJS/Bytecode/expected/destructure-array-rest.txt b/Tests/LibJS/Bytecode/expected/destructure-array-rest.txt
index 0ccdff7aecd..798c1e68c62 100644
--- a/Tests/LibJS/Bytecode/expected/destructure-array-rest.txt
+++ b/Tests/LibJS/Bytecode/expected/destructure-array-rest.txt
@@ -1,4 +1,4 @@
-$faa11ddd destructure-array-rest.js:9:1
+$1d77f81a destructure-array-rest.js:9:1
Registers: 7
Blocks: 1
Constants:
@@ -6,75 +6,72 @@ $faa11ddd destructure-array-rest.js:9:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `f`
- [ 28] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 48] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `f`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 24] End value:reg5
-f$208077fb destructure-array-rest.js:6:5
+f$6b479068 destructure-array-rest.js:6:5
Registers: 12
Blocks: 14
Locals: a~0, b~1
Constants:
[0] = <Empty>
- [1] = Int32(1)
- [2] = Int32(2)
- [3] = Int32(3)
- [4] = Bool(false)
- [5] = Undefined
+ [1] = Bool(false)
+ [2] = Undefined
block0:
[ 0] Enter
- [ 8] Mov dst:a~0, src:<Empty>
- [ 18] Mov dst:b~1, src:<Empty>
- [ 28] NewPrimitiveArray dst:reg5, elements:[1, 2, 3]
- [ 50] Mov dst:reg6, src:Bool(false)
- [ 60] GetIterator dst_iterator_object:reg7, dst_iterator_next:reg8, dst_iterator_done:reg9, iterable:reg5, fast_array_mode_allowed:true
- [ 80] IteratorNextUnpack dst_value:reg10, dst_done:reg6, iterator_object:reg7, iterator_next:reg8, iterator_done:reg9
+ [ 1] Mov dst:a~0, src:<Empty>
+ [ 6] Mov dst:b~1, src:<Empty>
+ [ b] NewPrimitiveArray dst:reg5, elements:[1, 2, 3]
+ [ 2e] Mov dst:reg6, src:Bool(false)
+ [ 33] GetIterator dst_iterator_object:reg7, dst_iterator_next:reg8, dst_iterator_done:reg9, iterable:reg5, fast_array_mode_allowed:true
+ [ 43] IteratorNextUnpack dst_value:reg10, dst_done:reg6, iterator_object:reg7, iterator_next:reg8, iterator_done:reg9
block1:
- [ 98] JumpFalse condition:reg6, target:block3
+ [ 4e] JumpFalse condition:reg6, target:block3
block2:
- [ a8] Mov dst:reg10, src:Undefined
+ [ 55] Mov dst:reg10, src:Undefined
block3:
- [ b8] Mov dst:a~0, src:reg10
- [ c8] JumpTrue condition:reg6, target:block6
+ [ 5a] Mov dst:a~0, src:reg10
+ [ 5f] JumpTrue condition:reg6, target:block6
block4:
- [ d8] IteratorToArray dst:reg10, iterator_object:reg7, iterator_next_method:reg8, iterator_done_property:reg9
+ [ 66] IteratorToArray dst:reg10, iterator_object:reg7, iterator_next_method:reg8, iterator_done_property:reg9
block5:
- [ f0] Jump target:block7
+ [ 6f] Jump target:block7
block6:
- [ f8] NewArray dst:reg10
+ [ 74] NewArray dst:reg10
block7:
- [ 108] Mov dst:b~1, src:reg10
+ [ 7f] Mov dst:b~1, src:reg10
block8:
- [ 118] JumpTrue condition:reg9, target:block13
+ [ 84] JumpTrue condition:reg9, target:block13
block9:
- [ 128] IteratorClose iterator_object:reg7, iterator_next:reg8, iterator_done:reg9, completion_value:Undefined
- [ 148] Jump target:block13
+ [ 8b] IteratorClose iterator_object:reg7, iterator_next:reg8, iterator_done:reg9, completion_value:Undefined
+ [ 9a] Jump target:block13
block10:
- [ 150] Catch value_feedback:0, dst:reg11
- [ 158] JumpTrue condition:reg9, target:block12
+ [ 9f] Catch value_feedback:0, dst:reg11
+ [ a4] JumpTrue condition:reg9, target:block12
block11:
- [ 168] IteratorClose iterator_object:reg7, iterator_next:reg8, iterator_done:reg9, completion_value:reg11
+ [ ab] IteratorClose iterator_object:reg7, iterator_next:reg8, iterator_done:reg9, completion_value:reg11
block12:
- [ 188] Throw src:reg11
+ [ ba] Throw src:reg11
block13:
- [ 190] Return value:b~1
+ [ bd] Return value:b~1
Exception handlers:
- [ 98 .. d8] => handler block10
- [ f0 .. 118] => handler block10
+ [ 4e .. 66] => handler block10
+ [ 6f .. 84] => handler block10
diff --git a/Tests/LibJS/Bytecode/expected/destructuring-assignment-in-logical-and.txt b/Tests/LibJS/Bytecode/expected/destructuring-assignment-in-logical-and.txt
index 03a4d6776a4..a98cfa11230 100644
--- a/Tests/LibJS/Bytecode/expected/destructuring-assignment-in-logical-and.txt
+++ b/Tests/LibJS/Bytecode/expected/destructuring-assignment-in-logical-and.txt
@@ -1,4 +1,4 @@
-$916dd419 destructuring-assignment-in-logical-and.js:5:1
+$f4f5aa9a destructuring-assignment-in-logical-and.js:5:1
Registers: 7
Blocks: 1
Constants:
@@ -8,13 +8,13 @@ $916dd419 destructuring-assignment-in-logical-and.js:5:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `f`
- [ 28] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Null, Int32(0)]
- [ 50] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `f`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Null, Int32(0)]
+ [ 28] End value:reg5
-f$d31b6efb destructuring-assignment-in-logical-and.js:2:9
+f$81f587d3 destructuring-assignment-in-logical-and.js:2:9
Registers: 13
Blocks: 16
Locals: a~0, b~1
@@ -24,62 +24,62 @@ f$d31b6efb destructuring-assignment-in-logical-and.js:2:9
block0:
[ 0] Enter
- [ 8] Mov dst:a~0, src:Undefined
- [ 18] Mov dst:b~1, src:Undefined
- [ 28] Mov dst:reg5, src:arg0
- [ 38] JumpFalse condition:reg5, target:block15
+ [ 1] Mov dst:a~0, src:Undefined
+ [ 6] Mov dst:b~1, src:Undefined
+ [ b] Mov dst:reg5, src:arg0
+ [ 10] JumpFalse condition:reg5, target:block15
block1:
- [ 48] Call value_feedback:0, call_feedback:0, dst:reg7, callee:arg0, this_value:Undefined, arguments:[arg1]
- [ 70] Mov dst:reg8, src:Bool(false)
- [ 80] GetIterator dst_iterator_object:reg9, dst_iterator_next:reg10, dst_iterator_done:reg11, iterable:reg7, fast_array_mode_allowed:true
- [ a0] IteratorNextUnpack dst_value:reg12, dst_done:reg8, iterator_object:reg9, iterator_next:reg10, iterator_done:reg11
+ [ 17] Call value_feedback:0, call_feedback:0, dst:reg7, callee:arg0, this_value:Undefined, arguments:[arg1]
+ [ 2e] Mov dst:reg8, src:Bool(false)
+ [ 33] GetIterator dst_iterator_object:reg9, dst_iterator_next:reg10, dst_iterator_done:reg11, iterable:reg7, fast_array_mode_allowed:true
+ [ 43] IteratorNextUnpack dst_value:reg12, dst_done:reg8, iterator_object:reg9, iterator_next:reg10, iterator_done:reg11
block2:
- [ b8] JumpFalse condition:reg8, target:block4
+ [ 4e] JumpFalse condition:reg8, target:block4
block3:
- [ c8] Mov dst:reg12, src:Undefined
+ [ 55] Mov dst:reg12, src:Undefined
block4:
- [ d8] Mov dst:a~0, src:reg12
- [ e8] JumpTrue condition:reg8, target:block7
+ [ 5a] Mov dst:a~0, src:reg12
+ [ 5f] JumpTrue condition:reg8, target:block7
block5:
- [ f8] IteratorNextUnpack dst_value:reg12, dst_done:reg8, iterator_object:reg9, iterator_next:reg10, iterator_done:reg11
+ [ 66] IteratorNextUnpack dst_value:reg12, dst_done:reg8, iterator_object:reg9, iterator_next:reg10, iterator_done:reg11
block6:
- [ 110] JumpFalse condition:reg8, target:block8
+ [ 71] JumpFalse condition:reg8, target:block8
block7:
- [ 120] Mov dst:reg12, src:Undefined
+ [ 78] Mov dst:reg12, src:Undefined
block8:
- [ 130] Mov dst:b~1, src:reg12
+ [ 7d] Mov dst:b~1, src:reg12
block9:
- [ 140] JumpTrue condition:reg11, target:block14
+ [ 82] JumpTrue condition:reg11, target:block14
block10:
- [ 150] IteratorClose iterator_object:reg9, iterator_next:reg10, iterator_done:reg11, completion_value:Undefined
- [ 170] Jump target:block14
+ [ 89] IteratorClose iterator_object:reg9, iterator_next:reg10, iterator_done:reg11, completion_value:Undefined
+ [ 98] Jump target:block14
block11:
- [ 178] Catch value_feedback:1, dst:reg12
- [ 180] JumpTrue condition:reg11, target:block13
+ [ 9d] Catch value_feedback:1, dst:reg12
+ [ a2] JumpTrue condition:reg11, target:block13
block12:
- [ 190] IteratorClose iterator_object:reg9, iterator_next:reg10, iterator_done:reg11, completion_value:reg12
+ [ a9] IteratorClose iterator_object:reg9, iterator_next:reg10, iterator_done:reg11, completion_value:reg12
block13:
- [ 1b0] Throw src:reg12
+ [ b8] Throw src:reg12
block14:
- [ 1b8] Mov dst:reg5, src:reg7
+ [ bb] Mov dst:reg5, src:reg7
block15:
- [ 1c8] End value:Undefined
+ [ c0] End value:Undefined
Exception handlers:
- [ b8 .. f8] => handler block11
- [ 110 .. 140] => handler block11
+ [ 4e .. 66] => handler block11
+ [ 71 .. 82] => handler block11
diff --git a/Tests/LibJS/Bytecode/expected/destructuring-assignment.txt b/Tests/LibJS/Bytecode/expected/destructuring-assignment.txt
index 5cc1d77cc90..db047564eb1 100644
--- a/Tests/LibJS/Bytecode/expected/destructuring-assignment.txt
+++ b/Tests/LibJS/Bytecode/expected/destructuring-assignment.txt
@@ -1,4 +1,4 @@
-$f2f04dd8 destructuring-assignment.js:28:1
+$ebc0de3b destructuring-assignment.js:28:1
Registers: 7
Blocks: 1
Constants:
@@ -6,17 +6,17 @@ $f2f04dd8 destructuring-assignment.js:28:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `array_destructuring_with_class_default`
- [ 28] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 48] GetGlobal value_feedback:2, dst:reg6, `object_destructuring_with_function_default`
- [ 58] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined
- [ 78] GetGlobal value_feedback:4, dst:reg6, `setter_parameter_resolution`
- [ 88] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg6, this_value:Undefined
- [ a8] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `array_destructuring_with_class_default`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 24] GetGlobal value_feedback:2, dst:reg6, `object_destructuring_with_function_default`
+ [ 2d] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined
+ [ 42] GetGlobal value_feedback:4, dst:reg6, `setter_parameter_resolution`
+ [ 4b] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg6, this_value:Undefined
+ [ 60] End value:reg5
-array_destructuring_with_class_default$125a2281 destructuring-assignment.js:5:9
+array_destructuring_with_class_default$ac31166c destructuring-assignment.js:5:9
Registers: 14
Blocks: 12
Locals: x~0
@@ -26,58 +26,58 @@ array_destructuring_with_class_default$125a2281 destructuring-assignment.js:5:9
block0:
[ 0] Enter
- [ 8] Mov dst:x~0, src:Undefined
- [ 18] GetLexicalEnvironment dst:reg4
- [ 20] NewArray dst:reg6, elements:[Undefined]
- [ 38] Mov dst:reg7, src:Bool(false)
- [ 48] GetIterator dst_iterator_object:reg8, dst_iterator_next:reg9, dst_iterator_done:reg10, iterable:reg6, fast_array_mode_allowed:true
- [ 68] IteratorNextUnpack dst_value:reg11, dst_done:reg7, iterator_object:reg8, iterator_next:reg9, iterator_done:reg10
+ [ 1] Mov dst:x~0, src:Undefined
+ [ 6] GetLexicalEnvironment dst:reg4
+ [ 9] NewArray dst:reg6, elements:[Undefined]
+ [ 16] Mov dst:reg7, src:Bool(false)
+ [ 1b] GetIterator dst_iterator_object:reg8, dst_iterator_next:reg9, dst_iterator_done:reg10, iterable:reg6, fast_array_mode_allowed:true
+ [ 2b] IteratorNextUnpack dst_value:reg11, dst_done:reg7, iterator_object:reg8, iterator_next:reg9, iterator_done:reg10
block1:
- [ 80] JumpFalse condition:reg7, target:block3
+ [ 36] JumpFalse condition:reg7, target:block3
block2:
- [ 90] Mov dst:reg11, src:Undefined
+ [ 3d] Mov dst:reg11, src:Undefined
block3:
- [ a0] JumpUndefined condition:reg11, true_target:block4, false_target:block5
+ [ 42] JumpUndefined condition:reg11, true_target:block4, false_target:block5
block4:
- [ b0] CreateLexicalEnvironment dst:reg13, parent:reg4, capacity:1, is_catch_environment:false
- [ c8] CreateVariable `C`, is_immutable:true, is_global:false, is_strict:true
- [ d8] SetLexicalEnvironment environment:reg4
- [ e0] NewClass dst:reg12, class_environment:reg13, class_blueprint_index:0
- [ 108] Mov dst:reg11, src:reg12
+ [ 4d] CreateLexicalEnvironment dst:reg13, parent:reg4, capacity:1, is_catch_environment:false
+ [ 5b] CreateVariable `C`, is_immutable:true, is_global:false, is_strict:true
+ [ 65] SetLexicalEnvironment environment:reg4
+ [ 68] NewClass dst:reg12, class_environment:reg13, class_blueprint_index:0
+ [ 81] Mov dst:reg11, src:reg12
block5:
- [ 118] Mov dst:x~0, src:reg11
+ [ 86] Mov dst:x~0, src:reg11
block6:
- [ 128] JumpTrue condition:reg10, target:block11
+ [ 8b] JumpTrue condition:reg10, target:block11
block7:
- [ 138] IteratorClose iterator_object:reg8, iterator_next:reg9, iterator_done:reg10, completion_value:Undefined
- [ 158] Jump target:block11
+ [ 92] IteratorClose iterator_object:reg8, iterator_next:reg9, iterator_done:reg10, completion_value:Undefined
+ [ a1] Jump target:block11
block8:
- [ 160] Catch value_feedback:0, dst:reg11
- [ 168] SetLexicalEnvironment environment:reg4
- [ 170] JumpTrue condition:reg10, target:block10
+ [ a6] Catch value_feedback:0, dst:reg11
+ [ ab] SetLexicalEnvironment environment:reg4
+ [ ae] JumpTrue condition:reg10, target:block10
block9:
- [ 180] IteratorClose iterator_object:reg8, iterator_next:reg9, iterator_done:reg10, completion_value:reg11
+ [ b5] IteratorClose iterator_object:reg8, iterator_next:reg9, iterator_done:reg10, completion_value:reg11
block10:
- [ 1a0] Throw src:reg11
+ [ c4] Throw src:reg11
block11:
- [ 1a8] Return value:x~0
+ [ c7] Return value:x~0
Exception handlers:
- [ 80 .. 128] => handler block8
+ [ 36 .. 8b] => handler block8
-object_destructuring_with_function_default$66979be0 destructuring-assignment.js:11:9
+object_destructuring_with_function_default$2bf9aba6 destructuring-assignment.js:11:9
Registers: 9
Blocks: 3
Locals: x~0
@@ -86,81 +86,80 @@ object_destructuring_with_function_default$66979be0 destructuring-assignment.js:
block0:
[ 0] Enter
- [ 8] Mov dst:x~0, src:Undefined
- [ 18] NewObject dst:reg5
- [ 28] Mov dst:reg6, src:reg5
- [ 38] ThrowIfNullish src:reg6
- [ 40] GetById value_feedback:0, dst:reg7, base:reg6, `x`
- [ 58] JumpUndefined condition:reg7, true_target:block1, false_target:block2
+ [ 1] Mov dst:x~0, src:Undefined
+ [ 6] NewObject dst:reg5
+ [ b] Mov dst:reg6, src:reg5
+ [ 10] ThrowIfNullish src:reg6
+ [ 13] GetById value_feedback:0, dst:reg7, base:reg6, `x`
+ [ 20] JumpUndefined condition:reg7, true_target:block1, false_target:block2
block1:
- [ 68] NewFunction dst:reg7, shared_function_data_index:0 (x)
+ [ 2b] NewFunction dst:reg7, shared_function_data_index:0 (x)
block2:
- [ 80] Mov dst:x~0, src:reg7
- [ 90] Return value:x~0
+ [ 36] Mov dst:x~0, src:reg7
+ [ 3b] Return value:x~0
-setter_parameter_resolution$dac170a8 destructuring-assignment.js:17:9
+setter_parameter_resolution$142041d3 destructuring-assignment.js:17:9
Registers: 13
Blocks: 12
Constants:
[0] = Undefined
- [1] = Int32(23)
- [2] = Bool(false)
+ [1] = Bool(false)
block0:
[ 0] Enter
- [ 8] CreateVariable `setValue`, is_immutable:false, is_global:false, is_strict:false
- [ 18] InitializeVariableBinding `setValue`, src:Undefined
- [ 30] NewPrimitiveArray dst:reg6, elements:[23]
- [ 48] Mov dst:reg7, src:Bool(false)
- [ 58] GetIterator dst_iterator_object:reg8, dst_iterator_next:reg9, dst_iterator_done:reg10, iterable:reg6, fast_array_mode_allowed:true
+ [ 1] CreateVariable `setValue`, is_immutable:false, is_global:false, is_strict:false
+ [ b] InitializeVariableBinding `setValue`, src:Undefined
+ [ 18] NewPrimitiveArray dst:reg6, elements:[23]
+ [ 2b] Mov dst:reg7, src:Bool(false)
+ [ 30] GetIterator dst_iterator_object:reg8, dst_iterator_next:reg9, dst_iterator_done:reg10, iterable:reg6, fast_array_mode_allowed:true
block1:
- [ 78] NewObject dst:reg11
- [ 88] NewFunction dst:reg12, shared_function_data_index:0 (set y), home_object:reg11
- [ a0] PutById base:reg11, `y`, src:reg12, kind:Setter
+ [ 40] NewObject dst:reg11
+ [ 45] NewFunction dst:reg12, shared_function_data_index:0 (set y), home_object:reg11
+ [ 50] PutById base:reg11, `y`, src:reg12, kind:Setter
block2:
- [ c0] IteratorNextUnpack dst_value:reg12, dst_done:reg7, iterator_object:reg8, iterator_next:reg9, iterator_done:reg10
+ [ 5f] IteratorNextUnpack dst_value:reg12, dst_done:reg7, iterator_object:reg8, iterator_next:reg9, iterator_done:reg10
block3:
- [ d8] JumpFalse condition:reg7, target:block5
+ [ 6a] JumpFalse condition:reg7, target:block5
block4:
- [ e8] Mov dst:reg12, src:Undefined
+ [ 71] Mov dst:reg12, src:Undefined
block5:
- [ f8] PutById base:reg11, `y`, src:reg12, kind:Normal
+ [ 76] PutById base:reg11, `y`, src:reg12, kind:Normal
block6:
- [ 118] JumpTrue condition:reg10, target:block11
+ [ 85] JumpTrue condition:reg10, target:block11
block7:
- [ 128] IteratorClose iterator_object:reg8, iterator_next:reg9, iterator_done:reg10, completion_value:Undefined
- [ 148] Jump target:block11
+ [ 8c] IteratorClose iterator_object:reg8, iterator_next:reg9, iterator_done:reg10, completion_value:Undefined
+ [ 9b] Jump target:block11
block8:
- [ 150] Catch value_feedback:0, dst:reg11
- [ 158] JumpTrue condition:reg10, target:block10
+ [ a0] Catch value_feedback:0, dst:reg11
+ [ a5] JumpTrue condition:reg10, target:block10
block9:
- [ 168] IteratorClose iterator_object:reg8, iterator_next:reg9, iterator_done:reg10, completion_value:reg11
+ [ ac] IteratorClose iterator_object:reg8, iterator_next:reg9, iterator_done:reg10, completion_value:reg11
block10:
- [ 188] Throw src:reg11
+ [ bb] Throw src:reg11
block11:
- [ 190] GetInitializedBinding value_feedback:1, dst:reg5, `setValue`
- [ 1a8] Return value:reg5
+ [ be] GetInitializedBinding value_feedback:1, dst:reg5, `setValue`
+ [ cd] Return value:reg5
Exception handlers:
- [ 78 .. c0] => handler block8
- [ d8 .. 118] => handler block8
+ [ 40 .. 5f] => handler block8
+ [ 6a .. 85] => handler block8
-set y$f1335721 destructuring-assignment.js:21:26
+set y$252d01a8 destructuring-assignment.js:21:26
Registers: 5
Blocks: 1
Constants:
@@ -168,5 +167,5 @@ set y$f1335721 destructuring-assignment.js:21:26
block0:
[ 0] Enter
- [ 8] SetLexicalBinding `setValue`, src:arg0
- [ 20] End value:Undefined
+ [ 1] SetLexicalBinding `setValue`, src:arg0
+ [ e] End value:Undefined
diff --git a/Tests/LibJS/Bytecode/expected/destructuring-let-compound-assign.txt b/Tests/LibJS/Bytecode/expected/destructuring-let-compound-assign.txt
index 5eedea62e58..5a21a8cb375 100644
--- a/Tests/LibJS/Bytecode/expected/destructuring-let-compound-assign.txt
+++ b/Tests/LibJS/Bytecode/expected/destructuring-let-compound-assign.txt
@@ -1,4 +1,4 @@
-$96f5b639 destructuring-let-compound-assign.js:5:1
+$11283f24 destructuring-let-compound-assign.js:5:1
Registers: 9
Blocks: 1
Constants:
@@ -6,15 +6,15 @@ $96f5b639 destructuring-let-compound-assign.js:5:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `f`
- [ 28] NewObject dst:reg7
- [ 38] NewObject dst:reg8
- [ 48] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7, reg8]
- [ 70] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `f`
+ [ f] NewObject dst:reg7
+ [ 14] NewObject dst:reg8
+ [ 19] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7, reg8]
+ [ 32] End value:reg5
-f$7baf0be4 destructuring-let-compound-assign.js:2:5
+f$7246d521 destructuring-let-compound-assign.js:2:5
Registers: 7
Blocks: 1
Locals: a~0
@@ -25,11 +25,11 @@ f$7baf0be4 destructuring-let-compound-assign.js:2:5
block0:
[ 0] Enter
- [ 8] Mov dst:a~0, src:<Empty>
- [ 18] ThrowIfNullish src:arg0
- [ 20] Mov dst:reg5, src:arg0
- [ 30] GetById value_feedback:0, dst:a~0, base:reg5, `patchFlag`
- [ 48] GetById value_feedback:1, dst:reg5, base:arg1, `patchFlag`
- [ 60] BitwiseAnd arith_feedback:0, dst:reg5, lhs:Int32(16), rhs:reg5
- [ 70] BitwiseOr arith_feedback:1, dst:a~0, lhs:a~0, rhs:reg5
- [ 80] End value:Undefined
+ [ 1] Mov dst:a~0, src:<Empty>
+ [ 6] ThrowIfNullish src:arg0
+ [ 9] Mov dst:reg5, src:arg0
+ [ e] GetById value_feedback:0, dst:a~0, base:reg5, `patchFlag`
+ [ 1b] GetById value_feedback:1, dst:reg5, base:arg1, `patchFlag`
+ [ 28] BitwiseAnd arith_feedback:0, dst:reg5, lhs:Int32(16), rhs:reg5
+ [ 31] BitwiseOr arith_feedback:1, dst:a~0, lhs:a~0, rhs:reg5
+ [ 3a] End value:Undefined
diff --git a/Tests/LibJS/Bytecode/expected/destructuring-no-base-identifier.txt b/Tests/LibJS/Bytecode/expected/destructuring-no-base-identifier.txt
index 5dcaaf48bc8..4349b8a22bf 100644
--- a/Tests/LibJS/Bytecode/expected/destructuring-no-base-identifier.txt
+++ b/Tests/LibJS/Bytecode/expected/destructuring-no-base-identifier.txt
@@ -1,56 +1,55 @@
-$46dacfae destructuring-no-base-identifier.js:1:5
+$33edb66b destructuring-no-base-identifier.js:1:5
Registers: 14
Blocks: 12
Constants:
[0] = Undefined
- [1] = Int32(42)
- [2] = Bool(false)
+ [1] = Bool(false)
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] NewObject dst:reg6
- [ 28] SetGlobal `x`, src:reg6
- [ 38] NewPrimitiveArray dst:reg7, elements:[42]
- [ 50] Mov dst:reg8, src:Bool(false)
- [ 60] GetIterator dst_iterator_object:reg9, dst_iterator_next:reg10, dst_iterator_done:reg11, iterable:reg7, fast_array_mode_allowed:true
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] NewObject dst:reg6
+ [ b] SetGlobal `x`, src:reg6
+ [ 12] NewPrimitiveArray dst:reg7, elements:[42]
+ [ 25] Mov dst:reg8, src:Bool(false)
+ [ 2a] GetIterator dst_iterator_object:reg9, dst_iterator_next:reg10, dst_iterator_done:reg11, iterable:reg7, fast_array_mode_allowed:true
block1:
- [ 80] GetGlobal value_feedback:0, dst:reg12, `x`
+ [ 3a] GetGlobal value_feedback:0, dst:reg12, `x`
block2:
- [ 90] IteratorNextUnpack dst_value:reg13, dst_done:reg8, iterator_object:reg9, iterator_next:reg10, iterator_done:reg11
+ [ 43] IteratorNextUnpack dst_value:reg13, dst_done:reg8, iterator_object:reg9, iterator_next:reg10, iterator_done:reg11
block3:
- [ a8] JumpFalse condition:reg8, target:block5
+ [ 4e] JumpFalse condition:reg8, target:block5
block4:
- [ b8] Mov dst:reg13, src:Undefined
+ [ 55] Mov dst:reg13, src:Undefined
block5:
- [ c8] PutById base:reg12, `y`, src:reg13, kind:Normal
+ [ 5a] PutById base:reg12, `y`, src:reg13, kind:Normal
block6:
- [ e8] JumpTrue condition:reg11, target:block11
+ [ 69] JumpTrue condition:reg11, target:block11
block7:
- [ f8] IteratorClose iterator_object:reg9, iterator_next:reg10, iterator_done:reg11, completion_value:Undefined
- [ 118] Jump target:block11
+ [ 70] IteratorClose iterator_object:reg9, iterator_next:reg10, iterator_done:reg11, completion_value:Undefined
+ [ 7f] Jump target:block11
block8:
- [ 120] Catch value_feedback:1, dst:reg12
- [ 128] JumpTrue condition:reg11, target:block10
+ [ 84] Catch value_feedback:1, dst:reg12
+ [ 89] JumpTrue condition:reg11, target:block10
block9:
- [ 138] IteratorClose iterator_object:reg9, iterator_next:reg10, iterator_done:reg11, completion_value:reg12
+ [ 90] IteratorClose iterator_object:reg9, iterator_next:reg10, iterator_done:reg11, completion_value:reg12
block10:
- [ 158] Throw src:reg12
+ [ 9f] Throw src:reg12
block11:
- [ 160] Mov dst:reg5, src:reg7
- [ 170] End value:reg5
+ [ a2] Mov dst:reg5, src:reg7
+ [ a7] End value:reg5
Exception handlers:
- [ 80 .. 90] => handler block8
- [ a8 .. e8] => handler block8
+ [ 3a .. 43] => handler block8
+ [ 4e .. 69] => handler block8
diff --git a/Tests/LibJS/Bytecode/expected/destructuring-param-no-param-expressions.txt b/Tests/LibJS/Bytecode/expected/destructuring-param-no-param-expressions.txt
index 568a337142c..f2fd1cf6cef 100644
--- a/Tests/LibJS/Bytecode/expected/destructuring-param-no-param-expressions.txt
+++ b/Tests/LibJS/Bytecode/expected/destructuring-param-no-param-expressions.txt
@@ -1,4 +1,4 @@
-$365dc696 destructuring-param-no-param-expressions.js:10:1
+$20cf77bf destructuring-param-no-param-expressions.js:10:1
Registers: 8
Blocks: 1
Constants:
@@ -8,28 +8,28 @@ $365dc696 destructuring-param-no-param-expressions.js:10:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `f`
- [ 28] NewObject dst:reg7
- [ 38] InitObjectLiteralProperty object:reg7, `captured`, src:Int32(1), shape_cache_index:0, property_slot:0
- [ 50] InitObjectLiteralProperty object:reg7, `local`, src:Int32(2), shape_cache_index:0, property_slot:1
- [ 68] CacheObjectShape object:reg7
- [ 78] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
- [ a0] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `f`
+ [ f] NewObject dst:reg7
+ [ 14] InitObjectLiteralProperty object:reg7, `captured`, src:Int32(1), shape_cache_index:0, property_slot:0
+ [ 23] InitObjectLiteralProperty object:reg7, `local`, src:Int32(2), shape_cache_index:0, property_slot:1
+ [ 32] CacheObjectShape object:reg7
+ [ 37] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
+ [ 4e] End value:reg5
-f$24ed28b9 destructuring-param-no-param-expressions.js:6:12
+f$48e06689 destructuring-param-no-param-expressions.js:6:12
Registers: 7
Blocks: 1
Locals: local~0
block0:
[ 0] Enter
- [ 8] CreateVariable `captured`, is_immutable:false, is_global:false, is_strict:false
- [ 18] ThrowIfNullish src:arg0
- [ 20] Mov dst:reg5, src:arg0
- [ 30] GetById value_feedback:0, dst:reg6, base:reg5, `captured`
- [ 48] InitializeLexicalBinding `captured`, src:reg6
- [ 60] GetById value_feedback:1, dst:local~0, base:reg5, `local`
- [ 78] NewFunction dst:reg5, shared_function_data_index:0
- [ 90] Return value:reg5
+ [ 1] CreateVariable `captured`, is_immutable:false, is_global:false, is_strict:false
+ [ b] ThrowIfNullish src:arg0
+ [ e] Mov dst:reg5, src:arg0
+ [ 13] GetById value_feedback:0, dst:reg6, base:reg5, `captured`
+ [ 20] InitializeLexicalBinding `captured`, src:reg6
+ [ 2d] GetById value_feedback:1, dst:local~0, base:reg5, `local`
+ [ 3a] NewFunction dst:reg5, shared_function_data_index:0
+ [ 45] Return value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/do-while-register-allocation.txt b/Tests/LibJS/Bytecode/expected/do-while-register-allocation.txt
index 083d488eca7..73edb45f497 100644
--- a/Tests/LibJS/Bytecode/expected/do-while-register-allocation.txt
+++ b/Tests/LibJS/Bytecode/expected/do-while-register-allocation.txt
@@ -1,4 +1,4 @@
-$69a7c5fb do-while-register-allocation.js:15:1
+$b71013fc do-while-register-allocation.js:15:1
Registers: 7
Blocks: 1
Constants:
@@ -6,52 +6,51 @@ $69a7c5fb do-while-register-allocation.js:15:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `test`
- [ 28] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 48] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `test`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 24] End value:reg5
-test$dda5d10a do-while-register-allocation.js:8:9
+test$60242d25 do-while-register-allocation.js:8:9
Registers: 7
Blocks: 3
Locals: i~0
Constants:
[0] = Undefined
[1] = Int32(0)
- [2] = Int32(7)
block0:
[ 0] Enter
- [ 8] Mov dst:i~0, src:Undefined
- [ 18] Mov dst:i~0, src:Int32(0)
- [ 28] GetGlobal value_feedback:0, dst:reg5, `foo`
- [ 38] NewArray dst:reg6
- [ 48] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg5, this_value:Undefined, arguments:[reg6]
+ [ 1] Mov dst:i~0, src:Undefined
+ [ 6] Mov dst:i~0, src:Int32(0)
+ [ b] GetGlobal value_feedback:0, dst:reg5, `foo`
+ [ 14] NewArray dst:reg6
+ [ 1f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg5, this_value:Undefined, arguments:[reg6]
block1:
- [ 70] GetGlobal value_feedback:2, dst:reg5, `bar`
- [ 80] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg5, this_value:Undefined, arguments:[i~0]
- [ a8] Increment arith_feedback:0, dst:i~0
- [ b0] JumpLessThanLoopRhsInt32 arith_feedback:1, lhs:i~0, rhs:7, true_target:block1, false_target:block2
+ [ 36] GetGlobal value_feedback:2, dst:reg5, `bar`
+ [ 3f] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg5, this_value:Undefined, arguments:[i~0]
+ [ 56] Increment arith_feedback:0, dst:i~0
+ [ 5b] JumpLessThanLoopRhsInt32 arith_feedback:1, lhs:i~0, rhs:7, true_target:block1, false_target:block2
block2:
- [ c8] End value:Undefined
+ [ 6c] End value:Undefined
-foo$14c42854 do-while-register-allocation.js:2:5
+foo$d14f3b00 do-while-register-allocation.js:2:5
Registers: 5
Blocks: 1
block0:
[ 0] Enter
- [ 8] Return value:arg0
+ [ 1] Return value:arg0
-bar$501962bc do-while-register-allocation.js:5:5
+bar$0ca47568 do-while-register-allocation.js:5:5
Registers: 5
Blocks: 1
block0:
[ 0] Enter
- [ 8] Return value:arg0
+ [ 1] Return value:arg0
diff --git a/Tests/LibJS/Bytecode/expected/double-constant-deduplication.txt b/Tests/LibJS/Bytecode/expected/double-constant-deduplication.txt
index 282da579802..d72bf1761fc 100644
--- a/Tests/LibJS/Bytecode/expected/double-constant-deduplication.txt
+++ b/Tests/LibJS/Bytecode/expected/double-constant-deduplication.txt
@@ -1,4 +1,4 @@
-$136acfcc double-constant-deduplication.js:8:1
+$d69a282b double-constant-deduplication.js:8:1
Registers: 7
Blocks: 1
Constants:
@@ -6,13 +6,13 @@ $136acfcc double-constant-deduplication.js:8:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `foo`
- [ 28] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 48] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `foo`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 24] End value:reg5
-foo$81fdd1a8 double-constant-deduplication.js:2:9
+foo$1dead13d double-constant-deduplication.js:2:9
Registers: 6
Blocks: 1
Locals: a~0, b~1, c~2
@@ -21,9 +21,9 @@ foo$81fdd1a8 double-constant-deduplication.js:2:9
block0:
[ 0] Enter
- [ 8] Mov dst:a~0, src:Double(0.5)
- [ 18] Mov dst:b~1, src:Double(0.5)
- [ 28] Mov dst:c~2, src:Double(0.5)
- [ 38] Add arith_feedback:0, dst:reg5, lhs:a~0, rhs:b~1
- [ 48] Add arith_feedback:1, dst:reg5, lhs:reg5, rhs:c~2
- [ 58] Return value:reg5
+ [ 1] Mov dst:a~0, src:Double(0.5)
+ [ 6] Mov dst:b~1, src:Double(0.5)
+ [ b] Mov dst:c~2, src:Double(0.5)
+ [ 10] Add arith_feedback:0, dst:reg5, lhs:a~0, rhs:b~1
+ [ 19] Add arith_feedback:1, dst:reg5, lhs:reg5, rhs:c~2
+ [ 22] Return value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/enclosing-function-bindings-with-eval-or-with.txt b/Tests/LibJS/Bytecode/expected/enclosing-function-bindings-with-eval-or-with.txt
index 1b38cef962c..0f1dafb323b 100644
--- a/Tests/LibJS/Bytecode/expected/enclosing-function-bindings-with-eval-or-with.txt
+++ b/Tests/LibJS/Bytecode/expected/enclosing-function-bindings-with-eval-or-with.txt
@@ -1,4 +1,4 @@
-$69a7c5fb enclosing-function-bindings-with-eval-or-with.js:15:1
+$b71013fc enclosing-function-bindings-with-eval-or-with.js:15:1
Registers: 7
Blocks: 1
Constants:
@@ -6,13 +6,13 @@ $69a7c5fb enclosing-function-bindings-with-eval-or-with.js:15:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `outer`
- [ 28] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 48] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `outer`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 24] End value:reg5
-outer$9d7827c4 enclosing-function-bindings-with-eval-or-with.js:2:9
+outer$2a35a73d enclosing-function-bindings-with-eval-or-with.js:2:9
Registers: 11
Blocks: 1
Constants:
@@ -21,28 +21,28 @@ outer$9d7827c4 enclosing-function-bindings-with-eval-or-with.js:2:9
block0:
[ 0] Enter
- [ 8] CreateVariable `a`, is_immutable:false, is_global:false, is_strict:false
- [ 18] CreateVariable `evaluates`, is_immutable:false, is_global:false, is_strict:false
- [ 28] InitializeVariableBinding `evaluates`, src:Undefined
- [ 40] NewFunction dst:reg5, shared_function_data_index:0
- [ 58] SetVariableBinding `evaluates`, src:reg5
- [ 70] CreateVariable `withObject`, is_immutable:false, is_global:false, is_strict:false
- [ 80] InitializeVariableBinding `withObject`, src:Undefined
- [ 98] NewFunction dst:reg6, shared_function_data_index:1
- [ b0] SetVariableBinding `withObject`, src:reg6
- [ c8] InitializeLexicalBinding `a`, src:Int32(1)
- [ e0] GetCalleeAndThisFromEnvironment value_feedback:0, callee:reg7, this_value:reg8, `evaluates`
- [ f8] Call value_feedback:1, call_feedback:0, dst:reg7, callee:reg7, this_value:reg8
- [ 118] Call value_feedback:2, call_feedback:1, dst:reg7, callee:reg7, this_value:Undefined
- [ 138] GetCalleeAndThisFromEnvironment value_feedback:3, callee:reg8, this_value:reg9, `withObject`
- [ 150] NewObject dst:reg10
- [ 160] Call value_feedback:4, call_feedback:2, dst:reg8, callee:reg8, this_value:reg9, arguments:[reg10]
- [ 188] Call value_feedback:5, call_feedback:3, dst:reg8, callee:reg8, this_value:Undefined
- [ 1a8] NewArray dst:reg9, elements:[reg7, reg8]
- [ 1c0] Return value:reg9
-
-
-evaluates$c9a2fbb4 enclosing-function-bindings-with-eval-or-with.js:4:13
+ [ 1] CreateVariable `a`, is_immutable:false, is_global:false, is_strict:false
+ [ b] CreateVariable `evaluates`, is_immutable:false, is_global:false, is_strict:false
+ [ 15] InitializeVariableBinding `evaluates`, src:Undefined
+ [ 22] NewFunction dst:reg5, shared_function_data_index:0
+ [ 2d] SetVariableBinding `evaluates`, src:reg5
+ [ 3a] CreateVariable `withObject`, is_immutable:false, is_global:false, is_strict:false
+ [ 44] InitializeVariableBinding `withObject`, src:Undefined
+ [ 51] NewFunction dst:reg6, shared_function_data_index:1
+ [ 5c] SetVariableBinding `withObject`, src:reg6
+ [ 69] InitializeLexicalBinding `a`, src:Int32(1)
+ [ 76] GetCalleeAndThisFromEnvironment value_feedback:0, callee:reg7, this_value:reg8, `evaluates`
+ [ 87] Call value_feedback:1, call_feedback:0, dst:reg7, callee:reg7, this_value:reg8
+ [ 9c] Call value_feedback:2, call_feedback:1, dst:reg7, callee:reg7, this_value:Undefined
+ [ b1] GetCalleeAndThisFromEnvironment value_feedback:3, callee:reg8, this_value:reg9, `withObject`
+ [ c2] NewObject dst:reg10
+ [ c7] Call value_feedback:4, call_feedback:2, dst:reg8, callee:reg8, this_value:reg9, arguments:[reg10]
+ [ de] Call value_feedback:5, call_feedback:3, dst:reg8, callee:reg8, this_value:Undefined
+ [ f3] NewArray dst:reg9, elements:[reg7, reg8]
+ [ 102] Return value:reg9
+
+
+evaluates$5eebb596 enclosing-function-bindings-with-eval-or-with.js:4:13
Registers: 7
Blocks: 1
Constants:
@@ -50,14 +50,14 @@ evaluates$c9a2fbb4 enclosing-function-bindings-with-eval-or-with.js:4:13
block0:
[ 0] Enter
- [ 8] CreateArguments is_immutable:false, creates_parameter_bindings:false
- [ 18] DynamicGetCalleeAndThisFromEnvironment value_feedback:0, callee:reg5, this_value:reg6, `eval`
- [ 30] CallDirectEval value_feedback:1, call_feedback:0, dst:reg5, callee:reg5, this_value:reg6, arguments:[String("")]
- [ 58] NewFunction dst:reg5, shared_function_data_index:0
- [ 70] Return value:reg5
+ [ 1] CreateArguments is_immutable:false, creates_parameter_bindings:false
+ [ a] DynamicGetCalleeAndThisFromEnvironment value_feedback:0, callee:reg5, this_value:reg6, `eval`
+ [ 15] CallDirectEval value_feedback:1, call_feedback:0, dst:reg5, callee:reg5, this_value:reg6, arguments:[String("")]
+ [ 2c] NewFunction dst:reg5, shared_function_data_index:0
+ [ 37] Return value:reg5
-eval$3e0b1c9b
+eval$66f502e2
Registers: 6
Blocks: 1
Constants:
@@ -65,38 +65,38 @@ eval$3e0b1c9b
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] End value:reg5
-$9c1c05f0 enclosing-function-bindings-with-eval-or-with.js:5:16
+$a8d357ad enclosing-function-bindings-with-eval-or-with.js:5:16
Registers: 6
Blocks: 1
block0:
[ 0] Enter
- [ 8] DynamicGetBinding value_feedback:0, dst:reg5, `a`
- [ 18] Return value:reg5
+ [ 1] DynamicGetBinding value_feedback:0, dst:reg5, `a`
+ [ a] Return value:reg5
-withObject$c7af78eb enclosing-function-bindings-with-eval-or-with.js:8:9
+withObject$2fa2cdf9 enclosing-function-bindings-with-eval-or-with.js:8:9
Registers: 7
Blocks: 1
block0:
[ 0] Enter
- [ 8] GetLexicalEnvironment dst:reg4
- [ 10] EnterObjectEnvironment dst:reg5, object:arg0
- [ 20] NewFunction dst:reg6, shared_function_data_index:0
- [ 38] SetLexicalEnvironment environment:reg4
- [ 40] Return value:reg6
+ [ 1] GetLexicalEnvironment dst:reg4
+ [ 4] EnterObjectEnvironment dst:reg5, object:arg0
+ [ 9] NewFunction dst:reg6, shared_function_data_index:0
+ [ 14] SetLexicalEnvironment environment:reg4
+ [ 17] Return value:reg6
-$112bcbb8 enclosing-function-bindings-with-eval-or-with.js:9:20
+$1b1f2c65 enclosing-function-bindings-with-eval-or-with.js:9:20
Registers: 6
Blocks: 1
block0:
[ 0] Enter
- [ 8] DynamicGetBinding value_feedback:0, dst:reg5, `a`
- [ 18] Return value:reg5
+ [ 1] DynamicGetBinding value_feedback:0, dst:reg5, `a`
+ [ a] Return value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/enclosing-function-bindings.txt b/Tests/LibJS/Bytecode/expected/enclosing-function-bindings.txt
index e60b4d6b043..6a71358c7f7 100644
--- a/Tests/LibJS/Bytecode/expected/enclosing-function-bindings.txt
+++ b/Tests/LibJS/Bytecode/expected/enclosing-function-bindings.txt
@@ -1,4 +1,4 @@
-$f5bf1d5d enclosing-function-bindings.js:1:1
+$c36d0053 enclosing-function-bindings.js:1:1
Registers: 7
Blocks: 1
Constants:
@@ -8,18 +8,18 @@ $f5bf1d5d enclosing-function-bindings.js:1:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] Mov dst:reg5, src:String("use strict")
- [ 28] GetGlobal value_feedback:0, dst:reg6, `outer`
- [ 38] Call value_feedback:1, call_feedback:0, dst:reg6, callee:reg6, this_value:Undefined, arguments:[Int32(1)]
- [ 60] Call value_feedback:2, call_feedback:1, dst:reg6, callee:reg6, this_value:Undefined
- [ 80] Call value_feedback:3, call_feedback:2, dst:reg5, callee:reg6, this_value:Undefined
- [ a0] GetGlobal value_feedback:4, dst:reg6, `blockFunctions`
- [ b0] Call value_feedback:5, call_feedback:3, dst:reg5, callee:reg6, this_value:Undefined
- [ d0] End value:reg5
-
-
-outer$2efab589 enclosing-function-bindings.js:4:9
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] Mov dst:reg5, src:String("use strict")
+ [ b] GetGlobal value_feedback:0, dst:reg6, `outer`
+ [ 14] Call value_feedback:1, call_feedback:0, dst:reg6, callee:reg6, this_value:Undefined, arguments:[Int32(1)]
+ [ 2b] Call value_feedback:2, call_feedback:1, dst:reg6, callee:reg6, this_value:Undefined
+ [ 40] Call value_feedback:3, call_feedback:2, dst:reg5, callee:reg6, this_value:Undefined
+ [ 55] GetGlobal value_feedback:4, dst:reg6, `blockFunctions`
+ [ 5e] Call value_feedback:5, call_feedback:3, dst:reg5, callee:reg6, this_value:Undefined
+ [ 73] End value:reg5
+
+
+outer$66437b0a enclosing-function-bindings.js:4:9
Registers: 7
Blocks: 1
Constants:
@@ -27,55 +27,55 @@ outer$2efab589 enclosing-function-bindings.js:4:9
block0:
[ 0] Enter
- [ 8] CreateVariable `a`, is_immutable:false, is_global:false, is_strict:false
- [ 18] InitializeLexicalBinding `a`, src:arg0
- [ 30] CreateVariable `b`, is_immutable:false, is_global:false, is_strict:false
- [ 40] CreateVariable `callee`, is_immutable:false, is_global:false, is_strict:false
- [ 50] InitializeVariableBinding `callee`, src:Undefined
- [ 68] NewFunction dst:reg5, shared_function_data_index:0
- [ 80] SetVariableBinding `callee`, src:reg5
- [ 98] GetBinding value_feedback:0, dst:reg5, `a`
- [ b0] InitializeLexicalBinding `b`, src:reg5
- [ c8] NewFunction dst:reg6, shared_function_data_index:1
- [ e0] Return value:reg6
-
-
-$99e98519 enclosing-function-bindings.js:8:12
+ [ 1] CreateVariable `a`, is_immutable:false, is_global:false, is_strict:false
+ [ b] InitializeLexicalBinding `a`, src:arg0
+ [ 18] CreateVariable `b`, is_immutable:false, is_global:false, is_strict:false
+ [ 22] CreateVariable `callee`, is_immutable:false, is_global:false, is_strict:false
+ [ 2c] InitializeVariableBinding `callee`, src:Undefined
+ [ 39] NewFunction dst:reg5, shared_function_data_index:0
+ [ 44] SetVariableBinding `callee`, src:reg5
+ [ 51] GetBinding value_feedback:0, dst:reg5, `a`
+ [ 60] InitializeLexicalBinding `b`, src:reg5
+ [ 6d] NewFunction dst:reg6, shared_function_data_index:1
+ [ 78] Return value:reg6
+
+
+$304ea28e enclosing-function-bindings.js:8:12
Registers: 6
Blocks: 1
block0:
[ 0] Enter
- [ 8] NewFunction dst:reg5, shared_function_data_index:0
- [ 20] Return value:reg5
+ [ 1] NewFunction dst:reg5, shared_function_data_index:0
+ [ c] Return value:reg5
-inner$0df4d11e enclosing-function-bindings.js:10:15
+inner$64c555e2 enclosing-function-bindings.js:10:15
Registers: 8
Blocks: 1
block0:
[ 0] Enter
- [ 8] GetBinding value_feedback:0, dst:reg5, `b`
- [ 20] SetLexicalBinding `a`, src:reg5
- [ 38] TypeofBinding dst:reg5, `a`
- [ 50] GetCalleeAndThisFromEnvironment value_feedback:1, callee:reg6, this_value:reg7, `callee`
- [ 68] Call value_feedback:2, call_feedback:0, dst:reg6, callee:reg6, this_value:reg7
- [ 88] Add arith_feedback:0, dst:reg5, lhs:reg5, rhs:reg6
- [ 98] Return value:reg5
+ [ 1] GetBinding value_feedback:0, dst:reg5, `b`
+ [ 10] SetLexicalBinding `a`, src:reg5
+ [ 1d] TypeofBinding dst:reg5, `a`
+ [ 2a] GetCalleeAndThisFromEnvironment value_feedback:1, callee:reg6, this_value:reg7, `callee`
+ [ 3b] Call value_feedback:2, call_feedback:0, dst:reg6, callee:reg6, this_value:reg7
+ [ 50] Add arith_feedback:0, dst:reg5, lhs:reg5, rhs:reg6
+ [ 59] Return value:reg5
-callee$c2393260 enclosing-function-bindings.js:6:9
+callee$315bf70b enclosing-function-bindings.js:6:9
Registers: 6
Blocks: 1
block0:
[ 0] Enter
- [ 8] GetBinding value_feedback:0, dst:reg5, `b`
- [ 20] Return value:reg5
+ [ 1] GetBinding value_feedback:0, dst:reg5, `b`
+ [ 10] Return value:reg5
-blockFunctions$385d0424 enclosing-function-bindings.js:16:9
+blockFunctions$ee43d11d enclosing-function-bindings.js:16:9
Registers: 7
Blocks: 1
Locals: first~0
@@ -85,26 +85,26 @@ blockFunctions$385d0424 enclosing-function-bindings.js:16:9
block0:
[ 0] Enter
- [ 8] CreateVariable `c`, is_immutable:false, is_global:false, is_strict:false
- [ 18] GetLexicalEnvironment dst:reg4
- [ 20] InitializeLexicalBinding `c`, src:Int32(1)
- [ 38] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false
- [ 50] CreateVariable `second`, is_immutable:false, is_global:false, is_strict:false
- [ 60] NewFunction dst:first~0, shared_function_data_index:0
- [ 78] NewFunction dst:reg6, shared_function_data_index:1
- [ 90] InitializeLexicalBinding `second`, src:reg6
- [ a8] Call value_feedback:0, call_feedback:0, dst:reg6, callee:first~0, this_value:Undefined
- [ c8] SetLexicalEnvironment environment:reg4
- [ d0] Return value:reg6
-
-
-first$ff0e9329 enclosing-function-bindings.js:19:13
+ [ 1] CreateVariable `c`, is_immutable:false, is_global:false, is_strict:false
+ [ b] GetLexicalEnvironment dst:reg4
+ [ e] InitializeLexicalBinding `c`, src:Int32(1)
+ [ 1b] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false
+ [ 29] CreateVariable `second`, is_immutable:false, is_global:false, is_strict:false
+ [ 33] NewFunction dst:first~0, shared_function_data_index:0
+ [ 3e] NewFunction dst:reg6, shared_function_data_index:1
+ [ 49] InitializeLexicalBinding `second`, src:reg6
+ [ 56] Call value_feedback:0, call_feedback:0, dst:reg6, callee:first~0, this_value:Undefined
+ [ 6b] SetLexicalEnvironment environment:reg4
+ [ 6e] Return value:reg6
+
+
+first$3b5410e0 enclosing-function-bindings.js:19:13
Registers: 7
Blocks: 1
block0:
[ 0] Enter
- [ 8] GetBinding value_feedback:0, dst:reg5, `c`
- [ 20] TypeofBinding dst:reg6, `second`
- [ 38] Add arith_feedback:0, dst:reg5, lhs:reg5, rhs:reg6
- [ 48] Return value:reg5
+ [ 1] GetBinding value_feedback:0, dst:reg5, `c`
+ [ 10] TypeofBinding dst:reg6, `second`
+ [ 1d] Add arith_feedback:0, dst:reg5, lhs:reg5, rhs:reg6
+ [ 26] Return value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/eval-prevents-locals.txt b/Tests/LibJS/Bytecode/expected/eval-prevents-locals.txt
index 3f0d7521e38..a770d3b48f8 100644
--- a/Tests/LibJS/Bytecode/expected/eval-prevents-locals.txt
+++ b/Tests/LibJS/Bytecode/expected/eval-prevents-locals.txt
@@ -1,4 +1,4 @@
-$2ca8aec2 eval-prevents-locals.js:22:1
+$b27625d7 eval-prevents-locals.js:22:1
Registers: 7
Blocks: 1
Constants:
@@ -6,15 +6,15 @@ $2ca8aec2 eval-prevents-locals.js:22:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `with_eval`
- [ 28] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 48] GetGlobal value_feedback:2, dst:reg6, `outer_eval`
- [ 58] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined
- [ 78] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `with_eval`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 24] GetGlobal value_feedback:2, dst:reg6, `outer_eval`
+ [ 2d] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined
+ [ 42] End value:reg5
-with_eval$cd3f1631 eval-prevents-locals.js:6:9
+with_eval$bee036f7 eval-prevents-locals.js:6:9
Registers: 8
Blocks: 1
Constants:
@@ -23,18 +23,18 @@ with_eval$cd3f1631 eval-prevents-locals.js:6:9
block0:
[ 0] Enter
- [ 8] CreateArguments is_immutable:false, creates_parameter_bindings:false
- [ 18] GetLexicalEnvironment dst:reg4
- [ 20] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false
- [ 38] CreateVariable `x`, is_immutable:false, is_global:false, is_strict:false
- [ 48] InitializeLexicalBinding `x`, src:Int32(1)
- [ 60] DynamicGetCalleeAndThisFromEnvironment value_feedback:0, callee:reg6, this_value:reg7, `eval`
- [ 78] CallDirectEval value_feedback:1, call_feedback:0, dst:reg6, callee:reg6, this_value:reg7, arguments:[String("")]
- [ a0] GetBinding value_feedback:2, dst:reg6, `x`
- [ b8] Return value:reg6
-
-
-eval$3e0b1c9b
+ [ 1] CreateArguments is_immutable:false, creates_parameter_bindings:false
+ [ a] GetLexicalEnvironment dst:reg4
+ [ d] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false
+ [ 1b] CreateVariable `x`, is_immutable:false, is_global:false, is_strict:false
+ [ 25] InitializeLexicalBinding `x`, src:Int32(1)
+ [ 32] DynamicGetCalleeAndThisFromEnvironment value_feedback:0, callee:reg6, this_value:reg7, `eval`
+ [ 3d] CallDirectEval value_feedback:1, call_feedback:0, dst:reg6, callee:reg6, this_value:reg7, arguments:[String("")]
+ [ 54] GetBinding value_feedback:2, dst:reg6, `x`
+ [ 63] Return value:reg6
+
+
+eval$66f502e2
Registers: 6
Blocks: 1
Constants:
@@ -42,11 +42,11 @@ eval$3e0b1c9b
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] End value:reg5
-outer_eval$069e758d eval-prevents-locals.js:14:9
+outer_eval$6eb48617 eval-prevents-locals.js:14:9
Registers: 9
Blocks: 1
Constants:
@@ -55,21 +55,21 @@ outer_eval$069e758d eval-prevents-locals.js:14:9
block0:
[ 0] Enter
- [ 8] CreateArguments is_immutable:false, creates_parameter_bindings:false
- [ 18] GetLexicalEnvironment dst:reg4
- [ 20] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false
- [ 38] CreateVariable `inner`, is_immutable:false, is_global:false, is_strict:false
- [ 48] InitializeVariableBinding `inner`, src:Undefined
- [ 60] NewFunction dst:reg6, shared_function_data_index:0
- [ 78] SetVariableBinding `inner`, src:reg6
- [ 90] DynamicGetCalleeAndThisFromEnvironment value_feedback:0, callee:reg6, this_value:reg7, `eval`
- [ a8] CallDirectEval value_feedback:1, call_feedback:0, dst:reg6, callee:reg6, this_value:reg7, arguments:[String("")]
- [ d0] GetCalleeAndThisFromEnvironment value_feedback:2, callee:reg7, this_value:reg8, `inner`
- [ e8] Call value_feedback:3, call_feedback:1, dst:reg7, callee:reg7, this_value:reg8
- [ 108] Return value:reg7
-
-
-eval$3e0b1c9b
+ [ 1] CreateArguments is_immutable:false, creates_parameter_bindings:false
+ [ a] GetLexicalEnvironment dst:reg4
+ [ d] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false
+ [ 1b] CreateVariable `inner`, is_immutable:false, is_global:false, is_strict:false
+ [ 25] InitializeVariableBinding `inner`, src:Undefined
+ [ 32] NewFunction dst:reg6, shared_function_data_index:0
+ [ 3d] SetVariableBinding `inner`, src:reg6
+ [ 4a] DynamicGetCalleeAndThisFromEnvironment value_feedback:0, callee:reg6, this_value:reg7, `eval`
+ [ 55] CallDirectEval value_feedback:1, call_feedback:0, dst:reg6, callee:reg6, this_value:reg7, arguments:[String("")]
+ [ 6c] GetCalleeAndThisFromEnvironment value_feedback:2, callee:reg7, this_value:reg8, `inner`
+ [ 7d] Call value_feedback:3, call_feedback:1, dst:reg7, callee:reg7, this_value:reg8
+ [ 92] Return value:reg7
+
+
+eval$66f502e2
Registers: 6
Blocks: 1
Constants:
@@ -77,11 +77,11 @@ eval$3e0b1c9b
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] End value:reg5
-inner$0f7f0e46 eval-prevents-locals.js:16:13
+inner$db8563bf eval-prevents-locals.js:16:13
Registers: 5
Blocks: 1
Locals: y~0
@@ -90,5 +90,5 @@ inner$0f7f0e46 eval-prevents-locals.js:16:13
block0:
[ 0] Enter
- [ 8] Mov dst:y~0, src:Int32(2)
- [ 18] Return value:y~0
+ [ 1] Mov dst:y~0, src:Int32(2)
+ [ 6] Return value:y~0
diff --git a/Tests/LibJS/Bytecode/expected/eval-same-function.txt b/Tests/LibJS/Bytecode/expected/eval-same-function.txt
index a2c0cf7477b..0c8bec1b73d 100644
--- a/Tests/LibJS/Bytecode/expected/eval-same-function.txt
+++ b/Tests/LibJS/Bytecode/expected/eval-same-function.txt
@@ -1,4 +1,4 @@
-$d0a338ae eval-same-function.js:10:1
+$3d020c49 eval-same-function.js:10:1
Registers: 7
Blocks: 1
Constants:
@@ -6,13 +6,13 @@ $d0a338ae eval-same-function.js:10:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `foo`
- [ 28] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 48] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `foo`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 24] End value:reg5
-foo$40f9e494 eval-same-function.js:6:9
+foo$58c0fa91 eval-same-function.js:6:9
Registers: 7
Blocks: 1
Constants:
@@ -21,15 +21,15 @@ foo$40f9e494 eval-same-function.js:6:9
block0:
[ 0] Enter
- [ 8] CreateArguments is_immutable:false, creates_parameter_bindings:false
- [ 18] DynamicGetCalleeAndThisFromEnvironment value_feedback:0, callee:reg5, this_value:reg6, `eval`
- [ 30] CallDirectEval value_feedback:1, call_feedback:0, dst:reg5, callee:reg5, this_value:reg6, arguments:[String("var x = 1")]
- [ 58] DynamicGetBinding value_feedback:2, dst:reg5, `Number`
- [ 68] CallConstruct value_feedback:3, call_feedback:1, dst:reg5, callee:reg5, arguments:[Int32(42)]
- [ 90] Return value:reg5
+ [ 1] CreateArguments is_immutable:false, creates_parameter_bindings:false
+ [ a] DynamicGetCalleeAndThisFromEnvironment value_feedback:0, callee:reg5, this_value:reg6, `eval`
+ [ 15] CallDirectEval value_feedback:1, call_feedback:0, dst:reg5, callee:reg5, this_value:reg6, arguments:[String("var x = 1")]
+ [ 2c] DynamicGetBinding value_feedback:2, dst:reg5, `Number`
+ [ 35] CallConstruct value_feedback:3, call_feedback:1, dst:reg5, callee:reg5, arguments:[Int32(42)]
+ [ 4a] Return value:reg5
-eval$c783d60f line 1, column 5
+eval$3ef26dea line 1, column 5
Registers: 7
Blocks: 1
Constants:
@@ -38,7 +38,7 @@ eval$c783d60f line 1, column 5
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] ResolveBinding dst:reg6, `x`
- [ 28] SetResolvedBinding environment:reg6, `x`, src:Int32(1)
- [ 38] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] ResolveBinding dst:reg6, `x`
+ [ b] SetResolvedBinding environment:reg6, `x`, src:Int32(1)
+ [ 12] End value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/eval-scope-optimization.txt b/Tests/LibJS/Bytecode/expected/eval-scope-optimization.txt
index 248d01ebfa7..71b09354692 100644
--- a/Tests/LibJS/Bytecode/expected/eval-scope-optimization.txt
+++ b/Tests/LibJS/Bytecode/expected/eval-scope-optimization.txt
@@ -1,4 +1,4 @@
-$c5390f08 eval-scope-optimization.js:12:1
+$09ca5fef eval-scope-optimization.js:12:1
Registers: 7
Blocks: 1
Constants:
@@ -6,13 +6,13 @@ $c5390f08 eval-scope-optimization.js:12:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `outer`
- [ 28] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 48] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `outer`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 24] End value:reg5
-outer$aa324eaf eval-scope-optimization.js:6:5
+outer$46aa782e eval-scope-optimization.js:6:5
Registers: 7
Blocks: 1
Constants:
@@ -21,10 +21,10 @@ outer$aa324eaf eval-scope-optimization.js:6:5
block0:
[ 0] Enter
- [ 8] CreateVariable `inner`, is_immutable:false, is_global:false, is_strict:false
- [ 18] InitializeVariableBinding `inner`, src:Undefined
- [ 30] NewFunction dst:reg5, shared_function_data_index:0
- [ 48] SetVariableBinding `inner`, src:reg5
- [ 60] GetGlobal value_feedback:0, dst:reg6, `Number`
- [ 70] CallConstruct value_feedback:1, call_feedback:0, dst:reg6, callee:reg6, arguments:[Int32(42)]
- [ 98] Return value:reg6
+ [ 1] CreateVariable `inner`, is_immutable:false, is_global:false, is_strict:false
+ [ b] InitializeVariableBinding `inner`, src:Undefined
+ [ 18] NewFunction dst:reg5, shared_function_data_index:0
+ [ 23] SetVariableBinding `inner`, src:reg5
+ [ 30] GetGlobal value_feedback:0, dst:reg6, `Number`
+ [ 39] CallConstruct value_feedback:1, call_feedback:0, dst:reg6, callee:reg6, arguments:[Int32(42)]
+ [ 4e] Return value:reg6
diff --git a/Tests/LibJS/Bytecode/expected/expression-identifier-number-format.txt b/Tests/LibJS/Bytecode/expected/expression-identifier-number-format.txt
index 012de03353d..580d06f1464 100644
--- a/Tests/LibJS/Bytecode/expected/expression-identifier-number-format.txt
+++ b/Tests/LibJS/Bytecode/expected/expression-identifier-number-format.txt
@@ -1,4 +1,4 @@
-$1a7f12f1 expression-identifier-number-format.js:1:5
+$f7a838b4 expression-identifier-number-format.js:1:5
Registers: 8
Blocks: 1
Constants:
@@ -8,15 +8,15 @@ $1a7f12f1 expression-identifier-number-format.js:1:5
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] NewObject dst:reg6
- [ 28] SetGlobal `x`, src:reg6
- [ 38] GetGlobal value_feedback:0, dst:reg6, `x`
- [ 48] NewObject dst:reg7
- [ 58] PutByValue keyed_feedback:0, base:reg6, property:Double(1.1e-32), src:reg7, kind:Normal
- [ 78] Mov dst:reg5, src:reg7
- [ 88] GetGlobal value_feedback:1, dst:reg6, `x`
- [ 98] GetByValue value_feedback:2, keyed_feedback:1, dst:reg6, base:reg6, property:Double(1.1e-32)
- [ b8] PutById base:reg6, `foo`, src:Int32(42), kind:Normal
- [ d8] Mov dst:reg5, src:Int32(42)
- [ e8] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] NewObject dst:reg6
+ [ b] SetGlobal `x`, src:reg6
+ [ 12] GetGlobal value_feedback:0, dst:reg6, `x`
+ [ 1b] NewObject dst:reg7
+ [ 20] PutByValue keyed_feedback:0, base:reg6, property:Double(1.1e-32), src:reg7, kind:Normal
+ [ 31] Mov dst:reg5, src:reg7
+ [ 36] GetGlobal value_feedback:1, dst:reg6, `x`
+ [ 3f] GetByValue value_feedback:2, keyed_feedback:1, dst:reg6, base:reg6, property:Double(1.1e-32)
+ [ 4e] PutById base:reg6, `foo`, src:Int32(42), kind:Normal
+ [ 5d] Mov dst:reg5, src:Int32(42)
+ [ 62] End value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/for-in-block-order.txt b/Tests/LibJS/Bytecode/expected/for-in-block-order.txt
index adac435003f..89c094e2b9b 100644
--- a/Tests/LibJS/Bytecode/expected/for-in-block-order.txt
+++ b/Tests/LibJS/Bytecode/expected/for-in-block-order.txt
@@ -1,4 +1,4 @@
-$99b9a749 for-in-block-order.js:5:1
+$85d2e5ef for-in-block-order.js:5:1
Registers: 8
Blocks: 1
Constants:
@@ -6,14 +6,14 @@ $99b9a749 for-in-block-order.js:5:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `foo`
- [ 28] NewObject dst:reg7
- [ 38] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
- [ 60] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `foo`
+ [ f] NewObject dst:reg7
+ [ 14] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
+ [ 2b] End value:reg5
-foo$7825ea87 for-in-block-order.js:2:14
+foo$8f61d69a for-in-block-order.js:2:14
Registers: 11
Blocks: 5
Locals: k~0
@@ -23,21 +23,21 @@ foo$7825ea87 for-in-block-order.js:2:14
block0:
[ 0] Enter
- [ 8] Mov dst:k~0, src:Undefined
- [ 18] Mov dst:reg5, src:arg0
- [ 28] JumpNullish condition:reg5, true_target:block4, false_target:block1
+ [ 1] Mov dst:k~0, src:Undefined
+ [ 6] Mov dst:reg5, src:arg0
+ [ b] JumpNullish condition:reg5, true_target:block4, false_target:block1
block1:
- [ 38] GetObjectPropertyIterator dst_keys:reg7, dst_receiver:reg6, object:reg5
- [ 50] Mov dst:reg8, src:Int32(0)
+ [ 16] GetObjectPropertyIterator dst_keys:reg7, dst_receiver:reg6, object:reg5
+ [ 21] Mov dst:reg8, src:Int32(0)
block2:
- [ 60] ObjectPropertyIteratorNext dst_value:reg9, dst_done:reg10, receiver:reg6, keys:reg7, cursor:reg8
- [ 78] JumpTrue condition:reg10, target:block4
+ [ 26] ObjectPropertyIteratorNext dst_value:reg9, dst_done:reg10, receiver:reg6, keys:reg7, cursor:reg8
+ [ 31] JumpTrue condition:reg10, target:block4
block3:
- [ 88] Mov dst:k~0, src:reg9
- [ 98] JumpLoop target:block2
+ [ 38] Mov dst:k~0, src:reg9
+ [ 3d] JumpLoop target:block2
block4:
- [ a0] End value:Undefined
+ [ 42] End value:Undefined
diff --git a/Tests/LibJS/Bytecode/expected/for-in-lexical-scope.txt b/Tests/LibJS/Bytecode/expected/for-in-lexical-scope.txt
index 6dd838e5bc3..12716d62c45 100644
--- a/Tests/LibJS/Bytecode/expected/for-in-lexical-scope.txt
+++ b/Tests/LibJS/Bytecode/expected/for-in-lexical-scope.txt
@@ -1,4 +1,4 @@
-$4f26a2de for-in-lexical-scope.js:1:5
+$90d14739 for-in-lexical-scope.js:1:5
Registers: 13
Blocks: 5
Locals: probeDecl~0
@@ -8,34 +8,34 @@ $4f26a2de for-in-lexical-scope.js:1:5
block0:
[ 0] Enter
- [ 8] GetLexicalEnvironment dst:reg4
- [ 10] Mov dst:reg5, src:Undefined
- [ 20] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
- [ 38] CreateVariable `x`, is_immutable:false, is_global:false, is_strict:false
- [ 48] NewObject dst:reg8
- [ 58] InitObjectLiteralProperty object:reg8, `i`, src:Int32(0), shape_cache_index:0, property_slot:0
- [ 70] CacheObjectShape object:reg8
- [ 80] Mov dst:reg6, src:reg8
- [ 90] SetLexicalEnvironment environment:reg4
- [ 98] Mov dst:reg5, src:Undefined
- [ a8] JumpNullish condition:reg6, true_target:block4, false_target:block1
+ [ 1] GetLexicalEnvironment dst:reg4
+ [ 4] Mov dst:reg5, src:Undefined
+ [ 9] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
+ [ 17] CreateVariable `x`, is_immutable:false, is_global:false, is_strict:false
+ [ 21] NewObject dst:reg8
+ [ 26] InitObjectLiteralProperty object:reg8, `i`, src:Int32(0), shape_cache_index:0, property_slot:0
+ [ 35] CacheObjectShape object:reg8
+ [ 3a] Mov dst:reg6, src:reg8
+ [ 3f] SetLexicalEnvironment environment:reg4
+ [ 42] Mov dst:reg5, src:Undefined
+ [ 47] JumpNullish condition:reg6, true_target:block4, false_target:block1
block1:
- [ b8] GetObjectPropertyIterator dst_keys:reg8, dst_receiver:reg7, object:reg6
- [ d0] Mov dst:reg9, src:Int32(0)
+ [ 52] GetObjectPropertyIterator dst_keys:reg8, dst_receiver:reg7, object:reg6
+ [ 5d] Mov dst:reg9, src:Int32(0)
block2:
- [ e0] ObjectPropertyIteratorNext dst_value:reg10, dst_done:reg11, receiver:reg7, keys:reg8, cursor:reg9
- [ f8] JumpTrue condition:reg11, target:block4
+ [ 62] ObjectPropertyIteratorNext dst_value:reg10, dst_done:reg11, receiver:reg7, keys:reg8, cursor:reg9
+ [ 6d] JumpTrue condition:reg11, target:block4
block3:
- [ 108] CreateLexicalEnvironment dst:reg12, parent:reg4, capacity:1, is_catch_environment:false
- [ 120] CreateVariable `x`, is_immutable:false, is_global:false, is_strict:false
- [ 130] InitializeLexicalBinding `x`, src:reg10
- [ 148] NewFunction dst:probeDecl~0, shared_function_data_index:0
- [ 160] SetVariableBindingOfBlockFunction `probeDecl`, src:probeDecl~0, program_environment_depth:1
- [ 170] SetLexicalEnvironment environment:reg4
- [ 178] JumpLoop target:block2
+ [ 74] CreateLexicalEnvironment dst:reg12, parent:reg4, capacity:1, is_catch_environment:false
+ [ 82] CreateVariable `x`, is_immutable:false, is_global:false, is_strict:false
+ [ 8c] InitializeLexicalBinding `x`, src:reg10
+ [ 99] NewFunction dst:probeDecl~0, shared_function_data_index:0
+ [ a4] SetVariableBindingOfBlockFunction `probeDecl`, src:probeDecl~0, program_environment_depth:1
+ [ ad] SetLexicalEnvironment environment:reg4
+ [ b0] JumpLoop target:block2
block4:
- [ 180] End value:reg5
+ [ b5] End value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/for-in-nullish-completion.txt b/Tests/LibJS/Bytecode/expected/for-in-nullish-completion.txt
index ad85754f293..410da82cc4c 100644
--- a/Tests/LibJS/Bytecode/expected/for-in-nullish-completion.txt
+++ b/Tests/LibJS/Bytecode/expected/for-in-nullish-completion.txt
@@ -1,4 +1,4 @@
-$96dbee98 for-in-nullish-completion.js:4:1
+$7901cc91 for-in-nullish-completion.js:4:1
Registers: 12
Blocks: 5
Constants:
@@ -9,23 +9,23 @@ $96dbee98 for-in-nullish-completion.js:4:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] Mov dst:reg5, src:Int32(1)
- [ 28] Mov dst:reg6, src:Null
- [ 38] Mov dst:reg5, src:Undefined
- [ 48] JumpNullish condition:reg6, true_target:block4, false_target:block1
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] Mov dst:reg5, src:Int32(1)
+ [ b] Mov dst:reg6, src:Null
+ [ 10] Mov dst:reg5, src:Undefined
+ [ 15] JumpNullish condition:reg6, true_target:block4, false_target:block1
block1:
- [ 58] GetObjectPropertyIterator dst_keys:reg8, dst_receiver:reg7, object:reg6
- [ 70] Mov dst:reg9, src:Int32(0)
+ [ 20] GetObjectPropertyIterator dst_keys:reg8, dst_receiver:reg7, object:reg6
+ [ 2b] Mov dst:reg9, src:Int32(0)
block2:
- [ 80] ObjectPropertyIteratorNext dst_value:reg10, dst_done:reg11, receiver:reg7, keys:reg8, cursor:reg9
- [ 98] JumpTrue condition:reg11, target:block4
+ [ 30] ObjectPropertyIteratorNext dst_value:reg10, dst_done:reg11, receiver:reg7, keys:reg8, cursor:reg9
+ [ 3b] JumpTrue condition:reg11, target:block4
block3:
- [ a8] SetGlobal `a`, src:reg10
- [ b8] JumpLoop target:block2
+ [ 42] SetGlobal `a`, src:reg10
+ [ 49] JumpLoop target:block2
block4:
- [ c0] End value:reg5
+ [ 4e] End value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/for-in-object-property-iterator-next.txt b/Tests/LibJS/Bytecode/expected/for-in-object-property-iterator-next.txt
index f8fa958b03b..87ea89491d0 100644
--- a/Tests/LibJS/Bytecode/expected/for-in-object-property-iterator-next.txt
+++ b/Tests/LibJS/Bytecode/expected/for-in-object-property-iterator-next.txt
@@ -1,4 +1,4 @@
-$aaec50d4 for-in-object-property-iterator-next.js:8:1
+$41dc9833 for-in-object-property-iterator-next.js:8:1
Registers: 8
Blocks: 1
Constants:
@@ -11,17 +11,17 @@ $aaec50d4 for-in-object-property-iterator-next.js:8:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `collect`
- [ 28] NewObject dst:reg7
- [ 38] PutByValue keyed_feedback:0, base:reg7, property:Int32(2), src:String("two"), kind:Own
- [ 58] PutById base:reg7, `foo`, src:String("foo"), kind:Own
- [ 78] PutByValue keyed_feedback:1, base:reg7, property:Int32(7), src:String("seven"), kind:Own
- [ 98] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
- [ c0] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `collect`
+ [ f] NewObject dst:reg7
+ [ 14] PutByValue keyed_feedback:0, base:reg7, property:Int32(2), src:String("two"), kind:Own
+ [ 25] PutById base:reg7, `foo`, src:String("foo"), kind:Own
+ [ 34] PutByValue keyed_feedback:1, base:reg7, property:Int32(7), src:String("seven"), kind:Own
+ [ 45] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
+ [ 5c] End value:reg5
-collect$a74ca55b for-in-object-property-iterator-next.js:2:18
+collect$507c2097 for-in-object-property-iterator-next.js:2:18
Registers: 12
Blocks: 5
Locals: keys~0, key~1
@@ -31,24 +31,24 @@ collect$a74ca55b for-in-object-property-iterator-next.js:2:18
block0:
[ 0] Enter
- [ 8] NewArray dst:keys~0
- [ 18] Mov dst:key~1, src:<Empty>
- [ 28] Mov dst:reg5, src:arg0
- [ 38] JumpNullish condition:reg5, true_target:block4, false_target:block1
+ [ 1] NewArray dst:keys~0
+ [ c] Mov dst:key~1, src:<Empty>
+ [ 11] Mov dst:reg5, src:arg0
+ [ 16] JumpNullish condition:reg5, true_target:block4, false_target:block1
block1:
- [ 48] GetObjectPropertyIterator dst_keys:reg7, dst_receiver:reg6, object:reg5
- [ 60] Mov dst:reg8, src:Int32(0)
+ [ 21] GetObjectPropertyIterator dst_keys:reg7, dst_receiver:reg6, object:reg5
+ [ 2c] Mov dst:reg8, src:Int32(0)
block2:
- [ 70] ObjectPropertyIteratorNext dst_value:reg9, dst_done:reg10, receiver:reg6, keys:reg7, cursor:reg8
- [ 88] JumpTrue condition:reg10, target:block4
+ [ 31] ObjectPropertyIteratorNext dst_value:reg9, dst_done:reg10, receiver:reg6, keys:reg7, cursor:reg8
+ [ 3c] JumpTrue condition:reg10, target:block4
block3:
- [ 98] Mov dst:key~1, src:reg9
- [ a8] GetById value_feedback:0, dst:reg11, base:keys~0, `push`
- [ c0] Call value_feedback:1, call_feedback:0, dst:reg11, callee:reg11, this_value:keys~0, arguments:[key~1]
- [ e8] JumpLoop target:block2
+ [ 43] Mov dst:key~1, src:reg9
+ [ 48] GetById value_feedback:0, dst:reg11, base:keys~0, `push`
+ [ 55] Call value_feedback:1, call_feedback:0, dst:reg11, callee:reg11, this_value:keys~0, arguments:[key~1]
+ [ 6c] JumpLoop target:block2
block4:
- [ f0] Return value:keys~0
+ [ 71] Return value:keys~0
diff --git a/Tests/LibJS/Bytecode/expected/for-in-of-lhs-patterns.txt b/Tests/LibJS/Bytecode/expected/for-in-of-lhs-patterns.txt
index f465cf97aaa..e30272ab3b2 100644
--- a/Tests/LibJS/Bytecode/expected/for-in-of-lhs-patterns.txt
+++ b/Tests/LibJS/Bytecode/expected/for-in-of-lhs-patterns.txt
@@ -1,4 +1,4 @@
-$511dd735
+$7ccbae8c
Registers: 6
Blocks: 1
Constants:
@@ -6,5 +6,5 @@ $511dd735
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] End value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/for-in-register-lifetime.txt b/Tests/LibJS/Bytecode/expected/for-in-register-lifetime.txt
index 18740b82da1..bcb4cad6f5e 100644
--- a/Tests/LibJS/Bytecode/expected/for-in-register-lifetime.txt
+++ b/Tests/LibJS/Bytecode/expected/for-in-register-lifetime.txt
@@ -1,4 +1,4 @@
-$de5c50b6 for-in-register-lifetime.js:1:5
+$fe4c7e67 for-in-register-lifetime.js:1:5
Registers: 16
Blocks: 5
Constants:
@@ -11,38 +11,38 @@ $de5c50b6 for-in-register-lifetime.js:1:5
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] SetGlobal `result`, src:String("")
- [ 28] NewObject dst:reg6
- [ 38] InitObjectLiteralProperty object:reg6, `a`, src:Int32(1), shape_cache_index:0, property_slot:0
- [ 50] InitObjectLiteralProperty object:reg6, `b`, src:Int32(2), shape_cache_index:0, property_slot:1
- [ 68] InitObjectLiteralProperty object:reg6, `c`, src:Int32(3), shape_cache_index:0, property_slot:2
- [ 80] CacheObjectShape object:reg6
- [ 90] SetGlobal `obj`, src:reg6
- [ a0] GetGlobal value_feedback:0, dst:reg6, `obj`
- [ b0] Mov dst:reg5, src:Undefined
- [ c0] JumpNullish condition:reg6, true_target:block4, false_target:block1
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] SetGlobal `result`, src:String("")
+ [ d] NewObject dst:reg6
+ [ 12] InitObjectLiteralProperty object:reg6, `a`, src:Int32(1), shape_cache_index:0, property_slot:0
+ [ 21] InitObjectLiteralProperty object:reg6, `b`, src:Int32(2), shape_cache_index:0, property_slot:1
+ [ 30] InitObjectLiteralProperty object:reg6, `c`, src:Int32(3), shape_cache_index:0, property_slot:2
+ [ 3f] CacheObjectShape object:reg6
+ [ 44] SetGlobal `obj`, src:reg6
+ [ 4b] GetGlobal value_feedback:0, dst:reg6, `obj`
+ [ 54] Mov dst:reg5, src:Undefined
+ [ 59] JumpNullish condition:reg6, true_target:block4, false_target:block1
block1:
- [ d0] GetObjectPropertyIterator dst_keys:reg8, dst_receiver:reg7, object:reg6
- [ e8] Mov dst:reg9, src:Int32(0)
+ [ 64] GetObjectPropertyIterator dst_keys:reg8, dst_receiver:reg7, object:reg6
+ [ 6f] Mov dst:reg9, src:Int32(0)
block2:
- [ f8] ObjectPropertyIteratorNext dst_value:reg10, dst_done:reg11, receiver:reg7, keys:reg8, cursor:reg9
- [ 110] JumpTrue condition:reg11, target:block4
+ [ 74] ObjectPropertyIteratorNext dst_value:reg10, dst_done:reg11, receiver:reg7, keys:reg8, cursor:reg9
+ [ 7f] JumpTrue condition:reg11, target:block4
block3:
- [ 120] SetGlobal `k`, src:reg10
- [ 130] GetGlobal value_feedback:1, dst:reg12, `result`
- [ 140] GetGlobal value_feedback:2, dst:reg13, `k`
- [ 150] GetGlobal value_feedback:3, dst:reg14, `obj`
- [ 160] GetGlobal value_feedback:4, dst:reg15, `k`
- [ 170] GetByValue value_feedback:5, keyed_feedback:0, dst:reg14, base:reg14, property:reg15
- [ 190] Add arith_feedback:0, dst:reg13, lhs:reg13, rhs:reg14
- [ 1a0] Add arith_feedback:1, dst:reg14, lhs:reg12, rhs:reg13
- [ 1b0] SetGlobal `result`, src:reg14
- [ 1c0] Mov dst:reg5, src:reg14
- [ 1d0] JumpLoop target:block2
+ [ 86] SetGlobal `k`, src:reg10
+ [ 8d] GetGlobal value_feedback:1, dst:reg12, `result`
+ [ 96] GetGlobal value_feedback:2, dst:reg13, `k`
+ [ 9f] GetGlobal value_feedback:3, dst:reg14, `obj`
+ [ a8] GetGlobal value_feedback:4, dst:reg15, `k`
+ [ b1] GetByValue value_feedback:5, keyed_feedback:0, dst:reg14, base:reg14, property:reg15
+ [ c0] Add arith_feedback:0, dst:reg13, lhs:reg13, rhs:reg14
+ [ c9] Add arith_feedback:1, dst:reg14, lhs:reg12, rhs:reg13
+ [ d2] SetGlobal `result`, src:reg14
+ [ d9] Mov dst:reg5, src:reg14
+ [ de] JumpLoop target:block2
block4:
- [ 1d8] End value:reg5
+ [ e3] End value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/for-in-var-function-lhs-name.txt b/Tests/LibJS/Bytecode/expected/for-in-var-function-lhs-name.txt
index a0348497bdd..4c85975d7f2 100644
--- a/Tests/LibJS/Bytecode/expected/for-in-var-function-lhs-name.txt
+++ b/Tests/LibJS/Bytecode/expected/for-in-var-function-lhs-name.txt
@@ -1,4 +1,4 @@
-$cd444473 for-in-var-function-lhs-name.js:7:1
+$1aac9274 for-in-var-function-lhs-name.js:7:1
Registers: 7
Blocks: 1
Constants:
@@ -6,13 +6,13 @@ $cd444473 for-in-var-function-lhs-name.js:7:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `fn`
- [ 28] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 48] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `fn`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 24] End value:reg5
-fn$6998b157 for-in-var-function-lhs-name.js:4:14
+fn$c29bed82 for-in-var-function-lhs-name.js:4:14
Registers: 11
Blocks: 5
Locals: f~0
@@ -22,23 +22,23 @@ fn$6998b157 for-in-var-function-lhs-name.js:4:14
block0:
[ 0] Enter
- [ 8] Mov dst:f~0, src:Undefined
- [ 18] NewFunction dst:f~0, shared_function_data_index:0 (f)
- [ 30] NewObject dst:reg6
- [ 40] Mov dst:reg5, src:reg6
- [ 50] JumpNullish condition:reg5, true_target:block4, false_target:block1
+ [ 1] Mov dst:f~0, src:Undefined
+ [ 6] NewFunction dst:f~0, shared_function_data_index:0 (f)
+ [ 11] NewObject dst:reg6
+ [ 16] Mov dst:reg5, src:reg6
+ [ 1b] JumpNullish condition:reg5, true_target:block4, false_target:block1
block1:
- [ 60] GetObjectPropertyIterator dst_keys:reg7, dst_receiver:reg6, object:reg5
- [ 78] Mov dst:reg8, src:Int32(0)
+ [ 26] GetObjectPropertyIterator dst_keys:reg7, dst_receiver:reg6, object:reg5
+ [ 31] Mov dst:reg8, src:Int32(0)
block2:
- [ 88] ObjectPropertyIteratorNext dst_value:reg9, dst_done:reg10, receiver:reg6, keys:reg7, cursor:reg8
- [ a0] JumpTrue condition:reg10, target:block4
+ [ 36] ObjectPropertyIteratorNext dst_value:reg9, dst_done:reg10, receiver:reg6, keys:reg7, cursor:reg8
+ [ 41] JumpTrue condition:reg10, target:block4
block3:
- [ b0] Mov dst:f~0, src:reg9
- [ c0] JumpLoop target:block2
+ [ 48] Mov dst:f~0, src:reg9
+ [ 4d] JumpLoop target:block2
block4:
- [ c8] End value:Undefined
+ [ 52] End value:Undefined
diff --git a/Tests/LibJS/Bytecode/expected/for-loop-break-after-if-continue.txt b/Tests/LibJS/Bytecode/expected/for-loop-break-after-if-continue.txt
index f4cf5efe508..68529731ee6 100644
--- a/Tests/LibJS/Bytecode/expected/for-loop-break-after-if-continue.txt
+++ b/Tests/LibJS/Bytecode/expected/for-loop-break-after-if-continue.txt
@@ -1,4 +1,4 @@
-$36778e37 for-loop-break-after-if-continue.js:11:1
+$e3875e16 for-loop-break-after-if-continue.js:11:1
Registers: 7
Blocks: 1
Constants:
@@ -7,13 +7,13 @@ $36778e37 for-loop-break-after-if-continue.js:11:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `bok`
- [ 28] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Bool(false)]
- [ 50] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `bok`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Bool(false)]
+ [ 26] End value:reg5
-bok$39f47ee0 for-loop-break-after-if-continue.js:5:14
+bok$d4c51ae2 for-loop-break-after-if-continue.js:5:14
Registers: 5
Blocks: 6
Constants:
@@ -23,16 +23,16 @@ block0:
[ 0] Enter
block1:
- [ 8] JumpFalse condition:arg0, target:block3
+ [ 1] JumpFalse condition:arg0, target:block3
block2:
- [ 18] Jump target:block4
+ [ 8] Jump target:block4
block3:
- [ 20] Jump target:block5
+ [ d] Jump target:block5
block4:
- [ 28] JumpLoop target:block1
+ [ 12] JumpLoop target:block1
block5:
- [ 30] End value:Undefined
+ [ 17] End value:Undefined
diff --git a/Tests/LibJS/Bytecode/expected/for-loop-scoping.txt b/Tests/LibJS/Bytecode/expected/for-loop-scoping.txt
index d4117ca1d5d..c2d66d955f1 100644
--- a/Tests/LibJS/Bytecode/expected/for-loop-scoping.txt
+++ b/Tests/LibJS/Bytecode/expected/for-loop-scoping.txt
@@ -1,4 +1,4 @@
-$3ce5efbc for-loop-scoping.js:8:1
+$d2b9d388 for-loop-scoping.js:8:1
Registers: 9
Blocks: 1
Constants:
@@ -6,63 +6,62 @@ $3ce5efbc for-loop-scoping.js:8:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `console`
- [ 28] GetById value_feedback:1, dst:reg7, base:reg6, `log`
- [ 40] GetGlobal value_feedback:2, dst:reg8, `forLetClosure`
- [ 50] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined
- [ 70] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 98] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `console`
+ [ f] GetById value_feedback:1, dst:reg7, base:reg6, `log`
+ [ 1c] GetGlobal value_feedback:2, dst:reg8, `forLetClosure`
+ [ 25] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined
+ [ 3a] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 51] End value:reg5
-forLetClosure$94e2524d for-loop-scoping.js:2:15
+forLetClosure$f9e8af16 for-loop-scoping.js:2:15
Registers: 8
Blocks: 4
Locals: fns~0
Constants:
[0] = Int32(0)
- [1] = Int32(3)
block0:
[ 0] Enter
- [ 8] GetLexicalEnvironment dst:reg4
- [ 10] NewArray dst:fns~0
- [ 20] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false
- [ 38] CreateVariable `i`, is_immutable:false, is_global:false, is_strict:false
- [ 48] InitializeLexicalBinding `i`, src:Int32(0)
- [ 60] GetBinding value_feedback:0, dst:reg6, `i`
- [ 78] SetLexicalEnvironment environment:reg4
- [ 80] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false
- [ 98] CreateVariable `i`, is_immutable:false, is_global:false, is_strict:false
- [ a8] InitializeLexicalBinding `i`, src:reg6
- [ c0] Jump target:block2
+ [ 1] GetLexicalEnvironment dst:reg4
+ [ 4] NewArray dst:fns~0
+ [ f] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false
+ [ 1d] CreateVariable `i`, is_immutable:false, is_global:false, is_strict:false
+ [ 27] InitializeLexicalBinding `i`, src:Int32(0)
+ [ 34] GetBinding value_feedback:0, dst:reg6, `i`
+ [ 43] SetLexicalEnvironment environment:reg4
+ [ 46] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false
+ [ 54] CreateVariable `i`, is_immutable:false, is_global:false, is_strict:false
+ [ 5e] InitializeLexicalBinding `i`, src:reg6
+ [ 6b] Jump target:block2
block1:
- [ c8] GetById value_feedback:1, dst:reg6, base:fns~0, `push`
- [ e0] NewFunction dst:reg7, shared_function_data_index:0
- [ f8] Call value_feedback:2, call_feedback:0, dst:reg6, callee:reg6, this_value:fns~0, arguments:[reg7]
- [ 120] GetBinding value_feedback:3, dst:reg6, `i`
- [ 138] SetLexicalEnvironment environment:reg4
- [ 140] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false
- [ 158] CreateVariable `i`, is_immutable:false, is_global:false, is_strict:false
- [ 168] InitializeLexicalBinding `i`, src:reg6
- [ 180] GetBinding value_feedback:4, dst:reg6, `i`
- [ 198] PostfixIncrement arith_feedback:0, dst:reg7, src:reg6
- [ 1a8] SetLexicalBinding `i`, src:reg6
+ [ 70] GetById value_feedback:1, dst:reg6, base:fns~0, `push`
+ [ 7d] NewFunction dst:reg7, shared_function_data_index:0
+ [ 88] Call value_feedback:2, call_feedback:0, dst:reg6, callee:reg6, this_value:fns~0, arguments:[reg7]
+ [ 9f] GetBinding value_feedback:3, dst:reg6, `i`
+ [ ae] SetLexicalEnvironment environment:reg4
+ [ b1] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false
+ [ bf] CreateVariable `i`, is_immutable:false, is_global:false, is_strict:false
+ [ c9] InitializeLexicalBinding `i`, src:reg6
+ [ d6] GetBinding value_feedback:4, dst:reg6, `i`
+ [ e5] PostfixIncrement arith_feedback:0, dst:reg7, src:reg6
+ [ ec] SetLexicalBinding `i`, src:reg6
block2:
- [ 1c0] GetBinding value_feedback:5, dst:reg6, `i`
- [ 1d8] JumpLessThanLoopRhsInt32 arith_feedback:1, lhs:reg6, rhs:3, true_target:block1, false_target:block3
+ [ f9] GetBinding value_feedback:5, dst:reg6, `i`
+ [ 108] JumpLessThanLoopRhsInt32 arith_feedback:1, lhs:reg6, rhs:3, true_target:block1, false_target:block3
block3:
- [ 1f0] SetLexicalEnvironment environment:reg4
- [ 1f8] GetById value_feedback:6, dst:reg5, base:fns~0, `map`
- [ 210] NewFunction dst:reg6, shared_function_data_index:1
- [ 228] Call value_feedback:7, call_feedback:1, dst:reg5, callee:reg5, this_value:fns~0, arguments:[reg6]
- [ 250] Return value:reg5
+ [ 119] SetLexicalEnvironment environment:reg4
+ [ 11c] GetById value_feedback:6, dst:reg5, base:fns~0, `map`
+ [ 129] NewFunction dst:reg6, shared_function_data_index:1
+ [ 134] Call value_feedback:7, call_feedback:1, dst:reg5, callee:reg5, this_value:fns~0, arguments:[reg6]
+ [ 14b] Return value:reg5
-map$04814a69 BuiltinFile:275:11
+map$632f2430 BuiltinFile:275:11
Registers: 6
Blocks: 8
Locals: object~0, length~1, array~2, k~3, kValue~4, mappedValue~5
@@ -73,46 +72,46 @@ map$04814a69 BuiltinFile:275:11
block0:
[ 0] Enter
- [ 8] ToObject dst:reg5, value:this
- [ 18] Mov dst:object~0, src:reg5
- [ 28] GetLength value_feedback:0, keyed_feedback:0, dst:reg5, base:object~0
- [ 40] ToLength dst:reg5, value:reg5
- [ 50] Mov dst:length~1, src:reg5
- [ 60] IsCallable dst:reg5, value:arg0
- [ 70] Not dst:reg5, src:reg5
- [ 80] JumpFalse condition:reg5, target:block2
+ [ 1] ToObject dst:reg5, value:this
+ [ 6] Mov dst:object~0, src:reg5
+ [ b] GetLength value_feedback:0, keyed_feedback:0, dst:reg5, base:object~0
+ [ 18] ToLength dst:reg5, value:reg5
+ [ 1d] Mov dst:length~1, src:reg5
+ [ 22] IsCallable dst:reg5, value:arg0
+ [ 27] Not dst:reg5, src:reg5
+ [ 2c] JumpFalse condition:reg5, target:block2
block1:
- [ 90] ThrowNotAFunction src:arg0
+ [ 33] ThrowNotAFunction src:arg0
block2:
- [ 98] Call value_feedback:1, call_feedback:0, dst:reg5, callee:Value([object RawNativeFunction]), this_value:Undefined, arguments:[object~0, length~1]
- [ c0] Mov dst:array~2, src:reg5
- [ d0] Mov dst:k~3, src:Int32(0)
- [ e0] Jump target:block6
+ [ 36] Call value_feedback:1, call_feedback:0, dst:reg5, callee:Value([object RawNativeFunction]), this_value:Undefined, arguments:[object~0, length~1]
+ [ 4f] Mov dst:array~2, src:reg5
+ [ 54] Mov dst:k~3, src:Int32(0)
+ [ 59] Jump target:block6
block3:
- [ e8] In dst:reg5, lhs:k~3, rhs:object~0
- [ f8] JumpFalse condition:reg5, target:block5
+ [ 5e] In dst:reg5, lhs:k~3, rhs:object~0
+ [ 65] JumpFalse condition:reg5, target:block5
block4:
- [ 108] GetByValue value_feedback:2, keyed_feedback:1, dst:reg5, base:object~0, property:k~3
- [ 128] Mov dst:kValue~4, src:reg5
- [ 138] Call value_feedback:3, call_feedback:1, dst:reg5, callee:arg0, this_value:arg1, arguments:[kValue~4, k~3, object~0]
- [ 168] Mov dst:mappedValue~5, src:reg5
- [ 178] CreateDataPropertyOrThrow object:array~2, property:k~3, value:mappedValue~5
+ [ 6c] GetByValue value_feedback:2, keyed_feedback:1, dst:reg5, base:object~0, property:k~3
+ [ 7b] Mov dst:kValue~4, src:reg5
+ [ 80] Call value_feedback:3, call_feedback:1, dst:reg5, callee:arg0, this_value:arg1, arguments:[kValue~4, k~3, object~0]
+ [ 9b] Mov dst:mappedValue~5, src:reg5
+ [ a0] CreateDataPropertyOrThrow object:array~2, property:k~3, value:mappedValue~5
block5:
- [ 188] Increment arith_feedback:0, dst:k~3
+ [ a7] Increment arith_feedback:0, dst:k~3
block6:
- [ 190] JumpLessThanLoop arith_feedback:1, lhs:k~3, rhs:length~1, true_target:block3, false_target:block7
+ [ ac] JumpLessThanLoop arith_feedback:1, lhs:k~3, rhs:length~1, true_target:block3, false_target:block7
block7:
- [ 1a8] Return value:array~2
+ [ bb] Return value:array~2
-$dd56fdd7 for-loop-scoping.js:6:20
+$0904d52e for-loop-scoping.js:6:20
Registers: 6
Blocks: 1
Constants:
@@ -120,18 +119,18 @@ $dd56fdd7 for-loop-scoping.js:6:20
block0:
[ 0] Enter
- [ 8] Call value_feedback:0, call_feedback:0, dst:reg5, callee:arg0, this_value:Undefined
- [ 28] Return value:reg5
+ [ 1] Call value_feedback:0, call_feedback:0, dst:reg5, callee:arg0, this_value:Undefined
+ [ 16] Return value:reg5
-$f491848b for-loop-scoping.js:4:18
+$856ebfe0 for-loop-scoping.js:4:18
Registers: 6
Blocks: 1
block0:
[ 0] Enter
- [ 8] GetBinding value_feedback:0, dst:reg5, `i`
- [ 20] Return value:reg5
+ [ 1] GetBinding value_feedback:0, dst:reg5, `i`
+ [ 10] Return value:reg5
Array [0, 1, 2]
diff --git a/Tests/LibJS/Bytecode/expected/for-of-cond-rhs-block-order.txt b/Tests/LibJS/Bytecode/expected/for-of-cond-rhs-block-order.txt
index c6e7e32f527..3c62df41639 100644
--- a/Tests/LibJS/Bytecode/expected/for-of-cond-rhs-block-order.txt
+++ b/Tests/LibJS/Bytecode/expected/for-of-cond-rhs-block-order.txt
@@ -1,4 +1,4 @@
-$676feeea for-of-cond-rhs-block-order.js:6:1
+$147fbec9 for-of-cond-rhs-block-order.js:6:1
Registers: 7
Blocks: 1
Constants:
@@ -7,13 +7,13 @@ $676feeea for-of-cond-rhs-block-order.js:6:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `f`
- [ 28] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Null, Null]
- [ 50] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `f`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Null, Null]
+ [ 28] End value:reg5
-f$a6e23ba8 for-of-cond-rhs-block-order.js:2:15
+f$4ed8a794 for-of-cond-rhs-block-order.js:2:15
Registers: 16
Blocks: 22
Locals: r~0, n~1
@@ -24,89 +24,89 @@ f$a6e23ba8 for-of-cond-rhs-block-order.js:2:15
block0:
[ 0] Enter
- [ 8] Mov dst:r~0, src:<Empty>
- [ 18] Mov dst:n~1, src:<Empty>
- [ 28] JumpFalse condition:arg0, target:block2
+ [ 1] Mov dst:r~0, src:<Empty>
+ [ 6] Mov dst:n~1, src:<Empty>
+ [ b] JumpFalse condition:arg0, target:block2
block1:
- [ 38] GetById value_feedback:0, dst:reg6, base:arg0, `x`
- [ 50] Jump target:block3
+ [ 12] GetById value_feedback:0, dst:reg6, base:arg0, `x`
+ [ 1f] Jump target:block3
block2:
- [ 58] Mov dst:reg6, src:arg1
+ [ 24] Mov dst:reg6, src:arg1
block3:
- [ 68] GetGlobal value_feedback:1, dst:reg7, `Object`
- [ 78] GetById value_feedback:2, dst:reg8, base:reg7, `entries`
- [ 90] NewObject dst:reg9
- [ a0] Call value_feedback:3, call_feedback:0, dst:reg5, callee:reg8, this_value:reg7, arguments:[reg9]
- [ c8] GetIterator dst_iterator_object:reg6, dst_iterator_next:reg7, dst_iterator_done:reg8, iterable:reg5, fast_array_mode_allowed:true
+ [ 29] GetGlobal value_feedback:1, dst:reg7, `Object`
+ [ 32] GetById value_feedback:2, dst:reg8, base:reg7, `entries`
+ [ 3f] NewObject dst:reg9
+ [ 44] Call value_feedback:3, call_feedback:0, dst:reg5, callee:reg8, this_value:reg7, arguments:[reg9]
+ [ 5b] GetIterator dst_iterator_object:reg6, dst_iterator_next:reg7, dst_iterator_done:reg8, iterable:reg5, fast_array_mode_allowed:true
block4:
- [ e8] IteratorNextUnpack dst_value:reg9, dst_done:reg10, iterator_object:reg6, iterator_next:reg7, iterator_done:reg8
- [ 100] JumpTrue condition:reg10, target:block21
+ [ 6b] IteratorNextUnpack dst_value:reg9, dst_done:reg10, iterator_object:reg6, iterator_next:reg7, iterator_done:reg8
+ [ 76] JumpTrue condition:reg10, target:block21
block5:
- [ 110] Mov dst:reg11, src:Bool(false)
- [ 120] GetIterator dst_iterator_object:reg12, dst_iterator_next:reg13, dst_iterator_done:reg14, iterable:reg9, fast_array_mode_allowed:true
+ [ 7d] Mov dst:reg11, src:Bool(false)
+ [ 82] GetIterator dst_iterator_object:reg12, dst_iterator_next:reg13, dst_iterator_done:reg14, iterable:reg9, fast_array_mode_allowed:true
block6:
- [ 140] IteratorNextUnpack dst_value:reg15, dst_done:reg11, iterator_object:reg12, iterator_next:reg13, iterator_done:reg14
+ [ 92] IteratorNextUnpack dst_value:reg15, dst_done:reg11, iterator_object:reg12, iterator_next:reg13, iterator_done:reg14
block7:
- [ 158] JumpFalse condition:reg11, target:block9
+ [ 9d] JumpFalse condition:reg11, target:block9
block8:
- [ 168] Mov dst:reg15, src:Undefined
+ [ a4] Mov dst:reg15, src:Undefined
block9:
- [ 178] Mov dst:r~0, src:reg15
- [ 188] JumpTrue condition:reg11, target:block12
+ [ a9] Mov dst:r~0, src:reg15
+ [ ae] JumpTrue condition:reg11, target:block12
block10:
- [ 198] IteratorNextUnpack dst_value:reg15, dst_done:reg11, iterator_object:reg12, iterator_next:reg13, iterator_done:reg14
+ [ b5] IteratorNextUnpack dst_value:reg15, dst_done:reg11, iterator_object:reg12, iterator_next:reg13, iterator_done:reg14
block11:
- [ 1b0] JumpFalse condition:reg11, target:block13
+ [ c0] JumpFalse condition:reg11, target:block13
block12:
- [ 1c0] Mov dst:reg15, src:Undefined
+ [ c7] Mov dst:reg15, src:Undefined
block13:
- [ 1d0] Mov dst:n~1, src:reg15
+ [ cc] Mov dst:n~1, src:reg15
block14:
- [ 1e0] JumpTrue condition:reg14, target:block19
+ [ d1] JumpTrue condition:reg14, target:block19
block15:
- [ 1f0] IteratorClose iterator_object:reg12, iterator_next:reg13, iterator_done:reg14, completion_value:Undefined
- [ 210] Jump target:block19
+ [ d8] IteratorClose iterator_object:reg12, iterator_next:reg13, iterator_done:reg14, completion_value:Undefined
+ [ e7] Jump target:block19
block16:
- [ 218] Catch value_feedback:4, dst:reg15
- [ 220] JumpTrue condition:reg14, target:block18
+ [ ec] Catch value_feedback:4, dst:reg15
+ [ f1] JumpTrue condition:reg14, target:block18
block17:
- [ 230] IteratorClose iterator_object:reg12, iterator_next:reg13, iterator_done:reg14, completion_value:reg15
+ [ f8] IteratorClose iterator_object:reg12, iterator_next:reg13, iterator_done:reg14, completion_value:reg15
block18:
- [ 250] Throw src:reg15
+ [ 107] Throw src:reg15
block19:
- [ 258] JumpLoop target:block4
+ [ 10a] JumpLoop target:block4
block20:
- [ 260] Catch value_feedback:5, dst:reg11
- [ 268] IteratorClose iterator_object:reg6, iterator_next:reg7, iterator_done:reg8, completion_value:reg11
- [ 288] Throw src:reg11
+ [ 10f] Catch value_feedback:5, dst:reg11
+ [ 114] IteratorClose iterator_object:reg6, iterator_next:reg7, iterator_done:reg8, completion_value:reg11
+ [ 123] Throw src:reg11
block21:
- [ 290] End value:Undefined
+ [ 126] End value:Undefined
Exception handlers:
- [ 110 .. 140] => handler block20
- [ 140 .. 158] => handler block20
- [ 158 .. 198] => handler block16
- [ 198 .. 1b0] => handler block20
- [ 1b0 .. 1e0] => handler block16
- [ 1e0 .. 260] => handler block20
+ [ 7d .. 92] => handler block20
+ [ 92 .. 9d] => handler block20
+ [ 9d .. b5] => handler block16
+ [ b5 .. c0] => handler block20
+ [ c0 .. d1] => handler block16
+ [ d1 .. 10f] => handler block20
diff --git a/Tests/LibJS/Bytecode/expected/for-of-continue-with-block-scope.txt b/Tests/LibJS/Bytecode/expected/for-of-continue-with-block-scope.txt
index f2a37ef84c3..d280e7d980e 100644
--- a/Tests/LibJS/Bytecode/expected/for-of-continue-with-block-scope.txt
+++ b/Tests/LibJS/Bytecode/expected/for-of-continue-with-block-scope.txt
@@ -1,4 +1,4 @@
-$335937c1 for-of-continue-with-block-scope.js:13:1
+$fdb7ffbd for-of-continue-with-block-scope.js:13:1
Registers: 8
Blocks: 1
Constants:
@@ -6,63 +6,63 @@ $335937c1 for-of-continue-with-block-scope.js:13:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `f`
- [ 28] NewArray dst:reg7
- [ 38] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
- [ 60] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `f`
+ [ f] NewArray dst:reg7
+ [ 1a] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
+ [ 31] End value:reg5
-f$2dcc1650 for-of-continue-with-block-scope.js:2:15
+f$8cc5b2c8 for-of-continue-with-block-scope.js:2:15
Registers: 14
Blocks: 7
Locals: t~0, o~1
block0:
[ 0] Enter
- [ 8] GetLexicalEnvironment dst:reg4
- [ 10] NewArray dst:t~0
- [ 20] CreateLexicalEnvironment dst:reg6, parent:reg4, capacity:1, is_catch_environment:false
- [ 38] CreateVariable `r`, is_immutable:true, is_global:false, is_strict:true
- [ 48] Mov dst:reg5, src:arg0
- [ 58] SetLexicalEnvironment environment:reg4
- [ 60] GetIterator dst_iterator_object:reg6, dst_iterator_next:reg7, dst_iterator_done:reg8, iterable:reg5, fast_array_mode_allowed:true
+ [ 1] GetLexicalEnvironment dst:reg4
+ [ 4] NewArray dst:t~0
+ [ f] CreateLexicalEnvironment dst:reg6, parent:reg4, capacity:1, is_catch_environment:false
+ [ 1d] CreateVariable `r`, is_immutable:true, is_global:false, is_strict:true
+ [ 27] Mov dst:reg5, src:arg0
+ [ 2c] SetLexicalEnvironment environment:reg4
+ [ 2f] GetIterator dst_iterator_object:reg6, dst_iterator_next:reg7, dst_iterator_done:reg8, iterable:reg5, fast_array_mode_allowed:true
block1:
- [ 80] IteratorNextUnpack dst_value:reg9, dst_done:reg10, iterator_object:reg6, iterator_next:reg7, iterator_done:reg8
- [ 98] JumpTrue condition:reg10, target:block6
+ [ 3f] IteratorNextUnpack dst_value:reg9, dst_done:reg10, iterator_object:reg6, iterator_next:reg7, iterator_done:reg8
+ [ 4a] JumpTrue condition:reg10, target:block6
block2:
- [ a8] CreateLexicalEnvironment dst:reg11, parent:reg4, capacity:1, is_catch_environment:false
- [ c0] CreateVariable `r`, is_immutable:true, is_global:false, is_strict:true
- [ d0] InitializeLexicalBinding `r`, src:reg9
- [ e8] GetBinding value_feedback:0, dst:reg12, `r`
- [ 100] Not dst:reg12, src:reg12
- [ 110] JumpFalse condition:reg12, target:block4
+ [ 51] CreateLexicalEnvironment dst:reg11, parent:reg4, capacity:1, is_catch_environment:false
+ [ 5f] CreateVariable `r`, is_immutable:true, is_global:false, is_strict:true
+ [ 69] InitializeLexicalBinding `r`, src:reg9
+ [ 76] GetBinding value_feedback:0, dst:reg12, `r`
+ [ 85] Not dst:reg12, src:reg12
+ [ 8a] JumpFalse condition:reg12, target:block4
block3:
- [ 120] GetById value_feedback:1, dst:reg12, base:t~0, `push`
- [ 138] GetBinding value_feedback:2, dst:reg13, `r`
- [ 150] Call value_feedback:3, call_feedback:0, dst:reg12, callee:reg12, this_value:t~0, arguments:[reg13]
- [ 178] SetLexicalEnvironment environment:reg4
- [ 180] Jump target:block1
+ [ 91] GetById value_feedback:1, dst:reg12, base:t~0, `push`
+ [ 9e] GetBinding value_feedback:2, dst:reg13, `r`
+ [ ad] Call value_feedback:3, call_feedback:0, dst:reg12, callee:reg12, this_value:t~0, arguments:[reg13]
+ [ c4] SetLexicalEnvironment environment:reg4
+ [ c7] Jump target:block1
block4:
- [ 188] GetById value_feedback:4, dst:reg12, base:t~0, `find`
- [ 1a0] NewFunction dst:reg13, shared_function_data_index:0
- [ 1b8] Call value_feedback:5, call_feedback:1, dst:reg12, callee:reg12, this_value:t~0, arguments:[reg13]
- [ 1e0] Mov dst:o~1, src:reg12
- [ 1f0] SetLexicalEnvironment environment:reg4
- [ 1f8] JumpLoop target:block1
+ [ cc] GetById value_feedback:4, dst:reg12, base:t~0, `find`
+ [ d9] NewFunction dst:reg13, shared_function_data_index:0
+ [ e4] Call value_feedback:5, call_feedback:1, dst:reg12, callee:reg12, this_value:t~0, arguments:[reg13]
+ [ fb] Mov dst:o~1, src:reg12
+ [ 100] SetLexicalEnvironment environment:reg4
+ [ 103] JumpLoop target:block1
block5:
- [ 200] Catch value_feedback:6, dst:reg11
- [ 208] SetLexicalEnvironment environment:reg4
- [ 210] IteratorClose iterator_object:reg6, iterator_next:reg7, iterator_done:reg8, completion_value:reg11
- [ 230] Throw src:reg11
+ [ 108] Catch value_feedback:6, dst:reg11
+ [ 10d] SetLexicalEnvironment environment:reg4
+ [ 110] IteratorClose iterator_object:reg6, iterator_next:reg7, iterator_done:reg8, completion_value:reg11
+ [ 11f] Throw src:reg11
block6:
- [ 238] Return value:t~0
+ [ 122] Return value:t~0
Exception handlers:
- [ a8 .. 200] => handler block5
+ [ 51 .. 108] => handler block5
diff --git a/Tests/LibJS/Bytecode/expected/for-of-iteration-env-capacity.txt b/Tests/LibJS/Bytecode/expected/for-of-iteration-env-capacity.txt
index 5055036e3da..e048c30230b 100644
--- a/Tests/LibJS/Bytecode/expected/for-of-iteration-env-capacity.txt
+++ b/Tests/LibJS/Bytecode/expected/for-of-iteration-env-capacity.txt
@@ -1,38 +1,35 @@
-$41ba29cb for-of-iteration-env-capacity.js:1:12
+$f7388856 for-of-iteration-env-capacity.js:1:12
Registers: 13
Blocks: 5
Locals: x~0
Constants:
[0] = Undefined
[1] = <Empty>
- [2] = Int32(1)
- [3] = Int32(2)
- [4] = Int32(3)
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] Mov dst:x~0, src:<Empty>
- [ 28] NewPrimitiveArray dst:reg6, elements:[1, 2, 3]
- [ 50] Mov dst:reg5, src:Undefined
- [ 60] GetIterator dst_iterator_object:reg7, dst_iterator_next:reg8, dst_iterator_done:reg9, iterable:reg6, fast_array_mode_allowed:true
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] Mov dst:x~0, src:<Empty>
+ [ b] NewPrimitiveArray dst:reg6, elements:[1, 2, 3]
+ [ 2e] Mov dst:reg5, src:Undefined
+ [ 33] GetIterator dst_iterator_object:reg7, dst_iterator_next:reg8, dst_iterator_done:reg9, iterable:reg6, fast_array_mode_allowed:true
block1:
- [ 80] IteratorNextUnpack dst_value:reg10, dst_done:reg11, iterator_object:reg7, iterator_next:reg8, iterator_done:reg9
- [ 98] JumpTrue condition:reg11, target:block4
+ [ 43] IteratorNextUnpack dst_value:reg10, dst_done:reg11, iterator_object:reg7, iterator_next:reg8, iterator_done:reg9
+ [ 4e] JumpTrue condition:reg11, target:block4
block2:
- [ a8] Mov dst:x~0, src:reg10
- [ b8] Mov dst:reg5, src:x~0
- [ c8] JumpLoop target:block1
+ [ 55] Mov dst:x~0, src:reg10
+ [ 5a] Mov dst:reg5, src:x~0
+ [ 5f] JumpLoop target:block1
block3:
- [ d0] Catch value_feedback:0, dst:reg12
- [ d8] IteratorClose iterator_object:reg7, iterator_next:reg8, iterator_done:reg9, completion_value:reg12
- [ f8] Throw src:reg12
+ [ 64] Catch value_feedback:0, dst:reg12
+ [ 69] IteratorClose iterator_object:reg7, iterator_next:reg8, iterator_done:reg9, completion_value:reg12
+ [ 78] Throw src:reg12
block4:
- [ 100] End value:reg5
+ [ 7b] End value:reg5
Exception handlers:
- [ a8 .. d0] => handler block3
+ [ 55 .. 64] => handler block3
diff --git a/Tests/LibJS/Bytecode/expected/for-of-iterator-close.txt b/Tests/LibJS/Bytecode/expected/for-of-iterator-close.txt
index 2bbe49bc9aa..15f78f5ac2c 100644
--- a/Tests/LibJS/Bytecode/expected/for-of-iterator-close.txt
+++ b/Tests/LibJS/Bytecode/expected/for-of-iterator-close.txt
@@ -1,211 +1,200 @@
-$04795212 for-of-iterator-close.js:6:1
+$7543a43a for-of-iterator-close.js:6:1
Registers: 8
Blocks: 1
Constants:
[0] = Undefined
- [1] = Int32(1)
- [2] = Int32(2)
- [3] = Int32(3)
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `forOfBreak`
- [ 28] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 48] GetGlobal value_feedback:2, dst:reg6, `forOfReturn`
- [ 58] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined
- [ 78] GetGlobal value_feedback:4, dst:reg6, `forAwaitOfBreak`
- [ 88] NewPrimitiveArray dst:reg7, elements:[1, 2, 3]
- [ b0] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
- [ d8] End value:reg5
-
-
-forOfBreak$33b1e7dd for-of-iterator-close.js:2:16
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `forOfBreak`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 24] GetGlobal value_feedback:2, dst:reg6, `forOfReturn`
+ [ 2d] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined
+ [ 42] GetGlobal value_feedback:4, dst:reg6, `forAwaitOfBreak`
+ [ 4b] NewPrimitiveArray dst:reg7, elements:[1, 2, 3]
+ [ 6e] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
+ [ 85] End value:reg5
+
+
+forOfBreak$ccfdb1de for-of-iterator-close.js:2:16
Registers: 12
Blocks: 7
Locals: x~0
Constants:
[0] = <Empty>
- [1] = Int32(1)
- [2] = Int32(2)
- [3] = Int32(3)
- [4] = Undefined
+ [1] = Undefined
block0:
[ 0] Enter
- [ 8] Mov dst:x~0, src:<Empty>
- [ 18] NewPrimitiveArray dst:reg5, elements:[1, 2, 3]
- [ 40] GetIterator dst_iterator_object:reg6, dst_iterator_next:reg7, dst_iterator_done:reg8, iterable:reg5, fast_array_mode_allowed:true
+ [ 1] Mov dst:x~0, src:<Empty>
+ [ 6] NewPrimitiveArray dst:reg5, elements:[1, 2, 3]
+ [ 29] GetIterator dst_iterator_object:reg6, dst_iterator_next:reg7, dst_iterator_done:reg8, iterable:reg5, fast_array_mode_allowed:true
block1:
- [ 60] IteratorNextUnpack dst_value:reg9, dst_done:reg10, iterator_object:reg6, iterator_next:reg7, iterator_done:reg8
- [ 78] JumpTrue condition:reg10, target:block6
+ [ 39] IteratorNextUnpack dst_value:reg9, dst_done:reg10, iterator_object:reg6, iterator_next:reg7, iterator_done:reg8
+ [ 44] JumpTrue condition:reg10, target:block6
block2:
- [ 88] Mov dst:x~0, src:reg9
- [ 98] JumpStrictlyEqualsRhsInt32 arith_feedback:0, lhs:x~0, rhs:2, true_target:block3, false_target:block4
+ [ 4b] Mov dst:x~0, src:reg9
+ [ 50] JumpStrictlyEqualsRhsInt32 arith_feedback:0, lhs:x~0, rhs:2, true_target:block3, false_target:block4
block3:
- [ b0] IteratorClose iterator_object:reg6, iterator_next:reg7, iterator_done:reg8, completion_value:Undefined
- [ d0] Jump target:block6
+ [ 61] IteratorClose iterator_object:reg6, iterator_next:reg7, iterator_done:reg8, completion_value:Undefined
+ [ 70] Jump target:block6
block4:
- [ d8] JumpLoop target:block1
+ [ 75] JumpLoop target:block1
block5:
- [ e0] Catch value_feedback:0, dst:reg11
- [ e8] IteratorClose iterator_object:reg6, iterator_next:reg7, iterator_done:reg8, completion_value:reg11
- [ 108] Throw src:reg11
+ [ 7a] Catch value_feedback:0, dst:reg11
+ [ 7f] IteratorClose iterator_object:reg6, iterator_next:reg7, iterator_done:reg8, completion_value:reg11
+ [ 8e] Throw src:reg11
block6:
- [ 110] End value:Undefined
+ [ 91] End value:Undefined
Exception handlers:
- [ 88 .. b0] => handler block5
- [ d8 .. e0] => handler block5
+ [ 4b .. 61] => handler block5
+ [ 75 .. 7a] => handler block5
-forOfReturn$df036ef4 for-of-iterator-close.js:9:16
+forOfReturn$8832ea30 for-of-iterator-close.js:9:16
Registers: 12
Blocks: 5
Locals: x~0
Constants:
[0] = <Empty>
- [1] = Int32(1)
- [2] = Int32(2)
- [3] = Int32(3)
- [4] = Undefined
+ [1] = Undefined
block0:
[ 0] Enter
- [ 8] Mov dst:x~0, src:<Empty>
- [ 18] NewPrimitiveArray dst:reg5, elements:[1, 2, 3]
- [ 40] GetIterator dst_iterator_object:reg6, dst_iterator_next:reg7, dst_iterator_done:reg8, iterable:reg5, fast_array_mode_allowed:true
- [ 60] IteratorNextUnpack dst_value:reg9, dst_done:reg10, iterator_object:reg6, iterator_next:reg7, iterator_done:reg8
- [ 78] JumpTrue condition:reg10, target:block4
+ [ 1] Mov dst:x~0, src:<Empty>
+ [ 6] NewPrimitiveArray dst:reg5, elements:[1, 2, 3]
+ [ 29] GetIterator dst_iterator_object:reg6, dst_iterator_next:reg7, dst_iterator_done:reg8, iterable:reg5, fast_array_mode_allowed:true
+ [ 39] IteratorNextUnpack dst_value:reg9, dst_done:reg10, iterator_object:reg6, iterator_next:reg7, iterator_done:reg8
+ [ 44] JumpTrue condition:reg10, target:block4
block1:
- [ 88] Mov dst:x~0, src:reg9
+ [ 4b] Mov dst:x~0, src:reg9
block2:
- [ 98] IteratorClose iterator_object:reg6, iterator_next:reg7, iterator_done:reg8, completion_value:Undefined
- [ b8] Return value:x~0
+ [ 50] IteratorClose iterator_object:reg6, iterator_next:reg7, iterator_done:reg8, completion_value:Undefined
+ [ 5f] Return value:x~0
block3:
- [ c0] Catch value_feedback:0, dst:reg11
- [ c8] IteratorClose iterator_object:reg6, iterator_next:reg7, iterator_done:reg8, completion_value:reg11
- [ e8] Throw src:reg11
+ [ 62] Catch value_feedback:0, dst:reg11
+ [ 67] IteratorClose iterator_object:reg6, iterator_next:reg7, iterator_done:reg8, completion_value:reg11
+ [ 76] Throw src:reg11
block4:
- [ f0] End value:Undefined
+ [ 79] End value:Undefined
Exception handlers:
- [ 88 .. 98] => handler block3
+ [ 4b .. 50] => handler block3
-forAwaitOfBreak$7bbd4372 for-of-iterator-close.js:16:22
+forAwaitOfBreak$2e77b0ed for-of-iterator-close.js:16:22
Registers: 18
Blocks: 23
Locals: x~0
Constants:
[0] = <Empty>
- [1] = Int32(1)
- [2] = Int32(2)
- [3] = Undefined
+ [1] = Undefined
block0:
[ 0] Enter
- [ 8] Mov dst:x~0, src:<Empty>
- [ 18] Mov dst:reg5, src:arg0
- [ 28] GetIterator dst_iterator_object:reg6, dst_iterator_next:reg7, dst_iterator_done:reg8, iterable:reg5, fast_array_mode_allowed:false
+ [ 1] Mov dst:x~0, src:<Empty>
+ [ 6] Mov dst:reg5, src:arg0
+ [ b] GetIterator dst_iterator_object:reg6, dst_iterator_next:reg7, dst_iterator_done:reg8, iterable:reg5, fast_array_mode_allowed:false
block1:
- [ 48] Call value_feedback:0, call_feedback:0, dst:reg11, callee:reg7, this_value:reg6
- [ 68] Mov dst:reg12, src:reg0
- [ 78] Await continuation_label:block2, argument:reg11
+ [ 1b] Call value_feedback:0, call_feedback:0, dst:reg11, callee:reg7, this_value:reg6
+ [ 30] Mov dst:reg12, src:reg0
+ [ 35] Await continuation_label:block2, argument:reg11
block2:
- [ 88] Mov dst:reg12, src:reg0
- [ 98] GetCompletionFields type_dst:reg13, value_dst:reg14, completion:reg12
- [ a8] StrictlyEqualsRhsInt32 arith_feedback:0, dst:reg15, lhs:reg13, rhs:1
- [ b8] JumpIf condition:reg15, true_target:block4, false_target:block3
+ [ 3c] Mov dst:reg12, src:reg0
+ [ 41] GetCompletionFields type_dst:reg13, value_dst:reg14, completion:reg12
+ [ 48] StrictlyEqualsRhsInt32 arith_feedback:0, dst:reg15, lhs:reg13, rhs:1
+ [ 53] JumpIf condition:reg15, true_target:block4, false_target:block3
block3:
- [ c8] Throw src:reg14
+ [ 5e] Throw src:reg14
block4:
- [ d0] ThrowIfNotObject src:reg14
- [ d8] GetById value_feedback:1, dst:reg10, base:reg14, `done`
- [ f0] JumpTrue condition:reg10, target:block22
+ [ 61] ThrowIfNotObject src:reg14
+ [ 64] GetById value_feedback:1, dst:reg10, base:reg14, `done`
+ [ 71] JumpTrue condition:reg10, target:block22
block5:
- [ 100] GetById value_feedback:2, dst:reg9, base:reg14, `value`
+ [ 78] GetById value_feedback:2, dst:reg9, base:reg14, `value`
block6:
- [ 118] Mov dst:x~0, src:reg9
- [ 128] JumpStrictlyEqualsRhsInt32 arith_feedback:1, lhs:x~0, rhs:2, true_target:block7, false_target:block13
+ [ 85] Mov dst:x~0, src:reg9
+ [ 8a] JumpStrictlyEqualsRhsInt32 arith_feedback:1, lhs:x~0, rhs:2, true_target:block7, false_target:block13
block7:
- [ 140] GetMethod dst:reg11, object:reg6, `return`
- [ 158] JumpUndefined condition:reg11, true_target:block12, false_target:block8
+ [ 9b] GetMethod dst:reg11, object:reg6, `return`
+ [ a4] JumpUndefined condition:reg11, true_target:block12, false_target:block8
block8:
- [ 168] Call value_feedback:3, call_feedback:1, dst:reg12, callee:reg11, this_value:reg6
- [ 188] Mov dst:reg13, src:reg0
- [ 198] Await continuation_label:block9, argument:reg12
+ [ af] Call value_feedback:3, call_feedback:1, dst:reg12, callee:reg11, this_value:reg6
+ [ c4] Mov dst:reg13, src:reg0
+ [ c9] Await continuation_label:block9, argument:reg12
block9:
- [ 1a8] Mov dst:reg13, src:reg0
- [ 1b8] GetCompletionFields type_dst:reg14, value_dst:reg15, completion:reg13
- [ 1c8] StrictlyEqualsRhsInt32 arith_feedback:2, dst:reg16, lhs:reg14, rhs:1
- [ 1d8] JumpIf condition:reg16, true_target:block11, false_target:block10
+ [ d0] Mov dst:reg13, src:reg0
+ [ d5] GetCompletionFields type_dst:reg14, value_dst:reg15, completion:reg13
+ [ dc] StrictlyEqualsRhsInt32 arith_feedback:2, dst:reg16, lhs:reg14, rhs:1
+ [ e7] JumpIf condition:reg16, true_target:block11, false_target:block10
block10:
- [ 1e8] Throw src:reg15
+ [ f2] Throw src:reg15
block11:
- [ 1f0] ThrowIfNotObject src:reg15
+ [ f5] ThrowIfNotObject src:reg15
block12:
- [ 1f8] Jump target:block22
+ [ f8] Jump target:block22
block13:
- [ 200] JumpLoop target:block1
+ [ fd] JumpLoop target:block1
block14:
- [ 208] Catch value_feedback:4, dst:reg11
+ [ 102] Catch value_feedback:4, dst:reg11
block15:
- [ 210] GetMethod dst:reg12, object:reg6, `return`
- [ 228] JumpUndefined condition:reg12, true_target:block21, false_target:block16
+ [ 107] GetMethod dst:reg12, object:reg6, `return`
+ [ 110] JumpUndefined condition:reg12, true_target:block21, false_target:block16
block16:
- [ 238] Call value_feedback:5, call_feedback:2, dst:reg13, callee:reg12, this_value:reg6
- [ 258] Mov dst:reg14, src:reg0
- [ 268] Await continuation_label:block17, argument:reg13
+ [ 11b] Call value_feedback:5, call_feedback:2, dst:reg13, callee:reg12, this_value:reg6
+ [ 130] Mov dst:reg14, src:reg0
+ [ 135] Await continuation_label:block17, argument:reg13
block17:
- [ 278] Mov dst:reg14, src:reg0
- [ 288] GetCompletionFields type_dst:reg15, value_dst:reg16, completion:reg14
- [ 298] StrictlyEqualsRhsInt32 arith_feedback:3, dst:reg17, lhs:reg15, rhs:1
- [ 2a8] JumpIf condition:reg17, true_target:block19, false_target:block18
+ [ 13c] Mov dst:reg14, src:reg0
+ [ 141] GetCompletionFields type_dst:reg15, value_dst:reg16, completion:reg14
+ [ 148] StrictlyEqualsRhsInt32 arith_feedback:3, dst:reg17, lhs:reg15, rhs:1
+ [ 153] JumpIf condition:reg17, true_target:block19, false_target:block18
block18:
- [ 2b8] Throw src:reg16
+ [ 15e] Throw src:reg16
block19:
- [ 2c0] Jump target:block21
+ [ 161] Jump target:block21
block20:
- [ 2c8] Catch value_feedback:6, dst:reg12
+ [ 166] Catch value_feedback:6, dst:reg12
block21:
- [ 2d0] Throw src:reg11
+ [ 16b] Throw src:reg11
block22:
- [ 2d8] Yield value:Undefined
+ [ 16e] Yield value:Undefined
Exception handlers:
- [ 118 .. 140] => handler block14
- [ 200 .. 208] => handler block14
- [ 210 .. 2c8] => handler block20
+ [ 85 .. 9b] => handler block14
+ [ fd .. 102] => handler block14
+ [ 107 .. 166] => handler block20
diff --git a/Tests/LibJS/Bytecode/expected/for-of-rhs-precedence.txt b/Tests/LibJS/Bytecode/expected/for-of-rhs-precedence.txt
index f465cf97aaa..e30272ab3b2 100644
--- a/Tests/LibJS/Bytecode/expected/for-of-rhs-precedence.txt
+++ b/Tests/LibJS/Bytecode/expected/for-of-rhs-precedence.txt
@@ -1,4 +1,4 @@
-$511dd735
+$7ccbae8c
Registers: 6
Blocks: 1
Constants:
@@ -6,5 +6,5 @@ $511dd735
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] End value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/for-try-finally-continue.txt b/Tests/LibJS/Bytecode/expected/for-try-finally-continue.txt
index ad2dbb3ee37..87f0581a6a6 100644
--- a/Tests/LibJS/Bytecode/expected/for-try-finally-continue.txt
+++ b/Tests/LibJS/Bytecode/expected/for-try-finally-continue.txt
@@ -1,4 +1,4 @@
-$5fbe493e for-try-finally-continue.js:1:5
+$7762a3bf for-try-finally-continue.js:1:5
Registers: 9
Blocks: 14
Locals: e~0
@@ -8,71 +8,70 @@ $5fbe493e for-try-finally-continue.js:1:5
[2] = Int32(2)
[3] = <Empty>
[4] = Int32(1)
- [5] = Int32(5)
- [6] = String("bad")
+ [5] = String("bad")
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] Mov dst:reg5, src:Undefined
- [ 28] SetGlobal `i`, src:Int32(0)
- [ 38] Jump target:block10
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] Mov dst:reg5, src:Undefined
+ [ b] SetGlobal `i`, src:Int32(0)
+ [ 12] Jump target:block10
block1:
- [ 40] Mov dst:reg5, src:Undefined
+ [ 17] Mov dst:reg5, src:Undefined
block2:
- [ 50] Mov dst:reg6, src:Int32(2)
- [ 60] Jump target:block5
+ [ 1c] Mov dst:reg6, src:Int32(2)
+ [ 21] Jump target:block5
block3:
- [ 68] Catch value_feedback:0, dst:reg8
- [ 70] Mov dst:reg5, src:Undefined
- [ 80] Mov dst:e~0, src:<Empty>
- [ 90] Mov dst:e~0, src:reg8
- [ a0] Mov dst:reg6, src:Int32(0)
- [ b0] Jump target:block5
+ [ 26] Catch value_feedback:0, dst:reg8
+ [ 2b] Mov dst:reg5, src:Undefined
+ [ 30] Mov dst:e~0, src:<Empty>
+ [ 35] Mov dst:e~0, src:reg8
+ [ 3a] Mov dst:reg6, src:Int32(0)
+ [ 3f] Jump target:block5
block4:
- [ b8] Catch value_feedback:1, dst:reg7
- [ c0] Mov dst:reg6, src:Int32(1)
+ [ 44] Catch value_feedback:1, dst:reg7
+ [ 49] Mov dst:reg6, src:Int32(1)
block5:
- [ d0] Mov dst:reg8, src:reg5
- [ e0] Mov dst:reg5, src:Undefined
- [ f0] Mov dst:reg5, src:reg8
- [ 100] JumpStrictlyEqualsRhsInt32 arith_feedback:0, lhs:reg6, rhs:0, true_target:block9, false_target:block6
+ [ 4e] Mov dst:reg8, src:reg5
+ [ 53] Mov dst:reg5, src:Undefined
+ [ 58] Mov dst:reg5, src:reg8
+ [ 5d] JumpStrictlyEqualsRhsInt32 arith_feedback:0, lhs:reg6, rhs:0, true_target:block9, false_target:block6
block6:
- [ 118] JumpStrictlyEqualsRhsInt32 arith_feedback:1, lhs:reg6, rhs:2, true_target:block7, false_target:block8
+ [ 6e] JumpStrictlyEqualsRhsInt32 arith_feedback:1, lhs:reg6, rhs:2, true_target:block7, false_target:block8
block7:
- [ 130] Jump target:block9
+ [ 7f] Jump target:block9
block8:
- [ 138] Throw src:reg7
+ [ 84] Throw src:reg7
block9:
- [ 140] GetGlobal value_feedback:2, dst:reg6, `i`
- [ 150] PostfixIncrement arith_feedback:2, dst:reg7, src:reg6
- [ 160] SetGlobal `i`, src:reg6
+ [ 87] GetGlobal value_feedback:2, dst:reg6, `i`
+ [ 90] PostfixIncrement arith_feedback:2, dst:reg7, src:reg6
+ [ 97] SetGlobal `i`, src:reg6
block10:
- [ 170] GetGlobal value_feedback:3, dst:reg6, `i`
- [ 180] JumpLessThanLoopRhsInt32 arith_feedback:3, lhs:reg6, rhs:5, true_target:block1, false_target:block11
+ [ 9e] GetGlobal value_feedback:3, dst:reg6, `i`
+ [ a7] JumpLessThanLoopRhsInt32 arith_feedback:3, lhs:reg6, rhs:5, true_target:block1, false_target:block11
block11:
- [ 198] GetGlobal value_feedback:4, dst:reg6, `i`
- [ 1a8] StrictlyInequalsRhsInt32 arith_feedback:4, dst:reg6, lhs:reg6, rhs:5
- [ 1b8] Mov dst:reg5, src:Undefined
- [ 1c8] JumpFalse condition:reg6, target:block13
+ [ b8] GetGlobal value_feedback:4, dst:reg6, `i`
+ [ c1] StrictlyInequalsRhsInt32 arith_feedback:4, dst:reg6, lhs:reg6, rhs:5
+ [ cc] Mov dst:reg5, src:Undefined
+ [ d1] JumpFalse condition:reg6, target:block13
block12:
- [ 1d8] Throw src:String("bad")
+ [ d8] Throw src:String("bad")
block13:
- [ 1e0] End value:reg5
+ [ db] End value:reg5
Exception handlers:
- [ 50 .. 68] => handler block3
- [ 68 .. b8] => handler block4
+ [ 1c .. 26] => handler block3
+ [ 26 .. 44] => handler block4
diff --git a/Tests/LibJS/Bytecode/expected/function-decl-source-order.txt b/Tests/LibJS/Bytecode/expected/function-decl-source-order.txt
index 43c2ebe7364..b53ae174298 100644
--- a/Tests/LibJS/Bytecode/expected/function-decl-source-order.txt
+++ b/Tests/LibJS/Bytecode/expected/function-decl-source-order.txt
@@ -1,4 +1,4 @@
-$581dec1a function-decl-source-order.js:17:1
+$71fb0dc1 function-decl-source-order.js:17:1
Registers: 13
Blocks: 1
Constants:
@@ -6,24 +6,24 @@ $581dec1a function-decl-source-order.js:17:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `console`
- [ 28] GetById value_feedback:1, dst:reg7, base:reg6, `log`
- [ 40] GetGlobal value_feedback:2, dst:reg8, `alpha`
- [ 50] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined
- [ 70] GetGlobal value_feedback:4, dst:reg9, `beta`
- [ 80] Call value_feedback:5, call_feedback:1, dst:reg9, callee:reg9, this_value:Undefined
- [ a0] GetGlobal value_feedback:6, dst:reg10, `gamma`
- [ b0] Call value_feedback:7, call_feedback:2, dst:reg10, callee:reg10, this_value:Undefined
- [ d0] GetGlobal value_feedback:8, dst:reg11, `delta`
- [ e0] Call value_feedback:9, call_feedback:3, dst:reg11, callee:reg11, this_value:Undefined
- [ 100] GetGlobal value_feedback:10, dst:reg12, `dup`
- [ 110] Call value_feedback:11, call_feedback:4, dst:reg12, callee:reg12, this_value:Undefined
- [ 130] Call value_feedback:12, call_feedback:5, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8, reg9, reg10, reg11, reg12]
- [ 168] End value:reg5
-
-
-alpha$ae0829f8 function-decl-source-order.js:5:20
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `console`
+ [ f] GetById value_feedback:1, dst:reg7, base:reg6, `log`
+ [ 1c] GetGlobal value_feedback:2, dst:reg8, `alpha`
+ [ 25] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined
+ [ 3a] GetGlobal value_feedback:4, dst:reg9, `beta`
+ [ 43] Call value_feedback:5, call_feedback:1, dst:reg9, callee:reg9, this_value:Undefined
+ [ 58] GetGlobal value_feedback:6, dst:reg10, `gamma`
+ [ 61] Call value_feedback:7, call_feedback:2, dst:reg10, callee:reg10, this_value:Undefined
+ [ 76] GetGlobal value_feedback:8, dst:reg11, `delta`
+ [ 7f] Call value_feedback:9, call_feedback:3, dst:reg11, callee:reg11, this_value:Undefined
+ [ 94] GetGlobal value_feedback:10, dst:reg12, `dup`
+ [ 9d] Call value_feedback:11, call_feedback:4, dst:reg12, callee:reg12, this_value:Undefined
+ [ b2] Call value_feedback:12, call_feedback:5, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8, reg9, reg10, reg11, reg12]
+ [ d1] End value:reg5
+
+
+alpha$ebf5352c function-decl-source-order.js:5:20
Registers: 5
Blocks: 1
Constants:
@@ -31,10 +31,10 @@ alpha$ae0829f8 function-decl-source-order.js:5:20
block0:
[ 0] Enter
- [ 8] Return value:Int32(1)
+ [ 1] Return value:Int32(1)
-beta$d7c01003 function-decl-source-order.js:7:19
+beta$15ad1b37 function-decl-source-order.js:7:19
Registers: 5
Blocks: 1
Constants:
@@ -42,10 +42,10 @@ beta$d7c01003 function-decl-source-order.js:7:19
block0:
[ 0] Enter
- [ 8] Return value:Int32(2)
+ [ 1] Return value:Int32(2)
-gamma$81a5207d function-decl-source-order.js:11:20
+gamma$43b81549 function-decl-source-order.js:11:20
Registers: 5
Blocks: 1
Constants:
@@ -53,10 +53,10 @@ gamma$81a5207d function-decl-source-order.js:11:20
block0:
[ 0] Enter
- [ 8] Return value:Int32(3)
+ [ 1] Return value:Int32(3)
-delta$bd75fd76 function-decl-source-order.js:15:20
+delta$7a011022 function-decl-source-order.js:15:20
Registers: 5
Blocks: 1
Constants:
@@ -64,10 +64,10 @@ delta$bd75fd76 function-decl-source-order.js:15:20
block0:
[ 0] Enter
- [ 8] Return value:Int32(4)
+ [ 1] Return value:Int32(4)
-dup$f8491cd3 function-decl-source-order.js:13:18
+dup$3bbe0a27 function-decl-source-order.js:13:18
Registers: 5
Blocks: 1
Constants:
@@ -75,7 +75,7 @@ dup$f8491cd3 function-decl-source-order.js:13:18
block0:
[ 0] Enter
- [ 8] Return value:String("second")
+ [ 1] Return value:String("second")
1 2 3 4 "second"
diff --git a/Tests/LibJS/Bytecode/expected/generator-yield-call.txt b/Tests/LibJS/Bytecode/expected/generator-yield-call.txt
index 0e3f9806cf7..2b34eb78f68 100644
--- a/Tests/LibJS/Bytecode/expected/generator-yield-call.txt
+++ b/Tests/LibJS/Bytecode/expected/generator-yield-call.txt
@@ -1,4 +1,4 @@
-$92229ee5 generator-yield-call.js:9:1
+$e861ea00 generator-yield-call.js:9:1
Registers: 9
Blocks: 1
Constants:
@@ -8,71 +8,69 @@ $92229ee5 generator-yield-call.js:9:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `f`
- [ 28] NewObject dst:reg7
- [ 38] InitObjectLiteralProperty object:reg7, `x`, src:Int32(1), shape_cache_index:0, property_slot:0
- [ 50] CacheObjectShape object:reg7
- [ 60] NewObject dst:reg8
- [ 70] InitObjectLiteralProperty object:reg8, `y`, src:Int32(2), shape_cache_index:1, property_slot:0
- [ 88] CacheObjectShape object:reg8
- [ 98] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7, reg8]
- [ c0] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `f`
+ [ f] NewObject dst:reg7
+ [ 14] InitObjectLiteralProperty object:reg7, `x`, src:Int32(1), shape_cache_index:0, property_slot:0
+ [ 23] CacheObjectShape object:reg7
+ [ 28] NewObject dst:reg8
+ [ 2d] InitObjectLiteralProperty object:reg8, `y`, src:Int32(2), shape_cache_index:1, property_slot:0
+ [ 3c] CacheObjectShape object:reg8
+ [ 41] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7, reg8]
+ [ 5a] End value:reg5
-f$1dbc86eb generator-yield-call.js:6:5
+f$da6a5513 generator-yield-call.js:6:5
Registers: 11
Blocks: 12
Constants:
[0] = Undefined
- [1] = Int32(1)
- [2] = Int32(5)
block0:
[ 0] Enter
- [ 8] Yield continuation_label:block1, value:Undefined
+ [ 1] Yield continuation_label:block1, value:Undefined
block1:
- [ 18] GetById value_feedback:0, dst:reg5, base:arg0, `x`
- [ 30] Yield continuation_label:block2, value:reg5
+ [ 9] GetById value_feedback:0, dst:reg5, base:arg0, `x`
+ [ 16] Yield continuation_label:block2, value:reg5
block2:
- [ 40] Mov dst:reg6, src:reg0
- [ 50] GetCompletionFields type_dst:reg7, value_dst:reg8, completion:reg6
- [ 60] StrictlyEqualsRhsInt32 arith_feedback:0, dst:reg9, lhs:reg7, rhs:1
- [ 70] JumpIf condition:reg9, true_target:block6, false_target:block3
+ [ 1e] Mov dst:reg6, src:reg0
+ [ 23] GetCompletionFields type_dst:reg7, value_dst:reg8, completion:reg6
+ [ 2a] StrictlyEqualsRhsInt32 arith_feedback:0, dst:reg9, lhs:reg7, rhs:1
+ [ 35] JumpIf condition:reg9, true_target:block6, false_target:block3
block3:
- [ 80] StrictlyEqualsRhsInt32 arith_feedback:1, dst:reg10, lhs:reg7, rhs:5
- [ 90] JumpIf condition:reg10, true_target:block4, false_target:block5
+ [ 40] StrictlyEqualsRhsInt32 arith_feedback:1, dst:reg10, lhs:reg7, rhs:5
+ [ 4b] JumpIf condition:reg10, true_target:block4, false_target:block5
block4:
- [ a0] Throw src:reg8
+ [ 56] Throw src:reg8
block5:
- [ a8] Yield value:reg8
+ [ 59] Yield value:reg8
block6:
- [ b8] Mov dst:reg5, src:reg8
- [ c8] GetById value_feedback:1, dst:reg5, base:arg1, `y`
- [ e0] Yield continuation_label:block7, value:reg5
+ [ 61] Mov dst:reg5, src:reg8
+ [ 66] GetById value_feedback:1, dst:reg5, base:arg1, `y`
+ [ 73] Yield continuation_label:block7, value:reg5
block7:
- [ f0] Mov dst:reg6, src:reg0
- [ 100] GetCompletionFields type_dst:reg7, value_dst:reg8, completion:reg6
- [ 110] StrictlyEqualsRhsInt32 arith_feedback:2, dst:reg9, lhs:reg7, rhs:1
- [ 120] JumpIf condition:reg9, true_target:block11, false_target:block8
+ [ 7b] Mov dst:reg6, src:reg0
+ [ 80] GetCompletionFields type_dst:reg7, value_dst:reg8, completion:reg6
+ [ 87] StrictlyEqualsRhsInt32 arith_feedback:2, dst:reg9, lhs:reg7, rhs:1
+ [ 92] JumpIf condition:reg9, true_target:block11, false_target:block8
block8:
- [ 130] StrictlyEqualsRhsInt32 arith_feedback:3, dst:reg10, lhs:reg7, rhs:5
- [ 140] JumpIf condition:reg10, true_target:block9, false_target:block10
+ [ 9d] StrictlyEqualsRhsInt32 arith_feedback:3, dst:reg10, lhs:reg7, rhs:5
+ [ a8] JumpIf condition:reg10, true_target:block9, false_target:block10
block9:
- [ 150] Throw src:reg8
+ [ b3] Throw src:reg8
block10:
- [ 158] Yield value:reg8
+ [ b6] Yield value:reg8
block11:
- [ 168] Mov dst:reg5, src:reg8
- [ 178] Yield value:Undefined
+ [ be] Mov dst:reg5, src:reg8
+ [ c3] Yield value:Undefined
diff --git a/Tests/LibJS/Bytecode/expected/generator-yield-finally.txt b/Tests/LibJS/Bytecode/expected/generator-yield-finally.txt
index 3b919684820..661fe47794c 100644
--- a/Tests/LibJS/Bytecode/expected/generator-yield-finally.txt
+++ b/Tests/LibJS/Bytecode/expected/generator-yield-finally.txt
@@ -1,4 +1,4 @@
-$b7d986bf generator-yield-finally.js:11:1
+$83dfdc38 generator-yield-finally.js:11:1
Registers: 7
Blocks: 1
Constants:
@@ -6,113 +6,112 @@ $b7d986bf generator-yield-finally.js:11:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `f`
- [ 28] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 48] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `f`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 24] End value:reg5
-f$9823b308 generator-yield-finally.js:4:9
+f$c8661021 generator-yield-finally.js:4:9
Registers: 12
Blocks: 23
Constants:
[0] = Undefined
[1] = Int32(1)
- [2] = Int32(5)
- [3] = Int32(2)
- [4] = Int32(0)
- [5] = Int32(3)
+ [2] = Int32(2)
+ [3] = Int32(0)
+ [4] = Int32(3)
block0:
[ 0] Enter
- [ 8] Yield continuation_label:block1, value:Undefined
+ [ 1] Yield continuation_label:block1, value:Undefined
block1:
- [ 18] Yield continuation_label:block2, value:Int32(1)
+ [ 9] Yield continuation_label:block2, value:Int32(1)
block2:
- [ 28] Mov dst:reg7, src:reg0
- [ 38] GetCompletionFields type_dst:reg8, value_dst:reg9, completion:reg7
- [ 48] StrictlyEqualsRhsInt32 arith_feedback:0, dst:reg10, lhs:reg8, rhs:1
- [ 58] JumpIf condition:reg10, true_target:block6, false_target:block3
+ [ 11] Mov dst:reg7, src:reg0
+ [ 16] GetCompletionFields type_dst:reg8, value_dst:reg9, completion:reg7
+ [ 1d] StrictlyEqualsRhsInt32 arith_feedback:0, dst:reg10, lhs:reg8, rhs:1
+ [ 28] JumpIf condition:reg10, true_target:block6, false_target:block3
block3:
- [ 68] StrictlyEqualsRhsInt32 arith_feedback:1, dst:reg11, lhs:reg8, rhs:5
- [ 78] JumpIf condition:reg11, true_target:block4, false_target:block5
+ [ 33] StrictlyEqualsRhsInt32 arith_feedback:1, dst:reg11, lhs:reg8, rhs:5
+ [ 3e] JumpIf condition:reg11, true_target:block4, false_target:block5
block4:
- [ 88] Throw src:reg9
+ [ 49] Throw src:reg9
block5:
- [ 90] Mov dst:reg6, src:reg9
- [ a0] Mov dst:reg5, src:Int32(2)
- [ b0] Jump target:block13
+ [ 4c] Mov dst:reg6, src:reg9
+ [ 51] Mov dst:reg5, src:Int32(2)
+ [ 56] Jump target:block13
block6:
- [ b8] Mov dst:reg7, src:reg9
- [ c8] Yield continuation_label:block7, value:Int32(2)
+ [ 5b] Mov dst:reg7, src:reg9
+ [ 60] Yield continuation_label:block7, value:Int32(2)
block7:
- [ d8] Mov dst:reg7, src:reg0
- [ e8] GetCompletionFields type_dst:reg8, value_dst:reg9, completion:reg7
- [ f8] StrictlyEqualsRhsInt32 arith_feedback:2, dst:reg10, lhs:reg8, rhs:1
- [ 108] JumpIf condition:reg10, true_target:block11, false_target:block8
+ [ 68] Mov dst:reg7, src:reg0
+ [ 6d] GetCompletionFields type_dst:reg8, value_dst:reg9, completion:reg7
+ [ 74] StrictlyEqualsRhsInt32 arith_feedback:2, dst:reg10, lhs:reg8, rhs:1
+ [ 7f] JumpIf condition:reg10, true_target:block11, false_target:block8
block8:
- [ 118] StrictlyEqualsRhsInt32 arith_feedback:3, dst:reg11, lhs:reg8, rhs:5
- [ 128] JumpIf condition:reg11, true_target:block9, false_target:block10
+ [ 8a] StrictlyEqualsRhsInt32 arith_feedback:3, dst:reg11, lhs:reg8, rhs:5
+ [ 95] JumpIf condition:reg11, true_target:block9, false_target:block10
block9:
- [ 138] Throw src:reg9
+ [ a0] Throw src:reg9
block10:
- [ 140] Mov dst:reg6, src:reg9
- [ 150] Mov dst:reg5, src:Int32(2)
- [ 160] Jump target:block13
+ [ a3] Mov dst:reg6, src:reg9
+ [ a8] Mov dst:reg5, src:Int32(2)
+ [ ad] Jump target:block13
block11:
- [ 168] Mov dst:reg7, src:reg9
- [ 178] Mov dst:reg5, src:Int32(0)
- [ 188] Jump target:block13
+ [ b2] Mov dst:reg7, src:reg9
+ [ b7] Mov dst:reg5, src:Int32(0)
+ [ bc] Jump target:block13
block12:
- [ 190] Catch value_feedback:0, dst:reg6
- [ 198] Mov dst:reg5, src:Int32(1)
+ [ c1] Catch value_feedback:0, dst:reg6
+ [ c6] Mov dst:reg5, src:Int32(1)
block13:
- [ 1a8] Yield continuation_label:block14, value:Int32(3)
+ [ cb] Yield continuation_label:block14, value:Int32(3)
block14:
- [ 1b8] Mov dst:reg7, src:reg0
- [ 1c8] GetCompletionFields type_dst:reg8, value_dst:reg9, completion:reg7
- [ 1d8] StrictlyEqualsRhsInt32 arith_feedback:4, dst:reg10, lhs:reg8, rhs:1
- [ 1e8] JumpIf condition:reg10, true_target:block18, false_target:block15
+ [ d3] Mov dst:reg7, src:reg0
+ [ d8] GetCompletionFields type_dst:reg8, value_dst:reg9, completion:reg7
+ [ df] StrictlyEqualsRhsInt32 arith_feedback:4, dst:reg10, lhs:reg8, rhs:1
+ [ ea] JumpIf condition:reg10, true_target:block18, false_target:block15
block15:
- [ 1f8] StrictlyEqualsRhsInt32 arith_feedback:5, dst:reg11, lhs:reg8, rhs:5
- [ 208] JumpIf condition:reg11, true_target:block16, false_target:block17
+ [ f5] StrictlyEqualsRhsInt32 arith_feedback:5, dst:reg11, lhs:reg8, rhs:5
+ [ 100] JumpIf condition:reg11, true_target:block16, false_target:block17
block16:
- [ 218] Throw src:reg9
+ [ 10b] Throw src:reg9
block17:
- [ 220] Yield value:reg9
+ [ 10e] Yield value:reg9
block18:
- [ 230] Mov dst:reg7, src:reg9
- [ 240] JumpStrictlyEqualsRhsInt32 arith_feedback:6, lhs:reg5, rhs:0, true_target:block22, false_target:block19
+ [ 116] Mov dst:reg7, src:reg9
+ [ 11b] JumpStrictlyEqualsRhsInt32 arith_feedback:6, lhs:reg5, rhs:0, true_target:block22, false_target:block19
block19:
- [ 258] JumpStrictlyEqualsRhsInt32 arith_feedback:7, lhs:reg5, rhs:2, true_target:block20, false_target:block21
+ [ 12c] JumpStrictlyEqualsRhsInt32 arith_feedback:7, lhs:reg5, rhs:2, true_target:block20, false_target:block21
block20:
- [ 270] Yield value:reg6
+ [ 13d] Yield value:reg6
block21:
- [ 280] Throw src:reg6
+ [ 145] Throw src:reg6
block22:
- [ 288] Yield value:Undefined
+ [ 148] Yield value:Undefined
Exception handlers:
- [ 18 .. 190] => handler block12
+ [ 9 .. c1] => handler block12
diff --git a/Tests/LibJS/Bytecode/expected/generator-yield-star.txt b/Tests/LibJS/Bytecode/expected/generator-yield-star.txt
index 369ac4a26c1..bdd92cc0847 100644
--- a/Tests/LibJS/Bytecode/expected/generator-yield-star.txt
+++ b/Tests/LibJS/Bytecode/expected/generator-yield-star.txt
@@ -1,106 +1,103 @@
-$6cf7d10a generator-yield-star.js:6:1
+$2982e3b6 generator-yield-star.js:6:1
Registers: 8
Blocks: 1
Constants:
[0] = Undefined
- [1] = Int32(1)
- [2] = Int32(2)
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `f`
- [ 28] NewPrimitiveArray dst:reg7, elements:[1, 2]
- [ 48] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
- [ 70] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `f`
+ [ f] NewPrimitiveArray dst:reg7, elements:[1, 2]
+ [ 2a] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
+ [ 41] End value:reg5
-f$acc28e9f generator-yield-star.js:4:5
+f$daa92d1c generator-yield-star.js:4:5
Registers: 21
Blocks: 19
Constants:
[0] = Undefined
[1] = Int32(1)
- [2] = Int32(5)
block0:
[ 0] Enter
- [ 8] Yield continuation_label:block1, value:Undefined
+ [ 1] Yield continuation_label:block1, value:Undefined
block1:
- [ 18] GetIterator dst_iterator_object:reg8, dst_iterator_next:reg9, dst_iterator_done:reg10, iterable:arg0, fast_array_mode_allowed:false
- [ 38] Mov dst:reg6, src:Int32(1)
- [ 48] Mov dst:reg7, src:Undefined
- [ 58] Jump target:block2
+ [ 9] GetIterator dst_iterator_object:reg8, dst_iterator_next:reg9, dst_iterator_done:reg10, iterable:arg0, fast_array_mode_allowed:false
+ [ 19] Mov dst:reg6, src:Int32(1)
+ [ 1e] Mov dst:reg7, src:Undefined
+ [ 23] Jump target:block2
block2:
- [ 60] StrictlyEqualsRhsInt32 arith_feedback:0, dst:reg11, lhs:reg6, rhs:1
- [ 70] JumpIf condition:reg11, true_target:block3, false_target:block6
+ [ 28] StrictlyEqualsRhsInt32 arith_feedback:0, dst:reg11, lhs:reg6, rhs:1
+ [ 33] JumpIf condition:reg11, true_target:block3, false_target:block6
block3:
- [ 80] Call value_feedback:0, call_feedback:0, dst:reg12, callee:reg9, this_value:reg8, arguments:[reg7]
- [ a8] ThrowIfNotObject src:reg12
- [ b0] GetById value_feedback:1, dst:reg13, base:reg12, `done`
- [ c8] JumpIf condition:reg13, true_target:block4, false_target:block5
+ [ 3e] Call value_feedback:0, call_feedback:0, dst:reg12, callee:reg9, this_value:reg8, arguments:[reg7]
+ [ 55] ThrowIfNotObject src:reg12
+ [ 58] GetById value_feedback:1, dst:reg13, base:reg12, `done`
+ [ 65] JumpIf condition:reg13, true_target:block4, false_target:block5
block4:
- [ d8] GetById value_feedback:2, dst:reg14, base:reg12, `value`
- [ f0] Jump target:block18
+ [ 70] GetById value_feedback:2, dst:reg14, base:reg12, `value`
+ [ 7d] Jump target:block18
block5:
- [ f8] YieldIteratorResult continuation_label:block17, value:reg12
+ [ 82] YieldIteratorResult continuation_label:block17, value:reg12
block6:
- [ 108] StrictlyEqualsRhsInt32 arith_feedback:1, dst:reg15, lhs:reg6, rhs:5
- [ 118] JumpIf condition:reg15, true_target:block7, false_target:block12
+ [ 89] StrictlyEqualsRhsInt32 arith_feedback:1, dst:reg15, lhs:reg6, rhs:5
+ [ 94] JumpIf condition:reg15, true_target:block7, false_target:block12
block7:
- [ 128] GetMethod dst:reg16, object:reg8, `throw`
- [ 140] JumpUndefined condition:reg16, true_target:block11, false_target:block8
+ [ 9f] GetMethod dst:reg16, object:reg8, `throw`
+ [ a8] JumpUndefined condition:reg16, true_target:block11, false_target:block8
block8:
- [ 150] Call value_feedback:3, call_feedback:1, dst:reg12, callee:reg16, this_value:reg8, arguments:[reg7]
- [ 178] ThrowIfNotObject src:reg12
- [ 180] GetById value_feedback:4, dst:reg13, base:reg12, `done`
- [ 198] JumpIf condition:reg13, true_target:block9, false_target:block10
+ [ b3] Call value_feedback:3, call_feedback:1, dst:reg12, callee:reg16, this_value:reg8, arguments:[reg7]
+ [ ca] ThrowIfNotObject src:reg12
+ [ cd] GetById value_feedback:4, dst:reg13, base:reg12, `done`
+ [ da] JumpIf condition:reg13, true_target:block9, false_target:block10
block9:
- [ 1a8] GetById value_feedback:5, dst:reg14, base:reg12, `value`
- [ 1c0] Jump target:block18
+ [ e5] GetById value_feedback:5, dst:reg14, base:reg12, `value`
+ [ f2] Jump target:block18
block10:
- [ 1c8] YieldIteratorResult continuation_label:block17, value:reg12
+ [ f7] YieldIteratorResult continuation_label:block17, value:reg12
block11:
- [ 1d8] IteratorClose iterator_object:reg8, iterator_next:reg9, iterator_done:reg10, completion_value:Undefined
- [ 1f8] NewTypeError dst:reg17, yield* protocol violation: iterator must have a throw method
- [ 208] Throw src:reg17
+ [ fe] IteratorClose iterator_object:reg8, iterator_next:reg9, iterator_done:reg10, completion_value:Undefined
+ [ 10d] NewTypeError dst:reg17, yield* protocol violation: iterator must have a throw method
+ [ 112] Throw src:reg17
block12:
- [ 210] GetMethod dst:reg18, object:reg8, `return`
- [ 228] JumpUndefined condition:reg18, true_target:block13, false_target:block14
+ [ 115] GetMethod dst:reg18, object:reg8, `return`
+ [ 11e] JumpUndefined condition:reg18, true_target:block13, false_target:block14
block13:
- [ 238] Yield value:reg7
+ [ 129] Yield value:reg7
block14:
- [ 248] Call value_feedback:6, call_feedback:2, dst:reg19, callee:reg18, this_value:reg8, arguments:[reg7]
- [ 270] ThrowIfNotObject src:reg19
- [ 278] GetById value_feedback:7, dst:reg13, base:reg19, `done`
- [ 290] JumpIf condition:reg13, true_target:block15, false_target:block16
+ [ 131] Call value_feedback:6, call_feedback:2, dst:reg19, callee:reg18, this_value:reg8, arguments:[reg7]
+ [ 148] ThrowIfNotObject src:reg19
+ [ 14b] GetById value_feedback:7, dst:reg13, base:reg19, `done`
+ [ 158] JumpIf condition:reg13, true_target:block15, false_target:block16
block15:
- [ 2a0] GetById value_feedback:8, dst:reg20, base:reg19, `value`
- [ 2b8] Yield value:reg20
+ [ 163] GetById value_feedback:8, dst:reg20, base:reg19, `value`
+ [ 170] Yield value:reg20
block16:
- [ 2c8] YieldIteratorResult continuation_label:block17, value:reg19
+ [ 178] YieldIteratorResult continuation_label:block17, value:reg19
block17:
- [ 2d8] Mov dst:reg5, src:reg0
- [ 2e8] GetCompletionFields type_dst:reg6, value_dst:reg7, completion:reg5
- [ 2f8] Jump target:block2
+ [ 17f] Mov dst:reg5, src:reg0
+ [ 184] GetCompletionFields type_dst:reg6, value_dst:reg7, completion:reg5
+ [ 18b] Jump target:block2
block18:
- [ 300] Mov dst:reg5, src:reg14
- [ 310] Yield value:Undefined
+ [ 190] Mov dst:reg5, src:reg14
+ [ 195] Yield value:Undefined
diff --git a/Tests/LibJS/Bytecode/expected/generator-yield.txt b/Tests/LibJS/Bytecode/expected/generator-yield.txt
index 86360194195..deedd209617 100644
--- a/Tests/LibJS/Bytecode/expected/generator-yield.txt
+++ b/Tests/LibJS/Bytecode/expected/generator-yield.txt
@@ -1,4 +1,4 @@
-$47dbec5b generator-yield.js:11:5
+$90d8bbcf generator-yield.js:11:5
Registers: 8
Blocks: 1
Constants:
@@ -6,71 +6,70 @@ $47dbec5b generator-yield.js:11:5
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `multi_yield`
- [ 28] Call value_feedback:1, call_feedback:0, dst:reg6, callee:reg6, this_value:Undefined
- [ 48] SetGlobal `g`, src:reg6
- [ 58] GetGlobal value_feedback:2, dst:reg6, `g`
- [ 68] GetById value_feedback:3, dst:reg7, base:reg6, `next`
- [ 80] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6
- [ a0] GetGlobal value_feedback:5, dst:reg6, `g`
- [ b0] GetById value_feedback:6, dst:reg7, base:reg6, `next`
- [ c8] Call value_feedback:7, call_feedback:2, dst:reg5, callee:reg7, this_value:reg6
- [ e8] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `multi_yield`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg6, callee:reg6, this_value:Undefined
+ [ 24] SetGlobal `g`, src:reg6
+ [ 2b] GetGlobal value_feedback:2, dst:reg6, `g`
+ [ 34] GetById value_feedback:3, dst:reg7, base:reg6, `next`
+ [ 41] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6
+ [ 56] GetGlobal value_feedback:5, dst:reg6, `g`
+ [ 5f] GetById value_feedback:6, dst:reg7, base:reg6, `next`
+ [ 6c] Call value_feedback:7, call_feedback:2, dst:reg5, callee:reg7, this_value:reg6
+ [ 81] End value:reg5
-multi_yield$0a9ed507 generator-yield.js:7:5
+multi_yield$73cb3965 generator-yield.js:7:5
Registers: 10
Blocks: 12
Constants:
[0] = Undefined
[1] = Int32(1)
- [2] = Int32(5)
- [3] = Int32(2)
+ [2] = Int32(2)
block0:
[ 0] Enter
- [ 8] Yield continuation_label:block1, value:Undefined
+ [ 1] Yield continuation_label:block1, value:Undefined
block1:
- [ 18] Yield continuation_label:block2, value:Int32(1)
+ [ 9] Yield continuation_label:block2, value:Int32(1)
block2:
- [ 28] Mov dst:reg5, src:reg0
- [ 38] GetCompletionFields type_dst:reg6, value_dst:reg7, completion:reg5
- [ 48] StrictlyEqualsRhsInt32 arith_feedback:0, dst:reg8, lhs:reg6, rhs:1
- [ 58] JumpIf condition:reg8, true_target:block6, false_target:block3
+ [ 11] Mov dst:reg5, src:reg0
+ [ 16] GetCompletionFields type_dst:reg6, value_dst:reg7, completion:reg5
+ [ 1d] StrictlyEqualsRhsInt32 arith_feedback:0, dst:reg8, lhs:reg6, rhs:1
+ [ 28] JumpIf condition:reg8, true_target:block6, false_target:block3
block3:
- [ 68] StrictlyEqualsRhsInt32 arith_feedback:1, dst:reg9, lhs:reg6, rhs:5
- [ 78] JumpIf condition:reg9, true_target:block4, false_target:block5
+ [ 33] StrictlyEqualsRhsInt32 arith_feedback:1, dst:reg9, lhs:reg6, rhs:5
+ [ 3e] JumpIf condition:reg9, true_target:block4, false_target:block5
block4:
- [ 88] Throw src:reg7
+ [ 49] Throw src:reg7
block5:
- [ 90] Yield value:reg7
+ [ 4c] Yield value:reg7
block6:
- [ a0] Mov dst:reg5, src:reg7
- [ b0] Yield continuation_label:block7, value:Int32(2)
+ [ 54] Mov dst:reg5, src:reg7
+ [ 59] Yield continuation_label:block7, value:Int32(2)
block7:
- [ c0] Mov dst:reg5, src:reg0
- [ d0] GetCompletionFields type_dst:reg6, value_dst:reg7, completion:reg5
- [ e0] StrictlyEqualsRhsInt32 arith_feedback:2, dst:reg8, lhs:reg6, rhs:1
- [ f0] JumpIf condition:reg8, true_target:block11, false_target:block8
+ [ 61] Mov dst:reg5, src:reg0
+ [ 66] GetCompletionFields type_dst:reg6, value_dst:reg7, completion:reg5
+ [ 6d] StrictlyEqualsRhsInt32 arith_feedback:2, dst:reg8, lhs:reg6, rhs:1
+ [ 78] JumpIf condition:reg8, true_target:block11, false_target:block8
block8:
- [ 100] StrictlyEqualsRhsInt32 arith_feedback:3, dst:reg9, lhs:reg6, rhs:5
- [ 110] JumpIf condition:reg9, true_target:block9, false_target:block10
+ [ 83] StrictlyEqualsRhsInt32 arith_feedback:3, dst:reg9, lhs:reg6, rhs:5
+ [ 8e] JumpIf condition:reg9, true_target:block9, false_target:block10
block9:
- [ 120] Throw src:reg7
+ [ 99] Throw src:reg7
block10:
- [ 128] Yield value:reg7
+ [ 9c] Yield value:reg7
block11:
- [ 138] Mov dst:reg5, src:reg7
- [ 148] Yield value:Undefined
+ [ a4] Mov dst:reg5, src:reg7
+ [ a9] Yield value:Undefined
diff --git a/Tests/LibJS/Bytecode/expected/global-variables.txt b/Tests/LibJS/Bytecode/expected/global-variables.txt
index 7cfbe20d4ef..19b43e73a8c 100644
--- a/Tests/LibJS/Bytecode/expected/global-variables.txt
+++ b/Tests/LibJS/Bytecode/expected/global-variables.txt
@@ -1,4 +1,4 @@
-$bf8a56c4 global-variables.js:4:5
+$16e60572 global-variables.js:4:5
Registers: 9
Blocks: 1
Constants:
@@ -7,13 +7,13 @@ $bf8a56c4 global-variables.js:4:5
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] SetGlobal `x`, src:Int32(1)
- [ 28] GetGlobal value_feedback:0, dst:reg6, `console`
- [ 38] GetById value_feedback:1, dst:reg7, base:reg6, `log`
- [ 50] GetGlobal value_feedback:2, dst:reg8, `x`
- [ 60] Call value_feedback:3, call_feedback:0, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 88] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] SetGlobal `x`, src:Int32(1)
+ [ d] GetGlobal value_feedback:0, dst:reg6, `console`
+ [ 16] GetById value_feedback:1, dst:reg7, base:reg6, `log`
+ [ 23] GetGlobal value_feedback:2, dst:reg8, `x`
+ [ 2c] Call value_feedback:3, call_feedback:0, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 43] End value:reg5
1
diff --git a/Tests/LibJS/Bytecode/expected/if-else-register-lifetime.txt b/Tests/LibJS/Bytecode/expected/if-else-register-lifetime.txt
index 304ec93cf07..a3e63a5a2c9 100644
--- a/Tests/LibJS/Bytecode/expected/if-else-register-lifetime.txt
+++ b/Tests/LibJS/Bytecode/expected/if-else-register-lifetime.txt
@@ -1,20 +1,19 @@
-$bd6168df if-else-register-lifetime.js:11:1
+$f03eafd3 if-else-register-lifetime.js:11:1
Registers: 8
Blocks: 1
Constants:
[0] = Undefined
- [1] = Int32(1)
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `test`
- [ 28] NewPrimitiveArray dst:reg7, elements:[1]
- [ 40] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
- [ 68] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `test`
+ [ f] NewPrimitiveArray dst:reg7, elements:[1]
+ [ 22] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
+ [ 39] End value:reg5
-test$4c58d9cb if-else-register-lifetime.js:2:9
+test$8a45e4ff if-else-register-lifetime.js:2:9
Registers: 7
Blocks: 10
Locals: a~0, i~1, j~2
@@ -22,52 +21,49 @@ test$4c58d9cb if-else-register-lifetime.js:2:9
[0] = Undefined
[1] = Int32(1)
[2] = Int32(0)
- [3] = Int32(5)
- [4] = Int32(3)
- [5] = Int32(10)
block0:
[ 0] Enter
- [ 8] Mov dst:a~0, src:Undefined
- [ 18] Mov dst:i~1, src:Undefined
- [ 28] Mov dst:j~2, src:Undefined
- [ 38] Mov dst:a~0, src:Int32(1)
- [ 48] Mov dst:i~1, src:Int32(0)
- [ 58] Jump target:block8
+ [ 1] Mov dst:a~0, src:Undefined
+ [ 6] Mov dst:i~1, src:Undefined
+ [ b] Mov dst:j~2, src:Undefined
+ [ 10] Mov dst:a~0, src:Int32(1)
+ [ 15] Mov dst:i~1, src:Int32(0)
+ [ 1a] Jump target:block8
block1:
- [ 60] Mov dst:j~2, src:Int32(0)
- [ 70] Jump target:block6
+ [ 1f] Mov dst:j~2, src:Int32(0)
+ [ 24] Jump target:block6
block2:
- [ 78] JumpLessThanRhsInt32 arith_feedback:0, lhs:j~2, rhs:5, true_target:block3, false_target:block4
+ [ 29] JumpLessThanRhsInt32 arith_feedback:0, lhs:j~2, rhs:5, true_target:block3, false_target:block4
block3:
- [ 90] Add arith_feedback:1, dst:reg5, lhs:i~1, rhs:j~2
- [ a0] GetByValue value_feedback:0, keyed_feedback:0, dst:reg5, base:arg0, property:reg5
- [ c0] PutByValue keyed_feedback:1, base:arg0, property:j~2, src:reg5, kind:Normal
- [ e0] Jump target:block5
+ [ 3a] Add arith_feedback:1, dst:reg5, lhs:i~1, rhs:j~2
+ [ 43] GetByValue value_feedback:0, keyed_feedback:0, dst:reg5, base:arg0, property:reg5
+ [ 52] PutByValue keyed_feedback:1, base:arg0, property:j~2, src:reg5, kind:Normal
+ [ 63] Jump target:block5
block4:
- [ e8] GetGlobal value_feedback:1, dst:reg5, `parseInt`
- [ f8] SubRhsInt32 arith_feedback:2, dst:reg6, lhs:j~2, rhs:3
- [ 108] GetByValue value_feedback:2, keyed_feedback:2, dst:reg6, base:arg0, property:reg6
- [ 128] Call value_feedback:3, call_feedback:0, dst:reg5, callee:reg5, this_value:Undefined, arguments:[reg6, Int32(1)]
- [ 150] PutByValue keyed_feedback:3, base:arg0, property:j~2, src:reg5, kind:Normal
+ [ 68] GetGlobal value_feedback:1, dst:reg5, `parseInt`
+ [ 71] SubRhsInt32 arith_feedback:2, dst:reg6, lhs:j~2, rhs:3
+ [ 7c] GetByValue value_feedback:2, keyed_feedback:2, dst:reg6, base:arg0, property:reg6
+ [ 8b] Call value_feedback:3, call_feedback:0, dst:reg5, callee:reg5, this_value:Undefined, arguments:[reg6, Int32(1)]
+ [ a4] PutByValue keyed_feedback:3, base:arg0, property:j~2, src:reg5, kind:Normal
block5:
- [ 170] Increment arith_feedback:3, dst:j~2
+ [ b5] Increment arith_feedback:3, dst:j~2
block6:
- [ 178] JumpLessThanLoopRhsInt32 arith_feedback:4, lhs:j~2, rhs:10, true_target:block2, false_target:block7
+ [ ba] JumpLessThanLoopRhsInt32 arith_feedback:4, lhs:j~2, rhs:10, true_target:block2, false_target:block7
block7:
- [ 190] Increment arith_feedback:5, dst:i~1
+ [ cb] Increment arith_feedback:5, dst:i~1
block8:
- [ 198] JumpLessThanLoopRhsInt32 arith_feedback:6, lhs:i~1, rhs:10, true_target:block1, false_target:block9
+ [ d0] JumpLessThanLoopRhsInt32 arith_feedback:6, lhs:i~1, rhs:10, true_target:block1, false_target:block9
block9:
- [ 1b0] GetGlobal value_feedback:4, dst:reg5, `parseInt`
- [ 1c0] Call value_feedback:5, call_feedback:1, dst:reg5, callee:reg5, this_value:Undefined, arguments:[a~0]
- [ 1e8] Return value:reg5
+ [ e1] GetGlobal value_feedback:4, dst:reg5, `parseInt`
+ [ ea] Call value_feedback:5, call_feedback:1, dst:reg5, callee:reg5, this_value:Undefined, arguments:[a~0]
+ [ 101] Return value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/imported-bindings.txt b/Tests/LibJS/Bytecode/expected/imported-bindings.txt
index babcab13a4a..79c9dbffcef 100644
--- a/Tests/LibJS/Bytecode/expected/imported-bindings.txt
+++ b/Tests/LibJS/Bytecode/expected/imported-bindings.txt
@@ -1,4 +1,4 @@
-call$40c78211 imported-bindings.mjs:11:5
+call$e50054d6 imported-bindings.mjs:11:5
Registers: 7
Blocks: 1
Constants:
@@ -6,20 +6,20 @@ call$40c78211 imported-bindings.mjs:11:5
block0:
[ 0] Enter
- [ 8] GetImport dst:reg5, `importedRead`, import_index:2
- [ 18] Mov dst:reg6, src:Undefined
- [ 28] Call value_feedback:0, call_feedback:0, dst:reg5, callee:reg5, this_value:reg6
- [ 48] Return value:reg5
+ [ 1] GetImport dst:reg5, `importedRead`, import_index:2
+ [ a] Mov dst:reg6, src:Undefined
+ [ f] Call value_feedback:0, call_feedback:0, dst:reg5, callee:reg5, this_value:reg6
+ [ 24] Return value:reg5
-read$75aa611d imported-bindings.mjs:7:5
+read$323573c9 imported-bindings.mjs:7:5
Registers: 7
Blocks: 1
block0:
[ 0] Enter
- [ 8] GetImport dst:reg5, `namespace`, import_index:0
- [ 18] Typeof dst:reg5, src:reg5
- [ 28] GetImport dst:reg6, `importedValue`, import_index:1
- [ 38] Add arith_feedback:0, dst:reg5, lhs:reg5, rhs:reg6
- [ 48] Return value:reg5
+ [ 1] GetImport dst:reg5, `namespace`, import_index:0
+ [ a] Typeof dst:reg5, src:reg5
+ [ f] GetImport dst:reg6, `importedValue`, import_index:1
+ [ 18] Add arith_feedback:0, dst:reg5, lhs:reg5, rhs:reg6
+ [ 21] Return value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/indexed-append-guards.txt b/Tests/LibJS/Bytecode/expected/indexed-append-guards.txt
index 8fadef6f9bf..ecc50238724 100644
--- a/Tests/LibJS/Bytecode/expected/indexed-append-guards.txt
+++ b/Tests/LibJS/Bytecode/expected/indexed-append-guards.txt
@@ -1,4 +1,4 @@
-$f1d87d01 indexed-append-guards.js:1:1
+$da63756e indexed-append-guards.js:1:1
Registers: 10
Blocks: 7
Constants:
@@ -15,69 +15,69 @@ $f1d87d01 indexed-append-guards.js:1:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] Mov dst:reg5, src:String("use strict")
- [ 28] GetGlobal value_feedback:0, dst:reg6, `Object`
- [ 38] GetById value_feedback:1, dst:reg7, base:reg6, `preventExtensions`
- [ 50] NewObject dst:reg8
- [ 60] PutByValue keyed_feedback:0, base:reg8, property:Int32(0), src:Int32(1), kind:Own
- [ 80] Call value_feedback:2, call_feedback:0, dst:reg6, callee:reg7, this_value:reg6, arguments:[reg8]
- [ a8] DynamicInitializeLexicalBinding `object`, src:reg6
- [ b8] GetGlobal value_feedback:3, dst:reg6, `expect_type_error`
- [ c8] NewFunction dst:reg7, shared_function_data_index:0
- [ e0] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
- [ 108] GetGlobal value_feedback:5, dst:reg6, `object`
- [ 118] GetByValue value_feedback:6, keyed_feedback:1, dst:reg6, base:reg6, property:Int32(1)
- [ 138] StrictlyInequals arith_feedback:0, dst:reg6, lhs:reg6, rhs:Undefined
- [ 148] Mov dst:reg5, src:Undefined
- [ 158] JumpFalse condition:reg6, target:block2
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] Mov dst:reg5, src:String("use strict")
+ [ b] GetGlobal value_feedback:0, dst:reg6, `Object`
+ [ 14] GetById value_feedback:1, dst:reg7, base:reg6, `preventExtensions`
+ [ 21] NewObject dst:reg8
+ [ 26] PutByValue keyed_feedback:0, base:reg8, property:Int32(0), src:Int32(1), kind:Own
+ [ 37] Call value_feedback:2, call_feedback:0, dst:reg6, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 4e] DynamicInitializeLexicalBinding `object`, src:reg6
+ [ 55] GetGlobal value_feedback:3, dst:reg6, `expect_type_error`
+ [ 5e] NewFunction dst:reg7, shared_function_data_index:0
+ [ 69] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
+ [ 80] GetGlobal value_feedback:5, dst:reg6, `object`
+ [ 89] GetByValue value_feedback:6, keyed_feedback:1, dst:reg6, base:reg6, property:Int32(1)
+ [ 98] StrictlyInequals arith_feedback:0, dst:reg6, lhs:reg6, rhs:Undefined
+ [ a1] Mov dst:reg5, src:Undefined
+ [ a6] JumpFalse condition:reg6, target:block2
block1:
- [ 168] GetGlobal value_feedback:7, dst:reg6, `Error`
- [ 178] CallConstruct value_feedback:8, call_feedback:2, dst:reg6, callee:reg6, arguments:[String("Indexed object append mutated")]
- [ 1a0] Throw src:reg6
+ [ ad] GetGlobal value_feedback:7, dst:reg6, `Error`
+ [ b6] CallConstruct value_feedback:8, call_feedback:2, dst:reg6, callee:reg6, arguments:[String("Indexed object append mutated")]
+ [ cb] Throw src:reg6
block2:
- [ 1a8] NewPrimitiveArray dst:reg6, elements:[1, 2]
- [ 1c8] DynamicInitializeLexicalBinding `array`, src:reg6
- [ 1d8] GetGlobal value_feedback:9, dst:reg6, `Object`
- [ 1e8] GetById value_feedback:10, dst:reg7, base:reg6, `defineProperty`
- [ 200] GetGlobal value_feedback:11, dst:reg8, `array`
- [ 210] NewObject dst:reg9
- [ 220] InitObjectLiteralProperty object:reg9, `writable`, src:Bool(false), shape_cache_index:0, property_slot:0
- [ 238] CacheObjectShape object:reg9
- [ 248] Call value_feedback:12, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8, String("length"), reg9]
- [ 278] GetGlobal value_feedback:13, dst:reg6, `expect_type_error`
- [ 288] NewFunction dst:reg7, shared_function_data_index:1
- [ 2a0] Call value_feedback:14, call_feedback:4, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
- [ 2c8] GetGlobal value_feedback:15, dst:reg6, `array`
- [ 2d8] GetLength value_feedback:16, keyed_feedback:2, dst:reg6, base:reg6
- [ 2f0] StrictlyInequalsRhsInt32 arith_feedback:1, dst:reg6, lhs:reg6, rhs:2
- [ 300] Mov dst:reg5, src:Undefined
- [ 310] JumpFalse condition:reg6, target:block4
+ [ ce] NewPrimitiveArray dst:reg6, elements:[1, 2]
+ [ e9] DynamicInitializeLexicalBinding `array`, src:reg6
+ [ f0] GetGlobal value_feedback:9, dst:reg6, `Object`
+ [ f9] GetById value_feedback:10, dst:reg7, base:reg6, `defineProperty`
+ [ 106] GetGlobal value_feedback:11, dst:reg8, `array`
+ [ 10f] NewObject dst:reg9
+ [ 114] InitObjectLiteralProperty object:reg9, `writable`, src:Bool(false), shape_cache_index:0, property_slot:0
+ [ 123] CacheObjectShape object:reg9
+ [ 128] Call value_feedback:12, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8, String("length"), reg9]
+ [ 143] GetGlobal value_feedback:13, dst:reg6, `expect_type_error`
+ [ 14c] NewFunction dst:reg7, shared_function_data_index:1
+ [ 157] Call value_feedback:14, call_feedback:4, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
+ [ 16e] GetGlobal value_feedback:15, dst:reg6, `array`
+ [ 177] GetLength value_feedback:16, keyed_feedback:2, dst:reg6, base:reg6
+ [ 184] StrictlyInequalsRhsInt32 arith_feedback:1, dst:reg6, lhs:reg6, rhs:2
+ [ 18f] Mov dst:reg5, src:Undefined
+ [ 194] JumpFalse condition:reg6, target:block4
block3:
- [ 320] GetGlobal value_feedback:17, dst:reg6, `Error`
- [ 330] CallConstruct value_feedback:18, call_feedback:5, dst:reg6, callee:reg6, arguments:[String("Array length changed")]
- [ 358] Throw src:reg6
+ [ 19b] GetGlobal value_feedback:17, dst:reg6, `Error`
+ [ 1a4] CallConstruct value_feedback:18, call_feedback:5, dst:reg6, callee:reg6, arguments:[String("Array length changed")]
+ [ 1b9] Throw src:reg6
block4:
- [ 360] GetGlobal value_feedback:19, dst:reg6, `array`
- [ 370] GetByValue value_feedback:20, keyed_feedback:3, dst:reg6, base:reg6, property:Int32(2)
- [ 390] StrictlyInequals arith_feedback:2, dst:reg6, lhs:reg6, rhs:Undefined
- [ 3a0] Mov dst:reg5, src:Undefined
- [ 3b0] JumpFalse condition:reg6, target:block6
+ [ 1bc] GetGlobal value_feedback:19, dst:reg6, `array`
+ [ 1c5] GetByValue value_feedback:20, keyed_feedback:3, dst:reg6, base:reg6, property:Int32(2)
+ [ 1d4] StrictlyInequals arith_feedback:2, dst:reg6, lhs:reg6, rhs:Undefined
+ [ 1dd] Mov dst:reg5, src:Undefined
+ [ 1e2] JumpFalse condition:reg6, target:block6
block5:
- [ 3c0] GetGlobal value_feedback:21, dst:reg6, `Error`
- [ 3d0] CallConstruct value_feedback:22, call_feedback:6, dst:reg6, callee:reg6, arguments:[String("Array append mutated")]
- [ 3f8] Throw src:reg6
+ [ 1e9] GetGlobal value_feedback:21, dst:reg6, `Error`
+ [ 1f2] CallConstruct value_feedback:22, call_feedback:6, dst:reg6, callee:reg6, arguments:[String("Array append mutated")]
+ [ 207] Throw src:reg6
block6:
- [ 400] End value:reg5
+ [ 20a] End value:reg5
-expect_type_error$5a5dde14 indexed-append-guards.js:4:9
+expect_type_error$2b3e3047 indexed-append-guards.js:4:9
Registers: 7
Blocks: 8
Locals: did_throw~0, error~1
@@ -90,45 +90,45 @@ expect_type_error$5a5dde14 indexed-append-guards.js:4:9
block0:
[ 0] Enter
- [ 8] Mov dst:did_throw~0, src:Bool(false)
+ [ 1] Mov dst:did_throw~0, src:Bool(false)
block1:
- [ 18] Call value_feedback:0, call_feedback:0, dst:reg5, callee:arg0, this_value:Undefined
- [ 38] Jump target:block5
+ [ 6] Call value_feedback:0, call_feedback:0, dst:reg5, callee:arg0, this_value:Undefined
+ [ 1b] Jump target:block5
block2:
- [ 40] Catch value_feedback:1, dst:reg5
- [ 48] Mov dst:error~1, src:<Empty>
- [ 58] Mov dst:error~1, src:reg5
- [ 68] GetGlobal value_feedback:2, dst:reg6, `TypeError`
- [ 78] InstanceOf dst:reg6, lhs:error~1, rhs:reg6
- [ 88] Not dst:reg6, src:reg6
- [ 98] JumpFalse condition:reg6, target:block4
+ [ 20] Catch value_feedback:1, dst:reg5
+ [ 25] Mov dst:error~1, src:<Empty>
+ [ 2a] Mov dst:error~1, src:reg5
+ [ 2f] GetGlobal value_feedback:2, dst:reg6, `TypeError`
+ [ 38] InstanceOf dst:reg6, lhs:error~1, rhs:reg6
+ [ 3f] Not dst:reg6, src:reg6
+ [ 44] JumpFalse condition:reg6, target:block4
block3:
- [ a8] Throw src:error~1
+ [ 4b] Throw src:error~1
block4:
- [ b0] Mov dst:did_throw~0, src:Bool(true)
- [ c0] Jump target:block5
+ [ 4e] Mov dst:did_throw~0, src:Bool(true)
+ [ 53] Jump target:block5
block5:
- [ c8] Not dst:reg5, src:did_throw~0
- [ d8] JumpFalse condition:reg5, target:block7
+ [ 58] Not dst:reg5, src:did_throw~0
+ [ 5d] JumpFalse condition:reg5, target:block7
block6:
- [ e8] GetGlobal value_feedback:3, dst:reg5, `Error`
- [ f8] CallConstruct value_feedback:4, call_feedback:1, dst:reg5, callee:reg5, arguments:[String("Expected TypeError")]
- [ 120] Throw src:reg5
+ [ 64] GetGlobal value_feedback:3, dst:reg5, `Error`
+ [ 6d] CallConstruct value_feedback:4, call_feedback:1, dst:reg5, callee:reg5, arguments:[String("Expected TypeError")]
+ [ 82] Throw src:reg5
block7:
- [ 128] End value:Undefined
+ [ 85] End value:Undefined
Exception handlers:
- [ 18 .. 40] => handler block2
+ [ 6 .. 20] => handler block2
-$e425a642 indexed-append-guards.js:18:5
+$13b3d23c indexed-append-guards.js:18:5
Registers: 6
Blocks: 1
Constants:
@@ -138,12 +138,12 @@ $e425a642 indexed-append-guards.js:18:5
block0:
[ 0] Enter
- [ 8] GetGlobal value_feedback:0, dst:reg5, `object`
- [ 18] PutByValue keyed_feedback:0, base:reg5, property:Int32(1), src:Int32(2), kind:Normal
- [ 38] End value:Undefined
+ [ 1] GetGlobal value_feedback:0, dst:reg5, `object`
+ [ a] PutByValue keyed_feedback:0, base:reg5, property:Int32(1), src:Int32(2), kind:Normal
+ [ 1b] End value:Undefined
-$f99f4d22 indexed-append-guards.js:26:5
+$c985f73e indexed-append-guards.js:26:5
Registers: 7
Blocks: 1
Constants:
@@ -152,8 +152,8 @@ $f99f4d22 indexed-append-guards.js:26:5
block0:
[ 0] Enter
- [ 8] GetGlobal value_feedback:0, dst:reg5, `array`
- [ 18] GetGlobal value_feedback:1, dst:reg6, `array`
- [ 28] GetLength value_feedback:2, keyed_feedback:0, dst:reg6, base:reg6
- [ 40] PutByValue keyed_feedback:1, base:reg5, property:reg6, src:Int32(3), kind:Normal
- [ 60] End value:Undefined
+ [ 1] GetGlobal value_feedback:0, dst:reg5, `array`
+ [ a] GetGlobal value_feedback:1, dst:reg6, `array`
+ [ 13] GetLength value_feedback:2, keyed_feedback:0, dst:reg6, base:reg6
+ [ 20] PutByValue keyed_feedback:1, base:reg5, property:reg6, src:Int32(3), kind:Normal
+ [ 31] End value:Undefined
diff --git a/Tests/LibJS/Bytecode/expected/int32-binary-specializations.txt b/Tests/LibJS/Bytecode/expected/int32-binary-specializations.txt
index f8b83734c29..d3bf61e4e08 100644
--- a/Tests/LibJS/Bytecode/expected/int32-binary-specializations.txt
+++ b/Tests/LibJS/Bytecode/expected/int32-binary-specializations.txt
@@ -1,4 +1,4 @@
-$e8866b38 int32-binary-specializations.js:20:1
+$3b769b59 int32-binary-specializations.js:20:1
Registers: 7
Blocks: 1
Constants:
@@ -7,34 +7,33 @@ $e8866b38 int32-binary-specializations.js:20:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `int32_binary_specializations`
- [ 28] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(8)]
- [ 50] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `int32_binary_specializations`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(8)]
+ [ 26] End value:reg5
-int32_binary_specializations$61f68510 int32-binary-specializations.js:2:5
+int32_binary_specializations$2122cd50 int32-binary-specializations.js:2:5
Registers: 20
Blocks: 1
Constants:
- [0] = Int32(2)
- [1] = Double(2.5)
+ [0] = Double(2.5)
block0:
[ 0] Enter
- [ 8] AddLhsInt32 arith_feedback:0, dst:reg5, lhs:2, rhs:arg0
- [ 18] AddRhsInt32 arith_feedback:1, dst:reg6, lhs:arg0, rhs:2
- [ 28] SubRhsInt32 arith_feedback:2, dst:reg7, lhs:arg0, rhs:2
- [ 38] MulRhsInt32 arith_feedback:3, dst:reg8, lhs:arg0, rhs:2
- [ 48] ExpRhsInt32 arith_feedback:4, dst:reg9, lhs:arg0, rhs:2
- [ 58] DivRhsInt32 arith_feedback:5, dst:reg10, lhs:arg0, rhs:2
- [ 68] BitwiseXorRhsInt32 arith_feedback:6, dst:reg11, lhs:arg0, rhs:2
- [ 78] BitwiseAndRhsInt32 arith_feedback:7, dst:reg12, lhs:arg0, rhs:2
- [ 88] BitwiseOrRhsInt32 arith_feedback:8, dst:reg13, lhs:arg0, rhs:2
- [ 98] LeftShiftRhsInt32 arith_feedback:9, dst:reg14, lhs:arg0, rhs:2
- [ a8] RightShiftRhsInt32 arith_feedback:10, dst:reg15, lhs:arg0, rhs:2
- [ b8] UnsignedRightShiftRhsInt32 arith_feedback:11, dst:reg16, lhs:arg0, rhs:2
- [ c8] ModRhsInt32 arith_feedback:12, dst:reg17, lhs:arg0, rhs:2
- [ d8] Add arith_feedback:13, dst:reg18, lhs:arg0, rhs:Double(2.5)
- [ e8] NewArray dst:reg19, elements:[reg5, reg6, reg7, reg8, reg9, reg10, reg11, reg12, reg13, reg14, reg15, reg16, reg17, reg18]
- [ 130] Return value:reg19
+ [ 1] AddLhsInt32 arith_feedback:0, dst:reg5, lhs:2, rhs:arg0
+ [ c] AddRhsInt32 arith_feedback:1, dst:reg6, lhs:arg0, rhs:2
+ [ 17] SubRhsInt32 arith_feedback:2, dst:reg7, lhs:arg0, rhs:2
+ [ 22] MulRhsInt32 arith_feedback:3, dst:reg8, lhs:arg0, rhs:2
+ [ 2d] ExpRhsInt32 arith_feedback:4, dst:reg9, lhs:arg0, rhs:2
+ [ 38] DivRhsInt32 arith_feedback:5, dst:reg10, lhs:arg0, rhs:2
+ [ 43] BitwiseXorRhsInt32 arith_feedback:6, dst:reg11, lhs:arg0, rhs:2
+ [ 4e] BitwiseAndRhsInt32 arith_feedback:7, dst:reg12, lhs:arg0, rhs:2
+ [ 59] BitwiseOrRhsInt32 arith_feedback:8, dst:reg13, lhs:arg0, rhs:2
+ [ 64] LeftShiftRhsInt32 arith_feedback:9, dst:reg14, lhs:arg0, rhs:2
+ [ 6f] RightShiftRhsInt32 arith_feedback:10, dst:reg15, lhs:arg0, rhs:2
+ [ 7a] UnsignedRightShiftRhsInt32 arith_feedback:11, dst:reg16, lhs:arg0, rhs:2
+ [ 85] ModRhsInt32 arith_feedback:12, dst:reg17, lhs:arg0, rhs:2
+ [ 90] Add arith_feedback:13, dst:reg18, lhs:arg0, rhs:Double(2.5)
+ [ 99] NewArray dst:reg19, elements:[reg5, reg6, reg7, reg8, reg9, reg10, reg11, reg12, reg13, reg14, reg15, reg16, reg17, reg18]
+ [ c0] Return value:reg19
diff --git a/Tests/LibJS/Bytecode/expected/int32-comparison-specializations.txt b/Tests/LibJS/Bytecode/expected/int32-comparison-specializations.txt
index a0e2cecfdd9..90ac93455eb 100644
--- a/Tests/LibJS/Bytecode/expected/int32-comparison-specializations.txt
+++ b/Tests/LibJS/Bytecode/expected/int32-comparison-specializations.txt
@@ -1,4 +1,4 @@
-$6bd4be97 int32-comparison-specializations.js:35:1
+$c0fdb5de int32-comparison-specializations.js:35:1
Registers: 7
Blocks: 1
Constants:
@@ -7,98 +7,88 @@ $6bd4be97 int32-comparison-specializations.js:35:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `comparison_results`
- [ 28] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(1)]
- [ 50] GetGlobal value_feedback:2, dst:reg6, `comparison_jumps`
- [ 60] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(1)]
- [ 88] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `comparison_results`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(1)]
+ [ 26] GetGlobal value_feedback:2, dst:reg6, `comparison_jumps`
+ [ 2f] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(1)]
+ [ 46] End value:reg5
-comparison_results$4f7ca3ae int32-comparison-specializations.js:2:5
+comparison_results$b0cbb309 int32-comparison-specializations.js:2:5
Registers: 14
Blocks: 1
- Constants:
- [0] = Int32(2)
block0:
[ 0] Enter
- [ 8] LessThanRhsInt32 arith_feedback:0, dst:reg5, lhs:arg0, rhs:2
- [ 18] LessThanEqualsRhsInt32 arith_feedback:1, dst:reg6, lhs:arg0, rhs:2
- [ 28] GreaterThanRhsInt32 arith_feedback:2, dst:reg7, lhs:arg0, rhs:2
- [ 38] GreaterThanEqualsRhsInt32 arith_feedback:3, dst:reg8, lhs:arg0, rhs:2
- [ 48] StrictlyEqualsRhsInt32 arith_feedback:4, dst:reg9, lhs:arg0, rhs:2
- [ 58] StrictlyInequalsRhsInt32 arith_feedback:5, dst:reg10, lhs:arg0, rhs:2
- [ 68] LooselyEqualsRhsInt32 arith_feedback:6, dst:reg11, lhs:arg0, rhs:2
- [ 78] LooselyInequalsRhsInt32 arith_feedback:7, dst:reg12, lhs:arg0, rhs:2
- [ 88] NewArray dst:reg13, elements:[reg5, reg6, reg7, reg8, reg9, reg10, reg11, reg12]
- [ b8] Return value:reg13
-
-
-comparison_jumps$cd6069df int32-comparison-specializations.js:15:9
+ [ 1] LessThanRhsInt32 arith_feedback:0, dst:reg5, lhs:arg0, rhs:2
+ [ c] LessThanEqualsRhsInt32 arith_feedback:1, dst:reg6, lhs:arg0, rhs:2
+ [ 17] GreaterThanRhsInt32 arith_feedback:2, dst:reg7, lhs:arg0, rhs:2
+ [ 22] GreaterThanEqualsRhsInt32 arith_feedback:3, dst:reg8, lhs:arg0, rhs:2
+ [ 2d] StrictlyEqualsRhsInt32 arith_feedback:4, dst:reg9, lhs:arg0, rhs:2
+ [ 38] StrictlyInequalsRhsInt32 arith_feedback:5, dst:reg10, lhs:arg0, rhs:2
+ [ 43] LooselyEqualsRhsInt32 arith_feedback:6, dst:reg11, lhs:arg0, rhs:2
+ [ 4e] LooselyInequalsRhsInt32 arith_feedback:7, dst:reg12, lhs:arg0, rhs:2
+ [ 59] NewArray dst:reg13, elements:[reg5, reg6, reg7, reg8, reg9, reg10, reg11, reg12]
+ [ 74] Return value:reg13
+
+
+comparison_jumps$762776ad int32-comparison-specializations.js:15:9
Registers: 6
Blocks: 17
Locals: result~0
Constants:
[0] = Int32(0)
- [1] = Int32(2)
- [2] = Int32(1)
- [3] = Int32(4)
- [4] = Int32(8)
- [5] = Int32(16)
- [6] = Int32(32)
- [7] = Int32(64)
- [8] = Int32(128)
block0:
[ 0] Enter
- [ 8] Mov dst:result~0, src:Int32(0)
- [ 18] JumpLessThanRhsInt32 arith_feedback:0, lhs:arg0, rhs:2, true_target:block1, false_target:block2
+ [ 1] Mov dst:result~0, src:Int32(0)
+ [ 6] JumpLessThanRhsInt32 arith_feedback:0, lhs:arg0, rhs:2, true_target:block1, false_target:block2
block1:
- [ 30] AddRhsInt32 arith_feedback:1, dst:result~0, lhs:result~0, rhs:1
+ [ 17] AddRhsInt32 arith_feedback:1, dst:result~0, lhs:result~0, rhs:1
block2:
- [ 40] JumpLessThanEqualsRhsInt32 arith_feedback:2, lhs:arg0, rhs:2, true_target:block3, false_target:block4
+ [ 22] JumpLessThanEqualsRhsInt32 arith_feedback:2, lhs:arg0, rhs:2, true_target:block3, false_target:block4
block3:
- [ 58] AddRhsInt32 arith_feedback:3, dst:result~0, lhs:result~0, rhs:2
+ [ 33] AddRhsInt32 arith_feedback:3, dst:result~0, lhs:result~0, rhs:2
block4:
- [ 68] JumpGreaterThanRhsInt32 arith_feedback:4, lhs:arg0, rhs:2, true_target:block5, false_target:block6
+ [ 3e] JumpGreaterThanRhsInt32 arith_feedback:4, lhs:arg0, rhs:2, true_target:block5, false_target:block6
block5:
- [ 80] AddRhsInt32 arith_feedback:5, dst:result~0, lhs:result~0, rhs:4
+ [ 4f] AddRhsInt32 arith_feedback:5, dst:result~0, lhs:result~0, rhs:4
block6:
- [ 90] JumpGreaterThanEqualsRhsInt32 arith_feedback:6, lhs:arg0, rhs:2, true_target:block7, false_target:block8
+ [ 5a] JumpGreaterThanEqualsRhsInt32 arith_feedback:6, lhs:arg0, rhs:2, true_target:block7, false_target:block8
block7:
- [ a8] AddRhsInt32 arith_feedback:7, dst:result~0, lhs:result~0, rhs:8
+ [ 6b] AddRhsInt32 arith_feedback:7, dst:result~0, lhs:result~0, rhs:8
block8:
- [ b8] JumpStrictlyEqualsRhsInt32 arith_feedback:8, lhs:arg0, rhs:2, true_target:block9, false_target:block10
+ [ 76] JumpStrictlyEqualsRhsInt32 arith_feedback:8, lhs:arg0, rhs:2, true_target:block9, false_target:block10
block9:
- [ d0] AddRhsInt32 arith_feedback:9, dst:result~0, lhs:result~0, rhs:16
+ [ 87] AddRhsInt32 arith_feedback:9, dst:result~0, lhs:result~0, rhs:16
block10:
- [ e0] JumpStrictlyInequalsRhsInt32 arith_feedback:10, lhs:arg0, rhs:2, true_target:block11, false_target:block12
+ [ 92] JumpStrictlyInequalsRhsInt32 arith_feedback:10, lhs:arg0, rhs:2, true_target:block11, false_target:block12
block11:
- [ f8] AddRhsInt32 arith_feedback:11, dst:result~0, lhs:result~0, rhs:32
+ [ a3] AddRhsInt32 arith_feedback:11, dst:result~0, lhs:result~0, rhs:32
block12:
- [ 108] JumpLooselyEqualsRhsInt32 arith_feedback:12, lhs:arg0, rhs:2, true_target:block13, false_target:block14
+ [ ae] JumpLooselyEqualsRhsInt32 arith_feedback:12, lhs:arg0, rhs:2, true_target:block13, false_target:block14
block13:
- [ 120] AddRhsInt32 arith_feedback:13, dst:result~0, lhs:result~0, rhs:64
+ [ bf] AddRhsInt32 arith_feedback:13, dst:result~0, lhs:result~0, rhs:64
block14:
- [ 130] JumpLooselyInequalsRhsInt32 arith_feedback:14, lhs:arg0, rhs:2, true_target:block15, false_target:block16
+ [ ca] JumpLooselyInequalsRhsInt32 arith_feedback:14, lhs:arg0, rhs:2, true_target:block15, false_target:block16
block15:
- [ 148] AddRhsInt32 arith_feedback:15, dst:result~0, lhs:result~0, rhs:128
+ [ db] AddRhsInt32 arith_feedback:15, dst:result~0, lhs:result~0, rhs:128
block16:
- [ 158] Return value:result~0
+ [ e6] Return value:result~0
diff --git a/Tests/LibJS/Bytecode/expected/invalid-lhs-assignment-no-dead-code.txt b/Tests/LibJS/Bytecode/expected/invalid-lhs-assignment-no-dead-code.txt
index f3c11a8d5fa..10d74ff5a6f 100644
--- a/Tests/LibJS/Bytecode/expected/invalid-lhs-assignment-no-dead-code.txt
+++ b/Tests/LibJS/Bytecode/expected/invalid-lhs-assignment-no-dead-code.txt
@@ -1,4 +1,4 @@
-$bb83f734 invalid-lhs-assignment-no-dead-code.js:8:1
+$a4480b21 invalid-lhs-assignment-no-dead-code.js:8:1
Registers: 8
Blocks: 4
Constants:
@@ -6,42 +6,41 @@ $bb83f734 invalid-lhs-assignment-no-dead-code.js:8:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] Mov dst:reg5, src:Undefined
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] Mov dst:reg5, src:Undefined
block1:
- [ 28] GetGlobal value_feedback:0, dst:reg6, `f`
- [ 38] NewFunction dst:reg7, shared_function_data_index:0
- [ 50] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
- [ 78] Jump target:block3
+ [ b] GetGlobal value_feedback:0, dst:reg6, `f`
+ [ 14] NewFunction dst:reg7, shared_function_data_index:0
+ [ 1f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
+ [ 36] Jump target:block3
block2:
- [ 80] Catch value_feedback:2, dst:reg6
- [ 88] Mov dst:reg5, src:Undefined
- [ 98] Jump target:block3
+ [ 3b] Catch value_feedback:2, dst:reg6
+ [ 40] Mov dst:reg5, src:Undefined
+ [ 45] Jump target:block3
block3:
- [ a0] End value:reg5
+ [ 4a] End value:reg5
Exception handlers:
- [ 28 .. 80] => handler block2
+ [ b .. 3b] => handler block2
-f$cb5318f8 invalid-lhs-assignment-no-dead-code.js:5:6
+f$1d26e586 invalid-lhs-assignment-no-dead-code.js:5:6
Registers: 6
Blocks: 1
Constants:
[0] = Undefined
- [1] = String("foo")
block0:
[ 0] Enter
- [ 8] Call value_feedback:0, call_feedback:0, dst:reg5, callee:arg0, this_value:Undefined
- [ 28] NewReferenceError dst:reg5, Invalid left-hand side in assignment
- [ 38] Throw src:reg5
+ [ 1] Call value_feedback:0, call_feedback:0, dst:reg5, callee:arg0, this_value:Undefined
+ [ 16] NewReferenceError dst:reg5, Invalid left-hand side in assignment
+ [ 1b] Throw src:reg5
-$4e59e625
+$0ae4f8d1
Registers: 5
Blocks: 1
Constants:
@@ -49,4 +48,4 @@ $4e59e625
block0:
[ 0] Enter
- [ 8] End value:Undefined
+ [ 1] End value:Undefined
diff --git a/Tests/LibJS/Bytecode/expected/invalid-lhs-forin-no-dead-code.txt b/Tests/LibJS/Bytecode/expected/invalid-lhs-forin-no-dead-code.txt
index 8d9a0a4b031..b3fb078f24e 100644
--- a/Tests/LibJS/Bytecode/expected/invalid-lhs-forin-no-dead-code.txt
+++ b/Tests/LibJS/Bytecode/expected/invalid-lhs-forin-no-dead-code.txt
@@ -1,4 +1,4 @@
-$87dfdf7d invalid-lhs-forin-no-dead-code.js:6:6
+$310f5ab9 invalid-lhs-forin-no-dead-code.js:6:6
Registers: 13
Blocks: 4
Constants:
@@ -7,22 +7,22 @@ $87dfdf7d invalid-lhs-forin-no-dead-code.js:6:6
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] NewArray dst:reg6
- [ 28] Mov dst:reg5, src:Undefined
- [ 38] JumpNullish condition:reg6, true_target:block3, false_target:block1
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] NewArray dst:reg6
+ [ 11] Mov dst:reg5, src:Undefined
+ [ 16] JumpNullish condition:reg6, true_target:block3, false_target:block1
block1:
- [ 48] GetObjectPropertyIterator dst_keys:reg8, dst_receiver:reg7, object:reg6
- [ 60] Mov dst:reg9, src:Int32(0)
- [ 70] ObjectPropertyIteratorNext dst_value:reg10, dst_done:reg11, receiver:reg7, keys:reg8, cursor:reg9
- [ 88] JumpTrue condition:reg11, target:block3
+ [ 21] GetObjectPropertyIterator dst_keys:reg8, dst_receiver:reg7, object:reg6
+ [ 2c] Mov dst:reg9, src:Int32(0)
+ [ 31] ObjectPropertyIteratorNext dst_value:reg10, dst_done:reg11, receiver:reg7, keys:reg8, cursor:reg9
+ [ 3c] JumpTrue condition:reg11, target:block3
block2:
- [ 98] GetGlobal value_feedback:0, dst:reg12, `f`
- [ a8] Call value_feedback:1, call_feedback:0, dst:reg12, callee:reg12, this_value:Undefined
- [ c8] NewReferenceError dst:reg12, Invalid left-hand side in assignment
- [ d8] Throw src:reg12
+ [ 43] GetGlobal value_feedback:0, dst:reg12, `f`
+ [ 4c] Call value_feedback:1, call_feedback:0, dst:reg12, callee:reg12, this_value:Undefined
+ [ 61] NewReferenceError dst:reg12, Invalid left-hand side in assignment
+ [ 66] Throw src:reg12
block3:
- [ e0] End value:reg5
+ [ 69] End value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/lexical-env-teardown.txt b/Tests/LibJS/Bytecode/expected/lexical-env-teardown.txt
index 8bba4e50bcd..508a94cbccd 100644
--- a/Tests/LibJS/Bytecode/expected/lexical-env-teardown.txt
+++ b/Tests/LibJS/Bytecode/expected/lexical-env-teardown.txt
@@ -1,4 +1,4 @@
-$63498670 lexical-env-teardown.js:13:1
+$bb13b34b lexical-env-teardown.js:13:1
Registers: 9
Blocks: 1
Constants:
@@ -6,48 +6,48 @@ $63498670 lexical-env-teardown.js:13:1
block0:
[ 0] Enter
- [ 8] GetLexicalEnvironment dst:reg4
- [ 10] Mov dst:reg5, src:Undefined
- [ 20] GetGlobal value_feedback:0, dst:reg6, `console`
- [ 30] GetById value_feedback:1, dst:reg7, base:reg6, `log`
- [ 48] GetGlobal value_feedback:2, dst:reg8, `withTeardown`
- [ 58] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined
- [ 78] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ a0] GetGlobal value_feedback:5, dst:reg6, `console`
- [ b0] GetById value_feedback:6, dst:reg7, base:reg6, `log`
- [ c8] GetGlobal value_feedback:7, dst:reg8, `blockTeardown`
- [ d8] Call value_feedback:8, call_feedback:2, dst:reg8, callee:reg8, this_value:Undefined
- [ f8] Call value_feedback:9, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 120] GetGlobal value_feedback:10, dst:reg6, `console`
- [ 130] GetById value_feedback:11, dst:reg7, base:reg6, `log`
- [ 148] GetGlobal value_feedback:12, dst:reg8, `forInTeardown`
- [ 158] Call value_feedback:13, call_feedback:4, dst:reg8, callee:reg8, this_value:Undefined
- [ 178] Call value_feedback:14, call_feedback:5, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 1a0] GetGlobal value_feedback:15, dst:reg6, `console`
- [ 1b0] GetById value_feedback:16, dst:reg7, base:reg6, `log`
- [ 1c8] GetGlobal value_feedback:17, dst:reg8, `forOfTeardown`
- [ 1d8] Call value_feedback:18, call_feedback:6, dst:reg8, callee:reg8, this_value:Undefined
- [ 1f8] Call value_feedback:19, call_feedback:7, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 220] GetGlobal value_feedback:20, dst:reg6, `console`
- [ 230] GetById value_feedback:21, dst:reg7, base:reg6, `log`
- [ 248] GetGlobal value_feedback:22, dst:reg8, `catchTeardown`
- [ 258] Call value_feedback:23, call_feedback:8, dst:reg8, callee:reg8, this_value:Undefined
- [ 278] Call value_feedback:24, call_feedback:9, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 2a0] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
- [ 2b8] CreateVariable `myName`, is_immutable:true, is_global:false, is_strict:false
- [ 2c8] NewFunction dst:reg6, shared_function_data_index:0
- [ 2e0] InitializeLexicalBinding `myName`, src:reg6
- [ 2f8] SetLexicalEnvironment environment:reg4
- [ 300] SetGlobal `namedFn`, src:reg6
- [ 310] GetGlobal value_feedback:25, dst:reg6, `console`
- [ 320] GetById value_feedback:26, dst:reg7, base:reg6, `log`
- [ 338] GetGlobal value_feedback:27, dst:reg8, `namedFn`
- [ 348] Call value_feedback:28, call_feedback:10, dst:reg8, callee:reg8, this_value:Undefined
- [ 368] Call value_feedback:29, call_feedback:11, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 390] End value:reg5
-
-
-withTeardown$fdddfea9 lexical-env-teardown.js:7:9
+ [ 1] GetLexicalEnvironment dst:reg4
+ [ 4] Mov dst:reg5, src:Undefined
+ [ 9] GetGlobal value_feedback:0, dst:reg6, `console`
+ [ 12] GetById value_feedback:1, dst:reg7, base:reg6, `log`
+ [ 1f] GetGlobal value_feedback:2, dst:reg8, `withTeardown`
+ [ 28] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined
+ [ 3d] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 54] GetGlobal value_feedback:5, dst:reg6, `console`
+ [ 5d] GetById value_feedback:6, dst:reg7, base:reg6, `log`
+ [ 6a] GetGlobal value_feedback:7, dst:reg8, `blockTeardown`
+ [ 73] Call value_feedback:8, call_feedback:2, dst:reg8, callee:reg8, this_value:Undefined
+ [ 88] Call value_feedback:9, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 9f] GetGlobal value_feedback:10, dst:reg6, `console`
+ [ a8] GetById value_feedback:11, dst:reg7, base:reg6, `log`
+ [ b5] GetGlobal value_feedback:12, dst:reg8, `forInTeardown`
+ [ be] Call value_feedback:13, call_feedback:4, dst:reg8, callee:reg8, this_value:Undefined
+ [ d3] Call value_feedback:14, call_feedback:5, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ ea] GetGlobal value_feedback:15, dst:reg6, `console`
+ [ f3] GetById value_feedback:16, dst:reg7, base:reg6, `log`
+ [ 100] GetGlobal value_feedback:17, dst:reg8, `forOfTeardown`
+ [ 109] Call value_feedback:18, call_feedback:6, dst:reg8, callee:reg8, this_value:Undefined
+ [ 11e] Call value_feedback:19, call_feedback:7, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 135] GetGlobal value_feedback:20, dst:reg6, `console`
+ [ 13e] GetById value_feedback:21, dst:reg7, base:reg6, `log`
+ [ 14b] GetGlobal value_feedback:22, dst:reg8, `catchTeardown`
+ [ 154] Call value_feedback:23, call_feedback:8, dst:reg8, callee:reg8, this_value:Undefined
+ [ 169] Call value_feedback:24, call_feedback:9, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 180] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
+ [ 18e] CreateVariable `myName`, is_immutable:true, is_global:false, is_strict:false
+ [ 198] NewFunction dst:reg6, shared_function_data_index:0
+ [ 1a3] InitializeLexicalBinding `myName`, src:reg6
+ [ 1b0] SetLexicalEnvironment environment:reg4
+ [ 1b3] SetGlobal `namedFn`, src:reg6
+ [ 1ba] GetGlobal value_feedback:25, dst:reg6, `console`
+ [ 1c3] GetById value_feedback:26, dst:reg7, base:reg6, `log`
+ [ 1d0] GetGlobal value_feedback:27, dst:reg8, `namedFn`
+ [ 1d9] Call value_feedback:28, call_feedback:10, dst:reg8, callee:reg8, this_value:Undefined
+ [ 1ee] Call value_feedback:29, call_feedback:11, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 205] End value:reg5
+
+
+withTeardown$c6953928 lexical-env-teardown.js:7:9
Registers: 9
Blocks: 1
Locals: inner~0
@@ -57,22 +57,22 @@ withTeardown$fdddfea9 lexical-env-teardown.js:7:9
block0:
[ 0] Enter
- [ 8] CreateVariable `outer`, is_immutable:false, is_global:false, is_strict:false
- [ 18] GetLexicalEnvironment dst:reg4
- [ 20] InitializeLexicalBinding `outer`, src:Int32(1)
- [ 38] NewObject dst:reg5
- [ 48] InitObjectLiteralProperty object:reg5, `x`, src:Int32(10), shape_cache_index:0, property_slot:0
- [ 60] CacheObjectShape object:reg5
- [ 70] EnterObjectEnvironment dst:reg6, object:reg5
- [ 80] DynamicGetBinding value_feedback:0, dst:reg7, `x`
- [ 90] DynamicGetBinding value_feedback:1, dst:reg8, `outer`
- [ a0] Add arith_feedback:0, dst:inner~0, lhs:reg7, rhs:reg8
- [ b0] SetLexicalEnvironment environment:reg4
- [ b8] GetBinding value_feedback:2, dst:reg5, `outer`
- [ d0] Return value:reg5
-
-
-blockTeardown$14c2496c lexical-env-teardown.js:17:9
+ [ 1] CreateVariable `outer`, is_immutable:false, is_global:false, is_strict:false
+ [ b] GetLexicalEnvironment dst:reg4
+ [ e] InitializeLexicalBinding `outer`, src:Int32(1)
+ [ 1b] NewObject dst:reg5
+ [ 20] InitObjectLiteralProperty object:reg5, `x`, src:Int32(10), shape_cache_index:0, property_slot:0
+ [ 2f] CacheObjectShape object:reg5
+ [ 34] EnterObjectEnvironment dst:reg6, object:reg5
+ [ 39] DynamicGetBinding value_feedback:0, dst:reg7, `x`
+ [ 42] DynamicGetBinding value_feedback:1, dst:reg8, `outer`
+ [ 4b] Add arith_feedback:0, dst:inner~0, lhs:reg7, rhs:reg8
+ [ 54] SetLexicalEnvironment environment:reg4
+ [ 57] GetBinding value_feedback:2, dst:reg5, `outer`
+ [ 66] Return value:reg5
+
+
+blockTeardown$f043e1b2 lexical-env-teardown.js:17:9
Registers: 5
Blocks: 1
Locals: outer~0, inner~1
@@ -82,12 +82,12 @@ blockTeardown$14c2496c lexical-env-teardown.js:17:9
block0:
[ 0] Enter
- [ 8] Mov dst:outer~0, src:Int32(2)
- [ 18] Mov dst:inner~1, src:Int32(3)
- [ 28] Return value:outer~0
+ [ 1] Mov dst:outer~0, src:Int32(2)
+ [ 6] Mov dst:inner~1, src:Int32(3)
+ [ b] Return value:outer~0
-forInTeardown$67161a97 lexical-env-teardown.js:28:9
+forInTeardown$5a818456 lexical-env-teardown.js:28:9
Registers: 11
Blocks: 5
Locals: outer~0, k~1
@@ -100,69 +100,67 @@ forInTeardown$67161a97 lexical-env-teardown.js:28:9
block0:
[ 0] Enter
- [ 8] Mov dst:outer~0, src:Int32(4)
- [ 18] Mov dst:k~1, src:<Empty>
- [ 28] NewObject dst:reg6
- [ 38] InitObjectLiteralProperty object:reg6, `a`, src:Int32(1), shape_cache_index:0, property_slot:0
- [ 50] InitObjectLiteralProperty object:reg6, `b`, src:Int32(2), shape_cache_index:0, property_slot:1
- [ 68] CacheObjectShape object:reg6
- [ 78] Mov dst:reg5, src:reg6
- [ 88] JumpNullish condition:reg5, true_target:block4, false_target:block1
+ [ 1] Mov dst:outer~0, src:Int32(4)
+ [ 6] Mov dst:k~1, src:<Empty>
+ [ b] NewObject dst:reg6
+ [ 10] InitObjectLiteralProperty object:reg6, `a`, src:Int32(1), shape_cache_index:0, property_slot:0
+ [ 1f] InitObjectLiteralProperty object:reg6, `b`, src:Int32(2), shape_cache_index:0, property_slot:1
+ [ 2e] CacheObjectShape object:reg6
+ [ 33] Mov dst:reg5, src:reg6
+ [ 38] JumpNullish condition:reg5, true_target:block4, false_target:block1
block1:
- [ 98] GetObjectPropertyIterator dst_keys:reg7, dst_receiver:reg6, object:reg5
- [ b0] Mov dst:reg8, src:Int32(0)
+ [ 43] GetObjectPropertyIterator dst_keys:reg7, dst_receiver:reg6, object:reg5
+ [ 4e] Mov dst:reg8, src:Int32(0)
block2:
- [ c0] ObjectPropertyIteratorNext dst_value:reg9, dst_done:reg10, receiver:reg6, keys:reg7, cursor:reg8
- [ d8] JumpTrue condition:reg10, target:block4
+ [ 53] ObjectPropertyIteratorNext dst_value:reg9, dst_done:reg10, receiver:reg6, keys:reg7, cursor:reg8
+ [ 5e] JumpTrue condition:reg10, target:block4
block3:
- [ e8] Mov dst:k~1, src:reg9
- [ f8] JumpLoop target:block2
+ [ 65] Mov dst:k~1, src:reg9
+ [ 6a] JumpLoop target:block2
block4:
- [ 100] Return value:outer~0
+ [ 6f] Return value:outer~0
-forOfTeardown$26f278e0 lexical-env-teardown.js:38:9
+forOfTeardown$d2e5e52c lexical-env-teardown.js:38:9
Registers: 12
Blocks: 5
Locals: outer~0, v~1
Constants:
[0] = Int32(5)
[1] = <Empty>
- [2] = Int32(10)
- [3] = Int32(20)
block0:
[ 0] Enter
- [ 8] Mov dst:outer~0, src:Int32(5)
- [ 18] Mov dst:v~1, src:<Empty>
- [ 28] NewPrimitiveArray dst:reg5, elements:[10, 20]
- [ 48] GetIterator dst_iterator_object:reg6, dst_iterator_next:reg7, dst_iterator_done:reg8, iterable:reg5, fast_array_mode_allowed:true
+ [ 1] Mov dst:outer~0, src:Int32(5)
+ [ 6] Mov dst:v~1, src:<Empty>
+ [ b] NewPrimitiveArray dst:reg5, elements:[10, 20]
+ [ 26] GetIterator dst_iterator_object:reg6, dst_iterator_next:reg7, dst_iterator_done:reg8, iterable:reg5, fast_array_mode_allowed:true
block1:
- [ 68] IteratorNextUnpack dst_value:reg9, dst_done:reg10, iterator_object:reg6, iterator_next:reg7, iterator_done:reg8
- [ 80] JumpTrue condition:reg10, target:block4
+ [ 36] IteratorNextUnpack dst_value:reg9, dst_done:reg10, iterator_object:reg6, iterator_next:reg7, iterator_done:reg8
+ [ 41] JumpTrue condition:reg10, target:block4
block2:
- [ 90] Mov dst:v~1, src:reg9
- [ a0] JumpLoop target:block1
+ [ 48] Mov dst:v~1, src:reg9
+ [ 4d] JumpLoop target:block1
block3:
- [ a8] Catch value_feedback:0, dst:reg11
- [ b0] IteratorClose iterator_object:reg6, iterator_next:reg7, iterator_done:reg8, completion_value:reg11
- [ d0] Throw src:reg11
+ [ 52] Catch value_feedback:0, dst:reg11
+ [ 57] IteratorClose iterator_object:reg6, iterator_next:reg7, iterator_done:reg8, completion_value:reg11
+ [ 66] Throw src:reg11
block4:
- [ d8] Return value:outer~0
+ [ 69] Return value:outer~0
Exception handlers:
- [ 90 .. a8] => handler block3
+ [ 48 .. 52] => handler block3
-catchTeardown$082ed7f1 lexical-env-teardown.js:48:9
+catchTeardown$4ef2e03f lexical-env-teardown.js:48:9
Registers: 6
Blocks: 4
Locals: outer~0, e~1
@@ -173,34 +171,34 @@ catchTeardown$082ed7f1 lexical-env-teardown.js:48:9
block0:
[ 0] Enter
- [ 8] Mov dst:outer~0, src:Int32(6)
+ [ 1] Mov dst:outer~0, src:Int32(6)
block1:
- [ 18] GetGlobal value_feedback:0, dst:reg5, `Error`
- [ 28] CallConstruct value_feedback:1, call_feedback:0, dst:reg5, callee:reg5, arguments:[String("test")]
- [ 50] Throw src:reg5
+ [ 6] GetGlobal value_feedback:0, dst:reg5, `Error`
+ [ f] CallConstruct value_feedback:1, call_feedback:0, dst:reg5, callee:reg5, arguments:[String("test")]
+ [ 24] Throw src:reg5
block2:
- [ 58] Catch value_feedback:2, dst:reg5
- [ 60] Mov dst:e~1, src:<Empty>
- [ 70] Mov dst:e~1, src:reg5
- [ 80] Jump target:block3
+ [ 27] Catch value_feedback:2, dst:reg5
+ [ 2c] Mov dst:e~1, src:<Empty>
+ [ 31] Mov dst:e~1, src:reg5
+ [ 36] Jump target:block3
block3:
- [ 88] Return value:outer~0
+ [ 3b] Return value:outer~0
Exception handlers:
- [ 18 .. 58] => handler block2
+ [ 6 .. 27] => handler block2
-myName$36b03aef lexical-env-teardown.js:60:5
+myName$5cd63026 lexical-env-teardown.js:60:5
Registers: 6
Blocks: 1
block0:
[ 0] Enter
- [ 8] TypeofBinding dst:reg5, `myName`
- [ 20] Return value:reg5
+ [ 1] TypeofBinding dst:reg5, `myName`
+ [ e] Return value:reg5
1
diff --git a/Tests/LibJS/Bytecode/expected/local-source-order.txt b/Tests/LibJS/Bytecode/expected/local-source-order.txt
index 6008536eb76..dfc68d9620f 100644
--- a/Tests/LibJS/Bytecode/expected/local-source-order.txt
+++ b/Tests/LibJS/Bytecode/expected/local-source-order.txt
@@ -1,4 +1,4 @@
-$c5390f08 local-source-order.js:12:1
+$09ca5fef local-source-order.js:12:1
Registers: 7
Blocks: 1
Constants:
@@ -6,13 +6,13 @@ $c5390f08 local-source-order.js:12:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `source_order_locals`
- [ 28] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 48] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `source_order_locals`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 24] End value:reg5
-source_order_locals$465fc127 local-source-order.js:6:9
+source_order_locals$c0924a12 local-source-order.js:6:9
Registers: 6
Blocks: 1
Locals: zebra~0, yak~1, aardvark~2
@@ -23,9 +23,9 @@ source_order_locals$465fc127 local-source-order.js:6:9
block0:
[ 0] Enter
- [ 8] Mov dst:zebra~0, src:Int32(1)
- [ 18] Mov dst:yak~1, src:Int32(2)
- [ 28] Mov dst:aardvark~2, src:Int32(3)
- [ 38] Add arith_feedback:0, dst:reg5, lhs:zebra~0, rhs:yak~1
- [ 48] Add arith_feedback:1, dst:reg5, lhs:reg5, rhs:aardvark~2
- [ 58] Return value:reg5
+ [ 1] Mov dst:zebra~0, src:Int32(1)
+ [ 6] Mov dst:yak~1, src:Int32(2)
+ [ b] Mov dst:aardvark~2, src:Int32(3)
+ [ 10] Add arith_feedback:0, dst:reg5, lhs:zebra~0, rhs:yak~1
+ [ 19] Add arith_feedback:1, dst:reg5, lhs:reg5, rhs:aardvark~2
+ [ 22] Return value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/local-variables.txt b/Tests/LibJS/Bytecode/expected/local-variables.txt
index a97fcf0ee28..126264130da 100644
--- a/Tests/LibJS/Bytecode/expected/local-variables.txt
+++ b/Tests/LibJS/Bytecode/expected/local-variables.txt
@@ -1,4 +1,4 @@
-$568ccc50 local-variables.js:20:1
+$4f5d5cb3 local-variables.js:20:1
Registers: 7
Blocks: 1
Constants:
@@ -6,17 +6,17 @@ $568ccc50 local-variables.js:20:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `simple_let`
- [ 28] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 48] GetGlobal value_feedback:2, dst:reg6, `simple_const`
- [ 58] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined
- [ 78] GetGlobal value_feedback:4, dst:reg6, `multiple_locals`
- [ 88] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg6, this_value:Undefined
- [ a8] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `simple_let`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 24] GetGlobal value_feedback:2, dst:reg6, `simple_const`
+ [ 2d] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined
+ [ 42] GetGlobal value_feedback:4, dst:reg6, `multiple_locals`
+ [ 4b] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg6, this_value:Undefined
+ [ 60] End value:reg5
-simple_let$49601125 local-variables.js:5:9
+simple_let$801dacbc local-variables.js:5:9
Registers: 5
Blocks: 1
Locals: x~0
@@ -25,11 +25,11 @@ simple_let$49601125 local-variables.js:5:9
block0:
[ 0] Enter
- [ 8] Mov dst:x~0, src:Int32(1)
- [ 18] Return value:x~0
+ [ 1] Mov dst:x~0, src:Int32(1)
+ [ 6] Return value:x~0
-simple_const$bcfa8e68 local-variables.js:10:11
+simple_const$863cf2d1 local-variables.js:10:11
Registers: 5
Blocks: 1
Locals: y~0
@@ -38,11 +38,11 @@ simple_const$bcfa8e68 local-variables.js:10:11
block0:
[ 0] Enter
- [ 8] Mov dst:y~0, src:Int32(2)
- [ 18] Return value:y~0
+ [ 1] Mov dst:y~0, src:Int32(2)
+ [ 6] Return value:y~0
-multiple_locals$f526ee7a local-variables.js:15:9
+multiple_locals$d7d7f65d local-variables.js:15:9
Registers: 6
Blocks: 1
Locals: a~0, b~1
@@ -52,7 +52,7 @@ multiple_locals$f526ee7a local-variables.js:15:9
block0:
[ 0] Enter
- [ 8] Mov dst:a~0, src:Int32(1)
- [ 18] Mov dst:b~1, src:Int32(2)
- [ 28] Add arith_feedback:0, dst:reg5, lhs:a~0, rhs:b~1
- [ 38] Return value:reg5
+ [ 1] Mov dst:a~0, src:Int32(1)
+ [ 6] Mov dst:b~1, src:Int32(2)
+ [ b] Add arith_feedback:0, dst:reg5, lhs:a~0, rhs:b~1
+ [ 14] Return value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/logical-assignment-register-order.txt b/Tests/LibJS/Bytecode/expected/logical-assignment-register-order.txt
index d466c1830d2..acf7f8819a5 100644
--- a/Tests/LibJS/Bytecode/expected/logical-assignment-register-order.txt
+++ b/Tests/LibJS/Bytecode/expected/logical-assignment-register-order.txt
@@ -1,4 +1,4 @@
-$973653fe logical-assignment-register-order.js:2:1
+$3e3317d3 logical-assignment-register-order.js:2:1
Registers: 9
Blocks: 3
Constants:
@@ -6,15 +6,15 @@ $973653fe logical-assignment-register-order.js:2:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `value`
- [ 28] Mov dst:reg7, src:reg6
- [ 38] JumpFalse condition:reg7, target:block2
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `value`
+ [ f] Mov dst:reg7, src:reg6
+ [ 14] JumpFalse condition:reg7, target:block2
block1:
- [ 48] NewFunction dst:reg7, shared_function_data_index:0 (value)
- [ 60] SetGlobal `value`, src:reg7
+ [ 1b] NewFunction dst:reg7, shared_function_data_index:0 (value)
+ [ 26] SetGlobal `value`, src:reg7
block2:
- [ 70] Mov dst:reg5, src:reg7
- [ 80] End value:reg5
+ [ 2d] Mov dst:reg5, src:reg7
+ [ 32] End value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/logical-constant-folding.txt b/Tests/LibJS/Bytecode/expected/logical-constant-folding.txt
index 13c111648d5..90a95f1d65e 100644
--- a/Tests/LibJS/Bytecode/expected/logical-constant-folding.txt
+++ b/Tests/LibJS/Bytecode/expected/logical-constant-folding.txt
@@ -1,4 +1,4 @@
-$de5c50b6 logical-constant-folding.js:1:5
+$8156046c logical-constant-folding.js:1:5
Registers: 7
Blocks: 15
Constants:
@@ -11,61 +11,61 @@ $de5c50b6 logical-constant-folding.js:1:5
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] Mov dst:reg6, src:Null
- [ 28] JumpNullish condition:reg6, true_target:block1, false_target:block2
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] Mov dst:reg6, src:Null
+ [ b] JumpNullish condition:reg6, true_target:block1, false_target:block2
block1:
- [ 38] Mov dst:reg6, src:Int32(42)
+ [ 16] Mov dst:reg6, src:Int32(42)
block2:
- [ 48] SetGlobal `a`, src:reg6
- [ 58] Mov dst:reg6, src:Undefined
- [ 68] JumpNullish condition:reg6, true_target:block3, false_target:block4
+ [ 1b] SetGlobal `a`, src:reg6
+ [ 22] Mov dst:reg6, src:Undefined
+ [ 27] JumpNullish condition:reg6, true_target:block3, false_target:block4
block3:
- [ 78] Mov dst:reg6, src:Int32(42)
+ [ 32] Mov dst:reg6, src:Int32(42)
block4:
- [ 88] SetGlobal `b`, src:reg6
- [ 98] Mov dst:reg6, src:Int32(0)
- [ a8] JumpNullish condition:reg6, true_target:block5, false_target:block6
+ [ 37] SetGlobal `b`, src:reg6
+ [ 3e] Mov dst:reg6, src:Int32(0)
+ [ 43] JumpNullish condition:reg6, true_target:block5, false_target:block6
block5:
- [ b8] Mov dst:reg6, src:Int32(42)
+ [ 4e] Mov dst:reg6, src:Int32(42)
block6:
- [ c8] SetGlobal `c`, src:reg6
- [ d8] Mov dst:reg6, src:Bool(false)
- [ e8] JumpTrue condition:reg6, target:block8
+ [ 53] SetGlobal `c`, src:reg6
+ [ 5a] Mov dst:reg6, src:Bool(false)
+ [ 5f] JumpTrue condition:reg6, target:block8
block7:
- [ f8] Mov dst:reg6, src:Int32(42)
+ [ 66] Mov dst:reg6, src:Int32(42)
block8:
- [ 108] SetGlobal `d`, src:reg6
- [ 118] Mov dst:reg6, src:Bool(true)
- [ 128] JumpTrue condition:reg6, target:block10
+ [ 6b] SetGlobal `d`, src:reg6
+ [ 72] Mov dst:reg6, src:Bool(true)
+ [ 77] JumpTrue condition:reg6, target:block10
block9:
- [ 138] Mov dst:reg6, src:Int32(42)
+ [ 7e] Mov dst:reg6, src:Int32(42)
block10:
- [ 148] SetGlobal `e`, src:reg6
- [ 158] Mov dst:reg6, src:Bool(true)
- [ 168] JumpFalse condition:reg6, target:block12
+ [ 83] SetGlobal `e`, src:reg6
+ [ 8a] Mov dst:reg6, src:Bool(true)
+ [ 8f] JumpFalse condition:reg6, target:block12
block11:
- [ 178] Mov dst:reg6, src:Int32(42)
+ [ 96] Mov dst:reg6, src:Int32(42)
block12:
- [ 188] SetGlobal `f`, src:reg6
- [ 198] Mov dst:reg6, src:Bool(false)
- [ 1a8] JumpFalse condition:reg6, target:block14
+ [ 9b] SetGlobal `f`, src:reg6
+ [ a2] Mov dst:reg6, src:Bool(false)
+ [ a7] JumpFalse condition:reg6, target:block14
block13:
- [ 1b8] Mov dst:reg6, src:Int32(42)
+ [ ae] Mov dst:reg6, src:Int32(42)
block14:
- [ 1c8] SetGlobal `g`, src:reg6
- [ 1d8] End value:reg5
+ [ b3] SetGlobal `g`, src:reg6
+ [ ba] End value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/logical-or-in-if-condition.txt b/Tests/LibJS/Bytecode/expected/logical-or-in-if-condition.txt
index 46bc3a59d2a..270252a3740 100644
--- a/Tests/LibJS/Bytecode/expected/logical-or-in-if-condition.txt
+++ b/Tests/LibJS/Bytecode/expected/logical-or-in-if-condition.txt
@@ -1,4 +1,4 @@
-$43d71680 logical-or-in-if-condition.js:12:1
+$a75eed01 logical-or-in-if-condition.js:12:1
Registers: 7
Blocks: 1
Constants:
@@ -7,13 +7,13 @@ $43d71680 logical-or-in-if-condition.js:12:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `blocked`
- [ 28] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Bool(false)]
- [ 50] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `blocked`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Bool(false)]
+ [ 26] End value:reg5
-blocked$36a96b15 logical-or-in-if-condition.js:6:14
+blocked$7bc5e5e6 logical-or-in-if-condition.js:6:14
Registers: 6
Blocks: 8
Constants:
@@ -23,23 +23,23 @@ block0:
[ 0] Enter
block1:
- [ 8] Mov dst:reg5, src:arg0
- [ 18] JumpTrue condition:reg5, target:block3
+ [ 1] Mov dst:reg5, src:arg0
+ [ 6] JumpTrue condition:reg5, target:block3
block2:
- [ 28] Mov dst:reg5, src:arg0
+ [ d] Mov dst:reg5, src:arg0
block3:
- [ 38] JumpFalse condition:reg5, target:block5
+ [ 12] JumpFalse condition:reg5, target:block5
block4:
- [ 48] Jump target:block6
+ [ 19] Jump target:block6
block5:
- [ 50] Jump target:block7
+ [ 1e] Jump target:block7
block6:
- [ 58] JumpLoop target:block1
+ [ 23] JumpLoop target:block1
block7:
- [ 60] End value:Undefined
+ [ 28] End value:Undefined
diff --git a/Tests/LibJS/Bytecode/expected/logical-or-preferred-dst.txt b/Tests/LibJS/Bytecode/expected/logical-or-preferred-dst.txt
index 255bea67af2..b45d120f8e9 100644
--- a/Tests/LibJS/Bytecode/expected/logical-or-preferred-dst.txt
+++ b/Tests/LibJS/Bytecode/expected/logical-or-preferred-dst.txt
@@ -1,4 +1,4 @@
-$36778e37 logical-or-preferred-dst.js:11:1
+$e3875e16 logical-or-preferred-dst.js:11:1
Registers: 7
Blocks: 1
Constants:
@@ -7,40 +7,39 @@ $36778e37 logical-or-preferred-dst.js:11:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `blocked`
- [ 28] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Bool(false)]
- [ 50] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `blocked`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Bool(false)]
+ [ 26] End value:reg5
-blocked$3c995b46 logical-or-preferred-dst.js:5:14
+blocked$05dbbfaf logical-or-preferred-dst.js:5:14
Registers: 7
Blocks: 8
Constants:
- [0] = Int32(0)
- [1] = Undefined
+ [0] = Undefined
block0:
[ 0] Enter
block1:
- [ 8] Mov dst:reg5, src:arg0
- [ 18] JumpTrue condition:reg5, target:block3
+ [ 1] Mov dst:reg5, src:arg0
+ [ 6] JumpTrue condition:reg5, target:block3
block2:
- [ 28] GreaterThanRhsInt32 arith_feedback:0, dst:reg5, lhs:arg0, rhs:0
+ [ d] GreaterThanRhsInt32 arith_feedback:0, dst:reg5, lhs:arg0, rhs:0
block3:
- [ 38] JumpFalse condition:reg5, target:block5
+ [ 18] JumpFalse condition:reg5, target:block5
block4:
- [ 48] Jump target:block6
+ [ 1f] Jump target:block6
block5:
- [ 50] Jump target:block7
+ [ 24] Jump target:block7
block6:
- [ 58] JumpLoop target:block1
+ [ 29] JumpLoop target:block1
block7:
- [ 60] End value:Undefined
+ [ 2e] End value:Undefined
diff --git a/Tests/LibJS/Bytecode/expected/mapped-arguments-parameter-bindings.txt b/Tests/LibJS/Bytecode/expected/mapped-arguments-parameter-bindings.txt
index dfdbd904d8b..c9eb28ad5fc 100644
--- a/Tests/LibJS/Bytecode/expected/mapped-arguments-parameter-bindings.txt
+++ b/Tests/LibJS/Bytecode/expected/mapped-arguments-parameter-bindings.txt
@@ -1,4 +1,4 @@
-$312160b0 mapped-arguments-parameter-bindings.js:4:1
+$4e7058cd mapped-arguments-parameter-bindings.js:4:1
Registers: 7
Blocks: 1
Constants:
@@ -9,13 +9,13 @@ $312160b0 mapped-arguments-parameter-bindings.js:4:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `forward`
- [ 28] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(1), Int32(2), Int32(3)]
- [ 58] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `forward`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(1), Int32(2), Int32(3)]
+ [ 2a] End value:reg5
-forward$5577a08e mapped-arguments-parameter-bindings.js:2:5
+forward$794822e2 mapped-arguments-parameter-bindings.js:2:5
Registers: 7
Blocks: 1
Locals: arguments~0
@@ -24,15 +24,15 @@ forward$5577a08e mapped-arguments-parameter-bindings.js:2:5
block0:
[ 0] Enter
- [ 8] CreateArguments dst:arguments~0, is_immutable:false, creates_parameter_bindings:true
- [ 18] InitializeLexicalBinding `a`, src:Undefined
- [ 30] SetLexicalBinding `a`, src:arg0
- [ 48] InitializeLexicalBinding `b`, src:Undefined
- [ 60] SetLexicalBinding `b`, src:arg1
- [ 78] SetLexicalBinding `a`, src:arg2
- [ 90] GetLength value_feedback:0, keyed_feedback:0, dst:reg5, base:arguments~0
- [ a8] GetBinding value_feedback:1, dst:reg6, `a`
- [ c0] Add arith_feedback:0, dst:reg5, lhs:reg5, rhs:reg6
- [ d0] GetBinding value_feedback:2, dst:reg6, `b`
- [ e8] Add arith_feedback:1, dst:reg5, lhs:reg5, rhs:reg6
- [ f8] Return value:reg5
+ [ 1] CreateArguments dst:arguments~0, is_immutable:false, creates_parameter_bindings:true
+ [ a] InitializeLexicalBinding `a`, src:Undefined
+ [ 17] SetLexicalBinding `a`, src:arg0
+ [ 24] InitializeLexicalBinding `b`, src:Undefined
+ [ 31] SetLexicalBinding `b`, src:arg1
+ [ 3e] SetLexicalBinding `a`, src:arg2
+ [ 4b] GetLength value_feedback:0, keyed_feedback:0, dst:reg5, base:arguments~0
+ [ 58] GetBinding value_feedback:1, dst:reg6, `a`
+ [ 67] Add arith_feedback:0, dst:reg5, lhs:reg5, rhs:reg6
+ [ 70] GetBinding value_feedback:2, dst:reg6, `b`
+ [ 7f] Add arith_feedback:1, dst:reg5, lhs:reg5, rhs:reg6
+ [ 88] Return value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/module-level-bindings.txt b/Tests/LibJS/Bytecode/expected/module-level-bindings.txt
index 9e2e9dbe7b4..d720b5c4ba9 100644
--- a/Tests/LibJS/Bytecode/expected/module-level-bindings.txt
+++ b/Tests/LibJS/Bytecode/expected/module-level-bindings.txt
@@ -1,33 +1,33 @@
-outer$12b0cda7 module-level-bindings.mjs:6:5
+outer$dbf33210 module-level-bindings.mjs:6:5
Registers: 6
Blocks: 1
block0:
[ 0] Enter
- [ 8] NewFunction dst:reg5, shared_function_data_index:0
- [ 20] Return value:reg5
+ [ 1] NewFunction dst:reg5, shared_function_data_index:0
+ [ c] Return value:reg5
-inner$24238fde module-level-bindings.mjs:7:18
+inner$983cfd00 module-level-bindings.mjs:7:18
Registers: 7
Blocks: 1
block0:
[ 0] Enter
- [ 8] GetBinding value_feedback:0, dst:reg5, `lexical`
- [ 20] GetBinding value_feedback:1, dst:reg6, `constant`
- [ 38] Add arith_feedback:0, dst:reg5, lhs:reg5, rhs:reg6
- [ 48] SetLexicalBinding `variable`, src:reg5
- [ 60] GetCalleeAndThisFromEnvironment value_feedback:2, callee:reg5, this_value:reg6, `declared`
- [ 78] Call value_feedback:3, call_feedback:0, dst:reg5, callee:reg5, this_value:reg6
- [ 98] Return value:reg5
+ [ 1] GetBinding value_feedback:0, dst:reg5, `lexical`
+ [ 10] GetBinding value_feedback:1, dst:reg6, `constant`
+ [ 1f] Add arith_feedback:0, dst:reg5, lhs:reg5, rhs:reg6
+ [ 28] SetLexicalBinding `variable`, src:reg5
+ [ 35] GetCalleeAndThisFromEnvironment value_feedback:2, callee:reg5, this_value:reg6, `declared`
+ [ 46] Call value_feedback:3, call_feedback:0, dst:reg5, callee:reg5, this_value:reg6
+ [ 5b] Return value:reg5
-declared$581f69d1 module-level-bindings.mjs:13:5
+declared$91a0f678 module-level-bindings.mjs:13:5
Registers: 6
Blocks: 1
block0:
[ 0] Enter
- [ 8] TypeofBinding dst:reg5, `lexical`
- [ 20] Return value:reg5
+ [ 1] TypeofBinding dst:reg5, `lexical`
+ [ e] Return value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/mov-merging.txt b/Tests/LibJS/Bytecode/expected/mov-merging.txt
index 7549f67675a..c9521a03c6a 100644
--- a/Tests/LibJS/Bytecode/expected/mov-merging.txt
+++ b/Tests/LibJS/Bytecode/expected/mov-merging.txt
@@ -1,4 +1,4 @@
-$be943a25 mov-merging.js:14:1
+$fca400d5 mov-merging.js:14:1
Registers: 9
Blocks: 1
Constants:
@@ -6,21 +6,21 @@ $be943a25 mov-merging.js:14:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `console`
- [ 28] GetById value_feedback:1, dst:reg7, base:reg6, `log`
- [ 40] GetGlobal value_feedback:2, dst:reg8, `twoLocals`
- [ 50] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined
- [ 70] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 98] GetGlobal value_feedback:5, dst:reg6, `console`
- [ a8] GetById value_feedback:6, dst:reg7, base:reg6, `log`
- [ c0] GetGlobal value_feedback:7, dst:reg8, `threeLocals`
- [ d0] Call value_feedback:8, call_feedback:2, dst:reg8, callee:reg8, this_value:Undefined
- [ f0] Call value_feedback:9, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 118] End value:reg5
-
-
-twoLocals$0c45f674 mov-merging.js:2:9
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `console`
+ [ f] GetById value_feedback:1, dst:reg7, base:reg6, `log`
+ [ 1c] GetGlobal value_feedback:2, dst:reg8, `twoLocals`
+ [ 25] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined
+ [ 3a] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 51] GetGlobal value_feedback:5, dst:reg6, `console`
+ [ 5a] GetById value_feedback:6, dst:reg7, base:reg6, `log`
+ [ 67] GetGlobal value_feedback:7, dst:reg8, `threeLocals`
+ [ 70] Call value_feedback:8, call_feedback:2, dst:reg8, callee:reg8, this_value:Undefined
+ [ 85] Call value_feedback:9, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 9c] End value:reg5
+
+
+twoLocals$c4658a93 mov-merging.js:2:9
Registers: 6
Blocks: 1
Locals: a~0, b~1
@@ -30,13 +30,13 @@ twoLocals$0c45f674 mov-merging.js:2:9
block0:
[ 0] Enter
- [ 8] Mov dst:a~0, src:Int32(1)
- [ 18] Mov dst:b~1, src:Int32(2)
- [ 28] Add arith_feedback:0, dst:reg5, lhs:a~0, rhs:b~1
- [ 38] Return value:reg5
+ [ 1] Mov dst:a~0, src:Int32(1)
+ [ 6] Mov dst:b~1, src:Int32(2)
+ [ b] Add arith_feedback:0, dst:reg5, lhs:a~0, rhs:b~1
+ [ 14] Return value:reg5
-threeLocals$c35ad2ec mov-merging.js:8:9
+threeLocals$dde5d9f9 mov-merging.js:8:9
Registers: 6
Blocks: 1
Locals: a~0, b~1, c~2
@@ -47,12 +47,12 @@ threeLocals$c35ad2ec mov-merging.js:8:9
block0:
[ 0] Enter
- [ 8] Mov dst:a~0, src:Int32(1)
- [ 18] Mov dst:b~1, src:Int32(2)
- [ 28] Mov dst:c~2, src:Int32(3)
- [ 38] Add arith_feedback:0, dst:reg5, lhs:a~0, rhs:b~1
- [ 48] Add arith_feedback:1, dst:reg5, lhs:reg5, rhs:c~2
- [ 58] Return value:reg5
+ [ 1] Mov dst:a~0, src:Int32(1)
+ [ 6] Mov dst:b~1, src:Int32(2)
+ [ b] Mov dst:c~2, src:Int32(3)
+ [ 10] Add arith_feedback:0, dst:reg5, lhs:a~0, rhs:b~1
+ [ 19] Add arith_feedback:1, dst:reg5, lhs:reg5, rhs:c~2
+ [ 22] Return value:reg5
3
diff --git a/Tests/LibJS/Bytecode/expected/named-class-expression-no-lhs-name-leak.txt b/Tests/LibJS/Bytecode/expected/named-class-expression-no-lhs-name-leak.txt
index 298e7c75f26..0066a026451 100644
--- a/Tests/LibJS/Bytecode/expected/named-class-expression-no-lhs-name-leak.txt
+++ b/Tests/LibJS/Bytecode/expected/named-class-expression-no-lhs-name-leak.txt
@@ -1,4 +1,4 @@
-$ca340182 named-class-expression-no-lhs-name-leak.js:1:1
+$98db8c8f named-class-expression-no-lhs-name-leak.js:1:1
Registers: 14
Blocks: 12
Constants:
@@ -7,52 +7,52 @@ $ca340182 named-class-expression-no-lhs-name-leak.js:1:1
block0:
[ 0] Enter
- [ 8] GetLexicalEnvironment dst:reg4
- [ 10] Mov dst:reg5, src:Undefined
- [ 20] NewArray dst:reg6
- [ 30] Mov dst:reg7, src:Bool(false)
- [ 40] GetIterator dst_iterator_object:reg8, dst_iterator_next:reg9, dst_iterator_done:reg10, iterable:reg6, fast_array_mode_allowed:true
- [ 60] IteratorNextUnpack dst_value:reg11, dst_done:reg7, iterator_object:reg8, iterator_next:reg9, iterator_done:reg10
+ [ 1] GetLexicalEnvironment dst:reg4
+ [ 4] Mov dst:reg5, src:Undefined
+ [ 9] NewArray dst:reg6
+ [ 14] Mov dst:reg7, src:Bool(false)
+ [ 19] GetIterator dst_iterator_object:reg8, dst_iterator_next:reg9, dst_iterator_done:reg10, iterable:reg6, fast_array_mode_allowed:true
+ [ 29] IteratorNextUnpack dst_value:reg11, dst_done:reg7, iterator_object:reg8, iterator_next:reg9, iterator_done:reg10
block1:
- [ 78] JumpFalse condition:reg7, target:block3
+ [ 34] JumpFalse condition:reg7, target:block3
block2:
- [ 88] Mov dst:reg11, src:Undefined
+ [ 3b] Mov dst:reg11, src:Undefined
block3:
- [ 98] JumpUndefined condition:reg11, true_target:block4, false_target:block5
+ [ 40] JumpUndefined condition:reg11, true_target:block4, false_target:block5
block4:
- [ a8] CreateLexicalEnvironment dst:reg13, parent:reg4, capacity:1, is_catch_environment:false
- [ c0] CreateVariable `Foo`, is_immutable:true, is_global:false, is_strict:true
- [ d0] SetLexicalEnvironment environment:reg4
- [ d8] NewClass dst:reg12, class_environment:reg13, class_blueprint_index:0
- [ 100] Mov dst:reg11, src:reg12
+ [ 4b] CreateLexicalEnvironment dst:reg13, parent:reg4, capacity:1, is_catch_environment:false
+ [ 59] CreateVariable `Foo`, is_immutable:true, is_global:false, is_strict:true
+ [ 63] SetLexicalEnvironment environment:reg4
+ [ 66] NewClass dst:reg12, class_environment:reg13, class_blueprint_index:0
+ [ 7f] Mov dst:reg11, src:reg12
block5:
- [ 110] SetGlobal `C`, src:reg11
+ [ 84] SetGlobal `C`, src:reg11
block6:
- [ 120] JumpTrue condition:reg10, target:block11
+ [ 8b] JumpTrue condition:reg10, target:block11
block7:
- [ 130] IteratorClose iterator_object:reg8, iterator_next:reg9, iterator_done:reg10, completion_value:Undefined
- [ 150] Jump target:block11
+ [ 92] IteratorClose iterator_object:reg8, iterator_next:reg9, iterator_done:reg10, completion_value:Undefined
+ [ a1] Jump target:block11
block8:
- [ 158] Catch value_feedback:0, dst:reg11
- [ 160] SetLexicalEnvironment environment:reg4
- [ 168] JumpTrue condition:reg10, target:block10
+ [ a6] Catch value_feedback:0, dst:reg11
+ [ ab] SetLexicalEnvironment environment:reg4
+ [ ae] JumpTrue condition:reg10, target:block10
block9:
- [ 178] IteratorClose iterator_object:reg8, iterator_next:reg9, iterator_done:reg10, completion_value:reg11
+ [ b5] IteratorClose iterator_object:reg8, iterator_next:reg9, iterator_done:reg10, completion_value:reg11
block10:
- [ 198] Throw src:reg11
+ [ c4] Throw src:reg11
block11:
- [ 1a0] End value:reg5
+ [ c7] End value:reg5
Exception handlers:
- [ 78 .. 120] => handler block8
+ [ 34 .. 8b] => handler block8
diff --git a/Tests/LibJS/Bytecode/expected/named-function-expression-unused-name.txt b/Tests/LibJS/Bytecode/expected/named-function-expression-unused-name.txt
index 0860d868fad..176374c4094 100644
--- a/Tests/LibJS/Bytecode/expected/named-function-expression-unused-name.txt
+++ b/Tests/LibJS/Bytecode/expected/named-function-expression-unused-name.txt
@@ -1,4 +1,4 @@
-$eec31824 named-function-expression-unused-name.js:24:1
+$fec984db named-function-expression-unused-name.js:24:1
Registers: 7
Blocks: 1
Constants:
@@ -7,51 +7,51 @@ $eec31824 named-function-expression-unused-name.js:24:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `outer`
- [ 28] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(1)]
- [ 50] GetGlobal value_feedback:2, dst:reg6, `outerWithEval`
- [ 60] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined
- [ 80] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `outer`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(1)]
+ [ 26] GetGlobal value_feedback:2, dst:reg6, `outerWithEval`
+ [ 2f] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined
+ [ 44] End value:reg5
-outer$cd1004f1 named-function-expression-unused-name.js:6:20
+outer$012c6af4 named-function-expression-unused-name.js:6:20
Registers: 7
Blocks: 1
Locals: unused~0, used~1, nested~2
block0:
[ 0] Enter
- [ 8] CreateVariable `x`, is_immutable:false, is_global:false, is_strict:false
- [ 18] InitializeLexicalBinding `x`, src:arg0
- [ 30] GetLexicalEnvironment dst:reg4
- [ 38] NewFunction dst:unused~0, shared_function_data_index:0
- [ 50] CreateLexicalEnvironment dst:reg6, parent:reg4, capacity:1, is_catch_environment:false
- [ 68] CreateVariable `g`, is_immutable:true, is_global:false, is_strict:false
- [ 78] NewFunction dst:reg5, shared_function_data_index:1
- [ 90] InitializeLexicalBinding `g`, src:reg5
- [ a8] SetLexicalEnvironment environment:reg4
- [ b0] Mov dst:used~1, src:reg5
- [ c0] CreateLexicalEnvironment dst:reg6, parent:reg4, capacity:1, is_catch_environment:false
- [ d8] CreateVariable `h`, is_immutable:true, is_global:false, is_strict:false
- [ e8] NewFunction dst:reg5, shared_function_data_index:2
- [ 100] InitializeLexicalBinding `h`, src:reg5
- [ 118] SetLexicalEnvironment environment:reg4
- [ 120] Mov dst:nested~2, src:reg5
- [ 130] NewArray dst:reg5, elements:[unused~0, used~1, nested~2]
- [ 150] Return value:reg5
+ [ 1] CreateVariable `x`, is_immutable:false, is_global:false, is_strict:false
+ [ b] InitializeLexicalBinding `x`, src:arg0
+ [ 18] GetLexicalEnvironment dst:reg4
+ [ 1b] NewFunction dst:unused~0, shared_function_data_index:0
+ [ 26] CreateLexicalEnvironment dst:reg6, parent:reg4, capacity:1, is_catch_environment:false
+ [ 34] CreateVariable `g`, is_immutable:true, is_global:false, is_strict:false
+ [ 3e] NewFunction dst:reg5, shared_function_data_index:1
+ [ 49] InitializeLexicalBinding `g`, src:reg5
+ [ 56] SetLexicalEnvironment environment:reg4
+ [ 59] Mov dst:used~1, src:reg5
+ [ 5e] CreateLexicalEnvironment dst:reg6, parent:reg4, capacity:1, is_catch_environment:false
+ [ 6c] CreateVariable `h`, is_immutable:true, is_global:false, is_strict:false
+ [ 76] NewFunction dst:reg5, shared_function_data_index:2
+ [ 81] InitializeLexicalBinding `h`, src:reg5
+ [ 8e] SetLexicalEnvironment environment:reg4
+ [ 91] Mov dst:nested~2, src:reg5
+ [ 96] NewArray dst:reg5, elements:[unused~0, used~1, nested~2]
+ [ a7] Return value:reg5
-outerWithEval$fdb37c36 named-function-expression-unused-name.js:19:5
+outerWithEval$524b39d4 named-function-expression-unused-name.js:19:5
Registers: 7
Blocks: 1
block0:
[ 0] Enter
- [ 8] GetLexicalEnvironment dst:reg4
- [ 10] CreateLexicalEnvironment dst:reg6, parent:reg4, capacity:1, is_catch_environment:false
- [ 28] CreateVariable `i`, is_immutable:true, is_global:false, is_strict:false
- [ 38] NewFunction dst:reg5, shared_function_data_index:0
- [ 50] InitializeLexicalBinding `i`, src:reg5
- [ 68] SetLexicalEnvironment environment:reg4
- [ 70] Return value:reg5
+ [ 1] GetLexicalEnvironment dst:reg4
+ [ 4] CreateLexicalEnvironment dst:reg6, parent:reg4, capacity:1, is_catch_environment:false
+ [ 12] CreateVariable `i`, is_immutable:true, is_global:false, is_strict:false
+ [ 1c] NewFunction dst:reg5, shared_function_data_index:0
+ [ 27] InitializeLexicalBinding `i`, src:reg5
+ [ 34] SetLexicalEnvironment environment:reg4
+ [ 37] Return value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/named-function-expression.txt b/Tests/LibJS/Bytecode/expected/named-function-expression.txt
index 5460a729946..f794b25dd32 100644
--- a/Tests/LibJS/Bytecode/expected/named-function-expression.txt
+++ b/Tests/LibJS/Bytecode/expected/named-function-expression.txt
@@ -1,4 +1,4 @@
-$72cc050b named-function-expression.js:4:1
+$613ab694 named-function-expression.js:4:1
Registers: 9
Blocks: 4
Constants:
@@ -7,26 +7,26 @@ $72cc050b named-function-expression.js:4:1
block0:
[ 0] Enter
- [ 8] GetLexicalEnvironment dst:reg4
- [ 10] Mov dst:reg5, src:Undefined
- [ 20] ResolveGlobalBinding dst:reg6, `Oops`
- [ 30] CreateLexicalEnvironment dst:reg8, parent:reg4, capacity:1, is_catch_environment:false
- [ 48] CreateVariable `Oops`, is_immutable:true, is_global:false, is_strict:false
- [ 58] NewFunction dst:reg7, shared_function_data_index:0
- [ 70] InitializeLexicalBinding `Oops`, src:reg7
- [ 88] SetLexicalEnvironment environment:reg4
- [ 90] JumpIf condition:reg6, true_target:block1, false_target:block2
+ [ 1] GetLexicalEnvironment dst:reg4
+ [ 4] Mov dst:reg5, src:Undefined
+ [ 9] ResolveGlobalBinding dst:reg6, `Oops`
+ [ 10] CreateLexicalEnvironment dst:reg8, parent:reg4, capacity:1, is_catch_environment:false
+ [ 1e] CreateVariable `Oops`, is_immutable:true, is_global:false, is_strict:false
+ [ 28] NewFunction dst:reg7, shared_function_data_index:0
+ [ 33] InitializeLexicalBinding `Oops`, src:reg7
+ [ 40] SetLexicalEnvironment environment:reg4
+ [ 43] JumpIf condition:reg6, true_target:block1, false_target:block2
block1:
- [ a0] SetGlobal `Oops`, src:reg7
- [ b0] Jump target:block3
+ [ 4e] SetGlobal `Oops`, src:reg7
+ [ 55] Jump target:block3
block2:
- [ b8] SetResolvedBinding environment:Null, `Oops`, src:reg7
- [ c8] Jump target:block3
+ [ 5a] SetResolvedBinding environment:Null, `Oops`, src:reg7
+ [ 61] Jump target:block3
block3:
- [ d0] Mov dst:reg5, src:reg7
- [ e0] GetGlobal value_feedback:0, dst:reg6, `Oops`
- [ f0] GetById value_feedback:1, dst:reg5, base:reg6, `x`
- [ 108] End value:reg5
+ [ 66] Mov dst:reg5, src:reg7
+ [ 6b] GetGlobal value_feedback:0, dst:reg6, `Oops`
+ [ 74] GetById value_feedback:1, dst:reg5, base:reg6, `x`
+ [ 81] End value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/nested-for-loop-completion.txt b/Tests/LibJS/Bytecode/expected/nested-for-loop-completion.txt
index 9004cced1d3..521a8033c8a 100644
--- a/Tests/LibJS/Bytecode/expected/nested-for-loop-completion.txt
+++ b/Tests/LibJS/Bytecode/expected/nested-for-loop-completion.txt
@@ -1,43 +1,40 @@
-$f09d54bf nested-for-loop-completion.js:4:5
+$cf059991 nested-for-loop-completion.js:4:5
Registers: 8
Blocks: 7
Constants:
[0] = Undefined
[1] = Int32(4)
[2] = Int32(0)
- [3] = Int32(2)
- [4] = Int32(1)
- [5] = Int32(7)
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] Mov dst:reg5, src:Undefined
- [ 28] SetGlobal `n`, src:Int32(4)
- [ 38] Jump target:block5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] Mov dst:reg5, src:Undefined
+ [ b] SetGlobal `n`, src:Int32(4)
+ [ 12] Jump target:block5
block1:
- [ 40] Mov dst:reg5, src:Undefined
- [ 50] SetGlobal `depth`, src:Int32(0)
- [ 60] Jump target:block3
+ [ 17] Mov dst:reg5, src:Undefined
+ [ 1c] SetGlobal `depth`, src:Int32(0)
+ [ 23] Jump target:block3
block2:
- [ 68] GetGlobal value_feedback:0, dst:reg6, `depth`
- [ 78] AddRhsInt32 arith_feedback:0, dst:reg7, lhs:reg6, rhs:2
- [ 88] SetGlobal `depth`, src:reg7
+ [ 28] GetGlobal value_feedback:0, dst:reg6, `depth`
+ [ 31] AddRhsInt32 arith_feedback:0, dst:reg7, lhs:reg6, rhs:2
+ [ 3c] SetGlobal `depth`, src:reg7
block3:
- [ 98] GetGlobal value_feedback:1, dst:reg6, `depth`
- [ a8] JumpLessThanEqualsLoopRhsInt32 arith_feedback:1, lhs:reg6, rhs:0, true_target:block2, false_target:block4
+ [ 43] GetGlobal value_feedback:1, dst:reg6, `depth`
+ [ 4c] JumpLessThanEqualsLoopRhsInt32 arith_feedback:1, lhs:reg6, rhs:0, true_target:block2, false_target:block4
block4:
- [ c0] GetGlobal value_feedback:2, dst:reg6, `n`
- [ d0] AddRhsInt32 arith_feedback:2, dst:reg7, lhs:reg6, rhs:1
- [ e0] SetGlobal `n`, src:reg7
+ [ 5d] GetGlobal value_feedback:2, dst:reg6, `n`
+ [ 66] AddRhsInt32 arith_feedback:2, dst:reg7, lhs:reg6, rhs:1
+ [ 71] SetGlobal `n`, src:reg7
block5:
- [ f0] GetGlobal value_feedback:3, dst:reg6, `n`
- [ 100] JumpLessThanEqualsLoopRhsInt32 arith_feedback:3, lhs:reg6, rhs:7, true_target:block1, false_target:block6
+ [ 78] GetGlobal value_feedback:3, dst:reg6, `n`
+ [ 81] JumpLessThanEqualsLoopRhsInt32 arith_feedback:3, lhs:reg6, rhs:7, true_target:block1, false_target:block6
block6:
- [ 118] End value:reg5
+ [ 92] End value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/nested-function-decl-source-order.txt b/Tests/LibJS/Bytecode/expected/nested-function-decl-source-order.txt
index cc82a587b47..287daa79460 100644
--- a/Tests/LibJS/Bytecode/expected/nested-function-decl-source-order.txt
+++ b/Tests/LibJS/Bytecode/expected/nested-function-decl-source-order.txt
@@ -1,4 +1,4 @@
-$881321ab nested-function-decl-source-order.js:15:1
+$edcdaf93 nested-function-decl-source-order.js:15:1
Registers: 10
Blocks: 1
Constants:
@@ -7,18 +7,18 @@ $881321ab nested-function-decl-source-order.js:15:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `console`
- [ 28] GetById value_feedback:1, dst:reg7, base:reg6, `log`
- [ 40] GetGlobal value_feedback:2, dst:reg8, `outer`
- [ 50] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined
- [ 70] GetById value_feedback:4, dst:reg9, base:reg8, `join`
- [ 88] Call value_feedback:5, call_feedback:1, dst:reg8, callee:reg9, this_value:reg8, arguments:[String(",")]
- [ b0] Call value_feedback:6, call_feedback:2, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ d8] End value:reg5
-
-
-outer$e725b1cc nested-function-decl-source-order.js:6:5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `console`
+ [ f] GetById value_feedback:1, dst:reg7, base:reg6, `log`
+ [ 1c] GetGlobal value_feedback:2, dst:reg8, `outer`
+ [ 25] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined
+ [ 3a] GetById value_feedback:4, dst:reg9, base:reg8, `join`
+ [ 47] Call value_feedback:5, call_feedback:1, dst:reg8, callee:reg9, this_value:reg8, arguments:[String(",")]
+ [ 5e] Call value_feedback:6, call_feedback:2, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 75] End value:reg5
+
+
+outer$9ab70be2 nested-function-decl-source-order.js:6:5
Registers: 11
Blocks: 1
Locals: alpha~0, beta~1, dup~2, gamma~3, delta~4
@@ -27,27 +27,27 @@ outer$e725b1cc nested-function-decl-source-order.js:6:5
block0:
[ 0] Enter
- [ 8] Mov dst:alpha~0, src:Undefined
- [ 18] NewFunction dst:alpha~0, shared_function_data_index:0
- [ 30] Mov dst:beta~1, src:Undefined
- [ 40] NewFunction dst:beta~1, shared_function_data_index:1
- [ 58] Mov dst:dup~2, src:Undefined
- [ 68] NewFunction dst:dup~2, shared_function_data_index:2
- [ 80] Mov dst:gamma~3, src:Undefined
- [ 90] NewFunction dst:gamma~3, shared_function_data_index:3
- [ a8] NewFunction dst:dup~2, shared_function_data_index:4
- [ c0] Mov dst:delta~4, src:Undefined
- [ d0] NewFunction dst:delta~4, shared_function_data_index:5
- [ e8] Call value_feedback:0, call_feedback:0, dst:reg5, callee:alpha~0, this_value:Undefined
- [ 108] Call value_feedback:1, call_feedback:1, dst:reg6, callee:beta~1, this_value:Undefined
- [ 128] Call value_feedback:2, call_feedback:2, dst:reg7, callee:gamma~3, this_value:Undefined
- [ 148] Call value_feedback:3, call_feedback:3, dst:reg8, callee:delta~4, this_value:Undefined
- [ 168] Call value_feedback:4, call_feedback:4, dst:reg9, callee:dup~2, this_value:Undefined
- [ 188] NewArray dst:reg10, elements:[reg5, reg6, reg7, reg8, reg9]
- [ 1b0] Return value:reg10
-
-
-alpha$5f53e227 nested-function-decl-source-order.js:6:24
+ [ 1] Mov dst:alpha~0, src:Undefined
+ [ 6] NewFunction dst:alpha~0, shared_function_data_index:0
+ [ 11] Mov dst:beta~1, src:Undefined
+ [ 16] NewFunction dst:beta~1, shared_function_data_index:1
+ [ 21] Mov dst:dup~2, src:Undefined
+ [ 26] NewFunction dst:dup~2, shared_function_data_index:2
+ [ 31] Mov dst:gamma~3, src:Undefined
+ [ 36] NewFunction dst:gamma~3, shared_function_data_index:3
+ [ 41] NewFunction dst:dup~2, shared_function_data_index:4
+ [ 4c] Mov dst:delta~4, src:Undefined
+ [ 51] NewFunction dst:delta~4, shared_function_data_index:5
+ [ 5c] Call value_feedback:0, call_feedback:0, dst:reg5, callee:alpha~0, this_value:Undefined
+ [ 71] Call value_feedback:1, call_feedback:1, dst:reg6, callee:beta~1, this_value:Undefined
+ [ 86] Call value_feedback:2, call_feedback:2, dst:reg7, callee:gamma~3, this_value:Undefined
+ [ 9b] Call value_feedback:3, call_feedback:3, dst:reg8, callee:delta~4, this_value:Undefined
+ [ b0] Call value_feedback:4, call_feedback:4, dst:reg9, callee:dup~2, this_value:Undefined
+ [ c5] NewArray dst:reg10, elements:[reg5, reg6, reg7, reg8, reg9]
+ [ da] Return value:reg10
+
+
+alpha$1bdef4d3 nested-function-decl-source-order.js:6:24
Registers: 5
Blocks: 1
Constants:
@@ -55,10 +55,10 @@ alpha$5f53e227 nested-function-decl-source-order.js:6:24
block0:
[ 0] Enter
- [ 8] Return value:Int32(1)
+ [ 1] Return value:Int32(1)
-beta$4d458c87 nested-function-decl-source-order.js:7:23
+beta$09d09f33 nested-function-decl-source-order.js:7:23
Registers: 5
Blocks: 1
Constants:
@@ -66,10 +66,10 @@ beta$4d458c87 nested-function-decl-source-order.js:7:23
block0:
[ 0] Enter
- [ 8] Return value:Int32(2)
+ [ 1] Return value:Int32(2)
-gamma$c82d8b53 nested-function-decl-source-order.js:9:24
+gamma$0ba278a7 nested-function-decl-source-order.js:9:24
Registers: 5
Blocks: 1
Constants:
@@ -77,10 +77,10 @@ gamma$c82d8b53 nested-function-decl-source-order.js:9:24
block0:
[ 0] Enter
- [ 8] Return value:Int32(3)
+ [ 1] Return value:Int32(3)
-delta$812d3abe nested-function-decl-source-order.js:11:24
+delta$3db84d6a nested-function-decl-source-order.js:11:24
Registers: 5
Blocks: 1
Constants:
@@ -88,10 +88,10 @@ delta$812d3abe nested-function-decl-source-order.js:11:24
block0:
[ 0] Enter
- [ 8] Return value:Int32(4)
+ [ 1] Return value:Int32(4)
-dup$db2838e0 nested-function-decl-source-order.js:10:22
+dup$1e9d2634 nested-function-decl-source-order.js:10:22
Registers: 5
Blocks: 1
Constants:
@@ -99,7 +99,7 @@ dup$db2838e0 nested-function-decl-source-order.js:10:22
block0:
[ 0] Enter
- [ 8] Return value:String("second")
+ [ 1] Return value:String("second")
"1,2,3,4,second"
diff --git a/Tests/LibJS/Bytecode/expected/nested-member-base-identifier.txt b/Tests/LibJS/Bytecode/expected/nested-member-base-identifier.txt
index ba013d49027..8db3afc256d 100644
--- a/Tests/LibJS/Bytecode/expected/nested-member-base-identifier.txt
+++ b/Tests/LibJS/Bytecode/expected/nested-member-base-identifier.txt
@@ -1,4 +1,4 @@
-$a2ba4545 nested-member-base-identifier.js:9:1
+$aa74decc nested-member-base-identifier.js:9:1
Registers: 9
Blocks: 1
Constants:
@@ -7,27 +7,26 @@ $a2ba4545 nested-member-base-identifier.js:9:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `assign_nested`
- [ 28] NewObject dst:reg7
- [ 38] InitObjectLiteralProperty object:reg7, `shader`, src:Int32(1), shape_cache_index:0, property_slot:0
- [ 50] CacheObjectShape object:reg7
- [ 60] NewArray dst:reg8, elements:[reg7]
- [ 78] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg8, Int32(1)]
- [ a0] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `assign_nested`
+ [ f] NewObject dst:reg7
+ [ 14] InitObjectLiteralProperty object:reg7, `shader`, src:Int32(1), shape_cache_index:0, property_slot:0
+ [ 23] CacheObjectShape object:reg7
+ [ 28] NewArray dst:reg8, elements:[reg7]
+ [ 35] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg8, Int32(1)]
+ [ 4e] End value:reg5
-assign_nested$93cc3898 nested-member-base-identifier.js:6:8
+assign_nested$ae573fa5 nested-member-base-identifier.js:6:8
Registers: 6
Blocks: 1
Constants:
- [0] = Int32(1)
- [1] = Int32(0)
- [2] = Undefined
+ [0] = Int32(0)
+ [1] = Undefined
block0:
[ 0] Enter
- [ 8] SubRhsInt32 arith_feedback:0, dst:reg5, lhs:arg1, rhs:1
- [ 18] GetByValue value_feedback:0, keyed_feedback:0, dst:reg5, base:arg0, property:reg5
- [ 38] PutById base:reg5, `shader`, src:Int32(0), kind:Normal
- [ 58] End value:Undefined
+ [ 1] SubRhsInt32 arith_feedback:0, dst:reg5, lhs:arg1, rhs:1
+ [ c] GetByValue value_feedback:0, keyed_feedback:0, dst:reg5, base:arg0, property:reg5
+ [ 1b] PutById base:reg5, `shader`, src:Int32(0), kind:Normal
+ [ 2a] End value:Undefined
diff --git a/Tests/LibJS/Bytecode/expected/nested-try-finally-continue.txt b/Tests/LibJS/Bytecode/expected/nested-try-finally-continue.txt
index 18949a2f524..b1ba576f458 100644
--- a/Tests/LibJS/Bytecode/expected/nested-try-finally-continue.txt
+++ b/Tests/LibJS/Bytecode/expected/nested-try-finally-continue.txt
@@ -1,4 +1,4 @@
-$827177ea nested-try-finally-continue.js:14:1
+$7032440d nested-try-finally-continue.js:14:1
Registers: 7
Blocks: 1
Constants:
@@ -6,13 +6,13 @@ $827177ea nested-try-finally-continue.js:14:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `nestedTryFinallyContinue`
- [ 28] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 48] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `nestedTryFinallyContinue`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 24] End value:reg5
-nestedTryFinallyContinue$d349c595 nested-try-finally-continue.js:2:10
+nestedTryFinallyContinue$3850225e nested-try-finally-continue.js:2:10
Registers: 11
Blocks: 18
Locals: i~0
@@ -22,80 +22,79 @@ nestedTryFinallyContinue$d349c595 nested-try-finally-continue.js:2:10
[2] = Int32(2)
[3] = String("inner")
[4] = String("outer")
- [5] = Int32(3)
- [6] = Undefined
+ [5] = Undefined
block0:
[ 0] Enter
- [ 8] Mov dst:i~0, src:Int32(0)
- [ 18] Jump target:block16
+ [ 1] Mov dst:i~0, src:Int32(0)
+ [ 6] Jump target:block16
block1:
- [ 20] JumpStrictlyEqualsRhsInt32 arith_feedback:0, lhs:i~0, rhs:1, true_target:block2, false_target:block3
+ [ b] JumpStrictlyEqualsRhsInt32 arith_feedback:0, lhs:i~0, rhs:1, true_target:block2, false_target:block3
block2:
- [ 38] Mov dst:reg7, src:Int32(2)
- [ 48] Jump target:block5
+ [ 1c] Mov dst:reg7, src:Int32(2)
+ [ 21] Jump target:block5
block3:
- [ 50] Mov dst:reg7, src:Int32(0)
- [ 60] Jump target:block5
+ [ 26] Mov dst:reg7, src:Int32(0)
+ [ 2b] Jump target:block5
block4:
- [ 68] Catch value_feedback:0, dst:reg8
- [ 70] Mov dst:reg7, src:Int32(1)
+ [ 30] Catch value_feedback:0, dst:reg8
+ [ 35] Mov dst:reg7, src:Int32(1)
block5:
- [ 80] GetGlobal value_feedback:1, dst:reg9, `console`
- [ 90] GetById value_feedback:2, dst:reg10, base:reg9, `log`
- [ a8] Call value_feedback:3, call_feedback:0, dst:reg9, callee:reg10, this_value:reg9, arguments:[String("inner"), i~0]
- [ d0] JumpStrictlyEqualsRhsInt32 arith_feedback:1, lhs:reg7, rhs:0, true_target:block9, false_target:block6
+ [ 3a] GetGlobal value_feedback:1, dst:reg9, `console`
+ [ 43] GetById value_feedback:2, dst:reg10, base:reg9, `log`
+ [ 50] Call value_feedback:3, call_feedback:0, dst:reg9, callee:reg10, this_value:reg9, arguments:[String("inner"), i~0]
+ [ 69] JumpStrictlyEqualsRhsInt32 arith_feedback:1, lhs:reg7, rhs:0, true_target:block9, false_target:block6
block6:
- [ e8] JumpStrictlyEqualsRhsInt32 arith_feedback:2, lhs:reg7, rhs:2, true_target:block7, false_target:block8
+ [ 7a] JumpStrictlyEqualsRhsInt32 arith_feedback:2, lhs:reg7, rhs:2, true_target:block7, false_target:block8
block7:
- [ 100] Mov dst:reg5, src:Int32(2)
- [ 110] Jump target:block11
+ [ 8b] Mov dst:reg5, src:Int32(2)
+ [ 90] Jump target:block11
block8:
- [ 118] Throw src:reg8
+ [ 95] Throw src:reg8
block9:
- [ 120] Mov dst:reg5, src:Int32(0)
- [ 130] Jump target:block11
+ [ 98] Mov dst:reg5, src:Int32(0)
+ [ 9d] Jump target:block11
block10:
- [ 138] Catch value_feedback:4, dst:reg6
- [ 140] Mov dst:reg5, src:Int32(1)
+ [ a2] Catch value_feedback:4, dst:reg6
+ [ a7] Mov dst:reg5, src:Int32(1)
block11:
- [ 150] GetGlobal value_feedback:5, dst:reg7, `console`
- [ 160] GetById value_feedback:6, dst:reg8, base:reg7, `log`
- [ 178] Call value_feedback:7, call_feedback:1, dst:reg7, callee:reg8, this_value:reg7, arguments:[String("outer"), i~0]
- [ 1a0] JumpStrictlyEqualsRhsInt32 arith_feedback:3, lhs:reg5, rhs:0, true_target:block15, false_target:block12
+ [ ac] GetGlobal value_feedback:5, dst:reg7, `console`
+ [ b5] GetById value_feedback:6, dst:reg8, base:reg7, `log`
+ [ c2] Call value_feedback:7, call_feedback:1, dst:reg7, callee:reg8, this_value:reg7, arguments:[String("outer"), i~0]
+ [ db] JumpStrictlyEqualsRhsInt32 arith_feedback:3, lhs:reg5, rhs:0, true_target:block15, false_target:block12
block12:
- [ 1b8] JumpStrictlyEqualsRhsInt32 arith_feedback:4, lhs:reg5, rhs:2, true_target:block13, false_target:block14
+ [ ec] JumpStrictlyEqualsRhsInt32 arith_feedback:4, lhs:reg5, rhs:2, true_target:block13, false_target:block14
block13:
- [ 1d0] Jump target:block15
+ [ fd] Jump target:block15
block14:
- [ 1d8] Throw src:reg6
+ [ 102] Throw src:reg6
block15:
- [ 1e0] Increment arith_feedback:5, dst:i~0
+ [ 105] Increment arith_feedback:5, dst:i~0
block16:
- [ 1e8] JumpLessThanLoopRhsInt32 arith_feedback:6, lhs:i~0, rhs:3, true_target:block1, false_target:block17
+ [ 10a] JumpLessThanLoopRhsInt32 arith_feedback:6, lhs:i~0, rhs:3, true_target:block1, false_target:block17
block17:
- [ 200] End value:Undefined
+ [ 11b] End value:Undefined
Exception handlers:
- [ 20 .. 68] => handler block4
- [ 68 .. 138] => handler block10
+ [ b .. 30] => handler block4
+ [ 30 .. a2] => handler block10
"inner" 0
diff --git a/Tests/LibJS/Bytecode/expected/numeric-class-field-name.txt b/Tests/LibJS/Bytecode/expected/numeric-class-field-name.txt
index 37accdc6fd0..971f824d98f 100644
--- a/Tests/LibJS/Bytecode/expected/numeric-class-field-name.txt
+++ b/Tests/LibJS/Bytecode/expected/numeric-class-field-name.txt
@@ -1,4 +1,4 @@
-$2d2a9e5a numeric-class-field-name.js:1:1
+$32049b14 numeric-class-field-name.js:1:1
Registers: 8
Blocks: 1
Constants:
@@ -7,21 +7,21 @@ $2d2a9e5a numeric-class-field-name.js:1:1
block0:
[ 0] Enter
- [ 8] GetLexicalEnvironment dst:reg4
- [ 10] Mov dst:reg5, src:Undefined
- [ 20] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
- [ 38] CreateVariable `C`, is_immutable:true, is_global:false, is_strict:true
- [ 48] SetLexicalEnvironment environment:reg4
- [ 50] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys:[element_keys:Int32(42)]
- [ 80] DynamicInitializeLexicalBinding `C`, src:reg6
- [ 90] GetGlobal value_feedback:0, dst:reg6, `C`
- [ a0] CallConstruct value_feedback:1, call_feedback:0, dst:reg6, callee:reg6
- [ c0] GetByValue value_feedback:2, keyed_feedback:0, dst:reg6, base:reg6, property:Int32(42)
- [ e0] GetById value_feedback:3, dst:reg5, base:reg6, `name`
- [ f8] End value:reg5
+ [ 1] GetLexicalEnvironment dst:reg4
+ [ 4] Mov dst:reg5, src:Undefined
+ [ 9] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
+ [ 17] CreateVariable `C`, is_immutable:true, is_global:false, is_strict:true
+ [ 21] SetLexicalEnvironment environment:reg4
+ [ 24] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys:[element_keys:Int32(42)]
+ [ 3f] DynamicInitializeLexicalBinding `C`, src:reg6
+ [ 46] GetGlobal value_feedback:0, dst:reg6, `C`
+ [ 4f] CallConstruct value_feedback:1, call_feedback:0, dst:reg6, callee:reg6
+ [ 62] GetByValue value_feedback:2, keyed_feedback:0, dst:reg6, base:reg6, property:Int32(42)
+ [ 71] GetById value_feedback:3, dst:reg5, base:reg6, `name`
+ [ 7e] End value:reg5
-C$638b9046
+C$259e8512
Registers: 5
Blocks: 1
Constants:
@@ -29,17 +29,17 @@ C$638b9046
block0:
[ 0] Enter
- [ 8] End value:Undefined
+ [ 1] End value:Undefined
-field$b4a03b9f numeric-class-field-name.js:2:10
+field$7247b1de numeric-class-field-name.js:2:10
Registers: 7
Blocks: 1
block0:
[ 0] Enter
- [ 8] GetLexicalEnvironment dst:reg4
- [ 10] CreateLexicalEnvironment dst:reg6, parent:reg4, capacity:0, is_catch_environment:false
- [ 28] SetLexicalEnvironment environment:reg4
- [ 30] NewClass dst:reg5, class_environment:reg6, class_blueprint_index:0 (42)
- [ 58] Return value:reg5
+ [ 1] GetLexicalEnvironment dst:reg4
+ [ 4] CreateLexicalEnvironment dst:reg6, parent:reg4, capacity:0, is_catch_environment:false
+ [ 12] SetLexicalEnvironment environment:reg4
+ [ 15] NewClass dst:reg5, class_environment:reg6, class_blueprint_index:0 (42)
+ [ 2e] Return value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/numeric-getter-no-lhs-name.txt b/Tests/LibJS/Bytecode/expected/numeric-getter-no-lhs-name.txt
index 4eeecf837d0..d55bdff622f 100644
--- a/Tests/LibJS/Bytecode/expected/numeric-getter-no-lhs-name.txt
+++ b/Tests/LibJS/Bytecode/expected/numeric-getter-no-lhs-name.txt
@@ -1,4 +1,4 @@
-$90d14739 numeric-getter-no-lhs-name.js:1:5
+$64070c4f numeric-getter-no-lhs-name.js:1:5
Registers: 8
Blocks: 1
Constants:
@@ -7,18 +7,18 @@ $90d14739 numeric-getter-no-lhs-name.js:1:5
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] NewObject dst:reg6
- [ 28] NewFunction dst:reg7, shared_function_data_index:0 (get 0), home_object:reg6
- [ 40] PutByValue keyed_feedback:0, base:reg6, property:Int32(0), src:reg7, kind:Getter
- [ 60] SetGlobal `obj`, src:reg6
- [ 70] GetGlobal value_feedback:0, dst:reg6, `obj`
- [ 80] GetByValue value_feedback:1, keyed_feedback:1, dst:reg6, base:reg6, property:Int32(0)
- [ a0] Mov dst:reg5, src:reg6
- [ b0] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] NewObject dst:reg6
+ [ b] NewFunction dst:reg7, shared_function_data_index:0 (get 0), home_object:reg6
+ [ 16] PutByValue keyed_feedback:0, base:reg6, property:Int32(0), src:reg7, kind:Getter
+ [ 27] SetGlobal `obj`, src:reg6
+ [ 2e] GetGlobal value_feedback:0, dst:reg6, `obj`
+ [ 37] GetByValue value_feedback:1, keyed_feedback:1, dst:reg6, base:reg6, property:Int32(0)
+ [ 46] Mov dst:reg5, src:reg6
+ [ 4b] End value:reg5
-get 0$d054d509 numeric-getter-no-lhs-name.js:3:9
+get 0$0e41e03d numeric-getter-no-lhs-name.js:3:9
Registers: 5
Blocks: 1
Constants:
@@ -26,4 +26,4 @@ get 0$d054d509 numeric-getter-no-lhs-name.js:3:9
block0:
[ 0] Enter
- [ 8] Return value:Int32(42)
+ [ 1] Return value:Int32(42)
diff --git a/Tests/LibJS/Bytecode/expected/numeric-index-object-literal.txt b/Tests/LibJS/Bytecode/expected/numeric-index-object-literal.txt
index 2fca4d24c8e..d328c6575e1 100644
--- a/Tests/LibJS/Bytecode/expected/numeric-index-object-literal.txt
+++ b/Tests/LibJS/Bytecode/expected/numeric-index-object-literal.txt
@@ -1,4 +1,4 @@
-$28d58d80 numeric-index-object-literal.js:4:1
+$6d66de67 numeric-index-object-literal.js:4:1
Registers: 7
Blocks: 1
Constants:
@@ -6,13 +6,13 @@ $28d58d80 numeric-index-object-literal.js:4:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `test`
- [ 28] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 48] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `test`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 24] End value:reg5
-test$815e337c numeric-index-object-literal.js:2:5
+test$a0dfe300 numeric-index-object-literal.js:2:5
Registers: 6
Blocks: 1
Constants:
@@ -25,8 +25,8 @@ test$815e337c numeric-index-object-literal.js:2:5
block0:
[ 0] Enter
- [ 8] NewObject dst:reg5
- [ 18] PutByValue keyed_feedback:0, base:reg5, property:Int32(100), src:Int32(1), kind:Own
- [ 38] PutByValue keyed_feedback:1, base:reg5, property:Int32(200), src:Int32(2), kind:Own
- [ 58] PutByValue keyed_feedback:2, base:reg5, property:Int32(300), src:Int32(3), kind:Own
- [ 78] Return value:reg5
+ [ 1] NewObject dst:reg5
+ [ 6] PutByValue keyed_feedback:0, base:reg5, property:Int32(100), src:Int32(1), kind:Own
+ [ 17] PutByValue keyed_feedback:1, base:reg5, property:Int32(200), src:Int32(2), kind:Own
+ [ 28] PutByValue keyed_feedback:2, base:reg5, property:Int32(300), src:Int32(3), kind:Own
+ [ 39] Return value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/numeric-property-key.txt b/Tests/LibJS/Bytecode/expected/numeric-property-key.txt
index dd55b01bcc4..5fb077f94a0 100644
--- a/Tests/LibJS/Bytecode/expected/numeric-property-key.txt
+++ b/Tests/LibJS/Bytecode/expected/numeric-property-key.txt
@@ -1,4 +1,4 @@
-$bcc665b4 numeric-property-key.js:4:5
+$115e2352 numeric-property-key.js:4:5
Registers: 7
Blocks: 1
Constants:
@@ -8,8 +8,8 @@ $bcc665b4 numeric-property-key.js:4:5
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] NewObject dst:reg6
- [ 28] PutByValue keyed_feedback:0, base:reg6, property:Int32(20), src:Int32(3), kind:Own
- [ 48] SetGlobal `obj`, src:reg6
- [ 58] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] NewObject dst:reg6
+ [ b] PutByValue keyed_feedback:0, base:reg6, property:Int32(20), src:Int32(3), kind:Own
+ [ 1c] SetGlobal `obj`, src:reg6
+ [ 23] End value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/object-destructuring-rebinds-source-variable.txt b/Tests/LibJS/Bytecode/expected/object-destructuring-rebinds-source-variable.txt
index d7456aeca75..e6525b0757f 100644
--- a/Tests/LibJS/Bytecode/expected/object-destructuring-rebinds-source-variable.txt
+++ b/Tests/LibJS/Bytecode/expected/object-destructuring-rebinds-source-variable.txt
@@ -1,4 +1,4 @@
-$dc34ec86 object-destructuring-rebinds-source-variable.js:5:1
+$79a6be1c object-destructuring-rebinds-source-variable.js:5:1
Registers: 10
Blocks: 1
Constants:
@@ -9,21 +9,21 @@ $dc34ec86 object-destructuring-rebinds-source-variable.js:5:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `console`
- [ 28] GetById value_feedback:1, dst:reg7, base:reg6, `log`
- [ 40] GetGlobal value_feedback:2, dst:reg8, `run`
- [ 50] NewObject dst:reg9
- [ 60] InitObjectLiteralProperty object:reg9, `first`, src:Int32(1), shape_cache_index:0, property_slot:0
- [ 78] InitObjectLiteralProperty object:reg9, `second`, src:Int32(2), shape_cache_index:0, property_slot:1
- [ 90] InitObjectLiteralProperty object:reg9, `third`, src:Int32(3), shape_cache_index:0, property_slot:2
- [ a8] CacheObjectShape object:reg9
- [ b8] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined, arguments:[reg9]
- [ e0] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 108] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `console`
+ [ f] GetById value_feedback:1, dst:reg7, base:reg6, `log`
+ [ 1c] GetGlobal value_feedback:2, dst:reg8, `run`
+ [ 25] NewObject dst:reg9
+ [ 2a] InitObjectLiteralProperty object:reg9, `first`, src:Int32(1), shape_cache_index:0, property_slot:0
+ [ 39] InitObjectLiteralProperty object:reg9, `second`, src:Int32(2), shape_cache_index:0, property_slot:1
+ [ 48] InitObjectLiteralProperty object:reg9, `third`, src:Int32(3), shape_cache_index:0, property_slot:2
+ [ 57] CacheObjectShape object:reg9
+ [ 5c] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined, arguments:[reg9]
+ [ 73] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 8a] End value:reg5
-run$36ddb953 object-destructuring-rebinds-source-variable.js:2:5
+run$77038bad object-destructuring-rebinds-source-variable.js:2:5
Registers: 7
Blocks: 1
Locals: first~0, third~1
@@ -32,15 +32,15 @@ run$36ddb953 object-destructuring-rebinds-source-variable.js:2:5
block0:
[ 0] Enter
- [ 8] Mov dst:first~0, src:Undefined
- [ 18] Mov dst:third~1, src:Undefined
- [ 28] ThrowIfNullish src:arg0
- [ 30] Mov dst:reg5, src:arg0
- [ 40] GetById value_feedback:0, dst:first~0, base:reg5, `first`
- [ 58] GetById value_feedback:1, dst:arg0, base:reg5, `second`
- [ 70] GetById value_feedback:2, dst:third~1, base:reg5, `third`
- [ 88] NewArray dst:reg5, elements:[first~0, arg0, third~1]
- [ a8] Return value:reg5
+ [ 1] Mov dst:first~0, src:Undefined
+ [ 6] Mov dst:third~1, src:Undefined
+ [ b] ThrowIfNullish src:arg0
+ [ e] Mov dst:reg5, src:arg0
+ [ 13] GetById value_feedback:0, dst:first~0, base:reg5, `first`
+ [ 20] GetById value_feedback:1, dst:arg0, base:reg5, `second`
+ [ 2d] GetById value_feedback:2, dst:third~1, base:reg5, `third`
+ [ 3a] NewArray dst:reg5, elements:[first~0, arg0, third~1]
+ [ 4b] Return value:reg5
Array [1, 2, 3]
diff --git a/Tests/LibJS/Bytecode/expected/object-rest-computed-key.txt b/Tests/LibJS/Bytecode/expected/object-rest-computed-key.txt
index b0fbd3d0f1e..12d08ff8c78 100644
--- a/Tests/LibJS/Bytecode/expected/object-rest-computed-key.txt
+++ b/Tests/LibJS/Bytecode/expected/object-rest-computed-key.txt
@@ -1,4 +1,4 @@
-$39071a5e object-rest-computed-key.js:1:5
+$f4e447a4 object-rest-computed-key.js:1:5
Registers: 10
Blocks: 1
Constants:
@@ -9,17 +9,17 @@ $39071a5e object-rest-computed-key.js:1:5
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] SetGlobal `a`, src:String("foo")
- [ 28] NewObject dst:reg6
- [ 38] InitObjectLiteralProperty object:reg6, `foo`, src:Int32(1), shape_cache_index:0, property_slot:0
- [ 50] InitObjectLiteralProperty object:reg6, `bar`, src:Int32(2), shape_cache_index:0, property_slot:1
- [ 68] CacheObjectShape object:reg6
- [ 78] ThrowIfNullish src:reg6
- [ 80] GetGlobal value_feedback:0, dst:reg7, `a`
- [ 90] ToPrimitiveWithStringHint dst:reg8, value:reg7
- [ a0] GetByValue value_feedback:1, keyed_feedback:0, dst:reg9, base:reg6, property:reg8
- [ c0] SetGlobal `b`, src:reg9
- [ d0] CopyObjectExcludingProperties dst:reg9, from_object:reg6, excluded_names:[reg8]
- [ f0] SetGlobal `rest`, src:reg9
- [ 100] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] SetGlobal `a`, src:String("foo")
+ [ d] NewObject dst:reg6
+ [ 12] InitObjectLiteralProperty object:reg6, `foo`, src:Int32(1), shape_cache_index:0, property_slot:0
+ [ 21] InitObjectLiteralProperty object:reg6, `bar`, src:Int32(2), shape_cache_index:0, property_slot:1
+ [ 30] CacheObjectShape object:reg6
+ [ 35] ThrowIfNullish src:reg6
+ [ 38] GetGlobal value_feedback:0, dst:reg7, `a`
+ [ 41] ToPrimitiveWithStringHint dst:reg8, value:reg7
+ [ 46] GetByValue value_feedback:1, keyed_feedback:0, dst:reg9, base:reg6, property:reg8
+ [ 55] SetGlobal `b`, src:reg9
+ [ 5c] CopyObjectExcludingProperties dst:reg9, from_object:reg6, excluded_names:[reg8]
+ [ 6b] SetGlobal `rest`, src:reg9
+ [ 72] End value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/optional-chain-base-identifier.txt b/Tests/LibJS/Bytecode/expected/optional-chain-base-identifier.txt
index 77e2eea7213..37f0c2e3aeb 100644
--- a/Tests/LibJS/Bytecode/expected/optional-chain-base-identifier.txt
+++ b/Tests/LibJS/Bytecode/expected/optional-chain-base-identifier.txt
@@ -1,4 +1,4 @@
-$3643294e optional-chain-base-identifier.js:1:5
+$169ebe4e optional-chain-base-identifier.js:1:5
Registers: 8
Blocks: 4
Constants:
@@ -7,25 +7,25 @@ $3643294e optional-chain-base-identifier.js:1:5
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] NewObject dst:reg6
- [ 28] NewObject dst:reg7
- [ 38] InitObjectLiteralProperty object:reg7, `b`, src:Int32(44), shape_cache_index:1, property_slot:0
- [ 50] CacheObjectShape object:reg7
- [ 60] InitObjectLiteralProperty object:reg6, `a`, src:reg7, shape_cache_index:0, property_slot:0
- [ 78] CacheObjectShape object:reg6
- [ 88] SetGlobal `obj`, src:reg6
- [ 98] GetGlobal value_feedback:0, dst:reg6, `obj`
- [ a8] GetById value_feedback:1, dst:reg6, base:reg6, `a`
- [ c0] JumpNullish condition:reg6, true_target:block2, false_target:block1
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] NewObject dst:reg6
+ [ b] NewObject dst:reg7
+ [ 10] InitObjectLiteralProperty object:reg7, `b`, src:Int32(44), shape_cache_index:1, property_slot:0
+ [ 1f] CacheObjectShape object:reg7
+ [ 24] InitObjectLiteralProperty object:reg6, `a`, src:reg7, shape_cache_index:0, property_slot:0
+ [ 33] CacheObjectShape object:reg6
+ [ 38] SetGlobal `obj`, src:reg6
+ [ 3f] GetGlobal value_feedback:0, dst:reg6, `obj`
+ [ 48] GetById value_feedback:1, dst:reg6, base:reg6, `a`
+ [ 55] JumpNullish condition:reg6, true_target:block2, false_target:block1
block1:
- [ d0] GetById value_feedback:2, dst:reg6, base:reg6, `b`
- [ e8] Jump target:block3
+ [ 60] GetById value_feedback:2, dst:reg6, base:reg6, `b`
+ [ 6d] Jump target:block3
block2:
- [ f0] Mov dst:reg6, src:Undefined
+ [ 72] Mov dst:reg6, src:Undefined
block3:
- [ 100] Mov dst:reg5, src:reg6
- [ 110] End value:reg5
+ [ 77] Mov dst:reg5, src:reg6
+ [ 7c] End value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/optional-chain.txt b/Tests/LibJS/Bytecode/expected/optional-chain.txt
index 8c6abdfd384..1942d77fe6a 100644
--- a/Tests/LibJS/Bytecode/expected/optional-chain.txt
+++ b/Tests/LibJS/Bytecode/expected/optional-chain.txt
@@ -1,4 +1,4 @@
-$f4816da2 optional-chain.js:25:1
+$7abd62e4 optional-chain.js:25:1
Registers: 7
Blocks: 1
Constants:
@@ -7,23 +7,23 @@ $f4816da2 optional-chain.js:25:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `member`
- [ 28] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Null]
- [ 50] GetGlobal value_feedback:2, dst:reg6, `nested_member`
- [ 60] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Null]
- [ 88] GetGlobal value_feedback:4, dst:reg6, `call_no_args`
- [ 98] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Null]
- [ c0] GetGlobal value_feedback:6, dst:reg6, `call_with_args`
- [ d0] Call value_feedback:7, call_feedback:3, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Null]
- [ f8] GetGlobal value_feedback:8, dst:reg6, `computed`
- [ 108] Call value_feedback:9, call_feedback:4, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Null]
- [ 130] GetGlobal value_feedback:10, dst:reg6, `member_then_call`
- [ 140] Call value_feedback:11, call_feedback:5, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Null]
- [ 168] End value:reg5
-
-
-member$342748bf optional-chain.js:7:5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `member`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Null]
+ [ 26] GetGlobal value_feedback:2, dst:reg6, `nested_member`
+ [ 2f] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Null]
+ [ 46] GetGlobal value_feedback:4, dst:reg6, `call_no_args`
+ [ 4f] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Null]
+ [ 66] GetGlobal value_feedback:6, dst:reg6, `call_with_args`
+ [ 6f] Call value_feedback:7, call_feedback:3, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Null]
+ [ 86] GetGlobal value_feedback:8, dst:reg6, `computed`
+ [ 8f] Call value_feedback:9, call_feedback:4, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Null]
+ [ a6] GetGlobal value_feedback:10, dst:reg6, `member_then_call`
+ [ af] Call value_feedback:11, call_feedback:5, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Null]
+ [ c6] End value:reg5
+
+
+member$b730cec4 optional-chain.js:7:5
Registers: 7
Blocks: 4
Constants:
@@ -31,21 +31,21 @@ member$342748bf optional-chain.js:7:5
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:arg0
- [ 18] JumpNullish condition:reg5, true_target:block2, false_target:block1
+ [ 1] Mov dst:reg5, src:arg0
+ [ 6] JumpNullish condition:reg5, true_target:block2, false_target:block1
block1:
- [ 28] GetById value_feedback:0, dst:reg6, base:reg5, `x`
- [ 40] Jump target:block3
+ [ 11] GetById value_feedback:0, dst:reg6, base:reg5, `x`
+ [ 1e] Jump target:block3
block2:
- [ 48] Mov dst:reg6, src:Undefined
+ [ 23] Mov dst:reg6, src:Undefined
block3:
- [ 58] Return value:reg6
+ [ 28] Return value:reg6
-nested_member$8b58ebb8 optional-chain.js:10:5
+nested_member$1baafd23 optional-chain.js:10:5
Registers: 7
Blocks: 5
Constants:
@@ -53,25 +53,25 @@ nested_member$8b58ebb8 optional-chain.js:10:5
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:arg0
- [ 18] JumpNullish condition:reg5, true_target:block3, false_target:block1
+ [ 1] Mov dst:reg5, src:arg0
+ [ 6] JumpNullish condition:reg5, true_target:block3, false_target:block1
block1:
- [ 28] GetById value_feedback:0, dst:reg6, base:reg5, `x`
- [ 40] JumpNullish condition:reg6, true_target:block3, false_target:block2
+ [ 11] GetById value_feedback:0, dst:reg6, base:reg5, `x`
+ [ 1e] JumpNullish condition:reg6, true_target:block3, false_target:block2
block2:
- [ 50] GetById value_feedback:1, dst:reg6, base:reg6, `y`
- [ 68] Jump target:block4
+ [ 29] GetById value_feedback:1, dst:reg6, base:reg6, `y`
+ [ 36] Jump target:block4
block3:
- [ 70] Mov dst:reg6, src:Undefined
+ [ 3b] Mov dst:reg6, src:Undefined
block4:
- [ 80] Return value:reg6
+ [ 40] Return value:reg6
-call_no_args$e9b6bc91 optional-chain.js:13:5
+call_no_args$dea6f851 optional-chain.js:13:5
Registers: 7
Blocks: 4
Constants:
@@ -79,22 +79,22 @@ call_no_args$e9b6bc91 optional-chain.js:13:5
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:arg0
- [ 18] JumpNullish condition:reg5, true_target:block2, false_target:block1
+ [ 1] Mov dst:reg5, src:arg0
+ [ 6] JumpNullish condition:reg5, true_target:block2, false_target:block1
block1:
- [ 28] GetById value_feedback:0, dst:reg6, base:reg5, `foo`
- [ 40] Call value_feedback:1, call_feedback:0, dst:reg6, callee:reg6, this_value:reg5
- [ 60] Jump target:block3
+ [ 11] GetById value_feedback:0, dst:reg6, base:reg5, `foo`
+ [ 1e] Call value_feedback:1, call_feedback:0, dst:reg6, callee:reg6, this_value:reg5
+ [ 33] Jump target:block3
block2:
- [ 68] Mov dst:reg6, src:Undefined
+ [ 38] Mov dst:reg6, src:Undefined
block3:
- [ 78] Return value:reg6
+ [ 3d] Return value:reg6
-call_with_args$416fd2d7 optional-chain.js:16:5
+call_with_args$6e3a0dc1 optional-chain.js:16:5
Registers: 7
Blocks: 4
Constants:
@@ -105,45 +105,44 @@ call_with_args$416fd2d7 optional-chain.js:16:5
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:arg0
- [ 18] JumpNullish condition:reg5, true_target:block2, false_target:block1
+ [ 1] Mov dst:reg5, src:arg0
+ [ 6] JumpNullish condition:reg5, true_target:block2, false_target:block1
block1:
- [ 28] GetById value_feedback:0, dst:reg6, base:reg5, `foo`
- [ 40] Call value_feedback:1, call_feedback:0, dst:reg6, callee:reg6, this_value:reg5, arguments:[Int32(1), Int32(2), Int32(3)]
- [ 70] Jump target:block3
+ [ 11] GetById value_feedback:0, dst:reg6, base:reg5, `foo`
+ [ 1e] Call value_feedback:1, call_feedback:0, dst:reg6, callee:reg6, this_value:reg5, arguments:[Int32(1), Int32(2), Int32(3)]
+ [ 39] Jump target:block3
block2:
- [ 78] Mov dst:reg6, src:Undefined
+ [ 3e] Mov dst:reg6, src:Undefined
block3:
- [ 88] Return value:reg6
+ [ 43] Return value:reg6
-computed$9c34604a optional-chain.js:19:5
+computed$d5b5ecf1 optional-chain.js:19:5
Registers: 7
Blocks: 4
Constants:
- [0] = String("hello")
- [1] = Undefined
+ [0] = Undefined
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:arg0
- [ 18] JumpNullish condition:reg5, true_target:block2, false_target:block1
+ [ 1] Mov dst:reg5, src:arg0
+ [ 6] JumpNullish condition:reg5, true_target:block2, false_target:block1
block1:
- [ 28] GetById value_feedback:0, dst:reg6, base:reg5, `hello`
- [ 40] Jump target:block3
+ [ 11] GetById value_feedback:0, dst:reg6, base:reg5, `hello`
+ [ 1e] Jump target:block3
block2:
- [ 48] Mov dst:reg6, src:Undefined
+ [ 23] Mov dst:reg6, src:Undefined
block3:
- [ 58] Return value:reg6
+ [ 28] Return value:reg6
-member_then_call$4271f2ab optional-chain.js:22:5
+member_then_call$0f03720e optional-chain.js:22:5
Registers: 8
Blocks: 4
Constants:
@@ -151,17 +150,17 @@ member_then_call$4271f2ab optional-chain.js:22:5
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:arg0
- [ 18] JumpNullish condition:reg5, true_target:block2, false_target:block1
+ [ 1] Mov dst:reg5, src:arg0
+ [ 6] JumpNullish condition:reg5, true_target:block2, false_target:block1
block1:
- [ 28] GetById value_feedback:0, dst:reg6, base:reg5, `x`
- [ 40] GetById value_feedback:1, dst:reg7, base:reg6, `foo`
- [ 58] Call value_feedback:2, call_feedback:0, dst:reg6, callee:reg7, this_value:reg6
- [ 78] Jump target:block3
+ [ 11] GetById value_feedback:0, dst:reg6, base:reg5, `x`
+ [ 1e] GetById value_feedback:1, dst:reg7, base:reg6, `foo`
+ [ 2b] Call value_feedback:2, call_feedback:0, dst:reg6, callee:reg7, this_value:reg6
+ [ 40] Jump target:block3
block2:
- [ 80] Mov dst:reg6, src:Undefined
+ [ 45] Mov dst:reg6, src:Undefined
block3:
- [ 90] Return value:reg6
+ [ 4a] Return value:reg6
diff --git a/Tests/LibJS/Bytecode/expected/parameter-createvariable-order.txt b/Tests/LibJS/Bytecode/expected/parameter-createvariable-order.txt
index 21152beea85..8dc9bac4667 100644
--- a/Tests/LibJS/Bytecode/expected/parameter-createvariable-order.txt
+++ b/Tests/LibJS/Bytecode/expected/parameter-createvariable-order.txt
@@ -1,4 +1,4 @@
-$d59017a3 parameter-createvariable-order.js:7:1
+$3c67091e parameter-createvariable-order.js:7:1
Registers: 7
Blocks: 1
Constants:
@@ -9,13 +9,13 @@ $d59017a3 parameter-createvariable-order.js:7:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `f`
- [ 28] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(1), Int32(2), Int32(3)]
- [ 58] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `f`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(1), Int32(2), Int32(3)]
+ [ 2a] End value:reg5
-f$9434bbb0 parameter-createvariable-order.js:2:9
+f$d834d2ee parameter-createvariable-order.js:2:9
Registers: 6
Blocks: 1
Locals: inner~0
@@ -24,27 +24,27 @@ f$9434bbb0 parameter-createvariable-order.js:2:9
block0:
[ 0] Enter
- [ 8] CreateVariable `a`, is_immutable:false, is_global:false, is_strict:false
- [ 18] InitializeLexicalBinding `a`, src:arg0
- [ 30] CreateVariable `b`, is_immutable:false, is_global:false, is_strict:false
- [ 40] InitializeLexicalBinding `b`, src:arg1
- [ 58] CreateVariable `c`, is_immutable:false, is_global:false, is_strict:false
- [ 68] InitializeLexicalBinding `c`, src:arg2
- [ 80] Mov dst:inner~0, src:Undefined
- [ 90] NewFunction dst:inner~0, shared_function_data_index:0 (inner)
- [ a8] Call value_feedback:0, call_feedback:0, dst:reg5, callee:inner~0, this_value:Undefined
- [ c8] Return value:reg5
+ [ 1] CreateVariable `a`, is_immutable:false, is_global:false, is_strict:false
+ [ b] InitializeLexicalBinding `a`, src:arg0
+ [ 18] CreateVariable `b`, is_immutable:false, is_global:false, is_strict:false
+ [ 22] InitializeLexicalBinding `b`, src:arg1
+ [ 2f] CreateVariable `c`, is_immutable:false, is_global:false, is_strict:false
+ [ 39] InitializeLexicalBinding `c`, src:arg2
+ [ 46] Mov dst:inner~0, src:Undefined
+ [ 4b] NewFunction dst:inner~0, shared_function_data_index:0 (inner)
+ [ 56] Call value_feedback:0, call_feedback:0, dst:reg5, callee:inner~0, this_value:Undefined
+ [ 6b] Return value:reg5
-inner$1fee03d9 parameter-createvariable-order.js:3:9
+inner$f7041d92 parameter-createvariable-order.js:3:9
Registers: 7
Blocks: 1
block0:
[ 0] Enter
- [ 8] GetBinding value_feedback:0, dst:reg5, `a`
- [ 20] GetBinding value_feedback:1, dst:reg6, `b`
- [ 38] Add arith_feedback:0, dst:reg5, lhs:reg5, rhs:reg6
- [ 48] GetBinding value_feedback:2, dst:reg6, `c`
- [ 60] Add arith_feedback:1, dst:reg5, lhs:reg5, rhs:reg6
- [ 70] Return value:reg5
+ [ 1] GetBinding value_feedback:0, dst:reg5, `a`
+ [ 10] GetBinding value_feedback:1, dst:reg6, `b`
+ [ 1f] Add arith_feedback:0, dst:reg5, lhs:reg5, rhs:reg6
+ [ 28] GetBinding value_feedback:2, dst:reg6, `c`
+ [ 37] Add arith_feedback:1, dst:reg5, lhs:reg5, rhs:reg6
+ [ 40] Return value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/parameter-environment-capacity.txt b/Tests/LibJS/Bytecode/expected/parameter-environment-capacity.txt
index e01f541d2bf..8c4d165f87f 100644
--- a/Tests/LibJS/Bytecode/expected/parameter-environment-capacity.txt
+++ b/Tests/LibJS/Bytecode/expected/parameter-environment-capacity.txt
@@ -1,4 +1,4 @@
-$0a0209d9 parameter-environment-capacity.js:10:1
+$c73b01eb parameter-environment-capacity.js:10:1
Registers: 8
Blocks: 1
Constants:
@@ -7,23 +7,23 @@ $0a0209d9 parameter-environment-capacity.js:10:1
block0:
[ 0] Enter
- [ 8] GetLexicalEnvironment dst:reg4
- [ 10] Mov dst:reg5, src:Undefined
- [ 20] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
- [ 38] CreateVariable `Strict`, is_immutable:true, is_global:false, is_strict:true
- [ 48] SetLexicalEnvironment environment:reg4
- [ 50] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys:[element_keys:String("method")]
- [ 80] DynamicInitializeLexicalBinding `Strict`, src:reg6
- [ 90] GetGlobal value_feedback:0, dst:reg6, `sloppy`
- [ a0] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ c0] GetGlobal value_feedback:2, dst:reg6, `Strict`
- [ d0] CallConstruct value_feedback:3, call_feedback:1, dst:reg6, callee:reg6
- [ f0] GetById value_feedback:4, dst:reg7, base:reg6, `method`
- [ 108] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg7, this_value:reg6
- [ 128] End value:reg5
+ [ 1] GetLexicalEnvironment dst:reg4
+ [ 4] Mov dst:reg5, src:Undefined
+ [ 9] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
+ [ 17] CreateVariable `Strict`, is_immutable:true, is_global:false, is_strict:true
+ [ 21] SetLexicalEnvironment environment:reg4
+ [ 24] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys:[element_keys:String("method")]
+ [ 3f] DynamicInitializeLexicalBinding `Strict`, src:reg6
+ [ 46] GetGlobal value_feedback:0, dst:reg6, `sloppy`
+ [ 4f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 64] GetGlobal value_feedback:2, dst:reg6, `Strict`
+ [ 6d] CallConstruct value_feedback:3, call_feedback:1, dst:reg6, callee:reg6
+ [ 80] GetById value_feedback:4, dst:reg7, base:reg6, `method`
+ [ 8d] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg7, this_value:reg6
+ [ a2] End value:reg5
-sloppy$1bf697a3 parameter-environment-capacity.js:6:17
+sloppy$fb58848c parameter-environment-capacity.js:6:17
Registers: 6
Blocks: 3
Constants:
@@ -31,20 +31,20 @@ sloppy$1bf697a3 parameter-environment-capacity.js:6:17
block0:
[ 0] Enter
- [ 8] CreateVariable `a`, is_immutable:false, is_global:false, is_strict:false
- [ 18] CreateArguments is_immutable:false, creates_parameter_bindings:false
- [ 28] JumpUndefined condition:arg0, true_target:block1, false_target:block2
+ [ 1] CreateVariable `a`, is_immutable:false, is_global:false, is_strict:false
+ [ b] CreateArguments is_immutable:false, creates_parameter_bindings:false
+ [ 14] JumpUndefined condition:arg0, true_target:block1, false_target:block2
block1:
- [ 38] Mov dst:arg0, src:Int32(1)
+ [ 1f] Mov dst:arg0, src:Int32(1)
block2:
- [ 48] InitializeLexicalBinding `a`, src:arg0
- [ 60] NewFunction dst:reg5, shared_function_data_index:0
- [ 78] Return value:reg5
+ [ 24] InitializeLexicalBinding `a`, src:arg0
+ [ 31] NewFunction dst:reg5, shared_function_data_index:0
+ [ 3c] Return value:reg5
-Strict$80fdfc06
+Strict$4310f0d2
Registers: 5
Blocks: 1
Constants:
@@ -52,10 +52,10 @@ Strict$80fdfc06
block0:
[ 0] Enter
- [ 8] End value:Undefined
+ [ 1] End value:Undefined
-method$df6331aa parameter-environment-capacity.js:11:12
+method$17a59f42 parameter-environment-capacity.js:11:12
Registers: 7
Blocks: 3
Constants:
@@ -64,22 +64,22 @@ method$df6331aa parameter-environment-capacity.js:11:12
block0:
[ 0] Enter
- [ 8] CreateVariable `mode`, is_immutable:false, is_global:false, is_strict:false
- [ 18] CreateVariable `index`, is_immutable:false, is_global:false, is_strict:false
- [ 28] GetLexicalEnvironment dst:reg4
- [ 30] JumpUndefined condition:arg0, true_target:block1, false_target:block2
+ [ 1] CreateVariable `mode`, is_immutable:false, is_global:false, is_strict:false
+ [ b] CreateVariable `index`, is_immutable:false, is_global:false, is_strict:false
+ [ 15] GetLexicalEnvironment dst:reg4
+ [ 18] JumpUndefined condition:arg0, true_target:block1, false_target:block2
block1:
- [ 40] Mov dst:arg0, src:String("x")
+ [ 23] Mov dst:arg0, src:String("x")
block2:
- [ 50] InitializeLexicalBinding `mode`, src:arg0
- [ 68] InitializeLexicalBinding `index`, src:arg1
- [ 80] CreateVariableEnvironment capacity:1
- [ 88] GetLexicalEnvironment dst:reg5
- [ 90] CreateVariable `active`, is_immutable:true, is_global:false, is_strict:true
- [ a0] GetBinding value_feedback:0, dst:reg6, `mode`
- [ b8] StrictlyEquals arith_feedback:0, dst:reg6, lhs:reg6, rhs:String("a")
- [ c8] InitializeLexicalBinding `active`, src:reg6
- [ e0] NewFunction dst:reg6, shared_function_data_index:0
- [ f8] Return value:reg6
+ [ 28] InitializeLexicalBinding `mode`, src:arg0
+ [ 35] InitializeLexicalBinding `index`, src:arg1
+ [ 42] CreateVariableEnvironment capacity:1
+ [ 47] GetLexicalEnvironment dst:reg5
+ [ 4a] CreateVariable `active`, is_immutable:true, is_global:false, is_strict:true
+ [ 54] GetBinding value_feedback:0, dst:reg6, `mode`
+ [ 63] StrictlyEquals arith_feedback:0, dst:reg6, lhs:reg6, rhs:String("a")
+ [ 6c] InitializeLexicalBinding `active`, src:reg6
+ [ 79] NewFunction dst:reg6, shared_function_data_index:0
+ [ 84] Return value:reg6
diff --git a/Tests/LibJS/Bytecode/expected/postfix-increment-private-member.txt b/Tests/LibJS/Bytecode/expected/postfix-increment-private-member.txt
index 24192491472..9d324d5477a 100644
--- a/Tests/LibJS/Bytecode/expected/postfix-increment-private-member.txt
+++ b/Tests/LibJS/Bytecode/expected/postfix-increment-private-member.txt
@@ -1,4 +1,4 @@
-$abc8a5d2 postfix-increment-private-member.js:1:1
+$633a548b postfix-increment-private-member.js:1:1
Registers: 8
Blocks: 1
Constants:
@@ -7,24 +7,24 @@ $abc8a5d2 postfix-increment-private-member.js:1:1
block0:
[ 0] Enter
- [ 8] GetLexicalEnvironment dst:reg4
- [ 10] Mov dst:reg5, src:Undefined
- [ 20] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
- [ 38] CreateVariable `C`, is_immutable:true, is_global:false, is_strict:true
- [ 48] CreatePrivateEnvironment
- [ 50] AddPrivateName `#c`
- [ 58] SetLexicalEnvironment environment:reg4
- [ 60] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys:[element_keys:String("nextId")]
- [ 90] LeavePrivateEnvironment
- [ 98] DynamicInitializeLexicalBinding `C`, src:reg6
- [ a8] GetGlobal value_feedback:0, dst:reg6, `C`
- [ b8] CallConstruct value_feedback:1, call_feedback:0, dst:reg6, callee:reg6
- [ d8] GetById value_feedback:2, dst:reg7, base:reg6, `nextId`
- [ f0] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6
- [ 110] End value:reg5
+ [ 1] GetLexicalEnvironment dst:reg4
+ [ 4] Mov dst:reg5, src:Undefined
+ [ 9] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
+ [ 17] CreateVariable `C`, is_immutable:true, is_global:false, is_strict:true
+ [ 21] CreatePrivateEnvironment
+ [ 22] AddPrivateName `#c`
+ [ 25] SetLexicalEnvironment environment:reg4
+ [ 28] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys:[element_keys:String("nextId")]
+ [ 45] LeavePrivateEnvironment
+ [ 46] DynamicInitializeLexicalBinding `C`, src:reg6
+ [ 4d] GetGlobal value_feedback:0, dst:reg6, `C`
+ [ 56] CallConstruct value_feedback:1, call_feedback:0, dst:reg6, callee:reg6
+ [ 69] GetById value_feedback:2, dst:reg7, base:reg6, `nextId`
+ [ 76] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6
+ [ 8b] End value:reg5
-C$638b9046
+C$259e8512
Registers: 5
Blocks: 1
Constants:
@@ -32,10 +32,10 @@ C$638b9046
block0:
[ 0] Enter
- [ 8] End value:Undefined
+ [ 1] End value:Undefined
-nextId$2a2f81aa postfix-increment-private-member.js:4:9
+nextId$9d329af8 postfix-increment-private-member.js:4:9
Registers: 7
Blocks: 1
Constants:
@@ -43,8 +43,8 @@ nextId$2a2f81aa postfix-increment-private-member.js:4:9
block0:
[ 0] Enter
- [ 8] GetPrivateById dst:reg5, base:this, `#c`
- [ 18] PostfixIncrement arith_feedback:0, dst:reg6, src:reg5
- [ 28] PutPrivateById base:this, `#c`, src:reg5
- [ 38] Add arith_feedback:1, dst:reg5, lhs:String("id-"), rhs:reg6
- [ 48] Return value:reg5
+ [ 1] GetPrivateById dst:reg5, base:this, `#c`
+ [ 8] PostfixIncrement arith_feedback:0, dst:reg6, src:reg5
+ [ f] PutPrivateById base:this, `#c`, src:reg5
+ [ 16] Add arith_feedback:1, dst:reg5, lhs:String("id-"), rhs:reg6
+ [ 1f] Return value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/postfix-update-in-logical-and.txt b/Tests/LibJS/Bytecode/expected/postfix-update-in-logical-and.txt
index 3241a3cc683..c06aef19792 100644
--- a/Tests/LibJS/Bytecode/expected/postfix-update-in-logical-and.txt
+++ b/Tests/LibJS/Bytecode/expected/postfix-update-in-logical-and.txt
@@ -1,4 +1,4 @@
-$aa378608 postfix-update-in-logical-and.js:4:1
+$0dbf5c89 postfix-update-in-logical-and.js:4:1
Registers: 7
Blocks: 1
Constants:
@@ -7,26 +7,24 @@ $aa378608 postfix-update-in-logical-and.js:4:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `postfixInLogicalAnd`
- [ 28] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(5)]
- [ 50] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `postfixInLogicalAnd`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(5)]
+ [ 26] End value:reg5
-postfixInLogicalAnd$025c71c2 postfix-update-in-logical-and.js:2:5
+postfixInLogicalAnd$6a4fc6d0 postfix-update-in-logical-and.js:2:5
Registers: 7
Blocks: 3
- Constants:
- [0] = Int32(0)
block0:
[ 0] Enter
- [ 8] GreaterThanRhsInt32 arith_feedback:0, dst:reg5, lhs:arg0, rhs:0
- [ 18] JumpFalse condition:reg5, target:block2
+ [ 1] GreaterThanRhsInt32 arith_feedback:0, dst:reg5, lhs:arg0, rhs:0
+ [ c] JumpFalse condition:reg5, target:block2
block1:
- [ 28] PostfixDecrement arith_feedback:1, dst:reg6, src:arg0
- [ 38] Mov dst:reg5, src:reg6
+ [ 13] PostfixDecrement arith_feedback:1, dst:reg6, src:arg0
+ [ 1a] Mov dst:reg5, src:reg6
block2:
- [ 48] Return value:reg5
+ [ 1f] Return value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/private-identifier-access-patterns.txt b/Tests/LibJS/Bytecode/expected/private-identifier-access-patterns.txt
index c09449aefbc..9eeaeba0df4 100644
--- a/Tests/LibJS/Bytecode/expected/private-identifier-access-patterns.txt
+++ b/Tests/LibJS/Bytecode/expected/private-identifier-access-patterns.txt
@@ -1,4 +1,4 @@
-$84f4cb35 private-identifier-access-patterns.js:1:1
+$5e3d9c55 private-identifier-access-patterns.js:1:1
Registers: 8
Blocks: 1
Constants:
@@ -7,14 +7,14 @@ $84f4cb35 private-identifier-access-patterns.js:1:1
block0:
[ 0] Enter
- [ 8] GetLexicalEnvironment dst:reg4
- [ 10] Mov dst:reg5, src:Undefined
- [ 20] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
- [ 38] CreateVariable `C`, is_immutable:true, is_global:false, is_strict:true
- [ 48] CreatePrivateEnvironment
- [ 50] AddPrivateName `#x`
- [ 58] SetLexicalEnvironment environment:reg4
- [ 60] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys:[element_keys:String("method")]
- [ 90] LeavePrivateEnvironment
- [ 98] DynamicInitializeLexicalBinding `C`, src:reg6
- [ a8] End value:reg5
+ [ 1] GetLexicalEnvironment dst:reg4
+ [ 4] Mov dst:reg5, src:Undefined
+ [ 9] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
+ [ 17] CreateVariable `C`, is_immutable:true, is_global:false, is_strict:true
+ [ 21] CreatePrivateEnvironment
+ [ 22] AddPrivateName `#x`
+ [ 25] SetLexicalEnvironment environment:reg4
+ [ 28] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys:[element_keys:String("method")]
+ [ 45] LeavePrivateEnvironment
+ [ 46] DynamicInitializeLexicalBinding `C`, src:reg6
+ [ 4d] End value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/private-logical-assignment-register-order.txt b/Tests/LibJS/Bytecode/expected/private-logical-assignment-register-order.txt
index 225e9a9fe93..012d088b7ca 100644
--- a/Tests/LibJS/Bytecode/expected/private-logical-assignment-register-order.txt
+++ b/Tests/LibJS/Bytecode/expected/private-logical-assignment-register-order.txt
@@ -1,4 +1,4 @@
-$abc8a5d2 private-logical-assignment-register-order.js:1:1
+$633a548b private-logical-assignment-register-order.js:1:1
Registers: 8
Blocks: 1
Constants:
@@ -7,24 +7,24 @@ $abc8a5d2 private-logical-assignment-register-order.js:1:1
block0:
[ 0] Enter
- [ 8] GetLexicalEnvironment dst:reg4
- [ 10] Mov dst:reg5, src:Undefined
- [ 20] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
- [ 38] CreateVariable `C`, is_immutable:true, is_global:false, is_strict:true
- [ 48] CreatePrivateEnvironment
- [ 50] AddPrivateName `#x`
- [ 58] SetLexicalEnvironment environment:reg4
- [ 60] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys:[element_keys:String("f")]
- [ 90] LeavePrivateEnvironment
- [ 98] DynamicInitializeLexicalBinding `C`, src:reg6
- [ a8] GetGlobal value_feedback:0, dst:reg6, `C`
- [ b8] CallConstruct value_feedback:1, call_feedback:0, dst:reg6, callee:reg6
- [ d8] GetById value_feedback:2, dst:reg7, base:reg6, `f`
- [ f0] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6
- [ 110] End value:reg5
-
-
-C$638b9046
+ [ 1] GetLexicalEnvironment dst:reg4
+ [ 4] Mov dst:reg5, src:Undefined
+ [ 9] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
+ [ 17] CreateVariable `C`, is_immutable:true, is_global:false, is_strict:true
+ [ 21] CreatePrivateEnvironment
+ [ 22] AddPrivateName `#x`
+ [ 25] SetLexicalEnvironment environment:reg4
+ [ 28] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys:[element_keys:String("f")]
+ [ 45] LeavePrivateEnvironment
+ [ 46] DynamicInitializeLexicalBinding `C`, src:reg6
+ [ 4d] GetGlobal value_feedback:0, dst:reg6, `C`
+ [ 56] CallConstruct value_feedback:1, call_feedback:0, dst:reg6, callee:reg6
+ [ 69] GetById value_feedback:2, dst:reg7, base:reg6, `f`
+ [ 76] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6
+ [ 8b] End value:reg5
+
+
+C$259e8512
Registers: 5
Blocks: 1
Constants:
@@ -32,10 +32,10 @@ C$638b9046
block0:
[ 0] Enter
- [ 8] End value:Undefined
+ [ 1] End value:Undefined
-f$1fa31a28 private-logical-assignment-register-order.js:3:16
+f$1b379b9b private-logical-assignment-register-order.js:3:16
Registers: 7
Blocks: 3
Constants:
@@ -44,13 +44,13 @@ f$1fa31a28 private-logical-assignment-register-order.js:3:16
block0:
[ 0] Enter
- [ 8] GetPrivateById dst:reg5, base:this, `#x`
- [ 18] Mov dst:reg6, src:reg5
- [ 28] JumpFalse condition:reg6, target:block2
+ [ 1] GetPrivateById dst:reg5, base:this, `#x`
+ [ 8] Mov dst:reg6, src:reg5
+ [ d] JumpFalse condition:reg6, target:block2
block1:
- [ 38] Mov dst:reg6, src:Int32(1)
- [ 48] PutPrivateById base:this, `#x`, src:reg6
+ [ 14] Mov dst:reg6, src:Int32(1)
+ [ 19] PutPrivateById base:this, `#x`, src:reg6
block2:
- [ 58] End value:Undefined
+ [ 20] End value:Undefined
diff --git a/Tests/LibJS/Bytecode/expected/private-method-call-description.txt b/Tests/LibJS/Bytecode/expected/private-method-call-description.txt
index 475932a323f..8810a150b4a 100644
--- a/Tests/LibJS/Bytecode/expected/private-method-call-description.txt
+++ b/Tests/LibJS/Bytecode/expected/private-method-call-description.txt
@@ -1,4 +1,4 @@
-$abc8a5d2 private-method-call-description.js:1:1
+$633a548b private-method-call-description.js:1:1
Registers: 8
Blocks: 1
Constants:
@@ -7,24 +7,24 @@ $abc8a5d2 private-method-call-description.js:1:1
block0:
[ 0] Enter
- [ 8] GetLexicalEnvironment dst:reg4
- [ 10] Mov dst:reg5, src:Undefined
- [ 20] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
- [ 38] CreateVariable `C`, is_immutable:true, is_global:false, is_strict:true
- [ 48] CreatePrivateEnvironment
- [ 50] AddPrivateName `#m`
- [ 58] SetLexicalEnvironment environment:reg4
- [ 60] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys:[element_keys:String("call")]
- [ 90] LeavePrivateEnvironment
- [ 98] DynamicInitializeLexicalBinding `C`, src:reg6
- [ a8] GetGlobal value_feedback:0, dst:reg6, `C`
- [ b8] CallConstruct value_feedback:1, call_feedback:0, dst:reg6, callee:reg6
- [ d8] GetById value_feedback:2, dst:reg7, base:reg6, `call`
- [ f0] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6
- [ 110] End value:reg5
-
-
-C$638b9046
+ [ 1] GetLexicalEnvironment dst:reg4
+ [ 4] Mov dst:reg5, src:Undefined
+ [ 9] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
+ [ 17] CreateVariable `C`, is_immutable:true, is_global:false, is_strict:true
+ [ 21] CreatePrivateEnvironment
+ [ 22] AddPrivateName `#m`
+ [ 25] SetLexicalEnvironment environment:reg4
+ [ 28] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys:[element_keys:String("call")]
+ [ 45] LeavePrivateEnvironment
+ [ 46] DynamicInitializeLexicalBinding `C`, src:reg6
+ [ 4d] GetGlobal value_feedback:0, dst:reg6, `C`
+ [ 56] CallConstruct value_feedback:1, call_feedback:0, dst:reg6, callee:reg6
+ [ 69] GetById value_feedback:2, dst:reg7, base:reg6, `call`
+ [ 76] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6
+ [ 8b] End value:reg5
+
+
+C$259e8512
Registers: 5
Blocks: 1
Constants:
@@ -32,21 +32,21 @@ C$638b9046
block0:
[ 0] Enter
- [ 8] End value:Undefined
+ [ 1] End value:Undefined
-call$4b20f1d0 private-method-call-description.js:6:9
+call$45990fb0 private-method-call-description.js:6:9
Registers: 6
Blocks: 1
block0:
[ 0] Enter
- [ 8] GetPrivateById dst:reg5, base:this, `#m`
- [ 18] Call value_feedback:0, call_feedback:0, dst:reg5, callee:reg5, this_value:this
- [ 38] Return value:reg5
+ [ 1] GetPrivateById dst:reg5, base:this, `#m`
+ [ 8] Call value_feedback:0, call_feedback:0, dst:reg5, callee:reg5, this_value:this
+ [ 1d] Return value:reg5
-#m$2594ef69 private-method-call-description.js:3:9
+#m$6381fa9d private-method-call-description.js:3:9
Registers: 5
Blocks: 1
Constants:
@@ -54,4 +54,4 @@ block0:
block0:
[ 0] Enter
- [ 8] Return value:Int32(42)
+ [ 1] Return value:Int32(42)
diff --git a/Tests/LibJS/Bytecode/expected/regex-literals.txt b/Tests/LibJS/Bytecode/expected/regex-literals.txt
index ab6c6791f99..3c835b72511 100644
--- a/Tests/LibJS/Bytecode/expected/regex-literals.txt
+++ b/Tests/LibJS/Bytecode/expected/regex-literals.txt
@@ -1,33 +1,32 @@
-$42e0243a regex-literals.js:2:5
+$ca5528cc regex-literals.js:2:5
Registers: 7
Blocks: 1
Constants:
[0] = Undefined
- [1] = Int32(1)
- [2] = String("abc123")
+ [1] = String("abc123")
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] NewRegExp dst:reg6, foo,
- [ 28] DynamicInitializeLexicalBinding `a`, src:reg6
- [ 38] NewRegExp dst:reg6, bar, gi
- [ 48] DynamicInitializeLexicalBinding `b`, src:reg6
- [ 58] NewRegExp dst:reg6, baz, i
- [ 68] AddLhsInt32 arith_feedback:0, dst:reg6, lhs:1, rhs:reg6
- [ 78] DynamicInitializeLexicalBinding `c`, src:reg6
- [ 88] GetGlobal value_feedback:0, dst:reg6, `matchDigits`
- [ 98] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[String("abc123")]
- [ c0] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] NewRegExp dst:reg6, foo,
+ [ d] DynamicInitializeLexicalBinding `a`, src:reg6
+ [ 14] NewRegExp dst:reg6, bar, gi
+ [ 1b] DynamicInitializeLexicalBinding `b`, src:reg6
+ [ 22] NewRegExp dst:reg6, baz, i
+ [ 29] AddLhsInt32 arith_feedback:0, dst:reg6, lhs:1, rhs:reg6
+ [ 34] DynamicInitializeLexicalBinding `c`, src:reg6
+ [ 3b] GetGlobal value_feedback:0, dst:reg6, `matchDigits`
+ [ 44] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[String("abc123")]
+ [ 5b] End value:reg5
-matchDigits$cd23dc97 regex-literals.js:8:5
+matchDigits$285fdfe8 regex-literals.js:8:5
Registers: 7
Blocks: 1
block0:
[ 0] Enter
- [ 8] NewRegExp dst:reg5, \d+, g
- [ 18] GetById value_feedback:0, dst:reg6, base:reg5, `test`
- [ 30] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:reg5, arguments:[arg0]
- [ 58] Return value:reg5
+ [ 1] NewRegExp dst:reg5, \d+, g
+ [ 8] GetById value_feedback:0, dst:reg6, base:reg5, `test`
+ [ 15] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:reg5, arguments:[arg0]
+ [ 2c] Return value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/resolve-this-caching.txt b/Tests/LibJS/Bytecode/expected/resolve-this-caching.txt
index 880dc266e8d..318260e75b6 100644
--- a/Tests/LibJS/Bytecode/expected/resolve-this-caching.txt
+++ b/Tests/LibJS/Bytecode/expected/resolve-this-caching.txt
@@ -1,4 +1,4 @@
-$28d58d80 resolve-this-caching.js:4:1
+$6d66de67 resolve-this-caching.js:4:1
Registers: 7
Blocks: 1
Constants:
@@ -6,13 +6,13 @@ $28d58d80 resolve-this-caching.js:4:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `foo`
- [ 28] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 48] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `foo`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 24] End value:reg5
-foo$9e71f40c resolve-this-caching.js:2:5
+foo$d6d71d20 resolve-this-caching.js:2:5
Registers: 6
Blocks: 1
Constants:
@@ -20,19 +20,19 @@ foo$9e71f40c resolve-this-caching.js:2:5
block0:
[ 0] Enter
- [ 8] NewFunction dst:reg5, shared_function_data_index:0
- [ 20] Call value_feedback:0, call_feedback:0, dst:reg5, callee:reg5, this_value:Undefined
- [ 40] Return value:reg5
+ [ 1] NewFunction dst:reg5, shared_function_data_index:0
+ [ c] Call value_feedback:0, call_feedback:0, dst:reg5, callee:reg5, this_value:Undefined
+ [ 21] Return value:reg5
-$1243b2a2 resolve-this-caching.js:2:13
+$259f4a12 resolve-this-caching.js:2:13
Registers: 7
Blocks: 1
block0:
[ 0] Enter
- [ 8] ResolveThisBinding
- [ 10] GetById value_feedback:0, dst:reg5, base:this, `x`
- [ 28] GetById value_feedback:1, dst:reg6, base:this, `y`
- [ 40] Add arith_feedback:0, dst:reg5, lhs:reg5, rhs:reg6
- [ 50] Return value:reg5
+ [ 1] ResolveThisBinding
+ [ 2] GetById value_feedback:0, dst:reg5, base:this, `x`
+ [ f] GetById value_feedback:1, dst:reg6, base:this, `y`
+ [ 1c] Add arith_feedback:0, dst:reg5, lhs:reg5, rhs:reg6
+ [ 25] Return value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/right-shift-by-zero.txt b/Tests/LibJS/Bytecode/expected/right-shift-by-zero.txt
index 7191c3ae57e..a5738ba7f1a 100644
--- a/Tests/LibJS/Bytecode/expected/right-shift-by-zero.txt
+++ b/Tests/LibJS/Bytecode/expected/right-shift-by-zero.txt
@@ -1,4 +1,4 @@
-$916dd419 right-shift-by-zero.js:5:1
+$549d2c78 right-shift-by-zero.js:5:1
Registers: 7
Blocks: 1
Constants:
@@ -7,19 +7,17 @@ $916dd419 right-shift-by-zero.js:5:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `foo`
- [ 28] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Double(1.5)]
- [ 50] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `foo`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Double(1.5)]
+ [ 26] End value:reg5
-foo$17881964 right-shift-by-zero.js:2:5
+foo$83e6ecff right-shift-by-zero.js:2:5
Registers: 6
Blocks: 1
- Constants:
- [0] = Int32(0)
block0:
[ 0] Enter
- [ 8] ToInt32 arith_feedback:0, dst:reg5, value:arg0
- [ 18] Return value:reg5
+ [ 1] ToInt32 arith_feedback:0, dst:reg5, value:arg0
+ [ 8] Return value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/sequential-try-blocks.txt b/Tests/LibJS/Bytecode/expected/sequential-try-blocks.txt
index 483f7770277..340b57ad719 100644
--- a/Tests/LibJS/Bytecode/expected/sequential-try-blocks.txt
+++ b/Tests/LibJS/Bytecode/expected/sequential-try-blocks.txt
@@ -1,4 +1,4 @@
-$b56ffb15 sequential-try-blocks.js:17:1
+$5bdb8541 sequential-try-blocks.js:17:1
Registers: 9
Blocks: 1
Constants:
@@ -6,16 +6,16 @@ $b56ffb15 sequential-try-blocks.js:17:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `console`
- [ 28] GetById value_feedback:1, dst:reg7, base:reg6, `log`
- [ 40] GetGlobal value_feedback:2, dst:reg8, `sequentialTryCatch`
- [ 50] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined
- [ 70] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 98] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `console`
+ [ f] GetById value_feedback:1, dst:reg7, base:reg6, `log`
+ [ 1c] GetGlobal value_feedback:2, dst:reg8, `sequentialTryCatch`
+ [ 25] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined
+ [ 3a] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 51] End value:reg5
-sequentialTryCatch$d96d6fd5 sequential-try-blocks.js:2:9
+sequentialTryCatch$94dc1eee sequential-try-blocks.js:2:9
Registers: 6
Blocks: 6
Locals: result~0, e~1, e~2
@@ -31,36 +31,36 @@ sequentialTryCatch$d96d6fd5 sequential-try-blocks.js:2:9
block0:
[ 0] Enter
- [ 8] Mov dst:result~0, src:String("")
+ [ 1] Mov dst:result~0, src:String("")
block1:
- [ 18] Add arith_feedback:0, dst:result~0, lhs:result~0, rhs:String("a")
- [ 28] Throw src:Int32(1)
+ [ 6] Add arith_feedback:0, dst:result~0, lhs:result~0, rhs:String("a")
+ [ f] Throw src:Int32(1)
block2:
- [ 30] Catch value_feedback:0, dst:reg5
- [ 38] Mov dst:e~1, src:<Empty>
- [ 48] Mov dst:e~1, src:reg5
- [ 58] Add arith_feedback:1, dst:result~0, lhs:result~0, rhs:String("b")
- [ 68] Jump target:block3
+ [ 12] Catch value_feedback:0, dst:reg5
+ [ 17] Mov dst:e~1, src:<Empty>
+ [ 1c] Mov dst:e~1, src:reg5
+ [ 21] Add arith_feedback:1, dst:result~0, lhs:result~0, rhs:String("b")
+ [ 2a] Jump target:block3
block3:
- [ 70] Add arith_feedback:2, dst:result~0, lhs:result~0, rhs:String("c")
- [ 80] Throw src:Int32(2)
+ [ 2f] Add arith_feedback:2, dst:result~0, lhs:result~0, rhs:String("c")
+ [ 38] Throw src:Int32(2)
block4:
- [ 88] Catch value_feedback:1, dst:reg5
- [ 90] Mov dst:e~2, src:<Empty>
- [ a0] Mov dst:e~2, src:reg5
- [ b0] Add arith_feedback:3, dst:result~0, lhs:result~0, rhs:String("d")
- [ c0] Jump target:block5
+ [ 3b] Catch value_feedback:1, dst:reg5
+ [ 40] Mov dst:e~2, src:<Empty>
+ [ 45] Mov dst:e~2, src:reg5
+ [ 4a] Add arith_feedback:3, dst:result~0, lhs:result~0, rhs:String("d")
+ [ 53] Jump target:block5
block5:
- [ c8] Return value:result~0
+ [ 58] Return value:result~0
Exception handlers:
- [ 18 .. 30] => handler block2
- [ 70 .. 88] => handler block4
+ [ 6 .. 12] => handler block2
+ [ 2f .. 3b] => handler block4
"abcd"
diff --git a/Tests/LibJS/Bytecode/expected/strict-global-assignment.txt b/Tests/LibJS/Bytecode/expected/strict-global-assignment.txt
index f2905207200..d0cb541766d 100644
--- a/Tests/LibJS/Bytecode/expected/strict-global-assignment.txt
+++ b/Tests/LibJS/Bytecode/expected/strict-global-assignment.txt
@@ -1,4 +1,4 @@
-$2d2a9e5a strict-global-assignment.js:1:1
+$3553b60e strict-global-assignment.js:1:1
Registers: 8
Blocks: 7
Constants:
@@ -6,37 +6,36 @@ $2d2a9e5a strict-global-assignment.js:1:1
[1] = String("use strict")
[2] = Int32(0)
[3] = Null
- [4] = Int32(1)
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] Mov dst:reg5, src:String("use strict")
- [ 28] ResolveGlobalBinding dst:reg6, `counter`
- [ 38] JumpIf condition:reg6, true_target:block1, false_target:block2
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] Mov dst:reg5, src:String("use strict")
+ [ b] ResolveGlobalBinding dst:reg6, `counter`
+ [ 12] JumpIf condition:reg6, true_target:block1, false_target:block2
block1:
- [ 48] SetGlobal `counter`, src:Int32(0)
- [ 58] Jump target:block3
+ [ 1d] SetGlobal `counter`, src:Int32(0)
+ [ 24] Jump target:block3
block2:
- [ 60] SetResolvedBinding environment:Null, `counter`, src:Int32(0)
- [ 70] Jump target:block3
+ [ 29] SetResolvedBinding environment:Null, `counter`, src:Int32(0)
+ [ 30] Jump target:block3
block3:
- [ 78] ResolveGlobalBinding dst:reg6, `counter`
- [ 88] GetGlobal value_feedback:0, dst:reg7, `counter`
- [ 98] AddRhsInt32 arith_feedback:0, dst:reg7, lhs:reg7, rhs:1
- [ a8] JumpIf condition:reg6, true_target:block4, false_target:block5
+ [ 35] ResolveGlobalBinding dst:reg6, `counter`
+ [ 3c] GetGlobal value_feedback:0, dst:reg7, `counter`
+ [ 45] AddRhsInt32 arith_feedback:0, dst:reg7, lhs:reg7, rhs:1
+ [ 50] JumpIf condition:reg6, true_target:block4, false_target:block5
block4:
- [ b8] SetGlobal `counter`, src:reg7
- [ c8] Jump target:block6
+ [ 5b] SetGlobal `counter`, src:reg7
+ [ 62] Jump target:block6
block5:
- [ d0] SetResolvedBinding environment:Null, `counter`, src:reg7
- [ e0] Jump target:block6
+ [ 67] SetResolvedBinding environment:Null, `counter`, src:reg7
+ [ 6e] Jump target:block6
block6:
- [ e8] Mov dst:reg5, src:reg7
- [ f8] End value:reg5
+ [ 73] Mov dst:reg5, src:reg7
+ [ 78] End value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/super-call-spread-register-order.txt b/Tests/LibJS/Bytecode/expected/super-call-spread-register-order.txt
index e2127c8aa79..9298b6d5643 100644
--- a/Tests/LibJS/Bytecode/expected/super-call-spread-register-order.txt
+++ b/Tests/LibJS/Bytecode/expected/super-call-spread-register-order.txt
@@ -1,4 +1,4 @@
-$7ca8f805 super-call-spread-register-order.js:1:1
+$13993f64 super-call-spread-register-order.js:1:1
Registers: 11
Blocks: 1
Constants:
@@ -6,21 +6,21 @@ $7ca8f805 super-call-spread-register-order.js:1:1
block0:
[ 0] Enter
- [ 8] GetLexicalEnvironment dst:reg4
- [ 10] Mov dst:reg5, src:Undefined
- [ 20] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
- [ 38] CreateVariable `C`, is_immutable:true, is_global:false, is_strict:true
- [ 48] GetGlobal value_feedback:0, dst:reg9, `Object`
- [ 58] GetClassProtoParent dst:reg10, super_class:reg9
- [ 68] SetLexicalEnvironment environment:reg4
- [ 70] NewClass dst:reg6, super_class:reg9, proto_parent:reg10, class_environment:reg7, class_blueprint_index:0
- [ 98] DynamicInitializeLexicalBinding `C`, src:reg6
- [ a8] GetGlobal value_feedback:1, dst:reg6, `C`
- [ b8] CallConstruct value_feedback:2, call_feedback:0, dst:reg5, callee:reg6
- [ d8] End value:reg5
+ [ 1] GetLexicalEnvironment dst:reg4
+ [ 4] Mov dst:reg5, src:Undefined
+ [ 9] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
+ [ 17] CreateVariable `C`, is_immutable:true, is_global:false, is_strict:true
+ [ 21] GetGlobal value_feedback:0, dst:reg9, `Object`
+ [ 2a] GetClassProtoParent dst:reg10, super_class:reg9
+ [ 2f] SetLexicalEnvironment environment:reg4
+ [ 32] NewClass dst:reg6, super_class:reg9, proto_parent:reg10, class_environment:reg7, class_blueprint_index:0
+ [ 4b] DynamicInitializeLexicalBinding `C`, src:reg6
+ [ 52] GetGlobal value_feedback:1, dst:reg6, `C`
+ [ 5b] CallConstruct value_feedback:2, call_feedback:0, dst:reg5, callee:reg6
+ [ 6e] End value:reg5
-C$c06f7c65 super-call-spread-register-order.js:2:17
+C$9d0d783e super-call-spread-register-order.js:2:17
Registers: 7
Blocks: 1
Constants:
@@ -28,9 +28,9 @@ C$c06f7c65 super-call-spread-register-order.js:2:17
block0:
[ 0] Enter
- [ 8] CreateRestParams dst:arg0, rest_index:0
- [ 18] GetSuperConstructor dst:reg5
- [ 20] NewArray dst:reg6
- [ 30] ArrayAppend dst:reg6, src:arg0, is_spread:true
- [ 40] SuperCallWithArgumentArray value_feedback:0, call_feedback:0, dst:reg5, super_constructor:reg5, arguments:reg6, is_synthetic:false
- [ 58] End value:Undefined
+ [ 1] CreateRestParams dst:arg0, rest_index:0
+ [ 8] GetSuperConstructor dst:reg5
+ [ b] NewArray dst:reg6
+ [ 16] ArrayAppend dst:reg6, src:arg0, is_spread:true
+ [ 1c] SuperCallWithArgumentArray value_feedback:0, call_feedback:0, dst:reg5, super_constructor:reg5, arguments:reg6, is_synthetic:false
+ [ 28] End value:Undefined
diff --git a/Tests/LibJS/Bytecode/expected/super-computed-eval-order.txt b/Tests/LibJS/Bytecode/expected/super-computed-eval-order.txt
index 160bab42761..533b815b3ba 100644
--- a/Tests/LibJS/Bytecode/expected/super-computed-eval-order.txt
+++ b/Tests/LibJS/Bytecode/expected/super-computed-eval-order.txt
@@ -1,4 +1,4 @@
-$c4ac1f62 super-computed-eval-order.js:1:1
+$745d24d5 super-computed-eval-order.js:1:1
Registers: 11
Blocks: 1
Constants:
@@ -7,28 +7,28 @@ $c4ac1f62 super-computed-eval-order.js:1:1
block0:
[ 0] Enter
- [ 8] GetLexicalEnvironment dst:reg4
- [ 10] Mov dst:reg5, src:Undefined
- [ 20] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
- [ 38] CreateVariable `Base`, is_immutable:true, is_global:false, is_strict:true
- [ 48] SetLexicalEnvironment environment:reg4
- [ 50] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0
- [ 78] DynamicInitializeLexicalBinding `Base`, src:reg6
- [ 88] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
- [ a0] CreateVariable `Derived`, is_immutable:true, is_global:false, is_strict:true
- [ b0] GetGlobal value_feedback:0, dst:reg9, `Base`
- [ c0] GetClassProtoParent dst:reg10, super_class:reg9
- [ d0] SetLexicalEnvironment environment:reg4
- [ d8] NewClass dst:reg6, super_class:reg9, proto_parent:reg10, class_environment:reg7, class_blueprint_index:1, element_keys:[element_keys:String("test")]
- [ 108] DynamicInitializeLexicalBinding `Derived`, src:reg6
- [ 118] GetGlobal value_feedback:1, dst:reg6, `Derived`
- [ 128] CallConstruct value_feedback:2, call_feedback:0, dst:reg6, callee:reg6
- [ 148] GetById value_feedback:3, dst:reg7, base:reg6, `test`
- [ 160] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6
- [ 180] End value:reg5
+ [ 1] GetLexicalEnvironment dst:reg4
+ [ 4] Mov dst:reg5, src:Undefined
+ [ 9] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
+ [ 17] CreateVariable `Base`, is_immutable:true, is_global:false, is_strict:true
+ [ 21] SetLexicalEnvironment environment:reg4
+ [ 24] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0
+ [ 3d] DynamicInitializeLexicalBinding `Base`, src:reg6
+ [ 44] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
+ [ 52] CreateVariable `Derived`, is_immutable:true, is_global:false, is_strict:true
+ [ 5c] GetGlobal value_feedback:0, dst:reg9, `Base`
+ [ 65] GetClassProtoParent dst:reg10, super_class:reg9
+ [ 6a] SetLexicalEnvironment environment:reg4
+ [ 6d] NewClass dst:reg6, super_class:reg9, proto_parent:reg10, class_environment:reg7, class_blueprint_index:1, element_keys:[element_keys:String("test")]
+ [ 88] DynamicInitializeLexicalBinding `Derived`, src:reg6
+ [ 8f] GetGlobal value_feedback:1, dst:reg6, `Derived`
+ [ 98] CallConstruct value_feedback:2, call_feedback:0, dst:reg6, callee:reg6
+ [ ab] GetById value_feedback:3, dst:reg7, base:reg6, `test`
+ [ b8] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6
+ [ cd] End value:reg5
-Derived$eee8d5da super-computed-eval-order.js:4:14
+Derived$162b2ea4 super-computed-eval-order.js:4:14
Registers: 7
Blocks: 1
Constants:
@@ -36,13 +36,13 @@ Derived$eee8d5da super-computed-eval-order.js:4:14
block0:
[ 0] Enter
- [ 8] GetSuperConstructor dst:reg5
- [ 10] NewArray dst:reg6
- [ 20] SuperCallWithArgumentArray value_feedback:0, call_feedback:0, dst:reg5, super_constructor:reg5, arguments:reg6, is_synthetic:false
- [ 38] End value:Undefined
+ [ 1] GetSuperConstructor dst:reg5
+ [ 4] NewArray dst:reg6
+ [ f] SuperCallWithArgumentArray value_feedback:0, call_feedback:0, dst:reg5, super_constructor:reg5, arguments:reg6, is_synthetic:false
+ [ 1b] End value:Undefined
-Base$25c3a990
+Base$63b0b4c4
Registers: 5
Blocks: 1
Constants:
@@ -50,10 +50,10 @@ Base$25c3a990
block0:
[ 0] Enter
- [ 8] End value:Undefined
+ [ 1] End value:Undefined
-test$b92c699d super-computed-eval-order.js:7:9
+test$8d7e9246 super-computed-eval-order.js:7:9
Registers: 7
Blocks: 1
Constants:
@@ -61,7 +61,7 @@ test$b92c699d super-computed-eval-order.js:7:9
block0:
[ 0] Enter
- [ 8] ResolveThisBinding
- [ 10] ResolveSuperBase dst:reg5
- [ 18] GetByValueWithThis value_feedback:0, dst:reg6, base:reg5, property:Int32(0), this_value:this
- [ 30] Return value:reg6
+ [ 1] ResolveThisBinding
+ [ 2] ResolveSuperBase dst:reg5
+ [ 5] GetByValueWithThis value_feedback:0, dst:reg6, base:reg5, property:Int32(0), this_value:this
+ [ 10] Return value:reg6
diff --git a/Tests/LibJS/Bytecode/expected/super-computed-string-to-id.txt b/Tests/LibJS/Bytecode/expected/super-computed-string-to-id.txt
index a13595c1d1d..770e85a43ca 100644
--- a/Tests/LibJS/Bytecode/expected/super-computed-string-to-id.txt
+++ b/Tests/LibJS/Bytecode/expected/super-computed-string-to-id.txt
@@ -1,4 +1,4 @@
-$7ca8f805 super-computed-string-to-id.js:1:1
+$13993f64 super-computed-string-to-id.js:1:1
Registers: 11
Blocks: 1
Constants:
@@ -6,34 +6,33 @@ $7ca8f805 super-computed-string-to-id.js:1:1
block0:
[ 0] Enter
- [ 8] GetLexicalEnvironment dst:reg4
- [ 10] Mov dst:reg5, src:Undefined
- [ 20] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
- [ 38] CreateVariable `C`, is_immutable:true, is_global:false, is_strict:true
- [ 48] GetGlobal value_feedback:0, dst:reg9, `Object`
- [ 58] GetClassProtoParent dst:reg10, super_class:reg9
- [ 68] SetLexicalEnvironment environment:reg4
- [ 70] NewClass dst:reg6, super_class:reg9, proto_parent:reg10, class_environment:reg7, class_blueprint_index:0
- [ 98] DynamicInitializeLexicalBinding `C`, src:reg6
- [ a8] GetGlobal value_feedback:1, dst:reg6, `C`
- [ b8] CallConstruct value_feedback:2, call_feedback:0, dst:reg5, callee:reg6
- [ d8] End value:reg5
+ [ 1] GetLexicalEnvironment dst:reg4
+ [ 4] Mov dst:reg5, src:Undefined
+ [ 9] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
+ [ 17] CreateVariable `C`, is_immutable:true, is_global:false, is_strict:true
+ [ 21] GetGlobal value_feedback:0, dst:reg9, `Object`
+ [ 2a] GetClassProtoParent dst:reg10, super_class:reg9
+ [ 2f] SetLexicalEnvironment environment:reg4
+ [ 32] NewClass dst:reg6, super_class:reg9, proto_parent:reg10, class_environment:reg7, class_blueprint_index:0
+ [ 4b] DynamicInitializeLexicalBinding `C`, src:reg6
+ [ 52] GetGlobal value_feedback:1, dst:reg6, `C`
+ [ 5b] CallConstruct value_feedback:2, call_feedback:0, dst:reg5, callee:reg6
+ [ 6e] End value:reg5
-C$3a34c93b super-computed-string-to-id.js:3:14
+C$f5184e6a super-computed-string-to-id.js:3:14
Registers: 7
Blocks: 1
Constants:
- [0] = String("foo")
- [1] = Int32(1)
- [2] = Undefined
+ [0] = Int32(1)
+ [1] = Undefined
block0:
[ 0] Enter
- [ 8] GetSuperConstructor dst:reg5
- [ 10] NewArray dst:reg6
- [ 20] SuperCallWithArgumentArray value_feedback:0, call_feedback:0, dst:reg5, super_constructor:reg5, arguments:reg6, is_synthetic:false
- [ 38] ResolveThisBinding
- [ 40] ResolveSuperBase dst:reg5
- [ 48] PutByIdWithThis base:reg5, this_value:this, `foo`, src:Int32(1), kind:Normal
- [ 68] End value:Undefined
+ [ 1] GetSuperConstructor dst:reg5
+ [ 4] NewArray dst:reg6
+ [ f] SuperCallWithArgumentArray value_feedback:0, call_feedback:0, dst:reg5, super_constructor:reg5, arguments:reg6, is_synthetic:false
+ [ 1b] ResolveThisBinding
+ [ 1c] ResolveSuperBase dst:reg5
+ [ 1f] PutByIdWithThis base:reg5, this_value:this, `foo`, src:Int32(1), kind:Normal
+ [ 2e] End value:Undefined
diff --git a/Tests/LibJS/Bytecode/expected/super-constructor-call.txt b/Tests/LibJS/Bytecode/expected/super-constructor-call.txt
index ac8aba29d95..20e9bff8dab 100644
--- a/Tests/LibJS/Bytecode/expected/super-constructor-call.txt
+++ b/Tests/LibJS/Bytecode/expected/super-constructor-call.txt
@@ -1,4 +1,4 @@
-$1f56e90a super-constructor-call.js:1:1
+$68c236ab super-constructor-call.js:1:1
Registers: 11
Blocks: 1
Constants:
@@ -7,26 +7,26 @@ $1f56e90a super-constructor-call.js:1:1
block0:
[ 0] Enter
- [ 8] GetLexicalEnvironment dst:reg4
- [ 10] Mov dst:reg5, src:Undefined
- [ 20] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
- [ 38] CreateVariable `Base`, is_immutable:true, is_global:false, is_strict:true
- [ 48] SetLexicalEnvironment environment:reg4
- [ 50] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0
- [ 78] DynamicInitializeLexicalBinding `Base`, src:reg6
- [ 88] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
- [ a0] CreateVariable `Derived`, is_immutable:true, is_global:false, is_strict:true
- [ b0] GetGlobal value_feedback:0, dst:reg9, `Base`
- [ c0] GetClassProtoParent dst:reg10, super_class:reg9
- [ d0] SetLexicalEnvironment environment:reg4
- [ d8] NewClass dst:reg6, super_class:reg9, proto_parent:reg10, class_environment:reg7, class_blueprint_index:1
- [ 100] DynamicInitializeLexicalBinding `Derived`, src:reg6
- [ 110] GetGlobal value_feedback:1, dst:reg6, `Derived`
- [ 120] CallConstruct value_feedback:2, call_feedback:0, dst:reg5, callee:reg6, arguments:[Int32(1)]
- [ 148] End value:reg5
+ [ 1] GetLexicalEnvironment dst:reg4
+ [ 4] Mov dst:reg5, src:Undefined
+ [ 9] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
+ [ 17] CreateVariable `Base`, is_immutable:true, is_global:false, is_strict:true
+ [ 21] SetLexicalEnvironment environment:reg4
+ [ 24] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0
+ [ 3d] DynamicInitializeLexicalBinding `Base`, src:reg6
+ [ 44] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
+ [ 52] CreateVariable `Derived`, is_immutable:true, is_global:false, is_strict:true
+ [ 5c] GetGlobal value_feedback:0, dst:reg9, `Base`
+ [ 65] GetClassProtoParent dst:reg10, super_class:reg9
+ [ 6a] SetLexicalEnvironment environment:reg4
+ [ 6d] NewClass dst:reg6, super_class:reg9, proto_parent:reg10, class_environment:reg7, class_blueprint_index:1
+ [ 86] DynamicInitializeLexicalBinding `Derived`, src:reg6
+ [ 8d] GetGlobal value_feedback:1, dst:reg6, `Derived`
+ [ 96] CallConstruct value_feedback:2, call_feedback:0, dst:reg5, callee:reg6, arguments:[Int32(1)]
+ [ ab] End value:reg5
-Derived$6d86dd52 super-constructor-call.js:4:14
+Derived$f470b7fa super-constructor-call.js:4:14
Registers: 7
Blocks: 1
Constants:
@@ -34,13 +34,13 @@ Derived$6d86dd52 super-constructor-call.js:4:14
block0:
[ 0] Enter
- [ 8] GetSuperConstructor dst:reg5
- [ 10] NewArray dst:reg6, elements:[arg0]
- [ 28] SuperCallWithArgumentArray value_feedback:0, call_feedback:0, dst:reg5, super_constructor:reg5, arguments:reg6, is_synthetic:false
- [ 40] End value:Undefined
+ [ 1] GetSuperConstructor dst:reg5
+ [ 4] NewArray dst:reg6, elements:[arg0]
+ [ 11] SuperCallWithArgumentArray value_feedback:0, call_feedback:0, dst:reg5, super_constructor:reg5, arguments:reg6, is_synthetic:false
+ [ 1d] End value:Undefined
-Base$25c3a990
+Base$63b0b4c4
Registers: 5
Blocks: 1
Constants:
@@ -48,4 +48,4 @@ Base$25c3a990
block0:
[ 0] Enter
- [ 8] End value:Undefined
+ [ 1] End value:Undefined
diff --git a/Tests/LibJS/Bytecode/expected/super-evaluation-order.txt b/Tests/LibJS/Bytecode/expected/super-evaluation-order.txt
index 027580fd2b2..d164bd7ce34 100644
--- a/Tests/LibJS/Bytecode/expected/super-evaluation-order.txt
+++ b/Tests/LibJS/Bytecode/expected/super-evaluation-order.txt
@@ -1,4 +1,4 @@
-$bc604c32 super-evaluation-order.js:1:1
+$1756d88b super-evaluation-order.js:1:1
Registers: 11
Blocks: 1
Constants:
@@ -9,73 +9,70 @@ $bc604c32 super-evaluation-order.js:1:1
block0:
[ 0] Enter
- [ 8] GetLexicalEnvironment dst:reg4
- [ 10] Mov dst:reg5, src:Undefined
- [ 20] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
- [ 38] CreateVariable `A`, is_immutable:true, is_global:false, is_strict:true
- [ 48] GetGlobal value_feedback:0, dst:reg9, `Object`
- [ 58] GetClassProtoParent dst:reg10, super_class:reg9
- [ 68] SetLexicalEnvironment environment:reg4
- [ 70] NewClass dst:reg6, super_class:reg9, proto_parent:reg10, class_environment:reg7, class_blueprint_index:0, element_keys:[element_keys:String("read"), element_keys:String("write"), element_keys:String("update")]
- [ a8] DynamicInitializeLexicalBinding `A`, src:reg6
- [ b8] GetGlobal value_feedback:1, dst:reg6, `A`
- [ c8] CallConstruct value_feedback:2, call_feedback:0, dst:reg6, callee:reg6
- [ e8] GetById value_feedback:3, dst:reg7, base:reg6, `read`
- [ 100] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6
- [ 120] GetGlobal value_feedback:5, dst:reg6, `A`
- [ 130] CallConstruct value_feedback:6, call_feedback:2, dst:reg6, callee:reg6
- [ 150] GetById value_feedback:7, dst:reg7, base:reg6, `write`
- [ 168] Call value_feedback:8, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6
- [ 188] GetGlobal value_feedback:9, dst:reg6, `A`
- [ 198] CallConstruct value_feedback:10, call_feedback:4, dst:reg6, callee:reg6
- [ 1b8] GetById value_feedback:11, dst:reg7, base:reg6, `update`
- [ 1d0] Call value_feedback:12, call_feedback:5, dst:reg5, callee:reg7, this_value:reg6
- [ 1f0] End value:reg5
+ [ 1] GetLexicalEnvironment dst:reg4
+ [ 4] Mov dst:reg5, src:Undefined
+ [ 9] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
+ [ 17] CreateVariable `A`, is_immutable:true, is_global:false, is_strict:true
+ [ 21] GetGlobal value_feedback:0, dst:reg9, `Object`
+ [ 2a] GetClassProtoParent dst:reg10, super_class:reg9
+ [ 2f] SetLexicalEnvironment environment:reg4
+ [ 32] NewClass dst:reg6, super_class:reg9, proto_parent:reg10, class_environment:reg7, class_blueprint_index:0, element_keys:[element_keys:String("read"), element_keys:String("write"), element_keys:String("update")]
+ [ 51] DynamicInitializeLexicalBinding `A`, src:reg6
+ [ 58] GetGlobal value_feedback:1, dst:reg6, `A`
+ [ 61] CallConstruct value_feedback:2, call_feedback:0, dst:reg6, callee:reg6
+ [ 74] GetById value_feedback:3, dst:reg7, base:reg6, `read`
+ [ 81] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6
+ [ 96] GetGlobal value_feedback:5, dst:reg6, `A`
+ [ 9f] CallConstruct value_feedback:6, call_feedback:2, dst:reg6, callee:reg6
+ [ b2] GetById value_feedback:7, dst:reg7, base:reg6, `write`
+ [ bf] Call value_feedback:8, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6
+ [ d4] GetGlobal value_feedback:9, dst:reg6, `A`
+ [ dd] CallConstruct value_feedback:10, call_feedback:4, dst:reg6, callee:reg6
+ [ f0] GetById value_feedback:11, dst:reg7, base:reg6, `update`
+ [ fd] Call value_feedback:12, call_feedback:5, dst:reg5, callee:reg7, this_value:reg6
+ [ 112] End value:reg5
-A$c128af34 super-evaluation-order.js:1:1
+A$d50f708e super-evaluation-order.js:1:1
Registers: 8
Blocks: 1
block0:
[ 0] Enter
- [ 8] CreateRestParams dst:reg5, rest_index:0
- [ 18] GetSuperConstructor dst:reg6
- [ 20] SuperCallWithArgumentArray value_feedback:0, call_feedback:0, dst:reg7, super_constructor:reg6, arguments:reg5, is_synthetic:true
- [ 38] Return value:reg7
+ [ 1] CreateRestParams dst:reg5, rest_index:0
+ [ 8] GetSuperConstructor dst:reg6
+ [ b] SuperCallWithArgumentArray value_feedback:0, call_feedback:0, dst:reg7, super_constructor:reg6, arguments:reg5, is_synthetic:true
+ [ 17] Return value:reg7
-read$df25c2bd super-evaluation-order.js:3:9
+read$c75eacc0 super-evaluation-order.js:3:9
Registers: 7
Blocks: 1
- Constants:
- [0] = String("x")
block0:
[ 0] Enter
- [ 8] ResolveThisBinding
- [ 10] ResolveSuperBase dst:reg5
- [ 18] GetByIdWithThis value_feedback:0, dst:reg6, base:reg5, `x`, this_value:this
- [ 30] Return value:reg6
+ [ 1] ResolveThisBinding
+ [ 2] ResolveSuperBase dst:reg5
+ [ 5] GetByIdWithThis value_feedback:0, dst:reg6, base:reg5, `x`, this_value:this
+ [ 12] Return value:reg6
-write$aad6a697 super-evaluation-order.js:6:9
+write$8774a270 super-evaluation-order.js:6:9
Registers: 6
Blocks: 1
Constants:
- [0] = String("x")
- [1] = Int32(42)
- [2] = Undefined
+ [0] = Int32(42)
+ [1] = Undefined
block0:
[ 0] Enter
- [ 8] ResolveThisBinding
- [ 10] ResolveSuperBase dst:reg5
- [ 18] PutByIdWithThis base:reg5, this_value:this, `x`, src:Int32(42), kind:Normal
- [ 38] End value:Undefined
+ [ 1] ResolveThisBinding
+ [ 2] ResolveSuperBase dst:reg5
+ [ 5] PutByIdWithThis base:reg5, this_value:this, `x`, src:Int32(42), kind:Normal
+ [ 14] End value:Undefined
-update$94baef3c super-evaluation-order.js:9:9
+update$7a2fe82f super-evaluation-order.js:9:9
Registers: 8
Blocks: 1
Constants:
@@ -83,9 +80,9 @@ update$94baef3c super-evaluation-order.js:9:9
block0:
[ 0] Enter
- [ 8] ResolveThisBinding
- [ 10] ResolveSuperBase dst:reg5
- [ 18] GetByIdWithThis value_feedback:0, dst:reg6, base:reg5, `x`, this_value:this
- [ 30] PostfixIncrement arith_feedback:0, dst:reg7, src:reg6
- [ 40] PutByIdWithThis base:reg5, this_value:this, `x`, src:reg6, kind:Normal
- [ 60] End value:Undefined
+ [ 1] ResolveThisBinding
+ [ 2] ResolveSuperBase dst:reg5
+ [ 5] GetByIdWithThis value_feedback:0, dst:reg6, base:reg5, `x`, this_value:this
+ [ 12] PostfixIncrement arith_feedback:0, dst:reg7, src:reg6
+ [ 19] PutByIdWithThis base:reg5, this_value:this, `x`, src:reg6, kind:Normal
+ [ 28] End value:Undefined
diff --git a/Tests/LibJS/Bytecode/expected/super-for-of-resolve-order.txt b/Tests/LibJS/Bytecode/expected/super-for-of-resolve-order.txt
index c7cfe9182aa..ab8bf8399e9 100644
--- a/Tests/LibJS/Bytecode/expected/super-for-of-resolve-order.txt
+++ b/Tests/LibJS/Bytecode/expected/super-for-of-resolve-order.txt
@@ -1,4 +1,4 @@
-$772115e5 super-for-of-resolve-order.js:1:1
+$b6b5ae96 super-for-of-resolve-order.js:1:1
Registers: 8
Blocks: 1
Constants:
@@ -6,49 +6,46 @@ $772115e5 super-for-of-resolve-order.js:1:1
block0:
[ 0] Enter
- [ 8] GetLexicalEnvironment dst:reg4
- [ 10] Mov dst:reg5, src:Undefined
- [ 20] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
- [ 38] CreateVariable `C`, is_immutable:true, is_global:false, is_strict:true
- [ 48] SetLexicalEnvironment environment:reg4
- [ 50] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0
- [ 78] DynamicInitializeLexicalBinding `C`, src:reg6
- [ 88] GetGlobal value_feedback:0, dst:reg6, `C`
- [ 98] CallConstruct value_feedback:1, call_feedback:0, dst:reg5, callee:reg6
- [ b8] End value:reg5
-
-
-C$26d931cb super-for-of-resolve-order.js:3:14
+ [ 1] GetLexicalEnvironment dst:reg4
+ [ 4] Mov dst:reg5, src:Undefined
+ [ 9] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
+ [ 17] CreateVariable `C`, is_immutable:true, is_global:false, is_strict:true
+ [ 21] SetLexicalEnvironment environment:reg4
+ [ 24] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0
+ [ 3d] DynamicInitializeLexicalBinding `C`, src:reg6
+ [ 44] GetGlobal value_feedback:0, dst:reg6, `C`
+ [ 4d] CallConstruct value_feedback:1, call_feedback:0, dst:reg5, callee:reg6
+ [ 60] End value:reg5
+
+
+C$3a34c93b super-for-of-resolve-order.js:3:14
Registers: 12
Blocks: 5
Constants:
- [0] = Int32(1)
- [1] = Int32(2)
- [2] = String("prop")
- [3] = Undefined
+ [0] = Undefined
block0:
[ 0] Enter
- [ 8] NewPrimitiveArray dst:reg5, elements:[1, 2]
- [ 28] GetIterator dst_iterator_object:reg6, dst_iterator_next:reg7, dst_iterator_done:reg8, iterable:reg5, fast_array_mode_allowed:true
+ [ 1] NewPrimitiveArray dst:reg5, elements:[1, 2]
+ [ 1c] GetIterator dst_iterator_object:reg6, dst_iterator_next:reg7, dst_iterator_done:reg8, iterable:reg5, fast_array_mode_allowed:true
block1:
- [ 48] IteratorNextUnpack dst_value:reg9, dst_done:reg10, iterator_object:reg6, iterator_next:reg7, iterator_done:reg8
- [ 60] JumpTrue condition:reg10, target:block4
+ [ 2c] IteratorNextUnpack dst_value:reg9, dst_done:reg10, iterator_object:reg6, iterator_next:reg7, iterator_done:reg8
+ [ 37] JumpTrue condition:reg10, target:block4
block2:
- [ 70] ResolveThisBinding
- [ 78] ResolveSuperBase dst:reg11
- [ 80] PutByIdWithThis base:reg11, this_value:this, `prop`, src:reg9, kind:Normal
- [ a0] JumpLoop target:block1
+ [ 3e] ResolveThisBinding
+ [ 3f] ResolveSuperBase dst:reg11
+ [ 42] PutByIdWithThis base:reg11, this_value:this, `prop`, src:reg9, kind:Normal
+ [ 51] JumpLoop target:block1
block3:
- [ a8] Catch value_feedback:0, dst:reg11
- [ b0] IteratorClose iterator_object:reg6, iterator_next:reg7, iterator_done:reg8, completion_value:reg11
- [ d0] Throw src:reg11
+ [ 56] Catch value_feedback:0, dst:reg11
+ [ 5b] IteratorClose iterator_object:reg6, iterator_next:reg7, iterator_done:reg8, completion_value:reg11
+ [ 6a] Throw src:reg11
block4:
- [ d8] End value:Undefined
+ [ 6d] End value:Undefined
Exception handlers:
- [ 70 .. a8] => handler block3
+ [ 3e .. 56] => handler block3
diff --git a/Tests/LibJS/Bytecode/expected/super-length-access.txt b/Tests/LibJS/Bytecode/expected/super-length-access.txt
index 6f8649a26fb..2f58cdc2739 100644
--- a/Tests/LibJS/Bytecode/expected/super-length-access.txt
+++ b/Tests/LibJS/Bytecode/expected/super-length-access.txt
@@ -1,4 +1,4 @@
-$bb60052c super-length-access.js:3:1
+$64fdfe95 super-length-access.js:3:1
Registers: 11
Blocks: 1
Constants:
@@ -8,40 +8,40 @@ $bb60052c super-length-access.js:3:1
block0:
[ 0] Enter
- [ 8] GetLexicalEnvironment dst:reg4
- [ 10] Mov dst:reg5, src:Undefined
- [ 20] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
- [ 38] CreateVariable `A`, is_immutable:true, is_global:false, is_strict:true
- [ 48] SetLexicalEnvironment environment:reg4
- [ 50] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys:[element_keys:String("length")]
- [ 80] DynamicInitializeLexicalBinding `A`, src:reg6
- [ 90] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
- [ a8] CreateVariable `B`, is_immutable:true, is_global:false, is_strict:true
- [ b8] GetGlobal value_feedback:0, dst:reg9, `A`
- [ c8] GetClassProtoParent dst:reg10, super_class:reg9
- [ d8] SetLexicalEnvironment environment:reg4
- [ e0] NewClass dst:reg6, super_class:reg9, proto_parent:reg10, class_environment:reg7, class_blueprint_index:1, element_keys:[element_keys:String("m")]
- [ 110] DynamicInitializeLexicalBinding `B`, src:reg6
- [ 120] GetGlobal value_feedback:1, dst:reg6, `B`
- [ 130] CallConstruct value_feedback:2, call_feedback:0, dst:reg6, callee:reg6
- [ 150] GetById value_feedback:3, dst:reg7, base:reg6, `m`
- [ 168] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6
- [ 188] End value:reg5
+ [ 1] GetLexicalEnvironment dst:reg4
+ [ 4] Mov dst:reg5, src:Undefined
+ [ 9] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
+ [ 17] CreateVariable `A`, is_immutable:true, is_global:false, is_strict:true
+ [ 21] SetLexicalEnvironment environment:reg4
+ [ 24] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys:[element_keys:String("length")]
+ [ 3f] DynamicInitializeLexicalBinding `A`, src:reg6
+ [ 46] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
+ [ 54] CreateVariable `B`, is_immutable:true, is_global:false, is_strict:true
+ [ 5e] GetGlobal value_feedback:0, dst:reg9, `A`
+ [ 67] GetClassProtoParent dst:reg10, super_class:reg9
+ [ 6c] SetLexicalEnvironment environment:reg4
+ [ 6f] NewClass dst:reg6, super_class:reg9, proto_parent:reg10, class_environment:reg7, class_blueprint_index:1, element_keys:[element_keys:String("m")]
+ [ 8a] DynamicInitializeLexicalBinding `B`, src:reg6
+ [ 91] GetGlobal value_feedback:1, dst:reg6, `B`
+ [ 9a] CallConstruct value_feedback:2, call_feedback:0, dst:reg6, callee:reg6
+ [ ad] GetById value_feedback:3, dst:reg7, base:reg6, `m`
+ [ ba] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6
+ [ cf] End value:reg5
-B$52c27db9 super-length-access.js:7:1
+B$7f8cb8a3 super-length-access.js:7:1
Registers: 8
Blocks: 1
block0:
[ 0] Enter
- [ 8] CreateRestParams dst:reg5, rest_index:0
- [ 18] GetSuperConstructor dst:reg6
- [ 20] SuperCallWithArgumentArray value_feedback:0, call_feedback:0, dst:reg7, super_constructor:reg6, arguments:reg5, is_synthetic:true
- [ 38] Return value:reg7
+ [ 1] CreateRestParams dst:reg5, rest_index:0
+ [ 8] GetSuperConstructor dst:reg6
+ [ b] SuperCallWithArgumentArray value_feedback:0, call_feedback:0, dst:reg7, super_constructor:reg6, arguments:reg5, is_synthetic:true
+ [ 17] Return value:reg7
-A$70678274
+A$2cf29520
Registers: 5
Blocks: 1
Constants:
@@ -49,22 +49,22 @@ A$70678274
block0:
[ 0] Enter
- [ 8] End value:Undefined
+ [ 1] End value:Undefined
-m$eb4bd240 super-length-access.js:9:9
+m$62ba6a1b super-length-access.js:9:9
Registers: 7
Blocks: 1
block0:
[ 0] Enter
- [ 8] ResolveThisBinding
- [ 10] ResolveSuperBase dst:reg5
- [ 18] GetLengthWithThis value_feedback:0, dst:reg6, base:reg5, this_value:this
- [ 30] Return value:reg6
+ [ 1] ResolveThisBinding
+ [ 2] ResolveSuperBase dst:reg5
+ [ 5] GetLengthWithThis value_feedback:0, dst:reg6, base:reg5, this_value:this
+ [ 10] Return value:reg6
-get length$64b8a437 super-length-access.js:4:20
+get length$26cb9903 super-length-access.js:4:20
Registers: 5
Blocks: 1
Constants:
@@ -72,4 +72,4 @@ get length$64b8a437 super-length-access.js:4:20
block0:
[ 0] Enter
- [ 8] Return value:Int32(42)
+ [ 1] Return value:Int32(42)
diff --git a/Tests/LibJS/Bytecode/expected/super-method-call-order.txt b/Tests/LibJS/Bytecode/expected/super-method-call-order.txt
index f808c838b2c..9b56cb98b72 100644
--- a/Tests/LibJS/Bytecode/expected/super-method-call-order.txt
+++ b/Tests/LibJS/Bytecode/expected/super-method-call-order.txt
@@ -1,4 +1,4 @@
-$ffa84933 super-method-call-order.js:1:5
+$a7593e27 super-method-call-order.js:1:5
Registers: 8
Blocks: 1
Constants:
@@ -6,46 +6,46 @@ $ffa84933 super-method-call-order.js:1:5
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] NewObject dst:reg6
- [ 28] NewFunction dst:reg7, shared_function_data_index:0 (m), home_object:reg6
- [ 40] PutById base:reg6, `m`, src:reg7, kind:Own
- [ 60] SetGlobal `proto`, src:reg6
- [ 70] NewObject dst:reg6
- [ 80] GetGlobal value_feedback:0, dst:reg7, `proto`
- [ 90] PutById base:reg6, `__proto__`, src:reg7, kind:Prototype
- [ b0] NewFunction dst:reg7, shared_function_data_index:1 (test), home_object:reg6
- [ c8] PutById base:reg6, `test`, src:reg7, kind:Own
- [ e8] NewFunction dst:reg7, shared_function_data_index:2 (get x), home_object:reg6
- [ 100] PutById base:reg6, `x`, src:reg7, kind:Getter
- [ 120] NewFunction dst:reg7, shared_function_data_index:3 (test2), home_object:reg6
- [ 138] PutById base:reg6, `test2`, src:reg7, kind:Own
- [ 158] SetGlobal `obj`, src:reg6
- [ 168] GetGlobal value_feedback:1, dst:reg6, `obj`
- [ 178] GetById value_feedback:2, dst:reg7, base:reg6, `test`
- [ 190] Call value_feedback:3, call_feedback:0, dst:reg5, callee:reg7, this_value:reg6
- [ 1b0] GetGlobal value_feedback:4, dst:reg6, `obj`
- [ 1c0] GetById value_feedback:5, dst:reg5, base:reg6, `x`
- [ 1d8] GetGlobal value_feedback:6, dst:reg6, `obj`
- [ 1e8] GetById value_feedback:7, dst:reg7, base:reg6, `test2`
- [ 200] Call value_feedback:8, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6
- [ 220] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] NewObject dst:reg6
+ [ b] NewFunction dst:reg7, shared_function_data_index:0 (m), home_object:reg6
+ [ 16] PutById base:reg6, `m`, src:reg7, kind:Own
+ [ 25] SetGlobal `proto`, src:reg6
+ [ 2c] NewObject dst:reg6
+ [ 31] GetGlobal value_feedback:0, dst:reg7, `proto`
+ [ 3a] PutById base:reg6, `__proto__`, src:reg7, kind:Prototype
+ [ 49] NewFunction dst:reg7, shared_function_data_index:1 (test), home_object:reg6
+ [ 54] PutById base:reg6, `test`, src:reg7, kind:Own
+ [ 63] NewFunction dst:reg7, shared_function_data_index:2 (get x), home_object:reg6
+ [ 6e] PutById base:reg6, `x`, src:reg7, kind:Getter
+ [ 7d] NewFunction dst:reg7, shared_function_data_index:3 (test2), home_object:reg6
+ [ 88] PutById base:reg6, `test2`, src:reg7, kind:Own
+ [ 97] SetGlobal `obj`, src:reg6
+ [ 9e] GetGlobal value_feedback:1, dst:reg6, `obj`
+ [ a7] GetById value_feedback:2, dst:reg7, base:reg6, `test`
+ [ b4] Call value_feedback:3, call_feedback:0, dst:reg5, callee:reg7, this_value:reg6
+ [ c9] GetGlobal value_feedback:4, dst:reg6, `obj`
+ [ d2] GetById value_feedback:5, dst:reg5, base:reg6, `x`
+ [ df] GetGlobal value_feedback:6, dst:reg6, `obj`
+ [ e8] GetById value_feedback:7, dst:reg7, base:reg6, `test2`
+ [ f5] Call value_feedback:8, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6
+ [ 10a] End value:reg5
-test$70dcf05f super-method-call-order.js:5:9
+test$c2b0bced super-method-call-order.js:5:9
Registers: 7
Blocks: 1
block0:
[ 0] Enter
- [ 8] ResolveThisBinding
- [ 10] ResolveSuperBase dst:reg5
- [ 18] GetByIdWithThis value_feedback:0, dst:reg6, base:reg5, `m`, this_value:this
- [ 30] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:this
- [ 50] Return value:reg5
+ [ 1] ResolveThisBinding
+ [ 2] ResolveSuperBase dst:reg5
+ [ 5] GetByIdWithThis value_feedback:0, dst:reg6, base:reg5, `m`, this_value:this
+ [ 12] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:this
+ [ 27] Return value:reg5
-m$ec7e6178
+m$2a6b6cac
Registers: 5
Blocks: 1
Constants:
@@ -53,32 +53,30 @@ m$ec7e6178
block0:
[ 0] Enter
- [ 8] End value:Undefined
+ [ 1] End value:Undefined
-get x$97875862 super-method-call-order.js:8:9
+get x$f46ae930 super-method-call-order.js:8:9
Registers: 7
Blocks: 1
block0:
[ 0] Enter
- [ 8] ResolveThisBinding
- [ 10] ResolveSuperBase dst:reg5
- [ 18] GetByIdWithThis value_feedback:0, dst:reg6, base:reg5, `m`, this_value:this
- [ 30] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:this
- [ 50] Return value:reg5
+ [ 1] ResolveThisBinding
+ [ 2] ResolveSuperBase dst:reg5
+ [ 5] GetByIdWithThis value_feedback:0, dst:reg6, base:reg5, `m`, this_value:this
+ [ 12] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:this
+ [ 27] Return value:reg5
-test2$5d2fb73b super-method-call-order.js:11:9
+test2$d032d089 super-method-call-order.js:11:9
Registers: 7
Blocks: 1
- Constants:
- [0] = String("m")
block0:
[ 0] Enter
- [ 8] ResolveThisBinding
- [ 10] ResolveSuperBase dst:reg5
- [ 18] GetByIdWithThis value_feedback:0, dst:reg6, base:reg5, `m`, this_value:this
- [ 30] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:this
- [ 50] Return value:reg5
+ [ 1] ResolveThisBinding
+ [ 2] ResolveSuperBase dst:reg5
+ [ 5] GetByIdWithThis value_feedback:0, dst:reg6, base:reg5, `m`, this_value:this
+ [ 12] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:this
+ [ 27] Return value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/super-optional-call-this.txt b/Tests/LibJS/Bytecode/expected/super-optional-call-this.txt
index 4e568a9e7ff..5896c3ec3b1 100644
--- a/Tests/LibJS/Bytecode/expected/super-optional-call-this.txt
+++ b/Tests/LibJS/Bytecode/expected/super-optional-call-this.txt
@@ -1,4 +1,4 @@
-$408635ca super-optional-call-this.js:1:1
+$14b5a2f7 super-optional-call-this.js:1:1
Registers: 11
Blocks: 1
Constants:
@@ -7,40 +7,40 @@ $408635ca super-optional-call-this.js:1:1
block0:
[ 0] Enter
- [ 8] GetLexicalEnvironment dst:reg4
- [ 10] Mov dst:reg5, src:Undefined
- [ 20] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
- [ 38] CreateVariable `Base`, is_immutable:true, is_global:false, is_strict:true
- [ 48] SetLexicalEnvironment environment:reg4
- [ 50] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys:[element_keys:String("method")]
- [ 80] DynamicInitializeLexicalBinding `Base`, src:reg6
- [ 90] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
- [ a8] CreateVariable `Foo`, is_immutable:true, is_global:false, is_strict:true
- [ b8] GetGlobal value_feedback:0, dst:reg9, `Base`
- [ c8] GetClassProtoParent dst:reg10, super_class:reg9
- [ d8] SetLexicalEnvironment environment:reg4
- [ e0] NewClass dst:reg6, super_class:reg9, proto_parent:reg10, class_environment:reg7, class_blueprint_index:1, element_keys:[element_keys:String("method")]
- [ 110] DynamicInitializeLexicalBinding `Foo`, src:reg6
- [ 120] GetGlobal value_feedback:1, dst:reg6, `Foo`
- [ 130] CallConstruct value_feedback:2, call_feedback:0, dst:reg6, callee:reg6
- [ 150] GetById value_feedback:3, dst:reg7, base:reg6, `method`
- [ 168] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6
- [ 188] End value:reg5
-
-
-Foo$7d11cc86 super-optional-call-this.js:4:1
+ [ 1] GetLexicalEnvironment dst:reg4
+ [ 4] Mov dst:reg5, src:Undefined
+ [ 9] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
+ [ 17] CreateVariable `Base`, is_immutable:true, is_global:false, is_strict:true
+ [ 21] SetLexicalEnvironment environment:reg4
+ [ 24] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys:[element_keys:String("method")]
+ [ 3f] DynamicInitializeLexicalBinding `Base`, src:reg6
+ [ 46] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
+ [ 54] CreateVariable `Foo`, is_immutable:true, is_global:false, is_strict:true
+ [ 5e] GetGlobal value_feedback:0, dst:reg9, `Base`
+ [ 67] GetClassProtoParent dst:reg10, super_class:reg9
+ [ 6c] SetLexicalEnvironment environment:reg4
+ [ 6f] NewClass dst:reg6, super_class:reg9, proto_parent:reg10, class_environment:reg7, class_blueprint_index:1, element_keys:[element_keys:String("method")]
+ [ 8a] DynamicInitializeLexicalBinding `Foo`, src:reg6
+ [ 91] GetGlobal value_feedback:1, dst:reg6, `Foo`
+ [ 9a] CallConstruct value_feedback:2, call_feedback:0, dst:reg6, callee:reg6
+ [ ad] GetById value_feedback:3, dst:reg7, base:reg6, `method`
+ [ ba] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6
+ [ cf] End value:reg5
+
+
+Foo$6beefc3c super-optional-call-this.js:4:1
Registers: 8
Blocks: 1
block0:
[ 0] Enter
- [ 8] CreateRestParams dst:reg5, rest_index:0
- [ 18] GetSuperConstructor dst:reg6
- [ 20] SuperCallWithArgumentArray value_feedback:0, call_feedback:0, dst:reg7, super_constructor:reg6, arguments:reg5, is_synthetic:true
- [ 38] Return value:reg7
+ [ 1] CreateRestParams dst:reg5, rest_index:0
+ [ 8] GetSuperConstructor dst:reg6
+ [ b] SuperCallWithArgumentArray value_feedback:0, call_feedback:0, dst:reg7, super_constructor:reg6, arguments:reg5, is_synthetic:true
+ [ 17] Return value:reg7
-Base$25c3a990
+Base$63b0b4c4
Registers: 5
Blocks: 1
Constants:
@@ -48,10 +48,10 @@ Base$25c3a990
block0:
[ 0] Enter
- [ 8] End value:Undefined
+ [ 1] End value:Undefined
-method$a45e002d super-optional-call-this.js:6:9
+method$4b5ac402 super-optional-call-this.js:6:9
Registers: 7
Blocks: 4
Constants:
@@ -59,23 +59,23 @@ method$a45e002d super-optional-call-this.js:6:9
block0:
[ 0] Enter
- [ 8] ResolveThisBinding
- [ 10] ResolveSuperBase dst:reg5
- [ 18] GetByIdWithThis value_feedback:0, dst:reg6, base:reg5, `method`, this_value:this
- [ 30] JumpNullish condition:reg6, true_target:block2, false_target:block1
+ [ 1] ResolveThisBinding
+ [ 2] ResolveSuperBase dst:reg5
+ [ 5] GetByIdWithThis value_feedback:0, dst:reg6, base:reg5, `method`, this_value:this
+ [ 12] JumpNullish condition:reg6, true_target:block2, false_target:block1
block1:
- [ 40] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:this
- [ 60] Jump target:block3
+ [ 1d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:this
+ [ 32] Jump target:block3
block2:
- [ 68] Mov dst:reg5, src:Undefined
+ [ 37] Mov dst:reg5, src:Undefined
block3:
- [ 78] Return value:reg5
+ [ 3c] Return value:reg5
-method$ed84a6f2
+method$2b71b226
Registers: 5
Blocks: 1
Constants:
@@ -83,4 +83,4 @@ method$ed84a6f2
block0:
[ 0] Enter
- [ 8] End value:Undefined
+ [ 1] End value:Undefined
diff --git a/Tests/LibJS/Bytecode/expected/switch-completion-value.txt b/Tests/LibJS/Bytecode/expected/switch-completion-value.txt
index 3d2d2b2f380..815c9dc0aa3 100644
--- a/Tests/LibJS/Bytecode/expected/switch-completion-value.txt
+++ b/Tests/LibJS/Bytecode/expected/switch-completion-value.txt
@@ -1,4 +1,4 @@
-$3576718a switch-completion-value.js:1:1
+$d98c88d3 switch-completion-value.js:1:1
Registers: 10
Blocks: 1
Constants:
@@ -9,26 +9,26 @@ $3576718a switch-completion-value.js:1:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] DynamicGetBinding value_feedback:0, dst:reg6, `console`
- [ 28] GetById value_feedback:1, dst:reg7, base:reg6, `log`
- [ 40] DynamicGetCalleeAndThisFromEnvironment value_feedback:2, callee:reg8, this_value:reg9, `eval`
- [ 58] CallDirectEval value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:reg9, arguments:[String("switch(1) { case 1: 'hello'; let x = 1; }")]
- [ 80] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ a8] DynamicGetBinding value_feedback:5, dst:reg6, `console`
- [ b8] GetById value_feedback:6, dst:reg7, base:reg6, `log`
- [ d0] DynamicGetCalleeAndThisFromEnvironment value_feedback:7, callee:reg8, this_value:reg9, `eval`
- [ e8] CallDirectEval value_feedback:8, call_feedback:2, dst:reg8, callee:reg8, this_value:reg9, arguments:[String("switch(1) { case 1: 'first'; 'second'; }")]
- [ 110] Call value_feedback:9, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 138] DynamicGetBinding value_feedback:10, dst:reg6, `console`
- [ 148] GetById value_feedback:11, dst:reg7, base:reg6, `log`
- [ 160] DynamicGetCalleeAndThisFromEnvironment value_feedback:12, callee:reg8, this_value:reg9, `eval`
- [ 178] CallDirectEval value_feedback:13, call_feedback:4, dst:reg8, callee:reg8, this_value:reg9, arguments:[String("switch(1) { case 1: 'matched'; break; default: 'default'; }")]
- [ 1a0] Call value_feedback:14, call_feedback:5, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 1c8] End value:reg5
-
-
-eval$01462e32 line 1, column 8
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] DynamicGetBinding value_feedback:0, dst:reg6, `console`
+ [ f] GetById value_feedback:1, dst:reg7, base:reg6, `log`
+ [ 1c] DynamicGetCalleeAndThisFromEnvironment value_feedback:2, callee:reg8, this_value:reg9, `eval`
+ [ 27] CallDirectEval value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:reg9, arguments:[String("switch(1) { case 1: 'hello'; let x = 1; }")]
+ [ 3e] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 55] DynamicGetBinding value_feedback:5, dst:reg6, `console`
+ [ 5e] GetById value_feedback:6, dst:reg7, base:reg6, `log`
+ [ 6b] DynamicGetCalleeAndThisFromEnvironment value_feedback:7, callee:reg8, this_value:reg9, `eval`
+ [ 76] CallDirectEval value_feedback:8, call_feedback:2, dst:reg8, callee:reg8, this_value:reg9, arguments:[String("switch(1) { case 1: 'first'; 'second'; }")]
+ [ 8d] Call value_feedback:9, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ a4] DynamicGetBinding value_feedback:10, dst:reg6, `console`
+ [ ad] GetById value_feedback:11, dst:reg7, base:reg6, `log`
+ [ ba] DynamicGetCalleeAndThisFromEnvironment value_feedback:12, callee:reg8, this_value:reg9, `eval`
+ [ c5] CallDirectEval value_feedback:13, call_feedback:4, dst:reg8, callee:reg8, this_value:reg9, arguments:[String("switch(1) { case 1: 'matched'; break; default: 'default'; }")]
+ [ dc] Call value_feedback:14, call_feedback:5, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ f3] End value:reg5
+
+
+eval$bd4616f4 line 1, column 8
Registers: 8
Blocks: 4
Locals: x~0
@@ -40,24 +40,24 @@ eval$01462e32 line 1, column 8
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] Mov dst:reg6, src:Int32(1)
- [ 28] Mov dst:reg5, src:Undefined
- [ 38] Mov dst:x~0, src:<Empty>
- [ 48] JumpStrictlyEquals arith_feedback:0, lhs:Int32(1), rhs:reg6, true_target:block2, false_target:block1
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] Mov dst:reg6, src:Int32(1)
+ [ b] Mov dst:reg5, src:Undefined
+ [ 10] Mov dst:x~0, src:<Empty>
+ [ 15] JumpStrictlyEquals arith_feedback:0, lhs:Int32(1), rhs:reg6, true_target:block2, false_target:block1
block1:
- [ 60] Jump target:block3
+ [ 24] Jump target:block3
block2:
- [ 68] Mov dst:reg5, src:String("hello")
- [ 78] Mov dst:x~0, src:Int32(1)
+ [ 29] Mov dst:reg5, src:String("hello")
+ [ 2e] Mov dst:x~0, src:Int32(1)
block3:
- [ 88] End value:reg5
+ [ 33] End value:reg5
-eval$fe823d22 line 1, column 8
+eval$6d19d7e3 line 1, column 8
Registers: 8
Blocks: 4
Constants:
@@ -68,23 +68,23 @@ eval$fe823d22 line 1, column 8
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] Mov dst:reg6, src:Int32(1)
- [ 28] Mov dst:reg5, src:Undefined
- [ 38] JumpStrictlyEquals arith_feedback:0, lhs:Int32(1), rhs:reg6, true_target:block2, false_target:block1
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] Mov dst:reg6, src:Int32(1)
+ [ b] Mov dst:reg5, src:Undefined
+ [ 10] JumpStrictlyEquals arith_feedback:0, lhs:Int32(1), rhs:reg6, true_target:block2, false_target:block1
block1:
- [ 50] Jump target:block3
+ [ 1f] Jump target:block3
block2:
- [ 58] Mov dst:reg5, src:String("first")
- [ 68] Mov dst:reg5, src:String("second")
+ [ 24] Mov dst:reg5, src:String("first")
+ [ 29] Mov dst:reg5, src:String("second")
block3:
- [ 78] End value:reg5
+ [ 2e] End value:reg5
-eval$7fe435aa line 1, column 8
+eval$bd4616f4 line 1, column 8
Registers: 8
Blocks: 5
Constants:
@@ -95,23 +95,23 @@ eval$7fe435aa line 1, column 8
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] Mov dst:reg6, src:Int32(1)
- [ 28] Mov dst:reg5, src:Undefined
- [ 38] JumpStrictlyEquals arith_feedback:0, lhs:Int32(1), rhs:reg6, true_target:block2, false_target:block1
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] Mov dst:reg6, src:Int32(1)
+ [ b] Mov dst:reg5, src:Undefined
+ [ 10] JumpStrictlyEquals arith_feedback:0, lhs:Int32(1), rhs:reg6, true_target:block2, false_target:block1
block1:
- [ 50] Jump target:block3
+ [ 1f] Jump target:block3
block2:
- [ 58] Mov dst:reg5, src:String("matched")
- [ 68] Jump target:block4
+ [ 24] Mov dst:reg5, src:String("matched")
+ [ 29] Jump target:block4
block3:
- [ 70] Mov dst:reg5, src:String("default")
+ [ 2e] Mov dst:reg5, src:String("default")
block4:
- [ 80] End value:reg5
+ [ 33] End value:reg5
"hello"
diff --git a/Tests/LibJS/Bytecode/expected/switch-local-only-let.txt b/Tests/LibJS/Bytecode/expected/switch-local-only-let.txt
index 80d19d1bfa8..8e3082c3147 100644
--- a/Tests/LibJS/Bytecode/expected/switch-local-only-let.txt
+++ b/Tests/LibJS/Bytecode/expected/switch-local-only-let.txt
@@ -1,4 +1,4 @@
-$b9f6c088 switch-local-only-let.js:15:1
+$854f309b switch-local-only-let.js:15:1
Registers: 9
Blocks: 1
Constants:
@@ -9,26 +9,26 @@ $b9f6c088 switch-local-only-let.js:15:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `console`
- [ 28] GetById value_feedback:1, dst:reg7, base:reg6, `log`
- [ 40] GetGlobal value_feedback:2, dst:reg8, `switchLocalOnly`
- [ 50] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined, arguments:[Int32(1)]
- [ 78] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ a0] GetGlobal value_feedback:5, dst:reg6, `console`
- [ b0] GetById value_feedback:6, dst:reg7, base:reg6, `log`
- [ c8] GetGlobal value_feedback:7, dst:reg8, `switchLocalOnly`
- [ d8] Call value_feedback:8, call_feedback:2, dst:reg8, callee:reg8, this_value:Undefined, arguments:[Int32(2)]
- [ 100] Call value_feedback:9, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 128] GetGlobal value_feedback:10, dst:reg6, `console`
- [ 138] GetById value_feedback:11, dst:reg7, base:reg6, `log`
- [ 150] GetGlobal value_feedback:12, dst:reg8, `switchLocalOnly`
- [ 160] Call value_feedback:13, call_feedback:4, dst:reg8, callee:reg8, this_value:Undefined, arguments:[Int32(3)]
- [ 188] Call value_feedback:14, call_feedback:5, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 1b0] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `console`
+ [ f] GetById value_feedback:1, dst:reg7, base:reg6, `log`
+ [ 1c] GetGlobal value_feedback:2, dst:reg8, `switchLocalOnly`
+ [ 25] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined, arguments:[Int32(1)]
+ [ 3c] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 53] GetGlobal value_feedback:5, dst:reg6, `console`
+ [ 5c] GetById value_feedback:6, dst:reg7, base:reg6, `log`
+ [ 69] GetGlobal value_feedback:7, dst:reg8, `switchLocalOnly`
+ [ 72] Call value_feedback:8, call_feedback:2, dst:reg8, callee:reg8, this_value:Undefined, arguments:[Int32(2)]
+ [ 89] Call value_feedback:9, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ a0] GetGlobal value_feedback:10, dst:reg6, `console`
+ [ a9] GetById value_feedback:11, dst:reg7, base:reg6, `log`
+ [ b6] GetGlobal value_feedback:12, dst:reg8, `switchLocalOnly`
+ [ bf] Call value_feedback:13, call_feedback:4, dst:reg8, callee:reg8, this_value:Undefined, arguments:[Int32(3)]
+ [ d6] Call value_feedback:14, call_feedback:5, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ ed] End value:reg5
-switchLocalOnly$326c4edf switch-local-only-let.js:4:13
+switchLocalOnly$a949ad11 switch-local-only-let.js:4:13
Registers: 7
Blocks: 6
Locals: a~0, b~1
@@ -42,27 +42,27 @@ switchLocalOnly$326c4edf switch-local-only-let.js:4:13
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:arg0
- [ 18] Mov dst:a~0, src:<Empty>
- [ 28] Mov dst:b~1, src:<Empty>
- [ 38] JumpStrictlyEquals arith_feedback:0, lhs:Int32(1), rhs:reg5, true_target:block3, false_target:block1
+ [ 1] Mov dst:reg5, src:arg0
+ [ 6] Mov dst:a~0, src:<Empty>
+ [ b] Mov dst:b~1, src:<Empty>
+ [ 10] JumpStrictlyEquals arith_feedback:0, lhs:Int32(1), rhs:reg5, true_target:block3, false_target:block1
block1:
- [ 50] JumpStrictlyEquals arith_feedback:1, lhs:Int32(2), rhs:reg5, true_target:block4, false_target:block2
+ [ 1f] JumpStrictlyEquals arith_feedback:1, lhs:Int32(2), rhs:reg5, true_target:block4, false_target:block2
block2:
- [ 68] Jump target:block5
+ [ 2e] Jump target:block5
block3:
- [ 70] Mov dst:a~0, src:Int32(10)
- [ 80] Return value:a~0
+ [ 33] Mov dst:a~0, src:Int32(10)
+ [ 38] Return value:a~0
block4:
- [ 88] Mov dst:b~1, src:Int32(20)
- [ 98] Return value:b~1
+ [ 3b] Mov dst:b~1, src:Int32(20)
+ [ 40] Return value:b~1
block5:
- [ a0] Return value:Int32(0)
+ [ 43] Return value:Int32(0)
10
diff --git a/Tests/LibJS/Bytecode/expected/switch-scoping.txt b/Tests/LibJS/Bytecode/expected/switch-scoping.txt
index 9c15fcff9a9..0a6b50d939a 100644
--- a/Tests/LibJS/Bytecode/expected/switch-scoping.txt
+++ b/Tests/LibJS/Bytecode/expected/switch-scoping.txt
@@ -1,4 +1,4 @@
-$25393090 switch-scoping.js:15:1
+$8c7ea038 switch-scoping.js:15:1
Registers: 9
Blocks: 1
Constants:
@@ -8,21 +8,21 @@ $25393090 switch-scoping.js:15:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `console`
- [ 28] GetById value_feedback:1, dst:reg7, base:reg6, `log`
- [ 40] GetGlobal value_feedback:2, dst:reg8, `switchWithBlockDecl`
- [ 50] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined, arguments:[Int32(1)]
- [ 78] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ a0] GetGlobal value_feedback:5, dst:reg6, `console`
- [ b0] GetById value_feedback:6, dst:reg7, base:reg6, `log`
- [ c8] GetGlobal value_feedback:7, dst:reg8, `switchWithBlockDecl`
- [ d8] Call value_feedback:8, call_feedback:2, dst:reg8, callee:reg8, this_value:Undefined, arguments:[Int32(2)]
- [ 100] Call value_feedback:9, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 128] End value:reg5
-
-
-switchWithBlockDecl$c207ea76 switch-scoping.js:2:9
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `console`
+ [ f] GetById value_feedback:1, dst:reg7, base:reg6, `log`
+ [ 1c] GetGlobal value_feedback:2, dst:reg8, `switchWithBlockDecl`
+ [ 25] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined, arguments:[Int32(1)]
+ [ 3c] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 53] GetGlobal value_feedback:5, dst:reg6, `console`
+ [ 5c] GetById value_feedback:6, dst:reg7, base:reg6, `log`
+ [ 69] GetGlobal value_feedback:7, dst:reg8, `switchWithBlockDecl`
+ [ 72] Call value_feedback:8, call_feedback:2, dst:reg8, callee:reg8, this_value:Undefined, arguments:[Int32(2)]
+ [ 89] Call value_feedback:9, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ a0] End value:reg5
+
+
+switchWithBlockDecl$b9995bca switch-scoping.js:2:9
Registers: 8
Blocks: 6
Locals: result~0
@@ -35,53 +35,53 @@ switchWithBlockDecl$c207ea76 switch-scoping.js:2:9
block0:
[ 0] Enter
- [ 8] GetLexicalEnvironment dst:reg4
- [ 10] Mov dst:result~0, src:Undefined
- [ 20] Mov dst:reg5, src:arg0
- [ 30] CreateLexicalEnvironment dst:reg6, parent:reg4, capacity:2, is_catch_environment:false
- [ 48] CreateVariable `a`, is_immutable:false, is_global:false, is_strict:false
- [ 58] CreateVariable `b`, is_immutable:false, is_global:false, is_strict:false
- [ 68] JumpStrictlyEquals arith_feedback:0, lhs:Int32(1), rhs:reg5, true_target:block3, false_target:block1
+ [ 1] GetLexicalEnvironment dst:reg4
+ [ 4] Mov dst:result~0, src:Undefined
+ [ 9] Mov dst:reg5, src:arg0
+ [ e] CreateLexicalEnvironment dst:reg6, parent:reg4, capacity:2, is_catch_environment:false
+ [ 1c] CreateVariable `a`, is_immutable:false, is_global:false, is_strict:false
+ [ 26] CreateVariable `b`, is_immutable:false, is_global:false, is_strict:false
+ [ 30] JumpStrictlyEquals arith_feedback:0, lhs:Int32(1), rhs:reg5, true_target:block3, false_target:block1
block1:
- [ 80] JumpStrictlyEquals arith_feedback:1, lhs:Int32(2), rhs:reg5, true_target:block4, false_target:block2
+ [ 3f] JumpStrictlyEquals arith_feedback:1, lhs:Int32(2), rhs:reg5, true_target:block4, false_target:block2
block2:
- [ 98] Jump target:block5
+ [ 4e] Jump target:block5
block3:
- [ a0] InitializeLexicalBinding `a`, src:String("one")
- [ b8] NewFunction dst:result~0, shared_function_data_index:0 (result)
- [ d0] Jump target:block5
+ [ 53] InitializeLexicalBinding `a`, src:String("one")
+ [ 60] NewFunction dst:result~0, shared_function_data_index:0 (result)
+ [ 6b] Jump target:block5
block4:
- [ d8] InitializeLexicalBinding `b`, src:String("two")
- [ f0] NewFunction dst:result~0, shared_function_data_index:1 (result)
+ [ 70] InitializeLexicalBinding `b`, src:String("two")
+ [ 7d] NewFunction dst:result~0, shared_function_data_index:1 (result)
block5:
- [ 108] SetLexicalEnvironment environment:reg4
- [ 110] Call value_feedback:0, call_feedback:0, dst:reg5, callee:result~0, this_value:Undefined
- [ 130] Return value:reg5
+ [ 88] SetLexicalEnvironment environment:reg4
+ [ 8b] Call value_feedback:0, call_feedback:0, dst:reg5, callee:result~0, this_value:Undefined
+ [ a0] Return value:reg5
-result$b74edc04 switch-scoping.js:6:22
+result$318164ef switch-scoping.js:6:22
Registers: 6
Blocks: 1
block0:
[ 0] Enter
- [ 8] GetBinding value_feedback:0, dst:reg5, `a`
- [ 20] Return value:reg5
+ [ 1] GetBinding value_feedback:0, dst:reg5, `a`
+ [ 10] Return value:reg5
-result$80d61348 switch-scoping.js:10:22
+result$f844ab23 switch-scoping.js:10:22
Registers: 6
Blocks: 1
block0:
[ 0] Enter
- [ 8] GetBinding value_feedback:0, dst:reg5, `b`
- [ 20] Return value:reg5
+ [ 1] GetBinding value_feedback:0, dst:reg5, `b`
+ [ 10] Return value:reg5
"one"
diff --git a/Tests/LibJS/Bytecode/expected/switch-with-block-scope-return.txt b/Tests/LibJS/Bytecode/expected/switch-with-block-scope-return.txt
index b89bbc88d4e..b760baaf36d 100644
--- a/Tests/LibJS/Bytecode/expected/switch-with-block-scope-return.txt
+++ b/Tests/LibJS/Bytecode/expected/switch-with-block-scope-return.txt
@@ -1,4 +1,4 @@
-$43d71680 switch-with-block-scope-return.js:12:1
+$a75eed01 switch-with-block-scope-return.js:12:1
Registers: 7
Blocks: 1
Constants:
@@ -7,13 +7,13 @@ $43d71680 switch-with-block-scope-return.js:12:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `f`
- [ 28] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(1)]
- [ 50] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `f`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(1)]
+ [ 26] End value:reg5
-f$3acd362f switch-with-block-scope-return.js:2:13
+f$d64bb797 switch-with-block-scope-return.js:2:13
Registers: 8
Blocks: 6
Constants:
@@ -26,29 +26,29 @@ f$3acd362f switch-with-block-scope-return.js:2:13
block0:
[ 0] Enter
- [ 8] GetLexicalEnvironment dst:reg4
- [ 10] Mov dst:reg5, src:arg0
- [ 20] CreateLexicalEnvironment dst:reg6, parent:reg4, capacity:1, is_catch_environment:false
- [ 38] CreateVariable `y`, is_immutable:true, is_global:false, is_strict:true
- [ 48] JumpStrictlyEquals arith_feedback:0, lhs:Int32(1), rhs:reg5, true_target:block3, false_target:block1
+ [ 1] GetLexicalEnvironment dst:reg4
+ [ 4] Mov dst:reg5, src:arg0
+ [ 9] CreateLexicalEnvironment dst:reg6, parent:reg4, capacity:1, is_catch_environment:false
+ [ 17] CreateVariable `y`, is_immutable:true, is_global:false, is_strict:true
+ [ 21] JumpStrictlyEquals arith_feedback:0, lhs:Int32(1), rhs:reg5, true_target:block3, false_target:block1
block1:
- [ 60] JumpStrictlyEquals arith_feedback:1, lhs:Int32(2), rhs:reg5, true_target:block4, false_target:block2
+ [ 30] JumpStrictlyEquals arith_feedback:1, lhs:Int32(2), rhs:reg5, true_target:block4, false_target:block2
block2:
- [ 78] Jump target:block5
+ [ 3f] Jump target:block5
block3:
- [ 80] SetLexicalEnvironment environment:reg4
- [ 88] Return value:String("one")
+ [ 44] SetLexicalEnvironment environment:reg4
+ [ 47] Return value:String("one")
block4:
- [ 90] InitializeLexicalBinding `y`, src:String("two")
- [ a8] NewFunction dst:reg7, shared_function_data_index:0
- [ c0] Call value_feedback:0, call_feedback:0, dst:reg7, callee:reg7, this_value:Undefined
- [ e0] SetLexicalEnvironment environment:reg4
- [ e8] Return value:reg7
+ [ 4a] InitializeLexicalBinding `y`, src:String("two")
+ [ 57] NewFunction dst:reg7, shared_function_data_index:0
+ [ 62] Call value_feedback:0, call_feedback:0, dst:reg7, callee:reg7, this_value:Undefined
+ [ 77] SetLexicalEnvironment environment:reg4
+ [ 7a] Return value:reg7
block5:
- [ f0] SetLexicalEnvironment environment:reg4
- [ f8] Return value:String("other")
+ [ 7d] SetLexicalEnvironment environment:reg4
+ [ 80] Return value:String("other")
diff --git a/Tests/LibJS/Bytecode/expected/tagged-template-base-identifier.txt b/Tests/LibJS/Bytecode/expected/tagged-template-base-identifier.txt
index a304db33801..22b739e29b5 100644
--- a/Tests/LibJS/Bytecode/expected/tagged-template-base-identifier.txt
+++ b/Tests/LibJS/Bytecode/expected/tagged-template-base-identifier.txt
@@ -1,4 +1,4 @@
-$1a7f12f1 tagged-template-base-identifier.js:1:5
+$451086b5 tagged-template-base-identifier.js:1:5
Registers: 9
Blocks: 1
Constants:
@@ -7,23 +7,23 @@ $1a7f12f1 tagged-template-base-identifier.js:1:5
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] NewObject dst:reg6
- [ 28] NewFunction dst:reg7, shared_function_data_index:0 (f)
- [ 40] InitObjectLiteralProperty object:reg6, `f`, src:reg7, shape_cache_index:0, property_slot:0
- [ 58] CacheObjectShape object:reg6
- [ 68] SetGlobal `obj`, src:reg6
- [ 78] GetGlobal value_feedback:0, dst:reg6, `obj`
- [ 88] GetById value_feedback:1, dst:reg7, base:reg6, `f`
- [ a0] GetTemplateObject dst:reg8, strings:[String(""), String("")]
- [ c0] Call value_feedback:2, call_feedback:0, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ e8] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] NewObject dst:reg6
+ [ b] NewFunction dst:reg7, shared_function_data_index:0 (f)
+ [ 16] InitObjectLiteralProperty object:reg6, `f`, src:reg7, shape_cache_index:0, property_slot:0
+ [ 25] CacheObjectShape object:reg6
+ [ 2a] SetGlobal `obj`, src:reg6
+ [ 31] GetGlobal value_feedback:0, dst:reg6, `obj`
+ [ 3a] GetById value_feedback:1, dst:reg7, base:reg6, `f`
+ [ 47] GetTemplateObject dst:reg8, strings:[String(""), String("")]
+ [ 5a] Call value_feedback:2, call_feedback:0, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 71] End value:reg5
-f$705b4581 tagged-template-base-identifier.js:3:9
+f$ae4850b5 tagged-template-base-identifier.js:3:9
Registers: 5
Blocks: 1
block0:
[ 0] Enter
- [ 8] Return value:this
+ [ 1] Return value:this
diff --git a/Tests/LibJS/Bytecode/expected/tagged-template-if-register-order.txt b/Tests/LibJS/Bytecode/expected/tagged-template-if-register-order.txt
index 96556659063..7aada101b63 100644
--- a/Tests/LibJS/Bytecode/expected/tagged-template-if-register-order.txt
+++ b/Tests/LibJS/Bytecode/expected/tagged-template-if-register-order.txt
@@ -1,4 +1,4 @@
-$ca340182 tagged-template-if-register-order.js:1:1
+$33ac2891 tagged-template-if-register-order.js:1:1
Registers: 9
Blocks: 6
Constants:
@@ -9,36 +9,36 @@ $ca340182 tagged-template-if-register-order.js:1:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] Mov dst:reg5, src:String("use strict")
- [ 28] GetGlobal value_feedback:0, dst:reg6, `String`
- [ 38] GetById value_feedback:1, dst:reg7, base:reg6, `raw`
- [ 50] GetTemplateObject dst:reg8, strings:[String("hello"), String("hello")]
- [ 70] Call value_feedback:2, call_feedback:0, dst:reg6, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 98] DynamicInitializeLexicalBinding `x`, src:reg6
- [ a8] DynamicInitializeLexicalBinding `y`, src:Null
- [ b8] GetGlobal value_feedback:3, dst:reg6, `x`
- [ c8] StrictlyEquals arith_feedback:0, dst:reg6, lhs:reg6, rhs:String("hello")
- [ d8] Mov dst:reg5, src:Undefined
- [ e8] JumpFalse condition:reg6, target:block5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] Mov dst:reg5, src:String("use strict")
+ [ b] GetGlobal value_feedback:0, dst:reg6, `String`
+ [ 14] GetById value_feedback:1, dst:reg7, base:reg6, `raw`
+ [ 21] GetTemplateObject dst:reg8, strings:[String("hello"), String("hello")]
+ [ 34] Call value_feedback:2, call_feedback:0, dst:reg6, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 4b] DynamicInitializeLexicalBinding `x`, src:reg6
+ [ 52] DynamicInitializeLexicalBinding `y`, src:Null
+ [ 59] GetGlobal value_feedback:3, dst:reg6, `x`
+ [ 62] StrictlyEquals arith_feedback:0, dst:reg6, lhs:reg6, rhs:String("hello")
+ [ 6b] Mov dst:reg5, src:Undefined
+ [ 70] JumpFalse condition:reg6, target:block5
block1:
- [ f8] ResolveGlobalBinding dst:reg6, `y`
- [ 108] GetGlobal value_feedback:4, dst:reg7, `x`
- [ 118] GetById value_feedback:5, dst:reg8, base:reg7, `toUpperCase`
- [ 130] Call value_feedback:6, call_feedback:1, dst:reg7, callee:reg8, this_value:reg7
- [ 150] JumpIf condition:reg6, true_target:block2, false_target:block3
+ [ 77] ResolveGlobalBinding dst:reg6, `y`
+ [ 7e] GetGlobal value_feedback:4, dst:reg7, `x`
+ [ 87] GetById value_feedback:5, dst:reg8, base:reg7, `toUpperCase`
+ [ 94] Call value_feedback:6, call_feedback:1, dst:reg7, callee:reg8, this_value:reg7
+ [ a9] JumpIf condition:reg6, true_target:block2, false_target:block3
block2:
- [ 160] SetGlobal `y`, src:reg7
- [ 170] Jump target:block4
+ [ b4] SetGlobal `y`, src:reg7
+ [ bb] Jump target:block4
block3:
- [ 178] SetResolvedBinding environment:Null, `y`, src:reg7
- [ 188] Jump target:block4
+ [ c0] SetResolvedBinding environment:Null, `y`, src:reg7
+ [ c7] Jump target:block4
block4:
- [ 190] Mov dst:reg5, src:reg7
+ [ cc] Mov dst:reg5, src:reg7
block5:
- [ 1a0] End value:reg5
+ [ d1] End value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/tdz-reset-in-loop.txt b/Tests/LibJS/Bytecode/expected/tdz-reset-in-loop.txt
index c9529bd49d9..b5a0bef73b8 100644
--- a/Tests/LibJS/Bytecode/expected/tdz-reset-in-loop.txt
+++ b/Tests/LibJS/Bytecode/expected/tdz-reset-in-loop.txt
@@ -1,4 +1,4 @@
-$29e4bdb2 tdz-reset-in-loop.js:22:1
+$9643914d tdz-reset-in-loop.js:22:1
Registers: 8
Blocks: 1
Constants:
@@ -6,53 +6,52 @@ $29e4bdb2 tdz-reset-in-loop.js:22:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `checked`
- [ 28] NewArray dst:reg7
- [ 38] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
- [ 60] GetGlobal value_feedback:2, dst:reg6, `nested`
- [ 70] NewArray dst:reg7
- [ 80] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
- [ a8] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `checked`
+ [ f] NewArray dst:reg7
+ [ 1a] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
+ [ 31] GetGlobal value_feedback:2, dst:reg6, `nested`
+ [ 3a] NewArray dst:reg7
+ [ 45] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
+ [ 5c] End value:reg5
-checked$6c1072e2 tdz-reset-in-loop.js:5:10
+checked$27eda028 tdz-reset-in-loop.js:5:10
Registers: 8
Blocks: 4
Locals: i~0, value~1, plain~2
Constants:
[0] = Int32(0)
[1] = <Empty>
- [2] = Int32(1)
- [3] = Undefined
+ [2] = Undefined
block0:
[ 0] Enter
- [ 8] Mov dst:i~0, src:Int32(0)
- [ 18] Jump target:block2
+ [ 1] Mov dst:i~0, src:Int32(0)
+ [ 6] Jump target:block2
block1:
- [ 20] Mov dst:value~1, src:<Empty>
- [ 30] GetByValue value_feedback:0, keyed_feedback:0, dst:reg5, base:arg0, property:i~0
- [ 50] NewFunction dst:reg6, shared_function_data_index:0
- [ 68] ThrowIfTDZ src:value~1
- [ 70] Typeof dst:reg7, src:value~1
- [ 80] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg5, this_value:arg0, arguments:[reg6, reg7]
- [ a8] Mov dst:value~1, src:i~0
- [ b8] AddRhsInt32 arith_feedback:0, dst:plain~2, lhs:value~1, rhs:1
- [ c8] GetByValue value_feedback:2, keyed_feedback:1, dst:reg5, base:arg0, property:i~0
- [ e8] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg5, this_value:arg0, arguments:[plain~2]
- [ 110] Increment arith_feedback:1, dst:i~0
+ [ b] Mov dst:value~1, src:<Empty>
+ [ 10] GetByValue value_feedback:0, keyed_feedback:0, dst:reg5, base:arg0, property:i~0
+ [ 1f] NewFunction dst:reg6, shared_function_data_index:0
+ [ 2a] ThrowIfTDZ src:value~1
+ [ 2d] Typeof dst:reg7, src:value~1
+ [ 32] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg5, this_value:arg0, arguments:[reg6, reg7]
+ [ 4b] Mov dst:value~1, src:i~0
+ [ 50] AddRhsInt32 arith_feedback:0, dst:plain~2, lhs:value~1, rhs:1
+ [ 5b] GetByValue value_feedback:2, keyed_feedback:1, dst:reg5, base:arg0, property:i~0
+ [ 6a] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg5, this_value:arg0, arguments:[plain~2]
+ [ 81] Increment arith_feedback:1, dst:i~0
block2:
- [ 118] GetLength value_feedback:4, keyed_feedback:2, dst:reg5, base:arg0
- [ 130] JumpLessThanLoop arith_feedback:2, lhs:i~0, rhs:reg5, true_target:block1, false_target:block3
+ [ 86] GetLength value_feedback:4, keyed_feedback:2, dst:reg5, base:arg0
+ [ 93] JumpLessThanLoop arith_feedback:2, lhs:i~0, rhs:reg5, true_target:block1, false_target:block3
block3:
- [ 148] End value:Undefined
+ [ a2] End value:Undefined
-nested$e1bbca88 tdz-reset-in-loop.js:14:5
+nested$96f4b21b tdz-reset-in-loop.js:14:5
Registers: 12
Blocks: 8
Locals: value~0, item~1
@@ -64,38 +63,38 @@ block0:
[ 0] Enter
block1:
- [ 8] GetLength value_feedback:0, keyed_feedback:0, dst:reg5, base:arg0
- [ 20] JumpFalse condition:reg5, target:block7
+ [ 1] GetLength value_feedback:0, keyed_feedback:0, dst:reg5, base:arg0
+ [ e] JumpFalse condition:reg5, target:block7
block2:
- [ 30] Mov dst:value~0, src:<Empty>
- [ 40] Mov dst:item~1, src:<Empty>
- [ 50] Mov dst:reg5, src:arg0
- [ 60] GetIterator dst_iterator_object:reg6, dst_iterator_next:reg7, dst_iterator_done:reg8, iterable:reg5, fast_array_mode_allowed:true
+ [ 15] Mov dst:value~0, src:<Empty>
+ [ 1a] Mov dst:item~1, src:<Empty>
+ [ 1f] Mov dst:reg5, src:arg0
+ [ 24] GetIterator dst_iterator_object:reg6, dst_iterator_next:reg7, dst_iterator_done:reg8, iterable:reg5, fast_array_mode_allowed:true
block3:
- [ 80] IteratorNextUnpack dst_value:reg9, dst_done:reg10, iterator_object:reg6, iterator_next:reg7, iterator_done:reg8
- [ 98] JumpTrue condition:reg10, target:block6
+ [ 34] IteratorNextUnpack dst_value:reg9, dst_done:reg10, iterator_object:reg6, iterator_next:reg7, iterator_done:reg8
+ [ 3f] JumpTrue condition:reg10, target:block6
block4:
- [ a8] Mov dst:item~1, src:reg9
- [ b8] ThrowIfTDZ src:value~0
- [ c0] Typeof dst:reg11, src:value~0
- [ d0] Call value_feedback:1, call_feedback:0, dst:reg11, callee:item~1, this_value:Undefined, arguments:[reg11]
- [ f8] JumpLoop target:block3
+ [ 46] Mov dst:item~1, src:reg9
+ [ 4b] ThrowIfTDZ src:value~0
+ [ 4e] Typeof dst:reg11, src:value~0
+ [ 53] Call value_feedback:1, call_feedback:0, dst:reg11, callee:item~1, this_value:Undefined, arguments:[reg11]
+ [ 6a] JumpLoop target:block3
block5:
- [ 100] Catch value_feedback:2, dst:reg11
- [ 108] IteratorClose iterator_object:reg6, iterator_next:reg7, iterator_done:reg8, completion_value:reg11
- [ 128] Throw src:reg11
+ [ 6f] Catch value_feedback:2, dst:reg11
+ [ 74] IteratorClose iterator_object:reg6, iterator_next:reg7, iterator_done:reg8, completion_value:reg11
+ [ 83] Throw src:reg11
block6:
- [ 130] GetById value_feedback:3, dst:reg5, base:arg0, `pop`
- [ 148] Call value_feedback:4, call_feedback:1, dst:value~0, callee:reg5, this_value:arg0
- [ 168] JumpLoop target:block1
+ [ 86] GetById value_feedback:3, dst:reg5, base:arg0, `pop`
+ [ 93] Call value_feedback:4, call_feedback:1, dst:value~0, callee:reg5, this_value:arg0
+ [ a8] JumpLoop target:block1
block7:
- [ 170] End value:Undefined
+ [ ad] End value:Undefined
Exception handlers:
- [ a8 .. 100] => handler block5
+ [ 46 .. 6f] => handler block5
diff --git a/Tests/LibJS/Bytecode/expected/this-base-identifier.txt b/Tests/LibJS/Bytecode/expected/this-base-identifier.txt
index 94940395b05..7ae6c48b4b9 100644
--- a/Tests/LibJS/Bytecode/expected/this-base-identifier.txt
+++ b/Tests/LibJS/Bytecode/expected/this-base-identifier.txt
@@ -1,4 +1,4 @@
-$448be14c this-base-identifier.js:16:1
+$f07f4d98 this-base-identifier.js:16:1
Registers: 7
Blocks: 4
Constants:
@@ -6,41 +6,41 @@ $448be14c this-base-identifier.js:16:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `get_from_this`
- [ 28] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 48] GetGlobal value_feedback:2, dst:reg6, `set_on_this`
- [ 58] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined
- [ 78] Mov dst:reg5, src:Undefined
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `get_from_this`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 24] GetGlobal value_feedback:2, dst:reg6, `set_on_this`
+ [ 2d] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined
+ [ 42] Mov dst:reg5, src:Undefined
block1:
- [ 88] GetGlobal value_feedback:4, dst:reg6, `chained_this_access`
- [ 98] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg6, this_value:Undefined
- [ b8] Jump target:block3
+ [ 47] GetGlobal value_feedback:4, dst:reg6, `chained_this_access`
+ [ 50] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg6, this_value:Undefined
+ [ 65] Jump target:block3
block2:
- [ c0] Catch value_feedback:6, dst:reg6
- [ c8] Mov dst:reg5, src:Undefined
- [ d8] Jump target:block3
+ [ 6a] Catch value_feedback:6, dst:reg6
+ [ 6f] Mov dst:reg5, src:Undefined
+ [ 74] Jump target:block3
block3:
- [ e0] End value:reg5
+ [ 79] End value:reg5
Exception handlers:
- [ 88 .. c0] => handler block2
+ [ 47 .. 6a] => handler block2
-get_from_this$7b4d6173 this-base-identifier.js:5:5
+get_from_this$b4ceee1a this-base-identifier.js:5:5
Registers: 6
Blocks: 1
block0:
[ 0] Enter
- [ 8] GetById value_feedback:0, dst:reg5, base:this, `foo`
- [ 20] Return value:reg5
+ [ 1] GetById value_feedback:0, dst:reg5, base:this, `foo`
+ [ e] Return value:reg5
-set_on_this$1818839f this-base-identifier.js:9:14
+set_on_this$220be44c this-base-identifier.js:9:14
Registers: 5
Blocks: 1
Constants:
@@ -49,16 +49,16 @@ set_on_this$1818839f this-base-identifier.js:9:14
block0:
[ 0] Enter
- [ 8] PutById base:this, `bar`, src:Int32(1), kind:Normal
- [ 28] End value:Undefined
+ [ 1] PutById base:this, `bar`, src:Int32(1), kind:Normal
+ [ 10] End value:Undefined
-chained_this_access$cbe84523 this-base-identifier.js:13:5
+chained_this_access$dfcf067d this-base-identifier.js:13:5
Registers: 6
Blocks: 1
block0:
[ 0] Enter
- [ 8] GetById value_feedback:0, dst:reg5, base:this, `a`
- [ 20] GetById value_feedback:1, dst:reg5, base:reg5, `b`
- [ 38] Return value:reg5
+ [ 1] GetById value_feedback:0, dst:reg5, base:this, `a`
+ [ e] GetById value_feedback:1, dst:reg5, base:reg5, `b`
+ [ 1b] Return value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/try-catch-completion-ordering.txt b/Tests/LibJS/Bytecode/expected/try-catch-completion-ordering.txt
index 3fc0d1644d7..bad0dc97ccc 100644
--- a/Tests/LibJS/Bytecode/expected/try-catch-completion-ordering.txt
+++ b/Tests/LibJS/Bytecode/expected/try-catch-completion-ordering.txt
@@ -1,4 +1,4 @@
-$0392d2ad try-catch-completion-ordering.js:1:1
+$02766f1a try-catch-completion-ordering.js:1:1
Registers: 7
Blocks: 4
Locals: e~0
@@ -10,22 +10,22 @@ $0392d2ad try-catch-completion-ordering.js:1:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] Mov dst:reg5, src:Undefined
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] Mov dst:reg5, src:Undefined
block1:
- [ 28] Throw src:Null
+ [ b] Throw src:Null
block2:
- [ 30] Catch value_feedback:0, dst:reg6
- [ 38] Mov dst:reg5, src:Undefined
- [ 48] Mov dst:e~0, src:<Empty>
- [ 58] Mov dst:e~0, src:reg6
- [ 68] Mov dst:reg5, src:Int32(42)
- [ 78] Jump target:block3
+ [ e] Catch value_feedback:0, dst:reg6
+ [ 13] Mov dst:reg5, src:Undefined
+ [ 18] Mov dst:e~0, src:<Empty>
+ [ 1d] Mov dst:e~0, src:reg6
+ [ 22] Mov dst:reg5, src:Int32(42)
+ [ 27] Jump target:block3
block3:
- [ 80] End value:reg5
+ [ 2c] End value:reg5
Exception handlers:
- [ 28 .. 30] => handler block2
+ [ b .. e] => handler block2
diff --git a/Tests/LibJS/Bytecode/expected/try-catch-finally-register.txt b/Tests/LibJS/Bytecode/expected/try-catch-finally-register.txt
index 9f269f5dde2..f0f4bbc154a 100644
--- a/Tests/LibJS/Bytecode/expected/try-catch-finally-register.txt
+++ b/Tests/LibJS/Bytecode/expected/try-catch-finally-register.txt
@@ -1,4 +1,4 @@
-$2fee8f6a try-catch-finally-register.js:1:1
+$041dfc97 try-catch-finally-register.js:1:1
Registers: 9
Blocks: 7
Locals: e~0
@@ -12,40 +12,40 @@ $2fee8f6a try-catch-finally-register.js:1:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] Mov dst:reg5, src:Undefined
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] Mov dst:reg5, src:Undefined
block1:
- [ 28] Mov dst:reg5, src:Int32(1)
- [ 38] Mov dst:reg6, src:Int32(0)
- [ 48] Jump target:block4
+ [ b] Mov dst:reg5, src:Int32(1)
+ [ 10] Mov dst:reg6, src:Int32(0)
+ [ 15] Jump target:block4
block2:
- [ 50] Catch value_feedback:0, dst:reg8
- [ 58] Mov dst:reg5, src:Undefined
- [ 68] Mov dst:e~0, src:<Empty>
- [ 78] Mov dst:e~0, src:reg8
- [ 88] Mov dst:reg5, src:Int32(2)
- [ 98] Mov dst:reg6, src:Int32(0)
- [ a8] Jump target:block4
+ [ 1a] Catch value_feedback:0, dst:reg8
+ [ 1f] Mov dst:reg5, src:Undefined
+ [ 24] Mov dst:e~0, src:<Empty>
+ [ 29] Mov dst:e~0, src:reg8
+ [ 2e] Mov dst:reg5, src:Int32(2)
+ [ 33] Mov dst:reg6, src:Int32(0)
+ [ 38] Jump target:block4
block3:
- [ b0] Catch value_feedback:1, dst:reg7
- [ b8] Mov dst:reg6, src:Int32(1)
+ [ 3d] Catch value_feedback:1, dst:reg7
+ [ 42] Mov dst:reg6, src:Int32(1)
block4:
- [ c8] Mov dst:reg8, src:reg5
- [ d8] Mov dst:reg5, src:Undefined
- [ e8] Mov dst:reg5, src:Int32(3)
- [ f8] Mov dst:reg5, src:reg8
- [ 108] JumpStrictlyEqualsRhsInt32 arith_feedback:0, lhs:reg6, rhs:0, true_target:block6, false_target:block5
+ [ 47] Mov dst:reg8, src:reg5
+ [ 4c] Mov dst:reg5, src:Undefined
+ [ 51] Mov dst:reg5, src:Int32(3)
+ [ 56] Mov dst:reg5, src:reg8
+ [ 5b] JumpStrictlyEqualsRhsInt32 arith_feedback:0, lhs:reg6, rhs:0, true_target:block6, false_target:block5
block5:
- [ 120] Throw src:reg7
+ [ 6c] Throw src:reg7
block6:
- [ 128] End value:reg5
+ [ 6f] End value:reg5
Exception handlers:
- [ 28 .. 50] => handler block2
- [ 50 .. b0] => handler block3
+ [ b .. 1a] => handler block2
+ [ 1a .. 3d] => handler block3
diff --git a/Tests/LibJS/Bytecode/expected/try-catch-scoping.txt b/Tests/LibJS/Bytecode/expected/try-catch-scoping.txt
index 98c6fd20e08..2c3dd9ed025 100644
--- a/Tests/LibJS/Bytecode/expected/try-catch-scoping.txt
+++ b/Tests/LibJS/Bytecode/expected/try-catch-scoping.txt
@@ -1,4 +1,4 @@
-$996e2b0f try-catch-scoping.js:11:1
+$29c03c7a try-catch-scoping.js:11:1
Registers: 7
Blocks: 1
Constants:
@@ -6,15 +6,15 @@ $996e2b0f try-catch-scoping.js:11:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `tryCatchWithBlocks`
- [ 28] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 48] GetGlobal value_feedback:2, dst:reg6, `tryCatchFinallyWithBlocks`
- [ 58] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined
- [ 78] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `tryCatchWithBlocks`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 24] GetGlobal value_feedback:2, dst:reg6, `tryCatchFinallyWithBlocks`
+ [ 2d] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined
+ [ 42] End value:reg5
-tryCatchWithBlocks$475f75cc try-catch-scoping.js:2:9
+tryCatchWithBlocks$adab3d5d try-catch-scoping.js:2:9
Registers: 9
Blocks: 4
Locals: x~0, y~1, e~2, z~3
@@ -27,32 +27,32 @@ tryCatchWithBlocks$475f75cc try-catch-scoping.js:2:9
block0:
[ 0] Enter
- [ 8] Mov dst:x~0, src:Int32(1)
+ [ 1] Mov dst:x~0, src:Int32(1)
block1:
- [ 18] Mov dst:y~1, src:Int32(2)
- [ 28] Throw src:y~1
+ [ 6] Mov dst:y~1, src:Int32(2)
+ [ b] Throw src:y~1
block2:
- [ 30] Catch value_feedback:0, dst:reg5
- [ 38] Mov dst:e~2, src:<Empty>
- [ 48] Mov dst:e~2, src:reg5
- [ 58] Mov dst:z~3, src:Int32(3)
- [ 68] GetGlobal value_feedback:1, dst:reg6, `console`
- [ 78] GetById value_feedback:2, dst:reg7, base:reg6, `log`
- [ 90] Add arith_feedback:0, dst:reg8, lhs:x~0, rhs:e~2
- [ a0] Add arith_feedback:1, dst:reg8, lhs:reg8, rhs:z~3
- [ b0] Call value_feedback:3, call_feedback:0, dst:reg6, callee:reg7, this_value:reg6, arguments:[reg8]
- [ d8] Jump target:block3
+ [ e] Catch value_feedback:0, dst:reg5
+ [ 13] Mov dst:e~2, src:<Empty>
+ [ 18] Mov dst:e~2, src:reg5
+ [ 1d] Mov dst:z~3, src:Int32(3)
+ [ 22] GetGlobal value_feedback:1, dst:reg6, `console`
+ [ 2b] GetById value_feedback:2, dst:reg7, base:reg6, `log`
+ [ 38] Add arith_feedback:0, dst:reg8, lhs:x~0, rhs:e~2
+ [ 41] Add arith_feedback:1, dst:reg8, lhs:reg8, rhs:z~3
+ [ 4a] Call value_feedback:3, call_feedback:0, dst:reg6, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 61] Jump target:block3
block3:
- [ e0] End value:Undefined
+ [ 66] End value:Undefined
Exception handlers:
- [ 18 .. 30] => handler block2
+ [ 6 .. e] => handler block2
-tryCatchFinallyWithBlocks$adde6df6 try-catch-scoping.js:14:9
+tryCatchFinallyWithBlocks$9ed1a956 try-catch-scoping.js:14:9
Registers: 10
Blocks: 7
Locals: x~0, y~1, e~2, z~3
@@ -66,42 +66,42 @@ tryCatchFinallyWithBlocks$adde6df6 try-catch-scoping.js:14:9
block0:
[ 0] Enter
- [ 8] Mov dst:x~0, src:Int32(1)
+ [ 1] Mov dst:x~0, src:Int32(1)
block1:
- [ 18] Mov dst:y~1, src:Int32(2)
- [ 28] Throw src:y~1
+ [ 6] Mov dst:y~1, src:Int32(2)
+ [ b] Throw src:y~1
block2:
- [ 30] Catch value_feedback:0, dst:reg7
- [ 38] Mov dst:e~2, src:<Empty>
- [ 48] Mov dst:e~2, src:reg7
- [ 58] GetGlobal value_feedback:1, dst:reg8, `console`
- [ 68] GetById value_feedback:2, dst:reg9, base:reg8, `log`
- [ 80] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg9, this_value:reg8, arguments:[e~2]
- [ a8] Mov dst:reg5, src:Int32(0)
- [ b8] Jump target:block4
+ [ e] Catch value_feedback:0, dst:reg7
+ [ 13] Mov dst:e~2, src:<Empty>
+ [ 18] Mov dst:e~2, src:reg7
+ [ 1d] GetGlobal value_feedback:1, dst:reg8, `console`
+ [ 26] GetById value_feedback:2, dst:reg9, base:reg8, `log`
+ [ 33] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg9, this_value:reg8, arguments:[e~2]
+ [ 4a] Mov dst:reg5, src:Int32(0)
+ [ 4f] Jump target:block4
block3:
- [ c0] Catch value_feedback:4, dst:reg6
- [ c8] Mov dst:reg5, src:Int32(1)
+ [ 54] Catch value_feedback:4, dst:reg6
+ [ 59] Mov dst:reg5, src:Int32(1)
block4:
- [ d8] Mov dst:z~3, src:Int32(3)
- [ e8] GetGlobal value_feedback:5, dst:reg7, `console`
- [ f8] GetById value_feedback:6, dst:reg8, base:reg7, `log`
- [ 110] Call value_feedback:7, call_feedback:1, dst:reg7, callee:reg8, this_value:reg7, arguments:[z~3]
- [ 138] JumpStrictlyEqualsRhsInt32 arith_feedback:0, lhs:reg5, rhs:0, true_target:block6, false_target:block5
+ [ 5e] Mov dst:z~3, src:Int32(3)
+ [ 63] GetGlobal value_feedback:5, dst:reg7, `console`
+ [ 6c] GetById value_feedback:6, dst:reg8, base:reg7, `log`
+ [ 79] Call value_feedback:7, call_feedback:1, dst:reg7, callee:reg8, this_value:reg7, arguments:[z~3]
+ [ 90] JumpStrictlyEqualsRhsInt32 arith_feedback:0, lhs:reg5, rhs:0, true_target:block6, false_target:block5
block5:
- [ 150] Throw src:reg6
+ [ a1] Throw src:reg6
block6:
- [ 158] End value:Undefined
+ [ a4] End value:Undefined
Exception handlers:
- [ 18 .. 30] => handler block2
- [ 30 .. c0] => handler block3
+ [ 6 .. e] => handler block2
+ [ e .. 54] => handler block3
6
diff --git a/Tests/LibJS/Bytecode/expected/try-catch-terminated.txt b/Tests/LibJS/Bytecode/expected/try-catch-terminated.txt
index 9129188323d..685d6086ad3 100644
--- a/Tests/LibJS/Bytecode/expected/try-catch-terminated.txt
+++ b/Tests/LibJS/Bytecode/expected/try-catch-terminated.txt
@@ -1,4 +1,4 @@
-$c5390f08 try-catch-terminated.js:12:1
+$09ca5fef try-catch-terminated.js:12:1
Registers: 7
Blocks: 1
Constants:
@@ -6,13 +6,13 @@ $c5390f08 try-catch-terminated.js:12:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `try_return`
- [ 28] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 48] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `try_return`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 24] End value:reg5
-try_return$6825fe97 try-catch-terminated.js:5:5
+try_return$94f03981 try-catch-terminated.js:5:5
Registers: 6
Blocks: 3
Locals: e~0
@@ -24,13 +24,13 @@ block0:
[ 0] Enter
block1:
- [ 8] Throw src:Int32(1)
+ [ 1] Throw src:Int32(1)
block2:
- [ 10] Catch value_feedback:0, dst:reg5
- [ 18] Mov dst:e~0, src:<Empty>
- [ 28] Mov dst:e~0, src:reg5
- [ 38] Return value:e~0
+ [ 4] Catch value_feedback:0, dst:reg5
+ [ 9] Mov dst:e~0, src:<Empty>
+ [ e] Mov dst:e~0, src:reg5
+ [ 13] Return value:e~0
Exception handlers:
- [ 8 .. 10] => handler block2
+ [ 1 .. 4] => handler block2
diff --git a/Tests/LibJS/Bytecode/expected/try-finally-continue.txt b/Tests/LibJS/Bytecode/expected/try-finally-continue.txt
index ff375aecb40..5ae4d5214bf 100644
--- a/Tests/LibJS/Bytecode/expected/try-finally-continue.txt
+++ b/Tests/LibJS/Bytecode/expected/try-finally-continue.txt
@@ -1,4 +1,4 @@
-$80e4413e try-finally-continue.js:13:1
+$b0dadba6 try-finally-continue.js:13:1
Registers: 9
Blocks: 1
Constants:
@@ -6,21 +6,21 @@ $80e4413e try-finally-continue.js:13:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `console`
- [ 28] GetById value_feedback:1, dst:reg7, base:reg6, `log`
- [ 40] GetGlobal value_feedback:2, dst:reg8, `continueThroughFinally`
- [ 50] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined
- [ 70] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 98] GetGlobal value_feedback:5, dst:reg6, `console`
- [ a8] GetById value_feedback:6, dst:reg7, base:reg6, `log`
- [ c0] GetGlobal value_feedback:7, dst:reg8, `breakThroughFinally`
- [ d0] Call value_feedback:8, call_feedback:2, dst:reg8, callee:reg8, this_value:Undefined
- [ f0] Call value_feedback:9, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 118] End value:reg5
-
-
-continueThroughFinally$3ce638b2 try-finally-continue.js:2:9
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `console`
+ [ f] GetById value_feedback:1, dst:reg7, base:reg6, `log`
+ [ 1c] GetGlobal value_feedback:2, dst:reg8, `continueThroughFinally`
+ [ 25] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined
+ [ 3a] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 51] GetGlobal value_feedback:5, dst:reg6, `console`
+ [ 5a] GetById value_feedback:6, dst:reg7, base:reg6, `log`
+ [ 67] GetGlobal value_feedback:7, dst:reg8, `breakThroughFinally`
+ [ 70] Call value_feedback:8, call_feedback:2, dst:reg8, callee:reg8, this_value:Undefined
+ [ 85] Call value_feedback:9, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 9c] End value:reg5
+
+
+continueThroughFinally$7031fdd3 try-finally-continue.js:2:9
Registers: 8
Blocks: 12
Locals: result~0, i~1
@@ -28,58 +28,56 @@ continueThroughFinally$3ce638b2 try-finally-continue.js:2:9
[0] = Int32(0)
[1] = Int32(1)
[2] = Int32(2)
- [3] = Int32(10)
- [4] = Int32(3)
block0:
[ 0] Enter
- [ 8] Mov dst:result~0, src:Int32(0)
- [ 18] Mov dst:i~1, src:Int32(0)
- [ 28] Jump target:block10
+ [ 1] Mov dst:result~0, src:Int32(0)
+ [ 6] Mov dst:i~1, src:Int32(0)
+ [ b] Jump target:block10
block1:
- [ 30] JumpStrictlyEqualsRhsInt32 arith_feedback:0, lhs:i~1, rhs:1, true_target:block2, false_target:block3
+ [ 10] JumpStrictlyEqualsRhsInt32 arith_feedback:0, lhs:i~1, rhs:1, true_target:block2, false_target:block3
block2:
- [ 48] Mov dst:reg5, src:Int32(2)
- [ 58] Jump target:block5
+ [ 21] Mov dst:reg5, src:Int32(2)
+ [ 26] Jump target:block5
block3:
- [ 60] Add arith_feedback:1, dst:result~0, lhs:result~0, rhs:i~1
- [ 70] Mov dst:reg5, src:Int32(0)
- [ 80] Jump target:block5
+ [ 2b] Add arith_feedback:1, dst:result~0, lhs:result~0, rhs:i~1
+ [ 34] Mov dst:reg5, src:Int32(0)
+ [ 39] Jump target:block5
block4:
- [ 88] Catch value_feedback:0, dst:reg6
- [ 90] Mov dst:reg5, src:Int32(1)
+ [ 3e] Catch value_feedback:0, dst:reg6
+ [ 43] Mov dst:reg5, src:Int32(1)
block5:
- [ a0] AddRhsInt32 arith_feedback:2, dst:result~0, lhs:result~0, rhs:10
- [ b0] JumpStrictlyEqualsRhsInt32 arith_feedback:3, lhs:reg5, rhs:0, true_target:block9, false_target:block6
+ [ 48] AddRhsInt32 arith_feedback:2, dst:result~0, lhs:result~0, rhs:10
+ [ 53] JumpStrictlyEqualsRhsInt32 arith_feedback:3, lhs:reg5, rhs:0, true_target:block9, false_target:block6
block6:
- [ c8] JumpStrictlyEqualsRhsInt32 arith_feedback:4, lhs:reg5, rhs:2, true_target:block7, false_target:block8
+ [ 64] JumpStrictlyEqualsRhsInt32 arith_feedback:4, lhs:reg5, rhs:2, true_target:block7, false_target:block8
block7:
- [ e0] Jump target:block9
+ [ 75] Jump target:block9
block8:
- [ e8] Throw src:reg6
+ [ 7a] Throw src:reg6
block9:
- [ f0] Increment arith_feedback:5, dst:i~1
+ [ 7d] Increment arith_feedback:5, dst:i~1
block10:
- [ f8] JumpLessThanLoopRhsInt32 arith_feedback:6, lhs:i~1, rhs:3, true_target:block1, false_target:block11
+ [ 82] JumpLessThanLoopRhsInt32 arith_feedback:6, lhs:i~1, rhs:3, true_target:block1, false_target:block11
block11:
- [ 110] Return value:result~0
+ [ 93] Return value:result~0
Exception handlers:
- [ 30 .. 88] => handler block4
+ [ 10 .. 3e] => handler block4
-breakThroughFinally$e163e2ce try-finally-continue.js:16:9
+breakThroughFinally$69d28f77 try-finally-continue.js:16:9
Registers: 8
Blocks: 12
Locals: result~0, i~1
@@ -87,55 +85,53 @@ breakThroughFinally$e163e2ce try-finally-continue.js:16:9
[0] = Int32(0)
[1] = Int32(2)
[2] = Int32(1)
- [3] = Int32(100)
- [4] = Int32(10)
block0:
[ 0] Enter
- [ 8] Mov dst:result~0, src:Int32(0)
- [ 18] Mov dst:i~1, src:Int32(0)
- [ 28] Jump target:block10
+ [ 1] Mov dst:result~0, src:Int32(0)
+ [ 6] Mov dst:i~1, src:Int32(0)
+ [ b] Jump target:block10
block1:
- [ 30] JumpStrictlyEqualsRhsInt32 arith_feedback:0, lhs:i~1, rhs:2, true_target:block2, false_target:block3
+ [ 10] JumpStrictlyEqualsRhsInt32 arith_feedback:0, lhs:i~1, rhs:2, true_target:block2, false_target:block3
block2:
- [ 48] Mov dst:reg5, src:Int32(2)
- [ 58] Jump target:block5
+ [ 21] Mov dst:reg5, src:Int32(2)
+ [ 26] Jump target:block5
block3:
- [ 60] Add arith_feedback:1, dst:result~0, lhs:result~0, rhs:i~1
- [ 70] Mov dst:reg5, src:Int32(0)
- [ 80] Jump target:block5
+ [ 2b] Add arith_feedback:1, dst:result~0, lhs:result~0, rhs:i~1
+ [ 34] Mov dst:reg5, src:Int32(0)
+ [ 39] Jump target:block5
block4:
- [ 88] Catch value_feedback:0, dst:reg6
- [ 90] Mov dst:reg5, src:Int32(1)
+ [ 3e] Catch value_feedback:0, dst:reg6
+ [ 43] Mov dst:reg5, src:Int32(1)
block5:
- [ a0] AddRhsInt32 arith_feedback:2, dst:result~0, lhs:result~0, rhs:100
- [ b0] JumpStrictlyEqualsRhsInt32 arith_feedback:3, lhs:reg5, rhs:0, true_target:block9, false_target:block6
+ [ 48] AddRhsInt32 arith_feedback:2, dst:result~0, lhs:result~0, rhs:100
+ [ 53] JumpStrictlyEqualsRhsInt32 arith_feedback:3, lhs:reg5, rhs:0, true_target:block9, false_target:block6
block6:
- [ c8] JumpStrictlyEqualsRhsInt32 arith_feedback:4, lhs:reg5, rhs:2, true_target:block7, false_target:block8
+ [ 64] JumpStrictlyEqualsRhsInt32 arith_feedback:4, lhs:reg5, rhs:2, true_target:block7, false_target:block8
block7:
- [ e0] Jump target:block11
+ [ 75] Jump target:block11
block8:
- [ e8] Throw src:reg6
+ [ 7a] Throw src:reg6
block9:
- [ f0] Increment arith_feedback:5, dst:i~1
+ [ 7d] Increment arith_feedback:5, dst:i~1
block10:
- [ f8] JumpLessThanLoopRhsInt32 arith_feedback:6, lhs:i~1, rhs:10, true_target:block1, false_target:block11
+ [ 82] JumpLessThanLoopRhsInt32 arith_feedback:6, lhs:i~1, rhs:10, true_target:block1, false_target:block11
block11:
- [ 110] Return value:result~0
+ [ 93] Return value:result~0
Exception handlers:
- [ 30 .. 88] => handler block4
+ [ 10 .. 3e] => handler block4
32
diff --git a/Tests/LibJS/Bytecode/expected/try-finally.txt b/Tests/LibJS/Bytecode/expected/try-finally.txt
index 3138114bd2c..d0c36669218 100644
--- a/Tests/LibJS/Bytecode/expected/try-finally.txt
+++ b/Tests/LibJS/Bytecode/expected/try-finally.txt
@@ -1,4 +1,4 @@
-$3a21feac try-finally.js:8:1
+$0c3b602f try-finally.js:8:1
Registers: 7
Blocks: 1
Constants:
@@ -6,121 +6,118 @@ $3a21feac try-finally.js:8:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `basicTryFinally`
- [ 28] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 48] GetGlobal value_feedback:2, dst:reg6, `breakThroughFinally`
- [ 58] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined
- [ 78] GetGlobal value_feedback:4, dst:reg6, `nestedTryFinallyWithBreak`
- [ 88] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg6, this_value:Undefined
- [ a8] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `basicTryFinally`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 24] GetGlobal value_feedback:2, dst:reg6, `breakThroughFinally`
+ [ 2d] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined
+ [ 42] GetGlobal value_feedback:4, dst:reg6, `nestedTryFinallyWithBreak`
+ [ 4b] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg6, this_value:Undefined
+ [ 60] End value:reg5
-basicTryFinally$8dff5ef2 try-finally.js:2:9
+basicTryFinally$d4c36740 try-finally.js:2:9
Registers: 9
Blocks: 8
Constants:
[0] = Int32(1)
[1] = Int32(2)
[2] = String("finally")
- [3] = Int32(0)
- [4] = Undefined
+ [3] = Undefined
block0:
[ 0] Enter
block1:
- [ 8] Mov dst:reg6, src:Int32(1)
- [ 18] Mov dst:reg5, src:Int32(2)
- [ 28] Jump target:block3
+ [ 1] Mov dst:reg6, src:Int32(1)
+ [ 6] Mov dst:reg5, src:Int32(2)
+ [ b] Jump target:block3
block2:
- [ 30] Catch value_feedback:0, dst:reg6
- [ 38] Mov dst:reg5, src:Int32(1)
+ [ 10] Catch value_feedback:0, dst:reg6
+ [ 15] Mov dst:reg5, src:Int32(1)
block3:
- [ 48] GetGlobal value_feedback:1, dst:reg7, `console`
- [ 58] GetById value_feedback:2, dst:reg8, base:reg7, `log`
- [ 70] Call value_feedback:3, call_feedback:0, dst:reg7, callee:reg8, this_value:reg7, arguments:[String("finally")]
- [ 98] JumpStrictlyEqualsRhsInt32 arith_feedback:0, lhs:reg5, rhs:0, true_target:block7, false_target:block4
+ [ 1a] GetGlobal value_feedback:1, dst:reg7, `console`
+ [ 23] GetById value_feedback:2, dst:reg8, base:reg7, `log`
+ [ 30] Call value_feedback:3, call_feedback:0, dst:reg7, callee:reg8, this_value:reg7, arguments:[String("finally")]
+ [ 47] JumpStrictlyEqualsRhsInt32 arith_feedback:0, lhs:reg5, rhs:0, true_target:block7, false_target:block4
block4:
- [ b0] JumpStrictlyEqualsRhsInt32 arith_feedback:1, lhs:reg5, rhs:2, true_target:block5, false_target:block6
+ [ 58] JumpStrictlyEqualsRhsInt32 arith_feedback:1, lhs:reg5, rhs:2, true_target:block5, false_target:block6
block5:
- [ c8] Return value:reg6
+ [ 69] Return value:reg6
block6:
- [ d0] Throw src:reg6
+ [ 6c] Throw src:reg6
block7:
- [ d8] End value:Undefined
+ [ 6f] End value:Undefined
Exception handlers:
- [ 8 .. 30] => handler block2
+ [ 1 .. 10] => handler block2
-breakThroughFinally$b9227aa6 try-finally.js:11:10
+breakThroughFinally$850614a3 try-finally.js:11:10
Registers: 9
Blocks: 12
Locals: i~0
Constants:
[0] = Int32(0)
- [1] = Int32(5)
- [2] = Int32(2)
- [3] = Int32(1)
- [4] = Int32(10)
- [5] = Undefined
+ [1] = Int32(2)
+ [2] = Int32(1)
+ [3] = Undefined
block0:
[ 0] Enter
- [ 8] Mov dst:i~0, src:Int32(0)
- [ 18] Jump target:block10
+ [ 1] Mov dst:i~0, src:Int32(0)
+ [ 6] Jump target:block10
block1:
- [ 20] JumpStrictlyEqualsRhsInt32 arith_feedback:0, lhs:i~0, rhs:5, true_target:block2, false_target:block3
+ [ b] JumpStrictlyEqualsRhsInt32 arith_feedback:0, lhs:i~0, rhs:5, true_target:block2, false_target:block3
block2:
- [ 38] Mov dst:reg5, src:Int32(2)
- [ 48] Jump target:block5
+ [ 1c] Mov dst:reg5, src:Int32(2)
+ [ 21] Jump target:block5
block3:
- [ 50] Mov dst:reg5, src:Int32(0)
- [ 60] Jump target:block5
+ [ 26] Mov dst:reg5, src:Int32(0)
+ [ 2b] Jump target:block5
block4:
- [ 68] Catch value_feedback:0, dst:reg6
- [ 70] Mov dst:reg5, src:Int32(1)
+ [ 30] Catch value_feedback:0, dst:reg6
+ [ 35] Mov dst:reg5, src:Int32(1)
block5:
- [ 80] GetGlobal value_feedback:1, dst:reg7, `console`
- [ 90] GetById value_feedback:2, dst:reg8, base:reg7, `log`
- [ a8] Call value_feedback:3, call_feedback:0, dst:reg7, callee:reg8, this_value:reg7, arguments:[i~0]
- [ d0] JumpStrictlyEqualsRhsInt32 arith_feedback:1, lhs:reg5, rhs:0, true_target:block9, false_target:block6
+ [ 3a] GetGlobal value_feedback:1, dst:reg7, `console`
+ [ 43] GetById value_feedback:2, dst:reg8, base:reg7, `log`
+ [ 50] Call value_feedback:3, call_feedback:0, dst:reg7, callee:reg8, this_value:reg7, arguments:[i~0]
+ [ 67] JumpStrictlyEqualsRhsInt32 arith_feedback:1, lhs:reg5, rhs:0, true_target:block9, false_target:block6
block6:
- [ e8] JumpStrictlyEqualsRhsInt32 arith_feedback:2, lhs:reg5, rhs:2, true_target:block7, false_target:block8
+ [ 78] JumpStrictlyEqualsRhsInt32 arith_feedback:2, lhs:reg5, rhs:2, true_target:block7, false_target:block8
block7:
- [ 100] Jump target:block11
+ [ 89] Jump target:block11
block8:
- [ 108] Throw src:reg6
+ [ 8e] Throw src:reg6
block9:
- [ 110] Increment arith_feedback:3, dst:i~0
+ [ 91] Increment arith_feedback:3, dst:i~0
block10:
- [ 118] JumpLessThanLoopRhsInt32 arith_feedback:4, lhs:i~0, rhs:10, true_target:block1, false_target:block11
+ [ 96] JumpLessThanLoopRhsInt32 arith_feedback:4, lhs:i~0, rhs:10, true_target:block1, false_target:block11
block11:
- [ 130] End value:Undefined
+ [ a7] End value:Undefined
Exception handlers:
- [ 20 .. 68] => handler block4
+ [ b .. 30] => handler block4
-nestedTryFinallyWithBreak$0a2b5c13 try-finally.js:22:21
+nestedTryFinallyWithBreak$30740cc6 try-finally.js:22:21
Registers: 11
Blocks: 15
Locals: i~0
@@ -134,65 +131,65 @@ nestedTryFinallyWithBreak$0a2b5c13 try-finally.js:22:21
block0:
[ 0] Enter
- [ 8] Mov dst:i~0, src:Int32(0)
+ [ 1] Mov dst:i~0, src:Int32(0)
block1:
- [ 18] Mov dst:reg7, src:Int32(2)
- [ 28] Jump target:block3
+ [ 6] Mov dst:reg7, src:Int32(2)
+ [ b] Jump target:block3
block2:
- [ 30] Catch value_feedback:0, dst:reg8
- [ 38] Mov dst:reg7, src:Int32(1)
+ [ 10] Catch value_feedback:0, dst:reg8
+ [ 15] Mov dst:reg7, src:Int32(1)
block3:
- [ 48] GetGlobal value_feedback:1, dst:reg9, `console`
- [ 58] GetById value_feedback:2, dst:reg10, base:reg9, `log`
- [ 70] Call value_feedback:3, call_feedback:0, dst:reg9, callee:reg10, this_value:reg9, arguments:[String("inner")]
- [ 98] JumpStrictlyEqualsRhsInt32 arith_feedback:0, lhs:reg7, rhs:0, true_target:block7, false_target:block4
+ [ 1a] GetGlobal value_feedback:1, dst:reg9, `console`
+ [ 23] GetById value_feedback:2, dst:reg10, base:reg9, `log`
+ [ 30] Call value_feedback:3, call_feedback:0, dst:reg9, callee:reg10, this_value:reg9, arguments:[String("inner")]
+ [ 47] JumpStrictlyEqualsRhsInt32 arith_feedback:0, lhs:reg7, rhs:0, true_target:block7, false_target:block4
block4:
- [ b0] JumpStrictlyEqualsRhsInt32 arith_feedback:1, lhs:reg7, rhs:2, true_target:block5, false_target:block6
+ [ 58] JumpStrictlyEqualsRhsInt32 arith_feedback:1, lhs:reg7, rhs:2, true_target:block5, false_target:block6
block5:
- [ c8] Mov dst:reg5, src:Int32(2)
- [ d8] Jump target:block9
+ [ 69] Mov dst:reg5, src:Int32(2)
+ [ 6e] Jump target:block9
block6:
- [ e0] Throw src:reg8
+ [ 73] Throw src:reg8
block7:
- [ e8] Mov dst:reg5, src:Int32(0)
- [ f8] Jump target:block9
+ [ 76] Mov dst:reg5, src:Int32(0)
+ [ 7b] Jump target:block9
block8:
- [ 100] Catch value_feedback:4, dst:reg6
- [ 108] Mov dst:reg5, src:Int32(1)
+ [ 80] Catch value_feedback:4, dst:reg6
+ [ 85] Mov dst:reg5, src:Int32(1)
block9:
- [ 118] GetGlobal value_feedback:5, dst:reg7, `console`
- [ 128] GetById value_feedback:6, dst:reg8, base:reg7, `log`
- [ 140] Call value_feedback:7, call_feedback:1, dst:reg7, callee:reg8, this_value:reg7, arguments:[String("outer")]
- [ 168] JumpStrictlyEqualsRhsInt32 arith_feedback:2, lhs:reg5, rhs:0, true_target:block13, false_target:block10
+ [ 8a] GetGlobal value_feedback:5, dst:reg7, `console`
+ [ 93] GetById value_feedback:6, dst:reg8, base:reg7, `log`
+ [ a0] Call value_feedback:7, call_feedback:1, dst:reg7, callee:reg8, this_value:reg7, arguments:[String("outer")]
+ [ b7] JumpStrictlyEqualsRhsInt32 arith_feedback:2, lhs:reg5, rhs:0, true_target:block13, false_target:block10
block10:
- [ 180] JumpStrictlyEqualsRhsInt32 arith_feedback:3, lhs:reg5, rhs:2, true_target:block11, false_target:block12
+ [ c8] JumpStrictlyEqualsRhsInt32 arith_feedback:3, lhs:reg5, rhs:2, true_target:block11, false_target:block12
block11:
- [ 198] Jump target:block14
+ [ d9] Jump target:block14
block12:
- [ 1a0] Throw src:reg6
+ [ de] Throw src:reg6
block13:
- [ 1a8] Increment arith_feedback:4, dst:i~0
- [ 1b0] JumpLoop target:block1
+ [ e1] Increment arith_feedback:4, dst:i~0
+ [ e6] JumpLoop target:block1
block14:
- [ 1b8] End value:Undefined
+ [ eb] End value:Undefined
Exception handlers:
- [ 18 .. 30] => handler block2
- [ 30 .. 100] => handler block8
+ [ 6 .. 10] => handler block2
+ [ 10 .. 80] => handler block8
"finally"
diff --git a/Tests/LibJS/Bytecode/expected/update-member-expression.txt b/Tests/LibJS/Bytecode/expected/update-member-expression.txt
index 65eaf723318..5345c77207c 100644
--- a/Tests/LibJS/Bytecode/expected/update-member-expression.txt
+++ b/Tests/LibJS/Bytecode/expected/update-member-expression.txt
@@ -1,4 +1,4 @@
-$a6e77af9 update-member-expression.js:13:1
+$fc9b9c2a update-member-expression.js:13:1
Registers: 8
Blocks: 1
Constants:
@@ -6,17 +6,17 @@ $a6e77af9 update-member-expression.js:13:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `postfix_increment`
- [ 28] NewObject dst:reg7
- [ 38] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
- [ 60] GetGlobal value_feedback:2, dst:reg6, `prefix_decrement`
- [ 70] NewObject dst:reg7
- [ 80] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
- [ a8] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `postfix_increment`
+ [ f] NewObject dst:reg7
+ [ 14] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
+ [ 2b] GetGlobal value_feedback:2, dst:reg6, `prefix_decrement`
+ [ 34] NewObject dst:reg7
+ [ 39] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
+ [ 50] End value:reg5
-postfix_increment$cadb66f4 update-member-expression.js:6:14
+postfix_increment$fed5117b update-member-expression.js:6:14
Registers: 7
Blocks: 1
Constants:
@@ -24,13 +24,13 @@ postfix_increment$cadb66f4 update-member-expression.js:6:14
block0:
[ 0] Enter
- [ 8] GetById value_feedback:0, dst:reg5, base:arg0, `count`
- [ 20] PostfixIncrement arith_feedback:0, dst:reg6, src:reg5
- [ 30] PutById base:arg0, `count`, src:reg5, kind:Normal
- [ 50] End value:Undefined
+ [ 1] GetById value_feedback:0, dst:reg5, base:arg0, `count`
+ [ e] PostfixIncrement arith_feedback:0, dst:reg6, src:reg5
+ [ 15] PutById base:arg0, `count`, src:reg5, kind:Normal
+ [ 24] End value:Undefined
-prefix_decrement$7684d48a update-member-expression.js:10:5
+prefix_decrement$f98e5a8f update-member-expression.js:10:5
Registers: 6
Blocks: 1
Constants:
@@ -38,7 +38,7 @@ prefix_decrement$7684d48a update-member-expression.js:10:5
block0:
[ 0] Enter
- [ 8] GetById value_feedback:0, dst:reg5, base:arg0, `count`
- [ 20] Decrement arith_feedback:0, dst:reg5
- [ 28] PutById base:arg0, `count`, src:reg5, kind:Normal
- [ 48] End value:Undefined
+ [ 1] GetById value_feedback:0, dst:reg5, base:arg0, `count`
+ [ e] Decrement arith_feedback:0, dst:reg5
+ [ 13] PutById base:arg0, `count`, src:reg5, kind:Normal
+ [ 22] End value:Undefined
diff --git a/Tests/LibJS/Bytecode/expected/using-declaration-non-local-env.txt b/Tests/LibJS/Bytecode/expected/using-declaration-non-local-env.txt
index 7fa338f42d3..751a48d6e3d 100644
--- a/Tests/LibJS/Bytecode/expected/using-declaration-non-local-env.txt
+++ b/Tests/LibJS/Bytecode/expected/using-declaration-non-local-env.txt
@@ -1,4 +1,4 @@
-$84f4cb35 using-declaration-non-local-env.js:1:1
+$a1b289a9 using-declaration-non-local-env.js:1:1
Registers: 7
Blocks: 4
Locals: e~0
@@ -8,29 +8,29 @@ $84f4cb35 using-declaration-non-local-env.js:1:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] Mov dst:reg5, src:Undefined
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] Mov dst:reg5, src:Undefined
block1:
- [ 28] NewFunction dst:reg6, shared_function_data_index:0
- [ 40] Call value_feedback:0, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 60] Jump target:block3
+ [ b] NewFunction dst:reg6, shared_function_data_index:0
+ [ 16] Call value_feedback:0, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 2b] Jump target:block3
block2:
- [ 68] Catch value_feedback:1, dst:reg6
- [ 70] Mov dst:reg5, src:Undefined
- [ 80] Mov dst:e~0, src:<Empty>
- [ 90] Mov dst:e~0, src:reg6
- [ a0] Jump target:block3
+ [ 30] Catch value_feedback:1, dst:reg6
+ [ 35] Mov dst:reg5, src:Undefined
+ [ 3a] Mov dst:e~0, src:<Empty>
+ [ 3f] Mov dst:e~0, src:reg6
+ [ 44] Jump target:block3
block3:
- [ a8] End value:reg5
+ [ 49] End value:reg5
Exception handlers:
- [ 28 .. 68] => handler block2
+ [ b .. 30] => handler block2
-$44ed2954 using-declaration-non-local-env.js:1:19
+$4935ec65 using-declaration-non-local-env.js:1:19
Registers: 10
Blocks: 6
Constants:
@@ -40,35 +40,35 @@ $44ed2954 using-declaration-non-local-env.js:1:19
block0:
[ 0] Enter
- [ 8] GetLexicalEnvironment dst:reg4
- [ 10] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false
- [ 28] CreateVariable `x`, is_immutable:true, is_global:false, is_strict:true
- [ 38] NewDisposableResourceStack dst:reg6
+ [ 1] GetLexicalEnvironment dst:reg4
+ [ 4] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false
+ [ 12] CreateVariable `x`, is_immutable:true, is_global:false, is_strict:true
+ [ 1c] NewDisposableResourceStack dst:reg6
block1:
- [ 40] NewObject dst:reg9
- [ 50] AddDisposableResource stack:reg6, value:reg9, hint:0
- [ 60] InitializeLexicalBinding `x`, src:reg9
- [ 78] NewFunction dst:reg9, shared_function_data_index:0
- [ 90] Call value_feedback:0, call_feedback:0, dst:reg9, callee:reg9, this_value:Undefined
- [ b0] Mov dst:reg7, src:Int32(0)
- [ c0] Jump target:block3
+ [ 1f] NewObject dst:reg9
+ [ 24] AddDisposableResource stack:reg6, value:reg9, hint:0
+ [ 2d] InitializeLexicalBinding `x`, src:reg9
+ [ 3a] NewFunction dst:reg9, shared_function_data_index:0
+ [ 45] Call value_feedback:0, call_feedback:0, dst:reg9, callee:reg9, this_value:Undefined
+ [ 5a] Mov dst:reg7, src:Int32(0)
+ [ 5f] Jump target:block3
block2:
- [ c8] Catch value_feedback:1, dst:reg8
- [ d0] SetLexicalEnvironment environment:reg5
- [ d8] Mov dst:reg7, src:Int32(1)
+ [ 64] Catch value_feedback:1, dst:reg8
+ [ 69] SetLexicalEnvironment environment:reg5
+ [ 6c] Mov dst:reg7, src:Int32(1)
block3:
- [ e8] DisposeResources stack:reg6, completion_type:reg7, completion_value:reg8
- [ f8] JumpStrictlyEqualsRhsInt32 arith_feedback:0, lhs:reg7, rhs:0, true_target:block5, false_target:block4
+ [ 71] DisposeResources stack:reg6, completion_type:reg7, completion_value:reg8
+ [ 78] JumpStrictlyEqualsRhsInt32 arith_feedback:0, lhs:reg7, rhs:0, true_target:block5, false_target:block4
block4:
- [ 110] Throw src:reg8
+ [ 89] Throw src:reg8
block5:
- [ 118] SetLexicalEnvironment environment:reg4
- [ 120] End value:Undefined
+ [ 8c] SetLexicalEnvironment environment:reg4
+ [ 8f] End value:Undefined
Exception handlers:
- [ 40 .. c8] => handler block2
+ [ 1f .. 64] => handler block2
diff --git a/Tests/LibJS/Bytecode/expected/var-binding-access.txt b/Tests/LibJS/Bytecode/expected/var-binding-access.txt
index 29d595f1630..71d454573fa 100644
--- a/Tests/LibJS/Bytecode/expected/var-binding-access.txt
+++ b/Tests/LibJS/Bytecode/expected/var-binding-access.txt
@@ -1,4 +1,4 @@
-$2ca8aec2 var-binding-access.js:22:1
+$b27625d7 var-binding-access.js:22:1
Registers: 7
Blocks: 1
Constants:
@@ -6,15 +6,15 @@ $2ca8aec2 var-binding-access.js:22:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `var_access`
- [ 28] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 48] GetGlobal value_feedback:2, dst:reg6, `let_access`
- [ 58] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined
- [ 78] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `var_access`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 24] GetGlobal value_feedback:2, dst:reg6, `let_access`
+ [ 2d] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined
+ [ 42] End value:reg5
-var_access$192c9e6f var-binding-access.js:5:9
+var_access$83e3e48d var-binding-access.js:5:9
Registers: 6
Blocks: 1
Constants:
@@ -23,15 +23,15 @@ var_access$192c9e6f var-binding-access.js:5:9
block0:
[ 0] Enter
- [ 8] CreateVariable `x`, is_immutable:false, is_global:false, is_strict:false
- [ 18] InitializeVariableBinding `x`, src:Undefined
- [ 30] SetLexicalBinding `x`, src:Int32(1)
- [ 48] NewFunction dst:reg5, shared_function_data_index:0
- [ 60] GetInitializedBinding value_feedback:0, dst:reg5, `x`
- [ 78] Return value:reg5
+ [ 1] CreateVariable `x`, is_immutable:false, is_global:false, is_strict:false
+ [ b] InitializeVariableBinding `x`, src:Undefined
+ [ 18] SetLexicalBinding `x`, src:Int32(1)
+ [ 25] NewFunction dst:reg5, shared_function_data_index:0
+ [ 30] GetInitializedBinding value_feedback:0, dst:reg5, `x`
+ [ 3f] Return value:reg5
-let_access$3bd63894 var-binding-access.js:14:9
+let_access$bedfbe99 var-binding-access.js:14:9
Registers: 6
Blocks: 1
Constants:
@@ -39,8 +39,8 @@ let_access$3bd63894 var-binding-access.js:14:9
block0:
[ 0] Enter
- [ 8] CreateVariable `x`, is_immutable:false, is_global:false, is_strict:false
- [ 18] InitializeLexicalBinding `x`, src:Int32(1)
- [ 30] NewFunction dst:reg5, shared_function_data_index:0
- [ 48] GetBinding value_feedback:0, dst:reg5, `x`
- [ 60] Return value:reg5
+ [ 1] CreateVariable `x`, is_immutable:false, is_global:false, is_strict:false
+ [ b] InitializeLexicalBinding `x`, src:Int32(1)
+ [ 18] NewFunction dst:reg5, shared_function_data_index:0
+ [ 23] GetBinding value_feedback:0, dst:reg5, `x`
+ [ 32] Return value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/var-env-capacity-with-param-expressions.txt b/Tests/LibJS/Bytecode/expected/var-env-capacity-with-param-expressions.txt
index 651be3639f9..731aac55569 100644
--- a/Tests/LibJS/Bytecode/expected/var-env-capacity-with-param-expressions.txt
+++ b/Tests/LibJS/Bytecode/expected/var-env-capacity-with-param-expressions.txt
@@ -1,4 +1,4 @@
-$100bdb91 var-env-capacity-with-param-expressions.js:5:1
+$b444ae56 var-env-capacity-with-param-expressions.js:5:1
Registers: 7
Blocks: 1
Constants:
@@ -6,13 +6,13 @@ $100bdb91 var-env-capacity-with-param-expressions.js:5:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `f`
- [ 28] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 48] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `f`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 24] End value:reg5
-f$e7951be9 var-env-capacity-with-param-expressions.js:1:12
+f$6b4c8754 var-env-capacity-with-param-expressions.js:1:12
Registers: 10
Blocks: 3
Constants:
@@ -22,32 +22,32 @@ f$e7951be9 var-env-capacity-with-param-expressions.js:1:12
block0:
[ 0] Enter
- [ 8] GetLexicalEnvironment dst:reg4
- [ 10] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false
- [ 28] CreateVariable `x`, is_immutable:false, is_global:false, is_strict:false
- [ 38] CreateArguments is_immutable:false, creates_parameter_bindings:false
- [ 48] JumpUndefined condition:arg0, true_target:block1, false_target:block2
+ [ 1] GetLexicalEnvironment dst:reg4
+ [ 4] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false
+ [ 12] CreateVariable `x`, is_immutable:false, is_global:false, is_strict:false
+ [ 1c] CreateArguments is_immutable:false, creates_parameter_bindings:false
+ [ 25] JumpUndefined condition:arg0, true_target:block1, false_target:block2
block1:
- [ 58] Mov dst:arg0, src:Int32(1)
+ [ 30] Mov dst:arg0, src:Int32(1)
block2:
- [ 68] InitializeLexicalBinding `x`, src:arg0
- [ 80] CreateVariableEnvironment capacity:3
- [ 88] GetLexicalEnvironment dst:reg6
- [ 90] CreateLexicalEnvironment dst:reg7, parent:reg6, capacity:3, is_catch_environment:false
- [ a8] CreateVariable `a`, is_immutable:false, is_global:false, is_strict:false
- [ b8] InitializeVariableBinding `a`, src:Undefined
- [ d0] CreateVariable `b`, is_immutable:false, is_global:false, is_strict:false
- [ e0] InitializeVariableBinding `b`, src:Undefined
- [ f8] CreateVariable `c`, is_immutable:false, is_global:false, is_strict:false
- [ 108] InitializeVariableBinding `c`, src:Undefined
- [ 120] DynamicGetCalleeAndThisFromEnvironment value_feedback:0, callee:reg8, this_value:reg9, `eval`
- [ 138] CallDirectEval value_feedback:1, call_feedback:0, dst:reg8, callee:reg8, this_value:reg9, arguments:[String("")]
- [ 160] End value:Undefined
-
-
-eval$3e0b1c9b
+ [ 35] InitializeLexicalBinding `x`, src:arg0
+ [ 42] CreateVariableEnvironment capacity:3
+ [ 47] GetLexicalEnvironment dst:reg6
+ [ 4a] CreateLexicalEnvironment dst:reg7, parent:reg6, capacity:3, is_catch_environment:false
+ [ 58] CreateVariable `a`, is_immutable:false, is_global:false, is_strict:false
+ [ 62] InitializeVariableBinding `a`, src:Undefined
+ [ 6f] CreateVariable `b`, is_immutable:false, is_global:false, is_strict:false
+ [ 79] InitializeVariableBinding `b`, src:Undefined
+ [ 86] CreateVariable `c`, is_immutable:false, is_global:false, is_strict:false
+ [ 90] InitializeVariableBinding `c`, src:Undefined
+ [ 9d] DynamicGetCalleeAndThisFromEnvironment value_feedback:0, callee:reg8, this_value:reg9, `eval`
+ [ a8] CallDirectEval value_feedback:1, call_feedback:0, dst:reg8, callee:reg8, this_value:reg9, arguments:[String("")]
+ [ bf] End value:Undefined
+
+
+eval$66f502e2
Registers: 6
Blocks: 1
Constants:
@@ -55,5 +55,5 @@ eval$3e0b1c9b
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] End value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/var-hoisting-tdz.txt b/Tests/LibJS/Bytecode/expected/var-hoisting-tdz.txt
index 81849bc705f..7e9a601f9e0 100644
--- a/Tests/LibJS/Bytecode/expected/var-hoisting-tdz.txt
+++ b/Tests/LibJS/Bytecode/expected/var-hoisting-tdz.txt
@@ -1,4 +1,4 @@
-$faa11ddd var-hoisting-tdz.js:9:1
+$1d77f81a var-hoisting-tdz.js:9:1
Registers: 7
Blocks: 1
Constants:
@@ -6,42 +6,41 @@ $faa11ddd var-hoisting-tdz.js:9:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `isect`
- [ 28] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 48] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `isect`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 24] End value:reg5
-isect$cab742dc var-hoisting-tdz.js:5:12
+isect$b7ece515 var-hoisting-tdz.js:5:12
Registers: 6
Blocks: 7
Locals: i~0
Constants:
[0] = Undefined
[1] = Int32(0)
- [2] = Int32(3)
block0:
[ 0] Enter
- [ 8] Mov dst:i~0, src:Undefined
- [ 18] Mov dst:i~0, src:Int32(0)
- [ 28] Jump target:block2
+ [ 1] Mov dst:i~0, src:Undefined
+ [ 6] Mov dst:i~0, src:Int32(0)
+ [ b] Jump target:block2
block1:
- [ 30] Increment arith_feedback:0, dst:i~0
+ [ 10] Increment arith_feedback:0, dst:i~0
block2:
- [ 38] JumpLessThanLoopRhsInt32 arith_feedback:1, lhs:i~0, rhs:3, true_target:block1, false_target:block3
+ [ 15] JumpLessThanLoopRhsInt32 arith_feedback:1, lhs:i~0, rhs:3, true_target:block1, false_target:block3
block3:
- [ 50] Mov dst:i~0, src:Int32(0)
- [ 60] Jump target:block5
+ [ 26] Mov dst:i~0, src:Int32(0)
+ [ 2b] Jump target:block5
block4:
- [ 68] Increment arith_feedback:2, dst:i~0
+ [ 30] Increment arith_feedback:2, dst:i~0
block5:
- [ 70] JumpLessThanLoopRhsInt32 arith_feedback:3, lhs:i~0, rhs:3, true_target:block4, false_target:block6
+ [ 35] JumpLessThanLoopRhsInt32 arith_feedback:3, lhs:i~0, rhs:3, true_target:block4, false_target:block6
block6:
- [ 88] End value:Undefined
+ [ 46] End value:Undefined
diff --git a/Tests/LibJS/Bytecode/expected/var-init-in-param-body-scope.txt b/Tests/LibJS/Bytecode/expected/var-init-in-param-body-scope.txt
index 05c7f98989b..f8facb00389 100644
--- a/Tests/LibJS/Bytecode/expected/var-init-in-param-body-scope.txt
+++ b/Tests/LibJS/Bytecode/expected/var-init-in-param-body-scope.txt
@@ -1,4 +1,4 @@
-$28d58d80 var-init-in-param-body-scope.js:4:1
+$6d66de67 var-init-in-param-body-scope.js:4:1
Registers: 7
Blocks: 1
Constants:
@@ -6,13 +6,13 @@ $28d58d80 var-init-in-param-body-scope.js:4:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `f`
- [ 28] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 48] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `f`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 24] End value:reg5
-f$1f009ce6 var-init-in-param-body-scope.js:1:12
+f$ca68df48 var-init-in-param-body-scope.js:1:12
Registers: 5
Blocks: 3
Locals: x~0
@@ -23,12 +23,12 @@ f$1f009ce6 var-init-in-param-body-scope.js:1:12
block0:
[ 0] Enter
- [ 8] JumpUndefined condition:arg0, true_target:block1, false_target:block2
+ [ 1] JumpUndefined condition:arg0, true_target:block1, false_target:block2
block1:
- [ 18] Mov dst:arg0, src:Int32(1)
+ [ c] Mov dst:arg0, src:Int32(1)
block2:
- [ 28] Mov dst:x~0, src:Undefined
- [ 38] Mov dst:x~0, src:String("inside")
- [ 48] End value:Undefined
+ [ 11] Mov dst:x~0, src:Undefined
+ [ 16] Mov dst:x~0, src:String("inside")
+ [ 1b] End value:Undefined
diff --git a/Tests/LibJS/Bytecode/expected/var-shadow-in-default-param.txt b/Tests/LibJS/Bytecode/expected/var-shadow-in-default-param.txt
index e18a459b37d..fc9020610f4 100644
--- a/Tests/LibJS/Bytecode/expected/var-shadow-in-default-param.txt
+++ b/Tests/LibJS/Bytecode/expected/var-shadow-in-default-param.txt
@@ -1,4 +1,4 @@
-$4dd98537 var-shadow-in-default-param.js:7:5
+$701f25cb var-shadow-in-default-param.js:7:5
Registers: 7
Blocks: 1
Constants:
@@ -7,16 +7,16 @@ $4dd98537 var-shadow-in-default-param.js:7:5
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] SetGlobal `shadow`, src:String("outer")
- [ 28] GetGlobal value_feedback:0, dst:reg6, `shadow_in_default`
- [ 38] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 58] GetGlobal value_feedback:2, dst:reg6, `no_conflict`
- [ 68] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined
- [ 88] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] SetGlobal `shadow`, src:String("outer")
+ [ d] GetGlobal value_feedback:0, dst:reg6, `shadow_in_default`
+ [ 16] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 2b] GetGlobal value_feedback:2, dst:reg6, `no_conflict`
+ [ 34] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined
+ [ 49] End value:reg5
-shadow_in_default$cf39b72b var-shadow-in-default-param.js:8:28
+shadow_in_default$1b85a199 var-shadow-in-default-param.js:8:28
Registers: 6
Blocks: 3
Locals: shadow~0
@@ -26,18 +26,18 @@ shadow_in_default$cf39b72b var-shadow-in-default-param.js:8:28
block0:
[ 0] Enter
- [ 8] JumpUndefined condition:arg0, true_target:block1, false_target:block2
+ [ 1] JumpUndefined condition:arg0, true_target:block1, false_target:block2
block1:
- [ 18] GetGlobal value_feedback:0, dst:arg0, `shadow`
+ [ c] GetGlobal value_feedback:0, dst:arg0, `shadow`
block2:
- [ 28] Mov dst:shadow~0, src:Undefined
- [ 38] Mov dst:shadow~0, src:String("inner")
- [ 48] Return value:arg0
+ [ 15] Mov dst:shadow~0, src:Undefined
+ [ 1a] Mov dst:shadow~0, src:String("inner")
+ [ 1f] Return value:arg0
-no_conflict$9c1d62c4 var-shadow-in-default-param.js:15:22
+no_conflict$8836a16a var-shadow-in-default-param.js:15:22
Registers: 5
Blocks: 3
Locals: y~0
@@ -48,12 +48,12 @@ no_conflict$9c1d62c4 var-shadow-in-default-param.js:15:22
block0:
[ 0] Enter
- [ 8] JumpUndefined condition:arg0, true_target:block1, false_target:block2
+ [ 1] JumpUndefined condition:arg0, true_target:block1, false_target:block2
block1:
- [ 18] Mov dst:arg0, src:Int32(1)
+ [ c] Mov dst:arg0, src:Int32(1)
block2:
- [ 28] Mov dst:y~0, src:Undefined
- [ 38] Mov dst:y~0, src:Int32(2)
- [ 48] Return value:y~0
+ [ 11] Mov dst:y~0, src:Undefined
+ [ 16] Mov dst:y~0, src:Int32(2)
+ [ 1b] Return value:y~0
diff --git a/Tests/LibJS/Bytecode/expected/with-return.txt b/Tests/LibJS/Bytecode/expected/with-return.txt
index c9f18beb0ed..ff850ec7e82 100644
--- a/Tests/LibJS/Bytecode/expected/with-return.txt
+++ b/Tests/LibJS/Bytecode/expected/with-return.txt
@@ -1,4 +1,4 @@
-$af73ebee with-return.js:10:1
+$330eab9c with-return.js:10:1
Registers: 8
Blocks: 1
Constants:
@@ -7,23 +7,23 @@ $af73ebee with-return.js:10:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `with_return`
- [ 28] NewObject dst:reg7
- [ 38] InitObjectLiteralProperty object:reg7, `x`, src:Int32(42), shape_cache_index:0, property_slot:0
- [ 50] CacheObjectShape object:reg7
- [ 60] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
- [ 88] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `with_return`
+ [ f] NewObject dst:reg7
+ [ 14] InitObjectLiteralProperty object:reg7, `x`, src:Int32(42), shape_cache_index:0, property_slot:0
+ [ 23] CacheObjectShape object:reg7
+ [ 28] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
+ [ 3f] End value:reg5
-with_return$d690ef5a with-return.js:5:5
+with_return$5d7aca02 with-return.js:5:5
Registers: 7
Blocks: 1
block0:
[ 0] Enter
- [ 8] GetLexicalEnvironment dst:reg4
- [ 10] EnterObjectEnvironment dst:reg5, object:arg0
- [ 20] DynamicGetBinding value_feedback:0, dst:reg6, `x`
- [ 30] SetLexicalEnvironment environment:reg4
- [ 38] Return value:reg6
+ [ 1] GetLexicalEnvironment dst:reg4
+ [ 4] EnterObjectEnvironment dst:reg5, object:arg0
+ [ 9] DynamicGetBinding value_feedback:0, dst:reg6, `x`
+ [ 12] SetLexicalEnvironment environment:reg4
+ [ 15] Return value:reg6
diff --git a/Tests/LibJS/Bytecode/expected/with-statement.txt b/Tests/LibJS/Bytecode/expected/with-statement.txt
index d63eb151bbc..f1136581503 100644
--- a/Tests/LibJS/Bytecode/expected/with-statement.txt
+++ b/Tests/LibJS/Bytecode/expected/with-statement.txt
@@ -1,4 +1,4 @@
-$cd444473 with-statement.js:7:1
+$1aac9274 with-statement.js:7:1
Registers: 7
Blocks: 1
Constants:
@@ -6,13 +6,13 @@ $cd444473 with-statement.js:7:1
block0:
[ 0] Enter
- [ 8] Mov dst:reg5, src:Undefined
- [ 18] GetGlobal value_feedback:0, dst:reg6, `withBlock`
- [ 28] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 48] End value:reg5
+ [ 1] Mov dst:reg5, src:Undefined
+ [ 6] GetGlobal value_feedback:0, dst:reg6, `withBlock`
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 24] End value:reg5
-withBlock$345aed1d with-statement.js:2:9
+withBlock$21908f56 with-statement.js:2:9
Registers: 9
Blocks: 1
Locals: obj~0
@@ -22,18 +22,18 @@ withBlock$345aed1d with-statement.js:2:9
block0:
[ 0] Enter
- [ 8] GetLexicalEnvironment dst:reg4
- [ 10] NewObject dst:reg5
- [ 20] InitObjectLiteralProperty object:reg5, `x`, src:Int32(42), shape_cache_index:0, property_slot:0
- [ 38] CacheObjectShape object:reg5
- [ 48] Mov dst:obj~0, src:reg5
- [ 58] EnterObjectEnvironment dst:reg5, object:obj~0
- [ 68] DynamicGetBinding value_feedback:0, dst:reg6, `console`
- [ 78] GetById value_feedback:1, dst:reg7, base:reg6, `log`
- [ 90] DynamicGetBinding value_feedback:2, dst:reg8, `x`
- [ a0] Call value_feedback:3, call_feedback:0, dst:reg6, callee:reg7, this_value:reg6, arguments:[reg8]
- [ c8] SetLexicalEnvironment environment:reg4
- [ d0] End value:Undefined
+ [ 1] GetLexicalEnvironment dst:reg4
+ [ 4] NewObject dst:reg5
+ [ 9] InitObjectLiteralProperty object:reg5, `x`, src:Int32(42), shape_cache_index:0, property_slot:0
+ [ 18] CacheObjectShape object:reg5
+ [ 1d] Mov dst:obj~0, src:reg5
+ [ 22] EnterObjectEnvironment dst:reg5, object:obj~0
+ [ 27] DynamicGetBinding value_feedback:0, dst:reg6, `console`
+ [ 30] GetById value_feedback:1, dst:reg7, base:reg6, `log`
+ [ 3d] DynamicGetBinding value_feedback:2, dst:reg8, `x`
+ [ 46] Call value_feedback:3, call_feedback:0, dst:reg6, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 5d] SetLexicalEnvironment environment:reg4
+ [ 60] End value:Undefined
42
diff --git a/Tests/LibJS/Runtime/many-cache-sites.js b/Tests/LibJS/Runtime/many-cache-sites.js
new file mode 100644
index 00000000000..0cc98cb92c7
--- /dev/null
+++ b/Tests/LibJS/Runtime/many-cache-sites.js
@@ -0,0 +1,48 @@
+// The sites of a function past the last one of a cache table share one slot. What one of them sees must never give
+// another one a wrong value.
+
+test("property lookups past the last cache slot", () => {
+ const count = 70000;
+ const f = new Function(
+ "a",
+ "b",
+ "let s = 0;" + "s += a.x;".repeat(count) + "s += a.y; s += b.z; s += a.x; s += b.w; return s;"
+ );
+ for (let i = 0; i < 5; ++i) {
+ expect(f({ x: 1, y: 2 }, { z: 3, w: 4 })).toBe(count + 1 + 2 + 3 + 4);
+ expect(f({ y: 20, x: 10 }, { w: 40, z: 30 })).toBe(count * 10 + 10 + 20 + 30 + 40);
+ }
+});
+
+test("dynamic global variable reads past the last cache slot", () => {
+ globalThis.manyCacheSitesOne = 1;
+ globalThis.manyCacheSitesTwo = 2;
+ const count = 70000;
+ const f = new Function(
+ "let s = 0;" +
+ "s += manyCacheSitesOne;".repeat(count) +
+ "s += manyCacheSitesTwo; s += manyCacheSitesOne; return s;"
+ );
+ for (let i = 0; i < 5; ++i) {
+ expect(f()).toBe(count + 2 + 1);
+ }
+ globalThis.manyCacheSitesTwo = 5;
+ expect(f()).toBe(count + 5 + 1);
+});
+
+test("the shared slot outlives the functions that use it", () => {
+ const count = 70000;
+ const makeFunction = () => new Function("a", "let s = 0;" + "s += a.y;".repeat(count) + "return s;");
+ for (let i = 0; i < 4; ++i) {
+ expect(makeFunction()({ x: 1, y: 2 })).toBe(count * 2);
+ gc();
+ }
+ const getX = new Function("o", "let s = 0;" + "s += o.x;".repeat(1000) + "return s;");
+ for (let i = 0; i < 3; ++i) {
+ expect(getX({ x: 1, y: 2 })).toBe(1000);
+ }
+ const f = makeFunction();
+ for (let i = 0; i < 3; ++i) {
+ expect(f({ x: 1, y: 2 })).toBe(count * 2);
+ }
+});
diff --git a/Tests/LibJS/Runtime/strict-mode-class-body-in-sloppy-function.js b/Tests/LibJS/Runtime/strict-mode-class-body-in-sloppy-function.js
new file mode 100644
index 00000000000..af0e4380fc2
--- /dev/null
+++ b/Tests/LibJS/Runtime/strict-mode-class-body-in-sloppy-function.js
@@ -0,0 +1,39 @@
+function assignsInComputedKey() {
+ class C {
+ [(undeclaredInComputedKey = "a")]() {}
+ }
+}
+
+function assignsInHeritage() {
+ class C extends (undeclaredInHeritage = Object) {}
+}
+
+function assignsAfterClass() {
+ class C {
+ m() {}
+ }
+ undeclaredAfterClass = 1;
+ return undeclaredAfterClass;
+}
+
+function deletesBeforeAndAfterClass() {
+ const object = Object.freeze({ a: 1 });
+ const before = delete object.a;
+ class C {}
+ const after = delete object.a;
+ return [before, after];
+}
+
+test("assignments in a class heritage or computed key are strict", () => {
+ for (let i = 0; i < 3; ++i) {
+ expect(assignsInComputedKey).toThrowWithMessage(ReferenceError, "'undeclaredInComputedKey' is not defined");
+ expect(assignsInHeritage).toThrowWithMessage(ReferenceError, "'undeclaredInHeritage' is not defined");
+ }
+});
+
+test("code around a class in a sloppy function stays sloppy", () => {
+ for (let i = 0; i < 3; ++i) {
+ expect(assignsAfterClass()).toBe(1);
+ expect(deletesBeforeAndAfterClass()).toEqual([false, false]);
+ }
+});