| 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 6efa056876d9b0235b982162e3705de002c249ee..2cfe8a18c8fd1b243b8f2d5d999f70a6bc3fe08d 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);
|
| + ThreadState::current()->increaseWrapperCount(1);
|
| } else {
|
| ASSERT(refObjectFunction);
|
| refObjectFunction(scriptWrappable);
|
| @@ -150,8 +150,8 @@ struct WrapperTypeInfo {
|
| void derefObject(ScriptWrappable* scriptWrappable) const
|
| {
|
| if (isGarbageCollected()) {
|
| - Heap::decreaseWrapperCount(1);
|
| - Heap::increaseCollectedWrapperCount(1);
|
| + ThreadState::current()->decreaseWrapperCount(1);
|
| + ThreadState::current()->increaseCollectedWrapperCount(1);
|
| } else {
|
| ASSERT(derefObjectFunction);
|
| derefObjectFunction(scriptWrappable);
|
| @@ -161,8 +161,8 @@ struct WrapperTypeInfo {
|
| void derefObject() const
|
| {
|
| ASSERT(isGarbageCollected());
|
| - Heap::decreaseWrapperCount(1);
|
| - Heap::increaseCollectedWrapperCount(1);
|
| + ThreadState::current()->decreaseWrapperCount(1);
|
| + ThreadState::current()->increaseCollectedWrapperCount(1);
|
| }
|
|
|
| void trace(Visitor* visitor, ScriptWrappable* scriptWrappable) const
|
|
|