Skip to content

Commit decfb42

Browse files
psmarshallCommit Bot
authored andcommitted
[logger] Untangle log.h includes
Everything was including log.h through heap-inl.h, so remove that include by moving the one user into heap.cc, and then fix all the include errors. This reduces the log.h include ball from ~550 to ~100. Change-Id: I6d09bc2f365b48645fcfdc695a68ea12539a745d Reviewed-on: https://chromium-review.googlesource.com/c/1424198 Commit-Queue: Georg Neis <neis@chromium.org> Reviewed-by: Georg Neis <neis@chromium.org> Reviewed-by: Michael Lippautz <mlippautz@chromium.org> Reviewed-by: Jakob Gruber <jgruber@chromium.org> Reviewed-by: Michael Starzinger <mstarzinger@chromium.org> Cr-Commit-Position: refs/heads/master@{#58981}
1 parent 8c17e11 commit decfb42

37 files changed

Lines changed: 70 additions & 35 deletions

src/arm/simulator-arm.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include "src/disasm.h"
1818
#include "src/macro-assembler.h"
1919
#include "src/objects-inl.h"
20+
#include "src/ostreams.h"
2021
#include "src/runtime/runtime-utils.h"
2122

2223
// Only build the simulator if not compiling for real ARM hardware.

src/builtins/builtins-console.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include "src/builtins/builtins.h"
88
#include "src/counters.h"
99
#include "src/debug/interface-types.h"
10+
#include "src/log.h"
1011
#include "src/objects-inl.h"
1112

1213
namespace v8 {

src/builtins/builtins.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include "src/macro-assembler.h"
1414
#include "src/objects-inl.h"
1515
#include "src/objects/fixed-array.h"
16+
#include "src/ostreams.h"
1617
#include "src/snapshot/embedded-data.h"
1718
#include "src/visitors.h"
1819

src/code-stub-assembler.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13753,4 +13753,6 @@ void CodeStubAssembler::GotoIfInitialPrototypePropertiesModified(
1375313753
}
1375413754

1375513755
} // namespace internal
13756+
// TODO(petermarshall): Remove. This is a workaround for crbug.com/v8/8719
13757+
namespace {} // namespace
1375613758
} // namespace v8

src/compilation-cache.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include "src/counters.h"
88
#include "src/globals.h"
99
#include "src/heap/factory.h"
10+
#include "src/log.h"
1011
#include "src/objects-inl.h"
1112
#include "src/objects/compilation-cache-inl.h"
1213
#include "src/objects/slots.h"

src/compiler-dispatcher/optimizing-compile-dispatcher.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include "src/compiler.h"
1111
#include "src/counters.h"
1212
#include "src/isolate.h"
13+
#include "src/log.h"
1314
#include "src/objects-inl.h"
1415
#include "src/optimized-compilation-info.h"
1516
#include "src/tracing/trace-event.h"

src/compiler/backend/code-generator.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include "src/counters.h"
1515
#include "src/eh-frame.h"
1616
#include "src/frames.h"
17+
#include "src/log.h"
1718
#include "src/macro-assembler-inl.h"
1819
#include "src/objects/smi.h"
1920
#include "src/optimized-compilation-info.h"

src/compiler/bytecode-analysis.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include "src/interpreter/bytecode-array-iterator.h"
88
#include "src/interpreter/bytecode-array-random-iterator.h"
99
#include "src/objects-inl.h"
10+
#include "src/ostreams.h"
1011

1112
namespace v8 {
1213
namespace internal {

src/debug/debug-scopes.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include "src/isolate-inl.h"
1515
#include "src/objects/js-generator-inl.h"
1616
#include "src/objects/module.h"
17+
#include "src/ostreams.h"
1718
#include "src/parsing/parse-info.h"
1819
#include "src/parsing/parsing.h"
1920
#include "src/parsing/rewriter.h"

src/debug/liveedit.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include "src/debug/debug.h"
1515
#include "src/frames-inl.h"
1616
#include "src/isolate-inl.h"
17+
#include "src/log.h"
1718
#include "src/objects-inl.h"
1819
#include "src/objects/hash-table-inl.h"
1920
#include "src/objects/js-generator-inl.h"

0 commit comments

Comments
 (0)