Truly independent web browser
LibJS: Index the value feedback of property loads by their cache
Andreas Klingd5f3b3794ba5
diff --git a/Libraries/LibJS/Flap/src/bytecode.rs b/Libraries/LibJS/Flap/src/bytecode.rsindex fd720a35dda..9b1cbdcbf76 100644--- a/Libraries/LibJS/Flap/src/bytecode.rs+++ b/Libraries/LibJS/Flap/src/bytecode.rs@@ -188,6 +188,7 @@ 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,+ "ProfiledPropertyLookupCacheIndex" => *parameter_type == Type::ProfiledPropertyLookupCacheIndex,"Completion::Type" | "IteratorHint" | "EnvironmentMode" | "PutKind" | "ArgumentsKind"| "FunctionNamePrefix" => *parameter_type == Type::U8,_ => false,diff --git a/Libraries/LibJS/Flap/src/hir/mod.rs b/Libraries/LibJS/Flap/src/hir/mod.rsindex 73df9a57bcc..6baaf5179f4 100644--- a/Libraries/LibJS/Flap/src/hir/mod.rs+++ b/Libraries/LibJS/Flap/src/hir/mod.rs@@ -1397,7 +1397,10 @@ impl<'a> Checker<'a> {let symbol = self.lookup(name)?;if matches!(symbol.ty,- Type::EnvironmentCoordinateCacheIndex | Type::GlobalVariableCacheIndex | Type::PropertyLookupCacheIndex+ Type::EnvironmentCoordinateCacheIndex+ | Type::GlobalVariableCacheIndex+ | Type::PropertyLookupCacheIndex+ | Type::ProfiledPropertyLookupCacheIndex) {return Some((symbol.ty.clone(), Type::U32, BytecodeOperation::Load(FieldWidth::U16)));}@@ -2713,7 +2716,10 @@ impl<'a> Checker<'a> {return Ok(Value::new(ValueKind::Integer(value), Type::Bool, expression.span));}if let Some(symbol) = self.lookup(name) {- if &symbol.ty != expected {+ // NB: A property lookup cache index that also indexes value feedback is one still.+ let is_property_lookup_cache_index = symbol.ty == Type::ProfiledPropertyLookupCacheIndex+ && *expected == Type::PropertyLookupCacheIndex;+ if &symbol.ty != expected && !is_property_lookup_cache_index {return self.error(expression.span,format!("expected {expected}, found {} for '{name}'", symbol.ty),diff --git a/Libraries/LibJS/Flap/src/metadata.rs b/Libraries/LibJS/Flap/src/metadata.rsindex ef423c6c450..9f96609faed 100644--- a/Libraries/LibJS/Flap/src/metadata.rs+++ b/Libraries/LibJS/Flap/src/metadata.rs@@ -690,6 +690,7 @@ fn try_field_type_info(ty: &str) -> Option<FieldType> {| "FunctionNamePrefix" => ("u8", 1, "u8"),"Value" => ("u64", 8, "u64"),"PropertyLookupCacheIndex"+ | "ProfiledPropertyLookupCacheIndex"| "GlobalVariableCacheIndex"| "EnvironmentCoordinateCacheIndex"| "ObjectShapeCacheIndex" => ("u32", 2, "cache_index"),diff --git a/Libraries/LibJS/Flap/src/rust_bytecode.rs b/Libraries/LibJS/Flap/src/rust_bytecode.rsindex a591c56744b..53107df78de 100644--- a/Libraries/LibJS/Flap/src/rust_bytecode.rs+++ b/Libraries/LibJS/Flap/src/rust_bytecode.rs@@ -104,6 +104,7 @@ pub fn read_expr_for_type(ty: &str, offset: &str, reader: &str) -> String {format!("{reader}read_u32(bytes, {offset})")}"PropertyLookupCacheIndex"+ | "ProfiledPropertyLookupCacheIndex"| "GlobalVariableCacheIndex"| "EnvironmentCoordinateCacheIndex"| "ObjectShapeCacheIndex" => format!("u32::from({reader}read_u16(bytes, {offset}))"),diff --git a/Libraries/LibJS/Flap/src/ssa/inline.rs b/Libraries/LibJS/Flap/src/ssa/inline.rsindex 1994410e62d..03b66116ad5 100644--- a/Libraries/LibJS/Flap/src/ssa/inline.rs+++ b/Libraries/LibJS/Flap/src/ssa/inline.rs@@ -720,6 +720,7 @@ fn can_bridge_representation(source: &Type, destination: &Type) -> bool {| (Type::U8, Type::U16)| (Type::U8 | Type::U16, Type::U32)| (Type::I8 | Type::I16 | Type::U8 | Type::U16, Type::I32)+ | (Type::ProfiledPropertyLookupCacheIndex, Type::PropertyLookupCacheIndex))}diff --git a/Libraries/LibJS/Flap/src/types.rs b/Libraries/LibJS/Flap/src/types.rsindex 9d1a2fcba92..6ee851d813d 100644--- a/Libraries/LibJS/Flap/src/types.rs+++ b/Libraries/LibJS/Flap/src/types.rs@@ -240,6 +240,7 @@ define_named_types! {EnvironmentCoordinateCacheIndex => "EnvironmentCoordinateCacheIndex", Some(2), false;GlobalVariableCacheIndex => "GlobalVariableCacheIndex", Some(2), false;PropertyLookupCacheIndex => "PropertyLookupCacheIndex", Some(2), false;+ ProfiledPropertyLookupCacheIndex => "ProfiledPropertyLookupCacheIndex", Some(2), false;ArithFeedbackIndex => "ArithFeedbackIndex", Some(2), false;ValueFeedbackIndex => "ValueFeedbackIndex", Some(2), false;CallFeedbackIndex => "CallFeedbackIndex", Some(2), false;diff --git a/Libraries/LibJS/Flap/tests/interpreter-assembly/aarch64.S b/Libraries/LibJS/Flap/tests/interpreter-assembly/aarch64.Sindex 7ab66741a00..7a31a22ee1d 100644--- a/Libraries/LibJS/Flap/tests/interpreter-assembly/aarch64.S+++ b/Libraries/LibJS/Flap/tests/interpreter-assembly/aarch64.S@@ -5311,7 +5311,7 @@ asm_handler_PutByValue_hot_end:.p2align 4asm_handler_GetById:- ldrb w0, [x21, #4]+ ldrb w0, [x21, #2]ldr x3, [x27, x0, lsl #3]lsr x9, x3, #48mov w10, #65529@@ -5323,14 +5323,14 @@ asm_handler_GetById:cbz x0, .Lasm_GetById.assert_failure_0add x0, x24, w0, uxtw #3ldr x1, [x28, #88]- cbz x1, .Lasm_GetById.assert_predicate_failure_123+ cbz x1, .Lasm_GetById.assert_predicate_failure_124ldr x2, [x1, #152]cbz x2, .Lasm_GetById.assert_failure_1- ldurh w4, [x21, #7]+ ldurh w4, [x21, #5]ldr x2, [x2, x4, lsl #3]cbz x2, .Lasm_GetById.ssa_block_1and x2, x2, #0xfffffffffffffffc- cbz x2, .Lasm_GetById.assert_predicate_failure_337+ cbz x2, .Lasm_GetById.assert_predicate_failure_338ldr x9, [x2, #24]cmp x9, x0b.ne .Lasm_GetById.ssa_block_15@@ -5352,16 +5352,16 @@ asm_handler_GetById:mov w10, #65532cmp x9, x10b.eq .Lasm_GetById.ssa_block_17- ldrb w9, [x21, #3]+ ldrb w9, [x21, #1]str x0, [x27, x9, lsl #3]- ldrb w9, [x21, #9]- add x21, x21, #9+ ldrb w9, [x21, #7]+ add x21, x21, #7ldr x10, [x19, x9, lsl #3]br x10.Lasm_GetById.ssa_block_15:ldr x1, [x1, #152]cbz x1, .Lasm_GetById.assert_failure_3- ldurh w2, [x21, #7]+ ldurh w2, [x21, #5]ldr x1, [x1, x2, lsl #3]mov x2, x1and x2, x2, #0x3@@ -5399,10 +5399,10 @@ asm_handler_GetById:mov w10, #65532cmp x9, x10b.eq .Lasm_GetById.ssa_block_1- ldrb w9, [x21, #3]+ ldrb w9, [x21, #1]str x0, [x27, x9, lsl #3]- ldrb w9, [x21, #9]- add x21, x21, #9+ ldrb w9, [x21, #7]+ add x21, x21, #7ldr x10, [x19, x9, lsl #3]br x10asm_handler_GetById_hot_end:@@ -5457,12 +5457,12 @@ asm_handler_PutById_hot_end:.p2align 4asm_handler_GetByValue:- ldrb w0, [x21, #7]+ ldrb w0, [x21, #5]ldr x4, [x27, x0, lsl #3]lsr x9, x4, #48cmp x9, x22b.ne .Lasm_GetByValue.ssa_block_5- ldrb w0, [x21, #6]+ ldrb w0, [x21, #4]ldr x3, [x27, x0, lsl #3]lsr x0, x3, #48mov w9, #65529@@ -5488,10 +5488,10 @@ asm_handler_GetByValue:cmp x0, x2b.hs .Lasm_GetByValue.ssa_block_1ldr x0, [x1, x0, lsl #3]- ldrb w9, [x21, #5]+ ldrb w9, [x21, #3]str x0, [x27, x9, lsl #3]- ldrb w9, [x21, #10]- add x21, x21, #10+ ldrb w9, [x21, #8]+ add x21, x21, #8ldr x10, [x19, x9, lsl #3]br x10.Lasm_GetByValue.ssa_switch_21_after_preferred:@@ -5509,10 +5509,10 @@ asm_handler_GetByValue:movz x9, #0x7ffb, lsl #48cmp x0, x9b.eq .Lasm_GetByValue.ssa_block_1- ldrb w9, [x21, #5]+ ldrb w9, [x21, #3]str x0, [x27, x9, lsl #3]- ldrb w9, [x21, #10]- add x21, x21, #10+ ldrb w9, [x21, #8]+ add x21, x21, #8ldr x10, [x19, x9, lsl #3]br x10.Lasm_GetByValue.ssa_block_20:@@ -5536,10 +5536,10 @@ asm_handler_GetByValue:adds x0, x0, x1ldrb w0, [x0]movk x0, #0x7ffa, lsl #48- ldrb w9, [x21, #5]+ ldrb w9, [x21, #3]str x0, [x27, x9, lsl #3]- ldrb w9, [x21, #10]- add x21, x21, #10+ ldrb w9, [x21, #8]+ add x21, x21, #8ldr x10, [x19, x9, lsl #3]br x10.Lasm_GetByValue.ssa_switch_20_after_preferred:@@ -5592,10 +5592,10 @@ asm_handler_GetByValue:1:.Lasm_GetByValue.ssa_block_11:movk x0, #0x7ffa, lsl #48- ldrb w9, [x21, #5]+ ldrb w9, [x21, #3]str x0, [x27, x9, lsl #3]- ldrb w9, [x21, #10]- add x21, x21, #10+ ldrb w9, [x21, #8]+ add x21, x21, #8ldr x10, [x19, x9, lsl #3]br x10.Lasm_GetByValue.ssa_block_30:@@ -5628,10 +5628,10 @@ asm_handler_GetByValue:b.ne .Lasm_GetByValue.ssa_block_10.Lasm_GetByValue.ssa_block_9:movk x0, #0x7ffa, lsl #48- ldrb w9, [x21, #5]+ ldrb w9, [x21, #3]str x0, [x27, x9, lsl #3]- ldrb w9, [x21, #10]- add x21, x21, #10+ ldrb w9, [x21, #8]+ add x21, x21, #8ldr x10, [x19, x9, lsl #3]br x10.Lasm_GetByValue.ssa_block_10:@@ -5639,10 +5639,10 @@ asm_handler_GetByValue:fcmp d0, d0b.vs .Lasm_GetByValue.canon_nan_1.Lasm_GetByValue.canon_nan_1_ret:- ldrb w9, [x21, #5]+ ldrb w9, [x21, #3]str x0, [x27, x9, lsl #3]- ldrb w9, [x21, #10]- add x21, x21, #10+ ldrb w9, [x21, #8]+ add x21, x21, #8ldr x10, [x19, x9, lsl #3]br x10.Lasm_GetByValue.ssa_block_8:@@ -5698,15 +5698,15 @@ asm_handler_GetByValue:lsr x9, x0, #48mov w10, #65530cmp x9, x10- b.ne .Lasm_GetByValue.assert_predicate_failure_297- ldrb w9, [x21, #5]+ b.ne .Lasm_GetByValue.assert_predicate_failure_298+ ldrb w9, [x21, #3]str x0, [x27, x9, lsl #3]- ldrb w9, [x21, #10]- add x21, x21, #10+ ldrb w9, [x21, #8]+ add x21, x21, #8ldr x10, [x19, x9, lsl #3]br x10.Lasm_GetByValue.ssa_block_5:- ldrb w0, [x21, #6]+ ldrb w0, [x21, #4]ldr x2, [x27, x0, lsl #3]lsr x9, x2, #48mov w10, #65529@@ -5715,16 +5715,16 @@ asm_handler_GetByValue:ldr x0, [x28, #88]ldr x1, [x0, #152]cbz x1, .Lasm_GetByValue.assert_failure_2- ldrh w3, [x21, #8]+ ldrh w3, [x21, #6]ldr x1, [x1, x3, lsl #3]and x2, x2, #0x7ffffffffadd x2, x2, x24cmp x1, #3b.eq .Lasm_GetByValue.ssa_block_6- cbz x0, .Lasm_GetByValue.assert_predicate_failure_231+ cbz x0, .Lasm_GetByValue.assert_predicate_failure_232ldr x0, [x0, #152]cbz x0, .Lasm_GetByValue.assert_failure_3- ldrh w1, [x21, #8]+ ldrh w1, [x21, #6]ldr x0, [x0, x1, lsl #3]cbz x0, .Lasm_GetByValue.ssa_block_1cmp x0, #3@@ -5755,17 +5755,17 @@ asm_handler_GetByValue:mov w10, #65532cmp x9, x10b.eq .Lasm_GetByValue.ssa_block_1- ldrb w9, [x21, #5]+ ldrb w9, [x21, #3]str x0, [x27, x9, lsl #3]- ldrb w9, [x21, #10]- add x21, x21, #10+ ldrb w9, [x21, #8]+ add x21, x21, #8ldr x10, [x19, x9, lsl #3]br x10asm_handler_GetByValue_hot_end:.p2align 4asm_handler_GetLength:- ldrb w0, [x21, #6]+ ldrb w0, [x21, #4]ldr x2, [x27, x0, lsl #3]lsr x0, x2, #48mov w9, #65529@@ -5780,10 +5780,10 @@ asm_handler_GetLength:b .Lasm_GetLength.ssa_block_31:movk x0, #0x7ffa, lsl #48- ldrb w9, [x21, #5]+ ldrb w9, [x21, #3]str x0, [x27, x9, lsl #3]- ldrb w9, [x21, #9]- add x21, x21, #9+ ldrb w9, [x21, #7]+ add x21, x21, #7ldr x10, [x19, x9, lsl #3]br x10.Lasm_GetLength.ssa_block_6:@@ -5791,14 +5791,14 @@ asm_handler_GetLength:cbz x1, .Lasm_GetLength.assert_failure_0add x1, x24, w1, uxtw #3ldr x0, [x28, #88]- cbz x0, .Lasm_GetLength.assert_predicate_failure_21+ cbz x0, .Lasm_GetLength.assert_predicate_failure_22ldr x0, [x0, #152]cbz x0, .Lasm_GetLength.assert_failure_1- ldurh w3, [x21, #7]+ ldurh w3, [x21, #5]ldr x0, [x0, x3, lsl #3]cbz x0, .Lasm_GetLength.ssa_block_1and x0, x0, #0xfffffffffffffffc- cbz x0, .Lasm_GetLength.assert_predicate_failure_43+ cbz x0, .Lasm_GetLength.assert_predicate_failure_44ldp x4, x3, [x0, #24]cmp x4, x1b.ne .Lasm_GetLength.ssa_block_1@@ -5817,10 +5817,10 @@ asm_handler_GetLength:mov w10, #65532cmp x9, x10b.eq .Lasm_GetLength.ssa_block_1- ldrb w9, [x21, #5]+ ldrb w9, [x21, #3]str x0, [x27, x9, lsl #3]- ldrb w9, [x21, #9]- add x21, x21, #9+ ldrb w9, [x21, #7]+ add x21, x21, #7ldr x10, [x19, x9, lsl #3]br x10.Lasm_GetLength.ssa_block_2:@@ -5834,10 +5834,10 @@ asm_handler_GetLength:b .Lasm_GetLength.ssa_block_11:movk x0, #0x7ffa, lsl #48- ldrb w9, [x21, #5]+ ldrb w9, [x21, #3]str x0, [x27, x9, lsl #3]- ldrb w9, [x21, #9]- add x21, x21, #9+ ldrb w9, [x21, #7]+ add x21, x21, #7ldr x10, [x19, x9, lsl #3]br x10asm_handler_GetLength_hot_end:@@ -14318,10 +14318,10 @@ asm_handler_GetById_cold:movz x1, #0xfff9, lsl #48orr x0, x0, x1.Lasm_GetById.ssa_block_51:- ldrb w9, [x21, #3]+ ldrb w9, [x21, #1]str x0, [x27, x9, lsl #3]- ldrb w9, [x21, #9]- add x21, x21, #9+ ldrb w9, [x21, #7]+ add x21, x21, #7ldr x10, [x19, x9, lsl #3]br x10.Lasm_GetById.ssa_block_25:@@ -14334,14 +14334,14 @@ asm_handler_GetById_cold:adds x4, x4, x0ldr w2, [x4, #8]cmp x2, #1- b.hs .Lasm_GetById.assert_predicate_failure_160+ b.hs .Lasm_GetById.assert_predicate_failure_161mov x0, x20ldp x0, x6, [x0, #16]cbz x0, .Lasm_GetById.assert_failure_6cbz x6, .Lasm_GetById.assert_failure_7add x5, x0, #128cmp x5, x0- b.lo .Lasm_GetById.assert_predicate_failure_169+ b.lo .Lasm_GetById.assert_predicate_failure_170cmp x5, x6b.hi .Lasm_GetById.ssa_block_3mov x6, x20@@ -14349,7 +14349,7 @@ asm_handler_GetById_cold:mov x6, x7add x6, x6, #8, lsl #12cmp x6, x7- b.lo .Lasm_GetById.assert_predicate_failure_177+ b.lo .Lasm_GetById.assert_predicate_failure_178cmp x6, x29b.hi .Lasm_GetById.ssa_block_3mov x6, x20@@ -14364,8 +14364,8 @@ asm_handler_GetById_cold:add x2, x24, w2, uxtw #3stp x1, x2, [x0, #0]ldp x1, x2, [x28, #32]- cbz x1, .Lasm_GetById.assert_predicate_failure_202- cbz x2, .Lasm_GetById.assert_predicate_failure_204+ cbz x1, .Lasm_GetById.assert_predicate_failure_203+ cbz x2, .Lasm_GetById.assert_predicate_failure_205stp x1, x2, [x0, #32]ldr x1, [x28, #48]str x1, [x0, #48]@@ -14386,7 +14386,7 @@ asm_handler_GetById_cold:strb wzr, [x0, #124]strb wzr, [x0, #125]sub w1, w21, w26- ldrb w2, [x21, #3]+ ldrb w2, [x21, #1]str w1, [x28, #64]str x28, [x0, #96]add x1, x1, #1@@ -14402,34 +14402,34 @@ asm_handler_GetById_cold:blr x9and x1, x1, #0xffcmp x1, #2- b.hs .Lasm_GetById.assert_predicate_failure_267+ b.hs .Lasm_GetById.assert_predicate_failure_268cbnz x1, .Lasm_GetById.ssa_block_6ldr x1, [x28, #96]- cbz x1, .Lasm_GetById.assert_predicate_failure_276+ cbz x1, .Lasm_GetById.assert_predicate_failure_277mov x2, x20str x1, [x2]str x28, [x2, #16]mov x28, x1add x27, x28, #128- ldrb w9, [x21, #3]+ ldrb w9, [x21, #1]str x0, [x27, x9, lsl #3]- ldrb w9, [x21, #9]- add x21, x21, #9+ ldrb w9, [x21, #7]+ add x21, x21, #7ldr x10, [x19, x9, lsl #3]br x10.Lasm_GetById.ssa_block_5:movz x0, #0x7ffe, lsl #48- ldrb w9, [x21, #3]+ ldrb w9, [x21, #1]str x0, [x27, x9, lsl #3]- ldrb w9, [x21, #9]- add x21, x21, #9+ ldrb w9, [x21, #7]+ add x21, x21, #7ldr x10, [x19, x9, lsl #3]br x10.Lasm_GetById.ssa_block_4:mov x0, x20sub w1, w21, w26str w1, [x28, #64]- ldrb w9, [x21, #4]+ ldrb w9, [x21, #2]ldr x10, [x27, x9, lsl #3].Lasm_GetById.scalar_value_ready_11:mov x3, x10@@ -14443,7 +14443,7 @@ asm_handler_GetById_cold:tbnz x0, #32, 1fb .Lasm_GetById.scalar_result_done_121:- ldrb w9, [x21, #3]+ ldrb w9, [x21, #1]str x1, [x27, x9, lsl #3]add x21, x26, w0, uxtwldrb w9, [x21]@@ -14493,7 +14493,7 @@ asm_handler_GetById_cold:b .Lasm_GetById.ssa_block_24.Lasm_GetById.ssa_block_3:sub sp, sp, #16- ldrb w12, [x21, #4]+ ldrb w12, [x21, #2]ldr x11, [x27, x12, lsl #3].Lasm_GetById.value_ready_15:str x11, [sp, #8]@@ -14506,7 +14506,7 @@ asm_handler_GetById_cold:cmp x9, x28b.ne .Lasm_GetById.values_restore_stack_16cbnz x0, .Lasm_GetById.values_exceptional_outputs_17- ldrb w12, [x21, #3]+ ldrb w12, [x21, #1]ldr x11, [sp]str x11, [x27, x12, lsl #3].Lasm_GetById.skip_output_value_18:@@ -14560,8 +14560,8 @@ asm_handler_GetById_cold:ldr x0, [x28, #88]ldr x1, [x0, #152]cbz x1, .Lasm_GetById.assert_failure_21- ldurh w2, [x21, #7]- ldrb w0, [x21, #4]+ ldurh w2, [x21, #5]+ ldrb w0, [x21, #2]ldr x0, [x27, x0, lsl #3]lsl x2, x2, #3adds x1, x1, x2@@ -14569,15 +14569,15 @@ asm_handler_GetById_cold:movz x9, #0x7ffb, lsl #48cmp x0, x9b.eq .Lasm_GetById.ssa_block_2- ldrb w9, [x21, #3]+ ldrb w9, [x21, #1]str x0, [x27, x9, lsl #3]- ldrb w9, [x21, #9]- add x21, x21, #9+ ldrb w9, [x21, #7]+ add x21, x21, #7ldr x10, [x19, x9, lsl #3]br x10.Lasm_GetById.ssa_block_14:sub sp, sp, #16- ldrb w12, [x21, #4]+ ldrb w12, [x21, #2]ldr x11, [x27, x12, lsl #3].Lasm_GetById.value_ready_23:str x11, [sp, #8]@@ -14590,7 +14590,7 @@ asm_handler_GetById_cold:cmp x9, x28b.ne .Lasm_GetById.values_restore_stack_24cbnz x0, .Lasm_GetById.values_exceptional_outputs_25- ldrb w12, [x21, #3]+ ldrb w12, [x21, #1]ldr x11, [sp]str x11, [x27, x12, lsl #3].Lasm_GetById.skip_output_value_26:@@ -14600,15 +14600,15 @@ asm_handler_GetById_cold:add sp, sp, #16.Lasm_GetById.values_call_done_22:cbnz w0, .Lasm_GetById.ssa_block_2- ldrb w9, [x21, #9]- add x21, x21, #9+ ldrb w9, [x21, #7]+ add x21, x21, #7ldr x10, [x19, x9, lsl #3]br x10.Lasm_GetById.ssa_block_2:mov x0, x20sub w1, w21, w26str w1, [x28, #64]- ldrb w9, [x21, #4]+ ldrb w9, [x21, #2]ldr x10, [x27, x9, lsl #3].Lasm_GetById.scalar_value_ready_27:mov x3, x10@@ -14622,7 +14622,7 @@ asm_handler_GetById_cold:tbnz x0, #32, 1fb .Lasm_GetById.scalar_result_done_281:- ldrb w9, [x21, #3]+ ldrb w9, [x21, #1]str x1, [x27, x9, lsl #3]add x21, x26, w0, uxtwldrb w9, [x21]@@ -14656,11 +14656,11 @@ asm_handler_GetByIdWithThis:mov x0, x20sub w1, w21, w26str w1, [x28, #64]- ldrb w9, [x21, #4]+ ldrb w9, [x21, #2]ldr x10, [x27, x9, lsl #3].Lasm_GetByIdWithThis.scalar_value_ready_0:mov x3, x10- ldrb w9, [x21, #7]+ ldrb w9, [x21, #5]ldr x10, [x27, x9, lsl #3].Lasm_GetByIdWithThis.scalar_value_ready_1:mov x4, x10@@ -14670,7 +14670,7 @@ asm_handler_GetByIdWithThis:bl CSYM(asm_slow_path_get_by_id_with_this)tbnz x0, #63, .Lasm_GetByIdWithThis.scalar_result_done_2tbz x0, #32, .Lasm_GetByIdWithThis.scalar_result_done_2- ldrb w9, [x21, #3]+ ldrb w9, [x21, #1]str x1, [x27, x9, lsl #3]add x21, x26, w0, uxtwldrb w9, [x21]@@ -14863,28 +14863,28 @@ asm_handler_GetByValue_cold:mov w10, #65532cmp x9, x10b.eq .Lasm_GetByValue.ssa_block_2- ldrb w9, [x21, #5]+ ldrb w9, [x21, #3]str x0, [x27, x9, lsl #3]- ldrb w9, [x21, #10]- add x21, x21, #10+ ldrb w9, [x21, #8]+ add x21, x21, #8ldr x10, [x19, x9, lsl #3]br x10.Lasm_GetByValue.ssa_block_12:scvtf d0, x0fmov x0, d0- ldrb w9, [x21, #5]+ ldrb w9, [x21, #3]str x0, [x27, x9, lsl #3]- ldrb w9, [x21, #10]- add x21, x21, #10+ ldrb w9, [x21, #8]+ add x21, x21, #8ldr x10, [x19, x9, lsl #3]br x10.Lasm_GetByValue.ssa_block_4:sub sp, sp, #32- ldrb w12, [x21, #6]+ ldrb w12, [x21, #4]ldr x11, [x27, x12, lsl #3].Lasm_GetByValue.value_ready_10:str x11, [sp, #8]- ldrb w12, [x21, #7]+ ldrb w12, [x21, #5]ldr x11, [x27, x12, lsl #3].Lasm_GetByValue.value_ready_11:str x11, [sp, #16]@@ -14897,7 +14897,7 @@ asm_handler_GetByValue_cold:cmp x9, x28b.ne .Lasm_GetByValue.values_restore_stack_12cbnz x0, .Lasm_GetByValue.values_exceptional_outputs_13- ldrb w12, [x21, #5]+ ldrb w12, [x21, #3]ldr x11, [sp]str x11, [x27, x12, lsl #3].Lasm_GetByValue.skip_output_value_14:@@ -14907,19 +14907,19 @@ asm_handler_GetByValue_cold:add sp, sp, #32.Lasm_GetByValue.values_call_done_9:cbnz w0, .Lasm_GetByValue.ssa_block_1- ldrb w9, [x21, #10]- add x21, x21, #10+ ldrb w9, [x21, #8]+ add x21, x21, #8ldr x10, [x19, x9, lsl #3]br x10.Lasm_GetByValue.ssa_block_7:mov x0, x20sub w1, w21, w26str w1, [x28, #64]- ldrb w9, [x21, #6]+ ldrb w9, [x21, #4]ldr x10, [x27, x9, lsl #3].Lasm_GetByValue.scalar_value_ready_15:mov x3, x10- ldrb w9, [x21, #7]+ ldrb w9, [x21, #5]ldr x10, [x27, x9, lsl #3].Lasm_GetByValue.scalar_value_ready_16:mov x4, x10@@ -14933,7 +14933,7 @@ asm_handler_GetByValue_cold:tbnz x0, #32, 1fb .Lasm_GetByValue.scalar_result_done_171:- ldrb w9, [x21, #5]+ ldrb w9, [x21, #3]str x1, [x27, x9, lsl #3]add x21, x26, w0, uxtwldrb w9, [x21]@@ -14960,7 +14960,7 @@ asm_handler_GetByValue_cold:ldr x10, [x19, x9, lsl #3]br x10.Lasm_GetByValue.ssa_block_6:- ldrb w0, [x21, #7]+ ldrb w0, [x21, #5]ldr x0, [x27, x0, lsl #3]lsr x9, x0, #48mov w10, #65530@@ -14970,11 +14970,11 @@ asm_handler_GetByValue_cold:mov x0, x20sub w1, w21, w26str w1, [x28, #64]- ldrb w9, [x21, #6]+ ldrb w9, [x21, #4]ldr x10, [x27, x9, lsl #3].Lasm_GetByValue.scalar_value_ready_19:mov x3, x10- ldrb w9, [x21, #7]+ ldrb w9, [x21, #5]ldr x10, [x27, x9, lsl #3].Lasm_GetByValue.scalar_value_ready_20:mov x4, x10@@ -14988,7 +14988,7 @@ asm_handler_GetByValue_cold:tbnz x0, #32, 1fb .Lasm_GetByValue.scalar_result_done_211:- ldrb w9, [x21, #5]+ ldrb w9, [x21, #3]str x1, [x27, x9, lsl #3]add x21, x26, w0, uxtwldrb w9, [x21]@@ -15018,11 +15018,11 @@ asm_handler_GetByValue_cold:mov x0, x20sub w1, w21, w26str w1, [x28, #64]- ldrb w9, [x21, #6]+ ldrb w9, [x21, #4]ldr x10, [x27, x9, lsl #3].Lasm_GetByValue.scalar_value_ready_23:mov x3, x10- ldrb w9, [x21, #7]+ ldrb w9, [x21, #5]ldr x10, [x27, x9, lsl #3].Lasm_GetByValue.scalar_value_ready_24:mov x4, x10@@ -15036,7 +15036,7 @@ asm_handler_GetByValue_cold:tbnz x0, #32, 1fb .Lasm_GetByValue.scalar_result_done_251:- ldrb w9, [x21, #5]+ ldrb w9, [x21, #3]str x1, [x27, x9, lsl #3]add x21, x26, w0, uxtwldrb w9, [x21]@@ -15064,11 +15064,11 @@ asm_handler_GetByValue_cold:br x10.Lasm_GetByValue.ssa_block_3:sub sp, sp, #32- ldrb w12, [x21, #6]+ ldrb w12, [x21, #4]ldr x11, [x27, x12, lsl #3].Lasm_GetByValue.value_ready_28:str x11, [sp, #8]- ldrb w12, [x21, #7]+ ldrb w12, [x21, #5]ldr x11, [x27, x12, lsl #3].Lasm_GetByValue.value_ready_29:str x11, [sp, #16]@@ -15081,7 +15081,7 @@ asm_handler_GetByValue_cold:cmp x9, x28b.ne .Lasm_GetByValue.values_restore_stack_30cbnz x0, .Lasm_GetByValue.values_exceptional_outputs_31- ldrb w12, [x21, #5]+ ldrb w12, [x21, #3]ldr x11, [sp]str x11, [x27, x12, lsl #3].Lasm_GetByValue.skip_output_value_32:@@ -15091,8 +15091,8 @@ asm_handler_GetByValue_cold:add sp, sp, #32.Lasm_GetByValue.values_call_done_27:cbnz w0, .Lasm_GetByValue.ssa_block_1- ldrb w9, [x21, #10]- add x21, x21, #10+ ldrb w9, [x21, #8]+ add x21, x21, #8ldr x10, [x19, x9, lsl #3]br x10.Lasm_GetByValue.canon_nan_1:@@ -15253,17 +15253,17 @@ asm_handler_GetLength_cold:.Lasm_GetLength.ssa_block_3:scvtf d0, x0fmov x0, d0- ldrb w9, [x21, #5]+ ldrb w9, [x21, #3]str x0, [x27, x9, lsl #3]- ldrb w9, [x21, #9]- add x21, x21, #9+ ldrb w9, [x21, #7]+ add x21, x21, #7ldr x10, [x19, x9, lsl #3]br x10.Lasm_GetLength.ssa_block_1:mov x0, x20sub w1, w21, w26str w1, [x28, #64]- ldrb w9, [x21, #6]+ ldrb w9, [x21, #4]ldr x10, [x27, x9, lsl #3].Lasm_GetLength.scalar_value_ready_3:mov x3, x10@@ -15277,7 +15277,7 @@ asm_handler_GetLength_cold:tbnz x0, #32, 1fb .Lasm_GetLength.scalar_result_done_41:- ldrb w9, [x21, #5]+ ldrb w9, [x21, #3]str x1, [x27, x9, lsl #3]add x21, x26, w0, uxtwldrb w9, [x21]@@ -15309,11 +15309,11 @@ asm_handler_GetLengthWithThis:mov x0, x20sub w1, w21, w26str w1, [x28, #64]- ldrb w9, [x21, #4]+ ldrb w9, [x21, #2]ldr x10, [x27, x9, lsl #3].Lasm_GetLengthWithThis.scalar_value_ready_0:mov x3, x10- ldrb w9, [x21, #5]+ ldrb w9, [x21, #3]ldr x10, [x27, x9, lsl #3].Lasm_GetLengthWithThis.scalar_value_ready_1:mov x4, x10@@ -15323,7 +15323,7 @@ asm_handler_GetLengthWithThis:bl CSYM(asm_slow_path_get_length_with_this)tbnz x0, #63, .Lasm_GetLengthWithThis.scalar_result_done_2tbz x0, #32, .Lasm_GetLengthWithThis.scalar_result_done_2- ldrb w9, [x21, #3]+ ldrb w9, [x21, #1]str x1, [x27, x9, lsl #3]add x21, x26, w0, uxtwldrb w9, [x21]@@ -21084,11 +21084,11 @@ asm_assertion_failure_traps:brk #0.Lasm_GetById.assert_failure_0:brk #0-.Lasm_GetById.assert_predicate_failure_123:+.Lasm_GetById.assert_predicate_failure_124:brk #0.Lasm_GetById.assert_failure_1:brk #0-.Lasm_GetById.assert_predicate_failure_337:+.Lasm_GetById.assert_predicate_failure_338:brk #0.Lasm_GetById.assert_failure_2:brk #0@@ -21098,29 +21098,29 @@ asm_assertion_failure_traps:brk #0.Lasm_GetById.assert_failure_5:brk #0-.Lasm_GetById.assert_predicate_failure_160:+.Lasm_GetById.assert_predicate_failure_161:brk #0.Lasm_GetById.assert_failure_6:brk #0.Lasm_GetById.assert_failure_7:brk #0-.Lasm_GetById.assert_predicate_failure_169:+.Lasm_GetById.assert_predicate_failure_170:brk #0-.Lasm_GetById.assert_predicate_failure_177:+.Lasm_GetById.assert_predicate_failure_178:brk #0.Lasm_GetById.assert_failure_8:brk #0.Lasm_GetById.assert_failure_9:brk #0-.Lasm_GetById.assert_predicate_failure_202:+.Lasm_GetById.assert_predicate_failure_203:brk #0-.Lasm_GetById.assert_predicate_failure_204:+.Lasm_GetById.assert_predicate_failure_205:brk #0.Lasm_GetById.assert_failure_10:brk #0-.Lasm_GetById.assert_predicate_failure_267:+.Lasm_GetById.assert_predicate_failure_268:brk #0-.Lasm_GetById.assert_predicate_failure_276:+.Lasm_GetById.assert_predicate_failure_277:brk #0.Lasm_GetById.assert_predicate_failure_26:brk #0@@ -21150,11 +21150,11 @@ asm_assertion_failure_traps:brk #0.Lasm_GetByValue.assert_failure_0:brk #0-.Lasm_GetByValue.assert_predicate_failure_297:+.Lasm_GetByValue.assert_predicate_failure_298:brk #0.Lasm_GetByValue.assert_failure_2:brk #0-.Lasm_GetByValue.assert_predicate_failure_231:+.Lasm_GetByValue.assert_predicate_failure_232:brk #0.Lasm_GetByValue.assert_failure_3:brk #0@@ -21170,11 +21170,11 @@ asm_assertion_failure_traps:brk #0.Lasm_GetLength.assert_failure_0:brk #0-.Lasm_GetLength.assert_predicate_failure_21:+.Lasm_GetLength.assert_predicate_failure_22:brk #0.Lasm_GetLength.assert_failure_1:brk #0-.Lasm_GetLength.assert_predicate_failure_43:+.Lasm_GetLength.assert_predicate_failure_44:brk #0.Lasm_GetLength.assert_failure_2:brk #0diff --git a/Libraries/LibJS/Flap/tests/interpreter-assembly/x86_64.S b/Libraries/LibJS/Flap/tests/interpreter-assembly/x86_64.Sindex 99dac7292d8..0b9750b45e4 100644--- a/Libraries/LibJS/Flap/tests/interpreter-assembly/x86_64.S+++ b/Libraries/LibJS/Flap/tests/interpreter-assembly/x86_64.S@@ -5303,7 +5303,7 @@ asm_handler_PutByValue_hot_end:.p2align 6asm_handler_GetById:- movzx eax, BYTE PTR [r14 + r13 + 4]+ movzx eax, BYTE PTR [r14 + r13 + 2]mov rsi, QWORD PTR [rbx + rax * 8]mov r11, rsishr r11, 48@@ -5318,17 +5318,17 @@ asm_handler_GetById:lea rax, [r15 + rax * 8]mov rcx, QWORD PTR [rbx - 40]test rcx, rcx- jz .Lasm_GetById.assert_predicate_failure_123+ jz .Lasm_GetById.assert_predicate_failure_124mov rdx, QWORD PTR [rcx + 152]test rdx, rdxjz .Lasm_GetById.assert_failure_1- movzx edi, WORD PTR [r14 + r13 + 7]+ movzx edi, WORD PTR [r14 + r13 + 5]mov rdx, QWORD PTR [rdx + rdi * 8]test rdx, rdxjz .Lasm_GetById.ssa_block_1and rdx, -4test rdx, rdx- jz .Lasm_GetById.assert_predicate_failure_337+ jz .Lasm_GetById.assert_predicate_failure_338cmp QWORD PTR [rdx + 24], raxjne .Lasm_GetById.ssa_block_15mov ecx, DWORD PTR [rdx]@@ -5351,16 +5351,16 @@ asm_handler_GetById:shr r11, 48cmp r11w, 65532je .Lasm_GetById.ssa_block_17- movzx r11d, BYTE PTR [r14 + r13 + 3]+ movzx r11d, BYTE PTR [r14 + r13 + 1]mov QWORD PTR [rbx + r11 * 8], rax- add r13d, 9+ add r13d, 7movzx eax, BYTE PTR [r14 + r13]jmp [r12 + rax * 8].Lasm_GetById.ssa_block_15:mov rcx, QWORD PTR [rcx + 152]test rcx, rcxjz .Lasm_GetById.assert_failure_3- movzx edx, WORD PTR [r14 + r13 + 7]+ movzx edx, WORD PTR [r14 + r13 + 5]mov rcx, QWORD PTR [rcx + rdx * 8]mov rdx, rcxand rdx, 3@@ -5396,9 +5396,9 @@ asm_handler_GetById:shr r11, 48cmp r11w, 65532je .Lasm_GetById.ssa_block_1- movzx r11d, BYTE PTR [r14 + r13 + 3]+ movzx r11d, BYTE PTR [r14 + r13 + 1]mov QWORD PTR [rbx + r11 * 8], rax- add r13d, 9+ add r13d, 7movzx eax, BYTE PTR [r14 + r13]jmp [r12 + rax * 8]asm_handler_GetById_hot_end:@@ -5461,13 +5461,13 @@ asm_handler_PutById_hot_end:.p2align 6asm_handler_GetByValue:- movzx eax, BYTE PTR [r14 + r13 + 7]+ movzx eax, BYTE PTR [r14 + r13 + 5]mov rdi, QWORD PTR [rbx + rax * 8]mov r11, rdishr r11, 48cmp r11w, 32762jne .Lasm_GetByValue.ssa_block_5- movzx eax, BYTE PTR [r14 + r13 + 6]+ movzx eax, BYTE PTR [r14 + r13 + 4]mov rsi, QWORD PTR [rbx + rax * 8]mov rax, rsishr rax, 48@@ -5495,9 +5495,9 @@ asm_handler_GetByValue:cmp rax, rdxjae .Lasm_GetByValue.ssa_block_1mov rax, QWORD PTR [rcx + rax * 8]- movzx r11d, BYTE PTR [r14 + r13 + 5]+ movzx r11d, BYTE PTR [r14 + r13 + 3]mov QWORD PTR [rbx + r11 * 8], rax- add r13d, 10+ add r13d, 8movzx eax, BYTE PTR [r14 + r13]jmp [r12 + rax * 8].Lasm_GetByValue.ssa_switch_21_after_preferred:@@ -5517,9 +5517,9 @@ asm_handler_GetByValue:shr r11, 48cmp r11w, 32763je .Lasm_GetByValue.ssa_block_1- movzx r11d, BYTE PTR [r14 + r13 + 5]+ movzx r11d, BYTE PTR [r14 + r13 + 3]mov QWORD PTR [rbx + r11 * 8], rax- add r13d, 10+ add r13d, 8movzx eax, BYTE PTR [r14 + r13]jmp [r12 + rax * 8].Lasm_GetByValue.ssa_block_20:@@ -5545,9 +5545,9 @@ asm_handler_GetByValue:movzx eax, BYTE PTR [rax]movabs r11, 9221683186994511872or rax, r11- movzx r11d, BYTE PTR [r14 + r13 + 5]+ movzx r11d, BYTE PTR [r14 + r13 + 3]mov QWORD PTR [rbx + r11 * 8], rax- add r13d, 10+ add r13d, 8movzx eax, BYTE PTR [r14 + r13]jmp [r12 + rax * 8].Lasm_GetByValue.ssa_switch_20_after_preferred:@@ -5605,9 +5605,9 @@ asm_handler_GetByValue:.Lasm_GetByValue.ssa_block_11:movabs r11, 9221683186994511872or rax, r11- movzx r11d, BYTE PTR [r14 + r13 + 5]+ movzx r11d, BYTE PTR [r14 + r13 + 3]mov QWORD PTR [rbx + r11 * 8], rax- add r13d, 10+ add r13d, 8movzx eax, BYTE PTR [r14 + r13]jmp [r12 + rax * 8].Lasm_GetByValue.ssa_block_30:@@ -5647,9 +5647,9 @@ asm_handler_GetByValue:.Lasm_GetByValue.ssa_block_9:movabs r11, 9221683186994511872or rax, r11- movzx r11d, BYTE PTR [r14 + r13 + 5]+ movzx r11d, BYTE PTR [r14 + r13 + 3]mov QWORD PTR [rbx + r11 * 8], rax- add r13d, 10+ add r13d, 8movzx eax, BYTE PTR [r14 + r13]jmp [r12 + rax * 8].Lasm_GetByValue.ssa_block_10:@@ -5657,9 +5657,9 @@ asm_handler_GetByValue:ucomisd xmm0, xmm0jp .Lasm_GetByValue.canon_nan_1.Lasm_GetByValue.canon_nan_1_ret:- movzx r11d, BYTE PTR [r14 + r13 + 5]+ movzx r11d, BYTE PTR [r14 + r13 + 3]mov QWORD PTR [rbx + r11 * 8], rax- add r13d, 10+ add r13d, 8movzx eax, BYTE PTR [r14 + r13]jmp [r12 + rax * 8].Lasm_GetByValue.ssa_block_8:@@ -5719,14 +5719,14 @@ asm_handler_GetByValue:mov r11, raxshr r11, 48cmp r11w, 65530- jne .Lasm_GetByValue.assert_predicate_failure_297- movzx r11d, BYTE PTR [r14 + r13 + 5]+ jne .Lasm_GetByValue.assert_predicate_failure_298+ movzx r11d, BYTE PTR [r14 + r13 + 3]mov QWORD PTR [rbx + r11 * 8], rax- add r13d, 10+ add r13d, 8movzx eax, BYTE PTR [r14 + r13]jmp [r12 + rax * 8].Lasm_GetByValue.ssa_block_5:- movzx eax, BYTE PTR [r14 + r13 + 6]+ movzx eax, BYTE PTR [r14 + r13 + 4]mov rdx, QWORD PTR [rbx + rax * 8]mov r11, rdxshr r11, 48@@ -5736,7 +5736,7 @@ asm_handler_GetByValue:mov rcx, QWORD PTR [rax + 152]test rcx, rcxjz .Lasm_GetByValue.assert_failure_2- movzx esi, WORD PTR [r14 + r13 + 8]+ movzx esi, WORD PTR [r14 + r13 + 6]mov rcx, QWORD PTR [rcx + rsi * 8]movabs r11, 34359738367and rdx, r11@@ -5744,11 +5744,11 @@ asm_handler_GetByValue:cmp rcx, 3je .Lasm_GetByValue.ssa_block_6test rax, rax- jz .Lasm_GetByValue.assert_predicate_failure_231+ jz .Lasm_GetByValue.assert_predicate_failure_232mov rax, QWORD PTR [rax + 152]test rax, raxjz .Lasm_GetByValue.assert_failure_3- movzx ecx, WORD PTR [r14 + r13 + 8]+ movzx ecx, WORD PTR [r14 + r13 + 6]mov rax, QWORD PTR [rax + rcx * 8]test rax, raxjz .Lasm_GetByValue.ssa_block_1@@ -5782,16 +5782,16 @@ asm_handler_GetByValue:shr r11, 48cmp r11w, 65532je .Lasm_GetByValue.ssa_block_1- movzx r11d, BYTE PTR [r14 + r13 + 5]+ movzx r11d, BYTE PTR [r14 + r13 + 3]mov QWORD PTR [rbx + r11 * 8], rax- add r13d, 10+ add r13d, 8movzx eax, BYTE PTR [r14 + r13]jmp [r12 + rax * 8]asm_handler_GetByValue_hot_end:.p2align 6asm_handler_GetLength:- movzx eax, BYTE PTR [r14 + r13 + 6]+ movzx eax, BYTE PTR [r14 + r13 + 4]mov rdx, QWORD PTR [rbx + rax * 8]mov rax, rdxshr rax, 48@@ -5808,9 +5808,9 @@ asm_handler_GetLength:js .Lasm_GetLength.ssa_block_3movabs r11, 9221683186994511872or rax, r11- movzx r11d, BYTE PTR [r14 + r13 + 5]+ movzx r11d, BYTE PTR [r14 + r13 + 3]mov QWORD PTR [rbx + r11 * 8], rax- add r13d, 9+ add r13d, 7movzx eax, BYTE PTR [r14 + r13]jmp [r12 + rax * 8].Lasm_GetLength.ssa_block_6:@@ -5820,17 +5820,17 @@ asm_handler_GetLength:lea rcx, [r15 + rcx * 8]mov rax, QWORD PTR [rbx - 40]test rax, rax- jz .Lasm_GetLength.assert_predicate_failure_21+ jz .Lasm_GetLength.assert_predicate_failure_22mov rax, QWORD PTR [rax + 152]test rax, raxjz .Lasm_GetLength.assert_failure_1- movzx esi, WORD PTR [r14 + r13 + 7]+ movzx esi, WORD PTR [r14 + r13 + 5]mov rax, QWORD PTR [rax + rsi * 8]test rax, raxjz .Lasm_GetLength.ssa_block_1and rax, -4test rax, rax- jz .Lasm_GetLength.assert_predicate_failure_43+ jz .Lasm_GetLength.assert_predicate_failure_44mov rdi, QWORD PTR [rax + 24]mov rsi, QWORD PTR [rax + 32]cmp rdi, rcx@@ -5852,9 +5852,9 @@ asm_handler_GetLength:shr r11, 48cmp r11w, 65532je .Lasm_GetLength.ssa_block_1- movzx r11d, BYTE PTR [r14 + r13 + 5]+ movzx r11d, BYTE PTR [r14 + r13 + 3]mov QWORD PTR [rbx + r11 * 8], rax- add r13d, 9+ add r13d, 7movzx eax, BYTE PTR [r14 + r13]jmp [r12 + rax * 8].Lasm_GetLength.ssa_block_2:@@ -5868,9 +5868,9 @@ asm_handler_GetLength:js .Lasm_GetLength.ssa_block_1movabs r11, 9221683186994511872or rax, r11- movzx r11d, BYTE PTR [r14 + r13 + 5]+ movzx r11d, BYTE PTR [r14 + r13 + 3]mov QWORD PTR [rbx + r11 * 8], rax- add r13d, 9+ add r13d, 7movzx eax, BYTE PTR [r14 + r13]jmp [r12 + rax * 8]asm_handler_GetLength_hot_end:@@ -13915,9 +13915,9 @@ asm_handler_GetById_cold:movabs rcx, -1970324836974592or rax, rcx.Lasm_GetById.ssa_block_51:- movzx r11d, BYTE PTR [r14 + r13 + 3]+ movzx r11d, BYTE PTR [r14 + r13 + 1]mov QWORD PTR [rbx + r11 * 8], rax- add r13d, 9+ add r13d, 7movzx eax, BYTE PTR [r14 + r13]jmp [r12 + rax * 8].Lasm_GetById.ssa_block_25:@@ -13931,7 +13931,7 @@ asm_handler_GetById_cold:add rdi, raxmov edx, DWORD PTR [rdi + 8]cmp rdx, 1- jae .Lasm_GetById.assert_predicate_failure_160+ jae .Lasm_GetById.assert_predicate_failure_161mov rax, QWORD PTR [rbp - 48]mov r9, QWORD PTR [rax + 24]mov rax, QWORD PTR [rax + 16]@@ -13941,7 +13941,7 @@ asm_handler_GetById_cold:jz .Lasm_GetById.assert_failure_7lea r8, [rax + 128]cmp r8, rax- jb .Lasm_GetById.assert_predicate_failure_169+ jb .Lasm_GetById.assert_predicate_failure_170cmp r8, r9ja .Lasm_GetById.ssa_block_3mov r9, QWORD PTR [rbp - 48]@@ -13949,7 +13949,7 @@ asm_handler_GetById_cold:mov r9, r10add r9, 32768cmp r9, r10- jb .Lasm_GetById.assert_predicate_failure_177+ jb .Lasm_GetById.assert_predicate_failure_178cmp r9, rbpja .Lasm_GetById.ssa_block_3mov r9, QWORD PTR [rbp - 48]@@ -13970,9 +13970,9 @@ asm_handler_GetById_cold:mov rcx, QWORD PTR [rbx - 96]mov rdx, QWORD PTR [rbx - 88]test rcx, rcx- jz .Lasm_GetById.assert_predicate_failure_202+ jz .Lasm_GetById.assert_predicate_failure_203test rdx, rdx- jz .Lasm_GetById.assert_predicate_failure_204+ jz .Lasm_GetById.assert_predicate_failure_205mov QWORD PTR [rax + 32], rcxmov QWORD PTR [rax + 40], rdxmov rcx, QWORD PTR [rbx - 80]@@ -13994,7 +13994,7 @@ asm_handler_GetById_cold:mov BYTE PTR [rax + 124], 0mov BYTE PTR [rax + 125], 0mov ecx, r13d- movzx edx, BYTE PTR [r14 + r13 + 3]+ movzx edx, BYTE PTR [r14 + r13 + 1]mov DWORD PTR [rbx - 64], ecxlea r11, [rbx - 128]mov QWORD PTR [rax + 96], r11@@ -14013,33 +14013,33 @@ asm_handler_GetById_cold:mov rcx, rdxand rcx, 255cmp rcx, 2- jae .Lasm_GetById.assert_predicate_failure_267+ jae .Lasm_GetById.assert_predicate_failure_268test rcx, rcxjnz .Lasm_GetById.ssa_block_6mov rcx, QWORD PTR [rbx - 32]test rcx, rcx- jz .Lasm_GetById.assert_predicate_failure_276+ jz .Lasm_GetById.assert_predicate_failure_277mov rdx, QWORD PTR [rbp - 48]mov QWORD PTR [rdx], rcxlea r11, [rbx - 128]mov QWORD PTR [rdx + 16], r11lea rbx, [rcx + 128]- movzx r11d, BYTE PTR [r14 + r13 + 3]+ movzx r11d, BYTE PTR [r14 + r13 + 1]mov QWORD PTR [rbx + r11 * 8], rax- add r13d, 9+ add r13d, 7movzx eax, BYTE PTR [r14 + r13]jmp [r12 + rax * 8].Lasm_GetById.ssa_block_5:movabs rax, 9222809086901354496- movzx r11d, BYTE PTR [r14 + r13 + 3]+ movzx r11d, BYTE PTR [r14 + r13 + 1]mov QWORD PTR [rbx + r11 * 8], rax- add r13d, 9+ add r13d, 7movzx eax, BYTE PTR [r14 + r13]jmp [r12 + rax * 8].Lasm_GetById.ssa_block_4:mov DWORD PTR [rbx + -64], r13dlea r11, [r14 + r13]- movzx r10d, BYTE PTR [r11 + 4]+ movzx r10d, BYTE PTR [r11 + 2]mov rax, QWORD PTR [rbx + r10 * 8].Lasm_GetById.scalar_value_ready_11:mov rcx, rax@@ -14052,7 +14052,7 @@ asm_handler_GetById_cold:bt rax, 32jnc .Lasm_GetById.scalar_result_done_12lea rcx, [r14 + r13]- movzx r10d, BYTE PTR [rcx + 3]+ movzx r10d, BYTE PTR [rcx + 1]mov QWORD PTR [rbx + r10 * 8], rdxmov r13d, eaxmovzx eax, BYTE PTR [r14 + r13]@@ -14100,7 +14100,7 @@ asm_handler_GetById_cold:.Lasm_GetById.ssa_block_3:lea rcx, [r14 + r13]sub rsp, 16- movzx r10d, BYTE PTR [rcx + 4]+ movzx r10d, BYTE PTR [rcx + 2]mov rax, QWORD PTR [rbx + r10 * 8].Lasm_GetById.value_ready_15:mov QWORD PTR [rsp + 8], rax@@ -14117,7 +14117,7 @@ asm_handler_GetById_cold:test rax, raxjne .Lasm_GetById.values_exceptional_outputs_17lea rcx, [r14 + r13]- movzx r10d, BYTE PTR [rcx + 3]+ movzx r10d, BYTE PTR [rcx + 1]mov r11, QWORD PTR [rsp]mov QWORD PTR [rbx + r10 * 8], r11.Lasm_GetById.skip_output_value_18:@@ -14177,8 +14177,8 @@ asm_handler_GetById_cold:mov rdx, QWORD PTR [rax + 152]test rdx, rdxjz .Lasm_GetById.assert_failure_21- movzx eax, WORD PTR [r14 + r13 + 7]- movzx ecx, BYTE PTR [r14 + r13 + 4]+ movzx eax, WORD PTR [r14 + r13 + 5]+ movzx ecx, BYTE PTR [r14 + r13 + 2]mov rcx, QWORD PTR [rbx + rcx * 8]shl rax, 3add rdx, rax@@ -14189,15 +14189,15 @@ asm_handler_GetById_cold:shr r11, 48cmp r11w, 32763je .Lasm_GetById.ssa_block_2- movzx r11d, BYTE PTR [r14 + r13 + 3]+ movzx r11d, BYTE PTR [r14 + r13 + 1]mov QWORD PTR [rbx + r11 * 8], rax- add r13d, 9+ add r13d, 7movzx eax, BYTE PTR [r14 + r13]jmp [r12 + rax * 8].Lasm_GetById.ssa_block_14:lea rcx, [r14 + r13]sub rsp, 16- movzx r10d, BYTE PTR [rcx + 4]+ movzx r10d, BYTE PTR [rcx + 2]mov rax, QWORD PTR [rbx + r10 * 8].Lasm_GetById.value_ready_23:mov QWORD PTR [rsp + 8], rax@@ -14214,7 +14214,7 @@ asm_handler_GetById_cold:test rax, raxjne .Lasm_GetById.values_exceptional_outputs_25lea rcx, [r14 + r13]- movzx r10d, BYTE PTR [rcx + 3]+ movzx r10d, BYTE PTR [rcx + 1]mov r11, QWORD PTR [rsp]mov QWORD PTR [rbx + r10 * 8], r11.Lasm_GetById.skip_output_value_26:@@ -14225,13 +14225,13 @@ asm_handler_GetById_cold:.Lasm_GetById.values_call_done_22:test eax, eaxjnz .Lasm_GetById.ssa_block_2- add r13d, 9+ add r13d, 7movzx eax, BYTE PTR [r14 + r13]jmp [r12 + rax * 8].Lasm_GetById.ssa_block_2:mov DWORD PTR [rbx + -64], r13dlea r11, [r14 + r13]- movzx r10d, BYTE PTR [r11 + 4]+ movzx r10d, BYTE PTR [r11 + 2]mov rax, QWORD PTR [rbx + r10 * 8].Lasm_GetById.scalar_value_ready_27:mov rcx, rax@@ -14244,7 +14244,7 @@ asm_handler_GetById_cold:bt rax, 32jnc .Lasm_GetById.scalar_result_done_28lea rcx, [r14 + r13]- movzx r10d, BYTE PTR [rcx + 3]+ movzx r10d, BYTE PTR [rcx + 1]mov QWORD PTR [rbx + r10 * 8], rdxmov r13d, eaxmovzx eax, BYTE PTR [r14 + r13]@@ -14273,11 +14273,11 @@ asm_handler_GetById_cold_end:asm_handler_GetByIdWithThis:mov DWORD PTR [rbx + -64], r13dlea r11, [r14 + r13]- movzx r10d, BYTE PTR [r11 + 4]+ movzx r10d, BYTE PTR [r11 + 2]mov rax, QWORD PTR [rbx + r10 * 8].Lasm_GetByIdWithThis.scalar_value_ready_0:mov rcx, rax- movzx r10d, BYTE PTR [r11 + 7]+ movzx r10d, BYTE PTR [r11 + 5]mov rax, QWORD PTR [rbx + r10 * 8].Lasm_GetByIdWithThis.scalar_value_ready_1:mov r8, rax@@ -14290,7 +14290,7 @@ asm_handler_GetByIdWithThis:bt rax, 32jnc .Lasm_GetByIdWithThis.scalar_result_done_2lea rcx, [r14 + r13]- movzx r10d, BYTE PTR [rcx + 3]+ movzx r10d, BYTE PTR [rcx + 1]mov QWORD PTR [rbx + r10 * 8], rdxmov r13d, eaxmovzx eax, BYTE PTR [r14 + r13]@@ -14471,27 +14471,27 @@ asm_handler_GetByValue_cold:shr r11, 48cmp r11w, 65532je .Lasm_GetByValue.ssa_block_2- movzx r11d, BYTE PTR [r14 + r13 + 5]+ movzx r11d, BYTE PTR [r14 + r13 + 3]mov QWORD PTR [rbx + r11 * 8], rax- add r13d, 10+ add r13d, 8movzx eax, BYTE PTR [r14 + r13]jmp [r12 + rax * 8].Lasm_GetByValue.ssa_block_12:cvtsi2sd xmm0, raxmovq rax, xmm0- movzx r11d, BYTE PTR [r14 + r13 + 5]+ movzx r11d, BYTE PTR [r14 + r13 + 3]mov QWORD PTR [rbx + r11 * 8], rax- add r13d, 10+ add r13d, 8movzx eax, BYTE PTR [r14 + r13]jmp [r12 + rax * 8].Lasm_GetByValue.ssa_block_4:lea rcx, [r14 + r13]sub rsp, 32- movzx r10d, BYTE PTR [rcx + 6]+ movzx r10d, BYTE PTR [rcx + 4]mov rax, QWORD PTR [rbx + r10 * 8].Lasm_GetByValue.value_ready_10:mov QWORD PTR [rsp + 8], rax- movzx r10d, BYTE PTR [rcx + 7]+ movzx r10d, BYTE PTR [rcx + 5]mov rax, QWORD PTR [rbx + r10 * 8].Lasm_GetByValue.value_ready_11:mov QWORD PTR [rsp + 16], rax@@ -14508,7 +14508,7 @@ asm_handler_GetByValue_cold:test rax, raxjne .Lasm_GetByValue.values_exceptional_outputs_13lea rcx, [r14 + r13]- movzx r10d, BYTE PTR [rcx + 5]+ movzx r10d, BYTE PTR [rcx + 3]mov r11, QWORD PTR [rsp]mov QWORD PTR [rbx + r10 * 8], r11.Lasm_GetByValue.skip_output_value_14:@@ -14519,17 +14519,17 @@ asm_handler_GetByValue_cold:.Lasm_GetByValue.values_call_done_9:test eax, eaxjnz .Lasm_GetByValue.ssa_block_1- add r13d, 10+ add r13d, 8movzx eax, BYTE PTR [r14 + r13]jmp [r12 + rax * 8].Lasm_GetByValue.ssa_block_7:mov DWORD PTR [rbx + -64], r13dlea r11, [r14 + r13]- movzx r10d, BYTE PTR [r11 + 6]+ movzx r10d, BYTE PTR [r11 + 4]mov rax, QWORD PTR [rbx + r10 * 8].Lasm_GetByValue.scalar_value_ready_15:mov rcx, rax- movzx r10d, BYTE PTR [r11 + 7]+ movzx r10d, BYTE PTR [r11 + 5]mov rax, QWORD PTR [rbx + r10 * 8].Lasm_GetByValue.scalar_value_ready_16:mov r8, rax@@ -14542,7 +14542,7 @@ asm_handler_GetByValue_cold:bt rax, 32jnc .Lasm_GetByValue.scalar_result_done_17lea rcx, [r14 + r13]- movzx r10d, BYTE PTR [rcx + 5]+ movzx r10d, BYTE PTR [rcx + 3]mov QWORD PTR [rbx + r10 * 8], rdxmov r13d, eaxmovzx eax, BYTE PTR [r14 + r13]@@ -14565,7 +14565,7 @@ asm_handler_GetByValue_cold:movzx eax, BYTE PTR [r14 + r13]jmp [r12 + rax * 8].Lasm_GetByValue.ssa_block_6:- movzx eax, BYTE PTR [r14 + r13 + 7]+ movzx eax, BYTE PTR [r14 + r13 + 5]mov rax, QWORD PTR [rbx + rax * 8]mov r11, raxshr r11, 48@@ -14574,11 +14574,11 @@ asm_handler_GetByValue_cold:.Lasm_GetByValue.ssa_block_2:mov DWORD PTR [rbx + -64], r13dlea r11, [r14 + r13]- movzx r10d, BYTE PTR [r11 + 6]+ movzx r10d, BYTE PTR [r11 + 4]mov rax, QWORD PTR [rbx + r10 * 8].Lasm_GetByValue.scalar_value_ready_19:mov rcx, rax- movzx r10d, BYTE PTR [r11 + 7]+ movzx r10d, BYTE PTR [r11 + 5]mov rax, QWORD PTR [rbx + r10 * 8].Lasm_GetByValue.scalar_value_ready_20:mov r8, rax@@ -14591,7 +14591,7 @@ asm_handler_GetByValue_cold:bt rax, 32jnc .Lasm_GetByValue.scalar_result_done_21lea rcx, [r14 + r13]- movzx r10d, BYTE PTR [rcx + 5]+ movzx r10d, BYTE PTR [rcx + 3]mov QWORD PTR [rbx + r10 * 8], rdxmov r13d, eaxmovzx eax, BYTE PTR [r14 + r13]@@ -14616,11 +14616,11 @@ asm_handler_GetByValue_cold:.Lasm_GetByValue.ssa_block_1:mov DWORD PTR [rbx + -64], r13dlea r11, [r14 + r13]- movzx r10d, BYTE PTR [r11 + 6]+ movzx r10d, BYTE PTR [r11 + 4]mov rax, QWORD PTR [rbx + r10 * 8].Lasm_GetByValue.scalar_value_ready_23:mov rcx, rax- movzx r10d, BYTE PTR [r11 + 7]+ movzx r10d, BYTE PTR [r11 + 5]mov rax, QWORD PTR [rbx + r10 * 8].Lasm_GetByValue.scalar_value_ready_24:mov r8, rax@@ -14633,7 +14633,7 @@ asm_handler_GetByValue_cold:bt rax, 32jnc .Lasm_GetByValue.scalar_result_done_25lea rcx, [r14 + r13]- movzx r10d, BYTE PTR [rcx + 5]+ movzx r10d, BYTE PTR [rcx + 3]mov QWORD PTR [rbx + r10 * 8], rdxmov r13d, eaxmovzx eax, BYTE PTR [r14 + r13]@@ -14658,11 +14658,11 @@ asm_handler_GetByValue_cold:.Lasm_GetByValue.ssa_block_3:lea rcx, [r14 + r13]sub rsp, 32- movzx r10d, BYTE PTR [rcx + 6]+ movzx r10d, BYTE PTR [rcx + 4]mov rax, QWORD PTR [rbx + r10 * 8].Lasm_GetByValue.value_ready_28:mov QWORD PTR [rsp + 8], rax- movzx r10d, BYTE PTR [rcx + 7]+ movzx r10d, BYTE PTR [rcx + 5]mov rax, QWORD PTR [rbx + r10 * 8].Lasm_GetByValue.value_ready_29:mov QWORD PTR [rsp + 16], rax@@ -14679,7 +14679,7 @@ asm_handler_GetByValue_cold:test rax, raxjne .Lasm_GetByValue.values_exceptional_outputs_31lea rcx, [r14 + r13]- movzx r10d, BYTE PTR [rcx + 5]+ movzx r10d, BYTE PTR [rcx + 3]mov r11, QWORD PTR [rsp]mov QWORD PTR [rbx + r10 * 8], r11.Lasm_GetByValue.skip_output_value_32:@@ -14690,7 +14690,7 @@ asm_handler_GetByValue_cold:.Lasm_GetByValue.values_call_done_27:test eax, eaxjnz .Lasm_GetByValue.ssa_block_1- add r13d, 10+ add r13d, 8movzx eax, BYTE PTR [r14 + r13]jmp [r12 + rax * 8].Lasm_GetByValue.canon_nan_1:@@ -14851,15 +14851,15 @@ asm_handler_GetLength_cold:.Lasm_GetLength.ssa_block_3:cvtsi2sd xmm0, raxmovq rax, xmm0- movzx r11d, BYTE PTR [r14 + r13 + 5]+ movzx r11d, BYTE PTR [r14 + r13 + 3]mov QWORD PTR [rbx + r11 * 8], rax- add r13d, 9+ add r13d, 7movzx eax, BYTE PTR [r14 + r13]jmp [r12 + rax * 8].Lasm_GetLength.ssa_block_1:mov DWORD PTR [rbx + -64], r13dlea r11, [r14 + r13]- movzx r10d, BYTE PTR [r11 + 6]+ movzx r10d, BYTE PTR [r11 + 4]mov rax, QWORD PTR [rbx + r10 * 8].Lasm_GetLength.scalar_value_ready_3:mov rcx, rax@@ -14872,7 +14872,7 @@ asm_handler_GetLength_cold:bt rax, 32jnc .Lasm_GetLength.scalar_result_done_4lea rcx, [r14 + r13]- movzx r10d, BYTE PTR [rcx + 5]+ movzx r10d, BYTE PTR [rcx + 3]mov QWORD PTR [rbx + r10 * 8], rdxmov r13d, eaxmovzx eax, BYTE PTR [r14 + r13]@@ -14899,11 +14899,11 @@ asm_handler_GetLength_cold_end:asm_handler_GetLengthWithThis:mov DWORD PTR [rbx + -64], r13dlea r11, [r14 + r13]- movzx r10d, BYTE PTR [r11 + 4]+ movzx r10d, BYTE PTR [r11 + 2]mov rax, QWORD PTR [rbx + r10 * 8].Lasm_GetLengthWithThis.scalar_value_ready_0:mov rcx, rax- movzx r10d, BYTE PTR [r11 + 5]+ movzx r10d, BYTE PTR [r11 + 3]mov rax, QWORD PTR [rbx + r10 * 8].Lasm_GetLengthWithThis.scalar_value_ready_1:mov r8, rax@@ -14916,7 +14916,7 @@ asm_handler_GetLengthWithThis:bt rax, 32jnc .Lasm_GetLengthWithThis.scalar_result_done_2lea rcx, [r14 + r13]- movzx r10d, BYTE PTR [rcx + 3]+ movzx r10d, BYTE PTR [rcx + 1]mov QWORD PTR [rbx + r10 * 8], rdxmov r13d, eaxmovzx eax, BYTE PTR [r14 + r13]@@ -20476,11 +20476,11 @@ asm_assertion_failure_traps:ud2.Lasm_GetById.assert_failure_0:ud2-.Lasm_GetById.assert_predicate_failure_123:+.Lasm_GetById.assert_predicate_failure_124:ud2.Lasm_GetById.assert_failure_1:ud2-.Lasm_GetById.assert_predicate_failure_337:+.Lasm_GetById.assert_predicate_failure_338:ud2.Lasm_GetById.assert_failure_2:ud2@@ -20490,29 +20490,29 @@ asm_assertion_failure_traps:ud2.Lasm_GetById.assert_failure_5:ud2-.Lasm_GetById.assert_predicate_failure_160:+.Lasm_GetById.assert_predicate_failure_161:ud2.Lasm_GetById.assert_failure_6:ud2.Lasm_GetById.assert_failure_7:ud2-.Lasm_GetById.assert_predicate_failure_169:+.Lasm_GetById.assert_predicate_failure_170:ud2-.Lasm_GetById.assert_predicate_failure_177:+.Lasm_GetById.assert_predicate_failure_178:ud2.Lasm_GetById.assert_failure_8:ud2.Lasm_GetById.assert_failure_9:ud2-.Lasm_GetById.assert_predicate_failure_202:+.Lasm_GetById.assert_predicate_failure_203:ud2-.Lasm_GetById.assert_predicate_failure_204:+.Lasm_GetById.assert_predicate_failure_205:ud2.Lasm_GetById.assert_failure_10:ud2-.Lasm_GetById.assert_predicate_failure_267:+.Lasm_GetById.assert_predicate_failure_268:ud2-.Lasm_GetById.assert_predicate_failure_276:+.Lasm_GetById.assert_predicate_failure_277:ud2.Lasm_GetById.assert_predicate_failure_26:ud2@@ -20542,11 +20542,11 @@ asm_assertion_failure_traps:ud2.Lasm_GetByValue.assert_failure_0:ud2-.Lasm_GetByValue.assert_predicate_failure_297:+.Lasm_GetByValue.assert_predicate_failure_298:ud2.Lasm_GetByValue.assert_failure_2:ud2-.Lasm_GetByValue.assert_predicate_failure_231:+.Lasm_GetByValue.assert_predicate_failure_232:ud2.Lasm_GetByValue.assert_failure_3:ud2@@ -20562,11 +20562,11 @@ asm_assertion_failure_traps:ud2.Lasm_GetLength.assert_failure_0:ud2-.Lasm_GetLength.assert_predicate_failure_21:+.Lasm_GetLength.assert_predicate_failure_22:ud2.Lasm_GetLength.assert_failure_1:ud2-.Lasm_GetLength.assert_predicate_failure_43:+.Lasm_GetLength.assert_predicate_failure_44:ud2.Lasm_GetLength.assert_failure_2:ud2diff --git a/Libraries/LibJS/Interpreter/interpreter.flap b/Libraries/LibJS/Interpreter/interpreter.flapindex 10a403fdf5e..8b2b9b1cea9 100644--- a/Libraries/LibJS/Interpreter/interpreter.flap+++ b/Libraries/LibJS/Interpreter/interpreter.flap@@ -1091,6 +1091,19 @@ inline fn record_value_feedback(slot: ValueFeedbackIndex, value: Value) @profilibuckets[0] = value;}+# The value buckets of the sites of property lookup caches lie before the+# others, in reverse order: the bucket of cache 0 is the last of them.+inline fn record_cache_value_feedback(cache: ProfiledPropertyLookupCacheIndex, value: Value) @profiling {+ let feedback = feedback_base();+ let index: u64 = alias(load(cache));+ let unmasked: u64 = feedback.value_buckets - (index << 3) - 8;+ let cage_base = primitive_storage_cage_base();+ let buckets: Sequence<Value> = alias(+ cage_base + ((unmasked << PRIMITIVE_STORAGE_CAGE_OFFSET_SHIFT) >> PRIMITIVE_STORAGE_CAGE_OFFSET_SHIFT)+ );+ buckets[0] = value;+}+# A call site keeps the tag of the value a call returned in its call feedback,# which holds its value bucket.inline fn record_call_value_feedback(slot: CallFeedbackIndex, value: Value) @profiling {@@ -3177,11 +3190,10 @@ handler PutByValue(}handler GetById(- value_feedback: ValueFeedbackIndex,dst: out Operand,base: in Operand,property: PropertyKeyTableIndex,- cache: PropertyLookupCacheIndex+ cache: ProfiledPropertyLookupCacheIndex) {let try_cache = || @cold {let executable = exec_ctx.executable;@@ -3191,7 +3203,7 @@ handler GetById(let result: Value = call_helper_with_two_arguments(asm_try_get_by_id_cache, load(base), cache_pointer);guard result is not Value<Empty> else slow;store(dst, result);- record_value_feedback(value_feedback, result);+ record_cache_value_feedback(cache, result);dispatch_next;};@@ -3220,7 +3232,7 @@ handler GetById(let getter = accessor.getter;guard getter != 0 else {let produced: Value = Value<Undefined>;- record_value_feedback(value_feedback, produced);+ record_cache_value_feedback(cache, produced);store(dst, produced);dispatch_next;};@@ -3231,7 +3243,7 @@ handler GetById(if flags has OBJECT_FLAG_IS_DIRECT_GETTER_FUNCTION {if property_cache.getter == getter {guard let result = load_direct_getter_value(function, receiver_object) else invoke_accessor_slow;- record_value_feedback(value_feedback, result);+ record_cache_value_feedback(cache, result);store(dst, result);dispatch_next;}@@ -3331,7 +3343,7 @@ handler GetById(return_vm.interpreter_stack_top = alias(exec_ctx);exec_ctx = caller_frame;values = exec_ctx.slots;- record_value_feedback(value_feedback, native_payload);+ record_cache_value_feedback(cache, native_payload);store(dst, native_payload);dispatch_next;};@@ -3372,7 +3384,7 @@ handler GetById(let load_polymorphic_value = |holder: Object, entry: PropertyLookupCache| {let polymorphic_value = holder.named_properties[entry.property_offset];guard polymorphic_value is not Value<Accessor> else try_cache;- record_value_feedback(value_feedback, polymorphic_value);+ record_cache_value_feedback(cache, polymorphic_value);store(dst, polymorphic_value);dispatch_next;};@@ -3392,7 +3404,7 @@ handler GetById(guard property_cache.shape_dictionary_generation == shape.dictionary_generation else try_cache;let value = holder.named_properties[property_cache.property_offset];guard value is not Value<Accessor> else invoke_accessor(value, object, property_cache);- record_value_feedback(value_feedback, value);+ record_cache_value_feedback(cache, value);store(dst, value);dispatch_next;};@@ -3408,12 +3420,11 @@ handler GetById(}handler GetByIdWithThis(- value_feedback: ValueFeedbackIndex,dst: out Operand,base: Operand,property: PropertyKeyTableIndex,this_value: Operand,- cache: PropertyLookupCacheIndex+ cache: ProfiledPropertyLookupCacheIndex) @cold = call_slow_path(get_by_id_with_this);handler PutById(@@ -3455,12 +3466,11 @@ handler PutByIdWithThis() @cold = call_slow_path(put_by_id_with_this);handler GetByValue(- value_feedback: ValueFeedbackIndex,keyed_feedback: KeyedFeedbackIndex,dst: out Operand,base: in Operand,property: in Operand,- cache: PropertyLookupCacheIndex+ cache: ProfiledPropertyLookupCacheIndex) {let slow = || @cold {call_slow_path(get_by_value);@@ -3492,7 +3502,7 @@ handler GetByValue(guard keyed_value is not Value<Accessor> else slow_without_cache;# NB: The runtime recorded multiple keys before the access gave up on its own cache.record_keyed_feedback(keyed_feedback, KEYED_FEEDBACK_MULTIPLE_STRING_KEYS);- record_value_feedback(value_feedback, keyed_value);+ record_cache_value_feedback(cache, keyed_value);store(dst, keyed_value);dispatch_next;};@@ -3525,7 +3535,7 @@ handler GetByValue(guard property_cache.prototype == 0 else try_cache;let value = object.named_properties[property_cache.property_offset];guard value is not Value<Accessor> else slow;- record_value_feedback(value_feedback, value);+ record_cache_value_feedback(cache, value);store(dst, value);dispatch_next;};@@ -3544,7 +3554,7 @@ handler GetByValue(let result: Value = call_helper_with_two_arguments(asm_helper_single_ascii_character_string, current_vm(), signed_code_unit);assert(extract_tag(result) == STRING_TAG);record_keyed_feedback(keyed_feedback, KEYED_FEEDBACK_PRIMITIVE_BASE);- record_value_feedback(value_feedback, result);+ record_cache_value_feedback(cache, result);store(dst, result);dispatch_next;};@@ -3564,7 +3574,7 @@ handler GetByValue(guard index < indexed_elements.capacity else slow;let value = indexed_elements[index];record_keyed_feedback(keyed_feedback, KEYED_FEEDBACK_INT32_INDEX_PACKED);- record_value_feedback(value_feedback, value);+ record_cache_value_feedback(cache, value);store(dst, value);dispatch_next;},@@ -3577,7 +3587,7 @@ handler GetByValue(let value = indexed_elements[index];guard value is not Value<Empty> else slow;record_keyed_feedback(keyed_feedback, KEYED_FEEDBACK_INT32_INDEX_HOLEY);- record_value_feedback(value_feedback, value);+ record_cache_value_feedback(cache, value);store(dst, value);dispatch_next;},@@ -3601,14 +3611,14 @@ handler GetByValue(let typed_array_f64_as_int = |raw: i32| {let produced: Value = box_i32(raw);- record_value_feedback(value_feedback, produced);+ record_cache_value_feedback(cache, produced);store(dst, produced);dispatch_next;};let typed_array_f64_as_double = |slot_f64: f64| {let result = canonicalize_nan(slot_f64);- record_value_feedback(value_feedback, result);+ record_cache_value_feedback(cache, result);store(dst, result);dispatch_next;};@@ -3618,7 +3628,7 @@ handler GetByValue(# in this hot handler. Revisit with profile data or cost-aware layout.let typed_array_box_int32 = |raw: i32| {let produced: Value = box_i32(raw);- record_value_feedback(value_feedback, produced);+ record_cache_value_feedback(cache, produced);store(dst, produced);dispatch_next;};@@ -3628,7 +3638,7 @@ handler GetByValue(let value = load_caged_u8(elements, cached_offset, index);let widened: i32 = alias(value);let produced: Value = box_i32(widened);- record_value_feedback(value_feedback, produced);+ record_cache_value_feedback(cache, produced);store(dst, produced);dispatch_next;},@@ -3654,7 +3664,7 @@ handler GetByValue(let uint32_to_double = || @cold {let slot_f64 = u32_to_f64(raw_u32);let result = box_f64(slot_f64);- record_value_feedback(value_feedback, result);+ record_cache_value_feedback(cache, result);store(dst, result);dispatch_next;};@@ -3708,11 +3718,10 @@ handler PutBySpread() @cold = call_slow_path(put_by_spread);handler GetLength(- value_feedback: ValueFeedbackIndex,keyed_feedback: KeyedFeedbackIndex,dst: out Operand,base: in Operand,- cache: PropertyLookupCacheIndex+ cache: ProfiledPropertyLookupCacheIndex) {let slow = || @cold {call_slow_path(get_length);@@ -3724,7 +3733,7 @@ handler GetLength(let length = string.length_in_utf16_code_units;guard length <= INT32_MAX else slow;let produced: Value = box_i32(assume_i32(length));- record_value_feedback(value_feedback, produced);+ record_cache_value_feedback(cache, produced);store(dst, produced);dispatch_next;};@@ -3735,14 +3744,14 @@ handler GetLength(let length = object.indexed_array_like_size;let length_double = || @cold {let produced: Value = box_f64(u32_to_f64(length));- record_value_feedback(value_feedback, produced);+ record_cache_value_feedback(cache, produced);store(dst, produced);dispatch_next;};guard length <= INT32_MAX else length_double;let produced: Value = box_i32(assume_i32(length));- record_value_feedback(value_feedback, produced);+ record_cache_value_feedback(cache, produced);store(dst, produced);dispatch_next;}@@ -3756,17 +3765,16 @@ handler GetLength(guard property_cache.shape_dictionary_generation == shape.dictionary_generation else slow;let value = object.named_properties[property_cache.property_offset];guard value is not Value<Accessor> else slow;- record_value_feedback(value_feedback, value);+ record_cache_value_feedback(cache, value);store(dst, value);dispatch_next;}handler GetLengthWithThis(- value_feedback: ValueFeedbackIndex,dst: out Operand,base: Operand,this_value: Operand,- cache: PropertyLookupCacheIndex+ cache: ProfiledPropertyLookupCacheIndex) @cold = call_slow_path(get_length_with_this);handler GetMethod(diff --git a/Libraries/LibJS/JIT/Rust/build.rs b/Libraries/LibJS/JIT/Rust/build.rsindex 6f1b850224f..6a869d0aa55 100644--- a/Libraries/LibJS/JIT/Rust/build.rs+++ b/Libraries/LibJS/JIT/Rust/build.rs@@ -346,11 +346,12 @@ fn generate_slow_path_layout_function(}fn generate_feedback_slots_method(mut w: impl Write, ops: &[InstructionDefinition]) -> GeneratorResult {- const KINDS: [(&str, &str); 4] = [+ const KINDS: [(&str, &str); 5] = [("ArithFeedbackIndex", "arith"),("ValueFeedbackIndex", "value"),("CallFeedbackIndex", "call"),("KeyedFeedbackIndex", "keyed"),+ ("ProfiledPropertyLookupCacheIndex", "cache_value"),];writeln!(w,@@ -378,7 +379,11 @@ fn generate_feedback_slots_method(mut w: impl Write, ops: &[InstructionDefinitio.join(", ");let slots = feedback_fields.iter()- .map(|(name, kind)| format!("{kind}: Some(*{name})"))+ .map(|(name, kind)| match *kind {+ // NB: Cache indices take two bytes in the bytecode.+ "cache_value" => format!("{kind}: u16::try_from(*{name}).ok()"),+ _ => format!("{kind}: Some(*{name})"),+ }).collect::<Vec<_>>().join(", ");writeln!(diff --git a/Libraries/LibJS/JIT/Rust/src/builder/mod.rs b/Libraries/LibJS/JIT/Rust/src/builder/mod.rsindex be30dd170cb..ed07e9beb8d 100644--- a/Libraries/LibJS/JIT/Rust/src/builder/mod.rs+++ b/Libraries/LibJS/JIT/Rust/src/builder/mod.rs@@ -133,6 +133,9 @@ pub fn has_run(executable: &ExecutableSnapshot, pc: u32) -> bool {slot(slots.value).and_then(|slot| feedback.value.get(slot)).map(|bits| *bits != 0),+ slot(slots.cache_value)+ .and_then(|cache| feedback.cache_value.get(cache))+ .map(|bits| *bits != 0),slot(slots.call).and_then(|slot| feedback.call.get(slot)).map(|call| call.target.is_some() || call.flags != 0 || call.value != 0),diff --git a/Libraries/LibJS/JIT/Rust/src/builder/tests.rs b/Libraries/LibJS/JIT/Rust/src/builder/tests.rsindex 67e830c3153..799b8a7d6c6 100644--- a/Libraries/LibJS/JIT/Rust/src/builder/tests.rs+++ b/Libraries/LibJS/JIT/Rust/src/builder/tests.rs@@ -792,7 +792,6 @@ pub(crate) mod property_access {pub(crate) fn get_by_id(dst: Operand, base: Operand, cache: u32) -> Instruction {Instruction::GetById {- value_feedback: 0,dst,base,property: PropertyKeyTableIndex(0),@@ -894,7 +893,7 @@ pub(crate) mod property_access {Return ([[V17]])frame states:[[FS0]]: pc 0 at {} frame [a0]- [[FS1]]: pc 18 at {r5=[[V6]], r6=[[V6]]} frame [a0]+ [[FS1]]: pc 14 at {r5=[[V6]], r6=[[V6]]} frame [a0]",);}@@ -937,7 +936,7 @@ pub(crate) mod property_access {Return ([[V19]])frame states:[[FS0]]: pc 0 at {} frame [a0]- [[FS1]]: pc 9 at {r5=[[V6]]} frame [a0]+ [[FS1]]: pc 7 at {r5=[[V6]]} frame [a0]",);}@@ -1083,7 +1082,6 @@ pub(crate) mod property_access {let get_length = assemble(|_| {vec![Instruction::GetLength {- value_feedback: 0,keyed_feedback: 0,dst: r(5),base: a(0),@@ -1271,7 +1269,6 @@ pub(crate) mod property_access {fn get_by_value(dst: Operand, base: Operand, property: Operand) -> Instruction {Instruction::GetByValue {- value_feedback: 0,keyed_feedback: 0,dst,base,@@ -1345,7 +1342,7 @@ pub(crate) mod property_access {(1 | (1 << 5) | (1 << 9), Vec::new()),(1 | (1 << 5),- vec![(0, ExitKind::BadElements), (10, ExitKind::OutOfBounds)],+ vec![(0, ExitKind::BadElements), (8, ExitKind::OutOfBounds)],),] {let text = dump_element_loads(bits, exit_sites);@@ -1546,15 +1543,15 @@ pub(crate) mod property_access {CheckShape [0x100] ([[V1]], [[V4]]) [[[FS0]]]StoreNamed +2 ([[V1]], #10, [[V4]]) [[[FS0]]][[V13]] = LoadSlot l1- [[V14]] = CallSlowPath Exp @17 ([[V13]], #10) [[[FS1]]]+ [[V14]] = CallSlowPath Exp @15 ([[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 17 after -> l1 {r5=#10} frame [a0]- [[FS2]]: pc 23 at {r5=#10} frame [a0]+ [[FS1]]: pc 15 after -> l1 {r5=#10} frame [a0]+ [[FS2]]: pc 21 at {r5=#10} frame [a0]",);}@@ -2586,7 +2583,6 @@ mod arguments {create_arguments(false),Instruction::Mov { dst: a(0), src: c(1) },Instruction::GetLength {- value_feedback: 0,keyed_feedback: 0,dst: r(5),base: l(0),@@ -2602,7 +2598,6 @@ mod arguments {Instruction::Enter,create_arguments(mapped),Instruction::GetLength {- value_feedback: 0,keyed_feedback: 0,dst: r(5),base: l(0),@@ -2738,7 +2733,6 @@ fn captured_typed_arrays_use_guarded_fixed_lengths() {cache: coordinate,},Instruction::GetByValue {- value_feedback: 0,keyed_feedback: 0,dst: r(6),base: r(5),@@ -2802,7 +2796,6 @@ fn array_length_specialization_requires_monomorphic_receivers_and_exit_gates() {let program = assemble(|_| {vec![Instruction::GetLength {- value_feedback: 0,keyed_feedback: 0,dst: r(5),base: a(0),@@ -2812,7 +2805,7 @@ fn array_length_specialization_requires_monomorphic_receivers_and_exit_gates() {]});let mut snapshot = snapshot_for(&program, test_layout());- snapshot.executables[0].feedback.value = vec![crate::snapshot::value_feedback::INT32];+ snapshot.executables[0].feedback.cache_value = vec![crate::snapshot::value_feedback::INT32];for bits in [0,keyed_feedback_bits::OTHER_ELEMENTS,diff --git a/Libraries/LibJS/JIT/Rust/src/bytecode/instruction.rs b/Libraries/LibJS/JIT/Rust/src/bytecode/instruction.rsindex ff4fa7cd1b9..5832850cc92 100644--- a/Libraries/LibJS/JIT/Rust/src/bytecode/instruction.rs+++ b/Libraries/LibJS/JIT/Rust/src/bytecode/instruction.rs@@ -171,6 +171,8 @@ pub struct FeedbackSlots {pub value: Option<u16>,pub call: Option<u16>,pub keyed: Option<u16>,+ /// The property lookup cache whose site's value feedback the instruction records.+ pub cache_value: Option<u16>,}/// One decoded instruction and where it lives in the bytecode.diff --git a/Libraries/LibJS/JIT/Rust/src/codegen/tests.rs b/Libraries/LibJS/JIT/Rust/src/codegen/tests.rsindex 22c86efb4de..930ae076349 100644--- a/Libraries/LibJS/JIT/Rust/src/codegen/tests.rs+++ b/Libraries/LibJS/JIT/Rust/src/codegen/tests.rs@@ -3288,14 +3288,12 @@ mod virtual_arguments {creates_parameter_bindings: false,},Instruction::GetLength {- value_feedback: 0,keyed_feedback: 0,dst: r(5),base: l(0),cache: 0,},Instruction::GetByValue {- value_feedback: 0,keyed_feedback: 0,dst: r(6),base: l(0),@@ -3304,7 +3302,6 @@ mod virtual_arguments {},add(r(7), r(5), r(6)),Instruction::GetLength {- value_feedback: 0,keyed_feedback: 0,dst: r(6),base: l(0),diff --git a/Libraries/LibJS/JIT/Rust/src/codegen/tests/lowerings.rs b/Libraries/LibJS/JIT/Rust/src/codegen/tests/lowerings.rsindex df16fb92e3e..6473d5a0510 100644--- a/Libraries/LibJS/JIT/Rust/src/codegen/tests/lowerings.rs+++ b/Libraries/LibJS/JIT/Rust/src/codegen/tests/lowerings.rs@@ -1461,7 +1461,6 @@ fn object_value(object: &[u64]) -> u64 {fn get_by_value(base: u64, index: u64) -> u64 {run_instruction(Instruction::GetByValue {- value_feedback: 0,keyed_feedback: 0,dst: r(5),base: argument(0),@@ -1610,7 +1609,6 @@ fn typed_array_accesses_with_constant_indices() {cache: 0,},Instruction::GetByValue {- value_feedback: 0,keyed_feedback: 0,dst: r(5),base: argument(0),@@ -1751,7 +1749,6 @@ fn get_length() {let get_length = |base: u64| {run_instruction(Instruction::GetLength {- value_feedback: 0,keyed_feedback: 0,dst: r(5),base: argument(0),@@ -2803,7 +2800,6 @@ fn every_fast_path_compiles_for_both_architectures() {src: dst,},Instruction::GetByValue {- value_feedback: 0,keyed_feedback: 0,dst,base: argument(0),@@ -2819,7 +2815,6 @@ fn every_fast_path_compiles_for_both_architectures() {cache: 0,},Instruction::GetLength {- value_feedback: 0,keyed_feedback: 0,dst,base: argument(0),@@ -3010,7 +3005,6 @@ impl FakeCachedObject {fn get(&self, base: u64) -> u64 {let (result, _) = self.run(Instruction::GetById {- value_feedback: 0,dst: r(5),base: argument(0),property: crate::bytecode::PropertyKeyTableIndex(0),@@ -3041,7 +3035,6 @@ impl FakeCachedObject {fn get_length(&self) -> u64 {let (result, _) = self.run(Instruction::GetLength {- value_feedback: 0,keyed_feedback: 0,dst: r(5),base: argument(0),@@ -3175,7 +3168,6 @@ fn get_by_id_reads_direct_getter_wrappers_inline_from(compressed_field: bool) {vec![Instruction::Enter,Instruction::GetById {- value_feedback: 0,dst: r(5),base: argument(0),property: crate::bytecode::PropertyKeyTableIndex(0),@@ -3457,7 +3449,6 @@ fn get_by_value_of_string_characters() {vec![Instruction::Enter,Instruction::GetByValue {- value_feedback: 0,keyed_feedback: 0,dst: r(5),base: argument(0),@@ -4087,7 +4078,6 @@ fn get_by_value_through_the_vm_keyed_lookup_cache() {let get = |fake: &FakeCachedObject, key: u64| {let (result, _) = fake.run(Instruction::GetByValue {- value_feedback: 0,keyed_feedback: 0,dst: r(5),base: argument(0),@@ -4199,7 +4189,6 @@ fn get_by_value_through_megamorphic_property_caches() {let get = |fake: &FakeCachedObject, key: u64| {let (result, _) = fake.run(Instruction::GetByValue {- value_feedback: 0,keyed_feedback: 0,dst: r(5),base: argument(0),@@ -4263,7 +4252,6 @@ fn get_by_id_of_strings_through_property_caches() {let get = |base: u64, with_string_prototype: bool| {let (result, _) = string_prototype.run_with_prototypes(Instruction::GetById {- value_feedback: 0,dst: r(5),base: argument(0),property: crate::bytecode::PropertyKeyTableIndex(0),@@ -4294,7 +4282,6 @@ fn get_by_id_of_numbers_and_booleans_through_property_caches() {let get = |base: u64, prototypes: PrimitivePrototypes| {let (result, _) = prototype.run_with_prototypes(Instruction::GetById {- value_feedback: 0,dst: r(5),base: argument(0),property: crate::bytecode::PropertyKeyTableIndex(0),@@ -4341,7 +4328,6 @@ fn get_by_id_of_strings_through_megamorphic_property_caches() {string_prototype.caches[1] = data.as_ptr() as u64 | 2;let (result, _) = string_prototype.run_with_prototypes(Instruction::GetById {- value_feedback: 0,dst: r(5),base: argument(0),property: crate::bytecode::PropertyKeyTableIndex(0),@@ -4381,7 +4367,6 @@ fn keyed_accesses_of_missing_and_added_properties_through_property_caches() {let get = |fake: &FakeCachedObject, key: u64| {let (result, _) = fake.run(Instruction::GetByValue {- value_feedback: 0,keyed_feedback: 0,dst: r(5),base: argument(0),diff --git a/Libraries/LibJS/JIT/Rust/src/regalloc/tests.rs b/Libraries/LibJS/JIT/Rust/src/regalloc/tests.rsindex 3033be27afe..c437b037b2a 100644--- a/Libraries/LibJS/JIT/Rust/src/regalloc/tests.rs+++ b/Libraries/LibJS/JIT/Rust/src/regalloc/tests.rs@@ -686,7 +686,6 @@ impl ProgramGenerator {let cache = u32::try_from(self.random.below(2)).unwrap();return if self.random.chance(60) {Instruction::GetById {- value_feedback: 0,dst: self.writable(),base: self.object_operand(),property: crate::bytecode::PropertyKeyTableIndex(0),diff --git a/Libraries/LibJS/JIT/Rust/src/snapshot.rs b/Libraries/LibJS/JIT/Rust/src/snapshot.rsindex e594e5fb309..c31be317e6b 100644--- a/Libraries/LibJS/JIT/Rust/src/snapshot.rs+++ b/Libraries/LibJS/JIT/Rust/src/snapshot.rs@@ -403,6 +403,8 @@ pub struct FeedbackSnapshot {pub arith: Vec<u8>,/// `ValueFeedback` bits.pub value: Vec<u16>,+ /// The `ValueFeedback` bits of the sites of the property lookup caches, indexed like the caches.+ pub cache_value: Vec<u16>,pub call: Vec<CallFeedbackSnapshot>,pub keyed: Vec<KeyedFeedbackSnapshot>,/// The bound arguments of the bound functions that call sites forwardeddiff --git a/Libraries/LibJS/Rust/generate/instructions.rs b/Libraries/LibJS/Rust/generate/instructions.rsindex e7572c5d1e1..60026dec915 100644--- a/Libraries/LibJS/Rust/generate/instructions.rs+++ b/Libraries/LibJS/Rust/generate/instructions.rs@@ -95,19 +95,21 @@ fn generate_instruction_feedback_slots_from_bytes(mut w: impl Write,ops: &[InstructionDefinition],) -> Result<(), Box<dyn std::error::Error>> {- const KINDS: [&str; 4] = [+ const KINDS: [&str; 5] = ["ArithFeedbackIndex","ValueFeedbackIndex","CallFeedbackIndex","KeyedFeedbackIndex",+ "ProfiledPropertyLookupCacheIndex",];writeln!(w,- "/// The feedback slot indices of the instruction at `bytes[at..]`: arith, value, call and keyed."+ "/// The feedback slot indices of the instruction at `bytes[at..]`: arith, value, call, keyed and the property")?;+ writeln!(w, "/// lookup cache whose site's value feedback it records.")?;writeln!(w,- "pub fn instruction_feedback_slots_from_bytes(opcode: u8, bytes: &[u8], at: usize) -> [Option<u16>; 4] {{"+ "pub fn instruction_feedback_slots_from_bytes(opcode: u8, bytes: &[u8], at: usize) -> [Option<u16>; 5] {{")?;writeln!(w, " match opcode {{")?;for (i, op) in ops.iter().enumerate() {@@ -128,7 +130,7 @@ fn generate_instruction_feedback_slots_from_bytes(}writeln!(w, " {i} => [{}], // {}", slots.join(", "), op.name)?;}- writeln!(w, " _ => [None; 4],")?;+ writeln!(w, " _ => [None; 5],")?;writeln!(w, " }}")?;writeln!(w, "}}")?;writeln!(w)?;@@ -468,6 +470,7 @@ fn generate_instruction_dump_from_bytes(| "CallFeedbackIndex"| "KeyedFeedbackIndex"| "PropertyLookupCacheIndex"+ | "ProfiledPropertyLookupCacheIndex"| "GlobalVariableCacheIndex"| "EnvironmentCoordinateCacheIndex"| "ObjectShapeCacheIndex" => writeln!(diff --git a/Libraries/LibJS/Rust/src/bytecode/codegen/generators.rs b/Libraries/LibJS/Rust/src/bytecode/codegen/generators.rsindex 80e282bcb77..bdd73e5ed5b 100644--- a/Libraries/LibJS/Rust/src/bytecode/codegen/generators.rs+++ b/Libraries/LibJS/Rust/src/bytecode/codegen/generators.rs@@ -39,9 +39,7 @@ fn emit_get_by_known_name() {let key = generator.intern_property_key_text(name);let cache = generator.next_property_lookup_cache();- let value_feedback = generator.next_value_feedback();generator.emit(op::GetById {- value_feedback,dst: dst.operand(),base: base.operand(),property: key,diff --git a/Libraries/LibJS/Rust/src/bytecode/codegen/members.rs b/Libraries/LibJS/Rust/src/bytecode/codegen/members.rsindex 943f1a735c0..defd4a6c1a3 100644--- a/Libraries/LibJS/Rust/src/bytecode/codegen/members.rs+++ b/Libraries/LibJS/Rust/src/bytecode/codegen/members.rs@@ -28,10 +28,8 @@ pub(super) fn emit_get_by_key(if generator.context.names.is_length_property_key(key) {generator.length_identifier = Some(key);let cache = generator.next_property_lookup_cache();- let value_feedback = generator.next_value_feedback();let keyed_feedback = generator.next_keyed_feedback();generator.emit(op::GetLength {- value_feedback,keyed_feedback,dst: dst.operand(),base: base.operand(),@@ -39,9 +37,7 @@ pub(super) fn emit_get_by_key(});} else {let cache = generator.next_property_lookup_cache();- let value_feedback = generator.next_value_feedback();generator.emit(op::GetById {- value_feedback,dst: dst.operand(),base: base.operand(),property: key,@@ -63,9 +59,7 @@ pub(super) fn emit_get_by_id_with_this(if generator.context.names.is_length_property_key(key) {generator.length_identifier = Some(key);let cache = generator.next_property_lookup_cache();- let value_feedback = generator.next_value_feedback();generator.emit(op::GetLengthWithThis {- value_feedback,dst: dst.operand(),base: base.operand(),this_value: this_value.operand(),@@ -73,9 +67,7 @@ pub(super) fn emit_get_by_id_with_this(});} else {let cache = generator.next_property_lookup_cache();- let value_feedback = generator.next_value_feedback();generator.emit(op::GetByIdWithThis {- value_feedback,dst: dst.operand(),base: base.operand(),property: key,@@ -96,10 +88,8 @@ pub(super) fn emit_get_by_value(if generator.context.names.is_length_property_key(key) {generator.length_identifier = Some(key);let cache = generator.next_property_lookup_cache();- let value_feedback = generator.next_value_feedback();let keyed_feedback = generator.next_keyed_feedback();generator.emit(op::GetLength {- value_feedback,keyed_feedback,dst: dst.operand(),base: base.operand(),@@ -107,9 +97,7 @@ pub(super) fn emit_get_by_value(});} else {let cache = generator.next_property_lookup_cache();- let value_feedback = generator.next_value_feedback();generator.emit(op::GetById {- value_feedback,dst: dst.operand(),base: base.operand(),property: key,@@ -118,11 +106,9 @@ pub(super) fn emit_get_by_value(}return;}- let value_feedback = generator.next_value_feedback();let keyed_feedback = generator.next_keyed_feedback();let cache = generator.next_property_lookup_cache();generator.emit(op::GetByValue {- value_feedback,keyed_feedback,dst: dst.operand(),base: base.operand(),@@ -143,9 +129,7 @@ pub(super) fn emit_get_by_value_with_this(if generator.context.names.is_length_property_key(key) {generator.length_identifier = Some(key);let cache = generator.next_property_lookup_cache();- let value_feedback = generator.next_value_feedback();generator.emit(op::GetLengthWithThis {- value_feedback,dst: dst.operand(),base: base.operand(),this_value: this_value.operand(),@@ -153,9 +137,7 @@ pub(super) fn emit_get_by_value_with_this(});} else {let cache = generator.next_property_lookup_cache();- let value_feedback = generator.next_value_feedback();generator.emit(op::GetByIdWithThis {- value_feedback,dst: dst.operand(),base: base.operand(),property: key,diff --git a/Libraries/LibJS/Rust/src/bytecode/codegen/stream.rs b/Libraries/LibJS/Rust/src/bytecode/codegen/stream.rsindex ed4493eba43..d82c49f9574 100644--- a/Libraries/LibJS/Rust/src/bytecode/codegen/stream.rs+++ b/Libraries/LibJS/Rust/src/bytecode/codegen/stream.rs@@ -1919,11 +1919,9 @@ impl Generator<'_> {if self.context.names.is_length_property_key(key) {self.length_identifier = Some(key);let cache = self.next_property_lookup_cache();- let value_feedback = self.next_value_feedback();let keyed_feedback = self.next_keyed_feedback();self.put_with_destination(op::GetLength {- value_feedback,keyed_feedback,dst,base,@@ -1933,10 +1931,8 @@ impl Generator<'_> {);} else {let cache = self.next_property_lookup_cache();- let value_feedback = self.next_value_feedback();self.put_with_destination(op::GetById {- value_feedback,dst,base,property: key,diff --git a/Libraries/LibJS/Rust/src/bytecode/executable.rs b/Libraries/LibJS/Rust/src/bytecode/executable.rsindex 1d30d2d0958..af0a2c48e00 100644--- a/Libraries/LibJS/Rust/src/bytecode/executable.rs+++ b/Libraries/LibJS/Rust/src/bytecode/executable.rs@@ -1895,7 +1895,12 @@ impl Executable {if let Some(feedback) = self.feedback.get() {return feedback;}- let feedback = Box::new(ExecutableFeedback::new(self.feedback_slot_counts));+ let property_lookup_cache_count =+ u32::try_from(self.head.property_lookup_caches.len()).expect("property lookup cache indices are 16-bit");+ let feedback = Box::new(ExecutableFeedback::new(+ self.feedback_slot_counts,+ property_lookup_cache_count,+ ));let head = &self.head.feedback;let [arith, value_buckets, call, keyed] = feedback.array_offsets();head.arith.set(arith);diff --git a/Libraries/LibJS/Rust/src/bytecode/feedback.rs b/Libraries/LibJS/Rust/src/bytecode/feedback.rsindex 60602f1209e..891cbbb106a 100644--- a/Libraries/LibJS/Rust/src/bytecode/feedback.rs+++ b/Libraries/LibJS/Rust/src/bytecode/feedback.rs@@ -7,7 +7,8 @@//! Interpreter feedback consumed by the optimizing JIT.//!//! Every instruction that collects feedback carries one slot index per feedback kind it records, and each kind has-//! its own index space in `ExecutableFeedback`.+//! its own index space in `ExecutableFeedback`. Instructions with a property lookup cache record their value feedback+//! in the slot of their cache instead, which spares them an index.//!//! Slot indices are encoded as u16. An executable with more sites of one kind than fit in a u16 shares the last slot//! between the remaining sites, which only merges their feedback (see `generator::MAX_FEEDBACK_SLOT_COUNT`).@@ -32,9 +33,12 @@ pub struct FeedbackSlotCounts {pub keyed: u32,}-/// Where the arrays the profiling interpreter writes start in an executable's feedback storage, and its size.+/// Where the arrays the profiling interpreter writes start in an executable's feedback storage, and its size. The value+/// buckets of the sites of property lookup caches lie right before the others, in reverse order, so the interpreter+/// finds both from the start of the others.#[derive(Clone, Copy)]struct FeedbackStorageLayout {+ cache_value_buckets: usize,value_buckets: usize,call: usize,keyed: usize,@@ -42,13 +46,15 @@ struct FeedbackStorageLayout {}impl FeedbackStorageLayout {- fn new(counts: FeedbackSlotCounts) -> Self {+ fn new(counts: FeedbackSlotCounts, property_lookup_cache_count: u32) -> Self {const _: () = assert!(align_of::<CallFeedback>() <= 8 && align_of::<KeyedFeedback>() <= 8);- let value_buckets = (counts.arith as usize).next_multiple_of(8);+ let cache_value_buckets = (counts.arith as usize).next_multiple_of(8);+ let value_buckets = cache_value_buckets + size_of::<Cell<u64>>() * property_lookup_cache_count as usize;let call = value_buckets + size_of::<Cell<u64>>() * counts.value as usize;let keyed = call + size_of::<CallFeedback>() * counts.call as usize;let size = keyed + size_of::<KeyedFeedback>() * counts.keyed as usize;Self {+ cache_value_buckets,value_buckets,call,keyed,@@ -65,6 +71,8 @@ pub struct ExecutableFeedback {counts: FeedbackSlotCounts,layout: FeedbackStorageLayout,pub value: Box<[Cell<u16>]>,+ /// The value feedback of the sites of the property lookup caches, indexed like the caches.+ pub cache_value: Box<[Cell<u16>]>,}impl ExecutableFeedback {@@ -87,6 +95,17 @@ impl ExecutableFeedback {self.array(self.layout.value_buckets, self.counts.value)}+ /// The value bucket of the site of property lookup cache `cache`.+ pub fn cache_value_bucket(&self, cache: u32) -> &Cell<u64> {+ let buckets = self.cache_value_buckets();+ &buckets[buckets.len() - 1 - cache as usize]+ }++ /// One value bucket per property lookup cache, the last one first.+ fn cache_value_buckets(&self) -> &[Cell<u64>] {+ self.array(self.layout.cache_value_buckets, self.cache_value.len() as u32)+ }+pub fn call(&self) -> &[CallFeedback] {self.array(self.layout.call, self.counts.call)}@@ -116,7 +135,9 @@ impl ExecutableFeedback {/// Folds the value buckets, the call sites' too, into the value feedback bits. The buckets are not references, so/// this runs when the feedback is about to be used and at every garbage collection.pub fn update_value_feedback(&self) {- for (bucket, value) in self.value_buckets().iter().zip(&self.value) {+ let buckets = self.value_buckets().iter().zip(&self.value);+ let cache_buckets = self.cache_value_buckets().iter().rev().zip(&self.cache_value);+ for (bucket, value) in buckets.chain(cache_buckets) {let bits = bucket.get();if bits != value_feedback::EMPTY_VALUE_BUCKET {value.set(value.get() | value_feedback::for_bits(bits));@@ -131,8 +152,8 @@ impl ExecutableFeedback {}}- pub fn new(counts: FeedbackSlotCounts) -> Self {- let layout = FeedbackStorageLayout::new(counts);+ pub fn new(counts: FeedbackSlotCounts, property_lookup_cache_count: u32) -> Self {+ let layout = FeedbackStorageLayout::new(counts, property_lookup_cache_count);// NB: No arith feedback, no call targets and no keyed feedback are all zero bytes.let storage = (layout.size != 0).then(|| {OwnedPrimitiveStorage::allocate(layout.size, ZeroFillNewBytes::Yes)@@ -143,9 +164,12 @@ impl ExecutableFeedback {counts,layout,value: (0..counts.value).map(|_| Cell::new(value_feedback::NONE)).collect(),+ cache_value: (0..property_lookup_cache_count)+ .map(|_| Cell::new(value_feedback::NONE))+ .collect(),};const _: () = assert!(arith_feedback::NONE == 0);- for bucket in feedback.value_buckets() {+ for bucket in feedback.value_buckets().iter().chain(feedback.cache_value_buckets()) {bucket.set(value_feedback::EMPTY_VALUE_BUCKET);}for call in feedback.call() {diff --git a/Libraries/LibJS/Rust/src/interpreter/slow_paths/feedback.rs b/Libraries/LibJS/Rust/src/interpreter/slow_paths/feedback.rsindex 6f0fc72cde9..feb30af646a 100644--- a/Libraries/LibJS/Rust/src/interpreter/slow_paths/feedback.rs+++ b/Libraries/LibJS/Rust/src/interpreter/slow_paths/feedback.rs@@ -63,6 +63,27 @@ pub fn record_value_after(control}+/// Stores `value` in the value bucket of the site of property lookup cache `cache` of the running executable.+pub fn record_cache_value(vm: &Vm, cache: u16, value: Value) {+ record_for_running_executable(vm, |feedback| {+ feedback.cache_value_bucket(u32::from(cache)).set(value.0);+ });+}++/// Records the value a slow path of an instruction with a property lookup cache produced, if it continues in the+/// frame it was called from, and passes its control word on.+pub fn record_cache_value_after(+ vm: &Vm,+ control: SlowPathControl,+ cache: u16,+ value: impl FnOnce() -> Value,+) -> SlowPathControl {+ if control.continues_in_frame() {+ record_cache_value(vm, cache, value());+ }+ control+}+/// Stores `value` in the value bucket of the call site with call feedback slot `slot` of the running executable.pub fn record_call_value(vm: &Vm, slot: u16, value: Value) {record_for_running_executable(vm, |feedback| {diff --git a/Libraries/LibJS/Rust/src/interpreter/slow_paths/mod.rs b/Libraries/LibJS/Rust/src/interpreter/slow_paths/mod.rsindex 4e2a28baedd..7a2726eec82 100644--- a/Libraries/LibJS/Rust/src/interpreter/slow_paths/mod.rs+++ b/Libraries/LibJS/Rust/src/interpreter/slow_paths/mod.rs@@ -496,7 +496,7 @@ impl RuntimeFunctions for Runtime {fn get_by_id(vm: &Vm, pc: u32, instruction: &op::GetById, values: &mut op::GetByIdValues) -> SlowPathControl {let control = property_access::get_by_id(vm, pc, instruction, values);- feedback::record_value_after(vm, control, instruction.value_feedback, || values.dst)+ feedback::record_cache_value_after(vm, control, instruction.cache, || values.dst)}// The slow paths of JIT code for these instructions. JIT code records no feedback.@@ -550,7 +550,7 @@ impl RuntimeFunctions for Runtime {values: &mut op::GetByIdValues,) -> SlowPathControl {let control = property_access::get_by_id_cached_accessor(vm, pc, instruction, values);- feedback::record_value_after(vm, control, instruction.value_feedback, || values.dst)+ feedback::record_cache_value_after(vm, control, instruction.cache, || values.dst)}fn get_by_id_with_this(@@ -560,7 +560,7 @@ impl RuntimeFunctions for Runtime {values: &mut op::GetByIdWithThisValues,) -> SlowPathControl {let control = property_access::get_by_id_with_this(vm, pc, instruction, values);- feedback::record_value_after(vm, control, instruction.value_feedback, || values.dst)+ feedback::record_cache_value_after(vm, control, instruction.cache, || values.dst)}fn get_by_value(@@ -571,7 +571,7 @@ impl RuntimeFunctions for Runtime {) -> SlowPathControl {feedback::record_keyed(vm, instruction.keyed_feedback, values.base, values.property);let control = property_access::get_by_value(vm, pc, instruction, values, KeyedSiteCache::Use);- feedback::record_value_after(vm, control, instruction.value_feedback, || values.dst)+ feedback::record_cache_value_after(vm, control, instruction.cache, || values.dst)}fn get_by_value_uncached(@@ -582,7 +582,7 @@ impl RuntimeFunctions for Runtime {) -> SlowPathControl {feedback::record_keyed(vm, instruction.keyed_feedback, values.base, values.property);let control = property_access::get_by_value(vm, pc, instruction, values, KeyedSiteCache::Skip);- feedback::record_value_after(vm, control, instruction.value_feedback, || values.dst)+ feedback::record_cache_value_after(vm, control, instruction.cache, || values.dst)}fn try_get_by_id_cache_on_primitive(@@ -594,7 +594,7 @@ impl RuntimeFunctions for Runtime {if !property_access::try_get_by_id_cache_on_primitive(vm, instruction, values) {return false;}- feedback::record_value(vm, instruction.value_feedback, values.dst);+ feedback::record_cache_value(vm, instruction.cache, values.dst);true}@@ -608,7 +608,7 @@ impl RuntimeFunctions for Runtime {return false;}feedback::record_keyed(vm, instruction.keyed_feedback, values.base, values.property);- feedback::record_value(vm, instruction.value_feedback, values.dst);+ feedback::record_cache_value(vm, instruction.cache, values.dst);true}@@ -624,7 +624,7 @@ impl RuntimeFunctions for Runtime {fn get_length(vm: &Vm, pc: u32, instruction: &op::GetLength, values: &mut op::GetLengthValues) -> SlowPathControl {let control = property_access::get_length(vm, pc, instruction, values);- feedback::record_value_after(vm, control, instruction.value_feedback, || values.dst)+ feedback::record_cache_value_after(vm, control, instruction.cache, || values.dst)}fn get_length_with_this(@@ -634,7 +634,7 @@ impl RuntimeFunctions for Runtime {values: &mut op::GetLengthWithThisValues,) -> SlowPathControl {let control = property_access::get_length_with_this(vm, pc, instruction, values);- feedback::record_value_after(vm, control, instruction.value_feedback, || values.dst)+ feedback::record_cache_value_after(vm, control, instruction.cache, || values.dst)}fn get_method(vm: &Vm, pc: u32, instruction: &op::GetMethod, values: &mut op::GetMethodValues) -> SlowPathControl {@@ -842,7 +842,7 @@ impl RuntimeFunctions for Runtime {let handled = property_access::try_get_by_value_typed_array(vm, values);if handled {feedback::record_keyed(vm, instruction.keyed_feedback, values.base, values.property);- feedback::record_value(vm, instruction.value_feedback, values.dst);+ feedback::record_cache_value(vm, instruction.cache, values.dst);}handled}diff --git a/Libraries/LibJS/Rust/src/jit/feedback_dump.rs b/Libraries/LibJS/Rust/src/jit/feedback_dump.rsindex 03ba5223dfb..5203dc51c9d 100644--- a/Libraries/LibJS/Rust/src/jit/feedback_dump.rs+++ b/Libraries/LibJS/Rust/src/jit/feedback_dump.rs@@ -204,8 +204,9 @@ pub fn describe_feedback(executable: &Executable) -> Option<String> {let mut at = 0;while at < bytecode.len() {let opcode = bytecode[at];- let [arith, value, call, keyed] = instruction_feedback_slots_from_bytes(opcode, bytecode, at);- if arith.is_some() || value.is_some() || call.is_some() || keyed.is_some() {+ let slots = instruction_feedback_slots_from_bytes(opcode, bytecode, at);+ let [arith, value, call, keyed, cache_value] = slots;+ if slots.iter().any(Option::is_some) {let _ = write!(out, " [{at:4x}] {}", instruction_name_from_opcode(opcode));if let Some(slot) = arith {let _ = write!(out, " arith#{slot}: ");@@ -228,6 +229,10 @@ pub fn describe_feedback(executable: &Executable) -> Option<String> {let _ = write!(out, " value#{slot}: ");append_value_feedback(&mut out, feedback.value[usize::from(slot)].get());}+ if let Some(cache) = cache_value {+ let _ = write!(out, " value of cache#{cache}: ");+ append_value_feedback(&mut out, feedback.cache_value[usize::from(cache)].get());+ }if let Some(slot) = call {let _ = write!(out, " call#{slot}: ");let call = &feedback.call()[usize::from(slot)];diff --git a/Libraries/LibJS/Rust/src/jit/snapshot.rs b/Libraries/LibJS/Rust/src/jit/snapshot.rsindex 3763c5ea9b1..b147d2f5836 100644--- a/Libraries/LibJS/Rust/src/jit/snapshot.rs+++ b/Libraries/LibJS/Rust/src/jit/snapshot.rs@@ -999,6 +999,7 @@ impl SnapshotBuilder<'_> {let feedback = FeedbackSnapshot {arith: feedback.arith().iter().map(core::cell::Cell::get).collect(),value: feedback.value.iter().map(core::cell::Cell::get).collect(),+ cache_value: feedback.cache_value.iter().map(core::cell::Cell::get).collect(),call,keyed,bound_arguments: core::mem::take(&mut self.bound_arguments),diff --git a/Tests/LibJS/Bytecode/expected/annex-b-function-in-if.txt b/Tests/LibJS/Bytecode/expected/annex-b-function-in-if.txtindex 95dca3742bc..e16c7364224 100644--- a/Tests/LibJS/Bytecode/expected/annex-b-function-in-if.txt+++ b/Tests/LibJS/Bytecode/expected/annex-b-function-in-if.txt@@ -1,4 +1,4 @@-$2b0d6491 annex-b-function-in-if.js:13:1+$ed20595d annex-b-function-in-if.js:13:1Registers: 9Blocks: 1Constants:@@ -10,16 +10,16 @@ block0:[ 0] Enter[ 1] Mov dst:reg5, src:Undefined[ 4] GetGlobal value_feedback:0, dst:reg6, `console`- [ c] GetById value_feedback:1, dst:reg7, base:reg6, `log`- [ 15] GetGlobal value_feedback:2, dst:reg8, `annexBFunctionInIf`- [ 1d] Call call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined, arguments:[Bool(true)]- [ 25] Call call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]- [ 2d] GetGlobal value_feedback:3, dst:reg6, `console`- [ 35] GetById value_feedback:4, dst:reg7, base:reg6, `log`- [ 3e] GetGlobal value_feedback:5, dst:reg8, `annexBFunctionInIf`- [ 46] Call call_feedback:2, dst:reg8, callee:reg8, this_value:Undefined, arguments:[Bool(false)]- [ 4e] Call call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]- [ 56] End value:reg5+ [ c] GetById dst:reg7, base:reg6, `log`+ [ 13] GetGlobal value_feedback:1, dst:reg8, `annexBFunctionInIf`+ [ 1b] Call call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined, arguments:[Bool(true)]+ [ 23] Call call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]+ [ 2b] GetGlobal value_feedback:2, dst:reg6, `console`+ [ 33] GetById dst:reg7, base:reg6, `log`+ [ 3a] GetGlobal value_feedback:3, dst:reg8, `annexBFunctionInIf`+ [ 42] Call call_feedback:2, dst:reg8, callee:reg8, this_value:Undefined, arguments:[Bool(false)]+ [ 4a] Call call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]+ [ 52] End value:reg5annexBFunctionInIf$1f3caf15 annex-b-function-in-if.js:2:10diff --git a/Tests/LibJS/Bytecode/expected/assign-to-let-variable-tdz.txt b/Tests/LibJS/Bytecode/expected/assign-to-let-variable-tdz.txtindex 85334394289..5b5369b5242 100644--- a/Tests/LibJS/Bytecode/expected/assign-to-let-variable-tdz.txt+++ b/Tests/LibJS/Bytecode/expected/assign-to-let-variable-tdz.txt@@ -16,7 +16,7 @@ block0:[ 25] End value:reg5-f$0f941b0f assign-to-let-variable-tdz.js:7:5+f$6f3b9ced assign-to-let-variable-tdz.js:7:5Registers: 7Blocks: 3Locals: a~0@@ -30,18 +30,18 @@ block0:[ 1] Mov dst:a~0, src:<Empty>[ 4] ThrowIfNullish src:arg0[ 6] Mov dst:reg5, src:arg0- [ 9] GetById value_feedback:0, dst:a~0, base:reg5, `location`- [ 12] Typeof dst:reg5, src:a~0- [ 15] LooselyEquals arith_feedback:0, dst:reg5, lhs:String("string"), rhs:reg5- [ 1b] JumpFalse condition:reg5, target:block2+ [ 9] GetById dst:a~0, base:reg5, `location`+ [ 10] Typeof dst:reg5, src:a~0+ [ 13] LooselyEquals arith_feedback:0, dst:reg5, lhs:String("string"), rhs:reg5+ [ 19] JumpFalse condition:reg5, target:block2block1:- [ 21] GetGlobal value_feedback:1, dst:reg6, `g`- [ 29] Call call_feedback:0, dst:a~0, callee:reg6, this_value:Undefined, arguments:[a~0]- [ 31] Mov dst:reg5, src:a~0+ [ 1f] GetGlobal value_feedback:0, dst:reg6, `g`+ [ 27] Call call_feedback:0, dst:a~0, callee:reg6, this_value:Undefined, arguments:[a~0]+ [ 2f] Mov dst:reg5, src:a~0block2:- [ 34] Return value:a~0+ [ 32] Return value:a~0g$826b5174 assign-to-let-variable-tdz.js:4:17diff --git a/Tests/LibJS/Bytecode/expected/async-await.txt b/Tests/LibJS/Bytecode/expected/async-await.txtindex 92bf889c7a6..facc6e81e1c 100644--- a/Tests/LibJS/Bytecode/expected/async-await.txt+++ b/Tests/LibJS/Bytecode/expected/async-await.txt@@ -12,7 +12,7 @@ block0:[ 13] End value:reg5-f$6ad01e60 async-await.js:7:5+f$cd3b914e async-await.js:7:5Registers: 10Blocks: 4Constants:@@ -21,20 +21,20 @@ f$6ad01e60 async-await.js:7:5block0:[ 0] Enter[ 1] GetGlobal value_feedback:0, dst:reg5, `Promise`- [ 9] GetById value_feedback:1, dst:reg6, base:reg5, `resolve`- [ 12] Call call_feedback:0, dst:reg5, callee:reg6, this_value:reg5, arguments:[Int32(42)]- [ 1a] Mov dst:reg6, src:reg0- [ 1d] Await continuation_label:block1, argument:reg5+ [ 9] GetById dst:reg6, base:reg5, `resolve`+ [ 10] Call call_feedback:0, dst:reg5, callee:reg6, this_value:reg5, arguments:[Int32(42)]+ [ 18] Mov dst:reg6, src:reg0+ [ 1b] Await continuation_label:block1, argument:reg5block1:- [ 23] Mov dst:reg6, src:reg0- [ 26] GetCompletionFields type_dst:reg7, value_dst:reg8, completion:reg6- [ 2a] StrictlyEqualsRhsInt32 arith_feedback:0, dst:reg9, lhs:reg7, rhs:1- [ 33] JumpIf condition:reg9, true_target:block3, false_target:block2+ [ 21] Mov dst:reg6, src:reg0+ [ 24] GetCompletionFields type_dst:reg7, value_dst:reg8, completion:reg6+ [ 28] StrictlyEqualsRhsInt32 arith_feedback:0, dst:reg9, lhs:reg7, rhs:1+ [ 31] JumpIf condition:reg9, true_target:block3, false_target:block2block2:- [ 3d] Throw src:reg8+ [ 3b] Throw src:reg8block3:- [ 3f] Mov dst:reg5, src:reg8- [ 42] Yield value:reg5+ [ 3d] Mov dst:reg5, src:reg8+ [ 40] Yield value:reg5diff --git a/Tests/LibJS/Bytecode/expected/baseline.txt b/Tests/LibJS/Bytecode/expected/baseline.txtindex 4144414e6c6..1d391155e0c 100644--- a/Tests/LibJS/Bytecode/expected/baseline.txt+++ b/Tests/LibJS/Bytecode/expected/baseline.txt@@ -1,4 +1,4 @@-$20a381f1 baseline.js:5:1+$85d2e5ef baseline.js:5:1Registers: 9Blocks: 1Constants:@@ -10,11 +10,11 @@ block0:[ 0] Enter[ 1] Mov dst:reg5, src:Undefined[ 4] GetGlobal value_feedback:0, dst:reg6, `console`- [ c] GetById value_feedback:1, dst:reg7, base:reg6, `log`- [ 15] GetGlobal value_feedback:2, dst:reg8, `add`- [ 1d] Call call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined, arguments:[Int32(1), Int32(2)]- [ 26] Call call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]- [ 2e] End value:reg5+ [ c] GetById dst:reg7, base:reg6, `log`+ [ 13] GetGlobal value_feedback:1, dst:reg8, `add`+ [ 1b] Call call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined, arguments:[Int32(1), Int32(2)]+ [ 24] Call call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]+ [ 2c] End value:reg5add$51ccd01a baseline.js:2:5diff --git a/Tests/LibJS/Bytecode/expected/block-scoping.txt b/Tests/LibJS/Bytecode/expected/block-scoping.txtindex 8630734c950..ffc12882cda 100644--- a/Tests/LibJS/Bytecode/expected/block-scoping.txt+++ b/Tests/LibJS/Bytecode/expected/block-scoping.txt@@ -1,4 +1,4 @@-$8d78d77f block-scoping.js:13:1+$4cc7db3b block-scoping.js:13:1Registers: 9Blocks: 1Constants:@@ -8,19 +8,19 @@ block0:[ 0] Enter[ 1] Mov dst:reg5, src:Undefined[ 4] GetGlobal value_feedback:0, dst:reg6, `console`- [ c] GetById value_feedback:1, dst:reg7, base:reg6, `log`- [ 15] GetGlobal value_feedback:2, dst:reg8, `closureOverBlockScope`- [ 1d] Call call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined- [ 24] Call call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]- [ 2c] GetGlobal value_feedback:3, dst:reg6, `console`- [ 34] GetById value_feedback:4, dst:reg7, base:reg6, `log`- [ 3d] GetGlobal value_feedback:5, dst:reg8, `breakThroughBlockScopes`- [ 45] Call call_feedback:2, dst:reg8, callee:reg8, this_value:Undefined- [ 4c] Call call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]- [ 54] End value:reg5---closureOverBlockScope$48fd7244 block-scoping.js:2:15+ [ c] GetById dst:reg7, base:reg6, `log`+ [ 13] GetGlobal value_feedback:1, dst:reg8, `closureOverBlockScope`+ [ 1b] Call call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined+ [ 22] Call call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]+ [ 2a] GetGlobal value_feedback:2, dst:reg6, `console`+ [ 32] GetById dst:reg7, base:reg6, `log`+ [ 39] GetGlobal value_feedback:3, dst:reg8, `breakThroughBlockScopes`+ [ 41] Call call_feedback:2, dst:reg8, callee:reg8, this_value:Undefined+ [ 48] Call call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]+ [ 50] End value:reg5+++closureOverBlockScope$ca5f6acc block-scoping.js:2:15Registers: 8Blocks: 1Locals: fns~0@@ -36,23 +36,23 @@ block0:[ 6] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false[ 12] CreateVariable `x`, is_immutable:false, is_global:false, is_strict:false[ 19] InitializeLexicalBinding `x`, src:Int32(1)- [ 20] GetById value_feedback:0, dst:reg6, base:fns~0, `push`- [ 29] NewFunction dst:reg7, shared_function_data_index:0- [ 30] Call call_feedback:0, dst:reg6, callee:reg6, this_value:fns~0, arguments:[reg7]- [ 38] SetLexicalEnvironment environment:reg4- [ 3a] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false- [ 46] CreateVariable `y`, is_immutable:false, is_global:false, is_strict:false- [ 4d] InitializeLexicalBinding `y`, src:Int32(2)- [ 54] GetById value_feedback:1, dst:reg6, base:fns~0, `push`- [ 5d] NewFunction dst:reg7, shared_function_data_index:1- [ 64] Call call_feedback:1, dst:reg6, callee:reg6, this_value:fns~0, arguments:[reg7]- [ 6c] SetLexicalEnvironment environment:reg4- [ 6e] GetByValue value_feedback:2, keyed_feedback:0, dst:reg5, base:fns~0, property:Int32(0)- [ 78] Call call_feedback:2, dst:reg5, callee:reg5, this_value:fns~0- [ 7f] GetByValue value_feedback:3, keyed_feedback:1, dst:reg6, base:fns~0, property:Int32(1)- [ 89] Call call_feedback:3, dst:reg6, callee:reg6, this_value:fns~0- [ 90] Add arith_feedback:0, dst:reg5, lhs:reg5, rhs:reg6- [ 96] Return value:reg5+ [ 20] GetById dst:reg6, base:fns~0, `push`+ [ 27] NewFunction dst:reg7, shared_function_data_index:0+ [ 2e] Call call_feedback:0, dst:reg6, callee:reg6, this_value:fns~0, arguments:[reg7]+ [ 36] SetLexicalEnvironment environment:reg4+ [ 38] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false+ [ 44] CreateVariable `y`, is_immutable:false, is_global:false, is_strict:false+ [ 4b] InitializeLexicalBinding `y`, src:Int32(2)+ [ 52] GetById dst:reg6, base:fns~0, `push`+ [ 59] NewFunction dst:reg7, shared_function_data_index:1+ [ 60] Call call_feedback:1, dst:reg6, callee:reg6, this_value:fns~0, arguments:[reg7]+ [ 68] SetLexicalEnvironment environment:reg4+ [ 6a] GetByValue keyed_feedback:0, dst:reg5, base:fns~0, property:Int32(0)+ [ 72] Call call_feedback:2, dst:reg5, callee:reg5, this_value:fns~0+ [ 79] GetByValue keyed_feedback:1, dst:reg6, base:fns~0, property:Int32(1)+ [ 81] Call call_feedback:3, dst:reg6, callee:reg6, this_value:fns~0+ [ 88] Add arith_feedback:0, dst:reg5, lhs:reg5, rhs:reg6+ [ 8e] Return value:reg5$1369d6de block-scoping.js:5:18diff --git a/Tests/LibJS/Bytecode/expected/catch-scope-boundary.txt b/Tests/LibJS/Bytecode/expected/catch-scope-boundary.txtindex 83eba9c0bd6..aaabacabf05 100644--- a/Tests/LibJS/Bytecode/expected/catch-scope-boundary.txt+++ b/Tests/LibJS/Bytecode/expected/catch-scope-boundary.txt@@ -1,4 +1,4 @@-$22c9f60c catch-scope-boundary.js:14:1+$e218f9c8 catch-scope-boundary.js:14:1Registers: 9Blocks: 1Constants:@@ -8,16 +8,16 @@ block0:[ 0] Enter[ 1] Mov dst:reg5, src:Undefined[ 4] GetGlobal value_feedback:0, dst:reg6, `console`- [ c] GetById value_feedback:1, dst:reg7, base:reg6, `log`- [ 15] GetGlobal value_feedback:2, dst:reg8, `throwInCatch`- [ 1d] Call call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined- [ 24] Call call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]- [ 2c] GetGlobal value_feedback:3, dst:reg6, `console`- [ 34] GetById value_feedback:4, dst:reg7, base:reg6, `log`- [ 3d] GetGlobal value_feedback:5, dst:reg8, `throwInCatchWithLocals`- [ 45] Call call_feedback:2, dst:reg8, callee:reg8, this_value:Undefined- [ 4c] Call call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]- [ 54] End value:reg5+ [ c] GetById dst:reg7, base:reg6, `log`+ [ 13] GetGlobal value_feedback:1, dst:reg8, `throwInCatch`+ [ 1b] Call call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined+ [ 22] Call call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]+ [ 2a] GetGlobal value_feedback:2, dst:reg6, `console`+ [ 32] GetById dst:reg7, base:reg6, `log`+ [ 39] GetGlobal value_feedback:3, dst:reg8, `throwInCatchWithLocals`+ [ 41] Call call_feedback:2, dst:reg8, callee:reg8, this_value:Undefined+ [ 48] Call call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]+ [ 50] End value:reg5throwInCatch$1fd4a2a1 catch-scope-boundary.js:2:9diff --git a/Tests/LibJS/Bytecode/expected/chained-member-call.txt b/Tests/LibJS/Bytecode/expected/chained-member-call.txtindex 521207a20dd..fdd7232fbc0 100644--- a/Tests/LibJS/Bytecode/expected/chained-member-call.txt+++ b/Tests/LibJS/Bytecode/expected/chained-member-call.txt@@ -41,27 +41,27 @@ Exception handlers:[ 2d .. 42] => handler block5-chained_computed_call$d74a20b5 chained-member-call.js:5:5+chained_computed_call$36f1a293 chained-member-call.js:5:5Registers: 7Blocks: 1block0:[ 0] Enter- [ 1] GetByValue value_feedback:0, keyed_feedback:0, dst:reg5, base:arg0, property:arg1- [ b] GetByValue value_feedback:1, keyed_feedback:1, dst:reg5, base:reg5, property:arg2- [ 15] GetById value_feedback:2, dst:reg6, base:reg5, `foo`- [ 1e] Call call_feedback:0, dst:reg5, callee:reg6, this_value:reg5- [ 25] Return value:reg5+ [ 1] GetByValue keyed_feedback:0, dst:reg5, base:arg0, property:arg1+ [ 9] GetByValue keyed_feedback:1, dst:reg5, base:reg5, property:arg2+ [ 11] GetById dst:reg6, base:reg5, `foo`+ [ 18] Call call_feedback:0, dst:reg5, callee:reg6, this_value:reg5+ [ 1f] Return value:reg5-chained_dot_call$7f9a98cd chained-member-call.js:9:5+chained_dot_call$96454b37 chained-member-call.js:9:5Registers: 7Blocks: 1block0:[ 0] Enter- [ 1] GetById value_feedback:0, dst:reg5, base:arg0, `b`- [ a] GetById value_feedback:1, dst:reg5, base:reg5, `c`- [ 13] GetById value_feedback:2, dst:reg6, base:reg5, `bar`- [ 1c] Call call_feedback:0, dst:reg5, callee:reg6, this_value:reg5- [ 23] Return value:reg5+ [ 1] GetById dst:reg5, base:arg0, `b`+ [ 8] GetById dst:reg5, base:reg5, `c`+ [ f] GetById dst:reg6, base:reg5, `bar`+ [ 16] Call call_feedback:0, dst:reg5, callee:reg6, this_value:reg5+ [ 1d] Return value:reg5diff --git a/Tests/LibJS/Bytecode/expected/class-computed-key.txt b/Tests/LibJS/Bytecode/expected/class-computed-key.txtindex 592cd094312..494f1658220 100644--- a/Tests/LibJS/Bytecode/expected/class-computed-key.txt+++ b/Tests/LibJS/Bytecode/expected/class-computed-key.txt@@ -12,7 +12,7 @@ block0:[ 13] End value:reg5-f$fde875c7 class-computed-key.js:4:5+f$1cdefb61 class-computed-key.js:4:5Registers: 9Blocks: 1@@ -22,8 +22,8 @@ block0:[ 3] CreateLexicalEnvironment dst:reg6, parent:reg4, capacity:0, is_catch_environment:false[ f] CreateVariable ``, is_immutable:true, is_global:false, is_strict:true[ 16] GetGlobal value_feedback:0, dst:reg7, `Symbol`- [ 1e] GetById value_feedback:1, dst:reg7, base:reg7, `iterator`- [ 27] ToPrimitiveWithStringHint dst:reg8, value:reg7- [ 2a] SetLexicalEnvironment environment:reg4- [ 2c] NewClass dst:reg5, class_environment:reg6, class_blueprint_index:0, element_keys_are_in_array:false, element_keys:[element_keys:reg8]- [ 3b] Return value:reg5+ [ 1e] GetById dst:reg7, base:reg7, `iterator`+ [ 25] ToPrimitiveWithStringHint dst:reg8, value:reg7+ [ 28] SetLexicalEnvironment environment:reg4+ [ 2a] NewClass dst:reg5, class_environment:reg6, class_blueprint_index:0, element_keys_are_in_array:false, element_keys:[element_keys:reg8]+ [ 39] Return value:reg5diff --git a/Tests/LibJS/Bytecode/expected/class-environment.txt b/Tests/LibJS/Bytecode/expected/class-environment.txtindex 3c34a1602c3..703c8905840 100644--- a/Tests/LibJS/Bytecode/expected/class-environment.txt+++ b/Tests/LibJS/Bytecode/expected/class-environment.txt@@ -1,4 +1,4 @@-$ec423ea3 class-environment.js:9:1+$4be9c081 class-environment.js:9:1Registers: 9Blocks: 1Constants:@@ -8,14 +8,14 @@ block0:[ 0] Enter[ 1] Mov dst:reg5, src:Undefined[ 4] GetGlobal value_feedback:0, dst:reg6, `console`- [ c] GetById value_feedback:1, dst:reg7, base:reg6, `log`- [ 15] GetGlobal value_feedback:2, dst:reg8, `classWithName`- [ 1d] Call call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined- [ 24] Call call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]- [ 2c] End value:reg5+ [ c] GetById dst:reg7, base:reg6, `log`+ [ 13] GetGlobal value_feedback:1, dst:reg8, `classWithName`+ [ 1b] Call call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined+ [ 22] Call call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]+ [ 2a] End value:reg5-classWithName$5ea3ce75 class-environment.js:2:9+classWithName$3fad48db class-environment.js:2:9Registers: 7Blocks: 1Locals: C~0@@ -31,10 +31,10 @@ block0:[ 18] NewClass dst:reg5, class_environment:reg6, class_blueprint_index:0, element_keys_are_in_array:false, element_keys:[element_keys:String("method")][ 27] Mov dst:C~0, src:reg5[ 2a] CallConstruct call_feedback:0, dst:reg5, callee:C~0- [ 30] GetById value_feedback:0, dst:reg6, base:reg5, `method`- [ 39] Call call_feedback:1, dst:reg5, callee:reg6, this_value:reg5- [ 40] StrictlyEquals arith_feedback:0, dst:reg5, lhs:reg5, rhs:C~0- [ 46] Return value:reg5+ [ 30] GetById dst:reg6, base:reg5, `method`+ [ 37] Call call_feedback:1, dst:reg5, callee:reg6, this_value:reg5+ [ 3e] StrictlyEquals arith_feedback:0, dst:reg5, lhs:reg5, rhs:C~0+ [ 44] Return value:reg5Foo$e166dc90diff --git a/Tests/LibJS/Bytecode/expected/class-literal-fields.txt b/Tests/LibJS/Bytecode/expected/class-literal-fields.txtindex 3ddec2a6ea7..612e7504546 100644--- a/Tests/LibJS/Bytecode/expected/class-literal-fields.txt+++ b/Tests/LibJS/Bytecode/expected/class-literal-fields.txt@@ -1,4 +1,4 @@-$8a5fa0b3 class-literal-fields.js:12:5+$ac1a175d class-literal-fields.js:12:5Registers: 14Blocks: 1Constants:@@ -11,21 +11,21 @@ block0:[ c] Call call_feedback:0, dst:reg6, callee:reg6, this_value:Undefined[ 13] DynamicInitializeLexicalBinding `a`, src:reg6[ 19] GetGlobal value_feedback:1, dst:reg6, `console`- [ 21] GetById value_feedback:2, dst:reg7, base:reg6, `log`- [ 2a] GetGlobal value_feedback:3, dst:reg8, `a`- [ 32] GetById value_feedback:4, dst:reg8, base:reg8, `x`- [ 3b] GetGlobal value_feedback:5, dst:reg9, `a`- [ 43] GetById value_feedback:6, dst:reg9, base:reg9, `y`- [ 4c] GetGlobal value_feedback:7, dst:reg10, `a`- [ 54] GetById value_feedback:8, dst:reg10, base:reg10, `z`- [ 5d] GetGlobal value_feedback:9, dst:reg11, `a`- [ 65] GetById value_feedback:10, dst:reg11, base:reg11, `w`- [ 6e] GetGlobal value_feedback:11, dst:reg12, `a`- [ 76] GetById value_feedback:12, dst:reg12, base:reg12, `s`- [ 7f] GetGlobal value_feedback:13, dst:reg13, `a`- [ 87] GetById value_feedback:14, dst:reg13, base:reg13, `computed`- [ 90] Call call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8, reg9, reg10, reg11, reg12, reg13]- [ 9d] End value:reg5+ [ 21] GetById dst:reg7, base:reg6, `log`+ [ 28] GetGlobal value_feedback:2, dst:reg8, `a`+ [ 30] GetById dst:reg8, base:reg8, `x`+ [ 37] GetGlobal value_feedback:3, dst:reg9, `a`+ [ 3f] GetById dst:reg9, base:reg9, `y`+ [ 46] GetGlobal value_feedback:4, dst:reg10, `a`+ [ 4e] GetById dst:reg10, base:reg10, `z`+ [ 55] GetGlobal value_feedback:5, dst:reg11, `a`+ [ 5d] GetById dst:reg11, base:reg11, `w`+ [ 64] GetGlobal value_feedback:6, dst:reg12, `a`+ [ 6c] GetById dst:reg12, base:reg12, `s`+ [ 73] GetGlobal value_feedback:7, dst:reg13, `a`+ [ 7b] GetById dst:reg13, base:reg13, `computed`+ [ 82] Call call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8, reg9, reg10, reg11, reg12, reg13]+ [ 8f] End value:reg5test$31bd1e55 class-literal-fields.js:2:5diff --git a/Tests/LibJS/Bytecode/expected/computed-compound-assign-register-reuse.txt b/Tests/LibJS/Bytecode/expected/computed-compound-assign-register-reuse.txtindex 53bbcd646cd..3833820825c 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:[ 41] End value:reg5-subVector$a16d85c1 computed-compound-assign-register-reuse.js:5:13+subVector$22cf7e49 computed-compound-assign-register-reuse.js:5:13Registers: 8Blocks: 1Constants:@@ -24,12 +24,12 @@ subVector$a16d85c1 computed-compound-assign-register-reuse.js:5:13block0:[ 0] Enter- [ 1] GetByValue value_feedback:0, keyed_feedback:0, dst:reg5, base:arg0, property:Int32(0)- [ 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- [ 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:Undefined+ [ 1] GetByValue keyed_feedback:0, dst:reg5, base:arg0, property:Int32(0)+ [ 9] GetByValue keyed_feedback:1, dst:reg6, base:arg1, property:Int32(0)+ [ 11] Sub arith_feedback:0, dst:reg7, lhs:reg5, rhs:reg6+ [ 17] PutByValue keyed_feedback:2, base:arg0, property:Int32(0), src:reg7, kind:Normal+ [ 20] GetByValue keyed_feedback:3, dst:reg5, base:arg0, property:Int32(1)+ [ 28] GetByValue keyed_feedback:4, dst:reg6, base:arg1, property:Int32(1)+ [ 30] Sub arith_feedback:1, dst:reg7, lhs:reg5, rhs:reg6+ [ 36] PutByValue keyed_feedback:5, base:arg0, property:Int32(1), src:reg7, kind:Normal+ [ 3f] End value:Undefineddiff --git a/Tests/LibJS/Bytecode/expected/computed-member-access.txt b/Tests/LibJS/Bytecode/expected/computed-member-access.txtindex e946f292e71..8715a8f7b37 100644--- a/Tests/LibJS/Bytecode/expected/computed-member-access.txt+++ b/Tests/LibJS/Bytecode/expected/computed-member-access.txt@@ -17,7 +17,7 @@ block0:[ 41] End value:reg5-computed_read$5a8a4d4c computed-member-access.js:5:5+computed_read$ba31cf2a computed-member-access.js:5:5Registers: 6Blocks: 1Constants:@@ -25,15 +25,15 @@ computed_read$5a8a4d4c computed-member-access.js:5:5block0:[ 0] Enter- [ 1] GetByValue value_feedback:0, keyed_feedback:0, dst:reg5, base:arg0, property:Int32(0)- [ b] Return value:reg5+ [ 1] GetByValue keyed_feedback:0, dst:reg5, base:arg0, property:Int32(0)+ [ 9] Return value:reg5-computed_read_expression$dc1ada8d computed-member-access.js:9:5+computed_read_expression$3bc25c6b computed-member-access.js:9:5Registers: 6Blocks: 1block0:[ 0] Enter- [ 1] GetByValue value_feedback:0, keyed_feedback:0, dst:reg5, base:arg0, property:arg1- [ b] Return value:reg5+ [ 1] GetByValue keyed_feedback:0, dst:reg5, base:arg0, property:arg1+ [ 9] Return value:reg5diff --git a/Tests/LibJS/Bytecode/expected/computed-member-compound-assign.txt b/Tests/LibJS/Bytecode/expected/computed-member-compound-assign.txtindex 3b3984f32b1..c4be68978ca 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:[ 3b] End value:reg5-compound_computed$48b6b4c7 computed-member-compound-assign.js:7:14+compound_computed$67ad3a61 computed-member-compound-assign.js:7:14Registers: 8Blocks: 1Constants:@@ -30,13 +30,13 @@ block0:[ 0] Enter[ 1] ThrowIfNullish src:arg0[ 3] ToPrimitiveWithStringHint dst:reg5, value:arg1- [ 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- [ 22] End value:Undefined+ [ 6] GetByValue keyed_feedback:0, dst:reg6, base:arg0, property:reg5+ [ e] AddRhsInt32 arith_feedback:0, dst:reg7, lhs:reg6, rhs:1+ [ 17] PutByValue keyed_feedback:1, base:arg0, property:reg5, src:reg7, kind:Normal+ [ 20] End value:Undefined-compound_then_assign$cec07569 computed-member-compound-assign.js:11:13+compound_then_assign$afc9efcf computed-member-compound-assign.js:11:13Registers: 8Blocks: 1Constants:@@ -46,8 +46,8 @@ block0:[ 0] Enter[ 1] ThrowIfNullish src:arg0[ 3] ToPrimitiveWithStringHint dst:reg5, value:arg1- [ 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- [ 22] PutByValue keyed_feedback:2, base:arg0, property:arg1, src:arg1, kind:Normal- [ 2b] End value:Undefined+ [ 6] GetByValue keyed_feedback:0, dst:reg6, base:arg0, property:reg5+ [ e] AddRhsInt32 arith_feedback:0, dst:reg7, lhs:reg6, rhs:0+ [ 17] PutByValue keyed_feedback:1, base:arg0, property:reg5, src:reg7, kind:Normal+ [ 20] PutByValue keyed_feedback:2, base:arg0, property:arg1, src:arg1, kind:Normal+ [ 29] End value:Undefineddiff --git a/Tests/LibJS/Bytecode/expected/computed-string-to-ById.txt b/Tests/LibJS/Bytecode/expected/computed-string-to-ById.txtindex fb2f15053d5..21a61aabec0 100644--- a/Tests/LibJS/Bytecode/expected/computed-string-to-ById.txt+++ b/Tests/LibJS/Bytecode/expected/computed-string-to-ById.txt@@ -22,14 +22,14 @@ block0:[ 52] End value:reg5-get_string_prop$0f1956b7 computed-string-to-ById.js:5:5+get_string_prop$2e0fdc51 computed-string-to-ById.js:5:5Registers: 6Blocks: 1block0:[ 0] Enter- [ 1] GetById value_feedback:0, dst:reg5, base:arg0, `hello`- [ a] Return value:reg5+ [ 1] GetById dst:reg5, base:arg0, `hello`+ [ 8] Return value:reg5set_string_prop$def798dc computed-string-to-ById.js:8:16@@ -45,7 +45,7 @@ block0:[ 9] End value:Undefined-get_index_prop$30a34e83 computed-string-to-ById.js:11:5+get_index_prop$d0fbcca5 computed-string-to-ById.js:11:5Registers: 6Blocks: 1Constants:@@ -53,15 +53,15 @@ get_index_prop$30a34e83 computed-string-to-ById.js:11:5block0:[ 0] Enter- [ 1] GetByValue value_feedback:0, keyed_feedback:0, dst:reg5, base:arg0, property:String("0")- [ b] Return value:reg5+ [ 1] GetByValue keyed_feedback:0, dst:reg5, base:arg0, property:String("0")+ [ 9] Return value:reg5-get_length_prop$408d18ad computed-string-to-ById.js:14:5+get_length_prop$a0349a8b computed-string-to-ById.js:14:5Registers: 6Blocks: 1block0:[ 0] Enter- [ 1] GetLength value_feedback:0, keyed_feedback:0, dst:reg5, base:arg0- [ a] Return value:reg5+ [ 1] GetLength keyed_feedback:0, dst:reg5, base:arg0+ [ 8] Return value:reg5diff --git a/Tests/LibJS/Bytecode/expected/computed-update-register-order.txt b/Tests/LibJS/Bytecode/expected/computed-update-register-order.txtindex 5ae4b9ae7cc..8affb6a792c 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:[ 3a] End value:reg5-test$72847ddc computed-update-register-order.js:5:9+test$12dcfbfe computed-update-register-order.js:5:9Registers: 7Blocks: 1Constants:@@ -22,12 +22,12 @@ test$72847ddc computed-update-register-order.js:5:9block0:[ 0] Enter- [ 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- [ 19] GetGlobal value_feedback:1, dst:reg5, `foo`- [ 21] Call call_feedback:0, dst:reg5, callee:reg5, this_value:Undefined, arguments:[arg0]- [ 29] End value:Undefined+ [ 1] GetByValue keyed_feedback:0, dst:reg5, base:arg0, property:Int32(3)+ [ 9] PostfixIncrement arith_feedback:0, dst:reg6, src:reg5+ [ e] PutByValue keyed_feedback:1, base:arg0, property:Int32(3), src:reg5, kind:Normal+ [ 17] GetGlobal value_feedback:0, dst:reg5, `foo`+ [ 1f] Call call_feedback:0, dst:reg5, callee:reg5, this_value:Undefined, arguments:[arg0]+ [ 27] End value:Undefinedfoo$0284f477 computed-update-register-order.js:2:5diff --git a/Tests/LibJS/Bytecode/expected/delete-super-eval-order.txt b/Tests/LibJS/Bytecode/expected/delete-super-eval-order.txtindex 379d32ee04d..806d1c65ab5 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 @@-$62571a27 delete-super-eval-order.js:4:1+$c1fe9c05 delete-super-eval-order.js:4:1Registers: 8Blocks: 4Constants:@@ -20,21 +20,21 @@ block0:block1:[ 33] GetGlobal value_feedback:0, dst:reg6, `A`[ 3b] CallConstruct call_feedback:0, dst:reg6, callee:reg6- [ 41] GetById value_feedback:1, dst:reg7, base:reg6, `m`- [ 4a] Call call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[String("x")]- [ 52] Jump target:block3+ [ 41] GetById dst:reg7, base:reg6, `m`+ [ 48] Call call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[String("x")]+ [ 50] Jump target:block3block2:- [ 57] Catch value_feedback:2, dst:reg6- [ 5b] SetLexicalEnvironment environment:reg4- [ 5d] Mov dst:reg5, src:Undefined- [ 60] Jump target:block3+ [ 55] Catch value_feedback:1, dst:reg6+ [ 59] SetLexicalEnvironment environment:reg4+ [ 5b] Mov dst:reg5, src:Undefined+ [ 5e] Jump target:block3block3:- [ 65] End value:reg5+ [ 63] End value:reg5Exception handlers:- [ 33 .. 57] => handler block2+ [ 33 .. 55] => handler block2A$5e284e97diff --git a/Tests/LibJS/Bytecode/expected/delete-super-property.txt b/Tests/LibJS/Bytecode/expected/delete-super-property.txtindex 65fb188766f..53a67fc5071 100644--- a/Tests/LibJS/Bytecode/expected/delete-super-property.txt+++ b/Tests/LibJS/Bytecode/expected/delete-super-property.txt@@ -1,4 +1,4 @@-$9733ff12 delete-super-property.js:1:1+$d7e4fb56 delete-super-property.js:1:1Registers: 8Blocks: 7Locals: e~0, e~1@@ -22,42 +22,42 @@ block0:block1:[ 34] GetGlobal value_feedback:0, dst:reg6, `A`[ 3c] CallConstruct call_feedback:0, dst:reg6, callee:reg6- [ 42] GetById value_feedback:1, dst:reg7, base:reg6, `foo`- [ 4b] Call call_feedback:1, dst:reg5, callee:reg7, this_value:reg6- [ 52] Jump target:block3+ [ 42] GetById dst:reg7, base:reg6, `foo`+ [ 49] Call call_feedback:1, dst:reg5, callee:reg7, this_value:reg6+ [ 50] Jump target:block3block2:- [ 57] Catch value_feedback:2, dst:reg6- [ 5b] SetLexicalEnvironment environment:reg4- [ 5d] Mov dst:reg5, src:Undefined- [ 60] Mov dst:e~0, src:<Empty>- [ 63] Mov dst:e~0, src:reg6- [ 66] Jump target:block3+ [ 55] Catch value_feedback:1, dst:reg6+ [ 59] SetLexicalEnvironment environment:reg4+ [ 5b] Mov dst:reg5, src:Undefined+ [ 5e] Mov dst:e~0, src:<Empty>+ [ 61] Mov dst:e~0, src:reg6+ [ 64] Jump target:block3block3:- [ 6b] Mov dst:reg5, src:Undefined+ [ 69] Mov dst:reg5, src:Undefinedblock4:- [ 6e] GetGlobal value_feedback:3, dst:reg6, `A`- [ 76] CallConstruct call_feedback:2, dst:reg6, callee:reg6- [ 7c] GetById value_feedback:4, dst:reg7, base:reg6, `baz`- [ 85] Call call_feedback:3, dst:reg5, callee:reg7, this_value:reg6- [ 8c] Jump target:block6+ [ 6c] GetGlobal value_feedback:2, dst:reg6, `A`+ [ 74] CallConstruct call_feedback:2, dst:reg6, callee:reg6+ [ 7a] GetById dst:reg7, base:reg6, `baz`+ [ 81] Call call_feedback:3, dst:reg5, callee:reg7, this_value:reg6+ [ 88] Jump target:block6block5:- [ 91] Catch value_feedback:5, dst:reg6- [ 95] SetLexicalEnvironment environment:reg4- [ 97] Mov dst:reg5, src:Undefined- [ 9a] Mov dst:e~1, src:<Empty>- [ 9d] Mov dst:e~1, src:reg6- [ a0] Jump target:block6+ [ 8d] Catch value_feedback:3, dst:reg6+ [ 91] SetLexicalEnvironment environment:reg4+ [ 93] Mov dst:reg5, src:Undefined+ [ 96] Mov dst:e~1, src:<Empty>+ [ 99] Mov dst:e~1, src:reg6+ [ 9c] Jump target:block6block6:- [ a5] End value:reg5+ [ a1] End value:reg5Exception handlers:- [ 34 .. 57] => handler block2- [ 6e .. 91] => handler block5+ [ 34 .. 55] => handler block2+ [ 6c .. 8d] => handler block5A$5e284e97diff --git a/Tests/LibJS/Bytecode/expected/destructuring-assignment.txt b/Tests/LibJS/Bytecode/expected/destructuring-assignment.txtindex ab74f0f9b98..5cd5a784b22 100644--- a/Tests/LibJS/Bytecode/expected/destructuring-assignment.txt+++ b/Tests/LibJS/Bytecode/expected/destructuring-assignment.txt@@ -77,7 +77,7 @@ Exception handlers:[ 1c .. 58] => handler block8-object_destructuring_with_function_default$8e651e94 destructuring-assignment.js:11:9+object_destructuring_with_function_default$ee0ca072 destructuring-assignment.js:11:9Registers: 9Blocks: 3Locals: x~0@@ -90,15 +90,15 @@ block0:[ 4] NewObject dst:reg5[ 8] Mov dst:reg6, src:reg5[ b] ThrowIfNullish src:reg6- [ d] GetById value_feedback:0, dst:reg7, base:reg6, `x`- [ 16] JumpUndefined condition:reg7, true_target:block1, false_target:block2+ [ d] GetById dst:reg7, base:reg6, `x`+ [ 14] JumpUndefined condition:reg7, true_target:block1, false_target:block2block1:- [ 20] NewFunction dst:reg7, shared_function_data_index:0 (x)+ [ 1e] NewFunction dst:reg7, shared_function_data_index:0 (x)block2:- [ 27] Mov dst:x~0, src:reg7- [ 2a] Return value:x~0+ [ 25] Mov dst:x~0, src:reg7+ [ 28] Return value:x~0setter_parameter_resolution$1278b456 destructuring-assignment.js:17:9diff --git a/Tests/LibJS/Bytecode/expected/destructuring-let-compound-assign.txt b/Tests/LibJS/Bytecode/expected/destructuring-let-compound-assign.txtindex d4e35083dfc..e5dfee12a5e 100644--- a/Tests/LibJS/Bytecode/expected/destructuring-let-compound-assign.txt+++ b/Tests/LibJS/Bytecode/expected/destructuring-let-compound-assign.txt@@ -14,7 +14,7 @@ block0:[ 1d] End value:reg5-f$b033e055 destructuring-let-compound-assign.js:2:5+f$f0e4dc99 destructuring-let-compound-assign.js:2:5Registers: 7Blocks: 1Locals: a~0@@ -28,8 +28,8 @@ block0:[ 1] Mov dst:a~0, src:<Empty>[ 4] ThrowIfNullish src:arg0[ 6] Mov dst:reg5, src:arg0- [ 9] GetById value_feedback:0, dst:a~0, base:reg5, `patchFlag`- [ 12] GetById value_feedback:1, dst:reg5, base:arg1, `patchFlag`- [ 1b] BitwiseAnd arith_feedback:0, dst:reg5, lhs:Int32(16), rhs:reg5- [ 21] BitwiseOr arith_feedback:1, dst:a~0, lhs:a~0, rhs:reg5- [ 27] End value:Undefined+ [ 9] GetById dst:a~0, base:reg5, `patchFlag`+ [ 10] GetById dst:reg5, base:arg1, `patchFlag`+ [ 17] BitwiseAnd arith_feedback:0, dst:reg5, lhs:Int32(16), rhs:reg5+ [ 1d] BitwiseOr arith_feedback:1, dst:a~0, lhs:a~0, rhs:reg5+ [ 23] End value:Undefineddiff --git a/Tests/LibJS/Bytecode/expected/destructuring-param-no-param-expressions.txt b/Tests/LibJS/Bytecode/expected/destructuring-param-no-param-expressions.txtindex f7e83448470..4233e855828 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:[ 2e] End value:reg5-f$c925fb7e destructuring-param-no-param-expressions.js:6:12+f$8874ff3a destructuring-param-no-param-expressions.js:6:12Registers: 7Blocks: 1Locals: local~0@@ -28,8 +28,8 @@ block0:[ 1] CreateVariable `captured`, is_immutable:false, is_global:false, is_strict:false[ 8] ThrowIfNullish src:arg0[ a] Mov dst:reg5, src:arg0- [ d] GetById value_feedback:0, dst:reg6, base:reg5, `captured`- [ 16] InitializeLexicalBinding `captured`, src:reg6- [ 1d] GetById value_feedback:1, dst:local~0, base:reg5, `local`- [ 26] NewFunction dst:reg5, shared_function_data_index:0- [ 2d] Return value:reg5+ [ d] GetById dst:reg6, base:reg5, `captured`+ [ 14] InitializeLexicalBinding `captured`, src:reg6+ [ 1b] GetById dst:local~0, base:reg5, `local`+ [ 22] NewFunction dst:reg5, shared_function_data_index:0+ [ 29] Return value:reg5diff --git a/Tests/LibJS/Bytecode/expected/expression-identifier-number-format.txt b/Tests/LibJS/Bytecode/expected/expression-identifier-number-format.txtindex 42ff7a5c959..a8b6c94831a 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 @@-$f2205694 expression-identifier-number-format.js:1:5+$51c7d872 expression-identifier-number-format.js:1:5Registers: 8Blocks: 1Constants:@@ -16,7 +16,7 @@ block0:[ 1a] PutByValue keyed_feedback:0, base:reg6, property:Double(1.1e-32), src:reg7, kind:Normal[ 23] Mov dst:reg5, src:reg7[ 26] GetGlobal value_feedback:1, dst:reg6, `x`- [ 2e] GetByValue value_feedback:2, keyed_feedback:1, dst:reg6, base:reg6, property:Double(1.1e-32)- [ 38] PutById base:reg6, `foo`, src:Int32(42), kind:Normal- [ 40] Mov dst:reg5, src:Int32(42)- [ 43] End value:reg5+ [ 2e] GetByValue keyed_feedback:1, dst:reg6, base:reg6, property:Double(1.1e-32)+ [ 36] PutById base:reg6, `foo`, src:Int32(42), kind:Normal+ [ 3e] Mov dst:reg5, src:Int32(42)+ [ 41] 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 8da31cd6225..b24bb758158 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@@ -21,7 +21,7 @@ block0:[ 32] End value:reg5-collect$ad5fb165 for-in-object-property-iterator-next.js:2:18+collect$4db82f87 for-in-object-property-iterator-next.js:2:18Registers: 12Blocks: 5Locals: keys~0, key~1@@ -46,9 +46,9 @@ block2:block3:[ 2b] Mov dst:key~1, src:reg9- [ 2e] GetById value_feedback:0, dst:reg11, base:keys~0, `push`- [ 37] Call call_feedback:0, dst:reg11, callee:reg11, this_value:keys~0, arguments:[key~1]- [ 3f] JumpLoop target:block2+ [ 2e] GetById dst:reg11, base:keys~0, `push`+ [ 35] Call call_feedback:0, dst:reg11, callee:reg11, this_value:keys~0, arguments:[key~1]+ [ 3d] JumpLoop target:block2block4:- [ 44] Return value:keys~0+ [ 42] Return value:keys~0diff --git a/Tests/LibJS/Bytecode/expected/for-in-register-lifetime.txt b/Tests/LibJS/Bytecode/expected/for-in-register-lifetime.txtindex effcc760ceb..78ae84bc229 100644--- a/Tests/LibJS/Bytecode/expected/for-in-register-lifetime.txt+++ b/Tests/LibJS/Bytecode/expected/for-in-register-lifetime.txt@@ -1,4 +1,4 @@-$e3c1775a for-in-register-lifetime.js:1:5+$4368f938 for-in-register-lifetime.js:1:5Registers: 16Blocks: 5Constants:@@ -37,12 +37,12 @@ block3:[ 6d] GetGlobal value_feedback:2, dst:reg13, `k`[ 75] GetGlobal value_feedback:3, dst:reg14, `obj`[ 7d] GetGlobal value_feedback:4, dst:reg15, `k`- [ 85] GetByValue value_feedback:5, keyed_feedback:0, dst:reg14, base:reg14, property:reg15- [ 8f] Add arith_feedback:0, dst:reg13, lhs:reg13, rhs:reg14- [ 95] Add arith_feedback:1, dst:reg14, lhs:reg12, rhs:reg13- [ 9b] SetGlobal `result`, src:reg14- [ a1] Mov dst:reg5, src:reg14- [ a4] JumpLoop target:block2+ [ 85] GetByValue keyed_feedback:0, dst:reg14, base:reg14, property:reg15+ [ 8d] Add arith_feedback:0, dst:reg13, lhs:reg13, rhs:reg14+ [ 93] Add arith_feedback:1, dst:reg14, lhs:reg12, rhs:reg13+ [ 99] SetGlobal `result`, src:reg14+ [ 9f] Mov dst:reg5, src:reg14+ [ a2] JumpLoop target:block2block4:- [ a9] End value:reg5+ [ a7] End value:reg5diff --git a/Tests/LibJS/Bytecode/expected/for-loop-scoping.txt b/Tests/LibJS/Bytecode/expected/for-loop-scoping.txtindex 13f1b99312b..5a5b305cf0f 100644--- a/Tests/LibJS/Bytecode/expected/for-loop-scoping.txt+++ b/Tests/LibJS/Bytecode/expected/for-loop-scoping.txt@@ -1,4 +1,4 @@-$050bf092 for-loop-scoping.js:8:1+$64b37270 for-loop-scoping.js:8:1Registers: 9Blocks: 1Constants:@@ -8,14 +8,14 @@ block0:[ 0] Enter[ 1] Mov dst:reg5, src:Undefined[ 4] GetGlobal value_feedback:0, dst:reg6, `console`- [ c] GetById value_feedback:1, dst:reg7, base:reg6, `log`- [ 15] GetGlobal value_feedback:2, dst:reg8, `forLetClosure`- [ 1d] Call call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined- [ 24] Call call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]- [ 2c] End value:reg5+ [ c] GetById dst:reg7, base:reg6, `log`+ [ 13] GetGlobal value_feedback:1, dst:reg8, `forLetClosure`+ [ 1b] Call call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined+ [ 22] Call call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]+ [ 2a] End value:reg5-forLetClosure$5e6a2dae for-loop-scoping.js:2:15+forLetClosure$9f1b29f2 for-loop-scoping.js:2:15Registers: 8Blocks: 4Locals: fns~0@@ -37,31 +37,31 @@ block0:[ 45] Jump target:block2block1:- [ 4a] GetById value_feedback:1, dst:reg6, base:fns~0, `push`- [ 53] NewFunction dst:reg7, shared_function_data_index:0- [ 5a] Call call_feedback:0, dst:reg6, callee:reg6, this_value:fns~0, arguments:[reg7]- [ 62] GetBinding value_feedback:2, dst:reg6, `i`- [ 6b] SetLexicalEnvironment environment:reg4- [ 6d] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false- [ 79] CreateVariable `i`, is_immutable:false, is_global:false, is_strict:false- [ 80] InitializeLexicalBinding `i`, src:reg6- [ 87] GetBinding value_feedback:3, dst:reg6, `i`- [ 90] PostfixIncrement arith_feedback:0, dst:reg7, src:reg6- [ 95] SetLexicalBinding `i`, src:reg6+ [ 4a] GetById dst:reg6, base:fns~0, `push`+ [ 51] NewFunction dst:reg7, shared_function_data_index:0+ [ 58] Call call_feedback:0, dst:reg6, callee:reg6, this_value:fns~0, arguments:[reg7]+ [ 60] GetBinding value_feedback:1, dst:reg6, `i`+ [ 69] SetLexicalEnvironment environment:reg4+ [ 6b] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false+ [ 77] CreateVariable `i`, is_immutable:false, is_global:false, is_strict:false+ [ 7e] InitializeLexicalBinding `i`, src:reg6+ [ 85] GetBinding value_feedback:2, dst:reg6, `i`+ [ 8e] PostfixIncrement arith_feedback:0, dst:reg7, src:reg6+ [ 93] SetLexicalBinding `i`, src:reg6block2:- [ 9c] GetBinding value_feedback:4, dst:reg6, `i`- [ a5] JumpLessThanLoopRhsInt32 arith_feedback:1, lhs:reg6, rhs:3, true_target:block1, false_target:block3+ [ 9a] GetBinding value_feedback:3, dst:reg6, `i`+ [ a3] JumpLessThanLoopRhsInt32 arith_feedback:1, lhs:reg6, rhs:3, true_target:block1, false_target:block3block3:- [ b5] SetLexicalEnvironment environment:reg4- [ b7] GetById value_feedback:5, dst:reg5, base:fns~0, `map`- [ c0] NewFunction dst:reg6, shared_function_data_index:1- [ c7] Call call_feedback:1, dst:reg5, callee:reg5, this_value:fns~0, arguments:[reg6]- [ cf] Return value:reg5+ [ b3] SetLexicalEnvironment environment:reg4+ [ b5] GetById dst:reg5, base:fns~0, `map`+ [ bc] NewFunction dst:reg6, shared_function_data_index:1+ [ c3] Call call_feedback:1, dst:reg5, callee:reg5, this_value:fns~0, arguments:[reg6]+ [ cb] Return value:reg5-map$969da4cd BuiltinFile:275:11+map$d1c6bef1 BuiltinFile:275:11Registers: 6Blocks: 8Locals: object~0, length~1, array~2, k~3, kValue~4, mappedValue~5@@ -74,41 +74,41 @@ block0:[ 0] Enter[ 1] ToObject dst:reg5, value:this[ 4] Mov dst:object~0, src:reg5- [ 7] GetLength value_feedback:0, keyed_feedback:0, dst:reg5, base:object~0- [ 10] ToLength dst:reg5, value:reg5- [ 13] Mov dst:length~1, src:reg5- [ 16] IsCallable dst:reg5, value:arg0- [ 19] Not dst:reg5, src:reg5- [ 1c] JumpFalse condition:reg5, target:block2+ [ 7] GetLength keyed_feedback:0, dst:reg5, base:object~0+ [ e] ToLength dst:reg5, value:reg5+ [ 11] Mov dst:length~1, src:reg5+ [ 14] IsCallable dst:reg5, value:arg0+ [ 17] Not dst:reg5, src:reg5+ [ 1a] JumpFalse condition:reg5, target:block2block1:- [ 22] ThrowNotAFunction src:arg0+ [ 20] ThrowNotAFunction src:arg0block2:- [ 24] Call call_feedback:0, dst:reg5, callee:Value([object RawNativeFunction]), this_value:Undefined, arguments:[object~0, length~1]- [ 2d] Mov dst:array~2, src:reg5- [ 30] Mov dst:k~3, src:Int32(0)- [ 33] Jump target:block6+ [ 22] Call call_feedback:0, dst:reg5, callee:Value([object RawNativeFunction]), this_value:Undefined, arguments:[object~0, length~1]+ [ 2b] Mov dst:array~2, src:reg5+ [ 2e] Mov dst:k~3, src:Int32(0)+ [ 31] Jump target:block6block3:- [ 38] In dst:reg5, lhs:k~3, rhs:object~0- [ 3c] JumpFalse condition:reg5, target:block5+ [ 36] In dst:reg5, lhs:k~3, rhs:object~0+ [ 3a] JumpFalse condition:reg5, target:block5block4:- [ 42] GetByValue value_feedback:1, keyed_feedback:1, dst:reg5, base:object~0, property:k~3- [ 4c] Mov dst:kValue~4, src:reg5- [ 4f] Call call_feedback:1, dst:reg5, callee:arg0, this_value:arg1, arguments:[kValue~4, k~3, object~0]- [ 59] Mov dst:mappedValue~5, src:reg5- [ 5c] CreateDataPropertyOrThrow object:array~2, property:k~3, value:mappedValue~5+ [ 40] GetByValue keyed_feedback:1, dst:reg5, base:object~0, property:k~3+ [ 48] Mov dst:kValue~4, src:reg5+ [ 4b] Call call_feedback:1, dst:reg5, callee:arg0, this_value:arg1, arguments:[kValue~4, k~3, object~0]+ [ 55] Mov dst:mappedValue~5, src:reg5+ [ 58] CreateDataPropertyOrThrow object:array~2, property:k~3, value:mappedValue~5block5:- [ 60] Increment arith_feedback:0, dst:k~3+ [ 5c] Increment arith_feedback:0, dst:k~3block6:- [ 64] JumpLessThanLoop arith_feedback:1, lhs:k~3, rhs:length~1, true_target:block3, false_target:block7+ [ 60] JumpLessThanLoop arith_feedback:1, lhs:k~3, rhs:length~1, true_target:block3, false_target:block7block7:- [ 71] Return value:array~2+ [ 6d] Return value:array~2$bb9c872d for-loop-scoping.js:6:20diff --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 727673edc7f..090977dcabf 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:[ 15] End value:reg5-f$f5217644 for-of-cond-rhs-block-order.js:2:15+f$492e09f8 for-of-cond-rhs-block-order.js:2:15Registers: 16Blocks: 22Locals: r~0, n~1@@ -29,84 +29,84 @@ block0:[ 7] JumpFalse condition:arg0, target:block2block1:- [ d] GetById value_feedback:0, dst:reg6, base:arg0, `x`- [ 16] Jump target:block3+ [ d] GetById dst:reg6, base:arg0, `x`+ [ 14] Jump target:block3block2:- [ 1b] Mov dst:reg6, src:arg1+ [ 19] Mov dst:reg6, src:arg1block3:- [ 1e] GetGlobal value_feedback:1, dst:reg7, `Object`- [ 26] GetById value_feedback:2, dst:reg8, base:reg7, `entries`- [ 2f] NewObject dst:reg9- [ 33] Call call_feedback:0, dst:reg5, callee:reg8, this_value:reg7, arguments:[reg9]- [ 3b] GetIterator dst_iterator_object:reg6, dst_iterator_next:reg7, dst_iterator_done:reg8, iterable:reg5, fast_array_mode_allowed:true+ [ 1c] GetGlobal value_feedback:0, dst:reg7, `Object`+ [ 24] GetById dst:reg8, base:reg7, `entries`+ [ 2b] NewObject dst:reg9+ [ 2f] Call call_feedback:0, dst:reg5, callee:reg8, this_value:reg7, arguments:[reg9]+ [ 37] GetIterator dst_iterator_object:reg6, dst_iterator_next:reg7, dst_iterator_done:reg8, iterable:reg5, fast_array_mode_allowed:trueblock4:- [ 44] IteratorNextUnpack dst_value:reg9, dst_done:reg10, iterator_object:reg6, iterator_next:reg7, iterator_done:reg8- [ 4a] JumpTrue condition:reg10, target:block21+ [ 40] IteratorNextUnpack dst_value:reg9, dst_done:reg10, iterator_object:reg6, iterator_next:reg7, iterator_done:reg8+ [ 46] JumpTrue condition:reg10, target:block21block5:- [ 50] Mov dst:reg11, src:Bool(false)- [ 53] GetIterator dst_iterator_object:reg12, dst_iterator_next:reg13, dst_iterator_done:reg14, iterable:reg9, fast_array_mode_allowed:true+ [ 4c] Mov dst:reg11, src:Bool(false)+ [ 4f] GetIterator dst_iterator_object:reg12, dst_iterator_next:reg13, dst_iterator_done:reg14, iterable:reg9, fast_array_mode_allowed:trueblock6:- [ 5c] IteratorNextUnpack dst_value:reg15, dst_done:reg11, iterator_object:reg12, iterator_next:reg13, iterator_done:reg14+ [ 58] IteratorNextUnpack dst_value:reg15, dst_done:reg11, iterator_object:reg12, iterator_next:reg13, iterator_done:reg14block7:- [ 62] JumpFalse condition:reg11, target:block9+ [ 5e] JumpFalse condition:reg11, target:block9block8:- [ 68] Mov dst:reg15, src:Undefined+ [ 64] Mov dst:reg15, src:Undefinedblock9:- [ 6b] Mov dst:r~0, src:reg15- [ 6e] JumpTrue condition:reg11, target:block12+ [ 67] Mov dst:r~0, src:reg15+ [ 6a] JumpTrue condition:reg11, target:block12block10:- [ 74] IteratorNextUnpack dst_value:reg15, dst_done:reg11, iterator_object:reg12, iterator_next:reg13, iterator_done:reg14+ [ 70] IteratorNextUnpack dst_value:reg15, dst_done:reg11, iterator_object:reg12, iterator_next:reg13, iterator_done:reg14block11:- [ 7a] JumpFalse condition:reg11, target:block13+ [ 76] JumpFalse condition:reg11, target:block13block12:- [ 80] Mov dst:reg15, src:Undefined+ [ 7c] Mov dst:reg15, src:Undefinedblock13:- [ 83] Mov dst:n~1, src:reg15+ [ 7f] Mov dst:n~1, src:reg15block14:- [ 86] JumpTrue condition:reg14, target:block19+ [ 82] JumpTrue condition:reg14, target:block19block15:- [ 8c] IteratorClose iterator_object:reg12, iterator_next:reg13, iterator_done:reg14, completion_value:Undefined- [ 94] Jump target:block19+ [ 88] IteratorClose iterator_object:reg12, iterator_next:reg13, iterator_done:reg14, completion_value:Undefined+ [ 90] Jump target:block19block16:- [ 99] Catch value_feedback:3, dst:reg15- [ 9d] JumpTrue condition:reg14, target:block18+ [ 95] Catch value_feedback:1, dst:reg15+ [ 99] JumpTrue condition:reg14, target:block18block17:- [ a3] IteratorClose iterator_object:reg12, iterator_next:reg13, iterator_done:reg14, completion_value:reg15+ [ 9f] IteratorClose iterator_object:reg12, iterator_next:reg13, iterator_done:reg14, completion_value:reg15block18:- [ ab] Throw src:reg15+ [ a7] Throw src:reg15block19:- [ ad] JumpLoop target:block4+ [ a9] JumpLoop target:block4block20:- [ b2] Catch value_feedback:4, dst:reg11- [ b6] IteratorClose iterator_object:reg6, iterator_next:reg7, iterator_done:reg8, completion_value:reg11- [ be] Throw src:reg11+ [ ae] Catch value_feedback:2, dst:reg11+ [ b2] IteratorClose iterator_object:reg6, iterator_next:reg7, iterator_done:reg8, completion_value:reg11+ [ ba] Throw src:reg11block21:- [ c0] End value:Undefined+ [ bc] End value:UndefinedException handlers:- [ 50 .. 5c] => handler block20- [ 5c .. 62] => handler block20- [ 62 .. 74] => handler block16- [ 74 .. 7a] => handler block20- [ 7a .. 86] => handler block16- [ 86 .. b2] => handler block20+ [ 4c .. 58] => handler block20+ [ 58 .. 5e] => handler block20+ [ 5e .. 70] => handler block16+ [ 70 .. 76] => handler block20+ [ 76 .. 82] => handler block16+ [ 82 .. ae] => 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 32ec605db73..d3e77de0ffc 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:[ 17] End value:reg5-f$68248f92 for-of-continue-with-block-scope.js:2:15+f$a8d58bd6 for-of-continue-with-block-scope.js:2:15Registers: 14Blocks: 7Locals: t~0, o~1@@ -41,28 +41,28 @@ block2:[ 59] JumpFalse condition:reg12, target:block4block3:- [ 5f] GetById value_feedback:1, dst:reg12, base:t~0, `push`- [ 68] GetBinding value_feedback:2, dst:reg13, `r`- [ 71] Call call_feedback:0, dst:reg12, callee:reg12, this_value:t~0, arguments:[reg13]- [ 79] SetLexicalEnvironment environment:reg4- [ 7b] Jump target:block1+ [ 5f] GetById dst:reg12, base:t~0, `push`+ [ 66] GetBinding value_feedback:1, dst:reg13, `r`+ [ 6f] Call call_feedback:0, dst:reg12, callee:reg12, this_value:t~0, arguments:[reg13]+ [ 77] SetLexicalEnvironment environment:reg4+ [ 79] Jump target:block1block4:- [ 80] GetById value_feedback:3, dst:reg12, base:t~0, `find`- [ 89] NewFunction dst:reg13, shared_function_data_index:0- [ 90] Call call_feedback:1, dst:reg12, callee:reg12, this_value:t~0, arguments:[reg13]- [ 98] Mov dst:o~1, src:reg12- [ 9b] SetLexicalEnvironment environment:reg4- [ 9d] JumpLoop target:block1+ [ 7e] GetById dst:reg12, base:t~0, `find`+ [ 85] NewFunction dst:reg13, shared_function_data_index:0+ [ 8c] Call call_feedback:1, dst:reg12, callee:reg12, this_value:t~0, arguments:[reg13]+ [ 94] Mov dst:o~1, src:reg12+ [ 97] SetLexicalEnvironment environment:reg4+ [ 99] JumpLoop target:block1block5:- [ a2] Catch value_feedback:4, dst:reg11- [ a6] SetLexicalEnvironment environment:reg4- [ a8] IteratorClose iterator_object:reg6, iterator_next:reg7, iterator_done:reg8, completion_value:reg11- [ b0] Throw src:reg11+ [ 9e] Catch value_feedback:2, dst:reg11+ [ a2] SetLexicalEnvironment environment:reg4+ [ a4] IteratorClose iterator_object:reg6, iterator_next:reg7, iterator_done:reg8, completion_value:reg11+ [ ac] Throw src:reg11block6:- [ b2] Return value:t~0+ [ ae] Return value:t~0Exception handlers:- [ 33 .. a2] => handler block5+ [ 33 .. 9e] => handler block5diff --git a/Tests/LibJS/Bytecode/expected/for-of-iterator-close.txt b/Tests/LibJS/Bytecode/expected/for-of-iterator-close.txtindex 58226327b80..19ddae02ace 100644--- a/Tests/LibJS/Bytecode/expected/for-of-iterator-close.txt+++ b/Tests/LibJS/Bytecode/expected/for-of-iterator-close.txt@@ -94,7 +94,7 @@ Exception handlers:[ 37 .. 3a] => handler block3-forAwaitOfBreak$73d9a2b6 for-of-iterator-close.js:16:22+forAwaitOfBreak$b48a9efa for-of-iterator-close.js:16:22Registers: 18Blocks: 23Locals: x~0@@ -124,77 +124,77 @@ block3:block4:[ 3c] ThrowIfNotObject src:reg14- [ 3e] GetById value_feedback:0, dst:reg10, base:reg14, `done`- [ 47] JumpTrue condition:reg10, target:block22+ [ 3e] GetById dst:reg10, base:reg14, `done`+ [ 45] JumpTrue condition:reg10, target:block22block5:- [ 4d] GetById value_feedback:1, dst:reg9, base:reg14, `value`+ [ 4b] GetById dst:reg9, base:reg14, `value`block6:- [ 56] Mov dst:x~0, src:reg9- [ 59] JumpStrictlyEqualsRhsInt32 arith_feedback:1, lhs:x~0, rhs:2, true_target:block7, false_target:block13+ [ 52] Mov dst:x~0, src:reg9+ [ 55] JumpStrictlyEqualsRhsInt32 arith_feedback:1, lhs:x~0, rhs:2, true_target:block7, false_target:block13block7:- [ 69] GetMethod dst:reg11, object:reg6, `return`- [ 70] JumpUndefined condition:reg11, true_target:block12, false_target:block8+ [ 65] GetMethod dst:reg11, object:reg6, `return`+ [ 6c] JumpUndefined condition:reg11, true_target:block12, false_target:block8block8:- [ 7a] Call call_feedback:1, dst:reg12, callee:reg11, this_value:reg6- [ 81] Mov dst:reg13, src:reg0- [ 84] Await continuation_label:block9, argument:reg12+ [ 76] Call call_feedback:1, dst:reg12, callee:reg11, this_value:reg6+ [ 7d] Mov dst:reg13, src:reg0+ [ 80] Await continuation_label:block9, argument:reg12block9:- [ 8a] Mov dst:reg13, src:reg0- [ 8d] GetCompletionFields type_dst:reg14, value_dst:reg15, completion:reg13- [ 91] StrictlyEqualsRhsInt32 arith_feedback:2, dst:reg16, lhs:reg14, rhs:1- [ 9a] JumpIf condition:reg16, true_target:block11, false_target:block10+ [ 86] Mov dst:reg13, src:reg0+ [ 89] GetCompletionFields type_dst:reg14, value_dst:reg15, completion:reg13+ [ 8d] StrictlyEqualsRhsInt32 arith_feedback:2, dst:reg16, lhs:reg14, rhs:1+ [ 96] JumpIf condition:reg16, true_target:block11, false_target:block10block10:- [ a4] Throw src:reg15+ [ a0] Throw src:reg15block11:- [ a6] ThrowIfNotObject src:reg15+ [ a2] ThrowIfNotObject src:reg15block12:- [ a8] Jump target:block22+ [ a4] Jump target:block22block13:- [ ad] JumpLoop target:block1+ [ a9] JumpLoop target:block1block14:- [ b2] Catch value_feedback:2, dst:reg11+ [ ae] Catch value_feedback:0, dst:reg11block15:- [ b6] GetMethod dst:reg12, object:reg6, `return`- [ bd] JumpUndefined condition:reg12, true_target:block21, false_target:block16+ [ b2] GetMethod dst:reg12, object:reg6, `return`+ [ b9] JumpUndefined condition:reg12, true_target:block21, false_target:block16block16:- [ c7] Call call_feedback:2, dst:reg13, callee:reg12, this_value:reg6- [ ce] Mov dst:reg14, src:reg0- [ d1] Await continuation_label:block17, argument:reg13+ [ c3] Call call_feedback:2, dst:reg13, callee:reg12, this_value:reg6+ [ ca] Mov dst:reg14, src:reg0+ [ cd] Await continuation_label:block17, argument:reg13block17:- [ d7] Mov dst:reg14, src:reg0- [ da] GetCompletionFields type_dst:reg15, value_dst:reg16, completion:reg14- [ de] StrictlyEqualsRhsInt32 arith_feedback:3, dst:reg17, lhs:reg15, rhs:1- [ e7] JumpIf condition:reg17, true_target:block19, false_target:block18+ [ d3] Mov dst:reg14, src:reg0+ [ d6] GetCompletionFields type_dst:reg15, value_dst:reg16, completion:reg14+ [ da] StrictlyEqualsRhsInt32 arith_feedback:3, dst:reg17, lhs:reg15, rhs:1+ [ e3] JumpIf condition:reg17, true_target:block19, false_target:block18block18:- [ f1] Throw src:reg16+ [ ed] Throw src:reg16block19:- [ f3] Jump target:block21+ [ ef] Jump target:block21block20:- [ f8] Catch value_feedback:3, dst:reg12+ [ f4] Catch value_feedback:1, dst:reg12block21:- [ fc] Throw src:reg11+ [ f8] Throw src:reg11block22:- [ fe] Yield value:Undefined+ [ fa] Yield value:UndefinedException handlers:- [ 56 .. 69] => handler block14- [ ad .. b2] => handler block14- [ b6 .. f8] => handler block20+ [ 52 .. 65] => handler block14+ [ a9 .. ae] => handler block14+ [ b2 .. f4] => handler block20diff --git a/Tests/LibJS/Bytecode/expected/function-decl-source-order.txt b/Tests/LibJS/Bytecode/expected/function-decl-source-order.txtindex f849c67f51a..f57df5e8ca4 100644--- a/Tests/LibJS/Bytecode/expected/function-decl-source-order.txt+++ b/Tests/LibJS/Bytecode/expected/function-decl-source-order.txt@@ -1,4 +1,4 @@-$754a28bb function-decl-source-order.js:17:1+$d4f1aa99 function-decl-source-order.js:17:1Registers: 13Blocks: 1Constants:@@ -8,19 +8,19 @@ block0:[ 0] Enter[ 1] Mov dst:reg5, src:Undefined[ 4] GetGlobal value_feedback:0, dst:reg6, `console`- [ c] GetById value_feedback:1, dst:reg7, base:reg6, `log`- [ 15] GetGlobal value_feedback:2, dst:reg8, `alpha`- [ 1d] Call call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined- [ 24] GetGlobal value_feedback:3, dst:reg9, `beta`- [ 2c] Call call_feedback:1, dst:reg9, callee:reg9, this_value:Undefined- [ 33] GetGlobal value_feedback:4, dst:reg10, `gamma`- [ 3b] Call call_feedback:2, dst:reg10, callee:reg10, this_value:Undefined- [ 42] GetGlobal value_feedback:5, dst:reg11, `delta`- [ 4a] Call call_feedback:3, dst:reg11, callee:reg11, this_value:Undefined- [ 51] GetGlobal value_feedback:6, dst:reg12, `dup`- [ 59] Call call_feedback:4, dst:reg12, callee:reg12, this_value:Undefined- [ 60] Call call_feedback:5, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8, reg9, reg10, reg11, reg12]- [ 6c] End value:reg5+ [ c] GetById dst:reg7, base:reg6, `log`+ [ 13] GetGlobal value_feedback:1, dst:reg8, `alpha`+ [ 1b] Call call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined+ [ 22] GetGlobal value_feedback:2, dst:reg9, `beta`+ [ 2a] Call call_feedback:1, dst:reg9, callee:reg9, this_value:Undefined+ [ 31] GetGlobal value_feedback:3, dst:reg10, `gamma`+ [ 39] Call call_feedback:2, dst:reg10, callee:reg10, this_value:Undefined+ [ 40] GetGlobal value_feedback:4, dst:reg11, `delta`+ [ 48] Call call_feedback:3, dst:reg11, callee:reg11, this_value:Undefined+ [ 4f] GetGlobal value_feedback:5, dst:reg12, `dup`+ [ 57] Call call_feedback:4, dst:reg12, callee:reg12, this_value:Undefined+ [ 5e] Call call_feedback:5, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8, reg9, reg10, reg11, reg12]+ [ 6a] End value:reg5alpha$9bc8f61b function-decl-source-order.js:5:20diff --git a/Tests/LibJS/Bytecode/expected/generator-yield-call.txt b/Tests/LibJS/Bytecode/expected/generator-yield-call.txtindex adff496c3fd..af5826f8963 100644--- a/Tests/LibJS/Bytecode/expected/generator-yield-call.txt+++ b/Tests/LibJS/Bytecode/expected/generator-yield-call.txt@@ -20,7 +20,7 @@ block0:[ 37] End value:reg5-f$aadc2919 generator-yield-call.js:6:5+f$72770005 generator-yield-call.js:6:5Registers: 11Blocks: 12Constants:@@ -31,46 +31,46 @@ block0:[ 1] Yield continuation_label:block1, value:Undefinedblock1:- [ 8] GetById value_feedback:0, dst:reg5, base:arg0, `x`- [ 11] Yield continuation_label:block2, value:reg5+ [ 8] GetById dst:reg5, base:arg0, `x`+ [ f] Yield continuation_label:block2, value:reg5block2:- [ 18] Mov dst:reg6, src:reg0- [ 1b] GetCompletionFields type_dst:reg7, value_dst:reg8, completion:reg6- [ 1f] StrictlyEqualsRhsInt32 arith_feedback:0, dst:reg9, lhs:reg7, rhs:1- [ 28] JumpIf condition:reg9, true_target:block6, false_target:block3+ [ 16] Mov dst:reg6, src:reg0+ [ 19] GetCompletionFields type_dst:reg7, value_dst:reg8, completion:reg6+ [ 1d] StrictlyEqualsRhsInt32 arith_feedback:0, dst:reg9, lhs:reg7, rhs:1+ [ 26] JumpIf condition:reg9, true_target:block6, false_target:block3block3:- [ 32] StrictlyEqualsRhsInt32 arith_feedback:1, dst:reg10, lhs:reg7, rhs:5- [ 3b] JumpIf condition:reg10, true_target:block4, false_target:block5+ [ 30] StrictlyEqualsRhsInt32 arith_feedback:1, dst:reg10, lhs:reg7, rhs:5+ [ 39] JumpIf condition:reg10, true_target:block4, false_target:block5block4:- [ 45] Throw src:reg8+ [ 43] Throw src:reg8block5:- [ 47] Yield value:reg8+ [ 45] Yield value:reg8block6:- [ 4e] Mov dst:reg5, src:reg8- [ 51] GetById value_feedback:1, dst:reg5, base:arg1, `y`- [ 5a] Yield continuation_label:block7, value:reg5+ [ 4c] Mov dst:reg5, src:reg8+ [ 4f] GetById dst:reg5, base:arg1, `y`+ [ 56] Yield continuation_label:block7, value:reg5block7:- [ 61] Mov dst:reg6, src:reg0- [ 64] GetCompletionFields type_dst:reg7, value_dst:reg8, completion:reg6- [ 68] StrictlyEqualsRhsInt32 arith_feedback:2, dst:reg9, lhs:reg7, rhs:1- [ 71] JumpIf condition:reg9, true_target:block11, false_target:block8+ [ 5d] Mov dst:reg6, src:reg0+ [ 60] GetCompletionFields type_dst:reg7, value_dst:reg8, completion:reg6+ [ 64] StrictlyEqualsRhsInt32 arith_feedback:2, dst:reg9, lhs:reg7, rhs:1+ [ 6d] JumpIf condition:reg9, true_target:block11, false_target:block8block8:- [ 7b] StrictlyEqualsRhsInt32 arith_feedback:3, dst:reg10, lhs:reg7, rhs:5- [ 84] JumpIf condition:reg10, true_target:block9, false_target:block10+ [ 77] StrictlyEqualsRhsInt32 arith_feedback:3, dst:reg10, lhs:reg7, rhs:5+ [ 80] JumpIf condition:reg10, true_target:block9, false_target:block10block9:- [ 8e] Throw src:reg8+ [ 8a] Throw src:reg8block10:- [ 90] Yield value:reg8+ [ 8c] Yield value:reg8block11:- [ 97] Mov dst:reg5, src:reg8- [ 9a] Yield value:Undefined+ [ 93] Mov dst:reg5, src:reg8+ [ 96] Yield value:Undefineddiff --git a/Tests/LibJS/Bytecode/expected/generator-yield-star.txt b/Tests/LibJS/Bytecode/expected/generator-yield-star.txtindex 4e2a210acd3..58264a48937 100644--- a/Tests/LibJS/Bytecode/expected/generator-yield-star.txt+++ b/Tests/LibJS/Bytecode/expected/generator-yield-star.txt@@ -13,7 +13,7 @@ block0:[ 2a] End value:reg5-f$6b40f179 generator-yield-star.js:4:5+f$b179cfdd generator-yield-star.js:4:5Registers: 21Blocks: 19Constants:@@ -37,67 +37,67 @@ block2:block3:[ 2f] Call call_feedback:0, dst:reg12, callee:reg9, this_value:reg8, arguments:[reg7][ 37] ThrowIfNotObject src:reg12- [ 39] GetById value_feedback:0, dst:reg13, base:reg12, `done`- [ 42] JumpIf condition:reg13, true_target:block4, false_target:block5+ [ 39] GetById dst:reg13, base:reg12, `done`+ [ 40] JumpIf condition:reg13, true_target:block4, false_target:block5block4:- [ 4c] GetById value_feedback:1, dst:reg14, base:reg12, `value`- [ 55] Jump target:block18+ [ 4a] GetById dst:reg14, base:reg12, `value`+ [ 51] Jump target:block18block5:- [ 5a] YieldIteratorResult continuation_label:block17, value:reg12+ [ 56] YieldIteratorResult continuation_label:block17, value:reg12block6:- [ 60] StrictlyEqualsRhsInt32 arith_feedback:1, dst:reg15, lhs:reg6, rhs:5- [ 69] JumpIf condition:reg15, true_target:block7, false_target:block12+ [ 5c] StrictlyEqualsRhsInt32 arith_feedback:1, dst:reg15, lhs:reg6, rhs:5+ [ 65] JumpIf condition:reg15, true_target:block7, false_target:block12block7:- [ 73] GetMethod dst:reg16, object:reg8, `throw`- [ 7a] JumpUndefined condition:reg16, true_target:block11, false_target:block8+ [ 6f] GetMethod dst:reg16, object:reg8, `throw`+ [ 76] JumpUndefined condition:reg16, true_target:block11, false_target:block8block8:- [ 84] Call call_feedback:1, dst:reg12, callee:reg16, this_value:reg8, arguments:[reg7]- [ 8c] ThrowIfNotObject src:reg12- [ 8e] GetById value_feedback:2, dst:reg13, base:reg12, `done`- [ 97] JumpIf condition:reg13, true_target:block9, false_target:block10+ [ 80] Call call_feedback:1, dst:reg12, callee:reg16, this_value:reg8, arguments:[reg7]+ [ 88] ThrowIfNotObject src:reg12+ [ 8a] GetById dst:reg13, base:reg12, `done`+ [ 91] JumpIf condition:reg13, true_target:block9, false_target:block10block9:- [ a1] GetById value_feedback:3, dst:reg14, base:reg12, `value`- [ aa] Jump target:block18+ [ 9b] GetById dst:reg14, base:reg12, `value`+ [ a2] Jump target:block18block10:- [ af] YieldIteratorResult continuation_label:block17, value:reg12+ [ a7] YieldIteratorResult continuation_label:block17, value:reg12block11:- [ b5] IteratorClose iterator_object:reg8, iterator_next:reg9, iterator_done:reg10, completion_value:Undefined- [ bd] NewTypeError dst:reg17, yield* protocol violation: iterator must have a throw method- [ c1] Throw src:reg17+ [ ad] IteratorClose iterator_object:reg8, iterator_next:reg9, iterator_done:reg10, completion_value:Undefined+ [ b5] NewTypeError dst:reg17, yield* protocol violation: iterator must have a throw method+ [ b9] Throw src:reg17block12:- [ c3] GetMethod dst:reg18, object:reg8, `return`- [ ca] JumpUndefined condition:reg18, true_target:block13, false_target:block14+ [ bb] GetMethod dst:reg18, object:reg8, `return`+ [ c2] JumpUndefined condition:reg18, true_target:block13, false_target:block14block13:- [ d4] Yield value:reg7+ [ cc] Yield value:reg7block14:- [ db] Call call_feedback:2, dst:reg19, callee:reg18, this_value:reg8, arguments:[reg7]- [ e3] ThrowIfNotObject src:reg19- [ e5] GetById value_feedback:4, dst:reg13, base:reg19, `done`- [ ee] JumpIf condition:reg13, true_target:block15, false_target:block16+ [ d3] Call call_feedback:2, dst:reg19, callee:reg18, this_value:reg8, arguments:[reg7]+ [ db] ThrowIfNotObject src:reg19+ [ dd] GetById dst:reg13, base:reg19, `done`+ [ e4] JumpIf condition:reg13, true_target:block15, false_target:block16block15:- [ f8] GetById value_feedback:5, dst:reg20, base:reg19, `value`- [ 101] Yield value:reg20+ [ ee] GetById dst:reg20, base:reg19, `value`+ [ f5] Yield value:reg20block16:- [ 108] YieldIteratorResult continuation_label:block17, value:reg19+ [ fc] YieldIteratorResult continuation_label:block17, value:reg19block17:- [ 10e] Mov dst:reg5, src:reg0- [ 111] GetCompletionFields type_dst:reg6, value_dst:reg7, completion:reg5- [ 115] Jump target:block2+ [ 102] Mov dst:reg5, src:reg0+ [ 105] GetCompletionFields type_dst:reg6, value_dst:reg7, completion:reg5+ [ 109] Jump target:block2block18:- [ 11a] Mov dst:reg5, src:reg14- [ 11d] Yield value:Undefined+ [ 10e] Mov dst:reg5, src:reg14+ [ 111] Yield value:Undefineddiff --git a/Tests/LibJS/Bytecode/expected/generator-yield.txt b/Tests/LibJS/Bytecode/expected/generator-yield.txtindex abf55689ed4..8358d49af1d 100644--- a/Tests/LibJS/Bytecode/expected/generator-yield.txt+++ b/Tests/LibJS/Bytecode/expected/generator-yield.txt@@ -1,4 +1,4 @@-$bd11bd10 generator-yield.js:11:5+$7f24b1dc generator-yield.js:11:5Registers: 8Blocks: 1Constants:@@ -11,12 +11,12 @@ block0:[ c] Call call_feedback:0, dst:reg6, callee:reg6, this_value:Undefined[ 13] SetGlobal `g`, src:reg6[ 19] GetGlobal value_feedback:1, dst:reg6, `g`- [ 21] GetById value_feedback:2, dst:reg7, base:reg6, `next`- [ 2a] Call call_feedback:1, dst:reg5, callee:reg7, this_value:reg6- [ 31] GetGlobal value_feedback:3, dst:reg6, `g`- [ 39] GetById value_feedback:4, dst:reg7, base:reg6, `next`- [ 42] Call call_feedback:2, dst:reg5, callee:reg7, this_value:reg6- [ 49] End value:reg5+ [ 21] GetById dst:reg7, base:reg6, `next`+ [ 28] Call call_feedback:1, dst:reg5, callee:reg7, this_value:reg6+ [ 2f] GetGlobal value_feedback:2, dst:reg6, `g`+ [ 37] GetById dst:reg7, base:reg6, `next`+ [ 3e] Call call_feedback:2, dst:reg5, callee:reg7, this_value:reg6+ [ 45] End value:reg5multi_yield$5798a4db generator-yield.js:7:5diff --git a/Tests/LibJS/Bytecode/expected/global-variables.txt b/Tests/LibJS/Bytecode/expected/global-variables.txtindex 51f374257ae..3f74a8aa35b 100644--- a/Tests/LibJS/Bytecode/expected/global-variables.txt+++ b/Tests/LibJS/Bytecode/expected/global-variables.txt@@ -1,4 +1,4 @@-$4293dcc9 global-variables.js:4:5+$239d572f global-variables.js:4:5Registers: 9Blocks: 1Constants:@@ -10,10 +10,10 @@ block0:[ 1] Mov dst:reg5, src:Undefined[ 4] SetGlobal `x`, src:Int32(1)[ a] GetGlobal value_feedback:0, dst:reg6, `console`- [ 12] GetById value_feedback:1, dst:reg7, base:reg6, `log`- [ 1b] GetGlobal value_feedback:2, dst:reg8, `x`- [ 23] Call call_feedback:0, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]- [ 2b] End value:reg5+ [ 12] GetById dst:reg7, base:reg6, `log`+ [ 19] GetGlobal value_feedback:1, dst:reg8, `x`+ [ 21] Call call_feedback:0, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]+ [ 29] End value:reg51diff --git a/Tests/LibJS/Bytecode/expected/if-else-register-lifetime.txt b/Tests/LibJS/Bytecode/expected/if-else-register-lifetime.txtindex 8ad40704556..5e7dfdaaa6e 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:[ 22] End value:reg5-test$b8da68e2 if-else-register-lifetime.js:2:9+test$7db14ebe if-else-register-lifetime.js:2:9Registers: 7Blocks: 10Locals: a~0, i~1, j~2@@ -40,30 +40,30 @@ block2:block3:[ 2d] Add arith_feedback:1, dst:reg5, lhs:i~1, rhs:j~2- [ 33] GetByValue value_feedback:0, keyed_feedback:0, dst:reg5, base:arg0, property:reg5- [ 3d] PutByValue keyed_feedback:1, base:arg0, property:j~2, src:reg5, kind:Normal- [ 46] Jump target:block5+ [ 33] GetByValue keyed_feedback:0, dst:reg5, base:arg0, property:reg5+ [ 3b] PutByValue keyed_feedback:1, base:arg0, property:j~2, src:reg5, kind:Normal+ [ 44] Jump target:block5block4:- [ 4b] GetGlobal value_feedback:1, dst:reg5, `parseInt`- [ 53] SubRhsInt32 arith_feedback:2, dst:reg6, lhs:j~2, rhs:3- [ 5c] GetByValue value_feedback:2, keyed_feedback:2, dst:reg6, base:arg0, property:reg6- [ 66] Call call_feedback:0, dst:reg5, callee:reg5, this_value:Undefined, arguments:[reg6, Int32(1)]- [ 6f] PutByValue keyed_feedback:3, base:arg0, property:j~2, src:reg5, kind:Normal+ [ 49] GetGlobal value_feedback:0, dst:reg5, `parseInt`+ [ 51] SubRhsInt32 arith_feedback:2, dst:reg6, lhs:j~2, rhs:3+ [ 5a] GetByValue keyed_feedback:2, dst:reg6, base:arg0, property:reg6+ [ 62] Call call_feedback:0, dst:reg5, callee:reg5, this_value:Undefined, arguments:[reg6, Int32(1)]+ [ 6b] PutByValue keyed_feedback:3, base:arg0, property:j~2, src:reg5, kind:Normalblock5:- [ 78] Increment arith_feedback:3, dst:j~2+ [ 74] Increment arith_feedback:3, dst:j~2block6:- [ 7c] JumpLessThanLoopRhsInt32 arith_feedback:4, lhs:j~2, rhs:10, true_target:block2, false_target:block7+ [ 78] JumpLessThanLoopRhsInt32 arith_feedback:4, lhs:j~2, rhs:10, true_target:block2, false_target:block7block7:- [ 8c] Increment arith_feedback:5, dst:i~1+ [ 88] Increment arith_feedback:5, dst:i~1block8:- [ 90] JumpLessThanLoopRhsInt32 arith_feedback:6, lhs:i~1, rhs:10, true_target:block1, false_target:block9+ [ 8c] JumpLessThanLoopRhsInt32 arith_feedback:6, lhs:i~1, rhs:10, true_target:block1, false_target:block9block9:- [ a0] GetGlobal value_feedback:3, dst:reg5, `parseInt`- [ a8] Call call_feedback:1, dst:reg5, callee:reg5, this_value:Undefined, arguments:[a~0]- [ b0] Return value:reg5+ [ 9c] GetGlobal value_feedback:1, dst:reg5, `parseInt`+ [ a4] Call call_feedback:1, dst:reg5, callee:reg5, this_value:Undefined, arguments:[a~0]+ [ ac] Return value:reg5diff --git a/Tests/LibJS/Bytecode/expected/indexed-append-guards.txt b/Tests/LibJS/Bytecode/expected/indexed-append-guards.txtindex f4aa0bbe6a3..baea86fb29a 100644--- a/Tests/LibJS/Bytecode/expected/indexed-append-guards.txt+++ b/Tests/LibJS/Bytecode/expected/indexed-append-guards.txt@@ -1,4 +1,4 @@-$71767849 indexed-append-guards.js:1:1+$4fbc019f indexed-append-guards.js:1:1Registers: 10Blocks: 7Constants:@@ -18,63 +18,63 @@ block0:[ 1] Mov dst:reg5, src:Undefined[ 4] Mov dst:reg5, src:String("use strict")[ 7] GetGlobal value_feedback:0, dst:reg6, `Object`- [ f] GetById value_feedback:1, dst:reg7, base:reg6, `preventExtensions`- [ 18] NewObject dst:reg8- [ 1c] PutByValue keyed_feedback:0, base:reg8, property:Int32(0), src:Int32(1), kind:Own- [ 25] Call call_feedback:0, dst:reg6, callee:reg7, this_value:reg6, arguments:[reg8]- [ 2d] DynamicInitializeLexicalBinding `object`, src:reg6- [ 33] GetGlobal value_feedback:2, dst:reg6, `expect_type_error`- [ 3b] NewFunction dst:reg7, shared_function_data_index:0- [ 42] Call call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]- [ 4a] GetGlobal value_feedback:3, dst:reg6, `object`- [ 52] GetByValue value_feedback:4, keyed_feedback:1, dst:reg6, base:reg6, property:Int32(1)- [ 5c] StrictlyInequals arith_feedback:0, dst:reg6, lhs:reg6, rhs:Undefined- [ 62] Mov dst:reg5, src:Undefined- [ 65] JumpFalse condition:reg6, target:block2+ [ f] GetById dst:reg7, base:reg6, `preventExtensions`+ [ 16] NewObject dst:reg8+ [ 1a] PutByValue keyed_feedback:0, base:reg8, property:Int32(0), src:Int32(1), kind:Own+ [ 23] Call call_feedback:0, dst:reg6, callee:reg7, this_value:reg6, arguments:[reg8]+ [ 2b] DynamicInitializeLexicalBinding `object`, src:reg6+ [ 31] GetGlobal value_feedback:1, dst:reg6, `expect_type_error`+ [ 39] NewFunction dst:reg7, shared_function_data_index:0+ [ 40] Call call_feedback:1, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]+ [ 48] GetGlobal value_feedback:2, dst:reg6, `object`+ [ 50] GetByValue keyed_feedback:1, dst:reg6, base:reg6, property:Int32(1)+ [ 58] StrictlyInequals arith_feedback:0, dst:reg6, lhs:reg6, rhs:Undefined+ [ 5e] Mov dst:reg5, src:Undefined+ [ 61] JumpFalse condition:reg6, target:block2block1:- [ 6b] GetGlobal value_feedback:5, dst:reg6, `Error`- [ 73] CallConstruct call_feedback:2, dst:reg6, callee:reg6, arguments:[String("Indexed object append mutated")]- [ 7a] Throw src:reg6+ [ 67] GetGlobal value_feedback:3, dst:reg6, `Error`+ [ 6f] CallConstruct call_feedback:2, dst:reg6, callee:reg6, arguments:[String("Indexed object append mutated")]+ [ 76] Throw src:reg6block2:- [ 7c] NewPrimitiveArray dst:reg6, elements:[1, 2]- [ 92] DynamicInitializeLexicalBinding `array`, src:reg6- [ 98] GetGlobal value_feedback:6, dst:reg6, `Object`- [ a0] GetById value_feedback:7, dst:reg7, base:reg6, `defineProperty`- [ a9] GetGlobal value_feedback:8, dst:reg8, `array`- [ b1] NewObject dst:reg9- [ b5] InitObjectLiteralProperty object:reg9, `writable`, src:Bool(false), shape_cache_index:0, property_slot:0- [ be] CacheObjectShape object:reg9- [ c2] Call call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8, String("length"), reg9]- [ cc] GetGlobal value_feedback:9, dst:reg6, `expect_type_error`- [ d4] NewFunction dst:reg7, shared_function_data_index:1- [ db] Call call_feedback:4, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]- [ e3] GetGlobal value_feedback:10, dst:reg6, `array`- [ eb] GetLength value_feedback:11, keyed_feedback:2, dst:reg6, base:reg6- [ f4] StrictlyInequalsRhsInt32 arith_feedback:1, dst:reg6, lhs:reg6, rhs:2- [ fd] Mov dst:reg5, src:Undefined- [ 100] JumpFalse condition:reg6, target:block4+ [ 78] NewPrimitiveArray dst:reg6, elements:[1, 2]+ [ 8e] DynamicInitializeLexicalBinding `array`, src:reg6+ [ 94] GetGlobal value_feedback:4, dst:reg6, `Object`+ [ 9c] GetById dst:reg7, base:reg6, `defineProperty`+ [ a3] GetGlobal value_feedback:5, dst:reg8, `array`+ [ ab] NewObject dst:reg9+ [ af] InitObjectLiteralProperty object:reg9, `writable`, src:Bool(false), shape_cache_index:0, property_slot:0+ [ b8] CacheObjectShape object:reg9+ [ bc] Call call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8, String("length"), reg9]+ [ c6] GetGlobal value_feedback:6, dst:reg6, `expect_type_error`+ [ ce] NewFunction dst:reg7, shared_function_data_index:1+ [ d5] Call call_feedback:4, dst:reg5, callee:reg6, this_value:Undefined, arguments:[reg7]+ [ dd] GetGlobal value_feedback:7, dst:reg6, `array`+ [ e5] GetLength keyed_feedback:2, dst:reg6, base:reg6+ [ ec] StrictlyInequalsRhsInt32 arith_feedback:1, dst:reg6, lhs:reg6, rhs:2+ [ f5] Mov dst:reg5, src:Undefined+ [ f8] JumpFalse condition:reg6, target:block4block3:- [ 106] GetGlobal value_feedback:12, dst:reg6, `Error`- [ 10e] CallConstruct call_feedback:5, dst:reg6, callee:reg6, arguments:[String("Array length changed")]- [ 115] Throw src:reg6+ [ fe] GetGlobal value_feedback:8, dst:reg6, `Error`+ [ 106] CallConstruct call_feedback:5, dst:reg6, callee:reg6, arguments:[String("Array length changed")]+ [ 10d] Throw src:reg6block4:- [ 117] GetGlobal value_feedback:13, dst:reg6, `array`- [ 11f] GetByValue value_feedback:14, keyed_feedback:3, dst:reg6, base:reg6, property:Int32(2)- [ 129] StrictlyInequals arith_feedback:2, dst:reg6, lhs:reg6, rhs:Undefined- [ 12f] Mov dst:reg5, src:Undefined- [ 132] JumpFalse condition:reg6, target:block6+ [ 10f] GetGlobal value_feedback:9, dst:reg6, `array`+ [ 117] GetByValue keyed_feedback:3, dst:reg6, base:reg6, property:Int32(2)+ [ 11f] StrictlyInequals arith_feedback:2, dst:reg6, lhs:reg6, rhs:Undefined+ [ 125] Mov dst:reg5, src:Undefined+ [ 128] JumpFalse condition:reg6, target:block6block5:- [ 138] GetGlobal value_feedback:15, dst:reg6, `Error`- [ 140] CallConstruct call_feedback:6, dst:reg6, callee:reg6, arguments:[String("Array append mutated")]- [ 147] Throw src:reg6+ [ 12e] GetGlobal value_feedback:10, dst:reg6, `Error`+ [ 136] CallConstruct call_feedback:6, dst:reg6, callee:reg6, arguments:[String("Array append mutated")]+ [ 13d] Throw src:reg6block6:- [ 149] End value:reg5+ [ 13f] End value:reg5expect_type_error$f7cfafaa indexed-append-guards.js:4:9@@ -143,7 +143,7 @@ block0:[ 12] End value:Undefined-$16ee453f indexed-append-guards.js:26:5+$35e4cad9 indexed-append-guards.js:26:5Registers: 7Blocks: 1Constants:@@ -154,6 +154,6 @@ block0:[ 0] Enter[ 1] GetGlobal value_feedback:0, dst:reg5, `array`[ 9] GetGlobal value_feedback:1, dst:reg6, `array`- [ 11] GetLength value_feedback:2, keyed_feedback:0, dst:reg6, base:reg6- [ 1a] PutByValue keyed_feedback:1, base:reg5, property:reg6, src:Int32(3), kind:Normal- [ 23] End value:Undefined+ [ 11] GetLength keyed_feedback:0, dst:reg6, base:reg6+ [ 18] PutByValue keyed_feedback:1, base:reg5, property:reg6, src:Int32(3), kind:Normal+ [ 21] End value:Undefineddiff --git a/Tests/LibJS/Bytecode/expected/lexical-env-teardown.txt b/Tests/LibJS/Bytecode/expected/lexical-env-teardown.txtindex c29117cb049..1e87861662b 100644--- a/Tests/LibJS/Bytecode/expected/lexical-env-teardown.txt+++ b/Tests/LibJS/Bytecode/expected/lexical-env-teardown.txt@@ -1,4 +1,4 @@-$ae8568c3 lexical-env-teardown.js:13:1+$e6ea91d7 lexical-env-teardown.js:13:1Registers: 9Blocks: 1Constants:@@ -9,42 +9,42 @@ block0:[ 1] GetLexicalEnvironment dst:reg4[ 3] Mov dst:reg5, src:Undefined[ 6] GetGlobal value_feedback:0, dst:reg6, `console`- [ e] GetById value_feedback:1, dst:reg7, base:reg6, `log`- [ 17] GetGlobal value_feedback:2, dst:reg8, `withTeardown`- [ 1f] Call call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined- [ 26] Call call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]- [ 2e] GetGlobal value_feedback:3, dst:reg6, `console`- [ 36] GetById value_feedback:4, dst:reg7, base:reg6, `log`- [ 3f] GetGlobal value_feedback:5, dst:reg8, `blockTeardown`- [ 47] Call call_feedback:2, dst:reg8, callee:reg8, this_value:Undefined- [ 4e] Call call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]- [ 56] GetGlobal value_feedback:6, dst:reg6, `console`- [ 5e] GetById value_feedback:7, dst:reg7, base:reg6, `log`- [ 67] GetGlobal value_feedback:8, dst:reg8, `forInTeardown`- [ 6f] Call call_feedback:4, dst:reg8, callee:reg8, this_value:Undefined- [ 76] Call call_feedback:5, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]- [ 7e] GetGlobal value_feedback:9, dst:reg6, `console`- [ 86] GetById value_feedback:10, dst:reg7, base:reg6, `log`- [ 8f] GetGlobal value_feedback:11, dst:reg8, `forOfTeardown`- [ 97] Call call_feedback:6, dst:reg8, callee:reg8, this_value:Undefined- [ 9e] Call call_feedback:7, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]- [ a6] GetGlobal value_feedback:12, dst:reg6, `console`- [ ae] GetById value_feedback:13, dst:reg7, base:reg6, `log`- [ b7] GetGlobal value_feedback:14, dst:reg8, `catchTeardown`- [ bf] Call call_feedback:8, dst:reg8, callee:reg8, this_value:Undefined- [ c6] Call call_feedback:9, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]- [ ce] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false- [ da] CreateVariable `myName`, is_immutable:true, is_global:false, is_strict:false- [ e1] NewFunction dst:reg6, shared_function_data_index:0- [ e8] InitializeLexicalBinding `myName`, src:reg6- [ ef] SetLexicalEnvironment environment:reg4- [ f1] SetGlobal `namedFn`, src:reg6- [ f7] GetGlobal value_feedback:15, dst:reg6, `console`- [ ff] GetById value_feedback:16, dst:reg7, base:reg6, `log`- [ 108] GetGlobal value_feedback:17, dst:reg8, `namedFn`- [ 110] Call call_feedback:10, dst:reg8, callee:reg8, this_value:Undefined- [ 117] Call call_feedback:11, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]- [ 11f] End value:reg5+ [ e] GetById dst:reg7, base:reg6, `log`+ [ 15] GetGlobal value_feedback:1, dst:reg8, `withTeardown`+ [ 1d] Call call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined+ [ 24] Call call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]+ [ 2c] GetGlobal value_feedback:2, dst:reg6, `console`+ [ 34] GetById dst:reg7, base:reg6, `log`+ [ 3b] GetGlobal value_feedback:3, dst:reg8, `blockTeardown`+ [ 43] Call call_feedback:2, dst:reg8, callee:reg8, this_value:Undefined+ [ 4a] Call call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]+ [ 52] GetGlobal value_feedback:4, dst:reg6, `console`+ [ 5a] GetById dst:reg7, base:reg6, `log`+ [ 61] GetGlobal value_feedback:5, dst:reg8, `forInTeardown`+ [ 69] Call call_feedback:4, dst:reg8, callee:reg8, this_value:Undefined+ [ 70] Call call_feedback:5, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]+ [ 78] GetGlobal value_feedback:6, dst:reg6, `console`+ [ 80] GetById dst:reg7, base:reg6, `log`+ [ 87] GetGlobal value_feedback:7, dst:reg8, `forOfTeardown`+ [ 8f] Call call_feedback:6, dst:reg8, callee:reg8, this_value:Undefined+ [ 96] Call call_feedback:7, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]+ [ 9e] GetGlobal value_feedback:8, dst:reg6, `console`+ [ a6] GetById dst:reg7, base:reg6, `log`+ [ ad] GetGlobal value_feedback:9, dst:reg8, `catchTeardown`+ [ b5] Call call_feedback:8, dst:reg8, callee:reg8, this_value:Undefined+ [ bc] Call call_feedback:9, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]+ [ c4] CreateLexicalEnvironment dst:reg7, parent:reg4, capacity:1, is_catch_environment:false+ [ d0] CreateVariable `myName`, is_immutable:true, is_global:false, is_strict:false+ [ d7] NewFunction dst:reg6, shared_function_data_index:0+ [ de] InitializeLexicalBinding `myName`, src:reg6+ [ e5] SetLexicalEnvironment environment:reg4+ [ e7] SetGlobal `namedFn`, src:reg6+ [ ed] GetGlobal value_feedback:10, dst:reg6, `console`+ [ f5] GetById dst:reg7, base:reg6, `log`+ [ fc] GetGlobal value_feedback:11, dst:reg8, `namedFn`+ [ 104] Call call_feedback:10, dst:reg8, callee:reg8, this_value:Undefined+ [ 10b] Call call_feedback:11, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]+ [ 113] End value:reg5withTeardown$11399619 lexical-env-teardown.js:7:9diff --git a/Tests/LibJS/Bytecode/expected/mapped-arguments-parameter-bindings.txt b/Tests/LibJS/Bytecode/expected/mapped-arguments-parameter-bindings.txtindex 8585b2c9cba..cf1c05fe0dc 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:[ 16] End value:reg5-forward$2c6afecb mapped-arguments-parameter-bindings.js:2:5+forward$8c1280a9 mapped-arguments-parameter-bindings.js:2:5Registers: 7Blocks: 1Locals: arguments~0@@ -30,9 +30,9 @@ block0:[ 14] InitializeLexicalBinding `b`, src:Undefined[ 1b] SetLexicalBinding `b`, src:arg1[ 22] SetLexicalBinding `a`, src:arg2- [ 29] GetLength value_feedback:0, keyed_feedback:0, dst:reg5, base:arguments~0- [ 32] GetBinding value_feedback:1, dst:reg6, `a`- [ 3b] Add arith_feedback:0, dst:reg5, lhs:reg5, rhs:reg6- [ 41] GetBinding value_feedback:2, dst:reg6, `b`- [ 4a] Add arith_feedback:1, dst:reg5, lhs:reg5, rhs:reg6- [ 50] Return value:reg5+ [ 29] GetLength keyed_feedback:0, dst:reg5, base:arguments~0+ [ 30] GetBinding value_feedback:0, dst:reg6, `a`+ [ 39] Add arith_feedback:0, dst:reg5, lhs:reg5, rhs:reg6+ [ 3f] GetBinding value_feedback:1, dst:reg6, `b`+ [ 48] Add arith_feedback:1, dst:reg5, lhs:reg5, rhs:reg6+ [ 4e] Return value:reg5diff --git a/Tests/LibJS/Bytecode/expected/mov-merging.txt b/Tests/LibJS/Bytecode/expected/mov-merging.txtindex b1dcefbeecc..1322200d0c2 100644--- a/Tests/LibJS/Bytecode/expected/mov-merging.txt+++ b/Tests/LibJS/Bytecode/expected/mov-merging.txt@@ -1,4 +1,4 @@-$22c9f60c mov-merging.js:14:1+$e218f9c8 mov-merging.js:14:1Registers: 9Blocks: 1Constants:@@ -8,16 +8,16 @@ block0:[ 0] Enter[ 1] Mov dst:reg5, src:Undefined[ 4] GetGlobal value_feedback:0, dst:reg6, `console`- [ c] GetById value_feedback:1, dst:reg7, base:reg6, `log`- [ 15] GetGlobal value_feedback:2, dst:reg8, `twoLocals`- [ 1d] Call call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined- [ 24] Call call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]- [ 2c] GetGlobal value_feedback:3, dst:reg6, `console`- [ 34] GetById value_feedback:4, dst:reg7, base:reg6, `log`- [ 3d] GetGlobal value_feedback:5, dst:reg8, `threeLocals`- [ 45] Call call_feedback:2, dst:reg8, callee:reg8, this_value:Undefined- [ 4c] Call call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]- [ 54] End value:reg5+ [ c] GetById dst:reg7, base:reg6, `log`+ [ 13] GetGlobal value_feedback:1, dst:reg8, `twoLocals`+ [ 1b] Call call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined+ [ 22] Call call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]+ [ 2a] GetGlobal value_feedback:2, dst:reg6, `console`+ [ 32] GetById dst:reg7, base:reg6, `log`+ [ 39] GetGlobal value_feedback:3, dst:reg8, `threeLocals`+ [ 41] Call call_feedback:2, dst:reg8, callee:reg8, this_value:Undefined+ [ 48] Call call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]+ [ 50] End value:reg5twoLocals$488b742b mov-merging.js:2:9diff --git a/Tests/LibJS/Bytecode/expected/named-function-expression.txt b/Tests/LibJS/Bytecode/expected/named-function-expression.txtindex 0833f180575..4086c8e1c61 100644--- a/Tests/LibJS/Bytecode/expected/named-function-expression.txt+++ b/Tests/LibJS/Bytecode/expected/named-function-expression.txt@@ -1,4 +1,4 @@-$71d25cf4 named-function-expression.js:4:1+$d179ded2 named-function-expression.js:4:1Registers: 9Blocks: 4Constants:@@ -28,5 +28,5 @@ block2:block3:[ 4e] Mov dst:reg5, src:reg7[ 51] GetGlobal value_feedback:0, dst:reg6, `Oops`- [ 59] GetById value_feedback:1, dst:reg5, base:reg6, `x`- [ 62] End value:reg5+ [ 59] GetById dst:reg5, base:reg6, `x`+ [ 60] End value:reg5diff --git a/Tests/LibJS/Bytecode/expected/nested-function-decl-source-order.txt b/Tests/LibJS/Bytecode/expected/nested-function-decl-source-order.txtindex 84e2b588768..9ea8809416e 100644--- a/Tests/LibJS/Bytecode/expected/nested-function-decl-source-order.txt+++ b/Tests/LibJS/Bytecode/expected/nested-function-decl-source-order.txt@@ -1,4 +1,4 @@-$32ea2a64 nested-function-decl-source-order.js:15:1+$f2392e20 nested-function-decl-source-order.js:15:1Registers: 10Blocks: 1Constants:@@ -9,13 +9,13 @@ block0:[ 0] Enter[ 1] Mov dst:reg5, src:Undefined[ 4] GetGlobal value_feedback:0, dst:reg6, `console`- [ c] GetById value_feedback:1, dst:reg7, base:reg6, `log`- [ 15] GetGlobal value_feedback:2, dst:reg8, `outer`- [ 1d] Call call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined- [ 24] GetById value_feedback:3, dst:reg9, base:reg8, `join`- [ 2d] Call call_feedback:1, dst:reg8, callee:reg9, this_value:reg8, arguments:[String(",")]- [ 35] Call call_feedback:2, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]- [ 3d] End value:reg5+ [ c] GetById dst:reg7, base:reg6, `log`+ [ 13] GetGlobal value_feedback:1, dst:reg8, `outer`+ [ 1b] Call call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined+ [ 22] GetById dst:reg9, base:reg8, `join`+ [ 29] Call call_feedback:1, dst:reg8, callee:reg9, this_value:reg8, arguments:[String(",")]+ [ 31] Call call_feedback:2, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]+ [ 39] End value:reg5outer$6decd0f8 nested-function-decl-source-order.js:6:5diff --git a/Tests/LibJS/Bytecode/expected/nested-member-base-identifier.txt b/Tests/LibJS/Bytecode/expected/nested-member-base-identifier.txtindex b9f222eda0a..f142b70541c 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:[ 2a] End value:reg5-assign_nested$01476fc6 nested-member-base-identifier.js:6:8+assign_nested$60eef1a4 nested-member-base-identifier.js:6:8Registers: 6Blocks: 1Constants:@@ -27,6 +27,6 @@ assign_nested$01476fc6 nested-member-base-identifier.js:6:8block0:[ 0] Enter[ 1] SubRhsInt32 arith_feedback:0, dst:reg5, lhs:arg1, rhs:1- [ a] GetByValue value_feedback:0, keyed_feedback:0, dst:reg5, base:arg0, property:reg5- [ 14] PutById base:reg5, `shader`, src:Int32(0), kind:Normal- [ 1c] End value:Undefined+ [ a] GetByValue keyed_feedback:0, dst:reg5, base:arg0, property:reg5+ [ 12] PutById base:reg5, `shader`, src:Int32(0), kind:Normal+ [ 1a] End value:Undefineddiff --git a/Tests/LibJS/Bytecode/expected/nested-try-finally-continue.txt b/Tests/LibJS/Bytecode/expected/nested-try-finally-continue.txtindex 94c5f518dee..4e9d2cc3528 100644--- a/Tests/LibJS/Bytecode/expected/nested-try-finally-continue.txt+++ b/Tests/LibJS/Bytecode/expected/nested-try-finally-continue.txt@@ -12,7 +12,7 @@ block0:[ 13] End value:reg5-nestedTryFinallyContinue$d9171ead nested-try-finally-continue.js:2:10+nestedTryFinallyContinue$170429e1 nested-try-finally-continue.js:2:10Registers: 11Blocks: 18Locals: i~0@@ -46,55 +46,55 @@ block4:block5:[ 30] GetGlobal value_feedback:1, dst:reg9, `console`- [ 38] GetById value_feedback:2, dst:reg10, base:reg9, `log`- [ 41] Call call_feedback:0, dst:reg9, callee:reg10, this_value:reg9, arguments:[String("inner"), i~0]- [ 4a] JumpStrictlyEqualsRhsInt32 arith_feedback:1, lhs:reg7, rhs:0, true_target:block9, false_target:block6+ [ 38] GetById dst:reg10, base:reg9, `log`+ [ 3f] Call call_feedback:0, dst:reg9, callee:reg10, this_value:reg9, arguments:[String("inner"), i~0]+ [ 48] JumpStrictlyEqualsRhsInt32 arith_feedback:1, lhs:reg7, rhs:0, true_target:block9, false_target:block6block6:- [ 5a] JumpStrictlyEqualsRhsInt32 arith_feedback:2, lhs:reg7, rhs:2, true_target:block7, false_target:block8+ [ 58] JumpStrictlyEqualsRhsInt32 arith_feedback:2, lhs:reg7, rhs:2, true_target:block7, false_target:block8block7:- [ 6a] Mov dst:reg5, src:Int32(2)- [ 6d] Jump target:block11+ [ 68] Mov dst:reg5, src:Int32(2)+ [ 6b] Jump target:block11block8:- [ 72] Throw src:reg8+ [ 70] Throw src:reg8block9:- [ 74] Mov dst:reg5, src:Int32(0)- [ 77] Jump target:block11+ [ 72] Mov dst:reg5, src:Int32(0)+ [ 75] Jump target:block11block10:- [ 7c] Catch value_feedback:3, dst:reg6- [ 80] Mov dst:reg5, src:Int32(1)+ [ 7a] Catch value_feedback:2, dst:reg6+ [ 7e] Mov dst:reg5, src:Int32(1)block11:- [ 83] GetGlobal value_feedback:4, dst:reg7, `console`- [ 8b] GetById value_feedback:5, dst:reg8, base:reg7, `log`- [ 94] Call call_feedback:1, dst:reg7, callee:reg8, this_value:reg7, arguments:[String("outer"), i~0]- [ 9d] JumpStrictlyEqualsRhsInt32 arith_feedback:3, lhs:reg5, rhs:0, true_target:block15, false_target:block12+ [ 81] GetGlobal value_feedback:3, dst:reg7, `console`+ [ 89] GetById dst:reg8, base:reg7, `log`+ [ 90] Call call_feedback:1, dst:reg7, callee:reg8, this_value:reg7, arguments:[String("outer"), i~0]+ [ 99] JumpStrictlyEqualsRhsInt32 arith_feedback:3, lhs:reg5, rhs:0, true_target:block15, false_target:block12block12:- [ ad] JumpStrictlyEqualsRhsInt32 arith_feedback:4, lhs:reg5, rhs:2, true_target:block13, false_target:block14+ [ a9] JumpStrictlyEqualsRhsInt32 arith_feedback:4, lhs:reg5, rhs:2, true_target:block13, false_target:block14block13:- [ bd] Jump target:block15+ [ b9] Jump target:block15block14:- [ c2] Throw src:reg6+ [ be] Throw src:reg6block15:- [ c4] Increment arith_feedback:5, dst:i~0+ [ c0] Increment arith_feedback:5, dst:i~0block16:- [ c8] JumpLessThanLoopRhsInt32 arith_feedback:6, lhs:i~0, rhs:3, true_target:block1, false_target:block17+ [ c4] JumpLessThanLoopRhsInt32 arith_feedback:6, lhs:i~0, rhs:3, true_target:block1, false_target:block17block17:- [ d8] End value:Undefined+ [ d4] End value:UndefinedException handlers:[ 9 .. 29] => handler block4- [ 29 .. 7c] => handler block10+ [ 29 .. 7a] => handler block10"inner" 0diff --git a/Tests/LibJS/Bytecode/expected/numeric-class-field-name.txt b/Tests/LibJS/Bytecode/expected/numeric-class-field-name.txtindex bef08888cac..bc385e6e335 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 @@-$ae69db66 numeric-class-field-name.js:1:1+$f1dec8ba numeric-class-field-name.js:1:1Registers: 8Blocks: 1Constants:@@ -16,9 +16,9 @@ block0:[ 2a] DynamicInitializeLexicalBinding `C`, src:reg6[ 30] GetGlobal value_feedback:0, dst:reg6, `C`[ 38] CallConstruct call_feedback:0, dst:reg6, callee:reg6- [ 3e] GetByValue value_feedback:1, keyed_feedback:0, dst:reg6, base:reg6, property:Int32(42)- [ 48] GetById value_feedback:2, dst:reg5, base:reg6, `name`- [ 51] End value:reg5+ [ 3e] GetByValue keyed_feedback:0, dst:reg6, base:reg6, property:Int32(42)+ [ 46] GetById dst:reg5, base:reg6, `name`+ [ 4d] 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 65e386aff87..3196202140c 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 @@-$e9d48364 numeric-getter-no-lhs-name.js:1:5+$497c0542 numeric-getter-no-lhs-name.js:1:5Registers: 8Blocks: 1Constants:@@ -13,9 +13,9 @@ block0:[ f] PutByValue keyed_feedback:0, base:reg6, property:Int32(0), src:reg7, kind:Getter[ 18] SetGlobal `obj`, src:reg6[ 1e] GetGlobal value_feedback:0, dst:reg6, `obj`- [ 26] GetByValue value_feedback:1, keyed_feedback:1, dst:reg6, base:reg6, property:Int32(0)- [ 30] Mov dst:reg5, src:reg6- [ 33] End value:reg5+ [ 26] GetByValue keyed_feedback:1, dst:reg6, base:reg6, property:Int32(0)+ [ 2e] Mov dst:reg5, src:reg6+ [ 31] End value:reg5get 0$1dbd230a numeric-getter-no-lhs-name.js:3:9diff --git a/Tests/LibJS/Bytecode/expected/object-destructuring-rebinds-source-variable.txt b/Tests/LibJS/Bytecode/expected/object-destructuring-rebinds-source-variable.txtindex 48e6e367572..6b5ceb9a40f 100644--- a/Tests/LibJS/Bytecode/expected/object-destructuring-rebinds-source-variable.txt+++ b/Tests/LibJS/Bytecode/expected/object-destructuring-rebinds-source-variable.txt@@ -1,4 +1,4 @@-$b06459b3 object-destructuring-rebinds-source-variable.js:5:1+$100bdb91 object-destructuring-rebinds-source-variable.js:5:1Registers: 10Blocks: 1Constants:@@ -11,19 +11,19 @@ block0:[ 0] Enter[ 1] Mov dst:reg5, src:Undefined[ 4] GetGlobal value_feedback:0, dst:reg6, `console`- [ c] GetById value_feedback:1, dst:reg7, base:reg6, `log`- [ 15] GetGlobal value_feedback:2, dst:reg8, `run`- [ 1d] NewObject dst:reg9- [ 21] InitObjectLiteralProperty object:reg9, `first`, src:Int32(1), shape_cache_index:0, property_slot:0- [ 2a] InitObjectLiteralProperty object:reg9, `second`, src:Int32(2), shape_cache_index:0, property_slot:1- [ 33] InitObjectLiteralProperty object:reg9, `third`, src:Int32(3), shape_cache_index:0, property_slot:2- [ 3c] CacheObjectShape object:reg9- [ 40] Call call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined, arguments:[reg9]- [ 48] Call call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]- [ 50] End value:reg5+ [ c] GetById dst:reg7, base:reg6, `log`+ [ 13] GetGlobal value_feedback:1, dst:reg8, `run`+ [ 1b] NewObject dst:reg9+ [ 1f] InitObjectLiteralProperty object:reg9, `first`, src:Int32(1), shape_cache_index:0, property_slot:0+ [ 28] InitObjectLiteralProperty object:reg9, `second`, src:Int32(2), shape_cache_index:0, property_slot:1+ [ 31] InitObjectLiteralProperty object:reg9, `third`, src:Int32(3), shape_cache_index:0, property_slot:2+ [ 3a] CacheObjectShape object:reg9+ [ 3e] Call call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined, arguments:[reg9]+ [ 46] Call call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]+ [ 4e] End value:reg5-run$214f6a7c object-destructuring-rebinds-source-variable.js:2:5+run$80f6ec5a object-destructuring-rebinds-source-variable.js:2:5Registers: 7Blocks: 1Locals: first~0, third~1@@ -36,11 +36,11 @@ block0:[ 4] Mov dst:third~1, src:Undefined[ 7] ThrowIfNullish src:arg0[ 9] Mov dst:reg5, src:arg0- [ c] GetById value_feedback:0, dst:first~0, base:reg5, `first`- [ 15] GetById value_feedback:1, dst:arg0, base:reg5, `second`- [ 1e] GetById value_feedback:2, dst:third~1, base:reg5, `third`- [ 27] NewArray dst:reg5, elements:[first~0, arg0, third~1]- [ 2d] Return value:reg5+ [ c] GetById dst:first~0, base:reg5, `first`+ [ 13] GetById dst:arg0, base:reg5, `second`+ [ 1a] GetById dst:third~1, base:reg5, `third`+ [ 21] NewArray dst:reg5, elements:[first~0, arg0, third~1]+ [ 27] Return value:reg5Array [1, 2, 3]diff --git a/Tests/LibJS/Bytecode/expected/object-rest-computed-key.txt b/Tests/LibJS/Bytecode/expected/object-rest-computed-key.txtindex 0ac8693ed5c..616a5c0f48e 100644--- a/Tests/LibJS/Bytecode/expected/object-rest-computed-key.txt+++ b/Tests/LibJS/Bytecode/expected/object-rest-computed-key.txt@@ -1,4 +1,4 @@-$13dacd3e object-rest-computed-key.js:1:5+$73824f1c object-rest-computed-key.js:1:5Registers: 10Blocks: 1Constants:@@ -18,8 +18,8 @@ block0:[ 24] ThrowIfNullish src:reg6[ 26] GetGlobal value_feedback:0, dst:reg7, `a`[ 2e] ToPrimitiveWithStringHint dst:reg8, value:reg7- [ 31] GetByValue value_feedback:1, keyed_feedback:0, dst:reg9, base:reg6, property:reg8- [ 3b] SetGlobal `b`, src:reg9- [ 41] CopyObjectExcludingProperties dst:reg9, from_object:reg6, excluded_names_are_in_array:false, excluded_names:[reg8]- [ 47] SetGlobal `rest`, src:reg9- [ 4d] End value:reg5+ [ 31] GetByValue keyed_feedback:0, dst:reg9, base:reg6, property:reg8+ [ 39] SetGlobal `b`, src:reg9+ [ 3f] CopyObjectExcludingProperties dst:reg9, from_object:reg6, excluded_names_are_in_array:false, excluded_names:[reg8]+ [ 45] SetGlobal `rest`, src:reg9+ [ 4b] End value:reg5diff --git a/Tests/LibJS/Bytecode/expected/optional-chain-base-identifier.txt b/Tests/LibJS/Bytecode/expected/optional-chain-base-identifier.txtindex 0dbbce51098..a9e109a6a10 100644--- a/Tests/LibJS/Bytecode/expected/optional-chain-base-identifier.txt+++ b/Tests/LibJS/Bytecode/expected/optional-chain-base-identifier.txt@@ -1,4 +1,4 @@-$70be5e0c optional-chain-base-identifier.js:1:5+$300d61c8 optional-chain-base-identifier.js:1:5Registers: 8Blocks: 4Constants:@@ -16,16 +16,16 @@ block0:[ 22] CacheObjectShape object:reg6[ 26] SetGlobal `obj`, src:reg6[ 2c] GetGlobal value_feedback:0, dst:reg6, `obj`- [ 34] GetById value_feedback:1, dst:reg6, base:reg6, `a`- [ 3d] JumpNullish condition:reg6, true_target:block2, false_target:block1+ [ 34] GetById dst:reg6, base:reg6, `a`+ [ 3b] JumpNullish condition:reg6, true_target:block2, false_target:block1block1:- [ 47] GetById value_feedback:2, dst:reg6, base:reg6, `b`- [ 50] Jump target:block3+ [ 45] GetById dst:reg6, base:reg6, `b`+ [ 4c] Jump target:block3block2:- [ 55] Mov dst:reg6, src:Undefined+ [ 51] Mov dst:reg6, src:Undefinedblock3:- [ 58] Mov dst:reg5, src:reg6- [ 5b] End value:reg5+ [ 54] Mov dst:reg5, src:reg6+ [ 57] End value:reg5diff --git a/Tests/LibJS/Bytecode/expected/optional-chain.txt b/Tests/LibJS/Bytecode/expected/optional-chain.txtindex d166dda8bec..503cd164372 100644--- a/Tests/LibJS/Bytecode/expected/optional-chain.txt+++ b/Tests/LibJS/Bytecode/expected/optional-chain.txt@@ -23,7 +23,7 @@ block0:[ 64] End value:reg5-member$d8eb456e optional-chain.js:7:5+member$7ecba5b0 optional-chain.js:7:5Registers: 7Blocks: 4Constants:@@ -35,17 +35,17 @@ block0:[ 4] JumpNullish condition:reg5, true_target:block2, false_target:block1block1:- [ e] GetById value_feedback:0, dst:reg6, base:reg5, `x`- [ 17] Jump target:block3+ [ e] GetById dst:reg6, base:reg5, `x`+ [ 15] Jump target:block3block2:- [ 1c] Mov dst:reg6, src:Undefined+ [ 1a] Mov dst:reg6, src:Undefinedblock3:- [ 1f] Return value:reg6+ [ 1d] Return value:reg6-nested_member$587ba4c4 optional-chain.js:10:5+nested_member$17caa880 optional-chain.js:10:5Registers: 7Blocks: 5Constants:@@ -57,21 +57,21 @@ block0:[ 4] JumpNullish condition:reg5, true_target:block3, false_target:block1block1:- [ e] GetById value_feedback:0, dst:reg6, base:reg5, `x`- [ 17] JumpNullish condition:reg6, true_target:block3, false_target:block2+ [ e] GetById dst:reg6, base:reg5, `x`+ [ 15] JumpNullish condition:reg6, true_target:block3, false_target:block2block2:- [ 21] GetById value_feedback:1, dst:reg6, base:reg6, `y`- [ 2a] Jump target:block4+ [ 1f] GetById dst:reg6, base:reg6, `y`+ [ 26] Jump target:block4block3:- [ 2f] Mov dst:reg6, src:Undefined+ [ 2b] Mov dst:reg6, src:Undefinedblock4:- [ 32] Return value:reg6+ [ 2e] Return value:reg6-call_no_args$5a810eb9 optional-chain.js:13:5+call_no_args$ba289097 optional-chain.js:13:5Registers: 7Blocks: 4Constants:@@ -83,18 +83,18 @@ block0:[ 4] JumpNullish condition:reg5, true_target:block2, false_target:block1block1:- [ e] GetById value_feedback:0, dst:reg6, base:reg5, `foo`- [ 17] Call call_feedback:0, dst:reg6, callee:reg6, this_value:reg5- [ 1e] Jump target:block3+ [ e] GetById dst:reg6, base:reg5, `foo`+ [ 15] Call call_feedback:0, dst:reg6, callee:reg6, this_value:reg5+ [ 1c] Jump target:block3block2:- [ 23] Mov dst:reg6, src:Undefined+ [ 21] Mov dst:reg6, src:Undefinedblock3:- [ 26] Return value:reg6+ [ 24] Return value:reg6-call_with_args$e5a8a59c optional-chain.js:16:5+call_with_args$860123be optional-chain.js:16:5Registers: 7Blocks: 4Constants:@@ -109,18 +109,18 @@ block0:[ 4] JumpNullish condition:reg5, true_target:block2, false_target:block1block1:- [ e] GetById value_feedback:0, dst:reg6, base:reg5, `foo`- [ 17] Call call_feedback:0, dst:reg6, callee:reg6, this_value:reg5, arguments:[Int32(1), Int32(2), Int32(3)]- [ 21] Jump target:block3+ [ e] GetById dst:reg6, base:reg5, `foo`+ [ 15] Call call_feedback:0, dst:reg6, callee:reg6, this_value:reg5, arguments:[Int32(1), Int32(2), Int32(3)]+ [ 1f] Jump target:block3block2:- [ 26] Mov dst:reg6, src:Undefined+ [ 24] Mov dst:reg6, src:Undefinedblock3:- [ 29] Return value:reg6+ [ 27] Return value:reg6-computed$f770639b optional-chain.js:19:5+computed$13a2f825 optional-chain.js:19:5Registers: 7Blocks: 4Constants:@@ -132,17 +132,17 @@ block0:[ 4] JumpNullish condition:reg5, true_target:block2, false_target:block1block1:- [ e] GetById value_feedback:0, dst:reg6, base:reg5, `hello`- [ 17] Jump target:block3+ [ e] GetById dst:reg6, base:reg5, `hello`+ [ 15] Jump target:block3block2:- [ 1c] Mov dst:reg6, src:Undefined+ [ 1a] Mov dst:reg6, src:Undefinedblock3:- [ 1f] Return value:reg6+ [ 1d] Return value:reg6-member_then_call$553c5072 optional-chain.js:22:5+member_then_call$148b542e optional-chain.js:22:5Registers: 8Blocks: 4Constants:@@ -154,13 +154,13 @@ block0:[ 4] JumpNullish condition:reg5, true_target:block2, false_target:block1block1:- [ e] GetById value_feedback:0, dst:reg6, base:reg5, `x`- [ 17] GetById value_feedback:1, dst:reg7, base:reg6, `foo`- [ 20] Call call_feedback:0, dst:reg6, callee:reg7, this_value:reg6- [ 27] Jump target:block3+ [ e] GetById dst:reg6, base:reg5, `x`+ [ 15] GetById dst:reg7, base:reg6, `foo`+ [ 1c] Call call_feedback:0, dst:reg6, callee:reg7, this_value:reg6+ [ 23] Jump target:block3block2:- [ 2c] Mov dst:reg6, src:Undefined+ [ 28] Mov dst:reg6, src:Undefinedblock3:- [ 2f] Return value:reg6+ [ 2b] Return value:reg6diff --git a/Tests/LibJS/Bytecode/expected/parameter-environment-capacity.txt b/Tests/LibJS/Bytecode/expected/parameter-environment-capacity.txtindex 6290a8f502b..dd95adc6fbf 100644--- a/Tests/LibJS/Bytecode/expected/parameter-environment-capacity.txt+++ b/Tests/LibJS/Bytecode/expected/parameter-environment-capacity.txt@@ -1,4 +1,4 @@-$be6404d1 parameter-environment-capacity.js:10:1+$5ebc82f3 parameter-environment-capacity.js:10:1Registers: 8Blocks: 1Constants:@@ -18,9 +18,9 @@ block0:[ 38] Call call_feedback:0, dst:reg5, callee:reg6, this_value:Undefined[ 3f] GetGlobal value_feedback:1, dst:reg6, `Strict`[ 47] CallConstruct call_feedback:1, dst:reg6, callee:reg6- [ 4d] GetById value_feedback:2, dst:reg7, base:reg6, `method`- [ 56] Call call_feedback:2, dst:reg5, callee:reg7, this_value:reg6- [ 5d] End value:reg5+ [ 4d] GetById dst:reg7, base:reg6, `method`+ [ 54] Call call_feedback:2, dst:reg5, callee:reg7, this_value:reg6+ [ 5b] End value:reg5sloppy$0d97b869 parameter-environment-capacity.js:6:17diff --git a/Tests/LibJS/Bytecode/expected/postfix-increment-private-member.txt b/Tests/LibJS/Bytecode/expected/postfix-increment-private-member.txtindex 0ebce5f95fd..08bb2b2d5b2 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 @@-$bde51e33 postfix-increment-private-member.js:1:1+$1d8ca011 postfix-increment-private-member.js:1:1Registers: 8Blocks: 1Constants:@@ -19,9 +19,9 @@ block0:[ 30] DynamicInitializeLexicalBinding `C`, src:reg6[ 36] GetGlobal value_feedback:0, dst:reg6, `C`[ 3e] CallConstruct call_feedback:0, dst:reg6, callee:reg6- [ 44] GetById value_feedback:1, dst:reg7, base:reg6, `nextId`- [ 4d] Call call_feedback:1, dst:reg5, callee:reg7, this_value:reg6- [ 54] End value:reg5+ [ 44] GetById dst:reg7, base:reg6, `nextId`+ [ 4b] Call call_feedback:1, dst:reg5, callee:reg7, this_value:reg6+ [ 52] End value:reg5C$16234245diff --git a/Tests/LibJS/Bytecode/expected/private-logical-assignment-register-order.txt b/Tests/LibJS/Bytecode/expected/private-logical-assignment-register-order.txtindex d3d353f13d0..a39b7d76004 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 @@-$bde51e33 private-logical-assignment-register-order.js:1:1+$1d8ca011 private-logical-assignment-register-order.js:1:1Registers: 8Blocks: 1Constants:@@ -19,9 +19,9 @@ block0:[ 30] DynamicInitializeLexicalBinding `C`, src:reg6[ 36] GetGlobal value_feedback:0, dst:reg6, `C`[ 3e] CallConstruct call_feedback:0, dst:reg6, callee:reg6- [ 44] GetById value_feedback:1, dst:reg7, base:reg6, `f`- [ 4d] Call call_feedback:1, dst:reg5, callee:reg7, this_value:reg6- [ 54] End value:reg5+ [ 44] GetById dst:reg7, base:reg6, `f`+ [ 4b] Call call_feedback:1, dst:reg5, callee:reg7, this_value:reg6+ [ 52] 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 b7d79d5df38..4ae166a92ad 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 @@-$bde51e33 private-method-call-description.js:1:1+$1d8ca011 private-method-call-description.js:1:1Registers: 8Blocks: 1Constants:@@ -19,9 +19,9 @@ block0:[ 30] DynamicInitializeLexicalBinding `C`, src:reg6[ 36] GetGlobal value_feedback:0, dst:reg6, `C`[ 3e] CallConstruct call_feedback:0, dst:reg6, callee:reg6- [ 44] GetById value_feedback:1, dst:reg7, base:reg6, `call`- [ 4d] Call call_feedback:1, dst:reg5, callee:reg7, this_value:reg6- [ 54] End value:reg5+ [ 44] GetById dst:reg7, base:reg6, `call`+ [ 4b] Call call_feedback:1, dst:reg5, callee:reg7, this_value:reg6+ [ 52] End value:reg5C$16234245diff --git a/Tests/LibJS/Bytecode/expected/regex-literals.txt b/Tests/LibJS/Bytecode/expected/regex-literals.txtindex 7dfb9478673..b4cc2b90181 100644--- a/Tests/LibJS/Bytecode/expected/regex-literals.txt+++ b/Tests/LibJS/Bytecode/expected/regex-literals.txt@@ -20,13 +20,13 @@ block0:[ 41] End value:reg5-matchDigits$b6792a2d regex-literals.js:8:5+matchDigits$56d1a84f regex-literals.js:8:5Registers: 7Blocks: 1block0:[ 0] Enter[ 1] NewRegExp dst:reg5, \d+, g- [ 7] GetById value_feedback:0, dst:reg6, base:reg5, `test`- [ 10] Call call_feedback:0, dst:reg5, callee:reg6, this_value:reg5, arguments:[arg0]- [ 18] Return value:reg5+ [ 7] GetById dst:reg6, base:reg5, `test`+ [ e] Call call_feedback:0, dst:reg5, callee:reg6, this_value:reg5, arguments:[arg0]+ [ 16] Return value:reg5diff --git a/Tests/LibJS/Bytecode/expected/resolve-this-caching.txt b/Tests/LibJS/Bytecode/expected/resolve-this-caching.txtindex b480dc5a92f..21fd93b219f 100644--- a/Tests/LibJS/Bytecode/expected/resolve-this-caching.txt+++ b/Tests/LibJS/Bytecode/expected/resolve-this-caching.txt@@ -25,14 +25,14 @@ block0:[ f] Return value:reg5-$5e047326 resolve-this-caching.js:2:13+$1d5376e2 resolve-this-caching.js:2:13Registers: 7Blocks: 1block0:[ 0] Enter[ 1] ResolveThisBinding- [ 2] GetById value_feedback:0, dst:reg5, base:this, `x`- [ b] GetById value_feedback:1, dst:reg6, base:this, `y`- [ 14] Add arith_feedback:0, dst:reg5, lhs:reg5, rhs:reg6- [ 1a] Return value:reg5+ [ 2] GetById dst:reg5, base:this, `x`+ [ 9] GetById dst:reg6, base:this, `y`+ [ 10] Add arith_feedback:0, dst:reg5, lhs:reg5, rhs:reg6+ [ 16] Return value:reg5diff --git a/Tests/LibJS/Bytecode/expected/sequential-try-blocks.txt b/Tests/LibJS/Bytecode/expected/sequential-try-blocks.txtindex e7c3a4dc118..c5ab97eaac0 100644--- a/Tests/LibJS/Bytecode/expected/sequential-try-blocks.txt+++ b/Tests/LibJS/Bytecode/expected/sequential-try-blocks.txt@@ -1,4 +1,4 @@-$8059ecfb sequential-try-blocks.js:17:1+$e0016ed9 sequential-try-blocks.js:17:1Registers: 9Blocks: 1Constants:@@ -8,11 +8,11 @@ block0:[ 0] Enter[ 1] Mov dst:reg5, src:Undefined[ 4] GetGlobal value_feedback:0, dst:reg6, `console`- [ c] GetById value_feedback:1, dst:reg7, base:reg6, `log`- [ 15] GetGlobal value_feedback:2, dst:reg8, `sequentialTryCatch`- [ 1d] Call call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined- [ 24] Call call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]- [ 2c] End value:reg5+ [ c] GetById dst:reg7, base:reg6, `log`+ [ 13] GetGlobal value_feedback:1, dst:reg8, `sequentialTryCatch`+ [ 1b] Call call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined+ [ 22] Call call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]+ [ 2a] End value:reg5sequentialTryCatch$c611d865 sequential-try-blocks.js:2:9diff --git a/Tests/LibJS/Bytecode/expected/super-computed-eval-order.txt b/Tests/LibJS/Bytecode/expected/super-computed-eval-order.txtindex 9e189a732c4..cddd3e1a10a 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 @@-$417fdde1 super-computed-eval-order.js:1:1+$22895847 super-computed-eval-order.js:1:1Registers: 11Blocks: 1Constants:@@ -23,9 +23,9 @@ block0:[ 5e] DynamicInitializeLexicalBinding `Derived`, src:reg6[ 64] GetGlobal value_feedback:1, dst:reg6, `Derived`[ 6c] CallConstruct call_feedback:0, dst:reg6, callee:reg6- [ 72] GetById value_feedback:2, dst:reg7, base:reg6, `test`- [ 7b] Call call_feedback:1, dst:reg5, callee:reg7, this_value:reg6- [ 82] End value:reg5+ [ 72] GetById dst:reg7, base:reg6, `test`+ [ 79] Call call_feedback:1, dst:reg5, callee:reg7, this_value:reg6+ [ 80] End value:reg5Derived$691b5ec5 super-computed-eval-order.js:4:14diff --git a/Tests/LibJS/Bytecode/expected/super-evaluation-order.txt b/Tests/LibJS/Bytecode/expected/super-evaluation-order.txtindex 9fcaade986d..9484287319b 100644--- a/Tests/LibJS/Bytecode/expected/super-evaluation-order.txt+++ b/Tests/LibJS/Bytecode/expected/super-evaluation-order.txt@@ -1,4 +1,4 @@-$b0a2a28c super-evaluation-order.js:1:1+$cf992826 super-evaluation-order.js:1:1Registers: 11Blocks: 1Constants:@@ -20,17 +20,17 @@ block0:[ 37] DynamicInitializeLexicalBinding `A`, src:reg6[ 3d] GetGlobal value_feedback:1, dst:reg6, `A`[ 45] CallConstruct call_feedback:0, dst:reg6, callee:reg6- [ 4b] GetById value_feedback:2, dst:reg7, base:reg6, `read`- [ 54] Call call_feedback:1, dst:reg5, callee:reg7, this_value:reg6- [ 5b] GetGlobal value_feedback:3, dst:reg6, `A`- [ 63] CallConstruct call_feedback:2, dst:reg6, callee:reg6- [ 69] GetById value_feedback:4, dst:reg7, base:reg6, `write`- [ 72] Call call_feedback:3, dst:reg5, callee:reg7, this_value:reg6- [ 79] GetGlobal value_feedback:5, dst:reg6, `A`- [ 81] CallConstruct call_feedback:4, dst:reg6, callee:reg6- [ 87] GetById value_feedback:6, dst:reg7, base:reg6, `update`- [ 90] Call call_feedback:5, dst:reg5, callee:reg7, this_value:reg6- [ 97] End value:reg5+ [ 4b] GetById dst:reg7, base:reg6, `read`+ [ 52] Call call_feedback:1, dst:reg5, callee:reg7, this_value:reg6+ [ 59] GetGlobal value_feedback:2, dst:reg6, `A`+ [ 61] CallConstruct call_feedback:2, dst:reg6, callee:reg6+ [ 67] GetById dst:reg7, base:reg6, `write`+ [ 6e] Call call_feedback:3, dst:reg5, callee:reg7, this_value:reg6+ [ 75] GetGlobal value_feedback:3, dst:reg6, `A`+ [ 7d] CallConstruct call_feedback:4, dst:reg6, callee:reg6+ [ 83] GetById dst:reg7, base:reg6, `update`+ [ 8a] Call call_feedback:5, dst:reg5, callee:reg7, this_value:reg6+ [ 91] End value:reg5A$53ad7806 super-evaluation-order.js:1:1@@ -45,7 +45,7 @@ block0:[ 10] Return value:reg7-read$583be815 super-evaluation-order.js:3:9+read$3c09538b super-evaluation-order.js:3:9Registers: 7Blocks: 1@@ -53,8 +53,8 @@ block0:[ 0] Enter[ 1] ResolveThisBinding[ 2] ResolveSuperBase dst:reg5- [ 4] GetByIdWithThis value_feedback:0, dst:reg6, base:reg5, `x`, this_value:this- [ e] Return value:reg6+ [ 4] GetByIdWithThis dst:reg6, base:reg5, `x`, this_value:this+ [ c] Return value:reg6write$0612a9e8 super-evaluation-order.js:6:9@@ -72,7 +72,7 @@ block0:[ d] End value:Undefined-update$e106d9aa super-evaluation-order.js:9:9+update$40ae5b88 super-evaluation-order.js:9:9Registers: 8Blocks: 1Constants:@@ -82,7 +82,7 @@ block0:[ 0] Enter[ 1] ResolveThisBinding[ 2] ResolveSuperBase dst:reg5- [ 4] GetByIdWithThis value_feedback:0, dst:reg6, base:reg5, `x`, this_value:this- [ e] PostfixIncrement arith_feedback:0, dst:reg7, src:reg6- [ 13] PutByIdWithThis base:reg5, this_value:this, `x`, src:reg6, kind:Normal- [ 1c] End value:Undefined+ [ 4] GetByIdWithThis dst:reg6, base:reg5, `x`, this_value:this+ [ c] PostfixIncrement arith_feedback:0, dst:reg7, src:reg6+ [ 11] PutByIdWithThis base:reg5, this_value:this, `x`, src:reg6, kind:Normal+ [ 1a] End value:Undefineddiff --git a/Tests/LibJS/Bytecode/expected/super-length-access.txt b/Tests/LibJS/Bytecode/expected/super-length-access.txtindex e5d9595103a..231bfcc92f1 100644--- a/Tests/LibJS/Bytecode/expected/super-length-access.txt+++ b/Tests/LibJS/Bytecode/expected/super-length-access.txt@@ -1,4 +1,4 @@-$6c2d6e32 super-length-access.js:3:1+$0c85ec54 super-length-access.js:3:1Registers: 11Blocks: 1Constants:@@ -24,9 +24,9 @@ block0:[ 5f] DynamicInitializeLexicalBinding `B`, src:reg6[ 65] GetGlobal value_feedback:1, dst:reg6, `B`[ 6d] CallConstruct call_feedback:0, dst:reg6, callee:reg6- [ 73] GetById value_feedback:2, dst:reg7, base:reg6, `m`- [ 7c] Call call_feedback:1, dst:reg5, callee:reg7, this_value:reg6- [ 83] End value:reg5+ [ 73] GetById dst:reg7, base:reg6, `m`+ [ 7a] Call call_feedback:1, dst:reg5, callee:reg7, this_value:reg6+ [ 81] End value:reg5B$00eeb12b super-length-access.js:7:1@@ -52,7 +52,7 @@ block0:[ 1] End value:Undefined-m$d4a11fd6 super-length-access.js:9:9+m$3448a1b4 super-length-access.js:9:9Registers: 7Blocks: 1@@ -60,8 +60,8 @@ block0:[ 0] Enter[ 1] ResolveThisBinding[ 2] ResolveSuperBase dst:reg5- [ 4] GetLengthWithThis value_feedback:0, dst:reg6, base:reg5, this_value:this- [ c] Return value:reg6+ [ 4] GetLengthWithThis dst:reg6, base:reg5, this_value:this+ [ a] Return value:reg6get length$76f7d814 super-length-access.js:4:20diff --git a/Tests/LibJS/Bytecode/expected/super-method-call-order.txt b/Tests/LibJS/Bytecode/expected/super-method-call-order.txtindex 8841b4d8d26..96dcd251e26 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 @@-$a3107b16 super-method-call-order.js:1:5+$c20700b0 super-method-call-order.js:1:5Registers: 8Blocks: 1Constants:@@ -22,17 +22,17 @@ block0:[ 56] PutById base:reg6, `test2`, src:reg7, kind:Own[ 5e] SetGlobal `obj`, src:reg6[ 64] GetGlobal value_feedback:1, dst:reg6, `obj`- [ 6c] GetById value_feedback:2, dst:reg7, base:reg6, `test`- [ 75] Call call_feedback:0, dst:reg5, callee:reg7, this_value:reg6- [ 7c] GetGlobal value_feedback:3, dst:reg6, `obj`- [ 84] GetById value_feedback:4, dst:reg5, base:reg6, `x`- [ 8d] GetGlobal value_feedback:5, dst:reg6, `obj`- [ 95] GetById value_feedback:6, dst:reg7, base:reg6, `test2`- [ 9e] Call call_feedback:1, dst:reg5, callee:reg7, this_value:reg6- [ a5] End value:reg5+ [ 6c] GetById dst:reg7, base:reg6, `test`+ [ 73] Call call_feedback:0, dst:reg5, callee:reg7, this_value:reg6+ [ 7a] GetGlobal value_feedback:2, dst:reg6, `obj`+ [ 82] GetById dst:reg5, base:reg6, `x`+ [ 89] GetGlobal value_feedback:3, dst:reg6, `obj`+ [ 91] GetById dst:reg7, base:reg6, `test2`+ [ 98] Call call_feedback:1, dst:reg5, callee:reg7, this_value:reg6+ [ 9f] End value:reg5-test$b3357a20 super-method-call-order.js:5:9+test$538df842 super-method-call-order.js:5:9Registers: 7Blocks: 1@@ -40,9 +40,9 @@ block0:[ 0] Enter[ 1] ResolveThisBinding[ 2] ResolveSuperBase dst:reg5- [ 4] GetByIdWithThis value_feedback:0, dst:reg6, base:reg5, `m`, this_value:this- [ e] Call call_feedback:0, dst:reg5, callee:reg6, this_value:this- [ 15] Return value:reg5+ [ 4] GetByIdWithThis dst:reg6, base:reg5, `m`, this_value:this+ [ c] Call call_feedback:0, dst:reg5, callee:reg6, this_value:this+ [ 13] Return value:reg5m$da3f2d9b@@ -56,7 +56,7 @@ block0:[ 1] End value:Undefined-get x$fe5e49dd super-method-call-order.js:8:9+get x$9eb6c7ff super-method-call-order.js:8:9Registers: 7Blocks: 1@@ -64,12 +64,12 @@ block0:[ 0] Enter[ 1] ResolveThisBinding[ 2] ResolveSuperBase dst:reg5- [ 4] GetByIdWithThis value_feedback:0, dst:reg6, base:reg5, `m`, this_value:this- [ e] Call call_feedback:0, dst:reg5, callee:reg6, this_value:this- [ 15] Return value:reg5+ [ 4] GetByIdWithThis dst:reg6, base:reg5, `m`, this_value:this+ [ c] Call call_feedback:0, dst:reg5, callee:reg6, this_value:this+ [ 13] Return value:reg5-test2$3709c204 super-method-call-order.js:11:9+test2$d7624026 super-method-call-order.js:11:9Registers: 7Blocks: 1@@ -77,6 +77,6 @@ block0:[ 0] Enter[ 1] ResolveThisBinding[ 2] ResolveSuperBase dst:reg5- [ 4] GetByIdWithThis value_feedback:0, dst:reg6, base:reg5, `m`, this_value:this- [ e] Call call_feedback:0, dst:reg5, callee:reg6, this_value:this- [ 15] Return value:reg5+ [ 4] GetByIdWithThis dst:reg6, base:reg5, `m`, this_value:this+ [ c] Call call_feedback:0, dst:reg5, callee:reg6, this_value:this+ [ 13] Return value:reg5diff --git a/Tests/LibJS/Bytecode/expected/super-optional-call-this.txt b/Tests/LibJS/Bytecode/expected/super-optional-call-this.txtindex 10cb6f0d573..ea15b8d8e72 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 @@-$f1539ed0 super-optional-call-this.js:1:1+$d25d1936 super-optional-call-this.js:1:1Registers: 11Blocks: 1Constants:@@ -23,9 +23,9 @@ block0:[ 5f] DynamicInitializeLexicalBinding `Foo`, src:reg6[ 65] GetGlobal value_feedback:1, dst:reg6, `Foo`[ 6d] CallConstruct call_feedback:0, dst:reg6, callee:reg6- [ 73] GetById value_feedback:2, dst:reg7, base:reg6, `method`- [ 7c] Call call_feedback:1, dst:reg5, callee:reg7, this_value:reg6- [ 83] End value:reg5+ [ 73] GetById dst:reg7, base:reg6, `method`+ [ 7a] Call call_feedback:1, dst:reg5, callee:reg7, this_value:reg6+ [ 81] End value:reg5Foo$ea8d03b4 super-optional-call-this.js:4:1@@ -51,7 +51,7 @@ block0:[ 1] End value:Undefined-method$ee773334 super-optional-call-this.js:6:9+method$cf80ad9a super-optional-call-this.js:6:9Registers: 7Blocks: 4Constants:@@ -61,18 +61,18 @@ block0:[ 0] Enter[ 1] ResolveThisBinding[ 2] ResolveSuperBase dst:reg5- [ 4] GetByIdWithThis value_feedback:0, dst:reg6, base:reg5, `method`, this_value:this- [ e] JumpNullish condition:reg6, true_target:block2, false_target:block1+ [ 4] GetByIdWithThis dst:reg6, base:reg5, `method`, this_value:this+ [ c] JumpNullish condition:reg6, true_target:block2, false_target:block1block1:- [ 18] Call call_feedback:0, dst:reg5, callee:reg6, this_value:this- [ 1f] Jump target:block3+ [ 16] Call call_feedback:0, dst:reg5, callee:reg6, this_value:this+ [ 1d] Jump target:block3block2:- [ 24] Mov dst:reg5, src:Undefined+ [ 22] Mov dst:reg5, src:Undefinedblock3:- [ 27] Return value:reg5+ [ 25] Return value:reg5method$9a9476d1diff --git a/Tests/LibJS/Bytecode/expected/switch-completion-value.txt b/Tests/LibJS/Bytecode/expected/switch-completion-value.txtindex ba3337146ae..5ab17f244d3 100644--- a/Tests/LibJS/Bytecode/expected/switch-completion-value.txt+++ b/Tests/LibJS/Bytecode/expected/switch-completion-value.txt@@ -1,4 +1,4 @@-$417fdde1 switch-completion-value.js:1:1+$44cef8db switch-completion-value.js:1:1Registers: 10Blocks: 1Constants:@@ -11,21 +11,21 @@ block0:[ 0] Enter[ 1] Mov dst:reg5, src:Undefined[ 4] DynamicGetBinding value_feedback:0, dst:reg6, `console`- [ c] GetById value_feedback:1, dst:reg7, base:reg6, `log`- [ 15] DynamicGetCalleeAndThisFromEnvironment value_feedback:2, callee:reg8, this_value:reg9, `eval`- [ 1e] CallDirectEval call_feedback:0, dst:reg8, callee:reg8, this_value:reg9, arguments:[String("switch(1) { case 1: 'hello'; let x = 1; }")]- [ 26] Call call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]- [ 2e] DynamicGetBinding value_feedback:3, dst:reg6, `console`- [ 36] GetById value_feedback:4, dst:reg7, base:reg6, `log`- [ 3f] DynamicGetCalleeAndThisFromEnvironment value_feedback:5, callee:reg8, this_value:reg9, `eval`- [ 48] CallDirectEval call_feedback:2, dst:reg8, callee:reg8, this_value:reg9, arguments:[String("switch(1) { case 1: 'first'; 'second'; }")]- [ 50] Call call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]- [ 58] DynamicGetBinding value_feedback:6, dst:reg6, `console`- [ 60] GetById value_feedback:7, dst:reg7, base:reg6, `log`- [ 69] DynamicGetCalleeAndThisFromEnvironment value_feedback:8, callee:reg8, this_value:reg9, `eval`- [ 72] CallDirectEval call_feedback:4, dst:reg8, callee:reg8, this_value:reg9, arguments:[String("switch(1) { case 1: 'matched'; break; default: 'default'; }")]- [ 7a] Call call_feedback:5, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]- [ 82] End value:reg5+ [ c] GetById dst:reg7, base:reg6, `log`+ [ 13] DynamicGetCalleeAndThisFromEnvironment value_feedback:1, callee:reg8, this_value:reg9, `eval`+ [ 1c] CallDirectEval call_feedback:0, dst:reg8, callee:reg8, this_value:reg9, arguments:[String("switch(1) { case 1: 'hello'; let x = 1; }")]+ [ 24] Call call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]+ [ 2c] DynamicGetBinding value_feedback:2, dst:reg6, `console`+ [ 34] GetById dst:reg7, base:reg6, `log`+ [ 3b] DynamicGetCalleeAndThisFromEnvironment value_feedback:3, callee:reg8, this_value:reg9, `eval`+ [ 44] CallDirectEval call_feedback:2, dst:reg8, callee:reg8, this_value:reg9, arguments:[String("switch(1) { case 1: 'first'; 'second'; }")]+ [ 4c] Call call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]+ [ 54] DynamicGetBinding value_feedback:4, dst:reg6, `console`+ [ 5c] GetById dst:reg7, base:reg6, `log`+ [ 63] DynamicGetCalleeAndThisFromEnvironment value_feedback:5, callee:reg8, this_value:reg9, `eval`+ [ 6c] CallDirectEval call_feedback:4, dst:reg8, callee:reg8, this_value:reg9, arguments:[String("switch(1) { case 1: 'matched'; break; default: 'default'; }")]+ [ 74] Call call_feedback:5, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]+ [ 7c] End value:reg5eval$0aae64f5 line 1, column 8diff --git a/Tests/LibJS/Bytecode/expected/switch-local-only-let.txt b/Tests/LibJS/Bytecode/expected/switch-local-only-let.txtindex 4035e9a260c..45efd09199a 100644--- a/Tests/LibJS/Bytecode/expected/switch-local-only-let.txt+++ b/Tests/LibJS/Bytecode/expected/switch-local-only-let.txt@@ -1,4 +1,4 @@-$274f3c3a switch-local-only-let.js:15:1+$fd48f260 switch-local-only-let.js:15:1Registers: 9Blocks: 1Constants:@@ -11,21 +11,21 @@ block0:[ 0] Enter[ 1] Mov dst:reg5, src:Undefined[ 4] GetGlobal value_feedback:0, dst:reg6, `console`- [ c] GetById value_feedback:1, dst:reg7, base:reg6, `log`- [ 15] GetGlobal value_feedback:2, dst:reg8, `switchLocalOnly`- [ 1d] Call call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined, arguments:[Int32(1)]- [ 25] Call call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]- [ 2d] GetGlobal value_feedback:3, dst:reg6, `console`- [ 35] GetById value_feedback:4, dst:reg7, base:reg6, `log`- [ 3e] GetGlobal value_feedback:5, dst:reg8, `switchLocalOnly`- [ 46] Call call_feedback:2, dst:reg8, callee:reg8, this_value:Undefined, arguments:[Int32(2)]- [ 4e] Call call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]- [ 56] GetGlobal value_feedback:6, dst:reg6, `console`- [ 5e] GetById value_feedback:7, dst:reg7, base:reg6, `log`- [ 67] GetGlobal value_feedback:8, dst:reg8, `switchLocalOnly`- [ 6f] Call call_feedback:4, dst:reg8, callee:reg8, this_value:Undefined, arguments:[Int32(3)]- [ 77] Call call_feedback:5, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]- [ 7f] End value:reg5+ [ c] GetById dst:reg7, base:reg6, `log`+ [ 13] GetGlobal value_feedback:1, dst:reg8, `switchLocalOnly`+ [ 1b] Call call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined, arguments:[Int32(1)]+ [ 23] Call call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]+ [ 2b] GetGlobal value_feedback:2, dst:reg6, `console`+ [ 33] GetById dst:reg7, base:reg6, `log`+ [ 3a] GetGlobal value_feedback:3, dst:reg8, `switchLocalOnly`+ [ 42] Call call_feedback:2, dst:reg8, callee:reg8, this_value:Undefined, arguments:[Int32(2)]+ [ 4a] Call call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]+ [ 52] GetGlobal value_feedback:4, dst:reg6, `console`+ [ 5a] GetById dst:reg7, base:reg6, `log`+ [ 61] GetGlobal value_feedback:5, dst:reg8, `switchLocalOnly`+ [ 69] Call call_feedback:4, dst:reg8, callee:reg8, this_value:Undefined, arguments:[Int32(3)]+ [ 71] Call call_feedback:5, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]+ [ 79] End value:reg5switchLocalOnly$0cd18392 switch-local-only-let.js:4:13diff --git a/Tests/LibJS/Bytecode/expected/switch-scoping.txt b/Tests/LibJS/Bytecode/expected/switch-scoping.txtindex 8793dcf6148..b1814f0e3cc 100644--- a/Tests/LibJS/Bytecode/expected/switch-scoping.txt+++ b/Tests/LibJS/Bytecode/expected/switch-scoping.txt@@ -1,4 +1,4 @@-$e845cd73 switch-scoping.js:15:1+$aa58c23f switch-scoping.js:15:1Registers: 9Blocks: 1Constants:@@ -10,16 +10,16 @@ block0:[ 0] Enter[ 1] Mov dst:reg5, src:Undefined[ 4] GetGlobal value_feedback:0, dst:reg6, `console`- [ c] GetById value_feedback:1, dst:reg7, base:reg6, `log`- [ 15] GetGlobal value_feedback:2, dst:reg8, `switchWithBlockDecl`- [ 1d] Call call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined, arguments:[Int32(1)]- [ 25] Call call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]- [ 2d] GetGlobal value_feedback:3, dst:reg6, `console`- [ 35] GetById value_feedback:4, dst:reg7, base:reg6, `log`- [ 3e] GetGlobal value_feedback:5, dst:reg8, `switchWithBlockDecl`- [ 46] Call call_feedback:2, dst:reg8, callee:reg8, this_value:Undefined, arguments:[Int32(2)]- [ 4e] Call call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]- [ 56] End value:reg5+ [ c] GetById dst:reg7, base:reg6, `log`+ [ 13] GetGlobal value_feedback:1, dst:reg8, `switchWithBlockDecl`+ [ 1b] Call call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined, arguments:[Int32(1)]+ [ 23] Call call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]+ [ 2b] GetGlobal value_feedback:2, dst:reg6, `console`+ [ 33] GetById dst:reg7, base:reg6, `log`+ [ 3a] GetGlobal value_feedback:3, dst:reg8, `switchWithBlockDecl`+ [ 42] Call call_feedback:2, dst:reg8, callee:reg8, this_value:Undefined, arguments:[Int32(2)]+ [ 4a] Call call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]+ [ 52] End value:reg5switchWithBlockDecl$ea43eb57 switch-scoping.js:2:9diff --git a/Tests/LibJS/Bytecode/expected/tagged-template-base-identifier.txt b/Tests/LibJS/Bytecode/expected/tagged-template-base-identifier.txtindex fc7a0575358..bfbc91cf746 100644--- a/Tests/LibJS/Bytecode/expected/tagged-template-base-identifier.txt+++ b/Tests/LibJS/Bytecode/expected/tagged-template-base-identifier.txt@@ -1,4 +1,4 @@-$9278d4b6 tagged-template-base-identifier.js:1:5+$f2205694 tagged-template-base-identifier.js:1:5Registers: 9Blocks: 1Constants:@@ -14,10 +14,10 @@ block0:[ 18] CacheObjectShape object:reg6[ 1c] SetGlobal `obj`, src:reg6[ 22] GetGlobal value_feedback:0, dst:reg6, `obj`- [ 2a] GetById value_feedback:1, dst:reg7, base:reg6, `f`- [ 33] GetTemplateObject dst:reg8, strings_are_in_array:false, strings:[String(""), String("")]- [ 3d] Call call_feedback:0, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]- [ 45] End value:reg5+ [ 2a] GetById dst:reg7, base:reg6, `f`+ [ 31] GetTemplateObject dst:reg8, strings_are_in_array:false, strings:[String(""), String("")]+ [ 3b] Call call_feedback:0, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]+ [ 43] End value:reg5f$bdc39382 tagged-template-base-identifier.js:3:9diff --git a/Tests/LibJS/Bytecode/expected/tagged-template-if-register-order.txt b/Tests/LibJS/Bytecode/expected/tagged-template-if-register-order.txtindex 9d5e428446f..fb525f2c915 100644--- a/Tests/LibJS/Bytecode/expected/tagged-template-if-register-order.txt+++ b/Tests/LibJS/Bytecode/expected/tagged-template-if-register-order.txt@@ -1,4 +1,4 @@-$130e157a tagged-template-if-register-order.js:1:1+$53bf11be tagged-template-if-register-order.js:1:1Registers: 9Blocks: 6Constants:@@ -12,33 +12,33 @@ block0:[ 1] Mov dst:reg5, src:Undefined[ 4] Mov dst:reg5, src:String("use strict")[ 7] GetGlobal value_feedback:0, dst:reg6, `String`- [ f] GetById value_feedback:1, dst:reg7, base:reg6, `raw`- [ 18] GetTemplateObject dst:reg8, strings_are_in_array:false, strings:[String("hello"), String("hello")]- [ 22] Call call_feedback:0, dst:reg6, callee:reg7, this_value:reg6, arguments:[reg8]- [ 2a] DynamicInitializeLexicalBinding `x`, src:reg6- [ 30] DynamicInitializeLexicalBinding `y`, src:Null- [ 36] GetGlobal value_feedback:2, dst:reg6, `x`- [ 3e] StrictlyEquals arith_feedback:0, dst:reg6, lhs:reg6, rhs:String("hello")- [ 44] Mov dst:reg5, src:Undefined- [ 47] JumpFalse condition:reg6, target:block5+ [ f] GetById dst:reg7, base:reg6, `raw`+ [ 16] GetTemplateObject dst:reg8, strings_are_in_array:false, strings:[String("hello"), String("hello")]+ [ 20] Call call_feedback:0, dst:reg6, callee:reg7, this_value:reg6, arguments:[reg8]+ [ 28] DynamicInitializeLexicalBinding `x`, src:reg6+ [ 2e] DynamicInitializeLexicalBinding `y`, src:Null+ [ 34] GetGlobal value_feedback:1, dst:reg6, `x`+ [ 3c] StrictlyEquals arith_feedback:0, dst:reg6, lhs:reg6, rhs:String("hello")+ [ 42] Mov dst:reg5, src:Undefined+ [ 45] JumpFalse condition:reg6, target:block5block1:- [ 4d] ResolveGlobalBinding dst:reg6, `y`- [ 53] GetGlobal value_feedback:3, dst:reg7, `x`- [ 5b] GetById value_feedback:4, dst:reg8, base:reg7, `toUpperCase`- [ 64] Call call_feedback:1, dst:reg7, callee:reg8, this_value:reg7- [ 6b] JumpIf condition:reg6, true_target:block2, false_target:block3+ [ 4b] ResolveGlobalBinding dst:reg6, `y`+ [ 51] GetGlobal value_feedback:2, dst:reg7, `x`+ [ 59] GetById dst:reg8, base:reg7, `toUpperCase`+ [ 60] Call call_feedback:1, dst:reg7, callee:reg8, this_value:reg7+ [ 67] JumpIf condition:reg6, true_target:block2, false_target:block3block2:- [ 75] SetGlobal `y`, src:reg7- [ 7b] Jump target:block4+ [ 71] SetGlobal `y`, src:reg7+ [ 77] Jump target:block4block3:- [ 80] SetResolvedBinding environment:Null, `y`, src:reg7- [ 85] Jump target:block4+ [ 7c] SetResolvedBinding environment:Null, `y`, src:reg7+ [ 81] Jump target:block4block4:- [ 8a] Mov dst:reg5, src:reg7+ [ 86] Mov dst:reg5, src:reg7block5:- [ 8d] End value:reg5+ [ 89] End value:reg5diff --git a/Tests/LibJS/Bytecode/expected/tdz-reset-in-loop.txt b/Tests/LibJS/Bytecode/expected/tdz-reset-in-loop.txtindex 493d1ccaeea..2890ec95d69 100644--- a/Tests/LibJS/Bytecode/expected/tdz-reset-in-loop.txt+++ b/Tests/LibJS/Bytecode/expected/tdz-reset-in-loop.txt@@ -16,7 +16,7 @@ block0:[ 2a] End value:reg5-checked$1cdddbe8 tdz-reset-in-loop.js:5:10+checked$39107072 tdz-reset-in-loop.js:5:10Registers: 8Blocks: 4Locals: i~0, value~1, plain~2@@ -32,26 +32,26 @@ block0:block1:[ 9] Mov dst:value~1, src:<Empty>- [ c] GetByValue value_feedback:0, keyed_feedback:0, dst:reg5, base:arg0, property:i~0- [ 16] NewFunction dst:reg6, shared_function_data_index:0- [ 1d] ThrowIfTDZ src:value~1- [ 1f] Typeof dst:reg7, src:value~1- [ 22] Call call_feedback:0, dst:reg5, callee:reg5, this_value:arg0, arguments:[reg6, reg7]- [ 2b] Mov dst:value~1, src:i~0- [ 2e] AddRhsInt32 arith_feedback:0, dst:plain~2, lhs:value~1, rhs:1- [ 37] GetByValue value_feedback:1, keyed_feedback:1, dst:reg5, base:arg0, property:i~0- [ 41] Call call_feedback:1, dst:reg5, callee:reg5, this_value:arg0, arguments:[plain~2]- [ 49] Increment arith_feedback:1, dst:i~0+ [ c] GetByValue keyed_feedback:0, dst:reg5, base:arg0, property:i~0+ [ 14] NewFunction dst:reg6, shared_function_data_index:0+ [ 1b] ThrowIfTDZ src:value~1+ [ 1d] Typeof dst:reg7, src:value~1+ [ 20] Call call_feedback:0, dst:reg5, callee:reg5, this_value:arg0, arguments:[reg6, reg7]+ [ 29] Mov dst:value~1, src:i~0+ [ 2c] AddRhsInt32 arith_feedback:0, dst:plain~2, lhs:value~1, rhs:1+ [ 35] GetByValue keyed_feedback:1, dst:reg5, base:arg0, property:i~0+ [ 3d] Call call_feedback:1, dst:reg5, callee:reg5, this_value:arg0, arguments:[plain~2]+ [ 45] Increment arith_feedback:1, dst:i~0block2:- [ 4d] GetLength value_feedback:2, keyed_feedback:2, dst:reg5, base:arg0- [ 56] JumpLessThanLoop arith_feedback:2, lhs:i~0, rhs:reg5, true_target:block1, false_target:block3+ [ 49] GetLength keyed_feedback:2, dst:reg5, base:arg0+ [ 50] JumpLessThanLoop arith_feedback:2, lhs:i~0, rhs:reg5, true_target:block1, false_target:block3block3:- [ 63] End value:Undefined+ [ 5d] End value:Undefined-nested$23666ee3 tdz-reset-in-loop.js:14:5+nested$e57963af tdz-reset-in-loop.js:14:5Registers: 12Blocks: 8Locals: value~0, item~1@@ -63,38 +63,38 @@ block0:[ 0] Enterblock1:- [ 1] GetLength value_feedback:0, keyed_feedback:0, dst:reg5, base:arg0- [ a] JumpFalse condition:reg5, target:block7+ [ 1] GetLength keyed_feedback:0, dst:reg5, base:arg0+ [ 8] JumpFalse condition:reg5, target:block7block2:- [ 10] Mov dst:value~0, src:<Empty>- [ 13] Mov dst:item~1, src:<Empty>- [ 16] Mov dst:reg5, src:arg0- [ 19] GetIterator dst_iterator_object:reg6, dst_iterator_next:reg7, dst_iterator_done:reg8, iterable:reg5, fast_array_mode_allowed:true+ [ e] Mov dst:value~0, src:<Empty>+ [ 11] Mov dst:item~1, src:<Empty>+ [ 14] Mov dst:reg5, src:arg0+ [ 17] GetIterator dst_iterator_object:reg6, dst_iterator_next:reg7, dst_iterator_done:reg8, iterable:reg5, fast_array_mode_allowed:trueblock3:- [ 22] IteratorNextUnpack dst_value:reg9, dst_done:reg10, iterator_object:reg6, iterator_next:reg7, iterator_done:reg8- [ 28] JumpTrue condition:reg10, target:block6+ [ 20] IteratorNextUnpack dst_value:reg9, dst_done:reg10, iterator_object:reg6, iterator_next:reg7, iterator_done:reg8+ [ 26] JumpTrue condition:reg10, target:block6block4:- [ 2e] Mov dst:item~1, src:reg9- [ 31] ThrowIfTDZ src:value~0- [ 33] Typeof dst:reg11, src:value~0- [ 36] Call call_feedback:0, dst:reg11, callee:item~1, this_value:Undefined, arguments:[reg11]- [ 3e] JumpLoop target:block3+ [ 2c] Mov dst:item~1, src:reg9+ [ 2f] ThrowIfTDZ src:value~0+ [ 31] Typeof dst:reg11, src:value~0+ [ 34] Call call_feedback:0, dst:reg11, callee:item~1, this_value:Undefined, arguments:[reg11]+ [ 3c] JumpLoop target:block3block5:- [ 43] Catch value_feedback:1, dst:reg11- [ 47] IteratorClose iterator_object:reg6, iterator_next:reg7, iterator_done:reg8, completion_value:reg11- [ 4f] Throw src:reg11+ [ 41] Catch value_feedback:0, dst:reg11+ [ 45] IteratorClose iterator_object:reg6, iterator_next:reg7, iterator_done:reg8, completion_value:reg11+ [ 4d] Throw src:reg11block6:- [ 51] GetById value_feedback:2, dst:reg5, base:arg0, `pop`- [ 5a] Call call_feedback:1, dst:value~0, callee:reg5, this_value:arg0- [ 61] JumpLoop target:block1+ [ 4f] GetById dst:reg5, base:arg0, `pop`+ [ 56] Call call_feedback:1, dst:value~0, callee:reg5, this_value:arg0+ [ 5d] JumpLoop target:block1block7:- [ 66] End value:Undefined+ [ 62] End value:UndefinedException handlers:- [ 2e .. 43] => handler block5+ [ 2c .. 41] => handler block5diff --git a/Tests/LibJS/Bytecode/expected/this-base-identifier.txt b/Tests/LibJS/Bytecode/expected/this-base-identifier.txtindex b005ade06c4..0277b801ac2 100644--- a/Tests/LibJS/Bytecode/expected/this-base-identifier.txt+++ b/Tests/LibJS/Bytecode/expected/this-base-identifier.txt@@ -30,14 +30,14 @@ Exception handlers:[ 25 .. 39] => handler block2-get_from_this$c1863fd7 this-base-identifier.js:5:5+get_from_this$e07cc571 this-base-identifier.js:5:5Registers: 6Blocks: 1block0:[ 0] Enter- [ 1] GetById value_feedback:0, dst:reg5, base:this, `foo`- [ a] Return value:reg5+ [ 1] GetById dst:reg5, base:this, `foo`+ [ 8] Return value:reg5set_on_this$a36ddcd4 this-base-identifier.js:9:14@@ -53,12 +53,12 @@ block0:[ 9] End value:Undefined-chained_this_access$ae994d06 this-base-identifier.js:13:5+chained_this_access$6de850c2 this-base-identifier.js:13:5Registers: 6Blocks: 1block0:[ 0] Enter- [ 1] GetById value_feedback:0, dst:reg5, base:this, `a`- [ a] GetById value_feedback:1, dst:reg5, base:reg5, `b`- [ 13] Return value:reg5+ [ 1] GetById dst:reg5, base:this, `a`+ [ 8] GetById dst:reg5, base:reg5, `b`+ [ f] Return value:reg5diff --git a/Tests/LibJS/Bytecode/expected/try-catch-scoping.txt b/Tests/LibJS/Bytecode/expected/try-catch-scoping.txtindex f34f0ddb89b..b4e2e16d849 100644--- a/Tests/LibJS/Bytecode/expected/try-catch-scoping.txt+++ b/Tests/LibJS/Bytecode/expected/try-catch-scoping.txt@@ -14,7 +14,7 @@ block0:[ 22] End value:reg5-tryCatchWithBlocks$81fd6606 try-catch-scoping.js:2:9+tryCatchWithBlocks$e1a4e7e4 try-catch-scoping.js:2:9Registers: 9Blocks: 4Locals: x~0, y~1, e~2, z~3@@ -39,20 +39,20 @@ block2:[ 10] Mov dst:e~2, src:reg5[ 13] Mov dst:z~3, src:Int32(3)[ 16] GetGlobal value_feedback:1, dst:reg6, `console`- [ 1e] GetById value_feedback:2, dst:reg7, base:reg6, `log`- [ 27] Add arith_feedback:0, dst:reg8, lhs:x~0, rhs:e~2- [ 2d] Add arith_feedback:1, dst:reg8, lhs:reg8, rhs:z~3- [ 33] Call call_feedback:0, dst:reg6, callee:reg7, this_value:reg6, arguments:[reg8]- [ 3b] Jump target:block3+ [ 1e] GetById dst:reg7, base:reg6, `log`+ [ 25] Add arith_feedback:0, dst:reg8, lhs:x~0, rhs:e~2+ [ 2b] Add arith_feedback:1, dst:reg8, lhs:reg8, rhs:z~3+ [ 31] Call call_feedback:0, dst:reg6, callee:reg7, this_value:reg6, arguments:[reg8]+ [ 39] Jump target:block3block3:- [ 40] End value:Undefined+ [ 3e] End value:UndefinedException handlers:[ 4 .. 9] => handler block2-tryCatchFinallyWithBlocks$be5358da try-catch-scoping.js:14:9+tryCatchFinallyWithBlocks$7da25c96 try-catch-scoping.js:14:9Registers: 10Blocks: 7Locals: x~0, y~1, e~2, z~3@@ -77,31 +77,31 @@ block2:[ d] Mov dst:e~2, src:<Empty>[ 10] Mov dst:e~2, src:reg7[ 13] GetGlobal value_feedback:1, dst:reg8, `console`- [ 1b] GetById value_feedback:2, dst:reg9, base:reg8, `log`- [ 24] Call call_feedback:0, dst:reg8, callee:reg9, this_value:reg8, arguments:[e~2]- [ 2c] Mov dst:reg5, src:Int32(0)- [ 2f] Jump target:block4+ [ 1b] GetById dst:reg9, base:reg8, `log`+ [ 22] Call call_feedback:0, dst:reg8, callee:reg9, this_value:reg8, arguments:[e~2]+ [ 2a] Mov dst:reg5, src:Int32(0)+ [ 2d] Jump target:block4block3:- [ 34] Catch value_feedback:3, dst:reg6- [ 38] Mov dst:reg5, src:Int32(1)+ [ 32] Catch value_feedback:2, dst:reg6+ [ 36] Mov dst:reg5, src:Int32(1)block4:- [ 3b] Mov dst:z~3, src:Int32(3)- [ 3e] GetGlobal value_feedback:4, dst:reg7, `console`- [ 46] GetById value_feedback:5, dst:reg8, base:reg7, `log`- [ 4f] Call call_feedback:1, dst:reg7, callee:reg8, this_value:reg7, arguments:[z~3]- [ 57] JumpStrictlyEqualsRhsInt32 arith_feedback:0, lhs:reg5, rhs:0, true_target:block6, false_target:block5+ [ 39] Mov dst:z~3, src:Int32(3)+ [ 3c] GetGlobal value_feedback:3, dst:reg7, `console`+ [ 44] GetById dst:reg8, base:reg7, `log`+ [ 4b] Call call_feedback:1, dst:reg7, callee:reg8, this_value:reg7, arguments:[z~3]+ [ 53] JumpStrictlyEqualsRhsInt32 arith_feedback:0, lhs:reg5, rhs:0, true_target:block6, false_target:block5block5:- [ 67] Throw src:reg6+ [ 63] Throw src:reg6block6:- [ 69] End value:Undefined+ [ 65] End value:UndefinedException handlers:[ 4 .. 9] => handler block2- [ 9 .. 34] => handler block3+ [ 9 .. 32] => handler block36diff --git a/Tests/LibJS/Bytecode/expected/try-finally-continue.txt b/Tests/LibJS/Bytecode/expected/try-finally-continue.txtindex 525d8ed103a..af567efa1f3 100644--- a/Tests/LibJS/Bytecode/expected/try-finally-continue.txt+++ b/Tests/LibJS/Bytecode/expected/try-finally-continue.txt@@ -1,4 +1,4 @@-$8d78d77f try-finally-continue.js:13:1+$4cc7db3b try-finally-continue.js:13:1Registers: 9Blocks: 1Constants:@@ -8,16 +8,16 @@ block0:[ 0] Enter[ 1] Mov dst:reg5, src:Undefined[ 4] GetGlobal value_feedback:0, dst:reg6, `console`- [ c] GetById value_feedback:1, dst:reg7, base:reg6, `log`- [ 15] GetGlobal value_feedback:2, dst:reg8, `continueThroughFinally`- [ 1d] Call call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined- [ 24] Call call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]- [ 2c] GetGlobal value_feedback:3, dst:reg6, `console`- [ 34] GetById value_feedback:4, dst:reg7, base:reg6, `log`- [ 3d] GetGlobal value_feedback:5, dst:reg8, `breakThroughFinally`- [ 45] Call call_feedback:2, dst:reg8, callee:reg8, this_value:Undefined- [ 4c] Call call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]- [ 54] End value:reg5+ [ c] GetById dst:reg7, base:reg6, `log`+ [ 13] GetGlobal value_feedback:1, dst:reg8, `continueThroughFinally`+ [ 1b] Call call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined+ [ 22] Call call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]+ [ 2a] GetGlobal value_feedback:2, dst:reg6, `console`+ [ 32] GetById dst:reg7, base:reg6, `log`+ [ 39] GetGlobal value_feedback:3, dst:reg8, `breakThroughFinally`+ [ 41] Call call_feedback:2, dst:reg8, callee:reg8, this_value:Undefined+ [ 48] Call call_feedback:3, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]+ [ 50] End value:reg5continueThroughFinally$90d010ea try-finally-continue.js:2:9diff --git a/Tests/LibJS/Bytecode/expected/try-finally.txt b/Tests/LibJS/Bytecode/expected/try-finally.txtindex 54ec81fe676..9d56fa7889c 100644--- a/Tests/LibJS/Bytecode/expected/try-finally.txt+++ b/Tests/LibJS/Bytecode/expected/try-finally.txt@@ -16,7 +16,7 @@ block0:[ 31] End value:reg5-basicTryFinally$da4b4960 try-finally.js:2:9+basicTryFinally$7aa3c782 try-finally.js:2:9Registers: 9Blocks: 8Constants:@@ -39,27 +39,27 @@ block2:block3:[ 13] GetGlobal value_feedback:1, dst:reg7, `console`- [ 1b] GetById value_feedback:2, dst:reg8, base:reg7, `log`- [ 24] Call call_feedback:0, dst:reg7, callee:reg8, this_value:reg7, arguments:[String("finally")]- [ 2c] JumpStrictlyEqualsRhsInt32 arith_feedback:0, lhs:reg5, rhs:0, true_target:block7, false_target:block4+ [ 1b] GetById dst:reg8, base:reg7, `log`+ [ 22] Call call_feedback:0, dst:reg7, callee:reg8, this_value:reg7, arguments:[String("finally")]+ [ 2a] JumpStrictlyEqualsRhsInt32 arith_feedback:0, lhs:reg5, rhs:0, true_target:block7, false_target:block4block4:- [ 3c] JumpStrictlyEqualsRhsInt32 arith_feedback:1, lhs:reg5, rhs:2, true_target:block5, false_target:block6+ [ 3a] JumpStrictlyEqualsRhsInt32 arith_feedback:1, lhs:reg5, rhs:2, true_target:block5, false_target:block6block5:- [ 4c] Return value:reg6+ [ 4a] Return value:reg6block6:- [ 4e] Throw src:reg6+ [ 4c] Throw src:reg6block7:- [ 50] End value:Undefined+ [ 4e] End value:UndefinedException handlers:[ 1 .. c] => handler block2-breakThroughFinally$4191274f try-finally.js:11:10+breakThroughFinally$a138a92d try-finally.js:11:10Registers: 9Blocks: 12Locals: i~0@@ -91,33 +91,33 @@ block4:block5:[ 30] GetGlobal value_feedback:1, dst:reg7, `console`- [ 38] GetById value_feedback:2, dst:reg8, base:reg7, `log`- [ 41] Call call_feedback:0, dst:reg7, callee:reg8, this_value:reg7, arguments:[i~0]- [ 49] JumpStrictlyEqualsRhsInt32 arith_feedback:1, lhs:reg5, rhs:0, true_target:block9, false_target:block6+ [ 38] GetById dst:reg8, base:reg7, `log`+ [ 3f] Call call_feedback:0, dst:reg7, callee:reg8, this_value:reg7, arguments:[i~0]+ [ 47] JumpStrictlyEqualsRhsInt32 arith_feedback:1, lhs:reg5, rhs:0, true_target:block9, false_target:block6block6:- [ 59] JumpStrictlyEqualsRhsInt32 arith_feedback:2, lhs:reg5, rhs:2, true_target:block7, false_target:block8+ [ 57] JumpStrictlyEqualsRhsInt32 arith_feedback:2, lhs:reg5, rhs:2, true_target:block7, false_target:block8block7:- [ 69] Jump target:block11+ [ 67] Jump target:block11block8:- [ 6e] Throw src:reg6+ [ 6c] Throw src:reg6block9:- [ 70] Increment arith_feedback:3, dst:i~0+ [ 6e] Increment arith_feedback:3, dst:i~0block10:- [ 74] JumpLessThanLoopRhsInt32 arith_feedback:4, lhs:i~0, rhs:10, true_target:block1, false_target:block11+ [ 72] JumpLessThanLoopRhsInt32 arith_feedback:4, lhs:i~0, rhs:10, true_target:block1, false_target:block11block11:- [ 84] End value:Undefined+ [ 82] End value:UndefinedException handlers:[ 9 .. 29] => handler block4-nestedTryFinallyWithBreak$c880b7b8 try-finally.js:22:21+nestedTryFinallyWithBreak$850bca64 try-finally.js:22:21Registers: 11Blocks: 15Locals: i~0@@ -143,53 +143,53 @@ block2:block3:[ 13] GetGlobal value_feedback:1, dst:reg9, `console`- [ 1b] GetById value_feedback:2, dst:reg10, base:reg9, `log`- [ 24] Call call_feedback:0, dst:reg9, callee:reg10, this_value:reg9, arguments:[String("inner")]- [ 2c] JumpStrictlyEqualsRhsInt32 arith_feedback:0, lhs:reg7, rhs:0, true_target:block7, false_target:block4+ [ 1b] GetById dst:reg10, base:reg9, `log`+ [ 22] Call call_feedback:0, dst:reg9, callee:reg10, this_value:reg9, arguments:[String("inner")]+ [ 2a] JumpStrictlyEqualsRhsInt32 arith_feedback:0, lhs:reg7, rhs:0, true_target:block7, false_target:block4block4:- [ 3c] JumpStrictlyEqualsRhsInt32 arith_feedback:1, lhs:reg7, rhs:2, true_target:block5, false_target:block6+ [ 3a] JumpStrictlyEqualsRhsInt32 arith_feedback:1, lhs:reg7, rhs:2, true_target:block5, false_target:block6block5:- [ 4c] Mov dst:reg5, src:Int32(2)- [ 4f] Jump target:block9+ [ 4a] Mov dst:reg5, src:Int32(2)+ [ 4d] Jump target:block9block6:- [ 54] Throw src:reg8+ [ 52] Throw src:reg8block7:- [ 56] Mov dst:reg5, src:Int32(0)- [ 59] Jump target:block9+ [ 54] Mov dst:reg5, src:Int32(0)+ [ 57] Jump target:block9block8:- [ 5e] Catch value_feedback:3, dst:reg6- [ 62] Mov dst:reg5, src:Int32(1)+ [ 5c] Catch value_feedback:2, dst:reg6+ [ 60] Mov dst:reg5, src:Int32(1)block9:- [ 65] GetGlobal value_feedback:4, dst:reg7, `console`- [ 6d] GetById value_feedback:5, dst:reg8, base:reg7, `log`- [ 76] Call call_feedback:1, dst:reg7, callee:reg8, this_value:reg7, arguments:[String("outer")]- [ 7e] JumpStrictlyEqualsRhsInt32 arith_feedback:2, lhs:reg5, rhs:0, true_target:block13, false_target:block10+ [ 63] GetGlobal value_feedback:3, dst:reg7, `console`+ [ 6b] GetById dst:reg8, base:reg7, `log`+ [ 72] Call call_feedback:1, dst:reg7, callee:reg8, this_value:reg7, arguments:[String("outer")]+ [ 7a] JumpStrictlyEqualsRhsInt32 arith_feedback:2, lhs:reg5, rhs:0, true_target:block13, false_target:block10block10:- [ 8e] JumpStrictlyEqualsRhsInt32 arith_feedback:3, lhs:reg5, rhs:2, true_target:block11, false_target:block12+ [ 8a] JumpStrictlyEqualsRhsInt32 arith_feedback:3, lhs:reg5, rhs:2, true_target:block11, false_target:block12block11:- [ 9e] Jump target:block14+ [ 9a] Jump target:block14block12:- [ a3] Throw src:reg6+ [ 9f] Throw src:reg6block13:- [ a5] Increment arith_feedback:4, dst:i~0- [ a9] JumpLoop target:block1+ [ a1] Increment arith_feedback:4, dst:i~0+ [ a5] JumpLoop target:block1block14:- [ ae] End value:Undefined+ [ aa] End value:UndefinedException handlers:[ 4 .. c] => handler block2- [ c .. 5e] => handler block8+ [ c .. 5c] => handler block8"finally"diff --git a/Tests/LibJS/Bytecode/expected/update-member-expression.txt b/Tests/LibJS/Bytecode/expected/update-member-expression.txtindex 7794a49ad18..906ba4746ce 100644--- a/Tests/LibJS/Bytecode/expected/update-member-expression.txt+++ b/Tests/LibJS/Bytecode/expected/update-member-expression.txt@@ -16,7 +16,7 @@ block0:[ 2c] End value:reg5-postfix_increment$26176a45 update-member-expression.js:6:14+postfix_increment$0720e4ab update-member-expression.js:6:14Registers: 7Blocks: 1Constants:@@ -24,13 +24,13 @@ postfix_increment$26176a45 update-member-expression.js:6:14block0:[ 0] Enter- [ 1] GetById value_feedback:0, dst:reg5, base:arg0, `count`- [ a] PostfixIncrement arith_feedback:0, dst:reg6, src:reg5- [ f] PutById base:arg0, `count`, src:reg5, kind:Normal- [ 17] End value:Undefined+ [ 1] GetById dst:reg5, base:arg0, `count`+ [ 8] PostfixIncrement arith_feedback:0, dst:reg6, src:reg5+ [ d] PutById base:arg0, `count`, src:reg5, kind:Normal+ [ 15] End value:Undefined-prefix_decrement$ea1317c2 update-member-expression.js:10:5+prefix_decrement$0bcd8e6c update-member-expression.js:10:5Registers: 6Blocks: 1Constants:@@ -38,7 +38,7 @@ prefix_decrement$ea1317c2 update-member-expression.js:10:5block0:[ 0] Enter- [ 1] GetById value_feedback:0, dst:reg5, base:arg0, `count`- [ a] Decrement arith_feedback:0, dst:reg5- [ e] PutById base:arg0, `count`, src:reg5, kind:Normal- [ 16] End value:Undefined+ [ 1] GetById dst:reg5, base:arg0, `count`+ [ 8] Decrement arith_feedback:0, dst:reg5+ [ c] PutById base:arg0, `count`, src:reg5, kind:Normal+ [ 14] End value:Undefineddiff --git a/Tests/LibJS/Bytecode/expected/with-statement.txt b/Tests/LibJS/Bytecode/expected/with-statement.txtindex 7bc77c817cf..b9ac9ec25a0 100644--- a/Tests/LibJS/Bytecode/expected/with-statement.txt+++ b/Tests/LibJS/Bytecode/expected/with-statement.txt@@ -12,7 +12,7 @@ block0:[ 13] End value:reg5-withBlock$546dd64a with-statement.js:2:9+withBlock$b4155828 with-statement.js:2:9Registers: 9Blocks: 1Locals: obj~0@@ -29,11 +29,11 @@ block0:[ 14] Mov dst:obj~0, src:reg5[ 17] EnterObjectEnvironment dst:reg5, object:obj~0[ 1a] DynamicGetBinding value_feedback:0, dst:reg6, `console`- [ 22] GetById value_feedback:1, dst:reg7, base:reg6, `log`- [ 2b] DynamicGetBinding value_feedback:2, dst:reg8, `x`- [ 33] Call call_feedback:0, dst:reg6, callee:reg7, this_value:reg6, arguments:[reg8]- [ 3b] SetLexicalEnvironment environment:reg4- [ 3d] End value:Undefined+ [ 22] GetById dst:reg7, base:reg6, `log`+ [ 29] DynamicGetBinding value_feedback:1, dst:reg8, `x`+ [ 31] Call call_feedback:0, dst:reg6, callee:reg7, this_value:reg6, arguments:[reg8]+ [ 39] SetLexicalEnvironment environment:reg4+ [ 3b] End value:Undefined42diff --git a/Tests/LibJS/Runtime/jit/profiling-feedback.js b/Tests/LibJS/Runtime/jit/profiling-feedback.jsindex 76c99d16830..68f4e452f5a 100644--- a/Tests/LibJS/Runtime/jit/profiling-feedback.js+++ b/Tests/LibJS/Runtime/jit/profiling-feedback.js@@ -67,11 +67,23 @@ profilingTest("loads and calls record the kinds of the values they produce", ()}jit.prepare(read);read({ value: 1 });- expect(feedbackOf(read, "GetById")).toBe("value#0: Int32");+ expect(feedbackOf(read, "GetById")).toBe("value of cache#0: Int32");read({ value: "string" });- expect(feedbackOf(read, "GetById")).toBe("value#0: Int32|String");+ expect(feedbackOf(read, "GetById")).toBe("value of cache#0: Int32|String");read({ value: undefined });- expect(feedbackOf(read, "GetById")).toBe("value#0: Int32|String|Undefined");+ expect(feedbackOf(read, "GetById")).toBe("value of cache#0: Int32|String|Undefined");++ // Loads record into the slots of their property lookup caches, which stores and the other loads have too.+ function readAfterWrites(object) {+ object.first = 1;+ object.second = 2;+ const length = object.length;+ return [length, object.value];+ }+ jit.prepare(readAfterWrites);+ readAfterWrites({ value: true, length: 1.5 });+ expect(feedbackOf(readAfterWrites, "GetLength")).toBe("value of cache#2: Double keyed#0: keys=none elements=Other");+ expect(feedbackOf(readAfterWrites, "GetById")).toBe("value of cache#3: Boolean");function call(f) {return f();@@ -189,19 +201,19 @@ profilingTest("keyed accesses record their keys and elements", () => {}jit.prepare(get);get([1, 2, 3], 1);- expect(feedbackOf(get, "GetByValue")).toBe("value#0: Int32 keyed#0: keys=Int32Index elements=Packed");+ expect(feedbackOf(get, "GetByValue")).toBe("value of cache#0: Int32 keyed#0: keys=Int32Index elements=Packed");get([1, , 3], 1);expect(feedbackOf(get, "GetByValue")).toBe(- "value#0: Int32|Undefined keyed#0: keys=Int32Index elements=Packed|Holey out-of-bounds"+ "value of cache#0: Int32|Undefined keyed#0: keys=Int32Index elements=Packed|Holey out-of-bounds");get(new Float64Array(2), 0);get({ x: 1 }, "x");expect(feedbackOf(get, "GetByValue")).toBe(- 'value#0: Int32|Undefined keyed#0: keys=Int32Index|String elements=Packed|Holey|Other|Float64Array out-of-bounds last_key="x"'+ 'value of cache#0: Int32|Undefined keyed#0: keys=Int32Index|String elements=Packed|Holey|Other|Float64Array out-of-bounds last_key="x"');get({ y: 1 }, "y");expect(feedbackOf(get, "GetByValue")).toBe(- 'value#0: Int32|Undefined keyed#0: keys=Int32Index|String|MultipleKeys elements=Packed|Holey|Other|Float64Array out-of-bounds last_key="y"'+ 'value of cache#0: Int32|Undefined keyed#0: keys=Int32Index|String|MultipleKeys elements=Packed|Holey|Other|Float64Array out-of-bounds last_key="y"');function fill(count) {@@ -234,12 +246,12 @@ profilingTest("feedback forgets callees and keys that died", () => {})();expect(feedbackOf(call, "Call")).toBe("call#0: target=function temporary flags=none returned: Undefined");expect(feedbackOf(get, "GetByValue")).toBe(- "value#0: Undefined keyed#0: keys=Symbol elements=Other last_key=Symbol(temporary)"+ "value of cache#0: Undefined keyed#0: keys=Symbol elements=Other last_key=Symbol(temporary)");holder.length = 0;gc();expect(feedbackOf(call, "Call")).toBe("call#0: target=none flags=none returned: Undefined");- expect(feedbackOf(get, "GetByValue")).toBe("value#0: Undefined keyed#0: keys=Symbol elements=Other");+ expect(feedbackOf(get, "GetByValue")).toBe("value of cache#0: Undefined keyed#0: keys=Symbol elements=Other");});profilingTest("functions that never ran have no feedback", () => {