1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 02:37:42 +00:00

test262-runner+js: Respect the bytecode optimizations enabled flag

This commit is contained in:
Daniel Bertalan 2023-06-26 19:50:33 +02:00 committed by Ali Mohammad Pur
parent aa0ed4ab4e
commit e012565898
4 changed files with 15 additions and 14 deletions

View file

@ -31,6 +31,7 @@ class Interpreter {
public:
[[nodiscard]] static bool enabled();
static void set_enabled(bool);
static void set_optimizations_enabled(bool);
explicit Interpreter(VM&);
~Interpreter();
@ -38,8 +39,6 @@ public:
Realm& realm();
VM& vm() { return m_vm; }
void set_optimizations_enabled(bool);
ThrowCompletionOr<Value> run(Script&, JS::GCPtr<Environment> lexical_environment_override = nullptr);
ThrowCompletionOr<Value> run(SourceTextModule&);
@ -123,7 +122,6 @@ private:
OwnPtr<JS::Interpreter> m_ast_interpreter;
BasicBlock const* m_current_block { nullptr };
InstructionStreamIterator* m_pc { nullptr };
bool m_optimizations_enabled { false };
};
extern bool g_dump_bytecode;