Truly independent web browser
LibJS: Store the enum fields of bytecode instructions in one byte
Andreas Klingd103ecc4bcaa
diff --git a/Libraries/LibJS/Flap/src/bytecode.rs b/Libraries/LibJS/Flap/src/bytecode.rsindex 9954c781d6e..b88ea0464ac 100644--- a/Libraries/LibJS/Flap/src/bytecode.rs+++ b/Libraries/LibJS/Flap/src/bytecode.rs@@ -166,12 +166,7 @@ fn bytecode_field_type_matches(field: &crate::metadata::Field, parameter_type: &"bool" => *parameter_type == Type::Bool || *parameter_type == Type::U8,"u8" => *parameter_type == Type::U8,"u32"- | "Completion::Type"- | "IteratorHint"- | "EnvironmentMode"| "EnvironmentShapeCacheIndex"- | "ArgumentsKind"- | "FunctionNamePrefix"| "IdentifierTableIndex"| "ObjectPropertyIteratorCacheIndex"| "ObjectShapeCacheIndex"@@ -192,7 +187,8 @@ fn bytecode_field_type_matches(field: &crate::metadata::Field, parameter_type: &"EnvironmentCoordinateCacheIndex" => *parameter_type == Type::EnvironmentCoordinateCacheIndex,"GlobalVariableCacheIndex" => *parameter_type == Type::GlobalVariableCacheIndex,"PropertyLookupCacheIndex" => *parameter_type == Type::PropertyLookupCacheIndex,- "PutKind" => *parameter_type == Type::U8,+ "Completion::Type" | "IteratorHint" | "EnvironmentMode" | "PutKind" | "ArgumentsKind"+ | "FunctionNamePrefix" => *parameter_type == Type::U8,_ => false,}}diff --git a/Libraries/LibJS/Flap/src/frontend/parser.rs b/Libraries/LibJS/Flap/src/frontend/parser.rsindex d1caaf0da04..cee2e9271d2 100644--- a/Libraries/LibJS/Flap/src/frontend/parser.rs+++ b/Libraries/LibJS/Flap/src/frontend/parser.rs@@ -575,15 +575,11 @@ impl<'a> Parser<'a> {self.consume(TokenKind::Colon, "':'")?;self.consume(TokenKind::Colon, "':'")?;self.consume_keyword("Type")?;- Type::U32+ Type::U8} else if matches!(name.as_str(),- "ArgumentsKind"- | "EnvironmentMode"- | "EnvironmentShapeCacheIndex"- | "FunctionNamePrefix"+ "EnvironmentShapeCacheIndex"| "IdentifierTableIndex"- | "IteratorHint"| "ObjectPropertyIteratorCacheIndex"| "ObjectShapeCacheIndex"| "PropertyKeyTableIndex"@@ -591,7 +587,10 @@ impl<'a> Parser<'a> {| "TemplateObjectCacheIndex") {Type::U32- } else if name == "PutKind" {+ } else if matches!(+ name.as_str(),+ "ArgumentsKind" | "EnvironmentMode" | "FunctionNamePrefix" | "IteratorHint" | "PutKind"+ ) {Type::U8} else {let constructor = match name.as_str() {diff --git a/Libraries/LibJS/Flap/src/metadata.rs b/Libraries/LibJS/Flap/src/metadata.rsindex 5f4e38c1c35..de4c9d7b9f5 100644--- a/Libraries/LibJS/Flap/src/metadata.rs+++ b/Libraries/LibJS/Flap/src/metadata.rs@@ -685,13 +685,8 @@ fn try_field_type_info(ty: &str) -> Option<FieldType> {"StringTableIndex" => ("StringTableIndex", 3, "u32_newtype"),"Optional<StringTableIndex>" => ("Option<StringTableIndex>", 3, "optional_u32_newtype"),"EnvironmentCoordinate" => ("EnvironmentCoordinate", 8, "env_coord"),- "Builtin" => ("u8", 1, "u8"),- "Completion::Type" => ("u32", 4, "u32"),- "IteratorHint" => ("u32", 4, "u32"),- "EnvironmentMode" => ("u32", 4, "u32"),- "PutKind" => ("u32", 4, "u32"),- "ArgumentsKind" => ("u32", 4, "u32"),- "FunctionNamePrefix" => ("u32", 4, "u32"),+ "Builtin" | "Completion::Type" | "IteratorHint" | "EnvironmentMode" | "PutKind" | "ArgumentsKind"+ | "FunctionNamePrefix" => ("u8", 1, "u8"),"Value" => ("u64", 8, "u64"),"PropertyLookupCacheIndex"| "GlobalVariableCacheIndex"diff --git a/Libraries/LibJS/Flap/src/rust_bytecode.rs b/Libraries/LibJS/Flap/src/rust_bytecode.rsindex baa8a024d4c..5e463e9322d 100644--- a/Libraries/LibJS/Flap/src/rust_bytecode.rs+++ b/Libraries/LibJS/Flap/src/rust_bytecode.rs@@ -98,16 +98,9 @@ pub fn read_expr_for_type(ty: &str, offset: &str, reader: &str) -> String {"bool" => format!("bytes[{offset}] != 0"),"u8" => format!("u32::from(bytes[{offset}])"),"i32" => format!("{reader}read_u32(bytes, {offset}) as i32"),- "u32"- | "Completion::Type"- | "IteratorHint"- | "EnvironmentMode"- | "PutKind"- | "ArgumentsKind"- | "FunctionNamePrefix"- | "TemplateObjectCacheIndex"- | "ObjectPropertyIteratorCacheIndex"- | "EnvironmentShapeCacheIndex" => format!("{reader}read_u32(bytes, {offset})"),+ "u32" | "TemplateObjectCacheIndex" | "ObjectPropertyIteratorCacheIndex" | "EnvironmentShapeCacheIndex" => {+ format!("{reader}read_u32(bytes, {offset})")+ }"PropertyLookupCacheIndex"| "GlobalVariableCacheIndex"| "EnvironmentCoordinateCacheIndex"@@ -140,7 +133,8 @@ pub fn read_expr_for_type(ty: &str, offset: &str, reader: &str) -> String {"EnvironmentCoordinate" => format!("EnvironmentCoordinate {{ hops: {reader}read_u32(bytes, {offset}), index: {reader}read_u32(bytes, {offset} + 4) }}"),- "Builtin" => format!("bytes[{offset}]"),+ "Builtin" | "Completion::Type" | "IteratorHint" | "EnvironmentMode" | "PutKind" | "ArgumentsKind"+ | "FunctionNamePrefix" => format!("bytes[{offset}]"),other => unreachable!("Unknown field type: {other}"),}}diff --git a/Libraries/LibJS/Flap/tests/interpreter-assembly/aarch64.S b/Libraries/LibJS/Flap/tests/interpreter-assembly/aarch64.Sindex 306b61e7c44..aa1c3835d64 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, #12]- add x21, x21, #12+ ldrb w9, [x21, #9]+ add x21, x21, #9ldr 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, #12]- add x21, x21, #12+ ldrb w9, [x21, #9]+ add x21, x21, #9ldr x10, [x19, x9, lsl #3]br x10.Lasm_PutByValue.ssa_block_11:@@ -5079,8 +5079,8 @@ asm_handler_PutByValue:and x0, x0, #0x3ffffffffffadds x0, x0, x1strb w4, [x0]- ldrb w9, [x21, #12]- add x21, x21, #12+ ldrb w9, [x21, #9]+ add x21, x21, #9ldr x10, [x19, x9, lsl #3]br x10.Lasm_PutByValue.ssa_block_16:@@ -5088,8 +5088,8 @@ asm_handler_PutByValue:and x0, x0, #0x3ffffffffffadds x0, x0, x1strh w4, [x0]- ldrb w9, [x21, #12]- add x21, x21, #12+ ldrb w9, [x21, #9]+ add x21, x21, #9ldr 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, #12]- add x21, x21, #12+ ldrb w9, [x21, #9]+ add x21, x21, #9ldr x10, [x19, x9, lsl #3]br x10.Lasm_PutByValue.ssa_block_22:@@ -5114,8 +5114,8 @@ asm_handler_PutByValue:and x0, x0, #0x3ffffffffffadds x0, x0, x1str w4, [x0]- ldrb w9, [x21, #12]- add x21, x21, #12+ ldrb w9, [x21, #9]+ add x21, x21, #9ldr x10, [x19, x9, lsl #3]br x10.Lasm_PutByValue.ssa_block_19:@@ -5125,8 +5125,8 @@ asm_handler_PutByValue:scvtf d0, w4fcvt s0, d0str s0, [x0]- ldrb w9, [x21, #12]- add x21, x21, #12+ ldrb w9, [x21, #9]+ add x21, x21, #9ldr x10, [x19, x9, lsl #3]br x10.Lasm_PutByValue.ssa_block_20:@@ -5136,8 +5136,8 @@ asm_handler_PutByValue:scvtf d0, w4fmov x1, d0str x1, [x0]- ldrb w9, [x21, #12]- add x21, x21, #12+ ldrb w9, [x21, #9]+ add x21, x21, #9ldr x10, [x19, x9, lsl #3]br x10.Lasm_PutByValue.ssa_block_7:@@ -5153,8 +5153,8 @@ asm_handler_PutByValue:fmov d0, x4fcvt s0, d0str s0, [x0]- ldrb w9, [x21, #12]- add x21, x21, #12+ ldrb w9, [x21, #9]+ add x21, x21, #9ldr x10, [x19, x9, lsl #3]br x10.Lasm_PutByValue.ssa_switch_7_after_preferred:@@ -5179,8 +5179,8 @@ asm_handler_PutByValue:and x0, x0, #0x3ffffffffffadds x0, x0, x1str x4, [x0]- ldrb w9, [x21, #12]- add x21, x21, #12+ ldrb w9, [x21, #9]+ add x21, x21, #9ldr x10, [x19, x9, lsl #3]br x10.Lasm_PutByValue.ssa_block_29:@@ -5199,8 +5199,8 @@ asm_handler_PutByValue:and x0, x0, #0x3ffffffffffadds x0, x0, x1strb w3, [x0]- ldrb w9, [x21, #12]- add x21, x21, #12+ ldrb w9, [x21, #9]+ add x21, x21, #9ldr x10, [x19, x9, lsl #3]br x10.Lasm_PutByValue.ssa_block_30:@@ -5219,8 +5219,8 @@ asm_handler_PutByValue:and x0, x0, #0x3ffffffffffadds x0, x0, x1strh w3, [x0]- ldrb w9, [x21, #12]- add x21, x21, #12+ ldrb w9, [x21, #9]+ add x21, x21, #9ldr x10, [x19, x9, lsl #3]br x10.Lasm_PutByValue.ssa_block_31:@@ -5239,8 +5239,8 @@ asm_handler_PutByValue:and x0, x0, #0x3ffffffffffadds x1, x1, x0str w3, [x1]- ldrb w9, [x21, #12]- add x21, x21, #12+ ldrb w9, [x21, #9]+ add x21, x21, #9ldr 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_15ldr x0, [x0, #152]cbz x0, .Lasm_PutByValue.assert_failure_1- ldrh w1, [x21, #10]+ ldurh w1, [x21, #7]ldr x0, [x0, x1, lsl #3]cbz x0, .Lasm_PutByValue.ssa_block_1cmp 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, #12]- add x21, x21, #12+ ldrb w9, [x21, #9]+ add x21, x21, #9ldr x10, [x19, x9, lsl #3]br x10asm_handler_PutByValue_hot_end:@@ -5409,7 +5409,7 @@ asm_handler_PutById:cbz x0, .Lasm_PutById.assert_predicate_failure_14ldr x0, [x0, #152]cbz x0, .Lasm_PutById.assert_failure_1- ldrh w3, [x21, #10]+ ldurh w3, [x21, #7]ldr x0, [x0, x3, lsl #3]cbz x0, .Lasm_PutById.ssa_block_2and x0, x0, #0xfffffffffffffffc@@ -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, #12]- add x21, x21, #12+ ldrb w9, [x21, #9]+ add x21, x21, #9ldr x10, [x19, x9, lsl #3]br x10asm_handler_PutById_hot_end:@@ -6530,15 +6530,15 @@ asm_handler_IteratorClose:cbz x0, .Lasm_IteratorClose.ssa_block_1ldrb w9, [x0, #11]cbz w9, .Lasm_IteratorClose.ssa_block_1- ldrb w9, [x21, #11]- add x21, x21, #11+ ldrb w9, [x21, #8]+ add x21, x21, #8ldr x10, [x19, x9, lsl #3]br x10.Lasm_IteratorClose.ssa_block_3:ldr x1, [x28, #88]ldr x1, [x1, #152]cbz x1, .Lasm_IteratorClose.assert_failure_0- ldurh w2, [x21, #9]+ ldrh w2, [x21, #6]lsl x2, x2, #3adds x1, x1, x2bl CSYM(asm_try_get_by_id_cache)@@ -6547,8 +6547,8 @@ asm_handler_IteratorClose:mov w9, #32766cmp w0, w9b.ne .Lasm_IteratorClose.ssa_block_1- ldrb w9, [x21, #11]- add x21, x21, #11+ ldrb w9, [x21, #8]+ add x21, x21, #8ldr x10, [x19, x9, lsl #3]br x10asm_handler_IteratorClose_hot_end:@@ -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, #12]- add x21, x21, #12+ ldrb w9, [x21, #9]+ add x21, x21, #9ldr 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, #12]- add x21, x21, #12+ ldrb w9, [x21, #9]+ add x21, x21, #9ldr 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, #12]- add x21, x21, #12+ ldrb w9, [x21, #9]+ add x21, x21, #9ldr x10, [x19, x9, lsl #3]br x10asm_handler_PutByValue_cold_end:@@ -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, #12]- add x21, x21, #12+ ldrb w9, [x21, #9]+ add x21, x21, #9ldr x10, [x19, x9, lsl #3]br x10.Lasm_PutById.ssa_block_1:@@ -15840,7 +15840,7 @@ asm_handler_IteratorClose_cold:ldr x10, [x27, x9, lsl #3].Lasm_IteratorClose.scalar_value_ready_3:mov x5, x10- ldrb w9, [x21, #8]+ ldrb w9, [x21, #5]ldr x10, [x27, x9, lsl #3].Lasm_IteratorClose.scalar_value_ready_4:mov x6, x10diff --git a/Libraries/LibJS/Flap/tests/interpreter-assembly/x86_64.S b/Libraries/LibJS/Flap/tests/interpreter-assembly/x86_64.Sindex d61b9d89621..25070d5a757 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, 12+ add r13d, 9movzx 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, 12+ add r13d, 9movzx eax, BYTE PTR [r14 + r13]jmp [r12 + rax * 8].Lasm_PutByValue.ssa_block_11:@@ -5072,7 +5072,7 @@ asm_handler_PutByValue:and rax, rcxadd rax, rdxmov BYTE PTR [rax], dil- add r13d, 12+ add r13d, 9movzx eax, BYTE PTR [r14 + r13]jmp [r12 + rax * 8].Lasm_PutByValue.ssa_block_16:@@ -5081,7 +5081,7 @@ asm_handler_PutByValue:and rax, rcxadd rax, rdxmov WORD PTR [rax], di- add r13d, 12+ add r13d, 9movzx 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, 12+ add r13d, 9movzx eax, BYTE PTR [r14 + r13]jmp [r12 + rax * 8].Lasm_PutByValue.ssa_block_22:@@ -5108,7 +5108,7 @@ asm_handler_PutByValue:and rax, rcxadd rax, rdxmov DWORD PTR [rax], edi- add r13d, 12+ add r13d, 9movzx eax, BYTE PTR [r14 + r13]jmp [r12 + rax * 8].Lasm_PutByValue.ssa_block_19:@@ -5119,7 +5119,7 @@ asm_handler_PutByValue:cvtsi2sd xmm0, edicvtsd2ss xmm0, xmm0movss DWORD PTR [rax], xmm0- add r13d, 12+ add r13d, 9movzx eax, BYTE PTR [r14 + r13]jmp [r12 + rax * 8].Lasm_PutByValue.ssa_block_20:@@ -5130,7 +5130,7 @@ asm_handler_PutByValue:cvtsi2sd xmm0, edimovq rcx, xmm0mov QWORD PTR [rax], rcx- add r13d, 12+ add r13d, 9movzx eax, BYTE PTR [r14 + r13]jmp [r12 + rax * 8].Lasm_PutByValue.ssa_block_7:@@ -5146,7 +5146,7 @@ asm_handler_PutByValue:movq xmm0, rdicvtsd2ss xmm0, xmm0movss DWORD PTR [rax], xmm0- add r13d, 12+ add r13d, 9movzx 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, rcxadd rax, rdxmov QWORD PTR [rax], rdi- add r13d, 12+ add r13d, 9movzx eax, BYTE PTR [r14 + r13]jmp [r12 + rax * 8].Lasm_PutByValue.ssa_block_29:@@ -5194,7 +5194,7 @@ asm_handler_PutByValue:and rax, rcxadd rax, rdxmov BYTE PTR [rax], dil- add r13d, 12+ add r13d, 9movzx eax, BYTE PTR [r14 + r13]jmp [r12 + rax * 8].Lasm_PutByValue.ssa_block_30:@@ -5214,7 +5214,7 @@ asm_handler_PutByValue:and rax, rcxadd rax, rdxmov WORD PTR [rax], di- add r13d, 12+ add r13d, 9movzx eax, BYTE PTR [r14 + r13]jmp [r12 + rax * 8].Lasm_PutByValue.ssa_block_31:@@ -5234,7 +5234,7 @@ asm_handler_PutByValue:and rax, rcxadd rdx, raxmov DWORD PTR [rdx], edi- add r13d, 12+ add r13d, 9movzx 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, raxjz .Lasm_PutByValue.assert_failure_1- movzx ecx, WORD PTR [r14 + r13 + 10]+ movzx ecx, WORD PTR [r14 + r13 + 7]mov rax, QWORD PTR [rax + rcx * 8]test rax, raxjz .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, 12+ add r13d, 9movzx eax, BYTE PTR [r14 + r13]jmp [r12 + rax * 8]asm_handler_PutByValue_hot_end:@@ -5417,7 +5417,7 @@ asm_handler_PutById:mov rax, QWORD PTR [rax + 152]test rax, raxjz .Lasm_PutById.assert_failure_1- movzx esi, WORD PTR [r14 + r13 + 10]+ movzx esi, WORD PTR [r14 + r13 + 7]mov rax, QWORD PTR [rax + rsi * 8]test rax, raxjz .Lasm_PutById.ssa_block_2@@ -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, 12+ add r13d, 9movzx eax, BYTE PTR [r14 + r13]jmp [r12 + rax * 8]asm_handler_PutById_hot_end:@@ -6623,7 +6623,7 @@ asm_handler_IteratorClose:jz .Lasm_IteratorClose.ssa_block_1cmp BYTE PTR [rax + 11], 0jz .Lasm_IteratorClose.ssa_block_1- add r13d, 11+ add r13d, 8movzx eax, BYTE PTR [r14 + r13]jmp [r12 + rax * 8].Lasm_IteratorClose.ssa_block_3:@@ -6631,7 +6631,7 @@ asm_handler_IteratorClose:mov rdx, QWORD PTR [rax + 152]test rdx, rdxjz .Lasm_IteratorClose.assert_failure_0- movzx eax, WORD PTR [r14 + r13 + 9]+ movzx eax, WORD PTR [r14 + r13 + 6]shl rax, 3add rdx, raxmov rdi, rcx@@ -6641,7 +6641,7 @@ asm_handler_IteratorClose:and ax, 65534cmp ax, 32766jne .Lasm_IteratorClose.ssa_block_1- add r13d, 11+ add r13d, 8movzx eax, BYTE PTR [r14 + r13]jmp [r12 + rax * 8]asm_handler_IteratorClose_hot_end:@@ -13708,7 +13708,7 @@ asm_handler_PutByValue_cold:.Lasm_PutByValue.values_call_done_4:test eax, eaxjnz .Lasm_PutByValue.ssa_block_1- add r13d, 12+ add r13d, 9movzx 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, eaxjnz .Lasm_PutByValue.ssa_block_1- add r13d, 12+ add r13d, 9movzx 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, eaxjnz .Lasm_PutByValue.ssa_block_1- add r13d, 12+ add r13d, 9movzx eax, BYTE PTR [r14 + r13]jmp [r12 + rax * 8]asm_handler_PutByValue_cold_end:@@ -14330,7 +14330,7 @@ asm_handler_PutById_cold:.Lasm_PutById.values_call_done_3:test eax, eaxjnz .Lasm_PutById.ssa_block_1- add r13d, 12+ add r13d, 9movzx eax, BYTE PTR [r14 + r13]jmp [r12 + rax * 8].Lasm_PutById.ssa_block_1:@@ -15411,7 +15411,7 @@ asm_handler_IteratorClose_cold:mov rax, QWORD PTR [rbx + r10 * 8].Lasm_IteratorClose.scalar_value_ready_3:mov r9, rax- movzx r10d, BYTE PTR [r11 + 8]+ movzx r10d, BYTE PTR [r11 + 5]mov rax, QWORD PTR [rbx + r10 * 8].Lasm_IteratorClose.scalar_value_ready_4:mov QWORD PTR [rsp], raxdiff --git a/Libraries/LibJS/JIT/Rust/src/builder/array_iterators.rs b/Libraries/LibJS/JIT/Rust/src/builder/array_iterators.rsindex 9df434cf411..238ebcf01ee 100644--- a/Libraries/LibJS/JIT/Rust/src/builder/array_iterators.rs+++ b/Libraries/LibJS/JIT/Rust/src/builder/array_iterators.rs@@ -23,7 +23,7 @@ use crate::ir::Op;use crate::ir::value;/// The `hint` of a `GetIterator` for synchronous iteration.-const SYNC_HINT: u32 = 0;+const SYNC_HINT: u8 = 0;impl GraphBuilder<'_> {/// The builtin `%ArrayIteratorPrototype%.next` of the realm of the@@ -57,7 +57,7 @@ impl GraphBuilder<'_> {dst_iterator_next: Operand,dst_iterator_done: Operand,iterable: Operand,- hint: u32,+ hint: u8,fast_array_mode_allowed: bool,) -> Result<Option<Flow>, CompileFailure> {if hint != SYNC_HINT || !fast_array_mode_allowed {diff --git a/Libraries/LibJS/JIT/Rust/src/builder/environments.rs b/Libraries/LibJS/JIT/Rust/src/builder/environments.rsindex 6032b85a66e..6bc3fdb757f 100644--- a/Libraries/LibJS/JIT/Rust/src/builder/environments.rs+++ b/Libraries/LibJS/JIT/Rust/src/builder/environments.rs@@ -29,7 +29,7 @@ use crate::ir::value;const INVALID_HOPS: u32 = 0xFFFF_FFFE;/// `JS::EnvironmentMode::Lexical`.-const ENVIRONMENT_MODE_LEXICAL: u32 = 0;+const ENVIRONMENT_MODE_LEXICAL: u8 = 0;impl GraphBuilder<'_> {/// `field` of the running execution context. Inlined callees need nodiff --git a/Libraries/LibJS/JIT/Rust/src/builder/tests.rs b/Libraries/LibJS/JIT/Rust/src/builder/tests.rsindex 5b713a98656..293deedfcd3 100644--- a/Libraries/LibJS/JIT/Rust/src/builder/tests.rs+++ b/Libraries/LibJS/JIT/Rust/src/builder/tests.rs@@ -1547,15 +1547,15 @@ pub(crate) mod property_access {CheckShape [0x100] ([[V1]], [[V4]]) [[[FS0]]]StoreNamed +2 ([[V1]], #10, [[V4]]) [[[FS0]]][[V13]] = LoadSlot l1- [[V14]] = CallSlowPath Exp @22 ([[V13]], #10) [[[FS1]]]+ [[V14]] = CallSlowPath Exp @19 ([[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 22 after -> l1 {r5=#10} frame [a0]- [[FS2]]: pc 28 at {r5=#10} frame [a0]+ [[FS1]]: pc 19 after -> l1 {r5=#10} frame [a0]+ [[FS2]]: pc 25 at {r5=#10} frame [a0]",);}@@ -2482,7 +2482,7 @@ mod arguments {fn create_arguments(mapped: bool) -> Instruction {Instruction::CreateArguments {dst: Some(l(0)),- kind: u32::from(!mapped),+ kind: u8::from(!mapped),is_immutable: false,creates_parameter_bindings: false,}diff --git a/Libraries/LibJS/JIT/Rust/src/bytecode/mod.rs b/Libraries/LibJS/JIT/Rust/src/bytecode/mod.rsindex e719158da03..2b85264b541 100644--- a/Libraries/LibJS/JIT/Rust/src/bytecode/mod.rs+++ b/Libraries/LibJS/JIT/Rust/src/bytecode/mod.rs@@ -28,11 +28,11 @@ pub const NO_YIELD_CONTINUATION: u32 = u32::MAX;/// The `kind` of a `CreateArguments` that creates a mapped arguments object/// (`ArgumentsKind::Mapped` in `Libraries/LibJS/ABI`).-pub const MAPPED_ARGUMENTS: u32 = 0;+pub const MAPPED_ARGUMENTS: u8 = 0;/// The `kind` of a `PutByValue` or `PutById` of a plain assignment/// (`PutKind::Normal` in `Libraries/LibJS/ABI`).-pub const PUT_KIND_NORMAL: u32 = 0;+pub const PUT_KIND_NORMAL: u8 = 0;/// How an executable's flat slot indices are partitioned. Operands index the/// frame's value array laid out as `[registers | locals | constants | arguments]`.diff --git a/Libraries/LibJS/JIT/Rust/src/codegen/tests/lowerings.rs b/Libraries/LibJS/JIT/Rust/src/codegen/tests/lowerings.rsindex 5fc529a2970..0be340a744f 100644--- a/Libraries/LibJS/JIT/Rust/src/codegen/tests/lowerings.rs+++ b/Libraries/LibJS/JIT/Rust/src/codegen/tests/lowerings.rs@@ -2146,7 +2146,7 @@ fn create_variable() {// bindings, a mutable one and a strict immutable one.const NAMES: [u64; 2] = [0x100, 0x200];let flags = [BINDING_MUTABLE, 1];- let create = |environment: &FakeEnvironment, identifier: u32, mode: u32, is_immutable: bool, is_strict: bool| {+ let create = |environment: &FakeEnvironment, identifier: u32, mode: u8, is_immutable: bool, is_strict: bool| {let program = assemble(|_| {vec![Instruction::Enter,diff --git a/Libraries/LibJS/Rust/src/bytecode/codegen/constructs.rs b/Libraries/LibJS/Rust/src/bytecode/codegen/constructs.rsindex de890733cff..951d7dfb118 100644--- a/Libraries/LibJS/Rust/src/bytecode/codegen/constructs.rs+++ b/Libraries/LibJS/Rust/src/bytecode/codegen/constructs.rs@@ -247,7 +247,7 @@ impl Generator<'_> {let identifier = self.intern_identifier_text(crate::utf16::Utf16View::Ascii(b""));self.emit(op::CreateVariable {identifier,- mode: libjs_abi::EnvironmentMode::Lexical as u32,+ mode: libjs_abi::EnvironmentMode::Lexical as u8,is_immutable: true,is_global: false,is_strict: true,@@ -575,7 +575,7 @@ impl Generator<'_> {self.put(op::SetFunctionName {function: value,name,- prefix: libjs_abi::FunctionNamePrefix::None as u32,+ prefix: libjs_abi::FunctionNamePrefix::None as u8,});value}@@ -1266,7 +1266,7 @@ impl Generator<'_> {libjs_abi::IteratorHint::Async} else {libjs_abi::IteratorHint::Sync- } as u32,+ } as u8,fast_array_mode_allowed: !is_await,cache,});@@ -1391,7 +1391,7 @@ impl Generator<'_> {iterator_object: iterator.object,iterator_next: iterator.next,iterator_done: iterator.done,- completion_type: libjs_abi::CompletionType::Throw as u32,+ completion_type: libjs_abi::CompletionType::Throw as u8,completion_value: error,cache,});@@ -1876,7 +1876,7 @@ impl Generator<'_> {dst_iterator_next: next,dst_iterator_done: done,iterable: value,- hint: libjs_abi::IteratorHint::Sync as u32,+ hint: libjs_abi::IteratorHint::Sync as u8,fast_array_mode_allowed: true,cache,});@@ -1990,7 +1990,7 @@ impl Generator<'_> {iterator_object: object,iterator_next: next,iterator_done: done,- completion_type: libjs_abi::CompletionType::Normal as u32,+ completion_type: libjs_abi::CompletionType::Normal as u8,completion_value: undefined,cache,});diff --git a/Libraries/LibJS/Rust/src/bytecode/codegen/context.rs b/Libraries/LibJS/Rust/src/bytecode/codegen/context.rsindex 42b24e73276..d2bcdf4d64e 100644--- a/Libraries/LibJS/Rust/src/bytecode/codegen/context.rs+++ b/Libraries/LibJS/Rust/src/bytecode/codegen/context.rs@@ -47,7 +47,7 @@ pub(super) const MAXIMUM_SPARE_CAPACITY: usize = 1024;/// it, which only merges their feedback.const MAX_FEEDBACK_SLOT_COUNT: u32 = u16::MAX as u32 + 1;-const ENVIRONMENT_MODE_LEXICAL: u32 = libjs_abi::EnvironmentMode::Lexical as u32;+const ENVIRONMENT_MODE_LEXICAL: u8 = libjs_abi::EnvironmentMode::Lexical as u8;/// Everything of a compile that has memory of its own, which stays around for the next compile on the thread. It resets/// by clearing and by moving on to a new generation, never by allocating anew.diff --git a/Libraries/LibJS/Rust/src/bytecode/codegen/generators.rs b/Libraries/LibJS/Rust/src/bytecode/codegen/generators.rsindex bec3755a580..e7a32ed03b8 100644--- a/Libraries/LibJS/Rust/src/bytecode/codegen/generators.rs+++ b/Libraries/LibJS/Rust/src/bytecode/codegen/generators.rs@@ -118,7 +118,7 @@ pub(super) fn generate_yield_of_value(let normal_block = generator.new_label();let throw_cont = generator.new_label();let type_is_normal = generator.allocate_register();- let normal_type = generator.add_constant_number(f64::from(CompletionType::Normal as u32));+ let normal_type = generator.add_constant_number(f64::from(CompletionType::Normal as u8));let arith_feedback = generator.next_arith_feedback();generator.emit(op::StrictlyEquals {arith_feedback,@@ -133,7 +133,7 @@ pub(super) fn generate_yield_of_value(generator.bind_reachable_label(throw_cont);let type_is_throw = generator.allocate_register();- let throw_type = generator.add_constant_number(f64::from(CompletionType::Throw as u32));+ let throw_type = generator.add_constant_number(f64::from(CompletionType::Throw as u8));let arith_feedback = generator.next_arith_feedback();generator.emit(op::StrictlyEquals {arith_feedback,@@ -184,7 +184,7 @@ pub(super) fn generate_await_with_completions(let normal_block = generator.new_label();let throw_block = generator.new_label();let is_normal = generator.allocate_register();- let normal_type = generator.add_constant_number(f64::from(CompletionType::Normal as u32));+ let normal_type = generator.add_constant_number(f64::from(CompletionType::Normal as u8));let arith_feedback = generator.next_arith_feedback();generator.emit(op::StrictlyEquals {arith_feedback,@@ -226,7 +226,7 @@ fn generate_yield_from(IteratorHint::Async} else {IteratorHint::Sync- } as u32;+ } as u8;let cache = generator.next_property_lookup_cache();generator.emit(op::GetIterator {dst_iterator_object: iterator.operand(),@@ -240,7 +240,7 @@ fn generate_yield_from(});// 6. Let received be NormalCompletion(undefined).- let normal_const = generator.add_constant_number(f64::from(CompletionType::Normal as u32));+ let normal_const = generator.add_constant_number(f64::from(CompletionType::Normal as u8));generator.emit_mov(received_completion_type, &normal_const);let undef = generator.add_constant_undefined();generator.emit_mov(received_completion_value, &undef);@@ -344,7 +344,7 @@ fn generate_yield_from(generator.bind_reachable_label(is_type_throw_block);let type_is_throw_block = generator.new_label();let type_is_return_block = generator.new_label();- let throw_const = generator.add_constant_number(f64::from(CompletionType::Throw as u32));+ let throw_const = generator.add_constant_number(f64::from(CompletionType::Throw as u8));let is_throw = generator.allocate_register();let arith_feedback = generator.next_arith_feedback();generator.emit(op::StrictlyEquals {@@ -499,7 +499,7 @@ fn generate_yield_from(iterator_object: iterator.operand(),iterator_next: next_method.operand(),iterator_done: iterator_done_property.operand(),- completion_type: CompletionType::Normal as u32,+ completion_type: CompletionType::Normal as u8,completion_value: undef.operand(),cache,});@@ -709,7 +709,7 @@ fn generate_yield(// If resumptionValue.[[Type]] is not return, jump to continuation.let return_block = generator.new_label();let is_not_return = generator.allocate_register();- let return_type = generator.add_constant_number(f64::from(CompletionType::Return as u32));+ let return_type = generator.add_constant_number(f64::from(CompletionType::Return as u8));let arith_feedback = generator.next_arith_feedback();generator.emit(op::StrictlyInequals {arith_feedback,@@ -732,7 +732,7 @@ fn generate_yield(// If awaited.[[Type]] is throw, jump to continuation.let awaited_normal_block = generator.new_label();let is_throw = generator.allocate_register();- let throw_type = generator.add_constant_number(f64::from(CompletionType::Throw as u32));+ let throw_type = generator.add_constant_number(f64::from(CompletionType::Throw as u8));let arith_feedback = generator.next_arith_feedback();generator.emit(op::StrictlyEquals {arith_feedback,@@ -746,7 +746,7 @@ fn generate_yield(generator.bind_reachable_label(awaited_normal_block);generator.emit(op::SetCompletionType {completion: received_completion.operand(),- completion_type: CompletionType::Return as u32,+ completion_type: CompletionType::Return as u8,});generator.emit(op::Jump {target: continuation_label,@@ -785,7 +785,7 @@ pub(super) fn emit_dispose_resources(let await_completion_value = generator.allocate_register();let done = generator.allocate_register();let awaited_value = generator.allocate_register();- let normal_type = generator.add_constant_number(f64::from(CompletionType::Normal as u32));+ let normal_type = generator.add_constant_number(f64::from(CompletionType::Normal as u8));let undefined = generator.add_constant_undefined();generator.emit_mov(&await_completion_type, &normal_type);generator.emit_mov(&await_completion_value, &undefined);diff --git a/Libraries/LibJS/Rust/src/bytecode/codegen/members.rs b/Libraries/LibJS/Rust/src/bytecode/codegen/members.rsindex d4ade8fbd01..943f1a735c0 100644--- a/Libraries/LibJS/Rust/src/bytecode/codegen/members.rs+++ b/Libraries/LibJS/Rust/src/bytecode/codegen/members.rs@@ -189,7 +189,7 @@ pub(super) fn emit_put_normal_by_value(property: key,src: src.operand(),cache,- kind: PutKind::Normal as u32,+ kind: PutKind::Normal as u8,});return;}@@ -200,7 +200,7 @@ pub(super) fn emit_put_normal_by_value(base: base.operand(),property: property.operand(),src: src.operand(),- kind: PutKind::Normal as u32,+ kind: PutKind::Normal as u8,cache,});}@@ -221,7 +221,7 @@ pub(super) fn emit_put_normal_by_value_with_this(property: key,src: src.operand(),cache,- kind: PutKind::Normal as u32,+ kind: PutKind::Normal as u8,});return;}@@ -230,7 +230,7 @@ pub(super) fn emit_put_normal_by_value_with_this(property: property.operand(),this_value: this_value.operand(),src: src.operand(),- kind: PutKind::Normal as u32,+ kind: PutKind::Normal as u8,});}@@ -249,7 +249,7 @@ pub(super) fn emit_put_by_value(property: key,src: src.operand(),cache,- kind: kind as u32,+ kind: kind as u8,});return;}@@ -260,7 +260,7 @@ pub(super) fn emit_put_by_value(base: base.operand(),property: property.operand(),src: src.operand(),- kind: kind as u32,+ kind: kind as u8,cache,});}diff --git a/Libraries/LibJS/Rust/src/bytecode/codegen/scope.rs b/Libraries/LibJS/Rust/src/bytecode/codegen/scope.rsindex cd3157f2086..5472e11d598 100644--- a/Libraries/LibJS/Rust/src/bytecode/codegen/scope.rs+++ b/Libraries/LibJS/Rust/src/bytecode/codegen/scope.rs@@ -700,7 +700,7 @@ impl Generator<'_> {let is_const = binding.kind == BindingKind::Const;generator.emit(op::CreateVariable {identifier,- mode: libjs_abi::EnvironmentMode::Lexical as u32,+ mode: libjs_abi::EnvironmentMode::Lexical as u8,is_immutable: is_const,is_global: false,is_strict: is_const,@@ -797,7 +797,7 @@ impl Generator<'_> {let value = initial_value(generator);generator.emit(op::CreateVariable {identifier,- mode: libjs_abi::EnvironmentMode::Var as u32,+ mode: libjs_abi::EnvironmentMode::Var as u8,is_immutable: false,is_global: false,is_strict: false,@@ -856,7 +856,7 @@ impl Generator<'_> {let identifier = generator.intern_identifier(name);generator.emit(op::CreateVariable {identifier,- mode: libjs_abi::EnvironmentMode::Lexical as u32,+ mode: libjs_abi::EnvironmentMode::Lexical as u8,is_immutable: is_const,is_global: false,is_strict: is_const,@@ -983,7 +983,7 @@ impl Generator<'_> {} else {generator.emit(op::CreateVariable {identifier,- mode: libjs_abi::EnvironmentMode::Lexical as u32,+ mode: libjs_abi::EnvironmentMode::Lexical as u8,is_immutable: false,is_global: false,is_strict: false,@@ -1062,7 +1062,7 @@ impl Generator<'_> {}generator.emit(op::CreateVariable {identifier,- mode: libjs_abi::EnvironmentMode::Lexical as u32,+ mode: libjs_abi::EnvironmentMode::Lexical as u8,is_immutable: false,is_global: false,is_strict: false,@@ -1110,7 +1110,7 @@ impl Generator<'_> {let identifier = generator.intern_identifier(name);generator.emit(op::CreateVariable {identifier,- mode: libjs_abi::EnvironmentMode::Lexical as u32,+ mode: libjs_abi::EnvironmentMode::Lexical as u8,is_immutable: false,is_global: false,is_strict: false,@@ -1186,7 +1186,7 @@ impl Generator<'_> {self.in_head(|generator| {generator.emit(op::CreateArguments {dst,- kind: kind as u32,+ kind: kind as u8,is_immutable: is_strict,creates_parameter_bindings: creates_bindings,});@@ -1313,7 +1313,7 @@ impl Generator<'_> {let identifier = generator.intern_identifier(name);generator.emit(op::CreateVariable {identifier,- mode: libjs_abi::EnvironmentMode::Lexical as u32,+ mode: libjs_abi::EnvironmentMode::Lexical as u8,is_immutable: is_const,is_global: false,is_strict: is_const,@@ -1646,7 +1646,7 @@ impl Generator<'_> {let identifier = self.intern_identifier(name);self.emit(op::CreateVariable {identifier,- mode: libjs_abi::EnvironmentMode::Lexical as u32,+ mode: libjs_abi::EnvironmentMode::Lexical as u8,is_immutable: true,is_global: false,is_strict: false,@@ -1833,7 +1833,7 @@ impl Generator<'_> {let identifier = self.intern_identifier(name);self.emit(op::CreateVariable {identifier,- mode: libjs_abi::EnvironmentMode::Lexical as u32,+ mode: libjs_abi::EnvironmentMode::Lexical as u8,is_immutable: true,is_global: false,is_strict: true,diff --git a/Libraries/LibJS/Rust/src/bytecode/codegen/stream.rs b/Libraries/LibJS/Rust/src/bytecode/codegen/stream.rsindex 7c313d5feb9..0e036708000 100644--- a/Libraries/LibJS/Rust/src/bytecode/codegen/stream.rs+++ b/Libraries/LibJS/Rust/src/bytecode/codegen/stream.rs@@ -1423,7 +1423,7 @@ impl Generator<'_> {iterator_object: iterator.object,iterator_next: iterator.next,iterator_done: iterator.done,- completion_type: libjs_abi::CompletionType::Normal as u32,+ completion_type: libjs_abi::CompletionType::Normal as u8,completion_value: undefined,cache,});@@ -3087,7 +3087,7 @@ impl Generator<'_> {property: key,src: value,cache,- kind: libjs_abi::PutKind::Normal as u32,+ kind: libjs_abi::PutKind::Normal as u8,});}ValKind::IndexTarget => {@@ -3114,7 +3114,7 @@ impl Generator<'_> {property: key,src: value.operand(),cache,- kind: libjs_abi::PutKind::Normal as u32,+ kind: libjs_abi::PutKind::Normal as u8,});}}@@ -3537,7 +3537,7 @@ impl Generator<'_> {property: key,src: value,cache,- kind: libjs_abi::PutKind::Own as u32,+ kind: libjs_abi::PutKind::Own as u8,});}self.release_temporaries_from(dst.index() + 1);@@ -3559,7 +3559,7 @@ impl Generator<'_> {property: key,src: value,cache,- kind: kind as u32,+ kind: kind as u8,});self.release_temporaries_from(object.index() + 1);}@@ -3595,7 +3595,7 @@ impl Generator<'_> {self.put(op::SetFunctionName {function: value,name: key,- prefix: prefix as u32,+ prefix: prefix as u8,});emit_put_by_value(self,@@ -3622,7 +3622,7 @@ impl Generator<'_> {self.put(op::SetFunctionName {function: value,name: key,- prefix: FunctionNamePrefix::None as u32,+ prefix: FunctionNamePrefix::None as u8,});}let object = *self.context.stream.values.last().expect("an object is being built");diff --git a/Libraries/LibJS/Rust/src/bytecode/dump.rs b/Libraries/LibJS/Rust/src/bytecode/dump.rsindex e1fbcf81c35..3eef7aa34f7 100644--- a/Libraries/LibJS/Rust/src/bytecode/dump.rs+++ b/Libraries/LibJS/Rust/src/bytecode/dump.rs@@ -319,7 +319,7 @@ impl BytecodeDumper<'_> {self.append(&value.to_string());}- pub fn append_put_kind(&mut self, name: &str, value: u32) {+ pub fn append_put_kind(&mut self, name: &str, value: u8) {let kind = match value {0 => "Normal",1 => "Getter",diff --git a/Libraries/LibJS/Rust/src/interpreter/slow_paths/bindings.rs b/Libraries/LibJS/Rust/src/interpreter/slow_paths/bindings.rsindex f3682e4946f..f4138499581 100644--- a/Libraries/LibJS/Rust/src/interpreter/slow_paths/bindings.rs+++ b/Libraries/LibJS/Rust/src/interpreter/slow_paths/bindings.rs@@ -252,7 +252,7 @@ fn get_identifier(vm: &Vm, index: IdentifierTableIndex) -> Utf16FlyString {current_executable(vm).identifier_table()[index.index()].clone()}-fn environment_mode_of(raw_mode: u32) -> EnvironmentMode {+fn environment_mode_of(raw_mode: u8) -> EnvironmentMode {match raw_mode {0 => EnvironmentMode::Lexical,1 => EnvironmentMode::Var,diff --git a/Libraries/LibJS/Rust/src/interpreter/slow_paths/calls.rs b/Libraries/LibJS/Rust/src/interpreter/slow_paths/calls.rsindex aa09d5418bd..b1689f74511 100644--- a/Libraries/LibJS/Rust/src/interpreter/slow_paths/calls.rs+++ b/Libraries/LibJS/Rust/src/interpreter/slow_paths/calls.rs@@ -834,11 +834,11 @@ pub fn try_inline_call(vm: &Vm, pc: u32, instruction: &op::Call, values: &op::Ca.is_some()}-fn function_name_prefix_of(raw_prefix: u32) -> FunctionNamePrefix {+fn function_name_prefix_of(raw_prefix: u8) -> FunctionNamePrefix {match raw_prefix {- prefix if prefix == FunctionNamePrefix::None as u32 => FunctionNamePrefix::None,- prefix if prefix == FunctionNamePrefix::Get as u32 => FunctionNamePrefix::Get,- prefix if prefix == FunctionNamePrefix::Set as u32 => FunctionNamePrefix::Set,+ prefix if prefix == FunctionNamePrefix::None as u8 => FunctionNamePrefix::None,+ prefix if prefix == FunctionNamePrefix::Get as u8 => FunctionNamePrefix::Get,+ prefix if prefix == FunctionNamePrefix::Set as u8 => FunctionNamePrefix::Set,_ => unreachable!("{raw_prefix} is not a function name prefix"),}}@@ -911,7 +911,7 @@ pub fn create_arguments(.expect("a function runs in an environment");let passed_arguments = &arguments[..context.passed_argument_count.get() as usize];- let arguments_object = if instruction.kind == ArgumentsKind::Mapped as u32 {+ let arguments_object = if instruction.kind == ArgumentsKind::Mapped as u8 {let ecmascript_function =as_ecmascript_function_object(function).expect("only ECMAScript functions have mapped arguments objects");// NB: The bytecode leaves creating the bindings of the parameters that a mapped arguments object aliases to it,diff --git a/Libraries/LibJS/Rust/src/interpreter/slow_paths/property_access.rs b/Libraries/LibJS/Rust/src/interpreter/slow_paths/property_access.rsindex 3652436ac3e..6359cbe53d4 100644--- a/Libraries/LibJS/Rust/src/interpreter/slow_paths/property_access.rs+++ b/Libraries/LibJS/Rust/src/interpreter/slow_paths/property_access.rs@@ -49,7 +49,7 @@ use crate::runtime::reference::Reference;use crate::runtime::shape::ShapeKey;use crate::runtime::typed_array::{Kind, is_valid_integer_index, typed_array_of_object};-pub(crate) fn put_kind_from_operand(kind: u32) -> PutKind {+pub(crate) fn put_kind_from_operand(kind: u8) -> PutKind {match kind {0 => PutKind::Normal,1 => PutKind::Getter,diff --git a/Libraries/LibJS/Rust/src/runtime/completion.rs b/Libraries/LibJS/Rust/src/runtime/completion.rsindex d392a83958f..356c88fb89c 100644--- a/Libraries/LibJS/Rust/src/runtime/completion.rs+++ b/Libraries/LibJS/Rust/src/runtime/completion.rs@@ -51,7 +51,7 @@ impl<T> Must<T> for ThrowCompletionOr<T> {pub use libjs_abi::CompletionType;/// The [[Type]] of a completion as the bytecode encodes it, in the operands of IteratorClose and SetCompletionType.-pub fn completion_type_from_bytecode(encoded: u32) -> CompletionType {+pub fn completion_type_from_bytecode(encoded: u8) -> CompletionType {match encoded {0 => CompletionType::Empty,1 => CompletionType::Normal,diff --git a/Libraries/LibJS/Rust/src/runtime/iterator.rs b/Libraries/LibJS/Rust/src/runtime/iterator.rsindex 2ebb14cf2b2..9e6ee3b31e5 100644--- a/Libraries/LibJS/Rust/src/runtime/iterator.rs+++ b/Libraries/LibJS/Rust/src/runtime/iterator.rs@@ -36,7 +36,7 @@ use crate::runtime::realm_watchpoints;pub use libjs_abi::IteratorHint;/// The hint of a GetIterator instruction, as the bytecode encodes it.-pub fn iterator_hint_from_bytecode(encoded: u32) -> IteratorHint {+pub fn iterator_hint_from_bytecode(encoded: u8) -> IteratorHint {match encoded {0 => IteratorHint::Sync,1 => IteratorHint::Async,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.txtindex a1734c826b6..72a25aed330 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@@ -12,7 +12,7 @@ block0:[ 16] End value:reg5-f$36ab9656 annexb-var-coordinate-with-default-param.js:3:12+f$ceb84148 annexb-var-coordinate-with-default-param.js:3:12Registers: 7Blocks: 3Locals: g~0, g~1@@ -24,23 +24,23 @@ f$36ab9656 annexb-var-coordinate-with-default-param.js:3:12block0:[ 0] Enter[ 1] CreateVariable `x`, is_immutable:false, is_global:false, is_strict:false- [ c] GetLexicalEnvironment dst:reg4- [ e] JumpUndefined condition:arg0, true_target:block1, false_target:block2+ [ 9] GetLexicalEnvironment dst:reg4+ [ b] JumpUndefined condition:arg0, true_target:block1, false_target:block2block1:- [ 18] Mov dst:arg0, src:Int32(1)+ [ 15] Mov dst:arg0, src:Int32(1)block2:- [ 1b] InitializeLexicalBinding `x`, src:arg0- [ 28] CreateVariableEnvironment capacity:1- [ 2d] GetLexicalEnvironment dst:reg5- [ 2f] Mov dst:g~0, src:Undefined- [ 32] CreateVariable `y`, is_immutable:false, is_global:false, is_strict:false- [ 3d] InitializeLexicalBinding `y`, src:Int32(2)- [ 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- [ 60] Return value:reg6+ [ 18] InitializeLexicalBinding `x`, src:arg0+ [ 25] CreateVariableEnvironment capacity:1+ [ 2a] GetLexicalEnvironment dst:reg5+ [ 2c] Mov dst:g~0, src:Undefined+ [ 2f] CreateVariable `y`, is_immutable:false, is_global:false, is_strict:false+ [ 37] InitializeLexicalBinding `y`, src:Int32(2)+ [ 44] NewFunction dst:g~1, shared_function_data_index:0+ [ 4e] Mov dst:g~0, src:g~1+ [ 51] Call value_feedback:0, call_feedback:0, dst:reg6, callee:g~0, this_value:Undefined+ [ 5a] Return value:reg6g$66f9ea5f annexb-var-coordinate-with-default-param.js:7:13diff --git a/Tests/LibJS/Bytecode/expected/async-generator-yield-await.txt b/Tests/LibJS/Bytecode/expected/async-generator-yield-await.txtindex 8b9d7d7c792..c48559ed196 100644--- a/Tests/LibJS/Bytecode/expected/async-generator-yield-await.txt+++ b/Tests/LibJS/Bytecode/expected/async-generator-yield-await.txt@@ -13,7 +13,7 @@ block0:[ 17] End value:reg5-f$a950b829 async-generator-yield-await.js:4:5+f$f97cf73a async-generator-yield-await.js:4:5Registers: 15Blocks: 19Constants:@@ -76,24 +76,24 @@ block12:block13:[ a8] SetCompletionType completion:reg6- [ ae] Jump target:block14+ [ ab] Jump target:block14block14:- [ b3] Mov dst:reg6, src:reg0- [ b6] GetCompletionFields type_dst:reg7, value_dst:reg8, completion:reg6- [ ba] StrictlyEqualsRhsInt32 arith_feedback:5, dst:reg13, lhs:reg7, rhs:1- [ c3] JumpIf condition:reg13, true_target:block18, false_target:block15+ [ b0] Mov dst:reg6, src:reg0+ [ b3] GetCompletionFields type_dst:reg7, value_dst:reg8, completion:reg6+ [ b7] StrictlyEqualsRhsInt32 arith_feedback:5, dst:reg13, lhs:reg7, rhs:1+ [ c0] JumpIf condition:reg13, true_target:block18, false_target:block15block15:- [ cd] StrictlyEqualsRhsInt32 arith_feedback:6, dst:reg14, lhs:reg7, rhs:5- [ d6] JumpIf condition:reg14, true_target:block16, false_target:block17+ [ ca] StrictlyEqualsRhsInt32 arith_feedback:6, dst:reg14, lhs:reg7, rhs:5+ [ d3] JumpIf condition:reg14, true_target:block16, false_target:block17block16:- [ e0] Throw src:reg8+ [ dd] Throw src:reg8block17:- [ e2] Yield value:reg8+ [ df] Yield value:reg8block18:- [ e9] Mov dst:reg5, src:reg8- [ ec] Yield value:Undefined+ [ e6] Mov dst:reg5, src:reg8+ [ e9] Yield value:Undefineddiff --git a/Tests/LibJS/Bytecode/expected/async-generator-yield.txt b/Tests/LibJS/Bytecode/expected/async-generator-yield.txtindex aa6db55987c..6c21c23b12d 100644--- a/Tests/LibJS/Bytecode/expected/async-generator-yield.txt+++ b/Tests/LibJS/Bytecode/expected/async-generator-yield.txt@@ -13,7 +13,7 @@ block0:[ 17] End value:reg5-f$719080a0 async-generator-yield.js:5:5+f$62153dd3 async-generator-yield.js:5:5Registers: 14Blocks: 16Constants:@@ -62,24 +62,24 @@ block9:block10:[ 80] SetCompletionType completion:reg5- [ 86] Jump target:block11+ [ 83] Jump target:block11block11:- [ 8b] Mov dst:reg5, src:reg0- [ 8e] GetCompletionFields type_dst:reg6, value_dst:reg7, completion:reg5- [ 92] StrictlyEqualsRhsInt32 arith_feedback:4, dst:reg12, lhs:reg6, rhs:1- [ 9b] JumpIf condition:reg12, true_target:block15, false_target:block12+ [ 88] Mov dst:reg5, src:reg0+ [ 8b] GetCompletionFields type_dst:reg6, value_dst:reg7, completion:reg5+ [ 8f] StrictlyEqualsRhsInt32 arith_feedback:4, dst:reg12, lhs:reg6, rhs:1+ [ 98] JumpIf condition:reg12, true_target:block15, false_target:block12block12:- [ a5] StrictlyEqualsRhsInt32 arith_feedback:5, dst:reg13, lhs:reg6, rhs:5- [ ae] JumpIf condition:reg13, true_target:block13, false_target:block14+ [ a2] StrictlyEqualsRhsInt32 arith_feedback:5, dst:reg13, lhs:reg6, rhs:5+ [ ab] JumpIf condition:reg13, true_target:block13, false_target:block14block13:- [ b8] Throw src:reg7+ [ b5] Throw src:reg7block14:- [ ba] Yield value:reg7+ [ b7] Yield value:reg7block15:- [ c1] Mov dst:reg5, src:reg7- [ c4] Yield value:Undefined+ [ be] Mov dst:reg5, src:reg7+ [ c1] Yield value:Undefineddiff --git a/Tests/LibJS/Bytecode/expected/block-scoping.txt b/Tests/LibJS/Bytecode/expected/block-scoping.txtindex 03580233c57..4b2479d6084 100644--- a/Tests/LibJS/Bytecode/expected/block-scoping.txt+++ b/Tests/LibJS/Bytecode/expected/block-scoping.txt@@ -20,7 +20,7 @@ block0:[ 62] End value:reg5-closureOverBlockScope$0dd45820 block-scoping.js:2:15+closureOverBlockScope$2f8ececa block-scoping.js:2:15Registers: 8Blocks: 1Locals: fns~0@@ -35,24 +35,24 @@ block0:[ 3] NewArray dst:fns~0[ 6] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false[ 12] CreateVariable `x`, is_immutable:false, is_global:false, is_strict:false- [ 1d] InitializeLexicalBinding `x`, src:Int32(1)- [ 2a] GetById value_feedback:0, dst:reg6, base:fns~0, `push`- [ 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+ [ 1a] InitializeLexicalBinding `x`, src:Int32(1)+ [ 27] GetById value_feedback:0, dst:reg6, base:fns~0, `push`+ [ 31] NewFunction dst:reg7, shared_function_data_index:0+ [ 3b] Call value_feedback:1, call_feedback:0, dst:reg6, callee:reg6, this_value:fns~0, arguments:[reg7]+ [ 45] SetLexicalEnvironment environment:reg4+ [ 47] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false+ [ 53] CreateVariable `y`, is_immutable:false, is_global:false, is_strict:false+ [ 5b] InitializeLexicalBinding `y`, src:Int32(2)+ [ 68] GetById value_feedback:2, dst:reg6, base:fns~0, `push`+ [ 72] NewFunction dst:reg7, shared_function_data_index:1+ [ 7c] Call value_feedback:3, call_feedback:1, dst:reg6, callee:reg6, this_value:fns~0, arguments:[reg7]+ [ 86] SetLexicalEnvironment environment:reg4+ [ 88] GetByValue value_feedback:4, keyed_feedback:0, dst:reg5, base:fns~0, property:Int32(0)+ [ 92] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg5, this_value:fns~0+ [ 9b] GetByValue value_feedback:6, keyed_feedback:1, dst:reg6, base:fns~0, property:Int32(1)+ [ a5] Call value_feedback:7, call_feedback:3, dst:reg6, callee:reg6, this_value:fns~0+ [ ae] Add arith_feedback:0, dst:reg5, lhs:reg5, rhs:reg6+ [ b4] Return value:reg5$ae3a72e0 block-scoping.js:5:18@@ -75,7 +75,7 @@ block0:[ 10] Return value:reg5-breakThroughBlockScopes$62dcd5a6 block-scoping.js:16:9+breakThroughBlockScopes$72581873 block-scoping.js:16:9Registers: 7Blocks: 6Locals: result~0, i~1, f~2@@ -93,26 +93,26 @@ block0:block1:[ e] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false[ 1a] CreateVariable `x`, is_immutable:false, is_global:false, is_strict:false- [ 25] InitializeLexicalBinding `x`, src:i~1- [ 32] NewFunction dst:f~2, shared_function_data_index:0 (f)- [ 3c] GetBinding value_feedback:0, dst:reg6, `x`- [ 4b] JumpGreaterThanRhsInt32 arith_feedback:0, lhs:reg6, rhs:1, true_target:block2, false_target:block3+ [ 22] InitializeLexicalBinding `x`, src:i~1+ [ 2f] NewFunction dst:f~2, shared_function_data_index:0 (f)+ [ 39] GetBinding value_feedback:0, dst:reg6, `x`+ [ 48] JumpGreaterThanRhsInt32 arith_feedback:0, lhs:reg6, rhs:1, true_target:block2, false_target:block3block2:- [ 5b] Mov dst:result~0, src:f~2- [ 5e] SetLexicalEnvironment environment:reg4- [ 60] Jump target:block5+ [ 58] Mov dst:result~0, src:f~2+ [ 5b] SetLexicalEnvironment environment:reg4+ [ 5d] Jump target:block5block3:- [ 65] SetLexicalEnvironment environment:reg4- [ 67] Increment arith_feedback:1, dst:i~1+ [ 62] SetLexicalEnvironment environment:reg4+ [ 64] Increment arith_feedback:1, dst:i~1block4:- [ 6b] JumpLessThanLoopRhsInt32 arith_feedback:2, lhs:i~1, rhs:3, true_target:block1, false_target:block5+ [ 68] JumpLessThanLoopRhsInt32 arith_feedback:2, lhs:i~1, rhs:3, true_target:block1, false_target:block5block5:- [ 7b] Call value_feedback:1, call_feedback:0, dst:reg5, callee:result~0, this_value:Undefined- [ 84] Return value:reg5+ [ 78] Call value_feedback:1, call_feedback:0, dst:reg5, callee:result~0, this_value:Undefined+ [ 81] Return value:reg5f$44bfa1d8 block-scoping.js:20:21diff --git a/Tests/LibJS/Bytecode/expected/captured-variables.txt b/Tests/LibJS/Bytecode/expected/captured-variables.txtindex 3aedbe2fdea..f9c48b7518d 100644--- a/Tests/LibJS/Bytecode/expected/captured-variables.txt+++ b/Tests/LibJS/Bytecode/expected/captured-variables.txt@@ -12,7 +12,7 @@ block0:[ 16] End value:reg5-outer$f29b7031 captured-variables.js:5:9+outer$079e951e captured-variables.js:5:9Registers: 6Blocks: 1Locals: inner~0@@ -23,11 +23,11 @@ outer$f29b7031 captured-variables.js:5:9block0:[ 0] Enter[ 1] CreateVariable `captured`, is_immutable:false, is_global:false, is_strict:false- [ c] Mov dst:inner~0, src:Undefined- [ 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- [ 2f] Return value:reg5+ [ 9] Mov dst:inner~0, src:Undefined+ [ c] NewFunction dst:inner~0, shared_function_data_index:0+ [ 16] InitializeLexicalBinding `captured`, src:Int32(1)+ [ 23] Call value_feedback:0, call_feedback:0, dst:reg5, callee:inner~0, this_value:Undefined+ [ 2c] Return value:reg5inner$878e6817 captured-variables.js:7:9diff --git a/Tests/LibJS/Bytecode/expected/class-computed-field-lhs-name.txt b/Tests/LibJS/Bytecode/expected/class-computed-field-lhs-name.txtindex 07ba30fe3a9..2e8c2295d49 100644--- a/Tests/LibJS/Bytecode/expected/class-computed-field-lhs-name.txt+++ b/Tests/LibJS/Bytecode/expected/class-computed-field-lhs-name.txt@@ -29,7 +29,7 @@ block0:[ 1] End value:Undefined-field$84d5cf2c class-computed-field-lhs-name.js:2:15+field$945111f9 class-computed-field-lhs-name.js:2:15Registers: 7Blocks: 1@@ -38,4 +38,4 @@ block0:[ 1] GetClassFieldInitializerName dst:reg5[ 3] NewFunction dst:reg6, shared_function_data_index:0[ d] SetFunctionName function:reg6, name:reg5- [ 14] Return value:reg6+ [ 11] Return value:reg6diff --git a/Tests/LibJS/Bytecode/expected/class-computed-key.txt b/Tests/LibJS/Bytecode/expected/class-computed-key.txtindex 3f11213e8e4..3b672153cf2 100644--- a/Tests/LibJS/Bytecode/expected/class-computed-key.txt+++ b/Tests/LibJS/Bytecode/expected/class-computed-key.txt@@ -12,7 +12,7 @@ block0:[ 16] End value:reg5-f$26d25c0e class-computed-key.js:4:5+f$364d9edb class-computed-key.js:4:5Registers: 9Blocks: 1@@ -21,9 +21,9 @@ block0:[ 1] GetLexicalEnvironment dst:reg4[ 3] CreateLexicalEnvironment dst:reg6, parent:reg4, capacity:0, is_catch_environment:false[ f] CreateVariable ``, is_immutable:true, is_global:false, is_strict:true- [ 1a] GetGlobal value_feedback:0, dst:reg7, `Symbol`- [ 23] GetById value_feedback:1, dst:reg7, base:reg7, `iterator`- [ 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+ [ 17] GetGlobal value_feedback:0, dst:reg7, `Symbol`+ [ 20] GetById value_feedback:1, dst:reg7, base:reg7, `iterator`+ [ 2a] ToPrimitiveWithStringHint dst:reg8, value:reg7+ [ 2d] SetLexicalEnvironment environment:reg4+ [ 2f] NewClass dst:reg5, class_environment:reg6, class_blueprint_index:0, element_keys_are_in_array:false, element_keys:[element_keys:reg8]+ [ 3f] Return value:reg5diff --git a/Tests/LibJS/Bytecode/expected/class-environment.txt b/Tests/LibJS/Bytecode/expected/class-environment.txtindex c0860cc1f1c..f4570663e5f 100644--- a/Tests/LibJS/Bytecode/expected/class-environment.txt+++ b/Tests/LibJS/Bytecode/expected/class-environment.txt@@ -15,7 +15,7 @@ block0:[ 33] End value:reg5-classWithName$8322362f class-environment.js:2:9+classWithName$6e1f1142 class-environment.js:2:9Registers: 7Blocks: 1Locals: C~0@@ -27,14 +27,14 @@ block0:[ 1] GetLexicalEnvironment dst:reg4[ 3] CreateLexicalEnvironment dst:reg6, parent:reg4, capacity:1, is_catch_environment:false[ f] CreateVariable `Foo`, is_immutable:true, is_global:false, is_strict:true- [ 1a] SetLexicalEnvironment environment:reg4- [ 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- [ 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+ [ 17] SetLexicalEnvironment environment:reg4+ [ 19] NewClass dst:reg5, class_environment:reg6, class_blueprint_index:0, element_keys_are_in_array:false, element_keys:[element_keys:String("method")]+ [ 29] Mov dst:C~0, src:reg5+ [ 2c] CallConstruct value_feedback:0, call_feedback:0, dst:reg5, callee:C~0+ [ 34] GetById value_feedback:1, dst:reg6, base:reg5, `method`+ [ 3e] Call value_feedback:2, call_feedback:1, dst:reg5, callee:reg6, this_value:reg5+ [ 47] StrictlyEquals arith_feedback:0, dst:reg5, lhs:reg5, rhs:C~0+ [ 4d] Return value:reg5Foo$e166dc90diff --git a/Tests/LibJS/Bytecode/expected/class-literal-fields.txt b/Tests/LibJS/Bytecode/expected/class-literal-fields.txtindex e7f155c60d4..2fd6f1b4aee 100644--- a/Tests/LibJS/Bytecode/expected/class-literal-fields.txt+++ b/Tests/LibJS/Bytecode/expected/class-literal-fields.txt@@ -28,7 +28,7 @@ block0:[ b1] End value:reg5-test$764e6f3c class-literal-fields.js:2:5+test$f10c2211 class-literal-fields.js:2:5Registers: 7Blocks: 1Locals: A~0@@ -45,12 +45,12 @@ block0:[ 1] GetLexicalEnvironment dst:reg4[ 3] CreateLexicalEnvironment dst:reg6, parent:reg4, capacity:1, is_catch_environment:false[ f] CreateVariable `A`, is_immutable:true, is_global:false, is_strict:true- [ 1a] SetLexicalEnvironment environment:reg4- [ 1c] NewClass dst:reg5, class_environment:reg6, class_blueprint_index:0, element_keys_are_in_array:false, element_keys:[element_keys:String("x"), element_keys:String("y"), element_keys:String("z"), element_keys:String("w"), element_keys:String("s"), element_keys:String("computed")]- [ 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- [ 3e] Return value:reg5+ [ 17] SetLexicalEnvironment environment:reg4+ [ 19] NewClass dst:reg5, class_environment:reg6, class_blueprint_index:0, element_keys_are_in_array:false, element_keys:[element_keys:String("x"), element_keys:String("y"), element_keys:String("z"), element_keys:String("w"), element_keys:String("s"), element_keys:String("computed")]+ [ 2e] Mov dst:A~0, src:reg5+ [ 31] ThrowIfTDZ src:A~0+ [ 33] CallConstruct value_feedback:0, call_feedback:0, dst:reg5, callee:A~0+ [ 3b] Return value:reg5A$5e284e97diff --git a/Tests/LibJS/Bytecode/expected/computed-compound-assign-register-reuse.txt b/Tests/LibJS/Bytecode/expected/computed-compound-assign-register-reuse.txtindex 1a16726c803..2844721c0c7 100644--- a/Tests/LibJS/Bytecode/expected/computed-compound-assign-register-reuse.txt+++ b/Tests/LibJS/Bytecode/expected/computed-compound-assign-register-reuse.txt@@ -14,7 +14,7 @@ block0:[ 44] End value:reg5-subVector$82770027 computed-compound-assign-register-reuse.js:5:13+subVector$a16d85c1 computed-compound-assign-register-reuse.js:5:13Registers: 8Blocks: 1Constants:@@ -28,8 +28,8 @@ block0:[ 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+ [ 24] GetByValue value_feedback:2, keyed_feedback:3, dst:reg5, base:arg0, property:Int32(1)+ [ 2e] GetByValue value_feedback:3, keyed_feedback:4, dst:reg6, base:arg1, property:Int32(1)+ [ 38] Sub arith_feedback:1, dst:reg7, lhs:reg5, rhs:reg6+ [ 3e] PutByValue keyed_feedback:5, base:arg0, property:Int32(1), src:reg7, kind:Normal+ [ 47] End value:Undefineddiff --git a/Tests/LibJS/Bytecode/expected/computed-member-compound-assign.txt b/Tests/LibJS/Bytecode/expected/computed-member-compound-assign.txtindex 0843019757e..bb8b62b477e 100644--- a/Tests/LibJS/Bytecode/expected/computed-member-compound-assign.txt+++ b/Tests/LibJS/Bytecode/expected/computed-member-compound-assign.txt@@ -20,7 +20,7 @@ block0:[ 46] End value:reg5-compound_computed$5831f794 computed-member-compound-assign.js:7:14+compound_computed$48b6b4c7 computed-member-compound-assign.js:7:14Registers: 8Blocks: 1Constants:@@ -33,10 +33,10 @@ block0:[ 6] GetByValue value_feedback:0, keyed_feedback:0, dst:reg6, base:arg0, property:reg5[ 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+ [ 22] End value:Undefined-compound_then_assign$2ba40637 computed-member-compound-assign.js:11:13+compound_then_assign$cec07569 computed-member-compound-assign.js:11:13Registers: 8Blocks: 1Constants:@@ -49,5 +49,5 @@ block0:[ 6] GetByValue value_feedback:0, keyed_feedback:0, dst:reg6, base:arg0, property:reg5[ 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+ [ 22] PutByValue keyed_feedback:2, base:arg0, property:arg1, src:arg1, kind:Normal+ [ 2b] End value:Undefineddiff --git a/Tests/LibJS/Bytecode/expected/computed-string-object-literal.txt b/Tests/LibJS/Bytecode/expected/computed-string-object-literal.txtindex 2971268dcc2..51c111723ca 100644--- a/Tests/LibJS/Bytecode/expected/computed-string-object-literal.txt+++ b/Tests/LibJS/Bytecode/expected/computed-string-object-literal.txt@@ -17,7 +17,7 @@ block0:[ 3b] End value:reg5-simple_computed$901da57d computed-string-object-literal.js:6:5+simple_computed$e049e48e computed-string-object-literal.js:6:5Registers: 6Blocks: 1Constants:@@ -27,10 +27,10 @@ block0:[ 0] Enter[ 1] NewObject dst:reg5[ 5] PutById base:reg5, `x`, src:Int32(1), kind:Own- [ 11] Return value:reg5+ [ e] Return value:reg5-mixed$44022feb computed-string-object-literal.js:9:5+mixed$e45aae0d computed-string-object-literal.js:9:5Registers: 6Blocks: 1Constants:@@ -41,11 +41,11 @@ block0:[ 0] Enter[ 1] NewObject dst:reg5[ 5] PutById base:reg5, `a`, src:Int32(1), kind:Own- [ 11] PutById base:reg5, `b`, src:Int32(2), kind:Own- [ 1d] Return value:reg5+ [ e] PutById base:reg5, `b`, src:Int32(2), kind:Own+ [ 17] Return value:reg5-dynamic$e92665d7 computed-string-object-literal.js:12:5+dynamic$58492a82 computed-string-object-literal.js:12:5Registers: 7Blocks: 1Constants:@@ -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- [ 14] Return value:reg5+ [ 11] Return value:reg5diff --git a/Tests/LibJS/Bytecode/expected/computed-string-to-ById.txt b/Tests/LibJS/Bytecode/expected/computed-string-to-ById.txtindex 8c1781ae417..321397d7b81 100644--- a/Tests/LibJS/Bytecode/expected/computed-string-to-ById.txt+++ b/Tests/LibJS/Bytecode/expected/computed-string-to-ById.txt@@ -32,7 +32,7 @@ block0:[ b] Return value:reg5-set_string_prop$9e469c98 computed-string-to-ById.js:8:16+set_string_prop$8ecb59cb computed-string-to-ById.js:8:16Registers: 5Blocks: 1Constants:@@ -42,7 +42,7 @@ set_string_prop$9e469c98 computed-string-to-ById.js:8:16block0:[ 0] Enter[ 1] PutById base:arg0, `hello`, src:Int32(42), kind:Normal- [ d] End value:Undefined+ [ a] End value:Undefinedget_index_prop$30a34e83 computed-string-to-ById.js:11:5diff --git a/Tests/LibJS/Bytecode/expected/computed-update-register-order.txt b/Tests/LibJS/Bytecode/expected/computed-update-register-order.txtindex 2062796db4c..cca630074cc 100644--- a/Tests/LibJS/Bytecode/expected/computed-update-register-order.txt+++ b/Tests/LibJS/Bytecode/expected/computed-update-register-order.txt@@ -13,7 +13,7 @@ block0:[ 3d] End value:reg5-test$8eb71266 computed-update-register-order.js:5:9+test$81ffc0a9 computed-update-register-order.js:5:9Registers: 7Blocks: 1Constants:@@ -25,9 +25,9 @@ block0:[ 1] GetByValue value_feedback:0, keyed_feedback:0, dst:reg5, base:arg0, property:Int32(3)[ 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+ [ 19] GetGlobal value_feedback:1, dst:reg5, `foo`+ [ 22] Call value_feedback:2, call_feedback:0, dst:reg5, callee:reg5, this_value:Undefined, arguments:[arg0]+ [ 2c] End value:Undefinedfoo$0284f477 computed-update-register-order.js:2:5diff --git a/Tests/LibJS/Bytecode/expected/delete-expression-register.txt b/Tests/LibJS/Bytecode/expected/delete-expression-register.txtindex 72c091bdda7..8af1e5e61fe 100644--- a/Tests/LibJS/Bytecode/expected/delete-expression-register.txt+++ b/Tests/LibJS/Bytecode/expected/delete-expression-register.txt@@ -13,7 +13,7 @@ block0:[ 17] End value:reg5-f$d1056351 delete-expression-register.js:2:9+f$eb906a5e delete-expression-register.js:2:9Registers: 7Blocks: 3Locals: arguments~0, x~1@@ -25,14 +25,14 @@ f$d1056351 delete-expression-register.js:2:9block0:[ 0] Enter[ 1] CreateArguments dst:arguments~0, is_immutable:false, creates_parameter_bindings:false- [ 9] Mov dst:x~1, src:Undefined- [ c] Mov dst:x~1, src:Bool(false)- [ f] Mov dst:reg5, src:x~1- [ 12] JumpTrue condition:reg5, target:block2+ [ 6] Mov dst:x~1, src:Undefined+ [ 9] Mov dst:x~1, src:Bool(false)+ [ c] Mov dst:reg5, src:x~1+ [ f] JumpTrue condition:reg5, target:block2block1:- [ 18] DeleteByValue dst:reg5, base:arguments~0, property:Int32(0)+ [ 15] DeleteByValue dst:reg5, base:arguments~0, property:Int32(0)block2:- [ 1c] Mov dst:x~1, src:reg5- [ 1f] Return value:x~1+ [ 19] Mov dst:x~1, src:reg5+ [ 1c] Return value:x~1diff --git a/Tests/LibJS/Bytecode/expected/delete-super-eval-order.txt b/Tests/LibJS/Bytecode/expected/delete-super-eval-order.txtindex 02fcb2518f4..7d4d9971f7d 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 @@-$1ee22cd3 delete-super-eval-order.js:4:1+$2e5d6fa0 delete-super-eval-order.js:4:1Registers: 8Blocks: 4Constants:@@ -12,29 +12,29 @@ block0:[ 3] Mov dst:reg5, src:Undefined[ 6] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false[ 12] CreateVariable `A`, is_immutable:true, is_global:false, is_strict:true- [ 1d] SetLexicalEnvironment environment:reg4- [ 1f] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false, element_keys:[element_keys:String("m")]- [ 2f] DynamicInitializeLexicalBinding `A`, src:reg6- [ 36] Mov dst:reg5, src:Undefined+ [ 1a] SetLexicalEnvironment environment:reg4+ [ 1c] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false, element_keys:[element_keys:String("m")]+ [ 2c] DynamicInitializeLexicalBinding `A`, src:reg6+ [ 33] Mov dst:reg5, src:Undefinedblock1:- [ 39] GetGlobal value_feedback:0, dst:reg6, `A`- [ 42] CallConstruct value_feedback:1, call_feedback:0, dst:reg6, callee:reg6- [ 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+ [ 36] GetGlobal value_feedback:0, dst:reg6, `A`+ [ 3f] CallConstruct value_feedback:1, call_feedback:0, dst:reg6, callee:reg6+ [ 47] GetById value_feedback:2, dst:reg7, base:reg6, `m`+ [ 51] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[String("x")]+ [ 5b] Jump target:block3block2:- [ 63] Catch value_feedback:4, dst:reg6- [ 67] SetLexicalEnvironment environment:reg4- [ 69] Mov dst:reg5, src:Undefined- [ 6c] Jump target:block3+ [ 60] Catch value_feedback:4, dst:reg6+ [ 64] SetLexicalEnvironment environment:reg4+ [ 66] Mov dst:reg5, src:Undefined+ [ 69] Jump target:block3block3:- [ 71] End value:reg5+ [ 6e] End value:reg5Exception handlers:- [ 39 .. 63] => handler block2+ [ 36 .. 60] => handler block2A$5e284e97diff --git a/Tests/LibJS/Bytecode/expected/delete-super-property.txt b/Tests/LibJS/Bytecode/expected/delete-super-property.txtindex ea0f03f1e0e..e1822fbafe6 100644--- a/Tests/LibJS/Bytecode/expected/delete-super-property.txt+++ b/Tests/LibJS/Bytecode/expected/delete-super-property.txt@@ -1,4 +1,4 @@-$b62a84ac delete-super-property.js:1:1+$e49c4d13 delete-super-property.js:1:1Registers: 8Blocks: 7Locals: e~0, e~1@@ -14,50 +14,50 @@ block0:[ 3] Mov dst:reg5, src:Undefined[ 6] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false[ 12] CreateVariable `A`, is_immutable:true, is_global:false, is_strict:true- [ 1d] SetLexicalEnvironment environment:reg4- [ 1f] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false, element_keys:[element_keys:String("foo"), element_keys:String("baz")]- [ 30] DynamicInitializeLexicalBinding `A`, src:reg6- [ 37] Mov dst:reg5, src:Undefined+ [ 1a] SetLexicalEnvironment environment:reg4+ [ 1c] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false, element_keys:[element_keys:String("foo"), element_keys:String("baz")]+ [ 2d] DynamicInitializeLexicalBinding `A`, src:reg6+ [ 34] Mov dst:reg5, src:Undefinedblock1:- [ 3a] GetGlobal value_feedback:0, dst:reg6, `A`- [ 43] CallConstruct value_feedback:1, call_feedback:0, dst:reg6, callee:reg6- [ 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+ [ 37] GetGlobal value_feedback:0, dst:reg6, `A`+ [ 40] CallConstruct value_feedback:1, call_feedback:0, dst:reg6, callee:reg6+ [ 48] GetById value_feedback:2, dst:reg7, base:reg6, `foo`+ [ 52] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6+ [ 5b] Jump target:block3block2:- [ 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+ [ 60] Catch value_feedback:4, dst:reg6+ [ 64] SetLexicalEnvironment environment:reg4+ [ 66] Mov dst:reg5, src:Undefined+ [ 69] Mov dst:e~0, src:<Empty>+ [ 6c] Mov dst:e~0, src:reg6+ [ 6f] Jump target:block3block3:- [ 77] Mov dst:reg5, src:Undefined+ [ 74] Mov dst:reg5, src:Undefinedblock4:- [ 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+ [ 77] GetGlobal value_feedback:5, dst:reg6, `A`+ [ 80] CallConstruct value_feedback:6, call_feedback:2, dst:reg6, callee:reg6+ [ 88] GetById value_feedback:7, dst:reg7, base:reg6, `baz`+ [ 92] Call value_feedback:8, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6+ [ 9b] Jump target:block6block5:- [ 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+ [ a0] Catch value_feedback:9, dst:reg6+ [ a4] SetLexicalEnvironment environment:reg4+ [ a6] Mov dst:reg5, src:Undefined+ [ a9] Mov dst:e~1, src:<Empty>+ [ ac] Mov dst:e~1, src:reg6+ [ af] Jump target:block6block6:- [ b7] End value:reg5+ [ b4] End value:reg5Exception handlers:- [ 3a .. 63] => handler block2- [ 7a .. a3] => handler block5+ [ 37 .. 60] => handler block2+ [ 77 .. a0] => handler block5A$5e284e97diff --git a/Tests/LibJS/Bytecode/expected/destructure-array-rest.txt b/Tests/LibJS/Bytecode/expected/destructure-array-rest.txtindex a373fd302af..948f464b018 100644--- a/Tests/LibJS/Bytecode/expected/destructure-array-rest.txt+++ b/Tests/LibJS/Bytecode/expected/destructure-array-rest.txt@@ -12,7 +12,7 @@ block0:[ 16] End value:reg5-f$cf5a90d3 destructure-array-rest.js:6:5+f$00904a4a destructure-array-rest.js:6:5Registers: 12Blocks: 14Locals: a~0, b~1@@ -28,50 +28,50 @@ block0:[ 7] NewPrimitiveArray dst:reg5, elements:[1, 2, 3][ 25] Mov dst:reg6, src:Bool(false)[ 28] GetIterator dst_iterator_object:reg7, dst_iterator_next:reg8, dst_iterator_done:reg9, iterable:reg5, fast_array_mode_allowed:true- [ 34] IteratorNextUnpack dst_value:reg10, dst_done:reg6, iterator_object:reg7, iterator_next:reg8, iterator_done:reg9+ [ 31] IteratorNextUnpack dst_value:reg10, dst_done:reg6, iterator_object:reg7, iterator_next:reg8, iterator_done:reg9block1:- [ 3a] JumpFalse condition:reg6, target:block3+ [ 37] JumpFalse condition:reg6, target:block3block2:- [ 40] Mov dst:reg10, src:Undefined+ [ 3d] Mov dst:reg10, src:Undefinedblock3:- [ 43] Mov dst:a~0, src:reg10- [ 46] JumpTrue condition:reg6, target:block6+ [ 40] Mov dst:a~0, src:reg10+ [ 43] JumpTrue condition:reg6, target:block6block4:- [ 4c] IteratorToArray dst:reg10, iterator_object:reg7, iterator_next_method:reg8, iterator_done_property:reg9+ [ 49] IteratorToArray dst:reg10, iterator_object:reg7, iterator_next_method:reg8, iterator_done_property:reg9block5:- [ 51] Jump target:block7+ [ 4e] Jump target:block7block6:- [ 56] NewArray dst:reg10+ [ 53] NewArray dst:reg10block7:- [ 59] Mov dst:b~1, src:reg10+ [ 56] Mov dst:b~1, src:reg10block8:- [ 5c] JumpTrue condition:reg9, target:block13+ [ 59] JumpTrue condition:reg9, target:block13block9:- [ 62] IteratorClose iterator_object:reg7, iterator_next:reg8, iterator_done:reg9, completion_value:Undefined- [ 6d] Jump target:block13+ [ 5f] IteratorClose iterator_object:reg7, iterator_next:reg8, iterator_done:reg9, completion_value:Undefined+ [ 67] Jump target:block13block10:- [ 72] Catch value_feedback:0, dst:reg11- [ 76] JumpTrue condition:reg9, target:block12+ [ 6c] Catch value_feedback:0, dst:reg11+ [ 70] JumpTrue condition:reg9, target:block12block11:- [ 7c] IteratorClose iterator_object:reg7, iterator_next:reg8, iterator_done:reg9, completion_value:reg11+ [ 76] IteratorClose iterator_object:reg7, iterator_next:reg8, iterator_done:reg9, completion_value:reg11block12:- [ 87] Throw src:reg11+ [ 7e] Throw src:reg11block13:- [ 89] Return value:b~1+ [ 80] Return value:b~1Exception handlers:- [ 3a .. 4c] => handler block10- [ 51 .. 5c] => handler block10+ [ 37 .. 49] => handler block10+ [ 4e .. 59] => handler block10diff --git a/Tests/LibJS/Bytecode/expected/destructuring-assignment-in-logical-and.txt b/Tests/LibJS/Bytecode/expected/destructuring-assignment-in-logical-and.txtindex 0e11e0d6834..84ca53acb81 100644--- a/Tests/LibJS/Bytecode/expected/destructuring-assignment-in-logical-and.txt+++ b/Tests/LibJS/Bytecode/expected/destructuring-assignment-in-logical-and.txt@@ -14,7 +14,7 @@ block0:[ 18] End value:reg5-f$2d5dca35 destructuring-assignment-in-logical-and.js:2:9+f$3aa045dc destructuring-assignment-in-logical-and.js:2:9Registers: 13Blocks: 16Locals: a~0, b~1@@ -33,53 +33,53 @@ block1:[ 10] Call value_feedback:0, call_feedback:0, dst:reg7, callee:arg0, this_value:Undefined, arguments:[arg1][ 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+ [ 26] IteratorNextUnpack dst_value:reg12, dst_done:reg8, iterator_object:reg9, iterator_next:reg10, iterator_done:reg11block2:- [ 2f] JumpFalse condition:reg8, target:block4+ [ 2c] JumpFalse condition:reg8, target:block4block3:- [ 35] Mov dst:reg12, src:Undefined+ [ 32] Mov dst:reg12, src:Undefinedblock4:- [ 38] Mov dst:a~0, src:reg12- [ 3b] JumpTrue condition:reg8, target:block7+ [ 35] Mov dst:a~0, src:reg12+ [ 38] JumpTrue condition:reg8, target:block7block5:- [ 41] IteratorNextUnpack dst_value:reg12, dst_done:reg8, iterator_object:reg9, iterator_next:reg10, iterator_done:reg11+ [ 3e] IteratorNextUnpack dst_value:reg12, dst_done:reg8, iterator_object:reg9, iterator_next:reg10, iterator_done:reg11block6:- [ 47] JumpFalse condition:reg8, target:block8+ [ 44] JumpFalse condition:reg8, target:block8block7:- [ 4d] Mov dst:reg12, src:Undefined+ [ 4a] Mov dst:reg12, src:Undefinedblock8:- [ 50] Mov dst:b~1, src:reg12+ [ 4d] Mov dst:b~1, src:reg12block9:- [ 53] JumpTrue condition:reg11, target:block14+ [ 50] JumpTrue condition:reg11, target:block14block10:- [ 59] IteratorClose iterator_object:reg9, iterator_next:reg10, iterator_done:reg11, completion_value:Undefined- [ 64] Jump target:block14+ [ 56] IteratorClose iterator_object:reg9, iterator_next:reg10, iterator_done:reg11, completion_value:Undefined+ [ 5e] Jump target:block14block11:- [ 69] Catch value_feedback:1, dst:reg12- [ 6d] JumpTrue condition:reg11, target:block13+ [ 63] Catch value_feedback:1, dst:reg12+ [ 67] JumpTrue condition:reg11, target:block13block12:- [ 73] IteratorClose iterator_object:reg9, iterator_next:reg10, iterator_done:reg11, completion_value:reg12+ [ 6d] IteratorClose iterator_object:reg9, iterator_next:reg10, iterator_done:reg11, completion_value:reg12block13:- [ 7e] Throw src:reg12+ [ 75] Throw src:reg12block14:- [ 80] Mov dst:reg5, src:reg7+ [ 77] Mov dst:reg5, src:reg7block15:- [ 83] End value:Undefined+ [ 7a] End value:UndefinedException handlers:- [ 2f .. 41] => handler block11- [ 47 .. 53] => handler block11+ [ 2c .. 3e] => handler block11+ [ 44 .. 50] => handler block11diff --git a/Tests/LibJS/Bytecode/expected/destructuring-assignment.txt b/Tests/LibJS/Bytecode/expected/destructuring-assignment.txtindex e68c76c015b..e0995d6b929 100644--- a/Tests/LibJS/Bytecode/expected/destructuring-assignment.txt+++ b/Tests/LibJS/Bytecode/expected/destructuring-assignment.txt@@ -16,7 +16,7 @@ block0:[ 3a] End value:reg5-array_destructuring_with_class_default$29279067 destructuring-assignment.js:5:9+array_destructuring_with_class_default$e5b2a313 destructuring-assignment.js:5:9Registers: 14Blocks: 12Locals: x~0@@ -31,50 +31,50 @@ block0:[ 6] NewArray dst:reg6, elements:[Undefined][ a] Mov dst:reg7, src:Bool(false)[ d] GetIterator dst_iterator_object:reg8, dst_iterator_next:reg9, dst_iterator_done:reg10, iterable:reg6, fast_array_mode_allowed:true- [ 19] IteratorNextUnpack dst_value:reg11, dst_done:reg7, iterator_object:reg8, iterator_next:reg9, iterator_done:reg10+ [ 16] IteratorNextUnpack dst_value:reg11, dst_done:reg7, iterator_object:reg8, iterator_next:reg9, iterator_done:reg10block1:- [ 1f] JumpFalse condition:reg7, target:block3+ [ 1c] JumpFalse condition:reg7, target:block3block2:- [ 25] Mov dst:reg11, src:Undefined+ [ 22] Mov dst:reg11, src:Undefinedblock3:- [ 28] JumpUndefined condition:reg11, true_target:block4, false_target:block5+ [ 25] JumpUndefined condition:reg11, true_target:block4, false_target:block5block4:- [ 32] CreateLexicalEnvironment dst:reg13, parent:reg4, capacity:1, is_catch_environment:false- [ 3e] CreateVariable `C`, is_immutable:true, is_global:false, is_strict:true- [ 49] SetLexicalEnvironment environment:reg4- [ 4b] NewClass dst:reg12, class_environment:reg13, class_blueprint_index:0, element_keys_are_in_array:false- [ 5a] Mov dst:reg11, src:reg12+ [ 2f] CreateLexicalEnvironment dst:reg13, parent:reg4, capacity:1, is_catch_environment:false+ [ 3b] CreateVariable `C`, is_immutable:true, is_global:false, is_strict:true+ [ 43] SetLexicalEnvironment environment:reg4+ [ 45] NewClass dst:reg12, class_environment:reg13, class_blueprint_index:0, element_keys_are_in_array:false+ [ 54] Mov dst:reg11, src:reg12block5:- [ 5d] Mov dst:x~0, src:reg11+ [ 57] Mov dst:x~0, src:reg11block6:- [ 60] JumpTrue condition:reg10, target:block11+ [ 5a] JumpTrue condition:reg10, target:block11block7:- [ 66] IteratorClose iterator_object:reg8, iterator_next:reg9, iterator_done:reg10, completion_value:Undefined- [ 71] Jump target:block11+ [ 60] IteratorClose iterator_object:reg8, iterator_next:reg9, iterator_done:reg10, completion_value:Undefined+ [ 68] Jump target:block11block8:- [ 76] Catch value_feedback:0, dst:reg11- [ 7a] SetLexicalEnvironment environment:reg4- [ 7c] JumpTrue condition:reg10, target:block10+ [ 6d] Catch value_feedback:0, dst:reg11+ [ 71] SetLexicalEnvironment environment:reg4+ [ 73] JumpTrue condition:reg10, target:block10block9:- [ 82] IteratorClose iterator_object:reg8, iterator_next:reg9, iterator_done:reg10, completion_value:reg11+ [ 79] IteratorClose iterator_object:reg8, iterator_next:reg9, iterator_done:reg10, completion_value:reg11block10:- [ 8d] Throw src:reg11+ [ 81] Throw src:reg11block11:- [ 8f] Return value:x~0+ [ 83] Return value:x~0Exception handlers:- [ 1f .. 60] => handler block8+ [ 1c .. 5a] => handler block8object_destructuring_with_function_default$cc5229c8 destructuring-assignment.js:11:9@@ -101,7 +101,7 @@ block2:[ 2e] Return value:x~0-setter_parameter_resolution$4da1ce7a destructuring-assignment.js:17:9+setter_parameter_resolution$6f5c4524 destructuring-assignment.js:17:9Registers: 13Blocks: 12Constants:@@ -111,52 +111,52 @@ setter_parameter_resolution$4da1ce7a destructuring-assignment.js:17:9block0:[ 0] Enter[ 1] CreateVariable `setValue`, is_immutable:false, is_global:false, is_strict:false- [ c] InitializeVariableBinding `setValue`, src:Undefined- [ 19] NewPrimitiveArray dst:reg6, elements:[23]- [ 27] Mov dst:reg7, src:Bool(false)- [ 2a] GetIterator dst_iterator_object:reg8, dst_iterator_next:reg9, dst_iterator_done:reg10, iterable:reg6, fast_array_mode_allowed:true+ [ 9] InitializeVariableBinding `setValue`, src:Undefined+ [ 16] NewPrimitiveArray dst:reg6, elements:[23]+ [ 24] Mov dst:reg7, src:Bool(false)+ [ 27] GetIterator dst_iterator_object:reg8, dst_iterator_next:reg9, dst_iterator_done:reg10, iterable:reg6, fast_array_mode_allowed:trueblock1:- [ 36] NewObject dst:reg11- [ 3a] NewFunction dst:reg12, shared_function_data_index:0 (set y), home_object:reg11- [ 44] PutById base:reg11, `y`, src:reg12, kind:Setter+ [ 30] NewObject dst:reg11+ [ 34] NewFunction dst:reg12, shared_function_data_index:0 (set y), home_object:reg11+ [ 3e] PutById base:reg11, `y`, src:reg12, kind:Setterblock2:- [ 50] IteratorNextUnpack dst_value:reg12, dst_done:reg7, iterator_object:reg8, iterator_next:reg9, iterator_done:reg10+ [ 47] IteratorNextUnpack dst_value:reg12, dst_done:reg7, iterator_object:reg8, iterator_next:reg9, iterator_done:reg10block3:- [ 56] JumpFalse condition:reg7, target:block5+ [ 4d] JumpFalse condition:reg7, target:block5block4:- [ 5c] Mov dst:reg12, src:Undefined+ [ 53] Mov dst:reg12, src:Undefinedblock5:- [ 5f] PutById base:reg11, `y`, src:reg12, kind:Normal+ [ 56] PutById base:reg11, `y`, src:reg12, kind:Normalblock6:- [ 6b] JumpTrue condition:reg10, target:block11+ [ 5f] JumpTrue condition:reg10, target:block11block7:- [ 71] IteratorClose iterator_object:reg8, iterator_next:reg9, iterator_done:reg10, completion_value:Undefined- [ 7c] Jump target:block11+ [ 65] IteratorClose iterator_object:reg8, iterator_next:reg9, iterator_done:reg10, completion_value:Undefined+ [ 6d] Jump target:block11block8:- [ 81] Catch value_feedback:0, dst:reg11- [ 85] JumpTrue condition:reg10, target:block10+ [ 72] Catch value_feedback:0, dst:reg11+ [ 76] JumpTrue condition:reg10, target:block10block9:- [ 8b] IteratorClose iterator_object:reg8, iterator_next:reg9, iterator_done:reg10, completion_value:reg11+ [ 7c] IteratorClose iterator_object:reg8, iterator_next:reg9, iterator_done:reg10, completion_value:reg11block10:- [ 96] Throw src:reg11+ [ 84] Throw src:reg11block11:- [ 98] GetInitializedBinding value_feedback:1, dst:reg5, `setValue`- [ a7] Return value:reg5+ [ 86] GetInitializedBinding value_feedback:1, dst:reg5, `setValue`+ [ 95] Return value:reg5Exception handlers:- [ 36 .. 50] => handler block8- [ 56 .. 6b] => handler block8+ [ 30 .. 47] => handler block8+ [ 4d .. 5f] => handler block8set y$755940b9 destructuring-assignment.js:21:26diff --git a/Tests/LibJS/Bytecode/expected/destructuring-no-base-identifier.txt b/Tests/LibJS/Bytecode/expected/destructuring-no-base-identifier.txtindex 236ce506695..5697e28b996 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 @@-$ad03dbc3 destructuring-no-base-identifier.js:1:5+$e56904d7 destructuring-no-base-identifier.js:1:5Registers: 14Blocks: 12Constants:@@ -15,41 +15,41 @@ block0:[ 20] GetIterator dst_iterator_object:reg9, dst_iterator_next:reg10, dst_iterator_done:reg11, iterable:reg7, fast_array_mode_allowed:trueblock1:- [ 2c] GetGlobal value_feedback:0, dst:reg12, `x`+ [ 29] GetGlobal value_feedback:0, dst:reg12, `x`block2:- [ 35] IteratorNextUnpack dst_value:reg13, dst_done:reg8, iterator_object:reg9, iterator_next:reg10, iterator_done:reg11+ [ 32] IteratorNextUnpack dst_value:reg13, dst_done:reg8, iterator_object:reg9, iterator_next:reg10, iterator_done:reg11block3:- [ 3b] JumpFalse condition:reg8, target:block5+ [ 38] JumpFalse condition:reg8, target:block5block4:- [ 41] Mov dst:reg13, src:Undefined+ [ 3e] Mov dst:reg13, src:Undefinedblock5:- [ 44] PutById base:reg12, `y`, src:reg13, kind:Normal+ [ 41] PutById base:reg12, `y`, src:reg13, kind:Normalblock6:- [ 50] JumpTrue condition:reg11, target:block11+ [ 4a] JumpTrue condition:reg11, target:block11block7:- [ 56] IteratorClose iterator_object:reg9, iterator_next:reg10, iterator_done:reg11, completion_value:Undefined- [ 61] Jump target:block11+ [ 50] IteratorClose iterator_object:reg9, iterator_next:reg10, iterator_done:reg11, completion_value:Undefined+ [ 58] Jump target:block11block8:- [ 66] Catch value_feedback:1, dst:reg12- [ 6a] JumpTrue condition:reg11, target:block10+ [ 5d] Catch value_feedback:1, dst:reg12+ [ 61] JumpTrue condition:reg11, target:block10block9:- [ 70] IteratorClose iterator_object:reg9, iterator_next:reg10, iterator_done:reg11, completion_value:reg12+ [ 67] IteratorClose iterator_object:reg9, iterator_next:reg10, iterator_done:reg11, completion_value:reg12block10:- [ 7b] Throw src:reg12+ [ 6f] Throw src:reg12block11:- [ 7d] Mov dst:reg5, src:reg7- [ 80] End value:reg5+ [ 71] Mov dst:reg5, src:reg7+ [ 74] End value:reg5Exception handlers:- [ 2c .. 35] => handler block8- [ 3b .. 50] => handler block8+ [ 29 .. 32] => handler block8+ [ 38 .. 4a] => handler block8diff --git a/Tests/LibJS/Bytecode/expected/destructuring-param-no-param-expressions.txt b/Tests/LibJS/Bytecode/expected/destructuring-param-no-param-expressions.txtindex eb738b60213..78ec93d6a1a 100644--- a/Tests/LibJS/Bytecode/expected/destructuring-param-no-param-expressions.txt+++ b/Tests/LibJS/Bytecode/expected/destructuring-param-no-param-expressions.txt@@ -18,7 +18,7 @@ block0:[ 3b] End value:reg5-f$168e497f destructuring-param-no-param-expressions.js:6:12+f$85b10e2a destructuring-param-no-param-expressions.js:6:12Registers: 7Blocks: 1Locals: local~0@@ -26,10 +26,10 @@ f$168e497f destructuring-param-no-param-expressions.js:6:12block0:[ 0] Enter[ 1] CreateVariable `captured`, is_immutable:false, is_global:false, is_strict:false- [ c] ThrowIfNullish src:arg0- [ e] Mov dst:reg5, src:arg0- [ 11] GetById value_feedback:0, dst:reg6, base:reg5, `captured`- [ 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+ [ 9] ThrowIfNullish src:arg0+ [ b] Mov dst:reg5, src:arg0+ [ e] GetById value_feedback:0, dst:reg6, base:reg5, `captured`+ [ 18] InitializeLexicalBinding `captured`, src:reg6+ [ 25] GetById value_feedback:1, dst:local~0, base:reg5, `local`+ [ 2f] NewFunction dst:reg5, shared_function_data_index:0+ [ 39] Return value:reg5diff --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.txtindex 6d7fd227447..16ff3387ea9 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@@ -12,7 +12,7 @@ block0:[ 16] End value:reg5-outer$29c72910 enclosing-function-bindings-with-eval-or-with.js:2:9+outer$092915f9 enclosing-function-bindings-with-eval-or-with.js:2:9Registers: 11Blocks: 1Constants:@@ -22,27 +22,27 @@ outer$29c72910 enclosing-function-bindings-with-eval-or-with.js:2:9block0:[ 0] Enter[ 1] CreateVariable `a`, is_immutable:false, is_global:false, is_strict:false- [ c] CreateVariable `evaluates`, is_immutable:false, is_global:false, is_strict:false- [ 17] InitializeVariableBinding `evaluates`, src:Undefined- [ 24] NewFunction dst:reg5, shared_function_data_index:0- [ 2e] SetVariableBinding `evaluates`, src:reg5- [ 3b] CreateVariable `withObject`, is_immutable:false, is_global:false, is_strict:false- [ 46] InitializeVariableBinding `withObject`, src:Undefined- [ 53] NewFunction dst:reg6, shared_function_data_index:1- [ 5d] SetVariableBinding `withObject`, src:reg6- [ 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- [ 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$0bfb8575 enclosing-function-bindings-with-eval-or-with.js:4:13+ [ 9] CreateVariable `evaluates`, is_immutable:false, is_global:false, is_strict:false+ [ 11] InitializeVariableBinding `evaluates`, src:Undefined+ [ 1e] NewFunction dst:reg5, shared_function_data_index:0+ [ 28] SetVariableBinding `evaluates`, src:reg5+ [ 35] CreateVariable `withObject`, is_immutable:false, is_global:false, is_strict:false+ [ 3d] InitializeVariableBinding `withObject`, src:Undefined+ [ 4a] NewFunction dst:reg6, shared_function_data_index:1+ [ 54] SetVariableBinding `withObject`, src:reg6+ [ 61] InitializeLexicalBinding `a`, src:Int32(1)+ [ 6e] GetCalleeAndThisFromEnvironment value_feedback:0, callee:reg7, this_value:reg8, `evaluates`+ [ 7e] Call value_feedback:1, call_feedback:0, dst:reg7, callee:reg7, this_value:reg8+ [ 87] Call value_feedback:2, call_feedback:1, dst:reg7, callee:reg7, this_value:Undefined+ [ 90] GetCalleeAndThisFromEnvironment value_feedback:3, callee:reg8, this_value:reg9, `withObject`+ [ a0] NewObject dst:reg10+ [ a4] Call value_feedback:4, call_feedback:2, dst:reg8, callee:reg8, this_value:reg9, arguments:[reg10]+ [ ae] Call value_feedback:5, call_feedback:3, dst:reg8, callee:reg8, this_value:Undefined+ [ b7] NewArray dst:reg9, elements:[reg7, reg8]+ [ bc] Return value:reg9+++evaluates$9cd8c0ca enclosing-function-bindings-with-eval-or-with.js:4:13Registers: 7Blocks: 1Constants:@@ -51,10 +51,10 @@ evaluates$0bfb8575 enclosing-function-bindings-with-eval-or-with.js:4:13block0:[ 0] Enter[ 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("")]- [ 1d] NewFunction dst:reg5, shared_function_data_index:0- [ 27] Return value:reg5+ [ 6] DynamicGetCalleeAndThisFromEnvironment value_feedback:0, callee:reg5, this_value:reg6, `eval`+ [ 10] CallDirectEval value_feedback:1, call_feedback:0, dst:reg5, callee:reg5, this_value:reg6, arguments:[String("")]+ [ 1a] NewFunction dst:reg5, shared_function_data_index:0+ [ 24] Return value:reg5eval$d8dbb89ddiff --git a/Tests/LibJS/Bytecode/expected/enclosing-function-bindings.txt b/Tests/LibJS/Bytecode/expected/enclosing-function-bindings.txtindex 5845bc4781b..efd5434b454 100644--- a/Tests/LibJS/Bytecode/expected/enclosing-function-bindings.txt+++ b/Tests/LibJS/Bytecode/expected/enclosing-function-bindings.txt@@ -19,7 +19,7 @@ block0:[ 3e] End value:reg5-outer$66437b0a enclosing-function-bindings.js:4:9+outer$350dc193 enclosing-function-bindings.js:4:9Registers: 7Blocks: 1Constants:@@ -28,16 +28,16 @@ outer$66437b0a enclosing-function-bindings.js:4:9block0:[ 0] Enter[ 1] CreateVariable `a`, is_immutable:false, is_global:false, is_strict:false- [ c] InitializeLexicalBinding `a`, src:arg0- [ 19] CreateVariable `b`, is_immutable:false, is_global:false, is_strict:false- [ 24] CreateVariable `callee`, is_immutable:false, is_global:false, is_strict:false- [ 2f] InitializeVariableBinding `callee`, src:Undefined- [ 3c] NewFunction dst:reg5, shared_function_data_index:0- [ 46] SetVariableBinding `callee`, src:reg5- [ 53] GetBinding value_feedback:0, dst:reg5, `a`- [ 62] InitializeLexicalBinding `b`, src:reg5- [ 6f] NewFunction dst:reg6, shared_function_data_index:1- [ 79] Return value:reg6+ [ 9] InitializeLexicalBinding `a`, src:arg0+ [ 16] CreateVariable `b`, is_immutable:false, is_global:false, is_strict:false+ [ 1e] CreateVariable `callee`, is_immutable:false, is_global:false, is_strict:false+ [ 26] InitializeVariableBinding `callee`, src:Undefined+ [ 33] NewFunction dst:reg5, shared_function_data_index:0+ [ 3d] SetVariableBinding `callee`, src:reg5+ [ 4a] GetBinding value_feedback:0, dst:reg5, `a`+ [ 59] InitializeLexicalBinding `b`, src:reg5+ [ 66] NewFunction dst:reg6, shared_function_data_index:1+ [ 70] Return value:reg6$8ff6246c enclosing-function-bindings.js:8:12@@ -75,7 +75,7 @@ block0:[ 10] Return value:reg5-blockFunctions$a0db831c enclosing-function-bindings.js:16:9+blockFunctions$c295f9c6 enclosing-function-bindings.js:16:9Registers: 7Blocks: 1Locals: first~0@@ -86,16 +86,16 @@ blockFunctions$a0db831c enclosing-function-bindings.js:16:9block0:[ 0] Enter[ 1] CreateVariable `c`, is_immutable:false, is_global:false, is_strict:false- [ c] GetLexicalEnvironment dst:reg4- [ e] InitializeLexicalBinding `c`, src:Int32(1)- [ 1b] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false- [ 27] CreateVariable `second`, is_immutable:false, is_global:false, is_strict:false- [ 32] NewFunction dst:first~0, shared_function_data_index:0- [ 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- [ 5c] SetLexicalEnvironment environment:reg4- [ 5e] Return value:reg6+ [ 9] GetLexicalEnvironment dst:reg4+ [ b] InitializeLexicalBinding `c`, src:Int32(1)+ [ 18] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false+ [ 24] CreateVariable `second`, is_immutable:false, is_global:false, is_strict:false+ [ 2c] NewFunction dst:first~0, shared_function_data_index:0+ [ 36] NewFunction dst:reg6, shared_function_data_index:1+ [ 40] InitializeLexicalBinding `second`, src:reg6+ [ 4d] Call value_feedback:0, call_feedback:0, dst:reg6, callee:first~0, this_value:Undefined+ [ 56] SetLexicalEnvironment environment:reg4+ [ 58] Return value:reg6first$fd6705ac enclosing-function-bindings.js:19:13diff --git a/Tests/LibJS/Bytecode/expected/eval-prevents-locals.txt b/Tests/LibJS/Bytecode/expected/eval-prevents-locals.txtindex 500ba0dafeb..7ecc44bc1fb 100644--- a/Tests/LibJS/Bytecode/expected/eval-prevents-locals.txt+++ b/Tests/LibJS/Bytecode/expected/eval-prevents-locals.txt@@ -14,7 +14,7 @@ block0:[ 28] End value:reg5-with_eval$26d38c05 eval-prevents-locals.js:6:9+with_eval$45ca119f eval-prevents-locals.js:6:9Registers: 8Blocks: 1Constants:@@ -24,14 +24,14 @@ with_eval$26d38c05 eval-prevents-locals.js:6:9block0:[ 0] Enter[ 1] CreateArguments is_immutable:false, creates_parameter_bindings:false- [ 9] GetLexicalEnvironment dst:reg4- [ b] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false- [ 17] CreateVariable `x`, is_immutable:false, is_global:false, is_strict:false- [ 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("")]- [ 43] GetBinding value_feedback:2, dst:reg6, `x`- [ 52] Return value:reg6+ [ 6] GetLexicalEnvironment dst:reg4+ [ 8] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false+ [ 14] CreateVariable `x`, is_immutable:false, is_global:false, is_strict:false+ [ 1c] InitializeLexicalBinding `x`, src:Int32(1)+ [ 29] DynamicGetCalleeAndThisFromEnvironment value_feedback:0, callee:reg6, this_value:reg7, `eval`+ [ 33] CallDirectEval value_feedback:1, call_feedback:0, dst:reg6, callee:reg6, this_value:reg7, arguments:[String("")]+ [ 3d] GetBinding value_feedback:2, dst:reg6, `x`+ [ 4c] Return value:reg6eval$d8dbb89d@@ -46,7 +46,7 @@ block0:[ 4] End value:reg5-outer_eval$5e1cdfb7 eval-prevents-locals.js:14:9+outer_eval$41ea4b2d eval-prevents-locals.js:14:9Registers: 9Blocks: 1Constants:@@ -56,17 +56,17 @@ outer_eval$5e1cdfb7 eval-prevents-locals.js:14:9block0:[ 0] Enter[ 1] CreateArguments is_immutable:false, creates_parameter_bindings:false- [ 9] GetLexicalEnvironment dst:reg4- [ b] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false- [ 17] CreateVariable `inner`, is_immutable:false, is_global:false, is_strict:false- [ 22] InitializeVariableBinding `inner`, src:Undefined- [ 2f] NewFunction dst:reg6, shared_function_data_index:0- [ 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("")]- [ 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+ [ 6] GetLexicalEnvironment dst:reg4+ [ 8] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false+ [ 14] CreateVariable `inner`, is_immutable:false, is_global:false, is_strict:false+ [ 1c] InitializeVariableBinding `inner`, src:Undefined+ [ 29] NewFunction dst:reg6, shared_function_data_index:0+ [ 33] SetVariableBinding `inner`, src:reg6+ [ 40] DynamicGetCalleeAndThisFromEnvironment value_feedback:0, callee:reg6, this_value:reg7, `eval`+ [ 4a] CallDirectEval value_feedback:1, call_feedback:0, dst:reg6, callee:reg6, this_value:reg7, arguments:[String("")]+ [ 54] GetCalleeAndThisFromEnvironment value_feedback:2, callee:reg7, this_value:reg8, `inner`+ [ 64] Call value_feedback:3, call_feedback:1, dst:reg7, callee:reg7, this_value:reg8+ [ 6d] Return value:reg7eval$d8dbb89ddiff --git a/Tests/LibJS/Bytecode/expected/eval-same-function.txt b/Tests/LibJS/Bytecode/expected/eval-same-function.txtindex fb3cc17a2bc..20fe3cf4a1a 100644--- a/Tests/LibJS/Bytecode/expected/eval-same-function.txt+++ b/Tests/LibJS/Bytecode/expected/eval-same-function.txt@@ -12,7 +12,7 @@ block0:[ 16] End value:reg5-foo$2e2f86cd eval-same-function.js:6:9+foo$b984e002 eval-same-function.js:6:9Registers: 7Blocks: 1Constants:@@ -22,11 +22,11 @@ foo$2e2f86cd eval-same-function.js:6:9block0:[ 0] Enter[ 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")]- [ 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+ [ 6] DynamicGetCalleeAndThisFromEnvironment value_feedback:0, callee:reg5, this_value:reg6, `eval`+ [ 10] CallDirectEval value_feedback:1, call_feedback:0, dst:reg5, callee:reg5, this_value:reg6, arguments:[String("var x = 1")]+ [ 1a] DynamicGetBinding value_feedback:2, dst:reg5, `Number`+ [ 23] CallConstruct value_feedback:3, call_feedback:1, dst:reg5, callee:reg5, arguments:[Int32(42)]+ [ 2c] Return value:reg5eval$7fa36a2e line 1, column 5diff --git a/Tests/LibJS/Bytecode/expected/eval-scope-optimization.txt b/Tests/LibJS/Bytecode/expected/eval-scope-optimization.txtindex 780ca5164c7..48bb1faedd4 100644--- a/Tests/LibJS/Bytecode/expected/eval-scope-optimization.txt+++ b/Tests/LibJS/Bytecode/expected/eval-scope-optimization.txt@@ -12,7 +12,7 @@ block0:[ 16] End value:reg5-outer$58e9ac0b eval-scope-optimization.js:6:5+outer$496e693e eval-scope-optimization.js:6:5Registers: 7Blocks: 1Constants:@@ -22,9 +22,9 @@ outer$58e9ac0b eval-scope-optimization.js:6:5block0:[ 0] Enter[ 1] CreateVariable `inner`, is_immutable:false, is_global:false, is_strict:false- [ c] InitializeVariableBinding `inner`, src:Undefined- [ 19] NewFunction dst:reg5, shared_function_data_index:0- [ 23] SetVariableBinding `inner`, src:reg5- [ 30] GetGlobal value_feedback:0, dst:reg6, `Number`- [ 39] CallConstruct value_feedback:1, call_feedback:0, dst:reg6, callee:reg6, arguments:[Int32(42)]- [ 42] Return value:reg6+ [ 9] InitializeVariableBinding `inner`, src:Undefined+ [ 16] NewFunction dst:reg5, shared_function_data_index:0+ [ 20] SetVariableBinding `inner`, src:reg5+ [ 2d] GetGlobal value_feedback:0, dst:reg6, `Number`+ [ 36] CallConstruct value_feedback:1, call_feedback:0, dst:reg6, callee:reg6, arguments:[Int32(42)]+ [ 3f] Return value:reg6diff --git a/Tests/LibJS/Bytecode/expected/expression-identifier-number-format.txt b/Tests/LibJS/Bytecode/expected/expression-identifier-number-format.txtindex 48974fc242b..b315b87c764 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 @@-$13dacd3e expression-identifier-number-format.js:1:5+$32d152d8 expression-identifier-number-format.js:1:5Registers: 8Blocks: 1Constants:@@ -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- [ 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+ [ 25] Mov dst:reg5, src:reg7+ [ 28] GetGlobal value_feedback:1, dst:reg6, `x`+ [ 31] GetByValue value_feedback:2, keyed_feedback:1, dst:reg6, base:reg6, property:Double(1.1e-32)+ [ 3b] PutById base:reg6, `foo`, src:Int32(42), kind:Normal+ [ 44] Mov dst:reg5, src:Int32(42)+ [ 47] End value:reg5diff --git a/Tests/LibJS/Bytecode/expected/for-in-lexical-scope.txt b/Tests/LibJS/Bytecode/expected/for-in-lexical-scope.txtindex 1614b8f52e9..5d09c3ddccf 100644--- a/Tests/LibJS/Bytecode/expected/for-in-lexical-scope.txt+++ b/Tests/LibJS/Bytecode/expected/for-in-lexical-scope.txt@@ -1,4 +1,4 @@-$cbfa615d for-in-lexical-scope.js:1:5+$eaf0e6f7 for-in-lexical-scope.js:1:5Registers: 13Blocks: 5Locals: probeDecl~0@@ -12,30 +12,30 @@ block0:[ 3] Mov dst:reg5, src:Undefined[ 6] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false[ 12] CreateVariable `x`, is_immutable:false, is_global:false, is_strict:false- [ 1d] NewObject dst:reg8- [ 21] InitObjectLiteralProperty object:reg8, `i`, src:Int32(0), shape_cache_index:0, property_slot:0- [ 2f] CacheObjectShape object:reg8- [ 33] Mov dst:reg6, src:reg8- [ 36] SetLexicalEnvironment environment:reg4- [ 38] Mov dst:reg5, src:Undefined- [ 3b] JumpNullish condition:reg6, true_target:block4, false_target:block1+ [ 1a] NewObject dst:reg8+ [ 1e] InitObjectLiteralProperty object:reg8, `i`, src:Int32(0), shape_cache_index:0, property_slot:0+ [ 2c] CacheObjectShape object:reg8+ [ 30] Mov dst:reg6, src:reg8+ [ 33] SetLexicalEnvironment environment:reg4+ [ 35] Mov dst:reg5, src:Undefined+ [ 38] JumpNullish condition:reg6, true_target:block4, false_target:block1block1:- [ 45] GetObjectPropertyIterator dst_keys:reg8, dst_receiver:reg7, object:reg6- [ 4d] Mov dst:reg9, src:Int32(0)+ [ 42] GetObjectPropertyIterator dst_keys:reg8, dst_receiver:reg7, object:reg6+ [ 4a] Mov dst:reg9, src:Int32(0)block2:- [ 50] ObjectPropertyIteratorNext dst_value:reg10, dst_done:reg11, receiver:reg7, keys:reg8, cursor:reg9- [ 56] JumpTrue condition:reg11, target:block4+ [ 4d] ObjectPropertyIteratorNext dst_value:reg10, dst_done:reg11, receiver:reg7, keys:reg8, cursor:reg9+ [ 53] JumpTrue condition:reg11, target:block4block3:- [ 5c] CreateLexicalEnvironment dst:reg12, parent:reg4, capacity:1, is_catch_environment:false- [ 68] CreateVariable `x`, is_immutable:false, is_global:false, is_strict:false- [ 73] InitializeLexicalBinding `x`, src:reg10- [ 80] NewFunction dst:probeDecl~0, shared_function_data_index:0- [ 8a] SetVariableBindingOfBlockFunction `probeDecl`, src:probeDecl~0, program_environment_depth:1- [ 93] SetLexicalEnvironment environment:reg4- [ 95] JumpLoop target:block2+ [ 59] CreateLexicalEnvironment dst:reg12, parent:reg4, capacity:1, is_catch_environment:false+ [ 65] CreateVariable `x`, is_immutable:false, is_global:false, is_strict:false+ [ 6d] InitializeLexicalBinding `x`, src:reg10+ [ 7a] NewFunction dst:probeDecl~0, shared_function_data_index:0+ [ 84] SetVariableBindingOfBlockFunction `probeDecl`, src:probeDecl~0, program_environment_depth:1+ [ 8d] SetLexicalEnvironment environment:reg4+ [ 8f] JumpLoop target:block2block4:- [ 9a] End value:reg5+ [ 94] End value:reg5diff --git a/Tests/LibJS/Bytecode/expected/for-in-object-property-iterator-next.txt b/Tests/LibJS/Bytecode/expected/for-in-object-property-iterator-next.txtindex 07b4197b85f..dd634973162 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 @@-$665affed for-in-object-property-iterator-next.js:8:1+$a2a07da4 for-in-object-property-iterator-next.js:8:1Registers: 8Blocks: 1Constants:@@ -15,10 +15,10 @@ 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- [ 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+ [ 1a] PutById base:reg7, `foo`, src:String("foo"), kind:Own+ [ 23] PutByValue keyed_feedback:1, base:reg7, property:Int32(7), src:String("seven"), kind:Own+ [ 2c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]+ [ 36] End value:reg5collect$3e3cecba for-in-object-property-iterator-next.js:2:18diff --git a/Tests/LibJS/Bytecode/expected/for-loop-scoping.txt b/Tests/LibJS/Bytecode/expected/for-loop-scoping.txtindex c2113321dbc..063c7276063 100644--- a/Tests/LibJS/Bytecode/expected/for-loop-scoping.txt+++ b/Tests/LibJS/Bytecode/expected/for-loop-scoping.txt@@ -15,7 +15,7 @@ block0:[ 33] End value:reg5-forLetClosure$fabf9bb1 for-loop-scoping.js:2:15+forLetClosure$4e806cb4 for-loop-scoping.js:2:15Registers: 8Blocks: 4Locals: fns~0@@ -28,37 +28,37 @@ block0:[ 3] NewArray dst:fns~0[ 6] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false[ 12] CreateVariable `i`, is_immutable:false, is_global:false, is_strict:false- [ 1d] InitializeLexicalBinding `i`, src:Int32(0)- [ 2a] GetBinding value_feedback:0, dst:reg6, `i`- [ 39] SetLexicalEnvironment environment:reg4- [ 3b] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false- [ 47] CreateVariable `i`, is_immutable:false, is_global:false, is_strict:false- [ 52] InitializeLexicalBinding `i`, src:reg6- [ 5f] Jump target:block2+ [ 1a] InitializeLexicalBinding `i`, src:Int32(0)+ [ 27] GetBinding value_feedback:0, dst:reg6, `i`+ [ 36] SetLexicalEnvironment environment:reg4+ [ 38] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false+ [ 44] CreateVariable `i`, is_immutable:false, is_global:false, is_strict:false+ [ 4c] InitializeLexicalBinding `i`, src:reg6+ [ 59] Jump target:block2block1:- [ 64] GetById value_feedback:1, dst:reg6, base:fns~0, `push`- [ 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+ [ 5e] GetById value_feedback:1, dst:reg6, base:fns~0, `push`+ [ 68] NewFunction dst:reg7, shared_function_data_index:0+ [ 72] Call value_feedback:2, call_feedback:0, dst:reg6, callee:reg6, this_value:fns~0, arguments:[reg7]+ [ 7c] GetBinding value_feedback:3, dst:reg6, `i`+ [ 8b] SetLexicalEnvironment environment:reg4+ [ 8d] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false+ [ 99] CreateVariable `i`, is_immutable:false, is_global:false, is_strict:false+ [ a1] InitializeLexicalBinding `i`, src:reg6+ [ ae] GetBinding value_feedback:4, dst:reg6, `i`+ [ bd] PostfixIncrement arith_feedback:0, dst:reg7, src:reg6+ [ c2] SetLexicalBinding `i`, src:reg6block2:- [ d8] GetBinding value_feedback:5, dst:reg6, `i`- [ e7] JumpLessThanLoopRhsInt32 arith_feedback:1, lhs:reg6, rhs:3, true_target:block1, false_target:block3+ [ cf] GetBinding value_feedback:5, dst:reg6, `i`+ [ de] JumpLessThanLoopRhsInt32 arith_feedback:1, lhs:reg6, rhs:3, true_target:block1, false_target:block3block3:- [ 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+ [ ee] SetLexicalEnvironment environment:reg4+ [ f0] GetById value_feedback:6, dst:reg5, base:fns~0, `map`+ [ fa] NewFunction dst:reg6, shared_function_data_index:1+ [ 104] Call value_feedback:7, call_feedback:1, dst:reg5, callee:reg5, this_value:fns~0, arguments:[reg6]+ [ 10e] Return value:reg5map$55eca889 BuiltinFile:275:11diff --git a/Tests/LibJS/Bytecode/expected/for-of-cond-rhs-block-order.txt b/Tests/LibJS/Bytecode/expected/for-of-cond-rhs-block-order.txtindex bed3a1570db..de89f9331a5 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@@ -13,7 +13,7 @@ block0:[ 18] End value:reg5-f$b7346b10 for-of-cond-rhs-block-order.js:2:15+f$049cb911 for-of-cond-rhs-block-order.js:2:15Registers: 16Blocks: 22Locals: r~0, n~1@@ -43,70 +43,70 @@ block3:[ 40] GetIterator dst_iterator_object:reg6, dst_iterator_next:reg7, dst_iterator_done:reg8, iterable:reg5, fast_array_mode_allowed:trueblock4:- [ 4c] IteratorNextUnpack dst_value:reg9, dst_done:reg10, iterator_object:reg6, iterator_next:reg7, iterator_done:reg8- [ 52] JumpTrue condition:reg10, target:block21+ [ 49] IteratorNextUnpack dst_value:reg9, dst_done:reg10, iterator_object:reg6, iterator_next:reg7, iterator_done:reg8+ [ 4f] JumpTrue condition:reg10, target:block21block5:- [ 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+ [ 55] Mov dst:reg11, src:Bool(false)+ [ 58] GetIterator dst_iterator_object:reg12, dst_iterator_next:reg13, dst_iterator_done:reg14, iterable:reg9, fast_array_mode_allowed:trueblock6:- [ 67] IteratorNextUnpack dst_value:reg15, dst_done:reg11, iterator_object:reg12, iterator_next:reg13, iterator_done:reg14+ [ 61] IteratorNextUnpack dst_value:reg15, dst_done:reg11, iterator_object:reg12, iterator_next:reg13, iterator_done:reg14block7:- [ 6d] JumpFalse condition:reg11, target:block9+ [ 67] JumpFalse condition:reg11, target:block9block8:- [ 73] Mov dst:reg15, src:Undefined+ [ 6d] Mov dst:reg15, src:Undefinedblock9:- [ 76] Mov dst:r~0, src:reg15- [ 79] JumpTrue condition:reg11, target:block12+ [ 70] Mov dst:r~0, src:reg15+ [ 73] JumpTrue condition:reg11, target:block12block10:- [ 7f] IteratorNextUnpack dst_value:reg15, dst_done:reg11, iterator_object:reg12, iterator_next:reg13, iterator_done:reg14+ [ 79] IteratorNextUnpack dst_value:reg15, dst_done:reg11, iterator_object:reg12, iterator_next:reg13, iterator_done:reg14block11:- [ 85] JumpFalse condition:reg11, target:block13+ [ 7f] JumpFalse condition:reg11, target:block13block12:- [ 8b] Mov dst:reg15, src:Undefined+ [ 85] Mov dst:reg15, src:Undefinedblock13:- [ 8e] Mov dst:n~1, src:reg15+ [ 88] Mov dst:n~1, src:reg15block14:- [ 91] JumpTrue condition:reg14, target:block19+ [ 8b] JumpTrue condition:reg14, target:block19block15:- [ 97] IteratorClose iterator_object:reg12, iterator_next:reg13, iterator_done:reg14, completion_value:Undefined- [ a2] Jump target:block19+ [ 91] IteratorClose iterator_object:reg12, iterator_next:reg13, iterator_done:reg14, completion_value:Undefined+ [ 99] Jump target:block19block16:- [ a7] Catch value_feedback:4, dst:reg15- [ ab] JumpTrue condition:reg14, target:block18+ [ 9e] Catch value_feedback:4, dst:reg15+ [ a2] JumpTrue condition:reg14, target:block18block17:- [ b1] IteratorClose iterator_object:reg12, iterator_next:reg13, iterator_done:reg14, completion_value:reg15+ [ a8] IteratorClose iterator_object:reg12, iterator_next:reg13, iterator_done:reg14, completion_value:reg15block18:- [ bc] Throw src:reg15+ [ b0] Throw src:reg15block19:- [ be] JumpLoop target:block4+ [ b2] JumpLoop target:block4block20:- [ 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+ [ b7] Catch value_feedback:5, dst:reg11+ [ bb] IteratorClose iterator_object:reg6, iterator_next:reg7, iterator_done:reg8, completion_value:reg11+ [ c3] Throw src:reg11block21:- [ d4] End value:Undefined+ [ c5] End value:UndefinedException handlers:- [ 58 .. 67] => handler block20- [ 67 .. 6d] => handler block20- [ 6d .. 7f] => handler block16- [ 7f .. 85] => handler block20- [ 85 .. 91] => handler block16- [ 91 .. c3] => handler block20+ [ 55 .. 61] => handler block20+ [ 61 .. 67] => handler block20+ [ 67 .. 79] => handler block16+ [ 79 .. 7f] => handler block20+ [ 7f .. 8b] => handler block16+ [ 8b .. b7] => handler block20diff --git a/Tests/LibJS/Bytecode/expected/for-of-continue-with-block-scope.txt b/Tests/LibJS/Bytecode/expected/for-of-continue-with-block-scope.txtindex 241f8a9105a..09661799f01 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@@ -13,7 +13,7 @@ block0:[ 1a] End value:reg5-f$291b20cb for-of-continue-with-block-scope.js:2:15+f$e86a2487 for-of-continue-with-block-scope.js:2:15Registers: 14Blocks: 7Locals: t~0, o~1@@ -24,45 +24,45 @@ block0:[ 3] NewArray dst:t~0[ 6] CreateLexicalEnvironment dst:reg6, parent:reg4, capacity:1, is_catch_environment:false[ 12] CreateVariable `r`, is_immutable:true, is_global:false, is_strict:true- [ 1d] Mov dst:reg5, src:arg0- [ 20] SetLexicalEnvironment environment:reg4- [ 22] GetIterator dst_iterator_object:reg6, dst_iterator_next:reg7, dst_iterator_done:reg8, iterable:reg5, fast_array_mode_allowed:true+ [ 1a] Mov dst:reg5, src:arg0+ [ 1d] SetLexicalEnvironment environment:reg4+ [ 1f] GetIterator dst_iterator_object:reg6, dst_iterator_next:reg7, dst_iterator_done:reg8, iterable:reg5, fast_array_mode_allowed:trueblock1:- [ 2e] IteratorNextUnpack dst_value:reg9, dst_done:reg10, iterator_object:reg6, iterator_next:reg7, iterator_done:reg8- [ 34] JumpTrue condition:reg10, target:block6+ [ 28] IteratorNextUnpack dst_value:reg9, dst_done:reg10, iterator_object:reg6, iterator_next:reg7, iterator_done:reg8+ [ 2e] JumpTrue condition:reg10, target:block6block2:- [ 3a] CreateLexicalEnvironment dst:reg11, parent:reg4, capacity:1, is_catch_environment:false- [ 46] CreateVariable `r`, is_immutable:true, is_global:false, is_strict:true- [ 51] InitializeLexicalBinding `r`, src:reg9- [ 5e] GetBinding value_feedback:0, dst:reg12, `r`- [ 6d] Not dst:reg12, src:reg12- [ 70] JumpFalse condition:reg12, target:block4+ [ 34] CreateLexicalEnvironment dst:reg11, parent:reg4, capacity:1, is_catch_environment:false+ [ 40] CreateVariable `r`, is_immutable:true, is_global:false, is_strict:true+ [ 48] InitializeLexicalBinding `r`, src:reg9+ [ 55] GetBinding value_feedback:0, dst:reg12, `r`+ [ 64] Not dst:reg12, src:reg12+ [ 67] JumpFalse condition:reg12, target:block4block3:- [ 76] GetById value_feedback:1, dst:reg12, base:t~0, `push`- [ 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+ [ 6d] GetById value_feedback:1, dst:reg12, base:t~0, `push`+ [ 77] GetBinding value_feedback:2, dst:reg13, `r`+ [ 86] Call value_feedback:3, call_feedback:0, dst:reg12, callee:reg12, this_value:t~0, arguments:[reg13]+ [ 90] SetLexicalEnvironment environment:reg4+ [ 92] Jump target:block1block4:- [ 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+ [ 97] GetById value_feedback:4, dst:reg12, base:t~0, `find`+ [ a1] NewFunction dst:reg13, shared_function_data_index:0+ [ ab] Call value_feedback:5, call_feedback:1, dst:reg12, callee:reg12, this_value:t~0, arguments:[reg13]+ [ b5] Mov dst:o~1, src:reg12+ [ b8] SetLexicalEnvironment environment:reg4+ [ ba] JumpLoop target:block1block5:- [ 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+ [ bf] Catch value_feedback:6, dst:reg11+ [ c3] SetLexicalEnvironment environment:reg4+ [ c5] IteratorClose iterator_object:reg6, iterator_next:reg7, iterator_done:reg8, completion_value:reg11+ [ cd] Throw src:reg11block6:- [ db] Return value:t~0+ [ cf] Return value:t~0Exception handlers:- [ 3a .. c8] => handler block5+ [ 34 .. bf] => handler block5diff --git a/Tests/LibJS/Bytecode/expected/for-of-iteration-env-capacity.txt b/Tests/LibJS/Bytecode/expected/for-of-iteration-env-capacity.txtindex 66ae5ec9774..f0a1e9768f9 100644--- a/Tests/LibJS/Bytecode/expected/for-of-iteration-env-capacity.txt+++ b/Tests/LibJS/Bytecode/expected/for-of-iteration-env-capacity.txt@@ -1,4 +1,4 @@-$f1b0a636 for-of-iteration-env-capacity.js:1:12+$10a72bd0 for-of-iteration-env-capacity.js:1:12Registers: 13Blocks: 5Locals: x~0@@ -15,21 +15,21 @@ block0:[ 28] GetIterator dst_iterator_object:reg7, dst_iterator_next:reg8, dst_iterator_done:reg9, iterable:reg6, fast_array_mode_allowed:trueblock1:- [ 34] IteratorNextUnpack dst_value:reg10, dst_done:reg11, iterator_object:reg7, iterator_next:reg8, iterator_done:reg9- [ 3a] JumpTrue condition:reg11, target:block4+ [ 31] IteratorNextUnpack dst_value:reg10, dst_done:reg11, iterator_object:reg7, iterator_next:reg8, iterator_done:reg9+ [ 37] JumpTrue condition:reg11, target:block4block2:- [ 40] Mov dst:x~0, src:reg10- [ 43] Mov dst:reg5, src:x~0- [ 46] JumpLoop target:block1+ [ 3d] Mov dst:x~0, src:reg10+ [ 40] Mov dst:reg5, src:x~0+ [ 43] JumpLoop target:block1block3:- [ 4b] Catch value_feedback:0, dst:reg12- [ 4f] IteratorClose iterator_object:reg7, iterator_next:reg8, iterator_done:reg9, completion_value:reg12- [ 5a] Throw src:reg12+ [ 48] Catch value_feedback:0, dst:reg12+ [ 4c] IteratorClose iterator_object:reg7, iterator_next:reg8, iterator_done:reg9, completion_value:reg12+ [ 54] Throw src:reg12block4:- [ 5c] End value:reg5+ [ 56] End value:reg5Exception handlers:- [ 40 .. 4b] => handler block3+ [ 3d .. 48] => handler block3diff --git a/Tests/LibJS/Bytecode/expected/for-of-iterator-close.txt b/Tests/LibJS/Bytecode/expected/for-of-iterator-close.txtindex cb20c421990..ea236565ff5 100644--- a/Tests/LibJS/Bytecode/expected/for-of-iterator-close.txt+++ b/Tests/LibJS/Bytecode/expected/for-of-iterator-close.txt@@ -17,7 +17,7 @@ block0:[ 59] End value:reg5-forOfBreak$f672c20f for-of-iterator-close.js:2:16+forOfBreak$22209966 for-of-iterator-close.js:2:16Registers: 12Blocks: 7Locals: x~0@@ -32,34 +32,34 @@ block0:[ 22] GetIterator dst_iterator_object:reg6, dst_iterator_next:reg7, dst_iterator_done:reg8, iterable:reg5, fast_array_mode_allowed:trueblock1:- [ 2e] IteratorNextUnpack dst_value:reg9, dst_done:reg10, iterator_object:reg6, iterator_next:reg7, iterator_done:reg8- [ 34] JumpTrue condition:reg10, target:block6+ [ 2b] IteratorNextUnpack dst_value:reg9, dst_done:reg10, iterator_object:reg6, iterator_next:reg7, iterator_done:reg8+ [ 31] JumpTrue condition:reg10, target:block6block2:- [ 3a] Mov dst:x~0, src:reg9- [ 3d] JumpStrictlyEqualsRhsInt32 arith_feedback:0, lhs:x~0, rhs:2, true_target:block3, false_target:block4+ [ 37] Mov dst:x~0, src:reg9+ [ 3a] JumpStrictlyEqualsRhsInt32 arith_feedback:0, lhs:x~0, rhs:2, true_target:block3, false_target:block4block3:- [ 4d] IteratorClose iterator_object:reg6, iterator_next:reg7, iterator_done:reg8, completion_value:Undefined- [ 58] Jump target:block6+ [ 4a] IteratorClose iterator_object:reg6, iterator_next:reg7, iterator_done:reg8, completion_value:Undefined+ [ 52] Jump target:block6block4:- [ 5d] JumpLoop target:block1+ [ 57] JumpLoop target:block1block5:- [ 62] Catch value_feedback:0, dst:reg11- [ 66] IteratorClose iterator_object:reg6, iterator_next:reg7, iterator_done:reg8, completion_value:reg11- [ 71] Throw src:reg11+ [ 5c] Catch value_feedback:0, dst:reg11+ [ 60] IteratorClose iterator_object:reg6, iterator_next:reg7, iterator_done:reg8, completion_value:reg11+ [ 68] Throw src:reg11block6:- [ 73] End value:Undefined+ [ 6a] End value:UndefinedException handlers:- [ 3a .. 4d] => handler block5- [ 5d .. 62] => handler block5+ [ 37 .. 4a] => handler block5+ [ 57 .. 5c] => handler block5-forOfReturn$d2d74721 for-of-iterator-close.js:9:16+forOfReturn$040d0098 for-of-iterator-close.js:9:16Registers: 12Blocks: 5Locals: x~0@@ -72,29 +72,29 @@ block0:[ 1] Mov dst:x~0, src:<Empty>[ 4] NewPrimitiveArray dst:reg5, elements:[1, 2, 3][ 22] GetIterator dst_iterator_object:reg6, dst_iterator_next:reg7, dst_iterator_done:reg8, iterable:reg5, fast_array_mode_allowed:true- [ 2e] IteratorNextUnpack dst_value:reg9, dst_done:reg10, iterator_object:reg6, iterator_next:reg7, iterator_done:reg8- [ 34] JumpTrue condition:reg10, target:block4+ [ 2b] IteratorNextUnpack dst_value:reg9, dst_done:reg10, iterator_object:reg6, iterator_next:reg7, iterator_done:reg8+ [ 31] JumpTrue condition:reg10, target:block4block1:- [ 3a] Mov dst:x~0, src:reg9+ [ 37] Mov dst:x~0, src:reg9block2:- [ 3d] IteratorClose iterator_object:reg6, iterator_next:reg7, iterator_done:reg8, completion_value:Undefined- [ 48] Return value:x~0+ [ 3a] IteratorClose iterator_object:reg6, iterator_next:reg7, iterator_done:reg8, completion_value:Undefined+ [ 42] Return value:x~0block3:- [ 4a] Catch value_feedback:0, dst:reg11- [ 4e] IteratorClose iterator_object:reg6, iterator_next:reg7, iterator_done:reg8, completion_value:reg11- [ 59] Throw src:reg11+ [ 44] Catch value_feedback:0, dst:reg11+ [ 48] IteratorClose iterator_object:reg6, iterator_next:reg7, iterator_done:reg8, completion_value:reg11+ [ 50] Throw src:reg11block4:- [ 5b] End value:Undefined+ [ 52] End value:UndefinedException handlers:- [ 3a .. 3d] => handler block3+ [ 37 .. 3a] => handler block3-forAwaitOfBreak$7fc05391 for-of-iterator-close.js:16:22+forAwaitOfBreak$95941960 for-of-iterator-close.js:16:22Registers: 18Blocks: 23Locals: x~0@@ -109,92 +109,92 @@ block0:[ 7] GetIterator dst_iterator_object:reg6, dst_iterator_next:reg7, dst_iterator_done:reg8, iterable:reg5, fast_array_mode_allowed:falseblock1:- [ 13] Call value_feedback:0, call_feedback:0, dst:reg11, callee:reg7, this_value:reg6- [ 1c] Mov dst:reg12, src:reg0- [ 1f] Await continuation_label:block2, argument:reg11+ [ 10] Call value_feedback:0, call_feedback:0, dst:reg11, callee:reg7, this_value:reg6+ [ 19] Mov dst:reg12, src:reg0+ [ 1c] Await continuation_label:block2, argument:reg11block2:- [ 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+ [ 22] Mov dst:reg12, src:reg0+ [ 25] GetCompletionFields type_dst:reg13, value_dst:reg14, completion:reg12+ [ 29] StrictlyEqualsRhsInt32 arith_feedback:0, dst:reg15, lhs:reg13, rhs:1+ [ 32] JumpIf condition:reg15, true_target:block4, false_target:block3block3:- [ 3f] Throw src:reg14+ [ 3c] Throw src:reg14block4:- [ 41] ThrowIfNotObject src:reg14- [ 43] GetById value_feedback:1, dst:reg10, base:reg14, `done`- [ 4d] JumpTrue condition:reg10, target:block22+ [ 3e] ThrowIfNotObject src:reg14+ [ 40] GetById value_feedback:1, dst:reg10, base:reg14, `done`+ [ 4a] JumpTrue condition:reg10, target:block22block5:- [ 53] GetById value_feedback:2, dst:reg9, base:reg14, `value`+ [ 50] GetById value_feedback:2, dst:reg9, base:reg14, `value`block6:- [ 5d] Mov dst:x~0, src:reg9- [ 60] JumpStrictlyEqualsRhsInt32 arith_feedback:1, lhs:x~0, rhs:2, true_target:block7, false_target:block13+ [ 5a] Mov dst:x~0, src:reg9+ [ 5d] JumpStrictlyEqualsRhsInt32 arith_feedback:1, lhs:x~0, rhs:2, true_target:block7, false_target:block13block7:- [ 70] GetMethod dst:reg11, object:reg6, `return`- [ 78] JumpUndefined condition:reg11, true_target:block12, false_target:block8+ [ 6d] GetMethod dst:reg11, object:reg6, `return`+ [ 75] JumpUndefined condition:reg11, true_target:block12, false_target:block8block8:- [ 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+ [ 7f] Call value_feedback:3, call_feedback:1, dst:reg12, callee:reg11, this_value:reg6+ [ 88] Mov dst:reg13, src:reg0+ [ 8b] Await continuation_label:block9, argument:reg12block9:- [ 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+ [ 91] Mov dst:reg13, src:reg0+ [ 94] GetCompletionFields type_dst:reg14, value_dst:reg15, completion:reg13+ [ 98] StrictlyEqualsRhsInt32 arith_feedback:2, dst:reg16, lhs:reg14, rhs:1+ [ a1] JumpIf condition:reg16, true_target:block11, false_target:block10block10:- [ ae] Throw src:reg15+ [ ab] Throw src:reg15block11:- [ b0] ThrowIfNotObject src:reg15+ [ ad] ThrowIfNotObject src:reg15block12:- [ b2] Jump target:block22+ [ af] Jump target:block22block13:- [ b7] JumpLoop target:block1+ [ b4] JumpLoop target:block1block14:- [ bc] Catch value_feedback:4, dst:reg11+ [ b9] Catch value_feedback:4, dst:reg11block15:- [ c0] GetMethod dst:reg12, object:reg6, `return`- [ c8] JumpUndefined condition:reg12, true_target:block21, false_target:block16+ [ bd] GetMethod dst:reg12, object:reg6, `return`+ [ c5] JumpUndefined condition:reg12, true_target:block21, false_target:block16block16:- [ 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+ [ cf] Call value_feedback:5, call_feedback:2, dst:reg13, callee:reg12, this_value:reg6+ [ d8] Mov dst:reg14, src:reg0+ [ db] Await continuation_label:block17, argument:reg13block17:- [ 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+ [ e1] Mov dst:reg14, src:reg0+ [ e4] GetCompletionFields type_dst:reg15, value_dst:reg16, completion:reg14+ [ e8] StrictlyEqualsRhsInt32 arith_feedback:3, dst:reg17, lhs:reg15, rhs:1+ [ f1] JumpIf condition:reg17, true_target:block19, false_target:block18block18:- [ fe] Throw src:reg16+ [ fb] Throw src:reg16block19:- [ 100] Jump target:block21+ [ fd] Jump target:block21block20:- [ 105] Catch value_feedback:6, dst:reg12+ [ 102] Catch value_feedback:6, dst:reg12block21:- [ 109] Throw src:reg11+ [ 106] Throw src:reg11block22:- [ 10b] Yield value:Undefined+ [ 108] Yield value:UndefinedException handlers:- [ 5d .. 70] => handler block14- [ b7 .. bc] => handler block14- [ c0 .. 105] => handler block20+ [ 5a .. 6d] => handler block14+ [ b4 .. b9] => handler block14+ [ bd .. 102] => handler block20diff --git a/Tests/LibJS/Bytecode/expected/generator-yield-star.txt b/Tests/LibJS/Bytecode/expected/generator-yield-star.txtindex b065d547167..6e377202a3f 100644--- a/Tests/LibJS/Bytecode/expected/generator-yield-star.txt+++ b/Tests/LibJS/Bytecode/expected/generator-yield-star.txt@@ -13,7 +13,7 @@ block0:[ 2d] End value:reg5-f$7e50c638 generator-yield-star.js:4:5+f$5f5a409e generator-yield-star.js:4:5Registers: 21Blocks: 19Constants:@@ -26,78 +26,78 @@ block0:block1:[ 8] GetIterator dst_iterator_object:reg8, dst_iterator_next:reg9, dst_iterator_done:reg10, iterable:arg0, fast_array_mode_allowed:false- [ 14] Mov dst:reg6, src:Int32(1)- [ 17] Mov dst:reg7, src:Undefined- [ 1a] Jump target:block2+ [ 11] Mov dst:reg6, src:Int32(1)+ [ 14] Mov dst:reg7, src:Undefined+ [ 17] Jump target:block2block2:- [ 1f] StrictlyEqualsRhsInt32 arith_feedback:0, dst:reg11, lhs:reg6, rhs:1- [ 28] JumpIf condition:reg11, true_target:block3, false_target:block6+ [ 1c] StrictlyEqualsRhsInt32 arith_feedback:0, dst:reg11, lhs:reg6, rhs:1+ [ 25] JumpIf condition:reg11, true_target:block3, false_target:block6block3:- [ 32] Call value_feedback:0, call_feedback:0, dst:reg12, callee:reg9, this_value:reg8, arguments:[reg7]- [ 3c] ThrowIfNotObject src:reg12- [ 3e] GetById value_feedback:1, dst:reg13, base:reg12, `done`- [ 48] JumpIf condition:reg13, true_target:block4, false_target:block5+ [ 2f] Call value_feedback:0, call_feedback:0, dst:reg12, callee:reg9, this_value:reg8, arguments:[reg7]+ [ 39] ThrowIfNotObject src:reg12+ [ 3b] GetById value_feedback:1, dst:reg13, base:reg12, `done`+ [ 45] JumpIf condition:reg13, true_target:block4, false_target:block5block4:- [ 52] GetById value_feedback:2, dst:reg14, base:reg12, `value`- [ 5c] Jump target:block18+ [ 4f] GetById value_feedback:2, dst:reg14, base:reg12, `value`+ [ 59] Jump target:block18block5:- [ 61] YieldIteratorResult continuation_label:block17, value:reg12+ [ 5e] YieldIteratorResult continuation_label:block17, value:reg12block6:- [ 67] StrictlyEqualsRhsInt32 arith_feedback:1, dst:reg15, lhs:reg6, rhs:5- [ 70] JumpIf condition:reg15, true_target:block7, false_target:block12+ [ 64] StrictlyEqualsRhsInt32 arith_feedback:1, dst:reg15, lhs:reg6, rhs:5+ [ 6d] JumpIf condition:reg15, true_target:block7, false_target:block12block7:- [ 7a] GetMethod dst:reg16, object:reg8, `throw`- [ 82] JumpUndefined condition:reg16, true_target:block11, false_target:block8+ [ 77] GetMethod dst:reg16, object:reg8, `throw`+ [ 7f] JumpUndefined condition:reg16, true_target:block11, false_target:block8block8:- [ 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+ [ 89] Call value_feedback:3, call_feedback:1, dst:reg12, callee:reg16, this_value:reg8, arguments:[reg7]+ [ 93] ThrowIfNotObject src:reg12+ [ 95] GetById value_feedback:4, dst:reg13, base:reg12, `done`+ [ 9f] JumpIf condition:reg13, true_target:block9, false_target:block10block9:- [ ac] GetById value_feedback:5, dst:reg14, base:reg12, `value`- [ b6] Jump target:block18+ [ a9] GetById value_feedback:5, dst:reg14, base:reg12, `value`+ [ b3] Jump target:block18block10:- [ bb] YieldIteratorResult continuation_label:block17, value:reg12+ [ b8] YieldIteratorResult continuation_label:block17, value:reg12block11:- [ 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+ [ be] IteratorClose iterator_object:reg8, iterator_next:reg9, iterator_done:reg10, completion_value:Undefined+ [ c6] NewTypeError dst:reg17, yield* protocol violation: iterator must have a throw method+ [ cb] Throw src:reg17block12:- [ d3] GetMethod dst:reg18, object:reg8, `return`- [ db] JumpUndefined condition:reg18, true_target:block13, false_target:block14+ [ cd] GetMethod dst:reg18, object:reg8, `return`+ [ d5] JumpUndefined condition:reg18, true_target:block13, false_target:block14block13:- [ e5] Yield value:reg7+ [ df] Yield value:reg7block14:- [ 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+ [ e6] Call value_feedback:6, call_feedback:2, dst:reg19, callee:reg18, this_value:reg8, arguments:[reg7]+ [ f0] ThrowIfNotObject src:reg19+ [ f2] GetById value_feedback:7, dst:reg13, base:reg19, `done`+ [ fc] JumpIf condition:reg13, true_target:block15, false_target:block16block15:- [ 10c] GetById value_feedback:8, dst:reg20, base:reg19, `value`- [ 116] Yield value:reg20+ [ 106] GetById value_feedback:8, dst:reg20, base:reg19, `value`+ [ 110] Yield value:reg20block16:- [ 11d] YieldIteratorResult continuation_label:block17, value:reg19+ [ 117] YieldIteratorResult continuation_label:block17, value:reg19block17:- [ 123] Mov dst:reg5, src:reg0- [ 126] GetCompletionFields type_dst:reg6, value_dst:reg7, completion:reg5- [ 12a] Jump target:block2+ [ 11d] Mov dst:reg5, src:reg0+ [ 120] GetCompletionFields type_dst:reg6, value_dst:reg7, completion:reg5+ [ 124] Jump target:block2block18:- [ 12f] Mov dst:reg5, src:reg14- [ 132] Yield value:Undefined+ [ 129] Mov dst:reg5, src:reg14+ [ 12c] Yield value:Undefineddiff --git a/Tests/LibJS/Bytecode/expected/if-else-register-lifetime.txt b/Tests/LibJS/Bytecode/expected/if-else-register-lifetime.txtindex 4817d2efa39..528e44a937f 100644--- a/Tests/LibJS/Bytecode/expected/if-else-register-lifetime.txt+++ b/Tests/LibJS/Bytecode/expected/if-else-register-lifetime.txt@@ -13,7 +13,7 @@ block0:[ 25] End value:reg5-test$7aed5dae if-else-register-lifetime.js:2:9+test$99e3e348 if-else-register-lifetime.js:2:9Registers: 7Blocks: 10Locals: a~0, i~1, j~2@@ -42,28 +42,28 @@ 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[ 3d] PutByValue keyed_feedback:1, base:arg0, property:j~2, src:reg5, kind:Normal- [ 49] Jump target:block5+ [ 46] Jump target:block5block4:- [ 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+ [ 4b] GetGlobal value_feedback:1, dst:reg5, `parseInt`+ [ 54] SubRhsInt32 arith_feedback:2, dst:reg6, lhs:j~2, rhs:3+ [ 5d] GetByValue value_feedback:2, keyed_feedback:2, dst:reg6, base:arg0, property:reg6+ [ 67] Call value_feedback:3, call_feedback:0, dst:reg5, callee:reg5, this_value:Undefined, arguments:[reg6, Int32(1)]+ [ 72] PutByValue keyed_feedback:3, base:arg0, property:j~2, src:reg5, kind:Normalblock5:- [ 81] Increment arith_feedback:3, dst:j~2+ [ 7b] Increment arith_feedback:3, dst:j~2block6:- [ 85] JumpLessThanLoopRhsInt32 arith_feedback:4, lhs:j~2, rhs:10, true_target:block2, false_target:block7+ [ 7f] JumpLessThanLoopRhsInt32 arith_feedback:4, lhs:j~2, rhs:10, true_target:block2, false_target:block7block7:- [ 95] Increment arith_feedback:5, dst:i~1+ [ 8f] Increment arith_feedback:5, dst:i~1block8:- [ 99] JumpLessThanLoopRhsInt32 arith_feedback:6, lhs:i~1, rhs:10, true_target:block1, false_target:block9+ [ 93] JumpLessThanLoopRhsInt32 arith_feedback:6, lhs:i~1, rhs:10, true_target:block1, false_target:block9block9:- [ 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+ [ a3] GetGlobal value_feedback:4, dst:reg5, `parseInt`+ [ ac] Call value_feedback:5, call_feedback:1, dst:reg5, callee:reg5, this_value:Undefined, arguments:[a~0]+ [ b6] Return value:reg5diff --git a/Tests/LibJS/Bytecode/expected/indexed-append-guards.txt b/Tests/LibJS/Bytecode/expected/indexed-append-guards.txtindex ed1d36fee12..642f6572c38 100644--- a/Tests/LibJS/Bytecode/expected/indexed-append-guards.txt+++ b/Tests/LibJS/Bytecode/expected/indexed-append-guards.txt@@ -1,4 +1,4 @@-$84864d08 indexed-append-guards.js:1:1+$f2d870d1 indexed-append-guards.js:1:1Registers: 10Blocks: 7Constants:@@ -21,60 +21,60 @@ block0:[ 10] GetById value_feedback:1, dst:reg7, base:reg6, `preventExtensions`[ 1a] NewObject dst:reg8[ 1e] PutByValue keyed_feedback:0, base:reg8, property:Int32(0), src:Int32(1), kind:Own- [ 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+ [ 27] Call value_feedback:2, call_feedback:0, dst:reg6, callee:reg7, this_value:reg6, arguments:[reg8]+ [ 31] DynamicInitializeLexicalBinding `object`, src:reg6+ [ 38] GetGlobal value_feedback:3, dst:reg6, `expect_type_error`+ [ 41] NewFunction dst:reg7, shared_function_data_index:0+ [ 4b] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]+ [ 55] GetGlobal value_feedback:5, dst:reg6, `object`+ [ 5e] GetByValue value_feedback:6, keyed_feedback:1, dst:reg6, base:reg6, property:Int32(1)+ [ 68] StrictlyInequals arith_feedback:0, dst:reg6, lhs:reg6, rhs:Undefined+ [ 6e] Mov dst:reg5, src:Undefined+ [ 71] JumpFalse condition:reg6, target:block2block1:- [ 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+ [ 77] GetGlobal value_feedback:7, dst:reg6, `Error`+ [ 80] CallConstruct value_feedback:8, call_feedback:2, dst:reg6, callee:reg6, arguments:[String("Indexed object append mutated")]+ [ 89] Throw src:reg6block2:- [ 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+ [ 8b] NewPrimitiveArray dst:reg6, elements:[1, 2]+ [ a1] DynamicInitializeLexicalBinding `array`, src:reg6+ [ a8] GetGlobal value_feedback:9, dst:reg6, `Object`+ [ b1] GetById value_feedback:10, dst:reg7, base:reg6, `defineProperty`+ [ bb] GetGlobal value_feedback:11, dst:reg8, `array`+ [ c4] NewObject dst:reg9+ [ c8] InitObjectLiteralProperty object:reg9, `writable`, src:Bool(false), shape_cache_index:0, property_slot:0+ [ d6] CacheObjectShape object:reg9+ [ da] Call value_feedback:12, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8, String("length"), reg9]+ [ e6] GetGlobal value_feedback:13, dst:reg6, `expect_type_error`+ [ ef] NewFunction dst:reg7, shared_function_data_index:1+ [ f9] Call value_feedback:14, call_feedback:4, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]+ [ 103] GetGlobal value_feedback:15, dst:reg6, `array`+ [ 10c] GetLength value_feedback:16, keyed_feedback:2, dst:reg6, base:reg6+ [ 115] StrictlyInequalsRhsInt32 arith_feedback:1, dst:reg6, lhs:reg6, rhs:2+ [ 11e] Mov dst:reg5, src:Undefined+ [ 121] JumpFalse condition:reg6, target:block4block3:- [ 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+ [ 127] GetGlobal value_feedback:17, dst:reg6, `Error`+ [ 130] CallConstruct value_feedback:18, call_feedback:5, dst:reg6, callee:reg6, arguments:[String("Array length changed")]+ [ 139] Throw src:reg6block4:- [ 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+ [ 13b] GetGlobal value_feedback:19, dst:reg6, `array`+ [ 144] GetByValue value_feedback:20, keyed_feedback:3, dst:reg6, base:reg6, property:Int32(2)+ [ 14e] StrictlyInequals arith_feedback:2, dst:reg6, lhs:reg6, rhs:Undefined+ [ 154] Mov dst:reg5, src:Undefined+ [ 157] JumpFalse condition:reg6, target:block6block5:- [ 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+ [ 15d] GetGlobal value_feedback:21, dst:reg6, `Error`+ [ 166] CallConstruct value_feedback:22, call_feedback:6, dst:reg6, callee:reg6, arguments:[String("Array append mutated")]+ [ 16f] Throw src:reg6block6:- [ 174] End value:reg5+ [ 171] End value:reg5expect_type_error$16c63544 indexed-append-guards.js:4:9@@ -128,7 +128,7 @@ Exception handlers:[ 4 .. 12] => handler block2-$735b541a indexed-append-guards.js:18:5+$82d696e7 indexed-append-guards.js:18:5Registers: 6Blocks: 1Constants:@@ -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- [ 16] End value:Undefined+ [ 13] End value:Undefined-$64569340 indexed-append-guards.js:26:5+$7695c71d indexed-append-guards.js:26:5Registers: 7Blocks: 1Constants:@@ -156,4 +156,4 @@ block0:[ a] GetGlobal value_feedback:1, dst:reg6, `array`[ 13] GetLength value_feedback:2, keyed_feedback:0, dst:reg6, base:reg6[ 1c] PutByValue keyed_feedback:1, base:reg5, property:reg6, src:Int32(3), kind:Normal- [ 28] End value:Undefined+ [ 25] End value:Undefineddiff --git a/Tests/LibJS/Bytecode/expected/lexical-env-teardown.txt b/Tests/LibJS/Bytecode/expected/lexical-env-teardown.txtindex 1e45297f36b..be49c67f75a 100644--- a/Tests/LibJS/Bytecode/expected/lexical-env-teardown.txt+++ b/Tests/LibJS/Bytecode/expected/lexical-env-teardown.txt@@ -1,4 +1,4 @@-$19c7d8cb lexical-env-teardown.js:13:1+$4e922434 lexical-env-teardown.js:13:1Registers: 9Blocks: 1Constants:@@ -35,19 +35,19 @@ block0:[ 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+ [ 105] NewFunction dst:reg6, shared_function_data_index:0+ [ 10f] InitializeLexicalBinding `myName`, src:reg6+ [ 11c] SetLexicalEnvironment environment:reg4+ [ 11e] SetGlobal `namedFn`, src:reg6+ [ 125] GetGlobal value_feedback:25, dst:reg6, `console`+ [ 12e] GetById value_feedback:26, dst:reg7, base:reg6, `log`+ [ 138] GetGlobal value_feedback:27, dst:reg8, `namedFn`+ [ 141] Call value_feedback:28, call_feedback:10, dst:reg8, callee:reg8, this_value:Undefined+ [ 14a] Call value_feedback:29, call_feedback:11, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]+ [ 154] End value:reg5+++withTeardown$54ae836d lexical-env-teardown.js:7:9Registers: 9Blocks: 1Locals: inner~0@@ -58,18 +58,18 @@ withTeardown$a4dac27e lexical-env-teardown.js:7:9block0:[ 0] Enter[ 1] CreateVariable `outer`, is_immutable:false, is_global:false, is_strict:false- [ c] GetLexicalEnvironment dst:reg4- [ e] InitializeLexicalBinding `outer`, src:Int32(1)- [ 1b] NewObject dst:reg5- [ 1f] InitObjectLiteralProperty object:reg5, `x`, src:Int32(10), shape_cache_index:0, property_slot:0- [ 2d] CacheObjectShape object:reg5- [ 31] EnterObjectEnvironment dst:reg6, object:reg5- [ 34] DynamicGetBinding value_feedback:0, dst:reg7, `x`- [ 3d] DynamicGetBinding value_feedback:1, dst:reg8, `outer`- [ 46] Add arith_feedback:0, dst:inner~0, lhs:reg7, rhs:reg8- [ 4c] SetLexicalEnvironment environment:reg4- [ 4e] GetBinding value_feedback:2, dst:reg5, `outer`- [ 5d] Return value:reg5+ [ 9] GetLexicalEnvironment dst:reg4+ [ b] InitializeLexicalBinding `outer`, src:Int32(1)+ [ 18] NewObject dst:reg5+ [ 1c] InitObjectLiteralProperty object:reg5, `x`, src:Int32(10), shape_cache_index:0, property_slot:0+ [ 2a] CacheObjectShape object:reg5+ [ 2e] EnterObjectEnvironment dst:reg6, object:reg5+ [ 31] DynamicGetBinding value_feedback:0, dst:reg7, `x`+ [ 3a] DynamicGetBinding value_feedback:1, dst:reg8, `outer`+ [ 43] Add arith_feedback:0, dst:inner~0, lhs:reg7, rhs:reg8+ [ 49] SetLexicalEnvironment environment:reg4+ [ 4b] GetBinding value_feedback:2, dst:reg5, `outer`+ [ 5a] Return value:reg5blockTeardown$e0c89ee5 lexical-env-teardown.js:17:9@@ -125,7 +125,7 @@ block4:[ 57] Return value:outer~0-forOfTeardown$0e0eff50 lexical-env-teardown.js:38:9+forOfTeardown$2d0584ea lexical-env-teardown.js:38:9Registers: 12Blocks: 5Locals: outer~0, v~1@@ -141,23 +141,23 @@ block0:[ 1d] GetIterator dst_iterator_object:reg6, dst_iterator_next:reg7, dst_iterator_done:reg8, iterable:reg5, fast_array_mode_allowed:trueblock1:- [ 29] IteratorNextUnpack dst_value:reg9, dst_done:reg10, iterator_object:reg6, iterator_next:reg7, iterator_done:reg8- [ 2f] JumpTrue condition:reg10, target:block4+ [ 26] IteratorNextUnpack dst_value:reg9, dst_done:reg10, iterator_object:reg6, iterator_next:reg7, iterator_done:reg8+ [ 2c] JumpTrue condition:reg10, target:block4block2:- [ 35] Mov dst:v~1, src:reg9- [ 38] JumpLoop target:block1+ [ 32] Mov dst:v~1, src:reg9+ [ 35] JumpLoop target:block1block3:- [ 3d] Catch value_feedback:0, dst:reg11- [ 41] IteratorClose iterator_object:reg6, iterator_next:reg7, iterator_done:reg8, completion_value:reg11- [ 4c] Throw src:reg11+ [ 3a] Catch value_feedback:0, dst:reg11+ [ 3e] IteratorClose iterator_object:reg6, iterator_next:reg7, iterator_done:reg8, completion_value:reg11+ [ 46] Throw src:reg11block4:- [ 4e] Return value:outer~0+ [ 48] Return value:outer~0Exception handlers:- [ 35 .. 3d] => handler block3+ [ 32 .. 3a] => handler block3catchTeardown$208117d8 lexical-env-teardown.js:48:9diff --git a/Tests/LibJS/Bytecode/expected/mapped-arguments-parameter-bindings.txt b/Tests/LibJS/Bytecode/expected/mapped-arguments-parameter-bindings.txtindex e2b79fdc816..f655e1fd127 100644--- a/Tests/LibJS/Bytecode/expected/mapped-arguments-parameter-bindings.txt+++ b/Tests/LibJS/Bytecode/expected/mapped-arguments-parameter-bindings.txt@@ -15,7 +15,7 @@ block0:[ 19] End value:reg5-forward$a115a596 mapped-arguments-parameter-bindings.js:2:5+forward$50e96685 mapped-arguments-parameter-bindings.js:2:5Registers: 7Blocks: 1Locals: arguments~0@@ -25,14 +25,14 @@ forward$a115a596 mapped-arguments-parameter-bindings.js:2:5block0:[ 0] Enter[ 1] CreateArguments dst:arguments~0, is_immutable:false, creates_parameter_bindings:true- [ 9] InitializeLexicalBinding `a`, src:Undefined- [ 16] SetLexicalBinding `a`, src:arg0- [ 23] InitializeLexicalBinding `b`, src:Undefined- [ 30] SetLexicalBinding `b`, src:arg1- [ 3d] SetLexicalBinding `a`, src:arg2- [ 4a] GetLength value_feedback:0, keyed_feedback:0, dst:reg5, base:arguments~0- [ 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+ [ 6] InitializeLexicalBinding `a`, src:Undefined+ [ 13] SetLexicalBinding `a`, src:arg0+ [ 20] InitializeLexicalBinding `b`, src:Undefined+ [ 2d] SetLexicalBinding `b`, src:arg1+ [ 3a] SetLexicalBinding `a`, src:arg2+ [ 47] GetLength value_feedback:0, keyed_feedback:0, dst:reg5, base:arguments~0+ [ 50] GetBinding value_feedback:1, dst:reg6, `a`+ [ 5f] Add arith_feedback:0, dst:reg5, lhs:reg5, rhs:reg6+ [ 65] GetBinding value_feedback:2, dst:reg6, `b`+ [ 74] Add arith_feedback:1, dst:reg5, lhs:reg5, rhs:reg6+ [ 7a] Return value:reg5diff --git a/Tests/LibJS/Bytecode/expected/named-class-expression-no-lhs-name-leak.txt b/Tests/LibJS/Bytecode/expected/named-class-expression-no-lhs-name-leak.txtindex b6bf0a6ee61..83a884561e2 100644--- a/Tests/LibJS/Bytecode/expected/named-class-expression-no-lhs-name-leak.txt+++ b/Tests/LibJS/Bytecode/expected/named-class-expression-no-lhs-name-leak.txt@@ -1,4 +1,4 @@-$3ebbecd1 named-class-expression-no-lhs-name-leak.js:1:1+$0392d2ad named-class-expression-no-lhs-name-leak.js:1:1Registers: 14Blocks: 12Constants:@@ -12,47 +12,47 @@ block0:[ 6] NewArray dst:reg6[ 9] Mov dst:reg7, src:Bool(false)[ c] GetIterator dst_iterator_object:reg8, dst_iterator_next:reg9, dst_iterator_done:reg10, iterable:reg6, fast_array_mode_allowed:true- [ 18] IteratorNextUnpack dst_value:reg11, dst_done:reg7, iterator_object:reg8, iterator_next:reg9, iterator_done:reg10+ [ 15] IteratorNextUnpack dst_value:reg11, dst_done:reg7, iterator_object:reg8, iterator_next:reg9, iterator_done:reg10block1:- [ 1e] JumpFalse condition:reg7, target:block3+ [ 1b] JumpFalse condition:reg7, target:block3block2:- [ 24] Mov dst:reg11, src:Undefined+ [ 21] Mov dst:reg11, src:Undefinedblock3:- [ 27] JumpUndefined condition:reg11, true_target:block4, false_target:block5+ [ 24] JumpUndefined condition:reg11, true_target:block4, false_target:block5block4:- [ 31] CreateLexicalEnvironment dst:reg13, parent:reg4, capacity:1, is_catch_environment:false- [ 3d] CreateVariable `Foo`, is_immutable:true, is_global:false, is_strict:true- [ 48] SetLexicalEnvironment environment:reg4- [ 4a] NewClass dst:reg12, class_environment:reg13, class_blueprint_index:0, element_keys_are_in_array:false- [ 59] Mov dst:reg11, src:reg12+ [ 2e] CreateLexicalEnvironment dst:reg13, parent:reg4, capacity:1, is_catch_environment:false+ [ 3a] CreateVariable `Foo`, is_immutable:true, is_global:false, is_strict:true+ [ 42] SetLexicalEnvironment environment:reg4+ [ 44] NewClass dst:reg12, class_environment:reg13, class_blueprint_index:0, element_keys_are_in_array:false+ [ 53] Mov dst:reg11, src:reg12block5:- [ 5c] SetGlobal `C`, src:reg11+ [ 56] SetGlobal `C`, src:reg11block6:- [ 63] JumpTrue condition:reg10, target:block11+ [ 5d] JumpTrue condition:reg10, target:block11block7:- [ 69] IteratorClose iterator_object:reg8, iterator_next:reg9, iterator_done:reg10, completion_value:Undefined- [ 74] Jump target:block11+ [ 63] IteratorClose iterator_object:reg8, iterator_next:reg9, iterator_done:reg10, completion_value:Undefined+ [ 6b] Jump target:block11block8:- [ 79] Catch value_feedback:0, dst:reg11- [ 7d] SetLexicalEnvironment environment:reg4- [ 7f] JumpTrue condition:reg10, target:block10+ [ 70] Catch value_feedback:0, dst:reg11+ [ 74] SetLexicalEnvironment environment:reg4+ [ 76] JumpTrue condition:reg10, target:block10block9:- [ 85] IteratorClose iterator_object:reg8, iterator_next:reg9, iterator_done:reg10, completion_value:reg11+ [ 7c] IteratorClose iterator_object:reg8, iterator_next:reg9, iterator_done:reg10, completion_value:reg11block10:- [ 90] Throw src:reg11+ [ 84] Throw src:reg11block11:- [ 92] End value:reg5+ [ 86] End value:reg5Exception handlers:- [ 1e .. 63] => handler block8+ [ 1b .. 5d] => handler block8diff --git a/Tests/LibJS/Bytecode/expected/named-function-expression-unused-name.txt b/Tests/LibJS/Bytecode/expected/named-function-expression-unused-name.txtindex 12954532782..962770b4598 100644--- a/Tests/LibJS/Bytecode/expected/named-function-expression-unused-name.txt+++ b/Tests/LibJS/Bytecode/expected/named-function-expression-unused-name.txt@@ -15,7 +15,7 @@ block0:[ 29] End value:reg5-outer$ca6ecf5d named-function-expression-unused-name.js:6:20+outer$fba488d4 named-function-expression-unused-name.js:6:20Registers: 7Blocks: 1Locals: unused~0, used~1, nested~2@@ -23,26 +23,26 @@ outer$ca6ecf5d named-function-expression-unused-name.js:6:20block0:[ 0] Enter[ 1] CreateVariable `x`, is_immutable:false, is_global:false, is_strict:false- [ c] InitializeLexicalBinding `x`, src:arg0- [ 19] GetLexicalEnvironment dst:reg4- [ 1b] NewFunction dst:unused~0, shared_function_data_index:0- [ 25] CreateLexicalEnvironment dst:reg6, parent:reg4, capacity:1, is_catch_environment:false- [ 31] CreateVariable `g`, is_immutable:true, is_global:false, is_strict:false- [ 3c] NewFunction dst:reg5, shared_function_data_index:1- [ 46] InitializeLexicalBinding `g`, src:reg5- [ 53] SetLexicalEnvironment environment:reg4- [ 55] Mov dst:used~1, src:reg5- [ 58] CreateLexicalEnvironment dst:reg6, parent:reg4, capacity:1, is_catch_environment:false- [ 64] CreateVariable `h`, is_immutable:true, is_global:false, is_strict:false- [ 6f] NewFunction dst:reg5, shared_function_data_index:2- [ 79] InitializeLexicalBinding `h`, src:reg5- [ 86] SetLexicalEnvironment environment:reg4- [ 88] Mov dst:nested~2, src:reg5- [ 8b] NewArray dst:reg5, elements:[unused~0, used~1, nested~2]- [ 91] Return value:reg5+ [ 9] InitializeLexicalBinding `x`, src:arg0+ [ 16] GetLexicalEnvironment dst:reg4+ [ 18] NewFunction dst:unused~0, shared_function_data_index:0+ [ 22] CreateLexicalEnvironment dst:reg6, parent:reg4, capacity:1, is_catch_environment:false+ [ 2e] CreateVariable `g`, is_immutable:true, is_global:false, is_strict:false+ [ 36] NewFunction dst:reg5, shared_function_data_index:1+ [ 40] InitializeLexicalBinding `g`, src:reg5+ [ 4d] SetLexicalEnvironment environment:reg4+ [ 4f] Mov dst:used~1, src:reg5+ [ 52] CreateLexicalEnvironment dst:reg6, parent:reg4, capacity:1, is_catch_environment:false+ [ 5e] CreateVariable `h`, is_immutable:true, is_global:false, is_strict:false+ [ 66] NewFunction dst:reg5, shared_function_data_index:2+ [ 70] InitializeLexicalBinding `h`, src:reg5+ [ 7d] SetLexicalEnvironment environment:reg4+ [ 7f] Mov dst:nested~2, src:reg5+ [ 82] NewArray dst:reg5, elements:[unused~0, used~1, nested~2]+ [ 88] Return value:reg5-outerWithEval$8380f34b named-function-expression-unused-name.js:19:5+outerWithEval$d3ad325c named-function-expression-unused-name.js:19:5Registers: 7Blocks: 1@@ -51,7 +51,7 @@ block0:[ 1] GetLexicalEnvironment dst:reg4[ 3] CreateLexicalEnvironment dst:reg6, parent:reg4, capacity:1, is_catch_environment:false[ f] CreateVariable `i`, is_immutable:true, is_global:false, is_strict:false- [ 1a] NewFunction dst:reg5, shared_function_data_index:0- [ 24] InitializeLexicalBinding `i`, src:reg5- [ 31] SetLexicalEnvironment environment:reg4- [ 33] Return value:reg5+ [ 17] NewFunction dst:reg5, shared_function_data_index:0+ [ 21] InitializeLexicalBinding `i`, src:reg5+ [ 2e] SetLexicalEnvironment environment:reg4+ [ 30] Return value:reg5diff --git a/Tests/LibJS/Bytecode/expected/named-function-expression.txt b/Tests/LibJS/Bytecode/expected/named-function-expression.txtindex 75adb9008d9..e50bb5c0b93 100644--- a/Tests/LibJS/Bytecode/expected/named-function-expression.txt+++ b/Tests/LibJS/Bytecode/expected/named-function-expression.txt@@ -1,4 +1,4 @@-$0f66ea06 named-function-expression.js:4:1+$1ee22cd3 named-function-expression.js:4:1Registers: 9Blocks: 4Constants:@@ -12,21 +12,21 @@ block0:[ 6] ResolveGlobalBinding dst:reg6, `Oops`[ d] CreateLexicalEnvironment dst:reg8, parent:reg4, capacity:1, is_catch_environment:false[ 19] CreateVariable `Oops`, is_immutable:true, is_global:false, is_strict:false- [ 24] NewFunction dst:reg7, shared_function_data_index:0- [ 2e] InitializeLexicalBinding `Oops`, src:reg7- [ 3b] SetLexicalEnvironment environment:reg4- [ 3d] JumpIf condition:reg6, true_target:block1, false_target:block2+ [ 21] NewFunction dst:reg7, shared_function_data_index:0+ [ 2b] InitializeLexicalBinding `Oops`, src:reg7+ [ 38] SetLexicalEnvironment environment:reg4+ [ 3a] JumpIf condition:reg6, true_target:block1, false_target:block2block1:- [ 47] SetGlobal `Oops`, src:reg7- [ 4e] Jump target:block3+ [ 44] SetGlobal `Oops`, src:reg7+ [ 4b] Jump target:block3block2:- [ 53] SetResolvedBinding environment:Null, `Oops`, src:reg7- [ 59] Jump target:block3+ [ 50] SetResolvedBinding environment:Null, `Oops`, src:reg7+ [ 56] Jump target:block3block3:- [ 5e] Mov dst:reg5, src:reg7- [ 61] GetGlobal value_feedback:0, dst:reg6, `Oops`- [ 6a] GetById value_feedback:1, dst:reg5, base:reg6, `x`- [ 74] End value:reg5+ [ 5b] Mov dst:reg5, src:reg7+ [ 5e] GetGlobal value_feedback:0, dst:reg6, `Oops`+ [ 67] GetById value_feedback:1, dst:reg5, base:reg6, `x`+ [ 71] End value:reg5diff --git a/Tests/LibJS/Bytecode/expected/nested-member-base-identifier.txt b/Tests/LibJS/Bytecode/expected/nested-member-base-identifier.txtindex 9d162b80ec4..0bb7b0193e3 100644--- a/Tests/LibJS/Bytecode/expected/nested-member-base-identifier.txt+++ b/Tests/LibJS/Bytecode/expected/nested-member-base-identifier.txt@@ -17,7 +17,7 @@ block0:[ 32] End value:reg5-assign_nested$3f347afa nested-member-base-identifier.js:6:8+assign_nested$5173aed7 nested-member-base-identifier.js:6:8Registers: 6Blocks: 1Constants:@@ -29,4 +29,4 @@ block0:[ 1] SubRhsInt32 arith_feedback:0, dst:reg5, lhs:arg1, rhs:1[ a] GetByValue value_feedback:0, keyed_feedback:0, dst:reg5, base:arg0, property:reg5[ 14] PutById base:reg5, `shader`, src:Int32(0), kind:Normal- [ 20] End value:Undefined+ [ 1d] End value:Undefineddiff --git a/Tests/LibJS/Bytecode/expected/numeric-class-field-name.txt b/Tests/LibJS/Bytecode/expected/numeric-class-field-name.txtindex 30d60106a6f..87c3cc40f1d 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 @@-$4ec25988 numeric-class-field-name.js:1:1+$7ff812ff numeric-class-field-name.js:1:1Registers: 8Blocks: 1Constants:@@ -11,14 +11,14 @@ block0:[ 3] Mov dst:reg5, src:Undefined[ 6] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false[ 12] CreateVariable `C`, is_immutable:true, is_global:false, is_strict:true- [ 1d] SetLexicalEnvironment environment:reg4- [ 1f] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false, element_keys:[element_keys:Int32(42)]- [ 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- [ 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+ [ 1a] SetLexicalEnvironment environment:reg4+ [ 1c] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false, element_keys:[element_keys:Int32(42)]+ [ 2c] DynamicInitializeLexicalBinding `C`, src:reg6+ [ 33] GetGlobal value_feedback:0, dst:reg6, `C`+ [ 3c] CallConstruct value_feedback:1, call_feedback:0, dst:reg6, callee:reg6+ [ 44] GetByValue value_feedback:2, keyed_feedback:0, dst:reg6, base:reg6, property:Int32(42)+ [ 4e] GetById value_feedback:3, dst:reg5, base:reg6, `name`+ [ 58] End value:reg5C$16234245diff --git a/Tests/LibJS/Bytecode/expected/numeric-getter-no-lhs-name.txt b/Tests/LibJS/Bytecode/expected/numeric-getter-no-lhs-name.txtindex 47428e613e9..c4d03b22270 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 @@-$6b367bec numeric-getter-no-lhs-name.js:1:5+$1b0a3cdb numeric-getter-no-lhs-name.js:1:5Registers: 8Blocks: 1Constants:@@ -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- [ 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+ [ 1b] SetGlobal `obj`, src:reg6+ [ 22] GetGlobal value_feedback:0, dst:reg6, `obj`+ [ 2b] GetByValue value_feedback:1, keyed_feedback:1, dst:reg6, base:reg6, property:Int32(0)+ [ 35] Mov dst:reg5, src:reg6+ [ 38] End value:reg5get 0$1dbd230a numeric-getter-no-lhs-name.js:3:9diff --git a/Tests/LibJS/Bytecode/expected/numeric-index-object-literal.txt b/Tests/LibJS/Bytecode/expected/numeric-index-object-literal.txtindex 21c58393642..06a71fde589 100644--- a/Tests/LibJS/Bytecode/expected/numeric-index-object-literal.txt+++ b/Tests/LibJS/Bytecode/expected/numeric-index-object-literal.txt@@ -12,7 +12,7 @@ block0:[ 16] End value:reg5-test$d4d98d87 numeric-index-object-literal.js:2:5+test$060f46fe numeric-index-object-literal.js:2:5Registers: 6Blocks: 1Constants:@@ -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- [ 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+ [ e] PutByValue keyed_feedback:1, base:reg5, property:Int32(200), src:Int32(2), kind:Own+ [ 17] PutByValue keyed_feedback:2, base:reg5, property:Int32(300), src:Int32(3), kind:Own+ [ 20] Return value:reg5diff --git a/Tests/LibJS/Bytecode/expected/numeric-property-key.txt b/Tests/LibJS/Bytecode/expected/numeric-property-key.txtindex 51748b1e71d..d17a6186c5f 100644--- a/Tests/LibJS/Bytecode/expected/numeric-property-key.txt+++ b/Tests/LibJS/Bytecode/expected/numeric-property-key.txt@@ -1,4 +1,4 @@-$3a480999 numeric-property-key.js:4:5+$cb2544ee numeric-property-key.js:4:5Registers: 7Blocks: 1Constants:@@ -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- [ 14] SetGlobal `obj`, src:reg6- [ 1b] End value:reg5+ [ 11] SetGlobal `obj`, src:reg6+ [ 18] End value:reg5diff --git a/Tests/LibJS/Bytecode/expected/parameter-createvariable-order.txt b/Tests/LibJS/Bytecode/expected/parameter-createvariable-order.txtindex 600b2203e55..881b7433ac6 100644--- a/Tests/LibJS/Bytecode/expected/parameter-createvariable-order.txt+++ b/Tests/LibJS/Bytecode/expected/parameter-createvariable-order.txt@@ -15,7 +15,7 @@ block0:[ 19] End value:reg5-f$c5f59f11 parameter-createvariable-order.js:2:9+f$ff772bb8 parameter-createvariable-order.js:2:9Registers: 6Blocks: 1Locals: inner~0@@ -25,15 +25,15 @@ f$c5f59f11 parameter-createvariable-order.js:2:9block0:[ 0] Enter[ 1] CreateVariable `a`, is_immutable:false, is_global:false, is_strict:false- [ c] InitializeLexicalBinding `a`, src:arg0- [ 19] CreateVariable `b`, is_immutable:false, is_global:false, is_strict:false- [ 24] InitializeLexicalBinding `b`, src:arg1- [ 31] CreateVariable `c`, is_immutable:false, is_global:false, is_strict:false- [ 3c] InitializeLexicalBinding `c`, src:arg2- [ 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- [ 5f] Return value:reg5+ [ 9] InitializeLexicalBinding `a`, src:arg0+ [ 16] CreateVariable `b`, is_immutable:false, is_global:false, is_strict:false+ [ 1e] InitializeLexicalBinding `b`, src:arg1+ [ 2b] CreateVariable `c`, is_immutable:false, is_global:false, is_strict:false+ [ 33] InitializeLexicalBinding `c`, src:arg2+ [ 40] Mov dst:inner~0, src:Undefined+ [ 43] NewFunction dst:inner~0, shared_function_data_index:0 (inner)+ [ 4d] Call value_feedback:0, call_feedback:0, dst:reg5, callee:inner~0, this_value:Undefined+ [ 56] Return value:reg5inner$558f3bdd parameter-createvariable-order.js:3:9diff --git a/Tests/LibJS/Bytecode/expected/parameter-environment-capacity.txt b/Tests/LibJS/Bytecode/expected/parameter-environment-capacity.txtindex 1d99cc00507..4eef611fc0d 100644--- a/Tests/LibJS/Bytecode/expected/parameter-environment-capacity.txt+++ b/Tests/LibJS/Bytecode/expected/parameter-environment-capacity.txt@@ -1,4 +1,4 @@-$768398f0 parameter-environment-capacity.js:10:1+$0760d445 parameter-environment-capacity.js:10:1Registers: 8Blocks: 1Constants:@@ -11,19 +11,19 @@ block0:[ 3] Mov dst:reg5, src:Undefined[ 6] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false[ 12] CreateVariable `Strict`, is_immutable:true, is_global:false, is_strict:true- [ 1d] SetLexicalEnvironment environment:reg4- [ 1f] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false, element_keys:[element_keys:String("method")]- [ 2f] 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- [ 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+ [ 1a] SetLexicalEnvironment environment:reg4+ [ 1c] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false, element_keys:[element_keys:String("method")]+ [ 2c] DynamicInitializeLexicalBinding `Strict`, src:reg6+ [ 33] GetGlobal value_feedback:0, dst:reg6, `sloppy`+ [ 3c] Call value_feedback:1, call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined+ [ 45] GetGlobal value_feedback:2, dst:reg6, `Strict`+ [ 4e] CallConstruct value_feedback:3, call_feedback:1, dst:reg6, callee:reg6+ [ 56] GetById value_feedback:4, dst:reg7, base:reg6, `method`+ [ 60] Call value_feedback:5, call_feedback:2, dst:reg5, callee:reg7, this_value:reg6+ [ 69] End value:reg5-sloppy$0ad3c759 parameter-environment-capacity.js:6:17+sloppy$6a7b4937 parameter-environment-capacity.js:6:17Registers: 6Blocks: 3Constants:@@ -32,16 +32,16 @@ sloppy$0ad3c759 parameter-environment-capacity.js:6:17block0:[ 0] Enter[ 1] CreateVariable `a`, is_immutable:false, is_global:false, is_strict:false- [ c] CreateArguments is_immutable:false, creates_parameter_bindings:false- [ 14] JumpUndefined condition:arg0, true_target:block1, false_target:block2+ [ 9] CreateArguments is_immutable:false, creates_parameter_bindings:false+ [ e] JumpUndefined condition:arg0, true_target:block1, false_target:block2block1:- [ 1e] Mov dst:arg0, src:Int32(1)+ [ 18] Mov dst:arg0, src:Int32(1)block2:- [ 21] InitializeLexicalBinding `a`, src:arg0- [ 2e] NewFunction dst:reg5, shared_function_data_index:0- [ 38] Return value:reg5+ [ 1b] InitializeLexicalBinding `a`, src:arg0+ [ 28] NewFunction dst:reg5, shared_function_data_index:0+ [ 32] Return value:reg5Strict$3395ae05@@ -55,7 +55,7 @@ block0:[ 1] End value:Undefined-method$082a5c75 parameter-environment-capacity.js:11:12+method$3610faf2 parameter-environment-capacity.js:11:12Registers: 7Blocks: 3Constants:@@ -65,21 +65,21 @@ method$082a5c75 parameter-environment-capacity.js:11:12block0:[ 0] Enter[ 1] CreateVariable `mode`, is_immutable:false, is_global:false, is_strict:false- [ c] CreateVariable `index`, is_immutable:false, is_global:false, is_strict:false- [ 17] GetLexicalEnvironment dst:reg4- [ 19] JumpUndefined condition:arg0, true_target:block1, false_target:block2+ [ 9] CreateVariable `index`, is_immutable:false, is_global:false, is_strict:false+ [ 11] GetLexicalEnvironment dst:reg4+ [ 13] JumpUndefined condition:arg0, true_target:block1, false_target:block2block1:- [ 23] Mov dst:arg0, src:String("x")+ [ 1d] Mov dst:arg0, src:String("x")block2:- [ 26] InitializeLexicalBinding `mode`, src:arg0- [ 33] InitializeLexicalBinding `index`, src:arg1- [ 40] CreateVariableEnvironment capacity:1- [ 45] GetLexicalEnvironment dst:reg5- [ 47] CreateVariable `active`, is_immutable:true, is_global:false, is_strict:true- [ 52] GetBinding value_feedback:0, dst:reg6, `mode`- [ 61] StrictlyEquals arith_feedback:0, dst:reg6, lhs:reg6, rhs:String("a")- [ 67] InitializeLexicalBinding `active`, src:reg6- [ 74] NewFunction dst:reg6, shared_function_data_index:0- [ 7e] Return value:reg6+ [ 20] InitializeLexicalBinding `mode`, src:arg0+ [ 2d] InitializeLexicalBinding `index`, src:arg1+ [ 3a] CreateVariableEnvironment capacity:1+ [ 3f] GetLexicalEnvironment dst:reg5+ [ 41] CreateVariable `active`, is_immutable:true, is_global:false, is_strict:true+ [ 49] GetBinding value_feedback:0, dst:reg6, `mode`+ [ 58] StrictlyEquals arith_feedback:0, dst:reg6, lhs:reg6, rhs:String("a")+ [ 5e] InitializeLexicalBinding `active`, src:reg6+ [ 6b] NewFunction dst:reg6, shared_function_data_index:0+ [ 75] Return value:reg6diff --git a/Tests/LibJS/Bytecode/expected/postfix-increment-private-member.txt b/Tests/LibJS/Bytecode/expected/postfix-increment-private-member.txtindex 95ecb8af135..2b75fdb3c49 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 @@-$b6b5ae96 postfix-increment-private-member.js:1:1+$66896f85 postfix-increment-private-member.js:1:1Registers: 8Blocks: 1Constants:@@ -11,17 +11,17 @@ block0:[ 3] Mov dst:reg5, src:Undefined[ 6] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false[ 12] CreateVariable `C`, is_immutable:true, is_global:false, is_strict:true- [ 1d] CreatePrivateEnvironment- [ 1e] AddPrivateName `#c`- [ 22] SetLexicalEnvironment environment:reg4- [ 24] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false, element_keys:[element_keys:String("nextId")]- [ 35] LeavePrivateEnvironment- [ 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- [ 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+ [ 1a] CreatePrivateEnvironment+ [ 1b] AddPrivateName `#c`+ [ 1f] SetLexicalEnvironment environment:reg4+ [ 21] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false, element_keys:[element_keys:String("nextId")]+ [ 32] LeavePrivateEnvironment+ [ 33] DynamicInitializeLexicalBinding `C`, src:reg6+ [ 3a] GetGlobal value_feedback:0, dst:reg6, `C`+ [ 43] CallConstruct value_feedback:1, call_feedback:0, dst:reg6, callee:reg6+ [ 4b] GetById value_feedback:2, dst:reg7, base:reg6, `nextId`+ [ 55] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6+ [ 5e] End value:reg5C$16234245diff --git a/Tests/LibJS/Bytecode/expected/private-identifier-access-patterns.txt b/Tests/LibJS/Bytecode/expected/private-identifier-access-patterns.txtindex ca0073953ab..a06c092c404 100644--- a/Tests/LibJS/Bytecode/expected/private-identifier-access-patterns.txt+++ b/Tests/LibJS/Bytecode/expected/private-identifier-access-patterns.txt@@ -1,4 +1,4 @@-$ffb27e0a private-identifier-access-patterns.js:1:1+$af863ef9 private-identifier-access-patterns.js:1:1Registers: 8Blocks: 1Constants:@@ -11,10 +11,10 @@ block0:[ 3] Mov dst:reg5, src:Undefined[ 6] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false[ 12] CreateVariable `C`, is_immutable:true, is_global:false, is_strict:true- [ 1d] CreatePrivateEnvironment- [ 1e] AddPrivateName `#x`- [ 22] SetLexicalEnvironment environment:reg4- [ 24] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false, element_keys:[element_keys:String("method")]- [ 35] LeavePrivateEnvironment- [ 36] DynamicInitializeLexicalBinding `C`, src:reg6- [ 3d] End value:reg5+ [ 1a] CreatePrivateEnvironment+ [ 1b] AddPrivateName `#x`+ [ 1f] SetLexicalEnvironment environment:reg4+ [ 21] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false, element_keys:[element_keys:String("method")]+ [ 32] LeavePrivateEnvironment+ [ 33] DynamicInitializeLexicalBinding `C`, src:reg6+ [ 3a] End value:reg5diff --git a/Tests/LibJS/Bytecode/expected/private-logical-assignment-register-order.txt b/Tests/LibJS/Bytecode/expected/private-logical-assignment-register-order.txtindex 06d4e150e16..cd27ce13d53 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 @@-$b6b5ae96 private-logical-assignment-register-order.js:1:1+$66896f85 private-logical-assignment-register-order.js:1:1Registers: 8Blocks: 1Constants:@@ -11,17 +11,17 @@ block0:[ 3] Mov dst:reg5, src:Undefined[ 6] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false[ 12] CreateVariable `C`, is_immutable:true, is_global:false, is_strict:true- [ 1d] CreatePrivateEnvironment- [ 1e] AddPrivateName `#x`- [ 22] SetLexicalEnvironment environment:reg4- [ 24] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false, element_keys:[element_keys:String("f")]- [ 35] LeavePrivateEnvironment- [ 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- [ 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+ [ 1a] CreatePrivateEnvironment+ [ 1b] AddPrivateName `#x`+ [ 1f] SetLexicalEnvironment environment:reg4+ [ 21] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false, element_keys:[element_keys:String("f")]+ [ 32] LeavePrivateEnvironment+ [ 33] DynamicInitializeLexicalBinding `C`, src:reg6+ [ 3a] GetGlobal value_feedback:0, dst:reg6, `C`+ [ 43] CallConstruct value_feedback:1, call_feedback:0, dst:reg6, callee:reg6+ [ 4b] GetById value_feedback:2, dst:reg7, base:reg6, `f`+ [ 55] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6+ [ 5e] End value:reg5C$16234245diff --git a/Tests/LibJS/Bytecode/expected/private-method-call-description.txt b/Tests/LibJS/Bytecode/expected/private-method-call-description.txtindex 5fae833b2e3..65197b6ab93 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 @@-$b6b5ae96 private-method-call-description.js:1:1+$66896f85 private-method-call-description.js:1:1Registers: 8Blocks: 1Constants:@@ -11,17 +11,17 @@ block0:[ 3] Mov dst:reg5, src:Undefined[ 6] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false[ 12] CreateVariable `C`, is_immutable:true, is_global:false, is_strict:true- [ 1d] CreatePrivateEnvironment- [ 1e] AddPrivateName `#m`- [ 22] SetLexicalEnvironment environment:reg4- [ 24] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false, element_keys:[element_keys:String("call")]- [ 35] LeavePrivateEnvironment- [ 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- [ 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+ [ 1a] CreatePrivateEnvironment+ [ 1b] AddPrivateName `#m`+ [ 1f] SetLexicalEnvironment environment:reg4+ [ 21] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false, element_keys:[element_keys:String("call")]+ [ 32] LeavePrivateEnvironment+ [ 33] DynamicInitializeLexicalBinding `C`, src:reg6+ [ 3a] GetGlobal value_feedback:0, dst:reg6, `C`+ [ 43] CallConstruct value_feedback:1, call_feedback:0, dst:reg6, callee:reg6+ [ 4b] GetById value_feedback:2, dst:reg7, base:reg6, `call`+ [ 55] Call value_feedback:3, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6+ [ 5e] End value:reg5C$16234245diff --git a/Tests/LibJS/Bytecode/expected/super-call-spread-register-order.txt b/Tests/LibJS/Bytecode/expected/super-call-spread-register-order.txtindex 037ce76bb45..94808f20eed 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 @@-$1d8ca011 super-call-spread-register-order.js:1:1+$0e115d44 super-call-spread-register-order.js:1:1Registers: 11Blocks: 1Constants:@@ -10,14 +10,14 @@ block0:[ 3] Mov dst:reg5, src:Undefined[ 6] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false[ 12] CreateVariable `C`, is_immutable:true, is_global:false, is_strict:true- [ 1d] GetGlobal value_feedback:0, dst:reg9, `Object`- [ 26] GetClassProtoParent dst:reg10, super_class:reg9- [ 29] SetLexicalEnvironment environment:reg4- [ 2b] NewClass dst:reg6, super_class:reg9, proto_parent:reg10, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false- [ 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- [ 52] End value:reg5+ [ 1a] GetGlobal value_feedback:0, dst:reg9, `Object`+ [ 23] GetClassProtoParent dst:reg10, super_class:reg9+ [ 26] SetLexicalEnvironment environment:reg4+ [ 28] NewClass dst:reg6, super_class:reg9, proto_parent:reg10, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false+ [ 37] DynamicInitializeLexicalBinding `C`, src:reg6+ [ 3e] GetGlobal value_feedback:1, dst:reg6, `C`+ [ 47] CallConstruct value_feedback:2, call_feedback:0, dst:reg5, callee:reg6+ [ 4f] End value:reg5C$9fd1694e super-call-spread-register-order.js:2:17diff --git a/Tests/LibJS/Bytecode/expected/super-computed-eval-order.txt b/Tests/LibJS/Bytecode/expected/super-computed-eval-order.txtindex 745e0cc59bd..94bac915fed 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 @@-$8ee82be2 super-computed-eval-order.js:1:1+$2f40aa04 super-computed-eval-order.js:1:1Registers: 11Blocks: 1Constants:@@ -11,21 +11,21 @@ block0:[ 3] Mov dst:reg5, src:Undefined[ 6] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false[ 12] CreateVariable `Base`, is_immutable:true, is_global:false, is_strict:true- [ 1d] SetLexicalEnvironment environment:reg4- [ 1f] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false- [ 2e] DynamicInitializeLexicalBinding `Base`, src:reg6- [ 35] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false- [ 41] CreateVariable `Derived`, is_immutable:true, is_global:false, is_strict:true- [ 4c] GetGlobal value_feedback:0, dst:reg9, `Base`- [ 55] GetClassProtoParent dst:reg10, super_class:reg9- [ 58] SetLexicalEnvironment environment:reg4- [ 5a] NewClass dst:reg6, super_class:reg9, proto_parent:reg10, class_environment:reg7, class_blueprint_index:1, element_keys_are_in_array:false, element_keys:[element_keys:String("test")]- [ 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- [ 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+ [ 1a] SetLexicalEnvironment environment:reg4+ [ 1c] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false+ [ 2b] DynamicInitializeLexicalBinding `Base`, src:reg6+ [ 32] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false+ [ 3e] CreateVariable `Derived`, is_immutable:true, is_global:false, is_strict:true+ [ 46] GetGlobal value_feedback:0, dst:reg9, `Base`+ [ 4f] GetClassProtoParent dst:reg10, super_class:reg9+ [ 52] SetLexicalEnvironment environment:reg4+ [ 54] NewClass dst:reg6, super_class:reg9, proto_parent:reg10, class_environment:reg7, class_blueprint_index:1, element_keys_are_in_array:false, element_keys:[element_keys:String("test")]+ [ 64] DynamicInitializeLexicalBinding `Derived`, src:reg6+ [ 6b] GetGlobal value_feedback:1, dst:reg6, `Derived`+ [ 74] CallConstruct value_feedback:2, call_feedback:0, dst:reg6, callee:reg6+ [ 7c] GetById value_feedback:3, dst:reg7, base:reg6, `test`+ [ 86] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6+ [ 8f] End value:reg5Derived$4760e81b super-computed-eval-order.js:4:14diff --git a/Tests/LibJS/Bytecode/expected/super-computed-string-to-id.txt b/Tests/LibJS/Bytecode/expected/super-computed-string-to-id.txtindex 3a77351174a..bf9054b4fcb 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 @@-$1d8ca011 super-computed-string-to-id.js:1:1+$0e115d44 super-computed-string-to-id.js:1:1Registers: 11Blocks: 1Constants:@@ -10,17 +10,17 @@ block0:[ 3] Mov dst:reg5, src:Undefined[ 6] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false[ 12] CreateVariable `C`, is_immutable:true, is_global:false, is_strict:true- [ 1d] GetGlobal value_feedback:0, dst:reg9, `Object`- [ 26] GetClassProtoParent dst:reg10, super_class:reg9- [ 29] SetLexicalEnvironment environment:reg4- [ 2b] NewClass dst:reg6, super_class:reg9, proto_parent:reg10, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false- [ 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- [ 52] End value:reg5+ [ 1a] GetGlobal value_feedback:0, dst:reg9, `Object`+ [ 23] GetClassProtoParent dst:reg10, super_class:reg9+ [ 26] SetLexicalEnvironment environment:reg4+ [ 28] NewClass dst:reg6, super_class:reg9, proto_parent:reg10, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false+ [ 37] DynamicInitializeLexicalBinding `C`, src:reg6+ [ 3e] GetGlobal value_feedback:1, dst:reg6, `C`+ [ 47] CallConstruct value_feedback:2, call_feedback:0, dst:reg5, callee:reg6+ [ 4f] End value:reg5-C$f7dc3f7a super-computed-string-to-id.js:3:14+C$69c2f535 super-computed-string-to-id.js:3:14Registers: 7Blocks: 1Constants:@@ -35,4 +35,4 @@ block0:[ f] ResolveThisBinding[ 10] ResolveSuperBase dst:reg5[ 12] PutByIdWithThis base:reg5, this_value:this, `foo`, src:Int32(1), kind:Normal- [ 1f] End value:Undefined+ [ 1c] End value:Undefineddiff --git a/Tests/LibJS/Bytecode/expected/super-constructor-call.txt b/Tests/LibJS/Bytecode/expected/super-constructor-call.txtindex 368e6a20d64..a68ff6943ce 100644--- a/Tests/LibJS/Bytecode/expected/super-constructor-call.txt+++ b/Tests/LibJS/Bytecode/expected/super-constructor-call.txt@@ -1,4 +1,4 @@-$417fdde1 super-constructor-call.js:1:1+$44cef8db super-constructor-call.js:1:1Registers: 11Blocks: 1Constants:@@ -11,19 +11,19 @@ block0:[ 3] Mov dst:reg5, src:Undefined[ 6] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false[ 12] CreateVariable `Base`, is_immutable:true, is_global:false, is_strict:true- [ 1d] SetLexicalEnvironment environment:reg4- [ 1f] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false- [ 2e] DynamicInitializeLexicalBinding `Base`, src:reg6- [ 35] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false- [ 41] CreateVariable `Derived`, is_immutable:true, is_global:false, is_strict:true- [ 4c] GetGlobal value_feedback:0, dst:reg9, `Base`- [ 55] GetClassProtoParent dst:reg10, super_class:reg9- [ 58] SetLexicalEnvironment environment:reg4- [ 5a] NewClass dst:reg6, super_class:reg9, proto_parent:reg10, class_environment:reg7, class_blueprint_index:1, element_keys_are_in_array:false- [ 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)]- [ 82] End value:reg5+ [ 1a] SetLexicalEnvironment environment:reg4+ [ 1c] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false+ [ 2b] DynamicInitializeLexicalBinding `Base`, src:reg6+ [ 32] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false+ [ 3e] CreateVariable `Derived`, is_immutable:true, is_global:false, is_strict:true+ [ 46] GetGlobal value_feedback:0, dst:reg9, `Base`+ [ 4f] GetClassProtoParent dst:reg10, super_class:reg9+ [ 52] SetLexicalEnvironment environment:reg4+ [ 54] NewClass dst:reg6, super_class:reg9, proto_parent:reg10, class_environment:reg7, class_blueprint_index:1, element_keys_are_in_array:false+ [ 63] DynamicInitializeLexicalBinding `Derived`, src:reg6+ [ 6a] GetGlobal value_feedback:1, dst:reg6, `Derived`+ [ 73] CallConstruct value_feedback:2, call_feedback:0, dst:reg5, callee:reg6, arguments:[Int32(1)]+ [ 7c] End value:reg5Derived$56dc2ae8 super-constructor-call.js:4:14diff --git a/Tests/LibJS/Bytecode/expected/super-evaluation-order.txt b/Tests/LibJS/Bytecode/expected/super-evaluation-order.txtindex bb19e053162..eaaa628221d 100644--- a/Tests/LibJS/Bytecode/expected/super-evaluation-order.txt+++ b/Tests/LibJS/Bytecode/expected/super-evaluation-order.txt@@ -1,4 +1,4 @@-$254d4957 super-evaluation-order.js:1:1+$1895f79a super-evaluation-order.js:1:1Registers: 11Blocks: 1Constants:@@ -13,24 +13,24 @@ block0:[ 3] Mov dst:reg5, src:Undefined[ 6] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false[ 12] CreateVariable `A`, is_immutable:true, is_global:false, is_strict:true- [ 1d] GetGlobal value_feedback:0, dst:reg9, `Object`- [ 26] GetClassProtoParent dst:reg10, super_class:reg9- [ 29] SetLexicalEnvironment environment:reg4- [ 2b] NewClass dst:reg6, super_class:reg9, proto_parent:reg10, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false, element_keys:[element_keys:String("read"), element_keys:String("write"), element_keys:String("update")]- [ 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- [ 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+ [ 1a] GetGlobal value_feedback:0, dst:reg9, `Object`+ [ 23] GetClassProtoParent dst:reg10, super_class:reg9+ [ 26] SetLexicalEnvironment environment:reg4+ [ 28] NewClass dst:reg6, super_class:reg9, proto_parent:reg10, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false, element_keys:[element_keys:String("read"), element_keys:String("write"), element_keys:String("update")]+ [ 3a] DynamicInitializeLexicalBinding `A`, src:reg6+ [ 41] GetGlobal value_feedback:1, dst:reg6, `A`+ [ 4a] CallConstruct value_feedback:2, call_feedback:0, dst:reg6, callee:reg6+ [ 52] GetById value_feedback:3, dst:reg7, base:reg6, `read`+ [ 5c] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6+ [ 65] GetGlobal value_feedback:5, dst:reg6, `A`+ [ 6e] CallConstruct value_feedback:6, call_feedback:2, dst:reg6, callee:reg6+ [ 76] GetById value_feedback:7, dst:reg7, base:reg6, `write`+ [ 80] Call value_feedback:8, call_feedback:3, dst:reg5, callee:reg7, this_value:reg6+ [ 89] GetGlobal value_feedback:9, dst:reg6, `A`+ [ 92] CallConstruct value_feedback:10, call_feedback:4, dst:reg6, callee:reg6+ [ 9a] GetById value_feedback:11, dst:reg7, base:reg6, `update`+ [ a4] Call value_feedback:12, call_feedback:5, dst:reg5, callee:reg7, this_value:reg6+ [ ad] End value:reg5A$72a3fda0 super-evaluation-order.js:1:1@@ -57,7 +57,7 @@ block0:[ f] Return value:reg6-write$c8259eb4 super-evaluation-order.js:6:9+write$b8aa5be7 super-evaluation-order.js:6:9Registers: 6Blocks: 1Constants:@@ -69,10 +69,10 @@ block0:[ 1] ResolveThisBinding[ 2] ResolveSuperBase dst:reg5[ 4] PutByIdWithThis base:reg5, this_value:this, `x`, src:Int32(42), kind:Normal- [ 11] End value:Undefined+ [ e] End value:Undefined-update$f8cdefa7 super-evaluation-order.js:9:9+update$08493274 super-evaluation-order.js:9:9Registers: 8Blocks: 1Constants:@@ -85,4 +85,4 @@ block0:[ 4] GetByIdWithThis value_feedback:0, dst:reg6, base:reg5, `x`, this_value:this[ f] PostfixIncrement arith_feedback:0, dst:reg7, src:reg6[ 14] PutByIdWithThis base:reg5, this_value:this, `x`, src:reg6, kind:Normal- [ 21] End value:Undefined+ [ 1e] End value:Undefineddiff --git a/Tests/LibJS/Bytecode/expected/super-for-of-resolve-order.txt b/Tests/LibJS/Bytecode/expected/super-for-of-resolve-order.txtindex de6191a2b28..cdf9e58dcd9 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 @@-$e26385ed super-for-of-resolve-order.js:1:1+$d0245210 super-for-of-resolve-order.js:1:1Registers: 8Blocks: 1Constants:@@ -10,15 +10,15 @@ block0:[ 3] Mov dst:reg5, src:Undefined[ 6] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false[ 12] CreateVariable `C`, is_immutable:true, is_global:false, is_strict:true- [ 1d] SetLexicalEnvironment environment:reg4- [ 1f] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false- [ 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- [ 46] End value:reg5+ [ 1a] SetLexicalEnvironment environment:reg4+ [ 1c] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false+ [ 2b] DynamicInitializeLexicalBinding `C`, src:reg6+ [ 32] GetGlobal value_feedback:0, dst:reg6, `C`+ [ 3b] CallConstruct value_feedback:1, call_feedback:0, dst:reg5, callee:reg6+ [ 43] End value:reg5-C$8fe8ea6c super-for-of-resolve-order.js:3:14+C$61772205 super-for-of-resolve-order.js:3:14Registers: 12Blocks: 5Constants:@@ -30,22 +30,22 @@ block0:[ 17] GetIterator dst_iterator_object:reg6, dst_iterator_next:reg7, dst_iterator_done:reg8, iterable:reg5, fast_array_mode_allowed:trueblock1:- [ 23] IteratorNextUnpack dst_value:reg9, dst_done:reg10, iterator_object:reg6, iterator_next:reg7, iterator_done:reg8- [ 29] JumpTrue condition:reg10, target:block4+ [ 20] IteratorNextUnpack dst_value:reg9, dst_done:reg10, iterator_object:reg6, iterator_next:reg7, iterator_done:reg8+ [ 26] JumpTrue condition:reg10, target:block4block2:- [ 2f] ResolveThisBinding- [ 30] ResolveSuperBase dst:reg11- [ 32] PutByIdWithThis base:reg11, this_value:this, `prop`, src:reg9, kind:Normal- [ 3f] JumpLoop target:block1+ [ 2c] ResolveThisBinding+ [ 2d] ResolveSuperBase dst:reg11+ [ 2f] PutByIdWithThis base:reg11, this_value:this, `prop`, src:reg9, kind:Normal+ [ 39] JumpLoop target:block1block3:- [ 44] Catch value_feedback:0, dst:reg11- [ 48] IteratorClose iterator_object:reg6, iterator_next:reg7, iterator_done:reg8, completion_value:reg11- [ 53] Throw src:reg11+ [ 3e] Catch value_feedback:0, dst:reg11+ [ 42] IteratorClose iterator_object:reg6, iterator_next:reg7, iterator_done:reg8, completion_value:reg11+ [ 4a] Throw src:reg11block4:- [ 55] End value:Undefined+ [ 4c] End value:UndefinedException handlers:- [ 2f .. 44] => handler block3+ [ 2c .. 3e] => handler block3diff --git a/Tests/LibJS/Bytecode/expected/super-length-access.txt b/Tests/LibJS/Bytecode/expected/super-length-access.txtindex 2cfc7793adc..f9b23e57011 100644--- a/Tests/LibJS/Bytecode/expected/super-length-access.txt+++ b/Tests/LibJS/Bytecode/expected/super-length-access.txt@@ -1,4 +1,4 @@-$7ba8b0ff super-length-access.js:3:1+$59ee3a55 super-length-access.js:3:1Registers: 11Blocks: 1Constants:@@ -12,21 +12,21 @@ block0:[ 3] Mov dst:reg5, src:Undefined[ 6] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false[ 12] CreateVariable `A`, is_immutable:true, is_global:false, is_strict:true- [ 1d] SetLexicalEnvironment environment:reg4- [ 1f] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false, element_keys:[element_keys:String("length")]- [ 2f] DynamicInitializeLexicalBinding `A`, src:reg6- [ 36] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false- [ 42] CreateVariable `B`, is_immutable:true, is_global:false, is_strict:true- [ 4d] GetGlobal value_feedback:0, dst:reg9, `A`- [ 56] GetClassProtoParent dst:reg10, super_class:reg9- [ 59] SetLexicalEnvironment environment:reg4- [ 5b] NewClass dst:reg6, super_class:reg9, proto_parent:reg10, class_environment:reg7, class_blueprint_index:1, element_keys_are_in_array:false, element_keys:[element_keys:String("m")]- [ 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- [ 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+ [ 1a] SetLexicalEnvironment environment:reg4+ [ 1c] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false, element_keys:[element_keys:String("length")]+ [ 2c] DynamicInitializeLexicalBinding `A`, src:reg6+ [ 33] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false+ [ 3f] CreateVariable `B`, is_immutable:true, is_global:false, is_strict:true+ [ 47] GetGlobal value_feedback:0, dst:reg9, `A`+ [ 50] GetClassProtoParent dst:reg10, super_class:reg9+ [ 53] SetLexicalEnvironment environment:reg4+ [ 55] NewClass dst:reg6, super_class:reg9, proto_parent:reg10, class_environment:reg7, class_blueprint_index:1, element_keys_are_in_array:false, element_keys:[element_keys:String("m")]+ [ 65] DynamicInitializeLexicalBinding `B`, src:reg6+ [ 6c] GetGlobal value_feedback:1, dst:reg6, `B`+ [ 75] CallConstruct value_feedback:2, call_feedback:0, dst:reg6, callee:reg6+ [ 7d] GetById value_feedback:3, dst:reg7, base:reg6, `m`+ [ 87] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6+ [ 90] End value:reg5B$a1472f4d super-length-access.js:7:1diff --git a/Tests/LibJS/Bytecode/expected/super-method-call-order.txt b/Tests/LibJS/Bytecode/expected/super-method-call-order.txtindex 7369074ca38..51b1b264ec9 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 @@-$55a82d15 super-method-call-order.js:1:5+$083fdf14 super-method-call-order.js:1:5Registers: 8Blocks: 1Constants:@@ -10,26 +10,26 @@ 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- [ 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+ [ 1b] SetGlobal `proto`, src:reg6+ [ 22] NewObject dst:reg6+ [ 26] GetGlobal value_feedback:0, dst:reg7, `proto`+ [ 2f] PutById base:reg6, `__proto__`, src:reg7, kind:Prototype+ [ 38] NewFunction dst:reg7, shared_function_data_index:1 (test), home_object:reg6+ [ 42] PutById base:reg6, `test`, src:reg7, kind:Own+ [ 4b] NewFunction dst:reg7, shared_function_data_index:2 (get x), home_object:reg6+ [ 55] PutById base:reg6, `x`, src:reg7, kind:Getter+ [ 5e] NewFunction dst:reg7, shared_function_data_index:3 (test2), home_object:reg6+ [ 68] PutById base:reg6, `test2`, src:reg7, kind:Own+ [ 71] SetGlobal `obj`, src:reg6+ [ 78] GetGlobal value_feedback:1, dst:reg6, `obj`+ [ 81] GetById value_feedback:2, dst:reg7, base:reg6, `test`+ [ 8b] Call value_feedback:3, call_feedback:0, dst:reg5, callee:reg7, this_value:reg6+ [ 94] GetGlobal value_feedback:4, dst:reg6, `obj`+ [ 9d] GetById value_feedback:5, dst:reg5, base:reg6, `x`+ [ a7] GetGlobal value_feedback:6, dst:reg6, `obj`+ [ b0] GetById value_feedback:7, dst:reg7, base:reg6, `test2`+ [ ba] Call value_feedback:8, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6+ [ c3] End value:reg5test$c574adfd super-method-call-order.js:5:9diff --git a/Tests/LibJS/Bytecode/expected/super-optional-call-this.txt b/Tests/LibJS/Bytecode/expected/super-optional-call-this.txtindex 203145f54c0..07fed496991 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 @@-$00cee19d super-optional-call-this.js:1:1+$1fc56737 super-optional-call-this.js:1:1Registers: 11Blocks: 1Constants:@@ -11,21 +11,21 @@ block0:[ 3] Mov dst:reg5, src:Undefined[ 6] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false[ 12] CreateVariable `Base`, is_immutable:true, is_global:false, is_strict:true- [ 1d] SetLexicalEnvironment environment:reg4- [ 1f] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false, element_keys:[element_keys:String("method")]- [ 2f] DynamicInitializeLexicalBinding `Base`, src:reg6- [ 36] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false- [ 42] CreateVariable `Foo`, is_immutable:true, is_global:false, is_strict:true- [ 4d] GetGlobal value_feedback:0, dst:reg9, `Base`- [ 56] GetClassProtoParent dst:reg10, super_class:reg9- [ 59] SetLexicalEnvironment environment:reg4- [ 5b] NewClass dst:reg6, super_class:reg9, proto_parent:reg10, class_environment:reg7, class_blueprint_index:1, element_keys_are_in_array:false, element_keys:[element_keys:String("method")]- [ 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- [ 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+ [ 1a] SetLexicalEnvironment environment:reg4+ [ 1c] NewClass dst:reg6, class_environment:reg7, class_blueprint_index:0, element_keys_are_in_array:false, element_keys:[element_keys:String("method")]+ [ 2c] DynamicInitializeLexicalBinding `Base`, src:reg6+ [ 33] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false+ [ 3f] CreateVariable `Foo`, is_immutable:true, is_global:false, is_strict:true+ [ 47] GetGlobal value_feedback:0, dst:reg9, `Base`+ [ 50] GetClassProtoParent dst:reg10, super_class:reg9+ [ 53] SetLexicalEnvironment environment:reg4+ [ 55] NewClass dst:reg6, super_class:reg9, proto_parent:reg10, class_environment:reg7, class_blueprint_index:1, element_keys_are_in_array:false, element_keys:[element_keys:String("method")]+ [ 65] DynamicInitializeLexicalBinding `Foo`, src:reg6+ [ 6c] GetGlobal value_feedback:1, dst:reg6, `Foo`+ [ 75] CallConstruct value_feedback:2, call_feedback:0, dst:reg6, callee:reg6+ [ 7d] GetById value_feedback:3, dst:reg7, base:reg6, `method`+ [ 87] Call value_feedback:4, call_feedback:1, dst:reg5, callee:reg7, this_value:reg6+ [ 90] End value:reg5Foo$4a348592 super-optional-call-this.js:4:1diff --git a/Tests/LibJS/Bytecode/expected/switch-scoping.txt b/Tests/LibJS/Bytecode/expected/switch-scoping.txtindex afa1b6995aa..51eed8975e6 100644--- a/Tests/LibJS/Bytecode/expected/switch-scoping.txt+++ b/Tests/LibJS/Bytecode/expected/switch-scoping.txt@@ -22,7 +22,7 @@ block0:[ 64] End value:reg5-switchWithBlockDecl$82dbc033 switch-scoping.js:2:9+switchWithBlockDecl$a49636dd switch-scoping.js:2:9Registers: 8Blocks: 6Locals: result~0@@ -40,28 +40,28 @@ block0:[ 6] Mov dst:reg5, src:arg0[ 9] CreateLexicalEnvironment dst:reg6, parent:reg4, capacity:2, is_catch_environment:false[ 15] CreateVariable `a`, is_immutable:false, is_global:false, is_strict:false- [ 20] CreateVariable `b`, is_immutable:false, is_global:false, is_strict:false- [ 2b] JumpStrictlyEquals arith_feedback:0, lhs:Int32(1), rhs:reg5, true_target:block3, false_target:block1+ [ 1d] CreateVariable `b`, is_immutable:false, is_global:false, is_strict:false+ [ 25] JumpStrictlyEquals arith_feedback:0, lhs:Int32(1), rhs:reg5, true_target:block3, false_target:block1block1:- [ 38] JumpStrictlyEquals arith_feedback:1, lhs:Int32(2), rhs:reg5, true_target:block4, false_target:block2+ [ 32] JumpStrictlyEquals arith_feedback:1, lhs:Int32(2), rhs:reg5, true_target:block4, false_target:block2block2:- [ 45] Jump target:block5+ [ 3f] Jump target:block5block3:- [ 4a] InitializeLexicalBinding `a`, src:String("one")- [ 57] NewFunction dst:result~0, shared_function_data_index:0 (result)- [ 61] Jump target:block5+ [ 44] InitializeLexicalBinding `a`, src:String("one")+ [ 51] NewFunction dst:result~0, shared_function_data_index:0 (result)+ [ 5b] Jump target:block5block4:- [ 66] InitializeLexicalBinding `b`, src:String("two")- [ 73] NewFunction dst:result~0, shared_function_data_index:1 (result)+ [ 60] InitializeLexicalBinding `b`, src:String("two")+ [ 6d] NewFunction dst:result~0, shared_function_data_index:1 (result)block5:- [ 7d] SetLexicalEnvironment environment:reg4- [ 7f] Call value_feedback:0, call_feedback:0, dst:reg5, callee:result~0, this_value:Undefined- [ 88] Return value:reg5+ [ 77] SetLexicalEnvironment environment:reg4+ [ 79] Call value_feedback:0, call_feedback:0, dst:reg5, callee:result~0, this_value:Undefined+ [ 82] Return value:reg5result$e15525de switch-scoping.js:6:22diff --git a/Tests/LibJS/Bytecode/expected/switch-with-block-scope-return.txt b/Tests/LibJS/Bytecode/expected/switch-with-block-scope-return.txtindex cce108ac786..f20315a927a 100644--- a/Tests/LibJS/Bytecode/expected/switch-with-block-scope-return.txt+++ b/Tests/LibJS/Bytecode/expected/switch-with-block-scope-return.txt@@ -13,7 +13,7 @@ block0:[ 17] End value:reg5-f$82d05d8c switch-with-block-scope-return.js:2:13+f$10e9a7d1 switch-with-block-scope-return.js:2:13Registers: 8Blocks: 6Constants:@@ -30,25 +30,25 @@ block0:[ 3] Mov dst:reg5, src:arg0[ 6] CreateLexicalEnvironment dst:reg6, parent:reg4, capacity:1, is_catch_environment:false[ 12] CreateVariable `y`, is_immutable:true, is_global:false, is_strict:true- [ 1d] JumpStrictlyEquals arith_feedback:0, lhs:Int32(1), rhs:reg5, true_target:block3, false_target:block1+ [ 1a] JumpStrictlyEquals arith_feedback:0, lhs:Int32(1), rhs:reg5, true_target:block3, false_target:block1block1:- [ 2a] JumpStrictlyEquals arith_feedback:1, lhs:Int32(2), rhs:reg5, true_target:block4, false_target:block2+ [ 27] JumpStrictlyEquals arith_feedback:1, lhs:Int32(2), rhs:reg5, true_target:block4, false_target:block2block2:- [ 37] Jump target:block5+ [ 34] Jump target:block5block3:- [ 3c] SetLexicalEnvironment environment:reg4- [ 3e] Return value:String("one")+ [ 39] SetLexicalEnvironment environment:reg4+ [ 3b] Return value:String("one")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- [ 60] SetLexicalEnvironment environment:reg4- [ 62] Return value:reg7+ [ 3d] InitializeLexicalBinding `y`, src:String("two")+ [ 4a] NewFunction dst:reg7, shared_function_data_index:0+ [ 54] Call value_feedback:0, call_feedback:0, dst:reg7, callee:reg7, this_value:Undefined+ [ 5d] SetLexicalEnvironment environment:reg4+ [ 5f] Return value:reg7block5:- [ 64] SetLexicalEnvironment environment:reg4- [ 66] Return value:String("other")+ [ 61] SetLexicalEnvironment environment:reg4+ [ 63] Return value:String("other")diff --git a/Tests/LibJS/Bytecode/expected/tdz-reset-in-loop.txt b/Tests/LibJS/Bytecode/expected/tdz-reset-in-loop.txtindex a838472fbb0..d83028c538d 100644--- a/Tests/LibJS/Bytecode/expected/tdz-reset-in-loop.txt+++ b/Tests/LibJS/Bytecode/expected/tdz-reset-in-loop.txt@@ -51,7 +51,7 @@ block3:[ 6a] End value:Undefined-nested$b17fb928 tdz-reset-in-loop.js:14:5+nested$13eb2c16 tdz-reset-in-loop.js:14:5Registers: 12Blocks: 8Locals: value~0, item~1@@ -73,28 +73,28 @@ block2:[ 19] GetIterator dst_iterator_object:reg6, dst_iterator_next:reg7, dst_iterator_done:reg8, iterable:reg5, fast_array_mode_allowed:trueblock3:- [ 25] IteratorNextUnpack dst_value:reg9, dst_done:reg10, iterator_object:reg6, iterator_next:reg7, iterator_done:reg8- [ 2b] JumpTrue condition:reg10, target:block6+ [ 22] IteratorNextUnpack dst_value:reg9, dst_done:reg10, iterator_object:reg6, iterator_next:reg7, iterator_done:reg8+ [ 28] JumpTrue condition:reg10, target:block6block4:- [ 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+ [ 2e] Mov dst:item~1, src:reg9+ [ 31] ThrowIfTDZ src:value~0+ [ 33] Typeof dst:reg11, src:value~0+ [ 36] Call value_feedback:1, call_feedback:0, dst:reg11, callee:item~1, this_value:Undefined, arguments:[reg11]+ [ 40] JumpLoop target:block3block5:- [ 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+ [ 45] Catch value_feedback:2, dst:reg11+ [ 49] IteratorClose iterator_object:reg6, iterator_next:reg7, iterator_done:reg8, completion_value:reg11+ [ 51] Throw src:reg11block6:- [ 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+ [ 53] GetById value_feedback:3, dst:reg5, base:arg0, `pop`+ [ 5d] Call value_feedback:4, call_feedback:1, dst:value~0, callee:reg5, this_value:arg0+ [ 66] JumpLoop target:block1block7:- [ 71] End value:Undefined+ [ 6b] End value:UndefinedException handlers:- [ 31 .. 48] => handler block5+ [ 2e .. 45] => handler block5diff --git a/Tests/LibJS/Bytecode/expected/this-base-identifier.txt b/Tests/LibJS/Bytecode/expected/this-base-identifier.txtindex f402771ac6e..990627dbcea 100644--- a/Tests/LibJS/Bytecode/expected/this-base-identifier.txt+++ b/Tests/LibJS/Bytecode/expected/this-base-identifier.txt@@ -40,7 +40,7 @@ block0:[ b] Return value:reg5-set_on_this$62bce090 this-base-identifier.js:9:14+set_on_this$53419dc3 this-base-identifier.js:9:14Registers: 5Blocks: 1Constants:@@ -50,7 +50,7 @@ set_on_this$62bce090 this-base-identifier.js:9:14block0:[ 0] Enter[ 1] PutById base:this, `bar`, src:Int32(1), kind:Normal- [ d] End value:Undefined+ [ a] End value:Undefinedchained_this_access$0e40cee4 this-base-identifier.js:13:5diff --git a/Tests/LibJS/Bytecode/expected/update-member-expression.txt b/Tests/LibJS/Bytecode/expected/update-member-expression.txtindex 1e427758f2a..e4e5ee9994d 100644--- a/Tests/LibJS/Bytecode/expected/update-member-expression.txt+++ b/Tests/LibJS/Bytecode/expected/update-member-expression.txt@@ -16,7 +16,7 @@ block0:[ 32] End value:reg5-postfix_increment$3592ad12 update-member-expression.js:6:14+postfix_increment$c66fe867 update-member-expression.js:6:14Registers: 7Blocks: 1Constants:@@ -27,10 +27,10 @@ block0:[ 1] GetById value_feedback:0, dst:reg5, base:arg0, `count`[ b] PostfixIncrement arith_feedback:0, dst:reg6, src:reg5[ 10] PutById base:arg0, `count`, src:reg5, kind:Normal- [ 1c] End value:Undefined+ [ 19] End value:Undefined-prefix_decrement$7af05317 update-member-expression.js:10:5+prefix_decrement$49ba99a0 update-member-expression.js:10:5Registers: 6Blocks: 1Constants:@@ -41,4 +41,4 @@ block0:[ 1] GetById value_feedback:0, dst:reg5, base:arg0, `count`[ b] Decrement arith_feedback:0, dst:reg5[ f] PutById base:arg0, `count`, src:reg5, kind:Normal- [ 1b] End value:Undefined+ [ 18] End value:Undefineddiff --git a/Tests/LibJS/Bytecode/expected/using-declaration-non-local-env.txt b/Tests/LibJS/Bytecode/expected/using-declaration-non-local-env.txtindex 2c21a0295f3..f8571b41670 100644--- a/Tests/LibJS/Bytecode/expected/using-declaration-non-local-env.txt+++ b/Tests/LibJS/Bytecode/expected/using-declaration-non-local-env.txt@@ -30,7 +30,7 @@ Exception handlers:[ 7 .. 1f] => handler block2-$6fed1b45 using-declaration-non-local-env.js:1:19+$5dade768 using-declaration-non-local-env.js:1:19Registers: 10Blocks: 6Constants:@@ -43,32 +43,32 @@ block0:[ 1] GetLexicalEnvironment dst:reg4[ 3] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false[ f] CreateVariable `x`, is_immutable:true, is_global:false, is_strict:true- [ 1a] NewDisposableResourceStack dst:reg6+ [ 17] NewDisposableResourceStack dst:reg6block1:- [ 1c] NewObject dst:reg9- [ 20] AddDisposableResource stack:reg6, value:reg9, hint:0- [ 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- [ 47] Mov dst:reg7, src:Int32(0)- [ 4a] Jump target:block3+ [ 19] NewObject dst:reg9+ [ 1d] AddDisposableResource stack:reg6, value:reg9, hint:0+ [ 24] InitializeLexicalBinding `x`, src:reg9+ [ 31] NewFunction dst:reg9, shared_function_data_index:0+ [ 3b] Call value_feedback:0, call_feedback:0, dst:reg9, callee:reg9, this_value:Undefined+ [ 44] Mov dst:reg7, src:Int32(0)+ [ 47] Jump target:block3block2:- [ 4f] Catch value_feedback:1, dst:reg8- [ 53] SetLexicalEnvironment environment:reg5- [ 55] Mov dst:reg7, src:Int32(1)+ [ 4c] Catch value_feedback:1, dst:reg8+ [ 50] SetLexicalEnvironment environment:reg5+ [ 52] Mov dst:reg7, src:Int32(1)block3:- [ 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+ [ 55] DisposeResources stack:reg6, completion_type:reg7, completion_value:reg8+ [ 59] JumpStrictlyEqualsRhsInt32 arith_feedback:0, lhs:reg7, rhs:0, true_target:block5, false_target:block4block4:- [ 6c] Throw src:reg8+ [ 69] Throw src:reg8block5:- [ 6e] SetLexicalEnvironment environment:reg4- [ 70] End value:Undefined+ [ 6b] SetLexicalEnvironment environment:reg4+ [ 6d] End value:UndefinedException handlers:- [ 1c .. 4f] => handler block2+ [ 19 .. 4c] => handler block2diff --git a/Tests/LibJS/Bytecode/expected/var-binding-access.txt b/Tests/LibJS/Bytecode/expected/var-binding-access.txtindex 6343ba82c45..4669fb2994d 100644--- a/Tests/LibJS/Bytecode/expected/var-binding-access.txt+++ b/Tests/LibJS/Bytecode/expected/var-binding-access.txt@@ -14,7 +14,7 @@ block0:[ 28] End value:reg5-var_access$d410239e var-binding-access.js:5:9+var_access$c494e0d1 var-binding-access.js:5:9Registers: 6Blocks: 1Constants:@@ -24,14 +24,14 @@ var_access$d410239e var-binding-access.js:5:9block0:[ 0] Enter[ 1] CreateVariable `x`, is_immutable:false, is_global:false, is_strict:false- [ c] InitializeVariableBinding `x`, src:Undefined- [ 19] SetLexicalBinding `x`, src:Int32(1)- [ 26] NewFunction dst:reg5, shared_function_data_index:0- [ 30] GetInitializedBinding value_feedback:0, dst:reg5, `x`- [ 3f] Return value:reg5+ [ 9] InitializeVariableBinding `x`, src:Undefined+ [ 16] SetLexicalBinding `x`, src:Int32(1)+ [ 23] NewFunction dst:reg5, shared_function_data_index:0+ [ 2d] GetInitializedBinding value_feedback:0, dst:reg5, `x`+ [ 3c] Return value:reg5-let_access$6eb37f88 var-binding-access.js:14:9+let_access$ff90badd var-binding-access.js:14:9Registers: 6Blocks: 1Constants:@@ -40,7 +40,7 @@ let_access$6eb37f88 var-binding-access.js:14:9block0:[ 0] Enter[ 1] CreateVariable `x`, is_immutable:false, is_global:false, is_strict:false- [ c] InitializeLexicalBinding `x`, src:Int32(1)- [ 19] NewFunction dst:reg5, shared_function_data_index:0- [ 23] GetBinding value_feedback:0, dst:reg5, `x`- [ 32] Return value:reg5+ [ 9] InitializeLexicalBinding `x`, src:Int32(1)+ [ 16] NewFunction dst:reg5, shared_function_data_index:0+ [ 20] GetBinding value_feedback:0, dst:reg5, `x`+ [ 2f] Return value:reg5diff --git a/Tests/LibJS/Bytecode/expected/var-env-capacity-with-param-expressions.txt b/Tests/LibJS/Bytecode/expected/var-env-capacity-with-param-expressions.txtindex d0bf212fedd..2ee4a2a76d5 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@@ -12,7 +12,7 @@ block0:[ 16] End value:reg5-f$ad19e72b var-env-capacity-with-param-expressions.js:1:12+f$b44956c8 var-env-capacity-with-param-expressions.js:1:12Registers: 10Blocks: 3Constants:@@ -25,26 +25,26 @@ block0:[ 1] GetLexicalEnvironment dst:reg4[ 3] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false[ f] CreateVariable `x`, is_immutable:false, is_global:false, is_strict:false- [ 1a] CreateArguments is_immutable:false, creates_parameter_bindings:false- [ 22] JumpUndefined condition:arg0, true_target:block1, false_target:block2+ [ 17] CreateArguments is_immutable:false, creates_parameter_bindings:false+ [ 1c] JumpUndefined condition:arg0, true_target:block1, false_target:block2block1:- [ 2c] Mov dst:arg0, src:Int32(1)+ [ 26] Mov dst:arg0, src:Int32(1)block2:- [ 2f] InitializeLexicalBinding `x`, src:arg0- [ 3c] CreateVariableEnvironment capacity:3- [ 41] GetLexicalEnvironment dst:reg6- [ 43] CreateLexicalEnvironment dst:reg7, parent:reg6, capacity:3, is_catch_environment:false- [ 4f] CreateVariable `a`, is_immutable:false, is_global:false, is_strict:false- [ 5a] InitializeVariableBinding `a`, src:Undefined- [ 67] CreateVariable `b`, is_immutable:false, is_global:false, is_strict:false- [ 72] InitializeVariableBinding `b`, src:Undefined- [ 7f] CreateVariable `c`, is_immutable:false, is_global:false, is_strict:false- [ 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("")]- [ ab] End value:Undefined+ [ 29] InitializeLexicalBinding `x`, src:arg0+ [ 36] CreateVariableEnvironment capacity:3+ [ 3b] GetLexicalEnvironment dst:reg6+ [ 3d] CreateLexicalEnvironment dst:reg7, parent:reg6, capacity:3, is_catch_environment:false+ [ 49] CreateVariable `a`, is_immutable:false, is_global:false, is_strict:false+ [ 51] InitializeVariableBinding `a`, src:Undefined+ [ 5e] CreateVariable `b`, is_immutable:false, is_global:false, is_strict:false+ [ 66] InitializeVariableBinding `b`, src:Undefined+ [ 73] CreateVariable `c`, is_immutable:false, is_global:false, is_strict:false+ [ 7b] InitializeVariableBinding `c`, src:Undefined+ [ 88] DynamicGetCalleeAndThisFromEnvironment value_feedback:0, callee:reg8, this_value:reg9, `eval`+ [ 92] CallDirectEval value_feedback:1, call_feedback:0, dst:reg8, callee:reg8, this_value:reg9, arguments:[String("")]+ [ 9c] End value:Undefinedeval$d8dbb89d