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

Side by Side Diff: Source/bindings/tests/results/core/V8TestObject.cpp

Issue 656693002: Don't count UseCounters in private scripts (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
6 6
7 #include "config.h" 7 #include "config.h"
8 #include "V8TestObject.h" 8 #include "V8TestObject.h"
9 9
10 #include "bindings/core/v8/BindingSecurity.h" 10 #include "bindings/core/v8/BindingSecurity.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestObject.h . 74 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestObject.h .
75 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in 75 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in
76 // bindings/core/v8/ScriptWrappable.h. 76 // bindings/core/v8/ScriptWrappable.h.
77 const WrapperTypeInfo& TestObject::s_wrapperTypeInfo = V8TestObject::wrapperType Info; 77 const WrapperTypeInfo& TestObject::s_wrapperTypeInfo = V8TestObject::wrapperType Info;
78 78
79 namespace TestObjectV8Internal { 79 namespace TestObjectV8Internal {
80 80
81 static void DEPRECATED_CONSTANTConstantGetterCallback(v8::Local<v8::String>, con st v8::PropertyCallbackInfo<v8::Value>& info) 81 static void DEPRECATED_CONSTANTConstantGetterCallback(v8::Local<v8::String>, con st v8::PropertyCallbackInfo<v8::Value>& info)
82 { 82 {
83 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 83 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
84 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use Counter::Constant); 84 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe cutionContext(info.GetIsolate()), UseCounter::Constant);
85 v8SetReturnValueInt(info, 1); 85 v8SetReturnValueInt(info, 1);
86 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 86 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
87 } 87 }
88 88
89 static void MEASURED_CONSTANTConstantGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 89 static void MEASURED_CONSTANTConstantGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
90 { 90 {
91 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 91 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
92 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::Co nstant); 92 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::Constant);
93 v8SetReturnValueInt(info, 1); 93 v8SetReturnValueInt(info, 1);
94 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 94 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
95 } 95 }
96 96
97 static void stringifierAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info) 97 static void stringifierAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info)
98 { 98 {
99 v8::Handle<v8::Object> holder = info.Holder(); 99 v8::Handle<v8::Object> holder = info.Holder();
100 TestObject* impl = V8TestObject::toImpl(holder); 100 TestObject* impl = V8TestObject::toImpl(holder);
101 v8SetReturnValueString(info, impl->stringifierAttribute(), info.GetIsolate() ); 101 v8SetReturnValueString(info, impl->stringifierAttribute(), info.GetIsolate() );
102 } 102 }
(...skipping 2110 matching lines...) Expand 10 before | Expand all | Expand 10 after
2213 static void deprecatedLongAttributeAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info) 2213 static void deprecatedLongAttributeAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info)
2214 { 2214 {
2215 v8::Handle<v8::Object> holder = info.Holder(); 2215 v8::Handle<v8::Object> holder = info.Holder();
2216 TestObject* impl = V8TestObject::toImpl(holder); 2216 TestObject* impl = V8TestObject::toImpl(holder);
2217 v8SetReturnValueInt(info, impl->deprecatedLongAttribute()); 2217 v8SetReturnValueInt(info, impl->deprecatedLongAttribute());
2218 } 2218 }
2219 2219
2220 static void deprecatedLongAttributeAttributeGetterCallback(v8::Local<v8::String> , const v8::PropertyCallbackInfo<v8::Value>& info) 2220 static void deprecatedLongAttributeAttributeGetterCallback(v8::Local<v8::String> , const v8::PropertyCallbackInfo<v8::Value>& info)
2221 { 2221 {
2222 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2222 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2223 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use Counter::LongAttribute); 2223 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe cutionContext(info.GetIsolate()), UseCounter::LongAttribute);
2224 TestObjectV8Internal::deprecatedLongAttributeAttributeGetter(info); 2224 TestObjectV8Internal::deprecatedLongAttributeAttributeGetter(info);
2225 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2225 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2226 } 2226 }
2227 2227
2228 static void deprecatedLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2228 static void deprecatedLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2229 { 2229 {
2230 v8::Handle<v8::Object> holder = info.Holder(); 2230 v8::Handle<v8::Object> holder = info.Holder();
2231 ExceptionState exceptionState(ExceptionState::SetterContext, "deprecatedLong Attribute", "TestObject", holder, info.GetIsolate()); 2231 ExceptionState exceptionState(ExceptionState::SetterContext, "deprecatedLong Attribute", "TestObject", holder, info.GetIsolate());
2232 TestObject* impl = V8TestObject::toImpl(holder); 2232 TestObject* impl = V8TestObject::toImpl(holder);
2233 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 2233 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2234 impl->setDeprecatedLongAttribute(cppValue); 2234 impl->setDeprecatedLongAttribute(cppValue);
2235 } 2235 }
2236 2236
2237 static void deprecatedLongAttributeAttributeSetterCallback(v8::Local<v8::String> , v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2237 static void deprecatedLongAttributeAttributeSetterCallback(v8::Local<v8::String> , v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2238 { 2238 {
2239 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2239 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2240 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use Counter::LongAttribute); 2240 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe cutionContext(info.GetIsolate()), UseCounter::LongAttribute);
2241 TestObjectV8Internal::deprecatedLongAttributeAttributeSetter(v8Value, info); 2241 TestObjectV8Internal::deprecatedLongAttributeAttributeSetter(v8Value, info);
2242 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2242 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2243 } 2243 }
2244 2244
2245 static void enforceRangeLongAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info) 2245 static void enforceRangeLongAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info)
2246 { 2246 {
2247 v8::Handle<v8::Object> holder = info.Holder(); 2247 v8::Handle<v8::Object> holder = info.Holder();
2248 TestObject* impl = V8TestObject::toImpl(holder); 2248 TestObject* impl = V8TestObject::toImpl(holder);
2249 v8SetReturnValueInt(info, impl->enforceRangeLongAttribute()); 2249 v8SetReturnValueInt(info, impl->enforceRangeLongAttribute());
2250 } 2250 }
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
2394 static void measureAsLongAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info) 2394 static void measureAsLongAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info)
2395 { 2395 {
2396 v8::Handle<v8::Object> holder = info.Holder(); 2396 v8::Handle<v8::Object> holder = info.Holder();
2397 TestObject* impl = V8TestObject::toImpl(holder); 2397 TestObject* impl = V8TestObject::toImpl(holder);
2398 v8SetReturnValueInt(info, impl->measureAsLongAttribute()); 2398 v8SetReturnValueInt(info, impl->measureAsLongAttribute());
2399 } 2399 }
2400 2400
2401 static void measureAsLongAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2401 static void measureAsLongAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
2402 { 2402 {
2403 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2403 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2404 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::Te stFeature); 2404 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::TestFeature);
2405 TestObjectV8Internal::measureAsLongAttributeAttributeGetter(info); 2405 TestObjectV8Internal::measureAsLongAttributeAttributeGetter(info);
2406 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2406 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2407 } 2407 }
2408 2408
2409 static void measureAsLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2409 static void measureAsLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2410 { 2410 {
2411 v8::Handle<v8::Object> holder = info.Holder(); 2411 v8::Handle<v8::Object> holder = info.Holder();
2412 ExceptionState exceptionState(ExceptionState::SetterContext, "measureAsLongA ttribute", "TestObject", holder, info.GetIsolate()); 2412 ExceptionState exceptionState(ExceptionState::SetterContext, "measureAsLongA ttribute", "TestObject", holder, info.GetIsolate());
2413 TestObject* impl = V8TestObject::toImpl(holder); 2413 TestObject* impl = V8TestObject::toImpl(holder);
2414 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 2414 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2415 impl->setMeasureAsLongAttribute(cppValue); 2415 impl->setMeasureAsLongAttribute(cppValue);
2416 } 2416 }
2417 2417
2418 static void measureAsLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2418 static void measureAsLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2419 { 2419 {
2420 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2420 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2421 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::Te stFeature); 2421 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::TestFeature);
2422 TestObjectV8Internal::measureAsLongAttributeAttributeSetter(v8Value, info); 2422 TestObjectV8Internal::measureAsLongAttributeAttributeSetter(v8Value, info);
2423 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2423 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2424 } 2424 }
2425 2425
2426 static void notEnumerableLongAttributeAttributeGetter(const v8::PropertyCallback Info<v8::Value>& info) 2426 static void notEnumerableLongAttributeAttributeGetter(const v8::PropertyCallback Info<v8::Value>& info)
2427 { 2427 {
2428 v8::Handle<v8::Object> holder = info.Holder(); 2428 v8::Handle<v8::Object> holder = info.Holder();
2429 TestObject* impl = V8TestObject::toImpl(holder); 2429 TestObject* impl = V8TestObject::toImpl(holder);
2430 v8SetReturnValueInt(info, impl->notEnumerableLongAttribute()); 2430 v8SetReturnValueInt(info, impl->notEnumerableLongAttribute());
2431 } 2431 }
(...skipping 2496 matching lines...) Expand 10 before | Expand all | Expand 10 after
4928 ASSERT(data->IsExternal()); 4928 ASSERT(data->IsExternal());
4929 V8PerContextData* perContextData = V8PerContextData::from(info.Holder()->Cre ationContext()); 4929 V8PerContextData* perContextData = V8PerContextData::from(info.Holder()->Cre ationContext());
4930 if (!perContextData) 4930 if (!perContextData)
4931 return; 4931 return;
4932 v8SetReturnValue(info, perContextData->constructorForType(WrapperTypeInfo::u nwrap(data))); 4932 v8SetReturnValue(info, perContextData->constructorForType(WrapperTypeInfo::u nwrap(data)));
4933 } 4933 }
4934 4934
4935 static void testInterfaceEmptyConstructorAttributeConstructorGetterCallback(v8:: Local<v8::String> property, const v8::PropertyCallbackInfo<v8::Value>& info) 4935 static void testInterfaceEmptyConstructorAttributeConstructorGetterCallback(v8:: Local<v8::String> property, const v8::PropertyCallbackInfo<v8::Value>& info)
4936 { 4936 {
4937 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4937 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4938 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use Counter::deprecatedTestInterfaceEmptyConstructorAttribute); 4938 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe cutionContext(info.GetIsolate()), UseCounter::deprecatedTestInterfaceEmptyConstr uctorAttribute);
4939 TestObjectV8Internal::TestObjectConstructorGetter(property, info); 4939 TestObjectV8Internal::TestObjectConstructorGetter(property, info);
4940 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4940 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4941 } 4941 }
4942 4942
4943 static void measureAsFeatureNameTestInterfaceEmptyConstructorAttributeConstructo rGetterCallback(v8::Local<v8::String> property, const v8::PropertyCallbackInfo<v 8::Value>& info) 4943 static void measureAsFeatureNameTestInterfaceEmptyConstructorAttributeConstructo rGetterCallback(v8::Local<v8::String> property, const v8::PropertyCallbackInfo<v 8::Value>& info)
4944 { 4944 {
4945 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4945 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4946 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::Fe atureName); 4946 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::FeatureName);
4947 TestObjectV8Internal::TestObjectConstructorGetter(property, info); 4947 TestObjectV8Internal::TestObjectConstructorGetter(property, info);
4948 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4948 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4949 } 4949 }
4950 4950
4951 static void TestObjectForceSetAttributeOnThis(v8::Local<v8::String> name, v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4951 static void TestObjectForceSetAttributeOnThis(v8::Local<v8::String> name, v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4952 { 4952 {
4953 if (info.This()->IsObject()) 4953 if (info.This()->IsObject())
4954 v8::Handle<v8::Object>::Cast(info.This())->ForceSet(name, v8Value); 4954 v8::Handle<v8::Object>::Cast(info.This())->ForceSet(name, v8Value);
4955 } 4955 }
4956 4956
(...skipping 3692 matching lines...) Expand 10 before | Expand all | Expand 10 after
8649 8649
8650 static void deprecatedVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value> & info) 8650 static void deprecatedVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value> & info)
8651 { 8651 {
8652 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8652 TestObject* impl = V8TestObject::toImpl(info.Holder());
8653 impl->deprecatedVoidMethod(); 8653 impl->deprecatedVoidMethod();
8654 } 8654 }
8655 8655
8656 static void deprecatedVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info) 8656 static void deprecatedVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info)
8657 { 8657 {
8658 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 8658 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
8659 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use Counter::voidMethod); 8659 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe cutionContext(info.GetIsolate()), UseCounter::voidMethod);
8660 TestObjectV8Internal::deprecatedVoidMethodMethod(info); 8660 TestObjectV8Internal::deprecatedVoidMethodMethod(info);
8661 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 8661 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
8662 } 8662 }
8663 8663
8664 static void doNotCheckSignatureVoidMethodMethod(const v8::FunctionCallbackInfo<v 8::Value>& info) 8664 static void doNotCheckSignatureVoidMethodMethod(const v8::FunctionCallbackInfo<v 8::Value>& info)
8665 { 8665 {
8666 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8666 TestObject* impl = V8TestObject::toImpl(info.Holder());
8667 impl->doNotCheckSignatureVoidMethod(); 8667 impl->doNotCheckSignatureVoidMethod();
8668 } 8668 }
8669 8669
(...skipping 19 matching lines...) Expand all
8689 8689
8690 static void measureAsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 8690 static void measureAsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
8691 { 8691 {
8692 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8692 TestObject* impl = V8TestObject::toImpl(info.Holder());
8693 impl->measureAsVoidMethod(); 8693 impl->measureAsVoidMethod();
8694 } 8694 }
8695 8695
8696 static void measureAsVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info) 8696 static void measureAsVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info)
8697 { 8697 {
8698 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 8698 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
8699 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::Te stFeature); 8699 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::TestFeature);
8700 TestObjectV8Internal::measureAsVoidMethodMethod(info); 8700 TestObjectV8Internal::measureAsVoidMethodMethod(info);
8701 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 8701 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
8702 } 8702 }
8703 8703
8704 static void DeprecateAsOverloadedMethod1Method(const v8::FunctionCallbackInfo<v8 ::Value>& info) 8704 static void DeprecateAsOverloadedMethod1Method(const v8::FunctionCallbackInfo<v8 ::Value>& info)
8705 { 8705 {
8706 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8706 TestObject* impl = V8TestObject::toImpl(info.Holder());
8707 impl->DeprecateAsOverloadedMethod(); 8707 impl->DeprecateAsOverloadedMethod();
8708 } 8708 }
8709 8709
8710 static void DeprecateAsOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8 ::Value>& info) 8710 static void DeprecateAsOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8 ::Value>& info)
8711 { 8711 {
8712 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs OverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); 8712 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs OverloadedMethod", "TestObject", info.Holder(), info.GetIsolate());
8713 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8713 TestObject* impl = V8TestObject::toImpl(info.Holder());
8714 int arg; 8714 int arg;
8715 { 8715 {
8716 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState); 8716 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState);
8717 } 8717 }
8718 impl->DeprecateAsOverloadedMethod(arg); 8718 impl->DeprecateAsOverloadedMethod(arg);
8719 } 8719 }
8720 8720
8721 static void DeprecateAsOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) 8721 static void DeprecateAsOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8: :Value>& info)
8722 { 8722 {
8723 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs OverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); 8723 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs OverloadedMethod", "TestObject", info.Holder(), info.GetIsolate());
8724 switch (std::min(1, info.Length())) { 8724 switch (std::min(1, info.Length())) {
8725 case 0: 8725 case 0:
8726 if (true) { 8726 if (true) {
8727 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate ()), UseCounter::TestFeatureA); 8727 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), ca llingExecutionContext(info.GetIsolate()), UseCounter::TestFeatureA);
8728 DeprecateAsOverloadedMethod1Method(info); 8728 DeprecateAsOverloadedMethod1Method(info);
8729 return; 8729 return;
8730 } 8730 }
8731 break; 8731 break;
8732 case 1: 8732 case 1:
8733 if (true) { 8733 if (true) {
8734 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate ()), UseCounter::TestFeatureB); 8734 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), ca llingExecutionContext(info.GetIsolate()), UseCounter::TestFeatureB);
8735 DeprecateAsOverloadedMethod2Method(info); 8735 DeprecateAsOverloadedMethod2Method(info);
8736 return; 8736 return;
8737 } 8737 }
8738 break; 8738 break;
8739 default: 8739 default:
8740 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i nfo.Length())); 8740 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i nfo.Length()));
8741 exceptionState.throwIfNeeded(); 8741 exceptionState.throwIfNeeded();
8742 return; 8742 return;
8743 } 8743 }
8744 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 8744 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
(...skipping 20 matching lines...) Expand all
8765 int arg; 8765 int arg;
8766 { 8766 {
8767 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState); 8767 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState);
8768 } 8768 }
8769 impl->DeprecateAsSameValueOverloadedMethod(arg); 8769 impl->DeprecateAsSameValueOverloadedMethod(arg);
8770 } 8770 }
8771 8771
8772 static void DeprecateAsSameValueOverloadedMethodMethod(const v8::FunctionCallbac kInfo<v8::Value>& info) 8772 static void DeprecateAsSameValueOverloadedMethodMethod(const v8::FunctionCallbac kInfo<v8::Value>& info)
8773 { 8773 {
8774 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs SameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); 8774 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs SameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate());
8775 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use Counter::TestFeature); 8775 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe cutionContext(info.GetIsolate()), UseCounter::TestFeature);
8776 switch (std::min(1, info.Length())) { 8776 switch (std::min(1, info.Length())) {
8777 case 0: 8777 case 0:
8778 if (true) { 8778 if (true) {
8779 DeprecateAsSameValueOverloadedMethod1Method(info); 8779 DeprecateAsSameValueOverloadedMethod1Method(info);
8780 return; 8780 return;
8781 } 8781 }
8782 break; 8782 break;
8783 case 1: 8783 case 1:
8784 if (true) { 8784 if (true) {
8785 DeprecateAsSameValueOverloadedMethod2Method(info); 8785 DeprecateAsSameValueOverloadedMethod2Method(info);
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
8818 } 8818 }
8819 impl->measureAsOverloadedMethod(arg); 8819 impl->measureAsOverloadedMethod(arg);
8820 } 8820 }
8821 8821
8822 static void measureAsOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 8822 static void measureAsOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
8823 { 8823 {
8824 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsOv erloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); 8824 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsOv erloadedMethod", "TestObject", info.Holder(), info.GetIsolate());
8825 switch (std::min(1, info.Length())) { 8825 switch (std::min(1, info.Length())) {
8826 case 0: 8826 case 0:
8827 if (true) { 8827 if (true) {
8828 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCou nter::TestFeatureA); 8828 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecut ionContext(info.GetIsolate()), UseCounter::TestFeatureA);
8829 measureAsOverloadedMethod1Method(info); 8829 measureAsOverloadedMethod1Method(info);
8830 return; 8830 return;
8831 } 8831 }
8832 break; 8832 break;
8833 case 1: 8833 case 1:
8834 if (true) { 8834 if (true) {
8835 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCou nter::TestFeatureB); 8835 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecut ionContext(info.GetIsolate()), UseCounter::TestFeatureB);
8836 measureAsOverloadedMethod2Method(info); 8836 measureAsOverloadedMethod2Method(info);
8837 return; 8837 return;
8838 } 8838 }
8839 break; 8839 break;
8840 default: 8840 default:
8841 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i nfo.Length())); 8841 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i nfo.Length()));
8842 exceptionState.throwIfNeeded(); 8842 exceptionState.throwIfNeeded();
8843 return; 8843 return;
8844 } 8844 }
8845 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 8845 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
(...skipping 20 matching lines...) Expand all
8866 int arg; 8866 int arg;
8867 { 8867 {
8868 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState); 8868 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState);
8869 } 8869 }
8870 impl->measureAsSameValueOverloadedMethod(arg); 8870 impl->measureAsSameValueOverloadedMethod(arg);
8871 } 8871 }
8872 8872
8873 static void measureAsSameValueOverloadedMethodMethod(const v8::FunctionCallbackI nfo<v8::Value>& info) 8873 static void measureAsSameValueOverloadedMethodMethod(const v8::FunctionCallbackI nfo<v8::Value>& info)
8874 { 8874 {
8875 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsSa meValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); 8875 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsSa meValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate());
8876 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::Te stFeature); 8876 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::TestFeature);
8877 switch (std::min(1, info.Length())) { 8877 switch (std::min(1, info.Length())) {
8878 case 0: 8878 case 0:
8879 if (true) { 8879 if (true) {
8880 measureAsSameValueOverloadedMethod1Method(info); 8880 measureAsSameValueOverloadedMethod1Method(info);
8881 return; 8881 return;
8882 } 8882 }
8883 break; 8883 break;
8884 case 1: 8884 case 1:
8885 if (true) { 8885 if (true) {
8886 measureAsSameValueOverloadedMethod2Method(info); 8886 measureAsSameValueOverloadedMethod2Method(info);
(...skipping 29 matching lines...) Expand all
8916 int arg; 8916 int arg;
8917 { 8917 {
8918 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState); 8918 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState);
8919 } 8919 }
8920 impl->deprecateAsMeasureAsSameValueOverloadedMethod(arg); 8920 impl->deprecateAsMeasureAsSameValueOverloadedMethod(arg);
8921 } 8921 }
8922 8922
8923 static void deprecateAsMeasureAsSameValueOverloadedMethodMethod(const v8::Functi onCallbackInfo<v8::Value>& info) 8923 static void deprecateAsMeasureAsSameValueOverloadedMethodMethod(const v8::Functi onCallbackInfo<v8::Value>& info)
8924 { 8924 {
8925 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs MeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat e()); 8925 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs MeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat e());
8926 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::Te stFeature); 8926 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::TestFeature);
8927 switch (std::min(1, info.Length())) { 8927 switch (std::min(1, info.Length())) {
8928 case 0: 8928 case 0:
8929 if (true) { 8929 if (true) {
8930 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate ()), UseCounter::TestFeatureA); 8930 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), ca llingExecutionContext(info.GetIsolate()), UseCounter::TestFeatureA);
8931 deprecateAsMeasureAsSameValueOverloadedMethod1Method(info); 8931 deprecateAsMeasureAsSameValueOverloadedMethod1Method(info);
8932 return; 8932 return;
8933 } 8933 }
8934 break; 8934 break;
8935 case 1: 8935 case 1:
8936 if (true) { 8936 if (true) {
8937 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate ()), UseCounter::TestFeatureB); 8937 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), ca llingExecutionContext(info.GetIsolate()), UseCounter::TestFeatureB);
8938 deprecateAsMeasureAsSameValueOverloadedMethod2Method(info); 8938 deprecateAsMeasureAsSameValueOverloadedMethod2Method(info);
8939 return; 8939 return;
8940 } 8940 }
8941 break; 8941 break;
8942 default: 8942 default:
8943 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i nfo.Length())); 8943 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i nfo.Length()));
8944 exceptionState.throwIfNeeded(); 8944 exceptionState.throwIfNeeded();
8945 return; 8945 return;
8946 } 8946 }
8947 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 8947 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
(...skipping 20 matching lines...) Expand all
8968 int arg; 8968 int arg;
8969 { 8969 {
8970 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState); 8970 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState);
8971 } 8971 }
8972 impl->deprecateAsSameValueMeasureAsOverloadedMethod(arg); 8972 impl->deprecateAsSameValueMeasureAsOverloadedMethod(arg);
8973 } 8973 }
8974 8974
8975 static void deprecateAsSameValueMeasureAsOverloadedMethodMethod(const v8::Functi onCallbackInfo<v8::Value>& info) 8975 static void deprecateAsSameValueMeasureAsOverloadedMethodMethod(const v8::Functi onCallbackInfo<v8::Value>& info)
8976 { 8976 {
8977 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs SameValueMeasureAsOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat e()); 8977 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs SameValueMeasureAsOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat e());
8978 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use Counter::TestFeature); 8978 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe cutionContext(info.GetIsolate()), UseCounter::TestFeature);
8979 switch (std::min(1, info.Length())) { 8979 switch (std::min(1, info.Length())) {
8980 case 0: 8980 case 0:
8981 if (true) { 8981 if (true) {
8982 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCou nter::TestFeatureA); 8982 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecut ionContext(info.GetIsolate()), UseCounter::TestFeatureA);
8983 deprecateAsSameValueMeasureAsOverloadedMethod1Method(info); 8983 deprecateAsSameValueMeasureAsOverloadedMethod1Method(info);
8984 return; 8984 return;
8985 } 8985 }
8986 break; 8986 break;
8987 case 1: 8987 case 1:
8988 if (true) { 8988 if (true) {
8989 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCou nter::TestFeatureB); 8989 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecut ionContext(info.GetIsolate()), UseCounter::TestFeatureB);
8990 deprecateAsSameValueMeasureAsOverloadedMethod2Method(info); 8990 deprecateAsSameValueMeasureAsOverloadedMethod2Method(info);
8991 return; 8991 return;
8992 } 8992 }
8993 break; 8993 break;
8994 default: 8994 default:
8995 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i nfo.Length())); 8995 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i nfo.Length()));
8996 exceptionState.throwIfNeeded(); 8996 exceptionState.throwIfNeeded();
8997 return; 8997 return;
8998 } 8998 }
8999 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 8999 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
(...skipping 20 matching lines...) Expand all
9020 int arg; 9020 int arg;
9021 { 9021 {
9022 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState); 9022 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState);
9023 } 9023 }
9024 impl->deprecateAsSameValueMeasureAsSameValueOverloadedMethod(arg); 9024 impl->deprecateAsSameValueMeasureAsSameValueOverloadedMethod(arg);
9025 } 9025 }
9026 9026
9027 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethodMethod(const v 8::FunctionCallbackInfo<v8::Value>& info) 9027 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethodMethod(const v 8::FunctionCallbackInfo<v8::Value>& info)
9028 { 9028 {
9029 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs SameValueMeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info. GetIsolate()); 9029 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs SameValueMeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info. GetIsolate());
9030 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::Te stFeatureB); 9030 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::TestFeatureB);
9031 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use Counter::TestFeatureA); 9031 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe cutionContext(info.GetIsolate()), UseCounter::TestFeatureA);
9032 switch (std::min(1, info.Length())) { 9032 switch (std::min(1, info.Length())) {
9033 case 0: 9033 case 0:
9034 if (true) { 9034 if (true) {
9035 deprecateAsSameValueMeasureAsSameValueOverloadedMethod1Method(info); 9035 deprecateAsSameValueMeasureAsSameValueOverloadedMethod1Method(info);
9036 return; 9036 return;
9037 } 9037 }
9038 break; 9038 break;
9039 case 1: 9039 case 1:
9040 if (true) { 9040 if (true) {
9041 deprecateAsSameValueMeasureAsSameValueOverloadedMethod2Method(info); 9041 deprecateAsSameValueMeasureAsSameValueOverloadedMethod2Method(info);
(...skipping 2109 matching lines...) Expand 10 before | Expand all | Expand 10 after
11151 return false; 11151 return false;
11152 11152
11153 ScriptState::Scope scope(scriptState); 11153 ScriptState::Scope scope(scriptState);
11154 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob al(), scriptState->isolate()); 11154 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob al(), scriptState->isolate());
11155 11155
11156 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ; 11156 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ;
11157 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue)); 11157 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue));
11158 } 11158 }
11159 11159
11160 } // namespace blink 11160 } // namespace blink
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/core/V8TestInterfaceEventConstructor.cpp ('k') | Source/core/frame/UseCounter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698