Skip to content

Commit d40595e

Browse files
mlippautzV8 LUCI CQ
authored andcommitted
[api] Fully deprecated WrapperDescriptor
Bug: 338411141 Change-Id: I76f7f964dad58cbed7eccca139200d27c320950d Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/5526611 Reviewed-by: Dominik Inführ <dinfuehr@chromium.org> Commit-Queue: Michael Lippautz <mlippautz@chromium.org> Cr-Commit-Position: refs/heads/main@{#93859}
1 parent 94cd472 commit d40595e

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

include/v8-cppgc.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ struct WrapperDescriptor final {
5050
*/
5151
static constexpr uint16_t kUnknownEmbedderId = UINT16_MAX;
5252

53-
V8_DEPRECATE_SOON("WrapperDescriptor is deprecated, see crbug.com/338411141.")
53+
V8_DEPRECATED("WrapperDescriptor is deprecated, see crbug.com/338411141.")
5454
constexpr WrapperDescriptor() = default;
5555

56-
V8_DEPRECATE_SOON("WrapperDescriptor is deprecated, see crbug.com/338411141.")
56+
V8_DEPRECATED("WrapperDescriptor is deprecated, see crbug.com/338411141.")
5757
constexpr WrapperDescriptor(InternalFieldIndex wrappable_type_index,
5858
InternalFieldIndex wrappable_instance_index,
5959
uint16_t embedder_id_for_garbage_collected)
@@ -87,7 +87,7 @@ struct V8_EXPORT CppHeapCreateParams {
8787
: custom_spaces(std::move(custom_spaces)) {}
8888
END_ALLOW_USE_DEPRECATED()
8989

90-
V8_DEPRECATE_SOON("WrapperDescriptor is deprecated, see crbug.com/338411141.")
90+
V8_DEPRECATED("WrapperDescriptor is deprecated, see crbug.com/338411141.")
9191
CppHeapCreateParams(
9292
std::vector<std::unique_ptr<cppgc::CustomSpaceBase>> custom_spaces,
9393
WrapperDescriptor wrapper_descriptor)
@@ -191,6 +191,7 @@ class V8_EXPORT CppHeap {
191191
/**
192192
* \returns the wrapper descriptor of this CppHeap.
193193
*/
194+
V8_DEPRECATED("WrapperDescriptor is deprecated, see crbug.com/338411141.")
194195
v8::WrapperDescriptor wrapper_descriptor() const;
195196

196197
private:

test/unittests/heap/cppgc-js/unified-heap-snapshot-unittest.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,9 @@ class WrappedContext : public cppgc::GarbageCollected<WrappedContext>,
718718

719719
TEST_F(UnifiedHeapSnapshotTest, WrappedContext) {
720720
JsTestingScope testing_scope(v8_isolate());
721+
START_ALLOW_USE_DEPRECATED()
721722
v8::WrapperDescriptor desc = v8_isolate()->GetCppHeap()->wrapper_descriptor();
723+
END_ALLOW_USE_DEPRECATED()
722724
v8_isolate()->GetHeapProfiler()->SetGetDetachednessCallback(
723725
WrappedContext::GetDetachedness, &desc);
724726
cppgc::Persistent<WrappedContext> wrapped = WrappedContext::New(v8_isolate());

test/unittests/heap/cppgc-js/unified-heap-unittest.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -762,8 +762,10 @@ TEST_F(UnifiedHeapTest, WrapperDescriptorGetter) {
762762
v8::Isolate* isolate = v8_isolate();
763763
auto* wrappable_object =
764764
cppgc::MakeGarbageCollected<Wrappable2>(allocation_handle());
765+
START_ALLOW_USE_DEPRECATED()
765766
v8::WrapperDescriptor descriptor =
766767
isolate->GetCppHeap()->wrapper_descriptor();
768+
END_ALLOW_USE_DEPRECATED()
767769
v8::Local<v8::ObjectTemplate> tmpl = v8::ObjectTemplate::New(isolate);
768770
int size = std::max(descriptor.wrappable_type_index,
769771
descriptor.wrappable_instance_index) +

0 commit comments

Comments
 (0)