Commit c87bd340 authored by mstarzinger's avatar mstarzinger Committed by Commit bot

[turbofan] Remove obsolete unique.h includes in TurboFan.

Now that it is no longer needed, this also removes the invalid inclusion
of "object-inl.h" within the "unique.h" header file.

Note that this change still leaves 2 violations of that rule in the
code, checked with the "tools/check-inline-includes.sh" tool.

R=bmeurer@chromium.org

Review URL: https://codereview.chromium.org/1321223002

Cr-Commit-Position: refs/heads/master@{#30503}
parent bb7b5311
......@@ -9,7 +9,7 @@
#include "src/compiler/linkage.h"
#include "src/compiler/opcodes.h"
#include "src/compiler/operator.h"
#include "src/unique.h"
#include "src/handles-inl.h"
#include "src/zone.h"
namespace v8 {
......
......@@ -7,7 +7,7 @@
#include "src/compiler/frame-states.h"
#include "src/compiler/machine-type.h"
#include "src/unique.h"
#include "src/zone-containers.h"
namespace v8 {
namespace internal {
......
......@@ -12,7 +12,6 @@
#include "src/builtins.h"
#include "src/frames.h"
#include "src/interpreter/bytecodes.h"
#include "src/unique.h"
namespace v8 {
namespace internal {
......
......@@ -7,6 +7,7 @@
#include "src/compiler/js-graph.h"
#include "src/compiler/node-matchers.h"
#include "src/compiler/node-properties.h"
#include "src/objects-inl.h"
#include "src/types.h"
namespace v8 {
......
......@@ -10,6 +10,7 @@
#include "src/compiler/node-matchers.h"
#include "src/compiler/node-properties.h"
#include "src/contexts.h"
#include "src/objects-inl.h"
namespace v8 {
namespace internal {
......
......@@ -11,7 +11,6 @@
#include "src/compiler/node-matchers.h"
#include "src/compiler/node-properties.h"
#include "src/compiler/operator-properties.h"
#include "src/unique.h"
namespace v8 {
namespace internal {
......
......@@ -11,6 +11,7 @@
#include "src/compiler/js-operator.h"
#include "src/compiler/machine-operator.h"
#include "src/compiler/node-properties.h"
#include "src/isolate.h"
namespace v8 {
namespace internal {
......
......@@ -6,6 +6,7 @@
#include "src/ast.h"
#include "src/ast-numbering.h"
#include "src/compiler.h"
#include "src/compiler/all-nodes.h"
#include "src/compiler/ast-graph-builder.h"
#include "src/compiler/common-operator.h"
......
......@@ -10,8 +10,13 @@
namespace v8 {
namespace internal {
// Forward declarations.
class CompilationInfo;
namespace compiler {
// Forward declarations.
class JSCallFunctionAccessor;
class JSInliner final : public AdvancedReducer {
......
......@@ -11,6 +11,8 @@
#include "src/compiler/node-matchers.h"
#include "src/compiler/node-properties.h"
#include "src/compiler/operator-properties.h"
#include "src/counters.h"
#include "src/objects-inl.h"
namespace v8 {
namespace internal {
......
......@@ -9,11 +9,21 @@
#include "src/base/lazy-instance.h"
#include "src/compiler/opcodes.h"
#include "src/compiler/operator.h"
#include "src/objects-inl.h" // TODO(mstarzinger): Temporary cycle breaker!
#include "src/type-feedback-vector-inl.h"
namespace v8 {
namespace internal {
namespace compiler {
VectorSlotPair::VectorSlotPair() : slot_(FeedbackVectorICSlot::Invalid()) {}
int VectorSlotPair::index() const {
return vector_.is_null() ? -1 : vector_->GetIndex(slot_);
}
bool operator==(VectorSlotPair const& lhs, VectorSlotPair const& rhs) {
return lhs.slot() == rhs.slot() &&
lhs.vector().location() == rhs.vector().location();
......
......@@ -6,7 +6,6 @@
#define V8_COMPILER_JS_OPERATOR_H_
#include "src/runtime/runtime.h"
#include "src/unique.h"
namespace v8 {
namespace internal {
......@@ -21,7 +20,7 @@ struct JSOperatorGlobalCache;
// is used to access the type feedback for a certain {Node}.
class VectorSlotPair {
public:
VectorSlotPair() : slot_(FeedbackVectorICSlot::Invalid()) {}
VectorSlotPair();
VectorSlotPair(Handle<TypeFeedbackVector> vector, FeedbackVectorICSlot slot)
: vector_(vector), slot_(slot) {}
......@@ -30,9 +29,7 @@ class VectorSlotPair {
Handle<TypeFeedbackVector> vector() const { return vector_; }
FeedbackVectorICSlot slot() const { return slot_; }
int index() const {
return vector_.is_null() ? -1 : vector_->GetIndex(slot_);
}
int index() const;
private:
const Handle<TypeFeedbackVector> vector_;
......
......@@ -7,6 +7,8 @@
#include "src/compiler/access-builder.h"
#include "src/compiler/js-graph.h"
#include "src/compiler/node-properties.h"
#include "src/objects-inl.h" // TODO(mstarzinger): Temporary cycle breaker!
#include "src/type-feedback-vector.h"
namespace v8 {
namespace internal {
......
......@@ -11,7 +11,6 @@
#include "src/assembler.h"
#include "src/compiler/node.h"
#include "src/compiler/operator.h"
#include "src/unique.h"
namespace v8 {
namespace internal {
......
......@@ -12,6 +12,7 @@
#include "src/compiler/machine-operator.h"
#include "src/compiler/node.h"
#include "src/compiler/operator.h"
#include "src/factory.h"
namespace v8 {
namespace internal {
......
......@@ -8,6 +8,7 @@
#include "src/compiler/machine-operator.h"
#include "src/compiler/node-matchers.h"
#include "src/compiler/operator-properties.h"
#include "src/conversions-inl.h"
namespace v8 {
namespace internal {
......
......@@ -13,6 +13,7 @@
#include "src/compiler/node.h"
#include "src/compiler/node-properties.h"
#include "src/compiler/simplified-operator.h"
#include "src/objects-inl.h"
#include "src/zone-type-cache.h"
namespace v8 {
......
......@@ -22,6 +22,7 @@
#include "src/compiler/schedule.h"
#include "src/compiler/simplified-operator.h"
#include "src/ostreams.h"
#include "src/types-inl.h"
namespace v8 {
namespace internal {
......
......@@ -7,6 +7,7 @@
#include "src/frames.h"
#include "src/isolate.h"
#include "src/objects-inl.h"
#include "src/v8memory.h"
#if V8_TARGET_ARCH_IA32
......
......@@ -2,14 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_HYDROGEN_UNIQUE_H_
#define V8_HYDROGEN_UNIQUE_H_
#ifndef V8_UNIQUE_H_
#define V8_UNIQUE_H_
#include <ostream> // NOLINT(readability/streams)
#include "src/base/functional.h"
#include "src/handles.h"
#include "src/objects-inl.h" // TODO(everyone): Fix our inl.h crap
#include "src/utils.h"
#include "src/zone.h"
......@@ -358,4 +357,4 @@ class UniqueSet final : public ZoneObject {
} } // namespace v8::internal
#endif // V8_HYDROGEN_UNIQUE_H_
#endif // V8_UNIQUE_H_
......@@ -5,6 +5,8 @@
#include "test/unittests/compiler/graph-unittest.h"
#include "src/compiler/node-properties.h"
#include "src/factory.h"
#include "src/objects-inl.h" // TODO(everyone): Make typer.h IWYU compliant.
#include "test/unittests/compiler/node-test-utils.h"
namespace v8 {
......
......@@ -6,7 +6,7 @@
#include "src/compiler/graph.h"
#include "src/compiler/node.h"
#include "src/unique.h"
#include "src/isolate.h"
#include "test/unittests/compiler/compiler-test-utils.h"
#include "test/unittests/compiler/node-test-utils.h"
......
......@@ -7,6 +7,7 @@
#include "src/compiler/js-graph.h"
#include "src/compiler/machine-operator-reducer.h"
#include "src/compiler/typer.h"
#include "src/conversions-inl.h"
#include "test/unittests/compiler/graph-unittest.h"
#include "test/unittests/compiler/node-test-utils.h"
#include "testing/gmock-support.h"
......
......@@ -11,7 +11,7 @@
#include "src/compiler/js-operator.h"
#include "src/compiler/node-properties.h"
#include "src/compiler/simplified-operator.h"
#include "src/unique.h"
#include "src/handles-inl.h"
using testing::_;
using testing::MakeMatcher;
......
......@@ -7,7 +7,7 @@
#include "src/compiler/node-properties.h"
#include "src/compiler/simplified-operator.h"
#include "src/compiler/simplified-operator-reducer.h"
#include "src/conversions.h"
#include "src/conversions-inl.h"
#include "src/types.h"
#include "test/unittests/compiler/graph-unittest.h"
#include "test/unittests/compiler/node-test-utils.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment