Index: Source/bindings/v8/custom/V8PromiseCustom.cpp |
diff --git a/Source/bindings/v8/custom/V8PromiseCustom.cpp b/Source/bindings/v8/custom/V8PromiseCustom.cpp |
index 21f923d92f52a92fce2102d771ac626b8d6fce47..66e366818b480da0a7bda3739656916d8076b59c 100644 |
--- a/Source/bindings/v8/custom/V8PromiseCustom.cpp |
+++ b/Source/bindings/v8/custom/V8PromiseCustom.cpp |
@@ -44,7 +44,6 @@ |
#include "core/dom/Document.h" |
#include "core/dom/ExecutionContextTask.h" |
#include "core/frame/DOMWindow.h" |
-#include "core/frame/UseCounter.h" |
#include "core/inspector/InspectorInstrumentation.h" |
#include "core/workers/WorkerGlobalScope.h" |
#include "platform/Task.h" |
@@ -487,8 +486,6 @@ |
{ |
v8SetReturnValue(info, v8::Local<v8::Value>()); |
v8::Isolate* isolate = info.GetIsolate(); |
- ExecutionContext* executionContext = activeExecutionContext(isolate); |
- UseCounter::count(executionContext, UseCounter::PromiseConstructor); |
if (!info.Length() || !info[0]->IsFunction()) { |
throwTypeError("Promise constructor takes a function argument", isolate); |
return; |
@@ -522,8 +519,6 @@ |
void V8Promise::castMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
v8::Isolate* isolate = info.GetIsolate(); |
- ExecutionContext* executionContext = activeExecutionContext(isolate); |
- UseCounter::count(executionContext, UseCounter::PromiseCast); |
v8::Local<v8::Value> result = v8::Undefined(isolate); |
if (info.Length() > 0) |
result = info[0]; |
@@ -549,8 +544,6 @@ |
void V8Promise::resolveMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
v8::Isolate* isolate = info.GetIsolate(); |
- ExecutionContext* executionContext = activeExecutionContext(isolate); |
- UseCounter::count(executionContext, UseCounter::PromiseResolve); |
v8::Local<v8::Value> result = v8::Undefined(isolate); |
if (info.Length() > 0) |
result = info[0]; |
@@ -563,8 +556,6 @@ |
void V8Promise::rejectMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
v8::Isolate* isolate = info.GetIsolate(); |
- ExecutionContext* executionContext = activeExecutionContext(isolate); |
- UseCounter::count(executionContext, UseCounter::PromiseReject); |
v8::Local<v8::Value> result = v8::Undefined(isolate); |
if (info.Length() > 0) |
result = info[0]; |