Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(277)

Unified Diff: third_party/WebKit/Source/bindings/core/v8/WrapperTypeInfo.h

Issue 1892713003: Prepare for multiple ThreadHeaps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/bindings/core/v8/WrapperTypeInfo.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/WrapperTypeInfo.h b/third_party/WebKit/Source/bindings/core/v8/WrapperTypeInfo.h
index 077e05fda62c76a107e37c5a77d5eb550b7cc77f..cf7ea9f16cf0865222f5d64ca2596ba5ea906160 100644
--- a/third_party/WebKit/Source/bindings/core/v8/WrapperTypeInfo.h
+++ b/third_party/WebKit/Source/bindings/core/v8/WrapperTypeInfo.h
@@ -123,12 +123,12 @@ struct WrapperTypeInfo {
void wrapperCreated() const
{
- ThreadHeap::heapStats().increaseWrapperCount(1);
+ ThreadState::current()->heap().heapStats().increaseWrapperCount(1);
}
void wrapperDestroyed() const
{
- ThreadHeapStats& heapStats = ThreadHeap::heapStats();
+ ThreadHeapStats& heapStats = ThreadState::current()->heap().heapStats();
heapStats.decreaseWrapperCount(1);
heapStats.increaseCollectedWrapperCount(1);
}

Powered by Google App Engine
This is Rietveld 408576698