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

Unified Diff: Source/bindings/tests/results/modules/V8TestInterfacePartial.cpp

Issue 877523004: Add extended attribute, [Measure], to simplify use counting (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 11 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: Source/bindings/tests/results/modules/V8TestInterfacePartial.cpp
diff --git a/Source/bindings/tests/results/modules/V8TestInterfacePartial.cpp b/Source/bindings/tests/results/modules/V8TestInterfacePartial.cpp
index 41123e6f3f565ee0b3b555a1c2a531087da21067..e3fcd08700aca475beec8ac0670bbb15dc472e09 100644
--- a/Source/bindings/tests/results/modules/V8TestInterfacePartial.cpp
+++ b/Source/bindings/tests/results/modules/V8TestInterfacePartial.cpp
@@ -24,6 +24,7 @@
#include "core/dom/ContextFeatures.h"
#include "core/dom/Document.h"
#include "core/frame/LocalFrame.h"
+#include "core/frame/UseCounter.h"
#include "platform/RuntimeEnabledFeatures.h"
#include "platform/ScriptForbiddenScope.h"
#include "platform/TraceEvent.h"
@@ -52,6 +53,7 @@ static void voidMethodPartialOverloadMethod(const v8::FunctionCallbackInfo<v8::V
break;
case 1:
if (true) {
+ UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionContext(info.GetIsolate()), UseCounter::V8TestInterface_VoidMethodPartialOverload_Overload3);
voidMethodPartialOverload3Method(info);
return;
}
@@ -80,6 +82,7 @@ static void staticVoidMethodPartialOverloadMethod(const v8::FunctionCallbackInfo
break;
case 1:
if (true) {
+ UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionContext(info.GetIsolate()), UseCounter::V8TestInterface_StaticVoidMethodPartialOverload_Overload2);
staticVoidMethodPartialOverload2Method(info);
return;
}
@@ -113,6 +116,7 @@ static void promiseMethodPartialOverloadMethod(const v8::FunctionCallbackInfo<v8
break;
case 1:
if (V8Document::hasInstance(info[0], info.GetIsolate())) {
+ UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionContext(info.GetIsolate()), UseCounter::V8TestInterface_PromiseMethodPartialOverload_Overload3);
promiseMethodPartialOverload3Method(info);
return;
}
@@ -142,6 +146,7 @@ static void staticPromiseMethodPartialOverloadMethod(const v8::FunctionCallbackI
break;
case 1:
if (true) {
+ UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionContext(info.GetIsolate()), UseCounter::V8TestInterface_StaticPromiseMethodPartialOverload_Overload2);
staticPromiseMethodPartialOverload2Method(info);
return;
}
@@ -185,10 +190,12 @@ static void partial2VoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
break;
case 1:
if (V8Node::hasInstance(info[0], info.GetIsolate())) {
+ UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionContext(info.GetIsolate()), UseCounter::V8TestInterface_Partial2VoidMethod_Overload3);
partial2VoidMethod3Method(info);
return;
}
if (true) {
+ UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionContext(info.GetIsolate()), UseCounter::V8TestInterface_Partial2VoidMethod_Overload2);
partial2VoidMethod2Method(info);
return;
}
@@ -222,6 +229,7 @@ static void partialVoidTestEnumModulesArgMethodMethod(const v8::FunctionCallback
static void partialVoidTestEnumModulesArgMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
{
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
+ UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionContext(info.GetIsolate()), UseCounter::V8TestInterface_PartialVoidTestEnumModulesArgMethod_Method);
TestInterfaceImplementationPartialV8Internal::partialVoidTestEnumModulesArgMethodMethod(info);
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
}
@@ -243,6 +251,7 @@ static void partial2StaticVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Va
break;
case 1:
if (true) {
+ UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionContext(info.GetIsolate()), UseCounter::V8TestInterface_Partial2StaticVoidMethod_Overload2);
partial2StaticVoidMethod2Method(info);
return;
}
« Source/bindings/templates/methods.cpp ('K') | « Source/bindings/tests/results/core/V8TestObject.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698