| 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 e0570cf23d106ea619dfc37f0c38b2f16b620163..2008289559f6ed7742efd23faa68aa638ff6a26d 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/WrapperTypeInfo.h
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/WrapperTypeInfo.h
|
| @@ -140,7 +140,7 @@ struct WrapperTypeInfo {
|
| void refObject(ScriptWrappable* scriptWrappable) const
|
| {
|
| if (isGarbageCollected()) {
|
| - Heap::increaseWrapperCount(1);
|
| + Heap::heapStats().increaseWrapperCount(1);
|
| } else {
|
| ASSERT(refObjectFunction);
|
| refObjectFunction(scriptWrappable);
|
| @@ -150,8 +150,9 @@ struct WrapperTypeInfo {
|
| void derefObject(ScriptWrappable* scriptWrappable) const
|
| {
|
| if (isGarbageCollected()) {
|
| - Heap::decreaseWrapperCount(1);
|
| - Heap::increaseCollectedWrapperCount(1);
|
| + ThreadHeapStats& heapStats = Heap::heapStats();
|
| + heapStats.decreaseWrapperCount(1);
|
| + heapStats.increaseCollectedWrapperCount(1);
|
| } else {
|
| ASSERT(derefObjectFunction);
|
| derefObjectFunction(scriptWrappable);
|
| @@ -161,8 +162,9 @@ struct WrapperTypeInfo {
|
| void derefObject() const
|
| {
|
| ASSERT(isGarbageCollected());
|
| - Heap::decreaseWrapperCount(1);
|
| - Heap::increaseCollectedWrapperCount(1);
|
| + ThreadHeapStats& heapStats = Heap::heapStats();
|
| + heapStats.decreaseWrapperCount(1);
|
| + heapStats.increaseCollectedWrapperCount(1);
|
| }
|
|
|
| void trace(Visitor* visitor, ScriptWrappable* scriptWrappable) const
|
|
|