Skip to content

Commit 0e25412

Browse files
Remove a bunch of unnecessary includes
https://bugs.webkit.org/show_bug.cgi?id=162376 Reviewed by Mark Lam. Canonical link: https://commits.webkit.org/180411@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@206267 268f45cc-cd09-0410-ab3c-d52691b4dbfc
1 parent bfba854 commit 0e25412

53 files changed

Lines changed: 30 additions & 91 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Source/JavaScriptCore/API/JSObjectRef.cpp‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@
3030

3131
#include "APICast.h"
3232
#include "APIUtils.h"
33-
#include "ButterflyInlines.h"
34-
#include "CodeBlock.h"
3533
#include "DateConstructor.h"
3634
#include "ErrorConstructor.h"
3735
#include "Exception.h"
@@ -40,6 +38,7 @@
4038
#include "InitializeThreading.h"
4139
#include "JSAPIWrapperObject.h"
4240
#include "JSArray.h"
41+
#include "JSCInlines.h"
4342
#include "JSCallbackConstructor.h"
4443
#include "JSCallbackFunction.h"
4544
#include "JSCallbackObject.h"
@@ -52,7 +51,6 @@
5251
#include "JSValueRef.h"
5352
#include "ObjectConstructor.h"
5453
#include "ObjectPrototype.h"
55-
#include "JSCInlines.h"
5654
#include "PropertyNameArray.h"
5755
#include "RegExpConstructor.h"
5856

‎Source/JavaScriptCore/API/tests/FunctionOverridesTest.cpp‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
#include "JavaScriptCore.h"
3333
#include "Options.h"
3434
#include <string>
35-
#include <wtf/text/StringBuilder.h>
3635

3736
using JSC::Options;
3837

‎Source/JavaScriptCore/API/tests/GlobalContextWithFinalizerTest.cpp‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
#include "GlobalContextWithFinalizerTest.h"
2828

2929
#include "JavaScriptCore.h"
30-
#include <wtf/DataLog.h>
3130

3231
static bool failed = true;
3332

‎Source/JavaScriptCore/ChangeLog‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
2016-09-22 Joseph Pecoraro <pecoraro@apple.com>
2+
3+
Remove a bunch of unnecessary includes
4+
https://bugs.webkit.org/show_bug.cgi?id=162376
5+
6+
Reviewed by Mark Lam.
7+
18
2016-09-21 Keith Miller <keith_miller@apple.com>
29

310
Fix build for future versions of Clang.

‎Source/JavaScriptCore/bytecode/CallLinkStatus.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
namespace JSC {
3939

4040
class CodeBlock;
41-
class ExecutableBase;
4241
class InternalFunction;
4342
class JSFunction;
4443
class Structure;

‎Source/JavaScriptCore/bytecode/CodeBlock.h‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
#include "Instruction.h"
5252
#include "JITCode.h"
5353
#include "JITMathICForwards.h"
54-
#include "JITWriteBarrier.h"
5554
#include "JSCell.h"
5655
#include "JSGlobalObject.h"
5756
#include "JumpTable.h"
@@ -62,7 +61,6 @@
6261
#include "Options.h"
6362
#include "ProfilerJettisonReason.h"
6463
#include "PutPropertySlot.h"
65-
#include "RegExpObject.h"
6664
#include "UnconditionalFinalizer.h"
6765
#include "ValueProfile.h"
6866
#include "VirtualRegister.h"
@@ -85,7 +83,6 @@ class LLIntOffsetsExtractor;
8583
class PCToCodeOriginMap;
8684
class RegisterAtOffsetList;
8785
class StructureStubInfo;
88-
class TypeLocation;
8986

9087
enum class AccessType : int8_t;
9188

‎Source/JavaScriptCore/bytecode/CodeOrigin.h‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,9 @@
3737

3838
namespace JSC {
3939

40+
class CodeBlock;
41+
struct DumpContext;
4042
struct InlineCallFrame;
41-
class ExecState;
42-
class ScriptExecutable;
43-
class JSFunction;
4443

4544
struct CodeOrigin {
4645
static const unsigned invalidBytecodeIndex = UINT_MAX;

‎Source/JavaScriptCore/bytecode/SpeculatedType.cpp‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,13 @@
3030
#include "SpeculatedType.h"
3131

3232
#include "DirectArguments.h"
33-
#include "JSCInlines.h"
3433
#include "JSArray.h"
34+
#include "JSCInlines.h"
3535
#include "JSFunction.h"
3636
#include "JSMap.h"
3737
#include "JSSet.h"
3838
#include "ProxyObject.h"
39+
#include "RegExpObject.h"
3940
#include "ScopedArguments.h"
4041
#include "StringObject.h"
4142
#include "ValueProfile.h"

‎Source/JavaScriptCore/bytecode/UnlinkedCodeBlock.h‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ class BytecodeRewriter;
4949
class Debugger;
5050
class FunctionMetadataNode;
5151
class FunctionExecutable;
52-
class JSScope;
5352
class ParserError;
5453
class ScriptExecutable;
5554
class SourceCode;
@@ -108,8 +107,6 @@ struct UnlinkedInstruction {
108107
} u;
109108
};
110109

111-
class BytecodeGeneratorification;
112-
113110
class UnlinkedCodeBlock : public JSCell {
114111
public:
115112
typedef JSCell Base;

‎Source/JavaScriptCore/bytecode/ValueProfile.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@
4141

4242
namespace JSC {
4343

44-
class CCallHelpers;
45-
4644
template<unsigned numberOfBucketsArgument>
4745
struct ValueProfileBase {
4846
static const unsigned numberOfBuckets = numberOfBucketsArgument;

0 commit comments

Comments
 (0)