Bug 1550616 - Don't #include EitherParser.h in BytecodeCompilation.h when a simple forward-declaration will do. r=tcampbell
authorJeff Walden <jwalden@mit.edu>
Sun, 12 May 2019 22:15:51 +0000
changeset 532379 cb00aa26b3484a2fd795facb8d5df24d2249c64f
parent 532378 0fde18f5d16f490f98190180b30861aced722ccf
child 532380 441e225e25eb16f655ca20745168da240de9f9e4
push id11265
push userffxbld-merge
push dateMon, 13 May 2019 10:53:39 +0000
treeherdermozilla-beta@77e0fe8dbdd3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstcampbell
bugs1550616
milestone68.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1550616 - Don't #include EitherParser.h in BytecodeCompilation.h when a simple forward-declaration will do. r=tcampbell Differential Revision: https://phabricator.services.mozilla.com/D30579
js/src/frontend/BytecodeCompilation.h
--- a/js/src/frontend/BytecodeCompilation.h
+++ b/js/src/frontend/BytecodeCompilation.h
@@ -10,33 +10,34 @@
 #include "mozilla/Assertions.h"  // MOZ_ASSERT
 #include "mozilla/Attributes.h"  // MOZ_MUST_USE, MOZ_STACK_CLASS
 #include "mozilla/Maybe.h"       // mozilla::Maybe, mozilla::Nothing
 #include "mozilla/Utf8.h"        // mozilla::Utf8Unit
 
 #include <stddef.h>  // size_t
 #include <stdint.h>  // uint32_t
 
-#include "frontend/EitherParser.h"  // js::frontend::EitherParser
 #include "frontend/ParseContext.h"  // js::frontend::UsedNameTracker
 #include "frontend/SharedContext.h"  // js::frontend::Directives, js::frontend::{,Eval,Global}SharedContext
 #include "js/CompileOptions.h"  // JS::ReadOnlyCompileOptions
 #include "js/RootingAPI.h"      // JS::{,Mutable}Handle, JS::Rooted
 #include "js/SourceText.h"      // JS::SourceText
 #include "vm/JSContext.h"       // js::AutoKeepAtoms
 #include "vm/JSScript.h"  // js::{FunctionAsync,Generator}Kind, js::LazyScript, JSScript, js::ScriptSource, js::ScriptSourceObject
 #include "vm/Scope.h"     // js::ScopeKind
 
 class JSFunction;
 class JSObject;
 
 namespace js {
 
 namespace frontend {
 
+class EitherParser;
+
 template <typename Unit>
 class SourceAwareCompiler;
 template <typename Unit>
 class ScriptCompiler;
 template <typename Unit>
 class ModuleCompiler;
 template <typename Unit>
 class StandaloneFunctionCompiler;