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

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

Issue 447523003: Move most DOM attributes to prototype chains Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
6 6
7 #include "config.h" 7 #include "config.h"
8 #include "V8TestObject.h" 8 #include "V8TestObject.h"
9 9
10 #include "bindings/core/v8/BindingSecurity.h" 10 #include "bindings/core/v8/BindingSecurity.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 } 90 }
91 91
92 static void MEASURED_CONSTANTConstantGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 92 static void MEASURED_CONSTANTConstantGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
93 { 93 {
94 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 94 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
95 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::Constant); 95 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::Constant);
96 v8SetReturnValueInt(info, 1); 96 v8SetReturnValueInt(info, 1);
97 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 97 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
98 } 98 }
99 99
100 static void stringifierAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info) 100 static void stringifierAttributeAttributeGetter(const v8::FunctionCallbackInfo<v 8::Value>& info)
101 { 101 {
102 v8::Local<v8::Object> holder = info.Holder(); 102 v8::Local<v8::Object> holder = info.Holder();
103 TestObject* impl = V8TestObject::toImpl(holder); 103 TestObject* impl = V8TestObject::toImpl(holder);
104 v8SetReturnValueString(info, impl->stringifierAttribute(), info.GetIsolate() ); 104 v8SetReturnValueString(info, impl->stringifierAttribute(), info.GetIsolate() );
105 } 105 }
106 106
107 static void stringifierAttributeAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info) 107 static void stringifierAttributeAttributeGetterCallback(const v8::FunctionCallba ckInfo<v8::Value>& info)
108 { 108 {
109 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 109 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
110 TestObjectV8Internal::stringifierAttributeAttributeGetter(info); 110 TestObjectV8Internal::stringifierAttributeAttributeGetter(info);
111 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 111 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
112 } 112 }
113 113
114 static void stringifierAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& info) 114 static void stringifierAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::FunctionCallbackInfo<v8::Value>& info)
115 { 115 {
116 v8::Local<v8::Object> holder = info.Holder(); 116 v8::Local<v8::Object> holder = info.Holder();
117 TestObject* impl = V8TestObject::toImpl(holder); 117 TestObject* impl = V8TestObject::toImpl(holder);
118 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 118 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
119 impl->setStringifierAttribute(cppValue); 119 impl->setStringifierAttribute(cppValue);
120 } 120 }
121 121
122 static void stringifierAttributeAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 122 static void stringifierAttributeAttributeSetterCallback(const v8::FunctionCallba ckInfo<v8::Value>& info)
123 { 123 {
124 v8::Local<v8::Value> v8Value = info[0];
124 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 125 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
125 TestObjectV8Internal::stringifierAttributeAttributeSetter(v8Value, info); 126 TestObjectV8Internal::stringifierAttributeAttributeSetter(v8Value, info);
126 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 127 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
127 } 128 }
128 129
129 static void readonlyStringAttributeAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info) 130 static void readonlyStringAttributeAttributeGetter(const v8::FunctionCallbackInf o<v8::Value>& info)
130 { 131 {
131 v8::Local<v8::Object> holder = info.Holder(); 132 v8::Local<v8::Object> holder = info.Holder();
132 TestObject* impl = V8TestObject::toImpl(holder); 133 TestObject* impl = V8TestObject::toImpl(holder);
133 v8SetReturnValueString(info, impl->readonlyStringAttribute(), info.GetIsolat e()); 134 v8SetReturnValueString(info, impl->readonlyStringAttribute(), info.GetIsolat e());
134 } 135 }
135 136
136 static void readonlyStringAttributeAttributeGetterCallback(v8::Local<v8::String> , const v8::PropertyCallbackInfo<v8::Value>& info) 137 static void readonlyStringAttributeAttributeGetterCallback(const v8::FunctionCal lbackInfo<v8::Value>& info)
137 { 138 {
138 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 139 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
139 TestObjectV8Internal::readonlyStringAttributeAttributeGetter(info); 140 TestObjectV8Internal::readonlyStringAttributeAttributeGetter(info);
140 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 141 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
141 } 142 }
142 143
143 static void readonlyTestInterfaceEmptyAttributeAttributeGetter(const v8::Propert yCallbackInfo<v8::Value>& info) 144 static void readonlyTestInterfaceEmptyAttributeAttributeGetter(const v8::Functio nCallbackInfo<v8::Value>& info)
144 { 145 {
145 v8::Local<v8::Object> holder = info.Holder(); 146 v8::Local<v8::Object> holder = info.Holder();
146 TestObject* impl = V8TestObject::toImpl(holder); 147 TestObject* impl = V8TestObject::toImpl(holder);
147 RefPtr<TestInterfaceEmpty> cppValue(impl->readonlyTestInterfaceEmptyAttribut e()); 148 RefPtr<TestInterfaceEmpty> cppValue(impl->readonlyTestInterfaceEmptyAttribut e());
148 if (cppValue && DOMDataStore::setReturnValue(info.GetReturnValue(), cppValue .get())) 149 if (cppValue && DOMDataStore::setReturnValue(info.GetReturnValue(), cppValue .get()))
149 return; 150 return;
150 v8::Local<v8::Value> wrapper = toV8(cppValue.get(), holder, info.GetIsolate( )); 151 v8::Local<v8::Value> wrapper = toV8(cppValue.get(), holder, info.GetIsolate( ));
151 if (!wrapper.IsEmpty()) { 152 if (!wrapper.IsEmpty()) {
152 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString( info.GetIsolate(), "readonlyTestInterfaceEmptyAttribute"), wrapper); 153 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString( info.GetIsolate(), "readonlyTestInterfaceEmptyAttribute"), wrapper);
153 v8SetReturnValue(info, wrapper); 154 v8SetReturnValue(info, wrapper);
154 } 155 }
155 } 156 }
156 157
157 static void readonlyTestInterfaceEmptyAttributeAttributeGetterCallback(v8::Local <v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 158 static void readonlyTestInterfaceEmptyAttributeAttributeGetterCallback(const v8: :FunctionCallbackInfo<v8::Value>& info)
158 { 159 {
159 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 160 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
160 TestObjectV8Internal::readonlyTestInterfaceEmptyAttributeAttributeGetter(inf o); 161 TestObjectV8Internal::readonlyTestInterfaceEmptyAttributeAttributeGetter(inf o);
161 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 162 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
162 } 163 }
163 164
164 static void readonlyLongAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info) 165 static void readonlyLongAttributeAttributeGetter(const v8::FunctionCallbackInfo< v8::Value>& info)
165 { 166 {
166 v8::Local<v8::Object> holder = info.Holder(); 167 v8::Local<v8::Object> holder = info.Holder();
167 TestObject* impl = V8TestObject::toImpl(holder); 168 TestObject* impl = V8TestObject::toImpl(holder);
168 v8SetReturnValueInt(info, impl->readonlyLongAttribute()); 169 v8SetReturnValueInt(info, impl->readonlyLongAttribute());
169 } 170 }
170 171
171 static void readonlyLongAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 172 static void readonlyLongAttributeAttributeGetterCallback(const v8::FunctionCallb ackInfo<v8::Value>& info)
172 { 173 {
173 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 174 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
174 TestObjectV8Internal::readonlyLongAttributeAttributeGetter(info); 175 TestObjectV8Internal::readonlyLongAttributeAttributeGetter(info);
175 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 176 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
176 } 177 }
177 178
178 static void dateAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu e>& info) 179 static void dateAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Valu e>& info)
179 { 180 {
180 v8::Local<v8::Object> holder = info.Holder(); 181 v8::Local<v8::Object> holder = info.Holder();
181 TestObject* impl = V8TestObject::toImpl(holder); 182 TestObject* impl = V8TestObject::toImpl(holder);
182 v8SetReturnValue(info, v8DateOrNaN(impl->dateAttribute(), info.GetIsolate()) ); 183 v8SetReturnValue(info, v8DateOrNaN(impl->dateAttribute(), info.GetIsolate()) );
183 } 184 }
184 185
185 static void dateAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8 ::PropertyCallbackInfo<v8::Value>& info) 186 static void dateAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo< v8::Value>& info)
186 { 187 {
187 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 188 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
188 TestObjectV8Internal::dateAttributeAttributeGetter(info); 189 TestObjectV8Internal::dateAttributeAttributeGetter(info);
189 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 190 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
190 } 191 }
191 192
192 static void dateAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info) 193 static void dateAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :FunctionCallbackInfo<v8::Value>& info)
193 { 194 {
194 v8::Local<v8::Object> holder = info.Holder(); 195 v8::Local<v8::Object> holder = info.Holder();
195 TestObject* impl = V8TestObject::toImpl(holder); 196 TestObject* impl = V8TestObject::toImpl(holder);
196 double cppValue = toCoreDate(v8Value); 197 double cppValue = toCoreDate(v8Value);
197 impl->setDateAttribute(cppValue); 198 impl->setDateAttribute(cppValue);
198 } 199 }
199 200
200 static void dateAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 201 static void dateAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo< v8::Value>& info)
201 { 202 {
203 v8::Local<v8::Value> v8Value = info[0];
202 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 204 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
203 TestObjectV8Internal::dateAttributeAttributeSetter(v8Value, info); 205 TestObjectV8Internal::dateAttributeAttributeSetter(v8Value, info);
204 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 206 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
205 } 207 }
206 208
207 static void stringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va lue>& info) 209 static void stringAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Va lue>& info)
208 { 210 {
209 v8::Local<v8::Object> holder = info.Holder(); 211 v8::Local<v8::Object> holder = info.Holder();
210 TestObject* impl = V8TestObject::toImpl(holder); 212 TestObject* impl = V8TestObject::toImpl(holder);
211 v8SetReturnValueString(info, impl->stringAttribute(), info.GetIsolate()); 213 v8SetReturnValueString(info, impl->stringAttribute(), info.GetIsolate());
212 } 214 }
213 215
214 static void stringAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 216 static void stringAttributeAttributeGetterCallback(const v8::FunctionCallbackInf o<v8::Value>& info)
215 { 217 {
216 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 218 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
217 TestObjectV8Internal::stringAttributeAttributeGetter(info); 219 TestObjectV8Internal::stringAttributeAttributeGetter(info);
218 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 220 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
219 } 221 }
220 222
221 static void stringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v 8::PropertyCallbackInfo<void>& info) 223 static void stringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v 8::FunctionCallbackInfo<v8::Value>& info)
222 { 224 {
223 v8::Local<v8::Object> holder = info.Holder(); 225 v8::Local<v8::Object> holder = info.Holder();
224 TestObject* impl = V8TestObject::toImpl(holder); 226 TestObject* impl = V8TestObject::toImpl(holder);
225 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 227 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
226 impl->setStringAttribute(cppValue); 228 impl->setStringAttribute(cppValue);
227 } 229 }
228 230
229 static void stringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 231 static void stringAttributeAttributeSetterCallback(const v8::FunctionCallbackInf o<v8::Value>& info)
230 { 232 {
233 v8::Local<v8::Value> v8Value = info[0];
231 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 234 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
232 TestObjectV8Internal::stringAttributeAttributeSetter(v8Value, info); 235 TestObjectV8Internal::stringAttributeAttributeSetter(v8Value, info);
233 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 236 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
234 } 237 }
235 238
236 static void byteStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info) 239 static void byteStringAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8 ::Value>& info)
237 { 240 {
238 v8::Local<v8::Object> holder = info.Holder(); 241 v8::Local<v8::Object> holder = info.Holder();
239 TestObject* impl = V8TestObject::toImpl(holder); 242 TestObject* impl = V8TestObject::toImpl(holder);
240 v8SetReturnValueString(info, impl->byteStringAttribute(), info.GetIsolate()) ; 243 v8SetReturnValueString(info, impl->byteStringAttribute(), info.GetIsolate()) ;
241 } 244 }
242 245
243 static void byteStringAttributeAttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info) 246 static void byteStringAttributeAttributeGetterCallback(const v8::FunctionCallbac kInfo<v8::Value>& info)
244 { 247 {
245 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 248 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
246 TestObjectV8Internal::byteStringAttributeAttributeGetter(info); 249 TestObjectV8Internal::byteStringAttributeAttributeGetter(info);
247 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 250 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
248 } 251 }
249 252
250 static void byteStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info) 253 static void byteStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::FunctionCallbackInfo<v8::Value>& info)
251 { 254 {
252 v8::Local<v8::Object> holder = info.Holder(); 255 v8::Local<v8::Object> holder = info.Holder();
253 ExceptionState exceptionState(ExceptionState::SetterContext, "byteStringAttr ibute", "TestObject", holder, info.GetIsolate()); 256 ExceptionState exceptionState(ExceptionState::SetterContext, "byteStringAttr ibute", "TestObject", holder, info.GetIsolate());
254 TestObject* impl = V8TestObject::toImpl(holder); 257 TestObject* impl = V8TestObject::toImpl(holder);
255 TONATIVE_VOID_EXCEPTIONSTATE(V8StringResource<>, cppValue, toByteString(v8Va lue, exceptionState), exceptionState); 258 TONATIVE_VOID_EXCEPTIONSTATE(V8StringResource<>, cppValue, toByteString(v8Va lue, exceptionState), exceptionState);
256 impl->setByteStringAttribute(cppValue); 259 impl->setByteStringAttribute(cppValue);
257 } 260 }
258 261
259 static void byteStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 262 static void byteStringAttributeAttributeSetterCallback(const v8::FunctionCallbac kInfo<v8::Value>& info)
260 { 263 {
264 v8::Local<v8::Value> v8Value = info[0];
261 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 265 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
262 TestObjectV8Internal::byteStringAttributeAttributeSetter(v8Value, info); 266 TestObjectV8Internal::byteStringAttributeAttributeSetter(v8Value, info);
263 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 267 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
264 } 268 }
265 269
266 static void usvStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8: :Value>& info) 270 static void usvStringAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8: :Value>& info)
267 { 271 {
268 v8::Local<v8::Object> holder = info.Holder(); 272 v8::Local<v8::Object> holder = info.Holder();
269 TestObject* impl = V8TestObject::toImpl(holder); 273 TestObject* impl = V8TestObject::toImpl(holder);
270 v8SetReturnValueString(info, impl->usvStringAttribute(), info.GetIsolate()); 274 v8SetReturnValueString(info, impl->usvStringAttribute(), info.GetIsolate());
271 } 275 }
272 276
273 static void usvStringAttributeAttributeGetterCallback(v8::Local<v8::String>, con st v8::PropertyCallbackInfo<v8::Value>& info) 277 static void usvStringAttributeAttributeGetterCallback(const v8::FunctionCallback Info<v8::Value>& info)
274 { 278 {
275 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 279 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
276 TestObjectV8Internal::usvStringAttributeAttributeGetter(info); 280 TestObjectV8Internal::usvStringAttributeAttributeGetter(info);
277 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 281 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
278 } 282 }
279 283
280 static void usvStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons t v8::PropertyCallbackInfo<void>& info) 284 static void usvStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons t v8::FunctionCallbackInfo<v8::Value>& info)
281 { 285 {
282 v8::Local<v8::Object> holder = info.Holder(); 286 v8::Local<v8::Object> holder = info.Holder();
283 ExceptionState exceptionState(ExceptionState::SetterContext, "usvStringAttri bute", "TestObject", holder, info.GetIsolate()); 287 ExceptionState exceptionState(ExceptionState::SetterContext, "usvStringAttri bute", "TestObject", holder, info.GetIsolate());
284 TestObject* impl = V8TestObject::toImpl(holder); 288 TestObject* impl = V8TestObject::toImpl(holder);
285 TONATIVE_VOID_EXCEPTIONSTATE(V8StringResource<>, cppValue, toUSVString(v8Val ue, exceptionState), exceptionState); 289 TONATIVE_VOID_EXCEPTIONSTATE(V8StringResource<>, cppValue, toUSVString(v8Val ue, exceptionState), exceptionState);
286 impl->setUsvStringAttribute(cppValue); 290 impl->setUsvStringAttribute(cppValue);
287 } 291 }
288 292
289 static void usvStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8: :Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 293 static void usvStringAttributeAttributeSetterCallback(const v8::FunctionCallback Info<v8::Value>& info)
290 { 294 {
295 v8::Local<v8::Value> v8Value = info[0];
291 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 296 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
292 TestObjectV8Internal::usvStringAttributeAttributeSetter(v8Value, info); 297 TestObjectV8Internal::usvStringAttributeAttributeSetter(v8Value, info);
293 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 298 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
294 } 299 }
295 300
296 static void domTimeStampAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info) 301 static void domTimeStampAttributeAttributeGetter(const v8::FunctionCallbackInfo< v8::Value>& info)
297 { 302 {
298 v8::Local<v8::Object> holder = info.Holder(); 303 v8::Local<v8::Object> holder = info.Holder();
299 TestObject* impl = V8TestObject::toImpl(holder); 304 TestObject* impl = V8TestObject::toImpl(holder);
300 v8SetReturnValue(info, static_cast<double>(impl->domTimeStampAttribute())); 305 v8SetReturnValue(info, static_cast<double>(impl->domTimeStampAttribute()));
301 } 306 }
302 307
303 static void domTimeStampAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 308 static void domTimeStampAttributeAttributeGetterCallback(const v8::FunctionCallb ackInfo<v8::Value>& info)
304 { 309 {
305 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 310 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
306 TestObjectV8Internal::domTimeStampAttributeAttributeGetter(info); 311 TestObjectV8Internal::domTimeStampAttributeAttributeGetter(info);
307 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 312 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
308 } 313 }
309 314
310 static void domTimeStampAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info) 315 static void domTimeStampAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::FunctionCallbackInfo<v8::Value>& info)
311 { 316 {
312 v8::Local<v8::Object> holder = info.Holder(); 317 v8::Local<v8::Object> holder = info.Holder();
313 ExceptionState exceptionState(ExceptionState::SetterContext, "domTimeStampAt tribute", "TestObject", holder, info.GetIsolate()); 318 ExceptionState exceptionState(ExceptionState::SetterContext, "domTimeStampAt tribute", "TestObject", holder, info.GetIsolate());
314 TestObject* impl = V8TestObject::toImpl(holder); 319 TestObject* impl = V8TestObject::toImpl(holder);
315 TONATIVE_VOID_EXCEPTIONSTATE(unsigned long long, cppValue, toUInt64(v8Value, exceptionState), exceptionState); 320 TONATIVE_VOID_EXCEPTIONSTATE(unsigned long long, cppValue, toUInt64(v8Value, exceptionState), exceptionState);
316 impl->setDomTimeStampAttribute(cppValue); 321 impl->setDomTimeStampAttribute(cppValue);
317 } 322 }
318 323
319 static void domTimeStampAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 324 static void domTimeStampAttributeAttributeSetterCallback(const v8::FunctionCallb ackInfo<v8::Value>& info)
320 { 325 {
326 v8::Local<v8::Value> v8Value = info[0];
321 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 327 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
322 TestObjectV8Internal::domTimeStampAttributeAttributeSetter(v8Value, info); 328 TestObjectV8Internal::domTimeStampAttributeAttributeSetter(v8Value, info);
323 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 329 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
324 } 330 }
325 331
326 static void booleanAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info) 332 static void booleanAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::V alue>& info)
327 { 333 {
328 v8::Local<v8::Object> holder = info.Holder(); 334 v8::Local<v8::Object> holder = info.Holder();
329 TestObject* impl = V8TestObject::toImpl(holder); 335 TestObject* impl = V8TestObject::toImpl(holder);
330 v8SetReturnValueBool(info, impl->booleanAttribute()); 336 v8SetReturnValueBool(info, impl->booleanAttribute());
331 } 337 }
332 338
333 static void booleanAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 339 static void booleanAttributeAttributeGetterCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
334 { 340 {
335 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 341 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
336 TestObjectV8Internal::booleanAttributeAttributeGetter(info); 342 TestObjectV8Internal::booleanAttributeAttributeGetter(info);
337 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 343 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
338 } 344 }
339 345
340 static void booleanAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 346 static void booleanAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
341 { 347 {
342 v8::Local<v8::Object> holder = info.Holder(); 348 v8::Local<v8::Object> holder = info.Holder();
343 TestObject* impl = V8TestObject::toImpl(holder); 349 TestObject* impl = V8TestObject::toImpl(holder);
344 bool cppValue = v8Value->BooleanValue(); 350 bool cppValue = v8Value->BooleanValue();
345 impl->setBooleanAttribute(cppValue); 351 impl->setBooleanAttribute(cppValue);
346 } 352 }
347 353
348 static void booleanAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::L ocal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 354 static void booleanAttributeAttributeSetterCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
349 { 355 {
356 v8::Local<v8::Value> v8Value = info[0];
350 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 357 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
351 TestObjectV8Internal::booleanAttributeAttributeSetter(v8Value, info); 358 TestObjectV8Internal::booleanAttributeAttributeSetter(v8Value, info);
352 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 359 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
353 } 360 }
354 361
355 static void byteAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu e>& info) 362 static void byteAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Valu e>& info)
356 { 363 {
357 v8::Local<v8::Object> holder = info.Holder(); 364 v8::Local<v8::Object> holder = info.Holder();
358 TestObject* impl = V8TestObject::toImpl(holder); 365 TestObject* impl = V8TestObject::toImpl(holder);
359 v8SetReturnValueInt(info, impl->byteAttribute()); 366 v8SetReturnValueInt(info, impl->byteAttribute());
360 } 367 }
361 368
362 static void byteAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8 ::PropertyCallbackInfo<v8::Value>& info) 369 static void byteAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo< v8::Value>& info)
363 { 370 {
364 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 371 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
365 TestObjectV8Internal::byteAttributeAttributeGetter(info); 372 TestObjectV8Internal::byteAttributeAttributeGetter(info);
366 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 373 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
367 } 374 }
368 375
369 static void byteAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info) 376 static void byteAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :FunctionCallbackInfo<v8::Value>& info)
370 { 377 {
371 v8::Local<v8::Object> holder = info.Holder(); 378 v8::Local<v8::Object> holder = info.Holder();
372 ExceptionState exceptionState(ExceptionState::SetterContext, "byteAttribute" , "TestObject", holder, info.GetIsolate()); 379 ExceptionState exceptionState(ExceptionState::SetterContext, "byteAttribute" , "TestObject", holder, info.GetIsolate());
373 TestObject* impl = V8TestObject::toImpl(holder); 380 TestObject* impl = V8TestObject::toImpl(holder);
374 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt8(v8Value, exceptionState), exceptionState); 381 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt8(v8Value, exceptionState), exceptionState);
375 impl->setByteAttribute(cppValue); 382 impl->setByteAttribute(cppValue);
376 } 383 }
377 384
378 static void byteAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 385 static void byteAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo< v8::Value>& info)
379 { 386 {
387 v8::Local<v8::Value> v8Value = info[0];
380 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 388 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
381 TestObjectV8Internal::byteAttributeAttributeSetter(v8Value, info); 389 TestObjectV8Internal::byteAttributeAttributeSetter(v8Value, info);
382 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 390 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
383 } 391 }
384 392
385 static void doubleAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va lue>& info) 393 static void doubleAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Va lue>& info)
386 { 394 {
387 v8::Local<v8::Object> holder = info.Holder(); 395 v8::Local<v8::Object> holder = info.Holder();
388 TestObject* impl = V8TestObject::toImpl(holder); 396 TestObject* impl = V8TestObject::toImpl(holder);
389 v8SetReturnValue(info, impl->doubleAttribute()); 397 v8SetReturnValue(info, impl->doubleAttribute());
390 } 398 }
391 399
392 static void doubleAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 400 static void doubleAttributeAttributeGetterCallback(const v8::FunctionCallbackInf o<v8::Value>& info)
393 { 401 {
394 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 402 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
395 TestObjectV8Internal::doubleAttributeAttributeGetter(info); 403 TestObjectV8Internal::doubleAttributeAttributeGetter(info);
396 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 404 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
397 } 405 }
398 406
399 static void doubleAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v 8::PropertyCallbackInfo<void>& info) 407 static void doubleAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v 8::FunctionCallbackInfo<v8::Value>& info)
400 { 408 {
401 v8::Local<v8::Object> holder = info.Holder(); 409 v8::Local<v8::Object> holder = info.Holder();
402 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleAttribut e", "TestObject", holder, info.GetIsolate()); 410 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleAttribut e", "TestObject", holder, info.GetIsolate());
403 TestObject* impl = V8TestObject::toImpl(holder); 411 TestObject* impl = V8TestObject::toImpl(holder);
404 TONATIVE_VOID_EXCEPTIONSTATE(double, cppValue, toDouble(v8Value, exceptionSt ate), exceptionState); 412 TONATIVE_VOID_EXCEPTIONSTATE(double, cppValue, toDouble(v8Value, exceptionSt ate), exceptionState);
405 impl->setDoubleAttribute(cppValue); 413 impl->setDoubleAttribute(cppValue);
406 } 414 }
407 415
408 static void doubleAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 416 static void doubleAttributeAttributeSetterCallback(const v8::FunctionCallbackInf o<v8::Value>& info)
409 { 417 {
418 v8::Local<v8::Value> v8Value = info[0];
410 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 419 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
411 TestObjectV8Internal::doubleAttributeAttributeSetter(v8Value, info); 420 TestObjectV8Internal::doubleAttributeAttributeSetter(v8Value, info);
412 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 421 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
413 } 422 }
414 423
415 static void floatAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val ue>& info) 424 static void floatAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Val ue>& info)
416 { 425 {
417 v8::Local<v8::Object> holder = info.Holder(); 426 v8::Local<v8::Object> holder = info.Holder();
418 TestObject* impl = V8TestObject::toImpl(holder); 427 TestObject* impl = V8TestObject::toImpl(holder);
419 v8SetReturnValue(info, impl->floatAttribute()); 428 v8SetReturnValue(info, impl->floatAttribute());
420 } 429 }
421 430
422 static void floatAttributeAttributeGetterCallback(v8::Local<v8::String>, const v 8::PropertyCallbackInfo<v8::Value>& info) 431 static void floatAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
423 { 432 {
424 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 433 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
425 TestObjectV8Internal::floatAttributeAttributeGetter(info); 434 TestObjectV8Internal::floatAttributeAttributeGetter(info);
426 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 435 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
427 } 436 }
428 437
429 static void floatAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::PropertyCallbackInfo<void>& info) 438 static void floatAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::FunctionCallbackInfo<v8::Value>& info)
430 { 439 {
431 v8::Local<v8::Object> holder = info.Holder(); 440 v8::Local<v8::Object> holder = info.Holder();
432 ExceptionState exceptionState(ExceptionState::SetterContext, "floatAttribute ", "TestObject", holder, info.GetIsolate()); 441 ExceptionState exceptionState(ExceptionState::SetterContext, "floatAttribute ", "TestObject", holder, info.GetIsolate());
433 TestObject* impl = V8TestObject::toImpl(holder); 442 TestObject* impl = V8TestObject::toImpl(holder);
434 TONATIVE_VOID_EXCEPTIONSTATE(float, cppValue, toFloat(v8Value, exceptionStat e), exceptionState); 443 TONATIVE_VOID_EXCEPTIONSTATE(float, cppValue, toFloat(v8Value, exceptionStat e), exceptionState);
435 impl->setFloatAttribute(cppValue); 444 impl->setFloatAttribute(cppValue);
436 } 445 }
437 446
438 static void floatAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 447 static void floatAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
439 { 448 {
449 v8::Local<v8::Value> v8Value = info[0];
440 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 450 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
441 TestObjectV8Internal::floatAttributeAttributeSetter(v8Value, info); 451 TestObjectV8Internal::floatAttributeAttributeSetter(v8Value, info);
442 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 452 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
443 } 453 }
444 454
445 static void longAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu e>& info) 455 static void longAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Valu e>& info)
446 { 456 {
447 v8::Local<v8::Object> holder = info.Holder(); 457 v8::Local<v8::Object> holder = info.Holder();
448 TestObject* impl = V8TestObject::toImpl(holder); 458 TestObject* impl = V8TestObject::toImpl(holder);
449 v8SetReturnValueInt(info, impl->longAttribute()); 459 v8SetReturnValueInt(info, impl->longAttribute());
450 } 460 }
451 461
452 static void longAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8 ::PropertyCallbackInfo<v8::Value>& info) 462 static void longAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo< v8::Value>& info)
453 { 463 {
454 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 464 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
455 TestObjectV8Internal::longAttributeAttributeGetter(info); 465 TestObjectV8Internal::longAttributeAttributeGetter(info);
456 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 466 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
457 } 467 }
458 468
459 static void longAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info) 469 static void longAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :FunctionCallbackInfo<v8::Value>& info)
460 { 470 {
461 v8::Local<v8::Object> holder = info.Holder(); 471 v8::Local<v8::Object> holder = info.Holder();
462 ExceptionState exceptionState(ExceptionState::SetterContext, "longAttribute" , "TestObject", holder, info.GetIsolate()); 472 ExceptionState exceptionState(ExceptionState::SetterContext, "longAttribute" , "TestObject", holder, info.GetIsolate());
463 TestObject* impl = V8TestObject::toImpl(holder); 473 TestObject* impl = V8TestObject::toImpl(holder);
464 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 474 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
465 impl->setLongAttribute(cppValue); 475 impl->setLongAttribute(cppValue);
466 } 476 }
467 477
468 static void longAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 478 static void longAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo< v8::Value>& info)
469 { 479 {
480 v8::Local<v8::Value> v8Value = info[0];
470 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 481 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
471 TestObjectV8Internal::longAttributeAttributeSetter(v8Value, info); 482 TestObjectV8Internal::longAttributeAttributeSetter(v8Value, info);
472 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 483 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
473 } 484 }
474 485
475 static void longLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8:: Value>& info) 486 static void longLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8:: Value>& info)
476 { 487 {
477 v8::Local<v8::Object> holder = info.Holder(); 488 v8::Local<v8::Object> holder = info.Holder();
478 TestObject* impl = V8TestObject::toImpl(holder); 489 TestObject* impl = V8TestObject::toImpl(holder);
479 v8SetReturnValue(info, static_cast<double>(impl->longLongAttribute())); 490 v8SetReturnValue(info, static_cast<double>(impl->longLongAttribute()));
480 } 491 }
481 492
482 static void longLongAttributeAttributeGetterCallback(v8::Local<v8::String>, cons t v8::PropertyCallbackInfo<v8::Value>& info) 493 static void longLongAttributeAttributeGetterCallback(const v8::FunctionCallbackI nfo<v8::Value>& info)
483 { 494 {
484 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 495 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
485 TestObjectV8Internal::longLongAttributeAttributeGetter(info); 496 TestObjectV8Internal::longLongAttributeAttributeGetter(info);
486 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 497 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
487 } 498 }
488 499
489 static void longLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 500 static void longLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
490 { 501 {
491 v8::Local<v8::Object> holder = info.Holder(); 502 v8::Local<v8::Object> holder = info.Holder();
492 ExceptionState exceptionState(ExceptionState::SetterContext, "longLongAttrib ute", "TestObject", holder, info.GetIsolate()); 503 ExceptionState exceptionState(ExceptionState::SetterContext, "longLongAttrib ute", "TestObject", holder, info.GetIsolate());
493 TestObject* impl = V8TestObject::toImpl(holder); 504 TestObject* impl = V8TestObject::toImpl(holder);
494 TONATIVE_VOID_EXCEPTIONSTATE(long long, cppValue, toInt64(v8Value, exception State), exceptionState); 505 TONATIVE_VOID_EXCEPTIONSTATE(long long, cppValue, toInt64(v8Value, exception State), exceptionState);
495 impl->setLongLongAttribute(cppValue); 506 impl->setLongLongAttribute(cppValue);
496 } 507 }
497 508
498 static void longLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 509 static void longLongAttributeAttributeSetterCallback(const v8::FunctionCallbackI nfo<v8::Value>& info)
499 { 510 {
511 v8::Local<v8::Value> v8Value = info[0];
500 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 512 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
501 TestObjectV8Internal::longLongAttributeAttributeSetter(v8Value, info); 513 TestObjectV8Internal::longLongAttributeAttributeSetter(v8Value, info);
502 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 514 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
503 } 515 }
504 516
505 static void octetAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val ue>& info) 517 static void octetAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Val ue>& info)
506 { 518 {
507 v8::Local<v8::Object> holder = info.Holder(); 519 v8::Local<v8::Object> holder = info.Holder();
508 TestObject* impl = V8TestObject::toImpl(holder); 520 TestObject* impl = V8TestObject::toImpl(holder);
509 v8SetReturnValueUnsigned(info, impl->octetAttribute()); 521 v8SetReturnValueUnsigned(info, impl->octetAttribute());
510 } 522 }
511 523
512 static void octetAttributeAttributeGetterCallback(v8::Local<v8::String>, const v 8::PropertyCallbackInfo<v8::Value>& info) 524 static void octetAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
513 { 525 {
514 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 526 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
515 TestObjectV8Internal::octetAttributeAttributeGetter(info); 527 TestObjectV8Internal::octetAttributeAttributeGetter(info);
516 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 528 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
517 } 529 }
518 530
519 static void octetAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::PropertyCallbackInfo<void>& info) 531 static void octetAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::FunctionCallbackInfo<v8::Value>& info)
520 { 532 {
521 v8::Local<v8::Object> holder = info.Holder(); 533 v8::Local<v8::Object> holder = info.Holder();
522 ExceptionState exceptionState(ExceptionState::SetterContext, "octetAttribute ", "TestObject", holder, info.GetIsolate()); 534 ExceptionState exceptionState(ExceptionState::SetterContext, "octetAttribute ", "TestObject", holder, info.GetIsolate());
523 TestObject* impl = V8TestObject::toImpl(holder); 535 TestObject* impl = V8TestObject::toImpl(holder);
524 TONATIVE_VOID_EXCEPTIONSTATE(unsigned, cppValue, toUInt8(v8Value, exceptionS tate), exceptionState); 536 TONATIVE_VOID_EXCEPTIONSTATE(unsigned, cppValue, toUInt8(v8Value, exceptionS tate), exceptionState);
525 impl->setOctetAttribute(cppValue); 537 impl->setOctetAttribute(cppValue);
526 } 538 }
527 539
528 static void octetAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 540 static void octetAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
529 { 541 {
542 v8::Local<v8::Value> v8Value = info[0];
530 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 543 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
531 TestObjectV8Internal::octetAttributeAttributeSetter(v8Value, info); 544 TestObjectV8Internal::octetAttributeAttributeSetter(v8Value, info);
532 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 545 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
533 } 546 }
534 547
535 static void shortAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val ue>& info) 548 static void shortAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Val ue>& info)
536 { 549 {
537 v8::Local<v8::Object> holder = info.Holder(); 550 v8::Local<v8::Object> holder = info.Holder();
538 TestObject* impl = V8TestObject::toImpl(holder); 551 TestObject* impl = V8TestObject::toImpl(holder);
539 v8SetReturnValueInt(info, impl->shortAttribute()); 552 v8SetReturnValueInt(info, impl->shortAttribute());
540 } 553 }
541 554
542 static void shortAttributeAttributeGetterCallback(v8::Local<v8::String>, const v 8::PropertyCallbackInfo<v8::Value>& info) 555 static void shortAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
543 { 556 {
544 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 557 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
545 TestObjectV8Internal::shortAttributeAttributeGetter(info); 558 TestObjectV8Internal::shortAttributeAttributeGetter(info);
546 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 559 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
547 } 560 }
548 561
549 static void shortAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::PropertyCallbackInfo<void>& info) 562 static void shortAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::FunctionCallbackInfo<v8::Value>& info)
550 { 563 {
551 v8::Local<v8::Object> holder = info.Holder(); 564 v8::Local<v8::Object> holder = info.Holder();
552 ExceptionState exceptionState(ExceptionState::SetterContext, "shortAttribute ", "TestObject", holder, info.GetIsolate()); 565 ExceptionState exceptionState(ExceptionState::SetterContext, "shortAttribute ", "TestObject", holder, info.GetIsolate());
553 TestObject* impl = V8TestObject::toImpl(holder); 566 TestObject* impl = V8TestObject::toImpl(holder);
554 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt16(v8Value, exceptionState) , exceptionState); 567 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt16(v8Value, exceptionState) , exceptionState);
555 impl->setShortAttribute(cppValue); 568 impl->setShortAttribute(cppValue);
556 } 569 }
557 570
558 static void shortAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 571 static void shortAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
559 { 572 {
573 v8::Local<v8::Value> v8Value = info[0];
560 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 574 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
561 TestObjectV8Internal::shortAttributeAttributeSetter(v8Value, info); 575 TestObjectV8Internal::shortAttributeAttributeSetter(v8Value, info);
562 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 576 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
563 } 577 }
564 578
565 static void unrestrictedDoubleAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info) 579 static void unrestrictedDoubleAttributeAttributeGetter(const v8::FunctionCallbac kInfo<v8::Value>& info)
566 { 580 {
567 v8::Local<v8::Object> holder = info.Holder(); 581 v8::Local<v8::Object> holder = info.Holder();
568 TestObject* impl = V8TestObject::toImpl(holder); 582 TestObject* impl = V8TestObject::toImpl(holder);
569 v8SetReturnValue(info, impl->unrestrictedDoubleAttribute()); 583 v8SetReturnValue(info, impl->unrestrictedDoubleAttribute());
570 } 584 }
571 585
572 static void unrestrictedDoubleAttributeAttributeGetterCallback(v8::Local<v8::Str ing>, const v8::PropertyCallbackInfo<v8::Value>& info) 586 static void unrestrictedDoubleAttributeAttributeGetterCallback(const v8::Functio nCallbackInfo<v8::Value>& info)
573 { 587 {
574 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 588 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
575 TestObjectV8Internal::unrestrictedDoubleAttributeAttributeGetter(info); 589 TestObjectV8Internal::unrestrictedDoubleAttributeAttributeGetter(info);
576 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 590 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
577 } 591 }
578 592
579 static void unrestrictedDoubleAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::PropertyCallbackInfo<void>& info) 593 static void unrestrictedDoubleAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::FunctionCallbackInfo<v8::Value>& info)
580 { 594 {
581 v8::Local<v8::Object> holder = info.Holder(); 595 v8::Local<v8::Object> holder = info.Holder();
582 ExceptionState exceptionState(ExceptionState::SetterContext, "unrestrictedDo ubleAttribute", "TestObject", holder, info.GetIsolate()); 596 ExceptionState exceptionState(ExceptionState::SetterContext, "unrestrictedDo ubleAttribute", "TestObject", holder, info.GetIsolate());
583 TestObject* impl = V8TestObject::toImpl(holder); 597 TestObject* impl = V8TestObject::toImpl(holder);
584 TONATIVE_VOID_EXCEPTIONSTATE(double, cppValue, toDouble(v8Value, exceptionSt ate), exceptionState); 598 TONATIVE_VOID_EXCEPTIONSTATE(double, cppValue, toDouble(v8Value, exceptionSt ate), exceptionState);
585 impl->setUnrestrictedDoubleAttribute(cppValue); 599 impl->setUnrestrictedDoubleAttribute(cppValue);
586 } 600 }
587 601
588 static void unrestrictedDoubleAttributeAttributeSetterCallback(v8::Local<v8::Str ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 602 static void unrestrictedDoubleAttributeAttributeSetterCallback(const v8::Functio nCallbackInfo<v8::Value>& info)
589 { 603 {
604 v8::Local<v8::Value> v8Value = info[0];
590 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 605 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
591 TestObjectV8Internal::unrestrictedDoubleAttributeAttributeSetter(v8Value, in fo); 606 TestObjectV8Internal::unrestrictedDoubleAttributeAttributeSetter(v8Value, in fo);
592 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 607 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
593 } 608 }
594 609
595 static void unrestrictedFloatAttributeAttributeGetter(const v8::PropertyCallback Info<v8::Value>& info) 610 static void unrestrictedFloatAttributeAttributeGetter(const v8::FunctionCallback Info<v8::Value>& info)
596 { 611 {
597 v8::Local<v8::Object> holder = info.Holder(); 612 v8::Local<v8::Object> holder = info.Holder();
598 TestObject* impl = V8TestObject::toImpl(holder); 613 TestObject* impl = V8TestObject::toImpl(holder);
599 v8SetReturnValue(info, impl->unrestrictedFloatAttribute()); 614 v8SetReturnValue(info, impl->unrestrictedFloatAttribute());
600 } 615 }
601 616
602 static void unrestrictedFloatAttributeAttributeGetterCallback(v8::Local<v8::Stri ng>, const v8::PropertyCallbackInfo<v8::Value>& info) 617 static void unrestrictedFloatAttributeAttributeGetterCallback(const v8::Function CallbackInfo<v8::Value>& info)
603 { 618 {
604 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 619 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
605 TestObjectV8Internal::unrestrictedFloatAttributeAttributeGetter(info); 620 TestObjectV8Internal::unrestrictedFloatAttributeAttributeGetter(info);
606 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 621 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
607 } 622 }
608 623
609 static void unrestrictedFloatAttributeAttributeSetter(v8::Local<v8::Value> v8Val ue, const v8::PropertyCallbackInfo<void>& info) 624 static void unrestrictedFloatAttributeAttributeSetter(v8::Local<v8::Value> v8Val ue, const v8::FunctionCallbackInfo<v8::Value>& info)
610 { 625 {
611 v8::Local<v8::Object> holder = info.Holder(); 626 v8::Local<v8::Object> holder = info.Holder();
612 ExceptionState exceptionState(ExceptionState::SetterContext, "unrestrictedFl oatAttribute", "TestObject", holder, info.GetIsolate()); 627 ExceptionState exceptionState(ExceptionState::SetterContext, "unrestrictedFl oatAttribute", "TestObject", holder, info.GetIsolate());
613 TestObject* impl = V8TestObject::toImpl(holder); 628 TestObject* impl = V8TestObject::toImpl(holder);
614 TONATIVE_VOID_EXCEPTIONSTATE(float, cppValue, toFloat(v8Value, exceptionStat e), exceptionState); 629 TONATIVE_VOID_EXCEPTIONSTATE(float, cppValue, toFloat(v8Value, exceptionStat e), exceptionState);
615 impl->setUnrestrictedFloatAttribute(cppValue); 630 impl->setUnrestrictedFloatAttribute(cppValue);
616 } 631 }
617 632
618 static void unrestrictedFloatAttributeAttributeSetterCallback(v8::Local<v8::Stri ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 633 static void unrestrictedFloatAttributeAttributeSetterCallback(const v8::Function CallbackInfo<v8::Value>& info)
619 { 634 {
635 v8::Local<v8::Value> v8Value = info[0];
620 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 636 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
621 TestObjectV8Internal::unrestrictedFloatAttributeAttributeSetter(v8Value, inf o); 637 TestObjectV8Internal::unrestrictedFloatAttributeAttributeSetter(v8Value, inf o);
622 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 638 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
623 } 639 }
624 640
625 static void unsignedLongAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info) 641 static void unsignedLongAttributeAttributeGetter(const v8::FunctionCallbackInfo< v8::Value>& info)
626 { 642 {
627 v8::Local<v8::Object> holder = info.Holder(); 643 v8::Local<v8::Object> holder = info.Holder();
628 TestObject* impl = V8TestObject::toImpl(holder); 644 TestObject* impl = V8TestObject::toImpl(holder);
629 v8SetReturnValueUnsigned(info, impl->unsignedLongAttribute()); 645 v8SetReturnValueUnsigned(info, impl->unsignedLongAttribute());
630 } 646 }
631 647
632 static void unsignedLongAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 648 static void unsignedLongAttributeAttributeGetterCallback(const v8::FunctionCallb ackInfo<v8::Value>& info)
633 { 649 {
634 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 650 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
635 TestObjectV8Internal::unsignedLongAttributeAttributeGetter(info); 651 TestObjectV8Internal::unsignedLongAttributeAttributeGetter(info);
636 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 652 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
637 } 653 }
638 654
639 static void unsignedLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info) 655 static void unsignedLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::FunctionCallbackInfo<v8::Value>& info)
640 { 656 {
641 v8::Local<v8::Object> holder = info.Holder(); 657 v8::Local<v8::Object> holder = info.Holder();
642 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedLongAt tribute", "TestObject", holder, info.GetIsolate()); 658 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedLongAt tribute", "TestObject", holder, info.GetIsolate());
643 TestObject* impl = V8TestObject::toImpl(holder); 659 TestObject* impl = V8TestObject::toImpl(holder);
644 TONATIVE_VOID_EXCEPTIONSTATE(unsigned, cppValue, toUInt32(v8Value, exception State), exceptionState); 660 TONATIVE_VOID_EXCEPTIONSTATE(unsigned, cppValue, toUInt32(v8Value, exception State), exceptionState);
645 impl->setUnsignedLongAttribute(cppValue); 661 impl->setUnsignedLongAttribute(cppValue);
646 } 662 }
647 663
648 static void unsignedLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 664 static void unsignedLongAttributeAttributeSetterCallback(const v8::FunctionCallb ackInfo<v8::Value>& info)
649 { 665 {
666 v8::Local<v8::Value> v8Value = info[0];
650 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 667 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
651 TestObjectV8Internal::unsignedLongAttributeAttributeSetter(v8Value, info); 668 TestObjectV8Internal::unsignedLongAttributeAttributeSetter(v8Value, info);
652 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 669 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
653 } 670 }
654 671
655 static void unsignedLongLongAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info) 672 static void unsignedLongLongAttributeAttributeGetter(const v8::FunctionCallbackI nfo<v8::Value>& info)
656 { 673 {
657 v8::Local<v8::Object> holder = info.Holder(); 674 v8::Local<v8::Object> holder = info.Holder();
658 TestObject* impl = V8TestObject::toImpl(holder); 675 TestObject* impl = V8TestObject::toImpl(holder);
659 v8SetReturnValue(info, static_cast<double>(impl->unsignedLongLongAttribute() )); 676 v8SetReturnValue(info, static_cast<double>(impl->unsignedLongLongAttribute() ));
660 } 677 }
661 678
662 static void unsignedLongLongAttributeAttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info) 679 static void unsignedLongLongAttributeAttributeGetterCallback(const v8::FunctionC allbackInfo<v8::Value>& info)
663 { 680 {
664 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 681 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
665 TestObjectV8Internal::unsignedLongLongAttributeAttributeGetter(info); 682 TestObjectV8Internal::unsignedLongLongAttributeAttributeGetter(info);
666 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 683 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
667 } 684 }
668 685
669 static void unsignedLongLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::PropertyCallbackInfo<void>& info) 686 static void unsignedLongLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::FunctionCallbackInfo<v8::Value>& info)
670 { 687 {
671 v8::Local<v8::Object> holder = info.Holder(); 688 v8::Local<v8::Object> holder = info.Holder();
672 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedLongLo ngAttribute", "TestObject", holder, info.GetIsolate()); 689 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedLongLo ngAttribute", "TestObject", holder, info.GetIsolate());
673 TestObject* impl = V8TestObject::toImpl(holder); 690 TestObject* impl = V8TestObject::toImpl(holder);
674 TONATIVE_VOID_EXCEPTIONSTATE(unsigned long long, cppValue, toUInt64(v8Value, exceptionState), exceptionState); 691 TONATIVE_VOID_EXCEPTIONSTATE(unsigned long long, cppValue, toUInt64(v8Value, exceptionState), exceptionState);
675 impl->setUnsignedLongLongAttribute(cppValue); 692 impl->setUnsignedLongLongAttribute(cppValue);
676 } 693 }
677 694
678 static void unsignedLongLongAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 695 static void unsignedLongLongAttributeAttributeSetterCallback(const v8::FunctionC allbackInfo<v8::Value>& info)
679 { 696 {
697 v8::Local<v8::Value> v8Value = info[0];
680 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 698 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
681 TestObjectV8Internal::unsignedLongLongAttributeAttributeSetter(v8Value, info ); 699 TestObjectV8Internal::unsignedLongLongAttributeAttributeSetter(v8Value, info );
682 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 700 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
683 } 701 }
684 702
685 static void unsignedShortAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info) 703 static void unsignedShortAttributeAttributeGetter(const v8::FunctionCallbackInfo <v8::Value>& info)
686 { 704 {
687 v8::Local<v8::Object> holder = info.Holder(); 705 v8::Local<v8::Object> holder = info.Holder();
688 TestObject* impl = V8TestObject::toImpl(holder); 706 TestObject* impl = V8TestObject::toImpl(holder);
689 v8SetReturnValueUnsigned(info, impl->unsignedShortAttribute()); 707 v8SetReturnValueUnsigned(info, impl->unsignedShortAttribute());
690 } 708 }
691 709
692 static void unsignedShortAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 710 static void unsignedShortAttributeAttributeGetterCallback(const v8::FunctionCall backInfo<v8::Value>& info)
693 { 711 {
694 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 712 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
695 TestObjectV8Internal::unsignedShortAttributeAttributeGetter(info); 713 TestObjectV8Internal::unsignedShortAttributeAttributeGetter(info);
696 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 714 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
697 } 715 }
698 716
699 static void unsignedShortAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 717 static void unsignedShortAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
700 { 718 {
701 v8::Local<v8::Object> holder = info.Holder(); 719 v8::Local<v8::Object> holder = info.Holder();
702 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedShortA ttribute", "TestObject", holder, info.GetIsolate()); 720 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedShortA ttribute", "TestObject", holder, info.GetIsolate());
703 TestObject* impl = V8TestObject::toImpl(holder); 721 TestObject* impl = V8TestObject::toImpl(holder);
704 TONATIVE_VOID_EXCEPTIONSTATE(unsigned, cppValue, toUInt16(v8Value, exception State), exceptionState); 722 TONATIVE_VOID_EXCEPTIONSTATE(unsigned, cppValue, toUInt16(v8Value, exception State), exceptionState);
705 impl->setUnsignedShortAttribute(cppValue); 723 impl->setUnsignedShortAttribute(cppValue);
706 } 724 }
707 725
708 static void unsignedShortAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 726 static void unsignedShortAttributeAttributeSetterCallback(const v8::FunctionCall backInfo<v8::Value>& info)
709 { 727 {
728 v8::Local<v8::Value> v8Value = info[0];
710 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 729 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
711 TestObjectV8Internal::unsignedShortAttributeAttributeSetter(v8Value, info); 730 TestObjectV8Internal::unsignedShortAttributeAttributeSetter(v8Value, info);
712 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 731 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
713 } 732 }
714 733
715 static void testInterfaceEmptyAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info) 734 static void testInterfaceEmptyAttributeAttributeGetter(const v8::FunctionCallbac kInfo<v8::Value>& info)
716 { 735 {
717 v8::Local<v8::Object> holder = info.Holder(); 736 v8::Local<v8::Object> holder = info.Holder();
718 TestObject* impl = V8TestObject::toImpl(holder); 737 TestObject* impl = V8TestObject::toImpl(holder);
719 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceEmptyAttribute()), impl); 738 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceEmptyAttribute()), impl);
720 } 739 }
721 740
722 static void testInterfaceEmptyAttributeAttributeGetterCallback(v8::Local<v8::Str ing>, const v8::PropertyCallbackInfo<v8::Value>& info) 741 static void testInterfaceEmptyAttributeAttributeGetterCallback(const v8::Functio nCallbackInfo<v8::Value>& info)
723 { 742 {
724 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 743 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
725 TestObjectV8Internal::testInterfaceEmptyAttributeAttributeGetter(info); 744 TestObjectV8Internal::testInterfaceEmptyAttributeAttributeGetter(info);
726 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 745 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
727 } 746 }
728 747
729 static void testInterfaceEmptyAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::PropertyCallbackInfo<void>& info) 748 static void testInterfaceEmptyAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::FunctionCallbackInfo<v8::Value>& info)
730 { 749 {
731 v8::Local<v8::Object> holder = info.Holder(); 750 v8::Local<v8::Object> holder = info.Holder();
732 TestObject* impl = V8TestObject::toImpl(holder); 751 TestObject* impl = V8TestObject::toImpl(holder);
733 TestInterfaceEmpty* cppValue = V8TestInterfaceEmpty::toImplWithTypeCheck(inf o.GetIsolate(), v8Value); 752 TestInterfaceEmpty* cppValue = V8TestInterfaceEmpty::toImplWithTypeCheck(inf o.GetIsolate(), v8Value);
734 impl->setTestInterfaceEmptyAttribute(WTF::getPtr(cppValue)); 753 impl->setTestInterfaceEmptyAttribute(WTF::getPtr(cppValue));
735 } 754 }
736 755
737 static void testInterfaceEmptyAttributeAttributeSetterCallback(v8::Local<v8::Str ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 756 static void testInterfaceEmptyAttributeAttributeSetterCallback(const v8::Functio nCallbackInfo<v8::Value>& info)
738 { 757 {
758 v8::Local<v8::Value> v8Value = info[0];
739 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 759 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
740 TestObjectV8Internal::testInterfaceEmptyAttributeAttributeSetter(v8Value, in fo); 760 TestObjectV8Internal::testInterfaceEmptyAttributeAttributeSetter(v8Value, in fo);
741 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 761 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
742 } 762 }
743 763
744 static void testObjectAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info) 764 static void testObjectAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8 ::Value>& info)
745 { 765 {
746 v8::Local<v8::Object> holder = info.Holder(); 766 v8::Local<v8::Object> holder = info.Holder();
747 TestObject* impl = V8TestObject::toImpl(holder); 767 TestObject* impl = V8TestObject::toImpl(holder);
748 v8SetReturnValueFast(info, WTF::getPtr(impl->testObjectAttribute()), impl); 768 v8SetReturnValueFast(info, WTF::getPtr(impl->testObjectAttribute()), impl);
749 } 769 }
750 770
751 static void testObjectAttributeAttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info) 771 static void testObjectAttributeAttributeGetterCallback(const v8::FunctionCallbac kInfo<v8::Value>& info)
752 { 772 {
753 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 773 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
754 TestObjectV8Internal::testObjectAttributeAttributeGetter(info); 774 TestObjectV8Internal::testObjectAttributeAttributeGetter(info);
755 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 775 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
756 } 776 }
757 777
758 static void testObjectAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info) 778 static void testObjectAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::FunctionCallbackInfo<v8::Value>& info)
759 { 779 {
760 v8::Local<v8::Object> holder = info.Holder(); 780 v8::Local<v8::Object> holder = info.Holder();
761 TestObject* impl = V8TestObject::toImpl(holder); 781 TestObject* impl = V8TestObject::toImpl(holder);
762 TestObject* cppValue = V8TestObject::toImplWithTypeCheck(info.GetIsolate(), v8Value); 782 TestObject* cppValue = V8TestObject::toImplWithTypeCheck(info.GetIsolate(), v8Value);
763 impl->setTestObjectAttribute(WTF::getPtr(cppValue)); 783 impl->setTestObjectAttribute(WTF::getPtr(cppValue));
764 } 784 }
765 785
766 static void testObjectAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 786 static void testObjectAttributeAttributeSetterCallback(const v8::FunctionCallbac kInfo<v8::Value>& info)
767 { 787 {
788 v8::Local<v8::Value> v8Value = info[0];
768 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 789 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
769 TestObjectV8Internal::testObjectAttributeAttributeSetter(v8Value, info); 790 TestObjectV8Internal::testObjectAttributeAttributeSetter(v8Value, info);
770 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 791 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
771 } 792 }
772 793
773 static void voidCallbackFunctionAttributeAttributeGetter(const v8::PropertyCallb ackInfo<v8::Value>& info) 794 static void voidCallbackFunctionAttributeAttributeGetter(const v8::FunctionCallb ackInfo<v8::Value>& info)
774 { 795 {
775 v8::Local<v8::Object> holder = info.Holder(); 796 v8::Local<v8::Object> holder = info.Holder();
776 TestObject* impl = V8TestObject::toImpl(holder); 797 TestObject* impl = V8TestObject::toImpl(holder);
777 v8SetReturnValue(info, impl->voidCallbackFunctionAttribute().v8Value()); 798 v8SetReturnValue(info, impl->voidCallbackFunctionAttribute().v8Value());
778 } 799 }
779 800
780 static void voidCallbackFunctionAttributeAttributeGetterCallback(v8::Local<v8::S tring>, const v8::PropertyCallbackInfo<v8::Value>& info) 801 static void voidCallbackFunctionAttributeAttributeGetterCallback(const v8::Funct ionCallbackInfo<v8::Value>& info)
781 { 802 {
782 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 803 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
783 TestObjectV8Internal::voidCallbackFunctionAttributeAttributeGetter(info); 804 TestObjectV8Internal::voidCallbackFunctionAttributeAttributeGetter(info);
784 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 805 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
785 } 806 }
786 807
787 static void voidCallbackFunctionAttributeAttributeSetter(v8::Local<v8::Value> v8 Value, const v8::PropertyCallbackInfo<void>& info) 808 static void voidCallbackFunctionAttributeAttributeSetter(v8::Local<v8::Value> v8 Value, const v8::FunctionCallbackInfo<v8::Value>& info)
788 { 809 {
789 v8::Local<v8::Object> holder = info.Holder(); 810 v8::Local<v8::Object> holder = info.Holder();
790 TestObject* impl = V8TestObject::toImpl(holder); 811 TestObject* impl = V8TestObject::toImpl(holder);
791 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value); 812 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value);
792 impl->setVoidCallbackFunctionAttribute(cppValue); 813 impl->setVoidCallbackFunctionAttribute(cppValue);
793 } 814 }
794 815
795 static void voidCallbackFunctionAttributeAttributeSetterCallback(v8::Local<v8::S tring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info ) 816 static void voidCallbackFunctionAttributeAttributeSetterCallback(const v8::Funct ionCallbackInfo<v8::Value>& info)
796 { 817 {
818 v8::Local<v8::Value> v8Value = info[0];
797 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 819 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
798 TestObjectV8Internal::voidCallbackFunctionAttributeAttributeSetter(v8Value, info); 820 TestObjectV8Internal::voidCallbackFunctionAttributeAttributeSetter(v8Value, info);
799 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 821 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
800 } 822 }
801 823
802 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeGetter(const v8:: PropertyCallbackInfo<v8::Value>& info) 824 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeGetter(const v8:: FunctionCallbackInfo<v8::Value>& info)
803 { 825 {
804 v8::Local<v8::Object> holder = info.Holder(); 826 v8::Local<v8::Object> holder = info.Holder();
805 TestObject* impl = V8TestObject::toImpl(holder); 827 TestObject* impl = V8TestObject::toImpl(holder);
806 v8SetReturnValue(info, impl->anyCallbackFunctionOptionalAnyArgAttribute().v8 Value()); 828 v8SetReturnValue(info, impl->anyCallbackFunctionOptionalAnyArgAttribute().v8 Value());
807 } 829 }
808 830
809 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeGetterCallback(v8 ::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 831 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeGetterCallback(co nst v8::FunctionCallbackInfo<v8::Value>& info)
810 { 832 {
811 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 833 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
812 TestObjectV8Internal::anyCallbackFunctionOptionalAnyArgAttributeAttributeGet ter(info); 834 TestObjectV8Internal::anyCallbackFunctionOptionalAnyArgAttributeAttributeGet ter(info);
813 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 835 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
814 } 836 }
815 837
816 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeSetter(v8::Local< v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 838 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeSetter(v8::Local< v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
817 { 839 {
818 v8::Local<v8::Object> holder = info.Holder(); 840 v8::Local<v8::Object> holder = info.Holder();
819 TestObject* impl = V8TestObject::toImpl(holder); 841 TestObject* impl = V8TestObject::toImpl(holder);
820 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value); 842 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value);
821 impl->setAnyCallbackFunctionOptionalAnyArgAttribute(cppValue); 843 impl->setAnyCallbackFunctionOptionalAnyArgAttribute(cppValue);
822 } 844 }
823 845
824 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeSetterCallback(v8 ::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInf o<void>& info) 846 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeSetterCallback(co nst v8::FunctionCallbackInfo<v8::Value>& info)
825 { 847 {
848 v8::Local<v8::Value> v8Value = info[0];
826 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 849 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
827 TestObjectV8Internal::anyCallbackFunctionOptionalAnyArgAttributeAttributeSet ter(v8Value, info); 850 TestObjectV8Internal::anyCallbackFunctionOptionalAnyArgAttributeAttributeSet ter(v8Value, info);
828 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 851 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
829 } 852 }
830 853
831 static void cssAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value >& info) 854 static void cssAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value >& info)
832 { 855 {
833 v8::Local<v8::Object> holder = info.Holder(); 856 v8::Local<v8::Object> holder = info.Holder();
834 TestObject* impl = V8TestObject::toImpl(holder); 857 TestObject* impl = V8TestObject::toImpl(holder);
835 v8SetReturnValueInt(info, impl->cssAttribute()); 858 v8SetReturnValueInt(info, impl->cssAttribute());
836 } 859 }
837 860
838 static void cssAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8: :PropertyCallbackInfo<v8::Value>& info) 861 static void cssAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
839 { 862 {
840 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 863 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
841 TestObjectV8Internal::cssAttributeAttributeGetter(info); 864 TestObjectV8Internal::cssAttributeAttributeGetter(info);
842 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 865 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
843 } 866 }
844 867
845 static void cssAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: PropertyCallbackInfo<void>& info) 868 static void cssAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: FunctionCallbackInfo<v8::Value>& info)
846 { 869 {
847 v8::Local<v8::Object> holder = info.Holder(); 870 v8::Local<v8::Object> holder = info.Holder();
848 ExceptionState exceptionState(ExceptionState::SetterContext, "cssAttribute", "TestObject", holder, info.GetIsolate()); 871 ExceptionState exceptionState(ExceptionState::SetterContext, "cssAttribute", "TestObject", holder, info.GetIsolate());
849 TestObject* impl = V8TestObject::toImpl(holder); 872 TestObject* impl = V8TestObject::toImpl(holder);
850 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 873 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
851 impl->setCSSAttribute(cppValue); 874 impl->setCSSAttribute(cppValue);
852 } 875 }
853 876
854 static void cssAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local <v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 877 static void cssAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
855 { 878 {
879 v8::Local<v8::Value> v8Value = info[0];
856 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 880 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
857 TestObjectV8Internal::cssAttributeAttributeSetter(v8Value, info); 881 TestObjectV8Internal::cssAttributeAttributeSetter(v8Value, info);
858 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 882 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
859 } 883 }
860 884
861 static void imeAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value >& info) 885 static void imeAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value >& info)
862 { 886 {
863 v8::Local<v8::Object> holder = info.Holder(); 887 v8::Local<v8::Object> holder = info.Holder();
864 TestObject* impl = V8TestObject::toImpl(holder); 888 TestObject* impl = V8TestObject::toImpl(holder);
865 v8SetReturnValueInt(info, impl->imeAttribute()); 889 v8SetReturnValueInt(info, impl->imeAttribute());
866 } 890 }
867 891
868 static void imeAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8: :PropertyCallbackInfo<v8::Value>& info) 892 static void imeAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
869 { 893 {
870 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 894 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
871 TestObjectV8Internal::imeAttributeAttributeGetter(info); 895 TestObjectV8Internal::imeAttributeAttributeGetter(info);
872 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 896 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
873 } 897 }
874 898
875 static void imeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: PropertyCallbackInfo<void>& info) 899 static void imeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: FunctionCallbackInfo<v8::Value>& info)
876 { 900 {
877 v8::Local<v8::Object> holder = info.Holder(); 901 v8::Local<v8::Object> holder = info.Holder();
878 ExceptionState exceptionState(ExceptionState::SetterContext, "imeAttribute", "TestObject", holder, info.GetIsolate()); 902 ExceptionState exceptionState(ExceptionState::SetterContext, "imeAttribute", "TestObject", holder, info.GetIsolate());
879 TestObject* impl = V8TestObject::toImpl(holder); 903 TestObject* impl = V8TestObject::toImpl(holder);
880 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 904 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
881 impl->setIMEAttribute(cppValue); 905 impl->setIMEAttribute(cppValue);
882 } 906 }
883 907
884 static void imeAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local <v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 908 static void imeAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
885 { 909 {
910 v8::Local<v8::Value> v8Value = info[0];
886 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 911 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
887 TestObjectV8Internal::imeAttributeAttributeSetter(v8Value, info); 912 TestObjectV8Internal::imeAttributeAttributeSetter(v8Value, info);
888 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 913 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
889 } 914 }
890 915
891 static void svgAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value >& info) 916 static void svgAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value >& info)
892 { 917 {
893 v8::Local<v8::Object> holder = info.Holder(); 918 v8::Local<v8::Object> holder = info.Holder();
894 TestObject* impl = V8TestObject::toImpl(holder); 919 TestObject* impl = V8TestObject::toImpl(holder);
895 v8SetReturnValueInt(info, impl->svgAttribute()); 920 v8SetReturnValueInt(info, impl->svgAttribute());
896 } 921 }
897 922
898 static void svgAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8: :PropertyCallbackInfo<v8::Value>& info) 923 static void svgAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
899 { 924 {
900 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 925 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
901 TestObjectV8Internal::svgAttributeAttributeGetter(info); 926 TestObjectV8Internal::svgAttributeAttributeGetter(info);
902 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 927 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
903 } 928 }
904 929
905 static void svgAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: PropertyCallbackInfo<void>& info) 930 static void svgAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: FunctionCallbackInfo<v8::Value>& info)
906 { 931 {
907 v8::Local<v8::Object> holder = info.Holder(); 932 v8::Local<v8::Object> holder = info.Holder();
908 ExceptionState exceptionState(ExceptionState::SetterContext, "svgAttribute", "TestObject", holder, info.GetIsolate()); 933 ExceptionState exceptionState(ExceptionState::SetterContext, "svgAttribute", "TestObject", holder, info.GetIsolate());
909 TestObject* impl = V8TestObject::toImpl(holder); 934 TestObject* impl = V8TestObject::toImpl(holder);
910 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 935 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
911 impl->setSVGAttribute(cppValue); 936 impl->setSVGAttribute(cppValue);
912 } 937 }
913 938
914 static void svgAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local <v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 939 static void svgAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
915 { 940 {
941 v8::Local<v8::Value> v8Value = info[0];
916 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 942 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
917 TestObjectV8Internal::svgAttributeAttributeSetter(v8Value, info); 943 TestObjectV8Internal::svgAttributeAttributeSetter(v8Value, info);
918 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 944 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
919 } 945 }
920 946
921 static void xmlAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value >& info) 947 static void xmlAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value >& info)
922 { 948 {
923 v8::Local<v8::Object> holder = info.Holder(); 949 v8::Local<v8::Object> holder = info.Holder();
924 TestObject* impl = V8TestObject::toImpl(holder); 950 TestObject* impl = V8TestObject::toImpl(holder);
925 v8SetReturnValueInt(info, impl->xmlAttribute()); 951 v8SetReturnValueInt(info, impl->xmlAttribute());
926 } 952 }
927 953
928 static void xmlAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8: :PropertyCallbackInfo<v8::Value>& info) 954 static void xmlAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
929 { 955 {
930 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 956 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
931 TestObjectV8Internal::xmlAttributeAttributeGetter(info); 957 TestObjectV8Internal::xmlAttributeAttributeGetter(info);
932 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 958 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
933 } 959 }
934 960
935 static void xmlAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: PropertyCallbackInfo<void>& info) 961 static void xmlAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: FunctionCallbackInfo<v8::Value>& info)
936 { 962 {
937 v8::Local<v8::Object> holder = info.Holder(); 963 v8::Local<v8::Object> holder = info.Holder();
938 ExceptionState exceptionState(ExceptionState::SetterContext, "xmlAttribute", "TestObject", holder, info.GetIsolate()); 964 ExceptionState exceptionState(ExceptionState::SetterContext, "xmlAttribute", "TestObject", holder, info.GetIsolate());
939 TestObject* impl = V8TestObject::toImpl(holder); 965 TestObject* impl = V8TestObject::toImpl(holder);
940 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 966 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
941 impl->setXMLAttribute(cppValue); 967 impl->setXMLAttribute(cppValue);
942 } 968 }
943 969
944 static void xmlAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local <v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 970 static void xmlAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
945 { 971 {
972 v8::Local<v8::Value> v8Value = info[0];
946 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 973 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
947 TestObjectV8Internal::xmlAttributeAttributeSetter(v8Value, info); 974 TestObjectV8Internal::xmlAttributeAttributeSetter(v8Value, info);
948 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 975 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
949 } 976 }
950 977
951 static void nodeFilterAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info) 978 static void nodeFilterAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8 ::Value>& info)
952 { 979 {
953 v8::Local<v8::Object> holder = info.Holder(); 980 v8::Local<v8::Object> holder = info.Holder();
954 TestObject* impl = V8TestObject::toImpl(holder); 981 TestObject* impl = V8TestObject::toImpl(holder);
955 v8SetReturnValueFast(info, WTF::getPtr(impl->nodeFilterAttribute()), impl); 982 v8SetReturnValueFast(info, WTF::getPtr(impl->nodeFilterAttribute()), impl);
956 } 983 }
957 984
958 static void nodeFilterAttributeAttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info) 985 static void nodeFilterAttributeAttributeGetterCallback(const v8::FunctionCallbac kInfo<v8::Value>& info)
959 { 986 {
960 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 987 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
961 TestObjectV8Internal::nodeFilterAttributeAttributeGetter(info); 988 TestObjectV8Internal::nodeFilterAttributeAttributeGetter(info);
962 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 989 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
963 } 990 }
964 991
965 static void nodeFilterAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info) 992 static void nodeFilterAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::FunctionCallbackInfo<v8::Value>& info)
966 { 993 {
967 v8::Local<v8::Object> holder = info.Holder(); 994 v8::Local<v8::Object> holder = info.Holder();
968 TestObject* impl = V8TestObject::toImpl(holder); 995 TestObject* impl = V8TestObject::toImpl(holder);
969 RefPtrWillBeRawPtr<NodeFilter> cppValue = toNodeFilter(v8Value, info.Holder( ), ScriptState::current(info.GetIsolate())); 996 RefPtrWillBeRawPtr<NodeFilter> cppValue = toNodeFilter(v8Value, info.Holder( ), ScriptState::current(info.GetIsolate()));
970 impl->setNodeFilterAttribute(WTF::getPtr(cppValue)); 997 impl->setNodeFilterAttribute(WTF::getPtr(cppValue));
971 } 998 }
972 999
973 static void nodeFilterAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1000 static void nodeFilterAttributeAttributeSetterCallback(const v8::FunctionCallbac kInfo<v8::Value>& info)
974 { 1001 {
1002 v8::Local<v8::Value> v8Value = info[0];
975 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1003 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
976 TestObjectV8Internal::nodeFilterAttributeAttributeSetter(v8Value, info); 1004 TestObjectV8Internal::nodeFilterAttributeAttributeSetter(v8Value, info);
977 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1005 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
978 } 1006 }
979 1007
980 static void serializedScriptValueAttributeAttributeGetter(const v8::PropertyCall backInfo<v8::Value>& info) 1008 static void serializedScriptValueAttributeAttributeGetter(const v8::FunctionCall backInfo<v8::Value>& info)
981 { 1009 {
982 v8::Local<v8::Object> holder = info.Holder(); 1010 v8::Local<v8::Object> holder = info.Holder();
983 TestObject* impl = V8TestObject::toImpl(holder); 1011 TestObject* impl = V8TestObject::toImpl(holder);
984 v8SetReturnValue(info, impl->serializedScriptValueAttribute() ? impl->serial izedScriptValueAttribute()->deserialize() : v8::Local<v8::Value>(v8::Null(info.G etIsolate()))); 1012 v8SetReturnValue(info, impl->serializedScriptValueAttribute() ? impl->serial izedScriptValueAttribute()->deserialize() : v8::Local<v8::Value>(v8::Null(info.G etIsolate())));
985 } 1013 }
986 1014
987 static void serializedScriptValueAttributeAttributeGetterCallback(v8::Local<v8:: String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1015 static void serializedScriptValueAttributeAttributeGetterCallback(const v8::Func tionCallbackInfo<v8::Value>& info)
988 { 1016 {
989 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1017 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
990 TestObjectV8Internal::serializedScriptValueAttributeAttributeGetter(info); 1018 TestObjectV8Internal::serializedScriptValueAttributeAttributeGetter(info);
991 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1019 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
992 } 1020 }
993 1021
994 static void serializedScriptValueAttributeAttributeSetter(v8::Local<v8::Value> v 8Value, const v8::PropertyCallbackInfo<void>& info) 1022 static void serializedScriptValueAttributeAttributeSetter(v8::Local<v8::Value> v 8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
995 { 1023 {
996 v8::Local<v8::Object> holder = info.Holder(); 1024 v8::Local<v8::Object> holder = info.Holder();
997 ExceptionState exceptionState(ExceptionState::SetterContext, "serializedScri ptValueAttribute", "TestObject", holder, info.GetIsolate()); 1025 ExceptionState exceptionState(ExceptionState::SetterContext, "serializedScri ptValueAttribute", "TestObject", holder, info.GetIsolate());
998 TestObject* impl = V8TestObject::toImpl(holder); 1026 TestObject* impl = V8TestObject::toImpl(holder);
999 TONATIVE_VOID_EXCEPTIONSTATE(RefPtr<SerializedScriptValue>, cppValue, Serial izedScriptValueFactory::instance().create(v8Value, 0, 0, exceptionState, info.Ge tIsolate()), exceptionState); 1027 TONATIVE_VOID_EXCEPTIONSTATE(RefPtr<SerializedScriptValue>, cppValue, Serial izedScriptValueFactory::instance().create(v8Value, 0, 0, exceptionState, info.Ge tIsolate()), exceptionState);
1000 impl->setSerializedScriptValueAttribute(WTF::getPtr(cppValue)); 1028 impl->setSerializedScriptValueAttribute(WTF::getPtr(cppValue));
1001 } 1029 }
1002 1030
1003 static void serializedScriptValueAttributeAttributeSetterCallback(v8::Local<v8:: String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& inf o) 1031 static void serializedScriptValueAttributeAttributeSetterCallback(const v8::Func tionCallbackInfo<v8::Value>& info)
1004 { 1032 {
1033 v8::Local<v8::Value> v8Value = info[0];
1005 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1034 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1006 TestObjectV8Internal::serializedScriptValueAttributeAttributeSetter(v8Value, info); 1035 TestObjectV8Internal::serializedScriptValueAttributeAttributeSetter(v8Value, info);
1007 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1036 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1008 } 1037 }
1009 1038
1010 static void anyAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value >& info) 1039 static void anyAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value >& info)
1011 { 1040 {
1012 v8::Local<v8::Object> holder = info.Holder(); 1041 v8::Local<v8::Object> holder = info.Holder();
1013 TestObject* impl = V8TestObject::toImpl(holder); 1042 TestObject* impl = V8TestObject::toImpl(holder);
1014 v8SetReturnValue(info, impl->anyAttribute().v8Value()); 1043 v8SetReturnValue(info, impl->anyAttribute().v8Value());
1015 } 1044 }
1016 1045
1017 static void anyAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8: :PropertyCallbackInfo<v8::Value>& info) 1046 static void anyAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
1018 { 1047 {
1019 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1048 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1020 TestObjectV8Internal::anyAttributeAttributeGetter(info); 1049 TestObjectV8Internal::anyAttributeAttributeGetter(info);
1021 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1050 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1022 } 1051 }
1023 1052
1024 static void anyAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: PropertyCallbackInfo<void>& info) 1053 static void anyAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: FunctionCallbackInfo<v8::Value>& info)
1025 { 1054 {
1026 v8::Local<v8::Object> holder = info.Holder(); 1055 v8::Local<v8::Object> holder = info.Holder();
1027 TestObject* impl = V8TestObject::toImpl(holder); 1056 TestObject* impl = V8TestObject::toImpl(holder);
1028 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value); 1057 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value);
1029 impl->setAnyAttribute(cppValue); 1058 impl->setAnyAttribute(cppValue);
1030 } 1059 }
1031 1060
1032 static void anyAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local <v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1061 static void anyAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
1033 { 1062 {
1063 v8::Local<v8::Value> v8Value = info[0];
1034 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1064 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1035 TestObjectV8Internal::anyAttributeAttributeSetter(v8Value, info); 1065 TestObjectV8Internal::anyAttributeAttributeSetter(v8Value, info);
1036 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1066 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1037 } 1067 }
1038 1068
1039 static void promiseAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info) 1069 static void promiseAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::V alue>& info)
1040 { 1070 {
1041 v8::Local<v8::Object> holder = info.Holder(); 1071 v8::Local<v8::Object> holder = info.Holder();
1042 TestObject* impl = V8TestObject::toImpl(holder); 1072 TestObject* impl = V8TestObject::toImpl(holder);
1043 v8SetReturnValue(info, impl->promiseAttribute().v8Value()); 1073 v8SetReturnValue(info, impl->promiseAttribute().v8Value());
1044 } 1074 }
1045 1075
1046 static void promiseAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1076 static void promiseAttributeAttributeGetterCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
1047 { 1077 {
1048 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1078 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1049 TestObjectV8Internal::promiseAttributeAttributeGetter(info); 1079 TestObjectV8Internal::promiseAttributeAttributeGetter(info);
1050 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1080 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1051 } 1081 }
1052 1082
1053 static void promiseAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1083 static void promiseAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
1054 { 1084 {
1055 v8::Local<v8::Object> holder = info.Holder(); 1085 v8::Local<v8::Object> holder = info.Holder();
1056 TestObject* impl = V8TestObject::toImpl(holder); 1086 TestObject* impl = V8TestObject::toImpl(holder);
1057 ScriptPromise cppValue = ScriptPromise::cast(ScriptState::current(info.GetIs olate()), v8Value); 1087 ScriptPromise cppValue = ScriptPromise::cast(ScriptState::current(info.GetIs olate()), v8Value);
1058 impl->setPromiseAttribute(cppValue); 1088 impl->setPromiseAttribute(cppValue);
1059 } 1089 }
1060 1090
1061 static void promiseAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::L ocal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1091 static void promiseAttributeAttributeSetterCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
1062 { 1092 {
1093 v8::Local<v8::Value> v8Value = info[0];
1063 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1094 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1064 TestObjectV8Internal::promiseAttributeAttributeSetter(v8Value, info); 1095 TestObjectV8Internal::promiseAttributeAttributeSetter(v8Value, info);
1065 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1096 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1066 } 1097 }
1067 1098
1068 static void windowAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va lue>& info) 1099 static void windowAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Va lue>& info)
1069 { 1100 {
1070 v8::Local<v8::Object> holder = info.Holder(); 1101 v8::Local<v8::Object> holder = info.Holder();
1071 TestObject* impl = V8TestObject::toImpl(holder); 1102 TestObject* impl = V8TestObject::toImpl(holder);
1072 v8SetReturnValueFast(info, WTF::getPtr(impl->windowAttribute()), impl); 1103 v8SetReturnValueFast(info, WTF::getPtr(impl->windowAttribute()), impl);
1073 } 1104 }
1074 1105
1075 static void windowAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1106 static void windowAttributeAttributeGetterCallback(const v8::FunctionCallbackInf o<v8::Value>& info)
1076 { 1107 {
1077 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1108 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1078 TestObjectV8Internal::windowAttributeAttributeGetter(info); 1109 TestObjectV8Internal::windowAttributeAttributeGetter(info);
1079 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1110 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1080 } 1111 }
1081 1112
1082 static void windowAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v 8::PropertyCallbackInfo<void>& info) 1113 static void windowAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v 8::FunctionCallbackInfo<v8::Value>& info)
1083 { 1114 {
1084 v8::Local<v8::Object> holder = info.Holder(); 1115 v8::Local<v8::Object> holder = info.Holder();
1085 TestObject* impl = V8TestObject::toImpl(holder); 1116 TestObject* impl = V8TestObject::toImpl(holder);
1086 DOMWindow* cppValue = toDOMWindow(info.GetIsolate(), v8Value); 1117 DOMWindow* cppValue = toDOMWindow(info.GetIsolate(), v8Value);
1087 impl->setWindowAttribute(WTF::getPtr(cppValue)); 1118 impl->setWindowAttribute(WTF::getPtr(cppValue));
1088 } 1119 }
1089 1120
1090 static void windowAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1121 static void windowAttributeAttributeSetterCallback(const v8::FunctionCallbackInf o<v8::Value>& info)
1091 { 1122 {
1123 v8::Local<v8::Value> v8Value = info[0];
1092 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1124 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1093 TestObjectV8Internal::windowAttributeAttributeSetter(v8Value, info); 1125 TestObjectV8Internal::windowAttributeAttributeSetter(v8Value, info);
1094 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1126 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1095 } 1127 }
1096 1128
1097 static void documentAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8:: Value>& info) 1129 static void documentAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8:: Value>& info)
1098 { 1130 {
1099 v8::Local<v8::Object> holder = info.Holder(); 1131 v8::Local<v8::Object> holder = info.Holder();
1100 TestObject* impl = V8TestObject::toImpl(holder); 1132 TestObject* impl = V8TestObject::toImpl(holder);
1101 v8SetReturnValueFast(info, WTF::getPtr(impl->documentAttribute()), impl); 1133 v8SetReturnValueFast(info, WTF::getPtr(impl->documentAttribute()), impl);
1102 } 1134 }
1103 1135
1104 static void documentAttributeAttributeGetterCallback(v8::Local<v8::String>, cons t v8::PropertyCallbackInfo<v8::Value>& info) 1136 static void documentAttributeAttributeGetterCallback(const v8::FunctionCallbackI nfo<v8::Value>& info)
1105 { 1137 {
1106 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1138 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1107 TestObjectV8Internal::documentAttributeAttributeGetter(info); 1139 TestObjectV8Internal::documentAttributeAttributeGetter(info);
1108 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1140 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1109 } 1141 }
1110 1142
1111 static void documentAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1143 static void documentAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
1112 { 1144 {
1113 v8::Local<v8::Object> holder = info.Holder(); 1145 v8::Local<v8::Object> holder = info.Holder();
1114 TestObject* impl = V8TestObject::toImpl(holder); 1146 TestObject* impl = V8TestObject::toImpl(holder);
1115 Document* cppValue = V8Document::toImplWithTypeCheck(info.GetIsolate(), v8Va lue); 1147 Document* cppValue = V8Document::toImplWithTypeCheck(info.GetIsolate(), v8Va lue);
1116 impl->setDocumentAttribute(WTF::getPtr(cppValue)); 1148 impl->setDocumentAttribute(WTF::getPtr(cppValue));
1117 } 1149 }
1118 1150
1119 static void documentAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1151 static void documentAttributeAttributeSetterCallback(const v8::FunctionCallbackI nfo<v8::Value>& info)
1120 { 1152 {
1153 v8::Local<v8::Value> v8Value = info[0];
1121 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1154 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1122 TestObjectV8Internal::documentAttributeAttributeSetter(v8Value, info); 1155 TestObjectV8Internal::documentAttributeAttributeSetter(v8Value, info);
1123 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1156 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1124 } 1157 }
1125 1158
1126 static void documentFragmentAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info) 1159 static void documentFragmentAttributeAttributeGetter(const v8::FunctionCallbackI nfo<v8::Value>& info)
1127 { 1160 {
1128 v8::Local<v8::Object> holder = info.Holder(); 1161 v8::Local<v8::Object> holder = info.Holder();
1129 TestObject* impl = V8TestObject::toImpl(holder); 1162 TestObject* impl = V8TestObject::toImpl(holder);
1130 v8SetReturnValueFast(info, WTF::getPtr(impl->documentFragmentAttribute()), i mpl); 1163 v8SetReturnValueFast(info, WTF::getPtr(impl->documentFragmentAttribute()), i mpl);
1131 } 1164 }
1132 1165
1133 static void documentFragmentAttributeAttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info) 1166 static void documentFragmentAttributeAttributeGetterCallback(const v8::FunctionC allbackInfo<v8::Value>& info)
1134 { 1167 {
1135 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1168 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1136 TestObjectV8Internal::documentFragmentAttributeAttributeGetter(info); 1169 TestObjectV8Internal::documentFragmentAttributeAttributeGetter(info);
1137 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1170 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1138 } 1171 }
1139 1172
1140 static void documentFragmentAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::PropertyCallbackInfo<void>& info) 1173 static void documentFragmentAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::FunctionCallbackInfo<v8::Value>& info)
1141 { 1174 {
1142 v8::Local<v8::Object> holder = info.Holder(); 1175 v8::Local<v8::Object> holder = info.Holder();
1143 TestObject* impl = V8TestObject::toImpl(holder); 1176 TestObject* impl = V8TestObject::toImpl(holder);
1144 DocumentFragment* cppValue = V8DocumentFragment::toImplWithTypeCheck(info.Ge tIsolate(), v8Value); 1177 DocumentFragment* cppValue = V8DocumentFragment::toImplWithTypeCheck(info.Ge tIsolate(), v8Value);
1145 impl->setDocumentFragmentAttribute(WTF::getPtr(cppValue)); 1178 impl->setDocumentFragmentAttribute(WTF::getPtr(cppValue));
1146 } 1179 }
1147 1180
1148 static void documentFragmentAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1181 static void documentFragmentAttributeAttributeSetterCallback(const v8::FunctionC allbackInfo<v8::Value>& info)
1149 { 1182 {
1183 v8::Local<v8::Value> v8Value = info[0];
1150 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1184 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1151 TestObjectV8Internal::documentFragmentAttributeAttributeSetter(v8Value, info ); 1185 TestObjectV8Internal::documentFragmentAttributeAttributeSetter(v8Value, info );
1152 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1186 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1153 } 1187 }
1154 1188
1155 static void documentTypeAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info) 1189 static void documentTypeAttributeAttributeGetter(const v8::FunctionCallbackInfo< v8::Value>& info)
1156 { 1190 {
1157 v8::Local<v8::Object> holder = info.Holder(); 1191 v8::Local<v8::Object> holder = info.Holder();
1158 TestObject* impl = V8TestObject::toImpl(holder); 1192 TestObject* impl = V8TestObject::toImpl(holder);
1159 v8SetReturnValueFast(info, WTF::getPtr(impl->documentTypeAttribute()), impl) ; 1193 v8SetReturnValueFast(info, WTF::getPtr(impl->documentTypeAttribute()), impl) ;
1160 } 1194 }
1161 1195
1162 static void documentTypeAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1196 static void documentTypeAttributeAttributeGetterCallback(const v8::FunctionCallb ackInfo<v8::Value>& info)
1163 { 1197 {
1164 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1198 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1165 TestObjectV8Internal::documentTypeAttributeAttributeGetter(info); 1199 TestObjectV8Internal::documentTypeAttributeAttributeGetter(info);
1166 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1200 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1167 } 1201 }
1168 1202
1169 static void documentTypeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info) 1203 static void documentTypeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::FunctionCallbackInfo<v8::Value>& info)
1170 { 1204 {
1171 v8::Local<v8::Object> holder = info.Holder(); 1205 v8::Local<v8::Object> holder = info.Holder();
1172 TestObject* impl = V8TestObject::toImpl(holder); 1206 TestObject* impl = V8TestObject::toImpl(holder);
1173 DocumentType* cppValue = V8DocumentType::toImplWithTypeCheck(info.GetIsolate (), v8Value); 1207 DocumentType* cppValue = V8DocumentType::toImplWithTypeCheck(info.GetIsolate (), v8Value);
1174 impl->setDocumentTypeAttribute(WTF::getPtr(cppValue)); 1208 impl->setDocumentTypeAttribute(WTF::getPtr(cppValue));
1175 } 1209 }
1176 1210
1177 static void documentTypeAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1211 static void documentTypeAttributeAttributeSetterCallback(const v8::FunctionCallb ackInfo<v8::Value>& info)
1178 { 1212 {
1213 v8::Local<v8::Value> v8Value = info[0];
1179 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1214 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1180 TestObjectV8Internal::documentTypeAttributeAttributeSetter(v8Value, info); 1215 TestObjectV8Internal::documentTypeAttributeAttributeSetter(v8Value, info);
1181 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1216 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1182 } 1217 }
1183 1218
1184 static void elementAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info) 1219 static void elementAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::V alue>& info)
1185 { 1220 {
1186 v8::Local<v8::Object> holder = info.Holder(); 1221 v8::Local<v8::Object> holder = info.Holder();
1187 TestObject* impl = V8TestObject::toImpl(holder); 1222 TestObject* impl = V8TestObject::toImpl(holder);
1188 v8SetReturnValueFast(info, WTF::getPtr(impl->elementAttribute()), impl); 1223 v8SetReturnValueFast(info, WTF::getPtr(impl->elementAttribute()), impl);
1189 } 1224 }
1190 1225
1191 static void elementAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1226 static void elementAttributeAttributeGetterCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
1192 { 1227 {
1193 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1228 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1194 TestObjectV8Internal::elementAttributeAttributeGetter(info); 1229 TestObjectV8Internal::elementAttributeAttributeGetter(info);
1195 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1230 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1196 } 1231 }
1197 1232
1198 static void elementAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1233 static void elementAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
1199 { 1234 {
1200 v8::Local<v8::Object> holder = info.Holder(); 1235 v8::Local<v8::Object> holder = info.Holder();
1201 TestObject* impl = V8TestObject::toImpl(holder); 1236 TestObject* impl = V8TestObject::toImpl(holder);
1202 Element* cppValue = V8Element::toImplWithTypeCheck(info.GetIsolate(), v8Valu e); 1237 Element* cppValue = V8Element::toImplWithTypeCheck(info.GetIsolate(), v8Valu e);
1203 impl->setElementAttribute(WTF::getPtr(cppValue)); 1238 impl->setElementAttribute(WTF::getPtr(cppValue));
1204 } 1239 }
1205 1240
1206 static void elementAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::L ocal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1241 static void elementAttributeAttributeSetterCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
1207 { 1242 {
1243 v8::Local<v8::Value> v8Value = info[0];
1208 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1244 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1209 TestObjectV8Internal::elementAttributeAttributeSetter(v8Value, info); 1245 TestObjectV8Internal::elementAttributeAttributeSetter(v8Value, info);
1210 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1246 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1211 } 1247 }
1212 1248
1213 static void nodeAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu e>& info) 1249 static void nodeAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Valu e>& info)
1214 { 1250 {
1215 v8::Local<v8::Object> holder = info.Holder(); 1251 v8::Local<v8::Object> holder = info.Holder();
1216 TestObject* impl = V8TestObject::toImpl(holder); 1252 TestObject* impl = V8TestObject::toImpl(holder);
1217 v8SetReturnValueFast(info, WTF::getPtr(impl->nodeAttribute()), impl); 1253 v8SetReturnValueFast(info, WTF::getPtr(impl->nodeAttribute()), impl);
1218 } 1254 }
1219 1255
1220 static void nodeAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8 ::PropertyCallbackInfo<v8::Value>& info) 1256 static void nodeAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo< v8::Value>& info)
1221 { 1257 {
1222 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1258 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1223 TestObjectV8Internal::nodeAttributeAttributeGetter(info); 1259 TestObjectV8Internal::nodeAttributeAttributeGetter(info);
1224 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1260 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1225 } 1261 }
1226 1262
1227 static void nodeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info) 1263 static void nodeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :FunctionCallbackInfo<v8::Value>& info)
1228 { 1264 {
1229 v8::Local<v8::Object> holder = info.Holder(); 1265 v8::Local<v8::Object> holder = info.Holder();
1230 TestObject* impl = V8TestObject::toImpl(holder); 1266 TestObject* impl = V8TestObject::toImpl(holder);
1231 Node* cppValue = V8Node::toImplWithTypeCheck(info.GetIsolate(), v8Value); 1267 Node* cppValue = V8Node::toImplWithTypeCheck(info.GetIsolate(), v8Value);
1232 impl->setNodeAttribute(WTF::getPtr(cppValue)); 1268 impl->setNodeAttribute(WTF::getPtr(cppValue));
1233 } 1269 }
1234 1270
1235 static void nodeAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1271 static void nodeAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo< v8::Value>& info)
1236 { 1272 {
1273 v8::Local<v8::Value> v8Value = info[0];
1237 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1274 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1238 TestObjectV8Internal::nodeAttributeAttributeSetter(v8Value, info); 1275 TestObjectV8Internal::nodeAttributeAttributeSetter(v8Value, info);
1239 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1276 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1240 } 1277 }
1241 1278
1242 static void shadowRootAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info) 1279 static void shadowRootAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8 ::Value>& info)
1243 { 1280 {
1244 v8::Local<v8::Object> holder = info.Holder(); 1281 v8::Local<v8::Object> holder = info.Holder();
1245 TestObject* impl = V8TestObject::toImpl(holder); 1282 TestObject* impl = V8TestObject::toImpl(holder);
1246 v8SetReturnValueFast(info, WTF::getPtr(impl->shadowRootAttribute()), impl); 1283 v8SetReturnValueFast(info, WTF::getPtr(impl->shadowRootAttribute()), impl);
1247 } 1284 }
1248 1285
1249 static void shadowRootAttributeAttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info) 1286 static void shadowRootAttributeAttributeGetterCallback(const v8::FunctionCallbac kInfo<v8::Value>& info)
1250 { 1287 {
1251 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1288 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1252 TestObjectV8Internal::shadowRootAttributeAttributeGetter(info); 1289 TestObjectV8Internal::shadowRootAttributeAttributeGetter(info);
1253 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1290 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1254 } 1291 }
1255 1292
1256 static void shadowRootAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info) 1293 static void shadowRootAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::FunctionCallbackInfo<v8::Value>& info)
1257 { 1294 {
1258 v8::Local<v8::Object> holder = info.Holder(); 1295 v8::Local<v8::Object> holder = info.Holder();
1259 TestObject* impl = V8TestObject::toImpl(holder); 1296 TestObject* impl = V8TestObject::toImpl(holder);
1260 ShadowRoot* cppValue = V8ShadowRoot::toImplWithTypeCheck(info.GetIsolate(), v8Value); 1297 ShadowRoot* cppValue = V8ShadowRoot::toImplWithTypeCheck(info.GetIsolate(), v8Value);
1261 impl->setShadowRootAttribute(WTF::getPtr(cppValue)); 1298 impl->setShadowRootAttribute(WTF::getPtr(cppValue));
1262 } 1299 }
1263 1300
1264 static void shadowRootAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1301 static void shadowRootAttributeAttributeSetterCallback(const v8::FunctionCallbac kInfo<v8::Value>& info)
1265 { 1302 {
1303 v8::Local<v8::Value> v8Value = info[0];
1266 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1304 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1267 TestObjectV8Internal::shadowRootAttributeAttributeSetter(v8Value, info); 1305 TestObjectV8Internal::shadowRootAttributeAttributeSetter(v8Value, info);
1268 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1306 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1269 } 1307 }
1270 1308
1271 static void arrayBufferAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info) 1309 static void arrayBufferAttributeAttributeGetter(const v8::FunctionCallbackInfo<v 8::Value>& info)
1272 { 1310 {
1273 v8::Local<v8::Object> holder = info.Holder(); 1311 v8::Local<v8::Object> holder = info.Holder();
1274 TestObject* impl = V8TestObject::toImpl(holder); 1312 TestObject* impl = V8TestObject::toImpl(holder);
1275 v8SetReturnValueFast(info, WTF::getPtr(impl->arrayBufferAttribute()), impl); 1313 v8SetReturnValueFast(info, WTF::getPtr(impl->arrayBufferAttribute()), impl);
1276 } 1314 }
1277 1315
1278 static void arrayBufferAttributeAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info) 1316 static void arrayBufferAttributeAttributeGetterCallback(const v8::FunctionCallba ckInfo<v8::Value>& info)
1279 { 1317 {
1280 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1318 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1281 TestObjectV8Internal::arrayBufferAttributeAttributeGetter(info); 1319 TestObjectV8Internal::arrayBufferAttributeAttributeGetter(info);
1282 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1320 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1283 } 1321 }
1284 1322
1285 static void arrayBufferAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& info) 1323 static void arrayBufferAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::FunctionCallbackInfo<v8::Value>& info)
1286 { 1324 {
1287 v8::Local<v8::Object> holder = info.Holder(); 1325 v8::Local<v8::Object> holder = info.Holder();
1288 TestObject* impl = V8TestObject::toImpl(holder); 1326 TestObject* impl = V8TestObject::toImpl(holder);
1289 TestArrayBuffer* cppValue = v8Value->IsArrayBuffer() ? V8ArrayBuffer::toImpl (v8::Local<v8::ArrayBuffer>::Cast(v8Value)) : 0; 1327 TestArrayBuffer* cppValue = v8Value->IsArrayBuffer() ? V8ArrayBuffer::toImpl (v8::Local<v8::ArrayBuffer>::Cast(v8Value)) : 0;
1290 impl->setArrayBufferAttribute(WTF::getPtr(cppValue)); 1328 impl->setArrayBufferAttribute(WTF::getPtr(cppValue));
1291 } 1329 }
1292 1330
1293 static void arrayBufferAttributeAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1331 static void arrayBufferAttributeAttributeSetterCallback(const v8::FunctionCallba ckInfo<v8::Value>& info)
1294 { 1332 {
1333 v8::Local<v8::Value> v8Value = info[0];
1295 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1334 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1296 TestObjectV8Internal::arrayBufferAttributeAttributeSetter(v8Value, info); 1335 TestObjectV8Internal::arrayBufferAttributeAttributeSetter(v8Value, info);
1297 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1336 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1298 } 1337 }
1299 1338
1300 static void float32ArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info) 1339 static void float32ArrayAttributeAttributeGetter(const v8::FunctionCallbackInfo< v8::Value>& info)
1301 { 1340 {
1302 v8::Local<v8::Object> holder = info.Holder(); 1341 v8::Local<v8::Object> holder = info.Holder();
1303 TestObject* impl = V8TestObject::toImpl(holder); 1342 TestObject* impl = V8TestObject::toImpl(holder);
1304 v8SetReturnValueFast(info, WTF::getPtr(impl->float32ArrayAttribute()), impl) ; 1343 v8SetReturnValueFast(info, WTF::getPtr(impl->float32ArrayAttribute()), impl) ;
1305 } 1344 }
1306 1345
1307 static void float32ArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1346 static void float32ArrayAttributeAttributeGetterCallback(const v8::FunctionCallb ackInfo<v8::Value>& info)
1308 { 1347 {
1309 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1348 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1310 TestObjectV8Internal::float32ArrayAttributeAttributeGetter(info); 1349 TestObjectV8Internal::float32ArrayAttributeAttributeGetter(info);
1311 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1350 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1312 } 1351 }
1313 1352
1314 static void float32ArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info) 1353 static void float32ArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::FunctionCallbackInfo<v8::Value>& info)
1315 { 1354 {
1316 v8::Local<v8::Object> holder = info.Holder(); 1355 v8::Local<v8::Object> holder = info.Holder();
1317 TestObject* impl = V8TestObject::toImpl(holder); 1356 TestObject* impl = V8TestObject::toImpl(holder);
1318 DOMFloat32Array* cppValue = v8Value->IsFloat32Array() ? V8Float32Array::toIm pl(v8::Local<v8::Float32Array>::Cast(v8Value)) : 0; 1357 DOMFloat32Array* cppValue = v8Value->IsFloat32Array() ? V8Float32Array::toIm pl(v8::Local<v8::Float32Array>::Cast(v8Value)) : 0;
1319 impl->setFloat32ArrayAttribute(WTF::getPtr(cppValue)); 1358 impl->setFloat32ArrayAttribute(WTF::getPtr(cppValue));
1320 } 1359 }
1321 1360
1322 static void float32ArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1361 static void float32ArrayAttributeAttributeSetterCallback(const v8::FunctionCallb ackInfo<v8::Value>& info)
1323 { 1362 {
1363 v8::Local<v8::Value> v8Value = info[0];
1324 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1364 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1325 TestObjectV8Internal::float32ArrayAttributeAttributeSetter(v8Value, info); 1365 TestObjectV8Internal::float32ArrayAttributeAttributeSetter(v8Value, info);
1326 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1366 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1327 } 1367 }
1328 1368
1329 static void uint8ArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info) 1369 static void uint8ArrayAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8 ::Value>& info)
1330 { 1370 {
1331 v8::Local<v8::Object> holder = info.Holder(); 1371 v8::Local<v8::Object> holder = info.Holder();
1332 TestObject* impl = V8TestObject::toImpl(holder); 1372 TestObject* impl = V8TestObject::toImpl(holder);
1333 v8SetReturnValueFast(info, WTF::getPtr(impl->uint8ArrayAttribute()), impl); 1373 v8SetReturnValueFast(info, WTF::getPtr(impl->uint8ArrayAttribute()), impl);
1334 } 1374 }
1335 1375
1336 static void uint8ArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info) 1376 static void uint8ArrayAttributeAttributeGetterCallback(const v8::FunctionCallbac kInfo<v8::Value>& info)
1337 { 1377 {
1338 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1378 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1339 TestObjectV8Internal::uint8ArrayAttributeAttributeGetter(info); 1379 TestObjectV8Internal::uint8ArrayAttributeAttributeGetter(info);
1340 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1380 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1341 } 1381 }
1342 1382
1343 static void uint8ArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info) 1383 static void uint8ArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::FunctionCallbackInfo<v8::Value>& info)
1344 { 1384 {
1345 v8::Local<v8::Object> holder = info.Holder(); 1385 v8::Local<v8::Object> holder = info.Holder();
1346 TestObject* impl = V8TestObject::toImpl(holder); 1386 TestObject* impl = V8TestObject::toImpl(holder);
1347 DOMUint8Array* cppValue = v8Value->IsUint8Array() ? V8Uint8Array::toImpl(v8: :Local<v8::Uint8Array>::Cast(v8Value)) : 0; 1387 DOMUint8Array* cppValue = v8Value->IsUint8Array() ? V8Uint8Array::toImpl(v8: :Local<v8::Uint8Array>::Cast(v8Value)) : 0;
1348 impl->setUint8ArrayAttribute(WTF::getPtr(cppValue)); 1388 impl->setUint8ArrayAttribute(WTF::getPtr(cppValue));
1349 } 1389 }
1350 1390
1351 static void uint8ArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1391 static void uint8ArrayAttributeAttributeSetterCallback(const v8::FunctionCallbac kInfo<v8::Value>& info)
1352 { 1392 {
1393 v8::Local<v8::Value> v8Value = info[0];
1353 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1394 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1354 TestObjectV8Internal::uint8ArrayAttributeAttributeSetter(v8Value, info); 1395 TestObjectV8Internal::uint8ArrayAttributeAttributeSetter(v8Value, info);
1355 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1396 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1356 } 1397 }
1357 1398
1358 static void selfAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 1399 static void selfAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info)
1359 { 1400 {
1360 v8::Local<v8::Object> holder = info.Holder(); 1401 v8::Local<v8::Object> holder = info.Holder();
1361 TestObject* impl = V8TestObject::toImpl(holder); 1402 TestObject* impl = V8TestObject::toImpl(holder);
1362 v8SetReturnValueFast(info, WTF::getPtr(impl->self()), impl); 1403 v8SetReturnValueFast(info, WTF::getPtr(impl->self()), impl);
1363 } 1404 }
1364 1405
1365 static void selfAttributeGetterCallback(v8::Local<v8::String>, const v8::Propert yCallbackInfo<v8::Value>& info) 1406 static void selfAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value >& info)
1366 { 1407 {
1367 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1408 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1368 TestObjectV8Internal::selfAttributeGetter(info); 1409 TestObjectV8Internal::selfAttributeGetter(info);
1369 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1410 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1370 } 1411 }
1371 1412
1372 static void readonlyEventTargetAttributeAttributeGetter(const v8::PropertyCallba ckInfo<v8::Value>& info) 1413 static void readonlyEventTargetAttributeAttributeGetter(const v8::FunctionCallba ckInfo<v8::Value>& info)
1373 { 1414 {
1374 v8::Local<v8::Object> holder = info.Holder(); 1415 v8::Local<v8::Object> holder = info.Holder();
1375 TestObject* impl = V8TestObject::toImpl(holder); 1416 TestObject* impl = V8TestObject::toImpl(holder);
1376 v8SetReturnValueFast(info, WTF::getPtr(impl->readonlyEventTargetAttribute()) , impl); 1417 v8SetReturnValueFast(info, WTF::getPtr(impl->readonlyEventTargetAttribute()) , impl);
1377 } 1418 }
1378 1419
1379 static void readonlyEventTargetAttributeAttributeGetterCallback(v8::Local<v8::St ring>, const v8::PropertyCallbackInfo<v8::Value>& info) 1420 static void readonlyEventTargetAttributeAttributeGetterCallback(const v8::Functi onCallbackInfo<v8::Value>& info)
1380 { 1421 {
1381 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1422 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1382 TestObjectV8Internal::readonlyEventTargetAttributeAttributeGetter(info); 1423 TestObjectV8Internal::readonlyEventTargetAttributeAttributeGetter(info);
1383 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1424 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1384 } 1425 }
1385 1426
1386 static void readonlyEventTargetOrNullAttributeAttributeGetter(const v8::Property CallbackInfo<v8::Value>& info) 1427 static void readonlyEventTargetOrNullAttributeAttributeGetter(const v8::Function CallbackInfo<v8::Value>& info)
1387 { 1428 {
1388 v8::Local<v8::Object> holder = info.Holder(); 1429 v8::Local<v8::Object> holder = info.Holder();
1389 TestObject* impl = V8TestObject::toImpl(holder); 1430 TestObject* impl = V8TestObject::toImpl(holder);
1390 v8SetReturnValueFast(info, WTF::getPtr(impl->readonlyEventTargetOrNullAttrib ute()), impl); 1431 v8SetReturnValueFast(info, WTF::getPtr(impl->readonlyEventTargetOrNullAttrib ute()), impl);
1391 } 1432 }
1392 1433
1393 static void readonlyEventTargetOrNullAttributeAttributeGetterCallback(v8::Local< v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1434 static void readonlyEventTargetOrNullAttributeAttributeGetterCallback(const v8:: FunctionCallbackInfo<v8::Value>& info)
1394 { 1435 {
1395 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1436 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1396 TestObjectV8Internal::readonlyEventTargetOrNullAttributeAttributeGetter(info ); 1437 TestObjectV8Internal::readonlyEventTargetOrNullAttributeAttributeGetter(info );
1397 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1438 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1398 } 1439 }
1399 1440
1400 static void readonlyWindowAttributeAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info) 1441 static void readonlyWindowAttributeAttributeGetter(const v8::FunctionCallbackInf o<v8::Value>& info)
1401 { 1442 {
1402 v8::Local<v8::Object> holder = info.Holder(); 1443 v8::Local<v8::Object> holder = info.Holder();
1403 TestObject* impl = V8TestObject::toImpl(holder); 1444 TestObject* impl = V8TestObject::toImpl(holder);
1404 v8SetReturnValueFast(info, WTF::getPtr(impl->readonlyWindowAttribute()), imp l); 1445 v8SetReturnValueFast(info, WTF::getPtr(impl->readonlyWindowAttribute()), imp l);
1405 } 1446 }
1406 1447
1407 static void readonlyWindowAttributeAttributeGetterCallback(v8::Local<v8::String> , const v8::PropertyCallbackInfo<v8::Value>& info) 1448 static void readonlyWindowAttributeAttributeGetterCallback(const v8::FunctionCal lbackInfo<v8::Value>& info)
1408 { 1449 {
1409 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1450 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1410 TestObjectV8Internal::readonlyWindowAttributeAttributeGetter(info); 1451 TestObjectV8Internal::readonlyWindowAttributeAttributeGetter(info);
1411 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1452 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1412 } 1453 }
1413 1454
1414 static void htmlCollectionAttributeAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info) 1455 static void htmlCollectionAttributeAttributeGetter(const v8::FunctionCallbackInf o<v8::Value>& info)
1415 { 1456 {
1416 v8::Local<v8::Object> holder = info.Holder(); 1457 v8::Local<v8::Object> holder = info.Holder();
1417 TestObject* impl = V8TestObject::toImpl(holder); 1458 TestObject* impl = V8TestObject::toImpl(holder);
1418 v8SetReturnValueFast(info, WTF::getPtr(impl->htmlCollectionAttribute()), imp l); 1459 v8SetReturnValueFast(info, WTF::getPtr(impl->htmlCollectionAttribute()), imp l);
1419 } 1460 }
1420 1461
1421 static void htmlCollectionAttributeAttributeGetterCallback(v8::Local<v8::String> , const v8::PropertyCallbackInfo<v8::Value>& info) 1462 static void htmlCollectionAttributeAttributeGetterCallback(const v8::FunctionCal lbackInfo<v8::Value>& info)
1422 { 1463 {
1423 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1464 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1424 TestObjectV8Internal::htmlCollectionAttributeAttributeGetter(info); 1465 TestObjectV8Internal::htmlCollectionAttributeAttributeGetter(info);
1425 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1466 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1426 } 1467 }
1427 1468
1428 static void htmlElementAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info) 1469 static void htmlElementAttributeAttributeGetter(const v8::FunctionCallbackInfo<v 8::Value>& info)
1429 { 1470 {
1430 v8::Local<v8::Object> holder = info.Holder(); 1471 v8::Local<v8::Object> holder = info.Holder();
1431 TestObject* impl = V8TestObject::toImpl(holder); 1472 TestObject* impl = V8TestObject::toImpl(holder);
1432 v8SetReturnValueFast(info, WTF::getPtr(impl->htmlElementAttribute()), impl); 1473 v8SetReturnValueFast(info, WTF::getPtr(impl->htmlElementAttribute()), impl);
1433 } 1474 }
1434 1475
1435 static void htmlElementAttributeAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info) 1476 static void htmlElementAttributeAttributeGetterCallback(const v8::FunctionCallba ckInfo<v8::Value>& info)
1436 { 1477 {
1437 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1478 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1438 TestObjectV8Internal::htmlElementAttributeAttributeGetter(info); 1479 TestObjectV8Internal::htmlElementAttributeAttributeGetter(info);
1439 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1480 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1440 } 1481 }
1441 1482
1442 static void stringArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info) 1483 static void stringArrayAttributeAttributeGetter(const v8::FunctionCallbackInfo<v 8::Value>& info)
1443 { 1484 {
1444 v8::Local<v8::Object> holder = info.Holder(); 1485 v8::Local<v8::Object> holder = info.Holder();
1445 TestObject* impl = V8TestObject::toImpl(holder); 1486 TestObject* impl = V8TestObject::toImpl(holder);
1446 v8SetReturnValue(info, toV8(impl->stringArrayAttribute(), info.Holder(), inf o.GetIsolate())); 1487 v8SetReturnValue(info, toV8(impl->stringArrayAttribute(), info.Holder(), inf o.GetIsolate()));
1447 } 1488 }
1448 1489
1449 static void stringArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info) 1490 static void stringArrayAttributeAttributeGetterCallback(const v8::FunctionCallba ckInfo<v8::Value>& info)
1450 { 1491 {
1451 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1492 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1452 TestObjectV8Internal::stringArrayAttributeAttributeGetter(info); 1493 TestObjectV8Internal::stringArrayAttributeAttributeGetter(info);
1453 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1494 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1454 } 1495 }
1455 1496
1456 static void stringArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& info) 1497 static void stringArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::FunctionCallbackInfo<v8::Value>& info)
1457 { 1498 {
1458 v8::Local<v8::Object> holder = info.Holder(); 1499 v8::Local<v8::Object> holder = info.Holder();
1459 ExceptionState exceptionState(ExceptionState::SetterContext, "stringArrayAtt ribute", "TestObject", holder, info.GetIsolate()); 1500 ExceptionState exceptionState(ExceptionState::SetterContext, "stringArrayAtt ribute", "TestObject", holder, info.GetIsolate());
1460 TestObject* impl = V8TestObject::toImpl(holder); 1501 TestObject* impl = V8TestObject::toImpl(holder);
1461 TONATIVE_VOID_EXCEPTIONSTATE(Vector<String>, cppValue, toImplArray<String>(v 8Value, 0, info.GetIsolate(), exceptionState), exceptionState); 1502 TONATIVE_VOID_EXCEPTIONSTATE(Vector<String>, cppValue, toImplArray<String>(v 8Value, 0, info.GetIsolate(), exceptionState), exceptionState);
1462 impl->setStringArrayAttribute(cppValue); 1503 impl->setStringArrayAttribute(cppValue);
1463 } 1504 }
1464 1505
1465 static void stringArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1506 static void stringArrayAttributeAttributeSetterCallback(const v8::FunctionCallba ckInfo<v8::Value>& info)
1466 { 1507 {
1508 v8::Local<v8::Value> v8Value = info[0];
1467 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1509 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1468 TestObjectV8Internal::stringArrayAttributeAttributeSetter(v8Value, info); 1510 TestObjectV8Internal::stringArrayAttributeAttributeSetter(v8Value, info);
1469 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1511 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1470 } 1512 }
1471 1513
1472 static void testInterfaceEmptyArrayAttributeAttributeGetter(const v8::PropertyCa llbackInfo<v8::Value>& info) 1514 static void testInterfaceEmptyArrayAttributeAttributeGetter(const v8::FunctionCa llbackInfo<v8::Value>& info)
1473 { 1515 {
1474 v8::Local<v8::Object> holder = info.Holder(); 1516 v8::Local<v8::Object> holder = info.Holder();
1475 TestObject* impl = V8TestObject::toImpl(holder); 1517 TestObject* impl = V8TestObject::toImpl(holder);
1476 v8SetReturnValue(info, toV8(impl->testInterfaceEmptyArrayAttribute(), info.H older(), info.GetIsolate())); 1518 v8SetReturnValue(info, toV8(impl->testInterfaceEmptyArrayAttribute(), info.H older(), info.GetIsolate()));
1477 } 1519 }
1478 1520
1479 static void testInterfaceEmptyArrayAttributeAttributeGetterCallback(v8::Local<v8 ::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1521 static void testInterfaceEmptyArrayAttributeAttributeGetterCallback(const v8::Fu nctionCallbackInfo<v8::Value>& info)
1480 { 1522 {
1481 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1523 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1482 TestObjectV8Internal::testInterfaceEmptyArrayAttributeAttributeGetter(info); 1524 TestObjectV8Internal::testInterfaceEmptyArrayAttributeAttributeGetter(info);
1483 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1525 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1484 } 1526 }
1485 1527
1486 static void testInterfaceEmptyArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1528 static void testInterfaceEmptyArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
1487 { 1529 {
1488 v8::Local<v8::Object> holder = info.Holder(); 1530 v8::Local<v8::Object> holder = info.Holder();
1489 ExceptionState exceptionState(ExceptionState::SetterContext, "testInterfaceE mptyArrayAttribute", "TestObject", holder, info.GetIsolate()); 1531 ExceptionState exceptionState(ExceptionState::SetterContext, "testInterfaceE mptyArrayAttribute", "TestObject", holder, info.GetIsolate());
1490 TestObject* impl = V8TestObject::toImpl(holder); 1532 TestObject* impl = V8TestObject::toImpl(holder);
1491 TONATIVE_VOID_EXCEPTIONSTATE(Vector<RefPtr<TestInterfaceEmpty> >, cppValue, (toRefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(v8Value, 0, info. GetIsolate(), exceptionState)), exceptionState); 1533 TONATIVE_VOID_EXCEPTIONSTATE(Vector<RefPtr<TestInterfaceEmpty> >, cppValue, (toRefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(v8Value, 0, info. GetIsolate(), exceptionState)), exceptionState);
1492 impl->setTestInterfaceEmptyArrayAttribute(cppValue); 1534 impl->setTestInterfaceEmptyArrayAttribute(cppValue);
1493 } 1535 }
1494 1536
1495 static void testInterfaceEmptyArrayAttributeAttributeSetterCallback(v8::Local<v8 ::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& i nfo) 1537 static void testInterfaceEmptyArrayAttributeAttributeSetterCallback(const v8::Fu nctionCallbackInfo<v8::Value>& info)
1496 { 1538 {
1539 v8::Local<v8::Value> v8Value = info[0];
1497 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1540 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1498 TestObjectV8Internal::testInterfaceEmptyArrayAttributeAttributeSetter(v8Valu e, info); 1541 TestObjectV8Internal::testInterfaceEmptyArrayAttributeAttributeSetter(v8Valu e, info);
1499 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1542 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1500 } 1543 }
1501 1544
1502 static void floatArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info) 1545 static void floatArrayAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8 ::Value>& info)
1503 { 1546 {
1504 v8::Local<v8::Object> holder = info.Holder(); 1547 v8::Local<v8::Object> holder = info.Holder();
1505 TestObject* impl = V8TestObject::toImpl(holder); 1548 TestObject* impl = V8TestObject::toImpl(holder);
1506 v8SetReturnValue(info, toV8(impl->floatArrayAttribute(), info.Holder(), info .GetIsolate())); 1549 v8SetReturnValue(info, toV8(impl->floatArrayAttribute(), info.Holder(), info .GetIsolate()));
1507 } 1550 }
1508 1551
1509 static void floatArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info) 1552 static void floatArrayAttributeAttributeGetterCallback(const v8::FunctionCallbac kInfo<v8::Value>& info)
1510 { 1553 {
1511 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1554 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1512 TestObjectV8Internal::floatArrayAttributeAttributeGetter(info); 1555 TestObjectV8Internal::floatArrayAttributeAttributeGetter(info);
1513 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1556 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1514 } 1557 }
1515 1558
1516 static void floatArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info) 1559 static void floatArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::FunctionCallbackInfo<v8::Value>& info)
1517 { 1560 {
1518 v8::Local<v8::Object> holder = info.Holder(); 1561 v8::Local<v8::Object> holder = info.Holder();
1519 ExceptionState exceptionState(ExceptionState::SetterContext, "floatArrayAttr ibute", "TestObject", holder, info.GetIsolate()); 1562 ExceptionState exceptionState(ExceptionState::SetterContext, "floatArrayAttr ibute", "TestObject", holder, info.GetIsolate());
1520 TestObject* impl = V8TestObject::toImpl(holder); 1563 TestObject* impl = V8TestObject::toImpl(holder);
1521 TONATIVE_VOID_EXCEPTIONSTATE(Vector<float>, cppValue, toImplArray<float>(v8V alue, 0, info.GetIsolate(), exceptionState), exceptionState); 1564 TONATIVE_VOID_EXCEPTIONSTATE(Vector<float>, cppValue, toImplArray<float>(v8V alue, 0, info.GetIsolate(), exceptionState), exceptionState);
1522 impl->setFloatArrayAttribute(cppValue); 1565 impl->setFloatArrayAttribute(cppValue);
1523 } 1566 }
1524 1567
1525 static void floatArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1568 static void floatArrayAttributeAttributeSetterCallback(const v8::FunctionCallbac kInfo<v8::Value>& info)
1526 { 1569 {
1570 v8::Local<v8::Value> v8Value = info[0];
1527 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1571 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1528 TestObjectV8Internal::floatArrayAttributeAttributeSetter(v8Value, info); 1572 TestObjectV8Internal::floatArrayAttributeAttributeSetter(v8Value, info);
1529 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1573 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1530 } 1574 }
1531 1575
1532 static void stringOrNullAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info) 1576 static void stringOrNullAttributeAttributeGetter(const v8::FunctionCallbackInfo< v8::Value>& info)
1533 { 1577 {
1534 v8::Local<v8::Object> holder = info.Holder(); 1578 v8::Local<v8::Object> holder = info.Holder();
1535 TestObject* impl = V8TestObject::toImpl(holder); 1579 TestObject* impl = V8TestObject::toImpl(holder);
1536 v8SetReturnValueStringOrNull(info, impl->stringOrNullAttribute(), info.GetIs olate()); 1580 v8SetReturnValueStringOrNull(info, impl->stringOrNullAttribute(), info.GetIs olate());
1537 } 1581 }
1538 1582
1539 static void stringOrNullAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1583 static void stringOrNullAttributeAttributeGetterCallback(const v8::FunctionCallb ackInfo<v8::Value>& info)
1540 { 1584 {
1541 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1585 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1542 TestObjectV8Internal::stringOrNullAttributeAttributeGetter(info); 1586 TestObjectV8Internal::stringOrNullAttributeAttributeGetter(info);
1543 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1587 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1544 } 1588 }
1545 1589
1546 static void stringOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info) 1590 static void stringOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::FunctionCallbackInfo<v8::Value>& info)
1547 { 1591 {
1548 v8::Local<v8::Object> holder = info.Holder(); 1592 v8::Local<v8::Object> holder = info.Holder();
1549 TestObject* impl = V8TestObject::toImpl(holder); 1593 TestObject* impl = V8TestObject::toImpl(holder);
1550 TOSTRING_VOID(V8StringResource<TreatNullAsNullString>, cppValue, v8Value); 1594 TOSTRING_VOID(V8StringResource<TreatNullAsNullString>, cppValue, v8Value);
1551 impl->setStringOrNullAttribute(cppValue); 1595 impl->setStringOrNullAttribute(cppValue);
1552 } 1596 }
1553 1597
1554 static void stringOrNullAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1598 static void stringOrNullAttributeAttributeSetterCallback(const v8::FunctionCallb ackInfo<v8::Value>& info)
1555 { 1599 {
1600 v8::Local<v8::Value> v8Value = info[0];
1556 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1601 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1557 TestObjectV8Internal::stringOrNullAttributeAttributeSetter(v8Value, info); 1602 TestObjectV8Internal::stringOrNullAttributeAttributeSetter(v8Value, info);
1558 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1603 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1559 } 1604 }
1560 1605
1561 static void longOrNullAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info) 1606 static void longOrNullAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8 ::Value>& info)
1562 { 1607 {
1563 v8::Local<v8::Object> holder = info.Holder(); 1608 v8::Local<v8::Object> holder = info.Holder();
1564 TestObject* impl = V8TestObject::toImpl(holder); 1609 TestObject* impl = V8TestObject::toImpl(holder);
1565 bool isNull = false; 1610 bool isNull = false;
1566 int cppValue(impl->longOrNullAttribute(isNull)); 1611 int cppValue(impl->longOrNullAttribute(isNull));
1567 if (isNull) { 1612 if (isNull) {
1568 v8SetReturnValueNull(info); 1613 v8SetReturnValueNull(info);
1569 return; 1614 return;
1570 } 1615 }
1571 v8SetReturnValueInt(info, cppValue); 1616 v8SetReturnValueInt(info, cppValue);
1572 } 1617 }
1573 1618
1574 static void longOrNullAttributeAttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info) 1619 static void longOrNullAttributeAttributeGetterCallback(const v8::FunctionCallbac kInfo<v8::Value>& info)
1575 { 1620 {
1576 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1621 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1577 TestObjectV8Internal::longOrNullAttributeAttributeGetter(info); 1622 TestObjectV8Internal::longOrNullAttributeAttributeGetter(info);
1578 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1623 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1579 } 1624 }
1580 1625
1581 static void longOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info) 1626 static void longOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::FunctionCallbackInfo<v8::Value>& info)
1582 { 1627 {
1583 v8::Local<v8::Object> holder = info.Holder(); 1628 v8::Local<v8::Object> holder = info.Holder();
1584 ExceptionState exceptionState(ExceptionState::SetterContext, "longOrNullAttr ibute", "TestObject", holder, info.GetIsolate()); 1629 ExceptionState exceptionState(ExceptionState::SetterContext, "longOrNullAttr ibute", "TestObject", holder, info.GetIsolate());
1585 TestObject* impl = V8TestObject::toImpl(holder); 1630 TestObject* impl = V8TestObject::toImpl(holder);
1586 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 1631 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
1587 impl->setLongOrNullAttribute(cppValue); 1632 impl->setLongOrNullAttribute(cppValue);
1588 } 1633 }
1589 1634
1590 static void longOrNullAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1635 static void longOrNullAttributeAttributeSetterCallback(const v8::FunctionCallbac kInfo<v8::Value>& info)
1591 { 1636 {
1637 v8::Local<v8::Value> v8Value = info[0];
1592 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1638 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1593 TestObjectV8Internal::longOrNullAttributeAttributeSetter(v8Value, info); 1639 TestObjectV8Internal::longOrNullAttributeAttributeSetter(v8Value, info);
1594 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1640 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1595 } 1641 }
1596 1642
1597 static void testInterfaceOrNullAttributeAttributeGetter(const v8::PropertyCallba ckInfo<v8::Value>& info) 1643 static void testInterfaceOrNullAttributeAttributeGetter(const v8::FunctionCallba ckInfo<v8::Value>& info)
1598 { 1644 {
1599 v8::Local<v8::Object> holder = info.Holder(); 1645 v8::Local<v8::Object> holder = info.Holder();
1600 TestObject* impl = V8TestObject::toImpl(holder); 1646 TestObject* impl = V8TestObject::toImpl(holder);
1601 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceOrNullAttribute()) , impl); 1647 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceOrNullAttribute()) , impl);
1602 } 1648 }
1603 1649
1604 static void testInterfaceOrNullAttributeAttributeGetterCallback(v8::Local<v8::St ring>, const v8::PropertyCallbackInfo<v8::Value>& info) 1650 static void testInterfaceOrNullAttributeAttributeGetterCallback(const v8::Functi onCallbackInfo<v8::Value>& info)
1605 { 1651 {
1606 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1652 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1607 TestObjectV8Internal::testInterfaceOrNullAttributeAttributeGetter(info); 1653 TestObjectV8Internal::testInterfaceOrNullAttributeAttributeGetter(info);
1608 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1654 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1609 } 1655 }
1610 1656
1611 static void testInterfaceOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8V alue, const v8::PropertyCallbackInfo<void>& info) 1657 static void testInterfaceOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8V alue, const v8::FunctionCallbackInfo<v8::Value>& info)
1612 { 1658 {
1613 v8::Local<v8::Object> holder = info.Holder(); 1659 v8::Local<v8::Object> holder = info.Holder();
1614 TestObject* impl = V8TestObject::toImpl(holder); 1660 TestObject* impl = V8TestObject::toImpl(holder);
1615 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck (info.GetIsolate(), v8Value); 1661 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck (info.GetIsolate(), v8Value);
1616 impl->setTestInterfaceOrNullAttribute(WTF::getPtr(cppValue)); 1662 impl->setTestInterfaceOrNullAttribute(WTF::getPtr(cppValue));
1617 } 1663 }
1618 1664
1619 static void testInterfaceOrNullAttributeAttributeSetterCallback(v8::Local<v8::St ring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1665 static void testInterfaceOrNullAttributeAttributeSetterCallback(const v8::Functi onCallbackInfo<v8::Value>& info)
1620 { 1666 {
1667 v8::Local<v8::Value> v8Value = info[0];
1621 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1668 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1622 TestObjectV8Internal::testInterfaceOrNullAttributeAttributeSetter(v8Value, i nfo); 1669 TestObjectV8Internal::testInterfaceOrNullAttributeAttributeSetter(v8Value, i nfo);
1623 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1670 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1624 } 1671 }
1625 1672
1626 static void testEnumAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8:: Value>& info) 1673 static void testEnumAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8:: Value>& info)
1627 { 1674 {
1628 v8::Local<v8::Object> holder = info.Holder(); 1675 v8::Local<v8::Object> holder = info.Holder();
1629 TestObject* impl = V8TestObject::toImpl(holder); 1676 TestObject* impl = V8TestObject::toImpl(holder);
1630 v8SetReturnValueString(info, impl->testEnumAttribute(), info.GetIsolate()); 1677 v8SetReturnValueString(info, impl->testEnumAttribute(), info.GetIsolate());
1631 } 1678 }
1632 1679
1633 static void testEnumAttributeAttributeGetterCallback(v8::Local<v8::String>, cons t v8::PropertyCallbackInfo<v8::Value>& info) 1680 static void testEnumAttributeAttributeGetterCallback(const v8::FunctionCallbackI nfo<v8::Value>& info)
1634 { 1681 {
1635 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1682 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1636 TestObjectV8Internal::testEnumAttributeAttributeGetter(info); 1683 TestObjectV8Internal::testEnumAttributeAttributeGetter(info);
1637 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1684 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1638 } 1685 }
1639 1686
1640 static void testEnumAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1687 static void testEnumAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
1641 { 1688 {
1642 v8::Local<v8::Object> holder = info.Holder(); 1689 v8::Local<v8::Object> holder = info.Holder();
1643 TestObject* impl = V8TestObject::toImpl(holder); 1690 TestObject* impl = V8TestObject::toImpl(holder);
1644 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 1691 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
1645 String string = cppValue; 1692 String string = cppValue;
1646 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || st ring == "EnumValue3")) 1693 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || st ring == "EnumValue3"))
1647 return; 1694 return;
1648 impl->setTestEnumAttribute(cppValue); 1695 impl->setTestEnumAttribute(cppValue);
1649 } 1696 }
1650 1697
1651 static void testEnumAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1698 static void testEnumAttributeAttributeSetterCallback(const v8::FunctionCallbackI nfo<v8::Value>& info)
1652 { 1699 {
1700 v8::Local<v8::Value> v8Value = info[0];
1653 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1701 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1654 TestObjectV8Internal::testEnumAttributeAttributeSetter(v8Value, info); 1702 TestObjectV8Internal::testEnumAttributeAttributeSetter(v8Value, info);
1655 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1703 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1656 } 1704 }
1657 1705
1658 static void staticStringAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info) 1706 static void staticStringAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info)
1659 { 1707 {
1660 v8SetReturnValueString(info, TestObject::staticStringAttribute(), info.GetIs olate()); 1708 v8SetReturnValueString(info, TestObject::staticStringAttribute(), info.GetIs olate());
1661 } 1709 }
1662 1710
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
1729 impl->setEventHandlerAttribute(V8EventListenerList::getEventListener(ScriptS tate::current(info.GetIsolate()), v8Value, true, ListenerFindOrCreate)); 1777 impl->setEventHandlerAttribute(V8EventListenerList::getEventListener(ScriptS tate::current(info.GetIsolate()), v8Value, true, ListenerFindOrCreate));
1730 } 1778 }
1731 1779
1732 static void eventHandlerAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1780 static void eventHandlerAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1733 { 1781 {
1734 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1782 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1735 TestObjectV8Internal::eventHandlerAttributeAttributeSetter(v8Value, info); 1783 TestObjectV8Internal::eventHandlerAttributeAttributeSetter(v8Value, info);
1736 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1784 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1737 } 1785 }
1738 1786
1739 static void doubleOrStringAttributeAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info) 1787 static void doubleOrStringAttributeAttributeGetter(const v8::FunctionCallbackInf o<v8::Value>& info)
1740 { 1788 {
1741 v8::Local<v8::Object> holder = info.Holder(); 1789 v8::Local<v8::Object> holder = info.Holder();
1742 TestObject* impl = V8TestObject::toImpl(holder); 1790 TestObject* impl = V8TestObject::toImpl(holder);
1743 DoubleOrString result; 1791 DoubleOrString result;
1744 impl->doubleOrStringAttribute(result); 1792 impl->doubleOrStringAttribute(result);
1745 v8SetReturnValue(info, result); 1793 v8SetReturnValue(info, result);
1746 } 1794 }
1747 1795
1748 static void doubleOrStringAttributeAttributeGetterCallback(v8::Local<v8::String> , const v8::PropertyCallbackInfo<v8::Value>& info) 1796 static void doubleOrStringAttributeAttributeGetterCallback(const v8::FunctionCal lbackInfo<v8::Value>& info)
1749 { 1797 {
1750 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1798 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1751 TestObjectV8Internal::doubleOrStringAttributeAttributeGetter(info); 1799 TestObjectV8Internal::doubleOrStringAttributeAttributeGetter(info);
1752 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1800 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1753 } 1801 }
1754 1802
1755 static void doubleOrStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1803 static void doubleOrStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
1756 { 1804 {
1757 v8::Local<v8::Object> holder = info.Holder(); 1805 v8::Local<v8::Object> holder = info.Holder();
1758 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleOrString Attribute", "TestObject", holder, info.GetIsolate()); 1806 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleOrString Attribute", "TestObject", holder, info.GetIsolate());
1759 DoubleOrString cppValue; 1807 DoubleOrString cppValue;
1760 TestObject* impl = V8TestObject::toImpl(holder); 1808 TestObject* impl = V8TestObject::toImpl(holder);
1761 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8DoubleOrString::toImpl(info.GetIs olate(), v8Value, cppValue, exceptionState), exceptionState); 1809 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8DoubleOrString::toImpl(info.GetIs olate(), v8Value, cppValue, exceptionState), exceptionState);
1762 impl->setDoubleOrStringAttribute(cppValue); 1810 impl->setDoubleOrStringAttribute(cppValue);
1763 } 1811 }
1764 1812
1765 static void doubleOrStringAttributeAttributeSetterCallback(v8::Local<v8::String> , v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1813 static void doubleOrStringAttributeAttributeSetterCallback(const v8::FunctionCal lbackInfo<v8::Value>& info)
1766 { 1814 {
1815 v8::Local<v8::Value> v8Value = info[0];
1767 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1816 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1768 TestObjectV8Internal::doubleOrStringAttributeAttributeSetter(v8Value, info); 1817 TestObjectV8Internal::doubleOrStringAttributeAttributeSetter(v8Value, info);
1769 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1818 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1770 } 1819 }
1771 1820
1772 static void doubleOrStringOrNullAttributeAttributeGetter(const v8::PropertyCallb ackInfo<v8::Value>& info) 1821 static void doubleOrStringOrNullAttributeAttributeGetter(const v8::FunctionCallb ackInfo<v8::Value>& info)
1773 { 1822 {
1774 v8::Local<v8::Object> holder = info.Holder(); 1823 v8::Local<v8::Object> holder = info.Holder();
1775 TestObject* impl = V8TestObject::toImpl(holder); 1824 TestObject* impl = V8TestObject::toImpl(holder);
1776 DoubleOrString result; 1825 DoubleOrString result;
1777 impl->doubleOrStringOrNullAttribute(result); 1826 impl->doubleOrStringOrNullAttribute(result);
1778 v8SetReturnValue(info, result); 1827 v8SetReturnValue(info, result);
1779 } 1828 }
1780 1829
1781 static void doubleOrStringOrNullAttributeAttributeGetterCallback(v8::Local<v8::S tring>, const v8::PropertyCallbackInfo<v8::Value>& info) 1830 static void doubleOrStringOrNullAttributeAttributeGetterCallback(const v8::Funct ionCallbackInfo<v8::Value>& info)
1782 { 1831 {
1783 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1832 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1784 TestObjectV8Internal::doubleOrStringOrNullAttributeAttributeGetter(info); 1833 TestObjectV8Internal::doubleOrStringOrNullAttributeAttributeGetter(info);
1785 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1834 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1786 } 1835 }
1787 1836
1788 static void doubleOrStringOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8 Value, const v8::PropertyCallbackInfo<void>& info) 1837 static void doubleOrStringOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8 Value, const v8::FunctionCallbackInfo<v8::Value>& info)
1789 { 1838 {
1790 v8::Local<v8::Object> holder = info.Holder(); 1839 v8::Local<v8::Object> holder = info.Holder();
1791 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleOrString OrNullAttribute", "TestObject", holder, info.GetIsolate()); 1840 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleOrString OrNullAttribute", "TestObject", holder, info.GetIsolate());
1792 DoubleOrString cppValue; 1841 DoubleOrString cppValue;
1793 TestObject* impl = V8TestObject::toImpl(holder); 1842 TestObject* impl = V8TestObject::toImpl(holder);
1794 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8DoubleOrStringOrNull::toImpl(info .GetIsolate(), v8Value, cppValue, exceptionState), exceptionState); 1843 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8DoubleOrStringOrNull::toImpl(info .GetIsolate(), v8Value, cppValue, exceptionState), exceptionState);
1795 impl->setDoubleOrStringOrNullAttribute(cppValue); 1844 impl->setDoubleOrStringOrNullAttribute(cppValue);
1796 } 1845 }
1797 1846
1798 static void doubleOrStringOrNullAttributeAttributeSetterCallback(v8::Local<v8::S tring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info ) 1847 static void doubleOrStringOrNullAttributeAttributeSetterCallback(const v8::Funct ionCallbackInfo<v8::Value>& info)
1799 { 1848 {
1849 v8::Local<v8::Value> v8Value = info[0];
1800 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1850 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1801 TestObjectV8Internal::doubleOrStringOrNullAttributeAttributeSetter(v8Value, info); 1851 TestObjectV8Internal::doubleOrStringOrNullAttributeAttributeSetter(v8Value, info);
1802 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1852 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1803 } 1853 }
1804 1854
1805 static void doubleOrNullStringAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info) 1855 static void doubleOrNullStringAttributeAttributeGetter(const v8::FunctionCallbac kInfo<v8::Value>& info)
1806 { 1856 {
1807 v8::Local<v8::Object> holder = info.Holder(); 1857 v8::Local<v8::Object> holder = info.Holder();
1808 TestObject* impl = V8TestObject::toImpl(holder); 1858 TestObject* impl = V8TestObject::toImpl(holder);
1809 DoubleOrString result; 1859 DoubleOrString result;
1810 impl->doubleOrNullStringAttribute(result); 1860 impl->doubleOrNullStringAttribute(result);
1811 v8SetReturnValue(info, result); 1861 v8SetReturnValue(info, result);
1812 } 1862 }
1813 1863
1814 static void doubleOrNullStringAttributeAttributeGetterCallback(v8::Local<v8::Str ing>, const v8::PropertyCallbackInfo<v8::Value>& info) 1864 static void doubleOrNullStringAttributeAttributeGetterCallback(const v8::Functio nCallbackInfo<v8::Value>& info)
1815 { 1865 {
1816 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1866 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1817 TestObjectV8Internal::doubleOrNullStringAttributeAttributeGetter(info); 1867 TestObjectV8Internal::doubleOrNullStringAttributeAttributeGetter(info);
1818 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1868 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1819 } 1869 }
1820 1870
1821 static void doubleOrNullStringAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::PropertyCallbackInfo<void>& info) 1871 static void doubleOrNullStringAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::FunctionCallbackInfo<v8::Value>& info)
1822 { 1872 {
1823 v8::Local<v8::Object> holder = info.Holder(); 1873 v8::Local<v8::Object> holder = info.Holder();
1824 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleOrNullSt ringAttribute", "TestObject", holder, info.GetIsolate()); 1874 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleOrNullSt ringAttribute", "TestObject", holder, info.GetIsolate());
1825 DoubleOrString cppValue; 1875 DoubleOrString cppValue;
1826 TestObject* impl = V8TestObject::toImpl(holder); 1876 TestObject* impl = V8TestObject::toImpl(holder);
1827 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8DoubleOrStringOrNull::toImpl(info .GetIsolate(), v8Value, cppValue, exceptionState), exceptionState); 1877 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8DoubleOrStringOrNull::toImpl(info .GetIsolate(), v8Value, cppValue, exceptionState), exceptionState);
1828 impl->setDoubleOrNullStringAttribute(cppValue); 1878 impl->setDoubleOrNullStringAttribute(cppValue);
1829 } 1879 }
1830 1880
1831 static void doubleOrNullStringAttributeAttributeSetterCallback(v8::Local<v8::Str ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1881 static void doubleOrNullStringAttributeAttributeSetterCallback(const v8::Functio nCallbackInfo<v8::Value>& info)
1832 { 1882 {
1883 v8::Local<v8::Value> v8Value = info[0];
1833 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1884 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1834 TestObjectV8Internal::doubleOrNullStringAttributeAttributeSetter(v8Value, in fo); 1885 TestObjectV8Internal::doubleOrNullStringAttributeAttributeSetter(v8Value, in fo);
1835 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1886 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1836 } 1887 }
1837 1888
1838 static void stringOrStringSequenceAttributeAttributeGetter(const v8::PropertyCal lbackInfo<v8::Value>& info) 1889 static void stringOrStringSequenceAttributeAttributeGetter(const v8::FunctionCal lbackInfo<v8::Value>& info)
1839 { 1890 {
1840 v8::Local<v8::Object> holder = info.Holder(); 1891 v8::Local<v8::Object> holder = info.Holder();
1841 TestObject* impl = V8TestObject::toImpl(holder); 1892 TestObject* impl = V8TestObject::toImpl(holder);
1842 StringOrStringSequence result; 1893 StringOrStringSequence result;
1843 impl->stringOrStringSequenceAttribute(result); 1894 impl->stringOrStringSequenceAttribute(result);
1844 v8SetReturnValue(info, result); 1895 v8SetReturnValue(info, result);
1845 } 1896 }
1846 1897
1847 static void stringOrStringSequenceAttributeAttributeGetterCallback(v8::Local<v8: :String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1898 static void stringOrStringSequenceAttributeAttributeGetterCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info)
1848 { 1899 {
1849 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1900 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1850 TestObjectV8Internal::stringOrStringSequenceAttributeAttributeGetter(info); 1901 TestObjectV8Internal::stringOrStringSequenceAttributeAttributeGetter(info);
1851 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1902 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1852 } 1903 }
1853 1904
1854 static void stringOrStringSequenceAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1905 static void stringOrStringSequenceAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
1855 { 1906 {
1856 v8::Local<v8::Object> holder = info.Holder(); 1907 v8::Local<v8::Object> holder = info.Holder();
1857 ExceptionState exceptionState(ExceptionState::SetterContext, "stringOrString SequenceAttribute", "TestObject", holder, info.GetIsolate()); 1908 ExceptionState exceptionState(ExceptionState::SetterContext, "stringOrString SequenceAttribute", "TestObject", holder, info.GetIsolate());
1858 StringOrStringSequence cppValue; 1909 StringOrStringSequence cppValue;
1859 TestObject* impl = V8TestObject::toImpl(holder); 1910 TestObject* impl = V8TestObject::toImpl(holder);
1860 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8StringOrStringSequence::toImpl(in fo.GetIsolate(), v8Value, cppValue, exceptionState), exceptionState); 1911 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8StringOrStringSequence::toImpl(in fo.GetIsolate(), v8Value, cppValue, exceptionState), exceptionState);
1861 impl->setStringOrStringSequenceAttribute(cppValue); 1912 impl->setStringOrStringSequenceAttribute(cppValue);
1862 } 1913 }
1863 1914
1864 static void stringOrStringSequenceAttributeAttributeSetterCallback(v8::Local<v8: :String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo) 1915 static void stringOrStringSequenceAttributeAttributeSetterCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info)
1865 { 1916 {
1917 v8::Local<v8::Value> v8Value = info[0];
1866 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1918 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1867 TestObjectV8Internal::stringOrStringSequenceAttributeAttributeSetter(v8Value , info); 1919 TestObjectV8Internal::stringOrStringSequenceAttributeAttributeSetter(v8Value , info);
1868 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1920 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1869 } 1921 }
1870 1922
1871 static void testEnumOrDoubleAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info) 1923 static void testEnumOrDoubleAttributeAttributeGetter(const v8::FunctionCallbackI nfo<v8::Value>& info)
1872 { 1924 {
1873 v8::Local<v8::Object> holder = info.Holder(); 1925 v8::Local<v8::Object> holder = info.Holder();
1874 TestObject* impl = V8TestObject::toImpl(holder); 1926 TestObject* impl = V8TestObject::toImpl(holder);
1875 TestEnumOrDouble result; 1927 TestEnumOrDouble result;
1876 impl->testEnumOrDoubleAttribute(result); 1928 impl->testEnumOrDoubleAttribute(result);
1877 v8SetReturnValue(info, result); 1929 v8SetReturnValue(info, result);
1878 } 1930 }
1879 1931
1880 static void testEnumOrDoubleAttributeAttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info) 1932 static void testEnumOrDoubleAttributeAttributeGetterCallback(const v8::FunctionC allbackInfo<v8::Value>& info)
1881 { 1933 {
1882 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1934 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1883 TestObjectV8Internal::testEnumOrDoubleAttributeAttributeGetter(info); 1935 TestObjectV8Internal::testEnumOrDoubleAttributeAttributeGetter(info);
1884 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1936 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1885 } 1937 }
1886 1938
1887 static void testEnumOrDoubleAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::PropertyCallbackInfo<void>& info) 1939 static void testEnumOrDoubleAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::FunctionCallbackInfo<v8::Value>& info)
1888 { 1940 {
1889 v8::Local<v8::Object> holder = info.Holder(); 1941 v8::Local<v8::Object> holder = info.Holder();
1890 ExceptionState exceptionState(ExceptionState::SetterContext, "testEnumOrDoub leAttribute", "TestObject", holder, info.GetIsolate()); 1942 ExceptionState exceptionState(ExceptionState::SetterContext, "testEnumOrDoub leAttribute", "TestObject", holder, info.GetIsolate());
1891 TestEnumOrDouble cppValue; 1943 TestEnumOrDouble cppValue;
1892 TestObject* impl = V8TestObject::toImpl(holder); 1944 TestObject* impl = V8TestObject::toImpl(holder);
1893 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8TestEnumOrDouble::toImpl(info.Get Isolate(), v8Value, cppValue, exceptionState), exceptionState); 1945 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8TestEnumOrDouble::toImpl(info.Get Isolate(), v8Value, cppValue, exceptionState), exceptionState);
1894 impl->setTestEnumOrDoubleAttribute(cppValue); 1946 impl->setTestEnumOrDoubleAttribute(cppValue);
1895 } 1947 }
1896 1948
1897 static void testEnumOrDoubleAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1949 static void testEnumOrDoubleAttributeAttributeSetterCallback(const v8::FunctionC allbackInfo<v8::Value>& info)
1898 { 1950 {
1951 v8::Local<v8::Value> v8Value = info[0];
1899 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1952 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1900 TestObjectV8Internal::testEnumOrDoubleAttributeAttributeSetter(v8Value, info ); 1953 TestObjectV8Internal::testEnumOrDoubleAttributeAttributeSetter(v8Value, info );
1901 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1954 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1902 } 1955 }
1903 1956
1904 static void unrestrictedDoubleOrStringAttributeAttributeGetter(const v8::Propert yCallbackInfo<v8::Value>& info) 1957 static void unrestrictedDoubleOrStringAttributeAttributeGetter(const v8::Functio nCallbackInfo<v8::Value>& info)
1905 { 1958 {
1906 v8::Local<v8::Object> holder = info.Holder(); 1959 v8::Local<v8::Object> holder = info.Holder();
1907 TestObject* impl = V8TestObject::toImpl(holder); 1960 TestObject* impl = V8TestObject::toImpl(holder);
1908 UnrestrictedDoubleOrString result; 1961 UnrestrictedDoubleOrString result;
1909 impl->unrestrictedDoubleOrStringAttribute(result); 1962 impl->unrestrictedDoubleOrStringAttribute(result);
1910 v8SetReturnValue(info, result); 1963 v8SetReturnValue(info, result);
1911 } 1964 }
1912 1965
1913 static void unrestrictedDoubleOrStringAttributeAttributeGetterCallback(v8::Local <v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1966 static void unrestrictedDoubleOrStringAttributeAttributeGetterCallback(const v8: :FunctionCallbackInfo<v8::Value>& info)
1914 { 1967 {
1915 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1968 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1916 TestObjectV8Internal::unrestrictedDoubleOrStringAttributeAttributeGetter(inf o); 1969 TestObjectV8Internal::unrestrictedDoubleOrStringAttributeAttributeGetter(inf o);
1917 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1970 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1918 } 1971 }
1919 1972
1920 static void unrestrictedDoubleOrStringAttributeAttributeSetter(v8::Local<v8::Val ue> v8Value, const v8::PropertyCallbackInfo<void>& info) 1973 static void unrestrictedDoubleOrStringAttributeAttributeSetter(v8::Local<v8::Val ue> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
1921 { 1974 {
1922 v8::Local<v8::Object> holder = info.Holder(); 1975 v8::Local<v8::Object> holder = info.Holder();
1923 ExceptionState exceptionState(ExceptionState::SetterContext, "unrestrictedDo ubleOrStringAttribute", "TestObject", holder, info.GetIsolate()); 1976 ExceptionState exceptionState(ExceptionState::SetterContext, "unrestrictedDo ubleOrStringAttribute", "TestObject", holder, info.GetIsolate());
1924 UnrestrictedDoubleOrString cppValue; 1977 UnrestrictedDoubleOrString cppValue;
1925 TestObject* impl = V8TestObject::toImpl(holder); 1978 TestObject* impl = V8TestObject::toImpl(holder);
1926 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8UnrestrictedDoubleOrString::toImp l(info.GetIsolate(), v8Value, cppValue, exceptionState), exceptionState); 1979 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8UnrestrictedDoubleOrString::toImp l(info.GetIsolate(), v8Value, cppValue, exceptionState), exceptionState);
1927 impl->setUnrestrictedDoubleOrStringAttribute(cppValue); 1980 impl->setUnrestrictedDoubleOrStringAttribute(cppValue);
1928 } 1981 }
1929 1982
1930 static void unrestrictedDoubleOrStringAttributeAttributeSetterCallback(v8::Local <v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void> & info) 1983 static void unrestrictedDoubleOrStringAttributeAttributeSetterCallback(const v8: :FunctionCallbackInfo<v8::Value>& info)
1931 { 1984 {
1985 v8::Local<v8::Value> v8Value = info[0];
1932 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1986 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1933 TestObjectV8Internal::unrestrictedDoubleOrStringAttributeAttributeSetter(v8V alue, info); 1987 TestObjectV8Internal::unrestrictedDoubleOrStringAttributeAttributeSetter(v8V alue, info);
1934 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1988 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1935 } 1989 }
1936 1990
1937 static void activityLoggingAccessForAllWorldsLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 1991 static void activityLoggingAccessForAllWorldsLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info)
1938 { 1992 {
1939 v8::Local<v8::Object> holder = info.Holder(); 1993 v8::Local<v8::Object> holder = info.Holder();
1940 TestObject* impl = V8TestObject::toImpl(holder); 1994 TestObject* impl = V8TestObject::toImpl(holder);
1941 v8SetReturnValueInt(info, impl->activityLoggingAccessForAllWorldsLongAttribu te()); 1995 v8SetReturnValueInt(info, impl->activityLoggingAccessForAllWorldsLongAttribu te());
1942 } 1996 }
1943 1997
1944 static void activityLoggingAccessForAllWorldsLongAttributeAttributeGetterCallbac k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1998 static void activityLoggingAccessForAllWorldsLongAttributeAttributeGetterCallbac k(const v8::FunctionCallbackInfo<v8::Value>& info)
1945 { 1999 {
1946 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2000 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1947 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 2001 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
1948 V8PerContextData* contextData = scriptState->perContextData(); 2002 V8PerContextData* contextData = scriptState->perContextData();
1949 if (contextData && contextData->activityLogger()) 2003 if (contextData && contextData->activityLogger())
1950 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssForAllWorldsLongAttribute"); 2004 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssForAllWorldsLongAttribute");
1951 TestObjectV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttribut eGetter(info); 2005 TestObjectV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttribut eGetter(info);
1952 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2006 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1953 } 2007 }
1954 2008
1955 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetter(v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2009 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetter(v8::Lo cal<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
1956 { 2010 {
1957 v8::Local<v8::Object> holder = info.Holder(); 2011 v8::Local<v8::Object> holder = info.Holder();
1958 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); 2012 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate());
1959 TestObject* impl = V8TestObject::toImpl(holder); 2013 TestObject* impl = V8TestObject::toImpl(holder);
1960 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 2014 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
1961 impl->setActivityLoggingAccessForAllWorldsLongAttribute(cppValue); 2015 impl->setActivityLoggingAccessForAllWorldsLongAttribute(cppValue);
1962 } 2016 }
1963 2017
1964 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetterCallbac k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac kInfo<void>& info) 2018 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetterCallbac k(const v8::FunctionCallbackInfo<v8::Value>& info)
1965 { 2019 {
2020 v8::Local<v8::Value> v8Value = info[0];
1966 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2021 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1967 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 2022 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
1968 V8PerContextData* contextData = scriptState->perContextData(); 2023 V8PerContextData* contextData = scriptState->perContextData();
1969 if (contextData && contextData->activityLogger()) { 2024 if (contextData && contextData->activityLogger()) {
1970 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce ssForAllWorldsLongAttribute", v8Value); 2025 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce ssForAllWorldsLongAttribute", v8Value);
1971 } 2026 }
1972 TestObjectV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttribut eSetter(v8Value, info); 2027 TestObjectV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttribut eSetter(v8Value, info);
1973 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2028 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1974 } 2029 }
1975 2030
1976 static void activityLoggingGetterForAllWorldsLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 2031 static void activityLoggingGetterForAllWorldsLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info)
1977 { 2032 {
1978 v8::Local<v8::Object> holder = info.Holder(); 2033 v8::Local<v8::Object> holder = info.Holder();
1979 TestObject* impl = V8TestObject::toImpl(holder); 2034 TestObject* impl = V8TestObject::toImpl(holder);
1980 v8SetReturnValueInt(info, impl->activityLoggingGetterForAllWorldsLongAttribu te()); 2035 v8SetReturnValueInt(info, impl->activityLoggingGetterForAllWorldsLongAttribu te());
1981 } 2036 }
1982 2037
1983 static void activityLoggingGetterForAllWorldsLongAttributeAttributeGetterCallbac k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2038 static void activityLoggingGetterForAllWorldsLongAttributeAttributeGetterCallbac k(const v8::FunctionCallbackInfo<v8::Value>& info)
1984 { 2039 {
1985 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2040 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1986 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 2041 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
1987 V8PerContextData* contextData = scriptState->perContextData(); 2042 V8PerContextData* contextData = scriptState->perContextData();
1988 if (contextData && contextData->activityLogger()) 2043 if (contextData && contextData->activityLogger())
1989 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erForAllWorldsLongAttribute"); 2044 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erForAllWorldsLongAttribute");
1990 TestObjectV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttribut eGetter(info); 2045 TestObjectV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttribut eGetter(info);
1991 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2046 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1992 } 2047 }
1993 2048
1994 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetter(v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2049 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetter(v8::Lo cal<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
1995 { 2050 {
1996 v8::Local<v8::Object> holder = info.Holder(); 2051 v8::Local<v8::Object> holder = info.Holder();
1997 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); 2052 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate());
1998 TestObject* impl = V8TestObject::toImpl(holder); 2053 TestObject* impl = V8TestObject::toImpl(holder);
1999 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 2054 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2000 impl->setActivityLoggingGetterForAllWorldsLongAttribute(cppValue); 2055 impl->setActivityLoggingGetterForAllWorldsLongAttribute(cppValue);
2001 } 2056 }
2002 2057
2003 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetterCallbac k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac kInfo<void>& info) 2058 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetterCallbac k(const v8::FunctionCallbackInfo<v8::Value>& info)
2004 { 2059 {
2060 v8::Local<v8::Value> v8Value = info[0];
2005 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2061 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2006 TestObjectV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttribut eSetter(v8Value, info); 2062 TestObjectV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttribut eSetter(v8Value, info);
2007 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2063 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2008 } 2064 }
2009 2065
2010 static void activityLoggingSetterForAllWorldsLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 2066 static void activityLoggingSetterForAllWorldsLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info)
2011 { 2067 {
2012 v8::Local<v8::Object> holder = info.Holder(); 2068 v8::Local<v8::Object> holder = info.Holder();
2013 TestObject* impl = V8TestObject::toImpl(holder); 2069 TestObject* impl = V8TestObject::toImpl(holder);
2014 v8SetReturnValueInt(info, impl->activityLoggingSetterForAllWorldsLongAttribu te()); 2070 v8SetReturnValueInt(info, impl->activityLoggingSetterForAllWorldsLongAttribu te());
2015 } 2071 }
2016 2072
2017 static void activityLoggingSetterForAllWorldsLongAttributeAttributeGetterCallbac k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2073 static void activityLoggingSetterForAllWorldsLongAttributeAttributeGetterCallbac k(const v8::FunctionCallbackInfo<v8::Value>& info)
2018 { 2074 {
2019 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2075 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2020 TestObjectV8Internal::activityLoggingSetterForAllWorldsLongAttributeAttribut eGetter(info); 2076 TestObjectV8Internal::activityLoggingSetterForAllWorldsLongAttributeAttribut eGetter(info);
2021 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2077 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2022 } 2078 }
2023 2079
2024 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetter(v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2080 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetter(v8::Lo cal<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
2025 { 2081 {
2026 v8::Local<v8::Object> holder = info.Holder(); 2082 v8::Local<v8::Object> holder = info.Holder();
2027 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gSetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); 2083 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gSetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate());
2028 TestObject* impl = V8TestObject::toImpl(holder); 2084 TestObject* impl = V8TestObject::toImpl(holder);
2029 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 2085 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2030 impl->setActivityLoggingSetterForAllWorldsLongAttribute(cppValue); 2086 impl->setActivityLoggingSetterForAllWorldsLongAttribute(cppValue);
2031 } 2087 }
2032 2088
2033 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetterCallbac k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac kInfo<void>& info) 2089 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetterCallbac k(const v8::FunctionCallbackInfo<v8::Value>& info)
2034 { 2090 {
2091 v8::Local<v8::Value> v8Value = info[0];
2035 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2092 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2036 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 2093 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
2037 V8PerContextData* contextData = scriptState->perContextData(); 2094 V8PerContextData* contextData = scriptState->perContextData();
2038 if (contextData && contextData->activityLogger()) { 2095 if (contextData && contextData->activityLogger()) {
2039 contextData->activityLogger()->logSetter("TestObject.activityLoggingSett erForAllWorldsLongAttribute", v8Value); 2096 contextData->activityLogger()->logSetter("TestObject.activityLoggingSett erForAllWorldsLongAttribute", v8Value);
2040 } 2097 }
2041 TestObjectV8Internal::activityLoggingSetterForAllWorldsLongAttributeAttribut eSetter(v8Value, info); 2098 TestObjectV8Internal::activityLoggingSetterForAllWorldsLongAttributeAttribut eSetter(v8Value, info);
2042 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2099 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2043 } 2100 }
2044 2101
2045 static void cachedAttributeAnyAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info) 2102 static void cachedAttributeAnyAttributeAttributeGetter(const v8::FunctionCallbac kInfo<v8::Value>& info)
2046 { 2103 {
2047 v8::Local<v8::Object> holder = info.Holder(); 2104 v8::Local<v8::Object> holder = info.Holder();
2048 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cach edAttributeAnyAttribute"); 2105 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cach edAttributeAnyAttribute");
2049 TestObject* impl = V8TestObject::toImpl(holder); 2106 TestObject* impl = V8TestObject::toImpl(holder);
2050 if (!impl->isValueDirty()) { 2107 if (!impl->isValueDirty()) {
2051 v8::Local<v8::Value> v8Value = V8HiddenValue::getHiddenValue(info.GetIso late(), holder, propertyName); 2108 v8::Local<v8::Value> v8Value = V8HiddenValue::getHiddenValue(info.GetIso late(), holder, propertyName);
2052 if (!v8Value.IsEmpty()) { 2109 if (!v8Value.IsEmpty()) {
2053 v8SetReturnValue(info, v8Value); 2110 v8SetReturnValue(info, v8Value);
2054 return; 2111 return;
2055 } 2112 }
2056 } 2113 }
2057 ScriptValue cppValue(impl->cachedAttributeAnyAttribute()); 2114 ScriptValue cppValue(impl->cachedAttributeAnyAttribute());
2058 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, cppVa lue.v8Value()); 2115 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, cppVa lue.v8Value());
2059 v8SetReturnValue(info, cppValue.v8Value()); 2116 v8SetReturnValue(info, cppValue.v8Value());
2060 } 2117 }
2061 2118
2062 static void cachedAttributeAnyAttributeAttributeGetterCallback(v8::Local<v8::Str ing>, const v8::PropertyCallbackInfo<v8::Value>& info) 2119 static void cachedAttributeAnyAttributeAttributeGetterCallback(const v8::Functio nCallbackInfo<v8::Value>& info)
2063 { 2120 {
2064 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2121 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2065 TestObjectV8Internal::cachedAttributeAnyAttributeAttributeGetter(info); 2122 TestObjectV8Internal::cachedAttributeAnyAttributeAttributeGetter(info);
2066 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2123 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2067 } 2124 }
2068 2125
2069 static void cachedAttributeAnyAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::PropertyCallbackInfo<void>& info) 2126 static void cachedAttributeAnyAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::FunctionCallbackInfo<v8::Value>& info)
2070 { 2127 {
2071 v8::Local<v8::Object> holder = info.Holder(); 2128 v8::Local<v8::Object> holder = info.Holder();
2072 TestObject* impl = V8TestObject::toImpl(holder); 2129 TestObject* impl = V8TestObject::toImpl(holder);
2073 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value); 2130 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value);
2074 impl->setCachedAttributeAnyAttribute(cppValue); 2131 impl->setCachedAttributeAnyAttribute(cppValue);
2075 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i nfo.GetIsolate(), "cachedAttributeAnyAttribute")); // Invalidate the cached valu e. 2132 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i nfo.GetIsolate(), "cachedAttributeAnyAttribute")); // Invalidate the cached valu e.
2076 } 2133 }
2077 2134
2078 static void cachedAttributeAnyAttributeAttributeSetterCallback(v8::Local<v8::Str ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2135 static void cachedAttributeAnyAttributeAttributeSetterCallback(const v8::Functio nCallbackInfo<v8::Value>& info)
2079 { 2136 {
2137 v8::Local<v8::Value> v8Value = info[0];
2080 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2138 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2081 TestObjectV8Internal::cachedAttributeAnyAttributeAttributeSetter(v8Value, in fo); 2139 TestObjectV8Internal::cachedAttributeAnyAttributeAttributeSetter(v8Value, in fo);
2082 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2140 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2083 } 2141 }
2084 2142
2085 static void cachedArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info) 2143 static void cachedArrayAttributeAttributeGetter(const v8::FunctionCallbackInfo<v 8::Value>& info)
2086 { 2144 {
2087 v8::Local<v8::Object> holder = info.Holder(); 2145 v8::Local<v8::Object> holder = info.Holder();
2088 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cach edArrayAttribute"); 2146 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cach edArrayAttribute");
2089 TestObject* impl = V8TestObject::toImpl(holder); 2147 TestObject* impl = V8TestObject::toImpl(holder);
2090 if (!impl->isArrayDirty()) { 2148 if (!impl->isArrayDirty()) {
2091 v8::Local<v8::Value> v8Value = V8HiddenValue::getHiddenValue(info.GetIso late(), holder, propertyName); 2149 v8::Local<v8::Value> v8Value = V8HiddenValue::getHiddenValue(info.GetIso late(), holder, propertyName);
2092 if (!v8Value.IsEmpty()) { 2150 if (!v8Value.IsEmpty()) {
2093 v8SetReturnValue(info, v8Value); 2151 v8SetReturnValue(info, v8Value);
2094 return; 2152 return;
2095 } 2153 }
2096 } 2154 }
2097 Vector<String> cppValue(impl->cachedArrayAttribute()); 2155 Vector<String> cppValue(impl->cachedArrayAttribute());
2098 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, toV8( cppValue, info.Holder(), info.GetIsolate())); 2156 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, toV8( cppValue, info.Holder(), info.GetIsolate()));
2099 v8SetReturnValue(info, toV8(cppValue, info.Holder(), info.GetIsolate())); 2157 v8SetReturnValue(info, toV8(cppValue, info.Holder(), info.GetIsolate()));
2100 } 2158 }
2101 2159
2102 static void cachedArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info) 2160 static void cachedArrayAttributeAttributeGetterCallback(const v8::FunctionCallba ckInfo<v8::Value>& info)
2103 { 2161 {
2104 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2162 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2105 TestObjectV8Internal::cachedArrayAttributeAttributeGetter(info); 2163 TestObjectV8Internal::cachedArrayAttributeAttributeGetter(info);
2106 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2164 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2107 } 2165 }
2108 2166
2109 static void cachedArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& info) 2167 static void cachedArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::FunctionCallbackInfo<v8::Value>& info)
2110 { 2168 {
2111 v8::Local<v8::Object> holder = info.Holder(); 2169 v8::Local<v8::Object> holder = info.Holder();
2112 ExceptionState exceptionState(ExceptionState::SetterContext, "cachedArrayAtt ribute", "TestObject", holder, info.GetIsolate()); 2170 ExceptionState exceptionState(ExceptionState::SetterContext, "cachedArrayAtt ribute", "TestObject", holder, info.GetIsolate());
2113 TestObject* impl = V8TestObject::toImpl(holder); 2171 TestObject* impl = V8TestObject::toImpl(holder);
2114 TONATIVE_VOID_EXCEPTIONSTATE(Vector<String>, cppValue, toImplArray<String>(v 8Value, 0, info.GetIsolate(), exceptionState), exceptionState); 2172 TONATIVE_VOID_EXCEPTIONSTATE(Vector<String>, cppValue, toImplArray<String>(v 8Value, 0, info.GetIsolate(), exceptionState), exceptionState);
2115 impl->setCachedArrayAttribute(cppValue); 2173 impl->setCachedArrayAttribute(cppValue);
2116 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i nfo.GetIsolate(), "cachedArrayAttribute")); // Invalidate the cached value. 2174 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i nfo.GetIsolate(), "cachedArrayAttribute")); // Invalidate the cached value.
2117 } 2175 }
2118 2176
2119 static void cachedArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2177 static void cachedArrayAttributeAttributeSetterCallback(const v8::FunctionCallba ckInfo<v8::Value>& info)
2120 { 2178 {
2179 v8::Local<v8::Value> v8Value = info[0];
2121 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2180 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2122 TestObjectV8Internal::cachedArrayAttributeAttributeSetter(v8Value, info); 2181 TestObjectV8Internal::cachedArrayAttributeAttributeSetter(v8Value, info);
2123 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2182 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2124 } 2183 }
2125 2184
2126 static void cachedStringOrNoneAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info) 2185 static void cachedStringOrNoneAttributeAttributeGetter(const v8::FunctionCallbac kInfo<v8::Value>& info)
2127 { 2186 {
2128 v8::Local<v8::Object> holder = info.Holder(); 2187 v8::Local<v8::Object> holder = info.Holder();
2129 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cach edStringOrNoneAttribute"); 2188 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cach edStringOrNoneAttribute");
2130 TestObject* impl = V8TestObject::toImpl(holder); 2189 TestObject* impl = V8TestObject::toImpl(holder);
2131 if (!impl->isStringDirty()) { 2190 if (!impl->isStringDirty()) {
2132 v8::Local<v8::Value> v8Value = V8HiddenValue::getHiddenValue(info.GetIso late(), holder, propertyName); 2191 v8::Local<v8::Value> v8Value = V8HiddenValue::getHiddenValue(info.GetIso late(), holder, propertyName);
2133 if (!v8Value.IsEmpty()) { 2192 if (!v8Value.IsEmpty()) {
2134 v8SetReturnValue(info, v8Value); 2193 v8SetReturnValue(info, v8Value);
2135 return; 2194 return;
2136 } 2195 }
2137 } 2196 }
2138 String cppValue(impl->cachedStringOrNoneAttribute()); 2197 String cppValue(impl->cachedStringOrNoneAttribute());
2139 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, cppVa lue.isNull() ? v8::Local<v8::Value>(v8::Null(info.GetIsolate())) : v8String(info .GetIsolate(), cppValue)); 2198 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, cppVa lue.isNull() ? v8::Local<v8::Value>(v8::Null(info.GetIsolate())) : v8String(info .GetIsolate(), cppValue));
2140 v8SetReturnValueStringOrNull(info, cppValue, info.GetIsolate()); 2199 v8SetReturnValueStringOrNull(info, cppValue, info.GetIsolate());
2141 } 2200 }
2142 2201
2143 static void cachedStringOrNoneAttributeAttributeGetterCallback(v8::Local<v8::Str ing>, const v8::PropertyCallbackInfo<v8::Value>& info) 2202 static void cachedStringOrNoneAttributeAttributeGetterCallback(const v8::Functio nCallbackInfo<v8::Value>& info)
2144 { 2203 {
2145 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2204 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2146 TestObjectV8Internal::cachedStringOrNoneAttributeAttributeGetter(info); 2205 TestObjectV8Internal::cachedStringOrNoneAttributeAttributeGetter(info);
2147 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2206 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2148 } 2207 }
2149 2208
2150 static void cachedStringOrNoneAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::PropertyCallbackInfo<void>& info) 2209 static void cachedStringOrNoneAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::FunctionCallbackInfo<v8::Value>& info)
2151 { 2210 {
2152 v8::Local<v8::Object> holder = info.Holder(); 2211 v8::Local<v8::Object> holder = info.Holder();
2153 TestObject* impl = V8TestObject::toImpl(holder); 2212 TestObject* impl = V8TestObject::toImpl(holder);
2154 TOSTRING_VOID(V8StringResource<TreatNullAsNullString>, cppValue, v8Value); 2213 TOSTRING_VOID(V8StringResource<TreatNullAsNullString>, cppValue, v8Value);
2155 impl->setCachedStringOrNoneAttribute(cppValue); 2214 impl->setCachedStringOrNoneAttribute(cppValue);
2156 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i nfo.GetIsolate(), "cachedStringOrNoneAttribute")); // Invalidate the cached valu e. 2215 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i nfo.GetIsolate(), "cachedStringOrNoneAttribute")); // Invalidate the cached valu e.
2157 } 2216 }
2158 2217
2159 static void cachedStringOrNoneAttributeAttributeSetterCallback(v8::Local<v8::Str ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2218 static void cachedStringOrNoneAttributeAttributeSetterCallback(const v8::Functio nCallbackInfo<v8::Value>& info)
2160 { 2219 {
2220 v8::Local<v8::Value> v8Value = info[0];
2161 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2221 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2162 TestObjectV8Internal::cachedStringOrNoneAttributeAttributeSetter(v8Value, in fo); 2222 TestObjectV8Internal::cachedStringOrNoneAttributeAttributeSetter(v8Value, in fo);
2163 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2223 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2164 } 2224 }
2165 2225
2166 static void callWithExecutionContextAnyAttributeAttributeGetter(const v8::Proper tyCallbackInfo<v8::Value>& info) 2226 static void callWithExecutionContextAnyAttributeAttributeGetter(const v8::Functi onCallbackInfo<v8::Value>& info)
2167 { 2227 {
2168 v8::Local<v8::Object> holder = info.Holder(); 2228 v8::Local<v8::Object> holder = info.Holder();
2169 TestObject* impl = V8TestObject::toImpl(holder); 2229 TestObject* impl = V8TestObject::toImpl(holder);
2170 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ()); 2230 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ());
2171 v8SetReturnValue(info, impl->callWithExecutionContextAnyAttribute(executionC ontext).v8Value()); 2231 v8SetReturnValue(info, impl->callWithExecutionContextAnyAttribute(executionC ontext).v8Value());
2172 } 2232 }
2173 2233
2174 static void callWithExecutionContextAnyAttributeAttributeGetterCallback(v8::Loca l<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2234 static void callWithExecutionContextAnyAttributeAttributeGetterCallback(const v8 ::FunctionCallbackInfo<v8::Value>& info)
2175 { 2235 {
2176 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2236 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2177 TestObjectV8Internal::callWithExecutionContextAnyAttributeAttributeGetter(in fo); 2237 TestObjectV8Internal::callWithExecutionContextAnyAttributeAttributeGetter(in fo);
2178 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2238 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2179 } 2239 }
2180 2240
2181 static void callWithExecutionContextAnyAttributeAttributeSetter(v8::Local<v8::Va lue> v8Value, const v8::PropertyCallbackInfo<void>& info) 2241 static void callWithExecutionContextAnyAttributeAttributeSetter(v8::Local<v8::Va lue> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
2182 { 2242 {
2183 v8::Local<v8::Object> holder = info.Holder(); 2243 v8::Local<v8::Object> holder = info.Holder();
2184 TestObject* impl = V8TestObject::toImpl(holder); 2244 TestObject* impl = V8TestObject::toImpl(holder);
2185 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value); 2245 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value);
2186 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ()); 2246 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ());
2187 impl->setCallWithExecutionContextAnyAttribute(executionContext, cppValue); 2247 impl->setCallWithExecutionContextAnyAttribute(executionContext, cppValue);
2188 } 2248 }
2189 2249
2190 static void callWithExecutionContextAnyAttributeAttributeSetterCallback(v8::Loca l<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info) 2250 static void callWithExecutionContextAnyAttributeAttributeSetterCallback(const v8 ::FunctionCallbackInfo<v8::Value>& info)
2191 { 2251 {
2252 v8::Local<v8::Value> v8Value = info[0];
2192 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2253 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2193 TestObjectV8Internal::callWithExecutionContextAnyAttributeAttributeSetter(v8 Value, info); 2254 TestObjectV8Internal::callWithExecutionContextAnyAttributeAttributeSetter(v8 Value, info);
2194 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2255 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2195 } 2256 }
2196 2257
2197 static void callWithScriptStateAnyAttributeAttributeGetter(const v8::PropertyCal lbackInfo<v8::Value>& info) 2258 static void callWithScriptStateAnyAttributeAttributeGetter(const v8::FunctionCal lbackInfo<v8::Value>& info)
2198 { 2259 {
2199 v8::Local<v8::Object> holder = info.Holder(); 2260 v8::Local<v8::Object> holder = info.Holder();
2200 TestObject* impl = V8TestObject::toImpl(holder); 2261 TestObject* impl = V8TestObject::toImpl(holder);
2201 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); 2262 ScriptState* scriptState = ScriptState::current(info.GetIsolate());
2202 v8SetReturnValue(info, impl->callWithScriptStateAnyAttribute(scriptState).v8 Value()); 2263 v8SetReturnValue(info, impl->callWithScriptStateAnyAttribute(scriptState).v8 Value());
2203 } 2264 }
2204 2265
2205 static void callWithScriptStateAnyAttributeAttributeGetterCallback(v8::Local<v8: :String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2266 static void callWithScriptStateAnyAttributeAttributeGetterCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info)
2206 { 2267 {
2207 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2268 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2208 TestObjectV8Internal::callWithScriptStateAnyAttributeAttributeGetter(info); 2269 TestObjectV8Internal::callWithScriptStateAnyAttributeAttributeGetter(info);
2209 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2270 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2210 } 2271 }
2211 2272
2212 static void callWithScriptStateAnyAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2273 static void callWithScriptStateAnyAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
2213 { 2274 {
2214 v8::Local<v8::Object> holder = info.Holder(); 2275 v8::Local<v8::Object> holder = info.Holder();
2215 TestObject* impl = V8TestObject::toImpl(holder); 2276 TestObject* impl = V8TestObject::toImpl(holder);
2216 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value); 2277 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value);
2217 impl->setCallWithScriptStateAnyAttribute(scriptState, cppValue); 2278 impl->setCallWithScriptStateAnyAttribute(scriptState, cppValue);
2218 } 2279 }
2219 2280
2220 static void callWithScriptStateAnyAttributeAttributeSetterCallback(v8::Local<v8: :String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo) 2281 static void callWithScriptStateAnyAttributeAttributeSetterCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info)
2221 { 2282 {
2283 v8::Local<v8::Value> v8Value = info[0];
2222 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2284 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2223 TestObjectV8Internal::callWithScriptStateAnyAttributeAttributeSetter(v8Value , info); 2285 TestObjectV8Internal::callWithScriptStateAnyAttributeAttributeSetter(v8Value , info);
2224 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2286 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2225 } 2287 }
2226 2288
2227 static void callWithExecutionContextAndScriptStateAnyAttributeAttributeGetter(co nst v8::PropertyCallbackInfo<v8::Value>& info) 2289 static void callWithExecutionContextAndScriptStateAnyAttributeAttributeGetter(co nst v8::FunctionCallbackInfo<v8::Value>& info)
2228 { 2290 {
2229 v8::Local<v8::Object> holder = info.Holder(); 2291 v8::Local<v8::Object> holder = info.Holder();
2230 TestObject* impl = V8TestObject::toImpl(holder); 2292 TestObject* impl = V8TestObject::toImpl(holder);
2231 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ()); 2293 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ());
2232 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); 2294 ScriptState* scriptState = ScriptState::current(info.GetIsolate());
2233 v8SetReturnValue(info, impl->callWithExecutionContextAndScriptStateAnyAttrib ute(scriptState, executionContext).v8Value()); 2295 v8SetReturnValue(info, impl->callWithExecutionContextAndScriptStateAnyAttrib ute(scriptState, executionContext).v8Value());
2234 } 2296 }
2235 2297
2236 static void callWithExecutionContextAndScriptStateAnyAttributeAttributeGetterCal lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2298 static void callWithExecutionContextAndScriptStateAnyAttributeAttributeGetterCal lback(const v8::FunctionCallbackInfo<v8::Value>& info)
2237 { 2299 {
2238 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2300 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2239 TestObjectV8Internal::callWithExecutionContextAndScriptStateAnyAttributeAttr ibuteGetter(info); 2301 TestObjectV8Internal::callWithExecutionContextAndScriptStateAnyAttributeAttr ibuteGetter(info);
2240 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2302 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2241 } 2303 }
2242 2304
2243 static void callWithExecutionContextAndScriptStateAnyAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2305 static void callWithExecutionContextAndScriptStateAnyAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
2244 { 2306 {
2245 v8::Local<v8::Object> holder = info.Holder(); 2307 v8::Local<v8::Object> holder = info.Holder();
2246 TestObject* impl = V8TestObject::toImpl(holder); 2308 TestObject* impl = V8TestObject::toImpl(holder);
2247 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value); 2309 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value);
2248 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ()); 2310 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ());
2249 impl->setCallWithExecutionContextAndScriptStateAnyAttribute(scriptState, exe cutionContext, cppValue); 2311 impl->setCallWithExecutionContextAndScriptStateAnyAttribute(scriptState, exe cutionContext, cppValue);
2250 } 2312 }
2251 2313
2252 static void callWithExecutionContextAndScriptStateAnyAttributeAttributeSetterCal lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal lbackInfo<void>& info) 2314 static void callWithExecutionContextAndScriptStateAnyAttributeAttributeSetterCal lback(const v8::FunctionCallbackInfo<v8::Value>& info)
2253 { 2315 {
2316 v8::Local<v8::Value> v8Value = info[0];
2254 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2317 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2255 TestObjectV8Internal::callWithExecutionContextAndScriptStateAnyAttributeAttr ibuteSetter(v8Value, info); 2318 TestObjectV8Internal::callWithExecutionContextAndScriptStateAnyAttributeAttr ibuteSetter(v8Value, info);
2256 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2319 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2257 } 2320 }
2258 2321
2259 static void checkSecurityForNodeReadonlyDocumentAttributeAttributeGetter(const v 8::PropertyCallbackInfo<v8::Value>& info) 2322 static void checkSecurityForNodeReadonlyDocumentAttributeAttributeGetter(const v 8::FunctionCallbackInfo<v8::Value>& info)
2260 { 2323 {
2261 v8::Local<v8::Object> holder = info.Holder(); 2324 v8::Local<v8::Object> holder = info.Holder();
2262 TestObject* impl = V8TestObject::toImpl(holder); 2325 TestObject* impl = V8TestObject::toImpl(holder);
2263 ExceptionState exceptionState(ExceptionState::GetterContext, "checkSecurityF orNodeReadonlyDocumentAttribute", "TestObject", holder, info.GetIsolate()); 2326 ExceptionState exceptionState(ExceptionState::GetterContext, "checkSecurityF orNodeReadonlyDocumentAttribute", "TestObject", holder, info.GetIsolate());
2264 if (!BindingSecurity::shouldAllowAccessToNode(info.GetIsolate(), impl->check SecurityForNodeReadonlyDocumentAttribute(), exceptionState)) { 2327 if (!BindingSecurity::shouldAllowAccessToNode(info.GetIsolate(), impl->check SecurityForNodeReadonlyDocumentAttribute(), exceptionState)) {
2265 v8SetReturnValueNull(info); 2328 v8SetReturnValueNull(info);
2266 exceptionState.throwIfNeeded(); 2329 exceptionState.throwIfNeeded();
2267 return; 2330 return;
2268 } 2331 }
2269 v8SetReturnValueFast(info, WTF::getPtr(impl->checkSecurityForNodeReadonlyDoc umentAttribute()), impl); 2332 v8SetReturnValueFast(info, WTF::getPtr(impl->checkSecurityForNodeReadonlyDoc umentAttribute()), impl);
2270 } 2333 }
2271 2334
2272 static void checkSecurityForNodeReadonlyDocumentAttributeAttributeGetterCallback (v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2335 static void checkSecurityForNodeReadonlyDocumentAttributeAttributeGetterCallback (const v8::FunctionCallbackInfo<v8::Value>& info)
2273 { 2336 {
2274 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2337 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2275 TestObjectV8Internal::checkSecurityForNodeReadonlyDocumentAttributeAttribute Getter(info); 2338 TestObjectV8Internal::checkSecurityForNodeReadonlyDocumentAttributeAttribute Getter(info);
2276 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2339 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2277 } 2340 }
2278 2341
2279 #if ENABLE(CONDITION) 2342 #if ENABLE(CONDITION)
2280 static void conditionalLongAttributeAttributeGetter(const v8::PropertyCallbackIn fo<v8::Value>& info) 2343 static void conditionalLongAttributeAttributeGetter(const v8::FunctionCallbackIn fo<v8::Value>& info)
2281 { 2344 {
2282 v8::Local<v8::Object> holder = info.Holder(); 2345 v8::Local<v8::Object> holder = info.Holder();
2283 TestObject* impl = V8TestObject::toImpl(holder); 2346 TestObject* impl = V8TestObject::toImpl(holder);
2284 v8SetReturnValueInt(info, impl->conditionalLongAttribute()); 2347 v8SetReturnValueInt(info, impl->conditionalLongAttribute());
2285 } 2348 }
2286 #endif // ENABLE(CONDITION) 2349 #endif // ENABLE(CONDITION)
2287 2350
2288 #if ENABLE(CONDITION) 2351 #if ENABLE(CONDITION)
2289 static void conditionalLongAttributeAttributeGetterCallback(v8::Local<v8::String >, const v8::PropertyCallbackInfo<v8::Value>& info) 2352 static void conditionalLongAttributeAttributeGetterCallback(const v8::FunctionCa llbackInfo<v8::Value>& info)
2290 { 2353 {
2291 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2354 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2292 TestObjectV8Internal::conditionalLongAttributeAttributeGetter(info); 2355 TestObjectV8Internal::conditionalLongAttributeAttributeGetter(info);
2293 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2356 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2294 } 2357 }
2295 #endif // ENABLE(CONDITION) 2358 #endif // ENABLE(CONDITION)
2296 2359
2297 #if ENABLE(CONDITION) 2360 #if ENABLE(CONDITION)
2298 static void conditionalLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value , const v8::PropertyCallbackInfo<void>& info) 2361 static void conditionalLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value , const v8::FunctionCallbackInfo<v8::Value>& info)
2299 { 2362 {
2300 v8::Local<v8::Object> holder = info.Holder(); 2363 v8::Local<v8::Object> holder = info.Holder();
2301 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalLon gAttribute", "TestObject", holder, info.GetIsolate()); 2364 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalLon gAttribute", "TestObject", holder, info.GetIsolate());
2302 TestObject* impl = V8TestObject::toImpl(holder); 2365 TestObject* impl = V8TestObject::toImpl(holder);
2303 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 2366 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2304 impl->setConditionalLongAttribute(cppValue); 2367 impl->setConditionalLongAttribute(cppValue);
2305 } 2368 }
2306 #endif // ENABLE(CONDITION) 2369 #endif // ENABLE(CONDITION)
2307 2370
2308 #if ENABLE(CONDITION) 2371 #if ENABLE(CONDITION)
2309 static void conditionalLongAttributeAttributeSetterCallback(v8::Local<v8::String >, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2372 static void conditionalLongAttributeAttributeSetterCallback(const v8::FunctionCa llbackInfo<v8::Value>& info)
2310 { 2373 {
2374 v8::Local<v8::Value> v8Value = info[0];
2311 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2375 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2312 TestObjectV8Internal::conditionalLongAttributeAttributeSetter(v8Value, info) ; 2376 TestObjectV8Internal::conditionalLongAttributeAttributeSetter(v8Value, info) ;
2313 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2377 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2314 } 2378 }
2315 #endif // ENABLE(CONDITION) 2379 #endif // ENABLE(CONDITION)
2316 2380
2317 static void customObjectAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2381 static void customObjectAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
2318 { 2382 {
2319 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2383 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2320 V8TestObject::customObjectAttributeAttributeGetterCustom(info); 2384 V8TestObject::customObjectAttributeAttributeGetterCustom(info);
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
2390 2454
2391 #if ENABLE(CONDITION) 2455 #if ENABLE(CONDITION)
2392 static void customLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2456 static void customLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2393 { 2457 {
2394 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2458 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2395 V8TestObject::customLongAttributeAttributeSetterCustom(v8Value, info); 2459 V8TestObject::customLongAttributeAttributeSetterCustom(v8Value, info);
2396 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2460 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2397 } 2461 }
2398 #endif // ENABLE(CONDITION) 2462 #endif // ENABLE(CONDITION)
2399 2463
2400 static void customElementsCallbacksReadonlyLongAttributeAttributeGetter(const v8 ::PropertyCallbackInfo<v8::Value>& info) 2464 static void customElementsCallbacksReadonlyLongAttributeAttributeGetter(const v8 ::FunctionCallbackInfo<v8::Value>& info)
2401 { 2465 {
2402 v8::Local<v8::Object> holder = info.Holder(); 2466 v8::Local<v8::Object> holder = info.Holder();
2403 TestObject* impl = V8TestObject::toImpl(holder); 2467 TestObject* impl = V8TestObject::toImpl(holder);
2404 v8SetReturnValueInt(info, impl->customElementsCallbacksReadonlyLongAttribute ()); 2468 v8SetReturnValueInt(info, impl->customElementsCallbacksReadonlyLongAttribute ());
2405 } 2469 }
2406 2470
2407 static void customElementsCallbacksReadonlyLongAttributeAttributeGetterCallback( v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2471 static void customElementsCallbacksReadonlyLongAttributeAttributeGetterCallback( const v8::FunctionCallbackInfo<v8::Value>& info)
2408 { 2472 {
2409 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2473 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2410 TestObjectV8Internal::customElementsCallbacksReadonlyLongAttributeAttributeG etter(info); 2474 TestObjectV8Internal::customElementsCallbacksReadonlyLongAttributeAttributeG etter(info);
2411 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2475 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2412 } 2476 }
2413 2477
2414 static void deprecatedLongAttributeAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info) 2478 static void deprecatedLongAttributeAttributeGetter(const v8::FunctionCallbackInf o<v8::Value>& info)
2415 { 2479 {
2416 v8::Local<v8::Object> holder = info.Holder(); 2480 v8::Local<v8::Object> holder = info.Holder();
2417 TestObject* impl = V8TestObject::toImpl(holder); 2481 TestObject* impl = V8TestObject::toImpl(holder);
2418 v8SetReturnValueInt(info, impl->deprecatedLongAttribute()); 2482 v8SetReturnValueInt(info, impl->deprecatedLongAttribute());
2419 } 2483 }
2420 2484
2421 static void deprecatedLongAttributeAttributeGetterCallback(v8::Local<v8::String> , const v8::PropertyCallbackInfo<v8::Value>& info) 2485 static void deprecatedLongAttributeAttributeGetterCallback(const v8::FunctionCal lbackInfo<v8::Value>& info)
2422 { 2486 {
2423 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2487 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2424 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe cutionContext(info.GetIsolate()), UseCounter::LongAttribute); 2488 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe cutionContext(info.GetIsolate()), UseCounter::LongAttribute);
2425 TestObjectV8Internal::deprecatedLongAttributeAttributeGetter(info); 2489 TestObjectV8Internal::deprecatedLongAttributeAttributeGetter(info);
2426 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2490 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2427 } 2491 }
2428 2492
2429 static void deprecatedLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2493 static void deprecatedLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
2430 { 2494 {
2431 v8::Local<v8::Object> holder = info.Holder(); 2495 v8::Local<v8::Object> holder = info.Holder();
2432 ExceptionState exceptionState(ExceptionState::SetterContext, "deprecatedLong Attribute", "TestObject", holder, info.GetIsolate()); 2496 ExceptionState exceptionState(ExceptionState::SetterContext, "deprecatedLong Attribute", "TestObject", holder, info.GetIsolate());
2433 TestObject* impl = V8TestObject::toImpl(holder); 2497 TestObject* impl = V8TestObject::toImpl(holder);
2434 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 2498 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2435 impl->setDeprecatedLongAttribute(cppValue); 2499 impl->setDeprecatedLongAttribute(cppValue);
2436 } 2500 }
2437 2501
2438 static void deprecatedLongAttributeAttributeSetterCallback(v8::Local<v8::String> , v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2502 static void deprecatedLongAttributeAttributeSetterCallback(const v8::FunctionCal lbackInfo<v8::Value>& info)
2439 { 2503 {
2504 v8::Local<v8::Value> v8Value = info[0];
2440 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2505 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2441 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe cutionContext(info.GetIsolate()), UseCounter::LongAttribute); 2506 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe cutionContext(info.GetIsolate()), UseCounter::LongAttribute);
2442 TestObjectV8Internal::deprecatedLongAttributeAttributeSetter(v8Value, info); 2507 TestObjectV8Internal::deprecatedLongAttributeAttributeSetter(v8Value, info);
2443 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2508 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2444 } 2509 }
2445 2510
2446 static void enforceRangeLongAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info) 2511 static void enforceRangeLongAttributeAttributeGetter(const v8::FunctionCallbackI nfo<v8::Value>& info)
2447 { 2512 {
2448 v8::Local<v8::Object> holder = info.Holder(); 2513 v8::Local<v8::Object> holder = info.Holder();
2449 TestObject* impl = V8TestObject::toImpl(holder); 2514 TestObject* impl = V8TestObject::toImpl(holder);
2450 v8SetReturnValueInt(info, impl->enforceRangeLongAttribute()); 2515 v8SetReturnValueInt(info, impl->enforceRangeLongAttribute());
2451 } 2516 }
2452 2517
2453 static void enforceRangeLongAttributeAttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info) 2518 static void enforceRangeLongAttributeAttributeGetterCallback(const v8::FunctionC allbackInfo<v8::Value>& info)
2454 { 2519 {
2455 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2520 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2456 TestObjectV8Internal::enforceRangeLongAttributeAttributeGetter(info); 2521 TestObjectV8Internal::enforceRangeLongAttributeAttributeGetter(info);
2457 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2522 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2458 } 2523 }
2459 2524
2460 static void enforceRangeLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::PropertyCallbackInfo<void>& info) 2525 static void enforceRangeLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::FunctionCallbackInfo<v8::Value>& info)
2461 { 2526 {
2462 v8::Local<v8::Object> holder = info.Holder(); 2527 v8::Local<v8::Object> holder = info.Holder();
2463 ExceptionState exceptionState(ExceptionState::SetterContext, "enforceRangeLo ngAttribute", "TestObject", holder, info.GetIsolate()); 2528 ExceptionState exceptionState(ExceptionState::SetterContext, "enforceRangeLo ngAttribute", "TestObject", holder, info.GetIsolate());
2464 TestObject* impl = V8TestObject::toImpl(holder); 2529 TestObject* impl = V8TestObject::toImpl(holder);
2465 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, EnforceRange, e xceptionState), exceptionState); 2530 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, EnforceRange, e xceptionState), exceptionState);
2466 impl->setEnforceRangeLongAttribute(cppValue); 2531 impl->setEnforceRangeLongAttribute(cppValue);
2467 } 2532 }
2468 2533
2469 static void enforceRangeLongAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2534 static void enforceRangeLongAttributeAttributeSetterCallback(const v8::FunctionC allbackInfo<v8::Value>& info)
2470 { 2535 {
2536 v8::Local<v8::Value> v8Value = info[0];
2471 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2537 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2472 TestObjectV8Internal::enforceRangeLongAttributeAttributeSetter(v8Value, info ); 2538 TestObjectV8Internal::enforceRangeLongAttributeAttributeSetter(v8Value, info );
2473 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2539 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2474 } 2540 }
2475 2541
2476 static void exposeJSAccessorsLongAttributeAttributeGetter(const v8::FunctionCall backInfo<v8::Value>& info) 2542 static void exposeJSAccessorsLongAttributeAttributeGetter(const v8::FunctionCall backInfo<v8::Value>& info)
2477 { 2543 {
2478 v8::Local<v8::Object> holder = info.Holder(); 2544 v8::Local<v8::Object> holder = info.Holder();
2479 TestObject* impl = V8TestObject::toImpl(holder); 2545 TestObject* impl = V8TestObject::toImpl(holder);
2480 v8SetReturnValueInt(info, impl->exposeJSAccessorsLongAttribute()); 2546 v8SetReturnValueInt(info, impl->exposeJSAccessorsLongAttribute());
(...skipping 16 matching lines...) Expand all
2497 } 2563 }
2498 2564
2499 static void exposeJSAccessorsLongAttributeAttributeSetterCallback(const v8::Func tionCallbackInfo<v8::Value>& info) 2565 static void exposeJSAccessorsLongAttributeAttributeSetterCallback(const v8::Func tionCallbackInfo<v8::Value>& info)
2500 { 2566 {
2501 v8::Local<v8::Value> v8Value = info[0]; 2567 v8::Local<v8::Value> v8Value = info[0];
2502 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2568 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2503 TestObjectV8Internal::exposeJSAccessorsLongAttributeAttributeSetter(v8Value, info); 2569 TestObjectV8Internal::exposeJSAccessorsLongAttributeAttributeSetter(v8Value, info);
2504 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2570 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2505 } 2571 }
2506 2572
2507 static void implementedAsLongAttributeAttributeGetter(const v8::PropertyCallback Info<v8::Value>& info) 2573 static void implementedAsLongAttributeAttributeGetter(const v8::FunctionCallback Info<v8::Value>& info)
2508 { 2574 {
2509 v8::Local<v8::Object> holder = info.Holder(); 2575 v8::Local<v8::Object> holder = info.Holder();
2510 TestObject* impl = V8TestObject::toImpl(holder); 2576 TestObject* impl = V8TestObject::toImpl(holder);
2511 v8SetReturnValueInt(info, impl->implementedAsName()); 2577 v8SetReturnValueInt(info, impl->implementedAsName());
2512 } 2578 }
2513 2579
2514 static void implementedAsLongAttributeAttributeGetterCallback(v8::Local<v8::Stri ng>, const v8::PropertyCallbackInfo<v8::Value>& info) 2580 static void implementedAsLongAttributeAttributeGetterCallback(const v8::Function CallbackInfo<v8::Value>& info)
2515 { 2581 {
2516 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2582 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2517 TestObjectV8Internal::implementedAsLongAttributeAttributeGetter(info); 2583 TestObjectV8Internal::implementedAsLongAttributeAttributeGetter(info);
2518 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2584 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2519 } 2585 }
2520 2586
2521 static void implementedAsLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val ue, const v8::PropertyCallbackInfo<void>& info) 2587 static void implementedAsLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val ue, const v8::FunctionCallbackInfo<v8::Value>& info)
2522 { 2588 {
2523 v8::Local<v8::Object> holder = info.Holder(); 2589 v8::Local<v8::Object> holder = info.Holder();
2524 ExceptionState exceptionState(ExceptionState::SetterContext, "implementedAsL ongAttribute", "TestObject", holder, info.GetIsolate()); 2590 ExceptionState exceptionState(ExceptionState::SetterContext, "implementedAsL ongAttribute", "TestObject", holder, info.GetIsolate());
2525 TestObject* impl = V8TestObject::toImpl(holder); 2591 TestObject* impl = V8TestObject::toImpl(holder);
2526 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 2592 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2527 impl->setImplementedAsName(cppValue); 2593 impl->setImplementedAsName(cppValue);
2528 } 2594 }
2529 2595
2530 static void implementedAsLongAttributeAttributeSetterCallback(v8::Local<v8::Stri ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2596 static void implementedAsLongAttributeAttributeSetterCallback(const v8::Function CallbackInfo<v8::Value>& info)
2531 { 2597 {
2598 v8::Local<v8::Value> v8Value = info[0];
2532 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2599 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2533 TestObjectV8Internal::implementedAsLongAttributeAttributeSetter(v8Value, inf o); 2600 TestObjectV8Internal::implementedAsLongAttributeAttributeSetter(v8Value, inf o);
2534 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2601 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2535 } 2602 }
2536 2603
2537 static void customImplementedAsLongAttributeAttributeGetterCallback(v8::Local<v8 ::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2604 static void customImplementedAsLongAttributeAttributeGetterCallback(v8::Local<v8 ::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
2538 { 2605 {
2539 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2606 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2540 V8TestObject::customImplementedAsLongAttributeAttributeGetterCustom(info); 2607 V8TestObject::customImplementedAsLongAttributeAttributeGetterCustom(info);
2541 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2608 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
2585 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2652 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2586 } 2653 }
2587 2654
2588 static void customSetterImplementedAsLongAttributeAttributeSetterCallback(v8::Lo cal<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<vo id>& info) 2655 static void customSetterImplementedAsLongAttributeAttributeSetterCallback(v8::Lo cal<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<vo id>& info)
2589 { 2656 {
2590 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2657 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2591 V8TestObject::customSetterImplementedAsLongAttributeAttributeSetterCustom(v8 Value, info); 2658 V8TestObject::customSetterImplementedAsLongAttributeAttributeSetterCustom(v8 Value, info);
2592 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2659 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2593 } 2660 }
2594 2661
2595 static void measureAsLongAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info) 2662 static void measureAsLongAttributeAttributeGetter(const v8::FunctionCallbackInfo <v8::Value>& info)
2596 { 2663 {
2597 v8::Local<v8::Object> holder = info.Holder(); 2664 v8::Local<v8::Object> holder = info.Holder();
2598 TestObject* impl = V8TestObject::toImpl(holder); 2665 TestObject* impl = V8TestObject::toImpl(holder);
2599 v8SetReturnValueInt(info, impl->measureAsLongAttribute()); 2666 v8SetReturnValueInt(info, impl->measureAsLongAttribute());
2600 } 2667 }
2601 2668
2602 static void measureAsLongAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2669 static void measureAsLongAttributeAttributeGetterCallback(const v8::FunctionCall backInfo<v8::Value>& info)
2603 { 2670 {
2604 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2671 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2605 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::TestFeature); 2672 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::TestFeature);
2606 TestObjectV8Internal::measureAsLongAttributeAttributeGetter(info); 2673 TestObjectV8Internal::measureAsLongAttributeAttributeGetter(info);
2607 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2674 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2608 } 2675 }
2609 2676
2610 static void measureAsLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2677 static void measureAsLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
2611 { 2678 {
2612 v8::Local<v8::Object> holder = info.Holder(); 2679 v8::Local<v8::Object> holder = info.Holder();
2613 ExceptionState exceptionState(ExceptionState::SetterContext, "measureAsLongA ttribute", "TestObject", holder, info.GetIsolate()); 2680 ExceptionState exceptionState(ExceptionState::SetterContext, "measureAsLongA ttribute", "TestObject", holder, info.GetIsolate());
2614 TestObject* impl = V8TestObject::toImpl(holder); 2681 TestObject* impl = V8TestObject::toImpl(holder);
2615 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 2682 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2616 impl->setMeasureAsLongAttribute(cppValue); 2683 impl->setMeasureAsLongAttribute(cppValue);
2617 } 2684 }
2618 2685
2619 static void measureAsLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2686 static void measureAsLongAttributeAttributeSetterCallback(const v8::FunctionCall backInfo<v8::Value>& info)
2620 { 2687 {
2688 v8::Local<v8::Value> v8Value = info[0];
2621 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2689 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2622 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::TestFeature); 2690 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::TestFeature);
2623 TestObjectV8Internal::measureAsLongAttributeAttributeSetter(v8Value, info); 2691 TestObjectV8Internal::measureAsLongAttributeAttributeSetter(v8Value, info);
2624 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2692 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2625 } 2693 }
2626 2694
2627 static void notEnumerableLongAttributeAttributeGetter(const v8::PropertyCallback Info<v8::Value>& info) 2695 static void notEnumerableLongAttributeAttributeGetter(const v8::FunctionCallback Info<v8::Value>& info)
2628 { 2696 {
2629 v8::Local<v8::Object> holder = info.Holder(); 2697 v8::Local<v8::Object> holder = info.Holder();
2630 TestObject* impl = V8TestObject::toImpl(holder); 2698 TestObject* impl = V8TestObject::toImpl(holder);
2631 v8SetReturnValueInt(info, impl->notEnumerableLongAttribute()); 2699 v8SetReturnValueInt(info, impl->notEnumerableLongAttribute());
2632 } 2700 }
2633 2701
2634 static void notEnumerableLongAttributeAttributeGetterCallback(v8::Local<v8::Stri ng>, const v8::PropertyCallbackInfo<v8::Value>& info) 2702 static void notEnumerableLongAttributeAttributeGetterCallback(const v8::Function CallbackInfo<v8::Value>& info)
2635 { 2703 {
2636 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2704 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2637 TestObjectV8Internal::notEnumerableLongAttributeAttributeGetter(info); 2705 TestObjectV8Internal::notEnumerableLongAttributeAttributeGetter(info);
2638 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2706 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2639 } 2707 }
2640 2708
2641 static void notEnumerableLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val ue, const v8::PropertyCallbackInfo<void>& info) 2709 static void notEnumerableLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val ue, const v8::FunctionCallbackInfo<v8::Value>& info)
2642 { 2710 {
2643 v8::Local<v8::Object> holder = info.Holder(); 2711 v8::Local<v8::Object> holder = info.Holder();
2644 ExceptionState exceptionState(ExceptionState::SetterContext, "notEnumerableL ongAttribute", "TestObject", holder, info.GetIsolate()); 2712 ExceptionState exceptionState(ExceptionState::SetterContext, "notEnumerableL ongAttribute", "TestObject", holder, info.GetIsolate());
2645 TestObject* impl = V8TestObject::toImpl(holder); 2713 TestObject* impl = V8TestObject::toImpl(holder);
2646 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 2714 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2647 impl->setNotEnumerableLongAttribute(cppValue); 2715 impl->setNotEnumerableLongAttribute(cppValue);
2648 } 2716 }
2649 2717
2650 static void notEnumerableLongAttributeAttributeSetterCallback(v8::Local<v8::Stri ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2718 static void notEnumerableLongAttributeAttributeSetterCallback(const v8::Function CallbackInfo<v8::Value>& info)
2651 { 2719 {
2720 v8::Local<v8::Value> v8Value = info[0];
2652 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2721 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2653 TestObjectV8Internal::notEnumerableLongAttributeAttributeSetter(v8Value, inf o); 2722 TestObjectV8Internal::notEnumerableLongAttributeAttributeSetter(v8Value, inf o);
2654 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2723 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2655 } 2724 }
2656 2725
2657 static void perContextEnabledLongAttributeAttributeGetter(const v8::PropertyCall backInfo<v8::Value>& info) 2726 static void perContextEnabledLongAttributeAttributeGetter(const v8::PropertyCall backInfo<v8::Value>& info)
2658 { 2727 {
2659 v8::Local<v8::Object> holder = info.Holder(); 2728 v8::Local<v8::Object> holder = info.Holder();
2660 TestObject* impl = V8TestObject::toImpl(holder); 2729 TestObject* impl = V8TestObject::toImpl(holder);
2661 v8SetReturnValueInt(info, impl->perContextEnabledLongAttribute()); 2730 v8SetReturnValueInt(info, impl->perContextEnabledLongAttribute());
(...skipping 15 matching lines...) Expand all
2677 impl->setPerContextEnabledLongAttribute(cppValue); 2746 impl->setPerContextEnabledLongAttribute(cppValue);
2678 } 2747 }
2679 2748
2680 static void perContextEnabledLongAttributeAttributeSetterCallback(v8::Local<v8:: String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& inf o) 2749 static void perContextEnabledLongAttributeAttributeSetterCallback(v8::Local<v8:: String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& inf o)
2681 { 2750 {
2682 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2751 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2683 TestObjectV8Internal::perContextEnabledLongAttributeAttributeSetter(v8Value, info); 2752 TestObjectV8Internal::perContextEnabledLongAttributeAttributeSetter(v8Value, info);
2684 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2753 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2685 } 2754 }
2686 2755
2687 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetter(c onst v8::PropertyCallbackInfo<v8::Value>& info) 2756 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetter(c onst v8::FunctionCallbackInfo<v8::Value>& info)
2688 { 2757 {
2689 v8::Local<v8::Object> holder = info.Holder(); 2758 v8::Local<v8::Object> holder = info.Holder();
2690 TestObject* impl = V8TestObject::toImpl(holder); 2759 TestObject* impl = V8TestObject::toImpl(holder);
2691 RefPtr<TestInterfaceEmpty> cppValue(impl->perWorldBindingsReadonlyTestInterf aceEmptyAttribute()); 2760 RefPtr<TestInterfaceEmpty> cppValue(impl->perWorldBindingsReadonlyTestInterf aceEmptyAttribute());
2692 if (cppValue && DOMDataStore::setReturnValue(info.GetReturnValue(), cppValue .get())) 2761 if (cppValue && DOMDataStore::setReturnValue(info.GetReturnValue(), cppValue .get()))
2693 return; 2762 return;
2694 v8::Local<v8::Value> wrapper = toV8(cppValue.get(), holder, info.GetIsolate( )); 2763 v8::Local<v8::Value> wrapper = toV8(cppValue.get(), holder, info.GetIsolate( ));
2695 if (!wrapper.IsEmpty()) { 2764 if (!wrapper.IsEmpty()) {
2696 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString( info.GetIsolate(), "perWorldBindingsReadonlyTestInterfaceEmptyAttribute"), wrapp er); 2765 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString( info.GetIsolate(), "perWorldBindingsReadonlyTestInterfaceEmptyAttribute"), wrapp er);
2697 v8SetReturnValue(info, wrapper); 2766 v8SetReturnValue(info, wrapper);
2698 } 2767 }
2699 } 2768 }
2700 2769
2701 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCa llback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2770 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCa llback(const v8::FunctionCallbackInfo<v8::Value>& info)
2702 { 2771 {
2703 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2772 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2704 TestObjectV8Internal::perWorldBindingsReadonlyTestInterfaceEmptyAttributeAtt ributeGetter(info); 2773 TestObjectV8Internal::perWorldBindingsReadonlyTestInterfaceEmptyAttributeAtt ributeGetter(info);
2705 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2774 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2706 } 2775 }
2707 2776
2708 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterFo rMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) 2777 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterFo rMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
2709 { 2778 {
2710 v8::Local<v8::Object> holder = info.Holder(); 2779 v8::Local<v8::Object> holder = info.Holder();
2711 TestObject* impl = V8TestObject::toImpl(holder); 2780 TestObject* impl = V8TestObject::toImpl(holder);
2712 RefPtr<TestInterfaceEmpty> cppValue(impl->perWorldBindingsReadonlyTestInterf aceEmptyAttribute()); 2781 RefPtr<TestInterfaceEmpty> cppValue(impl->perWorldBindingsReadonlyTestInterf aceEmptyAttribute());
2713 if (cppValue && DOMDataStore::setReturnValueForMainWorld(info.GetReturnValue (), cppValue.get())) 2782 if (cppValue && DOMDataStore::setReturnValueForMainWorld(info.GetReturnValue (), cppValue.get()))
2714 return; 2783 return;
2715 v8::Local<v8::Value> wrapper = toV8(cppValue.get(), holder, info.GetIsolate( )); 2784 v8::Local<v8::Value> wrapper = toV8(cppValue.get(), holder, info.GetIsolate( ));
2716 if (!wrapper.IsEmpty()) { 2785 if (!wrapper.IsEmpty()) {
2717 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString( info.GetIsolate(), "perWorldBindingsReadonlyTestInterfaceEmptyAttribute"), wrapp er); 2786 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString( info.GetIsolate(), "perWorldBindingsReadonlyTestInterfaceEmptyAttribute"), wrapp er);
2718 v8SetReturnValue(info, wrapper); 2787 v8SetReturnValue(info, wrapper);
2719 } 2788 }
2720 } 2789 }
2721 2790
2722 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCa llbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Val ue>& info) 2791 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCa llbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
2723 { 2792 {
2724 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2793 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2725 TestObjectV8Internal::perWorldBindingsReadonlyTestInterfaceEmptyAttributeAtt ributeGetterForMainWorld(info); 2794 TestObjectV8Internal::perWorldBindingsReadonlyTestInterfaceEmptyAttributeAtt ributeGetterForMainWorld(info);
2726 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2795 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2727 } 2796 }
2728 2797
2729 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetter(co nst v8::PropertyCallbackInfo<v8::Value>& info) 2798 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetter(co nst v8::FunctionCallbackInfo<v8::Value>& info)
2730 { 2799 {
2731 v8::Local<v8::Object> holder = info.Holder(); 2800 v8::Local<v8::Object> holder = info.Holder();
2732 TestObject* impl = V8TestObject::toImpl(holder); 2801 TestObject* impl = V8TestObject::toImpl(holder);
2733 v8SetReturnValueInt(info, impl->activityLoggingAccessPerWorldBindingsLongAtt ribute()); 2802 v8SetReturnValueInt(info, impl->activityLoggingAccessPerWorldBindingsLongAtt ribute());
2734 } 2803 }
2735 2804
2736 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCal lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2805 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCal lback(const v8::FunctionCallbackInfo<v8::Value>& info)
2737 { 2806 {
2738 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2807 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2739 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 2808 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
2740 V8PerContextData* contextData = scriptState->perContextData(); 2809 V8PerContextData* contextData = scriptState->perContextData();
2741 if (contextData && contextData->activityLogger()) 2810 if (contextData && contextData->activityLogger())
2742 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssPerWorldBindingsLongAttribute"); 2811 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssPerWorldBindingsLongAttribute");
2743 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteGetter(info); 2812 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteGetter(info);
2744 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2813 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2745 } 2814 }
2746 2815
2747 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2816 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
2748 { 2817 {
2749 v8::Local<v8::Object> holder = info.Holder(); 2818 v8::Local<v8::Object> holder = info.Holder();
2750 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); 2819 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate());
2751 TestObject* impl = V8TestObject::toImpl(holder); 2820 TestObject* impl = V8TestObject::toImpl(holder);
2752 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 2821 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2753 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); 2822 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue);
2754 } 2823 }
2755 2824
2756 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal lbackInfo<void>& info) 2825 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal lback(const v8::FunctionCallbackInfo<v8::Value>& info)
2757 { 2826 {
2827 v8::Local<v8::Value> v8Value = info[0];
2758 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2828 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2759 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 2829 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
2760 V8PerContextData* contextData = scriptState->perContextData(); 2830 V8PerContextData* contextData = scriptState->perContextData();
2761 if (contextData && contextData->activityLogger()) { 2831 if (contextData && contextData->activityLogger()) {
2762 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce ssPerWorldBindingsLongAttribute", v8Value); 2832 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce ssPerWorldBindingsLongAttribute", v8Value);
2763 } 2833 }
2764 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteSetter(v8Value, info); 2834 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteSetter(v8Value, info);
2765 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2835 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2766 } 2836 }
2767 2837
2768 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterFor MainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) 2838 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterFor MainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
2769 { 2839 {
2770 v8::Local<v8::Object> holder = info.Holder(); 2840 v8::Local<v8::Object> holder = info.Holder();
2771 TestObject* impl = V8TestObject::toImpl(holder); 2841 TestObject* impl = V8TestObject::toImpl(holder);
2772 v8SetReturnValueInt(info, impl->activityLoggingAccessPerWorldBindingsLongAtt ribute()); 2842 v8SetReturnValueInt(info, impl->activityLoggingAccessPerWorldBindingsLongAtt ribute());
2773 } 2843 }
2774 2844
2775 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCal lbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Valu e>& info) 2845 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCal lbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
2776 { 2846 {
2777 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2847 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2778 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 2848 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
2779 V8PerContextData* contextData = scriptState->perContextData(); 2849 V8PerContextData* contextData = scriptState->perContextData();
2780 if (contextData && contextData->activityLogger()) 2850 if (contextData && contextData->activityLogger())
2781 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssPerWorldBindingsLongAttribute"); 2851 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssPerWorldBindingsLongAttribute");
2782 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteGetterForMainWorld(info); 2852 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteGetterForMainWorld(info);
2783 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2853 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2784 } 2854 }
2785 2855
2786 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterFor MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo) 2856 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterFor MainWorld(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value >& info)
2787 { 2857 {
2788 v8::Local<v8::Object> holder = info.Holder(); 2858 v8::Local<v8::Object> holder = info.Holder();
2789 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); 2859 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate());
2790 TestObject* impl = V8TestObject::toImpl(holder); 2860 TestObject* impl = V8TestObject::toImpl(holder);
2791 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 2861 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2792 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); 2862 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue);
2793 } 2863 }
2794 2864
2795 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal lbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info) 2865 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal lbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
2796 { 2866 {
2867 v8::Local<v8::Value> v8Value = info[0];
2797 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2868 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2798 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 2869 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
2799 V8PerContextData* contextData = scriptState->perContextData(); 2870 V8PerContextData* contextData = scriptState->perContextData();
2800 if (contextData && contextData->activityLogger()) { 2871 if (contextData && contextData->activityLogger()) {
2801 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce ssPerWorldBindingsLongAttribute", v8Value); 2872 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce ssPerWorldBindingsLongAttribute", v8Value);
2802 } 2873 }
2803 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteSetterForMainWorld(v8Value, info); 2874 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteSetterForMainWorld(v8Value, info);
2804 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2875 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2805 } 2876 }
2806 2877
2807 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 2878 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info)
2808 { 2879 {
2809 v8::Local<v8::Object> holder = info.Holder(); 2880 v8::Local<v8::Object> holder = info.Holder();
2810 TestObject* impl = V8TestObject::toImpl(holder); 2881 TestObject* impl = V8TestObject::toImpl(holder);
2811 v8SetReturnValueInt(info, impl->activityLoggingAccessForIsolatedWorldsPerWor ldBindingsLongAttribute()); 2882 v8SetReturnValueInt(info, impl->activityLoggingAccessForIsolatedWorldsPerWor ldBindingsLongAttribute());
2812 } 2883 }
2813 2884
2814 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8: :Value>& info) 2885 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
2815 { 2886 {
2816 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2887 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2817 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 2888 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
2818 V8PerContextData* contextData = scriptState->perContextData(); 2889 V8PerContextData* contextData = scriptState->perContextData();
2819 if (contextData && contextData->activityLogger()) 2890 if (contextData && contextData->activityLogger())
2820 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssForIsolatedWorldsPerWorldBindingsLongAttribute"); 2891 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssForIsolatedWorldsPerWorldBindingsLongAttribute");
2821 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetter(info); 2892 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetter(info);
2822 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2893 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2823 } 2894 }
2824 2895
2825 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info) 2896 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8:: Value>& info)
2826 { 2897 {
2827 v8::Local<v8::Object> holder = info.Holder(); 2898 v8::Local<v8::Object> holder = info.Holder();
2828 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate()); 2899 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate());
2829 TestObject* impl = V8TestObject::toImpl(holder); 2900 TestObject* impl = V8TestObject::toImpl(holder);
2830 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 2901 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2831 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue); 2902 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue);
2832 } 2903 }
2833 2904
2834 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, cons t v8::PropertyCallbackInfo<void>& info) 2905 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
2835 { 2906 {
2907 v8::Local<v8::Value> v8Value = info[0];
2836 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2908 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2837 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 2909 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
2838 V8PerContextData* contextData = scriptState->perContextData(); 2910 V8PerContextData* contextData = scriptState->perContextData();
2839 if (contextData && contextData->activityLogger()) { 2911 if (contextData && contextData->activityLogger()) {
2840 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce ssForIsolatedWorldsPerWorldBindingsLongAttribute", v8Value); 2912 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce ssForIsolatedWorldsPerWorldBindingsLongAttribute", v8Value);
2841 } 2913 }
2842 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings LongAttributeAttributeSetter(v8Value, info); 2914 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings LongAttributeAttributeSetter(v8Value, info);
2843 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2915 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2844 } 2916 }
2845 2917
2846 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterForMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) 2918 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
2847 { 2919 {
2848 v8::Local<v8::Object> holder = info.Holder(); 2920 v8::Local<v8::Object> holder = info.Holder();
2849 TestObject* impl = V8TestObject::toImpl(holder); 2921 TestObject* impl = V8TestObject::toImpl(holder);
2850 v8SetReturnValueInt(info, impl->activityLoggingAccessForIsolatedWorldsPerWor ldBindingsLongAttribute()); 2922 v8SetReturnValueInt(info, impl->activityLoggingAccessForIsolatedWorldsPerWor ldBindingsLongAttribute());
2851 } 2923 }
2852 2924
2853 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterCallbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCall backInfo<v8::Value>& info) 2925 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterCallbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& in fo)
2854 { 2926 {
2855 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2927 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2856 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetterForMainWorld(info); 2928 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetterForMainWorld(info);
2857 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2929 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2858 } 2930 }
2859 2931
2860 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterForMainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallb ackInfo<void>& info) 2932 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterForMainWorld(v8::Local<v8::Value> v8Value, const v8::FunctionCallb ackInfo<v8::Value>& info)
2861 { 2933 {
2862 v8::Local<v8::Object> holder = info.Holder(); 2934 v8::Local<v8::Object> holder = info.Holder();
2863 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate()); 2935 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate());
2864 TestObject* impl = V8TestObject::toImpl(holder); 2936 TestObject* impl = V8TestObject::toImpl(holder);
2865 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 2937 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2866 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue); 2938 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue);
2867 } 2939 }
2868 2940
2869 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v 8Value, const v8::PropertyCallbackInfo<void>& info) 2941 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& in fo)
2870 { 2942 {
2943 v8::Local<v8::Value> v8Value = info[0];
2871 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2944 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2872 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings LongAttributeAttributeSetterForMainWorld(v8Value, info); 2945 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings LongAttributeAttributeSetterForMainWorld(v8Value, info);
2873 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2946 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2874 } 2947 }
2875 2948
2876 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetter(co nst v8::PropertyCallbackInfo<v8::Value>& info) 2949 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetter(co nst v8::FunctionCallbackInfo<v8::Value>& info)
2877 { 2950 {
2878 v8::Local<v8::Object> holder = info.Holder(); 2951 v8::Local<v8::Object> holder = info.Holder();
2879 TestObject* impl = V8TestObject::toImpl(holder); 2952 TestObject* impl = V8TestObject::toImpl(holder);
2880 v8SetReturnValueInt(info, impl->activityLoggingGetterPerWorldBindingsLongAtt ribute()); 2953 v8SetReturnValueInt(info, impl->activityLoggingGetterPerWorldBindingsLongAtt ribute());
2881 } 2954 }
2882 2955
2883 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCal lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2956 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCal lback(const v8::FunctionCallbackInfo<v8::Value>& info)
2884 { 2957 {
2885 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2958 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2886 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 2959 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
2887 V8PerContextData* contextData = scriptState->perContextData(); 2960 V8PerContextData* contextData = scriptState->perContextData();
2888 if (contextData && contextData->activityLogger()) 2961 if (contextData && contextData->activityLogger())
2889 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erPerWorldBindingsLongAttribute"); 2962 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erPerWorldBindingsLongAttribute");
2890 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteGetter(info); 2963 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteGetter(info);
2891 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2964 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2892 } 2965 }
2893 2966
2894 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2967 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
2895 { 2968 {
2896 v8::Local<v8::Object> holder = info.Holder(); 2969 v8::Local<v8::Object> holder = info.Holder();
2897 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); 2970 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate());
2898 TestObject* impl = V8TestObject::toImpl(holder); 2971 TestObject* impl = V8TestObject::toImpl(holder);
2899 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 2972 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2900 impl->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue); 2973 impl->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue);
2901 } 2974 }
2902 2975
2903 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCal lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal lbackInfo<void>& info) 2976 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCal lback(const v8::FunctionCallbackInfo<v8::Value>& info)
2904 { 2977 {
2978 v8::Local<v8::Value> v8Value = info[0];
2905 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2979 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2906 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteSetter(v8Value, info); 2980 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteSetter(v8Value, info);
2907 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2981 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2908 } 2982 }
2909 2983
2910 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterFor MainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) 2984 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterFor MainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
2911 { 2985 {
2912 v8::Local<v8::Object> holder = info.Holder(); 2986 v8::Local<v8::Object> holder = info.Holder();
2913 TestObject* impl = V8TestObject::toImpl(holder); 2987 TestObject* impl = V8TestObject::toImpl(holder);
2914 v8SetReturnValueInt(info, impl->activityLoggingGetterPerWorldBindingsLongAtt ribute()); 2988 v8SetReturnValueInt(info, impl->activityLoggingGetterPerWorldBindingsLongAtt ribute());
2915 } 2989 }
2916 2990
2917 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCal lbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Valu e>& info) 2991 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCal lbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
2918 { 2992 {
2919 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2993 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2920 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 2994 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
2921 V8PerContextData* contextData = scriptState->perContextData(); 2995 V8PerContextData* contextData = scriptState->perContextData();
2922 if (contextData && contextData->activityLogger()) 2996 if (contextData && contextData->activityLogger())
2923 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erPerWorldBindingsLongAttribute"); 2997 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erPerWorldBindingsLongAttribute");
2924 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteGetterForMainWorld(info); 2998 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteGetterForMainWorld(info);
2925 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2999 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2926 } 3000 }
2927 3001
2928 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterFor MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo) 3002 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterFor MainWorld(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value >& info)
2929 { 3003 {
2930 v8::Local<v8::Object> holder = info.Holder(); 3004 v8::Local<v8::Object> holder = info.Holder();
2931 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); 3005 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate());
2932 TestObject* impl = V8TestObject::toImpl(holder); 3006 TestObject* impl = V8TestObject::toImpl(holder);
2933 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 3007 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2934 impl->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue); 3008 impl->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue);
2935 } 3009 }
2936 3010
2937 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCal lbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info) 3011 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCal lbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
2938 { 3012 {
3013 v8::Local<v8::Value> v8Value = info[0];
2939 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3014 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2940 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteSetterForMainWorld(v8Value, info); 3015 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteSetterForMainWorld(v8Value, info);
2941 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3016 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2942 } 3017 }
2943 3018
2944 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 3019 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info)
2945 { 3020 {
2946 v8::Local<v8::Object> holder = info.Holder(); 3021 v8::Local<v8::Object> holder = info.Holder();
2947 TestObject* impl = V8TestObject::toImpl(holder); 3022 TestObject* impl = V8TestObject::toImpl(holder);
2948 v8SetReturnValueInt(info, impl->activityLoggingGetterForIsolatedWorldsPerWor ldBindingsLongAttribute()); 3023 v8SetReturnValueInt(info, impl->activityLoggingGetterForIsolatedWorldsPerWor ldBindingsLongAttribute());
2949 } 3024 }
2950 3025
2951 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8: :Value>& info) 3026 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
2952 { 3027 {
2953 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3028 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2954 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 3029 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
2955 V8PerContextData* contextData = scriptState->perContextData(); 3030 V8PerContextData* contextData = scriptState->perContextData();
2956 if (contextData && contextData->activityLogger()) 3031 if (contextData && contextData->activityLogger())
2957 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erForIsolatedWorldsPerWorldBindingsLongAttribute"); 3032 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erForIsolatedWorldsPerWorldBindingsLongAttribute");
2958 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetter(info); 3033 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetter(info);
2959 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3034 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2960 } 3035 }
2961 3036
2962 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info) 3037 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8:: Value>& info)
2963 { 3038 {
2964 v8::Local<v8::Object> holder = info.Holder(); 3039 v8::Local<v8::Object> holder = info.Holder();
2965 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate()); 3040 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate());
2966 TestObject* impl = V8TestObject::toImpl(holder); 3041 TestObject* impl = V8TestObject::toImpl(holder);
2967 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 3042 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2968 impl->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue); 3043 impl->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue);
2969 } 3044 }
2970 3045
2971 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, cons t v8::PropertyCallbackInfo<void>& info) 3046 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
2972 { 3047 {
3048 v8::Local<v8::Value> v8Value = info[0];
2973 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3049 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2974 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings LongAttributeAttributeSetter(v8Value, info); 3050 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings LongAttributeAttributeSetter(v8Value, info);
2975 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3051 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2976 } 3052 }
2977 3053
2978 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterForMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) 3054 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
2979 { 3055 {
2980 v8::Local<v8::Object> holder = info.Holder(); 3056 v8::Local<v8::Object> holder = info.Holder();
2981 TestObject* impl = V8TestObject::toImpl(holder); 3057 TestObject* impl = V8TestObject::toImpl(holder);
2982 v8SetReturnValueInt(info, impl->activityLoggingGetterForIsolatedWorldsPerWor ldBindingsLongAttribute()); 3058 v8SetReturnValueInt(info, impl->activityLoggingGetterForIsolatedWorldsPerWor ldBindingsLongAttribute());
2983 } 3059 }
2984 3060
2985 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterCallbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCall backInfo<v8::Value>& info) 3061 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterCallbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& in fo)
2986 { 3062 {
2987 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3063 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2988 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetterForMainWorld(info); 3064 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetterForMainWorld(info);
2989 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3065 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2990 } 3066 }
2991 3067
2992 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterForMainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallb ackInfo<void>& info) 3068 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterForMainWorld(v8::Local<v8::Value> v8Value, const v8::FunctionCallb ackInfo<v8::Value>& info)
2993 { 3069 {
2994 v8::Local<v8::Object> holder = info.Holder(); 3070 v8::Local<v8::Object> holder = info.Holder();
2995 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate()); 3071 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate());
2996 TestObject* impl = V8TestObject::toImpl(holder); 3072 TestObject* impl = V8TestObject::toImpl(holder);
2997 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 3073 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2998 impl->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue); 3074 impl->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue);
2999 } 3075 }
3000 3076
3001 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v 8Value, const v8::PropertyCallbackInfo<void>& info) 3077 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& in fo)
3002 { 3078 {
3079 v8::Local<v8::Value> v8Value = info[0];
3003 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3080 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3004 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings LongAttributeAttributeSetterForMainWorld(v8Value, info); 3081 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings LongAttributeAttributeSetterForMainWorld(v8Value, info);
3005 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3082 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3006 } 3083 }
3007 3084
3008 static void locationAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& i nfo) 3085 static void locationAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& i nfo)
3009 { 3086 {
3010 v8::Local<v8::Object> holder = info.Holder(); 3087 v8::Local<v8::Object> holder = info.Holder();
3011 TestObject* impl = V8TestObject::toImpl(holder); 3088 TestObject* impl = V8TestObject::toImpl(holder);
3012 v8SetReturnValueFast(info, WTF::getPtr(impl->location()), impl); 3089 v8SetReturnValueFast(info, WTF::getPtr(impl->location()), impl);
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
3304 impl->setAttr1(WTF::getPtr(cppValue)); 3381 impl->setAttr1(WTF::getPtr(cppValue));
3305 } 3382 }
3306 3383
3307 static void locationWillBeGarbageCollectedAttributeSetterCallback(v8::Local<v8:: String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& inf o) 3384 static void locationWillBeGarbageCollectedAttributeSetterCallback(v8::Local<v8:: String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& inf o)
3308 { 3385 {
3309 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3386 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3310 TestObjectV8Internal::locationWillBeGarbageCollectedAttributeSetter(v8Value, info); 3387 TestObjectV8Internal::locationWillBeGarbageCollectedAttributeSetter(v8Value, info);
3311 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3388 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3312 } 3389 }
3313 3390
3314 static void raisesExceptionLongAttributeAttributeGetter(const v8::PropertyCallba ckInfo<v8::Value>& info) 3391 static void raisesExceptionLongAttributeAttributeGetter(const v8::FunctionCallba ckInfo<v8::Value>& info)
3315 { 3392 {
3316 v8::Local<v8::Object> holder = info.Holder(); 3393 v8::Local<v8::Object> holder = info.Holder();
3317 TestObject* impl = V8TestObject::toImpl(holder); 3394 TestObject* impl = V8TestObject::toImpl(holder);
3318 ExceptionState exceptionState(ExceptionState::GetterContext, "raisesExceptio nLongAttribute", "TestObject", holder, info.GetIsolate()); 3395 ExceptionState exceptionState(ExceptionState::GetterContext, "raisesExceptio nLongAttribute", "TestObject", holder, info.GetIsolate());
3319 int cppValue(impl->raisesExceptionLongAttribute(exceptionState)); 3396 int cppValue(impl->raisesExceptionLongAttribute(exceptionState));
3320 if (UNLIKELY(exceptionState.throwIfNeeded())) 3397 if (UNLIKELY(exceptionState.throwIfNeeded()))
3321 return; 3398 return;
3322 v8SetReturnValueInt(info, cppValue); 3399 v8SetReturnValueInt(info, cppValue);
3323 } 3400 }
3324 3401
3325 static void raisesExceptionLongAttributeAttributeGetterCallback(v8::Local<v8::St ring>, const v8::PropertyCallbackInfo<v8::Value>& info) 3402 static void raisesExceptionLongAttributeAttributeGetterCallback(const v8::Functi onCallbackInfo<v8::Value>& info)
3326 { 3403 {
3327 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3404 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3328 TestObjectV8Internal::raisesExceptionLongAttributeAttributeGetter(info); 3405 TestObjectV8Internal::raisesExceptionLongAttributeAttributeGetter(info);
3329 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3406 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3330 } 3407 }
3331 3408
3332 static void raisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Value> v8V alue, const v8::PropertyCallbackInfo<void>& info) 3409 static void raisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Value> v8V alue, const v8::FunctionCallbackInfo<v8::Value>& info)
3333 { 3410 {
3334 v8::Local<v8::Object> holder = info.Holder(); 3411 v8::Local<v8::Object> holder = info.Holder();
3335 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio nLongAttribute", "TestObject", holder, info.GetIsolate()); 3412 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio nLongAttribute", "TestObject", holder, info.GetIsolate());
3336 TestObject* impl = V8TestObject::toImpl(holder); 3413 TestObject* impl = V8TestObject::toImpl(holder);
3337 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 3414 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
3338 impl->setRaisesExceptionLongAttribute(cppValue, exceptionState); 3415 impl->setRaisesExceptionLongAttribute(cppValue, exceptionState);
3339 exceptionState.throwIfNeeded(); 3416 exceptionState.throwIfNeeded();
3340 } 3417 }
3341 3418
3342 static void raisesExceptionLongAttributeAttributeSetterCallback(v8::Local<v8::St ring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3419 static void raisesExceptionLongAttributeAttributeSetterCallback(const v8::Functi onCallbackInfo<v8::Value>& info)
3343 { 3420 {
3421 v8::Local<v8::Value> v8Value = info[0];
3344 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3422 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3345 TestObjectV8Internal::raisesExceptionLongAttributeAttributeSetter(v8Value, i nfo); 3423 TestObjectV8Internal::raisesExceptionLongAttributeAttributeSetter(v8Value, i nfo);
3346 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3424 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3347 } 3425 }
3348 3426
3349 static void raisesExceptionGetterLongAttributeAttributeGetter(const v8::Property CallbackInfo<v8::Value>& info) 3427 static void raisesExceptionGetterLongAttributeAttributeGetter(const v8::Function CallbackInfo<v8::Value>& info)
3350 { 3428 {
3351 v8::Local<v8::Object> holder = info.Holder(); 3429 v8::Local<v8::Object> holder = info.Holder();
3352 TestObject* impl = V8TestObject::toImpl(holder); 3430 TestObject* impl = V8TestObject::toImpl(holder);
3353 ExceptionState exceptionState(ExceptionState::GetterContext, "raisesExceptio nGetterLongAttribute", "TestObject", holder, info.GetIsolate()); 3431 ExceptionState exceptionState(ExceptionState::GetterContext, "raisesExceptio nGetterLongAttribute", "TestObject", holder, info.GetIsolate());
3354 int cppValue(impl->raisesExceptionGetterLongAttribute(exceptionState)); 3432 int cppValue(impl->raisesExceptionGetterLongAttribute(exceptionState));
3355 if (UNLIKELY(exceptionState.throwIfNeeded())) 3433 if (UNLIKELY(exceptionState.throwIfNeeded()))
3356 return; 3434 return;
3357 v8SetReturnValueInt(info, cppValue); 3435 v8SetReturnValueInt(info, cppValue);
3358 } 3436 }
3359 3437
3360 static void raisesExceptionGetterLongAttributeAttributeGetterCallback(v8::Local< v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 3438 static void raisesExceptionGetterLongAttributeAttributeGetterCallback(const v8:: FunctionCallbackInfo<v8::Value>& info)
3361 { 3439 {
3362 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3440 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3363 TestObjectV8Internal::raisesExceptionGetterLongAttributeAttributeGetter(info ); 3441 TestObjectV8Internal::raisesExceptionGetterLongAttributeAttributeGetter(info );
3364 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3442 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3365 } 3443 }
3366 3444
3367 static void raisesExceptionGetterLongAttributeAttributeSetter(v8::Local<v8::Valu e> v8Value, const v8::PropertyCallbackInfo<void>& info) 3445 static void raisesExceptionGetterLongAttributeAttributeSetter(v8::Local<v8::Valu e> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
3368 { 3446 {
3369 v8::Local<v8::Object> holder = info.Holder(); 3447 v8::Local<v8::Object> holder = info.Holder();
3370 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio nGetterLongAttribute", "TestObject", holder, info.GetIsolate()); 3448 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio nGetterLongAttribute", "TestObject", holder, info.GetIsolate());
3371 TestObject* impl = V8TestObject::toImpl(holder); 3449 TestObject* impl = V8TestObject::toImpl(holder);
3372 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 3450 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
3373 impl->setRaisesExceptionGetterLongAttribute(cppValue); 3451 impl->setRaisesExceptionGetterLongAttribute(cppValue);
3374 } 3452 }
3375 3453
3376 static void raisesExceptionGetterLongAttributeAttributeSetterCallback(v8::Local< v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3454 static void raisesExceptionGetterLongAttributeAttributeSetterCallback(const v8:: FunctionCallbackInfo<v8::Value>& info)
3377 { 3455 {
3456 v8::Local<v8::Value> v8Value = info[0];
3378 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3457 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3379 TestObjectV8Internal::raisesExceptionGetterLongAttributeAttributeSetter(v8Va lue, info); 3458 TestObjectV8Internal::raisesExceptionGetterLongAttributeAttributeSetter(v8Va lue, info);
3380 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3459 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3381 } 3460 }
3382 3461
3383 static void setterRaisesExceptionLongAttributeAttributeGetter(const v8::Property CallbackInfo<v8::Value>& info) 3462 static void setterRaisesExceptionLongAttributeAttributeGetter(const v8::Function CallbackInfo<v8::Value>& info)
3384 { 3463 {
3385 v8::Local<v8::Object> holder = info.Holder(); 3464 v8::Local<v8::Object> holder = info.Holder();
3386 TestObject* impl = V8TestObject::toImpl(holder); 3465 TestObject* impl = V8TestObject::toImpl(holder);
3387 v8SetReturnValueInt(info, impl->setterRaisesExceptionLongAttribute()); 3466 v8SetReturnValueInt(info, impl->setterRaisesExceptionLongAttribute());
3388 } 3467 }
3389 3468
3390 static void setterRaisesExceptionLongAttributeAttributeGetterCallback(v8::Local< v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 3469 static void setterRaisesExceptionLongAttributeAttributeGetterCallback(const v8:: FunctionCallbackInfo<v8::Value>& info)
3391 { 3470 {
3392 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3471 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3393 TestObjectV8Internal::setterRaisesExceptionLongAttributeAttributeGetter(info ); 3472 TestObjectV8Internal::setterRaisesExceptionLongAttributeAttributeGetter(info );
3394 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3473 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3395 } 3474 }
3396 3475
3397 static void setterRaisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Valu e> v8Value, const v8::PropertyCallbackInfo<void>& info) 3476 static void setterRaisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Valu e> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
3398 { 3477 {
3399 v8::Local<v8::Object> holder = info.Holder(); 3478 v8::Local<v8::Object> holder = info.Holder();
3400 ExceptionState exceptionState(ExceptionState::SetterContext, "setterRaisesEx ceptionLongAttribute", "TestObject", holder, info.GetIsolate()); 3479 ExceptionState exceptionState(ExceptionState::SetterContext, "setterRaisesEx ceptionLongAttribute", "TestObject", holder, info.GetIsolate());
3401 TestObject* impl = V8TestObject::toImpl(holder); 3480 TestObject* impl = V8TestObject::toImpl(holder);
3402 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 3481 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
3403 impl->setSetterRaisesExceptionLongAttribute(cppValue, exceptionState); 3482 impl->setSetterRaisesExceptionLongAttribute(cppValue, exceptionState);
3404 exceptionState.throwIfNeeded(); 3483 exceptionState.throwIfNeeded();
3405 } 3484 }
3406 3485
3407 static void setterRaisesExceptionLongAttributeAttributeSetterCallback(v8::Local< v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3486 static void setterRaisesExceptionLongAttributeAttributeSetterCallback(const v8:: FunctionCallbackInfo<v8::Value>& info)
3408 { 3487 {
3488 v8::Local<v8::Value> v8Value = info[0];
3409 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3489 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3410 TestObjectV8Internal::setterRaisesExceptionLongAttributeAttributeSetter(v8Va lue, info); 3490 TestObjectV8Internal::setterRaisesExceptionLongAttributeAttributeSetter(v8Va lue, info);
3411 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3491 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3412 } 3492 }
3413 3493
3414 static void raisesExceptionTestInterfaceEmptyAttributeAttributeGetter(const v8:: PropertyCallbackInfo<v8::Value>& info) 3494 static void raisesExceptionTestInterfaceEmptyAttributeAttributeGetter(const v8:: FunctionCallbackInfo<v8::Value>& info)
3415 { 3495 {
3416 v8::Local<v8::Object> holder = info.Holder(); 3496 v8::Local<v8::Object> holder = info.Holder();
3417 TestObject* impl = V8TestObject::toImpl(holder); 3497 TestObject* impl = V8TestObject::toImpl(holder);
3418 ExceptionState exceptionState(ExceptionState::GetterContext, "raisesExceptio nTestInterfaceEmptyAttribute", "TestObject", holder, info.GetIsolate()); 3498 ExceptionState exceptionState(ExceptionState::GetterContext, "raisesExceptio nTestInterfaceEmptyAttribute", "TestObject", holder, info.GetIsolate());
3419 RefPtr<TestInterfaceEmpty> cppValue(impl->raisesExceptionTestInterfaceEmptyA ttribute(exceptionState)); 3499 RefPtr<TestInterfaceEmpty> cppValue(impl->raisesExceptionTestInterfaceEmptyA ttribute(exceptionState));
3420 if (UNLIKELY(exceptionState.throwIfNeeded())) 3500 if (UNLIKELY(exceptionState.throwIfNeeded()))
3421 return; 3501 return;
3422 v8SetReturnValueFast(info, WTF::getPtr(cppValue.release()), impl); 3502 v8SetReturnValueFast(info, WTF::getPtr(cppValue.release()), impl);
3423 } 3503 }
3424 3504
3425 static void raisesExceptionTestInterfaceEmptyAttributeAttributeGetterCallback(v8 ::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 3505 static void raisesExceptionTestInterfaceEmptyAttributeAttributeGetterCallback(co nst v8::FunctionCallbackInfo<v8::Value>& info)
3426 { 3506 {
3427 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3507 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3428 TestObjectV8Internal::raisesExceptionTestInterfaceEmptyAttributeAttributeGet ter(info); 3508 TestObjectV8Internal::raisesExceptionTestInterfaceEmptyAttributeAttributeGet ter(info);
3429 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3509 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3430 } 3510 }
3431 3511
3432 static void raisesExceptionTestInterfaceEmptyAttributeAttributeSetter(v8::Local< v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3512 static void raisesExceptionTestInterfaceEmptyAttributeAttributeSetter(v8::Local< v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
3433 { 3513 {
3434 v8::Local<v8::Object> holder = info.Holder(); 3514 v8::Local<v8::Object> holder = info.Holder();
3435 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio nTestInterfaceEmptyAttribute", "TestObject", holder, info.GetIsolate()); 3515 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio nTestInterfaceEmptyAttribute", "TestObject", holder, info.GetIsolate());
3436 TestObject* impl = V8TestObject::toImpl(holder); 3516 TestObject* impl = V8TestObject::toImpl(holder);
3437 TestInterfaceEmpty* cppValue = V8TestInterfaceEmpty::toImplWithTypeCheck(inf o.GetIsolate(), v8Value); 3517 TestInterfaceEmpty* cppValue = V8TestInterfaceEmpty::toImplWithTypeCheck(inf o.GetIsolate(), v8Value);
3438 impl->setRaisesExceptionTestInterfaceEmptyAttribute(WTF::getPtr(cppValue), e xceptionState); 3518 impl->setRaisesExceptionTestInterfaceEmptyAttribute(WTF::getPtr(cppValue), e xceptionState);
3439 exceptionState.throwIfNeeded(); 3519 exceptionState.throwIfNeeded();
3440 } 3520 }
3441 3521
3442 static void raisesExceptionTestInterfaceEmptyAttributeAttributeSetterCallback(v8 ::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInf o<void>& info) 3522 static void raisesExceptionTestInterfaceEmptyAttributeAttributeSetterCallback(co nst v8::FunctionCallbackInfo<v8::Value>& info)
3443 { 3523 {
3524 v8::Local<v8::Value> v8Value = info[0];
3444 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3525 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3445 TestObjectV8Internal::raisesExceptionTestInterfaceEmptyAttributeAttributeSet ter(v8Value, info); 3526 TestObjectV8Internal::raisesExceptionTestInterfaceEmptyAttributeAttributeSet ter(v8Value, info);
3446 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3527 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3447 } 3528 }
3448 3529
3449 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeGetter(cons t v8::PropertyCallbackInfo<v8::Value>& info) 3530 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeGetter(cons t v8::FunctionCallbackInfo<v8::Value>& info)
3450 { 3531 {
3451 v8::Local<v8::Object> holder = info.Holder(); 3532 v8::Local<v8::Object> holder = info.Holder();
3452 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cach edAttributeRaisesExceptionGetterAnyAttribute"); 3533 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cach edAttributeRaisesExceptionGetterAnyAttribute");
3453 TestObject* impl = V8TestObject::toImpl(holder); 3534 TestObject* impl = V8TestObject::toImpl(holder);
3454 if (!impl->isValueDirty()) { 3535 if (!impl->isValueDirty()) {
3455 v8::Local<v8::Value> v8Value = V8HiddenValue::getHiddenValue(info.GetIso late(), holder, propertyName); 3536 v8::Local<v8::Value> v8Value = V8HiddenValue::getHiddenValue(info.GetIso late(), holder, propertyName);
3456 if (!v8Value.IsEmpty()) { 3537 if (!v8Value.IsEmpty()) {
3457 v8SetReturnValue(info, v8Value); 3538 v8SetReturnValue(info, v8Value);
3458 return; 3539 return;
3459 } 3540 }
3460 } 3541 }
3461 ExceptionState exceptionState(ExceptionState::GetterContext, "cachedAttribut eRaisesExceptionGetterAnyAttribute", "TestObject", holder, info.GetIsolate()); 3542 ExceptionState exceptionState(ExceptionState::GetterContext, "cachedAttribut eRaisesExceptionGetterAnyAttribute", "TestObject", holder, info.GetIsolate());
3462 ScriptValue cppValue(impl->cachedAttributeRaisesExceptionGetterAnyAttribute( exceptionState)); 3543 ScriptValue cppValue(impl->cachedAttributeRaisesExceptionGetterAnyAttribute( exceptionState));
3463 if (UNLIKELY(exceptionState.throwIfNeeded())) 3544 if (UNLIKELY(exceptionState.throwIfNeeded()))
3464 return; 3545 return;
3465 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, cppVa lue.v8Value()); 3546 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, cppVa lue.v8Value());
3466 v8SetReturnValue(info, cppValue.v8Value()); 3547 v8SetReturnValue(info, cppValue.v8Value());
3467 } 3548 }
3468 3549
3469 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeGetterCallb ack(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 3550 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeGetterCallb ack(const v8::FunctionCallbackInfo<v8::Value>& info)
3470 { 3551 {
3471 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3552 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3472 TestObjectV8Internal::cachedAttributeRaisesExceptionGetterAnyAttributeAttrib uteGetter(info); 3553 TestObjectV8Internal::cachedAttributeRaisesExceptionGetterAnyAttributeAttrib uteGetter(info);
3473 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3554 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3474 } 3555 }
3475 3556
3476 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeSetter(v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3557 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeSetter(v8:: Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
3477 { 3558 {
3478 v8::Local<v8::Object> holder = info.Holder(); 3559 v8::Local<v8::Object> holder = info.Holder();
3479 ExceptionState exceptionState(ExceptionState::SetterContext, "cachedAttribut eRaisesExceptionGetterAnyAttribute", "TestObject", holder, info.GetIsolate()); 3560 ExceptionState exceptionState(ExceptionState::SetterContext, "cachedAttribut eRaisesExceptionGetterAnyAttribute", "TestObject", holder, info.GetIsolate());
3480 TestObject* impl = V8TestObject::toImpl(holder); 3561 TestObject* impl = V8TestObject::toImpl(holder);
3481 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value); 3562 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value);
3482 impl->setCachedAttributeRaisesExceptionGetterAnyAttribute(cppValue, exceptio nState); 3563 impl->setCachedAttributeRaisesExceptionGetterAnyAttribute(cppValue, exceptio nState);
3483 exceptionState.throwIfNeeded(); 3564 exceptionState.throwIfNeeded();
3484 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i nfo.GetIsolate(), "cachedAttributeRaisesExceptionGetterAnyAttribute")); // Inval idate the cached value. 3565 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i nfo.GetIsolate(), "cachedAttributeRaisesExceptionGetterAnyAttribute")); // Inval idate the cached value.
3485 } 3566 }
3486 3567
3487 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeSetterCallb ack(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallb ackInfo<void>& info) 3568 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeSetterCallb ack(const v8::FunctionCallbackInfo<v8::Value>& info)
3488 { 3569 {
3570 v8::Local<v8::Value> v8Value = info[0];
3489 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3571 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3490 TestObjectV8Internal::cachedAttributeRaisesExceptionGetterAnyAttributeAttrib uteSetter(v8Value, info); 3572 TestObjectV8Internal::cachedAttributeRaisesExceptionGetterAnyAttributeAttrib uteSetter(v8Value, info);
3491 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3573 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3492 } 3574 }
3493 3575
3494 static void reflectTestInterfaceAttributeAttributeGetter(const v8::PropertyCallb ackInfo<v8::Value>& info) 3576 static void reflectTestInterfaceAttributeAttributeGetter(const v8::FunctionCallb ackInfo<v8::Value>& info)
3495 { 3577 {
3496 v8::Local<v8::Object> holder = info.Holder(); 3578 v8::Local<v8::Object> holder = info.Holder();
3497 TestObject* impl = V8TestObject::toImpl(holder); 3579 TestObject* impl = V8TestObject::toImpl(holder);
3498 v8SetReturnValueFast(info, WTF::getPtr(impl->fastGetAttribute(HTMLNames::ref lecttestinterfaceattributeAttr)), impl); 3580 v8SetReturnValueFast(info, WTF::getPtr(impl->fastGetAttribute(HTMLNames::ref lecttestinterfaceattributeAttr)), impl);
3499 } 3581 }
3500 3582
3501 static void reflectTestInterfaceAttributeAttributeGetterCallback(v8::Local<v8::S tring>, const v8::PropertyCallbackInfo<v8::Value>& info) 3583 static void reflectTestInterfaceAttributeAttributeGetterCallback(const v8::Funct ionCallbackInfo<v8::Value>& info)
3502 { 3584 {
3503 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3585 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3504 TestObjectV8Internal::reflectTestInterfaceAttributeAttributeGetter(info); 3586 TestObjectV8Internal::reflectTestInterfaceAttributeAttributeGetter(info);
3505 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3587 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3506 } 3588 }
3507 3589
3508 static void reflectTestInterfaceAttributeAttributeSetter(v8::Local<v8::Value> v8 Value, const v8::PropertyCallbackInfo<void>& info) 3590 static void reflectTestInterfaceAttributeAttributeSetter(v8::Local<v8::Value> v8 Value, const v8::FunctionCallbackInfo<v8::Value>& info)
3509 { 3591 {
3510 v8::Local<v8::Object> holder = info.Holder(); 3592 v8::Local<v8::Object> holder = info.Holder();
3511 TestObject* impl = V8TestObject::toImpl(holder); 3593 TestObject* impl = V8TestObject::toImpl(holder);
3512 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck (info.GetIsolate(), v8Value); 3594 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck (info.GetIsolate(), v8Value);
3513 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3595 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3514 impl->setAttribute(HTMLNames::reflecttestinterfaceattributeAttr, WTF::getPtr (cppValue)); 3596 impl->setAttribute(HTMLNames::reflecttestinterfaceattributeAttr, WTF::getPtr (cppValue));
3515 } 3597 }
3516 3598
3517 static void reflectTestInterfaceAttributeAttributeSetterCallback(v8::Local<v8::S tring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info ) 3599 static void reflectTestInterfaceAttributeAttributeSetterCallback(const v8::Funct ionCallbackInfo<v8::Value>& info)
3518 { 3600 {
3601 v8::Local<v8::Value> v8Value = info[0];
3519 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3602 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3520 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3603 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3521 TestObjectV8Internal::reflectTestInterfaceAttributeAttributeSetter(v8Value, info); 3604 TestObjectV8Internal::reflectTestInterfaceAttributeAttributeSetter(v8Value, info);
3522 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3605 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3523 } 3606 }
3524 3607
3525 static void reflectReflectedNameAttributeTestAttributeAttributeGetter(const v8:: PropertyCallbackInfo<v8::Value>& info) 3608 static void reflectReflectedNameAttributeTestAttributeAttributeGetter(const v8:: FunctionCallbackInfo<v8::Value>& info)
3526 { 3609 {
3527 v8::Local<v8::Object> holder = info.Holder(); 3610 v8::Local<v8::Object> holder = info.Holder();
3528 TestObject* impl = V8TestObject::toImpl(holder); 3611 TestObject* impl = V8TestObject::toImpl(holder);
3529 v8SetReturnValueFast(info, WTF::getPtr(impl->fastGetAttribute(HTMLNames::ref lectedNameAttributeAttr)), impl); 3612 v8SetReturnValueFast(info, WTF::getPtr(impl->fastGetAttribute(HTMLNames::ref lectedNameAttributeAttr)), impl);
3530 } 3613 }
3531 3614
3532 static void reflectReflectedNameAttributeTestAttributeAttributeGetterCallback(v8 ::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 3615 static void reflectReflectedNameAttributeTestAttributeAttributeGetterCallback(co nst v8::FunctionCallbackInfo<v8::Value>& info)
3533 { 3616 {
3534 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3617 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3535 TestObjectV8Internal::reflectReflectedNameAttributeTestAttributeAttributeGet ter(info); 3618 TestObjectV8Internal::reflectReflectedNameAttributeTestAttributeAttributeGet ter(info);
3536 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3619 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3537 } 3620 }
3538 3621
3539 static void reflectReflectedNameAttributeTestAttributeAttributeSetter(v8::Local< v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3622 static void reflectReflectedNameAttributeTestAttributeAttributeSetter(v8::Local< v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
3540 { 3623 {
3541 v8::Local<v8::Object> holder = info.Holder(); 3624 v8::Local<v8::Object> holder = info.Holder();
3542 TestObject* impl = V8TestObject::toImpl(holder); 3625 TestObject* impl = V8TestObject::toImpl(holder);
3543 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck (info.GetIsolate(), v8Value); 3626 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck (info.GetIsolate(), v8Value);
3544 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3627 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3545 impl->setAttribute(HTMLNames::reflectedNameAttributeAttr, WTF::getPtr(cppVal ue)); 3628 impl->setAttribute(HTMLNames::reflectedNameAttributeAttr, WTF::getPtr(cppVal ue));
3546 } 3629 }
3547 3630
3548 static void reflectReflectedNameAttributeTestAttributeAttributeSetterCallback(v8 ::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInf o<void>& info) 3631 static void reflectReflectedNameAttributeTestAttributeAttributeSetterCallback(co nst v8::FunctionCallbackInfo<v8::Value>& info)
3549 { 3632 {
3633 v8::Local<v8::Value> v8Value = info[0];
3550 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3634 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3551 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3635 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3552 TestObjectV8Internal::reflectReflectedNameAttributeTestAttributeAttributeSet ter(v8Value, info); 3636 TestObjectV8Internal::reflectReflectedNameAttributeTestAttributeAttributeSet ter(v8Value, info);
3553 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3637 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3554 } 3638 }
3555 3639
3556 static void reflectBooleanAttributeAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info) 3640 static void reflectBooleanAttributeAttributeGetter(const v8::FunctionCallbackInf o<v8::Value>& info)
3557 { 3641 {
3558 v8::Local<v8::Object> holder = info.Holder(); 3642 v8::Local<v8::Object> holder = info.Holder();
3559 TestObject* impl = V8TestObject::toImpl(holder); 3643 TestObject* impl = V8TestObject::toImpl(holder);
3560 v8SetReturnValueBool(info, impl->fastHasAttribute(HTMLNames::reflectbooleana ttributeAttr)); 3644 v8SetReturnValueBool(info, impl->fastHasAttribute(HTMLNames::reflectbooleana ttributeAttr));
3561 } 3645 }
3562 3646
3563 static void reflectBooleanAttributeAttributeGetterCallback(v8::Local<v8::String> , const v8::PropertyCallbackInfo<v8::Value>& info) 3647 static void reflectBooleanAttributeAttributeGetterCallback(const v8::FunctionCal lbackInfo<v8::Value>& info)
3564 { 3648 {
3565 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3649 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3566 TestObjectV8Internal::reflectBooleanAttributeAttributeGetter(info); 3650 TestObjectV8Internal::reflectBooleanAttributeAttributeGetter(info);
3567 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3651 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3568 } 3652 }
3569 3653
3570 static void reflectBooleanAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3654 static void reflectBooleanAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
3571 { 3655 {
3572 v8::Local<v8::Object> holder = info.Holder(); 3656 v8::Local<v8::Object> holder = info.Holder();
3573 TestObject* impl = V8TestObject::toImpl(holder); 3657 TestObject* impl = V8TestObject::toImpl(holder);
3574 bool cppValue = v8Value->BooleanValue(); 3658 bool cppValue = v8Value->BooleanValue();
3575 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3659 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3576 impl->setBooleanAttribute(HTMLNames::reflectbooleanattributeAttr, cppValue); 3660 impl->setBooleanAttribute(HTMLNames::reflectbooleanattributeAttr, cppValue);
3577 } 3661 }
3578 3662
3579 static void reflectBooleanAttributeAttributeSetterCallback(v8::Local<v8::String> , v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3663 static void reflectBooleanAttributeAttributeSetterCallback(const v8::FunctionCal lbackInfo<v8::Value>& info)
3580 { 3664 {
3665 v8::Local<v8::Value> v8Value = info[0];
3581 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3666 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3582 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3667 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3583 TestObjectV8Internal::reflectBooleanAttributeAttributeSetter(v8Value, info); 3668 TestObjectV8Internal::reflectBooleanAttributeAttributeSetter(v8Value, info);
3584 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3669 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3585 } 3670 }
3586 3671
3587 static void reflectLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info) 3672 static void reflectLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v 8::Value>& info)
3588 { 3673 {
3589 v8::Local<v8::Object> holder = info.Holder(); 3674 v8::Local<v8::Object> holder = info.Holder();
3590 TestObject* impl = V8TestObject::toImpl(holder); 3675 TestObject* impl = V8TestObject::toImpl(holder);
3591 v8SetReturnValueInt(info, impl->getIntegralAttribute(HTMLNames::reflectlonga ttributeAttr)); 3676 v8SetReturnValueInt(info, impl->getIntegralAttribute(HTMLNames::reflectlonga ttributeAttr));
3592 } 3677 }
3593 3678
3594 static void reflectLongAttributeAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info) 3679 static void reflectLongAttributeAttributeGetterCallback(const v8::FunctionCallba ckInfo<v8::Value>& info)
3595 { 3680 {
3596 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3681 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3597 TestObjectV8Internal::reflectLongAttributeAttributeGetter(info); 3682 TestObjectV8Internal::reflectLongAttributeAttributeGetter(info);
3598 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3683 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3599 } 3684 }
3600 3685
3601 static void reflectLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& info) 3686 static void reflectLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::FunctionCallbackInfo<v8::Value>& info)
3602 { 3687 {
3603 v8::Local<v8::Object> holder = info.Holder(); 3688 v8::Local<v8::Object> holder = info.Holder();
3604 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectLongAtt ribute", "TestObject", holder, info.GetIsolate()); 3689 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectLongAtt ribute", "TestObject", holder, info.GetIsolate());
3605 TestObject* impl = V8TestObject::toImpl(holder); 3690 TestObject* impl = V8TestObject::toImpl(holder);
3606 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 3691 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
3607 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3692 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3608 impl->setIntegralAttribute(HTMLNames::reflectlongattributeAttr, cppValue); 3693 impl->setIntegralAttribute(HTMLNames::reflectlongattributeAttr, cppValue);
3609 } 3694 }
3610 3695
3611 static void reflectLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3696 static void reflectLongAttributeAttributeSetterCallback(const v8::FunctionCallba ckInfo<v8::Value>& info)
3612 { 3697 {
3698 v8::Local<v8::Value> v8Value = info[0];
3613 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3699 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3614 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3700 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3615 TestObjectV8Internal::reflectLongAttributeAttributeSetter(v8Value, info); 3701 TestObjectV8Internal::reflectLongAttributeAttributeSetter(v8Value, info);
3616 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3702 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3617 } 3703 }
3618 3704
3619 static void reflectUnsignedShortAttributeAttributeGetter(const v8::PropertyCallb ackInfo<v8::Value>& info) 3705 static void reflectUnsignedShortAttributeAttributeGetter(const v8::FunctionCallb ackInfo<v8::Value>& info)
3620 { 3706 {
3621 v8::Local<v8::Object> holder = info.Holder(); 3707 v8::Local<v8::Object> holder = info.Holder();
3622 TestObject* impl = V8TestObject::toImpl(holder); 3708 TestObject* impl = V8TestObject::toImpl(holder);
3623 v8SetReturnValueUnsigned(info, std::max(0, static_cast<int>(impl->fastGetAtt ribute(HTMLNames::reflectunsignedshortattributeAttr)))); 3709 v8SetReturnValueUnsigned(info, std::max(0, static_cast<int>(impl->fastGetAtt ribute(HTMLNames::reflectunsignedshortattributeAttr))));
3624 } 3710 }
3625 3711
3626 static void reflectUnsignedShortAttributeAttributeGetterCallback(v8::Local<v8::S tring>, const v8::PropertyCallbackInfo<v8::Value>& info) 3712 static void reflectUnsignedShortAttributeAttributeGetterCallback(const v8::Funct ionCallbackInfo<v8::Value>& info)
3627 { 3713 {
3628 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3714 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3629 TestObjectV8Internal::reflectUnsignedShortAttributeAttributeGetter(info); 3715 TestObjectV8Internal::reflectUnsignedShortAttributeAttributeGetter(info);
3630 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3716 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3631 } 3717 }
3632 3718
3633 static void reflectUnsignedShortAttributeAttributeSetter(v8::Local<v8::Value> v8 Value, const v8::PropertyCallbackInfo<void>& info) 3719 static void reflectUnsignedShortAttributeAttributeSetter(v8::Local<v8::Value> v8 Value, const v8::FunctionCallbackInfo<v8::Value>& info)
3634 { 3720 {
3635 v8::Local<v8::Object> holder = info.Holder(); 3721 v8::Local<v8::Object> holder = info.Holder();
3636 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne dShortAttribute", "TestObject", holder, info.GetIsolate()); 3722 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne dShortAttribute", "TestObject", holder, info.GetIsolate());
3637 TestObject* impl = V8TestObject::toImpl(holder); 3723 TestObject* impl = V8TestObject::toImpl(holder);
3638 TONATIVE_VOID_EXCEPTIONSTATE(unsigned, cppValue, toUInt16(v8Value, exception State), exceptionState); 3724 TONATIVE_VOID_EXCEPTIONSTATE(unsigned, cppValue, toUInt16(v8Value, exception State), exceptionState);
3639 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3725 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3640 impl->setAttribute(HTMLNames::reflectunsignedshortattributeAttr, cppValue); 3726 impl->setAttribute(HTMLNames::reflectunsignedshortattributeAttr, cppValue);
3641 } 3727 }
3642 3728
3643 static void reflectUnsignedShortAttributeAttributeSetterCallback(v8::Local<v8::S tring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info ) 3729 static void reflectUnsignedShortAttributeAttributeSetterCallback(const v8::Funct ionCallbackInfo<v8::Value>& info)
3644 { 3730 {
3731 v8::Local<v8::Value> v8Value = info[0];
3645 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3732 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3646 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3733 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3647 TestObjectV8Internal::reflectUnsignedShortAttributeAttributeSetter(v8Value, info); 3734 TestObjectV8Internal::reflectUnsignedShortAttributeAttributeSetter(v8Value, info);
3648 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3735 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3649 } 3736 }
3650 3737
3651 static void reflectUnsignedLongAttributeAttributeGetter(const v8::PropertyCallba ckInfo<v8::Value>& info) 3738 static void reflectUnsignedLongAttributeAttributeGetter(const v8::FunctionCallba ckInfo<v8::Value>& info)
3652 { 3739 {
3653 v8::Local<v8::Object> holder = info.Holder(); 3740 v8::Local<v8::Object> holder = info.Holder();
3654 TestObject* impl = V8TestObject::toImpl(holder); 3741 TestObject* impl = V8TestObject::toImpl(holder);
3655 v8SetReturnValueUnsigned(info, std::max(0, static_cast<int>(impl->getIntegra lAttribute(HTMLNames::reflectunsignedlongattributeAttr)))); 3742 v8SetReturnValueUnsigned(info, std::max(0, static_cast<int>(impl->getIntegra lAttribute(HTMLNames::reflectunsignedlongattributeAttr))));
3656 } 3743 }
3657 3744
3658 static void reflectUnsignedLongAttributeAttributeGetterCallback(v8::Local<v8::St ring>, const v8::PropertyCallbackInfo<v8::Value>& info) 3745 static void reflectUnsignedLongAttributeAttributeGetterCallback(const v8::Functi onCallbackInfo<v8::Value>& info)
3659 { 3746 {
3660 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3747 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3661 TestObjectV8Internal::reflectUnsignedLongAttributeAttributeGetter(info); 3748 TestObjectV8Internal::reflectUnsignedLongAttributeAttributeGetter(info);
3662 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3749 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3663 } 3750 }
3664 3751
3665 static void reflectUnsignedLongAttributeAttributeSetter(v8::Local<v8::Value> v8V alue, const v8::PropertyCallbackInfo<void>& info) 3752 static void reflectUnsignedLongAttributeAttributeSetter(v8::Local<v8::Value> v8V alue, const v8::FunctionCallbackInfo<v8::Value>& info)
3666 { 3753 {
3667 v8::Local<v8::Object> holder = info.Holder(); 3754 v8::Local<v8::Object> holder = info.Holder();
3668 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne dLongAttribute", "TestObject", holder, info.GetIsolate()); 3755 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne dLongAttribute", "TestObject", holder, info.GetIsolate());
3669 TestObject* impl = V8TestObject::toImpl(holder); 3756 TestObject* impl = V8TestObject::toImpl(holder);
3670 TONATIVE_VOID_EXCEPTIONSTATE(unsigned, cppValue, toUInt32(v8Value, exception State), exceptionState); 3757 TONATIVE_VOID_EXCEPTIONSTATE(unsigned, cppValue, toUInt32(v8Value, exception State), exceptionState);
3671 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3758 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3672 impl->setUnsignedIntegralAttribute(HTMLNames::reflectunsignedlongattributeAt tr, cppValue); 3759 impl->setUnsignedIntegralAttribute(HTMLNames::reflectunsignedlongattributeAt tr, cppValue);
3673 } 3760 }
3674 3761
3675 static void reflectUnsignedLongAttributeAttributeSetterCallback(v8::Local<v8::St ring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3762 static void reflectUnsignedLongAttributeAttributeSetterCallback(const v8::Functi onCallbackInfo<v8::Value>& info)
3676 { 3763 {
3764 v8::Local<v8::Value> v8Value = info[0];
3677 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3765 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3678 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3766 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3679 TestObjectV8Internal::reflectUnsignedLongAttributeAttributeSetter(v8Value, i nfo); 3767 TestObjectV8Internal::reflectUnsignedLongAttributeAttributeSetter(v8Value, i nfo);
3680 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3768 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3681 } 3769 }
3682 3770
3683 static void idAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 3771 static void idAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info)
3684 { 3772 {
3685 v8::Local<v8::Object> holder = info.Holder(); 3773 v8::Local<v8::Object> holder = info.Holder();
3686 TestObject* impl = V8TestObject::toImpl(holder); 3774 TestObject* impl = V8TestObject::toImpl(holder);
3687 v8SetReturnValueString(info, impl->getIdAttribute(), info.GetIsolate()); 3775 v8SetReturnValueString(info, impl->getIdAttribute(), info.GetIsolate());
3688 } 3776 }
3689 3777
3690 static void idAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyC allbackInfo<v8::Value>& info) 3778 static void idAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
3691 { 3779 {
3692 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3780 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3693 TestObjectV8Internal::idAttributeGetter(info); 3781 TestObjectV8Internal::idAttributeGetter(info);
3694 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3782 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3695 } 3783 }
3696 3784
3697 static void idAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCa llbackInfo<void>& info) 3785 static void idAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCa llbackInfo<v8::Value>& info)
3698 { 3786 {
3699 v8::Local<v8::Object> holder = info.Holder(); 3787 v8::Local<v8::Object> holder = info.Holder();
3700 TestObject* impl = V8TestObject::toImpl(holder); 3788 TestObject* impl = V8TestObject::toImpl(holder);
3701 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 3789 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
3702 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3790 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3703 impl->setAttribute(HTMLNames::idAttr, cppValue); 3791 impl->setAttribute(HTMLNames::idAttr, cppValue);
3704 } 3792 }
3705 3793
3706 static void idAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value > v8Value, const v8::PropertyCallbackInfo<void>& info) 3794 static void idAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
3707 { 3795 {
3796 v8::Local<v8::Value> v8Value = info[0];
3708 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3797 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3709 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3798 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3710 TestObjectV8Internal::idAttributeSetter(v8Value, info); 3799 TestObjectV8Internal::idAttributeSetter(v8Value, info);
3711 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3800 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3712 } 3801 }
3713 3802
3714 static void nameAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 3803 static void nameAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info)
3715 { 3804 {
3716 v8::Local<v8::Object> holder = info.Holder(); 3805 v8::Local<v8::Object> holder = info.Holder();
3717 TestObject* impl = V8TestObject::toImpl(holder); 3806 TestObject* impl = V8TestObject::toImpl(holder);
3718 v8SetReturnValueString(info, impl->getNameAttribute(), info.GetIsolate()); 3807 v8SetReturnValueString(info, impl->getNameAttribute(), info.GetIsolate());
3719 } 3808 }
3720 3809
3721 static void nameAttributeGetterCallback(v8::Local<v8::String>, const v8::Propert yCallbackInfo<v8::Value>& info) 3810 static void nameAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value >& info)
3722 { 3811 {
3723 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3812 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3724 TestObjectV8Internal::nameAttributeGetter(info); 3813 TestObjectV8Internal::nameAttributeGetter(info);
3725 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3814 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3726 } 3815 }
3727 3816
3728 static void nameAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Property CallbackInfo<void>& info) 3817 static void nameAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Function CallbackInfo<v8::Value>& info)
3729 { 3818 {
3730 v8::Local<v8::Object> holder = info.Holder(); 3819 v8::Local<v8::Object> holder = info.Holder();
3731 TestObject* impl = V8TestObject::toImpl(holder); 3820 TestObject* impl = V8TestObject::toImpl(holder);
3732 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 3821 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
3733 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3822 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3734 impl->setAttribute(HTMLNames::nameAttr, cppValue); 3823 impl->setAttribute(HTMLNames::nameAttr, cppValue);
3735 } 3824 }
3736 3825
3737 static void nameAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Val ue> v8Value, const v8::PropertyCallbackInfo<void>& info) 3826 static void nameAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value >& info)
3738 { 3827 {
3828 v8::Local<v8::Value> v8Value = info[0];
3739 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3829 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3740 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3830 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3741 TestObjectV8Internal::nameAttributeSetter(v8Value, info); 3831 TestObjectV8Internal::nameAttributeSetter(v8Value, info);
3742 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3832 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3743 } 3833 }
3744 3834
3745 static void classAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info ) 3835 static void classAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info )
3746 { 3836 {
3747 v8::Local<v8::Object> holder = info.Holder(); 3837 v8::Local<v8::Object> holder = info.Holder();
3748 TestObject* impl = V8TestObject::toImpl(holder); 3838 TestObject* impl = V8TestObject::toImpl(holder);
3749 v8SetReturnValueString(info, impl->getClassAttribute(), info.GetIsolate()); 3839 v8SetReturnValueString(info, impl->getClassAttribute(), info.GetIsolate());
3750 } 3840 }
3751 3841
3752 static void classAttributeGetterCallback(v8::Local<v8::String>, const v8::Proper tyCallbackInfo<v8::Value>& info) 3842 static void classAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Valu e>& info)
3753 { 3843 {
3754 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3844 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3755 TestObjectV8Internal::classAttributeGetter(info); 3845 TestObjectV8Internal::classAttributeGetter(info);
3756 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3846 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3757 } 3847 }
3758 3848
3759 static void classAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Propert yCallbackInfo<void>& info) 3849 static void classAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Functio nCallbackInfo<v8::Value>& info)
3760 { 3850 {
3761 v8::Local<v8::Object> holder = info.Holder(); 3851 v8::Local<v8::Object> holder = info.Holder();
3762 TestObject* impl = V8TestObject::toImpl(holder); 3852 TestObject* impl = V8TestObject::toImpl(holder);
3763 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 3853 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
3764 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3854 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3765 impl->setAttribute(HTMLNames::classAttr, cppValue); 3855 impl->setAttribute(HTMLNames::classAttr, cppValue);
3766 } 3856 }
3767 3857
3768 static void classAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Va lue> v8Value, const v8::PropertyCallbackInfo<void>& info) 3858 static void classAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Valu e>& info)
3769 { 3859 {
3860 v8::Local<v8::Value> v8Value = info[0];
3770 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3861 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3771 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3862 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3772 TestObjectV8Internal::classAttributeSetter(v8Value, info); 3863 TestObjectV8Internal::classAttributeSetter(v8Value, info);
3773 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3864 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3774 } 3865 }
3775 3866
3776 static void reflectedIdAttributeGetter(const v8::PropertyCallbackInfo<v8::Value> & info) 3867 static void reflectedIdAttributeGetter(const v8::FunctionCallbackInfo<v8::Value> & info)
3777 { 3868 {
3778 v8::Local<v8::Object> holder = info.Holder(); 3869 v8::Local<v8::Object> holder = info.Holder();
3779 TestObject* impl = V8TestObject::toImpl(holder); 3870 TestObject* impl = V8TestObject::toImpl(holder);
3780 v8SetReturnValueString(info, impl->getIdAttribute(), info.GetIsolate()); 3871 v8SetReturnValueString(info, impl->getIdAttribute(), info.GetIsolate());
3781 } 3872 }
3782 3873
3783 static void reflectedIdAttributeGetterCallback(v8::Local<v8::String>, const v8:: PropertyCallbackInfo<v8::Value>& info) 3874 static void reflectedIdAttributeGetterCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info)
3784 { 3875 {
3785 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3876 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3786 TestObjectV8Internal::reflectedIdAttributeGetter(info); 3877 TestObjectV8Internal::reflectedIdAttributeGetter(info);
3787 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3878 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3788 } 3879 }
3789 3880
3790 static void reflectedIdAttributeSetter(v8::Local<v8::Value> v8Value, const v8::P ropertyCallbackInfo<void>& info) 3881 static void reflectedIdAttributeSetter(v8::Local<v8::Value> v8Value, const v8::F unctionCallbackInfo<v8::Value>& info)
3791 { 3882 {
3792 v8::Local<v8::Object> holder = info.Holder(); 3883 v8::Local<v8::Object> holder = info.Holder();
3793 TestObject* impl = V8TestObject::toImpl(holder); 3884 TestObject* impl = V8TestObject::toImpl(holder);
3794 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 3885 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
3795 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3886 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3796 impl->setAttribute(HTMLNames::idAttr, cppValue); 3887 impl->setAttribute(HTMLNames::idAttr, cppValue);
3797 } 3888 }
3798 3889
3799 static void reflectedIdAttributeSetterCallback(v8::Local<v8::String>, v8::Local< v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3890 static void reflectedIdAttributeSetterCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info)
3800 { 3891 {
3892 v8::Local<v8::Value> v8Value = info[0];
3801 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3893 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3802 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3894 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3803 TestObjectV8Internal::reflectedIdAttributeSetter(v8Value, info); 3895 TestObjectV8Internal::reflectedIdAttributeSetter(v8Value, info);
3804 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3896 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3805 } 3897 }
3806 3898
3807 static void reflectedNameAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu e>& info) 3899 static void reflectedNameAttributeGetter(const v8::FunctionCallbackInfo<v8::Valu e>& info)
3808 { 3900 {
3809 v8::Local<v8::Object> holder = info.Holder(); 3901 v8::Local<v8::Object> holder = info.Holder();
3810 TestObject* impl = V8TestObject::toImpl(holder); 3902 TestObject* impl = V8TestObject::toImpl(holder);
3811 v8SetReturnValueString(info, impl->getNameAttribute(), info.GetIsolate()); 3903 v8SetReturnValueString(info, impl->getNameAttribute(), info.GetIsolate());
3812 } 3904 }
3813 3905
3814 static void reflectedNameAttributeGetterCallback(v8::Local<v8::String>, const v8 ::PropertyCallbackInfo<v8::Value>& info) 3906 static void reflectedNameAttributeGetterCallback(const v8::FunctionCallbackInfo< v8::Value>& info)
3815 { 3907 {
3816 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3908 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3817 TestObjectV8Internal::reflectedNameAttributeGetter(info); 3909 TestObjectV8Internal::reflectedNameAttributeGetter(info);
3818 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3910 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3819 } 3911 }
3820 3912
3821 static void reflectedNameAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info) 3913 static void reflectedNameAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :FunctionCallbackInfo<v8::Value>& info)
3822 { 3914 {
3823 v8::Local<v8::Object> holder = info.Holder(); 3915 v8::Local<v8::Object> holder = info.Holder();
3824 TestObject* impl = V8TestObject::toImpl(holder); 3916 TestObject* impl = V8TestObject::toImpl(holder);
3825 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 3917 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
3826 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3918 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3827 impl->setAttribute(HTMLNames::nameAttr, cppValue); 3919 impl->setAttribute(HTMLNames::nameAttr, cppValue);
3828 } 3920 }
3829 3921
3830 static void reflectedNameAttributeSetterCallback(v8::Local<v8::String>, v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3922 static void reflectedNameAttributeSetterCallback(const v8::FunctionCallbackInfo< v8::Value>& info)
3831 { 3923 {
3924 v8::Local<v8::Value> v8Value = info[0];
3832 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3925 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3833 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3926 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3834 TestObjectV8Internal::reflectedNameAttributeSetter(v8Value, info); 3927 TestObjectV8Internal::reflectedNameAttributeSetter(v8Value, info);
3835 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3928 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3836 } 3929 }
3837 3930
3838 static void reflectedClassAttributeGetter(const v8::PropertyCallbackInfo<v8::Val ue>& info) 3931 static void reflectedClassAttributeGetter(const v8::FunctionCallbackInfo<v8::Val ue>& info)
3839 { 3932 {
3840 v8::Local<v8::Object> holder = info.Holder(); 3933 v8::Local<v8::Object> holder = info.Holder();
3841 TestObject* impl = V8TestObject::toImpl(holder); 3934 TestObject* impl = V8TestObject::toImpl(holder);
3842 v8SetReturnValueString(info, impl->getClassAttribute(), info.GetIsolate()); 3935 v8SetReturnValueString(info, impl->getClassAttribute(), info.GetIsolate());
3843 } 3936 }
3844 3937
3845 static void reflectedClassAttributeGetterCallback(v8::Local<v8::String>, const v 8::PropertyCallbackInfo<v8::Value>& info) 3938 static void reflectedClassAttributeGetterCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
3846 { 3939 {
3847 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3940 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3848 TestObjectV8Internal::reflectedClassAttributeGetter(info); 3941 TestObjectV8Internal::reflectedClassAttributeGetter(info);
3849 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3942 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3850 } 3943 }
3851 3944
3852 static void reflectedClassAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::PropertyCallbackInfo<void>& info) 3945 static void reflectedClassAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::FunctionCallbackInfo<v8::Value>& info)
3853 { 3946 {
3854 v8::Local<v8::Object> holder = info.Holder(); 3947 v8::Local<v8::Object> holder = info.Holder();
3855 TestObject* impl = V8TestObject::toImpl(holder); 3948 TestObject* impl = V8TestObject::toImpl(holder);
3856 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 3949 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
3857 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3950 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3858 impl->setAttribute(HTMLNames::classAttr, cppValue); 3951 impl->setAttribute(HTMLNames::classAttr, cppValue);
3859 } 3952 }
3860 3953
3861 static void reflectedClassAttributeSetterCallback(v8::Local<v8::String>, v8::Loc al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3954 static void reflectedClassAttributeSetterCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
3862 { 3955 {
3956 v8::Local<v8::Value> v8Value = info[0];
3863 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3957 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3864 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3958 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3865 TestObjectV8Internal::reflectedClassAttributeSetter(v8Value, info); 3959 TestObjectV8Internal::reflectedClassAttributeSetter(v8Value, info);
3866 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3960 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3867 } 3961 }
3868 3962
3869 static void limitedToOnlyOneAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info) 3963 static void limitedToOnlyOneAttributeAttributeGetter(const v8::FunctionCallbackI nfo<v8::Value>& info)
3870 { 3964 {
3871 v8::Local<v8::Object> holder = info.Holder(); 3965 v8::Local<v8::Object> holder = info.Holder();
3872 TestObject* impl = V8TestObject::toImpl(holder); 3966 TestObject* impl = V8TestObject::toImpl(holder);
3873 String cppValue(impl->fastGetAttribute(HTMLNames::limitedtoonlyoneattributeA ttr)); 3967 String cppValue(impl->fastGetAttribute(HTMLNames::limitedtoonlyoneattributeA ttr));
3874 if (cppValue.isEmpty()) { 3968 if (cppValue.isEmpty()) {
3875 ; 3969 ;
3876 } else if (equalIgnoringCase(cppValue, "unique")) { 3970 } else if (equalIgnoringCase(cppValue, "unique")) {
3877 cppValue = "unique"; 3971 cppValue = "unique";
3878 } else { 3972 } else {
3879 cppValue = ""; 3973 cppValue = "";
3880 } 3974 }
3881 v8SetReturnValueString(info, cppValue, info.GetIsolate()); 3975 v8SetReturnValueString(info, cppValue, info.GetIsolate());
3882 } 3976 }
3883 3977
3884 static void limitedToOnlyOneAttributeAttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info) 3978 static void limitedToOnlyOneAttributeAttributeGetterCallback(const v8::FunctionC allbackInfo<v8::Value>& info)
3885 { 3979 {
3886 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3980 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3887 TestObjectV8Internal::limitedToOnlyOneAttributeAttributeGetter(info); 3981 TestObjectV8Internal::limitedToOnlyOneAttributeAttributeGetter(info);
3888 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3982 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3889 } 3983 }
3890 3984
3891 static void limitedToOnlyOneAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::PropertyCallbackInfo<void>& info) 3985 static void limitedToOnlyOneAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::FunctionCallbackInfo<v8::Value>& info)
3892 { 3986 {
3893 v8::Local<v8::Object> holder = info.Holder(); 3987 v8::Local<v8::Object> holder = info.Holder();
3894 TestObject* impl = V8TestObject::toImpl(holder); 3988 TestObject* impl = V8TestObject::toImpl(holder);
3895 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 3989 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
3896 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3990 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3897 impl->setAttribute(HTMLNames::limitedtoonlyoneattributeAttr, cppValue); 3991 impl->setAttribute(HTMLNames::limitedtoonlyoneattributeAttr, cppValue);
3898 } 3992 }
3899 3993
3900 static void limitedToOnlyOneAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3994 static void limitedToOnlyOneAttributeAttributeSetterCallback(const v8::FunctionC allbackInfo<v8::Value>& info)
3901 { 3995 {
3996 v8::Local<v8::Value> v8Value = info[0];
3902 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3997 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3903 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3998 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3904 TestObjectV8Internal::limitedToOnlyOneAttributeAttributeSetter(v8Value, info ); 3999 TestObjectV8Internal::limitedToOnlyOneAttributeAttributeSetter(v8Value, info );
3905 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4000 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3906 } 4001 }
3907 4002
3908 static void limitedToOnlyAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info) 4003 static void limitedToOnlyAttributeAttributeGetter(const v8::FunctionCallbackInfo <v8::Value>& info)
3909 { 4004 {
3910 v8::Local<v8::Object> holder = info.Holder(); 4005 v8::Local<v8::Object> holder = info.Holder();
3911 TestObject* impl = V8TestObject::toImpl(holder); 4006 TestObject* impl = V8TestObject::toImpl(holder);
3912 String cppValue(impl->fastGetAttribute(HTMLNames::limitedtoonlyattributeAttr )); 4007 String cppValue(impl->fastGetAttribute(HTMLNames::limitedtoonlyattributeAttr ));
3913 if (cppValue.isEmpty()) { 4008 if (cppValue.isEmpty()) {
3914 ; 4009 ;
3915 } else if (equalIgnoringCase(cppValue, "Per")) { 4010 } else if (equalIgnoringCase(cppValue, "Per")) {
3916 cppValue = "Per"; 4011 cppValue = "Per";
3917 } else if (equalIgnoringCase(cppValue, "Paal")) { 4012 } else if (equalIgnoringCase(cppValue, "Paal")) {
3918 cppValue = "Paal"; 4013 cppValue = "Paal";
3919 } else if (equalIgnoringCase(cppValue, "Espen")) { 4014 } else if (equalIgnoringCase(cppValue, "Espen")) {
3920 cppValue = "Espen"; 4015 cppValue = "Espen";
3921 } else { 4016 } else {
3922 cppValue = ""; 4017 cppValue = "";
3923 } 4018 }
3924 v8SetReturnValueString(info, cppValue, info.GetIsolate()); 4019 v8SetReturnValueString(info, cppValue, info.GetIsolate());
3925 } 4020 }
3926 4021
3927 static void limitedToOnlyAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 4022 static void limitedToOnlyAttributeAttributeGetterCallback(const v8::FunctionCall backInfo<v8::Value>& info)
3928 { 4023 {
3929 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4024 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3930 TestObjectV8Internal::limitedToOnlyAttributeAttributeGetter(info); 4025 TestObjectV8Internal::limitedToOnlyAttributeAttributeGetter(info);
3931 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4026 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3932 } 4027 }
3933 4028
3934 static void limitedToOnlyAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4029 static void limitedToOnlyAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
3935 { 4030 {
3936 v8::Local<v8::Object> holder = info.Holder(); 4031 v8::Local<v8::Object> holder = info.Holder();
3937 TestObject* impl = V8TestObject::toImpl(holder); 4032 TestObject* impl = V8TestObject::toImpl(holder);
3938 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 4033 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
3939 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4034 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3940 impl->setAttribute(HTMLNames::limitedtoonlyattributeAttr, cppValue); 4035 impl->setAttribute(HTMLNames::limitedtoonlyattributeAttr, cppValue);
3941 } 4036 }
3942 4037
3943 static void limitedToOnlyAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4038 static void limitedToOnlyAttributeAttributeSetterCallback(const v8::FunctionCall backInfo<v8::Value>& info)
3944 { 4039 {
4040 v8::Local<v8::Value> v8Value = info[0];
3945 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4041 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3946 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4042 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3947 TestObjectV8Internal::limitedToOnlyAttributeAttributeSetter(v8Value, info); 4043 TestObjectV8Internal::limitedToOnlyAttributeAttributeSetter(v8Value, info);
3948 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4044 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3949 } 4045 }
3950 4046
3951 static void limitedToOnlyOtherAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info) 4047 static void limitedToOnlyOtherAttributeAttributeGetter(const v8::FunctionCallbac kInfo<v8::Value>& info)
3952 { 4048 {
3953 v8::Local<v8::Object> holder = info.Holder(); 4049 v8::Local<v8::Object> holder = info.Holder();
3954 TestObject* impl = V8TestObject::toImpl(holder); 4050 TestObject* impl = V8TestObject::toImpl(holder);
3955 String cppValue(impl->fastGetAttribute(HTMLNames::otherAttr)); 4051 String cppValue(impl->fastGetAttribute(HTMLNames::otherAttr));
3956 if (cppValue.isEmpty()) { 4052 if (cppValue.isEmpty()) {
3957 ; 4053 ;
3958 } else if (equalIgnoringCase(cppValue, "Value1")) { 4054 } else if (equalIgnoringCase(cppValue, "Value1")) {
3959 cppValue = "Value1"; 4055 cppValue = "Value1";
3960 } else if (equalIgnoringCase(cppValue, "Value2")) { 4056 } else if (equalIgnoringCase(cppValue, "Value2")) {
3961 cppValue = "Value2"; 4057 cppValue = "Value2";
3962 } else { 4058 } else {
3963 cppValue = ""; 4059 cppValue = "";
3964 } 4060 }
3965 v8SetReturnValueString(info, cppValue, info.GetIsolate()); 4061 v8SetReturnValueString(info, cppValue, info.GetIsolate());
3966 } 4062 }
3967 4063
3968 static void limitedToOnlyOtherAttributeAttributeGetterCallback(v8::Local<v8::Str ing>, const v8::PropertyCallbackInfo<v8::Value>& info) 4064 static void limitedToOnlyOtherAttributeAttributeGetterCallback(const v8::Functio nCallbackInfo<v8::Value>& info)
3969 { 4065 {
3970 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4066 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3971 TestObjectV8Internal::limitedToOnlyOtherAttributeAttributeGetter(info); 4067 TestObjectV8Internal::limitedToOnlyOtherAttributeAttributeGetter(info);
3972 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4068 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3973 } 4069 }
3974 4070
3975 static void limitedToOnlyOtherAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::PropertyCallbackInfo<void>& info) 4071 static void limitedToOnlyOtherAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::FunctionCallbackInfo<v8::Value>& info)
3976 { 4072 {
3977 v8::Local<v8::Object> holder = info.Holder(); 4073 v8::Local<v8::Object> holder = info.Holder();
3978 TestObject* impl = V8TestObject::toImpl(holder); 4074 TestObject* impl = V8TestObject::toImpl(holder);
3979 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 4075 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
3980 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4076 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3981 impl->setAttribute(HTMLNames::otherAttr, cppValue); 4077 impl->setAttribute(HTMLNames::otherAttr, cppValue);
3982 } 4078 }
3983 4079
3984 static void limitedToOnlyOtherAttributeAttributeSetterCallback(v8::Local<v8::Str ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4080 static void limitedToOnlyOtherAttributeAttributeSetterCallback(const v8::Functio nCallbackInfo<v8::Value>& info)
3985 { 4081 {
4082 v8::Local<v8::Value> v8Value = info[0];
3986 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4083 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3987 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4084 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3988 TestObjectV8Internal::limitedToOnlyOtherAttributeAttributeSetter(v8Value, in fo); 4085 TestObjectV8Internal::limitedToOnlyOtherAttributeAttributeSetter(v8Value, in fo);
3989 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4086 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3990 } 4087 }
3991 4088
3992 static void limitedWithMissingDefaultAttributeAttributeGetter(const v8::Property CallbackInfo<v8::Value>& info) 4089 static void limitedWithMissingDefaultAttributeAttributeGetter(const v8::Function CallbackInfo<v8::Value>& info)
3993 { 4090 {
3994 v8::Local<v8::Object> holder = info.Holder(); 4091 v8::Local<v8::Object> holder = info.Holder();
3995 TestObject* impl = V8TestObject::toImpl(holder); 4092 TestObject* impl = V8TestObject::toImpl(holder);
3996 String cppValue(impl->fastGetAttribute(HTMLNames::limitedwithmissingdefaulta ttributeAttr)); 4093 String cppValue(impl->fastGetAttribute(HTMLNames::limitedwithmissingdefaulta ttributeAttr));
3997 if (cppValue.isEmpty()) { 4094 if (cppValue.isEmpty()) {
3998 cppValue = "rsa"; 4095 cppValue = "rsa";
3999 } else if (equalIgnoringCase(cppValue, "rsa")) { 4096 } else if (equalIgnoringCase(cppValue, "rsa")) {
4000 cppValue = "rsa"; 4097 cppValue = "rsa";
4001 } else if (equalIgnoringCase(cppValue, "dsa")) { 4098 } else if (equalIgnoringCase(cppValue, "dsa")) {
4002 cppValue = "dsa"; 4099 cppValue = "dsa";
4003 } else { 4100 } else {
4004 cppValue = ""; 4101 cppValue = "";
4005 } 4102 }
4006 v8SetReturnValueString(info, cppValue, info.GetIsolate()); 4103 v8SetReturnValueString(info, cppValue, info.GetIsolate());
4007 } 4104 }
4008 4105
4009 static void limitedWithMissingDefaultAttributeAttributeGetterCallback(v8::Local< v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 4106 static void limitedWithMissingDefaultAttributeAttributeGetterCallback(const v8:: FunctionCallbackInfo<v8::Value>& info)
4010 { 4107 {
4011 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4108 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4012 TestObjectV8Internal::limitedWithMissingDefaultAttributeAttributeGetter(info ); 4109 TestObjectV8Internal::limitedWithMissingDefaultAttributeAttributeGetter(info );
4013 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4110 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4014 } 4111 }
4015 4112
4016 static void limitedWithMissingDefaultAttributeAttributeSetter(v8::Local<v8::Valu e> v8Value, const v8::PropertyCallbackInfo<void>& info) 4113 static void limitedWithMissingDefaultAttributeAttributeSetter(v8::Local<v8::Valu e> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
4017 { 4114 {
4018 v8::Local<v8::Object> holder = info.Holder(); 4115 v8::Local<v8::Object> holder = info.Holder();
4019 TestObject* impl = V8TestObject::toImpl(holder); 4116 TestObject* impl = V8TestObject::toImpl(holder);
4020 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 4117 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
4021 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4118 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4022 impl->setAttribute(HTMLNames::limitedwithmissingdefaultattributeAttr, cppVal ue); 4119 impl->setAttribute(HTMLNames::limitedwithmissingdefaultattributeAttr, cppVal ue);
4023 } 4120 }
4024 4121
4025 static void limitedWithMissingDefaultAttributeAttributeSetterCallback(v8::Local< v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4122 static void limitedWithMissingDefaultAttributeAttributeSetterCallback(const v8:: FunctionCallbackInfo<v8::Value>& info)
4026 { 4123 {
4124 v8::Local<v8::Value> v8Value = info[0];
4027 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4125 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4028 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4126 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4029 TestObjectV8Internal::limitedWithMissingDefaultAttributeAttributeSetter(v8Va lue, info); 4127 TestObjectV8Internal::limitedWithMissingDefaultAttributeAttributeSetter(v8Va lue, info);
4030 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4128 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4031 } 4129 }
4032 4130
4033 static void limitedWithInvalidMissingDefaultAttributeAttributeGetter(const v8::P ropertyCallbackInfo<v8::Value>& info) 4131 static void limitedWithInvalidMissingDefaultAttributeAttributeGetter(const v8::F unctionCallbackInfo<v8::Value>& info)
4034 { 4132 {
4035 v8::Local<v8::Object> holder = info.Holder(); 4133 v8::Local<v8::Object> holder = info.Holder();
4036 TestObject* impl = V8TestObject::toImpl(holder); 4134 TestObject* impl = V8TestObject::toImpl(holder);
4037 String cppValue(impl->fastGetAttribute(HTMLNames::limitedwithinvalidmissingd efaultattributeAttr)); 4135 String cppValue(impl->fastGetAttribute(HTMLNames::limitedwithinvalidmissingd efaultattributeAttr));
4038 if (cppValue.isEmpty()) { 4136 if (cppValue.isEmpty()) {
4039 cppValue = "auto"; 4137 cppValue = "auto";
4040 } else if (equalIgnoringCase(cppValue, "ltr")) { 4138 } else if (equalIgnoringCase(cppValue, "ltr")) {
4041 cppValue = "ltr"; 4139 cppValue = "ltr";
4042 } else if (equalIgnoringCase(cppValue, "rtl")) { 4140 } else if (equalIgnoringCase(cppValue, "rtl")) {
4043 cppValue = "rtl"; 4141 cppValue = "rtl";
4044 } else if (equalIgnoringCase(cppValue, "auto")) { 4142 } else if (equalIgnoringCase(cppValue, "auto")) {
4045 cppValue = "auto"; 4143 cppValue = "auto";
4046 } else { 4144 } else {
4047 cppValue = "ltr"; 4145 cppValue = "ltr";
4048 } 4146 }
4049 v8SetReturnValueString(info, cppValue, info.GetIsolate()); 4147 v8SetReturnValueString(info, cppValue, info.GetIsolate());
4050 } 4148 }
4051 4149
4052 static void limitedWithInvalidMissingDefaultAttributeAttributeGetterCallback(v8: :Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 4150 static void limitedWithInvalidMissingDefaultAttributeAttributeGetterCallback(con st v8::FunctionCallbackInfo<v8::Value>& info)
4053 { 4151 {
4054 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4152 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4055 TestObjectV8Internal::limitedWithInvalidMissingDefaultAttributeAttributeGett er(info); 4153 TestObjectV8Internal::limitedWithInvalidMissingDefaultAttributeAttributeGett er(info);
4056 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4154 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4057 } 4155 }
4058 4156
4059 static void limitedWithInvalidMissingDefaultAttributeAttributeSetter(v8::Local<v 8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4157 static void limitedWithInvalidMissingDefaultAttributeAttributeSetter(v8::Local<v 8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
4060 { 4158 {
4061 v8::Local<v8::Object> holder = info.Holder(); 4159 v8::Local<v8::Object> holder = info.Holder();
4062 TestObject* impl = V8TestObject::toImpl(holder); 4160 TestObject* impl = V8TestObject::toImpl(holder);
4063 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 4161 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
4064 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4162 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4065 impl->setAttribute(HTMLNames::limitedwithinvalidmissingdefaultattributeAttr, cppValue); 4163 impl->setAttribute(HTMLNames::limitedwithinvalidmissingdefaultattributeAttr, cppValue);
4066 } 4164 }
4067 4165
4068 static void limitedWithInvalidMissingDefaultAttributeAttributeSetterCallback(v8: :Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo <void>& info) 4166 static void limitedWithInvalidMissingDefaultAttributeAttributeSetterCallback(con st v8::FunctionCallbackInfo<v8::Value>& info)
4069 { 4167 {
4168 v8::Local<v8::Value> v8Value = info[0];
4070 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4169 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4071 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4170 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4072 TestObjectV8Internal::limitedWithInvalidMissingDefaultAttributeAttributeSett er(v8Value, info); 4171 TestObjectV8Internal::limitedWithInvalidMissingDefaultAttributeAttributeSett er(v8Value, info);
4073 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4172 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4074 } 4173 }
4075 4174
4076 static void corsSettingAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info) 4175 static void corsSettingAttributeAttributeGetter(const v8::FunctionCallbackInfo<v 8::Value>& info)
4077 { 4176 {
4078 v8::Local<v8::Object> holder = info.Holder(); 4177 v8::Local<v8::Object> holder = info.Holder();
4079 TestObject* impl = V8TestObject::toImpl(holder); 4178 TestObject* impl = V8TestObject::toImpl(holder);
4080 String cppValue(impl->fastGetAttribute(HTMLNames::corssettingattributeAttr)) ; 4179 String cppValue(impl->fastGetAttribute(HTMLNames::corssettingattributeAttr)) ;
4081 if (cppValue.isNull()) { 4180 if (cppValue.isNull()) {
4082 ; 4181 ;
4083 } else if (cppValue.isEmpty()) { 4182 } else if (cppValue.isEmpty()) {
4084 cppValue = "anonymous"; 4183 cppValue = "anonymous";
4085 } else if (equalIgnoringCase(cppValue, "anonymous")) { 4184 } else if (equalIgnoringCase(cppValue, "anonymous")) {
4086 cppValue = "anonymous"; 4185 cppValue = "anonymous";
4087 } else if (equalIgnoringCase(cppValue, "use-credentials")) { 4186 } else if (equalIgnoringCase(cppValue, "use-credentials")) {
4088 cppValue = "use-credentials"; 4187 cppValue = "use-credentials";
4089 } else { 4188 } else {
4090 cppValue = "anonymous"; 4189 cppValue = "anonymous";
4091 } 4190 }
4092 v8SetReturnValueString(info, cppValue, info.GetIsolate()); 4191 v8SetReturnValueString(info, cppValue, info.GetIsolate());
4093 } 4192 }
4094 4193
4095 static void corsSettingAttributeAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info) 4194 static void corsSettingAttributeAttributeGetterCallback(const v8::FunctionCallba ckInfo<v8::Value>& info)
4096 { 4195 {
4097 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4196 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4098 TestObjectV8Internal::corsSettingAttributeAttributeGetter(info); 4197 TestObjectV8Internal::corsSettingAttributeAttributeGetter(info);
4099 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4198 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4100 } 4199 }
4101 4200
4102 static void limitedWithEmptyMissingInvalidAttributeAttributeGetter(const v8::Pro pertyCallbackInfo<v8::Value>& info) 4201 static void limitedWithEmptyMissingInvalidAttributeAttributeGetter(const v8::Fun ctionCallbackInfo<v8::Value>& info)
4103 { 4202 {
4104 v8::Local<v8::Object> holder = info.Holder(); 4203 v8::Local<v8::Object> holder = info.Holder();
4105 TestObject* impl = V8TestObject::toImpl(holder); 4204 TestObject* impl = V8TestObject::toImpl(holder);
4106 String cppValue(impl->fastGetAttribute(HTMLNames::limitedwithemptymissinginv alidattributeAttr)); 4205 String cppValue(impl->fastGetAttribute(HTMLNames::limitedwithemptymissinginv alidattributeAttr));
4107 if (cppValue.isNull()) { 4206 if (cppValue.isNull()) {
4108 cppValue = "missing"; 4207 cppValue = "missing";
4109 } else if (cppValue.isEmpty()) { 4208 } else if (cppValue.isEmpty()) {
4110 cppValue = "empty"; 4209 cppValue = "empty";
4111 } else if (equalIgnoringCase(cppValue, "empty")) { 4210 } else if (equalIgnoringCase(cppValue, "empty")) {
4112 cppValue = "empty"; 4211 cppValue = "empty";
4113 } else if (equalIgnoringCase(cppValue, "missing")) { 4212 } else if (equalIgnoringCase(cppValue, "missing")) {
4114 cppValue = "missing"; 4213 cppValue = "missing";
4115 } else if (equalIgnoringCase(cppValue, "invalid")) { 4214 } else if (equalIgnoringCase(cppValue, "invalid")) {
4116 cppValue = "invalid"; 4215 cppValue = "invalid";
4117 } else if (equalIgnoringCase(cppValue, "a-normal")) { 4216 } else if (equalIgnoringCase(cppValue, "a-normal")) {
4118 cppValue = "a-normal"; 4217 cppValue = "a-normal";
4119 } else { 4218 } else {
4120 cppValue = "invalid"; 4219 cppValue = "invalid";
4121 } 4220 }
4122 v8SetReturnValueString(info, cppValue, info.GetIsolate()); 4221 v8SetReturnValueString(info, cppValue, info.GetIsolate());
4123 } 4222 }
4124 4223
4125 static void limitedWithEmptyMissingInvalidAttributeAttributeGetterCallback(v8::L ocal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 4224 static void limitedWithEmptyMissingInvalidAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
4126 { 4225 {
4127 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4226 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4128 TestObjectV8Internal::limitedWithEmptyMissingInvalidAttributeAttributeGetter (info); 4227 TestObjectV8Internal::limitedWithEmptyMissingInvalidAttributeAttributeGetter (info);
4129 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4228 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4130 } 4229 }
4131 4230
4132 static void replaceableReadonlyLongAttributeAttributeGetter(const v8::PropertyCa llbackInfo<v8::Value>& info) 4231 static void replaceableReadonlyLongAttributeAttributeGetter(const v8::PropertyCa llbackInfo<v8::Value>& info)
4133 { 4232 {
4134 v8::Local<v8::Object> holder = info.Holder(); 4233 v8::Local<v8::Object> holder = info.Holder();
4135 TestObject* impl = V8TestObject::toImpl(holder); 4234 TestObject* impl = V8TestObject::toImpl(holder);
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
4266 4365
4267 #if ENABLE(CONDITION) 4366 #if ENABLE(CONDITION)
4268 static void conditionalRuntimeEnabledLongAttributeAttributeSetterCallback(v8::Lo cal<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<vo id>& info) 4367 static void conditionalRuntimeEnabledLongAttributeAttributeSetterCallback(v8::Lo cal<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<vo id>& info)
4269 { 4368 {
4270 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4369 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4271 TestObjectV8Internal::conditionalRuntimeEnabledLongAttributeAttributeSetter( v8Value, info); 4370 TestObjectV8Internal::conditionalRuntimeEnabledLongAttributeAttributeSetter( v8Value, info);
4272 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4371 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4273 } 4372 }
4274 #endif // ENABLE(CONDITION) 4373 #endif // ENABLE(CONDITION)
4275 4374
4276 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeGett er(const v8::PropertyCallbackInfo<v8::Value>& info) 4375 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeGett er(const v8::FunctionCallbackInfo<v8::Value>& info)
4277 { 4376 {
4278 v8::Local<v8::Object> holder = info.Holder(); 4377 v8::Local<v8::Object> holder = info.Holder();
4279 TestObject* impl = V8TestObject::toImpl(holder); 4378 TestObject* impl = V8TestObject::toImpl(holder);
4280 v8SetReturnValueString(info, impl->setterCallWithActiveWindowAndFirstWindowS tringAttribute(), info.GetIsolate()); 4379 v8SetReturnValueString(info, impl->setterCallWithActiveWindowAndFirstWindowS tringAttribute(), info.GetIsolate());
4281 } 4380 }
4282 4381
4283 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeGett erCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& inf o) 4382 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeGett erCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
4284 { 4383 {
4285 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4384 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4286 TestObjectV8Internal::setterCallWithActiveWindowAndFirstWindowStringAttribut eAttributeGetter(info); 4385 TestObjectV8Internal::setterCallWithActiveWindowAndFirstWindowStringAttribut eAttributeGetter(info);
4287 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4386 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4288 } 4387 }
4289 4388
4290 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeSett er(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4389 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeSett er(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info )
4291 { 4390 {
4292 v8::Local<v8::Object> holder = info.Holder(); 4391 v8::Local<v8::Object> holder = info.Holder();
4293 TestObject* impl = V8TestObject::toImpl(holder); 4392 TestObject* impl = V8TestObject::toImpl(holder);
4294 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 4393 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
4295 impl->setSetterCallWithActiveWindowAndFirstWindowStringAttribute(callingDOMW indow(info.GetIsolate()), enteredDOMWindow(info.GetIsolate()), cppValue); 4394 impl->setSetterCallWithActiveWindowAndFirstWindowStringAttribute(callingDOMW indow(info.GetIsolate()), enteredDOMWindow(info.GetIsolate()), cppValue);
4296 } 4395 }
4297 4396
4298 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeSett erCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::Proper tyCallbackInfo<void>& info) 4397 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeSett erCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
4299 { 4398 {
4399 v8::Local<v8::Value> v8Value = info[0];
4300 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4400 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4301 TestObjectV8Internal::setterCallWithActiveWindowAndFirstWindowStringAttribut eAttributeSetter(v8Value, info); 4401 TestObjectV8Internal::setterCallWithActiveWindowAndFirstWindowStringAttribut eAttributeSetter(v8Value, info);
4302 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4402 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4303 } 4403 }
4304 4404
4305 static void setterCallWithExecutionContextStringAttributeAttributeGetter(const v 8::PropertyCallbackInfo<v8::Value>& info) 4405 static void setterCallWithExecutionContextStringAttributeAttributeGetter(const v 8::FunctionCallbackInfo<v8::Value>& info)
4306 { 4406 {
4307 v8::Local<v8::Object> holder = info.Holder(); 4407 v8::Local<v8::Object> holder = info.Holder();
4308 TestObject* impl = V8TestObject::toImpl(holder); 4408 TestObject* impl = V8TestObject::toImpl(holder);
4309 v8SetReturnValueString(info, impl->setterCallWithExecutionContextStringAttri bute(), info.GetIsolate()); 4409 v8SetReturnValueString(info, impl->setterCallWithExecutionContextStringAttri bute(), info.GetIsolate());
4310 } 4410 }
4311 4411
4312 static void setterCallWithExecutionContextStringAttributeAttributeGetterCallback (v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 4412 static void setterCallWithExecutionContextStringAttributeAttributeGetterCallback (const v8::FunctionCallbackInfo<v8::Value>& info)
4313 { 4413 {
4314 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4414 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4315 TestObjectV8Internal::setterCallWithExecutionContextStringAttributeAttribute Getter(info); 4415 TestObjectV8Internal::setterCallWithExecutionContextStringAttributeAttribute Getter(info);
4316 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4416 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4317 } 4417 }
4318 4418
4319 static void setterCallWithExecutionContextStringAttributeAttributeSetter(v8::Loc al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4419 static void setterCallWithExecutionContextStringAttributeAttributeSetter(v8::Loc al<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
4320 { 4420 {
4321 v8::Local<v8::Object> holder = info.Holder(); 4421 v8::Local<v8::Object> holder = info.Holder();
4322 TestObject* impl = V8TestObject::toImpl(holder); 4422 TestObject* impl = V8TestObject::toImpl(holder);
4323 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 4423 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
4324 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ()); 4424 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ());
4325 impl->setSetterCallWithExecutionContextStringAttribute(executionContext, cpp Value); 4425 impl->setSetterCallWithExecutionContextStringAttribute(executionContext, cpp Value);
4326 } 4426 }
4327 4427
4328 static void setterCallWithExecutionContextStringAttributeAttributeSetterCallback (v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallback Info<void>& info) 4428 static void setterCallWithExecutionContextStringAttributeAttributeSetterCallback (const v8::FunctionCallbackInfo<v8::Value>& info)
4329 { 4429 {
4430 v8::Local<v8::Value> v8Value = info[0];
4330 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4431 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4331 TestObjectV8Internal::setterCallWithExecutionContextStringAttributeAttribute Setter(v8Value, info); 4432 TestObjectV8Internal::setterCallWithExecutionContextStringAttributeAttribute Setter(v8Value, info);
4332 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4433 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4333 } 4434 }
4334 4435
4335 static void treatNullAsEmptyStringStringAttributeAttributeGetter(const v8::Prope rtyCallbackInfo<v8::Value>& info) 4436 static void treatNullAsEmptyStringStringAttributeAttributeGetter(const v8::Funct ionCallbackInfo<v8::Value>& info)
4336 { 4437 {
4337 v8::Local<v8::Object> holder = info.Holder(); 4438 v8::Local<v8::Object> holder = info.Holder();
4338 TestObject* impl = V8TestObject::toImpl(holder); 4439 TestObject* impl = V8TestObject::toImpl(holder);
4339 v8SetReturnValueString(info, impl->treatNullAsEmptyStringStringAttribute(), info.GetIsolate()); 4440 v8SetReturnValueString(info, impl->treatNullAsEmptyStringStringAttribute(), info.GetIsolate());
4340 } 4441 }
4341 4442
4342 static void treatNullAsEmptyStringStringAttributeAttributeGetterCallback(v8::Loc al<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 4443 static void treatNullAsEmptyStringStringAttributeAttributeGetterCallback(const v 8::FunctionCallbackInfo<v8::Value>& info)
4343 { 4444 {
4344 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4445 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4345 TestObjectV8Internal::treatNullAsEmptyStringStringAttributeAttributeGetter(i nfo); 4446 TestObjectV8Internal::treatNullAsEmptyStringStringAttributeAttributeGetter(i nfo);
4346 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4447 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4347 } 4448 }
4348 4449
4349 static void treatNullAsEmptyStringStringAttributeAttributeSetter(v8::Local<v8::V alue> v8Value, const v8::PropertyCallbackInfo<void>& info) 4450 static void treatNullAsEmptyStringStringAttributeAttributeSetter(v8::Local<v8::V alue> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
4350 { 4451 {
4351 v8::Local<v8::Object> holder = info.Holder(); 4452 v8::Local<v8::Object> holder = info.Holder();
4352 TestObject* impl = V8TestObject::toImpl(holder); 4453 TestObject* impl = V8TestObject::toImpl(holder);
4353 TOSTRING_VOID(V8StringResource<TreatNullAsEmptyString>, cppValue, v8Value); 4454 TOSTRING_VOID(V8StringResource<TreatNullAsEmptyString>, cppValue, v8Value);
4354 impl->setTreatNullAsEmptyStringStringAttribute(cppValue); 4455 impl->setTreatNullAsEmptyStringStringAttribute(cppValue);
4355 } 4456 }
4356 4457
4357 static void treatNullAsEmptyStringStringAttributeAttributeSetterCallback(v8::Loc al<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<voi d>& info) 4458 static void treatNullAsEmptyStringStringAttributeAttributeSetterCallback(const v 8::FunctionCallbackInfo<v8::Value>& info)
4358 { 4459 {
4460 v8::Local<v8::Value> v8Value = info[0];
4359 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4461 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4360 TestObjectV8Internal::treatNullAsEmptyStringStringAttributeAttributeSetter(v 8Value, info); 4462 TestObjectV8Internal::treatNullAsEmptyStringStringAttributeAttributeSetter(v 8Value, info);
4361 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4463 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4362 } 4464 }
4363 4465
4364 static void treatNullAsNullStringStringAttributeAttributeGetter(const v8::Proper tyCallbackInfo<v8::Value>& info) 4466 static void treatNullAsNullStringStringAttributeAttributeGetter(const v8::Functi onCallbackInfo<v8::Value>& info)
4365 { 4467 {
4366 v8::Local<v8::Object> holder = info.Holder(); 4468 v8::Local<v8::Object> holder = info.Holder();
4367 TestObject* impl = V8TestObject::toImpl(holder); 4469 TestObject* impl = V8TestObject::toImpl(holder);
4368 v8SetReturnValueString(info, impl->treatNullAsNullStringStringAttribute(), i nfo.GetIsolate()); 4470 v8SetReturnValueString(info, impl->treatNullAsNullStringStringAttribute(), i nfo.GetIsolate());
4369 } 4471 }
4370 4472
4371 static void treatNullAsNullStringStringAttributeAttributeGetterCallback(v8::Loca l<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 4473 static void treatNullAsNullStringStringAttributeAttributeGetterCallback(const v8 ::FunctionCallbackInfo<v8::Value>& info)
4372 { 4474 {
4373 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4475 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4374 TestObjectV8Internal::treatNullAsNullStringStringAttributeAttributeGetter(in fo); 4476 TestObjectV8Internal::treatNullAsNullStringStringAttributeAttributeGetter(in fo);
4375 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4477 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4376 } 4478 }
4377 4479
4378 static void treatNullAsNullStringStringAttributeAttributeSetter(v8::Local<v8::Va lue> v8Value, const v8::PropertyCallbackInfo<void>& info) 4480 static void treatNullAsNullStringStringAttributeAttributeSetter(v8::Local<v8::Va lue> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
4379 { 4481 {
4380 v8::Local<v8::Object> holder = info.Holder(); 4482 v8::Local<v8::Object> holder = info.Holder();
4381 TestObject* impl = V8TestObject::toImpl(holder); 4483 TestObject* impl = V8TestObject::toImpl(holder);
4382 TOSTRING_VOID(V8StringResource<TreatNullAsNullString>, cppValue, v8Value); 4484 TOSTRING_VOID(V8StringResource<TreatNullAsNullString>, cppValue, v8Value);
4383 impl->setTreatNullAsNullStringStringAttribute(cppValue); 4485 impl->setTreatNullAsNullStringStringAttribute(cppValue);
4384 } 4486 }
4385 4487
4386 static void treatNullAsNullStringStringAttributeAttributeSetterCallback(v8::Loca l<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info) 4488 static void treatNullAsNullStringStringAttributeAttributeSetterCallback(const v8 ::FunctionCallbackInfo<v8::Value>& info)
4387 { 4489 {
4490 v8::Local<v8::Value> v8Value = info[0];
4388 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4491 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4389 TestObjectV8Internal::treatNullAsNullStringStringAttributeAttributeSetter(v8 Value, info); 4492 TestObjectV8Internal::treatNullAsNullStringStringAttributeAttributeSetter(v8 Value, info);
4390 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4493 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4391 } 4494 }
4392 4495
4393 static void treatReturnedNullStringAsNullStringAttributeAttributeGetter(const v8 ::PropertyCallbackInfo<v8::Value>& info) 4496 static void treatReturnedNullStringAsNullStringAttributeAttributeGetter(const v8 ::FunctionCallbackInfo<v8::Value>& info)
4394 { 4497 {
4395 v8::Local<v8::Object> holder = info.Holder(); 4498 v8::Local<v8::Object> holder = info.Holder();
4396 TestObject* impl = V8TestObject::toImpl(holder); 4499 TestObject* impl = V8TestObject::toImpl(holder);
4397 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullString Attribute(), info.GetIsolate()); 4500 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullString Attribute(), info.GetIsolate());
4398 } 4501 }
4399 4502
4400 static void treatReturnedNullStringAsNullStringAttributeAttributeGetterCallback( v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 4503 static void treatReturnedNullStringAsNullStringAttributeAttributeGetterCallback( const v8::FunctionCallbackInfo<v8::Value>& info)
4401 { 4504 {
4402 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4505 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4403 TestObjectV8Internal::treatReturnedNullStringAsNullStringAttributeAttributeG etter(info); 4506 TestObjectV8Internal::treatReturnedNullStringAsNullStringAttributeAttributeG etter(info);
4404 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4507 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4405 } 4508 }
4406 4509
4407 static void treatReturnedNullStringAsNullStringAttributeAttributeSetter(v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4510 static void treatReturnedNullStringAsNullStringAttributeAttributeSetter(v8::Loca l<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
4408 { 4511 {
4409 v8::Local<v8::Object> holder = info.Holder(); 4512 v8::Local<v8::Object> holder = info.Holder();
4410 TestObject* impl = V8TestObject::toImpl(holder); 4513 TestObject* impl = V8TestObject::toImpl(holder);
4411 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 4514 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
4412 impl->setTreatReturnedNullStringAsNullStringAttribute(cppValue); 4515 impl->setTreatReturnedNullStringAsNullStringAttribute(cppValue);
4413 } 4516 }
4414 4517
4415 static void treatReturnedNullStringAsNullStringAttributeAttributeSetterCallback( v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI nfo<void>& info) 4518 static void treatReturnedNullStringAsNullStringAttributeAttributeSetterCallback( const v8::FunctionCallbackInfo<v8::Value>& info)
4416 { 4519 {
4520 v8::Local<v8::Value> v8Value = info[0];
4417 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4521 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4418 TestObjectV8Internal::treatReturnedNullStringAsNullStringAttributeAttributeS etter(v8Value, info); 4522 TestObjectV8Internal::treatReturnedNullStringAsNullStringAttributeAttributeS etter(v8Value, info);
4419 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4523 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4420 } 4524 }
4421 4525
4422 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeGetter(con st v8::PropertyCallbackInfo<v8::Value>& info) 4526 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeGetter(con st v8::FunctionCallbackInfo<v8::Value>& info)
4423 { 4527 {
4424 v8::Local<v8::Object> holder = info.Holder(); 4528 v8::Local<v8::Object> holder = info.Holder();
4425 TestObject* impl = V8TestObject::toImpl(holder); 4529 TestObject* impl = V8TestObject::toImpl(holder);
4426 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef inedStringAttribute(), info.GetIsolate()); 4530 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef inedStringAttribute(), info.GetIsolate());
4427 } 4531 }
4428 4532
4429 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeGetterCall back(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 4533 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeGetterCall back(const v8::FunctionCallbackInfo<v8::Value>& info)
4430 { 4534 {
4431 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4535 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4432 TestObjectV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAttri buteGetter(info); 4536 TestObjectV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAttri buteGetter(info);
4433 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4537 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4434 } 4538 }
4435 4539
4436 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeSetter(v8: :Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4540 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeSetter(v8: :Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
4437 { 4541 {
4438 v8::Local<v8::Object> holder = info.Holder(); 4542 v8::Local<v8::Object> holder = info.Holder();
4439 TestObject* impl = V8TestObject::toImpl(holder); 4543 TestObject* impl = V8TestObject::toImpl(holder);
4440 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 4544 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
4441 impl->setTreatReturnedNullStringAsUndefinedStringAttribute(cppValue); 4545 impl->setTreatReturnedNullStringAsUndefinedStringAttribute(cppValue);
4442 } 4546 }
4443 4547
4444 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeSetterCall back(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCall backInfo<void>& info) 4548 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeSetterCall back(const v8::FunctionCallbackInfo<v8::Value>& info)
4445 { 4549 {
4550 v8::Local<v8::Value> v8Value = info[0];
4446 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4551 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4447 TestObjectV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAttri buteSetter(v8Value, info); 4552 TestObjectV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAttri buteSetter(v8Value, info);
4448 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4553 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4449 } 4554 }
4450 4555
4451 static void cachedTreatReturnedNullStringAsUndefinedStringAttributeAttributeGett er(const v8::PropertyCallbackInfo<v8::Value>& info) 4556 static void cachedTreatReturnedNullStringAsUndefinedStringAttributeAttributeGett er(const v8::FunctionCallbackInfo<v8::Value>& info)
4452 { 4557 {
4453 v8::Local<v8::Object> holder = info.Holder(); 4558 v8::Local<v8::Object> holder = info.Holder();
4454 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cach edTreatReturnedNullStringAsUndefinedStringAttribute"); 4559 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cach edTreatReturnedNullStringAsUndefinedStringAttribute");
4455 TestObject* impl = V8TestObject::toImpl(holder); 4560 TestObject* impl = V8TestObject::toImpl(holder);
4456 if (!impl->isStringDirty()) { 4561 if (!impl->isStringDirty()) {
4457 v8::Local<v8::Value> v8Value = V8HiddenValue::getHiddenValue(info.GetIso late(), holder, propertyName); 4562 v8::Local<v8::Value> v8Value = V8HiddenValue::getHiddenValue(info.GetIso late(), holder, propertyName);
4458 if (!v8Value.IsEmpty()) { 4563 if (!v8Value.IsEmpty()) {
4459 v8SetReturnValue(info, v8Value); 4564 v8SetReturnValue(info, v8Value);
4460 return; 4565 return;
4461 } 4566 }
4462 } 4567 }
4463 String cppValue(impl->cachedTreatReturnedNullStringAsUndefinedStringAttribut e()); 4568 String cppValue(impl->cachedTreatReturnedNullStringAsUndefinedStringAttribut e());
4464 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, cppVa lue.isNull() ? v8Undefined() : v8String(info.GetIsolate(), cppValue)); 4569 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, cppVa lue.isNull() ? v8Undefined() : v8String(info.GetIsolate(), cppValue));
4465 v8SetReturnValueStringOrUndefined(info, cppValue, info.GetIsolate()); 4570 v8SetReturnValueStringOrUndefined(info, cppValue, info.GetIsolate());
4466 } 4571 }
4467 4572
4468 static void cachedTreatReturnedNullStringAsUndefinedStringAttributeAttributeGett erCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& inf o) 4573 static void cachedTreatReturnedNullStringAsUndefinedStringAttributeAttributeGett erCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
4469 { 4574 {
4470 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4575 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4471 TestObjectV8Internal::cachedTreatReturnedNullStringAsUndefinedStringAttribut eAttributeGetter(info); 4576 TestObjectV8Internal::cachedTreatReturnedNullStringAsUndefinedStringAttribut eAttributeGetter(info);
4472 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4577 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4473 } 4578 }
4474 4579
4475 static void cachedTreatReturnedNullStringAsUndefinedStringAttributeAttributeSett er(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4580 static void cachedTreatReturnedNullStringAsUndefinedStringAttributeAttributeSett er(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info )
4476 { 4581 {
4477 v8::Local<v8::Object> holder = info.Holder(); 4582 v8::Local<v8::Object> holder = info.Holder();
4478 TestObject* impl = V8TestObject::toImpl(holder); 4583 TestObject* impl = V8TestObject::toImpl(holder);
4479 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 4584 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
4480 impl->setCachedTreatReturnedNullStringAsUndefinedStringAttribute(cppValue); 4585 impl->setCachedTreatReturnedNullStringAsUndefinedStringAttribute(cppValue);
4481 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i nfo.GetIsolate(), "cachedTreatReturnedNullStringAsUndefinedStringAttribute")); / / Invalidate the cached value. 4586 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i nfo.GetIsolate(), "cachedTreatReturnedNullStringAsUndefinedStringAttribute")); / / Invalidate the cached value.
4482 } 4587 }
4483 4588
4484 static void cachedTreatReturnedNullStringAsUndefinedStringAttributeAttributeSett erCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::Proper tyCallbackInfo<void>& info) 4589 static void cachedTreatReturnedNullStringAsUndefinedStringAttributeAttributeSett erCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
4485 { 4590 {
4591 v8::Local<v8::Value> v8Value = info[0];
4486 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4592 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4487 TestObjectV8Internal::cachedTreatReturnedNullStringAsUndefinedStringAttribut eAttributeSetter(v8Value, info); 4593 TestObjectV8Internal::cachedTreatReturnedNullStringAsUndefinedStringAttribut eAttributeSetter(v8Value, info);
4488 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4594 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4489 } 4595 }
4490 4596
4491 static void treatReturnedNullStringAsNullByteStringAttributeAttributeGetter(cons t v8::PropertyCallbackInfo<v8::Value>& info) 4597 static void treatReturnedNullStringAsNullByteStringAttributeAttributeGetter(cons t v8::FunctionCallbackInfo<v8::Value>& info)
4492 { 4598 {
4493 v8::Local<v8::Object> holder = info.Holder(); 4599 v8::Local<v8::Object> holder = info.Holder();
4494 TestObject* impl = V8TestObject::toImpl(holder); 4600 TestObject* impl = V8TestObject::toImpl(holder);
4495 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullByteSt ringAttribute(), info.GetIsolate()); 4601 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullByteSt ringAttribute(), info.GetIsolate());
4496 } 4602 }
4497 4603
4498 static void treatReturnedNullStringAsNullByteStringAttributeAttributeGetterCallb ack(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 4604 static void treatReturnedNullStringAsNullByteStringAttributeAttributeGetterCallb ack(const v8::FunctionCallbackInfo<v8::Value>& info)
4499 { 4605 {
4500 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4606 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4501 TestObjectV8Internal::treatReturnedNullStringAsNullByteStringAttributeAttrib uteGetter(info); 4607 TestObjectV8Internal::treatReturnedNullStringAsNullByteStringAttributeAttrib uteGetter(info);
4502 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4608 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4503 } 4609 }
4504 4610
4505 static void treatReturnedNullStringAsNullByteStringAttributeAttributeSetter(v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4611 static void treatReturnedNullStringAsNullByteStringAttributeAttributeSetter(v8:: Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
4506 { 4612 {
4507 v8::Local<v8::Object> holder = info.Holder(); 4613 v8::Local<v8::Object> holder = info.Holder();
4508 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN ullStringAsNullByteStringAttribute", "TestObject", holder, info.GetIsolate()); 4614 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN ullStringAsNullByteStringAttribute", "TestObject", holder, info.GetIsolate());
4509 TestObject* impl = V8TestObject::toImpl(holder); 4615 TestObject* impl = V8TestObject::toImpl(holder);
4510 TONATIVE_VOID_EXCEPTIONSTATE(V8StringResource<>, cppValue, toByteString(v8Va lue, exceptionState), exceptionState); 4616 TONATIVE_VOID_EXCEPTIONSTATE(V8StringResource<>, cppValue, toByteString(v8Va lue, exceptionState), exceptionState);
4511 impl->setTreatReturnedNullStringAsNullByteStringAttribute(cppValue); 4617 impl->setTreatReturnedNullStringAsNullByteStringAttribute(cppValue);
4512 } 4618 }
4513 4619
4514 static void treatReturnedNullStringAsNullByteStringAttributeAttributeSetterCallb ack(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallb ackInfo<void>& info) 4620 static void treatReturnedNullStringAsNullByteStringAttributeAttributeSetterCallb ack(const v8::FunctionCallbackInfo<v8::Value>& info)
4515 { 4621 {
4622 v8::Local<v8::Value> v8Value = info[0];
4516 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4623 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4517 TestObjectV8Internal::treatReturnedNullStringAsNullByteStringAttributeAttrib uteSetter(v8Value, info); 4624 TestObjectV8Internal::treatReturnedNullStringAsNullByteStringAttributeAttrib uteSetter(v8Value, info);
4518 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4625 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4519 } 4626 }
4520 4627
4521 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeGetter (const v8::PropertyCallbackInfo<v8::Value>& info) 4628 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeGetter (const v8::FunctionCallbackInfo<v8::Value>& info)
4522 { 4629 {
4523 v8::Local<v8::Object> holder = info.Holder(); 4630 v8::Local<v8::Object> holder = info.Holder();
4524 TestObject* impl = V8TestObject::toImpl(holder); 4631 TestObject* impl = V8TestObject::toImpl(holder);
4525 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef inedByteStringAttribute(), info.GetIsolate()); 4632 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef inedByteStringAttribute(), info.GetIsolate());
4526 } 4633 }
4527 4634
4528 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeGetter Callback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 4635 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeGetter Callback(const v8::FunctionCallbackInfo<v8::Value>& info)
4529 { 4636 {
4530 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4637 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4531 TestObjectV8Internal::treatReturnedNullStringAsUndefinedByteStringAttributeA ttributeGetter(info); 4638 TestObjectV8Internal::treatReturnedNullStringAsUndefinedByteStringAttributeA ttributeGetter(info);
4532 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4639 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4533 } 4640 }
4534 4641
4535 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeSetter (v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4642 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeSetter (v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
4536 { 4643 {
4537 v8::Local<v8::Object> holder = info.Holder(); 4644 v8::Local<v8::Object> holder = info.Holder();
4538 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN ullStringAsUndefinedByteStringAttribute", "TestObject", holder, info.GetIsolate( )); 4645 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN ullStringAsUndefinedByteStringAttribute", "TestObject", holder, info.GetIsolate( ));
4539 TestObject* impl = V8TestObject::toImpl(holder); 4646 TestObject* impl = V8TestObject::toImpl(holder);
4540 TONATIVE_VOID_EXCEPTIONSTATE(V8StringResource<>, cppValue, toByteString(v8Va lue, exceptionState), exceptionState); 4647 TONATIVE_VOID_EXCEPTIONSTATE(V8StringResource<>, cppValue, toByteString(v8Va lue, exceptionState), exceptionState);
4541 impl->setTreatReturnedNullStringAsUndefinedByteStringAttribute(cppValue); 4648 impl->setTreatReturnedNullStringAsUndefinedByteStringAttribute(cppValue);
4542 } 4649 }
4543 4650
4544 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeSetter Callback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::Property CallbackInfo<void>& info) 4651 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeSetter Callback(const v8::FunctionCallbackInfo<v8::Value>& info)
4545 { 4652 {
4653 v8::Local<v8::Value> v8Value = info[0];
4546 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4654 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4547 TestObjectV8Internal::treatReturnedNullStringAsUndefinedByteStringAttributeA ttributeSetter(v8Value, info); 4655 TestObjectV8Internal::treatReturnedNullStringAsUndefinedByteStringAttributeA ttributeSetter(v8Value, info);
4548 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4656 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4549 } 4657 }
4550 4658
4551 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 4659 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info)
4552 { 4660 {
4553 v8::Local<v8::Object> holder = info.Holder(); 4661 v8::Local<v8::Object> holder = info.Holder();
4554 TestObject* impl = V8TestObject::toImpl(holder); 4662 TestObject* impl = V8TestObject::toImpl(holder);
4555 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullUSVStr ingAttribute(), info.GetIsolate()); 4663 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullUSVStr ingAttribute(), info.GetIsolate());
4556 } 4664 }
4557 4665
4558 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeGetterCallba ck(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 4666 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeGetterCallba ck(const v8::FunctionCallbackInfo<v8::Value>& info)
4559 { 4667 {
4560 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4668 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4561 TestObjectV8Internal::treatReturnedNullStringAsNullUSVStringAttributeAttribu teGetter(info); 4669 TestObjectV8Internal::treatReturnedNullStringAsNullUSVStringAttributeAttribu teGetter(info);
4562 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4670 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4563 } 4671 }
4564 4672
4565 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeSetter(v8::L ocal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4673 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeSetter(v8::L ocal<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
4566 { 4674 {
4567 v8::Local<v8::Object> holder = info.Holder(); 4675 v8::Local<v8::Object> holder = info.Holder();
4568 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN ullStringAsNullUSVStringAttribute", "TestObject", holder, info.GetIsolate()); 4676 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN ullStringAsNullUSVStringAttribute", "TestObject", holder, info.GetIsolate());
4569 TestObject* impl = V8TestObject::toImpl(holder); 4677 TestObject* impl = V8TestObject::toImpl(holder);
4570 TONATIVE_VOID_EXCEPTIONSTATE(V8StringResource<>, cppValue, toUSVString(v8Val ue, exceptionState), exceptionState); 4678 TONATIVE_VOID_EXCEPTIONSTATE(V8StringResource<>, cppValue, toUSVString(v8Val ue, exceptionState), exceptionState);
4571 impl->setTreatReturnedNullStringAsNullUSVStringAttribute(cppValue); 4679 impl->setTreatReturnedNullStringAsNullUSVStringAttribute(cppValue);
4572 } 4680 }
4573 4681
4574 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeSetterCallba ck(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallba ckInfo<void>& info) 4682 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeSetterCallba ck(const v8::FunctionCallbackInfo<v8::Value>& info)
4575 { 4683 {
4684 v8::Local<v8::Value> v8Value = info[0];
4576 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4685 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4577 TestObjectV8Internal::treatReturnedNullStringAsNullUSVStringAttributeAttribu teSetter(v8Value, info); 4686 TestObjectV8Internal::treatReturnedNullStringAsNullUSVStringAttributeAttribu teSetter(v8Value, info);
4578 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4687 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4579 } 4688 }
4580 4689
4581 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeGetter( const v8::PropertyCallbackInfo<v8::Value>& info) 4690 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeGetter( const v8::FunctionCallbackInfo<v8::Value>& info)
4582 { 4691 {
4583 v8::Local<v8::Object> holder = info.Holder(); 4692 v8::Local<v8::Object> holder = info.Holder();
4584 TestObject* impl = V8TestObject::toImpl(holder); 4693 TestObject* impl = V8TestObject::toImpl(holder);
4585 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef inedUSVStringAttribute(), info.GetIsolate()); 4694 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef inedUSVStringAttribute(), info.GetIsolate());
4586 } 4695 }
4587 4696
4588 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeGetterC allback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 4697 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeGetterC allback(const v8::FunctionCallbackInfo<v8::Value>& info)
4589 { 4698 {
4590 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4699 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4591 TestObjectV8Internal::treatReturnedNullStringAsUndefinedUSVStringAttributeAt tributeGetter(info); 4700 TestObjectV8Internal::treatReturnedNullStringAsUndefinedUSVStringAttributeAt tributeGetter(info);
4592 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4701 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4593 } 4702 }
4594 4703
4595 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeSetter( v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4704 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeSetter( v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
4596 { 4705 {
4597 v8::Local<v8::Object> holder = info.Holder(); 4706 v8::Local<v8::Object> holder = info.Holder();
4598 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN ullStringAsUndefinedUSVStringAttribute", "TestObject", holder, info.GetIsolate() ); 4707 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN ullStringAsUndefinedUSVStringAttribute", "TestObject", holder, info.GetIsolate() );
4599 TestObject* impl = V8TestObject::toImpl(holder); 4708 TestObject* impl = V8TestObject::toImpl(holder);
4600 TONATIVE_VOID_EXCEPTIONSTATE(V8StringResource<>, cppValue, toUSVString(v8Val ue, exceptionState), exceptionState); 4709 TONATIVE_VOID_EXCEPTIONSTATE(V8StringResource<>, cppValue, toUSVString(v8Val ue, exceptionState), exceptionState);
4601 impl->setTreatReturnedNullStringAsUndefinedUSVStringAttribute(cppValue); 4710 impl->setTreatReturnedNullStringAsUndefinedUSVStringAttribute(cppValue);
4602 } 4711 }
4603 4712
4604 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeSetterC allback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyC allbackInfo<void>& info) 4713 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeSetterC allback(const v8::FunctionCallbackInfo<v8::Value>& info)
4605 { 4714 {
4715 v8::Local<v8::Value> v8Value = info[0];
4606 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4716 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4607 TestObjectV8Internal::treatReturnedNullStringAsUndefinedUSVStringAttributeAt tributeSetter(v8Value, info); 4717 TestObjectV8Internal::treatReturnedNullStringAsUndefinedUSVStringAttributeAt tributeSetter(v8Value, info);
4608 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4718 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4609 } 4719 }
4610 4720
4611 static void typeCheckingInterfaceFloatAttributeAttributeGetter(const v8::Propert yCallbackInfo<v8::Value>& info) 4721 static void typeCheckingInterfaceFloatAttributeAttributeGetter(const v8::Functio nCallbackInfo<v8::Value>& info)
4612 { 4722 {
4613 v8::Local<v8::Object> holder = info.Holder(); 4723 v8::Local<v8::Object> holder = info.Holder();
4614 TestObject* impl = V8TestObject::toImpl(holder); 4724 TestObject* impl = V8TestObject::toImpl(holder);
4615 v8SetReturnValue(info, impl->typeCheckingInterfaceFloatAttribute()); 4725 v8SetReturnValue(info, impl->typeCheckingInterfaceFloatAttribute());
4616 } 4726 }
4617 4727
4618 static void typeCheckingInterfaceFloatAttributeAttributeGetterCallback(v8::Local <v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 4728 static void typeCheckingInterfaceFloatAttributeAttributeGetterCallback(const v8: :FunctionCallbackInfo<v8::Value>& info)
4619 { 4729 {
4620 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4730 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4621 TestObjectV8Internal::typeCheckingInterfaceFloatAttributeAttributeGetter(inf o); 4731 TestObjectV8Internal::typeCheckingInterfaceFloatAttributeAttributeGetter(inf o);
4622 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4732 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4623 } 4733 }
4624 4734
4625 static void typeCheckingInterfaceFloatAttributeAttributeSetter(v8::Local<v8::Val ue> v8Value, const v8::PropertyCallbackInfo<void>& info) 4735 static void typeCheckingInterfaceFloatAttributeAttributeSetter(v8::Local<v8::Val ue> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
4626 { 4736 {
4627 v8::Local<v8::Object> holder = info.Holder(); 4737 v8::Local<v8::Object> holder = info.Holder();
4628 ExceptionState exceptionState(ExceptionState::SetterContext, "typeCheckingIn terfaceFloatAttribute", "TestObject", holder, info.GetIsolate()); 4738 ExceptionState exceptionState(ExceptionState::SetterContext, "typeCheckingIn terfaceFloatAttribute", "TestObject", holder, info.GetIsolate());
4629 TestObject* impl = V8TestObject::toImpl(holder); 4739 TestObject* impl = V8TestObject::toImpl(holder);
4630 TONATIVE_VOID_EXCEPTIONSTATE(float, cppValue, toFloat(v8Value, exceptionStat e), exceptionState); 4740 TONATIVE_VOID_EXCEPTIONSTATE(float, cppValue, toFloat(v8Value, exceptionStat e), exceptionState);
4631 impl->setTypeCheckingInterfaceFloatAttribute(cppValue); 4741 impl->setTypeCheckingInterfaceFloatAttribute(cppValue);
4632 } 4742 }
4633 4743
4634 static void typeCheckingInterfaceFloatAttributeAttributeSetterCallback(v8::Local <v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void> & info) 4744 static void typeCheckingInterfaceFloatAttributeAttributeSetterCallback(const v8: :FunctionCallbackInfo<v8::Value>& info)
4635 { 4745 {
4746 v8::Local<v8::Value> v8Value = info[0];
4636 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4747 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4637 TestObjectV8Internal::typeCheckingInterfaceFloatAttributeAttributeSetter(v8V alue, info); 4748 TestObjectV8Internal::typeCheckingInterfaceFloatAttributeAttributeSetter(v8V alue, info);
4638 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4749 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4639 } 4750 }
4640 4751
4641 static void typeCheckingInterfaceTestInterfaceAttributeAttributeGetter(const v8: :PropertyCallbackInfo<v8::Value>& info) 4752 static void typeCheckingInterfaceTestInterfaceAttributeAttributeGetter(const v8: :FunctionCallbackInfo<v8::Value>& info)
4642 { 4753 {
4643 v8::Local<v8::Object> holder = info.Holder(); 4754 v8::Local<v8::Object> holder = info.Holder();
4644 TestObject* impl = V8TestObject::toImpl(holder); 4755 TestObject* impl = V8TestObject::toImpl(holder);
4645 v8SetReturnValueFast(info, WTF::getPtr(impl->typeCheckingInterfaceTestInterf aceAttribute()), impl); 4756 v8SetReturnValueFast(info, WTF::getPtr(impl->typeCheckingInterfaceTestInterf aceAttribute()), impl);
4646 } 4757 }
4647 4758
4648 static void typeCheckingInterfaceTestInterfaceAttributeAttributeGetterCallback(v 8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 4759 static void typeCheckingInterfaceTestInterfaceAttributeAttributeGetterCallback(c onst v8::FunctionCallbackInfo<v8::Value>& info)
4649 { 4760 {
4650 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4761 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4651 TestObjectV8Internal::typeCheckingInterfaceTestInterfaceAttributeAttributeGe tter(info); 4762 TestObjectV8Internal::typeCheckingInterfaceTestInterfaceAttributeAttributeGe tter(info);
4652 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4763 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4653 } 4764 }
4654 4765
4655 static void typeCheckingInterfaceTestInterfaceAttributeAttributeSetter(v8::Local <v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4766 static void typeCheckingInterfaceTestInterfaceAttributeAttributeSetter(v8::Local <v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
4656 { 4767 {
4657 v8::Local<v8::Object> holder = info.Holder(); 4768 v8::Local<v8::Object> holder = info.Holder();
4658 ExceptionState exceptionState(ExceptionState::SetterContext, "typeCheckingIn terfaceTestInterfaceAttribute", "TestObject", holder, info.GetIsolate()); 4769 ExceptionState exceptionState(ExceptionState::SetterContext, "typeCheckingIn terfaceTestInterfaceAttribute", "TestObject", holder, info.GetIsolate());
4659 TestObject* impl = V8TestObject::toImpl(holder); 4770 TestObject* impl = V8TestObject::toImpl(holder);
4660 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck (info.GetIsolate(), v8Value); 4771 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck (info.GetIsolate(), v8Value);
4661 if (!cppValue) { 4772 if (!cppValue) {
4662 exceptionState.throwTypeError("The provided value is not of type 'TestIn terface'."); 4773 exceptionState.throwTypeError("The provided value is not of type 'TestIn terface'.");
4663 exceptionState.throwIfNeeded(); 4774 exceptionState.throwIfNeeded();
4664 return; 4775 return;
4665 } 4776 }
4666 impl->setTypeCheckingInterfaceTestInterfaceAttribute(WTF::getPtr(cppValue)); 4777 impl->setTypeCheckingInterfaceTestInterfaceAttribute(WTF::getPtr(cppValue));
4667 } 4778 }
4668 4779
4669 static void typeCheckingInterfaceTestInterfaceAttributeAttributeSetterCallback(v 8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackIn fo<void>& info) 4780 static void typeCheckingInterfaceTestInterfaceAttributeAttributeSetterCallback(c onst v8::FunctionCallbackInfo<v8::Value>& info)
4670 { 4781 {
4782 v8::Local<v8::Value> v8Value = info[0];
4671 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4783 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4672 TestObjectV8Internal::typeCheckingInterfaceTestInterfaceAttributeAttributeSe tter(v8Value, info); 4784 TestObjectV8Internal::typeCheckingInterfaceTestInterfaceAttributeAttributeSe tter(v8Value, info);
4673 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4785 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4674 } 4786 }
4675 4787
4676 static void typeCheckingInterfaceTestInterfaceOrNullAttributeAttributeGetter(con st v8::PropertyCallbackInfo<v8::Value>& info) 4788 static void typeCheckingInterfaceTestInterfaceOrNullAttributeAttributeGetter(con st v8::FunctionCallbackInfo<v8::Value>& info)
4677 { 4789 {
4678 v8::Local<v8::Object> holder = info.Holder(); 4790 v8::Local<v8::Object> holder = info.Holder();
4679 TestObject* impl = V8TestObject::toImpl(holder); 4791 TestObject* impl = V8TestObject::toImpl(holder);
4680 v8SetReturnValueFast(info, WTF::getPtr(impl->typeCheckingInterfaceTestInterf aceOrNullAttribute()), impl); 4792 v8SetReturnValueFast(info, WTF::getPtr(impl->typeCheckingInterfaceTestInterf aceOrNullAttribute()), impl);
4681 } 4793 }
4682 4794
4683 static void typeCheckingInterfaceTestInterfaceOrNullAttributeAttributeGetterCall back(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 4795 static void typeCheckingInterfaceTestInterfaceOrNullAttributeAttributeGetterCall back(const v8::FunctionCallbackInfo<v8::Value>& info)
4684 { 4796 {
4685 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4797 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4686 TestObjectV8Internal::typeCheckingInterfaceTestInterfaceOrNullAttributeAttri buteGetter(info); 4798 TestObjectV8Internal::typeCheckingInterfaceTestInterfaceOrNullAttributeAttri buteGetter(info);
4687 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4799 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4688 } 4800 }
4689 4801
4690 static void typeCheckingInterfaceTestInterfaceOrNullAttributeAttributeSetter(v8: :Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4802 static void typeCheckingInterfaceTestInterfaceOrNullAttributeAttributeSetter(v8: :Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
4691 { 4803 {
4692 v8::Local<v8::Object> holder = info.Holder(); 4804 v8::Local<v8::Object> holder = info.Holder();
4693 ExceptionState exceptionState(ExceptionState::SetterContext, "typeCheckingIn terfaceTestInterfaceOrNullAttribute", "TestObject", holder, info.GetIsolate()); 4805 ExceptionState exceptionState(ExceptionState::SetterContext, "typeCheckingIn terfaceTestInterfaceOrNullAttribute", "TestObject", holder, info.GetIsolate());
4694 TestObject* impl = V8TestObject::toImpl(holder); 4806 TestObject* impl = V8TestObject::toImpl(holder);
4695 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck (info.GetIsolate(), v8Value); 4807 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck (info.GetIsolate(), v8Value);
4696 if (!cppValue && !isUndefinedOrNull(v8Value)) { 4808 if (!cppValue && !isUndefinedOrNull(v8Value)) {
4697 exceptionState.throwTypeError("The provided value is not of type 'TestIn terface'."); 4809 exceptionState.throwTypeError("The provided value is not of type 'TestIn terface'.");
4698 exceptionState.throwIfNeeded(); 4810 exceptionState.throwIfNeeded();
4699 return; 4811 return;
4700 } 4812 }
4701 impl->setTypeCheckingInterfaceTestInterfaceOrNullAttribute(WTF::getPtr(cppVa lue)); 4813 impl->setTypeCheckingInterfaceTestInterfaceOrNullAttribute(WTF::getPtr(cppVa lue));
4702 } 4814 }
4703 4815
4704 static void typeCheckingInterfaceTestInterfaceOrNullAttributeAttributeSetterCall back(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCall backInfo<void>& info) 4816 static void typeCheckingInterfaceTestInterfaceOrNullAttributeAttributeSetterCall back(const v8::FunctionCallbackInfo<v8::Value>& info)
4705 { 4817 {
4818 v8::Local<v8::Value> v8Value = info[0];
4706 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4819 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4707 TestObjectV8Internal::typeCheckingInterfaceTestInterfaceOrNullAttributeAttri buteSetter(v8Value, info); 4820 TestObjectV8Internal::typeCheckingInterfaceTestInterfaceOrNullAttributeAttri buteSetter(v8Value, info);
4708 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4821 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4709 } 4822 }
4710 4823
4711 static void urlStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8: :Value>& info) 4824 static void urlStringAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8: :Value>& info)
4712 { 4825 {
4713 v8::Local<v8::Object> holder = info.Holder(); 4826 v8::Local<v8::Object> holder = info.Holder();
4714 TestObject* impl = V8TestObject::toImpl(holder); 4827 TestObject* impl = V8TestObject::toImpl(holder);
4715 v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::urlstringattri buteAttr), info.GetIsolate()); 4828 v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::urlstringattri buteAttr), info.GetIsolate());
4716 } 4829 }
4717 4830
4718 static void urlStringAttributeAttributeGetterCallback(v8::Local<v8::String>, con st v8::PropertyCallbackInfo<v8::Value>& info) 4831 static void urlStringAttributeAttributeGetterCallback(const v8::FunctionCallback Info<v8::Value>& info)
4719 { 4832 {
4720 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4833 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4721 TestObjectV8Internal::urlStringAttributeAttributeGetter(info); 4834 TestObjectV8Internal::urlStringAttributeAttributeGetter(info);
4722 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4835 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4723 } 4836 }
4724 4837
4725 static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons t v8::PropertyCallbackInfo<void>& info) 4838 static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons t v8::FunctionCallbackInfo<v8::Value>& info)
4726 { 4839 {
4727 v8::Local<v8::Object> holder = info.Holder(); 4840 v8::Local<v8::Object> holder = info.Holder();
4728 TestObject* impl = V8TestObject::toImpl(holder); 4841 TestObject* impl = V8TestObject::toImpl(holder);
4729 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 4842 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
4730 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4843 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4731 impl->setAttribute(HTMLNames::urlstringattributeAttr, cppValue); 4844 impl->setAttribute(HTMLNames::urlstringattributeAttr, cppValue);
4732 } 4845 }
4733 4846
4734 static void urlStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8: :Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4847 static void urlStringAttributeAttributeSetterCallback(const v8::FunctionCallback Info<v8::Value>& info)
4735 { 4848 {
4849 v8::Local<v8::Value> v8Value = info[0];
4736 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4850 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4737 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4851 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4738 TestObjectV8Internal::urlStringAttributeAttributeSetter(v8Value, info); 4852 TestObjectV8Internal::urlStringAttributeAttributeSetter(v8Value, info);
4739 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4853 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4740 } 4854 }
4741 4855
4742 static void urlStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8: :Value>& info) 4856 static void urlStringAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8: :Value>& info)
4743 { 4857 {
4744 v8::Local<v8::Object> holder = info.Holder(); 4858 v8::Local<v8::Object> holder = info.Holder();
4745 TestObject* impl = V8TestObject::toImpl(holder); 4859 TestObject* impl = V8TestObject::toImpl(holder);
4746 v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::reflectUrlAttr ibuteAttr), info.GetIsolate()); 4860 v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::reflectUrlAttr ibuteAttr), info.GetIsolate());
4747 } 4861 }
4748 4862
4749 static void urlStringAttributeAttributeGetterCallback(v8::Local<v8::String>, con st v8::PropertyCallbackInfo<v8::Value>& info) 4863 static void urlStringAttributeAttributeGetterCallback(const v8::FunctionCallback Info<v8::Value>& info)
4750 { 4864 {
4751 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4865 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4752 TestObjectV8Internal::urlStringAttributeAttributeGetter(info); 4866 TestObjectV8Internal::urlStringAttributeAttributeGetter(info);
4753 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4867 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4754 } 4868 }
4755 4869
4756 static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons t v8::PropertyCallbackInfo<void>& info) 4870 static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons t v8::FunctionCallbackInfo<v8::Value>& info)
4757 { 4871 {
4758 v8::Local<v8::Object> holder = info.Holder(); 4872 v8::Local<v8::Object> holder = info.Holder();
4759 TestObject* impl = V8TestObject::toImpl(holder); 4873 TestObject* impl = V8TestObject::toImpl(holder);
4760 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 4874 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
4761 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4875 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4762 impl->setAttribute(HTMLNames::reflectUrlAttributeAttr, cppValue); 4876 impl->setAttribute(HTMLNames::reflectUrlAttributeAttr, cppValue);
4763 } 4877 }
4764 4878
4765 static void urlStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8: :Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4879 static void urlStringAttributeAttributeSetterCallback(const v8::FunctionCallback Info<v8::Value>& info)
4766 { 4880 {
4881 v8::Local<v8::Value> v8Value = info[0];
4767 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4882 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4768 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4883 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4769 TestObjectV8Internal::urlStringAttributeAttributeSetter(v8Value, info); 4884 TestObjectV8Internal::urlStringAttributeAttributeSetter(v8Value, info);
4770 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4885 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4771 } 4886 }
4772 4887
4773 static void unforgeableLongAttributeAttributeGetter(const v8::PropertyCallbackIn fo<v8::Value>& info) 4888 static void unforgeableLongAttributeAttributeGetter(const v8::PropertyCallbackIn fo<v8::Value>& info)
4774 { 4889 {
4775 v8::Local<v8::Object> holder = info.Holder(); 4890 v8::Local<v8::Object> holder = info.Holder();
4776 TestObject* impl = V8TestObject::toImpl(holder); 4891 TestObject* impl = V8TestObject::toImpl(holder);
(...skipping 16 matching lines...) Expand all
4793 impl->setUnforgeableLongAttribute(cppValue); 4908 impl->setUnforgeableLongAttribute(cppValue);
4794 } 4909 }
4795 4910
4796 static void unforgeableLongAttributeAttributeSetterCallback(v8::Local<v8::String >, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4911 static void unforgeableLongAttributeAttributeSetterCallback(v8::Local<v8::String >, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4797 { 4912 {
4798 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4913 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4799 TestObjectV8Internal::unforgeableLongAttributeAttributeSetter(v8Value, info) ; 4914 TestObjectV8Internal::unforgeableLongAttributeAttributeSetter(v8Value, info) ;
4800 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4915 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4801 } 4916 }
4802 4917
4803 static void testInterfaceAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info) 4918 static void testInterfaceAttributeAttributeGetter(const v8::FunctionCallbackInfo <v8::Value>& info)
4804 { 4919 {
4805 v8::Local<v8::Object> holder = info.Holder(); 4920 v8::Local<v8::Object> holder = info.Holder();
4806 TestObject* impl = V8TestObject::toImpl(holder); 4921 TestObject* impl = V8TestObject::toImpl(holder);
4807 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceAttribute()), impl ); 4922 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceAttribute()), impl );
4808 } 4923 }
4809 4924
4810 static void testInterfaceAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 4925 static void testInterfaceAttributeAttributeGetterCallback(const v8::FunctionCall backInfo<v8::Value>& info)
4811 { 4926 {
4812 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4927 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4813 TestObjectV8Internal::testInterfaceAttributeAttributeGetter(info); 4928 TestObjectV8Internal::testInterfaceAttributeAttributeGetter(info);
4814 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4929 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4815 } 4930 }
4816 4931
4817 static void testInterfaceAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4932 static void testInterfaceAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
4818 { 4933 {
4819 v8::Local<v8::Object> holder = info.Holder(); 4934 v8::Local<v8::Object> holder = info.Holder();
4820 TestObject* impl = V8TestObject::toImpl(holder); 4935 TestObject* impl = V8TestObject::toImpl(holder);
4821 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck (info.GetIsolate(), v8Value); 4936 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck (info.GetIsolate(), v8Value);
4822 impl->setTestInterfaceAttribute(WTF::getPtr(cppValue)); 4937 impl->setTestInterfaceAttribute(WTF::getPtr(cppValue));
4823 } 4938 }
4824 4939
4825 static void testInterfaceAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4940 static void testInterfaceAttributeAttributeSetterCallback(const v8::FunctionCall backInfo<v8::Value>& info)
4826 { 4941 {
4942 v8::Local<v8::Value> v8Value = info[0];
4827 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4943 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4828 TestObjectV8Internal::testInterfaceAttributeAttributeSetter(v8Value, info); 4944 TestObjectV8Internal::testInterfaceAttributeAttributeSetter(v8Value, info);
4829 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4945 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4830 } 4946 }
4831 4947
4832 static void testInterfaceGarbageCollectedAttributeAttributeGetter(const v8::Prop ertyCallbackInfo<v8::Value>& info) 4948 static void testInterfaceGarbageCollectedAttributeAttributeGetter(const v8::Func tionCallbackInfo<v8::Value>& info)
4833 { 4949 {
4834 v8::Local<v8::Object> holder = info.Holder(); 4950 v8::Local<v8::Object> holder = info.Holder();
4835 TestObject* impl = V8TestObject::toImpl(holder); 4951 TestObject* impl = V8TestObject::toImpl(holder);
4836 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceGarbageCollectedAt tribute()), impl); 4952 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceGarbageCollectedAt tribute()), impl);
4837 } 4953 }
4838 4954
4839 static void testInterfaceGarbageCollectedAttributeAttributeGetterCallback(v8::Lo cal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 4955 static void testInterfaceGarbageCollectedAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
4840 { 4956 {
4841 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4957 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4842 TestObjectV8Internal::testInterfaceGarbageCollectedAttributeAttributeGetter( info); 4958 TestObjectV8Internal::testInterfaceGarbageCollectedAttributeAttributeGetter( info);
4843 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4959 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4844 } 4960 }
4845 4961
4846 static void testInterfaceGarbageCollectedAttributeAttributeSetter(v8::Local<v8:: Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4962 static void testInterfaceGarbageCollectedAttributeAttributeSetter(v8::Local<v8:: Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
4847 { 4963 {
4848 v8::Local<v8::Object> holder = info.Holder(); 4964 v8::Local<v8::Object> holder = info.Holder();
4849 TestObject* impl = V8TestObject::toImpl(holder); 4965 TestObject* impl = V8TestObject::toImpl(holder);
4850 TestInterfaceGarbageCollected* cppValue = V8TestInterfaceGarbageCollected::t oImplWithTypeCheck(info.GetIsolate(), v8Value); 4966 TestInterfaceGarbageCollected* cppValue = V8TestInterfaceGarbageCollected::t oImplWithTypeCheck(info.GetIsolate(), v8Value);
4851 impl->setTestInterfaceGarbageCollectedAttribute(WTF::getPtr(cppValue)); 4967 impl->setTestInterfaceGarbageCollectedAttribute(WTF::getPtr(cppValue));
4852 } 4968 }
4853 4969
4854 static void testInterfaceGarbageCollectedAttributeAttributeSetterCallback(v8::Lo cal<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<vo id>& info) 4970 static void testInterfaceGarbageCollectedAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
4855 { 4971 {
4972 v8::Local<v8::Value> v8Value = info[0];
4856 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4973 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4857 TestObjectV8Internal::testInterfaceGarbageCollectedAttributeAttributeSetter( v8Value, info); 4974 TestObjectV8Internal::testInterfaceGarbageCollectedAttributeAttributeSetter( v8Value, info);
4858 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4975 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4859 } 4976 }
4860 4977
4861 static void testInterfaceGarbageCollectedOrNullAttributeAttributeGetter(const v8 ::PropertyCallbackInfo<v8::Value>& info) 4978 static void testInterfaceGarbageCollectedOrNullAttributeAttributeGetter(const v8 ::FunctionCallbackInfo<v8::Value>& info)
4862 { 4979 {
4863 v8::Local<v8::Object> holder = info.Holder(); 4980 v8::Local<v8::Object> holder = info.Holder();
4864 TestObject* impl = V8TestObject::toImpl(holder); 4981 TestObject* impl = V8TestObject::toImpl(holder);
4865 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceGarbageCollectedOr NullAttribute()), impl); 4982 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceGarbageCollectedOr NullAttribute()), impl);
4866 } 4983 }
4867 4984
4868 static void testInterfaceGarbageCollectedOrNullAttributeAttributeGetterCallback( v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 4985 static void testInterfaceGarbageCollectedOrNullAttributeAttributeGetterCallback( const v8::FunctionCallbackInfo<v8::Value>& info)
4869 { 4986 {
4870 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4987 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4871 TestObjectV8Internal::testInterfaceGarbageCollectedOrNullAttributeAttributeG etter(info); 4988 TestObjectV8Internal::testInterfaceGarbageCollectedOrNullAttributeAttributeG etter(info);
4872 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4989 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4873 } 4990 }
4874 4991
4875 static void testInterfaceGarbageCollectedOrNullAttributeAttributeSetter(v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4992 static void testInterfaceGarbageCollectedOrNullAttributeAttributeSetter(v8::Loca l<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
4876 { 4993 {
4877 v8::Local<v8::Object> holder = info.Holder(); 4994 v8::Local<v8::Object> holder = info.Holder();
4878 TestObject* impl = V8TestObject::toImpl(holder); 4995 TestObject* impl = V8TestObject::toImpl(holder);
4879 TestInterfaceGarbageCollected* cppValue = V8TestInterfaceGarbageCollected::t oImplWithTypeCheck(info.GetIsolate(), v8Value); 4996 TestInterfaceGarbageCollected* cppValue = V8TestInterfaceGarbageCollected::t oImplWithTypeCheck(info.GetIsolate(), v8Value);
4880 impl->setTestInterfaceGarbageCollectedOrNullAttribute(WTF::getPtr(cppValue)) ; 4997 impl->setTestInterfaceGarbageCollectedOrNullAttribute(WTF::getPtr(cppValue)) ;
4881 } 4998 }
4882 4999
4883 static void testInterfaceGarbageCollectedOrNullAttributeAttributeSetterCallback( v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI nfo<void>& info) 5000 static void testInterfaceGarbageCollectedOrNullAttributeAttributeSetterCallback( const v8::FunctionCallbackInfo<v8::Value>& info)
4884 { 5001 {
5002 v8::Local<v8::Value> v8Value = info[0];
4885 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 5003 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4886 TestObjectV8Internal::testInterfaceGarbageCollectedOrNullAttributeAttributeS etter(v8Value, info); 5004 TestObjectV8Internal::testInterfaceGarbageCollectedOrNullAttributeAttributeS etter(v8Value, info);
4887 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5005 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4888 } 5006 }
4889 5007
4890 static void testInterfaceWillBeGarbageCollectedAttributeAttributeGetter(const v8 ::PropertyCallbackInfo<v8::Value>& info) 5008 static void testInterfaceWillBeGarbageCollectedAttributeAttributeGetter(const v8 ::FunctionCallbackInfo<v8::Value>& info)
4891 { 5009 {
4892 v8::Local<v8::Object> holder = info.Holder(); 5010 v8::Local<v8::Object> holder = info.Holder();
4893 TestObject* impl = V8TestObject::toImpl(holder); 5011 TestObject* impl = V8TestObject::toImpl(holder);
4894 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceWillBeGarbageColle ctedAttribute()), impl); 5012 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceWillBeGarbageColle ctedAttribute()), impl);
4895 } 5013 }
4896 5014
4897 static void testInterfaceWillBeGarbageCollectedAttributeAttributeGetterCallback( v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 5015 static void testInterfaceWillBeGarbageCollectedAttributeAttributeGetterCallback( const v8::FunctionCallbackInfo<v8::Value>& info)
4898 { 5016 {
4899 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 5017 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4900 TestObjectV8Internal::testInterfaceWillBeGarbageCollectedAttributeAttributeG etter(info); 5018 TestObjectV8Internal::testInterfaceWillBeGarbageCollectedAttributeAttributeG etter(info);
4901 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5019 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4902 } 5020 }
4903 5021
4904 static void testInterfaceWillBeGarbageCollectedAttributeAttributeSetter(v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 5022 static void testInterfaceWillBeGarbageCollectedAttributeAttributeSetter(v8::Loca l<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
4905 { 5023 {
4906 v8::Local<v8::Object> holder = info.Holder(); 5024 v8::Local<v8::Object> holder = info.Holder();
4907 TestObject* impl = V8TestObject::toImpl(holder); 5025 TestObject* impl = V8TestObject::toImpl(holder);
4908 TestInterfaceWillBeGarbageCollected* cppValue = V8TestInterfaceWillBeGarbage Collected::toImplWithTypeCheck(info.GetIsolate(), v8Value); 5026 TestInterfaceWillBeGarbageCollected* cppValue = V8TestInterfaceWillBeGarbage Collected::toImplWithTypeCheck(info.GetIsolate(), v8Value);
4909 impl->setTestInterfaceWillBeGarbageCollectedAttribute(WTF::getPtr(cppValue)) ; 5027 impl->setTestInterfaceWillBeGarbageCollectedAttribute(WTF::getPtr(cppValue)) ;
4910 } 5028 }
4911 5029
4912 static void testInterfaceWillBeGarbageCollectedAttributeAttributeSetterCallback( v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI nfo<void>& info) 5030 static void testInterfaceWillBeGarbageCollectedAttributeAttributeSetterCallback( const v8::FunctionCallbackInfo<v8::Value>& info)
4913 { 5031 {
5032 v8::Local<v8::Value> v8Value = info[0];
4914 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 5033 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4915 TestObjectV8Internal::testInterfaceWillBeGarbageCollectedAttributeAttributeS etter(v8Value, info); 5034 TestObjectV8Internal::testInterfaceWillBeGarbageCollectedAttributeAttributeS etter(v8Value, info);
4916 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5035 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4917 } 5036 }
4918 5037
4919 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeGetter(co nst v8::PropertyCallbackInfo<v8::Value>& info) 5038 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeGetter(co nst v8::FunctionCallbackInfo<v8::Value>& info)
4920 { 5039 {
4921 v8::Local<v8::Object> holder = info.Holder(); 5040 v8::Local<v8::Object> holder = info.Holder();
4922 TestObject* impl = V8TestObject::toImpl(holder); 5041 TestObject* impl = V8TestObject::toImpl(holder);
4923 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceWillBeGarbageColle ctedOrNullAttribute()), impl); 5042 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceWillBeGarbageColle ctedOrNullAttribute()), impl);
4924 } 5043 }
4925 5044
4926 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeGetterCal lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 5045 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeGetterCal lback(const v8::FunctionCallbackInfo<v8::Value>& info)
4927 { 5046 {
4928 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 5047 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4929 TestObjectV8Internal::testInterfaceWillBeGarbageCollectedOrNullAttributeAttr ibuteGetter(info); 5048 TestObjectV8Internal::testInterfaceWillBeGarbageCollectedOrNullAttributeAttr ibuteGetter(info);
4930 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5049 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4931 } 5050 }
4932 5051
4933 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 5052 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
4934 { 5053 {
4935 v8::Local<v8::Object> holder = info.Holder(); 5054 v8::Local<v8::Object> holder = info.Holder();
4936 TestObject* impl = V8TestObject::toImpl(holder); 5055 TestObject* impl = V8TestObject::toImpl(holder);
4937 TestInterfaceWillBeGarbageCollected* cppValue = V8TestInterfaceWillBeGarbage Collected::toImplWithTypeCheck(info.GetIsolate(), v8Value); 5056 TestInterfaceWillBeGarbageCollected* cppValue = V8TestInterfaceWillBeGarbage Collected::toImplWithTypeCheck(info.GetIsolate(), v8Value);
4938 impl->setTestInterfaceWillBeGarbageCollectedOrNullAttribute(WTF::getPtr(cppV alue)); 5057 impl->setTestInterfaceWillBeGarbageCollectedOrNullAttribute(WTF::getPtr(cppV alue));
4939 } 5058 }
4940 5059
4941 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeSetterCal lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal lbackInfo<void>& info) 5060 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeSetterCal lback(const v8::FunctionCallbackInfo<v8::Value>& info)
4942 { 5061 {
5062 v8::Local<v8::Value> v8Value = info[0];
4943 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 5063 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4944 TestObjectV8Internal::testInterfaceWillBeGarbageCollectedOrNullAttributeAttr ibuteSetter(v8Value, info); 5064 TestObjectV8Internal::testInterfaceWillBeGarbageCollectedOrNullAttributeAttr ibuteSetter(v8Value, info);
4945 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5065 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4946 } 5066 }
4947 5067
4948 static void readonlyShortAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info) 5068 static void readonlyShortAttributeAttributeGetter(const v8::FunctionCallbackInfo <v8::Value>& info)
4949 { 5069 {
4950 v8::Local<v8::Object> holder = info.Holder(); 5070 v8::Local<v8::Object> holder = info.Holder();
4951 TestObject* impl = V8TestObject::toImpl(holder); 5071 TestObject* impl = V8TestObject::toImpl(holder);
4952 int result = 0; 5072 int result = 0;
4953 if (!V8TestObject::PrivateScript::readonlyShortAttributeAttributeGetter(toLo calFrame(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, &r esult)) 5073 if (!V8TestObject::PrivateScript::readonlyShortAttributeAttributeGetter(toLo calFrame(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, &r esult))
4954 return; 5074 return;
4955 v8SetReturnValueInt(info, result); 5075 v8SetReturnValueInt(info, result);
4956 } 5076 }
4957 5077
4958 static void readonlyShortAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 5078 static void readonlyShortAttributeAttributeGetterCallback(const v8::FunctionCall backInfo<v8::Value>& info)
4959 { 5079 {
4960 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 5080 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4961 TestObjectV8Internal::readonlyShortAttributeAttributeGetter(info); 5081 TestObjectV8Internal::readonlyShortAttributeAttributeGetter(info);
4962 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5082 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4963 } 5083 }
4964 5084
4965 static void shortAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val ue>& info) 5085 static void shortAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Val ue>& info)
4966 { 5086 {
4967 v8::Local<v8::Object> holder = info.Holder(); 5087 v8::Local<v8::Object> holder = info.Holder();
4968 TestObject* impl = V8TestObject::toImpl(holder); 5088 TestObject* impl = V8TestObject::toImpl(holder);
4969 int result = 0; 5089 int result = 0;
4970 if (!V8TestObject::PrivateScript::shortAttributeAttributeGetter(toLocalFrame (toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, &result)) 5090 if (!V8TestObject::PrivateScript::shortAttributeAttributeGetter(toLocalFrame (toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, &result))
4971 return; 5091 return;
4972 v8SetReturnValueInt(info, result); 5092 v8SetReturnValueInt(info, result);
4973 } 5093 }
4974 5094
4975 static void shortAttributeAttributeGetterCallback(v8::Local<v8::String>, const v 8::PropertyCallbackInfo<v8::Value>& info) 5095 static void shortAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
4976 { 5096 {
4977 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 5097 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4978 TestObjectV8Internal::shortAttributeAttributeGetter(info); 5098 TestObjectV8Internal::shortAttributeAttributeGetter(info);
4979 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5099 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4980 } 5100 }
4981 5101
4982 static void shortAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::PropertyCallbackInfo<void>& info) 5102 static void shortAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::FunctionCallbackInfo<v8::Value>& info)
4983 { 5103 {
4984 v8::Local<v8::Object> holder = info.Holder(); 5104 v8::Local<v8::Object> holder = info.Holder();
4985 ExceptionState exceptionState(ExceptionState::SetterContext, "shortAttribute ", "TestObject", holder, info.GetIsolate()); 5105 ExceptionState exceptionState(ExceptionState::SetterContext, "shortAttribute ", "TestObject", holder, info.GetIsolate());
4986 TestObject* impl = V8TestObject::toImpl(holder); 5106 TestObject* impl = V8TestObject::toImpl(holder);
4987 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt16(v8Value, exceptionState) , exceptionState); 5107 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt16(v8Value, exceptionState) , exceptionState);
4988 V8TestObject::PrivateScript::shortAttributeAttributeSetter(toLocalFrame(toFr ameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, cppValue); 5108 V8TestObject::PrivateScript::shortAttributeAttributeSetter(toLocalFrame(toFr ameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, cppValue);
4989 } 5109 }
4990 5110
4991 static void shortAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 5111 static void shortAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
4992 { 5112 {
5113 v8::Local<v8::Value> v8Value = info[0];
4993 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 5114 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4994 TestObjectV8Internal::shortAttributeAttributeSetter(v8Value, info); 5115 TestObjectV8Internal::shortAttributeAttributeSetter(v8Value, info);
4995 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5116 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4996 } 5117 }
4997 5118
4998 static void stringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va lue>& info) 5119 static void stringAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Va lue>& info)
4999 { 5120 {
5000 v8::Local<v8::Object> holder = info.Holder(); 5121 v8::Local<v8::Object> holder = info.Holder();
5001 TestObject* impl = V8TestObject::toImpl(holder); 5122 TestObject* impl = V8TestObject::toImpl(holder);
5002 String result; 5123 String result;
5003 if (!V8TestObject::PrivateScript::stringAttributeAttributeGetter(toLocalFram e(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, &result)) 5124 if (!V8TestObject::PrivateScript::stringAttributeAttributeGetter(toLocalFram e(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, &result))
5004 return; 5125 return;
5005 v8SetReturnValueString(info, result, info.GetIsolate()); 5126 v8SetReturnValueString(info, result, info.GetIsolate());
5006 } 5127 }
5007 5128
5008 static void stringAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 5129 static void stringAttributeAttributeGetterCallback(const v8::FunctionCallbackInf o<v8::Value>& info)
5009 { 5130 {
5010 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 5131 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
5011 TestObjectV8Internal::stringAttributeAttributeGetter(info); 5132 TestObjectV8Internal::stringAttributeAttributeGetter(info);
5012 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5133 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5013 } 5134 }
5014 5135
5015 static void stringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v 8::PropertyCallbackInfo<void>& info) 5136 static void stringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v 8::FunctionCallbackInfo<v8::Value>& info)
5016 { 5137 {
5017 v8::Local<v8::Object> holder = info.Holder(); 5138 v8::Local<v8::Object> holder = info.Holder();
5018 TestObject* impl = V8TestObject::toImpl(holder); 5139 TestObject* impl = V8TestObject::toImpl(holder);
5019 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 5140 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
5020 V8TestObject::PrivateScript::stringAttributeAttributeSetter(toLocalFrame(toF rameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, cppValue); 5141 V8TestObject::PrivateScript::stringAttributeAttributeSetter(toLocalFrame(toF rameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, cppValue);
5021 } 5142 }
5022 5143
5023 static void stringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 5144 static void stringAttributeAttributeSetterCallback(const v8::FunctionCallbackInf o<v8::Value>& info)
5024 { 5145 {
5146 v8::Local<v8::Value> v8Value = info[0];
5025 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 5147 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
5026 TestObjectV8Internal::stringAttributeAttributeSetter(v8Value, info); 5148 TestObjectV8Internal::stringAttributeAttributeSetter(v8Value, info);
5027 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5149 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5028 } 5150 }
5029 5151
5030 static void nodeAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu e>& info) 5152 static void nodeAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Valu e>& info)
5031 { 5153 {
5032 v8::Local<v8::Object> holder = info.Holder(); 5154 v8::Local<v8::Object> holder = info.Holder();
5033 TestObject* impl = V8TestObject::toImpl(holder); 5155 TestObject* impl = V8TestObject::toImpl(holder);
5034 RefPtrWillBeRawPtr<Node> result = nullptr; 5156 RefPtrWillBeRawPtr<Node> result = nullptr;
5035 if (!V8TestObject::PrivateScript::nodeAttributeAttributeGetter(toLocalFrame( toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, &result)) 5157 if (!V8TestObject::PrivateScript::nodeAttributeAttributeGetter(toLocalFrame( toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, &result))
5036 return; 5158 return;
5037 v8SetReturnValueFast(info, WTF::getPtr(result.release()), impl); 5159 v8SetReturnValueFast(info, WTF::getPtr(result.release()), impl);
5038 } 5160 }
5039 5161
5040 static void nodeAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8 ::PropertyCallbackInfo<v8::Value>& info) 5162 static void nodeAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo< v8::Value>& info)
5041 { 5163 {
5042 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 5164 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
5043 TestObjectV8Internal::nodeAttributeAttributeGetter(info); 5165 TestObjectV8Internal::nodeAttributeAttributeGetter(info);
5044 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5166 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5045 } 5167 }
5046 5168
5047 static void nodeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info) 5169 static void nodeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :FunctionCallbackInfo<v8::Value>& info)
5048 { 5170 {
5049 v8::Local<v8::Object> holder = info.Holder(); 5171 v8::Local<v8::Object> holder = info.Holder();
5050 TestObject* impl = V8TestObject::toImpl(holder); 5172 TestObject* impl = V8TestObject::toImpl(holder);
5051 Node* cppValue = V8Node::toImplWithTypeCheck(info.GetIsolate(), v8Value); 5173 Node* cppValue = V8Node::toImplWithTypeCheck(info.GetIsolate(), v8Value);
5052 V8TestObject::PrivateScript::nodeAttributeAttributeSetter(toLocalFrame(toFra meIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, cppValue); 5174 V8TestObject::PrivateScript::nodeAttributeAttributeSetter(toLocalFrame(toFra meIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, cppValue);
5053 } 5175 }
5054 5176
5055 static void nodeAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 5177 static void nodeAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo< v8::Value>& info)
5056 { 5178 {
5179 v8::Local<v8::Value> v8Value = info[0];
5057 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 5180 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
5058 TestObjectV8Internal::nodeAttributeAttributeSetter(v8Value, info); 5181 TestObjectV8Internal::nodeAttributeAttributeSetter(v8Value, info);
5059 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5182 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5060 } 5183 }
5061 5184
5062 static void attributeImplementedInCPPForPrivateScriptOnlyAttributeGetter(const v 8::PropertyCallbackInfo<v8::Value>& info) 5185 static void attributeImplementedInCPPForPrivateScriptOnlyAttributeGetter(const v 8::FunctionCallbackInfo<v8::Value>& info)
5063 { 5186 {
5064 v8::Local<v8::Object> holder = info.Holder(); 5187 v8::Local<v8::Object> holder = info.Holder();
5065 TestObject* impl = V8TestObject::toImpl(holder); 5188 TestObject* impl = V8TestObject::toImpl(holder);
5066 v8SetReturnValueString(info, impl->attributeImplementedInCPPForPrivateScript Only(), info.GetIsolate()); 5189 v8SetReturnValueString(info, impl->attributeImplementedInCPPForPrivateScript Only(), info.GetIsolate());
5067 } 5190 }
5068 5191
5069 static void attributeImplementedInCPPForPrivateScriptOnlyAttributeGetterCallback (v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 5192 static void attributeImplementedInCPPForPrivateScriptOnlyAttributeGetterCallback (const v8::FunctionCallbackInfo<v8::Value>& info)
5070 { 5193 {
5071 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 5194 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
5072 TestObjectV8Internal::attributeImplementedInCPPForPrivateScriptOnlyAttribute Getter(info); 5195 TestObjectV8Internal::attributeImplementedInCPPForPrivateScriptOnlyAttribute Getter(info);
5073 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5196 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5074 } 5197 }
5075 5198
5076 static void attributeImplementedInCPPForPrivateScriptOnlyAttributeSetter(v8::Loc al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 5199 static void attributeImplementedInCPPForPrivateScriptOnlyAttributeSetter(v8::Loc al<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
5077 { 5200 {
5078 v8::Local<v8::Object> holder = info.Holder(); 5201 v8::Local<v8::Object> holder = info.Holder();
5079 TestObject* impl = V8TestObject::toImpl(holder); 5202 TestObject* impl = V8TestObject::toImpl(holder);
5080 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 5203 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
5081 impl->setAttributeImplementedInCPPForPrivateScriptOnly(cppValue); 5204 impl->setAttributeImplementedInCPPForPrivateScriptOnly(cppValue);
5082 } 5205 }
5083 5206
5084 static void attributeImplementedInCPPForPrivateScriptOnlyAttributeSetterCallback (v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallback Info<void>& info) 5207 static void attributeImplementedInCPPForPrivateScriptOnlyAttributeSetterCallback (const v8::FunctionCallbackInfo<v8::Value>& info)
5085 { 5208 {
5209 v8::Local<v8::Value> v8Value = info[0];
5086 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 5210 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
5087 TestObjectV8Internal::attributeImplementedInCPPForPrivateScriptOnlyAttribute Setter(v8Value, info); 5211 TestObjectV8Internal::attributeImplementedInCPPForPrivateScriptOnlyAttribute Setter(v8Value, info);
5088 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5212 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5089 } 5213 }
5090 5214
5091 static void enumForPrivateScriptAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info) 5215 static void enumForPrivateScriptAttributeGetter(const v8::FunctionCallbackInfo<v 8::Value>& info)
5092 { 5216 {
5093 v8::Local<v8::Object> holder = info.Holder(); 5217 v8::Local<v8::Object> holder = info.Holder();
5094 TestObject* impl = V8TestObject::toImpl(holder); 5218 TestObject* impl = V8TestObject::toImpl(holder);
5095 String result; 5219 String result;
5096 if (!V8TestObject::PrivateScript::enumForPrivateScriptAttributeGetter(toLoca lFrame(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, &res ult)) 5220 if (!V8TestObject::PrivateScript::enumForPrivateScriptAttributeGetter(toLoca lFrame(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, &res ult))
5097 return; 5221 return;
5098 v8SetReturnValueString(info, result, info.GetIsolate()); 5222 v8SetReturnValueString(info, result, info.GetIsolate());
5099 } 5223 }
5100 5224
5101 static void enumForPrivateScriptAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info) 5225 static void enumForPrivateScriptAttributeGetterCallback(const v8::FunctionCallba ckInfo<v8::Value>& info)
5102 { 5226 {
5103 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 5227 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
5104 TestObjectV8Internal::enumForPrivateScriptAttributeGetter(info); 5228 TestObjectV8Internal::enumForPrivateScriptAttributeGetter(info);
5105 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5229 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5106 } 5230 }
5107 5231
5108 static void enumForPrivateScriptAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& info) 5232 static void enumForPrivateScriptAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::FunctionCallbackInfo<v8::Value>& info)
5109 { 5233 {
5110 v8::Local<v8::Object> holder = info.Holder(); 5234 v8::Local<v8::Object> holder = info.Holder();
5111 TestObject* impl = V8TestObject::toImpl(holder); 5235 TestObject* impl = V8TestObject::toImpl(holder);
5112 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 5236 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
5113 String string = cppValue; 5237 String string = cppValue;
5114 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || st ring == "EnumValue3")) 5238 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || st ring == "EnumValue3"))
5115 return; 5239 return;
5116 V8TestObject::PrivateScript::enumForPrivateScriptAttributeSetter(toLocalFram e(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, cppValue) ; 5240 V8TestObject::PrivateScript::enumForPrivateScriptAttributeSetter(toLocalFram e(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, cppValue) ;
5117 } 5241 }
5118 5242
5119 static void enumForPrivateScriptAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 5243 static void enumForPrivateScriptAttributeSetterCallback(const v8::FunctionCallba ckInfo<v8::Value>& info)
5120 { 5244 {
5245 v8::Local<v8::Value> v8Value = info[0];
5121 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 5246 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
5122 TestObjectV8Internal::enumForPrivateScriptAttributeSetter(v8Value, info); 5247 TestObjectV8Internal::enumForPrivateScriptAttributeSetter(v8Value, info);
5123 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5248 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5124 } 5249 }
5125 5250
5126 static void TestObjectConstructorGetter(v8::Local<v8::String>, const v8::Propert yCallbackInfo<v8::Value>& info) 5251 static void TestObjectConstructorGetter(v8::Local<v8::String>, const v8::Propert yCallbackInfo<v8::Value>& info)
5127 { 5252 {
5128 v8::Local<v8::Value> data = info.Data(); 5253 v8::Local<v8::Value> data = info.Data();
5129 ASSERT(data->IsExternal()); 5254 ASSERT(data->IsExternal());
5130 V8PerContextData* perContextData = V8PerContextData::from(info.Holder()->Cre ationContext()); 5255 V8PerContextData* perContextData = V8PerContextData::from(info.Holder()->Cre ationContext());
(...skipping 5718 matching lines...) Expand 10 before | Expand all | Expand 10 after
10849 static void iteratorMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in fo) 10974 static void iteratorMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in fo)
10850 { 10975 {
10851 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 10976 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
10852 TestObjectV8Internal::iteratorMethod(info); 10977 TestObjectV8Internal::iteratorMethod(info);
10853 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 10978 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
10854 } 10979 }
10855 10980
10856 } // namespace TestObjectV8Internal 10981 } // namespace TestObjectV8Internal
10857 10982
10858 static const V8DOMConfiguration::AttributeConfiguration V8TestObjectAttributes[] = { 10983 static const V8DOMConfiguration::AttributeConfiguration V8TestObjectAttributes[] = {
10859 {"stringifierAttribute", TestObjectV8Internal::stringifierAttributeAttribute GetterCallback, TestObjectV8Internal::stringifierAttributeAttributeSetterCallbac k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert yAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigurati on::OnInstance},
10860 {"readonlyStringAttribute", TestObjectV8Internal::readonlyStringAttributeAtt ributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), s tatic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScr ipts, V8DOMConfiguration::OnInstance},
10861 {"readonlyTestInterfaceEmptyAttribute", TestObjectV8Internal::readonlyTestIn terfaceEmptyAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::Access Control>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfig uration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
10862 {"readonlyLongAttribute", TestObjectV8Internal::readonlyLongAttributeAttribu teGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati c_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts , V8DOMConfiguration::OnInstance},
10863 {"dateAttribute", TestObjectV8Internal::dateAttributeAttributeGetterCallback , TestObjectV8Internal::dateAttributeAttributeSetterCallback, 0, 0, 0, static_ca st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None) , V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
10864 {"stringAttribute", TestObjectV8Internal::stringAttributeAttributeGetterCall back, TestObjectV8Internal::stringAttributeAttributeSetterCallback, 0, 0, 0, sta tic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8: :None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance} ,
10865 {"byteStringAttribute", TestObjectV8Internal::byteStringAttributeAttributeGe tterCallback, TestObjectV8Internal::byteStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration: :OnInstance},
10866 {"usvStringAttribute", TestObjectV8Internal::usvStringAttributeAttributeGett erCallback, TestObjectV8Internal::usvStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri bute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::On Instance},
10867 {"domTimeStampAttribute", TestObjectV8Internal::domTimeStampAttributeAttribu teGetterCallback, TestObjectV8Internal::domTimeStampAttributeAttributeSetterCall back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop ertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigur ation::OnInstance},
10868 {"booleanAttribute", TestObjectV8Internal::booleanAttributeAttributeGetterCa llback, TestObjectV8Internal::booleanAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>( v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstan ce},
10869 {"byteAttribute", TestObjectV8Internal::byteAttributeAttributeGetterCallback , TestObjectV8Internal::byteAttributeAttributeSetterCallback, 0, 0, 0, static_ca st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None) , V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
10870 {"doubleAttribute", TestObjectV8Internal::doubleAttributeAttributeGetterCall back, TestObjectV8Internal::doubleAttributeAttributeSetterCallback, 0, 0, 0, sta tic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8: :None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance} ,
10871 {"floatAttribute", TestObjectV8Internal::floatAttributeAttributeGetterCallba ck, TestObjectV8Internal::floatAttributeAttributeSetterCallback, 0, 0, 0, static _cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No ne), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
10872 {"longAttribute", TestObjectV8Internal::longAttributeAttributeGetterCallback , TestObjectV8Internal::longAttributeAttributeSetterCallback, 0, 0, 0, static_ca st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None) , V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
10873 {"longLongAttribute", TestObjectV8Internal::longLongAttributeAttributeGetter Callback, TestObjectV8Internal::longLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribut e>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnIns tance},
10874 {"octetAttribute", TestObjectV8Internal::octetAttributeAttributeGetterCallba ck, TestObjectV8Internal::octetAttributeAttributeSetterCallback, 0, 0, 0, static _cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No ne), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
10875 {"shortAttribute", TestObjectV8Internal::shortAttributeAttributeGetterCallba ck, TestObjectV8Internal::shortAttributeAttributeSetterCallback, 0, 0, 0, static _cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No ne), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
10876 {"unrestrictedDoubleAttribute", TestObjectV8Internal::unrestrictedDoubleAttr ibuteAttributeGetterCallback, TestObjectV8Internal::unrestrictedDoubleAttributeA ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st atic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScri pts, V8DOMConfiguration::OnInstance},
10877 {"unrestrictedFloatAttribute", TestObjectV8Internal::unrestrictedFloatAttrib uteAttributeGetterCallback, TestObjectV8Internal::unrestrictedFloatAttributeAttr ibuteSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati c_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts , V8DOMConfiguration::OnInstance},
10878 {"unsignedLongAttribute", TestObjectV8Internal::unsignedLongAttributeAttribu teGetterCallback, TestObjectV8Internal::unsignedLongAttributeAttributeSetterCall back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop ertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigur ation::OnInstance},
10879 {"unsignedLongLongAttribute", TestObjectV8Internal::unsignedLongLongAttribut eAttributeGetterCallback, TestObjectV8Internal::unsignedLongLongAttributeAttribu teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c ast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V 8DOMConfiguration::OnInstance},
10880 {"unsignedShortAttribute", TestObjectV8Internal::unsignedShortAttributeAttri buteGetterCallback, TestObjectV8Internal::unsignedShortAttributeAttributeSetterC allback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P ropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfi guration::OnInstance},
10881 {"testInterfaceEmptyAttribute", TestObjectV8Internal::testInterfaceEmptyAttr ibuteAttributeGetterCallback, TestObjectV8Internal::testInterfaceEmptyAttributeA ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st atic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScri pts, V8DOMConfiguration::OnInstance},
10882 {"testObjectAttribute", TestObjectV8Internal::testObjectAttributeAttributeGe tterCallback, TestObjectV8Internal::testObjectAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration: :OnInstance},
10883 {"voidCallbackFunctionAttribute", TestObjectV8Internal::voidCallbackFunction AttributeAttributeGetterCallback, TestObjectV8Internal::voidCallbackFunctionAttr ibuteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAUL T), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToA llScripts, V8DOMConfiguration::OnInstance},
10884 {"anyCallbackFunctionOptionalAnyArgAttribute", TestObjectV8Internal::anyCall backFunctionOptionalAnyArgAttributeAttributeGetterCallback, TestObjectV8Internal ::anyCallbackFunctionOptionalAnyArgAttributeAttributeSetterCallback, 0, 0, 0, st atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8 ::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance },
10885 {"cssAttribute", TestObjectV8Internal::cssAttributeAttributeGetterCallback, TestObjectV8Internal::cssAttributeAttributeSetterCallback, 0, 0, 0, static_cast< v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V 8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
10886 {"imeAttribute", TestObjectV8Internal::imeAttributeAttributeGetterCallback, TestObjectV8Internal::imeAttributeAttributeSetterCallback, 0, 0, 0, static_cast< v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V 8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
10887 {"svgAttribute", TestObjectV8Internal::svgAttributeAttributeGetterCallback, TestObjectV8Internal::svgAttributeAttributeSetterCallback, 0, 0, 0, static_cast< v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V 8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
10888 {"xmlAttribute", TestObjectV8Internal::xmlAttributeAttributeGetterCallback, TestObjectV8Internal::xmlAttributeAttributeSetterCallback, 0, 0, 0, static_cast< v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V 8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
10889 {"nodeFilterAttribute", TestObjectV8Internal::nodeFilterAttributeAttributeGe tterCallback, TestObjectV8Internal::nodeFilterAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration: :OnInstance},
10890 {"serializedScriptValueAttribute", TestObjectV8Internal::serializedScriptVal ueAttributeAttributeGetterCallback, TestObjectV8Internal::serializedScriptValueA ttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEF AULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Exposed ToAllScripts, V8DOMConfiguration::OnInstance},
10891 {"anyAttribute", TestObjectV8Internal::anyAttributeAttributeGetterCallback, TestObjectV8Internal::anyAttributeAttributeSetterCallback, 0, 0, 0, static_cast< v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V 8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
10892 {"promiseAttribute", TestObjectV8Internal::promiseAttributeAttributeGetterCa llback, TestObjectV8Internal::promiseAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>( v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstan ce},
10893 {"windowAttribute", TestObjectV8Internal::windowAttributeAttributeGetterCall back, TestObjectV8Internal::windowAttributeAttributeSetterCallback, 0, 0, 0, sta tic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8: :None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance} ,
10894 {"documentAttribute", TestObjectV8Internal::documentAttributeAttributeGetter Callback, TestObjectV8Internal::documentAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribut e>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnIns tance},
10895 {"documentFragmentAttribute", TestObjectV8Internal::documentFragmentAttribut eAttributeGetterCallback, TestObjectV8Internal::documentFragmentAttributeAttribu teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c ast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V 8DOMConfiguration::OnInstance},
10896 {"documentTypeAttribute", TestObjectV8Internal::documentTypeAttributeAttribu teGetterCallback, TestObjectV8Internal::documentTypeAttributeAttributeSetterCall back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop ertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigur ation::OnInstance},
10897 {"elementAttribute", TestObjectV8Internal::elementAttributeAttributeGetterCa llback, TestObjectV8Internal::elementAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>( v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstan ce},
10898 {"nodeAttribute", TestObjectV8Internal::nodeAttributeAttributeGetterCallback , TestObjectV8Internal::nodeAttributeAttributeSetterCallback, 0, 0, 0, static_ca st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None) , V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
10899 {"shadowRootAttribute", TestObjectV8Internal::shadowRootAttributeAttributeGe tterCallback, TestObjectV8Internal::shadowRootAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration: :OnInstance},
10900 {"arrayBufferAttribute", TestObjectV8Internal::arrayBufferAttributeAttribute GetterCallback, TestObjectV8Internal::arrayBufferAttributeAttributeSetterCallbac k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert yAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigurati on::OnInstance},
10901 {"float32ArrayAttribute", TestObjectV8Internal::float32ArrayAttributeAttribu teGetterCallback, TestObjectV8Internal::float32ArrayAttributeAttributeSetterCall back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop ertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigur ation::OnInstance},
10902 {"uint8ArrayAttribute", TestObjectV8Internal::uint8ArrayAttributeAttributeGe tterCallback, TestObjectV8Internal::uint8ArrayAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration: :OnInstance},
10903 {"self", TestObjectV8Internal::selfAttributeGetterCallback, 0, 0, 0, 0, stat ic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8:: None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
10904 {"readonlyEventTargetAttribute", TestObjectV8Internal::readonlyEventTargetAt tributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::D EFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Expos edToAllScripts, V8DOMConfiguration::OnInstance},
10905 {"readonlyEventTargetOrNullAttribute", TestObjectV8Internal::readonlyEventTa rgetOrNullAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessCo ntrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigur ation::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
10906 {"readonlyWindowAttribute", TestObjectV8Internal::readonlyWindowAttributeAtt ributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), s tatic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScr ipts, V8DOMConfiguration::OnInstance},
10907 {"htmlCollectionAttribute", TestObjectV8Internal::htmlCollectionAttributeAtt ributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), s tatic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScr ipts, V8DOMConfiguration::OnInstance},
10908 {"htmlElementAttribute", TestObjectV8Internal::htmlElementAttributeAttribute GetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_ cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
10909 {"stringArrayAttribute", TestObjectV8Internal::stringArrayAttributeAttribute GetterCallback, TestObjectV8Internal::stringArrayAttributeAttributeSetterCallbac k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert yAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigurati on::OnInstance},
10910 {"testInterfaceEmptyArrayAttribute", TestObjectV8Internal::testInterfaceEmpt yArrayAttributeAttributeGetterCallback, TestObjectV8Internal::testInterfaceEmpty ArrayAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v 8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::E xposedToAllScripts, V8DOMConfiguration::OnInstance},
10911 {"floatArrayAttribute", TestObjectV8Internal::floatArrayAttributeAttributeGe tterCallback, TestObjectV8Internal::floatArrayAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration: :OnInstance},
10912 {"stringOrNullAttribute", TestObjectV8Internal::stringOrNullAttributeAttribu teGetterCallback, TestObjectV8Internal::stringOrNullAttributeAttributeSetterCall back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop ertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigur ation::OnInstance},
10913 {"longOrNullAttribute", TestObjectV8Internal::longOrNullAttributeAttributeGe tterCallback, TestObjectV8Internal::longOrNullAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration: :OnInstance},
10914 {"testInterfaceOrNullAttribute", TestObjectV8Internal::testInterfaceOrNullAt tributeAttributeGetterCallback, TestObjectV8Internal::testInterfaceOrNullAttribu teAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllS cripts, V8DOMConfiguration::OnInstance},
10915 {"testEnumAttribute", TestObjectV8Internal::testEnumAttributeAttributeGetter Callback, TestObjectV8Internal::testEnumAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribut e>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnIns tance},
10916 {"eventHandlerAttribute", TestObjectV8Internal::eventHandlerAttributeAttribu teGetterCallback, TestObjectV8Internal::eventHandlerAttributeAttributeSetterCall back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop ertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigur ation::OnInstance}, 10984 {"eventHandlerAttribute", TestObjectV8Internal::eventHandlerAttributeAttribu teGetterCallback, TestObjectV8Internal::eventHandlerAttributeAttributeSetterCall back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop ertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigur ation::OnInstance},
10917 {"doubleOrStringAttribute", TestObjectV8Internal::doubleOrStringAttributeAtt ributeGetterCallback, TestObjectV8Internal::doubleOrStringAttributeAttributeSett erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8 ::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMCo nfiguration::OnInstance},
10918 {"doubleOrStringOrNullAttribute", TestObjectV8Internal::doubleOrStringOrNull AttributeAttributeGetterCallback, TestObjectV8Internal::doubleOrStringOrNullAttr ibuteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAUL T), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToA llScripts, V8DOMConfiguration::OnInstance},
10919 {"doubleOrNullStringAttribute", TestObjectV8Internal::doubleOrNullStringAttr ibuteAttributeGetterCallback, TestObjectV8Internal::doubleOrNullStringAttributeA ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st atic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScri pts, V8DOMConfiguration::OnInstance},
10920 {"stringOrStringSequenceAttribute", TestObjectV8Internal::stringOrStringSequ enceAttributeAttributeGetterCallback, TestObjectV8Internal::stringOrStringSequen ceAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8:: DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Expo sedToAllScripts, V8DOMConfiguration::OnInstance},
10921 {"testEnumOrDoubleAttribute", TestObjectV8Internal::testEnumOrDoubleAttribut eAttributeGetterCallback, TestObjectV8Internal::testEnumOrDoubleAttributeAttribu teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c ast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V 8DOMConfiguration::OnInstance},
10922 {"unrestrictedDoubleOrStringAttribute", TestObjectV8Internal::unrestrictedDo ubleOrStringAttributeAttributeGetterCallback, TestObjectV8Internal::unrestricted DoubleOrStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessC ontrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigu ration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
10923 {"activityLoggingAccessForAllWorldsLongAttribute", TestObjectV8Internal::act ivityLoggingAccessForAllWorldsLongAttributeAttributeGetterCallback, TestObjectV8 Internal::activityLoggingAccessForAllWorldsLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyA ttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration ::OnInstance},
10924 {"activityLoggingGetterForAllWorldsLongAttribute", TestObjectV8Internal::act ivityLoggingGetterForAllWorldsLongAttributeAttributeGetterCallback, TestObjectV8 Internal::activityLoggingGetterForAllWorldsLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyA ttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration ::OnInstance},
10925 {"activityLoggingSetterForAllWorldsLongAttribute", TestObjectV8Internal::act ivityLoggingSetterForAllWorldsLongAttributeAttributeGetterCallback, TestObjectV8 Internal::activityLoggingSetterForAllWorldsLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyA ttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration ::OnInstance},
10926 {"cachedAttributeAnyAttribute", TestObjectV8Internal::cachedAttributeAnyAttr ibuteAttributeGetterCallback, TestObjectV8Internal::cachedAttributeAnyAttributeA ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st atic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScri pts, V8DOMConfiguration::OnInstance},
10927 {"cachedArrayAttribute", TestObjectV8Internal::cachedArrayAttributeAttribute GetterCallback, TestObjectV8Internal::cachedArrayAttributeAttributeSetterCallbac k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert yAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigurati on::OnInstance},
10928 {"cachedStringOrNoneAttribute", TestObjectV8Internal::cachedStringOrNoneAttr ibuteAttributeGetterCallback, TestObjectV8Internal::cachedStringOrNoneAttributeA ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st atic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScri pts, V8DOMConfiguration::OnInstance},
10929 {"callWithExecutionContextAnyAttribute", TestObjectV8Internal::callWithExecu tionContextAnyAttributeAttributeGetterCallback, TestObjectV8Internal::callWithEx ecutionContextAnyAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Acce ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConf iguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
10930 {"callWithScriptStateAnyAttribute", TestObjectV8Internal::callWithScriptStat eAnyAttributeAttributeGetterCallback, TestObjectV8Internal::callWithScriptStateA nyAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8:: DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Expo sedToAllScripts, V8DOMConfiguration::OnInstance},
10931 {"callWithExecutionContextAndScriptStateAnyAttribute", TestObjectV8Internal: :callWithExecutionContextAndScriptStateAnyAttributeAttributeGetterCallback, Test ObjectV8Internal::callWithExecutionContextAndScriptStateAnyAttributeAttributeSet terCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v 8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMC onfiguration::OnInstance},
10932 {"checkSecurityForNodeReadonlyDocumentAttribute", TestObjectV8Internal::chec kSecurityForNodeReadonlyDocumentAttributeAttributeGetterCallback, 0, 0, 0, 0, st atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8 ::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance },
10933 #if ENABLE(CONDITION)
10934 {"conditionalLongAttribute", TestObjectV8Internal::conditionalLongAttributeA ttributeGetterCallback, TestObjectV8Internal::conditionalLongAttributeAttributeS etterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast <v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DO MConfiguration::OnInstance},
10935 #endif // ENABLE(CONDITION)
10936 {"testInterfaceEmptyConstructorAttribute", TestObjectV8Internal::TestObjectC onstructorGetter, TestObjectV8Internal::TestObjectForceSetAttributeOnThisCallbac k, 0, 0, const_cast<WrapperTypeInfo*>(&V8TestInterfaceEmpty::wrapperTypeInfo), s tatic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v 8::DontEnum), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnIns tance}, 10985 {"testInterfaceEmptyConstructorAttribute", TestObjectV8Internal::TestObjectC onstructorGetter, TestObjectV8Internal::TestObjectForceSetAttributeOnThisCallbac k, 0, 0, const_cast<WrapperTypeInfo*>(&V8TestInterfaceEmpty::wrapperTypeInfo), s tatic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v 8::DontEnum), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnIns tance},
10937 {"testInterfaceEmptyConstructorAttribute", TestObjectV8Internal::testInterfa ceEmptyConstructorAttributeConstructorGetterCallback, TestObjectV8Internal::Test ObjectForceSetAttributeOnThisCallback, 0, 0, const_cast<WrapperTypeInfo*>(&V8Tes tInterfaceEmpty::wrapperTypeInfo), static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfiguration::ExposedToA llScripts, V8DOMConfiguration::OnInstance}, 10986 {"testInterfaceEmptyConstructorAttribute", TestObjectV8Internal::testInterfa ceEmptyConstructorAttributeConstructorGetterCallback, TestObjectV8Internal::Test ObjectForceSetAttributeOnThisCallback, 0, 0, const_cast<WrapperTypeInfo*>(&V8Tes tInterfaceEmpty::wrapperTypeInfo), static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfiguration::ExposedToA llScripts, V8DOMConfiguration::OnInstance},
10938 {"measureAsFeatureNameTestInterfaceEmptyConstructorAttribute", TestObjectV8I nternal::measureAsFeatureNameTestInterfaceEmptyConstructorAttributeConstructorGe tterCallback, TestObjectV8Internal::TestObjectForceSetAttributeOnThisCallback, 0 , 0, const_cast<WrapperTypeInfo*>(&V8TestInterfaceEmpty::wrapperTypeInfo), stati c_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::D ontEnum), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstanc e}, 10987 {"measureAsFeatureNameTestInterfaceEmptyConstructorAttribute", TestObjectV8I nternal::measureAsFeatureNameTestInterfaceEmptyConstructorAttributeConstructorGe tterCallback, TestObjectV8Internal::TestObjectForceSetAttributeOnThisCallback, 0 , 0, const_cast<WrapperTypeInfo*>(&V8TestInterfaceEmpty::wrapperTypeInfo), stati c_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::D ontEnum), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstanc e},
10939 {"customObjectAttribute", TestObjectV8Internal::customObjectAttributeAttribu teGetterCallback, TestObjectV8Internal::customObjectAttributeAttributeSetterCall back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop ertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigur ation::OnInstance}, 10988 {"customObjectAttribute", TestObjectV8Internal::customObjectAttributeAttribu teGetterCallback, TestObjectV8Internal::customObjectAttributeAttributeSetterCall back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop ertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigur ation::OnInstance},
10940 {"customGetterLongAttribute", TestObjectV8Internal::customGetterLongAttribut eAttributeGetterCallback, TestObjectV8Internal::customGetterLongAttributeAttribu teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c ast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V 8DOMConfiguration::OnInstance}, 10989 {"customGetterLongAttribute", TestObjectV8Internal::customGetterLongAttribut eAttributeGetterCallback, TestObjectV8Internal::customGetterLongAttributeAttribu teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c ast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V 8DOMConfiguration::OnInstance},
10941 {"customGetterReadonlyObjectAttribute", TestObjectV8Internal::customGetterRe adonlyObjectAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::Access Control>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfig uration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, 10990 {"customGetterReadonlyObjectAttribute", TestObjectV8Internal::customGetterRe adonlyObjectAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::Access Control>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfig uration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
10942 {"customSetterLongAttribute", TestObjectV8Internal::customSetterLongAttribut eAttributeGetterCallback, TestObjectV8Internal::customSetterLongAttributeAttribu teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c ast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V 8DOMConfiguration::OnInstance}, 10991 {"customSetterLongAttribute", TestObjectV8Internal::customSetterLongAttribut eAttributeGetterCallback, TestObjectV8Internal::customSetterLongAttributeAttribu teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c ast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V 8DOMConfiguration::OnInstance},
10943 #if ENABLE(CONDITION) 10992 #if ENABLE(CONDITION)
10944 {"customLongAttribute", TestObjectV8Internal::customLongAttributeAttributeGe tterCallback, TestObjectV8Internal::customLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration: :OnInstance}, 10993 {"customLongAttribute", TestObjectV8Internal::customLongAttributeAttributeGe tterCallback, TestObjectV8Internal::customLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration: :OnInstance},
10945 #endif // ENABLE(CONDITION) 10994 #endif // ENABLE(CONDITION)
10946 {"customElementsCallbacksReadonlyLongAttribute", TestObjectV8Internal::custo mElementsCallbacksReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, stat ic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8:: None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
10947 {"deprecatedLongAttribute", TestObjectV8Internal::deprecatedLongAttributeAtt ributeGetterCallback, TestObjectV8Internal::deprecatedLongAttributeAttributeSett erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8 ::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMCo nfiguration::OnInstance},
10948 {"enforceRangeLongAttribute", TestObjectV8Internal::enforceRangeLongAttribut eAttributeGetterCallback, TestObjectV8Internal::enforceRangeLongAttributeAttribu teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c ast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V 8DOMConfiguration::OnInstance},
10949 {"implementedAsLongAttribute", TestObjectV8Internal::implementedAsLongAttrib uteAttributeGetterCallback, TestObjectV8Internal::implementedAsLongAttributeAttr ibuteSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati c_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts , V8DOMConfiguration::OnInstance},
10950 {"customImplementedAsLongAttribute", TestObjectV8Internal::customImplemented AsLongAttributeAttributeGetterCallback, TestObjectV8Internal::customImplementedA sLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v 8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::E xposedToAllScripts, V8DOMConfiguration::OnInstance}, 10995 {"customImplementedAsLongAttribute", TestObjectV8Internal::customImplemented AsLongAttributeAttributeGetterCallback, TestObjectV8Internal::customImplementedA sLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v 8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::E xposedToAllScripts, V8DOMConfiguration::OnInstance},
10951 {"customGetterImplementedAsLongAttribute", TestObjectV8Internal::customGette rImplementedAsLongAttributeAttributeGetterCallback, TestObjectV8Internal::custom GetterImplementedAsLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8 ::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8D OMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, 10996 {"customGetterImplementedAsLongAttribute", TestObjectV8Internal::customGette rImplementedAsLongAttributeAttributeGetterCallback, TestObjectV8Internal::custom GetterImplementedAsLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8 ::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8D OMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
10952 {"customSetterImplementedAsLongAttribute", TestObjectV8Internal::customSette rImplementedAsLongAttributeAttributeGetterCallback, TestObjectV8Internal::custom SetterImplementedAsLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8 ::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8D OMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, 10997 {"customSetterImplementedAsLongAttribute", TestObjectV8Internal::customSette rImplementedAsLongAttributeAttributeGetterCallback, TestObjectV8Internal::custom SetterImplementedAsLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8 ::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8D OMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
10953 {"measureAsLongAttribute", TestObjectV8Internal::measureAsLongAttributeAttri buteGetterCallback, TestObjectV8Internal::measureAsLongAttributeAttributeSetterC allback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P ropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfi guration::OnInstance},
10954 {"notEnumerableLongAttribute", TestObjectV8Internal::notEnumerableLongAttrib uteAttributeGetterCallback, TestObjectV8Internal::notEnumerableLongAttributeAttr ibuteSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati c_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfiguration::ExposedToAllScr ipts, V8DOMConfiguration::OnInstance},
10955 {"perWorldBindingsReadonlyTestInterfaceEmptyAttribute", TestObjectV8Internal ::perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCallback, 0, TestObjectV8Internal::perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttrib uteGetterCallbackForMainWorld, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT) , static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAll Scripts, V8DOMConfiguration::OnInstance},
10956 {"activityLoggingAccessPerWorldBindingsLongAttribute", TestObjectV8Internal: :activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCallback, Test ObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttributeSet terCallback, TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttr ibuteAttributeGetterCallbackForMainWorld, TestObjectV8Internal::activityLoggingA ccessPerWorldBindingsLongAttributeAttributeSetterCallbackForMainWorld, 0, static _cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No ne), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
10957 {"activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute", Test ObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttr ibuteAttributeGetterCallback, TestObjectV8Internal::activityLoggingAccessForIsol atedWorldsPerWorldBindingsLongAttributeAttributeSetterCallback, TestObjectV8Inte rnal::activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeAttribu teGetterCallbackForMainWorld, TestObjectV8Internal::activityLoggingAccessForIsol atedWorldsPerWorldBindingsLongAttributeAttributeSetterCallbackForMainWorld, 0, s tatic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v 8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstanc e},
10958 {"activityLoggingGetterPerWorldBindingsLongAttribute", TestObjectV8Internal: :activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCallback, Test ObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttributeSet terCallback, TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttr ibuteAttributeGetterCallbackForMainWorld, TestObjectV8Internal::activityLoggingG etterPerWorldBindingsLongAttributeAttributeSetterCallbackForMainWorld, 0, static _cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No ne), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
10959 {"activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute", Test ObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttr ibuteAttributeGetterCallback, TestObjectV8Internal::activityLoggingGetterForIsol atedWorldsPerWorldBindingsLongAttributeAttributeSetterCallback, TestObjectV8Inte rnal::activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeAttribu teGetterCallbackForMainWorld, TestObjectV8Internal::activityLoggingGetterForIsol atedWorldsPerWorldBindingsLongAttributeAttributeSetterCallbackForMainWorld, 0, s tatic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v 8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstanc e},
10960 {"location", TestObjectV8Internal::locationAttributeGetterCallback, TestObje ctV8Internal::locationAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCo ntrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigur ation::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, 10998 {"location", TestObjectV8Internal::locationAttributeGetterCallback, TestObje ctV8Internal::locationAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCo ntrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigur ation::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
10961 {"locationWithException", TestObjectV8Internal::locationWithExceptionAttribu teGetterCallback, TestObjectV8Internal::locationWithExceptionAttributeSetterCall back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop ertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigur ation::OnInstance}, 10999 {"locationWithException", TestObjectV8Internal::locationWithExceptionAttribu teGetterCallback, TestObjectV8Internal::locationWithExceptionAttributeSetterCall back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop ertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigur ation::OnInstance},
10962 {"locationWithCallWith", TestObjectV8Internal::locationWithCallWithAttribute GetterCallback, TestObjectV8Internal::locationWithCallWithAttributeSetterCallbac k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert yAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigurati on::OnInstance}, 11000 {"locationWithCallWith", TestObjectV8Internal::locationWithCallWithAttribute GetterCallback, TestObjectV8Internal::locationWithCallWithAttributeSetterCallbac k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert yAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigurati on::OnInstance},
10963 {"locationByteString", TestObjectV8Internal::locationByteStringAttributeGett erCallback, TestObjectV8Internal::locationByteStringAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri bute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::On Instance}, 11001 {"locationByteString", TestObjectV8Internal::locationByteStringAttributeGett erCallback, TestObjectV8Internal::locationByteStringAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri bute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::On Instance},
10964 {"locationWithPerWorldBindings", TestObjectV8Internal::locationWithPerWorldB indingsAttributeGetterCallback, TestObjectV8Internal::locationWithPerWorldBindin gsAttributeSetterCallback, TestObjectV8Internal::locationWithPerWorldBindingsAtt ributeGetterCallbackForMainWorld, TestObjectV8Internal::locationWithPerWorldBind ingsAttributeSetterCallbackForMainWorld, 0, static_cast<v8::AccessControl>(v8::D EFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Expos edToAllScripts, V8DOMConfiguration::OnInstance}, 11002 {"locationWithPerWorldBindings", TestObjectV8Internal::locationWithPerWorldB indingsAttributeGetterCallback, TestObjectV8Internal::locationWithPerWorldBindin gsAttributeSetterCallback, TestObjectV8Internal::locationWithPerWorldBindingsAtt ributeGetterCallbackForMainWorld, TestObjectV8Internal::locationWithPerWorldBind ingsAttributeSetterCallbackForMainWorld, 0, static_cast<v8::AccessControl>(v8::D EFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Expos edToAllScripts, V8DOMConfiguration::OnInstance},
10965 {"locationTypeCheckingInterface", TestObjectV8Internal::locationTypeChecking InterfaceAttributeGetterCallback, TestObjectV8Internal::locationTypeCheckingInte rfaceAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAUL T), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToA llScripts, V8DOMConfiguration::OnInstance}, 11003 {"locationTypeCheckingInterface", TestObjectV8Internal::locationTypeChecking InterfaceAttributeGetterCallback, TestObjectV8Internal::locationTypeCheckingInte rfaceAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAUL T), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToA llScripts, V8DOMConfiguration::OnInstance},
10966 {"locationGarbageCollected", TestObjectV8Internal::locationGarbageCollectedA ttributeGetterCallback, TestObjectV8Internal::locationGarbageCollectedAttributeS etterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast <v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DO MConfiguration::OnInstance}, 11004 {"locationGarbageCollected", TestObjectV8Internal::locationGarbageCollectedA ttributeGetterCallback, TestObjectV8Internal::locationGarbageCollectedAttributeS etterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast <v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DO MConfiguration::OnInstance},
10967 {"locationWillBeGarbageCollected", TestObjectV8Internal::locationWillBeGarba geCollectedAttributeGetterCallback, TestObjectV8Internal::locationWillBeGarbageC ollectedAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEF AULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Exposed ToAllScripts, V8DOMConfiguration::OnInstance}, 11005 {"locationWillBeGarbageCollected", TestObjectV8Internal::locationWillBeGarba geCollectedAttributeGetterCallback, TestObjectV8Internal::locationWillBeGarbageC ollectedAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEF AULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Exposed ToAllScripts, V8DOMConfiguration::OnInstance},
10968 {"raisesExceptionLongAttribute", TestObjectV8Internal::raisesExceptionLongAt tributeAttributeGetterCallback, TestObjectV8Internal::raisesExceptionLongAttribu teAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllS cripts, V8DOMConfiguration::OnInstance},
10969 {"raisesExceptionGetterLongAttribute", TestObjectV8Internal::raisesException GetterLongAttributeAttributeGetterCallback, TestObjectV8Internal::raisesExceptio nGetterLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCont rol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigurat ion::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
10970 {"setterRaisesExceptionLongAttribute", TestObjectV8Internal::setterRaisesExc eptionLongAttributeAttributeGetterCallback, TestObjectV8Internal::setterRaisesEx ceptionLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCont rol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigurat ion::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
10971 {"raisesExceptionTestInterfaceEmptyAttribute", TestObjectV8Internal::raisesE xceptionTestInterfaceEmptyAttributeAttributeGetterCallback, TestObjectV8Internal ::raisesExceptionTestInterfaceEmptyAttributeAttributeSetterCallback, 0, 0, 0, st atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8 ::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance },
10972 {"cachedAttributeRaisesExceptionGetterAnyAttribute", TestObjectV8Internal::c achedAttributeRaisesExceptionGetterAnyAttributeAttributeGetterCallback, TestObje ctV8Internal::cachedAttributeRaisesExceptionGetterAnyAttributeAttributeSetterCal lback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pro pertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigu ration::OnInstance},
10973 {"reflectTestInterfaceAttribute", TestObjectV8Internal::reflectTestInterface AttributeAttributeGetterCallback, TestObjectV8Internal::reflectTestInterfaceAttr ibuteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAUL T), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToA llScripts, V8DOMConfiguration::OnInstance},
10974 {"reflectReflectedNameAttributeTestAttribute", TestObjectV8Internal::reflect ReflectedNameAttributeTestAttributeAttributeGetterCallback, TestObjectV8Internal ::reflectReflectedNameAttributeTestAttributeAttributeSetterCallback, 0, 0, 0, st atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8 ::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance },
10975 {"reflectBooleanAttribute", TestObjectV8Internal::reflectBooleanAttributeAtt ributeGetterCallback, TestObjectV8Internal::reflectBooleanAttributeAttributeSett erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8 ::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMCo nfiguration::OnInstance},
10976 {"reflectLongAttribute", TestObjectV8Internal::reflectLongAttributeAttribute GetterCallback, TestObjectV8Internal::reflectLongAttributeAttributeSetterCallbac k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert yAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigurati on::OnInstance},
10977 {"reflectUnsignedShortAttribute", TestObjectV8Internal::reflectUnsignedShort AttributeAttributeGetterCallback, TestObjectV8Internal::reflectUnsignedShortAttr ibuteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAUL T), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToA llScripts, V8DOMConfiguration::OnInstance},
10978 {"reflectUnsignedLongAttribute", TestObjectV8Internal::reflectUnsignedLongAt tributeAttributeGetterCallback, TestObjectV8Internal::reflectUnsignedLongAttribu teAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllS cripts, V8DOMConfiguration::OnInstance},
10979 {"id", TestObjectV8Internal::idAttributeGetterCallback, TestObjectV8Internal ::idAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT ), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAl lScripts, V8DOMConfiguration::OnInstance},
10980 {"name", TestObjectV8Internal::nameAttributeGetterCallback, TestObjectV8Inte rnal::nameAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::D EFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Expos edToAllScripts, V8DOMConfiguration::OnInstance},
10981 {"class", TestObjectV8Internal::classAttributeGetterCallback, TestObjectV8In ternal::classAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8 ::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Ex posedToAllScripts, V8DOMConfiguration::OnInstance},
10982 {"reflectedId", TestObjectV8Internal::reflectedIdAttributeGetterCallback, Te stObjectV8Internal::reflectedIdAttributeSetterCallback, 0, 0, 0, static_cast<v8: :AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DO MConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
10983 {"reflectedName", TestObjectV8Internal::reflectedNameAttributeGetterCallback , TestObjectV8Internal::reflectedNameAttributeSetterCallback, 0, 0, 0, static_ca st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None) , V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
10984 {"reflectedClass", TestObjectV8Internal::reflectedClassAttributeGetterCallba ck, TestObjectV8Internal::reflectedClassAttributeSetterCallback, 0, 0, 0, static _cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No ne), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
10985 {"limitedToOnlyOneAttribute", TestObjectV8Internal::limitedToOnlyOneAttribut eAttributeGetterCallback, TestObjectV8Internal::limitedToOnlyOneAttributeAttribu teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c ast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V 8DOMConfiguration::OnInstance},
10986 {"limitedToOnlyAttribute", TestObjectV8Internal::limitedToOnlyAttributeAttri buteGetterCallback, TestObjectV8Internal::limitedToOnlyAttributeAttributeSetterC allback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P ropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfi guration::OnInstance},
10987 {"limitedToOnlyOtherAttribute", TestObjectV8Internal::limitedToOnlyOtherAttr ibuteAttributeGetterCallback, TestObjectV8Internal::limitedToOnlyOtherAttributeA ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st atic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScri pts, V8DOMConfiguration::OnInstance},
10988 {"limitedWithMissingDefaultAttribute", TestObjectV8Internal::limitedWithMiss ingDefaultAttributeAttributeGetterCallback, TestObjectV8Internal::limitedWithMis singDefaultAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCont rol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigurat ion::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
10989 {"limitedWithInvalidMissingDefaultAttribute", TestObjectV8Internal::limitedW ithInvalidMissingDefaultAttributeAttributeGetterCallback, TestObjectV8Internal:: limitedWithInvalidMissingDefaultAttributeAttributeSetterCallback, 0, 0, 0, stati c_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::N one), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
10990 {"corsSettingAttribute", TestObjectV8Internal::corsSettingAttributeAttribute GetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_ cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
10991 {"limitedWithEmptyMissingInvalidAttribute", TestObjectV8Internal::limitedWit hEmptyMissingInvalidAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8 ::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8D OMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
10992 {"replaceableReadonlyLongAttribute", TestObjectV8Internal::replaceableReadon lyLongAttributeAttributeGetterCallback, TestObjectV8Internal::TestObjectForceSet AttributeOnThisCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), s tatic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScr ipts, V8DOMConfiguration::OnInstance}, 11006 {"replaceableReadonlyLongAttribute", TestObjectV8Internal::replaceableReadon lyLongAttributeAttributeGetterCallback, TestObjectV8Internal::TestObjectForceSet AttributeOnThisCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), s tatic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScr ipts, V8DOMConfiguration::OnInstance},
10993 {"locationReplaceable", TestObjectV8Internal::locationReplaceableAttributeGe tterCallback, TestObjectV8Internal::locationReplaceableAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration: :OnInstance}, 11007 {"locationReplaceable", TestObjectV8Internal::locationReplaceableAttributeGe tterCallback, TestObjectV8Internal::locationReplaceableAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration: :OnInstance},
10994 {"setterCallWithActiveWindowAndFirstWindowStringAttribute", TestObjectV8Inte rnal::setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeGetterCall back, TestObjectV8Internal::setterCallWithActiveWindowAndFirstWindowStringAttrib uteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT) , static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAll Scripts, V8DOMConfiguration::OnInstance},
10995 {"setterCallWithExecutionContextStringAttribute", TestObjectV8Internal::sett erCallWithExecutionContextStringAttributeAttributeGetterCallback, TestObjectV8In ternal::setterCallWithExecutionContextStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttr ibute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::O nInstance},
10996 {"treatNullAsEmptyStringStringAttribute", TestObjectV8Internal::treatNullAsE mptyStringStringAttributeAttributeGetterCallback, TestObjectV8Internal::treatNul lAsEmptyStringStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::A ccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMC onfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
10997 {"treatNullAsNullStringStringAttribute", TestObjectV8Internal::treatNullAsNu llStringStringAttributeAttributeGetterCallback, TestObjectV8Internal::treatNullA sNullStringStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Acce ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConf iguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
10998 {"treatReturnedNullStringAsNullStringAttribute", TestObjectV8Internal::treat ReturnedNullStringAsNullStringAttributeAttributeGetterCallback, TestObjectV8Inte rnal::treatReturnedNullStringAsNullStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribu te>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnIn stance},
10999 {"treatReturnedNullStringAsUndefinedStringAttribute", TestObjectV8Internal:: treatReturnedNullStringAsUndefinedStringAttributeAttributeGetterCallback, TestOb jectV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAttributeSetter Callback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8:: PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConf iguration::OnInstance},
11000 {"cachedTreatReturnedNullStringAsUndefinedStringAttribute", TestObjectV8Inte rnal::cachedTreatReturnedNullStringAsUndefinedStringAttributeAttributeGetterCall back, TestObjectV8Internal::cachedTreatReturnedNullStringAsUndefinedStringAttrib uteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT) , static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAll Scripts, V8DOMConfiguration::OnInstance},
11001 {"treatReturnedNullStringAsNullByteStringAttribute", TestObjectV8Internal::t reatReturnedNullStringAsNullByteStringAttributeAttributeGetterCallback, TestObje ctV8Internal::treatReturnedNullStringAsNullByteStringAttributeAttributeSetterCal lback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pro pertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigu ration::OnInstance},
11002 {"treatReturnedNullStringAsUndefinedByteStringAttribute", TestObjectV8Intern al::treatReturnedNullStringAsUndefinedByteStringAttributeAttributeGetterCallback , TestObjectV8Internal::treatReturnedNullStringAsUndefinedByteStringAttributeAtt ributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stat ic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScript s, V8DOMConfiguration::OnInstance},
11003 {"treatReturnedNullStringAsNullUSVStringAttribute", TestObjectV8Internal::tr eatReturnedNullStringAsNullUSVStringAttributeAttributeGetterCallback, TestObject V8Internal::treatReturnedNullStringAsNullUSVStringAttributeAttributeSetterCallba ck, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Proper tyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigurat ion::OnInstance},
11004 {"treatReturnedNullStringAsUndefinedUSVStringAttribute", TestObjectV8Interna l::treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeGetterCallback, TestObjectV8Internal::treatReturnedNullStringAsUndefinedUSVStringAttributeAttrib uteSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_ cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
11005 {"typeCheckingInterfaceFloatAttribute", TestObjectV8Internal::typeCheckingIn terfaceFloatAttributeAttributeGetterCallback, TestObjectV8Internal::typeChecking InterfaceFloatAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessC ontrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigu ration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
11006 {"typeCheckingInterfaceTestInterfaceAttribute", TestObjectV8Internal::typeCh eckingInterfaceTestInterfaceAttributeAttributeGetterCallback, TestObjectV8Intern al::typeCheckingInterfaceTestInterfaceAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute> (v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInsta nce},
11007 {"typeCheckingInterfaceTestInterfaceOrNullAttribute", TestObjectV8Internal:: typeCheckingInterfaceTestInterfaceOrNullAttributeAttributeGetterCallback, TestOb jectV8Internal::typeCheckingInterfaceTestInterfaceOrNullAttributeAttributeSetter Callback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8:: PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConf iguration::OnInstance},
11008 {"urlStringAttribute", TestObjectV8Internal::urlStringAttributeAttributeGett erCallback, TestObjectV8Internal::urlStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri bute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::On Instance},
11009 {"urlStringAttribute", TestObjectV8Internal::urlStringAttributeAttributeGett erCallback, TestObjectV8Internal::urlStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri bute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::On Instance},
11010 {"unforgeableLongAttribute", TestObjectV8Internal::unforgeableLongAttributeA ttributeGetterCallback, TestObjectV8Internal::unforgeableLongAttributeAttributeS etterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::PROHIBITS_OVERWRITING ), static_cast<v8::PropertyAttribute>(v8::DontDelete), V8DOMConfiguration::Expos edToAllScripts, V8DOMConfiguration::OnInstance}, 11008 {"unforgeableLongAttribute", TestObjectV8Internal::unforgeableLongAttributeA ttributeGetterCallback, TestObjectV8Internal::unforgeableLongAttributeAttributeS etterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::PROHIBITS_OVERWRITING ), static_cast<v8::PropertyAttribute>(v8::DontDelete), V8DOMConfiguration::Expos edToAllScripts, V8DOMConfiguration::OnInstance},
11011 {"testInterfaceAttribute", TestObjectV8Internal::testInterfaceAttributeAttri buteGetterCallback, TestObjectV8Internal::testInterfaceAttributeAttributeSetterC allback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P ropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfi guration::OnInstance},
11012 {"testInterfaceGarbageCollectedAttribute", TestObjectV8Internal::testInterfa ceGarbageCollectedAttributeAttributeGetterCallback, TestObjectV8Internal::testIn terfaceGarbageCollectedAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8 ::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8D OMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
11013 {"testInterfaceGarbageCollectedOrNullAttribute", TestObjectV8Internal::testI nterfaceGarbageCollectedOrNullAttributeAttributeGetterCallback, TestObjectV8Inte rnal::testInterfaceGarbageCollectedOrNullAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribu te>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnIn stance},
11014 {"testInterfaceWillBeGarbageCollectedAttribute", TestObjectV8Internal::testI nterfaceWillBeGarbageCollectedAttributeAttributeGetterCallback, TestObjectV8Inte rnal::testInterfaceWillBeGarbageCollectedAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribu te>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnIn stance},
11015 {"testInterfaceWillBeGarbageCollectedOrNullAttribute", TestObjectV8Internal: :testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeGetterCallback, Test ObjectV8Internal::testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeSet terCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v 8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMC onfiguration::OnInstance},
11016 {"readonlyShortAttribute", TestObjectV8Internal::readonlyShortAttributeAttri buteGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), sta tic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScrip ts, V8DOMConfiguration::OnInstance},
11017 {"shortAttribute", TestObjectV8Internal::shortAttributeAttributeGetterCallba ck, TestObjectV8Internal::shortAttributeAttributeSetterCallback, 0, 0, 0, static _cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No ne), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
11018 {"stringAttribute", TestObjectV8Internal::stringAttributeAttributeGetterCall back, TestObjectV8Internal::stringAttributeAttributeSetterCallback, 0, 0, 0, sta tic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8: :None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance} ,
11019 {"nodeAttribute", TestObjectV8Internal::nodeAttributeAttributeGetterCallback , TestObjectV8Internal::nodeAttributeAttributeSetterCallback, 0, 0, 0, static_ca st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None) , V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
11020 {"attributeImplementedInCPPForPrivateScriptOnly", TestObjectV8Internal::attr ibuteImplementedInCPPForPrivateScriptOnlyAttributeGetterCallback, TestObjectV8In ternal::attributeImplementedInCPPForPrivateScriptOnlyAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttr ibute>(v8::None), V8DOMConfiguration::OnlyExposedToPrivateScript, V8DOMConfigura tion::OnInstance},
11021 {"enumForPrivateScript", TestObjectV8Internal::enumForPrivateScriptAttribute GetterCallback, TestObjectV8Internal::enumForPrivateScriptAttributeSetterCallbac k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert yAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigurati on::OnInstance},
11022 }; 11009 };
11023 11010
11024 static const V8DOMConfiguration::AccessorConfiguration V8TestObjectAccessors[] = { 11011 static const V8DOMConfiguration::AccessorConfiguration V8TestObjectAccessors[] = {
11012 {"stringifierAttribute", TestObjectV8Internal::stringifierAttributeAttribute GetterCallback, TestObjectV8Internal::stringifierAttributeAttributeSetterCallbac k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert yAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
11013 {"readonlyStringAttribute", TestObjectV8Internal::readonlyStringAttributeAtt ributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), s tatic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScr ipts},
11014 {"readonlyTestInterfaceEmptyAttribute", TestObjectV8Internal::readonlyTestIn terfaceEmptyAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::Access Control>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfig uration::ExposedToAllScripts},
11015 {"readonlyLongAttribute", TestObjectV8Internal::readonlyLongAttributeAttribu teGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati c_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts },
11016 {"dateAttribute", TestObjectV8Internal::dateAttributeAttributeGetterCallback , TestObjectV8Internal::dateAttributeAttributeSetterCallback, 0, 0, 0, static_ca st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None) , V8DOMConfiguration::ExposedToAllScripts},
11017 {"stringAttribute", TestObjectV8Internal::stringAttributeAttributeGetterCall back, TestObjectV8Internal::stringAttributeAttributeSetterCallback, 0, 0, 0, sta tic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8: :None), V8DOMConfiguration::ExposedToAllScripts},
11018 {"byteStringAttribute", TestObjectV8Internal::byteStringAttributeAttributeGe tterCallback, TestObjectV8Internal::byteStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
11019 {"usvStringAttribute", TestObjectV8Internal::usvStringAttributeAttributeGett erCallback, TestObjectV8Internal::usvStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri bute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
11020 {"domTimeStampAttribute", TestObjectV8Internal::domTimeStampAttributeAttribu teGetterCallback, TestObjectV8Internal::domTimeStampAttributeAttributeSetterCall back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop ertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
11021 {"booleanAttribute", TestObjectV8Internal::booleanAttributeAttributeGetterCa llback, TestObjectV8Internal::booleanAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>( v8::None), V8DOMConfiguration::ExposedToAllScripts},
11022 {"byteAttribute", TestObjectV8Internal::byteAttributeAttributeGetterCallback , TestObjectV8Internal::byteAttributeAttributeSetterCallback, 0, 0, 0, static_ca st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None) , V8DOMConfiguration::ExposedToAllScripts},
11023 {"doubleAttribute", TestObjectV8Internal::doubleAttributeAttributeGetterCall back, TestObjectV8Internal::doubleAttributeAttributeSetterCallback, 0, 0, 0, sta tic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8: :None), V8DOMConfiguration::ExposedToAllScripts},
11024 {"floatAttribute", TestObjectV8Internal::floatAttributeAttributeGetterCallba ck, TestObjectV8Internal::floatAttributeAttributeSetterCallback, 0, 0, 0, static _cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No ne), V8DOMConfiguration::ExposedToAllScripts},
11025 {"longAttribute", TestObjectV8Internal::longAttributeAttributeGetterCallback , TestObjectV8Internal::longAttributeAttributeSetterCallback, 0, 0, 0, static_ca st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None) , V8DOMConfiguration::ExposedToAllScripts},
11026 {"longLongAttribute", TestObjectV8Internal::longLongAttributeAttributeGetter Callback, TestObjectV8Internal::longLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribut e>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
11027 {"octetAttribute", TestObjectV8Internal::octetAttributeAttributeGetterCallba ck, TestObjectV8Internal::octetAttributeAttributeSetterCallback, 0, 0, 0, static _cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No ne), V8DOMConfiguration::ExposedToAllScripts},
11028 {"shortAttribute", TestObjectV8Internal::shortAttributeAttributeGetterCallba ck, TestObjectV8Internal::shortAttributeAttributeSetterCallback, 0, 0, 0, static _cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No ne), V8DOMConfiguration::ExposedToAllScripts},
11029 {"unrestrictedDoubleAttribute", TestObjectV8Internal::unrestrictedDoubleAttr ibuteAttributeGetterCallback, TestObjectV8Internal::unrestrictedDoubleAttributeA ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st atic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScri pts},
11030 {"unrestrictedFloatAttribute", TestObjectV8Internal::unrestrictedFloatAttrib uteAttributeGetterCallback, TestObjectV8Internal::unrestrictedFloatAttributeAttr ibuteSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati c_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts },
11031 {"unsignedLongAttribute", TestObjectV8Internal::unsignedLongAttributeAttribu teGetterCallback, TestObjectV8Internal::unsignedLongAttributeAttributeSetterCall back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop ertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
11032 {"unsignedLongLongAttribute", TestObjectV8Internal::unsignedLongLongAttribut eAttributeGetterCallback, TestObjectV8Internal::unsignedLongLongAttributeAttribu teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c ast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
11033 {"unsignedShortAttribute", TestObjectV8Internal::unsignedShortAttributeAttri buteGetterCallback, TestObjectV8Internal::unsignedShortAttributeAttributeSetterC allback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P ropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
11034 {"testInterfaceEmptyAttribute", TestObjectV8Internal::testInterfaceEmptyAttr ibuteAttributeGetterCallback, TestObjectV8Internal::testInterfaceEmptyAttributeA ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st atic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScri pts},
11035 {"testObjectAttribute", TestObjectV8Internal::testObjectAttributeAttributeGe tterCallback, TestObjectV8Internal::testObjectAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
11036 {"voidCallbackFunctionAttribute", TestObjectV8Internal::voidCallbackFunction AttributeAttributeGetterCallback, TestObjectV8Internal::voidCallbackFunctionAttr ibuteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAUL T), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToA llScripts},
11037 {"anyCallbackFunctionOptionalAnyArgAttribute", TestObjectV8Internal::anyCall backFunctionOptionalAnyArgAttributeAttributeGetterCallback, TestObjectV8Internal ::anyCallbackFunctionOptionalAnyArgAttributeAttributeSetterCallback, 0, 0, 0, st atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8 ::None), V8DOMConfiguration::ExposedToAllScripts},
11038 {"cssAttribute", TestObjectV8Internal::cssAttributeAttributeGetterCallback, TestObjectV8Internal::cssAttributeAttributeSetterCallback, 0, 0, 0, static_cast< v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V 8DOMConfiguration::ExposedToAllScripts},
11039 {"imeAttribute", TestObjectV8Internal::imeAttributeAttributeGetterCallback, TestObjectV8Internal::imeAttributeAttributeSetterCallback, 0, 0, 0, static_cast< v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V 8DOMConfiguration::ExposedToAllScripts},
11040 {"svgAttribute", TestObjectV8Internal::svgAttributeAttributeGetterCallback, TestObjectV8Internal::svgAttributeAttributeSetterCallback, 0, 0, 0, static_cast< v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V 8DOMConfiguration::ExposedToAllScripts},
11041 {"xmlAttribute", TestObjectV8Internal::xmlAttributeAttributeGetterCallback, TestObjectV8Internal::xmlAttributeAttributeSetterCallback, 0, 0, 0, static_cast< v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V 8DOMConfiguration::ExposedToAllScripts},
11042 {"nodeFilterAttribute", TestObjectV8Internal::nodeFilterAttributeAttributeGe tterCallback, TestObjectV8Internal::nodeFilterAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
11043 {"serializedScriptValueAttribute", TestObjectV8Internal::serializedScriptVal ueAttributeAttributeGetterCallback, TestObjectV8Internal::serializedScriptValueA ttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEF AULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Exposed ToAllScripts},
11044 {"anyAttribute", TestObjectV8Internal::anyAttributeAttributeGetterCallback, TestObjectV8Internal::anyAttributeAttributeSetterCallback, 0, 0, 0, static_cast< v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V 8DOMConfiguration::ExposedToAllScripts},
11045 {"promiseAttribute", TestObjectV8Internal::promiseAttributeAttributeGetterCa llback, TestObjectV8Internal::promiseAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>( v8::None), V8DOMConfiguration::ExposedToAllScripts},
11046 {"windowAttribute", TestObjectV8Internal::windowAttributeAttributeGetterCall back, TestObjectV8Internal::windowAttributeAttributeSetterCallback, 0, 0, 0, sta tic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8: :None), V8DOMConfiguration::ExposedToAllScripts},
11047 {"documentAttribute", TestObjectV8Internal::documentAttributeAttributeGetter Callback, TestObjectV8Internal::documentAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribut e>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
11048 {"documentFragmentAttribute", TestObjectV8Internal::documentFragmentAttribut eAttributeGetterCallback, TestObjectV8Internal::documentFragmentAttributeAttribu teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c ast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
11049 {"documentTypeAttribute", TestObjectV8Internal::documentTypeAttributeAttribu teGetterCallback, TestObjectV8Internal::documentTypeAttributeAttributeSetterCall back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop ertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
11050 {"elementAttribute", TestObjectV8Internal::elementAttributeAttributeGetterCa llback, TestObjectV8Internal::elementAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>( v8::None), V8DOMConfiguration::ExposedToAllScripts},
11051 {"nodeAttribute", TestObjectV8Internal::nodeAttributeAttributeGetterCallback , TestObjectV8Internal::nodeAttributeAttributeSetterCallback, 0, 0, 0, static_ca st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None) , V8DOMConfiguration::ExposedToAllScripts},
11052 {"shadowRootAttribute", TestObjectV8Internal::shadowRootAttributeAttributeGe tterCallback, TestObjectV8Internal::shadowRootAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
11053 {"arrayBufferAttribute", TestObjectV8Internal::arrayBufferAttributeAttribute GetterCallback, TestObjectV8Internal::arrayBufferAttributeAttributeSetterCallbac k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert yAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
11054 {"float32ArrayAttribute", TestObjectV8Internal::float32ArrayAttributeAttribu teGetterCallback, TestObjectV8Internal::float32ArrayAttributeAttributeSetterCall back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop ertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
11055 {"uint8ArrayAttribute", TestObjectV8Internal::uint8ArrayAttributeAttributeGe tterCallback, TestObjectV8Internal::uint8ArrayAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
11056 {"self", TestObjectV8Internal::selfAttributeGetterCallback, 0, 0, 0, 0, stat ic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8:: None), V8DOMConfiguration::ExposedToAllScripts},
11057 {"readonlyEventTargetAttribute", TestObjectV8Internal::readonlyEventTargetAt tributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::D EFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Expos edToAllScripts},
11058 {"readonlyEventTargetOrNullAttribute", TestObjectV8Internal::readonlyEventTa rgetOrNullAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessCo ntrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigur ation::ExposedToAllScripts},
11059 {"readonlyWindowAttribute", TestObjectV8Internal::readonlyWindowAttributeAtt ributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), s tatic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScr ipts},
11060 {"htmlCollectionAttribute", TestObjectV8Internal::htmlCollectionAttributeAtt ributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), s tatic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScr ipts},
11061 {"htmlElementAttribute", TestObjectV8Internal::htmlElementAttributeAttribute GetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_ cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
11062 {"stringArrayAttribute", TestObjectV8Internal::stringArrayAttributeAttribute GetterCallback, TestObjectV8Internal::stringArrayAttributeAttributeSetterCallbac k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert yAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
11063 {"testInterfaceEmptyArrayAttribute", TestObjectV8Internal::testInterfaceEmpt yArrayAttributeAttributeGetterCallback, TestObjectV8Internal::testInterfaceEmpty ArrayAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v 8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::E xposedToAllScripts},
11064 {"floatArrayAttribute", TestObjectV8Internal::floatArrayAttributeAttributeGe tterCallback, TestObjectV8Internal::floatArrayAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
11065 {"stringOrNullAttribute", TestObjectV8Internal::stringOrNullAttributeAttribu teGetterCallback, TestObjectV8Internal::stringOrNullAttributeAttributeSetterCall back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop ertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
11066 {"longOrNullAttribute", TestObjectV8Internal::longOrNullAttributeAttributeGe tterCallback, TestObjectV8Internal::longOrNullAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
11067 {"testInterfaceOrNullAttribute", TestObjectV8Internal::testInterfaceOrNullAt tributeAttributeGetterCallback, TestObjectV8Internal::testInterfaceOrNullAttribu teAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllS cripts},
11068 {"testEnumAttribute", TestObjectV8Internal::testEnumAttributeAttributeGetter Callback, TestObjectV8Internal::testEnumAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribut e>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
11069 {"doubleOrStringAttribute", TestObjectV8Internal::doubleOrStringAttributeAtt ributeGetterCallback, TestObjectV8Internal::doubleOrStringAttributeAttributeSett erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8 ::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
11070 {"doubleOrStringOrNullAttribute", TestObjectV8Internal::doubleOrStringOrNull AttributeAttributeGetterCallback, TestObjectV8Internal::doubleOrStringOrNullAttr ibuteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAUL T), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToA llScripts},
11071 {"doubleOrNullStringAttribute", TestObjectV8Internal::doubleOrNullStringAttr ibuteAttributeGetterCallback, TestObjectV8Internal::doubleOrNullStringAttributeA ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st atic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScri pts},
11072 {"stringOrStringSequenceAttribute", TestObjectV8Internal::stringOrStringSequ enceAttributeAttributeGetterCallback, TestObjectV8Internal::stringOrStringSequen ceAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8:: DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Expo sedToAllScripts},
11073 {"testEnumOrDoubleAttribute", TestObjectV8Internal::testEnumOrDoubleAttribut eAttributeGetterCallback, TestObjectV8Internal::testEnumOrDoubleAttributeAttribu teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c ast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
11074 {"unrestrictedDoubleOrStringAttribute", TestObjectV8Internal::unrestrictedDo ubleOrStringAttributeAttributeGetterCallback, TestObjectV8Internal::unrestricted DoubleOrStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessC ontrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigu ration::ExposedToAllScripts},
11075 {"activityLoggingAccessForAllWorldsLongAttribute", TestObjectV8Internal::act ivityLoggingAccessForAllWorldsLongAttributeAttributeGetterCallback, TestObjectV8 Internal::activityLoggingAccessForAllWorldsLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyA ttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
11076 {"activityLoggingGetterForAllWorldsLongAttribute", TestObjectV8Internal::act ivityLoggingGetterForAllWorldsLongAttributeAttributeGetterCallback, TestObjectV8 Internal::activityLoggingGetterForAllWorldsLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyA ttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
11077 {"activityLoggingSetterForAllWorldsLongAttribute", TestObjectV8Internal::act ivityLoggingSetterForAllWorldsLongAttributeAttributeGetterCallback, TestObjectV8 Internal::activityLoggingSetterForAllWorldsLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyA ttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
11078 {"cachedAttributeAnyAttribute", TestObjectV8Internal::cachedAttributeAnyAttr ibuteAttributeGetterCallback, TestObjectV8Internal::cachedAttributeAnyAttributeA ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st atic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScri pts},
11079 {"cachedArrayAttribute", TestObjectV8Internal::cachedArrayAttributeAttribute GetterCallback, TestObjectV8Internal::cachedArrayAttributeAttributeSetterCallbac k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert yAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
11080 {"cachedStringOrNoneAttribute", TestObjectV8Internal::cachedStringOrNoneAttr ibuteAttributeGetterCallback, TestObjectV8Internal::cachedStringOrNoneAttributeA ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st atic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScri pts},
11081 {"callWithExecutionContextAnyAttribute", TestObjectV8Internal::callWithExecu tionContextAnyAttributeAttributeGetterCallback, TestObjectV8Internal::callWithEx ecutionContextAnyAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Acce ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConf iguration::ExposedToAllScripts},
11082 {"callWithScriptStateAnyAttribute", TestObjectV8Internal::callWithScriptStat eAnyAttributeAttributeGetterCallback, TestObjectV8Internal::callWithScriptStateA nyAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8:: DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Expo sedToAllScripts},
11083 {"callWithExecutionContextAndScriptStateAnyAttribute", TestObjectV8Internal: :callWithExecutionContextAndScriptStateAnyAttributeAttributeGetterCallback, Test ObjectV8Internal::callWithExecutionContextAndScriptStateAnyAttributeAttributeSet terCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v 8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
11084 {"checkSecurityForNodeReadonlyDocumentAttribute", TestObjectV8Internal::chec kSecurityForNodeReadonlyDocumentAttributeAttributeGetterCallback, 0, 0, 0, 0, st atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8 ::None), V8DOMConfiguration::ExposedToAllScripts},
11085 {"conditionalLongAttribute", TestObjectV8Internal::conditionalLongAttributeA ttributeGetterCallback, TestObjectV8Internal::conditionalLongAttributeAttributeS etterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast <v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
11086 {"customElementsCallbacksReadonlyLongAttribute", TestObjectV8Internal::custo mElementsCallbacksReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, stat ic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8:: None), V8DOMConfiguration::ExposedToAllScripts},
11087 {"deprecatedLongAttribute", TestObjectV8Internal::deprecatedLongAttributeAtt ributeGetterCallback, TestObjectV8Internal::deprecatedLongAttributeAttributeSett erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8 ::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
11088 {"enforceRangeLongAttribute", TestObjectV8Internal::enforceRangeLongAttribut eAttributeGetterCallback, TestObjectV8Internal::enforceRangeLongAttributeAttribu teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c ast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
11025 {"exposeJSAccessorsLongAttribute", TestObjectV8Internal::exposeJSAccessorsLo ngAttributeAttributeGetterCallback, TestObjectV8Internal::exposeJSAccessorsLongA ttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEF AULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Exposed ToAllScripts}, 11089 {"exposeJSAccessorsLongAttribute", TestObjectV8Internal::exposeJSAccessorsLo ngAttributeAttributeGetterCallback, TestObjectV8Internal::exposeJSAccessorsLongA ttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEF AULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Exposed ToAllScripts},
11090 {"implementedAsLongAttribute", TestObjectV8Internal::implementedAsLongAttrib uteAttributeGetterCallback, TestObjectV8Internal::implementedAsLongAttributeAttr ibuteSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati c_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts },
11091 {"measureAsLongAttribute", TestObjectV8Internal::measureAsLongAttributeAttri buteGetterCallback, TestObjectV8Internal::measureAsLongAttributeAttributeSetterC allback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P ropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
11092 {"notEnumerableLongAttribute", TestObjectV8Internal::notEnumerableLongAttrib uteAttributeGetterCallback, TestObjectV8Internal::notEnumerableLongAttributeAttr ibuteSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati c_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfiguration::ExposedToAllScr ipts},
11093 {"perWorldBindingsReadonlyTestInterfaceEmptyAttribute", TestObjectV8Internal ::perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCallback, 0, TestObjectV8Internal::perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttrib uteGetterCallbackForMainWorld, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT) , static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAll Scripts},
11094 {"activityLoggingAccessPerWorldBindingsLongAttribute", TestObjectV8Internal: :activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCallback, Test ObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttributeSet terCallback, TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttr ibuteAttributeGetterCallbackForMainWorld, TestObjectV8Internal::activityLoggingA ccessPerWorldBindingsLongAttributeAttributeSetterCallbackForMainWorld, 0, static _cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No ne), V8DOMConfiguration::ExposedToAllScripts},
11095 {"activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute", Test ObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttr ibuteAttributeGetterCallback, TestObjectV8Internal::activityLoggingAccessForIsol atedWorldsPerWorldBindingsLongAttributeAttributeSetterCallback, TestObjectV8Inte rnal::activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeAttribu teGetterCallbackForMainWorld, TestObjectV8Internal::activityLoggingAccessForIsol atedWorldsPerWorldBindingsLongAttributeAttributeSetterCallbackForMainWorld, 0, s tatic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v 8::None), V8DOMConfiguration::ExposedToAllScripts},
11096 {"activityLoggingGetterPerWorldBindingsLongAttribute", TestObjectV8Internal: :activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCallback, Test ObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttributeSet terCallback, TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttr ibuteAttributeGetterCallbackForMainWorld, TestObjectV8Internal::activityLoggingG etterPerWorldBindingsLongAttributeAttributeSetterCallbackForMainWorld, 0, static _cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No ne), V8DOMConfiguration::ExposedToAllScripts},
11097 {"activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute", Test ObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttr ibuteAttributeGetterCallback, TestObjectV8Internal::activityLoggingGetterForIsol atedWorldsPerWorldBindingsLongAttributeAttributeSetterCallback, TestObjectV8Inte rnal::activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeAttribu teGetterCallbackForMainWorld, TestObjectV8Internal::activityLoggingGetterForIsol atedWorldsPerWorldBindingsLongAttributeAttributeSetterCallbackForMainWorld, 0, s tatic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v 8::None), V8DOMConfiguration::ExposedToAllScripts},
11098 {"raisesExceptionLongAttribute", TestObjectV8Internal::raisesExceptionLongAt tributeAttributeGetterCallback, TestObjectV8Internal::raisesExceptionLongAttribu teAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllS cripts},
11099 {"raisesExceptionGetterLongAttribute", TestObjectV8Internal::raisesException GetterLongAttributeAttributeGetterCallback, TestObjectV8Internal::raisesExceptio nGetterLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCont rol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigurat ion::ExposedToAllScripts},
11100 {"setterRaisesExceptionLongAttribute", TestObjectV8Internal::setterRaisesExc eptionLongAttributeAttributeGetterCallback, TestObjectV8Internal::setterRaisesEx ceptionLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCont rol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigurat ion::ExposedToAllScripts},
11101 {"raisesExceptionTestInterfaceEmptyAttribute", TestObjectV8Internal::raisesE xceptionTestInterfaceEmptyAttributeAttributeGetterCallback, TestObjectV8Internal ::raisesExceptionTestInterfaceEmptyAttributeAttributeSetterCallback, 0, 0, 0, st atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8 ::None), V8DOMConfiguration::ExposedToAllScripts},
11102 {"cachedAttributeRaisesExceptionGetterAnyAttribute", TestObjectV8Internal::c achedAttributeRaisesExceptionGetterAnyAttributeAttributeGetterCallback, TestObje ctV8Internal::cachedAttributeRaisesExceptionGetterAnyAttributeAttributeSetterCal lback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pro pertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
11103 {"reflectTestInterfaceAttribute", TestObjectV8Internal::reflectTestInterface AttributeAttributeGetterCallback, TestObjectV8Internal::reflectTestInterfaceAttr ibuteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAUL T), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToA llScripts},
11104 {"reflectReflectedNameAttributeTestAttribute", TestObjectV8Internal::reflect ReflectedNameAttributeTestAttributeAttributeGetterCallback, TestObjectV8Internal ::reflectReflectedNameAttributeTestAttributeAttributeSetterCallback, 0, 0, 0, st atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8 ::None), V8DOMConfiguration::ExposedToAllScripts},
11105 {"reflectBooleanAttribute", TestObjectV8Internal::reflectBooleanAttributeAtt ributeGetterCallback, TestObjectV8Internal::reflectBooleanAttributeAttributeSett erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8 ::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
11106 {"reflectLongAttribute", TestObjectV8Internal::reflectLongAttributeAttribute GetterCallback, TestObjectV8Internal::reflectLongAttributeAttributeSetterCallbac k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert yAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
11107 {"reflectUnsignedShortAttribute", TestObjectV8Internal::reflectUnsignedShort AttributeAttributeGetterCallback, TestObjectV8Internal::reflectUnsignedShortAttr ibuteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAUL T), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToA llScripts},
11108 {"reflectUnsignedLongAttribute", TestObjectV8Internal::reflectUnsignedLongAt tributeAttributeGetterCallback, TestObjectV8Internal::reflectUnsignedLongAttribu teAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllS cripts},
11109 {"id", TestObjectV8Internal::idAttributeGetterCallback, TestObjectV8Internal ::idAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT ), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAl lScripts},
11110 {"name", TestObjectV8Internal::nameAttributeGetterCallback, TestObjectV8Inte rnal::nameAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::D EFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Expos edToAllScripts},
11111 {"class", TestObjectV8Internal::classAttributeGetterCallback, TestObjectV8In ternal::classAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8 ::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Ex posedToAllScripts},
11112 {"reflectedId", TestObjectV8Internal::reflectedIdAttributeGetterCallback, Te stObjectV8Internal::reflectedIdAttributeSetterCallback, 0, 0, 0, static_cast<v8: :AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DO MConfiguration::ExposedToAllScripts},
11113 {"reflectedName", TestObjectV8Internal::reflectedNameAttributeGetterCallback , TestObjectV8Internal::reflectedNameAttributeSetterCallback, 0, 0, 0, static_ca st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None) , V8DOMConfiguration::ExposedToAllScripts},
11114 {"reflectedClass", TestObjectV8Internal::reflectedClassAttributeGetterCallba ck, TestObjectV8Internal::reflectedClassAttributeSetterCallback, 0, 0, 0, static _cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No ne), V8DOMConfiguration::ExposedToAllScripts},
11115 {"limitedToOnlyOneAttribute", TestObjectV8Internal::limitedToOnlyOneAttribut eAttributeGetterCallback, TestObjectV8Internal::limitedToOnlyOneAttributeAttribu teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c ast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
11116 {"limitedToOnlyAttribute", TestObjectV8Internal::limitedToOnlyAttributeAttri buteGetterCallback, TestObjectV8Internal::limitedToOnlyAttributeAttributeSetterC allback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P ropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
11117 {"limitedToOnlyOtherAttribute", TestObjectV8Internal::limitedToOnlyOtherAttr ibuteAttributeGetterCallback, TestObjectV8Internal::limitedToOnlyOtherAttributeA ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st atic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScri pts},
11118 {"limitedWithMissingDefaultAttribute", TestObjectV8Internal::limitedWithMiss ingDefaultAttributeAttributeGetterCallback, TestObjectV8Internal::limitedWithMis singDefaultAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCont rol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigurat ion::ExposedToAllScripts},
11119 {"limitedWithInvalidMissingDefaultAttribute", TestObjectV8Internal::limitedW ithInvalidMissingDefaultAttributeAttributeGetterCallback, TestObjectV8Internal:: limitedWithInvalidMissingDefaultAttributeAttributeSetterCallback, 0, 0, 0, stati c_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::N one), V8DOMConfiguration::ExposedToAllScripts},
11120 {"corsSettingAttribute", TestObjectV8Internal::corsSettingAttributeAttribute GetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_ cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
11121 {"limitedWithEmptyMissingInvalidAttribute", TestObjectV8Internal::limitedWit hEmptyMissingInvalidAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8 ::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8D OMConfiguration::ExposedToAllScripts},
11122 {"setterCallWithActiveWindowAndFirstWindowStringAttribute", TestObjectV8Inte rnal::setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeGetterCall back, TestObjectV8Internal::setterCallWithActiveWindowAndFirstWindowStringAttrib uteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT) , static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAll Scripts},
11123 {"setterCallWithExecutionContextStringAttribute", TestObjectV8Internal::sett erCallWithExecutionContextStringAttributeAttributeGetterCallback, TestObjectV8In ternal::setterCallWithExecutionContextStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttr ibute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
11124 {"treatNullAsEmptyStringStringAttribute", TestObjectV8Internal::treatNullAsE mptyStringStringAttributeAttributeGetterCallback, TestObjectV8Internal::treatNul lAsEmptyStringStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::A ccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMC onfiguration::ExposedToAllScripts},
11125 {"treatNullAsNullStringStringAttribute", TestObjectV8Internal::treatNullAsNu llStringStringAttributeAttributeGetterCallback, TestObjectV8Internal::treatNullA sNullStringStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Acce ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConf iguration::ExposedToAllScripts},
11126 {"treatReturnedNullStringAsNullStringAttribute", TestObjectV8Internal::treat ReturnedNullStringAsNullStringAttributeAttributeGetterCallback, TestObjectV8Inte rnal::treatReturnedNullStringAsNullStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribu te>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
11127 {"treatReturnedNullStringAsUndefinedStringAttribute", TestObjectV8Internal:: treatReturnedNullStringAsUndefinedStringAttributeAttributeGetterCallback, TestOb jectV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAttributeSetter Callback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8:: PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
11128 {"cachedTreatReturnedNullStringAsUndefinedStringAttribute", TestObjectV8Inte rnal::cachedTreatReturnedNullStringAsUndefinedStringAttributeAttributeGetterCall back, TestObjectV8Internal::cachedTreatReturnedNullStringAsUndefinedStringAttrib uteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT) , static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAll Scripts},
11129 {"treatReturnedNullStringAsNullByteStringAttribute", TestObjectV8Internal::t reatReturnedNullStringAsNullByteStringAttributeAttributeGetterCallback, TestObje ctV8Internal::treatReturnedNullStringAsNullByteStringAttributeAttributeSetterCal lback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pro pertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
11130 {"treatReturnedNullStringAsUndefinedByteStringAttribute", TestObjectV8Intern al::treatReturnedNullStringAsUndefinedByteStringAttributeAttributeGetterCallback , TestObjectV8Internal::treatReturnedNullStringAsUndefinedByteStringAttributeAtt ributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stat ic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScript s},
11131 {"treatReturnedNullStringAsNullUSVStringAttribute", TestObjectV8Internal::tr eatReturnedNullStringAsNullUSVStringAttributeAttributeGetterCallback, TestObject V8Internal::treatReturnedNullStringAsNullUSVStringAttributeAttributeSetterCallba ck, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Proper tyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
11132 {"treatReturnedNullStringAsUndefinedUSVStringAttribute", TestObjectV8Interna l::treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeGetterCallback, TestObjectV8Internal::treatReturnedNullStringAsUndefinedUSVStringAttributeAttrib uteSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_ cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
11133 {"typeCheckingInterfaceFloatAttribute", TestObjectV8Internal::typeCheckingIn terfaceFloatAttributeAttributeGetterCallback, TestObjectV8Internal::typeChecking InterfaceFloatAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessC ontrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigu ration::ExposedToAllScripts},
11134 {"typeCheckingInterfaceTestInterfaceAttribute", TestObjectV8Internal::typeCh eckingInterfaceTestInterfaceAttributeAttributeGetterCallback, TestObjectV8Intern al::typeCheckingInterfaceTestInterfaceAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute> (v8::None), V8DOMConfiguration::ExposedToAllScripts},
11135 {"typeCheckingInterfaceTestInterfaceOrNullAttribute", TestObjectV8Internal:: typeCheckingInterfaceTestInterfaceOrNullAttributeAttributeGetterCallback, TestOb jectV8Internal::typeCheckingInterfaceTestInterfaceOrNullAttributeAttributeSetter Callback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8:: PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
11136 {"urlStringAttribute", TestObjectV8Internal::urlStringAttributeAttributeGett erCallback, TestObjectV8Internal::urlStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri bute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
11137 {"urlStringAttribute", TestObjectV8Internal::urlStringAttributeAttributeGett erCallback, TestObjectV8Internal::urlStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri bute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
11138 {"testInterfaceAttribute", TestObjectV8Internal::testInterfaceAttributeAttri buteGetterCallback, TestObjectV8Internal::testInterfaceAttributeAttributeSetterC allback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P ropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
11139 {"testInterfaceGarbageCollectedAttribute", TestObjectV8Internal::testInterfa ceGarbageCollectedAttributeAttributeGetterCallback, TestObjectV8Internal::testIn terfaceGarbageCollectedAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8 ::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8D OMConfiguration::ExposedToAllScripts},
11140 {"testInterfaceGarbageCollectedOrNullAttribute", TestObjectV8Internal::testI nterfaceGarbageCollectedOrNullAttributeAttributeGetterCallback, TestObjectV8Inte rnal::testInterfaceGarbageCollectedOrNullAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribu te>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
11141 {"testInterfaceWillBeGarbageCollectedAttribute", TestObjectV8Internal::testI nterfaceWillBeGarbageCollectedAttributeAttributeGetterCallback, TestObjectV8Inte rnal::testInterfaceWillBeGarbageCollectedAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribu te>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
11142 {"testInterfaceWillBeGarbageCollectedOrNullAttribute", TestObjectV8Internal: :testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeGetterCallback, Test ObjectV8Internal::testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeSet terCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v 8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
11143 {"readonlyShortAttribute", TestObjectV8Internal::readonlyShortAttributeAttri buteGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), sta tic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScrip ts},
11144 {"shortAttribute", TestObjectV8Internal::shortAttributeAttributeGetterCallba ck, TestObjectV8Internal::shortAttributeAttributeSetterCallback, 0, 0, 0, static _cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No ne), V8DOMConfiguration::ExposedToAllScripts},
11145 {"stringAttribute", TestObjectV8Internal::stringAttributeAttributeGetterCall back, TestObjectV8Internal::stringAttributeAttributeSetterCallback, 0, 0, 0, sta tic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8: :None), V8DOMConfiguration::ExposedToAllScripts},
11146 {"nodeAttribute", TestObjectV8Internal::nodeAttributeAttributeGetterCallback , TestObjectV8Internal::nodeAttributeAttributeSetterCallback, 0, 0, 0, static_ca st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None) , V8DOMConfiguration::ExposedToAllScripts},
11147 {"attributeImplementedInCPPForPrivateScriptOnly", TestObjectV8Internal::attr ibuteImplementedInCPPForPrivateScriptOnlyAttributeGetterCallback, TestObjectV8In ternal::attributeImplementedInCPPForPrivateScriptOnlyAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttr ibute>(v8::None), V8DOMConfiguration::OnlyExposedToPrivateScript},
11148 {"enumForPrivateScript", TestObjectV8Internal::enumForPrivateScriptAttribute GetterCallback, TestObjectV8Internal::enumForPrivateScriptAttributeSetterCallbac k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert yAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
11026 }; 11149 };
11027 11150
11028 static const V8DOMConfiguration::MethodConfiguration V8TestObjectMethods[] = { 11151 static const V8DOMConfiguration::MethodConfiguration V8TestObjectMethods[] = {
11029 {"voidMethod", TestObjectV8Internal::voidMethodMethodCallback, 0, 0, V8DOMCo nfiguration::ExposedToAllScripts}, 11152 {"voidMethod", TestObjectV8Internal::voidMethodMethodCallback, 0, 0, V8DOMCo nfiguration::ExposedToAllScripts},
11030 {"dateMethod", TestObjectV8Internal::dateMethodMethodCallback, 0, 0, V8DOMCo nfiguration::ExposedToAllScripts}, 11153 {"dateMethod", TestObjectV8Internal::dateMethodMethodCallback, 0, 0, V8DOMCo nfiguration::ExposedToAllScripts},
11031 {"stringMethod", TestObjectV8Internal::stringMethodMethodCallback, 0, 0, V8D OMConfiguration::ExposedToAllScripts}, 11154 {"stringMethod", TestObjectV8Internal::stringMethodMethodCallback, 0, 0, V8D OMConfiguration::ExposedToAllScripts},
11032 {"byteStringMethod", TestObjectV8Internal::byteStringMethodMethodCallback, 0 , 0, V8DOMConfiguration::ExposedToAllScripts}, 11155 {"byteStringMethod", TestObjectV8Internal::byteStringMethodMethodCallback, 0 , 0, V8DOMConfiguration::ExposedToAllScripts},
11033 {"usvStringMethod", TestObjectV8Internal::usvStringMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 11156 {"usvStringMethod", TestObjectV8Internal::usvStringMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
11034 {"readonlyDOMTimeStampMethod", TestObjectV8Internal::readonlyDOMTimeStampMet hodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 11157 {"readonlyDOMTimeStampMethod", TestObjectV8Internal::readonlyDOMTimeStampMet hodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
11035 {"booleanMethod", TestObjectV8Internal::booleanMethodMethodCallback, 0, 0, V 8DOMConfiguration::ExposedToAllScripts}, 11158 {"booleanMethod", TestObjectV8Internal::booleanMethodMethodCallback, 0, 0, V 8DOMConfiguration::ExposedToAllScripts},
(...skipping 875 matching lines...) Expand 10 before | Expand all | Expand 10 after
11911 return false; 12034 return false;
11912 12035
11913 ScriptState::Scope scope(scriptState); 12036 ScriptState::Scope scope(scriptState);
11914 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate()); 12037 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate());
11915 12038
11916 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ; 12039 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ;
11917 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue)); 12040 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue));
11918 } 12041 }
11919 12042
11920 } // namespace blink 12043 } // namespace blink
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/core/V8TestNode.cpp ('k') | Source/bindings/tests/results/core/V8TestTypedefs.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698