Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mikea committed Jan 22, 2025
1 parent 91e9bbb commit 2a178d9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
9 changes: 0 additions & 9 deletions src/workerd/jsg/setup.c++
Original file line number Diff line number Diff line change
Expand Up @@ -252,15 +252,6 @@ HeapTracer& HeapTracer::getTracer(v8::Isolate* isolate) {
return IsolateBase::from(isolate).heapTracer;
}

// todo: cleanup after 13.2 upgrade
#if V8_MAJOR_VERSION == 13 && V8_MINOR_VERSION < 2
bool HeapTracer::IsRoot(const v8::TracedReference<v8::Value>& handle) {
// V8 doesn't actually call this anymore unless a deprecated EmbedderRootsHandler option is used.
// V8 will potentially use ResetRoot() only on references that were marked droppable.
KJ_UNREACHABLE;
}
#endif

void HeapTracer::ResetRoot(const v8::TracedReference<v8::Value>& handle) {
// V8 calls this to tell us when our wrapper can be dropped. See comment about droppable
// references in Wrappable::attachWrapper() for details.
Expand Down
4 changes: 0 additions & 4 deletions src/workerd/jsg/wrappable.h
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,6 @@ class HeapTracer: public v8::EmbedderRootsHandler {
void clearFreelistedShims();

// implements EmbedderRootsHandler -------------------------------------------
// todo: cleanup after 13.2 upgrade
#if V8_MAJOR_VERSION == 13 && V8_MINOR_VERSION < 2
bool IsRoot(const v8::TracedReference<v8::Value>& handle) override;
#endif
void ResetRoot(const v8::TracedReference<v8::Value>& handle) override;
bool TryResetRoot(const v8::TracedReference<v8::Value>& handle) override;

Expand Down

0 comments on commit 2a178d9

Please sign in to comment.