зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1689334
- Part 4: Move ObjLiteralStencil method definitions to ObjLiteral.cpp. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D103511
This commit is contained in:
Родитель
db044765b7
Коммит
3d646a954e
|
@ -156,11 +156,6 @@ void CGScopeNoteList::recordEndImpl(uint32_t index, uint32_t offset) {
|
|||
list[index].length = offset - list[index].start;
|
||||
}
|
||||
|
||||
JSObject* ObjLiteralStencil::create(
|
||||
JSContext* cx, const CompilationAtomCache& atomCache) const {
|
||||
return InterpretObjLiteral(cx, atomCache, code_, flags_);
|
||||
}
|
||||
|
||||
BytecodeSection::BytecodeSection(JSContext* cx, uint32_t lineNum,
|
||||
uint32_t column)
|
||||
: code_(cx),
|
||||
|
|
|
@ -116,15 +116,19 @@ static JSObject* InterpretObjLiteralArray(
|
|||
NewObjectKind::TenuredObject);
|
||||
}
|
||||
|
||||
JSObject* InterpretObjLiteral(JSContext* cx,
|
||||
const frontend::CompilationAtomCache& atomCache,
|
||||
const mozilla::Span<const uint8_t> literalInsns,
|
||||
ObjLiteralFlags flags) {
|
||||
static JSObject* InterpretObjLiteral(
|
||||
JSContext* cx, const frontend::CompilationAtomCache& atomCache,
|
||||
const mozilla::Span<const uint8_t> literalInsns, ObjLiteralFlags flags) {
|
||||
return flags.contains(ObjLiteralFlag::Array)
|
||||
? InterpretObjLiteralArray(cx, atomCache, literalInsns, flags)
|
||||
: InterpretObjLiteralObj(cx, atomCache, literalInsns, flags);
|
||||
}
|
||||
|
||||
JSObject* ObjLiteralStencil::create(
|
||||
JSContext* cx, const frontend::CompilationAtomCache& atomCache) const {
|
||||
return InterpretObjLiteral(cx, atomCache, code_, flags_);
|
||||
}
|
||||
|
||||
#if defined(DEBUG) || defined(JS_JITSPEW)
|
||||
|
||||
static void DumpObjLiteralFlagsItems(js::JSONPrinter& json,
|
||||
|
|
|
@ -532,11 +532,6 @@ struct ObjLiteralReader : private ObjLiteralReaderBase {
|
|||
}
|
||||
};
|
||||
|
||||
JSObject* InterpretObjLiteral(JSContext* cx,
|
||||
const frontend::CompilationAtomCache& atomCache,
|
||||
const mozilla::Span<const uint8_t> insns,
|
||||
ObjLiteralFlags flags);
|
||||
|
||||
class ObjLiteralStencil {
|
||||
friend class frontend::StencilXDR;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче