Commit d953b2ab authored by Marja Hölttä's avatar Marja Hölttä Committed by Commit Bot

[objects.h splitting] Move Code & related classes.

BUG=v8:5402,v8:6921

Change-Id: I96a8a7cdded6f7c37b6f1da659d63df9e3a5de2b
Reviewed-on: https://chromium-review.googlesource.com/718342
Commit-Queue: Marja Hölttä <marja@chromium.org>
Reviewed-by: 's avatarMichael Starzinger <mstarzinger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#48552}
parent 31fa640d
...@@ -1777,6 +1777,8 @@ v8_source_set("v8_base") { ...@@ -1777,6 +1777,8 @@ v8_source_set("v8_base") {
"src/objects/bigint-inl.h", "src/objects/bigint-inl.h",
"src/objects/bigint.cc", "src/objects/bigint.cc",
"src/objects/bigint.h", "src/objects/bigint.h",
"src/objects/code-inl.h",
"src/objects/code.h",
"src/objects/compilation-cache-inl.h", "src/objects/compilation-cache-inl.h",
"src/objects/compilation-cache.h", "src/objects/compilation-cache.h",
"src/objects/debug-objects-inl.h", "src/objects/debug-objects-inl.h",
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
// Do not include anything from src/compiler here! // Do not include anything from src/compiler here!
#include "src/globals.h" #include "src/globals.h"
#include "src/objects.h" #include "src/objects.h"
#include "src/objects/code.h"
#include "src/zone/zone-containers.h" #include "src/zone/zone-containers.h"
namespace v8 { namespace v8 {
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
#include "src/compiler/types.h" #include "src/compiler/types.h"
#include "src/date.h" #include "src/date.h"
#include "src/objects/code.h"
#include "src/objects/string.h" #include "src/objects/string.h"
namespace v8 { namespace v8 {
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
#include "src/flags.h" #include "src/flags.h"
#include "src/handles.h" #include "src/handles.h"
#include "src/objects.h" #include "src/objects.h"
#include "src/objects/code.h"
#include "src/safepoint-table.h" #include "src/safepoint-table.h"
namespace v8 { namespace v8 {
......
...@@ -36,6 +36,8 @@ class HeapTester; ...@@ -36,6 +36,8 @@ class HeapTester;
class TestMemoryAllocatorScope; class TestMemoryAllocatorScope;
} // namespace heap } // namespace heap
class BytecodeArray;
using v8::MemoryPressureLevel; using v8::MemoryPressureLevel;
// Defines all the roots in Heap. // Defines all the roots in Heap.
......
...@@ -17,6 +17,7 @@ namespace v8 { ...@@ -17,6 +17,7 @@ namespace v8 {
namespace internal { namespace internal {
class BigInt; class BigInt;
class BytecodeArray;
#define TYPED_VISITOR_ID_LIST(V) \ #define TYPED_VISITOR_ID_LIST(V) \
V(AllocationSite) \ V(AllocationSite) \
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
#include "src/heap/incremental-marking.h" #include "src/heap/incremental-marking.h"
#include "src/heap/spaces.h" #include "src/heap/spaces.h"
#include "src/msan.h" #include "src/msan.h"
#include "src/objects/code-inl.h"
namespace v8 { namespace v8 {
namespace internal { namespace internal {
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
#include "src/interpreter/bytecode-decoder.h" #include "src/interpreter/bytecode-decoder.h"
#include "src/interpreter/interpreter-intrinsics.h" #include "src/interpreter/interpreter-intrinsics.h"
#include "src/objects-inl.h" #include "src/objects-inl.h"
#include "src/objects/code-inl.h"
namespace v8 { namespace v8 {
namespace internal { namespace internal {
......
...@@ -14,6 +14,9 @@ ...@@ -14,6 +14,9 @@
namespace v8 { namespace v8 {
namespace internal { namespace internal {
class BytecodeArray;
namespace interpreter { namespace interpreter {
class BytecodeArrayAccessor; class BytecodeArrayAccessor;
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
#include "src/interpreter/bytecode-array-iterator.h" #include "src/interpreter/bytecode-array-iterator.h"
#include "src/objects-inl.h" #include "src/objects-inl.h"
#include "src/objects/code-inl.h"
namespace v8 { namespace v8 {
namespace internal { namespace internal {
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
#include "src/interpreter/bytecode-array-random-iterator.h" #include "src/interpreter/bytecode-array-random-iterator.h"
#include "src/objects-inl.h" #include "src/objects-inl.h"
#include "src/objects/code-inl.h"
namespace v8 { namespace v8 {
namespace internal { namespace internal {
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
#include "src/handles.h" #include "src/handles.h"
#include "src/heap/heap.h" #include "src/heap/heap.h"
#include "src/messages.h" #include "src/messages.h"
#include "src/objects/code.h"
#include "src/regexp/regexp-stack.h" #include "src/regexp/regexp-stack.h"
#include "src/runtime/runtime.h" #include "src/runtime/runtime.h"
#include "src/zone/zone.h" #include "src/zone/zone.h"
......
This diff is collapsed.
...@@ -54,6 +54,7 @@ ...@@ -54,6 +54,7 @@
#include "src/map-updater.h" #include "src/map-updater.h"
#include "src/messages.h" #include "src/messages.h"
#include "src/objects-body-descriptors-inl.h" #include "src/objects-body-descriptors-inl.h"
#include "src/objects/code-inl.h"
#include "src/objects/compilation-cache-inl.h" #include "src/objects/compilation-cache-inl.h"
#include "src/objects/debug-objects-inl.h" #include "src/objects/debug-objects-inl.h"
#include "src/objects/frame-array-inl.h" #include "src/objects/frame-array-inl.h"
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -13,6 +13,8 @@ ...@@ -13,6 +13,8 @@
namespace v8 { namespace v8 {
namespace internal { namespace internal {
class BytecodeArray;
// The DebugInfo class holds additional information for a function being // The DebugInfo class holds additional information for a function being
// debugged. // debugged.
class DebugInfo : public Struct { class DebugInfo : public Struct {
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
#define V8_OBJECTS_MAP_H_ #define V8_OBJECTS_MAP_H_
#include "src/objects.h" #include "src/objects.h"
#include "src/objects/code.h"
#include "src/globals.h" #include "src/globals.h"
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
namespace v8 { namespace v8 {
namespace internal { namespace internal {
class BytecodeArray;
class CoverageInfo; class CoverageInfo;
class DebugInfo; class DebugInfo;
......
...@@ -1158,6 +1158,8 @@ ...@@ -1158,6 +1158,8 @@
'objects/bigint-inl.h', 'objects/bigint-inl.h',
'objects/bigint.cc', 'objects/bigint.cc',
'objects/bigint.h', 'objects/bigint.h',
'objects/code-inl.h',
'objects/code.h',
'objects/compilation-cache.h', 'objects/compilation-cache.h',
'objects/compilation-cache-inl.h', 'objects/compilation-cache-inl.h',
'objects/debug-objects-inl.h', 'objects/debug-objects-inl.h',
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
#include "src/visitors.h" #include "src/visitors.h"
#include "src/objects.h" #include "src/objects/code.h"
namespace v8 { namespace v8 {
namespace internal { namespace internal {
......
...@@ -18,6 +18,7 @@ class Isolate; ...@@ -18,6 +18,7 @@ class Isolate;
namespace internal { namespace internal {
class BytecodeArray;
class SourcePositionTableIterator; class SourcePositionTableIterator;
namespace interpreter { namespace interpreter {
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
#include "src/v8.h" #include "src/v8.h"
#include "src/objects.h" #include "src/objects.h"
#include "src/objects/code.h"
#include "src/source-position-table.h" #include "src/source-position-table.h"
#include "test/unittests/test-utils.h" #include "test/unittests/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