Bug 1598709 - Fix up the Windows platforms that were overriding the variant settings r=ahal

Differential Revision: https://phabricator.services.mozilla.com/D54335

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Steve Fink 2019-11-22 20:04:42 +00:00
Родитель c76d2e3fa0
Коммит 5232fd68ef
3 изменённых файлов: 2 добавлений и 5 удалений

Просмотреть файл

@ -189,9 +189,6 @@ if opt is not None:
CONFIGURE_ARGS += (" --enable-optimize" if opt else " --disable-optimize")
opt = args.debug
if opt is None and args.platform:
# Override variant['debug'].
opt = ('-debug' in args.platform)
if opt is None:
opt = variant.get('debug')
if opt is not None:

Просмотреть файл

@ -14,7 +14,7 @@
namespace js {
inline bool BytecodeLocation::isValid(const JSScript* script) const {
inline JS_PUBLIC_API bool BytecodeLocation::isValid(const JSScript* script) const {
// Note: Don't create a new BytecodeLocation during the implementation of
// this, as it is used in the constructor, and will recurse forever.
return script->contains(*this) || toRawBytecode() == script->codeEnd();

Просмотреть файл

@ -67,7 +67,7 @@ class BytecodeLocation {
// Return true if this bytecode location is valid for the given script.
// This includes the location 1-past the end of the bytecode.
bool isValid(const JSScript* script) const;
JS_PUBLIC_API bool isValid(const JSScript* script) const;
// Return true if this bytecode location is within the bounds of the
// bytecode for a given script.