Truly independent web browser
LibJS: Remove emit_put_normal_by_value()
Shannon Booth8f6a73211dee
diff --git a/Libraries/LibJS/Rust/src/bytecode/codegen/members.rs b/Libraries/LibJS/Rust/src/bytecode/codegen/members.rsindex ee872acd0a0..9c0ee9e317d 100644--- a/Libraries/LibJS/Rust/src/bytecode/codegen/members.rs+++ b/Libraries/LibJS/Rust/src/bytecode/codegen/members.rs@@ -120,31 +120,6 @@ pub(super) fn emit_get_by_value_with_this(});}-/// Emit a normal property write by value, optimizing constant string properties to PutNormalById.-pub(super) fn emit_put_normal_by_value(generator: &mut Generator<'_>, base: Operand, property: Operand, src: Operand) {- if let Some(key) = generator.try_constant_string_to_property_key(property) {- let cache = generator.next_property_lookup_cache();- generator.put(op::PutById {- base,- property: key,- src,- cache,- kind: PutKind::Normal as u8,- });- return;- }- let keyed_feedback = generator.next_keyed_feedback();- let cache = generator.next_property_lookup_cache();- generator.put(op::PutByValue {- keyed_feedback,- base,- property,- src,- kind: PutKind::Normal as u8,- cache,- });-}-/// Emit a normal property write by value with explicit this, optimizing constant string properties.pub(super) fn emit_put_normal_by_value_with_this(generator: &mut Generator<'_>,diff --git a/Libraries/LibJS/Rust/src/bytecode/codegen/stream.rs b/Libraries/LibJS/Rust/src/bytecode/codegen/stream.rsindex f9b00b54f12..72e92571c11 100644--- a/Libraries/LibJS/Rust/src/bytecode/codegen/stream.rs+++ b/Libraries/LibJS/Rust/src/bytecode/codegen/stream.rs@@ -3129,7 +3129,7 @@ impl Generator<'_> {});}ValKind::IndexTarget => {- emit_put_normal_by_value(self, target.a, target.b, value);+ emit_put_by_value(self, target.a, target.b, value, libjs_abi::PutKind::Normal);}ValKind::SuperTarget => {let this_value = Operand::register(Register::THIS_VALUE);