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

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

Issue 877523004: Add extended attribute, [Measure], to simplify use counting (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Use the same key for overloads. 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 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 #if ENABLE(CONDITION) 8 #if ENABLE(CONDITION)
9 #include "V8TestInterface.h" 9 #include "V8TestInterface.h"
10 10
(...skipping 13 matching lines...) Expand all
24 #include "bindings/core/v8/V8TestInterface.h" 24 #include "bindings/core/v8/V8TestInterface.h"
25 #include "bindings/core/v8/V8TestInterfaceEmpty.h" 25 #include "bindings/core/v8/V8TestInterfaceEmpty.h"
26 #include "bindings/core/v8/V8Window.h" 26 #include "bindings/core/v8/V8Window.h"
27 #include "bindings/tests/idls/core/TestImplements2.h" 27 #include "bindings/tests/idls/core/TestImplements2.h"
28 #include "bindings/tests/idls/core/TestImplements3Implementation.h" 28 #include "bindings/tests/idls/core/TestImplements3Implementation.h"
29 #include "bindings/tests/idls/core/TestPartialInterface.h" 29 #include "bindings/tests/idls/core/TestPartialInterface.h"
30 #include "bindings/tests/idls/core/TestPartialInterfaceImplementation.h" 30 #include "bindings/tests/idls/core/TestPartialInterfaceImplementation.h"
31 #include "core/dom/ContextFeatures.h" 31 #include "core/dom/ContextFeatures.h"
32 #include "core/dom/Document.h" 32 #include "core/dom/Document.h"
33 #include "core/frame/LocalFrame.h" 33 #include "core/frame/LocalFrame.h"
34 #include "core/frame/UseCounter.h"
34 #include "platform/RuntimeEnabledFeatures.h" 35 #include "platform/RuntimeEnabledFeatures.h"
35 #include "platform/ScriptForbiddenScope.h" 36 #include "platform/ScriptForbiddenScope.h"
36 #include "platform/TraceEvent.h" 37 #include "platform/TraceEvent.h"
37 #include "wtf/GetPtr.h" 38 #include "wtf/GetPtr.h"
38 #include "wtf/RefPtr.h" 39 #include "wtf/RefPtr.h"
39 40
40 namespace blink { 41 namespace blink {
41 42
42 WrapperTypeInfo V8TestInterface::wrapperTypeInfo = { gin::kEmbedderBlink, V8Test Interface::domTemplate, V8TestInterface::refObject, V8TestInterface::derefObject , V8TestInterface::trace, V8TestInterface::toActiveDOMObject, V8TestInterface::v isitDOMWrapper, V8TestInterface::installConditionallyEnabledMethods, V8TestInter face::installConditionallyEnabledProperties, &V8TestInterfaceEmpty::wrapperTypeI nfo, WrapperTypeInfo::WrapperTypeObjectPrototype, WrapperTypeInfo::ObjectClassId , WrapperTypeInfo::NotInheritFromEventTarget, WrapperTypeInfo::Dependent, Wrappe rTypeInfo::RefCountedObject }; 43 WrapperTypeInfo V8TestInterface::wrapperTypeInfo = { gin::kEmbedderBlink, V8Test Interface::domTemplate, V8TestInterface::refObject, V8TestInterface::derefObject , V8TestInterface::trace, V8TestInterface::toActiveDOMObject, V8TestInterface::v isitDOMWrapper, V8TestInterface::installConditionallyEnabledMethods, V8TestInter face::installConditionallyEnabledProperties, &V8TestInterfaceEmpty::wrapperTypeI nfo, WrapperTypeInfo::WrapperTypeObjectPrototype, WrapperTypeInfo::ObjectClassId , WrapperTypeInfo::NotInheritFromEventTarget, WrapperTypeInfo::Dependent, Wrappe rTypeInfo::RefCountedObject };
43 44
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 static void doubleAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va lue>& info) 93 static void doubleAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va lue>& info)
93 { 94 {
94 v8::Local<v8::Object> holder = info.Holder(); 95 v8::Local<v8::Object> holder = info.Holder();
95 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); 96 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
96 v8SetReturnValue(info, impl->doubleAttribute()); 97 v8SetReturnValue(info, impl->doubleAttribute());
97 } 98 }
98 99
99 static void doubleAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 100 static void doubleAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
100 { 101 {
101 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 102 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
103 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_DoubleAttribute_AttributeGett er);
102 TestInterfaceImplementationV8Internal::doubleAttributeAttributeGetter(info); 104 TestInterfaceImplementationV8Internal::doubleAttributeAttributeGetter(info);
103 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 105 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
104 } 106 }
105 107
106 static void doubleAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v 8::PropertyCallbackInfo<void>& info) 108 static void doubleAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v 8::PropertyCallbackInfo<void>& info)
107 { 109 {
108 v8::Local<v8::Object> holder = info.Holder(); 110 v8::Local<v8::Object> holder = info.Holder();
109 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleAttribut e", "TestInterface", holder, info.GetIsolate()); 111 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleAttribut e", "TestInterface", holder, info.GetIsolate());
110 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); 112 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
111 TONATIVE_VOID_EXCEPTIONSTATE(double, cppValue, toRestrictedDouble(v8Value, e xceptionState), exceptionState); 113 TONATIVE_VOID_EXCEPTIONSTATE(double, cppValue, toRestrictedDouble(v8Value, e xceptionState), exceptionState);
112 impl->setDoubleAttribute(cppValue); 114 impl->setDoubleAttribute(cppValue);
113 } 115 }
114 116
115 static void doubleAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 117 static void doubleAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
116 { 118 {
117 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 119 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
120 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_DoubleAttribute_AttributeSett er);
118 TestInterfaceImplementationV8Internal::doubleAttributeAttributeSetter(v8Valu e, info); 121 TestInterfaceImplementationV8Internal::doubleAttributeAttributeSetter(v8Valu e, info);
119 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 122 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
120 } 123 }
121 124
122 static void floatAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val ue>& info) 125 static void floatAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val ue>& info)
123 { 126 {
124 v8::Local<v8::Object> holder = info.Holder(); 127 v8::Local<v8::Object> holder = info.Holder();
125 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); 128 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
126 v8SetReturnValue(info, impl->floatAttribute()); 129 v8SetReturnValue(info, impl->floatAttribute());
127 } 130 }
128 131
129 static void floatAttributeAttributeGetterCallback(v8::Local<v8::String>, const v 8::PropertyCallbackInfo<v8::Value>& info) 132 static void floatAttributeAttributeGetterCallback(v8::Local<v8::String>, const v 8::PropertyCallbackInfo<v8::Value>& info)
130 { 133 {
131 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 134 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
135 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_FloatAttribute_AttributeGette r);
132 TestInterfaceImplementationV8Internal::floatAttributeAttributeGetter(info); 136 TestInterfaceImplementationV8Internal::floatAttributeAttributeGetter(info);
133 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 137 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
134 } 138 }
135 139
136 static void floatAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::PropertyCallbackInfo<void>& info) 140 static void floatAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::PropertyCallbackInfo<void>& info)
137 { 141 {
138 v8::Local<v8::Object> holder = info.Holder(); 142 v8::Local<v8::Object> holder = info.Holder();
139 ExceptionState exceptionState(ExceptionState::SetterContext, "floatAttribute ", "TestInterface", holder, info.GetIsolate()); 143 ExceptionState exceptionState(ExceptionState::SetterContext, "floatAttribute ", "TestInterface", holder, info.GetIsolate());
140 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); 144 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
141 TONATIVE_VOID_EXCEPTIONSTATE(float, cppValue, toRestrictedFloat(v8Value, exc eptionState), exceptionState); 145 TONATIVE_VOID_EXCEPTIONSTATE(float, cppValue, toRestrictedFloat(v8Value, exc eptionState), exceptionState);
142 impl->setFloatAttribute(cppValue); 146 impl->setFloatAttribute(cppValue);
143 } 147 }
144 148
145 static void floatAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 149 static void floatAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
146 { 150 {
147 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 151 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
152 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_FloatAttribute_AttributeSette r);
148 TestInterfaceImplementationV8Internal::floatAttributeAttributeSetter(v8Value , info); 153 TestInterfaceImplementationV8Internal::floatAttributeAttributeSetter(v8Value , info);
149 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 154 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
150 } 155 }
151 156
152 static void unrestrictedDoubleAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info) 157 static void unrestrictedDoubleAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info)
153 { 158 {
154 v8::Local<v8::Object> holder = info.Holder(); 159 v8::Local<v8::Object> holder = info.Holder();
155 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); 160 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
156 v8SetReturnValue(info, impl->unrestrictedDoubleAttribute()); 161 v8SetReturnValue(info, impl->unrestrictedDoubleAttribute());
157 } 162 }
158 163
159 static void unrestrictedDoubleAttributeAttributeGetterCallback(v8::Local<v8::Str ing>, const v8::PropertyCallbackInfo<v8::Value>& info) 164 static void unrestrictedDoubleAttributeAttributeGetterCallback(v8::Local<v8::Str ing>, const v8::PropertyCallbackInfo<v8::Value>& info)
160 { 165 {
161 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 166 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
167 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_UnrestrictedDoubleAttribute_A ttributeGetter);
162 TestInterfaceImplementationV8Internal::unrestrictedDoubleAttributeAttributeG etter(info); 168 TestInterfaceImplementationV8Internal::unrestrictedDoubleAttributeAttributeG etter(info);
163 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 169 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
164 } 170 }
165 171
166 static void unrestrictedDoubleAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::PropertyCallbackInfo<void>& info) 172 static void unrestrictedDoubleAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::PropertyCallbackInfo<void>& info)
167 { 173 {
168 v8::Local<v8::Object> holder = info.Holder(); 174 v8::Local<v8::Object> holder = info.Holder();
169 ExceptionState exceptionState(ExceptionState::SetterContext, "unrestrictedDo ubleAttribute", "TestInterface", holder, info.GetIsolate()); 175 ExceptionState exceptionState(ExceptionState::SetterContext, "unrestrictedDo ubleAttribute", "TestInterface", holder, info.GetIsolate());
170 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); 176 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
171 TONATIVE_VOID_EXCEPTIONSTATE(double, cppValue, toDouble(v8Value, exceptionSt ate), exceptionState); 177 TONATIVE_VOID_EXCEPTIONSTATE(double, cppValue, toDouble(v8Value, exceptionSt ate), exceptionState);
172 impl->setUnrestrictedDoubleAttribute(cppValue); 178 impl->setUnrestrictedDoubleAttribute(cppValue);
173 } 179 }
174 180
175 static void unrestrictedDoubleAttributeAttributeSetterCallback(v8::Local<v8::Str ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 181 static void unrestrictedDoubleAttributeAttributeSetterCallback(v8::Local<v8::Str ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
176 { 182 {
177 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 183 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
184 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_UnrestrictedDoubleAttribute_A ttributeSetter);
178 TestInterfaceImplementationV8Internal::unrestrictedDoubleAttributeAttributeS etter(v8Value, info); 185 TestInterfaceImplementationV8Internal::unrestrictedDoubleAttributeAttributeS etter(v8Value, info);
179 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 186 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
180 } 187 }
181 188
182 static void unrestrictedFloatAttributeAttributeGetter(const v8::PropertyCallback Info<v8::Value>& info) 189 static void unrestrictedFloatAttributeAttributeGetter(const v8::PropertyCallback Info<v8::Value>& info)
183 { 190 {
184 v8::Local<v8::Object> holder = info.Holder(); 191 v8::Local<v8::Object> holder = info.Holder();
185 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); 192 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
186 v8SetReturnValue(info, impl->unrestrictedFloatAttribute()); 193 v8SetReturnValue(info, impl->unrestrictedFloatAttribute());
187 } 194 }
188 195
189 static void unrestrictedFloatAttributeAttributeGetterCallback(v8::Local<v8::Stri ng>, const v8::PropertyCallbackInfo<v8::Value>& info) 196 static void unrestrictedFloatAttributeAttributeGetterCallback(v8::Local<v8::Stri ng>, const v8::PropertyCallbackInfo<v8::Value>& info)
190 { 197 {
191 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 198 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
199 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_UnrestrictedFloatAttribute_At tributeGetter);
192 TestInterfaceImplementationV8Internal::unrestrictedFloatAttributeAttributeGe tter(info); 200 TestInterfaceImplementationV8Internal::unrestrictedFloatAttributeAttributeGe tter(info);
193 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 201 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
194 } 202 }
195 203
196 static void unrestrictedFloatAttributeAttributeSetter(v8::Local<v8::Value> v8Val ue, const v8::PropertyCallbackInfo<void>& info) 204 static void unrestrictedFloatAttributeAttributeSetter(v8::Local<v8::Value> v8Val ue, const v8::PropertyCallbackInfo<void>& info)
197 { 205 {
198 v8::Local<v8::Object> holder = info.Holder(); 206 v8::Local<v8::Object> holder = info.Holder();
199 ExceptionState exceptionState(ExceptionState::SetterContext, "unrestrictedFl oatAttribute", "TestInterface", holder, info.GetIsolate()); 207 ExceptionState exceptionState(ExceptionState::SetterContext, "unrestrictedFl oatAttribute", "TestInterface", holder, info.GetIsolate());
200 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); 208 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
201 TONATIVE_VOID_EXCEPTIONSTATE(float, cppValue, toFloat(v8Value, exceptionStat e), exceptionState); 209 TONATIVE_VOID_EXCEPTIONSTATE(float, cppValue, toFloat(v8Value, exceptionStat e), exceptionState);
202 impl->setUnrestrictedFloatAttribute(cppValue); 210 impl->setUnrestrictedFloatAttribute(cppValue);
203 } 211 }
204 212
205 static void unrestrictedFloatAttributeAttributeSetterCallback(v8::Local<v8::Stri ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 213 static void unrestrictedFloatAttributeAttributeSetterCallback(v8::Local<v8::Stri ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
206 { 214 {
207 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 215 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
216 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_UnrestrictedFloatAttribute_At tributeSetter);
208 TestInterfaceImplementationV8Internal::unrestrictedFloatAttributeAttributeSe tter(v8Value, info); 217 TestInterfaceImplementationV8Internal::unrestrictedFloatAttributeAttributeSe tter(v8Value, info);
209 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 218 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
210 } 219 }
211 220
212 static void testEnumAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8:: Value>& info) 221 static void testEnumAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8:: Value>& info)
213 { 222 {
214 v8::Local<v8::Object> holder = info.Holder(); 223 v8::Local<v8::Object> holder = info.Holder();
215 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); 224 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
216 v8SetReturnValueString(info, impl->testEnumAttribute(), info.GetIsolate()); 225 v8SetReturnValueString(info, impl->testEnumAttribute(), info.GetIsolate());
217 } 226 }
218 227
219 static void testEnumAttributeAttributeGetterCallback(v8::Local<v8::String>, cons t v8::PropertyCallbackInfo<v8::Value>& info) 228 static void testEnumAttributeAttributeGetterCallback(v8::Local<v8::String>, cons t v8::PropertyCallbackInfo<v8::Value>& info)
220 { 229 {
221 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 230 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
231 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_TestEnumAttribute_AttributeGe tter);
222 TestInterfaceImplementationV8Internal::testEnumAttributeAttributeGetter(info ); 232 TestInterfaceImplementationV8Internal::testEnumAttributeAttributeGetter(info );
223 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 233 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
224 } 234 }
225 235
226 static void testEnumAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 236 static void testEnumAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
227 { 237 {
228 v8::Local<v8::Object> holder = info.Holder(); 238 v8::Local<v8::Object> holder = info.Holder();
229 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); 239 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
230 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 240 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
231 String string = cppValue; 241 String string = cppValue;
232 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || st ring == "EnumValue3")) 242 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || st ring == "EnumValue3"))
233 return; 243 return;
234 impl->setTestEnumAttribute(cppValue); 244 impl->setTestEnumAttribute(cppValue);
235 } 245 }
236 246
237 static void testEnumAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 247 static void testEnumAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
238 { 248 {
239 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 249 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
250 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_TestEnumAttribute_AttributeSe tter);
240 TestInterfaceImplementationV8Internal::testEnumAttributeAttributeSetter(v8Va lue, info); 251 TestInterfaceImplementationV8Internal::testEnumAttributeAttributeSetter(v8Va lue, info);
241 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 252 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
242 } 253 }
243 254
244 static void staticStringAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info) 255 static void staticStringAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info)
245 { 256 {
246 v8SetReturnValueString(info, TestInterfaceImplementation::staticStringAttrib ute(), info.GetIsolate()); 257 v8SetReturnValueString(info, TestInterfaceImplementation::staticStringAttrib ute(), info.GetIsolate());
247 } 258 }
248 259
249 static void staticStringAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 260 static void staticStringAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
250 { 261 {
251 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 262 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
263 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_StaticStringAttribute_Attribu teGetter);
252 TestInterfaceImplementationV8Internal::staticStringAttributeAttributeGetter( info); 264 TestInterfaceImplementationV8Internal::staticStringAttributeAttributeGetter( info);
253 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 265 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
254 } 266 }
255 267
256 static void staticStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info) 268 static void staticStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info)
257 { 269 {
258 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 270 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
259 TestInterfaceImplementation::setStaticStringAttribute(cppValue); 271 TestInterfaceImplementation::setStaticStringAttribute(cppValue);
260 } 272 }
261 273
262 static void staticStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 274 static void staticStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
263 { 275 {
264 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 276 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
277 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_StaticStringAttribute_Attribu teSetter);
265 TestInterfaceImplementationV8Internal::staticStringAttributeAttributeSetter( v8Value, info); 278 TestInterfaceImplementationV8Internal::staticStringAttributeAttributeSetter( v8Value, info);
266 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 279 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
267 } 280 }
268 281
269 static void alwaysExposedAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info) 282 static void alwaysExposedAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info)
270 { 283 {
271 v8::Local<v8::Object> holder = info.Holder(); 284 v8::Local<v8::Object> holder = info.Holder();
272 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); 285 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
273 v8SetReturnValueInt(info, impl->alwaysExposedAttribute()); 286 v8SetReturnValueInt(info, impl->alwaysExposedAttribute());
274 } 287 }
275 288
276 static void alwaysExposedAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 289 static void alwaysExposedAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
277 { 290 {
278 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 291 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
292 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_AlwaysExposedAttribute_Attrib uteGetter);
279 TestInterfaceImplementationV8Internal::alwaysExposedAttributeAttributeGetter (info); 293 TestInterfaceImplementationV8Internal::alwaysExposedAttributeAttributeGetter (info);
280 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 294 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
281 } 295 }
282 296
283 static void alwaysExposedAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 297 static void alwaysExposedAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
284 { 298 {
285 v8::Local<v8::Object> holder = info.Holder(); 299 v8::Local<v8::Object> holder = info.Holder();
286 ExceptionState exceptionState(ExceptionState::SetterContext, "alwaysExposedA ttribute", "TestInterface", holder, info.GetIsolate()); 300 ExceptionState exceptionState(ExceptionState::SetterContext, "alwaysExposedA ttribute", "TestInterface", holder, info.GetIsolate());
287 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); 301 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
288 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 302 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
289 impl->setAlwaysExposedAttribute(cppValue); 303 impl->setAlwaysExposedAttribute(cppValue);
290 } 304 }
291 305
292 static void alwaysExposedAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 306 static void alwaysExposedAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
293 { 307 {
294 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 308 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
309 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_AlwaysExposedAttribute_Attrib uteSetter);
295 TestInterfaceImplementationV8Internal::alwaysExposedAttributeAttributeSetter (v8Value, info); 310 TestInterfaceImplementationV8Internal::alwaysExposedAttributeAttributeSetter (v8Value, info);
296 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 311 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
297 } 312 }
298 313
299 static void workerExposedAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info) 314 static void workerExposedAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info)
300 { 315 {
301 v8::Local<v8::Object> holder = info.Holder(); 316 v8::Local<v8::Object> holder = info.Holder();
302 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); 317 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
303 v8SetReturnValueInt(info, impl->workerExposedAttribute()); 318 v8SetReturnValueInt(info, impl->workerExposedAttribute());
304 } 319 }
305 320
306 static void workerExposedAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 321 static void workerExposedAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
307 { 322 {
308 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 323 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
324 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_WorkerExposedAttribute_Attrib uteGetter);
309 TestInterfaceImplementationV8Internal::workerExposedAttributeAttributeGetter (info); 325 TestInterfaceImplementationV8Internal::workerExposedAttributeAttributeGetter (info);
310 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 326 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
311 } 327 }
312 328
313 static void workerExposedAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 329 static void workerExposedAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
314 { 330 {
315 v8::Local<v8::Object> holder = info.Holder(); 331 v8::Local<v8::Object> holder = info.Holder();
316 ExceptionState exceptionState(ExceptionState::SetterContext, "workerExposedA ttribute", "TestInterface", holder, info.GetIsolate()); 332 ExceptionState exceptionState(ExceptionState::SetterContext, "workerExposedA ttribute", "TestInterface", holder, info.GetIsolate());
317 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); 333 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
318 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 334 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
319 impl->setWorkerExposedAttribute(cppValue); 335 impl->setWorkerExposedAttribute(cppValue);
320 } 336 }
321 337
322 static void workerExposedAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 338 static void workerExposedAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
323 { 339 {
324 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 340 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
341 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_WorkerExposedAttribute_Attrib uteSetter);
325 TestInterfaceImplementationV8Internal::workerExposedAttributeAttributeSetter (v8Value, info); 342 TestInterfaceImplementationV8Internal::workerExposedAttributeAttributeSetter (v8Value, info);
326 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 343 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
327 } 344 }
328 345
329 static void windowExposedAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info) 346 static void windowExposedAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info)
330 { 347 {
331 v8::Local<v8::Object> holder = info.Holder(); 348 v8::Local<v8::Object> holder = info.Holder();
332 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); 349 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
333 v8SetReturnValueInt(info, impl->windowExposedAttribute()); 350 v8SetReturnValueInt(info, impl->windowExposedAttribute());
334 } 351 }
335 352
336 static void windowExposedAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 353 static void windowExposedAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
337 { 354 {
338 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 355 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
356 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_WindowExposedAttribute_Attrib uteGetter);
339 TestInterfaceImplementationV8Internal::windowExposedAttributeAttributeGetter (info); 357 TestInterfaceImplementationV8Internal::windowExposedAttributeAttributeGetter (info);
340 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 358 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
341 } 359 }
342 360
343 static void windowExposedAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 361 static void windowExposedAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
344 { 362 {
345 v8::Local<v8::Object> holder = info.Holder(); 363 v8::Local<v8::Object> holder = info.Holder();
346 ExceptionState exceptionState(ExceptionState::SetterContext, "windowExposedA ttribute", "TestInterface", holder, info.GetIsolate()); 364 ExceptionState exceptionState(ExceptionState::SetterContext, "windowExposedA ttribute", "TestInterface", holder, info.GetIsolate());
347 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); 365 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
348 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 366 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
349 impl->setWindowExposedAttribute(cppValue); 367 impl->setWindowExposedAttribute(cppValue);
350 } 368 }
351 369
352 static void windowExposedAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 370 static void windowExposedAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
353 { 371 {
354 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 372 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
373 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_WindowExposedAttribute_Attrib uteSetter);
355 TestInterfaceImplementationV8Internal::windowExposedAttributeAttributeSetter (v8Value, info); 374 TestInterfaceImplementationV8Internal::windowExposedAttributeAttributeSetter (v8Value, info);
356 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 375 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
357 } 376 }
358 377
359 static void implementsStaticReadOnlyLongAttributeAttributeGetter(const v8::Prope rtyCallbackInfo<v8::Value>& info) 378 static void implementsStaticReadOnlyLongAttributeAttributeGetter(const v8::Prope rtyCallbackInfo<v8::Value>& info)
360 { 379 {
361 v8SetReturnValueInt(info, TestInterfaceImplementation::implementsStaticReadO nlyLongAttribute()); 380 v8SetReturnValueInt(info, TestInterfaceImplementation::implementsStaticReadO nlyLongAttribute());
362 } 381 }
363 382
364 static void implementsStaticReadOnlyLongAttributeAttributeGetterCallback(v8::Loc al<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 383 static void implementsStaticReadOnlyLongAttributeAttributeGetterCallback(v8::Loc al<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
365 { 384 {
366 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 385 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
386 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_ImplementsStaticReadOnlyLongA ttribute_AttributeGetter);
367 TestInterfaceImplementationV8Internal::implementsStaticReadOnlyLongAttribute AttributeGetter(info); 387 TestInterfaceImplementationV8Internal::implementsStaticReadOnlyLongAttribute AttributeGetter(info);
368 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 388 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
369 } 389 }
370 390
371 static void implementsStaticStringAttributeAttributeGetter(const v8::PropertyCal lbackInfo<v8::Value>& info) 391 static void implementsStaticStringAttributeAttributeGetter(const v8::PropertyCal lbackInfo<v8::Value>& info)
372 { 392 {
373 v8SetReturnValueString(info, TestInterfaceImplementation::implementsStaticSt ringAttribute(), info.GetIsolate()); 393 v8SetReturnValueString(info, TestInterfaceImplementation::implementsStaticSt ringAttribute(), info.GetIsolate());
374 } 394 }
375 395
376 static void implementsStaticStringAttributeAttributeGetterCallback(v8::Local<v8: :String>, const v8::PropertyCallbackInfo<v8::Value>& info) 396 static void implementsStaticStringAttributeAttributeGetterCallback(v8::Local<v8: :String>, const v8::PropertyCallbackInfo<v8::Value>& info)
377 { 397 {
378 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 398 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
399 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_ImplementsStaticStringAttribu te_AttributeGetter);
379 TestInterfaceImplementationV8Internal::implementsStaticStringAttributeAttrib uteGetter(info); 400 TestInterfaceImplementationV8Internal::implementsStaticStringAttributeAttrib uteGetter(info);
380 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 401 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
381 } 402 }
382 403
383 static void implementsStaticStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 404 static void implementsStaticStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
384 { 405 {
385 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 406 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
386 TestInterfaceImplementation::setImplementsStaticStringAttribute(cppValue); 407 TestInterfaceImplementation::setImplementsStaticStringAttribute(cppValue);
387 } 408 }
388 409
389 static void implementsStaticStringAttributeAttributeSetterCallback(v8::Local<v8: :String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo) 410 static void implementsStaticStringAttributeAttributeSetterCallback(v8::Local<v8: :String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo)
390 { 411 {
391 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 412 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
413 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_ImplementsStaticStringAttribu te_AttributeSetter);
392 TestInterfaceImplementationV8Internal::implementsStaticStringAttributeAttrib uteSetter(v8Value, info); 414 TestInterfaceImplementationV8Internal::implementsStaticStringAttributeAttrib uteSetter(v8Value, info);
393 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 415 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
394 } 416 }
395 417
396 static void implementsReadonlyStringAttributeAttributeGetter(const v8::PropertyC allbackInfo<v8::Value>& info) 418 static void implementsReadonlyStringAttributeAttributeGetter(const v8::PropertyC allbackInfo<v8::Value>& info)
397 { 419 {
398 v8::Local<v8::Object> holder = info.Holder(); 420 v8::Local<v8::Object> holder = info.Holder();
399 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); 421 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
400 v8SetReturnValueString(info, impl->implementsReadonlyStringAttribute(), info .GetIsolate()); 422 v8SetReturnValueString(info, impl->implementsReadonlyStringAttribute(), info .GetIsolate());
401 } 423 }
402 424
403 static void implementsReadonlyStringAttributeAttributeGetterCallback(v8::Local<v 8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 425 static void implementsReadonlyStringAttributeAttributeGetterCallback(v8::Local<v 8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
404 { 426 {
405 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 427 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
428 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_ImplementsReadonlyStringAttri bute_AttributeGetter);
406 TestInterfaceImplementationV8Internal::implementsReadonlyStringAttributeAttr ibuteGetter(info); 429 TestInterfaceImplementationV8Internal::implementsReadonlyStringAttributeAttr ibuteGetter(info);
407 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 430 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
408 } 431 }
409 432
410 static void implementsStringAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info) 433 static void implementsStringAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info)
411 { 434 {
412 v8::Local<v8::Object> holder = info.Holder(); 435 v8::Local<v8::Object> holder = info.Holder();
413 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); 436 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
414 v8SetReturnValueString(info, impl->implementsStringAttribute(), info.GetIsol ate()); 437 v8SetReturnValueString(info, impl->implementsStringAttribute(), info.GetIsol ate());
415 } 438 }
416 439
417 static void implementsStringAttributeAttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info) 440 static void implementsStringAttributeAttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info)
418 { 441 {
419 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 442 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
443 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_ImplementsStringAttribute_Att ributeGetter);
420 TestInterfaceImplementationV8Internal::implementsStringAttributeAttributeGet ter(info); 444 TestInterfaceImplementationV8Internal::implementsStringAttributeAttributeGet ter(info);
421 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 445 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
422 } 446 }
423 447
424 static void implementsStringAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::PropertyCallbackInfo<void>& info) 448 static void implementsStringAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::PropertyCallbackInfo<void>& info)
425 { 449 {
426 v8::Local<v8::Object> holder = info.Holder(); 450 v8::Local<v8::Object> holder = info.Holder();
427 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); 451 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
428 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 452 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
429 impl->setImplementsStringAttribute(cppValue); 453 impl->setImplementsStringAttribute(cppValue);
430 } 454 }
431 455
432 static void implementsStringAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 456 static void implementsStringAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
433 { 457 {
434 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 458 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
459 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_ImplementsStringAttribute_Att ributeSetter);
435 TestInterfaceImplementationV8Internal::implementsStringAttributeAttributeSet ter(v8Value, info); 460 TestInterfaceImplementationV8Internal::implementsStringAttributeAttributeSet ter(v8Value, info);
436 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 461 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
437 } 462 }
438 463
439 static void implementsNodeAttributeAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info) 464 static void implementsNodeAttributeAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info)
440 { 465 {
441 v8::Local<v8::Object> holder = info.Holder(); 466 v8::Local<v8::Object> holder = info.Holder();
442 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); 467 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
443 v8SetReturnValueFast(info, WTF::getPtr(impl->implementsNodeAttribute()), imp l); 468 v8SetReturnValueFast(info, WTF::getPtr(impl->implementsNodeAttribute()), imp l);
444 } 469 }
445 470
446 static void implementsNodeAttributeAttributeGetterCallback(v8::Local<v8::String> , const v8::PropertyCallbackInfo<v8::Value>& info) 471 static void implementsNodeAttributeAttributeGetterCallback(v8::Local<v8::String> , const v8::PropertyCallbackInfo<v8::Value>& info)
447 { 472 {
448 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 473 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
474 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_ImplementsNodeAttribute_Attri buteGetter);
449 TestInterfaceImplementationV8Internal::implementsNodeAttributeAttributeGette r(info); 475 TestInterfaceImplementationV8Internal::implementsNodeAttributeAttributeGette r(info);
450 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 476 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
451 } 477 }
452 478
453 static void implementsNodeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 479 static void implementsNodeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
454 { 480 {
455 v8::Local<v8::Object> holder = info.Holder(); 481 v8::Local<v8::Object> holder = info.Holder();
456 ExceptionState exceptionState(ExceptionState::SetterContext, "implementsNode Attribute", "TestInterface", holder, info.GetIsolate()); 482 ExceptionState exceptionState(ExceptionState::SetterContext, "implementsNode Attribute", "TestInterface", holder, info.GetIsolate());
457 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); 483 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
458 Node* cppValue = V8Node::toImplWithTypeCheck(info.GetIsolate(), v8Value); 484 Node* cppValue = V8Node::toImplWithTypeCheck(info.GetIsolate(), v8Value);
459 if (!cppValue) { 485 if (!cppValue) {
460 exceptionState.throwTypeError("The provided value is not of type 'Node'. "); 486 exceptionState.throwTypeError("The provided value is not of type 'Node'. ");
461 exceptionState.throwIfNeeded(); 487 exceptionState.throwIfNeeded();
462 return; 488 return;
463 } 489 }
464 impl->setImplementsNodeAttribute(WTF::getPtr(cppValue)); 490 impl->setImplementsNodeAttribute(WTF::getPtr(cppValue));
465 } 491 }
466 492
467 static void implementsNodeAttributeAttributeSetterCallback(v8::Local<v8::String> , v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 493 static void implementsNodeAttributeAttributeSetterCallback(v8::Local<v8::String> , v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
468 { 494 {
469 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 495 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
496 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_ImplementsNodeAttribute_Attri buteSetter);
470 TestInterfaceImplementationV8Internal::implementsNodeAttributeAttributeSette r(v8Value, info); 497 TestInterfaceImplementationV8Internal::implementsNodeAttributeAttributeSette r(v8Value, info);
471 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 498 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
472 } 499 }
473 500
474 static void implementsEventHandlerAttributeAttributeGetter(const v8::PropertyCal lbackInfo<v8::Value>& info) 501 static void implementsEventHandlerAttributeAttributeGetter(const v8::PropertyCal lbackInfo<v8::Value>& info)
475 { 502 {
476 v8::Local<v8::Object> holder = info.Holder(); 503 v8::Local<v8::Object> holder = info.Holder();
477 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); 504 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
478 EventListener* cppValue(impl->implementsEventHandlerAttribute()); 505 EventListener* cppValue(impl->implementsEventHandlerAttribute());
479 v8SetReturnValue(info, cppValue ? v8::Local<v8::Value>(V8AbstractEventListen er::cast(cppValue)->getListenerObject(impl->executionContext())) : v8::Local<v8: :Value>(v8::Null(info.GetIsolate()))); 506 v8SetReturnValue(info, cppValue ? v8::Local<v8::Value>(V8AbstractEventListen er::cast(cppValue)->getListenerObject(impl->executionContext())) : v8::Local<v8: :Value>(v8::Null(info.GetIsolate())));
480 } 507 }
481 508
482 static void implementsEventHandlerAttributeAttributeGetterCallback(v8::Local<v8: :String>, const v8::PropertyCallbackInfo<v8::Value>& info) 509 static void implementsEventHandlerAttributeAttributeGetterCallback(v8::Local<v8: :String>, const v8::PropertyCallbackInfo<v8::Value>& info)
483 { 510 {
484 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 511 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
512 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_ImplementsEventHandlerAttribu te_AttributeGetter);
485 TestInterfaceImplementationV8Internal::implementsEventHandlerAttributeAttrib uteGetter(info); 513 TestInterfaceImplementationV8Internal::implementsEventHandlerAttributeAttrib uteGetter(info);
486 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 514 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
487 } 515 }
488 516
489 static void implementsEventHandlerAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 517 static void implementsEventHandlerAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
490 { 518 {
491 v8::Local<v8::Object> holder = info.Holder(); 519 v8::Local<v8::Object> holder = info.Holder();
492 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); 520 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
493 moveEventListenerToNewWrapper(info.GetIsolate(), holder, impl->implementsEve ntHandlerAttribute(), v8Value, V8TestInterface::eventListenerCacheIndex); 521 moveEventListenerToNewWrapper(info.GetIsolate(), holder, impl->implementsEve ntHandlerAttribute(), v8Value, V8TestInterface::eventListenerCacheIndex);
494 impl->setImplementsEventHandlerAttribute(V8EventListenerList::getEventListen er(ScriptState::current(info.GetIsolate()), v8Value, true, ListenerFindOrCreate) ); 522 impl->setImplementsEventHandlerAttribute(V8EventListenerList::getEventListen er(ScriptState::current(info.GetIsolate()), v8Value, true, ListenerFindOrCreate) );
495 } 523 }
496 524
497 static void implementsEventHandlerAttributeAttributeSetterCallback(v8::Local<v8: :String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo) 525 static void implementsEventHandlerAttributeAttributeSetterCallback(v8::Local<v8: :String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo)
498 { 526 {
499 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 527 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
528 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_ImplementsEventHandlerAttribu te_AttributeSetter);
500 TestInterfaceImplementationV8Internal::implementsEventHandlerAttributeAttrib uteSetter(v8Value, info); 529 TestInterfaceImplementationV8Internal::implementsEventHandlerAttributeAttrib uteSetter(v8Value, info);
501 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 530 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
502 } 531 }
503 532
504 static void implementsRuntimeEnabledNodeAttributeAttributeGetter(const v8::Prope rtyCallbackInfo<v8::Value>& info) 533 static void implementsRuntimeEnabledNodeAttributeAttributeGetter(const v8::Prope rtyCallbackInfo<v8::Value>& info)
505 { 534 {
506 v8::Local<v8::Object> holder = info.Holder(); 535 v8::Local<v8::Object> holder = info.Holder();
507 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); 536 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
508 v8SetReturnValueFast(info, WTF::getPtr(impl->implementsRuntimeEnabledNodeAtt ribute()), impl); 537 v8SetReturnValueFast(info, WTF::getPtr(impl->implementsRuntimeEnabledNodeAtt ribute()), impl);
509 } 538 }
510 539
511 static void implementsRuntimeEnabledNodeAttributeAttributeGetterCallback(v8::Loc al<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 540 static void implementsRuntimeEnabledNodeAttributeAttributeGetterCallback(v8::Loc al<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
512 { 541 {
513 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 542 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
543 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_ImplementsRuntimeEnabledNodeA ttribute_AttributeGetter);
514 TestInterfaceImplementationV8Internal::implementsRuntimeEnabledNodeAttribute AttributeGetter(info); 544 TestInterfaceImplementationV8Internal::implementsRuntimeEnabledNodeAttribute AttributeGetter(info);
515 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 545 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
516 } 546 }
517 547
518 static void implementsRuntimeEnabledNodeAttributeAttributeSetter(v8::Local<v8::V alue> v8Value, const v8::PropertyCallbackInfo<void>& info) 548 static void implementsRuntimeEnabledNodeAttributeAttributeSetter(v8::Local<v8::V alue> v8Value, const v8::PropertyCallbackInfo<void>& info)
519 { 549 {
520 v8::Local<v8::Object> holder = info.Holder(); 550 v8::Local<v8::Object> holder = info.Holder();
521 ExceptionState exceptionState(ExceptionState::SetterContext, "implementsRunt imeEnabledNodeAttribute", "TestInterface", holder, info.GetIsolate()); 551 ExceptionState exceptionState(ExceptionState::SetterContext, "implementsRunt imeEnabledNodeAttribute", "TestInterface", holder, info.GetIsolate());
522 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); 552 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
523 Node* cppValue = V8Node::toImplWithTypeCheck(info.GetIsolate(), v8Value); 553 Node* cppValue = V8Node::toImplWithTypeCheck(info.GetIsolate(), v8Value);
524 if (!cppValue) { 554 if (!cppValue) {
525 exceptionState.throwTypeError("The provided value is not of type 'Node'. "); 555 exceptionState.throwTypeError("The provided value is not of type 'Node'. ");
526 exceptionState.throwIfNeeded(); 556 exceptionState.throwIfNeeded();
527 return; 557 return;
528 } 558 }
529 impl->setImplementsRuntimeEnabledNodeAttribute(WTF::getPtr(cppValue)); 559 impl->setImplementsRuntimeEnabledNodeAttribute(WTF::getPtr(cppValue));
530 } 560 }
531 561
532 static void implementsRuntimeEnabledNodeAttributeAttributeSetterCallback(v8::Loc al<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<voi d>& info) 562 static void implementsRuntimeEnabledNodeAttributeAttributeSetterCallback(v8::Loc al<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<voi d>& info)
533 { 563 {
534 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 564 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
565 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_ImplementsRuntimeEnabledNodeA ttribute_AttributeSetter);
535 TestInterfaceImplementationV8Internal::implementsRuntimeEnabledNodeAttribute AttributeSetter(v8Value, info); 566 TestInterfaceImplementationV8Internal::implementsRuntimeEnabledNodeAttribute AttributeSetter(v8Value, info);
536 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 567 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
537 } 568 }
538 569
539 static void implementsPerContextEnabledNodeAttributeAttributeGetter(const v8::Pr opertyCallbackInfo<v8::Value>& info) 570 static void implementsPerContextEnabledNodeAttributeAttributeGetter(const v8::Pr opertyCallbackInfo<v8::Value>& info)
540 { 571 {
541 v8::Local<v8::Object> holder = info.Holder(); 572 v8::Local<v8::Object> holder = info.Holder();
542 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); 573 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
543 v8SetReturnValueFast(info, WTF::getPtr(impl->implementsPerContextEnabledNode Attribute()), impl); 574 v8SetReturnValueFast(info, WTF::getPtr(impl->implementsPerContextEnabledNode Attribute()), impl);
544 } 575 }
545 576
546 static void implementsPerContextEnabledNodeAttributeAttributeGetterCallback(v8:: Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 577 static void implementsPerContextEnabledNodeAttributeAttributeGetterCallback(v8:: Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
547 { 578 {
548 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 579 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
580 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_ImplementsPerContextEnabledNo deAttribute_AttributeGetter);
549 TestInterfaceImplementationV8Internal::implementsPerContextEnabledNodeAttrib uteAttributeGetter(info); 581 TestInterfaceImplementationV8Internal::implementsPerContextEnabledNodeAttrib uteAttributeGetter(info);
550 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 582 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
551 } 583 }
552 584
553 static void implementsPerContextEnabledNodeAttributeAttributeSetter(v8::Local<v8 ::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 585 static void implementsPerContextEnabledNodeAttributeAttributeSetter(v8::Local<v8 ::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
554 { 586 {
555 v8::Local<v8::Object> holder = info.Holder(); 587 v8::Local<v8::Object> holder = info.Holder();
556 ExceptionState exceptionState(ExceptionState::SetterContext, "implementsPerC ontextEnabledNodeAttribute", "TestInterface", holder, info.GetIsolate()); 588 ExceptionState exceptionState(ExceptionState::SetterContext, "implementsPerC ontextEnabledNodeAttribute", "TestInterface", holder, info.GetIsolate());
557 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); 589 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
558 Node* cppValue = V8Node::toImplWithTypeCheck(info.GetIsolate(), v8Value); 590 Node* cppValue = V8Node::toImplWithTypeCheck(info.GetIsolate(), v8Value);
559 if (!cppValue) { 591 if (!cppValue) {
560 exceptionState.throwTypeError("The provided value is not of type 'Node'. "); 592 exceptionState.throwTypeError("The provided value is not of type 'Node'. ");
561 exceptionState.throwIfNeeded(); 593 exceptionState.throwIfNeeded();
562 return; 594 return;
563 } 595 }
564 impl->setImplementsPerContextEnabledNodeAttribute(WTF::getPtr(cppValue)); 596 impl->setImplementsPerContextEnabledNodeAttribute(WTF::getPtr(cppValue));
565 } 597 }
566 598
567 static void implementsPerContextEnabledNodeAttributeAttributeSetterCallback(v8:: Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo< void>& info) 599 static void implementsPerContextEnabledNodeAttributeAttributeSetterCallback(v8:: Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo< void>& info)
568 { 600 {
569 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 601 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
602 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_ImplementsPerContextEnabledNo deAttribute_AttributeSetter);
570 TestInterfaceImplementationV8Internal::implementsPerContextEnabledNodeAttrib uteAttributeSetter(v8Value, info); 603 TestInterfaceImplementationV8Internal::implementsPerContextEnabledNodeAttrib uteAttributeSetter(v8Value, info);
571 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 604 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
572 } 605 }
573 606
574 static void implements2StaticStringAttributeAttributeGetter(const v8::PropertyCa llbackInfo<v8::Value>& info) 607 static void implements2StaticStringAttributeAttributeGetter(const v8::PropertyCa llbackInfo<v8::Value>& info)
575 { 608 {
576 v8SetReturnValueString(info, TestImplements2::implements2StaticStringAttribu te(), info.GetIsolate()); 609 v8SetReturnValueString(info, TestImplements2::implements2StaticStringAttribu te(), info.GetIsolate());
577 } 610 }
578 611
579 static void implements2StaticStringAttributeAttributeGetterCallback(v8::Local<v8 ::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 612 static void implements2StaticStringAttributeAttributeGetterCallback(v8::Local<v8 ::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
580 { 613 {
581 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 614 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
615 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_Implements2StaticStringAttrib ute_AttributeGetter);
582 TestInterfaceImplementationV8Internal::implements2StaticStringAttributeAttri buteGetter(info); 616 TestInterfaceImplementationV8Internal::implements2StaticStringAttributeAttri buteGetter(info);
583 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 617 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
584 } 618 }
585 619
586 static void implements2StaticStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 620 static void implements2StaticStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
587 { 621 {
588 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 622 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
589 TestImplements2::setImplements2StaticStringAttribute(cppValue); 623 TestImplements2::setImplements2StaticStringAttribute(cppValue);
590 } 624 }
591 625
592 static void implements2StaticStringAttributeAttributeSetterCallback(v8::Local<v8 ::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& i nfo) 626 static void implements2StaticStringAttributeAttributeSetterCallback(v8::Local<v8 ::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& i nfo)
593 { 627 {
594 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 628 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
629 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_Implements2StaticStringAttrib ute_AttributeSetter);
595 TestInterfaceImplementationV8Internal::implements2StaticStringAttributeAttri buteSetter(v8Value, info); 630 TestInterfaceImplementationV8Internal::implements2StaticStringAttributeAttri buteSetter(v8Value, info);
596 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 631 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
597 } 632 }
598 633
599 static void implements2StringAttributeAttributeGetter(const v8::PropertyCallback Info<v8::Value>& info) 634 static void implements2StringAttributeAttributeGetter(const v8::PropertyCallback Info<v8::Value>& info)
600 { 635 {
601 v8::Local<v8::Object> holder = info.Holder(); 636 v8::Local<v8::Object> holder = info.Holder();
602 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); 637 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
603 v8SetReturnValueString(info, TestImplements2::implements2StringAttribute(*im pl), info.GetIsolate()); 638 v8SetReturnValueString(info, TestImplements2::implements2StringAttribute(*im pl), info.GetIsolate());
604 } 639 }
605 640
606 static void implements2StringAttributeAttributeGetterCallback(v8::Local<v8::Stri ng>, const v8::PropertyCallbackInfo<v8::Value>& info) 641 static void implements2StringAttributeAttributeGetterCallback(v8::Local<v8::Stri ng>, const v8::PropertyCallbackInfo<v8::Value>& info)
607 { 642 {
608 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 643 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
644 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_Implements2StringAttribute_At tributeGetter);
609 TestInterfaceImplementationV8Internal::implements2StringAttributeAttributeGe tter(info); 645 TestInterfaceImplementationV8Internal::implements2StringAttributeAttributeGe tter(info);
610 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 646 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
611 } 647 }
612 648
613 static void implements2StringAttributeAttributeSetter(v8::Local<v8::Value> v8Val ue, const v8::PropertyCallbackInfo<void>& info) 649 static void implements2StringAttributeAttributeSetter(v8::Local<v8::Value> v8Val ue, const v8::PropertyCallbackInfo<void>& info)
614 { 650 {
615 v8::Local<v8::Object> holder = info.Holder(); 651 v8::Local<v8::Object> holder = info.Holder();
616 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); 652 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
617 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 653 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
618 TestImplements2::setImplements2StringAttribute(*impl, cppValue); 654 TestImplements2::setImplements2StringAttribute(*impl, cppValue);
619 } 655 }
620 656
621 static void implements2StringAttributeAttributeSetterCallback(v8::Local<v8::Stri ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 657 static void implements2StringAttributeAttributeSetterCallback(v8::Local<v8::Stri ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
622 { 658 {
623 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 659 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
660 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_Implements2StringAttribute_At tributeSetter);
624 TestInterfaceImplementationV8Internal::implements2StringAttributeAttributeSe tter(v8Value, info); 661 TestInterfaceImplementationV8Internal::implements2StringAttributeAttributeSe tter(v8Value, info);
625 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 662 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
626 } 663 }
627 664
628 static void implements3StringAttributeAttributeGetter(const v8::PropertyCallback Info<v8::Value>& info) 665 static void implements3StringAttributeAttributeGetter(const v8::PropertyCallback Info<v8::Value>& info)
629 { 666 {
630 v8::Local<v8::Object> holder = info.Holder(); 667 v8::Local<v8::Object> holder = info.Holder();
631 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); 668 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
632 v8SetReturnValueString(info, TestImplements3Implementation::implements3Strin gAttribute(*impl), info.GetIsolate()); 669 v8SetReturnValueString(info, TestImplements3Implementation::implements3Strin gAttribute(*impl), info.GetIsolate());
633 } 670 }
634 671
635 static void implements3StringAttributeAttributeGetterCallback(v8::Local<v8::Stri ng>, const v8::PropertyCallbackInfo<v8::Value>& info) 672 static void implements3StringAttributeAttributeGetterCallback(v8::Local<v8::Stri ng>, const v8::PropertyCallbackInfo<v8::Value>& info)
636 { 673 {
637 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 674 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
675 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_Implements3StringAttribute_At tributeGetter);
638 TestInterfaceImplementationV8Internal::implements3StringAttributeAttributeGe tter(info); 676 TestInterfaceImplementationV8Internal::implements3StringAttributeAttributeGe tter(info);
639 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 677 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
640 } 678 }
641 679
642 static void implements3StringAttributeAttributeSetter(v8::Local<v8::Value> v8Val ue, const v8::PropertyCallbackInfo<void>& info) 680 static void implements3StringAttributeAttributeSetter(v8::Local<v8::Value> v8Val ue, const v8::PropertyCallbackInfo<void>& info)
643 { 681 {
644 v8::Local<v8::Object> holder = info.Holder(); 682 v8::Local<v8::Object> holder = info.Holder();
645 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); 683 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
646 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 684 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
647 TestImplements3Implementation::setImplements3StringAttribute(*impl, cppValue ); 685 TestImplements3Implementation::setImplements3StringAttribute(*impl, cppValue );
648 } 686 }
649 687
650 static void implements3StringAttributeAttributeSetterCallback(v8::Local<v8::Stri ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 688 static void implements3StringAttributeAttributeSetterCallback(v8::Local<v8::Stri ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
651 { 689 {
652 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 690 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
691 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_Implements3StringAttribute_At tributeSetter);
653 TestInterfaceImplementationV8Internal::implements3StringAttributeAttributeSe tter(v8Value, info); 692 TestInterfaceImplementationV8Internal::implements3StringAttributeAttributeSe tter(v8Value, info);
654 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 693 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
655 } 694 }
656 695
657 static void implements3StaticStringAttributeAttributeGetter(const v8::PropertyCa llbackInfo<v8::Value>& info) 696 static void implements3StaticStringAttributeAttributeGetter(const v8::PropertyCa llbackInfo<v8::Value>& info)
658 { 697 {
659 v8SetReturnValueString(info, TestImplements3Implementation::implements3Stati cStringAttribute(), info.GetIsolate()); 698 v8SetReturnValueString(info, TestImplements3Implementation::implements3Stati cStringAttribute(), info.GetIsolate());
660 } 699 }
661 700
662 static void implements3StaticStringAttributeAttributeGetterCallback(v8::Local<v8 ::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 701 static void implements3StaticStringAttributeAttributeGetterCallback(v8::Local<v8 ::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
663 { 702 {
664 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 703 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
704 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_Implements3StaticStringAttrib ute_AttributeGetter);
665 TestInterfaceImplementationV8Internal::implements3StaticStringAttributeAttri buteGetter(info); 705 TestInterfaceImplementationV8Internal::implements3StaticStringAttributeAttri buteGetter(info);
666 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 706 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
667 } 707 }
668 708
669 static void implements3StaticStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 709 static void implements3StaticStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
670 { 710 {
671 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 711 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
672 TestImplements3Implementation::setImplements3StaticStringAttribute(cppValue) ; 712 TestImplements3Implementation::setImplements3StaticStringAttribute(cppValue) ;
673 } 713 }
674 714
675 static void implements3StaticStringAttributeAttributeSetterCallback(v8::Local<v8 ::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& i nfo) 715 static void implements3StaticStringAttributeAttributeSetterCallback(v8::Local<v8 ::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& i nfo)
676 { 716 {
677 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 717 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
718 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_Implements3StaticStringAttrib ute_AttributeSetter);
678 TestInterfaceImplementationV8Internal::implements3StaticStringAttributeAttri buteSetter(v8Value, info); 719 TestInterfaceImplementationV8Internal::implements3StaticStringAttributeAttri buteSetter(v8Value, info);
679 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 720 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
680 } 721 }
681 722
682 #if ENABLE(PARTIAL_CONDITION) 723 #if ENABLE(PARTIAL_CONDITION)
683 static void partialLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info) 724 static void partialLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info)
684 { 725 {
685 v8::Local<v8::Object> holder = info.Holder(); 726 v8::Local<v8::Object> holder = info.Holder();
686 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); 727 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
687 v8SetReturnValueInt(info, TestPartialInterface::partialLongAttribute(*impl)) ; 728 v8SetReturnValueInt(info, TestPartialInterface::partialLongAttribute(*impl)) ;
688 } 729 }
689 #endif // ENABLE(PARTIAL_CONDITION) 730 #endif // ENABLE(PARTIAL_CONDITION)
690 731
691 #if ENABLE(PARTIAL_CONDITION) 732 #if ENABLE(PARTIAL_CONDITION)
692 static void partialLongAttributeAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info) 733 static void partialLongAttributeAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info)
693 { 734 {
694 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 735 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
736 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_PartialLongAttribute_Attribut eGetter);
695 TestInterfaceImplementationV8Internal::partialLongAttributeAttributeGetter(i nfo); 737 TestInterfaceImplementationV8Internal::partialLongAttributeAttributeGetter(i nfo);
696 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 738 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
697 } 739 }
698 #endif // ENABLE(PARTIAL_CONDITION) 740 #endif // ENABLE(PARTIAL_CONDITION)
699 741
700 #if ENABLE(PARTIAL_CONDITION) 742 #if ENABLE(PARTIAL_CONDITION)
701 static void partialLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& info) 743 static void partialLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& info)
702 { 744 {
703 v8::Local<v8::Object> holder = info.Holder(); 745 v8::Local<v8::Object> holder = info.Holder();
704 ExceptionState exceptionState(ExceptionState::SetterContext, "partialLongAtt ribute", "TestInterface", holder, info.GetIsolate()); 746 ExceptionState exceptionState(ExceptionState::SetterContext, "partialLongAtt ribute", "TestInterface", holder, info.GetIsolate());
705 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); 747 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
706 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 748 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
707 TestPartialInterface::setPartialLongAttribute(*impl, cppValue); 749 TestPartialInterface::setPartialLongAttribute(*impl, cppValue);
708 } 750 }
709 #endif // ENABLE(PARTIAL_CONDITION) 751 #endif // ENABLE(PARTIAL_CONDITION)
710 752
711 #if ENABLE(PARTIAL_CONDITION) 753 #if ENABLE(PARTIAL_CONDITION)
712 static void partialLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 754 static void partialLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
713 { 755 {
714 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 756 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
757 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_PartialLongAttribute_Attribut eSetter);
715 TestInterfaceImplementationV8Internal::partialLongAttributeAttributeSetter(v 8Value, info); 758 TestInterfaceImplementationV8Internal::partialLongAttributeAttributeSetter(v 8Value, info);
716 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 759 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
717 } 760 }
718 #endif // ENABLE(PARTIAL_CONDITION) 761 #endif // ENABLE(PARTIAL_CONDITION)
719 762
720 #if ENABLE(PARTIAL_CONDITION) 763 #if ENABLE(PARTIAL_CONDITION)
721 static void partialStaticLongAttributeAttributeGetter(const v8::PropertyCallback Info<v8::Value>& info) 764 static void partialStaticLongAttributeAttributeGetter(const v8::PropertyCallback Info<v8::Value>& info)
722 { 765 {
723 v8SetReturnValueInt(info, TestPartialInterface::partialStaticLongAttribute() ); 766 v8SetReturnValueInt(info, TestPartialInterface::partialStaticLongAttribute() );
724 } 767 }
725 #endif // ENABLE(PARTIAL_CONDITION) 768 #endif // ENABLE(PARTIAL_CONDITION)
726 769
727 #if ENABLE(PARTIAL_CONDITION) 770 #if ENABLE(PARTIAL_CONDITION)
728 static void partialStaticLongAttributeAttributeGetterCallback(v8::Local<v8::Stri ng>, const v8::PropertyCallbackInfo<v8::Value>& info) 771 static void partialStaticLongAttributeAttributeGetterCallback(v8::Local<v8::Stri ng>, const v8::PropertyCallbackInfo<v8::Value>& info)
729 { 772 {
730 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 773 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
774 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_PartialStaticLongAttribute_At tributeGetter);
731 TestInterfaceImplementationV8Internal::partialStaticLongAttributeAttributeGe tter(info); 775 TestInterfaceImplementationV8Internal::partialStaticLongAttributeAttributeGe tter(info);
732 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 776 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
733 } 777 }
734 #endif // ENABLE(PARTIAL_CONDITION) 778 #endif // ENABLE(PARTIAL_CONDITION)
735 779
736 #if ENABLE(PARTIAL_CONDITION) 780 #if ENABLE(PARTIAL_CONDITION)
737 static void partialStaticLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val ue, const v8::PropertyCallbackInfo<void>& info) 781 static void partialStaticLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val ue, const v8::PropertyCallbackInfo<void>& info)
738 { 782 {
739 ExceptionState exceptionState(ExceptionState::SetterContext, "partialStaticL ongAttribute", "TestInterface", holder, info.GetIsolate()); 783 ExceptionState exceptionState(ExceptionState::SetterContext, "partialStaticL ongAttribute", "TestInterface", holder, info.GetIsolate());
740 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 784 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
741 TestPartialInterface::setPartialStaticLongAttribute(cppValue); 785 TestPartialInterface::setPartialStaticLongAttribute(cppValue);
742 } 786 }
743 #endif // ENABLE(PARTIAL_CONDITION) 787 #endif // ENABLE(PARTIAL_CONDITION)
744 788
745 #if ENABLE(PARTIAL_CONDITION) 789 #if ENABLE(PARTIAL_CONDITION)
746 static void partialStaticLongAttributeAttributeSetterCallback(v8::Local<v8::Stri ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 790 static void partialStaticLongAttributeAttributeSetterCallback(v8::Local<v8::Stri ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
747 { 791 {
748 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 792 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
793 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_PartialStaticLongAttribute_At tributeSetter);
749 TestInterfaceImplementationV8Internal::partialStaticLongAttributeAttributeSe tter(v8Value, info); 794 TestInterfaceImplementationV8Internal::partialStaticLongAttributeAttributeSe tter(v8Value, info);
750 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 795 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
751 } 796 }
752 #endif // ENABLE(PARTIAL_CONDITION) 797 #endif // ENABLE(PARTIAL_CONDITION)
753 798
754 #if ENABLE(PARTIAL_CONDITION) 799 #if ENABLE(PARTIAL_CONDITION)
755 static void partialCallWithExecutionContextLongAttributeAttributeGetter(const v8 ::PropertyCallbackInfo<v8::Value>& info) 800 static void partialCallWithExecutionContextLongAttributeAttributeGetter(const v8 ::PropertyCallbackInfo<v8::Value>& info)
756 { 801 {
757 v8::Local<v8::Object> holder = info.Holder(); 802 v8::Local<v8::Object> holder = info.Holder();
758 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); 803 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
759 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ()); 804 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ());
760 v8SetReturnValueInt(info, TestPartialInterface::partialCallWithExecutionCont extLongAttribute(executionContext, *impl)); 805 v8SetReturnValueInt(info, TestPartialInterface::partialCallWithExecutionCont extLongAttribute(executionContext, *impl));
761 } 806 }
762 #endif // ENABLE(PARTIAL_CONDITION) 807 #endif // ENABLE(PARTIAL_CONDITION)
763 808
764 #if ENABLE(PARTIAL_CONDITION) 809 #if ENABLE(PARTIAL_CONDITION)
765 static void partialCallWithExecutionContextLongAttributeAttributeGetterCallback( v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 810 static void partialCallWithExecutionContextLongAttributeAttributeGetterCallback( v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
766 { 811 {
767 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 812 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
813 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_PartialCallWithExecutionConte xtLongAttribute_AttributeGetter);
768 TestInterfaceImplementationV8Internal::partialCallWithExecutionContextLongAt tributeAttributeGetter(info); 814 TestInterfaceImplementationV8Internal::partialCallWithExecutionContextLongAt tributeAttributeGetter(info);
769 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 815 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
770 } 816 }
771 #endif // ENABLE(PARTIAL_CONDITION) 817 #endif // ENABLE(PARTIAL_CONDITION)
772 818
773 #if ENABLE(PARTIAL_CONDITION) 819 #if ENABLE(PARTIAL_CONDITION)
774 static void partialCallWithExecutionContextLongAttributeAttributeSetter(v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 820 static void partialCallWithExecutionContextLongAttributeAttributeSetter(v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
775 { 821 {
776 v8::Local<v8::Object> holder = info.Holder(); 822 v8::Local<v8::Object> holder = info.Holder();
777 ExceptionState exceptionState(ExceptionState::SetterContext, "partialCallWit hExecutionContextLongAttribute", "TestInterface", holder, info.GetIsolate()); 823 ExceptionState exceptionState(ExceptionState::SetterContext, "partialCallWit hExecutionContextLongAttribute", "TestInterface", holder, info.GetIsolate());
778 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); 824 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
779 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 825 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
780 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ()); 826 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ());
781 TestPartialInterface::setPartialCallWithExecutionContextLongAttribute(execut ionContext, *impl, cppValue); 827 TestPartialInterface::setPartialCallWithExecutionContextLongAttribute(execut ionContext, *impl, cppValue);
782 } 828 }
783 #endif // ENABLE(PARTIAL_CONDITION) 829 #endif // ENABLE(PARTIAL_CONDITION)
784 830
785 #if ENABLE(PARTIAL_CONDITION) 831 #if ENABLE(PARTIAL_CONDITION)
786 static void partialCallWithExecutionContextLongAttributeAttributeSetterCallback( v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI nfo<void>& info) 832 static void partialCallWithExecutionContextLongAttributeAttributeSetterCallback( v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI nfo<void>& info)
787 { 833 {
788 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 834 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
835 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_PartialCallWithExecutionConte xtLongAttribute_AttributeSetter);
789 TestInterfaceImplementationV8Internal::partialCallWithExecutionContextLongAt tributeAttributeSetter(v8Value, info); 836 TestInterfaceImplementationV8Internal::partialCallWithExecutionContextLongAt tributeAttributeSetter(v8Value, info);
790 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 837 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
791 } 838 }
792 #endif // ENABLE(PARTIAL_CONDITION) 839 #endif // ENABLE(PARTIAL_CONDITION)
793 840
794 #if ENABLE(PARTIAL_CONDITION) 841 #if ENABLE(PARTIAL_CONDITION)
795 static void partialPartialEnumTypeAttributeAttributeGetter(const v8::PropertyCal lbackInfo<v8::Value>& info) 842 static void partialPartialEnumTypeAttributeAttributeGetter(const v8::PropertyCal lbackInfo<v8::Value>& info)
796 { 843 {
797 v8::Local<v8::Object> holder = info.Holder(); 844 v8::Local<v8::Object> holder = info.Holder();
798 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); 845 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
799 v8SetReturnValueString(info, TestPartialInterface::partialPartialEnumTypeAtt ribute(*impl), info.GetIsolate()); 846 v8SetReturnValueString(info, TestPartialInterface::partialPartialEnumTypeAtt ribute(*impl), info.GetIsolate());
800 } 847 }
801 #endif // ENABLE(PARTIAL_CONDITION) 848 #endif // ENABLE(PARTIAL_CONDITION)
802 849
803 #if ENABLE(PARTIAL_CONDITION) 850 #if ENABLE(PARTIAL_CONDITION)
804 static void partialPartialEnumTypeAttributeAttributeGetterCallback(v8::Local<v8: :String>, const v8::PropertyCallbackInfo<v8::Value>& info) 851 static void partialPartialEnumTypeAttributeAttributeGetterCallback(v8::Local<v8: :String>, const v8::PropertyCallbackInfo<v8::Value>& info)
805 { 852 {
806 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 853 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
854 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_PartialPartialEnumTypeAttribu te_AttributeGetter);
807 TestInterfaceImplementationV8Internal::partialPartialEnumTypeAttributeAttrib uteGetter(info); 855 TestInterfaceImplementationV8Internal::partialPartialEnumTypeAttributeAttrib uteGetter(info);
808 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 856 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
809 } 857 }
810 #endif // ENABLE(PARTIAL_CONDITION) 858 #endif // ENABLE(PARTIAL_CONDITION)
811 859
812 #if ENABLE(PARTIAL_CONDITION) 860 #if ENABLE(PARTIAL_CONDITION)
813 static void partialPartialEnumTypeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 861 static void partialPartialEnumTypeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
814 { 862 {
815 v8::Local<v8::Object> holder = info.Holder(); 863 v8::Local<v8::Object> holder = info.Holder();
816 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); 864 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
817 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 865 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
818 String string = cppValue; 866 String string = cppValue;
819 if (!(string == "foo" || string == "bar")) 867 if (!(string == "foo" || string == "bar"))
820 return; 868 return;
821 TestPartialInterface::setPartialPartialEnumTypeAttribute(*impl, cppValue); 869 TestPartialInterface::setPartialPartialEnumTypeAttribute(*impl, cppValue);
822 } 870 }
823 #endif // ENABLE(PARTIAL_CONDITION) 871 #endif // ENABLE(PARTIAL_CONDITION)
824 872
825 #if ENABLE(PARTIAL_CONDITION) 873 #if ENABLE(PARTIAL_CONDITION)
826 static void partialPartialEnumTypeAttributeAttributeSetterCallback(v8::Local<v8: :String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo) 874 static void partialPartialEnumTypeAttributeAttributeSetterCallback(v8::Local<v8: :String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo)
827 { 875 {
828 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 876 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
877 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_PartialPartialEnumTypeAttribu te_AttributeSetter);
829 TestInterfaceImplementationV8Internal::partialPartialEnumTypeAttributeAttrib uteSetter(v8Value, info); 878 TestInterfaceImplementationV8Internal::partialPartialEnumTypeAttributeAttrib uteSetter(v8Value, info);
830 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 879 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
831 } 880 }
832 #endif // ENABLE(PARTIAL_CONDITION) 881 #endif // ENABLE(PARTIAL_CONDITION)
833 882
834 #if ENABLE(PARTIAL_CONDITION) 883 #if ENABLE(PARTIAL_CONDITION)
835 static void stringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va lue>& info) 884 static void stringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va lue>& info)
836 { 885 {
837 v8::Local<v8::Object> holder = info.Holder(); 886 v8::Local<v8::Object> holder = info.Holder();
838 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); 887 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
839 String result; 888 String result;
840 if (!V8TestInterface::PrivateScript::stringAttributeAttributeGetter(toFrameI fNotDetached(info.GetIsolate()->GetCurrentContext()), impl, &result)) 889 if (!V8TestInterface::PrivateScript::stringAttributeAttributeGetter(toFrameI fNotDetached(info.GetIsolate()->GetCurrentContext()), impl, &result))
841 return; 890 return;
842 v8SetReturnValueString(info, result, info.GetIsolate()); 891 v8SetReturnValueString(info, result, info.GetIsolate());
843 } 892 }
844 #endif // ENABLE(PARTIAL_CONDITION) 893 #endif // ENABLE(PARTIAL_CONDITION)
845 894
846 #if ENABLE(PARTIAL_CONDITION) 895 #if ENABLE(PARTIAL_CONDITION)
847 static void stringAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 896 static void stringAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
848 { 897 {
849 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 898 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
899 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_StringAttribute_AttributeGett er);
850 TestInterfaceImplementationV8Internal::stringAttributeAttributeGetter(info); 900 TestInterfaceImplementationV8Internal::stringAttributeAttributeGetter(info);
851 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 901 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
852 } 902 }
853 #endif // ENABLE(PARTIAL_CONDITION) 903 #endif // ENABLE(PARTIAL_CONDITION)
854 904
855 #if ENABLE(PARTIAL_CONDITION) 905 #if ENABLE(PARTIAL_CONDITION)
856 static void stringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v 8::PropertyCallbackInfo<void>& info) 906 static void stringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v 8::PropertyCallbackInfo<void>& info)
857 { 907 {
858 v8::Local<v8::Object> holder = info.Holder(); 908 v8::Local<v8::Object> holder = info.Holder();
859 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); 909 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
860 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 910 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
861 V8TestInterface::PrivateScript::stringAttributeAttributeSetter(toFrameIfNotD etached(info.GetIsolate()->GetCurrentContext()), impl, cppValue); 911 V8TestInterface::PrivateScript::stringAttributeAttributeSetter(toFrameIfNotD etached(info.GetIsolate()->GetCurrentContext()), impl, cppValue);
862 } 912 }
863 #endif // ENABLE(PARTIAL_CONDITION) 913 #endif // ENABLE(PARTIAL_CONDITION)
864 914
865 #if ENABLE(PARTIAL_CONDITION) 915 #if ENABLE(PARTIAL_CONDITION)
866 static void stringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 916 static void stringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
867 { 917 {
868 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 918 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
919 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_StringAttribute_AttributeSett er);
869 TestInterfaceImplementationV8Internal::stringAttributeAttributeSetter(v8Valu e, info); 920 TestInterfaceImplementationV8Internal::stringAttributeAttributeSetter(v8Valu e, info);
870 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 921 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
871 } 922 }
872 #endif // ENABLE(PARTIAL_CONDITION) 923 #endif // ENABLE(PARTIAL_CONDITION)
873 924
874 static void partial2LongAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info) 925 static void partial2LongAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info)
875 { 926 {
876 v8::Local<v8::Object> holder = info.Holder(); 927 v8::Local<v8::Object> holder = info.Holder();
877 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); 928 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
878 v8SetReturnValueInt(info, TestPartialInterfaceImplementation::partial2LongAt tribute(*impl)); 929 v8SetReturnValueInt(info, TestPartialInterfaceImplementation::partial2LongAt tribute(*impl));
879 } 930 }
880 931
881 static void partial2LongAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 932 static void partial2LongAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
882 { 933 {
883 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 934 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
935 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_Partial2LongAttribute_Attribu teGetter);
884 TestInterfaceImplementationV8Internal::partial2LongAttributeAttributeGetter( info); 936 TestInterfaceImplementationV8Internal::partial2LongAttributeAttributeGetter( info);
885 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 937 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
886 } 938 }
887 939
888 static void partial2LongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info) 940 static void partial2LongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info)
889 { 941 {
890 v8::Local<v8::Object> holder = info.Holder(); 942 v8::Local<v8::Object> holder = info.Holder();
891 ExceptionState exceptionState(ExceptionState::SetterContext, "partial2LongAt tribute", "TestInterface", holder, info.GetIsolate()); 943 ExceptionState exceptionState(ExceptionState::SetterContext, "partial2LongAt tribute", "TestInterface", holder, info.GetIsolate());
892 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); 944 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
893 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 945 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
894 TestPartialInterfaceImplementation::setPartial2LongAttribute(*impl, cppValue ); 946 TestPartialInterfaceImplementation::setPartial2LongAttribute(*impl, cppValue );
895 } 947 }
896 948
897 static void partial2LongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 949 static void partial2LongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
898 { 950 {
899 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 951 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
952 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_Partial2LongAttribute_Attribu teSetter);
900 TestInterfaceImplementationV8Internal::partial2LongAttributeAttributeSetter( v8Value, info); 953 TestInterfaceImplementationV8Internal::partial2LongAttributeAttributeSetter( v8Value, info);
901 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 954 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
902 } 955 }
903 956
904 static void partial2StaticLongAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info) 957 static void partial2StaticLongAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info)
905 { 958 {
906 v8SetReturnValueInt(info, TestPartialInterfaceImplementation::partial2Static LongAttribute()); 959 v8SetReturnValueInt(info, TestPartialInterfaceImplementation::partial2Static LongAttribute());
907 } 960 }
908 961
909 static void partial2StaticLongAttributeAttributeGetterCallback(v8::Local<v8::Str ing>, const v8::PropertyCallbackInfo<v8::Value>& info) 962 static void partial2StaticLongAttributeAttributeGetterCallback(v8::Local<v8::Str ing>, const v8::PropertyCallbackInfo<v8::Value>& info)
910 { 963 {
911 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 964 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
965 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_Partial2StaticLongAttribute_A ttributeGetter);
912 TestInterfaceImplementationV8Internal::partial2StaticLongAttributeAttributeG etter(info); 966 TestInterfaceImplementationV8Internal::partial2StaticLongAttributeAttributeG etter(info);
913 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 967 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
914 } 968 }
915 969
916 static void partial2StaticLongAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::PropertyCallbackInfo<void>& info) 970 static void partial2StaticLongAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::PropertyCallbackInfo<void>& info)
917 { 971 {
918 ExceptionState exceptionState(ExceptionState::SetterContext, "partial2Static LongAttribute", "TestInterface", holder, info.GetIsolate()); 972 ExceptionState exceptionState(ExceptionState::SetterContext, "partial2Static LongAttribute", "TestInterface", holder, info.GetIsolate());
919 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 973 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
920 TestPartialInterfaceImplementation::setPartial2StaticLongAttribute(cppValue) ; 974 TestPartialInterfaceImplementation::setPartial2StaticLongAttribute(cppValue) ;
921 } 975 }
922 976
923 static void partial2StaticLongAttributeAttributeSetterCallback(v8::Local<v8::Str ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 977 static void partial2StaticLongAttributeAttributeSetterCallback(v8::Local<v8::Str ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
924 { 978 {
925 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 979 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
980 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_Partial2StaticLongAttribute_A ttributeSetter);
926 TestInterfaceImplementationV8Internal::partial2StaticLongAttributeAttributeS etter(v8Value, info); 981 TestInterfaceImplementationV8Internal::partial2StaticLongAttributeAttributeS etter(v8Value, info);
927 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 982 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
928 } 983 }
929 984
930 static void TestInterfaceImplementationConstructorGetter(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 985 static void TestInterfaceImplementationConstructorGetter(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
931 { 986 {
932 v8::Local<v8::Value> data = info.Data(); 987 v8::Local<v8::Value> data = info.Data();
933 ASSERT(data->IsExternal()); 988 ASSERT(data->IsExternal());
934 V8PerContextData* perContextData = V8PerContextData::from(info.Holder()->Cre ationContext()); 989 V8PerContextData* perContextData = V8PerContextData::from(info.Holder()->Cre ationContext());
935 if (!perContextData) 990 if (!perContextData)
936 return; 991 return;
937 v8SetReturnValue(info, perContextData->constructorForType(WrapperTypeInfo::u nwrap(data))); 992 v8SetReturnValue(info, perContextData->constructorForType(WrapperTypeInfo::u nwrap(data)));
938 } 993 }
939 994
995 static void testInterfaceConstructorAttributeConstructorGetterCallback(v8::Local <v8::String> property, const v8::PropertyCallbackInfo<v8::Value>& info)
996 {
997 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
998 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_TestInterfaceConstructorAttri bute_ConstructorGetter);
999 TestInterfaceImplementationV8Internal::TestInterfaceImplementationConstructo rGetter(property, info);
1000 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1001 }
1002
940 static void TestInterfaceImplementationForceSetAttributeOnThis(v8::Local<v8::Str ing> name, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& i nfo) 1003 static void TestInterfaceImplementationForceSetAttributeOnThis(v8::Local<v8::Str ing> name, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& i nfo)
941 { 1004 {
942 if (info.This()->IsObject()) 1005 if (info.This()->IsObject())
943 v8::Local<v8::Object>::Cast(info.This())->ForceSet(name, v8Value); 1006 v8::Local<v8::Object>::Cast(info.This())->ForceSet(name, v8Value);
944 } 1007 }
945 1008
946 static void TestInterfaceImplementationForceSetAttributeOnThisCallback(v8::Local <v8::String> name, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo< void>& info) 1009 static void TestInterfaceImplementationForceSetAttributeOnThisCallback(v8::Local <v8::String> name, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo< void>& info)
947 { 1010 {
948 TestInterfaceImplementationV8Internal::TestInterfaceImplementationForceSetAt tributeOnThis(name, v8Value, info); 1011 TestInterfaceImplementationV8Internal::TestInterfaceImplementationForceSetAt tributeOnThis(name, v8Value, info);
949 } 1012 }
(...skipping 12 matching lines...) Expand all
962 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessage s::failedToExecute("voidMethodTestInterfaceEmptyArg", "TestInterface", "paramete r 1 is not of type 'TestInterfaceEmpty'.")); 1025 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessage s::failedToExecute("voidMethodTestInterfaceEmptyArg", "TestInterface", "paramete r 1 is not of type 'TestInterfaceEmpty'."));
963 return; 1026 return;
964 } 1027 }
965 } 1028 }
966 impl->voidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg); 1029 impl->voidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg);
967 } 1030 }
968 1031
969 static void voidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info) 1032 static void voidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info)
970 { 1033 {
971 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 1034 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1035 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_VoidMethodTestInterfaceEmptyA rg_Method);
972 TestInterfaceImplementationV8Internal::voidMethodTestInterfaceEmptyArgMethod (info); 1036 TestInterfaceImplementationV8Internal::voidMethodTestInterfaceEmptyArgMethod (info);
973 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1037 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
974 } 1038 }
975 1039
976 static void voidMethodDoubleArgFloatArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) 1040 static void voidMethodDoubleArgFloatArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info)
977 { 1041 {
978 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD oubleArgFloatArg", "TestInterface", info.Holder(), info.GetIsolate()); 1042 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD oubleArgFloatArg", "TestInterface", info.Holder(), info.GetIsolate());
979 if (UNLIKELY(info.Length() < 2)) { 1043 if (UNLIKELY(info.Length() < 2)) {
980 setMinimumArityTypeError(exceptionState, 2, info.Length()); 1044 setMinimumArityTypeError(exceptionState, 2, info.Length());
981 exceptionState.throwIfNeeded(); 1045 exceptionState.throwIfNeeded();
982 return; 1046 return;
983 } 1047 }
984 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 1048 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
985 double doubleArg; 1049 double doubleArg;
986 float floatArg; 1050 float floatArg;
987 { 1051 {
988 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(doubleArg, toRestrictedDouble(info [0], exceptionState), exceptionState); 1052 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(doubleArg, toRestrictedDouble(info [0], exceptionState), exceptionState);
989 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(floatArg, toRestrictedFloat(info[1 ], exceptionState), exceptionState); 1053 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(floatArg, toRestrictedFloat(info[1 ], exceptionState), exceptionState);
990 } 1054 }
991 impl->voidMethodDoubleArgFloatArg(doubleArg, floatArg); 1055 impl->voidMethodDoubleArgFloatArg(doubleArg, floatArg);
992 } 1056 }
993 1057
994 static void voidMethodDoubleArgFloatArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info) 1058 static void voidMethodDoubleArgFloatArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info)
995 { 1059 {
996 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 1060 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1061 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_VoidMethodDoubleArgFloatArg_M ethod);
997 TestInterfaceImplementationV8Internal::voidMethodDoubleArgFloatArgMethod(inf o); 1062 TestInterfaceImplementationV8Internal::voidMethodDoubleArgFloatArgMethod(inf o);
998 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1063 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
999 } 1064 }
1000 1065
1001 static void voidMethodUnrestrictedDoubleArgUnrestrictedFloatArgMethod(const v8:: FunctionCallbackInfo<v8::Value>& info) 1066 static void voidMethodUnrestrictedDoubleArgUnrestrictedFloatArgMethod(const v8:: FunctionCallbackInfo<v8::Value>& info)
1002 { 1067 {
1003 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU nrestrictedDoubleArgUnrestrictedFloatArg", "TestInterface", info.Holder(), info. GetIsolate()); 1068 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU nrestrictedDoubleArgUnrestrictedFloatArg", "TestInterface", info.Holder(), info. GetIsolate());
1004 if (UNLIKELY(info.Length() < 2)) { 1069 if (UNLIKELY(info.Length() < 2)) {
1005 setMinimumArityTypeError(exceptionState, 2, info.Length()); 1070 setMinimumArityTypeError(exceptionState, 2, info.Length());
1006 exceptionState.throwIfNeeded(); 1071 exceptionState.throwIfNeeded();
1007 return; 1072 return;
1008 } 1073 }
1009 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 1074 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1010 double unrestrictedDoubleArg; 1075 double unrestrictedDoubleArg;
1011 float unrestrictedFloatArg; 1076 float unrestrictedFloatArg;
1012 { 1077 {
1013 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(unrestrictedDoubleArg, toDouble(in fo[0], exceptionState), exceptionState); 1078 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(unrestrictedDoubleArg, toDouble(in fo[0], exceptionState), exceptionState);
1014 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(unrestrictedFloatArg, toFloat(info [1], exceptionState), exceptionState); 1079 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(unrestrictedFloatArg, toFloat(info [1], exceptionState), exceptionState);
1015 } 1080 }
1016 impl->voidMethodUnrestrictedDoubleArgUnrestrictedFloatArg(unrestrictedDouble Arg, unrestrictedFloatArg); 1081 impl->voidMethodUnrestrictedDoubleArgUnrestrictedFloatArg(unrestrictedDouble Arg, unrestrictedFloatArg);
1017 } 1082 }
1018 1083
1019 static void voidMethodUnrestrictedDoubleArgUnrestrictedFloatArgMethodCallback(co nst v8::FunctionCallbackInfo<v8::Value>& info) 1084 static void voidMethodUnrestrictedDoubleArgUnrestrictedFloatArgMethodCallback(co nst v8::FunctionCallbackInfo<v8::Value>& info)
1020 { 1085 {
1021 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 1086 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1087 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_VoidMethodUnrestrictedDoubleA rgUnrestrictedFloatArg_Method);
1022 TestInterfaceImplementationV8Internal::voidMethodUnrestrictedDoubleArgUnrest rictedFloatArgMethod(info); 1088 TestInterfaceImplementationV8Internal::voidMethodUnrestrictedDoubleArgUnrest rictedFloatArgMethod(info);
1023 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1089 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1024 } 1090 }
1025 1091
1026 static void voidMethodTestEnumArgMethod(const v8::FunctionCallbackInfo<v8::Value >& info) 1092 static void voidMethodTestEnumArgMethod(const v8::FunctionCallbackInfo<v8::Value >& info)
1027 { 1093 {
1028 if (UNLIKELY(info.Length() < 1)) { 1094 if (UNLIKELY(info.Length() < 1)) {
1029 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "voidMethodTestEnumArg", "TestInterface", 1, info.Length()), in fo.GetIsolate()); 1095 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "voidMethodTestEnumArg", "TestInterface", 1, info.Length()), in fo.GetIsolate());
1030 return; 1096 return;
1031 } 1097 }
1032 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 1098 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1033 V8StringResource<> testEnumArg; 1099 V8StringResource<> testEnumArg;
1034 { 1100 {
1035 TOSTRING_VOID_INTERNAL(testEnumArg, info[0]); 1101 TOSTRING_VOID_INTERNAL(testEnumArg, info[0]);
1036 String string = testEnumArg; 1102 String string = testEnumArg;
1037 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" | | string == "EnumValue3")) { 1103 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" | | string == "EnumValue3")) {
1038 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessage s::failedToExecute("voidMethodTestEnumArg", "TestInterface", "parameter 1 ('" + string + "') is not a valid enum value.")); 1104 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessage s::failedToExecute("voidMethodTestEnumArg", "TestInterface", "parameter 1 ('" + string + "') is not a valid enum value."));
1039 return; 1105 return;
1040 } 1106 }
1041 } 1107 }
1042 impl->voidMethodTestEnumArg(testEnumArg); 1108 impl->voidMethodTestEnumArg(testEnumArg);
1043 } 1109 }
1044 1110
1045 static void voidMethodTestEnumArgMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) 1111 static void voidMethodTestEnumArgMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
1046 { 1112 {
1047 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 1113 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1114 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_VoidMethodTestEnumArg_Method) ;
1048 TestInterfaceImplementationV8Internal::voidMethodTestEnumArgMethod(info); 1115 TestInterfaceImplementationV8Internal::voidMethodTestEnumArgMethod(info);
1049 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1116 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1050 } 1117 }
1051 1118
1052 static void voidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 1119 static void voidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
1053 { 1120 {
1054 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 1121 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1055 impl->voidMethod(); 1122 impl->voidMethod();
1056 } 1123 }
1057 1124
1058 static void voidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 1125 static void voidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
1059 { 1126 {
1060 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 1127 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1128 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_VoidMethod_Method);
1061 TestInterfaceImplementationV8Internal::voidMethodMethod(info); 1129 TestInterfaceImplementationV8Internal::voidMethodMethod(info);
1062 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1130 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1063 } 1131 }
1064 1132
1065 static void voidMethodMethodForMainWorld(const v8::FunctionCallbackInfo<v8::Valu e>& info) 1133 static void voidMethodMethodForMainWorld(const v8::FunctionCallbackInfo<v8::Valu e>& info)
1066 { 1134 {
1067 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 1135 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1068 impl->voidMethod(); 1136 impl->voidMethod();
1069 } 1137 }
1070 1138
1071 static void voidMethodMethodCallbackForMainWorld(const v8::FunctionCallbackInfo< v8::Value>& info) 1139 static void voidMethodMethodCallbackForMainWorld(const v8::FunctionCallbackInfo< v8::Value>& info)
1072 { 1140 {
1073 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 1141 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1142 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_VoidMethod_Method);
1074 TestInterfaceImplementationV8Internal::voidMethodMethodForMainWorld(info); 1143 TestInterfaceImplementationV8Internal::voidMethodMethodForMainWorld(info);
1075 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1144 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1076 } 1145 }
1077 1146
1078 static void alwaysExposedMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 1147 static void alwaysExposedMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
1079 { 1148 {
1080 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 1149 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1081 impl->alwaysExposedMethod(); 1150 impl->alwaysExposedMethod();
1082 } 1151 }
1083 1152
1084 static void alwaysExposedMethodMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info) 1153 static void alwaysExposedMethodMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info)
1085 { 1154 {
1086 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 1155 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1156 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_AlwaysExposedMethod_Method);
1087 TestInterfaceImplementationV8Internal::alwaysExposedMethodMethod(info); 1157 TestInterfaceImplementationV8Internal::alwaysExposedMethodMethod(info);
1088 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1158 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1089 } 1159 }
1090 1160
1091 static void workerExposedMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 1161 static void workerExposedMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
1092 { 1162 {
1093 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 1163 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1094 impl->workerExposedMethod(); 1164 impl->workerExposedMethod();
1095 } 1165 }
1096 1166
1097 static void workerExposedMethodMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info) 1167 static void workerExposedMethodMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info)
1098 { 1168 {
1099 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 1169 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1170 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_WorkerExposedMethod_Method);
1100 TestInterfaceImplementationV8Internal::workerExposedMethodMethod(info); 1171 TestInterfaceImplementationV8Internal::workerExposedMethodMethod(info);
1101 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1172 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1102 } 1173 }
1103 1174
1104 static void windowExposedMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 1175 static void windowExposedMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
1105 { 1176 {
1106 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 1177 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1107 impl->windowExposedMethod(); 1178 impl->windowExposedMethod();
1108 } 1179 }
1109 1180
1110 static void windowExposedMethodMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info) 1181 static void windowExposedMethodMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info)
1111 { 1182 {
1112 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 1183 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1184 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_WindowExposedMethod_Method);
1113 TestInterfaceImplementationV8Internal::windowExposedMethodMethod(info); 1185 TestInterfaceImplementationV8Internal::windowExposedMethodMethod(info);
1114 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1186 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1115 } 1187 }
1116 1188
1117 static void alwaysExposedStaticMethodMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 1189 static void alwaysExposedStaticMethodMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
1118 { 1190 {
1119 TestInterfaceImplementation::alwaysExposedStaticMethod(); 1191 TestInterfaceImplementation::alwaysExposedStaticMethod();
1120 } 1192 }
1121 1193
1122 static void alwaysExposedStaticMethodMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 1194 static void alwaysExposedStaticMethodMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
1123 { 1195 {
1124 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 1196 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1197 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_AlwaysExposedStaticMethod_Met hod);
1125 TestInterfaceImplementationV8Internal::alwaysExposedStaticMethodMethod(info) ; 1198 TestInterfaceImplementationV8Internal::alwaysExposedStaticMethodMethod(info) ;
1126 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1199 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1127 } 1200 }
1128 1201
1129 static void workerExposedStaticMethodMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 1202 static void workerExposedStaticMethodMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
1130 { 1203 {
1131 TestInterfaceImplementation::workerExposedStaticMethod(); 1204 TestInterfaceImplementation::workerExposedStaticMethod();
1132 } 1205 }
1133 1206
1134 static void workerExposedStaticMethodMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 1207 static void workerExposedStaticMethodMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
1135 { 1208 {
1136 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 1209 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1210 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_WorkerExposedStaticMethod_Met hod);
1137 TestInterfaceImplementationV8Internal::workerExposedStaticMethodMethod(info) ; 1211 TestInterfaceImplementationV8Internal::workerExposedStaticMethodMethod(info) ;
1138 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1212 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1139 } 1213 }
1140 1214
1141 static void windowExposedStaticMethodMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 1215 static void windowExposedStaticMethodMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
1142 { 1216 {
1143 TestInterfaceImplementation::windowExposedStaticMethod(); 1217 TestInterfaceImplementation::windowExposedStaticMethod();
1144 } 1218 }
1145 1219
1146 static void windowExposedStaticMethodMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 1220 static void windowExposedStaticMethodMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
1147 { 1221 {
1148 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 1222 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1223 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_WindowExposedStaticMethod_Met hod);
1149 TestInterfaceImplementationV8Internal::windowExposedStaticMethodMethod(info) ; 1224 TestInterfaceImplementationV8Internal::windowExposedStaticMethodMethod(info) ;
1150 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1225 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1151 } 1226 }
1152 1227
1153 static void methodWithExposedAndRuntimeEnabledFlagMethod(const v8::FunctionCallb ackInfo<v8::Value>& info) 1228 static void methodWithExposedAndRuntimeEnabledFlagMethod(const v8::FunctionCallb ackInfo<v8::Value>& info)
1154 { 1229 {
1155 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 1230 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1156 impl->methodWithExposedAndRuntimeEnabledFlag(); 1231 impl->methodWithExposedAndRuntimeEnabledFlag();
1157 } 1232 }
1158 1233
1159 static void methodWithExposedAndRuntimeEnabledFlagMethodCallback(const v8::Funct ionCallbackInfo<v8::Value>& info) 1234 static void methodWithExposedAndRuntimeEnabledFlagMethodCallback(const v8::Funct ionCallbackInfo<v8::Value>& info)
1160 { 1235 {
1161 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 1236 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1237 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_MethodWithExposedAndRuntimeEn abledFlag_Method);
1162 TestInterfaceImplementationV8Internal::methodWithExposedAndRuntimeEnabledFla gMethod(info); 1238 TestInterfaceImplementationV8Internal::methodWithExposedAndRuntimeEnabledFla gMethod(info);
1163 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1239 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1164 } 1240 }
1165 1241
1166 static void overloadMethodWithExposedAndRuntimeEnabledFlag1Method(const v8::Func tionCallbackInfo<v8::Value>& info) 1242 static void overloadMethodWithExposedAndRuntimeEnabledFlag1Method(const v8::Func tionCallbackInfo<v8::Value>& info)
1167 { 1243 {
1168 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadMet hodWithExposedAndRuntimeEnabledFlag", "TestInterface", info.Holder(), info.GetIs olate()); 1244 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadMet hodWithExposedAndRuntimeEnabledFlag", "TestInterface", info.Holder(), info.GetIs olate());
1169 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 1245 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1170 int longArg; 1246 int longArg;
1171 { 1247 {
(...skipping 26 matching lines...) Expand all
1198 impl->overloadMethodWithExposedAndRuntimeEnabledFlag(window); 1274 impl->overloadMethodWithExposedAndRuntimeEnabledFlag(window);
1199 } 1275 }
1200 1276
1201 static void overloadMethodWithExposedAndRuntimeEnabledFlagMethod(const v8::Funct ionCallbackInfo<v8::Value>& info) 1277 static void overloadMethodWithExposedAndRuntimeEnabledFlagMethod(const v8::Funct ionCallbackInfo<v8::Value>& info)
1202 { 1278 {
1203 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadMet hodWithExposedAndRuntimeEnabledFlag", "TestInterface", info.Holder(), info.GetIs olate()); 1279 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadMet hodWithExposedAndRuntimeEnabledFlag", "TestInterface", info.Holder(), info.GetIs olate());
1204 switch (std::min(1, info.Length())) { 1280 switch (std::min(1, info.Length())) {
1205 case 1: 1281 case 1:
1206 if (RuntimeEnabledFeatures::featureName2Enabled()) { 1282 if (RuntimeEnabledFeatures::featureName2Enabled()) {
1207 if (V8Window::hasInstance(info[0], info.GetIsolate())) { 1283 if (V8Window::hasInstance(info[0], info.GetIsolate())) {
1284 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingEx ecutionContext(info.GetIsolate()), UseCounter::V8TestInterface_OverloadMethodWit hExposedAndRuntimeEnabledFlag_Method);
1208 overloadMethodWithExposedAndRuntimeEnabledFlag3Method(info); 1285 overloadMethodWithExposedAndRuntimeEnabledFlag3Method(info);
1209 return; 1286 return;
1210 } 1287 }
1211 } 1288 }
1212 if (info[0]->IsNumber()) { 1289 if (info[0]->IsNumber()) {
1290 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecut ionContext(info.GetIsolate()), UseCounter::V8TestInterface_OverloadMethodWithExp osedAndRuntimeEnabledFlag_Method);
1213 overloadMethodWithExposedAndRuntimeEnabledFlag1Method(info); 1291 overloadMethodWithExposedAndRuntimeEnabledFlag1Method(info);
1214 return; 1292 return;
1215 } 1293 }
1216 if (RuntimeEnabledFeatures::featureNameEnabled()) { 1294 if (RuntimeEnabledFeatures::featureNameEnabled()) {
1217 if (true) { 1295 if (true) {
1296 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingEx ecutionContext(info.GetIsolate()), UseCounter::V8TestInterface_OverloadMethodWit hExposedAndRuntimeEnabledFlag_Method);
1218 overloadMethodWithExposedAndRuntimeEnabledFlag2Method(info); 1297 overloadMethodWithExposedAndRuntimeEnabledFlag2Method(info);
1219 return; 1298 return;
1220 } 1299 }
1221 } 1300 }
1222 if (true) { 1301 if (true) {
1302 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecut ionContext(info.GetIsolate()), UseCounter::V8TestInterface_OverloadMethodWithExp osedAndRuntimeEnabledFlag_Method);
1223 overloadMethodWithExposedAndRuntimeEnabledFlag1Method(info); 1303 overloadMethodWithExposedAndRuntimeEnabledFlag1Method(info);
1224 return; 1304 return;
1225 } 1305 }
1226 break; 1306 break;
1227 default: 1307 default:
1228 break; 1308 break;
1229 } 1309 }
1230 if (info.Length() < 1) { 1310 if (info.Length() < 1) {
1231 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 1311 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
1232 exceptionState.throwIfNeeded(); 1312 exceptionState.throwIfNeeded();
(...skipping 12 matching lines...) Expand all
1245 1325
1246 static void methodWithExposedHavingRuntimeEnabldFlagMethod(const v8::FunctionCal lbackInfo<v8::Value>& info) 1326 static void methodWithExposedHavingRuntimeEnabldFlagMethod(const v8::FunctionCal lbackInfo<v8::Value>& info)
1247 { 1327 {
1248 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 1328 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1249 impl->methodWithExposedHavingRuntimeEnabldFlag(); 1329 impl->methodWithExposedHavingRuntimeEnabldFlag();
1250 } 1330 }
1251 1331
1252 static void methodWithExposedHavingRuntimeEnabldFlagMethodCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info) 1332 static void methodWithExposedHavingRuntimeEnabldFlagMethodCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info)
1253 { 1333 {
1254 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 1334 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1335 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_MethodWithExposedHavingRuntim eEnabldFlag_Method);
1255 TestInterfaceImplementationV8Internal::methodWithExposedHavingRuntimeEnabldF lagMethod(info); 1336 TestInterfaceImplementationV8Internal::methodWithExposedHavingRuntimeEnabldF lagMethod(info);
1256 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1337 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1257 } 1338 }
1258 1339
1259 static void windowAndServiceWorkerExposedMethodMethod(const v8::FunctionCallback Info<v8::Value>& info) 1340 static void windowAndServiceWorkerExposedMethodMethod(const v8::FunctionCallback Info<v8::Value>& info)
1260 { 1341 {
1261 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 1342 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1262 impl->windowAndServiceWorkerExposedMethod(); 1343 impl->windowAndServiceWorkerExposedMethod();
1263 } 1344 }
1264 1345
1265 static void windowAndServiceWorkerExposedMethodMethodCallback(const v8::Function CallbackInfo<v8::Value>& info) 1346 static void windowAndServiceWorkerExposedMethodMethodCallback(const v8::Function CallbackInfo<v8::Value>& info)
1266 { 1347 {
1267 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 1348 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1349 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_WindowAndServiceWorkerExposed Method_Method);
1268 TestInterfaceImplementationV8Internal::windowAndServiceWorkerExposedMethodMe thod(info); 1350 TestInterfaceImplementationV8Internal::windowAndServiceWorkerExposedMethodMe thod(info);
1269 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1351 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1270 } 1352 }
1271 1353
1272 static void voidMethodPartialOverload1Method(const v8::FunctionCallbackInfo<v8:: Value>& info) 1354 static void voidMethodPartialOverload1Method(const v8::FunctionCallbackInfo<v8:: Value>& info)
1273 { 1355 {
1274 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 1356 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1275 impl->voidMethodPartialOverload(); 1357 impl->voidMethodPartialOverload();
1276 } 1358 }
1277 1359
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
1318 1400
1319 static void implementsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value> & info) 1401 static void implementsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value> & info)
1320 { 1402 {
1321 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 1403 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1322 impl->implementsVoidMethod(); 1404 impl->implementsVoidMethod();
1323 } 1405 }
1324 1406
1325 static void implementsVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info) 1407 static void implementsVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info)
1326 { 1408 {
1327 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 1409 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1410 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_ImplementsVoidMethod_Method);
1328 TestInterfaceImplementationV8Internal::implementsVoidMethodMethod(info); 1411 TestInterfaceImplementationV8Internal::implementsVoidMethodMethod(info);
1329 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1412 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1330 } 1413 }
1331 1414
1332 static void implementsComplexMethodMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) 1415 static void implementsComplexMethodMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info)
1333 { 1416 {
1334 ExceptionState exceptionState(ExceptionState::ExecutionContext, "implementsC omplexMethod", "TestInterface", info.Holder(), info.GetIsolate()); 1417 ExceptionState exceptionState(ExceptionState::ExecutionContext, "implementsC omplexMethod", "TestInterface", info.Holder(), info.GetIsolate());
1335 if (UNLIKELY(info.Length() < 2)) { 1418 if (UNLIKELY(info.Length() < 2)) {
1336 setMinimumArityTypeError(exceptionState, 2, info.Length()); 1419 setMinimumArityTypeError(exceptionState, 2, info.Length());
1337 exceptionState.throwIfNeeded(); 1420 exceptionState.throwIfNeeded();
(...skipping 16 matching lines...) Expand all
1354 if (exceptionState.hadException()) { 1437 if (exceptionState.hadException()) {
1355 exceptionState.throwIfNeeded(); 1438 exceptionState.throwIfNeeded();
1356 return; 1439 return;
1357 } 1440 }
1358 v8SetReturnValue(info, result.release()); 1441 v8SetReturnValue(info, result.release());
1359 } 1442 }
1360 1443
1361 static void implementsComplexMethodMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 1444 static void implementsComplexMethodMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
1362 { 1445 {
1363 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 1446 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1447 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_ImplementsComplexMethod_Metho d);
1364 TestInterfaceImplementationV8Internal::implementsComplexMethodMethod(info); 1448 TestInterfaceImplementationV8Internal::implementsComplexMethodMethod(info);
1365 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1449 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1366 } 1450 }
1367 1451
1368 static void implementsCustomVoidMethodMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) 1452 static void implementsCustomVoidMethodMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info)
1369 { 1453 {
1370 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 1454 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1455 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_ImplementsCustomVoidMethod_Me thod);
1371 V8TestInterface::implementsCustomVoidMethodMethodCustom(info); 1456 V8TestInterface::implementsCustomVoidMethodMethodCustom(info);
1372 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1457 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1373 } 1458 }
1374 1459
1375 static void implementsStaticVoidMethodMethod(const v8::FunctionCallbackInfo<v8:: Value>& info) 1460 static void implementsStaticVoidMethodMethod(const v8::FunctionCallbackInfo<v8:: Value>& info)
1376 { 1461 {
1377 TestInterfaceImplementation::implementsStaticVoidMethod(); 1462 TestInterfaceImplementation::implementsStaticVoidMethod();
1378 } 1463 }
1379 1464
1380 static void implementsStaticVoidMethodMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) 1465 static void implementsStaticVoidMethodMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info)
1381 { 1466 {
1382 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 1467 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1468 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_ImplementsStaticVoidMethod_Me thod);
1383 TestInterfaceImplementationV8Internal::implementsStaticVoidMethodMethod(info ); 1469 TestInterfaceImplementationV8Internal::implementsStaticVoidMethodMethod(info );
1384 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1470 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1385 } 1471 }
1386 1472
1387 static void implements2VoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value >& info) 1473 static void implements2VoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value >& info)
1388 { 1474 {
1389 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 1475 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1390 TestImplements2::implements2VoidMethod(*impl); 1476 TestImplements2::implements2VoidMethod(*impl);
1391 } 1477 }
1392 1478
1393 static void implements2VoidMethodMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) 1479 static void implements2VoidMethodMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
1394 { 1480 {
1395 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 1481 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1482 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_Implements2VoidMethod_Method) ;
1396 TestInterfaceImplementationV8Internal::implements2VoidMethodMethod(info); 1483 TestInterfaceImplementationV8Internal::implements2VoidMethodMethod(info);
1397 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1484 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1398 } 1485 }
1399 1486
1400 static void implements3VoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value >& info) 1487 static void implements3VoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value >& info)
1401 { 1488 {
1402 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 1489 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1403 TestImplements3Implementation::implements3VoidMethod(*impl); 1490 TestImplements3Implementation::implements3VoidMethod(*impl);
1404 } 1491 }
1405 1492
1406 static void implements3VoidMethodMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) 1493 static void implements3VoidMethodMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
1407 { 1494 {
1408 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 1495 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1496 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_Implements3VoidMethod_Method) ;
1409 TestInterfaceImplementationV8Internal::implements3VoidMethodMethod(info); 1497 TestInterfaceImplementationV8Internal::implements3VoidMethodMethod(info);
1410 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1498 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1411 } 1499 }
1412 1500
1413 static void implements3StaticVoidMethodMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) 1501 static void implements3StaticVoidMethodMethod(const v8::FunctionCallbackInfo<v8: :Value>& info)
1414 { 1502 {
1415 TestImplements3Implementation::implements3StaticVoidMethod(); 1503 TestImplements3Implementation::implements3StaticVoidMethod();
1416 } 1504 }
1417 1505
1418 static void implements3StaticVoidMethodMethodCallback(const v8::FunctionCallback Info<v8::Value>& info) 1506 static void implements3StaticVoidMethodMethodCallback(const v8::FunctionCallback Info<v8::Value>& info)
1419 { 1507 {
1420 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 1508 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1509 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_Implements3StaticVoidMethod_M ethod);
1421 TestInterfaceImplementationV8Internal::implements3StaticVoidMethodMethod(inf o); 1510 TestInterfaceImplementationV8Internal::implements3StaticVoidMethodMethod(inf o);
1422 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1511 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1423 } 1512 }
1424 1513
1425 #if ENABLE(PARTIAL_CONDITION) 1514 #if ENABLE(PARTIAL_CONDITION)
1426 static void partialVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 1515 static void partialVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
1427 { 1516 {
1428 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 1517 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1429 TestPartialInterface::partialVoidMethod(*impl); 1518 TestPartialInterface::partialVoidMethod(*impl);
1430 } 1519 }
1431 #endif // ENABLE(PARTIAL_CONDITION) 1520 #endif // ENABLE(PARTIAL_CONDITION)
1432 1521
1433 #if ENABLE(PARTIAL_CONDITION) 1522 #if ENABLE(PARTIAL_CONDITION)
1434 static void partialVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 1523 static void partialVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
1435 { 1524 {
1436 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 1525 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1526 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_PartialVoidMethod_Method);
1437 TestInterfaceImplementationV8Internal::partialVoidMethodMethod(info); 1527 TestInterfaceImplementationV8Internal::partialVoidMethodMethod(info);
1438 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1528 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1439 } 1529 }
1440 #endif // ENABLE(PARTIAL_CONDITION) 1530 #endif // ENABLE(PARTIAL_CONDITION)
1441 1531
1442 #if ENABLE(PARTIAL_CONDITION) 1532 #if ENABLE(PARTIAL_CONDITION)
1443 static void partialStaticVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) 1533 static void partialStaticVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info)
1444 { 1534 {
1445 TestPartialInterface::partialStaticVoidMethod(); 1535 TestPartialInterface::partialStaticVoidMethod();
1446 } 1536 }
1447 #endif // ENABLE(PARTIAL_CONDITION) 1537 #endif // ENABLE(PARTIAL_CONDITION)
1448 1538
1449 #if ENABLE(PARTIAL_CONDITION) 1539 #if ENABLE(PARTIAL_CONDITION)
1450 static void partialStaticVoidMethodMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 1540 static void partialStaticVoidMethodMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
1451 { 1541 {
1452 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 1542 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1543 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_PartialStaticVoidMethod_Metho d);
1453 TestInterfaceImplementationV8Internal::partialStaticVoidMethodMethod(info); 1544 TestInterfaceImplementationV8Internal::partialStaticVoidMethodMethod(info);
1454 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1545 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1455 } 1546 }
1456 #endif // ENABLE(PARTIAL_CONDITION) 1547 #endif // ENABLE(PARTIAL_CONDITION)
1457 1548
1458 #if ENABLE(PARTIAL_CONDITION) 1549 #if ENABLE(PARTIAL_CONDITION)
1459 static void partialVoidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info) 1550 static void partialVoidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info)
1460 { 1551 {
1461 ExceptionState exceptionState(ExceptionState::ExecutionContext, "partialVoid MethodLongArg", "TestInterface", info.Holder(), info.GetIsolate()); 1552 ExceptionState exceptionState(ExceptionState::ExecutionContext, "partialVoid MethodLongArg", "TestInterface", info.Holder(), info.GetIsolate());
1462 if (UNLIKELY(info.Length() < 1)) { 1553 if (UNLIKELY(info.Length() < 1)) {
1463 setMinimumArityTypeError(exceptionState, 1, info.Length()); 1554 setMinimumArityTypeError(exceptionState, 1, info.Length());
1464 exceptionState.throwIfNeeded(); 1555 exceptionState.throwIfNeeded();
1465 return; 1556 return;
1466 } 1557 }
1467 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 1558 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1468 int longArg; 1559 int longArg;
1469 { 1560 {
1470 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState); 1561 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
1471 } 1562 }
1472 TestPartialInterface::partialVoidMethodLongArg(*impl, longArg); 1563 TestPartialInterface::partialVoidMethodLongArg(*impl, longArg);
1473 } 1564 }
1474 #endif // ENABLE(PARTIAL_CONDITION) 1565 #endif // ENABLE(PARTIAL_CONDITION)
1475 1566
1476 #if ENABLE(PARTIAL_CONDITION) 1567 #if ENABLE(PARTIAL_CONDITION)
1477 static void partialVoidMethodLongArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info) 1568 static void partialVoidMethodLongArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info)
1478 { 1569 {
1479 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 1570 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1571 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_PartialVoidMethodLongArg_Meth od);
1480 TestInterfaceImplementationV8Internal::partialVoidMethodLongArgMethod(info); 1572 TestInterfaceImplementationV8Internal::partialVoidMethodLongArgMethod(info);
1481 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1573 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1482 } 1574 }
1483 #endif // ENABLE(PARTIAL_CONDITION) 1575 #endif // ENABLE(PARTIAL_CONDITION)
1484 1576
1485 #if ENABLE(PARTIAL_CONDITION) 1577 #if ENABLE(PARTIAL_CONDITION)
1486 static void partialCallWithExecutionContextRaisesExceptionVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 1578 static void partialCallWithExecutionContextRaisesExceptionVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
1487 { 1579 {
1488 ExceptionState exceptionState(ExceptionState::ExecutionContext, "partialCall WithExecutionContextRaisesExceptionVoidMethod", "TestInterface", info.Holder(), info.GetIsolate()); 1580 ExceptionState exceptionState(ExceptionState::ExecutionContext, "partialCall WithExecutionContextRaisesExceptionVoidMethod", "TestInterface", info.Holder(), info.GetIsolate());
1489 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 1581 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1490 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ()); 1582 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ());
1491 TestPartialInterface::partialCallWithExecutionContextRaisesExceptionVoidMeth od(executionContext, *impl, exceptionState); 1583 TestPartialInterface::partialCallWithExecutionContextRaisesExceptionVoidMeth od(executionContext, *impl, exceptionState);
1492 if (exceptionState.hadException()) { 1584 if (exceptionState.hadException()) {
1493 exceptionState.throwIfNeeded(); 1585 exceptionState.throwIfNeeded();
1494 return; 1586 return;
1495 } 1587 }
1496 } 1588 }
1497 #endif // ENABLE(PARTIAL_CONDITION) 1589 #endif // ENABLE(PARTIAL_CONDITION)
1498 1590
1499 #if ENABLE(PARTIAL_CONDITION) 1591 #if ENABLE(PARTIAL_CONDITION)
1500 static void partialCallWithExecutionContextRaisesExceptionVoidMethodMethodCallba ck(const v8::FunctionCallbackInfo<v8::Value>& info) 1592 static void partialCallWithExecutionContextRaisesExceptionVoidMethodMethodCallba ck(const v8::FunctionCallbackInfo<v8::Value>& info)
1501 { 1593 {
1502 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 1594 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1595 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_PartialCallWithExecutionConte xtRaisesExceptionVoidMethod_Method);
1503 TestInterfaceImplementationV8Internal::partialCallWithExecutionContextRaises ExceptionVoidMethodMethod(info); 1596 TestInterfaceImplementationV8Internal::partialCallWithExecutionContextRaises ExceptionVoidMethodMethod(info);
1504 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1597 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1505 } 1598 }
1506 #endif // ENABLE(PARTIAL_CONDITION) 1599 #endif // ENABLE(PARTIAL_CONDITION)
1507 1600
1508 #if ENABLE(PARTIAL_CONDITION) 1601 #if ENABLE(PARTIAL_CONDITION)
1509 static void partialVoidMethodPartialCallbackTypeArgMethod(const v8::FunctionCall backInfo<v8::Value>& info) 1602 static void partialVoidMethodPartialCallbackTypeArgMethod(const v8::FunctionCall backInfo<v8::Value>& info)
1510 { 1603 {
1511 if (UNLIKELY(info.Length() < 1)) { 1604 if (UNLIKELY(info.Length() < 1)) {
1512 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "partialVoidMethodPartialCallbackTypeArg", "TestInterface", 1, info.Length()), info.GetIsolate()); 1605 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "partialVoidMethodPartialCallbackTypeArg", "TestInterface", 1, info.Length()), info.GetIsolate());
1513 return; 1606 return;
1514 } 1607 }
1515 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 1608 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1516 ScriptValue partialCallbackTypeArg; 1609 ScriptValue partialCallbackTypeArg;
1517 { 1610 {
1518 if (!info[0]->IsFunction()) { 1611 if (!info[0]->IsFunction()) {
1519 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessage s::failedToExecute("partialVoidMethodPartialCallbackTypeArg", "TestInterface", " The callback provided as parameter 1 is not a function.")); 1612 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessage s::failedToExecute("partialVoidMethodPartialCallbackTypeArg", "TestInterface", " The callback provided as parameter 1 is not a function."));
1520 return; 1613 return;
1521 } 1614 }
1522 partialCallbackTypeArg = ScriptValue(ScriptState::current(info.GetIsolat e()), info[0]); 1615 partialCallbackTypeArg = ScriptValue(ScriptState::current(info.GetIsolat e()), info[0]);
1523 } 1616 }
1524 TestPartialInterface::partialVoidMethodPartialCallbackTypeArg(*impl, partial CallbackTypeArg); 1617 TestPartialInterface::partialVoidMethodPartialCallbackTypeArg(*impl, partial CallbackTypeArg);
1525 } 1618 }
1526 #endif // ENABLE(PARTIAL_CONDITION) 1619 #endif // ENABLE(PARTIAL_CONDITION)
1527 1620
1528 #if ENABLE(PARTIAL_CONDITION) 1621 #if ENABLE(PARTIAL_CONDITION)
1529 static void partialVoidMethodPartialCallbackTypeArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info) 1622 static void partialVoidMethodPartialCallbackTypeArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info)
1530 { 1623 {
1531 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 1624 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1625 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_PartialVoidMethodPartialCallb ackTypeArg_Method);
1532 TestInterfaceImplementationV8Internal::partialVoidMethodPartialCallbackTypeA rgMethod(info); 1626 TestInterfaceImplementationV8Internal::partialVoidMethodPartialCallbackTypeA rgMethod(info);
1533 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1627 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1534 } 1628 }
1535 #endif // ENABLE(PARTIAL_CONDITION) 1629 #endif // ENABLE(PARTIAL_CONDITION)
1536 1630
1537 #if ENABLE(PARTIAL_CONDITION) 1631 #if ENABLE(PARTIAL_CONDITION)
1538 static void shortMethodWithShortArgumentImplementedInPrivateScriptMethod(const v 8::FunctionCallbackInfo<v8::Value>& info) 1632 static void shortMethodWithShortArgumentImplementedInPrivateScriptMethod(const v 8::FunctionCallbackInfo<v8::Value>& info)
1539 { 1633 {
1540 ExceptionState exceptionState(ExceptionState::ExecutionContext, "shortMethod WithShortArgumentImplementedInPrivateScript", "TestInterface", info.Holder(), in fo.GetIsolate()); 1634 ExceptionState exceptionState(ExceptionState::ExecutionContext, "shortMethod WithShortArgumentImplementedInPrivateScript", "TestInterface", info.Holder(), in fo.GetIsolate());
1541 if (UNLIKELY(info.Length() < 1)) { 1635 if (UNLIKELY(info.Length() < 1)) {
(...skipping 10 matching lines...) Expand all
1552 if (!V8TestInterface::PrivateScript::shortMethodWithShortArgumentImplemented InPrivateScriptMethod(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext( )), impl, value, &result)) 1646 if (!V8TestInterface::PrivateScript::shortMethodWithShortArgumentImplemented InPrivateScriptMethod(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext( )), impl, value, &result))
1553 return; 1647 return;
1554 v8SetReturnValueInt(info, result); 1648 v8SetReturnValueInt(info, result);
1555 } 1649 }
1556 #endif // ENABLE(PARTIAL_CONDITION) 1650 #endif // ENABLE(PARTIAL_CONDITION)
1557 1651
1558 #if ENABLE(PARTIAL_CONDITION) 1652 #if ENABLE(PARTIAL_CONDITION)
1559 static void shortMethodWithShortArgumentImplementedInPrivateScriptMethodCallback (const v8::FunctionCallbackInfo<v8::Value>& info) 1653 static void shortMethodWithShortArgumentImplementedInPrivateScriptMethodCallback (const v8::FunctionCallbackInfo<v8::Value>& info)
1560 { 1654 {
1561 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 1655 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1656 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_ShortMethodWithShortArgumentI mplementedInPrivateScript_Method);
1562 TestInterfaceImplementationV8Internal::shortMethodWithShortArgumentImplement edInPrivateScriptMethod(info); 1657 TestInterfaceImplementationV8Internal::shortMethodWithShortArgumentImplement edInPrivateScriptMethod(info);
1563 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1658 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1564 } 1659 }
1565 #endif // ENABLE(PARTIAL_CONDITION) 1660 #endif // ENABLE(PARTIAL_CONDITION)
1566 1661
1567 static void partial2VoidMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 1662 static void partial2VoidMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
1568 { 1663 {
1569 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 1664 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1570 TestPartialInterfaceImplementation::partial2VoidMethod(*impl); 1665 TestPartialInterfaceImplementation::partial2VoidMethod(*impl);
1571 } 1666 }
1572 1667
1573 static void partial2StaticVoidMethod1Method(const v8::FunctionCallbackInfo<v8::V alue>& info) 1668 static void partial2StaticVoidMethod1Method(const v8::FunctionCallbackInfo<v8::V alue>& info)
1574 { 1669 {
1575 TestPartialInterfaceImplementation::partial2StaticVoidMethod(); 1670 TestPartialInterfaceImplementation::partial2StaticVoidMethod();
1576 } 1671 }
1577 1672
1578 static void voidMethodPartialOverloadMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 1673 static void voidMethodPartialOverloadMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
1579 { 1674 {
1580 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodP artialOverload", "TestInterface", info.Holder(), info.GetIsolate()); 1675 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodP artialOverload", "TestInterface", info.Holder(), info.GetIsolate());
1581 switch (std::min(1, info.Length())) { 1676 switch (std::min(1, info.Length())) {
1582 case 0: 1677 case 0:
1583 if (true) { 1678 if (true) {
1679 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecut ionContext(info.GetIsolate()), UseCounter::V8TestInterface_VoidMethodPartialOver load_Method);
1584 voidMethodPartialOverload1Method(info); 1680 voidMethodPartialOverload1Method(info);
1585 return; 1681 return;
1586 } 1682 }
1587 break; 1683 break;
1588 case 1: 1684 case 1:
1589 if (info[0]->IsNumber()) { 1685 if (info[0]->IsNumber()) {
1686 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecut ionContext(info.GetIsolate()), UseCounter::V8TestInterface_VoidMethodPartialOver load_Method);
1590 voidMethodPartialOverload2Method(info); 1687 voidMethodPartialOverload2Method(info);
1591 return; 1688 return;
1592 } 1689 }
1593 if (true) { 1690 if (true) {
1691 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecut ionContext(info.GetIsolate()), UseCounter::V8TestInterface_VoidMethodPartialOver load_Method);
1594 voidMethodPartialOverload2Method(info); 1692 voidMethodPartialOverload2Method(info);
1595 return; 1693 return;
1596 } 1694 }
1597 break; 1695 break;
1598 } 1696 }
1599 ASSERT(voidMethodPartialOverloadMethodForPartialInterface); 1697 ASSERT(voidMethodPartialOverloadMethodForPartialInterface);
1600 (voidMethodPartialOverloadMethodForPartialInterface)(info); 1698 (voidMethodPartialOverloadMethodForPartialInterface)(info);
1601 } 1699 }
1602 1700
1603 static void voidMethodPartialOverloadMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 1701 static void voidMethodPartialOverloadMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
1604 { 1702 {
1605 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 1703 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1606 TestInterfaceImplementationV8Internal::voidMethodPartialOverloadMethod(info) ; 1704 TestInterfaceImplementationV8Internal::voidMethodPartialOverloadMethod(info) ;
1607 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1705 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1608 } 1706 }
1609 1707
1610 static void staticVoidMethodPartialOverloadMethod(const v8::FunctionCallbackInfo <v8::Value>& info) 1708 static void staticVoidMethodPartialOverloadMethod(const v8::FunctionCallbackInfo <v8::Value>& info)
1611 { 1709 {
1612 ExceptionState exceptionState(ExceptionState::ExecutionContext, "staticVoidM ethodPartialOverload", "TestInterface", info.Holder(), info.GetIsolate()); 1710 ExceptionState exceptionState(ExceptionState::ExecutionContext, "staticVoidM ethodPartialOverload", "TestInterface", info.Holder(), info.GetIsolate());
1613 switch (std::min(1, info.Length())) { 1711 switch (std::min(1, info.Length())) {
1614 case 0: 1712 case 0:
1615 if (true) { 1713 if (true) {
1714 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecut ionContext(info.GetIsolate()), UseCounter::V8TestInterface_StaticVoidMethodParti alOverload_Method);
1616 staticVoidMethodPartialOverload1Method(info); 1715 staticVoidMethodPartialOverload1Method(info);
1617 return; 1716 return;
1618 } 1717 }
1619 break; 1718 break;
1620 case 1: 1719 case 1:
1621 break; 1720 break;
1622 } 1721 }
1623 ASSERT(staticVoidMethodPartialOverloadMethodForPartialInterface); 1722 ASSERT(staticVoidMethodPartialOverloadMethodForPartialInterface);
1624 (staticVoidMethodPartialOverloadMethodForPartialInterface)(info); 1723 (staticVoidMethodPartialOverloadMethodForPartialInterface)(info);
1625 } 1724 }
1626 1725
1627 static void staticVoidMethodPartialOverloadMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info) 1726 static void staticVoidMethodPartialOverloadMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info)
1628 { 1727 {
1629 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 1728 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1630 TestInterfaceImplementationV8Internal::staticVoidMethodPartialOverloadMethod (info); 1729 TestInterfaceImplementationV8Internal::staticVoidMethodPartialOverloadMethod (info);
1631 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1730 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1632 } 1731 }
1633 1732
1634 static void promiseMethodPartialOverloadMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info) 1733 static void promiseMethodPartialOverloadMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info)
1635 { 1734 {
1636 ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseMeth odPartialOverload", "TestInterface", info.Holder(), info.GetIsolate()); 1735 ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseMeth odPartialOverload", "TestInterface", info.Holder(), info.GetIsolate());
1637 switch (std::min(1, info.Length())) { 1736 switch (std::min(1, info.Length())) {
1638 case 0: 1737 case 0:
1639 if (true) { 1738 if (true) {
1739 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecut ionContext(info.GetIsolate()), UseCounter::V8TestInterface_PromiseMethodPartialO verload_Method);
1640 promiseMethodPartialOverload1Method(info); 1740 promiseMethodPartialOverload1Method(info);
1641 return; 1741 return;
1642 } 1742 }
1643 break; 1743 break;
1644 case 1: 1744 case 1:
1645 if (V8Window::hasInstance(info[0], info.GetIsolate())) { 1745 if (V8Window::hasInstance(info[0], info.GetIsolate())) {
1746 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecut ionContext(info.GetIsolate()), UseCounter::V8TestInterface_PromiseMethodPartialO verload_Method);
1646 promiseMethodPartialOverload2Method(info); 1747 promiseMethodPartialOverload2Method(info);
1647 return; 1748 return;
1648 } 1749 }
1649 break; 1750 break;
1650 } 1751 }
1651 ASSERT(promiseMethodPartialOverloadMethodForPartialInterface); 1752 ASSERT(promiseMethodPartialOverloadMethodForPartialInterface);
1652 (promiseMethodPartialOverloadMethodForPartialInterface)(info); 1753 (promiseMethodPartialOverloadMethodForPartialInterface)(info);
1653 } 1754 }
1654 1755
1655 static void promiseMethodPartialOverloadMethodCallback(const v8::FunctionCallbac kInfo<v8::Value>& info) 1756 static void promiseMethodPartialOverloadMethodCallback(const v8::FunctionCallbac kInfo<v8::Value>& info)
1656 { 1757 {
1657 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 1758 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1658 TestInterfaceImplementationV8Internal::promiseMethodPartialOverloadMethod(in fo); 1759 TestInterfaceImplementationV8Internal::promiseMethodPartialOverloadMethod(in fo);
1659 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1760 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1660 } 1761 }
1661 1762
1662 static void staticPromiseMethodPartialOverloadMethod(const v8::FunctionCallbackI nfo<v8::Value>& info) 1763 static void staticPromiseMethodPartialOverloadMethod(const v8::FunctionCallbackI nfo<v8::Value>& info)
1663 { 1764 {
1664 ExceptionState exceptionState(ExceptionState::ExecutionContext, "staticPromi seMethodPartialOverload", "TestInterface", info.Holder(), info.GetIsolate()); 1765 ExceptionState exceptionState(ExceptionState::ExecutionContext, "staticPromi seMethodPartialOverload", "TestInterface", info.Holder(), info.GetIsolate());
1665 switch (std::min(1, info.Length())) { 1766 switch (std::min(1, info.Length())) {
1666 case 0: 1767 case 0:
1667 if (true) { 1768 if (true) {
1769 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecut ionContext(info.GetIsolate()), UseCounter::V8TestInterface_StaticPromiseMethodPa rtialOverload_Method);
1668 staticPromiseMethodPartialOverload1Method(info); 1770 staticPromiseMethodPartialOverload1Method(info);
1669 return; 1771 return;
1670 } 1772 }
1671 break; 1773 break;
1672 case 1: 1774 case 1:
1673 break; 1775 break;
1674 } 1776 }
1675 ASSERT(staticPromiseMethodPartialOverloadMethodForPartialInterface); 1777 ASSERT(staticPromiseMethodPartialOverloadMethodForPartialInterface);
1676 (staticPromiseMethodPartialOverloadMethodForPartialInterface)(info); 1778 (staticPromiseMethodPartialOverloadMethodForPartialInterface)(info);
1677 } 1779 }
1678 1780
1679 static void staticPromiseMethodPartialOverloadMethodCallback(const v8::FunctionC allbackInfo<v8::Value>& info) 1781 static void staticPromiseMethodPartialOverloadMethodCallback(const v8::FunctionC allbackInfo<v8::Value>& info)
1680 { 1782 {
1681 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 1783 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1682 TestInterfaceImplementationV8Internal::staticPromiseMethodPartialOverloadMet hod(info); 1784 TestInterfaceImplementationV8Internal::staticPromiseMethodPartialOverloadMet hod(info);
1683 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1785 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1684 } 1786 }
1685 1787
1686 static void partial2VoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 1788 static void partial2VoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
1687 { 1789 {
1688 ExceptionState exceptionState(ExceptionState::ExecutionContext, "partial2Voi dMethod", "TestInterface", info.Holder(), info.GetIsolate()); 1790 ExceptionState exceptionState(ExceptionState::ExecutionContext, "partial2Voi dMethod", "TestInterface", info.Holder(), info.GetIsolate());
1689 switch (std::min(1, info.Length())) { 1791 switch (std::min(1, info.Length())) {
1690 case 0: 1792 case 0:
1691 if (true) { 1793 if (true) {
1794 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecut ionContext(info.GetIsolate()), UseCounter::V8TestInterface_Partial2VoidMethod_Me thod);
1692 partial2VoidMethod1Method(info); 1795 partial2VoidMethod1Method(info);
1693 return; 1796 return;
1694 } 1797 }
1695 break; 1798 break;
1696 case 1: 1799 case 1:
1697 break; 1800 break;
1698 } 1801 }
1699 ASSERT(partial2VoidMethodMethodForPartialInterface); 1802 ASSERT(partial2VoidMethodMethodForPartialInterface);
1700 (partial2VoidMethodMethodForPartialInterface)(info); 1803 (partial2VoidMethodMethodForPartialInterface)(info);
1701 } 1804 }
1702 1805
1703 static void partial2VoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info) 1806 static void partial2VoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info)
1704 { 1807 {
1705 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 1808 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1706 TestInterfaceImplementationV8Internal::partial2VoidMethodMethod(info); 1809 TestInterfaceImplementationV8Internal::partial2VoidMethodMethod(info);
1707 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1810 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1708 } 1811 }
1709 1812
1710 static void partial2StaticVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info) 1813 static void partial2StaticVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info)
1711 { 1814 {
1712 ExceptionState exceptionState(ExceptionState::ExecutionContext, "partial2Sta ticVoidMethod", "TestInterface", info.Holder(), info.GetIsolate()); 1815 ExceptionState exceptionState(ExceptionState::ExecutionContext, "partial2Sta ticVoidMethod", "TestInterface", info.Holder(), info.GetIsolate());
1713 switch (std::min(1, info.Length())) { 1816 switch (std::min(1, info.Length())) {
1714 case 0: 1817 case 0:
1715 if (true) { 1818 if (true) {
1819 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecut ionContext(info.GetIsolate()), UseCounter::V8TestInterface_Partial2StaticVoidMet hod_Method);
1716 partial2StaticVoidMethod1Method(info); 1820 partial2StaticVoidMethod1Method(info);
1717 return; 1821 return;
1718 } 1822 }
1719 break; 1823 break;
1720 case 1: 1824 case 1:
1721 break; 1825 break;
1722 } 1826 }
1723 ASSERT(partial2StaticVoidMethodMethodForPartialInterface); 1827 ASSERT(partial2StaticVoidMethodMethodForPartialInterface);
1724 (partial2StaticVoidMethodMethodForPartialInterface)(info); 1828 (partial2StaticVoidMethodMethodForPartialInterface)(info);
1725 } 1829 }
1726 1830
1727 static void partial2StaticVoidMethodMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info) 1831 static void partial2StaticVoidMethodMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info)
1728 { 1832 {
1729 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 1833 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1730 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethod(info); 1834 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethod(info);
1731 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1835 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1732 } 1836 }
1733 1837
1734 static void toStringMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 1838 static void toStringMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
1735 { 1839 {
1736 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 1840 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1737 v8SetReturnValueString(info, impl->toString(), info.GetIsolate()); 1841 v8SetReturnValueString(info, impl->toString(), info.GetIsolate());
1738 } 1842 }
1739 1843
1740 static void toStringMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in fo) 1844 static void toStringMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in fo)
1741 { 1845 {
1742 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 1846 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1847 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_ToString_Method);
1743 TestInterfaceImplementationV8Internal::toStringMethod(info); 1848 TestInterfaceImplementationV8Internal::toStringMethod(info);
1744 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1849 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1745 } 1850 }
1746 1851
1747 static void iteratorMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 1852 static void iteratorMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
1748 { 1853 {
1749 ExceptionState exceptionState(ExceptionState::ExecutionContext, "iterator", "TestInterface", info.Holder(), info.GetIsolate()); 1854 ExceptionState exceptionState(ExceptionState::ExecutionContext, "iterator", "TestInterface", info.Holder(), info.GetIsolate());
1750 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 1855 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1751 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); 1856 ScriptState* scriptState = ScriptState::current(info.GetIsolate());
1752 RawPtr<Iterator> result = impl->iterator(scriptState, exceptionState); 1857 RawPtr<Iterator> result = impl->iterator(scriptState, exceptionState);
1753 if (exceptionState.hadException()) { 1858 if (exceptionState.hadException()) {
1754 exceptionState.throwIfNeeded(); 1859 exceptionState.throwIfNeeded();
1755 return; 1860 return;
1756 } 1861 }
1757 v8SetReturnValue(info, result.release()); 1862 v8SetReturnValue(info, result.release());
1758 } 1863 }
1759 1864
1760 static void iteratorMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in fo) 1865 static void iteratorMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in fo)
1761 { 1866 {
1762 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 1867 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1868 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestInterface_Iterator_Method);
1763 TestInterfaceImplementationV8Internal::iteratorMethod(info); 1869 TestInterfaceImplementationV8Internal::iteratorMethod(info);
1764 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1870 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1765 } 1871 }
1766 1872
1767 static void indexedPropertyGetter(uint32_t index, const v8::PropertyCallbackInfo <v8::Value>& info) 1873 static void indexedPropertyGetter(uint32_t index, const v8::PropertyCallbackInfo <v8::Value>& info)
1768 { 1874 {
1769 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 1875 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1770 String result = impl->anonymousIndexedGetter(index); 1876 String result = impl->anonymousIndexedGetter(index);
1771 if (result.isNull()) 1877 if (result.isNull())
1772 return; 1878 return;
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
1936 if (referencedName) { 2042 if (referencedName) {
1937 if (!DOMDataStore::containsWrapper(referencedName, isolate)) 2043 if (!DOMDataStore::containsWrapper(referencedName, isolate))
1938 referencedName->wrap(creationContext, isolate); 2044 referencedName->wrap(creationContext, isolate);
1939 DOMDataStore::setWrapperReference(wrapper, referencedName, isolate); 2045 DOMDataStore::setWrapperReference(wrapper, referencedName, isolate);
1940 } 2046 }
1941 setObjectGroup(isolate, scriptWrappable, wrapper); 2047 setObjectGroup(isolate, scriptWrappable, wrapper);
1942 } 2048 }
1943 2049
1944 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceAttribute s[] = { 2050 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceAttribute s[] = {
1945 {"testInterfaceAttribute", TestInterfaceImplementationV8Internal::testInterf aceAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::test InterfaceAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessContro l>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguratio n::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, 2051 {"testInterfaceAttribute", TestInterfaceImplementationV8Internal::testInterf aceAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::test InterfaceAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessContro l>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguratio n::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
1946 {"testInterfaceConstructorAttribute", TestInterfaceImplementationV8Internal: :TestInterfaceImplementationConstructorGetter, TestInterfaceImplementationV8Inte rnal::TestInterfaceImplementationForceSetAttributeOnThisCallback, 0, 0, const_ca st<WrapperTypeInfo*>(&V8TestInterface::wrapperTypeInfo), static_cast<v8::AccessC ontrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMCon figuration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, 2052 {"testInterfaceConstructorAttribute", TestInterfaceImplementationV8Internal: :testInterfaceConstructorAttributeConstructorGetterCallback, TestInterfaceImplem entationV8Internal::TestInterfaceImplementationForceSetAttributeOnThisCallback, 0, 0, const_cast<WrapperTypeInfo*>(&V8TestInterface::wrapperTypeInfo), static_ca st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontE num), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
1947 {"doubleAttribute", TestInterfaceImplementationV8Internal::doubleAttributeAt tributeGetterCallback, TestInterfaceImplementationV8Internal::doubleAttributeAtt ributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stat ic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScript s, V8DOMConfiguration::OnInstance}, 2053 {"doubleAttribute", TestInterfaceImplementationV8Internal::doubleAttributeAt tributeGetterCallback, TestInterfaceImplementationV8Internal::doubleAttributeAtt ributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stat ic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScript s, V8DOMConfiguration::OnInstance},
1948 {"floatAttribute", TestInterfaceImplementationV8Internal::floatAttributeAttr ibuteGetterCallback, TestInterfaceImplementationV8Internal::floatAttributeAttrib uteSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_ cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, 2054 {"floatAttribute", TestInterfaceImplementationV8Internal::floatAttributeAttr ibuteGetterCallback, TestInterfaceImplementationV8Internal::floatAttributeAttrib uteSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_ cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
1949 {"unrestrictedDoubleAttribute", TestInterfaceImplementationV8Internal::unres trictedDoubleAttributeAttributeGetterCallback, TestInterfaceImplementationV8Inte rnal::unrestrictedDoubleAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v 8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8 DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, 2055 {"unrestrictedDoubleAttribute", TestInterfaceImplementationV8Internal::unres trictedDoubleAttributeAttributeGetterCallback, TestInterfaceImplementationV8Inte rnal::unrestrictedDoubleAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v 8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8 DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
1950 {"unrestrictedFloatAttribute", TestInterfaceImplementationV8Internal::unrest rictedFloatAttributeAttributeGetterCallback, TestInterfaceImplementationV8Intern al::unrestrictedFloatAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8:: AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOM Configuration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, 2056 {"unrestrictedFloatAttribute", TestInterfaceImplementationV8Internal::unrest rictedFloatAttributeAttributeGetterCallback, TestInterfaceImplementationV8Intern al::unrestrictedFloatAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8:: AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOM Configuration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
1951 {"testEnumAttribute", TestInterfaceImplementationV8Internal::testEnumAttribu teAttributeGetterCallback, TestInterfaceImplementationV8Internal::testEnumAttrib uteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT) , static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAll Scripts, V8DOMConfiguration::OnInstance}, 2057 {"testEnumAttribute", TestInterfaceImplementationV8Internal::testEnumAttribu teAttributeGetterCallback, TestInterfaceImplementationV8Internal::testEnumAttrib uteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT) , static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAll Scripts, V8DOMConfiguration::OnInstance},
1952 {"alwaysExposedAttribute", TestInterfaceImplementationV8Internal::alwaysExpo sedAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::alwa ysExposedAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessContro l>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguratio n::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, 2058 {"alwaysExposedAttribute", TestInterfaceImplementationV8Internal::alwaysExpo sedAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::alwa ysExposedAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessContro l>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguratio n::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
1953 {"implementsReadonlyStringAttribute", TestInterfaceImplementationV8Internal: :implementsReadonlyStringAttributeAttributeGetterCallback, 0, 0, 0, 0, static_ca st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None) , V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, 2059 {"implementsReadonlyStringAttribute", TestInterfaceImplementationV8Internal: :implementsReadonlyStringAttributeAttributeGetterCallback, 0, 0, 0, 0, static_ca st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None) , V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
1954 {"implementsStringAttribute", TestInterfaceImplementationV8Internal::impleme ntsStringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal ::implementsStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Acc essControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMCon figuration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, 2060 {"implementsStringAttribute", TestInterfaceImplementationV8Internal::impleme ntsStringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal ::implementsStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Acc essControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMCon figuration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
1955 {"implementsNodeAttribute", TestInterfaceImplementationV8Internal::implement sNodeAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::im plementsNodeAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCon trol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigura tion::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, 2061 {"implementsNodeAttribute", TestInterfaceImplementationV8Internal::implement sNodeAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::im plementsNodeAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCon trol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigura tion::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
1956 {"implementsEventHandlerAttribute", TestInterfaceImplementationV8Internal::i mplementsEventHandlerAttributeAttributeGetterCallback, TestInterfaceImplementati onV8Internal::implementsEventHandlerAttributeAttributeSetterCallback, 0, 0, 0, s tatic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v 8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstanc e}, 2062 {"implementsEventHandlerAttribute", TestInterfaceImplementationV8Internal::i mplementsEventHandlerAttributeAttributeGetterCallback, TestInterfaceImplementati onV8Internal::implementsEventHandlerAttributeAttributeSetterCallback, 0, 0, 0, s tatic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v 8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstanc e},
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
2353 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void ( *method)(const v8::FunctionCallbackInfo<v8::Value>&)) 2459 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void ( *method)(const v8::FunctionCallbackInfo<v8::Value>&))
2354 { 2460 {
2355 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt erface = method; 2461 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt erface = method;
2356 } 2462 }
2357 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface( void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) 2463 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface( void (*method)(const v8::FunctionCallbackInfo<v8::Value>&))
2358 { 2464 {
2359 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart ialInterface = method; 2465 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart ialInterface = method;
2360 } 2466 }
2361 } // namespace blink 2467 } // namespace blink
2362 #endif // ENABLE(CONDITION) 2468 #endif // ENABLE(CONDITION)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698