Commit 4b340c89 authored by mstarzinger's avatar mstarzinger Committed by Commit bot

Remove inline header includes from non-inline headers (2).

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 5 violations of that rule in the
code. It only tackles "node.h" including "types-inl.h".

R=titzer@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#30161}
parent 4e0c0571
......@@ -6,6 +6,7 @@
#include "src/assembler.h"
#include "src/compiler/node.h"
#include "src/objects-inl.h" // TODO(mstarzinger): Temporary cycle breaker!
namespace v8 {
namespace internal {
......
......@@ -9,6 +9,10 @@
namespace v8 {
namespace internal {
// Forward declarations.
class JavaScriptFrame;
namespace compiler {
// Forward declarations.
......
......@@ -11,6 +11,10 @@
namespace v8 {
namespace internal {
// Forward declarations.
class Factory;
namespace compiler {
// Forward declarations.
......
......@@ -17,6 +17,7 @@ namespace v8 {
namespace internal {
class CallInterfaceDescriptor;
class CompilationInfo;
namespace compiler {
......
......@@ -7,7 +7,7 @@
#include "src/compiler/opcodes.h"
#include "src/compiler/operator.h"
#include "src/types-inl.h"
#include "src/types.h"
#include "src/zone-containers.h"
namespace v8 {
......
......@@ -5,6 +5,7 @@
#include "src/compiler/source-position.h"
#include "src/compiler/graph.h"
#include "src/compiler/node-aux-data.h"
#include "src/objects-inl.h" // TODO(mstarzinger): Temporary cycle breaker!
namespace v8 {
namespace internal {
......
......@@ -160,6 +160,11 @@ size_t NumberToSize(Isolate* isolate, Object* number) {
}
uint32_t DoubleToUint32(double x) {
return static_cast<uint32_t>(DoubleToInt32(x));
}
template <class Iterator, class EndMark>
bool SubStringEquals(Iterator* current,
EndMark end,
......
......@@ -89,9 +89,7 @@ inline int32_t DoubleToInt32(double x);
// This function should match the exact semantics of ECMA-262 9.6.
inline uint32_t DoubleToUint32(double x) {
return static_cast<uint32_t>(DoubleToInt32(x));
}
inline uint32_t DoubleToUint32(double x);
// Enumeration for allowing octals and ignoring junk when converting
......@@ -156,19 +154,19 @@ static inline bool IsMinusZero(double value) {
}
static inline bool IsSmiDouble(double value);
inline bool IsSmiDouble(double value);
// Integer32 is an integer that can be represented as a signed 32-bit
// integer. It has to be in the range [-2^31, 2^31 - 1].
// We also have to check for negative 0 as it is not an Integer32.
static inline bool IsInt32Double(double value);
inline bool IsInt32Double(double value);
// UInteger32 is an integer that can be represented as an unsigned 32-bit
// integer. It has to be in the range [0, 2^32 - 1].
// We also have to check for negative 0 as it is not a UInteger32.
static inline bool IsUint32Double(double value);
inline bool IsUint32Double(double value);
// Convert from Number object to C integer.
......
......@@ -64,6 +64,7 @@ class HStatistics;
class HTracer;
class InlineRuntimeFunctionsTable;
class InnerPointerToCodeCache;
class Logger;
class MaterializedObjectStore;
class CodeAgingHelper;
class RegExpStack;
......
......@@ -8,6 +8,7 @@
#include "include/v8.h"
#include "src/base/atomicops.h"
#include "src/base/platform/time.h"
#include "src/frames.h"
#include "src/globals.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