Skip to content

Truly independent web browser

LibJS: Hold name table indices in two bytes of bytecode

Andreas Klingc4759fa5d79a
diff --git a/Libraries/LibJS/Flap/src/metadata.rs b/Libraries/LibJS/Flap/src/metadata.rs
index 83df1541ff2..ef423c6c450 100644
--- a/Libraries/LibJS/Flap/src/metadata.rs
+++ b/Libraries/LibJS/Flap/src/metadata.rs
@@ -680,11 +680,11 @@ fn try_field_type_info(ty: &str) -> Option<FieldType> {
"Optional<Operand>" => ("Option<Operand>", OPERAND_SIZE, "optional_operand"),
"Label" => ("Label", 4, "label"),
"Optional<Label>" => ("Option<Label>", 5, "optional_label"),
- "IdentifierTableIndex" => ("IdentifierTableIndex", 3, "u32_newtype"),
- "Optional<IdentifierTableIndex>" => ("Option<IdentifierTableIndex>", 3, "optional_u32_newtype"),
- "PropertyKeyTableIndex" => ("PropertyKeyTableIndex", 3, "u32_newtype"),
- "StringTableIndex" => ("StringTableIndex", 3, "u32_newtype"),
- "Optional<StringTableIndex>" => ("Option<StringTableIndex>", 3, "optional_u32_newtype"),
+ "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", 3, "env_coord"),
"Builtin" | "Completion::Type" | "IteratorHint" | "EnvironmentMode" | "PutKind" | "ArgumentsKind"
| "FunctionNamePrefix" => ("u8", 1, "u8"),
diff --git a/Libraries/LibJS/Flap/src/rust_bytecode.rs b/Libraries/LibJS/Flap/src/rust_bytecode.rs
index 5e08ae4bc09..a591c56744b 100644
--- a/Libraries/LibJS/Flap/src/rust_bytecode.rs
+++ b/Libraries/LibJS/Flap/src/rust_bytecode.rs
@@ -16,8 +16,9 @@
//! named by `field_type_info()` (`Operand`, `Label`, `IdentifierTableIndex`,
//! `PropertyKeyTableIndex`, `StringTableIndex`,
//! `EnvironmentCoordinate`) with `from_raw` / `optional_from_raw` constructors,
-//! plus `read_u16(bytes, at)`, `read_u24(bytes, at)`, `read_u32(bytes, at)` and `read_u64(bytes, at)` helpers reachable
-//! through the `reader` path prefix passed to the field reading functions.
+//! plus `read_u16(bytes, at)`, `read_name_index(bytes, at)`, `read_optional_name_index(bytes, at)`, `read_u32(bytes, at)`
+//! and `read_u64(bytes, at)` helpers reachable through the `reader` path prefix passed to the field reading functions,
+//! and the `is_wide_name_index(index)` and `name_index_field(index, distance)` helpers of the encoder.
use crate::metadata::Field;
use crate::metadata::InstructionDefinition;
@@ -118,18 +119,14 @@ pub fn read_expr_for_type(ty: &str, offset: &str, reader: &str) -> String {
"Optional<Label>" => {
format!("if bytes[{offset} + 4] != 0 {{ Some(Label({reader}read_u32(bytes, {offset}))) }} else {{ None }}")
}
- "IdentifierTableIndex" => format!("IdentifierTableIndex({reader}read_u24(bytes, {offset}))"),
+ "IdentifierTableIndex" => format!("IdentifierTableIndex({reader}read_name_index(bytes, {offset}))"),
"Optional<IdentifierTableIndex>" => {
- format!(
- "match {reader}read_u24(bytes, {offset}) {{ 0xff_ffff => None, raw => Some(IdentifierTableIndex(raw)) }}"
- )
+ format!("{reader}read_optional_name_index(bytes, {offset}).map(IdentifierTableIndex)")
}
- "PropertyKeyTableIndex" => format!("PropertyKeyTableIndex({reader}read_u24(bytes, {offset}))"),
- "StringTableIndex" => format!("StringTableIndex({reader}read_u24(bytes, {offset}))"),
+ "PropertyKeyTableIndex" => format!("PropertyKeyTableIndex({reader}read_name_index(bytes, {offset}))"),
+ "StringTableIndex" => format!("StringTableIndex({reader}read_name_index(bytes, {offset}))"),
"Optional<StringTableIndex>" => {
- format!(
- "match {reader}read_u24(bytes, {offset}) {{ 0xff_ffff => None, raw => Some(StringTableIndex(raw)) }}"
- )
+ format!("{reader}read_optional_name_index(bytes, {offset}).map(StringTableIndex)")
}
"EnvironmentCoordinate" => format!(
"EnvironmentCoordinate {{ hops: u32::from(bytes[{offset}]), index: u32::from({reader}read_u16(bytes, {offset} + 1)) }}"
@@ -343,8 +340,56 @@ pub fn generate_encoded_size_method(mut w: impl Write, ops: &[InstructionDefinit
for op in ops {
let fields = user_fields(op);
-
- if let Some(final_size) = op.layout.size {
+ let name_fields = name_index_fields(op);
+
+ if !name_fields.is_empty() {
+ // NB: A WideNameIndices before the instruction is part of it.
+ let mut bindings = Vec::new();
+ let mut indices = Vec::new();
+ for field in &fields {
+ let name = rust_field_name(&field.name);
+ if name_fields.iter().any(|name_field| name_field.name == field.name) {
+ if field.ty.starts_with("Optional<") {
+ indices.push(format!("{name}.map_or(u32::MAX, |index| index.0)"));
+ } else {
+ indices.push(format!("{name}.0"));
+ }
+ bindings.push(name);
+ } else if field.is_array {
+ bindings.push(name);
+ } else {
+ bindings.push(format!("{name}: _"));
+ }
+ }
+ let size = match (op.layout.size, &op.array) {
+ (Some(size), _) => size.to_string(),
+ (None, Some(array)) => format!(
+ "{} + {}",
+ op.layout.minimum_size,
+ scaled(
+ &format!("{}.len()", rust_field_name(&op.fields[array.field_index].name)),
+ array.element_size
+ )
+ ),
+ (None, None) => unreachable!("variable op missing array metadata"),
+ };
+ writeln!(
+ w,
+ " Instruction::{} {{ {} }} => {{",
+ op.name,
+ bindings.join(", ")
+ )?;
+ writeln!(
+ w,
+ " let wide = [{}].into_iter().any(is_wide_name_index);",
+ indices.join(", ")
+ )?;
+ writeln!(
+ w,
+ " {size} + if wide {{ {WIDE_NAME_INDICES_LENGTH} }} else {{ 0 }}"
+ )?;
+ writeln!(w, " }}")?;
+ } else if let Some(final_size) = op.layout.size {
writeln!(w, " {} => {final_size},", wildcard_pattern(op))?;
} else {
let array = op.array.as_ref().expect("variable op missing array metadata");
@@ -428,6 +473,26 @@ pub fn generate_encode_method(
Ok(())
}
+/// How many name table indices a WideNameIndices holds, the most any instruction has.
+const WIDE_NAME_INDEX_SLOTS: usize = 2;
+
+/// The size of a WideNameIndices: its opcode and a u32 per slot.
+const WIDE_NAME_INDICES_LENGTH: usize = 1 + 4 * WIDE_NAME_INDEX_SLOTS;
+
+/// The fields of `op` that hold a name table index, in the order of their slots in a WideNameIndices.
+fn name_index_fields(op: &InstructionDefinition) -> Vec<&Field> {
+ let fields = user_fields(op)
+ .into_iter()
+ .filter(|field| matches!(field_type_info(&field.ty).kind, "u32_newtype" | "optional_u32_newtype"))
+ .collect::<Vec<_>>();
+ assert!(
+ fields.len() <= WIDE_NAME_INDEX_SLOTS && fields.iter().all(|field| !field.is_array),
+ "{}: a WideNameIndices has no room for its name table indices",
+ op.name
+ );
+ fields
+}
+
/// Emit the statements that encode `op`, whose fields are bound by reference.
fn generate_encode_body(mut w: impl Write, op: &InstructionDefinition) -> GeneratorResult {
// The fixed part of the instruction goes through one buffer of its exact size.
@@ -438,6 +503,40 @@ 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)?;
+ // Name table indices too large for their fields go in a WideNameIndices right before the instruction.
+ let name_fields = name_index_fields(op);
+ if !name_fields.is_empty() {
+ let indices = (0..WIDE_NAME_INDEX_SLOTS)
+ .map(|slot| match name_fields.get(slot) {
+ Some(field) if field.ty.starts_with("Optional<") => {
+ format!("{}.map_or(u32::MAX, |index| index.0)", rust_field_name(&field.name))
+ }
+ Some(field) => format!("{}.0", rust_field_name(&field.name)),
+ None => "u32::MAX".to_string(),
+ })
+ .collect::<Vec<_>>();
+ writeln!(
+ w,
+ " let name_indices: [u32; {WIDE_NAME_INDEX_SLOTS}] = [{}];",
+ indices.join(", ")
+ )?;
+ writeln!(
+ w,
+ " if name_indices.iter().any(|&index| is_wide_name_index(index)) {{"
+ )?;
+ writeln!(
+ w,
+ " encoder.bytes.push(OpCode::WideNameIndices as u8);"
+ )?;
+ writeln!(w, " for index in name_indices {{")?;
+ writeln!(
+ w,
+ " encoder.bytes.extend_from_slice(&index.to_ne_bytes());"
+ )?;
+ writeln!(w, " }}")?;
+ writeln!(w, " }}")?;
+ }
+
// 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" {
@@ -451,6 +550,16 @@ fn generate_encode_body(mut w: impl Write, op: &InstructionDefinition) -> Genera
op.name,
f.name
);
+ if let Some(slot) = name_fields.iter().position(|field| field.name == f.name) {
+ // The distance back from the field to its slot of the WideNameIndices.
+ let distance = field_offset + WIDE_NAME_INDICES_LENGTH - 1 - 4 * slot;
+ writeln!(
+ w,
+ " out[{field_offset}..{}].copy_from_slice(&name_index_field(name_indices[{slot}], {distance}).to_ne_bytes());",
+ field_offset + 2
+ )?;
+ continue;
+ }
emit_field_store(&mut w, &rust_field_name(&f.name), info.kind, field_offset)?;
}
writeln!(w, " let start = encoder.bytes.len();")?;
@@ -618,16 +727,11 @@ fn emit_field_store(mut w: impl Write, name: &str, kind: &str, offset: usize) ->
writeln!(w, "{prefix} out[{}] = 1;", offset + 4)?;
writeln!(w, "{prefix}}}")?;
}
- "u32_newtype" => writeln!(w, "{prefix}{}", store(&format!("name_index_bytes({name}.0)"), 3))?,
"cache_index" => writeln!(
w,
"{prefix}{}",
store(&format!("narrow_index(*{name}).to_ne_bytes()"), 2)
)?,
- "optional_u32_newtype" => {
- let value = format!("name_index_bytes({name}.map_or(u32::MAX, |idx| idx.0))");
- writeln!(w, "{prefix}{}", store(&value, 3))?;
- }
"env_coord" => {
writeln!(
w,
@@ -666,10 +770,6 @@ fn emit_field_write(mut w: impl Write, name: &str, kind: &str) -> GeneratorResul
)?;
writeln!(w, "{prefix}encoder.bytes.extend_from_slice(&raw.to_ne_bytes());")?;
}
- "u32_newtype" => writeln!(
- w,
- "{prefix}encoder.bytes.extend_from_slice(&name_index_bytes({name}.0));"
- )?,
other => panic!("Unknown array element encoding kind: {other}"),
}
diff --git a/Libraries/LibJS/Flap/tests/interpreter-assembly/aarch64.S b/Libraries/LibJS/Flap/tests/interpreter-assembly/aarch64.S
index 3f9f8600788..ce4e81b3c3e 100644
--- a/Libraries/LibJS/Flap/tests/interpreter-assembly/aarch64.S
+++ b/Libraries/LibJS/Flap/tests/interpreter-assembly/aarch64.S
@@ -16,6 +16,7 @@ asm_dispatch_table:
.quad asm_handler_Enter
.quad asm_handler_Mov
.quad asm_handler_MovWide
+ .quad asm_handler_WideNameIndices
.quad asm_handler_Add
.quad asm_handler_Sub
.quad asm_handler_Mul
@@ -268,7 +269,6 @@ asm_dispatch_table:
.quad asm_handler_fallback
.quad asm_handler_fallback
.quad asm_handler_fallback
- .quad asm_handler_fallback
.globl CSYM(js_interpreter_debug_dispatch_table)
CSYM(js_interpreter_debug_dispatch_table):
@@ -545,6 +545,10 @@ CSYM(js_interpreter_handler_ranges):
.quad asm_handler_MovWide_hot_end
.quad asm_handler_MovWide_cold
.quad asm_handler_MovWide_cold_end
+ .quad asm_handler_WideNameIndices
+ .quad asm_handler_WideNameIndices_hot_end
+ .quad asm_handler_WideNameIndices_cold
+ .quad asm_handler_WideNameIndices_cold_end
.quad asm_handler_Add
.quad asm_handler_Add_hot_end
.quad asm_handler_Add_cold
@@ -1553,10 +1557,6 @@ CSYM(js_interpreter_handler_ranges):
.quad asm_handler_fallback_hot_end
.quad asm_handler_fallback_cold
.quad asm_handler_fallback_cold_end
- .quad asm_handler_fallback
- .quad asm_handler_fallback_hot_end
- .quad asm_handler_fallback_cold
- .quad asm_handler_fallback_cold_end
.text
@@ -1718,6 +1718,14 @@ asm_handler_MovWide:
br x10
asm_handler_MovWide_hot_end:
+.p2align 4
+asm_handler_WideNameIndices:
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
+ ldr x10, [x19, x9, lsl #3]
+ br x10
+asm_handler_WideNameIndices_hot_end:
+
.p2align 4
asm_handler_Add:
ldrb w0, [x21, #4]
@@ -3386,7 +3394,7 @@ asm_handler_SetLexicalEnvironment_hot_end:
.p2align 4
asm_handler_GetBinding:
ldr x0, [x28, #32]
- add x2, x21, #7
+ add x2, x21, #6
ldrb w1, [x2]
ldurh w2, [x2, #1]
cbz x0, .Lasm_GetBinding.assert_predicate_failure_11
@@ -3409,8 +3417,8 @@ asm_handler_GetBinding:
b.eq .Lasm_GetBinding.ssa_block_1
ldrb w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #10]
- add x21, x21, #10
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_GetBinding_hot_end:
@@ -3419,7 +3427,7 @@ asm_handler_GetBinding_hot_end:
asm_handler_DynamicGetBinding:
ldr x0, [x28, #88]
ldr x0, [x0, #200]
- ldurh w1, [x21, #7]
+ ldrh w1, [x21, #6]
add x0, x0, x1, lsl #3
ldp w1, w2, [x0, #0]
movn w9, #1
@@ -3454,8 +3462,8 @@ asm_handler_DynamicGetBinding:
b.eq .Lasm_DynamicGetBinding.ssa_block_1
ldrb w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #9]
- add x21, x21, #9
+ ldrb w9, [x21, #8]
+ add x21, x21, #8
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_DynamicGetBinding_hot_end:
@@ -3463,7 +3471,7 @@ asm_handler_DynamicGetBinding_hot_end:
.p2align 4
asm_handler_GetInitializedBinding:
ldr x0, [x28, #32]
- add x2, x21, #7
+ add x2, x21, #6
ldrb w1, [x2]
ldurh w2, [x2, #1]
cbz x0, .Lasm_GetInitializedBinding.assert_predicate_failure_11
@@ -3483,8 +3491,8 @@ asm_handler_GetInitializedBinding:
ldr x0, [x0, x2, lsl #3]
ldrb w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #10]
- add x21, x21, #10
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_GetInitializedBinding_hot_end:
@@ -3493,7 +3501,7 @@ asm_handler_GetInitializedBinding_hot_end:
asm_handler_DynamicGetInitializedBinding:
ldr x0, [x28, #88]
ldr x0, [x0, #200]
- ldurh w1, [x21, #7]
+ ldrh w1, [x21, #6]
add x0, x0, x1, lsl #3
ldp w1, w2, [x0, #0]
movn w9, #1
@@ -3525,8 +3533,8 @@ asm_handler_DynamicGetInitializedBinding:
ldr x0, [x0, x2, lsl #3]
ldrb w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #9]
- add x21, x21, #9
+ ldrb w9, [x21, #8]
+ add x21, x21, #8
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_DynamicGetInitializedBinding_hot_end:
@@ -3534,7 +3542,7 @@ asm_handler_DynamicGetInitializedBinding_hot_end:
.p2align 4
asm_handler_InitializeLexicalBinding:
ldr x0, [x28, #32]
- add x2, x21, #5
+ add x2, x21, #4
ldrb w1, [x2]
ldurh w2, [x2, #1]
cbz x0, .Lasm_InitializeLexicalBinding.assert_predicate_failure_11
@@ -3551,11 +3559,11 @@ asm_handler_InitializeLexicalBinding:
cbz x0, .Lasm_InitializeLexicalBinding.assert_predicate_failure_14
ldr x0, [x0, #24]
cbz x0, .Lasm_InitializeLexicalBinding.assert_failure_0
- ldrb w1, [x21, #4]
+ ldrb w1, [x21, #3]
ldr x1, [x27, x1, lsl #3]
str x1, [x0, x2, lsl #3]
- ldrb w9, [x21, #8]
- add x21, x21, #8
+ ldrb w9, [x21, #7]
+ add x21, x21, #7
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_InitializeLexicalBinding_hot_end:
@@ -3563,7 +3571,7 @@ asm_handler_InitializeLexicalBinding_hot_end:
.p2align 4
asm_handler_InitializeVariableBinding:
ldr x0, [x28, #40]
- add x2, x21, #5
+ add x2, x21, #4
ldrb w1, [x2]
ldurh w2, [x2, #1]
cbz x0, .Lasm_InitializeVariableBinding.assert_predicate_failure_11
@@ -3580,11 +3588,11 @@ asm_handler_InitializeVariableBinding:
cbz x0, .Lasm_InitializeVariableBinding.assert_predicate_failure_14
ldr x0, [x0, #24]
cbz x0, .Lasm_InitializeVariableBinding.assert_failure_0
- ldrb w1, [x21, #4]
+ ldrb w1, [x21, #3]
ldr x1, [x27, x1, lsl #3]
str x1, [x0, x2, lsl #3]
- ldrb w9, [x21, #8]
- add x21, x21, #8
+ ldrb w9, [x21, #7]
+ add x21, x21, #7
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_InitializeVariableBinding_hot_end:
@@ -3593,7 +3601,7 @@ asm_handler_InitializeVariableBinding_hot_end:
asm_handler_DynamicInitializeLexicalBinding:
ldr x0, [x28, #88]
ldr x0, [x0, #200]
- ldurh w1, [x21, #5]
+ ldrh w1, [x21, #4]
add x0, x0, x1, lsl #3
ldp w1, w2, [x0, #0]
movn w9, #1
@@ -3622,11 +3630,11 @@ asm_handler_DynamicInitializeLexicalBinding:
cbnz w9, .Lasm_DynamicInitializeLexicalBinding.ssa_block_1
ldr x0, [x0, #24]
cbz x0, .Lasm_DynamicInitializeLexicalBinding.assert_failure_0
- ldrb w1, [x21, #4]
+ ldrb w1, [x21, #3]
ldr x1, [x27, x1, lsl #3]
str x1, [x0, x2, lsl #3]
- ldrb w9, [x21, #7]
- add x21, x21, #7
+ ldrb w9, [x21, #6]
+ add x21, x21, #6
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_DynamicInitializeLexicalBinding_hot_end:
@@ -3635,7 +3643,7 @@ asm_handler_DynamicInitializeLexicalBinding_hot_end:
asm_handler_DynamicInitializeVariableBinding:
ldr x0, [x28, #88]
ldr x0, [x0, #200]
- ldurh w1, [x21, #5]
+ ldrh w1, [x21, #4]
add x0, x0, x1, lsl #3
ldp w1, w2, [x0, #0]
movn w9, #1
@@ -3664,11 +3672,11 @@ asm_handler_DynamicInitializeVariableBinding:
cbnz w9, .Lasm_DynamicInitializeVariableBinding.ssa_block_1
ldr x0, [x0, #24]
cbz x0, .Lasm_DynamicInitializeVariableBinding.assert_failure_0
- ldrb w1, [x21, #4]
+ ldrb w1, [x21, #3]
ldr x1, [x27, x1, lsl #3]
str x1, [x0, x2, lsl #3]
- ldrb w9, [x21, #7]
- add x21, x21, #7
+ ldrb w9, [x21, #6]
+ add x21, x21, #6
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_DynamicInitializeVariableBinding_hot_end:
@@ -3676,7 +3684,7 @@ asm_handler_DynamicInitializeVariableBinding_hot_end:
.p2align 4
asm_handler_SetLexicalBinding:
ldr x1, [x28, #32]
- add x0, x21, #5
+ add x0, x21, #4
ldrb w2, [x0]
ldurh w0, [x0, #1]
cbz x1, .Lasm_SetLexicalBinding.assert_predicate_failure_11
@@ -3732,11 +3740,11 @@ asm_handler_SetLexicalBinding:
tbnz x1, #1, 1f
b .Lasm_SetLexicalBinding.ssa_block_1
1:
- ldrb w1, [x21, #4]
+ ldrb w1, [x21, #3]
ldr x1, [x27, x1, lsl #3]
str x1, [x3, x0, lsl #3]
- ldrb w9, [x21, #8]
- add x21, x21, #8
+ ldrb w9, [x21, #7]
+ add x21, x21, #7
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_SetLexicalBinding_hot_end:
@@ -3744,7 +3752,7 @@ asm_handler_SetLexicalBinding_hot_end:
.p2align 4
asm_handler_SetVariableBinding:
ldr x1, [x28, #40]
- add x0, x21, #5
+ add x0, x21, #4
ldrb w2, [x0]
ldurh w0, [x0, #1]
cbz x1, .Lasm_SetVariableBinding.assert_predicate_failure_11
@@ -3800,11 +3808,11 @@ asm_handler_SetVariableBinding:
tbnz x1, #1, 1f
b .Lasm_SetVariableBinding.ssa_block_1
1:
- ldrb w1, [x21, #4]
+ ldrb w1, [x21, #3]
ldr x1, [x27, x1, lsl #3]
str x1, [x3, x0, lsl #3]
- ldrb w9, [x21, #8]
- add x21, x21, #8
+ ldrb w9, [x21, #7]
+ add x21, x21, #7
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_SetVariableBinding_hot_end:
@@ -3813,7 +3821,7 @@ asm_handler_SetVariableBinding_hot_end:
asm_handler_DynamicSetLexicalBinding:
ldr x0, [x28, #88]
ldr x0, [x0, #200]
- ldurh w1, [x21, #5]
+ ldrh w1, [x21, #4]
add x0, x0, x1, lsl #3
ldp w2, w1, [x0, #0]
movn w9, #1
@@ -3881,11 +3889,11 @@ asm_handler_DynamicSetLexicalBinding:
tbnz x0, #1, 1f
b .Lasm_DynamicSetLexicalBinding.ssa_block_1
1:
- ldrb w0, [x21, #4]
+ ldrb w0, [x21, #3]
ldr x0, [x27, x0, lsl #3]
str x0, [x3, x1, lsl #3]
- ldrb w9, [x21, #7]
- add x21, x21, #7
+ ldrb w9, [x21, #6]
+ add x21, x21, #6
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_DynamicSetLexicalBinding_hot_end:
@@ -3894,7 +3902,7 @@ asm_handler_DynamicSetLexicalBinding_hot_end:
asm_handler_DynamicSetVariableBinding:
ldr x0, [x28, #88]
ldr x0, [x0, #200]
- ldurh w1, [x21, #5]
+ ldrh w1, [x21, #4]
add x0, x0, x1, lsl #3
ldp w2, w1, [x0, #0]
movn w9, #1
@@ -3962,11 +3970,11 @@ asm_handler_DynamicSetVariableBinding:
tbnz x0, #1, 1f
b .Lasm_DynamicSetVariableBinding.ssa_block_1
1:
- ldrb w0, [x21, #4]
+ ldrb w0, [x21, #3]
ldr x0, [x27, x0, lsl #3]
str x0, [x3, x1, lsl #3]
- ldrb w9, [x21, #7]
- add x21, x21, #7
+ ldrb w9, [x21, #6]
+ add x21, x21, #6
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_DynamicSetVariableBinding_hot_end:
@@ -4647,7 +4655,7 @@ asm_handler_StrictlyInequals_hot_end:
.p2align 4
asm_handler_GetCalleeAndThisFromEnvironment:
ldr x0, [x28, #32]
- add x2, x21, #8
+ add x2, x21, #7
ldrb w1, [x2]
ldurh w2, [x2, #1]
cbz x0, .Lasm_GetCalleeAndThisFromEnvironment.assert_predicate_failure_11
@@ -4673,8 +4681,8 @@ asm_handler_GetCalleeAndThisFromEnvironment:
ldrb w9, [x21, #4]
movz x10, #0x7ffe, lsl #48
str x10, [x27, x9, lsl #3]
- ldrb w9, [x21, #11]
- add x21, x21, #11
+ ldrb w9, [x21, #10]
+ add x21, x21, #10
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_GetCalleeAndThisFromEnvironment_hot_end:
@@ -4683,7 +4691,7 @@ asm_handler_GetCalleeAndThisFromEnvironment_hot_end:
asm_handler_DynamicGetCalleeAndThisFromEnvironment:
ldr x0, [x28, #88]
ldr x0, [x0, #200]
- ldrh w1, [x21, #8]
+ ldurh w1, [x21, #7]
add x0, x0, x1, lsl #3
ldp w1, w2, [x0, #0]
movn w9, #1
@@ -4721,8 +4729,8 @@ asm_handler_DynamicGetCalleeAndThisFromEnvironment:
ldrb w9, [x21, #4]
movz x10, #0x7ffe, lsl #48
str x10, [x27, x9, lsl #3]
- ldrb w9, [x21, #10]
- add x21, x21, #10
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_DynamicGetCalleeAndThisFromEnvironment_hot_end:
@@ -5318,7 +5326,7 @@ asm_handler_GetById:
cbz x1, .Lasm_GetById.assert_predicate_failure_123
ldr x2, [x1, #152]
cbz x2, .Lasm_GetById.assert_failure_1
- ldrh w4, [x21, #8]
+ ldurh w4, [x21, #7]
ldr x2, [x2, x4, lsl #3]
cbz x2, .Lasm_GetById.ssa_block_1
and x2, x2, #0xfffffffffffffffc
@@ -5346,14 +5354,14 @@ asm_handler_GetById:
b.eq .Lasm_GetById.ssa_block_17
ldrb w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #10]
- add x21, x21, #10
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_GetById.ssa_block_15:
ldr x1, [x1, #152]
cbz x1, .Lasm_GetById.assert_failure_3
- ldrh w2, [x21, #8]
+ ldurh w2, [x21, #7]
ldr x1, [x1, x2, lsl #3]
mov x2, x1
and x2, x2, #0x3
@@ -5393,8 +5401,8 @@ asm_handler_GetById:
b.eq .Lasm_GetById.ssa_block_1
ldrb w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #10]
- add x21, x21, #10
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_GetById_hot_end:
@@ -5416,7 +5424,7 @@ asm_handler_PutById:
cbz x0, .Lasm_PutById.assert_predicate_failure_14
ldr x0, [x0, #152]
cbz x0, .Lasm_PutById.assert_failure_1
- ldurh w3, [x21, #7]
+ ldrh w3, [x21, #6]
ldr x0, [x0, x3, lsl #3]
cbz x0, .Lasm_PutById.ssa_block_2
and x0, x0, #0xfffffffffffffffc
@@ -5438,11 +5446,11 @@ asm_handler_PutById:
mov w10, #65532
cmp x9, x10
b.eq .Lasm_PutById.ssa_block_2
- ldrb w1, [x21, #5]
+ ldrb w1, [x21, #4]
ldr x1, [x27, x1, lsl #3]
str x1, [x0, x3, lsl #3]
- ldrb w9, [x21, #9]
- add x21, x21, #9
+ ldrb w9, [x21, #8]
+ add x21, x21, #8
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_PutById_hot_end:
@@ -5842,7 +5850,7 @@ asm_handler_GetGlobal:
cbz x0, .Lasm_GetGlobal.assert_predicate_failure_9
ldr x1, [x0, #176]
cbz x1, .Lasm_GetGlobal.assert_failure_0
- ldurh w0, [x21, #7]
+ ldrh w0, [x21, #6]
mov w9, #80
mul x0, x0, x9
adds x0, x0, x1
@@ -5870,8 +5878,8 @@ asm_handler_GetGlobal:
b.eq .Lasm_GetGlobal.ssa_block_1
ldrb w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #9]
- add x21, x21, #9
+ ldrb w9, [x21, #8]
+ add x21, x21, #8
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_GetGlobal.ssa_block_2:
@@ -5886,8 +5894,8 @@ asm_handler_GetGlobal:
b.eq .Lasm_GetGlobal.ssa_block_1
ldrb w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #9]
- add x21, x21, #9
+ ldrb w9, [x21, #8]
+ add x21, x21, #8
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_GetGlobal_hot_end:
@@ -5900,7 +5908,7 @@ asm_handler_ResolveGlobalBinding:
cbz x0, .Lasm_ResolveGlobalBinding.assert_predicate_failure_9
ldr x1, [x0, #176]
cbz x1, .Lasm_ResolveGlobalBinding.assert_failure_0
- ldurh w0, [x21, #5]
+ ldrh w0, [x21, #4]
mov w9, #80
mul x0, x0, x9
adds x0, x0, x1
@@ -5923,8 +5931,8 @@ asm_handler_ResolveGlobalBinding:
movz x10, #0x1, lsl #0
movk x10, #0x7ff9, lsl #48
str x10, [x27, x9, lsl #3]
- ldrb w9, [x21, #7]
- add x21, x21, #7
+ ldrb w9, [x21, #6]
+ add x21, x21, #6
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_ResolveGlobalBinding.ssa_block_2:
@@ -5934,8 +5942,8 @@ asm_handler_ResolveGlobalBinding:
movz x10, #0x1, lsl #0
movk x10, #0x7ff9, lsl #48
str x10, [x27, x9, lsl #3]
- ldrb w9, [x21, #7]
- add x21, x21, #7
+ ldrb w9, [x21, #6]
+ add x21, x21, #6
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_ResolveGlobalBinding_hot_end:
@@ -5948,7 +5956,7 @@ asm_handler_SetGlobal:
cbz x0, .Lasm_SetGlobal.assert_predicate_failure_9
ldr x2, [x0, #176]
cbz x2, .Lasm_SetGlobal.assert_failure_0
- ldurh w0, [x21, #5]
+ ldrh w0, [x21, #4]
mov w9, #80
mul x0, x0, x9
adds x0, x0, x2
@@ -5976,11 +5984,11 @@ asm_handler_SetGlobal:
b.eq .Lasm_SetGlobal.ssa_block_1
ldrb w9, [x0, #13]
cbz w9, .Lasm_SetGlobal.ssa_block_1
- ldrb w0, [x21, #4]
+ ldrb w0, [x21, #3]
ldr x0, [x27, x0, lsl #3]
str x0, [x1, x4, lsl #3]
- ldrb w9, [x21, #7]
- add x21, x21, #7
+ ldrb w9, [x21, #6]
+ add x21, x21, #6
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_SetGlobal.ssa_block_2:
@@ -6028,11 +6036,11 @@ asm_handler_SetGlobal:
tbnz x1, #1, 1f
b .Lasm_SetGlobal.ssa_block_1
1:
- ldrb w1, [x21, #4]
+ ldrb w1, [x21, #3]
ldr x1, [x27, x1, lsl #3]
str x1, [x3, x0, lsl #3]
- ldrb w9, [x21, #7]
- add x21, x21, #7
+ ldrb w9, [x21, #6]
+ add x21, x21, #6
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_SetGlobal_hot_end:
@@ -8438,6 +8446,8 @@ asm_handler_Mov_cold:
asm_handler_Mov_cold_end:
asm_handler_MovWide_cold:
asm_handler_MovWide_cold_end:
+asm_handler_WideNameIndices_cold:
+asm_handler_WideNameIndices_cold_end:
asm_handler_Add_cold:
// Cold paths for Add
.Lasm_Add.ssa_checked_6_failure:
@@ -9156,7 +9166,7 @@ asm_handler_NewClass:
sub w1, w21, w26
str w1, [x28, #64]
add x9, sp, #0
- ldrb w10, [x21, #14]
+ ldrb w10, [x21, #13]
lsl x10, x10, #3
add x10, x10, #71
and x10, x10, #0xfffffffffffffff0
@@ -9202,7 +9212,7 @@ asm_handler_NewClass:
.Lasm_NewClass.value_ready_6:
str x11, [sp, #40]
movz x11, #0x7ffb, lsl #48
- ldrb w12, [x21, #12]
+ ldrb w12, [x21, #11]
mov w13, #255
cmp w12, w13
b.eq .Lasm_NewClass.value_ready_7
@@ -9210,9 +9220,9 @@ asm_handler_NewClass:
.Lasm_NewClass.value_ready_7:
str x11, [sp, #48]
mov w9, #0
- ldrb w10, [x21, #14]
+ ldrb w10, [x21, #13]
add x14, sp, #56
- add x3, x21, #15
+ add x3, x21, #14
.Lasm_NewClass.array_value_next_8:
cmp x9, x10
b.hs .Lasm_NewClass.array_values_end_10
@@ -10753,7 +10763,7 @@ asm_handler_DynamicInitializeLexicalBinding_cold:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldrb w9, [x21, #4]
+ ldrb w9, [x21, #3]
ldr x10, [x27, x9, lsl #3]
.Lasm_DynamicInitializeLexicalBinding.scalar_value_ready_1:
mov x3, x10
@@ -10798,7 +10808,7 @@ asm_handler_DynamicInitializeVariableBinding_cold:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldrb w9, [x21, #4]
+ ldrb w9, [x21, #3]
ldr x10, [x27, x9, lsl #3]
.Lasm_DynamicInitializeVariableBinding.scalar_value_ready_1:
mov x3, x10
@@ -10843,7 +10853,7 @@ asm_handler_SetLexicalBinding_cold:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldrb w9, [x21, #4]
+ ldrb w9, [x21, #3]
ldr x10, [x27, x9, lsl #3]
.Lasm_SetLexicalBinding.scalar_value_ready_4:
mov x3, x10
@@ -10888,7 +10898,7 @@ asm_handler_SetVariableBinding_cold:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldrb w9, [x21, #4]
+ ldrb w9, [x21, #3]
ldr x10, [x27, x9, lsl #3]
.Lasm_SetVariableBinding.scalar_value_ready_4:
mov x3, x10
@@ -10933,7 +10943,7 @@ asm_handler_DynamicSetLexicalBinding_cold:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldrb w9, [x21, #4]
+ ldrb w9, [x21, #3]
ldr x10, [x27, x9, lsl #3]
.Lasm_DynamicSetLexicalBinding.scalar_value_ready_4:
mov x3, x10
@@ -10977,7 +10987,7 @@ asm_handler_SetVariableBindingOfBlockFunction:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldrb w9, [x21, #4]
+ ldrb w9, [x21, #3]
ldr x10, [x27, x9, lsl #3]
.Lasm_SetVariableBindingOfBlockFunction.scalar_value_ready_0:
mov x3, x10
@@ -11019,7 +11029,7 @@ asm_handler_DynamicSetVariableBinding_cold:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldrb w9, [x21, #4]
+ ldrb w9, [x21, #3]
ldr x10, [x27, x9, lsl #3]
.Lasm_DynamicSetVariableBinding.scalar_value_ready_4:
mov x3, x10
@@ -11188,7 +11198,7 @@ asm_handler_SetResolvedBinding:
ldr x10, [x27, x9, lsl #3]
.Lasm_SetResolvedBinding.scalar_value_ready_0:
mov x3, x10
- ldrb w9, [x21, #5]
+ ldrb w9, [x21, #4]
ldr x10, [x27, x9, lsl #3]
.Lasm_SetResolvedBinding.scalar_value_ready_1:
mov x4, x10
@@ -14310,8 +14320,8 @@ asm_handler_GetById_cold:
.Lasm_GetById.ssa_block_51:
ldrb w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #10]
- add x21, x21, #10
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_GetById.ssa_block_25:
@@ -14403,16 +14413,16 @@ asm_handler_GetById_cold:
add x27, x28, #128
ldrb w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #10]
- add x21, x21, #10
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_GetById.ssa_block_5:
movz x0, #0x7ffe, lsl #48
ldrb w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #10]
- add x21, x21, #10
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_GetById.ssa_block_4:
@@ -14550,7 +14560,7 @@ asm_handler_GetById_cold:
ldr x0, [x28, #88]
ldr x1, [x0, #152]
cbz x1, .Lasm_GetById.assert_failure_21
- ldrh w2, [x21, #8]
+ ldurh w2, [x21, #7]
ldrb w0, [x21, #4]
ldr x0, [x27, x0, lsl #3]
lsl x2, x2, #3
@@ -14561,8 +14571,8 @@ asm_handler_GetById_cold:
b.eq .Lasm_GetById.ssa_block_2
ldrb w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #10]
- add x21, x21, #10
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_GetById.ssa_block_14:
@@ -14590,8 +14600,8 @@ asm_handler_GetById_cold:
add sp, sp, #16
.Lasm_GetById.values_call_done_22:
cbnz w0, .Lasm_GetById.ssa_block_2
- ldrb w9, [x21, #10]
- add x21, x21, #10
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_GetById.ssa_block_2:
@@ -14650,7 +14660,7 @@ asm_handler_GetByIdWithThis:
ldr x10, [x27, x9, lsl #3]
.Lasm_GetByIdWithThis.scalar_value_ready_0:
mov x3, x10
- ldrb w9, [x21, #8]
+ ldrb w9, [x21, #7]
ldr x10, [x27, x9, lsl #3]
.Lasm_GetByIdWithThis.scalar_value_ready_1:
mov x4, x10
@@ -14696,7 +14706,7 @@ asm_handler_PutById_cold:
ldr x11, [x27, x12, lsl #3]
.Lasm_PutById.value_ready_4:
str x11, [sp]
- ldrb w12, [x21, #5]
+ ldrb w12, [x21, #4]
ldr x11, [x27, x12, lsl #3]
.Lasm_PutById.value_ready_5:
str x11, [sp, #8]
@@ -14709,8 +14719,8 @@ asm_handler_PutById_cold:
add sp, sp, #16
.Lasm_PutById.values_call_done_3:
cbnz w0, .Lasm_PutById.ssa_block_1
- ldrb w9, [x21, #9]
- add x21, x21, #9
+ ldrb w9, [x21, #8]
+ add x21, x21, #8
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_PutById.ssa_block_1:
@@ -14721,7 +14731,7 @@ asm_handler_PutById_cold:
ldr x10, [x27, x9, lsl #3]
.Lasm_PutById.scalar_value_ready_7:
mov x3, x10
- ldrb w9, [x21, #5]
+ ldrb w9, [x21, #4]
ldr x10, [x27, x9, lsl #3]
.Lasm_PutById.scalar_value_ready_8:
mov x4, x10
@@ -14773,7 +14783,7 @@ asm_handler_PutByIdWithThis:
ldr x10, [x27, x9, lsl #3]
.Lasm_PutByIdWithThis.scalar_value_ready_1:
mov x4, x10
- ldrb w9, [x21, #6]
+ ldrb w9, [x21, #5]
ldr x10, [x27, x9, lsl #3]
.Lasm_PutByIdWithThis.scalar_value_ready_2:
mov x5, x10
@@ -15535,7 +15545,7 @@ asm_handler_SetGlobal_cold:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldrb w9, [x21, #4]
+ ldrb w9, [x21, #3]
ldr x10, [x27, x9, lsl #3]
.Lasm_SetGlobal.scalar_value_ready_7:
mov x3, x10
@@ -16706,7 +16716,7 @@ asm_handler_InitObjectLiteralProperty:
ldr x10, [x27, x9, lsl #3]
.Lasm_InitObjectLiteralProperty.scalar_value_ready_0:
mov x3, x10
- ldrb w9, [x21, #5]
+ ldrb w9, [x21, #4]
ldr x10, [x27, x9, lsl #3]
.Lasm_InitObjectLiteralProperty.scalar_value_ready_1:
mov x4, x10
@@ -18072,7 +18082,7 @@ asm_handler_NewFunction:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldrb w9, [x21, #7]
+ ldrb w9, [x21, #6]
movz x10, #0x7ffb, lsl #48
mov w11, #255
cmp w9, w11
@@ -18119,7 +18129,7 @@ asm_handler_NewFunctionWide:
mov x0, x20
sub w1, w21, w26
str w1, [x28, #64]
- ldrb w9, [x21, #9]
+ ldrb w9, [x21, #8]
movz x10, #0x7ffb, lsl #48
mov w11, #255
cmp w9, w11
@@ -18299,7 +18309,7 @@ asm_handler_PutPrivateById:
ldr x10, [x27, x9, lsl #3]
.Lasm_PutPrivateById.scalar_value_ready_0:
mov x3, x10
- ldrb w9, [x21, #5]
+ ldrb w9, [x21, #4]
ldr x10, [x27, x9, lsl #3]
.Lasm_PutPrivateById.scalar_value_ready_1:
mov x4, x10
diff --git a/Libraries/LibJS/Flap/tests/interpreter-assembly/x86_64.S b/Libraries/LibJS/Flap/tests/interpreter-assembly/x86_64.S
index 5528d40f6ef..17b18a0b1b4 100644
--- a/Libraries/LibJS/Flap/tests/interpreter-assembly/x86_64.S
+++ b/Libraries/LibJS/Flap/tests/interpreter-assembly/x86_64.S
@@ -17,6 +17,7 @@ asm_dispatch_table:
.quad asm_handler_Enter
.quad asm_handler_Mov
.quad asm_handler_MovWide
+ .quad asm_handler_WideNameIndices
.quad asm_handler_Add
.quad asm_handler_Sub
.quad asm_handler_Mul
@@ -269,7 +270,6 @@ asm_dispatch_table:
.quad asm_handler_fallback
.quad asm_handler_fallback
.quad asm_handler_fallback
- .quad asm_handler_fallback
.globl CSYM(js_interpreter_debug_dispatch_table)
CSYM(js_interpreter_debug_dispatch_table):
@@ -546,6 +546,10 @@ CSYM(js_interpreter_handler_ranges):
.quad asm_handler_MovWide_hot_end
.quad asm_handler_MovWide_cold
.quad asm_handler_MovWide_cold_end
+ .quad asm_handler_WideNameIndices
+ .quad asm_handler_WideNameIndices_hot_end
+ .quad asm_handler_WideNameIndices_cold
+ .quad asm_handler_WideNameIndices_cold_end
.quad asm_handler_Add
.quad asm_handler_Add_hot_end
.quad asm_handler_Add_cold
@@ -1554,10 +1558,6 @@ CSYM(js_interpreter_handler_ranges):
.quad asm_handler_fallback_hot_end
.quad asm_handler_fallback_cold
.quad asm_handler_fallback_cold_end
- .quad asm_handler_fallback
- .quad asm_handler_fallback_hot_end
- .quad asm_handler_fallback_cold
- .quad asm_handler_fallback_cold_end
.text
@@ -1696,6 +1696,13 @@ asm_handler_MovWide:
jmp [r12 + rax * 8]
asm_handler_MovWide_hot_end:
+.p2align 6
+asm_handler_WideNameIndices:
+ add r13d, 9
+ movzx eax, BYTE PTR [r14 + r13]
+ jmp [r12 + rax * 8]
+asm_handler_WideNameIndices_hot_end:
+
.p2align 6
asm_handler_Add:
movzx eax, BYTE PTR [r14 + r13 + 4]
@@ -3286,7 +3293,7 @@ asm_handler_SetLexicalEnvironment_hot_end:
.p2align 6
asm_handler_GetBinding:
mov rax, QWORD PTR [rbx - 96]
- lea rdx, [r14 + r13 + 7]
+ lea rdx, [r14 + r13 + 6]
movzx ecx, BYTE PTR [rdx]
movzx edx, WORD PTR [rdx + 1]
test rax, rax
@@ -3316,7 +3323,7 @@ asm_handler_GetBinding:
je .Lasm_GetBinding.ssa_block_1
movzx r11d, BYTE PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 10
+ add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_GetBinding_hot_end:
@@ -3325,7 +3332,7 @@ asm_handler_GetBinding_hot_end:
asm_handler_DynamicGetBinding:
mov rax, QWORD PTR [rbx - 40]
mov rax, QWORD PTR [rax + 200]
- movzx ecx, WORD PTR [r14 + r13 + 7]
+ movzx ecx, WORD PTR [r14 + r13 + 6]
lea rax, [rax + rcx * 8]
mov ecx, DWORD PTR [rax]
mov edx, DWORD PTR [rax + 4]
@@ -3367,7 +3374,7 @@ asm_handler_DynamicGetBinding:
je .Lasm_DynamicGetBinding.ssa_block_1
movzx r11d, BYTE PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 9
+ add r13d, 8
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_DynamicGetBinding_hot_end:
@@ -3375,7 +3382,7 @@ asm_handler_DynamicGetBinding_hot_end:
.p2align 6
asm_handler_GetInitializedBinding:
mov rax, QWORD PTR [rbx - 96]
- lea rdx, [r14 + r13 + 7]
+ lea rdx, [r14 + r13 + 6]
movzx ecx, BYTE PTR [rdx]
movzx edx, WORD PTR [rdx + 1]
test rax, rax
@@ -3401,7 +3408,7 @@ asm_handler_GetInitializedBinding:
mov rax, QWORD PTR [rax + rdx * 8]
movzx r11d, BYTE PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 10
+ add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_GetInitializedBinding_hot_end:
@@ -3410,7 +3417,7 @@ asm_handler_GetInitializedBinding_hot_end:
asm_handler_DynamicGetInitializedBinding:
mov rax, QWORD PTR [rbx - 40]
mov rax, QWORD PTR [rax + 200]
- movzx ecx, WORD PTR [r14 + r13 + 7]
+ movzx ecx, WORD PTR [r14 + r13 + 6]
lea rax, [rax + rcx * 8]
mov ecx, DWORD PTR [rax]
mov edx, DWORD PTR [rax + 4]
@@ -3448,7 +3455,7 @@ asm_handler_DynamicGetInitializedBinding:
mov rax, QWORD PTR [rax + rdx * 8]
movzx r11d, BYTE PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 9
+ add r13d, 8
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_DynamicGetInitializedBinding_hot_end:
@@ -3456,7 +3463,7 @@ asm_handler_DynamicGetInitializedBinding_hot_end:
.p2align 6
asm_handler_InitializeLexicalBinding:
mov rax, QWORD PTR [rbx - 96]
- lea rdx, [r14 + r13 + 5]
+ lea rdx, [r14 + r13 + 4]
movzx ecx, BYTE PTR [rdx]
movzx edx, WORD PTR [rdx + 1]
test rax, rax
@@ -3479,10 +3486,10 @@ asm_handler_InitializeLexicalBinding:
mov rax, QWORD PTR [rax + 24]
test rax, rax
jz .Lasm_InitializeLexicalBinding.assert_failure_0
- movzx ecx, BYTE PTR [r14 + r13 + 4]
+ movzx ecx, BYTE PTR [r14 + r13 + 3]
mov rcx, QWORD PTR [rbx + rcx * 8]
mov QWORD PTR [rax + rdx * 8], rcx
- add r13d, 8
+ add r13d, 7
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_InitializeLexicalBinding_hot_end:
@@ -3490,7 +3497,7 @@ asm_handler_InitializeLexicalBinding_hot_end:
.p2align 6
asm_handler_InitializeVariableBinding:
mov rax, QWORD PTR [rbx - 88]
- lea rdx, [r14 + r13 + 5]
+ lea rdx, [r14 + r13 + 4]
movzx ecx, BYTE PTR [rdx]
movzx edx, WORD PTR [rdx + 1]
test rax, rax
@@ -3513,10 +3520,10 @@ asm_handler_InitializeVariableBinding:
mov rax, QWORD PTR [rax + 24]
test rax, rax
jz .Lasm_InitializeVariableBinding.assert_failure_0
- movzx ecx, BYTE PTR [r14 + r13 + 4]
+ movzx ecx, BYTE PTR [r14 + r13 + 3]
mov rcx, QWORD PTR [rbx + rcx * 8]
mov QWORD PTR [rax + rdx * 8], rcx
- add r13d, 8
+ add r13d, 7
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_InitializeVariableBinding_hot_end:
@@ -3525,7 +3532,7 @@ asm_handler_InitializeVariableBinding_hot_end:
asm_handler_DynamicInitializeLexicalBinding:
mov rax, QWORD PTR [rbx - 40]
mov rax, QWORD PTR [rax + 200]
- movzx ecx, WORD PTR [r14 + r13 + 5]
+ movzx ecx, WORD PTR [r14 + r13 + 4]
lea rax, [rax + rcx * 8]
mov ecx, DWORD PTR [rax]
mov edx, DWORD PTR [rax + 4]
@@ -3560,10 +3567,10 @@ asm_handler_DynamicInitializeLexicalBinding:
mov rax, QWORD PTR [rax + 24]
test rax, rax
jz .Lasm_DynamicInitializeLexicalBinding.assert_failure_0
- movzx ecx, BYTE PTR [r14 + r13 + 4]
+ movzx ecx, BYTE PTR [r14 + r13 + 3]
mov rcx, QWORD PTR [rbx + rcx * 8]
mov QWORD PTR [rax + rdx * 8], rcx
- add r13d, 7
+ add r13d, 6
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_DynamicInitializeLexicalBinding_hot_end:
@@ -3572,7 +3579,7 @@ asm_handler_DynamicInitializeLexicalBinding_hot_end:
asm_handler_DynamicInitializeVariableBinding:
mov rax, QWORD PTR [rbx - 40]
mov rax, QWORD PTR [rax + 200]
- movzx ecx, WORD PTR [r14 + r13 + 5]
+ movzx ecx, WORD PTR [r14 + r13 + 4]
lea rax, [rax + rcx * 8]
mov ecx, DWORD PTR [rax]
mov edx, DWORD PTR [rax + 4]
@@ -3607,10 +3614,10 @@ asm_handler_DynamicInitializeVariableBinding:
mov rax, QWORD PTR [rax + 24]
test rax, rax
jz .Lasm_DynamicInitializeVariableBinding.assert_failure_0
- movzx ecx, BYTE PTR [r14 + r13 + 4]
+ movzx ecx, BYTE PTR [r14 + r13 + 3]
mov rcx, QWORD PTR [rbx + rcx * 8]
mov QWORD PTR [rax + rdx * 8], rcx
- add r13d, 7
+ add r13d, 6
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_DynamicInitializeVariableBinding_hot_end:
@@ -3618,7 +3625,7 @@ asm_handler_DynamicInitializeVariableBinding_hot_end:
.p2align 6
asm_handler_SetLexicalBinding:
mov rcx, QWORD PTR [rbx - 96]
- lea rax, [r14 + r13 + 5]
+ lea rax, [r14 + r13 + 4]
movzx edx, BYTE PTR [rax]
movzx eax, WORD PTR [rax + 1]
test rcx, rcx
@@ -3684,10 +3691,10 @@ asm_handler_SetLexicalBinding:
.Lasm_SetLexicalBinding.ssa_block_10:
test ecx, 2
jz .Lasm_SetLexicalBinding.ssa_block_1
- movzx ecx, BYTE PTR [r14 + r13 + 4]
+ movzx ecx, BYTE PTR [r14 + r13 + 3]
mov rcx, QWORD PTR [rbx + rcx * 8]
mov QWORD PTR [rsi + rax * 8], rcx
- add r13d, 8
+ add r13d, 7
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_SetLexicalBinding_hot_end:
@@ -3695,7 +3702,7 @@ asm_handler_SetLexicalBinding_hot_end:
.p2align 6
asm_handler_SetVariableBinding:
mov rcx, QWORD PTR [rbx - 88]
- lea rax, [r14 + r13 + 5]
+ lea rax, [r14 + r13 + 4]
movzx edx, BYTE PTR [rax]
movzx eax, WORD PTR [rax + 1]
test rcx, rcx
@@ -3761,10 +3768,10 @@ asm_handler_SetVariableBinding:
.Lasm_SetVariableBinding.ssa_block_10:
test ecx, 2
jz .Lasm_SetVariableBinding.ssa_block_1
- movzx ecx, BYTE PTR [r14 + r13 + 4]
+ movzx ecx, BYTE PTR [r14 + r13 + 3]
mov rcx, QWORD PTR [rbx + rcx * 8]
mov QWORD PTR [rsi + rax * 8], rcx
- add r13d, 8
+ add r13d, 7
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_SetVariableBinding_hot_end:
@@ -3773,7 +3780,7 @@ asm_handler_SetVariableBinding_hot_end:
asm_handler_DynamicSetLexicalBinding:
mov rax, QWORD PTR [rbx - 40]
mov rax, QWORD PTR [rax + 200]
- movzx ecx, WORD PTR [r14 + r13 + 5]
+ movzx ecx, WORD PTR [r14 + r13 + 4]
lea rax, [rax + rcx * 8]
mov edx, DWORD PTR [rax]
mov ecx, DWORD PTR [rax + 4]
@@ -3851,10 +3858,10 @@ asm_handler_DynamicSetLexicalBinding:
.Lasm_DynamicSetLexicalBinding.ssa_block_14:
test eax, 2
jz .Lasm_DynamicSetLexicalBinding.ssa_block_1
- movzx eax, BYTE PTR [r14 + r13 + 4]
+ movzx eax, BYTE PTR [r14 + r13 + 3]
mov rax, QWORD PTR [rbx + rax * 8]
mov QWORD PTR [rsi + rcx * 8], rax
- add r13d, 7
+ add r13d, 6
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_DynamicSetLexicalBinding_hot_end:
@@ -3863,7 +3870,7 @@ asm_handler_DynamicSetLexicalBinding_hot_end:
asm_handler_DynamicSetVariableBinding:
mov rax, QWORD PTR [rbx - 40]
mov rax, QWORD PTR [rax + 200]
- movzx ecx, WORD PTR [r14 + r13 + 5]
+ movzx ecx, WORD PTR [r14 + r13 + 4]
lea rax, [rax + rcx * 8]
mov edx, DWORD PTR [rax]
mov ecx, DWORD PTR [rax + 4]
@@ -3941,10 +3948,10 @@ asm_handler_DynamicSetVariableBinding:
.Lasm_DynamicSetVariableBinding.ssa_block_14:
test eax, 2
jz .Lasm_DynamicSetVariableBinding.ssa_block_1
- movzx eax, BYTE PTR [r14 + r13 + 4]
+ movzx eax, BYTE PTR [r14 + r13 + 3]
mov rax, QWORD PTR [rbx + rax * 8]
mov QWORD PTR [rsi + rcx * 8], rax
- add r13d, 7
+ add r13d, 6
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_DynamicSetVariableBinding_hot_end:
@@ -4624,7 +4631,7 @@ asm_handler_StrictlyInequals_hot_end:
.p2align 6
asm_handler_GetCalleeAndThisFromEnvironment:
mov rax, QWORD PTR [rbx - 96]
- lea rdx, [r14 + r13 + 8]
+ lea rdx, [r14 + r13 + 7]
movzx ecx, BYTE PTR [rdx]
movzx edx, WORD PTR [rdx + 1]
test rax, rax
@@ -4657,7 +4664,7 @@ asm_handler_GetCalleeAndThisFromEnvironment:
movabs r11, 9222809086901354496
movzx eax, BYTE PTR [r14 + r13 + 4]
mov QWORD PTR [rbx + rax * 8], r11
- add r13d, 11
+ add r13d, 10
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_GetCalleeAndThisFromEnvironment_hot_end:
@@ -4666,7 +4673,7 @@ asm_handler_GetCalleeAndThisFromEnvironment_hot_end:
asm_handler_DynamicGetCalleeAndThisFromEnvironment:
mov rax, QWORD PTR [rbx - 40]
mov rax, QWORD PTR [rax + 200]
- movzx ecx, WORD PTR [r14 + r13 + 8]
+ movzx ecx, WORD PTR [r14 + r13 + 7]
lea rax, [rax + rcx * 8]
mov ecx, DWORD PTR [rax]
mov edx, DWORD PTR [rax + 4]
@@ -4711,7 +4718,7 @@ asm_handler_DynamicGetCalleeAndThisFromEnvironment:
movabs r11, 9222809086901354496
movzx eax, BYTE PTR [r14 + r13 + 4]
mov QWORD PTR [rbx + rax * 8], r11
- add r13d, 10
+ add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_DynamicGetCalleeAndThisFromEnvironment_hot_end:
@@ -5315,7 +5322,7 @@ asm_handler_GetById:
mov rdx, QWORD PTR [rcx + 152]
test rdx, rdx
jz .Lasm_GetById.assert_failure_1
- movzx edi, WORD PTR [r14 + r13 + 8]
+ movzx edi, WORD PTR [r14 + r13 + 7]
mov rdx, QWORD PTR [rdx + rdi * 8]
test rdx, rdx
jz .Lasm_GetById.ssa_block_1
@@ -5346,14 +5353,14 @@ asm_handler_GetById:
je .Lasm_GetById.ssa_block_17
movzx r11d, BYTE PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 10
+ add r13d, 9
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
- movzx edx, WORD PTR [r14 + r13 + 8]
+ movzx edx, WORD PTR [r14 + r13 + 7]
mov rcx, QWORD PTR [rcx + rdx * 8]
mov rdx, rcx
and rdx, 3
@@ -5391,7 +5398,7 @@ asm_handler_GetById:
je .Lasm_GetById.ssa_block_1
movzx r11d, BYTE PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 10
+ add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_GetById_hot_end:
@@ -5417,7 +5424,7 @@ asm_handler_PutById:
mov rax, QWORD PTR [rax + 152]
test rax, rax
jz .Lasm_PutById.assert_failure_1
- movzx esi, WORD PTR [r14 + r13 + 7]
+ movzx esi, WORD PTR [r14 + r13 + 6]
mov rax, QWORD PTR [rax + rsi * 8]
test rax, rax
jz .Lasm_PutById.ssa_block_2
@@ -5444,10 +5451,10 @@ asm_handler_PutById:
shr r11, 48
cmp r11w, 65532
je .Lasm_PutById.ssa_block_2
- movzx ecx, BYTE PTR [r14 + r13 + 5]
+ movzx ecx, BYTE PTR [r14 + r13 + 4]
mov rcx, QWORD PTR [rbx + rcx * 8]
mov QWORD PTR [rax + rsi * 8], rcx
- add r13d, 9
+ add r13d, 8
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_PutById_hot_end:
@@ -5879,7 +5886,7 @@ asm_handler_GetGlobal:
mov rcx, QWORD PTR [rax + 176]
test rcx, rcx
jz .Lasm_GetGlobal.assert_failure_0
- movzx eax, WORD PTR [r14 + r13 + 7]
+ movzx eax, WORD PTR [r14 + r13 + 6]
imul rax, rax, 80
add rax, rcx
test rax, rax
@@ -5907,7 +5914,7 @@ asm_handler_GetGlobal:
je .Lasm_GetGlobal.ssa_block_1
movzx r11d, BYTE PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 9
+ add r13d, 8
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_GetGlobal.ssa_block_2:
@@ -5924,7 +5931,7 @@ asm_handler_GetGlobal:
je .Lasm_GetGlobal.ssa_block_1
movzx r11d, BYTE PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 9
+ add r13d, 8
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_GetGlobal_hot_end:
@@ -5940,7 +5947,7 @@ asm_handler_ResolveGlobalBinding:
mov rcx, QWORD PTR [rax + 176]
test rcx, rcx
jz .Lasm_ResolveGlobalBinding.assert_failure_0
- movzx eax, WORD PTR [r14 + r13 + 5]
+ movzx eax, WORD PTR [r14 + r13 + 4]
imul rax, rax, 80
add rax, rcx
test rax, rax
@@ -5960,7 +5967,7 @@ asm_handler_ResolveGlobalBinding:
movabs r11, 9221401712017801217
movzx eax, BYTE PTR [r14 + r13 + 1]
mov QWORD PTR [rbx + rax * 8], r11
- add r13d, 7
+ add r13d, 6
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_ResolveGlobalBinding.ssa_block_2:
@@ -5969,7 +5976,7 @@ asm_handler_ResolveGlobalBinding:
movabs r11, 9221401712017801217
movzx eax, BYTE PTR [r14 + r13 + 1]
mov QWORD PTR [rbx + rax * 8], r11
- add r13d, 7
+ add r13d, 6
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_ResolveGlobalBinding_hot_end:
@@ -5985,7 +5992,7 @@ asm_handler_SetGlobal:
mov rdx, QWORD PTR [rax + 176]
test rdx, rdx
jz .Lasm_SetGlobal.assert_failure_0
- movzx eax, WORD PTR [r14 + r13 + 5]
+ movzx eax, WORD PTR [r14 + r13 + 4]
imul rax, rax, 80
add rax, rdx
test rax, rax
@@ -6013,10 +6020,10 @@ asm_handler_SetGlobal:
je .Lasm_SetGlobal.ssa_block_1
cmp BYTE PTR [rax + 13], 0
jz .Lasm_SetGlobal.ssa_block_1
- movzx eax, BYTE PTR [r14 + r13 + 4]
+ movzx eax, BYTE PTR [r14 + r13 + 3]
mov rax, QWORD PTR [rbx + rax * 8]
mov QWORD PTR [rcx + rdi * 8], rax
- add r13d, 7
+ add r13d, 6
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_SetGlobal.ssa_block_2:
@@ -6069,10 +6076,10 @@ asm_handler_SetGlobal:
.Lasm_SetGlobal.ssa_block_7:
test ecx, 2
jz .Lasm_SetGlobal.ssa_block_1
- movzx ecx, BYTE PTR [r14 + r13 + 4]
+ movzx ecx, BYTE PTR [r14 + r13 + 3]
mov rcx, QWORD PTR [rbx + rcx * 8]
mov QWORD PTR [rsi + rax * 8], rcx
- add r13d, 7
+ add r13d, 6
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_SetGlobal_hot_end:
@@ -8422,6 +8429,8 @@ asm_handler_Mov_cold:
asm_handler_Mov_cold_end:
asm_handler_MovWide_cold:
asm_handler_MovWide_cold_end:
+asm_handler_WideNameIndices_cold:
+asm_handler_WideNameIndices_cold_end:
asm_handler_Add_cold:
# Cold paths for Add
.Lasm_Add.ssa_checked_6_failure:
@@ -9120,7 +9129,7 @@ asm_handler_NewClass:
mov DWORD PTR [rbx + -64], r13d
lea rcx, [r14 + r13]
mov r11, rsp
- movzx r10d, BYTE PTR [rcx + 14]
+ movzx r10d, BYTE PTR [rcx + 13]
shl r10, 3
add r10, 71
and r10, -16
@@ -9166,18 +9175,18 @@ asm_handler_NewClass:
.Lasm_NewClass.value_ready_6:
mov QWORD PTR [rsp + 40], rax
movabs rax, 9221964661971222528
- movzx r10d, BYTE PTR [rcx + 12]
+ movzx r10d, BYTE PTR [rcx + 11]
cmp r10d, 255
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
- movzx r10d, BYTE PTR [rcx + 14]
+ movzx r10d, BYTE PTR [rcx + 13]
.Lasm_NewClass.array_value_next_8:
cmp r11, r10
jae .Lasm_NewClass.array_values_end_10
- movzx edx, BYTE PTR [rcx + r11 + 15]
+ movzx edx, BYTE PTR [rcx + r11 + 14]
movabs rax, 9221964661971222528
cmp edx, 255
je .Lasm_NewClass.array_value_ready_9
@@ -10597,7 +10606,7 @@ asm_handler_DynamicInitializeLexicalBinding_cold:
.Lasm_DynamicInitializeLexicalBinding.ssa_block_1:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- movzx r10d, BYTE PTR [r11 + 4]
+ movzx r10d, BYTE PTR [r11 + 3]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_DynamicInitializeLexicalBinding.scalar_value_ready_1:
mov rcx, rax
@@ -10635,7 +10644,7 @@ asm_handler_DynamicInitializeVariableBinding_cold:
.Lasm_DynamicInitializeVariableBinding.ssa_block_1:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- movzx r10d, BYTE PTR [r11 + 4]
+ movzx r10d, BYTE PTR [r11 + 3]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_DynamicInitializeVariableBinding.scalar_value_ready_1:
mov rcx, rax
@@ -10673,7 +10682,7 @@ asm_handler_SetLexicalBinding_cold:
.Lasm_SetLexicalBinding.ssa_block_1:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- movzx r10d, BYTE PTR [r11 + 4]
+ movzx r10d, BYTE PTR [r11 + 3]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_SetLexicalBinding.scalar_value_ready_4:
mov rcx, rax
@@ -10711,7 +10720,7 @@ asm_handler_SetVariableBinding_cold:
.Lasm_SetVariableBinding.ssa_block_1:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- movzx r10d, BYTE PTR [r11 + 4]
+ movzx r10d, BYTE PTR [r11 + 3]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_SetVariableBinding.scalar_value_ready_4:
mov rcx, rax
@@ -10749,7 +10758,7 @@ asm_handler_DynamicSetLexicalBinding_cold:
.Lasm_DynamicSetLexicalBinding.ssa_block_1:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- movzx r10d, BYTE PTR [r11 + 4]
+ movzx r10d, BYTE PTR [r11 + 3]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_DynamicSetLexicalBinding.scalar_value_ready_4:
mov rcx, rax
@@ -10786,7 +10795,7 @@ asm_handler_DynamicSetLexicalBinding_cold_end:
asm_handler_SetVariableBindingOfBlockFunction:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- movzx r10d, BYTE PTR [r11 + 4]
+ movzx r10d, BYTE PTR [r11 + 3]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_SetVariableBindingOfBlockFunction.scalar_value_ready_0:
mov rcx, rax
@@ -10827,7 +10836,7 @@ asm_handler_DynamicSetVariableBinding_cold:
.Lasm_DynamicSetVariableBinding.ssa_block_1:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- movzx r10d, BYTE PTR [r11 + 4]
+ movzx r10d, BYTE PTR [r11 + 3]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_DynamicSetVariableBinding.scalar_value_ready_4:
mov rcx, rax
@@ -10989,7 +10998,7 @@ asm_handler_SetResolvedBinding:
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_SetResolvedBinding.scalar_value_ready_0:
mov rcx, rax
- movzx r10d, BYTE PTR [r11 + 5]
+ movzx r10d, BYTE PTR [r11 + 4]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_SetResolvedBinding.scalar_value_ready_1:
mov r8, rax
@@ -13908,7 +13917,7 @@ asm_handler_GetById_cold:
.Lasm_GetById.ssa_block_51:
movzx r11d, BYTE PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 10
+ add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_GetById.ssa_block_25:
@@ -14017,14 +14026,14 @@ asm_handler_GetById_cold:
lea rbx, [rcx + 128]
movzx r11d, BYTE PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 10
+ add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_GetById.ssa_block_5:
movabs rax, 9222809086901354496
movzx r11d, BYTE PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 10
+ add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_GetById.ssa_block_4:
@@ -14168,7 +14177,7 @@ asm_handler_GetById_cold:
mov rdx, QWORD PTR [rax + 152]
test rdx, rdx
jz .Lasm_GetById.assert_failure_21
- movzx eax, WORD PTR [r14 + r13 + 8]
+ movzx eax, WORD PTR [r14 + r13 + 7]
movzx ecx, BYTE PTR [r14 + r13 + 4]
mov rcx, QWORD PTR [rbx + rcx * 8]
shl rax, 3
@@ -14182,7 +14191,7 @@ asm_handler_GetById_cold:
je .Lasm_GetById.ssa_block_2
movzx r11d, BYTE PTR [r14 + r13 + 3]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 10
+ add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_GetById.ssa_block_14:
@@ -14216,7 +14225,7 @@ asm_handler_GetById_cold:
.Lasm_GetById.values_call_done_22:
test eax, eax
jnz .Lasm_GetById.ssa_block_2
- add r13d, 10
+ add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_GetById.ssa_block_2:
@@ -14268,7 +14277,7 @@ asm_handler_GetByIdWithThis:
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_GetByIdWithThis.scalar_value_ready_0:
mov rcx, rax
- movzx r10d, BYTE PTR [r11 + 8]
+ movzx r10d, BYTE PTR [r11 + 7]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_GetByIdWithThis.scalar_value_ready_1:
mov r8, rax
@@ -14316,7 +14325,7 @@ asm_handler_PutById_cold:
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_PutById.value_ready_4:
mov QWORD PTR [rsp], rax
- movzx r10d, BYTE PTR [rcx + 5]
+ movzx r10d, BYTE PTR [rcx + 4]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_PutById.value_ready_5:
mov QWORD PTR [rsp + 8], rax
@@ -14330,7 +14339,7 @@ asm_handler_PutById_cold:
.Lasm_PutById.values_call_done_3:
test eax, eax
jnz .Lasm_PutById.ssa_block_1
- add r13d, 9
+ add r13d, 8
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_PutById.ssa_block_1:
@@ -14340,7 +14349,7 @@ asm_handler_PutById_cold:
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_PutById.scalar_value_ready_7:
mov rcx, rax
- movzx r10d, BYTE PTR [r11 + 5]
+ movzx r10d, BYTE PTR [r11 + 4]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_PutById.scalar_value_ready_8:
mov r8, rax
@@ -14385,7 +14394,7 @@ asm_handler_PutByIdWithThis:
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_PutByIdWithThis.scalar_value_ready_1:
mov r8, rax
- movzx r10d, BYTE PTR [r11 + 6]
+ movzx r10d, BYTE PTR [r11 + 5]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_PutByIdWithThis.scalar_value_ready_2:
mov r9, rax
@@ -15114,7 +15123,7 @@ asm_handler_SetGlobal_cold:
.Lasm_SetGlobal.ssa_block_1:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- movzx r10d, BYTE PTR [r11 + 4]
+ movzx r10d, BYTE PTR [r11 + 3]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_SetGlobal.scalar_value_ready_7:
mov rcx, rax
@@ -16267,7 +16276,7 @@ asm_handler_InitObjectLiteralProperty:
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_InitObjectLiteralProperty.scalar_value_ready_0:
mov rcx, rax
- movzx r10d, BYTE PTR [r11 + 5]
+ movzx r10d, BYTE PTR [r11 + 4]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_InitObjectLiteralProperty.scalar_value_ready_1:
mov r8, rax
@@ -17618,7 +17627,7 @@ asm_handler_GetTemplateObject_cold_end:
asm_handler_NewFunction:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- movzx r10d, BYTE PTR [r11 + 7]
+ movzx r10d, BYTE PTR [r11 + 6]
movabs rax, 9221964661971222528
cmp r10d, 255
je .Lasm_NewFunction.scalar_value_ready_0
@@ -17664,7 +17673,7 @@ asm_handler_NewFunction_cold_end:
asm_handler_NewFunctionWide:
mov DWORD PTR [rbx + -64], r13d
lea r11, [r14 + r13]
- movzx r10d, BYTE PTR [r11 + 9]
+ movzx r10d, BYTE PTR [r11 + 8]
movabs rax, 9221964661971222528
cmp r10d, 255
je .Lasm_NewFunctionWide.scalar_value_ready_0
@@ -17836,7 +17845,7 @@ asm_handler_PutPrivateById:
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_PutPrivateById.scalar_value_ready_0:
mov rcx, rax
- movzx r10d, BYTE PTR [r11 + 5]
+ movzx r10d, BYTE PTR [r11 + 4]
mov rax, QWORD PTR [rbx + r10 * 8]
.Lasm_PutPrivateById.scalar_value_ready_1:
mov r8, rax
diff --git a/Libraries/LibJS/Interpreter/interpreter.flap b/Libraries/LibJS/Interpreter/interpreter.flap
index 50378bbd3c0..9ec46753f7b 100644
--- a/Libraries/LibJS/Interpreter/interpreter.flap
+++ b/Libraries/LibJS/Interpreter/interpreter.flap
@@ -1294,6 +1294,15 @@ handler MovWide(
dispatch_next;
}
+# The name table indices of the next instruction that are too large for its fields. Only what reads that instruction
+# looks at them.
+handler WideNameIndices(
+ first: u32,
+ second: u32
+) {
+ dispatch_next;
+}
+
specialize Add(lhs: Int32);
specialize Add(rhs: Int32);
specialize Sub(rhs: Int32);
diff --git a/Libraries/LibJS/JIT/Rust/src/builder/handling.rs b/Libraries/LibJS/JIT/Rust/src/builder/handling.rs
index 17a7ee88961..fae7bce639f 100644
--- a/Libraries/LibJS/JIT/Rust/src/builder/handling.rs
+++ b/Libraries/LibJS/JIT/Rust/src/builder/handling.rs
@@ -92,6 +92,7 @@ pub fn handling(opcode: OpCode) -> Handling {
O::Enter
| O::Mov
| O::MovWide
+ | O::WideNameIndices
| O::MovSrcUndefined
| O::Jump
| O::JumpIf
diff --git a/Libraries/LibJS/JIT/Rust/src/builder/mod.rs b/Libraries/LibJS/JIT/Rust/src/builder/mod.rs
index 5b4457212fb..238a73b3e59 100644
--- a/Libraries/LibJS/JIT/Rust/src/builder/mod.rs
+++ b/Libraries/LibJS/JIT/Rust/src/builder/mod.rs
@@ -1437,6 +1437,8 @@ impl<'a> GraphBuilder<'a> {
let value = self.read(src)?;
self.write(dst, value)?;
}
+ // NB: Only what decodes the next instruction reads its operands.
+ Instruction::WideNameIndices { .. } => {}
Instruction::MovSrcUndefined { dst } => {
let undefined = self.constant(value::UNDEFINED);
self.write(dst, undefined)?;
diff --git a/Libraries/LibJS/JIT/Rust/src/builder/tests.rs b/Libraries/LibJS/JIT/Rust/src/builder/tests.rs
index 170642ea4e6..d9f9ca2b116 100644
--- a/Libraries/LibJS/JIT/Rust/src/builder/tests.rs
+++ b/Libraries/LibJS/JIT/Rust/src/builder/tests.rs
@@ -895,7 +895,7 @@ pub(crate) mod property_access {
Return ([[V17]])
frame states:
[[FS0]]: pc 0 at {} frame [a0]
- [[FS1]]: pc 20 at {r5=[[V6]], r6=[[V6]]} frame [a0]
+ [[FS1]]: pc 18 at {r5=[[V6]], r6=[[V6]]} frame [a0]
",
);
}
@@ -938,7 +938,7 @@ pub(crate) mod property_access {
Return ([[V19]])
frame states:
[[FS0]]: pc 0 at {} frame [a0]
- [[FS1]]: pc 10 at {r5=[[V6]]} frame [a0]
+ [[FS1]]: pc 9 at {r5=[[V6]]} frame [a0]
",
);
}
@@ -1547,15 +1547,15 @@ pub(crate) mod property_access {
CheckShape [0x100] ([[V1]], [[V4]]) [[[FS0]]]
StoreNamed +2 ([[V1]], #10, [[V4]]) [[[FS0]]]
[[V13]] = LoadSlot l1
- [[V14]] = CallSlowPath Exp @19 ([[V13]], #10) [[[FS1]]]
+ [[V14]] = CallSlowPath Exp @17 ([[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 19 after -> l1 {r5=#10} frame [a0]
- [[FS2]]: pc 25 at {r5=#10} frame [a0]
+ [[FS1]]: pc 17 after -> l1 {r5=#10} frame [a0]
+ [[FS2]]: pc 23 at {r5=#10} frame [a0]
",
);
}
@@ -1945,7 +1945,7 @@ pub(crate) mod inlining {
[[B3]] <- [[B2]], [[B7]]:
[[V15]] = Phi ([[V9]], [[V12]])
EnsureFrameInitialized
- [[V16]] = CallSlowPath Add @20 ([[V6]], [[V15]]) [[[FS1]]]
+ [[V16]] = CallSlowPath Add @18 ([[V6]], [[V15]]) [[[FS1]]]
BranchBindingMutable 2 ([[V5]]) -> [[B4]], [[B8]]
[[B4]] <- [[B3]]:
[[V20]] = LoadEnvironmentBinding 2 ([[V5]])
@@ -1957,19 +1957,19 @@ pub(crate) mod inlining {
[[V29]] = EmptyToUndefined ([[V16]])
Return ([[V29]])
[[B7]] <- [[B1]] cold:
- [[V12]] = CallSlowPath GetGlobal @11 [[[FS0]]]
+ [[V12]] = CallSlowPath GetGlobal @10 [[[FS0]]]
Jump [[B3]]
[[B8]] <- [[B3]] cold:
Jump [[B10]]
[[B9]] <- [[B4]] cold:
Jump [[B10]]
[[B10]] <- [[B8]], [[B9]] cold:
- CallSlowPath SetLexicalBinding @26 ([[V16]]) [[[FS2]]]
+ CallSlowPath SetLexicalBinding @24 ([[V16]]) [[[FS2]]]
Jump [[B6]]
frame states:
- [[FS0]]: pc 11 at {r5=[[V6]]}
- [[FS1]]: pc 20 after -> r7 {} frame [r7]
- [[FS2]]: pc 26 at {r7=[[V16]]}
+ [[FS0]]: pc 10 at {r5=[[V6]]}
+ [[FS1]]: pc 18 after -> r7 {} frame [r7]
+ [[FS2]]: pc 24 at {r7=[[V16]]}
",
);
// Inlined callees have constant ones: those of their function.
@@ -1992,7 +1992,7 @@ pub(crate) mod inlining {
[[B4]] <- [[B3]], [[B9]]:
[[V20]] = Phi ([[V14]], [[V17]])
PublishFrame
- [[V21]] = CallSlowPath Add @e1:20 ([[V11]], [[V20]]) [[[FS3]]]
+ [[V21]] = CallSlowPath Add @e1:18 ([[V11]], [[V20]]) [[[FS3]]]
BranchBindingMutable 2 ([[V10]]) -> [[B5]], [[B10]]
[[B5]] <- [[B4]]:
[[V25]] = LoadEnvironmentBinding 2 ([[V10]])
@@ -2007,21 +2007,21 @@ pub(crate) mod inlining {
Return ([[V34]])
[[B9]] <- [[B2]] cold:
PublishFrame
- [[V17]] = CallSlowPath GetGlobal @e1:11 [[[FS2]]]
+ [[V17]] = CallSlowPath GetGlobal @e1:10 [[[FS2]]]
Jump [[B4]]
[[B10]] <- [[B4]] cold:
Jump [[B12]]
[[B11]] <- [[B5]] cold:
Jump [[B12]]
[[B12]] <- [[B10]], [[B11]] cold:
- CallSlowPath SetLexicalBinding @e1:26 ([[V21]]) [[[FS4]]]
+ CallSlowPath SetLexicalBinding @e1:24 ([[V21]]) [[[FS4]]]
Jump [[B7]]
frame states:
[[FS0]]: pc 1 at {} frame [a0]
[[FS1]]: pc 1 after -> r5 {}
- [[FS2]]: e1 pc 11 at {r0=#empty, r2=#empty, r3=#empty, r4=#empty, r5=[[V11]]} in [[FS1]]
- [[FS3]]: e1 pc 20 after -> r7 {r0=#empty, r2=#empty, r3=#empty, r4=#empty, r7=#empty} in [[FS1]]
- [[FS4]]: e1 pc 26 at {r0=#empty, r2=#empty, r3=#empty, r4=#empty, r7=[[V21]]} in [[FS1]]
+ [[FS2]]: e1 pc 10 at {r0=#empty, r2=#empty, r3=#empty, r4=#empty, r5=[[V11]]} in [[FS1]]
+ [[FS3]]: e1 pc 18 after -> r7 {r0=#empty, r2=#empty, r3=#empty, r4=#empty, r7=#empty} in [[FS1]]
+ [[FS4]]: e1 pc 24 at {r0=#empty, r2=#empty, r3=#empty, r4=#empty, r7=[[V21]]} in [[FS1]]
",
);
}
diff --git a/Libraries/LibJS/JIT/Rust/src/bytecode/instruction.rs b/Libraries/LibJS/JIT/Rust/src/bytecode/instruction.rs
index 2e5558f72a3..b2de35c6a98 100644
--- a/Libraries/LibJS/JIT/Rust/src/bytecode/instruction.rs
+++ b/Libraries/LibJS/JIT/Rust/src/bytecode/instruction.rs
@@ -231,14 +231,36 @@ fn narrow_index(index: u32) -> u16 {
u16::try_from(index).expect("bytecode indices fit in 16 bits")
}
+/// See `WIDE_NAME_INDEX_MARK` of the bytecode generator.
+const WIDE_NAME_INDEX_MARK: u16 = 0xff00;
+const NO_NAME_INDEX: u16 = u16::MAX;
+
#[cfg(test)]
-fn name_index_bytes(index: u32) -> [u8; 3] {
- let [low, middle, high, _] = index.to_le_bytes();
- [low, middle, high]
+fn is_wide_name_index(index: u32) -> bool {
+ index != u32::MAX && index >= u32::from(WIDE_NAME_INDEX_MARK)
+}
+
+#[cfg(test)]
+fn name_index_field(index: u32, distance: usize) -> u16 {
+ if index == u32::MAX {
+ return NO_NAME_INDEX;
+ }
+ if !is_wide_name_index(index) {
+ return index as u16;
+ }
+ WIDE_NAME_INDEX_MARK + u16::try_from(distance).unwrap()
+}
+
+fn read_optional_name_index(bytes: &[u8], at: usize) -> Option<u32> {
+ match read_u16(bytes, at) {
+ NO_NAME_INDEX => None,
+ raw if raw >= WIDE_NAME_INDEX_MARK => Some(read_u32(bytes, at - usize::from(raw - WIDE_NAME_INDEX_MARK))),
+ raw => Some(u32::from(raw)),
+ }
}
-fn read_u24(bytes: &[u8], at: usize) -> u32 {
- u32::from_le_bytes([bytes[at], bytes[at + 1], bytes[at + 2], 0])
+fn read_name_index(bytes: &[u8], at: usize) -> u32 {
+ read_optional_name_index(bytes, at).expect("the field holds a name table index")
}
fn read_u16(bytes: &[u8], at: usize) -> u16 {
diff --git a/Libraries/LibJS/Rust/src/bytecode/codegen/stream.rs b/Libraries/LibJS/Rust/src/bytecode/codegen/stream.rs
index 498f58916e6..f810df2fd36 100644
--- a/Libraries/LibJS/Rust/src/bytecode/codegen/stream.rs
+++ b/Libraries/LibJS/Rust/src/bytecode/codegen/stream.rs
@@ -407,9 +407,16 @@ fn spilled_instructions(
let mut fields = Vec::new();
let mut next_noted = 0;
let mut at = 0;
+ let mut wide_name_indices_at = None;
while at < bytes.len() {
let opcode = bytes[at];
let length = instruction_length_from_bytes(opcode, bytes, at).expect("a valid instruction");
+ // NB: The moves go around the WideNameIndices of an instruction too, which has to stay right before it.
+ if opcode == OpCode::WideNameIndices as u8 {
+ wide_name_indices_at = Some(at);
+ at += length;
+ continue;
+ }
let first_field = fields.len();
visit_operands_from_bytes(opcode, bytes, at, &mut |field_at, reads, writes, optional| {
let field_at = u32_from_usize(field_at);
@@ -437,9 +444,10 @@ fn spilled_instructions(
index,
});
});
+ let start = wide_name_indices_at.take().unwrap_or(at);
instructions.push(SpilledInstruction {
- at: u32_from_usize(at),
- length: u32_from_usize(length),
+ at: u32_from_usize(start),
+ length: u32_from_usize(at + length - start),
fields: first_field..fields.len(),
});
at += length;
diff --git a/Libraries/LibJS/Rust/src/bytecode/dump.rs b/Libraries/LibJS/Rust/src/bytecode/dump.rs
index 3eef7aa34f7..06cc72f8b41 100644
--- a/Libraries/LibJS/Rust/src/bytecode/dump.rs
+++ b/Libraries/LibJS/Rust/src/bytecode/dump.rs
@@ -4,7 +4,6 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
-use super::encoding::PropertyKeyTableIndex;
use super::executable::{Executable, append_double_formatted_like_ak, append_value_formatted_like_ak};
use super::executable_data::ExceptionHandler;
use super::instruction::dump_instruction_from_bytes;
@@ -288,18 +287,12 @@ impl BytecodeDumper<'_> {
/// A PropertyKey is the text it was made from, since only canonical index strings become numbers.
pub fn append_property_key_quoted(&mut self, index: u32) {
- let key = self
- .executable
- .get_property_key(PropertyKeyTableIndex::from_index(index))
- .to_utf16_string();
+ let key = self.executable.property_key(index as usize).to_utf16_string();
self.append_quoted(Utf16View::of_string(&key));
}
pub fn append_property_key_plain(&mut self, index: u32) {
- let key = self
- .executable
- .get_property_key(PropertyKeyTableIndex::from_index(index))
- .to_utf16_string();
+ let key = self.executable.property_key(index as usize).to_utf16_string();
Utf16View::of_string(&key).append_as_wtf8_to(self.output);
}
diff --git a/Libraries/LibJS/Rust/src/bytecode/encoding.rs b/Libraries/LibJS/Rust/src/bytecode/encoding.rs
index 1aebaa04157..a3cde537588 100644
--- a/Libraries/LibJS/Rust/src/bytecode/encoding.rs
+++ b/Libraries/LibJS/Rust/src/bytecode/encoding.rs
@@ -73,27 +73,26 @@ impl BytecodeEnvironmentCoordinate {
}
}
+/// The name table index that the field `field` of an instruction in `bytecode` holds, if it holds one. An index too
+/// large for the field is in the WideNameIndices before the instruction, which only the bytecode can reach.
+fn name_index_in(field: &[u8; 2], bytecode: &[u8]) -> Option<usize> {
+ let at = field.as_ptr().addr().wrapping_sub(bytecode.as_ptr().addr());
+ assert!(at < bytecode.len(), "the name table index is a field of the bytecode");
+ super::operand::read_optional_name_index(bytecode, at).map(|index| index as usize)
+}
+
macro_rules! define_table_index {
($($name:ident),*) => {
$(
- #[derive(Clone, Copy, Debug, PartialEq, Eq)]
+ /// The field of an instruction that holds an index into a name table of its executable.
+ #[derive(Debug)]
#[repr(C, packed)]
- pub struct $name(pub [u8; 3]);
+ pub struct $name([u8; 2]);
impl $name {
- pub fn from_index(index: u32) -> Self {
- Self(super::operand::name_index_bytes(index))
- }
-
- pub fn index(self) -> usize {
- let [low, middle, high] = self.0;
- u32::from_le_bytes([low, middle, high, 0]) as usize
- }
- }
-
- impl From<[u8; 3]> for $name {
- fn from(bytes: [u8; 3]) -> Self {
- Self(bytes)
+ /// The index the field holds, which is a field of an instruction in `bytecode`.
+ pub fn index_in(&self, bytecode: &[u8]) -> usize {
+ name_index_in(&self.0, bytecode).expect("the field holds a name table index")
}
}
)*
@@ -102,13 +101,13 @@ macro_rules! define_table_index {
define_table_index!(IdentifierTableIndex, PropertyKeyTableIndex, StringTableIndex);
-/// A table index that may be absent, encoded with all bits set.
+/// The field of an instruction that holds an index into a name table of its executable, if it holds one.
#[repr(C, packed)]
-pub struct OptionalIndex<T>(pub [u8; 3], PhantomData<T>);
+pub struct OptionalIndex<T>([u8; 2], PhantomData<T>);
-impl<T: From<[u8; 3]>> OptionalIndex<T> {
- pub fn get(&self) -> Option<T> {
- let raw = self.0;
- (raw != [u8::MAX; 3]).then(|| T::from(raw))
+impl<T> OptionalIndex<T> {
+ /// The index the field holds, which is a field of an instruction in `bytecode`.
+ pub fn index_in(&self, bytecode: &[u8]) -> Option<usize> {
+ name_index_in(&self.0, bytecode)
}
}
diff --git a/Libraries/LibJS/Rust/src/bytecode/executable.rs b/Libraries/LibJS/Rust/src/bytecode/executable.rs
index c936d89c5a2..1d30d2d0958 100644
--- a/Libraries/LibJS/Rust/src/bytecode/executable.rs
+++ b/Libraries/LibJS/Rust/src/bytecode/executable.rs
@@ -1353,16 +1353,27 @@ impl Executable {
&self.object_property_iterator_caches()[index as usize]
}
- pub fn get_identifier(&self, index: IdentifierTableIndex) -> &Utf16FlyString {
- &self.code.identifier_table[index.index()]
+ /// The identifier that `index`, a field of an instruction of this executable, refers to.
+ pub fn get_identifier(&self, index: &IdentifierTableIndex) -> &Utf16FlyString {
+ self.identifier(index.index_in(self.bytecode()))
}
- pub fn get_property_key(&self, index: PropertyKeyTableIndex) -> &PropertyKey {
- &self.property_keys[index.index()]
+ pub fn identifier(&self, index: usize) -> &Utf16FlyString {
+ &self.code.identifier_table[index]
}
- pub fn get_string(&self, index: StringTableIndex) -> &Utf16FlyString {
- &self.code.string_table[index.index()]
+ /// The property key that `index`, a field of an instruction of this executable, refers to.
+ pub fn get_property_key(&self, index: &PropertyKeyTableIndex) -> &PropertyKey {
+ self.property_key(index.index_in(self.bytecode()))
+ }
+
+ pub fn property_key(&self, index: usize) -> &PropertyKey {
+ &self.property_keys[index]
+ }
+
+ /// The string that `index`, a field of an instruction of this executable, refers to.
+ pub fn get_string(&self, index: &StringTableIndex) -> &Utf16FlyString {
+ &self.code.string_table[index.index_in(self.bytecode())]
}
/// Forgets the cells the inline caches remember that died in this collection.
@@ -1760,9 +1771,9 @@ impl Executable {
ranges.get(index).is_some_and(|range| range.start_offset <= pc)
}
- pub fn length_identifier(&self) -> Option<PropertyKeyTableIndex> {
- self.length_identifier
- .map(|index| PropertyKeyTableIndex::from_index(index.get() - 1))
+ /// The index of the length in the property key table, if it is there.
+ pub fn length_identifier(&self) -> Option<usize> {
+ self.length_identifier.map(|index| index.get() as usize - 1)
}
fn rare_data_mut(&mut self) -> &mut ExecutableRareData {
diff --git a/Libraries/LibJS/Rust/src/bytecode/operand.rs b/Libraries/LibJS/Rust/src/bytecode/operand.rs
index 1e9dffe0484..33538748f15 100644
--- a/Libraries/LibJS/Rust/src/bytecode/operand.rs
+++ b/Libraries/LibJS/Rust/src/bytecode/operand.rs
@@ -23,20 +23,50 @@ pub fn narrow_index(index: u32) -> u16 {
u16::try_from(index).expect("cache indices fit in 16 bits")
}
-/// The name table index an instruction holds. `u32::MAX` means none, which stays all bits set.
+/// The first value of a name table index field that is not an index itself. From there up to `NO_NAME_INDEX`, the field
+/// holds how many bytes back from it the index is, in the WideNameIndices right before the instruction.
+pub const WIDE_NAME_INDEX_MARK: u16 = 0xff00;
+
+/// What an optional name table index field holds if it holds none.
+pub const NO_NAME_INDEX: u16 = u16::MAX;
+
+/// Whether a name table index is too large for its field, so that the instruction needs a WideNameIndices. `u32::MAX`
+/// means none.
+#[inline]
+pub fn is_wide_name_index(index: u32) -> bool {
+ index != u32::MAX && index >= u32::from(WIDE_NAME_INDEX_MARK)
+}
+
+/// The field of a name table index, whose slot of the WideNameIndices is `distance` bytes back from the field if the
+/// index is too large for it. `u32::MAX` means none.
+#[inline]
+pub fn name_index_field(index: u32, distance: usize) -> u16 {
+ if index == u32::MAX {
+ return NO_NAME_INDEX;
+ }
+ if !is_wide_name_index(index) {
+ return index as u16;
+ }
+ let distance = u16::try_from(distance)
+ .ok()
+ .filter(|&distance| distance < NO_NAME_INDEX - WIDE_NAME_INDEX_MARK)
+ .expect("a WideNameIndices is right before its instruction");
+ WIDE_NAME_INDEX_MARK + distance
+}
+
+/// The name table index of the field at `at`, if it holds one.
#[inline]
-pub fn name_index_bytes(index: u32) -> [u8; 3] {
- let [low, middle, high, top] = index.to_le_bytes();
- assert!(
- index == u32::MAX || (top == 0 && index != 0xff_ffff),
- "name table indices fit in 24 bits"
- );
- [low, middle, high]
+pub fn read_optional_name_index(bytes: &[u8], at: usize) -> Option<u32> {
+ match read_u16(bytes, at) {
+ NO_NAME_INDEX => None,
+ raw if raw >= WIDE_NAME_INDEX_MARK => Some(read_u32(bytes, at - usize::from(raw - WIDE_NAME_INDEX_MARK))),
+ raw => Some(u32::from(raw)),
+ }
}
#[inline]
-pub fn read_u24(bytes: &[u8], at: usize) -> u32 {
- u32::from_le_bytes([bytes[at], bytes[at + 1], bytes[at + 2], 0])
+pub fn read_name_index(bytes: &[u8], at: usize) -> u32 {
+ read_optional_name_index(bytes, at).expect("the field holds a name table index")
}
#[inline]
diff --git a/Libraries/LibJS/Rust/src/interpreter/slow_paths/bindings.rs b/Libraries/LibJS/Rust/src/interpreter/slow_paths/bindings.rs
index 044a7adf95f..b009d46f079 100644
--- a/Libraries/LibJS/Rust/src/interpreter/slow_paths/bindings.rs
+++ b/Libraries/LibJS/Rust/src/interpreter/slow_paths/bindings.rs
@@ -248,8 +248,8 @@ fn current_executable(vm: &Vm) -> Gc<Executable> {
}
/// VM::get_identifier(), copied out of the executable's identifier table.
-fn get_identifier(vm: &Vm, index: IdentifierTableIndex) -> Utf16FlyString {
- current_executable(vm).identifier_table()[index.index()].clone()
+fn get_identifier(vm: &Vm, index: &IdentifierTableIndex) -> Utf16FlyString {
+ current_executable(vm).get_identifier(index).clone()
}
fn environment_mode_of(raw_mode: u8) -> EnvironmentMode {
@@ -371,7 +371,7 @@ fn asm_dynamic_get_binding(
vm: &Vm,
pc: u32,
dst: &mut Value,
- identifier_index: IdentifierTableIndex,
+ identifier_index: &IdentifierTableIndex,
strict: Strict,
cache: &EnvironmentCoordinateCacheSlot,
binding_is_known_to_be_initialized: AsmBindingIsKnownToBeInitialized,
@@ -413,7 +413,7 @@ fn asm_dynamic_get_callee_and_this_from_environment(
pc: u32,
callee_dst: &mut Value,
this_value_dst: &mut Value,
- identifier_index: IdentifierTableIndex,
+ identifier_index: &IdentifierTableIndex,
strict: Strict,
cache: &EnvironmentCoordinateCacheSlot,
) -> SlowPathControl {
@@ -507,14 +507,14 @@ fn is_global_environment_at_hops(
fn cached_dynamic_global_variable_value(
vm: &Vm,
current_environment: Gc<Environment>,
- identifier_index: IdentifierTableIndex,
+ identifier_index: &IdentifierTableIndex,
strict: Strict,
cache: &EnvironmentCoordinateCacheSlot,
) -> ThrowCompletionOr<Option<Value>> {
let Some(hops) = global_environment_hops(cache.get().get()) else {
return Ok(None);
};
- let identifier = &cache.executable.identifier_table()[identifier_index.index()];
+ let identifier = cache.executable.get_identifier(identifier_index);
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, cache.index, strict)? {
@@ -607,7 +607,7 @@ fn asm_dynamic_initialize_or_set_binding(
pc: u32,
environment_mode: EnvironmentMode,
initialization_mode: BindingInitializationMode,
- identifier_index: IdentifierTableIndex,
+ identifier_index: &IdentifierTableIndex,
strict: Strict,
value: Value,
cache: &EnvironmentCoordinateCacheSlot,
@@ -738,7 +738,7 @@ pub fn dynamic_get_binding(
vm,
pc,
&mut values.dst,
- instruction.identifier,
+ &instruction.identifier,
strict_at(vm, pc),
&cache,
AsmBindingIsKnownToBeInitialized::No,
@@ -757,7 +757,7 @@ pub fn dynamic_get_initialized_binding(
vm,
pc,
&mut values.dst,
- instruction.identifier,
+ &instruction.identifier,
strict_at(vm, pc),
&cache,
AsmBindingIsKnownToBeInitialized::Yes,
@@ -802,7 +802,7 @@ pub fn dynamic_get_callee_and_this(
pc,
&mut values.callee,
&mut values.this_value,
- instruction.identifier,
+ &instruction.identifier,
strict_at(vm, pc),
&cache,
);
@@ -826,7 +826,7 @@ pub fn get_import(vm: &Vm, pc: u32, instruction: &op::GetImport, values: &mut op
let module = module
.downcast::<SourceTextModule>()
.expect("GetImport only runs in the code of a Source Text Module Record");
- let identifier = get_identifier(vm, instruction.identifier);
+ let identifier = get_identifier(vm, &instruction.identifier);
values.dst = asm_try!(
vm,
pc,
@@ -852,7 +852,7 @@ pub fn get_global(vm: &Vm, pc: u32, instruction: &op::GetGlobal, values: &mut op
pc,
global_variable_value(
vm,
- instruction.identifier,
+ &instruction.identifier,
current_executable(vm).global_variable_cache(instruction.cache.into()),
instruction.cache.into(),
strict
@@ -867,7 +867,7 @@ pub fn get_global(vm: &Vm, pc: u32, instruction: &op::GetGlobal, values: &mut op
pc,
ErrorKind::ReferenceError,
ErrorType::UnknownIdentifier,
- &[&get_identifier(vm, instruction.identifier)],
+ &[&get_identifier(vm, &instruction.identifier)],
),
}
}
@@ -885,7 +885,7 @@ pub fn typeof_global(
pc,
global_variable_value(
vm,
- instruction.identifier,
+ &instruction.identifier,
current_executable(vm).global_variable_cache(instruction.cache.into()),
instruction.cache.into(),
strict
@@ -900,7 +900,7 @@ pub fn typeof_global(
/// such variable.
fn global_variable_value(
vm: &Vm,
- identifier: IdentifierTableIndex,
+ identifier: &IdentifierTableIndex,
cache: &GlobalVariableCache,
cache_index: u32,
strict: Strict,
@@ -1017,7 +1017,7 @@ pub fn set_global(vm: &Vm, pc: u32, instruction: &op::SetGlobal, values: &mut op
.environment_serial_number
.set(declarative_record.environment_serial_number());
- let identifier = get_identifier(vm, instruction.identifier);
+ let identifier = get_identifier(vm, &instruction.identifier);
let mut offset = None;
if asm_try!(vm, pc, declarative_record.has_binding(&identifier, Some(&mut offset))) {
@@ -1112,7 +1112,7 @@ pub fn dynamic_initialize_lexical_binding(
pc,
EnvironmentMode::Lexical,
BindingInitializationMode::Initialize,
- instruction.identifier,
+ &instruction.identifier,
strict_at(vm, pc),
values.src,
&EnvironmentCoordinateCacheSlot::of_running_executable(vm, instruction.cache.into()),
@@ -1131,7 +1131,7 @@ pub fn dynamic_initialize_variable_binding(
pc,
EnvironmentMode::Var,
BindingInitializationMode::Initialize,
- instruction.identifier,
+ &instruction.identifier,
strict_at(vm, pc),
values.src,
&EnvironmentCoordinateCacheSlot::of_running_executable(vm, instruction.cache.into()),
@@ -1168,7 +1168,7 @@ pub fn dynamic_set_lexical_binding(
pc,
EnvironmentMode::Lexical,
BindingInitializationMode::Set,
- instruction.identifier,
+ &instruction.identifier,
strict_at(vm, pc),
values.src,
&EnvironmentCoordinateCacheSlot::of_running_executable(vm, instruction.cache.into()),
@@ -1205,7 +1205,7 @@ pub fn dynamic_set_variable_binding(
pc,
EnvironmentMode::Var,
BindingInitializationMode::Set,
- instruction.identifier,
+ &instruction.identifier,
strict_at(vm, pc),
values.src,
&EnvironmentCoordinateCacheSlot::of_running_executable(vm, instruction.cache.into()),
@@ -1223,7 +1223,7 @@ pub fn set_variable_binding_of_block_function(
values: &mut op::SetVariableBindingOfBlockFunctionValues,
) -> SlowPathControl {
let next = pc + op::SetVariableBindingOfBlockFunction::LENGTH;
- let name = get_identifier(vm, instruction.identifier);
+ let name = get_identifier(vm, &instruction.identifier);
let context = running_execution_context(vm);
let variable_environment = context
.variable_environment
@@ -1276,7 +1276,7 @@ pub fn resolve_binding(
instruction: &op::ResolveBinding,
values: &mut op::ResolveBindingValues,
) -> SlowPathControl {
- let identifier = get_identifier(vm, instruction.identifier);
+ let identifier = get_identifier(vm, &instruction.identifier);
let reference = asm_try!(vm, pc, vm.resolve_binding(&identifier, strict_at(vm, pc), None));
if reference.is_unresolvable() {
values.dst = Value::NULL;
@@ -1296,7 +1296,7 @@ pub fn resolve_global_binding(
instruction: &op::ResolveGlobalBinding,
values: &mut op::ResolveGlobalBindingValues,
) -> SlowPathControl {
- let identifier = get_identifier(vm, instruction.identifier);
+ let identifier = get_identifier(vm, &instruction.identifier);
let reference = asm_try!(vm, pc, vm.resolve_binding(&identifier, strict_at(vm, pc), None));
let is_resolvable = !reference.is_unresolvable();
if is_resolvable {
@@ -1331,7 +1331,7 @@ pub fn get_resolved_binding(
instruction: &op::GetResolvedBinding,
values: &mut op::GetResolvedBindingValues,
) -> SlowPathControl {
- let identifier = get_identifier(vm, instruction.identifier);
+ let identifier = get_identifier(vm, &instruction.identifier);
let strict = strict_at(vm, pc);
let reference = if values.environment.is_null() {
Reference::with_base_type(BaseType::Unresolvable, PropertyKey::from(identifier), strict)
@@ -1348,7 +1348,7 @@ pub fn set_resolved_binding(
instruction: &op::SetResolvedBinding,
values: &mut op::SetResolvedBindingValues,
) -> SlowPathControl {
- let identifier = get_identifier(vm, instruction.identifier);
+ let identifier = get_identifier(vm, &instruction.identifier);
let strict = strict_at(vm, pc);
let environment = values.environment;
let reference = if environment.is_null() {
@@ -1401,7 +1401,7 @@ pub fn dynamic_typeof_binding(
let reference = asm_try!(
vm,
pc,
- vm.resolve_binding(&get_identifier(vm, instruction.identifier), strict_at(vm, pc), 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(
@@ -1441,7 +1441,7 @@ pub fn verify_environment_coordinate(
let coordinate = instruction.coordinate.get();
assert!(coordinate.is_valid());
- let name = get_identifier(vm, instruction.identifier);
+ let name = get_identifier(vm, &instruction.identifier);
let context = running_execution_context(vm);
let mut environment = match environment_mode_of(instruction.mode) {
EnvironmentMode::Lexical => context.lexical_environment.get(),
@@ -1483,7 +1483,7 @@ pub fn create_variable_slow_path(
instruction: &op::CreateVariable,
_values: &mut op::CreateVariableValues,
) -> SlowPathControl {
- let name = get_identifier(vm, instruction.identifier);
+ let name = get_identifier(vm, &instruction.identifier);
asm_try!(
vm,
pc,
@@ -1526,7 +1526,7 @@ pub fn create_immutable_binding(
pc,
environment.create_immutable_binding(
vm,
- &get_identifier(vm, instruction.identifier),
+ &get_identifier(vm, &instruction.identifier),
instruction.strict_binding
)
);
@@ -1545,7 +1545,7 @@ pub fn create_mutable_binding(
pc,
environment.create_mutable_binding(
vm,
- &get_identifier(vm, instruction.identifier),
+ &get_identifier(vm, &instruction.identifier),
instruction.can_be_deleted
)
);
@@ -1630,7 +1630,7 @@ pub fn delete_variable(
instruction: &op::DeleteVariable,
values: &mut op::DeleteVariableValues,
) -> SlowPathControl {
- let string = get_identifier(vm, instruction.identifier);
+ let string = get_identifier(vm, &instruction.identifier);
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);
diff --git a/Libraries/LibJS/Rust/src/interpreter/slow_paths/calls.rs b/Libraries/LibJS/Rust/src/interpreter/slow_paths/calls.rs
index f5a8792cd5a..835b3f6ef3e 100644
--- a/Libraries/LibJS/Rust/src/interpreter/slow_paths/calls.rs
+++ b/Libraries/LibJS/Rust/src/interpreter/slow_paths/calls.rs
@@ -212,9 +212,9 @@ pub fn new_class(
let mut binding_name = None;
let class_name;
if !blueprint.has_name
- && let Some(lhs_name) = instruction.lhs_name.get()
+ && let Some(lhs_name) = instruction.lhs_name.index_in(executable.bytecode())
{
- class_name = ClassElementName::PropertyKey(PropertyKey::from(executable.get_identifier(lhs_name).clone()));
+ class_name = ClassElementName::PropertyKey(PropertyKey::from(executable.identifier(lhs_name).clone()));
} else if !blueprint.has_name && instruction.computed_name.get().is_some() {
class_name = ClassElementName::PropertyKey(asm_try!(vm, pc, values.computed_name.to_property_key(vm)));
} else {
diff --git a/Libraries/LibJS/Rust/src/interpreter/slow_paths/control.rs b/Libraries/LibJS/Rust/src/interpreter/slow_paths/control.rs
index bf3101c9bbd..f18822e7e72 100644
--- a/Libraries/LibJS/Rust/src/interpreter/slow_paths/control.rs
+++ b/Libraries/LibJS/Rust/src/interpreter/slow_paths/control.rs
@@ -354,8 +354,8 @@ pub fn new_regexp(vm: &Vm, pc: u32, instruction: &op::NewRegExp, values: &mut op
let regexp_object = RegExpObject::create_with_pattern_and_flags(
vm,
realm,
- Utf16String::from(executable.get_string(instruction.source_index)),
- Utf16String::from(executable.get_string(instruction.flags_index)),
+ Utf16String::from(executable.get_string(&instruction.source_index)),
+ Utf16String::from(executable.get_string(&instruction.flags_index)),
);
regexp_object.set_realm(realm);
regexp_object.set_legacy_features_enabled(true);
@@ -374,7 +374,7 @@ pub fn new_reference_error(
values.dst = Value::from_object(create_reference_error(
vm,
realm,
- executable.get_string(instruction.error_string),
+ executable.get_string(&instruction.error_string),
));
SlowPathControl::continue_at(pc + op::NewReferenceError::LENGTH)
}
@@ -390,7 +390,7 @@ pub fn new_type_error(
values.dst = Value::from_object(create_type_error(
vm,
realm,
- executable.get_string(instruction.error_string),
+ executable.get_string(&instruction.error_string),
));
SlowPathControl::continue_at(pc + op::NewTypeError::LENGTH)
}
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 069ce136c0d..29d327d40d1 100644
--- a/Libraries/LibJS/Rust/src/interpreter/slow_paths/property_access.rs
+++ b/Libraries/LibJS/Rust/src/interpreter/slow_paths/property_access.rs
@@ -131,7 +131,7 @@ pub fn get_by_id(vm: &Vm, pc: u32, instruction: &op::GetById, values: &mut op::G
let base_value = values.base;
let executable = vm.current_executable();
let cache = executable.property_lookup_cache(instruction.cache as usize);
- let property_key = executable.get_property_key(instruction.property);
+ let property_key = executable.get_property_key(&instruction.property);
let value = asm_try!(
vm,
pc,
@@ -194,7 +194,7 @@ pub fn get_by_id_with_this(
let this_value = values.this_value;
let executable = vm.current_executable();
let cache = executable.property_lookup_cache(instruction.cache as usize);
- let property_key = executable.get_property_key(instruction.property);
+ let property_key = executable.get_property_key(&instruction.property);
let value = asm_try!(
vm,
pc,
@@ -216,7 +216,7 @@ pub fn put_by_id(vm: &Vm, pc: u32, instruction: &op::PutById, values: &mut op::P
let value = values.src;
let base = values.base;
let executable = vm.current_executable();
- let property_key = executable.get_property_key(instruction.property);
+ let property_key = executable.get_property_key(&instruction.property);
let cache = executable.property_lookup_cache(instruction.cache as usize);
asm_try!(
vm,
@@ -246,7 +246,7 @@ pub fn put_by_id_with_this(
let value = values.src;
let base = values.base;
let executable = vm.current_executable();
- let name = executable.get_property_key(instruction.property);
+ let name = executable.get_property_key(&instruction.property);
let cache = executable.property_lookup_cache(instruction.cache as usize);
asm_try!(
vm,
@@ -381,7 +381,7 @@ pub fn get_by_value_with_this(vm: &Vm, pc: u32, values: &mut op::GetByValueWithT
}
fn length_property_key(executable: &Executable) -> &PropertyKey {
- executable.get_property_key(
+ executable.property_key(
executable
.length_identifier()
.expect("an executable that reads a length has the length in its property key table"),
@@ -438,7 +438,7 @@ pub fn get_length_with_this(
pub fn get_method(vm: &Vm, pc: u32, instruction: &op::GetMethod, values: &mut op::GetMethodValues) -> SlowPathControl {
let executable = vm.current_executable();
- let property_key = executable.get_property_key(instruction.property);
+ let property_key = executable.get_property_key(&instruction.property);
let cache = executable.property_lookup_cache(instruction.cache as usize);
let method = asm_try!(vm, pc, values.object.get_method_with_cache(vm, property_key, cache));
values.dst = method.map_or(Value::UNDEFINED, Value::from_object);
@@ -660,7 +660,7 @@ pub fn delete_by_id(
instruction: &op::DeleteById,
values: &mut op::DeleteByIdValues,
) -> SlowPathControl {
- let property_key = vm.current_executable().get_property_key(instruction.property).clone();
+ let property_key = vm.current_executable().get_property_key(&instruction.property).clone();
let result = asm_try!(
vm,
pc,
@@ -798,7 +798,7 @@ pub fn init_object_literal_property(
return SlowPathControl::continue_at(pc + op::InitObjectLiteralProperty::LENGTH);
}
- let property_key = executable.get_property_key(instruction.property);
+ let property_key = executable.get_property_key(&instruction.property);
object.define_direct_property(
vm,
property_key,
@@ -832,13 +832,13 @@ pub fn has_private_id(
let private_environment = running_private_environment(vm);
let private_name =
- private_environment.resolve_private_identifier(vm.current_executable().get_identifier(instruction.property));
+ private_environment.resolve_private_identifier(vm.current_executable().get_identifier(&instruction.property));
values.dst = Value::from_bool(base.as_object().private_element_find(&private_name).is_some());
SlowPathControl::continue_at(pc + op::HasPrivateId::LENGTH)
}
pub fn add_private_name(vm: &Vm, pc: u32, instruction: &op::AddPrivateName) -> SlowPathControl {
- let name = vm.current_executable().get_identifier(instruction.name).clone();
+ let name = vm.current_executable().get_identifier(&instruction.name).clone();
running_private_environment(vm).add_private_name(vm, name);
SlowPathControl::continue_at(pc + op::AddPrivateName::LENGTH)
}
@@ -854,7 +854,7 @@ pub fn get_private_by_id(
if !base_value.is_object() {
asm_try!(vm, pc, base_value.to_object(vm));
- let private_name = make_private_reference(vm, vm.current_executable().get_identifier(instruction.property));
+ let private_name = make_private_reference(vm, vm.current_executable().get_identifier(&instruction.property));
let result = asm_try!(vm, pc, get_private_reference_value(vm, base_value, &private_name));
values.dst = result;
return SlowPathControl::continue_at(pc + op::GetPrivateById::LENGTH);
@@ -862,7 +862,7 @@ pub fn get_private_by_id(
let private_environment = running_private_environment(vm);
let private_name =
- private_environment.resolve_private_identifier(vm.current_executable().get_identifier(instruction.property));
+ private_environment.resolve_private_identifier(vm.current_executable().get_identifier(&instruction.property));
let result = asm_try!(vm, pc, base_value.as_object().private_get(vm, &private_name));
values.dst = result;
SlowPathControl::continue_at(pc + op::GetPrivateById::LENGTH)
@@ -880,7 +880,7 @@ pub fn put_private_by_id(
if !base_value.is_object() {
let object = asm_try!(vm, pc, base_value.to_object(vm));
- let private_name = make_private_reference(vm, vm.current_executable().get_identifier(instruction.property));
+ let private_name = make_private_reference(vm, vm.current_executable().get_identifier(&instruction.property));
asm_try!(
vm,
pc,
@@ -891,7 +891,7 @@ pub fn put_private_by_id(
let private_environment = running_private_environment(vm);
let private_name =
- private_environment.resolve_private_identifier(vm.current_executable().get_identifier(instruction.property));
+ private_environment.resolve_private_identifier(vm.current_executable().get_identifier(&instruction.property));
asm_try!(vm, pc, base_value.as_object().private_set(vm, &private_name, value));
SlowPathControl::continue_at(pc + op::PutPrivateById::LENGTH)
}
@@ -1459,7 +1459,7 @@ pub fn try_put_by_id_cache(vm: &Vm, instruction: &op::PutById, values: &op::PutB
}
let executable = vm.current_executable();
let cache = executable.property_lookup_cache(instruction.cache as usize);
- let property_key = executable.get_property_key(instruction.property);
+ let property_key = executable.get_property_key(&instruction.property);
try_put_by_property_lookup_cache(vm, base.as_object(), values.src, cache, 0, Some(property_key))
}
@@ -1477,7 +1477,7 @@ pub fn try_get_by_id_cache_on_primitive(vm: &Vm, instruction: &op::GetById, valu
return false;
}
let executable = vm.current_executable();
- let property_key = executable.get_property_key(instruction.property);
+ let property_key = executable.get_property_key(&instruction.property);
// NB: Strings have own properties for their indices and their length.
if base.is_string()
&& (property_key.is_number()
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 a0e26469d7b..b8cd4ccfd7f 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 @@
-$95c4aaaf annex-b-function-in-if.js:13:1
+$b4bb3049 annex-b-function-in-if.js:13:1
Registers: 9
Blocks: 1
Constants:
@@ -10,19 +10,19 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `console`
- [ d] GetById value_feedback:1, dst:reg7, base:reg6, `log`
- [ 17] GetGlobal value_feedback:2, dst:reg8, `annexBFunctionInIf`
- [ 20] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined, arguments:[Bool(true)]
- [ 2a] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 34] GetGlobal value_feedback:5, dst:reg6, `console`
- [ 3d] GetById value_feedback:6, dst:reg7, base:reg6, `log`
- [ 47] GetGlobal value_feedback:7, dst:reg8, `annexBFunctionInIf`
- [ 50] Call value_feedback:8, call_feedback:2, dst:reg8, callee:reg8, this_value:Undefined, arguments:[Bool(false)]
- [ 5a] Call value_feedback:9, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 64] End value:reg5
+ [ c] GetById value_feedback:1, dst:reg7, base:reg6, `log`
+ [ 15] GetGlobal value_feedback:2, dst:reg8, `annexBFunctionInIf`
+ [ 1d] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined, arguments:[Bool(true)]
+ [ 27] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 31] GetGlobal value_feedback:5, dst:reg6, `console`
+ [ 39] GetById value_feedback:6, dst:reg7, base:reg6, `log`
+ [ 42] GetGlobal value_feedback:7, dst:reg8, `annexBFunctionInIf`
+ [ 4a] Call value_feedback:8, call_feedback:2, dst:reg8, callee:reg8, this_value:Undefined, arguments:[Bool(false)]
+ [ 54] Call value_feedback:9, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 5e] End value:reg5
-annexBFunctionInIf$62b19c69 annex-b-function-in-if.js:2:10
+annexBFunctionInIf$bf952d37 annex-b-function-in-if.js:2:10
Registers: 6
Blocks: 4
Locals: inner~0, inner~1, inner~2
@@ -36,16 +36,16 @@ block0:
block1:
[ a] NewFunction dst:inner~1, shared_function_data_index:0
- [ 12] Mov dst:inner~0, src:inner~1
- [ 15] Jump target:block3
+ [ 11] Mov dst:inner~0, src:inner~1
+ [ 14] Jump target:block3
block2:
- [ 1a] NewFunction dst:inner~2, shared_function_data_index:1
- [ 22] Mov dst:inner~0, src:inner~2
+ [ 19] NewFunction dst:inner~2, shared_function_data_index:1
+ [ 20] Mov dst:inner~0, src:inner~2
block3:
- [ 25] Call value_feedback:0, call_feedback:0, dst:reg5, callee:inner~0, this_value:Undefined
- [ 2e] Return value:reg5
+ [ 23] Call value_feedback:0, call_feedback:0, dst:reg5, callee:inner~0, this_value:Undefined
+ [ 2c] Return value:reg5
inner$e42ab1c1 annex-b-function-in-if.js:4:13
diff --git a/Tests/LibJS/Bytecode/expected/annexb-function-existing-var.txt b/Tests/LibJS/Bytecode/expected/annexb-function-existing-var.txt
index 9d0d2d275aa..5ade4e33983 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 @@
-$44317be6 annexb-function-existing-var.js:10:1
+$34b63919 annexb-function-existing-var.js:10:1
Registers: 7
Blocks: 1
Constants:
@@ -8,11 +8,11 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `test`
- [ d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 16] End value:reg5
+ [ c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 15] End value:reg5
-test$489b40a4 annexb-function-existing-var.js:2:9
+test$f86f0193 annexb-function-existing-var.js:2:9
Registers: 5
Blocks: 1
Locals: f~0, f~1
@@ -25,5 +25,5 @@ block0:
[ 1] Mov dst:f~0, src:Undefined
[ 4] Mov dst:f~0, src:Int32(123)
[ 7] NewFunction dst:f~1, shared_function_data_index:0
- [ f] Mov dst:f~0, src:f~1
- [ 12] Return value:f~0
+ [ e] Mov dst:f~0, src:f~1
+ [ 11] 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 41aedda229d..8f2947ec4fe 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 @@
-$4ee6dac0 annexb-var-coordinate-with-default-param.js:12:1
+$017e8cbf annexb-var-coordinate-with-default-param.js:12:1
Registers: 7
Blocks: 1
Constants:
@@ -8,11 +8,11 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `f`
- [ d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 16] End value:reg5
+ [ c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 15] End value:reg5
-f$8e074504 annexb-var-coordinate-with-default-param.js:3:12
+f$02b1ebcf annexb-var-coordinate-with-default-param.js:3:12
Registers: 7
Blocks: 3
Locals: g~0, g~1
@@ -24,32 +24,32 @@ f$8e074504 annexb-var-coordinate-with-default-param.js:3:12
block0:
[ 0] Enter
[ 1] CreateVariable `x`, is_immutable:false, is_global:false, is_strict:false
- [ 9] GetLexicalEnvironment dst:reg4
- [ b] JumpUndefined condition:arg0, true_target:block1, false_target:block2
+ [ 8] GetLexicalEnvironment dst:reg4
+ [ a] JumpUndefined condition:arg0, true_target:block1, false_target:block2
block1:
- [ 15] Mov dst:arg0, src:Int32(1)
+ [ 14] Mov dst:arg0, src:Int32(1)
block2:
- [ 18] InitializeLexicalBinding `x`, src:arg0
- [ 20] CreateVariableEnvironment capacity:1
- [ 25] GetLexicalEnvironment dst:reg5
- [ 27] Mov dst:g~0, src:Undefined
- [ 2a] CreateVariable `y`, is_immutable:false, is_global:false, is_strict:false
- [ 32] InitializeLexicalBinding `y`, src:Int32(2)
- [ 3a] NewFunction dst:g~1, shared_function_data_index:0
- [ 42] Mov dst:g~0, src:g~1
- [ 45] Call value_feedback:0, call_feedback:0, dst:reg6, callee:g~0, this_value:Undefined
- [ 4e] Return value:reg6
-
-
-g$427b82a5 annexb-var-coordinate-with-default-param.js:7:13
+ [ 17] InitializeLexicalBinding `x`, src:arg0
+ [ 1e] CreateVariableEnvironment capacity:1
+ [ 23] GetLexicalEnvironment dst:reg5
+ [ 25] Mov dst:g~0, src:Undefined
+ [ 28] CreateVariable `y`, is_immutable:false, is_global:false, is_strict:false
+ [ 2f] InitializeLexicalBinding `y`, src:Int32(2)
+ [ 36] NewFunction dst:g~1, shared_function_data_index:0
+ [ 3d] Mov dst:g~0, src:g~1
+ [ 40] Call value_feedback:0, call_feedback:0, dst:reg6, callee:g~0, this_value:Undefined
+ [ 49] Return value:reg6
+
+
+g$a2230483 annexb-var-coordinate-with-default-param.js:7:13
Registers: 7
Blocks: 1
block0:
[ 0] Enter
[ 1] GetBinding value_feedback:0, dst:reg5, `x`
- [ b] GetBinding value_feedback:1, dst:reg6, `y`
- [ 15] Add arith_feedback:0, dst:reg5, lhs:reg5, rhs:reg6
- [ 1b] Return value:reg5
+ [ a] GetBinding value_feedback:1, dst:reg6, `y`
+ [ 13] Add arith_feedback:0, dst:reg5, lhs:reg5, rhs:reg6
+ [ 19] 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 193ac4b955e..657da8888f7 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 @@
-$4c515948 argument-postfix-self-move.js:5:1
+$9c7d9859 argument-postfix-self-move.js:5:1
Registers: 7
Blocks: 1
Constants:
@@ -9,8 +9,8 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `f`
- [ d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(10)]
- [ 17] End value:reg5
+ [ c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(10)]
+ [ 16] End value:reg5
f$cddfdfd8 argument-postfix-self-move.js:2:6
diff --git a/Tests/LibJS/Bytecode/expected/argument-variables.txt b/Tests/LibJS/Bytecode/expected/argument-variables.txt
index 5d733a85647..9c995c7c4ec 100644
--- a/Tests/LibJS/Bytecode/expected/argument-variables.txt
+++ b/Tests/LibJS/Bytecode/expected/argument-variables.txt
@@ -1,4 +1,4 @@
-$e80fe945 argument-variables.js:12:1
+$47b76b23 argument-variables.js:12:1
Registers: 7
Blocks: 1
Constants:
@@ -10,10 +10,10 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `identity`
- [ d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(1)]
- [ 17] GetGlobal value_feedback:2, dst:reg6, `swap`
- [ 20] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(1), Int32(2)]
- [ 2b] End value:reg5
+ [ c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(1)]
+ [ 16] GetGlobal value_feedback:2, dst:reg6, `swap`
+ [ 1e] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(1), Int32(2)]
+ [ 29] End value:reg5
identity$0358e060 argument-variables.js:5:5
diff --git a/Tests/LibJS/Bytecode/expected/arguments-with-arguments-fn.txt b/Tests/LibJS/Bytecode/expected/arguments-with-arguments-fn.txt
index 6073d491c40..063aecb4ffc 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 @@
-$b5474a48 arguments-with-arguments-fn.js:4:1
+$651b0b37 arguments-with-arguments-fn.js:4:1
Registers: 7
Blocks: 1
Constants:
@@ -8,11 +8,11 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `f`
- [ d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 16] End value:reg5
+ [ c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 15] End value:reg5
-f$5b461a9d arguments-with-arguments-fn.js:1:12
+f$0b19db8c arguments-with-arguments-fn.js:1:12
Registers: 5
Blocks: 3
Locals: arguments~0
@@ -30,4 +30,4 @@ block1:
block2:
[ e] Mov dst:arguments~0, src:Undefined
[ 11] NewFunction dst:arguments~0, shared_function_data_index:0
- [ 19] End value:Undefined
+ [ 18] 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 7321e059760..9fde638f05e 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 @@
-$db3b8ae6 assign-to-argument-no-tdz.js:11:1
+$2b67c9f7 assign-to-argument-no-tdz.js:11:1
Registers: 7
Blocks: 1
Constants:
@@ -9,8 +9,8 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `f`
- [ d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(0)]
- [ 17] End value:reg5
+ [ c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(0)]
+ [ 16] End value:reg5
f$a620febd assign-to-argument-no-tdz.js:6:9
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 a79df3856ad..6f393dcdecf 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 @@
-$47b76b23 assign-to-let-variable-tdz.js:12:1
+$a75eed01 assign-to-let-variable-tdz.js:12:1
Registers: 8
Blocks: 1
Constants:
@@ -9,14 +9,14 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `f`
- [ d] NewObject dst:reg7
- [ 11] InitObjectLiteralProperty object:reg7, `location`, src:String("hello"), shape_cache_index:0, property_slot:0
- [ 1b] CacheObjectShape object:reg7
- [ 1f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
- [ 29] End value:reg5
+ [ c] NewObject dst:reg7
+ [ 10] InitObjectLiteralProperty object:reg7, `location`, src:String("hello"), shape_cache_index:0, property_slot:0
+ [ 19] CacheObjectShape object:reg7
+ [ 1d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
+ [ 27] End value:reg5
-f$4d812643 assign-to-let-variable-tdz.js:7:5
+f$ad28a821 assign-to-let-variable-tdz.js:7:5
Registers: 7
Blocks: 3
Locals: a~0
@@ -31,17 +31,17 @@ block0:
[ 4] ThrowIfNullish src:arg0
[ 6] Mov dst:reg5, src:arg0
[ 9] GetById value_feedback:0, dst:a~0, base:reg5, `location`
- [ 13] Typeof dst:reg5, src:a~0
- [ 16] LooselyEquals arith_feedback:0, dst:reg5, lhs:String("string"), rhs:reg5
- [ 1c] JumpFalse condition:reg5, target:block2
+ [ 12] Typeof dst:reg5, src:a~0
+ [ 15] LooselyEquals arith_feedback:0, dst:reg5, lhs:String("string"), rhs:reg5
+ [ 1b] JumpFalse condition:reg5, target:block2
block1:
- [ 22] GetGlobal value_feedback:1, dst:reg6, `g`
- [ 2b] Call value_feedback:2, call_feedback:0, dst:a~0, callee:reg6, this_value:Undefined, arguments:[a~0]
- [ 35] Mov dst:reg5, src:a~0
+ [ 21] GetGlobal value_feedback:1, dst:reg6, `g`
+ [ 29] Call value_feedback:2, call_feedback:0, dst:a~0, callee:reg6, this_value:Undefined, arguments:[a~0]
+ [ 33] Mov dst:reg5, src:a~0
block2:
- [ 38] Return value:a~0
+ [ 36] Return value:a~0
g$826b5174 assign-to-let-variable-tdz.js:4:17
diff --git a/Tests/LibJS/Bytecode/expected/assign-to-parameter.txt b/Tests/LibJS/Bytecode/expected/assign-to-parameter.txt
index b09bb84fe69..4bd29005e49 100644
--- a/Tests/LibJS/Bytecode/expected/assign-to-parameter.txt
+++ b/Tests/LibJS/Bytecode/expected/assign-to-parameter.txt
@@ -1,4 +1,4 @@
-$9d189b84 assign-to-parameter.js:8:1
+$ce4e54fb assign-to-parameter.js:8:1
Registers: 7
Blocks: 1
Constants:
@@ -8,8 +8,8 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `isect`
- [ d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 16] End value:reg5
+ [ c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 15] End value:reg5
isect$a6f8374f assign-to-parameter.js:5:9
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 0bec156b72a..2cd922f8893 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 @@
-$f371ae40 async-await-in-try-catch.js:9:1
+$439ded51 async-await-in-try-catch.js:9:1
Registers: 8
Blocks: 1
Constants:
@@ -8,9 +8,9 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `f`
- [ d] NewObject dst:reg7
- [ 11] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
- [ 1b] End value:reg5
+ [ c] NewObject dst:reg7
+ [ 10] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
+ [ 1a] End value:reg5
f$801a8a71 async-await-in-try-catch.js:2:5
diff --git a/Tests/LibJS/Bytecode/expected/async-await.txt b/Tests/LibJS/Bytecode/expected/async-await.txt
index 6a369eb5f09..2fbc6669312 100644
--- a/Tests/LibJS/Bytecode/expected/async-await.txt
+++ b/Tests/LibJS/Bytecode/expected/async-await.txt
@@ -1,4 +1,4 @@
-$844ee995 async-await.js:9:1
+$152c24ea async-await.js:9:1
Registers: 7
Blocks: 1
Constants:
@@ -8,11 +8,11 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `f`
- [ d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 16] End value:reg5
+ [ c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 15] End value:reg5
-f$ab811aa4 async-await.js:7:5
+f$0b289c82 async-await.js:7:5
Registers: 10
Blocks: 4
Constants:
@@ -21,20 +21,20 @@ f$ab811aa4 async-await.js:7:5
block0:
[ 0] Enter
[ 1] GetGlobal value_feedback:0, dst:reg5, `Promise`
- [ a] GetById value_feedback:1, dst:reg6, base:reg5, `resolve`
- [ 14] Call value_feedback:2, call_feedback:0, dst:reg5, callee:reg6, this_value:reg5, arguments:[Int32(42)]
- [ 1e] Mov dst:reg6, src:reg0
- [ 21] Await continuation_label:block1, argument:reg5
+ [ 9] GetById value_feedback:1, dst:reg6, base:reg5, `resolve`
+ [ 12] Call value_feedback:2, call_feedback:0, dst:reg5, callee:reg6, this_value:reg5, arguments:[Int32(42)]
+ [ 1c] Mov dst:reg6, src:reg0
+ [ 1f] Await continuation_label:block1, argument:reg5
block1:
- [ 27] Mov dst:reg6, src:reg0
- [ 2a] GetCompletionFields type_dst:reg7, value_dst:reg8, completion:reg6
- [ 2e] StrictlyEqualsRhsInt32 arith_feedback:0, dst:reg9, lhs:reg7, rhs:1
- [ 37] JumpIf condition:reg9, true_target:block3, false_target:block2
+ [ 25] Mov dst:reg6, src:reg0
+ [ 28] GetCompletionFields type_dst:reg7, value_dst:reg8, completion:reg6
+ [ 2c] StrictlyEqualsRhsInt32 arith_feedback:0, dst:reg9, lhs:reg7, rhs:1
+ [ 35] JumpIf condition:reg9, true_target:block3, false_target:block2
block2:
- [ 41] Throw src:reg8
+ [ 3f] Throw src:reg8
block3:
- [ 43] Mov dst:reg5, src:reg8
- [ 46] Yield value:reg5
+ [ 41] Mov dst:reg5, src:reg8
+ [ 44] 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 c48559ed196..ed678abfd17 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 @@
-$ac8c69bb async-generator-yield-await.js:6:1
+$5c602aaa async-generator-yield-await.js:6:1
Registers: 7
Blocks: 1
Constants:
@@ -9,8 +9,8 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `f`
- [ d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(1)]
- [ 17] End value:reg5
+ [ c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(1)]
+ [ 16] End value:reg5
f$f97cf73a async-generator-yield-await.js:4:5
diff --git a/Tests/LibJS/Bytecode/expected/async-generator-yield.txt b/Tests/LibJS/Bytecode/expected/async-generator-yield.txt
index 6c21c23b12d..1fd6668098d 100644
--- a/Tests/LibJS/Bytecode/expected/async-generator-yield.txt
+++ b/Tests/LibJS/Bytecode/expected/async-generator-yield.txt
@@ -1,4 +1,4 @@
-$f36a39aa async-generator-yield.js:7:1
+$439678bb async-generator-yield.js:7:1
Registers: 7
Blocks: 1
Constants:
@@ -9,8 +9,8 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `f`
- [ d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(1)]
- [ 17] End value:reg5
+ [ c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(1)]
+ [ 16] End value:reg5
f$62153dd3 async-generator-yield.js:5:5
diff --git a/Tests/LibJS/Bytecode/expected/async-return-bare.txt b/Tests/LibJS/Bytecode/expected/async-return-bare.txt
index e3f0a04addd..5b1653aece1 100644
--- a/Tests/LibJS/Bytecode/expected/async-return-bare.txt
+++ b/Tests/LibJS/Bytecode/expected/async-return-bare.txt
@@ -1,4 +1,4 @@
-$b5474a48 async-return-bare.js:4:1
+$651b0b37 async-return-bare.js:4:1
Registers: 7
Blocks: 1
Constants:
@@ -8,8 +8,8 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `f`
- [ d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 16] End value:reg5
+ [ c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 15] End value:reg5
f$658f8364 async-return-bare.js:2:5
diff --git a/Tests/LibJS/Bytecode/expected/baseline.txt b/Tests/LibJS/Bytecode/expected/baseline.txt
index ec9e34e37ac..aae26dfbbf3 100644
--- a/Tests/LibJS/Bytecode/expected/baseline.txt
+++ b/Tests/LibJS/Bytecode/expected/baseline.txt
@@ -1,4 +1,4 @@
-$b180bd46 baseline.js:5:1
+$61547e35 baseline.js:5:1
Registers: 9
Blocks: 1
Constants:
@@ -10,11 +10,11 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `console`
- [ d] GetById value_feedback:1, dst:reg7, base:reg6, `log`
- [ 17] GetGlobal value_feedback:2, dst:reg8, `add`
- [ 20] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined, arguments:[Int32(1), Int32(2)]
- [ 2b] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 35] End value:reg5
+ [ c] GetById value_feedback:1, dst:reg7, base:reg6, `log`
+ [ 15] GetGlobal value_feedback:2, dst:reg8, `add`
+ [ 1d] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined, arguments:[Int32(1), Int32(2)]
+ [ 28] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 32] End value:reg5
add$51ccd01a baseline.js:2:5
diff --git a/Tests/LibJS/Bytecode/expected/bigint-constant-folding.txt b/Tests/LibJS/Bytecode/expected/bigint-constant-folding.txt
index 2c70c8a3428..ddae1457582 100644
--- a/Tests/LibJS/Bytecode/expected/bigint-constant-folding.txt
+++ b/Tests/LibJS/Bytecode/expected/bigint-constant-folding.txt
@@ -1,4 +1,4 @@
-$f2205694 bigint-constant-folding.js:1:5
+$bb62bafd bigint-constant-folding.js:1:5
Registers: 6
Blocks: 1
Constants:
@@ -16,12 +16,12 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] SetGlobal `a`, src:BigInt(3n)
- [ b] SetGlobal `b`, src:BigInt(7n)
- [ 12] SetGlobal `c`, src:BigInt(6n)
- [ 19] SetGlobal `d`, src:BigInt(3n)
- [ 20] SetGlobal `e`, src:BigInt(1n)
- [ 27] SetGlobal `f`, src:BigInt(8n)
- [ 2e] SetGlobal `g`, src:Bool(true)
- [ 35] SetGlobal `h`, src:Bool(true)
- [ 3c] SetGlobal `i`, src:BigInt(-2n)
- [ 43] End value:reg5
+ [ a] SetGlobal `b`, src:BigInt(7n)
+ [ 10] SetGlobal `c`, src:BigInt(6n)
+ [ 16] SetGlobal `d`, src:BigInt(3n)
+ [ 1c] SetGlobal `e`, src:BigInt(1n)
+ [ 22] SetGlobal `f`, src:BigInt(8n)
+ [ 28] SetGlobal `g`, src:Bool(true)
+ [ 2e] SetGlobal `h`, src:Bool(true)
+ [ 34] SetGlobal `i`, src:BigInt(-2n)
+ [ 3a] 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 c669467c15e..d089e4a32f6 100644
--- a/Tests/LibJS/Bytecode/expected/bigint-large-constant-folding.txt
+++ b/Tests/LibJS/Bytecode/expected/bigint-large-constant-folding.txt
@@ -1,4 +1,4 @@
-$e4e02fd9 bigint-large-constant-folding.js:2:5
+$350c6eea bigint-large-constant-folding.js:2:5
Registers: 6
Blocks: 1
Constants:
@@ -11,6 +11,6 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] SetGlobal `a`, src:BigInt(337264356397531028994973048178108678400n)
- [ b] SetGlobal `b`, src:BigInt(340282366920938463463374607431768211456n)
- [ 12] SetGlobal `c`, src:BigInt(6193778470904512180693671865081363252814433915244866048000n)
- [ 19] End value:reg5
+ [ a] SetGlobal `b`, src:BigInt(340282366920938463463374607431768211456n)
+ [ 10] SetGlobal `c`, src:BigInt(6193778470904512180693671865081363252814433915244866048000n)
+ [ 16] End value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/bigint-truthiness.txt b/Tests/LibJS/Bytecode/expected/bigint-truthiness.txt
index cb06aeb745c..c5c9450d861 100644
--- a/Tests/LibJS/Bytecode/expected/bigint-truthiness.txt
+++ b/Tests/LibJS/Bytecode/expected/bigint-truthiness.txt
@@ -1,4 +1,4 @@
-$8274bceb bigint-truthiness.js:2:5
+$b0e68552 bigint-truthiness.js:2:5
Registers: 7
Blocks: 4
Constants:
@@ -13,27 +13,27 @@ block0:
[ 1] Mov dst:reg5, src:Undefined
[ 4] Mov dst:reg6, src:String("falsy")
[ 7] SetGlobal `a`, src:reg6
- [ e] Mov dst:reg6, src:String("falsy")
- [ 11] SetGlobal `b`, src:reg6
- [ 18] Mov dst:reg6, src:String("falsy")
- [ 1b] SetGlobal `c`, src:reg6
- [ 22] Mov dst:reg6, src:String("falsy")
- [ 25] SetGlobal `d`, src:reg6
- [ 2c] Mov dst:reg6, src:String("truthy")
- [ 2f] Jump target:block1
+ [ d] Mov dst:reg6, src:String("falsy")
+ [ 10] SetGlobal `b`, src:reg6
+ [ 16] Mov dst:reg6, src:String("falsy")
+ [ 19] SetGlobal `c`, src:reg6
+ [ 1f] Mov dst:reg6, src:String("falsy")
+ [ 22] SetGlobal `d`, src:reg6
+ [ 28] Mov dst:reg6, src:String("truthy")
+ [ 2b] Jump target:block1
block1:
- [ 34] SetGlobal `e`, src:reg6
- [ 3b] Mov dst:reg6, src:String("truthy")
- [ 3e] Jump target:block2
+ [ 30] SetGlobal `e`, src:reg6
+ [ 36] Mov dst:reg6, src:String("truthy")
+ [ 39] Jump target:block2
block2:
- [ 43] SetGlobal `f`, src:reg6
- [ 4a] Mov dst:reg6, src:String("truthy")
- [ 4d] Jump target:block3
+ [ 3e] SetGlobal `f`, src:reg6
+ [ 44] Mov dst:reg6, src:String("truthy")
+ [ 47] Jump target:block3
block3:
- [ 52] SetGlobal `g`, src:reg6
- [ 59] SetGlobal `h`, src:Bool(true)
- [ 60] SetGlobal `i`, src:Bool(false)
- [ 67] End value:reg5
+ [ 4c] SetGlobal `g`, src:reg6
+ [ 52] SetGlobal `h`, src:Bool(true)
+ [ 58] SetGlobal `i`, src:Bool(false)
+ [ 5e] End value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/bitwise-numeric-preconvert.txt b/Tests/LibJS/Bytecode/expected/bitwise-numeric-preconvert.txt
index 3c790e35c7e..ce58ea8b1f6 100644
--- a/Tests/LibJS/Bytecode/expected/bitwise-numeric-preconvert.txt
+++ b/Tests/LibJS/Bytecode/expected/bitwise-numeric-preconvert.txt
@@ -1,4 +1,4 @@
-$05738959 bitwise-numeric-preconvert.js:4:1
+$b5474a48 bitwise-numeric-preconvert.js:4:1
Registers: 7
Blocks: 1
Constants:
@@ -9,8 +9,8 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `test`
- [ d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(1)]
- [ 17] End value:reg5
+ [ c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(1)]
+ [ 16] End value:reg5
test$3a08f185 bitwise-numeric-preconvert.js:2:5
diff --git a/Tests/LibJS/Bytecode/expected/block-function-declaration-order.txt b/Tests/LibJS/Bytecode/expected/block-function-declaration-order.txt
index 86434c4260f..dd1bfcf2a9a 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 @@
-$f2fb2c4d block-function-declaration-order.js:1:1
+$30e83781 block-function-declaration-order.js:1:1
Registers: 6
Blocks: 1
Locals: f1~0, f2~1
@@ -9,7 +9,7 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] NewFunction dst:f1~0, shared_function_data_index:0
- [ c] NewFunction dst:f2~1, shared_function_data_index:1
- [ 14] SetVariableBindingOfBlockFunction `f1`, src:f1~0, program_environment_depth:0
- [ 1d] SetVariableBindingOfBlockFunction `f2`, src:f2~1, program_environment_depth:0
- [ 26] End value:reg5
+ [ b] NewFunction dst:f2~1, shared_function_data_index:1
+ [ 12] SetVariableBindingOfBlockFunction `f1`, src:f1~0, program_environment_depth:0
+ [ 1a] SetVariableBindingOfBlockFunction `f2`, src:f2~1, program_environment_depth:0
+ [ 22] 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 ee76e7b5263..4c04e65820d 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 @@
-$3adb982e block-scoped-function-no-tdz.js:1:1
+$8b07d73f block-scoped-function-no-tdz.js:1:1
Registers: 7
Blocks: 1
Constants:
@@ -10,11 +10,11 @@ block0:
[ 1] Mov dst:reg5, src:Undefined
[ 4] Mov dst:reg5, src:String("use strict")
[ 7] GetGlobal value_feedback:0, dst:reg6, `test`
- [ 10] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 19] End value:reg5
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 18] End value:reg5
-test$7ffdcdc6 block-scoped-function-no-tdz.js:3:9
+test$d02a0cd7 block-scoped-function-no-tdz.js:3:9
Registers: 6
Blocks: 1
Locals: result~0, foo~1
@@ -25,8 +25,8 @@ block0:
[ 0] Enter
[ 1] Mov dst:result~0, src:Undefined
[ 4] NewFunction dst:foo~1, shared_function_data_index:0
- [ c] Call value_feedback:0, call_feedback:0, dst:result~0, callee:foo~1, this_value:Undefined
- [ 15] Return value:result~0
+ [ b] Call value_feedback:0, call_feedback:0, dst:result~0, callee:foo~1, this_value:Undefined
+ [ 14] Return value:result~0
foo$665150bf block-scoped-function-no-tdz.js:5:26
diff --git a/Tests/LibJS/Bytecode/expected/block-scoping.txt b/Tests/LibJS/Bytecode/expected/block-scoping.txt
index 89284b743d0..e860051b24b 100644
--- a/Tests/LibJS/Bytecode/expected/block-scoping.txt
+++ b/Tests/LibJS/Bytecode/expected/block-scoping.txt
@@ -1,4 +1,4 @@
-$f56c2c8d block-scoping.js:13:1
+$0c16def7 block-scoping.js:13:1
Registers: 9
Blocks: 1
Constants:
@@ -8,19 +8,19 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `console`
- [ d] GetById value_feedback:1, dst:reg7, base:reg6, `log`
- [ 17] GetGlobal value_feedback:2, dst:reg8, `closureOverBlockScope`
- [ 20] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined
- [ 29] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 33] GetGlobal value_feedback:5, dst:reg6, `console`
- [ 3c] GetById value_feedback:6, dst:reg7, base:reg6, `log`
- [ 46] GetGlobal value_feedback:7, dst:reg8, `breakThroughBlockScopes`
- [ 4f] Call value_feedback:8, call_feedback:2, dst:reg8, callee:reg8, this_value:Undefined
- [ 58] Call value_feedback:9, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 62] End value:reg5
-
-
-closureOverBlockScope$51494574 block-scoping.js:2:15
+ [ c] GetById value_feedback:1, dst:reg7, base:reg6, `log`
+ [ 15] GetGlobal value_feedback:2, dst:reg8, `closureOverBlockScope`
+ [ 1d] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined
+ [ 26] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 30] GetGlobal value_feedback:5, dst:reg6, `console`
+ [ 38] GetById value_feedback:6, dst:reg7, base:reg6, `log`
+ [ 41] GetGlobal value_feedback:7, dst:reg8, `breakThroughBlockScopes`
+ [ 49] Call value_feedback:8, call_feedback:2, dst:reg8, callee:reg8, this_value:Undefined
+ [ 52] Call value_feedback:9, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 5c] End value:reg5
+
+
+closureOverBlockScope$d2ab3dfc block-scoping.js:2:15
Registers: 8
Blocks: 1
Locals: fns~0
@@ -35,47 +35,47 @@ block0:
[ 3] NewArray dst:fns~0
[ 6] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false
[ 12] CreateVariable `x`, is_immutable:false, is_global:false, is_strict:false
- [ 1a] InitializeLexicalBinding `x`, src:Int32(1)
- [ 22] GetById value_feedback:0, dst:reg6, base:fns~0, `push`
- [ 2c] NewFunction dst:reg7, shared_function_data_index:0
- [ 34] Call value_feedback:1, call_feedback:0, dst:reg6, callee:reg6, this_value:fns~0, arguments:[reg7]
- [ 3e] SetLexicalEnvironment environment:reg4
- [ 40] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false
- [ 4c] CreateVariable `y`, is_immutable:false, is_global:false, is_strict:false
- [ 54] InitializeLexicalBinding `y`, src:Int32(2)
- [ 5c] GetById value_feedback:2, dst:reg6, base:fns~0, `push`
- [ 66] NewFunction dst:reg7, shared_function_data_index:1
- [ 6e] Call value_feedback:3, call_feedback:1, dst:reg6, callee:reg6, this_value:fns~0, arguments:[reg7]
- [ 78] SetLexicalEnvironment environment:reg4
- [ 7a] GetByValue value_feedback:4, keyed_feedback:0, dst:reg5, base:fns~0, property:Int32(0)
- [ 84] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg5, this_value:fns~0
- [ 8d] GetByValue value_feedback:6, keyed_feedback:1, dst:reg6, base:fns~0, property:Int32(1)
- [ 97] Call value_feedback:7, call_feedback:3, dst:reg6, callee:reg6, this_value:fns~0
- [ a0] Add arith_feedback:0, dst:reg5, lhs:reg5, rhs:reg6
- [ a6] Return value:reg5
-
-
-$639615ef block-scoping.js:5:18
+ [ 19] InitializeLexicalBinding `x`, src:Int32(1)
+ [ 20] GetById value_feedback:0, dst:reg6, base:fns~0, `push`
+ [ 29] NewFunction dst:reg7, shared_function_data_index:0
+ [ 30] Call value_feedback:1, call_feedback:0, dst:reg6, callee:reg6, this_value:fns~0, arguments:[reg7]
+ [ 3a] SetLexicalEnvironment environment:reg4
+ [ 3c] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false
+ [ 48] CreateVariable `y`, is_immutable:false, is_global:false, is_strict:false
+ [ 4f] InitializeLexicalBinding `y`, src:Int32(2)
+ [ 56] GetById value_feedback:2, dst:reg6, base:fns~0, `push`
+ [ 5f] NewFunction dst:reg7, shared_function_data_index:1
+ [ 66] Call value_feedback:3, call_feedback:1, dst:reg6, callee:reg6, this_value:fns~0, arguments:[reg7]
+ [ 70] SetLexicalEnvironment environment:reg4
+ [ 72] GetByValue value_feedback:4, keyed_feedback:0, dst:reg5, base:fns~0, property:Int32(0)
+ [ 7c] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg5, this_value:fns~0
+ [ 85] GetByValue value_feedback:6, keyed_feedback:1, dst:reg6, base:fns~0, property:Int32(1)
+ [ 8f] Call value_feedback:7, call_feedback:3, dst:reg6, callee:reg6, this_value:fns~0
+ [ 98] Add arith_feedback:0, dst:reg5, lhs:reg5, rhs:reg6
+ [ 9e] Return value:reg5
+
+
+$1369d6de block-scoping.js:5:18
Registers: 6
Blocks: 1
block0:
[ 0] Enter
[ 1] GetBinding value_feedback:0, dst:reg5, `x`
- [ b] Return value:reg5
+ [ a] Return value:reg5
-$ca056ea3 block-scoping.js:9:18
+$79d92f92 block-scoping.js:9:18
Registers: 6
Blocks: 1
block0:
[ 0] Enter
[ 1] GetBinding value_feedback:0, dst:reg5, `y`
- [ b] Return value:reg5
+ [ a] Return value:reg5
-breakThroughBlockScopes$c664ac27 block-scoping.js:16:9
+breakThroughBlockScopes$85b3afe3 block-scoping.js:16:9
Registers: 7
Blocks: 6
Locals: result~0, i~1, f~2
@@ -93,36 +93,36 @@ block0:
block1:
[ e] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false
[ 1a] CreateVariable `x`, is_immutable:false, is_global:false, is_strict:false
- [ 22] InitializeLexicalBinding `x`, src:i~1
- [ 2a] NewFunction dst:f~2, shared_function_data_index:0 (f)
- [ 32] GetBinding value_feedback:0, dst:reg6, `x`
- [ 3c] JumpGreaterThanRhsInt32 arith_feedback:0, lhs:reg6, rhs:1, true_target:block2, false_target:block3
+ [ 21] InitializeLexicalBinding `x`, src:i~1
+ [ 28] NewFunction dst:f~2, shared_function_data_index:0 (f)
+ [ 2f] GetBinding value_feedback:0, dst:reg6, `x`
+ [ 38] JumpGreaterThanRhsInt32 arith_feedback:0, lhs:reg6, rhs:1, true_target:block2, false_target:block3
block2:
- [ 4c] Mov dst:result~0, src:f~2
- [ 4f] SetLexicalEnvironment environment:reg4
- [ 51] Jump target:block5
+ [ 48] Mov dst:result~0, src:f~2
+ [ 4b] SetLexicalEnvironment environment:reg4
+ [ 4d] Jump target:block5
block3:
- [ 56] SetLexicalEnvironment environment:reg4
- [ 58] Increment arith_feedback:1, dst:i~1
+ [ 52] SetLexicalEnvironment environment:reg4
+ [ 54] Increment arith_feedback:1, dst:i~1
block4:
- [ 5c] JumpLessThanLoopRhsInt32 arith_feedback:2, lhs:i~1, rhs:3, true_target:block1, false_target:block5
+ [ 58] JumpLessThanLoopRhsInt32 arith_feedback:2, lhs:i~1, rhs:3, true_target:block1, false_target:block5
block5:
- [ 6c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:result~0, this_value:Undefined
- [ 75] Return value:reg5
+ [ 68] Call value_feedback:1, call_feedback:0, dst:reg5, callee:result~0, this_value:Undefined
+ [ 71] Return value:reg5
-f$f1cf71b7 block-scoping.js:20:21
+f$a1a332a6 block-scoping.js:20:21
Registers: 6
Blocks: 1
block0:
[ 0] Enter
[ 1] GetBinding value_feedback:0, dst:reg5, `x`
- [ b] Return value:reg5
+ [ a] 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 26775d5223e..734cca07c11 100644
--- a/Tests/LibJS/Bytecode/expected/call-spread-register-order.txt
+++ b/Tests/LibJS/Bytecode/expected/call-spread-register-order.txt
@@ -1,4 +1,4 @@
-$d1d44438 call-spread-register-order.js:2:1
+$c259016b call-spread-register-order.js:2:1
Registers: 9
Blocks: 1
Constants:
@@ -9,11 +9,11 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `f`
- [ d] NewArray dst:reg7, elements:[Int32(42)]
- [ 11] NewPrimitiveArray dst:reg8, elements:[1]
- [ 1f] ArrayAppend dst:reg7, src:reg8, is_spread:true
- [ 23] CallWithArgumentArray value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:reg7
- [ 2c] End value:reg5
+ [ c] NewArray dst:reg7, elements:[Int32(42)]
+ [ 10] NewPrimitiveArray dst:reg8, elements:[1]
+ [ 1e] ArrayAppend dst:reg7, src:reg8, is_spread:true
+ [ 22] CallWithArgumentArray value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:reg7
+ [ 2b] End value:reg5
f$0b87db58
diff --git a/Tests/LibJS/Bytecode/expected/captured-variables.txt b/Tests/LibJS/Bytecode/expected/captured-variables.txt
index a839a6a489e..0f56820c4f4 100644
--- a/Tests/LibJS/Bytecode/expected/captured-variables.txt
+++ b/Tests/LibJS/Bytecode/expected/captured-variables.txt
@@ -1,4 +1,4 @@
-$4ee6dac0 captured-variables.js:12:1
+$017e8cbf captured-variables.js:12:1
Registers: 7
Blocks: 1
Constants:
@@ -8,11 +8,11 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `outer`
- [ d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 16] End value:reg5
+ [ c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 15] End value:reg5
-outer$d668dba7 captured-variables.js:5:9
+outer$e5e41e74 captured-variables.js:5:9
Registers: 6
Blocks: 1
Locals: inner~0
@@ -23,18 +23,18 @@ outer$d668dba7 captured-variables.js:5:9
block0:
[ 0] Enter
[ 1] CreateVariable `captured`, is_immutable:false, is_global:false, is_strict:false
- [ 9] Mov dst:inner~0, src:Undefined
- [ c] NewFunction dst:inner~0, shared_function_data_index:0
- [ 14] InitializeLexicalBinding `captured`, src:Int32(1)
- [ 1c] Call value_feedback:0, call_feedback:0, dst:reg5, callee:inner~0, this_value:Undefined
- [ 25] Return value:reg5
+ [ 8] Mov dst:inner~0, src:Undefined
+ [ b] NewFunction dst:inner~0, shared_function_data_index:0
+ [ 12] InitializeLexicalBinding `captured`, src:Int32(1)
+ [ 19] Call value_feedback:0, call_feedback:0, dst:reg5, callee:inner~0, this_value:Undefined
+ [ 22] Return value:reg5
-inner$da7e9838 captured-variables.js:7:9
+inner$2aaad749 captured-variables.js:7:9
Registers: 6
Blocks: 1
block0:
[ 0] Enter
[ 1] GetBinding value_feedback:0, dst:reg5, `captured`
- [ b] Return value:reg5
+ [ a] Return value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/catch-scope-boundary.txt b/Tests/LibJS/Bytecode/expected/catch-scope-boundary.txt
index 242e1fb18fb..b41139c72a4 100644
--- a/Tests/LibJS/Bytecode/expected/catch-scope-boundary.txt
+++ b/Tests/LibJS/Bytecode/expected/catch-scope-boundary.txt
@@ -1,4 +1,4 @@
-$cb6e475e catch-scope-boundary.js:14:1
+$a167fd84 catch-scope-boundary.js:14:1
Registers: 9
Blocks: 1
Constants:
@@ -8,16 +8,16 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `console`
- [ d] GetById value_feedback:1, dst:reg7, base:reg6, `log`
- [ 17] GetGlobal value_feedback:2, dst:reg8, `throwInCatch`
- [ 20] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined
- [ 29] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 33] GetGlobal value_feedback:5, dst:reg6, `console`
- [ 3c] GetById value_feedback:6, dst:reg7, base:reg6, `log`
- [ 46] GetGlobal value_feedback:7, dst:reg8, `throwInCatchWithLocals`
- [ 4f] Call value_feedback:8, call_feedback:2, dst:reg8, callee:reg8, this_value:Undefined
- [ 58] Call value_feedback:9, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 62] End value:reg5
+ [ c] GetById value_feedback:1, dst:reg7, base:reg6, `log`
+ [ 15] GetGlobal value_feedback:2, dst:reg8, `throwInCatch`
+ [ 1d] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined
+ [ 26] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 30] GetGlobal value_feedback:5, dst:reg6, `console`
+ [ 38] GetById value_feedback:6, dst:reg7, base:reg6, `log`
+ [ 41] GetGlobal value_feedback:7, dst:reg8, `throwInCatchWithLocals`
+ [ 49] Call value_feedback:8, call_feedback:2, dst:reg8, callee:reg8, this_value:Undefined
+ [ 52] Call value_feedback:9, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 5c] End value:reg5
throwInCatch$1fd4a2a1 catch-scope-boundary.js:2:9
diff --git a/Tests/LibJS/Bytecode/expected/chained-member-call.txt b/Tests/LibJS/Bytecode/expected/chained-member-call.txt
index 1bf7013c9f7..aa0b7c2c100 100644
--- a/Tests/LibJS/Bytecode/expected/chained-member-call.txt
+++ b/Tests/LibJS/Bytecode/expected/chained-member-call.txt
@@ -1,4 +1,4 @@
-$a642896e chained-member-call.js:12:1
+$05ea0b4c chained-member-call.js:12:1
Registers: 7
Blocks: 7
Constants:
@@ -12,36 +12,36 @@ block0:
block1:
[ 7] GetGlobal value_feedback:0, dst:reg6, `chained_computed_call`
- [ 10] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(0), Int32(0), Int32(0)]
- [ 1c] Jump target:block3
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(0), Int32(0), Int32(0)]
+ [ 1b] Jump target:block3
block2:
- [ 21] Catch value_feedback:2, dst:reg6
- [ 25] Mov dst:reg5, src:Undefined
- [ 28] Jump target:block3
+ [ 20] Catch value_feedback:2, dst:reg6
+ [ 24] Mov dst:reg5, src:Undefined
+ [ 27] Jump target:block3
block3:
- [ 2d] Mov dst:reg5, src:Undefined
+ [ 2c] Mov dst:reg5, src:Undefined
block4:
- [ 30] GetGlobal value_feedback:3, dst:reg6, `chained_dot_call`
- [ 39] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(0)]
- [ 43] Jump target:block6
+ [ 2f] GetGlobal value_feedback:3, dst:reg6, `chained_dot_call`
+ [ 37] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(0)]
+ [ 41] Jump target:block6
block5:
- [ 48] Catch value_feedback:5, dst:reg6
- [ 4c] Mov dst:reg5, src:Undefined
- [ 4f] Jump target:block6
+ [ 46] Catch value_feedback:5, dst:reg6
+ [ 4a] Mov dst:reg5, src:Undefined
+ [ 4d] Jump target:block6
block6:
- [ 54] End value:reg5
+ [ 52] End value:reg5
Exception handlers:
- [ 7 .. 21] => handler block2
- [ 30 .. 48] => handler block5
+ [ 7 .. 20] => handler block2
+ [ 2f .. 46] => handler block5
-chained_computed_call$c7cedde8 chained-member-call.js:5:5
+chained_computed_call$b8539b1b chained-member-call.js:5:5
Registers: 7
Blocks: 1
@@ -50,18 +50,18 @@ block0:
[ 1] GetByValue value_feedback:0, keyed_feedback:0, dst:reg5, base:arg0, property:arg1
[ b] GetByValue value_feedback:1, keyed_feedback:1, dst:reg5, base:reg5, property:arg2
[ 15] GetById value_feedback:2, dst:reg6, base:reg5, `foo`
- [ 1f] Call value_feedback:3, call_feedback:0, dst:reg5, callee:reg6, this_value:reg5
- [ 28] Return value:reg5
+ [ 1e] Call value_feedback:3, call_feedback:0, dst:reg5, callee:reg6, this_value:reg5
+ [ 27] Return value:reg5
-chained_dot_call$0db3e312 chained-member-call.js:9:5
+chained_dot_call$1ff316ef chained-member-call.js:9:5
Registers: 7
Blocks: 1
block0:
[ 0] Enter
[ 1] GetById value_feedback:0, dst:reg5, base:arg0, `b`
- [ b] GetById value_feedback:1, dst:reg5, base:reg5, `c`
- [ 15] GetById value_feedback:2, dst:reg6, base:reg5, `bar`
- [ 1f] Call value_feedback:3, call_feedback:0, dst:reg5, callee:reg6, this_value:reg5
- [ 28] Return value:reg5
+ [ a] GetById value_feedback:1, dst:reg5, base:reg5, `c`
+ [ 13] GetById value_feedback:2, dst:reg6, base:reg5, `bar`
+ [ 1c] Call value_feedback:3, call_feedback:0, dst:reg5, callee:reg6, this_value:reg5
+ [ 25] 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 103f268d069..6a2ece2896d 100644
--- a/Tests/LibJS/Bytecode/expected/class-computed-field-lhs-name.txt
+++ b/Tests/LibJS/Bytecode/expected/class-computed-field-lhs-name.txt
@@ -1,4 +1,4 @@
-$5bbb391f class-computed-field-lhs-name.js:1:5
+$caddfdca class-computed-field-lhs-name.js:1:5
Registers: 8
Blocks: 1
Constants:
@@ -12,10 +12,10 @@ block0:
[ 6] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:0, is_catch_environment:false
[ 12] SetLexicalEnvironment environment:reg4
[ 14] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0 (C), element_keys_are_in_array:false, element_keys:[element_keys:Int32(3)]
- [ 24] SetGlobal `C`, src:reg6
- [ 2b] GetGlobal value_feedback:0, dst:reg6, `C`
- [ 34] CallConstruct value_feedback:1, call_feedback:0, dst:reg5, callee:reg6
- [ 3c] End value:reg5
+ [ 23] SetGlobal `C`, src:reg6
+ [ 29] GetGlobal value_feedback:0, dst:reg6, `C`
+ [ 31] CallConstruct value_feedback:1, call_feedback:0, dst:reg5, callee:reg6
+ [ 39] End value:reg5
C$16234245
@@ -29,7 +29,7 @@ block0:
[ 1] End value:Undefined
-field$34a9901b class-computed-field-lhs-name.js:2:15
+field$e47d510a class-computed-field-lhs-name.js:2:15
Registers: 7
Blocks: 1
@@ -37,5 +37,5 @@ block0:
[ 0] Enter
[ 1] GetClassFieldInitializerName dst:reg5
[ 3] NewFunction dst:reg6, shared_function_data_index:0
- [ b] SetFunctionName function:reg6, name:reg5
- [ f] Return value:reg6
+ [ a] SetFunctionName function:reg6, name:reg5
+ [ e] Return value:reg6
diff --git a/Tests/LibJS/Bytecode/expected/class-computed-key.txt b/Tests/LibJS/Bytecode/expected/class-computed-key.txt
index 3b672153cf2..b835a619b5a 100644
--- a/Tests/LibJS/Bytecode/expected/class-computed-key.txt
+++ b/Tests/LibJS/Bytecode/expected/class-computed-key.txt
@@ -1,4 +1,4 @@
-$44317be6 class-computed-key.js:10:1
+$34b63919 class-computed-key.js:10:1
Registers: 7
Blocks: 1
Constants:
@@ -8,11 +8,11 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `f`
- [ d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 16] End value:reg5
+ [ c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 15] End value:reg5
-f$364d9edb class-computed-key.js:4:5
+f$fde875c7 class-computed-key.js:4:5
Registers: 9
Blocks: 1
@@ -21,9 +21,9 @@ block0:
[ 1] GetLexicalEnvironment dst:reg4
[ 3] CreateLexicalEnvironment dst:reg6, parent:reg4, capacity:0, is_catch_environment:false
[ f] CreateVariable ``, is_immutable:true, is_global:false, is_strict:true
- [ 17] GetGlobal value_feedback:0, dst:reg7, `Symbol`
- [ 20] GetById value_feedback:1, dst:reg7, base:reg7, `iterator`
- [ 2a] ToPrimitiveWithStringHint dst:reg8, value:reg7
- [ 2d] SetLexicalEnvironment environment:reg4
- [ 2f] NewClass dst:reg5, class_environment:reg6, class_blueprint_index:0, element_keys_are_in_array:false, element_keys:[element_keys:reg8]
- [ 3f] Return value:reg5
+ [ 16] GetGlobal value_feedback:0, dst:reg7, `Symbol`
+ [ 1e] GetById value_feedback:1, dst:reg7, base:reg7, `iterator`
+ [ 27] ToPrimitiveWithStringHint dst:reg8, value:reg7
+ [ 2a] SetLexicalEnvironment environment:reg4
+ [ 2c] NewClass dst:reg5, class_environment:reg6, class_blueprint_index:0, element_keys_are_in_array:false, element_keys:[element_keys:reg8]
+ [ 3b] Return value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/class-environment.txt b/Tests/LibJS/Bytecode/expected/class-environment.txt
index d1cfd19a7a8..400945e09b5 100644
--- a/Tests/LibJS/Bytecode/expected/class-environment.txt
+++ b/Tests/LibJS/Bytecode/expected/class-environment.txt
@@ -1,4 +1,4 @@
-$7a5b88e8 class-environment.js:9:1
+$ab91425f class-environment.js:9:1
Registers: 9
Blocks: 1
Constants:
@@ -8,14 +8,14 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `console`
- [ d] GetById value_feedback:1, dst:reg7, base:reg6, `log`
- [ 17] GetGlobal value_feedback:2, dst:reg8, `classWithName`
- [ 20] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined
- [ 29] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 33] End value:reg5
+ [ c] GetById value_feedback:1, dst:reg7, base:reg6, `log`
+ [ 15] GetGlobal value_feedback:2, dst:reg8, `classWithName`
+ [ 1d] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined
+ [ 26] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 30] End value:reg5
-classWithName$6e1f1142 class-environment.js:2:9
+classWithName$1df2d231 class-environment.js:2:9
Registers: 7
Blocks: 1
Locals: C~0
@@ -27,14 +27,14 @@ block0:
[ 1] GetLexicalEnvironment dst:reg4
[ 3] CreateLexicalEnvironment dst:reg6, parent:reg4, capacity:1, is_catch_environment:false
[ f] CreateVariable `Foo`, is_immutable:true, is_global:false, is_strict:true
- [ 17] SetLexicalEnvironment environment:reg4
- [ 19] NewClass dst:reg5, class_environment:reg6, class_blueprint_index:0, element_keys_are_in_array:false, element_keys:[element_keys:String("method")]
- [ 29] Mov dst:C~0, src:reg5
- [ 2c] CallConstruct value_feedback:0, call_feedback:0, dst:reg5, callee:C~0
- [ 34] GetById value_feedback:1, dst:reg6, base:reg5, `method`
- [ 3e] Call value_feedback:2, call_feedback:1, dst:reg5, callee:reg6, this_value:reg5
- [ 47] StrictlyEquals arith_feedback:0, dst:reg5, lhs:reg5, rhs:C~0
- [ 4d] Return value:reg5
+ [ 16] SetLexicalEnvironment environment:reg4
+ [ 18] NewClass dst:reg5, class_environment:reg6, class_blueprint_index:0, element_keys_are_in_array:false, element_keys:[element_keys:String("method")]
+ [ 27] Mov dst:C~0, src:reg5
+ [ 2a] CallConstruct value_feedback:0, call_feedback:0, dst:reg5, callee:C~0
+ [ 32] GetById value_feedback:1, dst:reg6, base:reg5, `method`
+ [ 3b] Call value_feedback:2, call_feedback:1, dst:reg5, callee:reg6, this_value:reg5
+ [ 44] StrictlyEquals arith_feedback:0, dst:reg5, lhs:reg5, rhs:C~0
+ [ 4a] Return value:reg5
Foo$e166dc90
@@ -48,14 +48,14 @@ block0:
[ 1] End value:Undefined
-method$5b33b136 class-environment.js:4:13
+method$ab5ff047 class-environment.js:4:13
Registers: 6
Blocks: 1
block0:
[ 0] Enter
[ 1] GetBinding value_feedback:0, dst:reg5, `Foo`
- [ b] Return value:reg5
+ [ a] 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 c74251bc9d4..8d300dbc5ab 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 @@
-$6dfa6cfc class-lhs-name-no-createvariable.js:1:5
+$cda1eeda class-lhs-name-no-createvariable.js:1:5
Registers: 8
Blocks: 1
Constants:
@@ -12,5 +12,5 @@ block0:
[ 6] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:0, is_catch_environment:false
[ 12] SetLexicalEnvironment environment:reg4
[ 14] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0 (x), element_keys_are_in_array:false, element_keys:[element_keys:String("method")]
- [ 24] SetGlobal `x`, src:reg6
- [ 2b] End value:reg5
+ [ 23] SetGlobal `x`, src:reg6
+ [ 29] End value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/class-literal-fields.txt b/Tests/LibJS/Bytecode/expected/class-literal-fields.txt
index 2fd6f1b4aee..48623516203 100644
--- a/Tests/LibJS/Bytecode/expected/class-literal-fields.txt
+++ b/Tests/LibJS/Bytecode/expected/class-literal-fields.txt
@@ -1,4 +1,4 @@
-$51fa779f class-literal-fields.js:12:5
+$54be68af class-literal-fields.js:12:5
Registers: 14
Blocks: 1
Constants:
@@ -8,27 +8,27 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `test`
- [ d] Call value_feedback:1, call_feedback:0, dst:reg6, callee:reg6, this_value:Undefined
- [ 16] DynamicInitializeLexicalBinding `a`, src:reg6
- [ 1d] GetGlobal value_feedback:2, dst:reg6, `console`
- [ 26] GetById value_feedback:3, dst:reg7, base:reg6, `log`
- [ 30] GetGlobal value_feedback:4, dst:reg8, `a`
- [ 39] GetById value_feedback:5, dst:reg8, base:reg8, `x`
- [ 43] GetGlobal value_feedback:6, dst:reg9, `a`
- [ 4c] GetById value_feedback:7, dst:reg9, base:reg9, `y`
- [ 56] GetGlobal value_feedback:8, dst:reg10, `a`
- [ 5f] GetById value_feedback:9, dst:reg10, base:reg10, `z`
- [ 69] GetGlobal value_feedback:10, dst:reg11, `a`
- [ 72] GetById value_feedback:11, dst:reg11, base:reg11, `w`
- [ 7c] GetGlobal value_feedback:12, dst:reg12, `a`
- [ 85] GetById value_feedback:13, dst:reg12, base:reg12, `s`
- [ 8f] GetGlobal value_feedback:14, dst:reg13, `a`
- [ 98] GetById value_feedback:15, dst:reg13, base:reg13, `computed`
- [ a2] Call value_feedback:16, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8, reg9, reg10, reg11, reg12, reg13]
- [ b1] End value:reg5
+ [ c] Call value_feedback:1, call_feedback:0, dst:reg6, callee:reg6, this_value:Undefined
+ [ 15] DynamicInitializeLexicalBinding `a`, src:reg6
+ [ 1b] GetGlobal value_feedback:2, dst:reg6, `console`
+ [ 23] GetById value_feedback:3, dst:reg7, base:reg6, `log`
+ [ 2c] GetGlobal value_feedback:4, dst:reg8, `a`
+ [ 34] GetById value_feedback:5, dst:reg8, base:reg8, `x`
+ [ 3d] GetGlobal value_feedback:6, dst:reg9, `a`
+ [ 45] GetById value_feedback:7, dst:reg9, base:reg9, `y`
+ [ 4e] GetGlobal value_feedback:8, dst:reg10, `a`
+ [ 56] GetById value_feedback:9, dst:reg10, base:reg10, `z`
+ [ 5f] GetGlobal value_feedback:10, dst:reg11, `a`
+ [ 67] GetById value_feedback:11, dst:reg11, base:reg11, `w`
+ [ 70] GetGlobal value_feedback:12, dst:reg12, `a`
+ [ 78] GetById value_feedback:13, dst:reg12, base:reg12, `s`
+ [ 81] GetGlobal value_feedback:14, dst:reg13, `a`
+ [ 89] GetById value_feedback:15, dst:reg13, base:reg13, `computed`
+ [ 92] Call value_feedback:16, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8, reg9, reg10, reg11, reg12, reg13]
+ [ a1] End value:reg5
-test$f10c2211 class-literal-fields.js:2:5
+test$d2159c77 class-literal-fields.js:2:5
Registers: 7
Blocks: 1
Locals: A~0
@@ -45,12 +45,12 @@ block0:
[ 1] GetLexicalEnvironment dst:reg4
[ 3] CreateLexicalEnvironment dst:reg6, parent:reg4, capacity:1, is_catch_environment:false
[ f] CreateVariable `A`, is_immutable:true, is_global:false, is_strict:true
- [ 17] SetLexicalEnvironment environment:reg4
- [ 19] NewClass dst:reg5, class_environment:reg6, class_blueprint_index:0, element_keys_are_in_array:false, 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")]
- [ 2e] Mov dst:A~0, src:reg5
- [ 31] ThrowIfTDZ src:A~0
- [ 33] CallConstruct value_feedback:0, call_feedback:0, dst:reg5, callee:A~0
- [ 3b] Return value:reg5
+ [ 16] SetLexicalEnvironment environment:reg4
+ [ 18] NewClass dst:reg5, class_environment:reg6, class_blueprint_index:0, element_keys_are_in_array:false, 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")]
+ [ 2c] Mov dst:A~0, src:reg5
+ [ 2f] ThrowIfTDZ src:A~0
+ [ 31] CallConstruct value_feedback:0, call_feedback:0, dst:reg5, callee:A~0
+ [ 39] Return value:reg5
A$5e284e97
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 2844721c0c7..e4a173c66ee 100644
--- a/Tests/LibJS/Bytecode/expected/computed-compound-assign-register-reuse.txt
+++ b/Tests/LibJS/Bytecode/expected/computed-compound-assign-register-reuse.txt
@@ -1,4 +1,4 @@
-$5d0c90cb computed-compound-assign-register-reuse.js:9:1
+$6c87d398 computed-compound-assign-register-reuse.js:9:1
Registers: 9
Blocks: 1
Constants:
@@ -8,10 +8,10 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `subVector`
- [ d] NewPrimitiveArray dst:reg7, elements:[1, 2]
- [ 23] NewPrimitiveArray dst:reg8, elements:[3, 4]
- [ 39] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7, reg8]
- [ 44] End value:reg5
+ [ c] NewPrimitiveArray dst:reg7, elements:[1, 2]
+ [ 22] NewPrimitiveArray dst:reg8, elements:[3, 4]
+ [ 38] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7, reg8]
+ [ 43] End value:reg5
subVector$a16d85c1 computed-compound-assign-register-reuse.js:5:13
diff --git a/Tests/LibJS/Bytecode/expected/computed-member-access.txt b/Tests/LibJS/Bytecode/expected/computed-member-access.txt
index f2e536253e3..8ea9e2e5306 100644
--- a/Tests/LibJS/Bytecode/expected/computed-member-access.txt
+++ b/Tests/LibJS/Bytecode/expected/computed-member-access.txt
@@ -1,4 +1,4 @@
-$96c746a1 computed-member-access.js:12:1
+$f932b98f computed-member-access.js:12:1
Registers: 8
Blocks: 1
Constants:
@@ -9,12 +9,12 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `computed_read`
- [ d] NewPrimitiveArray dst:reg7, elements:[1]
- [ 1b] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
- [ 25] GetGlobal value_feedback:2, dst:reg6, `computed_read_expression`
- [ 2e] NewPrimitiveArray dst:reg7, elements:[1]
- [ 3c] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7, Int32(0)]
- [ 47] End value:reg5
+ [ c] NewPrimitiveArray dst:reg7, elements:[1]
+ [ 1a] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
+ [ 24] GetGlobal value_feedback:2, dst:reg6, `computed_read_expression`
+ [ 2c] NewPrimitiveArray dst:reg7, elements:[1]
+ [ 3a] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7, Int32(0)]
+ [ 45] End value:reg5
computed_read$5a8a4d4c computed-member-access.js:5:5
diff --git a/Tests/LibJS/Bytecode/expected/computed-member-compound-assign.txt b/Tests/LibJS/Bytecode/expected/computed-member-compound-assign.txt
index 47274a9c070..ca7a0460cf6 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 @@
-$ad1cb34f computed-member-compound-assign.js:15:1
+$1c3f77fa computed-member-compound-assign.js:15:1
Registers: 8
Blocks: 1
Constants:
@@ -10,14 +10,14 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `compound_computed`
- [ d] NewObject dst:reg7
- [ 11] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7, String("x")]
- [ 1c] GetGlobal value_feedback:2, dst:reg6, `compound_then_assign`
- [ 25] NewObject dst:reg7
- [ 29] InitObjectLiteralProperty object:reg7, `x`, src:Int32(1), shape_cache_index:0, property_slot:0
- [ 33] CacheObjectShape object:reg7
- [ 37] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7, String("x")]
- [ 42] End value:reg5
+ [ c] NewObject dst:reg7
+ [ 10] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7, String("x")]
+ [ 1b] GetGlobal value_feedback:2, dst:reg6, `compound_then_assign`
+ [ 23] NewObject dst:reg7
+ [ 27] InitObjectLiteralProperty object:reg7, `x`, src:Int32(1), shape_cache_index:0, property_slot:0
+ [ 30] CacheObjectShape object:reg7
+ [ 34] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7, String("x")]
+ [ 3f] End value:reg5
compound_computed$48b6b4c7 computed-member-compound-assign.js:7:14
diff --git a/Tests/LibJS/Bytecode/expected/computed-string-object-literal.txt b/Tests/LibJS/Bytecode/expected/computed-string-object-literal.txt
index 51c111723ca..777c919534a 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 @@
-$d342a886 computed-string-object-literal.js:15:1
+$42656d31 computed-string-object-literal.js:15:1
Registers: 7
Blocks: 1
Constants:
@@ -9,15 +9,15 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `simple_computed`
- [ d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 16] GetGlobal value_feedback:2, dst:reg6, `mixed`
- [ 1f] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined
- [ 28] GetGlobal value_feedback:4, dst:reg6, `dynamic`
- [ 31] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg6, this_value:Undefined, arguments:[String("x")]
- [ 3b] End value:reg5
+ [ c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 15] GetGlobal value_feedback:2, dst:reg6, `mixed`
+ [ 1d] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined
+ [ 26] GetGlobal value_feedback:4, dst:reg6, `dynamic`
+ [ 2e] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg6, this_value:Undefined, arguments:[String("x")]
+ [ 38] End value:reg5
-simple_computed$e049e48e computed-string-object-literal.js:6:5
+simple_computed$d0cea1c1 computed-string-object-literal.js:6:5
Registers: 6
Blocks: 1
Constants:
@@ -27,10 +27,10 @@ block0:
[ 0] Enter
[ 1] NewObject dst:reg5
[ 5] PutById base:reg5, `x`, src:Int32(1), kind:Own
- [ e] Return value:reg5
+ [ d] Return value:reg5
-mixed$e45aae0d computed-string-object-literal.js:9:5
+mixed$c2a03763 computed-string-object-literal.js:9:5
Registers: 6
Blocks: 1
Constants:
@@ -41,8 +41,8 @@ block0:
[ 0] Enter
[ 1] NewObject dst:reg5
[ 5] PutById base:reg5, `a`, src:Int32(1), kind:Own
- [ e] PutById base:reg5, `b`, src:Int32(2), kind:Own
- [ 17] Return value:reg5
+ [ d] PutById base:reg5, `b`, src:Int32(2), kind:Own
+ [ 15] Return value:reg5
dynamic$58492a82 computed-string-object-literal.js:12:5
diff --git a/Tests/LibJS/Bytecode/expected/computed-string-to-ById.txt b/Tests/LibJS/Bytecode/expected/computed-string-to-ById.txt
index 321397d7b81..2bc2ed26f8f 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 @@
-$9440ae55 computed-string-to-ById.js:17:1
+$dd3d7dc9 computed-string-to-ById.js:17:1
Registers: 8
Blocks: 1
Constants:
@@ -8,31 +8,31 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `get_string_prop`
- [ d] NewObject dst:reg7
- [ 11] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
- [ 1b] GetGlobal value_feedback:2, dst:reg6, `set_string_prop`
- [ 24] NewObject dst:reg7
- [ 28] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
- [ 32] GetGlobal value_feedback:4, dst:reg6, `get_index_prop`
- [ 3b] NewArray dst:reg7
- [ 3e] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
- [ 48] GetGlobal value_feedback:6, dst:reg6, `get_length_prop`
- [ 51] NewArray dst:reg7
- [ 54] Call value_feedback:7, call_feedback:3, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
- [ 5e] End value:reg5
+ [ c] NewObject dst:reg7
+ [ 10] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
+ [ 1a] GetGlobal value_feedback:2, dst:reg6, `set_string_prop`
+ [ 22] NewObject dst:reg7
+ [ 26] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
+ [ 30] GetGlobal value_feedback:4, dst:reg6, `get_index_prop`
+ [ 38] NewArray dst:reg7
+ [ 3b] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
+ [ 45] GetGlobal value_feedback:6, dst:reg6, `get_length_prop`
+ [ 4d] NewArray dst:reg7
+ [ 50] Call value_feedback:7, call_feedback:3, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
+ [ 5a] End value:reg5
-get_string_prop$beed17a6 computed-string-to-ById.js:5:5
+get_string_prop$0f1956b7 computed-string-to-ById.js:5:5
Registers: 6
Blocks: 1
block0:
[ 0] Enter
[ 1] GetById value_feedback:0, dst:reg5, base:arg0, `hello`
- [ b] Return value:reg5
+ [ a] Return value:reg5
-set_string_prop$8ecb59cb computed-string-to-ById.js:8:16
+set_string_prop$def798dc computed-string-to-ById.js:8:16
Registers: 5
Blocks: 1
Constants:
@@ -42,7 +42,7 @@ set_string_prop$8ecb59cb computed-string-to-ById.js:8:16
block0:
[ 0] Enter
[ 1] PutById base:arg0, `hello`, src:Int32(42), kind:Normal
- [ a] End value:Undefined
+ [ 9] End value:Undefined
get_index_prop$30a34e83 computed-string-to-ById.js:11:5
diff --git a/Tests/LibJS/Bytecode/expected/computed-update-register-order.txt b/Tests/LibJS/Bytecode/expected/computed-update-register-order.txt
index cca630074cc..01009239739 100644
--- a/Tests/LibJS/Bytecode/expected/computed-update-register-order.txt
+++ b/Tests/LibJS/Bytecode/expected/computed-update-register-order.txt
@@ -1,4 +1,4 @@
-$52743e93 computed-update-register-order.js:8:1
+$0247ff82 computed-update-register-order.js:8:1
Registers: 8
Blocks: 1
Constants:
@@ -8,12 +8,12 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `test`
- [ d] NewPrimitiveArray dst:reg7, elements:[1, 2, 3, 4]
- [ 33] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
- [ 3d] End value:reg5
+ [ c] NewPrimitiveArray dst:reg7, elements:[1, 2, 3, 4]
+ [ 32] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
+ [ 3c] End value:reg5
-test$81ffc0a9 computed-update-register-order.js:5:9
+test$d22bffba computed-update-register-order.js:5:9
Registers: 7
Blocks: 1
Constants:
@@ -26,8 +26,8 @@ block0:
[ b] PostfixIncrement arith_feedback:0, dst:reg6, src:reg5
[ 10] PutByValue keyed_feedback:1, base:arg0, property:Int32(3), src:reg5, kind:Normal
[ 19] GetGlobal value_feedback:1, dst:reg5, `foo`
- [ 22] Call value_feedback:2, call_feedback:0, dst:reg5, callee:reg5, this_value:Undefined, arguments:[arg0]
- [ 2c] End value:Undefined
+ [ 21] Call value_feedback:2, call_feedback:0, dst:reg5, callee:reg5, this_value:Undefined, arguments:[arg0]
+ [ 2b] End value:Undefined
foo$0284f477 computed-update-register-order.js:2:5
diff --git a/Tests/LibJS/Bytecode/expected/condition-dead-code-elim.txt b/Tests/LibJS/Bytecode/expected/condition-dead-code-elim.txt
index 9b22de78c8c..25d1817ef0f 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 @@
-$6e3d82d4 condition-dead-code-elim.js:141:1
+$9f733c4b condition-dead-code-elim.js:141:1
Registers: 7
Blocks: 1
Constants:
@@ -9,28 +9,28 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `ternary_true`
- [ d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 16] GetGlobal value_feedback:2, dst:reg6, `ternary_truthy`
- [ 1f] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined
- [ 28] GetGlobal value_feedback:4, dst:reg6, `ternary_false`
- [ 31] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg6, this_value:Undefined
- [ 3a] GetGlobal value_feedback:6, dst:reg6, `ternary_falsey`
- [ 43] Call value_feedback:7, call_feedback:3, dst:reg5, callee:reg6, this_value:Undefined
- [ 4c] GetGlobal value_feedback:8, dst:reg6, `while_falsey`
- [ 55] Call value_feedback:9, call_feedback:4, dst:reg5, callee:reg6, this_value:Undefined
- [ 5e] GetGlobal value_feedback:10, dst:reg6, `do_while_falsey`
- [ 67] Call value_feedback:11, call_feedback:5, dst:reg5, callee:reg6, this_value:Undefined
- [ 70] GetGlobal value_feedback:12, dst:reg6, `if_falsely`
- [ 79] Call value_feedback:13, call_feedback:6, dst:reg5, callee:reg6, this_value:Undefined
- [ 82] GetGlobal value_feedback:14, dst:reg6, `if_truthy`
- [ 8b] Call value_feedback:15, call_feedback:7, dst:reg5, callee:reg6, this_value:Undefined
- [ 94] GetGlobal value_feedback:16, dst:reg6, `if_exhausted`
- [ 9d] Call value_feedback:17, call_feedback:8, dst:reg5, callee:reg6, this_value:Undefined
- [ a6] GetGlobal value_feedback:18, dst:reg6, `for_false`
- [ af] Call value_feedback:19, call_feedback:9, dst:reg5, callee:reg6, this_value:Undefined
- [ b8] GetGlobal value_feedback:20, dst:reg6, `for_true`
- [ c1] Call value_feedback:21, call_feedback:10, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Bool(true)]
- [ cb] End value:reg5
+ [ c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 15] GetGlobal value_feedback:2, dst:reg6, `ternary_truthy`
+ [ 1d] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined
+ [ 26] GetGlobal value_feedback:4, dst:reg6, `ternary_false`
+ [ 2e] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg6, this_value:Undefined
+ [ 37] GetGlobal value_feedback:6, dst:reg6, `ternary_falsey`
+ [ 3f] Call value_feedback:7, call_feedback:3, dst:reg5, callee:reg6, this_value:Undefined
+ [ 48] GetGlobal value_feedback:8, dst:reg6, `while_falsey`
+ [ 50] Call value_feedback:9, call_feedback:4, dst:reg5, callee:reg6, this_value:Undefined
+ [ 59] GetGlobal value_feedback:10, dst:reg6, `do_while_falsey`
+ [ 61] Call value_feedback:11, call_feedback:5, dst:reg5, callee:reg6, this_value:Undefined
+ [ 6a] GetGlobal value_feedback:12, dst:reg6, `if_falsely`
+ [ 72] Call value_feedback:13, call_feedback:6, dst:reg5, callee:reg6, this_value:Undefined
+ [ 7b] GetGlobal value_feedback:14, dst:reg6, `if_truthy`
+ [ 83] Call value_feedback:15, call_feedback:7, dst:reg5, callee:reg6, this_value:Undefined
+ [ 8c] GetGlobal value_feedback:16, dst:reg6, `if_exhausted`
+ [ 94] Call value_feedback:17, call_feedback:8, dst:reg5, callee:reg6, this_value:Undefined
+ [ 9d] GetGlobal value_feedback:18, dst:reg6, `for_false`
+ [ a5] Call value_feedback:19, call_feedback:9, dst:reg5, callee:reg6, this_value:Undefined
+ [ ae] GetGlobal value_feedback:20, dst:reg6, `for_true`
+ [ b6] Call value_feedback:21, call_feedback:10, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Bool(true)]
+ [ c0] End value:reg5
ternary_true$dcde1744 condition-dead-code-elim.js:9:5
@@ -87,7 +87,7 @@ block0:
[ 4] Return value:reg5
-while_falsey$36ac5983 condition-dead-code-elim.js:22:17
+while_falsey$e6801a72 condition-dead-code-elim.js:22:17
Registers: 6
Blocks: 1
Constants:
@@ -96,8 +96,8 @@ while_falsey$36ac5983 condition-dead-code-elim.js:22:17
block0:
[ 0] Enter
[ 1] GetGlobal value_feedback:6, dst:reg5, `alive`
- [ a] Call value_feedback:7, call_feedback:3, dst:reg5, callee:reg5, this_value:Undefined
- [ 13] End value:Undefined
+ [ 9] Call value_feedback:7, call_feedback:3, dst:reg5, callee:reg5, this_value:Undefined
+ [ 12] End value:Undefined
alive$aeb4d6d6 condition-dead-code-elim.js:2:5
@@ -111,7 +111,7 @@ block0:
[ 1] Return value:String("alive")
-do_while_falsey$6ab77452 condition-dead-code-elim.js:37:9
+do_while_falsey$2cca691e condition-dead-code-elim.js:37:9
Registers: 6
Blocks: 1
Constants:
@@ -120,17 +120,17 @@ do_while_falsey$6ab77452 condition-dead-code-elim.js:37:9
block0:
[ 0] Enter
[ 1] GetGlobal value_feedback:0, dst:reg5, `alive`
- [ a] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg5, this_value:Undefined
- [ 13] GetGlobal value_feedback:2, dst:reg5, `alive`
- [ 1c] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg5, this_value:Undefined
- [ 25] GetGlobal value_feedback:4, dst:reg5, `alive`
- [ 2e] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg5, this_value:Undefined
- [ 37] GetGlobal value_feedback:6, dst:reg5, `alive`
- [ 40] Call value_feedback:7, call_feedback:3, dst:reg5, callee:reg5, this_value:Undefined
- [ 49] End value:Undefined
+ [ 9] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg5, this_value:Undefined
+ [ 12] GetGlobal value_feedback:2, dst:reg5, `alive`
+ [ 1a] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg5, this_value:Undefined
+ [ 23] GetGlobal value_feedback:4, dst:reg5, `alive`
+ [ 2b] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg5, this_value:Undefined
+ [ 34] GetGlobal value_feedback:6, dst:reg5, `alive`
+ [ 3c] Call value_feedback:7, call_feedback:3, dst:reg5, callee:reg5, this_value:Undefined
+ [ 45] End value:Undefined
-if_falsely$bf961fe5 condition-dead-code-elim.js:51:14
+if_falsely$6f69e0d4 condition-dead-code-elim.js:51:14
Registers: 6
Blocks: 1
Constants:
@@ -139,11 +139,11 @@ if_falsely$bf961fe5 condition-dead-code-elim.js:51:14
block0:
[ 0] Enter
[ 1] GetGlobal value_feedback:6, dst:reg5, `alive`
- [ a] Call value_feedback:7, call_feedback:3, dst:reg5, callee:reg5, this_value:Undefined
- [ 13] End value:Undefined
+ [ 9] Call value_feedback:7, call_feedback:3, dst:reg5, callee:reg5, this_value:Undefined
+ [ 12] End value:Undefined
-if_truthy$54a46ae2 condition-dead-code-elim.js:66:9
+if_truthy$16b75fae condition-dead-code-elim.js:66:9
Registers: 6
Blocks: 4
Constants:
@@ -152,26 +152,26 @@ if_truthy$54a46ae2 condition-dead-code-elim.js:66:9
block0:
[ 0] Enter
[ 1] GetGlobal value_feedback:0, dst:reg5, `alive`
- [ a] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg5, this_value:Undefined
- [ 13] Jump target:block1
+ [ 9] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg5, this_value:Undefined
+ [ 12] Jump target:block1
block1:
- [ 18] GetGlobal value_feedback:4, dst:reg5, `alive`
- [ 21] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg5, this_value:Undefined
- [ 2a] Jump target:block2
+ [ 17] GetGlobal value_feedback:4, dst:reg5, `alive`
+ [ 1f] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg5, this_value:Undefined
+ [ 28] Jump target:block2
block2:
- [ 2f] GetGlobal value_feedback:8, dst:reg5, `alive`
- [ 38] Call value_feedback:9, call_feedback:4, dst:reg5, callee:reg5, this_value:Undefined
- [ 41] Jump target:block3
+ [ 2d] GetGlobal value_feedback:8, dst:reg5, `alive`
+ [ 35] Call value_feedback:9, call_feedback:4, dst:reg5, callee:reg5, this_value:Undefined
+ [ 3e] Jump target:block3
block3:
- [ 46] GetGlobal value_feedback:12, dst:reg5, `alive`
- [ 4f] Call value_feedback:13, call_feedback:6, dst:reg5, callee:reg5, this_value:Undefined
- [ 58] End value:Undefined
+ [ 43] GetGlobal value_feedback:12, dst:reg5, `alive`
+ [ 4b] Call value_feedback:13, call_feedback:6, dst:reg5, callee:reg5, this_value:Undefined
+ [ 54] End value:Undefined
-if_exhausted$4b1f5df7 condition-dead-code-elim.js:85:14
+if_exhausted$ba4222a2 condition-dead-code-elim.js:85:14
Registers: 6
Blocks: 2
Constants:
@@ -180,18 +180,18 @@ if_exhausted$4b1f5df7 condition-dead-code-elim.js:85:14
block0:
[ 0] Enter
[ 1] GetGlobal value_feedback:4, dst:reg5, `alive`
- [ a] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg5, this_value:Undefined
- [ 13] GetGlobal value_feedback:6, dst:reg5, `alive`
- [ 1c] Call value_feedback:7, call_feedback:3, dst:reg5, callee:reg5, this_value:Undefined
- [ 25] Jump target:block1
+ [ 9] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg5, this_value:Undefined
+ [ 12] GetGlobal value_feedback:6, dst:reg5, `alive`
+ [ 1a] Call value_feedback:7, call_feedback:3, dst:reg5, callee:reg5, this_value:Undefined
+ [ 23] Jump target:block1
block1:
- [ 2a] GetGlobal value_feedback:12, dst:reg5, `alive`
- [ 33] Call value_feedback:13, call_feedback:6, dst:reg5, callee:reg5, this_value:Undefined
- [ 3c] End value:Undefined
+ [ 28] GetGlobal value_feedback:12, dst:reg5, `alive`
+ [ 30] Call value_feedback:13, call_feedback:6, dst:reg5, callee:reg5, this_value:Undefined
+ [ 39] End value:Undefined
-for_false$0ad3521b condition-dead-code-elim.js:109:9
+for_false$3215aae5 condition-dead-code-elim.js:109:9
Registers: 6
Blocks: 9
Locals: x~0
@@ -204,35 +204,35 @@ block0:
block1:
[ 6] GetGlobal value_feedback:0, dst:reg5, `dead`
- [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg5, this_value:Undefined
+ [ e] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg5, this_value:Undefined
block2:
- [ 18] Jump target:block4
+ [ 17] Jump target:block4
block3:
- [ 1d] GetGlobal value_feedback:2, dst:reg5, `dead`
- [ 26] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg5, this_value:Undefined
+ [ 1c] GetGlobal value_feedback:2, dst:reg5, `dead`
+ [ 24] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg5, this_value:Undefined
block4:
- [ 2f] Jump target:block6
+ [ 2d] Jump target:block6
block5:
- [ 34] GetGlobal value_feedback:4, dst:reg5, `dead`
- [ 3d] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg5, this_value:Undefined
+ [ 32] GetGlobal value_feedback:4, dst:reg5, `dead`
+ [ 3a] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg5, this_value:Undefined
block6:
- [ 46] GetGlobal value_feedback:6, dst:reg5, `call_this`
- [ 4f] Call value_feedback:7, call_feedback:3, dst:x~0, callee:reg5, this_value:Undefined
- [ 58] Jump target:block8
+ [ 43] GetGlobal value_feedback:6, dst:reg5, `call_this`
+ [ 4b] Call value_feedback:7, call_feedback:3, dst:x~0, callee:reg5, this_value:Undefined
+ [ 54] Jump target:block8
block7:
- [ 5d] GetGlobal value_feedback:8, dst:reg5, `dead`
- [ 66] Call value_feedback:9, call_feedback:4, dst:reg5, callee:reg5, this_value:Undefined
+ [ 59] GetGlobal value_feedback:8, dst:reg5, `dead`
+ [ 61] Call value_feedback:9, call_feedback:4, dst:reg5, callee:reg5, this_value:Undefined
block8:
- [ 6f] GetGlobal value_feedback:10, dst:reg5, `alive`
- [ 78] Call value_feedback:11, call_feedback:5, dst:reg5, callee:reg5, this_value:Undefined
- [ 81] End value:Undefined
+ [ 6a] GetGlobal value_feedback:10, dst:reg5, `alive`
+ [ 72] Call value_feedback:11, call_feedback:5, dst:reg5, callee:reg5, this_value:Undefined
+ [ 7b] End value:Undefined
call_this$ab50c8c1 condition-dead-code-elim.js:105:5
@@ -246,7 +246,7 @@ block0:
[ 1] Return value:Int32(1)
-for_true$d176dce5 condition-dead-code-elim.js:128:9
+for_true$21a31bf6 condition-dead-code-elim.js:128:9
Registers: 6
Blocks: 9
Constants:
@@ -258,30 +258,30 @@ block0:
block1:
[ 6] GetGlobal value_feedback:0, dst:reg5, `alive`
- [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg5, this_value:Undefined
- [ 18] JumpFalse condition:arg0, target:block3
+ [ e] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg5, this_value:Undefined
+ [ 17] JumpFalse condition:arg0, target:block3
block2:
- [ 1e] Jump target:block4
+ [ 1d] Jump target:block4
block3:
- [ 23] JumpLoop target:block1
+ [ 22] JumpLoop target:block1
block4:
- [ 28] Jump target:block7
+ [ 27] Jump target:block7
block5:
- [ 2d] GetGlobal value_feedback:2, dst:reg5, `alive`
- [ 36] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg5, this_value:Undefined
- [ 3f] JumpFalse condition:arg0, target:block7
+ [ 2c] GetGlobal value_feedback:2, dst:reg5, `alive`
+ [ 34] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg5, this_value:Undefined
+ [ 3d] JumpFalse condition:arg0, target:block7
block6:
- [ 45] Jump target:block8
+ [ 43] Jump target:block8
block7:
- [ 4a] JumpLoop target:block5
+ [ 48] JumpLoop target:block5
block8:
- [ 4f] GetGlobal value_feedback:4, dst:reg5, `alive`
- [ 58] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg5, this_value:Undefined
- [ 61] End value:Undefined
+ [ 4d] GetGlobal value_feedback:4, dst:reg5, `alive`
+ [ 55] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg5, this_value:Undefined
+ [ 5e] End value:Undefined
diff --git a/Tests/LibJS/Bytecode/expected/conditional-register-order.txt b/Tests/LibJS/Bytecode/expected/conditional-register-order.txt
index cc24401d53a..35690752d8c 100644
--- a/Tests/LibJS/Bytecode/expected/conditional-register-order.txt
+++ b/Tests/LibJS/Bytecode/expected/conditional-register-order.txt
@@ -1,4 +1,4 @@
-$b5474a48 conditional-register-order.js:4:1
+$651b0b37 conditional-register-order.js:4:1
Registers: 7
Blocks: 1
Constants:
@@ -8,8 +8,8 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `foo`
- [ d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 16] End value:reg5
+ [ c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 15] End value:reg5
foo$d4132c10 conditional-register-order.js:2:5
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 b414fdc3efc..e323efb5362 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 @@
-$c0fc0013 const-assignment-no-extra-tdz.js:5:1
+$d07742e0 const-assignment-no-extra-tdz.js:5:1
Registers: 7
Blocks: 4
Locals: e~0
@@ -13,21 +13,21 @@ block0:
block1:
[ 7] GetGlobal value_feedback:0, dst:reg6, `f`
- [ 10] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 19] Jump target:block3
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 18] Jump target:block3
block2:
- [ 1e] Catch value_feedback:2, dst:reg6
- [ 22] Mov dst:reg5, src:Undefined
- [ 25] Mov dst:e~0, src:<Empty>
- [ 28] Mov dst:e~0, src:reg6
- [ 2b] Jump target:block3
+ [ 1d] Catch value_feedback:2, dst:reg6
+ [ 21] Mov dst:reg5, src:Undefined
+ [ 24] Mov dst:e~0, src:<Empty>
+ [ 27] Mov dst:e~0, src:reg6
+ [ 2a] Jump target:block3
block3:
- [ 30] End value:reg5
+ [ 2f] End value:reg5
Exception handlers:
- [ 7 .. 1e] => handler block2
+ [ 7 .. 1d] => handler block2
f$31a881d5 const-assignment-no-extra-tdz.js:2:11
diff --git a/Tests/LibJS/Bytecode/expected/const-fold-exponentiation.txt b/Tests/LibJS/Bytecode/expected/const-fold-exponentiation.txt
index e1c31c8fc73..c1a562ade8a 100644
--- a/Tests/LibJS/Bytecode/expected/const-fold-exponentiation.txt
+++ b/Tests/LibJS/Bytecode/expected/const-fold-exponentiation.txt
@@ -1,4 +1,4 @@
-$0b6e3321 const-fold-exponentiation.js:1:7
+$d04518fd const-fold-exponentiation.js:1:7
Registers: 6
Blocks: 1
Constants:
@@ -10,7 +10,7 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] DynamicInitializeLexicalBinding `a`, src:Double(nan)
- [ b] DynamicInitializeLexicalBinding `b`, src:Double(nan)
- [ 12] DynamicInitializeLexicalBinding `c`, src:Double(nan)
- [ 19] DynamicInitializeLexicalBinding `d`, src:Int32(1024)
- [ 20] End value:reg5
+ [ a] DynamicInitializeLexicalBinding `b`, src:Double(nan)
+ [ 10] DynamicInitializeLexicalBinding `c`, src:Double(nan)
+ [ 16] DynamicInitializeLexicalBinding `d`, src:Int32(1024)
+ [ 1c] 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 18fbdd8690e..b58d9ac07fe 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 @@
-$7f1a6d8f const-fold-template-literals.js:20:7
+$c9beca80 const-fold-template-literals.js:20:7
Registers: 7
Blocks: 1
Constants:
@@ -14,33 +14,33 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] DynamicInitializeLexicalBinding `a`, src:String("abcxyz")
- [ b] DynamicInitializeLexicalBinding `b`, src:String("abcxyz")
- [ 12] DynamicInitializeLexicalBinding `c`, src:String("abcxyz")
- [ 19] DynamicInitializeLexicalBinding `d`, src:String("abcxyz")
- [ 20] DynamicInitializeLexicalBinding `e`, src:String("abcxyz")
- [ 27] DynamicInitializeLexicalBinding `f`, src:String("abcxyz")
- [ 2e] Mov dst:reg6, src:String("abc")
- [ 31] ConcatString dst:reg6, src:String("xyz")
- [ 34] DynamicInitializeLexicalBinding `g`, src:reg6
- [ 3b] GetGlobal value_feedback:0, dst:reg6, `prefix`
- [ 44] Call value_feedback:1, call_feedback:0, dst:reg6, callee:reg6, this_value:Undefined, arguments:[String("abc")]
- [ 4e] DynamicInitializeLexicalBinding `_prefix`, src:reg6
- [ 55] GetGlobal value_feedback:2, dst:reg6, `suffix`
- [ 5e] Call value_feedback:3, call_feedback:1, dst:reg6, callee:reg6, this_value:Undefined, arguments:[String("abc")]
- [ 68] DynamicInitializeLexicalBinding `_suffix`, src:reg6
- [ 6f] GetGlobal value_feedback:4, dst:reg6, `tostring`
- [ 78] Call value_feedback:5, call_feedback:2, dst:reg6, callee:reg6, this_value:Undefined, arguments:[String("abc")]
- [ 82] DynamicInitializeLexicalBinding `_tostring`, src:reg6
- [ 89] GetGlobal value_feedback:6, dst:reg6, `multi`
- [ 92] Call value_feedback:7, call_feedback:3, dst:reg6, callee:reg6, this_value:Undefined, arguments:[Int32(1), Int32(2), Int32(3)]
- [ 9e] DynamicInitializeLexicalBinding `_multi`, src:reg6
- [ a5] GetGlobal value_feedback:8, dst:reg6, `literal`
- [ ae] Call value_feedback:9, call_feedback:4, dst:reg6, callee:reg6, this_value:Undefined
- [ b7] DynamicInitializeLexicalBinding `_literal`, src:reg6
- [ be] GetGlobal value_feedback:10, dst:reg6, `empty`
- [ c7] Call value_feedback:11, call_feedback:5, dst:reg6, callee:reg6, this_value:Undefined
- [ d0] DynamicInitializeLexicalBinding `_empty`, src:reg6
- [ d7] End value:reg5
+ [ a] DynamicInitializeLexicalBinding `b`, src:String("abcxyz")
+ [ 10] DynamicInitializeLexicalBinding `c`, src:String("abcxyz")
+ [ 16] DynamicInitializeLexicalBinding `d`, src:String("abcxyz")
+ [ 1c] DynamicInitializeLexicalBinding `e`, src:String("abcxyz")
+ [ 22] DynamicInitializeLexicalBinding `f`, src:String("abcxyz")
+ [ 28] Mov dst:reg6, src:String("abc")
+ [ 2b] ConcatString dst:reg6, src:String("xyz")
+ [ 2e] DynamicInitializeLexicalBinding `g`, src:reg6
+ [ 34] GetGlobal value_feedback:0, dst:reg6, `prefix`
+ [ 3c] Call value_feedback:1, call_feedback:0, dst:reg6, callee:reg6, this_value:Undefined, arguments:[String("abc")]
+ [ 46] DynamicInitializeLexicalBinding `_prefix`, src:reg6
+ [ 4c] GetGlobal value_feedback:2, dst:reg6, `suffix`
+ [ 54] Call value_feedback:3, call_feedback:1, dst:reg6, callee:reg6, this_value:Undefined, arguments:[String("abc")]
+ [ 5e] DynamicInitializeLexicalBinding `_suffix`, src:reg6
+ [ 64] GetGlobal value_feedback:4, dst:reg6, `tostring`
+ [ 6c] Call value_feedback:5, call_feedback:2, dst:reg6, callee:reg6, this_value:Undefined, arguments:[String("abc")]
+ [ 76] DynamicInitializeLexicalBinding `_tostring`, src:reg6
+ [ 7c] GetGlobal value_feedback:6, dst:reg6, `multi`
+ [ 84] Call value_feedback:7, call_feedback:3, dst:reg6, callee:reg6, this_value:Undefined, arguments:[Int32(1), Int32(2), Int32(3)]
+ [ 90] DynamicInitializeLexicalBinding `_multi`, src:reg6
+ [ 96] GetGlobal value_feedback:8, dst:reg6, `literal`
+ [ 9e] Call value_feedback:9, call_feedback:4, dst:reg6, callee:reg6, this_value:Undefined
+ [ a7] DynamicInitializeLexicalBinding `_literal`, src:reg6
+ [ ad] GetGlobal value_feedback:10, dst:reg6, `empty`
+ [ b5] Call value_feedback:11, call_feedback:5, dst:reg6, callee:reg6, this_value:Undefined
+ [ be] DynamicInitializeLexicalBinding `_empty`, src:reg6
+ [ c4] End value:reg5
prefix$bcd0360b const-fold-template-literals.js:2:5
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 a3b34fa9eec..d95a9542359 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,4 +1,4 @@
-$9c6c3563 constant-fold-large-string-to-number.js:1:5
+$563356ff constant-fold-large-string-to-number.js:1:5
Registers: 6
Blocks: 1
Constants:
@@ -9,7 +9,7 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] SetGlobal `a`, src:Double(18446744073709552000)
- [ b] SetGlobal `b`, src:Double(18446744073709552000)
- [ 12] SetGlobal `c`, src:Double(18446744073709552000)
- [ 19] SetGlobal `d`, src:Double(18446744073709552000)
- [ 20] End value:reg5
+ [ a] SetGlobal `b`, src:Double(18446744073709552000)
+ [ 10] SetGlobal `c`, src:Double(18446744073709552000)
+ [ 16] SetGlobal `d`, src:Double(18446744073709552000)
+ [ 1c] 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 2c78e1624d0..25d60327d1d 100644
--- a/Tests/LibJS/Bytecode/expected/constant-fold-string-to-number.txt
+++ b/Tests/LibJS/Bytecode/expected/constant-fold-string-to-number.txt
@@ -1,4 +1,4 @@
-$9c6c3563 constant-fold-string-to-number.js:1:5
+$563356ff constant-fold-string-to-number.js:1:5
Registers: 6
Blocks: 1
Constants:
@@ -12,7 +12,7 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] SetGlobal `a`, src:Int32(12345)
- [ b] SetGlobal `b`, src:Int32(123450)
- [ 12] SetGlobal `c`, src:Int32(-42)
- [ 19] SetGlobal `d`, src:Int32(-6)
- [ 20] End value:reg5
+ [ a] SetGlobal `b`, src:Int32(123450)
+ [ 10] SetGlobal `c`, src:Int32(-42)
+ [ 16] SetGlobal `d`, src:Int32(-6)
+ [ 1c] End value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/debugger-statement.txt b/Tests/LibJS/Bytecode/expected/debugger-statement.txt
index 7fab6b68dbf..33fd8245091 100644
--- a/Tests/LibJS/Bytecode/expected/debugger-statement.txt
+++ b/Tests/LibJS/Bytecode/expected/debugger-statement.txt
@@ -1,4 +1,4 @@
-$5c602aaa debugger-statement.js:6:1
+$cb82ef55 debugger-statement.js:6:1
Registers: 7
Blocks: 1
Constants:
@@ -8,8 +8,8 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `run`
- [ d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 16] End value:reg5
+ [ c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 15] End value:reg5
run$8aea4d07 debugger-statement.js:2:5
diff --git a/Tests/LibJS/Bytecode/expected/default-param-self-reference.txt b/Tests/LibJS/Bytecode/expected/default-param-self-reference.txt
index 24a63a304fd..f0e97e55044 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 @@
-$fabe2a7f default-param-self-reference.js:2:1
+$aa91eb6e default-param-self-reference.js:2:1
Registers: 7
Blocks: 1
Constants:
@@ -9,8 +9,8 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `f`
- [ d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(1)]
- [ 17] End value:reg5
+ [ c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(1)]
+ [ 16] End value:reg5
f$89b7e304 default-param-self-reference.js:1:12
diff --git a/Tests/LibJS/Bytecode/expected/delete-expression-register.txt b/Tests/LibJS/Bytecode/expected/delete-expression-register.txt
index 8af1e5e61fe..e4567fb7dfd 100644
--- a/Tests/LibJS/Bytecode/expected/delete-expression-register.txt
+++ b/Tests/LibJS/Bytecode/expected/delete-expression-register.txt
@@ -1,4 +1,4 @@
-$ac8c69bb delete-expression-register.js:6:1
+$5c602aaa delete-expression-register.js:6:1
Registers: 7
Blocks: 1
Constants:
@@ -9,8 +9,8 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `f`
- [ d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(1)]
- [ 17] End value:reg5
+ [ c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(1)]
+ [ 16] End value:reg5
f$eb906a5e delete-expression-register.js:2:9
diff --git a/Tests/LibJS/Bytecode/expected/delete-super-eval-order.txt b/Tests/LibJS/Bytecode/expected/delete-super-eval-order.txt
index 7d4d9971f7d..fde1d9a1a95 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 @@
-$2e5d6fa0 delete-super-eval-order.js:4:1
+$a308166b delete-super-eval-order.js:4:1
Registers: 8
Blocks: 4
Constants:
@@ -12,29 +12,29 @@ block0:
[ 3] Mov dst:reg5, src:Undefined
[ 6] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
[ 12] CreateVariable `A`, is_immutable:true, is_global:false, is_strict:true
- [ 1a] SetLexicalEnvironment environment:reg4
- [ 1c] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false, element_keys:[element_keys:String("m")]
- [ 2c] DynamicInitializeLexicalBinding `A`, src:reg6
- [ 33] Mov dst:reg5, src:Undefined
+ [ 19] SetLexicalEnvironment environment:reg4
+ [ 1b] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false, element_keys:[element_keys:String("m")]
+ [ 2a] DynamicInitializeLexicalBinding `A`, src:reg6
+ [ 30] Mov dst:reg5, src:Undefined
block1:
- [ 36] GetGlobal value_feedback:0, dst:reg6, `A`
- [ 3f] CallConstruct value_feedback:1, call_feedback:0, dst:reg6, callee:reg6
- [ 47] GetById value_feedback:2, dst:reg7, base:reg6, `m`
- [ 51] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[String("x")]
- [ 5b] Jump target:block3
+ [ 33] GetGlobal value_feedback:0, dst:reg6, `A`
+ [ 3b] CallConstruct value_feedback:1, call_feedback:0, dst:reg6, callee:reg6
+ [ 43] GetById value_feedback:2, dst:reg7, base:reg6, `m`
+ [ 4c] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[String("x")]
+ [ 56] Jump target:block3
block2:
- [ 60] Catch value_feedback:4, dst:reg6
- [ 64] SetLexicalEnvironment environment:reg4
- [ 66] Mov dst:reg5, src:Undefined
- [ 69] Jump target:block3
+ [ 5b] Catch value_feedback:4, dst:reg6
+ [ 5f] SetLexicalEnvironment environment:reg4
+ [ 61] Mov dst:reg5, src:Undefined
+ [ 64] Jump target:block3
block3:
- [ 6e] End value:reg5
+ [ 69] End value:reg5
Exception handlers:
- [ 36 .. 60] => handler block2
+ [ 33 .. 5b] => handler block2
A$5e284e97
@@ -48,7 +48,7 @@ block0:
[ 1] End value:Undefined
-m$a8a557fc delete-super-eval-order.js:6:9
+m$f8d1970d delete-super-eval-order.js:6:9
Registers: 6
Blocks: 1
@@ -57,4 +57,4 @@ block0:
[ 1] ResolveThisBinding
[ 2] ResolveSuperBase dst:reg5
[ 4] NewReferenceError dst:reg5, Can't delete a property on 'super'
- [ 9] Throw src:reg5
+ [ 8] Throw src:reg5
diff --git a/Tests/LibJS/Bytecode/expected/delete-super-property.txt b/Tests/LibJS/Bytecode/expected/delete-super-property.txt
index e1822fbafe6..b6818914c5a 100644
--- a/Tests/LibJS/Bytecode/expected/delete-super-property.txt
+++ b/Tests/LibJS/Bytecode/expected/delete-super-property.txt
@@ -1,4 +1,4 @@
-$e49c4d13 delete-super-property.js:1:1
+$1895f79a delete-super-property.js:1:1
Registers: 8
Blocks: 7
Locals: e~0, e~1
@@ -14,50 +14,50 @@ block0:
[ 3] Mov dst:reg5, src:Undefined
[ 6] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
[ 12] CreateVariable `A`, is_immutable:true, is_global:false, is_strict:true
- [ 1a] SetLexicalEnvironment environment:reg4
- [ 1c] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false, element_keys:[element_keys:String("foo"), element_keys:String("baz")]
- [ 2d] DynamicInitializeLexicalBinding `A`, src:reg6
- [ 34] Mov dst:reg5, src:Undefined
+ [ 19] SetLexicalEnvironment environment:reg4
+ [ 1b] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false, element_keys:[element_keys:String("foo"), element_keys:String("baz")]
+ [ 2b] DynamicInitializeLexicalBinding `A`, src:reg6
+ [ 31] Mov dst:reg5, src:Undefined
block1:
- [ 37] GetGlobal value_feedback:0, dst:reg6, `A`
- [ 40] CallConstruct value_feedback:1, call_feedback:0, dst:reg6, callee:reg6
- [ 48] GetById value_feedback:2, dst:reg7, base:reg6, `foo`
- [ 52] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6
- [ 5b] Jump target:block3
+ [ 34] GetGlobal value_feedback:0, dst:reg6, `A`
+ [ 3c] CallConstruct value_feedback:1, call_feedback:0, dst:reg6, callee:reg6
+ [ 44] GetById value_feedback:2, dst:reg7, base:reg6, `foo`
+ [ 4d] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6
+ [ 56] Jump target:block3
block2:
- [ 60] Catch value_feedback:4, dst:reg6
- [ 64] SetLexicalEnvironment environment:reg4
- [ 66] Mov dst:reg5, src:Undefined
- [ 69] Mov dst:e~0, src:<Empty>
- [ 6c] Mov dst:e~0, src:reg6
- [ 6f] Jump target:block3
+ [ 5b] Catch value_feedback:4, dst:reg6
+ [ 5f] SetLexicalEnvironment environment:reg4
+ [ 61] Mov dst:reg5, src:Undefined
+ [ 64] Mov dst:e~0, src:<Empty>
+ [ 67] Mov dst:e~0, src:reg6
+ [ 6a] Jump target:block3
block3:
- [ 74] Mov dst:reg5, src:Undefined
+ [ 6f] Mov dst:reg5, src:Undefined
block4:
- [ 77] GetGlobal value_feedback:5, dst:reg6, `A`
- [ 80] CallConstruct value_feedback:6, call_feedback:2, dst:reg6, callee:reg6
- [ 88] GetById value_feedback:7, dst:reg7, base:reg6, `baz`
- [ 92] Call value_feedback:8, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6
- [ 9b] Jump target:block6
+ [ 72] GetGlobal value_feedback:5, dst:reg6, `A`
+ [ 7a] CallConstruct value_feedback:6, call_feedback:2, dst:reg6, callee:reg6
+ [ 82] GetById value_feedback:7, dst:reg7, base:reg6, `baz`
+ [ 8b] Call value_feedback:8, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6
+ [ 94] Jump target:block6
block5:
- [ a0] Catch value_feedback:9, dst:reg6
- [ a4] SetLexicalEnvironment environment:reg4
- [ a6] Mov dst:reg5, src:Undefined
- [ a9] Mov dst:e~1, src:<Empty>
- [ ac] Mov dst:e~1, src:reg6
- [ af] Jump target:block6
+ [ 99] Catch value_feedback:9, dst:reg6
+ [ 9d] SetLexicalEnvironment environment:reg4
+ [ 9f] Mov dst:reg5, src:Undefined
+ [ a2] Mov dst:e~1, src:<Empty>
+ [ a5] Mov dst:e~1, src:reg6
+ [ a8] Jump target:block6
block6:
- [ b4] End value:reg5
+ [ ad] End value:reg5
Exception handlers:
- [ 37 .. 60] => handler block2
- [ 77 .. a0] => handler block5
+ [ 34 .. 5b] => handler block2
+ [ 72 .. 99] => handler block5
A$5e284e97
@@ -71,7 +71,7 @@ block0:
[ 1] End value:Undefined
-foo$3d864862 delete-super-property.js:3:9
+foo$8db28773 delete-super-property.js:3:9
Registers: 6
Blocks: 1
@@ -80,10 +80,10 @@ block0:
[ 1] ResolveThisBinding
[ 2] ResolveSuperBase dst:reg5
[ 4] NewReferenceError dst:reg5, Can't delete a property on 'super'
- [ 9] Throw src:reg5
+ [ 8] Throw src:reg5
-baz$1ba87620 delete-super-property.js:6:9
+baz$6bd4b531 delete-super-property.js:6:9
Registers: 6
Blocks: 1
@@ -92,4 +92,4 @@ block0:
[ 1] ResolveThisBinding
[ 2] ResolveSuperBase dst:reg5
[ 4] NewReferenceError dst:reg5, Can't delete a property on 'super'
- [ 9] Throw src:reg5
+ [ 8] Throw src:reg5
diff --git a/Tests/LibJS/Bytecode/expected/destructure-array-rest.txt b/Tests/LibJS/Bytecode/expected/destructure-array-rest.txt
index 948f464b018..f60998cfdca 100644
--- a/Tests/LibJS/Bytecode/expected/destructure-array-rest.txt
+++ b/Tests/LibJS/Bytecode/expected/destructure-array-rest.txt
@@ -1,4 +1,4 @@
-$844ee995 destructure-array-rest.js:9:1
+$152c24ea destructure-array-rest.js:9:1
Registers: 7
Blocks: 1
Constants:
@@ -8,8 +8,8 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `f`
- [ d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 16] End value:reg5
+ [ c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 15] End value:reg5
f$00904a4a destructure-array-rest.js:6:5
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 84ca53acb81..1698008ad77 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 @@
-$3cd6167b destructuring-assignment-in-logical-and.js:5:1
+$4c515948 destructuring-assignment-in-logical-and.js:5:1
Registers: 7
Blocks: 1
Constants:
@@ -10,8 +10,8 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `f`
- [ d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Null, Int32(0)]
- [ 18] End value:reg5
+ [ c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Null, Int32(0)]
+ [ 17] End value:reg5
f$3aa045dc destructuring-assignment-in-logical-and.js:2:9
diff --git a/Tests/LibJS/Bytecode/expected/destructuring-assignment.txt b/Tests/LibJS/Bytecode/expected/destructuring-assignment.txt
index aaf8de860db..a104844ec07 100644
--- a/Tests/LibJS/Bytecode/expected/destructuring-assignment.txt
+++ b/Tests/LibJS/Bytecode/expected/destructuring-assignment.txt
@@ -1,4 +1,4 @@
-$c85eda14 destructuring-assignment.js:28:1
+$d7da1ce1 destructuring-assignment.js:28:1
Registers: 7
Blocks: 1
Constants:
@@ -8,15 +8,15 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `array_destructuring_with_class_default`
- [ d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 16] GetGlobal value_feedback:2, dst:reg6, `object_destructuring_with_function_default`
- [ 1f] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined
- [ 28] GetGlobal value_feedback:4, dst:reg6, `setter_parameter_resolution`
- [ 31] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg6, this_value:Undefined
- [ 3a] End value:reg5
+ [ c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 15] GetGlobal value_feedback:2, dst:reg6, `object_destructuring_with_function_default`
+ [ 1d] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined
+ [ 26] GetGlobal value_feedback:4, dst:reg6, `setter_parameter_resolution`
+ [ 2e] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg6, this_value:Undefined
+ [ 37] End value:reg5
-array_destructuring_with_class_default$e5b2a313 destructuring-assignment.js:5:9
+array_destructuring_with_class_default$860b2135 destructuring-assignment.js:5:9
Registers: 14
Blocks: 12
Locals: x~0
@@ -45,39 +45,39 @@ block3:
block4:
[ 2f] CreateLexicalEnvironment dst:reg13, parent:reg4, capacity:1, is_catch_environment:false
[ 3b] CreateVariable `C`, is_immutable:true, is_global:false, is_strict:true
- [ 43] SetLexicalEnvironment environment:reg4
- [ 45] NewClass dst:reg12, class_environment:reg13, class_blueprint_index:0, element_keys_are_in_array:false
- [ 54] Mov dst:reg11, src:reg12
+ [ 42] SetLexicalEnvironment environment:reg4
+ [ 44] NewClass dst:reg12, class_environment:reg13, class_blueprint_index:0, element_keys_are_in_array:false
+ [ 52] Mov dst:reg11, src:reg12
block5:
- [ 57] Mov dst:x~0, src:reg11
+ [ 55] Mov dst:x~0, src:reg11
block6:
- [ 5a] JumpTrue condition:reg10, target:block11
+ [ 58] JumpTrue condition:reg10, target:block11
block7:
- [ 60] IteratorClose iterator_object:reg8, iterator_next:reg9, iterator_done:reg10, completion_value:Undefined
- [ 68] Jump target:block11
+ [ 5e] IteratorClose iterator_object:reg8, iterator_next:reg9, iterator_done:reg10, completion_value:Undefined
+ [ 66] Jump target:block11
block8:
- [ 6d] Catch value_feedback:0, dst:reg11
- [ 71] SetLexicalEnvironment environment:reg4
- [ 73] JumpTrue condition:reg10, target:block10
+ [ 6b] Catch value_feedback:0, dst:reg11
+ [ 6f] SetLexicalEnvironment environment:reg4
+ [ 71] JumpTrue condition:reg10, target:block10
block9:
- [ 79] IteratorClose iterator_object:reg8, iterator_next:reg9, iterator_done:reg10, completion_value:reg11
+ [ 77] IteratorClose iterator_object:reg8, iterator_next:reg9, iterator_done:reg10, completion_value:reg11
block10:
- [ 81] Throw src:reg11
+ [ 7f] Throw src:reg11
block11:
- [ 83] Return value:x~0
+ [ 81] Return value:x~0
Exception handlers:
- [ 1c .. 5a] => handler block8
+ [ 1c .. 58] => handler block8
-object_destructuring_with_function_default$2ebd9cb6 destructuring-assignment.js:11:9
+object_destructuring_with_function_default$8e651e94 destructuring-assignment.js:11:9
Registers: 9
Blocks: 3
Locals: x~0
@@ -91,17 +91,17 @@ block0:
[ 8] Mov dst:reg6, src:reg5
[ b] ThrowIfNullish src:reg6
[ d] GetById value_feedback:0, dst:reg7, base:reg6, `x`
- [ 17] JumpUndefined condition:reg7, true_target:block1, false_target:block2
+ [ 16] JumpUndefined condition:reg7, true_target:block1, false_target:block2
block1:
- [ 21] NewFunction dst:reg7, shared_function_data_index:0 (x)
+ [ 20] NewFunction dst:reg7, shared_function_data_index:0 (x)
block2:
- [ 29] Mov dst:x~0, src:reg7
- [ 2c] Return value:x~0
+ [ 27] Mov dst:x~0, src:reg7
+ [ 2a] Return value:x~0
-setter_parameter_resolution$b2d13278 destructuring-assignment.js:17:9
+setter_parameter_resolution$1278b456 destructuring-assignment.js:17:9
Registers: 13
Blocks: 12
Constants:
@@ -111,55 +111,55 @@ setter_parameter_resolution$b2d13278 destructuring-assignment.js:17:9
block0:
[ 0] Enter
[ 1] CreateVariable `setValue`, is_immutable:false, is_global:false, is_strict:false
- [ 9] InitializeVariableBinding `setValue`, src:Undefined
- [ 11] NewPrimitiveArray dst:reg6, elements:[23]
- [ 1f] Mov dst:reg7, src:Bool(false)
- [ 22] GetIterator dst_iterator_object:reg8, dst_iterator_next:reg9, dst_iterator_done:reg10, iterable:reg6, fast_array_mode_allowed:true
+ [ 8] InitializeVariableBinding `setValue`, src:Undefined
+ [ f] NewPrimitiveArray dst:reg6, elements:[23]
+ [ 1d] Mov dst:reg7, src:Bool(false)
+ [ 20] GetIterator dst_iterator_object:reg8, dst_iterator_next:reg9, dst_iterator_done:reg10, iterable:reg6, fast_array_mode_allowed:true
block1:
- [ 2b] NewObject dst:reg11
- [ 2f] NewFunction dst:reg12, shared_function_data_index:0 (set y), home_object:reg11
- [ 37] PutById base:reg11, `y`, src:reg12, kind:Setter
+ [ 29] NewObject dst:reg11
+ [ 2d] NewFunction dst:reg12, shared_function_data_index:0 (set y), home_object:reg11
+ [ 34] PutById base:reg11, `y`, src:reg12, kind:Setter
block2:
- [ 40] IteratorNextUnpack dst_value:reg12, dst_done:reg7, iterator_object:reg8, iterator_next:reg9, iterator_done:reg10
+ [ 3c] IteratorNextUnpack dst_value:reg12, dst_done:reg7, iterator_object:reg8, iterator_next:reg9, iterator_done:reg10
block3:
- [ 46] JumpFalse condition:reg7, target:block5
+ [ 42] JumpFalse condition:reg7, target:block5
block4:
- [ 4c] Mov dst:reg12, src:Undefined
+ [ 48] Mov dst:reg12, src:Undefined
block5:
- [ 4f] PutById base:reg11, `y`, src:reg12, kind:Normal
+ [ 4b] PutById base:reg11, `y`, src:reg12, kind:Normal
block6:
- [ 58] JumpTrue condition:reg10, target:block11
+ [ 53] JumpTrue condition:reg10, target:block11
block7:
- [ 5e] IteratorClose iterator_object:reg8, iterator_next:reg9, iterator_done:reg10, completion_value:Undefined
- [ 66] Jump target:block11
+ [ 59] IteratorClose iterator_object:reg8, iterator_next:reg9, iterator_done:reg10, completion_value:Undefined
+ [ 61] Jump target:block11
block8:
- [ 6b] Catch value_feedback:0, dst:reg11
- [ 6f] JumpTrue condition:reg10, target:block10
+ [ 66] Catch value_feedback:0, dst:reg11
+ [ 6a] JumpTrue condition:reg10, target:block10
block9:
- [ 75] IteratorClose iterator_object:reg8, iterator_next:reg9, iterator_done:reg10, completion_value:reg11
+ [ 70] IteratorClose iterator_object:reg8, iterator_next:reg9, iterator_done:reg10, completion_value:reg11
block10:
- [ 7d] Throw src:reg11
+ [ 78] Throw src:reg11
block11:
- [ 7f] GetInitializedBinding value_feedback:1, dst:reg5, `setValue`
- [ 89] Return value:reg5
+ [ 7a] GetInitializedBinding value_feedback:1, dst:reg5, `setValue`
+ [ 83] Return value:reg5
Exception handlers:
- [ 2b .. 40] => handler block8
- [ 46 .. 58] => handler block8
+ [ 29 .. 3c] => handler block8
+ [ 42 .. 53] => handler block8
-set y$46e77852 destructuring-assignment.js:21:26
+set y$9713b763 destructuring-assignment.js:21:26
Registers: 5
Blocks: 1
Constants:
@@ -168,4 +168,4 @@ set y$46e77852 destructuring-assignment.js:21:26
block0:
[ 0] Enter
[ 1] SetLexicalBinding `setValue`, src:arg0
- [ 9] End value:Undefined
+ [ 8] 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 e694be1e0fb..b004b91c566 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 @@
-$c3bff123 destructuring-let-compound-assign.js:5:1
+$d33b33f0 destructuring-let-compound-assign.js:5:1
Registers: 9
Blocks: 1
Constants:
@@ -8,13 +8,13 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `f`
- [ d] NewObject dst:reg7
- [ 11] NewObject dst:reg8
- [ 15] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7, reg8]
- [ 20] End value:reg5
+ [ c] NewObject dst:reg7
+ [ 10] NewObject dst:reg8
+ [ 14] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7, reg8]
+ [ 1f] End value:reg5
-f$508c5e77 destructuring-let-compound-assign.js:2:5
+f$b033e055 destructuring-let-compound-assign.js:2:5
Registers: 7
Blocks: 1
Locals: a~0
@@ -29,7 +29,7 @@ block0:
[ 4] ThrowIfNullish src:arg0
[ 6] Mov dst:reg5, src:arg0
[ 9] GetById value_feedback:0, dst:a~0, base:reg5, `patchFlag`
- [ 13] GetById value_feedback:1, dst:reg5, base:arg1, `patchFlag`
- [ 1d] BitwiseAnd arith_feedback:0, dst:reg5, lhs:Int32(16), rhs:reg5
- [ 23] BitwiseOr arith_feedback:1, dst:a~0, lhs:a~0, rhs:reg5
- [ 29] End value:Undefined
+ [ 12] GetById value_feedback:1, dst:reg5, base:arg1, `patchFlag`
+ [ 1b] BitwiseAnd arith_feedback:0, dst:reg5, lhs:Int32(16), rhs:reg5
+ [ 21] BitwiseOr arith_feedback:1, dst:a~0, lhs:a~0, rhs:reg5
+ [ 27] 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 5697e28b996..5ca09b5f52c 100644
--- a/Tests/LibJS/Bytecode/expected/destructuring-no-base-identifier.txt
+++ b/Tests/LibJS/Bytecode/expected/destructuring-no-base-identifier.txt
@@ -1,4 +1,4 @@
-$e56904d7 destructuring-no-base-identifier.js:1:5
+$548bc982 destructuring-no-base-identifier.js:1:5
Registers: 14
Blocks: 12
Constants:
@@ -10,46 +10,46 @@ block0:
[ 1] Mov dst:reg5, src:Undefined
[ 4] NewObject dst:reg6
[ 8] SetGlobal `x`, src:reg6
- [ f] NewPrimitiveArray dst:reg7, elements:[42]
- [ 1d] Mov dst:reg8, src:Bool(false)
- [ 20] GetIterator dst_iterator_object:reg9, dst_iterator_next:reg10, dst_iterator_done:reg11, iterable:reg7, fast_array_mode_allowed:true
+ [ e] NewPrimitiveArray dst:reg7, elements:[42]
+ [ 1c] Mov dst:reg8, src:Bool(false)
+ [ 1f] GetIterator dst_iterator_object:reg9, dst_iterator_next:reg10, dst_iterator_done:reg11, iterable:reg7, fast_array_mode_allowed:true
block1:
- [ 29] GetGlobal value_feedback:0, dst:reg12, `x`
+ [ 28] GetGlobal value_feedback:0, dst:reg12, `x`
block2:
- [ 32] IteratorNextUnpack dst_value:reg13, dst_done:reg8, iterator_object:reg9, iterator_next:reg10, iterator_done:reg11
+ [ 30] IteratorNextUnpack dst_value:reg13, dst_done:reg8, iterator_object:reg9, iterator_next:reg10, iterator_done:reg11
block3:
- [ 38] JumpFalse condition:reg8, target:block5
+ [ 36] JumpFalse condition:reg8, target:block5
block4:
- [ 3e] Mov dst:reg13, src:Undefined
+ [ 3c] Mov dst:reg13, src:Undefined
block5:
- [ 41] PutById base:reg12, `y`, src:reg13, kind:Normal
+ [ 3f] PutById base:reg12, `y`, src:reg13, kind:Normal
block6:
- [ 4a] JumpTrue condition:reg11, target:block11
+ [ 47] JumpTrue condition:reg11, target:block11
block7:
- [ 50] IteratorClose iterator_object:reg9, iterator_next:reg10, iterator_done:reg11, completion_value:Undefined
- [ 58] Jump target:block11
+ [ 4d] IteratorClose iterator_object:reg9, iterator_next:reg10, iterator_done:reg11, completion_value:Undefined
+ [ 55] Jump target:block11
block8:
- [ 5d] Catch value_feedback:1, dst:reg12
- [ 61] JumpTrue condition:reg11, target:block10
+ [ 5a] Catch value_feedback:1, dst:reg12
+ [ 5e] JumpTrue condition:reg11, target:block10
block9:
- [ 67] IteratorClose iterator_object:reg9, iterator_next:reg10, iterator_done:reg11, completion_value:reg12
+ [ 64] IteratorClose iterator_object:reg9, iterator_next:reg10, iterator_done:reg11, completion_value:reg12
block10:
- [ 6f] Throw src:reg12
+ [ 6c] Throw src:reg12
block11:
- [ 71] Mov dst:reg5, src:reg7
- [ 74] End value:reg5
+ [ 6e] Mov dst:reg5, src:reg7
+ [ 71] End value:reg5
Exception handlers:
- [ 29 .. 32] => handler block8
- [ 38 .. 4a] => handler block8
+ [ 28 .. 30] => handler block8
+ [ 36 .. 47] => 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 66bc9901be2..7872b140fff 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 @@
-$da96995b destructuring-param-no-param-expressions.js:10:1
+$2ac2d86c destructuring-param-no-param-expressions.js:10:1
Registers: 8
Blocks: 1
Constants:
@@ -10,15 +10,15 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `f`
- [ d] NewObject dst:reg7
- [ 11] InitObjectLiteralProperty object:reg7, `captured`, src:Int32(1), shape_cache_index:0, property_slot:0
- [ 1b] InitObjectLiteralProperty object:reg7, `local`, src:Int32(2), shape_cache_index:0, property_slot:1
- [ 25] CacheObjectShape object:reg7
- [ 29] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
- [ 33] End value:reg5
+ [ c] NewObject dst:reg7
+ [ 10] InitObjectLiteralProperty object:reg7, `captured`, src:Int32(1), shape_cache_index:0, property_slot:0
+ [ 19] InitObjectLiteralProperty object:reg7, `local`, src:Int32(2), shape_cache_index:0, property_slot:1
+ [ 22] CacheObjectShape object:reg7
+ [ 26] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
+ [ 30] End value:reg5
-f$f4d3d2d5 destructuring-param-no-param-expressions.js:6:12
+f$c925fb7e destructuring-param-no-param-expressions.js:6:12
Registers: 7
Blocks: 1
Locals: local~0
@@ -26,10 +26,10 @@ f$f4d3d2d5 destructuring-param-no-param-expressions.js:6:12
block0:
[ 0] Enter
[ 1] CreateVariable `captured`, is_immutable:false, is_global:false, is_strict:false
- [ 9] ThrowIfNullish src:arg0
- [ b] Mov dst:reg5, src:arg0
- [ e] GetById value_feedback:0, dst:reg6, base:reg5, `captured`
- [ 18] InitializeLexicalBinding `captured`, src:reg6
- [ 20] GetById value_feedback:1, dst:local~0, base:reg5, `local`
- [ 2a] NewFunction dst:reg5, shared_function_data_index:0
- [ 32] Return value:reg5
+ [ 8] ThrowIfNullish src:arg0
+ [ a] Mov dst:reg5, src:arg0
+ [ d] GetById value_feedback:0, dst:reg6, base:reg5, `captured`
+ [ 16] InitializeLexicalBinding `captured`, src:reg6
+ [ 1d] GetById value_feedback:1, dst:local~0, base:reg5, `local`
+ [ 26] NewFunction dst:reg5, shared_function_data_index:0
+ [ 2d] 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 6e24e65eb0f..054e9531003 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 @@
-$dd360933 do-while-register-allocation.js:15:1
+$aec440cc do-while-register-allocation.js:15:1
Registers: 7
Blocks: 1
Constants:
@@ -8,11 +8,11 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `test`
- [ d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 16] End value:reg5
+ [ c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 15] End value:reg5
-test$96e1c8bc do-while-register-allocation.js:8:9
+test$373a46de do-while-register-allocation.js:8:9
Registers: 7
Blocks: 3
Locals: i~0
@@ -25,17 +25,17 @@ block0:
[ 1] Mov dst:i~0, src:Undefined
[ 4] Mov dst:i~0, src:Int32(0)
[ 7] GetGlobal value_feedback:0, dst:reg5, `foo`
- [ 10] NewArray dst:reg6
- [ 13] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg5, this_value:Undefined, arguments:[reg6]
+ [ f] NewArray dst:reg6
+ [ 12] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg5, this_value:Undefined, arguments:[reg6]
block1:
- [ 1d] GetGlobal value_feedback:2, dst:reg5, `bar`
- [ 26] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg5, this_value:Undefined, arguments:[i~0]
- [ 30] Increment arith_feedback:0, dst:i~0
- [ 34] JumpLessThanLoopRhsInt32 arith_feedback:1, lhs:i~0, rhs:7, true_target:block1, false_target:block2
+ [ 1c] GetGlobal value_feedback:2, dst:reg5, `bar`
+ [ 24] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg5, this_value:Undefined, arguments:[i~0]
+ [ 2e] Increment arith_feedback:0, dst:i~0
+ [ 32] JumpLessThanLoopRhsInt32 arith_feedback:1, lhs:i~0, rhs:7, true_target:block1, false_target:block2
block2:
- [ 44] End value:Undefined
+ [ 42] End value:Undefined
foo$0284f477 do-while-register-allocation.js:2:5
diff --git a/Tests/LibJS/Bytecode/expected/double-constant-deduplication.txt b/Tests/LibJS/Bytecode/expected/double-constant-deduplication.txt
index 7c0e6c3eceb..38241a78c53 100644
--- a/Tests/LibJS/Bytecode/expected/double-constant-deduplication.txt
+++ b/Tests/LibJS/Bytecode/expected/double-constant-deduplication.txt
@@ -1,4 +1,4 @@
-$9d189b84 double-constant-deduplication.js:8:1
+$ce4e54fb double-constant-deduplication.js:8:1
Registers: 7
Blocks: 1
Constants:
@@ -8,8 +8,8 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `foo`
- [ d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 16] End value:reg5
+ [ c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 15] End value:reg5
foo$08e7ac50 double-constant-deduplication.js:2:9
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 cbfc6743412..5a579cc572e 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 @@
-$dd360933 enclosing-function-bindings-with-eval-or-with.js:15:1
+$aec440cc enclosing-function-bindings-with-eval-or-with.js:15:1
Registers: 7
Blocks: 1
Constants:
@@ -8,11 +8,11 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `outer`
- [ d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 16] End value:reg5
+ [ c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 15] End value:reg5
-outer$3212fc40 enclosing-function-bindings-with-eval-or-with.js:2:9
+outer$f6e9e21c enclosing-function-bindings-with-eval-or-with.js:2:9
Registers: 11
Blocks: 1
Constants:
@@ -22,27 +22,27 @@ outer$3212fc40 enclosing-function-bindings-with-eval-or-with.js:2:9
block0:
[ 0] Enter
[ 1] CreateVariable `a`, is_immutable:false, is_global:false, is_strict:false
- [ 9] CreateVariable `evaluates`, is_immutable:false, is_global:false, is_strict:false
- [ 11] InitializeVariableBinding `evaluates`, src:Undefined
- [ 19] NewFunction dst:reg5, shared_function_data_index:0
- [ 21] SetVariableBinding `evaluates`, src:reg5
- [ 29] CreateVariable `withObject`, is_immutable:false, is_global:false, is_strict:false
- [ 31] InitializeVariableBinding `withObject`, src:Undefined
- [ 39] NewFunction dst:reg6, shared_function_data_index:1
- [ 41] SetVariableBinding `withObject`, src:reg6
- [ 49] InitializeLexicalBinding `a`, src:Int32(1)
- [ 51] GetCalleeAndThisFromEnvironment value_feedback:0, callee:reg7, this_value:reg8, `evaluates`
- [ 5c] Call value_feedback:1, call_feedback:0, dst:reg7, callee:reg7, this_value:reg8
- [ 65] Call value_feedback:2, call_feedback:1, dst:reg7, callee:reg7, this_value:Undefined
- [ 6e] GetCalleeAndThisFromEnvironment value_feedback:3, callee:reg8, this_value:reg9, `withObject`
- [ 79] NewObject dst:reg10
- [ 7d] Call value_feedback:4, call_feedback:2, dst:reg8, callee:reg8, this_value:reg9, arguments:[reg10]
- [ 87] Call value_feedback:5, call_feedback:3, dst:reg8, callee:reg8, this_value:Undefined
- [ 90] NewArray dst:reg9, elements:[reg7, reg8]
- [ 95] Return value:reg9
-
-
-evaluates$fc8042a8 enclosing-function-bindings-with-eval-or-with.js:4:13
+ [ 8] CreateVariable `evaluates`, is_immutable:false, is_global:false, is_strict:false
+ [ f] InitializeVariableBinding `evaluates`, src:Undefined
+ [ 16] NewFunction dst:reg5, shared_function_data_index:0
+ [ 1d] SetVariableBinding `evaluates`, src:reg5
+ [ 24] CreateVariable `withObject`, is_immutable:false, is_global:false, is_strict:false
+ [ 2b] InitializeVariableBinding `withObject`, src:Undefined
+ [ 32] NewFunction dst:reg6, shared_function_data_index:1
+ [ 39] SetVariableBinding `withObject`, src:reg6
+ [ 40] InitializeLexicalBinding `a`, src:Int32(1)
+ [ 47] GetCalleeAndThisFromEnvironment value_feedback:0, callee:reg7, this_value:reg8, `evaluates`
+ [ 51] Call value_feedback:1, call_feedback:0, dst:reg7, callee:reg7, this_value:reg8
+ [ 5a] Call value_feedback:2, call_feedback:1, dst:reg7, callee:reg7, this_value:Undefined
+ [ 63] GetCalleeAndThisFromEnvironment value_feedback:3, callee:reg8, this_value:reg9, `withObject`
+ [ 6d] NewObject dst:reg10
+ [ 71] Call value_feedback:4, call_feedback:2, dst:reg8, callee:reg8, this_value:reg9, arguments:[reg10]
+ [ 7b] Call value_feedback:5, call_feedback:3, dst:reg8, callee:reg8, this_value:Undefined
+ [ 84] NewArray dst:reg9, elements:[reg7, reg8]
+ [ 89] Return value:reg9
+
+
+evaluates$dd89bd0e enclosing-function-bindings-with-eval-or-with.js:4:13
Registers: 7
Blocks: 1
Constants:
@@ -52,9 +52,9 @@ block0:
[ 0] Enter
[ 1] CreateArguments is_immutable:false, creates_parameter_bindings:false
[ 6] DynamicGetCalleeAndThisFromEnvironment value_feedback:0, callee:reg5, this_value:reg6, `eval`
- [ 10] CallDirectEval value_feedback:1, call_feedback:0, dst:reg5, callee:reg5, this_value:reg6, arguments:[String("")]
- [ 1a] NewFunction dst:reg5, shared_function_data_index:0
- [ 22] Return value:reg5
+ [ f] CallDirectEval value_feedback:1, call_feedback:0, dst:reg5, callee:reg5, this_value:reg6, arguments:[String("")]
+ [ 19] NewFunction dst:reg5, shared_function_data_index:0
+ [ 20] Return value:reg5
eval$d8dbb89d
@@ -69,17 +69,17 @@ block0:
[ 4] End value:reg5
-$58a7189c enclosing-function-bindings-with-eval-or-with.js:5:16
+$087ad98b enclosing-function-bindings-with-eval-or-with.js:5:16
Registers: 6
Blocks: 1
block0:
[ 0] Enter
[ 1] DynamicGetBinding value_feedback:0, dst:reg5, `a`
- [ a] Return value:reg5
+ [ 9] Return value:reg5
-withObject$ae40d571 enclosing-function-bindings-with-eval-or-with.js:8:9
+withObject$fe6d1482 enclosing-function-bindings-with-eval-or-with.js:8:9
Registers: 7
Blocks: 1
@@ -88,15 +88,15 @@ block0:
[ 1] GetLexicalEnvironment dst:reg4
[ 3] EnterObjectEnvironment dst:reg5, object:arg0
[ 6] NewFunction dst:reg6, shared_function_data_index:0
- [ e] SetLexicalEnvironment environment:reg4
- [ 10] Return value:reg6
+ [ d] SetLexicalEnvironment environment:reg4
+ [ f] Return value:reg6
-$caf2ed54 enclosing-function-bindings-with-eval-or-with.js:9:20
+$7ac6ae43 enclosing-function-bindings-with-eval-or-with.js:9:20
Registers: 6
Blocks: 1
block0:
[ 0] Enter
[ 1] DynamicGetBinding value_feedback:0, dst:reg5, `a`
- [ a] Return value:reg5
+ [ 9] Return value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/enclosing-function-bindings.txt b/Tests/LibJS/Bytecode/expected/enclosing-function-bindings.txt
index c74aa5ff6eb..f696c3f35b0 100644
--- a/Tests/LibJS/Bytecode/expected/enclosing-function-bindings.txt
+++ b/Tests/LibJS/Bytecode/expected/enclosing-function-bindings.txt
@@ -1,4 +1,4 @@
-$61018d65 enclosing-function-bindings.js:1:1
+$4fdebd1b enclosing-function-bindings.js:1:1
Registers: 7
Blocks: 1
Constants:
@@ -11,15 +11,15 @@ block0:
[ 1] Mov dst:reg5, src:Undefined
[ 4] Mov dst:reg5, src:String("use strict")
[ 7] GetGlobal value_feedback:0, dst:reg6, `outer`
- [ 10] Call value_feedback:1, call_feedback:0, dst:reg6, callee:reg6, this_value:Undefined, arguments:[Int32(1)]
- [ 1a] Call value_feedback:2, call_feedback:1, dst:reg6, callee:reg6, this_value:Undefined
- [ 23] Call value_feedback:3, call_feedback:2, dst:reg5, callee:reg6, this_value:Undefined
- [ 2c] GetGlobal value_feedback:4, dst:reg6, `blockFunctions`
- [ 35] Call value_feedback:5, call_feedback:3, dst:reg5, callee:reg6, this_value:Undefined
- [ 3e] End value:reg5
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg6, callee:reg6, this_value:Undefined, arguments:[Int32(1)]
+ [ 19] Call value_feedback:2, call_feedback:1, dst:reg6, callee:reg6, this_value:Undefined
+ [ 22] Call value_feedback:3, call_feedback:2, dst:reg5, callee:reg6, this_value:Undefined
+ [ 2b] GetGlobal value_feedback:4, dst:reg6, `blockFunctions`
+ [ 33] Call value_feedback:5, call_feedback:3, dst:reg5, callee:reg6, this_value:Undefined
+ [ 3c] End value:reg5
-outer$7fb21e84 enclosing-function-bindings.js:4:9
+outer$637f89fa enclosing-function-bindings.js:4:9
Registers: 7
Blocks: 1
Constants:
@@ -28,54 +28,54 @@ outer$7fb21e84 enclosing-function-bindings.js:4:9
block0:
[ 0] Enter
[ 1] CreateVariable `a`, is_immutable:false, is_global:false, is_strict:false
- [ 9] InitializeLexicalBinding `a`, src:arg0
- [ 11] CreateVariable `b`, is_immutable:false, is_global:false, is_strict:false
- [ 19] CreateVariable `callee`, is_immutable:false, is_global:false, is_strict:false
- [ 21] InitializeVariableBinding `callee`, src:Undefined
- [ 29] NewFunction dst:reg5, shared_function_data_index:0
- [ 31] SetVariableBinding `callee`, src:reg5
- [ 39] GetBinding value_feedback:0, dst:reg5, `a`
- [ 43] InitializeLexicalBinding `b`, src:reg5
- [ 4b] NewFunction dst:reg6, shared_function_data_index:1
- [ 53] Return value:reg6
-
-
-$ef9da64a enclosing-function-bindings.js:8:12
+ [ 8] InitializeLexicalBinding `a`, src:arg0
+ [ f] CreateVariable `b`, is_immutable:false, is_global:false, is_strict:false
+ [ 16] CreateVariable `callee`, is_immutable:false, is_global:false, is_strict:false
+ [ 1d] InitializeVariableBinding `callee`, src:Undefined
+ [ 24] NewFunction dst:reg5, shared_function_data_index:0
+ [ 2b] SetVariableBinding `callee`, src:reg5
+ [ 32] GetBinding value_feedback:0, dst:reg5, `a`
+ [ 3b] InitializeLexicalBinding `b`, src:reg5
+ [ 42] NewFunction dst:reg6, shared_function_data_index:1
+ [ 49] Return value:reg6
+
+
+$3fc9e55b enclosing-function-bindings.js:8:12
Registers: 6
Blocks: 1
block0:
[ 0] Enter
[ 1] NewFunction dst:reg5, shared_function_data_index:0
- [ 9] Return value:reg5
+ [ 8] Return value:reg5
-inner$90732d39 enclosing-function-bindings.js:10:15
+inner$d124297d enclosing-function-bindings.js:10:15
Registers: 8
Blocks: 1
block0:
[ 0] Enter
[ 1] GetBinding value_feedback:0, dst:reg5, `b`
- [ b] SetLexicalBinding `a`, src:reg5
- [ 13] TypeofBinding dst:reg5, `a`
- [ 1b] GetCalleeAndThisFromEnvironment value_feedback:1, callee:reg6, this_value:reg7, `callee`
- [ 26] Call value_feedback:2, call_feedback:0, dst:reg6, callee:reg6, this_value:reg7
- [ 2f] Add arith_feedback:0, dst:reg5, lhs:reg5, rhs:reg6
- [ 35] Return value:reg5
+ [ a] SetLexicalBinding `a`, src:reg5
+ [ 11] TypeofBinding dst:reg5, `a`
+ [ 18] GetCalleeAndThisFromEnvironment value_feedback:1, callee:reg6, this_value:reg7, `callee`
+ [ 22] Call value_feedback:2, call_feedback:0, dst:reg6, callee:reg6, this_value:reg7
+ [ 2b] Add arith_feedback:0, dst:reg5, lhs:reg5, rhs:reg6
+ [ 31] Return value:reg5
-callee$4d8e8b95 enclosing-function-bindings.js:6:9
+callee$fd624c84 enclosing-function-bindings.js:6:9
Registers: 6
Blocks: 1
block0:
[ 0] Enter
[ 1] GetBinding value_feedback:0, dst:reg5, `b`
- [ b] Return value:reg5
+ [ a] Return value:reg5
-blockFunctions$e4507070 enclosing-function-bindings.js:16:9
+blockFunctions$060ae71a enclosing-function-bindings.js:16:9
Registers: 7
Blocks: 1
Locals: first~0
@@ -86,25 +86,25 @@ blockFunctions$e4507070 enclosing-function-bindings.js:16:9
block0:
[ 0] Enter
[ 1] CreateVariable `c`, is_immutable:false, is_global:false, is_strict:false
- [ 9] GetLexicalEnvironment dst:reg4
- [ b] InitializeLexicalBinding `c`, src:Int32(1)
- [ 13] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false
- [ 1f] CreateVariable `second`, is_immutable:false, is_global:false, is_strict:false
- [ 27] NewFunction dst:first~0, shared_function_data_index:0
- [ 2f] NewFunction dst:reg6, shared_function_data_index:1
- [ 37] InitializeLexicalBinding `second`, src:reg6
- [ 3f] Call value_feedback:0, call_feedback:0, dst:reg6, callee:first~0, this_value:Undefined
- [ 48] SetLexicalEnvironment environment:reg4
- [ 4a] Return value:reg6
-
-
-first$d8e89df2 enclosing-function-bindings.js:19:13
+ [ 8] GetLexicalEnvironment dst:reg4
+ [ a] InitializeLexicalBinding `c`, src:Int32(1)
+ [ 11] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false
+ [ 1d] CreateVariable `second`, is_immutable:false, is_global:false, is_strict:false
+ [ 24] NewFunction dst:first~0, shared_function_data_index:0
+ [ 2b] NewFunction dst:reg6, shared_function_data_index:1
+ [ 32] InitializeLexicalBinding `second`, src:reg6
+ [ 39] Call value_feedback:0, call_feedback:0, dst:reg6, callee:first~0, this_value:Undefined
+ [ 42] SetLexicalEnvironment environment:reg4
+ [ 44] Return value:reg6
+
+
+first$38901fd0 enclosing-function-bindings.js:19:13
Registers: 7
Blocks: 1
block0:
[ 0] Enter
[ 1] GetBinding value_feedback:0, dst:reg5, `c`
- [ b] TypeofBinding dst:reg6, `second`
- [ 13] Add arith_feedback:0, dst:reg5, lhs:reg5, rhs:reg6
- [ 19] Return value:reg5
+ [ a] TypeofBinding dst:reg6, `second`
+ [ 11] Add arith_feedback:0, dst:reg5, lhs:reg5, rhs:reg6
+ [ 17] Return value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/eval-prevents-locals.txt b/Tests/LibJS/Bytecode/expected/eval-prevents-locals.txt
index 614304964de..d76354ca015 100644
--- a/Tests/LibJS/Bytecode/expected/eval-prevents-locals.txt
+++ b/Tests/LibJS/Bytecode/expected/eval-prevents-locals.txt
@@ -1,4 +1,4 @@
-$f20abe88 eval-prevents-locals.js:22:1
+$92633caa eval-prevents-locals.js:22:1
Registers: 7
Blocks: 1
Constants:
@@ -8,13 +8,13 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `with_eval`
- [ d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 16] GetGlobal value_feedback:2, dst:reg6, `outer_eval`
- [ 1f] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined
- [ 28] End value:reg5
+ [ c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 15] GetGlobal value_feedback:2, dst:reg6, `outer_eval`
+ [ 1d] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined
+ [ 26] End value:reg5
-with_eval$240f9af5 eval-prevents-locals.js:6:9
+with_eval$e35e9eb1 eval-prevents-locals.js:6:9
Registers: 8
Blocks: 1
Constants:
@@ -27,11 +27,11 @@ block0:
[ 6] GetLexicalEnvironment dst:reg4
[ 8] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false
[ 14] CreateVariable `x`, is_immutable:false, is_global:false, is_strict:false
- [ 1c] InitializeLexicalBinding `x`, src:Int32(1)
- [ 24] DynamicGetCalleeAndThisFromEnvironment value_feedback:0, callee:reg6, this_value:reg7, `eval`
- [ 2e] CallDirectEval value_feedback:1, call_feedback:0, dst:reg6, callee:reg6, this_value:reg7, arguments:[String("")]
- [ 38] GetBinding value_feedback:2, dst:reg6, `x`
- [ 42] Return value:reg6
+ [ 1b] InitializeLexicalBinding `x`, src:Int32(1)
+ [ 22] DynamicGetCalleeAndThisFromEnvironment value_feedback:0, callee:reg6, this_value:reg7, `eval`
+ [ 2b] CallDirectEval value_feedback:1, call_feedback:0, dst:reg6, callee:reg6, this_value:reg7, arguments:[String("")]
+ [ 35] GetBinding value_feedback:2, dst:reg6, `x`
+ [ 3e] Return value:reg6
eval$d8dbb89d
@@ -46,7 +46,7 @@ block0:
[ 4] End value:reg5
-outer_eval$f481fd2c eval-prevents-locals.js:14:9
+outer_eval$54297f0a eval-prevents-locals.js:14:9
Registers: 9
Blocks: 1
Constants:
@@ -59,14 +59,14 @@ block0:
[ 6] GetLexicalEnvironment dst:reg4
[ 8] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false
[ 14] CreateVariable `inner`, is_immutable:false, is_global:false, is_strict:false
- [ 1c] InitializeVariableBinding `inner`, src:Undefined
- [ 24] NewFunction dst:reg6, shared_function_data_index:0
- [ 2c] SetVariableBinding `inner`, src:reg6
- [ 34] DynamicGetCalleeAndThisFromEnvironment value_feedback:0, callee:reg6, this_value:reg7, `eval`
- [ 3e] CallDirectEval value_feedback:1, call_feedback:0, dst:reg6, callee:reg6, this_value:reg7, arguments:[String("")]
- [ 48] GetCalleeAndThisFromEnvironment value_feedback:2, callee:reg7, this_value:reg8, `inner`
- [ 53] Call value_feedback:3, call_feedback:1, dst:reg7, callee:reg7, this_value:reg8
- [ 5c] Return value:reg7
+ [ 1b] InitializeVariableBinding `inner`, src:Undefined
+ [ 22] NewFunction dst:reg6, shared_function_data_index:0
+ [ 29] SetVariableBinding `inner`, src:reg6
+ [ 30] DynamicGetCalleeAndThisFromEnvironment value_feedback:0, callee:reg6, this_value:reg7, `eval`
+ [ 39] CallDirectEval value_feedback:1, call_feedback:0, dst:reg6, callee:reg6, this_value:reg7, arguments:[String("")]
+ [ 43] GetCalleeAndThisFromEnvironment value_feedback:2, callee:reg7, this_value:reg8, `inner`
+ [ 4d] Call value_feedback:3, call_feedback:1, dst:reg7, callee:reg7, this_value:reg8
+ [ 56] Return value:reg7
eval$d8dbb89d
diff --git a/Tests/LibJS/Bytecode/expected/eval-same-function.txt b/Tests/LibJS/Bytecode/expected/eval-same-function.txt
index 20fe3cf4a1a..ba0ab8a5ecc 100644
--- a/Tests/LibJS/Bytecode/expected/eval-same-function.txt
+++ b/Tests/LibJS/Bytecode/expected/eval-same-function.txt
@@ -1,4 +1,4 @@
-$44317be6 eval-same-function.js:10:1
+$34b63919 eval-same-function.js:10:1
Registers: 7
Blocks: 1
Constants:
@@ -8,11 +8,11 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `foo`
- [ d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 16] End value:reg5
+ [ c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 15] End value:reg5
-foo$b984e002 eval-same-function.js:6:9
+foo$192c61e0 eval-same-function.js:6:9
Registers: 7
Blocks: 1
Constants:
@@ -23,13 +23,13 @@ block0:
[ 0] Enter
[ 1] CreateArguments is_immutable:false, creates_parameter_bindings:false
[ 6] DynamicGetCalleeAndThisFromEnvironment value_feedback:0, callee:reg5, this_value:reg6, `eval`
- [ 10] CallDirectEval value_feedback:1, call_feedback:0, dst:reg5, callee:reg5, this_value:reg6, arguments:[String("var x = 1")]
- [ 1a] DynamicGetBinding value_feedback:2, dst:reg5, `Number`
- [ 23] CallConstruct value_feedback:3, call_feedback:1, dst:reg5, callee:reg5, arguments:[Int32(42)]
- [ 2c] Return value:reg5
+ [ f] CallDirectEval value_feedback:1, call_feedback:0, dst:reg5, callee:reg5, this_value:reg6, arguments:[String("var x = 1")]
+ [ 19] DynamicGetBinding value_feedback:2, dst:reg5, `Number`
+ [ 21] CallConstruct value_feedback:3, call_feedback:1, dst:reg5, callee:reg5, arguments:[Int32(42)]
+ [ 2a] Return value:reg5
-eval$7fa36a2e line 1, column 5
+eval$1ffbe850 line 1, column 5
Registers: 7
Blocks: 1
Constants:
@@ -40,5 +40,5 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] ResolveBinding dst:reg6, `x`
- [ 9] SetResolvedBinding environment:reg6, `x`, src:Int32(1)
- [ f] End value:reg5
+ [ 8] SetResolvedBinding environment:reg6, `x`, src:Int32(1)
+ [ d] End value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/eval-scope-optimization.txt b/Tests/LibJS/Bytecode/expected/eval-scope-optimization.txt
index f6823990375..8936e5bcf7f 100644
--- a/Tests/LibJS/Bytecode/expected/eval-scope-optimization.txt
+++ b/Tests/LibJS/Bytecode/expected/eval-scope-optimization.txt
@@ -1,4 +1,4 @@
-$4ee6dac0 eval-scope-optimization.js:12:1
+$017e8cbf eval-scope-optimization.js:12:1
Registers: 7
Blocks: 1
Constants:
@@ -8,11 +8,11 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `outer`
- [ d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 16] End value:reg5
+ [ c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 15] End value:reg5
-outer$007199ca eval-scope-optimization.js:6:5
+outer$914ed51f eval-scope-optimization.js:6:5
Registers: 7
Blocks: 1
Constants:
@@ -22,9 +22,9 @@ outer$007199ca eval-scope-optimization.js:6:5
block0:
[ 0] Enter
[ 1] CreateVariable `inner`, is_immutable:false, is_global:false, is_strict:false
- [ 9] InitializeVariableBinding `inner`, src:Undefined
- [ 11] NewFunction dst:reg5, shared_function_data_index:0
- [ 19] SetVariableBinding `inner`, src:reg5
- [ 21] GetGlobal value_feedback:0, dst:reg6, `Number`
- [ 2a] CallConstruct value_feedback:1, call_feedback:0, dst:reg6, callee:reg6, arguments:[Int32(42)]
- [ 33] Return value:reg6
+ [ 8] InitializeVariableBinding `inner`, src:Undefined
+ [ f] NewFunction dst:reg5, shared_function_data_index:0
+ [ 16] SetVariableBinding `inner`, src:reg5
+ [ 1d] GetGlobal value_feedback:0, dst:reg6, `Number`
+ [ 25] CallConstruct value_feedback:1, call_feedback:0, dst:reg6, callee:reg6, arguments:[Int32(42)]
+ [ 2e] 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 b315b87c764..42ff7a5c959 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 @@
-$32d152d8 expression-identifier-number-format.js:1:5
+$f2205694 expression-identifier-number-format.js:1:5
Registers: 8
Blocks: 1
Constants:
@@ -11,12 +11,12 @@ block0:
[ 1] Mov dst:reg5, src:Undefined
[ 4] NewObject dst:reg6
[ 8] SetGlobal `x`, src:reg6
- [ f] GetGlobal value_feedback:0, dst:reg6, `x`
- [ 18] NewObject dst:reg7
- [ 1c] PutByValue keyed_feedback:0, base:reg6, property:Double(1.1e-32), src:reg7, kind:Normal
- [ 25] Mov dst:reg5, src:reg7
- [ 28] GetGlobal value_feedback:1, dst:reg6, `x`
- [ 31] GetByValue value_feedback:2, keyed_feedback:1, dst:reg6, base:reg6, property:Double(1.1e-32)
- [ 3b] PutById base:reg6, `foo`, src:Int32(42), kind:Normal
- [ 44] Mov dst:reg5, src:Int32(42)
- [ 47] End value:reg5
+ [ e] GetGlobal value_feedback:0, dst:reg6, `x`
+ [ 16] NewObject dst:reg7
+ [ 1a] PutByValue keyed_feedback:0, base:reg6, property:Double(1.1e-32), src:reg7, kind:Normal
+ [ 23] Mov dst:reg5, src:reg7
+ [ 26] GetGlobal value_feedback:1, dst:reg6, `x`
+ [ 2e] GetByValue value_feedback:2, keyed_feedback:1, dst:reg6, base:reg6, property:Double(1.1e-32)
+ [ 38] PutById base:reg6, `foo`, src:Int32(42), kind:Normal
+ [ 40] Mov dst:reg5, src:Int32(42)
+ [ 43] 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 e1287b9cf74..211572bf079 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 @@
-$8d02558c for-in-block-order.js:5:1
+$dd2e949d for-in-block-order.js:5:1
Registers: 8
Blocks: 1
Constants:
@@ -8,9 +8,9 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `foo`
- [ d] NewObject dst:reg7
- [ 11] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
- [ 1b] End value:reg5
+ [ c] NewObject dst:reg7
+ [ 10] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
+ [ 1a] End value:reg5
foo$6c8afc5d for-in-block-order.js:2:14
diff --git a/Tests/LibJS/Bytecode/expected/for-in-lexical-scope.txt b/Tests/LibJS/Bytecode/expected/for-in-lexical-scope.txt
index 8c98806c5cf..c69ae1637c1 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 @@
-$de39953a for-in-lexical-scope.js:1:5
+$fd301ad4 for-in-lexical-scope.js:1:5
Registers: 13
Blocks: 5
Locals: probeDecl~0
@@ -12,30 +12,30 @@ block0:
[ 3] Mov dst:reg5, src:Undefined
[ 6] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
[ 12] CreateVariable `x`, is_immutable:false, is_global:false, is_strict:false
- [ 1a] NewObject dst:reg8
- [ 1e] InitObjectLiteralProperty object:reg8, `i`, src:Int32(0), shape_cache_index:0, property_slot:0
- [ 28] CacheObjectShape object:reg8
- [ 2c] Mov dst:reg6, src:reg8
- [ 2f] SetLexicalEnvironment environment:reg4
- [ 31] Mov dst:reg5, src:Undefined
- [ 34] JumpNullish condition:reg6, true_target:block4, false_target:block1
+ [ 19] NewObject dst:reg8
+ [ 1d] InitObjectLiteralProperty object:reg8, `i`, src:Int32(0), shape_cache_index:0, property_slot:0
+ [ 26] CacheObjectShape object:reg8
+ [ 2a] Mov dst:reg6, src:reg8
+ [ 2d] SetLexicalEnvironment environment:reg4
+ [ 2f] Mov dst:reg5, src:Undefined
+ [ 32] JumpNullish condition:reg6, true_target:block4, false_target:block1
block1:
- [ 3e] GetObjectPropertyIterator dst_keys:reg8, dst_receiver:reg7, object:reg6
- [ 46] Mov dst:reg9, src:Int32(0)
+ [ 3c] GetObjectPropertyIterator dst_keys:reg8, dst_receiver:reg7, object:reg6
+ [ 44] Mov dst:reg9, src:Int32(0)
block2:
- [ 49] ObjectPropertyIteratorNext dst_value:reg10, dst_done:reg11, receiver:reg7, keys:reg8, cursor:reg9
- [ 4f] JumpTrue condition:reg11, target:block4
+ [ 47] ObjectPropertyIteratorNext dst_value:reg10, dst_done:reg11, receiver:reg7, keys:reg8, cursor:reg9
+ [ 4d] JumpTrue condition:reg11, target:block4
block3:
- [ 55] CreateLexicalEnvironment dst:reg12, parent:reg4, capacity:1, is_catch_environment:false
- [ 61] CreateVariable `x`, is_immutable:false, is_global:false, is_strict:false
- [ 69] InitializeLexicalBinding `x`, src:reg10
- [ 71] NewFunction dst:probeDecl~0, shared_function_data_index:0
- [ 79] SetVariableBindingOfBlockFunction `probeDecl`, src:probeDecl~0, program_environment_depth:1
- [ 82] SetLexicalEnvironment environment:reg4
- [ 84] JumpLoop target:block2
+ [ 53] CreateLexicalEnvironment dst:reg12, parent:reg4, capacity:1, is_catch_environment:false
+ [ 5f] CreateVariable `x`, is_immutable:false, is_global:false, is_strict:false
+ [ 66] InitializeLexicalBinding `x`, src:reg10
+ [ 6d] NewFunction dst:probeDecl~0, shared_function_data_index:0
+ [ 74] SetVariableBindingOfBlockFunction `probeDecl`, src:probeDecl~0, program_environment_depth:1
+ [ 7c] SetLexicalEnvironment environment:reg4
+ [ 7e] JumpLoop target:block2
block4:
- [ 89] End value:reg5
+ [ 83] 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 8a68693db58..c78f145b50a 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 @@
-$fb8028ac for-in-nullish-completion.js:4:1
+$ab53e99b for-in-nullish-completion.js:4:1
Registers: 12
Blocks: 5
Constants:
@@ -25,7 +25,7 @@ block2:
block3:
[ 2e] SetGlobal `a`, src:reg10
- [ 35] JumpLoop target:block2
+ [ 34] JumpLoop target:block2
block4:
- [ 3a] End value:reg5
+ [ 39] 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 dd634973162..81931af41a6 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 @@
-$a2a07da4 for-in-object-property-iterator-next.js:8:1
+$83a9f80a for-in-object-property-iterator-next.js:8:1
Registers: 8
Blocks: 1
Constants:
@@ -13,15 +13,15 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `collect`
- [ d] NewObject dst:reg7
- [ 11] PutByValue keyed_feedback:0, base:reg7, property:Int32(2), src:String("two"), kind:Own
- [ 1a] PutById base:reg7, `foo`, src:String("foo"), kind:Own
- [ 23] PutByValue keyed_feedback:1, base:reg7, property:Int32(7), src:String("seven"), kind:Own
- [ 2c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
- [ 36] End value:reg5
+ [ c] NewObject dst:reg7
+ [ 10] PutByValue keyed_feedback:0, base:reg7, property:Int32(2), src:String("two"), kind:Own
+ [ 19] PutById base:reg7, `foo`, src:String("foo"), kind:Own
+ [ 21] PutByValue keyed_feedback:1, base:reg7, property:Int32(7), src:String("seven"), kind:Own
+ [ 2a] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
+ [ 34] End value:reg5
-collect$3e3cecba for-in-object-property-iterator-next.js:2:18
+collect$8e692bcb for-in-object-property-iterator-next.js:2:18
Registers: 12
Blocks: 5
Locals: keys~0, key~1
@@ -47,8 +47,8 @@ block2:
block3:
[ 2b] Mov dst:key~1, src:reg9
[ 2e] GetById value_feedback:0, dst:reg11, base:keys~0, `push`
- [ 38] Call value_feedback:1, call_feedback:0, dst:reg11, callee:reg11, this_value:keys~0, arguments:[key~1]
- [ 42] JumpLoop target:block2
+ [ 37] Call value_feedback:1, call_feedback:0, dst:reg11, callee:reg11, this_value:keys~0, arguments:[key~1]
+ [ 41] JumpLoop target:block2
block4:
- [ 47] Return value:keys~0
+ [ 46] Return value:keys~0
diff --git a/Tests/LibJS/Bytecode/expected/for-in-register-lifetime.txt b/Tests/LibJS/Bytecode/expected/for-in-register-lifetime.txt
index a18dc646265..effcc760ceb 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 @@
-$a04c8a06 for-in-register-lifetime.js:1:5
+$e3c1775a for-in-register-lifetime.js:1:5
Registers: 16
Blocks: 5
Constants:
@@ -13,36 +13,36 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] SetGlobal `result`, src:String("")
- [ b] NewObject dst:reg6
- [ f] InitObjectLiteralProperty object:reg6, `a`, src:Int32(1), shape_cache_index:0, property_slot:0
- [ 19] InitObjectLiteralProperty object:reg6, `b`, src:Int32(2), shape_cache_index:0, property_slot:1
- [ 23] InitObjectLiteralProperty object:reg6, `c`, src:Int32(3), shape_cache_index:0, property_slot:2
- [ 2d] CacheObjectShape object:reg6
- [ 31] SetGlobal `obj`, src:reg6
- [ 38] GetGlobal value_feedback:0, dst:reg6, `obj`
- [ 41] Mov dst:reg5, src:Undefined
- [ 44] JumpNullish condition:reg6, true_target:block4, false_target:block1
+ [ a] NewObject dst:reg6
+ [ e] InitObjectLiteralProperty object:reg6, `a`, src:Int32(1), shape_cache_index:0, property_slot:0
+ [ 17] InitObjectLiteralProperty object:reg6, `b`, src:Int32(2), shape_cache_index:0, property_slot:1
+ [ 20] InitObjectLiteralProperty object:reg6, `c`, src:Int32(3), shape_cache_index:0, property_slot:2
+ [ 29] CacheObjectShape object:reg6
+ [ 2d] SetGlobal `obj`, src:reg6
+ [ 33] GetGlobal value_feedback:0, dst:reg6, `obj`
+ [ 3b] Mov dst:reg5, src:Undefined
+ [ 3e] JumpNullish condition:reg6, true_target:block4, false_target:block1
block1:
- [ 4e] GetObjectPropertyIterator dst_keys:reg8, dst_receiver:reg7, object:reg6
- [ 56] Mov dst:reg9, src:Int32(0)
+ [ 48] GetObjectPropertyIterator dst_keys:reg8, dst_receiver:reg7, object:reg6
+ [ 50] Mov dst:reg9, src:Int32(0)
block2:
- [ 59] ObjectPropertyIteratorNext dst_value:reg10, dst_done:reg11, receiver:reg7, keys:reg8, cursor:reg9
- [ 5f] JumpTrue condition:reg11, target:block4
+ [ 53] ObjectPropertyIteratorNext dst_value:reg10, dst_done:reg11, receiver:reg7, keys:reg8, cursor:reg9
+ [ 59] JumpTrue condition:reg11, target:block4
block3:
- [ 65] SetGlobal `k`, src:reg10
- [ 6c] GetGlobal value_feedback:1, dst:reg12, `result`
- [ 75] GetGlobal value_feedback:2, dst:reg13, `k`
- [ 7e] GetGlobal value_feedback:3, dst:reg14, `obj`
- [ 87] GetGlobal value_feedback:4, dst:reg15, `k`
- [ 90] GetByValue value_feedback:5, keyed_feedback:0, dst:reg14, base:reg14, property:reg15
- [ 9a] Add arith_feedback:0, dst:reg13, lhs:reg13, rhs:reg14
- [ a0] Add arith_feedback:1, dst:reg14, lhs:reg12, rhs:reg13
- [ a6] SetGlobal `result`, src:reg14
- [ ad] Mov dst:reg5, src:reg14
- [ b0] JumpLoop target:block2
+ [ 5f] SetGlobal `k`, src:reg10
+ [ 65] GetGlobal value_feedback:1, dst:reg12, `result`
+ [ 6d] GetGlobal value_feedback:2, dst:reg13, `k`
+ [ 75] GetGlobal value_feedback:3, dst:reg14, `obj`
+ [ 7d] GetGlobal value_feedback:4, dst:reg15, `k`
+ [ 85] GetByValue value_feedback:5, keyed_feedback:0, dst:reg14, base:reg14, property:reg15
+ [ 8f] Add arith_feedback:0, dst:reg13, lhs:reg13, rhs:reg14
+ [ 95] Add arith_feedback:1, dst:reg14, lhs:reg12, rhs:reg13
+ [ 9b] SetGlobal `result`, src:reg14
+ [ a1] Mov dst:reg5, src:reg14
+ [ a4] JumpLoop target:block2
block4:
- [ b5] End value:reg5
+ [ a9] 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 f782acc6f83..03fb29d5e89 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 @@
-$439678bb for-in-var-function-lhs-name.js:7:1
+$1260bf44 for-in-var-function-lhs-name.js:7:1
Registers: 7
Blocks: 1
Constants:
@@ -8,11 +8,11 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `fn`
- [ d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 16] End value:reg5
+ [ c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 15] End value:reg5
-fn$e33a0099 for-in-var-function-lhs-name.js:4:14
+fn$33663faa for-in-var-function-lhs-name.js:4:14
Registers: 11
Blocks: 5
Locals: f~0
@@ -24,21 +24,21 @@ block0:
[ 0] Enter
[ 1] Mov dst:f~0, src:Undefined
[ 4] NewFunction dst:f~0, shared_function_data_index:0 (f)
- [ c] NewObject dst:reg6
- [ 10] Mov dst:reg5, src:reg6
- [ 13] JumpNullish condition:reg5, true_target:block4, false_target:block1
+ [ b] NewObject dst:reg6
+ [ f] Mov dst:reg5, src:reg6
+ [ 12] JumpNullish condition:reg5, true_target:block4, false_target:block1
block1:
- [ 1d] GetObjectPropertyIterator dst_keys:reg7, dst_receiver:reg6, object:reg5
- [ 25] Mov dst:reg8, src:Int32(0)
+ [ 1c] GetObjectPropertyIterator dst_keys:reg7, dst_receiver:reg6, object:reg5
+ [ 24] Mov dst:reg8, src:Int32(0)
block2:
- [ 28] ObjectPropertyIteratorNext dst_value:reg9, dst_done:reg10, receiver:reg6, keys:reg7, cursor:reg8
- [ 2e] JumpTrue condition:reg10, target:block4
+ [ 27] ObjectPropertyIteratorNext dst_value:reg9, dst_done:reg10, receiver:reg6, keys:reg7, cursor:reg8
+ [ 2d] JumpTrue condition:reg10, target:block4
block3:
- [ 34] Mov dst:f~0, src:reg9
- [ 37] JumpLoop target:block2
+ [ 33] Mov dst:f~0, src:reg9
+ [ 36] JumpLoop target:block2
block4:
- [ 3c] End value:Undefined
+ [ 3b] 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 c0c2c351350..87c1487164b 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 @@
-$db3b8ae6 for-loop-break-after-if-continue.js:11:1
+$2b67c9f7 for-loop-break-after-if-continue.js:11:1
Registers: 7
Blocks: 1
Constants:
@@ -9,8 +9,8 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `bok`
- [ d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Bool(false)]
- [ 17] End value:reg5
+ [ c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Bool(false)]
+ [ 16] End value:reg5
bok$346c9cc0 for-loop-break-after-if-continue.js:5:14
diff --git a/Tests/LibJS/Bytecode/expected/for-loop-scoping.txt b/Tests/LibJS/Bytecode/expected/for-loop-scoping.txt
index 6244561732b..e31645676bf 100644
--- a/Tests/LibJS/Bytecode/expected/for-loop-scoping.txt
+++ b/Tests/LibJS/Bytecode/expected/for-loop-scoping.txt
@@ -1,4 +1,4 @@
-$337db8f9 for-loop-scoping.js:8:1
+$c45af44e for-loop-scoping.js:8:1
Registers: 9
Blocks: 1
Constants:
@@ -8,14 +8,14 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `console`
- [ d] GetById value_feedback:1, dst:reg7, base:reg6, `log`
- [ 17] GetGlobal value_feedback:2, dst:reg8, `forLetClosure`
- [ 20] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined
- [ 29] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 33] End value:reg5
+ [ c] GetById value_feedback:1, dst:reg7, base:reg6, `log`
+ [ 15] GetGlobal value_feedback:2, dst:reg8, `forLetClosure`
+ [ 1d] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined
+ [ 26] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 30] End value:reg5
-forLetClosure$763143ab for-loop-scoping.js:2:15
+forLetClosure$1db9316a for-loop-scoping.js:2:15
Registers: 8
Blocks: 4
Locals: fns~0
@@ -28,37 +28,37 @@ block0:
[ 3] NewArray dst:fns~0
[ 6] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false
[ 12] CreateVariable `i`, is_immutable:false, is_global:false, is_strict:false
- [ 1a] InitializeLexicalBinding `i`, src:Int32(0)
- [ 22] GetBinding value_feedback:0, dst:reg6, `i`
- [ 2c] SetLexicalEnvironment environment:reg4
- [ 2e] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false
- [ 3a] CreateVariable `i`, is_immutable:false, is_global:false, is_strict:false
- [ 42] InitializeLexicalBinding `i`, src:reg6
- [ 4a] Jump target:block2
+ [ 19] InitializeLexicalBinding `i`, src:Int32(0)
+ [ 20] GetBinding value_feedback:0, dst:reg6, `i`
+ [ 29] SetLexicalEnvironment environment:reg4
+ [ 2b] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false
+ [ 37] CreateVariable `i`, is_immutable:false, is_global:false, is_strict:false
+ [ 3e] InitializeLexicalBinding `i`, src:reg6
+ [ 45] Jump target:block2
block1:
- [ 4f] GetById value_feedback:1, dst:reg6, base:fns~0, `push`
- [ 59] NewFunction dst:reg7, shared_function_data_index:0
- [ 61] Call value_feedback:2, call_feedback:0, dst:reg6, callee:reg6, this_value:fns~0, arguments:[reg7]
- [ 6b] GetBinding value_feedback:3, dst:reg6, `i`
- [ 75] SetLexicalEnvironment environment:reg4
- [ 77] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false
- [ 83] CreateVariable `i`, is_immutable:false, is_global:false, is_strict:false
- [ 8b] InitializeLexicalBinding `i`, src:reg6
- [ 93] GetBinding value_feedback:4, dst:reg6, `i`
- [ 9d] PostfixIncrement arith_feedback:0, dst:reg7, src:reg6
- [ a2] SetLexicalBinding `i`, src:reg6
+ [ 4a] GetById value_feedback:1, dst:reg6, base:fns~0, `push`
+ [ 53] NewFunction dst:reg7, shared_function_data_index:0
+ [ 5a] Call value_feedback:2, call_feedback:0, dst:reg6, callee:reg6, this_value:fns~0, arguments:[reg7]
+ [ 64] GetBinding value_feedback:3, dst:reg6, `i`
+ [ 6d] SetLexicalEnvironment environment:reg4
+ [ 6f] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false
+ [ 7b] CreateVariable `i`, is_immutable:false, is_global:false, is_strict:false
+ [ 82] InitializeLexicalBinding `i`, src:reg6
+ [ 89] GetBinding value_feedback:4, dst:reg6, `i`
+ [ 92] PostfixIncrement arith_feedback:0, dst:reg7, src:reg6
+ [ 97] SetLexicalBinding `i`, src:reg6
block2:
- [ aa] GetBinding value_feedback:5, dst:reg6, `i`
- [ b4] JumpLessThanLoopRhsInt32 arith_feedback:1, lhs:reg6, rhs:3, true_target:block1, false_target:block3
+ [ 9e] GetBinding value_feedback:5, dst:reg6, `i`
+ [ a7] JumpLessThanLoopRhsInt32 arith_feedback:1, lhs:reg6, rhs:3, true_target:block1, false_target:block3
block3:
- [ c4] SetLexicalEnvironment environment:reg4
- [ c6] GetById value_feedback:6, dst:reg5, base:fns~0, `map`
- [ d0] NewFunction dst:reg6, shared_function_data_index:1
- [ d8] Call value_feedback:7, call_feedback:1, dst:reg5, callee:reg5, this_value:fns~0, arguments:[reg6]
- [ e2] Return value:reg5
+ [ b7] SetLexicalEnvironment environment:reg4
+ [ b9] GetById value_feedback:6, dst:reg5, base:fns~0, `map`
+ [ c2] NewFunction dst:reg6, shared_function_data_index:1
+ [ c9] Call value_feedback:7, call_feedback:1, dst:reg5, callee:reg5, this_value:fns~0, arguments:[reg6]
+ [ d3] Return value:reg5
map$55eca889 BuiltinFile:275:11
@@ -123,14 +123,14 @@ block0:
[ a] Return value:reg5
-$ea9e23de for-loop-scoping.js:4:18
+$3aca62ef for-loop-scoping.js:4:18
Registers: 6
Blocks: 1
block0:
[ 0] Enter
[ 1] GetBinding value_feedback:0, dst:reg5, `i`
- [ b] Return value:reg5
+ [ a] 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 de89f9331a5..827888a42f4 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 @@
-$bc07ac88 for-of-cond-rhs-block-order.js:6:1
+$ac8c69bb for-of-cond-rhs-block-order.js:6:1
Registers: 7
Blocks: 1
Constants:
@@ -9,11 +9,11 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `f`
- [ d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Null, Null]
- [ 18] End value:reg5
+ [ c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Null, Null]
+ [ 17] End value:reg5
-f$049cb911 for-of-cond-rhs-block-order.js:2:15
+f$54c8f822 for-of-cond-rhs-block-order.js:2:15
Registers: 16
Blocks: 22
Locals: r~0, n~1
@@ -30,83 +30,83 @@ block0:
block1:
[ d] GetById value_feedback:0, dst:reg6, base:arg0, `x`
- [ 17] Jump target:block3
+ [ 16] Jump target:block3
block2:
- [ 1c] Mov dst:reg6, src:arg1
+ [ 1b] Mov dst:reg6, src:arg1
block3:
- [ 1f] GetGlobal value_feedback:1, dst:reg7, `Object`
- [ 28] GetById value_feedback:2, dst:reg8, base:reg7, `entries`
- [ 32] NewObject dst:reg9
- [ 36] Call value_feedback:3, call_feedback:0, dst:reg5, callee:reg8, this_value:reg7, arguments:[reg9]
- [ 40] GetIterator dst_iterator_object:reg6, dst_iterator_next:reg7, dst_iterator_done:reg8, iterable:reg5, fast_array_mode_allowed:true
+ [ 1e] GetGlobal value_feedback:1, dst:reg7, `Object`
+ [ 26] GetById value_feedback:2, dst:reg8, base:reg7, `entries`
+ [ 2f] NewObject dst:reg9
+ [ 33] Call value_feedback:3, call_feedback:0, dst:reg5, callee:reg8, this_value:reg7, arguments:[reg9]
+ [ 3d] GetIterator dst_iterator_object:reg6, dst_iterator_next:reg7, dst_iterator_done:reg8, iterable:reg5, fast_array_mode_allowed:true
block4:
- [ 49] IteratorNextUnpack dst_value:reg9, dst_done:reg10, iterator_object:reg6, iterator_next:reg7, iterator_done:reg8
- [ 4f] JumpTrue condition:reg10, target:block21
+ [ 46] IteratorNextUnpack dst_value:reg9, dst_done:reg10, iterator_object:reg6, iterator_next:reg7, iterator_done:reg8
+ [ 4c] JumpTrue condition:reg10, target:block21
block5:
- [ 55] Mov dst:reg11, src:Bool(false)
- [ 58] GetIterator dst_iterator_object:reg12, dst_iterator_next:reg13, dst_iterator_done:reg14, iterable:reg9, fast_array_mode_allowed:true
+ [ 52] Mov dst:reg11, src:Bool(false)
+ [ 55] GetIterator dst_iterator_object:reg12, dst_iterator_next:reg13, dst_iterator_done:reg14, iterable:reg9, fast_array_mode_allowed:true
block6:
- [ 61] IteratorNextUnpack dst_value:reg15, dst_done:reg11, iterator_object:reg12, iterator_next:reg13, iterator_done:reg14
+ [ 5e] IteratorNextUnpack dst_value:reg15, dst_done:reg11, iterator_object:reg12, iterator_next:reg13, iterator_done:reg14
block7:
- [ 67] JumpFalse condition:reg11, target:block9
+ [ 64] JumpFalse condition:reg11, target:block9
block8:
- [ 6d] Mov dst:reg15, src:Undefined
+ [ 6a] Mov dst:reg15, src:Undefined
block9:
- [ 70] Mov dst:r~0, src:reg15
- [ 73] JumpTrue condition:reg11, target:block12
+ [ 6d] Mov dst:r~0, src:reg15
+ [ 70] JumpTrue condition:reg11, target:block12
block10:
- [ 79] IteratorNextUnpack dst_value:reg15, dst_done:reg11, iterator_object:reg12, iterator_next:reg13, iterator_done:reg14
+ [ 76] IteratorNextUnpack dst_value:reg15, dst_done:reg11, iterator_object:reg12, iterator_next:reg13, iterator_done:reg14
block11:
- [ 7f] JumpFalse condition:reg11, target:block13
+ [ 7c] JumpFalse condition:reg11, target:block13
block12:
- [ 85] Mov dst:reg15, src:Undefined
+ [ 82] Mov dst:reg15, src:Undefined
block13:
- [ 88] Mov dst:n~1, src:reg15
+ [ 85] Mov dst:n~1, src:reg15
block14:
- [ 8b] JumpTrue condition:reg14, target:block19
+ [ 88] JumpTrue condition:reg14, target:block19
block15:
- [ 91] IteratorClose iterator_object:reg12, iterator_next:reg13, iterator_done:reg14, completion_value:Undefined
- [ 99] Jump target:block19
+ [ 8e] IteratorClose iterator_object:reg12, iterator_next:reg13, iterator_done:reg14, completion_value:Undefined
+ [ 96] Jump target:block19
block16:
- [ 9e] Catch value_feedback:4, dst:reg15
- [ a2] JumpTrue condition:reg14, target:block18
+ [ 9b] Catch value_feedback:4, dst:reg15
+ [ 9f] JumpTrue condition:reg14, target:block18
block17:
- [ a8] IteratorClose iterator_object:reg12, iterator_next:reg13, iterator_done:reg14, completion_value:reg15
+ [ a5] IteratorClose iterator_object:reg12, iterator_next:reg13, iterator_done:reg14, completion_value:reg15
block18:
- [ b0] Throw src:reg15
+ [ ad] Throw src:reg15
block19:
- [ b2] JumpLoop target:block4
+ [ af] JumpLoop target:block4
block20:
- [ b7] Catch value_feedback:5, dst:reg11
- [ bb] IteratorClose iterator_object:reg6, iterator_next:reg7, iterator_done:reg8, completion_value:reg11
- [ c3] Throw src:reg11
+ [ b4] Catch value_feedback:5, dst:reg11
+ [ b8] IteratorClose iterator_object:reg6, iterator_next:reg7, iterator_done:reg8, completion_value:reg11
+ [ c0] Throw src:reg11
block21:
- [ c5] End value:Undefined
+ [ c2] End value:Undefined
Exception handlers:
- [ 55 .. 61] => handler block20
- [ 61 .. 67] => handler block20
- [ 67 .. 79] => handler block16
- [ 79 .. 7f] => handler block20
- [ 7f .. 8b] => handler block16
- [ 8b .. b7] => handler block20
+ [ 52 .. 5e] => handler block20
+ [ 5e .. 64] => handler block20
+ [ 64 .. 76] => handler block16
+ [ 76 .. 7c] => handler block20
+ [ 7c .. 88] => handler block16
+ [ 88 .. b4] => 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 d665a7fe28d..cb9084470bc 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 @@
-$76ce2515 for-of-continue-with-block-scope.js:13:1
+$864967e2 for-of-continue-with-block-scope.js:13:1
Registers: 8
Blocks: 1
Constants:
@@ -8,12 +8,12 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `f`
- [ d] NewArray dst:reg7
- [ 10] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
- [ 1a] End value:reg5
+ [ c] NewArray dst:reg7
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
+ [ 19] End value:reg5
-f$9579f466 for-of-continue-with-block-scope.js:2:15
+f$2a37845e for-of-continue-with-block-scope.js:2:15
Registers: 14
Blocks: 7
Locals: t~0, o~1
@@ -24,45 +24,45 @@ block0:
[ 3] NewArray dst:t~0
[ 6] CreateLexicalEnvironment dst:reg6, parent:reg4, capacity:1, is_catch_environment:false
[ 12] CreateVariable `r`, is_immutable:true, is_global:false, is_strict:true
- [ 1a] Mov dst:reg5, src:arg0
- [ 1d] SetLexicalEnvironment environment:reg4
- [ 1f] GetIterator dst_iterator_object:reg6, dst_iterator_next:reg7, dst_iterator_done:reg8, iterable:reg5, fast_array_mode_allowed:true
+ [ 19] Mov dst:reg5, src:arg0
+ [ 1c] SetLexicalEnvironment environment:reg4
+ [ 1e] GetIterator dst_iterator_object:reg6, dst_iterator_next:reg7, dst_iterator_done:reg8, iterable:reg5, fast_array_mode_allowed:true
block1:
- [ 28] IteratorNextUnpack dst_value:reg9, dst_done:reg10, iterator_object:reg6, iterator_next:reg7, iterator_done:reg8
- [ 2e] JumpTrue condition:reg10, target:block6
+ [ 27] IteratorNextUnpack dst_value:reg9, dst_done:reg10, iterator_object:reg6, iterator_next:reg7, iterator_done:reg8
+ [ 2d] JumpTrue condition:reg10, target:block6
block2:
- [ 34] CreateLexicalEnvironment dst:reg11, parent:reg4, capacity:1, is_catch_environment:false
- [ 40] CreateVariable `r`, is_immutable:true, is_global:false, is_strict:true
- [ 48] InitializeLexicalBinding `r`, src:reg9
- [ 50] GetBinding value_feedback:0, dst:reg12, `r`
- [ 5a] Not dst:reg12, src:reg12
- [ 5d] JumpFalse condition:reg12, target:block4
+ [ 33] CreateLexicalEnvironment dst:reg11, parent:reg4, capacity:1, is_catch_environment:false
+ [ 3f] CreateVariable `r`, is_immutable:true, is_global:false, is_strict:true
+ [ 46] InitializeLexicalBinding `r`, src:reg9
+ [ 4d] GetBinding value_feedback:0, dst:reg12, `r`
+ [ 56] Not dst:reg12, src:reg12
+ [ 59] JumpFalse condition:reg12, target:block4
block3:
- [ 63] GetById value_feedback:1, dst:reg12, base:t~0, `push`
- [ 6d] GetBinding value_feedback:2, dst:reg13, `r`
- [ 77] Call value_feedback:3, call_feedback:0, dst:reg12, callee:reg12, this_value:t~0, arguments:[reg13]
- [ 81] SetLexicalEnvironment environment:reg4
- [ 83] Jump target:block1
+ [ 5f] GetById value_feedback:1, dst:reg12, base:t~0, `push`
+ [ 68] GetBinding value_feedback:2, dst:reg13, `r`
+ [ 71] Call value_feedback:3, call_feedback:0, dst:reg12, callee:reg12, this_value:t~0, arguments:[reg13]
+ [ 7b] SetLexicalEnvironment environment:reg4
+ [ 7d] Jump target:block1
block4:
- [ 88] GetById value_feedback:4, dst:reg12, base:t~0, `find`
- [ 92] NewFunction dst:reg13, shared_function_data_index:0
- [ 9a] Call value_feedback:5, call_feedback:1, dst:reg12, callee:reg12, this_value:t~0, arguments:[reg13]
- [ a4] Mov dst:o~1, src:reg12
- [ a7] SetLexicalEnvironment environment:reg4
- [ a9] JumpLoop target:block1
+ [ 82] GetById value_feedback:4, dst:reg12, base:t~0, `find`
+ [ 8b] NewFunction dst:reg13, shared_function_data_index:0
+ [ 92] Call value_feedback:5, call_feedback:1, dst:reg12, callee:reg12, this_value:t~0, arguments:[reg13]
+ [ 9c] Mov dst:o~1, src:reg12
+ [ 9f] SetLexicalEnvironment environment:reg4
+ [ a1] JumpLoop target:block1
block5:
- [ ae] Catch value_feedback:6, dst:reg11
- [ b2] SetLexicalEnvironment environment:reg4
- [ b4] IteratorClose iterator_object:reg6, iterator_next:reg7, iterator_done:reg8, completion_value:reg11
- [ bc] Throw src:reg11
+ [ a6] Catch value_feedback:6, dst:reg11
+ [ aa] SetLexicalEnvironment environment:reg4
+ [ ac] IteratorClose iterator_object:reg6, iterator_next:reg7, iterator_done:reg8, completion_value:reg11
+ [ b4] Throw src:reg11
block6:
- [ be] Return value:t~0
+ [ b6] Return value:t~0
Exception handlers:
- [ 34 .. ae] => handler block5
+ [ 33 .. a6] => handler block5
diff --git a/Tests/LibJS/Bytecode/expected/for-of-iterator-close.txt b/Tests/LibJS/Bytecode/expected/for-of-iterator-close.txt
index ea236565ff5..1299bbbbe8b 100644
--- a/Tests/LibJS/Bytecode/expected/for-of-iterator-close.txt
+++ b/Tests/LibJS/Bytecode/expected/for-of-iterator-close.txt
@@ -1,4 +1,4 @@
-$1743afd9 for-of-iterator-close.js:6:1
+$676feeea for-of-iterator-close.js:6:1
Registers: 8
Blocks: 1
Constants:
@@ -8,13 +8,13 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `forOfBreak`
- [ d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 16] GetGlobal value_feedback:2, dst:reg6, `forOfReturn`
- [ 1f] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined
- [ 28] GetGlobal value_feedback:4, dst:reg6, `forAwaitOfBreak`
- [ 31] NewPrimitiveArray dst:reg7, elements:[1, 2, 3]
- [ 4f] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
- [ 59] End value:reg5
+ [ c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 15] GetGlobal value_feedback:2, dst:reg6, `forOfReturn`
+ [ 1d] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined
+ [ 26] GetGlobal value_feedback:4, dst:reg6, `forAwaitOfBreak`
+ [ 2e] NewPrimitiveArray dst:reg7, elements:[1, 2, 3]
+ [ 4c] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
+ [ 56] End value:reg5
forOfBreak$22209966 for-of-iterator-close.js:2:16
@@ -94,7 +94,7 @@ Exception handlers:
[ 37 .. 3a] => handler block3
-forAwaitOfBreak$95941960 for-of-iterator-close.js:16:22
+forAwaitOfBreak$d64515a4 for-of-iterator-close.js:16:22
Registers: 18
Blocks: 23
Locals: x~0
@@ -125,76 +125,76 @@ block3:
block4:
[ 3e] ThrowIfNotObject src:reg14
[ 40] GetById value_feedback:1, dst:reg10, base:reg14, `done`
- [ 4a] JumpTrue condition:reg10, target:block22
+ [ 49] JumpTrue condition:reg10, target:block22
block5:
- [ 50] GetById value_feedback:2, dst:reg9, base:reg14, `value`
+ [ 4f] GetById value_feedback:2, dst:reg9, base:reg14, `value`
block6:
- [ 5a] Mov dst:x~0, src:reg9
- [ 5d] JumpStrictlyEqualsRhsInt32 arith_feedback:1, lhs:x~0, rhs:2, true_target:block7, false_target:block13
+ [ 58] Mov dst:x~0, src:reg9
+ [ 5b] JumpStrictlyEqualsRhsInt32 arith_feedback:1, lhs:x~0, rhs:2, true_target:block7, false_target:block13
block7:
- [ 6d] GetMethod dst:reg11, object:reg6, `return`
- [ 75] JumpUndefined condition:reg11, true_target:block12, false_target:block8
+ [ 6b] GetMethod dst:reg11, object:reg6, `return`
+ [ 72] JumpUndefined condition:reg11, true_target:block12, false_target:block8
block8:
- [ 7f] Call value_feedback:3, call_feedback:1, dst:reg12, callee:reg11, this_value:reg6
- [ 88] Mov dst:reg13, src:reg0
- [ 8b] Await continuation_label:block9, argument:reg12
+ [ 7c] Call value_feedback:3, call_feedback:1, dst:reg12, callee:reg11, this_value:reg6
+ [ 85] Mov dst:reg13, src:reg0
+ [ 88] Await continuation_label:block9, argument:reg12
block9:
- [ 91] Mov dst:reg13, src:reg0
- [ 94] GetCompletionFields type_dst:reg14, value_dst:reg15, completion:reg13
- [ 98] StrictlyEqualsRhsInt32 arith_feedback:2, dst:reg16, lhs:reg14, rhs:1
- [ a1] JumpIf condition:reg16, true_target:block11, false_target:block10
+ [ 8e] Mov dst:reg13, src:reg0
+ [ 91] GetCompletionFields type_dst:reg14, value_dst:reg15, completion:reg13
+ [ 95] StrictlyEqualsRhsInt32 arith_feedback:2, dst:reg16, lhs:reg14, rhs:1
+ [ 9e] JumpIf condition:reg16, true_target:block11, false_target:block10
block10:
- [ ab] Throw src:reg15
+ [ a8] Throw src:reg15
block11:
- [ ad] ThrowIfNotObject src:reg15
+ [ aa] ThrowIfNotObject src:reg15
block12:
- [ af] Jump target:block22
+ [ ac] Jump target:block22
block13:
- [ b4] JumpLoop target:block1
+ [ b1] JumpLoop target:block1
block14:
- [ b9] Catch value_feedback:4, dst:reg11
+ [ b6] Catch value_feedback:4, dst:reg11
block15:
- [ bd] GetMethod dst:reg12, object:reg6, `return`
- [ c5] JumpUndefined condition:reg12, true_target:block21, false_target:block16
+ [ ba] GetMethod dst:reg12, object:reg6, `return`
+ [ c1] JumpUndefined condition:reg12, true_target:block21, false_target:block16
block16:
- [ cf] Call value_feedback:5, call_feedback:2, dst:reg13, callee:reg12, this_value:reg6
- [ d8] Mov dst:reg14, src:reg0
- [ db] Await continuation_label:block17, argument:reg13
+ [ cb] Call value_feedback:5, call_feedback:2, dst:reg13, callee:reg12, this_value:reg6
+ [ d4] Mov dst:reg14, src:reg0
+ [ d7] Await continuation_label:block17, argument:reg13
block17:
- [ e1] Mov dst:reg14, src:reg0
- [ e4] GetCompletionFields type_dst:reg15, value_dst:reg16, completion:reg14
- [ e8] StrictlyEqualsRhsInt32 arith_feedback:3, dst:reg17, lhs:reg15, rhs:1
- [ f1] JumpIf condition:reg17, true_target:block19, false_target:block18
+ [ dd] Mov dst:reg14, src:reg0
+ [ e0] GetCompletionFields type_dst:reg15, value_dst:reg16, completion:reg14
+ [ e4] StrictlyEqualsRhsInt32 arith_feedback:3, dst:reg17, lhs:reg15, rhs:1
+ [ ed] JumpIf condition:reg17, true_target:block19, false_target:block18
block18:
- [ fb] Throw src:reg16
+ [ f7] Throw src:reg16
block19:
- [ fd] Jump target:block21
+ [ f9] Jump target:block21
block20:
- [ 102] Catch value_feedback:6, dst:reg12
+ [ fe] Catch value_feedback:6, dst:reg12
block21:
- [ 106] Throw src:reg11
+ [ 102] Throw src:reg11
block22:
- [ 108] Yield value:Undefined
+ [ 104] Yield value:Undefined
Exception handlers:
- [ 5a .. 6d] => handler block14
- [ b4 .. b9] => handler block14
- [ bd .. 102] => handler block20
+ [ 58 .. 6b] => handler block14
+ [ b1 .. b6] => handler block14
+ [ ba .. fe] => handler block20
diff --git a/Tests/LibJS/Bytecode/expected/for-try-finally-continue.txt b/Tests/LibJS/Bytecode/expected/for-try-finally-continue.txt
index f1dea0d6413..79a4d909994 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 @@
-$a04c8a06 for-try-finally-continue.js:1:5
+$afc7ccd3 for-try-finally-continue.js:1:5
Registers: 9
Blocks: 14
Locals: e~0
@@ -15,63 +15,63 @@ block0:
[ 1] Mov dst:reg5, src:Undefined
[ 4] Mov dst:reg5, src:Undefined
[ 7] SetGlobal `i`, src:Int32(0)
- [ e] Jump target:block10
+ [ d] Jump target:block10
block1:
- [ 13] Mov dst:reg5, src:Undefined
+ [ 12] Mov dst:reg5, src:Undefined
block2:
- [ 16] Mov dst:reg6, src:Int32(2)
- [ 19] Jump target:block5
+ [ 15] Mov dst:reg6, src:Int32(2)
+ [ 18] Jump target:block5
block3:
- [ 1e] Catch value_feedback:0, dst:reg8
- [ 22] Mov dst:reg5, src:Undefined
- [ 25] Mov dst:e~0, src:<Empty>
- [ 28] Mov dst:e~0, src:reg8
- [ 2b] Mov dst:reg6, src:Int32(0)
- [ 2e] Jump target:block5
+ [ 1d] Catch value_feedback:0, dst:reg8
+ [ 21] Mov dst:reg5, src:Undefined
+ [ 24] Mov dst:e~0, src:<Empty>
+ [ 27] Mov dst:e~0, src:reg8
+ [ 2a] Mov dst:reg6, src:Int32(0)
+ [ 2d] Jump target:block5
block4:
- [ 33] Catch value_feedback:1, dst:reg7
- [ 37] Mov dst:reg6, src:Int32(1)
+ [ 32] Catch value_feedback:1, dst:reg7
+ [ 36] Mov dst:reg6, src:Int32(1)
block5:
- [ 3a] Mov dst:reg8, src:reg5
- [ 3d] Mov dst:reg5, src:Undefined
- [ 40] Mov dst:reg5, src:reg8
- [ 43] JumpStrictlyEqualsRhsInt32 arith_feedback:0, lhs:reg6, rhs:0, true_target:block9, false_target:block6
+ [ 39] Mov dst:reg8, src:reg5
+ [ 3c] Mov dst:reg5, src:Undefined
+ [ 3f] Mov dst:reg5, src:reg8
+ [ 42] JumpStrictlyEqualsRhsInt32 arith_feedback:0, lhs:reg6, rhs:0, true_target:block9, false_target:block6
block6:
- [ 53] JumpStrictlyEqualsRhsInt32 arith_feedback:1, lhs:reg6, rhs:2, true_target:block7, false_target:block8
+ [ 52] JumpStrictlyEqualsRhsInt32 arith_feedback:1, lhs:reg6, rhs:2, true_target:block7, false_target:block8
block7:
- [ 63] Jump target:block9
+ [ 62] Jump target:block9
block8:
- [ 68] Throw src:reg7
+ [ 67] Throw src:reg7
block9:
- [ 6a] GetGlobal value_feedback:2, dst:reg6, `i`
- [ 73] PostfixIncrement arith_feedback:2, dst:reg7, src:reg6
- [ 78] SetGlobal `i`, src:reg6
+ [ 69] GetGlobal value_feedback:2, dst:reg6, `i`
+ [ 71] PostfixIncrement arith_feedback:2, dst:reg7, src:reg6
+ [ 76] SetGlobal `i`, src:reg6
block10:
- [ 7f] GetGlobal value_feedback:3, dst:reg6, `i`
- [ 88] JumpLessThanLoopRhsInt32 arith_feedback:3, lhs:reg6, rhs:5, true_target:block1, false_target:block11
+ [ 7c] GetGlobal value_feedback:3, dst:reg6, `i`
+ [ 84] JumpLessThanLoopRhsInt32 arith_feedback:3, lhs:reg6, rhs:5, true_target:block1, false_target:block11
block11:
- [ 98] GetGlobal value_feedback:4, dst:reg6, `i`
- [ a1] StrictlyInequalsRhsInt32 arith_feedback:4, dst:reg6, lhs:reg6, rhs:5
- [ aa] Mov dst:reg5, src:Undefined
- [ ad] JumpFalse condition:reg6, target:block13
+ [ 94] GetGlobal value_feedback:4, dst:reg6, `i`
+ [ 9c] StrictlyInequalsRhsInt32 arith_feedback:4, dst:reg6, lhs:reg6, rhs:5
+ [ a5] Mov dst:reg5, src:Undefined
+ [ a8] JumpFalse condition:reg6, target:block13
block12:
- [ b3] Throw src:String("bad")
+ [ ae] Throw src:String("bad")
block13:
- [ b5] End value:reg5
+ [ b0] End value:reg5
Exception handlers:
- [ 16 .. 1e] => handler block3
- [ 1e .. 33] => handler block4
+ [ 15 .. 1d] => handler block3
+ [ 1d .. 32] => 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 5d1e6c281ff..915d8b6c43a 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 @@
-$6acb9e24 function-decl-source-order.js:17:1
+$b8bf160f function-decl-source-order.js:17:1
Registers: 13
Blocks: 1
Constants:
@@ -8,19 +8,19 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `console`
- [ d] GetById value_feedback:1, dst:reg7, base:reg6, `log`
- [ 17] GetGlobal value_feedback:2, dst:reg8, `alpha`
- [ 20] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined
- [ 29] GetGlobal value_feedback:4, dst:reg9, `beta`
- [ 32] Call value_feedback:5, call_feedback:1, dst:reg9, callee:reg9, this_value:Undefined
- [ 3b] GetGlobal value_feedback:6, dst:reg10, `gamma`
- [ 44] Call value_feedback:7, call_feedback:2, dst:reg10, callee:reg10, this_value:Undefined
- [ 4d] GetGlobal value_feedback:8, dst:reg11, `delta`
- [ 56] Call value_feedback:9, call_feedback:3, dst:reg11, callee:reg11, this_value:Undefined
- [ 5f] GetGlobal value_feedback:10, dst:reg12, `dup`
- [ 68] Call value_feedback:11, call_feedback:4, dst:reg12, callee:reg12, this_value:Undefined
- [ 71] Call value_feedback:12, call_feedback:5, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8, reg9, reg10, reg11, reg12]
- [ 7f] End value:reg5
+ [ c] GetById value_feedback:1, dst:reg7, base:reg6, `log`
+ [ 15] GetGlobal value_feedback:2, dst:reg8, `alpha`
+ [ 1d] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined
+ [ 26] GetGlobal value_feedback:4, dst:reg9, `beta`
+ [ 2e] Call value_feedback:5, call_feedback:1, dst:reg9, callee:reg9, this_value:Undefined
+ [ 37] GetGlobal value_feedback:6, dst:reg10, `gamma`
+ [ 3f] Call value_feedback:7, call_feedback:2, dst:reg10, callee:reg10, this_value:Undefined
+ [ 48] GetGlobal value_feedback:8, dst:reg11, `delta`
+ [ 50] Call value_feedback:9, call_feedback:3, dst:reg11, callee:reg11, this_value:Undefined
+ [ 59] GetGlobal value_feedback:10, dst:reg12, `dup`
+ [ 61] Call value_feedback:11, call_feedback:4, dst:reg12, callee:reg12, this_value:Undefined
+ [ 6a] Call value_feedback:12, call_feedback:5, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8, reg9, reg10, reg11, reg12]
+ [ 78] End value:reg5
alpha$9bc8f61b function-decl-source-order.js:5:20
diff --git a/Tests/LibJS/Bytecode/expected/generator-yield-call.txt b/Tests/LibJS/Bytecode/expected/generator-yield-call.txt
index 56ba286be8b..b344782f6b4 100644
--- a/Tests/LibJS/Bytecode/expected/generator-yield-call.txt
+++ b/Tests/LibJS/Bytecode/expected/generator-yield-call.txt
@@ -1,4 +1,4 @@
-$e97e4d93 generator-yield-call.js:9:1
+$da030ac6 generator-yield-call.js:9:1
Registers: 9
Blocks: 1
Constants:
@@ -10,17 +10,17 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `f`
- [ d] NewObject dst:reg7
- [ 11] InitObjectLiteralProperty object:reg7, `x`, src:Int32(1), shape_cache_index:0, property_slot:0
- [ 1b] CacheObjectShape object:reg7
- [ 1f] NewObject dst:reg8
- [ 23] InitObjectLiteralProperty object:reg8, `y`, src:Int32(2), shape_cache_index:1, property_slot:0
- [ 2d] CacheObjectShape object:reg8
- [ 31] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7, reg8]
- [ 3c] End value:reg5
+ [ c] NewObject dst:reg7
+ [ 10] InitObjectLiteralProperty object:reg7, `x`, src:Int32(1), shape_cache_index:0, property_slot:0
+ [ 19] CacheObjectShape object:reg7
+ [ 1d] NewObject dst:reg8
+ [ 21] InitObjectLiteralProperty object:reg8, `y`, src:Int32(2), shape_cache_index:1, property_slot:0
+ [ 2a] CacheObjectShape object:reg8
+ [ 2e] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7, reg8]
+ [ 39] End value:reg5
-f$4b34a73b generator-yield-call.js:6:5
+f$aadc2919 generator-yield-call.js:6:5
Registers: 11
Blocks: 12
Constants:
@@ -32,45 +32,45 @@ block0:
block1:
[ 8] GetById value_feedback:0, dst:reg5, base:arg0, `x`
- [ 12] Yield continuation_label:block2, value:reg5
+ [ 11] Yield continuation_label:block2, value:reg5
block2:
- [ 19] Mov dst:reg6, src:reg0
- [ 1c] GetCompletionFields type_dst:reg7, value_dst:reg8, completion:reg6
- [ 20] StrictlyEqualsRhsInt32 arith_feedback:0, dst:reg9, lhs:reg7, rhs:1
- [ 29] JumpIf condition:reg9, true_target:block6, false_target:block3
+ [ 18] Mov dst:reg6, src:reg0
+ [ 1b] GetCompletionFields type_dst:reg7, value_dst:reg8, completion:reg6
+ [ 1f] StrictlyEqualsRhsInt32 arith_feedback:0, dst:reg9, lhs:reg7, rhs:1
+ [ 28] JumpIf condition:reg9, true_target:block6, false_target:block3
block3:
- [ 33] StrictlyEqualsRhsInt32 arith_feedback:1, dst:reg10, lhs:reg7, rhs:5
- [ 3c] JumpIf condition:reg10, true_target:block4, false_target:block5
+ [ 32] StrictlyEqualsRhsInt32 arith_feedback:1, dst:reg10, lhs:reg7, rhs:5
+ [ 3b] JumpIf condition:reg10, true_target:block4, false_target:block5
block4:
- [ 46] Throw src:reg8
+ [ 45] Throw src:reg8
block5:
- [ 48] Yield value:reg8
+ [ 47] Yield value:reg8
block6:
- [ 4f] Mov dst:reg5, src:reg8
- [ 52] GetById value_feedback:1, dst:reg5, base:arg1, `y`
- [ 5c] Yield continuation_label:block7, value:reg5
+ [ 4e] Mov dst:reg5, src:reg8
+ [ 51] GetById value_feedback:1, dst:reg5, base:arg1, `y`
+ [ 5a] Yield continuation_label:block7, value:reg5
block7:
- [ 63] Mov dst:reg6, src:reg0
- [ 66] GetCompletionFields type_dst:reg7, value_dst:reg8, completion:reg6
- [ 6a] StrictlyEqualsRhsInt32 arith_feedback:2, dst:reg9, lhs:reg7, rhs:1
- [ 73] JumpIf condition:reg9, true_target:block11, false_target:block8
+ [ 61] Mov dst:reg6, src:reg0
+ [ 64] GetCompletionFields type_dst:reg7, value_dst:reg8, completion:reg6
+ [ 68] StrictlyEqualsRhsInt32 arith_feedback:2, dst:reg9, lhs:reg7, rhs:1
+ [ 71] JumpIf condition:reg9, true_target:block11, false_target:block8
block8:
- [ 7d] StrictlyEqualsRhsInt32 arith_feedback:3, dst:reg10, lhs:reg7, rhs:5
- [ 86] JumpIf condition:reg10, true_target:block9, false_target:block10
+ [ 7b] StrictlyEqualsRhsInt32 arith_feedback:3, dst:reg10, lhs:reg7, rhs:5
+ [ 84] JumpIf condition:reg10, true_target:block9, false_target:block10
block9:
- [ 90] Throw src:reg8
+ [ 8e] Throw src:reg8
block10:
- [ 92] Yield value:reg8
+ [ 90] Yield value:reg8
block11:
- [ 99] Mov dst:reg5, src:reg8
- [ 9c] Yield value:Undefined
+ [ 97] Mov dst:reg5, src:reg8
+ [ 9a] Yield value:Undefined
diff --git a/Tests/LibJS/Bytecode/expected/generator-yield-finally.txt b/Tests/LibJS/Bytecode/expected/generator-yield-finally.txt
index 095f7d4ed04..8a503572449 100644
--- a/Tests/LibJS/Bytecode/expected/generator-yield-finally.txt
+++ b/Tests/LibJS/Bytecode/expected/generator-yield-finally.txt
@@ -1,4 +1,4 @@
-$2b67c9f7 generator-yield-finally.js:11:1
+$7b940908 generator-yield-finally.js:11:1
Registers: 7
Blocks: 1
Constants:
@@ -8,8 +8,8 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `f`
- [ d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 16] End value:reg5
+ [ c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 15] End value:reg5
f$2d49b16e generator-yield-finally.js:4:9
diff --git a/Tests/LibJS/Bytecode/expected/generator-yield-star.txt b/Tests/LibJS/Bytecode/expected/generator-yield-star.txt
index 6e377202a3f..8e0257e2d12 100644
--- a/Tests/LibJS/Bytecode/expected/generator-yield-star.txt
+++ b/Tests/LibJS/Bytecode/expected/generator-yield-star.txt
@@ -1,4 +1,4 @@
-$5530bb0d generator-yield-star.js:6:1
+$05047bfc generator-yield-star.js:6:1
Registers: 8
Blocks: 1
Constants:
@@ -8,12 +8,12 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `f`
- [ d] NewPrimitiveArray dst:reg7, elements:[1, 2]
- [ 23] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
- [ 2d] End value:reg5
+ [ c] NewPrimitiveArray dst:reg7, elements:[1, 2]
+ [ 22] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
+ [ 2c] End value:reg5
-f$5f5a409e generator-yield-star.js:4:5
+f$08d57e8b generator-yield-star.js:4:5
Registers: 21
Blocks: 19
Constants:
@@ -38,66 +38,66 @@ block3:
[ 2f] Call value_feedback:0, call_feedback:0, dst:reg12, callee:reg9, this_value:reg8, arguments:[reg7]
[ 39] ThrowIfNotObject src:reg12
[ 3b] GetById value_feedback:1, dst:reg13, base:reg12, `done`
- [ 45] JumpIf condition:reg13, true_target:block4, false_target:block5
+ [ 44] JumpIf condition:reg13, true_target:block4, false_target:block5
block4:
- [ 4f] GetById value_feedback:2, dst:reg14, base:reg12, `value`
- [ 59] Jump target:block18
+ [ 4e] GetById value_feedback:2, dst:reg14, base:reg12, `value`
+ [ 57] Jump target:block18
block5:
- [ 5e] YieldIteratorResult continuation_label:block17, value:reg12
+ [ 5c] YieldIteratorResult continuation_label:block17, value:reg12
block6:
- [ 64] StrictlyEqualsRhsInt32 arith_feedback:1, dst:reg15, lhs:reg6, rhs:5
- [ 6d] JumpIf condition:reg15, true_target:block7, false_target:block12
+ [ 62] StrictlyEqualsRhsInt32 arith_feedback:1, dst:reg15, lhs:reg6, rhs:5
+ [ 6b] JumpIf condition:reg15, true_target:block7, false_target:block12
block7:
- [ 77] GetMethod dst:reg16, object:reg8, `throw`
- [ 7f] JumpUndefined condition:reg16, true_target:block11, false_target:block8
+ [ 75] GetMethod dst:reg16, object:reg8, `throw`
+ [ 7c] JumpUndefined condition:reg16, true_target:block11, false_target:block8
block8:
- [ 89] Call value_feedback:3, call_feedback:1, dst:reg12, callee:reg16, this_value:reg8, arguments:[reg7]
- [ 93] ThrowIfNotObject src:reg12
- [ 95] GetById value_feedback:4, dst:reg13, base:reg12, `done`
- [ 9f] JumpIf condition:reg13, true_target:block9, false_target:block10
+ [ 86] Call value_feedback:3, call_feedback:1, dst:reg12, callee:reg16, this_value:reg8, arguments:[reg7]
+ [ 90] ThrowIfNotObject src:reg12
+ [ 92] GetById value_feedback:4, dst:reg13, base:reg12, `done`
+ [ 9b] JumpIf condition:reg13, true_target:block9, false_target:block10
block9:
- [ a9] GetById value_feedback:5, dst:reg14, base:reg12, `value`
- [ b3] Jump target:block18
+ [ a5] GetById value_feedback:5, dst:reg14, base:reg12, `value`
+ [ ae] Jump target:block18
block10:
- [ b8] YieldIteratorResult continuation_label:block17, value:reg12
+ [ b3] YieldIteratorResult continuation_label:block17, value:reg12
block11:
- [ be] IteratorClose iterator_object:reg8, iterator_next:reg9, iterator_done:reg10, completion_value:Undefined
- [ c6] NewTypeError dst:reg17, yield* protocol violation: iterator must have a throw method
- [ cb] Throw src:reg17
+ [ b9] IteratorClose iterator_object:reg8, iterator_next:reg9, iterator_done:reg10, completion_value:Undefined
+ [ c1] NewTypeError dst:reg17, yield* protocol violation: iterator must have a throw method
+ [ c5] Throw src:reg17
block12:
- [ cd] GetMethod dst:reg18, object:reg8, `return`
- [ d5] JumpUndefined condition:reg18, true_target:block13, false_target:block14
+ [ c7] GetMethod dst:reg18, object:reg8, `return`
+ [ ce] JumpUndefined condition:reg18, true_target:block13, false_target:block14
block13:
- [ df] Yield value:reg7
+ [ d8] Yield value:reg7
block14:
- [ e6] Call value_feedback:6, call_feedback:2, dst:reg19, callee:reg18, this_value:reg8, arguments:[reg7]
- [ f0] ThrowIfNotObject src:reg19
- [ f2] GetById value_feedback:7, dst:reg13, base:reg19, `done`
- [ fc] JumpIf condition:reg13, true_target:block15, false_target:block16
+ [ df] Call value_feedback:6, call_feedback:2, dst:reg19, callee:reg18, this_value:reg8, arguments:[reg7]
+ [ e9] ThrowIfNotObject src:reg19
+ [ eb] GetById value_feedback:7, dst:reg13, base:reg19, `done`
+ [ f4] JumpIf condition:reg13, true_target:block15, false_target:block16
block15:
- [ 106] GetById value_feedback:8, dst:reg20, base:reg19, `value`
- [ 110] Yield value:reg20
+ [ fe] GetById value_feedback:8, dst:reg20, base:reg19, `value`
+ [ 107] Yield value:reg20
block16:
- [ 117] YieldIteratorResult continuation_label:block17, value:reg19
+ [ 10e] YieldIteratorResult continuation_label:block17, value:reg19
block17:
- [ 11d] Mov dst:reg5, src:reg0
- [ 120] GetCompletionFields type_dst:reg6, value_dst:reg7, completion:reg5
- [ 124] Jump target:block2
+ [ 114] Mov dst:reg5, src:reg0
+ [ 117] GetCompletionFields type_dst:reg6, value_dst:reg7, completion:reg5
+ [ 11b] Jump target:block2
block18:
- [ 129] Mov dst:reg5, src:reg14
- [ 12c] Yield value:Undefined
+ [ 120] Mov dst:reg5, src:reg14
+ [ 123] Yield value:Undefined
diff --git a/Tests/LibJS/Bytecode/expected/generator-yield.txt b/Tests/LibJS/Bytecode/expected/generator-yield.txt
index d0b77e6985e..eaf554f4aea 100644
--- a/Tests/LibJS/Bytecode/expected/generator-yield.txt
+++ b/Tests/LibJS/Bytecode/expected/generator-yield.txt
@@ -1,4 +1,4 @@
-$7c60c0cc generator-yield.js:11:5
+$dc0842aa generator-yield.js:11:5
Registers: 8
Blocks: 1
Constants:
@@ -8,15 +8,15 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `multi_yield`
- [ d] Call value_feedback:1, call_feedback:0, dst:reg6, callee:reg6, this_value:Undefined
- [ 16] SetGlobal `g`, src:reg6
- [ 1d] GetGlobal value_feedback:2, dst:reg6, `g`
- [ 26] GetById value_feedback:3, dst:reg7, base:reg6, `next`
- [ 30] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6
- [ 39] GetGlobal value_feedback:5, dst:reg6, `g`
- [ 42] GetById value_feedback:6, dst:reg7, base:reg6, `next`
- [ 4c] Call value_feedback:7, call_feedback:2, dst:reg5, callee:reg7, this_value:reg6
- [ 55] End value:reg5
+ [ c] Call value_feedback:1, call_feedback:0, dst:reg6, callee:reg6, this_value:Undefined
+ [ 15] SetGlobal `g`, src:reg6
+ [ 1b] GetGlobal value_feedback:2, dst:reg6, `g`
+ [ 23] GetById value_feedback:3, dst:reg7, base:reg6, `next`
+ [ 2c] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6
+ [ 35] GetGlobal value_feedback:5, dst:reg6, `g`
+ [ 3d] GetById value_feedback:6, dst:reg7, base:reg6, `next`
+ [ 46] Call value_feedback:7, call_feedback:2, dst:reg5, callee:reg7, this_value:reg6
+ [ 4f] End value:reg5
multi_yield$5798a4db generator-yield.js:7:5
diff --git a/Tests/LibJS/Bytecode/expected/global-variables.txt b/Tests/LibJS/Bytecode/expected/global-variables.txt
index b4d30fee735..bf78a15ef9f 100644
--- a/Tests/LibJS/Bytecode/expected/global-variables.txt
+++ b/Tests/LibJS/Bytecode/expected/global-variables.txt
@@ -1,4 +1,4 @@
-$9f776d97 global-variables.js:4:5
+$e2ec5aeb global-variables.js:4:5
Registers: 9
Blocks: 1
Constants:
@@ -9,11 +9,11 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] SetGlobal `x`, src:Int32(1)
- [ b] GetGlobal value_feedback:0, dst:reg6, `console`
- [ 14] GetById value_feedback:1, dst:reg7, base:reg6, `log`
- [ 1e] GetGlobal value_feedback:2, dst:reg8, `x`
- [ 27] Call value_feedback:3, call_feedback:0, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 31] End value:reg5
+ [ a] GetGlobal value_feedback:0, dst:reg6, `console`
+ [ 12] GetById value_feedback:1, dst:reg7, base:reg6, `log`
+ [ 1b] GetGlobal value_feedback:2, dst:reg8, `x`
+ [ 23] Call value_feedback:3, call_feedback:0, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 2d] 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 528e44a937f..fb4cffde6e6 100644
--- a/Tests/LibJS/Bytecode/expected/if-else-register-lifetime.txt
+++ b/Tests/LibJS/Bytecode/expected/if-else-register-lifetime.txt
@@ -1,4 +1,4 @@
-$83dfdc38 if-else-register-lifetime.js:11:1
+$d40c1b49 if-else-register-lifetime.js:11:1
Registers: 8
Blocks: 1
Constants:
@@ -8,12 +8,12 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `test`
- [ d] NewPrimitiveArray dst:reg7, elements:[1]
- [ 1b] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
- [ 25] End value:reg5
+ [ c] NewPrimitiveArray dst:reg7, elements:[1]
+ [ 1a] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
+ [ 24] End value:reg5
-test$99e3e348 if-else-register-lifetime.js:2:9
+test$f98b6526 if-else-register-lifetime.js:2:9
Registers: 7
Blocks: 10
Locals: a~0, i~1, j~2
@@ -46,24 +46,24 @@ block3:
block4:
[ 4b] GetGlobal value_feedback:1, dst:reg5, `parseInt`
- [ 54] SubRhsInt32 arith_feedback:2, dst:reg6, lhs:j~2, rhs:3
- [ 5d] GetByValue value_feedback:2, keyed_feedback:2, dst:reg6, base:arg0, property:reg6
- [ 67] Call value_feedback:3, call_feedback:0, dst:reg5, callee:reg5, this_value:Undefined, arguments:[reg6, Int32(1)]
- [ 72] PutByValue keyed_feedback:3, base:arg0, property:j~2, src:reg5, kind:Normal
+ [ 53] SubRhsInt32 arith_feedback:2, dst:reg6, lhs:j~2, rhs:3
+ [ 5c] GetByValue value_feedback:2, keyed_feedback:2, dst:reg6, base:arg0, property:reg6
+ [ 66] Call value_feedback:3, call_feedback:0, dst:reg5, callee:reg5, this_value:Undefined, arguments:[reg6, Int32(1)]
+ [ 71] PutByValue keyed_feedback:3, base:arg0, property:j~2, src:reg5, kind:Normal
block5:
- [ 7b] Increment arith_feedback:3, dst:j~2
+ [ 7a] Increment arith_feedback:3, dst:j~2
block6:
- [ 7f] JumpLessThanLoopRhsInt32 arith_feedback:4, lhs:j~2, rhs:10, true_target:block2, false_target:block7
+ [ 7e] JumpLessThanLoopRhsInt32 arith_feedback:4, lhs:j~2, rhs:10, true_target:block2, false_target:block7
block7:
- [ 8f] Increment arith_feedback:5, dst:i~1
+ [ 8e] Increment arith_feedback:5, dst:i~1
block8:
- [ 93] JumpLessThanLoopRhsInt32 arith_feedback:6, lhs:i~1, rhs:10, true_target:block1, false_target:block9
+ [ 92] JumpLessThanLoopRhsInt32 arith_feedback:6, lhs:i~1, rhs:10, true_target:block1, false_target:block9
block9:
- [ a3] GetGlobal value_feedback:4, dst:reg5, `parseInt`
- [ ac] Call value_feedback:5, call_feedback:1, dst:reg5, callee:reg5, this_value:Undefined, arguments:[a~0]
- [ b6] Return value:reg5
+ [ a2] GetGlobal value_feedback:4, dst:reg5, `parseInt`
+ [ aa] Call value_feedback:5, call_feedback:1, dst:reg5, callee:reg5, this_value:Undefined, arguments:[a~0]
+ [ b4] Return value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/imported-bindings.txt b/Tests/LibJS/Bytecode/expected/imported-bindings.txt
index ec814f42d84..4091177fac4 100644
--- a/Tests/LibJS/Bytecode/expected/imported-bindings.txt
+++ b/Tests/LibJS/Bytecode/expected/imported-bindings.txt
@@ -1,4 +1,4 @@
-call$cd393ed9 imported-bindings.mjs:11:5
+call$dcb481a6 imported-bindings.mjs:11:5
Registers: 7
Blocks: 1
Constants:
@@ -7,19 +7,19 @@ call$cd393ed9 imported-bindings.mjs:11:5
block0:
[ 0] Enter
[ 1] GetImport dst:reg5, `importedRead`, import_index:2
- [ a] Mov dst:reg6, src:Undefined
- [ d] Call value_feedback:0, call_feedback:0, dst:reg5, callee:reg5, this_value:reg6
- [ 16] Return value:reg5
+ [ 9] Mov dst:reg6, src:Undefined
+ [ c] Call value_feedback:0, call_feedback:0, dst:reg5, callee:reg5, this_value:reg6
+ [ 15] Return value:reg5
-read$48e02633 imported-bindings.mjs:7:5
+read$a887a811 imported-bindings.mjs:7:5
Registers: 7
Blocks: 1
block0:
[ 0] Enter
[ 1] GetImport dst:reg5, `namespace`, import_index:0
- [ a] Typeof dst:reg5, src:reg5
- [ d] GetImport dst:reg6, `importedValue`, import_index:1
- [ 16] Add arith_feedback:0, dst:reg5, lhs:reg5, rhs:reg6
- [ 1c] Return value:reg5
+ [ 9] Typeof dst:reg5, src:reg5
+ [ c] GetImport dst:reg6, `importedValue`, import_index:1
+ [ 14] Add arith_feedback:0, dst:reg5, lhs:reg5, rhs:reg6
+ [ 1a] Return value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/indexed-append-guards.txt b/Tests/LibJS/Bytecode/expected/indexed-append-guards.txt
index 42923c36e6b..c94637ada3e 100644
--- a/Tests/LibJS/Bytecode/expected/indexed-append-guards.txt
+++ b/Tests/LibJS/Bytecode/expected/indexed-append-guards.txt
@@ -1,4 +1,4 @@
-$76fe5a69 indexed-append-guards.js:1:1
+$ce5a0917 indexed-append-guards.js:1:1
Registers: 10
Blocks: 7
Constants:
@@ -18,66 +18,66 @@ block0:
[ 1] Mov dst:reg5, src:Undefined
[ 4] Mov dst:reg5, src:String("use strict")
[ 7] GetGlobal value_feedback:0, dst:reg6, `Object`
- [ 10] GetById value_feedback:1, dst:reg7, base:reg6, `preventExtensions`
- [ 1a] NewObject dst:reg8
- [ 1e] PutByValue keyed_feedback:0, base:reg8, property:Int32(0), src:Int32(1), kind:Own
- [ 27] Call value_feedback:2, call_feedback:0, dst:reg6, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 31] DynamicInitializeLexicalBinding `object`, src:reg6
- [ 38] GetGlobal value_feedback:3, dst:reg6, `expect_type_error`
- [ 41] NewFunction dst:reg7, shared_function_data_index:0
- [ 49] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
- [ 53] GetGlobal value_feedback:5, dst:reg6, `object`
- [ 5c] GetByValue value_feedback:6, keyed_feedback:1, dst:reg6, base:reg6, property:Int32(1)
- [ 66] StrictlyInequals arith_feedback:0, dst:reg6, lhs:reg6, rhs:Undefined
- [ 6c] Mov dst:reg5, src:Undefined
- [ 6f] JumpFalse condition:reg6, target:block2
+ [ f] GetById value_feedback:1, dst:reg7, base:reg6, `preventExtensions`
+ [ 18] NewObject dst:reg8
+ [ 1c] PutByValue keyed_feedback:0, base:reg8, property:Int32(0), src:Int32(1), kind:Own
+ [ 25] Call value_feedback:2, call_feedback:0, dst:reg6, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 2f] DynamicInitializeLexicalBinding `object`, src:reg6
+ [ 35] GetGlobal value_feedback:3, dst:reg6, `expect_type_error`
+ [ 3d] NewFunction dst:reg7, shared_function_data_index:0
+ [ 44] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
+ [ 4e] GetGlobal value_feedback:5, dst:reg6, `object`
+ [ 56] GetByValue value_feedback:6, keyed_feedback:1, dst:reg6, base:reg6, property:Int32(1)
+ [ 60] StrictlyInequals arith_feedback:0, dst:reg6, lhs:reg6, rhs:Undefined
+ [ 66] Mov dst:reg5, src:Undefined
+ [ 69] JumpFalse condition:reg6, target:block2
block1:
- [ 75] GetGlobal value_feedback:7, dst:reg6, `Error`
- [ 7e] CallConstruct value_feedback:8, call_feedback:2, dst:reg6, callee:reg6, arguments:[String("Indexed object append mutated")]
- [ 87] Throw src:reg6
+ [ 6f] GetGlobal value_feedback:7, dst:reg6, `Error`
+ [ 77] CallConstruct value_feedback:8, call_feedback:2, dst:reg6, callee:reg6, arguments:[String("Indexed object append mutated")]
+ [ 80] Throw src:reg6
block2:
- [ 89] NewPrimitiveArray dst:reg6, elements:[1, 2]
- [ 9f] DynamicInitializeLexicalBinding `array`, src:reg6
- [ a6] GetGlobal value_feedback:9, dst:reg6, `Object`
- [ af] GetById value_feedback:10, dst:reg7, base:reg6, `defineProperty`
- [ b9] GetGlobal value_feedback:11, dst:reg8, `array`
- [ c2] NewObject dst:reg9
- [ c6] InitObjectLiteralProperty object:reg9, `writable`, src:Bool(false), shape_cache_index:0, property_slot:0
- [ d0] CacheObjectShape object:reg9
- [ d4] Call value_feedback:12, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8, String("length"), reg9]
- [ e0] GetGlobal value_feedback:13, dst:reg6, `expect_type_error`
- [ e9] NewFunction dst:reg7, shared_function_data_index:1
- [ f1] Call value_feedback:14, call_feedback:4, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
- [ fb] GetGlobal value_feedback:15, dst:reg6, `array`
- [ 104] GetLength value_feedback:16, keyed_feedback:2, dst:reg6, base:reg6
- [ 10d] StrictlyInequalsRhsInt32 arith_feedback:1, dst:reg6, lhs:reg6, rhs:2
- [ 116] Mov dst:reg5, src:Undefined
- [ 119] JumpFalse condition:reg6, target:block4
+ [ 82] NewPrimitiveArray dst:reg6, elements:[1, 2]
+ [ 98] DynamicInitializeLexicalBinding `array`, src:reg6
+ [ 9e] GetGlobal value_feedback:9, dst:reg6, `Object`
+ [ a6] GetById value_feedback:10, dst:reg7, base:reg6, `defineProperty`
+ [ af] GetGlobal value_feedback:11, dst:reg8, `array`
+ [ b7] NewObject dst:reg9
+ [ bb] InitObjectLiteralProperty object:reg9, `writable`, src:Bool(false), shape_cache_index:0, property_slot:0
+ [ c4] CacheObjectShape object:reg9
+ [ c8] Call value_feedback:12, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8, String("length"), reg9]
+ [ d4] GetGlobal value_feedback:13, dst:reg6, `expect_type_error`
+ [ dc] NewFunction dst:reg7, shared_function_data_index:1
+ [ e3] Call value_feedback:14, call_feedback:4, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
+ [ ed] GetGlobal value_feedback:15, dst:reg6, `array`
+ [ f5] GetLength value_feedback:16, keyed_feedback:2, dst:reg6, base:reg6
+ [ fe] StrictlyInequalsRhsInt32 arith_feedback:1, dst:reg6, lhs:reg6, rhs:2
+ [ 107] Mov dst:reg5, src:Undefined
+ [ 10a] JumpFalse condition:reg6, target:block4
block3:
- [ 11f] GetGlobal value_feedback:17, dst:reg6, `Error`
- [ 128] CallConstruct value_feedback:18, call_feedback:5, dst:reg6, callee:reg6, arguments:[String("Array length changed")]
- [ 131] Throw src:reg6
+ [ 110] GetGlobal value_feedback:17, dst:reg6, `Error`
+ [ 118] CallConstruct value_feedback:18, call_feedback:5, dst:reg6, callee:reg6, arguments:[String("Array length changed")]
+ [ 121] Throw src:reg6
block4:
- [ 133] GetGlobal value_feedback:19, dst:reg6, `array`
- [ 13c] GetByValue value_feedback:20, keyed_feedback:3, dst:reg6, base:reg6, property:Int32(2)
- [ 146] StrictlyInequals arith_feedback:2, dst:reg6, lhs:reg6, rhs:Undefined
- [ 14c] Mov dst:reg5, src:Undefined
- [ 14f] JumpFalse condition:reg6, target:block6
+ [ 123] GetGlobal value_feedback:19, dst:reg6, `array`
+ [ 12b] GetByValue value_feedback:20, keyed_feedback:3, dst:reg6, base:reg6, property:Int32(2)
+ [ 135] StrictlyInequals arith_feedback:2, dst:reg6, lhs:reg6, rhs:Undefined
+ [ 13b] Mov dst:reg5, src:Undefined
+ [ 13e] JumpFalse condition:reg6, target:block6
block5:
- [ 155] GetGlobal value_feedback:21, dst:reg6, `Error`
- [ 15e] CallConstruct value_feedback:22, call_feedback:6, dst:reg6, callee:reg6, arguments:[String("Array append mutated")]
- [ 167] Throw src:reg6
+ [ 144] GetGlobal value_feedback:21, dst:reg6, `Error`
+ [ 14c] CallConstruct value_feedback:22, call_feedback:6, dst:reg6, callee:reg6, arguments:[String("Array append mutated")]
+ [ 155] Throw src:reg6
block6:
- [ 169] End value:reg5
+ [ 157] End value:reg5
-expect_type_error$16c63544 indexed-append-guards.js:4:9
+expect_type_error$b71eb366 indexed-append-guards.js:4:9
Registers: 7
Blocks: 8
Locals: did_throw~0, error~1
@@ -101,34 +101,34 @@ block2:
[ 16] Mov dst:error~1, src:<Empty>
[ 19] Mov dst:error~1, src:reg5
[ 1c] GetGlobal value_feedback:2, dst:reg6, `TypeError`
- [ 25] InstanceOf dst:reg6, lhs:error~1, rhs:reg6
- [ 29] Not dst:reg6, src:reg6
- [ 2c] JumpFalse condition:reg6, target:block4
+ [ 24] InstanceOf dst:reg6, lhs:error~1, rhs:reg6
+ [ 28] Not dst:reg6, src:reg6
+ [ 2b] JumpFalse condition:reg6, target:block4
block3:
- [ 32] Throw src:error~1
+ [ 31] Throw src:error~1
block4:
- [ 34] Mov dst:did_throw~0, src:Bool(true)
- [ 37] Jump target:block5
+ [ 33] Mov dst:did_throw~0, src:Bool(true)
+ [ 36] Jump target:block5
block5:
- [ 3c] Not dst:reg5, src:did_throw~0
- [ 3f] JumpFalse condition:reg5, target:block7
+ [ 3b] Not dst:reg5, src:did_throw~0
+ [ 3e] JumpFalse condition:reg5, target:block7
block6:
- [ 45] GetGlobal value_feedback:3, dst:reg5, `Error`
- [ 4e] CallConstruct value_feedback:4, call_feedback:1, dst:reg5, callee:reg5, arguments:[String("Expected TypeError")]
- [ 57] Throw src:reg5
+ [ 44] GetGlobal value_feedback:3, dst:reg5, `Error`
+ [ 4c] CallConstruct value_feedback:4, call_feedback:1, dst:reg5, callee:reg5, arguments:[String("Expected TypeError")]
+ [ 55] Throw src:reg5
block7:
- [ 59] End value:Undefined
+ [ 57] End value:Undefined
Exception handlers:
[ 4 .. 12] => handler block2
-$82d696e7 indexed-append-guards.js:18:5
+$32aa57d6 indexed-append-guards.js:18:5
Registers: 6
Blocks: 1
Constants:
@@ -139,11 +139,11 @@ $82d696e7 indexed-append-guards.js:18:5
block0:
[ 0] Enter
[ 1] GetGlobal value_feedback:0, dst:reg5, `object`
- [ a] PutByValue keyed_feedback:0, base:reg5, property:Int32(1), src:Int32(2), kind:Normal
- [ 13] End value:Undefined
+ [ 9] PutByValue keyed_feedback:0, base:reg5, property:Int32(1), src:Int32(2), kind:Normal
+ [ 12] End value:Undefined
-$7695c71d indexed-append-guards.js:26:5
+$16ee453f indexed-append-guards.js:26:5
Registers: 7
Blocks: 1
Constants:
@@ -153,7 +153,7 @@ $7695c71d indexed-append-guards.js:26:5
block0:
[ 0] Enter
[ 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
- [ 1c] PutByValue keyed_feedback:1, base:reg5, property:reg6, src:Int32(3), kind:Normal
- [ 25] End value:Undefined
+ [ 9] GetGlobal value_feedback:1, dst:reg6, `array`
+ [ 11] GetLength value_feedback:2, keyed_feedback:0, dst:reg6, base:reg6
+ [ 1a] PutByValue keyed_feedback:1, base:reg5, property:reg6, src:Int32(3), kind:Normal
+ [ 23] End value:Undefined
diff --git a/Tests/LibJS/Bytecode/expected/int32-binary-specializations.txt b/Tests/LibJS/Bytecode/expected/int32-binary-specializations.txt
index 52f215ed4f1..7dfd54d8e26 100644
--- a/Tests/LibJS/Bytecode/expected/int32-binary-specializations.txt
+++ b/Tests/LibJS/Bytecode/expected/int32-binary-specializations.txt
@@ -1,4 +1,4 @@
-$43c26e89 int32-binary-specializations.js:20:1
+$f3962f78 int32-binary-specializations.js:20:1
Registers: 7
Blocks: 1
Constants:
@@ -9,8 +9,8 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `int32_binary_specializations`
- [ d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(8)]
- [ 17] End value:reg5
+ [ c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(8)]
+ [ 16] End value:reg5
int32_binary_specializations$d825fddc int32-binary-specializations.js:2:5
diff --git a/Tests/LibJS/Bytecode/expected/int32-comparison-specializations.txt b/Tests/LibJS/Bytecode/expected/int32-comparison-specializations.txt
index cd27ec1f71d..6f745956247 100644
--- a/Tests/LibJS/Bytecode/expected/int32-comparison-specializations.txt
+++ b/Tests/LibJS/Bytecode/expected/int32-comparison-specializations.txt
@@ -1,4 +1,4 @@
-$bfe1524b int32-comparison-specializations.js:35:1
+$6039d06d int32-comparison-specializations.js:35:1
Registers: 7
Blocks: 1
Constants:
@@ -9,10 +9,10 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `comparison_results`
- [ d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(1)]
- [ 17] GetGlobal value_feedback:2, dst:reg6, `comparison_jumps`
- [ 20] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(1)]
- [ 2a] End value:reg5
+ [ c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(1)]
+ [ 16] GetGlobal value_feedback:2, dst:reg6, `comparison_jumps`
+ [ 1e] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(1)]
+ [ 28] End value:reg5
comparison_results$5b1791d8 int32-comparison-specializations.js:2:5
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 71d7fad766b..58f6ff3e1ad 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 @@
-$337db8f9 invalid-lhs-assignment-no-dead-code.js:8:1
+$1487335f invalid-lhs-assignment-no-dead-code.js:8:1
Registers: 8
Blocks: 4
Constants:
@@ -11,23 +11,23 @@ block0:
block1:
[ 7] GetGlobal value_feedback:0, dst:reg6, `f`
- [ 10] NewFunction dst:reg7, shared_function_data_index:0
- [ 18] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
- [ 22] Jump target:block3
+ [ f] NewFunction dst:reg7, shared_function_data_index:0
+ [ 16] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
+ [ 20] Jump target:block3
block2:
- [ 27] Catch value_feedback:2, dst:reg6
- [ 2b] Mov dst:reg5, src:Undefined
- [ 2e] Jump target:block3
+ [ 25] Catch value_feedback:2, dst:reg6
+ [ 29] Mov dst:reg5, src:Undefined
+ [ 2c] Jump target:block3
block3:
- [ 33] End value:reg5
+ [ 31] End value:reg5
Exception handlers:
- [ 7 .. 27] => handler block2
+ [ 7 .. 25] => handler block2
-f$0daba2b9 invalid-lhs-assignment-no-dead-code.js:5:6
+f$bd7f63a8 invalid-lhs-assignment-no-dead-code.js:5:6
Registers: 6
Blocks: 1
Constants:
@@ -37,7 +37,7 @@ block0:
[ 0] Enter
[ 1] Call value_feedback:0, call_feedback:0, dst:reg5, callee:arg0, this_value:Undefined
[ a] NewReferenceError dst:reg5, Invalid left-hand side in assignment
- [ f] Throw src:reg5
+ [ e] Throw src:reg5
$9bc23426
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 4663be285a5..662945651c8 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 @@
-$4a7dfe33 invalid-lhs-forin-no-dead-code.js:6:6
+$aa258011 invalid-lhs-forin-no-dead-code.js:6:6
Registers: 13
Blocks: 4
Constants:
@@ -20,9 +20,9 @@ block1:
block2:
[ 2b] GetGlobal value_feedback:0, dst:reg12, `f`
- [ 34] Call value_feedback:1, call_feedback:0, dst:reg12, callee:reg12, this_value:Undefined
- [ 3d] NewReferenceError dst:reg12, Invalid left-hand side in assignment
- [ 42] Throw src:reg12
+ [ 33] Call value_feedback:1, call_feedback:0, dst:reg12, callee:reg12, this_value:Undefined
+ [ 3c] NewReferenceError dst:reg12, Invalid left-hand side in assignment
+ [ 40] Throw src:reg12
block3:
- [ 44] End value:reg5
+ [ 42] End value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/lexical-env-teardown.txt b/Tests/LibJS/Bytecode/expected/lexical-env-teardown.txt
index ffdd36b7cb1..2f1b4a6e0ef 100644
--- a/Tests/LibJS/Bytecode/expected/lexical-env-teardown.txt
+++ b/Tests/LibJS/Bytecode/expected/lexical-env-teardown.txt
@@ -1,4 +1,4 @@
-$fd954441 lexical-env-teardown.js:13:1
+$2a5f7f2b lexical-env-teardown.js:13:1
Registers: 9
Blocks: 1
Constants:
@@ -9,45 +9,45 @@ block0:
[ 1] GetLexicalEnvironment dst:reg4
[ 3] Mov dst:reg5, src:Undefined
[ 6] GetGlobal value_feedback:0, dst:reg6, `console`
- [ f] GetById value_feedback:1, dst:reg7, base:reg6, `log`
- [ 19] GetGlobal value_feedback:2, dst:reg8, `withTeardown`
- [ 22] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined
- [ 2b] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 35] GetGlobal value_feedback:5, dst:reg6, `console`
- [ 3e] GetById value_feedback:6, dst:reg7, base:reg6, `log`
- [ 48] GetGlobal value_feedback:7, dst:reg8, `blockTeardown`
- [ 51] Call value_feedback:8, call_feedback:2, dst:reg8, callee:reg8, this_value:Undefined
- [ 5a] Call value_feedback:9, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 64] GetGlobal value_feedback:10, dst:reg6, `console`
- [ 6d] GetById value_feedback:11, dst:reg7, base:reg6, `log`
- [ 77] GetGlobal value_feedback:12, dst:reg8, `forInTeardown`
- [ 80] Call value_feedback:13, call_feedback:4, dst:reg8, callee:reg8, this_value:Undefined
- [ 89] Call value_feedback:14, call_feedback:5, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 93] GetGlobal value_feedback:15, dst:reg6, `console`
- [ 9c] GetById value_feedback:16, dst:reg7, base:reg6, `log`
- [ a6] GetGlobal value_feedback:17, dst:reg8, `forOfTeardown`
- [ af] Call value_feedback:18, call_feedback:6, dst:reg8, callee:reg8, this_value:Undefined
- [ b8] Call value_feedback:19, call_feedback:7, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ c2] GetGlobal value_feedback:20, dst:reg6, `console`
- [ cb] GetById value_feedback:21, dst:reg7, base:reg6, `log`
- [ d5] GetGlobal value_feedback:22, dst:reg8, `catchTeardown`
- [ de] Call value_feedback:23, call_feedback:8, dst:reg8, callee:reg8, this_value:Undefined
- [ e7] Call value_feedback:24, call_feedback:9, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ f1] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
- [ fd] CreateVariable `myName`, is_immutable:true, is_global:false, is_strict:false
- [ 105] NewFunction dst:reg6, shared_function_data_index:0
- [ 10d] InitializeLexicalBinding `myName`, src:reg6
- [ 115] SetLexicalEnvironment environment:reg4
- [ 117] SetGlobal `namedFn`, src:reg6
- [ 11e] GetGlobal value_feedback:25, dst:reg6, `console`
- [ 127] GetById value_feedback:26, dst:reg7, base:reg6, `log`
- [ 131] GetGlobal value_feedback:27, dst:reg8, `namedFn`
- [ 13a] Call value_feedback:28, call_feedback:10, dst:reg8, callee:reg8, this_value:Undefined
- [ 143] Call value_feedback:29, call_feedback:11, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 14d] End value:reg5
-
-
-withTeardown$f243107f lexical-env-teardown.js:7:9
+ [ e] GetById value_feedback:1, dst:reg7, base:reg6, `log`
+ [ 17] GetGlobal value_feedback:2, dst:reg8, `withTeardown`
+ [ 1f] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined
+ [ 28] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 32] GetGlobal value_feedback:5, dst:reg6, `console`
+ [ 3a] GetById value_feedback:6, dst:reg7, base:reg6, `log`
+ [ 43] GetGlobal value_feedback:7, dst:reg8, `blockTeardown`
+ [ 4b] Call value_feedback:8, call_feedback:2, dst:reg8, callee:reg8, this_value:Undefined
+ [ 54] Call value_feedback:9, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 5e] GetGlobal value_feedback:10, dst:reg6, `console`
+ [ 66] GetById value_feedback:11, dst:reg7, base:reg6, `log`
+ [ 6f] GetGlobal value_feedback:12, dst:reg8, `forInTeardown`
+ [ 77] Call value_feedback:13, call_feedback:4, dst:reg8, callee:reg8, this_value:Undefined
+ [ 80] Call value_feedback:14, call_feedback:5, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 8a] GetGlobal value_feedback:15, dst:reg6, `console`
+ [ 92] GetById value_feedback:16, dst:reg7, base:reg6, `log`
+ [ 9b] GetGlobal value_feedback:17, dst:reg8, `forOfTeardown`
+ [ a3] Call value_feedback:18, call_feedback:6, dst:reg8, callee:reg8, this_value:Undefined
+ [ ac] Call value_feedback:19, call_feedback:7, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ b6] GetGlobal value_feedback:20, dst:reg6, `console`
+ [ be] GetById value_feedback:21, dst:reg7, base:reg6, `log`
+ [ c7] GetGlobal value_feedback:22, dst:reg8, `catchTeardown`
+ [ cf] Call value_feedback:23, call_feedback:8, dst:reg8, callee:reg8, this_value:Undefined
+ [ d8] Call value_feedback:24, call_feedback:9, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ e2] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
+ [ ee] CreateVariable `myName`, is_immutable:true, is_global:false, is_strict:false
+ [ f5] NewFunction dst:reg6, shared_function_data_index:0
+ [ fc] InitializeLexicalBinding `myName`, src:reg6
+ [ 103] SetLexicalEnvironment environment:reg4
+ [ 105] SetGlobal `namedFn`, src:reg6
+ [ 10b] GetGlobal value_feedback:25, dst:reg6, `console`
+ [ 113] GetById value_feedback:26, dst:reg7, base:reg6, `log`
+ [ 11c] GetGlobal value_feedback:27, dst:reg8, `namedFn`
+ [ 124] Call value_feedback:28, call_feedback:10, dst:reg8, callee:reg8, this_value:Undefined
+ [ 12d] Call value_feedback:29, call_feedback:11, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 137] End value:reg5
+
+
+withTeardown$11399619 lexical-env-teardown.js:7:9
Registers: 9
Blocks: 1
Locals: inner~0
@@ -58,18 +58,18 @@ withTeardown$f243107f lexical-env-teardown.js:7:9
block0:
[ 0] Enter
[ 1] CreateVariable `outer`, is_immutable:false, is_global:false, is_strict:false
- [ 9] GetLexicalEnvironment dst:reg4
- [ b] InitializeLexicalBinding `outer`, src:Int32(1)
- [ 13] NewObject dst:reg5
- [ 17] InitObjectLiteralProperty object:reg5, `x`, src:Int32(10), shape_cache_index:0, property_slot:0
- [ 21] CacheObjectShape object:reg5
- [ 25] EnterObjectEnvironment dst:reg6, object:reg5
- [ 28] DynamicGetBinding value_feedback:0, dst:reg7, `x`
- [ 31] DynamicGetBinding value_feedback:1, dst:reg8, `outer`
- [ 3a] Add arith_feedback:0, dst:inner~0, lhs:reg7, rhs:reg8
- [ 40] SetLexicalEnvironment environment:reg4
- [ 42] GetBinding value_feedback:2, dst:reg5, `outer`
- [ 4c] Return value:reg5
+ [ 8] GetLexicalEnvironment dst:reg4
+ [ a] InitializeLexicalBinding `outer`, src:Int32(1)
+ [ 11] NewObject dst:reg5
+ [ 15] InitObjectLiteralProperty object:reg5, `x`, src:Int32(10), shape_cache_index:0, property_slot:0
+ [ 1e] CacheObjectShape object:reg5
+ [ 22] EnterObjectEnvironment dst:reg6, object:reg5
+ [ 25] DynamicGetBinding value_feedback:0, dst:reg7, `x`
+ [ 2d] DynamicGetBinding value_feedback:1, dst:reg8, `outer`
+ [ 35] Add arith_feedback:0, dst:inner~0, lhs:reg7, rhs:reg8
+ [ 3b] SetLexicalEnvironment environment:reg4
+ [ 3d] GetBinding value_feedback:2, dst:reg5, `outer`
+ [ 46] Return value:reg5
blockTeardown$e0c89ee5 lexical-env-teardown.js:17:9
@@ -87,7 +87,7 @@ block0:
[ 7] Return value:outer~0
-forInTeardown$04cd6325 lexical-env-teardown.js:28:9
+forInTeardown$e312ec7b lexical-env-teardown.js:28:9
Registers: 11
Blocks: 5
Locals: outer~0, k~1
@@ -104,25 +104,25 @@ block0:
[ 4] Mov dst:k~1, src:<Empty>
[ 7] NewObject dst:reg6
[ b] InitObjectLiteralProperty object:reg6, `a`, src:Int32(1), shape_cache_index:0, property_slot:0
- [ 15] InitObjectLiteralProperty object:reg6, `b`, src:Int32(2), shape_cache_index:0, property_slot:1
- [ 1f] CacheObjectShape object:reg6
- [ 23] Mov dst:reg5, src:reg6
- [ 26] JumpNullish condition:reg5, true_target:block4, false_target:block1
+ [ 14] InitObjectLiteralProperty object:reg6, `b`, src:Int32(2), shape_cache_index:0, property_slot:1
+ [ 1d] CacheObjectShape object:reg6
+ [ 21] Mov dst:reg5, src:reg6
+ [ 24] JumpNullish condition:reg5, true_target:block4, false_target:block1
block1:
- [ 30] GetObjectPropertyIterator dst_keys:reg7, dst_receiver:reg6, object:reg5
- [ 38] Mov dst:reg8, src:Int32(0)
+ [ 2e] GetObjectPropertyIterator dst_keys:reg7, dst_receiver:reg6, object:reg5
+ [ 36] Mov dst:reg8, src:Int32(0)
block2:
- [ 3b] ObjectPropertyIteratorNext dst_value:reg9, dst_done:reg10, receiver:reg6, keys:reg7, cursor:reg8
- [ 41] JumpTrue condition:reg10, target:block4
+ [ 39] ObjectPropertyIteratorNext dst_value:reg9, dst_done:reg10, receiver:reg6, keys:reg7, cursor:reg8
+ [ 3f] JumpTrue condition:reg10, target:block4
block3:
- [ 47] Mov dst:k~1, src:reg9
- [ 4a] JumpLoop target:block2
+ [ 45] Mov dst:k~1, src:reg9
+ [ 48] JumpLoop target:block2
block4:
- [ 4f] Return value:outer~0
+ [ 4d] Return value:outer~0
forOfTeardown$2d0584ea lexical-env-teardown.js:38:9
@@ -160,7 +160,7 @@ Exception handlers:
[ 32 .. 3a] => handler block3
-catchTeardown$208117d8 lexical-env-teardown.js:48:9
+catchTeardown$70ad56e9 lexical-env-teardown.js:48:9
Registers: 6
Blocks: 4
Locals: outer~0, e~1
@@ -175,30 +175,30 @@ block0:
block1:
[ 4] GetGlobal value_feedback:0, dst:reg5, `Error`
- [ d] CallConstruct value_feedback:1, call_feedback:0, dst:reg5, callee:reg5, arguments:[String("test")]
- [ 16] Throw src:reg5
+ [ c] CallConstruct value_feedback:1, call_feedback:0, dst:reg5, callee:reg5, arguments:[String("test")]
+ [ 15] Throw src:reg5
block2:
- [ 18] Catch value_feedback:2, dst:reg5
- [ 1c] Mov dst:e~1, src:<Empty>
- [ 1f] Mov dst:e~1, src:reg5
- [ 22] Jump target:block3
+ [ 17] Catch value_feedback:2, dst:reg5
+ [ 1b] Mov dst:e~1, src:<Empty>
+ [ 1e] Mov dst:e~1, src:reg5
+ [ 21] Jump target:block3
block3:
- [ 27] Return value:outer~0
+ [ 26] Return value:outer~0
Exception handlers:
- [ 4 .. 18] => handler block2
+ [ 4 .. 17] => handler block2
-myName$40a39b9c lexical-env-teardown.js:60:5
+myName$90cfdaad lexical-env-teardown.js:60:5
Registers: 6
Blocks: 1
block0:
[ 0] Enter
[ 1] TypeofBinding dst:reg5, `myName`
- [ 9] Return value:reg5
+ [ 8] 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 75b287bb67c..4e93a081012 100644
--- a/Tests/LibJS/Bytecode/expected/local-source-order.txt
+++ b/Tests/LibJS/Bytecode/expected/local-source-order.txt
@@ -1,4 +1,4 @@
-$4ee6dac0 local-source-order.js:12:1
+$017e8cbf local-source-order.js:12:1
Registers: 7
Blocks: 1
Constants:
@@ -8,8 +8,8 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `source_order_locals`
- [ d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 16] End value:reg5
+ [ c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 15] End value:reg5
source_order_locals$ca85aabf local-source-order.js:6:9
diff --git a/Tests/LibJS/Bytecode/expected/local-variables.txt b/Tests/LibJS/Bytecode/expected/local-variables.txt
index a0d2cd4e2a7..b1019c261ad 100644
--- a/Tests/LibJS/Bytecode/expected/local-variables.txt
+++ b/Tests/LibJS/Bytecode/expected/local-variables.txt
@@ -1,4 +1,4 @@
-$2ebf499c local-variables.js:20:1
+$3e3a8c69 local-variables.js:20:1
Registers: 7
Blocks: 1
Constants:
@@ -8,12 +8,12 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `simple_let`
- [ d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 16] GetGlobal value_feedback:2, dst:reg6, `simple_const`
- [ 1f] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined
- [ 28] GetGlobal value_feedback:4, dst:reg6, `multiple_locals`
- [ 31] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg6, this_value:Undefined
- [ 3a] End value:reg5
+ [ c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 15] GetGlobal value_feedback:2, dst:reg6, `simple_const`
+ [ 1d] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined
+ [ 26] GetGlobal value_feedback:4, dst:reg6, `multiple_locals`
+ [ 2e] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg6, this_value:Undefined
+ [ 37] End value:reg5
simple_let$ae8f7523 local-variables.js:5:9
diff --git a/Tests/LibJS/Bytecode/expected/logical-assignment-register-order.txt b/Tests/LibJS/Bytecode/expected/logical-assignment-register-order.txt
index cfe44703729..449ecec444e 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 @@
-$1285407c logical-assignment-register-order.js:2:1
+$a09e8ac1 logical-assignment-register-order.js:2:1
Registers: 9
Blocks: 3
Constants:
@@ -8,13 +8,13 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `value`
- [ d] Mov dst:reg7, src:reg6
- [ 10] JumpFalse condition:reg7, target:block2
+ [ c] Mov dst:reg7, src:reg6
+ [ f] JumpFalse condition:reg7, target:block2
block1:
- [ 16] NewFunction dst:reg7, shared_function_data_index:0 (value)
- [ 1e] SetGlobal `value`, src:reg7
+ [ 15] NewFunction dst:reg7, shared_function_data_index:0 (value)
+ [ 1c] SetGlobal `value`, src:reg7
block2:
- [ 25] Mov dst:reg5, src:reg7
- [ 28] End value:reg5
+ [ 22] Mov dst:reg5, src:reg7
+ [ 25] End value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/logical-constant-folding.txt b/Tests/LibJS/Bytecode/expected/logical-constant-folding.txt
index 0810259410c..9fc084c2c5c 100644
--- a/Tests/LibJS/Bytecode/expected/logical-constant-folding.txt
+++ b/Tests/LibJS/Bytecode/expected/logical-constant-folding.txt
@@ -1,4 +1,4 @@
-$9ac4a7e6 logical-constant-folding.js:1:5
+$09e76c91 logical-constant-folding.js:1:5
Registers: 7
Blocks: 15
Constants:
@@ -20,52 +20,52 @@ block1:
block2:
[ 14] SetGlobal `a`, src:reg6
- [ 1b] Mov dst:reg6, src:Undefined
- [ 1e] JumpNullish condition:reg6, true_target:block3, false_target:block4
+ [ 1a] Mov dst:reg6, src:Undefined
+ [ 1d] JumpNullish condition:reg6, true_target:block3, false_target:block4
block3:
- [ 28] Mov dst:reg6, src:Int32(42)
+ [ 27] Mov dst:reg6, src:Int32(42)
block4:
- [ 2b] SetGlobal `b`, src:reg6
- [ 32] Mov dst:reg6, src:Int32(0)
- [ 35] JumpNullish condition:reg6, true_target:block5, false_target:block6
+ [ 2a] SetGlobal `b`, src:reg6
+ [ 30] Mov dst:reg6, src:Int32(0)
+ [ 33] JumpNullish condition:reg6, true_target:block5, false_target:block6
block5:
- [ 3f] Mov dst:reg6, src:Int32(42)
+ [ 3d] Mov dst:reg6, src:Int32(42)
block6:
- [ 42] SetGlobal `c`, src:reg6
- [ 49] Mov dst:reg6, src:Bool(false)
- [ 4c] JumpTrue condition:reg6, target:block8
+ [ 40] SetGlobal `c`, src:reg6
+ [ 46] Mov dst:reg6, src:Bool(false)
+ [ 49] JumpTrue condition:reg6, target:block8
block7:
- [ 52] Mov dst:reg6, src:Int32(42)
+ [ 4f] Mov dst:reg6, src:Int32(42)
block8:
- [ 55] SetGlobal `d`, src:reg6
- [ 5c] Mov dst:reg6, src:Bool(true)
- [ 5f] JumpTrue condition:reg6, target:block10
+ [ 52] SetGlobal `d`, src:reg6
+ [ 58] Mov dst:reg6, src:Bool(true)
+ [ 5b] JumpTrue condition:reg6, target:block10
block9:
- [ 65] Mov dst:reg6, src:Int32(42)
+ [ 61] Mov dst:reg6, src:Int32(42)
block10:
- [ 68] SetGlobal `e`, src:reg6
- [ 6f] Mov dst:reg6, src:Bool(true)
- [ 72] JumpFalse condition:reg6, target:block12
+ [ 64] SetGlobal `e`, src:reg6
+ [ 6a] Mov dst:reg6, src:Bool(true)
+ [ 6d] JumpFalse condition:reg6, target:block12
block11:
- [ 78] Mov dst:reg6, src:Int32(42)
+ [ 73] Mov dst:reg6, src:Int32(42)
block12:
- [ 7b] SetGlobal `f`, src:reg6
- [ 82] Mov dst:reg6, src:Bool(false)
- [ 85] JumpFalse condition:reg6, target:block14
+ [ 76] SetGlobal `f`, src:reg6
+ [ 7c] Mov dst:reg6, src:Bool(false)
+ [ 7f] JumpFalse condition:reg6, target:block14
block13:
- [ 8b] Mov dst:reg6, src:Int32(42)
+ [ 85] Mov dst:reg6, src:Int32(42)
block14:
- [ 8e] SetGlobal `g`, src:reg6
- [ 95] End value:reg5
+ [ 88] SetGlobal `g`, src:reg6
+ [ 8e] 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 d8407d1e31d..29a1fc96956 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 @@
-$9f1319d1 logical-or-in-if-condition.js:12:1
+$4ee6dac0 logical-or-in-if-condition.js:12:1
Registers: 7
Blocks: 1
Constants:
@@ -9,8 +9,8 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `blocked`
- [ d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Bool(false)]
- [ 17] End value:reg5
+ [ c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Bool(false)]
+ [ 16] End value:reg5
blocked$6c4aa319 logical-or-in-if-condition.js:6:14
diff --git a/Tests/LibJS/Bytecode/expected/logical-or-preferred-dst.txt b/Tests/LibJS/Bytecode/expected/logical-or-preferred-dst.txt
index 992b437010f..549946cc89a 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 @@
-$db3b8ae6 logical-or-preferred-dst.js:11:1
+$2b67c9f7 logical-or-preferred-dst.js:11:1
Registers: 7
Blocks: 1
Constants:
@@ -9,8 +9,8 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `blocked`
- [ d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Bool(false)]
- [ 17] End value:reg5
+ [ c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Bool(false)]
+ [ 16] End value:reg5
blocked$913118e4 logical-or-preferred-dst.js:5:14
diff --git a/Tests/LibJS/Bytecode/expected/mapped-arguments-parameter-bindings.txt b/Tests/LibJS/Bytecode/expected/mapped-arguments-parameter-bindings.txt
index 728d41f334c..5c66c5f3464 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 @@
-$a5cc077b mapped-arguments-parameter-bindings.js:4:1
+$559fc86a mapped-arguments-parameter-bindings.js:4:1
Registers: 7
Blocks: 1
Constants:
@@ -11,11 +11,11 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `forward`
- [ d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(1), Int32(2), Int32(3)]
- [ 19] End value:reg5
+ [ c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(1), Int32(2), Int32(3)]
+ [ 18] End value:reg5
-forward$ba844910 mapped-arguments-parameter-bindings.js:2:5
+forward$2c6afecb mapped-arguments-parameter-bindings.js:2:5
Registers: 7
Blocks: 1
Locals: arguments~0
@@ -26,13 +26,13 @@ block0:
[ 0] Enter
[ 1] CreateArguments dst:arguments~0, is_immutable:false, creates_parameter_bindings:true
[ 6] InitializeLexicalBinding `a`, src:Undefined
- [ e] SetLexicalBinding `a`, src:arg0
- [ 16] InitializeLexicalBinding `b`, src:Undefined
- [ 1e] SetLexicalBinding `b`, src:arg1
- [ 26] SetLexicalBinding `a`, src:arg2
- [ 2e] GetLength value_feedback:0, keyed_feedback:0, dst:reg5, base:arguments~0
- [ 37] GetBinding value_feedback:1, dst:reg6, `a`
- [ 41] Add arith_feedback:0, dst:reg5, lhs:reg5, rhs:reg6
- [ 47] GetBinding value_feedback:2, dst:reg6, `b`
- [ 51] Add arith_feedback:1, dst:reg5, lhs:reg5, rhs:reg6
- [ 57] Return value:reg5
+ [ d] SetLexicalBinding `a`, src:arg0
+ [ 14] InitializeLexicalBinding `b`, src:Undefined
+ [ 1b] SetLexicalBinding `b`, src:arg1
+ [ 22] SetLexicalBinding `a`, src:arg2
+ [ 29] GetLength value_feedback:0, keyed_feedback:0, dst:reg5, base:arguments~0
+ [ 32] GetBinding value_feedback:1, dst:reg6, `a`
+ [ 3b] Add arith_feedback:0, dst:reg5, lhs:reg5, rhs:reg6
+ [ 41] GetBinding value_feedback:2, dst:reg6, `b`
+ [ 4a] Add arith_feedback:1, dst:reg5, lhs:reg5, rhs:reg6
+ [ 50] Return value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/module-level-bindings.txt b/Tests/LibJS/Bytecode/expected/module-level-bindings.txt
index 73d6e0bf2c3..fff16add824 100644
--- a/Tests/LibJS/Bytecode/expected/module-level-bindings.txt
+++ b/Tests/LibJS/Bytecode/expected/module-level-bindings.txt
@@ -1,33 +1,33 @@
-outer$1ca42e54 module-level-bindings.mjs:6:5
+outer$6cd06d65 module-level-bindings.mjs:6:5
Registers: 6
Blocks: 1
block0:
[ 0] Enter
[ 1] NewFunction dst:reg5, shared_function_data_index:0
- [ 9] Return value:reg5
+ [ 8] Return value:reg5
-inner$da0a5cd7 module-level-bindings.mjs:7:18
+inner$1abb591b module-level-bindings.mjs:7:18
Registers: 7
Blocks: 1
block0:
[ 0] Enter
[ 1] GetBinding value_feedback:0, dst:reg5, `lexical`
- [ b] GetBinding value_feedback:1, dst:reg6, `constant`
- [ 15] Add arith_feedback:0, dst:reg5, lhs:reg5, rhs:reg6
- [ 1b] SetLexicalBinding `variable`, src:reg5
- [ 23] GetCalleeAndThisFromEnvironment value_feedback:2, callee:reg5, this_value:reg6, `declared`
- [ 2e] Call value_feedback:3, call_feedback:0, dst:reg5, callee:reg5, this_value:reg6
- [ 37] Return value:reg5
+ [ a] GetBinding value_feedback:1, dst:reg6, `constant`
+ [ 13] Add arith_feedback:0, dst:reg5, lhs:reg5, rhs:reg6
+ [ 19] SetLexicalBinding `variable`, src:reg5
+ [ 20] GetCalleeAndThisFromEnvironment value_feedback:2, callee:reg5, this_value:reg6, `declared`
+ [ 2a] Call value_feedback:3, call_feedback:0, dst:reg5, callee:reg5, this_value:reg6
+ [ 33] Return value:reg5
-declared$add38b02 module-level-bindings.mjs:13:5
+declared$fdffca13 module-level-bindings.mjs:13:5
Registers: 6
Blocks: 1
block0:
[ 0] Enter
[ 1] TypeofBinding dst:reg5, `lexical`
- [ 9] Return value:reg5
+ [ 8] Return value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/mov-merging.txt b/Tests/LibJS/Bytecode/expected/mov-merging.txt
index ee2dc47cb78..1b9978e0b68 100644
--- a/Tests/LibJS/Bytecode/expected/mov-merging.txt
+++ b/Tests/LibJS/Bytecode/expected/mov-merging.txt
@@ -1,4 +1,4 @@
-$cb6e475e mov-merging.js:14:1
+$a167fd84 mov-merging.js:14:1
Registers: 9
Blocks: 1
Constants:
@@ -8,16 +8,16 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `console`
- [ d] GetById value_feedback:1, dst:reg7, base:reg6, `log`
- [ 17] GetGlobal value_feedback:2, dst:reg8, `twoLocals`
- [ 20] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined
- [ 29] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 33] GetGlobal value_feedback:5, dst:reg6, `console`
- [ 3c] GetById value_feedback:6, dst:reg7, base:reg6, `log`
- [ 46] GetGlobal value_feedback:7, dst:reg8, `threeLocals`
- [ 4f] Call value_feedback:8, call_feedback:2, dst:reg8, callee:reg8, this_value:Undefined
- [ 58] Call value_feedback:9, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 62] End value:reg5
+ [ c] GetById value_feedback:1, dst:reg7, base:reg6, `log`
+ [ 15] GetGlobal value_feedback:2, dst:reg8, `twoLocals`
+ [ 1d] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined
+ [ 26] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 30] GetGlobal value_feedback:5, dst:reg6, `console`
+ [ 38] GetById value_feedback:6, dst:reg7, base:reg6, `log`
+ [ 41] GetGlobal value_feedback:7, dst:reg8, `threeLocals`
+ [ 49] Call value_feedback:8, call_feedback:2, dst:reg8, callee:reg8, this_value:Undefined
+ [ 52] Call value_feedback:9, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 5c] End value:reg5
twoLocals$488b742b mov-merging.js:2:9
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 83a884561e2..a668f2253f4 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 @@
-$0392d2ad named-class-expression-no-lhs-name-leak.js:1:1
+$f1539ed0 named-class-expression-no-lhs-name-leak.js:1:1
Registers: 14
Blocks: 12
Constants:
@@ -26,33 +26,33 @@ block3:
block4:
[ 2e] CreateLexicalEnvironment dst:reg13, parent:reg4, capacity:1, is_catch_environment:false
[ 3a] CreateVariable `Foo`, is_immutable:true, is_global:false, is_strict:true
- [ 42] SetLexicalEnvironment environment:reg4
- [ 44] NewClass dst:reg12, class_environment:reg13, class_blueprint_index:0, element_keys_are_in_array:false
- [ 53] Mov dst:reg11, src:reg12
+ [ 41] SetLexicalEnvironment environment:reg4
+ [ 43] NewClass dst:reg12, class_environment:reg13, class_blueprint_index:0, element_keys_are_in_array:false
+ [ 51] Mov dst:reg11, src:reg12
block5:
- [ 56] SetGlobal `C`, src:reg11
+ [ 54] SetGlobal `C`, src:reg11
block6:
- [ 5d] JumpTrue condition:reg10, target:block11
+ [ 5a] JumpTrue condition:reg10, target:block11
block7:
- [ 63] IteratorClose iterator_object:reg8, iterator_next:reg9, iterator_done:reg10, completion_value:Undefined
- [ 6b] Jump target:block11
+ [ 60] IteratorClose iterator_object:reg8, iterator_next:reg9, iterator_done:reg10, completion_value:Undefined
+ [ 68] Jump target:block11
block8:
- [ 70] Catch value_feedback:0, dst:reg11
- [ 74] SetLexicalEnvironment environment:reg4
- [ 76] JumpTrue condition:reg10, target:block10
+ [ 6d] Catch value_feedback:0, dst:reg11
+ [ 71] SetLexicalEnvironment environment:reg4
+ [ 73] JumpTrue condition:reg10, target:block10
block9:
- [ 7c] IteratorClose iterator_object:reg8, iterator_next:reg9, iterator_done:reg10, completion_value:reg11
+ [ 79] IteratorClose iterator_object:reg8, iterator_next:reg9, iterator_done:reg10, completion_value:reg11
block10:
- [ 84] Throw src:reg11
+ [ 81] Throw src:reg11
block11:
- [ 86] End value:reg5
+ [ 83] End value:reg5
Exception handlers:
- [ 1b .. 5d] => handler block8
+ [ 1b .. 5a] => 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 572099b580a..9ffd57463ce 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 @@
-$c3a06ab7 named-function-expression-unused-name.js:24:1
+$2347ec95 named-function-expression-unused-name.js:24:1
Registers: 7
Blocks: 1
Constants:
@@ -9,13 +9,13 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `outer`
- [ d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(1)]
- [ 17] GetGlobal value_feedback:2, dst:reg6, `outerWithEval`
- [ 20] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined
- [ 29] End value:reg5
+ [ c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(1)]
+ [ 16] GetGlobal value_feedback:2, dst:reg6, `outerWithEval`
+ [ 1e] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined
+ [ 27] End value:reg5
-outer$248e6f1b named-function-expression-unused-name.js:6:20
+outer$55c42892 named-function-expression-unused-name.js:6:20
Registers: 7
Blocks: 1
Locals: unused~0, used~1, nested~2
@@ -23,26 +23,26 @@ outer$248e6f1b named-function-expression-unused-name.js:6:20
block0:
[ 0] Enter
[ 1] CreateVariable `x`, is_immutable:false, is_global:false, is_strict:false
- [ 9] InitializeLexicalBinding `x`, src:arg0
- [ 11] GetLexicalEnvironment dst:reg4
- [ 13] NewFunction dst:unused~0, shared_function_data_index:0
- [ 1b] CreateLexicalEnvironment dst:reg6, parent:reg4, capacity:1, is_catch_environment:false
- [ 27] CreateVariable `g`, is_immutable:true, is_global:false, is_strict:false
- [ 2f] NewFunction dst:reg5, shared_function_data_index:1
- [ 37] InitializeLexicalBinding `g`, src:reg5
- [ 3f] SetLexicalEnvironment environment:reg4
- [ 41] Mov dst:used~1, src:reg5
- [ 44] CreateLexicalEnvironment dst:reg6, parent:reg4, capacity:1, is_catch_environment:false
- [ 50] CreateVariable `h`, is_immutable:true, is_global:false, is_strict:false
- [ 58] NewFunction dst:reg5, shared_function_data_index:2
- [ 60] InitializeLexicalBinding `h`, src:reg5
- [ 68] SetLexicalEnvironment environment:reg4
- [ 6a] Mov dst:nested~2, src:reg5
- [ 6d] NewArray dst:reg5, elements:[unused~0, used~1, nested~2]
- [ 73] Return value:reg5
+ [ 8] InitializeLexicalBinding `x`, src:arg0
+ [ f] GetLexicalEnvironment dst:reg4
+ [ 11] NewFunction dst:unused~0, shared_function_data_index:0
+ [ 18] CreateLexicalEnvironment dst:reg6, parent:reg4, capacity:1, is_catch_environment:false
+ [ 24] CreateVariable `g`, is_immutable:true, is_global:false, is_strict:false
+ [ 2b] NewFunction dst:reg5, shared_function_data_index:1
+ [ 32] InitializeLexicalBinding `g`, src:reg5
+ [ 39] SetLexicalEnvironment environment:reg4
+ [ 3b] Mov dst:used~1, src:reg5
+ [ 3e] CreateLexicalEnvironment dst:reg6, parent:reg4, capacity:1, is_catch_environment:false
+ [ 4a] CreateVariable `h`, is_immutable:true, is_global:false, is_strict:false
+ [ 51] NewFunction dst:reg5, shared_function_data_index:2
+ [ 58] InitializeLexicalBinding `h`, src:reg5
+ [ 5f] SetLexicalEnvironment environment:reg4
+ [ 61] Mov dst:nested~2, src:reg5
+ [ 64] NewArray dst:reg5, elements:[unused~0, used~1, nested~2]
+ [ 6a] Return value:reg5
-outerWithEval$9fb387d5 named-function-expression-unused-name.js:19:5
+outerWithEval$efdfc6e6 named-function-expression-unused-name.js:19:5
Registers: 7
Blocks: 1
@@ -51,7 +51,7 @@ block0:
[ 1] GetLexicalEnvironment dst:reg4
[ 3] CreateLexicalEnvironment dst:reg6, parent:reg4, capacity:1, is_catch_environment:false
[ f] CreateVariable `i`, is_immutable:true, is_global:false, is_strict:false
- [ 17] NewFunction dst:reg5, shared_function_data_index:0
- [ 1f] InitializeLexicalBinding `i`, src:reg5
- [ 27] SetLexicalEnvironment environment:reg4
- [ 29] Return value:reg5
+ [ 16] NewFunction dst:reg5, shared_function_data_index:0
+ [ 1d] InitializeLexicalBinding `i`, src:reg5
+ [ 24] SetLexicalEnvironment environment:reg4
+ [ 26] Return value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/named-function-expression.txt b/Tests/LibJS/Bytecode/expected/named-function-expression.txt
index 3acefb466b8..0833f180575 100644
--- a/Tests/LibJS/Bytecode/expected/named-function-expression.txt
+++ b/Tests/LibJS/Bytecode/expected/named-function-expression.txt
@@ -1,4 +1,4 @@
-$f334557c named-function-expression.js:4:1
+$71d25cf4 named-function-expression.js:4:1
Registers: 9
Blocks: 4
Constants:
@@ -10,23 +10,23 @@ block0:
[ 1] GetLexicalEnvironment dst:reg4
[ 3] Mov dst:reg5, src:Undefined
[ 6] ResolveGlobalBinding dst:reg6, `Oops`
- [ d] CreateLexicalEnvironment dst:reg8, parent:reg4, capacity:1, is_catch_environment:false
- [ 19] CreateVariable `Oops`, is_immutable:true, is_global:false, is_strict:false
- [ 21] NewFunction dst:reg7, shared_function_data_index:0
- [ 29] InitializeLexicalBinding `Oops`, src:reg7
- [ 31] SetLexicalEnvironment environment:reg4
- [ 33] JumpIf condition:reg6, true_target:block1, false_target:block2
+ [ c] CreateLexicalEnvironment dst:reg8, parent:reg4, capacity:1, is_catch_environment:false
+ [ 18] CreateVariable `Oops`, is_immutable:true, is_global:false, is_strict:false
+ [ 1f] NewFunction dst:reg7, shared_function_data_index:0
+ [ 26] InitializeLexicalBinding `Oops`, src:reg7
+ [ 2d] SetLexicalEnvironment environment:reg4
+ [ 2f] JumpIf condition:reg6, true_target:block1, false_target:block2
block1:
- [ 3d] SetGlobal `Oops`, src:reg7
- [ 44] Jump target:block3
+ [ 39] SetGlobal `Oops`, src:reg7
+ [ 3f] Jump target:block3
block2:
- [ 49] SetResolvedBinding environment:Null, `Oops`, src:reg7
- [ 4f] Jump target:block3
+ [ 44] SetResolvedBinding environment:Null, `Oops`, src:reg7
+ [ 49] Jump target:block3
block3:
- [ 54] Mov dst:reg5, src:reg7
- [ 57] GetGlobal value_feedback:0, dst:reg6, `Oops`
- [ 60] GetById value_feedback:1, dst:reg5, base:reg6, `x`
- [ 6a] End value:reg5
+ [ 4e] Mov dst:reg5, src:reg7
+ [ 51] GetGlobal value_feedback:0, dst:reg6, `Oops`
+ [ 59] GetById value_feedback:1, dst:reg5, base:reg6, `x`
+ [ 62] 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 6e8dc5fd4f7..564c2e69cbe 100644
--- a/Tests/LibJS/Bytecode/expected/nested-for-loop-completion.txt
+++ b/Tests/LibJS/Bytecode/expected/nested-for-loop-completion.txt
@@ -1,4 +1,4 @@
-$43b0405c nested-for-loop-completion.js:4:5
+$c24e47d4 nested-for-loop-completion.js:4:5
Registers: 8
Blocks: 7
Constants:
@@ -11,30 +11,30 @@ block0:
[ 1] Mov dst:reg5, src:Undefined
[ 4] Mov dst:reg5, src:Undefined
[ 7] SetGlobal `n`, src:Int32(4)
- [ e] Jump target:block5
+ [ d] Jump target:block5
block1:
- [ 13] Mov dst:reg5, src:Undefined
- [ 16] SetGlobal `depth`, src:Int32(0)
- [ 1d] Jump target:block3
+ [ 12] Mov dst:reg5, src:Undefined
+ [ 15] SetGlobal `depth`, src:Int32(0)
+ [ 1b] Jump target:block3
block2:
- [ 22] GetGlobal value_feedback:0, dst:reg6, `depth`
- [ 2b] AddRhsInt32 arith_feedback:0, dst:reg7, lhs:reg6, rhs:2
- [ 34] SetGlobal `depth`, src:reg7
+ [ 20] GetGlobal value_feedback:0, dst:reg6, `depth`
+ [ 28] AddRhsInt32 arith_feedback:0, dst:reg7, lhs:reg6, rhs:2
+ [ 31] SetGlobal `depth`, src:reg7
block3:
- [ 3b] GetGlobal value_feedback:1, dst:reg6, `depth`
- [ 44] JumpLessThanEqualsLoopRhsInt32 arith_feedback:1, lhs:reg6, rhs:0, true_target:block2, false_target:block4
+ [ 37] GetGlobal value_feedback:1, dst:reg6, `depth`
+ [ 3f] JumpLessThanEqualsLoopRhsInt32 arith_feedback:1, lhs:reg6, rhs:0, true_target:block2, false_target:block4
block4:
- [ 54] GetGlobal value_feedback:2, dst:reg6, `n`
- [ 5d] AddRhsInt32 arith_feedback:2, dst:reg7, lhs:reg6, rhs:1
- [ 66] SetGlobal `n`, src:reg7
+ [ 4f] GetGlobal value_feedback:2, dst:reg6, `n`
+ [ 57] AddRhsInt32 arith_feedback:2, dst:reg7, lhs:reg6, rhs:1
+ [ 60] SetGlobal `n`, src:reg7
block5:
- [ 6d] GetGlobal value_feedback:3, dst:reg6, `n`
- [ 76] JumpLessThanEqualsLoopRhsInt32 arith_feedback:3, lhs:reg6, rhs:7, true_target:block1, false_target:block6
+ [ 66] GetGlobal value_feedback:3, dst:reg6, `n`
+ [ 6e] JumpLessThanEqualsLoopRhsInt32 arith_feedback:3, lhs:reg6, rhs:7, true_target:block1, false_target:block6
block6:
- [ 86] End value:reg5
+ [ 7e] 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 31e0955b051..0053c11e898 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 @@
-$9add7f72 nested-function-decl-source-order.js:15:1
+$5cf0743e nested-function-decl-source-order.js:15:1
Registers: 10
Blocks: 1
Constants:
@@ -9,16 +9,16 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `console`
- [ d] GetById value_feedback:1, dst:reg7, base:reg6, `log`
- [ 17] GetGlobal value_feedback:2, dst:reg8, `outer`
- [ 20] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined
- [ 29] GetById value_feedback:4, dst:reg9, base:reg8, `join`
- [ 33] Call value_feedback:5, call_feedback:1, dst:reg8, callee:reg9, this_value:reg8, arguments:[String(",")]
- [ 3d] Call value_feedback:6, call_feedback:2, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 47] End value:reg5
+ [ c] GetById value_feedback:1, dst:reg7, base:reg6, `log`
+ [ 15] GetGlobal value_feedback:2, dst:reg8, `outer`
+ [ 1d] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined
+ [ 26] GetById value_feedback:4, dst:reg9, base:reg8, `join`
+ [ 2f] Call value_feedback:5, call_feedback:1, dst:reg8, callee:reg9, this_value:reg8, arguments:[String(",")]
+ [ 39] Call value_feedback:6, call_feedback:2, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 43] End value:reg5
-outer$6b28dfe8 nested-function-decl-source-order.js:6:5
+outer$4c325a4e nested-function-decl-source-order.js:6:5
Registers: 11
Blocks: 1
Locals: alpha~0, beta~1, dup~2, gamma~3, delta~4
@@ -29,22 +29,22 @@ block0:
[ 0] Enter
[ 1] Mov dst:alpha~0, src:Undefined
[ 4] NewFunction dst:alpha~0, shared_function_data_index:0
- [ c] Mov dst:beta~1, src:Undefined
- [ f] NewFunction dst:beta~1, shared_function_data_index:1
- [ 17] Mov dst:dup~2, src:Undefined
- [ 1a] NewFunction dst:dup~2, shared_function_data_index:2
- [ 22] Mov dst:gamma~3, src:Undefined
- [ 25] NewFunction dst:gamma~3, shared_function_data_index:3
- [ 2d] NewFunction dst:dup~2, shared_function_data_index:4
- [ 35] Mov dst:delta~4, src:Undefined
- [ 38] NewFunction dst:delta~4, shared_function_data_index:5
- [ 40] Call value_feedback:0, call_feedback:0, dst:reg5, callee:alpha~0, this_value:Undefined
- [ 49] Call value_feedback:1, call_feedback:1, dst:reg6, callee:beta~1, this_value:Undefined
- [ 52] Call value_feedback:2, call_feedback:2, dst:reg7, callee:gamma~3, this_value:Undefined
- [ 5b] Call value_feedback:3, call_feedback:3, dst:reg8, callee:delta~4, this_value:Undefined
- [ 64] Call value_feedback:4, call_feedback:4, dst:reg9, callee:dup~2, this_value:Undefined
- [ 6d] NewArray dst:reg10, elements:[reg5, reg6, reg7, reg8, reg9]
- [ 75] Return value:reg10
+ [ b] Mov dst:beta~1, src:Undefined
+ [ e] NewFunction dst:beta~1, shared_function_data_index:1
+ [ 15] Mov dst:dup~2, src:Undefined
+ [ 18] NewFunction dst:dup~2, shared_function_data_index:2
+ [ 1f] Mov dst:gamma~3, src:Undefined
+ [ 22] NewFunction dst:gamma~3, shared_function_data_index:3
+ [ 29] NewFunction dst:dup~2, shared_function_data_index:4
+ [ 30] Mov dst:delta~4, src:Undefined
+ [ 33] NewFunction dst:delta~4, shared_function_data_index:5
+ [ 3a] Call value_feedback:0, call_feedback:0, dst:reg5, callee:alpha~0, this_value:Undefined
+ [ 43] Call value_feedback:1, call_feedback:1, dst:reg6, callee:beta~1, this_value:Undefined
+ [ 4c] Call value_feedback:2, call_feedback:2, dst:reg7, callee:gamma~3, this_value:Undefined
+ [ 55] Call value_feedback:3, call_feedback:3, dst:reg8, callee:delta~4, this_value:Undefined
+ [ 5e] Call value_feedback:4, call_feedback:4, dst:reg9, callee:dup~2, this_value:Undefined
+ [ 67] NewArray dst:reg10, elements:[reg5, reg6, reg7, reg8, reg9]
+ [ 6f] Return value:reg10
alpha$6c0b33e4 nested-function-decl-source-order.js:6:24
diff --git a/Tests/LibJS/Bytecode/expected/nested-member-base-identifier.txt b/Tests/LibJS/Bytecode/expected/nested-member-base-identifier.txt
index 2559e45b96e..4fb86411332 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 @@
-$0b38c43d nested-member-base-identifier.js:9:1
+$ec423ea3 nested-member-base-identifier.js:9:1
Registers: 9
Blocks: 1
Constants:
@@ -9,15 +9,15 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `assign_nested`
- [ d] NewObject dst:reg7
- [ 11] InitObjectLiteralProperty object:reg7, `shader`, src:Int32(1), shape_cache_index:0, property_slot:0
- [ 1b] CacheObjectShape object:reg7
- [ 1f] NewArray dst:reg8, elements:[reg7]
- [ 23] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg8, Int32(1)]
- [ 2e] End value:reg5
+ [ c] NewObject dst:reg7
+ [ 10] InitObjectLiteralProperty object:reg7, `shader`, src:Int32(1), shape_cache_index:0, property_slot:0
+ [ 19] CacheObjectShape object:reg7
+ [ 1d] NewArray dst:reg8, elements:[reg7]
+ [ 21] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg8, Int32(1)]
+ [ 2c] End value:reg5
-assign_nested$5173aed7 nested-member-base-identifier.js:6:8
+assign_nested$01476fc6 nested-member-base-identifier.js:6:8
Registers: 6
Blocks: 1
Constants:
@@ -29,4 +29,4 @@ block0:
[ 1] SubRhsInt32 arith_feedback:0, dst:reg5, lhs:arg1, rhs:1
[ a] GetByValue value_feedback:0, keyed_feedback:0, dst:reg5, base:arg0, property:reg5
[ 14] PutById base:reg5, `shader`, src:Int32(0), kind:Normal
- [ 1d] End value:Undefined
+ [ 1c] 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 bd0d2488e31..131bc89cdf8 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 @@
-$f5ffbb22 nested-try-finally-continue.js:14:1
+$67e670dd nested-try-finally-continue.js:14:1
Registers: 7
Blocks: 1
Constants:
@@ -8,11 +8,11 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `nestedTryFinallyContinue`
- [ d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 16] End value:reg5
+ [ c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 15] End value:reg5
-nestedTryFinallyContinue$5a791735 nested-try-finally-continue.js:2:10
+nestedTryFinallyContinue$98662269 nested-try-finally-continue.js:2:10
Registers: 11
Blocks: 18
Locals: i~0
@@ -46,55 +46,55 @@ block4:
block5:
[ 30] GetGlobal value_feedback:1, dst:reg9, `console`
- [ 39] GetById value_feedback:2, dst:reg10, base:reg9, `log`
- [ 43] Call value_feedback:3, call_feedback:0, dst:reg9, callee:reg10, this_value:reg9, arguments:[String("inner"), i~0]
- [ 4e] JumpStrictlyEqualsRhsInt32 arith_feedback:1, lhs:reg7, rhs:0, true_target:block9, false_target:block6
+ [ 38] GetById value_feedback:2, dst:reg10, base:reg9, `log`
+ [ 41] Call value_feedback:3, call_feedback:0, dst:reg9, callee:reg10, this_value:reg9, arguments:[String("inner"), i~0]
+ [ 4c] JumpStrictlyEqualsRhsInt32 arith_feedback:1, lhs:reg7, rhs:0, true_target:block9, false_target:block6
block6:
- [ 5e] JumpStrictlyEqualsRhsInt32 arith_feedback:2, lhs:reg7, rhs:2, true_target:block7, false_target:block8
+ [ 5c] JumpStrictlyEqualsRhsInt32 arith_feedback:2, lhs:reg7, rhs:2, true_target:block7, false_target:block8
block7:
- [ 6e] Mov dst:reg5, src:Int32(2)
- [ 71] Jump target:block11
+ [ 6c] Mov dst:reg5, src:Int32(2)
+ [ 6f] Jump target:block11
block8:
- [ 76] Throw src:reg8
+ [ 74] Throw src:reg8
block9:
- [ 78] Mov dst:reg5, src:Int32(0)
- [ 7b] Jump target:block11
+ [ 76] Mov dst:reg5, src:Int32(0)
+ [ 79] Jump target:block11
block10:
- [ 80] Catch value_feedback:4, dst:reg6
- [ 84] Mov dst:reg5, src:Int32(1)
+ [ 7e] Catch value_feedback:4, dst:reg6
+ [ 82] Mov dst:reg5, src:Int32(1)
block11:
- [ 87] GetGlobal value_feedback:5, dst:reg7, `console`
- [ 90] GetById value_feedback:6, dst:reg8, base:reg7, `log`
- [ 9a] Call value_feedback:7, call_feedback:1, dst:reg7, callee:reg8, this_value:reg7, arguments:[String("outer"), i~0]
- [ a5] JumpStrictlyEqualsRhsInt32 arith_feedback:3, lhs:reg5, rhs:0, true_target:block15, false_target:block12
+ [ 85] GetGlobal value_feedback:5, dst:reg7, `console`
+ [ 8d] GetById value_feedback:6, dst:reg8, base:reg7, `log`
+ [ 96] Call value_feedback:7, call_feedback:1, dst:reg7, callee:reg8, this_value:reg7, arguments:[String("outer"), i~0]
+ [ a1] JumpStrictlyEqualsRhsInt32 arith_feedback:3, lhs:reg5, rhs:0, true_target:block15, false_target:block12
block12:
- [ b5] JumpStrictlyEqualsRhsInt32 arith_feedback:4, lhs:reg5, rhs:2, true_target:block13, false_target:block14
+ [ b1] JumpStrictlyEqualsRhsInt32 arith_feedback:4, lhs:reg5, rhs:2, true_target:block13, false_target:block14
block13:
- [ c5] Jump target:block15
+ [ c1] Jump target:block15
block14:
- [ ca] Throw src:reg6
+ [ c6] Throw src:reg6
block15:
- [ cc] Increment arith_feedback:5, dst:i~0
+ [ c8] Increment arith_feedback:5, dst:i~0
block16:
- [ d0] JumpLessThanLoopRhsInt32 arith_feedback:6, lhs:i~0, rhs:3, true_target:block1, false_target:block17
+ [ cc] JumpLessThanLoopRhsInt32 arith_feedback:6, lhs:i~0, rhs:3, true_target:block1, false_target:block17
block17:
- [ e0] End value:Undefined
+ [ dc] End value:Undefined
Exception handlers:
[ 9 .. 29] => handler block4
- [ 29 .. 80] => handler block10
+ [ 29 .. 7e] => 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 87c3cc40f1d..db1d153bdc9 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 @@
-$7ff812ff numeric-class-field-name.js:1:1
+$cd606100 numeric-class-field-name.js:1:1
Registers: 8
Blocks: 1
Constants:
@@ -11,14 +11,14 @@ block0:
[ 3] Mov dst:reg5, src:Undefined
[ 6] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
[ 12] CreateVariable `C`, is_immutable:true, is_global:false, is_strict:true
- [ 1a] SetLexicalEnvironment environment:reg4
- [ 1c] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false, element_keys:[element_keys:Int32(42)]
- [ 2c] DynamicInitializeLexicalBinding `C`, src:reg6
- [ 33] GetGlobal value_feedback:0, dst:reg6, `C`
- [ 3c] CallConstruct value_feedback:1, call_feedback:0, dst:reg6, callee:reg6
- [ 44] GetByValue value_feedback:2, keyed_feedback:0, dst:reg6, base:reg6, property:Int32(42)
- [ 4e] GetById value_feedback:3, dst:reg5, base:reg6, `name`
- [ 58] End value:reg5
+ [ 19] SetLexicalEnvironment environment:reg4
+ [ 1b] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false, element_keys:[element_keys:Int32(42)]
+ [ 2a] DynamicInitializeLexicalBinding `C`, src:reg6
+ [ 30] GetGlobal value_feedback:0, dst:reg6, `C`
+ [ 38] CallConstruct value_feedback:1, call_feedback:0, dst:reg6, callee:reg6
+ [ 40] GetByValue value_feedback:2, keyed_feedback:0, dst:reg6, base:reg6, property:Int32(42)
+ [ 4a] GetById value_feedback:3, dst:reg5, base:reg6, `name`
+ [ 53] End value:reg5
C$16234245
@@ -32,7 +32,7 @@ block0:
[ 1] End value:Undefined
-field$1f5781bd numeric-class-field-name.js:2:10
+field$6f83c0ce numeric-class-field-name.js:2:10
Registers: 7
Blocks: 1
@@ -42,4 +42,4 @@ block0:
[ 3] CreateLexicalEnvironment dst:reg6, parent:reg4, capacity:0, is_catch_environment:false
[ f] SetLexicalEnvironment environment:reg4
[ 11] NewClass dst:reg5, class_environment:reg6, class_blueprint_index:0 (42), element_keys_are_in_array:false
- [ 20] Return value:reg5
+ [ 1f] 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 d6a53aa2e8a..65e386aff87 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 @@
-$7ab1beb9 numeric-getter-no-lhs-name.js:1:5
+$e9d48364 numeric-getter-no-lhs-name.js:1:5
Registers: 8
Blocks: 1
Constants:
@@ -10,12 +10,12 @@ block0:
[ 1] Mov dst:reg5, src:Undefined
[ 4] NewObject dst:reg6
[ 8] NewFunction dst:reg7, shared_function_data_index:0 (get 0), home_object:reg6
- [ 10] PutByValue keyed_feedback:0, base:reg6, property:Int32(0), src:reg7, kind:Getter
- [ 19] SetGlobal `obj`, src:reg6
- [ 20] GetGlobal value_feedback:0, dst:reg6, `obj`
- [ 29] GetByValue value_feedback:1, keyed_feedback:1, dst:reg6, base:reg6, property:Int32(0)
- [ 33] Mov dst:reg5, src:reg6
- [ 36] End value:reg5
+ [ f] PutByValue keyed_feedback:0, base:reg6, property:Int32(0), src:reg7, kind:Getter
+ [ 18] SetGlobal `obj`, src:reg6
+ [ 1e] GetGlobal value_feedback:0, dst:reg6, `obj`
+ [ 26] GetByValue value_feedback:1, keyed_feedback:1, dst:reg6, base:reg6, property:Int32(0)
+ [ 30] Mov dst:reg5, src:reg6
+ [ 33] End value:reg5
get 0$1dbd230a numeric-getter-no-lhs-name.js:3:9
diff --git a/Tests/LibJS/Bytecode/expected/numeric-index-object-literal.txt b/Tests/LibJS/Bytecode/expected/numeric-index-object-literal.txt
index 06a71fde589..2b77d9f2a09 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 @@
-$b5474a48 numeric-index-object-literal.js:4:1
+$651b0b37 numeric-index-object-literal.js:4:1
Registers: 7
Blocks: 1
Constants:
@@ -8,8 +8,8 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `test`
- [ d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 16] End value:reg5
+ [ c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 15] End value:reg5
test$060f46fe numeric-index-object-literal.js:2:5
diff --git a/Tests/LibJS/Bytecode/expected/numeric-property-key.txt b/Tests/LibJS/Bytecode/expected/numeric-property-key.txt
index d17a6186c5f..22c0d418cac 100644
--- a/Tests/LibJS/Bytecode/expected/numeric-property-key.txt
+++ b/Tests/LibJS/Bytecode/expected/numeric-property-key.txt
@@ -1,4 +1,4 @@
-$cb2544ee numeric-property-key.js:4:5
+$7af905dd numeric-property-key.js:4:5
Registers: 7
Blocks: 1
Constants:
@@ -12,4 +12,4 @@ block0:
[ 4] NewObject dst:reg6
[ 8] PutByValue keyed_feedback:0, base:reg6, property:Int32(20), src:Int32(3), kind:Own
[ 11] SetGlobal `obj`, src:reg6
- [ 18] End value:reg5
+ [ 17] 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 644d7a0e695..c4f7683dece 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 @@
-$d21ed05d object-destructuring-rebinds-source-variable.js:5:1
+$f11555f7 object-destructuring-rebinds-source-variable.js:5:1
Registers: 10
Blocks: 1
Constants:
@@ -11,19 +11,19 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `console`
- [ d] GetById value_feedback:1, dst:reg7, base:reg6, `log`
- [ 17] GetGlobal value_feedback:2, dst:reg8, `run`
- [ 20] NewObject dst:reg9
- [ 24] InitObjectLiteralProperty object:reg9, `first`, src:Int32(1), shape_cache_index:0, property_slot:0
- [ 2e] InitObjectLiteralProperty object:reg9, `second`, src:Int32(2), shape_cache_index:0, property_slot:1
- [ 38] InitObjectLiteralProperty object:reg9, `third`, src:Int32(3), shape_cache_index:0, property_slot:2
- [ 42] CacheObjectShape object:reg9
- [ 46] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined, arguments:[reg9]
- [ 50] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 5a] End value:reg5
+ [ c] GetById value_feedback:1, dst:reg7, base:reg6, `log`
+ [ 15] GetGlobal value_feedback:2, dst:reg8, `run`
+ [ 1d] NewObject dst:reg9
+ [ 21] InitObjectLiteralProperty object:reg9, `first`, src:Int32(1), shape_cache_index:0, property_slot:0
+ [ 2a] InitObjectLiteralProperty object:reg9, `second`, src:Int32(2), shape_cache_index:0, property_slot:1
+ [ 33] InitObjectLiteralProperty object:reg9, `third`, src:Int32(3), shape_cache_index:0, property_slot:2
+ [ 3c] CacheObjectShape object:reg9
+ [ 40] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined, arguments:[reg9]
+ [ 4a] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 54] End value:reg5
-run$aca4c3b1 object-destructuring-rebinds-source-variable.js:2:5
+run$214f6a7c object-destructuring-rebinds-source-variable.js:2:5
Registers: 7
Blocks: 1
Locals: first~0, third~1
@@ -37,10 +37,10 @@ block0:
[ 7] ThrowIfNullish src:arg0
[ 9] Mov dst:reg5, src:arg0
[ c] GetById value_feedback:0, dst:first~0, base:reg5, `first`
- [ 16] GetById value_feedback:1, dst:arg0, base:reg5, `second`
- [ 20] GetById value_feedback:2, dst:third~1, base:reg5, `third`
- [ 2a] NewArray dst:reg5, elements:[first~0, arg0, third~1]
- [ 30] Return value:reg5
+ [ 15] GetById value_feedback:1, dst:arg0, base:reg5, `second`
+ [ 1e] GetById value_feedback:2, dst:third~1, base:reg5, `third`
+ [ 27] NewArray dst:reg5, elements:[first~0, arg0, third~1]
+ [ 2d] 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 10656d070d2..0ac8693ed5c 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 @@
-$ef5c6584 object-rest-computed-key.js:1:5
+$13dacd3e object-rest-computed-key.js:1:5
Registers: 10
Blocks: 1
Constants:
@@ -11,15 +11,15 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] SetGlobal `a`, src:String("foo")
- [ b] NewObject dst:reg6
- [ f] InitObjectLiteralProperty object:reg6, `foo`, src:Int32(1), shape_cache_index:0, property_slot:0
- [ 19] InitObjectLiteralProperty object:reg6, `bar`, src:Int32(2), shape_cache_index:0, property_slot:1
- [ 23] CacheObjectShape object:reg6
- [ 27] ThrowIfNullish src:reg6
- [ 29] GetGlobal value_feedback:0, dst:reg7, `a`
- [ 32] ToPrimitiveWithStringHint dst:reg8, value:reg7
- [ 35] GetByValue value_feedback:1, keyed_feedback:0, dst:reg9, base:reg6, property:reg8
- [ 3f] SetGlobal `b`, src:reg9
- [ 46] CopyObjectExcludingProperties dst:reg9, from_object:reg6, excluded_names_are_in_array:false, excluded_names:[reg8]
- [ 4c] SetGlobal `rest`, src:reg9
- [ 53] End value:reg5
+ [ a] NewObject dst:reg6
+ [ e] InitObjectLiteralProperty object:reg6, `foo`, src:Int32(1), shape_cache_index:0, property_slot:0
+ [ 17] InitObjectLiteralProperty object:reg6, `bar`, src:Int32(2), shape_cache_index:0, property_slot:1
+ [ 20] CacheObjectShape object:reg6
+ [ 24] ThrowIfNullish src:reg6
+ [ 26] GetGlobal value_feedback:0, dst:reg7, `a`
+ [ 2e] ToPrimitiveWithStringHint dst:reg8, value:reg7
+ [ 31] GetByValue value_feedback:1, keyed_feedback:0, dst:reg9, base:reg6, property:reg8
+ [ 3b] SetGlobal `b`, src:reg9
+ [ 41] CopyObjectExcludingProperties dst:reg9, from_object:reg6, excluded_names_are_in_array:false, excluded_names:[reg8]
+ [ 47] SetGlobal `rest`, src:reg9
+ [ 4d] 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 a0aa7220cd6..0dbbce51098 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 @@
-$574fba92 optional-chain-base-identifier.js:1:5
+$70be5e0c optional-chain-base-identifier.js:1:5
Registers: 8
Blocks: 4
Constants:
@@ -11,21 +11,21 @@ block0:
[ 4] NewObject dst:reg6
[ 8] NewObject dst:reg7
[ c] InitObjectLiteralProperty object:reg7, `b`, src:Int32(44), shape_cache_index:1, property_slot:0
- [ 16] CacheObjectShape object:reg7
- [ 1a] InitObjectLiteralProperty object:reg6, `a`, src:reg7, shape_cache_index:0, property_slot:0
- [ 24] CacheObjectShape object:reg6
- [ 28] SetGlobal `obj`, src:reg6
- [ 2f] GetGlobal value_feedback:0, dst:reg6, `obj`
- [ 38] GetById value_feedback:1, dst:reg6, base:reg6, `a`
- [ 42] JumpNullish condition:reg6, true_target:block2, false_target:block1
+ [ 15] CacheObjectShape object:reg7
+ [ 19] InitObjectLiteralProperty object:reg6, `a`, src:reg7, shape_cache_index:0, property_slot:0
+ [ 22] CacheObjectShape object:reg6
+ [ 26] SetGlobal `obj`, src:reg6
+ [ 2c] GetGlobal value_feedback:0, dst:reg6, `obj`
+ [ 34] GetById value_feedback:1, dst:reg6, base:reg6, `a`
+ [ 3d] JumpNullish condition:reg6, true_target:block2, false_target:block1
block1:
- [ 4c] GetById value_feedback:2, dst:reg6, base:reg6, `b`
- [ 56] Jump target:block3
+ [ 47] GetById value_feedback:2, dst:reg6, base:reg6, `b`
+ [ 50] Jump target:block3
block2:
- [ 5b] Mov dst:reg6, src:Undefined
+ [ 55] Mov dst:reg6, src:Undefined
block3:
- [ 5e] Mov dst:reg5, src:reg6
- [ 61] End value:reg5
+ [ 58] Mov dst:reg5, src:reg6
+ [ 5b] End value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/optional-chain.txt b/Tests/LibJS/Bytecode/expected/optional-chain.txt
index 38a8538ff04..4b3f1b70b37 100644
--- a/Tests/LibJS/Bytecode/expected/optional-chain.txt
+++ b/Tests/LibJS/Bytecode/expected/optional-chain.txt
@@ -1,4 +1,4 @@
-$b2062865 optional-chain.js:25:1
+$d3c09f0f optional-chain.js:25:1
Registers: 7
Blocks: 1
Constants:
@@ -9,21 +9,21 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `member`
- [ d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Null]
- [ 17] GetGlobal value_feedback:2, dst:reg6, `nested_member`
- [ 20] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Null]
- [ 2a] GetGlobal value_feedback:4, dst:reg6, `call_no_args`
- [ 33] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Null]
- [ 3d] GetGlobal value_feedback:6, dst:reg6, `call_with_args`
- [ 46] Call value_feedback:7, call_feedback:3, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Null]
- [ 50] GetGlobal value_feedback:8, dst:reg6, `computed`
- [ 59] Call value_feedback:9, call_feedback:4, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Null]
- [ 63] GetGlobal value_feedback:10, dst:reg6, `member_then_call`
- [ 6c] Call value_feedback:11, call_feedback:5, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Null]
- [ 76] End value:reg5
-
-
-member$88bf065d optional-chain.js:7:5
+ [ c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Null]
+ [ 16] GetGlobal value_feedback:2, dst:reg6, `nested_member`
+ [ 1e] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Null]
+ [ 28] GetGlobal value_feedback:4, dst:reg6, `call_no_args`
+ [ 30] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Null]
+ [ 3a] GetGlobal value_feedback:6, dst:reg6, `call_with_args`
+ [ 42] Call value_feedback:7, call_feedback:3, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Null]
+ [ 4c] GetGlobal value_feedback:8, dst:reg6, `computed`
+ [ 54] Call value_feedback:9, call_feedback:4, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Null]
+ [ 5e] GetGlobal value_feedback:10, dst:reg6, `member_then_call`
+ [ 66] Call value_feedback:11, call_feedback:5, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Null]
+ [ 70] End value:reg5
+
+
+member$d8eb456e optional-chain.js:7:5
Registers: 7
Blocks: 4
Constants:
@@ -36,16 +36,16 @@ block0:
block1:
[ e] GetById value_feedback:0, dst:reg6, base:reg5, `x`
- [ 18] Jump target:block3
+ [ 17] Jump target:block3
block2:
- [ 1d] Mov dst:reg6, src:Undefined
+ [ 1c] Mov dst:reg6, src:Undefined
block3:
- [ 20] Return value:reg6
+ [ 1f] Return value:reg6
-nested_member$f8d422e6 optional-chain.js:10:5
+nested_member$587ba4c4 optional-chain.js:10:5
Registers: 7
Blocks: 5
Constants:
@@ -58,20 +58,20 @@ block0:
block1:
[ e] GetById value_feedback:0, dst:reg6, base:reg5, `x`
- [ 18] JumpNullish condition:reg6, true_target:block3, false_target:block2
+ [ 17] JumpNullish condition:reg6, true_target:block3, false_target:block2
block2:
- [ 22] GetById value_feedback:1, dst:reg6, base:reg6, `y`
- [ 2c] Jump target:block4
+ [ 21] GetById value_feedback:1, dst:reg6, base:reg6, `y`
+ [ 2a] Jump target:block4
block3:
- [ 31] Mov dst:reg6, src:Undefined
+ [ 2f] Mov dst:reg6, src:Undefined
block4:
- [ 34] Return value:reg6
+ [ 32] Return value:reg6
-call_no_args$aaad4dca optional-chain.js:13:5
+call_no_args$fad98cdb optional-chain.js:13:5
Registers: 7
Blocks: 4
Constants:
@@ -84,17 +84,17 @@ block0:
block1:
[ e] GetById value_feedback:0, dst:reg6, base:reg5, `foo`
- [ 18] Call value_feedback:1, call_feedback:0, dst:reg6, callee:reg6, this_value:reg5
- [ 21] Jump target:block3
+ [ 17] Call value_feedback:1, call_feedback:0, dst:reg6, callee:reg6, this_value:reg5
+ [ 20] Jump target:block3
block2:
- [ 26] Mov dst:reg6, src:Undefined
+ [ 25] Mov dst:reg6, src:Undefined
block3:
- [ 29] Return value:reg6
+ [ 28] Return value:reg6
-call_with_args$f523e869 optional-chain.js:16:5
+call_with_args$4550277a optional-chain.js:16:5
Registers: 7
Blocks: 4
Constants:
@@ -110,17 +110,17 @@ block0:
block1:
[ e] GetById value_feedback:0, dst:reg6, base:reg5, `foo`
- [ 18] Call value_feedback:1, call_feedback:0, dst:reg6, callee:reg6, this_value:reg5, arguments:[Int32(1), Int32(2), Int32(3)]
- [ 24] Jump target:block3
+ [ 17] Call value_feedback:1, call_feedback:0, dst:reg6, callee:reg6, this_value:reg5, arguments:[Int32(1), Int32(2), Int32(3)]
+ [ 23] Jump target:block3
block2:
- [ 29] Mov dst:reg6, src:Undefined
+ [ 28] Mov dst:reg6, src:Undefined
block3:
- [ 2c] Return value:reg6
+ [ 2b] Return value:reg6
-computed$06eba668 optional-chain.js:19:5
+computed$f770639b optional-chain.js:19:5
Registers: 7
Blocks: 4
Constants:
@@ -133,16 +133,16 @@ block0:
block1:
[ e] GetById value_feedback:0, dst:reg6, base:reg5, `hello`
- [ 18] Jump target:block3
+ [ 17] Jump target:block3
block2:
- [ 1d] Mov dst:reg6, src:Undefined
+ [ 1c] Mov dst:reg6, src:Undefined
block3:
- [ 20] Return value:reg6
+ [ 1f] Return value:reg6
-member_then_call$95ed4cb6 optional-chain.js:22:5
+member_then_call$b4e3d250 optional-chain.js:22:5
Registers: 8
Blocks: 4
Constants:
@@ -155,12 +155,12 @@ block0:
block1:
[ e] GetById value_feedback:0, dst:reg6, base:reg5, `x`
- [ 18] GetById value_feedback:1, dst:reg7, base:reg6, `foo`
- [ 22] Call value_feedback:2, call_feedback:0, dst:reg6, callee:reg7, this_value:reg6
- [ 2b] Jump target:block3
+ [ 17] GetById value_feedback:1, dst:reg7, base:reg6, `foo`
+ [ 20] Call value_feedback:2, call_feedback:0, dst:reg6, callee:reg7, this_value:reg6
+ [ 29] Jump target:block3
block2:
- [ 30] Mov dst:reg6, src:Undefined
+ [ 2e] Mov dst:reg6, src:Undefined
block3:
- [ 33] Return value:reg6
+ [ 31] Return value:reg6
diff --git a/Tests/LibJS/Bytecode/expected/parameter-createvariable-order.txt b/Tests/LibJS/Bytecode/expected/parameter-createvariable-order.txt
index 0f4732a3d16..ff392e67366 100644
--- a/Tests/LibJS/Bytecode/expected/parameter-createvariable-order.txt
+++ b/Tests/LibJS/Bytecode/expected/parameter-createvariable-order.txt
@@ -1,4 +1,4 @@
-$5311bb88 parameter-createvariable-order.js:7:1
+$a33dfa99 parameter-createvariable-order.js:7:1
Registers: 7
Blocks: 1
Constants:
@@ -11,11 +11,11 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `f`
- [ d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(1), Int32(2), Int32(3)]
- [ 19] End value:reg5
+ [ c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(1), Int32(2), Int32(3)]
+ [ 18] End value:reg5
-f$ac86fb97 parameter-createvariable-order.js:2:9
+f$7b514220 parameter-createvariable-order.js:2:9
Registers: 6
Blocks: 1
Locals: inner~0
@@ -25,26 +25,26 @@ f$ac86fb97 parameter-createvariable-order.js:2:9
block0:
[ 0] Enter
[ 1] CreateVariable `a`, is_immutable:false, is_global:false, is_strict:false
- [ 9] InitializeLexicalBinding `a`, src:arg0
- [ 11] CreateVariable `b`, is_immutable:false, is_global:false, is_strict:false
- [ 19] InitializeLexicalBinding `b`, src:arg1
- [ 21] CreateVariable `c`, is_immutable:false, is_global:false, is_strict:false
- [ 29] InitializeLexicalBinding `c`, src:arg2
- [ 31] Mov dst:inner~0, src:Undefined
- [ 34] NewFunction dst:inner~0, shared_function_data_index:0 (inner)
- [ 3c] Call value_feedback:0, call_feedback:0, dst:reg5, callee:inner~0, this_value:Undefined
- [ 45] Return value:reg5
+ [ 8] InitializeLexicalBinding `a`, src:arg0
+ [ f] CreateVariable `b`, is_immutable:false, is_global:false, is_strict:false
+ [ 16] InitializeLexicalBinding `b`, src:arg1
+ [ 1d] CreateVariable `c`, is_immutable:false, is_global:false, is_strict:false
+ [ 24] InitializeLexicalBinding `c`, src:arg2
+ [ 2b] Mov dst:inner~0, src:Undefined
+ [ 2e] NewFunction dst:inner~0, shared_function_data_index:0 (inner)
+ [ 35] Call value_feedback:0, call_feedback:0, dst:reg5, callee:inner~0, this_value:Undefined
+ [ 3e] Return value:reg5
-inner$0826eddc parameter-createvariable-order.js:3:9
+inner$b7faaecb parameter-createvariable-order.js:3:9
Registers: 7
Blocks: 1
block0:
[ 0] Enter
[ 1] GetBinding value_feedback:0, dst:reg5, `a`
- [ b] GetBinding value_feedback:1, dst:reg6, `b`
- [ 15] Add arith_feedback:0, dst:reg5, lhs:reg5, rhs:reg6
- [ 1b] GetBinding value_feedback:2, dst:reg6, `c`
- [ 25] Add arith_feedback:1, dst:reg5, lhs:reg5, rhs:reg6
- [ 2b] Return value:reg5
+ [ a] GetBinding value_feedback:1, dst:reg6, `b`
+ [ 13] Add arith_feedback:0, dst:reg5, lhs:reg5, rhs:reg6
+ [ 19] GetBinding value_feedback:2, dst:reg6, `c`
+ [ 22] Add arith_feedback:1, dst:reg5, lhs:reg5, rhs:reg6
+ [ 28] Return value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/parameter-environment-capacity.txt b/Tests/LibJS/Bytecode/expected/parameter-environment-capacity.txt
index 9bad71dac0b..f8f84d59a52 100644
--- a/Tests/LibJS/Bytecode/expected/parameter-environment-capacity.txt
+++ b/Tests/LibJS/Bytecode/expected/parameter-environment-capacity.txt
@@ -1,4 +1,4 @@
-$0760d445 parameter-environment-capacity.js:10:1
+$e86a4eab parameter-environment-capacity.js:10:1
Registers: 8
Blocks: 1
Constants:
@@ -11,19 +11,19 @@ block0:
[ 3] Mov dst:reg5, src:Undefined
[ 6] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
[ 12] CreateVariable `Strict`, is_immutable:true, is_global:false, is_strict:true
- [ 1a] SetLexicalEnvironment environment:reg4
- [ 1c] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false, element_keys:[element_keys:String("method")]
- [ 2c] DynamicInitializeLexicalBinding `Strict`, src:reg6
- [ 33] GetGlobal value_feedback:0, dst:reg6, `sloppy`
- [ 3c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 45] GetGlobal value_feedback:2, dst:reg6, `Strict`
- [ 4e] CallConstruct value_feedback:3, call_feedback:1, dst:reg6, callee:reg6
- [ 56] GetById value_feedback:4, dst:reg7, base:reg6, `method`
- [ 60] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg7, this_value:reg6
- [ 69] End value:reg5
+ [ 19] SetLexicalEnvironment environment:reg4
+ [ 1b] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false, element_keys:[element_keys:String("method")]
+ [ 2a] DynamicInitializeLexicalBinding `Strict`, src:reg6
+ [ 30] GetGlobal value_feedback:0, dst:reg6, `sloppy`
+ [ 38] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 41] GetGlobal value_feedback:2, dst:reg6, `Strict`
+ [ 49] CallConstruct value_feedback:3, call_feedback:1, dst:reg6, callee:reg6
+ [ 51] GetById value_feedback:4, dst:reg7, base:reg6, `method`
+ [ 5a] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg7, this_value:reg6
+ [ 63] End value:reg5
-sloppy$9e74f3be parameter-environment-capacity.js:6:17
+sloppy$0d97b869 parameter-environment-capacity.js:6:17
Registers: 6
Blocks: 3
Constants:
@@ -32,16 +32,16 @@ sloppy$9e74f3be parameter-environment-capacity.js:6:17
block0:
[ 0] Enter
[ 1] CreateVariable `a`, is_immutable:false, is_global:false, is_strict:false
- [ 9] CreateArguments is_immutable:false, creates_parameter_bindings:false
- [ e] JumpUndefined condition:arg0, true_target:block1, false_target:block2
+ [ 8] CreateArguments is_immutable:false, creates_parameter_bindings:false
+ [ d] JumpUndefined condition:arg0, true_target:block1, false_target:block2
block1:
- [ 18] Mov dst:arg0, src:Int32(1)
+ [ 17] Mov dst:arg0, src:Int32(1)
block2:
- [ 1b] InitializeLexicalBinding `a`, src:arg0
- [ 23] NewFunction dst:reg5, shared_function_data_index:0
- [ 2b] Return value:reg5
+ [ 1a] InitializeLexicalBinding `a`, src:arg0
+ [ 21] NewFunction dst:reg5, shared_function_data_index:0
+ [ 28] Return value:reg5
Strict$3395ae05
@@ -55,7 +55,7 @@ block0:
[ 1] End value:Undefined
-method$d3a58804 parameter-environment-capacity.js:11:12
+method$5d5353bc parameter-environment-capacity.js:11:12
Registers: 7
Blocks: 3
Constants:
@@ -65,21 +65,21 @@ method$d3a58804 parameter-environment-capacity.js:11:12
block0:
[ 0] Enter
[ 1] CreateVariable `mode`, is_immutable:false, is_global:false, is_strict:false
- [ 9] CreateVariable `index`, is_immutable:false, is_global:false, is_strict:false
- [ 11] GetLexicalEnvironment dst:reg4
- [ 13] JumpUndefined condition:arg0, true_target:block1, false_target:block2
+ [ 8] CreateVariable `index`, is_immutable:false, is_global:false, is_strict:false
+ [ f] GetLexicalEnvironment dst:reg4
+ [ 11] JumpUndefined condition:arg0, true_target:block1, false_target:block2
block1:
- [ 1d] Mov dst:arg0, src:String("x")
+ [ 1b] Mov dst:arg0, src:String("x")
block2:
- [ 20] InitializeLexicalBinding `mode`, src:arg0
- [ 28] InitializeLexicalBinding `index`, src:arg1
- [ 30] CreateVariableEnvironment capacity:1
- [ 35] GetLexicalEnvironment dst:reg5
- [ 37] CreateVariable `active`, is_immutable:true, is_global:false, is_strict:true
- [ 3f] GetBinding value_feedback:0, dst:reg6, `mode`
- [ 49] StrictlyEquals arith_feedback:0, dst:reg6, lhs:reg6, rhs:String("a")
- [ 4f] InitializeLexicalBinding `active`, src:reg6
- [ 57] NewFunction dst:reg6, shared_function_data_index:0
- [ 5f] Return value:reg6
+ [ 1e] InitializeLexicalBinding `mode`, src:arg0
+ [ 25] InitializeLexicalBinding `index`, src:arg1
+ [ 2c] CreateVariableEnvironment capacity:1
+ [ 31] GetLexicalEnvironment dst:reg5
+ [ 33] CreateVariable `active`, is_immutable:true, is_global:false, is_strict:true
+ [ 3a] GetBinding value_feedback:0, dst:reg6, `mode`
+ [ 43] StrictlyEquals arith_feedback:0, dst:reg6, lhs:reg6, rhs:String("a")
+ [ 49] InitializeLexicalBinding `active`, src:reg6
+ [ 50] NewFunction dst:reg6, shared_function_data_index:0
+ [ 57] 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 2b75fdb3c49..8d8b5827799 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 @@
-$66896f85 postfix-increment-private-member.js:1:1
+$7ff812ff postfix-increment-private-member.js:1:1
Registers: 8
Blocks: 1
Constants:
@@ -11,17 +11,17 @@ block0:
[ 3] Mov dst:reg5, src:Undefined
[ 6] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
[ 12] CreateVariable `C`, is_immutable:true, is_global:false, is_strict:true
- [ 1a] CreatePrivateEnvironment
- [ 1b] AddPrivateName `#c`
- [ 1f] SetLexicalEnvironment environment:reg4
- [ 21] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false, element_keys:[element_keys:String("nextId")]
- [ 32] LeavePrivateEnvironment
- [ 33] DynamicInitializeLexicalBinding `C`, src:reg6
- [ 3a] GetGlobal value_feedback:0, dst:reg6, `C`
- [ 43] CallConstruct value_feedback:1, call_feedback:0, dst:reg6, callee:reg6
- [ 4b] GetById value_feedback:2, dst:reg7, base:reg6, `nextId`
- [ 55] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6
- [ 5e] End value:reg5
+ [ 19] CreatePrivateEnvironment
+ [ 1a] AddPrivateName `#c`
+ [ 1d] SetLexicalEnvironment environment:reg4
+ [ 1f] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false, element_keys:[element_keys:String("nextId")]
+ [ 2f] LeavePrivateEnvironment
+ [ 30] DynamicInitializeLexicalBinding `C`, src:reg6
+ [ 36] GetGlobal value_feedback:0, dst:reg6, `C`
+ [ 3e] CallConstruct value_feedback:1, call_feedback:0, dst:reg6, callee:reg6
+ [ 46] GetById value_feedback:2, dst:reg7, base:reg6, `nextId`
+ [ 4f] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6
+ [ 58] End value:reg5
C$16234245
@@ -35,7 +35,7 @@ block0:
[ 1] End value:Undefined
-nextId$1384cf40 postfix-increment-private-member.js:4:9
+nextId$b3dd4d62 postfix-increment-private-member.js:4:9
Registers: 7
Blocks: 1
Constants:
@@ -44,7 +44,7 @@ nextId$1384cf40 postfix-increment-private-member.js:4:9
block0:
[ 0] Enter
[ 1] GetPrivateById dst:reg5, base:this, `#c`
- [ 7] PostfixIncrement arith_feedback:0, dst:reg6, src:reg5
- [ c] PutPrivateById base:this, `#c`, src:reg5
- [ 12] Add arith_feedback:1, dst:reg5, lhs:String("id-"), rhs:reg6
- [ 18] Return value:reg5
+ [ 6] PostfixIncrement arith_feedback:0, dst:reg6, src:reg5
+ [ b] PutPrivateById base:this, `#c`, src:reg5
+ [ 10] Add arith_feedback:1, dst:reg5, lhs:String("id-"), rhs:reg6
+ [ 16] 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 2c3c454b2bc..22f701a1909 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 @@
-$05738959 postfix-update-in-logical-and.js:4:1
+$b5474a48 postfix-update-in-logical-and.js:4:1
Registers: 7
Blocks: 1
Constants:
@@ -9,8 +9,8 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `postfixInLogicalAnd`
- [ d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(5)]
- [ 17] End value:reg5
+ [ c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(5)]
+ [ 16] End value:reg5
postfixInLogicalAnd$ee75b068 postfix-update-in-logical-and.js:2:5
diff --git a/Tests/LibJS/Bytecode/expected/private-identifier-access-patterns.txt b/Tests/LibJS/Bytecode/expected/private-identifier-access-patterns.txt
index a06c092c404..5e2576258ae 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 @@
-$af863ef9 private-identifier-access-patterns.js:1:1
+$f0373b3d private-identifier-access-patterns.js:1:1
Registers: 8
Blocks: 1
Constants:
@@ -11,10 +11,10 @@ block0:
[ 3] Mov dst:reg5, src:Undefined
[ 6] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
[ 12] CreateVariable `C`, is_immutable:true, is_global:false, is_strict:true
- [ 1a] CreatePrivateEnvironment
- [ 1b] AddPrivateName `#x`
- [ 1f] SetLexicalEnvironment environment:reg4
- [ 21] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false, element_keys:[element_keys:String("method")]
- [ 32] LeavePrivateEnvironment
- [ 33] DynamicInitializeLexicalBinding `C`, src:reg6
- [ 3a] End value:reg5
+ [ 19] CreatePrivateEnvironment
+ [ 1a] AddPrivateName `#x`
+ [ 1d] SetLexicalEnvironment environment:reg4
+ [ 1f] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false, element_keys:[element_keys:String("method")]
+ [ 2f] LeavePrivateEnvironment
+ [ 30] DynamicInitializeLexicalBinding `C`, src:reg6
+ [ 36] 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 cd27ce13d53..07e44b66235 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 @@
-$66896f85 private-logical-assignment-register-order.js:1:1
+$7ff812ff private-logical-assignment-register-order.js:1:1
Registers: 8
Blocks: 1
Constants:
@@ -11,17 +11,17 @@ block0:
[ 3] Mov dst:reg5, src:Undefined
[ 6] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
[ 12] CreateVariable `C`, is_immutable:true, is_global:false, is_strict:true
- [ 1a] CreatePrivateEnvironment
- [ 1b] AddPrivateName `#x`
- [ 1f] SetLexicalEnvironment environment:reg4
- [ 21] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false, element_keys:[element_keys:String("f")]
- [ 32] LeavePrivateEnvironment
- [ 33] DynamicInitializeLexicalBinding `C`, src:reg6
- [ 3a] GetGlobal value_feedback:0, dst:reg6, `C`
- [ 43] CallConstruct value_feedback:1, call_feedback:0, dst:reg6, callee:reg6
- [ 4b] GetById value_feedback:2, dst:reg7, base:reg6, `f`
- [ 55] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6
- [ 5e] End value:reg5
+ [ 19] CreatePrivateEnvironment
+ [ 1a] AddPrivateName `#x`
+ [ 1d] SetLexicalEnvironment environment:reg4
+ [ 1f] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false, element_keys:[element_keys:String("f")]
+ [ 2f] LeavePrivateEnvironment
+ [ 30] DynamicInitializeLexicalBinding `C`, src:reg6
+ [ 36] GetGlobal value_feedback:0, dst:reg6, `C`
+ [ 3e] CallConstruct value_feedback:1, call_feedback:0, dst:reg6, callee:reg6
+ [ 46] GetById value_feedback:2, dst:reg7, base:reg6, `f`
+ [ 4f] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6
+ [ 58] End value:reg5
C$16234245
@@ -35,7 +35,7 @@ block0:
[ 1] End value:Undefined
-f$9711b203 private-logical-assignment-register-order.js:3:16
+f$f6b933e1 private-logical-assignment-register-order.js:3:16
Registers: 7
Blocks: 3
Constants:
@@ -45,12 +45,12 @@ f$9711b203 private-logical-assignment-register-order.js:3:16
block0:
[ 0] Enter
[ 1] GetPrivateById dst:reg5, base:this, `#x`
- [ 7] Mov dst:reg6, src:reg5
- [ a] JumpFalse condition:reg6, target:block2
+ [ 6] Mov dst:reg6, src:reg5
+ [ 9] JumpFalse condition:reg6, target:block2
block1:
- [ 10] Mov dst:reg6, src:Int32(1)
- [ 13] PutPrivateById base:this, `#x`, src:reg6
+ [ f] Mov dst:reg6, src:Int32(1)
+ [ 12] PutPrivateById base:this, `#x`, src:reg6
block2:
- [ 19] End value:Undefined
+ [ 17] 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 65197b6ab93..6cd495cfdd4 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 @@
-$66896f85 private-method-call-description.js:1:1
+$7ff812ff private-method-call-description.js:1:1
Registers: 8
Blocks: 1
Constants:
@@ -11,17 +11,17 @@ block0:
[ 3] Mov dst:reg5, src:Undefined
[ 6] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
[ 12] CreateVariable `C`, is_immutable:true, is_global:false, is_strict:true
- [ 1a] CreatePrivateEnvironment
- [ 1b] AddPrivateName `#m`
- [ 1f] SetLexicalEnvironment environment:reg4
- [ 21] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false, element_keys:[element_keys:String("call")]
- [ 32] LeavePrivateEnvironment
- [ 33] DynamicInitializeLexicalBinding `C`, src:reg6
- [ 3a] GetGlobal value_feedback:0, dst:reg6, `C`
- [ 43] CallConstruct value_feedback:1, call_feedback:0, dst:reg6, callee:reg6
- [ 4b] GetById value_feedback:2, dst:reg7, base:reg6, `call`
- [ 55] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6
- [ 5e] End value:reg5
+ [ 19] CreatePrivateEnvironment
+ [ 1a] AddPrivateName `#m`
+ [ 1d] SetLexicalEnvironment environment:reg4
+ [ 1f] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false, element_keys:[element_keys:String("call")]
+ [ 2f] LeavePrivateEnvironment
+ [ 30] DynamicInitializeLexicalBinding `C`, src:reg6
+ [ 36] GetGlobal value_feedback:0, dst:reg6, `C`
+ [ 3e] CallConstruct value_feedback:1, call_feedback:0, dst:reg6, callee:reg6
+ [ 46] GetById value_feedback:2, dst:reg7, base:reg6, `call`
+ [ 4f] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6
+ [ 58] End value:reg5
C$16234245
@@ -35,15 +35,15 @@ block0:
[ 1] End value:Undefined
-call$dda5baa2 private-method-call-description.js:6:9
+call$8d797b91 private-method-call-description.js:6:9
Registers: 6
Blocks: 1
block0:
[ 0] Enter
[ 1] GetPrivateById dst:reg5, base:this, `#m`
- [ 7] Call value_feedback:0, call_feedback:0, dst:reg5, callee:reg5, this_value:this
- [ 10] Return value:reg5
+ [ 6] Call value_feedback:0, call_feedback:0, dst:reg5, callee:reg5, this_value:this
+ [ f] Return value:reg5
#m$72fd3d6a private-method-call-description.js:3:9
diff --git a/Tests/LibJS/Bytecode/expected/regex-literals.txt b/Tests/LibJS/Bytecode/expected/regex-literals.txt
index 19b0e4a99c1..7931bd50d27 100644
--- a/Tests/LibJS/Bytecode/expected/regex-literals.txt
+++ b/Tests/LibJS/Bytecode/expected/regex-literals.txt
@@ -1,4 +1,4 @@
-$1d4558ed regex-literals.js:2:5
+$3c3bde87 regex-literals.js:2:5
Registers: 7
Blocks: 1
Constants:
@@ -9,24 +9,24 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] NewRegExp dst:reg6, foo,
- [ c] DynamicInitializeLexicalBinding `a`, src:reg6
- [ 13] NewRegExp dst:reg6, bar, gi
- [ 1b] DynamicInitializeLexicalBinding `b`, src:reg6
- [ 22] NewRegExp dst:reg6, baz, i
- [ 2a] AddLhsInt32 arith_feedback:0, dst:reg6, lhs:1, rhs:reg6
- [ 33] DynamicInitializeLexicalBinding `c`, src:reg6
- [ 3a] GetGlobal value_feedback:0, dst:reg6, `matchDigits`
- [ 43] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[String("abc123")]
- [ 4d] End value:reg5
+ [ a] DynamicInitializeLexicalBinding `a`, src:reg6
+ [ 10] NewRegExp dst:reg6, bar, gi
+ [ 16] DynamicInitializeLexicalBinding `b`, src:reg6
+ [ 1c] NewRegExp dst:reg6, baz, i
+ [ 22] AddLhsInt32 arith_feedback:0, dst:reg6, lhs:1, rhs:reg6
+ [ 2b] DynamicInitializeLexicalBinding `c`, src:reg6
+ [ 31] GetGlobal value_feedback:0, dst:reg6, `matchDigits`
+ [ 39] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[String("abc123")]
+ [ 43] End value:reg5
-matchDigits$259beed8 regex-literals.js:8:5
+matchDigits$1620ac0b regex-literals.js:8:5
Registers: 7
Blocks: 1
block0:
[ 0] Enter
[ 1] NewRegExp dst:reg5, \d+, g
- [ 9] GetById value_feedback:0, dst:reg6, base:reg5, `test`
- [ 13] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:reg5, arguments:[arg0]
- [ 1d] Return value:reg5
+ [ 7] GetById value_feedback:0, dst:reg6, base:reg5, `test`
+ [ 10] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:reg5, arguments:[arg0]
+ [ 1a] Return value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/resolve-this-caching.txt b/Tests/LibJS/Bytecode/expected/resolve-this-caching.txt
index 03854e11962..4214ff9416a 100644
--- a/Tests/LibJS/Bytecode/expected/resolve-this-caching.txt
+++ b/Tests/LibJS/Bytecode/expected/resolve-this-caching.txt
@@ -1,4 +1,4 @@
-$b5474a48 resolve-this-caching.js:4:1
+$651b0b37 resolve-this-caching.js:4:1
Registers: 7
Blocks: 1
Constants:
@@ -8,11 +8,11 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `foo`
- [ d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 16] End value:reg5
+ [ c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 15] End value:reg5
-foo$d4132c10 resolve-this-caching.js:2:5
+foo$0548e587 resolve-this-caching.js:2:5
Registers: 6
Blocks: 1
Constants:
@@ -21,11 +21,11 @@ foo$d4132c10 resolve-this-caching.js:2:5
block0:
[ 0] Enter
[ 1] NewFunction dst:reg5, shared_function_data_index:0
- [ 9] Call value_feedback:0, call_feedback:0, dst:reg5, callee:reg5, this_value:Undefined
- [ 12] Return value:reg5
+ [ 8] Call value_feedback:0, call_feedback:0, dst:reg5, callee:reg5, this_value:Undefined
+ [ 11] Return value:reg5
-$bdabf504 resolve-this-caching.js:2:13
+$5e047326 resolve-this-caching.js:2:13
Registers: 7
Blocks: 1
@@ -33,6 +33,6 @@ block0:
[ 0] Enter
[ 1] ResolveThisBinding
[ 2] GetById value_feedback:0, dst:reg5, base:this, `x`
- [ c] GetById value_feedback:1, dst:reg6, base:this, `y`
- [ 16] Add arith_feedback:0, dst:reg5, lhs:reg5, rhs:reg6
- [ 1c] Return value:reg5
+ [ b] GetById value_feedback:1, dst:reg6, base:this, `y`
+ [ 14] Add arith_feedback:0, dst:reg5, lhs:reg5, rhs:reg6
+ [ 1a] 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 a120f39fd23..58728b37731 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 @@
-$4c515948 right-shift-by-zero.js:5:1
+$9c7d9859 right-shift-by-zero.js:5:1
Registers: 7
Blocks: 1
Constants:
@@ -9,8 +9,8 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `foo`
- [ d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Double(1.5)]
- [ 17] End value:reg5
+ [ c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Double(1.5)]
+ [ 16] End value:reg5
foo$93622fcc right-shift-by-zero.js:2:5
diff --git a/Tests/LibJS/Bytecode/expected/sequential-try-blocks.txt b/Tests/LibJS/Bytecode/expected/sequential-try-blocks.txt
index f68829e63ea..7053adb937c 100644
--- a/Tests/LibJS/Bytecode/expected/sequential-try-blocks.txt
+++ b/Tests/LibJS/Bytecode/expected/sequential-try-blocks.txt
@@ -1,4 +1,4 @@
-$11372850 sequential-try-blocks.js:17:1
+$426ce1c7 sequential-try-blocks.js:17:1
Registers: 9
Blocks: 1
Constants:
@@ -8,11 +8,11 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `console`
- [ d] GetById value_feedback:1, dst:reg7, base:reg6, `log`
- [ 17] GetGlobal value_feedback:2, dst:reg8, `sequentialTryCatch`
- [ 20] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined
- [ 29] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 33] End value:reg5
+ [ c] GetById value_feedback:1, dst:reg7, base:reg6, `log`
+ [ 15] GetGlobal value_feedback:2, dst:reg8, `sequentialTryCatch`
+ [ 1d] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined
+ [ 26] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 30] End value:reg5
sequentialTryCatch$c611d865 sequential-try-blocks.js:2:9
diff --git a/Tests/LibJS/Bytecode/expected/strict-global-assignment.txt b/Tests/LibJS/Bytecode/expected/strict-global-assignment.txt
index b885107649f..929b8d6628f 100644
--- a/Tests/LibJS/Bytecode/expected/strict-global-assignment.txt
+++ b/Tests/LibJS/Bytecode/expected/strict-global-assignment.txt
@@ -1,4 +1,4 @@
-$4792e9eb strict-global-assignment.js:1:1
+$7604b252 strict-global-assignment.js:1:1
Registers: 8
Blocks: 7
Constants:
@@ -12,30 +12,30 @@ block0:
[ 1] Mov dst:reg5, src:Undefined
[ 4] Mov dst:reg5, src:String("use strict")
[ 7] ResolveGlobalBinding dst:reg6, `counter`
- [ e] JumpIf condition:reg6, true_target:block1, false_target:block2
+ [ d] JumpIf condition:reg6, true_target:block1, false_target:block2
block1:
- [ 18] SetGlobal `counter`, src:Int32(0)
- [ 1f] Jump target:block3
+ [ 17] SetGlobal `counter`, src:Int32(0)
+ [ 1d] Jump target:block3
block2:
- [ 24] SetResolvedBinding environment:Null, `counter`, src:Int32(0)
- [ 2a] Jump target:block3
+ [ 22] SetResolvedBinding environment:Null, `counter`, src:Int32(0)
+ [ 27] Jump target:block3
block3:
- [ 2f] ResolveGlobalBinding dst:reg6, `counter`
- [ 36] GetGlobal value_feedback:0, dst:reg7, `counter`
- [ 3f] AddRhsInt32 arith_feedback:0, dst:reg7, lhs:reg7, rhs:1
- [ 48] JumpIf condition:reg6, true_target:block4, false_target:block5
+ [ 2c] ResolveGlobalBinding dst:reg6, `counter`
+ [ 32] GetGlobal value_feedback:0, dst:reg7, `counter`
+ [ 3a] AddRhsInt32 arith_feedback:0, dst:reg7, lhs:reg7, rhs:1
+ [ 43] JumpIf condition:reg6, true_target:block4, false_target:block5
block4:
- [ 52] SetGlobal `counter`, src:reg7
- [ 59] Jump target:block6
+ [ 4d] SetGlobal `counter`, src:reg7
+ [ 53] Jump target:block6
block5:
- [ 5e] SetResolvedBinding environment:Null, `counter`, src:reg7
- [ 64] Jump target:block6
+ [ 58] SetResolvedBinding environment:Null, `counter`, src:reg7
+ [ 5d] Jump target:block6
block6:
- [ 69] Mov dst:reg5, src:reg7
- [ 6c] End value:reg5
+ [ 62] Mov dst:reg5, src:reg7
+ [ 65] 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 94808f20eed..c82f2acfc17 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 @@
-$0e115d44 super-call-spread-register-order.js:1:1
+$a1b289a9 super-call-spread-register-order.js:1:1
Registers: 11
Blocks: 1
Constants:
@@ -10,14 +10,14 @@ block0:
[ 3] Mov dst:reg5, src:Undefined
[ 6] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
[ 12] CreateVariable `C`, is_immutable:true, is_global:false, is_strict:true
- [ 1a] GetGlobal value_feedback:0, dst:reg9, `Object`
- [ 23] GetClassProtoParent dst:reg10, super_class:reg9
- [ 26] SetLexicalEnvironment environment:reg4
- [ 28] NewClass dst:reg6, super_class:reg9, proto_parent:reg10, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false
- [ 37] DynamicInitializeLexicalBinding `C`, src:reg6
- [ 3e] GetGlobal value_feedback:1, dst:reg6, `C`
- [ 47] CallConstruct value_feedback:2, call_feedback:0, dst:reg5, callee:reg6
- [ 4f] End value:reg5
+ [ 19] GetGlobal value_feedback:0, dst:reg9, `Object`
+ [ 21] GetClassProtoParent dst:reg10, super_class:reg9
+ [ 24] SetLexicalEnvironment environment:reg4
+ [ 26] NewClass dst:reg6, super_class:reg9, proto_parent:reg10, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false
+ [ 34] DynamicInitializeLexicalBinding `C`, src:reg6
+ [ 3a] GetGlobal value_feedback:1, dst:reg6, `C`
+ [ 42] CallConstruct value_feedback:2, call_feedback:0, dst:reg5, callee:reg6
+ [ 4a] End value:reg5
C$9fd1694e super-call-spread-register-order.js:2:17
diff --git a/Tests/LibJS/Bytecode/expected/super-computed-eval-order.txt b/Tests/LibJS/Bytecode/expected/super-computed-eval-order.txt
index 94bac915fed..e614767041b 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 @@
-$2f40aa04 super-computed-eval-order.js:1:1
+$0392d2ad super-computed-eval-order.js:1:1
Registers: 11
Blocks: 1
Constants:
@@ -11,21 +11,21 @@ block0:
[ 3] Mov dst:reg5, src:Undefined
[ 6] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
[ 12] CreateVariable `Base`, is_immutable:true, is_global:false, is_strict:true
- [ 1a] SetLexicalEnvironment environment:reg4
- [ 1c] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false
- [ 2b] DynamicInitializeLexicalBinding `Base`, src:reg6
- [ 32] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
- [ 3e] CreateVariable `Derived`, is_immutable:true, is_global:false, is_strict:true
- [ 46] GetGlobal value_feedback:0, dst:reg9, `Base`
- [ 4f] GetClassProtoParent dst:reg10, super_class:reg9
- [ 52] SetLexicalEnvironment environment:reg4
- [ 54] NewClass dst:reg6, super_class:reg9, proto_parent:reg10, class_environment:reg7, class_blueprint_index:1, element_keys_are_in_array:false, element_keys:[element_keys:String("test")]
- [ 64] DynamicInitializeLexicalBinding `Derived`, src:reg6
- [ 6b] GetGlobal value_feedback:1, dst:reg6, `Derived`
- [ 74] CallConstruct value_feedback:2, call_feedback:0, dst:reg6, callee:reg6
- [ 7c] GetById value_feedback:3, dst:reg7, base:reg6, `test`
- [ 86] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6
- [ 8f] End value:reg5
+ [ 19] SetLexicalEnvironment environment:reg4
+ [ 1b] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false
+ [ 29] DynamicInitializeLexicalBinding `Base`, src:reg6
+ [ 2f] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
+ [ 3b] CreateVariable `Derived`, is_immutable:true, is_global:false, is_strict:true
+ [ 42] GetGlobal value_feedback:0, dst:reg9, `Base`
+ [ 4a] GetClassProtoParent dst:reg10, super_class:reg9
+ [ 4d] SetLexicalEnvironment environment:reg4
+ [ 4f] NewClass dst:reg6, super_class:reg9, proto_parent:reg10, class_environment:reg7, class_blueprint_index:1, element_keys_are_in_array:false, element_keys:[element_keys:String("test")]
+ [ 5e] DynamicInitializeLexicalBinding `Derived`, src:reg6
+ [ 64] GetGlobal value_feedback:1, dst:reg6, `Derived`
+ [ 6c] CallConstruct value_feedback:2, call_feedback:0, dst:reg6, callee:reg6
+ [ 74] GetById value_feedback:3, dst:reg7, base:reg6, `test`
+ [ 7d] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6
+ [ 86] End value:reg5
Derived$4760e81b super-computed-eval-order.js:4:14
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 bf9054b4fcb..67c90c8bfd4 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 @@
-$0e115d44 super-computed-string-to-id.js:1:1
+$a1b289a9 super-computed-string-to-id.js:1:1
Registers: 11
Blocks: 1
Constants:
@@ -10,17 +10,17 @@ block0:
[ 3] Mov dst:reg5, src:Undefined
[ 6] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
[ 12] CreateVariable `C`, is_immutable:true, is_global:false, is_strict:true
- [ 1a] GetGlobal value_feedback:0, dst:reg9, `Object`
- [ 23] GetClassProtoParent dst:reg10, super_class:reg9
- [ 26] SetLexicalEnvironment environment:reg4
- [ 28] NewClass dst:reg6, super_class:reg9, proto_parent:reg10, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false
- [ 37] DynamicInitializeLexicalBinding `C`, src:reg6
- [ 3e] GetGlobal value_feedback:1, dst:reg6, `C`
- [ 47] CallConstruct value_feedback:2, call_feedback:0, dst:reg5, callee:reg6
- [ 4f] End value:reg5
+ [ 19] GetGlobal value_feedback:0, dst:reg9, `Object`
+ [ 21] GetClassProtoParent dst:reg10, super_class:reg9
+ [ 24] SetLexicalEnvironment environment:reg4
+ [ 26] NewClass dst:reg6, super_class:reg9, proto_parent:reg10, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false
+ [ 34] DynamicInitializeLexicalBinding `C`, src:reg6
+ [ 3a] GetGlobal value_feedback:1, dst:reg6, `C`
+ [ 42] CallConstruct value_feedback:2, call_feedback:0, dst:reg5, callee:reg6
+ [ 4a] End value:reg5
-C$69c2f535 super-computed-string-to-id.js:3:14
+C$b9ef3446 super-computed-string-to-id.js:3:14
Registers: 7
Blocks: 1
Constants:
@@ -35,4 +35,4 @@ block0:
[ f] ResolveThisBinding
[ 10] ResolveSuperBase dst:reg5
[ 12] PutByIdWithThis base:reg5, this_value:this, `foo`, src:Int32(1), kind:Normal
- [ 1c] End value:Undefined
+ [ 1b] End value:Undefined
diff --git a/Tests/LibJS/Bytecode/expected/super-constructor-call.txt b/Tests/LibJS/Bytecode/expected/super-constructor-call.txt
index a68ff6943ce..60751789b36 100644
--- a/Tests/LibJS/Bytecode/expected/super-constructor-call.txt
+++ b/Tests/LibJS/Bytecode/expected/super-constructor-call.txt
@@ -1,4 +1,4 @@
-$44cef8db super-constructor-call.js:1:1
+$c36d0053 super-constructor-call.js:1:1
Registers: 11
Blocks: 1
Constants:
@@ -11,19 +11,19 @@ block0:
[ 3] Mov dst:reg5, src:Undefined
[ 6] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
[ 12] CreateVariable `Base`, is_immutable:true, is_global:false, is_strict:true
- [ 1a] SetLexicalEnvironment environment:reg4
- [ 1c] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false
- [ 2b] DynamicInitializeLexicalBinding `Base`, src:reg6
- [ 32] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
- [ 3e] CreateVariable `Derived`, is_immutable:true, is_global:false, is_strict:true
- [ 46] GetGlobal value_feedback:0, dst:reg9, `Base`
- [ 4f] GetClassProtoParent dst:reg10, super_class:reg9
- [ 52] SetLexicalEnvironment environment:reg4
- [ 54] NewClass dst:reg6, super_class:reg9, proto_parent:reg10, class_environment:reg7, class_blueprint_index:1, element_keys_are_in_array:false
- [ 63] DynamicInitializeLexicalBinding `Derived`, src:reg6
- [ 6a] GetGlobal value_feedback:1, dst:reg6, `Derived`
- [ 73] CallConstruct value_feedback:2, call_feedback:0, dst:reg5, callee:reg6, arguments:[Int32(1)]
- [ 7c] End value:reg5
+ [ 19] SetLexicalEnvironment environment:reg4
+ [ 1b] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false
+ [ 29] DynamicInitializeLexicalBinding `Base`, src:reg6
+ [ 2f] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
+ [ 3b] CreateVariable `Derived`, is_immutable:true, is_global:false, is_strict:true
+ [ 42] GetGlobal value_feedback:0, dst:reg9, `Base`
+ [ 4a] GetClassProtoParent dst:reg10, super_class:reg9
+ [ 4d] SetLexicalEnvironment environment:reg4
+ [ 4f] NewClass dst:reg6, super_class:reg9, proto_parent:reg10, class_environment:reg7, class_blueprint_index:1, element_keys_are_in_array:false
+ [ 5d] DynamicInitializeLexicalBinding `Derived`, src:reg6
+ [ 63] GetGlobal value_feedback:1, dst:reg6, `Derived`
+ [ 6b] CallConstruct value_feedback:2, call_feedback:0, dst:reg5, callee:reg6, arguments:[Int32(1)]
+ [ 74] End value:reg5
Derived$56dc2ae8 super-constructor-call.js:4:14
diff --git a/Tests/LibJS/Bytecode/expected/super-evaluation-order.txt b/Tests/LibJS/Bytecode/expected/super-evaluation-order.txt
index eaaa628221d..1dd70c752ab 100644
--- a/Tests/LibJS/Bytecode/expected/super-evaluation-order.txt
+++ b/Tests/LibJS/Bytecode/expected/super-evaluation-order.txt
@@ -1,4 +1,4 @@
-$1895f79a super-evaluation-order.js:1:1
+$f6db80f0 super-evaluation-order.js:1:1
Registers: 11
Blocks: 1
Constants:
@@ -13,24 +13,24 @@ block0:
[ 3] Mov dst:reg5, src:Undefined
[ 6] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
[ 12] CreateVariable `A`, is_immutable:true, is_global:false, is_strict:true
- [ 1a] GetGlobal value_feedback:0, dst:reg9, `Object`
- [ 23] GetClassProtoParent dst:reg10, super_class:reg9
- [ 26] SetLexicalEnvironment environment:reg4
- [ 28] NewClass dst:reg6, super_class:reg9, proto_parent:reg10, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false, element_keys:[element_keys:String("read"), element_keys:String("write"), element_keys:String("update")]
- [ 3a] DynamicInitializeLexicalBinding `A`, src:reg6
- [ 41] GetGlobal value_feedback:1, dst:reg6, `A`
- [ 4a] CallConstruct value_feedback:2, call_feedback:0, dst:reg6, callee:reg6
- [ 52] GetById value_feedback:3, dst:reg7, base:reg6, `read`
- [ 5c] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6
- [ 65] GetGlobal value_feedback:5, dst:reg6, `A`
- [ 6e] CallConstruct value_feedback:6, call_feedback:2, dst:reg6, callee:reg6
- [ 76] GetById value_feedback:7, dst:reg7, base:reg6, `write`
- [ 80] Call value_feedback:8, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6
- [ 89] GetGlobal value_feedback:9, dst:reg6, `A`
- [ 92] CallConstruct value_feedback:10, call_feedback:4, dst:reg6, callee:reg6
- [ 9a] GetById value_feedback:11, dst:reg7, base:reg6, `update`
- [ a4] Call value_feedback:12, call_feedback:5, dst:reg5, callee:reg7, this_value:reg6
- [ ad] End value:reg5
+ [ 19] GetGlobal value_feedback:0, dst:reg9, `Object`
+ [ 21] GetClassProtoParent dst:reg10, super_class:reg9
+ [ 24] SetLexicalEnvironment environment:reg4
+ [ 26] NewClass dst:reg6, super_class:reg9, proto_parent:reg10, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false, element_keys:[element_keys:String("read"), element_keys:String("write"), element_keys:String("update")]
+ [ 37] DynamicInitializeLexicalBinding `A`, src:reg6
+ [ 3d] GetGlobal value_feedback:1, dst:reg6, `A`
+ [ 45] CallConstruct value_feedback:2, call_feedback:0, dst:reg6, callee:reg6
+ [ 4d] GetById value_feedback:3, dst:reg7, base:reg6, `read`
+ [ 56] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6
+ [ 5f] GetGlobal value_feedback:5, dst:reg6, `A`
+ [ 67] CallConstruct value_feedback:6, call_feedback:2, dst:reg6, callee:reg6
+ [ 6f] GetById value_feedback:7, dst:reg7, base:reg6, `write`
+ [ 78] Call value_feedback:8, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6
+ [ 81] GetGlobal value_feedback:9, dst:reg6, `A`
+ [ 89] CallConstruct value_feedback:10, call_feedback:4, dst:reg6, callee:reg6
+ [ 91] GetById value_feedback:11, dst:reg7, base:reg6, `update`
+ [ 9a] Call value_feedback:12, call_feedback:5, dst:reg5, callee:reg7, this_value:reg6
+ [ a3] End value:reg5
A$72a3fda0 super-evaluation-order.js:1:1
@@ -45,7 +45,7 @@ block0:
[ 12] Return value:reg7
-read$080fa904 super-evaluation-order.js:3:9
+read$583be815 super-evaluation-order.js:3:9
Registers: 7
Blocks: 1
@@ -54,10 +54,10 @@ block0:
[ 1] ResolveThisBinding
[ 2] ResolveSuperBase dst:reg5
[ 4] GetByIdWithThis value_feedback:0, dst:reg6, base:reg5, `x`, this_value:this
- [ f] Return value:reg6
+ [ e] Return value:reg6
-write$b8aa5be7 super-evaluation-order.js:6:9
+write$0612a9e8 super-evaluation-order.js:6:9
Registers: 6
Blocks: 1
Constants:
@@ -69,10 +69,10 @@ block0:
[ 1] ResolveThisBinding
[ 2] ResolveSuperBase dst:reg5
[ 4] PutByIdWithThis base:reg5, this_value:this, `x`, src:Int32(42), kind:Normal
- [ e] End value:Undefined
+ [ d] End value:Undefined
-update$08493274 super-evaluation-order.js:9:9
+update$e106d9aa super-evaluation-order.js:9:9
Registers: 8
Blocks: 1
Constants:
@@ -83,6 +83,6 @@ block0:
[ 1] ResolveThisBinding
[ 2] ResolveSuperBase dst:reg5
[ 4] GetByIdWithThis value_feedback:0, dst:reg6, base:reg5, `x`, this_value:this
- [ f] PostfixIncrement arith_feedback:0, dst:reg7, src:reg6
- [ 14] PutByIdWithThis base:reg5, this_value:this, `x`, src:reg6, kind:Normal
- [ 1e] End value:Undefined
+ [ e] PostfixIncrement arith_feedback:0, dst:reg7, src:reg6
+ [ 13] PutByIdWithThis base:reg5, this_value:this, `x`, src:reg6, kind:Normal
+ [ 1c] 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 cdf9e58dcd9..51729612eb1 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 @@
-$d0245210 super-for-of-resolve-order.js:1:1
+$10d54e54 super-for-of-resolve-order.js:1:1
Registers: 8
Blocks: 1
Constants:
@@ -10,15 +10,15 @@ block0:
[ 3] Mov dst:reg5, src:Undefined
[ 6] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
[ 12] CreateVariable `C`, is_immutable:true, is_global:false, is_strict:true
- [ 1a] SetLexicalEnvironment environment:reg4
- [ 1c] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false
- [ 2b] DynamicInitializeLexicalBinding `C`, src:reg6
- [ 32] GetGlobal value_feedback:0, dst:reg6, `C`
- [ 3b] CallConstruct value_feedback:1, call_feedback:0, dst:reg5, callee:reg6
- [ 43] End value:reg5
+ [ 19] SetLexicalEnvironment environment:reg4
+ [ 1b] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false
+ [ 29] DynamicInitializeLexicalBinding `C`, src:reg6
+ [ 2f] GetGlobal value_feedback:0, dst:reg6, `C`
+ [ 37] CallConstruct value_feedback:1, call_feedback:0, dst:reg5, callee:reg6
+ [ 3f] End value:reg5
-C$61772205 super-for-of-resolve-order.js:3:14
+C$b1a36116 super-for-of-resolve-order.js:3:14
Registers: 12
Blocks: 5
Constants:
@@ -37,15 +37,15 @@ block2:
[ 2c] ResolveThisBinding
[ 2d] ResolveSuperBase dst:reg11
[ 2f] PutByIdWithThis base:reg11, this_value:this, `prop`, src:reg9, kind:Normal
- [ 39] JumpLoop target:block1
+ [ 38] JumpLoop target:block1
block3:
- [ 3e] Catch value_feedback:0, dst:reg11
- [ 42] IteratorClose iterator_object:reg6, iterator_next:reg7, iterator_done:reg8, completion_value:reg11
- [ 4a] Throw src:reg11
+ [ 3d] Catch value_feedback:0, dst:reg11
+ [ 41] IteratorClose iterator_object:reg6, iterator_next:reg7, iterator_done:reg8, completion_value:reg11
+ [ 49] Throw src:reg11
block4:
- [ 4c] End value:Undefined
+ [ 4b] End value:Undefined
Exception handlers:
- [ 2c .. 3e] => handler block3
+ [ 2c .. 3d] => handler block3
diff --git a/Tests/LibJS/Bytecode/expected/super-length-access.txt b/Tests/LibJS/Bytecode/expected/super-length-access.txt
index f9b23e57011..81db509c13c 100644
--- a/Tests/LibJS/Bytecode/expected/super-length-access.txt
+++ b/Tests/LibJS/Bytecode/expected/super-length-access.txt
@@ -1,4 +1,4 @@
-$59ee3a55 super-length-access.js:3:1
+$2e4062fe super-length-access.js:3:1
Registers: 11
Blocks: 1
Constants:
@@ -12,21 +12,21 @@ block0:
[ 3] Mov dst:reg5, src:Undefined
[ 6] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
[ 12] CreateVariable `A`, is_immutable:true, is_global:false, is_strict:true
- [ 1a] SetLexicalEnvironment environment:reg4
- [ 1c] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false, element_keys:[element_keys:String("length")]
- [ 2c] DynamicInitializeLexicalBinding `A`, src:reg6
- [ 33] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
- [ 3f] CreateVariable `B`, is_immutable:true, is_global:false, is_strict:true
- [ 47] GetGlobal value_feedback:0, dst:reg9, `A`
- [ 50] GetClassProtoParent dst:reg10, super_class:reg9
- [ 53] SetLexicalEnvironment environment:reg4
- [ 55] NewClass dst:reg6, super_class:reg9, proto_parent:reg10, class_environment:reg7, class_blueprint_index:1, element_keys_are_in_array:false, element_keys:[element_keys:String("m")]
- [ 65] DynamicInitializeLexicalBinding `B`, src:reg6
- [ 6c] GetGlobal value_feedback:1, dst:reg6, `B`
- [ 75] CallConstruct value_feedback:2, call_feedback:0, dst:reg6, callee:reg6
- [ 7d] GetById value_feedback:3, dst:reg7, base:reg6, `m`
- [ 87] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6
- [ 90] End value:reg5
+ [ 19] SetLexicalEnvironment environment:reg4
+ [ 1b] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false, element_keys:[element_keys:String("length")]
+ [ 2a] DynamicInitializeLexicalBinding `A`, src:reg6
+ [ 30] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
+ [ 3c] CreateVariable `B`, is_immutable:true, is_global:false, is_strict:true
+ [ 43] GetGlobal value_feedback:0, dst:reg9, `A`
+ [ 4b] GetClassProtoParent dst:reg10, super_class:reg9
+ [ 4e] SetLexicalEnvironment environment:reg4
+ [ 50] NewClass dst:reg6, super_class:reg9, proto_parent:reg10, class_environment:reg7, class_blueprint_index:1, element_keys_are_in_array:false, element_keys:[element_keys:String("m")]
+ [ 5f] DynamicInitializeLexicalBinding `B`, src:reg6
+ [ 65] GetGlobal value_feedback:1, dst:reg6, `B`
+ [ 6d] CallConstruct value_feedback:2, call_feedback:0, dst:reg6, callee:reg6
+ [ 75] GetById value_feedback:3, dst:reg7, base:reg6, `m`
+ [ 7e] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6
+ [ 87] End value:reg5
B$a1472f4d super-length-access.js:7:1
diff --git a/Tests/LibJS/Bytecode/expected/super-method-call-order.txt b/Tests/LibJS/Bytecode/expected/super-method-call-order.txt
index 03d4bde21d0..045d5ad1e16 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 @@
-$8156046c super-method-call-order.js:1:5
+$e3c1775a super-method-call-order.js:1:5
Registers: 8
Blocks: 1
Constants:
@@ -9,30 +9,30 @@ block0:
[ 1] Mov dst:reg5, src:Undefined
[ 4] NewObject dst:reg6
[ 8] NewFunction dst:reg7, shared_function_data_index:0 (m), home_object:reg6
- [ 10] PutById base:reg6, `m`, src:reg7, kind:Own
- [ 19] SetGlobal `proto`, src:reg6
- [ 20] NewObject dst:reg6
- [ 24] GetGlobal value_feedback:0, dst:reg7, `proto`
- [ 2d] PutById base:reg6, `__proto__`, src:reg7, kind:Prototype
- [ 36] NewFunction dst:reg7, shared_function_data_index:1 (test), home_object:reg6
- [ 3e] PutById base:reg6, `test`, src:reg7, kind:Own
- [ 47] NewFunction dst:reg7, shared_function_data_index:2 (get x), home_object:reg6
- [ 4f] PutById base:reg6, `x`, src:reg7, kind:Getter
- [ 58] NewFunction dst:reg7, shared_function_data_index:3 (test2), home_object:reg6
- [ 60] PutById base:reg6, `test2`, src:reg7, kind:Own
- [ 69] SetGlobal `obj`, src:reg6
- [ 70] GetGlobal value_feedback:1, dst:reg6, `obj`
- [ 79] GetById value_feedback:2, dst:reg7, base:reg6, `test`
- [ 83] Call value_feedback:3, call_feedback:0, dst:reg5, callee:reg7, this_value:reg6
- [ 8c] GetGlobal value_feedback:4, dst:reg6, `obj`
- [ 95] GetById value_feedback:5, dst:reg5, base:reg6, `x`
- [ 9f] GetGlobal value_feedback:6, dst:reg6, `obj`
- [ a8] GetById value_feedback:7, dst:reg7, base:reg6, `test2`
- [ b2] Call value_feedback:8, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6
- [ bb] End value:reg5
+ [ f] PutById base:reg6, `m`, src:reg7, kind:Own
+ [ 17] SetGlobal `proto`, src:reg6
+ [ 1d] NewObject dst:reg6
+ [ 21] GetGlobal value_feedback:0, dst:reg7, `proto`
+ [ 29] PutById base:reg6, `__proto__`, src:reg7, kind:Prototype
+ [ 31] NewFunction dst:reg7, shared_function_data_index:1 (test), home_object:reg6
+ [ 38] PutById base:reg6, `test`, src:reg7, kind:Own
+ [ 40] NewFunction dst:reg7, shared_function_data_index:2 (get x), home_object:reg6
+ [ 47] PutById base:reg6, `x`, src:reg7, kind:Getter
+ [ 4f] NewFunction dst:reg7, shared_function_data_index:3 (test2), home_object:reg6
+ [ 56] PutById base:reg6, `test2`, src:reg7, kind:Own
+ [ 5e] SetGlobal `obj`, src:reg6
+ [ 64] GetGlobal value_feedback:1, dst:reg6, `obj`
+ [ 6c] GetById value_feedback:2, dst:reg7, base:reg6, `test`
+ [ 75] Call value_feedback:3, call_feedback:0, dst:reg5, callee:reg7, this_value:reg6
+ [ 7e] GetGlobal value_feedback:4, dst:reg6, `obj`
+ [ 86] GetById value_feedback:5, dst:reg5, base:reg6, `x`
+ [ 8f] GetGlobal value_feedback:6, dst:reg6, `obj`
+ [ 97] GetById value_feedback:7, dst:reg7, base:reg6, `test2`
+ [ a0] Call value_feedback:8, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6
+ [ a9] End value:reg5
-test$c574adfd super-method-call-order.js:5:9
+test$15a0ed0e super-method-call-order.js:5:9
Registers: 7
Blocks: 1
@@ -41,8 +41,8 @@ block0:
[ 1] ResolveThisBinding
[ 2] ResolveSuperBase dst:reg5
[ 4] GetByIdWithThis value_feedback:0, dst:reg6, base:reg5, `m`, this_value:this
- [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:this
- [ 18] Return value:reg5
+ [ e] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:this
+ [ 17] Return value:reg5
m$da3f2d9b
@@ -56,7 +56,7 @@ block0:
[ 1] End value:Undefined
-get x$ec1f1600 super-method-call-order.js:8:9
+get x$dca3d333 super-method-call-order.js:8:9
Registers: 7
Blocks: 1
@@ -65,11 +65,11 @@ block0:
[ 1] ResolveThisBinding
[ 2] ResolveSuperBase dst:reg5
[ 4] GetByIdWithThis value_feedback:0, dst:reg6, base:reg5, `m`, this_value:this
- [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:this
- [ 18] Return value:reg5
+ [ e] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:this
+ [ 17] Return value:reg5
-test2$c7e6fd59 super-method-call-order.js:11:9
+test2$18133c6a super-method-call-order.js:11:9
Registers: 7
Blocks: 1
@@ -78,5 +78,5 @@ block0:
[ 1] ResolveThisBinding
[ 2] ResolveSuperBase dst:reg5
[ 4] GetByIdWithThis value_feedback:0, dst:reg6, base:reg5, `m`, this_value:this
- [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:this
- [ 18] Return value:reg5
+ [ e] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:this
+ [ 17] 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 07fed496991..925fe937ae0 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 @@
-$1fc56737 super-optional-call-this.js:1:1
+$b366939c super-optional-call-this.js:1:1
Registers: 11
Blocks: 1
Constants:
@@ -11,21 +11,21 @@ block0:
[ 3] Mov dst:reg5, src:Undefined
[ 6] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
[ 12] CreateVariable `Base`, is_immutable:true, is_global:false, is_strict:true
- [ 1a] SetLexicalEnvironment environment:reg4
- [ 1c] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false, element_keys:[element_keys:String("method")]
- [ 2c] DynamicInitializeLexicalBinding `Base`, src:reg6
- [ 33] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
- [ 3f] CreateVariable `Foo`, is_immutable:true, is_global:false, is_strict:true
- [ 47] GetGlobal value_feedback:0, dst:reg9, `Base`
- [ 50] GetClassProtoParent dst:reg10, super_class:reg9
- [ 53] SetLexicalEnvironment environment:reg4
- [ 55] NewClass dst:reg6, super_class:reg9, proto_parent:reg10, class_environment:reg7, class_blueprint_index:1, element_keys_are_in_array:false, element_keys:[element_keys:String("method")]
- [ 65] DynamicInitializeLexicalBinding `Foo`, src:reg6
- [ 6c] GetGlobal value_feedback:1, dst:reg6, `Foo`
- [ 75] CallConstruct value_feedback:2, call_feedback:0, dst:reg6, callee:reg6
- [ 7d] GetById value_feedback:3, dst:reg7, base:reg6, `method`
- [ 87] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6
- [ 90] End value:reg5
+ [ 19] SetLexicalEnvironment environment:reg4
+ [ 1b] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false, element_keys:[element_keys:String("method")]
+ [ 2a] DynamicInitializeLexicalBinding `Base`, src:reg6
+ [ 30] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
+ [ 3c] CreateVariable `Foo`, is_immutable:true, is_global:false, is_strict:true
+ [ 43] GetGlobal value_feedback:0, dst:reg9, `Base`
+ [ 4b] GetClassProtoParent dst:reg10, super_class:reg9
+ [ 4e] SetLexicalEnvironment environment:reg4
+ [ 50] NewClass dst:reg6, super_class:reg9, proto_parent:reg10, class_environment:reg7, class_blueprint_index:1, element_keys_are_in_array:false, element_keys:[element_keys:String("method")]
+ [ 5f] DynamicInitializeLexicalBinding `Foo`, src:reg6
+ [ 65] GetGlobal value_feedback:1, dst:reg6, `Foo`
+ [ 6d] CallConstruct value_feedback:2, call_feedback:0, dst:reg6, callee:reg6
+ [ 75] GetById value_feedback:3, dst:reg7, base:reg6, `method`
+ [ 7e] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6
+ [ 87] End value:reg5
Foo$4a348592 super-optional-call-this.js:4:1
@@ -51,7 +51,7 @@ block0:
[ 1] End value:Undefined
-method$fdf27601 super-optional-call-this.js:6:9
+method$8ecfb156 super-optional-call-this.js:6:9
Registers: 7
Blocks: 4
Constants:
@@ -62,17 +62,17 @@ block0:
[ 1] ResolveThisBinding
[ 2] ResolveSuperBase dst:reg5
[ 4] GetByIdWithThis value_feedback:0, dst:reg6, base:reg5, `method`, this_value:this
- [ f] JumpNullish condition:reg6, true_target:block2, false_target:block1
+ [ e] JumpNullish condition:reg6, true_target:block2, false_target:block1
block1:
- [ 19] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:this
- [ 22] Jump target:block3
+ [ 18] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:this
+ [ 21] Jump target:block3
block2:
- [ 27] Mov dst:reg5, src:Undefined
+ [ 26] Mov dst:reg5, src:Undefined
block3:
- [ 2a] Return value:reg5
+ [ 29] Return value:reg5
method$9a9476d1
diff --git a/Tests/LibJS/Bytecode/expected/switch-completion-value.txt b/Tests/LibJS/Bytecode/expected/switch-completion-value.txt
index 85970570b9d..59f3d7a4878 100644
--- a/Tests/LibJS/Bytecode/expected/switch-completion-value.txt
+++ b/Tests/LibJS/Bytecode/expected/switch-completion-value.txt
@@ -1,4 +1,4 @@
-$b0a2a28c switch-completion-value.js:1:1
+$7f6ce915 switch-completion-value.js:1:1
Registers: 10
Blocks: 1
Constants:
@@ -11,21 +11,21 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] DynamicGetBinding value_feedback:0, dst:reg6, `console`
- [ d] GetById value_feedback:1, dst:reg7, base:reg6, `log`
- [ 17] DynamicGetCalleeAndThisFromEnvironment value_feedback:2, callee:reg8, this_value:reg9, `eval`
- [ 21] CallDirectEval value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:reg9, arguments:[String("switch(1) { case 1: 'hello'; let x = 1; }")]
- [ 2b] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 35] DynamicGetBinding value_feedback:5, dst:reg6, `console`
- [ 3e] GetById value_feedback:6, dst:reg7, base:reg6, `log`
- [ 48] DynamicGetCalleeAndThisFromEnvironment value_feedback:7, callee:reg8, this_value:reg9, `eval`
- [ 52] CallDirectEval value_feedback:8, call_feedback:2, dst:reg8, callee:reg8, this_value:reg9, arguments:[String("switch(1) { case 1: 'first'; 'second'; }")]
- [ 5c] Call value_feedback:9, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 66] DynamicGetBinding value_feedback:10, dst:reg6, `console`
- [ 6f] GetById value_feedback:11, dst:reg7, base:reg6, `log`
- [ 79] DynamicGetCalleeAndThisFromEnvironment value_feedback:12, callee:reg8, this_value:reg9, `eval`
- [ 83] CallDirectEval value_feedback:13, call_feedback:4, dst:reg8, callee:reg8, this_value:reg9, arguments:[String("switch(1) { case 1: 'matched'; break; default: 'default'; }")]
- [ 8d] Call value_feedback:14, call_feedback:5, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 97] End value:reg5
+ [ c] GetById value_feedback:1, dst:reg7, base:reg6, `log`
+ [ 15] DynamicGetCalleeAndThisFromEnvironment value_feedback:2, callee:reg8, this_value:reg9, `eval`
+ [ 1e] CallDirectEval value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:reg9, arguments:[String("switch(1) { case 1: 'hello'; let x = 1; }")]
+ [ 28] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 32] DynamicGetBinding value_feedback:5, dst:reg6, `console`
+ [ 3a] GetById value_feedback:6, dst:reg7, base:reg6, `log`
+ [ 43] DynamicGetCalleeAndThisFromEnvironment value_feedback:7, callee:reg8, this_value:reg9, `eval`
+ [ 4c] CallDirectEval value_feedback:8, call_feedback:2, dst:reg8, callee:reg8, this_value:reg9, arguments:[String("switch(1) { case 1: 'first'; 'second'; }")]
+ [ 56] Call value_feedback:9, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 60] DynamicGetBinding value_feedback:10, dst:reg6, `console`
+ [ 68] GetById value_feedback:11, dst:reg7, base:reg6, `log`
+ [ 71] DynamicGetCalleeAndThisFromEnvironment value_feedback:12, callee:reg8, this_value:reg9, `eval`
+ [ 7a] CallDirectEval value_feedback:13, call_feedback:4, dst:reg8, callee:reg8, this_value:reg9, arguments:[String("switch(1) { case 1: 'matched'; break; default: 'default'; }")]
+ [ 84] Call value_feedback:14, call_feedback:5, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 8e] End value:reg5
eval$0aae64f5 line 1, column 8
diff --git a/Tests/LibJS/Bytecode/expected/switch-local-only-let.txt b/Tests/LibJS/Bytecode/expected/switch-local-only-let.txt
index 78a2f2f12aa..df59661f39a 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 @@
-$1510085d switch-local-only-let.js:15:1
+$e69e3ff6 switch-local-only-let.js:15:1
Registers: 9
Blocks: 1
Constants:
@@ -11,21 +11,21 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `console`
- [ d] GetById value_feedback:1, dst:reg7, base:reg6, `log`
- [ 17] GetGlobal value_feedback:2, dst:reg8, `switchLocalOnly`
- [ 20] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined, arguments:[Int32(1)]
- [ 2a] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 34] GetGlobal value_feedback:5, dst:reg6, `console`
- [ 3d] GetById value_feedback:6, dst:reg7, base:reg6, `log`
- [ 47] GetGlobal value_feedback:7, dst:reg8, `switchLocalOnly`
- [ 50] Call value_feedback:8, call_feedback:2, dst:reg8, callee:reg8, this_value:Undefined, arguments:[Int32(2)]
- [ 5a] Call value_feedback:9, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 64] GetGlobal value_feedback:10, dst:reg6, `console`
- [ 6d] GetById value_feedback:11, dst:reg7, base:reg6, `log`
- [ 77] GetGlobal value_feedback:12, dst:reg8, `switchLocalOnly`
- [ 80] Call value_feedback:13, call_feedback:4, dst:reg8, callee:reg8, this_value:Undefined, arguments:[Int32(3)]
- [ 8a] Call value_feedback:14, call_feedback:5, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 94] End value:reg5
+ [ c] GetById value_feedback:1, dst:reg7, base:reg6, `log`
+ [ 15] GetGlobal value_feedback:2, dst:reg8, `switchLocalOnly`
+ [ 1d] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined, arguments:[Int32(1)]
+ [ 27] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 31] GetGlobal value_feedback:5, dst:reg6, `console`
+ [ 39] GetById value_feedback:6, dst:reg7, base:reg6, `log`
+ [ 42] GetGlobal value_feedback:7, dst:reg8, `switchLocalOnly`
+ [ 4a] Call value_feedback:8, call_feedback:2, dst:reg8, callee:reg8, this_value:Undefined, arguments:[Int32(2)]
+ [ 54] Call value_feedback:9, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 5e] GetGlobal value_feedback:10, dst:reg6, `console`
+ [ 66] GetById value_feedback:11, dst:reg7, base:reg6, `log`
+ [ 6f] GetGlobal value_feedback:12, dst:reg8, `switchLocalOnly`
+ [ 77] Call value_feedback:13, call_feedback:4, dst:reg8, callee:reg8, this_value:Undefined, arguments:[Int32(3)]
+ [ 81] Call value_feedback:14, call_feedback:5, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 8b] End value:reg5
switchLocalOnly$0cd18392 switch-local-only-let.js:4:13
diff --git a/Tests/LibJS/Bytecode/expected/switch-scoping.txt b/Tests/LibJS/Bytecode/expected/switch-scoping.txt
index 62e5c6efa1c..94844d24a7a 100644
--- a/Tests/LibJS/Bytecode/expected/switch-scoping.txt
+++ b/Tests/LibJS/Bytecode/expected/switch-scoping.txt
@@ -1,4 +1,4 @@
-$124c174d switch-scoping.js:15:1
+$71f3992b switch-scoping.js:15:1
Registers: 9
Blocks: 1
Constants:
@@ -10,19 +10,19 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `console`
- [ d] GetById value_feedback:1, dst:reg7, base:reg6, `log`
- [ 17] GetGlobal value_feedback:2, dst:reg8, `switchWithBlockDecl`
- [ 20] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined, arguments:[Int32(1)]
- [ 2a] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 34] GetGlobal value_feedback:5, dst:reg6, `console`
- [ 3d] GetById value_feedback:6, dst:reg7, base:reg6, `log`
- [ 47] GetGlobal value_feedback:7, dst:reg8, `switchWithBlockDecl`
- [ 50] Call value_feedback:8, call_feedback:2, dst:reg8, callee:reg8, this_value:Undefined, arguments:[Int32(2)]
- [ 5a] Call value_feedback:9, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 64] End value:reg5
-
-
-switchWithBlockDecl$6e69d4ef switch-scoping.js:2:9
+ [ c] GetById value_feedback:1, dst:reg7, base:reg6, `log`
+ [ 15] GetGlobal value_feedback:2, dst:reg8, `switchWithBlockDecl`
+ [ 1d] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined, arguments:[Int32(1)]
+ [ 27] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 31] GetGlobal value_feedback:5, dst:reg6, `console`
+ [ 39] GetById value_feedback:6, dst:reg7, base:reg6, `log`
+ [ 42] GetGlobal value_feedback:7, dst:reg8, `switchWithBlockDecl`
+ [ 4a] Call value_feedback:8, call_feedback:2, dst:reg8, callee:reg8, this_value:Undefined, arguments:[Int32(2)]
+ [ 54] Call value_feedback:9, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 5e] End value:reg5
+
+
+switchWithBlockDecl$8d605a89 switch-scoping.js:2:9
Registers: 8
Blocks: 6
Locals: result~0
@@ -40,48 +40,48 @@ block0:
[ 6] Mov dst:reg5, src:arg0
[ 9] CreateLexicalEnvironment dst:reg6, parent:reg4, capacity:2, is_catch_environment:false
[ 15] CreateVariable `a`, is_immutable:false, is_global:false, is_strict:false
- [ 1d] CreateVariable `b`, is_immutable:false, is_global:false, is_strict:false
- [ 25] JumpStrictlyEquals arith_feedback:0, lhs:Int32(1), rhs:reg5, true_target:block3, false_target:block1
+ [ 1c] CreateVariable `b`, is_immutable:false, is_global:false, is_strict:false
+ [ 23] JumpStrictlyEquals arith_feedback:0, lhs:Int32(1), rhs:reg5, true_target:block3, false_target:block1
block1:
- [ 32] 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:
- [ 3f] Jump target:block5
+ [ 3d] Jump target:block5
block3:
- [ 44] InitializeLexicalBinding `a`, src:String("one")
- [ 4c] NewFunction dst:result~0, shared_function_data_index:0 (result)
- [ 54] Jump target:block5
+ [ 42] InitializeLexicalBinding `a`, src:String("one")
+ [ 49] NewFunction dst:result~0, shared_function_data_index:0 (result)
+ [ 50] Jump target:block5
block4:
- [ 59] InitializeLexicalBinding `b`, src:String("two")
- [ 61] NewFunction dst:result~0, shared_function_data_index:1 (result)
+ [ 55] InitializeLexicalBinding `b`, src:String("two")
+ [ 5c] NewFunction dst:result~0, shared_function_data_index:1 (result)
block5:
- [ 69] SetLexicalEnvironment environment:reg4
- [ 6b] Call value_feedback:0, call_feedback:0, dst:reg5, callee:result~0, this_value:Undefined
- [ 74] Return value:reg5
+ [ 63] SetLexicalEnvironment environment:reg4
+ [ 65] Call value_feedback:0, call_feedback:0, dst:reg5, callee:result~0, this_value:Undefined
+ [ 6e] Return value:reg5
-result$cc5200f1 switch-scoping.js:6:22
+result$7c25c1e0 switch-scoping.js:6:22
Registers: 6
Blocks: 1
block0:
[ 0] Enter
[ 1] GetBinding value_feedback:0, dst:reg5, `a`
- [ b] Return value:reg5
+ [ a] Return value:reg5
-result$173b30bd switch-scoping.js:10:22
+result$c70ef1ac switch-scoping.js:10:22
Registers: 6
Blocks: 1
block0:
[ 0] Enter
[ 1] GetBinding value_feedback:0, dst:reg5, `b`
- [ b] Return value:reg5
+ [ a] 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 4de7ab1f4fe..41758eaa59e 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 @@
-$9f1319d1 switch-with-block-scope-return.js:12:1
+$4ee6dac0 switch-with-block-scope-return.js:12:1
Registers: 7
Blocks: 1
Constants:
@@ -9,11 +9,11 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `f`
- [ d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(1)]
- [ 17] End value:reg5
+ [ c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(1)]
+ [ 16] End value:reg5
-f$eac3b29a switch-with-block-scope-return.js:2:13
+f$7ba0edef switch-with-block-scope-return.js:2:13
Registers: 8
Blocks: 6
Constants:
@@ -30,25 +30,25 @@ block0:
[ 3] Mov dst:reg5, src:arg0
[ 6] CreateLexicalEnvironment dst:reg6, parent:reg4, capacity:1, is_catch_environment:false
[ 12] CreateVariable `y`, is_immutable:true, is_global:false, is_strict:true
- [ 1a] JumpStrictlyEquals arith_feedback:0, lhs:Int32(1), rhs:reg5, true_target:block3, false_target:block1
+ [ 19] JumpStrictlyEquals arith_feedback:0, lhs:Int32(1), rhs:reg5, true_target:block3, false_target:block1
block1:
- [ 27] JumpStrictlyEquals arith_feedback:1, lhs:Int32(2), rhs:reg5, true_target:block4, false_target:block2
+ [ 26] JumpStrictlyEquals arith_feedback:1, lhs:Int32(2), rhs:reg5, true_target:block4, false_target:block2
block2:
- [ 34] Jump target:block5
+ [ 33] Jump target:block5
block3:
- [ 39] SetLexicalEnvironment environment:reg4
- [ 3b] Return value:String("one")
+ [ 38] SetLexicalEnvironment environment:reg4
+ [ 3a] Return value:String("one")
block4:
- [ 3d] InitializeLexicalBinding `y`, src:String("two")
- [ 45] NewFunction dst:reg7, shared_function_data_index:0
- [ 4d] Call value_feedback:0, call_feedback:0, dst:reg7, callee:reg7, this_value:Undefined
- [ 56] SetLexicalEnvironment environment:reg4
- [ 58] Return value:reg7
+ [ 3c] InitializeLexicalBinding `y`, src:String("two")
+ [ 43] NewFunction dst:reg7, shared_function_data_index:0
+ [ 4a] Call value_feedback:0, call_feedback:0, dst:reg7, callee:reg7, this_value:Undefined
+ [ 53] SetLexicalEnvironment environment:reg4
+ [ 55] Return value:reg7
block5:
- [ 5a] SetLexicalEnvironment environment:reg4
- [ 5c] Return value:String("other")
+ [ 57] SetLexicalEnvironment environment:reg4
+ [ 59] 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 854b220e3db..4f8cd34d735 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 @@
-$64070c4f tagged-template-base-identifier.js:1:5
+$32d152d8 tagged-template-base-identifier.js:1:5
Registers: 9
Blocks: 1
Constants:
@@ -10,14 +10,14 @@ block0:
[ 1] Mov dst:reg5, src:Undefined
[ 4] NewObject dst:reg6
[ 8] NewFunction dst:reg7, shared_function_data_index:0 (f)
- [ 10] InitObjectLiteralProperty object:reg6, `f`, src:reg7, shape_cache_index:0, property_slot:0
- [ 1a] CacheObjectShape object:reg6
- [ 1e] SetGlobal `obj`, src:reg6
- [ 25] GetGlobal value_feedback:0, dst:reg6, `obj`
- [ 2e] GetById value_feedback:1, dst:reg7, base:reg6, `f`
- [ 38] GetTemplateObject dst:reg8, strings_are_in_array:false, strings:[String(""), String("")]
- [ 42] Call value_feedback:2, call_feedback:0, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 4c] End value:reg5
+ [ f] InitObjectLiteralProperty object:reg6, `f`, src:reg7, shape_cache_index:0, property_slot:0
+ [ 18] CacheObjectShape object:reg6
+ [ 1c] SetGlobal `obj`, src:reg6
+ [ 22] GetGlobal value_feedback:0, dst:reg6, `obj`
+ [ 2a] GetById value_feedback:1, dst:reg7, base:reg6, `f`
+ [ 33] GetTemplateObject dst:reg8, strings_are_in_array:false, strings:[String(""), String("")]
+ [ 3d] Call value_feedback:2, call_feedback:0, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 47] End value:reg5
f$bdc39382 tagged-template-base-identifier.js:3:9
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 0eabda6595b..c36446fedd0 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 @@
-$6ff1a648 tagged-template-if-register-order.js:1:1
+$cf992826 tagged-template-if-register-order.js:1:1
Registers: 9
Blocks: 6
Constants:
@@ -12,33 +12,33 @@ block0:
[ 1] Mov dst:reg5, src:Undefined
[ 4] Mov dst:reg5, src:String("use strict")
[ 7] GetGlobal value_feedback:0, dst:reg6, `String`
- [ 10] GetById value_feedback:1, dst:reg7, base:reg6, `raw`
- [ 1a] GetTemplateObject dst:reg8, strings_are_in_array:false, strings:[String("hello"), String("hello")]
- [ 24] Call value_feedback:2, call_feedback:0, dst:reg6, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 2e] DynamicInitializeLexicalBinding `x`, src:reg6
- [ 35] DynamicInitializeLexicalBinding `y`, src:Null
- [ 3c] GetGlobal value_feedback:3, dst:reg6, `x`
- [ 45] StrictlyEquals arith_feedback:0, dst:reg6, lhs:reg6, rhs:String("hello")
- [ 4b] Mov dst:reg5, src:Undefined
- [ 4e] JumpFalse condition:reg6, target:block5
+ [ f] GetById value_feedback:1, dst:reg7, base:reg6, `raw`
+ [ 18] GetTemplateObject dst:reg8, strings_are_in_array:false, strings:[String("hello"), String("hello")]
+ [ 22] Call value_feedback:2, call_feedback:0, dst:reg6, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 2c] DynamicInitializeLexicalBinding `x`, src:reg6
+ [ 32] DynamicInitializeLexicalBinding `y`, src:Null
+ [ 38] GetGlobal value_feedback:3, dst:reg6, `x`
+ [ 40] StrictlyEquals arith_feedback:0, dst:reg6, lhs:reg6, rhs:String("hello")
+ [ 46] Mov dst:reg5, src:Undefined
+ [ 49] JumpFalse condition:reg6, target:block5
block1:
- [ 54] ResolveGlobalBinding dst:reg6, `y`
- [ 5b] GetGlobal value_feedback:4, dst:reg7, `x`
- [ 64] GetById value_feedback:5, dst:reg8, base:reg7, `toUpperCase`
- [ 6e] Call value_feedback:6, call_feedback:1, dst:reg7, callee:reg8, this_value:reg7
- [ 77] JumpIf condition:reg6, true_target:block2, false_target:block3
+ [ 4f] ResolveGlobalBinding dst:reg6, `y`
+ [ 55] GetGlobal value_feedback:4, dst:reg7, `x`
+ [ 5d] GetById value_feedback:5, dst:reg8, base:reg7, `toUpperCase`
+ [ 66] Call value_feedback:6, call_feedback:1, dst:reg7, callee:reg8, this_value:reg7
+ [ 6f] JumpIf condition:reg6, true_target:block2, false_target:block3
block2:
- [ 81] SetGlobal `y`, src:reg7
- [ 88] Jump target:block4
+ [ 79] SetGlobal `y`, src:reg7
+ [ 7f] Jump target:block4
block3:
- [ 8d] SetResolvedBinding environment:Null, `y`, src:reg7
- [ 93] Jump target:block4
+ [ 84] SetResolvedBinding environment:Null, `y`, src:reg7
+ [ 89] Jump target:block4
block4:
- [ 98] Mov dst:reg5, src:reg7
+ [ 8e] Mov dst:reg5, src:reg7
block5:
- [ 9b] End value:reg5
+ [ 91] 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 0b0af2fc8f4..370447620e1 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 @@
-$736cb710 tdz-reset-in-loop.js:22:1
+$13c53532 tdz-reset-in-loop.js:22:1
Registers: 8
Blocks: 1
Constants:
@@ -8,15 +8,15 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `checked`
- [ d] NewArray dst:reg7
- [ 10] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
- [ 1a] GetGlobal value_feedback:2, dst:reg6, `nested`
- [ 23] NewArray dst:reg7
- [ 26] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
- [ 30] End value:reg5
+ [ c] NewArray dst:reg7
+ [ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
+ [ 19] GetGlobal value_feedback:2, dst:reg6, `nested`
+ [ 21] NewArray dst:reg7
+ [ 24] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
+ [ 2e] End value:reg5
-checked$ccb19cd7 tdz-reset-in-loop.js:5:10
+checked$dc2cdfa4 tdz-reset-in-loop.js:5:10
Registers: 8
Blocks: 4
Locals: i~0, value~1, plain~2
@@ -34,24 +34,24 @@ block1:
[ 9] Mov dst:value~1, src:<Empty>
[ c] GetByValue value_feedback:0, keyed_feedback:0, dst:reg5, base:arg0, property:i~0
[ 16] NewFunction dst:reg6, shared_function_data_index:0
- [ 1e] ThrowIfTDZ src:value~1
- [ 20] Typeof dst:reg7, src:value~1
- [ 23] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg5, this_value:arg0, arguments:[reg6, reg7]
- [ 2e] Mov dst:value~1, src:i~0
- [ 31] AddRhsInt32 arith_feedback:0, dst:plain~2, lhs:value~1, rhs:1
- [ 3a] GetByValue value_feedback:2, keyed_feedback:1, dst:reg5, base:arg0, property:i~0
- [ 44] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg5, this_value:arg0, arguments:[plain~2]
- [ 4e] Increment arith_feedback:1, dst:i~0
+ [ 1d] ThrowIfTDZ src:value~1
+ [ 1f] Typeof dst:reg7, src:value~1
+ [ 22] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg5, this_value:arg0, arguments:[reg6, reg7]
+ [ 2d] Mov dst:value~1, src:i~0
+ [ 30] AddRhsInt32 arith_feedback:0, dst:plain~2, lhs:value~1, rhs:1
+ [ 39] GetByValue value_feedback:2, keyed_feedback:1, dst:reg5, base:arg0, property:i~0
+ [ 43] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg5, this_value:arg0, arguments:[plain~2]
+ [ 4d] Increment arith_feedback:1, dst:i~0
block2:
- [ 52] GetLength value_feedback:4, keyed_feedback:2, dst:reg5, base:arg0
- [ 5b] JumpLessThanLoop arith_feedback:2, lhs:i~0, rhs:reg5, true_target:block1, false_target:block3
+ [ 51] GetLength value_feedback:4, keyed_feedback:2, dst:reg5, base:arg0
+ [ 5a] JumpLessThanLoop arith_feedback:2, lhs:i~0, rhs:reg5, true_target:block1, false_target:block3
block3:
- [ 68] End value:Undefined
+ [ 67] End value:Undefined
-nested$13eb2c16 tdz-reset-in-loop.js:14:5
+nested$64176b27 tdz-reset-in-loop.js:14:5
Registers: 12
Blocks: 8
Locals: value~0, item~1
@@ -90,11 +90,11 @@ block5:
block6:
[ 53] GetById value_feedback:3, dst:reg5, base:arg0, `pop`
- [ 5d] Call value_feedback:4, call_feedback:1, dst:value~0, callee:reg5, this_value:arg0
- [ 66] JumpLoop target:block1
+ [ 5c] Call value_feedback:4, call_feedback:1, dst:value~0, callee:reg5, this_value:arg0
+ [ 65] JumpLoop target:block1
block7:
- [ 6b] End value:Undefined
+ [ 6a] End value:Undefined
Exception handlers:
[ 2e .. 45] => handler block5
diff --git a/Tests/LibJS/Bytecode/expected/this-base-identifier.txt b/Tests/LibJS/Bytecode/expected/this-base-identifier.txt
index 990627dbcea..a13900a7a6b 100644
--- a/Tests/LibJS/Bytecode/expected/this-base-identifier.txt
+++ b/Tests/LibJS/Bytecode/expected/this-base-identifier.txt
@@ -1,4 +1,4 @@
-$b5563374 this-base-identifier.js:16:1
+$436f7db9 this-base-identifier.js:16:1
Registers: 7
Blocks: 4
Constants:
@@ -8,39 +8,39 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `get_from_this`
- [ d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 16] GetGlobal value_feedback:2, dst:reg6, `set_on_this`
- [ 1f] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined
- [ 28] Mov dst:reg5, src:Undefined
+ [ c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 15] GetGlobal value_feedback:2, dst:reg6, `set_on_this`
+ [ 1d] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined
+ [ 26] Mov dst:reg5, src:Undefined
block1:
- [ 2b] GetGlobal value_feedback:4, dst:reg6, `chained_this_access`
- [ 34] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg6, this_value:Undefined
- [ 3d] Jump target:block3
+ [ 29] GetGlobal value_feedback:4, dst:reg6, `chained_this_access`
+ [ 31] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg6, this_value:Undefined
+ [ 3a] Jump target:block3
block2:
- [ 42] Catch value_feedback:6, dst:reg6
- [ 46] Mov dst:reg5, src:Undefined
- [ 49] Jump target:block3
+ [ 3f] Catch value_feedback:6, dst:reg6
+ [ 43] Mov dst:reg5, src:Undefined
+ [ 46] Jump target:block3
block3:
- [ 4e] End value:reg5
+ [ 4b] End value:reg5
Exception handlers:
- [ 2b .. 42] => handler block2
+ [ 29 .. 3f] => handler block2
-get_from_this$715a00c6 this-base-identifier.js:5:5
+get_from_this$c1863fd7 this-base-identifier.js:5:5
Registers: 6
Blocks: 1
block0:
[ 0] Enter
[ 1] GetById value_feedback:0, dst:reg5, base:this, `foo`
- [ b] Return value:reg5
+ [ a] Return value:reg5
-set_on_this$53419dc3 this-base-identifier.js:9:14
+set_on_this$a36ddcd4 this-base-identifier.js:9:14
Registers: 5
Blocks: 1
Constants:
@@ -50,15 +50,15 @@ set_on_this$53419dc3 this-base-identifier.js:9:14
block0:
[ 0] Enter
[ 1] PutById base:this, `bar`, src:Int32(1), kind:Normal
- [ a] End value:Undefined
+ [ 9] End value:Undefined
-chained_this_access$0e40cee4 this-base-identifier.js:13:5
+chained_this_access$ae994d06 this-base-identifier.js:13:5
Registers: 6
Blocks: 1
block0:
[ 0] Enter
[ 1] GetById value_feedback:0, dst:reg5, base:this, `a`
- [ b] GetById value_feedback:1, dst:reg5, base:reg5, `b`
- [ 15] Return value:reg5
+ [ a] GetById value_feedback:1, dst:reg5, base:reg5, `b`
+ [ 13] Return value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/try-catch-scoping.txt b/Tests/LibJS/Bytecode/expected/try-catch-scoping.txt
index 714de171912..01351fef76e 100644
--- a/Tests/LibJS/Bytecode/expected/try-catch-scoping.txt
+++ b/Tests/LibJS/Bytecode/expected/try-catch-scoping.txt
@@ -1,4 +1,4 @@
-$935b1f05 try-catch-scoping.js:11:1
+$33b39d27 try-catch-scoping.js:11:1
Registers: 7
Blocks: 1
Constants:
@@ -8,13 +8,13 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `tryCatchWithBlocks`
- [ d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 16] GetGlobal value_feedback:2, dst:reg6, `tryCatchFinallyWithBlocks`
- [ 1f] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined
- [ 28] End value:reg5
+ [ c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 15] GetGlobal value_feedback:2, dst:reg6, `tryCatchFinallyWithBlocks`
+ [ 1d] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined
+ [ 26] End value:reg5
-tryCatchWithBlocks$414c69c2 try-catch-scoping.js:2:9
+tryCatchWithBlocks$a0f3eba0 try-catch-scoping.js:2:9
Registers: 9
Blocks: 4
Locals: x~0, y~1, e~2, z~3
@@ -39,20 +39,20 @@ block2:
[ 10] Mov dst:e~2, src:reg5
[ 13] Mov dst:z~3, src:Int32(3)
[ 16] GetGlobal value_feedback:1, dst:reg6, `console`
- [ 1f] GetById value_feedback:2, dst:reg7, base:reg6, `log`
- [ 29] Add arith_feedback:0, dst:reg8, lhs:x~0, rhs:e~2
- [ 2f] Add arith_feedback:1, dst:reg8, lhs:reg8, rhs:z~3
- [ 35] Call value_feedback:3, call_feedback:0, dst:reg6, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 3f] Jump target:block3
+ [ 1e] GetById value_feedback:2, dst:reg7, base:reg6, `log`
+ [ 27] Add arith_feedback:0, dst:reg8, lhs:x~0, rhs:e~2
+ [ 2d] Add arith_feedback:1, dst:reg8, lhs:reg8, rhs:z~3
+ [ 33] Call value_feedback:3, call_feedback:0, dst:reg6, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 3d] Jump target:block3
block3:
- [ 44] End value:Undefined
+ [ 42] End value:Undefined
Exception handlers:
[ 4 .. 9] => handler block2
-tryCatchFinallyWithBlocks$3a2d6f42 try-catch-scoping.js:14:9
+tryCatchFinallyWithBlocks$ff04551e try-catch-scoping.js:14:9
Registers: 10
Blocks: 7
Locals: x~0, y~1, e~2, z~3
@@ -77,31 +77,31 @@ block2:
[ d] Mov dst:e~2, src:<Empty>
[ 10] Mov dst:e~2, src:reg7
[ 13] GetGlobal value_feedback:1, dst:reg8, `console`
- [ 1c] GetById value_feedback:2, dst:reg9, base:reg8, `log`
- [ 26] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg9, this_value:reg8, arguments:[e~2]
- [ 30] Mov dst:reg5, src:Int32(0)
- [ 33] Jump target:block4
+ [ 1b] GetById value_feedback:2, dst:reg9, base:reg8, `log`
+ [ 24] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg9, this_value:reg8, arguments:[e~2]
+ [ 2e] Mov dst:reg5, src:Int32(0)
+ [ 31] Jump target:block4
block3:
- [ 38] Catch value_feedback:4, dst:reg6
- [ 3c] Mov dst:reg5, src:Int32(1)
+ [ 36] Catch value_feedback:4, dst:reg6
+ [ 3a] Mov dst:reg5, src:Int32(1)
block4:
- [ 3f] Mov dst:z~3, src:Int32(3)
- [ 42] GetGlobal value_feedback:5, dst:reg7, `console`
- [ 4b] GetById value_feedback:6, dst:reg8, base:reg7, `log`
- [ 55] Call value_feedback:7, call_feedback:1, dst:reg7, callee:reg8, this_value:reg7, arguments:[z~3]
- [ 5f] JumpStrictlyEqualsRhsInt32 arith_feedback:0, lhs:reg5, rhs:0, true_target:block6, false_target:block5
+ [ 3d] Mov dst:z~3, src:Int32(3)
+ [ 40] GetGlobal value_feedback:5, dst:reg7, `console`
+ [ 48] GetById value_feedback:6, dst:reg8, base:reg7, `log`
+ [ 51] Call value_feedback:7, call_feedback:1, dst:reg7, callee:reg8, this_value:reg7, arguments:[z~3]
+ [ 5b] JumpStrictlyEqualsRhsInt32 arith_feedback:0, lhs:reg5, rhs:0, true_target:block6, false_target:block5
block5:
- [ 6f] Throw src:reg6
+ [ 6b] Throw src:reg6
block6:
- [ 71] End value:Undefined
+ [ 6d] End value:Undefined
Exception handlers:
[ 4 .. 9] => handler block2
- [ 9 .. 38] => handler block3
+ [ 9 .. 36] => handler block3
6
diff --git a/Tests/LibJS/Bytecode/expected/try-catch-terminated.txt b/Tests/LibJS/Bytecode/expected/try-catch-terminated.txt
index 84425556452..826b20e8cf7 100644
--- a/Tests/LibJS/Bytecode/expected/try-catch-terminated.txt
+++ b/Tests/LibJS/Bytecode/expected/try-catch-terminated.txt
@@ -1,4 +1,4 @@
-$4ee6dac0 try-catch-terminated.js:12:1
+$017e8cbf try-catch-terminated.js:12:1
Registers: 7
Blocks: 1
Constants:
@@ -8,8 +8,8 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `try_return`
- [ d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 16] End value:reg5
+ [ c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 15] End value:reg5
try_return$c36201e8 try-catch-terminated.js:5:5
diff --git a/Tests/LibJS/Bytecode/expected/try-finally-continue.txt b/Tests/LibJS/Bytecode/expected/try-finally-continue.txt
index e0d5e22dc94..33c69ac7a2a 100644
--- a/Tests/LibJS/Bytecode/expected/try-finally-continue.txt
+++ b/Tests/LibJS/Bytecode/expected/try-finally-continue.txt
@@ -1,4 +1,4 @@
-$f56c2c8d try-finally-continue.js:13:1
+$0c16def7 try-finally-continue.js:13:1
Registers: 9
Blocks: 1
Constants:
@@ -8,16 +8,16 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `console`
- [ d] GetById value_feedback:1, dst:reg7, base:reg6, `log`
- [ 17] GetGlobal value_feedback:2, dst:reg8, `continueThroughFinally`
- [ 20] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined
- [ 29] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 33] GetGlobal value_feedback:5, dst:reg6, `console`
- [ 3c] GetById value_feedback:6, dst:reg7, base:reg6, `log`
- [ 46] GetGlobal value_feedback:7, dst:reg8, `breakThroughFinally`
- [ 4f] Call value_feedback:8, call_feedback:2, dst:reg8, callee:reg8, this_value:Undefined
- [ 58] Call value_feedback:9, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 62] End value:reg5
+ [ c] GetById value_feedback:1, dst:reg7, base:reg6, `log`
+ [ 15] GetGlobal value_feedback:2, dst:reg8, `continueThroughFinally`
+ [ 1d] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined
+ [ 26] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 30] GetGlobal value_feedback:5, dst:reg6, `console`
+ [ 38] GetById value_feedback:6, dst:reg7, base:reg6, `log`
+ [ 41] GetGlobal value_feedback:7, dst:reg8, `breakThroughFinally`
+ [ 49] Call value_feedback:8, call_feedback:2, dst:reg8, callee:reg8, this_value:Undefined
+ [ 52] Call value_feedback:9, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 5c] End value:reg5
continueThroughFinally$90d010ea try-finally-continue.js:2:9
diff --git a/Tests/LibJS/Bytecode/expected/try-finally.txt b/Tests/LibJS/Bytecode/expected/try-finally.txt
index cf37adc62f6..2449e9e64f3 100644
--- a/Tests/LibJS/Bytecode/expected/try-finally.txt
+++ b/Tests/LibJS/Bytecode/expected/try-finally.txt
@@ -1,4 +1,4 @@
-$61ef8160 try-finally.js:8:1
+$f2ccbcb5 try-finally.js:8:1
Registers: 7
Blocks: 1
Constants:
@@ -8,15 +8,15 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `basicTryFinally`
- [ d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 16] GetGlobal value_feedback:2, dst:reg6, `breakThroughFinally`
- [ 1f] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined
- [ 28] GetGlobal value_feedback:4, dst:reg6, `nestedTryFinallyWithBreak`
- [ 31] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg6, this_value:Undefined
- [ 3a] End value:reg5
+ [ c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 15] GetGlobal value_feedback:2, dst:reg6, `breakThroughFinally`
+ [ 1d] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined
+ [ 26] GetGlobal value_feedback:4, dst:reg6, `nestedTryFinallyWithBreak`
+ [ 2e] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg6, this_value:Undefined
+ [ 37] End value:reg5
-basicTryFinally$1afc45a4 try-finally.js:2:9
+basicTryFinally$bb54c3c6 try-finally.js:2:9
Registers: 9
Blocks: 8
Constants:
@@ -39,27 +39,27 @@ block2:
block3:
[ 13] GetGlobal value_feedback:1, dst:reg7, `console`
- [ 1c] GetById value_feedback:2, dst:reg8, base:reg7, `log`
- [ 26] Call value_feedback:3, call_feedback:0, dst:reg7, callee:reg8, this_value:reg7, arguments:[String("finally")]
- [ 30] JumpStrictlyEqualsRhsInt32 arith_feedback:0, lhs:reg5, rhs:0, true_target:block7, false_target:block4
+ [ 1b] GetById value_feedback:2, dst:reg8, base:reg7, `log`
+ [ 24] Call value_feedback:3, call_feedback:0, dst:reg7, callee:reg8, this_value:reg7, arguments:[String("finally")]
+ [ 2e] JumpStrictlyEqualsRhsInt32 arith_feedback:0, lhs:reg5, rhs:0, true_target:block7, false_target:block4
block4:
- [ 40] JumpStrictlyEqualsRhsInt32 arith_feedback:1, lhs:reg5, rhs:2, true_target:block5, false_target:block6
+ [ 3e] JumpStrictlyEqualsRhsInt32 arith_feedback:1, lhs:reg5, rhs:2, true_target:block5, false_target:block6
block5:
- [ 50] Return value:reg6
+ [ 4e] Return value:reg6
block6:
- [ 52] Throw src:reg6
+ [ 50] Throw src:reg6
block7:
- [ 54] End value:Undefined
+ [ 52] End value:Undefined
Exception handlers:
[ 1 .. c] => handler block2
-breakThroughFinally$7f7e3283 try-finally.js:11:10
+breakThroughFinally$df25b461 try-finally.js:11:10
Registers: 9
Blocks: 12
Locals: i~0
@@ -91,33 +91,33 @@ block4:
block5:
[ 30] GetGlobal value_feedback:1, dst:reg7, `console`
- [ 39] GetById value_feedback:2, dst:reg8, base:reg7, `log`
- [ 43] Call value_feedback:3, call_feedback:0, dst:reg7, callee:reg8, this_value:reg7, arguments:[i~0]
- [ 4d] JumpStrictlyEqualsRhsInt32 arith_feedback:1, lhs:reg5, rhs:0, true_target:block9, false_target:block6
+ [ 38] GetById value_feedback:2, dst:reg8, base:reg7, `log`
+ [ 41] Call value_feedback:3, call_feedback:0, dst:reg7, callee:reg8, this_value:reg7, arguments:[i~0]
+ [ 4b] JumpStrictlyEqualsRhsInt32 arith_feedback:1, lhs:reg5, rhs:0, true_target:block9, false_target:block6
block6:
- [ 5d] JumpStrictlyEqualsRhsInt32 arith_feedback:2, lhs:reg5, rhs:2, true_target:block7, false_target:block8
+ [ 5b] JumpStrictlyEqualsRhsInt32 arith_feedback:2, lhs:reg5, rhs:2, true_target:block7, false_target:block8
block7:
- [ 6d] Jump target:block11
+ [ 6b] Jump target:block11
block8:
- [ 72] Throw src:reg6
+ [ 70] Throw src:reg6
block9:
- [ 74] Increment arith_feedback:3, dst:i~0
+ [ 72] Increment arith_feedback:3, dst:i~0
block10:
- [ 78] JumpLessThanLoopRhsInt32 arith_feedback:4, lhs:i~0, rhs:10, true_target:block1, false_target:block11
+ [ 76] JumpLessThanLoopRhsInt32 arith_feedback:4, lhs:i~0, rhs:10, true_target:block1, false_target:block11
block11:
- [ 88] End value:Undefined
+ [ 86] End value:Undefined
Exception handlers:
[ 9 .. 29] => handler block4
-nestedTryFinallyWithBreak$471ebf30 try-finally.js:22:21
+nestedTryFinallyWithBreak$0931b3fc try-finally.js:22:21
Registers: 11
Blocks: 15
Locals: i~0
@@ -143,53 +143,53 @@ block2:
block3:
[ 13] GetGlobal value_feedback:1, dst:reg9, `console`
- [ 1c] GetById value_feedback:2, dst:reg10, base:reg9, `log`
- [ 26] Call value_feedback:3, call_feedback:0, dst:reg9, callee:reg10, this_value:reg9, arguments:[String("inner")]
- [ 30] JumpStrictlyEqualsRhsInt32 arith_feedback:0, lhs:reg7, rhs:0, true_target:block7, false_target:block4
+ [ 1b] GetById value_feedback:2, dst:reg10, base:reg9, `log`
+ [ 24] Call value_feedback:3, call_feedback:0, dst:reg9, callee:reg10, this_value:reg9, arguments:[String("inner")]
+ [ 2e] JumpStrictlyEqualsRhsInt32 arith_feedback:0, lhs:reg7, rhs:0, true_target:block7, false_target:block4
block4:
- [ 40] JumpStrictlyEqualsRhsInt32 arith_feedback:1, lhs:reg7, rhs:2, true_target:block5, false_target:block6
+ [ 3e] JumpStrictlyEqualsRhsInt32 arith_feedback:1, lhs:reg7, rhs:2, true_target:block5, false_target:block6
block5:
- [ 50] Mov dst:reg5, src:Int32(2)
- [ 53] Jump target:block9
+ [ 4e] Mov dst:reg5, src:Int32(2)
+ [ 51] Jump target:block9
block6:
- [ 58] Throw src:reg8
+ [ 56] Throw src:reg8
block7:
- [ 5a] Mov dst:reg5, src:Int32(0)
- [ 5d] Jump target:block9
+ [ 58] Mov dst:reg5, src:Int32(0)
+ [ 5b] Jump target:block9
block8:
- [ 62] Catch value_feedback:4, dst:reg6
- [ 66] Mov dst:reg5, src:Int32(1)
+ [ 60] Catch value_feedback:4, dst:reg6
+ [ 64] Mov dst:reg5, src:Int32(1)
block9:
- [ 69] GetGlobal value_feedback:5, dst:reg7, `console`
- [ 72] GetById value_feedback:6, dst:reg8, base:reg7, `log`
- [ 7c] Call value_feedback:7, call_feedback:1, dst:reg7, callee:reg8, this_value:reg7, arguments:[String("outer")]
- [ 86] JumpStrictlyEqualsRhsInt32 arith_feedback:2, lhs:reg5, rhs:0, true_target:block13, false_target:block10
+ [ 67] GetGlobal value_feedback:5, dst:reg7, `console`
+ [ 6f] GetById value_feedback:6, dst:reg8, base:reg7, `log`
+ [ 78] Call value_feedback:7, call_feedback:1, dst:reg7, callee:reg8, this_value:reg7, arguments:[String("outer")]
+ [ 82] JumpStrictlyEqualsRhsInt32 arith_feedback:2, lhs:reg5, rhs:0, true_target:block13, false_target:block10
block10:
- [ 96] JumpStrictlyEqualsRhsInt32 arith_feedback:3, lhs:reg5, rhs:2, true_target:block11, false_target:block12
+ [ 92] JumpStrictlyEqualsRhsInt32 arith_feedback:3, lhs:reg5, rhs:2, true_target:block11, false_target:block12
block11:
- [ a6] Jump target:block14
+ [ a2] Jump target:block14
block12:
- [ ab] Throw src:reg6
+ [ a7] Throw src:reg6
block13:
- [ ad] Increment arith_feedback:4, dst:i~0
- [ b1] JumpLoop target:block1
+ [ a9] Increment arith_feedback:4, dst:i~0
+ [ ad] JumpLoop target:block1
block14:
- [ b6] End value:Undefined
+ [ b2] End value:Undefined
Exception handlers:
[ 4 .. c] => handler block2
- [ c .. 62] => handler block8
+ [ c .. 60] => handler block8
"finally"
diff --git a/Tests/LibJS/Bytecode/expected/update-member-expression.txt b/Tests/LibJS/Bytecode/expected/update-member-expression.txt
index e4e5ee9994d..0ae75346a96 100644
--- a/Tests/LibJS/Bytecode/expected/update-member-expression.txt
+++ b/Tests/LibJS/Bytecode/expected/update-member-expression.txt
@@ -1,4 +1,4 @@
-$fdb7ffbd update-member-expression.js:13:1
+$5d5f819b update-member-expression.js:13:1
Registers: 8
Blocks: 1
Constants:
@@ -8,15 +8,15 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `postfix_increment`
- [ d] NewObject dst:reg7
- [ 11] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
- [ 1b] GetGlobal value_feedback:2, dst:reg6, `prefix_decrement`
- [ 24] NewObject dst:reg7
- [ 28] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
- [ 32] End value:reg5
+ [ c] NewObject dst:reg7
+ [ 10] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
+ [ 1a] GetGlobal value_feedback:2, dst:reg6, `prefix_decrement`
+ [ 22] NewObject dst:reg7
+ [ 26] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
+ [ 30] End value:reg5
-postfix_increment$c66fe867 update-member-expression.js:6:14
+postfix_increment$26176a45 update-member-expression.js:6:14
Registers: 7
Blocks: 1
Constants:
@@ -25,12 +25,12 @@ postfix_increment$c66fe867 update-member-expression.js:6:14
block0:
[ 0] Enter
[ 1] GetById value_feedback:0, dst:reg5, base:arg0, `count`
- [ b] PostfixIncrement arith_feedback:0, dst:reg6, src:reg5
- [ 10] PutById base:arg0, `count`, src:reg5, kind:Normal
- [ 19] End value:Undefined
+ [ a] PostfixIncrement arith_feedback:0, dst:reg6, src:reg5
+ [ f] PutById base:arg0, `count`, src:reg5, kind:Normal
+ [ 17] End value:Undefined
-prefix_decrement$49ba99a0 update-member-expression.js:10:5
+prefix_decrement$ea1317c2 update-member-expression.js:10:5
Registers: 6
Blocks: 1
Constants:
@@ -39,6 +39,6 @@ prefix_decrement$49ba99a0 update-member-expression.js:10:5
block0:
[ 0] Enter
[ 1] GetById value_feedback:0, dst:reg5, base:arg0, `count`
- [ b] Decrement arith_feedback:0, dst:reg5
- [ f] PutById base:arg0, `count`, src:reg5, kind:Normal
- [ 18] End value:Undefined
+ [ a] Decrement arith_feedback:0, dst:reg5
+ [ e] PutById base:arg0, `count`, src:reg5, kind:Normal
+ [ 16] 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 4353f64b08b..72fc7142ee2 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 @@
-$1ea903a4 using-declaration-non-local-env.js:1:1
+$6ed542b5 using-declaration-non-local-env.js:1:1
Registers: 7
Blocks: 4
Locals: e~0
@@ -13,24 +13,24 @@ block0:
block1:
[ 7] NewFunction dst:reg6, shared_function_data_index:0
- [ f] Call value_feedback:0, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 18] Jump target:block3
+ [ e] Call value_feedback:0, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 17] Jump target:block3
block2:
- [ 1d] Catch value_feedback:1, dst:reg6
- [ 21] Mov dst:reg5, src:Undefined
- [ 24] Mov dst:e~0, src:<Empty>
- [ 27] Mov dst:e~0, src:reg6
- [ 2a] Jump target:block3
+ [ 1c] Catch value_feedback:1, dst:reg6
+ [ 20] Mov dst:reg5, src:Undefined
+ [ 23] Mov dst:e~0, src:<Empty>
+ [ 26] Mov dst:e~0, src:reg6
+ [ 29] Jump target:block3
block3:
- [ 2f] End value:reg5
+ [ 2e] End value:reg5
Exception handlers:
- [ 7 .. 1d] => handler block2
+ [ 7 .. 1c] => handler block2
-$8ee3a0df using-declaration-non-local-env.js:1:19
+$7ca46d02 using-declaration-non-local-env.js:1:19
Registers: 10
Blocks: 6
Constants:
@@ -43,32 +43,32 @@ block0:
[ 1] GetLexicalEnvironment dst:reg4
[ 3] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false
[ f] CreateVariable `x`, is_immutable:true, is_global:false, is_strict:true
- [ 17] NewDisposableResourceStack dst:reg6
+ [ 16] NewDisposableResourceStack dst:reg6
block1:
- [ 19] NewObject dst:reg9
- [ 1d] AddDisposableResource stack:reg6, value:reg9, hint:0
- [ 24] InitializeLexicalBinding `x`, src:reg9
- [ 2c] NewFunction dst:reg9, shared_function_data_index:0
- [ 34] Call value_feedback:0, call_feedback:0, dst:reg9, callee:reg9, this_value:Undefined
- [ 3d] Mov dst:reg7, src:Int32(0)
- [ 40] Jump target:block3
+ [ 18] NewObject dst:reg9
+ [ 1c] AddDisposableResource stack:reg6, value:reg9, hint:0
+ [ 23] InitializeLexicalBinding `x`, src:reg9
+ [ 2a] NewFunction dst:reg9, shared_function_data_index:0
+ [ 31] Call value_feedback:0, call_feedback:0, dst:reg9, callee:reg9, this_value:Undefined
+ [ 3a] Mov dst:reg7, src:Int32(0)
+ [ 3d] Jump target:block3
block2:
- [ 45] Catch value_feedback:1, dst:reg8
- [ 49] SetLexicalEnvironment environment:reg5
- [ 4b] Mov dst:reg7, src:Int32(1)
+ [ 42] Catch value_feedback:1, dst:reg8
+ [ 46] SetLexicalEnvironment environment:reg5
+ [ 48] Mov dst:reg7, src:Int32(1)
block3:
- [ 4e] DisposeResources stack:reg6, completion_type:reg7, completion_value:reg8
- [ 52] JumpStrictlyEqualsRhsInt32 arith_feedback:0, lhs:reg7, rhs:0, true_target:block5, false_target:block4
+ [ 4b] DisposeResources stack:reg6, completion_type:reg7, completion_value:reg8
+ [ 4f] JumpStrictlyEqualsRhsInt32 arith_feedback:0, lhs:reg7, rhs:0, true_target:block5, false_target:block4
block4:
- [ 62] Throw src:reg8
+ [ 5f] Throw src:reg8
block5:
- [ 64] SetLexicalEnvironment environment:reg4
- [ 66] End value:Undefined
+ [ 61] SetLexicalEnvironment environment:reg4
+ [ 63] End value:Undefined
Exception handlers:
- [ 19 .. 45] => handler block2
+ [ 18 .. 42] => handler block2
diff --git a/Tests/LibJS/Bytecode/expected/var-binding-access.txt b/Tests/LibJS/Bytecode/expected/var-binding-access.txt
index af6a89f14bb..f5a0a61562e 100644
--- a/Tests/LibJS/Bytecode/expected/var-binding-access.txt
+++ b/Tests/LibJS/Bytecode/expected/var-binding-access.txt
@@ -1,4 +1,4 @@
-$f20abe88 var-binding-access.js:22:1
+$92633caa var-binding-access.js:22:1
Registers: 7
Blocks: 1
Constants:
@@ -8,13 +8,13 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `var_access`
- [ d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 16] GetGlobal value_feedback:2, dst:reg6, `let_access`
- [ 1f] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined
- [ 28] End value:reg5
+ [ c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 15] GetGlobal value_feedback:2, dst:reg6, `let_access`
+ [ 1d] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined
+ [ 26] End value:reg5
-var_access$178510f2 var-binding-access.js:5:9
+var_access$a8624c47 var-binding-access.js:5:9
Registers: 6
Blocks: 1
Constants:
@@ -24,14 +24,14 @@ var_access$178510f2 var-binding-access.js:5:9
block0:
[ 0] Enter
[ 1] CreateVariable `x`, is_immutable:false, is_global:false, is_strict:false
- [ 9] InitializeVariableBinding `x`, src:Undefined
- [ 11] SetLexicalBinding `x`, src:Int32(1)
- [ 19] NewFunction dst:reg5, shared_function_data_index:0
- [ 21] GetInitializedBinding value_feedback:0, dst:reg5, `x`
- [ 2b] Return value:reg5
+ [ 8] InitializeVariableBinding `x`, src:Undefined
+ [ f] SetLexicalBinding `x`, src:Int32(1)
+ [ 16] NewFunction dst:reg5, shared_function_data_index:0
+ [ 1d] GetInitializedBinding value_feedback:0, dst:reg5, `x`
+ [ 26] Return value:reg5
-let_access$c1a3afa9 var-binding-access.js:14:9
+let_access$0254abed var-binding-access.js:14:9
Registers: 6
Blocks: 1
Constants:
@@ -40,7 +40,7 @@ let_access$c1a3afa9 var-binding-access.js:14:9
block0:
[ 0] Enter
[ 1] CreateVariable `x`, is_immutable:false, is_global:false, is_strict:false
- [ 9] InitializeLexicalBinding `x`, src:Int32(1)
- [ 11] NewFunction dst:reg5, shared_function_data_index:0
- [ 19] GetBinding value_feedback:0, dst:reg5, `x`
- [ 23] Return value:reg5
+ [ 8] InitializeLexicalBinding `x`, src:Int32(1)
+ [ f] NewFunction dst:reg5, shared_function_data_index:0
+ [ 16] GetBinding value_feedback:0, dst:reg5, `x`
+ [ 1f] 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 07364d35f33..b803322a2aa 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 @@
-$9c7d9859 var-env-capacity-with-param-expressions.js:5:1
+$abf8db26 var-env-capacity-with-param-expressions.js:5:1
Registers: 7
Blocks: 1
Constants:
@@ -8,11 +8,11 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `f`
- [ d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 16] End value:reg5
+ [ c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 15] End value:reg5
-f$f7be441c var-env-capacity-with-param-expressions.js:1:12
+f$66e108c7 var-env-capacity-with-param-expressions.js:1:12
Registers: 10
Blocks: 3
Constants:
@@ -25,26 +25,26 @@ block0:
[ 1] GetLexicalEnvironment dst:reg4
[ 3] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false
[ f] CreateVariable `x`, is_immutable:false, is_global:false, is_strict:false
- [ 17] CreateArguments is_immutable:false, creates_parameter_bindings:false
- [ 1c] JumpUndefined condition:arg0, true_target:block1, false_target:block2
+ [ 16] CreateArguments is_immutable:false, creates_parameter_bindings:false
+ [ 1b] JumpUndefined condition:arg0, true_target:block1, false_target:block2
block1:
- [ 26] Mov dst:arg0, src:Int32(1)
+ [ 25] Mov dst:arg0, src:Int32(1)
block2:
- [ 29] InitializeLexicalBinding `x`, src:arg0
- [ 31] CreateVariableEnvironment capacity:3
- [ 36] GetLexicalEnvironment dst:reg6
- [ 38] CreateLexicalEnvironment dst:reg7, parent:reg6, capacity:3, is_catch_environment:false
- [ 44] CreateVariable `a`, is_immutable:false, is_global:false, is_strict:false
- [ 4c] InitializeVariableBinding `a`, src:Undefined
- [ 54] CreateVariable `b`, is_immutable:false, is_global:false, is_strict:false
- [ 5c] InitializeVariableBinding `b`, src:Undefined
- [ 64] CreateVariable `c`, is_immutable:false, is_global:false, is_strict:false
- [ 6c] InitializeVariableBinding `c`, src:Undefined
- [ 74] DynamicGetCalleeAndThisFromEnvironment value_feedback:0, callee:reg8, this_value:reg9, `eval`
- [ 7e] CallDirectEval value_feedback:1, call_feedback:0, dst:reg8, callee:reg8, this_value:reg9, arguments:[String("")]
- [ 88] End value:Undefined
+ [ 28] InitializeLexicalBinding `x`, src:arg0
+ [ 2f] CreateVariableEnvironment capacity:3
+ [ 34] GetLexicalEnvironment dst:reg6
+ [ 36] CreateLexicalEnvironment dst:reg7, parent:reg6, capacity:3, is_catch_environment:false
+ [ 42] CreateVariable `a`, is_immutable:false, is_global:false, is_strict:false
+ [ 49] InitializeVariableBinding `a`, src:Undefined
+ [ 50] CreateVariable `b`, is_immutable:false, is_global:false, is_strict:false
+ [ 57] InitializeVariableBinding `b`, src:Undefined
+ [ 5e] CreateVariable `c`, is_immutable:false, is_global:false, is_strict:false
+ [ 65] InitializeVariableBinding `c`, src:Undefined
+ [ 6c] DynamicGetCalleeAndThisFromEnvironment value_feedback:0, callee:reg8, this_value:reg9, `eval`
+ [ 75] CallDirectEval value_feedback:1, call_feedback:0, dst:reg8, callee:reg8, this_value:reg9, arguments:[String("")]
+ [ 7f] End value:Undefined
eval$d8dbb89d
diff --git a/Tests/LibJS/Bytecode/expected/var-hoisting-tdz.txt b/Tests/LibJS/Bytecode/expected/var-hoisting-tdz.txt
index 7485a646e72..5f6d5521e46 100644
--- a/Tests/LibJS/Bytecode/expected/var-hoisting-tdz.txt
+++ b/Tests/LibJS/Bytecode/expected/var-hoisting-tdz.txt
@@ -1,4 +1,4 @@
-$844ee995 var-hoisting-tdz.js:9:1
+$152c24ea var-hoisting-tdz.js:9:1
Registers: 7
Blocks: 1
Constants:
@@ -8,8 +8,8 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `isect`
- [ d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 16] End value:reg5
+ [ c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 15] End value:reg5
isect$c4a436d2 var-hoisting-tdz.js:5:12
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 083f0cf8275..92470ad15bf 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 @@
-$b5474a48 var-init-in-param-body-scope.js:4:1
+$651b0b37 var-init-in-param-body-scope.js:4:1
Registers: 7
Blocks: 1
Constants:
@@ -8,8 +8,8 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `f`
- [ d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 16] End value:reg5
+ [ c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 15] End value:reg5
f$4906e6c0 var-init-in-param-body-scope.js:1:12
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 24430520c40..9e736d25e42 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 @@
-$ed159fc6 var-shadow-in-default-param.js:7:5
+$e05e4e09 var-shadow-in-default-param.js:7:5
Registers: 7
Blocks: 1
Constants:
@@ -9,14 +9,14 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] SetGlobal `shadow`, src:String("outer")
- [ b] GetGlobal value_feedback:0, dst:reg6, `shadow_in_default`
- [ 14] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 1d] GetGlobal value_feedback:2, dst:reg6, `no_conflict`
- [ 26] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined
- [ 2f] End value:reg5
+ [ a] GetGlobal value_feedback:0, dst:reg6, `shadow_in_default`
+ [ 12] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 1b] GetGlobal value_feedback:2, dst:reg6, `no_conflict`
+ [ 23] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined
+ [ 2c] End value:reg5
-shadow_in_default$8378f6a7 var-shadow-in-default-param.js:8:28
+shadow_in_default$52433d30 var-shadow-in-default-param.js:8:28
Registers: 6
Blocks: 3
Locals: shadow~0
@@ -32,9 +32,9 @@ block1:
[ b] GetGlobal value_feedback:0, dst:arg0, `shadow`
block2:
- [ 14] Mov dst:shadow~0, src:Undefined
- [ 17] Mov dst:shadow~0, src:String("inner")
- [ 1a] Return value:arg0
+ [ 13] Mov dst:shadow~0, src:Undefined
+ [ 16] Mov dst:shadow~0, src:String("inner")
+ [ 19] Return value:arg0
no_conflict$06d4a8e2 var-shadow-in-default-param.js:15:22
diff --git a/Tests/LibJS/Bytecode/expected/with-return.txt b/Tests/LibJS/Bytecode/expected/with-return.txt
index cbb9558f1e4..18e808f1a88 100644
--- a/Tests/LibJS/Bytecode/expected/with-return.txt
+++ b/Tests/LibJS/Bytecode/expected/with-return.txt
@@ -1,4 +1,4 @@
-$fc511005 with-return.js:10:1
+$9ca98e27 with-return.js:10:1
Registers: 8
Blocks: 1
Constants:
@@ -9,14 +9,14 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `with_return`
- [ d] NewObject dst:reg7
- [ 11] InitObjectLiteralProperty object:reg7, `x`, src:Int32(42), shape_cache_index:0, property_slot:0
- [ 1b] CacheObjectShape object:reg7
- [ 1f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
- [ 29] End value:reg5
+ [ c] NewObject dst:reg7
+ [ 10] InitObjectLiteralProperty object:reg7, `x`, src:Int32(42), shape_cache_index:0, property_slot:0
+ [ 19] CacheObjectShape object:reg7
+ [ 1d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
+ [ 27] End value:reg5
-with_return$8eb08379 with-return.js:5:5
+with_return$3e844468 with-return.js:5:5
Registers: 7
Blocks: 1
@@ -25,5 +25,5 @@ block0:
[ 1] GetLexicalEnvironment dst:reg4
[ 3] EnterObjectEnvironment dst:reg5, object:arg0
[ 6] DynamicGetBinding value_feedback:0, dst:reg6, `x`
- [ f] SetLexicalEnvironment environment:reg4
- [ 11] Return value:reg6
+ [ e] SetLexicalEnvironment environment:reg4
+ [ 10] Return value:reg6
diff --git a/Tests/LibJS/Bytecode/expected/with-statement.txt b/Tests/LibJS/Bytecode/expected/with-statement.txt
index d67c63fc836..70aae28d89f 100644
--- a/Tests/LibJS/Bytecode/expected/with-statement.txt
+++ b/Tests/LibJS/Bytecode/expected/with-statement.txt
@@ -1,4 +1,4 @@
-$439678bb with-statement.js:7:1
+$1260bf44 with-statement.js:7:1
Registers: 7
Blocks: 1
Constants:
@@ -8,11 +8,11 @@ block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `withBlock`
- [ d] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 16] End value:reg5
+ [ c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
+ [ 15] End value:reg5
-withBlock$3aff32d0 with-statement.js:2:9
+withBlock$7bb02f14 with-statement.js:2:9
Registers: 9
Blocks: 1
Locals: obj~0
@@ -25,15 +25,15 @@ block0:
[ 1] GetLexicalEnvironment dst:reg4
[ 3] NewObject dst:reg5
[ 7] InitObjectLiteralProperty object:reg5, `x`, src:Int32(42), shape_cache_index:0, property_slot:0
- [ 11] CacheObjectShape object:reg5
- [ 15] Mov dst:obj~0, src:reg5
- [ 18] EnterObjectEnvironment dst:reg5, object:obj~0
- [ 1b] DynamicGetBinding value_feedback:0, dst:reg6, `console`
- [ 24] GetById value_feedback:1, dst:reg7, base:reg6, `log`
- [ 2e] DynamicGetBinding value_feedback:2, dst:reg8, `x`
- [ 37] Call value_feedback:3, call_feedback:0, dst:reg6, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 41] SetLexicalEnvironment environment:reg4
- [ 43] End value:Undefined
+ [ 10] CacheObjectShape object:reg5
+ [ 14] Mov dst:obj~0, src:reg5
+ [ 17] EnterObjectEnvironment dst:reg5, object:obj~0
+ [ 1a] DynamicGetBinding value_feedback:0, dst:reg6, `console`
+ [ 22] GetById value_feedback:1, dst:reg7, base:reg6, `log`
+ [ 2b] DynamicGetBinding value_feedback:2, dst:reg8, `x`
+ [ 33] Call value_feedback:3, call_feedback:0, dst:reg6, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 3d] SetLexicalEnvironment environment:reg4
+ [ 3f] End value:Undefined
42
diff --git a/Tests/LibJS/Runtime/name-table-indices-past-instruction-fields.js b/Tests/LibJS/Runtime/name-table-indices-past-instruction-fields.js
new file mode 100644
index 00000000000..17430d55047
--- /dev/null
+++ b/Tests/LibJS/Runtime/name-table-indices-past-instruction-fields.js
@@ -0,0 +1,49 @@
+// Instructions hold the indices of names in 16 bits. Larger ones go in another instruction before them, which must
+// give the same results.
+
+const count = 65400;
+
+test("identifiers of an executable past the first 65280", () => {
+ let source = "";
+ for (let i = 0; i < count; ++i) source += `typeof g${i};`;
+ source += "wideGlobal = wideGlobal + 1;";
+ source += "const wideFunction = function () { return wideGlobal; };";
+ source += "const WideClass = class { static value() { return wideGlobal; } };";
+ source += "let error; try { wideMissing; } catch (e) { error = e; }";
+ source += "return [wideFunction.name, wideFunction(), WideClass.name, WideClass.value(), error.message];";
+ globalThis.wideGlobal = 1;
+ const f = new Function(source);
+ expect(f()).toEqual(["wideFunction", 2, "WideClass", 2, "'wideMissing' is not defined"]);
+ expect(f()).toEqual(["wideFunction", 3, "WideClass", 3, "'wideMissing' is not defined"]);
+ delete globalThis.wideGlobal;
+});
+
+test("identifiers past the first 65280 in a function with more frame slots than operands can name", () => {
+ let source = "";
+ for (let i = 0; i < 300; ++i) source += `let l${i} = ${i};`;
+ for (let i = 0; i < count; ++i) source += `typeof g${i};`;
+ source += "wideSpilled = l299; return [wideSpilled, l0 + l150];";
+ const f = new Function(source);
+ expect(f()).toEqual([299, 150]);
+ expect(globalThis.wideSpilled).toBe(299);
+ delete globalThis.wideSpilled;
+});
+
+test("property keys of an executable past the first 65280", () => {
+ let source = "const o = {};";
+ for (let i = 0; i < count; ++i) source += `o.k${i};`;
+ source += "o.wideKey = 1; o.wideKey += 1; return [o.wideKey, delete o.wideKey, o.wideKey];";
+ const f = new Function(source);
+ expect(f()).toEqual([2, true, undefined]);
+ expect(f()).toEqual([2, true, undefined]);
+});
+
+test("strings of an executable past the first 65280", () => {
+ let source = "const regexps = [];";
+ for (let i = 0; i < count; ++i) source += `/s${i}/;`;
+ source += "return /wide/gi;";
+ const f = new Function(source);
+ const regexp = f();
+ expect(regexp.source).toBe("wide");
+ expect(regexp.flags).toBe("gi");
+});