Bug 1550616 - Don't #include EitherParser.h in BytecodeCompilation.h when a simple forward-declaration will do. r=tcampbell
☠☠ backed out by 464bde42a158 ☠ ☠
authorJeff Walden <jwalden@mit.edu>
Sun, 12 May 2019 01:39:24 +0000
changeset 532356 f1a3220fc10b57240e57bde4bfeba9745013dffe
parent 532355 b435e9bb58cc70ce432f6f3fc837fa318d35a637
child 532357 464bde42a1588d89f7822d175f86db7f93d211ea
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;