/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- * vim: set ts=8 sts=2 et sw=2 tw=80: * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// This is declarated as a class mostly to solve dependency around `friend` // declarations in the simple way. class Smoosh { public:
[[nodiscard]] staticbool tryCompileGlobalScriptToExtensibleStencil(
JSContext* cx, FrontendContext* fc, CompilationInput& input,
JS::SourceText<mozilla::Utf8Unit>& srcBuf,
UniquePtr<ExtensibleCompilationStencil>& stencilOut);
};
// Initialize SmooshMonkey globals, such as the logging system. void InitSmoosh();
// Use the SmooshMonkey frontend to parse and free the generated AST. Returns // true if no error were detected while parsing.
[[nodiscard]] bool SmooshParseScript(JSContext* cx, const uint8_t* bytes,
size_t length);
[[nodiscard]] bool SmooshParseModule(JSContext* cx, const uint8_t* bytes,
size_t length);
} // namespace frontend
} // namespace js
#endif/* frontend_Frontend2_h */
Messung V0.5
¤ Dauer der Verarbeitung: 0.13 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.