mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 888768 (part 2) - Remove frontend/SharedContext-inl.h. r=till.
--HG-- extra : rebase_source : d9bb2d56d54eed908a8d9301519866bd417321df
This commit is contained in:
parent
8d4ab5891d
commit
5cec6b541a
@ -10,6 +10,7 @@
|
||||
#include "frontend/BytecodeEmitter.h"
|
||||
#include "frontend/FoldConstants.h"
|
||||
#include "frontend/NameFunctions.h"
|
||||
#include "frontend/Parser.h"
|
||||
#include "ion/AsmJS.h"
|
||||
#include "vm/GlobalObject.h"
|
||||
|
||||
@ -17,7 +18,6 @@
|
||||
#include "jsscriptinlines.h"
|
||||
|
||||
#include "frontend/ParseMaps-inl.h"
|
||||
#include "frontend/SharedContext-inl.h"
|
||||
#include "vm/ScopeObject-inl.h"
|
||||
|
||||
using namespace js;
|
||||
|
@ -38,7 +38,6 @@
|
||||
|
||||
#include "frontend/ParseMaps-inl.h"
|
||||
#include "frontend/ParseNode-inl.h"
|
||||
#include "frontend/SharedContext-inl.h"
|
||||
|
||||
using namespace js;
|
||||
using namespace js::gc;
|
||||
|
@ -43,7 +43,6 @@
|
||||
|
||||
#include "frontend/ParseMaps-inl.h"
|
||||
#include "frontend/ParseNode-inl.h"
|
||||
#include "frontend/SharedContext-inl.h"
|
||||
|
||||
#include "vm/NumericConversions.h"
|
||||
|
||||
|
@ -1,25 +0,0 @@
|
||||
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
* vim: set ts=8 sts=4 et sw=4 tw=99:
|
||||
* 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/. */
|
||||
|
||||
#ifndef frontend_SharedContext_inl_h
|
||||
#define frontend_SharedContext_inl_h
|
||||
|
||||
#include "frontend/Parser.h"
|
||||
#include "frontend/SharedContext.h"
|
||||
|
||||
namespace js {
|
||||
namespace frontend {
|
||||
|
||||
inline bool
|
||||
SharedContext::needStrictChecks()
|
||||
{
|
||||
return strict || extraWarnings;
|
||||
}
|
||||
|
||||
} /* namespace frontend */
|
||||
} // namespace js
|
||||
|
||||
#endif /* frontend_SharedContext_inl_h */
|
@ -180,7 +180,9 @@ class SharedContext
|
||||
void setHasDebuggerStatement() { anyCxFlags.hasDebuggerStatement = true; }
|
||||
|
||||
// JSOPTION_EXTRA_WARNINGS warnings or strict mode errors.
|
||||
inline bool needStrictChecks();
|
||||
bool needStrictChecks() {
|
||||
return strict || extraWarnings;
|
||||
}
|
||||
};
|
||||
|
||||
class GlobalSharedContext : public SharedContext
|
||||
|
Loading…
Reference in New Issue
Block a user