Skip to content

Truly independent web browser

LibJS: Remove the debug name fields of bytecode instructions

Andreas Kling7e0df54eabc2
diff --git a/Libraries/LibJS/Flap/src/bytecode.rs b/Libraries/LibJS/Flap/src/bytecode.rs
index 31fa4eec89d..9954c781d6e 100644
--- a/Libraries/LibJS/Flap/src/bytecode.rs
+++ b/Libraries/LibJS/Flap/src/bytecode.rs
@@ -179,9 +179,7 @@ fn bytecode_field_type_matches(field: &crate::metadata::Field, parameter_type: &
| "StringTableIndex"
| "TemplateObjectCacheIndex"
| "Optional<IdentifierTableIndex>"
- | "Optional<StringTableIndex>"
- | "Optional<DebugIdentifierIndex>"
- | "Optional<DebugStringIndex>" => *parameter_type == Type::U32,
+ | "Optional<StringTableIndex>" => *parameter_type == Type::U32,
"ArithFeedbackIndex" => *parameter_type == Type::ArithFeedbackIndex,
"ValueFeedbackIndex" => *parameter_type == Type::ValueFeedbackIndex,
"CallFeedbackIndex" => *parameter_type == Type::CallFeedbackIndex,
diff --git a/Libraries/LibJS/Flap/src/frontend/parser.rs b/Libraries/LibJS/Flap/src/frontend/parser.rs
index 365b7601d78..d1caaf0da04 100644
--- a/Libraries/LibJS/Flap/src/frontend/parser.rs
+++ b/Libraries/LibJS/Flap/src/frontend/parser.rs
@@ -588,8 +588,6 @@ impl<'a> Parser<'a> {
| "ObjectShapeCacheIndex"
| "PropertyKeyTableIndex"
| "StringTableIndex"
- | "DebugIdentifierIndex"
- | "DebugStringIndex"
| "TemplateObjectCacheIndex"
) {
Type::U32
diff --git a/Libraries/LibJS/Flap/src/metadata.rs b/Libraries/LibJS/Flap/src/metadata.rs
index 6ddc325cf5d..5f4e38c1c35 100644
--- a/Libraries/LibJS/Flap/src/metadata.rs
+++ b/Libraries/LibJS/Flap/src/metadata.rs
@@ -684,9 +684,6 @@ fn try_field_type_info(ty: &str) -> Option<FieldType> {
"PropertyKeyTableIndex" => ("PropertyKeyTableIndex", 3, "u32_newtype"),
"StringTableIndex" => ("StringTableIndex", 3, "u32_newtype"),
"Optional<StringTableIndex>" => ("Option<StringTableIndex>", 3, "optional_u32_newtype"),
- // NB: These only make error messages better, so a site past 65534 names can go without.
- "Optional<DebugIdentifierIndex>" => ("Option<IdentifierTableIndex>", 2, "optional_debug_name"),
- "Optional<DebugStringIndex>" => ("Option<StringTableIndex>", 2, "optional_debug_name"),
"EnvironmentCoordinate" => ("EnvironmentCoordinate", 8, "env_coord"),
"Builtin" => ("u8", 1, "u8"),
"Completion::Type" => ("u32", 4, "u32"),
diff --git a/Libraries/LibJS/Flap/src/rust_bytecode.rs b/Libraries/LibJS/Flap/src/rust_bytecode.rs
index f248d416001..baa8a024d4c 100644
--- a/Libraries/LibJS/Flap/src/rust_bytecode.rs
+++ b/Libraries/LibJS/Flap/src/rust_bytecode.rs
@@ -125,12 +125,6 @@ pub fn read_expr_for_type(ty: &str, offset: &str, reader: &str) -> String {
format!("if bytes[{offset} + 4] != 0 {{ Some(Label({reader}read_u32(bytes, {offset}))) }} else {{ None }}")
}
"IdentifierTableIndex" => format!("IdentifierTableIndex({reader}read_u24(bytes, {offset}))"),
- "Optional<DebugIdentifierIndex>" => format!(
- "match {reader}read_u16(bytes, {offset}) {{ u16::MAX => None, raw => Some(IdentifierTableIndex(u32::from(raw))) }}"
- ),
- "Optional<DebugStringIndex>" => format!(
- "match {reader}read_u16(bytes, {offset}) {{ u16::MAX => None, raw => Some(StringTableIndex(u32::from(raw))) }}"
- ),
"Optional<IdentifierTableIndex>" => {
format!(
"match {reader}read_u24(bytes, {offset}) {{ 0xff_ffff => None, raw => Some(IdentifierTableIndex(raw)) }}"
@@ -635,10 +629,6 @@ fn emit_field_store(mut w: impl Write, name: &str, kind: &str, offset: usize) ->
"{prefix}{}",
store(&format!("narrow_index(*{name}).to_ne_bytes()"), 2)
)?,
- "optional_debug_name" => {
- let value = format!("debug_name_index({name}.map(|idx| idx.0)).to_ne_bytes()");
- writeln!(w, "{prefix}{}", store(&value, 2))?;
- }
"optional_u32_newtype" => {
let value = format!("name_index_bytes({name}.map_or(u32::MAX, |idx| idx.0))");
writeln!(w, "{prefix}{}", store(&value, 3))?;
diff --git a/Libraries/LibJS/Flap/tests/interpreter-assembly/aarch64.S b/Libraries/LibJS/Flap/tests/interpreter-assembly/aarch64.S
index f760df184f7..306b61e7c44 100644
--- a/Libraries/LibJS/Flap/tests/interpreter-assembly/aarch64.S
+++ b/Libraries/LibJS/Flap/tests/interpreter-assembly/aarch64.S
@@ -5012,8 +5012,8 @@ asm_handler_PutByValue:
ldrb w2, [x21, #5]
ldr x2, [x27, x2, lsl #3]
str x2, [x1, x0, lsl #3]
- ldrb w9, [x21, #14]
- add x21, x21, #14
+ ldrb w9, [x21, #12]
+ add x21, x21, #12
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_PutByValue.ssa_switch_10_after_preferred:
@@ -5034,8 +5034,8 @@ asm_handler_PutByValue:
ldrb w2, [x21, #5]
ldr x2, [x27, x2, lsl #3]
str x2, [x1, x0, lsl #3]
- ldrb w9, [x21, #14]
- add x21, x21, #14
+ ldrb w9, [x21, #12]
+ add x21, x21, #12
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_PutByValue.ssa_block_11:
@@ -5079,8 +5079,8 @@ asm_handler_PutByValue:
and x0, x0, #0x3ffffffffff
adds x0, x0, x1
strb w4, [x0]
- ldrb w9, [x21, #14]
- add x21, x21, #14
+ ldrb w9, [x21, #12]
+ add x21, x21, #12
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_PutByValue.ssa_block_16:
@@ -5088,8 +5088,8 @@ asm_handler_PutByValue:
and x0, x0, #0x3ffffffffff
adds x0, x0, x1
strh w4, [x0]
- ldrb w9, [x21, #14]
- add x21, x21, #14
+ ldrb w9, [x21, #12]
+ add x21, x21, #12
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_PutByValue.ssa_block_17:
@@ -5100,8 +5100,8 @@ asm_handler_PutByValue:
mov x4, #0
.Lasm_PutByValue.ssa_block_23:
strb w4, [x0]
- ldrb w9, [x21, #14]
- add x21, x21, #14
+ ldrb w9, [x21, #12]
+ add x21, x21, #12
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_PutByValue.ssa_block_22:
@@ -5114,8 +5114,8 @@ asm_handler_PutByValue:
and x0, x0, #0x3ffffffffff
adds x0, x0, x1
str w4, [x0]
- ldrb w9, [x21, #14]
- add x21, x21, #14
+ ldrb w9, [x21, #12]
+ add x21, x21, #12
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_PutByValue.ssa_block_19:
@@ -5125,8 +5125,8 @@ asm_handler_PutByValue:
scvtf d0, w4
fcvt s0, d0
str s0, [x0]
- ldrb w9, [x21, #14]
- add x21, x21, #14
+ ldrb w9, [x21, #12]
+ add x21, x21, #12
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_PutByValue.ssa_block_20:
@@ -5136,8 +5136,8 @@ asm_handler_PutByValue:
scvtf d0, w4
fmov x1, d0
str x1, [x0]
- ldrb w9, [x21, #14]
- add x21, x21, #14
+ ldrb w9, [x21, #12]
+ add x21, x21, #12
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_PutByValue.ssa_block_7:
@@ -5153,8 +5153,8 @@ asm_handler_PutByValue:
fmov d0, x4
fcvt s0, d0
str s0, [x0]
- ldrb w9, [x21, #14]
- add x21, x21, #14
+ ldrb w9, [x21, #12]
+ add x21, x21, #12
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_PutByValue.ssa_switch_7_after_preferred:
@@ -5179,8 +5179,8 @@ asm_handler_PutByValue:
and x0, x0, #0x3ffffffffff
adds x0, x0, x1
str x4, [x0]
- ldrb w9, [x21, #14]
- add x21, x21, #14
+ ldrb w9, [x21, #12]
+ add x21, x21, #12
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_PutByValue.ssa_block_29:
@@ -5199,8 +5199,8 @@ asm_handler_PutByValue:
and x0, x0, #0x3ffffffffff
adds x0, x0, x1
strb w3, [x0]
- ldrb w9, [x21, #14]
- add x21, x21, #14
+ ldrb w9, [x21, #12]
+ add x21, x21, #12
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_PutByValue.ssa_block_30:
@@ -5219,8 +5219,8 @@ asm_handler_PutByValue:
and x0, x0, #0x3ffffffffff
adds x0, x0, x1
strh w3, [x0]
- ldrb w9, [x21, #14]
- add x21, x21, #14
+ ldrb w9, [x21, #12]
+ add x21, x21, #12
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_PutByValue.ssa_block_31:
@@ -5239,8 +5239,8 @@ asm_handler_PutByValue:
and x0, x0, #0x3ffffffffff
adds x1, x1, x0
str w3, [x1]
- ldrb w9, [x21, #14]
- add x21, x21, #14
+ ldrb w9, [x21, #12]
+ add x21, x21, #12
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_PutByValue.ssa_block_4:
@@ -5248,7 +5248,7 @@ asm_handler_PutByValue:
cbz x0, .Lasm_PutByValue.assert_predicate_failure_15
ldr x0, [x0, #152]
cbz x0, .Lasm_PutByValue.assert_failure_1
- ldrh w1, [x21, #12]
+ ldrh w1, [x21, #10]
ldr x0, [x0, x1, lsl #3]
cbz x0, .Lasm_PutByValue.ssa_block_1
cmp x0, #3
@@ -5288,8 +5288,8 @@ asm_handler_PutByValue:
ldrb w1, [x21, #5]
ldr x1, [x27, x1, lsl #3]
str x1, [x0, x3, lsl #3]
- ldrb w9, [x21, #14]
- add x21, x21, #14
+ ldrb w9, [x21, #12]
+ add x21, x21, #12
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_PutByValue_hot_end:
@@ -5311,7 +5311,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, #10]
+ ldrh w4, [x21, #8]
ldr x2, [x2, x4, lsl #3]
cbz x2, .Lasm_GetById.ssa_block_1
and x2, x2, #0xfffffffffffffffc
@@ -5339,14 +5339,14 @@ asm_handler_GetById:
b.eq .Lasm_GetById.ssa_block_17
ldrb w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #12]
- add x21, x21, #12
+ ldrb w9, [x21, #10]
+ add x21, x21, #10
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, #10]
+ ldrh w2, [x21, #8]
ldr x1, [x1, x2, lsl #3]
mov x2, x1
and x2, x2, #0x3
@@ -5386,8 +5386,8 @@ asm_handler_GetById:
b.eq .Lasm_GetById.ssa_block_1
ldrb w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #12]
- add x21, x21, #12
+ ldrb w9, [x21, #10]
+ add x21, x21, #10
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_GetById_hot_end:
@@ -5434,8 +5434,8 @@ asm_handler_PutById:
ldrb w1, [x21, #5]
ldr x1, [x27, x1, lsl #3]
str x1, [x0, x3, lsl #3]
- ldrb w9, [x21, #14]
- add x21, x21, #14
+ ldrb w9, [x21, #12]
+ add x21, x21, #12
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_PutById_hot_end:
@@ -5475,8 +5475,8 @@ asm_handler_GetByValue:
ldr x0, [x1, x0, lsl #3]
ldrb w9, [x21, #5]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #12]
- add x21, x21, #12
+ ldrb w9, [x21, #10]
+ add x21, x21, #10
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_GetByValue.ssa_switch_21_after_preferred:
@@ -5496,8 +5496,8 @@ asm_handler_GetByValue:
b.eq .Lasm_GetByValue.ssa_block_1
ldrb w9, [x21, #5]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #12]
- add x21, x21, #12
+ ldrb w9, [x21, #10]
+ add x21, x21, #10
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_GetByValue.ssa_block_20:
@@ -5523,8 +5523,8 @@ asm_handler_GetByValue:
movk x0, #0x7ffa, lsl #48
ldrb w9, [x21, #5]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #12]
- add x21, x21, #12
+ ldrb w9, [x21, #10]
+ add x21, x21, #10
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_GetByValue.ssa_switch_20_after_preferred:
@@ -5579,8 +5579,8 @@ asm_handler_GetByValue:
movk x0, #0x7ffa, lsl #48
ldrb w9, [x21, #5]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #12]
- add x21, x21, #12
+ ldrb w9, [x21, #10]
+ add x21, x21, #10
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_GetByValue.ssa_block_30:
@@ -5615,8 +5615,8 @@ asm_handler_GetByValue:
movk x0, #0x7ffa, lsl #48
ldrb w9, [x21, #5]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #12]
- add x21, x21, #12
+ ldrb w9, [x21, #10]
+ add x21, x21, #10
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_GetByValue.ssa_block_10:
@@ -5626,8 +5626,8 @@ asm_handler_GetByValue:
.Lasm_GetByValue.canon_nan_1_ret:
ldrb w9, [x21, #5]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #12]
- add x21, x21, #12
+ ldrb w9, [x21, #10]
+ add x21, x21, #10
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_GetByValue.ssa_block_8:
@@ -5686,8 +5686,8 @@ asm_handler_GetByValue:
b.ne .Lasm_GetByValue.assert_predicate_failure_297
ldrb w9, [x21, #5]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #12]
- add x21, x21, #12
+ ldrb w9, [x21, #10]
+ add x21, x21, #10
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_GetByValue.ssa_block_5:
@@ -5700,7 +5700,7 @@ asm_handler_GetByValue:
ldr x0, [x28, #88]
ldr x1, [x0, #152]
cbz x1, .Lasm_GetByValue.assert_failure_2
- ldrh w3, [x21, #10]
+ ldrh w3, [x21, #8]
ldr x1, [x1, x3, lsl #3]
and x2, x2, #0x7ffffffff
add x2, x2, x24
@@ -5709,7 +5709,7 @@ asm_handler_GetByValue:
cbz x0, .Lasm_GetByValue.assert_predicate_failure_231
ldr x0, [x0, #152]
cbz x0, .Lasm_GetByValue.assert_failure_3
- ldrh w1, [x21, #10]
+ ldrh w1, [x21, #8]
ldr x0, [x0, x1, lsl #3]
cbz x0, .Lasm_GetByValue.ssa_block_1
cmp x0, #3
@@ -5742,8 +5742,8 @@ asm_handler_GetByValue:
b.eq .Lasm_GetByValue.ssa_block_1
ldrb w9, [x21, #5]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #12]
- add x21, x21, #12
+ ldrb w9, [x21, #10]
+ add x21, x21, #10
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_GetByValue_hot_end:
@@ -5767,8 +5767,8 @@ asm_handler_GetLength:
movk x0, #0x7ffa, lsl #48
ldrb w9, [x21, #5]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #11]
- add x21, x21, #11
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_GetLength.ssa_block_6:
@@ -5779,7 +5779,7 @@ asm_handler_GetLength:
cbz x0, .Lasm_GetLength.assert_predicate_failure_21
ldr x0, [x0, #152]
cbz x0, .Lasm_GetLength.assert_failure_1
- ldurh w3, [x21, #9]
+ ldurh w3, [x21, #7]
ldr x0, [x0, x3, lsl #3]
cbz x0, .Lasm_GetLength.ssa_block_1
and x0, x0, #0xfffffffffffffffc
@@ -5804,8 +5804,8 @@ asm_handler_GetLength:
b.eq .Lasm_GetLength.ssa_block_1
ldrb w9, [x21, #5]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #11]
- add x21, x21, #11
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_GetLength.ssa_block_2:
@@ -5821,8 +5821,8 @@ asm_handler_GetLength:
movk x0, #0x7ffa, lsl #48
ldrb w9, [x21, #5]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #11]
- add x21, x21, #11
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_GetLength_hot_end:
@@ -6170,7 +6170,7 @@ asm_handler_Call:
strb wzr, [x0, #125]
str x28, [x0, #96]
ldrb w2, [x21, #8]
- mov w1, #11
+ mov w1, #9
adds x1, x1, x2
ldrb w5, [x21, #5]
sub w2, w21, w26
@@ -6181,7 +6181,7 @@ asm_handler_Call:
cmp x3, x2
b.lo .Lasm_Call.assert_predicate_failure_275
add x6, x28, #128
- add x7, x21, #11
+ add x7, x21, #9
add x5, x0, #128
mov x1, #0
.Lasm_Call.ssa_block_19:
@@ -6280,7 +6280,7 @@ asm_handler_Call:
strb wzr, [x0, #124]
strb wzr, [x0, #125]
ldrb w4, [x21, #8]
- mov w2, #11
+ mov w2, #9
adds x2, x2, x4
ldrb w5, [x21, #5]
sub w4, w21, w26
@@ -6289,7 +6289,7 @@ asm_handler_Call:
str x28, [x0, #96]
stp w2, w5, [x0, #108]
add x4, x28, #128
- add x5, x21, #11
+ add x5, x21, #9
add x6, x0, #128
mov x2, #0
.Lasm_Call.ssa_block_25:
@@ -6333,7 +6333,7 @@ asm_handler_Call:
ldrb w9, [x21, #5]
str x0, [x27, x9, lsl #3]
ldrb w1, [x21, #8]
- mov w0, #11
+ mov w0, #9
adds x0, x0, x1
add x21, x21, w0, uxtw
ldrb w9, [x21]
@@ -6375,7 +6375,7 @@ asm_handler_Call:
mov w9, #0
ldrb w10, [x21, #8]
add x14, sp, #40
- add x3, x21, #11
+ add x3, x21, #9
.Lasm_Call.array_value_next_24:
cmp x9, x10
b.hs .Lasm_Call.array_values_end_26
@@ -14094,8 +14094,8 @@ asm_handler_PutByValue_cold:
add sp, sp, #32
.Lasm_PutByValue.values_call_done_4:
cbnz w0, .Lasm_PutByValue.ssa_block_1
- ldrb w9, [x21, #14]
- add x21, x21, #14
+ ldrb w9, [x21, #12]
+ add x21, x21, #12
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_PutByValue.ssa_block_2:
@@ -14221,8 +14221,8 @@ asm_handler_PutByValue_cold:
add sp, sp, #32
.Lasm_PutByValue.values_call_done_19:
cbnz w0, .Lasm_PutByValue.ssa_block_1
- ldrb w9, [x21, #14]
- add x21, x21, #14
+ ldrb w9, [x21, #12]
+ add x21, x21, #12
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_PutByValue.ssa_block_5:
@@ -14248,8 +14248,8 @@ asm_handler_PutByValue_cold:
add sp, sp, #32
.Lasm_PutByValue.values_call_done_24:
cbnz w0, .Lasm_PutByValue.ssa_block_1
- ldrb w9, [x21, #14]
- add x21, x21, #14
+ ldrb w9, [x21, #12]
+ add x21, x21, #12
ldr x10, [x19, x9, lsl #3]
br x10
asm_handler_PutByValue_cold_end:
@@ -14303,8 +14303,8 @@ asm_handler_GetById_cold:
.Lasm_GetById.ssa_block_51:
ldrb w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #12]
- add x21, x21, #12
+ ldrb w9, [x21, #10]
+ add x21, x21, #10
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_GetById.ssa_block_25:
@@ -14396,16 +14396,16 @@ asm_handler_GetById_cold:
add x27, x28, #128
ldrb w9, [x21, #3]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #12]
- add x21, x21, #12
+ ldrb w9, [x21, #10]
+ add x21, x21, #10
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, #12]
- add x21, x21, #12
+ ldrb w9, [x21, #10]
+ add x21, x21, #10
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_GetById.ssa_block_4:
@@ -14543,7 +14543,7 @@ asm_handler_GetById_cold:
ldr x0, [x28, #88]
ldr x1, [x0, #152]
cbz x1, .Lasm_GetById.assert_failure_21
- ldrh w2, [x21, #10]
+ ldrh w2, [x21, #8]
ldrb w0, [x21, #4]
ldr x0, [x27, x0, lsl #3]
lsl x2, x2, #3
@@ -14554,8 +14554,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, #12]
- add x21, x21, #12
+ ldrb w9, [x21, #10]
+ add x21, x21, #10
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_GetById.ssa_block_14:
@@ -14583,8 +14583,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, #12]
- add x21, x21, #12
+ ldrb w9, [x21, #10]
+ add x21, x21, #10
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_GetById.ssa_block_2:
@@ -14702,8 +14702,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, #14]
- add x21, x21, #14
+ ldrb w9, [x21, #12]
+ add x21, x21, #12
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_PutById.ssa_block_1:
@@ -14848,8 +14848,8 @@ asm_handler_GetByValue_cold:
b.eq .Lasm_GetByValue.ssa_block_2
ldrb w9, [x21, #5]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #12]
- add x21, x21, #12
+ ldrb w9, [x21, #10]
+ add x21, x21, #10
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_GetByValue.ssa_block_12:
@@ -14857,8 +14857,8 @@ asm_handler_GetByValue_cold:
fmov x0, d0
ldrb w9, [x21, #5]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #12]
- add x21, x21, #12
+ ldrb w9, [x21, #10]
+ add x21, x21, #10
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_GetByValue.ssa_block_4:
@@ -14890,8 +14890,8 @@ asm_handler_GetByValue_cold:
add sp, sp, #32
.Lasm_GetByValue.values_call_done_9:
cbnz w0, .Lasm_GetByValue.ssa_block_1
- ldrb w9, [x21, #12]
- add x21, x21, #12
+ ldrb w9, [x21, #10]
+ add x21, x21, #10
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_GetByValue.ssa_block_7:
@@ -15074,8 +15074,8 @@ asm_handler_GetByValue_cold:
add sp, sp, #32
.Lasm_GetByValue.values_call_done_27:
cbnz w0, .Lasm_GetByValue.ssa_block_1
- ldrb w9, [x21, #12]
- add x21, x21, #12
+ ldrb w9, [x21, #10]
+ add x21, x21, #10
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_GetByValue.canon_nan_1:
@@ -15238,8 +15238,8 @@ asm_handler_GetLength_cold:
fmov x0, d0
ldrb w9, [x21, #5]
str x0, [x27, x9, lsl #3]
- ldrb w9, [x21, #11]
- add x21, x21, #11
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
.Lasm_GetLength.ssa_block_1:
@@ -15630,7 +15630,7 @@ asm_handler_Call_cold:
mov w9, #0
ldrb w10, [x21, #8]
add x14, sp, #40
- add x3, x21, #11
+ add x3, x21, #9
.Lasm_Call.array_value_next_38:
cmp x9, x10
b.hs .Lasm_Call.array_values_end_40
@@ -16221,7 +16221,7 @@ asm_handler_CallConstruct:
mov w9, #0
ldrb w10, [x21, #7]
add x14, sp, #32
- add x3, x21, #10
+ add x3, x21, #8
.Lasm_CallConstruct.array_value_next_5:
cmp x9, x10
b.hs .Lasm_CallConstruct.array_values_end_7
@@ -16317,7 +16317,7 @@ asm_handler_CallDirectEval:
mov w9, #0
ldrb w10, [x21, #8]
add x14, sp, #40
- add x3, x21, #11
+ add x3, x21, #9
.Lasm_CallDirectEval.array_value_next_6:
cmp x9, x10
b.hs .Lasm_CallDirectEval.array_values_end_8
diff --git a/Libraries/LibJS/Flap/tests/interpreter-assembly/x86_64.S b/Libraries/LibJS/Flap/tests/interpreter-assembly/x86_64.S
index bd1caa5a107..d61b9d89621 100644
--- a/Libraries/LibJS/Flap/tests/interpreter-assembly/x86_64.S
+++ b/Libraries/LibJS/Flap/tests/interpreter-assembly/x86_64.S
@@ -5000,7 +5000,7 @@ asm_handler_PutByValue:
movzx edx, BYTE PTR [r14 + r13 + 5]
mov rdx, QWORD PTR [rbx + rdx * 8]
mov QWORD PTR [rcx + rax * 8], rdx
- add r13d, 14
+ add r13d, 12
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_PutByValue.ssa_switch_10_after_preferred:
@@ -5023,7 +5023,7 @@ asm_handler_PutByValue:
movzx edx, BYTE PTR [r14 + r13 + 5]
mov rdx, QWORD PTR [rbx + rdx * 8]
mov QWORD PTR [rcx + rax * 8], rdx
- add r13d, 14
+ add r13d, 12
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_PutByValue.ssa_block_11:
@@ -5072,7 +5072,7 @@ asm_handler_PutByValue:
and rax, rcx
add rax, rdx
mov BYTE PTR [rax], dil
- add r13d, 14
+ add r13d, 12
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_PutByValue.ssa_block_16:
@@ -5081,7 +5081,7 @@ asm_handler_PutByValue:
and rax, rcx
add rax, rdx
mov WORD PTR [rax], di
- add r13d, 14
+ add r13d, 12
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_PutByValue.ssa_block_17:
@@ -5094,7 +5094,7 @@ asm_handler_PutByValue:
xor rdi, rdi
.Lasm_PutByValue.ssa_block_23:
mov BYTE PTR [rax], dil
- add r13d, 14
+ add r13d, 12
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_PutByValue.ssa_block_22:
@@ -5108,7 +5108,7 @@ asm_handler_PutByValue:
and rax, rcx
add rax, rdx
mov DWORD PTR [rax], edi
- add r13d, 14
+ add r13d, 12
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_PutByValue.ssa_block_19:
@@ -5119,7 +5119,7 @@ asm_handler_PutByValue:
cvtsi2sd xmm0, edi
cvtsd2ss xmm0, xmm0
movss DWORD PTR [rax], xmm0
- add r13d, 14
+ add r13d, 12
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_PutByValue.ssa_block_20:
@@ -5130,7 +5130,7 @@ asm_handler_PutByValue:
cvtsi2sd xmm0, edi
movq rcx, xmm0
mov QWORD PTR [rax], rcx
- add r13d, 14
+ add r13d, 12
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_PutByValue.ssa_block_7:
@@ -5146,7 +5146,7 @@ asm_handler_PutByValue:
movq xmm0, rdi
cvtsd2ss xmm0, xmm0
movss DWORD PTR [rax], xmm0
- add r13d, 14
+ add r13d, 12
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_PutByValue.ssa_switch_7_after_preferred:
@@ -5174,7 +5174,7 @@ asm_handler_PutByValue:
and rax, rcx
add rax, rdx
mov QWORD PTR [rax], rdi
- add r13d, 14
+ add r13d, 12
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_PutByValue.ssa_block_29:
@@ -5194,7 +5194,7 @@ asm_handler_PutByValue:
and rax, rcx
add rax, rdx
mov BYTE PTR [rax], dil
- add r13d, 14
+ add r13d, 12
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_PutByValue.ssa_block_30:
@@ -5214,7 +5214,7 @@ asm_handler_PutByValue:
and rax, rcx
add rax, rdx
mov WORD PTR [rax], di
- add r13d, 14
+ add r13d, 12
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_PutByValue.ssa_block_31:
@@ -5234,7 +5234,7 @@ asm_handler_PutByValue:
and rax, rcx
add rdx, rax
mov DWORD PTR [rdx], edi
- add r13d, 14
+ add r13d, 12
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_PutByValue.ssa_block_4:
@@ -5244,7 +5244,7 @@ asm_handler_PutByValue:
mov rax, QWORD PTR [rax + 152]
test rax, rax
jz .Lasm_PutByValue.assert_failure_1
- movzx ecx, WORD PTR [r14 + r13 + 12]
+ movzx ecx, WORD PTR [r14 + r13 + 10]
mov rax, QWORD PTR [rax + rcx * 8]
test rax, rax
jz .Lasm_PutByValue.ssa_block_1
@@ -5289,7 +5289,7 @@ asm_handler_PutByValue:
movzx ecx, BYTE PTR [r14 + r13 + 5]
mov rcx, QWORD PTR [rbx + rcx * 8]
mov QWORD PTR [rax + rsi * 8], rcx
- add r13d, 14
+ add r13d, 12
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_PutByValue_hot_end:
@@ -5315,7 +5315,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 + 10]
+ movzx edi, WORD PTR [r14 + r13 + 8]
mov rdx, QWORD PTR [rdx + rdi * 8]
test rdx, rdx
jz .Lasm_GetById.ssa_block_1
@@ -5346,14 +5346,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, 12
+ add r13d, 10
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 + 10]
+ movzx edx, WORD PTR [r14 + r13 + 8]
mov rcx, QWORD PTR [rcx + rdx * 8]
mov rdx, rcx
and rdx, 3
@@ -5391,7 +5391,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, 12
+ add r13d, 10
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_GetById_hot_end:
@@ -5447,7 +5447,7 @@ asm_handler_PutById:
movzx ecx, BYTE PTR [r14 + r13 + 5]
mov rcx, QWORD PTR [rbx + rcx * 8]
mov QWORD PTR [rax + rsi * 8], rcx
- add r13d, 14
+ add r13d, 12
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_PutById_hot_end:
@@ -5490,7 +5490,7 @@ asm_handler_GetByValue:
mov rax, QWORD PTR [rcx + rax * 8]
movzx r11d, BYTE PTR [r14 + r13 + 5]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 12
+ add r13d, 10
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_GetByValue.ssa_switch_21_after_preferred:
@@ -5512,7 +5512,7 @@ asm_handler_GetByValue:
je .Lasm_GetByValue.ssa_block_1
movzx r11d, BYTE PTR [r14 + r13 + 5]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 12
+ add r13d, 10
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_GetByValue.ssa_block_20:
@@ -5540,7 +5540,7 @@ asm_handler_GetByValue:
or rax, r11
movzx r11d, BYTE PTR [r14 + r13 + 5]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 12
+ add r13d, 10
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_GetByValue.ssa_switch_20_after_preferred:
@@ -5600,7 +5600,7 @@ asm_handler_GetByValue:
or rax, r11
movzx r11d, BYTE PTR [r14 + r13 + 5]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 12
+ add r13d, 10
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_GetByValue.ssa_block_30:
@@ -5642,7 +5642,7 @@ asm_handler_GetByValue:
or rax, r11
movzx r11d, BYTE PTR [r14 + r13 + 5]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 12
+ add r13d, 10
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_GetByValue.ssa_block_10:
@@ -5652,7 +5652,7 @@ asm_handler_GetByValue:
.Lasm_GetByValue.canon_nan_1_ret:
movzx r11d, BYTE PTR [r14 + r13 + 5]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 12
+ add r13d, 10
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_GetByValue.ssa_block_8:
@@ -5715,7 +5715,7 @@ asm_handler_GetByValue:
jne .Lasm_GetByValue.assert_predicate_failure_297
movzx r11d, BYTE PTR [r14 + r13 + 5]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 12
+ add r13d, 10
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_GetByValue.ssa_block_5:
@@ -5729,7 +5729,7 @@ asm_handler_GetByValue:
mov rcx, QWORD PTR [rax + 152]
test rcx, rcx
jz .Lasm_GetByValue.assert_failure_2
- movzx esi, WORD PTR [r14 + r13 + 10]
+ movzx esi, WORD PTR [r14 + r13 + 8]
mov rcx, QWORD PTR [rcx + rsi * 8]
movabs r11, 34359738367
and rdx, r11
@@ -5741,7 +5741,7 @@ asm_handler_GetByValue:
mov rax, QWORD PTR [rax + 152]
test rax, rax
jz .Lasm_GetByValue.assert_failure_3
- movzx ecx, WORD PTR [r14 + r13 + 10]
+ movzx ecx, WORD PTR [r14 + r13 + 8]
mov rax, QWORD PTR [rax + rcx * 8]
test rax, rax
jz .Lasm_GetByValue.ssa_block_1
@@ -5777,7 +5777,7 @@ asm_handler_GetByValue:
je .Lasm_GetByValue.ssa_block_1
movzx r11d, BYTE PTR [r14 + r13 + 5]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 12
+ add r13d, 10
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_GetByValue_hot_end:
@@ -5803,7 +5803,7 @@ asm_handler_GetLength:
or rax, r11
movzx r11d, BYTE PTR [r14 + r13 + 5]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 11
+ add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_GetLength.ssa_block_6:
@@ -5817,7 +5817,7 @@ asm_handler_GetLength:
mov rax, QWORD PTR [rax + 152]
test rax, rax
jz .Lasm_GetLength.assert_failure_1
- movzx esi, WORD PTR [r14 + r13 + 9]
+ movzx esi, WORD PTR [r14 + r13 + 7]
mov rax, QWORD PTR [rax + rsi * 8]
test rax, rax
jz .Lasm_GetLength.ssa_block_1
@@ -5847,7 +5847,7 @@ asm_handler_GetLength:
je .Lasm_GetLength.ssa_block_1
movzx r11d, BYTE PTR [r14 + r13 + 5]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 11
+ add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_GetLength.ssa_block_2:
@@ -5863,7 +5863,7 @@ asm_handler_GetLength:
or rax, r11
movzx r11d, BYTE PTR [r14 + r13 + 5]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 11
+ add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_GetLength_hot_end:
@@ -6239,7 +6239,7 @@ asm_handler_Call:
lea r11, [rbx - 128]
mov QWORD PTR [rax + 96], r11
movzx edx, BYTE PTR [r14 + r13 + 8]
- mov rcx, 11
+ mov rcx, 9
add rcx, rdx
movzx r8d, BYTE PTR [r14 + r13 + 5]
mov edx, r13d
@@ -6251,7 +6251,7 @@ asm_handler_Call:
cmp rsi, rdx
jb .Lasm_Call.assert_predicate_failure_275
lea r9, [rbx]
- lea r10, [r14 + r13 + 11]
+ lea r10, [r14 + r13 + 9]
lea r8, [rax + 128]
xor rcx, rcx
.Lasm_Call.ssa_block_19:
@@ -6360,7 +6360,7 @@ asm_handler_Call:
mov BYTE PTR [rax + 124], 0
mov BYTE PTR [rax + 125], 0
movzx edi, BYTE PTR [r14 + r13 + 8]
- mov rdx, 11
+ mov rdx, 9
add rdx, rdi
movzx r8d, BYTE PTR [r14 + r13 + 5]
mov edi, r13d
@@ -6371,7 +6371,7 @@ asm_handler_Call:
mov DWORD PTR [rax + 108], edx
mov DWORD PTR [rax + 112], r8d
lea rdi, [rbx]
- lea r8, [r14 + r13 + 11]
+ lea r8, [r14 + r13 + 9]
lea r9, [rax + 128]
xor rdx, rdx
.Lasm_Call.ssa_block_25:
@@ -6419,7 +6419,7 @@ asm_handler_Call:
movzx r11d, BYTE PTR [r14 + r13 + 5]
mov QWORD PTR [rbx + r11 * 8], rax
movzx eax, BYTE PTR [r14 + r13 + 8]
- mov rcx, 11
+ mov rcx, 9
add rcx, rax
add r13d, ecx
movzx eax, BYTE PTR [r14 + r13]
@@ -6464,7 +6464,7 @@ asm_handler_Call:
.Lasm_Call.array_value_next_24:
cmp r11, r10
jae .Lasm_Call.array_values_end_26
- movzx edx, BYTE PTR [rcx + r11 + 11]
+ movzx edx, BYTE PTR [rcx + r11 + 9]
mov rax, QWORD PTR [rbx + rdx * 8]
.Lasm_Call.array_value_ready_25:
mov QWORD PTR [rsp + r11 * 8 + 40], rax
@@ -13708,7 +13708,7 @@ asm_handler_PutByValue_cold:
.Lasm_PutByValue.values_call_done_4:
test eax, eax
jnz .Lasm_PutByValue.ssa_block_1
- add r13d, 14
+ add r13d, 12
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_PutByValue.ssa_block_2:
@@ -13822,7 +13822,7 @@ asm_handler_PutByValue_cold:
.Lasm_PutByValue.values_call_done_19:
test eax, eax
jnz .Lasm_PutByValue.ssa_block_1
- add r13d, 14
+ add r13d, 12
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_PutByValue.ssa_block_5:
@@ -13850,7 +13850,7 @@ asm_handler_PutByValue_cold:
.Lasm_PutByValue.values_call_done_24:
test eax, eax
jnz .Lasm_PutByValue.ssa_block_1
- add r13d, 14
+ add r13d, 12
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
asm_handler_PutByValue_cold_end:
@@ -13908,7 +13908,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, 12
+ add r13d, 10
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_GetById.ssa_block_25:
@@ -14017,14 +14017,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, 12
+ add r13d, 10
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, 12
+ add r13d, 10
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_GetById.ssa_block_4:
@@ -14168,7 +14168,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 + 10]
+ movzx eax, WORD PTR [r14 + r13 + 8]
movzx ecx, BYTE PTR [r14 + r13 + 4]
mov rcx, QWORD PTR [rbx + rcx * 8]
shl rax, 3
@@ -14182,7 +14182,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, 12
+ add r13d, 10
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_GetById.ssa_block_14:
@@ -14216,7 +14216,7 @@ asm_handler_GetById_cold:
.Lasm_GetById.values_call_done_22:
test eax, eax
jnz .Lasm_GetById.ssa_block_2
- add r13d, 12
+ add r13d, 10
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_GetById.ssa_block_2:
@@ -14330,7 +14330,7 @@ asm_handler_PutById_cold:
.Lasm_PutById.values_call_done_3:
test eax, eax
jnz .Lasm_PutById.ssa_block_1
- add r13d, 14
+ add r13d, 12
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_PutById.ssa_block_1:
@@ -14464,7 +14464,7 @@ asm_handler_GetByValue_cold:
je .Lasm_GetByValue.ssa_block_2
movzx r11d, BYTE PTR [r14 + r13 + 5]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 12
+ add r13d, 10
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_GetByValue.ssa_block_12:
@@ -14472,7 +14472,7 @@ asm_handler_GetByValue_cold:
movq rax, xmm0
movzx r11d, BYTE PTR [r14 + r13 + 5]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 12
+ add r13d, 10
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_GetByValue.ssa_block_4:
@@ -14510,7 +14510,7 @@ asm_handler_GetByValue_cold:
.Lasm_GetByValue.values_call_done_9:
test eax, eax
jnz .Lasm_GetByValue.ssa_block_1
- add r13d, 12
+ add r13d, 10
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_GetByValue.ssa_block_7:
@@ -14681,7 +14681,7 @@ asm_handler_GetByValue_cold:
.Lasm_GetByValue.values_call_done_27:
test eax, eax
jnz .Lasm_GetByValue.ssa_block_1
- add r13d, 12
+ add r13d, 10
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_GetByValue.canon_nan_1:
@@ -14844,7 +14844,7 @@ asm_handler_GetLength_cold:
movq rax, xmm0
movzx r11d, BYTE PTR [r14 + r13 + 5]
mov QWORD PTR [rbx + r11 * 8], rax
- add r13d, 11
+ add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
.Lasm_GetLength.ssa_block_1:
@@ -15215,7 +15215,7 @@ asm_handler_Call_cold:
.Lasm_Call.array_value_next_38:
cmp r11, r10
jae .Lasm_Call.array_values_end_40
- movzx edx, BYTE PTR [rcx + r11 + 11]
+ movzx edx, BYTE PTR [rcx + r11 + 9]
mov rax, QWORD PTR [rbx + rdx * 8]
.Lasm_Call.array_value_ready_39:
mov QWORD PTR [rsp + r11 * 8 + 40], rax
@@ -15798,7 +15798,7 @@ asm_handler_CallConstruct:
.Lasm_CallConstruct.array_value_next_5:
cmp r11, r10
jae .Lasm_CallConstruct.array_values_end_7
- movzx edx, BYTE PTR [rcx + r11 + 10]
+ movzx edx, BYTE PTR [rcx + r11 + 8]
mov rax, QWORD PTR [rbx + rdx * 8]
.Lasm_CallConstruct.array_value_ready_6:
mov QWORD PTR [rsp + r11 * 8 + 32], rax
@@ -15892,7 +15892,7 @@ asm_handler_CallDirectEval:
.Lasm_CallDirectEval.array_value_next_6:
cmp r11, r10
jae .Lasm_CallDirectEval.array_values_end_8
- movzx edx, BYTE PTR [rcx + r11 + 11]
+ movzx edx, BYTE PTR [rcx + r11 + 9]
mov rax, QWORD PTR [rbx + rdx * 8]
.Lasm_CallDirectEval.array_value_ready_7:
mov QWORD PTR [rsp + r11 * 8 + 40], rax
diff --git a/Libraries/LibJS/Interpreter/interpreter.flap b/Libraries/LibJS/Interpreter/interpreter.flap
index 117b14a11c2..12880baa19d 100644
--- a/Libraries/LibJS/Interpreter/interpreter.flap
+++ b/Libraries/LibJS/Interpreter/interpreter.flap
@@ -16,8 +16,8 @@ inline fn call_length(
) -> u32 {
let mut count: u32;
load8(count, [pb, pc, argument_count]);
- # NB: 11 is what a Call takes up before its arguments, which are a byte each. Any call breaks if it goes out of date.
- let length: u32 = 11 + count;
+ # NB: 9 is what a Call takes up before its arguments, which are a byte each. Any call breaks if it goes out of date.
+ let length: u32 = 9 + count;
length
}
@@ -2949,7 +2949,6 @@ handler PutByValue(
property: in Operand,
src: in Operand,
kind: PutKind,
- base_identifier: Optional<DebugIdentifierIndex>,
cache: PropertyLookupCacheIndex
) {
let slow = || @cold {
@@ -3163,7 +3162,6 @@ handler GetById(
dst: out Operand,
base: in Operand,
property: PropertyKeyTableIndex,
- base_identifier: Optional<DebugIdentifierIndex>,
cache: PropertyLookupCacheIndex
) {
let try_cache = || @cold {
@@ -3404,8 +3402,7 @@ handler PutById(
property: PropertyKeyTableIndex,
src: in Operand,
kind: PutKind,
- cache: PropertyLookupCacheIndex,
- base_identifier: Optional<DebugIdentifierIndex>
+ cache: PropertyLookupCacheIndex
) {
let slow = || @cold {
call_slow_path(put_by_id);
@@ -3444,7 +3441,6 @@ handler GetByValue(
dst: out Operand,
base: in Operand,
property: in Operand,
- base_identifier: Optional<DebugIdentifierIndex>,
cache: PropertyLookupCacheIndex
) {
let slow = || @cold {
@@ -3697,7 +3693,6 @@ handler GetLength(
keyed_feedback: KeyedFeedbackIndex,
dst: out Operand,
base: in Operand,
- base_identifier: Optional<DebugIdentifierIndex>,
cache: PropertyLookupCacheIndex
) {
let slow = || @cold {
@@ -3879,7 +3874,6 @@ handler Call(
callee: in Operand,
this_value: in Operand,
argument_count: u8,
- expression_string: Optional<DebugStringIndex>,
arguments: Operand[]
) {
let slow = || @cold {
@@ -4323,7 +4317,6 @@ handler CallConstruct(
dst: out Operand,
callee: Operand,
argument_count: u8,
- expression_string: Optional<DebugStringIndex>,
arguments: Operand[]
) @cold = call_slow_path(call_construct);
@@ -4334,7 +4327,6 @@ handler CallDirectEval(
callee: Operand,
this_value: Operand,
argument_count: u8,
- expression_string: Optional<DebugStringIndex>,
arguments: Operand[]
) @cold = call_slow_path(call_direct_eval);
@@ -4344,8 +4336,7 @@ handler CallWithArgumentArray(
dst: out Operand,
callee: Operand,
this_value: Operand,
- arguments: Operand,
- expression_string: Optional<DebugStringIndex>
+ arguments: Operand
) @cold = call_slow_path(call_with_argument_array);
handler CallDirectEvalWithArgumentArray(
@@ -4354,8 +4345,7 @@ handler CallDirectEvalWithArgumentArray(
dst: out Operand,
callee: Operand,
this_value: Operand,
- arguments: Operand,
- expression_string: Optional<DebugStringIndex>
+ arguments: Operand
) @cold = call_slow_path(call_direct_eval_with_argument_array);
handler CallConstructWithArgumentArray(
@@ -4364,8 +4354,7 @@ handler CallConstructWithArgumentArray(
dst: out Operand,
callee: Operand,
this_value: Operand,
- arguments: Operand,
- expression_string: Optional<DebugStringIndex>
+ arguments: Operand
) @cold = call_slow_path(call_construct_with_argument_array);
handler SuperCallWithArgumentArray(
diff --git a/Libraries/LibJS/JIT/Rust/src/builder/tests.rs b/Libraries/LibJS/JIT/Rust/src/builder/tests.rs
index 3e938829498..5b713a98656 100644
--- a/Libraries/LibJS/JIT/Rust/src/builder/tests.rs
+++ b/Libraries/LibJS/JIT/Rust/src/builder/tests.rs
@@ -723,7 +723,6 @@ fn calls_write_back_their_arguments_and_values_survive_them() {
callee: r(5),
this_value: r(5),
argument_count: 1,
- expression_string: None,
arguments: vec![r(6)],
},
Instruction::Mov { dst: l(0), src: r(7) },
@@ -798,7 +797,6 @@ pub(crate) mod property_access {
dst,
base,
property: PropertyKeyTableIndex(0),
- base_identifier: None,
cache,
}
}
@@ -810,7 +808,6 @@ pub(crate) mod property_access {
src,
kind: 0,
cache,
- base_identifier: None,
}
}
@@ -898,7 +895,7 @@ pub(crate) mod property_access {
Return ([[V17]])
frame states:
[[FS0]]: pc 0 at {} frame [a0]
- [[FS1]]: pc 24 at {r5=[[V6]], r6=[[V6]]} frame [a0]
+ [[FS1]]: pc 20 at {r5=[[V6]], r6=[[V6]]} frame [a0]
",
);
}
@@ -941,7 +938,7 @@ pub(crate) mod property_access {
Return ([[V19]])
frame states:
[[FS0]]: pc 0 at {} frame [a0]
- [[FS1]]: pc 12 at {r5=[[V6]]} frame [a0]
+ [[FS1]]: pc 10 at {r5=[[V6]]} frame [a0]
",
);
}
@@ -1091,7 +1088,6 @@ pub(crate) mod property_access {
keyed_feedback: 0,
dst: r(5),
base: a(0),
- base_identifier: None,
cache: 0,
},
Instruction::Return { value: r(5) },
@@ -1281,7 +1277,6 @@ pub(crate) mod property_access {
dst,
base,
property,
- base_identifier: None,
cache: 0,
}
}
@@ -1351,7 +1346,7 @@ pub(crate) mod property_access {
(1 | (1 << 5) | (1 << 9), Vec::new()),
(
1 | (1 << 5),
- vec![(0, ExitKind::BadElements), (12, ExitKind::OutOfBounds)],
+ vec![(0, ExitKind::BadElements), (10, ExitKind::OutOfBounds)],
),
] {
let text = dump_element_loads(bits, exit_sites);
@@ -1444,7 +1439,6 @@ pub(crate) mod property_access {
property: c(1),
src: c(0),
kind: 0,
- base_identifier: None,
cache: 0,
},
Instruction::Return { value: a(0) },
@@ -1466,7 +1460,6 @@ pub(crate) mod property_access {
property: c(1),
src: r(6),
kind: 0,
- base_identifier: None,
cache: 0,
},
Instruction::Return { value: a(0) },
@@ -1554,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 @26 ([[V13]], #10) [[[FS1]]]
+ [[V14]] = CallSlowPath Exp @22 ([[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 26 after -> l1 {r5=#10} frame [a0]
- [[FS2]]: pc 32 at {r5=#10} frame [a0]
+ [[FS1]]: pc 22 after -> l1 {r5=#10} frame [a0]
+ [[FS2]]: pc 28 at {r5=#10} frame [a0]
",
);
}
@@ -1633,7 +1626,6 @@ pub(crate) mod inlining {
callee,
this_value,
argument_count: u32::try_from(arguments.len()).unwrap(),
- expression_string: None,
arguments,
}
}
@@ -2565,7 +2557,6 @@ mod arguments {
callee: a(0),
this_value: c(0),
arguments: r(7),
- expression_string: None,
},
Instruction::Return { value: r(5) },
]
@@ -2602,7 +2593,6 @@ mod arguments {
keyed_feedback: 0,
dst: r(5),
base: l(0),
- base_identifier: None,
cache: 0,
},
Instruction::Return { value: r(5) },
@@ -2619,7 +2609,6 @@ mod arguments {
keyed_feedback: 0,
dst: r(5),
base: l(0),
- base_identifier: None,
cache: 0,
},
Instruction::Return { value: r(5) },
@@ -2757,7 +2746,6 @@ fn captured_typed_arrays_use_guarded_fixed_lengths() {
dst: r(6),
base: r(5),
property: c(0),
- base_identifier: None,
cache: 0,
},
Instruction::Return { value: r(6) },
@@ -2821,7 +2809,6 @@ fn array_length_specialization_requires_monomorphic_receivers_and_exit_gates() {
keyed_feedback: 0,
dst: r(5),
base: a(0),
- base_identifier: None,
cache: 0,
},
Instruction::Return { value: r(5) },
diff --git a/Libraries/LibJS/JIT/Rust/src/bytecode/instruction.rs b/Libraries/LibJS/JIT/Rust/src/bytecode/instruction.rs
index 3856cb6212a..2e5558f72a3 100644
--- a/Libraries/LibJS/JIT/Rust/src/bytecode/instruction.rs
+++ b/Libraries/LibJS/JIT/Rust/src/bytecode/instruction.rs
@@ -237,11 +237,6 @@ fn name_index_bytes(index: u32) -> [u8; 3] {
[low, middle, high]
}
-#[cfg(test)]
-fn debug_name_index(index: Option<u32>) -> u16 {
- index.and_then(|index| u16::try_from(index).ok()).unwrap_or(u16::MAX)
-}
-
fn read_u24(bytes: &[u8], at: usize) -> u32 {
u32::from_le_bytes([bytes[at], bytes[at + 1], bytes[at + 2], 0])
}
@@ -387,7 +382,6 @@ mod tests {
callee: operand(6),
this_value: operand(7),
argument_count: 3,
- expression_string: Some(StringTableIndex(9)),
arguments: vec![operand(8), operand(20), operand(21)],
};
let mut bytes = Vec::new();
@@ -528,7 +522,6 @@ mod tests {
callee: operand(6),
this_value: operand(7),
argument_count: 1,
- expression_string: None,
arguments: vec![operand(8)],
}
.encode(&mut call);
diff --git a/Libraries/LibJS/JIT/Rust/src/codegen/tests.rs b/Libraries/LibJS/JIT/Rust/src/codegen/tests.rs
index ee17fc26026..05c794b326c 100644
--- a/Libraries/LibJS/JIT/Rust/src/codegen/tests.rs
+++ b/Libraries/LibJS/JIT/Rust/src/codegen/tests.rs
@@ -1450,7 +1450,6 @@ mod execution {
callee: c(1),
this_value: c(0),
argument_count: 2,
- expression_string: None,
arguments: vec![r(6), c(1)],
},
// r6 still holds the argument, which lived across the call.
@@ -2761,7 +2760,6 @@ mod property_access {
callee: r(6),
this_value: a(0),
argument_count: 1,
- expression_string: None,
arguments: vec![c(1)],
},
Instruction::Return { value: r(5) },
@@ -2882,7 +2880,6 @@ mod property_access {
callee: c(0),
this_value: c(0),
argument_count: 0,
- expression_string: None,
arguments: Vec::new(),
},
get_by_id(r(7), a(0), 1),
@@ -3298,7 +3295,6 @@ mod virtual_arguments {
keyed_feedback: 0,
dst: r(5),
base: l(0),
- base_identifier: None,
cache: 0,
},
Instruction::GetByValue {
@@ -3307,7 +3303,6 @@ mod virtual_arguments {
dst: r(6),
base: l(0),
property: argument(2),
- base_identifier: None,
cache: 0,
},
add(r(7), r(5), r(6)),
@@ -3316,7 +3311,6 @@ mod virtual_arguments {
keyed_feedback: 0,
dst: r(6),
base: l(0),
- base_identifier: None,
cache: 0,
},
add(r(7), r(7), r(6)),
diff --git a/Libraries/LibJS/JIT/Rust/src/codegen/tests/lowerings.rs b/Libraries/LibJS/JIT/Rust/src/codegen/tests/lowerings.rs
index 00a0985a5aa..5fc529a2970 100644
--- a/Libraries/LibJS/JIT/Rust/src/codegen/tests/lowerings.rs
+++ b/Libraries/LibJS/JIT/Rust/src/codegen/tests/lowerings.rs
@@ -1466,7 +1466,6 @@ fn get_by_value(base: u64, index: u64) -> u64 {
dst: r(5),
base: argument(0),
property: argument(1),
- base_identifier: None,
cache: 0,
},
&[base, index],
@@ -1485,7 +1484,6 @@ fn put_by_value(base: u64, index: u64, src: u64) -> u64 {
property: argument(1),
src: argument(2),
kind: 0,
- base_identifier: None,
cache: 0,
},
Instruction::Return { value: c(0) },
@@ -1609,7 +1607,6 @@ fn typed_array_accesses_with_constant_indices() {
property: c(1),
src: argument(1),
kind: 0,
- base_identifier: None,
cache: 0,
},
Instruction::GetByValue {
@@ -1618,7 +1615,6 @@ fn typed_array_accesses_with_constant_indices() {
dst: r(5),
base: argument(0),
property: c(1),
- base_identifier: None,
cache: 0,
},
Instruction::Return { value: r(5) },
@@ -1759,7 +1755,6 @@ fn get_length() {
keyed_feedback: 0,
dst: r(5),
base: argument(0),
- base_identifier: None,
cache: 0,
},
&[base],
@@ -2813,7 +2808,6 @@ fn every_fast_path_compiles_for_both_architectures() {
dst,
base: argument(0),
property: argument(1),
- base_identifier: None,
cache: 0,
},
Instruction::PutByValue {
@@ -2822,7 +2816,6 @@ fn every_fast_path_compiles_for_both_architectures() {
property: argument(1),
src,
kind: 0,
- base_identifier: None,
cache: 0,
},
Instruction::GetLength {
@@ -2830,7 +2823,6 @@ fn every_fast_path_compiles_for_both_architectures() {
keyed_feedback: 0,
dst,
base: argument(0),
- base_identifier: None,
cache: 0,
},
Instruction::GetBinding {
@@ -3022,7 +3014,6 @@ impl FakeCachedObject {
dst: r(5),
base: argument(0),
property: crate::bytecode::PropertyKeyTableIndex(0),
- base_identifier: None,
cache: 1,
},
&[base],
@@ -3040,7 +3031,6 @@ impl FakeCachedObject {
src: argument(1),
kind: 0,
cache: 1,
- base_identifier: None,
},
&[base, value],
);
@@ -3055,7 +3045,6 @@ impl FakeCachedObject {
keyed_feedback: 0,
dst: r(5),
base: argument(0),
- base_identifier: None,
cache: 1,
},
&[self.value()],
@@ -3190,7 +3179,6 @@ fn get_by_id_reads_direct_getter_wrappers_inline_from(compressed_field: bool) {
dst: r(5),
base: argument(0),
property: crate::bytecode::PropertyKeyTableIndex(0),
- base_identifier: None,
cache: 1,
},
Instruction::Return { value: r(5) },
@@ -3291,7 +3279,6 @@ fn put_by_id_calls_native_setters_of_prototypes() {
src: argument(1),
kind: 0,
cache: 1,
- base_identifier: None,
},
Instruction::Return { value: c(0) },
]
@@ -3475,7 +3462,6 @@ fn get_by_value_of_string_characters() {
dst: r(5),
base: argument(0),
property: argument(1),
- base_identifier: None,
cache: 0,
},
Instruction::Return { value: r(5) },
@@ -3548,7 +3534,6 @@ fn builtin_call(this_value: Operand, arguments: Vec<Operand>) -> Instruction {
callee: argument(0),
this_value,
argument_count: arguments.len() as u32,
- expression_string: None,
arguments,
}
}
@@ -4108,7 +4093,6 @@ fn get_by_value_through_the_vm_keyed_lookup_cache() {
dst: r(5),
base: argument(0),
property: argument(1),
- base_identifier: None,
cache: 1,
},
&[fake.value(), key],
@@ -4157,7 +4141,6 @@ fn put_by_value_through_the_vm_keyed_store_cache() {
property: argument(1),
src: argument(2),
kind: 0,
- base_identifier: None,
cache: 1,
},
&[fake.value(), key, value],
@@ -4222,7 +4205,6 @@ fn get_by_value_through_megamorphic_property_caches() {
dst: r(5),
base: argument(0),
property: argument(1),
- base_identifier: None,
cache: 1,
},
&[fake.value(), key],
@@ -4286,7 +4268,6 @@ fn get_by_id_of_strings_through_property_caches() {
dst: r(5),
base: argument(0),
property: crate::bytecode::PropertyKeyTableIndex(0),
- base_identifier: None,
cache: 1,
},
&[base],
@@ -4318,7 +4299,6 @@ fn get_by_id_of_numbers_and_booleans_through_property_caches() {
dst: r(5),
base: argument(0),
property: crate::bytecode::PropertyKeyTableIndex(0),
- base_identifier: None,
cache: 1,
},
&[base],
@@ -4366,7 +4346,6 @@ fn get_by_id_of_strings_through_megamorphic_property_caches() {
dst: r(5),
base: argument(0),
property: crate::bytecode::PropertyKeyTableIndex(0),
- base_identifier: None,
cache: 1,
},
&[fake_string(true)],
@@ -4408,7 +4387,6 @@ fn keyed_accesses_of_missing_and_added_properties_through_property_caches() {
dst: r(5),
base: argument(0),
property: argument(1),
- base_identifier: None,
cache: 1,
},
&[fake.value(), key],
@@ -4424,7 +4402,6 @@ fn keyed_accesses_of_missing_and_added_properties_through_property_caches() {
property: argument(1),
src: argument(2),
kind: 0,
- base_identifier: None,
cache: 1,
},
&[fake.value(), key, value],
diff --git a/Libraries/LibJS/JIT/Rust/src/regalloc/tests.rs b/Libraries/LibJS/JIT/Rust/src/regalloc/tests.rs
index 553378798af..4b9e69ec663 100644
--- a/Libraries/LibJS/JIT/Rust/src/regalloc/tests.rs
+++ b/Libraries/LibJS/JIT/Rust/src/regalloc/tests.rs
@@ -92,7 +92,6 @@ fn values_live_across_calls_are_spilled_at_their_definition() {
callee: r(5),
this_value: r(5),
argument_count: 1,
- expression_string: None,
arguments: vec![r(6)],
},
Instruction::Return { value: r(6) },
@@ -410,7 +409,6 @@ fn loops_leave_the_values_they_only_carry_through_in_their_stack_slots() {
callee: r(15),
this_value: r(15),
argument_count: 0,
- expression_string: None,
arguments: vec![],
},
xor(5, r(10), r(5), r(6)),
@@ -584,7 +582,6 @@ fn the_verifier_finds_values_in_the_wrong_place() {
callee: r(5),
this_value: r(5),
argument_count: 1,
- expression_string: None,
arguments: vec![r(6)],
},
Instruction::Return { value: r(6) },
@@ -696,7 +693,6 @@ impl ProgramGenerator {
dst: self.writable(),
base: self.object_operand(),
property: crate::bytecode::PropertyKeyTableIndex(0),
- base_identifier: None,
cache,
}
} else {
@@ -706,7 +702,6 @@ impl ProgramGenerator {
src: self.readable(),
kind: 0,
cache: 2 + cache,
- base_identifier: None,
}
};
}
@@ -747,7 +742,6 @@ impl ProgramGenerator {
callee: self.readable(),
this_value: self.readable(),
argument_count: u32::try_from(argument_count).unwrap(),
- expression_string: None,
arguments: (0..argument_count).map(|_| self.readable()).collect(),
}
}
@@ -995,7 +989,6 @@ fn float64_values_get_floating_point_registers() {
callee: r(6),
this_value: r(7),
argument_count: 1,
- expression_string: None,
arguments: vec![a(0)],
},
Instruction::Return { value: r(5) },
diff --git a/Libraries/LibJS/Rust/generate/instructions.rs b/Libraries/LibJS/Rust/generate/instructions.rs
index fbd544f9933..05e20128760 100644
--- a/Libraries/LibJS/Rust/generate/instructions.rs
+++ b/Libraries/LibJS/Rust/generate/instructions.rs
@@ -399,7 +399,7 @@ fn generate_instruction_dump_from_bytes(
" dumper.append_piece(|dumper| dumper.append_identifier_quoted({rname}.0));"
)?;
}
- "Optional<IdentifierTableIndex>" | "Optional<DebugIdentifierIndex>" => {
+ "Optional<IdentifierTableIndex>" => {
let mut property_key_field = None;
let mut property_operand_field = None;
for other in &op.fields {
@@ -447,7 +447,7 @@ fn generate_instruction_dump_from_bytes(
w,
" dumper.append_piece(|dumper| dumper.append_string({rname}.0));"
)?,
- "Optional<StringTableIndex>" | "Optional<DebugStringIndex>" => {
+ "Optional<StringTableIndex>" => {
writeln!(w, " if let Some({rname}) = {rname} {{")?;
writeln!(
w,
diff --git a/Libraries/LibJS/Rust/generate/ops.rs b/Libraries/LibJS/Rust/generate/ops.rs
index 63f8f99f3c9..b8739057e17 100644
--- a/Libraries/LibJS/Rust/generate/ops.rs
+++ b/Libraries/LibJS/Rust/generate/ops.rs
@@ -42,8 +42,6 @@ fn rust_type(ty: &str) -> String {
"IdentifierTableIndex" | "PropertyKeyTableIndex" | "StringTableIndex" => ty.to_string(),
"Optional<IdentifierTableIndex>" => "OptionalIndex<IdentifierTableIndex>".to_string(),
"Optional<StringTableIndex>" => "OptionalIndex<StringTableIndex>".to_string(),
- "Optional<DebugIdentifierIndex>" => "OptionalDebugIndex<IdentifierTableIndex>".to_string(),
- "Optional<DebugStringIndex>" => "OptionalDebugIndex<StringTableIndex>".to_string(),
"EnvironmentCoordinate" => "EnvironmentCoordinate".to_string(),
"Value" => "Value".to_string(),
"Builtin" => "u8".to_string(),
diff --git a/Libraries/LibJS/Rust/src/bytecode/codegen/builtins.rs b/Libraries/LibJS/Rust/src/bytecode/codegen/builtins.rs
index 71170cf407b..30610769651 100644
--- a/Libraries/LibJS/Rust/src/bytecode/codegen/builtins.rs
+++ b/Libraries/LibJS/Rust/src/bytecode/codegen/builtins.rs
@@ -135,7 +135,6 @@ impl Generator<'_> {
callee,
this_value,
argument_count: u32_from_usize(arguments.len()),
- expression_string: None,
arguments,
});
}
diff --git a/Libraries/LibJS/Rust/src/bytecode/codegen/constructs.rs b/Libraries/LibJS/Rust/src/bytecode/codegen/constructs.rs
index d5a50f74fa7..de890733cff 100644
--- a/Libraries/LibJS/Rust/src/bytecode/codegen/constructs.rs
+++ b/Libraries/LibJS/Rust/src/bytecode/codegen/constructs.rs
@@ -1310,16 +1310,15 @@ impl Generator<'_> {
callee: next,
this_value: object,
argument_count: 0,
- expression_string: None,
arguments: &[],
});
let awaited = generate_await_of_value(self, &result);
self.put(op::ThrowIfNotObject { src: awaited.operand() });
let done_key = self.intern_property_key_text(crate::utf16::Utf16View::Ascii(b"done"));
- emit_get_by_key(self, &ScopedOperand::plain(done), &awaited, done_key, None);
+ emit_get_by_key(self, &ScopedOperand::plain(done), &awaited, done_key);
self.jump_if(done, end_label);
let value_key = self.intern_property_key_text(crate::utf16::Utf16View::Ascii(b"value"));
- emit_get_by_key(self, &ScopedOperand::plain(value), &awaited, value_key, None);
+ emit_get_by_key(self, &ScopedOperand::plain(value), &awaited, value_key);
self.release_held_registers(held);
} else {
self.put(op::IteratorNextUnpack {
@@ -1834,7 +1833,6 @@ impl Generator<'_> {
&ScopedOperand::plain(property_value),
&ScopedOperand::plain(object),
property_key,
- None,
);
}
if has_rest {
diff --git a/Libraries/LibJS/Rust/src/bytecode/codegen/generators.rs b/Libraries/LibJS/Rust/src/bytecode/codegen/generators.rs
index 6a908c128ee..bec3755a580 100644
--- a/Libraries/LibJS/Rust/src/bytecode/codegen/generators.rs
+++ b/Libraries/LibJS/Rust/src/bytecode/codegen/generators.rs
@@ -45,7 +45,6 @@ fn emit_get_by_known_name(
dst: dst.operand(),
base: base.operand(),
property: key,
- base_identifier: None,
cache,
});
}
@@ -282,7 +281,6 @@ fn generate_yield_from(
callee: next_method.operand(),
this_value: iterator.operand(),
argument_count: 1,
- expression_string: None,
arguments: &[received_completion_value.operand()],
});
@@ -391,7 +389,6 @@ fn generate_yield_from(
callee: throw_method.operand(),
this_value: iterator.operand(),
argument_count: 1,
- expression_string: None,
arguments: &[received_completion_value.operand()],
});
@@ -480,7 +477,6 @@ fn generate_yield_from(
callee: return_method.operand(),
this_value: iterator.operand(),
argument_count: 0,
- expression_string: None,
arguments: &[],
});
@@ -573,7 +569,6 @@ fn generate_yield_from(
callee: return_method.operand(),
this_value: iterator.operand(),
argument_count: 1,
- expression_string: None,
arguments: &[received_completion_value.operand()],
});
diff --git a/Libraries/LibJS/Rust/src/bytecode/codegen/members.rs b/Libraries/LibJS/Rust/src/bytecode/codegen/members.rs
index ba24cb01cef..d4ade8fbd01 100644
--- a/Libraries/LibJS/Rust/src/bytecode/codegen/members.rs
+++ b/Libraries/LibJS/Rust/src/bytecode/codegen/members.rs
@@ -24,7 +24,6 @@ pub(super) fn emit_get_by_key(
dst: &ScopedOperand,
base: &ScopedOperand,
key: PropertyKeyTableIndex,
- base_identifier: Option<IdentifierTableIndex>,
) {
if generator.context.names.is_length_property_key(key) {
generator.length_identifier = Some(key);
@@ -36,7 +35,6 @@ pub(super) fn emit_get_by_key(
keyed_feedback,
dst: dst.operand(),
base: base.operand(),
- base_identifier,
cache,
});
} else {
@@ -47,7 +45,6 @@ pub(super) fn emit_get_by_key(
dst: dst.operand(),
base: base.operand(),
property: key,
- base_identifier,
cache,
});
}
@@ -94,7 +91,6 @@ pub(super) fn emit_get_by_value(
dst: &ScopedOperand,
base: &ScopedOperand,
property: &ScopedOperand,
- base_identifier: Option<IdentifierTableIndex>,
) {
if let Some(key) = generator.try_constant_string_to_property_key(property) {
if generator.context.names.is_length_property_key(key) {
@@ -107,7 +103,6 @@ pub(super) fn emit_get_by_value(
keyed_feedback,
dst: dst.operand(),
base: base.operand(),
- base_identifier,
cache,
});
} else {
@@ -118,7 +113,6 @@ pub(super) fn emit_get_by_value(
dst: dst.operand(),
base: base.operand(),
property: key,
- base_identifier,
cache,
});
}
@@ -133,7 +127,6 @@ pub(super) fn emit_get_by_value(
dst: dst.operand(),
base: base.operand(),
property: property.operand(),
- base_identifier,
cache,
});
}
@@ -188,7 +181,6 @@ pub(super) fn emit_put_normal_by_value(
base: &ScopedOperand,
property: &ScopedOperand,
src: &ScopedOperand,
- base_identifier: Option<IdentifierTableIndex>,
) {
if let Some(key) = generator.try_constant_string_to_property_key(property) {
let cache = generator.next_property_lookup_cache();
@@ -197,7 +189,6 @@ pub(super) fn emit_put_normal_by_value(
property: key,
src: src.operand(),
cache,
- base_identifier,
kind: PutKind::Normal as u32,
});
return;
@@ -209,7 +200,6 @@ pub(super) fn emit_put_normal_by_value(
base: base.operand(),
property: property.operand(),
src: src.operand(),
- base_identifier,
kind: PutKind::Normal as u32,
cache,
});
@@ -259,7 +249,6 @@ pub(super) fn emit_put_by_value(
property: key,
src: src.operand(),
cache,
- base_identifier: None,
kind: kind as u32,
});
return;
@@ -271,7 +260,6 @@ pub(super) fn emit_put_by_value(
base: base.operand(),
property: property.operand(),
src: src.operand(),
- base_identifier: None,
kind: kind as u32,
cache,
});
diff --git a/Libraries/LibJS/Rust/src/bytecode/codegen/stream.rs b/Libraries/LibJS/Rust/src/bytecode/codegen/stream.rs
index 5cc9ed137e6..7c313d5feb9 100644
--- a/Libraries/LibJS/Rust/src/bytecode/codegen/stream.rs
+++ b/Libraries/LibJS/Rust/src/bytecode/codegen/stream.rs
@@ -1393,7 +1393,6 @@ impl Generator<'_> {
callee: method,
this_value: iterator.object,
argument_count: 0,
- expression_string: None,
arguments: &[],
});
generate_await_of_value(self, &ScopedOperand::plain(result)).operand()
@@ -1922,7 +1921,6 @@ impl Generator<'_> {
keyed_feedback,
dst,
base,
- base_identifier: None,
cache,
},
dst,
@@ -1936,7 +1934,6 @@ impl Generator<'_> {
dst,
base,
property: key,
- base_identifier: None,
cache,
},
dst,
@@ -1960,7 +1957,6 @@ impl Generator<'_> {
&ScopedOperand::plain(dst),
&ScopedOperand::plain(base),
&ScopedOperand::plain(key),
- None,
);
}
@@ -2268,7 +2264,6 @@ impl Generator<'_> {
callee: callee_operand,
this_value,
argument_count: operand_list_count(arguments.len()),
- expression_string: None,
arguments: &arguments,
},
dst,
@@ -2296,7 +2291,6 @@ impl Generator<'_> {
dst,
callee,
argument_count: operand_list_count(arguments.len()),
- expression_string: None,
arguments: &arguments,
},
dst,
@@ -2332,7 +2326,6 @@ impl Generator<'_> {
callee: callee_operand,
this_value,
argument_count: operand_list_count(arguments.len()),
- expression_string: None,
arguments: &arguments,
},
dst,
@@ -2361,7 +2354,6 @@ impl Generator<'_> {
callee: callee_operand,
this_value,
arguments,
- expression_string: None,
},
dst,
);
@@ -2388,7 +2380,6 @@ impl Generator<'_> {
callee: callee_operand,
this_value,
arguments,
- expression_string: None,
},
dst,
);
@@ -2411,7 +2402,6 @@ impl Generator<'_> {
callee,
this_value,
arguments,
- expression_string: None,
},
dst,
);
@@ -3097,7 +3087,6 @@ impl Generator<'_> {
property: key,
src: value,
cache,
- base_identifier: None,
kind: libjs_abi::PutKind::Normal as u32,
});
}
@@ -3107,7 +3096,6 @@ impl Generator<'_> {
&ScopedOperand::plain(target.a),
&ScopedOperand::plain(target.b),
&ScopedOperand::plain(value),
- None,
);
}
ValKind::SuperTarget => {
@@ -3549,7 +3537,6 @@ impl Generator<'_> {
property: key,
src: value,
cache,
- base_identifier: None,
kind: libjs_abi::PutKind::Own as u32,
});
}
@@ -3572,7 +3559,6 @@ impl Generator<'_> {
property: key,
src: value,
cache,
- base_identifier: None,
kind: kind as u32,
});
self.release_temporaries_from(object.index() + 1);
diff --git a/Libraries/LibJS/Rust/src/bytecode/encoding.rs b/Libraries/LibJS/Rust/src/bytecode/encoding.rs
index e4c7806c691..9c2e20f4493 100644
--- a/Libraries/LibJS/Rust/src/bytecode/encoding.rs
+++ b/Libraries/LibJS/Rust/src/bytecode/encoding.rs
@@ -86,17 +86,6 @@ define_table_index!(IdentifierTableIndex, PropertyKeyTableIndex, StringTableInde
#[repr(C, packed)]
pub struct OptionalIndex<T>(pub [u8; 3], PhantomData<T>);
-/// A name that only makes error messages better, which instructions hold in two bytes.
-#[repr(C, packed)]
-pub struct OptionalDebugIndex<T>(pub u16, PhantomData<T>);
-
-impl<T: From<[u8; 3]>> OptionalDebugIndex<T> {
- pub fn get(&self) -> Option<T> {
- let raw = self.0;
- (raw != u16::MAX).then(|| T::from(super::operand::name_index_bytes(u32::from(raw))))
- }
-}
-
impl<T: From<[u8; 3]>> OptionalIndex<T> {
pub fn get(&self) -> Option<T> {
let raw = self.0;
diff --git a/Libraries/LibJS/Rust/src/bytecode/executable.rs b/Libraries/LibJS/Rust/src/bytecode/executable.rs
index b0c2440ab6e..c936d89c5a2 100644
--- a/Libraries/LibJS/Rust/src/bytecode/executable.rs
+++ b/Libraries/LibJS/Rust/src/bytecode/executable.rs
@@ -1654,14 +1654,14 @@ impl Executable {
Some((units, source_offset - start))
}
- /// The text of what the call or `new` at `offset` calls, for code that left that out of its tables.
+ /// The text of what the call or `new` at `offset` calls, from the source.
pub fn callee_text_at(&self, offset: u32) -> Option<ak::Utf16FlyString> {
let (units, at) = self.source_around(offset)?;
let text = crate::bytecode::reference_text::callee_text(&units, at)?;
Some(ak::Utf16FlyString::from_utf16(&text))
}
- /// The text of the base of the member access at `offset`, for code that left that out of its tables.
+ /// The text of the base of the member access at `offset`, from the source.
pub fn base_text_at(&self, offset: u32) -> Option<ak::Utf16FlyString> {
let (units, at) = self.source_around(offset)?;
let text = crate::bytecode::reference_text::base_text(&units, at)?;
diff --git a/Libraries/LibJS/Rust/src/bytecode/operand.rs b/Libraries/LibJS/Rust/src/bytecode/operand.rs
index 30a57b75d90..0a9dbfa85c6 100644
--- a/Libraries/LibJS/Rust/src/bytecode/operand.rs
+++ b/Libraries/LibJS/Rust/src/bytecode/operand.rs
@@ -34,12 +34,6 @@ pub fn name_index_bytes(index: u32) -> [u8; 3] {
[low, middle, high]
}
-/// The name table index of a debug name as an instruction holds it, or all bits set for none.
-#[inline]
-pub fn debug_name_index(index: Option<u32>) -> u16 {
- index.and_then(|index| u16::try_from(index).ok()).unwrap_or(u16::MAX)
-}
-
#[inline]
pub fn read_u24(bytes: &[u8], at: usize) -> u32 {
u32::from_le_bytes([bytes[at], bytes[at + 1], bytes[at + 2], 0])
diff --git a/Libraries/LibJS/Rust/src/interpreter/slow_paths/calls.rs b/Libraries/LibJS/Rust/src/interpreter/slow_paths/calls.rs
index d189037ab0a..aa09d5418bd 100644
--- a/Libraries/LibJS/Rust/src/interpreter/slow_paths/calls.rs
+++ b/Libraries/LibJS/Rust/src/interpreter/slow_paths/calls.rs
@@ -6,11 +6,11 @@
//! The slow paths for calls, function and class creation, and their helpers.
-use ak::{ScopeGuard, Utf16FlyString};
+use ak::ScopeGuard;
use libjs_abi::{ArgumentsKind, FunctionNamePrefix};
use super::strict_at;
-use crate::bytecode::encoding::{OptionalOperand, StringTableIndex};
+use crate::bytecode::encoding::OptionalOperand;
use crate::bytecode::op;
use crate::bytecode::property_access::Strict;
use crate::interpreter::runtime_functions::{
@@ -71,11 +71,6 @@ fn caller_mode_of(strict: Strict) -> CallerMode {
}
}
-/// Executable::get_string().
-fn get_string(vm: &Vm, index: StringTableIndex) -> Utf16FlyString {
- vm.current_executable().string_table()[index.index()].clone()
-}
-
/// Value::as_array_exotic_object(): the arguments the bytecode collected into an Array for a call.
fn as_array_exotic_object(value: Value) -> Gc<Array> {
value
@@ -247,20 +242,7 @@ pub fn new_class(
}
#[cold]
-fn throw_type_error_for_asm_callee(
- vm: &Vm,
- callee: Value,
- callee_type: &str,
- expression_string: Option<StringTableIndex>,
-) -> ThrowCompletionOr<()> {
- if let Some(expression_string) = expression_string {
- return vm.throw_completion(
- ErrorKind::TypeError,
- ErrorType::IsNotAEvaluatedFrom,
- &[&callee, &callee_type, &get_string(vm, expression_string)],
- );
- }
-
+fn throw_type_error_for_asm_callee(vm: &Vm, callee: Value, callee_type: &str) -> ThrowCompletionOr<()> {
let program_counter = vm.running_execution_context_ref().program_counter.get();
if let Some(text) = vm.current_executable().callee_text_at(program_counter) {
return vm.throw_completion(
@@ -272,17 +254,12 @@ fn throw_type_error_for_asm_callee(
vm.throw_completion(ErrorKind::TypeError, ErrorType::IsNotA, &[&callee, &callee_type])
}
-pub(crate) fn throw_if_needed_for_asm_call(
- vm: &Vm,
- callee: Value,
- call_type: CallType,
- expression_string: Option<StringTableIndex>,
-) -> ThrowCompletionOr<()> {
+pub(crate) fn throw_if_needed_for_asm_call(vm: &Vm, callee: Value, call_type: CallType) -> ThrowCompletionOr<()> {
if (call_type == CallType::Call || call_type == CallType::DirectEval) && !callee.is_function() {
- return throw_type_error_for_asm_callee(vm, callee, "function", expression_string);
+ return throw_type_error_for_asm_callee(vm, callee, "function");
}
if call_type == CallType::Construct && !callee.is_constructor() {
- return throw_type_error_for_asm_callee(vm, callee, "constructor", expression_string);
+ return throw_type_error_for_asm_callee(vm, callee, "constructor");
}
Ok(())
}
@@ -325,10 +302,9 @@ pub(crate) fn execute_asm_call(
this_value: Value,
arguments: &[Value],
dst: &mut Value,
- expression_string: Option<StringTableIndex>,
strict: Strict,
) -> ThrowCompletionOr<()> {
- throw_if_needed_for_asm_call(vm, callee, call_type, expression_string)?;
+ throw_if_needed_for_asm_call(vm, callee, call_type)?;
let function = callee.as_function();
@@ -427,7 +403,6 @@ pub fn call(
values.this_value,
arguments,
&mut values.dst,
- instruction.expression_string.get(),
strict_at(vm, pc),
)
);
@@ -440,10 +415,9 @@ fn call_direct_eval_impl(
this_value: Value,
arguments: &[Value],
dst: &mut Value,
- expression_string: Option<StringTableIndex>,
strict: Strict,
) -> ThrowCompletionOr<()> {
- throw_if_needed_for_asm_call(vm, callee, CallType::DirectEval, expression_string)?;
+ throw_if_needed_for_asm_call(vm, callee, CallType::DirectEval)?;
let function = callee.as_function();
@@ -495,7 +469,6 @@ pub fn call_direct_eval(
values.this_value,
arguments,
&mut values.dst,
- instruction.expression_string.get(),
strict_at(vm, pc),
)
);
@@ -510,10 +483,9 @@ fn call_with_argument_array_impl(
this_value: Value,
arguments: Value,
dst: &mut Value,
- expression_string: Option<StringTableIndex>,
strict: Strict,
) -> ThrowCompletionOr<()> {
- throw_if_needed_for_asm_call(vm, callee, call_type, expression_string)?;
+ throw_if_needed_for_asm_call(vm, callee, call_type)?;
let function = callee.as_function();
@@ -579,7 +551,7 @@ fn call_with_argument_array_impl(
pub fn call_with_argument_array(
vm: &Vm,
pc: u32,
- instruction: &op::CallWithArgumentArray,
+ _instruction: &op::CallWithArgumentArray,
values: &mut op::CallWithArgumentArrayValues,
) -> SlowPathControl {
asm_try!(
@@ -592,7 +564,6 @@ pub fn call_with_argument_array(
values.this_value,
values.arguments,
&mut values.dst,
- instruction.expression_string.get(),
strict_at(vm, pc),
)
);
@@ -602,7 +573,7 @@ pub fn call_with_argument_array(
pub fn call_direct_eval_with_argument_array(
vm: &Vm,
pc: u32,
- instruction: &op::CallDirectEvalWithArgumentArray,
+ _instruction: &op::CallDirectEvalWithArgumentArray,
values: &mut op::CallDirectEvalWithArgumentArrayValues,
) -> SlowPathControl {
asm_try!(
@@ -615,7 +586,6 @@ pub fn call_direct_eval_with_argument_array(
values.this_value,
values.arguments,
&mut values.dst,
- instruction.expression_string.get(),
strict_at(vm, pc),
)
);
@@ -677,7 +647,6 @@ pub fn call_construct(
Value::UNDEFINED,
arguments,
&mut values.dst,
- instruction.expression_string.get(),
strict_at(vm, pc),
)
);
@@ -687,7 +656,7 @@ pub fn call_construct(
pub fn call_construct_with_argument_array(
vm: &Vm,
pc: u32,
- instruction: &op::CallConstructWithArgumentArray,
+ _instruction: &op::CallConstructWithArgumentArray,
values: &mut op::CallConstructWithArgumentArrayValues,
) -> SlowPathControl {
asm_try!(
@@ -700,7 +669,6 @@ pub fn call_construct_with_argument_array(
Value::UNDEFINED,
values.arguments,
&mut values.dst,
- instruction.expression_string.get(),
strict_at(vm, pc),
)
);
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 a55550c8cf0..3652436ac3e 100644
--- a/Libraries/LibJS/Rust/src/interpreter/slow_paths/property_access.rs
+++ b/Libraries/LibJS/Rust/src/interpreter/slow_paths/property_access.rs
@@ -14,7 +14,6 @@ use libjs_abi::PutKind;
use libjs_abi::value as nan_box;
use super::strict_at;
-use crate::bytecode::encoding::{IdentifierTableIndex, OptionalDebugIndex};
use crate::bytecode::executable::{
Executable, KeyedPropertyLookup, KeyedPropertyLookupCache, ObjectPropertyIteratorCache,
ObjectPropertyIteratorCacheData, ObjectPropertyIteratorFastPath, PropertyLookupCache, PropertyLookupCacheEntryType,
@@ -65,12 +64,10 @@ fn is_non_negative_int32(value: Value) -> bool {
value.is_int32() && value.as_i32() >= 0
}
-fn optional_identifier(vm: &Vm, index: &OptionalDebugIndex<IdentifierTableIndex>) -> Option<Utf16FlyString> {
- let Some(index) = index.get() else {
- let program_counter = vm.running_execution_context_ref().program_counter.get();
- return vm.current_executable().base_text_at(program_counter);
- };
- Some(vm.current_executable().get_identifier(index).clone())
+/// The source text of the base of the member access that is running, for the error of a null or undefined base.
+fn base_text(vm: &Vm) -> Option<Utf16FlyString> {
+ let program_counter = vm.running_execution_context_ref().program_counter.get();
+ vm.current_executable().base_text_at(program_counter)
}
fn running_private_environment(vm: &Vm) -> Gc<PrivateEnvironment> {
@@ -141,7 +138,7 @@ pub fn get_by_id(vm: &Vm, pc: u32, instruction: &op::GetById, values: &mut op::G
property_access::get_by_id(
vm,
GetByIdMode::Normal,
- || optional_identifier(vm, &instruction.base_identifier),
+ || base_text(vm),
property_key,
base_value,
base_value,
@@ -229,7 +226,7 @@ pub fn put_by_id(vm: &Vm, pc: u32, instruction: &op::PutById, values: &mut op::P
base,
base,
value,
- || optional_identifier(vm, &instruction.base_identifier),
+ || base_text(vm),
property_key,
put_kind_from_operand(instruction.kind),
strict_at(vm, pc),
@@ -339,12 +336,7 @@ pub fn get_by_value(
let object = asm_try!(
vm,
pc,
- base_object_for_get(
- vm,
- base_value,
- || optional_identifier(vm, &instruction.base_identifier),
- &property_key_value,
- )
+ base_object_for_get(vm, base_value, || base_text(vm), &property_key_value)
);
let property_key = asm_try!(vm, pc, property_key_value.to_property_key(vm));
if base_value.is_string() {
@@ -406,7 +398,7 @@ pub fn get_length(vm: &Vm, pc: u32, instruction: &op::GetLength, values: &mut op
property_access::get_by_id(
vm,
GetByIdMode::Length,
- || optional_identifier(vm, &instruction.base_identifier),
+ || base_text(vm),
length_property_key(&executable),
base_value,
base_value,
@@ -467,13 +459,7 @@ pub fn put_by_value(
asm_try!(
vm,
pc,
- throw_if_nullish_put_base(
- vm,
- base,
- || optional_identifier(vm, &instruction.base_identifier),
- &property,
- strict_at(vm, pc),
- )
+ throw_if_nullish_put_base(vm, base, || base_text(vm), &property, strict_at(vm, pc))
);
let property_key = asm_try!(vm, pc, property.to_property_key(vm));
let cache_key = match site_cache {
@@ -491,7 +477,7 @@ pub fn put_by_value(
base,
base,
value,
- || optional_identifier(vm, &instruction.base_identifier),
+ || base_text(vm),
&property_key,
put_kind_from_operand(instruction.kind),
strict_at(vm, pc),
@@ -509,7 +495,7 @@ pub fn put_by_value(
asm_try!(
vm,
pc,
- put_by_value_with_keyed_store_cache(vm, pc, instruction, base, property, value, &property_key)
+ put_by_value_with_keyed_store_cache(vm, pc, base, property, value, &property_key)
);
return SlowPathControl::continue_at(pc + op::PutByValue::LENGTH);
}
@@ -521,7 +507,7 @@ pub fn put_by_value(
base,
base,
value,
- || optional_identifier(vm, &instruction.base_identifier),
+ || base_text(vm),
&property_key,
put_kind_from_operand(instruction.kind),
strict_at(vm, pc),
@@ -540,7 +526,6 @@ pub fn put_by_value(
fn put_by_value_with_keyed_store_cache(
vm: &Vm,
pc: u32,
- instruction: &op::PutByValue,
base: Value,
key: Value,
value: Value,
@@ -557,7 +542,7 @@ fn put_by_value_with_keyed_store_cache(
base,
base,
value,
- || optional_identifier(vm, &instruction.base_identifier),
+ || base_text(vm),
property_key,
PutKind::Normal,
strict_at(vm, pc),
diff --git a/Libraries/LibJS/Rust/src/jit/calls.rs b/Libraries/LibJS/Rust/src/jit/calls.rs
index 074f1c80334..8f6d92cbe1d 100644
--- a/Libraries/LibJS/Rust/src/jit/calls.rs
+++ b/Libraries/LibJS/Rust/src/jit/calls.rs
@@ -519,7 +519,6 @@ fn call_from_jit_or_generic(
this_value,
arguments,
&mut result,
- None,
crate::bytecode::property_access::Strict::No,
) {
return handle_asm_exception(vm, site.pc, throw.value());
@@ -806,7 +805,7 @@ fn call_spreading_arguments_from_jit(
return handle_asm_exception(vm, pc, completion.value());
}
let callee = slots[call.callee.0 as usize].get();
- if let Err(throw) = throw_if_needed_for_asm_call(vm, callee, CallType::Call, call.expression_string.get()) {
+ if let Err(throw) = throw_if_needed_for_asm_call(vm, callee, CallType::Call) {
return handle_asm_exception(vm, pc, throw.value());
}
let this_value = slots[call.this_value.0 as usize].get();
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 5f08eda0900..fda04c0988c 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 @@
-$524fbd5b annex-b-function-in-if.js:13:1
+$95c4aaaf annex-b-function-in-if.js:13:1
Registers: 9
Blocks: 1
Constants:
@@ -11,18 +11,18 @@ block0:
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `console`
[ d] GetById value_feedback:1, dst:reg7, base:reg6, `log`
- [ 19] GetGlobal value_feedback:2, dst:reg8, `annexBFunctionInIf`
- [ 22] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined, arguments:[Bool(true)]
- [ 2e] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 3a] GetGlobal value_feedback:5, dst:reg6, `console`
- [ 43] GetById value_feedback:6, dst:reg7, base:reg6, `log`
- [ 4f] GetGlobal value_feedback:7, dst:reg8, `annexBFunctionInIf`
- [ 58] Call value_feedback:8, call_feedback:2, dst:reg8, callee:reg8, this_value:Undefined, arguments:[Bool(false)]
- [ 64] Call value_feedback:9, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 70] End value:reg5
+ [ 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
-annexBFunctionInIf$43bb16cf annex-b-function-in-if.js:2:10
+annexBFunctionInIf$a36298ad annex-b-function-in-if.js:2:10
Registers: 6
Blocks: 4
Locals: inner~0, inner~1, inner~2
@@ -45,7 +45,7 @@ block2:
block3:
[ 29] Call value_feedback:0, call_feedback:0, dst:reg5, callee:inner~0, this_value:Undefined
- [ 34] Return value:reg5
+ [ 32] 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 2da4f947011..775d247a61d 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 @@
-$a3d8fdc4 annexb-function-existing-var.js:10:1
+$44317be6 annexb-function-existing-var.js:10:1
Registers: 7
Blocks: 1
Constants:
@@ -9,7 +9,7 @@ block0:
[ 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
- [ 18] End value:reg5
+ [ 16] End value:reg5
test$e8f3bec6 annexb-function-existing-var.js:2:9
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 7ee90b178a5..a1734c826b6 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 @@
-$ef3f58e2 annexb-var-coordinate-with-default-param.js:12:1
+$4ee6dac0 annexb-var-coordinate-with-default-param.js:12:1
Registers: 7
Blocks: 1
Constants:
@@ -9,10 +9,10 @@ block0:
[ 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
- [ 18] End value:reg5
+ [ 16] End value:reg5
-f$55a21bf0 annexb-var-coordinate-with-default-param.js:3:12
+f$36ab9656 annexb-var-coordinate-with-default-param.js:3:12
Registers: 7
Blocks: 3
Locals: g~0, g~1
@@ -40,7 +40,7 @@ block2:
[ 4a] NewFunction dst:g~1, shared_function_data_index:0
[ 54] Mov dst:g~0, src:g~1
[ 57] Call value_feedback:0, call_feedback:0, dst:reg6, callee:g~0, this_value:Undefined
- [ 62] Return value:reg6
+ [ 60] Return value:reg6
g$66f9ea5f annexb-var-coordinate-with-default-param.js:7:13
diff --git a/Tests/LibJS/Bytecode/expected/argument-postfix-self-move.txt b/Tests/LibJS/Bytecode/expected/argument-postfix-self-move.txt
index 9d5241aaf70..193ac4b955e 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 @@
-$eca9d76a argument-postfix-self-move.js:5:1
+$4c515948 argument-postfix-self-move.js:5:1
Registers: 7
Blocks: 1
Constants:
@@ -10,7 +10,7 @@ block0:
[ 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)]
- [ 19] End value:reg5
+ [ 17] 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 47b5786578e..5d733a85647 100644
--- a/Tests/LibJS/Bytecode/expected/argument-variables.txt
+++ b/Tests/LibJS/Bytecode/expected/argument-variables.txt
@@ -1,4 +1,4 @@
-$25fcf479 argument-variables.js:12:1
+$e80fe945 argument-variables.js:12:1
Registers: 7
Blocks: 1
Constants:
@@ -11,9 +11,9 @@ block0:
[ 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)]
- [ 19] GetGlobal value_feedback:2, dst:reg6, `swap`
- [ 22] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(1), Int32(2)]
- [ 2f] End value:reg5
+ [ 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
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 b5b9bca47f9..c6cf2ab7fab 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 @@
-$559fc86a arguments-with-arguments-fn.js:4:1
+$b5474a48 arguments-with-arguments-fn.js:4:1
Registers: 7
Blocks: 1
Constants:
@@ -9,7 +9,7 @@ block0:
[ 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
- [ 18] End value:reg5
+ [ 16] End value:reg5
f$baed9c7b arguments-with-arguments-fn.js:1:12
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 a5df97b4d06..7321e059760 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 @@
-$3ae30cc4 assign-to-argument-no-tdz.js:11:1
+$db3b8ae6 assign-to-argument-no-tdz.js:11:1
Registers: 7
Blocks: 1
Constants:
@@ -10,7 +10,7 @@ block0:
[ 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)]
- [ 19] End value:reg5
+ [ 17] 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 edf0ada0a26..034d5418102 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 @@
-$25fcf479 assign-to-let-variable-tdz.js:12:1
+$88686767 assign-to-let-variable-tdz.js:12:1
Registers: 8
Blocks: 1
Constants:
@@ -13,10 +13,10 @@ block0:
[ 11] InitObjectLiteralProperty object:reg7, `location`, src:String("hello"), shape_cache_index:0, property_slot:0
[ 1f] CacheObjectShape object:reg7
[ 23] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
- [ 2f] End value:reg5
+ [ 2d] End value:reg5
-f$8e322287 assign-to-let-variable-tdz.js:7:5
+f$4d812643 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`
- [ 15] Typeof dst:reg5, src:a~0
- [ 18] LooselyEquals arith_feedback:0, dst:reg5, lhs:String("string"), rhs:reg5
- [ 1e] JumpFalse condition:reg5, target:block2
+ [ 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
block1:
- [ 24] GetGlobal value_feedback:1, dst:reg6, `g`
- [ 2d] Call value_feedback:2, call_feedback:0, dst:a~0, callee:reg6, this_value:Undefined, arguments:[a~0]
- [ 39] Mov dst:reg5, src:a~0
+ [ 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
block2:
- [ 3c] Return value:a~0
+ [ 38] 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 03ee04cf9a9..b09bb84fe69 100644
--- a/Tests/LibJS/Bytecode/expected/assign-to-parameter.txt
+++ b/Tests/LibJS/Bytecode/expected/assign-to-parameter.txt
@@ -1,4 +1,4 @@
-$3d7119a6 assign-to-parameter.js:8:1
+$9d189b84 assign-to-parameter.js:8:1
Registers: 7
Blocks: 1
Constants:
@@ -9,7 +9,7 @@ block0:
[ 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
- [ 18] End value:reg5
+ [ 16] 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 8d814e56cb7..0bec156b72a 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 @@
-$93ca2c62 async-await-in-try-catch.js:9:1
+$f371ae40 async-await-in-try-catch.js:9:1
Registers: 8
Blocks: 1
Constants:
@@ -10,7 +10,7 @@ block0:
[ 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]
- [ 1d] End value:reg5
+ [ 1b] 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 335cc52678b..6a369eb5f09 100644
--- a/Tests/LibJS/Bytecode/expected/async-await.txt
+++ b/Tests/LibJS/Bytecode/expected/async-await.txt
@@ -1,4 +1,4 @@
-$24a767b7 async-await.js:9:1
+$844ee995 async-await.js:9:1
Registers: 7
Blocks: 1
Constants:
@@ -9,10 +9,10 @@ block0:
[ 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
- [ 18] End value:reg5
+ [ 16] End value:reg5
-f$eef607f8 async-await.js:7:5
+f$ab811aa4 async-await.js:7:5
Registers: 10
Blocks: 4
Constants:
@@ -22,19 +22,19 @@ block0:
[ 0] Enter
[ 1] GetGlobal value_feedback:0, dst:reg5, `Promise`
[ a] GetById value_feedback:1, dst:reg6, base:reg5, `resolve`
- [ 16] Call value_feedback:2, call_feedback:0, dst:reg5, callee:reg6, this_value:reg5, arguments:[Int32(42)]
- [ 22] Mov dst:reg6, src:reg0
- [ 25] Await continuation_label:block1, argument:reg5
+ [ 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
block1:
- [ 2b] Mov dst:reg6, src:reg0
- [ 2e] GetCompletionFields type_dst:reg7, value_dst:reg8, completion:reg6
- [ 32] StrictlyEqualsRhsInt32 arith_feedback:0, dst:reg9, lhs:reg7, rhs:1
- [ 3b] JumpIf condition:reg9, true_target:block3, false_target:block2
+ [ 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
block2:
- [ 45] Throw src:reg8
+ [ 41] Throw src:reg8
block3:
- [ 47] Mov dst:reg5, src:reg8
- [ 4a] Yield value:reg5
+ [ 43] Mov dst:reg5, src:reg8
+ [ 46] 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 d0675bf29ec..8b9d7d7c792 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 @@
-$0c33eb99 async-generator-yield-await.js:6:1
+$ac8c69bb async-generator-yield-await.js:6:1
Registers: 7
Blocks: 1
Constants:
@@ -10,7 +10,7 @@ block0:
[ 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)]
- [ 19] End value:reg5
+ [ 17] End value:reg5
f$a950b829 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 d8d6a40867d..aa6db55987c 100644
--- a/Tests/LibJS/Bytecode/expected/async-generator-yield.txt
+++ b/Tests/LibJS/Bytecode/expected/async-generator-yield.txt
@@ -1,4 +1,4 @@
-$5311bb88 async-generator-yield.js:7:1
+$f36a39aa async-generator-yield.js:7:1
Registers: 7
Blocks: 1
Constants:
@@ -10,7 +10,7 @@ block0:
[ 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)]
- [ 19] End value:reg5
+ [ 17] End value:reg5
f$719080a0 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 c063bf47b4a..e3f0a04addd 100644
--- a/Tests/LibJS/Bytecode/expected/async-return-bare.txt
+++ b/Tests/LibJS/Bytecode/expected/async-return-bare.txt
@@ -1,4 +1,4 @@
-$559fc86a async-return-bare.js:4:1
+$b5474a48 async-return-bare.js:4:1
Registers: 7
Blocks: 1
Constants:
@@ -9,7 +9,7 @@ block0:
[ 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
- [ 18] End value:reg5
+ [ 16] 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 02c162dc26a..ec9e34e37ac 100644
--- a/Tests/LibJS/Bytecode/expected/baseline.txt
+++ b/Tests/LibJS/Bytecode/expected/baseline.txt
@@ -1,4 +1,4 @@
-$928a37ac baseline.js:5:1
+$b180bd46 baseline.js:5:1
Registers: 9
Blocks: 1
Constants:
@@ -11,10 +11,10 @@ block0:
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `console`
[ d] GetById value_feedback:1, dst:reg7, base:reg6, `log`
- [ 19] GetGlobal value_feedback:2, dst:reg8, `add`
- [ 22] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined, arguments:[Int32(1), Int32(2)]
- [ 2f] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 3b] End value:reg5
+ [ 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
add$51ccd01a baseline.js:2:5
diff --git a/Tests/LibJS/Bytecode/expected/bitwise-numeric-preconvert.txt b/Tests/LibJS/Bytecode/expected/bitwise-numeric-preconvert.txt
index 88c68120e48..3c790e35c7e 100644
--- a/Tests/LibJS/Bytecode/expected/bitwise-numeric-preconvert.txt
+++ b/Tests/LibJS/Bytecode/expected/bitwise-numeric-preconvert.txt
@@ -1,4 +1,4 @@
-$a5cc077b bitwise-numeric-preconvert.js:4:1
+$05738959 bitwise-numeric-preconvert.js:4:1
Registers: 7
Blocks: 1
Constants:
@@ -10,7 +10,7 @@ block0:
[ 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)]
- [ 19] End value:reg5
+ [ 17] End value:reg5
test$3a08f185 bitwise-numeric-preconvert.js:2:5
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 c640b3f905e..61aa7834c76 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 @@
-$59d21dc8 block-scoped-function-no-tdz.js:1:1
+$3adb982e block-scoped-function-no-tdz.js:1:1
Registers: 7
Blocks: 1
Constants:
@@ -11,10 +11,10 @@ block0:
[ 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
- [ 1b] End value:reg5
+ [ 19] End value:reg5
-test$c0aeca0a block-scoped-function-no-tdz.js:3:9
+test$20564be8 block-scoped-function-no-tdz.js:3:9
Registers: 6
Blocks: 1
Locals: result~0, foo~1
@@ -26,7 +26,7 @@ block0:
[ 1] Mov dst:result~0, src:Undefined
[ 4] NewFunction dst:foo~1, shared_function_data_index:0
[ e] Call value_feedback:0, call_feedback:0, dst:result~0, callee:foo~1, this_value:Undefined
- [ 19] Return value:result~0
+ [ 17] 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 3589d30d9d0..03580233c57 100644
--- a/Tests/LibJS/Bytecode/expected/block-scoping.txt
+++ b/Tests/LibJS/Bytecode/expected/block-scoping.txt
@@ -1,4 +1,4 @@
-$b1f73f39 block-scoping.js:13:1
+$f56c2c8d block-scoping.js:13:1
Registers: 9
Blocks: 1
Constants:
@@ -9,18 +9,18 @@ block0:
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `console`
[ d] GetById value_feedback:1, dst:reg7, base:reg6, `log`
- [ 19] GetGlobal value_feedback:2, dst:reg8, `closureOverBlockScope`
- [ 22] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined
- [ 2d] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 39] GetGlobal value_feedback:5, dst:reg6, `console`
- [ 42] GetById value_feedback:6, dst:reg7, base:reg6, `log`
- [ 4e] GetGlobal value_feedback:7, dst:reg8, `breakThroughBlockScopes`
- [ 57] Call value_feedback:8, call_feedback:2, dst:reg8, callee:reg8, this_value:Undefined
- [ 62] Call value_feedback:9, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 6e] End value:reg5
-
-
-closureOverBlockScope$16202b50 block-scoping.js:2:15
+ [ 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$0dd45820 block-scoping.js:2:15
Registers: 8
Blocks: 1
Locals: fns~0
@@ -37,22 +37,22 @@ block0:
[ 12] CreateVariable `x`, is_immutable:false, is_global:false, is_strict:false
[ 1d] InitializeLexicalBinding `x`, src:Int32(1)
[ 2a] GetById value_feedback:0, dst:reg6, base:fns~0, `push`
- [ 36] NewFunction dst:reg7, shared_function_data_index:0
- [ 40] Call value_feedback:1, call_feedback:0, dst:reg6, callee:reg6, this_value:fns~0, arguments:[reg7]
- [ 4c] SetLexicalEnvironment environment:reg4
- [ 4e] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false
- [ 5a] CreateVariable `y`, is_immutable:false, is_global:false, is_strict:false
- [ 65] InitializeLexicalBinding `y`, src:Int32(2)
- [ 72] GetById value_feedback:2, dst:reg6, base:fns~0, `push`
- [ 7e] NewFunction dst:reg7, shared_function_data_index:1
- [ 88] Call value_feedback:3, call_feedback:1, dst:reg6, callee:reg6, this_value:fns~0, arguments:[reg7]
- [ 94] SetLexicalEnvironment environment:reg4
- [ 96] GetByValue value_feedback:4, keyed_feedback:0, dst:reg5, base:fns~0, property:Int32(0)
- [ a2] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg5, this_value:fns~0
- [ ad] GetByValue value_feedback:6, keyed_feedback:1, dst:reg6, base:fns~0, property:Int32(1)
- [ b9] Call value_feedback:7, call_feedback:3, dst:reg6, callee:reg6, this_value:fns~0
- [ c4] Add arith_feedback:0, dst:reg5, lhs:reg5, rhs:reg6
- [ ca] Return value:reg5
+ [ 34] NewFunction dst:reg7, shared_function_data_index:0
+ [ 3e] Call value_feedback:1, call_feedback:0, dst:reg6, callee:reg6, this_value:fns~0, arguments:[reg7]
+ [ 48] SetLexicalEnvironment environment:reg4
+ [ 4a] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false
+ [ 56] CreateVariable `y`, is_immutable:false, is_global:false, is_strict:false
+ [ 61] InitializeLexicalBinding `y`, src:Int32(2)
+ [ 6e] GetById value_feedback:2, dst:reg6, base:fns~0, `push`
+ [ 78] NewFunction dst:reg7, shared_function_data_index:1
+ [ 82] Call value_feedback:3, call_feedback:1, dst:reg6, callee:reg6, this_value:fns~0, arguments:[reg7]
+ [ 8c] SetLexicalEnvironment environment:reg4
+ [ 8e] GetByValue value_feedback:4, keyed_feedback:0, dst:reg5, base:fns~0, property:Int32(0)
+ [ 98] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg5, this_value:fns~0
+ [ a1] GetByValue value_feedback:6, keyed_feedback:1, dst:reg6, base:fns~0, property:Int32(1)
+ [ ab] Call value_feedback:7, call_feedback:3, dst:reg6, callee:reg6, this_value:fns~0
+ [ b4] Add arith_feedback:0, dst:reg5, lhs:reg5, rhs:reg6
+ [ ba] Return value:reg5
$ae3a72e0 block-scoping.js:5:18
@@ -75,7 +75,7 @@ block0:
[ 10] Return value:reg5
-breakThroughBlockScopes$033553c8 block-scoping.js:16:9
+breakThroughBlockScopes$62dcd5a6 block-scoping.js:16:9
Registers: 7
Blocks: 6
Locals: result~0, i~1, f~2
@@ -112,7 +112,7 @@ block4:
block5:
[ 7b] Call value_feedback:1, call_feedback:0, dst:reg5, callee:result~0, this_value:Undefined
- [ 86] Return value:reg5
+ [ 84] Return value:reg5
f$44bfa1d8 block-scoping.js:20:21
diff --git a/Tests/LibJS/Bytecode/expected/call-spread-register-order.txt b/Tests/LibJS/Bytecode/expected/call-spread-register-order.txt
index ccdb014f485..26775d5223e 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 @@
-$2eb7d506 call-spread-register-order.js:2:1
+$d1d44438 call-spread-register-order.js:2:1
Registers: 9
Blocks: 1
Constants:
@@ -13,7 +13,7 @@ block0:
[ 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
- [ 2e] End value:reg5
+ [ 2c] End value:reg5
f$0b87db58
diff --git a/Tests/LibJS/Bytecode/expected/captured-variables.txt b/Tests/LibJS/Bytecode/expected/captured-variables.txt
index af4ff0d2198..3aedbe2fdea 100644
--- a/Tests/LibJS/Bytecode/expected/captured-variables.txt
+++ b/Tests/LibJS/Bytecode/expected/captured-variables.txt
@@ -1,4 +1,4 @@
-$ef3f58e2 captured-variables.js:12:1
+$4ee6dac0 captured-variables.js:12:1
Registers: 7
Blocks: 1
Constants:
@@ -9,10 +9,10 @@ block0:
[ 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
- [ 18] End value:reg5
+ [ 16] End value:reg5
-outer$92f3ee53 captured-variables.js:5:9
+outer$f29b7031 captured-variables.js:5:9
Registers: 6
Blocks: 1
Locals: inner~0
@@ -27,7 +27,7 @@ block0:
[ f] NewFunction dst:inner~0, shared_function_data_index:0
[ 19] InitializeLexicalBinding `captured`, src:Int32(1)
[ 26] Call value_feedback:0, call_feedback:0, dst:reg5, callee:inner~0, this_value:Undefined
- [ 31] Return value:reg5
+ [ 2f] Return value:reg5
inner$878e6817 captured-variables.js:7:9
diff --git a/Tests/LibJS/Bytecode/expected/catch-scope-boundary.txt b/Tests/LibJS/Bytecode/expected/catch-scope-boundary.txt
index 025b2b51fc5..242e1fb18fb 100644
--- a/Tests/LibJS/Bytecode/expected/catch-scope-boundary.txt
+++ b/Tests/LibJS/Bytecode/expected/catch-scope-boundary.txt
@@ -1,4 +1,4 @@
-$87f95a0a catch-scope-boundary.js:14:1
+$cb6e475e catch-scope-boundary.js:14:1
Registers: 9
Blocks: 1
Constants:
@@ -9,15 +9,15 @@ block0:
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `console`
[ d] GetById value_feedback:1, dst:reg7, base:reg6, `log`
- [ 19] GetGlobal value_feedback:2, dst:reg8, `throwInCatch`
- [ 22] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined
- [ 2d] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 39] GetGlobal value_feedback:5, dst:reg6, `console`
- [ 42] GetById value_feedback:6, dst:reg7, base:reg6, `log`
- [ 4e] GetGlobal value_feedback:7, dst:reg8, `throwInCatchWithLocals`
- [ 57] Call value_feedback:8, call_feedback:2, dst:reg8, callee:reg8, this_value:Undefined
- [ 62] Call value_feedback:9, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 6e] End value:reg5
+ [ 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
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 48d103f159e..1bf7013c9f7 100644
--- a/Tests/LibJS/Bytecode/expected/chained-member-call.txt
+++ b/Tests/LibJS/Bytecode/expected/chained-member-call.txt
@@ -1,4 +1,4 @@
-$e42f94a2 chained-member-call.js:12:1
+$a642896e chained-member-call.js:12:1
Registers: 7
Blocks: 7
Constants:
@@ -13,55 +13,55 @@ 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)]
- [ 1e] Jump target:block3
+ [ 1c] Jump target:block3
block2:
- [ 23] Catch value_feedback:2, dst:reg6
- [ 27] Mov dst:reg5, src:Undefined
- [ 2a] Jump target:block3
+ [ 21] Catch value_feedback:2, dst:reg6
+ [ 25] Mov dst:reg5, src:Undefined
+ [ 28] Jump target:block3
block3:
- [ 2f] Mov dst:reg5, src:Undefined
+ [ 2d] Mov dst:reg5, src:Undefined
block4:
- [ 32] GetGlobal value_feedback:3, dst:reg6, `chained_dot_call`
- [ 3b] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(0)]
- [ 47] Jump target:block6
+ [ 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
block5:
- [ 4c] Catch value_feedback:5, dst:reg6
- [ 50] Mov dst:reg5, src:Undefined
- [ 53] Jump target:block6
+ [ 48] Catch value_feedback:5, dst:reg6
+ [ 4c] Mov dst:reg5, src:Undefined
+ [ 4f] Jump target:block6
block6:
- [ 58] End value:reg5
+ [ 54] End value:reg5
Exception handlers:
- [ 7 .. 23] => handler block2
- [ 32 .. 4c] => handler block5
+ [ 7 .. 21] => handler block2
+ [ 30 .. 48] => handler block5
-chained_computed_call$4930d670 chained-member-call.js:5:5
+chained_computed_call$c7cedde8 chained-member-call.js:5:5
Registers: 7
Blocks: 1
block0:
[ 0] Enter
[ 1] GetByValue value_feedback:0, keyed_feedback:0, dst:reg5, base:arg0, property:arg1
- [ d] GetByValue value_feedback:1, keyed_feedback:1, dst:reg5, base:reg5, property:arg2
- [ 19] GetById value_feedback:2, dst:reg6, base:reg5, `foo`
- [ 25] Call value_feedback:3, call_feedback:0, dst:reg5, callee:reg6, this_value:reg5
- [ 30] Return value:reg5
+ [ 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
-chained_dot_call$8c51ea8a chained-member-call.js:9:5
+chained_dot_call$0db3e312 chained-member-call.js:9:5
Registers: 7
Blocks: 1
block0:
[ 0] Enter
[ 1] GetById value_feedback:0, dst:reg5, base:arg0, `b`
- [ d] GetById value_feedback:1, dst:reg5, base:reg5, `c`
- [ 19] GetById value_feedback:2, dst:reg6, base:reg5, `bar`
- [ 25] Call value_feedback:3, call_feedback:0, dst:reg5, callee:reg6, this_value:reg5
- [ 30] Return value:reg5
+ [ 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
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 fce20223183..07ba30fe3a9 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 @@
-$019b9961 class-computed-field-lhs-name.js:1:5
+$5bbb391f class-computed-field-lhs-name.js:1:5
Registers: 8
Blocks: 1
Constants:
@@ -15,7 +15,7 @@ block0:
[ 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
- [ 3e] End value:reg5
+ [ 3c] End value:reg5
C$16234245
diff --git a/Tests/LibJS/Bytecode/expected/class-computed-key.txt b/Tests/LibJS/Bytecode/expected/class-computed-key.txt
index 1e2853f6bb7..3f11213e8e4 100644
--- a/Tests/LibJS/Bytecode/expected/class-computed-key.txt
+++ b/Tests/LibJS/Bytecode/expected/class-computed-key.txt
@@ -1,4 +1,4 @@
-$a3d8fdc4 class-computed-key.js:10:1
+$44317be6 class-computed-key.js:10:1
Registers: 7
Blocks: 1
Constants:
@@ -9,10 +9,10 @@ block0:
[ 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
- [ 18] End value:reg5
+ [ 16] End value:reg5
-f$8679ddec class-computed-key.js:4:5
+f$26d25c0e class-computed-key.js:4:5
Registers: 9
Blocks: 1
@@ -23,7 +23,7 @@ block0:
[ f] CreateVariable ``, is_immutable:true, is_global:false, is_strict:true
[ 1a] GetGlobal value_feedback:0, dst:reg7, `Symbol`
[ 23] GetById value_feedback:1, dst:reg7, base:reg7, `iterator`
- [ 2f] ToPrimitiveWithStringHint dst:reg8, value:reg7
- [ 32] SetLexicalEnvironment environment:reg4
- [ 34] NewClass dst:reg5, class_environment:reg6, class_blueprint_index:0, element_keys_are_in_array:false, element_keys:[element_keys:reg8]
- [ 44] Return value:reg5
+ [ 2d] ToPrimitiveWithStringHint dst:reg8, value:reg7
+ [ 30] SetLexicalEnvironment environment:reg4
+ [ 32] NewClass dst:reg5, class_environment:reg6, class_blueprint_index:0, element_keys_are_in_array:false, element_keys:[element_keys:reg8]
+ [ 42] Return value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/class-environment.txt b/Tests/LibJS/Bytecode/expected/class-environment.txt
index 5c256bac8f7..c0860cc1f1c 100644
--- a/Tests/LibJS/Bytecode/expected/class-environment.txt
+++ b/Tests/LibJS/Bytecode/expected/class-environment.txt
@@ -1,4 +1,4 @@
-$da030ac6 class-environment.js:9:1
+$7a5b88e8 class-environment.js:9:1
Registers: 9
Blocks: 1
Constants:
@@ -9,13 +9,13 @@ block0:
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `console`
[ d] GetById value_feedback:1, dst:reg7, base:reg6, `log`
- [ 19] GetGlobal value_feedback:2, dst:reg8, `classWithName`
- [ 22] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined
- [ 2d] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 39] End value:reg5
+ [ 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
-classWithName$6167bf85 class-environment.js:2:9
+classWithName$8322362f class-environment.js:2:9
Registers: 7
Blocks: 1
Locals: C~0
@@ -31,10 +31,10 @@ block0:
[ 1c] NewClass dst:reg5, class_environment:reg6, class_blueprint_index:0, element_keys_are_in_array:false, element_keys:[element_keys:String("method")]
[ 2c] Mov dst:C~0, src:reg5
[ 2f] CallConstruct value_feedback:0, call_feedback:0, dst:reg5, callee:C~0
- [ 39] GetById value_feedback:1, dst:reg6, base:reg5, `method`
- [ 45] Call value_feedback:2, call_feedback:1, dst:reg5, callee:reg6, this_value:reg5
- [ 50] StrictlyEquals arith_feedback:0, dst:reg5, lhs:reg5, rhs:C~0
- [ 56] Return value:reg5
+ [ 37] GetById value_feedback:1, dst:reg6, base:reg5, `method`
+ [ 41] Call value_feedback:2, call_feedback:1, dst:reg5, callee:reg6, this_value:reg5
+ [ 4a] StrictlyEquals arith_feedback:0, dst:reg5, lhs:reg5, rhs:C~0
+ [ 50] Return value:reg5
Foo$e166dc90
diff --git a/Tests/LibJS/Bytecode/expected/class-literal-fields.txt b/Tests/LibJS/Bytecode/expected/class-literal-fields.txt
index bb457b4891e..e7f155c60d4 100644
--- a/Tests/LibJS/Bytecode/expected/class-literal-fields.txt
+++ b/Tests/LibJS/Bytecode/expected/class-literal-fields.txt
@@ -1,4 +1,4 @@
-$793cd069 class-literal-fields.js:12:5
+$51fa779f class-literal-fields.js:12:5
Registers: 14
Blocks: 1
Constants:
@@ -9,26 +9,26 @@ block0:
[ 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
- [ 18] DynamicInitializeLexicalBinding `a`, src:reg6
- [ 1f] GetGlobal value_feedback:2, dst:reg6, `console`
- [ 28] GetById value_feedback:3, dst:reg7, base:reg6, `log`
- [ 34] GetGlobal value_feedback:4, dst:reg8, `a`
- [ 3d] GetById value_feedback:5, dst:reg8, base:reg8, `x`
- [ 49] GetGlobal value_feedback:6, dst:reg9, `a`
- [ 52] GetById value_feedback:7, dst:reg9, base:reg9, `y`
- [ 5e] GetGlobal value_feedback:8, dst:reg10, `a`
- [ 67] GetById value_feedback:9, dst:reg10, base:reg10, `z`
- [ 73] GetGlobal value_feedback:10, dst:reg11, `a`
- [ 7c] GetById value_feedback:11, dst:reg11, base:reg11, `w`
- [ 88] GetGlobal value_feedback:12, dst:reg12, `a`
- [ 91] GetById value_feedback:13, dst:reg12, base:reg12, `s`
- [ 9d] GetGlobal value_feedback:14, dst:reg13, `a`
- [ a6] GetById value_feedback:15, dst:reg13, base:reg13, `computed`
- [ b2] Call value_feedback:16, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8, reg9, reg10, reg11, reg12, reg13]
- [ c3] End value:reg5
+ [ 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
-test$16a6ed5e class-literal-fields.js:2:5
+test$764e6f3c class-literal-fields.js:2:5
Registers: 7
Blocks: 1
Locals: A~0
@@ -50,7 +50,7 @@ block0:
[ 31] Mov dst:A~0, src:reg5
[ 34] ThrowIfTDZ src:A~0
[ 36] CallConstruct value_feedback:0, call_feedback:0, dst:reg5, callee:A~0
- [ 40] Return value:reg5
+ [ 3e] 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 96f3231d47d..1a16726c803 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 @@
-$7c031665 computed-compound-assign-register-reuse.js:9:1
+$5d0c90cb computed-compound-assign-register-reuse.js:9:1
Registers: 9
Blocks: 1
Constants:
@@ -11,10 +11,10 @@ block0:
[ 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]
- [ 46] End value:reg5
+ [ 44] End value:reg5
-subVector$3f0212d3 computed-compound-assign-register-reuse.js:5:13
+subVector$82770027 computed-compound-assign-register-reuse.js:5:13
Registers: 8
Blocks: 1
Constants:
@@ -25,11 +25,11 @@ subVector$3f0212d3 computed-compound-assign-register-reuse.js:5:13
block0:
[ 0] Enter
[ 1] GetByValue value_feedback:0, keyed_feedback:0, dst:reg5, base:arg0, property:Int32(0)
- [ d] GetByValue value_feedback:1, keyed_feedback:1, dst:reg6, base:arg1, property:Int32(0)
- [ 19] Sub arith_feedback:0, dst:reg7, lhs:reg5, rhs:reg6
- [ 1f] PutByValue keyed_feedback:2, base:arg0, property:Int32(0), src:reg7, kind:Normal
- [ 2d] GetByValue value_feedback:2, keyed_feedback:3, dst:reg5, base:arg0, property:Int32(1)
- [ 39] GetByValue value_feedback:3, keyed_feedback:4, dst:reg6, base:arg1, property:Int32(1)
- [ 45] Sub arith_feedback:1, dst:reg7, lhs:reg5, rhs:reg6
- [ 4b] PutByValue keyed_feedback:5, base:arg0, property:Int32(1), src:reg7, kind:Normal
- [ 59] End value:Undefined
+ [ b] GetByValue value_feedback:1, keyed_feedback:1, dst:reg6, base:arg1, property:Int32(0)
+ [ 15] Sub arith_feedback:0, dst:reg7, lhs:reg5, rhs:reg6
+ [ 1b] PutByValue keyed_feedback:2, base:arg0, property:Int32(0), src:reg7, kind:Normal
+ [ 27] GetByValue value_feedback:2, keyed_feedback:3, dst:reg5, base:arg0, property:Int32(1)
+ [ 31] GetByValue value_feedback:3, keyed_feedback:4, dst:reg6, base:arg1, property:Int32(1)
+ [ 3b] Sub arith_feedback:1, dst:reg7, lhs:reg5, rhs:reg6
+ [ 41] PutByValue keyed_feedback:5, base:arg0, property:Int32(1), src:reg7, kind:Normal
+ [ 4d] End value:Undefined
diff --git a/Tests/LibJS/Bytecode/expected/computed-member-access.txt b/Tests/LibJS/Bytecode/expected/computed-member-access.txt
index 2f2335733ea..f2e536253e3 100644
--- a/Tests/LibJS/Bytecode/expected/computed-member-access.txt
+++ b/Tests/LibJS/Bytecode/expected/computed-member-access.txt
@@ -1,4 +1,4 @@
-$d77842e5 computed-member-access.js:12:1
+$96c746a1 computed-member-access.js:12:1
Registers: 8
Blocks: 1
Constants:
@@ -11,13 +11,13 @@ block0:
[ 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]
- [ 27] GetGlobal value_feedback:2, dst:reg6, `computed_read_expression`
- [ 30] NewPrimitiveArray dst:reg7, elements:[1]
- [ 3e] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7, Int32(0)]
- [ 4b] End value:reg5
+ [ 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
-computed_read$fae2cb6e computed-member-access.js:5:5
+computed_read$5a8a4d4c computed-member-access.js:5:5
Registers: 6
Blocks: 1
Constants:
@@ -26,14 +26,14 @@ computed_read$fae2cb6e computed-member-access.js:5:5
block0:
[ 0] Enter
[ 1] GetByValue value_feedback:0, keyed_feedback:0, dst:reg5, base:arg0, property:Int32(0)
- [ d] Return value:reg5
+ [ b] Return value:reg5
-computed_read_expression$7c7358af computed-member-access.js:9:5
+computed_read_expression$dc1ada8d computed-member-access.js:9:5
Registers: 6
Blocks: 1
block0:
[ 0] Enter
[ 1] GetByValue value_feedback:0, keyed_feedback:0, dst:reg5, base:arg0, property:arg1
- [ d] Return value:reg5
+ [ b] Return value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/computed-member-compound-assign.txt b/Tests/LibJS/Bytecode/expected/computed-member-compound-assign.txt
index 1965909e2e1..0843019757e 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 @@
-$2bbabac7 computed-member-compound-assign.js:15:1
+$eb09be83 computed-member-compound-assign.js:15:1
Registers: 8
Blocks: 1
Constants:
@@ -12,15 +12,15 @@ block0:
[ 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")]
- [ 1e] GetGlobal value_feedback:2, dst:reg6, `compound_then_assign`
- [ 27] NewObject dst:reg7
- [ 2b] InitObjectLiteralProperty object:reg7, `x`, src:Int32(1), shape_cache_index:0, property_slot:0
- [ 39] CacheObjectShape object:reg7
- [ 3d] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7, String("x")]
- [ 4a] End value:reg5
+ [ 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
+ [ 37] CacheObjectShape object:reg7
+ [ 3b] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7, String("x")]
+ [ 46] End value:reg5
-compound_computed$98e2f3d8 computed-member-compound-assign.js:7:14
+compound_computed$5831f794 computed-member-compound-assign.js:7:14
Registers: 8
Blocks: 1
Constants:
@@ -31,12 +31,12 @@ block0:
[ 1] ThrowIfNullish src:arg0
[ 3] ToPrimitiveWithStringHint dst:reg5, value:arg1
[ 6] GetByValue value_feedback:0, keyed_feedback:0, dst:reg6, base:arg0, property:reg5
- [ 12] AddRhsInt32 arith_feedback:0, dst:reg7, lhs:reg6, rhs:1
- [ 1b] PutByValue keyed_feedback:1, base:arg0, property:reg5, src:reg7, kind:Normal
- [ 29] End value:Undefined
+ [ 10] AddRhsInt32 arith_feedback:0, dst:reg7, lhs:reg6, rhs:1
+ [ 19] PutByValue keyed_feedback:1, base:arg0, property:reg5, src:reg7, kind:Normal
+ [ 25] End value:Undefined
-compound_then_assign$0cad809d computed-member-compound-assign.js:11:13
+compound_then_assign$2ba40637 computed-member-compound-assign.js:11:13
Registers: 8
Blocks: 1
Constants:
@@ -47,7 +47,7 @@ block0:
[ 1] ThrowIfNullish src:arg0
[ 3] ToPrimitiveWithStringHint dst:reg5, value:arg1
[ 6] GetByValue value_feedback:0, keyed_feedback:0, dst:reg6, base:arg0, property:reg5
- [ 12] AddRhsInt32 arith_feedback:0, dst:reg7, lhs:reg6, rhs:0
- [ 1b] PutByValue keyed_feedback:1, base:arg0, property:reg5, src:reg7, kind:Normal
- [ 29] PutByValue keyed_feedback:2, base:arg0, property:arg1, src:arg1, kind:Normal
- [ 37] End value:Undefined
+ [ 10] AddRhsInt32 arith_feedback:0, dst:reg7, lhs:reg6, rhs:0
+ [ 19] PutByValue keyed_feedback:1, base:arg0, property:reg5, src:reg7, kind:Normal
+ [ 25] PutByValue keyed_feedback:2, base:arg0, property:arg1, src:arg1, kind:Normal
+ [ 31] End value:Undefined
diff --git a/Tests/LibJS/Bytecode/expected/computed-string-object-literal.txt b/Tests/LibJS/Bytecode/expected/computed-string-object-literal.txt
index d14d4530d72..2971268dcc2 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 @@
-$7be6f9d8 computed-string-object-literal.js:15:1
+$d342a886 computed-string-object-literal.js:15:1
Registers: 7
Blocks: 1
Constants:
@@ -10,14 +10,14 @@ block0:
[ 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
- [ 18] GetGlobal value_feedback:2, dst:reg6, `mixed`
- [ 21] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined
- [ 2c] GetGlobal value_feedback:4, dst:reg6, `dynamic`
- [ 35] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg6, this_value:Undefined, arguments:[String("x")]
- [ 41] End value:reg5
+ [ 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
-simple_computed$efc5275b computed-string-object-literal.js:6:5
+simple_computed$901da57d 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
- [ 13] Return value:reg5
+ [ 11] Return value:reg5
-mixed$fb056077 computed-string-object-literal.js:9:5
+mixed$44022feb computed-string-object-literal.js:9:5
Registers: 6
Blocks: 1
Constants:
@@ -41,11 +41,11 @@ block0:
[ 0] Enter
[ 1] NewObject dst:reg5
[ 5] PutById base:reg5, `a`, src:Int32(1), kind:Own
- [ 13] PutById base:reg5, `b`, src:Int32(2), kind:Own
- [ 21] Return value:reg5
+ [ 11] PutById base:reg5, `b`, src:Int32(2), kind:Own
+ [ 1d] Return value:reg5
-dynamic$897ee3f9 computed-string-object-literal.js:12:5
+dynamic$e92665d7 computed-string-object-literal.js:12:5
Registers: 7
Blocks: 1
Constants:
@@ -56,4 +56,4 @@ block0:
[ 1] NewObject dst:reg5
[ 5] ToPrimitiveWithStringHint dst:reg6, value:arg0
[ 8] PutByValue keyed_feedback:0, base:reg5, property:reg6, src:Int32(1), kind:Own
- [ 16] Return value:reg5
+ [ 14] Return value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/computed-string-to-ById.txt b/Tests/LibJS/Bytecode/expected/computed-string-to-ById.txt
index 25dc7388f33..8c1781ae417 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 @@
-$15a2a6dd computed-string-to-ById.js:17:1
+$9440ae55 computed-string-to-ById.js:17:1
Registers: 8
Blocks: 1
Constants:
@@ -10,29 +10,29 @@ block0:
[ 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]
- [ 1d] GetGlobal value_feedback:2, dst:reg6, `set_string_prop`
- [ 26] NewObject dst:reg7
- [ 2a] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
- [ 36] GetGlobal value_feedback:4, dst:reg6, `get_index_prop`
- [ 3f] NewArray dst:reg7
- [ 42] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
- [ 4e] GetGlobal value_feedback:6, dst:reg6, `get_length_prop`
- [ 57] NewArray dst:reg7
- [ 5a] Call value_feedback:7, call_feedback:3, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
- [ 66] End value:reg5
+ [ 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
-get_string_prop$1e949984 computed-string-to-ById.js:5:5
+get_string_prop$beed17a6 computed-string-to-ById.js:5:5
Registers: 6
Blocks: 1
block0:
[ 0] Enter
[ 1] GetById value_feedback:0, dst:reg5, base:arg0, `hello`
- [ d] Return value:reg5
+ [ b] Return value:reg5
-set_string_prop$fb2a2d66 computed-string-to-ById.js:8:16
+set_string_prop$9e469c98 computed-string-to-ById.js:8:16
Registers: 5
Blocks: 1
Constants:
@@ -42,10 +42,10 @@ set_string_prop$fb2a2d66 computed-string-to-ById.js:8:16
block0:
[ 0] Enter
[ 1] PutById base:arg0, `hello`, src:Int32(42), kind:Normal
- [ f] End value:Undefined
+ [ d] End value:Undefined
-get_index_prop$904ad061 computed-string-to-ById.js:11:5
+get_index_prop$30a34e83 computed-string-to-ById.js:11:5
Registers: 6
Blocks: 1
Constants:
@@ -54,14 +54,14 @@ get_index_prop$904ad061 computed-string-to-ById.js:11:5
block0:
[ 0] Enter
[ 1] GetByValue value_feedback:0, keyed_feedback:0, dst:reg5, base:arg0, property:String("0")
- [ d] Return value:reg5
+ [ b] Return value:reg5
-get_length_prop$e0e596cf computed-string-to-ById.js:14:5
+get_length_prop$408d18ad computed-string-to-ById.js:14:5
Registers: 6
Blocks: 1
block0:
[ 0] Enter
[ 1] GetLength value_feedback:0, keyed_feedback:0, dst:reg5, base:arg0
- [ c] Return value:reg5
+ [ a] Return value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/computed-update-register-order.txt b/Tests/LibJS/Bytecode/expected/computed-update-register-order.txt
index 6b2123d56e7..2062796db4c 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 @@
-$665affed computed-update-register-order.js:8:1
+$52743e93 computed-update-register-order.js:8:1
Registers: 8
Blocks: 1
Constants:
@@ -10,10 +10,10 @@ block0:
[ 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]
- [ 3f] End value:reg5
+ [ 3d] End value:reg5
-test$adad9800 computed-update-register-order.js:5:9
+test$8eb71266 computed-update-register-order.js:5:9
Registers: 7
Blocks: 1
Constants:
@@ -23,11 +23,11 @@ test$adad9800 computed-update-register-order.js:5:9
block0:
[ 0] Enter
[ 1] GetByValue value_feedback:0, keyed_feedback:0, dst:reg5, base:arg0, property:Int32(3)
- [ d] PostfixIncrement arith_feedback:0, dst:reg6, src:reg5
- [ 12] PutByValue keyed_feedback:1, base:arg0, property:Int32(3), src:reg5, kind:Normal
- [ 20] GetGlobal value_feedback:1, dst:reg5, `foo`
- [ 29] Call value_feedback:2, call_feedback:0, dst:reg5, callee:reg5, this_value:Undefined, arguments:[arg0]
- [ 35] End value:Undefined
+ [ b] PostfixIncrement arith_feedback:0, dst:reg6, src:reg5
+ [ 10] PutByValue keyed_feedback:1, base:arg0, property:Int32(3), src:reg5, kind:Normal
+ [ 1c] GetGlobal value_feedback:1, dst:reg5, `foo`
+ [ 25] Call value_feedback:2, call_feedback:0, dst:reg5, callee:reg5, this_value:Undefined, arguments:[arg0]
+ [ 2f] 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 61fd2c6a0fe..9b22de78c8c 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 @@
-$54cedf5a condition-dead-code-elim.js:141:1
+$6e3d82d4 condition-dead-code-elim.js:141:1
Registers: 7
Blocks: 1
Constants:
@@ -10,27 +10,27 @@ block0:
[ 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
- [ 18] GetGlobal value_feedback:2, dst:reg6, `ternary_truthy`
- [ 21] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined
- [ 2c] GetGlobal value_feedback:4, dst:reg6, `ternary_false`
- [ 35] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg6, this_value:Undefined
- [ 40] GetGlobal value_feedback:6, dst:reg6, `ternary_falsey`
- [ 49] Call value_feedback:7, call_feedback:3, dst:reg5, callee:reg6, this_value:Undefined
- [ 54] GetGlobal value_feedback:8, dst:reg6, `while_falsey`
- [ 5d] Call value_feedback:9, call_feedback:4, dst:reg5, callee:reg6, this_value:Undefined
- [ 68] GetGlobal value_feedback:10, dst:reg6, `do_while_falsey`
- [ 71] Call value_feedback:11, call_feedback:5, dst:reg5, callee:reg6, this_value:Undefined
- [ 7c] GetGlobal value_feedback:12, dst:reg6, `if_falsely`
- [ 85] Call value_feedback:13, call_feedback:6, dst:reg5, callee:reg6, this_value:Undefined
- [ 90] GetGlobal value_feedback:14, dst:reg6, `if_truthy`
- [ 99] Call value_feedback:15, call_feedback:7, dst:reg5, callee:reg6, this_value:Undefined
- [ a4] GetGlobal value_feedback:16, dst:reg6, `if_exhausted`
- [ ad] Call value_feedback:17, call_feedback:8, dst:reg5, callee:reg6, this_value:Undefined
- [ b8] GetGlobal value_feedback:18, dst:reg6, `for_false`
- [ c1] Call value_feedback:19, call_feedback:9, dst:reg5, callee:reg6, this_value:Undefined
- [ cc] GetGlobal value_feedback:20, dst:reg6, `for_true`
- [ d5] Call value_feedback:21, call_feedback:10, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Bool(true)]
- [ e1] End value:reg5
+ [ 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
ternary_true$dcde1744 condition-dead-code-elim.js:9:5
@@ -87,7 +87,7 @@ block0:
[ 4] Return value:reg5
-while_falsey$9653db61 condition-dead-code-elim.js:22:17
+while_falsey$36ac5983 condition-dead-code-elim.js:22:17
Registers: 6
Blocks: 1
Constants:
@@ -97,7 +97,7 @@ 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
- [ 15] End value:Undefined
+ [ 13] 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$e9557bca condition-dead-code-elim.js:37:9
+do_while_falsey$6ab77452 condition-dead-code-elim.js:37:9
Registers: 6
Blocks: 1
Constants:
@@ -121,16 +121,16 @@ 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
- [ 15] GetGlobal value_feedback:2, dst:reg5, `alive`
- [ 1e] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg5, this_value:Undefined
- [ 29] GetGlobal value_feedback:4, dst:reg5, `alive`
- [ 32] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg5, this_value:Undefined
- [ 3d] GetGlobal value_feedback:6, dst:reg5, `alive`
- [ 46] Call value_feedback:7, call_feedback:3, dst:reg5, callee:reg5, this_value:Undefined
- [ 51] End 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
-if_falsely$5fee9e07 condition-dead-code-elim.js:51:14
+if_falsely$bf961fe5 condition-dead-code-elim.js:51:14
Registers: 6
Blocks: 1
Constants:
@@ -140,10 +140,10 @@ 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
- [ 15] End value:Undefined
+ [ 13] End value:Undefined
-if_truthy$de52369a condition-dead-code-elim.js:66:9
+if_truthy$54a46ae2 condition-dead-code-elim.js:66:9
Registers: 6
Blocks: 4
Constants:
@@ -153,25 +153,25 @@ 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
- [ 15] Jump target:block1
+ [ 13] Jump target:block1
block1:
- [ 1a] GetGlobal value_feedback:4, dst:reg5, `alive`
- [ 23] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg5, this_value:Undefined
- [ 2e] Jump target:block2
+ [ 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
block2:
- [ 33] GetGlobal value_feedback:8, dst:reg5, `alive`
- [ 3c] Call value_feedback:9, call_feedback:4, dst:reg5, callee:reg5, this_value:Undefined
- [ 47] Jump target:block3
+ [ 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
block3:
- [ 4c] GetGlobal value_feedback:12, dst:reg5, `alive`
- [ 55] Call value_feedback:13, call_feedback:6, dst:reg5, callee:reg5, this_value:Undefined
- [ 60] End value:Undefined
+ [ 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
-if_exhausted$3f846fcd condition-dead-code-elim.js:85:14
+if_exhausted$4b1f5df7 condition-dead-code-elim.js:85:14
Registers: 6
Blocks: 2
Constants:
@@ -181,17 +181,17 @@ 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
- [ 15] GetGlobal value_feedback:6, dst:reg5, `alive`
- [ 1e] Call value_feedback:7, call_feedback:3, dst:reg5, callee:reg5, this_value:Undefined
- [ 29] Jump target:block1
+ [ 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
block1:
- [ 2e] GetGlobal value_feedback:12, dst:reg5, `alive`
- [ 37] Call value_feedback:13, call_feedback:6, dst:reg5, callee:reg5, this_value:Undefined
- [ 42] End value:Undefined
+ [ 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
-for_false$ca2255d7 condition-dead-code-elim.js:109:9
+for_false$0ad3521b condition-dead-code-elim.js:109:9
Registers: 6
Blocks: 9
Locals: x~0
@@ -207,32 +207,32 @@ block1:
[ f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg5, this_value:Undefined
block2:
- [ 1a] Jump target:block4
+ [ 18] Jump target:block4
block3:
- [ 1f] GetGlobal value_feedback:2, dst:reg5, `dead`
- [ 28] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg5, this_value:Undefined
+ [ 1d] GetGlobal value_feedback:2, dst:reg5, `dead`
+ [ 26] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg5, this_value:Undefined
block4:
- [ 33] Jump target:block6
+ [ 2f] Jump target:block6
block5:
- [ 38] GetGlobal value_feedback:4, dst:reg5, `dead`
- [ 41] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg5, this_value:Undefined
+ [ 34] GetGlobal value_feedback:4, dst:reg5, `dead`
+ [ 3d] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg5, this_value:Undefined
block6:
- [ 4c] GetGlobal value_feedback:6, dst:reg5, `call_this`
- [ 55] Call value_feedback:7, call_feedback:3, dst:x~0, callee:reg5, this_value:Undefined
- [ 60] Jump target:block8
+ [ 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
block7:
- [ 65] GetGlobal value_feedback:8, dst:reg5, `dead`
- [ 6e] Call value_feedback:9, call_feedback:4, dst:reg5, callee:reg5, this_value:Undefined
+ [ 5d] GetGlobal value_feedback:8, dst:reg5, `dead`
+ [ 66] Call value_feedback:9, call_feedback:4, dst:reg5, callee:reg5, this_value:Undefined
block8:
- [ 79] GetGlobal value_feedback:10, dst:reg5, `alive`
- [ 82] Call value_feedback:11, call_feedback:5, dst:reg5, callee:reg5, this_value:Undefined
- [ 8d] End value:Undefined
+ [ 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
call_this$ab50c8c1 condition-dead-code-elim.js:105:5
@@ -246,7 +246,7 @@ block0:
[ 1] Return value:Int32(1)
-for_true$f331538f condition-dead-code-elim.js:128:9
+for_true$d176dce5 condition-dead-code-elim.js:128:9
Registers: 6
Blocks: 9
Constants:
@@ -259,29 +259,29 @@ 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
- [ 1a] JumpFalse condition:arg0, target:block3
+ [ 18] JumpFalse condition:arg0, target:block3
block2:
- [ 20] Jump target:block4
+ [ 1e] Jump target:block4
block3:
- [ 25] JumpLoop target:block1
+ [ 23] JumpLoop target:block1
block4:
- [ 2a] Jump target:block7
+ [ 28] Jump target:block7
block5:
- [ 2f] GetGlobal value_feedback:2, dst:reg5, `alive`
- [ 38] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg5, this_value:Undefined
- [ 43] JumpFalse condition:arg0, target:block7
+ [ 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
block6:
- [ 49] Jump target:block8
+ [ 45] Jump target:block8
block7:
- [ 4e] JumpLoop target:block5
+ [ 4a] JumpLoop target:block5
block8:
- [ 53] GetGlobal value_feedback:4, dst:reg5, `alive`
- [ 5c] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg5, this_value:Undefined
- [ 67] End value:Undefined
+ [ 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
diff --git a/Tests/LibJS/Bytecode/expected/conditional-register-order.txt b/Tests/LibJS/Bytecode/expected/conditional-register-order.txt
index cbc74225ca8..cc24401d53a 100644
--- a/Tests/LibJS/Bytecode/expected/conditional-register-order.txt
+++ b/Tests/LibJS/Bytecode/expected/conditional-register-order.txt
@@ -1,4 +1,4 @@
-$559fc86a conditional-register-order.js:4:1
+$b5474a48 conditional-register-order.js:4:1
Registers: 7
Blocks: 1
Constants:
@@ -9,7 +9,7 @@ block0:
[ 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
- [ 18] End value:reg5
+ [ 16] 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 d7deb0c03ee..b414fdc3efc 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 @@
-$61547e35 const-assignment-no-extra-tdz.js:5:1
+$c0fc0013 const-assignment-no-extra-tdz.js:5:1
Registers: 7
Blocks: 4
Locals: e~0
@@ -14,20 +14,20 @@ 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
- [ 1b] Jump target:block3
+ [ 19] Jump target:block3
block2:
- [ 20] Catch value_feedback:2, dst:reg6
- [ 24] Mov dst:reg5, src:Undefined
- [ 27] Mov dst:e~0, src:<Empty>
- [ 2a] Mov dst:e~0, src:reg6
- [ 2d] Jump target:block3
+ [ 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
block3:
- [ 32] End value:reg5
+ [ 30] End value:reg5
Exception handlers:
- [ 7 .. 20] => handler block2
+ [ 7 .. 1e] => handler block2
f$31a881d5 const-assignment-no-extra-tdz.js:2:11
diff --git a/Tests/LibJS/Bytecode/expected/const-fold-template-literals.txt b/Tests/LibJS/Bytecode/expected/const-fold-template-literals.txt
index 7871425f5ca..18fbdd8690e 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 @@
-$bfcb69d3 const-fold-template-literals.js:20:7
+$7f1a6d8f const-fold-template-literals.js:20:7
Registers: 7
Blocks: 1
Constants:
@@ -24,23 +24,23 @@ block0:
[ 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")]
- [ 50] DynamicInitializeLexicalBinding `_prefix`, src:reg6
- [ 57] GetGlobal value_feedback:2, dst:reg6, `suffix`
- [ 60] Call value_feedback:3, call_feedback:1, dst:reg6, callee:reg6, this_value:Undefined, arguments:[String("abc")]
- [ 6c] DynamicInitializeLexicalBinding `_suffix`, src:reg6
- [ 73] GetGlobal value_feedback:4, dst:reg6, `tostring`
- [ 7c] Call value_feedback:5, call_feedback:2, dst:reg6, callee:reg6, this_value:Undefined, arguments:[String("abc")]
- [ 88] DynamicInitializeLexicalBinding `_tostring`, src:reg6
- [ 8f] GetGlobal value_feedback:6, dst:reg6, `multi`
- [ 98] Call value_feedback:7, call_feedback:3, dst:reg6, callee:reg6, this_value:Undefined, arguments:[Int32(1), Int32(2), Int32(3)]
- [ a6] DynamicInitializeLexicalBinding `_multi`, src:reg6
- [ ad] GetGlobal value_feedback:8, dst:reg6, `literal`
- [ b6] Call value_feedback:9, call_feedback:4, dst:reg6, callee:reg6, this_value:Undefined
- [ c1] DynamicInitializeLexicalBinding `_literal`, src:reg6
- [ c8] GetGlobal value_feedback:10, dst:reg6, `empty`
- [ d1] Call value_feedback:11, call_feedback:5, dst:reg6, callee:reg6, this_value:Undefined
- [ dc] DynamicInitializeLexicalBinding `_empty`, src:reg6
- [ e3] End value:reg5
+ [ 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
prefix$bcd0360b const-fold-template-literals.js:2:5
diff --git a/Tests/LibJS/Bytecode/expected/debugger-statement.txt b/Tests/LibJS/Bytecode/expected/debugger-statement.txt
index f21b32d514b..7fab6b68dbf 100644
--- a/Tests/LibJS/Bytecode/expected/debugger-statement.txt
+++ b/Tests/LibJS/Bytecode/expected/debugger-statement.txt
@@ -1,4 +1,4 @@
-$bc07ac88 debugger-statement.js:6:1
+$5c602aaa debugger-statement.js:6:1
Registers: 7
Blocks: 1
Constants:
@@ -9,7 +9,7 @@ block0:
[ 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
- [ 18] End value:reg5
+ [ 16] 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 af2dc4f140f..24a63a304fd 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 @@
-$5a65ac5d default-param-self-reference.js:2:1
+$fabe2a7f default-param-self-reference.js:2:1
Registers: 7
Blocks: 1
Constants:
@@ -10,7 +10,7 @@ block0:
[ 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)]
- [ 19] End value:reg5
+ [ 17] 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 66dd7eaab5b..72c091bdda7 100644
--- a/Tests/LibJS/Bytecode/expected/delete-expression-register.txt
+++ b/Tests/LibJS/Bytecode/expected/delete-expression-register.txt
@@ -1,4 +1,4 @@
-$0c33eb99 delete-expression-register.js:6:1
+$ac8c69bb delete-expression-register.js:6:1
Registers: 7
Blocks: 1
Constants:
@@ -10,7 +10,7 @@ block0:
[ 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)]
- [ 19] End value:reg5
+ [ 17] End value:reg5
f$d1056351 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 bf7dcb3efe9..02fcb2518f4 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 @@
-$ffeba739 delete-super-eval-order.js:4:1
+$1ee22cd3 delete-super-eval-order.js:4:1
Registers: 8
Blocks: 4
Constants:
@@ -20,21 +20,21 @@ block0:
block1:
[ 39] GetGlobal value_feedback:0, dst:reg6, `A`
[ 42] CallConstruct value_feedback:1, call_feedback:0, dst:reg6, callee:reg6
- [ 4c] GetById value_feedback:2, dst:reg7, base:reg6, `m`
- [ 58] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[String("x")]
- [ 64] Jump target:block3
+ [ 4a] GetById value_feedback:2, dst:reg7, base:reg6, `m`
+ [ 54] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[String("x")]
+ [ 5e] Jump target:block3
block2:
- [ 69] Catch value_feedback:4, dst:reg6
- [ 6d] SetLexicalEnvironment environment:reg4
- [ 6f] Mov dst:reg5, src:Undefined
- [ 72] Jump target:block3
+ [ 63] Catch value_feedback:4, dst:reg6
+ [ 67] SetLexicalEnvironment environment:reg4
+ [ 69] Mov dst:reg5, src:Undefined
+ [ 6c] Jump target:block3
block3:
- [ 77] End value:reg5
+ [ 71] End value:reg5
Exception handlers:
- [ 39 .. 69] => handler block2
+ [ 39 .. 63] => handler block2
A$5e284e97
diff --git a/Tests/LibJS/Bytecode/expected/delete-super-property.txt b/Tests/LibJS/Bytecode/expected/delete-super-property.txt
index 91a8606f6dd..ea0f03f1e0e 100644
--- a/Tests/LibJS/Bytecode/expected/delete-super-property.txt
+++ b/Tests/LibJS/Bytecode/expected/delete-super-property.txt
@@ -1,4 +1,4 @@
-$e643da90 delete-super-property.js:1:1
+$b62a84ac delete-super-property.js:1:1
Registers: 8
Blocks: 7
Locals: e~0, e~1
@@ -22,42 +22,42 @@ block0:
block1:
[ 3a] GetGlobal value_feedback:0, dst:reg6, `A`
[ 43] CallConstruct value_feedback:1, call_feedback:0, dst:reg6, callee:reg6
- [ 4d] GetById value_feedback:2, dst:reg7, base:reg6, `foo`
- [ 59] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6
- [ 64] Jump target:block3
+ [ 4b] GetById value_feedback:2, dst:reg7, base:reg6, `foo`
+ [ 55] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6
+ [ 5e] Jump target:block3
block2:
- [ 69] Catch value_feedback:4, dst:reg6
- [ 6d] SetLexicalEnvironment environment:reg4
- [ 6f] Mov dst:reg5, src:Undefined
- [ 72] Mov dst:e~0, src:<Empty>
- [ 75] Mov dst:e~0, src:reg6
- [ 78] Jump target:block3
+ [ 63] Catch value_feedback:4, dst:reg6
+ [ 67] SetLexicalEnvironment environment:reg4
+ [ 69] Mov dst:reg5, src:Undefined
+ [ 6c] Mov dst:e~0, src:<Empty>
+ [ 6f] Mov dst:e~0, src:reg6
+ [ 72] Jump target:block3
block3:
- [ 7d] Mov dst:reg5, src:Undefined
+ [ 77] Mov dst:reg5, src:Undefined
block4:
- [ 80] GetGlobal value_feedback:5, dst:reg6, `A`
- [ 89] CallConstruct value_feedback:6, call_feedback:2, dst:reg6, callee:reg6
- [ 93] GetById value_feedback:7, dst:reg7, base:reg6, `baz`
- [ 9f] Call value_feedback:8, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6
- [ aa] Jump target:block6
+ [ 7a] GetGlobal value_feedback:5, dst:reg6, `A`
+ [ 83] CallConstruct value_feedback:6, call_feedback:2, dst:reg6, callee:reg6
+ [ 8b] GetById value_feedback:7, dst:reg7, base:reg6, `baz`
+ [ 95] Call value_feedback:8, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6
+ [ 9e] Jump target:block6
block5:
- [ af] Catch value_feedback:9, dst:reg6
- [ b3] SetLexicalEnvironment environment:reg4
- [ b5] Mov dst:reg5, src:Undefined
- [ b8] Mov dst:e~1, src:<Empty>
- [ bb] Mov dst:e~1, src:reg6
- [ be] Jump target:block6
+ [ a3] Catch value_feedback:9, dst:reg6
+ [ a7] SetLexicalEnvironment environment:reg4
+ [ a9] Mov dst:reg5, src:Undefined
+ [ ac] Mov dst:e~1, src:<Empty>
+ [ af] Mov dst:e~1, src:reg6
+ [ b2] Jump target:block6
block6:
- [ c3] End value:reg5
+ [ b7] End value:reg5
Exception handlers:
- [ 3a .. 69] => handler block2
- [ 80 .. af] => handler block5
+ [ 3a .. 63] => handler block2
+ [ 7a .. a3] => handler block5
A$5e284e97
diff --git a/Tests/LibJS/Bytecode/expected/destructure-array-rest.txt b/Tests/LibJS/Bytecode/expected/destructure-array-rest.txt
index a52e33b4c83..a373fd302af 100644
--- a/Tests/LibJS/Bytecode/expected/destructure-array-rest.txt
+++ b/Tests/LibJS/Bytecode/expected/destructure-array-rest.txt
@@ -1,4 +1,4 @@
-$24a767b7 destructure-array-rest.js:9:1
+$844ee995 destructure-array-rest.js:9:1
Registers: 7
Blocks: 1
Constants:
@@ -9,7 +9,7 @@ block0:
[ 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
- [ 18] End value:reg5
+ [ 16] End value:reg5
f$cf5a90d3 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 e44f713d7a1..0e11e0d6834 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 @@
-$dd2e949d destructuring-assignment-in-logical-and.js:5:1
+$3cd6167b destructuring-assignment-in-logical-and.js:5:1
Registers: 7
Blocks: 1
Constants:
@@ -11,10 +11,10 @@ block0:
[ 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)]
- [ 1a] End value:reg5
+ [ 18] End value:reg5
-f$cdb64857 destructuring-assignment-in-logical-and.js:2:9
+f$2d5dca35 destructuring-assignment-in-logical-and.js:2:9
Registers: 13
Blocks: 16
Locals: a~0, b~1
@@ -31,55 +31,55 @@ block0:
block1:
[ 10] Call value_feedback:0, call_feedback:0, dst:reg7, callee:arg0, this_value:Undefined, arguments:[arg1]
- [ 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
- [ 2b] IteratorNextUnpack dst_value:reg12, dst_done:reg8, iterator_object:reg9, iterator_next:reg10, iterator_done:reg11
+ [ 1a] Mov dst:reg8, src:Bool(false)
+ [ 1d] GetIterator dst_iterator_object:reg9, dst_iterator_next:reg10, dst_iterator_done:reg11, iterable:reg7, fast_array_mode_allowed:true
+ [ 29] IteratorNextUnpack dst_value:reg12, dst_done:reg8, iterator_object:reg9, iterator_next:reg10, iterator_done:reg11
block2:
- [ 31] JumpFalse condition:reg8, target:block4
+ [ 2f] JumpFalse condition:reg8, target:block4
block3:
- [ 37] Mov dst:reg12, src:Undefined
+ [ 35] Mov dst:reg12, src:Undefined
block4:
- [ 3a] Mov dst:a~0, src:reg12
- [ 3d] JumpTrue condition:reg8, target:block7
+ [ 38] Mov dst:a~0, src:reg12
+ [ 3b] JumpTrue condition:reg8, target:block7
block5:
- [ 43] IteratorNextUnpack dst_value:reg12, dst_done:reg8, iterator_object:reg9, iterator_next:reg10, iterator_done:reg11
+ [ 41] IteratorNextUnpack dst_value:reg12, dst_done:reg8, iterator_object:reg9, iterator_next:reg10, iterator_done:reg11
block6:
- [ 49] JumpFalse condition:reg8, target:block8
+ [ 47] JumpFalse condition:reg8, target:block8
block7:
- [ 4f] Mov dst:reg12, src:Undefined
+ [ 4d] Mov dst:reg12, src:Undefined
block8:
- [ 52] Mov dst:b~1, src:reg12
+ [ 50] Mov dst:b~1, src:reg12
block9:
- [ 55] JumpTrue condition:reg11, target:block14
+ [ 53] JumpTrue condition:reg11, target:block14
block10:
- [ 5b] IteratorClose iterator_object:reg9, iterator_next:reg10, iterator_done:reg11, completion_value:Undefined
- [ 66] Jump target:block14
+ [ 59] IteratorClose iterator_object:reg9, iterator_next:reg10, iterator_done:reg11, completion_value:Undefined
+ [ 64] Jump target:block14
block11:
- [ 6b] Catch value_feedback:1, dst:reg12
- [ 6f] JumpTrue condition:reg11, target:block13
+ [ 69] Catch value_feedback:1, dst:reg12
+ [ 6d] JumpTrue condition:reg11, target:block13
block12:
- [ 75] IteratorClose iterator_object:reg9, iterator_next:reg10, iterator_done:reg11, completion_value:reg12
+ [ 73] IteratorClose iterator_object:reg9, iterator_next:reg10, iterator_done:reg11, completion_value:reg12
block13:
- [ 80] Throw src:reg12
+ [ 7e] Throw src:reg12
block14:
- [ 82] Mov dst:reg5, src:reg7
+ [ 80] Mov dst:reg5, src:reg7
block15:
- [ 85] End value:Undefined
+ [ 83] End value:Undefined
Exception handlers:
- [ 31 .. 43] => handler block11
- [ 49 .. 55] => handler block11
+ [ 2f .. 41] => handler block11
+ [ 47 .. 53] => handler block11
diff --git a/Tests/LibJS/Bytecode/expected/destructuring-assignment.txt b/Tests/LibJS/Bytecode/expected/destructuring-assignment.txt
index 2b6a17504ef..e68c76c015b 100644
--- a/Tests/LibJS/Bytecode/expected/destructuring-assignment.txt
+++ b/Tests/LibJS/Bytecode/expected/destructuring-assignment.txt
@@ -1,4 +1,4 @@
-$a11c814a destructuring-assignment.js:28:1
+$c85eda14 destructuring-assignment.js:28:1
Registers: 7
Blocks: 1
Constants:
@@ -9,11 +9,11 @@ block0:
[ 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
- [ 18] GetGlobal value_feedback:2, dst:reg6, `object_destructuring_with_function_default`
- [ 21] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined
- [ 2c] GetGlobal value_feedback:4, dst:reg6, `setter_parameter_resolution`
- [ 35] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg6, this_value:Undefined
- [ 40] End value:reg5
+ [ 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
array_destructuring_with_class_default$29279067 destructuring-assignment.js:5:9
@@ -77,7 +77,7 @@ Exception handlers:
[ 1f .. 60] => handler block8
-object_destructuring_with_function_default$6caaa7ea destructuring-assignment.js:11:9
+object_destructuring_with_function_default$cc5229c8 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`
- [ 19] JumpUndefined condition:reg7, true_target:block1, false_target:block2
+ [ 17] JumpUndefined condition:reg7, true_target:block1, false_target:block2
block1:
- [ 23] NewFunction dst:reg7, shared_function_data_index:0 (x)
+ [ 21] NewFunction dst:reg7, shared_function_data_index:0 (x)
block2:
- [ 2d] Mov dst:x~0, src:reg7
- [ 30] Return value:x~0
+ [ 2b] Mov dst:x~0, src:reg7
+ [ 2e] Return value:x~0
-setter_parameter_resolution$8e52cabe destructuring-assignment.js:17:9
+setter_parameter_resolution$4da1ce7a destructuring-assignment.js:17:9
Registers: 13
Blocks: 12
Constants:
@@ -122,41 +122,41 @@ block1:
[ 44] PutById base:reg11, `y`, src:reg12, kind:Setter
block2:
- [ 52] IteratorNextUnpack dst_value:reg12, dst_done:reg7, iterator_object:reg8, iterator_next:reg9, iterator_done:reg10
+ [ 50] IteratorNextUnpack dst_value:reg12, dst_done:reg7, iterator_object:reg8, iterator_next:reg9, iterator_done:reg10
block3:
- [ 58] JumpFalse condition:reg7, target:block5
+ [ 56] JumpFalse condition:reg7, target:block5
block4:
- [ 5e] Mov dst:reg12, src:Undefined
+ [ 5c] Mov dst:reg12, src:Undefined
block5:
- [ 61] PutById base:reg11, `y`, src:reg12, kind:Normal
+ [ 5f] PutById base:reg11, `y`, src:reg12, kind:Normal
block6:
- [ 6f] JumpTrue condition:reg10, target:block11
+ [ 6b] JumpTrue condition:reg10, target:block11
block7:
- [ 75] IteratorClose iterator_object:reg8, iterator_next:reg9, iterator_done:reg10, completion_value:Undefined
- [ 80] Jump target:block11
+ [ 71] IteratorClose iterator_object:reg8, iterator_next:reg9, iterator_done:reg10, completion_value:Undefined
+ [ 7c] Jump target:block11
block8:
- [ 85] Catch value_feedback:0, dst:reg11
- [ 89] JumpTrue condition:reg10, target:block10
+ [ 81] Catch value_feedback:0, dst:reg11
+ [ 85] JumpTrue condition:reg10, target:block10
block9:
- [ 8f] IteratorClose iterator_object:reg8, iterator_next:reg9, iterator_done:reg10, completion_value:reg11
+ [ 8b] IteratorClose iterator_object:reg8, iterator_next:reg9, iterator_done:reg10, completion_value:reg11
block10:
- [ 9a] Throw src:reg11
+ [ 96] Throw src:reg11
block11:
- [ 9c] GetInitializedBinding value_feedback:1, dst:reg5, `setValue`
- [ ab] Return value:reg5
+ [ 98] GetInitializedBinding value_feedback:1, dst:reg5, `setValue`
+ [ a7] Return value:reg5
Exception handlers:
- [ 36 .. 52] => handler block8
- [ 58 .. 6f] => handler block8
+ [ 36 .. 50] => handler block8
+ [ 56 .. 6b] => handler block8
set y$755940b9 destructuring-assignment.js:21:26
diff --git a/Tests/LibJS/Bytecode/expected/destructuring-let-compound-assign.txt b/Tests/LibJS/Bytecode/expected/destructuring-let-compound-assign.txt
index 09b83ae1acd..e694be1e0fb 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 @@
-$64186f45 destructuring-let-compound-assign.js:5:1
+$c3bff123 destructuring-let-compound-assign.js:5:1
Registers: 9
Blocks: 1
Constants:
@@ -11,10 +11,10 @@ block0:
[ 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]
- [ 22] End value:reg5
+ [ 20] End value:reg5
-f$0fdb6233 destructuring-let-compound-assign.js:2:5
+f$508c5e77 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`
- [ 15] GetById value_feedback:1, dst:reg5, base:arg1, `patchFlag`
- [ 21] BitwiseAnd arith_feedback:0, dst:reg5, lhs:Int32(16), rhs:reg5
- [ 27] BitwiseOr arith_feedback:1, dst:a~0, lhs:a~0, rhs:reg5
- [ 2d] End value:Undefined
+ [ 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
diff --git a/Tests/LibJS/Bytecode/expected/destructuring-no-base-identifier.txt b/Tests/LibJS/Bytecode/expected/destructuring-no-base-identifier.txt
index d920dae04bf..236ce506695 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 @@
-$4d5c59e5 destructuring-no-base-identifier.js:1:5
+$ad03dbc3 destructuring-no-base-identifier.js:1:5
Registers: 14
Blocks: 12
Constants:
@@ -30,26 +30,26 @@ block5:
[ 44] PutById base:reg12, `y`, src:reg13, kind:Normal
block6:
- [ 52] JumpTrue condition:reg11, target:block11
+ [ 50] JumpTrue condition:reg11, target:block11
block7:
- [ 58] IteratorClose iterator_object:reg9, iterator_next:reg10, iterator_done:reg11, completion_value:Undefined
- [ 63] Jump target:block11
+ [ 56] IteratorClose iterator_object:reg9, iterator_next:reg10, iterator_done:reg11, completion_value:Undefined
+ [ 61] Jump target:block11
block8:
- [ 68] Catch value_feedback:1, dst:reg12
- [ 6c] JumpTrue condition:reg11, target:block10
+ [ 66] Catch value_feedback:1, dst:reg12
+ [ 6a] JumpTrue condition:reg11, target:block10
block9:
- [ 72] IteratorClose iterator_object:reg9, iterator_next:reg10, iterator_done:reg11, completion_value:reg12
+ [ 70] IteratorClose iterator_object:reg9, iterator_next:reg10, iterator_done:reg11, completion_value:reg12
block10:
- [ 7d] Throw src:reg12
+ [ 7b] Throw src:reg12
block11:
- [ 7f] Mov dst:reg5, src:reg7
- [ 82] End value:reg5
+ [ 7d] Mov dst:reg5, src:reg7
+ [ 80] End value:reg5
Exception handlers:
[ 2c .. 35] => handler block8
- [ 3b .. 52] => handler block8
+ [ 3b .. 50] => 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 2a0a54ba9eb..eb738b60213 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 @@
-$b8dc22b1 destructuring-param-no-param-expressions.js:10:1
+$5934a0d3 destructuring-param-no-param-expressions.js:10:1
Registers: 8
Blocks: 1
Constants:
@@ -15,10 +15,10 @@ block0:
[ 1f] InitObjectLiteralProperty object:reg7, `local`, src:Int32(2), shape_cache_index:0, property_slot:1
[ 2d] CacheObjectShape object:reg7
[ 31] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
- [ 3d] End value:reg5
+ [ 3b] End value:reg5
-f$67d6ec23 destructuring-param-no-param-expressions.js:6:12
+f$168e497f destructuring-param-no-param-expressions.js:6:12
Registers: 7
Blocks: 1
Locals: local~0
@@ -29,7 +29,7 @@ block0:
[ c] ThrowIfNullish src:arg0
[ e] Mov dst:reg5, src:arg0
[ 11] GetById value_feedback:0, dst:reg6, base:reg5, `captured`
- [ 1d] InitializeLexicalBinding `captured`, src:reg6
- [ 2a] GetById value_feedback:1, dst:local~0, base:reg5, `local`
- [ 36] NewFunction dst:reg5, shared_function_data_index:0
- [ 40] Return value:reg5
+ [ 1b] InitializeLexicalBinding `captured`, src:reg6
+ [ 28] GetById value_feedback:1, dst:local~0, base:reg5, `local`
+ [ 32] NewFunction dst:reg5, shared_function_data_index:0
+ [ 3c] 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 09f4651cac2..6e24e65eb0f 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 @@
-$3cdd8b11 do-while-register-allocation.js:15:1
+$dd360933 do-while-register-allocation.js:15:1
Registers: 7
Blocks: 1
Constants:
@@ -9,10 +9,10 @@ block0:
[ 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
- [ 18] End value:reg5
+ [ 16] End value:reg5
-test$d4ced3f0 do-while-register-allocation.js:8:9
+test$96e1c8bc do-while-register-allocation.js:8:9
Registers: 7
Blocks: 3
Locals: i~0
@@ -29,13 +29,13 @@ block0:
[ 13] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg5, this_value:Undefined, arguments:[reg6]
block1:
- [ 1f] GetGlobal value_feedback:2, dst:reg5, `bar`
- [ 28] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg5, this_value:Undefined, arguments:[i~0]
- [ 34] Increment arith_feedback:0, dst:i~0
- [ 38] JumpLessThanLoopRhsInt32 arith_feedback:1, lhs:i~0, rhs:7, true_target:block1, false_target:block2
+ [ 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
block2:
- [ 48] End value:Undefined
+ [ 44] 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 e98f4529c7a..7c0e6c3eceb 100644
--- a/Tests/LibJS/Bytecode/expected/double-constant-deduplication.txt
+++ b/Tests/LibJS/Bytecode/expected/double-constant-deduplication.txt
@@ -1,4 +1,4 @@
-$3d7119a6 double-constant-deduplication.js:8:1
+$9d189b84 double-constant-deduplication.js:8:1
Registers: 7
Blocks: 1
Constants:
@@ -9,7 +9,7 @@ block0:
[ 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
- [ 18] End value:reg5
+ [ 16] 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 cded0a97fae..6d7fd227447 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 @@
-$3cdd8b11 enclosing-function-bindings-with-eval-or-with.js:15:1
+$dd360933 enclosing-function-bindings-with-eval-or-with.js:15:1
Registers: 7
Blocks: 1
Constants:
@@ -9,10 +9,10 @@ block0:
[ 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
- [ 18] End value:reg5
+ [ 16] End value:reg5
-outer$ab292198 enclosing-function-bindings-with-eval-or-with.js:2:9
+outer$29c72910 enclosing-function-bindings-with-eval-or-with.js:2:9
Registers: 11
Blocks: 1
Constants:
@@ -33,16 +33,16 @@ block0:
[ 6a] InitializeLexicalBinding `a`, src:Int32(1)
[ 77] GetCalleeAndThisFromEnvironment value_feedback:0, callee:reg7, this_value:reg8, `evaluates`
[ 87] Call value_feedback:1, call_feedback:0, dst:reg7, callee:reg7, this_value:reg8
- [ 92] Call value_feedback:2, call_feedback:1, dst:reg7, callee:reg7, this_value:Undefined
- [ 9d] GetCalleeAndThisFromEnvironment value_feedback:3, callee:reg8, this_value:reg9, `withObject`
- [ ad] NewObject dst:reg10
- [ b1] Call value_feedback:4, call_feedback:2, dst:reg8, callee:reg8, this_value:reg9, arguments:[reg10]
- [ bd] Call value_feedback:5, call_feedback:3, dst:reg8, callee:reg8, this_value:Undefined
- [ c8] NewArray dst:reg9, elements:[reg7, reg8]
- [ cd] Return value:reg9
+ [ 90] Call value_feedback:2, call_feedback:1, dst:reg7, callee:reg7, this_value:Undefined
+ [ 99] GetCalleeAndThisFromEnvironment value_feedback:3, callee:reg8, this_value:reg9, `withObject`
+ [ a9] NewObject dst:reg10
+ [ ad] Call value_feedback:4, call_feedback:2, dst:reg8, callee:reg8, this_value:reg9, arguments:[reg10]
+ [ b7] Call value_feedback:5, call_feedback:3, dst:reg8, callee:reg8, this_value:Undefined
+ [ c0] NewArray dst:reg9, elements:[reg7, reg8]
+ [ c5] Return value:reg9
-evaluates$ac540397 enclosing-function-bindings-with-eval-or-with.js:4:13
+evaluates$0bfb8575 enclosing-function-bindings-with-eval-or-with.js:4:13
Registers: 7
Blocks: 1
Constants:
@@ -53,8 +53,8 @@ block0:
[ 1] CreateArguments is_immutable:false, creates_parameter_bindings:false
[ 9] DynamicGetCalleeAndThisFromEnvironment value_feedback:0, callee:reg5, this_value:reg6, `eval`
[ 13] CallDirectEval value_feedback:1, call_feedback:0, dst:reg5, callee:reg5, this_value:reg6, arguments:[String("")]
- [ 1f] NewFunction dst:reg5, shared_function_data_index:0
- [ 29] Return value:reg5
+ [ 1d] NewFunction dst:reg5, shared_function_data_index:0
+ [ 27] Return value:reg5
eval$d8dbb89d
diff --git a/Tests/LibJS/Bytecode/expected/enclosing-function-bindings.txt b/Tests/LibJS/Bytecode/expected/enclosing-function-bindings.txt
index 3987d719691..5845bc4781b 100644
--- a/Tests/LibJS/Bytecode/expected/enclosing-function-bindings.txt
+++ b/Tests/LibJS/Bytecode/expected/enclosing-function-bindings.txt
@@ -1,4 +1,4 @@
-$e26385ed enclosing-function-bindings.js:1:1
+$61018d65 enclosing-function-bindings.js:1:1
Registers: 7
Blocks: 1
Constants:
@@ -12,11 +12,11 @@ block0:
[ 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)]
- [ 1c] Call value_feedback:2, call_feedback:1, dst:reg6, callee:reg6, this_value:Undefined
- [ 27] Call value_feedback:3, call_feedback:2, dst:reg5, callee:reg6, this_value:Undefined
- [ 32] GetGlobal value_feedback:4, dst:reg6, `blockFunctions`
- [ 3b] Call value_feedback:5, call_feedback:3, dst:reg5, callee:reg6, this_value:Undefined
- [ 46] End value:reg5
+ [ 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
outer$66437b0a enclosing-function-bindings.js:4:9
@@ -50,7 +50,7 @@ block0:
[ b] Return value:reg5
-inner$b7b58603 enclosing-function-bindings.js:10:15
+inner$580e0425 enclosing-function-bindings.js:10:15
Registers: 8
Blocks: 1
@@ -61,8 +61,8 @@ block0:
[ 1d] TypeofBinding dst:reg5, `a`
[ 2a] GetCalleeAndThisFromEnvironment value_feedback:1, callee:reg6, this_value:reg7, `callee`
[ 3a] Call value_feedback:2, call_feedback:0, dst:reg6, callee:reg6, this_value:reg7
- [ 45] Add arith_feedback:0, dst:reg5, lhs:reg5, rhs:reg6
- [ 4b] Return value:reg5
+ [ 43] Add arith_feedback:0, dst:reg5, lhs:reg5, rhs:reg6
+ [ 49] Return value:reg5
callee$e12fb7fa enclosing-function-bindings.js:6:9
@@ -75,7 +75,7 @@ block0:
[ 10] Return value:reg5
-blockFunctions$4134013e enclosing-function-bindings.js:16:9
+blockFunctions$a0db831c enclosing-function-bindings.js:16:9
Registers: 7
Blocks: 1
Locals: first~0
@@ -94,8 +94,8 @@ block0:
[ 3c] NewFunction dst:reg6, shared_function_data_index:1
[ 46] InitializeLexicalBinding `second`, src:reg6
[ 53] Call value_feedback:0, call_feedback:0, dst:reg6, callee:first~0, this_value:Undefined
- [ 5e] SetLexicalEnvironment environment:reg4
- [ 60] Return value:reg6
+ [ 5c] SetLexicalEnvironment environment:reg4
+ [ 5e] Return value:reg6
first$fd6705ac enclosing-function-bindings.js:19:13
diff --git a/Tests/LibJS/Bytecode/expected/eval-prevents-locals.txt b/Tests/LibJS/Bytecode/expected/eval-prevents-locals.txt
index 5f4423df0f0..500ba0dafeb 100644
--- a/Tests/LibJS/Bytecode/expected/eval-prevents-locals.txt
+++ b/Tests/LibJS/Bytecode/expected/eval-prevents-locals.txt
@@ -1,4 +1,4 @@
-$32bbbacc eval-prevents-locals.js:22:1
+$f20abe88 eval-prevents-locals.js:22:1
Registers: 7
Blocks: 1
Constants:
@@ -9,12 +9,12 @@ block0:
[ 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
- [ 18] GetGlobal value_feedback:2, dst:reg6, `outer_eval`
- [ 21] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined
- [ 2c] End value:reg5
+ [ 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
-with_eval$c72c0a27 eval-prevents-locals.js:6:9
+with_eval$26d38c05 eval-prevents-locals.js:6:9
Registers: 8
Blocks: 1
Constants:
@@ -30,8 +30,8 @@ block0:
[ 22] InitializeLexicalBinding `x`, src:Int32(1)
[ 2f] 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("")]
- [ 45] GetBinding value_feedback:2, dst:reg6, `x`
- [ 54] Return value:reg6
+ [ 43] GetBinding value_feedback:2, dst:reg6, `x`
+ [ 52] Return value:reg6
eval$d8dbb89d
@@ -46,7 +46,7 @@ block0:
[ 4] End value:reg5
-outer_eval$9ecddbfb eval-prevents-locals.js:14:9
+outer_eval$5e1cdfb7 eval-prevents-locals.js:14:9
Registers: 9
Blocks: 1
Constants:
@@ -64,9 +64,9 @@ block0:
[ 39] SetVariableBinding `inner`, src:reg6
[ 46] DynamicGetCalleeAndThisFromEnvironment value_feedback:0, callee:reg6, this_value:reg7, `eval`
[ 50] CallDirectEval value_feedback:1, call_feedback:0, dst:reg6, callee:reg6, this_value:reg7, arguments:[String("")]
- [ 5c] GetCalleeAndThisFromEnvironment value_feedback:2, callee:reg7, this_value:reg8, `inner`
- [ 6c] Call value_feedback:3, call_feedback:1, dst:reg7, callee:reg7, this_value:reg8
- [ 77] Return value:reg7
+ [ 5a] GetCalleeAndThisFromEnvironment value_feedback:2, callee:reg7, this_value:reg8, `inner`
+ [ 6a] Call value_feedback:3, call_feedback:1, dst:reg7, callee:reg7, this_value:reg8
+ [ 73] 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 7a152cd3d1f..fb3cc17a2bc 100644
--- a/Tests/LibJS/Bytecode/expected/eval-same-function.txt
+++ b/Tests/LibJS/Bytecode/expected/eval-same-function.txt
@@ -1,4 +1,4 @@
-$a3d8fdc4 eval-same-function.js:10:1
+$44317be6 eval-same-function.js:10:1
Registers: 7
Blocks: 1
Constants:
@@ -9,10 +9,10 @@ block0:
[ 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
- [ 18] End value:reg5
+ [ 16] End value:reg5
-foo$ed7e8a89 eval-same-function.js:6:9
+foo$2e2f86cd eval-same-function.js:6:9
Registers: 7
Blocks: 1
Constants:
@@ -24,9 +24,9 @@ block0:
[ 1] CreateArguments is_immutable:false, creates_parameter_bindings:false
[ 9] DynamicGetCalleeAndThisFromEnvironment value_feedback:0, callee:reg5, this_value:reg6, `eval`
[ 13] CallDirectEval value_feedback:1, call_feedback:0, dst:reg5, callee:reg5, this_value:reg6, arguments:[String("var x = 1")]
- [ 1f] DynamicGetBinding value_feedback:2, dst:reg5, `Number`
- [ 28] CallConstruct value_feedback:3, call_feedback:1, dst:reg5, callee:reg5, arguments:[Int32(42)]
- [ 33] Return value:reg5
+ [ 1d] DynamicGetBinding value_feedback:2, dst:reg5, `Number`
+ [ 26] CallConstruct value_feedback:3, call_feedback:1, dst:reg5, callee:reg5, arguments:[Int32(42)]
+ [ 2f] Return value:reg5
eval$7fa36a2e line 1, column 5
diff --git a/Tests/LibJS/Bytecode/expected/eval-scope-optimization.txt b/Tests/LibJS/Bytecode/expected/eval-scope-optimization.txt
index c6a13f039a9..780ca5164c7 100644
--- a/Tests/LibJS/Bytecode/expected/eval-scope-optimization.txt
+++ b/Tests/LibJS/Bytecode/expected/eval-scope-optimization.txt
@@ -1,4 +1,4 @@
-$ef3f58e2 eval-scope-optimization.js:12:1
+$4ee6dac0 eval-scope-optimization.js:12:1
Registers: 7
Blocks: 1
Constants:
@@ -9,10 +9,10 @@ block0:
[ 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
- [ 18] End value:reg5
+ [ 16] End value:reg5
-outer$b8912de9 eval-scope-optimization.js:6:5
+outer$58e9ac0b eval-scope-optimization.js:6:5
Registers: 7
Blocks: 1
Constants:
@@ -27,4 +27,4 @@ block0:
[ 23] SetVariableBinding `inner`, src:reg5
[ 30] GetGlobal value_feedback:0, dst:reg6, `Number`
[ 39] CallConstruct value_feedback:1, call_feedback:0, dst:reg6, callee:reg6, arguments:[Int32(42)]
- [ 44] Return value:reg6
+ [ 42] 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 35e278ad8d7..48974fc242b 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 @@
-$ef5c6584 expression-identifier-number-format.js:1:5
+$13dacd3e expression-identifier-number-format.js:1:5
Registers: 8
Blocks: 1
Constants:
@@ -14,9 +14,9 @@ block0:
[ 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
- [ 2a] Mov dst:reg5, src:reg7
- [ 2d] GetGlobal value_feedback:1, dst:reg6, `x`
- [ 36] GetByValue value_feedback:2, keyed_feedback:1, dst:reg6, base:reg6, property:Double(1.1e-32)
- [ 42] PutById base:reg6, `foo`, src:Int32(42), kind:Normal
- [ 50] Mov dst:reg5, src:Int32(42)
- [ 53] End value:reg5
+ [ 28] Mov dst:reg5, src:reg7
+ [ 2b] GetGlobal value_feedback:1, dst:reg6, `x`
+ [ 34] GetByValue value_feedback:2, keyed_feedback:1, dst:reg6, base:reg6, property:Double(1.1e-32)
+ [ 3e] PutById base:reg6, `foo`, src:Int32(42), kind:Normal
+ [ 4a] Mov dst:reg5, src:Int32(42)
+ [ 4d] 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 718c63d5f91..e1287b9cf74 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 @@
-$2d5ad3ae for-in-block-order.js:5:1
+$8d02558c for-in-block-order.js:5:1
Registers: 8
Blocks: 1
Constants:
@@ -10,7 +10,7 @@ block0:
[ 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]
- [ 1d] End value:reg5
+ [ 1b] End value:reg5
foo$6c8afc5d for-in-block-order.js:2:14
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 21feb6fe170..07b4197b85f 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 @@
-$e4f90765 for-in-object-property-iterator-next.js:8:1
+$665affed for-in-object-property-iterator-next.js:8:1
Registers: 8
Blocks: 1
Constants:
@@ -15,13 +15,13 @@ block0:
[ 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
- [ 1f] PutById base:reg7, `foo`, src:String("foo"), kind:Own
- [ 2d] PutByValue keyed_feedback:1, base:reg7, property:Int32(7), src:String("seven"), kind:Own
- [ 3b] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
- [ 47] End value:reg5
+ [ 1d] PutById base:reg7, `foo`, src:String("foo"), kind:Own
+ [ 29] PutByValue keyed_feedback:1, base:reg7, property:Int32(7), src:String("seven"), kind:Own
+ [ 35] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
+ [ 3f] End value:reg5
-collect$7eede8fe for-in-object-property-iterator-next.js:2:18
+collect$3e3cecba 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`
- [ 3a] Call value_feedback:1, call_feedback:0, dst:reg11, callee:reg11, this_value:keys~0, arguments:[key~1]
- [ 46] JumpLoop target:block2
+ [ 38] Call value_feedback:1, call_feedback:0, dst:reg11, callee:reg11, this_value:keys~0, arguments:[key~1]
+ [ 42] JumpLoop target:block2
block4:
- [ 4b] Return value:keys~0
+ [ 47] 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 5eb1eac1d72..6b11471d747 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 @@
-$083fdf14 for-in-register-lifetime.js:1:5
+$67e760f2 for-in-register-lifetime.js:1:5
Registers: 16
Blocks: 5
Constants:
@@ -38,11 +38,11 @@ block3:
[ 8a] GetGlobal value_feedback:3, dst:reg14, `obj`
[ 93] GetGlobal value_feedback:4, dst:reg15, `k`
[ 9c] GetByValue value_feedback:5, keyed_feedback:0, dst:reg14, base:reg14, property:reg15
- [ a8] Add arith_feedback:0, dst:reg13, lhs:reg13, rhs:reg14
- [ ae] Add arith_feedback:1, dst:reg14, lhs:reg12, rhs:reg13
- [ b4] SetGlobal `result`, src:reg14
- [ bb] Mov dst:reg5, src:reg14
- [ be] JumpLoop target:block2
+ [ a6] Add arith_feedback:0, dst:reg13, lhs:reg13, rhs:reg14
+ [ ac] Add arith_feedback:1, dst:reg14, lhs:reg12, rhs:reg13
+ [ b2] SetGlobal `result`, src:reg14
+ [ b9] Mov dst:reg5, src:reg14
+ [ bc] JumpLoop target:block2
block4:
- [ c3] End value:reg5
+ [ c1] 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 520effff214..8a38aa65f6c 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 @@
-$a33dfa99 for-in-var-function-lhs-name.js:7:1
+$439678bb for-in-var-function-lhs-name.js:7:1
Registers: 7
Blocks: 1
Constants:
@@ -9,7 +9,7 @@ block0:
[ 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
- [ 18] End value:reg5
+ [ 16] End value:reg5
fn$563d19e7 for-in-var-function-lhs-name.js:4:14
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 02621077dd7..c0c2c351350 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 @@
-$3ae30cc4 for-loop-break-after-if-continue.js:11:1
+$db3b8ae6 for-loop-break-after-if-continue.js:11:1
Registers: 7
Blocks: 1
Constants:
@@ -10,7 +10,7 @@ block0:
[ 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)]
- [ 19] End value:reg5
+ [ 17] 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 2f71b4969b8..c2113321dbc 100644
--- a/Tests/LibJS/Bytecode/expected/for-loop-scoping.txt
+++ b/Tests/LibJS/Bytecode/expected/for-loop-scoping.txt
@@ -1,4 +1,4 @@
-$93253ad7 for-loop-scoping.js:8:1
+$337db8f9 for-loop-scoping.js:8:1
Registers: 9
Blocks: 1
Constants:
@@ -9,13 +9,13 @@ block0:
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `console`
[ d] GetById value_feedback:1, dst:reg7, base:reg6, `log`
- [ 19] GetGlobal value_feedback:2, dst:reg8, `forLetClosure`
- [ 22] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined
- [ 2d] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 39] End value:reg5
+ [ 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
-forLetClosure$846d6769 for-loop-scoping.js:2:15
+forLetClosure$fabf9bb1 for-loop-scoping.js:2:15
Registers: 8
Blocks: 4
Locals: fns~0
@@ -38,30 +38,30 @@ block0:
block1:
[ 64] GetById value_feedback:1, dst:reg6, base:fns~0, `push`
- [ 70] NewFunction dst:reg7, shared_function_data_index:0
- [ 7a] Call value_feedback:2, call_feedback:0, dst:reg6, callee:reg6, this_value:fns~0, arguments:[reg7]
- [ 86] GetBinding value_feedback:3, dst:reg6, `i`
- [ 95] SetLexicalEnvironment environment:reg4
- [ 97] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false
- [ a3] CreateVariable `i`, is_immutable:false, is_global:false, is_strict:false
- [ ae] InitializeLexicalBinding `i`, src:reg6
- [ bb] GetBinding value_feedback:4, dst:reg6, `i`
- [ ca] PostfixIncrement arith_feedback:0, dst:reg7, src:reg6
- [ cf] SetLexicalBinding `i`, src:reg6
+ [ 6e] NewFunction dst:reg7, shared_function_data_index:0
+ [ 78] Call value_feedback:2, call_feedback:0, dst:reg6, callee:reg6, this_value:fns~0, arguments:[reg7]
+ [ 82] GetBinding value_feedback:3, dst:reg6, `i`
+ [ 91] SetLexicalEnvironment environment:reg4
+ [ 93] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false
+ [ 9f] CreateVariable `i`, is_immutable:false, is_global:false, is_strict:false
+ [ aa] InitializeLexicalBinding `i`, src:reg6
+ [ b7] GetBinding value_feedback:4, dst:reg6, `i`
+ [ c6] PostfixIncrement arith_feedback:0, dst:reg7, src:reg6
+ [ cb] SetLexicalBinding `i`, src:reg6
block2:
- [ dc] GetBinding value_feedback:5, dst:reg6, `i`
- [ eb] JumpLessThanLoopRhsInt32 arith_feedback:1, lhs:reg6, rhs:3, true_target:block1, false_target:block3
+ [ d8] GetBinding value_feedback:5, dst:reg6, `i`
+ [ e7] JumpLessThanLoopRhsInt32 arith_feedback:1, lhs:reg6, rhs:3, true_target:block1, false_target:block3
block3:
- [ fb] SetLexicalEnvironment environment:reg4
- [ fd] GetById value_feedback:6, dst:reg5, base:fns~0, `map`
- [ 109] NewFunction dst:reg6, shared_function_data_index:1
- [ 113] Call value_feedback:7, call_feedback:1, dst:reg5, callee:reg5, this_value:fns~0, arguments:[reg6]
- [ 11f] Return value:reg5
+ [ f7] SetLexicalEnvironment environment:reg4
+ [ f9] GetById value_feedback:6, dst:reg5, base:fns~0, `map`
+ [ 103] NewFunction dst:reg6, shared_function_data_index:1
+ [ 10d] Call value_feedback:7, call_feedback:1, dst:reg5, callee:reg5, this_value:fns~0, arguments:[reg6]
+ [ 117] Return value:reg5
-map$d48ab001 BuiltinFile:275:11
+map$55eca889 BuiltinFile:275:11
Registers: 6
Blocks: 8
Locals: object~0, length~1, array~2, k~3, kValue~4, mappedValue~5
@@ -75,43 +75,43 @@ block0:
[ 1] ToObject dst:reg5, value:this
[ 4] Mov dst:object~0, src:reg5
[ 7] GetLength value_feedback:0, keyed_feedback:0, dst:reg5, base:object~0
- [ 12] ToLength dst:reg5, value:reg5
- [ 15] Mov dst:length~1, src:reg5
- [ 18] IsCallable dst:reg5, value:arg0
- [ 1b] Not dst:reg5, src:reg5
- [ 1e] JumpFalse condition:reg5, target:block2
+ [ 10] ToLength dst:reg5, value:reg5
+ [ 13] Mov dst:length~1, src:reg5
+ [ 16] IsCallable dst:reg5, value:arg0
+ [ 19] Not dst:reg5, src:reg5
+ [ 1c] JumpFalse condition:reg5, target:block2
block1:
- [ 24] ThrowNotAFunction src:arg0
+ [ 22] ThrowNotAFunction src:arg0
block2:
- [ 26] Call value_feedback:1, call_feedback:0, dst:reg5, callee:Value([object RawNativeFunction]), this_value:Undefined, arguments:[object~0, length~1]
- [ 33] Mov dst:array~2, src:reg5
- [ 36] Mov dst:k~3, src:Int32(0)
- [ 39] Jump target:block6
+ [ 24] Call value_feedback:1, call_feedback:0, dst:reg5, callee:Value([object RawNativeFunction]), this_value:Undefined, arguments:[object~0, length~1]
+ [ 2f] Mov dst:array~2, src:reg5
+ [ 32] Mov dst:k~3, src:Int32(0)
+ [ 35] Jump target:block6
block3:
- [ 3e] In dst:reg5, lhs:k~3, rhs:object~0
- [ 42] JumpFalse condition:reg5, target:block5
+ [ 3a] In dst:reg5, lhs:k~3, rhs:object~0
+ [ 3e] JumpFalse condition:reg5, target:block5
block4:
- [ 48] GetByValue value_feedback:2, keyed_feedback:1, dst:reg5, base:object~0, property:k~3
- [ 54] Mov dst:kValue~4, src:reg5
- [ 57] Call value_feedback:3, call_feedback:1, dst:reg5, callee:arg0, this_value:arg1, arguments:[kValue~4, k~3, object~0]
- [ 65] Mov dst:mappedValue~5, src:reg5
- [ 68] CreateDataPropertyOrThrow object:array~2, property:k~3, value:mappedValue~5
+ [ 44] GetByValue value_feedback:2, keyed_feedback:1, dst:reg5, base:object~0, property:k~3
+ [ 4e] Mov dst:kValue~4, src:reg5
+ [ 51] Call value_feedback:3, call_feedback:1, dst:reg5, callee:arg0, this_value:arg1, arguments:[kValue~4, k~3, object~0]
+ [ 5d] Mov dst:mappedValue~5, src:reg5
+ [ 60] CreateDataPropertyOrThrow object:array~2, property:k~3, value:mappedValue~5
block5:
- [ 6c] Increment arith_feedback:0, dst:k~3
+ [ 64] Increment arith_feedback:0, dst:k~3
block6:
- [ 70] JumpLessThanLoop arith_feedback:1, lhs:k~3, rhs:length~1, true_target:block3, false_target:block7
+ [ 68] JumpLessThanLoop arith_feedback:1, lhs:k~3, rhs:length~1, true_target:block3, false_target:block7
block7:
- [ 7d] Return value:array~2
+ [ 75] Return value:array~2
-$7aeb8ae9 for-loop-scoping.js:6:20
+$1b44090b for-loop-scoping.js:6:20
Registers: 6
Blocks: 1
Constants:
@@ -120,7 +120,7 @@ $7aeb8ae9 for-loop-scoping.js:6:20
block0:
[ 0] Enter
[ 1] Call value_feedback:0, call_feedback:0, dst:reg5, callee:arg0, this_value:Undefined
- [ c] Return value:reg5
+ [ a] Return value:reg5
$d59afef1 for-loop-scoping.js:4:18
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 095581e7aa0..bed3a1570db 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 @@
-$9d1126ee for-of-cond-rhs-block-order.js:6:1
+$bc07ac88 for-of-cond-rhs-block-order.js:6:1
Registers: 7
Blocks: 1
Constants:
@@ -10,10 +10,10 @@ block0:
[ 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]
- [ 1a] End value:reg5
+ [ 18] End value:reg5
-f$d8eee1ba for-of-cond-rhs-block-order.js:2:15
+f$b7346b10 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`
- [ 19] Jump target:block3
+ [ 17] Jump target:block3
block2:
- [ 1e] Mov dst:reg6, src:arg1
+ [ 1c] Mov dst:reg6, src:arg1
block3:
- [ 21] GetGlobal value_feedback:1, dst:reg7, `Object`
- [ 2a] GetById value_feedback:2, dst:reg8, base:reg7, `entries`
- [ 36] NewObject dst:reg9
- [ 3a] Call value_feedback:3, call_feedback:0, dst:reg5, callee:reg8, this_value:reg7, arguments:[reg9]
- [ 46] GetIterator dst_iterator_object:reg6, dst_iterator_next:reg7, dst_iterator_done:reg8, iterable:reg5, fast_array_mode_allowed:true
+ [ 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
block4:
- [ 52] IteratorNextUnpack dst_value:reg9, dst_done:reg10, iterator_object:reg6, iterator_next:reg7, iterator_done:reg8
- [ 58] JumpTrue condition:reg10, target:block21
+ [ 4c] IteratorNextUnpack dst_value:reg9, dst_done:reg10, iterator_object:reg6, iterator_next:reg7, iterator_done:reg8
+ [ 52] JumpTrue condition:reg10, target:block21
block5:
- [ 5e] Mov dst:reg11, src:Bool(false)
- [ 61] GetIterator dst_iterator_object:reg12, dst_iterator_next:reg13, dst_iterator_done:reg14, iterable:reg9, fast_array_mode_allowed:true
+ [ 58] Mov dst:reg11, src:Bool(false)
+ [ 5b] GetIterator dst_iterator_object:reg12, dst_iterator_next:reg13, dst_iterator_done:reg14, iterable:reg9, fast_array_mode_allowed:true
block6:
- [ 6d] IteratorNextUnpack dst_value:reg15, dst_done:reg11, iterator_object:reg12, iterator_next:reg13, iterator_done:reg14
+ [ 67] IteratorNextUnpack dst_value:reg15, dst_done:reg11, iterator_object:reg12, iterator_next:reg13, iterator_done:reg14
block7:
- [ 73] JumpFalse condition:reg11, target:block9
+ [ 6d] JumpFalse condition:reg11, target:block9
block8:
- [ 79] Mov dst:reg15, src:Undefined
+ [ 73] Mov dst:reg15, src:Undefined
block9:
- [ 7c] Mov dst:r~0, src:reg15
- [ 7f] JumpTrue condition:reg11, target:block12
+ [ 76] Mov dst:r~0, src:reg15
+ [ 79] JumpTrue condition:reg11, target:block12
block10:
- [ 85] IteratorNextUnpack dst_value:reg15, dst_done:reg11, iterator_object:reg12, iterator_next:reg13, iterator_done:reg14
+ [ 7f] IteratorNextUnpack dst_value:reg15, dst_done:reg11, iterator_object:reg12, iterator_next:reg13, iterator_done:reg14
block11:
- [ 8b] JumpFalse condition:reg11, target:block13
+ [ 85] JumpFalse condition:reg11, target:block13
block12:
- [ 91] Mov dst:reg15, src:Undefined
+ [ 8b] Mov dst:reg15, src:Undefined
block13:
- [ 94] Mov dst:n~1, src:reg15
+ [ 8e] Mov dst:n~1, src:reg15
block14:
- [ 97] JumpTrue condition:reg14, target:block19
+ [ 91] JumpTrue condition:reg14, target:block19
block15:
- [ 9d] IteratorClose iterator_object:reg12, iterator_next:reg13, iterator_done:reg14, completion_value:Undefined
- [ a8] Jump target:block19
+ [ 97] IteratorClose iterator_object:reg12, iterator_next:reg13, iterator_done:reg14, completion_value:Undefined
+ [ a2] Jump target:block19
block16:
- [ ad] Catch value_feedback:4, dst:reg15
- [ b1] JumpTrue condition:reg14, target:block18
+ [ a7] Catch value_feedback:4, dst:reg15
+ [ ab] JumpTrue condition:reg14, target:block18
block17:
- [ b7] IteratorClose iterator_object:reg12, iterator_next:reg13, iterator_done:reg14, completion_value:reg15
+ [ b1] IteratorClose iterator_object:reg12, iterator_next:reg13, iterator_done:reg14, completion_value:reg15
block18:
- [ c2] Throw src:reg15
+ [ bc] Throw src:reg15
block19:
- [ c4] JumpLoop target:block4
+ [ be] JumpLoop target:block4
block20:
- [ c9] Catch value_feedback:5, dst:reg11
- [ cd] IteratorClose iterator_object:reg6, iterator_next:reg7, iterator_done:reg8, completion_value:reg11
- [ d8] Throw src:reg11
+ [ c3] Catch value_feedback:5, dst:reg11
+ [ c7] IteratorClose iterator_object:reg6, iterator_next:reg7, iterator_done:reg8, completion_value:reg11
+ [ d2] Throw src:reg11
block21:
- [ da] End value:Undefined
+ [ d4] End value:Undefined
Exception handlers:
- [ 5e .. 6d] => handler block20
- [ 6d .. 73] => handler block20
- [ 73 .. 85] => handler block16
- [ 85 .. 8b] => handler block20
- [ 8b .. 97] => handler block16
- [ 97 .. c9] => handler block20
+ [ 58 .. 67] => handler block20
+ [ 67 .. 6d] => handler block20
+ [ 6d .. 7f] => handler block16
+ [ 7f .. 85] => handler block20
+ [ 85 .. 91] => handler block16
+ [ 91 .. c3] => 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 3de112ddb0d..241f8a9105a 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 @@
-$1726a337 for-of-continue-with-block-scope.js:13:1
+$76ce2515 for-of-continue-with-block-scope.js:13:1
Registers: 8
Blocks: 1
Constants:
@@ -10,10 +10,10 @@ block0:
[ 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]
- [ 1c] End value:reg5
+ [ 1a] End value:reg5
-f$aa7d1953 for-of-continue-with-block-scope.js:2:15
+f$291b20cb for-of-continue-with-block-scope.js:2:15
Registers: 14
Blocks: 7
Locals: t~0, o~1
@@ -42,27 +42,27 @@ block2:
block3:
[ 76] GetById value_feedback:1, dst:reg12, base:t~0, `push`
- [ 82] GetBinding value_feedback:2, dst:reg13, `r`
- [ 91] Call value_feedback:3, call_feedback:0, dst:reg12, callee:reg12, this_value:t~0, arguments:[reg13]
- [ 9d] SetLexicalEnvironment environment:reg4
- [ 9f] Jump target:block1
+ [ 80] GetBinding value_feedback:2, dst:reg13, `r`
+ [ 8f] Call value_feedback:3, call_feedback:0, dst:reg12, callee:reg12, this_value:t~0, arguments:[reg13]
+ [ 99] SetLexicalEnvironment environment:reg4
+ [ 9b] Jump target:block1
block4:
- [ a4] GetById value_feedback:4, dst:reg12, base:t~0, `find`
- [ b0] NewFunction dst:reg13, shared_function_data_index:0
- [ ba] Call value_feedback:5, call_feedback:1, dst:reg12, callee:reg12, this_value:t~0, arguments:[reg13]
- [ c6] Mov dst:o~1, src:reg12
- [ c9] SetLexicalEnvironment environment:reg4
- [ cb] JumpLoop target:block1
+ [ a0] GetById value_feedback:4, dst:reg12, base:t~0, `find`
+ [ aa] NewFunction dst:reg13, shared_function_data_index:0
+ [ b4] Call value_feedback:5, call_feedback:1, dst:reg12, callee:reg12, this_value:t~0, arguments:[reg13]
+ [ be] Mov dst:o~1, src:reg12
+ [ c1] SetLexicalEnvironment environment:reg4
+ [ c3] JumpLoop target:block1
block5:
- [ d0] Catch value_feedback:6, dst:reg11
- [ d4] SetLexicalEnvironment environment:reg4
- [ d6] IteratorClose iterator_object:reg6, iterator_next:reg7, iterator_done:reg8, completion_value:reg11
- [ e1] Throw src:reg11
+ [ c8] Catch value_feedback:6, dst:reg11
+ [ cc] SetLexicalEnvironment environment:reg4
+ [ ce] IteratorClose iterator_object:reg6, iterator_next:reg7, iterator_done:reg8, completion_value:reg11
+ [ d9] Throw src:reg11
block6:
- [ e3] Return value:t~0
+ [ db] Return value:t~0
Exception handlers:
- [ 3a .. d0] => handler block5
+ [ 3a .. c8] => 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 c83b31869e7..cb20c421990 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 @@
-$3e8608a3 for-of-iterator-close.js:6:1
+$1743afd9 for-of-iterator-close.js:6:1
Registers: 8
Blocks: 1
Constants:
@@ -9,12 +9,12 @@ block0:
[ 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
- [ 18] GetGlobal value_feedback:2, dst:reg6, `forOfReturn`
- [ 21] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined
- [ 2c] GetGlobal value_feedback:4, dst:reg6, `forAwaitOfBreak`
- [ 35] NewPrimitiveArray dst:reg7, elements:[1, 2, 3]
- [ 53] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
- [ 5f] End value:reg5
+ [ 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
forOfBreak$f672c20f for-of-iterator-close.js:2:16
@@ -94,7 +94,7 @@ Exception handlers:
[ 3a .. 3d] => handler block3
-forAwaitOfBreak$2018d1b3 for-of-iterator-close.js:16:22
+forAwaitOfBreak$7fc05391 for-of-iterator-close.js:16:22
Registers: 18
Blocks: 23
Locals: x~0
@@ -110,91 +110,91 @@ block0:
block1:
[ 13] Call value_feedback:0, call_feedback:0, dst:reg11, callee:reg7, this_value:reg6
- [ 1e] Mov dst:reg12, src:reg0
- [ 21] Await continuation_label:block2, argument:reg11
+ [ 1c] Mov dst:reg12, src:reg0
+ [ 1f] Await continuation_label:block2, argument:reg11
block2:
- [ 27] Mov dst:reg12, src:reg0
- [ 2a] GetCompletionFields type_dst:reg13, value_dst:reg14, completion:reg12
- [ 2e] StrictlyEqualsRhsInt32 arith_feedback:0, dst:reg15, lhs:reg13, rhs:1
- [ 37] JumpIf condition:reg15, true_target:block4, false_target:block3
+ [ 25] Mov dst:reg12, src:reg0
+ [ 28] GetCompletionFields type_dst:reg13, value_dst:reg14, completion:reg12
+ [ 2c] StrictlyEqualsRhsInt32 arith_feedback:0, dst:reg15, lhs:reg13, rhs:1
+ [ 35] JumpIf condition:reg15, true_target:block4, false_target:block3
block3:
- [ 41] Throw src:reg14
+ [ 3f] Throw src:reg14
block4:
- [ 43] ThrowIfNotObject src:reg14
- [ 45] GetById value_feedback:1, dst:reg10, base:reg14, `done`
- [ 51] JumpTrue condition:reg10, target:block22
+ [ 41] ThrowIfNotObject src:reg14
+ [ 43] GetById value_feedback:1, dst:reg10, base:reg14, `done`
+ [ 4d] JumpTrue condition:reg10, target:block22
block5:
- [ 57] GetById value_feedback:2, dst:reg9, base:reg14, `value`
+ [ 53] GetById value_feedback:2, dst:reg9, base:reg14, `value`
block6:
- [ 63] Mov dst:x~0, src:reg9
- [ 66] JumpStrictlyEqualsRhsInt32 arith_feedback:1, lhs:x~0, rhs:2, true_target:block7, false_target:block13
+ [ 5d] Mov dst:x~0, src:reg9
+ [ 60] JumpStrictlyEqualsRhsInt32 arith_feedback:1, lhs:x~0, rhs:2, true_target:block7, false_target:block13
block7:
- [ 76] GetMethod dst:reg11, object:reg6, `return`
- [ 7e] JumpUndefined condition:reg11, true_target:block12, false_target:block8
+ [ 70] GetMethod dst:reg11, object:reg6, `return`
+ [ 78] JumpUndefined condition:reg11, true_target:block12, false_target:block8
block8:
- [ 88] Call value_feedback:3, call_feedback:1, dst:reg12, callee:reg11, this_value:reg6
- [ 93] Mov dst:reg13, src:reg0
- [ 96] Await continuation_label:block9, argument:reg12
+ [ 82] Call value_feedback:3, call_feedback:1, dst:reg12, callee:reg11, this_value:reg6
+ [ 8b] Mov dst:reg13, src:reg0
+ [ 8e] Await continuation_label:block9, argument:reg12
block9:
- [ 9c] Mov dst:reg13, src:reg0
- [ 9f] GetCompletionFields type_dst:reg14, value_dst:reg15, completion:reg13
- [ a3] StrictlyEqualsRhsInt32 arith_feedback:2, dst:reg16, lhs:reg14, rhs:1
- [ ac] JumpIf condition:reg16, true_target:block11, false_target:block10
+ [ 94] Mov dst:reg13, src:reg0
+ [ 97] GetCompletionFields type_dst:reg14, value_dst:reg15, completion:reg13
+ [ 9b] StrictlyEqualsRhsInt32 arith_feedback:2, dst:reg16, lhs:reg14, rhs:1
+ [ a4] JumpIf condition:reg16, true_target:block11, false_target:block10
block10:
- [ b6] Throw src:reg15
+ [ ae] Throw src:reg15
block11:
- [ b8] ThrowIfNotObject src:reg15
+ [ b0] ThrowIfNotObject src:reg15
block12:
- [ ba] Jump target:block22
+ [ b2] Jump target:block22
block13:
- [ bf] JumpLoop target:block1
+ [ b7] JumpLoop target:block1
block14:
- [ c4] Catch value_feedback:4, dst:reg11
+ [ bc] Catch value_feedback:4, dst:reg11
block15:
- [ c8] GetMethod dst:reg12, object:reg6, `return`
- [ d0] JumpUndefined condition:reg12, true_target:block21, false_target:block16
+ [ c0] GetMethod dst:reg12, object:reg6, `return`
+ [ c8] JumpUndefined condition:reg12, true_target:block21, false_target:block16
block16:
- [ da] Call value_feedback:5, call_feedback:2, dst:reg13, callee:reg12, this_value:reg6
- [ e5] Mov dst:reg14, src:reg0
- [ e8] Await continuation_label:block17, argument:reg13
+ [ d2] Call value_feedback:5, call_feedback:2, dst:reg13, callee:reg12, this_value:reg6
+ [ db] Mov dst:reg14, src:reg0
+ [ de] Await continuation_label:block17, argument:reg13
block17:
- [ ee] Mov dst:reg14, src:reg0
- [ f1] GetCompletionFields type_dst:reg15, value_dst:reg16, completion:reg14
- [ f5] StrictlyEqualsRhsInt32 arith_feedback:3, dst:reg17, lhs:reg15, rhs:1
- [ fe] JumpIf condition:reg17, true_target:block19, false_target:block18
+ [ e4] Mov dst:reg14, src:reg0
+ [ e7] GetCompletionFields type_dst:reg15, value_dst:reg16, completion:reg14
+ [ eb] StrictlyEqualsRhsInt32 arith_feedback:3, dst:reg17, lhs:reg15, rhs:1
+ [ f4] JumpIf condition:reg17, true_target:block19, false_target:block18
block18:
- [ 108] Throw src:reg16
+ [ fe] Throw src:reg16
block19:
- [ 10a] Jump target:block21
+ [ 100] Jump target:block21
block20:
- [ 10f] Catch value_feedback:6, dst:reg12
+ [ 105] Catch value_feedback:6, dst:reg12
block21:
- [ 113] Throw src:reg11
+ [ 109] Throw src:reg11
block22:
- [ 115] Yield value:Undefined
+ [ 10b] Yield value:Undefined
Exception handlers:
- [ 63 .. 76] => handler block14
- [ bf .. c4] => handler block14
- [ c8 .. 10f] => handler block20
+ [ 5d .. 70] => handler block14
+ [ b7 .. bc] => handler block14
+ [ c0 .. 105] => handler block20
diff --git a/Tests/LibJS/Bytecode/expected/function-decl-source-order.txt b/Tests/LibJS/Bytecode/expected/function-decl-source-order.txt
index 99b9e36cc79..5d1e6c281ff 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 @@
-$4bd5188a function-decl-source-order.js:17:1
+$6acb9e24 function-decl-source-order.js:17:1
Registers: 13
Blocks: 1
Constants:
@@ -9,18 +9,18 @@ block0:
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `console`
[ d] GetById value_feedback:1, dst:reg7, base:reg6, `log`
- [ 19] GetGlobal value_feedback:2, dst:reg8, `alpha`
- [ 22] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined
- [ 2d] GetGlobal value_feedback:4, dst:reg9, `beta`
- [ 36] Call value_feedback:5, call_feedback:1, dst:reg9, callee:reg9, this_value:Undefined
- [ 41] GetGlobal value_feedback:6, dst:reg10, `gamma`
- [ 4a] Call value_feedback:7, call_feedback:2, dst:reg10, callee:reg10, this_value:Undefined
- [ 55] GetGlobal value_feedback:8, dst:reg11, `delta`
- [ 5e] Call value_feedback:9, call_feedback:3, dst:reg11, callee:reg11, this_value:Undefined
- [ 69] GetGlobal value_feedback:10, dst:reg12, `dup`
- [ 72] Call value_feedback:11, call_feedback:4, dst:reg12, callee:reg12, this_value:Undefined
- [ 7d] Call value_feedback:12, call_feedback:5, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8, reg9, reg10, reg11, reg12]
- [ 8d] End value:reg5
+ [ 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
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 176856c5850..0f65b8c037f 100644
--- a/Tests/LibJS/Bytecode/expected/generator-yield-call.txt
+++ b/Tests/LibJS/Bytecode/expected/generator-yield-call.txt
@@ -1,4 +1,4 @@
-$7c031665 generator-yield-call.js:9:1
+$5d0c90cb generator-yield-call.js:9:1
Registers: 9
Blocks: 1
Constants:
@@ -17,10 +17,10 @@ block0:
[ 27] InitObjectLiteralProperty object:reg8, `y`, src:Int32(2), shape_cache_index:1, property_slot:0
[ 35] CacheObjectShape object:reg8
[ 39] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7, reg8]
- [ 46] End value:reg5
+ [ 44] End value:reg5
-f$8be5a37f generator-yield-call.js:6:5
+f$4b34a73b 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`
- [ 14] Yield continuation_label:block2, value:reg5
+ [ 12] Yield continuation_label:block2, value:reg5
block2:
- [ 1b] Mov dst:reg6, src:reg0
- [ 1e] GetCompletionFields type_dst:reg7, value_dst:reg8, completion:reg6
- [ 22] StrictlyEqualsRhsInt32 arith_feedback:0, dst:reg9, lhs:reg7, rhs:1
- [ 2b] JumpIf condition:reg9, true_target:block6, false_target:block3
+ [ 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
block3:
- [ 35] StrictlyEqualsRhsInt32 arith_feedback:1, dst:reg10, lhs:reg7, rhs:5
- [ 3e] JumpIf condition:reg10, true_target:block4, false_target:block5
+ [ 33] StrictlyEqualsRhsInt32 arith_feedback:1, dst:reg10, lhs:reg7, rhs:5
+ [ 3c] JumpIf condition:reg10, true_target:block4, false_target:block5
block4:
- [ 48] Throw src:reg8
+ [ 46] Throw src:reg8
block5:
- [ 4a] Yield value:reg8
+ [ 48] Yield value:reg8
block6:
- [ 51] Mov dst:reg5, src:reg8
- [ 54] GetById value_feedback:1, dst:reg5, base:arg1, `y`
- [ 60] Yield continuation_label:block7, value:reg5
+ [ 4f] Mov dst:reg5, src:reg8
+ [ 52] GetById value_feedback:1, dst:reg5, base:arg1, `y`
+ [ 5c] Yield continuation_label:block7, value:reg5
block7:
- [ 67] Mov dst:reg6, src:reg0
- [ 6a] GetCompletionFields type_dst:reg7, value_dst:reg8, completion:reg6
- [ 6e] StrictlyEqualsRhsInt32 arith_feedback:2, dst:reg9, lhs:reg7, rhs:1
- [ 77] JumpIf condition:reg9, true_target:block11, false_target:block8
+ [ 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
block8:
- [ 81] StrictlyEqualsRhsInt32 arith_feedback:3, dst:reg10, lhs:reg7, rhs:5
- [ 8a] JumpIf condition:reg10, true_target:block9, false_target:block10
+ [ 7d] StrictlyEqualsRhsInt32 arith_feedback:3, dst:reg10, lhs:reg7, rhs:5
+ [ 86] JumpIf condition:reg10, true_target:block9, false_target:block10
block9:
- [ 94] Throw src:reg8
+ [ 90] Throw src:reg8
block10:
- [ 96] Yield value:reg8
+ [ 92] Yield value:reg8
block11:
- [ 9d] Mov dst:reg5, src:reg8
- [ a0] Yield value:Undefined
+ [ 99] Mov dst:reg5, src:reg8
+ [ 9c] Yield value:Undefined
diff --git a/Tests/LibJS/Bytecode/expected/generator-yield-finally.txt b/Tests/LibJS/Bytecode/expected/generator-yield-finally.txt
index 5516f8ca5b3..095f7d4ed04 100644
--- a/Tests/LibJS/Bytecode/expected/generator-yield-finally.txt
+++ b/Tests/LibJS/Bytecode/expected/generator-yield-finally.txt
@@ -1,4 +1,4 @@
-$8b0f4bd5 generator-yield-finally.js:11:1
+$2b67c9f7 generator-yield-finally.js:11:1
Registers: 7
Blocks: 1
Constants:
@@ -9,7 +9,7 @@ block0:
[ 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
- [ 18] End value:reg5
+ [ 16] 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 74383f59f34..b065d547167 100644
--- a/Tests/LibJS/Bytecode/expected/generator-yield-star.txt
+++ b/Tests/LibJS/Bytecode/expected/generator-yield-star.txt
@@ -1,4 +1,4 @@
-$30b25353 generator-yield-star.js:6:1
+$5530bb0d generator-yield-star.js:6:1
Registers: 8
Blocks: 1
Constants:
@@ -10,10 +10,10 @@ block0:
[ 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]
- [ 2f] End value:reg5
+ [ 2d] End value:reg5
-f$d5ac74e6 generator-yield-star.js:4:5
+f$7e50c638 generator-yield-star.js:4:5
Registers: 21
Blocks: 19
Constants:
@@ -36,68 +36,68 @@ block2:
block3:
[ 32] Call value_feedback:0, call_feedback:0, dst:reg12, callee:reg9, this_value:reg8, arguments:[reg7]
- [ 3e] ThrowIfNotObject src:reg12
- [ 40] GetById value_feedback:1, dst:reg13, base:reg12, `done`
- [ 4c] JumpIf condition:reg13, true_target:block4, false_target:block5
+ [ 3c] ThrowIfNotObject src:reg12
+ [ 3e] GetById value_feedback:1, dst:reg13, base:reg12, `done`
+ [ 48] JumpIf condition:reg13, true_target:block4, false_target:block5
block4:
- [ 56] GetById value_feedback:2, dst:reg14, base:reg12, `value`
- [ 62] Jump target:block18
+ [ 52] GetById value_feedback:2, dst:reg14, base:reg12, `value`
+ [ 5c] Jump target:block18
block5:
- [ 67] YieldIteratorResult continuation_label:block17, value:reg12
+ [ 61] YieldIteratorResult continuation_label:block17, value:reg12
block6:
- [ 6d] StrictlyEqualsRhsInt32 arith_feedback:1, dst:reg15, lhs:reg6, rhs:5
- [ 76] JumpIf condition:reg15, true_target:block7, false_target:block12
+ [ 67] StrictlyEqualsRhsInt32 arith_feedback:1, dst:reg15, lhs:reg6, rhs:5
+ [ 70] JumpIf condition:reg15, true_target:block7, false_target:block12
block7:
- [ 80] GetMethod dst:reg16, object:reg8, `throw`
- [ 88] JumpUndefined condition:reg16, true_target:block11, false_target:block8
+ [ 7a] GetMethod dst:reg16, object:reg8, `throw`
+ [ 82] JumpUndefined condition:reg16, true_target:block11, false_target:block8
block8:
- [ 92] Call value_feedback:3, call_feedback:1, dst:reg12, callee:reg16, this_value:reg8, arguments:[reg7]
- [ 9e] ThrowIfNotObject src:reg12
- [ a0] GetById value_feedback:4, dst:reg13, base:reg12, `done`
- [ ac] JumpIf condition:reg13, true_target:block9, false_target:block10
+ [ 8c] Call value_feedback:3, call_feedback:1, dst:reg12, callee:reg16, this_value:reg8, arguments:[reg7]
+ [ 96] ThrowIfNotObject src:reg12
+ [ 98] GetById value_feedback:4, dst:reg13, base:reg12, `done`
+ [ a2] JumpIf condition:reg13, true_target:block9, false_target:block10
block9:
- [ b6] GetById value_feedback:5, dst:reg14, base:reg12, `value`
- [ c2] Jump target:block18
+ [ ac] GetById value_feedback:5, dst:reg14, base:reg12, `value`
+ [ b6] Jump target:block18
block10:
- [ c7] YieldIteratorResult continuation_label:block17, value:reg12
+ [ bb] YieldIteratorResult continuation_label:block17, value:reg12
block11:
- [ cd] IteratorClose iterator_object:reg8, iterator_next:reg9, iterator_done:reg10, completion_value:Undefined
- [ d8] NewTypeError dst:reg17, yield* protocol violation: iterator must have a throw method
- [ dd] Throw src:reg17
+ [ c1] IteratorClose iterator_object:reg8, iterator_next:reg9, iterator_done:reg10, completion_value:Undefined
+ [ cc] NewTypeError dst:reg17, yield* protocol violation: iterator must have a throw method
+ [ d1] Throw src:reg17
block12:
- [ df] GetMethod dst:reg18, object:reg8, `return`
- [ e7] JumpUndefined condition:reg18, true_target:block13, false_target:block14
+ [ d3] GetMethod dst:reg18, object:reg8, `return`
+ [ db] JumpUndefined condition:reg18, true_target:block13, false_target:block14
block13:
- [ f1] Yield value:reg7
+ [ e5] Yield value:reg7
block14:
- [ f8] Call value_feedback:6, call_feedback:2, dst:reg19, callee:reg18, this_value:reg8, arguments:[reg7]
- [ 104] ThrowIfNotObject src:reg19
- [ 106] GetById value_feedback:7, dst:reg13, base:reg19, `done`
- [ 112] JumpIf condition:reg13, true_target:block15, false_target:block16
+ [ ec] Call value_feedback:6, call_feedback:2, dst:reg19, callee:reg18, this_value:reg8, arguments:[reg7]
+ [ f6] ThrowIfNotObject src:reg19
+ [ f8] GetById value_feedback:7, dst:reg13, base:reg19, `done`
+ [ 102] JumpIf condition:reg13, true_target:block15, false_target:block16
block15:
- [ 11c] GetById value_feedback:8, dst:reg20, base:reg19, `value`
- [ 128] Yield value:reg20
+ [ 10c] GetById value_feedback:8, dst:reg20, base:reg19, `value`
+ [ 116] Yield value:reg20
block16:
- [ 12f] YieldIteratorResult continuation_label:block17, value:reg19
+ [ 11d] YieldIteratorResult continuation_label:block17, value:reg19
block17:
- [ 135] Mov dst:reg5, src:reg0
- [ 138] GetCompletionFields type_dst:reg6, value_dst:reg7, completion:reg5
- [ 13c] Jump target:block2
+ [ 123] Mov dst:reg5, src:reg0
+ [ 126] GetCompletionFields type_dst:reg6, value_dst:reg7, completion:reg5
+ [ 12a] Jump target:block2
block18:
- [ 141] Mov dst:reg5, src:reg14
- [ 144] Yield value:Undefined
+ [ 12f] Mov dst:reg5, src:reg14
+ [ 132] Yield value:Undefined
diff --git a/Tests/LibJS/Bytecode/expected/generator-yield.txt b/Tests/LibJS/Bytecode/expected/generator-yield.txt
index e936d4bd47f..d0b77e6985e 100644
--- a/Tests/LibJS/Bytecode/expected/generator-yield.txt
+++ b/Tests/LibJS/Bytecode/expected/generator-yield.txt
@@ -1,4 +1,4 @@
-$e45415da generator-yield.js:11:5
+$7c60c0cc generator-yield.js:11:5
Registers: 8
Blocks: 1
Constants:
@@ -9,14 +9,14 @@ block0:
[ 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
- [ 18] SetGlobal `g`, src:reg6
- [ 1f] GetGlobal value_feedback:2, dst:reg6, `g`
- [ 28] GetById value_feedback:3, dst:reg7, base:reg6, `next`
- [ 34] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6
- [ 3f] GetGlobal value_feedback:5, dst:reg6, `g`
- [ 48] GetById value_feedback:6, dst:reg7, base:reg6, `next`
- [ 54] Call value_feedback:7, call_feedback:2, dst:reg5, callee:reg7, this_value:reg6
- [ 5f] End value:reg5
+ [ 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
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 7aa6ed18bce..b4d30fee735 100644
--- a/Tests/LibJS/Bytecode/expected/global-variables.txt
+++ b/Tests/LibJS/Bytecode/expected/global-variables.txt
@@ -1,4 +1,4 @@
-$5ec67153 global-variables.js:4:5
+$9f776d97 global-variables.js:4:5
Registers: 9
Blocks: 1
Constants:
@@ -11,9 +11,9 @@ block0:
[ 4] SetGlobal `x`, src:Int32(1)
[ b] GetGlobal value_feedback:0, dst:reg6, `console`
[ 14] GetById value_feedback:1, dst:reg7, base:reg6, `log`
- [ 20] GetGlobal value_feedback:2, dst:reg8, `x`
- [ 29] Call value_feedback:3, call_feedback:0, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 35] End value:reg5
+ [ 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
1
diff --git a/Tests/LibJS/Bytecode/expected/if-else-register-lifetime.txt b/Tests/LibJS/Bytecode/expected/if-else-register-lifetime.txt
index aeda4a6f8cb..4817d2efa39 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 @@
-$e3875e16 if-else-register-lifetime.js:11:1
+$83dfdc38 if-else-register-lifetime.js:11:1
Registers: 8
Blocks: 1
Constants:
@@ -10,10 +10,10 @@ block0:
[ 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]
- [ 27] End value:reg5
+ [ 25] End value:reg5
-test$3778705a if-else-register-lifetime.js:2:9
+test$7aed5dae if-else-register-lifetime.js:2:9
Registers: 7
Blocks: 10
Locals: a~0, i~1, j~2
@@ -41,29 +41,29 @@ block2:
block3:
[ 2d] Add arith_feedback:1, dst:reg5, lhs:i~1, rhs:j~2
[ 33] GetByValue value_feedback:0, keyed_feedback:0, dst:reg5, base:arg0, property:reg5
- [ 3f] PutByValue keyed_feedback:1, base:arg0, property:j~2, src:reg5, kind:Normal
- [ 4d] Jump target:block5
+ [ 3d] PutByValue keyed_feedback:1, base:arg0, property:j~2, src:reg5, kind:Normal
+ [ 49] Jump target:block5
block4:
- [ 52] GetGlobal value_feedback:1, dst:reg5, `parseInt`
- [ 5b] SubRhsInt32 arith_feedback:2, dst:reg6, lhs:j~2, rhs:3
- [ 64] GetByValue value_feedback:2, keyed_feedback:2, dst:reg6, base:arg0, property:reg6
- [ 70] Call value_feedback:3, call_feedback:0, dst:reg5, callee:reg5, this_value:Undefined, arguments:[reg6, Int32(1)]
- [ 7d] PutByValue keyed_feedback:3, base:arg0, property:j~2, src:reg5, kind:Normal
+ [ 4e] GetGlobal value_feedback:1, dst:reg5, `parseInt`
+ [ 57] SubRhsInt32 arith_feedback:2, dst:reg6, lhs:j~2, rhs:3
+ [ 60] GetByValue value_feedback:2, keyed_feedback:2, dst:reg6, base:arg0, property:reg6
+ [ 6a] Call value_feedback:3, call_feedback:0, dst:reg5, callee:reg5, this_value:Undefined, arguments:[reg6, Int32(1)]
+ [ 75] PutByValue keyed_feedback:3, base:arg0, property:j~2, src:reg5, kind:Normal
block5:
- [ 8b] Increment arith_feedback:3, dst:j~2
+ [ 81] Increment arith_feedback:3, dst:j~2
block6:
- [ 8f] JumpLessThanLoopRhsInt32 arith_feedback:4, lhs:j~2, rhs:10, true_target:block2, false_target:block7
+ [ 85] JumpLessThanLoopRhsInt32 arith_feedback:4, lhs:j~2, rhs:10, true_target:block2, false_target:block7
block7:
- [ 9f] Increment arith_feedback:5, dst:i~1
+ [ 95] Increment arith_feedback:5, dst:i~1
block8:
- [ a3] JumpLessThanLoopRhsInt32 arith_feedback:6, lhs:i~1, rhs:10, true_target:block1, false_target:block9
+ [ 99] JumpLessThanLoopRhsInt32 arith_feedback:6, lhs:i~1, rhs:10, true_target:block1, false_target:block9
block9:
- [ b3] GetGlobal value_feedback:4, dst:reg5, `parseInt`
- [ bc] Call value_feedback:5, call_feedback:1, dst:reg5, callee:reg5, this_value:Undefined, arguments:[a~0]
- [ c8] Return value:reg5
+ [ a9] GetGlobal value_feedback:4, dst:reg5, `parseInt`
+ [ b2] Call value_feedback:5, call_feedback:1, dst:reg5, callee:reg5, this_value:Undefined, arguments:[a~0]
+ [ bc] Return value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/imported-bindings.txt b/Tests/LibJS/Bytecode/expected/imported-bindings.txt
index c6fcc514fb7..ec814f42d84 100644
--- a/Tests/LibJS/Bytecode/expected/imported-bindings.txt
+++ b/Tests/LibJS/Bytecode/expected/imported-bindings.txt
@@ -1,4 +1,4 @@
-call$6d91bcfb imported-bindings.mjs:11:5
+call$cd393ed9 imported-bindings.mjs:11:5
Registers: 7
Blocks: 1
Constants:
@@ -9,7 +9,7 @@ block0:
[ 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
- [ 18] Return value:reg5
+ [ 16] Return value:reg5
read$48e02633 imported-bindings.mjs:7:5
diff --git a/Tests/LibJS/Bytecode/expected/indexed-append-guards.txt b/Tests/LibJS/Bytecode/expected/indexed-append-guards.txt
index d27374bb3a7..ed1d36fee12 100644
--- a/Tests/LibJS/Bytecode/expected/indexed-append-guards.txt
+++ b/Tests/LibJS/Bytecode/expected/indexed-append-guards.txt
@@ -1,4 +1,4 @@
-$408635ca indexed-append-guards.js:1:1
+$84864d08 indexed-append-guards.js:1:1
Registers: 10
Blocks: 7
Constants:
@@ -19,65 +19,65 @@ block0:
[ 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`
- [ 1c] NewObject dst:reg8
- [ 20] PutByValue keyed_feedback:0, base:reg8, property:Int32(0), src:Int32(1), kind:Own
- [ 2e] Call value_feedback:2, call_feedback:0, dst:reg6, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 3a] DynamicInitializeLexicalBinding `object`, src:reg6
- [ 41] GetGlobal value_feedback:3, dst:reg6, `expect_type_error`
- [ 4a] NewFunction dst:reg7, shared_function_data_index:0
- [ 54] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
- [ 60] GetGlobal value_feedback:5, dst:reg6, `object`
- [ 69] GetByValue value_feedback:6, keyed_feedback:1, dst:reg6, base:reg6, property:Int32(1)
- [ 75] StrictlyInequals arith_feedback:0, dst:reg6, lhs:reg6, rhs:Undefined
- [ 7b] Mov dst:reg5, src:Undefined
- [ 7e] JumpFalse condition:reg6, target:block2
+ [ 1a] NewObject dst:reg8
+ [ 1e] PutByValue keyed_feedback:0, base:reg8, property:Int32(0), src:Int32(1), kind:Own
+ [ 2a] Call value_feedback:2, call_feedback:0, dst:reg6, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 34] DynamicInitializeLexicalBinding `object`, src:reg6
+ [ 3b] GetGlobal value_feedback:3, dst:reg6, `expect_type_error`
+ [ 44] NewFunction dst:reg7, shared_function_data_index:0
+ [ 4e] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
+ [ 58] GetGlobal value_feedback:5, dst:reg6, `object`
+ [ 61] GetByValue value_feedback:6, keyed_feedback:1, dst:reg6, base:reg6, property:Int32(1)
+ [ 6b] StrictlyInequals arith_feedback:0, dst:reg6, lhs:reg6, rhs:Undefined
+ [ 71] Mov dst:reg5, src:Undefined
+ [ 74] JumpFalse condition:reg6, target:block2
block1:
- [ 84] GetGlobal value_feedback:7, dst:reg6, `Error`
- [ 8d] CallConstruct value_feedback:8, call_feedback:2, dst:reg6, callee:reg6, arguments:[String("Indexed object append mutated")]
- [ 98] Throw src:reg6
+ [ 7a] GetGlobal value_feedback:7, dst:reg6, `Error`
+ [ 83] CallConstruct value_feedback:8, call_feedback:2, dst:reg6, callee:reg6, arguments:[String("Indexed object append mutated")]
+ [ 8c] Throw src:reg6
block2:
- [ 9a] NewPrimitiveArray dst:reg6, elements:[1, 2]
- [ b0] DynamicInitializeLexicalBinding `array`, src:reg6
- [ b7] GetGlobal value_feedback:9, dst:reg6, `Object`
- [ c0] GetById value_feedback:10, dst:reg7, base:reg6, `defineProperty`
- [ cc] GetGlobal value_feedback:11, dst:reg8, `array`
- [ d5] NewObject dst:reg9
- [ d9] InitObjectLiteralProperty object:reg9, `writable`, src:Bool(false), shape_cache_index:0, property_slot:0
- [ e7] CacheObjectShape object:reg9
- [ eb] Call value_feedback:12, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8, String("length"), reg9]
- [ f9] GetGlobal value_feedback:13, dst:reg6, `expect_type_error`
- [ 102] NewFunction dst:reg7, shared_function_data_index:1
- [ 10c] Call value_feedback:14, call_feedback:4, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
- [ 118] GetGlobal value_feedback:15, dst:reg6, `array`
- [ 121] GetLength value_feedback:16, keyed_feedback:2, dst:reg6, base:reg6
- [ 12c] StrictlyInequalsRhsInt32 arith_feedback:1, dst:reg6, lhs:reg6, rhs:2
- [ 135] Mov dst:reg5, src:Undefined
- [ 138] JumpFalse condition:reg6, target:block4
+ [ 8e] NewPrimitiveArray dst:reg6, elements:[1, 2]
+ [ a4] DynamicInitializeLexicalBinding `array`, src:reg6
+ [ ab] GetGlobal value_feedback:9, dst:reg6, `Object`
+ [ b4] GetById value_feedback:10, dst:reg7, base:reg6, `defineProperty`
+ [ be] GetGlobal value_feedback:11, dst:reg8, `array`
+ [ c7] NewObject dst:reg9
+ [ cb] InitObjectLiteralProperty object:reg9, `writable`, src:Bool(false), shape_cache_index:0, property_slot:0
+ [ d9] CacheObjectShape object:reg9
+ [ dd] Call value_feedback:12, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8, String("length"), reg9]
+ [ e9] GetGlobal value_feedback:13, dst:reg6, `expect_type_error`
+ [ f2] NewFunction dst:reg7, shared_function_data_index:1
+ [ fc] Call value_feedback:14, call_feedback:4, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
+ [ 106] GetGlobal value_feedback:15, dst:reg6, `array`
+ [ 10f] GetLength value_feedback:16, keyed_feedback:2, dst:reg6, base:reg6
+ [ 118] StrictlyInequalsRhsInt32 arith_feedback:1, dst:reg6, lhs:reg6, rhs:2
+ [ 121] Mov dst:reg5, src:Undefined
+ [ 124] JumpFalse condition:reg6, target:block4
block3:
- [ 13e] GetGlobal value_feedback:17, dst:reg6, `Error`
- [ 147] CallConstruct value_feedback:18, call_feedback:5, dst:reg6, callee:reg6, arguments:[String("Array length changed")]
- [ 152] Throw src:reg6
+ [ 12a] GetGlobal value_feedback:17, dst:reg6, `Error`
+ [ 133] CallConstruct value_feedback:18, call_feedback:5, dst:reg6, callee:reg6, arguments:[String("Array length changed")]
+ [ 13c] Throw src:reg6
block4:
- [ 154] GetGlobal value_feedback:19, dst:reg6, `array`
- [ 15d] GetByValue value_feedback:20, keyed_feedback:3, dst:reg6, base:reg6, property:Int32(2)
- [ 169] StrictlyInequals arith_feedback:2, dst:reg6, lhs:reg6, rhs:Undefined
- [ 16f] Mov dst:reg5, src:Undefined
- [ 172] JumpFalse condition:reg6, target:block6
+ [ 13e] GetGlobal value_feedback:19, dst:reg6, `array`
+ [ 147] GetByValue value_feedback:20, keyed_feedback:3, dst:reg6, base:reg6, property:Int32(2)
+ [ 151] StrictlyInequals arith_feedback:2, dst:reg6, lhs:reg6, rhs:Undefined
+ [ 157] Mov dst:reg5, src:Undefined
+ [ 15a] JumpFalse condition:reg6, target:block6
block5:
- [ 178] GetGlobal value_feedback:21, dst:reg6, `Error`
- [ 181] CallConstruct value_feedback:22, call_feedback:6, dst:reg6, callee:reg6, arguments:[String("Array append mutated")]
- [ 18c] Throw src:reg6
+ [ 160] GetGlobal value_feedback:21, dst:reg6, `Error`
+ [ 169] CallConstruct value_feedback:22, call_feedback:6, dst:reg6, callee:reg6, arguments:[String("Array append mutated")]
+ [ 172] Throw src:reg6
block6:
- [ 18e] End value:reg5
+ [ 174] End value:reg5
-expect_type_error$d6153900 indexed-append-guards.js:4:9
+expect_type_error$16c63544 indexed-append-guards.js:4:9
Registers: 7
Blocks: 8
Locals: did_throw~0, error~1
@@ -94,41 +94,41 @@ block0:
block1:
[ 4] Call value_feedback:0, call_feedback:0, dst:reg5, callee:arg0, this_value:Undefined
- [ f] Jump target:block5
+ [ d] Jump target:block5
block2:
- [ 14] Catch value_feedback:1, dst:reg5
- [ 18] Mov dst:error~1, src:<Empty>
- [ 1b] Mov dst:error~1, src:reg5
- [ 1e] GetGlobal value_feedback:2, dst:reg6, `TypeError`
- [ 27] InstanceOf dst:reg6, lhs:error~1, rhs:reg6
- [ 2b] Not dst:reg6, src:reg6
- [ 2e] JumpFalse condition:reg6, target:block4
+ [ 12] Catch value_feedback:1, dst:reg5
+ [ 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
block3:
- [ 34] Throw src:error~1
+ [ 32] Throw src:error~1
block4:
- [ 36] Mov dst:did_throw~0, src:Bool(true)
- [ 39] Jump target:block5
+ [ 34] Mov dst:did_throw~0, src:Bool(true)
+ [ 37] Jump target:block5
block5:
- [ 3e] Not dst:reg5, src:did_throw~0
- [ 41] JumpFalse condition:reg5, target:block7
+ [ 3c] Not dst:reg5, src:did_throw~0
+ [ 3f] JumpFalse condition:reg5, target:block7
block6:
- [ 47] GetGlobal value_feedback:3, dst:reg5, `Error`
- [ 50] CallConstruct value_feedback:4, call_feedback:1, dst:reg5, callee:reg5, arguments:[String("Expected TypeError")]
- [ 5b] Throw src:reg5
+ [ 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
block7:
- [ 5d] End value:Undefined
+ [ 59] End value:Undefined
Exception handlers:
- [ 4 .. 14] => handler block2
+ [ 4 .. 12] => handler block2
-$d302d5f8 indexed-append-guards.js:18:5
+$735b541a indexed-append-guards.js:18:5
Registers: 6
Blocks: 1
Constants:
@@ -140,10 +140,10 @@ 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
- [ 18] End value:Undefined
+ [ 16] End value:Undefined
-$a5078f84 indexed-append-guards.js:26:5
+$64569340 indexed-append-guards.js:26:5
Registers: 7
Blocks: 1
Constants:
@@ -155,5 +155,5 @@ block0:
[ 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
- [ 1e] PutByValue keyed_feedback:1, base:reg5, property:reg6, src:Int32(3), kind:Normal
- [ 2c] End value:Undefined
+ [ 1c] PutByValue keyed_feedback:1, base:reg5, property:reg6, src:Int32(3), kind:Normal
+ [ 28] End value:Undefined
diff --git a/Tests/LibJS/Bytecode/expected/int32-binary-specializations.txt b/Tests/LibJS/Bytecode/expected/int32-binary-specializations.txt
index a962433e839..52f215ed4f1 100644
--- a/Tests/LibJS/Bytecode/expected/int32-binary-specializations.txt
+++ b/Tests/LibJS/Bytecode/expected/int32-binary-specializations.txt
@@ -1,4 +1,4 @@
-$e41aecab int32-binary-specializations.js:20:1
+$43c26e89 int32-binary-specializations.js:20:1
Registers: 7
Blocks: 1
Constants:
@@ -10,7 +10,7 @@ block0:
[ 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)]
- [ 19] End value:reg5
+ [ 17] 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 bbce3acf3d9..cd27ec1f71d 100644
--- a/Tests/LibJS/Bytecode/expected/int32-comparison-specializations.txt
+++ b/Tests/LibJS/Bytecode/expected/int32-comparison-specializations.txt
@@ -1,4 +1,4 @@
-$7c6c64f7 int32-comparison-specializations.js:35:1
+$bfe1524b int32-comparison-specializations.js:35:1
Registers: 7
Blocks: 1
Constants:
@@ -10,9 +10,9 @@ block0:
[ 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)]
- [ 19] GetGlobal value_feedback:2, dst:reg6, `comparison_jumps`
- [ 22] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Int32(1)]
- [ 2e] End value:reg5
+ [ 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
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 ef53232addc..f3af1c1bbf4 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 @@
-$f2ccbcb5 invalid-lhs-assignment-no-dead-code.js:8:1
+$d3d6371b invalid-lhs-assignment-no-dead-code.js:8:1
Registers: 8
Blocks: 4
Constants:
@@ -13,21 +13,21 @@ block1:
[ 7] GetGlobal value_feedback:0, dst:reg6, `f`
[ 10] NewFunction dst:reg7, shared_function_data_index:0
[ 1a] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
- [ 26] Jump target:block3
+ [ 24] Jump target:block3
block2:
- [ 2b] Catch value_feedback:2, dst:reg6
- [ 2f] Mov dst:reg5, src:Undefined
- [ 32] Jump target:block3
+ [ 29] Catch value_feedback:2, dst:reg6
+ [ 2d] Mov dst:reg5, src:Undefined
+ [ 30] Jump target:block3
block3:
- [ 37] End value:reg5
+ [ 35] End value:reg5
Exception handlers:
- [ 7 .. 2b] => handler block2
+ [ 7 .. 29] => handler block2
-f$ae0420db invalid-lhs-assignment-no-dead-code.js:5:6
+f$0daba2b9 invalid-lhs-assignment-no-dead-code.js:5:6
Registers: 6
Blocks: 1
Constants:
@@ -36,8 +36,8 @@ f$ae0420db invalid-lhs-assignment-no-dead-code.js:5:6
block0:
[ 0] Enter
[ 1] Call value_feedback:0, call_feedback:0, dst:reg5, callee:arg0, this_value:Undefined
- [ c] NewReferenceError dst:reg5, Invalid left-hand side in assignment
- [ 11] Throw src:reg5
+ [ a] NewReferenceError dst:reg5, Invalid left-hand side in assignment
+ [ f] 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 6d2fc06184b..4663be285a5 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 @@
-$6c3874dd invalid-lhs-forin-no-dead-code.js:6:6
+$4a7dfe33 invalid-lhs-forin-no-dead-code.js:6:6
Registers: 13
Blocks: 4
Constants:
@@ -21,8 +21,8 @@ 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
- [ 3f] NewReferenceError dst:reg12, Invalid left-hand side in assignment
- [ 44] Throw src:reg12
+ [ 3d] NewReferenceError dst:reg12, Invalid left-hand side in assignment
+ [ 42] Throw src:reg12
block3:
- [ 46] End value:reg5
+ [ 44] End value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/lexical-env-teardown.txt b/Tests/LibJS/Bytecode/expected/lexical-env-teardown.txt
index ef40336f750..1e45297f36b 100644
--- a/Tests/LibJS/Bytecode/expected/lexical-env-teardown.txt
+++ b/Tests/LibJS/Bytecode/expected/lexical-env-teardown.txt
@@ -1,4 +1,4 @@
-$6000b72f lexical-env-teardown.js:13:1
+$19c7d8cb lexical-env-teardown.js:13:1
Registers: 9
Blocks: 1
Constants:
@@ -10,41 +10,41 @@ block0:
[ 3] Mov dst:reg5, src:Undefined
[ 6] GetGlobal value_feedback:0, dst:reg6, `console`
[ f] GetById value_feedback:1, dst:reg7, base:reg6, `log`
- [ 1b] GetGlobal value_feedback:2, dst:reg8, `withTeardown`
- [ 24] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined
- [ 2f] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 3b] GetGlobal value_feedback:5, dst:reg6, `console`
- [ 44] GetById value_feedback:6, dst:reg7, base:reg6, `log`
- [ 50] GetGlobal value_feedback:7, dst:reg8, `blockTeardown`
- [ 59] Call value_feedback:8, call_feedback:2, dst:reg8, callee:reg8, this_value:Undefined
- [ 64] Call value_feedback:9, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 70] GetGlobal value_feedback:10, dst:reg6, `console`
- [ 79] GetById value_feedback:11, dst:reg7, base:reg6, `log`
- [ 85] GetGlobal value_feedback:12, dst:reg8, `forInTeardown`
- [ 8e] Call value_feedback:13, call_feedback:4, dst:reg8, callee:reg8, this_value:Undefined
- [ 99] Call value_feedback:14, call_feedback:5, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ a5] GetGlobal value_feedback:15, dst:reg6, `console`
- [ ae] GetById value_feedback:16, dst:reg7, base:reg6, `log`
- [ ba] GetGlobal value_feedback:17, dst:reg8, `forOfTeardown`
- [ c3] Call value_feedback:18, call_feedback:6, dst:reg8, callee:reg8, this_value:Undefined
- [ ce] Call value_feedback:19, call_feedback:7, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ da] GetGlobal value_feedback:20, dst:reg6, `console`
- [ e3] GetById value_feedback:21, dst:reg7, base:reg6, `log`
- [ ef] GetGlobal value_feedback:22, dst:reg8, `catchTeardown`
- [ f8] Call value_feedback:23, call_feedback:8, dst:reg8, callee:reg8, this_value:Undefined
- [ 103] Call value_feedback:24, call_feedback:9, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 10f] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false
- [ 11b] CreateVariable `myName`, is_immutable:true, is_global:false, is_strict:false
- [ 126] NewFunction dst:reg6, shared_function_data_index:0
- [ 130] InitializeLexicalBinding `myName`, src:reg6
- [ 13d] SetLexicalEnvironment environment:reg4
- [ 13f] SetGlobal `namedFn`, src:reg6
- [ 146] GetGlobal value_feedback:25, dst:reg6, `console`
- [ 14f] GetById value_feedback:26, dst:reg7, base:reg6, `log`
- [ 15b] GetGlobal value_feedback:27, dst:reg8, `namedFn`
- [ 164] Call value_feedback:28, call_feedback:10, dst:reg8, callee:reg8, this_value:Undefined
- [ 16f] Call value_feedback:29, call_feedback:11, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 17b] End value:reg5
+ [ 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
+ [ 108] NewFunction dst:reg6, shared_function_data_index:0
+ [ 112] InitializeLexicalBinding `myName`, src:reg6
+ [ 11f] SetLexicalEnvironment environment:reg4
+ [ 121] SetGlobal `namedFn`, src:reg6
+ [ 128] GetGlobal value_feedback:25, dst:reg6, `console`
+ [ 131] GetById value_feedback:26, dst:reg7, base:reg6, `log`
+ [ 13b] GetGlobal value_feedback:27, dst:reg8, `namedFn`
+ [ 144] Call value_feedback:28, call_feedback:10, dst:reg8, callee:reg8, this_value:Undefined
+ [ 14d] Call value_feedback:29, call_feedback:11, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 157] End value:reg5
withTeardown$a4dac27e lexical-env-teardown.js:7:9
@@ -160,7 +160,7 @@ Exception handlers:
[ 35 .. 3d] => handler block3
-catchTeardown$c0d995fa lexical-env-teardown.js:48:9
+catchTeardown$208117d8 lexical-env-teardown.js:48:9
Registers: 6
Blocks: 4
Locals: outer~0, e~1
@@ -176,19 +176,19 @@ 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")]
- [ 18] Throw src:reg5
+ [ 16] Throw src:reg5
block2:
- [ 1a] Catch value_feedback:2, dst:reg5
- [ 1e] Mov dst:e~1, src:<Empty>
- [ 21] Mov dst:e~1, src:reg5
- [ 24] Jump target:block3
+ [ 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
block3:
- [ 29] Return value:outer~0
+ [ 27] Return value:outer~0
Exception handlers:
- [ 4 .. 1a] => handler block2
+ [ 4 .. 18] => handler block2
myName$ad026f37 lexical-env-teardown.js:60:5
diff --git a/Tests/LibJS/Bytecode/expected/local-source-order.txt b/Tests/LibJS/Bytecode/expected/local-source-order.txt
index 50d0ff92f4a..75b287bb67c 100644
--- a/Tests/LibJS/Bytecode/expected/local-source-order.txt
+++ b/Tests/LibJS/Bytecode/expected/local-source-order.txt
@@ -1,4 +1,4 @@
-$ef3f58e2 local-source-order.js:12:1
+$4ee6dac0 local-source-order.js:12:1
Registers: 7
Blocks: 1
Constants:
@@ -9,7 +9,7 @@ block0:
[ 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
- [ 18] End value:reg5
+ [ 16] 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 7416ef0b5fd..a0d2cd4e2a7 100644
--- a/Tests/LibJS/Bytecode/expected/local-variables.txt
+++ b/Tests/LibJS/Bytecode/expected/local-variables.txt
@@ -1,4 +1,4 @@
-$04b8ffc2 local-variables.js:20:1
+$2ebf499c local-variables.js:20:1
Registers: 7
Blocks: 1
Constants:
@@ -9,11 +9,11 @@ block0:
[ 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
- [ 18] GetGlobal value_feedback:2, dst:reg6, `simple_const`
- [ 21] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined
- [ 2c] GetGlobal value_feedback:4, dst:reg6, `multiple_locals`
- [ 35] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg6, this_value:Undefined
- [ 40] End value:reg5
+ [ 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
simple_let$ae8f7523 local-variables.js:5:9
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 832c66ce3c4..d8407d1e31d 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 @@
-$3f6b97f3 logical-or-in-if-condition.js:12:1
+$9f1319d1 logical-or-in-if-condition.js:12:1
Registers: 7
Blocks: 1
Constants:
@@ -10,7 +10,7 @@ block0:
[ 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)]
- [ 19] End value:reg5
+ [ 17] 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 cf343774146..992b437010f 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 @@
-$3ae30cc4 logical-or-preferred-dst.js:11:1
+$db3b8ae6 logical-or-preferred-dst.js:11:1
Registers: 7
Blocks: 1
Constants:
@@ -10,7 +10,7 @@ block0:
[ 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)]
- [ 19] End value:reg5
+ [ 17] 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 18f2acdc91f..e2b79fdc816 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 @@
-$4624859d mapped-arguments-parameter-bindings.js:4:1
+$a5cc077b mapped-arguments-parameter-bindings.js:4:1
Registers: 7
Blocks: 1
Constants:
@@ -12,10 +12,10 @@ block0:
[ 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)]
- [ 1b] End value:reg5
+ [ 19] End value:reg5
-forward$5a519d48 mapped-arguments-parameter-bindings.js:2:5
+forward$a115a596 mapped-arguments-parameter-bindings.js:2:5
Registers: 7
Blocks: 1
Locals: arguments~0
@@ -31,8 +31,8 @@ block0:
[ 30] SetLexicalBinding `b`, src:arg1
[ 3d] SetLexicalBinding `a`, src:arg2
[ 4a] GetLength value_feedback:0, keyed_feedback:0, dst:reg5, base:arguments~0
- [ 55] GetBinding value_feedback:1, dst:reg6, `a`
- [ 64] Add arith_feedback:0, dst:reg5, lhs:reg5, rhs:reg6
- [ 6a] GetBinding value_feedback:2, dst:reg6, `b`
- [ 79] Add arith_feedback:1, dst:reg5, lhs:reg5, rhs:reg6
- [ 7f] Return value:reg5
+ [ 53] GetBinding value_feedback:1, dst:reg6, `a`
+ [ 62] Add arith_feedback:0, dst:reg5, lhs:reg5, rhs:reg6
+ [ 68] GetBinding value_feedback:2, dst:reg6, `b`
+ [ 77] Add arith_feedback:1, dst:reg5, lhs:reg5, rhs:reg6
+ [ 7d] Return value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/module-level-bindings.txt b/Tests/LibJS/Bytecode/expected/module-level-bindings.txt
index c956de8dc9c..18926b14fa4 100644
--- a/Tests/LibJS/Bytecode/expected/module-level-bindings.txt
+++ b/Tests/LibJS/Bytecode/expected/module-level-bindings.txt
@@ -8,7 +8,7 @@ block0:
[ b] Return value:reg5
-inner$eb2d2d21 module-level-bindings.mjs:7:18
+inner$8b85ab43 module-level-bindings.mjs:7:18
Registers: 7
Blocks: 1
@@ -20,7 +20,7 @@ block0:
[ 25] SetLexicalBinding `variable`, src:reg5
[ 32] GetCalleeAndThisFromEnvironment value_feedback:2, callee:reg5, this_value:reg6, `declared`
[ 42] Call value_feedback:3, call_feedback:0, dst:reg5, callee:reg5, this_value:reg6
- [ 4d] Return value:reg5
+ [ 4b] Return value:reg5
declared$e1cd3589 module-level-bindings.mjs:13:5
diff --git a/Tests/LibJS/Bytecode/expected/mov-merging.txt b/Tests/LibJS/Bytecode/expected/mov-merging.txt
index e06ef58f080..ee2dc47cb78 100644
--- a/Tests/LibJS/Bytecode/expected/mov-merging.txt
+++ b/Tests/LibJS/Bytecode/expected/mov-merging.txt
@@ -1,4 +1,4 @@
-$87f95a0a mov-merging.js:14:1
+$cb6e475e mov-merging.js:14:1
Registers: 9
Blocks: 1
Constants:
@@ -9,15 +9,15 @@ block0:
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `console`
[ d] GetById value_feedback:1, dst:reg7, base:reg6, `log`
- [ 19] GetGlobal value_feedback:2, dst:reg8, `twoLocals`
- [ 22] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined
- [ 2d] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 39] GetGlobal value_feedback:5, dst:reg6, `console`
- [ 42] GetById value_feedback:6, dst:reg7, base:reg6, `log`
- [ 4e] GetGlobal value_feedback:7, dst:reg8, `threeLocals`
- [ 57] Call value_feedback:8, call_feedback:2, dst:reg8, callee:reg8, this_value:Undefined
- [ 62] Call value_feedback:9, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 6e] End value:reg5
+ [ 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
twoLocals$488b742b mov-merging.js:2:9
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 732056ba627..12954532782 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 @@
-$82ef6e73 named-function-expression-unused-name.js:24:1
+$c3a06ab7 named-function-expression-unused-name.js:24:1
Registers: 7
Blocks: 1
Constants:
@@ -10,9 +10,9 @@ block0:
[ 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)]
- [ 19] GetGlobal value_feedback:2, dst:reg6, `outerWithEval`
- [ 22] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined
- [ 2d] End value:reg5
+ [ 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
outer$ca6ecf5d named-function-expression-unused-name.js:6:20
diff --git a/Tests/LibJS/Bytecode/expected/named-function-expression.txt b/Tests/LibJS/Bytecode/expected/named-function-expression.txt
index 7e38c444afc..75adb9008d9 100644
--- a/Tests/LibJS/Bytecode/expected/named-function-expression.txt
+++ b/Tests/LibJS/Bytecode/expected/named-function-expression.txt
@@ -1,4 +1,4 @@
-$afbf6828 named-function-expression.js:4:1
+$0f66ea06 named-function-expression.js:4:1
Registers: 9
Blocks: 4
Constants:
@@ -29,4 +29,4 @@ block3:
[ 5e] Mov dst:reg5, src:reg7
[ 61] GetGlobal value_feedback:0, dst:reg6, `Oops`
[ 6a] GetById value_feedback:1, dst:reg5, base:reg6, `x`
- [ 76] End value:reg5
+ [ 74] 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 c085b7f0eac..9c322a4168b 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 @@
-$792308c8 nested-function-decl-source-order.js:15:1
+$9add7f72 nested-function-decl-source-order.js:15:1
Registers: 10
Blocks: 1
Constants:
@@ -10,15 +10,15 @@ block0:
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `console`
[ d] GetById value_feedback:1, dst:reg7, base:reg6, `log`
- [ 19] GetGlobal value_feedback:2, dst:reg8, `outer`
- [ 22] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined
- [ 2d] GetById value_feedback:4, dst:reg9, base:reg8, `join`
- [ 39] Call value_feedback:5, call_feedback:1, dst:reg8, callee:reg9, this_value:reg8, arguments:[String(",")]
- [ 45] Call value_feedback:6, call_feedback:2, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 51] End value:reg5
+ [ 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
-outer$926b38b2 nested-function-decl-source-order.js:6:5
+outer$b425af5c nested-function-decl-source-order.js:6:5
Registers: 11
Blocks: 1
Locals: alpha~0, beta~1, dup~2, gamma~3, delta~4
@@ -39,12 +39,12 @@ block0:
[ 3f] Mov dst:delta~4, src:Undefined
[ 42] NewFunction dst:delta~4, shared_function_data_index:5
[ 4c] Call value_feedback:0, call_feedback:0, dst:reg5, callee:alpha~0, this_value:Undefined
- [ 57] Call value_feedback:1, call_feedback:1, dst:reg6, callee:beta~1, this_value:Undefined
- [ 62] Call value_feedback:2, call_feedback:2, dst:reg7, callee:gamma~3, this_value:Undefined
- [ 6d] Call value_feedback:3, call_feedback:3, dst:reg8, callee:delta~4, this_value:Undefined
- [ 78] Call value_feedback:4, call_feedback:4, dst:reg9, callee:dup~2, this_value:Undefined
- [ 83] NewArray dst:reg10, elements:[reg5, reg6, reg7, reg8, reg9]
- [ 8b] Return value:reg10
+ [ 55] Call value_feedback:1, call_feedback:1, dst:reg6, callee:beta~1, this_value:Undefined
+ [ 5e] Call value_feedback:2, call_feedback:2, dst:reg7, callee:gamma~3, this_value:Undefined
+ [ 67] Call value_feedback:3, call_feedback:3, dst:reg8, callee:delta~4, this_value:Undefined
+ [ 70] Call value_feedback:4, call_feedback:4, dst:reg9, callee:dup~2, this_value:Undefined
+ [ 79] NewArray dst:reg10, elements:[reg5, reg6, reg7, reg8, reg9]
+ [ 81] 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 fb637789c38..9d162b80ec4 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 @@
-$6ae0461b nested-member-base-identifier.js:9:1
+$ca87c7f9 nested-member-base-identifier.js:9:1
Registers: 9
Blocks: 1
Constants:
@@ -14,10 +14,10 @@ block0:
[ 1f] CacheObjectShape object:reg7
[ 23] NewArray dst:reg8, elements:[reg7]
[ 27] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg8, Int32(1)]
- [ 34] End value:reg5
+ [ 32] End value:reg5
-assign_nested$7fe5773e nested-member-base-identifier.js:6:8
+assign_nested$3f347afa nested-member-base-identifier.js:6:8
Registers: 6
Blocks: 1
Constants:
@@ -28,5 +28,5 @@ block0:
[ 0] Enter
[ 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
- [ 16] PutById base:reg5, `shader`, src:Int32(0), kind:Normal
- [ 24] End value:Undefined
+ [ 14] PutById base:reg5, `shader`, src:Int32(0), kind:Normal
+ [ 20] 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 d87451bab9c..bd0d2488e31 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 @@
-$55a73d00 nested-try-finally-continue.js:14:1
+$f5ffbb22 nested-try-finally-continue.js:14:1
Registers: 7
Blocks: 1
Constants:
@@ -9,10 +9,10 @@ block0:
[ 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
- [ 18] End value:reg5
+ [ 16] End value:reg5
-nestedTryFinallyContinue$dbdb0fbd nested-try-finally-continue.js:2:10
+nestedTryFinallyContinue$5a791735 nested-try-finally-continue.js:2:10
Registers: 11
Blocks: 18
Locals: i~0
@@ -47,54 +47,54 @@ block4:
block5:
[ 30] GetGlobal value_feedback:1, dst:reg9, `console`
[ 39] GetById value_feedback:2, dst:reg10, base:reg9, `log`
- [ 45] Call value_feedback:3, call_feedback:0, dst:reg9, callee:reg10, this_value:reg9, arguments:[String("inner"), i~0]
- [ 52] JumpStrictlyEqualsRhsInt32 arith_feedback:1, lhs:reg7, rhs:0, true_target:block9, false_target:block6
+ [ 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
block6:
- [ 62] JumpStrictlyEqualsRhsInt32 arith_feedback:2, lhs:reg7, rhs:2, true_target:block7, false_target:block8
+ [ 5e] JumpStrictlyEqualsRhsInt32 arith_feedback:2, lhs:reg7, rhs:2, true_target:block7, false_target:block8
block7:
- [ 72] Mov dst:reg5, src:Int32(2)
- [ 75] Jump target:block11
+ [ 6e] Mov dst:reg5, src:Int32(2)
+ [ 71] Jump target:block11
block8:
- [ 7a] Throw src:reg8
+ [ 76] Throw src:reg8
block9:
- [ 7c] Mov dst:reg5, src:Int32(0)
- [ 7f] Jump target:block11
+ [ 78] Mov dst:reg5, src:Int32(0)
+ [ 7b] Jump target:block11
block10:
- [ 84] Catch value_feedback:4, dst:reg6
- [ 88] Mov dst:reg5, src:Int32(1)
+ [ 80] Catch value_feedback:4, dst:reg6
+ [ 84] Mov dst:reg5, src:Int32(1)
block11:
- [ 8b] GetGlobal value_feedback:5, dst:reg7, `console`
- [ 94] GetById value_feedback:6, dst:reg8, base:reg7, `log`
- [ a0] Call value_feedback:7, call_feedback:1, dst:reg7, callee:reg8, this_value:reg7, arguments:[String("outer"), i~0]
- [ ad] JumpStrictlyEqualsRhsInt32 arith_feedback:3, lhs:reg5, rhs:0, true_target:block15, false_target:block12
+ [ 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
block12:
- [ bd] JumpStrictlyEqualsRhsInt32 arith_feedback:4, lhs:reg5, rhs:2, true_target:block13, false_target:block14
+ [ b5] JumpStrictlyEqualsRhsInt32 arith_feedback:4, lhs:reg5, rhs:2, true_target:block13, false_target:block14
block13:
- [ cd] Jump target:block15
+ [ c5] Jump target:block15
block14:
- [ d2] Throw src:reg6
+ [ ca] Throw src:reg6
block15:
- [ d4] Increment arith_feedback:5, dst:i~0
+ [ cc] Increment arith_feedback:5, dst:i~0
block16:
- [ d8] JumpLessThanLoopRhsInt32 arith_feedback:6, lhs:i~0, rhs:3, true_target:block1, false_target:block17
+ [ d0] JumpLessThanLoopRhsInt32 arith_feedback:6, lhs:i~0, rhs:3, true_target:block1, false_target:block17
block17:
- [ e8] End value:Undefined
+ [ e0] End value:Undefined
Exception handlers:
[ 9 .. 29] => handler block4
- [ 29 .. 84] => handler block10
+ [ 29 .. 80] => 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 14d018b80bc..30d60106a6f 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 @@
-$b6b5ae96 numeric-class-field-name.js:1:1
+$4ec25988 numeric-class-field-name.js:1:1
Registers: 8
Blocks: 1
Constants:
@@ -16,9 +16,9 @@ block0:
[ 2f] DynamicInitializeLexicalBinding `C`, src:reg6
[ 36] GetGlobal value_feedback:0, dst:reg6, `C`
[ 3f] CallConstruct value_feedback:1, call_feedback:0, dst:reg6, callee:reg6
- [ 49] GetByValue value_feedback:2, keyed_feedback:0, dst:reg6, base:reg6, property:Int32(42)
- [ 55] GetById value_feedback:3, dst:reg5, base:reg6, `name`
- [ 61] End value:reg5
+ [ 47] GetByValue value_feedback:2, keyed_feedback:0, dst:reg6, base:reg6, property:Int32(42)
+ [ 51] GetById value_feedback:3, dst:reg5, base:reg6, `name`
+ [ 5b] End value:reg5
C$16234245
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 8c731e39a15..47428e613e9 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 @@
-$b16f5a50 numeric-getter-no-lhs-name.js:1:5
+$6b367bec numeric-getter-no-lhs-name.js:1:5
Registers: 8
Blocks: 1
Constants:
@@ -11,11 +11,11 @@ block0:
[ 4] NewObject dst:reg6
[ 8] NewFunction dst:reg7, shared_function_data_index:0 (get 0), home_object:reg6
[ 12] PutByValue keyed_feedback:0, base:reg6, property:Int32(0), src:reg7, kind:Getter
- [ 20] SetGlobal `obj`, src:reg6
- [ 27] GetGlobal value_feedback:0, dst:reg6, `obj`
- [ 30] GetByValue value_feedback:1, keyed_feedback:1, dst:reg6, base:reg6, property:Int32(0)
- [ 3c] Mov dst:reg5, src:reg6
- [ 3f] End value:reg5
+ [ 1e] SetGlobal `obj`, src:reg6
+ [ 25] GetGlobal value_feedback:0, dst:reg6, `obj`
+ [ 2e] GetByValue value_feedback:1, keyed_feedback:1, dst:reg6, base:reg6, property:Int32(0)
+ [ 38] Mov dst:reg5, src:reg6
+ [ 3b] 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 a26540abc32..21c58393642 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 @@
-$559fc86a numeric-index-object-literal.js:4:1
+$b5474a48 numeric-index-object-literal.js:4:1
Registers: 7
Blocks: 1
Constants:
@@ -9,10 +9,10 @@ block0:
[ 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
- [ 18] End value:reg5
+ [ 16] End value:reg5
-test$b31f16dd numeric-index-object-literal.js:2:5
+test$d4d98d87 numeric-index-object-literal.js:2:5
Registers: 6
Blocks: 1
Constants:
@@ -27,6 +27,6 @@ block0:
[ 0] Enter
[ 1] NewObject dst:reg5
[ 5] PutByValue keyed_feedback:0, base:reg5, property:Int32(100), src:Int32(1), kind:Own
- [ 13] PutByValue keyed_feedback:1, base:reg5, property:Int32(200), src:Int32(2), kind:Own
- [ 21] PutByValue keyed_feedback:2, base:reg5, property:Int32(300), src:Int32(3), kind:Own
- [ 2f] Return value:reg5
+ [ 11] PutByValue keyed_feedback:1, base:reg5, property:Int32(200), src:Int32(2), kind:Own
+ [ 1d] PutByValue keyed_feedback:2, base:reg5, property:Int32(300), src:Int32(3), kind:Own
+ [ 29] Return value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/numeric-property-key.txt b/Tests/LibJS/Bytecode/expected/numeric-property-key.txt
index 92baf03b9ea..51748b1e71d 100644
--- a/Tests/LibJS/Bytecode/expected/numeric-property-key.txt
+++ b/Tests/LibJS/Bytecode/expected/numeric-property-key.txt
@@ -1,4 +1,4 @@
-$daa087bb numeric-property-key.js:4:5
+$3a480999 numeric-property-key.js:4:5
Registers: 7
Blocks: 1
Constants:
@@ -11,5 +11,5 @@ block0:
[ 1] Mov dst:reg5, src:Undefined
[ 4] NewObject dst:reg6
[ 8] PutByValue keyed_feedback:0, base:reg6, property:Int32(20), src:Int32(3), kind:Own
- [ 16] SetGlobal `obj`, src:reg6
- [ 1d] End value:reg5
+ [ 14] SetGlobal `obj`, src:reg6
+ [ 1b] 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 97333accaa8..b82ca7230be 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 @@
-$7ac321af object-destructuring-rebinds-source-variable.js:5:1
+$99b9a749 object-destructuring-rebinds-source-variable.js:5:1
Registers: 10
Blocks: 1
Constants:
@@ -12,18 +12,18 @@ block0:
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `console`
[ d] GetById value_feedback:1, dst:reg7, base:reg6, `log`
- [ 19] GetGlobal value_feedback:2, dst:reg8, `run`
- [ 22] NewObject dst:reg9
- [ 26] InitObjectLiteralProperty object:reg9, `first`, src:Int32(1), shape_cache_index:0, property_slot:0
- [ 34] InitObjectLiteralProperty object:reg9, `second`, src:Int32(2), shape_cache_index:0, property_slot:1
- [ 42] InitObjectLiteralProperty object:reg9, `third`, src:Int32(3), shape_cache_index:0, property_slot:2
- [ 50] CacheObjectShape object:reg9
- [ 54] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined, arguments:[reg9]
- [ 60] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 6c] End value:reg5
+ [ 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
+ [ 32] InitObjectLiteralProperty object:reg9, `second`, src:Int32(2), shape_cache_index:0, property_slot:1
+ [ 40] InitObjectLiteralProperty object:reg9, `third`, src:Int32(3), shape_cache_index:0, property_slot:2
+ [ 4e] CacheObjectShape object:reg9
+ [ 52] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined, arguments:[reg9]
+ [ 5c] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 66] End value:reg5
-run$ce5f3a5b object-destructuring-rebinds-source-variable.js:2:5
+run$aca4c3b1 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`
- [ 18] GetById value_feedback:1, dst:arg0, base:reg5, `second`
- [ 24] GetById value_feedback:2, dst:third~1, base:reg5, `third`
- [ 30] NewArray dst:reg5, elements:[first~0, arg0, third~1]
- [ 36] Return value:reg5
+ [ 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
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 598aae82be1..31dc653ff87 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 @@
-$1116dc2e object-rest-computed-key.js:1:5
+$70be5e0c object-rest-computed-key.js:1:5
Registers: 10
Blocks: 1
Constants:
@@ -19,7 +19,7 @@ block0:
[ 31] GetGlobal value_feedback:0, dst:reg7, `a`
[ 3a] ToPrimitiveWithStringHint dst:reg8, value:reg7
[ 3d] GetByValue value_feedback:1, keyed_feedback:0, dst:reg9, base:reg6, property:reg8
- [ 49] SetGlobal `b`, src:reg9
- [ 50] CopyObjectExcludingProperties dst:reg9, from_object:reg6, excluded_names_are_in_array:false, excluded_names:[reg8]
- [ 56] SetGlobal `rest`, src:reg9
- [ 5d] End value:reg5
+ [ 47] SetGlobal `b`, src:reg9
+ [ 4e] CopyObjectExcludingProperties dst:reg9, from_object:reg6, excluded_names_are_in_array:false, excluded_names:[reg8]
+ [ 54] SetGlobal `rest`, src:reg9
+ [ 5b] 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 685550fa551..fe0123af8df 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 @@
-$1962af5e optional-chain-base-identifier.js:1:5
+$d8b1b31a optional-chain-base-identifier.js:1:5
Registers: 8
Blocks: 4
Constants:
@@ -17,15 +17,15 @@ block0:
[ 30] SetGlobal `obj`, src:reg6
[ 37] GetGlobal value_feedback:0, dst:reg6, `obj`
[ 40] GetById value_feedback:1, dst:reg6, base:reg6, `a`
- [ 4c] JumpNullish condition:reg6, true_target:block2, false_target:block1
+ [ 4a] JumpNullish condition:reg6, true_target:block2, false_target:block1
block1:
- [ 56] GetById value_feedback:2, dst:reg6, base:reg6, `b`
- [ 62] Jump target:block3
+ [ 54] GetById value_feedback:2, dst:reg6, base:reg6, `b`
+ [ 5e] Jump target:block3
block2:
- [ 67] Mov dst:reg6, src:Undefined
+ [ 63] Mov dst:reg6, src:Undefined
block3:
- [ 6a] Mov dst:reg5, src:reg6
- [ 6d] End value:reg5
+ [ 66] Mov dst:reg5, src:reg6
+ [ 69] End value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/optional-chain.txt b/Tests/LibJS/Bytecode/expected/optional-chain.txt
index 5f0ce7b82c1..38a8538ff04 100644
--- a/Tests/LibJS/Bytecode/expected/optional-chain.txt
+++ b/Tests/LibJS/Bytecode/expected/optional-chain.txt
@@ -1,4 +1,4 @@
-$16aa6279 optional-chain.js:25:1
+$b2062865 optional-chain.js:25:1
Registers: 7
Blocks: 1
Constants:
@@ -10,20 +10,20 @@ block0:
[ 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]
- [ 19] GetGlobal value_feedback:2, dst:reg6, `nested_member`
- [ 22] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Null]
- [ 2e] GetGlobal value_feedback:4, dst:reg6, `call_no_args`
- [ 37] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Null]
- [ 43] GetGlobal value_feedback:6, dst:reg6, `call_with_args`
- [ 4c] Call value_feedback:7, call_feedback:3, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Null]
- [ 58] GetGlobal value_feedback:8, dst:reg6, `computed`
- [ 61] Call value_feedback:9, call_feedback:4, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Null]
- [ 6d] GetGlobal value_feedback:10, dst:reg6, `member_then_call`
- [ 76] Call value_feedback:11, call_feedback:5, dst:reg5, callee:reg6, this_value:Undefined, arguments:[Null]
- [ 82] End value:reg5
-
-
-member$e866883b optional-chain.js:7:5
+ [ 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
Registers: 7
Blocks: 4
Constants:
@@ -36,16 +36,16 @@ block0:
block1:
[ e] GetById value_feedback:0, dst:reg6, base:reg5, `x`
- [ 1a] Jump target:block3
+ [ 18] Jump target:block3
block2:
- [ 1f] Mov dst:reg6, src:Undefined
+ [ 1d] Mov dst:reg6, src:Undefined
block3:
- [ 22] Return value:reg6
+ [ 20] Return value:reg6
-nested_member$39851f2a optional-chain.js:10:5
+nested_member$f8d422e6 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`
- [ 1a] JumpNullish condition:reg6, true_target:block3, false_target:block2
+ [ 18] JumpNullish condition:reg6, true_target:block3, false_target:block2
block2:
- [ 24] GetById value_feedback:1, dst:reg6, base:reg6, `y`
- [ 30] Jump target:block4
+ [ 22] GetById value_feedback:1, dst:reg6, base:reg6, `y`
+ [ 2c] Jump target:block4
block3:
- [ 35] Mov dst:reg6, src:Undefined
+ [ 31] Mov dst:reg6, src:Undefined
block4:
- [ 38] Return value:reg6
+ [ 34] Return value:reg6
-call_no_args$eb5e4a0e optional-chain.js:13:5
+call_no_args$aaad4dca 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`
- [ 1a] Call value_feedback:1, call_feedback:0, dst:reg6, callee:reg6, this_value:reg5
- [ 25] Jump target:block3
+ [ 18] Call value_feedback:1, call_feedback:0, dst:reg6, callee:reg6, this_value:reg5
+ [ 21] Jump target:block3
block2:
- [ 2a] Mov dst:reg6, src:Undefined
+ [ 26] Mov dst:reg6, src:Undefined
block3:
- [ 2d] Return value:reg6
+ [ 29] Return value:reg6
-call_with_args$b1aefb15 optional-chain.js:16:5
+call_with_args$f523e869 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`
- [ 1a] Call value_feedback:1, call_feedback:0, dst:reg6, callee:reg6, this_value:reg5, arguments:[Int32(1), Int32(2), Int32(3)]
- [ 28] Jump target:block3
+ [ 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
block2:
- [ 2d] Mov dst:reg6, src:Undefined
+ [ 29] Mov dst:reg6, src:Undefined
block3:
- [ 30] Return value:reg6
+ [ 2c] Return value:reg6
-computed$e7f520ce optional-chain.js:19:5
+computed$06eba668 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`
- [ 1a] Jump target:block3
+ [ 18] Jump target:block3
block2:
- [ 1f] Mov dst:reg6, src:Undefined
+ [ 1d] Mov dst:reg6, src:Undefined
block3:
- [ 22] Return value:reg6
+ [ 20] Return value:reg6
-member_then_call$3645cad8 optional-chain.js:22:5
+member_then_call$95ed4cb6 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`
- [ 1a] GetById value_feedback:1, dst:reg7, base:reg6, `foo`
- [ 26] Call value_feedback:2, call_feedback:0, dst:reg6, callee:reg7, this_value:reg6
- [ 31] Jump target:block3
+ [ 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
block2:
- [ 36] Mov dst:reg6, src:Undefined
+ [ 30] Mov dst:reg6, src:Undefined
block3:
- [ 39] Return value:reg6
+ [ 33] Return value:reg6
diff --git a/Tests/LibJS/Bytecode/expected/parameter-createvariable-order.txt b/Tests/LibJS/Bytecode/expected/parameter-createvariable-order.txt
index 90f01d79f39..600b2203e55 100644
--- a/Tests/LibJS/Bytecode/expected/parameter-createvariable-order.txt
+++ b/Tests/LibJS/Bytecode/expected/parameter-createvariable-order.txt
@@ -1,4 +1,4 @@
-$341b35ee parameter-createvariable-order.js:7:1
+$5311bb88 parameter-createvariable-order.js:7:1
Registers: 7
Blocks: 1
Constants:
@@ -12,10 +12,10 @@ block0:
[ 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)]
- [ 1b] End value:reg5
+ [ 19] End value:reg5
-f$664e1d33 parameter-createvariable-order.js:2:9
+f$c5f59f11 parameter-createvariable-order.js:2:9
Registers: 6
Blocks: 1
Locals: inner~0
@@ -33,7 +33,7 @@ block0:
[ 49] Mov dst:inner~0, src:Undefined
[ 4c] NewFunction dst:inner~0, shared_function_data_index:0 (inner)
[ 56] Call value_feedback:0, call_feedback:0, dst:reg5, callee:inner~0, this_value:Undefined
- [ 61] Return value:reg5
+ [ 5f] Return value:reg5
inner$558f3bdd parameter-createvariable-order.js:3:9
diff --git a/Tests/LibJS/Bytecode/expected/parameter-environment-capacity.txt b/Tests/LibJS/Bytecode/expected/parameter-environment-capacity.txt
index 560bce501be..1d99cc00507 100644
--- a/Tests/LibJS/Bytecode/expected/parameter-environment-capacity.txt
+++ b/Tests/LibJS/Bytecode/expected/parameter-environment-capacity.txt
@@ -1,4 +1,4 @@
-$f521a068 parameter-environment-capacity.js:10:1
+$768398f0 parameter-environment-capacity.js:10:1
Registers: 8
Blocks: 1
Constants:
@@ -16,11 +16,11 @@ block0:
[ 2f] DynamicInitializeLexicalBinding `Strict`, src:reg6
[ 36] GetGlobal value_feedback:0, dst:reg6, `sloppy`
[ 3f] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 4a] GetGlobal value_feedback:2, dst:reg6, `Strict`
- [ 53] CallConstruct value_feedback:3, call_feedback:1, dst:reg6, callee:reg6
- [ 5d] GetById value_feedback:4, dst:reg7, base:reg6, `method`
- [ 69] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg7, this_value:reg6
- [ 74] End value:reg5
+ [ 48] GetGlobal value_feedback:2, dst:reg6, `Strict`
+ [ 51] CallConstruct value_feedback:3, call_feedback:1, dst:reg6, callee:reg6
+ [ 59] GetById value_feedback:4, dst:reg7, base:reg6, `method`
+ [ 63] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg7, this_value:reg6
+ [ 6c] End value:reg5
sloppy$0ad3c759 parameter-environment-capacity.js:6:17
diff --git a/Tests/LibJS/Bytecode/expected/postfix-increment-private-member.txt b/Tests/LibJS/Bytecode/expected/postfix-increment-private-member.txt
index a7e2d601464..95ecb8af135 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 @@
-$97bf28fc postfix-increment-private-member.js:1:1
+$b6b5ae96 postfix-increment-private-member.js:1:1
Registers: 8
Blocks: 1
Constants:
@@ -19,9 +19,9 @@ block0:
[ 36] DynamicInitializeLexicalBinding `C`, src:reg6
[ 3d] GetGlobal value_feedback:0, dst:reg6, `C`
[ 46] CallConstruct value_feedback:1, call_feedback:0, dst:reg6, callee:reg6
- [ 50] GetById value_feedback:2, dst:reg7, base:reg6, `nextId`
- [ 5c] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6
- [ 67] End value:reg5
+ [ 4e] GetById value_feedback:2, dst:reg7, base:reg6, `nextId`
+ [ 58] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6
+ [ 61] End value:reg5
C$16234245
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 5f0429e6bd0..2c3c454b2bc 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 @@
-$a5cc077b postfix-update-in-logical-and.js:4:1
+$05738959 postfix-update-in-logical-and.js:4:1
Registers: 7
Blocks: 1
Constants:
@@ -10,7 +10,7 @@ block0:
[ 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)]
- [ 19] End value:reg5
+ [ 17] End value:reg5
postfixInLogicalAnd$ee75b068 postfix-update-in-logical-and.js:2:5
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 5ffdf9cd3fc..06d4e150e16 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 @@
-$97bf28fc private-logical-assignment-register-order.js:1:1
+$b6b5ae96 private-logical-assignment-register-order.js:1:1
Registers: 8
Blocks: 1
Constants:
@@ -19,9 +19,9 @@ block0:
[ 36] DynamicInitializeLexicalBinding `C`, src:reg6
[ 3d] GetGlobal value_feedback:0, dst:reg6, `C`
[ 46] CallConstruct value_feedback:1, call_feedback:0, dst:reg6, callee:reg6
- [ 50] GetById value_feedback:2, dst:reg7, base:reg6, `f`
- [ 5c] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6
- [ 67] End value:reg5
+ [ 4e] GetById value_feedback:2, dst:reg7, base:reg6, `f`
+ [ 58] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6
+ [ 61] End value:reg5
C$16234245
diff --git a/Tests/LibJS/Bytecode/expected/private-method-call-description.txt b/Tests/LibJS/Bytecode/expected/private-method-call-description.txt
index 87a9a17172d..5fae833b2e3 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 @@
-$97bf28fc private-method-call-description.js:1:1
+$b6b5ae96 private-method-call-description.js:1:1
Registers: 8
Blocks: 1
Constants:
@@ -19,9 +19,9 @@ block0:
[ 36] DynamicInitializeLexicalBinding `C`, src:reg6
[ 3d] GetGlobal value_feedback:0, dst:reg6, `C`
[ 46] CallConstruct value_feedback:1, call_feedback:0, dst:reg6, callee:reg6
- [ 50] GetById value_feedback:2, dst:reg7, base:reg6, `call`
- [ 5c] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6
- [ 67] End value:reg5
+ [ 4e] GetById value_feedback:2, dst:reg7, base:reg6, `call`
+ [ 58] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6
+ [ 61] End value:reg5
C$16234245
@@ -35,7 +35,7 @@ block0:
[ 1] End value:Undefined
-call$7dfe38c4 private-method-call-description.js:6:9
+call$dda5baa2 private-method-call-description.js:6:9
Registers: 6
Blocks: 1
@@ -43,7 +43,7 @@ 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
- [ 12] Return value:reg5
+ [ 10] 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 b9b8c0e2e62..19b0e4a99c1 100644
--- a/Tests/LibJS/Bytecode/expected/regex-literals.txt
+++ b/Tests/LibJS/Bytecode/expected/regex-literals.txt
@@ -1,4 +1,4 @@
-$f8c6f133 regex-literals.js:2:5
+$1d4558ed regex-literals.js:2:5
Registers: 7
Blocks: 1
Constants:
@@ -17,10 +17,10 @@ block0:
[ 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")]
- [ 4f] End value:reg5
+ [ 4d] End value:reg5
-matchDigits$e7aee3a4 regex-literals.js:8:5
+matchDigits$259beed8 regex-literals.js:8:5
Registers: 7
Blocks: 1
@@ -28,5 +28,5 @@ block0:
[ 0] Enter
[ 1] NewRegExp dst:reg5, \d+, g
[ 9] GetById value_feedback:0, dst:reg6, base:reg5, `test`
- [ 15] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:reg5, arguments:[arg0]
- [ 21] Return value:reg5
+ [ 13] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:reg5, arguments:[arg0]
+ [ 1d] Return value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/resolve-this-caching.txt b/Tests/LibJS/Bytecode/expected/resolve-this-caching.txt
index dda0e8122bb..5c4a6a40718 100644
--- a/Tests/LibJS/Bytecode/expected/resolve-this-caching.txt
+++ b/Tests/LibJS/Bytecode/expected/resolve-this-caching.txt
@@ -1,4 +1,4 @@
-$559fc86a resolve-this-caching.js:4:1
+$b5474a48 resolve-this-caching.js:4:1
Registers: 7
Blocks: 1
Constants:
@@ -9,10 +9,10 @@ block0:
[ 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
- [ 18] End value:reg5
+ [ 16] End value:reg5
-foo$962620dc resolve-this-caching.js:2:5
+foo$746baa32 resolve-this-caching.js:2:5
Registers: 6
Blocks: 1
Constants:
@@ -22,10 +22,10 @@ block0:
[ 0] Enter
[ 1] NewFunction dst:reg5, shared_function_data_index:0
[ b] Call value_feedback:0, call_feedback:0, dst:reg5, callee:reg5, this_value:Undefined
- [ 16] Return value:reg5
+ [ 14] Return value:reg5
-$06a8c478 resolve-this-caching.js:2:13
+$bdabf504 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`
- [ e] GetById value_feedback:1, dst:reg6, base:this, `y`
- [ 1a] Add arith_feedback:0, dst:reg5, lhs:reg5, rhs:reg6
- [ 20] Return value:reg5
+ [ 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
diff --git a/Tests/LibJS/Bytecode/expected/right-shift-by-zero.txt b/Tests/LibJS/Bytecode/expected/right-shift-by-zero.txt
index 4c6a789084c..a120f39fd23 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 @@
-$eca9d76a right-shift-by-zero.js:5:1
+$4c515948 right-shift-by-zero.js:5:1
Registers: 7
Blocks: 1
Constants:
@@ -10,7 +10,7 @@ block0:
[ 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)]
- [ 19] End value:reg5
+ [ 17] 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 6bedf9d73ae..f68829e63ea 100644
--- a/Tests/LibJS/Bytecode/expected/sequential-try-blocks.txt
+++ b/Tests/LibJS/Bytecode/expected/sequential-try-blocks.txt
@@ -1,4 +1,4 @@
-$73a29b3e sequential-try-blocks.js:17:1
+$11372850 sequential-try-blocks.js:17:1
Registers: 9
Blocks: 1
Constants:
@@ -9,10 +9,10 @@ block0:
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `console`
[ d] GetById value_feedback:1, dst:reg7, base:reg6, `log`
- [ 19] GetGlobal value_feedback:2, dst:reg8, `sequentialTryCatch`
- [ 22] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined
- [ 2d] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 39] End value:reg5
+ [ 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
sequentialTryCatch$c611d865 sequential-try-blocks.js:2:9
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 23c49e84686..037ce76bb45 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 @@
-$bde51e33 super-call-spread-register-order.js:1:1
+$1d8ca011 super-call-spread-register-order.js:1:1
Registers: 11
Blocks: 1
Constants:
@@ -17,7 +17,7 @@ block0:
[ 3a] DynamicInitializeLexicalBinding `C`, src:reg6
[ 41] GetGlobal value_feedback:1, dst:reg6, `C`
[ 4a] CallConstruct value_feedback:2, call_feedback:0, dst:reg5, callee:reg6
- [ 54] End value:reg5
+ [ 52] 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 b54e2d03b71..745e0cc59bd 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 @@
-$6ff1a648 super-computed-eval-order.js:1:1
+$8ee82be2 super-computed-eval-order.js:1:1
Registers: 11
Blocks: 1
Constants:
@@ -23,9 +23,9 @@ block0:
[ 6a] DynamicInitializeLexicalBinding `Derived`, src:reg6
[ 71] GetGlobal value_feedback:1, dst:reg6, `Derived`
[ 7a] CallConstruct value_feedback:2, call_feedback:0, dst:reg6, callee:reg6
- [ 84] GetById value_feedback:3, dst:reg7, base:reg6, `test`
- [ 90] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6
- [ 9b] End value:reg5
+ [ 82] GetById value_feedback:3, dst:reg7, base:reg6, `test`
+ [ 8c] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6
+ [ 95] 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 38dcfc406e5..3a77351174a 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 @@
-$bde51e33 super-computed-string-to-id.js:1:1
+$1d8ca011 super-computed-string-to-id.js:1:1
Registers: 11
Blocks: 1
Constants:
@@ -17,7 +17,7 @@ block0:
[ 3a] DynamicInitializeLexicalBinding `C`, src:reg6
[ 41] GetGlobal value_feedback:1, dst:reg6, `C`
[ 4a] CallConstruct value_feedback:2, call_feedback:0, dst:reg5, callee:reg6
- [ 54] End value:reg5
+ [ 52] End value:reg5
C$f7dc3f7a super-computed-string-to-id.js:3:14
diff --git a/Tests/LibJS/Bytecode/expected/super-constructor-call.txt b/Tests/LibJS/Bytecode/expected/super-constructor-call.txt
index e5aab383650..368e6a20d64 100644
--- a/Tests/LibJS/Bytecode/expected/super-constructor-call.txt
+++ b/Tests/LibJS/Bytecode/expected/super-constructor-call.txt
@@ -1,4 +1,4 @@
-$e1d85c03 super-constructor-call.js:1:1
+$417fdde1 super-constructor-call.js:1:1
Registers: 11
Blocks: 1
Constants:
@@ -23,7 +23,7 @@ block0:
[ 69] DynamicInitializeLexicalBinding `Derived`, src:reg6
[ 70] GetGlobal value_feedback:1, dst:reg6, `Derived`
[ 79] CallConstruct value_feedback:2, call_feedback:0, dst:reg5, callee:reg6, arguments:[Int32(1)]
- [ 84] End value:reg5
+ [ 82] 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 aea2a1d676a..bb19e053162 100644
--- a/Tests/LibJS/Bytecode/expected/super-evaluation-order.txt
+++ b/Tests/LibJS/Bytecode/expected/super-evaluation-order.txt
@@ -1,4 +1,4 @@
-$367019a1 super-evaluation-order.js:1:1
+$254d4957 super-evaluation-order.js:1:1
Registers: 11
Blocks: 1
Constants:
@@ -20,17 +20,17 @@ block0:
[ 3d] DynamicInitializeLexicalBinding `A`, src:reg6
[ 44] GetGlobal value_feedback:1, dst:reg6, `A`
[ 4d] CallConstruct value_feedback:2, call_feedback:0, dst:reg6, callee:reg6
- [ 57] GetById value_feedback:3, dst:reg7, base:reg6, `read`
- [ 63] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6
- [ 6e] GetGlobal value_feedback:5, dst:reg6, `A`
- [ 77] CallConstruct value_feedback:6, call_feedback:2, dst:reg6, callee:reg6
- [ 81] GetById value_feedback:7, dst:reg7, base:reg6, `write`
- [ 8d] Call value_feedback:8, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6
- [ 98] GetGlobal value_feedback:9, dst:reg6, `A`
- [ a1] CallConstruct value_feedback:10, call_feedback:4, dst:reg6, callee:reg6
- [ ab] GetById value_feedback:11, dst:reg7, base:reg6, `update`
- [ b7] Call value_feedback:12, call_feedback:5, dst:reg5, callee:reg7, this_value:reg6
- [ c2] End value:reg5
+ [ 55] GetById value_feedback:3, dst:reg7, base:reg6, `read`
+ [ 5f] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6
+ [ 68] GetGlobal value_feedback:5, dst:reg6, `A`
+ [ 71] CallConstruct value_feedback:6, call_feedback:2, dst:reg6, callee:reg6
+ [ 79] GetById value_feedback:7, dst:reg7, base:reg6, `write`
+ [ 83] Call value_feedback:8, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6
+ [ 8c] GetGlobal value_feedback:9, dst:reg6, `A`
+ [ 95] CallConstruct value_feedback:10, call_feedback:4, dst:reg6, callee:reg6
+ [ 9d] GetById value_feedback:11, dst:reg7, base:reg6, `update`
+ [ a7] Call value_feedback:12, call_feedback:5, dst:reg5, callee:reg7, this_value:reg6
+ [ b0] End value:reg5
A$72a3fda0 super-evaluation-order.js:1:1
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 89c52769119..de6191a2b28 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 @@
-$82bc040f super-for-of-resolve-order.js:1:1
+$e26385ed super-for-of-resolve-order.js:1:1
Registers: 8
Blocks: 1
Constants:
@@ -15,7 +15,7 @@ block0:
[ 2e] DynamicInitializeLexicalBinding `C`, src:reg6
[ 35] GetGlobal value_feedback:0, dst:reg6, `C`
[ 3e] CallConstruct value_feedback:1, call_feedback:0, dst:reg5, callee:reg6
- [ 48] End value:reg5
+ [ 46] End value:reg5
C$8fe8ea6c super-for-of-resolve-order.js:3:14
diff --git a/Tests/LibJS/Bytecode/expected/super-length-access.txt b/Tests/LibJS/Bytecode/expected/super-length-access.txt
index 8f3991e7351..2cfc7793adc 100644
--- a/Tests/LibJS/Bytecode/expected/super-length-access.txt
+++ b/Tests/LibJS/Bytecode/expected/super-length-access.txt
@@ -1,4 +1,4 @@
-$9a9f3699 super-length-access.js:3:1
+$7ba8b0ff super-length-access.js:3:1
Registers: 11
Blocks: 1
Constants:
@@ -24,9 +24,9 @@ block0:
[ 6b] DynamicInitializeLexicalBinding `B`, src:reg6
[ 72] GetGlobal value_feedback:1, dst:reg6, `B`
[ 7b] CallConstruct value_feedback:2, call_feedback:0, dst:reg6, callee:reg6
- [ 85] GetById value_feedback:3, dst:reg7, base:reg6, `m`
- [ 91] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6
- [ 9c] End value:reg5
+ [ 83] GetById value_feedback:3, dst:reg7, base:reg6, `m`
+ [ 8d] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6
+ [ 96] 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 288005eba14..7369074ca38 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 @@
-$9ea4fc89 super-method-call-order.js:1:5
+$55a82d15 super-method-call-order.js:1:5
Registers: 8
Blocks: 1
Constants:
@@ -10,29 +10,29 @@ block0:
[ 4] NewObject dst:reg6
[ 8] NewFunction dst:reg7, shared_function_data_index:0 (m), home_object:reg6
[ 12] PutById base:reg6, `m`, src:reg7, kind:Own
- [ 20] SetGlobal `proto`, src:reg6
- [ 27] NewObject dst:reg6
- [ 2b] GetGlobal value_feedback:0, dst:reg7, `proto`
- [ 34] PutById base:reg6, `__proto__`, src:reg7, kind:Prototype
- [ 42] NewFunction dst:reg7, shared_function_data_index:1 (test), home_object:reg6
- [ 4c] PutById base:reg6, `test`, src:reg7, kind:Own
- [ 5a] NewFunction dst:reg7, shared_function_data_index:2 (get x), home_object:reg6
- [ 64] PutById base:reg6, `x`, src:reg7, kind:Getter
- [ 72] NewFunction dst:reg7, shared_function_data_index:3 (test2), home_object:reg6
- [ 7c] PutById base:reg6, `test2`, src:reg7, kind:Own
- [ 8a] SetGlobal `obj`, src:reg6
- [ 91] GetGlobal value_feedback:1, dst:reg6, `obj`
- [ 9a] GetById value_feedback:2, dst:reg7, base:reg6, `test`
- [ a6] Call value_feedback:3, call_feedback:0, dst:reg5, callee:reg7, this_value:reg6
- [ b1] GetGlobal value_feedback:4, dst:reg6, `obj`
- [ ba] GetById value_feedback:5, dst:reg5, base:reg6, `x`
- [ c6] GetGlobal value_feedback:6, dst:reg6, `obj`
- [ cf] GetById value_feedback:7, dst:reg7, base:reg6, `test2`
- [ db] Call value_feedback:8, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6
- [ e6] End value:reg5
+ [ 1e] SetGlobal `proto`, src:reg6
+ [ 25] NewObject dst:reg6
+ [ 29] GetGlobal value_feedback:0, dst:reg7, `proto`
+ [ 32] PutById base:reg6, `__proto__`, src:reg7, kind:Prototype
+ [ 3e] NewFunction dst:reg7, shared_function_data_index:1 (test), home_object:reg6
+ [ 48] PutById base:reg6, `test`, src:reg7, kind:Own
+ [ 54] NewFunction dst:reg7, shared_function_data_index:2 (get x), home_object:reg6
+ [ 5e] PutById base:reg6, `x`, src:reg7, kind:Getter
+ [ 6a] NewFunction dst:reg7, shared_function_data_index:3 (test2), home_object:reg6
+ [ 74] PutById base:reg6, `test2`, src:reg7, kind:Own
+ [ 80] SetGlobal `obj`, src:reg6
+ [ 87] GetGlobal value_feedback:1, dst:reg6, `obj`
+ [ 90] GetById value_feedback:2, dst:reg7, base:reg6, `test`
+ [ 9a] Call value_feedback:3, call_feedback:0, dst:reg5, callee:reg7, this_value:reg6
+ [ a3] GetGlobal value_feedback:4, dst:reg6, `obj`
+ [ ac] GetById value_feedback:5, dst:reg5, base:reg6, `x`
+ [ b6] GetGlobal value_feedback:6, dst:reg6, `obj`
+ [ bf] GetById value_feedback:7, dst:reg7, base:reg6, `test2`
+ [ c9] Call value_feedback:8, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6
+ [ d2] End value:reg5
-test$251c2fdb super-method-call-order.js:5:9
+test$c574adfd super-method-call-order.js:5:9
Registers: 7
Blocks: 1
@@ -42,7 +42,7 @@ block0:
[ 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
- [ 1a] Return value:reg5
+ [ 18] Return value:reg5
m$da3f2d9b
@@ -56,7 +56,7 @@ block0:
[ 1] End value:Undefined
-get x$cd289066 super-method-call-order.js:8:9
+get x$ec1f1600 super-method-call-order.js:8:9
Registers: 7
Blocks: 1
@@ -66,10 +66,10 @@ block0:
[ 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
- [ 1a] Return value:reg5
+ [ 18] Return value:reg5
-test2$a8f077bf super-method-call-order.js:11:9
+test2$c7e6fd59 super-method-call-order.js:11:9
Registers: 7
Blocks: 1
@@ -79,4 +79,4 @@ block0:
[ 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
- [ 1a] Return value:reg5
+ [ 18] 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 ce030b5d66a..203145f54c0 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 @@
-$6076637b super-optional-call-this.js:1:1
+$00cee19d super-optional-call-this.js:1:1
Registers: 11
Blocks: 1
Constants:
@@ -23,9 +23,9 @@ block0:
[ 6b] DynamicInitializeLexicalBinding `Foo`, src:reg6
[ 72] GetGlobal value_feedback:1, dst:reg6, `Foo`
[ 7b] CallConstruct value_feedback:2, call_feedback:0, dst:reg6, callee:reg6
- [ 85] GetById value_feedback:3, dst:reg7, base:reg6, `method`
- [ 91] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6
- [ 9c] End value:reg5
+ [ 83] GetById value_feedback:3, dst:reg7, base:reg6, `method`
+ [ 8d] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6
+ [ 96] End value:reg5
Foo$4a348592 super-optional-call-this.js:4:1
@@ -51,7 +51,7 @@ block0:
[ 1] End value:Undefined
-method$9e4af423 super-optional-call-this.js:6:9
+method$fdf27601 super-optional-call-this.js:6:9
Registers: 7
Blocks: 4
Constants:
@@ -66,13 +66,13 @@ block0:
block1:
[ 19] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:this
- [ 24] Jump target:block3
+ [ 22] Jump target:block3
block2:
- [ 29] Mov dst:reg5, src:Undefined
+ [ 27] Mov dst:reg5, src:Undefined
block3:
- [ 2c] Return value:reg5
+ [ 2a] 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 02b6d49ebbd..85970570b9d 100644
--- a/Tests/LibJS/Bytecode/expected/switch-completion-value.txt
+++ b/Tests/LibJS/Bytecode/expected/switch-completion-value.txt
@@ -1,4 +1,4 @@
-$5946f3de switch-completion-value.js:1:1
+$b0a2a28c switch-completion-value.js:1:1
Registers: 10
Blocks: 1
Constants:
@@ -12,20 +12,20 @@ block0:
[ 1] Mov dst:reg5, src:Undefined
[ 4] DynamicGetBinding value_feedback:0, dst:reg6, `console`
[ d] GetById value_feedback:1, dst:reg7, base:reg6, `log`
- [ 19] DynamicGetCalleeAndThisFromEnvironment value_feedback:2, callee:reg8, this_value:reg9, `eval`
- [ 23] CallDirectEval value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:reg9, arguments:[String("switch(1) { case 1: 'hello'; let x = 1; }")]
- [ 2f] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 3b] DynamicGetBinding value_feedback:5, dst:reg6, `console`
- [ 44] GetById value_feedback:6, dst:reg7, base:reg6, `log`
- [ 50] DynamicGetCalleeAndThisFromEnvironment value_feedback:7, callee:reg8, this_value:reg9, `eval`
- [ 5a] CallDirectEval value_feedback:8, call_feedback:2, dst:reg8, callee:reg8, this_value:reg9, arguments:[String("switch(1) { case 1: 'first'; 'second'; }")]
- [ 66] Call value_feedback:9, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 72] DynamicGetBinding value_feedback:10, dst:reg6, `console`
- [ 7b] GetById value_feedback:11, dst:reg7, base:reg6, `log`
- [ 87] DynamicGetCalleeAndThisFromEnvironment value_feedback:12, callee:reg8, this_value:reg9, `eval`
- [ 91] CallDirectEval value_feedback:13, call_feedback:4, dst:reg8, callee:reg8, this_value:reg9, arguments:[String("switch(1) { case 1: 'matched'; break; default: 'default'; }")]
- [ 9d] Call value_feedback:14, call_feedback:5, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ a9] End value:reg5
+ [ 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
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 031390273dd..78a2f2f12aa 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 @@
-$fba164e3 switch-local-only-let.js:15:1
+$1510085d switch-local-only-let.js:15:1
Registers: 9
Blocks: 1
Constants:
@@ -12,20 +12,20 @@ block0:
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `console`
[ d] GetById value_feedback:1, dst:reg7, base:reg6, `log`
- [ 19] GetGlobal value_feedback:2, dst:reg8, `switchLocalOnly`
- [ 22] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined, arguments:[Int32(1)]
- [ 2e] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 3a] GetGlobal value_feedback:5, dst:reg6, `console`
- [ 43] GetById value_feedback:6, dst:reg7, base:reg6, `log`
- [ 4f] GetGlobal value_feedback:7, dst:reg8, `switchLocalOnly`
- [ 58] Call value_feedback:8, call_feedback:2, dst:reg8, callee:reg8, this_value:Undefined, arguments:[Int32(2)]
- [ 64] Call value_feedback:9, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 70] GetGlobal value_feedback:10, dst:reg6, `console`
- [ 79] GetById value_feedback:11, dst:reg7, base:reg6, `log`
- [ 85] GetGlobal value_feedback:12, dst:reg8, `switchLocalOnly`
- [ 8e] Call value_feedback:13, call_feedback:4, dst:reg8, callee:reg8, this_value:Undefined, arguments:[Int32(3)]
- [ 9a] Call value_feedback:14, call_feedback:5, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ a6] End value:reg5
+ [ 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
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 6b61fdd59af..afa1b6995aa 100644
--- a/Tests/LibJS/Bytecode/expected/switch-scoping.txt
+++ b/Tests/LibJS/Bytecode/expected/switch-scoping.txt
@@ -1,4 +1,4 @@
-$ced729f9 switch-scoping.js:15:1
+$124c174d switch-scoping.js:15:1
Registers: 9
Blocks: 1
Constants:
@@ -11,18 +11,18 @@ block0:
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `console`
[ d] GetById value_feedback:1, dst:reg7, base:reg6, `log`
- [ 19] GetGlobal value_feedback:2, dst:reg8, `switchWithBlockDecl`
- [ 22] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined, arguments:[Int32(1)]
- [ 2e] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 3a] GetGlobal value_feedback:5, dst:reg6, `console`
- [ 43] GetById value_feedback:6, dst:reg7, base:reg6, `log`
- [ 4f] GetGlobal value_feedback:7, dst:reg8, `switchWithBlockDecl`
- [ 58] Call value_feedback:8, call_feedback:2, dst:reg8, callee:reg8, this_value:Undefined, arguments:[Int32(2)]
- [ 64] Call value_feedback:9, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 70] End value:reg5
-
-
-switchWithBlockDecl$23343e55 switch-scoping.js:2:9
+ [ 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$82dbc033 switch-scoping.js:2:9
Registers: 8
Blocks: 6
Locals: result~0
@@ -61,7 +61,7 @@ block4:
block5:
[ 7d] SetLexicalEnvironment environment:reg4
[ 7f] Call value_feedback:0, call_feedback:0, dst:reg5, callee:result~0, this_value:Undefined
- [ 8a] Return value:reg5
+ [ 88] Return value:reg5
result$e15525de switch-scoping.js:6:22
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 81fdfdcf543..cce108ac786 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 @@
-$3f6b97f3 switch-with-block-scope-return.js:12:1
+$9f1319d1 switch-with-block-scope-return.js:12:1
Registers: 7
Blocks: 1
Constants:
@@ -10,10 +10,10 @@ block0:
[ 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)]
- [ 19] End value:reg5
+ [ 17] End value:reg5
-f$2328dbae switch-with-block-scope-return.js:2:13
+f$82d05d8c switch-with-block-scope-return.js:2:13
Registers: 8
Blocks: 6
Constants:
@@ -46,9 +46,9 @@ block4:
[ 40] InitializeLexicalBinding `y`, src:String("two")
[ 4d] NewFunction dst:reg7, shared_function_data_index:0
[ 57] Call value_feedback:0, call_feedback:0, dst:reg7, callee:reg7, this_value:Undefined
- [ 62] SetLexicalEnvironment environment:reg4
- [ 64] Return value:reg7
+ [ 60] SetLexicalEnvironment environment:reg4
+ [ 62] Return value:reg7
block5:
- [ 66] SetLexicalEnvironment environment:reg4
- [ 68] Return value:String("other")
+ [ 64] SetLexicalEnvironment environment:reg4
+ [ 66] 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 93916a39fee..0777fbc7c3a 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 @@
-$8039a0d9 tagged-template-base-identifier.js:1:5
+$3f88a495 tagged-template-base-identifier.js:1:5
Registers: 9
Blocks: 1
Constants:
@@ -15,9 +15,9 @@ block0:
[ 24] SetGlobal `obj`, src:reg6
[ 2b] GetGlobal value_feedback:0, dst:reg6, `obj`
[ 34] GetById value_feedback:1, dst:reg7, base:reg6, `f`
- [ 40] GetTemplateObject dst:reg8, strings_are_in_array:false, strings:[String(""), String("")]
- [ 4a] Call value_feedback:2, call_feedback:0, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 56] End value:reg5
+ [ 3e] GetTemplateObject dst:reg8, strings_are_in_array:false, strings:[String(""), String("")]
+ [ 48] Call value_feedback:2, call_feedback:0, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 52] 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 ac196c26d40..0eabda6595b 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 @@
-$f6db80f0 tagged-template-if-register-order.js:1:1
+$6ff1a648 tagged-template-if-register-order.js:1:1
Registers: 9
Blocks: 6
Constants:
@@ -13,32 +13,32 @@ block0:
[ 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`
- [ 1c] GetTemplateObject dst:reg8, strings_are_in_array:false, strings:[String("hello"), String("hello")]
- [ 26] Call value_feedback:2, call_feedback:0, dst:reg6, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 32] DynamicInitializeLexicalBinding `x`, src:reg6
- [ 39] DynamicInitializeLexicalBinding `y`, src:Null
- [ 40] GetGlobal value_feedback:3, dst:reg6, `x`
- [ 49] StrictlyEquals arith_feedback:0, dst:reg6, lhs:reg6, rhs:String("hello")
- [ 4f] Mov dst:reg5, src:Undefined
- [ 52] JumpFalse condition:reg6, target:block5
+ [ 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
block1:
- [ 58] ResolveGlobalBinding dst:reg6, `y`
- [ 5f] GetGlobal value_feedback:4, dst:reg7, `x`
- [ 68] GetById value_feedback:5, dst:reg8, base:reg7, `toUpperCase`
- [ 74] Call value_feedback:6, call_feedback:1, dst:reg7, callee:reg8, this_value:reg7
- [ 7f] JumpIf condition:reg6, true_target:block2, false_target:block3
+ [ 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
block2:
- [ 89] SetGlobal `y`, src:reg7
- [ 90] Jump target:block4
+ [ 81] SetGlobal `y`, src:reg7
+ [ 88] Jump target:block4
block3:
- [ 95] SetResolvedBinding environment:Null, `y`, src:reg7
- [ 9b] Jump target:block4
+ [ 8d] SetResolvedBinding environment:Null, `y`, src:reg7
+ [ 93] Jump target:block4
block4:
- [ a0] Mov dst:reg5, src:reg7
+ [ 98] Mov dst:reg5, src:reg7
block5:
- [ a3] End value:reg5
+ [ 9b] 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 557a674ddad..a838472fbb0 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 @@
-$b41db354 tdz-reset-in-loop.js:22:1
+$736cb710 tdz-reset-in-loop.js:22:1
Registers: 8
Blocks: 1
Constants:
@@ -10,13 +10,13 @@ block0:
[ 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]
- [ 1c] GetGlobal value_feedback:2, dst:reg6, `nested`
- [ 25] NewArray dst:reg7
- [ 28] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
- [ 34] End value:reg5
+ [ 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
-checked$10268a2b tdz-reset-in-loop.js:5:10
+checked$eba82271 tdz-reset-in-loop.js:5:10
Registers: 8
Blocks: 4
Locals: i~0, value~1, plain~2
@@ -33,25 +33,25 @@ block0:
block1:
[ 9] Mov dst:value~1, src:<Empty>
[ c] GetByValue value_feedback:0, keyed_feedback:0, dst:reg5, base:arg0, property:i~0
- [ 18] NewFunction dst:reg6, shared_function_data_index:0
- [ 22] ThrowIfTDZ src:value~1
- [ 24] Typeof dst:reg7, src:value~1
- [ 27] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg5, this_value:arg0, arguments:[reg6, reg7]
- [ 34] Mov dst:value~1, src:i~0
- [ 37] AddRhsInt32 arith_feedback:0, dst:plain~2, lhs:value~1, rhs:1
- [ 40] GetByValue value_feedback:2, keyed_feedback:1, dst:reg5, base:arg0, property:i~0
- [ 4c] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg5, this_value:arg0, arguments:[plain~2]
- [ 58] Increment arith_feedback:1, dst:i~0
+ [ 16] NewFunction dst:reg6, shared_function_data_index:0
+ [ 20] ThrowIfTDZ src:value~1
+ [ 22] Typeof dst:reg7, src:value~1
+ [ 25] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg5, this_value:arg0, arguments:[reg6, reg7]
+ [ 30] Mov dst:value~1, src:i~0
+ [ 33] AddRhsInt32 arith_feedback:0, dst:plain~2, lhs:value~1, rhs:1
+ [ 3c] GetByValue value_feedback:2, keyed_feedback:1, dst:reg5, base:arg0, property:i~0
+ [ 46] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg5, this_value:arg0, arguments:[plain~2]
+ [ 50] Increment arith_feedback:1, dst:i~0
block2:
- [ 5c] GetLength value_feedback:4, keyed_feedback:2, dst:reg5, base:arg0
- [ 67] JumpLessThanLoop arith_feedback:2, lhs:i~0, rhs:reg5, true_target:block1, false_target:block3
+ [ 54] GetLength value_feedback:4, keyed_feedback:2, dst:reg5, base:arg0
+ [ 5d] JumpLessThanLoop arith_feedback:2, lhs:i~0, rhs:reg5, true_target:block1, false_target:block3
block3:
- [ 74] End value:Undefined
+ [ 6a] End value:Undefined
-nested$301dc0a0 tdz-reset-in-loop.js:14:5
+nested$b17fb928 tdz-reset-in-loop.js:14:5
Registers: 12
Blocks: 8
Locals: value~0, item~1
@@ -64,37 +64,37 @@ block0:
block1:
[ 1] GetLength value_feedback:0, keyed_feedback:0, dst:reg5, base:arg0
- [ c] JumpFalse condition:reg5, target:block7
+ [ a] JumpFalse condition:reg5, target:block7
block2:
- [ 12] Mov dst:value~0, src:<Empty>
- [ 15] Mov dst:item~1, src:<Empty>
- [ 18] Mov dst:reg5, src:arg0
- [ 1b] GetIterator dst_iterator_object:reg6, dst_iterator_next:reg7, dst_iterator_done:reg8, iterable:reg5, fast_array_mode_allowed:true
+ [ 10] Mov dst:value~0, src:<Empty>
+ [ 13] Mov dst:item~1, src:<Empty>
+ [ 16] Mov dst:reg5, src:arg0
+ [ 19] GetIterator dst_iterator_object:reg6, dst_iterator_next:reg7, dst_iterator_done:reg8, iterable:reg5, fast_array_mode_allowed:true
block3:
- [ 27] IteratorNextUnpack dst_value:reg9, dst_done:reg10, iterator_object:reg6, iterator_next:reg7, iterator_done:reg8
- [ 2d] JumpTrue condition:reg10, target:block6
+ [ 25] IteratorNextUnpack dst_value:reg9, dst_done:reg10, iterator_object:reg6, iterator_next:reg7, iterator_done:reg8
+ [ 2b] JumpTrue condition:reg10, target:block6
block4:
- [ 33] Mov dst:item~1, src:reg9
- [ 36] ThrowIfTDZ src:value~0
- [ 38] Typeof dst:reg11, src:value~0
- [ 3b] Call value_feedback:1, call_feedback:0, dst:reg11, callee:item~1, this_value:Undefined, arguments:[reg11]
- [ 47] JumpLoop target:block3
+ [ 31] Mov dst:item~1, src:reg9
+ [ 34] ThrowIfTDZ src:value~0
+ [ 36] Typeof dst:reg11, src:value~0
+ [ 39] Call value_feedback:1, call_feedback:0, dst:reg11, callee:item~1, this_value:Undefined, arguments:[reg11]
+ [ 43] JumpLoop target:block3
block5:
- [ 4c] Catch value_feedback:2, dst:reg11
- [ 50] IteratorClose iterator_object:reg6, iterator_next:reg7, iterator_done:reg8, completion_value:reg11
- [ 5b] Throw src:reg11
+ [ 48] Catch value_feedback:2, dst:reg11
+ [ 4c] IteratorClose iterator_object:reg6, iterator_next:reg7, iterator_done:reg8, completion_value:reg11
+ [ 57] Throw src:reg11
block6:
- [ 5d] GetById value_feedback:3, dst:reg5, base:arg0, `pop`
- [ 69] Call value_feedback:4, call_feedback:1, dst:value~0, callee:reg5, this_value:arg0
- [ 74] JumpLoop target:block1
+ [ 59] GetById value_feedback:3, dst:reg5, base:arg0, `pop`
+ [ 63] Call value_feedback:4, call_feedback:1, dst:value~0, callee:reg5, this_value:arg0
+ [ 6c] JumpLoop target:block1
block7:
- [ 79] End value:Undefined
+ [ 71] End value:Undefined
Exception handlers:
- [ 33 .. 4c] => handler block5
+ [ 31 .. 48] => handler block5
diff --git a/Tests/LibJS/Bytecode/expected/this-base-identifier.txt b/Tests/LibJS/Bytecode/expected/this-base-identifier.txt
index 20443e1618c..f402771ac6e 100644
--- a/Tests/LibJS/Bytecode/expected/this-base-identifier.txt
+++ b/Tests/LibJS/Bytecode/expected/this-base-identifier.txt
@@ -1,4 +1,4 @@
-$14fdb552 this-base-identifier.js:16:1
+$b5563374 this-base-identifier.js:16:1
Registers: 7
Blocks: 4
Constants:
@@ -9,38 +9,38 @@ block0:
[ 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
- [ 18] GetGlobal value_feedback:2, dst:reg6, `set_on_this`
- [ 21] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined
- [ 2c] Mov dst:reg5, src: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
block1:
- [ 2f] GetGlobal value_feedback:4, dst:reg6, `chained_this_access`
- [ 38] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg6, this_value:Undefined
- [ 43] Jump target:block3
+ [ 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
block2:
- [ 48] Catch value_feedback:6, dst:reg6
- [ 4c] Mov dst:reg5, src:Undefined
- [ 4f] Jump target:block3
+ [ 42] Catch value_feedback:6, dst:reg6
+ [ 46] Mov dst:reg5, src:Undefined
+ [ 49] Jump target:block3
block3:
- [ 54] End value:reg5
+ [ 4e] End value:reg5
Exception handlers:
- [ 2f .. 48] => handler block2
+ [ 2b .. 42] => handler block2
-get_from_this$d10182a4 this-base-identifier.js:5:5
+get_from_this$715a00c6 this-base-identifier.js:5:5
Registers: 6
Blocks: 1
block0:
[ 0] Enter
[ 1] GetById value_feedback:0, dst:reg5, base:this, `foo`
- [ d] Return value:reg5
+ [ b] Return value:reg5
-set_on_this$c264626e this-base-identifier.js:9:14
+set_on_this$62bce090 this-base-identifier.js:9:14
Registers: 5
Blocks: 1
Constants:
@@ -50,15 +50,15 @@ set_on_this$c264626e this-base-identifier.js:9:14
block0:
[ 0] Enter
[ 1] PutById base:this, `bar`, src:Int32(1), kind:Normal
- [ f] End value:Undefined
+ [ d] End value:Undefined
-chained_this_access$4ef1cb28 this-base-identifier.js:13:5
+chained_this_access$0e40cee4 this-base-identifier.js:13:5
Registers: 6
Blocks: 1
block0:
[ 0] Enter
[ 1] GetById value_feedback:0, dst:reg5, base:this, `a`
- [ d] GetById value_feedback:1, dst:reg5, base:reg5, `b`
- [ 19] Return value:reg5
+ [ b] GetById value_feedback:1, dst:reg5, base:reg5, `b`
+ [ 15] Return value:reg5
diff --git a/Tests/LibJS/Bytecode/expected/try-catch-scoping.txt b/Tests/LibJS/Bytecode/expected/try-catch-scoping.txt
index b85902fcc34..714de171912 100644
--- a/Tests/LibJS/Bytecode/expected/try-catch-scoping.txt
+++ b/Tests/LibJS/Bytecode/expected/try-catch-scoping.txt
@@ -1,4 +1,4 @@
-$52aa22c1 try-catch-scoping.js:11:1
+$935b1f05 try-catch-scoping.js:11:1
Registers: 7
Blocks: 1
Constants:
@@ -9,12 +9,12 @@ block0:
[ 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
- [ 18] GetGlobal value_feedback:2, dst:reg6, `tryCatchFinallyWithBlocks`
- [ 21] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined
- [ 2c] End value:reg5
+ [ 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
-tryCatchWithBlocks$035f5e8e try-catch-scoping.js:2:9
+tryCatchWithBlocks$414c69c2 try-catch-scoping.js:2:9
Registers: 9
Blocks: 4
Locals: x~0, y~1, e~2, z~3
@@ -40,19 +40,19 @@ block2:
[ 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`
- [ 2b] Add arith_feedback:0, dst:reg8, lhs:x~0, rhs:e~2
- [ 31] Add arith_feedback:1, dst:reg8, lhs:reg8, rhs:z~3
- [ 37] Call value_feedback:3, call_feedback:0, dst:reg6, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 43] Jump target:block3
+ [ 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
block3:
- [ 48] End value:Undefined
+ [ 44] End value:Undefined
Exception handlers:
[ 4 .. 9] => handler block2
-tryCatchFinallyWithBlocks$bb8f67ca try-catch-scoping.js:14:9
+tryCatchFinallyWithBlocks$3a2d6f42 try-catch-scoping.js:14:9
Registers: 10
Blocks: 7
Locals: x~0, y~1, e~2, z~3
@@ -78,30 +78,30 @@ block2:
[ 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`
- [ 28] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg9, this_value:reg8, arguments:[e~2]
- [ 34] Mov dst:reg5, src:Int32(0)
- [ 37] Jump target:block4
+ [ 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
block3:
- [ 3c] Catch value_feedback:4, dst:reg6
- [ 40] Mov dst:reg5, src:Int32(1)
+ [ 38] Catch value_feedback:4, dst:reg6
+ [ 3c] Mov dst:reg5, src:Int32(1)
block4:
- [ 43] Mov dst:z~3, src:Int32(3)
- [ 46] GetGlobal value_feedback:5, dst:reg7, `console`
- [ 4f] GetById value_feedback:6, dst:reg8, base:reg7, `log`
- [ 5b] Call value_feedback:7, call_feedback:1, dst:reg7, callee:reg8, this_value:reg7, arguments:[z~3]
- [ 67] JumpStrictlyEqualsRhsInt32 arith_feedback:0, lhs:reg5, rhs:0, true_target:block6, false_target:block5
+ [ 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
block5:
- [ 77] Throw src:reg6
+ [ 6f] Throw src:reg6
block6:
- [ 79] End value:Undefined
+ [ 71] End value:Undefined
Exception handlers:
[ 4 .. 9] => handler block2
- [ 9 .. 3c] => handler block3
+ [ 9 .. 38] => handler block3
6
diff --git a/Tests/LibJS/Bytecode/expected/try-catch-terminated.txt b/Tests/LibJS/Bytecode/expected/try-catch-terminated.txt
index dc90a456c32..84425556452 100644
--- a/Tests/LibJS/Bytecode/expected/try-catch-terminated.txt
+++ b/Tests/LibJS/Bytecode/expected/try-catch-terminated.txt
@@ -1,4 +1,4 @@
-$ef3f58e2 try-catch-terminated.js:12:1
+$4ee6dac0 try-catch-terminated.js:12:1
Registers: 7
Blocks: 1
Constants:
@@ -9,7 +9,7 @@ block0:
[ 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
- [ 18] End value:reg5
+ [ 16] 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 355927fb5e3..e0d5e22dc94 100644
--- a/Tests/LibJS/Bytecode/expected/try-finally-continue.txt
+++ b/Tests/LibJS/Bytecode/expected/try-finally-continue.txt
@@ -1,4 +1,4 @@
-$b1f73f39 try-finally-continue.js:13:1
+$f56c2c8d try-finally-continue.js:13:1
Registers: 9
Blocks: 1
Constants:
@@ -9,15 +9,15 @@ block0:
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `console`
[ d] GetById value_feedback:1, dst:reg7, base:reg6, `log`
- [ 19] GetGlobal value_feedback:2, dst:reg8, `continueThroughFinally`
- [ 22] Call value_feedback:3, call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined
- [ 2d] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 39] GetGlobal value_feedback:5, dst:reg6, `console`
- [ 42] GetById value_feedback:6, dst:reg7, base:reg6, `log`
- [ 4e] GetGlobal value_feedback:7, dst:reg8, `breakThroughFinally`
- [ 57] Call value_feedback:8, call_feedback:2, dst:reg8, callee:reg8, this_value:Undefined
- [ 62] Call value_feedback:9, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 6e] End value:reg5
+ [ 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
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 bd16fe776d5..cf37adc62f6 100644
--- a/Tests/LibJS/Bytecode/expected/try-finally.txt
+++ b/Tests/LibJS/Bytecode/expected/try-finally.txt
@@ -1,4 +1,4 @@
-$b6873efe try-finally.js:8:1
+$61ef8160 try-finally.js:8:1
Registers: 7
Blocks: 1
Constants:
@@ -9,14 +9,14 @@ block0:
[ 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
- [ 18] GetGlobal value_feedback:2, dst:reg6, `breakThroughFinally`
- [ 21] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined
- [ 2c] GetGlobal value_feedback:4, dst:reg6, `nestedTryFinallyWithBreak`
- [ 35] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg6, this_value:Undefined
- [ 40] End value:reg5
+ [ 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
-basicTryFinally$5bad41e8 try-finally.js:2:9
+basicTryFinally$1afc45a4 try-finally.js:2:9
Registers: 9
Blocks: 8
Constants:
@@ -40,26 +40,26 @@ block2:
block3:
[ 13] GetGlobal value_feedback:1, dst:reg7, `console`
[ 1c] GetById value_feedback:2, dst:reg8, base:reg7, `log`
- [ 28] Call value_feedback:3, call_feedback:0, dst:reg7, callee:reg8, this_value:reg7, arguments:[String("finally")]
- [ 34] JumpStrictlyEqualsRhsInt32 arith_feedback:0, lhs:reg5, rhs:0, true_target:block7, false_target:block4
+ [ 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
block4:
- [ 44] JumpStrictlyEqualsRhsInt32 arith_feedback:1, lhs:reg5, rhs:2, true_target:block5, false_target:block6
+ [ 40] JumpStrictlyEqualsRhsInt32 arith_feedback:1, lhs:reg5, rhs:2, true_target:block5, false_target:block6
block5:
- [ 54] Return value:reg6
+ [ 50] Return value:reg6
block6:
- [ 56] Throw src:reg6
+ [ 52] Throw src:reg6
block7:
- [ 58] End value:Undefined
+ [ 54] End value:Undefined
Exception handlers:
[ 1 .. c] => handler block2
-breakThroughFinally$c02f2ec7 try-finally.js:11:10
+breakThroughFinally$7f7e3283 try-finally.js:11:10
Registers: 9
Blocks: 12
Locals: i~0
@@ -92,32 +92,32 @@ block4:
block5:
[ 30] GetGlobal value_feedback:1, dst:reg7, `console`
[ 39] GetById value_feedback:2, dst:reg8, base:reg7, `log`
- [ 45] Call value_feedback:3, call_feedback:0, dst:reg7, callee:reg8, this_value:reg7, arguments:[i~0]
- [ 51] JumpStrictlyEqualsRhsInt32 arith_feedback:1, lhs:reg5, rhs:0, true_target:block9, false_target:block6
+ [ 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
block6:
- [ 61] JumpStrictlyEqualsRhsInt32 arith_feedback:2, lhs:reg5, rhs:2, true_target:block7, false_target:block8
+ [ 5d] JumpStrictlyEqualsRhsInt32 arith_feedback:2, lhs:reg5, rhs:2, true_target:block7, false_target:block8
block7:
- [ 71] Jump target:block11
+ [ 6d] Jump target:block11
block8:
- [ 76] Throw src:reg6
+ [ 72] Throw src:reg6
block9:
- [ 78] Increment arith_feedback:3, dst:i~0
+ [ 74] Increment arith_feedback:3, dst:i~0
block10:
- [ 7c] JumpLessThanLoopRhsInt32 arith_feedback:4, lhs:i~0, rhs:10, true_target:block1, false_target:block11
+ [ 78] JumpLessThanLoopRhsInt32 arith_feedback:4, lhs:i~0, rhs:10, true_target:block1, false_target:block11
block11:
- [ 8c] End value:Undefined
+ [ 88] End value:Undefined
Exception handlers:
[ 9 .. 29] => handler block4
-nestedTryFinallyWithBreak$cb44a8c8 try-finally.js:22:21
+nestedTryFinallyWithBreak$471ebf30 try-finally.js:22:21
Registers: 11
Blocks: 15
Locals: i~0
@@ -144,52 +144,52 @@ block2:
block3:
[ 13] GetGlobal value_feedback:1, dst:reg9, `console`
[ 1c] GetById value_feedback:2, dst:reg10, base:reg9, `log`
- [ 28] Call value_feedback:3, call_feedback:0, dst:reg9, callee:reg10, this_value:reg9, arguments:[String("inner")]
- [ 34] JumpStrictlyEqualsRhsInt32 arith_feedback:0, lhs:reg7, rhs:0, true_target:block7, false_target:block4
+ [ 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
block4:
- [ 44] JumpStrictlyEqualsRhsInt32 arith_feedback:1, lhs:reg7, rhs:2, true_target:block5, false_target:block6
+ [ 40] JumpStrictlyEqualsRhsInt32 arith_feedback:1, lhs:reg7, rhs:2, true_target:block5, false_target:block6
block5:
- [ 54] Mov dst:reg5, src:Int32(2)
- [ 57] Jump target:block9
+ [ 50] Mov dst:reg5, src:Int32(2)
+ [ 53] Jump target:block9
block6:
- [ 5c] Throw src:reg8
+ [ 58] Throw src:reg8
block7:
- [ 5e] Mov dst:reg5, src:Int32(0)
- [ 61] Jump target:block9
+ [ 5a] Mov dst:reg5, src:Int32(0)
+ [ 5d] Jump target:block9
block8:
- [ 66] Catch value_feedback:4, dst:reg6
- [ 6a] Mov dst:reg5, src:Int32(1)
+ [ 62] Catch value_feedback:4, dst:reg6
+ [ 66] Mov dst:reg5, src:Int32(1)
block9:
- [ 6d] GetGlobal value_feedback:5, dst:reg7, `console`
- [ 76] GetById value_feedback:6, dst:reg8, base:reg7, `log`
- [ 82] Call value_feedback:7, call_feedback:1, dst:reg7, callee:reg8, this_value:reg7, arguments:[String("outer")]
- [ 8e] JumpStrictlyEqualsRhsInt32 arith_feedback:2, lhs:reg5, rhs:0, true_target:block13, false_target:block10
+ [ 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
block10:
- [ 9e] JumpStrictlyEqualsRhsInt32 arith_feedback:3, lhs:reg5, rhs:2, true_target:block11, false_target:block12
+ [ 96] JumpStrictlyEqualsRhsInt32 arith_feedback:3, lhs:reg5, rhs:2, true_target:block11, false_target:block12
block11:
- [ ae] Jump target:block14
+ [ a6] Jump target:block14
block12:
- [ b3] Throw src:reg6
+ [ ab] Throw src:reg6
block13:
- [ b5] Increment arith_feedback:4, dst:i~0
- [ b9] JumpLoop target:block1
+ [ ad] Increment arith_feedback:4, dst:i~0
+ [ b1] JumpLoop target:block1
block14:
- [ be] End value:Undefined
+ [ b6] End value:Undefined
Exception handlers:
[ 4 .. c] => handler block2
- [ c .. 66] => handler block8
+ [ c .. 62] => handler block8
"finally"
diff --git a/Tests/LibJS/Bytecode/expected/update-member-expression.txt b/Tests/LibJS/Bytecode/expected/update-member-expression.txt
index 62d4aa98fad..1e427758f2a 100644
--- a/Tests/LibJS/Bytecode/expected/update-member-expression.txt
+++ b/Tests/LibJS/Bytecode/expected/update-member-expression.txt
@@ -1,4 +1,4 @@
-$3ba50af1 update-member-expression.js:13:1
+$fdb7ffbd update-member-expression.js:13:1
Registers: 8
Blocks: 1
Constants:
@@ -10,13 +10,13 @@ block0:
[ 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]
- [ 1d] GetGlobal value_feedback:2, dst:reg6, `prefix_decrement`
- [ 26] NewObject dst:reg7
- [ 2a] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
- [ 36] End value:reg5
+ [ 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
-postfix_increment$ef59ceae update-member-expression.js:6:14
+postfix_increment$3592ad12 update-member-expression.js:6:14
Registers: 7
Blocks: 1
Constants:
@@ -25,12 +25,12 @@ postfix_increment$ef59ceae update-member-expression.js:6:14
block0:
[ 0] Enter
[ 1] GetById value_feedback:0, dst:reg5, base:arg0, `count`
- [ d] PostfixIncrement arith_feedback:0, dst:reg6, src:reg5
- [ 12] PutById base:arg0, `count`, src:reg5, kind:Normal
- [ 20] End value:Undefined
+ [ b] PostfixIncrement arith_feedback:0, dst:reg6, src:reg5
+ [ 10] PutById base:arg0, `count`, src:reg5, kind:Normal
+ [ 1c] End value:Undefined
-prefix_decrement$b8dd5e4b update-member-expression.js:10:5
+prefix_decrement$7af05317 update-member-expression.js:10:5
Registers: 6
Blocks: 1
Constants:
@@ -39,6 +39,6 @@ prefix_decrement$b8dd5e4b update-member-expression.js:10:5
block0:
[ 0] Enter
[ 1] GetById value_feedback:0, dst:reg5, base:arg0, `count`
- [ d] Decrement arith_feedback:0, dst:reg5
- [ 11] PutById base:arg0, `count`, src:reg5, kind:Normal
- [ 1f] End value:Undefined
+ [ b] Decrement arith_feedback:0, dst:reg5
+ [ f] PutById base:arg0, `count`, src:reg5, kind:Normal
+ [ 1b] 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 42d49acbfd2..2c21a0295f3 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 @@
-$ddf80760 using-declaration-non-local-env.js:1:1
+$bf0181c6 using-declaration-non-local-env.js:1:1
Registers: 7
Blocks: 4
Locals: e~0
@@ -14,23 +14,23 @@ block0:
block1:
[ 7] NewFunction dst:reg6, shared_function_data_index:0
[ 11] Call value_feedback:0, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined
- [ 1c] Jump target:block3
+ [ 1a] Jump target:block3
block2:
- [ 21] Catch value_feedback:1, dst:reg6
- [ 25] Mov dst:reg5, src:Undefined
- [ 28] Mov dst:e~0, src:<Empty>
- [ 2b] Mov dst:e~0, src:reg6
- [ 2e] Jump target:block3
+ [ 1f] Catch value_feedback:1, dst:reg6
+ [ 23] Mov dst:reg5, src:Undefined
+ [ 26] Mov dst:e~0, src:<Empty>
+ [ 29] Mov dst:e~0, src:reg6
+ [ 2c] Jump target:block3
block3:
- [ 33] End value:reg5
+ [ 31] End value:reg5
Exception handlers:
- [ 7 .. 21] => handler block2
+ [ 7 .. 1f] => handler block2
-$cf949d23 using-declaration-non-local-env.js:1:19
+$6fed1b45 using-declaration-non-local-env.js:1:19
Registers: 10
Blocks: 6
Constants:
@@ -51,24 +51,24 @@ block1:
[ 27] InitializeLexicalBinding `x`, src:reg9
[ 34] NewFunction dst:reg9, shared_function_data_index:0
[ 3e] Call value_feedback:0, call_feedback:0, dst:reg9, callee:reg9, this_value:Undefined
- [ 49] Mov dst:reg7, src:Int32(0)
- [ 4c] Jump target:block3
+ [ 47] Mov dst:reg7, src:Int32(0)
+ [ 4a] Jump target:block3
block2:
- [ 51] Catch value_feedback:1, dst:reg8
- [ 55] SetLexicalEnvironment environment:reg5
- [ 57] Mov dst:reg7, src:Int32(1)
+ [ 4f] Catch value_feedback:1, dst:reg8
+ [ 53] SetLexicalEnvironment environment:reg5
+ [ 55] Mov dst:reg7, src:Int32(1)
block3:
- [ 5a] DisposeResources stack:reg6, completion_type:reg7, completion_value:reg8
- [ 5e] JumpStrictlyEqualsRhsInt32 arith_feedback:0, lhs:reg7, rhs:0, true_target:block5, false_target:block4
+ [ 58] DisposeResources stack:reg6, completion_type:reg7, completion_value:reg8
+ [ 5c] JumpStrictlyEqualsRhsInt32 arith_feedback:0, lhs:reg7, rhs:0, true_target:block5, false_target:block4
block4:
- [ 6e] Throw src:reg8
+ [ 6c] Throw src:reg8
block5:
- [ 70] SetLexicalEnvironment environment:reg4
- [ 72] End value:Undefined
+ [ 6e] SetLexicalEnvironment environment:reg4
+ [ 70] End value:Undefined
Exception handlers:
- [ 1c .. 51] => handler block2
+ [ 1c .. 4f] => handler block2
diff --git a/Tests/LibJS/Bytecode/expected/var-binding-access.txt b/Tests/LibJS/Bytecode/expected/var-binding-access.txt
index 24609d30f8a..6343ba82c45 100644
--- a/Tests/LibJS/Bytecode/expected/var-binding-access.txt
+++ b/Tests/LibJS/Bytecode/expected/var-binding-access.txt
@@ -1,4 +1,4 @@
-$32bbbacc var-binding-access.js:22:1
+$f20abe88 var-binding-access.js:22:1
Registers: 7
Blocks: 1
Constants:
@@ -9,9 +9,9 @@ block0:
[ 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
- [ 18] GetGlobal value_feedback:2, dst:reg6, `let_access`
- [ 21] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined
- [ 2c] End value:reg5
+ [ 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
var_access$d410239e var-binding-access.js:5:9
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 9a2a227b16f..d0bf212fedd 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 @@
-$3cd6167b var-env-capacity-with-param-expressions.js:5:1
+$9c7d9859 var-env-capacity-with-param-expressions.js:5:1
Registers: 7
Blocks: 1
Constants:
@@ -9,10 +9,10 @@ block0:
[ 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
- [ 18] End value:reg5
+ [ 16] End value:reg5
-f$0cc16909 var-env-capacity-with-param-expressions.js:1:12
+f$ad19e72b var-env-capacity-with-param-expressions.js:1:12
Registers: 10
Blocks: 3
Constants:
@@ -44,7 +44,7 @@ block2:
[ 8a] InitializeVariableBinding `c`, src:Undefined
[ 97] DynamicGetCalleeAndThisFromEnvironment value_feedback:0, callee:reg8, this_value:reg9, `eval`
[ a1] CallDirectEval value_feedback:1, call_feedback:0, dst:reg8, callee:reg8, this_value:reg9, arguments:[String("")]
- [ ad] End value:Undefined
+ [ ab] 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 04fbc74ddbb..7485a646e72 100644
--- a/Tests/LibJS/Bytecode/expected/var-hoisting-tdz.txt
+++ b/Tests/LibJS/Bytecode/expected/var-hoisting-tdz.txt
@@ -1,4 +1,4 @@
-$24a767b7 var-hoisting-tdz.js:9:1
+$844ee995 var-hoisting-tdz.js:9:1
Registers: 7
Blocks: 1
Constants:
@@ -9,7 +9,7 @@ block0:
[ 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
- [ 18] End value:reg5
+ [ 16] 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 3939a2b57a6..083f0cf8275 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 @@
-$559fc86a var-init-in-param-body-scope.js:4:1
+$b5474a48 var-init-in-param-body-scope.js:4:1
Registers: 7
Blocks: 1
Constants:
@@ -9,7 +9,7 @@ block0:
[ 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
- [ 18] End value:reg5
+ [ 16] 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 cc1721611aa..24430520c40 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 @@
-$ac64a382 var-shadow-in-default-param.js:7:5
+$ed159fc6 var-shadow-in-default-param.js:7:5
Registers: 7
Blocks: 1
Constants:
@@ -11,9 +11,9 @@ block0:
[ 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
- [ 1f] GetGlobal value_feedback:2, dst:reg6, `no_conflict`
- [ 28] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined
- [ 33] End value:reg5
+ [ 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
shadow_in_default$8378f6a7 var-shadow-in-default-param.js:8:28
diff --git a/Tests/LibJS/Bytecode/expected/with-return.txt b/Tests/LibJS/Bytecode/expected/with-return.txt
index cb4d6a8b5e9..6d68588a10b 100644
--- a/Tests/LibJS/Bytecode/expected/with-return.txt
+++ b/Tests/LibJS/Bytecode/expected/with-return.txt
@@ -1,4 +1,4 @@
-$1b47959f with-return.js:10:1
+$bba013c1 with-return.js:10:1
Registers: 8
Blocks: 1
Constants:
@@ -13,7 +13,7 @@ block0:
[ 11] InitObjectLiteralProperty object:reg7, `x`, src:Int32(42), shape_cache_index:0, property_slot:0
[ 1f] CacheObjectShape object:reg7
[ 23] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]
- [ 2f] End value:reg5
+ [ 2d] End value:reg5
with_return$8eb08379 with-return.js:5:5
diff --git a/Tests/LibJS/Bytecode/expected/with-statement.txt b/Tests/LibJS/Bytecode/expected/with-statement.txt
index a2b3a0d1566..f1fcc79d45f 100644
--- a/Tests/LibJS/Bytecode/expected/with-statement.txt
+++ b/Tests/LibJS/Bytecode/expected/with-statement.txt
@@ -1,4 +1,4 @@
-$a33dfa99 with-statement.js:7:1
+$439678bb with-statement.js:7:1
Registers: 7
Blocks: 1
Constants:
@@ -9,10 +9,10 @@ block0:
[ 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
- [ 18] End value:reg5
+ [ 16] End value:reg5
-withBlock$bc612b58 with-statement.js:2:9
+withBlock$fd12279c with-statement.js:2:9
Registers: 9
Blocks: 1
Locals: obj~0
@@ -30,10 +30,10 @@ block0:
[ 1c] EnterObjectEnvironment dst:reg5, object:obj~0
[ 1f] DynamicGetBinding value_feedback:0, dst:reg6, `console`
[ 28] GetById value_feedback:1, dst:reg7, base:reg6, `log`
- [ 34] DynamicGetBinding value_feedback:2, dst:reg8, `x`
- [ 3d] Call value_feedback:3, call_feedback:0, dst:reg6, callee:reg7, this_value:reg6, arguments:[reg8]
- [ 49] SetLexicalEnvironment environment:reg4
- [ 4b] End value:Undefined
+ [ 32] DynamicGetBinding value_feedback:2, dst:reg8, `x`
+ [ 3b] Call value_feedback:3, call_feedback:0, dst:reg6, callee:reg7, this_value:reg6, arguments:[reg8]
+ [ 45] SetLexicalEnvironment environment:reg4
+ [ 47] End value:Undefined
42