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

[objects.h splitting] Move JSObject + subclasses

Also fixing DEPS include rules for heap-write-barrier.h

BUG=v8:5402,v8:8015

Cq-Include-Trybots: luci.v8.try:v8_linux_noi18n_rel_ng
Change-Id: Ia785da321bc6c6f4c375ae8c866a0bf294e64f5b
Reviewed-on: https://chromium-review.googlesource.com/1238453Reviewed-by: 's avatarMichael Starzinger <mstarzinger@chromium.org>
Commit-Queue: Marja Hölttä <marja@chromium.org>
Cr-Commit-Position: refs/heads/master@{#56138}
parent 9ce331f2
...@@ -866,6 +866,8 @@ action("postmortem-metadata") { ...@@ -866,6 +866,8 @@ action("postmortem-metadata") {
"src/objects/js-array.h", "src/objects/js-array.h",
"src/objects/js-array-buffer-inl.h", "src/objects/js-array-buffer-inl.h",
"src/objects/js-array-buffer.h", "src/objects/js-array-buffer.h",
"src/objects/js-objects-inl.h",
"src/objects/js-objects.h",
"src/objects/js-regexp-inl.h", "src/objects/js-regexp-inl.h",
"src/objects/js-regexp.h", "src/objects/js-regexp.h",
"src/objects/js-regexp-string-iterator-inl.h", "src/objects/js-regexp-string-iterator-inl.h",
...@@ -2225,6 +2227,8 @@ v8_source_set("v8_base") { ...@@ -2225,6 +2227,8 @@ v8_source_set("v8_base") {
"src/objects/js-number-format-inl.h", "src/objects/js-number-format-inl.h",
"src/objects/js-number-format.cc", "src/objects/js-number-format.cc",
"src/objects/js-number-format.h", "src/objects/js-number-format.h",
"src/objects/js-objects-inl.h",
"src/objects/js-objects.h",
"src/objects/js-plural-rules-inl.h", "src/objects/js-plural-rules-inl.h",
"src/objects/js-plural-rules.cc", "src/objects/js-plural-rules.cc",
"src/objects/js-plural-rules.h", "src/objects/js-plural-rules.h",
......
...@@ -13,6 +13,7 @@ include_rules = [ ...@@ -13,6 +13,7 @@ include_rules = [
"+src/heap/heap.h", "+src/heap/heap.h",
"+src/heap/heap-inl.h", "+src/heap/heap-inl.h",
"+src/heap/heap-write-barrier-inl.h", "+src/heap/heap-write-barrier-inl.h",
"+src/heap/heap-write-barrier.h",
"-src/inspector", "-src/inspector",
"-src/interpreter", "-src/interpreter",
"+src/interpreter/bytecode-array-accessor.h", "+src/interpreter/bytecode-array-accessor.h",
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
#include "src/compiler/simplified-operator.h" #include "src/compiler/simplified-operator.h"
#include "src/elements-kind.h" #include "src/elements-kind.h"
#include "src/globals.h" #include "src/globals.h"
#include "src/objects/js-objects.h"
namespace v8 { namespace v8 {
namespace internal { namespace internal {
......
...@@ -27,11 +27,22 @@ ...@@ -27,11 +27,22 @@
namespace v8 { namespace v8 {
namespace internal { namespace internal {
class Callable;
class CallInterfaceDescriptor; class CallInterfaceDescriptor;
class Callable;
class Factory;
class InterpreterData;
class Isolate; class Isolate;
class JSAsyncGeneratorObject;
class JSCollator;
class JSCollection; class JSCollection;
class JSDateTimeFormat;
class JSListFormat;
class JSLocale;
class JSNumberFormat;
class JSPluralRules;
class JSRegExpStringIterator; class JSRegExpStringIterator;
class JSRelativeTimeFormat;
class JSV8BreakIterator;
class JSWeakCollection; class JSWeakCollection;
class JSWeakMap; class JSWeakMap;
class JSWeakSet; class JSWeakSet;
...@@ -41,8 +52,6 @@ class PromiseFulfillReactionJobTask; ...@@ -41,8 +52,6 @@ class PromiseFulfillReactionJobTask;
class PromiseReaction; class PromiseReaction;
class PromiseReactionJobTask; class PromiseReactionJobTask;
class PromiseRejectReactionJobTask; class PromiseRejectReactionJobTask;
class InterpreterData;
class Factory;
class Zone; class Zone;
template <typename T> template <typename T>
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
#include "src/objects/arguments-inl.h" #include "src/objects/arguments-inl.h"
#include "src/objects/js-array-buffer-inl.h" #include "src/objects/js-array-buffer-inl.h"
#include "src/objects/js-array-inl.h" #include "src/objects/js-array-inl.h"
#include "src/objects/js-objects.h"
#include "src/vector-slot-pair.h" #include "src/vector-slot-pair.h"
namespace v8 { namespace v8 {
......
...@@ -15,6 +15,7 @@ namespace internal { ...@@ -15,6 +15,7 @@ namespace internal {
// Forward declarations. // Forward declarations.
class Factory; class Factory;
class JSGlobalProxy;
class VectorSlotPair; class VectorSlotPair;
namespace compiler { namespace compiler {
......
...@@ -16,6 +16,8 @@ namespace internal { ...@@ -16,6 +16,8 @@ namespace internal {
// Forward declarations. // Forward declarations.
class Factory; class Factory;
class FeedbackNexus; class FeedbackNexus;
class JSGlobalObject;
class JSGlobalProxy;
class StringConstantBase; class StringConstantBase;
namespace compiler { namespace compiler {
......
...@@ -10,6 +10,8 @@ ...@@ -10,6 +10,8 @@
namespace v8 { namespace v8 {
namespace internal { namespace internal {
class JSGlobalObject;
class JSGlobalProxy;
class NativeContext; class NativeContext;
class RegExpMatchInfo; class RegExpMatchInfo;
......
...@@ -44,6 +44,7 @@ class JSGeneratorObject; ...@@ -44,6 +44,7 @@ class JSGeneratorObject;
class JSMap; class JSMap;
class JSMapIterator; class JSMapIterator;
class JSModuleNamespace; class JSModuleNamespace;
class JSPromise;
class JSProxy; class JSProxy;
class JSSet; class JSSet;
class JSSetIterator; class JSSetIterator;
......
This diff is collapsed.
This diff is collapsed.
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
#include "src/objects/allocation-site.h" #include "src/objects/allocation-site.h"
#include "src/heap/heap-inl.h" #include "src/heap/heap-inl.h"
#include "src/objects/js-objects-inl.h"
// Has to be the last include (doesn't have include guards): // Has to be the last include (doesn't have include guards):
#include "src/objects/object-macros.h" #include "src/objects/object-macros.h"
......
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
#ifndef V8_OBJECTS_ARGUMENTS_H_ #ifndef V8_OBJECTS_ARGUMENTS_H_
#define V8_OBJECTS_ARGUMENTS_H_ #define V8_OBJECTS_ARGUMENTS_H_
#include "src/objects.h"
#include "src/objects/fixed-array.h" #include "src/objects/fixed-array.h"
#include "src/objects/js-objects.h"
// Has to be the last include (doesn't have include guards): // Has to be the last include (doesn't have include guards):
#include "src/objects/object-macros.h" #include "src/objects/object-macros.h"
......
...@@ -30,6 +30,7 @@ namespace internal { ...@@ -30,6 +30,7 @@ namespace internal {
template <typename T> template <typename T>
class Handle; class Handle;
class JSCollator;
class Intl { class Intl {
public: public:
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
#ifndef V8_OBJECTS_JS_ARRAY_BUFFER_H_ #ifndef V8_OBJECTS_JS_ARRAY_BUFFER_H_
#define V8_OBJECTS_JS_ARRAY_BUFFER_H_ #define V8_OBJECTS_JS_ARRAY_BUFFER_H_
#include "src/objects.h" #include "src/objects/js-objects.h"
// Has to be the last include (doesn't have include guards): // Has to be the last include (doesn't have include guards):
#include "src/objects/object-macros.h" #include "src/objects/object-macros.h"
......
...@@ -5,9 +5,9 @@ ...@@ -5,9 +5,9 @@
#ifndef V8_OBJECTS_JS_ARRAY_H_ #ifndef V8_OBJECTS_JS_ARRAY_H_
#define V8_OBJECTS_JS_ARRAY_H_ #define V8_OBJECTS_JS_ARRAY_H_
#include "src/objects.h"
#include "src/objects/allocation-site.h" #include "src/objects/allocation-site.h"
#include "src/objects/fixed-array.h" #include "src/objects/fixed-array.h"
#include "src/objects/js-objects.h"
// Has to be the last include (doesn't have include guards): // Has to be the last include (doesn't have include guards):
#include "src/objects/object-macros.h" #include "src/objects/object-macros.h"
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
#ifndef V8_OBJECTS_JS_GENERATOR_H_ #ifndef V8_OBJECTS_JS_GENERATOR_H_
#define V8_OBJECTS_JS_GENERATOR_H_ #define V8_OBJECTS_JS_GENERATOR_H_
#include "src/objects.h" #include "src/objects/js-objects.h"
// Has to be the last include (doesn't have include guards): // Has to be the last include (doesn't have include guards):
#include "src/objects/object-macros.h" #include "src/objects/object-macros.h"
......
This diff is collapsed.
This diff is collapsed.
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
#ifndef V8_OBJECTS_JS_PROMISE_H_ #ifndef V8_OBJECTS_JS_PROMISE_H_
#define V8_OBJECTS_JS_PROMISE_H_ #define V8_OBJECTS_JS_PROMISE_H_
#include "src/objects.h" #include "src/objects/js-objects.h"
#include "src/objects/promise.h" #include "src/objects/promise.h"
// Has to be the last include (doesn't have include guards): // Has to be the last include (doesn't have include guards):
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
#ifndef V8_OBJECTS_JS_PROXY_H_ #ifndef V8_OBJECTS_JS_PROXY_H_
#define V8_OBJECTS_JS_PROXY_H_ #define V8_OBJECTS_JS_PROXY_H_
#include "src/objects.h" #include "src/objects/js-objects.h"
// Has to be the last include (doesn't have include guards): // Has to be the last include (doesn't have include guards):
#include "src/objects/object-macros.h" #include "src/objects/object-macros.h"
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
#ifndef V8_OBJECTS_JS_REGEXP_STRING_ITERATOR_H_ #ifndef V8_OBJECTS_JS_REGEXP_STRING_ITERATOR_H_
#define V8_OBJECTS_JS_REGEXP_STRING_ITERATOR_H_ #define V8_OBJECTS_JS_REGEXP_STRING_ITERATOR_H_
#include "src/objects.h" #include "src/objects/js-objects.h"
// Has to be the last include (doesn't have include guards): // Has to be the last include (doesn't have include guards):
#include "src/objects/object-macros.h" #include "src/objects/object-macros.h"
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
#include "src/objects.h" #include "src/objects.h"
#include "src/objects/fixed-array.h" #include "src/objects/fixed-array.h"
#include "src/objects/js-objects.h"
// Has to be the last include (doesn't have include guards): // Has to be the last include (doesn't have include guards):
#include "src/objects/object-macros.h" #include "src/objects/object-macros.h"
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
#include "src/globals.h" #include "src/globals.h"
#include "src/objects/fixed-array.h" #include "src/objects/fixed-array.h"
#include "src/objects/js-objects.h"
// Has to be the last include (doesn't have include guards): // Has to be the last include (doesn't have include guards):
#include "src/objects/object-macros.h" #include "src/objects/object-macros.h"
......
...@@ -13,6 +13,8 @@ ...@@ -13,6 +13,8 @@
namespace v8 { namespace v8 {
namespace internal { namespace internal {
class JSPromise;
// Struct to hold state required for PromiseReactionJob. See the comment on the // Struct to hold state required for PromiseReactionJob. See the comment on the
// PromiseReaction below for details on how this is being managed to reduce the // PromiseReaction below for details on how this is being managed to reduce the
// memory and allocation overhead. This is the base class for the concrete // memory and allocation overhead. This is the base class for the concrete
......
...@@ -27,6 +27,7 @@ class DeferredHandles; ...@@ -27,6 +27,7 @@ class DeferredHandles;
class FunctionLiteral; class FunctionLiteral;
class Isolate; class Isolate;
class JavaScriptFrame; class JavaScriptFrame;
class JSGlobalObject;
class ParseInfo; class ParseInfo;
class SourceRangeMap; class SourceRangeMap;
class Zone; class Zone;
......
...@@ -31,6 +31,10 @@ class HeapProfiler; ...@@ -31,6 +31,10 @@ class HeapProfiler;
class HeapSnapshot; class HeapSnapshot;
class JSArrayBuffer; class JSArrayBuffer;
class JSCollection; class JSCollection;
class JSGeneratorObject;
class JSGlobalObject;
class JSGlobalProxy;
class JSPromise;
class JSWeakCollection; class JSWeakCollection;
class SnapshotFiller; class SnapshotFiller;
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
#include "src/globals.h" #include "src/globals.h"
#include "src/objects/fixed-array.h" #include "src/objects/fixed-array.h"
#include "src/objects/js-objects.h"
namespace v8 { namespace v8 {
namespace internal { namespace internal {
......
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