Move handles-related files to src/handles
Bug: v8:9247 Change-Id: I0023200c54fa6499ae4e2cf5e4c89407cc35f187 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1624218 Reviewed-by: Michael Lippautz <mlippautz@chromium.org> Reviewed-by: Andreas Haas <ahaas@chromium.org> Reviewed-by: Leszek Swirski <leszeks@chromium.org> Reviewed-by: Toon Verwaest <verwaest@chromium.org> Reviewed-by: Michael Stanton <mvstanton@chromium.org> Commit-Queue: Yang Guo <yangguo@chromium.org> Cr-Commit-Position: refs/heads/master@{#61762}
This commit is contained in:
parent
7cf9ec6a31
commit
4c986c625f
14
BUILD.gn
14
BUILD.gn
@ -2259,11 +2259,13 @@ v8_source_set("v8_base_without_compiler") {
|
||||
"src/flags.cc",
|
||||
"src/flags.h",
|
||||
"src/function-kind.h",
|
||||
"src/global-handles.cc",
|
||||
"src/global-handles.h",
|
||||
"src/handles-inl.h",
|
||||
"src/handles.cc",
|
||||
"src/handles.h",
|
||||
"src/handles/global-handles.cc",
|
||||
"src/handles/global-handles.h",
|
||||
"src/handles/handles-inl.h",
|
||||
"src/handles/handles.cc",
|
||||
"src/handles/handles.h",
|
||||
"src/handles/maybe-handles-inl.h",
|
||||
"src/handles/maybe-handles.h",
|
||||
"src/hash-seed-inl.h",
|
||||
"src/heap-symbols.h",
|
||||
"src/heap/array-buffer-collector.cc",
|
||||
@ -2427,8 +2429,6 @@ v8_source_set("v8_base_without_compiler") {
|
||||
"src/logging/log-utils.h",
|
||||
"src/logging/log.cc",
|
||||
"src/logging/log.h",
|
||||
"src/maybe-handles-inl.h",
|
||||
"src/maybe-handles.h",
|
||||
"src/memcopy.cc",
|
||||
"src/memcopy.h",
|
||||
"src/numbers/bignum-dtoa.cc",
|
||||
|
@ -5,7 +5,7 @@
|
||||
#ifndef V8_ALLOCATION_SITE_SCOPES_H_
|
||||
#define V8_ALLOCATION_SITE_SCOPES_H_
|
||||
|
||||
#include "src/handles.h"
|
||||
#include "src/handles/handles.h"
|
||||
#include "src/objects.h"
|
||||
#include "src/objects/allocation-site.h"
|
||||
#include "src/objects/map.h"
|
||||
|
@ -6,7 +6,7 @@
|
||||
#define V8_API_API_INL_H_
|
||||
|
||||
#include "src/api/api.h"
|
||||
#include "src/handles-inl.h"
|
||||
#include "src/handles/handles-inl.h"
|
||||
#include "src/objects-inl.h"
|
||||
#include "src/objects/foreign-inl.h"
|
||||
#include "src/objects/stack-frame-info.h"
|
||||
|
@ -7,8 +7,8 @@
|
||||
|
||||
#include "include/v8.h"
|
||||
#include "src/base/macros.h"
|
||||
#include "src/handles.h"
|
||||
#include "src/maybe-handles.h"
|
||||
#include "src/handles/handles.h"
|
||||
#include "src/handles/maybe-handles.h"
|
||||
#include "src/objects.h"
|
||||
#include "src/objects/property-details.h"
|
||||
|
||||
|
@ -45,8 +45,8 @@
|
||||
#include "src/execution/runtime-profiler.h"
|
||||
#include "src/execution/simulator.h"
|
||||
#include "src/execution/vm-state-inl.h"
|
||||
#include "src/global-handles.h"
|
||||
#include "src/globals.h"
|
||||
#include "src/handles/global-handles.h"
|
||||
#include "src/heap/embedder-tracing.h"
|
||||
#include "src/heap/heap-inl.h"
|
||||
#include "src/init/bootstrapper.h"
|
||||
|
@ -15,7 +15,7 @@
|
||||
#include "src/execution/execution.h"
|
||||
#include "src/execution/isolate.h"
|
||||
#include "src/execution/message-template.h"
|
||||
#include "src/handles.h"
|
||||
#include "src/handles/handles.h"
|
||||
#include "src/heap/factory.h"
|
||||
#include "src/logging/counters.h"
|
||||
#include "src/objects-inl.h"
|
||||
|
@ -8,7 +8,7 @@
|
||||
#include "src/contexts.h"
|
||||
#include "src/debug/debug.h"
|
||||
#include "src/execution/isolate.h"
|
||||
#include "src/global-handles.h"
|
||||
#include "src/handles/global-handles.h"
|
||||
#include "src/logging/counters.h"
|
||||
#include "src/objects-inl.h"
|
||||
#include "src/objects/elements-inl.h"
|
||||
|
@ -4,9 +4,9 @@
|
||||
|
||||
#include "src/builtins/builtins-utils-inl.h"
|
||||
#include "src/builtins/builtins.h"
|
||||
#include "src/handles/maybe-handles-inl.h"
|
||||
#include "src/heap/heap-inl.h" // For ToBoolean. TODO(jkummerow): Drop.
|
||||
#include "src/logging/counters.h"
|
||||
#include "src/maybe-handles-inl.h"
|
||||
#include "src/numbers/conversions.h"
|
||||
#include "src/objects-inl.h"
|
||||
#include "src/objects/js-array-buffer-inl.h"
|
||||
|
@ -5,7 +5,7 @@
|
||||
#include "src/builtins/builtins-utils.h"
|
||||
#include "src/builtins/builtins.h"
|
||||
#include "src/execution/isolate.h"
|
||||
#include "src/handles-inl.h"
|
||||
#include "src/handles/handles-inl.h"
|
||||
#include "src/objects-inl.h"
|
||||
|
||||
namespace v8 {
|
||||
|
@ -8,7 +8,7 @@
|
||||
#include "src/builtins/builtins-utils-gen.h"
|
||||
#include "src/builtins/builtins.h"
|
||||
#include "src/builtins/growable-fixed-array-gen.h"
|
||||
#include "src/handles-inl.h"
|
||||
#include "src/handles/handles-inl.h"
|
||||
#include "src/heap/factory-inl.h"
|
||||
#include "torque-generated/builtins-typed-array-createtypedarray-gen-tq.h"
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
#include "src/allocation.h"
|
||||
#include "src/base/macros.h"
|
||||
#include "src/handles.h"
|
||||
#include "src/handles/handles.h"
|
||||
#include "src/identity-map.h"
|
||||
|
||||
namespace v8 {
|
||||
|
@ -10,7 +10,7 @@
|
||||
#include "src/codegen/macro-assembler.h"
|
||||
#include "src/compiler/code-assembler.h"
|
||||
#include "src/execution/isolate.h"
|
||||
#include "src/handles-inl.h"
|
||||
#include "src/handles/handles-inl.h"
|
||||
#include "src/heap/heap-inl.h" // For MemoryAllocator::code_range.
|
||||
#include "src/interpreter/bytecodes.h"
|
||||
#include "src/interpreter/interpreter-generator.h"
|
||||
|
@ -45,7 +45,7 @@
|
||||
#include "src/external-reference.h"
|
||||
#include "src/flags.h"
|
||||
#include "src/globals.h"
|
||||
#include "src/handles.h"
|
||||
#include "src/handles/handles.h"
|
||||
#include "src/objects.h"
|
||||
|
||||
namespace v8 {
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
#include "src/codegen/code-desc.h"
|
||||
#include "src/globals.h"
|
||||
#include "src/handles-inl.h"
|
||||
#include "src/handles/handles-inl.h"
|
||||
#include "src/objects-inl.h"
|
||||
#include "src/wasm/wasm-code-manager.h"
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
#ifndef V8_CODEGEN_CODE_REFERENCE_H_
|
||||
#define V8_CODEGEN_CODE_REFERENCE_H_
|
||||
|
||||
#include "src/handles.h"
|
||||
#include "src/handles/handles.h"
|
||||
#include "src/objects/code.h"
|
||||
|
||||
namespace v8 {
|
||||
|
@ -11,7 +11,7 @@
|
||||
#include "src/codegen/source-position-table.h"
|
||||
#include "src/execution/frames.h"
|
||||
#include "src/globals.h"
|
||||
#include "src/handles.h"
|
||||
#include "src/handles/handles.h"
|
||||
#include "src/objects.h"
|
||||
#include "src/utils.h"
|
||||
#include "src/vector.h"
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
#include "src/flags.h"
|
||||
#include "src/globals.h"
|
||||
#include "src/handles.h"
|
||||
#include "src/handles/handles.h"
|
||||
#include "src/utils.h"
|
||||
|
||||
namespace v8 {
|
||||
|
@ -5,7 +5,7 @@
|
||||
#ifndef V8_CODEGEN_STRING_CONSTANTS_H_
|
||||
#define V8_CODEGEN_STRING_CONSTANTS_H_
|
||||
|
||||
#include "src/handles.h"
|
||||
#include "src/handles/handles.h"
|
||||
#include "src/objects/string.h"
|
||||
#include "src/zone/zone.h"
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
#include "src/codegen/source-position-table.h"
|
||||
#include "src/feedback-vector.h"
|
||||
#include "src/globals.h"
|
||||
#include "src/handles.h"
|
||||
#include "src/handles/handles.h"
|
||||
#include "src/objects.h"
|
||||
#include "src/utils.h"
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
#include "src/cancelable-task.h"
|
||||
#include "src/codegen/compiler.h"
|
||||
#include "src/flags.h"
|
||||
#include "src/global-handles.h"
|
||||
#include "src/handles/global-handles.h"
|
||||
#include "src/objects-inl.h"
|
||||
#include "src/parsing/parse-info.h"
|
||||
#include "src/parsing/parser.h"
|
||||
|
@ -18,8 +18,8 @@
|
||||
#include "src/base/platform/mutex.h"
|
||||
#include "src/base/platform/semaphore.h"
|
||||
#include "src/globals.h"
|
||||
#include "src/handles/maybe-handles.h"
|
||||
#include "src/identity-map.h"
|
||||
#include "src/maybe-handles.h"
|
||||
#include "testing/gtest/include/gtest/gtest_prod.h" // nogncheck
|
||||
|
||||
namespace v8 {
|
||||
|
@ -7,7 +7,7 @@
|
||||
#include "src/compiler/type-cache.h"
|
||||
#include "src/contexts.h"
|
||||
#include "src/execution/frames.h"
|
||||
#include "src/handles-inl.h"
|
||||
#include "src/handles/handles-inl.h"
|
||||
#include "src/heap/heap.h"
|
||||
#include "src/objects-inl.h"
|
||||
#include "src/objects/arguments.h"
|
||||
|
@ -8,7 +8,7 @@
|
||||
#include "src/base/hashmap.h"
|
||||
#include "src/bit-vector.h"
|
||||
#include "src/compiler/bytecode-liveness-map.h"
|
||||
#include "src/handles.h"
|
||||
#include "src/handles/handles.h"
|
||||
#include "src/interpreter/bytecode-register.h"
|
||||
#include "src/utils.h"
|
||||
#include "src/zone/zone-containers.h"
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
#include "src/compiler/js-operator.h"
|
||||
#include "src/compiler/js-type-hint-lowering.h"
|
||||
#include "src/handles.h"
|
||||
#include "src/handles/handles.h"
|
||||
#include "src/utils.h"
|
||||
|
||||
namespace v8 {
|
||||
|
@ -9,7 +9,7 @@
|
||||
#include "src/compiler/node.h"
|
||||
#include "src/compiler/opcodes.h"
|
||||
#include "src/compiler/operator.h"
|
||||
#include "src/handles-inl.h"
|
||||
#include "src/handles/handles-inl.h"
|
||||
#include "src/zone/zone.h"
|
||||
|
||||
namespace v8 {
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
#include "src/compiler/compilation-dependencies.h"
|
||||
|
||||
#include "src/handles-inl.h"
|
||||
#include "src/handles/handles-inl.h"
|
||||
#include "src/objects-inl.h"
|
||||
#include "src/objects/allocation-site-inl.h"
|
||||
#include "src/zone/zone-handle-set.h"
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include "src/handles.h"
|
||||
#include "src/handles/handles.h"
|
||||
|
||||
namespace v8 {
|
||||
namespace internal {
|
||||
|
@ -8,7 +8,7 @@
|
||||
#include "src/compiler/node-matchers.h"
|
||||
#include "src/compiler/operator-properties.h"
|
||||
#include "src/compiler/simplified-operator.h"
|
||||
#include "src/handles-inl.h"
|
||||
#include "src/handles/handles-inl.h"
|
||||
#include "src/init/bootstrapper.h"
|
||||
#include "src/objects/map-inl.h"
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
#include "src/compiler/graph.h"
|
||||
#include "src/compiler/js-graph.h"
|
||||
#include "src/compiler/node.h"
|
||||
#include "src/handles-inl.h"
|
||||
#include "src/handles/handles-inl.h"
|
||||
#include "src/objects-inl.h"
|
||||
|
||||
namespace v8 {
|
||||
|
@ -6,7 +6,7 @@
|
||||
#define V8_COMPILER_FRAME_STATES_H_
|
||||
|
||||
#include "src/builtins/builtins.h"
|
||||
#include "src/handles.h"
|
||||
#include "src/handles/handles.h"
|
||||
#include "src/objects/shared-function-info.h"
|
||||
#include "src/utils.h"
|
||||
|
||||
|
@ -11,7 +11,7 @@
|
||||
#include <memory>
|
||||
|
||||
#include "src/globals.h"
|
||||
#include "src/handles.h"
|
||||
#include "src/handles/handles.h"
|
||||
|
||||
namespace v8 {
|
||||
namespace internal {
|
||||
|
@ -6,7 +6,7 @@
|
||||
#define V8_COMPILER_JS_CONTEXT_SPECIALIZATION_H_
|
||||
|
||||
#include "src/compiler/graph-reducer.h"
|
||||
#include "src/maybe-handles.h"
|
||||
#include "src/handles/maybe-handles.h"
|
||||
|
||||
namespace v8 {
|
||||
namespace internal {
|
||||
|
@ -11,7 +11,7 @@
|
||||
#include "src/feedback-vector.h"
|
||||
#include "src/function-kind.h"
|
||||
#include "src/globals.h"
|
||||
#include "src/handles.h"
|
||||
#include "src/handles/handles.h"
|
||||
#include "src/objects.h"
|
||||
#include "src/objects/instance-type.h"
|
||||
#include "src/ostreams.h"
|
||||
|
@ -9,7 +9,7 @@
|
||||
#include "src/base/lazy-instance.h"
|
||||
#include "src/compiler/opcodes.h"
|
||||
#include "src/compiler/operator.h"
|
||||
#include "src/handles-inl.h"
|
||||
#include "src/handles/handles-inl.h"
|
||||
#include "src/objects-inl.h"
|
||||
#include "src/vector-slot-pair.h"
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
#include "src/base/compiler-specific.h"
|
||||
#include "src/globals.h"
|
||||
#include "src/maybe-handles.h"
|
||||
#include "src/handles/maybe-handles.h"
|
||||
#include "src/runtime/runtime.h"
|
||||
#include "src/type-hints.h"
|
||||
#include "src/vector-slot-pair.h"
|
||||
|
@ -8,7 +8,7 @@
|
||||
#include "src/base/flags.h"
|
||||
#include "src/compiler/graph-reducer.h"
|
||||
#include "src/deoptimizer/deoptimize-reason.h"
|
||||
#include "src/handles.h"
|
||||
#include "src/handles/handles.h"
|
||||
|
||||
namespace v8 {
|
||||
namespace internal {
|
||||
|
@ -9,7 +9,7 @@
|
||||
#include "src/codegen/machine-type.h"
|
||||
#include "src/compiler/graph-reducer.h"
|
||||
#include "src/globals.h"
|
||||
#include "src/maybe-handles.h"
|
||||
#include "src/handles/maybe-handles.h"
|
||||
#include "src/zone/zone-handle-set.h"
|
||||
|
||||
namespace v8 {
|
||||
|
@ -12,7 +12,7 @@
|
||||
#include "src/compiler/operator-properties.h"
|
||||
#include "src/compiler/simplified-operator.h"
|
||||
#include "src/compiler/verifier.h"
|
||||
#include "src/handles-inl.h"
|
||||
#include "src/handles/handles-inl.h"
|
||||
#include "src/objects-inl.h"
|
||||
|
||||
namespace v8 {
|
||||
|
@ -11,7 +11,7 @@
|
||||
#include "src/base/flags.h"
|
||||
#include "src/base/functional.h"
|
||||
#include "src/globals.h"
|
||||
#include "src/handles.h"
|
||||
#include "src/handles/handles.h"
|
||||
#include "src/zone/zone.h"
|
||||
|
||||
namespace v8 {
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
#include "src/codegen/machine-type.h"
|
||||
#include "src/compiler/js-heap-broker.h"
|
||||
#include "src/handles.h"
|
||||
#include "src/handles/handles.h"
|
||||
#include "src/objects/map.h"
|
||||
#include "src/zone/zone-containers.h"
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
#include <sstream>
|
||||
|
||||
#include "src/compiler/js-heap-broker.h"
|
||||
#include "src/handles-inl.h"
|
||||
#include "src/handles/handles-inl.h"
|
||||
#include "src/interpreter/bytecode-array-iterator.h"
|
||||
#include "src/objects/code.h"
|
||||
#include "src/objects/shared-function-info-inl.h"
|
||||
|
@ -7,8 +7,8 @@
|
||||
|
||||
#include "src/base/optional.h"
|
||||
#include "src/compiler/access-info.h"
|
||||
#include "src/handles.h"
|
||||
#include "src/maybe-handles.h"
|
||||
#include "src/handles/handles.h"
|
||||
#include "src/handles/maybe-handles.h"
|
||||
#include "src/utils.h"
|
||||
#include "src/zone/zone-containers.h"
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
#include "src/compiler/opcodes.h"
|
||||
#include "src/compiler/operator.h"
|
||||
#include "src/compiler/types.h"
|
||||
#include "src/handles-inl.h"
|
||||
#include "src/handles/handles-inl.h"
|
||||
#include "src/objects-inl.h"
|
||||
#include "src/objects/map.h"
|
||||
#include "src/objects/name.h"
|
||||
|
@ -14,8 +14,8 @@
|
||||
#include "src/compiler/write-barrier-kind.h"
|
||||
#include "src/deoptimizer/deoptimize-reason.h"
|
||||
#include "src/globals.h"
|
||||
#include "src/handles.h"
|
||||
#include "src/maybe-handles.h"
|
||||
#include "src/handles/handles.h"
|
||||
#include "src/handles/maybe-handles.h"
|
||||
#include "src/objects.h"
|
||||
#include "src/type-hints.h"
|
||||
#include "src/vector-slot-pair.h"
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
#include "src/compiler/types.h"
|
||||
|
||||
#include "src/handles-inl.h"
|
||||
#include "src/handles/handles-inl.h"
|
||||
#include "src/objects-inl.h"
|
||||
#include "src/ostreams.h"
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
#include "src/base/compiler-specific.h"
|
||||
#include "src/compiler/js-heap-broker.h"
|
||||
#include "src/globals.h"
|
||||
#include "src/handles.h"
|
||||
#include "src/handles/handles.h"
|
||||
#include "src/numbers/conversions.h"
|
||||
#include "src/objects.h"
|
||||
#include "src/ostreams.h"
|
||||
|
@ -8,7 +8,7 @@
|
||||
#include <vector>
|
||||
|
||||
#include "src/debug/debug-interface.h"
|
||||
#include "src/handles.h"
|
||||
#include "src/handles/handles.h"
|
||||
#include "src/objects.h"
|
||||
|
||||
namespace v8 {
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
#include "src/debug/debug-interface.h"
|
||||
#include "src/execution/isolate.h"
|
||||
#include "src/handles.h"
|
||||
#include "src/handles/handles.h"
|
||||
#include "src/objects/prototype.h"
|
||||
|
||||
#include "include/v8.h"
|
||||
|
@ -8,7 +8,7 @@
|
||||
#include <vector>
|
||||
|
||||
#include "src/debug/debug-interface.h"
|
||||
#include "src/handles.h"
|
||||
#include "src/handles/handles.h"
|
||||
#include "src/objects.h"
|
||||
|
||||
namespace v8 {
|
||||
|
@ -22,8 +22,8 @@
|
||||
#include "src/execution/frames-inl.h"
|
||||
#include "src/execution/isolate-inl.h"
|
||||
#include "src/execution/message-template.h"
|
||||
#include "src/global-handles.h"
|
||||
#include "src/globals.h"
|
||||
#include "src/handles/global-handles.h"
|
||||
#include "src/heap/heap-inl.h" // For NextDebuggingId.
|
||||
#include "src/init/bootstrapper.h"
|
||||
#include "src/interpreter/bytecode-array-accessor.h"
|
||||
|
@ -13,7 +13,7 @@
|
||||
#include "src/execution/frames.h"
|
||||
#include "src/execution/isolate.h"
|
||||
#include "src/globals.h"
|
||||
#include "src/handles.h"
|
||||
#include "src/handles/handles.h"
|
||||
#include "src/objects/debug-objects.h"
|
||||
|
||||
namespace v8 {
|
||||
|
@ -8,7 +8,7 @@
|
||||
#include <vector>
|
||||
|
||||
#include "src/globals.h"
|
||||
#include "src/handles.h"
|
||||
#include "src/handles/handles.h"
|
||||
|
||||
namespace v8 {
|
||||
namespace debug {
|
||||
|
@ -14,7 +14,7 @@
|
||||
#include "src/codegen/register-configuration.h"
|
||||
#include "src/diagnostics/disasm.h"
|
||||
#include "src/execution/frames-inl.h"
|
||||
#include "src/global-handles.h"
|
||||
#include "src/handles/global-handles.h"
|
||||
#include "src/heap/heap-inl.h"
|
||||
#include "src/interpreter/interpreter.h"
|
||||
#include "src/logging/counters.h"
|
||||
|
@ -12,7 +12,7 @@
|
||||
#include "src/base/platform/platform.h"
|
||||
#include "src/execution/frames-inl.h"
|
||||
#include "src/execution/frames.h"
|
||||
#include "src/global-handles.h"
|
||||
#include "src/handles/global-handles.h"
|
||||
#include "src/init/bootstrapper.h"
|
||||
#include "src/objects.h"
|
||||
#include "src/ostreams.h"
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
#include "src/execution/arguments.h"
|
||||
|
||||
#include "src/handles-inl.h"
|
||||
#include "src/handles/handles-inl.h"
|
||||
#include "src/objects-inl.h" // TODO(jkummerow): Just smi-inl.h.
|
||||
|
||||
namespace v8 {
|
||||
|
@ -6,7 +6,7 @@
|
||||
#define V8_EXECUTION_ARGUMENTS_H_
|
||||
|
||||
#include "src/allocation.h"
|
||||
#include "src/handles.h"
|
||||
#include "src/handles/handles.h"
|
||||
#include "src/logging/counters.h"
|
||||
#include "src/objects.h"
|
||||
#include "src/objects/slots.h"
|
||||
|
@ -6,7 +6,7 @@
|
||||
#define V8_EXECUTION_FRAMES_H_
|
||||
|
||||
#include "src/codegen/safepoint-table.h"
|
||||
#include "src/handles.h"
|
||||
#include "src/handles/handles.h"
|
||||
#include "src/objects.h"
|
||||
#include "src/objects/code.h"
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
#include "src/base/macros.h"
|
||||
#include "src/base/platform/time.h"
|
||||
#include "src/execution/isolate.h"
|
||||
#include "src/handles-inl.h"
|
||||
#include "src/handles/handles-inl.h"
|
||||
#include "src/numbers/conversions.h"
|
||||
#include "src/objects-inl.h"
|
||||
#include "src/objects/js-array-buffer-inl.h"
|
||||
|
@ -25,7 +25,7 @@
|
||||
#include "src/execution/isolate-data.h"
|
||||
#include "src/execution/messages.h"
|
||||
#include "src/globals.h"
|
||||
#include "src/handles.h"
|
||||
#include "src/handles/handles.h"
|
||||
#include "src/heap/factory.h"
|
||||
#include "src/heap/heap.h"
|
||||
#include "src/heap/read-only-heap.h"
|
||||
|
@ -13,7 +13,7 @@
|
||||
#include <memory>
|
||||
|
||||
#include "src/execution/message-template.h"
|
||||
#include "src/handles.h"
|
||||
#include "src/handles/handles.h"
|
||||
|
||||
namespace v8 {
|
||||
namespace internal {
|
||||
|
@ -10,7 +10,7 @@
|
||||
#include "src/api/api-inl.h"
|
||||
#include "src/base/logging.h"
|
||||
#include "src/execution/isolate.h"
|
||||
#include "src/handles-inl.h"
|
||||
#include "src/handles/handles-inl.h"
|
||||
#include "src/objects/microtask-inl.h"
|
||||
#include "src/roots-inl.h"
|
||||
#include "src/tracing/trace-event.h"
|
||||
|
@ -10,7 +10,7 @@
|
||||
#include "src/codegen/compiler.h"
|
||||
#include "src/execution/execution.h"
|
||||
#include "src/execution/frames-inl.h"
|
||||
#include "src/global-handles.h"
|
||||
#include "src/handles/global-handles.h"
|
||||
#include "src/init/bootstrapper.h"
|
||||
#include "src/interpreter/interpreter.h"
|
||||
#include "src/tracing/trace-event.h"
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
#include "src/api/api-inl.h"
|
||||
#include "src/execution/isolate.h"
|
||||
#include "src/handles.h"
|
||||
#include "src/handles/handles.h"
|
||||
#include "src/objects-inl.h"
|
||||
|
||||
namespace v8 {
|
||||
|
4
src/handles/OWNERS
Normal file
4
src/handles/OWNERS
Normal file
@ -0,0 +1,4 @@
|
||||
ishell@chromium.org
|
||||
jkummerow@chromium.org
|
||||
mlippautz@chromium.org
|
||||
yangguo@chromium.org
|
@ -2,7 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "src/global-handles.h"
|
||||
#include "src/handles/global-handles.h"
|
||||
|
||||
#include "src/api/api-inl.h"
|
||||
#include "src/base/compiler-specific.h"
|
||||
@ -396,12 +396,8 @@ class GlobalHandles::Node final : public NodeBase<GlobalHandles::Node> {
|
||||
|
||||
// State and flag accessors.
|
||||
|
||||
State state() const {
|
||||
return NodeState::decode(flags_);
|
||||
}
|
||||
void set_state(State state) {
|
||||
flags_ = NodeState::update(flags_, state);
|
||||
}
|
||||
State state() const { return NodeState::decode(flags_); }
|
||||
void set_state(State state) { flags_ = NodeState::update(flags_, state); }
|
||||
|
||||
bool is_in_young_list() const { return IsInYoungList::decode(flags_); }
|
||||
void set_in_young_list(bool v) { flags_ = IsInYoungList::update(flags_, v); }
|
||||
@ -578,13 +574,9 @@ class GlobalHandles::Node final : public NodeBase<GlobalHandles::Node> {
|
||||
|
||||
private:
|
||||
// Fields that are not used for managing node memory.
|
||||
void ClearImplFields() {
|
||||
weak_callback_ = nullptr;
|
||||
}
|
||||
void ClearImplFields() { weak_callback_ = nullptr; }
|
||||
|
||||
void CheckImplFieldsAreCleared() {
|
||||
DCHECK_EQ(nullptr, weak_callback_);
|
||||
}
|
||||
void CheckImplFieldsAreCleared() { DCHECK_EQ(nullptr, weak_callback_); }
|
||||
|
||||
// This stores three flags (independent, partially_dependent and
|
||||
// in_young_list) and a State.
|
||||
@ -1287,7 +1279,6 @@ void GlobalHandles::PrintStats() {
|
||||
PrintF(" # total = %d\n", total);
|
||||
}
|
||||
|
||||
|
||||
void GlobalHandles::Print() {
|
||||
PrintF("Global handles:\n");
|
||||
for (Node* node : *regular_nodes_) {
|
@ -2,8 +2,8 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef V8_GLOBAL_HANDLES_H_
|
||||
#define V8_GLOBAL_HANDLES_H_
|
||||
#ifndef V8_HANDLES_GLOBAL_HANDLES_H_
|
||||
#define V8_HANDLES_GLOBAL_HANDLES_H_
|
||||
|
||||
#include <type_traits>
|
||||
#include <utility>
|
||||
@ -12,7 +12,7 @@
|
||||
#include "include/v8.h"
|
||||
#include "include/v8-profiler.h"
|
||||
|
||||
#include "src/handles.h"
|
||||
#include "src/handles/handles.h"
|
||||
#include "src/objects.h"
|
||||
#include "src/utils.h"
|
||||
|
||||
@ -309,4 +309,4 @@ class EternalHandles final {
|
||||
} // namespace internal
|
||||
} // namespace v8
|
||||
|
||||
#endif // V8_GLOBAL_HANDLES_H_
|
||||
#endif // V8_HANDLES_GLOBAL_HANDLES_H_
|
@ -2,11 +2,11 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef V8_HANDLES_INL_H_
|
||||
#define V8_HANDLES_INL_H_
|
||||
#ifndef V8_HANDLES_HANDLES_INL_H_
|
||||
#define V8_HANDLES_HANDLES_INL_H_
|
||||
|
||||
#include "src/execution/isolate.h"
|
||||
#include "src/handles.h"
|
||||
#include "src/handles/handles.h"
|
||||
#include "src/sanitizer/msan.h"
|
||||
|
||||
namespace v8 {
|
||||
@ -175,4 +175,4 @@ inline SealHandleScope::~SealHandleScope() {
|
||||
} // namespace internal
|
||||
} // namespace v8
|
||||
|
||||
#endif // V8_HANDLES_INL_H_
|
||||
#endif // V8_HANDLES_HANDLES_INL_H_
|
@ -2,13 +2,13 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "src/handles.h"
|
||||
#include "src/handles/handles.h"
|
||||
|
||||
#include "src/address-map.h"
|
||||
#include "src/api/api.h"
|
||||
#include "src/base/logging.h"
|
||||
#include "src/handles/maybe-handles.h"
|
||||
#include "src/identity-map.h"
|
||||
#include "src/maybe-handles.h"
|
||||
#include "src/objects-inl.h"
|
||||
#include "src/roots-inl.h"
|
||||
|
@ -2,8 +2,8 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef V8_HANDLES_H_
|
||||
#define V8_HANDLES_H_
|
||||
#ifndef V8_HANDLES_HANDLES_H_
|
||||
#define V8_HANDLES_HANDLES_H_
|
||||
|
||||
#include <type_traits>
|
||||
|
||||
@ -364,4 +364,4 @@ struct HandleScopeData final {
|
||||
} // namespace internal
|
||||
} // namespace v8
|
||||
|
||||
#endif // V8_HANDLES_H_
|
||||
#endif // V8_HANDLES_HANDLES_H_
|
@ -2,12 +2,12 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef V8_MAYBE_HANDLES_INL_H_
|
||||
#define V8_MAYBE_HANDLES_INL_H_
|
||||
#ifndef V8_HANDLES_MAYBE_HANDLES_INL_H_
|
||||
#define V8_HANDLES_MAYBE_HANDLES_INL_H_
|
||||
|
||||
#include "src/maybe-handles.h"
|
||||
#include "src/handles/maybe-handles.h"
|
||||
|
||||
#include "src/handles-inl.h"
|
||||
#include "src/handles/handles-inl.h"
|
||||
#include "src/objects/maybe-object-inl.h"
|
||||
|
||||
namespace v8 {
|
||||
@ -83,4 +83,4 @@ inline MaybeObjectHandle handle(MaybeObject object, Isolate* isolate) {
|
||||
} // namespace internal
|
||||
} // namespace v8
|
||||
|
||||
#endif // V8_MAYBE_HANDLES_INL_H_
|
||||
#endif // V8_HANDLES_MAYBE_HANDLES_INL_H_
|
@ -2,12 +2,12 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef V8_MAYBE_HANDLES_H_
|
||||
#define V8_MAYBE_HANDLES_H_
|
||||
#ifndef V8_HANDLES_MAYBE_HANDLES_H_
|
||||
#define V8_HANDLES_MAYBE_HANDLES_H_
|
||||
|
||||
#include <type_traits>
|
||||
|
||||
#include "src/handles.h"
|
||||
#include "src/handles/handles.h"
|
||||
|
||||
namespace v8 {
|
||||
namespace internal {
|
||||
@ -118,4 +118,4 @@ class MaybeObjectHandle {
|
||||
} // namespace internal
|
||||
} // namespace v8
|
||||
|
||||
#endif // V8_MAYBE_HANDLES_H_
|
||||
#endif // V8_HANDLES_MAYBE_HANDLES_H_
|
@ -10,7 +10,7 @@
|
||||
// Clients of this interface shouldn't depend on lots of heap internals.
|
||||
// Do not include anything from src/heap here!
|
||||
#include "src/execution/isolate-inl.h"
|
||||
#include "src/handles-inl.h"
|
||||
#include "src/handles/handles-inl.h"
|
||||
#include "src/objects-inl.h"
|
||||
#include "src/objects/feedback-cell.h"
|
||||
#include "src/objects/heap-number-inl.h"
|
||||
|
@ -11,9 +11,9 @@
|
||||
#include "src/execution/messages.h"
|
||||
#include "src/function-kind.h"
|
||||
#include "src/globals.h"
|
||||
#include "src/handles.h"
|
||||
#include "src/handles/handles.h"
|
||||
#include "src/handles/maybe-handles.h"
|
||||
#include "src/heap/heap.h"
|
||||
#include "src/maybe-handles.h"
|
||||
#include "src/objects/code.h"
|
||||
#include "src/objects/dictionary.h"
|
||||
#include "src/objects/js-array.h"
|
||||
|
@ -22,7 +22,7 @@
|
||||
#include "src/execution/runtime-profiler.h"
|
||||
#include "src/execution/vm-state-inl.h"
|
||||
#include "src/feedback-vector.h"
|
||||
#include "src/global-handles.h"
|
||||
#include "src/handles/global-handles.h"
|
||||
#include "src/heap/array-buffer-collector.h"
|
||||
#include "src/heap/array-buffer-tracker-inl.h"
|
||||
#include "src/heap/barrier.h"
|
||||
|
@ -13,7 +13,7 @@
|
||||
#include "src/execution/execution.h"
|
||||
#include "src/execution/frames-inl.h"
|
||||
#include "src/execution/vm-state-inl.h"
|
||||
#include "src/global-handles.h"
|
||||
#include "src/handles/global-handles.h"
|
||||
#include "src/heap/array-buffer-collector.h"
|
||||
#include "src/heap/array-buffer-tracker-inl.h"
|
||||
#include "src/heap/gc-tracer.h"
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
#include "src/ic/handler-configuration.h"
|
||||
|
||||
#include "src/handles-inl.h"
|
||||
#include "src/handles/handles-inl.h"
|
||||
#include "src/objects-inl.h"
|
||||
#include "src/objects/data-handler-inl.h"
|
||||
#include "src/objects/field-index-inl.h"
|
||||
|
@ -6,7 +6,7 @@
|
||||
#define V8_IC_HANDLER_CONFIGURATION_H_
|
||||
|
||||
#include "src/globals.h"
|
||||
#include "src/maybe-handles.h"
|
||||
#include "src/handles/maybe-handles.h"
|
||||
#include "src/objects.h"
|
||||
#include "src/objects/data-handler.h"
|
||||
#include "src/objects/elements-kind.h"
|
||||
|
@ -10,7 +10,7 @@
|
||||
#include "src/codegen/assembler-inl.h"
|
||||
#include "src/debug/debug.h"
|
||||
#include "src/execution/frames-inl.h"
|
||||
#include "src/handles-inl.h"
|
||||
#include "src/handles/handles-inl.h"
|
||||
#include "src/objects/prototype.h"
|
||||
|
||||
namespace v8 {
|
||||
|
@ -14,7 +14,7 @@
|
||||
#include "src/execution/execution.h"
|
||||
#include "src/execution/frames-inl.h"
|
||||
#include "src/execution/isolate-inl.h"
|
||||
#include "src/handles-inl.h"
|
||||
#include "src/handles/handles-inl.h"
|
||||
#include "src/ic/call-optimization.h"
|
||||
#include "src/ic/handler-configuration-inl.h"
|
||||
#include "src/ic/ic-inl.h"
|
||||
|
@ -6,7 +6,7 @@
|
||||
#define V8_IDENTITY_MAP_H_
|
||||
|
||||
#include "src/base/functional.h"
|
||||
#include "src/handles.h"
|
||||
#include "src/handles/handles.h"
|
||||
#include "src/objects/heap-object.h"
|
||||
|
||||
namespace v8 {
|
||||
|
@ -6,7 +6,7 @@
|
||||
#define V8_INTERPRETER_BYTECODE_ARRAY_ACCESSOR_H_
|
||||
|
||||
#include "src/globals.h"
|
||||
#include "src/handles.h"
|
||||
#include "src/handles/handles.h"
|
||||
#include "src/interpreter/bytecode-register.h"
|
||||
#include "src/interpreter/bytecodes.h"
|
||||
#include "src/objects.h"
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
#include "src/api/api-arguments-inl.h"
|
||||
#include "src/execution/isolate-inl.h"
|
||||
#include "src/handles-inl.h"
|
||||
#include "src/handles/handles-inl.h"
|
||||
#include "src/heap/factory.h"
|
||||
#include "src/identity-map.h"
|
||||
#include "src/objects-inl.h"
|
||||
|
@ -18,7 +18,7 @@
|
||||
#include "src/execution/isolate.h"
|
||||
#include "src/execution/runtime-profiler.h"
|
||||
#include "src/execution/vm-state-inl.h"
|
||||
#include "src/global-handles.h"
|
||||
#include "src/handles/global-handles.h"
|
||||
#include "src/init/bootstrapper.h"
|
||||
#include "src/interpreter/bytecodes.h"
|
||||
#include "src/interpreter/interpreter.h"
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
#include "src/allocation.h"
|
||||
#include "src/assert-scope.h"
|
||||
#include "src/handles.h"
|
||||
#include "src/handles/handles.h"
|
||||
#include "src/heap/factory.h"
|
||||
#include "src/numbers/dtoa.h"
|
||||
#include "src/numbers/strtod.h"
|
||||
|
@ -16,7 +16,7 @@
|
||||
|
||||
#include "src/base/bits.h"
|
||||
#include "src/builtins/builtins.h"
|
||||
#include "src/handles-inl.h"
|
||||
#include "src/handles/handles-inl.h"
|
||||
#include "src/heap/factory.h"
|
||||
#include "src/heap/heap-write-barrier-inl.h"
|
||||
#include "src/keys.h"
|
||||
|
@ -5,7 +5,7 @@
|
||||
#include "src/objects/debug-objects.h"
|
||||
|
||||
#include "src/debug/debug-evaluate.h"
|
||||
#include "src/handles-inl.h"
|
||||
#include "src/handles/handles-inl.h"
|
||||
#include "src/objects/debug-objects-inl.h"
|
||||
#include "src/ostreams.h"
|
||||
|
||||
|
@ -8,9 +8,9 @@
|
||||
#include "src/objects/descriptor-array.h"
|
||||
|
||||
#include "src/execution/isolate.h"
|
||||
#include "src/handles/maybe-handles-inl.h"
|
||||
#include "src/heap/heap-write-barrier.h"
|
||||
#include "src/heap/heap.h"
|
||||
#include "src/maybe-handles-inl.h"
|
||||
#include "src/objects/field-type.h"
|
||||
#include "src/objects/heap-object-inl.h"
|
||||
#include "src/objects/lookup-cache-inl.h"
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
#include "src/objects/elements.h"
|
||||
|
||||
#include "src/handles-inl.h"
|
||||
#include "src/handles/handles-inl.h"
|
||||
#include "src/objects-inl.h"
|
||||
|
||||
namespace v8 {
|
||||
|
@ -6,7 +6,7 @@
|
||||
#define V8_OBJECTS_EMBEDDER_DATA_ARRAY_H_
|
||||
|
||||
#include "src/globals.h"
|
||||
#include "src/maybe-handles.h"
|
||||
#include "src/handles/maybe-handles.h"
|
||||
#include "src/objects/heap-object.h"
|
||||
#include "torque-generated/field-offsets-tq.h"
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
#include "src/objects/field-type.h"
|
||||
|
||||
#include "src/handles-inl.h"
|
||||
#include "src/handles/handles-inl.h"
|
||||
#include "src/objects-inl.h"
|
||||
#include "src/objects/smi.h"
|
||||
#include "src/ostreams.h"
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
#include "src/objects/fixed-array.h"
|
||||
|
||||
#include "src/handles-inl.h"
|
||||
#include "src/handles/handles-inl.h"
|
||||
#include "src/heap/heap-write-barrier-inl.h"
|
||||
#include "src/numbers/conversions.h"
|
||||
#include "src/objects-inl.h"
|
||||
|
@ -5,7 +5,7 @@
|
||||
#ifndef V8_OBJECTS_FIXED_ARRAY_H_
|
||||
#define V8_OBJECTS_FIXED_ARRAY_H_
|
||||
|
||||
#include "src/maybe-handles.h"
|
||||
#include "src/handles/maybe-handles.h"
|
||||
#include "src/objects/instance-type.h"
|
||||
#include "src/objects/smi.h"
|
||||
#include "torque-generated/field-offsets-tq.h"
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include "src/api/api-inl.h"
|
||||
#include "src/execution/isolate.h"
|
||||
#include "src/global-handles.h"
|
||||
#include "src/handles/global-handles.h"
|
||||
#include "src/heap/factory.h"
|
||||
#include "src/objects-inl.h"
|
||||
#include "src/objects/js-collator-inl.h"
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include "src/api/api.h"
|
||||
#include "src/execution/isolate.h"
|
||||
#include "src/global-handles.h"
|
||||
#include "src/handles/global-handles.h"
|
||||
#include "src/heap/factory.h"
|
||||
#include "src/objects-inl.h"
|
||||
#include "src/objects/intl-objects.h"
|
||||
|
@ -10,7 +10,7 @@
|
||||
#define V8_OBJECTS_JS_LOCALE_H_
|
||||
|
||||
#include "src/execution/isolate.h"
|
||||
#include "src/global-handles.h"
|
||||
#include "src/handles/global-handles.h"
|
||||
#include "src/heap/factory.h"
|
||||
#include "src/objects.h"
|
||||
#include "src/objects/managed.h"
|
||||
|
@ -9,13 +9,13 @@
|
||||
#include "src/date/date.h"
|
||||
#include "src/execution/arguments.h"
|
||||
#include "src/execution/isolate.h"
|
||||
#include "src/handles-inl.h"
|
||||
#include "src/handles/handles-inl.h"
|
||||
#include "src/handles/maybe-handles.h"
|
||||
#include "src/heap/heap-inl.h"
|
||||
#include "src/ic/ic.h"
|
||||
#include "src/init/bootstrapper.h"
|
||||
#include "src/logging/counters.h"
|
||||
#include "src/logging/log.h"
|
||||
#include "src/maybe-handles.h"
|
||||
#include "src/objects-inl.h"
|
||||
#include "src/objects/allocation-site-inl.h"
|
||||
#include "src/objects/api-callbacks.h"
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
#include "src/objects/layout-descriptor.h"
|
||||
|
||||
#include "src/handles-inl.h"
|
||||
#include "src/handles/handles-inl.h"
|
||||
#include "src/objects-inl.h"
|
||||
#include "src/objects/descriptor-array-inl.h"
|
||||
#include "src/objects/smi.h"
|
||||
|
@ -7,7 +7,7 @@
|
||||
#include <sstream>
|
||||
|
||||
#include "src/base/bits.h"
|
||||
#include "src/handles-inl.h"
|
||||
#include "src/handles/handles-inl.h"
|
||||
#include "src/objects-inl.h"
|
||||
|
||||
namespace v8 {
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
#include "src/objects/lookup.h"
|
||||
|
||||
#include "src/handles-inl.h"
|
||||
#include "src/handles/handles-inl.h"
|
||||
#include "src/heap/factory-inl.h"
|
||||
#include "src/objects-inl.h"
|
||||
#include "src/objects/api-callbacks.h"
|
||||
|
@ -7,8 +7,8 @@
|
||||
|
||||
#include <memory>
|
||||
#include "src/execution/isolate.h"
|
||||
#include "src/global-handles.h"
|
||||
#include "src/handles.h"
|
||||
#include "src/handles/global-handles.h"
|
||||
#include "src/handles/handles.h"
|
||||
#include "src/heap/factory.h"
|
||||
#include "src/objects/foreign.h"
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user