Bug 888768 (part 2) - Remove frontend/SharedContext-inl.h. r=till.

--HG--
extra : rebase_source : d9bb2d56d54eed908a8d9301519866bd417321df
This commit is contained in:
Nicholas Nethercote 2013-07-11 18:00:17 -07:00
parent ea4182bf42
commit 27342d58d4
5 changed files with 4 additions and 29 deletions

View File

@ -10,6 +10,7 @@
#include "frontend/BytecodeEmitter.h" #include "frontend/BytecodeEmitter.h"
#include "frontend/FoldConstants.h" #include "frontend/FoldConstants.h"
#include "frontend/NameFunctions.h" #include "frontend/NameFunctions.h"
#include "frontend/Parser.h"
#include "ion/AsmJS.h" #include "ion/AsmJS.h"
#include "vm/GlobalObject.h" #include "vm/GlobalObject.h"
@ -17,7 +18,6 @@
#include "jsscriptinlines.h" #include "jsscriptinlines.h"
#include "frontend/ParseMaps-inl.h" #include "frontend/ParseMaps-inl.h"
#include "frontend/SharedContext-inl.h"
#include "vm/ScopeObject-inl.h" #include "vm/ScopeObject-inl.h"
using namespace js; using namespace js;

View File

@ -38,7 +38,6 @@
#include "frontend/ParseMaps-inl.h" #include "frontend/ParseMaps-inl.h"
#include "frontend/ParseNode-inl.h" #include "frontend/ParseNode-inl.h"
#include "frontend/SharedContext-inl.h"
using namespace js; using namespace js;
using namespace js::gc; using namespace js::gc;

View File

@ -43,7 +43,6 @@
#include "frontend/ParseMaps-inl.h" #include "frontend/ParseMaps-inl.h"
#include "frontend/ParseNode-inl.h" #include "frontend/ParseNode-inl.h"
#include "frontend/SharedContext-inl.h"
#include "vm/NumericConversions.h" #include "vm/NumericConversions.h"

View File

@ -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 */

View File

@ -180,7 +180,9 @@ class SharedContext
void setHasDebuggerStatement() { anyCxFlags.hasDebuggerStatement = true; } void setHasDebuggerStatement() { anyCxFlags.hasDebuggerStatement = true; }
// JSOPTION_EXTRA_WARNINGS warnings or strict mode errors. // JSOPTION_EXTRA_WARNINGS warnings or strict mode errors.
inline bool needStrictChecks(); bool needStrictChecks() {
return strict || extraWarnings;
}
}; };
class GlobalSharedContext : public SharedContext class GlobalSharedContext : public SharedContext