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

[iwyu] Detach date.h from Giant Include Cluster

BUG=v8:7490,v8:8238

Change-Id: Id55ad482903abac635981d9e417e255fec427c52
Reviewed-on: https://chromium-review.googlesource.com/c/1352285Reviewed-by: 's avatarClemens Hammacher <clemensh@chromium.org>
Commit-Queue: Marja Hölttä <marja@chromium.org>
Cr-Commit-Position: refs/heads/master@{#57894}
parent 4f79c305
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
#include "src/contexts.h" #include "src/contexts.h"
#include "src/conversions-inl.h" #include "src/conversions-inl.h"
#include "src/counters.h" #include "src/counters.h"
#include "src/date.h"
#include "src/debug/debug-coverage.h" #include "src/debug/debug-coverage.h"
#include "src/debug/debug-evaluate.h" #include "src/debug/debug-evaluate.h"
#include "src/debug/debug-type-profile.h" #include "src/debug/debug-type-profile.h"
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
#include "src/code-stub-assembler.h" #include "src/code-stub-assembler.h"
#include "src/conversions.h" #include "src/conversions.h"
#include "src/counters.h" #include "src/counters.h"
#include "src/date.h"
#include "src/dateparser-inl.h" #include "src/dateparser-inl.h"
#include "src/objects-inl.h" #include "src/objects-inl.h"
#ifdef V8_INTL_SUPPORT #ifdef V8_INTL_SUPPORT
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
#include "src/codegen.h" #include "src/codegen.h"
#include "src/compiler/code-assembler.h" #include "src/compiler/code-assembler.h"
#include "src/counters.h" #include "src/counters.h"
#include "src/date.h"
#include "src/debug/debug.h" #include "src/debug/debug.h"
#include "src/deoptimizer.h" #include "src/deoptimizer.h"
#include "src/elements.h" #include "src/elements.h"
......
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
#include "src/compilation-statistics.h" #include "src/compilation-statistics.h"
#include "src/compiler-dispatcher/compiler-dispatcher.h" #include "src/compiler-dispatcher/compiler-dispatcher.h"
#include "src/compiler-dispatcher/optimizing-compile-dispatcher.h" #include "src/compiler-dispatcher/optimizing-compile-dispatcher.h"
#include "src/date.h"
#include "src/debug/debug-frames.h" #include "src/debug/debug-frames.h"
#include "src/debug/debug.h" #include "src/debug/debug.h"
#include "src/deoptimizer.h" #include "src/deoptimizer.h"
...@@ -3578,6 +3579,13 @@ void Isolate::MaybeInitializeVectorListFromHeap() { ...@@ -3578,6 +3579,13 @@ void Isolate::MaybeInitializeVectorListFromHeap() {
SetFeedbackVectorsForProfilingTools(*list); SetFeedbackVectorsForProfilingTools(*list);
} }
void Isolate::set_date_cache(DateCache* date_cache) {
if (date_cache != date_cache_) {
delete date_cache_;
}
date_cache_ = date_cache;
}
bool Isolate::IsArrayOrObjectOrStringPrototype(Object* object) { bool Isolate::IsArrayOrObjectOrStringPrototype(Object* object) {
Object* context = heap()->native_contexts_list(); Object* context = heap()->native_contexts_list();
while (!context->IsUndefined(this)) { while (!context->IsUndefined(this)) {
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#include "src/base/macros.h" #include "src/base/macros.h"
#include "src/builtins/builtins.h" #include "src/builtins/builtins.h"
#include "src/contexts.h" #include "src/contexts.h"
#include "src/date.h"
#include "src/debug/debug-interface.h" #include "src/debug/debug-interface.h"
#include "src/execution.h" #include "src/execution.h"
#include "src/futex-emulation.h" #include "src/futex-emulation.h"
...@@ -1189,12 +1188,7 @@ class Isolate final : private HiddenFactory { ...@@ -1189,12 +1188,7 @@ class Isolate final : private HiddenFactory {
return date_cache_; return date_cache_;
} }
void set_date_cache(DateCache* date_cache) { void set_date_cache(DateCache* date_cache);
if (date_cache != date_cache_) {
delete date_cache_;
}
date_cache_ = date_cache;
}
#ifdef V8_INTL_SUPPORT #ifdef V8_INTL_SUPPORT
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
#include "src/assembler-inl.h" #include "src/assembler-inl.h"
#include "src/bootstrapper.h" #include "src/bootstrapper.h"
#include "src/date.h"
#include "src/disasm.h" #include "src/disasm.h"
#include "src/disassembler.h" #include "src/disassembler.h"
#include "src/elements.h" #include "src/elements.h"
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
#include <string> #include <string>
#include <vector> #include <vector>
#include "src/date.h"
#include "src/heap/factory.h" #include "src/heap/factory.h"
#include "src/isolate.h" #include "src/isolate.h"
#include "src/objects/intl-objects.h" #include "src/objects/intl-objects.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