mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:17:44 +00:00
test262-runner+js: Respect the bytecode optimizations enabled flag
This commit is contained in:
parent
aa0ed4ab4e
commit
e012565898
4 changed files with 15 additions and 14 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue