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

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

Issue 1062713003: bindings: Move named/indexed attributes to prototype chains. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed layout tests. Created 5 years, 8 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 if (!perContextData) 115 if (!perContextData)
116 break; 116 break;
117 const WrapperTypeInfo* wrapperTypeInfo = WrapperTypeInfo::unwrap(data); 117 const WrapperTypeInfo* wrapperTypeInfo = WrapperTypeInfo::unwrap(data);
118 if (!wrapperTypeInfo) 118 if (!wrapperTypeInfo)
119 break; 119 break;
120 TestObjectForceSetAttributeOnThis(v8String(info.GetIsolate(), wrapperTyp eInfo->interfaceName), v8Value, info); 120 TestObjectForceSetAttributeOnThis(v8String(info.GetIsolate(), wrapperTyp eInfo->interfaceName), v8Value, info);
121 } while (false); // do ... while (false) just for use of break 121 } while (false); // do ... while (false) just for use of break
122 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 122 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
123 } 123 }
124 124
125 static void stringifierAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info) 125 static void stringifierAttributeAttributeGetter(const v8::FunctionCallbackInfo<v 8::Value>& info)
126 { 126 {
127 v8::Local<v8::Object> holder = info.Holder(); 127 v8::Local<v8::Object> holder = info.Holder();
128 TestObject* impl = V8TestObject::toImpl(holder); 128 TestObject* impl = V8TestObject::toImpl(holder);
129 v8SetReturnValueString(info, impl->stringifierAttribute(), info.GetIsolate() ); 129 v8SetReturnValueString(info, impl->stringifierAttribute(), info.GetIsolate() );
130 } 130 }
131 131
132 static void stringifierAttributeAttributeGetterCallback(v8::Local<v8::Name>, con st v8::PropertyCallbackInfo<v8::Value>& info) 132 static void stringifierAttributeAttributeGetterCallback(const v8::FunctionCallba ckInfo<v8::Value>& info)
133 { 133 {
134 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 134 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
135 TestObjectV8Internal::stringifierAttributeAttributeGetter(info); 135 TestObjectV8Internal::stringifierAttributeAttributeGetter(info);
136 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 136 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
137 } 137 }
138 138
139 static void stringifierAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& info) 139 static void stringifierAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::FunctionCallbackInfo<v8::Value>& info)
140 { 140 {
141 v8::Local<v8::Object> holder = info.Holder(); 141 v8::Local<v8::Object> holder = info.Holder();
142 TestObject* impl = V8TestObject::toImpl(holder); 142 TestObject* impl = V8TestObject::toImpl(holder);
143 V8StringResource<> cppValue = v8Value; 143 V8StringResource<> cppValue = v8Value;
144 if (!cppValue.prepare()) 144 if (!cppValue.prepare())
145 return; 145 return;
146 impl->setStringifierAttribute(cppValue); 146 impl->setStringifierAttribute(cppValue);
147 } 147 }
148 148
149 static void stringifierAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8: :Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 149 static void stringifierAttributeAttributeSetterCallback(const v8::FunctionCallba ckInfo<v8::Value>& info)
150 { 150 {
151 v8::Local<v8::Value> v8Value = info[0];
151 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 152 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
152 TestObjectV8Internal::stringifierAttributeAttributeSetter(v8Value, info); 153 TestObjectV8Internal::stringifierAttributeAttributeSetter(v8Value, info);
153 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 154 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
154 } 155 }
155 156
156 static void readonlyStringAttributeAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info) 157 static void readonlyStringAttributeAttributeGetter(const v8::FunctionCallbackInf o<v8::Value>& info)
157 { 158 {
158 v8::Local<v8::Object> holder = info.Holder(); 159 v8::Local<v8::Object> holder = info.Holder();
159 TestObject* impl = V8TestObject::toImpl(holder); 160 TestObject* impl = V8TestObject::toImpl(holder);
160 v8SetReturnValueString(info, impl->readonlyStringAttribute(), info.GetIsolat e()); 161 v8SetReturnValueString(info, impl->readonlyStringAttribute(), info.GetIsolat e());
161 } 162 }
162 163
163 static void readonlyStringAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 164 static void readonlyStringAttributeAttributeGetterCallback(const v8::FunctionCal lbackInfo<v8::Value>& info)
164 { 165 {
165 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 166 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
166 TestObjectV8Internal::readonlyStringAttributeAttributeGetter(info); 167 TestObjectV8Internal::readonlyStringAttributeAttributeGetter(info);
167 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 168 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
168 } 169 }
169 170
170 static void readonlyTestInterfaceEmptyAttributeAttributeGetter(const v8::Propert yCallbackInfo<v8::Value>& info) 171 static void readonlyTestInterfaceEmptyAttributeAttributeGetter(const v8::Functio nCallbackInfo<v8::Value>& info)
171 { 172 {
172 v8::Local<v8::Object> holder = info.Holder(); 173 v8::Local<v8::Object> holder = info.Holder();
173 TestObject* impl = V8TestObject::toImpl(holder); 174 TestObject* impl = V8TestObject::toImpl(holder);
174 RefPtr<TestInterfaceEmpty> cppValue(impl->readonlyTestInterfaceEmptyAttribut e()); 175 RefPtr<TestInterfaceEmpty> cppValue(impl->readonlyTestInterfaceEmptyAttribut e());
175 if (cppValue && DOMDataStore::setReturnValue(info.GetReturnValue(), cppValue .get())) 176 if (cppValue && DOMDataStore::setReturnValue(info.GetReturnValue(), cppValue .get()))
176 return; 177 return;
177 v8::Local<v8::Value> v8Value(toV8(cppValue.get(), holder, info.GetIsolate()) ); 178 v8::Local<v8::Value> v8Value(toV8(cppValue.get(), holder, info.GetIsolate()) );
178 if (!v8Value.IsEmpty()) { 179 if (!v8Value.IsEmpty()) {
179 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString( info.GetIsolate(), "readonlyTestInterfaceEmptyAttribute"), v8Value); 180 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString( info.GetIsolate(), "readonlyTestInterfaceEmptyAttribute"), v8Value);
180 v8SetReturnValue(info, v8Value); 181 v8SetReturnValue(info, v8Value);
181 } 182 }
182 } 183 }
183 184
184 static void readonlyTestInterfaceEmptyAttributeAttributeGetterCallback(v8::Local <v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 185 static void readonlyTestInterfaceEmptyAttributeAttributeGetterCallback(const v8: :FunctionCallbackInfo<v8::Value>& info)
185 { 186 {
186 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 187 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
187 TestObjectV8Internal::readonlyTestInterfaceEmptyAttributeAttributeGetter(inf o); 188 TestObjectV8Internal::readonlyTestInterfaceEmptyAttributeAttributeGetter(inf o);
188 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 189 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
189 } 190 }
190 191
191 static void readonlyLongAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info) 192 static void readonlyLongAttributeAttributeGetter(const v8::FunctionCallbackInfo< v8::Value>& info)
192 { 193 {
193 v8::Local<v8::Object> holder = info.Holder(); 194 v8::Local<v8::Object> holder = info.Holder();
194 TestObject* impl = V8TestObject::toImpl(holder); 195 TestObject* impl = V8TestObject::toImpl(holder);
195 v8SetReturnValueInt(info, impl->readonlyLongAttribute()); 196 v8SetReturnValueInt(info, impl->readonlyLongAttribute());
196 } 197 }
197 198
198 static void readonlyLongAttributeAttributeGetterCallback(v8::Local<v8::Name>, co nst v8::PropertyCallbackInfo<v8::Value>& info) 199 static void readonlyLongAttributeAttributeGetterCallback(const v8::FunctionCallb ackInfo<v8::Value>& info)
199 { 200 {
200 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 201 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
201 TestObjectV8Internal::readonlyLongAttributeAttributeGetter(info); 202 TestObjectV8Internal::readonlyLongAttributeAttributeGetter(info);
202 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 203 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
203 } 204 }
204 205
205 static void dateAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu e>& info) 206 static void dateAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Valu e>& info)
206 { 207 {
207 v8::Local<v8::Object> holder = info.Holder(); 208 v8::Local<v8::Object> holder = info.Holder();
208 TestObject* impl = V8TestObject::toImpl(holder); 209 TestObject* impl = V8TestObject::toImpl(holder);
209 v8SetReturnValue(info, v8DateOrNaN(info.GetIsolate(), impl->dateAttribute()) ); 210 v8SetReturnValue(info, v8DateOrNaN(info.GetIsolate(), impl->dateAttribute()) );
210 } 211 }
211 212
212 static void dateAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8:: PropertyCallbackInfo<v8::Value>& info) 213 static void dateAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo< v8::Value>& info)
213 { 214 {
214 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 215 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
215 TestObjectV8Internal::dateAttributeAttributeGetter(info); 216 TestObjectV8Internal::dateAttributeAttributeGetter(info);
216 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 217 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
217 } 218 }
218 219
219 static void dateAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info) 220 static void dateAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :FunctionCallbackInfo<v8::Value>& info)
220 { 221 {
221 v8::Local<v8::Object> holder = info.Holder(); 222 v8::Local<v8::Object> holder = info.Holder();
222 TestObject* impl = V8TestObject::toImpl(holder); 223 TestObject* impl = V8TestObject::toImpl(holder);
223 double cppValue = toCoreDate(info.GetIsolate(), v8Value); 224 double cppValue = toCoreDate(info.GetIsolate(), v8Value);
224 impl->setDateAttribute(cppValue); 225 impl->setDateAttribute(cppValue);
225 } 226 }
226 227
227 static void dateAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local< v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 228 static void dateAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo< v8::Value>& info)
228 { 229 {
230 v8::Local<v8::Value> v8Value = info[0];
229 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 231 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
230 TestObjectV8Internal::dateAttributeAttributeSetter(v8Value, info); 232 TestObjectV8Internal::dateAttributeAttributeSetter(v8Value, info);
231 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 233 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
232 } 234 }
233 235
234 static void stringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va lue>& info) 236 static void stringAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Va lue>& info)
235 { 237 {
236 v8::Local<v8::Object> holder = info.Holder(); 238 v8::Local<v8::Object> holder = info.Holder();
237 TestObject* impl = V8TestObject::toImpl(holder); 239 TestObject* impl = V8TestObject::toImpl(holder);
238 v8SetReturnValueString(info, impl->stringAttribute(), info.GetIsolate()); 240 v8SetReturnValueString(info, impl->stringAttribute(), info.GetIsolate());
239 } 241 }
240 242
241 static void stringAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8 ::PropertyCallbackInfo<v8::Value>& info) 243 static void stringAttributeAttributeGetterCallback(const v8::FunctionCallbackInf o<v8::Value>& info)
242 { 244 {
243 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 245 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
244 TestObjectV8Internal::stringAttributeAttributeGetter(info); 246 TestObjectV8Internal::stringAttributeAttributeGetter(info);
245 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 247 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
246 } 248 }
247 249
248 static void stringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v 8::PropertyCallbackInfo<void>& info) 250 static void stringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v 8::FunctionCallbackInfo<v8::Value>& info)
249 { 251 {
250 v8::Local<v8::Object> holder = info.Holder(); 252 v8::Local<v8::Object> holder = info.Holder();
251 TestObject* impl = V8TestObject::toImpl(holder); 253 TestObject* impl = V8TestObject::toImpl(holder);
252 V8StringResource<> cppValue = v8Value; 254 V8StringResource<> cppValue = v8Value;
253 if (!cppValue.prepare()) 255 if (!cppValue.prepare())
254 return; 256 return;
255 impl->setStringAttribute(cppValue); 257 impl->setStringAttribute(cppValue);
256 } 258 }
257 259
258 static void stringAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 260 static void stringAttributeAttributeSetterCallback(const v8::FunctionCallbackInf o<v8::Value>& info)
259 { 261 {
262 v8::Local<v8::Value> v8Value = info[0];
260 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 263 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
261 TestObjectV8Internal::stringAttributeAttributeSetter(v8Value, info); 264 TestObjectV8Internal::stringAttributeAttributeSetter(v8Value, info);
262 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 265 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
263 } 266 }
264 267
265 static void byteStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info) 268 static void byteStringAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8 ::Value>& info)
266 { 269 {
267 v8::Local<v8::Object> holder = info.Holder(); 270 v8::Local<v8::Object> holder = info.Holder();
268 TestObject* impl = V8TestObject::toImpl(holder); 271 TestObject* impl = V8TestObject::toImpl(holder);
269 v8SetReturnValueString(info, impl->byteStringAttribute(), info.GetIsolate()) ; 272 v8SetReturnValueString(info, impl->byteStringAttribute(), info.GetIsolate()) ;
270 } 273 }
271 274
272 static void byteStringAttributeAttributeGetterCallback(v8::Local<v8::Name>, cons t v8::PropertyCallbackInfo<v8::Value>& info) 275 static void byteStringAttributeAttributeGetterCallback(const v8::FunctionCallbac kInfo<v8::Value>& info)
273 { 276 {
274 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 277 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
275 TestObjectV8Internal::byteStringAttributeAttributeGetter(info); 278 TestObjectV8Internal::byteStringAttributeAttributeGetter(info);
276 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 279 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
277 } 280 }
278 281
279 static void byteStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info) 282 static void byteStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::FunctionCallbackInfo<v8::Value>& info)
280 { 283 {
281 v8::Local<v8::Object> holder = info.Holder(); 284 v8::Local<v8::Object> holder = info.Holder();
282 ExceptionState exceptionState(ExceptionState::SetterContext, "byteStringAttr ibute", "TestObject", holder, info.GetIsolate()); 285 ExceptionState exceptionState(ExceptionState::SetterContext, "byteStringAttr ibute", "TestObject", holder, info.GetIsolate());
283 TestObject* impl = V8TestObject::toImpl(holder); 286 TestObject* impl = V8TestObject::toImpl(holder);
284 V8StringResource<> cppValue = toByteString(info.GetIsolate(), v8Value, excep tionState); 287 V8StringResource<> cppValue = toByteString(info.GetIsolate(), v8Value, excep tionState);
285 if (exceptionState.throwIfNeeded()) 288 if (exceptionState.throwIfNeeded())
286 return; 289 return;
287 impl->setByteStringAttribute(cppValue); 290 impl->setByteStringAttribute(cppValue);
288 } 291 }
289 292
290 static void byteStringAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 293 static void byteStringAttributeAttributeSetterCallback(const v8::FunctionCallbac kInfo<v8::Value>& info)
291 { 294 {
295 v8::Local<v8::Value> v8Value = info[0];
292 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 296 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
293 TestObjectV8Internal::byteStringAttributeAttributeSetter(v8Value, info); 297 TestObjectV8Internal::byteStringAttributeAttributeSetter(v8Value, info);
294 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 298 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
295 } 299 }
296 300
297 static void usvStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8: :Value>& info) 301 static void usvStringAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8: :Value>& info)
298 { 302 {
299 v8::Local<v8::Object> holder = info.Holder(); 303 v8::Local<v8::Object> holder = info.Holder();
300 TestObject* impl = V8TestObject::toImpl(holder); 304 TestObject* impl = V8TestObject::toImpl(holder);
301 v8SetReturnValueString(info, impl->usvStringAttribute(), info.GetIsolate()); 305 v8SetReturnValueString(info, impl->usvStringAttribute(), info.GetIsolate());
302 } 306 }
303 307
304 static void usvStringAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 308 static void usvStringAttributeAttributeGetterCallback(const v8::FunctionCallback Info<v8::Value>& info)
305 { 309 {
306 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 310 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
307 TestObjectV8Internal::usvStringAttributeAttributeGetter(info); 311 TestObjectV8Internal::usvStringAttributeAttributeGetter(info);
308 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 312 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
309 } 313 }
310 314
311 static void usvStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons t v8::PropertyCallbackInfo<void>& info) 315 static void usvStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons t v8::FunctionCallbackInfo<v8::Value>& info)
312 { 316 {
313 v8::Local<v8::Object> holder = info.Holder(); 317 v8::Local<v8::Object> holder = info.Holder();
314 ExceptionState exceptionState(ExceptionState::SetterContext, "usvStringAttri bute", "TestObject", holder, info.GetIsolate()); 318 ExceptionState exceptionState(ExceptionState::SetterContext, "usvStringAttri bute", "TestObject", holder, info.GetIsolate());
315 TestObject* impl = V8TestObject::toImpl(holder); 319 TestObject* impl = V8TestObject::toImpl(holder);
316 V8StringResource<> cppValue = toUSVString(info.GetIsolate(), v8Value, except ionState); 320 V8StringResource<> cppValue = toUSVString(info.GetIsolate(), v8Value, except ionState);
317 if (exceptionState.throwIfNeeded()) 321 if (exceptionState.throwIfNeeded())
318 return; 322 return;
319 impl->setUsvStringAttribute(cppValue); 323 impl->setUsvStringAttribute(cppValue);
320 } 324 }
321 325
322 static void usvStringAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::L ocal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 326 static void usvStringAttributeAttributeSetterCallback(const v8::FunctionCallback Info<v8::Value>& info)
323 { 327 {
328 v8::Local<v8::Value> v8Value = info[0];
324 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 329 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
325 TestObjectV8Internal::usvStringAttributeAttributeSetter(v8Value, info); 330 TestObjectV8Internal::usvStringAttributeAttributeSetter(v8Value, info);
326 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 331 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
327 } 332 }
328 333
329 static void domTimeStampAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info) 334 static void domTimeStampAttributeAttributeGetter(const v8::FunctionCallbackInfo< v8::Value>& info)
330 { 335 {
331 v8::Local<v8::Object> holder = info.Holder(); 336 v8::Local<v8::Object> holder = info.Holder();
332 TestObject* impl = V8TestObject::toImpl(holder); 337 TestObject* impl = V8TestObject::toImpl(holder);
333 v8SetReturnValue(info, static_cast<double>(impl->domTimeStampAttribute())); 338 v8SetReturnValue(info, static_cast<double>(impl->domTimeStampAttribute()));
334 } 339 }
335 340
336 static void domTimeStampAttributeAttributeGetterCallback(v8::Local<v8::Name>, co nst v8::PropertyCallbackInfo<v8::Value>& info) 341 static void domTimeStampAttributeAttributeGetterCallback(const v8::FunctionCallb ackInfo<v8::Value>& info)
337 { 342 {
338 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 343 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
339 TestObjectV8Internal::domTimeStampAttributeAttributeGetter(info); 344 TestObjectV8Internal::domTimeStampAttributeAttributeGetter(info);
340 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 345 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
341 } 346 }
342 347
343 static void domTimeStampAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info) 348 static void domTimeStampAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::FunctionCallbackInfo<v8::Value>& info)
344 { 349 {
345 v8::Local<v8::Object> holder = info.Holder(); 350 v8::Local<v8::Object> holder = info.Holder();
346 ExceptionState exceptionState(ExceptionState::SetterContext, "domTimeStampAt tribute", "TestObject", holder, info.GetIsolate()); 351 ExceptionState exceptionState(ExceptionState::SetterContext, "domTimeStampAt tribute", "TestObject", holder, info.GetIsolate());
347 TestObject* impl = V8TestObject::toImpl(holder); 352 TestObject* impl = V8TestObject::toImpl(holder);
348 unsigned long long cppValue = toUInt64(info.GetIsolate(), v8Value, NormalCon version, exceptionState); 353 unsigned long long cppValue = toUInt64(info.GetIsolate(), v8Value, NormalCon version, exceptionState);
349 if (exceptionState.throwIfNeeded()) 354 if (exceptionState.throwIfNeeded())
350 return; 355 return;
351 impl->setDomTimeStampAttribute(cppValue); 356 impl->setDomTimeStampAttribute(cppValue);
352 } 357 }
353 358
354 static void domTimeStampAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 359 static void domTimeStampAttributeAttributeSetterCallback(const v8::FunctionCallb ackInfo<v8::Value>& info)
355 { 360 {
361 v8::Local<v8::Value> v8Value = info[0];
356 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 362 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
357 TestObjectV8Internal::domTimeStampAttributeAttributeSetter(v8Value, info); 363 TestObjectV8Internal::domTimeStampAttributeAttributeSetter(v8Value, info);
358 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 364 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
359 } 365 }
360 366
361 static void booleanAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info) 367 static void booleanAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::V alue>& info)
362 { 368 {
363 v8::Local<v8::Object> holder = info.Holder(); 369 v8::Local<v8::Object> holder = info.Holder();
364 TestObject* impl = V8TestObject::toImpl(holder); 370 TestObject* impl = V8TestObject::toImpl(holder);
365 v8SetReturnValueBool(info, impl->booleanAttribute()); 371 v8SetReturnValueBool(info, impl->booleanAttribute());
366 } 372 }
367 373
368 static void booleanAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v 8::PropertyCallbackInfo<v8::Value>& info) 374 static void booleanAttributeAttributeGetterCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
369 { 375 {
370 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 376 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
371 TestObjectV8Internal::booleanAttributeAttributeGetter(info); 377 TestObjectV8Internal::booleanAttributeAttributeGetter(info);
372 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 378 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
373 } 379 }
374 380
375 static void booleanAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 381 static void booleanAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
376 { 382 {
377 v8::Local<v8::Object> holder = info.Holder(); 383 v8::Local<v8::Object> holder = info.Holder();
378 TestObject* impl = V8TestObject::toImpl(holder); 384 TestObject* impl = V8TestObject::toImpl(holder);
379 bool cppValue = v8Value->BooleanValue(); 385 bool cppValue = v8Value->BooleanValue();
380 impl->setBooleanAttribute(cppValue); 386 impl->setBooleanAttribute(cppValue);
381 } 387 }
382 388
383 static void booleanAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Loc al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 389 static void booleanAttributeAttributeSetterCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
384 { 390 {
391 v8::Local<v8::Value> v8Value = info[0];
385 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 392 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
386 TestObjectV8Internal::booleanAttributeAttributeSetter(v8Value, info); 393 TestObjectV8Internal::booleanAttributeAttributeSetter(v8Value, info);
387 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 394 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
388 } 395 }
389 396
390 static void byteAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu e>& info) 397 static void byteAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Valu e>& info)
391 { 398 {
392 v8::Local<v8::Object> holder = info.Holder(); 399 v8::Local<v8::Object> holder = info.Holder();
393 TestObject* impl = V8TestObject::toImpl(holder); 400 TestObject* impl = V8TestObject::toImpl(holder);
394 v8SetReturnValueInt(info, impl->byteAttribute()); 401 v8SetReturnValueInt(info, impl->byteAttribute());
395 } 402 }
396 403
397 static void byteAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8:: PropertyCallbackInfo<v8::Value>& info) 404 static void byteAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo< v8::Value>& info)
398 { 405 {
399 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 406 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
400 TestObjectV8Internal::byteAttributeAttributeGetter(info); 407 TestObjectV8Internal::byteAttributeAttributeGetter(info);
401 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 408 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
402 } 409 }
403 410
404 static void byteAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info) 411 static void byteAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :FunctionCallbackInfo<v8::Value>& info)
405 { 412 {
406 v8::Local<v8::Object> holder = info.Holder(); 413 v8::Local<v8::Object> holder = info.Holder();
407 ExceptionState exceptionState(ExceptionState::SetterContext, "byteAttribute" , "TestObject", holder, info.GetIsolate()); 414 ExceptionState exceptionState(ExceptionState::SetterContext, "byteAttribute" , "TestObject", holder, info.GetIsolate());
408 TestObject* impl = V8TestObject::toImpl(holder); 415 TestObject* impl = V8TestObject::toImpl(holder);
409 int cppValue = toInt8(info.GetIsolate(), v8Value, NormalConversion, exceptio nState); 416 int cppValue = toInt8(info.GetIsolate(), v8Value, NormalConversion, exceptio nState);
410 if (exceptionState.throwIfNeeded()) 417 if (exceptionState.throwIfNeeded())
411 return; 418 return;
412 impl->setByteAttribute(cppValue); 419 impl->setByteAttribute(cppValue);
413 } 420 }
414 421
415 static void byteAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local< v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 422 static void byteAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo< v8::Value>& info)
416 { 423 {
424 v8::Local<v8::Value> v8Value = info[0];
417 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 425 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
418 TestObjectV8Internal::byteAttributeAttributeSetter(v8Value, info); 426 TestObjectV8Internal::byteAttributeAttributeSetter(v8Value, info);
419 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 427 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
420 } 428 }
421 429
422 static void doubleAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va lue>& info) 430 static void doubleAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Va lue>& info)
423 { 431 {
424 v8::Local<v8::Object> holder = info.Holder(); 432 v8::Local<v8::Object> holder = info.Holder();
425 TestObject* impl = V8TestObject::toImpl(holder); 433 TestObject* impl = V8TestObject::toImpl(holder);
426 v8SetReturnValue(info, impl->doubleAttribute()); 434 v8SetReturnValue(info, impl->doubleAttribute());
427 } 435 }
428 436
429 static void doubleAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8 ::PropertyCallbackInfo<v8::Value>& info) 437 static void doubleAttributeAttributeGetterCallback(const v8::FunctionCallbackInf o<v8::Value>& info)
430 { 438 {
431 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 439 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
432 TestObjectV8Internal::doubleAttributeAttributeGetter(info); 440 TestObjectV8Internal::doubleAttributeAttributeGetter(info);
433 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 441 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
434 } 442 }
435 443
436 static void doubleAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v 8::PropertyCallbackInfo<void>& info) 444 static void doubleAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v 8::FunctionCallbackInfo<v8::Value>& info)
437 { 445 {
438 v8::Local<v8::Object> holder = info.Holder(); 446 v8::Local<v8::Object> holder = info.Holder();
439 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleAttribut e", "TestObject", holder, info.GetIsolate()); 447 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleAttribut e", "TestObject", holder, info.GetIsolate());
440 TestObject* impl = V8TestObject::toImpl(holder); 448 TestObject* impl = V8TestObject::toImpl(holder);
441 double cppValue = toRestrictedDouble(info.GetIsolate(), v8Value, exceptionSt ate); 449 double cppValue = toRestrictedDouble(info.GetIsolate(), v8Value, exceptionSt ate);
442 if (exceptionState.throwIfNeeded()) 450 if (exceptionState.throwIfNeeded())
443 return; 451 return;
444 impl->setDoubleAttribute(cppValue); 452 impl->setDoubleAttribute(cppValue);
445 } 453 }
446 454
447 static void doubleAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 455 static void doubleAttributeAttributeSetterCallback(const v8::FunctionCallbackInf o<v8::Value>& info)
448 { 456 {
457 v8::Local<v8::Value> v8Value = info[0];
449 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 458 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
450 TestObjectV8Internal::doubleAttributeAttributeSetter(v8Value, info); 459 TestObjectV8Internal::doubleAttributeAttributeSetter(v8Value, info);
451 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 460 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
452 } 461 }
453 462
454 static void floatAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val ue>& info) 463 static void floatAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Val ue>& info)
455 { 464 {
456 v8::Local<v8::Object> holder = info.Holder(); 465 v8::Local<v8::Object> holder = info.Holder();
457 TestObject* impl = V8TestObject::toImpl(holder); 466 TestObject* impl = V8TestObject::toImpl(holder);
458 v8SetReturnValue(info, impl->floatAttribute()); 467 v8SetReturnValue(info, impl->floatAttribute());
459 } 468 }
460 469
461 static void floatAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8: :PropertyCallbackInfo<v8::Value>& info) 470 static void floatAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
462 { 471 {
463 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 472 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
464 TestObjectV8Internal::floatAttributeAttributeGetter(info); 473 TestObjectV8Internal::floatAttributeAttributeGetter(info);
465 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 474 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
466 } 475 }
467 476
468 static void floatAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::PropertyCallbackInfo<void>& info) 477 static void floatAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::FunctionCallbackInfo<v8::Value>& info)
469 { 478 {
470 v8::Local<v8::Object> holder = info.Holder(); 479 v8::Local<v8::Object> holder = info.Holder();
471 ExceptionState exceptionState(ExceptionState::SetterContext, "floatAttribute ", "TestObject", holder, info.GetIsolate()); 480 ExceptionState exceptionState(ExceptionState::SetterContext, "floatAttribute ", "TestObject", holder, info.GetIsolate());
472 TestObject* impl = V8TestObject::toImpl(holder); 481 TestObject* impl = V8TestObject::toImpl(holder);
473 float cppValue = toRestrictedFloat(info.GetIsolate(), v8Value, exceptionStat e); 482 float cppValue = toRestrictedFloat(info.GetIsolate(), v8Value, exceptionStat e);
474 if (exceptionState.throwIfNeeded()) 483 if (exceptionState.throwIfNeeded())
475 return; 484 return;
476 impl->setFloatAttribute(cppValue); 485 impl->setFloatAttribute(cppValue);
477 } 486 }
478 487
479 static void floatAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local <v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 488 static void floatAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
480 { 489 {
490 v8::Local<v8::Value> v8Value = info[0];
481 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 491 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
482 TestObjectV8Internal::floatAttributeAttributeSetter(v8Value, info); 492 TestObjectV8Internal::floatAttributeAttributeSetter(v8Value, info);
483 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 493 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
484 } 494 }
485 495
486 static void longAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu e>& info) 496 static void longAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Valu e>& info)
487 { 497 {
488 v8::Local<v8::Object> holder = info.Holder(); 498 v8::Local<v8::Object> holder = info.Holder();
489 TestObject* impl = V8TestObject::toImpl(holder); 499 TestObject* impl = V8TestObject::toImpl(holder);
490 v8SetReturnValueInt(info, impl->longAttribute()); 500 v8SetReturnValueInt(info, impl->longAttribute());
491 } 501 }
492 502
493 static void longAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8:: PropertyCallbackInfo<v8::Value>& info) 503 static void longAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo< v8::Value>& info)
494 { 504 {
495 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 505 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
496 TestObjectV8Internal::longAttributeAttributeGetter(info); 506 TestObjectV8Internal::longAttributeAttributeGetter(info);
497 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 507 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
498 } 508 }
499 509
500 static void longAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info) 510 static void longAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :FunctionCallbackInfo<v8::Value>& info)
501 { 511 {
502 v8::Local<v8::Object> holder = info.Holder(); 512 v8::Local<v8::Object> holder = info.Holder();
503 ExceptionState exceptionState(ExceptionState::SetterContext, "longAttribute" , "TestObject", holder, info.GetIsolate()); 513 ExceptionState exceptionState(ExceptionState::SetterContext, "longAttribute" , "TestObject", holder, info.GetIsolate());
504 TestObject* impl = V8TestObject::toImpl(holder); 514 TestObject* impl = V8TestObject::toImpl(holder);
505 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 515 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
506 if (exceptionState.throwIfNeeded()) 516 if (exceptionState.throwIfNeeded())
507 return; 517 return;
508 impl->setLongAttribute(cppValue); 518 impl->setLongAttribute(cppValue);
509 } 519 }
510 520
511 static void longAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local< v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 521 static void longAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo< v8::Value>& info)
512 { 522 {
523 v8::Local<v8::Value> v8Value = info[0];
513 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 524 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
514 TestObjectV8Internal::longAttributeAttributeSetter(v8Value, info); 525 TestObjectV8Internal::longAttributeAttributeSetter(v8Value, info);
515 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 526 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
516 } 527 }
517 528
518 static void longLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8:: Value>& info) 529 static void longLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8:: Value>& info)
519 { 530 {
520 v8::Local<v8::Object> holder = info.Holder(); 531 v8::Local<v8::Object> holder = info.Holder();
521 TestObject* impl = V8TestObject::toImpl(holder); 532 TestObject* impl = V8TestObject::toImpl(holder);
522 v8SetReturnValue(info, static_cast<double>(impl->longLongAttribute())); 533 v8SetReturnValue(info, static_cast<double>(impl->longLongAttribute()));
523 } 534 }
524 535
525 static void longLongAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 536 static void longLongAttributeAttributeGetterCallback(const v8::FunctionCallbackI nfo<v8::Value>& info)
526 { 537 {
527 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 538 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
528 TestObjectV8Internal::longLongAttributeAttributeGetter(info); 539 TestObjectV8Internal::longLongAttributeAttributeGetter(info);
529 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 540 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
530 } 541 }
531 542
532 static void longLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 543 static void longLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
533 { 544 {
534 v8::Local<v8::Object> holder = info.Holder(); 545 v8::Local<v8::Object> holder = info.Holder();
535 ExceptionState exceptionState(ExceptionState::SetterContext, "longLongAttrib ute", "TestObject", holder, info.GetIsolate()); 546 ExceptionState exceptionState(ExceptionState::SetterContext, "longLongAttrib ute", "TestObject", holder, info.GetIsolate());
536 TestObject* impl = V8TestObject::toImpl(holder); 547 TestObject* impl = V8TestObject::toImpl(holder);
537 long long cppValue = toInt64(info.GetIsolate(), v8Value, NormalConversion, e xceptionState); 548 long long cppValue = toInt64(info.GetIsolate(), v8Value, NormalConversion, e xceptionState);
538 if (exceptionState.throwIfNeeded()) 549 if (exceptionState.throwIfNeeded())
539 return; 550 return;
540 impl->setLongLongAttribute(cppValue); 551 impl->setLongLongAttribute(cppValue);
541 } 552 }
542 553
543 static void longLongAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 554 static void longLongAttributeAttributeSetterCallback(const v8::FunctionCallbackI nfo<v8::Value>& info)
544 { 555 {
556 v8::Local<v8::Value> v8Value = info[0];
545 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 557 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
546 TestObjectV8Internal::longLongAttributeAttributeSetter(v8Value, info); 558 TestObjectV8Internal::longLongAttributeAttributeSetter(v8Value, info);
547 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 559 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
548 } 560 }
549 561
550 static void octetAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val ue>& info) 562 static void octetAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Val ue>& info)
551 { 563 {
552 v8::Local<v8::Object> holder = info.Holder(); 564 v8::Local<v8::Object> holder = info.Holder();
553 TestObject* impl = V8TestObject::toImpl(holder); 565 TestObject* impl = V8TestObject::toImpl(holder);
554 v8SetReturnValueUnsigned(info, impl->octetAttribute()); 566 v8SetReturnValueUnsigned(info, impl->octetAttribute());
555 } 567 }
556 568
557 static void octetAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8: :PropertyCallbackInfo<v8::Value>& info) 569 static void octetAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
558 { 570 {
559 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 571 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
560 TestObjectV8Internal::octetAttributeAttributeGetter(info); 572 TestObjectV8Internal::octetAttributeAttributeGetter(info);
561 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 573 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
562 } 574 }
563 575
564 static void octetAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::PropertyCallbackInfo<void>& info) 576 static void octetAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::FunctionCallbackInfo<v8::Value>& info)
565 { 577 {
566 v8::Local<v8::Object> holder = info.Holder(); 578 v8::Local<v8::Object> holder = info.Holder();
567 ExceptionState exceptionState(ExceptionState::SetterContext, "octetAttribute ", "TestObject", holder, info.GetIsolate()); 579 ExceptionState exceptionState(ExceptionState::SetterContext, "octetAttribute ", "TestObject", holder, info.GetIsolate());
568 TestObject* impl = V8TestObject::toImpl(holder); 580 TestObject* impl = V8TestObject::toImpl(holder);
569 unsigned cppValue = toUInt8(info.GetIsolate(), v8Value, NormalConversion, ex ceptionState); 581 unsigned cppValue = toUInt8(info.GetIsolate(), v8Value, NormalConversion, ex ceptionState);
570 if (exceptionState.throwIfNeeded()) 582 if (exceptionState.throwIfNeeded())
571 return; 583 return;
572 impl->setOctetAttribute(cppValue); 584 impl->setOctetAttribute(cppValue);
573 } 585 }
574 586
575 static void octetAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local <v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 587 static void octetAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
576 { 588 {
589 v8::Local<v8::Value> v8Value = info[0];
577 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 590 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
578 TestObjectV8Internal::octetAttributeAttributeSetter(v8Value, info); 591 TestObjectV8Internal::octetAttributeAttributeSetter(v8Value, info);
579 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 592 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
580 } 593 }
581 594
582 static void shortAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val ue>& info) 595 static void shortAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Val ue>& info)
583 { 596 {
584 v8::Local<v8::Object> holder = info.Holder(); 597 v8::Local<v8::Object> holder = info.Holder();
585 TestObject* impl = V8TestObject::toImpl(holder); 598 TestObject* impl = V8TestObject::toImpl(holder);
586 v8SetReturnValueInt(info, impl->shortAttribute()); 599 v8SetReturnValueInt(info, impl->shortAttribute());
587 } 600 }
588 601
589 static void shortAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8: :PropertyCallbackInfo<v8::Value>& info) 602 static void shortAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
590 { 603 {
591 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 604 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
592 TestObjectV8Internal::shortAttributeAttributeGetter(info); 605 TestObjectV8Internal::shortAttributeAttributeGetter(info);
593 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 606 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
594 } 607 }
595 608
596 static void shortAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::PropertyCallbackInfo<void>& info) 609 static void shortAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::FunctionCallbackInfo<v8::Value>& info)
597 { 610 {
598 v8::Local<v8::Object> holder = info.Holder(); 611 v8::Local<v8::Object> holder = info.Holder();
599 ExceptionState exceptionState(ExceptionState::SetterContext, "shortAttribute ", "TestObject", holder, info.GetIsolate()); 612 ExceptionState exceptionState(ExceptionState::SetterContext, "shortAttribute ", "TestObject", holder, info.GetIsolate());
600 TestObject* impl = V8TestObject::toImpl(holder); 613 TestObject* impl = V8TestObject::toImpl(holder);
601 int cppValue = toInt16(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 614 int cppValue = toInt16(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
602 if (exceptionState.throwIfNeeded()) 615 if (exceptionState.throwIfNeeded())
603 return; 616 return;
604 impl->setShortAttribute(cppValue); 617 impl->setShortAttribute(cppValue);
605 } 618 }
606 619
607 static void shortAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local <v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 620 static void shortAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
608 { 621 {
622 v8::Local<v8::Value> v8Value = info[0];
609 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 623 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
610 TestObjectV8Internal::shortAttributeAttributeSetter(v8Value, info); 624 TestObjectV8Internal::shortAttributeAttributeSetter(v8Value, info);
611 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 625 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
612 } 626 }
613 627
614 static void unrestrictedDoubleAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info) 628 static void unrestrictedDoubleAttributeAttributeGetter(const v8::FunctionCallbac kInfo<v8::Value>& info)
615 { 629 {
616 v8::Local<v8::Object> holder = info.Holder(); 630 v8::Local<v8::Object> holder = info.Holder();
617 TestObject* impl = V8TestObject::toImpl(holder); 631 TestObject* impl = V8TestObject::toImpl(holder);
618 v8SetReturnValue(info, impl->unrestrictedDoubleAttribute()); 632 v8SetReturnValue(info, impl->unrestrictedDoubleAttribute());
619 } 633 }
620 634
621 static void unrestrictedDoubleAttributeAttributeGetterCallback(v8::Local<v8::Nam e>, const v8::PropertyCallbackInfo<v8::Value>& info) 635 static void unrestrictedDoubleAttributeAttributeGetterCallback(const v8::Functio nCallbackInfo<v8::Value>& info)
622 { 636 {
623 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 637 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
624 TestObjectV8Internal::unrestrictedDoubleAttributeAttributeGetter(info); 638 TestObjectV8Internal::unrestrictedDoubleAttributeAttributeGetter(info);
625 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 639 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
626 } 640 }
627 641
628 static void unrestrictedDoubleAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::PropertyCallbackInfo<void>& info) 642 static void unrestrictedDoubleAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::FunctionCallbackInfo<v8::Value>& info)
629 { 643 {
630 v8::Local<v8::Object> holder = info.Holder(); 644 v8::Local<v8::Object> holder = info.Holder();
631 ExceptionState exceptionState(ExceptionState::SetterContext, "unrestrictedDo ubleAttribute", "TestObject", holder, info.GetIsolate()); 645 ExceptionState exceptionState(ExceptionState::SetterContext, "unrestrictedDo ubleAttribute", "TestObject", holder, info.GetIsolate());
632 TestObject* impl = V8TestObject::toImpl(holder); 646 TestObject* impl = V8TestObject::toImpl(holder);
633 double cppValue = toDouble(info.GetIsolate(), v8Value, exceptionState); 647 double cppValue = toDouble(info.GetIsolate(), v8Value, exceptionState);
634 if (exceptionState.throwIfNeeded()) 648 if (exceptionState.throwIfNeeded())
635 return; 649 return;
636 impl->setUnrestrictedDoubleAttribute(cppValue); 650 impl->setUnrestrictedDoubleAttribute(cppValue);
637 } 651 }
638 652
639 static void unrestrictedDoubleAttributeAttributeSetterCallback(v8::Local<v8::Nam e>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 653 static void unrestrictedDoubleAttributeAttributeSetterCallback(const v8::Functio nCallbackInfo<v8::Value>& info)
640 { 654 {
655 v8::Local<v8::Value> v8Value = info[0];
641 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 656 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
642 TestObjectV8Internal::unrestrictedDoubleAttributeAttributeSetter(v8Value, in fo); 657 TestObjectV8Internal::unrestrictedDoubleAttributeAttributeSetter(v8Value, in fo);
643 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 658 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
644 } 659 }
645 660
646 static void unrestrictedFloatAttributeAttributeGetter(const v8::PropertyCallback Info<v8::Value>& info) 661 static void unrestrictedFloatAttributeAttributeGetter(const v8::FunctionCallback Info<v8::Value>& info)
647 { 662 {
648 v8::Local<v8::Object> holder = info.Holder(); 663 v8::Local<v8::Object> holder = info.Holder();
649 TestObject* impl = V8TestObject::toImpl(holder); 664 TestObject* impl = V8TestObject::toImpl(holder);
650 v8SetReturnValue(info, impl->unrestrictedFloatAttribute()); 665 v8SetReturnValue(info, impl->unrestrictedFloatAttribute());
651 } 666 }
652 667
653 static void unrestrictedFloatAttributeAttributeGetterCallback(v8::Local<v8::Name >, const v8::PropertyCallbackInfo<v8::Value>& info) 668 static void unrestrictedFloatAttributeAttributeGetterCallback(const v8::Function CallbackInfo<v8::Value>& info)
654 { 669 {
655 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 670 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
656 TestObjectV8Internal::unrestrictedFloatAttributeAttributeGetter(info); 671 TestObjectV8Internal::unrestrictedFloatAttributeAttributeGetter(info);
657 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 672 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
658 } 673 }
659 674
660 static void unrestrictedFloatAttributeAttributeSetter(v8::Local<v8::Value> v8Val ue, const v8::PropertyCallbackInfo<void>& info) 675 static void unrestrictedFloatAttributeAttributeSetter(v8::Local<v8::Value> v8Val ue, const v8::FunctionCallbackInfo<v8::Value>& info)
661 { 676 {
662 v8::Local<v8::Object> holder = info.Holder(); 677 v8::Local<v8::Object> holder = info.Holder();
663 ExceptionState exceptionState(ExceptionState::SetterContext, "unrestrictedFl oatAttribute", "TestObject", holder, info.GetIsolate()); 678 ExceptionState exceptionState(ExceptionState::SetterContext, "unrestrictedFl oatAttribute", "TestObject", holder, info.GetIsolate());
664 TestObject* impl = V8TestObject::toImpl(holder); 679 TestObject* impl = V8TestObject::toImpl(holder);
665 float cppValue = toFloat(info.GetIsolate(), v8Value, exceptionState); 680 float cppValue = toFloat(info.GetIsolate(), v8Value, exceptionState);
666 if (exceptionState.throwIfNeeded()) 681 if (exceptionState.throwIfNeeded())
667 return; 682 return;
668 impl->setUnrestrictedFloatAttribute(cppValue); 683 impl->setUnrestrictedFloatAttribute(cppValue);
669 } 684 }
670 685
671 static void unrestrictedFloatAttributeAttributeSetterCallback(v8::Local<v8::Name >, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 686 static void unrestrictedFloatAttributeAttributeSetterCallback(const v8::Function CallbackInfo<v8::Value>& info)
672 { 687 {
688 v8::Local<v8::Value> v8Value = info[0];
673 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 689 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
674 TestObjectV8Internal::unrestrictedFloatAttributeAttributeSetter(v8Value, inf o); 690 TestObjectV8Internal::unrestrictedFloatAttributeAttributeSetter(v8Value, inf o);
675 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 691 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
676 } 692 }
677 693
678 static void unsignedLongAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info) 694 static void unsignedLongAttributeAttributeGetter(const v8::FunctionCallbackInfo< v8::Value>& info)
679 { 695 {
680 v8::Local<v8::Object> holder = info.Holder(); 696 v8::Local<v8::Object> holder = info.Holder();
681 TestObject* impl = V8TestObject::toImpl(holder); 697 TestObject* impl = V8TestObject::toImpl(holder);
682 v8SetReturnValueUnsigned(info, impl->unsignedLongAttribute()); 698 v8SetReturnValueUnsigned(info, impl->unsignedLongAttribute());
683 } 699 }
684 700
685 static void unsignedLongAttributeAttributeGetterCallback(v8::Local<v8::Name>, co nst v8::PropertyCallbackInfo<v8::Value>& info) 701 static void unsignedLongAttributeAttributeGetterCallback(const v8::FunctionCallb ackInfo<v8::Value>& info)
686 { 702 {
687 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 703 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
688 TestObjectV8Internal::unsignedLongAttributeAttributeGetter(info); 704 TestObjectV8Internal::unsignedLongAttributeAttributeGetter(info);
689 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 705 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
690 } 706 }
691 707
692 static void unsignedLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info) 708 static void unsignedLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::FunctionCallbackInfo<v8::Value>& info)
693 { 709 {
694 v8::Local<v8::Object> holder = info.Holder(); 710 v8::Local<v8::Object> holder = info.Holder();
695 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedLongAt tribute", "TestObject", holder, info.GetIsolate()); 711 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedLongAt tribute", "TestObject", holder, info.GetIsolate());
696 TestObject* impl = V8TestObject::toImpl(holder); 712 TestObject* impl = V8TestObject::toImpl(holder);
697 unsigned cppValue = toUInt32(info.GetIsolate(), v8Value, NormalConversion, e xceptionState); 713 unsigned cppValue = toUInt32(info.GetIsolate(), v8Value, NormalConversion, e xceptionState);
698 if (exceptionState.throwIfNeeded()) 714 if (exceptionState.throwIfNeeded())
699 return; 715 return;
700 impl->setUnsignedLongAttribute(cppValue); 716 impl->setUnsignedLongAttribute(cppValue);
701 } 717 }
702 718
703 static void unsignedLongAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 719 static void unsignedLongAttributeAttributeSetterCallback(const v8::FunctionCallb ackInfo<v8::Value>& info)
704 { 720 {
721 v8::Local<v8::Value> v8Value = info[0];
705 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 722 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
706 TestObjectV8Internal::unsignedLongAttributeAttributeSetter(v8Value, info); 723 TestObjectV8Internal::unsignedLongAttributeAttributeSetter(v8Value, info);
707 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 724 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
708 } 725 }
709 726
710 static void unsignedLongLongAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info) 727 static void unsignedLongLongAttributeAttributeGetter(const v8::FunctionCallbackI nfo<v8::Value>& info)
711 { 728 {
712 v8::Local<v8::Object> holder = info.Holder(); 729 v8::Local<v8::Object> holder = info.Holder();
713 TestObject* impl = V8TestObject::toImpl(holder); 730 TestObject* impl = V8TestObject::toImpl(holder);
714 v8SetReturnValue(info, static_cast<double>(impl->unsignedLongLongAttribute() )); 731 v8SetReturnValue(info, static_cast<double>(impl->unsignedLongLongAttribute() ));
715 } 732 }
716 733
717 static void unsignedLongLongAttributeAttributeGetterCallback(v8::Local<v8::Name> , const v8::PropertyCallbackInfo<v8::Value>& info) 734 static void unsignedLongLongAttributeAttributeGetterCallback(const v8::FunctionC allbackInfo<v8::Value>& info)
718 { 735 {
719 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 736 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
720 TestObjectV8Internal::unsignedLongLongAttributeAttributeGetter(info); 737 TestObjectV8Internal::unsignedLongLongAttributeAttributeGetter(info);
721 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 738 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
722 } 739 }
723 740
724 static void unsignedLongLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::PropertyCallbackInfo<void>& info) 741 static void unsignedLongLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::FunctionCallbackInfo<v8::Value>& info)
725 { 742 {
726 v8::Local<v8::Object> holder = info.Holder(); 743 v8::Local<v8::Object> holder = info.Holder();
727 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedLongLo ngAttribute", "TestObject", holder, info.GetIsolate()); 744 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedLongLo ngAttribute", "TestObject", holder, info.GetIsolate());
728 TestObject* impl = V8TestObject::toImpl(holder); 745 TestObject* impl = V8TestObject::toImpl(holder);
729 unsigned long long cppValue = toUInt64(info.GetIsolate(), v8Value, NormalCon version, exceptionState); 746 unsigned long long cppValue = toUInt64(info.GetIsolate(), v8Value, NormalCon version, exceptionState);
730 if (exceptionState.throwIfNeeded()) 747 if (exceptionState.throwIfNeeded())
731 return; 748 return;
732 impl->setUnsignedLongLongAttribute(cppValue); 749 impl->setUnsignedLongLongAttribute(cppValue);
733 } 750 }
734 751
735 static void unsignedLongLongAttributeAttributeSetterCallback(v8::Local<v8::Name> , v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 752 static void unsignedLongLongAttributeAttributeSetterCallback(const v8::FunctionC allbackInfo<v8::Value>& info)
736 { 753 {
754 v8::Local<v8::Value> v8Value = info[0];
737 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 755 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
738 TestObjectV8Internal::unsignedLongLongAttributeAttributeSetter(v8Value, info ); 756 TestObjectV8Internal::unsignedLongLongAttributeAttributeSetter(v8Value, info );
739 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 757 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
740 } 758 }
741 759
742 static void unsignedShortAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info) 760 static void unsignedShortAttributeAttributeGetter(const v8::FunctionCallbackInfo <v8::Value>& info)
743 { 761 {
744 v8::Local<v8::Object> holder = info.Holder(); 762 v8::Local<v8::Object> holder = info.Holder();
745 TestObject* impl = V8TestObject::toImpl(holder); 763 TestObject* impl = V8TestObject::toImpl(holder);
746 v8SetReturnValueUnsigned(info, impl->unsignedShortAttribute()); 764 v8SetReturnValueUnsigned(info, impl->unsignedShortAttribute());
747 } 765 }
748 766
749 static void unsignedShortAttributeAttributeGetterCallback(v8::Local<v8::Name>, c onst v8::PropertyCallbackInfo<v8::Value>& info) 767 static void unsignedShortAttributeAttributeGetterCallback(const v8::FunctionCall backInfo<v8::Value>& info)
750 { 768 {
751 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 769 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
752 TestObjectV8Internal::unsignedShortAttributeAttributeGetter(info); 770 TestObjectV8Internal::unsignedShortAttributeAttributeGetter(info);
753 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 771 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
754 } 772 }
755 773
756 static void unsignedShortAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 774 static void unsignedShortAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
757 { 775 {
758 v8::Local<v8::Object> holder = info.Holder(); 776 v8::Local<v8::Object> holder = info.Holder();
759 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedShortA ttribute", "TestObject", holder, info.GetIsolate()); 777 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedShortA ttribute", "TestObject", holder, info.GetIsolate());
760 TestObject* impl = V8TestObject::toImpl(holder); 778 TestObject* impl = V8TestObject::toImpl(holder);
761 unsigned cppValue = toUInt16(info.GetIsolate(), v8Value, NormalConversion, e xceptionState); 779 unsigned cppValue = toUInt16(info.GetIsolate(), v8Value, NormalConversion, e xceptionState);
762 if (exceptionState.throwIfNeeded()) 780 if (exceptionState.throwIfNeeded())
763 return; 781 return;
764 impl->setUnsignedShortAttribute(cppValue); 782 impl->setUnsignedShortAttribute(cppValue);
765 } 783 }
766 784
767 static void unsignedShortAttributeAttributeSetterCallback(v8::Local<v8::Name>, v 8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 785 static void unsignedShortAttributeAttributeSetterCallback(const v8::FunctionCall backInfo<v8::Value>& info)
768 { 786 {
787 v8::Local<v8::Value> v8Value = info[0];
769 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 788 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
770 TestObjectV8Internal::unsignedShortAttributeAttributeSetter(v8Value, info); 789 TestObjectV8Internal::unsignedShortAttributeAttributeSetter(v8Value, info);
771 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 790 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
772 } 791 }
773 792
774 static void testInterfaceEmptyAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info) 793 static void testInterfaceEmptyAttributeAttributeGetter(const v8::FunctionCallbac kInfo<v8::Value>& info)
775 { 794 {
776 v8::Local<v8::Object> holder = info.Holder(); 795 v8::Local<v8::Object> holder = info.Holder();
777 TestObject* impl = V8TestObject::toImpl(holder); 796 TestObject* impl = V8TestObject::toImpl(holder);
778 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceEmptyAttribute()), impl); 797 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceEmptyAttribute()), impl);
779 } 798 }
780 799
781 static void testInterfaceEmptyAttributeAttributeGetterCallback(v8::Local<v8::Nam e>, const v8::PropertyCallbackInfo<v8::Value>& info) 800 static void testInterfaceEmptyAttributeAttributeGetterCallback(const v8::Functio nCallbackInfo<v8::Value>& info)
782 { 801 {
783 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 802 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
784 TestObjectV8Internal::testInterfaceEmptyAttributeAttributeGetter(info); 803 TestObjectV8Internal::testInterfaceEmptyAttributeAttributeGetter(info);
785 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 804 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
786 } 805 }
787 806
788 static void testInterfaceEmptyAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::PropertyCallbackInfo<void>& info) 807 static void testInterfaceEmptyAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::FunctionCallbackInfo<v8::Value>& info)
789 { 808 {
790 v8::Local<v8::Object> holder = info.Holder(); 809 v8::Local<v8::Object> holder = info.Holder();
791 TestObject* impl = V8TestObject::toImpl(holder); 810 TestObject* impl = V8TestObject::toImpl(holder);
792 TestInterfaceEmpty* cppValue = V8TestInterfaceEmpty::toImplWithTypeCheck(inf o.GetIsolate(), v8Value); 811 TestInterfaceEmpty* cppValue = V8TestInterfaceEmpty::toImplWithTypeCheck(inf o.GetIsolate(), v8Value);
793 impl->setTestInterfaceEmptyAttribute(WTF::getPtr(cppValue)); 812 impl->setTestInterfaceEmptyAttribute(WTF::getPtr(cppValue));
794 } 813 }
795 814
796 static void testInterfaceEmptyAttributeAttributeSetterCallback(v8::Local<v8::Nam e>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 815 static void testInterfaceEmptyAttributeAttributeSetterCallback(const v8::Functio nCallbackInfo<v8::Value>& info)
797 { 816 {
817 v8::Local<v8::Value> v8Value = info[0];
798 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 818 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
799 TestObjectV8Internal::testInterfaceEmptyAttributeAttributeSetter(v8Value, in fo); 819 TestObjectV8Internal::testInterfaceEmptyAttributeAttributeSetter(v8Value, in fo);
800 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 820 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
801 } 821 }
802 822
803 static void testObjectAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info) 823 static void testObjectAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8 ::Value>& info)
804 { 824 {
805 v8::Local<v8::Object> holder = info.Holder(); 825 v8::Local<v8::Object> holder = info.Holder();
806 TestObject* impl = V8TestObject::toImpl(holder); 826 TestObject* impl = V8TestObject::toImpl(holder);
807 v8SetReturnValueFast(info, WTF::getPtr(impl->testObjectAttribute()), impl); 827 v8SetReturnValueFast(info, WTF::getPtr(impl->testObjectAttribute()), impl);
808 } 828 }
809 829
810 static void testObjectAttributeAttributeGetterCallback(v8::Local<v8::Name>, cons t v8::PropertyCallbackInfo<v8::Value>& info) 830 static void testObjectAttributeAttributeGetterCallback(const v8::FunctionCallbac kInfo<v8::Value>& info)
811 { 831 {
812 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 832 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
813 TestObjectV8Internal::testObjectAttributeAttributeGetter(info); 833 TestObjectV8Internal::testObjectAttributeAttributeGetter(info);
814 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 834 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
815 } 835 }
816 836
817 static void testObjectAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info) 837 static void testObjectAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::FunctionCallbackInfo<v8::Value>& info)
818 { 838 {
819 v8::Local<v8::Object> holder = info.Holder(); 839 v8::Local<v8::Object> holder = info.Holder();
820 TestObject* impl = V8TestObject::toImpl(holder); 840 TestObject* impl = V8TestObject::toImpl(holder);
821 TestObject* cppValue = V8TestObject::toImplWithTypeCheck(info.GetIsolate(), v8Value); 841 TestObject* cppValue = V8TestObject::toImplWithTypeCheck(info.GetIsolate(), v8Value);
822 impl->setTestObjectAttribute(WTF::getPtr(cppValue)); 842 impl->setTestObjectAttribute(WTF::getPtr(cppValue));
823 } 843 }
824 844
825 static void testObjectAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 845 static void testObjectAttributeAttributeSetterCallback(const v8::FunctionCallbac kInfo<v8::Value>& info)
826 { 846 {
847 v8::Local<v8::Value> v8Value = info[0];
827 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 848 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
828 TestObjectV8Internal::testObjectAttributeAttributeSetter(v8Value, info); 849 TestObjectV8Internal::testObjectAttributeAttributeSetter(v8Value, info);
829 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 850 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
830 } 851 }
831 852
832 static void voidCallbackFunctionAttributeAttributeGetter(const v8::PropertyCallb ackInfo<v8::Value>& info) 853 static void voidCallbackFunctionAttributeAttributeGetter(const v8::FunctionCallb ackInfo<v8::Value>& info)
833 { 854 {
834 v8::Local<v8::Object> holder = info.Holder(); 855 v8::Local<v8::Object> holder = info.Holder();
835 TestObject* impl = V8TestObject::toImpl(holder); 856 TestObject* impl = V8TestObject::toImpl(holder);
836 v8SetReturnValue(info, impl->voidCallbackFunctionAttribute().v8Value()); 857 v8SetReturnValue(info, impl->voidCallbackFunctionAttribute().v8Value());
837 } 858 }
838 859
839 static void voidCallbackFunctionAttributeAttributeGetterCallback(v8::Local<v8::N ame>, const v8::PropertyCallbackInfo<v8::Value>& info) 860 static void voidCallbackFunctionAttributeAttributeGetterCallback(const v8::Funct ionCallbackInfo<v8::Value>& info)
840 { 861 {
841 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 862 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
842 TestObjectV8Internal::voidCallbackFunctionAttributeAttributeGetter(info); 863 TestObjectV8Internal::voidCallbackFunctionAttributeAttributeGetter(info);
843 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 864 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
844 } 865 }
845 866
846 static void voidCallbackFunctionAttributeAttributeSetter(v8::Local<v8::Value> v8 Value, const v8::PropertyCallbackInfo<void>& info) 867 static void voidCallbackFunctionAttributeAttributeSetter(v8::Local<v8::Value> v8 Value, const v8::FunctionCallbackInfo<v8::Value>& info)
847 { 868 {
848 v8::Local<v8::Object> holder = info.Holder(); 869 v8::Local<v8::Object> holder = info.Holder();
849 TestObject* impl = V8TestObject::toImpl(holder); 870 TestObject* impl = V8TestObject::toImpl(holder);
850 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value); 871 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value);
851 impl->setVoidCallbackFunctionAttribute(cppValue); 872 impl->setVoidCallbackFunctionAttribute(cppValue);
852 } 873 }
853 874
854 static void voidCallbackFunctionAttributeAttributeSetterCallback(v8::Local<v8::N ame>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 875 static void voidCallbackFunctionAttributeAttributeSetterCallback(const v8::Funct ionCallbackInfo<v8::Value>& info)
855 { 876 {
877 v8::Local<v8::Value> v8Value = info[0];
856 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 878 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
857 TestObjectV8Internal::voidCallbackFunctionAttributeAttributeSetter(v8Value, info); 879 TestObjectV8Internal::voidCallbackFunctionAttributeAttributeSetter(v8Value, info);
858 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 880 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
859 } 881 }
860 882
861 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeGetter(const v8:: PropertyCallbackInfo<v8::Value>& info) 883 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeGetter(const v8:: FunctionCallbackInfo<v8::Value>& info)
862 { 884 {
863 v8::Local<v8::Object> holder = info.Holder(); 885 v8::Local<v8::Object> holder = info.Holder();
864 TestObject* impl = V8TestObject::toImpl(holder); 886 TestObject* impl = V8TestObject::toImpl(holder);
865 v8SetReturnValue(info, impl->anyCallbackFunctionOptionalAnyArgAttribute().v8 Value()); 887 v8SetReturnValue(info, impl->anyCallbackFunctionOptionalAnyArgAttribute().v8 Value());
866 } 888 }
867 889
868 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeGetterCallback(v8 ::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 890 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeGetterCallback(co nst v8::FunctionCallbackInfo<v8::Value>& info)
869 { 891 {
870 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 892 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
871 TestObjectV8Internal::anyCallbackFunctionOptionalAnyArgAttributeAttributeGet ter(info); 893 TestObjectV8Internal::anyCallbackFunctionOptionalAnyArgAttributeAttributeGet ter(info);
872 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 894 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
873 } 895 }
874 896
875 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeSetter(v8::Local< v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 897 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeSetter(v8::Local< v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
876 { 898 {
877 v8::Local<v8::Object> holder = info.Holder(); 899 v8::Local<v8::Object> holder = info.Holder();
878 TestObject* impl = V8TestObject::toImpl(holder); 900 TestObject* impl = V8TestObject::toImpl(holder);
879 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value); 901 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value);
880 impl->setAnyCallbackFunctionOptionalAnyArgAttribute(cppValue); 902 impl->setAnyCallbackFunctionOptionalAnyArgAttribute(cppValue);
881 } 903 }
882 904
883 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeSetterCallback(v8 ::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo< void>& info) 905 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeSetterCallback(co nst v8::FunctionCallbackInfo<v8::Value>& info)
884 { 906 {
907 v8::Local<v8::Value> v8Value = info[0];
885 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 908 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
886 TestObjectV8Internal::anyCallbackFunctionOptionalAnyArgAttributeAttributeSet ter(v8Value, info); 909 TestObjectV8Internal::anyCallbackFunctionOptionalAnyArgAttributeAttributeSet ter(v8Value, info);
887 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 910 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
888 } 911 }
889 912
890 static void cssAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value >& info) 913 static void cssAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value >& info)
891 { 914 {
892 v8::Local<v8::Object> holder = info.Holder(); 915 v8::Local<v8::Object> holder = info.Holder();
893 TestObject* impl = V8TestObject::toImpl(holder); 916 TestObject* impl = V8TestObject::toImpl(holder);
894 v8SetReturnValueInt(info, impl->cssAttribute()); 917 v8SetReturnValueInt(info, impl->cssAttribute());
895 } 918 }
896 919
897 static void cssAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8::P ropertyCallbackInfo<v8::Value>& info) 920 static void cssAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
898 { 921 {
899 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 922 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
900 TestObjectV8Internal::cssAttributeAttributeGetter(info); 923 TestObjectV8Internal::cssAttributeAttributeGetter(info);
901 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 924 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
902 } 925 }
903 926
904 static void cssAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: PropertyCallbackInfo<void>& info) 927 static void cssAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: FunctionCallbackInfo<v8::Value>& info)
905 { 928 {
906 v8::Local<v8::Object> holder = info.Holder(); 929 v8::Local<v8::Object> holder = info.Holder();
907 ExceptionState exceptionState(ExceptionState::SetterContext, "cssAttribute", "TestObject", holder, info.GetIsolate()); 930 ExceptionState exceptionState(ExceptionState::SetterContext, "cssAttribute", "TestObject", holder, info.GetIsolate());
908 TestObject* impl = V8TestObject::toImpl(holder); 931 TestObject* impl = V8TestObject::toImpl(holder);
909 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 932 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
910 if (exceptionState.throwIfNeeded()) 933 if (exceptionState.throwIfNeeded())
911 return; 934 return;
912 impl->setCSSAttribute(cppValue); 935 impl->setCSSAttribute(cppValue);
913 } 936 }
914 937
915 static void cssAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v 8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 938 static void cssAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
916 { 939 {
940 v8::Local<v8::Value> v8Value = info[0];
917 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 941 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
918 TestObjectV8Internal::cssAttributeAttributeSetter(v8Value, info); 942 TestObjectV8Internal::cssAttributeAttributeSetter(v8Value, info);
919 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 943 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
920 } 944 }
921 945
922 static void imeAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value >& info) 946 static void imeAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value >& info)
923 { 947 {
924 v8::Local<v8::Object> holder = info.Holder(); 948 v8::Local<v8::Object> holder = info.Holder();
925 TestObject* impl = V8TestObject::toImpl(holder); 949 TestObject* impl = V8TestObject::toImpl(holder);
926 v8SetReturnValueInt(info, impl->imeAttribute()); 950 v8SetReturnValueInt(info, impl->imeAttribute());
927 } 951 }
928 952
929 static void imeAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8::P ropertyCallbackInfo<v8::Value>& info) 953 static void imeAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
930 { 954 {
931 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 955 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
932 TestObjectV8Internal::imeAttributeAttributeGetter(info); 956 TestObjectV8Internal::imeAttributeAttributeGetter(info);
933 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 957 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
934 } 958 }
935 959
936 static void imeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: PropertyCallbackInfo<void>& info) 960 static void imeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: FunctionCallbackInfo<v8::Value>& info)
937 { 961 {
938 v8::Local<v8::Object> holder = info.Holder(); 962 v8::Local<v8::Object> holder = info.Holder();
939 ExceptionState exceptionState(ExceptionState::SetterContext, "imeAttribute", "TestObject", holder, info.GetIsolate()); 963 ExceptionState exceptionState(ExceptionState::SetterContext, "imeAttribute", "TestObject", holder, info.GetIsolate());
940 TestObject* impl = V8TestObject::toImpl(holder); 964 TestObject* impl = V8TestObject::toImpl(holder);
941 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 965 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
942 if (exceptionState.throwIfNeeded()) 966 if (exceptionState.throwIfNeeded())
943 return; 967 return;
944 impl->setIMEAttribute(cppValue); 968 impl->setIMEAttribute(cppValue);
945 } 969 }
946 970
947 static void imeAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v 8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 971 static void imeAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
948 { 972 {
973 v8::Local<v8::Value> v8Value = info[0];
949 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 974 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
950 TestObjectV8Internal::imeAttributeAttributeSetter(v8Value, info); 975 TestObjectV8Internal::imeAttributeAttributeSetter(v8Value, info);
951 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 976 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
952 } 977 }
953 978
954 static void svgAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value >& info) 979 static void svgAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value >& info)
955 { 980 {
956 v8::Local<v8::Object> holder = info.Holder(); 981 v8::Local<v8::Object> holder = info.Holder();
957 TestObject* impl = V8TestObject::toImpl(holder); 982 TestObject* impl = V8TestObject::toImpl(holder);
958 v8SetReturnValueInt(info, impl->svgAttribute()); 983 v8SetReturnValueInt(info, impl->svgAttribute());
959 } 984 }
960 985
961 static void svgAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8::P ropertyCallbackInfo<v8::Value>& info) 986 static void svgAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
962 { 987 {
963 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 988 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
964 TestObjectV8Internal::svgAttributeAttributeGetter(info); 989 TestObjectV8Internal::svgAttributeAttributeGetter(info);
965 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 990 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
966 } 991 }
967 992
968 static void svgAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: PropertyCallbackInfo<void>& info) 993 static void svgAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: FunctionCallbackInfo<v8::Value>& info)
969 { 994 {
970 v8::Local<v8::Object> holder = info.Holder(); 995 v8::Local<v8::Object> holder = info.Holder();
971 ExceptionState exceptionState(ExceptionState::SetterContext, "svgAttribute", "TestObject", holder, info.GetIsolate()); 996 ExceptionState exceptionState(ExceptionState::SetterContext, "svgAttribute", "TestObject", holder, info.GetIsolate());
972 TestObject* impl = V8TestObject::toImpl(holder); 997 TestObject* impl = V8TestObject::toImpl(holder);
973 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 998 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
974 if (exceptionState.throwIfNeeded()) 999 if (exceptionState.throwIfNeeded())
975 return; 1000 return;
976 impl->setSVGAttribute(cppValue); 1001 impl->setSVGAttribute(cppValue);
977 } 1002 }
978 1003
979 static void svgAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v 8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1004 static void svgAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
980 { 1005 {
1006 v8::Local<v8::Value> v8Value = info[0];
981 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1007 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
982 TestObjectV8Internal::svgAttributeAttributeSetter(v8Value, info); 1008 TestObjectV8Internal::svgAttributeAttributeSetter(v8Value, info);
983 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1009 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
984 } 1010 }
985 1011
986 static void xmlAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value >& info) 1012 static void xmlAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value >& info)
987 { 1013 {
988 v8::Local<v8::Object> holder = info.Holder(); 1014 v8::Local<v8::Object> holder = info.Holder();
989 TestObject* impl = V8TestObject::toImpl(holder); 1015 TestObject* impl = V8TestObject::toImpl(holder);
990 v8SetReturnValueInt(info, impl->xmlAttribute()); 1016 v8SetReturnValueInt(info, impl->xmlAttribute());
991 } 1017 }
992 1018
993 static void xmlAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8::P ropertyCallbackInfo<v8::Value>& info) 1019 static void xmlAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
994 { 1020 {
995 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1021 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
996 TestObjectV8Internal::xmlAttributeAttributeGetter(info); 1022 TestObjectV8Internal::xmlAttributeAttributeGetter(info);
997 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1023 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
998 } 1024 }
999 1025
1000 static void xmlAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: PropertyCallbackInfo<void>& info) 1026 static void xmlAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: FunctionCallbackInfo<v8::Value>& info)
1001 { 1027 {
1002 v8::Local<v8::Object> holder = info.Holder(); 1028 v8::Local<v8::Object> holder = info.Holder();
1003 ExceptionState exceptionState(ExceptionState::SetterContext, "xmlAttribute", "TestObject", holder, info.GetIsolate()); 1029 ExceptionState exceptionState(ExceptionState::SetterContext, "xmlAttribute", "TestObject", holder, info.GetIsolate());
1004 TestObject* impl = V8TestObject::toImpl(holder); 1030 TestObject* impl = V8TestObject::toImpl(holder);
1005 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 1031 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
1006 if (exceptionState.throwIfNeeded()) 1032 if (exceptionState.throwIfNeeded())
1007 return; 1033 return;
1008 impl->setXMLAttribute(cppValue); 1034 impl->setXMLAttribute(cppValue);
1009 } 1035 }
1010 1036
1011 static void xmlAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v 8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1037 static void xmlAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
1012 { 1038 {
1039 v8::Local<v8::Value> v8Value = info[0];
1013 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1040 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1014 TestObjectV8Internal::xmlAttributeAttributeSetter(v8Value, info); 1041 TestObjectV8Internal::xmlAttributeAttributeSetter(v8Value, info);
1015 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1042 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1016 } 1043 }
1017 1044
1018 static void nodeFilterAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info) 1045 static void nodeFilterAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8 ::Value>& info)
1019 { 1046 {
1020 v8::Local<v8::Object> holder = info.Holder(); 1047 v8::Local<v8::Object> holder = info.Holder();
1021 TestObject* impl = V8TestObject::toImpl(holder); 1048 TestObject* impl = V8TestObject::toImpl(holder);
1022 v8SetReturnValueFast(info, WTF::getPtr(impl->nodeFilterAttribute()), impl); 1049 v8SetReturnValueFast(info, WTF::getPtr(impl->nodeFilterAttribute()), impl);
1023 } 1050 }
1024 1051
1025 static void nodeFilterAttributeAttributeGetterCallback(v8::Local<v8::Name>, cons t v8::PropertyCallbackInfo<v8::Value>& info) 1052 static void nodeFilterAttributeAttributeGetterCallback(const v8::FunctionCallbac kInfo<v8::Value>& info)
1026 { 1053 {
1027 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1054 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1028 TestObjectV8Internal::nodeFilterAttributeAttributeGetter(info); 1055 TestObjectV8Internal::nodeFilterAttributeAttributeGetter(info);
1029 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1056 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1030 } 1057 }
1031 1058
1032 static void nodeFilterAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info) 1059 static void nodeFilterAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::FunctionCallbackInfo<v8::Value>& info)
1033 { 1060 {
1034 v8::Local<v8::Object> holder = info.Holder(); 1061 v8::Local<v8::Object> holder = info.Holder();
1035 TestObject* impl = V8TestObject::toImpl(holder); 1062 TestObject* impl = V8TestObject::toImpl(holder);
1036 RefPtrWillBeRawPtr<NodeFilter> cppValue = toNodeFilter(v8Value, info.Holder( ), ScriptState::current(info.GetIsolate())); 1063 RefPtrWillBeRawPtr<NodeFilter> cppValue = toNodeFilter(v8Value, info.Holder( ), ScriptState::current(info.GetIsolate()));
1037 impl->setNodeFilterAttribute(WTF::getPtr(cppValue)); 1064 impl->setNodeFilterAttribute(WTF::getPtr(cppValue));
1038 } 1065 }
1039 1066
1040 static void nodeFilterAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1067 static void nodeFilterAttributeAttributeSetterCallback(const v8::FunctionCallbac kInfo<v8::Value>& info)
1041 { 1068 {
1069 v8::Local<v8::Value> v8Value = info[0];
1042 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1070 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1043 TestObjectV8Internal::nodeFilterAttributeAttributeSetter(v8Value, info); 1071 TestObjectV8Internal::nodeFilterAttributeAttributeSetter(v8Value, info);
1044 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1072 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1045 } 1073 }
1046 1074
1047 static void serializedScriptValueAttributeAttributeGetter(const v8::PropertyCall backInfo<v8::Value>& info) 1075 static void serializedScriptValueAttributeAttributeGetter(const v8::FunctionCall backInfo<v8::Value>& info)
1048 { 1076 {
1049 v8::Local<v8::Object> holder = info.Holder(); 1077 v8::Local<v8::Object> holder = info.Holder();
1050 TestObject* impl = V8TestObject::toImpl(holder); 1078 TestObject* impl = V8TestObject::toImpl(holder);
1051 v8SetReturnValue(info, impl->serializedScriptValueAttribute() ? impl->serial izedScriptValueAttribute()->deserialize() : v8::Local<v8::Value>(v8::Null(info.G etIsolate()))); 1079 v8SetReturnValue(info, impl->serializedScriptValueAttribute() ? impl->serial izedScriptValueAttribute()->deserialize() : v8::Local<v8::Value>(v8::Null(info.G etIsolate())));
1052 } 1080 }
1053 1081
1054 static void serializedScriptValueAttributeAttributeGetterCallback(v8::Local<v8:: Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 1082 static void serializedScriptValueAttributeAttributeGetterCallback(const v8::Func tionCallbackInfo<v8::Value>& info)
1055 { 1083 {
1056 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1084 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1057 TestObjectV8Internal::serializedScriptValueAttributeAttributeGetter(info); 1085 TestObjectV8Internal::serializedScriptValueAttributeAttributeGetter(info);
1058 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1086 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1059 } 1087 }
1060 1088
1061 static void serializedScriptValueAttributeAttributeSetter(v8::Local<v8::Value> v 8Value, const v8::PropertyCallbackInfo<void>& info) 1089 static void serializedScriptValueAttributeAttributeSetter(v8::Local<v8::Value> v 8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
1062 { 1090 {
1063 v8::Local<v8::Object> holder = info.Holder(); 1091 v8::Local<v8::Object> holder = info.Holder();
1064 ExceptionState exceptionState(ExceptionState::SetterContext, "serializedScri ptValueAttribute", "TestObject", holder, info.GetIsolate()); 1092 ExceptionState exceptionState(ExceptionState::SetterContext, "serializedScri ptValueAttribute", "TestObject", holder, info.GetIsolate());
1065 TestObject* impl = V8TestObject::toImpl(holder); 1093 TestObject* impl = V8TestObject::toImpl(holder);
1066 RefPtr<SerializedScriptValue> cppValue = SerializedScriptValueFactory::insta nce().create(v8Value, 0, 0, exceptionState, info.GetIsolate()); 1094 RefPtr<SerializedScriptValue> cppValue = SerializedScriptValueFactory::insta nce().create(v8Value, 0, 0, exceptionState, info.GetIsolate());
1067 if (exceptionState.throwIfNeeded()) 1095 if (exceptionState.throwIfNeeded())
1068 return; 1096 return;
1069 impl->setSerializedScriptValueAttribute(WTF::getPtr(cppValue)); 1097 impl->setSerializedScriptValueAttribute(WTF::getPtr(cppValue));
1070 } 1098 }
1071 1099
1072 static void serializedScriptValueAttributeAttributeSetterCallback(v8::Local<v8:: Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1100 static void serializedScriptValueAttributeAttributeSetterCallback(const v8::Func tionCallbackInfo<v8::Value>& info)
1073 { 1101 {
1102 v8::Local<v8::Value> v8Value = info[0];
1074 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1103 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1075 TestObjectV8Internal::serializedScriptValueAttributeAttributeSetter(v8Value, info); 1104 TestObjectV8Internal::serializedScriptValueAttributeAttributeSetter(v8Value, info);
1076 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1105 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1077 } 1106 }
1078 1107
1079 static void anyAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value >& info) 1108 static void anyAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value >& info)
1080 { 1109 {
1081 v8::Local<v8::Object> holder = info.Holder(); 1110 v8::Local<v8::Object> holder = info.Holder();
1082 TestObject* impl = V8TestObject::toImpl(holder); 1111 TestObject* impl = V8TestObject::toImpl(holder);
1083 v8SetReturnValue(info, impl->anyAttribute().v8Value()); 1112 v8SetReturnValue(info, impl->anyAttribute().v8Value());
1084 } 1113 }
1085 1114
1086 static void anyAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8::P ropertyCallbackInfo<v8::Value>& info) 1115 static void anyAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
1087 { 1116 {
1088 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1117 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1089 TestObjectV8Internal::anyAttributeAttributeGetter(info); 1118 TestObjectV8Internal::anyAttributeAttributeGetter(info);
1090 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1119 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1091 } 1120 }
1092 1121
1093 static void anyAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: PropertyCallbackInfo<void>& info) 1122 static void anyAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: FunctionCallbackInfo<v8::Value>& info)
1094 { 1123 {
1095 v8::Local<v8::Object> holder = info.Holder(); 1124 v8::Local<v8::Object> holder = info.Holder();
1096 TestObject* impl = V8TestObject::toImpl(holder); 1125 TestObject* impl = V8TestObject::toImpl(holder);
1097 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value); 1126 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value);
1098 impl->setAnyAttribute(cppValue); 1127 impl->setAnyAttribute(cppValue);
1099 } 1128 }
1100 1129
1101 static void anyAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v 8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1130 static void anyAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
1102 { 1131 {
1132 v8::Local<v8::Value> v8Value = info[0];
1103 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1133 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1104 TestObjectV8Internal::anyAttributeAttributeSetter(v8Value, info); 1134 TestObjectV8Internal::anyAttributeAttributeSetter(v8Value, info);
1105 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1135 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1106 } 1136 }
1107 1137
1108 static void promiseAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info) 1138 static void promiseAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::V alue>& info)
1109 { 1139 {
1110 v8::Local<v8::Object> holder = info.Holder(); 1140 v8::Local<v8::Object> holder = info.Holder();
1111 TestObject* impl = V8TestObject::toImpl(holder); 1141 TestObject* impl = V8TestObject::toImpl(holder);
1112 v8SetReturnValue(info, impl->promiseAttribute().v8Value()); 1142 v8SetReturnValue(info, impl->promiseAttribute().v8Value());
1113 } 1143 }
1114 1144
1115 static void promiseAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v 8::PropertyCallbackInfo<v8::Value>& info) 1145 static void promiseAttributeAttributeGetterCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
1116 { 1146 {
1117 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1147 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1118 TestObjectV8Internal::promiseAttributeAttributeGetter(info); 1148 TestObjectV8Internal::promiseAttributeAttributeGetter(info);
1119 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1149 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1120 } 1150 }
1121 1151
1122 static void promiseAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1152 static void promiseAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
1123 { 1153 {
1124 v8::Local<v8::Object> holder = info.Holder(); 1154 v8::Local<v8::Object> holder = info.Holder();
1125 TestObject* impl = V8TestObject::toImpl(holder); 1155 TestObject* impl = V8TestObject::toImpl(holder);
1126 ScriptPromise cppValue = ScriptPromise::cast(ScriptState::current(info.GetIs olate()), v8Value); 1156 ScriptPromise cppValue = ScriptPromise::cast(ScriptState::current(info.GetIs olate()), v8Value);
1127 impl->setPromiseAttribute(cppValue); 1157 impl->setPromiseAttribute(cppValue);
1128 } 1158 }
1129 1159
1130 static void promiseAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Loc al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1160 static void promiseAttributeAttributeSetterCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
1131 { 1161 {
1162 v8::Local<v8::Value> v8Value = info[0];
1132 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1163 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1133 TestObjectV8Internal::promiseAttributeAttributeSetter(v8Value, info); 1164 TestObjectV8Internal::promiseAttributeAttributeSetter(v8Value, info);
1134 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1165 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1135 } 1166 }
1136 1167
1137 static void windowAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va lue>& info) 1168 static void windowAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Va lue>& info)
1138 { 1169 {
1139 v8::Local<v8::Object> holder = info.Holder(); 1170 v8::Local<v8::Object> holder = info.Holder();
1140 TestObject* impl = V8TestObject::toImpl(holder); 1171 TestObject* impl = V8TestObject::toImpl(holder);
1141 v8SetReturnValueFast(info, WTF::getPtr(impl->windowAttribute()), impl); 1172 v8SetReturnValueFast(info, WTF::getPtr(impl->windowAttribute()), impl);
1142 } 1173 }
1143 1174
1144 static void windowAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8 ::PropertyCallbackInfo<v8::Value>& info) 1175 static void windowAttributeAttributeGetterCallback(const v8::FunctionCallbackInf o<v8::Value>& info)
1145 { 1176 {
1146 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1177 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1147 TestObjectV8Internal::windowAttributeAttributeGetter(info); 1178 TestObjectV8Internal::windowAttributeAttributeGetter(info);
1148 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1179 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1149 } 1180 }
1150 1181
1151 static void windowAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v 8::PropertyCallbackInfo<void>& info) 1182 static void windowAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v 8::FunctionCallbackInfo<v8::Value>& info)
1152 { 1183 {
1153 v8::Local<v8::Object> holder = info.Holder(); 1184 v8::Local<v8::Object> holder = info.Holder();
1154 TestObject* impl = V8TestObject::toImpl(holder); 1185 TestObject* impl = V8TestObject::toImpl(holder);
1155 DOMWindow* cppValue = toDOMWindow(info.GetIsolate(), v8Value); 1186 DOMWindow* cppValue = toDOMWindow(info.GetIsolate(), v8Value);
1156 impl->setWindowAttribute(WTF::getPtr(cppValue)); 1187 impl->setWindowAttribute(WTF::getPtr(cppValue));
1157 } 1188 }
1158 1189
1159 static void windowAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1190 static void windowAttributeAttributeSetterCallback(const v8::FunctionCallbackInf o<v8::Value>& info)
1160 { 1191 {
1192 v8::Local<v8::Value> v8Value = info[0];
1161 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1193 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1162 TestObjectV8Internal::windowAttributeAttributeSetter(v8Value, info); 1194 TestObjectV8Internal::windowAttributeAttributeSetter(v8Value, info);
1163 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1195 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1164 } 1196 }
1165 1197
1166 static void documentAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8:: Value>& info) 1198 static void documentAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8:: Value>& info)
1167 { 1199 {
1168 v8::Local<v8::Object> holder = info.Holder(); 1200 v8::Local<v8::Object> holder = info.Holder();
1169 TestObject* impl = V8TestObject::toImpl(holder); 1201 TestObject* impl = V8TestObject::toImpl(holder);
1170 v8SetReturnValueFast(info, WTF::getPtr(impl->documentAttribute()), impl); 1202 v8SetReturnValueFast(info, WTF::getPtr(impl->documentAttribute()), impl);
1171 } 1203 }
1172 1204
1173 static void documentAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 1205 static void documentAttributeAttributeGetterCallback(const v8::FunctionCallbackI nfo<v8::Value>& info)
1174 { 1206 {
1175 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1207 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1176 TestObjectV8Internal::documentAttributeAttributeGetter(info); 1208 TestObjectV8Internal::documentAttributeAttributeGetter(info);
1177 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1209 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1178 } 1210 }
1179 1211
1180 static void documentAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1212 static void documentAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
1181 { 1213 {
1182 v8::Local<v8::Object> holder = info.Holder(); 1214 v8::Local<v8::Object> holder = info.Holder();
1183 TestObject* impl = V8TestObject::toImpl(holder); 1215 TestObject* impl = V8TestObject::toImpl(holder);
1184 Document* cppValue = V8Document::toImplWithTypeCheck(info.GetIsolate(), v8Va lue); 1216 Document* cppValue = V8Document::toImplWithTypeCheck(info.GetIsolate(), v8Va lue);
1185 impl->setDocumentAttribute(WTF::getPtr(cppValue)); 1217 impl->setDocumentAttribute(WTF::getPtr(cppValue));
1186 } 1218 }
1187 1219
1188 static void documentAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1220 static void documentAttributeAttributeSetterCallback(const v8::FunctionCallbackI nfo<v8::Value>& info)
1189 { 1221 {
1222 v8::Local<v8::Value> v8Value = info[0];
1190 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1223 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1191 TestObjectV8Internal::documentAttributeAttributeSetter(v8Value, info); 1224 TestObjectV8Internal::documentAttributeAttributeSetter(v8Value, info);
1192 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1225 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1193 } 1226 }
1194 1227
1195 static void documentFragmentAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info) 1228 static void documentFragmentAttributeAttributeGetter(const v8::FunctionCallbackI nfo<v8::Value>& info)
1196 { 1229 {
1197 v8::Local<v8::Object> holder = info.Holder(); 1230 v8::Local<v8::Object> holder = info.Holder();
1198 TestObject* impl = V8TestObject::toImpl(holder); 1231 TestObject* impl = V8TestObject::toImpl(holder);
1199 v8SetReturnValueFast(info, WTF::getPtr(impl->documentFragmentAttribute()), i mpl); 1232 v8SetReturnValueFast(info, WTF::getPtr(impl->documentFragmentAttribute()), i mpl);
1200 } 1233 }
1201 1234
1202 static void documentFragmentAttributeAttributeGetterCallback(v8::Local<v8::Name> , const v8::PropertyCallbackInfo<v8::Value>& info) 1235 static void documentFragmentAttributeAttributeGetterCallback(const v8::FunctionC allbackInfo<v8::Value>& info)
1203 { 1236 {
1204 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1237 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1205 TestObjectV8Internal::documentFragmentAttributeAttributeGetter(info); 1238 TestObjectV8Internal::documentFragmentAttributeAttributeGetter(info);
1206 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1239 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1207 } 1240 }
1208 1241
1209 static void documentFragmentAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::PropertyCallbackInfo<void>& info) 1242 static void documentFragmentAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::FunctionCallbackInfo<v8::Value>& info)
1210 { 1243 {
1211 v8::Local<v8::Object> holder = info.Holder(); 1244 v8::Local<v8::Object> holder = info.Holder();
1212 TestObject* impl = V8TestObject::toImpl(holder); 1245 TestObject* impl = V8TestObject::toImpl(holder);
1213 DocumentFragment* cppValue = V8DocumentFragment::toImplWithTypeCheck(info.Ge tIsolate(), v8Value); 1246 DocumentFragment* cppValue = V8DocumentFragment::toImplWithTypeCheck(info.Ge tIsolate(), v8Value);
1214 impl->setDocumentFragmentAttribute(WTF::getPtr(cppValue)); 1247 impl->setDocumentFragmentAttribute(WTF::getPtr(cppValue));
1215 } 1248 }
1216 1249
1217 static void documentFragmentAttributeAttributeSetterCallback(v8::Local<v8::Name> , v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1250 static void documentFragmentAttributeAttributeSetterCallback(const v8::FunctionC allbackInfo<v8::Value>& info)
1218 { 1251 {
1252 v8::Local<v8::Value> v8Value = info[0];
1219 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1253 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1220 TestObjectV8Internal::documentFragmentAttributeAttributeSetter(v8Value, info ); 1254 TestObjectV8Internal::documentFragmentAttributeAttributeSetter(v8Value, info );
1221 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1255 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1222 } 1256 }
1223 1257
1224 static void documentTypeAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info) 1258 static void documentTypeAttributeAttributeGetter(const v8::FunctionCallbackInfo< v8::Value>& info)
1225 { 1259 {
1226 v8::Local<v8::Object> holder = info.Holder(); 1260 v8::Local<v8::Object> holder = info.Holder();
1227 TestObject* impl = V8TestObject::toImpl(holder); 1261 TestObject* impl = V8TestObject::toImpl(holder);
1228 v8SetReturnValueFast(info, WTF::getPtr(impl->documentTypeAttribute()), impl) ; 1262 v8SetReturnValueFast(info, WTF::getPtr(impl->documentTypeAttribute()), impl) ;
1229 } 1263 }
1230 1264
1231 static void documentTypeAttributeAttributeGetterCallback(v8::Local<v8::Name>, co nst v8::PropertyCallbackInfo<v8::Value>& info) 1265 static void documentTypeAttributeAttributeGetterCallback(const v8::FunctionCallb ackInfo<v8::Value>& info)
1232 { 1266 {
1233 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1267 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1234 TestObjectV8Internal::documentTypeAttributeAttributeGetter(info); 1268 TestObjectV8Internal::documentTypeAttributeAttributeGetter(info);
1235 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1269 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1236 } 1270 }
1237 1271
1238 static void documentTypeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info) 1272 static void documentTypeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::FunctionCallbackInfo<v8::Value>& info)
1239 { 1273 {
1240 v8::Local<v8::Object> holder = info.Holder(); 1274 v8::Local<v8::Object> holder = info.Holder();
1241 TestObject* impl = V8TestObject::toImpl(holder); 1275 TestObject* impl = V8TestObject::toImpl(holder);
1242 DocumentType* cppValue = V8DocumentType::toImplWithTypeCheck(info.GetIsolate (), v8Value); 1276 DocumentType* cppValue = V8DocumentType::toImplWithTypeCheck(info.GetIsolate (), v8Value);
1243 impl->setDocumentTypeAttribute(WTF::getPtr(cppValue)); 1277 impl->setDocumentTypeAttribute(WTF::getPtr(cppValue));
1244 } 1278 }
1245 1279
1246 static void documentTypeAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1280 static void documentTypeAttributeAttributeSetterCallback(const v8::FunctionCallb ackInfo<v8::Value>& info)
1247 { 1281 {
1282 v8::Local<v8::Value> v8Value = info[0];
1248 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1283 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1249 TestObjectV8Internal::documentTypeAttributeAttributeSetter(v8Value, info); 1284 TestObjectV8Internal::documentTypeAttributeAttributeSetter(v8Value, info);
1250 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1285 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1251 } 1286 }
1252 1287
1253 static void elementAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info) 1288 static void elementAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::V alue>& info)
1254 { 1289 {
1255 v8::Local<v8::Object> holder = info.Holder(); 1290 v8::Local<v8::Object> holder = info.Holder();
1256 TestObject* impl = V8TestObject::toImpl(holder); 1291 TestObject* impl = V8TestObject::toImpl(holder);
1257 v8SetReturnValueFast(info, WTF::getPtr(impl->elementAttribute()), impl); 1292 v8SetReturnValueFast(info, WTF::getPtr(impl->elementAttribute()), impl);
1258 } 1293 }
1259 1294
1260 static void elementAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v 8::PropertyCallbackInfo<v8::Value>& info) 1295 static void elementAttributeAttributeGetterCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
1261 { 1296 {
1262 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1297 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1263 TestObjectV8Internal::elementAttributeAttributeGetter(info); 1298 TestObjectV8Internal::elementAttributeAttributeGetter(info);
1264 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1299 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1265 } 1300 }
1266 1301
1267 static void elementAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1302 static void elementAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
1268 { 1303 {
1269 v8::Local<v8::Object> holder = info.Holder(); 1304 v8::Local<v8::Object> holder = info.Holder();
1270 TestObject* impl = V8TestObject::toImpl(holder); 1305 TestObject* impl = V8TestObject::toImpl(holder);
1271 Element* cppValue = V8Element::toImplWithTypeCheck(info.GetIsolate(), v8Valu e); 1306 Element* cppValue = V8Element::toImplWithTypeCheck(info.GetIsolate(), v8Valu e);
1272 impl->setElementAttribute(WTF::getPtr(cppValue)); 1307 impl->setElementAttribute(WTF::getPtr(cppValue));
1273 } 1308 }
1274 1309
1275 static void elementAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Loc al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1310 static void elementAttributeAttributeSetterCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
1276 { 1311 {
1312 v8::Local<v8::Value> v8Value = info[0];
1277 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1313 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1278 TestObjectV8Internal::elementAttributeAttributeSetter(v8Value, info); 1314 TestObjectV8Internal::elementAttributeAttributeSetter(v8Value, info);
1279 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1315 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1280 } 1316 }
1281 1317
1282 static void nodeAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu e>& info) 1318 static void nodeAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Valu e>& info)
1283 { 1319 {
1284 v8::Local<v8::Object> holder = info.Holder(); 1320 v8::Local<v8::Object> holder = info.Holder();
1285 TestObject* impl = V8TestObject::toImpl(holder); 1321 TestObject* impl = V8TestObject::toImpl(holder);
1286 v8SetReturnValueFast(info, WTF::getPtr(impl->nodeAttribute()), impl); 1322 v8SetReturnValueFast(info, WTF::getPtr(impl->nodeAttribute()), impl);
1287 } 1323 }
1288 1324
1289 static void nodeAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8:: PropertyCallbackInfo<v8::Value>& info) 1325 static void nodeAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo< v8::Value>& info)
1290 { 1326 {
1291 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1327 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1292 TestObjectV8Internal::nodeAttributeAttributeGetter(info); 1328 TestObjectV8Internal::nodeAttributeAttributeGetter(info);
1293 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1329 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1294 } 1330 }
1295 1331
1296 static void nodeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info) 1332 static void nodeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :FunctionCallbackInfo<v8::Value>& info)
1297 { 1333 {
1298 v8::Local<v8::Object> holder = info.Holder(); 1334 v8::Local<v8::Object> holder = info.Holder();
1299 TestObject* impl = V8TestObject::toImpl(holder); 1335 TestObject* impl = V8TestObject::toImpl(holder);
1300 Node* cppValue = V8Node::toImplWithTypeCheck(info.GetIsolate(), v8Value); 1336 Node* cppValue = V8Node::toImplWithTypeCheck(info.GetIsolate(), v8Value);
1301 impl->setNodeAttribute(WTF::getPtr(cppValue)); 1337 impl->setNodeAttribute(WTF::getPtr(cppValue));
1302 } 1338 }
1303 1339
1304 static void nodeAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local< v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1340 static void nodeAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo< v8::Value>& info)
1305 { 1341 {
1342 v8::Local<v8::Value> v8Value = info[0];
1306 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1343 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1307 TestObjectV8Internal::nodeAttributeAttributeSetter(v8Value, info); 1344 TestObjectV8Internal::nodeAttributeAttributeSetter(v8Value, info);
1308 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1345 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1309 } 1346 }
1310 1347
1311 static void shadowRootAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info) 1348 static void shadowRootAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8 ::Value>& info)
1312 { 1349 {
1313 v8::Local<v8::Object> holder = info.Holder(); 1350 v8::Local<v8::Object> holder = info.Holder();
1314 TestObject* impl = V8TestObject::toImpl(holder); 1351 TestObject* impl = V8TestObject::toImpl(holder);
1315 v8SetReturnValueFast(info, WTF::getPtr(impl->shadowRootAttribute()), impl); 1352 v8SetReturnValueFast(info, WTF::getPtr(impl->shadowRootAttribute()), impl);
1316 } 1353 }
1317 1354
1318 static void shadowRootAttributeAttributeGetterCallback(v8::Local<v8::Name>, cons t v8::PropertyCallbackInfo<v8::Value>& info) 1355 static void shadowRootAttributeAttributeGetterCallback(const v8::FunctionCallbac kInfo<v8::Value>& info)
1319 { 1356 {
1320 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1357 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1321 TestObjectV8Internal::shadowRootAttributeAttributeGetter(info); 1358 TestObjectV8Internal::shadowRootAttributeAttributeGetter(info);
1322 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1359 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1323 } 1360 }
1324 1361
1325 static void shadowRootAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info) 1362 static void shadowRootAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::FunctionCallbackInfo<v8::Value>& info)
1326 { 1363 {
1327 v8::Local<v8::Object> holder = info.Holder(); 1364 v8::Local<v8::Object> holder = info.Holder();
1328 TestObject* impl = V8TestObject::toImpl(holder); 1365 TestObject* impl = V8TestObject::toImpl(holder);
1329 ShadowRoot* cppValue = V8ShadowRoot::toImplWithTypeCheck(info.GetIsolate(), v8Value); 1366 ShadowRoot* cppValue = V8ShadowRoot::toImplWithTypeCheck(info.GetIsolate(), v8Value);
1330 impl->setShadowRootAttribute(WTF::getPtr(cppValue)); 1367 impl->setShadowRootAttribute(WTF::getPtr(cppValue));
1331 } 1368 }
1332 1369
1333 static void shadowRootAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1370 static void shadowRootAttributeAttributeSetterCallback(const v8::FunctionCallbac kInfo<v8::Value>& info)
1334 { 1371 {
1372 v8::Local<v8::Value> v8Value = info[0];
1335 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1373 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1336 TestObjectV8Internal::shadowRootAttributeAttributeSetter(v8Value, info); 1374 TestObjectV8Internal::shadowRootAttributeAttributeSetter(v8Value, info);
1337 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1375 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1338 } 1376 }
1339 1377
1340 static void arrayBufferAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info) 1378 static void arrayBufferAttributeAttributeGetter(const v8::FunctionCallbackInfo<v 8::Value>& info)
1341 { 1379 {
1342 v8::Local<v8::Object> holder = info.Holder(); 1380 v8::Local<v8::Object> holder = info.Holder();
1343 TestObject* impl = V8TestObject::toImpl(holder); 1381 TestObject* impl = V8TestObject::toImpl(holder);
1344 v8SetReturnValueFast(info, WTF::getPtr(impl->arrayBufferAttribute()), impl); 1382 v8SetReturnValueFast(info, WTF::getPtr(impl->arrayBufferAttribute()), impl);
1345 } 1383 }
1346 1384
1347 static void arrayBufferAttributeAttributeGetterCallback(v8::Local<v8::Name>, con st v8::PropertyCallbackInfo<v8::Value>& info) 1385 static void arrayBufferAttributeAttributeGetterCallback(const v8::FunctionCallba ckInfo<v8::Value>& info)
1348 { 1386 {
1349 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1387 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1350 TestObjectV8Internal::arrayBufferAttributeAttributeGetter(info); 1388 TestObjectV8Internal::arrayBufferAttributeAttributeGetter(info);
1351 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1389 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1352 } 1390 }
1353 1391
1354 static void arrayBufferAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& info) 1392 static void arrayBufferAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::FunctionCallbackInfo<v8::Value>& info)
1355 { 1393 {
1356 v8::Local<v8::Object> holder = info.Holder(); 1394 v8::Local<v8::Object> holder = info.Holder();
1357 TestObject* impl = V8TestObject::toImpl(holder); 1395 TestObject* impl = V8TestObject::toImpl(holder);
1358 TestArrayBuffer* cppValue = v8Value->IsArrayBuffer() ? V8ArrayBuffer::toImpl (v8::Local<v8::ArrayBuffer>::Cast(v8Value)) : 0; 1396 TestArrayBuffer* cppValue = v8Value->IsArrayBuffer() ? V8ArrayBuffer::toImpl (v8::Local<v8::ArrayBuffer>::Cast(v8Value)) : 0;
1359 impl->setArrayBufferAttribute(WTF::getPtr(cppValue)); 1397 impl->setArrayBufferAttribute(WTF::getPtr(cppValue));
1360 } 1398 }
1361 1399
1362 static void arrayBufferAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8: :Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1400 static void arrayBufferAttributeAttributeSetterCallback(const v8::FunctionCallba ckInfo<v8::Value>& info)
1363 { 1401 {
1402 v8::Local<v8::Value> v8Value = info[0];
1364 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1403 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1365 TestObjectV8Internal::arrayBufferAttributeAttributeSetter(v8Value, info); 1404 TestObjectV8Internal::arrayBufferAttributeAttributeSetter(v8Value, info);
1366 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1405 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1367 } 1406 }
1368 1407
1369 static void float32ArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info) 1408 static void float32ArrayAttributeAttributeGetter(const v8::FunctionCallbackInfo< v8::Value>& info)
1370 { 1409 {
1371 v8::Local<v8::Object> holder = info.Holder(); 1410 v8::Local<v8::Object> holder = info.Holder();
1372 TestObject* impl = V8TestObject::toImpl(holder); 1411 TestObject* impl = V8TestObject::toImpl(holder);
1373 v8SetReturnValueFast(info, WTF::getPtr(impl->float32ArrayAttribute()), impl) ; 1412 v8SetReturnValueFast(info, WTF::getPtr(impl->float32ArrayAttribute()), impl) ;
1374 } 1413 }
1375 1414
1376 static void float32ArrayAttributeAttributeGetterCallback(v8::Local<v8::Name>, co nst v8::PropertyCallbackInfo<v8::Value>& info) 1415 static void float32ArrayAttributeAttributeGetterCallback(const v8::FunctionCallb ackInfo<v8::Value>& info)
1377 { 1416 {
1378 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1417 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1379 TestObjectV8Internal::float32ArrayAttributeAttributeGetter(info); 1418 TestObjectV8Internal::float32ArrayAttributeAttributeGetter(info);
1380 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1419 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1381 } 1420 }
1382 1421
1383 static void float32ArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info) 1422 static void float32ArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::FunctionCallbackInfo<v8::Value>& info)
1384 { 1423 {
1385 v8::Local<v8::Object> holder = info.Holder(); 1424 v8::Local<v8::Object> holder = info.Holder();
1386 TestObject* impl = V8TestObject::toImpl(holder); 1425 TestObject* impl = V8TestObject::toImpl(holder);
1387 DOMFloat32Array* cppValue = v8Value->IsFloat32Array() ? V8Float32Array::toIm pl(v8::Local<v8::Float32Array>::Cast(v8Value)) : 0; 1426 DOMFloat32Array* cppValue = v8Value->IsFloat32Array() ? V8Float32Array::toIm pl(v8::Local<v8::Float32Array>::Cast(v8Value)) : 0;
1388 impl->setFloat32ArrayAttribute(WTF::getPtr(cppValue)); 1427 impl->setFloat32ArrayAttribute(WTF::getPtr(cppValue));
1389 } 1428 }
1390 1429
1391 static void float32ArrayAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1430 static void float32ArrayAttributeAttributeSetterCallback(const v8::FunctionCallb ackInfo<v8::Value>& info)
1392 { 1431 {
1432 v8::Local<v8::Value> v8Value = info[0];
1393 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1433 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1394 TestObjectV8Internal::float32ArrayAttributeAttributeSetter(v8Value, info); 1434 TestObjectV8Internal::float32ArrayAttributeAttributeSetter(v8Value, info);
1395 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1435 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1396 } 1436 }
1397 1437
1398 static void uint8ArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info) 1438 static void uint8ArrayAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8 ::Value>& info)
1399 { 1439 {
1400 v8::Local<v8::Object> holder = info.Holder(); 1440 v8::Local<v8::Object> holder = info.Holder();
1401 TestObject* impl = V8TestObject::toImpl(holder); 1441 TestObject* impl = V8TestObject::toImpl(holder);
1402 v8SetReturnValueFast(info, WTF::getPtr(impl->uint8ArrayAttribute()), impl); 1442 v8SetReturnValueFast(info, WTF::getPtr(impl->uint8ArrayAttribute()), impl);
1403 } 1443 }
1404 1444
1405 static void uint8ArrayAttributeAttributeGetterCallback(v8::Local<v8::Name>, cons t v8::PropertyCallbackInfo<v8::Value>& info) 1445 static void uint8ArrayAttributeAttributeGetterCallback(const v8::FunctionCallbac kInfo<v8::Value>& info)
1406 { 1446 {
1407 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1447 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1408 TestObjectV8Internal::uint8ArrayAttributeAttributeGetter(info); 1448 TestObjectV8Internal::uint8ArrayAttributeAttributeGetter(info);
1409 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1449 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1410 } 1450 }
1411 1451
1412 static void uint8ArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info) 1452 static void uint8ArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::FunctionCallbackInfo<v8::Value>& info)
1413 { 1453 {
1414 v8::Local<v8::Object> holder = info.Holder(); 1454 v8::Local<v8::Object> holder = info.Holder();
1415 TestObject* impl = V8TestObject::toImpl(holder); 1455 TestObject* impl = V8TestObject::toImpl(holder);
1416 DOMUint8Array* cppValue = v8Value->IsUint8Array() ? V8Uint8Array::toImpl(v8: :Local<v8::Uint8Array>::Cast(v8Value)) : 0; 1456 DOMUint8Array* cppValue = v8Value->IsUint8Array() ? V8Uint8Array::toImpl(v8: :Local<v8::Uint8Array>::Cast(v8Value)) : 0;
1417 impl->setUint8ArrayAttribute(WTF::getPtr(cppValue)); 1457 impl->setUint8ArrayAttribute(WTF::getPtr(cppValue));
1418 } 1458 }
1419 1459
1420 static void uint8ArrayAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1460 static void uint8ArrayAttributeAttributeSetterCallback(const v8::FunctionCallbac kInfo<v8::Value>& info)
1421 { 1461 {
1462 v8::Local<v8::Value> v8Value = info[0];
1422 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1463 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1423 TestObjectV8Internal::uint8ArrayAttributeAttributeSetter(v8Value, info); 1464 TestObjectV8Internal::uint8ArrayAttributeAttributeSetter(v8Value, info);
1424 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1465 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1425 } 1466 }
1426 1467
1427 static void selfAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 1468 static void selfAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info)
1428 { 1469 {
1429 v8::Local<v8::Object> holder = info.Holder(); 1470 v8::Local<v8::Object> holder = info.Holder();
1430 TestObject* impl = V8TestObject::toImpl(holder); 1471 TestObject* impl = V8TestObject::toImpl(holder);
1431 v8SetReturnValueFast(info, WTF::getPtr(impl->self()), impl); 1472 v8SetReturnValueFast(info, WTF::getPtr(impl->self()), impl);
1432 } 1473 }
1433 1474
1434 static void selfAttributeGetterCallback(v8::Local<v8::Name>, const v8::PropertyC allbackInfo<v8::Value>& info) 1475 static void selfAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value >& info)
1435 { 1476 {
1436 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1477 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1437 TestObjectV8Internal::selfAttributeGetter(info); 1478 TestObjectV8Internal::selfAttributeGetter(info);
1438 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1479 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1439 } 1480 }
1440 1481
1441 static void readonlyEventTargetAttributeAttributeGetter(const v8::PropertyCallba ckInfo<v8::Value>& info) 1482 static void readonlyEventTargetAttributeAttributeGetter(const v8::FunctionCallba ckInfo<v8::Value>& info)
1442 { 1483 {
1443 v8::Local<v8::Object> holder = info.Holder(); 1484 v8::Local<v8::Object> holder = info.Holder();
1444 TestObject* impl = V8TestObject::toImpl(holder); 1485 TestObject* impl = V8TestObject::toImpl(holder);
1445 v8SetReturnValueFast(info, WTF::getPtr(impl->readonlyEventTargetAttribute()) , impl); 1486 v8SetReturnValueFast(info, WTF::getPtr(impl->readonlyEventTargetAttribute()) , impl);
1446 } 1487 }
1447 1488
1448 static void readonlyEventTargetAttributeAttributeGetterCallback(v8::Local<v8::Na me>, const v8::PropertyCallbackInfo<v8::Value>& info) 1489 static void readonlyEventTargetAttributeAttributeGetterCallback(const v8::Functi onCallbackInfo<v8::Value>& info)
1449 { 1490 {
1450 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1491 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1451 TestObjectV8Internal::readonlyEventTargetAttributeAttributeGetter(info); 1492 TestObjectV8Internal::readonlyEventTargetAttributeAttributeGetter(info);
1452 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1493 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1453 } 1494 }
1454 1495
1455 static void readonlyEventTargetOrNullAttributeAttributeGetter(const v8::Property CallbackInfo<v8::Value>& info) 1496 static void readonlyEventTargetOrNullAttributeAttributeGetter(const v8::Function CallbackInfo<v8::Value>& info)
1456 { 1497 {
1457 v8::Local<v8::Object> holder = info.Holder(); 1498 v8::Local<v8::Object> holder = info.Holder();
1458 TestObject* impl = V8TestObject::toImpl(holder); 1499 TestObject* impl = V8TestObject::toImpl(holder);
1459 v8SetReturnValueFast(info, WTF::getPtr(impl->readonlyEventTargetOrNullAttrib ute()), impl); 1500 v8SetReturnValueFast(info, WTF::getPtr(impl->readonlyEventTargetOrNullAttrib ute()), impl);
1460 } 1501 }
1461 1502
1462 static void readonlyEventTargetOrNullAttributeAttributeGetterCallback(v8::Local< v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 1503 static void readonlyEventTargetOrNullAttributeAttributeGetterCallback(const v8:: FunctionCallbackInfo<v8::Value>& info)
1463 { 1504 {
1464 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1505 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1465 TestObjectV8Internal::readonlyEventTargetOrNullAttributeAttributeGetter(info ); 1506 TestObjectV8Internal::readonlyEventTargetOrNullAttributeAttributeGetter(info );
1466 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1507 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1467 } 1508 }
1468 1509
1469 static void readonlyWindowAttributeAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info) 1510 static void readonlyWindowAttributeAttributeGetter(const v8::FunctionCallbackInf o<v8::Value>& info)
1470 { 1511 {
1471 v8::Local<v8::Object> holder = info.Holder(); 1512 v8::Local<v8::Object> holder = info.Holder();
1472 TestObject* impl = V8TestObject::toImpl(holder); 1513 TestObject* impl = V8TestObject::toImpl(holder);
1473 v8SetReturnValueFast(info, WTF::getPtr(impl->readonlyWindowAttribute()), imp l); 1514 v8SetReturnValueFast(info, WTF::getPtr(impl->readonlyWindowAttribute()), imp l);
1474 } 1515 }
1475 1516
1476 static void readonlyWindowAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 1517 static void readonlyWindowAttributeAttributeGetterCallback(const v8::FunctionCal lbackInfo<v8::Value>& info)
1477 { 1518 {
1478 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1519 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1479 TestObjectV8Internal::readonlyWindowAttributeAttributeGetter(info); 1520 TestObjectV8Internal::readonlyWindowAttributeAttributeGetter(info);
1480 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1521 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1481 } 1522 }
1482 1523
1483 static void htmlCollectionAttributeAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info) 1524 static void htmlCollectionAttributeAttributeGetter(const v8::FunctionCallbackInf o<v8::Value>& info)
1484 { 1525 {
1485 v8::Local<v8::Object> holder = info.Holder(); 1526 v8::Local<v8::Object> holder = info.Holder();
1486 TestObject* impl = V8TestObject::toImpl(holder); 1527 TestObject* impl = V8TestObject::toImpl(holder);
1487 v8SetReturnValueFast(info, WTF::getPtr(impl->htmlCollectionAttribute()), imp l); 1528 v8SetReturnValueFast(info, WTF::getPtr(impl->htmlCollectionAttribute()), imp l);
1488 } 1529 }
1489 1530
1490 static void htmlCollectionAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 1531 static void htmlCollectionAttributeAttributeGetterCallback(const v8::FunctionCal lbackInfo<v8::Value>& info)
1491 { 1532 {
1492 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1533 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1493 TestObjectV8Internal::htmlCollectionAttributeAttributeGetter(info); 1534 TestObjectV8Internal::htmlCollectionAttributeAttributeGetter(info);
1494 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1535 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1495 } 1536 }
1496 1537
1497 static void htmlElementAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info) 1538 static void htmlElementAttributeAttributeGetter(const v8::FunctionCallbackInfo<v 8::Value>& info)
1498 { 1539 {
1499 v8::Local<v8::Object> holder = info.Holder(); 1540 v8::Local<v8::Object> holder = info.Holder();
1500 TestObject* impl = V8TestObject::toImpl(holder); 1541 TestObject* impl = V8TestObject::toImpl(holder);
1501 v8SetReturnValueFast(info, WTF::getPtr(impl->htmlElementAttribute()), impl); 1542 v8SetReturnValueFast(info, WTF::getPtr(impl->htmlElementAttribute()), impl);
1502 } 1543 }
1503 1544
1504 static void htmlElementAttributeAttributeGetterCallback(v8::Local<v8::Name>, con st v8::PropertyCallbackInfo<v8::Value>& info) 1545 static void htmlElementAttributeAttributeGetterCallback(const v8::FunctionCallba ckInfo<v8::Value>& info)
1505 { 1546 {
1506 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1547 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1507 TestObjectV8Internal::htmlElementAttributeAttributeGetter(info); 1548 TestObjectV8Internal::htmlElementAttributeAttributeGetter(info);
1508 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1549 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1509 } 1550 }
1510 1551
1511 static void stringArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info) 1552 static void stringArrayAttributeAttributeGetter(const v8::FunctionCallbackInfo<v 8::Value>& info)
1512 { 1553 {
1513 v8::Local<v8::Object> holder = info.Holder(); 1554 v8::Local<v8::Object> holder = info.Holder();
1514 TestObject* impl = V8TestObject::toImpl(holder); 1555 TestObject* impl = V8TestObject::toImpl(holder);
1515 v8SetReturnValue(info, toV8(impl->stringArrayAttribute(), info.Holder(), inf o.GetIsolate())); 1556 v8SetReturnValue(info, toV8(impl->stringArrayAttribute(), info.Holder(), inf o.GetIsolate()));
1516 } 1557 }
1517 1558
1518 static void stringArrayAttributeAttributeGetterCallback(v8::Local<v8::Name>, con st v8::PropertyCallbackInfo<v8::Value>& info) 1559 static void stringArrayAttributeAttributeGetterCallback(const v8::FunctionCallba ckInfo<v8::Value>& info)
1519 { 1560 {
1520 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1561 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1521 TestObjectV8Internal::stringArrayAttributeAttributeGetter(info); 1562 TestObjectV8Internal::stringArrayAttributeAttributeGetter(info);
1522 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1563 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1523 } 1564 }
1524 1565
1525 static void stringArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& info) 1566 static void stringArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::FunctionCallbackInfo<v8::Value>& info)
1526 { 1567 {
1527 v8::Local<v8::Object> holder = info.Holder(); 1568 v8::Local<v8::Object> holder = info.Holder();
1528 ExceptionState exceptionState(ExceptionState::SetterContext, "stringArrayAtt ribute", "TestObject", holder, info.GetIsolate()); 1569 ExceptionState exceptionState(ExceptionState::SetterContext, "stringArrayAtt ribute", "TestObject", holder, info.GetIsolate());
1529 TestObject* impl = V8TestObject::toImpl(holder); 1570 TestObject* impl = V8TestObject::toImpl(holder);
1530 Vector<String> cppValue = toImplArray<String>(v8Value, 0, info.GetIsolate(), exceptionState); 1571 Vector<String> cppValue = toImplArray<String>(v8Value, 0, info.GetIsolate(), exceptionState);
1531 if (exceptionState.throwIfNeeded()) 1572 if (exceptionState.throwIfNeeded())
1532 return; 1573 return;
1533 impl->setStringArrayAttribute(cppValue); 1574 impl->setStringArrayAttribute(cppValue);
1534 } 1575 }
1535 1576
1536 static void stringArrayAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8: :Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1577 static void stringArrayAttributeAttributeSetterCallback(const v8::FunctionCallba ckInfo<v8::Value>& info)
1537 { 1578 {
1579 v8::Local<v8::Value> v8Value = info[0];
1538 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1580 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1539 TestObjectV8Internal::stringArrayAttributeAttributeSetter(v8Value, info); 1581 TestObjectV8Internal::stringArrayAttributeAttributeSetter(v8Value, info);
1540 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1582 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1541 } 1583 }
1542 1584
1543 static void testInterfaceEmptyArrayAttributeAttributeGetter(const v8::PropertyCa llbackInfo<v8::Value>& info) 1585 static void testInterfaceEmptyArrayAttributeAttributeGetter(const v8::FunctionCa llbackInfo<v8::Value>& info)
1544 { 1586 {
1545 v8::Local<v8::Object> holder = info.Holder(); 1587 v8::Local<v8::Object> holder = info.Holder();
1546 TestObject* impl = V8TestObject::toImpl(holder); 1588 TestObject* impl = V8TestObject::toImpl(holder);
1547 v8SetReturnValue(info, toV8(impl->testInterfaceEmptyArrayAttribute(), info.H older(), info.GetIsolate())); 1589 v8SetReturnValue(info, toV8(impl->testInterfaceEmptyArrayAttribute(), info.H older(), info.GetIsolate()));
1548 } 1590 }
1549 1591
1550 static void testInterfaceEmptyArrayAttributeAttributeGetterCallback(v8::Local<v8 ::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 1592 static void testInterfaceEmptyArrayAttributeAttributeGetterCallback(const v8::Fu nctionCallbackInfo<v8::Value>& info)
1551 { 1593 {
1552 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1594 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1553 TestObjectV8Internal::testInterfaceEmptyArrayAttributeAttributeGetter(info); 1595 TestObjectV8Internal::testInterfaceEmptyArrayAttributeAttributeGetter(info);
1554 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1596 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1555 } 1597 }
1556 1598
1557 static void testInterfaceEmptyArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1599 static void testInterfaceEmptyArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
1558 { 1600 {
1559 v8::Local<v8::Object> holder = info.Holder(); 1601 v8::Local<v8::Object> holder = info.Holder();
1560 ExceptionState exceptionState(ExceptionState::SetterContext, "testInterfaceE mptyArrayAttribute", "TestObject", holder, info.GetIsolate()); 1602 ExceptionState exceptionState(ExceptionState::SetterContext, "testInterfaceE mptyArrayAttribute", "TestObject", holder, info.GetIsolate());
1561 TestObject* impl = V8TestObject::toImpl(holder); 1603 TestObject* impl = V8TestObject::toImpl(holder);
1562 Vector<RefPtr<TestInterfaceEmpty>> cppValue = (toRefPtrNativeArray<TestInter faceEmpty, V8TestInterfaceEmpty>(v8Value, 0, info.GetIsolate(), exceptionState)) ; 1604 Vector<RefPtr<TestInterfaceEmpty>> cppValue = (toRefPtrNativeArray<TestInter faceEmpty, V8TestInterfaceEmpty>(v8Value, 0, info.GetIsolate(), exceptionState)) ;
1563 if (exceptionState.throwIfNeeded()) 1605 if (exceptionState.throwIfNeeded())
1564 return; 1606 return;
1565 impl->setTestInterfaceEmptyArrayAttribute(cppValue); 1607 impl->setTestInterfaceEmptyArrayAttribute(cppValue);
1566 } 1608 }
1567 1609
1568 static void testInterfaceEmptyArrayAttributeAttributeSetterCallback(v8::Local<v8 ::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& inf o) 1610 static void testInterfaceEmptyArrayAttributeAttributeSetterCallback(const v8::Fu nctionCallbackInfo<v8::Value>& info)
1569 { 1611 {
1612 v8::Local<v8::Value> v8Value = info[0];
1570 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1613 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1571 TestObjectV8Internal::testInterfaceEmptyArrayAttributeAttributeSetter(v8Valu e, info); 1614 TestObjectV8Internal::testInterfaceEmptyArrayAttributeAttributeSetter(v8Valu e, info);
1572 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1615 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1573 } 1616 }
1574 1617
1575 static void floatArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info) 1618 static void floatArrayAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8 ::Value>& info)
1576 { 1619 {
1577 v8::Local<v8::Object> holder = info.Holder(); 1620 v8::Local<v8::Object> holder = info.Holder();
1578 TestObject* impl = V8TestObject::toImpl(holder); 1621 TestObject* impl = V8TestObject::toImpl(holder);
1579 v8SetReturnValue(info, toV8(impl->floatArrayAttribute(), info.Holder(), info .GetIsolate())); 1622 v8SetReturnValue(info, toV8(impl->floatArrayAttribute(), info.Holder(), info .GetIsolate()));
1580 } 1623 }
1581 1624
1582 static void floatArrayAttributeAttributeGetterCallback(v8::Local<v8::Name>, cons t v8::PropertyCallbackInfo<v8::Value>& info) 1625 static void floatArrayAttributeAttributeGetterCallback(const v8::FunctionCallbac kInfo<v8::Value>& info)
1583 { 1626 {
1584 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1627 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1585 TestObjectV8Internal::floatArrayAttributeAttributeGetter(info); 1628 TestObjectV8Internal::floatArrayAttributeAttributeGetter(info);
1586 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1629 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1587 } 1630 }
1588 1631
1589 static void floatArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info) 1632 static void floatArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::FunctionCallbackInfo<v8::Value>& info)
1590 { 1633 {
1591 v8::Local<v8::Object> holder = info.Holder(); 1634 v8::Local<v8::Object> holder = info.Holder();
1592 ExceptionState exceptionState(ExceptionState::SetterContext, "floatArrayAttr ibute", "TestObject", holder, info.GetIsolate()); 1635 ExceptionState exceptionState(ExceptionState::SetterContext, "floatArrayAttr ibute", "TestObject", holder, info.GetIsolate());
1593 TestObject* impl = V8TestObject::toImpl(holder); 1636 TestObject* impl = V8TestObject::toImpl(holder);
1594 Vector<float> cppValue = toImplArray<float>(v8Value, 0, info.GetIsolate(), e xceptionState); 1637 Vector<float> cppValue = toImplArray<float>(v8Value, 0, info.GetIsolate(), e xceptionState);
1595 if (exceptionState.throwIfNeeded()) 1638 if (exceptionState.throwIfNeeded())
1596 return; 1639 return;
1597 impl->setFloatArrayAttribute(cppValue); 1640 impl->setFloatArrayAttribute(cppValue);
1598 } 1641 }
1599 1642
1600 static void floatArrayAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1643 static void floatArrayAttributeAttributeSetterCallback(const v8::FunctionCallbac kInfo<v8::Value>& info)
1601 { 1644 {
1645 v8::Local<v8::Value> v8Value = info[0];
1602 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1646 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1603 TestObjectV8Internal::floatArrayAttributeAttributeSetter(v8Value, info); 1647 TestObjectV8Internal::floatArrayAttributeAttributeSetter(v8Value, info);
1604 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1648 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1605 } 1649 }
1606 1650
1607 static void stringOrNullAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info) 1651 static void stringOrNullAttributeAttributeGetter(const v8::FunctionCallbackInfo< v8::Value>& info)
1608 { 1652 {
1609 v8::Local<v8::Object> holder = info.Holder(); 1653 v8::Local<v8::Object> holder = info.Holder();
1610 TestObject* impl = V8TestObject::toImpl(holder); 1654 TestObject* impl = V8TestObject::toImpl(holder);
1611 v8SetReturnValueStringOrNull(info, impl->stringOrNullAttribute(), info.GetIs olate()); 1655 v8SetReturnValueStringOrNull(info, impl->stringOrNullAttribute(), info.GetIs olate());
1612 } 1656 }
1613 1657
1614 static void stringOrNullAttributeAttributeGetterCallback(v8::Local<v8::Name>, co nst v8::PropertyCallbackInfo<v8::Value>& info) 1658 static void stringOrNullAttributeAttributeGetterCallback(const v8::FunctionCallb ackInfo<v8::Value>& info)
1615 { 1659 {
1616 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1660 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1617 TestObjectV8Internal::stringOrNullAttributeAttributeGetter(info); 1661 TestObjectV8Internal::stringOrNullAttributeAttributeGetter(info);
1618 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1662 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1619 } 1663 }
1620 1664
1621 static void stringOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info) 1665 static void stringOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::FunctionCallbackInfo<v8::Value>& info)
1622 { 1666 {
1623 v8::Local<v8::Object> holder = info.Holder(); 1667 v8::Local<v8::Object> holder = info.Holder();
1624 TestObject* impl = V8TestObject::toImpl(holder); 1668 TestObject* impl = V8TestObject::toImpl(holder);
1625 V8StringResource<TreatNullAsNullString> cppValue = v8Value; 1669 V8StringResource<TreatNullAsNullString> cppValue = v8Value;
1626 if (!cppValue.prepare()) 1670 if (!cppValue.prepare())
1627 return; 1671 return;
1628 impl->setStringOrNullAttribute(cppValue); 1672 impl->setStringOrNullAttribute(cppValue);
1629 } 1673 }
1630 1674
1631 static void stringOrNullAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1675 static void stringOrNullAttributeAttributeSetterCallback(const v8::FunctionCallb ackInfo<v8::Value>& info)
1632 { 1676 {
1677 v8::Local<v8::Value> v8Value = info[0];
1633 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1678 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1634 TestObjectV8Internal::stringOrNullAttributeAttributeSetter(v8Value, info); 1679 TestObjectV8Internal::stringOrNullAttributeAttributeSetter(v8Value, info);
1635 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1680 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1636 } 1681 }
1637 1682
1638 static void longOrNullAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info) 1683 static void longOrNullAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8 ::Value>& info)
1639 { 1684 {
1640 v8::Local<v8::Object> holder = info.Holder(); 1685 v8::Local<v8::Object> holder = info.Holder();
1641 TestObject* impl = V8TestObject::toImpl(holder); 1686 TestObject* impl = V8TestObject::toImpl(holder);
1642 bool isNull = false; 1687 bool isNull = false;
1643 int cppValue(impl->longOrNullAttribute(isNull)); 1688 int cppValue(impl->longOrNullAttribute(isNull));
1644 if (isNull) { 1689 if (isNull) {
1645 v8SetReturnValueNull(info); 1690 v8SetReturnValueNull(info);
1646 return; 1691 return;
1647 } 1692 }
1648 v8SetReturnValueInt(info, cppValue); 1693 v8SetReturnValueInt(info, cppValue);
1649 } 1694 }
1650 1695
1651 static void longOrNullAttributeAttributeGetterCallback(v8::Local<v8::Name>, cons t v8::PropertyCallbackInfo<v8::Value>& info) 1696 static void longOrNullAttributeAttributeGetterCallback(const v8::FunctionCallbac kInfo<v8::Value>& info)
1652 { 1697 {
1653 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1698 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1654 TestObjectV8Internal::longOrNullAttributeAttributeGetter(info); 1699 TestObjectV8Internal::longOrNullAttributeAttributeGetter(info);
1655 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1700 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1656 } 1701 }
1657 1702
1658 static void longOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info) 1703 static void longOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::FunctionCallbackInfo<v8::Value>& info)
1659 { 1704 {
1660 v8::Local<v8::Object> holder = info.Holder(); 1705 v8::Local<v8::Object> holder = info.Holder();
1661 ExceptionState exceptionState(ExceptionState::SetterContext, "longOrNullAttr ibute", "TestObject", holder, info.GetIsolate()); 1706 ExceptionState exceptionState(ExceptionState::SetterContext, "longOrNullAttr ibute", "TestObject", holder, info.GetIsolate());
1662 TestObject* impl = V8TestObject::toImpl(holder); 1707 TestObject* impl = V8TestObject::toImpl(holder);
1663 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 1708 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
1664 if (exceptionState.throwIfNeeded()) 1709 if (exceptionState.throwIfNeeded())
1665 return; 1710 return;
1666 impl->setLongOrNullAttribute(cppValue); 1711 impl->setLongOrNullAttribute(cppValue);
1667 } 1712 }
1668 1713
1669 static void longOrNullAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1714 static void longOrNullAttributeAttributeSetterCallback(const v8::FunctionCallbac kInfo<v8::Value>& info)
1670 { 1715 {
1716 v8::Local<v8::Value> v8Value = info[0];
1671 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1717 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1672 TestObjectV8Internal::longOrNullAttributeAttributeSetter(v8Value, info); 1718 TestObjectV8Internal::longOrNullAttributeAttributeSetter(v8Value, info);
1673 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1719 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1674 } 1720 }
1675 1721
1676 static void testInterfaceOrNullAttributeAttributeGetter(const v8::PropertyCallba ckInfo<v8::Value>& info) 1722 static void testInterfaceOrNullAttributeAttributeGetter(const v8::FunctionCallba ckInfo<v8::Value>& info)
1677 { 1723 {
1678 v8::Local<v8::Object> holder = info.Holder(); 1724 v8::Local<v8::Object> holder = info.Holder();
1679 TestObject* impl = V8TestObject::toImpl(holder); 1725 TestObject* impl = V8TestObject::toImpl(holder);
1680 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceOrNullAttribute()) , impl); 1726 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceOrNullAttribute()) , impl);
1681 } 1727 }
1682 1728
1683 static void testInterfaceOrNullAttributeAttributeGetterCallback(v8::Local<v8::Na me>, const v8::PropertyCallbackInfo<v8::Value>& info) 1729 static void testInterfaceOrNullAttributeAttributeGetterCallback(const v8::Functi onCallbackInfo<v8::Value>& info)
1684 { 1730 {
1685 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1731 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1686 TestObjectV8Internal::testInterfaceOrNullAttributeAttributeGetter(info); 1732 TestObjectV8Internal::testInterfaceOrNullAttributeAttributeGetter(info);
1687 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1733 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1688 } 1734 }
1689 1735
1690 static void testInterfaceOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8V alue, const v8::PropertyCallbackInfo<void>& info) 1736 static void testInterfaceOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8V alue, const v8::FunctionCallbackInfo<v8::Value>& info)
1691 { 1737 {
1692 v8::Local<v8::Object> holder = info.Holder(); 1738 v8::Local<v8::Object> holder = info.Holder();
1693 TestObject* impl = V8TestObject::toImpl(holder); 1739 TestObject* impl = V8TestObject::toImpl(holder);
1694 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck (info.GetIsolate(), v8Value); 1740 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck (info.GetIsolate(), v8Value);
1695 impl->setTestInterfaceOrNullAttribute(WTF::getPtr(cppValue)); 1741 impl->setTestInterfaceOrNullAttribute(WTF::getPtr(cppValue));
1696 } 1742 }
1697 1743
1698 static void testInterfaceOrNullAttributeAttributeSetterCallback(v8::Local<v8::Na me>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1744 static void testInterfaceOrNullAttributeAttributeSetterCallback(const v8::Functi onCallbackInfo<v8::Value>& info)
1699 { 1745 {
1746 v8::Local<v8::Value> v8Value = info[0];
1700 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1747 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1701 TestObjectV8Internal::testInterfaceOrNullAttributeAttributeSetter(v8Value, i nfo); 1748 TestObjectV8Internal::testInterfaceOrNullAttributeAttributeSetter(v8Value, i nfo);
1702 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1749 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1703 } 1750 }
1704 1751
1705 static void testEnumAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8:: Value>& info) 1752 static void testEnumAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8:: Value>& info)
1706 { 1753 {
1707 v8::Local<v8::Object> holder = info.Holder(); 1754 v8::Local<v8::Object> holder = info.Holder();
1708 TestObject* impl = V8TestObject::toImpl(holder); 1755 TestObject* impl = V8TestObject::toImpl(holder);
1709 v8SetReturnValueString(info, impl->testEnumAttribute(), info.GetIsolate()); 1756 v8SetReturnValueString(info, impl->testEnumAttribute(), info.GetIsolate());
1710 } 1757 }
1711 1758
1712 static void testEnumAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 1759 static void testEnumAttributeAttributeGetterCallback(const v8::FunctionCallbackI nfo<v8::Value>& info)
1713 { 1760 {
1714 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1761 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1715 TestObjectV8Internal::testEnumAttributeAttributeGetter(info); 1762 TestObjectV8Internal::testEnumAttributeAttributeGetter(info);
1716 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1763 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1717 } 1764 }
1718 1765
1719 static void testEnumAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1766 static void testEnumAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
1720 { 1767 {
1721 v8::Local<v8::Object> holder = info.Holder(); 1768 v8::Local<v8::Object> holder = info.Holder();
1722 ExceptionState exceptionState(ExceptionState::SetterContext, "testEnumAttrib ute", "TestObject", holder, info.GetIsolate()); 1769 ExceptionState exceptionState(ExceptionState::SetterContext, "testEnumAttrib ute", "TestObject", holder, info.GetIsolate());
1723 TestObject* impl = V8TestObject::toImpl(holder); 1770 TestObject* impl = V8TestObject::toImpl(holder);
1724 V8StringResource<> cppValue = v8Value; 1771 V8StringResource<> cppValue = v8Value;
1725 if (!cppValue.prepare()) 1772 if (!cppValue.prepare())
1726 return; 1773 return;
1727 static const char* validValues[] = { 1774 static const char* validValues[] = {
1728 "", 1775 "",
1729 "EnumValue1", 1776 "EnumValue1",
1730 "EnumValue2", 1777 "EnumValue2",
1731 "EnumValue3", 1778 "EnumValue3",
1732 }; 1779 };
1733 if (!isValidEnum(cppValue, validValues, WTF_ARRAY_LENGTH(validValues), "Test Enum", exceptionState)) { 1780 if (!isValidEnum(cppValue, validValues, WTF_ARRAY_LENGTH(validValues), "Test Enum", exceptionState)) {
1734 currentExecutionContext(info.GetIsolate())->addConsoleMessage(ConsoleMes sage::create(JSMessageSource, WarningMessageLevel, exceptionState.message())); 1781 currentExecutionContext(info.GetIsolate())->addConsoleMessage(ConsoleMes sage::create(JSMessageSource, WarningMessageLevel, exceptionState.message()));
1735 return; 1782 return;
1736 } 1783 }
1737 impl->setTestEnumAttribute(cppValue); 1784 impl->setTestEnumAttribute(cppValue);
1738 } 1785 }
1739 1786
1740 static void testEnumAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1787 static void testEnumAttributeAttributeSetterCallback(const v8::FunctionCallbackI nfo<v8::Value>& info)
1741 { 1788 {
1789 v8::Local<v8::Value> v8Value = info[0];
1742 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1790 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1743 TestObjectV8Internal::testEnumAttributeAttributeSetter(v8Value, info); 1791 TestObjectV8Internal::testEnumAttributeAttributeSetter(v8Value, info);
1744 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1792 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1745 } 1793 }
1746 1794
1747 static void testEnumOrNullAttributeAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info) 1795 static void testEnumOrNullAttributeAttributeGetter(const v8::FunctionCallbackInf o<v8::Value>& info)
1748 { 1796 {
1749 v8::Local<v8::Object> holder = info.Holder(); 1797 v8::Local<v8::Object> holder = info.Holder();
1750 TestObject* impl = V8TestObject::toImpl(holder); 1798 TestObject* impl = V8TestObject::toImpl(holder);
1751 v8SetReturnValueStringOrNull(info, impl->testEnumOrNullAttribute(), info.Get Isolate()); 1799 v8SetReturnValueStringOrNull(info, impl->testEnumOrNullAttribute(), info.Get Isolate());
1752 } 1800 }
1753 1801
1754 static void testEnumOrNullAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 1802 static void testEnumOrNullAttributeAttributeGetterCallback(const v8::FunctionCal lbackInfo<v8::Value>& info)
1755 { 1803 {
1756 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1804 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1757 TestObjectV8Internal::testEnumOrNullAttributeAttributeGetter(info); 1805 TestObjectV8Internal::testEnumOrNullAttributeAttributeGetter(info);
1758 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1806 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1759 } 1807 }
1760 1808
1761 static void testEnumOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1809 static void testEnumOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
1762 { 1810 {
1763 v8::Local<v8::Object> holder = info.Holder(); 1811 v8::Local<v8::Object> holder = info.Holder();
1764 ExceptionState exceptionState(ExceptionState::SetterContext, "testEnumOrNull Attribute", "TestObject", holder, info.GetIsolate()); 1812 ExceptionState exceptionState(ExceptionState::SetterContext, "testEnumOrNull Attribute", "TestObject", holder, info.GetIsolate());
1765 TestObject* impl = V8TestObject::toImpl(holder); 1813 TestObject* impl = V8TestObject::toImpl(holder);
1766 V8StringResource<TreatNullAsNullString> cppValue = v8Value; 1814 V8StringResource<TreatNullAsNullString> cppValue = v8Value;
1767 if (!cppValue.prepare()) 1815 if (!cppValue.prepare())
1768 return; 1816 return;
1769 static const char* validValues[] = { 1817 static const char* validValues[] = {
1770 "", 1818 "",
1771 "EnumValue1", 1819 "EnumValue1",
1772 "EnumValue2", 1820 "EnumValue2",
1773 "EnumValue3", 1821 "EnumValue3",
1774 }; 1822 };
1775 if (!isValidEnum(cppValue, validValues, WTF_ARRAY_LENGTH(validValues), "Test Enum", exceptionState)) { 1823 if (!isValidEnum(cppValue, validValues, WTF_ARRAY_LENGTH(validValues), "Test Enum", exceptionState)) {
1776 currentExecutionContext(info.GetIsolate())->addConsoleMessage(ConsoleMes sage::create(JSMessageSource, WarningMessageLevel, exceptionState.message())); 1824 currentExecutionContext(info.GetIsolate())->addConsoleMessage(ConsoleMes sage::create(JSMessageSource, WarningMessageLevel, exceptionState.message()));
1777 return; 1825 return;
1778 } 1826 }
1779 impl->setTestEnumOrNullAttribute(cppValue); 1827 impl->setTestEnumOrNullAttribute(cppValue);
1780 } 1828 }
1781 1829
1782 static void testEnumOrNullAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1830 static void testEnumOrNullAttributeAttributeSetterCallback(const v8::FunctionCal lbackInfo<v8::Value>& info)
1783 { 1831 {
1832 v8::Local<v8::Value> v8Value = info[0];
1784 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1833 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1785 TestObjectV8Internal::testEnumOrNullAttributeAttributeSetter(v8Value, info); 1834 TestObjectV8Internal::testEnumOrNullAttributeAttributeSetter(v8Value, info);
1786 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1835 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1787 } 1836 }
1788 1837
1789 static void staticStringAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info) 1838 static void staticStringAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info)
1790 { 1839 {
1791 v8SetReturnValueString(info, TestObject::staticStringAttribute(), info.GetIs olate()); 1840 v8SetReturnValueString(info, TestObject::staticStringAttribute(), info.GetIs olate());
1792 } 1841 }
1793 1842
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
1835 TestObject::setStaticLongAttribute(cppValue); 1884 TestObject::setStaticLongAttribute(cppValue);
1836 } 1885 }
1837 1886
1838 static void staticLongAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1887 static void staticLongAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1839 { 1888 {
1840 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1889 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1841 TestObjectV8Internal::staticLongAttributeAttributeSetter(v8Value, info); 1890 TestObjectV8Internal::staticLongAttributeAttributeSetter(v8Value, info);
1842 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1891 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1843 } 1892 }
1844 1893
1845 static void eventHandlerAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info) 1894 static void eventHandlerAttributeAttributeGetter(const v8::FunctionCallbackInfo< v8::Value>& info)
1846 { 1895 {
1847 v8::Local<v8::Object> holder = info.Holder(); 1896 v8::Local<v8::Object> holder = info.Holder();
1848 TestObject* impl = V8TestObject::toImpl(holder); 1897 TestObject* impl = V8TestObject::toImpl(holder);
1849 EventListener* cppValue(impl->eventHandlerAttribute()); 1898 EventListener* cppValue(impl->eventHandlerAttribute());
1850 v8SetReturnValue(info, cppValue ? v8::Local<v8::Value>(V8AbstractEventListen er::cast(cppValue)->getListenerObject(impl->executionContext())) : v8::Local<v8: :Value>(v8::Null(info.GetIsolate()))); 1899 v8SetReturnValue(info, cppValue ? v8::Local<v8::Value>(V8AbstractEventListen er::cast(cppValue)->getListenerObject(impl->executionContext())) : v8::Local<v8: :Value>(v8::Null(info.GetIsolate())));
1851 } 1900 }
1852 1901
1853 static void eventHandlerAttributeAttributeGetterCallback(v8::Local<v8::Name>, co nst v8::PropertyCallbackInfo<v8::Value>& info) 1902 static void eventHandlerAttributeAttributeGetterCallback(const v8::FunctionCallb ackInfo<v8::Value>& info)
1854 { 1903 {
1855 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1904 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1856 TestObjectV8Internal::eventHandlerAttributeAttributeGetter(info); 1905 TestObjectV8Internal::eventHandlerAttributeAttributeGetter(info);
1857 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1906 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1858 } 1907 }
1859 1908
1860 static void eventHandlerAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info) 1909 static void eventHandlerAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::FunctionCallbackInfo<v8::Value>& info)
1861 { 1910 {
1862 v8::Local<v8::Object> holder = info.Holder(); 1911 v8::Local<v8::Object> holder = info.Holder();
1863 TestObject* impl = V8TestObject::toImpl(holder); 1912 TestObject* impl = V8TestObject::toImpl(holder);
1864 moveEventListenerToNewWrapper(info.GetIsolate(), holder, impl->eventHandlerA ttribute(), v8Value, V8TestObject::eventListenerCacheIndex); 1913 moveEventListenerToNewWrapper(info.GetIsolate(), holder, impl->eventHandlerA ttribute(), v8Value, V8TestObject::eventListenerCacheIndex);
1865 impl->setEventHandlerAttribute(V8EventListenerList::getEventListener(ScriptS tate::current(info.GetIsolate()), v8Value, true, ListenerFindOrCreate)); 1914 impl->setEventHandlerAttribute(V8EventListenerList::getEventListener(ScriptS tate::current(info.GetIsolate()), v8Value, true, ListenerFindOrCreate));
1866 } 1915 }
1867 1916
1868 static void eventHandlerAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1917 static void eventHandlerAttributeAttributeSetterCallback(const v8::FunctionCallb ackInfo<v8::Value>& info)
1869 { 1918 {
1919 v8::Local<v8::Value> v8Value = info[0];
1870 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1920 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1871 TestObjectV8Internal::eventHandlerAttributeAttributeSetter(v8Value, info); 1921 TestObjectV8Internal::eventHandlerAttributeAttributeSetter(v8Value, info);
1872 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1922 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1873 } 1923 }
1874 1924
1875 static void doubleOrStringAttributeAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info) 1925 static void doubleOrStringAttributeAttributeGetter(const v8::FunctionCallbackInf o<v8::Value>& info)
1876 { 1926 {
1877 v8::Local<v8::Object> holder = info.Holder(); 1927 v8::Local<v8::Object> holder = info.Holder();
1878 TestObject* impl = V8TestObject::toImpl(holder); 1928 TestObject* impl = V8TestObject::toImpl(holder);
1879 DoubleOrString result; 1929 DoubleOrString result;
1880 impl->doubleOrStringAttribute(result); 1930 impl->doubleOrStringAttribute(result);
1881 v8SetReturnValue(info, result); 1931 v8SetReturnValue(info, result);
1882 } 1932 }
1883 1933
1884 static void doubleOrStringAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 1934 static void doubleOrStringAttributeAttributeGetterCallback(const v8::FunctionCal lbackInfo<v8::Value>& info)
1885 { 1935 {
1886 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1936 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1887 TestObjectV8Internal::doubleOrStringAttributeAttributeGetter(info); 1937 TestObjectV8Internal::doubleOrStringAttributeAttributeGetter(info);
1888 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1938 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1889 } 1939 }
1890 1940
1891 static void doubleOrStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1941 static void doubleOrStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
1892 { 1942 {
1893 v8::Local<v8::Object> holder = info.Holder(); 1943 v8::Local<v8::Object> holder = info.Holder();
1894 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleOrString Attribute", "TestObject", holder, info.GetIsolate()); 1944 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleOrString Attribute", "TestObject", holder, info.GetIsolate());
1895 TestObject* impl = V8TestObject::toImpl(holder); 1945 TestObject* impl = V8TestObject::toImpl(holder);
1896 DoubleOrString cppValue; 1946 DoubleOrString cppValue;
1897 V8DoubleOrString::toImpl(info.GetIsolate(), v8Value, cppValue, exceptionStat e); 1947 V8DoubleOrString::toImpl(info.GetIsolate(), v8Value, cppValue, exceptionStat e);
1898 if (exceptionState.throwIfNeeded()) 1948 if (exceptionState.throwIfNeeded())
1899 return; 1949 return;
1900 impl->setDoubleOrStringAttribute(cppValue); 1950 impl->setDoubleOrStringAttribute(cppValue);
1901 } 1951 }
1902 1952
1903 static void doubleOrStringAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1953 static void doubleOrStringAttributeAttributeSetterCallback(const v8::FunctionCal lbackInfo<v8::Value>& info)
1904 { 1954 {
1955 v8::Local<v8::Value> v8Value = info[0];
1905 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1956 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1906 TestObjectV8Internal::doubleOrStringAttributeAttributeSetter(v8Value, info); 1957 TestObjectV8Internal::doubleOrStringAttributeAttributeSetter(v8Value, info);
1907 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1958 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1908 } 1959 }
1909 1960
1910 static void doubleOrStringOrNullAttributeAttributeGetter(const v8::PropertyCallb ackInfo<v8::Value>& info) 1961 static void doubleOrStringOrNullAttributeAttributeGetter(const v8::FunctionCallb ackInfo<v8::Value>& info)
1911 { 1962 {
1912 v8::Local<v8::Object> holder = info.Holder(); 1963 v8::Local<v8::Object> holder = info.Holder();
1913 TestObject* impl = V8TestObject::toImpl(holder); 1964 TestObject* impl = V8TestObject::toImpl(holder);
1914 DoubleOrString result; 1965 DoubleOrString result;
1915 impl->doubleOrStringOrNullAttribute(result); 1966 impl->doubleOrStringOrNullAttribute(result);
1916 v8SetReturnValue(info, result); 1967 v8SetReturnValue(info, result);
1917 } 1968 }
1918 1969
1919 static void doubleOrStringOrNullAttributeAttributeGetterCallback(v8::Local<v8::N ame>, const v8::PropertyCallbackInfo<v8::Value>& info) 1970 static void doubleOrStringOrNullAttributeAttributeGetterCallback(const v8::Funct ionCallbackInfo<v8::Value>& info)
1920 { 1971 {
1921 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1972 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1922 TestObjectV8Internal::doubleOrStringOrNullAttributeAttributeGetter(info); 1973 TestObjectV8Internal::doubleOrStringOrNullAttributeAttributeGetter(info);
1923 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1974 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1924 } 1975 }
1925 1976
1926 static void doubleOrStringOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8 Value, const v8::PropertyCallbackInfo<void>& info) 1977 static void doubleOrStringOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8 Value, const v8::FunctionCallbackInfo<v8::Value>& info)
1927 { 1978 {
1928 v8::Local<v8::Object> holder = info.Holder(); 1979 v8::Local<v8::Object> holder = info.Holder();
1929 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleOrString OrNullAttribute", "TestObject", holder, info.GetIsolate()); 1980 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleOrString OrNullAttribute", "TestObject", holder, info.GetIsolate());
1930 TestObject* impl = V8TestObject::toImpl(holder); 1981 TestObject* impl = V8TestObject::toImpl(holder);
1931 DoubleOrString cppValue; 1982 DoubleOrString cppValue;
1932 V8DoubleOrStringOrNull::toImpl(info.GetIsolate(), v8Value, cppValue, excepti onState); 1983 V8DoubleOrStringOrNull::toImpl(info.GetIsolate(), v8Value, cppValue, excepti onState);
1933 if (exceptionState.throwIfNeeded()) 1984 if (exceptionState.throwIfNeeded())
1934 return; 1985 return;
1935 impl->setDoubleOrStringOrNullAttribute(cppValue); 1986 impl->setDoubleOrStringOrNullAttribute(cppValue);
1936 } 1987 }
1937 1988
1938 static void doubleOrStringOrNullAttributeAttributeSetterCallback(v8::Local<v8::N ame>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1989 static void doubleOrStringOrNullAttributeAttributeSetterCallback(const v8::Funct ionCallbackInfo<v8::Value>& info)
1939 { 1990 {
1991 v8::Local<v8::Value> v8Value = info[0];
1940 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1992 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1941 TestObjectV8Internal::doubleOrStringOrNullAttributeAttributeSetter(v8Value, info); 1993 TestObjectV8Internal::doubleOrStringOrNullAttributeAttributeSetter(v8Value, info);
1942 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1994 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1943 } 1995 }
1944 1996
1945 static void doubleOrNullStringAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info) 1997 static void doubleOrNullStringAttributeAttributeGetter(const v8::FunctionCallbac kInfo<v8::Value>& info)
1946 { 1998 {
1947 v8::Local<v8::Object> holder = info.Holder(); 1999 v8::Local<v8::Object> holder = info.Holder();
1948 TestObject* impl = V8TestObject::toImpl(holder); 2000 TestObject* impl = V8TestObject::toImpl(holder);
1949 DoubleOrString result; 2001 DoubleOrString result;
1950 impl->doubleOrNullStringAttribute(result); 2002 impl->doubleOrNullStringAttribute(result);
1951 v8SetReturnValue(info, result); 2003 v8SetReturnValue(info, result);
1952 } 2004 }
1953 2005
1954 static void doubleOrNullStringAttributeAttributeGetterCallback(v8::Local<v8::Nam e>, const v8::PropertyCallbackInfo<v8::Value>& info) 2006 static void doubleOrNullStringAttributeAttributeGetterCallback(const v8::Functio nCallbackInfo<v8::Value>& info)
1955 { 2007 {
1956 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2008 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1957 TestObjectV8Internal::doubleOrNullStringAttributeAttributeGetter(info); 2009 TestObjectV8Internal::doubleOrNullStringAttributeAttributeGetter(info);
1958 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2010 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1959 } 2011 }
1960 2012
1961 static void doubleOrNullStringAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::PropertyCallbackInfo<void>& info) 2013 static void doubleOrNullStringAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::FunctionCallbackInfo<v8::Value>& info)
1962 { 2014 {
1963 v8::Local<v8::Object> holder = info.Holder(); 2015 v8::Local<v8::Object> holder = info.Holder();
1964 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleOrNullSt ringAttribute", "TestObject", holder, info.GetIsolate()); 2016 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleOrNullSt ringAttribute", "TestObject", holder, info.GetIsolate());
1965 TestObject* impl = V8TestObject::toImpl(holder); 2017 TestObject* impl = V8TestObject::toImpl(holder);
1966 DoubleOrString cppValue; 2018 DoubleOrString cppValue;
1967 V8DoubleOrStringOrNull::toImpl(info.GetIsolate(), v8Value, cppValue, excepti onState); 2019 V8DoubleOrStringOrNull::toImpl(info.GetIsolate(), v8Value, cppValue, excepti onState);
1968 if (exceptionState.throwIfNeeded()) 2020 if (exceptionState.throwIfNeeded())
1969 return; 2021 return;
1970 impl->setDoubleOrNullStringAttribute(cppValue); 2022 impl->setDoubleOrNullStringAttribute(cppValue);
1971 } 2023 }
1972 2024
1973 static void doubleOrNullStringAttributeAttributeSetterCallback(v8::Local<v8::Nam e>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2025 static void doubleOrNullStringAttributeAttributeSetterCallback(const v8::Functio nCallbackInfo<v8::Value>& info)
1974 { 2026 {
2027 v8::Local<v8::Value> v8Value = info[0];
1975 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2028 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1976 TestObjectV8Internal::doubleOrNullStringAttributeAttributeSetter(v8Value, in fo); 2029 TestObjectV8Internal::doubleOrNullStringAttributeAttributeSetter(v8Value, in fo);
1977 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2030 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1978 } 2031 }
1979 2032
1980 static void stringOrStringSequenceAttributeAttributeGetter(const v8::PropertyCal lbackInfo<v8::Value>& info) 2033 static void stringOrStringSequenceAttributeAttributeGetter(const v8::FunctionCal lbackInfo<v8::Value>& info)
1981 { 2034 {
1982 v8::Local<v8::Object> holder = info.Holder(); 2035 v8::Local<v8::Object> holder = info.Holder();
1983 TestObject* impl = V8TestObject::toImpl(holder); 2036 TestObject* impl = V8TestObject::toImpl(holder);
1984 StringOrStringSequence result; 2037 StringOrStringSequence result;
1985 impl->stringOrStringSequenceAttribute(result); 2038 impl->stringOrStringSequenceAttribute(result);
1986 v8SetReturnValue(info, result); 2039 v8SetReturnValue(info, result);
1987 } 2040 }
1988 2041
1989 static void stringOrStringSequenceAttributeAttributeGetterCallback(v8::Local<v8: :Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 2042 static void stringOrStringSequenceAttributeAttributeGetterCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info)
1990 { 2043 {
1991 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2044 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1992 TestObjectV8Internal::stringOrStringSequenceAttributeAttributeGetter(info); 2045 TestObjectV8Internal::stringOrStringSequenceAttributeAttributeGetter(info);
1993 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2046 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1994 } 2047 }
1995 2048
1996 static void stringOrStringSequenceAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2049 static void stringOrStringSequenceAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
1997 { 2050 {
1998 v8::Local<v8::Object> holder = info.Holder(); 2051 v8::Local<v8::Object> holder = info.Holder();
1999 ExceptionState exceptionState(ExceptionState::SetterContext, "stringOrString SequenceAttribute", "TestObject", holder, info.GetIsolate()); 2052 ExceptionState exceptionState(ExceptionState::SetterContext, "stringOrString SequenceAttribute", "TestObject", holder, info.GetIsolate());
2000 TestObject* impl = V8TestObject::toImpl(holder); 2053 TestObject* impl = V8TestObject::toImpl(holder);
2001 StringOrStringSequence cppValue; 2054 StringOrStringSequence cppValue;
2002 V8StringOrStringSequence::toImpl(info.GetIsolate(), v8Value, cppValue, excep tionState); 2055 V8StringOrStringSequence::toImpl(info.GetIsolate(), v8Value, cppValue, excep tionState);
2003 if (exceptionState.throwIfNeeded()) 2056 if (exceptionState.throwIfNeeded())
2004 return; 2057 return;
2005 impl->setStringOrStringSequenceAttribute(cppValue); 2058 impl->setStringOrStringSequenceAttribute(cppValue);
2006 } 2059 }
2007 2060
2008 static void stringOrStringSequenceAttributeAttributeSetterCallback(v8::Local<v8: :Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info ) 2061 static void stringOrStringSequenceAttributeAttributeSetterCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info)
2009 { 2062 {
2063 v8::Local<v8::Value> v8Value = info[0];
2010 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2064 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2011 TestObjectV8Internal::stringOrStringSequenceAttributeAttributeSetter(v8Value , info); 2065 TestObjectV8Internal::stringOrStringSequenceAttributeAttributeSetter(v8Value , info);
2012 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2066 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2013 } 2067 }
2014 2068
2015 static void testEnumOrDoubleAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info) 2069 static void testEnumOrDoubleAttributeAttributeGetter(const v8::FunctionCallbackI nfo<v8::Value>& info)
2016 { 2070 {
2017 v8::Local<v8::Object> holder = info.Holder(); 2071 v8::Local<v8::Object> holder = info.Holder();
2018 TestObject* impl = V8TestObject::toImpl(holder); 2072 TestObject* impl = V8TestObject::toImpl(holder);
2019 TestEnumOrDouble result; 2073 TestEnumOrDouble result;
2020 impl->testEnumOrDoubleAttribute(result); 2074 impl->testEnumOrDoubleAttribute(result);
2021 v8SetReturnValue(info, result); 2075 v8SetReturnValue(info, result);
2022 } 2076 }
2023 2077
2024 static void testEnumOrDoubleAttributeAttributeGetterCallback(v8::Local<v8::Name> , const v8::PropertyCallbackInfo<v8::Value>& info) 2078 static void testEnumOrDoubleAttributeAttributeGetterCallback(const v8::FunctionC allbackInfo<v8::Value>& info)
2025 { 2079 {
2026 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2080 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2027 TestObjectV8Internal::testEnumOrDoubleAttributeAttributeGetter(info); 2081 TestObjectV8Internal::testEnumOrDoubleAttributeAttributeGetter(info);
2028 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2082 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2029 } 2083 }
2030 2084
2031 static void testEnumOrDoubleAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::PropertyCallbackInfo<void>& info) 2085 static void testEnumOrDoubleAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::FunctionCallbackInfo<v8::Value>& info)
2032 { 2086 {
2033 v8::Local<v8::Object> holder = info.Holder(); 2087 v8::Local<v8::Object> holder = info.Holder();
2034 ExceptionState exceptionState(ExceptionState::SetterContext, "testEnumOrDoub leAttribute", "TestObject", holder, info.GetIsolate()); 2088 ExceptionState exceptionState(ExceptionState::SetterContext, "testEnumOrDoub leAttribute", "TestObject", holder, info.GetIsolate());
2035 TestObject* impl = V8TestObject::toImpl(holder); 2089 TestObject* impl = V8TestObject::toImpl(holder);
2036 TestEnumOrDouble cppValue; 2090 TestEnumOrDouble cppValue;
2037 V8TestEnumOrDouble::toImpl(info.GetIsolate(), v8Value, cppValue, exceptionSt ate); 2091 V8TestEnumOrDouble::toImpl(info.GetIsolate(), v8Value, cppValue, exceptionSt ate);
2038 if (exceptionState.throwIfNeeded()) 2092 if (exceptionState.throwIfNeeded())
2039 return; 2093 return;
2040 impl->setTestEnumOrDoubleAttribute(cppValue); 2094 impl->setTestEnumOrDoubleAttribute(cppValue);
2041 } 2095 }
2042 2096
2043 static void testEnumOrDoubleAttributeAttributeSetterCallback(v8::Local<v8::Name> , v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2097 static void testEnumOrDoubleAttributeAttributeSetterCallback(const v8::FunctionC allbackInfo<v8::Value>& info)
2044 { 2098 {
2099 v8::Local<v8::Value> v8Value = info[0];
2045 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2100 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2046 TestObjectV8Internal::testEnumOrDoubleAttributeAttributeSetter(v8Value, info ); 2101 TestObjectV8Internal::testEnumOrDoubleAttributeAttributeSetter(v8Value, info );
2047 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2102 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2048 } 2103 }
2049 2104
2050 static void unrestrictedDoubleOrStringAttributeAttributeGetter(const v8::Propert yCallbackInfo<v8::Value>& info) 2105 static void unrestrictedDoubleOrStringAttributeAttributeGetter(const v8::Functio nCallbackInfo<v8::Value>& info)
2051 { 2106 {
2052 v8::Local<v8::Object> holder = info.Holder(); 2107 v8::Local<v8::Object> holder = info.Holder();
2053 TestObject* impl = V8TestObject::toImpl(holder); 2108 TestObject* impl = V8TestObject::toImpl(holder);
2054 UnrestrictedDoubleOrString result; 2109 UnrestrictedDoubleOrString result;
2055 impl->unrestrictedDoubleOrStringAttribute(result); 2110 impl->unrestrictedDoubleOrStringAttribute(result);
2056 v8SetReturnValue(info, result); 2111 v8SetReturnValue(info, result);
2057 } 2112 }
2058 2113
2059 static void unrestrictedDoubleOrStringAttributeAttributeGetterCallback(v8::Local <v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 2114 static void unrestrictedDoubleOrStringAttributeAttributeGetterCallback(const v8: :FunctionCallbackInfo<v8::Value>& info)
2060 { 2115 {
2061 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2116 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2062 TestObjectV8Internal::unrestrictedDoubleOrStringAttributeAttributeGetter(inf o); 2117 TestObjectV8Internal::unrestrictedDoubleOrStringAttributeAttributeGetter(inf o);
2063 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2118 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2064 } 2119 }
2065 2120
2066 static void unrestrictedDoubleOrStringAttributeAttributeSetter(v8::Local<v8::Val ue> v8Value, const v8::PropertyCallbackInfo<void>& info) 2121 static void unrestrictedDoubleOrStringAttributeAttributeSetter(v8::Local<v8::Val ue> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
2067 { 2122 {
2068 v8::Local<v8::Object> holder = info.Holder(); 2123 v8::Local<v8::Object> holder = info.Holder();
2069 ExceptionState exceptionState(ExceptionState::SetterContext, "unrestrictedDo ubleOrStringAttribute", "TestObject", holder, info.GetIsolate()); 2124 ExceptionState exceptionState(ExceptionState::SetterContext, "unrestrictedDo ubleOrStringAttribute", "TestObject", holder, info.GetIsolate());
2070 TestObject* impl = V8TestObject::toImpl(holder); 2125 TestObject* impl = V8TestObject::toImpl(holder);
2071 UnrestrictedDoubleOrString cppValue; 2126 UnrestrictedDoubleOrString cppValue;
2072 V8UnrestrictedDoubleOrString::toImpl(info.GetIsolate(), v8Value, cppValue, e xceptionState); 2127 V8UnrestrictedDoubleOrString::toImpl(info.GetIsolate(), v8Value, cppValue, e xceptionState);
2073 if (exceptionState.throwIfNeeded()) 2128 if (exceptionState.throwIfNeeded())
2074 return; 2129 return;
2075 impl->setUnrestrictedDoubleOrStringAttribute(cppValue); 2130 impl->setUnrestrictedDoubleOrStringAttribute(cppValue);
2076 } 2131 }
2077 2132
2078 static void unrestrictedDoubleOrStringAttributeAttributeSetterCallback(v8::Local <v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2133 static void unrestrictedDoubleOrStringAttributeAttributeSetterCallback(const v8: :FunctionCallbackInfo<v8::Value>& info)
2079 { 2134 {
2135 v8::Local<v8::Value> v8Value = info[0];
2080 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2136 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2081 TestObjectV8Internal::unrestrictedDoubleOrStringAttributeAttributeSetter(v8V alue, info); 2137 TestObjectV8Internal::unrestrictedDoubleOrStringAttributeAttributeSetter(v8V alue, info);
2082 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2138 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2083 } 2139 }
2084 2140
2085 static void activityLoggingAccessForAllWorldsLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 2141 static void activityLoggingAccessForAllWorldsLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info)
2086 { 2142 {
2087 v8::Local<v8::Object> holder = info.Holder(); 2143 v8::Local<v8::Object> holder = info.Holder();
2088 TestObject* impl = V8TestObject::toImpl(holder); 2144 TestObject* impl = V8TestObject::toImpl(holder);
2089 v8SetReturnValueInt(info, impl->activityLoggingAccessForAllWorldsLongAttribu te()); 2145 v8SetReturnValueInt(info, impl->activityLoggingAccessForAllWorldsLongAttribu te());
2090 } 2146 }
2091 2147
2092 static void activityLoggingAccessForAllWorldsLongAttributeAttributeGetterCallbac k(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 2148 static void activityLoggingAccessForAllWorldsLongAttributeAttributeGetterCallbac k(const v8::FunctionCallbackInfo<v8::Value>& info)
2093 { 2149 {
2094 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2150 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2095 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 2151 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
2096 V8PerContextData* contextData = scriptState->perContextData(); 2152 V8PerContextData* contextData = scriptState->perContextData();
2097 if (contextData && contextData->activityLogger()) 2153 if (contextData && contextData->activityLogger())
2098 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssForAllWorldsLongAttribute"); 2154 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssForAllWorldsLongAttribute");
2099 TestObjectV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttribut eGetter(info); 2155 TestObjectV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttribut eGetter(info);
2100 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2156 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2101 } 2157 }
2102 2158
2103 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetter(v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2159 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetter(v8::Lo cal<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
2104 { 2160 {
2105 v8::Local<v8::Object> holder = info.Holder(); 2161 v8::Local<v8::Object> holder = info.Holder();
2106 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); 2162 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate());
2107 TestObject* impl = V8TestObject::toImpl(holder); 2163 TestObject* impl = V8TestObject::toImpl(holder);
2108 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 2164 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
2109 if (exceptionState.throwIfNeeded()) 2165 if (exceptionState.throwIfNeeded())
2110 return; 2166 return;
2111 impl->setActivityLoggingAccessForAllWorldsLongAttribute(cppValue); 2167 impl->setActivityLoggingAccessForAllWorldsLongAttribute(cppValue);
2112 } 2168 }
2113 2169
2114 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetterCallbac k(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI nfo<void>& info) 2170 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetterCallbac k(const v8::FunctionCallbackInfo<v8::Value>& info)
2115 { 2171 {
2172 v8::Local<v8::Value> v8Value = info[0];
2116 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2173 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2117 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 2174 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
2118 V8PerContextData* contextData = scriptState->perContextData(); 2175 V8PerContextData* contextData = scriptState->perContextData();
2119 if (contextData && contextData->activityLogger()) { 2176 if (contextData && contextData->activityLogger()) {
2120 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce ssForAllWorldsLongAttribute", v8Value); 2177 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce ssForAllWorldsLongAttribute", v8Value);
2121 } 2178 }
2122 TestObjectV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttribut eSetter(v8Value, info); 2179 TestObjectV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttribut eSetter(v8Value, info);
2123 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2180 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2124 } 2181 }
2125 2182
2126 static void activityLoggingGetterForAllWorldsLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 2183 static void activityLoggingGetterForAllWorldsLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info)
2127 { 2184 {
2128 v8::Local<v8::Object> holder = info.Holder(); 2185 v8::Local<v8::Object> holder = info.Holder();
2129 TestObject* impl = V8TestObject::toImpl(holder); 2186 TestObject* impl = V8TestObject::toImpl(holder);
2130 v8SetReturnValueInt(info, impl->activityLoggingGetterForAllWorldsLongAttribu te()); 2187 v8SetReturnValueInt(info, impl->activityLoggingGetterForAllWorldsLongAttribu te());
2131 } 2188 }
2132 2189
2133 static void activityLoggingGetterForAllWorldsLongAttributeAttributeGetterCallbac k(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 2190 static void activityLoggingGetterForAllWorldsLongAttributeAttributeGetterCallbac k(const v8::FunctionCallbackInfo<v8::Value>& info)
2134 { 2191 {
2135 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2192 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2136 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 2193 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
2137 V8PerContextData* contextData = scriptState->perContextData(); 2194 V8PerContextData* contextData = scriptState->perContextData();
2138 if (contextData && contextData->activityLogger()) 2195 if (contextData && contextData->activityLogger())
2139 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erForAllWorldsLongAttribute"); 2196 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erForAllWorldsLongAttribute");
2140 TestObjectV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttribut eGetter(info); 2197 TestObjectV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttribut eGetter(info);
2141 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2198 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2142 } 2199 }
2143 2200
2144 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetter(v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2201 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetter(v8::Lo cal<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
2145 { 2202 {
2146 v8::Local<v8::Object> holder = info.Holder(); 2203 v8::Local<v8::Object> holder = info.Holder();
2147 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); 2204 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate());
2148 TestObject* impl = V8TestObject::toImpl(holder); 2205 TestObject* impl = V8TestObject::toImpl(holder);
2149 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 2206 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
2150 if (exceptionState.throwIfNeeded()) 2207 if (exceptionState.throwIfNeeded())
2151 return; 2208 return;
2152 impl->setActivityLoggingGetterForAllWorldsLongAttribute(cppValue); 2209 impl->setActivityLoggingGetterForAllWorldsLongAttribute(cppValue);
2153 } 2210 }
2154 2211
2155 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetterCallbac k(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI nfo<void>& info) 2212 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetterCallbac k(const v8::FunctionCallbackInfo<v8::Value>& info)
2156 { 2213 {
2214 v8::Local<v8::Value> v8Value = info[0];
2157 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2215 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2158 TestObjectV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttribut eSetter(v8Value, info); 2216 TestObjectV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttribut eSetter(v8Value, info);
2159 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2217 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2160 } 2218 }
2161 2219
2162 static void activityLoggingSetterForAllWorldsLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 2220 static void activityLoggingSetterForAllWorldsLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info)
2163 { 2221 {
2164 v8::Local<v8::Object> holder = info.Holder(); 2222 v8::Local<v8::Object> holder = info.Holder();
2165 TestObject* impl = V8TestObject::toImpl(holder); 2223 TestObject* impl = V8TestObject::toImpl(holder);
2166 v8SetReturnValueInt(info, impl->activityLoggingSetterForAllWorldsLongAttribu te()); 2224 v8SetReturnValueInt(info, impl->activityLoggingSetterForAllWorldsLongAttribu te());
2167 } 2225 }
2168 2226
2169 static void activityLoggingSetterForAllWorldsLongAttributeAttributeGetterCallbac k(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 2227 static void activityLoggingSetterForAllWorldsLongAttributeAttributeGetterCallbac k(const v8::FunctionCallbackInfo<v8::Value>& info)
2170 { 2228 {
2171 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2229 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2172 TestObjectV8Internal::activityLoggingSetterForAllWorldsLongAttributeAttribut eGetter(info); 2230 TestObjectV8Internal::activityLoggingSetterForAllWorldsLongAttributeAttribut eGetter(info);
2173 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2231 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2174 } 2232 }
2175 2233
2176 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetter(v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2234 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetter(v8::Lo cal<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
2177 { 2235 {
2178 v8::Local<v8::Object> holder = info.Holder(); 2236 v8::Local<v8::Object> holder = info.Holder();
2179 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gSetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); 2237 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gSetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate());
2180 TestObject* impl = V8TestObject::toImpl(holder); 2238 TestObject* impl = V8TestObject::toImpl(holder);
2181 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 2239 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
2182 if (exceptionState.throwIfNeeded()) 2240 if (exceptionState.throwIfNeeded())
2183 return; 2241 return;
2184 impl->setActivityLoggingSetterForAllWorldsLongAttribute(cppValue); 2242 impl->setActivityLoggingSetterForAllWorldsLongAttribute(cppValue);
2185 } 2243 }
2186 2244
2187 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetterCallbac k(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI nfo<void>& info) 2245 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetterCallbac k(const v8::FunctionCallbackInfo<v8::Value>& info)
2188 { 2246 {
2247 v8::Local<v8::Value> v8Value = info[0];
2189 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2248 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2190 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 2249 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
2191 V8PerContextData* contextData = scriptState->perContextData(); 2250 V8PerContextData* contextData = scriptState->perContextData();
2192 if (contextData && contextData->activityLogger()) { 2251 if (contextData && contextData->activityLogger()) {
2193 contextData->activityLogger()->logSetter("TestObject.activityLoggingSett erForAllWorldsLongAttribute", v8Value); 2252 contextData->activityLogger()->logSetter("TestObject.activityLoggingSett erForAllWorldsLongAttribute", v8Value);
2194 } 2253 }
2195 TestObjectV8Internal::activityLoggingSetterForAllWorldsLongAttributeAttribut eSetter(v8Value, info); 2254 TestObjectV8Internal::activityLoggingSetterForAllWorldsLongAttributeAttribut eSetter(v8Value, info);
2196 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2255 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2197 } 2256 }
2198 2257
2199 static void cachedAttributeAnyAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info) 2258 static void cachedAttributeAnyAttributeAttributeGetter(const v8::FunctionCallbac kInfo<v8::Value>& info)
2200 { 2259 {
2201 v8::Local<v8::Object> holder = info.Holder(); 2260 v8::Local<v8::Object> holder = info.Holder();
2202 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cach edAttributeAnyAttribute"); 2261 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cach edAttributeAnyAttribute");
2203 TestObject* impl = V8TestObject::toImpl(holder); 2262 TestObject* impl = V8TestObject::toImpl(holder);
2204 if (!impl->isValueDirty()) { 2263 if (!impl->isValueDirty()) {
2205 v8::Local<v8::Value> v8Value = V8HiddenValue::getHiddenValue(info.GetIso late(), holder, propertyName); 2264 v8::Local<v8::Value> v8Value = V8HiddenValue::getHiddenValue(info.GetIso late(), holder, propertyName);
2206 if (!v8Value.IsEmpty()) { 2265 if (!v8Value.IsEmpty()) {
2207 v8SetReturnValue(info, v8Value); 2266 v8SetReturnValue(info, v8Value);
2208 return; 2267 return;
2209 } 2268 }
2210 } 2269 }
2211 ScriptValue cppValue(impl->cachedAttributeAnyAttribute()); 2270 ScriptValue cppValue(impl->cachedAttributeAnyAttribute());
2212 v8::Local<v8::Value> v8Value(cppValue.v8Value()); 2271 v8::Local<v8::Value> v8Value(cppValue.v8Value());
2213 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, v8Val ue); 2272 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, v8Val ue);
2214 v8SetReturnValue(info, v8Value); 2273 v8SetReturnValue(info, v8Value);
2215 } 2274 }
2216 2275
2217 static void cachedAttributeAnyAttributeAttributeGetterCallback(v8::Local<v8::Nam e>, const v8::PropertyCallbackInfo<v8::Value>& info) 2276 static void cachedAttributeAnyAttributeAttributeGetterCallback(const v8::Functio nCallbackInfo<v8::Value>& info)
2218 { 2277 {
2219 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2278 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2220 TestObjectV8Internal::cachedAttributeAnyAttributeAttributeGetter(info); 2279 TestObjectV8Internal::cachedAttributeAnyAttributeAttributeGetter(info);
2221 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2280 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2222 } 2281 }
2223 2282
2224 static void cachedAttributeAnyAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::PropertyCallbackInfo<void>& info) 2283 static void cachedAttributeAnyAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::FunctionCallbackInfo<v8::Value>& info)
2225 { 2284 {
2226 v8::Local<v8::Object> holder = info.Holder(); 2285 v8::Local<v8::Object> holder = info.Holder();
2227 TestObject* impl = V8TestObject::toImpl(holder); 2286 TestObject* impl = V8TestObject::toImpl(holder);
2228 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value); 2287 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value);
2229 impl->setCachedAttributeAnyAttribute(cppValue); 2288 impl->setCachedAttributeAnyAttribute(cppValue);
2230 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i nfo.GetIsolate(), "cachedAttributeAnyAttribute")); // Invalidate the cached valu e. 2289 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i nfo.GetIsolate(), "cachedAttributeAnyAttribute")); // Invalidate the cached valu e.
2231 } 2290 }
2232 2291
2233 static void cachedAttributeAnyAttributeAttributeSetterCallback(v8::Local<v8::Nam e>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2292 static void cachedAttributeAnyAttributeAttributeSetterCallback(const v8::Functio nCallbackInfo<v8::Value>& info)
2234 { 2293 {
2294 v8::Local<v8::Value> v8Value = info[0];
2235 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2295 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2236 TestObjectV8Internal::cachedAttributeAnyAttributeAttributeSetter(v8Value, in fo); 2296 TestObjectV8Internal::cachedAttributeAnyAttributeAttributeSetter(v8Value, in fo);
2237 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2297 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2238 } 2298 }
2239 2299
2240 static void cachedArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info) 2300 static void cachedArrayAttributeAttributeGetter(const v8::FunctionCallbackInfo<v 8::Value>& info)
2241 { 2301 {
2242 v8::Local<v8::Object> holder = info.Holder(); 2302 v8::Local<v8::Object> holder = info.Holder();
2243 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cach edArrayAttribute"); 2303 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cach edArrayAttribute");
2244 TestObject* impl = V8TestObject::toImpl(holder); 2304 TestObject* impl = V8TestObject::toImpl(holder);
2245 if (!impl->isArrayDirty()) { 2305 if (!impl->isArrayDirty()) {
2246 v8::Local<v8::Value> v8Value = V8HiddenValue::getHiddenValue(info.GetIso late(), holder, propertyName); 2306 v8::Local<v8::Value> v8Value = V8HiddenValue::getHiddenValue(info.GetIso late(), holder, propertyName);
2247 if (!v8Value.IsEmpty()) { 2307 if (!v8Value.IsEmpty()) {
2248 v8SetReturnValue(info, v8Value); 2308 v8SetReturnValue(info, v8Value);
2249 return; 2309 return;
2250 } 2310 }
2251 } 2311 }
2252 Vector<String> cppValue(impl->cachedArrayAttribute()); 2312 Vector<String> cppValue(impl->cachedArrayAttribute());
2253 v8::Local<v8::Value> v8Value(toV8(cppValue, info.Holder(), info.GetIsolate() )); 2313 v8::Local<v8::Value> v8Value(toV8(cppValue, info.Holder(), info.GetIsolate() ));
2254 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, v8Val ue); 2314 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, v8Val ue);
2255 v8SetReturnValue(info, v8Value); 2315 v8SetReturnValue(info, v8Value);
2256 } 2316 }
2257 2317
2258 static void cachedArrayAttributeAttributeGetterCallback(v8::Local<v8::Name>, con st v8::PropertyCallbackInfo<v8::Value>& info) 2318 static void cachedArrayAttributeAttributeGetterCallback(const v8::FunctionCallba ckInfo<v8::Value>& info)
2259 { 2319 {
2260 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2320 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2261 TestObjectV8Internal::cachedArrayAttributeAttributeGetter(info); 2321 TestObjectV8Internal::cachedArrayAttributeAttributeGetter(info);
2262 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2322 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2263 } 2323 }
2264 2324
2265 static void cachedArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& info) 2325 static void cachedArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::FunctionCallbackInfo<v8::Value>& info)
2266 { 2326 {
2267 v8::Local<v8::Object> holder = info.Holder(); 2327 v8::Local<v8::Object> holder = info.Holder();
2268 ExceptionState exceptionState(ExceptionState::SetterContext, "cachedArrayAtt ribute", "TestObject", holder, info.GetIsolate()); 2328 ExceptionState exceptionState(ExceptionState::SetterContext, "cachedArrayAtt ribute", "TestObject", holder, info.GetIsolate());
2269 TestObject* impl = V8TestObject::toImpl(holder); 2329 TestObject* impl = V8TestObject::toImpl(holder);
2270 Vector<String> cppValue = toImplArray<String>(v8Value, 0, info.GetIsolate(), exceptionState); 2330 Vector<String> cppValue = toImplArray<String>(v8Value, 0, info.GetIsolate(), exceptionState);
2271 if (exceptionState.throwIfNeeded()) 2331 if (exceptionState.throwIfNeeded())
2272 return; 2332 return;
2273 impl->setCachedArrayAttribute(cppValue); 2333 impl->setCachedArrayAttribute(cppValue);
2274 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i nfo.GetIsolate(), "cachedArrayAttribute")); // Invalidate the cached value. 2334 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i nfo.GetIsolate(), "cachedArrayAttribute")); // Invalidate the cached value.
2275 } 2335 }
2276 2336
2277 static void cachedArrayAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8: :Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2337 static void cachedArrayAttributeAttributeSetterCallback(const v8::FunctionCallba ckInfo<v8::Value>& info)
2278 { 2338 {
2339 v8::Local<v8::Value> v8Value = info[0];
2279 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2340 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2280 TestObjectV8Internal::cachedArrayAttributeAttributeSetter(v8Value, info); 2341 TestObjectV8Internal::cachedArrayAttributeAttributeSetter(v8Value, info);
2281 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2342 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2282 } 2343 }
2283 2344
2284 static void cachedStringOrNoneAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info) 2345 static void cachedStringOrNoneAttributeAttributeGetter(const v8::FunctionCallbac kInfo<v8::Value>& info)
2285 { 2346 {
2286 v8::Local<v8::Object> holder = info.Holder(); 2347 v8::Local<v8::Object> holder = info.Holder();
2287 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cach edStringOrNoneAttribute"); 2348 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cach edStringOrNoneAttribute");
2288 TestObject* impl = V8TestObject::toImpl(holder); 2349 TestObject* impl = V8TestObject::toImpl(holder);
2289 if (!impl->isStringDirty()) { 2350 if (!impl->isStringDirty()) {
2290 v8::Local<v8::Value> v8Value = V8HiddenValue::getHiddenValue(info.GetIso late(), holder, propertyName); 2351 v8::Local<v8::Value> v8Value = V8HiddenValue::getHiddenValue(info.GetIso late(), holder, propertyName);
2291 if (!v8Value.IsEmpty()) { 2352 if (!v8Value.IsEmpty()) {
2292 v8SetReturnValue(info, v8Value); 2353 v8SetReturnValue(info, v8Value);
2293 return; 2354 return;
2294 } 2355 }
2295 } 2356 }
2296 String cppValue(impl->cachedStringOrNoneAttribute()); 2357 String cppValue(impl->cachedStringOrNoneAttribute());
2297 v8::Local<v8::Value> v8Value(cppValue.isNull() ? v8::Local<v8::Value>(v8::Nu ll(info.GetIsolate())) : v8String(info.GetIsolate(), cppValue)); 2358 v8::Local<v8::Value> v8Value(cppValue.isNull() ? v8::Local<v8::Value>(v8::Nu ll(info.GetIsolate())) : v8String(info.GetIsolate(), cppValue));
2298 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, v8Val ue); 2359 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, v8Val ue);
2299 v8SetReturnValue(info, v8Value); 2360 v8SetReturnValue(info, v8Value);
2300 } 2361 }
2301 2362
2302 static void cachedStringOrNoneAttributeAttributeGetterCallback(v8::Local<v8::Nam e>, const v8::PropertyCallbackInfo<v8::Value>& info) 2363 static void cachedStringOrNoneAttributeAttributeGetterCallback(const v8::Functio nCallbackInfo<v8::Value>& info)
2303 { 2364 {
2304 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2365 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2305 TestObjectV8Internal::cachedStringOrNoneAttributeAttributeGetter(info); 2366 TestObjectV8Internal::cachedStringOrNoneAttributeAttributeGetter(info);
2306 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2367 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2307 } 2368 }
2308 2369
2309 static void cachedStringOrNoneAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::PropertyCallbackInfo<void>& info) 2370 static void cachedStringOrNoneAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::FunctionCallbackInfo<v8::Value>& info)
2310 { 2371 {
2311 v8::Local<v8::Object> holder = info.Holder(); 2372 v8::Local<v8::Object> holder = info.Holder();
2312 TestObject* impl = V8TestObject::toImpl(holder); 2373 TestObject* impl = V8TestObject::toImpl(holder);
2313 V8StringResource<TreatNullAsNullString> cppValue = v8Value; 2374 V8StringResource<TreatNullAsNullString> cppValue = v8Value;
2314 if (!cppValue.prepare()) 2375 if (!cppValue.prepare())
2315 return; 2376 return;
2316 impl->setCachedStringOrNoneAttribute(cppValue); 2377 impl->setCachedStringOrNoneAttribute(cppValue);
2317 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i nfo.GetIsolate(), "cachedStringOrNoneAttribute")); // Invalidate the cached valu e. 2378 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i nfo.GetIsolate(), "cachedStringOrNoneAttribute")); // Invalidate the cached valu e.
2318 } 2379 }
2319 2380
2320 static void cachedStringOrNoneAttributeAttributeSetterCallback(v8::Local<v8::Nam e>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2381 static void cachedStringOrNoneAttributeAttributeSetterCallback(const v8::Functio nCallbackInfo<v8::Value>& info)
2321 { 2382 {
2383 v8::Local<v8::Value> v8Value = info[0];
2322 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2384 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2323 TestObjectV8Internal::cachedStringOrNoneAttributeAttributeSetter(v8Value, in fo); 2385 TestObjectV8Internal::cachedStringOrNoneAttributeAttributeSetter(v8Value, in fo);
2324 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2386 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2325 } 2387 }
2326 2388
2327 static void callWithExecutionContextAnyAttributeAttributeGetter(const v8::Proper tyCallbackInfo<v8::Value>& info) 2389 static void callWithExecutionContextAnyAttributeAttributeGetter(const v8::Functi onCallbackInfo<v8::Value>& info)
2328 { 2390 {
2329 v8::Local<v8::Object> holder = info.Holder(); 2391 v8::Local<v8::Object> holder = info.Holder();
2330 TestObject* impl = V8TestObject::toImpl(holder); 2392 TestObject* impl = V8TestObject::toImpl(holder);
2331 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ()); 2393 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ());
2332 v8SetReturnValue(info, impl->callWithExecutionContextAnyAttribute(executionC ontext).v8Value()); 2394 v8SetReturnValue(info, impl->callWithExecutionContextAnyAttribute(executionC ontext).v8Value());
2333 } 2395 }
2334 2396
2335 static void callWithExecutionContextAnyAttributeAttributeGetterCallback(v8::Loca l<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 2397 static void callWithExecutionContextAnyAttributeAttributeGetterCallback(const v8 ::FunctionCallbackInfo<v8::Value>& info)
2336 { 2398 {
2337 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2399 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2338 TestObjectV8Internal::callWithExecutionContextAnyAttributeAttributeGetter(in fo); 2400 TestObjectV8Internal::callWithExecutionContextAnyAttributeAttributeGetter(in fo);
2339 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2401 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2340 } 2402 }
2341 2403
2342 static void callWithExecutionContextAnyAttributeAttributeSetter(v8::Local<v8::Va lue> v8Value, const v8::PropertyCallbackInfo<void>& info) 2404 static void callWithExecutionContextAnyAttributeAttributeSetter(v8::Local<v8::Va lue> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
2343 { 2405 {
2344 v8::Local<v8::Object> holder = info.Holder(); 2406 v8::Local<v8::Object> holder = info.Holder();
2345 TestObject* impl = V8TestObject::toImpl(holder); 2407 TestObject* impl = V8TestObject::toImpl(holder);
2346 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value); 2408 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value);
2347 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ()); 2409 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ());
2348 impl->setCallWithExecutionContextAnyAttribute(executionContext, cppValue); 2410 impl->setCallWithExecutionContextAnyAttribute(executionContext, cppValue);
2349 } 2411 }
2350 2412
2351 static void callWithExecutionContextAnyAttributeAttributeSetterCallback(v8::Loca l<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2413 static void callWithExecutionContextAnyAttributeAttributeSetterCallback(const v8 ::FunctionCallbackInfo<v8::Value>& info)
2352 { 2414 {
2415 v8::Local<v8::Value> v8Value = info[0];
2353 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2416 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2354 TestObjectV8Internal::callWithExecutionContextAnyAttributeAttributeSetter(v8 Value, info); 2417 TestObjectV8Internal::callWithExecutionContextAnyAttributeAttributeSetter(v8 Value, info);
2355 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2418 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2356 } 2419 }
2357 2420
2358 static void callWithScriptStateAnyAttributeAttributeGetter(const v8::PropertyCal lbackInfo<v8::Value>& info) 2421 static void callWithScriptStateAnyAttributeAttributeGetter(const v8::FunctionCal lbackInfo<v8::Value>& info)
2359 { 2422 {
2360 v8::Local<v8::Object> holder = info.Holder(); 2423 v8::Local<v8::Object> holder = info.Holder();
2361 TestObject* impl = V8TestObject::toImpl(holder); 2424 TestObject* impl = V8TestObject::toImpl(holder);
2362 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); 2425 ScriptState* scriptState = ScriptState::current(info.GetIsolate());
2363 v8SetReturnValue(info, impl->callWithScriptStateAnyAttribute(scriptState).v8 Value()); 2426 v8SetReturnValue(info, impl->callWithScriptStateAnyAttribute(scriptState).v8 Value());
2364 } 2427 }
2365 2428
2366 static void callWithScriptStateAnyAttributeAttributeGetterCallback(v8::Local<v8: :Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 2429 static void callWithScriptStateAnyAttributeAttributeGetterCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info)
2367 { 2430 {
2368 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2431 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2369 TestObjectV8Internal::callWithScriptStateAnyAttributeAttributeGetter(info); 2432 TestObjectV8Internal::callWithScriptStateAnyAttributeAttributeGetter(info);
2370 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2433 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2371 } 2434 }
2372 2435
2373 static void callWithScriptStateAnyAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2436 static void callWithScriptStateAnyAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
2374 { 2437 {
2375 v8::Local<v8::Object> holder = info.Holder(); 2438 v8::Local<v8::Object> holder = info.Holder();
2376 TestObject* impl = V8TestObject::toImpl(holder); 2439 TestObject* impl = V8TestObject::toImpl(holder);
2377 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value); 2440 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value);
2378 impl->setCallWithScriptStateAnyAttribute(scriptState, cppValue); 2441 impl->setCallWithScriptStateAnyAttribute(scriptState, cppValue);
2379 } 2442 }
2380 2443
2381 static void callWithScriptStateAnyAttributeAttributeSetterCallback(v8::Local<v8: :Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info ) 2444 static void callWithScriptStateAnyAttributeAttributeSetterCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info)
2382 { 2445 {
2446 v8::Local<v8::Value> v8Value = info[0];
2383 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2447 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2384 TestObjectV8Internal::callWithScriptStateAnyAttributeAttributeSetter(v8Value , info); 2448 TestObjectV8Internal::callWithScriptStateAnyAttributeAttributeSetter(v8Value , info);
2385 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2449 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2386 } 2450 }
2387 2451
2388 static void callWithExecutionContextAndScriptStateAnyAttributeAttributeGetter(co nst v8::PropertyCallbackInfo<v8::Value>& info) 2452 static void callWithExecutionContextAndScriptStateAnyAttributeAttributeGetter(co nst v8::FunctionCallbackInfo<v8::Value>& info)
2389 { 2453 {
2390 v8::Local<v8::Object> holder = info.Holder(); 2454 v8::Local<v8::Object> holder = info.Holder();
2391 TestObject* impl = V8TestObject::toImpl(holder); 2455 TestObject* impl = V8TestObject::toImpl(holder);
2392 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ()); 2456 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ());
2393 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); 2457 ScriptState* scriptState = ScriptState::current(info.GetIsolate());
2394 v8SetReturnValue(info, impl->callWithExecutionContextAndScriptStateAnyAttrib ute(scriptState, executionContext).v8Value()); 2458 v8SetReturnValue(info, impl->callWithExecutionContextAndScriptStateAnyAttrib ute(scriptState, executionContext).v8Value());
2395 } 2459 }
2396 2460
2397 static void callWithExecutionContextAndScriptStateAnyAttributeAttributeGetterCal lback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 2461 static void callWithExecutionContextAndScriptStateAnyAttributeAttributeGetterCal lback(const v8::FunctionCallbackInfo<v8::Value>& info)
2398 { 2462 {
2399 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2463 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2400 TestObjectV8Internal::callWithExecutionContextAndScriptStateAnyAttributeAttr ibuteGetter(info); 2464 TestObjectV8Internal::callWithExecutionContextAndScriptStateAnyAttributeAttr ibuteGetter(info);
2401 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2465 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2402 } 2466 }
2403 2467
2404 static void callWithExecutionContextAndScriptStateAnyAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2468 static void callWithExecutionContextAndScriptStateAnyAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
2405 { 2469 {
2406 v8::Local<v8::Object> holder = info.Holder(); 2470 v8::Local<v8::Object> holder = info.Holder();
2407 TestObject* impl = V8TestObject::toImpl(holder); 2471 TestObject* impl = V8TestObject::toImpl(holder);
2408 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value); 2472 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value);
2409 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ()); 2473 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ());
2410 impl->setCallWithExecutionContextAndScriptStateAnyAttribute(scriptState, exe cutionContext, cppValue); 2474 impl->setCallWithExecutionContextAndScriptStateAnyAttribute(scriptState, exe cutionContext, cppValue);
2411 } 2475 }
2412 2476
2413 static void callWithExecutionContextAndScriptStateAnyAttributeAttributeSetterCal lback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallb ackInfo<void>& info) 2477 static void callWithExecutionContextAndScriptStateAnyAttributeAttributeSetterCal lback(const v8::FunctionCallbackInfo<v8::Value>& info)
2414 { 2478 {
2479 v8::Local<v8::Value> v8Value = info[0];
2415 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2480 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2416 TestObjectV8Internal::callWithExecutionContextAndScriptStateAnyAttributeAttr ibuteSetter(v8Value, info); 2481 TestObjectV8Internal::callWithExecutionContextAndScriptStateAnyAttributeAttr ibuteSetter(v8Value, info);
2417 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2482 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2418 } 2483 }
2419 2484
2420 static void checkSecurityForNodeReadonlyDocumentAttributeAttributeGetter(const v 8::PropertyCallbackInfo<v8::Value>& info) 2485 static void checkSecurityForNodeReadonlyDocumentAttributeAttributeGetter(const v 8::FunctionCallbackInfo<v8::Value>& info)
2421 { 2486 {
2422 v8::Local<v8::Object> holder = info.Holder(); 2487 v8::Local<v8::Object> holder = info.Holder();
2423 TestObject* impl = V8TestObject::toImpl(holder); 2488 TestObject* impl = V8TestObject::toImpl(holder);
2424 ExceptionState exceptionState(ExceptionState::GetterContext, "checkSecurityF orNodeReadonlyDocumentAttribute", "TestObject", holder, info.GetIsolate()); 2489 ExceptionState exceptionState(ExceptionState::GetterContext, "checkSecurityF orNodeReadonlyDocumentAttribute", "TestObject", holder, info.GetIsolate());
2425 if (!BindingSecurity::shouldAllowAccessToNode(info.GetIsolate(), impl->check SecurityForNodeReadonlyDocumentAttribute(), exceptionState)) { 2490 if (!BindingSecurity::shouldAllowAccessToNode(info.GetIsolate(), impl->check SecurityForNodeReadonlyDocumentAttribute(), exceptionState)) {
2426 v8SetReturnValueNull(info); 2491 v8SetReturnValueNull(info);
2427 exceptionState.throwIfNeeded(); 2492 exceptionState.throwIfNeeded();
2428 return; 2493 return;
2429 } 2494 }
2430 v8SetReturnValueFast(info, WTF::getPtr(impl->checkSecurityForNodeReadonlyDoc umentAttribute()), impl); 2495 v8SetReturnValueFast(info, WTF::getPtr(impl->checkSecurityForNodeReadonlyDoc umentAttribute()), impl);
2431 } 2496 }
2432 2497
2433 static void checkSecurityForNodeReadonlyDocumentAttributeAttributeGetterCallback (v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 2498 static void checkSecurityForNodeReadonlyDocumentAttributeAttributeGetterCallback (const v8::FunctionCallbackInfo<v8::Value>& info)
2434 { 2499 {
2435 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2500 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2436 TestObjectV8Internal::checkSecurityForNodeReadonlyDocumentAttributeAttribute Getter(info); 2501 TestObjectV8Internal::checkSecurityForNodeReadonlyDocumentAttributeAttribute Getter(info);
2437 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2502 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2438 } 2503 }
2439 2504
2440 #if ENABLE(CONDITION) 2505 #if ENABLE(CONDITION)
2441 static void conditionalLongAttributeAttributeGetter(const v8::PropertyCallbackIn fo<v8::Value>& info) 2506 static void conditionalLongAttributeAttributeGetter(const v8::FunctionCallbackIn fo<v8::Value>& info)
2442 { 2507 {
2443 v8::Local<v8::Object> holder = info.Holder(); 2508 v8::Local<v8::Object> holder = info.Holder();
2444 TestObject* impl = V8TestObject::toImpl(holder); 2509 TestObject* impl = V8TestObject::toImpl(holder);
2445 v8SetReturnValueInt(info, impl->conditionalLongAttribute()); 2510 v8SetReturnValueInt(info, impl->conditionalLongAttribute());
2446 } 2511 }
2447 #endif // ENABLE(CONDITION) 2512 #endif // ENABLE(CONDITION)
2448 2513
2449 #if ENABLE(CONDITION) 2514 #if ENABLE(CONDITION)
2450 static void conditionalLongAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 2515 static void conditionalLongAttributeAttributeGetterCallback(const v8::FunctionCa llbackInfo<v8::Value>& info)
2451 { 2516 {
2452 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2517 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2453 TestObjectV8Internal::conditionalLongAttributeAttributeGetter(info); 2518 TestObjectV8Internal::conditionalLongAttributeAttributeGetter(info);
2454 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2519 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2455 } 2520 }
2456 #endif // ENABLE(CONDITION) 2521 #endif // ENABLE(CONDITION)
2457 2522
2458 #if ENABLE(CONDITION) 2523 #if ENABLE(CONDITION)
2459 static void conditionalLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value , const v8::PropertyCallbackInfo<void>& info) 2524 static void conditionalLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value , const v8::FunctionCallbackInfo<v8::Value>& info)
2460 { 2525 {
2461 v8::Local<v8::Object> holder = info.Holder(); 2526 v8::Local<v8::Object> holder = info.Holder();
2462 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalLon gAttribute", "TestObject", holder, info.GetIsolate()); 2527 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalLon gAttribute", "TestObject", holder, info.GetIsolate());
2463 TestObject* impl = V8TestObject::toImpl(holder); 2528 TestObject* impl = V8TestObject::toImpl(holder);
2464 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 2529 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
2465 if (exceptionState.throwIfNeeded()) 2530 if (exceptionState.throwIfNeeded())
2466 return; 2531 return;
2467 impl->setConditionalLongAttribute(cppValue); 2532 impl->setConditionalLongAttribute(cppValue);
2468 } 2533 }
2469 #endif // ENABLE(CONDITION) 2534 #endif // ENABLE(CONDITION)
2470 2535
2471 #if ENABLE(CONDITION) 2536 #if ENABLE(CONDITION)
2472 static void conditionalLongAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2537 static void conditionalLongAttributeAttributeSetterCallback(const v8::FunctionCa llbackInfo<v8::Value>& info)
2473 { 2538 {
2539 v8::Local<v8::Value> v8Value = info[0];
2474 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2540 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2475 TestObjectV8Internal::conditionalLongAttributeAttributeSetter(v8Value, info) ; 2541 TestObjectV8Internal::conditionalLongAttributeAttributeSetter(v8Value, info) ;
2476 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2542 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2477 } 2543 }
2478 #endif // ENABLE(CONDITION) 2544 #endif // ENABLE(CONDITION)
2479 2545
2480 static void testInterfaceEmptyConstructorAttributeAttributeSetter(v8::Local<v8:: Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2546 static void testInterfaceEmptyConstructorAttributeAttributeSetter(v8::Local<v8:: Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2481 { 2547 {
2482 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "test InterfaceEmptyConstructorAttribute"); 2548 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "test InterfaceEmptyConstructorAttribute");
2483 TestObjectForceSetAttributeOnThis(propertyName, v8Value, info); 2549 TestObjectForceSetAttributeOnThis(propertyName, v8Value, info);
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
2596 2662
2597 #if ENABLE(CONDITION) 2663 #if ENABLE(CONDITION)
2598 static void customLongAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2664 static void customLongAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2599 { 2665 {
2600 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2666 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2601 V8TestObject::customLongAttributeAttributeSetterCustom(v8Value, info); 2667 V8TestObject::customLongAttributeAttributeSetterCustom(v8Value, info);
2602 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2668 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2603 } 2669 }
2604 #endif // ENABLE(CONDITION) 2670 #endif // ENABLE(CONDITION)
2605 2671
2606 static void customElementsCallbacksReadonlyLongAttributeAttributeGetter(const v8 ::PropertyCallbackInfo<v8::Value>& info) 2672 static void customElementsCallbacksReadonlyLongAttributeAttributeGetter(const v8 ::FunctionCallbackInfo<v8::Value>& info)
2607 { 2673 {
2608 v8::Local<v8::Object> holder = info.Holder(); 2674 v8::Local<v8::Object> holder = info.Holder();
2609 TestObject* impl = V8TestObject::toImpl(holder); 2675 TestObject* impl = V8TestObject::toImpl(holder);
2610 v8SetReturnValueInt(info, impl->customElementsCallbacksReadonlyLongAttribute ()); 2676 v8SetReturnValueInt(info, impl->customElementsCallbacksReadonlyLongAttribute ());
2611 } 2677 }
2612 2678
2613 static void customElementsCallbacksReadonlyLongAttributeAttributeGetterCallback( v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 2679 static void customElementsCallbacksReadonlyLongAttributeAttributeGetterCallback( const v8::FunctionCallbackInfo<v8::Value>& info)
2614 { 2680 {
2615 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2681 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2616 TestObjectV8Internal::customElementsCallbacksReadonlyLongAttributeAttributeG etter(info); 2682 TestObjectV8Internal::customElementsCallbacksReadonlyLongAttributeAttributeG etter(info);
2617 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2683 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2618 } 2684 }
2619 2685
2620 static void deprecatedLongAttributeAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info) 2686 static void deprecatedLongAttributeAttributeGetter(const v8::FunctionCallbackInf o<v8::Value>& info)
2621 { 2687 {
2622 v8::Local<v8::Object> holder = info.Holder(); 2688 v8::Local<v8::Object> holder = info.Holder();
2623 TestObject* impl = V8TestObject::toImpl(holder); 2689 TestObject* impl = V8TestObject::toImpl(holder);
2624 v8SetReturnValueInt(info, impl->deprecatedLongAttribute()); 2690 v8SetReturnValueInt(info, impl->deprecatedLongAttribute());
2625 } 2691 }
2626 2692
2627 static void deprecatedLongAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 2693 static void deprecatedLongAttributeAttributeGetterCallback(const v8::FunctionCal lbackInfo<v8::Value>& info)
2628 { 2694 {
2629 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2695 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2630 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe cutionContext(info.GetIsolate()), UseCounter::LongAttribute); 2696 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe cutionContext(info.GetIsolate()), UseCounter::LongAttribute);
2631 TestObjectV8Internal::deprecatedLongAttributeAttributeGetter(info); 2697 TestObjectV8Internal::deprecatedLongAttributeAttributeGetter(info);
2632 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2698 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2633 } 2699 }
2634 2700
2635 static void deprecatedLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2701 static void deprecatedLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
2636 { 2702 {
2637 v8::Local<v8::Object> holder = info.Holder(); 2703 v8::Local<v8::Object> holder = info.Holder();
2638 ExceptionState exceptionState(ExceptionState::SetterContext, "deprecatedLong Attribute", "TestObject", holder, info.GetIsolate()); 2704 ExceptionState exceptionState(ExceptionState::SetterContext, "deprecatedLong Attribute", "TestObject", holder, info.GetIsolate());
2639 TestObject* impl = V8TestObject::toImpl(holder); 2705 TestObject* impl = V8TestObject::toImpl(holder);
2640 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 2706 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
2641 if (exceptionState.throwIfNeeded()) 2707 if (exceptionState.throwIfNeeded())
2642 return; 2708 return;
2643 impl->setDeprecatedLongAttribute(cppValue); 2709 impl->setDeprecatedLongAttribute(cppValue);
2644 } 2710 }
2645 2711
2646 static void deprecatedLongAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2712 static void deprecatedLongAttributeAttributeSetterCallback(const v8::FunctionCal lbackInfo<v8::Value>& info)
2647 { 2713 {
2714 v8::Local<v8::Value> v8Value = info[0];
2648 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2715 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2649 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe cutionContext(info.GetIsolate()), UseCounter::LongAttribute); 2716 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe cutionContext(info.GetIsolate()), UseCounter::LongAttribute);
2650 TestObjectV8Internal::deprecatedLongAttributeAttributeSetter(v8Value, info); 2717 TestObjectV8Internal::deprecatedLongAttributeAttributeSetter(v8Value, info);
2651 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2718 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2652 } 2719 }
2653 2720
2654 static void enforceRangeLongAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info) 2721 static void enforceRangeLongAttributeAttributeGetter(const v8::FunctionCallbackI nfo<v8::Value>& info)
2655 { 2722 {
2656 v8::Local<v8::Object> holder = info.Holder(); 2723 v8::Local<v8::Object> holder = info.Holder();
2657 TestObject* impl = V8TestObject::toImpl(holder); 2724 TestObject* impl = V8TestObject::toImpl(holder);
2658 v8SetReturnValueInt(info, impl->enforceRangeLongAttribute()); 2725 v8SetReturnValueInt(info, impl->enforceRangeLongAttribute());
2659 } 2726 }
2660 2727
2661 static void enforceRangeLongAttributeAttributeGetterCallback(v8::Local<v8::Name> , const v8::PropertyCallbackInfo<v8::Value>& info) 2728 static void enforceRangeLongAttributeAttributeGetterCallback(const v8::FunctionC allbackInfo<v8::Value>& info)
2662 { 2729 {
2663 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2730 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2664 TestObjectV8Internal::enforceRangeLongAttributeAttributeGetter(info); 2731 TestObjectV8Internal::enforceRangeLongAttributeAttributeGetter(info);
2665 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2732 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2666 } 2733 }
2667 2734
2668 static void enforceRangeLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::PropertyCallbackInfo<void>& info) 2735 static void enforceRangeLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::FunctionCallbackInfo<v8::Value>& info)
2669 { 2736 {
2670 v8::Local<v8::Object> holder = info.Holder(); 2737 v8::Local<v8::Object> holder = info.Holder();
2671 ExceptionState exceptionState(ExceptionState::SetterContext, "enforceRangeLo ngAttribute", "TestObject", holder, info.GetIsolate()); 2738 ExceptionState exceptionState(ExceptionState::SetterContext, "enforceRangeLo ngAttribute", "TestObject", holder, info.GetIsolate());
2672 TestObject* impl = V8TestObject::toImpl(holder); 2739 TestObject* impl = V8TestObject::toImpl(holder);
2673 int cppValue = toInt32(info.GetIsolate(), v8Value, EnforceRange, exceptionSt ate); 2740 int cppValue = toInt32(info.GetIsolate(), v8Value, EnforceRange, exceptionSt ate);
2674 if (exceptionState.throwIfNeeded()) 2741 if (exceptionState.throwIfNeeded())
2675 return; 2742 return;
2676 impl->setEnforceRangeLongAttribute(cppValue); 2743 impl->setEnforceRangeLongAttribute(cppValue);
2677 } 2744 }
2678 2745
2679 static void enforceRangeLongAttributeAttributeSetterCallback(v8::Local<v8::Name> , v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2746 static void enforceRangeLongAttributeAttributeSetterCallback(const v8::FunctionC allbackInfo<v8::Value>& info)
2680 { 2747 {
2748 v8::Local<v8::Value> v8Value = info[0];
2681 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2749 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2682 TestObjectV8Internal::enforceRangeLongAttributeAttributeSetter(v8Value, info ); 2750 TestObjectV8Internal::enforceRangeLongAttributeAttributeSetter(v8Value, info );
2683 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2751 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2684 } 2752 }
2685 2753
2686 static void exposeJSAccessorsLongAttributeAttributeGetter(const v8::FunctionCall backInfo<v8::Value>& info) 2754 static void exposeJSAccessorsLongAttributeAttributeGetter(const v8::FunctionCall backInfo<v8::Value>& info)
2687 { 2755 {
2688 v8::Local<v8::Object> holder = info.Holder(); 2756 v8::Local<v8::Object> holder = info.Holder();
2689 TestObject* impl = V8TestObject::toImpl(holder); 2757 TestObject* impl = V8TestObject::toImpl(holder);
2690 v8SetReturnValueInt(info, impl->exposeJSAccessorsLongAttribute()); 2758 v8SetReturnValueInt(info, impl->exposeJSAccessorsLongAttribute());
(...skipping 18 matching lines...) Expand all
2709 } 2777 }
2710 2778
2711 static void exposeJSAccessorsLongAttributeAttributeSetterCallback(const v8::Func tionCallbackInfo<v8::Value>& info) 2779 static void exposeJSAccessorsLongAttributeAttributeSetterCallback(const v8::Func tionCallbackInfo<v8::Value>& info)
2712 { 2780 {
2713 v8::Local<v8::Value> v8Value = info[0]; 2781 v8::Local<v8::Value> v8Value = info[0];
2714 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2782 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2715 TestObjectV8Internal::exposeJSAccessorsLongAttributeAttributeSetter(v8Value, info); 2783 TestObjectV8Internal::exposeJSAccessorsLongAttributeAttributeSetter(v8Value, info);
2716 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2784 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2717 } 2785 }
2718 2786
2719 static void implementedAsLongAttributeAttributeGetter(const v8::PropertyCallback Info<v8::Value>& info) 2787 static void implementedAsLongAttributeAttributeGetter(const v8::FunctionCallback Info<v8::Value>& info)
2720 { 2788 {
2721 v8::Local<v8::Object> holder = info.Holder(); 2789 v8::Local<v8::Object> holder = info.Holder();
2722 TestObject* impl = V8TestObject::toImpl(holder); 2790 TestObject* impl = V8TestObject::toImpl(holder);
2723 v8SetReturnValueInt(info, impl->implementedAsName()); 2791 v8SetReturnValueInt(info, impl->implementedAsName());
2724 } 2792 }
2725 2793
2726 static void implementedAsLongAttributeAttributeGetterCallback(v8::Local<v8::Name >, const v8::PropertyCallbackInfo<v8::Value>& info) 2794 static void implementedAsLongAttributeAttributeGetterCallback(const v8::Function CallbackInfo<v8::Value>& info)
2727 { 2795 {
2728 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2796 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2729 TestObjectV8Internal::implementedAsLongAttributeAttributeGetter(info); 2797 TestObjectV8Internal::implementedAsLongAttributeAttributeGetter(info);
2730 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2798 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2731 } 2799 }
2732 2800
2733 static void implementedAsLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val ue, const v8::PropertyCallbackInfo<void>& info) 2801 static void implementedAsLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val ue, const v8::FunctionCallbackInfo<v8::Value>& info)
2734 { 2802 {
2735 v8::Local<v8::Object> holder = info.Holder(); 2803 v8::Local<v8::Object> holder = info.Holder();
2736 ExceptionState exceptionState(ExceptionState::SetterContext, "implementedAsL ongAttribute", "TestObject", holder, info.GetIsolate()); 2804 ExceptionState exceptionState(ExceptionState::SetterContext, "implementedAsL ongAttribute", "TestObject", holder, info.GetIsolate());
2737 TestObject* impl = V8TestObject::toImpl(holder); 2805 TestObject* impl = V8TestObject::toImpl(holder);
2738 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 2806 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
2739 if (exceptionState.throwIfNeeded()) 2807 if (exceptionState.throwIfNeeded())
2740 return; 2808 return;
2741 impl->setImplementedAsName(cppValue); 2809 impl->setImplementedAsName(cppValue);
2742 } 2810 }
2743 2811
2744 static void implementedAsLongAttributeAttributeSetterCallback(v8::Local<v8::Name >, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2812 static void implementedAsLongAttributeAttributeSetterCallback(const v8::Function CallbackInfo<v8::Value>& info)
2745 { 2813 {
2814 v8::Local<v8::Value> v8Value = info[0];
2746 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2815 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2747 TestObjectV8Internal::implementedAsLongAttributeAttributeSetter(v8Value, inf o); 2816 TestObjectV8Internal::implementedAsLongAttributeAttributeSetter(v8Value, inf o);
2748 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2817 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2749 } 2818 }
2750 2819
2751 static void customImplementedAsLongAttributeAttributeGetterCallback(v8::Local<v8 ::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 2820 static void customImplementedAsLongAttributeAttributeGetterCallback(v8::Local<v8 ::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
2752 { 2821 {
2753 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2822 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2754 V8TestObject::customImplementedAsLongAttributeAttributeGetterCustom(info); 2823 V8TestObject::customImplementedAsLongAttributeAttributeGetterCustom(info);
2755 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2824 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
2801 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2870 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2802 } 2871 }
2803 2872
2804 static void customSetterImplementedAsLongAttributeAttributeSetterCallback(v8::Lo cal<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info) 2873 static void customSetterImplementedAsLongAttributeAttributeSetterCallback(v8::Lo cal<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info)
2805 { 2874 {
2806 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2875 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2807 V8TestObject::customSetterImplementedAsLongAttributeAttributeSetterCustom(v8 Value, info); 2876 V8TestObject::customSetterImplementedAsLongAttributeAttributeSetterCustom(v8 Value, info);
2808 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2877 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2809 } 2878 }
2810 2879
2811 static void measureAsLongAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info) 2880 static void measureAsLongAttributeAttributeGetter(const v8::FunctionCallbackInfo <v8::Value>& info)
2812 { 2881 {
2813 v8::Local<v8::Object> holder = info.Holder(); 2882 v8::Local<v8::Object> holder = info.Holder();
2814 TestObject* impl = V8TestObject::toImpl(holder); 2883 TestObject* impl = V8TestObject::toImpl(holder);
2815 v8SetReturnValueInt(info, impl->measureAsLongAttribute()); 2884 v8SetReturnValueInt(info, impl->measureAsLongAttribute());
2816 } 2885 }
2817 2886
2818 static void measureAsLongAttributeAttributeGetterCallback(v8::Local<v8::Name>, c onst v8::PropertyCallbackInfo<v8::Value>& info) 2887 static void measureAsLongAttributeAttributeGetterCallback(const v8::FunctionCall backInfo<v8::Value>& info)
2819 { 2888 {
2820 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2889 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2821 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::TestFeature); 2890 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::TestFeature);
2822 TestObjectV8Internal::measureAsLongAttributeAttributeGetter(info); 2891 TestObjectV8Internal::measureAsLongAttributeAttributeGetter(info);
2823 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2892 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2824 } 2893 }
2825 2894
2826 static void measureAsLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2895 static void measureAsLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
2827 { 2896 {
2828 v8::Local<v8::Object> holder = info.Holder(); 2897 v8::Local<v8::Object> holder = info.Holder();
2829 ExceptionState exceptionState(ExceptionState::SetterContext, "measureAsLongA ttribute", "TestObject", holder, info.GetIsolate()); 2898 ExceptionState exceptionState(ExceptionState::SetterContext, "measureAsLongA ttribute", "TestObject", holder, info.GetIsolate());
2830 TestObject* impl = V8TestObject::toImpl(holder); 2899 TestObject* impl = V8TestObject::toImpl(holder);
2831 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 2900 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
2832 if (exceptionState.throwIfNeeded()) 2901 if (exceptionState.throwIfNeeded())
2833 return; 2902 return;
2834 impl->setMeasureAsLongAttribute(cppValue); 2903 impl->setMeasureAsLongAttribute(cppValue);
2835 } 2904 }
2836 2905
2837 static void measureAsLongAttributeAttributeSetterCallback(v8::Local<v8::Name>, v 8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2906 static void measureAsLongAttributeAttributeSetterCallback(const v8::FunctionCall backInfo<v8::Value>& info)
2838 { 2907 {
2908 v8::Local<v8::Value> v8Value = info[0];
2839 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2909 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2840 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::TestFeature); 2910 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::TestFeature);
2841 TestObjectV8Internal::measureAsLongAttributeAttributeSetter(v8Value, info); 2911 TestObjectV8Internal::measureAsLongAttributeAttributeSetter(v8Value, info);
2842 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2912 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2843 } 2913 }
2844 2914
2845 static void notEnumerableLongAttributeAttributeGetter(const v8::PropertyCallback Info<v8::Value>& info) 2915 static void notEnumerableLongAttributeAttributeGetter(const v8::FunctionCallback Info<v8::Value>& info)
2846 { 2916 {
2847 v8::Local<v8::Object> holder = info.Holder(); 2917 v8::Local<v8::Object> holder = info.Holder();
2848 TestObject* impl = V8TestObject::toImpl(holder); 2918 TestObject* impl = V8TestObject::toImpl(holder);
2849 v8SetReturnValueInt(info, impl->notEnumerableLongAttribute()); 2919 v8SetReturnValueInt(info, impl->notEnumerableLongAttribute());
2850 } 2920 }
2851 2921
2852 static void notEnumerableLongAttributeAttributeGetterCallback(v8::Local<v8::Name >, const v8::PropertyCallbackInfo<v8::Value>& info) 2922 static void notEnumerableLongAttributeAttributeGetterCallback(const v8::Function CallbackInfo<v8::Value>& info)
2853 { 2923 {
2854 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2924 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2855 TestObjectV8Internal::notEnumerableLongAttributeAttributeGetter(info); 2925 TestObjectV8Internal::notEnumerableLongAttributeAttributeGetter(info);
2856 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2926 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2857 } 2927 }
2858 2928
2859 static void notEnumerableLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val ue, const v8::PropertyCallbackInfo<void>& info) 2929 static void notEnumerableLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val ue, const v8::FunctionCallbackInfo<v8::Value>& info)
2860 { 2930 {
2861 v8::Local<v8::Object> holder = info.Holder(); 2931 v8::Local<v8::Object> holder = info.Holder();
2862 ExceptionState exceptionState(ExceptionState::SetterContext, "notEnumerableL ongAttribute", "TestObject", holder, info.GetIsolate()); 2932 ExceptionState exceptionState(ExceptionState::SetterContext, "notEnumerableL ongAttribute", "TestObject", holder, info.GetIsolate());
2863 TestObject* impl = V8TestObject::toImpl(holder); 2933 TestObject* impl = V8TestObject::toImpl(holder);
2864 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 2934 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
2865 if (exceptionState.throwIfNeeded()) 2935 if (exceptionState.throwIfNeeded())
2866 return; 2936 return;
2867 impl->setNotEnumerableLongAttribute(cppValue); 2937 impl->setNotEnumerableLongAttribute(cppValue);
2868 } 2938 }
2869 2939
2870 static void notEnumerableLongAttributeAttributeSetterCallback(v8::Local<v8::Name >, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2940 static void notEnumerableLongAttributeAttributeSetterCallback(const v8::Function CallbackInfo<v8::Value>& info)
2871 { 2941 {
2942 v8::Local<v8::Value> v8Value = info[0];
2872 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2943 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2873 TestObjectV8Internal::notEnumerableLongAttributeAttributeSetter(v8Value, inf o); 2944 TestObjectV8Internal::notEnumerableLongAttributeAttributeSetter(v8Value, inf o);
2874 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2945 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2875 } 2946 }
2876 2947
2877 static void perContextEnabledLongAttributeAttributeGetter(const v8::PropertyCall backInfo<v8::Value>& info) 2948 static void perContextEnabledLongAttributeAttributeGetter(const v8::FunctionCall backInfo<v8::Value>& info)
2878 { 2949 {
2879 v8::Local<v8::Object> holder = info.Holder(); 2950 v8::Local<v8::Object> holder = info.Holder();
2880 TestObject* impl = V8TestObject::toImpl(holder); 2951 TestObject* impl = V8TestObject::toImpl(holder);
2881 v8SetReturnValueInt(info, impl->perContextEnabledLongAttribute()); 2952 v8SetReturnValueInt(info, impl->perContextEnabledLongAttribute());
2882 } 2953 }
2883 2954
2884 static void perContextEnabledLongAttributeAttributeGetterCallback(v8::Local<v8:: Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 2955 static void perContextEnabledLongAttributeAttributeGetterCallback(const v8::Func tionCallbackInfo<v8::Value>& info)
2885 { 2956 {
2886 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2957 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2887 TestObjectV8Internal::perContextEnabledLongAttributeAttributeGetter(info); 2958 TestObjectV8Internal::perContextEnabledLongAttributeAttributeGetter(info);
2888 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2959 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2889 } 2960 }
2890 2961
2891 static void perContextEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> v 8Value, const v8::PropertyCallbackInfo<void>& info) 2962 static void perContextEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> v 8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
2892 { 2963 {
2893 v8::Local<v8::Object> holder = info.Holder(); 2964 v8::Local<v8::Object> holder = info.Holder();
2894 ExceptionState exceptionState(ExceptionState::SetterContext, "perContextEnab ledLongAttribute", "TestObject", holder, info.GetIsolate()); 2965 ExceptionState exceptionState(ExceptionState::SetterContext, "perContextEnab ledLongAttribute", "TestObject", holder, info.GetIsolate());
2895 TestObject* impl = V8TestObject::toImpl(holder); 2966 TestObject* impl = V8TestObject::toImpl(holder);
2896 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 2967 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
2897 if (exceptionState.throwIfNeeded()) 2968 if (exceptionState.throwIfNeeded())
2898 return; 2969 return;
2899 impl->setPerContextEnabledLongAttribute(cppValue); 2970 impl->setPerContextEnabledLongAttribute(cppValue);
2900 } 2971 }
2901 2972
2902 static void perContextEnabledLongAttributeAttributeSetterCallback(v8::Local<v8:: Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2973 static void perContextEnabledLongAttributeAttributeSetterCallback(const v8::Func tionCallbackInfo<v8::Value>& info)
2903 { 2974 {
2975 v8::Local<v8::Value> v8Value = info[0];
2904 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2976 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2905 TestObjectV8Internal::perContextEnabledLongAttributeAttributeSetter(v8Value, info); 2977 TestObjectV8Internal::perContextEnabledLongAttributeAttributeSetter(v8Value, info);
2906 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2978 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2907 } 2979 }
2908 2980
2909 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetter(c onst v8::PropertyCallbackInfo<v8::Value>& info) 2981 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetter(c onst v8::FunctionCallbackInfo<v8::Value>& info)
2910 { 2982 {
2911 v8::Local<v8::Object> holder = info.Holder(); 2983 v8::Local<v8::Object> holder = info.Holder();
2912 TestObject* impl = V8TestObject::toImpl(holder); 2984 TestObject* impl = V8TestObject::toImpl(holder);
2913 RefPtr<TestInterfaceEmpty> cppValue(impl->perWorldBindingsReadonlyTestInterf aceEmptyAttribute()); 2985 RefPtr<TestInterfaceEmpty> cppValue(impl->perWorldBindingsReadonlyTestInterf aceEmptyAttribute());
2914 if (cppValue && DOMDataStore::setReturnValue(info.GetReturnValue(), cppValue .get())) 2986 if (cppValue && DOMDataStore::setReturnValue(info.GetReturnValue(), cppValue .get()))
2915 return; 2987 return;
2916 v8::Local<v8::Value> v8Value(toV8(cppValue.get(), holder, info.GetIsolate()) ); 2988 v8::Local<v8::Value> v8Value(toV8(cppValue.get(), holder, info.GetIsolate()) );
2917 if (!v8Value.IsEmpty()) { 2989 if (!v8Value.IsEmpty()) {
2918 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString( info.GetIsolate(), "perWorldBindingsReadonlyTestInterfaceEmptyAttribute"), v8Val ue); 2990 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString( info.GetIsolate(), "perWorldBindingsReadonlyTestInterfaceEmptyAttribute"), v8Val ue);
2919 v8SetReturnValue(info, v8Value); 2991 v8SetReturnValue(info, v8Value);
2920 } 2992 }
2921 } 2993 }
2922 2994
2923 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCa llback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 2995 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCa llback(const v8::FunctionCallbackInfo<v8::Value>& info)
2924 { 2996 {
2925 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2997 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2926 TestObjectV8Internal::perWorldBindingsReadonlyTestInterfaceEmptyAttributeAtt ributeGetter(info); 2998 TestObjectV8Internal::perWorldBindingsReadonlyTestInterfaceEmptyAttributeAtt ributeGetter(info);
2927 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2999 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2928 } 3000 }
2929 3001
2930 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterFo rMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) 3002 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterFo rMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
2931 { 3003 {
2932 v8::Local<v8::Object> holder = info.Holder(); 3004 v8::Local<v8::Object> holder = info.Holder();
2933 TestObject* impl = V8TestObject::toImpl(holder); 3005 TestObject* impl = V8TestObject::toImpl(holder);
2934 RefPtr<TestInterfaceEmpty> cppValue(impl->perWorldBindingsReadonlyTestInterf aceEmptyAttribute()); 3006 RefPtr<TestInterfaceEmpty> cppValue(impl->perWorldBindingsReadonlyTestInterf aceEmptyAttribute());
2935 if (cppValue && DOMDataStore::setReturnValueForMainWorld(info.GetReturnValue (), cppValue.get())) 3007 if (cppValue && DOMDataStore::setReturnValueForMainWorld(info.GetReturnValue (), cppValue.get()))
2936 return; 3008 return;
2937 v8::Local<v8::Value> v8Value(toV8(cppValue.get(), holder, info.GetIsolate()) ); 3009 v8::Local<v8::Value> v8Value(toV8(cppValue.get(), holder, info.GetIsolate()) );
2938 if (!v8Value.IsEmpty()) { 3010 if (!v8Value.IsEmpty()) {
2939 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString( info.GetIsolate(), "perWorldBindingsReadonlyTestInterfaceEmptyAttribute"), v8Val ue); 3011 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString( info.GetIsolate(), "perWorldBindingsReadonlyTestInterfaceEmptyAttribute"), v8Val ue);
2940 v8SetReturnValue(info, v8Value); 3012 v8SetReturnValue(info, v8Value);
2941 } 3013 }
2942 } 3014 }
2943 3015
2944 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCa llbackForMainWorld(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value >& info) 3016 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCa llbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
2945 { 3017 {
2946 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3018 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2947 TestObjectV8Internal::perWorldBindingsReadonlyTestInterfaceEmptyAttributeAtt ributeGetterForMainWorld(info); 3019 TestObjectV8Internal::perWorldBindingsReadonlyTestInterfaceEmptyAttributeAtt ributeGetterForMainWorld(info);
2948 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3020 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2949 } 3021 }
2950 3022
2951 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetter(co nst v8::PropertyCallbackInfo<v8::Value>& info) 3023 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetter(co nst v8::FunctionCallbackInfo<v8::Value>& info)
2952 { 3024 {
2953 v8::Local<v8::Object> holder = info.Holder(); 3025 v8::Local<v8::Object> holder = info.Holder();
2954 TestObject* impl = V8TestObject::toImpl(holder); 3026 TestObject* impl = V8TestObject::toImpl(holder);
2955 v8SetReturnValueInt(info, impl->activityLoggingAccessPerWorldBindingsLongAtt ribute()); 3027 v8SetReturnValueInt(info, impl->activityLoggingAccessPerWorldBindingsLongAtt ribute());
2956 } 3028 }
2957 3029
2958 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCal lback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 3030 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCal lback(const v8::FunctionCallbackInfo<v8::Value>& info)
2959 { 3031 {
2960 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3032 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2961 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 3033 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
2962 V8PerContextData* contextData = scriptState->perContextData(); 3034 V8PerContextData* contextData = scriptState->perContextData();
2963 if (contextData && contextData->activityLogger()) 3035 if (contextData && contextData->activityLogger())
2964 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssPerWorldBindingsLongAttribute"); 3036 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssPerWorldBindingsLongAttribute");
2965 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteGetter(info); 3037 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteGetter(info);
2966 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3038 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2967 } 3039 }
2968 3040
2969 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3041 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
2970 { 3042 {
2971 v8::Local<v8::Object> holder = info.Holder(); 3043 v8::Local<v8::Object> holder = info.Holder();
2972 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); 3044 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate());
2973 TestObject* impl = V8TestObject::toImpl(holder); 3045 TestObject* impl = V8TestObject::toImpl(holder);
2974 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 3046 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
2975 if (exceptionState.throwIfNeeded()) 3047 if (exceptionState.throwIfNeeded())
2976 return; 3048 return;
2977 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); 3049 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue);
2978 } 3050 }
2979 3051
2980 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal lback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallb ackInfo<void>& info) 3052 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal lback(const v8::FunctionCallbackInfo<v8::Value>& info)
2981 { 3053 {
3054 v8::Local<v8::Value> v8Value = info[0];
2982 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3055 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2983 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 3056 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
2984 V8PerContextData* contextData = scriptState->perContextData(); 3057 V8PerContextData* contextData = scriptState->perContextData();
2985 if (contextData && contextData->activityLogger()) { 3058 if (contextData && contextData->activityLogger()) {
2986 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce ssPerWorldBindingsLongAttribute", v8Value); 3059 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce ssPerWorldBindingsLongAttribute", v8Value);
2987 } 3060 }
2988 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteSetter(v8Value, info); 3061 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteSetter(v8Value, info);
2989 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3062 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2990 } 3063 }
2991 3064
2992 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterFor MainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) 3065 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterFor MainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
2993 { 3066 {
2994 v8::Local<v8::Object> holder = info.Holder(); 3067 v8::Local<v8::Object> holder = info.Holder();
2995 TestObject* impl = V8TestObject::toImpl(holder); 3068 TestObject* impl = V8TestObject::toImpl(holder);
2996 v8SetReturnValueInt(info, impl->activityLoggingAccessPerWorldBindingsLongAtt ribute()); 3069 v8SetReturnValueInt(info, impl->activityLoggingAccessPerWorldBindingsLongAtt ribute());
2997 } 3070 }
2998 3071
2999 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCal lbackForMainWorld(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value> & info) 3072 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCal lbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
3000 { 3073 {
3001 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3074 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3002 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 3075 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
3003 V8PerContextData* contextData = scriptState->perContextData(); 3076 V8PerContextData* contextData = scriptState->perContextData();
3004 if (contextData && contextData->activityLogger()) 3077 if (contextData && contextData->activityLogger())
3005 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssPerWorldBindingsLongAttribute"); 3078 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssPerWorldBindingsLongAttribute");
3006 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteGetterForMainWorld(info); 3079 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteGetterForMainWorld(info);
3007 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3080 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3008 } 3081 }
3009 3082
3010 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterFor MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo) 3083 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterFor MainWorld(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value >& info)
3011 { 3084 {
3012 v8::Local<v8::Object> holder = info.Holder(); 3085 v8::Local<v8::Object> holder = info.Holder();
3013 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); 3086 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate());
3014 TestObject* impl = V8TestObject::toImpl(holder); 3087 TestObject* impl = V8TestObject::toImpl(holder);
3015 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 3088 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
3016 if (exceptionState.throwIfNeeded()) 3089 if (exceptionState.throwIfNeeded())
3017 return; 3090 return;
3018 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); 3091 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue);
3019 } 3092 }
3020 3093
3021 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal lbackForMainWorld(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::P ropertyCallbackInfo<void>& info) 3094 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal lbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
3022 { 3095 {
3096 v8::Local<v8::Value> v8Value = info[0];
3023 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3097 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3024 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 3098 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
3025 V8PerContextData* contextData = scriptState->perContextData(); 3099 V8PerContextData* contextData = scriptState->perContextData();
3026 if (contextData && contextData->activityLogger()) { 3100 if (contextData && contextData->activityLogger()) {
3027 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce ssPerWorldBindingsLongAttribute", v8Value); 3101 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce ssPerWorldBindingsLongAttribute", v8Value);
3028 } 3102 }
3029 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteSetterForMainWorld(v8Value, info); 3103 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteSetterForMainWorld(v8Value, info);
3030 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3104 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3031 } 3105 }
3032 3106
3033 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 3107 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info)
3034 { 3108 {
3035 v8::Local<v8::Object> holder = info.Holder(); 3109 v8::Local<v8::Object> holder = info.Holder();
3036 TestObject* impl = V8TestObject::toImpl(holder); 3110 TestObject* impl = V8TestObject::toImpl(holder);
3037 v8SetReturnValueInt(info, impl->activityLoggingAccessForIsolatedWorldsPerWor ldBindingsLongAttribute()); 3111 v8SetReturnValueInt(info, impl->activityLoggingAccessForIsolatedWorldsPerWor ldBindingsLongAttribute());
3038 } 3112 }
3039 3113
3040 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterCallback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::V alue>& info) 3114 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
3041 { 3115 {
3042 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3116 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3043 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 3117 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
3044 V8PerContextData* contextData = scriptState->perContextData(); 3118 V8PerContextData* contextData = scriptState->perContextData();
3045 if (contextData && contextData->activityLogger()) 3119 if (contextData && contextData->activityLogger())
3046 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssForIsolatedWorldsPerWorldBindingsLongAttribute"); 3120 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssForIsolatedWorldsPerWorldBindingsLongAttribute");
3047 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetter(info); 3121 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetter(info);
3048 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3122 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3049 } 3123 }
3050 3124
3051 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info) 3125 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8:: Value>& info)
3052 { 3126 {
3053 v8::Local<v8::Object> holder = info.Holder(); 3127 v8::Local<v8::Object> holder = info.Holder();
3054 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate()); 3128 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate());
3055 TestObject* impl = V8TestObject::toImpl(holder); 3129 TestObject* impl = V8TestObject::toImpl(holder);
3056 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 3130 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
3057 if (exceptionState.throwIfNeeded()) 3131 if (exceptionState.throwIfNeeded())
3058 return; 3132 return;
3059 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue); 3133 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue);
3060 } 3134 }
3061 3135
3062 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3136 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
3063 { 3137 {
3138 v8::Local<v8::Value> v8Value = info[0];
3064 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3139 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3065 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 3140 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
3066 V8PerContextData* contextData = scriptState->perContextData(); 3141 V8PerContextData* contextData = scriptState->perContextData();
3067 if (contextData && contextData->activityLogger()) { 3142 if (contextData && contextData->activityLogger()) {
3068 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce ssForIsolatedWorldsPerWorldBindingsLongAttribute", v8Value); 3143 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce ssForIsolatedWorldsPerWorldBindingsLongAttribute", v8Value);
3069 } 3144 }
3070 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings LongAttributeAttributeSetter(v8Value, info); 3145 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings LongAttributeAttributeSetter(v8Value, info);
3071 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3146 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3072 } 3147 }
3073 3148
3074 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterForMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) 3149 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
3075 { 3150 {
3076 v8::Local<v8::Object> holder = info.Holder(); 3151 v8::Local<v8::Object> holder = info.Holder();
3077 TestObject* impl = V8TestObject::toImpl(holder); 3152 TestObject* impl = V8TestObject::toImpl(holder);
3078 v8SetReturnValueInt(info, impl->activityLoggingAccessForIsolatedWorldsPerWor ldBindingsLongAttribute()); 3153 v8SetReturnValueInt(info, impl->activityLoggingAccessForIsolatedWorldsPerWor ldBindingsLongAttribute());
3079 } 3154 }
3080 3155
3081 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterCallbackForMainWorld(v8::Local<v8::Name>, const v8::PropertyCallba ckInfo<v8::Value>& info) 3156 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterCallbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& in fo)
3082 { 3157 {
3083 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3158 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3084 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetterForMainWorld(info); 3159 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetterForMainWorld(info);
3085 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3160 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3086 } 3161 }
3087 3162
3088 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterForMainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallb ackInfo<void>& info) 3163 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterForMainWorld(v8::Local<v8::Value> v8Value, const v8::FunctionCallb ackInfo<v8::Value>& info)
3089 { 3164 {
3090 v8::Local<v8::Object> holder = info.Holder(); 3165 v8::Local<v8::Object> holder = info.Holder();
3091 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate()); 3166 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate());
3092 TestObject* impl = V8TestObject::toImpl(holder); 3167 TestObject* impl = V8TestObject::toImpl(holder);
3093 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 3168 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
3094 if (exceptionState.throwIfNeeded()) 3169 if (exceptionState.throwIfNeeded())
3095 return; 3170 return;
3096 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue); 3171 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue);
3097 } 3172 }
3098 3173
3099 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallbackForMainWorld(v8::Local<v8::Name>, v8::Local<v8::Value> v8V alue, const v8::PropertyCallbackInfo<void>& info) 3174 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& in fo)
3100 { 3175 {
3176 v8::Local<v8::Value> v8Value = info[0];
3101 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3177 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3102 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings LongAttributeAttributeSetterForMainWorld(v8Value, info); 3178 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings LongAttributeAttributeSetterForMainWorld(v8Value, info);
3103 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3179 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3104 } 3180 }
3105 3181
3106 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetter(co nst v8::PropertyCallbackInfo<v8::Value>& info) 3182 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetter(co nst v8::FunctionCallbackInfo<v8::Value>& info)
3107 { 3183 {
3108 v8::Local<v8::Object> holder = info.Holder(); 3184 v8::Local<v8::Object> holder = info.Holder();
3109 TestObject* impl = V8TestObject::toImpl(holder); 3185 TestObject* impl = V8TestObject::toImpl(holder);
3110 v8SetReturnValueInt(info, impl->activityLoggingGetterPerWorldBindingsLongAtt ribute()); 3186 v8SetReturnValueInt(info, impl->activityLoggingGetterPerWorldBindingsLongAtt ribute());
3111 } 3187 }
3112 3188
3113 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCal lback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 3189 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCal lback(const v8::FunctionCallbackInfo<v8::Value>& info)
3114 { 3190 {
3115 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3191 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3116 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 3192 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
3117 V8PerContextData* contextData = scriptState->perContextData(); 3193 V8PerContextData* contextData = scriptState->perContextData();
3118 if (contextData && contextData->activityLogger()) 3194 if (contextData && contextData->activityLogger())
3119 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erPerWorldBindingsLongAttribute"); 3195 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erPerWorldBindingsLongAttribute");
3120 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteGetter(info); 3196 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteGetter(info);
3121 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3197 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3122 } 3198 }
3123 3199
3124 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3200 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
3125 { 3201 {
3126 v8::Local<v8::Object> holder = info.Holder(); 3202 v8::Local<v8::Object> holder = info.Holder();
3127 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); 3203 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate());
3128 TestObject* impl = V8TestObject::toImpl(holder); 3204 TestObject* impl = V8TestObject::toImpl(holder);
3129 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 3205 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
3130 if (exceptionState.throwIfNeeded()) 3206 if (exceptionState.throwIfNeeded())
3131 return; 3207 return;
3132 impl->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue); 3208 impl->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue);
3133 } 3209 }
3134 3210
3135 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCal lback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallb ackInfo<void>& info) 3211 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCal lback(const v8::FunctionCallbackInfo<v8::Value>& info)
3136 { 3212 {
3213 v8::Local<v8::Value> v8Value = info[0];
3137 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3214 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3138 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteSetter(v8Value, info); 3215 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteSetter(v8Value, info);
3139 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3216 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3140 } 3217 }
3141 3218
3142 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterFor MainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) 3219 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterFor MainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
3143 { 3220 {
3144 v8::Local<v8::Object> holder = info.Holder(); 3221 v8::Local<v8::Object> holder = info.Holder();
3145 TestObject* impl = V8TestObject::toImpl(holder); 3222 TestObject* impl = V8TestObject::toImpl(holder);
3146 v8SetReturnValueInt(info, impl->activityLoggingGetterPerWorldBindingsLongAtt ribute()); 3223 v8SetReturnValueInt(info, impl->activityLoggingGetterPerWorldBindingsLongAtt ribute());
3147 } 3224 }
3148 3225
3149 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCal lbackForMainWorld(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value> & info) 3226 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCal lbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
3150 { 3227 {
3151 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3228 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3152 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 3229 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
3153 V8PerContextData* contextData = scriptState->perContextData(); 3230 V8PerContextData* contextData = scriptState->perContextData();
3154 if (contextData && contextData->activityLogger()) 3231 if (contextData && contextData->activityLogger())
3155 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erPerWorldBindingsLongAttribute"); 3232 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erPerWorldBindingsLongAttribute");
3156 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteGetterForMainWorld(info); 3233 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteGetterForMainWorld(info);
3157 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3234 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3158 } 3235 }
3159 3236
3160 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterFor MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo) 3237 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterFor MainWorld(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value >& info)
3161 { 3238 {
3162 v8::Local<v8::Object> holder = info.Holder(); 3239 v8::Local<v8::Object> holder = info.Holder();
3163 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); 3240 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate());
3164 TestObject* impl = V8TestObject::toImpl(holder); 3241 TestObject* impl = V8TestObject::toImpl(holder);
3165 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 3242 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
3166 if (exceptionState.throwIfNeeded()) 3243 if (exceptionState.throwIfNeeded())
3167 return; 3244 return;
3168 impl->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue); 3245 impl->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue);
3169 } 3246 }
3170 3247
3171 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCal lbackForMainWorld(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::P ropertyCallbackInfo<void>& info) 3248 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCal lbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
3172 { 3249 {
3250 v8::Local<v8::Value> v8Value = info[0];
3173 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3251 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3174 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteSetterForMainWorld(v8Value, info); 3252 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteSetterForMainWorld(v8Value, info);
3175 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3253 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3176 } 3254 }
3177 3255
3178 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 3256 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info)
3179 { 3257 {
3180 v8::Local<v8::Object> holder = info.Holder(); 3258 v8::Local<v8::Object> holder = info.Holder();
3181 TestObject* impl = V8TestObject::toImpl(holder); 3259 TestObject* impl = V8TestObject::toImpl(holder);
3182 v8SetReturnValueInt(info, impl->activityLoggingGetterForIsolatedWorldsPerWor ldBindingsLongAttribute()); 3260 v8SetReturnValueInt(info, impl->activityLoggingGetterForIsolatedWorldsPerWor ldBindingsLongAttribute());
3183 } 3261 }
3184 3262
3185 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterCallback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::V alue>& info) 3263 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
3186 { 3264 {
3187 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3265 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3188 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 3266 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
3189 V8PerContextData* contextData = scriptState->perContextData(); 3267 V8PerContextData* contextData = scriptState->perContextData();
3190 if (contextData && contextData->activityLogger()) 3268 if (contextData && contextData->activityLogger())
3191 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erForIsolatedWorldsPerWorldBindingsLongAttribute"); 3269 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erForIsolatedWorldsPerWorldBindingsLongAttribute");
3192 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetter(info); 3270 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetter(info);
3193 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3271 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3194 } 3272 }
3195 3273
3196 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info) 3274 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8:: Value>& info)
3197 { 3275 {
3198 v8::Local<v8::Object> holder = info.Holder(); 3276 v8::Local<v8::Object> holder = info.Holder();
3199 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate()); 3277 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate());
3200 TestObject* impl = V8TestObject::toImpl(holder); 3278 TestObject* impl = V8TestObject::toImpl(holder);
3201 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 3279 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
3202 if (exceptionState.throwIfNeeded()) 3280 if (exceptionState.throwIfNeeded())
3203 return; 3281 return;
3204 impl->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue); 3282 impl->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue);
3205 } 3283 }
3206 3284
3207 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3285 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
3208 { 3286 {
3287 v8::Local<v8::Value> v8Value = info[0];
3209 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3288 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3210 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings LongAttributeAttributeSetter(v8Value, info); 3289 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings LongAttributeAttributeSetter(v8Value, info);
3211 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3290 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3212 } 3291 }
3213 3292
3214 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterForMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) 3293 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
3215 { 3294 {
3216 v8::Local<v8::Object> holder = info.Holder(); 3295 v8::Local<v8::Object> holder = info.Holder();
3217 TestObject* impl = V8TestObject::toImpl(holder); 3296 TestObject* impl = V8TestObject::toImpl(holder);
3218 v8SetReturnValueInt(info, impl->activityLoggingGetterForIsolatedWorldsPerWor ldBindingsLongAttribute()); 3297 v8SetReturnValueInt(info, impl->activityLoggingGetterForIsolatedWorldsPerWor ldBindingsLongAttribute());
3219 } 3298 }
3220 3299
3221 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterCallbackForMainWorld(v8::Local<v8::Name>, const v8::PropertyCallba ckInfo<v8::Value>& info) 3300 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterCallbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& in fo)
3222 { 3301 {
3223 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3302 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3224 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetterForMainWorld(info); 3303 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetterForMainWorld(info);
3225 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3304 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3226 } 3305 }
3227 3306
3228 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterForMainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallb ackInfo<void>& info) 3307 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterForMainWorld(v8::Local<v8::Value> v8Value, const v8::FunctionCallb ackInfo<v8::Value>& info)
3229 { 3308 {
3230 v8::Local<v8::Object> holder = info.Holder(); 3309 v8::Local<v8::Object> holder = info.Holder();
3231 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate()); 3310 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate());
3232 TestObject* impl = V8TestObject::toImpl(holder); 3311 TestObject* impl = V8TestObject::toImpl(holder);
3233 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 3312 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
3234 if (exceptionState.throwIfNeeded()) 3313 if (exceptionState.throwIfNeeded())
3235 return; 3314 return;
3236 impl->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue); 3315 impl->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue);
3237 } 3316 }
3238 3317
3239 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallbackForMainWorld(v8::Local<v8::Name>, v8::Local<v8::Value> v8V alue, const v8::PropertyCallbackInfo<void>& info) 3318 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& in fo)
3240 { 3319 {
3320 v8::Local<v8::Value> v8Value = info[0];
3241 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3321 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3242 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings LongAttributeAttributeSetterForMainWorld(v8Value, info); 3322 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings LongAttributeAttributeSetterForMainWorld(v8Value, info);
3243 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3323 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3244 } 3324 }
3245 3325
3246 static void locationAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& i nfo) 3326 static void locationAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
3247 { 3327 {
3248 v8::Local<v8::Object> holder = info.Holder(); 3328 v8::Local<v8::Object> holder = info.Holder();
3249 TestObject* impl = V8TestObject::toImpl(holder); 3329 TestObject* impl = V8TestObject::toImpl(holder);
3250 v8SetReturnValueFast(info, WTF::getPtr(impl->location()), impl); 3330 v8SetReturnValueFast(info, WTF::getPtr(impl->location()), impl);
3251 } 3331 }
3252 3332
3253 static void locationAttributeGetterCallback(v8::Local<v8::Name>, const v8::Prope rtyCallbackInfo<v8::Value>& info) 3333 static void locationAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
3254 { 3334 {
3255 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3335 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3256 TestObjectV8Internal::locationAttributeGetter(info); 3336 TestObjectV8Internal::locationAttributeGetter(info);
3257 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3337 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3258 } 3338 }
3259 3339
3260 static void locationAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Prop ertyCallbackInfo<void>& info) 3340 static void locationAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Func tionCallbackInfo<v8::Value>& info)
3261 { 3341 {
3262 v8::Local<v8::Object> holder = info.Holder(); 3342 v8::Local<v8::Object> holder = info.Holder();
3263 TestObject* proxyImpl = V8TestObject::toImpl(holder); 3343 TestObject* proxyImpl = V8TestObject::toImpl(holder);
3264 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->location()); 3344 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->location());
3265 if (!impl) 3345 if (!impl)
3266 return; 3346 return;
3267 V8StringResource<> cppValue = v8Value; 3347 V8StringResource<> cppValue = v8Value;
3268 if (!cppValue.prepare()) 3348 if (!cppValue.prepare())
3269 return; 3349 return;
3270 impl->setHref(cppValue); 3350 impl->setHref(cppValue);
3271 } 3351 }
3272 3352
3273 static void locationAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v8::V alue> v8Value, const v8::PropertyCallbackInfo<void>& info) 3353 static void locationAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
3274 { 3354 {
3355 v8::Local<v8::Value> v8Value = info[0];
3275 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3356 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3276 TestObjectV8Internal::locationAttributeSetter(v8Value, info); 3357 TestObjectV8Internal::locationAttributeSetter(v8Value, info);
3277 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3358 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3278 } 3359 }
3279 3360
3280 static void locationWithExceptionAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info) 3361 static void locationWithExceptionAttributeGetter(const v8::FunctionCallbackInfo< v8::Value>& info)
3281 { 3362 {
3282 v8::Local<v8::Object> holder = info.Holder(); 3363 v8::Local<v8::Object> holder = info.Holder();
3283 TestObject* impl = V8TestObject::toImpl(holder); 3364 TestObject* impl = V8TestObject::toImpl(holder);
3284 v8SetReturnValueFast(info, WTF::getPtr(impl->locationWithException()), impl) ; 3365 v8SetReturnValueFast(info, WTF::getPtr(impl->locationWithException()), impl) ;
3285 } 3366 }
3286 3367
3287 static void locationWithExceptionAttributeGetterCallback(v8::Local<v8::Name>, co nst v8::PropertyCallbackInfo<v8::Value>& info) 3368 static void locationWithExceptionAttributeGetterCallback(const v8::FunctionCallb ackInfo<v8::Value>& info)
3288 { 3369 {
3289 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3370 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3290 TestObjectV8Internal::locationWithExceptionAttributeGetter(info); 3371 TestObjectV8Internal::locationWithExceptionAttributeGetter(info);
3291 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3372 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3292 } 3373 }
3293 3374
3294 static void locationWithExceptionAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info) 3375 static void locationWithExceptionAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::FunctionCallbackInfo<v8::Value>& info)
3295 { 3376 {
3296 v8::Local<v8::Object> holder = info.Holder(); 3377 v8::Local<v8::Object> holder = info.Holder();
3297 ExceptionState exceptionState(ExceptionState::SetterContext, "locationWithEx ception", "TestObject", holder, info.GetIsolate()); 3378 ExceptionState exceptionState(ExceptionState::SetterContext, "locationWithEx ception", "TestObject", holder, info.GetIsolate());
3298 TestObject* proxyImpl = V8TestObject::toImpl(holder); 3379 TestObject* proxyImpl = V8TestObject::toImpl(holder);
3299 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithExcep tion()); 3380 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithExcep tion());
3300 if (!impl) 3381 if (!impl)
3301 return; 3382 return;
3302 V8StringResource<> cppValue = v8Value; 3383 V8StringResource<> cppValue = v8Value;
3303 if (!cppValue.prepare()) 3384 if (!cppValue.prepare())
3304 return; 3385 return;
3305 impl->setHrefThrows(cppValue, exceptionState); 3386 impl->setHrefThrows(cppValue, exceptionState);
3306 exceptionState.throwIfNeeded(); 3387 exceptionState.throwIfNeeded();
3307 } 3388 }
3308 3389
3309 static void locationWithExceptionAttributeSetterCallback(v8::Local<v8::Name>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3390 static void locationWithExceptionAttributeSetterCallback(const v8::FunctionCallb ackInfo<v8::Value>& info)
3310 { 3391 {
3392 v8::Local<v8::Value> v8Value = info[0];
3311 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3393 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3312 TestObjectV8Internal::locationWithExceptionAttributeSetter(v8Value, info); 3394 TestObjectV8Internal::locationWithExceptionAttributeSetter(v8Value, info);
3313 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3395 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3314 } 3396 }
3315 3397
3316 static void locationWithCallWithAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info) 3398 static void locationWithCallWithAttributeGetter(const v8::FunctionCallbackInfo<v 8::Value>& info)
3317 { 3399 {
3318 v8::Local<v8::Object> holder = info.Holder(); 3400 v8::Local<v8::Object> holder = info.Holder();
3319 TestObject* impl = V8TestObject::toImpl(holder); 3401 TestObject* impl = V8TestObject::toImpl(holder);
3320 v8SetReturnValueFast(info, WTF::getPtr(impl->locationWithCallWith()), impl); 3402 v8SetReturnValueFast(info, WTF::getPtr(impl->locationWithCallWith()), impl);
3321 } 3403 }
3322 3404
3323 static void locationWithCallWithAttributeGetterCallback(v8::Local<v8::Name>, con st v8::PropertyCallbackInfo<v8::Value>& info) 3405 static void locationWithCallWithAttributeGetterCallback(const v8::FunctionCallba ckInfo<v8::Value>& info)
3324 { 3406 {
3325 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3407 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3326 TestObjectV8Internal::locationWithCallWithAttributeGetter(info); 3408 TestObjectV8Internal::locationWithCallWithAttributeGetter(info);
3327 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3409 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3328 } 3410 }
3329 3411
3330 static void locationWithCallWithAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& info) 3412 static void locationWithCallWithAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::FunctionCallbackInfo<v8::Value>& info)
3331 { 3413 {
3332 v8::Local<v8::Object> holder = info.Holder(); 3414 v8::Local<v8::Object> holder = info.Holder();
3333 TestObject* proxyImpl = V8TestObject::toImpl(holder); 3415 TestObject* proxyImpl = V8TestObject::toImpl(holder);
3334 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithCallW ith()); 3416 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithCallW ith());
3335 if (!impl) 3417 if (!impl)
3336 return; 3418 return;
3337 V8StringResource<> cppValue = v8Value; 3419 V8StringResource<> cppValue = v8Value;
3338 if (!cppValue.prepare()) 3420 if (!cppValue.prepare())
3339 return; 3421 return;
3340 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ()); 3422 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ());
3341 impl->setHrefCallWith(executionContext, callingDOMWindow(info.GetIsolate()), enteredDOMWindow(info.GetIsolate()), cppValue); 3423 impl->setHrefCallWith(executionContext, callingDOMWindow(info.GetIsolate()), enteredDOMWindow(info.GetIsolate()), cppValue);
3342 } 3424 }
3343 3425
3344 static void locationWithCallWithAttributeSetterCallback(v8::Local<v8::Name>, v8: :Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3426 static void locationWithCallWithAttributeSetterCallback(const v8::FunctionCallba ckInfo<v8::Value>& info)
3345 { 3427 {
3428 v8::Local<v8::Value> v8Value = info[0];
3346 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3429 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3347 TestObjectV8Internal::locationWithCallWithAttributeSetter(v8Value, info); 3430 TestObjectV8Internal::locationWithCallWithAttributeSetter(v8Value, info);
3348 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3431 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3349 } 3432 }
3350 3433
3351 static void locationByteStringAttributeGetter(const v8::PropertyCallbackInfo<v8: :Value>& info) 3434 static void locationByteStringAttributeGetter(const v8::FunctionCallbackInfo<v8: :Value>& info)
3352 { 3435 {
3353 v8::Local<v8::Object> holder = info.Holder(); 3436 v8::Local<v8::Object> holder = info.Holder();
3354 TestObject* impl = V8TestObject::toImpl(holder); 3437 TestObject* impl = V8TestObject::toImpl(holder);
3355 v8SetReturnValueFast(info, WTF::getPtr(impl->locationByteString()), impl); 3438 v8SetReturnValueFast(info, WTF::getPtr(impl->locationByteString()), impl);
3356 } 3439 }
3357 3440
3358 static void locationByteStringAttributeGetterCallback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 3441 static void locationByteStringAttributeGetterCallback(const v8::FunctionCallback Info<v8::Value>& info)
3359 { 3442 {
3360 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3443 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3361 TestObjectV8Internal::locationByteStringAttributeGetter(info); 3444 TestObjectV8Internal::locationByteStringAttributeGetter(info);
3362 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3445 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3363 } 3446 }
3364 3447
3365 static void locationByteStringAttributeSetter(v8::Local<v8::Value> v8Value, cons t v8::PropertyCallbackInfo<void>& info) 3448 static void locationByteStringAttributeSetter(v8::Local<v8::Value> v8Value, cons t v8::FunctionCallbackInfo<v8::Value>& info)
3366 { 3449 {
3367 v8::Local<v8::Object> holder = info.Holder(); 3450 v8::Local<v8::Object> holder = info.Holder();
3368 ExceptionState exceptionState(ExceptionState::SetterContext, "locationByteSt ring", "TestObject", holder, info.GetIsolate()); 3451 ExceptionState exceptionState(ExceptionState::SetterContext, "locationByteSt ring", "TestObject", holder, info.GetIsolate());
3369 TestObject* proxyImpl = V8TestObject::toImpl(holder); 3452 TestObject* proxyImpl = V8TestObject::toImpl(holder);
3370 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationByteStrin g()); 3453 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationByteStrin g());
3371 if (!impl) 3454 if (!impl)
3372 return; 3455 return;
3373 V8StringResource<> cppValue = toByteString(info.GetIsolate(), v8Value, excep tionState); 3456 V8StringResource<> cppValue = toByteString(info.GetIsolate(), v8Value, excep tionState);
3374 if (exceptionState.throwIfNeeded()) 3457 if (exceptionState.throwIfNeeded())
3375 return; 3458 return;
3376 impl->setHrefByteString(cppValue); 3459 impl->setHrefByteString(cppValue);
3377 } 3460 }
3378 3461
3379 static void locationByteStringAttributeSetterCallback(v8::Local<v8::Name>, v8::L ocal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3462 static void locationByteStringAttributeSetterCallback(const v8::FunctionCallback Info<v8::Value>& info)
3380 { 3463 {
3464 v8::Local<v8::Value> v8Value = info[0];
3381 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3465 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3382 TestObjectV8Internal::locationByteStringAttributeSetter(v8Value, info); 3466 TestObjectV8Internal::locationByteStringAttributeSetter(v8Value, info);
3383 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3467 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3384 } 3468 }
3385 3469
3386 static void locationWithPerWorldBindingsAttributeGetter(const v8::PropertyCallba ckInfo<v8::Value>& info) 3470 static void locationWithPerWorldBindingsAttributeGetter(const v8::FunctionCallba ckInfo<v8::Value>& info)
3387 { 3471 {
3388 v8::Local<v8::Object> holder = info.Holder(); 3472 v8::Local<v8::Object> holder = info.Holder();
3389 TestObject* impl = V8TestObject::toImpl(holder); 3473 TestObject* impl = V8TestObject::toImpl(holder);
3390 v8SetReturnValueFast(info, WTF::getPtr(impl->locationWithPerWorldBindings()) , impl); 3474 v8SetReturnValueFast(info, WTF::getPtr(impl->locationWithPerWorldBindings()) , impl);
3391 } 3475 }
3392 3476
3393 static void locationWithPerWorldBindingsAttributeGetterCallback(v8::Local<v8::Na me>, const v8::PropertyCallbackInfo<v8::Value>& info) 3477 static void locationWithPerWorldBindingsAttributeGetterCallback(const v8::Functi onCallbackInfo<v8::Value>& info)
3394 { 3478 {
3395 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3479 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3396 TestObjectV8Internal::locationWithPerWorldBindingsAttributeGetter(info); 3480 TestObjectV8Internal::locationWithPerWorldBindingsAttributeGetter(info);
3397 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3481 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3398 } 3482 }
3399 3483
3400 static void locationWithPerWorldBindingsAttributeSetter(v8::Local<v8::Value> v8V alue, const v8::PropertyCallbackInfo<void>& info) 3484 static void locationWithPerWorldBindingsAttributeSetter(v8::Local<v8::Value> v8V alue, const v8::FunctionCallbackInfo<v8::Value>& info)
3401 { 3485 {
3402 v8::Local<v8::Object> holder = info.Holder(); 3486 v8::Local<v8::Object> holder = info.Holder();
3403 TestObject* proxyImpl = V8TestObject::toImpl(holder); 3487 TestObject* proxyImpl = V8TestObject::toImpl(holder);
3404 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithPerWo rldBindings()); 3488 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithPerWo rldBindings());
3405 if (!impl) 3489 if (!impl)
3406 return; 3490 return;
3407 V8StringResource<> cppValue = v8Value; 3491 V8StringResource<> cppValue = v8Value;
3408 if (!cppValue.prepare()) 3492 if (!cppValue.prepare())
3409 return; 3493 return;
3410 impl->setHref(cppValue); 3494 impl->setHref(cppValue);
3411 } 3495 }
3412 3496
3413 static void locationWithPerWorldBindingsAttributeSetterCallback(v8::Local<v8::Na me>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3497 static void locationWithPerWorldBindingsAttributeSetterCallback(const v8::Functi onCallbackInfo<v8::Value>& info)
3414 { 3498 {
3499 v8::Local<v8::Value> v8Value = info[0];
3415 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3500 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3416 TestObjectV8Internal::locationWithPerWorldBindingsAttributeSetter(v8Value, i nfo); 3501 TestObjectV8Internal::locationWithPerWorldBindingsAttributeSetter(v8Value, i nfo);
3417 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3502 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3418 } 3503 }
3419 3504
3420 static void locationWithPerWorldBindingsAttributeGetterForMainWorld(const v8::Pr opertyCallbackInfo<v8::Value>& info) 3505 static void locationWithPerWorldBindingsAttributeGetterForMainWorld(const v8::Fu nctionCallbackInfo<v8::Value>& info)
3421 { 3506 {
3422 v8::Local<v8::Object> holder = info.Holder(); 3507 v8::Local<v8::Object> holder = info.Holder();
3423 TestObject* impl = V8TestObject::toImpl(holder); 3508 TestObject* impl = V8TestObject::toImpl(holder);
3424 v8SetReturnValueForMainWorld(info, WTF::getPtr(impl->locationWithPerWorldBin dings())); 3509 v8SetReturnValueForMainWorld(info, WTF::getPtr(impl->locationWithPerWorldBin dings()));
3425 } 3510 }
3426 3511
3427 static void locationWithPerWorldBindingsAttributeGetterCallbackForMainWorld(v8:: Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 3512 static void locationWithPerWorldBindingsAttributeGetterCallbackForMainWorld(cons t v8::FunctionCallbackInfo<v8::Value>& info)
3428 { 3513 {
3429 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3514 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3430 TestObjectV8Internal::locationWithPerWorldBindingsAttributeGetterForMainWorl d(info); 3515 TestObjectV8Internal::locationWithPerWorldBindingsAttributeGetterForMainWorl d(info);
3431 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3516 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3432 } 3517 }
3433 3518
3434 static void locationWithPerWorldBindingsAttributeSetterForMainWorld(v8::Local<v8 ::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3519 static void locationWithPerWorldBindingsAttributeSetterForMainWorld(v8::Local<v8 ::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
3435 { 3520 {
3436 v8::Local<v8::Object> holder = info.Holder(); 3521 v8::Local<v8::Object> holder = info.Holder();
3437 TestObject* proxyImpl = V8TestObject::toImpl(holder); 3522 TestObject* proxyImpl = V8TestObject::toImpl(holder);
3438 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithPerWo rldBindings()); 3523 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithPerWo rldBindings());
3439 if (!impl) 3524 if (!impl)
3440 return; 3525 return;
3441 V8StringResource<> cppValue = v8Value; 3526 V8StringResource<> cppValue = v8Value;
3442 if (!cppValue.prepare()) 3527 if (!cppValue.prepare())
3443 return; 3528 return;
3444 impl->setHref(cppValue); 3529 impl->setHref(cppValue);
3445 } 3530 }
3446 3531
3447 static void locationWithPerWorldBindingsAttributeSetterCallbackForMainWorld(v8:: Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<vo id>& info) 3532 static void locationWithPerWorldBindingsAttributeSetterCallbackForMainWorld(cons t v8::FunctionCallbackInfo<v8::Value>& info)
3448 { 3533 {
3534 v8::Local<v8::Value> v8Value = info[0];
3449 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3535 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3450 TestObjectV8Internal::locationWithPerWorldBindingsAttributeSetterForMainWorl d(v8Value, info); 3536 TestObjectV8Internal::locationWithPerWorldBindingsAttributeSetterForMainWorl d(v8Value, info);
3451 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3537 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3452 } 3538 }
3453 3539
3454 static void locationTypeCheckingInterfaceAttributeGetter(const v8::PropertyCallb ackInfo<v8::Value>& info) 3540 static void locationTypeCheckingInterfaceAttributeGetter(const v8::FunctionCallb ackInfo<v8::Value>& info)
3455 { 3541 {
3456 v8::Local<v8::Object> holder = info.Holder(); 3542 v8::Local<v8::Object> holder = info.Holder();
3457 TestObject* impl = V8TestObject::toImpl(holder); 3543 TestObject* impl = V8TestObject::toImpl(holder);
3458 v8SetReturnValueFast(info, WTF::getPtr(impl->locationTypeCheckingInterface() ), impl); 3544 v8SetReturnValueFast(info, WTF::getPtr(impl->locationTypeCheckingInterface() ), impl);
3459 } 3545 }
3460 3546
3461 static void locationTypeCheckingInterfaceAttributeGetterCallback(v8::Local<v8::N ame>, const v8::PropertyCallbackInfo<v8::Value>& info) 3547 static void locationTypeCheckingInterfaceAttributeGetterCallback(const v8::Funct ionCallbackInfo<v8::Value>& info)
3462 { 3548 {
3463 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3549 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3464 TestObjectV8Internal::locationTypeCheckingInterfaceAttributeGetter(info); 3550 TestObjectV8Internal::locationTypeCheckingInterfaceAttributeGetter(info);
3465 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3551 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3466 } 3552 }
3467 3553
3468 static void locationTypeCheckingInterfaceAttributeSetter(v8::Local<v8::Value> v8 Value, const v8::PropertyCallbackInfo<void>& info) 3554 static void locationTypeCheckingInterfaceAttributeSetter(v8::Local<v8::Value> v8 Value, const v8::FunctionCallbackInfo<v8::Value>& info)
3469 { 3555 {
3470 v8::Local<v8::Object> holder = info.Holder(); 3556 v8::Local<v8::Object> holder = info.Holder();
3471 TestObject* proxyImpl = V8TestObject::toImpl(holder); 3557 TestObject* proxyImpl = V8TestObject::toImpl(holder);
3472 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationTypeCheck ingInterface()); 3558 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationTypeCheck ingInterface());
3473 if (!impl) 3559 if (!impl)
3474 return; 3560 return;
3475 V8StringResource<> cppValue = v8Value; 3561 V8StringResource<> cppValue = v8Value;
3476 if (!cppValue.prepare()) 3562 if (!cppValue.prepare())
3477 return; 3563 return;
3478 impl->setHref(cppValue); 3564 impl->setHref(cppValue);
3479 } 3565 }
3480 3566
3481 static void locationTypeCheckingInterfaceAttributeSetterCallback(v8::Local<v8::N ame>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3567 static void locationTypeCheckingInterfaceAttributeSetterCallback(const v8::Funct ionCallbackInfo<v8::Value>& info)
3482 { 3568 {
3569 v8::Local<v8::Value> v8Value = info[0];
3483 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3570 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3484 TestObjectV8Internal::locationTypeCheckingInterfaceAttributeSetter(v8Value, info); 3571 TestObjectV8Internal::locationTypeCheckingInterfaceAttributeSetter(v8Value, info);
3485 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3572 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3486 } 3573 }
3487 3574
3488 static void locationGarbageCollectedAttributeGetter(const v8::PropertyCallbackIn fo<v8::Value>& info) 3575 static void locationGarbageCollectedAttributeGetter(const v8::FunctionCallbackIn fo<v8::Value>& info)
3489 { 3576 {
3490 v8::Local<v8::Object> holder = info.Holder(); 3577 v8::Local<v8::Object> holder = info.Holder();
3491 TestObject* impl = V8TestObject::toImpl(holder); 3578 TestObject* impl = V8TestObject::toImpl(holder);
3492 RawPtr<TestInterfaceGarbageCollected> cppValue(impl->locationGarbageCollecte d()); 3579 RawPtr<TestInterfaceGarbageCollected> cppValue(impl->locationGarbageCollecte d());
3493 if (cppValue && DOMDataStore::setReturnValue(info.GetReturnValue(), cppValue .get())) 3580 if (cppValue && DOMDataStore::setReturnValue(info.GetReturnValue(), cppValue .get()))
3494 return; 3581 return;
3495 v8::Local<v8::Value> v8Value(toV8(cppValue.get(), holder, info.GetIsolate()) ); 3582 v8::Local<v8::Value> v8Value(toV8(cppValue.get(), holder, info.GetIsolate()) );
3496 if (!v8Value.IsEmpty()) { 3583 if (!v8Value.IsEmpty()) {
3497 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString( info.GetIsolate(), "locationGarbageCollected"), v8Value); 3584 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString( info.GetIsolate(), "locationGarbageCollected"), v8Value);
3498 v8SetReturnValue(info, v8Value); 3585 v8SetReturnValue(info, v8Value);
3499 } 3586 }
3500 } 3587 }
3501 3588
3502 static void locationGarbageCollectedAttributeGetterCallback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 3589 static void locationGarbageCollectedAttributeGetterCallback(const v8::FunctionCa llbackInfo<v8::Value>& info)
3503 { 3590 {
3504 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3591 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3505 TestObjectV8Internal::locationGarbageCollectedAttributeGetter(info); 3592 TestObjectV8Internal::locationGarbageCollectedAttributeGetter(info);
3506 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3593 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3507 } 3594 }
3508 3595
3509 static void locationGarbageCollectedAttributeSetter(v8::Local<v8::Value> v8Value , const v8::PropertyCallbackInfo<void>& info) 3596 static void locationGarbageCollectedAttributeSetter(v8::Local<v8::Value> v8Value , const v8::FunctionCallbackInfo<v8::Value>& info)
3510 { 3597 {
3511 v8::Local<v8::Object> holder = info.Holder(); 3598 v8::Local<v8::Object> holder = info.Holder();
3512 TestObject* proxyImpl = V8TestObject::toImpl(holder); 3599 TestObject* proxyImpl = V8TestObject::toImpl(holder);
3513 RawPtr<TestInterfaceGarbageCollected> impl = WTF::getPtr(proxyImpl->location GarbageCollected()); 3600 RawPtr<TestInterfaceGarbageCollected> impl = WTF::getPtr(proxyImpl->location GarbageCollected());
3514 if (!impl) 3601 if (!impl)
3515 return; 3602 return;
3516 TestInterfaceGarbageCollected* cppValue = V8TestInterfaceGarbageCollected::t oImplWithTypeCheck(info.GetIsolate(), v8Value); 3603 TestInterfaceGarbageCollected* cppValue = V8TestInterfaceGarbageCollected::t oImplWithTypeCheck(info.GetIsolate(), v8Value);
3517 impl->setAttr1(WTF::getPtr(cppValue)); 3604 impl->setAttr1(WTF::getPtr(cppValue));
3518 } 3605 }
3519 3606
3520 static void locationGarbageCollectedAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3607 static void locationGarbageCollectedAttributeSetterCallback(const v8::FunctionCa llbackInfo<v8::Value>& info)
3521 { 3608 {
3609 v8::Local<v8::Value> v8Value = info[0];
3522 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3610 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3523 TestObjectV8Internal::locationGarbageCollectedAttributeSetter(v8Value, info) ; 3611 TestObjectV8Internal::locationGarbageCollectedAttributeSetter(v8Value, info) ;
3524 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3612 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3525 } 3613 }
3526 3614
3527 static void locationWillBeGarbageCollectedAttributeGetter(const v8::PropertyCall backInfo<v8::Value>& info) 3615 static void locationWillBeGarbageCollectedAttributeGetter(const v8::FunctionCall backInfo<v8::Value>& info)
3528 { 3616 {
3529 v8::Local<v8::Object> holder = info.Holder(); 3617 v8::Local<v8::Object> holder = info.Holder();
3530 TestObject* impl = V8TestObject::toImpl(holder); 3618 TestObject* impl = V8TestObject::toImpl(holder);
3531 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> cppValue(impl->locat ionWillBeGarbageCollected()); 3619 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> cppValue(impl->locat ionWillBeGarbageCollected());
3532 if (cppValue && DOMDataStore::setReturnValue(info.GetReturnValue(), cppValue .get())) 3620 if (cppValue && DOMDataStore::setReturnValue(info.GetReturnValue(), cppValue .get()))
3533 return; 3621 return;
3534 v8::Local<v8::Value> v8Value(toV8(cppValue.get(), holder, info.GetIsolate()) ); 3622 v8::Local<v8::Value> v8Value(toV8(cppValue.get(), holder, info.GetIsolate()) );
3535 if (!v8Value.IsEmpty()) { 3623 if (!v8Value.IsEmpty()) {
3536 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString( info.GetIsolate(), "locationWillBeGarbageCollected"), v8Value); 3624 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString( info.GetIsolate(), "locationWillBeGarbageCollected"), v8Value);
3537 v8SetReturnValue(info, v8Value); 3625 v8SetReturnValue(info, v8Value);
3538 } 3626 }
3539 } 3627 }
3540 3628
3541 static void locationWillBeGarbageCollectedAttributeGetterCallback(v8::Local<v8:: Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 3629 static void locationWillBeGarbageCollectedAttributeGetterCallback(const v8::Func tionCallbackInfo<v8::Value>& info)
3542 { 3630 {
3543 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3631 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3544 TestObjectV8Internal::locationWillBeGarbageCollectedAttributeGetter(info); 3632 TestObjectV8Internal::locationWillBeGarbageCollectedAttributeGetter(info);
3545 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3633 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3546 } 3634 }
3547 3635
3548 static void locationWillBeGarbageCollectedAttributeSetter(v8::Local<v8::Value> v 8Value, const v8::PropertyCallbackInfo<void>& info) 3636 static void locationWillBeGarbageCollectedAttributeSetter(v8::Local<v8::Value> v 8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
3549 { 3637 {
3550 v8::Local<v8::Object> holder = info.Holder(); 3638 v8::Local<v8::Object> holder = info.Holder();
3551 TestObject* proxyImpl = V8TestObject::toImpl(holder); 3639 TestObject* proxyImpl = V8TestObject::toImpl(holder);
3552 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> impl = WTF::getPtr(p roxyImpl->locationWillBeGarbageCollected()); 3640 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> impl = WTF::getPtr(p roxyImpl->locationWillBeGarbageCollected());
3553 if (!impl) 3641 if (!impl)
3554 return; 3642 return;
3555 TestInterfaceWillBeGarbageCollected* cppValue = V8TestInterfaceWillBeGarbage Collected::toImplWithTypeCheck(info.GetIsolate(), v8Value); 3643 TestInterfaceWillBeGarbageCollected* cppValue = V8TestInterfaceWillBeGarbage Collected::toImplWithTypeCheck(info.GetIsolate(), v8Value);
3556 impl->setAttr1(WTF::getPtr(cppValue)); 3644 impl->setAttr1(WTF::getPtr(cppValue));
3557 } 3645 }
3558 3646
3559 static void locationWillBeGarbageCollectedAttributeSetterCallback(v8::Local<v8:: Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3647 static void locationWillBeGarbageCollectedAttributeSetterCallback(const v8::Func tionCallbackInfo<v8::Value>& info)
3560 { 3648 {
3649 v8::Local<v8::Value> v8Value = info[0];
3561 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3650 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3562 TestObjectV8Internal::locationWillBeGarbageCollectedAttributeSetter(v8Value, info); 3651 TestObjectV8Internal::locationWillBeGarbageCollectedAttributeSetter(v8Value, info);
3563 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3652 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3564 } 3653 }
3565 3654
3566 static void raisesExceptionLongAttributeAttributeGetter(const v8::PropertyCallba ckInfo<v8::Value>& info) 3655 static void raisesExceptionLongAttributeAttributeGetter(const v8::FunctionCallba ckInfo<v8::Value>& info)
3567 { 3656 {
3568 v8::Local<v8::Object> holder = info.Holder(); 3657 v8::Local<v8::Object> holder = info.Holder();
3569 TestObject* impl = V8TestObject::toImpl(holder); 3658 TestObject* impl = V8TestObject::toImpl(holder);
3570 ExceptionState exceptionState(ExceptionState::GetterContext, "raisesExceptio nLongAttribute", "TestObject", holder, info.GetIsolate()); 3659 ExceptionState exceptionState(ExceptionState::GetterContext, "raisesExceptio nLongAttribute", "TestObject", holder, info.GetIsolate());
3571 int cppValue(impl->raisesExceptionLongAttribute(exceptionState)); 3660 int cppValue(impl->raisesExceptionLongAttribute(exceptionState));
3572 if (UNLIKELY(exceptionState.throwIfNeeded())) 3661 if (UNLIKELY(exceptionState.throwIfNeeded()))
3573 return; 3662 return;
3574 v8SetReturnValueInt(info, cppValue); 3663 v8SetReturnValueInt(info, cppValue);
3575 } 3664 }
3576 3665
3577 static void raisesExceptionLongAttributeAttributeGetterCallback(v8::Local<v8::Na me>, const v8::PropertyCallbackInfo<v8::Value>& info) 3666 static void raisesExceptionLongAttributeAttributeGetterCallback(const v8::Functi onCallbackInfo<v8::Value>& info)
3578 { 3667 {
3579 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3668 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3580 TestObjectV8Internal::raisesExceptionLongAttributeAttributeGetter(info); 3669 TestObjectV8Internal::raisesExceptionLongAttributeAttributeGetter(info);
3581 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3670 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3582 } 3671 }
3583 3672
3584 static void raisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Value> v8V alue, const v8::PropertyCallbackInfo<void>& info) 3673 static void raisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Value> v8V alue, const v8::FunctionCallbackInfo<v8::Value>& info)
3585 { 3674 {
3586 v8::Local<v8::Object> holder = info.Holder(); 3675 v8::Local<v8::Object> holder = info.Holder();
3587 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio nLongAttribute", "TestObject", holder, info.GetIsolate()); 3676 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio nLongAttribute", "TestObject", holder, info.GetIsolate());
3588 TestObject* impl = V8TestObject::toImpl(holder); 3677 TestObject* impl = V8TestObject::toImpl(holder);
3589 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 3678 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
3590 if (exceptionState.throwIfNeeded()) 3679 if (exceptionState.throwIfNeeded())
3591 return; 3680 return;
3592 impl->setRaisesExceptionLongAttribute(cppValue, exceptionState); 3681 impl->setRaisesExceptionLongAttribute(cppValue, exceptionState);
3593 exceptionState.throwIfNeeded(); 3682 exceptionState.throwIfNeeded();
3594 } 3683 }
3595 3684
3596 static void raisesExceptionLongAttributeAttributeSetterCallback(v8::Local<v8::Na me>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3685 static void raisesExceptionLongAttributeAttributeSetterCallback(const v8::Functi onCallbackInfo<v8::Value>& info)
3597 { 3686 {
3687 v8::Local<v8::Value> v8Value = info[0];
3598 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3688 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3599 TestObjectV8Internal::raisesExceptionLongAttributeAttributeSetter(v8Value, i nfo); 3689 TestObjectV8Internal::raisesExceptionLongAttributeAttributeSetter(v8Value, i nfo);
3600 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3690 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3601 } 3691 }
3602 3692
3603 static void raisesExceptionGetterLongAttributeAttributeGetter(const v8::Property CallbackInfo<v8::Value>& info) 3693 static void raisesExceptionGetterLongAttributeAttributeGetter(const v8::Function CallbackInfo<v8::Value>& info)
3604 { 3694 {
3605 v8::Local<v8::Object> holder = info.Holder(); 3695 v8::Local<v8::Object> holder = info.Holder();
3606 TestObject* impl = V8TestObject::toImpl(holder); 3696 TestObject* impl = V8TestObject::toImpl(holder);
3607 ExceptionState exceptionState(ExceptionState::GetterContext, "raisesExceptio nGetterLongAttribute", "TestObject", holder, info.GetIsolate()); 3697 ExceptionState exceptionState(ExceptionState::GetterContext, "raisesExceptio nGetterLongAttribute", "TestObject", holder, info.GetIsolate());
3608 int cppValue(impl->raisesExceptionGetterLongAttribute(exceptionState)); 3698 int cppValue(impl->raisesExceptionGetterLongAttribute(exceptionState));
3609 if (UNLIKELY(exceptionState.throwIfNeeded())) 3699 if (UNLIKELY(exceptionState.throwIfNeeded()))
3610 return; 3700 return;
3611 v8SetReturnValueInt(info, cppValue); 3701 v8SetReturnValueInt(info, cppValue);
3612 } 3702 }
3613 3703
3614 static void raisesExceptionGetterLongAttributeAttributeGetterCallback(v8::Local< v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 3704 static void raisesExceptionGetterLongAttributeAttributeGetterCallback(const v8:: FunctionCallbackInfo<v8::Value>& info)
3615 { 3705 {
3616 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3706 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3617 TestObjectV8Internal::raisesExceptionGetterLongAttributeAttributeGetter(info ); 3707 TestObjectV8Internal::raisesExceptionGetterLongAttributeAttributeGetter(info );
3618 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3708 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3619 } 3709 }
3620 3710
3621 static void raisesExceptionGetterLongAttributeAttributeSetter(v8::Local<v8::Valu e> v8Value, const v8::PropertyCallbackInfo<void>& info) 3711 static void raisesExceptionGetterLongAttributeAttributeSetter(v8::Local<v8::Valu e> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
3622 { 3712 {
3623 v8::Local<v8::Object> holder = info.Holder(); 3713 v8::Local<v8::Object> holder = info.Holder();
3624 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio nGetterLongAttribute", "TestObject", holder, info.GetIsolate()); 3714 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio nGetterLongAttribute", "TestObject", holder, info.GetIsolate());
3625 TestObject* impl = V8TestObject::toImpl(holder); 3715 TestObject* impl = V8TestObject::toImpl(holder);
3626 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 3716 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
3627 if (exceptionState.throwIfNeeded()) 3717 if (exceptionState.throwIfNeeded())
3628 return; 3718 return;
3629 impl->setRaisesExceptionGetterLongAttribute(cppValue); 3719 impl->setRaisesExceptionGetterLongAttribute(cppValue);
3630 } 3720 }
3631 3721
3632 static void raisesExceptionGetterLongAttributeAttributeSetterCallback(v8::Local< v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& i nfo) 3722 static void raisesExceptionGetterLongAttributeAttributeSetterCallback(const v8:: FunctionCallbackInfo<v8::Value>& info)
3633 { 3723 {
3724 v8::Local<v8::Value> v8Value = info[0];
3634 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3725 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3635 TestObjectV8Internal::raisesExceptionGetterLongAttributeAttributeSetter(v8Va lue, info); 3726 TestObjectV8Internal::raisesExceptionGetterLongAttributeAttributeSetter(v8Va lue, info);
3636 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3727 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3637 } 3728 }
3638 3729
3639 static void setterRaisesExceptionLongAttributeAttributeGetter(const v8::Property CallbackInfo<v8::Value>& info) 3730 static void setterRaisesExceptionLongAttributeAttributeGetter(const v8::Function CallbackInfo<v8::Value>& info)
3640 { 3731 {
3641 v8::Local<v8::Object> holder = info.Holder(); 3732 v8::Local<v8::Object> holder = info.Holder();
3642 TestObject* impl = V8TestObject::toImpl(holder); 3733 TestObject* impl = V8TestObject::toImpl(holder);
3643 v8SetReturnValueInt(info, impl->setterRaisesExceptionLongAttribute()); 3734 v8SetReturnValueInt(info, impl->setterRaisesExceptionLongAttribute());
3644 } 3735 }
3645 3736
3646 static void setterRaisesExceptionLongAttributeAttributeGetterCallback(v8::Local< v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 3737 static void setterRaisesExceptionLongAttributeAttributeGetterCallback(const v8:: FunctionCallbackInfo<v8::Value>& info)
3647 { 3738 {
3648 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3739 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3649 TestObjectV8Internal::setterRaisesExceptionLongAttributeAttributeGetter(info ); 3740 TestObjectV8Internal::setterRaisesExceptionLongAttributeAttributeGetter(info );
3650 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3741 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3651 } 3742 }
3652 3743
3653 static void setterRaisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Valu e> v8Value, const v8::PropertyCallbackInfo<void>& info) 3744 static void setterRaisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Valu e> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
3654 { 3745 {
3655 v8::Local<v8::Object> holder = info.Holder(); 3746 v8::Local<v8::Object> holder = info.Holder();
3656 ExceptionState exceptionState(ExceptionState::SetterContext, "setterRaisesEx ceptionLongAttribute", "TestObject", holder, info.GetIsolate()); 3747 ExceptionState exceptionState(ExceptionState::SetterContext, "setterRaisesEx ceptionLongAttribute", "TestObject", holder, info.GetIsolate());
3657 TestObject* impl = V8TestObject::toImpl(holder); 3748 TestObject* impl = V8TestObject::toImpl(holder);
3658 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 3749 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
3659 if (exceptionState.throwIfNeeded()) 3750 if (exceptionState.throwIfNeeded())
3660 return; 3751 return;
3661 impl->setSetterRaisesExceptionLongAttribute(cppValue, exceptionState); 3752 impl->setSetterRaisesExceptionLongAttribute(cppValue, exceptionState);
3662 exceptionState.throwIfNeeded(); 3753 exceptionState.throwIfNeeded();
3663 } 3754 }
3664 3755
3665 static void setterRaisesExceptionLongAttributeAttributeSetterCallback(v8::Local< v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& i nfo) 3756 static void setterRaisesExceptionLongAttributeAttributeSetterCallback(const v8:: FunctionCallbackInfo<v8::Value>& info)
3666 { 3757 {
3758 v8::Local<v8::Value> v8Value = info[0];
3667 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3759 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3668 TestObjectV8Internal::setterRaisesExceptionLongAttributeAttributeSetter(v8Va lue, info); 3760 TestObjectV8Internal::setterRaisesExceptionLongAttributeAttributeSetter(v8Va lue, info);
3669 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3761 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3670 } 3762 }
3671 3763
3672 static void raisesExceptionTestInterfaceEmptyAttributeAttributeGetter(const v8:: PropertyCallbackInfo<v8::Value>& info) 3764 static void raisesExceptionTestInterfaceEmptyAttributeAttributeGetter(const v8:: FunctionCallbackInfo<v8::Value>& info)
3673 { 3765 {
3674 v8::Local<v8::Object> holder = info.Holder(); 3766 v8::Local<v8::Object> holder = info.Holder();
3675 TestObject* impl = V8TestObject::toImpl(holder); 3767 TestObject* impl = V8TestObject::toImpl(holder);
3676 ExceptionState exceptionState(ExceptionState::GetterContext, "raisesExceptio nTestInterfaceEmptyAttribute", "TestObject", holder, info.GetIsolate()); 3768 ExceptionState exceptionState(ExceptionState::GetterContext, "raisesExceptio nTestInterfaceEmptyAttribute", "TestObject", holder, info.GetIsolate());
3677 RefPtr<TestInterfaceEmpty> cppValue(impl->raisesExceptionTestInterfaceEmptyA ttribute(exceptionState)); 3769 RefPtr<TestInterfaceEmpty> cppValue(impl->raisesExceptionTestInterfaceEmptyA ttribute(exceptionState));
3678 if (UNLIKELY(exceptionState.throwIfNeeded())) 3770 if (UNLIKELY(exceptionState.throwIfNeeded()))
3679 return; 3771 return;
3680 v8SetReturnValueFast(info, WTF::getPtr(cppValue.release()), impl); 3772 v8SetReturnValueFast(info, WTF::getPtr(cppValue.release()), impl);
3681 } 3773 }
3682 3774
3683 static void raisesExceptionTestInterfaceEmptyAttributeAttributeGetterCallback(v8 ::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 3775 static void raisesExceptionTestInterfaceEmptyAttributeAttributeGetterCallback(co nst v8::FunctionCallbackInfo<v8::Value>& info)
3684 { 3776 {
3685 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3777 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3686 TestObjectV8Internal::raisesExceptionTestInterfaceEmptyAttributeAttributeGet ter(info); 3778 TestObjectV8Internal::raisesExceptionTestInterfaceEmptyAttributeAttributeGet ter(info);
3687 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3779 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3688 } 3780 }
3689 3781
3690 static void raisesExceptionTestInterfaceEmptyAttributeAttributeSetter(v8::Local< v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3782 static void raisesExceptionTestInterfaceEmptyAttributeAttributeSetter(v8::Local< v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
3691 { 3783 {
3692 v8::Local<v8::Object> holder = info.Holder(); 3784 v8::Local<v8::Object> holder = info.Holder();
3693 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio nTestInterfaceEmptyAttribute", "TestObject", holder, info.GetIsolate()); 3785 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio nTestInterfaceEmptyAttribute", "TestObject", holder, info.GetIsolate());
3694 TestObject* impl = V8TestObject::toImpl(holder); 3786 TestObject* impl = V8TestObject::toImpl(holder);
3695 TestInterfaceEmpty* cppValue = V8TestInterfaceEmpty::toImplWithTypeCheck(inf o.GetIsolate(), v8Value); 3787 TestInterfaceEmpty* cppValue = V8TestInterfaceEmpty::toImplWithTypeCheck(inf o.GetIsolate(), v8Value);
3696 impl->setRaisesExceptionTestInterfaceEmptyAttribute(WTF::getPtr(cppValue), e xceptionState); 3788 impl->setRaisesExceptionTestInterfaceEmptyAttribute(WTF::getPtr(cppValue), e xceptionState);
3697 exceptionState.throwIfNeeded(); 3789 exceptionState.throwIfNeeded();
3698 } 3790 }
3699 3791
3700 static void raisesExceptionTestInterfaceEmptyAttributeAttributeSetterCallback(v8 ::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo< void>& info) 3792 static void raisesExceptionTestInterfaceEmptyAttributeAttributeSetterCallback(co nst v8::FunctionCallbackInfo<v8::Value>& info)
3701 { 3793 {
3794 v8::Local<v8::Value> v8Value = info[0];
3702 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3795 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3703 TestObjectV8Internal::raisesExceptionTestInterfaceEmptyAttributeAttributeSet ter(v8Value, info); 3796 TestObjectV8Internal::raisesExceptionTestInterfaceEmptyAttributeAttributeSet ter(v8Value, info);
3704 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3797 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3705 } 3798 }
3706 3799
3707 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeGetter(cons t v8::PropertyCallbackInfo<v8::Value>& info) 3800 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeGetter(cons t v8::FunctionCallbackInfo<v8::Value>& info)
3708 { 3801 {
3709 v8::Local<v8::Object> holder = info.Holder(); 3802 v8::Local<v8::Object> holder = info.Holder();
3710 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cach edAttributeRaisesExceptionGetterAnyAttribute"); 3803 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cach edAttributeRaisesExceptionGetterAnyAttribute");
3711 TestObject* impl = V8TestObject::toImpl(holder); 3804 TestObject* impl = V8TestObject::toImpl(holder);
3712 if (!impl->isValueDirty()) { 3805 if (!impl->isValueDirty()) {
3713 v8::Local<v8::Value> v8Value = V8HiddenValue::getHiddenValue(info.GetIso late(), holder, propertyName); 3806 v8::Local<v8::Value> v8Value = V8HiddenValue::getHiddenValue(info.GetIso late(), holder, propertyName);
3714 if (!v8Value.IsEmpty()) { 3807 if (!v8Value.IsEmpty()) {
3715 v8SetReturnValue(info, v8Value); 3808 v8SetReturnValue(info, v8Value);
3716 return; 3809 return;
3717 } 3810 }
3718 } 3811 }
3719 ExceptionState exceptionState(ExceptionState::GetterContext, "cachedAttribut eRaisesExceptionGetterAnyAttribute", "TestObject", holder, info.GetIsolate()); 3812 ExceptionState exceptionState(ExceptionState::GetterContext, "cachedAttribut eRaisesExceptionGetterAnyAttribute", "TestObject", holder, info.GetIsolate());
3720 ScriptValue cppValue(impl->cachedAttributeRaisesExceptionGetterAnyAttribute( exceptionState)); 3813 ScriptValue cppValue(impl->cachedAttributeRaisesExceptionGetterAnyAttribute( exceptionState));
3721 if (UNLIKELY(exceptionState.throwIfNeeded())) 3814 if (UNLIKELY(exceptionState.throwIfNeeded()))
3722 return; 3815 return;
3723 v8::Local<v8::Value> v8Value(cppValue.v8Value()); 3816 v8::Local<v8::Value> v8Value(cppValue.v8Value());
3724 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, v8Val ue); 3817 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, v8Val ue);
3725 v8SetReturnValue(info, v8Value); 3818 v8SetReturnValue(info, v8Value);
3726 } 3819 }
3727 3820
3728 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeGetterCallb ack(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 3821 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeGetterCallb ack(const v8::FunctionCallbackInfo<v8::Value>& info)
3729 { 3822 {
3730 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3823 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3731 TestObjectV8Internal::cachedAttributeRaisesExceptionGetterAnyAttributeAttrib uteGetter(info); 3824 TestObjectV8Internal::cachedAttributeRaisesExceptionGetterAnyAttributeAttrib uteGetter(info);
3732 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3825 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3733 } 3826 }
3734 3827
3735 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeSetter(v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3828 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeSetter(v8:: Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
3736 { 3829 {
3737 v8::Local<v8::Object> holder = info.Holder(); 3830 v8::Local<v8::Object> holder = info.Holder();
3738 ExceptionState exceptionState(ExceptionState::SetterContext, "cachedAttribut eRaisesExceptionGetterAnyAttribute", "TestObject", holder, info.GetIsolate()); 3831 ExceptionState exceptionState(ExceptionState::SetterContext, "cachedAttribut eRaisesExceptionGetterAnyAttribute", "TestObject", holder, info.GetIsolate());
3739 TestObject* impl = V8TestObject::toImpl(holder); 3832 TestObject* impl = V8TestObject::toImpl(holder);
3740 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value); 3833 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value);
3741 impl->setCachedAttributeRaisesExceptionGetterAnyAttribute(cppValue, exceptio nState); 3834 impl->setCachedAttributeRaisesExceptionGetterAnyAttribute(cppValue, exceptio nState);
3742 exceptionState.throwIfNeeded(); 3835 exceptionState.throwIfNeeded();
3743 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i nfo.GetIsolate(), "cachedAttributeRaisesExceptionGetterAnyAttribute")); // Inval idate the cached value. 3836 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i nfo.GetIsolate(), "cachedAttributeRaisesExceptionGetterAnyAttribute")); // Inval idate the cached value.
3744 } 3837 }
3745 3838
3746 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeSetterCallb ack(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac kInfo<void>& info) 3839 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeSetterCallb ack(const v8::FunctionCallbackInfo<v8::Value>& info)
3747 { 3840 {
3841 v8::Local<v8::Value> v8Value = info[0];
3748 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3842 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3749 TestObjectV8Internal::cachedAttributeRaisesExceptionGetterAnyAttributeAttrib uteSetter(v8Value, info); 3843 TestObjectV8Internal::cachedAttributeRaisesExceptionGetterAnyAttributeAttrib uteSetter(v8Value, info);
3750 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3844 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3751 } 3845 }
3752 3846
3753 static void reflectTestInterfaceAttributeAttributeGetter(const v8::PropertyCallb ackInfo<v8::Value>& info) 3847 static void reflectTestInterfaceAttributeAttributeGetter(const v8::FunctionCallb ackInfo<v8::Value>& info)
3754 { 3848 {
3755 v8::Local<v8::Object> holder = info.Holder(); 3849 v8::Local<v8::Object> holder = info.Holder();
3756 TestObject* impl = V8TestObject::toImpl(holder); 3850 TestObject* impl = V8TestObject::toImpl(holder);
3757 v8SetReturnValueFast(info, WTF::getPtr(impl->fastGetAttribute(HTMLNames::ref lecttestinterfaceattributeAttr)), impl); 3851 v8SetReturnValueFast(info, WTF::getPtr(impl->fastGetAttribute(HTMLNames::ref lecttestinterfaceattributeAttr)), impl);
3758 } 3852 }
3759 3853
3760 static void reflectTestInterfaceAttributeAttributeGetterCallback(v8::Local<v8::N ame>, const v8::PropertyCallbackInfo<v8::Value>& info) 3854 static void reflectTestInterfaceAttributeAttributeGetterCallback(const v8::Funct ionCallbackInfo<v8::Value>& info)
3761 { 3855 {
3762 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3856 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3763 TestObjectV8Internal::reflectTestInterfaceAttributeAttributeGetter(info); 3857 TestObjectV8Internal::reflectTestInterfaceAttributeAttributeGetter(info);
3764 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3858 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3765 } 3859 }
3766 3860
3767 static void reflectTestInterfaceAttributeAttributeSetter(v8::Local<v8::Value> v8 Value, const v8::PropertyCallbackInfo<void>& info) 3861 static void reflectTestInterfaceAttributeAttributeSetter(v8::Local<v8::Value> v8 Value, const v8::FunctionCallbackInfo<v8::Value>& info)
3768 { 3862 {
3769 v8::Local<v8::Object> holder = info.Holder(); 3863 v8::Local<v8::Object> holder = info.Holder();
3770 TestObject* impl = V8TestObject::toImpl(holder); 3864 TestObject* impl = V8TestObject::toImpl(holder);
3771 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck (info.GetIsolate(), v8Value); 3865 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck (info.GetIsolate(), v8Value);
3772 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3866 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3773 impl->setAttribute(HTMLNames::reflecttestinterfaceattributeAttr, WTF::getPtr (cppValue)); 3867 impl->setAttribute(HTMLNames::reflecttestinterfaceattributeAttr, WTF::getPtr (cppValue));
3774 } 3868 }
3775 3869
3776 static void reflectTestInterfaceAttributeAttributeSetterCallback(v8::Local<v8::N ame>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3870 static void reflectTestInterfaceAttributeAttributeSetterCallback(const v8::Funct ionCallbackInfo<v8::Value>& info)
3777 { 3871 {
3872 v8::Local<v8::Value> v8Value = info[0];
3778 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3873 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3779 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3874 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3780 TestObjectV8Internal::reflectTestInterfaceAttributeAttributeSetter(v8Value, info); 3875 TestObjectV8Internal::reflectTestInterfaceAttributeAttributeSetter(v8Value, info);
3781 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3876 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3782 } 3877 }
3783 3878
3784 static void reflectReflectedNameAttributeTestAttributeAttributeGetter(const v8:: PropertyCallbackInfo<v8::Value>& info) 3879 static void reflectReflectedNameAttributeTestAttributeAttributeGetter(const v8:: FunctionCallbackInfo<v8::Value>& info)
3785 { 3880 {
3786 v8::Local<v8::Object> holder = info.Holder(); 3881 v8::Local<v8::Object> holder = info.Holder();
3787 TestObject* impl = V8TestObject::toImpl(holder); 3882 TestObject* impl = V8TestObject::toImpl(holder);
3788 v8SetReturnValueFast(info, WTF::getPtr(impl->fastGetAttribute(HTMLNames::ref lectedNameAttributeAttr)), impl); 3883 v8SetReturnValueFast(info, WTF::getPtr(impl->fastGetAttribute(HTMLNames::ref lectedNameAttributeAttr)), impl);
3789 } 3884 }
3790 3885
3791 static void reflectReflectedNameAttributeTestAttributeAttributeGetterCallback(v8 ::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 3886 static void reflectReflectedNameAttributeTestAttributeAttributeGetterCallback(co nst v8::FunctionCallbackInfo<v8::Value>& info)
3792 { 3887 {
3793 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3888 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3794 TestObjectV8Internal::reflectReflectedNameAttributeTestAttributeAttributeGet ter(info); 3889 TestObjectV8Internal::reflectReflectedNameAttributeTestAttributeAttributeGet ter(info);
3795 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3890 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3796 } 3891 }
3797 3892
3798 static void reflectReflectedNameAttributeTestAttributeAttributeSetter(v8::Local< v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3893 static void reflectReflectedNameAttributeTestAttributeAttributeSetter(v8::Local< v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
3799 { 3894 {
3800 v8::Local<v8::Object> holder = info.Holder(); 3895 v8::Local<v8::Object> holder = info.Holder();
3801 TestObject* impl = V8TestObject::toImpl(holder); 3896 TestObject* impl = V8TestObject::toImpl(holder);
3802 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck (info.GetIsolate(), v8Value); 3897 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck (info.GetIsolate(), v8Value);
3803 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3898 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3804 impl->setAttribute(HTMLNames::reflectedNameAttributeAttr, WTF::getPtr(cppVal ue)); 3899 impl->setAttribute(HTMLNames::reflectedNameAttributeAttr, WTF::getPtr(cppVal ue));
3805 } 3900 }
3806 3901
3807 static void reflectReflectedNameAttributeTestAttributeAttributeSetterCallback(v8 ::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo< void>& info) 3902 static void reflectReflectedNameAttributeTestAttributeAttributeSetterCallback(co nst v8::FunctionCallbackInfo<v8::Value>& info)
3808 { 3903 {
3904 v8::Local<v8::Value> v8Value = info[0];
3809 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3905 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3810 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3906 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3811 TestObjectV8Internal::reflectReflectedNameAttributeTestAttributeAttributeSet ter(v8Value, info); 3907 TestObjectV8Internal::reflectReflectedNameAttributeTestAttributeAttributeSet ter(v8Value, info);
3812 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3908 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3813 } 3909 }
3814 3910
3815 static void reflectBooleanAttributeAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info) 3911 static void reflectBooleanAttributeAttributeGetter(const v8::FunctionCallbackInf o<v8::Value>& info)
3816 { 3912 {
3817 v8::Local<v8::Object> holder = info.Holder(); 3913 v8::Local<v8::Object> holder = info.Holder();
3818 TestObject* impl = V8TestObject::toImpl(holder); 3914 TestObject* impl = V8TestObject::toImpl(holder);
3819 v8SetReturnValueBool(info, impl->fastHasAttribute(HTMLNames::reflectbooleana ttributeAttr)); 3915 v8SetReturnValueBool(info, impl->fastHasAttribute(HTMLNames::reflectbooleana ttributeAttr));
3820 } 3916 }
3821 3917
3822 static void reflectBooleanAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 3918 static void reflectBooleanAttributeAttributeGetterCallback(const v8::FunctionCal lbackInfo<v8::Value>& info)
3823 { 3919 {
3824 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3920 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3825 TestObjectV8Internal::reflectBooleanAttributeAttributeGetter(info); 3921 TestObjectV8Internal::reflectBooleanAttributeAttributeGetter(info);
3826 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3922 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3827 } 3923 }
3828 3924
3829 static void reflectBooleanAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3925 static void reflectBooleanAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
3830 { 3926 {
3831 v8::Local<v8::Object> holder = info.Holder(); 3927 v8::Local<v8::Object> holder = info.Holder();
3832 TestObject* impl = V8TestObject::toImpl(holder); 3928 TestObject* impl = V8TestObject::toImpl(holder);
3833 bool cppValue = v8Value->BooleanValue(); 3929 bool cppValue = v8Value->BooleanValue();
3834 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3930 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3835 impl->setBooleanAttribute(HTMLNames::reflectbooleanattributeAttr, cppValue); 3931 impl->setBooleanAttribute(HTMLNames::reflectbooleanattributeAttr, cppValue);
3836 } 3932 }
3837 3933
3838 static void reflectBooleanAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3934 static void reflectBooleanAttributeAttributeSetterCallback(const v8::FunctionCal lbackInfo<v8::Value>& info)
3839 { 3935 {
3936 v8::Local<v8::Value> v8Value = info[0];
3840 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3937 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3841 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3938 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3842 TestObjectV8Internal::reflectBooleanAttributeAttributeSetter(v8Value, info); 3939 TestObjectV8Internal::reflectBooleanAttributeAttributeSetter(v8Value, info);
3843 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3940 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3844 } 3941 }
3845 3942
3846 static void reflectLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info) 3943 static void reflectLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v 8::Value>& info)
3847 { 3944 {
3848 v8::Local<v8::Object> holder = info.Holder(); 3945 v8::Local<v8::Object> holder = info.Holder();
3849 TestObject* impl = V8TestObject::toImpl(holder); 3946 TestObject* impl = V8TestObject::toImpl(holder);
3850 v8SetReturnValueInt(info, impl->getIntegralAttribute(HTMLNames::reflectlonga ttributeAttr)); 3947 v8SetReturnValueInt(info, impl->getIntegralAttribute(HTMLNames::reflectlonga ttributeAttr));
3851 } 3948 }
3852 3949
3853 static void reflectLongAttributeAttributeGetterCallback(v8::Local<v8::Name>, con st v8::PropertyCallbackInfo<v8::Value>& info) 3950 static void reflectLongAttributeAttributeGetterCallback(const v8::FunctionCallba ckInfo<v8::Value>& info)
3854 { 3951 {
3855 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3952 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3856 TestObjectV8Internal::reflectLongAttributeAttributeGetter(info); 3953 TestObjectV8Internal::reflectLongAttributeAttributeGetter(info);
3857 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3954 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3858 } 3955 }
3859 3956
3860 static void reflectLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& info) 3957 static void reflectLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::FunctionCallbackInfo<v8::Value>& info)
3861 { 3958 {
3862 v8::Local<v8::Object> holder = info.Holder(); 3959 v8::Local<v8::Object> holder = info.Holder();
3863 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectLongAtt ribute", "TestObject", holder, info.GetIsolate()); 3960 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectLongAtt ribute", "TestObject", holder, info.GetIsolate());
3864 TestObject* impl = V8TestObject::toImpl(holder); 3961 TestObject* impl = V8TestObject::toImpl(holder);
3865 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 3962 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
3866 if (exceptionState.throwIfNeeded()) 3963 if (exceptionState.throwIfNeeded())
3867 return; 3964 return;
3868 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3965 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3869 impl->setIntegralAttribute(HTMLNames::reflectlongattributeAttr, cppValue); 3966 impl->setIntegralAttribute(HTMLNames::reflectlongattributeAttr, cppValue);
3870 } 3967 }
3871 3968
3872 static void reflectLongAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8: :Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3969 static void reflectLongAttributeAttributeSetterCallback(const v8::FunctionCallba ckInfo<v8::Value>& info)
3873 { 3970 {
3971 v8::Local<v8::Value> v8Value = info[0];
3874 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3972 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3875 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3973 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3876 TestObjectV8Internal::reflectLongAttributeAttributeSetter(v8Value, info); 3974 TestObjectV8Internal::reflectLongAttributeAttributeSetter(v8Value, info);
3877 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3975 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3878 } 3976 }
3879 3977
3880 static void reflectUnsignedShortAttributeAttributeGetter(const v8::PropertyCallb ackInfo<v8::Value>& info) 3978 static void reflectUnsignedShortAttributeAttributeGetter(const v8::FunctionCallb ackInfo<v8::Value>& info)
3881 { 3979 {
3882 v8::Local<v8::Object> holder = info.Holder(); 3980 v8::Local<v8::Object> holder = info.Holder();
3883 TestObject* impl = V8TestObject::toImpl(holder); 3981 TestObject* impl = V8TestObject::toImpl(holder);
3884 v8SetReturnValueUnsigned(info, std::max(0, static_cast<int>(impl->fastGetAtt ribute(HTMLNames::reflectunsignedshortattributeAttr)))); 3982 v8SetReturnValueUnsigned(info, std::max(0, static_cast<int>(impl->fastGetAtt ribute(HTMLNames::reflectunsignedshortattributeAttr))));
3885 } 3983 }
3886 3984
3887 static void reflectUnsignedShortAttributeAttributeGetterCallback(v8::Local<v8::N ame>, const v8::PropertyCallbackInfo<v8::Value>& info) 3985 static void reflectUnsignedShortAttributeAttributeGetterCallback(const v8::Funct ionCallbackInfo<v8::Value>& info)
3888 { 3986 {
3889 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3987 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3890 TestObjectV8Internal::reflectUnsignedShortAttributeAttributeGetter(info); 3988 TestObjectV8Internal::reflectUnsignedShortAttributeAttributeGetter(info);
3891 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3989 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3892 } 3990 }
3893 3991
3894 static void reflectUnsignedShortAttributeAttributeSetter(v8::Local<v8::Value> v8 Value, const v8::PropertyCallbackInfo<void>& info) 3992 static void reflectUnsignedShortAttributeAttributeSetter(v8::Local<v8::Value> v8 Value, const v8::FunctionCallbackInfo<v8::Value>& info)
3895 { 3993 {
3896 v8::Local<v8::Object> holder = info.Holder(); 3994 v8::Local<v8::Object> holder = info.Holder();
3897 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne dShortAttribute", "TestObject", holder, info.GetIsolate()); 3995 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne dShortAttribute", "TestObject", holder, info.GetIsolate());
3898 TestObject* impl = V8TestObject::toImpl(holder); 3996 TestObject* impl = V8TestObject::toImpl(holder);
3899 unsigned cppValue = toUInt16(info.GetIsolate(), v8Value, NormalConversion, e xceptionState); 3997 unsigned cppValue = toUInt16(info.GetIsolate(), v8Value, NormalConversion, e xceptionState);
3900 if (exceptionState.throwIfNeeded()) 3998 if (exceptionState.throwIfNeeded())
3901 return; 3999 return;
3902 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4000 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3903 impl->setAttribute(HTMLNames::reflectunsignedshortattributeAttr, cppValue); 4001 impl->setAttribute(HTMLNames::reflectunsignedshortattributeAttr, cppValue);
3904 } 4002 }
3905 4003
3906 static void reflectUnsignedShortAttributeAttributeSetterCallback(v8::Local<v8::N ame>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4004 static void reflectUnsignedShortAttributeAttributeSetterCallback(const v8::Funct ionCallbackInfo<v8::Value>& info)
3907 { 4005 {
4006 v8::Local<v8::Value> v8Value = info[0];
3908 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4007 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3909 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4008 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3910 TestObjectV8Internal::reflectUnsignedShortAttributeAttributeSetter(v8Value, info); 4009 TestObjectV8Internal::reflectUnsignedShortAttributeAttributeSetter(v8Value, info);
3911 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4010 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3912 } 4011 }
3913 4012
3914 static void reflectUnsignedLongAttributeAttributeGetter(const v8::PropertyCallba ckInfo<v8::Value>& info) 4013 static void reflectUnsignedLongAttributeAttributeGetter(const v8::FunctionCallba ckInfo<v8::Value>& info)
3915 { 4014 {
3916 v8::Local<v8::Object> holder = info.Holder(); 4015 v8::Local<v8::Object> holder = info.Holder();
3917 TestObject* impl = V8TestObject::toImpl(holder); 4016 TestObject* impl = V8TestObject::toImpl(holder);
3918 v8SetReturnValueUnsigned(info, std::max(0, static_cast<int>(impl->getIntegra lAttribute(HTMLNames::reflectunsignedlongattributeAttr)))); 4017 v8SetReturnValueUnsigned(info, std::max(0, static_cast<int>(impl->getIntegra lAttribute(HTMLNames::reflectunsignedlongattributeAttr))));
3919 } 4018 }
3920 4019
3921 static void reflectUnsignedLongAttributeAttributeGetterCallback(v8::Local<v8::Na me>, const v8::PropertyCallbackInfo<v8::Value>& info) 4020 static void reflectUnsignedLongAttributeAttributeGetterCallback(const v8::Functi onCallbackInfo<v8::Value>& info)
3922 { 4021 {
3923 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4022 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3924 TestObjectV8Internal::reflectUnsignedLongAttributeAttributeGetter(info); 4023 TestObjectV8Internal::reflectUnsignedLongAttributeAttributeGetter(info);
3925 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4024 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3926 } 4025 }
3927 4026
3928 static void reflectUnsignedLongAttributeAttributeSetter(v8::Local<v8::Value> v8V alue, const v8::PropertyCallbackInfo<void>& info) 4027 static void reflectUnsignedLongAttributeAttributeSetter(v8::Local<v8::Value> v8V alue, const v8::FunctionCallbackInfo<v8::Value>& info)
3929 { 4028 {
3930 v8::Local<v8::Object> holder = info.Holder(); 4029 v8::Local<v8::Object> holder = info.Holder();
3931 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne dLongAttribute", "TestObject", holder, info.GetIsolate()); 4030 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne dLongAttribute", "TestObject", holder, info.GetIsolate());
3932 TestObject* impl = V8TestObject::toImpl(holder); 4031 TestObject* impl = V8TestObject::toImpl(holder);
3933 unsigned cppValue = toUInt32(info.GetIsolate(), v8Value, NormalConversion, e xceptionState); 4032 unsigned cppValue = toUInt32(info.GetIsolate(), v8Value, NormalConversion, e xceptionState);
3934 if (exceptionState.throwIfNeeded()) 4033 if (exceptionState.throwIfNeeded())
3935 return; 4034 return;
3936 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4035 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3937 impl->setUnsignedIntegralAttribute(HTMLNames::reflectunsignedlongattributeAt tr, cppValue); 4036 impl->setUnsignedIntegralAttribute(HTMLNames::reflectunsignedlongattributeAt tr, cppValue);
3938 } 4037 }
3939 4038
3940 static void reflectUnsignedLongAttributeAttributeSetterCallback(v8::Local<v8::Na me>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4039 static void reflectUnsignedLongAttributeAttributeSetterCallback(const v8::Functi onCallbackInfo<v8::Value>& info)
3941 { 4040 {
4041 v8::Local<v8::Value> v8Value = info[0];
3942 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4042 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3943 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4043 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3944 TestObjectV8Internal::reflectUnsignedLongAttributeAttributeSetter(v8Value, i nfo); 4044 TestObjectV8Internal::reflectUnsignedLongAttributeAttributeSetter(v8Value, i nfo);
3945 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4045 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3946 } 4046 }
3947 4047
3948 static void idAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 4048 static void idAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info)
3949 { 4049 {
3950 v8::Local<v8::Object> holder = info.Holder(); 4050 v8::Local<v8::Object> holder = info.Holder();
3951 TestObject* impl = V8TestObject::toImpl(holder); 4051 TestObject* impl = V8TestObject::toImpl(holder);
3952 v8SetReturnValueString(info, impl->getIdAttribute(), info.GetIsolate()); 4052 v8SetReturnValueString(info, impl->getIdAttribute(), info.GetIsolate());
3953 } 4053 }
3954 4054
3955 static void idAttributeGetterCallback(v8::Local<v8::Name>, const v8::PropertyCal lbackInfo<v8::Value>& info) 4055 static void idAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
3956 { 4056 {
3957 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4057 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3958 TestObjectV8Internal::idAttributeGetter(info); 4058 TestObjectV8Internal::idAttributeGetter(info);
3959 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4059 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3960 } 4060 }
3961 4061
3962 static void idAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCa llbackInfo<void>& info) 4062 static void idAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCa llbackInfo<v8::Value>& info)
3963 { 4063 {
3964 v8::Local<v8::Object> holder = info.Holder(); 4064 v8::Local<v8::Object> holder = info.Holder();
3965 TestObject* impl = V8TestObject::toImpl(holder); 4065 TestObject* impl = V8TestObject::toImpl(holder);
3966 V8StringResource<> cppValue = v8Value; 4066 V8StringResource<> cppValue = v8Value;
3967 if (!cppValue.prepare()) 4067 if (!cppValue.prepare())
3968 return; 4068 return;
3969 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4069 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3970 impl->setAttribute(HTMLNames::idAttr, cppValue); 4070 impl->setAttribute(HTMLNames::idAttr, cppValue);
3971 } 4071 }
3972 4072
3973 static void idAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4073 static void idAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
3974 { 4074 {
4075 v8::Local<v8::Value> v8Value = info[0];
3975 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4076 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3976 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4077 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3977 TestObjectV8Internal::idAttributeSetter(v8Value, info); 4078 TestObjectV8Internal::idAttributeSetter(v8Value, info);
3978 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4079 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3979 } 4080 }
3980 4081
3981 static void nameAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 4082 static void nameAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info)
3982 { 4083 {
3983 v8::Local<v8::Object> holder = info.Holder(); 4084 v8::Local<v8::Object> holder = info.Holder();
3984 TestObject* impl = V8TestObject::toImpl(holder); 4085 TestObject* impl = V8TestObject::toImpl(holder);
3985 v8SetReturnValueString(info, impl->getNameAttribute(), info.GetIsolate()); 4086 v8SetReturnValueString(info, impl->getNameAttribute(), info.GetIsolate());
3986 } 4087 }
3987 4088
3988 static void nameAttributeGetterCallback(v8::Local<v8::Name>, const v8::PropertyC allbackInfo<v8::Value>& info) 4089 static void nameAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value >& info)
3989 { 4090 {
3990 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4091 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3991 TestObjectV8Internal::nameAttributeGetter(info); 4092 TestObjectV8Internal::nameAttributeGetter(info);
3992 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4093 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3993 } 4094 }
3994 4095
3995 static void nameAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Property CallbackInfo<void>& info) 4096 static void nameAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Function CallbackInfo<v8::Value>& info)
3996 { 4097 {
3997 v8::Local<v8::Object> holder = info.Holder(); 4098 v8::Local<v8::Object> holder = info.Holder();
3998 TestObject* impl = V8TestObject::toImpl(holder); 4099 TestObject* impl = V8TestObject::toImpl(holder);
3999 V8StringResource<> cppValue = v8Value; 4100 V8StringResource<> cppValue = v8Value;
4000 if (!cppValue.prepare()) 4101 if (!cppValue.prepare())
4001 return; 4102 return;
4002 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4103 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4003 impl->setAttribute(HTMLNames::nameAttr, cppValue); 4104 impl->setAttribute(HTMLNames::nameAttr, cppValue);
4004 } 4105 }
4005 4106
4006 static void nameAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v8::Value > v8Value, const v8::PropertyCallbackInfo<void>& info) 4107 static void nameAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value >& info)
4007 { 4108 {
4109 v8::Local<v8::Value> v8Value = info[0];
4008 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4110 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4009 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4111 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4010 TestObjectV8Internal::nameAttributeSetter(v8Value, info); 4112 TestObjectV8Internal::nameAttributeSetter(v8Value, info);
4011 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4113 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4012 } 4114 }
4013 4115
4014 static void classAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info ) 4116 static void classAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info )
4015 { 4117 {
4016 v8::Local<v8::Object> holder = info.Holder(); 4118 v8::Local<v8::Object> holder = info.Holder();
4017 TestObject* impl = V8TestObject::toImpl(holder); 4119 TestObject* impl = V8TestObject::toImpl(holder);
4018 v8SetReturnValueString(info, impl->getClassAttribute(), info.GetIsolate()); 4120 v8SetReturnValueString(info, impl->getClassAttribute(), info.GetIsolate());
4019 } 4121 }
4020 4122
4021 static void classAttributeGetterCallback(v8::Local<v8::Name>, const v8::Property CallbackInfo<v8::Value>& info) 4123 static void classAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Valu e>& info)
4022 { 4124 {
4023 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4125 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4024 TestObjectV8Internal::classAttributeGetter(info); 4126 TestObjectV8Internal::classAttributeGetter(info);
4025 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4127 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4026 } 4128 }
4027 4129
4028 static void classAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Propert yCallbackInfo<void>& info) 4130 static void classAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Functio nCallbackInfo<v8::Value>& info)
4029 { 4131 {
4030 v8::Local<v8::Object> holder = info.Holder(); 4132 v8::Local<v8::Object> holder = info.Holder();
4031 TestObject* impl = V8TestObject::toImpl(holder); 4133 TestObject* impl = V8TestObject::toImpl(holder);
4032 V8StringResource<> cppValue = v8Value; 4134 V8StringResource<> cppValue = v8Value;
4033 if (!cppValue.prepare()) 4135 if (!cppValue.prepare())
4034 return; 4136 return;
4035 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4137 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4036 impl->setAttribute(HTMLNames::classAttr, cppValue); 4138 impl->setAttribute(HTMLNames::classAttr, cppValue);
4037 } 4139 }
4038 4140
4039 static void classAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v8::Valu e> v8Value, const v8::PropertyCallbackInfo<void>& info) 4141 static void classAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Valu e>& info)
4040 { 4142 {
4143 v8::Local<v8::Value> v8Value = info[0];
4041 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4144 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4042 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4145 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4043 TestObjectV8Internal::classAttributeSetter(v8Value, info); 4146 TestObjectV8Internal::classAttributeSetter(v8Value, info);
4044 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4147 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4045 } 4148 }
4046 4149
4047 static void reflectedIdAttributeGetter(const v8::PropertyCallbackInfo<v8::Value> & info) 4150 static void reflectedIdAttributeGetter(const v8::FunctionCallbackInfo<v8::Value> & info)
4048 { 4151 {
4049 v8::Local<v8::Object> holder = info.Holder(); 4152 v8::Local<v8::Object> holder = info.Holder();
4050 TestObject* impl = V8TestObject::toImpl(holder); 4153 TestObject* impl = V8TestObject::toImpl(holder);
4051 v8SetReturnValueString(info, impl->getIdAttribute(), info.GetIsolate()); 4154 v8SetReturnValueString(info, impl->getIdAttribute(), info.GetIsolate());
4052 } 4155 }
4053 4156
4054 static void reflectedIdAttributeGetterCallback(v8::Local<v8::Name>, const v8::Pr opertyCallbackInfo<v8::Value>& info) 4157 static void reflectedIdAttributeGetterCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info)
4055 { 4158 {
4056 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4159 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4057 TestObjectV8Internal::reflectedIdAttributeGetter(info); 4160 TestObjectV8Internal::reflectedIdAttributeGetter(info);
4058 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4161 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4059 } 4162 }
4060 4163
4061 static void reflectedIdAttributeSetter(v8::Local<v8::Value> v8Value, const v8::P ropertyCallbackInfo<void>& info) 4164 static void reflectedIdAttributeSetter(v8::Local<v8::Value> v8Value, const v8::F unctionCallbackInfo<v8::Value>& info)
4062 { 4165 {
4063 v8::Local<v8::Object> holder = info.Holder(); 4166 v8::Local<v8::Object> holder = info.Holder();
4064 TestObject* impl = V8TestObject::toImpl(holder); 4167 TestObject* impl = V8TestObject::toImpl(holder);
4065 V8StringResource<> cppValue = v8Value; 4168 V8StringResource<> cppValue = v8Value;
4066 if (!cppValue.prepare()) 4169 if (!cppValue.prepare())
4067 return; 4170 return;
4068 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4171 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4069 impl->setAttribute(HTMLNames::idAttr, cppValue); 4172 impl->setAttribute(HTMLNames::idAttr, cppValue);
4070 } 4173 }
4071 4174
4072 static void reflectedIdAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v8 ::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4175 static void reflectedIdAttributeSetterCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info)
4073 { 4176 {
4177 v8::Local<v8::Value> v8Value = info[0];
4074 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4178 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4075 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4179 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4076 TestObjectV8Internal::reflectedIdAttributeSetter(v8Value, info); 4180 TestObjectV8Internal::reflectedIdAttributeSetter(v8Value, info);
4077 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4181 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4078 } 4182 }
4079 4183
4080 static void reflectedNameAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu e>& info) 4184 static void reflectedNameAttributeGetter(const v8::FunctionCallbackInfo<v8::Valu e>& info)
4081 { 4185 {
4082 v8::Local<v8::Object> holder = info.Holder(); 4186 v8::Local<v8::Object> holder = info.Holder();
4083 TestObject* impl = V8TestObject::toImpl(holder); 4187 TestObject* impl = V8TestObject::toImpl(holder);
4084 v8SetReturnValueString(info, impl->getNameAttribute(), info.GetIsolate()); 4188 v8SetReturnValueString(info, impl->getNameAttribute(), info.GetIsolate());
4085 } 4189 }
4086 4190
4087 static void reflectedNameAttributeGetterCallback(v8::Local<v8::Name>, const v8:: PropertyCallbackInfo<v8::Value>& info) 4191 static void reflectedNameAttributeGetterCallback(const v8::FunctionCallbackInfo< v8::Value>& info)
4088 { 4192 {
4089 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4193 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4090 TestObjectV8Internal::reflectedNameAttributeGetter(info); 4194 TestObjectV8Internal::reflectedNameAttributeGetter(info);
4091 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4195 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4092 } 4196 }
4093 4197
4094 static void reflectedNameAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info) 4198 static void reflectedNameAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :FunctionCallbackInfo<v8::Value>& info)
4095 { 4199 {
4096 v8::Local<v8::Object> holder = info.Holder(); 4200 v8::Local<v8::Object> holder = info.Holder();
4097 TestObject* impl = V8TestObject::toImpl(holder); 4201 TestObject* impl = V8TestObject::toImpl(holder);
4098 V8StringResource<> cppValue = v8Value; 4202 V8StringResource<> cppValue = v8Value;
4099 if (!cppValue.prepare()) 4203 if (!cppValue.prepare())
4100 return; 4204 return;
4101 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4205 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4102 impl->setAttribute(HTMLNames::nameAttr, cppValue); 4206 impl->setAttribute(HTMLNames::nameAttr, cppValue);
4103 } 4207 }
4104 4208
4105 static void reflectedNameAttributeSetterCallback(v8::Local<v8::Name>, v8::Local< v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4209 static void reflectedNameAttributeSetterCallback(const v8::FunctionCallbackInfo< v8::Value>& info)
4106 { 4210 {
4211 v8::Local<v8::Value> v8Value = info[0];
4107 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4212 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4108 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4213 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4109 TestObjectV8Internal::reflectedNameAttributeSetter(v8Value, info); 4214 TestObjectV8Internal::reflectedNameAttributeSetter(v8Value, info);
4110 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4215 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4111 } 4216 }
4112 4217
4113 static void reflectedClassAttributeGetter(const v8::PropertyCallbackInfo<v8::Val ue>& info) 4218 static void reflectedClassAttributeGetter(const v8::FunctionCallbackInfo<v8::Val ue>& info)
4114 { 4219 {
4115 v8::Local<v8::Object> holder = info.Holder(); 4220 v8::Local<v8::Object> holder = info.Holder();
4116 TestObject* impl = V8TestObject::toImpl(holder); 4221 TestObject* impl = V8TestObject::toImpl(holder);
4117 v8SetReturnValueString(info, impl->getClassAttribute(), info.GetIsolate()); 4222 v8SetReturnValueString(info, impl->getClassAttribute(), info.GetIsolate());
4118 } 4223 }
4119 4224
4120 static void reflectedClassAttributeGetterCallback(v8::Local<v8::Name>, const v8: :PropertyCallbackInfo<v8::Value>& info) 4225 static void reflectedClassAttributeGetterCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
4121 { 4226 {
4122 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4227 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4123 TestObjectV8Internal::reflectedClassAttributeGetter(info); 4228 TestObjectV8Internal::reflectedClassAttributeGetter(info);
4124 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4229 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4125 } 4230 }
4126 4231
4127 static void reflectedClassAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::PropertyCallbackInfo<void>& info) 4232 static void reflectedClassAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::FunctionCallbackInfo<v8::Value>& info)
4128 { 4233 {
4129 v8::Local<v8::Object> holder = info.Holder(); 4234 v8::Local<v8::Object> holder = info.Holder();
4130 TestObject* impl = V8TestObject::toImpl(holder); 4235 TestObject* impl = V8TestObject::toImpl(holder);
4131 V8StringResource<> cppValue = v8Value; 4236 V8StringResource<> cppValue = v8Value;
4132 if (!cppValue.prepare()) 4237 if (!cppValue.prepare())
4133 return; 4238 return;
4134 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4239 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4135 impl->setAttribute(HTMLNames::classAttr, cppValue); 4240 impl->setAttribute(HTMLNames::classAttr, cppValue);
4136 } 4241 }
4137 4242
4138 static void reflectedClassAttributeSetterCallback(v8::Local<v8::Name>, v8::Local <v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4243 static void reflectedClassAttributeSetterCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
4139 { 4244 {
4245 v8::Local<v8::Value> v8Value = info[0];
4140 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4246 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4141 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4247 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4142 TestObjectV8Internal::reflectedClassAttributeSetter(v8Value, info); 4248 TestObjectV8Internal::reflectedClassAttributeSetter(v8Value, info);
4143 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4249 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4144 } 4250 }
4145 4251
4146 static void limitedToOnlyOneAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info) 4252 static void limitedToOnlyOneAttributeAttributeGetter(const v8::FunctionCallbackI nfo<v8::Value>& info)
4147 { 4253 {
4148 v8::Local<v8::Object> holder = info.Holder(); 4254 v8::Local<v8::Object> holder = info.Holder();
4149 TestObject* impl = V8TestObject::toImpl(holder); 4255 TestObject* impl = V8TestObject::toImpl(holder);
4150 String cppValue(impl->fastGetAttribute(HTMLNames::limitedtoonlyoneattributeA ttr)); 4256 String cppValue(impl->fastGetAttribute(HTMLNames::limitedtoonlyoneattributeA ttr));
4151 if (cppValue.isEmpty()) { 4257 if (cppValue.isEmpty()) {
4152 ; 4258 ;
4153 } else if (equalIgnoringCase(cppValue, "unique")) { 4259 } else if (equalIgnoringCase(cppValue, "unique")) {
4154 cppValue = "unique"; 4260 cppValue = "unique";
4155 } else { 4261 } else {
4156 cppValue = ""; 4262 cppValue = "";
4157 } 4263 }
4158 v8SetReturnValueString(info, cppValue, info.GetIsolate()); 4264 v8SetReturnValueString(info, cppValue, info.GetIsolate());
4159 } 4265 }
4160 4266
4161 static void limitedToOnlyOneAttributeAttributeGetterCallback(v8::Local<v8::Name> , const v8::PropertyCallbackInfo<v8::Value>& info) 4267 static void limitedToOnlyOneAttributeAttributeGetterCallback(const v8::FunctionC allbackInfo<v8::Value>& info)
4162 { 4268 {
4163 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4269 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4164 TestObjectV8Internal::limitedToOnlyOneAttributeAttributeGetter(info); 4270 TestObjectV8Internal::limitedToOnlyOneAttributeAttributeGetter(info);
4165 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4271 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4166 } 4272 }
4167 4273
4168 static void limitedToOnlyOneAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::PropertyCallbackInfo<void>& info) 4274 static void limitedToOnlyOneAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::FunctionCallbackInfo<v8::Value>& info)
4169 { 4275 {
4170 v8::Local<v8::Object> holder = info.Holder(); 4276 v8::Local<v8::Object> holder = info.Holder();
4171 TestObject* impl = V8TestObject::toImpl(holder); 4277 TestObject* impl = V8TestObject::toImpl(holder);
4172 V8StringResource<> cppValue = v8Value; 4278 V8StringResource<> cppValue = v8Value;
4173 if (!cppValue.prepare()) 4279 if (!cppValue.prepare())
4174 return; 4280 return;
4175 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4281 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4176 impl->setAttribute(HTMLNames::limitedtoonlyoneattributeAttr, cppValue); 4282 impl->setAttribute(HTMLNames::limitedtoonlyoneattributeAttr, cppValue);
4177 } 4283 }
4178 4284
4179 static void limitedToOnlyOneAttributeAttributeSetterCallback(v8::Local<v8::Name> , v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4285 static void limitedToOnlyOneAttributeAttributeSetterCallback(const v8::FunctionC allbackInfo<v8::Value>& info)
4180 { 4286 {
4287 v8::Local<v8::Value> v8Value = info[0];
4181 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4288 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4182 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4289 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4183 TestObjectV8Internal::limitedToOnlyOneAttributeAttributeSetter(v8Value, info ); 4290 TestObjectV8Internal::limitedToOnlyOneAttributeAttributeSetter(v8Value, info );
4184 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4291 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4185 } 4292 }
4186 4293
4187 static void limitedToOnlyAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info) 4294 static void limitedToOnlyAttributeAttributeGetter(const v8::FunctionCallbackInfo <v8::Value>& info)
4188 { 4295 {
4189 v8::Local<v8::Object> holder = info.Holder(); 4296 v8::Local<v8::Object> holder = info.Holder();
4190 TestObject* impl = V8TestObject::toImpl(holder); 4297 TestObject* impl = V8TestObject::toImpl(holder);
4191 String cppValue(impl->fastGetAttribute(HTMLNames::limitedtoonlyattributeAttr )); 4298 String cppValue(impl->fastGetAttribute(HTMLNames::limitedtoonlyattributeAttr ));
4192 if (cppValue.isEmpty()) { 4299 if (cppValue.isEmpty()) {
4193 ; 4300 ;
4194 } else if (equalIgnoringCase(cppValue, "Per")) { 4301 } else if (equalIgnoringCase(cppValue, "Per")) {
4195 cppValue = "Per"; 4302 cppValue = "Per";
4196 } else if (equalIgnoringCase(cppValue, "Paal")) { 4303 } else if (equalIgnoringCase(cppValue, "Paal")) {
4197 cppValue = "Paal"; 4304 cppValue = "Paal";
4198 } else if (equalIgnoringCase(cppValue, "Espen")) { 4305 } else if (equalIgnoringCase(cppValue, "Espen")) {
4199 cppValue = "Espen"; 4306 cppValue = "Espen";
4200 } else { 4307 } else {
4201 cppValue = ""; 4308 cppValue = "";
4202 } 4309 }
4203 v8SetReturnValueString(info, cppValue, info.GetIsolate()); 4310 v8SetReturnValueString(info, cppValue, info.GetIsolate());
4204 } 4311 }
4205 4312
4206 static void limitedToOnlyAttributeAttributeGetterCallback(v8::Local<v8::Name>, c onst v8::PropertyCallbackInfo<v8::Value>& info) 4313 static void limitedToOnlyAttributeAttributeGetterCallback(const v8::FunctionCall backInfo<v8::Value>& info)
4207 { 4314 {
4208 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4315 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4209 TestObjectV8Internal::limitedToOnlyAttributeAttributeGetter(info); 4316 TestObjectV8Internal::limitedToOnlyAttributeAttributeGetter(info);
4210 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4317 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4211 } 4318 }
4212 4319
4213 static void limitedToOnlyAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4320 static void limitedToOnlyAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
4214 { 4321 {
4215 v8::Local<v8::Object> holder = info.Holder(); 4322 v8::Local<v8::Object> holder = info.Holder();
4216 TestObject* impl = V8TestObject::toImpl(holder); 4323 TestObject* impl = V8TestObject::toImpl(holder);
4217 V8StringResource<> cppValue = v8Value; 4324 V8StringResource<> cppValue = v8Value;
4218 if (!cppValue.prepare()) 4325 if (!cppValue.prepare())
4219 return; 4326 return;
4220 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4327 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4221 impl->setAttribute(HTMLNames::limitedtoonlyattributeAttr, cppValue); 4328 impl->setAttribute(HTMLNames::limitedtoonlyattributeAttr, cppValue);
4222 } 4329 }
4223 4330
4224 static void limitedToOnlyAttributeAttributeSetterCallback(v8::Local<v8::Name>, v 8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4331 static void limitedToOnlyAttributeAttributeSetterCallback(const v8::FunctionCall backInfo<v8::Value>& info)
4225 { 4332 {
4333 v8::Local<v8::Value> v8Value = info[0];
4226 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4334 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4227 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4335 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4228 TestObjectV8Internal::limitedToOnlyAttributeAttributeSetter(v8Value, info); 4336 TestObjectV8Internal::limitedToOnlyAttributeAttributeSetter(v8Value, info);
4229 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4337 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4230 } 4338 }
4231 4339
4232 static void limitedToOnlyOtherAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info) 4340 static void limitedToOnlyOtherAttributeAttributeGetter(const v8::FunctionCallbac kInfo<v8::Value>& info)
4233 { 4341 {
4234 v8::Local<v8::Object> holder = info.Holder(); 4342 v8::Local<v8::Object> holder = info.Holder();
4235 TestObject* impl = V8TestObject::toImpl(holder); 4343 TestObject* impl = V8TestObject::toImpl(holder);
4236 String cppValue(impl->fastGetAttribute(HTMLNames::otherAttr)); 4344 String cppValue(impl->fastGetAttribute(HTMLNames::otherAttr));
4237 if (cppValue.isEmpty()) { 4345 if (cppValue.isEmpty()) {
4238 ; 4346 ;
4239 } else if (equalIgnoringCase(cppValue, "Value1")) { 4347 } else if (equalIgnoringCase(cppValue, "Value1")) {
4240 cppValue = "Value1"; 4348 cppValue = "Value1";
4241 } else if (equalIgnoringCase(cppValue, "Value2")) { 4349 } else if (equalIgnoringCase(cppValue, "Value2")) {
4242 cppValue = "Value2"; 4350 cppValue = "Value2";
4243 } else { 4351 } else {
4244 cppValue = ""; 4352 cppValue = "";
4245 } 4353 }
4246 v8SetReturnValueString(info, cppValue, info.GetIsolate()); 4354 v8SetReturnValueString(info, cppValue, info.GetIsolate());
4247 } 4355 }
4248 4356
4249 static void limitedToOnlyOtherAttributeAttributeGetterCallback(v8::Local<v8::Nam e>, const v8::PropertyCallbackInfo<v8::Value>& info) 4357 static void limitedToOnlyOtherAttributeAttributeGetterCallback(const v8::Functio nCallbackInfo<v8::Value>& info)
4250 { 4358 {
4251 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4359 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4252 TestObjectV8Internal::limitedToOnlyOtherAttributeAttributeGetter(info); 4360 TestObjectV8Internal::limitedToOnlyOtherAttributeAttributeGetter(info);
4253 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4361 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4254 } 4362 }
4255 4363
4256 static void limitedToOnlyOtherAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::PropertyCallbackInfo<void>& info) 4364 static void limitedToOnlyOtherAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::FunctionCallbackInfo<v8::Value>& info)
4257 { 4365 {
4258 v8::Local<v8::Object> holder = info.Holder(); 4366 v8::Local<v8::Object> holder = info.Holder();
4259 TestObject* impl = V8TestObject::toImpl(holder); 4367 TestObject* impl = V8TestObject::toImpl(holder);
4260 V8StringResource<> cppValue = v8Value; 4368 V8StringResource<> cppValue = v8Value;
4261 if (!cppValue.prepare()) 4369 if (!cppValue.prepare())
4262 return; 4370 return;
4263 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4371 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4264 impl->setAttribute(HTMLNames::otherAttr, cppValue); 4372 impl->setAttribute(HTMLNames::otherAttr, cppValue);
4265 } 4373 }
4266 4374
4267 static void limitedToOnlyOtherAttributeAttributeSetterCallback(v8::Local<v8::Nam e>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4375 static void limitedToOnlyOtherAttributeAttributeSetterCallback(const v8::Functio nCallbackInfo<v8::Value>& info)
4268 { 4376 {
4377 v8::Local<v8::Value> v8Value = info[0];
4269 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4378 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4270 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4379 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4271 TestObjectV8Internal::limitedToOnlyOtherAttributeAttributeSetter(v8Value, in fo); 4380 TestObjectV8Internal::limitedToOnlyOtherAttributeAttributeSetter(v8Value, in fo);
4272 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4381 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4273 } 4382 }
4274 4383
4275 static void limitedWithMissingDefaultAttributeAttributeGetter(const v8::Property CallbackInfo<v8::Value>& info) 4384 static void limitedWithMissingDefaultAttributeAttributeGetter(const v8::Function CallbackInfo<v8::Value>& info)
4276 { 4385 {
4277 v8::Local<v8::Object> holder = info.Holder(); 4386 v8::Local<v8::Object> holder = info.Holder();
4278 TestObject* impl = V8TestObject::toImpl(holder); 4387 TestObject* impl = V8TestObject::toImpl(holder);
4279 String cppValue(impl->fastGetAttribute(HTMLNames::limitedwithmissingdefaulta ttributeAttr)); 4388 String cppValue(impl->fastGetAttribute(HTMLNames::limitedwithmissingdefaulta ttributeAttr));
4280 if (cppValue.isEmpty()) { 4389 if (cppValue.isEmpty()) {
4281 cppValue = "rsa"; 4390 cppValue = "rsa";
4282 } else if (equalIgnoringCase(cppValue, "rsa")) { 4391 } else if (equalIgnoringCase(cppValue, "rsa")) {
4283 cppValue = "rsa"; 4392 cppValue = "rsa";
4284 } else if (equalIgnoringCase(cppValue, "dsa")) { 4393 } else if (equalIgnoringCase(cppValue, "dsa")) {
4285 cppValue = "dsa"; 4394 cppValue = "dsa";
4286 } else { 4395 } else {
4287 cppValue = ""; 4396 cppValue = "";
4288 } 4397 }
4289 v8SetReturnValueString(info, cppValue, info.GetIsolate()); 4398 v8SetReturnValueString(info, cppValue, info.GetIsolate());
4290 } 4399 }
4291 4400
4292 static void limitedWithMissingDefaultAttributeAttributeGetterCallback(v8::Local< v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 4401 static void limitedWithMissingDefaultAttributeAttributeGetterCallback(const v8:: FunctionCallbackInfo<v8::Value>& info)
4293 { 4402 {
4294 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4403 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4295 TestObjectV8Internal::limitedWithMissingDefaultAttributeAttributeGetter(info ); 4404 TestObjectV8Internal::limitedWithMissingDefaultAttributeAttributeGetter(info );
4296 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4405 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4297 } 4406 }
4298 4407
4299 static void limitedWithMissingDefaultAttributeAttributeSetter(v8::Local<v8::Valu e> v8Value, const v8::PropertyCallbackInfo<void>& info) 4408 static void limitedWithMissingDefaultAttributeAttributeSetter(v8::Local<v8::Valu e> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
4300 { 4409 {
4301 v8::Local<v8::Object> holder = info.Holder(); 4410 v8::Local<v8::Object> holder = info.Holder();
4302 TestObject* impl = V8TestObject::toImpl(holder); 4411 TestObject* impl = V8TestObject::toImpl(holder);
4303 V8StringResource<> cppValue = v8Value; 4412 V8StringResource<> cppValue = v8Value;
4304 if (!cppValue.prepare()) 4413 if (!cppValue.prepare())
4305 return; 4414 return;
4306 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4415 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4307 impl->setAttribute(HTMLNames::limitedwithmissingdefaultattributeAttr, cppVal ue); 4416 impl->setAttribute(HTMLNames::limitedwithmissingdefaultattributeAttr, cppVal ue);
4308 } 4417 }
4309 4418
4310 static void limitedWithMissingDefaultAttributeAttributeSetterCallback(v8::Local< v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& i nfo) 4419 static void limitedWithMissingDefaultAttributeAttributeSetterCallback(const v8:: FunctionCallbackInfo<v8::Value>& info)
4311 { 4420 {
4421 v8::Local<v8::Value> v8Value = info[0];
4312 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4422 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4313 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4423 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4314 TestObjectV8Internal::limitedWithMissingDefaultAttributeAttributeSetter(v8Va lue, info); 4424 TestObjectV8Internal::limitedWithMissingDefaultAttributeAttributeSetter(v8Va lue, info);
4315 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4425 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4316 } 4426 }
4317 4427
4318 static void limitedWithInvalidMissingDefaultAttributeAttributeGetter(const v8::P ropertyCallbackInfo<v8::Value>& info) 4428 static void limitedWithInvalidMissingDefaultAttributeAttributeGetter(const v8::F unctionCallbackInfo<v8::Value>& info)
4319 { 4429 {
4320 v8::Local<v8::Object> holder = info.Holder(); 4430 v8::Local<v8::Object> holder = info.Holder();
4321 TestObject* impl = V8TestObject::toImpl(holder); 4431 TestObject* impl = V8TestObject::toImpl(holder);
4322 String cppValue(impl->fastGetAttribute(HTMLNames::limitedwithinvalidmissingd efaultattributeAttr)); 4432 String cppValue(impl->fastGetAttribute(HTMLNames::limitedwithinvalidmissingd efaultattributeAttr));
4323 if (cppValue.isEmpty()) { 4433 if (cppValue.isEmpty()) {
4324 cppValue = "auto"; 4434 cppValue = "auto";
4325 } else if (equalIgnoringCase(cppValue, "ltr")) { 4435 } else if (equalIgnoringCase(cppValue, "ltr")) {
4326 cppValue = "ltr"; 4436 cppValue = "ltr";
4327 } else if (equalIgnoringCase(cppValue, "rtl")) { 4437 } else if (equalIgnoringCase(cppValue, "rtl")) {
4328 cppValue = "rtl"; 4438 cppValue = "rtl";
4329 } else if (equalIgnoringCase(cppValue, "auto")) { 4439 } else if (equalIgnoringCase(cppValue, "auto")) {
4330 cppValue = "auto"; 4440 cppValue = "auto";
4331 } else { 4441 } else {
4332 cppValue = "ltr"; 4442 cppValue = "ltr";
4333 } 4443 }
4334 v8SetReturnValueString(info, cppValue, info.GetIsolate()); 4444 v8SetReturnValueString(info, cppValue, info.GetIsolate());
4335 } 4445 }
4336 4446
4337 static void limitedWithInvalidMissingDefaultAttributeAttributeGetterCallback(v8: :Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 4447 static void limitedWithInvalidMissingDefaultAttributeAttributeGetterCallback(con st v8::FunctionCallbackInfo<v8::Value>& info)
4338 { 4448 {
4339 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4449 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4340 TestObjectV8Internal::limitedWithInvalidMissingDefaultAttributeAttributeGett er(info); 4450 TestObjectV8Internal::limitedWithInvalidMissingDefaultAttributeAttributeGett er(info);
4341 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4451 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4342 } 4452 }
4343 4453
4344 static void limitedWithInvalidMissingDefaultAttributeAttributeSetter(v8::Local<v 8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4454 static void limitedWithInvalidMissingDefaultAttributeAttributeSetter(v8::Local<v 8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
4345 { 4455 {
4346 v8::Local<v8::Object> holder = info.Holder(); 4456 v8::Local<v8::Object> holder = info.Holder();
4347 TestObject* impl = V8TestObject::toImpl(holder); 4457 TestObject* impl = V8TestObject::toImpl(holder);
4348 V8StringResource<> cppValue = v8Value; 4458 V8StringResource<> cppValue = v8Value;
4349 if (!cppValue.prepare()) 4459 if (!cppValue.prepare())
4350 return; 4460 return;
4351 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4461 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4352 impl->setAttribute(HTMLNames::limitedwithinvalidmissingdefaultattributeAttr, cppValue); 4462 impl->setAttribute(HTMLNames::limitedwithinvalidmissingdefaultattributeAttr, cppValue);
4353 } 4463 }
4354 4464
4355 static void limitedWithInvalidMissingDefaultAttributeAttributeSetterCallback(v8: :Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<v oid>& info) 4465 static void limitedWithInvalidMissingDefaultAttributeAttributeSetterCallback(con st v8::FunctionCallbackInfo<v8::Value>& info)
4356 { 4466 {
4467 v8::Local<v8::Value> v8Value = info[0];
4357 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4468 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4358 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4469 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4359 TestObjectV8Internal::limitedWithInvalidMissingDefaultAttributeAttributeSett er(v8Value, info); 4470 TestObjectV8Internal::limitedWithInvalidMissingDefaultAttributeAttributeSett er(v8Value, info);
4360 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4471 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4361 } 4472 }
4362 4473
4363 static void corsSettingAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info) 4474 static void corsSettingAttributeAttributeGetter(const v8::FunctionCallbackInfo<v 8::Value>& info)
4364 { 4475 {
4365 v8::Local<v8::Object> holder = info.Holder(); 4476 v8::Local<v8::Object> holder = info.Holder();
4366 TestObject* impl = V8TestObject::toImpl(holder); 4477 TestObject* impl = V8TestObject::toImpl(holder);
4367 String cppValue(impl->fastGetAttribute(HTMLNames::corssettingattributeAttr)) ; 4478 String cppValue(impl->fastGetAttribute(HTMLNames::corssettingattributeAttr)) ;
4368 if (cppValue.isNull()) { 4479 if (cppValue.isNull()) {
4369 ; 4480 ;
4370 } else if (cppValue.isEmpty()) { 4481 } else if (cppValue.isEmpty()) {
4371 cppValue = "anonymous"; 4482 cppValue = "anonymous";
4372 } else if (equalIgnoringCase(cppValue, "anonymous")) { 4483 } else if (equalIgnoringCase(cppValue, "anonymous")) {
4373 cppValue = "anonymous"; 4484 cppValue = "anonymous";
4374 } else if (equalIgnoringCase(cppValue, "use-credentials")) { 4485 } else if (equalIgnoringCase(cppValue, "use-credentials")) {
4375 cppValue = "use-credentials"; 4486 cppValue = "use-credentials";
4376 } else { 4487 } else {
4377 cppValue = "anonymous"; 4488 cppValue = "anonymous";
4378 } 4489 }
4379 v8SetReturnValueString(info, cppValue, info.GetIsolate()); 4490 v8SetReturnValueString(info, cppValue, info.GetIsolate());
4380 } 4491 }
4381 4492
4382 static void corsSettingAttributeAttributeGetterCallback(v8::Local<v8::Name>, con st v8::PropertyCallbackInfo<v8::Value>& info) 4493 static void corsSettingAttributeAttributeGetterCallback(const v8::FunctionCallba ckInfo<v8::Value>& info)
4383 { 4494 {
4384 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4495 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4385 TestObjectV8Internal::corsSettingAttributeAttributeGetter(info); 4496 TestObjectV8Internal::corsSettingAttributeAttributeGetter(info);
4386 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4497 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4387 } 4498 }
4388 4499
4389 static void limitedWithEmptyMissingInvalidAttributeAttributeGetter(const v8::Pro pertyCallbackInfo<v8::Value>& info) 4500 static void limitedWithEmptyMissingInvalidAttributeAttributeGetter(const v8::Fun ctionCallbackInfo<v8::Value>& info)
4390 { 4501 {
4391 v8::Local<v8::Object> holder = info.Holder(); 4502 v8::Local<v8::Object> holder = info.Holder();
4392 TestObject* impl = V8TestObject::toImpl(holder); 4503 TestObject* impl = V8TestObject::toImpl(holder);
4393 String cppValue(impl->fastGetAttribute(HTMLNames::limitedwithemptymissinginv alidattributeAttr)); 4504 String cppValue(impl->fastGetAttribute(HTMLNames::limitedwithemptymissinginv alidattributeAttr));
4394 if (cppValue.isNull()) { 4505 if (cppValue.isNull()) {
4395 cppValue = "missing"; 4506 cppValue = "missing";
4396 } else if (cppValue.isEmpty()) { 4507 } else if (cppValue.isEmpty()) {
4397 cppValue = "empty"; 4508 cppValue = "empty";
4398 } else if (equalIgnoringCase(cppValue, "empty")) { 4509 } else if (equalIgnoringCase(cppValue, "empty")) {
4399 cppValue = "empty"; 4510 cppValue = "empty";
4400 } else if (equalIgnoringCase(cppValue, "missing")) { 4511 } else if (equalIgnoringCase(cppValue, "missing")) {
4401 cppValue = "missing"; 4512 cppValue = "missing";
4402 } else if (equalIgnoringCase(cppValue, "invalid")) { 4513 } else if (equalIgnoringCase(cppValue, "invalid")) {
4403 cppValue = "invalid"; 4514 cppValue = "invalid";
4404 } else if (equalIgnoringCase(cppValue, "a-normal")) { 4515 } else if (equalIgnoringCase(cppValue, "a-normal")) {
4405 cppValue = "a-normal"; 4516 cppValue = "a-normal";
4406 } else { 4517 } else {
4407 cppValue = "invalid"; 4518 cppValue = "invalid";
4408 } 4519 }
4409 v8SetReturnValueString(info, cppValue, info.GetIsolate()); 4520 v8SetReturnValueString(info, cppValue, info.GetIsolate());
4410 } 4521 }
4411 4522
4412 static void limitedWithEmptyMissingInvalidAttributeAttributeGetterCallback(v8::L ocal<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 4523 static void limitedWithEmptyMissingInvalidAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
4413 { 4524 {
4414 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4525 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4415 TestObjectV8Internal::limitedWithEmptyMissingInvalidAttributeAttributeGetter (info); 4526 TestObjectV8Internal::limitedWithEmptyMissingInvalidAttributeAttributeGetter (info);
4416 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4527 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4417 } 4528 }
4418 4529
4419 static void replaceableReadonlyLongAttributeAttributeGetter(const v8::PropertyCa llbackInfo<v8::Value>& info) 4530 static void replaceableReadonlyLongAttributeAttributeGetter(const v8::FunctionCa llbackInfo<v8::Value>& info)
4420 { 4531 {
4421 v8::Local<v8::Object> holder = info.Holder(); 4532 v8::Local<v8::Object> holder = info.Holder();
4422 TestObject* impl = V8TestObject::toImpl(holder); 4533 TestObject* impl = V8TestObject::toImpl(holder);
4423 v8SetReturnValueInt(info, impl->replaceableReadonlyLongAttribute()); 4534 v8SetReturnValueInt(info, impl->replaceableReadonlyLongAttribute());
4424 } 4535 }
4425 4536
4426 static void replaceableReadonlyLongAttributeAttributeGetterCallback(v8::Local<v8 ::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 4537 static void replaceableReadonlyLongAttributeAttributeGetterCallback(const v8::Fu nctionCallbackInfo<v8::Value>& info)
4427 { 4538 {
4428 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4539 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4429 TestObjectV8Internal::replaceableReadonlyLongAttributeAttributeGetter(info); 4540 TestObjectV8Internal::replaceableReadonlyLongAttributeAttributeGetter(info);
4430 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4541 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4431 } 4542 }
4432 4543
4433 static void replaceableReadonlyLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4544 static void replaceableReadonlyLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
4434 { 4545 {
4435 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "repl aceableReadonlyLongAttribute"); 4546 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "repl aceableReadonlyLongAttribute");
4436 TestObjectForceSetAttributeOnThis(propertyName, v8Value, info); 4547 TestObjectForceSetAttributeOnThis(propertyName, v8Value, info);
4437 } 4548 }
4438 4549
4439 static void replaceableReadonlyLongAttributeAttributeSetterCallback(v8::Local<v8 ::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& inf o) 4550 static void replaceableReadonlyLongAttributeAttributeSetterCallback(const v8::Fu nctionCallbackInfo<v8::Value>& info)
4440 { 4551 {
4552 v8::Local<v8::Value> v8Value = info[0];
4441 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4553 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4442 TestObjectV8Internal::replaceableReadonlyLongAttributeAttributeSetter(v8Valu e, info); 4554 TestObjectV8Internal::replaceableReadonlyLongAttributeAttributeSetter(v8Valu e, info);
4443 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4555 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4444 } 4556 }
4445 4557
4446 static void replaceableReadonlyLongAccessorAttributeGetter(const v8::FunctionCal lbackInfo<v8::Value>& info) 4558 static void replaceableReadonlyLongAccessorAttributeGetter(const v8::FunctionCal lbackInfo<v8::Value>& info)
4447 { 4559 {
4448 v8::Local<v8::Object> holder = info.Holder(); 4560 v8::Local<v8::Object> holder = info.Holder();
4449 TestObject* impl = V8TestObject::toImpl(holder); 4561 TestObject* impl = V8TestObject::toImpl(holder);
4450 v8SetReturnValueInt(info, impl->replaceableReadonlyLongAccessor()); 4562 v8SetReturnValueInt(info, impl->replaceableReadonlyLongAccessor());
(...skipping 13 matching lines...) Expand all
4464 } 4576 }
4465 4577
4466 static void replaceableReadonlyLongAccessorAttributeSetterCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info) 4578 static void replaceableReadonlyLongAccessorAttributeSetterCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info)
4467 { 4579 {
4468 v8::Local<v8::Value> v8Value = info[0]; 4580 v8::Local<v8::Value> v8Value = info[0];
4469 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4581 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4470 TestObjectV8Internal::replaceableReadonlyLongAccessorAttributeSetter(v8Value , info); 4582 TestObjectV8Internal::replaceableReadonlyLongAccessorAttributeSetter(v8Value , info);
4471 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4583 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4472 } 4584 }
4473 4585
4474 static void locationPutForwardsAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info) 4586 static void locationPutForwardsAttributeGetter(const v8::FunctionCallbackInfo<v8 ::Value>& info)
4475 { 4587 {
4476 v8::Local<v8::Object> holder = info.Holder(); 4588 v8::Local<v8::Object> holder = info.Holder();
4477 TestObject* impl = V8TestObject::toImpl(holder); 4589 TestObject* impl = V8TestObject::toImpl(holder);
4478 v8SetReturnValueFast(info, WTF::getPtr(impl->locationPutForwards()), impl); 4590 v8SetReturnValueFast(info, WTF::getPtr(impl->locationPutForwards()), impl);
4479 } 4591 }
4480 4592
4481 static void locationPutForwardsAttributeGetterCallback(v8::Local<v8::Name>, cons t v8::PropertyCallbackInfo<v8::Value>& info) 4593 static void locationPutForwardsAttributeGetterCallback(const v8::FunctionCallbac kInfo<v8::Value>& info)
4482 { 4594 {
4483 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4595 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4484 TestObjectV8Internal::locationPutForwardsAttributeGetter(info); 4596 TestObjectV8Internal::locationPutForwardsAttributeGetter(info);
4485 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4597 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4486 } 4598 }
4487 4599
4488 static void locationPutForwardsAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info) 4600 static void locationPutForwardsAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::FunctionCallbackInfo<v8::Value>& info)
4489 { 4601 {
4490 v8::Local<v8::Object> holder = info.Holder(); 4602 v8::Local<v8::Object> holder = info.Holder();
4491 TestObject* proxyImpl = V8TestObject::toImpl(holder); 4603 TestObject* proxyImpl = V8TestObject::toImpl(holder);
4492 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationPutForwar ds()); 4604 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationPutForwar ds());
4493 if (!impl) 4605 if (!impl)
4494 return; 4606 return;
4495 V8StringResource<> cppValue = v8Value; 4607 V8StringResource<> cppValue = v8Value;
4496 if (!cppValue.prepare()) 4608 if (!cppValue.prepare())
4497 return; 4609 return;
4498 impl->setHref(cppValue); 4610 impl->setHref(cppValue);
4499 } 4611 }
4500 4612
4501 static void locationPutForwardsAttributeSetterCallback(v8::Local<v8::Name>, v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4613 static void locationPutForwardsAttributeSetterCallback(const v8::FunctionCallbac kInfo<v8::Value>& info)
4502 { 4614 {
4615 v8::Local<v8::Value> v8Value = info[0];
4503 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4616 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4504 TestObjectV8Internal::locationPutForwardsAttributeSetter(v8Value, info); 4617 TestObjectV8Internal::locationPutForwardsAttributeSetter(v8Value, info);
4505 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4618 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4506 } 4619 }
4507 4620
4508 static void runtimeEnabledLongAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info) 4621 static void runtimeEnabledLongAttributeAttributeGetter(const v8::FunctionCallbac kInfo<v8::Value>& info)
4509 { 4622 {
4510 v8::Local<v8::Object> holder = info.Holder(); 4623 v8::Local<v8::Object> holder = info.Holder();
4511 TestObject* impl = V8TestObject::toImpl(holder); 4624 TestObject* impl = V8TestObject::toImpl(holder);
4512 v8SetReturnValueInt(info, impl->runtimeEnabledLongAttribute()); 4625 v8SetReturnValueInt(info, impl->runtimeEnabledLongAttribute());
4513 } 4626 }
4514 4627
4515 static void runtimeEnabledLongAttributeAttributeGetterCallback(v8::Local<v8::Nam e>, const v8::PropertyCallbackInfo<v8::Value>& info) 4628 static void runtimeEnabledLongAttributeAttributeGetterCallback(const v8::Functio nCallbackInfo<v8::Value>& info)
4516 { 4629 {
4517 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4630 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4518 TestObjectV8Internal::runtimeEnabledLongAttributeAttributeGetter(info); 4631 TestObjectV8Internal::runtimeEnabledLongAttributeAttributeGetter(info);
4519 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4632 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4520 } 4633 }
4521 4634
4522 static void runtimeEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::PropertyCallbackInfo<void>& info) 4635 static void runtimeEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::FunctionCallbackInfo<v8::Value>& info)
4523 { 4636 {
4524 v8::Local<v8::Object> holder = info.Holder(); 4637 v8::Local<v8::Object> holder = info.Holder();
4525 ExceptionState exceptionState(ExceptionState::SetterContext, "runtimeEnabled LongAttribute", "TestObject", holder, info.GetIsolate()); 4638 ExceptionState exceptionState(ExceptionState::SetterContext, "runtimeEnabled LongAttribute", "TestObject", holder, info.GetIsolate());
4526 TestObject* impl = V8TestObject::toImpl(holder); 4639 TestObject* impl = V8TestObject::toImpl(holder);
4527 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 4640 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
4528 if (exceptionState.throwIfNeeded()) 4641 if (exceptionState.throwIfNeeded())
4529 return; 4642 return;
4530 impl->setRuntimeEnabledLongAttribute(cppValue); 4643 impl->setRuntimeEnabledLongAttribute(cppValue);
4531 } 4644 }
4532 4645
4533 static void runtimeEnabledLongAttributeAttributeSetterCallback(v8::Local<v8::Nam e>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4646 static void runtimeEnabledLongAttributeAttributeSetterCallback(const v8::Functio nCallbackInfo<v8::Value>& info)
4534 { 4647 {
4648 v8::Local<v8::Value> v8Value = info[0];
4535 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4649 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4536 TestObjectV8Internal::runtimeEnabledLongAttributeAttributeSetter(v8Value, in fo); 4650 TestObjectV8Internal::runtimeEnabledLongAttributeAttributeSetter(v8Value, in fo);
4537 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4651 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4538 } 4652 }
4539 4653
4540 static void perContextEnabledRuntimeEnabledLongAttributeAttributeGetter(const v8 ::PropertyCallbackInfo<v8::Value>& info) 4654 static void perContextEnabledRuntimeEnabledLongAttributeAttributeGetter(const v8 ::FunctionCallbackInfo<v8::Value>& info)
4541 { 4655 {
4542 v8::Local<v8::Object> holder = info.Holder(); 4656 v8::Local<v8::Object> holder = info.Holder();
4543 TestObject* impl = V8TestObject::toImpl(holder); 4657 TestObject* impl = V8TestObject::toImpl(holder);
4544 v8SetReturnValueInt(info, impl->perContextEnabledRuntimeEnabledLongAttribute ()); 4658 v8SetReturnValueInt(info, impl->perContextEnabledRuntimeEnabledLongAttribute ());
4545 } 4659 }
4546 4660
4547 static void perContextEnabledRuntimeEnabledLongAttributeAttributeGetterCallback( v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 4661 static void perContextEnabledRuntimeEnabledLongAttributeAttributeGetterCallback( const v8::FunctionCallbackInfo<v8::Value>& info)
4548 { 4662 {
4549 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4663 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4550 TestObjectV8Internal::perContextEnabledRuntimeEnabledLongAttributeAttributeG etter(info); 4664 TestObjectV8Internal::perContextEnabledRuntimeEnabledLongAttributeAttributeG etter(info);
4551 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4665 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4552 } 4666 }
4553 4667
4554 static void perContextEnabledRuntimeEnabledLongAttributeAttributeSetter(v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4668 static void perContextEnabledRuntimeEnabledLongAttributeAttributeSetter(v8::Loca l<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
4555 { 4669 {
4556 v8::Local<v8::Object> holder = info.Holder(); 4670 v8::Local<v8::Object> holder = info.Holder();
4557 ExceptionState exceptionState(ExceptionState::SetterContext, "perContextEnab ledRuntimeEnabledLongAttribute", "TestObject", holder, info.GetIsolate()); 4671 ExceptionState exceptionState(ExceptionState::SetterContext, "perContextEnab ledRuntimeEnabledLongAttribute", "TestObject", holder, info.GetIsolate());
4558 TestObject* impl = V8TestObject::toImpl(holder); 4672 TestObject* impl = V8TestObject::toImpl(holder);
4559 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 4673 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
4560 if (exceptionState.throwIfNeeded()) 4674 if (exceptionState.throwIfNeeded())
4561 return; 4675 return;
4562 impl->setPerContextEnabledRuntimeEnabledLongAttribute(cppValue); 4676 impl->setPerContextEnabledRuntimeEnabledLongAttribute(cppValue);
4563 } 4677 }
4564 4678
4565 static void perContextEnabledRuntimeEnabledLongAttributeAttributeSetterCallback( v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInf o<void>& info) 4679 static void perContextEnabledRuntimeEnabledLongAttributeAttributeSetterCallback( const v8::FunctionCallbackInfo<v8::Value>& info)
4566 { 4680 {
4681 v8::Local<v8::Value> v8Value = info[0];
4567 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4682 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4568 TestObjectV8Internal::perContextEnabledRuntimeEnabledLongAttributeAttributeS etter(v8Value, info); 4683 TestObjectV8Internal::perContextEnabledRuntimeEnabledLongAttributeAttributeS etter(v8Value, info);
4569 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4684 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4570 } 4685 }
4571 4686
4572 #if ENABLE(CONDITION) 4687 #if ENABLE(CONDITION)
4573 static void conditionalRuntimeEnabledLongAttributeAttributeGetter(const v8::Prop ertyCallbackInfo<v8::Value>& info) 4688 static void conditionalRuntimeEnabledLongAttributeAttributeGetter(const v8::Func tionCallbackInfo<v8::Value>& info)
4574 { 4689 {
4575 v8::Local<v8::Object> holder = info.Holder(); 4690 v8::Local<v8::Object> holder = info.Holder();
4576 TestObject* impl = V8TestObject::toImpl(holder); 4691 TestObject* impl = V8TestObject::toImpl(holder);
4577 v8SetReturnValueInt(info, impl->conditionalRuntimeEnabledLongAttribute()); 4692 v8SetReturnValueInt(info, impl->conditionalRuntimeEnabledLongAttribute());
4578 } 4693 }
4579 #endif // ENABLE(CONDITION) 4694 #endif // ENABLE(CONDITION)
4580 4695
4581 #if ENABLE(CONDITION) 4696 #if ENABLE(CONDITION)
4582 static void conditionalRuntimeEnabledLongAttributeAttributeGetterCallback(v8::Lo cal<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 4697 static void conditionalRuntimeEnabledLongAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
4583 { 4698 {
4584 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4699 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4585 TestObjectV8Internal::conditionalRuntimeEnabledLongAttributeAttributeGetter( info); 4700 TestObjectV8Internal::conditionalRuntimeEnabledLongAttributeAttributeGetter( info);
4586 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4701 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4587 } 4702 }
4588 #endif // ENABLE(CONDITION) 4703 #endif // ENABLE(CONDITION)
4589 4704
4590 #if ENABLE(CONDITION) 4705 #if ENABLE(CONDITION)
4591 static void conditionalRuntimeEnabledLongAttributeAttributeSetter(v8::Local<v8:: Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4706 static void conditionalRuntimeEnabledLongAttributeAttributeSetter(v8::Local<v8:: Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
4592 { 4707 {
4593 v8::Local<v8::Object> holder = info.Holder(); 4708 v8::Local<v8::Object> holder = info.Holder();
4594 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalRun timeEnabledLongAttribute", "TestObject", holder, info.GetIsolate()); 4709 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalRun timeEnabledLongAttribute", "TestObject", holder, info.GetIsolate());
4595 TestObject* impl = V8TestObject::toImpl(holder); 4710 TestObject* impl = V8TestObject::toImpl(holder);
4596 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 4711 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
4597 if (exceptionState.throwIfNeeded()) 4712 if (exceptionState.throwIfNeeded())
4598 return; 4713 return;
4599 impl->setConditionalRuntimeEnabledLongAttribute(cppValue); 4714 impl->setConditionalRuntimeEnabledLongAttribute(cppValue);
4600 } 4715 }
4601 #endif // ENABLE(CONDITION) 4716 #endif // ENABLE(CONDITION)
4602 4717
4603 #if ENABLE(CONDITION) 4718 #if ENABLE(CONDITION)
4604 static void conditionalRuntimeEnabledLongAttributeAttributeSetterCallback(v8::Lo cal<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info) 4719 static void conditionalRuntimeEnabledLongAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
4605 { 4720 {
4721 v8::Local<v8::Value> v8Value = info[0];
4606 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4722 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4607 TestObjectV8Internal::conditionalRuntimeEnabledLongAttributeAttributeSetter( v8Value, info); 4723 TestObjectV8Internal::conditionalRuntimeEnabledLongAttributeAttributeSetter( v8Value, info);
4608 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4724 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4609 } 4725 }
4610 #endif // ENABLE(CONDITION) 4726 #endif // ENABLE(CONDITION)
4611 4727
4612 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeGett er(const v8::PropertyCallbackInfo<v8::Value>& info) 4728 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeGett er(const v8::FunctionCallbackInfo<v8::Value>& info)
4613 { 4729 {
4614 v8::Local<v8::Object> holder = info.Holder(); 4730 v8::Local<v8::Object> holder = info.Holder();
4615 TestObject* impl = V8TestObject::toImpl(holder); 4731 TestObject* impl = V8TestObject::toImpl(holder);
4616 v8SetReturnValueString(info, impl->setterCallWithActiveWindowAndFirstWindowS tringAttribute(), info.GetIsolate()); 4732 v8SetReturnValueString(info, impl->setterCallWithActiveWindowAndFirstWindowS tringAttribute(), info.GetIsolate());
4617 } 4733 }
4618 4734
4619 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeGett erCallback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 4735 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeGett erCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
4620 { 4736 {
4621 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4737 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4622 TestObjectV8Internal::setterCallWithActiveWindowAndFirstWindowStringAttribut eAttributeGetter(info); 4738 TestObjectV8Internal::setterCallWithActiveWindowAndFirstWindowStringAttribut eAttributeGetter(info);
4623 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4739 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4624 } 4740 }
4625 4741
4626 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeSett er(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4742 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeSett er(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info )
4627 { 4743 {
4628 v8::Local<v8::Object> holder = info.Holder(); 4744 v8::Local<v8::Object> holder = info.Holder();
4629 TestObject* impl = V8TestObject::toImpl(holder); 4745 TestObject* impl = V8TestObject::toImpl(holder);
4630 V8StringResource<> cppValue = v8Value; 4746 V8StringResource<> cppValue = v8Value;
4631 if (!cppValue.prepare()) 4747 if (!cppValue.prepare())
4632 return; 4748 return;
4633 impl->setSetterCallWithActiveWindowAndFirstWindowStringAttribute(callingDOMW indow(info.GetIsolate()), enteredDOMWindow(info.GetIsolate()), cppValue); 4749 impl->setSetterCallWithActiveWindowAndFirstWindowStringAttribute(callingDOMW indow(info.GetIsolate()), enteredDOMWindow(info.GetIsolate()), cppValue);
4634 } 4750 }
4635 4751
4636 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeSett erCallback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::Property CallbackInfo<void>& info) 4752 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeSett erCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
4637 { 4753 {
4754 v8::Local<v8::Value> v8Value = info[0];
4638 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4755 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4639 TestObjectV8Internal::setterCallWithActiveWindowAndFirstWindowStringAttribut eAttributeSetter(v8Value, info); 4756 TestObjectV8Internal::setterCallWithActiveWindowAndFirstWindowStringAttribut eAttributeSetter(v8Value, info);
4640 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4757 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4641 } 4758 }
4642 4759
4643 static void setterCallWithExecutionContextStringAttributeAttributeGetter(const v 8::PropertyCallbackInfo<v8::Value>& info) 4760 static void setterCallWithExecutionContextStringAttributeAttributeGetter(const v 8::FunctionCallbackInfo<v8::Value>& info)
4644 { 4761 {
4645 v8::Local<v8::Object> holder = info.Holder(); 4762 v8::Local<v8::Object> holder = info.Holder();
4646 TestObject* impl = V8TestObject::toImpl(holder); 4763 TestObject* impl = V8TestObject::toImpl(holder);
4647 v8SetReturnValueString(info, impl->setterCallWithExecutionContextStringAttri bute(), info.GetIsolate()); 4764 v8SetReturnValueString(info, impl->setterCallWithExecutionContextStringAttri bute(), info.GetIsolate());
4648 } 4765 }
4649 4766
4650 static void setterCallWithExecutionContextStringAttributeAttributeGetterCallback (v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 4767 static void setterCallWithExecutionContextStringAttributeAttributeGetterCallback (const v8::FunctionCallbackInfo<v8::Value>& info)
4651 { 4768 {
4652 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4769 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4653 TestObjectV8Internal::setterCallWithExecutionContextStringAttributeAttribute Getter(info); 4770 TestObjectV8Internal::setterCallWithExecutionContextStringAttributeAttribute Getter(info);
4654 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4771 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4655 } 4772 }
4656 4773
4657 static void setterCallWithExecutionContextStringAttributeAttributeSetter(v8::Loc al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4774 static void setterCallWithExecutionContextStringAttributeAttributeSetter(v8::Loc al<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
4658 { 4775 {
4659 v8::Local<v8::Object> holder = info.Holder(); 4776 v8::Local<v8::Object> holder = info.Holder();
4660 TestObject* impl = V8TestObject::toImpl(holder); 4777 TestObject* impl = V8TestObject::toImpl(holder);
4661 V8StringResource<> cppValue = v8Value; 4778 V8StringResource<> cppValue = v8Value;
4662 if (!cppValue.prepare()) 4779 if (!cppValue.prepare())
4663 return; 4780 return;
4664 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ()); 4781 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ());
4665 impl->setSetterCallWithExecutionContextStringAttribute(executionContext, cpp Value); 4782 impl->setSetterCallWithExecutionContextStringAttribute(executionContext, cpp Value);
4666 } 4783 }
4667 4784
4668 static void setterCallWithExecutionContextStringAttributeAttributeSetterCallback (v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackIn fo<void>& info) 4785 static void setterCallWithExecutionContextStringAttributeAttributeSetterCallback (const v8::FunctionCallbackInfo<v8::Value>& info)
4669 { 4786 {
4787 v8::Local<v8::Value> v8Value = info[0];
4670 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4788 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4671 TestObjectV8Internal::setterCallWithExecutionContextStringAttributeAttribute Setter(v8Value, info); 4789 TestObjectV8Internal::setterCallWithExecutionContextStringAttributeAttribute Setter(v8Value, info);
4672 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4790 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4673 } 4791 }
4674 4792
4675 static void treatNullAsEmptyStringStringAttributeAttributeGetter(const v8::Prope rtyCallbackInfo<v8::Value>& info) 4793 static void treatNullAsEmptyStringStringAttributeAttributeGetter(const v8::Funct ionCallbackInfo<v8::Value>& info)
4676 { 4794 {
4677 v8::Local<v8::Object> holder = info.Holder(); 4795 v8::Local<v8::Object> holder = info.Holder();
4678 TestObject* impl = V8TestObject::toImpl(holder); 4796 TestObject* impl = V8TestObject::toImpl(holder);
4679 v8SetReturnValueString(info, impl->treatNullAsEmptyStringStringAttribute(), info.GetIsolate()); 4797 v8SetReturnValueString(info, impl->treatNullAsEmptyStringStringAttribute(), info.GetIsolate());
4680 } 4798 }
4681 4799
4682 static void treatNullAsEmptyStringStringAttributeAttributeGetterCallback(v8::Loc al<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 4800 static void treatNullAsEmptyStringStringAttributeAttributeGetterCallback(const v 8::FunctionCallbackInfo<v8::Value>& info)
4683 { 4801 {
4684 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4802 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4685 TestObjectV8Internal::treatNullAsEmptyStringStringAttributeAttributeGetter(i nfo); 4803 TestObjectV8Internal::treatNullAsEmptyStringStringAttributeAttributeGetter(i nfo);
4686 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4804 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4687 } 4805 }
4688 4806
4689 static void treatNullAsEmptyStringStringAttributeAttributeSetter(v8::Local<v8::V alue> v8Value, const v8::PropertyCallbackInfo<void>& info) 4807 static void treatNullAsEmptyStringStringAttributeAttributeSetter(v8::Local<v8::V alue> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
4690 { 4808 {
4691 v8::Local<v8::Object> holder = info.Holder(); 4809 v8::Local<v8::Object> holder = info.Holder();
4692 TestObject* impl = V8TestObject::toImpl(holder); 4810 TestObject* impl = V8TestObject::toImpl(holder);
4693 V8StringResource<TreatNullAsEmptyString> cppValue = v8Value; 4811 V8StringResource<TreatNullAsEmptyString> cppValue = v8Value;
4694 if (!cppValue.prepare()) 4812 if (!cppValue.prepare())
4695 return; 4813 return;
4696 impl->setTreatNullAsEmptyStringStringAttribute(cppValue); 4814 impl->setTreatNullAsEmptyStringStringAttribute(cppValue);
4697 } 4815 }
4698 4816
4699 static void treatNullAsEmptyStringStringAttributeAttributeSetterCallback(v8::Loc al<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void> & info) 4817 static void treatNullAsEmptyStringStringAttributeAttributeSetterCallback(const v 8::FunctionCallbackInfo<v8::Value>& info)
4700 { 4818 {
4819 v8::Local<v8::Value> v8Value = info[0];
4701 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4820 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4702 TestObjectV8Internal::treatNullAsEmptyStringStringAttributeAttributeSetter(v 8Value, info); 4821 TestObjectV8Internal::treatNullAsEmptyStringStringAttributeAttributeSetter(v 8Value, info);
4703 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4822 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4704 } 4823 }
4705 4824
4706 static void treatNullAsNullStringStringAttributeAttributeGetter(const v8::Proper tyCallbackInfo<v8::Value>& info) 4825 static void treatNullAsNullStringStringAttributeAttributeGetter(const v8::Functi onCallbackInfo<v8::Value>& info)
4707 { 4826 {
4708 v8::Local<v8::Object> holder = info.Holder(); 4827 v8::Local<v8::Object> holder = info.Holder();
4709 TestObject* impl = V8TestObject::toImpl(holder); 4828 TestObject* impl = V8TestObject::toImpl(holder);
4710 v8SetReturnValueString(info, impl->treatNullAsNullStringStringAttribute(), i nfo.GetIsolate()); 4829 v8SetReturnValueString(info, impl->treatNullAsNullStringStringAttribute(), i nfo.GetIsolate());
4711 } 4830 }
4712 4831
4713 static void treatNullAsNullStringStringAttributeAttributeGetterCallback(v8::Loca l<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 4832 static void treatNullAsNullStringStringAttributeAttributeGetterCallback(const v8 ::FunctionCallbackInfo<v8::Value>& info)
4714 { 4833 {
4715 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4834 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4716 TestObjectV8Internal::treatNullAsNullStringStringAttributeAttributeGetter(in fo); 4835 TestObjectV8Internal::treatNullAsNullStringStringAttributeAttributeGetter(in fo);
4717 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4836 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4718 } 4837 }
4719 4838
4720 static void treatNullAsNullStringStringAttributeAttributeSetter(v8::Local<v8::Va lue> v8Value, const v8::PropertyCallbackInfo<void>& info) 4839 static void treatNullAsNullStringStringAttributeAttributeSetter(v8::Local<v8::Va lue> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
4721 { 4840 {
4722 v8::Local<v8::Object> holder = info.Holder(); 4841 v8::Local<v8::Object> holder = info.Holder();
4723 TestObject* impl = V8TestObject::toImpl(holder); 4842 TestObject* impl = V8TestObject::toImpl(holder);
4724 V8StringResource<TreatNullAsNullString> cppValue = v8Value; 4843 V8StringResource<TreatNullAsNullString> cppValue = v8Value;
4725 if (!cppValue.prepare()) 4844 if (!cppValue.prepare())
4726 return; 4845 return;
4727 impl->setTreatNullAsNullStringStringAttribute(cppValue); 4846 impl->setTreatNullAsNullStringStringAttribute(cppValue);
4728 } 4847 }
4729 4848
4730 static void treatNullAsNullStringStringAttributeAttributeSetterCallback(v8::Loca l<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4849 static void treatNullAsNullStringStringAttributeAttributeSetterCallback(const v8 ::FunctionCallbackInfo<v8::Value>& info)
4731 { 4850 {
4851 v8::Local<v8::Value> v8Value = info[0];
4732 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4852 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4733 TestObjectV8Internal::treatNullAsNullStringStringAttributeAttributeSetter(v8 Value, info); 4853 TestObjectV8Internal::treatNullAsNullStringStringAttributeAttributeSetter(v8 Value, info);
4734 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4854 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4735 } 4855 }
4736 4856
4737 static void treatReturnedNullStringAsNullStringAttributeAttributeGetter(const v8 ::PropertyCallbackInfo<v8::Value>& info) 4857 static void treatReturnedNullStringAsNullStringAttributeAttributeGetter(const v8 ::FunctionCallbackInfo<v8::Value>& info)
4738 { 4858 {
4739 v8::Local<v8::Object> holder = info.Holder(); 4859 v8::Local<v8::Object> holder = info.Holder();
4740 TestObject* impl = V8TestObject::toImpl(holder); 4860 TestObject* impl = V8TestObject::toImpl(holder);
4741 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullString Attribute(), info.GetIsolate()); 4861 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullString Attribute(), info.GetIsolate());
4742 } 4862 }
4743 4863
4744 static void treatReturnedNullStringAsNullStringAttributeAttributeGetterCallback( v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 4864 static void treatReturnedNullStringAsNullStringAttributeAttributeGetterCallback( const v8::FunctionCallbackInfo<v8::Value>& info)
4745 { 4865 {
4746 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4866 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4747 TestObjectV8Internal::treatReturnedNullStringAsNullStringAttributeAttributeG etter(info); 4867 TestObjectV8Internal::treatReturnedNullStringAsNullStringAttributeAttributeG etter(info);
4748 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4868 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4749 } 4869 }
4750 4870
4751 static void treatReturnedNullStringAsNullStringAttributeAttributeSetter(v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4871 static void treatReturnedNullStringAsNullStringAttributeAttributeSetter(v8::Loca l<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
4752 { 4872 {
4753 v8::Local<v8::Object> holder = info.Holder(); 4873 v8::Local<v8::Object> holder = info.Holder();
4754 TestObject* impl = V8TestObject::toImpl(holder); 4874 TestObject* impl = V8TestObject::toImpl(holder);
4755 V8StringResource<> cppValue = v8Value; 4875 V8StringResource<> cppValue = v8Value;
4756 if (!cppValue.prepare()) 4876 if (!cppValue.prepare())
4757 return; 4877 return;
4758 impl->setTreatReturnedNullStringAsNullStringAttribute(cppValue); 4878 impl->setTreatReturnedNullStringAsNullStringAttribute(cppValue);
4759 } 4879 }
4760 4880
4761 static void treatReturnedNullStringAsNullStringAttributeAttributeSetterCallback( v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInf o<void>& info) 4881 static void treatReturnedNullStringAsNullStringAttributeAttributeSetterCallback( const v8::FunctionCallbackInfo<v8::Value>& info)
4762 { 4882 {
4883 v8::Local<v8::Value> v8Value = info[0];
4763 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4884 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4764 TestObjectV8Internal::treatReturnedNullStringAsNullStringAttributeAttributeS etter(v8Value, info); 4885 TestObjectV8Internal::treatReturnedNullStringAsNullStringAttributeAttributeS etter(v8Value, info);
4765 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4886 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4766 } 4887 }
4767 4888
4768 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeGetter(con st v8::PropertyCallbackInfo<v8::Value>& info) 4889 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeGetter(con st v8::FunctionCallbackInfo<v8::Value>& info)
4769 { 4890 {
4770 v8::Local<v8::Object> holder = info.Holder(); 4891 v8::Local<v8::Object> holder = info.Holder();
4771 TestObject* impl = V8TestObject::toImpl(holder); 4892 TestObject* impl = V8TestObject::toImpl(holder);
4772 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef inedStringAttribute(), info.GetIsolate()); 4893 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef inedStringAttribute(), info.GetIsolate());
4773 } 4894 }
4774 4895
4775 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeGetterCall back(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 4896 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeGetterCall back(const v8::FunctionCallbackInfo<v8::Value>& info)
4776 { 4897 {
4777 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4898 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4778 TestObjectV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAttri buteGetter(info); 4899 TestObjectV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAttri buteGetter(info);
4779 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4900 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4780 } 4901 }
4781 4902
4782 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeSetter(v8: :Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4903 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeSetter(v8: :Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
4783 { 4904 {
4784 v8::Local<v8::Object> holder = info.Holder(); 4905 v8::Local<v8::Object> holder = info.Holder();
4785 TestObject* impl = V8TestObject::toImpl(holder); 4906 TestObject* impl = V8TestObject::toImpl(holder);
4786 V8StringResource<> cppValue = v8Value; 4907 V8StringResource<> cppValue = v8Value;
4787 if (!cppValue.prepare()) 4908 if (!cppValue.prepare())
4788 return; 4909 return;
4789 impl->setTreatReturnedNullStringAsUndefinedStringAttribute(cppValue); 4910 impl->setTreatReturnedNullStringAsUndefinedStringAttribute(cppValue);
4790 } 4911 }
4791 4912
4792 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeSetterCall back(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallba ckInfo<void>& info) 4913 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeSetterCall back(const v8::FunctionCallbackInfo<v8::Value>& info)
4793 { 4914 {
4915 v8::Local<v8::Value> v8Value = info[0];
4794 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4916 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4795 TestObjectV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAttri buteSetter(v8Value, info); 4917 TestObjectV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAttri buteSetter(v8Value, info);
4796 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4918 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4797 } 4919 }
4798 4920
4799 static void cachedTreatReturnedNullStringAsUndefinedStringAttributeAttributeGett er(const v8::PropertyCallbackInfo<v8::Value>& info) 4921 static void cachedTreatReturnedNullStringAsUndefinedStringAttributeAttributeGett er(const v8::FunctionCallbackInfo<v8::Value>& info)
4800 { 4922 {
4801 v8::Local<v8::Object> holder = info.Holder(); 4923 v8::Local<v8::Object> holder = info.Holder();
4802 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cach edTreatReturnedNullStringAsUndefinedStringAttribute"); 4924 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cach edTreatReturnedNullStringAsUndefinedStringAttribute");
4803 TestObject* impl = V8TestObject::toImpl(holder); 4925 TestObject* impl = V8TestObject::toImpl(holder);
4804 if (!impl->isStringDirty()) { 4926 if (!impl->isStringDirty()) {
4805 v8::Local<v8::Value> v8Value = V8HiddenValue::getHiddenValue(info.GetIso late(), holder, propertyName); 4927 v8::Local<v8::Value> v8Value = V8HiddenValue::getHiddenValue(info.GetIso late(), holder, propertyName);
4806 if (!v8Value.IsEmpty()) { 4928 if (!v8Value.IsEmpty()) {
4807 v8SetReturnValue(info, v8Value); 4929 v8SetReturnValue(info, v8Value);
4808 return; 4930 return;
4809 } 4931 }
4810 } 4932 }
4811 String cppValue(impl->cachedTreatReturnedNullStringAsUndefinedStringAttribut e()); 4933 String cppValue(impl->cachedTreatReturnedNullStringAsUndefinedStringAttribut e());
4812 v8::Local<v8::Value> v8Value(cppValue.isNull() ? v8Undefined() : v8String(in fo.GetIsolate(), cppValue)); 4934 v8::Local<v8::Value> v8Value(cppValue.isNull() ? v8Undefined() : v8String(in fo.GetIsolate(), cppValue));
4813 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, v8Val ue); 4935 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, v8Val ue);
4814 v8SetReturnValue(info, v8Value); 4936 v8SetReturnValue(info, v8Value);
4815 } 4937 }
4816 4938
4817 static void cachedTreatReturnedNullStringAsUndefinedStringAttributeAttributeGett erCallback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 4939 static void cachedTreatReturnedNullStringAsUndefinedStringAttributeAttributeGett erCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
4818 { 4940 {
4819 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4941 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4820 TestObjectV8Internal::cachedTreatReturnedNullStringAsUndefinedStringAttribut eAttributeGetter(info); 4942 TestObjectV8Internal::cachedTreatReturnedNullStringAsUndefinedStringAttribut eAttributeGetter(info);
4821 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4943 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4822 } 4944 }
4823 4945
4824 static void cachedTreatReturnedNullStringAsUndefinedStringAttributeAttributeSett er(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4946 static void cachedTreatReturnedNullStringAsUndefinedStringAttributeAttributeSett er(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info )
4825 { 4947 {
4826 v8::Local<v8::Object> holder = info.Holder(); 4948 v8::Local<v8::Object> holder = info.Holder();
4827 TestObject* impl = V8TestObject::toImpl(holder); 4949 TestObject* impl = V8TestObject::toImpl(holder);
4828 V8StringResource<> cppValue = v8Value; 4950 V8StringResource<> cppValue = v8Value;
4829 if (!cppValue.prepare()) 4951 if (!cppValue.prepare())
4830 return; 4952 return;
4831 impl->setCachedTreatReturnedNullStringAsUndefinedStringAttribute(cppValue); 4953 impl->setCachedTreatReturnedNullStringAsUndefinedStringAttribute(cppValue);
4832 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i nfo.GetIsolate(), "cachedTreatReturnedNullStringAsUndefinedStringAttribute")); / / Invalidate the cached value. 4954 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i nfo.GetIsolate(), "cachedTreatReturnedNullStringAsUndefinedStringAttribute")); / / Invalidate the cached value.
4833 } 4955 }
4834 4956
4835 static void cachedTreatReturnedNullStringAsUndefinedStringAttributeAttributeSett erCallback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::Property CallbackInfo<void>& info) 4957 static void cachedTreatReturnedNullStringAsUndefinedStringAttributeAttributeSett erCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
4836 { 4958 {
4959 v8::Local<v8::Value> v8Value = info[0];
4837 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4960 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4838 TestObjectV8Internal::cachedTreatReturnedNullStringAsUndefinedStringAttribut eAttributeSetter(v8Value, info); 4961 TestObjectV8Internal::cachedTreatReturnedNullStringAsUndefinedStringAttribut eAttributeSetter(v8Value, info);
4839 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4962 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4840 } 4963 }
4841 4964
4842 static void treatReturnedNullStringAsNullByteStringAttributeAttributeGetter(cons t v8::PropertyCallbackInfo<v8::Value>& info) 4965 static void treatReturnedNullStringAsNullByteStringAttributeAttributeGetter(cons t v8::FunctionCallbackInfo<v8::Value>& info)
4843 { 4966 {
4844 v8::Local<v8::Object> holder = info.Holder(); 4967 v8::Local<v8::Object> holder = info.Holder();
4845 TestObject* impl = V8TestObject::toImpl(holder); 4968 TestObject* impl = V8TestObject::toImpl(holder);
4846 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullByteSt ringAttribute(), info.GetIsolate()); 4969 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullByteSt ringAttribute(), info.GetIsolate());
4847 } 4970 }
4848 4971
4849 static void treatReturnedNullStringAsNullByteStringAttributeAttributeGetterCallb ack(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 4972 static void treatReturnedNullStringAsNullByteStringAttributeAttributeGetterCallb ack(const v8::FunctionCallbackInfo<v8::Value>& info)
4850 { 4973 {
4851 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4974 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4852 TestObjectV8Internal::treatReturnedNullStringAsNullByteStringAttributeAttrib uteGetter(info); 4975 TestObjectV8Internal::treatReturnedNullStringAsNullByteStringAttributeAttrib uteGetter(info);
4853 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4976 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4854 } 4977 }
4855 4978
4856 static void treatReturnedNullStringAsNullByteStringAttributeAttributeSetter(v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4979 static void treatReturnedNullStringAsNullByteStringAttributeAttributeSetter(v8:: Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
4857 { 4980 {
4858 v8::Local<v8::Object> holder = info.Holder(); 4981 v8::Local<v8::Object> holder = info.Holder();
4859 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN ullStringAsNullByteStringAttribute", "TestObject", holder, info.GetIsolate()); 4982 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN ullStringAsNullByteStringAttribute", "TestObject", holder, info.GetIsolate());
4860 TestObject* impl = V8TestObject::toImpl(holder); 4983 TestObject* impl = V8TestObject::toImpl(holder);
4861 V8StringResource<> cppValue = toByteString(info.GetIsolate(), v8Value, excep tionState); 4984 V8StringResource<> cppValue = toByteString(info.GetIsolate(), v8Value, excep tionState);
4862 if (exceptionState.throwIfNeeded()) 4985 if (exceptionState.throwIfNeeded())
4863 return; 4986 return;
4864 impl->setTreatReturnedNullStringAsNullByteStringAttribute(cppValue); 4987 impl->setTreatReturnedNullStringAsNullByteStringAttribute(cppValue);
4865 } 4988 }
4866 4989
4867 static void treatReturnedNullStringAsNullByteStringAttributeAttributeSetterCallb ack(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac kInfo<void>& info) 4990 static void treatReturnedNullStringAsNullByteStringAttributeAttributeSetterCallb ack(const v8::FunctionCallbackInfo<v8::Value>& info)
4868 { 4991 {
4992 v8::Local<v8::Value> v8Value = info[0];
4869 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4993 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4870 TestObjectV8Internal::treatReturnedNullStringAsNullByteStringAttributeAttrib uteSetter(v8Value, info); 4994 TestObjectV8Internal::treatReturnedNullStringAsNullByteStringAttributeAttrib uteSetter(v8Value, info);
4871 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4995 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4872 } 4996 }
4873 4997
4874 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeGetter (const v8::PropertyCallbackInfo<v8::Value>& info) 4998 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeGetter (const v8::FunctionCallbackInfo<v8::Value>& info)
4875 { 4999 {
4876 v8::Local<v8::Object> holder = info.Holder(); 5000 v8::Local<v8::Object> holder = info.Holder();
4877 TestObject* impl = V8TestObject::toImpl(holder); 5001 TestObject* impl = V8TestObject::toImpl(holder);
4878 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef inedByteStringAttribute(), info.GetIsolate()); 5002 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef inedByteStringAttribute(), info.GetIsolate());
4879 } 5003 }
4880 5004
4881 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeGetter Callback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 5005 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeGetter Callback(const v8::FunctionCallbackInfo<v8::Value>& info)
4882 { 5006 {
4883 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 5007 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4884 TestObjectV8Internal::treatReturnedNullStringAsUndefinedByteStringAttributeA ttributeGetter(info); 5008 TestObjectV8Internal::treatReturnedNullStringAsUndefinedByteStringAttributeA ttributeGetter(info);
4885 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5009 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4886 } 5010 }
4887 5011
4888 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeSetter (v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 5012 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeSetter (v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
4889 { 5013 {
4890 v8::Local<v8::Object> holder = info.Holder(); 5014 v8::Local<v8::Object> holder = info.Holder();
4891 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN ullStringAsUndefinedByteStringAttribute", "TestObject", holder, info.GetIsolate( )); 5015 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN ullStringAsUndefinedByteStringAttribute", "TestObject", holder, info.GetIsolate( ));
4892 TestObject* impl = V8TestObject::toImpl(holder); 5016 TestObject* impl = V8TestObject::toImpl(holder);
4893 V8StringResource<> cppValue = toByteString(info.GetIsolate(), v8Value, excep tionState); 5017 V8StringResource<> cppValue = toByteString(info.GetIsolate(), v8Value, excep tionState);
4894 if (exceptionState.throwIfNeeded()) 5018 if (exceptionState.throwIfNeeded())
4895 return; 5019 return;
4896 impl->setTreatReturnedNullStringAsUndefinedByteStringAttribute(cppValue); 5020 impl->setTreatReturnedNullStringAsUndefinedByteStringAttribute(cppValue);
4897 } 5021 }
4898 5022
4899 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeSetter Callback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCa llbackInfo<void>& info) 5023 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeSetter Callback(const v8::FunctionCallbackInfo<v8::Value>& info)
4900 { 5024 {
5025 v8::Local<v8::Value> v8Value = info[0];
4901 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 5026 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4902 TestObjectV8Internal::treatReturnedNullStringAsUndefinedByteStringAttributeA ttributeSetter(v8Value, info); 5027 TestObjectV8Internal::treatReturnedNullStringAsUndefinedByteStringAttributeA ttributeSetter(v8Value, info);
4903 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5028 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4904 } 5029 }
4905 5030
4906 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 5031 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info)
4907 { 5032 {
4908 v8::Local<v8::Object> holder = info.Holder(); 5033 v8::Local<v8::Object> holder = info.Holder();
4909 TestObject* impl = V8TestObject::toImpl(holder); 5034 TestObject* impl = V8TestObject::toImpl(holder);
4910 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullUSVStr ingAttribute(), info.GetIsolate()); 5035 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullUSVStr ingAttribute(), info.GetIsolate());
4911 } 5036 }
4912 5037
4913 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeGetterCallba ck(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 5038 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeGetterCallba ck(const v8::FunctionCallbackInfo<v8::Value>& info)
4914 { 5039 {
4915 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 5040 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4916 TestObjectV8Internal::treatReturnedNullStringAsNullUSVStringAttributeAttribu teGetter(info); 5041 TestObjectV8Internal::treatReturnedNullStringAsNullUSVStringAttributeAttribu teGetter(info);
4917 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5042 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4918 } 5043 }
4919 5044
4920 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeSetter(v8::L ocal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 5045 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeSetter(v8::L ocal<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
4921 { 5046 {
4922 v8::Local<v8::Object> holder = info.Holder(); 5047 v8::Local<v8::Object> holder = info.Holder();
4923 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN ullStringAsNullUSVStringAttribute", "TestObject", holder, info.GetIsolate()); 5048 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN ullStringAsNullUSVStringAttribute", "TestObject", holder, info.GetIsolate());
4924 TestObject* impl = V8TestObject::toImpl(holder); 5049 TestObject* impl = V8TestObject::toImpl(holder);
4925 V8StringResource<> cppValue = toUSVString(info.GetIsolate(), v8Value, except ionState); 5050 V8StringResource<> cppValue = toUSVString(info.GetIsolate(), v8Value, except ionState);
4926 if (exceptionState.throwIfNeeded()) 5051 if (exceptionState.throwIfNeeded())
4927 return; 5052 return;
4928 impl->setTreatReturnedNullStringAsNullUSVStringAttribute(cppValue); 5053 impl->setTreatReturnedNullStringAsNullUSVStringAttribute(cppValue);
4929 } 5054 }
4930 5055
4931 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeSetterCallba ck(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallback Info<void>& info) 5056 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeSetterCallba ck(const v8::FunctionCallbackInfo<v8::Value>& info)
4932 { 5057 {
5058 v8::Local<v8::Value> v8Value = info[0];
4933 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 5059 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4934 TestObjectV8Internal::treatReturnedNullStringAsNullUSVStringAttributeAttribu teSetter(v8Value, info); 5060 TestObjectV8Internal::treatReturnedNullStringAsNullUSVStringAttributeAttribu teSetter(v8Value, info);
4935 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5061 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4936 } 5062 }
4937 5063
4938 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeGetter( const v8::PropertyCallbackInfo<v8::Value>& info) 5064 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeGetter( const v8::FunctionCallbackInfo<v8::Value>& info)
4939 { 5065 {
4940 v8::Local<v8::Object> holder = info.Holder(); 5066 v8::Local<v8::Object> holder = info.Holder();
4941 TestObject* impl = V8TestObject::toImpl(holder); 5067 TestObject* impl = V8TestObject::toImpl(holder);
4942 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef inedUSVStringAttribute(), info.GetIsolate()); 5068 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef inedUSVStringAttribute(), info.GetIsolate());
4943 } 5069 }
4944 5070
4945 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeGetterC allback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 5071 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeGetterC allback(const v8::FunctionCallbackInfo<v8::Value>& info)
4946 { 5072 {
4947 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 5073 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4948 TestObjectV8Internal::treatReturnedNullStringAsUndefinedUSVStringAttributeAt tributeGetter(info); 5074 TestObjectV8Internal::treatReturnedNullStringAsUndefinedUSVStringAttributeAt tributeGetter(info);
4949 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5075 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4950 } 5076 }
4951 5077
4952 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeSetter( v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 5078 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeSetter( v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
4953 { 5079 {
4954 v8::Local<v8::Object> holder = info.Holder(); 5080 v8::Local<v8::Object> holder = info.Holder();
4955 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN ullStringAsUndefinedUSVStringAttribute", "TestObject", holder, info.GetIsolate() ); 5081 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN ullStringAsUndefinedUSVStringAttribute", "TestObject", holder, info.GetIsolate() );
4956 TestObject* impl = V8TestObject::toImpl(holder); 5082 TestObject* impl = V8TestObject::toImpl(holder);
4957 V8StringResource<> cppValue = toUSVString(info.GetIsolate(), v8Value, except ionState); 5083 V8StringResource<> cppValue = toUSVString(info.GetIsolate(), v8Value, except ionState);
4958 if (exceptionState.throwIfNeeded()) 5084 if (exceptionState.throwIfNeeded())
4959 return; 5085 return;
4960 impl->setTreatReturnedNullStringAsUndefinedUSVStringAttribute(cppValue); 5086 impl->setTreatReturnedNullStringAsUndefinedUSVStringAttribute(cppValue);
4961 } 5087 }
4962 5088
4963 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeSetterC allback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCal lbackInfo<void>& info) 5089 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeSetterC allback(const v8::FunctionCallbackInfo<v8::Value>& info)
4964 { 5090 {
5091 v8::Local<v8::Value> v8Value = info[0];
4965 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 5092 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4966 TestObjectV8Internal::treatReturnedNullStringAsUndefinedUSVStringAttributeAt tributeSetter(v8Value, info); 5093 TestObjectV8Internal::treatReturnedNullStringAsUndefinedUSVStringAttributeAt tributeSetter(v8Value, info);
4967 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5094 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4968 } 5095 }
4969 5096
4970 static void typeCheckingInterfaceFloatAttributeAttributeGetter(const v8::Propert yCallbackInfo<v8::Value>& info) 5097 static void typeCheckingInterfaceFloatAttributeAttributeGetter(const v8::Functio nCallbackInfo<v8::Value>& info)
4971 { 5098 {
4972 v8::Local<v8::Object> holder = info.Holder(); 5099 v8::Local<v8::Object> holder = info.Holder();
4973 TestObject* impl = V8TestObject::toImpl(holder); 5100 TestObject* impl = V8TestObject::toImpl(holder);
4974 v8SetReturnValue(info, impl->typeCheckingInterfaceFloatAttribute()); 5101 v8SetReturnValue(info, impl->typeCheckingInterfaceFloatAttribute());
4975 } 5102 }
4976 5103
4977 static void typeCheckingInterfaceFloatAttributeAttributeGetterCallback(v8::Local <v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 5104 static void typeCheckingInterfaceFloatAttributeAttributeGetterCallback(const v8: :FunctionCallbackInfo<v8::Value>& info)
4978 { 5105 {
4979 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 5106 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4980 TestObjectV8Internal::typeCheckingInterfaceFloatAttributeAttributeGetter(inf o); 5107 TestObjectV8Internal::typeCheckingInterfaceFloatAttributeAttributeGetter(inf o);
4981 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5108 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4982 } 5109 }
4983 5110
4984 static void typeCheckingInterfaceFloatAttributeAttributeSetter(v8::Local<v8::Val ue> v8Value, const v8::PropertyCallbackInfo<void>& info) 5111 static void typeCheckingInterfaceFloatAttributeAttributeSetter(v8::Local<v8::Val ue> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
4985 { 5112 {
4986 v8::Local<v8::Object> holder = info.Holder(); 5113 v8::Local<v8::Object> holder = info.Holder();
4987 ExceptionState exceptionState(ExceptionState::SetterContext, "typeCheckingIn terfaceFloatAttribute", "TestObject", holder, info.GetIsolate()); 5114 ExceptionState exceptionState(ExceptionState::SetterContext, "typeCheckingIn terfaceFloatAttribute", "TestObject", holder, info.GetIsolate());
4988 TestObject* impl = V8TestObject::toImpl(holder); 5115 TestObject* impl = V8TestObject::toImpl(holder);
4989 float cppValue = toRestrictedFloat(info.GetIsolate(), v8Value, exceptionStat e); 5116 float cppValue = toRestrictedFloat(info.GetIsolate(), v8Value, exceptionStat e);
4990 if (exceptionState.throwIfNeeded()) 5117 if (exceptionState.throwIfNeeded())
4991 return; 5118 return;
4992 impl->setTypeCheckingInterfaceFloatAttribute(cppValue); 5119 impl->setTypeCheckingInterfaceFloatAttribute(cppValue);
4993 } 5120 }
4994 5121
4995 static void typeCheckingInterfaceFloatAttributeAttributeSetterCallback(v8::Local <v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 5122 static void typeCheckingInterfaceFloatAttributeAttributeSetterCallback(const v8: :FunctionCallbackInfo<v8::Value>& info)
4996 { 5123 {
5124 v8::Local<v8::Value> v8Value = info[0];
4997 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 5125 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4998 TestObjectV8Internal::typeCheckingInterfaceFloatAttributeAttributeSetter(v8V alue, info); 5126 TestObjectV8Internal::typeCheckingInterfaceFloatAttributeAttributeSetter(v8V alue, info);
4999 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5127 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5000 } 5128 }
5001 5129
5002 static void typeCheckingInterfaceTestInterfaceAttributeAttributeGetter(const v8: :PropertyCallbackInfo<v8::Value>& info) 5130 static void typeCheckingInterfaceTestInterfaceAttributeAttributeGetter(const v8: :FunctionCallbackInfo<v8::Value>& info)
5003 { 5131 {
5004 v8::Local<v8::Object> holder = info.Holder(); 5132 v8::Local<v8::Object> holder = info.Holder();
5005 TestObject* impl = V8TestObject::toImpl(holder); 5133 TestObject* impl = V8TestObject::toImpl(holder);
5006 v8SetReturnValueFast(info, WTF::getPtr(impl->typeCheckingInterfaceTestInterf aceAttribute()), impl); 5134 v8SetReturnValueFast(info, WTF::getPtr(impl->typeCheckingInterfaceTestInterf aceAttribute()), impl);
5007 } 5135 }
5008 5136
5009 static void typeCheckingInterfaceTestInterfaceAttributeAttributeGetterCallback(v 8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 5137 static void typeCheckingInterfaceTestInterfaceAttributeAttributeGetterCallback(c onst v8::FunctionCallbackInfo<v8::Value>& info)
5010 { 5138 {
5011 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 5139 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
5012 TestObjectV8Internal::typeCheckingInterfaceTestInterfaceAttributeAttributeGe tter(info); 5140 TestObjectV8Internal::typeCheckingInterfaceTestInterfaceAttributeAttributeGe tter(info);
5013 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5141 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5014 } 5142 }
5015 5143
5016 static void typeCheckingInterfaceTestInterfaceAttributeAttributeSetter(v8::Local <v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 5144 static void typeCheckingInterfaceTestInterfaceAttributeAttributeSetter(v8::Local <v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
5017 { 5145 {
5018 v8::Local<v8::Object> holder = info.Holder(); 5146 v8::Local<v8::Object> holder = info.Holder();
5019 ExceptionState exceptionState(ExceptionState::SetterContext, "typeCheckingIn terfaceTestInterfaceAttribute", "TestObject", holder, info.GetIsolate()); 5147 ExceptionState exceptionState(ExceptionState::SetterContext, "typeCheckingIn terfaceTestInterfaceAttribute", "TestObject", holder, info.GetIsolate());
5020 TestObject* impl = V8TestObject::toImpl(holder); 5148 TestObject* impl = V8TestObject::toImpl(holder);
5021 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck (info.GetIsolate(), v8Value); 5149 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck (info.GetIsolate(), v8Value);
5022 if (!cppValue) { 5150 if (!cppValue) {
5023 exceptionState.throwTypeError("The provided value is not of type 'TestIn terface'."); 5151 exceptionState.throwTypeError("The provided value is not of type 'TestIn terface'.");
5024 exceptionState.throwIfNeeded(); 5152 exceptionState.throwIfNeeded();
5025 return; 5153 return;
5026 } 5154 }
5027 impl->setTypeCheckingInterfaceTestInterfaceAttribute(WTF::getPtr(cppValue)); 5155 impl->setTypeCheckingInterfaceTestInterfaceAttribute(WTF::getPtr(cppValue));
5028 } 5156 }
5029 5157
5030 static void typeCheckingInterfaceTestInterfaceAttributeAttributeSetterCallback(v 8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo <void>& info) 5158 static void typeCheckingInterfaceTestInterfaceAttributeAttributeSetterCallback(c onst v8::FunctionCallbackInfo<v8::Value>& info)
5031 { 5159 {
5160 v8::Local<v8::Value> v8Value = info[0];
5032 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 5161 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
5033 TestObjectV8Internal::typeCheckingInterfaceTestInterfaceAttributeAttributeSe tter(v8Value, info); 5162 TestObjectV8Internal::typeCheckingInterfaceTestInterfaceAttributeAttributeSe tter(v8Value, info);
5034 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5163 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5035 } 5164 }
5036 5165
5037 static void typeCheckingInterfaceTestInterfaceOrNullAttributeAttributeGetter(con st v8::PropertyCallbackInfo<v8::Value>& info) 5166 static void typeCheckingInterfaceTestInterfaceOrNullAttributeAttributeGetter(con st v8::FunctionCallbackInfo<v8::Value>& info)
5038 { 5167 {
5039 v8::Local<v8::Object> holder = info.Holder(); 5168 v8::Local<v8::Object> holder = info.Holder();
5040 TestObject* impl = V8TestObject::toImpl(holder); 5169 TestObject* impl = V8TestObject::toImpl(holder);
5041 v8SetReturnValueFast(info, WTF::getPtr(impl->typeCheckingInterfaceTestInterf aceOrNullAttribute()), impl); 5170 v8SetReturnValueFast(info, WTF::getPtr(impl->typeCheckingInterfaceTestInterf aceOrNullAttribute()), impl);
5042 } 5171 }
5043 5172
5044 static void typeCheckingInterfaceTestInterfaceOrNullAttributeAttributeGetterCall back(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 5173 static void typeCheckingInterfaceTestInterfaceOrNullAttributeAttributeGetterCall back(const v8::FunctionCallbackInfo<v8::Value>& info)
5045 { 5174 {
5046 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 5175 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
5047 TestObjectV8Internal::typeCheckingInterfaceTestInterfaceOrNullAttributeAttri buteGetter(info); 5176 TestObjectV8Internal::typeCheckingInterfaceTestInterfaceOrNullAttributeAttri buteGetter(info);
5048 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5177 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5049 } 5178 }
5050 5179
5051 static void typeCheckingInterfaceTestInterfaceOrNullAttributeAttributeSetter(v8: :Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 5180 static void typeCheckingInterfaceTestInterfaceOrNullAttributeAttributeSetter(v8: :Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
5052 { 5181 {
5053 v8::Local<v8::Object> holder = info.Holder(); 5182 v8::Local<v8::Object> holder = info.Holder();
5054 ExceptionState exceptionState(ExceptionState::SetterContext, "typeCheckingIn terfaceTestInterfaceOrNullAttribute", "TestObject", holder, info.GetIsolate()); 5183 ExceptionState exceptionState(ExceptionState::SetterContext, "typeCheckingIn terfaceTestInterfaceOrNullAttribute", "TestObject", holder, info.GetIsolate());
5055 TestObject* impl = V8TestObject::toImpl(holder); 5184 TestObject* impl = V8TestObject::toImpl(holder);
5056 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck (info.GetIsolate(), v8Value); 5185 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck (info.GetIsolate(), v8Value);
5057 if (!cppValue && !isUndefinedOrNull(v8Value)) { 5186 if (!cppValue && !isUndefinedOrNull(v8Value)) {
5058 exceptionState.throwTypeError("The provided value is not of type 'TestIn terface'."); 5187 exceptionState.throwTypeError("The provided value is not of type 'TestIn terface'.");
5059 exceptionState.throwIfNeeded(); 5188 exceptionState.throwIfNeeded();
5060 return; 5189 return;
5061 } 5190 }
5062 impl->setTypeCheckingInterfaceTestInterfaceOrNullAttribute(WTF::getPtr(cppVa lue)); 5191 impl->setTypeCheckingInterfaceTestInterfaceOrNullAttribute(WTF::getPtr(cppVa lue));
5063 } 5192 }
5064 5193
5065 static void typeCheckingInterfaceTestInterfaceOrNullAttributeAttributeSetterCall back(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallba ckInfo<void>& info) 5194 static void typeCheckingInterfaceTestInterfaceOrNullAttributeAttributeSetterCall back(const v8::FunctionCallbackInfo<v8::Value>& info)
5066 { 5195 {
5196 v8::Local<v8::Value> v8Value = info[0];
5067 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 5197 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
5068 TestObjectV8Internal::typeCheckingInterfaceTestInterfaceOrNullAttributeAttri buteSetter(v8Value, info); 5198 TestObjectV8Internal::typeCheckingInterfaceTestInterfaceOrNullAttributeAttri buteSetter(v8Value, info);
5069 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5199 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5070 } 5200 }
5071 5201
5072 static void urlStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8: :Value>& info) 5202 static void urlStringAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8: :Value>& info)
5073 { 5203 {
5074 v8::Local<v8::Object> holder = info.Holder(); 5204 v8::Local<v8::Object> holder = info.Holder();
5075 TestObject* impl = V8TestObject::toImpl(holder); 5205 TestObject* impl = V8TestObject::toImpl(holder);
5076 v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::urlstringattri buteAttr), info.GetIsolate()); 5206 v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::urlstringattri buteAttr), info.GetIsolate());
5077 } 5207 }
5078 5208
5079 static void urlStringAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 5209 static void urlStringAttributeAttributeGetterCallback(const v8::FunctionCallback Info<v8::Value>& info)
5080 { 5210 {
5081 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 5211 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
5082 TestObjectV8Internal::urlStringAttributeAttributeGetter(info); 5212 TestObjectV8Internal::urlStringAttributeAttributeGetter(info);
5083 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5213 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5084 } 5214 }
5085 5215
5086 static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons t v8::PropertyCallbackInfo<void>& info) 5216 static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons t v8::FunctionCallbackInfo<v8::Value>& info)
5087 { 5217 {
5088 v8::Local<v8::Object> holder = info.Holder(); 5218 v8::Local<v8::Object> holder = info.Holder();
5089 TestObject* impl = V8TestObject::toImpl(holder); 5219 TestObject* impl = V8TestObject::toImpl(holder);
5090 V8StringResource<> cppValue = v8Value; 5220 V8StringResource<> cppValue = v8Value;
5091 if (!cppValue.prepare()) 5221 if (!cppValue.prepare())
5092 return; 5222 return;
5093 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 5223 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
5094 impl->setAttribute(HTMLNames::urlstringattributeAttr, cppValue); 5224 impl->setAttribute(HTMLNames::urlstringattributeAttr, cppValue);
5095 } 5225 }
5096 5226
5097 static void urlStringAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::L ocal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 5227 static void urlStringAttributeAttributeSetterCallback(const v8::FunctionCallback Info<v8::Value>& info)
5098 { 5228 {
5229 v8::Local<v8::Value> v8Value = info[0];
5099 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 5230 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
5100 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 5231 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
5101 TestObjectV8Internal::urlStringAttributeAttributeSetter(v8Value, info); 5232 TestObjectV8Internal::urlStringAttributeAttributeSetter(v8Value, info);
5102 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5233 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5103 } 5234 }
5104 5235
5105 static void urlStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8: :Value>& info) 5236 static void urlStringAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8: :Value>& info)
5106 { 5237 {
5107 v8::Local<v8::Object> holder = info.Holder(); 5238 v8::Local<v8::Object> holder = info.Holder();
5108 TestObject* impl = V8TestObject::toImpl(holder); 5239 TestObject* impl = V8TestObject::toImpl(holder);
5109 v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::reflectUrlAttr ibuteAttr), info.GetIsolate()); 5240 v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::reflectUrlAttr ibuteAttr), info.GetIsolate());
5110 } 5241 }
5111 5242
5112 static void urlStringAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 5243 static void urlStringAttributeAttributeGetterCallback(const v8::FunctionCallback Info<v8::Value>& info)
5113 { 5244 {
5114 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 5245 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
5115 TestObjectV8Internal::urlStringAttributeAttributeGetter(info); 5246 TestObjectV8Internal::urlStringAttributeAttributeGetter(info);
5116 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5247 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5117 } 5248 }
5118 5249
5119 static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons t v8::PropertyCallbackInfo<void>& info) 5250 static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons t v8::FunctionCallbackInfo<v8::Value>& info)
5120 { 5251 {
5121 v8::Local<v8::Object> holder = info.Holder(); 5252 v8::Local<v8::Object> holder = info.Holder();
5122 TestObject* impl = V8TestObject::toImpl(holder); 5253 TestObject* impl = V8TestObject::toImpl(holder);
5123 V8StringResource<> cppValue = v8Value; 5254 V8StringResource<> cppValue = v8Value;
5124 if (!cppValue.prepare()) 5255 if (!cppValue.prepare())
5125 return; 5256 return;
5126 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 5257 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
5127 impl->setAttribute(HTMLNames::reflectUrlAttributeAttr, cppValue); 5258 impl->setAttribute(HTMLNames::reflectUrlAttributeAttr, cppValue);
5128 } 5259 }
5129 5260
5130 static void urlStringAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::L ocal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 5261 static void urlStringAttributeAttributeSetterCallback(const v8::FunctionCallback Info<v8::Value>& info)
5131 { 5262 {
5263 v8::Local<v8::Value> v8Value = info[0];
5132 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 5264 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
5133 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 5265 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
5134 TestObjectV8Internal::urlStringAttributeAttributeSetter(v8Value, info); 5266 TestObjectV8Internal::urlStringAttributeAttributeSetter(v8Value, info);
5135 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5267 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5136 } 5268 }
5137 5269
5138 static void unforgeableLongAttributeAttributeGetter(const v8::PropertyCallbackIn fo<v8::Value>& info) 5270 static void unforgeableLongAttributeAttributeGetter(const v8::PropertyCallbackIn fo<v8::Value>& info)
5139 { 5271 {
5140 v8::Local<v8::Object> holder = info.Holder(); 5272 v8::Local<v8::Object> holder = info.Holder();
5141 TestObject* impl = V8TestObject::toImpl(holder); 5273 TestObject* impl = V8TestObject::toImpl(holder);
(...skipping 18 matching lines...) Expand all
5160 impl->setUnforgeableLongAttribute(cppValue); 5292 impl->setUnforgeableLongAttribute(cppValue);
5161 } 5293 }
5162 5294
5163 static void unforgeableLongAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 5295 static void unforgeableLongAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
5164 { 5296 {
5165 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 5297 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
5166 TestObjectV8Internal::unforgeableLongAttributeAttributeSetter(v8Value, info) ; 5298 TestObjectV8Internal::unforgeableLongAttributeAttributeSetter(v8Value, info) ;
5167 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5299 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5168 } 5300 }
5169 5301
5170 static void measuredLongAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info) 5302 static void measuredLongAttributeAttributeGetter(const v8::FunctionCallbackInfo< v8::Value>& info)
5171 { 5303 {
5172 v8::Local<v8::Object> holder = info.Holder(); 5304 v8::Local<v8::Object> holder = info.Holder();
5173 TestObject* impl = V8TestObject::toImpl(holder); 5305 TestObject* impl = V8TestObject::toImpl(holder);
5174 v8SetReturnValueInt(info, impl->measuredLongAttribute()); 5306 v8SetReturnValueInt(info, impl->measuredLongAttribute());
5175 } 5307 }
5176 5308
5177 static void measuredLongAttributeAttributeGetterCallback(v8::Local<v8::Name>, co nst v8::PropertyCallbackInfo<v8::Value>& info) 5309 static void measuredLongAttributeAttributeGetterCallback(const v8::FunctionCallb ackInfo<v8::Value>& info)
5178 { 5310 {
5179 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 5311 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
5180 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestObject_MeasuredLongAttribute_AttributeG etter); 5312 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestObject_MeasuredLongAttribute_AttributeG etter);
5181 TestObjectV8Internal::measuredLongAttributeAttributeGetter(info); 5313 TestObjectV8Internal::measuredLongAttributeAttributeGetter(info);
5182 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5314 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5183 } 5315 }
5184 5316
5185 static void measuredLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info) 5317 static void measuredLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::FunctionCallbackInfo<v8::Value>& info)
5186 { 5318 {
5187 v8::Local<v8::Object> holder = info.Holder(); 5319 v8::Local<v8::Object> holder = info.Holder();
5188 ExceptionState exceptionState(ExceptionState::SetterContext, "measuredLongAt tribute", "TestObject", holder, info.GetIsolate()); 5320 ExceptionState exceptionState(ExceptionState::SetterContext, "measuredLongAt tribute", "TestObject", holder, info.GetIsolate());
5189 TestObject* impl = V8TestObject::toImpl(holder); 5321 TestObject* impl = V8TestObject::toImpl(holder);
5190 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 5322 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
5191 if (exceptionState.throwIfNeeded()) 5323 if (exceptionState.throwIfNeeded())
5192 return; 5324 return;
5193 impl->setMeasuredLongAttribute(cppValue); 5325 impl->setMeasuredLongAttribute(cppValue);
5194 } 5326 }
5195 5327
5196 static void measuredLongAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 5328 static void measuredLongAttributeAttributeSetterCallback(const v8::FunctionCallb ackInfo<v8::Value>& info)
5197 { 5329 {
5330 v8::Local<v8::Value> v8Value = info[0];
5198 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 5331 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
5199 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestObject_MeasuredLongAttribute_AttributeS etter); 5332 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestObject_MeasuredLongAttribute_AttributeS etter);
5200 TestObjectV8Internal::measuredLongAttributeAttributeSetter(v8Value, info); 5333 TestObjectV8Internal::measuredLongAttributeAttributeSetter(v8Value, info);
5201 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5334 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5202 } 5335 }
5203 5336
5204 static void sameObjectAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info) 5337 static void sameObjectAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8 ::Value>& info)
5205 { 5338 {
5206 v8::Local<v8::Object> holder = info.Holder(); 5339 v8::Local<v8::Object> holder = info.Holder();
5207 TestObject* impl = V8TestObject::toImpl(holder); 5340 TestObject* impl = V8TestObject::toImpl(holder);
5208 v8SetReturnValueFast(info, WTF::getPtr(impl->sameObjectAttribute()), impl); 5341 v8SetReturnValueFast(info, WTF::getPtr(impl->sameObjectAttribute()), impl);
5209 } 5342 }
5210 5343
5211 static void sameObjectAttributeAttributeGetterCallback(v8::Local<v8::Name>, cons t v8::PropertyCallbackInfo<v8::Value>& info) 5344 static void sameObjectAttributeAttributeGetterCallback(const v8::FunctionCallbac kInfo<v8::Value>& info)
5212 { 5345 {
5213 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 5346 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
5214 TestObjectV8Internal::sameObjectAttributeAttributeGetter(info); 5347 TestObjectV8Internal::sameObjectAttributeAttributeGetter(info);
5215 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5348 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5216 } 5349 }
5217 5350
5218 static void sameObjectAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info) 5351 static void sameObjectAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::FunctionCallbackInfo<v8::Value>& info)
5219 { 5352 {
5220 v8::Local<v8::Object> holder = info.Holder(); 5353 v8::Local<v8::Object> holder = info.Holder();
5221 TestObject* impl = V8TestObject::toImpl(holder); 5354 TestObject* impl = V8TestObject::toImpl(holder);
5222 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck (info.GetIsolate(), v8Value); 5355 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck (info.GetIsolate(), v8Value);
5223 impl->setSameObjectAttribute(WTF::getPtr(cppValue)); 5356 impl->setSameObjectAttribute(WTF::getPtr(cppValue));
5224 } 5357 }
5225 5358
5226 static void sameObjectAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 5359 static void sameObjectAttributeAttributeSetterCallback(const v8::FunctionCallbac kInfo<v8::Value>& info)
5227 { 5360 {
5361 v8::Local<v8::Value> v8Value = info[0];
5228 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 5362 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
5229 TestObjectV8Internal::sameObjectAttributeAttributeSetter(v8Value, info); 5363 TestObjectV8Internal::sameObjectAttributeAttributeSetter(v8Value, info);
5230 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5364 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5231 } 5365 }
5232 5366
5233 static void testInterfaceAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info) 5367 static void testInterfaceAttributeAttributeGetter(const v8::FunctionCallbackInfo <v8::Value>& info)
5234 { 5368 {
5235 v8::Local<v8::Object> holder = info.Holder(); 5369 v8::Local<v8::Object> holder = info.Holder();
5236 TestObject* impl = V8TestObject::toImpl(holder); 5370 TestObject* impl = V8TestObject::toImpl(holder);
5237 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceAttribute()), impl ); 5371 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceAttribute()), impl );
5238 } 5372 }
5239 5373
5240 static void testInterfaceAttributeAttributeGetterCallback(v8::Local<v8::Name>, c onst v8::PropertyCallbackInfo<v8::Value>& info) 5374 static void testInterfaceAttributeAttributeGetterCallback(const v8::FunctionCall backInfo<v8::Value>& info)
5241 { 5375 {
5242 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 5376 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
5243 TestObjectV8Internal::testInterfaceAttributeAttributeGetter(info); 5377 TestObjectV8Internal::testInterfaceAttributeAttributeGetter(info);
5244 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5378 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5245 } 5379 }
5246 5380
5247 static void testInterfaceAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 5381 static void testInterfaceAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
5248 { 5382 {
5249 v8::Local<v8::Object> holder = info.Holder(); 5383 v8::Local<v8::Object> holder = info.Holder();
5250 TestObject* impl = V8TestObject::toImpl(holder); 5384 TestObject* impl = V8TestObject::toImpl(holder);
5251 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck (info.GetIsolate(), v8Value); 5385 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck (info.GetIsolate(), v8Value);
5252 impl->setTestInterfaceAttribute(WTF::getPtr(cppValue)); 5386 impl->setTestInterfaceAttribute(WTF::getPtr(cppValue));
5253 } 5387 }
5254 5388
5255 static void testInterfaceAttributeAttributeSetterCallback(v8::Local<v8::Name>, v 8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 5389 static void testInterfaceAttributeAttributeSetterCallback(const v8::FunctionCall backInfo<v8::Value>& info)
5256 { 5390 {
5391 v8::Local<v8::Value> v8Value = info[0];
5257 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 5392 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
5258 TestObjectV8Internal::testInterfaceAttributeAttributeSetter(v8Value, info); 5393 TestObjectV8Internal::testInterfaceAttributeAttributeSetter(v8Value, info);
5259 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5394 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5260 } 5395 }
5261 5396
5262 static void testInterfaceGarbageCollectedAttributeAttributeGetter(const v8::Prop ertyCallbackInfo<v8::Value>& info) 5397 static void testInterfaceGarbageCollectedAttributeAttributeGetter(const v8::Func tionCallbackInfo<v8::Value>& info)
5263 { 5398 {
5264 v8::Local<v8::Object> holder = info.Holder(); 5399 v8::Local<v8::Object> holder = info.Holder();
5265 TestObject* impl = V8TestObject::toImpl(holder); 5400 TestObject* impl = V8TestObject::toImpl(holder);
5266 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceGarbageCollectedAt tribute()), impl); 5401 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceGarbageCollectedAt tribute()), impl);
5267 } 5402 }
5268 5403
5269 static void testInterfaceGarbageCollectedAttributeAttributeGetterCallback(v8::Lo cal<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 5404 static void testInterfaceGarbageCollectedAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
5270 { 5405 {
5271 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 5406 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
5272 TestObjectV8Internal::testInterfaceGarbageCollectedAttributeAttributeGetter( info); 5407 TestObjectV8Internal::testInterfaceGarbageCollectedAttributeAttributeGetter( info);
5273 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5408 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5274 } 5409 }
5275 5410
5276 static void testInterfaceGarbageCollectedAttributeAttributeSetter(v8::Local<v8:: Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 5411 static void testInterfaceGarbageCollectedAttributeAttributeSetter(v8::Local<v8:: Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
5277 { 5412 {
5278 v8::Local<v8::Object> holder = info.Holder(); 5413 v8::Local<v8::Object> holder = info.Holder();
5279 TestObject* impl = V8TestObject::toImpl(holder); 5414 TestObject* impl = V8TestObject::toImpl(holder);
5280 TestInterfaceGarbageCollected* cppValue = V8TestInterfaceGarbageCollected::t oImplWithTypeCheck(info.GetIsolate(), v8Value); 5415 TestInterfaceGarbageCollected* cppValue = V8TestInterfaceGarbageCollected::t oImplWithTypeCheck(info.GetIsolate(), v8Value);
5281 impl->setTestInterfaceGarbageCollectedAttribute(WTF::getPtr(cppValue)); 5416 impl->setTestInterfaceGarbageCollectedAttribute(WTF::getPtr(cppValue));
5282 } 5417 }
5283 5418
5284 static void testInterfaceGarbageCollectedAttributeAttributeSetterCallback(v8::Lo cal<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info) 5419 static void testInterfaceGarbageCollectedAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
5285 { 5420 {
5421 v8::Local<v8::Value> v8Value = info[0];
5286 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 5422 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
5287 TestObjectV8Internal::testInterfaceGarbageCollectedAttributeAttributeSetter( v8Value, info); 5423 TestObjectV8Internal::testInterfaceGarbageCollectedAttributeAttributeSetter( v8Value, info);
5288 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5424 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5289 } 5425 }
5290 5426
5291 static void testInterfaceGarbageCollectedOrNullAttributeAttributeGetter(const v8 ::PropertyCallbackInfo<v8::Value>& info) 5427 static void testInterfaceGarbageCollectedOrNullAttributeAttributeGetter(const v8 ::FunctionCallbackInfo<v8::Value>& info)
5292 { 5428 {
5293 v8::Local<v8::Object> holder = info.Holder(); 5429 v8::Local<v8::Object> holder = info.Holder();
5294 TestObject* impl = V8TestObject::toImpl(holder); 5430 TestObject* impl = V8TestObject::toImpl(holder);
5295 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceGarbageCollectedOr NullAttribute()), impl); 5431 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceGarbageCollectedOr NullAttribute()), impl);
5296 } 5432 }
5297 5433
5298 static void testInterfaceGarbageCollectedOrNullAttributeAttributeGetterCallback( v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 5434 static void testInterfaceGarbageCollectedOrNullAttributeAttributeGetterCallback( const v8::FunctionCallbackInfo<v8::Value>& info)
5299 { 5435 {
5300 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 5436 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
5301 TestObjectV8Internal::testInterfaceGarbageCollectedOrNullAttributeAttributeG etter(info); 5437 TestObjectV8Internal::testInterfaceGarbageCollectedOrNullAttributeAttributeG etter(info);
5302 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5438 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5303 } 5439 }
5304 5440
5305 static void testInterfaceGarbageCollectedOrNullAttributeAttributeSetter(v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 5441 static void testInterfaceGarbageCollectedOrNullAttributeAttributeSetter(v8::Loca l<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
5306 { 5442 {
5307 v8::Local<v8::Object> holder = info.Holder(); 5443 v8::Local<v8::Object> holder = info.Holder();
5308 TestObject* impl = V8TestObject::toImpl(holder); 5444 TestObject* impl = V8TestObject::toImpl(holder);
5309 TestInterfaceGarbageCollected* cppValue = V8TestInterfaceGarbageCollected::t oImplWithTypeCheck(info.GetIsolate(), v8Value); 5445 TestInterfaceGarbageCollected* cppValue = V8TestInterfaceGarbageCollected::t oImplWithTypeCheck(info.GetIsolate(), v8Value);
5310 impl->setTestInterfaceGarbageCollectedOrNullAttribute(WTF::getPtr(cppValue)) ; 5446 impl->setTestInterfaceGarbageCollectedOrNullAttribute(WTF::getPtr(cppValue)) ;
5311 } 5447 }
5312 5448
5313 static void testInterfaceGarbageCollectedOrNullAttributeAttributeSetterCallback( v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInf o<void>& info) 5449 static void testInterfaceGarbageCollectedOrNullAttributeAttributeSetterCallback( const v8::FunctionCallbackInfo<v8::Value>& info)
5314 { 5450 {
5451 v8::Local<v8::Value> v8Value = info[0];
5315 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 5452 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
5316 TestObjectV8Internal::testInterfaceGarbageCollectedOrNullAttributeAttributeS etter(v8Value, info); 5453 TestObjectV8Internal::testInterfaceGarbageCollectedOrNullAttributeAttributeS etter(v8Value, info);
5317 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5454 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5318 } 5455 }
5319 5456
5320 static void testInterfaceWillBeGarbageCollectedAttributeAttributeGetter(const v8 ::PropertyCallbackInfo<v8::Value>& info) 5457 static void testInterfaceWillBeGarbageCollectedAttributeAttributeGetter(const v8 ::FunctionCallbackInfo<v8::Value>& info)
5321 { 5458 {
5322 v8::Local<v8::Object> holder = info.Holder(); 5459 v8::Local<v8::Object> holder = info.Holder();
5323 TestObject* impl = V8TestObject::toImpl(holder); 5460 TestObject* impl = V8TestObject::toImpl(holder);
5324 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceWillBeGarbageColle ctedAttribute()), impl); 5461 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceWillBeGarbageColle ctedAttribute()), impl);
5325 } 5462 }
5326 5463
5327 static void testInterfaceWillBeGarbageCollectedAttributeAttributeGetterCallback( v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 5464 static void testInterfaceWillBeGarbageCollectedAttributeAttributeGetterCallback( const v8::FunctionCallbackInfo<v8::Value>& info)
5328 { 5465 {
5329 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 5466 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
5330 TestObjectV8Internal::testInterfaceWillBeGarbageCollectedAttributeAttributeG etter(info); 5467 TestObjectV8Internal::testInterfaceWillBeGarbageCollectedAttributeAttributeG etter(info);
5331 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5468 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5332 } 5469 }
5333 5470
5334 static void testInterfaceWillBeGarbageCollectedAttributeAttributeSetter(v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 5471 static void testInterfaceWillBeGarbageCollectedAttributeAttributeSetter(v8::Loca l<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
5335 { 5472 {
5336 v8::Local<v8::Object> holder = info.Holder(); 5473 v8::Local<v8::Object> holder = info.Holder();
5337 TestObject* impl = V8TestObject::toImpl(holder); 5474 TestObject* impl = V8TestObject::toImpl(holder);
5338 TestInterfaceWillBeGarbageCollected* cppValue = V8TestInterfaceWillBeGarbage Collected::toImplWithTypeCheck(info.GetIsolate(), v8Value); 5475 TestInterfaceWillBeGarbageCollected* cppValue = V8TestInterfaceWillBeGarbage Collected::toImplWithTypeCheck(info.GetIsolate(), v8Value);
5339 impl->setTestInterfaceWillBeGarbageCollectedAttribute(WTF::getPtr(cppValue)) ; 5476 impl->setTestInterfaceWillBeGarbageCollectedAttribute(WTF::getPtr(cppValue)) ;
5340 } 5477 }
5341 5478
5342 static void testInterfaceWillBeGarbageCollectedAttributeAttributeSetterCallback( v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInf o<void>& info) 5479 static void testInterfaceWillBeGarbageCollectedAttributeAttributeSetterCallback( const v8::FunctionCallbackInfo<v8::Value>& info)
5343 { 5480 {
5481 v8::Local<v8::Value> v8Value = info[0];
5344 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 5482 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
5345 TestObjectV8Internal::testInterfaceWillBeGarbageCollectedAttributeAttributeS etter(v8Value, info); 5483 TestObjectV8Internal::testInterfaceWillBeGarbageCollectedAttributeAttributeS etter(v8Value, info);
5346 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5484 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5347 } 5485 }
5348 5486
5349 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeGetter(co nst v8::PropertyCallbackInfo<v8::Value>& info) 5487 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeGetter(co nst v8::FunctionCallbackInfo<v8::Value>& info)
5350 { 5488 {
5351 v8::Local<v8::Object> holder = info.Holder(); 5489 v8::Local<v8::Object> holder = info.Holder();
5352 TestObject* impl = V8TestObject::toImpl(holder); 5490 TestObject* impl = V8TestObject::toImpl(holder);
5353 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceWillBeGarbageColle ctedOrNullAttribute()), impl); 5491 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceWillBeGarbageColle ctedOrNullAttribute()), impl);
5354 } 5492 }
5355 5493
5356 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeGetterCal lback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 5494 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeGetterCal lback(const v8::FunctionCallbackInfo<v8::Value>& info)
5357 { 5495 {
5358 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 5496 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
5359 TestObjectV8Internal::testInterfaceWillBeGarbageCollectedOrNullAttributeAttr ibuteGetter(info); 5497 TestObjectV8Internal::testInterfaceWillBeGarbageCollectedOrNullAttributeAttr ibuteGetter(info);
5360 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5498 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5361 } 5499 }
5362 5500
5363 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 5501 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
5364 { 5502 {
5365 v8::Local<v8::Object> holder = info.Holder(); 5503 v8::Local<v8::Object> holder = info.Holder();
5366 TestObject* impl = V8TestObject::toImpl(holder); 5504 TestObject* impl = V8TestObject::toImpl(holder);
5367 TestInterfaceWillBeGarbageCollected* cppValue = V8TestInterfaceWillBeGarbage Collected::toImplWithTypeCheck(info.GetIsolate(), v8Value); 5505 TestInterfaceWillBeGarbageCollected* cppValue = V8TestInterfaceWillBeGarbage Collected::toImplWithTypeCheck(info.GetIsolate(), v8Value);
5368 impl->setTestInterfaceWillBeGarbageCollectedOrNullAttribute(WTF::getPtr(cppV alue)); 5506 impl->setTestInterfaceWillBeGarbageCollectedOrNullAttribute(WTF::getPtr(cppV alue));
5369 } 5507 }
5370 5508
5371 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeSetterCal lback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallb ackInfo<void>& info) 5509 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeSetterCal lback(const v8::FunctionCallbackInfo<v8::Value>& info)
5372 { 5510 {
5511 v8::Local<v8::Value> v8Value = info[0];
5373 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 5512 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
5374 TestObjectV8Internal::testInterfaceWillBeGarbageCollectedOrNullAttributeAttr ibuteSetter(v8Value, info); 5513 TestObjectV8Internal::testInterfaceWillBeGarbageCollectedOrNullAttributeAttr ibuteSetter(v8Value, info);
5375 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5514 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5376 } 5515 }
5377 5516
5378 static void readonlyShortAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info) 5517 static void readonlyShortAttributeAttributeGetter(const v8::FunctionCallbackInfo <v8::Value>& info)
5379 { 5518 {
5380 v8::Local<v8::Object> holder = info.Holder(); 5519 v8::Local<v8::Object> holder = info.Holder();
5381 TestObject* impl = V8TestObject::toImpl(holder); 5520 TestObject* impl = V8TestObject::toImpl(holder);
5382 int result = 0; 5521 int result = 0;
5383 if (!V8TestObject::PrivateScript::readonlyShortAttributeAttributeGetter(toLo calFrame(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, &r esult)) 5522 if (!V8TestObject::PrivateScript::readonlyShortAttributeAttributeGetter(toLo calFrame(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, &r esult))
5384 return; 5523 return;
5385 v8SetReturnValueInt(info, result); 5524 v8SetReturnValueInt(info, result);
5386 } 5525 }
5387 5526
5388 static void readonlyShortAttributeAttributeGetterCallback(v8::Local<v8::Name>, c onst v8::PropertyCallbackInfo<v8::Value>& info) 5527 static void readonlyShortAttributeAttributeGetterCallback(const v8::FunctionCall backInfo<v8::Value>& info)
5389 { 5528 {
5390 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 5529 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
5391 TestObjectV8Internal::readonlyShortAttributeAttributeGetter(info); 5530 TestObjectV8Internal::readonlyShortAttributeAttributeGetter(info);
5392 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5531 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5393 } 5532 }
5394 5533
5395 static void shortAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val ue>& info) 5534 static void shortAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Val ue>& info)
5396 { 5535 {
5397 v8::Local<v8::Object> holder = info.Holder(); 5536 v8::Local<v8::Object> holder = info.Holder();
5398 TestObject* impl = V8TestObject::toImpl(holder); 5537 TestObject* impl = V8TestObject::toImpl(holder);
5399 int result = 0; 5538 int result = 0;
5400 if (!V8TestObject::PrivateScript::shortAttributeAttributeGetter(toLocalFrame (toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, &result)) 5539 if (!V8TestObject::PrivateScript::shortAttributeAttributeGetter(toLocalFrame (toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, &result))
5401 return; 5540 return;
5402 v8SetReturnValueInt(info, result); 5541 v8SetReturnValueInt(info, result);
5403 } 5542 }
5404 5543
5405 static void shortAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8: :PropertyCallbackInfo<v8::Value>& info) 5544 static void shortAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
5406 { 5545 {
5407 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 5546 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
5408 TestObjectV8Internal::shortAttributeAttributeGetter(info); 5547 TestObjectV8Internal::shortAttributeAttributeGetter(info);
5409 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5548 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5410 } 5549 }
5411 5550
5412 static void shortAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::PropertyCallbackInfo<void>& info) 5551 static void shortAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::FunctionCallbackInfo<v8::Value>& info)
5413 { 5552 {
5414 v8::Local<v8::Object> holder = info.Holder(); 5553 v8::Local<v8::Object> holder = info.Holder();
5415 ExceptionState exceptionState(ExceptionState::SetterContext, "shortAttribute ", "TestObject", holder, info.GetIsolate()); 5554 ExceptionState exceptionState(ExceptionState::SetterContext, "shortAttribute ", "TestObject", holder, info.GetIsolate());
5416 TestObject* impl = V8TestObject::toImpl(holder); 5555 TestObject* impl = V8TestObject::toImpl(holder);
5417 int cppValue = toInt16(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 5556 int cppValue = toInt16(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
5418 if (exceptionState.throwIfNeeded()) 5557 if (exceptionState.throwIfNeeded())
5419 return; 5558 return;
5420 V8TestObject::PrivateScript::shortAttributeAttributeSetter(toLocalFrame(toFr ameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, cppValue); 5559 V8TestObject::PrivateScript::shortAttributeAttributeSetter(toLocalFrame(toFr ameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, cppValue);
5421 } 5560 }
5422 5561
5423 static void shortAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local <v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 5562 static void shortAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
5424 { 5563 {
5564 v8::Local<v8::Value> v8Value = info[0];
5425 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 5565 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
5426 TestObjectV8Internal::shortAttributeAttributeSetter(v8Value, info); 5566 TestObjectV8Internal::shortAttributeAttributeSetter(v8Value, info);
5427 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5567 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5428 } 5568 }
5429 5569
5430 static void stringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va lue>& info) 5570 static void stringAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Va lue>& info)
5431 { 5571 {
5432 v8::Local<v8::Object> holder = info.Holder(); 5572 v8::Local<v8::Object> holder = info.Holder();
5433 TestObject* impl = V8TestObject::toImpl(holder); 5573 TestObject* impl = V8TestObject::toImpl(holder);
5434 String result; 5574 String result;
5435 if (!V8TestObject::PrivateScript::stringAttributeAttributeGetter(toLocalFram e(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, &result)) 5575 if (!V8TestObject::PrivateScript::stringAttributeAttributeGetter(toLocalFram e(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, &result))
5436 return; 5576 return;
5437 v8SetReturnValueString(info, result, info.GetIsolate()); 5577 v8SetReturnValueString(info, result, info.GetIsolate());
5438 } 5578 }
5439 5579
5440 static void stringAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8 ::PropertyCallbackInfo<v8::Value>& info) 5580 static void stringAttributeAttributeGetterCallback(const v8::FunctionCallbackInf o<v8::Value>& info)
5441 { 5581 {
5442 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 5582 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
5443 TestObjectV8Internal::stringAttributeAttributeGetter(info); 5583 TestObjectV8Internal::stringAttributeAttributeGetter(info);
5444 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5584 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5445 } 5585 }
5446 5586
5447 static void stringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v 8::PropertyCallbackInfo<void>& info) 5587 static void stringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v 8::FunctionCallbackInfo<v8::Value>& info)
5448 { 5588 {
5449 v8::Local<v8::Object> holder = info.Holder(); 5589 v8::Local<v8::Object> holder = info.Holder();
5450 TestObject* impl = V8TestObject::toImpl(holder); 5590 TestObject* impl = V8TestObject::toImpl(holder);
5451 V8StringResource<> cppValue = v8Value; 5591 V8StringResource<> cppValue = v8Value;
5452 if (!cppValue.prepare()) 5592 if (!cppValue.prepare())
5453 return; 5593 return;
5454 V8TestObject::PrivateScript::stringAttributeAttributeSetter(toLocalFrame(toF rameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, cppValue); 5594 V8TestObject::PrivateScript::stringAttributeAttributeSetter(toLocalFrame(toF rameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, cppValue);
5455 } 5595 }
5456 5596
5457 static void stringAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 5597 static void stringAttributeAttributeSetterCallback(const v8::FunctionCallbackInf o<v8::Value>& info)
5458 { 5598 {
5599 v8::Local<v8::Value> v8Value = info[0];
5459 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 5600 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
5460 TestObjectV8Internal::stringAttributeAttributeSetter(v8Value, info); 5601 TestObjectV8Internal::stringAttributeAttributeSetter(v8Value, info);
5461 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5602 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5462 } 5603 }
5463 5604
5464 static void nodeAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu e>& info) 5605 static void nodeAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Valu e>& info)
5465 { 5606 {
5466 v8::Local<v8::Object> holder = info.Holder(); 5607 v8::Local<v8::Object> holder = info.Holder();
5467 TestObject* impl = V8TestObject::toImpl(holder); 5608 TestObject* impl = V8TestObject::toImpl(holder);
5468 RefPtrWillBeRawPtr<Node> result = nullptr; 5609 RefPtrWillBeRawPtr<Node> result = nullptr;
5469 if (!V8TestObject::PrivateScript::nodeAttributeAttributeGetter(toLocalFrame( toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, &result)) 5610 if (!V8TestObject::PrivateScript::nodeAttributeAttributeGetter(toLocalFrame( toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, &result))
5470 return; 5611 return;
5471 v8SetReturnValueFast(info, WTF::getPtr(result.release()), impl); 5612 v8SetReturnValueFast(info, WTF::getPtr(result.release()), impl);
5472 } 5613 }
5473 5614
5474 static void nodeAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8:: PropertyCallbackInfo<v8::Value>& info) 5615 static void nodeAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo< v8::Value>& info)
5475 { 5616 {
5476 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 5617 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
5477 TestObjectV8Internal::nodeAttributeAttributeGetter(info); 5618 TestObjectV8Internal::nodeAttributeAttributeGetter(info);
5478 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5619 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5479 } 5620 }
5480 5621
5481 static void nodeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info) 5622 static void nodeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :FunctionCallbackInfo<v8::Value>& info)
5482 { 5623 {
5483 v8::Local<v8::Object> holder = info.Holder(); 5624 v8::Local<v8::Object> holder = info.Holder();
5484 TestObject* impl = V8TestObject::toImpl(holder); 5625 TestObject* impl = V8TestObject::toImpl(holder);
5485 Node* cppValue = V8Node::toImplWithTypeCheck(info.GetIsolate(), v8Value); 5626 Node* cppValue = V8Node::toImplWithTypeCheck(info.GetIsolate(), v8Value);
5486 V8TestObject::PrivateScript::nodeAttributeAttributeSetter(toLocalFrame(toFra meIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, cppValue); 5627 V8TestObject::PrivateScript::nodeAttributeAttributeSetter(toLocalFrame(toFra meIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, cppValue);
5487 } 5628 }
5488 5629
5489 static void nodeAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local< v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 5630 static void nodeAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo< v8::Value>& info)
5490 { 5631 {
5632 v8::Local<v8::Value> v8Value = info[0];
5491 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 5633 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
5492 TestObjectV8Internal::nodeAttributeAttributeSetter(v8Value, info); 5634 TestObjectV8Internal::nodeAttributeAttributeSetter(v8Value, info);
5493 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5635 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5494 } 5636 }
5495 5637
5496 static void attributeImplementedInCPPForPrivateScriptOnlyAttributeGetter(const v 8::PropertyCallbackInfo<v8::Value>& info) 5638 static void attributeImplementedInCPPForPrivateScriptOnlyAttributeGetter(const v 8::FunctionCallbackInfo<v8::Value>& info)
5497 { 5639 {
5498 v8::Local<v8::Object> holder = info.Holder(); 5640 v8::Local<v8::Object> holder = info.Holder();
5499 TestObject* impl = V8TestObject::toImpl(holder); 5641 TestObject* impl = V8TestObject::toImpl(holder);
5500 v8SetReturnValueString(info, impl->attributeImplementedInCPPForPrivateScript Only(), info.GetIsolate()); 5642 v8SetReturnValueString(info, impl->attributeImplementedInCPPForPrivateScript Only(), info.GetIsolate());
5501 } 5643 }
5502 5644
5503 static void attributeImplementedInCPPForPrivateScriptOnlyAttributeGetterCallback (v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 5645 static void attributeImplementedInCPPForPrivateScriptOnlyAttributeGetterCallback (const v8::FunctionCallbackInfo<v8::Value>& info)
5504 { 5646 {
5505 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 5647 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
5506 TestObjectV8Internal::attributeImplementedInCPPForPrivateScriptOnlyAttribute Getter(info); 5648 TestObjectV8Internal::attributeImplementedInCPPForPrivateScriptOnlyAttribute Getter(info);
5507 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5649 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5508 } 5650 }
5509 5651
5510 static void attributeImplementedInCPPForPrivateScriptOnlyAttributeSetter(v8::Loc al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 5652 static void attributeImplementedInCPPForPrivateScriptOnlyAttributeSetter(v8::Loc al<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
5511 { 5653 {
5512 v8::Local<v8::Object> holder = info.Holder(); 5654 v8::Local<v8::Object> holder = info.Holder();
5513 TestObject* impl = V8TestObject::toImpl(holder); 5655 TestObject* impl = V8TestObject::toImpl(holder);
5514 V8StringResource<> cppValue = v8Value; 5656 V8StringResource<> cppValue = v8Value;
5515 if (!cppValue.prepare()) 5657 if (!cppValue.prepare())
5516 return; 5658 return;
5517 impl->setAttributeImplementedInCPPForPrivateScriptOnly(cppValue); 5659 impl->setAttributeImplementedInCPPForPrivateScriptOnly(cppValue);
5518 } 5660 }
5519 5661
5520 static void attributeImplementedInCPPForPrivateScriptOnlyAttributeSetterCallback (v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackIn fo<void>& info) 5662 static void attributeImplementedInCPPForPrivateScriptOnlyAttributeSetterCallback (const v8::FunctionCallbackInfo<v8::Value>& info)
5521 { 5663 {
5664 v8::Local<v8::Value> v8Value = info[0];
5522 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 5665 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
5523 TestObjectV8Internal::attributeImplementedInCPPForPrivateScriptOnlyAttribute Setter(v8Value, info); 5666 TestObjectV8Internal::attributeImplementedInCPPForPrivateScriptOnlyAttribute Setter(v8Value, info);
5524 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5667 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5525 } 5668 }
5526 5669
5527 static void enumForPrivateScriptAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info) 5670 static void enumForPrivateScriptAttributeGetter(const v8::FunctionCallbackInfo<v 8::Value>& info)
5528 { 5671 {
5529 v8::Local<v8::Object> holder = info.Holder(); 5672 v8::Local<v8::Object> holder = info.Holder();
5530 TestObject* impl = V8TestObject::toImpl(holder); 5673 TestObject* impl = V8TestObject::toImpl(holder);
5531 String result; 5674 String result;
5532 if (!V8TestObject::PrivateScript::enumForPrivateScriptAttributeGetter(toLoca lFrame(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, &res ult)) 5675 if (!V8TestObject::PrivateScript::enumForPrivateScriptAttributeGetter(toLoca lFrame(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, &res ult))
5533 return; 5676 return;
5534 v8SetReturnValueString(info, result, info.GetIsolate()); 5677 v8SetReturnValueString(info, result, info.GetIsolate());
5535 } 5678 }
5536 5679
5537 static void enumForPrivateScriptAttributeGetterCallback(v8::Local<v8::Name>, con st v8::PropertyCallbackInfo<v8::Value>& info) 5680 static void enumForPrivateScriptAttributeGetterCallback(const v8::FunctionCallba ckInfo<v8::Value>& info)
5538 { 5681 {
5539 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 5682 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
5540 TestObjectV8Internal::enumForPrivateScriptAttributeGetter(info); 5683 TestObjectV8Internal::enumForPrivateScriptAttributeGetter(info);
5541 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5684 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5542 } 5685 }
5543 5686
5544 static void enumForPrivateScriptAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& info) 5687 static void enumForPrivateScriptAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::FunctionCallbackInfo<v8::Value>& info)
5545 { 5688 {
5546 v8::Local<v8::Object> holder = info.Holder(); 5689 v8::Local<v8::Object> holder = info.Holder();
5547 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", holder, info.GetIsolate()); 5690 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", holder, info.GetIsolate());
5548 TestObject* impl = V8TestObject::toImpl(holder); 5691 TestObject* impl = V8TestObject::toImpl(holder);
5549 V8StringResource<> cppValue = v8Value; 5692 V8StringResource<> cppValue = v8Value;
5550 if (!cppValue.prepare()) 5693 if (!cppValue.prepare())
5551 return; 5694 return;
5552 static const char* validValues[] = { 5695 static const char* validValues[] = {
5553 "", 5696 "",
5554 "EnumValue1", 5697 "EnumValue1",
5555 "EnumValue2", 5698 "EnumValue2",
5556 "EnumValue3", 5699 "EnumValue3",
5557 }; 5700 };
5558 if (!isValidEnum(cppValue, validValues, WTF_ARRAY_LENGTH(validValues), "Test Enum", exceptionState)) { 5701 if (!isValidEnum(cppValue, validValues, WTF_ARRAY_LENGTH(validValues), "Test Enum", exceptionState)) {
5559 currentExecutionContext(info.GetIsolate())->addConsoleMessage(ConsoleMes sage::create(JSMessageSource, WarningMessageLevel, exceptionState.message())); 5702 currentExecutionContext(info.GetIsolate())->addConsoleMessage(ConsoleMes sage::create(JSMessageSource, WarningMessageLevel, exceptionState.message()));
5560 return; 5703 return;
5561 } 5704 }
5562 V8TestObject::PrivateScript::enumForPrivateScriptAttributeSetter(toLocalFram e(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, cppValue) ; 5705 V8TestObject::PrivateScript::enumForPrivateScriptAttributeSetter(toLocalFram e(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, cppValue) ;
5563 } 5706 }
5564 5707
5565 static void enumForPrivateScriptAttributeSetterCallback(v8::Local<v8::Name>, v8: :Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 5708 static void enumForPrivateScriptAttributeSetterCallback(const v8::FunctionCallba ckInfo<v8::Value>& info)
5566 { 5709 {
5710 v8::Local<v8::Value> v8Value = info[0];
5567 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 5711 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
5568 TestObjectV8Internal::enumForPrivateScriptAttributeSetter(v8Value, info); 5712 TestObjectV8Internal::enumForPrivateScriptAttributeSetter(v8Value, info);
5569 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5713 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5570 } 5714 }
5571 5715
5572 static void testInterfaceEmptyConstructorAttributeConstructorGetterCallback(v8:: Local<v8::Name> property, const v8::PropertyCallbackInfo<v8::Value>& info) 5716 static void testInterfaceEmptyConstructorAttributeConstructorGetterCallback(v8:: Local<v8::Name> property, const v8::PropertyCallbackInfo<v8::Value>& info)
5573 { 5717 {
5574 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 5718 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
5575 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe cutionContext(info.GetIsolate()), UseCounter::deprecatedTestInterfaceEmptyConstr uctorAttribute); 5719 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe cutionContext(info.GetIsolate()), UseCounter::deprecatedTestInterfaceEmptyConstr uctorAttribute);
5576 v8ConstructorAttributeGetter(property, info); 5720 v8ConstructorAttributeGetter(property, info);
(...skipping 6568 matching lines...) Expand 10 before | Expand all | Expand 10 after
12145 static void namedPropertyEnumeratorCallback(const v8::PropertyCallbackInfo<v8::A rray>& info) 12289 static void namedPropertyEnumeratorCallback(const v8::PropertyCallbackInfo<v8::A rray>& info)
12146 { 12290 {
12147 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMNamedProperty"); 12291 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMNamedProperty");
12148 TestObjectV8Internal::namedPropertyEnumerator(info); 12292 TestObjectV8Internal::namedPropertyEnumerator(info);
12149 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 12293 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
12150 } 12294 }
12151 12295
12152 } // namespace TestObjectV8Internal 12296 } // namespace TestObjectV8Internal
12153 12297
12154 static const V8DOMConfiguration::AttributeConfiguration V8TestObjectAttributes[] = { 12298 static const V8DOMConfiguration::AttributeConfiguration V8TestObjectAttributes[] = {
12155 {"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},
12156 {"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},
12157 {"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},
12158 {"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},
12159 {"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},
12160 {"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} ,
12161 {"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},
12162 {"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},
12163 {"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},
12164 {"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},
12165 {"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},
12166 {"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} ,
12167 {"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},
12168 {"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},
12169 {"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},
12170 {"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},
12171 {"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},
12172 {"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},
12173 {"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},
12174 {"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},
12175 {"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},
12176 {"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},
12177 {"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},
12178 {"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},
12179 {"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},
12180 {"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 },
12181 {"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},
12182 {"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},
12183 {"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},
12184 {"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},
12185 {"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},
12186 {"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},
12187 {"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},
12188 {"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},
12189 {"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} ,
12190 {"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},
12191 {"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},
12192 {"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},
12193 {"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},
12194 {"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},
12195 {"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},
12196 {"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},
12197 {"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},
12198 {"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},
12199 {"self", TestObjectV8Internal::selfAttributeGetterCallback, 0, 0, 0, 0, stat ic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8:: None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
12200 {"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},
12201 {"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},
12202 {"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},
12203 {"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},
12204 {"htmlElementAttribute", TestObjectV8Internal::htmlElementAttributeAttribute GetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_ cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
12205 {"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},
12206 {"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},
12207 {"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},
12208 {"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},
12209 {"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},
12210 {"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},
12211 {"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},
12212 {"testEnumOrNullAttribute", TestObjectV8Internal::testEnumOrNullAttributeAtt ributeGetterCallback, TestObjectV8Internal::testEnumOrNullAttributeAttributeSett erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8 ::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMCo nfiguration::OnInstance},
12213 {"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},
12214 {"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},
12215 {"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},
12216 {"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},
12217 {"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},
12218 {"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},
12219 {"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},
12220 {"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},
12221 {"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},
12222 {"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},
12223 {"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},
12224 {"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},
12225 {"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},
12226 {"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},
12227 {"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},
12228 {"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},
12229 {"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 },
12230 #if ENABLE(CONDITION)
12231 {"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},
12232 #endif // ENABLE(CONDITION)
12233 {"testInterfaceEmptyConstructorAttribute", v8ConstructorAttributeGetter, Tes tObjectV8Internal::testInterfaceEmptyConstructorAttributeAttributeSetterCallback , 0, 0, const_cast<WrapperTypeInfo*>(&V8TestInterfaceEmpty::wrapperTypeInfo), st atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8 ::DontEnum), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInst ance}, 12299 {"testInterfaceEmptyConstructorAttribute", v8ConstructorAttributeGetter, Tes tObjectV8Internal::testInterfaceEmptyConstructorAttributeAttributeSetterCallback , 0, 0, const_cast<WrapperTypeInfo*>(&V8TestInterfaceEmpty::wrapperTypeInfo), st atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8 ::DontEnum), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInst ance},
12234 {"testInterfaceEmptyConstructorAttribute", TestObjectV8Internal::testInterfa ceEmptyConstructorAttributeConstructorGetterCallback, TestObjectV8Internal::test InterfaceEmptyConstructorAttributeAttributeSetterCallback, 0, 0, const_cast<Wrap perTypeInfo*>(&V8TestInterfaceEmpty::wrapperTypeInfo), static_cast<v8::AccessCon trol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfi guration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, 12300 {"testInterfaceEmptyConstructorAttribute", TestObjectV8Internal::testInterfa ceEmptyConstructorAttributeConstructorGetterCallback, TestObjectV8Internal::test InterfaceEmptyConstructorAttributeAttributeSetterCallback, 0, 0, const_cast<Wrap perTypeInfo*>(&V8TestInterfaceEmpty::wrapperTypeInfo), static_cast<v8::AccessCon trol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfi guration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
12235 {"measureAsFeatureNameTestInterfaceEmptyConstructorAttribute", TestObjectV8I nternal::measureAsFeatureNameTestInterfaceEmptyConstructorAttributeConstructorGe tterCallback, TestObjectV8Internal::measureAsFeatureNameTestInterfaceEmptyConstr uctorAttributeAttributeSetterCallback, 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}, 12301 {"measureAsFeatureNameTestInterfaceEmptyConstructorAttribute", TestObjectV8I nternal::measureAsFeatureNameTestInterfaceEmptyConstructorAttributeConstructorGe tterCallback, TestObjectV8Internal::measureAsFeatureNameTestInterfaceEmptyConstr uctorAttributeAttributeSetterCallback, 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},
12236 {"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}, 12302 {"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},
12237 {"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}, 12303 {"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},
12238 {"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}, 12304 {"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},
12239 {"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}, 12305 {"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},
12240 #if ENABLE(CONDITION) 12306 #if ENABLE(CONDITION)
12241 {"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}, 12307 {"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},
12242 #endif // ENABLE(CONDITION) 12308 #endif // ENABLE(CONDITION)
12243 {"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},
12244 {"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},
12245 {"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},
12246 {"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},
12247 {"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}, 12309 {"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},
12248 {"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}, 12310 {"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},
12249 {"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}, 12311 {"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},
12250 {"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},
12251 {"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},
12252 {"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},
12253 {"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},
12254 {"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},
12255 {"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},
12256 {"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},
12257 {"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},
12258 {"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},
12259 {"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},
12260 {"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},
12261 {"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},
12262 {"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},
12263 {"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},
12264 {"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},
12265 {"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},
12266 {"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},
12267 {"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},
12268 {"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 },
12269 {"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},
12270 {"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},
12271 {"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 },
12272 {"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},
12273 {"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},
12274 {"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},
12275 {"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},
12276 {"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},
12277 {"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},
12278 {"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},
12279 {"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},
12280 {"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},
12281 {"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},
12282 {"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},
12283 {"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},
12284 {"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},
12285 {"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},
12286 {"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},
12287 {"corsSettingAttribute", TestObjectV8Internal::corsSettingAttributeAttribute GetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_ cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
12288 {"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},
12289 {"replaceableReadonlyLongAttribute", TestObjectV8Internal::replaceableReadon lyLongAttributeAttributeGetterCallback, TestObjectV8Internal::replaceableReadonl yLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v 8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::E xposedToAllScripts, V8DOMConfiguration::OnInstance},
12290 {"locationPutForwards", TestObjectV8Internal::locationPutForwardsAttributeGe tterCallback, TestObjectV8Internal::locationPutForwardsAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration: :OnInstance},
12291 {"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},
12292 {"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},
12293 {"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},
12294 {"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},
12295 {"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},
12296 {"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},
12297 {"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},
12298 {"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},
12299 {"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},
12300 {"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},
12301 {"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},
12302 {"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},
12303 {"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},
12304 {"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},
12305 {"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},
12306 {"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},
12307 {"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}, 12312 {"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},
12308 {"measuredLongAttribute", TestObjectV8Internal::measuredLongAttributeAttribu teGetterCallback, TestObjectV8Internal::measuredLongAttributeAttributeSetterCall back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop ertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigur ation::OnInstance},
12309 {"sameObjectAttribute", TestObjectV8Internal::sameObjectAttributeAttributeGe tterCallback, TestObjectV8Internal::sameObjectAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration: :OnInstance},
12310 {"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},
12311 {"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},
12312 {"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},
12313 {"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},
12314 {"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},
12315 {"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},
12316 {"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},
12317 {"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} ,
12318 {"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},
12319 {"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},
12320 {"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},
12321 }; 12313 };
12322 12314
12323 static const V8DOMConfiguration::AccessorConfiguration V8TestObjectAccessors[] = { 12315 static const V8DOMConfiguration::AccessorConfiguration V8TestObjectAccessors[] = {
12316 {"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},
12317 {"readonlyStringAttribute", TestObjectV8Internal::readonlyStringAttributeAtt ributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), s tatic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScr ipts},
12318 {"readonlyTestInterfaceEmptyAttribute", TestObjectV8Internal::readonlyTestIn terfaceEmptyAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::Access Control>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfig uration::ExposedToAllScripts},
12319 {"readonlyLongAttribute", TestObjectV8Internal::readonlyLongAttributeAttribu teGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati c_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts },
12320 {"dateAttribute", TestObjectV8Internal::dateAttributeAttributeGetterCallback , TestObjectV8Internal::dateAttributeAttributeSetterCallback, 0, 0, 0, static_ca st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None) , V8DOMConfiguration::ExposedToAllScripts},
12321 {"stringAttribute", TestObjectV8Internal::stringAttributeAttributeGetterCall back, TestObjectV8Internal::stringAttributeAttributeSetterCallback, 0, 0, 0, sta tic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8: :None), V8DOMConfiguration::ExposedToAllScripts},
12322 {"byteStringAttribute", TestObjectV8Internal::byteStringAttributeAttributeGe tterCallback, TestObjectV8Internal::byteStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
12323 {"usvStringAttribute", TestObjectV8Internal::usvStringAttributeAttributeGett erCallback, TestObjectV8Internal::usvStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri bute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
12324 {"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},
12325 {"booleanAttribute", TestObjectV8Internal::booleanAttributeAttributeGetterCa llback, TestObjectV8Internal::booleanAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>( v8::None), V8DOMConfiguration::ExposedToAllScripts},
12326 {"byteAttribute", TestObjectV8Internal::byteAttributeAttributeGetterCallback , TestObjectV8Internal::byteAttributeAttributeSetterCallback, 0, 0, 0, static_ca st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None) , V8DOMConfiguration::ExposedToAllScripts},
12327 {"doubleAttribute", TestObjectV8Internal::doubleAttributeAttributeGetterCall back, TestObjectV8Internal::doubleAttributeAttributeSetterCallback, 0, 0, 0, sta tic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8: :None), V8DOMConfiguration::ExposedToAllScripts},
12328 {"floatAttribute", TestObjectV8Internal::floatAttributeAttributeGetterCallba ck, TestObjectV8Internal::floatAttributeAttributeSetterCallback, 0, 0, 0, static _cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No ne), V8DOMConfiguration::ExposedToAllScripts},
12329 {"longAttribute", TestObjectV8Internal::longAttributeAttributeGetterCallback , TestObjectV8Internal::longAttributeAttributeSetterCallback, 0, 0, 0, static_ca st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None) , V8DOMConfiguration::ExposedToAllScripts},
12330 {"longLongAttribute", TestObjectV8Internal::longLongAttributeAttributeGetter Callback, TestObjectV8Internal::longLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribut e>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
12331 {"octetAttribute", TestObjectV8Internal::octetAttributeAttributeGetterCallba ck, TestObjectV8Internal::octetAttributeAttributeSetterCallback, 0, 0, 0, static _cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No ne), V8DOMConfiguration::ExposedToAllScripts},
12332 {"shortAttribute", TestObjectV8Internal::shortAttributeAttributeGetterCallba ck, TestObjectV8Internal::shortAttributeAttributeSetterCallback, 0, 0, 0, static _cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No ne), V8DOMConfiguration::ExposedToAllScripts},
12333 {"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},
12334 {"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 },
12335 {"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},
12336 {"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},
12337 {"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},
12338 {"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},
12339 {"testObjectAttribute", TestObjectV8Internal::testObjectAttributeAttributeGe tterCallback, TestObjectV8Internal::testObjectAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
12340 {"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},
12341 {"anyCallbackFunctionOptionalAnyArgAttribute", TestObjectV8Internal::anyCall backFunctionOptionalAnyArgAttributeAttributeGetterCallback, TestObjectV8Internal ::anyCallbackFunctionOptionalAnyArgAttributeAttributeSetterCallback, 0, 0, 0, st atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8 ::None), V8DOMConfiguration::ExposedToAllScripts},
12342 {"cssAttribute", TestObjectV8Internal::cssAttributeAttributeGetterCallback, TestObjectV8Internal::cssAttributeAttributeSetterCallback, 0, 0, 0, static_cast< v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V 8DOMConfiguration::ExposedToAllScripts},
12343 {"imeAttribute", TestObjectV8Internal::imeAttributeAttributeGetterCallback, TestObjectV8Internal::imeAttributeAttributeSetterCallback, 0, 0, 0, static_cast< v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V 8DOMConfiguration::ExposedToAllScripts},
12344 {"svgAttribute", TestObjectV8Internal::svgAttributeAttributeGetterCallback, TestObjectV8Internal::svgAttributeAttributeSetterCallback, 0, 0, 0, static_cast< v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V 8DOMConfiguration::ExposedToAllScripts},
12345 {"xmlAttribute", TestObjectV8Internal::xmlAttributeAttributeGetterCallback, TestObjectV8Internal::xmlAttributeAttributeSetterCallback, 0, 0, 0, static_cast< v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V 8DOMConfiguration::ExposedToAllScripts},
12346 {"nodeFilterAttribute", TestObjectV8Internal::nodeFilterAttributeAttributeGe tterCallback, TestObjectV8Internal::nodeFilterAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
12347 {"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},
12348 {"anyAttribute", TestObjectV8Internal::anyAttributeAttributeGetterCallback, TestObjectV8Internal::anyAttributeAttributeSetterCallback, 0, 0, 0, static_cast< v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V 8DOMConfiguration::ExposedToAllScripts},
12349 {"promiseAttribute", TestObjectV8Internal::promiseAttributeAttributeGetterCa llback, TestObjectV8Internal::promiseAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>( v8::None), V8DOMConfiguration::ExposedToAllScripts},
12350 {"windowAttribute", TestObjectV8Internal::windowAttributeAttributeGetterCall back, TestObjectV8Internal::windowAttributeAttributeSetterCallback, 0, 0, 0, sta tic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8: :None), V8DOMConfiguration::ExposedToAllScripts},
12351 {"documentAttribute", TestObjectV8Internal::documentAttributeAttributeGetter Callback, TestObjectV8Internal::documentAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribut e>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
12352 {"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},
12353 {"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},
12354 {"elementAttribute", TestObjectV8Internal::elementAttributeAttributeGetterCa llback, TestObjectV8Internal::elementAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>( v8::None), V8DOMConfiguration::ExposedToAllScripts},
12355 {"nodeAttribute", TestObjectV8Internal::nodeAttributeAttributeGetterCallback , TestObjectV8Internal::nodeAttributeAttributeSetterCallback, 0, 0, 0, static_ca st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None) , V8DOMConfiguration::ExposedToAllScripts},
12356 {"shadowRootAttribute", TestObjectV8Internal::shadowRootAttributeAttributeGe tterCallback, TestObjectV8Internal::shadowRootAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
12357 {"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},
12358 {"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},
12359 {"uint8ArrayAttribute", TestObjectV8Internal::uint8ArrayAttributeAttributeGe tterCallback, TestObjectV8Internal::uint8ArrayAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
12360 {"self", TestObjectV8Internal::selfAttributeGetterCallback, 0, 0, 0, 0, stat ic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8:: None), V8DOMConfiguration::ExposedToAllScripts},
12361 {"readonlyEventTargetAttribute", TestObjectV8Internal::readonlyEventTargetAt tributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::D EFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Expos edToAllScripts},
12362 {"readonlyEventTargetOrNullAttribute", TestObjectV8Internal::readonlyEventTa rgetOrNullAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessCo ntrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigur ation::ExposedToAllScripts},
12363 {"readonlyWindowAttribute", TestObjectV8Internal::readonlyWindowAttributeAtt ributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), s tatic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScr ipts},
12364 {"htmlCollectionAttribute", TestObjectV8Internal::htmlCollectionAttributeAtt ributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), s tatic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScr ipts},
12365 {"htmlElementAttribute", TestObjectV8Internal::htmlElementAttributeAttribute GetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_ cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
12366 {"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},
12367 {"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},
12368 {"floatArrayAttribute", TestObjectV8Internal::floatArrayAttributeAttributeGe tterCallback, TestObjectV8Internal::floatArrayAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
12369 {"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},
12370 {"longOrNullAttribute", TestObjectV8Internal::longOrNullAttributeAttributeGe tterCallback, TestObjectV8Internal::longOrNullAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
12371 {"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},
12372 {"testEnumAttribute", TestObjectV8Internal::testEnumAttributeAttributeGetter Callback, TestObjectV8Internal::testEnumAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribut e>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
12373 {"testEnumOrNullAttribute", TestObjectV8Internal::testEnumOrNullAttributeAtt ributeGetterCallback, TestObjectV8Internal::testEnumOrNullAttributeAttributeSett erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8 ::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
12374 {"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},
12375 {"doubleOrStringAttribute", TestObjectV8Internal::doubleOrStringAttributeAtt ributeGetterCallback, TestObjectV8Internal::doubleOrStringAttributeAttributeSett erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8 ::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
12376 {"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},
12377 {"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},
12378 {"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},
12379 {"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},
12380 {"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},
12381 {"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},
12382 {"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},
12383 {"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},
12384 {"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},
12385 {"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},
12386 {"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},
12387 {"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},
12388 {"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},
12389 {"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},
12390 {"checkSecurityForNodeReadonlyDocumentAttribute", TestObjectV8Internal::chec kSecurityForNodeReadonlyDocumentAttributeAttributeGetterCallback, 0, 0, 0, 0, st atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8 ::None), V8DOMConfiguration::ExposedToAllScripts},
12391 {"conditionalLongAttribute", TestObjectV8Internal::conditionalLongAttributeA ttributeGetterCallback, TestObjectV8Internal::conditionalLongAttributeAttributeS etterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast <v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
12392 {"customElementsCallbacksReadonlyLongAttribute", TestObjectV8Internal::custo mElementsCallbacksReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, stat ic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8:: None), V8DOMConfiguration::ExposedToAllScripts},
12393 {"deprecatedLongAttribute", TestObjectV8Internal::deprecatedLongAttributeAtt ributeGetterCallback, TestObjectV8Internal::deprecatedLongAttributeAttributeSett erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8 ::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
12394 {"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},
12324 {"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}, 12395 {"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},
12396 {"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 },
12397 {"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},
12398 {"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},
12399 {"perWorldBindingsReadonlyTestInterfaceEmptyAttribute", TestObjectV8Internal ::perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCallback, 0, TestObjectV8Internal::perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttrib uteGetterCallbackForMainWorld, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT) , static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAll Scripts},
12400 {"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},
12401 {"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},
12402 {"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},
12403 {"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},
12404 {"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},
12405 {"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},
12406 {"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},
12407 {"locationByteString", TestObjectV8Internal::locationByteStringAttributeGett erCallback, TestObjectV8Internal::locationByteStringAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri bute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
12408 {"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},
12409 {"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},
12410 {"locationGarbageCollected", TestObjectV8Internal::locationGarbageCollectedA ttributeGetterCallback, TestObjectV8Internal::locationGarbageCollectedAttributeS etterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast <v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
12411 {"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},
12412 {"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},
12413 {"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},
12414 {"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},
12415 {"raisesExceptionTestInterfaceEmptyAttribute", TestObjectV8Internal::raisesE xceptionTestInterfaceEmptyAttributeAttributeGetterCallback, TestObjectV8Internal ::raisesExceptionTestInterfaceEmptyAttributeAttributeSetterCallback, 0, 0, 0, st atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8 ::None), V8DOMConfiguration::ExposedToAllScripts},
12416 {"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},
12417 {"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},
12418 {"reflectReflectedNameAttributeTestAttribute", TestObjectV8Internal::reflect ReflectedNameAttributeTestAttributeAttributeGetterCallback, TestObjectV8Internal ::reflectReflectedNameAttributeTestAttributeAttributeSetterCallback, 0, 0, 0, st atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8 ::None), V8DOMConfiguration::ExposedToAllScripts},
12419 {"reflectBooleanAttribute", TestObjectV8Internal::reflectBooleanAttributeAtt ributeGetterCallback, TestObjectV8Internal::reflectBooleanAttributeAttributeSett erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8 ::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
12420 {"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},
12421 {"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},
12422 {"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},
12423 {"id", TestObjectV8Internal::idAttributeGetterCallback, TestObjectV8Internal ::idAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT ), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAl lScripts},
12424 {"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},
12425 {"class", TestObjectV8Internal::classAttributeGetterCallback, TestObjectV8In ternal::classAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8 ::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Ex posedToAllScripts},
12426 {"reflectedId", TestObjectV8Internal::reflectedIdAttributeGetterCallback, Te stObjectV8Internal::reflectedIdAttributeSetterCallback, 0, 0, 0, static_cast<v8: :AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DO MConfiguration::ExposedToAllScripts},
12427 {"reflectedName", TestObjectV8Internal::reflectedNameAttributeGetterCallback , TestObjectV8Internal::reflectedNameAttributeSetterCallback, 0, 0, 0, static_ca st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None) , V8DOMConfiguration::ExposedToAllScripts},
12428 {"reflectedClass", TestObjectV8Internal::reflectedClassAttributeGetterCallba ck, TestObjectV8Internal::reflectedClassAttributeSetterCallback, 0, 0, 0, static _cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No ne), V8DOMConfiguration::ExposedToAllScripts},
12429 {"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},
12430 {"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},
12431 {"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},
12432 {"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},
12433 {"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},
12434 {"corsSettingAttribute", TestObjectV8Internal::corsSettingAttributeAttribute GetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_ cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
12435 {"limitedWithEmptyMissingInvalidAttribute", TestObjectV8Internal::limitedWit hEmptyMissingInvalidAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8 ::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8D OMConfiguration::ExposedToAllScripts},
12436 {"replaceableReadonlyLongAttribute", TestObjectV8Internal::replaceableReadon lyLongAttributeAttributeGetterCallback, TestObjectV8Internal::replaceableReadonl yLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v 8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::E xposedToAllScripts},
12325 {"replaceableReadonlyLongAccessor", TestObjectV8Internal::replaceableReadonl yLongAccessorAttributeGetterCallback, TestObjectV8Internal::replaceableReadonlyL ongAccessorAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8:: DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Expo sedToAllScripts}, 12437 {"replaceableReadonlyLongAccessor", TestObjectV8Internal::replaceableReadonl yLongAccessorAttributeGetterCallback, TestObjectV8Internal::replaceableReadonlyL ongAccessorAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8:: DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Expo sedToAllScripts},
12438 {"locationPutForwards", TestObjectV8Internal::locationPutForwardsAttributeGe tterCallback, TestObjectV8Internal::locationPutForwardsAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
12439 {"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},
12440 {"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},
12441 {"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},
12442 {"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},
12443 {"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},
12444 {"treatReturnedNullStringAsUndefinedStringAttribute", TestObjectV8Internal:: treatReturnedNullStringAsUndefinedStringAttributeAttributeGetterCallback, TestOb jectV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAttributeSetter Callback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8:: PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
12445 {"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},
12446 {"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},
12447 {"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},
12448 {"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},
12449 {"treatReturnedNullStringAsUndefinedUSVStringAttribute", TestObjectV8Interna l::treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeGetterCallback, TestObjectV8Internal::treatReturnedNullStringAsUndefinedUSVStringAttributeAttrib uteSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_ cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
12450 {"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},
12451 {"typeCheckingInterfaceTestInterfaceAttribute", TestObjectV8Internal::typeCh eckingInterfaceTestInterfaceAttributeAttributeGetterCallback, TestObjectV8Intern al::typeCheckingInterfaceTestInterfaceAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute> (v8::None), V8DOMConfiguration::ExposedToAllScripts},
12452 {"typeCheckingInterfaceTestInterfaceOrNullAttribute", TestObjectV8Internal:: typeCheckingInterfaceTestInterfaceOrNullAttributeAttributeGetterCallback, TestOb jectV8Internal::typeCheckingInterfaceTestInterfaceOrNullAttributeAttributeSetter Callback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8:: PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
12453 {"urlStringAttribute", TestObjectV8Internal::urlStringAttributeAttributeGett erCallback, TestObjectV8Internal::urlStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri bute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
12454 {"urlStringAttribute", TestObjectV8Internal::urlStringAttributeAttributeGett erCallback, TestObjectV8Internal::urlStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri bute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
12455 {"measuredLongAttribute", TestObjectV8Internal::measuredLongAttributeAttribu teGetterCallback, TestObjectV8Internal::measuredLongAttributeAttributeSetterCall back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop ertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
12456 {"sameObjectAttribute", TestObjectV8Internal::sameObjectAttributeAttributeGe tterCallback, TestObjectV8Internal::sameObjectAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
12457 {"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},
12458 {"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},
12459 {"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},
12460 {"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},
12461 {"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},
12462 {"readonlyShortAttribute", TestObjectV8Internal::readonlyShortAttributeAttri buteGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), sta tic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScrip ts},
12463 {"shortAttribute", TestObjectV8Internal::shortAttributeAttributeGetterCallba ck, TestObjectV8Internal::shortAttributeAttributeSetterCallback, 0, 0, 0, static _cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No ne), V8DOMConfiguration::ExposedToAllScripts},
12464 {"stringAttribute", TestObjectV8Internal::stringAttributeAttributeGetterCall back, TestObjectV8Internal::stringAttributeAttributeSetterCallback, 0, 0, 0, sta tic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8: :None), V8DOMConfiguration::ExposedToAllScripts},
12465 {"nodeAttribute", TestObjectV8Internal::nodeAttributeAttributeGetterCallback , TestObjectV8Internal::nodeAttributeAttributeSetterCallback, 0, 0, 0, static_ca st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None) , V8DOMConfiguration::ExposedToAllScripts},
12466 {"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},
12467 {"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},
12326 }; 12468 };
12327 12469
12328 static const V8DOMConfiguration::MethodConfiguration V8TestObjectMethods[] = { 12470 static const V8DOMConfiguration::MethodConfiguration V8TestObjectMethods[] = {
12329 {"voidMethod", TestObjectV8Internal::voidMethodMethodCallback, 0, 0, V8DOMCo nfiguration::ExposedToAllScripts}, 12471 {"voidMethod", TestObjectV8Internal::voidMethodMethodCallback, 0, 0, V8DOMCo nfiguration::ExposedToAllScripts},
12330 {"dateMethod", TestObjectV8Internal::dateMethodMethodCallback, 0, 0, V8DOMCo nfiguration::ExposedToAllScripts}, 12472 {"dateMethod", TestObjectV8Internal::dateMethodMethodCallback, 0, 0, V8DOMCo nfiguration::ExposedToAllScripts},
12331 {"stringMethod", TestObjectV8Internal::stringMethodMethodCallback, 0, 0, V8D OMConfiguration::ExposedToAllScripts}, 12473 {"stringMethod", TestObjectV8Internal::stringMethodMethodCallback, 0, 0, V8D OMConfiguration::ExposedToAllScripts},
12332 {"byteStringMethod", TestObjectV8Internal::byteStringMethodMethodCallback, 0 , 0, V8DOMConfiguration::ExposedToAllScripts}, 12474 {"byteStringMethod", TestObjectV8Internal::byteStringMethodMethodCallback, 0 , 0, V8DOMConfiguration::ExposedToAllScripts},
12333 {"usvStringMethod", TestObjectV8Internal::usvStringMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 12475 {"usvStringMethod", TestObjectV8Internal::usvStringMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
12334 {"readonlyDOMTimeStampMethod", TestObjectV8Internal::readonlyDOMTimeStampMet hodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 12476 {"readonlyDOMTimeStampMethod", TestObjectV8Internal::readonlyDOMTimeStampMet hodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
12335 {"booleanMethod", TestObjectV8Internal::booleanMethodMethodCallback, 0, 0, V 8DOMConfiguration::ExposedToAllScripts}, 12477 {"booleanMethod", TestObjectV8Internal::booleanMethodMethodCallback, 0, 0, V 8DOMConfiguration::ExposedToAllScripts},
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
12578 v8::Local<v8::Signature> defaultSignature; 12720 v8::Local<v8::Signature> defaultSignature;
12579 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, func tionTemplate, "TestObject", v8::Local<v8::FunctionTemplate>(), V8TestObject::int ernalFieldCount, 12721 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, func tionTemplate, "TestObject", v8::Local<v8::FunctionTemplate>(), V8TestObject::int ernalFieldCount,
12580 V8TestObjectAttributes, WTF_ARRAY_LENGTH(V8TestObjectAttributes), 12722 V8TestObjectAttributes, WTF_ARRAY_LENGTH(V8TestObjectAttributes),
12581 V8TestObjectAccessors, WTF_ARRAY_LENGTH(V8TestObjectAccessors), 12723 V8TestObjectAccessors, WTF_ARRAY_LENGTH(V8TestObjectAccessors),
12582 V8TestObjectMethods, WTF_ARRAY_LENGTH(V8TestObjectMethods)); 12724 V8TestObjectMethods, WTF_ARRAY_LENGTH(V8TestObjectMethods));
12583 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT emplate(); 12725 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT emplate();
12584 ALLOW_UNUSED_LOCAL(instanceTemplate); 12726 ALLOW_UNUSED_LOCAL(instanceTemplate);
12585 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp eTemplate(); 12727 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp eTemplate();
12586 ALLOW_UNUSED_LOCAL(prototypeTemplate); 12728 ALLOW_UNUSED_LOCAL(prototypeTemplate);
12587 if (RuntimeEnabledFeatures::featureNameEnabled()) { 12729 if (RuntimeEnabledFeatures::featureNameEnabled()) {
12588 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu ration =\ 12730 static const V8DOMConfiguration::AccessorConfiguration accessorConfigura tion =\
12589 {"runtimeEnabledLongAttribute", TestObjectV8Internal::runtimeEnabledLong AttributeAttributeGetterCallback, TestObjectV8Internal::runtimeEnabledLongAttrib uteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT) , static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAll Scripts, V8DOMConfiguration::OnInstance}; 12731 {"runtimeEnabledLongAttribute", TestObjectV8Internal::runtimeEnabledLong AttributeAttributeGetterCallback, TestObjectV8Internal::runtimeEnabledLongAttrib uteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT) , static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAll Scripts};
12590 V8DOMConfiguration::installAttribute(isolate, instanceTemplate, prototyp eTemplate, attributeConfiguration); 12732 V8DOMConfiguration::installAccessor(isolate, prototypeTemplate, defaultS ignature, accessorConfiguration);
12591 } 12733 }
12592 #if ENABLE(CONDITION) 12734 #if ENABLE(CONDITION)
12593 if (RuntimeEnabledFeatures::featureNameEnabled()) { 12735 if (RuntimeEnabledFeatures::featureNameEnabled()) {
12594 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu ration =\ 12736 static const V8DOMConfiguration::AccessorConfiguration accessorConfigura tion =\
12595 {"conditionalRuntimeEnabledLongAttribute", TestObjectV8Internal::conditi onalRuntimeEnabledLongAttributeAttributeGetterCallback, TestObjectV8Internal::co nditionalRuntimeEnabledLongAttributeAttributeSetterCallback, 0, 0, 0, static_cas t<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}; 12737 {"conditionalRuntimeEnabledLongAttribute", TestObjectV8Internal::conditi onalRuntimeEnabledLongAttributeAttributeGetterCallback, TestObjectV8Internal::co nditionalRuntimeEnabledLongAttributeAttributeSetterCallback, 0, 0, 0, static_cas t<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts};
12596 V8DOMConfiguration::installAttribute(isolate, instanceTemplate, prototyp eTemplate, attributeConfiguration); 12738 V8DOMConfiguration::installAccessor(isolate, prototypeTemplate, defaultS ignature, accessorConfiguration);
12597 } 12739 }
12598 #endif // ENABLE(CONDITION) 12740 #endif // ENABLE(CONDITION)
12599 static const V8DOMConfiguration::ConstantConfiguration V8TestObjectConstants [] = { 12741 static const V8DOMConfiguration::ConstantConfiguration V8TestObjectConstants [] = {
12600 {"CONST_VALUE_0", 0, 0, 0, V8DOMConfiguration::ConstantTypeUnsignedShort }, 12742 {"CONST_VALUE_0", 0, 0, 0, V8DOMConfiguration::ConstantTypeUnsignedShort },
12601 {"CONST_VALUE_1", 1, 0, 0, V8DOMConfiguration::ConstantTypeUnsignedShort }, 12743 {"CONST_VALUE_1", 1, 0, 0, V8DOMConfiguration::ConstantTypeUnsignedShort },
12602 {"CONST_VALUE_2", 2, 0, 0, V8DOMConfiguration::ConstantTypeUnsignedShort }, 12744 {"CONST_VALUE_2", 2, 0, 0, V8DOMConfiguration::ConstantTypeUnsignedShort },
12603 {"CONST_VALUE_4", 4, 0, 0, V8DOMConfiguration::ConstantTypeUnsignedShort }, 12745 {"CONST_VALUE_4", 4, 0, 0, V8DOMConfiguration::ConstantTypeUnsignedShort },
12604 {"CONST_VALUE_8", 8, 0, 0, V8DOMConfiguration::ConstantTypeUnsignedShort }, 12746 {"CONST_VALUE_8", 8, 0, 0, V8DOMConfiguration::ConstantTypeUnsignedShort },
12605 {"CONST_VALUE_9", -1, 0, 0, V8DOMConfiguration::ConstantTypeShort}, 12747 {"CONST_VALUE_9", -1, 0, 0, V8DOMConfiguration::ConstantTypeShort},
12606 {"CONST_VALUE_10", 0, 0, "my constant string", V8DOMConfiguration::Const antTypeString}, 12748 {"CONST_VALUE_10", 0, 0, "my constant string", V8DOMConfiguration::Const antTypeString},
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
12733 { 12875 {
12734 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu e)) : 0; 12876 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu e)) : 0;
12735 } 12877 }
12736 12878
12737 void V8TestObject::installConditionallyEnabledProperties(v8::Local<v8::Object> i nstanceObject, v8::Isolate* isolate) 12879 void V8TestObject::installConditionallyEnabledProperties(v8::Local<v8::Object> i nstanceObject, v8::Isolate* isolate)
12738 { 12880 {
12739 v8::Local<v8::Object> prototypeObject = v8::Local<v8::Object>::Cast(instance Object->GetPrototype()); 12881 v8::Local<v8::Object> prototypeObject = v8::Local<v8::Object>::Cast(instance Object->GetPrototype());
12740 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont ext()); 12882 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont ext());
12741 12883
12742 if (context && context->isDocument() && ContextFeatures::featureNameEnabled( toDocument(context))) { 12884 if (context && context->isDocument() && ContextFeatures::featureNameEnabled( toDocument(context))) {
12743 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu ration = {"perContextEnabledLongAttribute", TestObjectV8Internal::perContextEnab ledLongAttributeAttributeGetterCallback, TestObjectV8Internal::perContextEnabled LongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8 ::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Ex posedToAllScripts, V8DOMConfiguration::OnInstance}; 12885 static const V8DOMConfiguration::AccessorConfiguration accessorConfigura tion = {"perContextEnabledLongAttribute", TestObjectV8Internal::perContextEnable dLongAttributeAttributeGetterCallback, TestObjectV8Internal::perContextEnabledLo ngAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8:: DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Expo sedToAllScripts};
12744 V8DOMConfiguration::installAttribute(isolate, instanceObject, prototypeO bject, attributeConfiguration); 12886 V8DOMConfiguration::installAccessor(isolate, prototypeObject, accessorCo nfiguration);
12745 } 12887 }
12746 if (context && context->isDocument() && ContextFeatures::featureNameEnabled( toDocument(context))) { 12888 if (context && context->isDocument() && ContextFeatures::featureNameEnabled( toDocument(context))) {
12747 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu ration = {"perContextEnabledRuntimeEnabledLongAttribute", TestObjectV8Internal:: perContextEnabledRuntimeEnabledLongAttributeAttributeGetterCallback, TestObjectV 8Internal::perContextEnabledRuntimeEnabledLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration: :OnInstance}; 12889 static const V8DOMConfiguration::AccessorConfiguration accessorConfigura tion = {"perContextEnabledRuntimeEnabledLongAttribute", TestObjectV8Internal::pe rContextEnabledRuntimeEnabledLongAttributeAttributeGetterCallback, TestObjectV8I nternal::perContextEnabledRuntimeEnabledLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttr ibute>(v8::None), V8DOMConfiguration::ExposedToAllScripts};
12748 V8DOMConfiguration::installAttribute(isolate, instanceObject, prototypeO bject, attributeConfiguration); 12890 V8DOMConfiguration::installAccessor(isolate, prototypeObject, accessorCo nfiguration);
12749 } 12891 }
12750 } 12892 }
12751 12893
12752 void V8TestObject::installConditionallyEnabledMethods(v8::Local<v8::Object> prot otypeObject, v8::Isolate* isolate) 12894 void V8TestObject::installConditionallyEnabledMethods(v8::Local<v8::Object> prot otypeObject, v8::Isolate* isolate)
12753 { 12895 {
12754 v8::Local<v8::Signature> defaultSignature = v8::Signature::New(isolate, domT emplate(isolate)); 12896 v8::Local<v8::Signature> defaultSignature = v8::Signature::New(isolate, domT emplate(isolate));
12755 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont ext()); 12897 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont ext());
12756 ASSERT(context); 12898 ASSERT(context);
12757 12899
12758 if (context && context->isDocument() && ContextFeatures::featureNameEnabled( toDocument(context))) { 12900 if (context && context->isDocument() && ContextFeatures::featureNameEnabled( toDocument(context))) {
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after
13253 return false; 13395 return false;
13254 13396
13255 ScriptState::Scope scope(scriptState); 13397 ScriptState::Scope scope(scriptState);
13256 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate()); 13398 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate());
13257 13399
13258 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ; 13400 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ;
13259 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue)); 13401 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue));
13260 } 13402 }
13261 13403
13262 } // namespace blink 13404 } // namespace blink
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/core/V8TestInterface.cpp ('k') | Source/bindings/tests/results/modules/V8TestInterface5.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698