mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:27:35 +00:00
LibJS: Rename Environment Records so they match the spec :^)
This patch makes the following name changes: - ScopeObject => EnvironmentRecord - LexicalEnvironment => DeclarativeEnvironmentRecord - WithScope => ObjectEnvironmentRecord
This commit is contained in:
parent
e9b4a0a830
commit
6c6dbcfc36
35 changed files with 297 additions and 297 deletions
|
@ -49,7 +49,7 @@ struct CallFrame {
|
|||
Value this_value;
|
||||
Vector<Value> arguments;
|
||||
Array* arguments_object { nullptr };
|
||||
ScopeObject* scope { nullptr };
|
||||
EnvironmentRecord* environment_record { nullptr };
|
||||
bool is_strict_mode { false };
|
||||
};
|
||||
|
||||
|
@ -122,8 +122,8 @@ public:
|
|||
const Vector<CallFrame*>& call_stack() const { return m_call_stack; }
|
||||
Vector<CallFrame*>& call_stack() { return m_call_stack; }
|
||||
|
||||
const ScopeObject* current_scope() const { return call_frame().scope; }
|
||||
ScopeObject* current_scope() { return call_frame().scope; }
|
||||
const EnvironmentRecord* current_scope() const { return call_frame().environment_record; }
|
||||
EnvironmentRecord* current_scope() { return call_frame().environment_record; }
|
||||
|
||||
bool in_strict_mode() const;
|
||||
|
||||
|
@ -192,11 +192,11 @@ public:
|
|||
FlyString unwind_until_label() const { return m_unwind_until_label; }
|
||||
|
||||
Value get_variable(const FlyString& name, GlobalObject&);
|
||||
void set_variable(const FlyString& name, Value, GlobalObject&, bool first_assignment = false, ScopeObject* specific_scope = nullptr);
|
||||
void set_variable(const FlyString& name, Value, GlobalObject&, bool first_assignment = false, EnvironmentRecord* specific_scope = nullptr);
|
||||
bool delete_variable(FlyString const& name);
|
||||
void assign(const Variant<NonnullRefPtr<Identifier>, NonnullRefPtr<BindingPattern>>& target, Value, GlobalObject&, bool first_assignment = false, ScopeObject* specific_scope = nullptr);
|
||||
void assign(const FlyString& target, Value, GlobalObject&, bool first_assignment = false, ScopeObject* specific_scope = nullptr);
|
||||
void assign(const NonnullRefPtr<BindingPattern>& target, Value, GlobalObject&, bool first_assignment = false, ScopeObject* specific_scope = nullptr);
|
||||
void assign(const Variant<NonnullRefPtr<Identifier>, NonnullRefPtr<BindingPattern>>& target, Value, GlobalObject&, bool first_assignment = false, EnvironmentRecord* specific_scope = nullptr);
|
||||
void assign(const FlyString& target, Value, GlobalObject&, bool first_assignment = false, EnvironmentRecord* specific_scope = nullptr);
|
||||
void assign(const NonnullRefPtr<BindingPattern>& target, Value, GlobalObject&, bool first_assignment = false, EnvironmentRecord* specific_scope = nullptr);
|
||||
|
||||
Reference get_reference(const FlyString& name);
|
||||
|
||||
|
@ -223,7 +223,7 @@ public:
|
|||
String join_arguments(size_t start_index = 0) const;
|
||||
|
||||
Value resolve_this_binding(GlobalObject&) const;
|
||||
const ScopeObject* find_this_scope() const;
|
||||
const EnvironmentRecord* find_this_scope() const;
|
||||
Value get_new_target() const;
|
||||
|
||||
template<typename... Args>
|
||||
|
@ -240,7 +240,7 @@ public:
|
|||
|
||||
CommonPropertyNames names;
|
||||
|
||||
Shape& scope_object_shape() { return *m_scope_object_shape; }
|
||||
Shape& environment_record_shape() { return *m_environment_record_shape; }
|
||||
|
||||
void run_queued_promise_jobs();
|
||||
void enqueue_promise_job(NativeFunction&);
|
||||
|
@ -286,7 +286,7 @@ private:
|
|||
JS_ENUMERATE_WELL_KNOWN_SYMBOLS
|
||||
#undef __JS_ENUMERATE
|
||||
|
||||
Shape* m_scope_object_shape { nullptr };
|
||||
Shape* m_environment_record_shape { nullptr };
|
||||
|
||||
bool m_underscore_is_last_value { false };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue