mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-05 23:07:31 +09:00
Issue #1691 - Part 5: Don't pre-create module metadata object when compiling. https://bugzilla.mozilla.org/show_bug.cgi?id=1489477
(cherry picked from commit d83bad49f6b03894548fbf85fc18ad7e8cc19a93)
This commit is contained in:
parent
7a6dab0b38
commit
c965fbdd10
11 changed files with 81 additions and 11 deletions
|
|
@ -8379,6 +8379,33 @@ class MSubstr
|
|||
}
|
||||
};
|
||||
|
||||
class MModuleMetadata : public MNullaryInstruction
|
||||
{
|
||||
CompilerObject module_;
|
||||
|
||||
explicit MModuleMetadata(JSObject* module)
|
||||
: module_(module)
|
||||
{
|
||||
setResultType(MIRType::Object);
|
||||
}
|
||||
|
||||
public:
|
||||
INSTRUCTION_HEADER(ModuleMetadata)
|
||||
TRIVIAL_NEW_WRAPPERS
|
||||
|
||||
JSObject* module() const {
|
||||
return module_;
|
||||
}
|
||||
|
||||
AliasSet getAliasSet() const override {
|
||||
return AliasSet::None();
|
||||
}
|
||||
|
||||
bool appendRoots(MRootList& roots) const override {
|
||||
return roots.append(module_);
|
||||
}
|
||||
};
|
||||
|
||||
class MDynamicImport : public MBinaryInstruction,
|
||||
public BoxInputsPolicy::Data
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue