mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 17:19:13 +00:00
JSSpecCompiler: Pave a way for representing compile-time objects
This commit is contained in:
parent
3077e516a2
commit
d99d66e358
Notes:
sideshowbarker
2024-07-18 03:35:30 +09:00
Author: https://github.com/DanShaders
Commit: d99d66e358
Pull-request: https://github.com/SerenityOS/serenity/pull/23647
Reviewed-by: https://github.com/ADKaster ✅
12 changed files with 418 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/HashMap.h>
|
||||
#include <AK/NonnullOwnPtr.h>
|
||||
#include <AK/RefCounted.h>
|
||||
#include <AK/RefPtr.h>
|
||||
#include <AK/StringView.h>
|
||||
|
@ -31,6 +32,8 @@ public:
|
|||
|
||||
EnumeratorRef get_node_for_enumerator_value(StringView value);
|
||||
|
||||
Runtime::Realm* realm() const { return m_realm; }
|
||||
|
||||
private:
|
||||
StringView m_filename;
|
||||
DiagnosticEngine m_diagnostic_engine;
|
||||
|
@ -38,6 +41,8 @@ private:
|
|||
Vector<NonnullRefPtr<FunctionDeclaration>> m_declarations_owner;
|
||||
HashMap<FlyString, FunctionDeclarationRef> m_abstract_operation_index;
|
||||
HashMap<StringView, EnumeratorRef> m_enumerator_nodes;
|
||||
|
||||
NonnullOwnPtr<Runtime::Realm> m_realm;
|
||||
};
|
||||
|
||||
struct FunctionArgument {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue