Truly independent web browser
LibJS: Fix the build without the JIT
Andreas Kling2c0a84674b31
diff --git a/Libraries/LibJS/Rust/src/bytecode/executable.rs b/Libraries/LibJS/Rust/src/bytecode/executable.rsindex b6872aa093c..f9486e91dd0 100644--- a/Libraries/LibJS/Rust/src/bytecode/executable.rs+++ b/Libraries/LibJS/Rust/src/bytecode/executable.rs@@ -1932,9 +1932,11 @@ impl Executable {pub fn set_interpreter_tier(&self, tier: InterpreterTier) {match tier {InterpreterTier::Plain => {}+ #[cfg(feature = "jit")]InterpreterTier::Profiling => {self.ensure_feedback();}+ #[cfg(feature = "jit")]_ => {self.ensure_feedback_without_value_buckets();}diff --git a/Libraries/LibJS/Rust/src/runtime/ecmascript_function_object.rs b/Libraries/LibJS/Rust/src/runtime/ecmascript_function_object.rsindex 4ae5799ba8f..d6acd3b9559 100644--- a/Libraries/LibJS/Rust/src/runtime/ecmascript_function_object.rs+++ b/Libraries/LibJS/Rust/src/runtime/ecmascript_function_object.rs@@ -496,6 +496,7 @@ impl EcmascriptFunctionObject {}/// Whether the function has the property `property_key` without having made it yet, which looking it up makes.+ #[cfg(feature = "jit")]pub(crate) fn has_lazy_property(&self, vm: &Vm, property_key: &PropertyKey) -> bool {(self.has_flag(ecmascript_function_flags::HAS_LAZY_LENGTH_AND_NAME)&& (*property_key == vm.names.length || *property_key == vm.names.name))