mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 22:18:12 +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
|
@ -14,7 +14,7 @@
|
|||
#include <LibJS/Bytecode/Register.h>
|
||||
#include <LibJS/Bytecode/StringTable.h>
|
||||
#include <LibJS/Heap/Cell.h>
|
||||
#include <LibJS/Runtime/ScopeObject.h>
|
||||
#include <LibJS/Runtime/EnvironmentRecord.h>
|
||||
#include <LibJS/Runtime/Value.h>
|
||||
|
||||
namespace JS::Bytecode::Op {
|
||||
|
@ -635,10 +635,10 @@ private:
|
|||
Optional<Label> m_continuation_label;
|
||||
};
|
||||
|
||||
class PushLexicalEnvironment final : public Instruction {
|
||||
class PushDeclarativeEnvironmentRecord final : public Instruction {
|
||||
public:
|
||||
explicit PushLexicalEnvironment(HashMap<u32, Variable> variables)
|
||||
: Instruction(Type::PushLexicalEnvironment)
|
||||
explicit PushDeclarativeEnvironmentRecord(HashMap<u32, Variable> variables)
|
||||
: Instruction(Type::PushDeclarativeEnvironmentRecord)
|
||||
, m_variables(move(variables))
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue