Reduce includes of Debugger.h
authorjoepeck@webkit.org <joepeck@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 15 Aug 2016 18:48:31 +0000 (18:48 +0000)
committerjoepeck@webkit.org <joepeck@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 15 Aug 2016 18:48:31 +0000 (18:48 +0000)
https://bugs.webkit.org/show_bug.cgi?id=160827

Reviewed by Mark Lam.

* API/JSTypedArray.cpp:
* bytecode/UnlinkedCodeBlock.h:
* bytecode/UnlinkedFunctionExecutable.cpp:
* bytecode/UnlinkedFunctionExecutable.h:
* bytecompiler/BytecodeGenerator.h:
* bytecompiler/NodesCodegen.cpp:
* dfg/DFGPlan.cpp:
* dfg/DFGSpeculativeJIT32_64.cpp:
* dfg/DFGSpeculativeJIT64.cpp:
* ftl/FTLJITCode.h:
* inspector/ScriptCallStackFactory.cpp:
* inspector/agents/InspectorDebuggerAgent.h:
* jit/JITOpcodes.cpp:
* jit/JITOpcodes32_64.cpp:
* jit/JITOperations.cpp:
* llint/LLIntOffsetsExtractor.cpp:
* parser/Nodes.cpp:
* parser/Parser.cpp:
* parser/Parser.h:
* runtime/Completion.cpp:
* runtime/Executable.cpp:
* runtime/Executable.h:
* runtime/FunctionConstructor.cpp:
* runtime/SamplingProfiler.cpp:
* runtime/SamplingProfiler.h:
* runtime/VMEntryScope.cpp:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@204470 268f45cc-cd09-0410-ab3c-d52691b4dbfc

27 files changed:
Source/JavaScriptCore/API/JSTypedArray.cpp
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/bytecode/UnlinkedCodeBlock.h
Source/JavaScriptCore/bytecode/UnlinkedFunctionExecutable.cpp
Source/JavaScriptCore/bytecode/UnlinkedFunctionExecutable.h
Source/JavaScriptCore/bytecompiler/BytecodeGenerator.h
Source/JavaScriptCore/bytecompiler/NodesCodegen.cpp
Source/JavaScriptCore/dfg/DFGPlan.cpp
Source/JavaScriptCore/dfg/DFGSpeculativeJIT32_64.cpp
Source/JavaScriptCore/dfg/DFGSpeculativeJIT64.cpp
Source/JavaScriptCore/ftl/FTLJITCode.h
Source/JavaScriptCore/inspector/ScriptCallStackFactory.cpp
Source/JavaScriptCore/inspector/agents/InspectorDebuggerAgent.h
Source/JavaScriptCore/jit/JITOpcodes.cpp
Source/JavaScriptCore/jit/JITOpcodes32_64.cpp
Source/JavaScriptCore/jit/JITOperations.cpp
Source/JavaScriptCore/llint/LLIntOffsetsExtractor.cpp
Source/JavaScriptCore/parser/Nodes.cpp
Source/JavaScriptCore/parser/Parser.cpp
Source/JavaScriptCore/parser/Parser.h
Source/JavaScriptCore/runtime/Completion.cpp
Source/JavaScriptCore/runtime/Executable.cpp
Source/JavaScriptCore/runtime/Executable.h
Source/JavaScriptCore/runtime/FunctionConstructor.cpp
Source/JavaScriptCore/runtime/SamplingProfiler.cpp
Source/JavaScriptCore/runtime/SamplingProfiler.h
Source/JavaScriptCore/runtime/VMEntryScope.cpp

index edb610a..b509970 100644 (file)
@@ -36,7 +36,6 @@
 #include "JSDataView.h"
 #include "JSGenericTypedArrayViewInlines.h"
 #include "JSTypedArrays.h"
-
 #include <wtf/RefPtr.h>
 
 using namespace JSC;
index dc5f192..e748fe3 100644 (file)
@@ -1,5 +1,39 @@
 2016-08-15  Joseph Pecoraro  <pecoraro@apple.com>
 
+        Reduce includes of Debugger.h
+        https://bugs.webkit.org/show_bug.cgi?id=160827
+
+        Reviewed by Mark Lam.
+
+        * API/JSTypedArray.cpp:
+        * bytecode/UnlinkedCodeBlock.h:
+        * bytecode/UnlinkedFunctionExecutable.cpp:
+        * bytecode/UnlinkedFunctionExecutable.h:
+        * bytecompiler/BytecodeGenerator.h:
+        * bytecompiler/NodesCodegen.cpp:
+        * dfg/DFGPlan.cpp:
+        * dfg/DFGSpeculativeJIT32_64.cpp:
+        * dfg/DFGSpeculativeJIT64.cpp:
+        * ftl/FTLJITCode.h:
+        * inspector/ScriptCallStackFactory.cpp:
+        * inspector/agents/InspectorDebuggerAgent.h:
+        * jit/JITOpcodes.cpp:
+        * jit/JITOpcodes32_64.cpp:
+        * jit/JITOperations.cpp:
+        * llint/LLIntOffsetsExtractor.cpp:
+        * parser/Nodes.cpp:
+        * parser/Parser.cpp:
+        * parser/Parser.h:
+        * runtime/Completion.cpp:
+        * runtime/Executable.cpp:
+        * runtime/Executable.h:
+        * runtime/FunctionConstructor.cpp:
+        * runtime/SamplingProfiler.cpp:
+        * runtime/SamplingProfiler.h:
+        * runtime/VMEntryScope.cpp:
+
+2016-08-15  Joseph Pecoraro  <pecoraro@apple.com>
+
         Remove unused includes of wtf headers
         https://bugs.webkit.org/show_bug.cgi?id=160839
 
index 1fd54ea..99d476b 100644 (file)
 #include "UnlinkedFunctionExecutable.h"
 #include "VariableEnvironment.h"
 #include "VirtualRegister.h"
-#include <wtf/RefCountedArray.h>
 #include <wtf/TriState.h>
 #include <wtf/Vector.h>
 
 namespace JSC {
 
-class Debugger;
 class FunctionMetadataNode;
 class FunctionExecutable;
 class JSScope;
index 4b8453a..3f014f8 100644 (file)
 #include "BytecodeGenerator.h"
 #include "ClassInfo.h"
 #include "CodeCache.h"
+#include "Debugger.h"
 #include "Executable.h"
 #include "ExecutableInfo.h"
 #include "FunctionOverrides.h"
 #include "JSCInlines.h"
-#include "JSString.h"
 #include "Parser.h"
 #include "SourceProvider.h"
 #include "Structure.h"
-#include "SymbolTable.h"
-#include "UnlinkedInstructionStream.h"
-#include <wtf/DataLog.h>
 
 namespace JSC {
 
index fdd46a7..cec7613 100644 (file)
@@ -41,7 +41,6 @@
 #include "SpecialPointer.h"
 #include "VariableEnvironment.h"
 #include "VirtualRegister.h"
-#include <wtf/RefCountedArray.h>
 
 namespace JSC {
 
index ba9a94d..0516e72 100644 (file)
 #define BytecodeGenerator_h
 
 #include "CodeBlock.h"
-#include <wtf/HashTraits.h>
 #include "Instruction.h"
+#include "Interpreter.h"
 #include "Label.h"
 #include "LabelScope.h"
-#include "Interpreter.h"
+#include "Nodes.h"
 #include "ParserError.h"
 #include "RegisterID.h"
 #include "SetForScope.h"
-#include "SymbolTable.h"
-#include "Debugger.h"
-#include "Nodes.h"
 #include "StaticPropertyAnalyzer.h"
+#include "SymbolTable.h"
 #include "TemplateRegistryKey.h"
 #include "UnlinkedCodeBlock.h"
-
 #include <functional>
-
+#include <wtf/HashTraits.h>
 #include <wtf/PassRefPtr.h>
 #include <wtf/SegmentedVector.h>
 #include <wtf/Vector.h>
 
-
 namespace JSC {
 
     class Identifier;
index e22c5bf..c5a217a 100644 (file)
 #include "BuiltinNames.h"
 #include "BytecodeGenerator.h"
 #include "CallFrame.h"
-#include "Debugger.h"
 #include "JIT.h"
 #include "JSFunction.h"
 #include "JSGeneratorFunction.h"
 #include "JSGlobalObject.h"
-#include "JSONObject.h"
 #include "LabelScope.h"
 #include "Lexer.h"
 #include "JSCInlines.h"
@@ -48,7 +46,6 @@
 #include "StackAlignment.h"
 #include "TemplateRegistryKey.h"
 #include <wtf/Assertions.h>
-#include <wtf/RefCountedLeakCounter.h>
 #include <wtf/Threading.h>
 
 using namespace WTF;
index 9a22942..09db8e0 100644 (file)
@@ -74,7 +74,6 @@
 #include "DFGVarargsForwardingPhase.h"
 #include "DFGVirtualRegisterAllocationPhase.h"
 #include "DFGWatchpointCollectionPhase.h"
-#include "Debugger.h"
 #include "JSCInlines.h"
 #include "OperandsInlines.h"
 #include "ProfilerDatabase.h"
index 9cab9d9..10ddc4d 100644 (file)
@@ -35,7 +35,6 @@
 #include "DFGCallArrayAllocatorSlowPathGenerator.h"
 #include "DFGOperations.h"
 #include "DFGSlowPathGenerator.h"
-#include "Debugger.h"
 #include "DirectArguments.h"
 #include "GetterSetter.h"
 #include "JSEnvironmentRecord.h"
index 8f18cc3..dd6a68f 100644 (file)
@@ -34,7 +34,6 @@
 #include "DFGCallArrayAllocatorSlowPathGenerator.h"
 #include "DFGOperations.h"
 #include "DFGSlowPathGenerator.h"
-#include "Debugger.h"
 #include "DirectArguments.h"
 #include "GetterSetter.h"
 #include "JSCInlines.h"
index 6f90545..119e0df 100644 (file)
@@ -33,7 +33,6 @@
 #include "FTLLazySlowPath.h"
 #include "FTLOSRExit.h"
 #include "JITCode.h"
-#include <wtf/RefCountedArray.h>
 
 namespace JSC {
 
index bd4c1c5..a5f976d 100644 (file)
@@ -43,7 +43,6 @@
 #include "ScriptCallStack.h"
 #include "ScriptValue.h"
 #include "StackVisitor.h"
-#include <wtf/RefCountedArray.h>
 #include <wtf/text/WTFString.h>
 
 using namespace JSC;
index 1c576d0..65415c9 100644 (file)
@@ -41,7 +41,6 @@
 #include <wtf/HashMap.h>
 #include <wtf/Noncopyable.h>
 #include <wtf/Vector.h>
-#include <wtf/text/StringHash.h>
 
 namespace Inspector {
 
index 63fa466..7f7c745 100644 (file)
@@ -30,7 +30,6 @@
 
 #include "BasicBlockLocation.h"
 #include "CopiedSpaceInlines.h"
-#include "Debugger.h"
 #include "Exception.h"
 #include "Heap.h"
 #include "JITInlines.h"
index 92e6c6a..4b34981 100644 (file)
 #include "JIT.h"
 
 #include "CCallHelpers.h"
-#include "Debugger.h"
 #include "Exception.h"
 #include "JITInlines.h"
 #include "JSArray.h"
 #include "JSCell.h"
-#include "JSEnvironmentRecord.h"
 #include "JSFunction.h"
 #include "JSPropertyNameEnumerator.h"
 #include "LinkBuffer.h"
index a4cea5b..b1c628d 100644 (file)
@@ -52,7 +52,6 @@
 #include "JSGlobalObjectFunctions.h"
 #include "JSLexicalEnvironment.h"
 #include "JSPropertyNameEnumerator.h"
-#include "JSWithScope.h"
 #include "ObjectConstructor.h"
 #include "PolymorphicAccess.h"
 #include "PropertyName.h"
index 307eaf0..64d2460 100644 (file)
@@ -28,7 +28,6 @@
 #include "ArrayProfile.h"
 #include "CodeBlock.h"
 #include "CommonSlowPaths.h"
-#include "Debugger.h"
 #include "DirectArguments.h"
 #include "Exception.h"
 #include "Executable.h"
index 238f6da..3a08b63 100644 (file)
 #include "Nodes.h"
 #include "NodeConstructors.h"
 
-#include "CallFrame.h"
-#include "Debugger.h"
-#include "JIT.h"
-#include "JSFunction.h"
-#include "JSGlobalObject.h"
-#include "LabelScope.h"
-#include "Lexer.h"
 #include "JSCInlines.h"
-#include "Parser.h"
-#include "PropertyNameArray.h"
-#include "RegExpObject.h"
 #include <wtf/Assertions.h>
-#include <wtf/Threading.h>
 
 using namespace WTF;
 
 namespace JSC {
 
-
 // ------------------------------ StatementNode --------------------------------
 
 void StatementNode::setLoc(unsigned firstLine, unsigned lastLine, int startOffset, int lineStartOffset)
index 3c1aa7a..18edc02 100644 (file)
 #include "Parser.h"
 
 #include "ASTBuilder.h"
-#include "CodeBlock.h"
-#include "Debugger.h"
-#include "JSCJSValueInlines.h"
-#include "Lexer.h"
 #include "JSCInlines.h"
 #include "SetForScope.h"
 #include "SourceProvider.h"
 #include "VM.h"
 #include <utility>
-#include <wtf/HashFunctions.h>
 #include <wtf/StringPrintStream.h>
-#include <wtf/WTFThreadData.h>
 
 
 #define updateErrorMessage(shouldPrintToken, ...) do {\
index 3499bba..4fa22fa 100644 (file)
 #ifndef Parser_h
 #define Parser_h
 
-#include "Debugger.h"
 #include "ExceptionHelpers.h"
 #include "Executable.h"
-#include "JSGlobalObject.h"
 #include "Lexer.h"
 #include "ModuleScopeData.h"
 #include "Nodes.h"
index 952683d..632f7fb 100644 (file)
@@ -25,7 +25,6 @@
 
 #include "CallFrame.h"
 #include "CodeProfiling.h"
-#include "Debugger.h"
 #include "Exception.h"
 #include "IdentifierInlines.h"
 #include "Interpreter.h"
index 955066a..4c9449d 100644 (file)
 
 #include "BatchedTransitionOptimizer.h"
 #include "CodeBlock.h"
-#include "DFGDriver.h"
+#include "Debugger.h"
 #include "JIT.h"
 #include "JSCInlines.h"
 #include "JSWASMModule.h"
 #include "LLIntEntrypoint.h"
 #include "Parser.h"
-#include "ProfilerDatabase.h"
 #include "TypeProfiler.h"
 #include "VMInlines.h"
 #include <wtf/CommaPrinter.h>
-#include <wtf/Vector.h>
-#include <wtf/text/StringBuilder.h>
 
 namespace JSC {
 
index b506b1c..2d00919 100644 (file)
@@ -44,7 +44,6 @@
 namespace JSC {
 
 class CodeBlock;
-class Debugger;
 class EvalCodeBlock;
 class FunctionCodeBlock;
 class JSScope;
index f34f489..591f2c8 100644 (file)
 #include "config.h"
 #include "FunctionConstructor.h"
 
-#include "Debugger.h"
 #include "ExceptionHelpers.h"
 #include "FunctionPrototype.h"
 #include "JSFunction.h"
 #include "JSGlobalObject.h"
-#include "JSString.h"
-#include "Lexer.h"
-#include "Nodes.h"
 #include "JSCInlines.h"
-#include "Parser.h"
 #include <wtf/text/StringBuilder.h>
 
 namespace JSC {
index 25284de..fbf618c 100644 (file)
@@ -30,7 +30,6 @@
 
 #include "CallFrame.h"
 #include "CodeBlock.h"
-#include "Debugger.h"
 #include "Executable.h"
 #include "HeapInlines.h"
 #include "HeapIterationScope.h"
@@ -46,7 +45,6 @@
 #include "SlotVisitorInlines.h"
 #include "StructureInlines.h"
 #include "VM.h"
-#include "VMEntryScope.h"
 #include <wtf/HashSet.h>
 #include <wtf/RandomNumber.h>
 #include <wtf/RefPtr.h>
index 8df408c..ada88df 100644 (file)
@@ -36,7 +36,6 @@
 #include <wtf/Lock.h>
 #include <wtf/Stopwatch.h>
 #include <wtf/Vector.h>
-#include <wtf/WorkQueue.h>
 
 namespace JSC {
 
index 8241dec..86835bb 100644 (file)
@@ -26,7 +26,6 @@
 #include "config.h"
 #include "VMEntryScope.h"
 
-#include "Debugger.h"
 #include "Options.h"
 #include "SamplingProfiler.h"
 #include "VM.h"