Skip to content

Commit df45777

Browse files
katallaxiegithub-actions[bot]
authored andcommitted
Upgrade V8 binaries for 13.5.212.10 version
1 parent 271ff4c commit df45777

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+7466
-2684
lines changed

deps/include/DEPS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ include_rules = [
77
"+cppgc/heap-statistics.h",
88
"+cppgc/internal/write-barrier.h",
99
"+cppgc/visitor.h",
10+
"+perfetto",
1011
]

deps/include/DIR_METADATA

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,7 @@
88

99
monorail {
1010
component: "Blink>JavaScript>API"
11-
}
11+
}
12+
buganizer_public: {
13+
component_id: 1456124
14+
}

deps/include/OWNERS

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@ per-file js_protocol.pdl=file:../src/inspector/OWNERS
1414
per-file v8-inspector*=file:../src/inspector/OWNERS
1515
per-file v8-inspector*=file:../src/inspector/OWNERS
1616

17+
per-file v8-profiler.h=file:../src/profiler/OWNERS
18+
1719
# Needed by the auto_tag builder
1820
per-file v8-version.h=v8-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com
1921

2022
# For branch updates:
2123
per-file v8-version.h=file:../INFRA_OWNERS
22-
per-file v8-version.h=hablich@chromium.org
2324
per-file v8-version.h=vahl@chromium.org

deps/include/cppgc/DEPS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ include_rules = [
22
"-include",
33
"+v8config.h",
44
"+v8-platform.h",
5+
"+v8-source-location.h",
56
"+cppgc",
67
"-src",
78
"+libplatform/libplatform.h",

deps/include/cppgc/allocation.h

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,9 @@ class AllocationHandle;
4444

4545
namespace internal {
4646

47-
// Similar to C++17 std::align_val_t;
48-
enum class AlignVal : size_t {};
47+
using AlignVal = std::align_val_t;
4948

50-
class V8_EXPORT MakeGarbageCollectedTraitInternal {
49+
class MakeGarbageCollectedTraitInternal {
5150
protected:
5251
static inline void MarkObjectAsFullyConstructed(const void* payload) {
5352
// See api_constants for an explanation of the constants.
@@ -121,16 +120,15 @@ class V8_EXPORT MakeGarbageCollectedTraitInternal {
121120
};
122121

123122
private:
124-
static void* CPPGC_DEFAULT_ALIGNED Allocate(cppgc::AllocationHandle&, size_t,
125-
GCInfoIndex);
126-
static void* CPPGC_DOUBLE_WORD_ALIGNED Allocate(cppgc::AllocationHandle&,
127-
size_t, AlignVal,
128-
GCInfoIndex);
129-
static void* CPPGC_DEFAULT_ALIGNED Allocate(cppgc::AllocationHandle&, size_t,
130-
GCInfoIndex, CustomSpaceIndex);
131-
static void* CPPGC_DOUBLE_WORD_ALIGNED Allocate(cppgc::AllocationHandle&,
132-
size_t, AlignVal, GCInfoIndex,
133-
CustomSpaceIndex);
123+
V8_EXPORT static void* CPPGC_DEFAULT_ALIGNED
124+
Allocate(cppgc::AllocationHandle&, size_t, GCInfoIndex);
125+
V8_EXPORT static void* CPPGC_DOUBLE_WORD_ALIGNED
126+
Allocate(cppgc::AllocationHandle&, size_t, AlignVal, GCInfoIndex);
127+
V8_EXPORT static void* CPPGC_DEFAULT_ALIGNED
128+
Allocate(cppgc::AllocationHandle&, size_t, GCInfoIndex, CustomSpaceIndex);
129+
V8_EXPORT static void* CPPGC_DOUBLE_WORD_ALIGNED
130+
Allocate(cppgc::AllocationHandle&, size_t, AlignVal, GCInfoIndex,
131+
CustomSpaceIndex);
134132

135133
friend class HeapObjectHeader;
136134
};

deps/include/cppgc/cross-thread-persistent.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,11 @@ class BasicCrossThreadPersistent final : public CrossThreadPersistentBase,
148148

149149
template <typename U, typename MemberBarrierPolicy,
150150
typename MemberWeaknessTag, typename MemberCheckingPolicy,
151+
typename MemberStorageType,
151152
typename = std::enable_if_t<std::is_base_of<T, U>::value>>
152153
BasicCrossThreadPersistent(
153154
internal::BasicMember<U, MemberBarrierPolicy, MemberWeaknessTag,
154-
MemberCheckingPolicy>
155+
MemberCheckingPolicy, MemberStorageType>
155156
member,
156157
const SourceLocation& loc = SourceLocation::Current())
157158
: BasicCrossThreadPersistent(member.Get(), loc) {}
@@ -230,10 +231,11 @@ class BasicCrossThreadPersistent final : public CrossThreadPersistentBase,
230231
// Assignment from member.
231232
template <typename U, typename MemberBarrierPolicy,
232233
typename MemberWeaknessTag, typename MemberCheckingPolicy,
234+
typename MemberStorageType,
233235
typename = std::enable_if_t<std::is_base_of<T, U>::value>>
234236
BasicCrossThreadPersistent& operator=(
235237
internal::BasicMember<U, MemberBarrierPolicy, MemberWeaknessTag,
236-
MemberCheckingPolicy>
238+
MemberCheckingPolicy, MemberStorageType>
237239
member) {
238240
return operator=(member.Get());
239241
}

deps/include/cppgc/default-platform.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,12 @@ class V8_EXPORT DefaultPlatform : public Platform {
3737
return v8_platform_->MonotonicallyIncreasingTime();
3838
}
3939

40-
std::shared_ptr<cppgc::TaskRunner> GetForegroundTaskRunner() override {
40+
std::shared_ptr<cppgc::TaskRunner> GetForegroundTaskRunner(
41+
TaskPriority priority) override {
4142
// V8's default platform creates a new task runner when passed the
4243
// `v8::Isolate` pointer the first time. For non-default platforms this will
4344
// require getting the appropriate task runner.
44-
return v8_platform_->GetForegroundTaskRunner(kNoIsolate);
45+
return v8_platform_->GetForegroundTaskRunner(kNoIsolate, priority);
4546
}
4647

4748
std::unique_ptr<cppgc::JobHandle> PostJob(

deps/include/cppgc/garbage-collected.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,14 @@ class GarbageCollectedMixin {
9494
public:
9595
using IsGarbageCollectedMixinTypeMarker = void;
9696

97+
// Must use MakeGarbageCollected.
98+
void* operator new(size_t) = delete;
99+
void* operator new[](size_t) = delete;
100+
// The garbage collector is taking care of reclaiming the object.
101+
// Not override the non-array varaint of `delete` to not conflict with the
102+
// operator in GarbageCollected above.
103+
void operator delete[](void*) = delete;
104+
97105
/**
98106
* This Trace method must be overriden by objects inheriting from
99107
* GarbageCollectedMixin.

deps/include/cppgc/heap-consistency.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ class HeapConsistency final {
6262
* \returns whether a write barrier is needed and which barrier to invoke.
6363
*/
6464
template <typename T, typename WeaknessTag, typename WriteBarrierPolicy,
65-
typename CheckingPolicy>
65+
typename CheckingPolicy, typename StorageType>
6666
static V8_INLINE WriteBarrierType GetWriteBarrierType(
6767
const internal::BasicMember<T, WeaknessTag, WriteBarrierPolicy,
68-
CheckingPolicy>& value,
68+
CheckingPolicy, StorageType>& value,
6969
WriteBarrierParams& params) {
7070
return internal::WriteBarrier::GetWriteBarrierType(
7171
value.GetRawSlot(), value.GetRawStorage(), params);
@@ -114,7 +114,7 @@ class HeapConsistency final {
114114
* has not yet been processed.
115115
*
116116
* \param params The parameters retrieved from `GetWriteBarrierType()`.
117-
* \param object The pointer to the object. May be an interior pointer to a
117+
* \param object The pointer to the object. May be an interior pointer to
118118
* an interface of the actual object.
119119
*/
120120
static V8_INLINE void DijkstraWriteBarrier(const WriteBarrierParams& params,

deps/include/cppgc/heap-statistics.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ struct HeapStatistics final {
102102
size_t resident_size_bytes = 0;
103103
/** Amount of memory actually used on the heap. */
104104
size_t used_size_bytes = 0;
105+
/** Memory retained in the page pool, not used directly by the heap. */
106+
size_t pooled_memory_size_bytes = 0;
105107
/** Detail level of this HeapStatistics. */
106108
DetailLevel detail_level;
107109

0 commit comments

Comments
 (0)