Skip to content

Commit 00a07bc

Browse files
mstarzingerCommit bot
authored andcommitted
Remove inline header includes from non-inline headers (1).
This tries to remove includes of "-inl.h" headers from normal ".h" headers, thereby reducing the chance of any cyclic dependencies and decreasing the average size of our compilation units. Note that this change still leaves 7 violations of that rule in the code. However there now is the "tools/check-inline-includes.sh" tool detecting such violations. R=bmeurer@chromium.org Review URL: https://codereview.chromium.org/1283033003 Cr-Commit-Position: refs/heads/master@{#30125}
1 parent c1d20f8 commit 00a07bc

46 files changed

Lines changed: 85 additions & 57 deletions

Some content is hidden

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

src/allocation-tracker.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
#include "src/allocation-tracker.h"
88
#include "src/frames-inl.h"
9-
#include "src/heap-snapshot-generator.h"
9+
#include "src/heap-snapshot-generator-inl.h"
1010

1111
namespace v8 {
1212
namespace internal {

src/api.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include "src/base/platform/time.h"
2121
#include "src/base/utils/random-number-generator.h"
2222
#include "src/bootstrapper.h"
23+
#include "src/char-predicates-inl.h"
2324
#include "src/code-stubs.h"
2425
#include "src/compiler.h"
2526
#include "src/context-measure.h"

src/api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#include "src/contexts.h"
1010
#include "src/factory.h"
1111
#include "src/isolate.h"
12-
#include "src/list-inl.h"
12+
#include "src/list.h"
1313
#include "src/objects-inl.h"
1414

1515
namespace v8 {

src/arm/regexp-macro-assembler-arm.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#define V8_ARM_REGEXP_MACRO_ASSEMBLER_ARM_H_
77

88
#include "src/arm/assembler-arm.h"
9-
#include "src/arm/assembler-arm-inl.h"
109
#include "src/macro-assembler.h"
1110

1211
namespace v8 {

src/arm64/macro-assembler-arm64.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@
77

88
#include <vector>
99

10+
#include "src/arm64/assembler-arm64.h"
1011
#include "src/bailout-reason.h"
11-
#include "src/globals.h"
12-
13-
#include "src/arm64/assembler-arm64-inl.h"
1412
#include "src/base/bits.h"
13+
#include "src/globals.h"
1514

1615
// Simulator specific helpers.
1716
#if USE_SIMULATOR

src/arm64/regexp-macro-assembler-arm64.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@
55
#ifndef V8_ARM64_REGEXP_MACRO_ASSEMBLER_ARM64_H_
66
#define V8_ARM64_REGEXP_MACRO_ASSEMBLER_ARM64_H_
77

8-
#include "src/macro-assembler.h"
9-
108
#include "src/arm64/assembler-arm64.h"
11-
#include "src/arm64/assembler-arm64-inl.h"
9+
#include "src/macro-assembler.h"
1210

1311
namespace v8 {
1412
namespace internal {

src/assembler.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,19 @@
3838
#include "src/allocation.h"
3939
#include "src/builtins.h"
4040
#include "src/isolate.h"
41-
#include "src/objects-inl.h"
4241
#include "src/runtime/runtime.h"
4342
#include "src/token.h"
4443

4544
namespace v8 {
4645

46+
// Forward declarations.
4747
class ApiFunction;
4848

4949
namespace internal {
5050

51+
// Forward declarations.
5152
class StatsCounter;
53+
5254
// -----------------------------------------------------------------------------
5355
// Platform independent assembler base class.
5456

src/ast.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include "src/factory.h"
1414
#include "src/isolate.h"
1515
#include "src/jsregexp.h"
16-
#include "src/list-inl.h"
16+
#include "src/list.h"
1717
#include "src/modules.h"
1818
#include "src/runtime/runtime.h"
1919
#include "src/small-pointer-list.h"

src/char-predicates.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ namespace internal {
1313
// Unicode character predicates as defined by ECMA-262, 3rd,
1414
// used for lexical analysis.
1515

16+
inline int AsciiAlphaToLower(uc32 c);
1617
inline bool IsCarriageReturn(uc32 c);
1718
inline bool IsLineFeed(uc32 c);
1819
inline bool IsAsciiIdentifier(uc32 c);

src/compiler/common-node-cache.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include "src/compiler/common-node-cache.h"
66

77
#include "src/assembler.h"
8+
#include "src/compiler/node.h"
89

910
namespace v8 {
1011
namespace internal {

0 commit comments

Comments
 (0)