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

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

Issue 1078913002: Revert of bindings: Move named/indexed attributes to prototype chains. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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::FunctionCallbackInfo<v 8::Value>& info) 125 static void stringifierAttributeAttributeGetter(const v8::PropertyCallbackInfo<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(const v8::FunctionCallba ckInfo<v8::Value>& info) 132 static void stringifierAttributeAttributeGetterCallback(v8::Local<v8::Name>, con st v8::PropertyCallbackInfo<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::FunctionCallbackInfo<v8::Value>& info) 139 static void stringifierAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& 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(const v8::FunctionCallba ckInfo<v8::Value>& info) 149 static void stringifierAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8: :Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
150 { 150 {
151 v8::Local<v8::Value> v8Value = info[0];
152 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 151 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
153 TestObjectV8Internal::stringifierAttributeAttributeSetter(v8Value, info); 152 TestObjectV8Internal::stringifierAttributeAttributeSetter(v8Value, info);
154 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 153 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
155 } 154 }
156 155
157 static void readonlyStringAttributeAttributeGetter(const v8::FunctionCallbackInf o<v8::Value>& info) 156 static void readonlyStringAttributeAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info)
158 { 157 {
159 v8::Local<v8::Object> holder = info.Holder(); 158 v8::Local<v8::Object> holder = info.Holder();
160 TestObject* impl = V8TestObject::toImpl(holder); 159 TestObject* impl = V8TestObject::toImpl(holder);
161 v8SetReturnValueString(info, impl->readonlyStringAttribute(), info.GetIsolat e()); 160 v8SetReturnValueString(info, impl->readonlyStringAttribute(), info.GetIsolat e());
162 } 161 }
163 162
164 static void readonlyStringAttributeAttributeGetterCallback(const v8::FunctionCal lbackInfo<v8::Value>& info) 163 static void readonlyStringAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
165 { 164 {
166 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 165 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
167 TestObjectV8Internal::readonlyStringAttributeAttributeGetter(info); 166 TestObjectV8Internal::readonlyStringAttributeAttributeGetter(info);
168 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 167 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
169 } 168 }
170 169
171 static void readonlyTestInterfaceEmptyAttributeAttributeGetter(const v8::Functio nCallbackInfo<v8::Value>& info) 170 static void readonlyTestInterfaceEmptyAttributeAttributeGetter(const v8::Propert yCallbackInfo<v8::Value>& info)
172 { 171 {
173 v8::Local<v8::Object> holder = info.Holder(); 172 v8::Local<v8::Object> holder = info.Holder();
174 TestObject* impl = V8TestObject::toImpl(holder); 173 TestObject* impl = V8TestObject::toImpl(holder);
175 RefPtr<TestInterfaceEmpty> cppValue(impl->readonlyTestInterfaceEmptyAttribut e()); 174 RefPtr<TestInterfaceEmpty> cppValue(impl->readonlyTestInterfaceEmptyAttribut e());
176 if (cppValue && DOMDataStore::setReturnValue(info.GetReturnValue(), cppValue .get())) 175 if (cppValue && DOMDataStore::setReturnValue(info.GetReturnValue(), cppValue .get()))
177 return; 176 return;
178 v8::Local<v8::Value> v8Value(toV8(cppValue.get(), holder, info.GetIsolate()) ); 177 v8::Local<v8::Value> v8Value(toV8(cppValue.get(), holder, info.GetIsolate()) );
179 if (!v8Value.IsEmpty()) { 178 if (!v8Value.IsEmpty()) {
180 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString( info.GetIsolate(), "readonlyTestInterfaceEmptyAttribute"), v8Value); 179 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString( info.GetIsolate(), "readonlyTestInterfaceEmptyAttribute"), v8Value);
181 v8SetReturnValue(info, v8Value); 180 v8SetReturnValue(info, v8Value);
182 } 181 }
183 } 182 }
184 183
185 static void readonlyTestInterfaceEmptyAttributeAttributeGetterCallback(const v8: :FunctionCallbackInfo<v8::Value>& info) 184 static void readonlyTestInterfaceEmptyAttributeAttributeGetterCallback(v8::Local <v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
186 { 185 {
187 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 186 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
188 TestObjectV8Internal::readonlyTestInterfaceEmptyAttributeAttributeGetter(inf o); 187 TestObjectV8Internal::readonlyTestInterfaceEmptyAttributeAttributeGetter(inf o);
189 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 188 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
190 } 189 }
191 190
192 static void readonlyLongAttributeAttributeGetter(const v8::FunctionCallbackInfo< v8::Value>& info) 191 static void readonlyLongAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info)
193 { 192 {
194 v8::Local<v8::Object> holder = info.Holder(); 193 v8::Local<v8::Object> holder = info.Holder();
195 TestObject* impl = V8TestObject::toImpl(holder); 194 TestObject* impl = V8TestObject::toImpl(holder);
196 v8SetReturnValueInt(info, impl->readonlyLongAttribute()); 195 v8SetReturnValueInt(info, impl->readonlyLongAttribute());
197 } 196 }
198 197
199 static void readonlyLongAttributeAttributeGetterCallback(const v8::FunctionCallb ackInfo<v8::Value>& info) 198 static void readonlyLongAttributeAttributeGetterCallback(v8::Local<v8::Name>, co nst v8::PropertyCallbackInfo<v8::Value>& info)
200 { 199 {
201 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 200 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
202 TestObjectV8Internal::readonlyLongAttributeAttributeGetter(info); 201 TestObjectV8Internal::readonlyLongAttributeAttributeGetter(info);
203 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 202 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
204 } 203 }
205 204
206 static void dateAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Valu e>& info) 205 static void dateAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu e>& info)
207 { 206 {
208 v8::Local<v8::Object> holder = info.Holder(); 207 v8::Local<v8::Object> holder = info.Holder();
209 TestObject* impl = V8TestObject::toImpl(holder); 208 TestObject* impl = V8TestObject::toImpl(holder);
210 v8SetReturnValue(info, v8DateOrNaN(info.GetIsolate(), impl->dateAttribute()) ); 209 v8SetReturnValue(info, v8DateOrNaN(info.GetIsolate(), impl->dateAttribute()) );
211 } 210 }
212 211
213 static void dateAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo< v8::Value>& info) 212 static void dateAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8:: PropertyCallbackInfo<v8::Value>& info)
214 { 213 {
215 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 214 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
216 TestObjectV8Internal::dateAttributeAttributeGetter(info); 215 TestObjectV8Internal::dateAttributeAttributeGetter(info);
217 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 216 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
218 } 217 }
219 218
220 static void dateAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :FunctionCallbackInfo<v8::Value>& info) 219 static void dateAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info)
221 { 220 {
222 v8::Local<v8::Object> holder = info.Holder(); 221 v8::Local<v8::Object> holder = info.Holder();
223 TestObject* impl = V8TestObject::toImpl(holder); 222 TestObject* impl = V8TestObject::toImpl(holder);
224 double cppValue = toCoreDate(info.GetIsolate(), v8Value); 223 double cppValue = toCoreDate(info.GetIsolate(), v8Value);
225 impl->setDateAttribute(cppValue); 224 impl->setDateAttribute(cppValue);
226 } 225 }
227 226
228 static void dateAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo< v8::Value>& info) 227 static void dateAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local< v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
229 { 228 {
230 v8::Local<v8::Value> v8Value = info[0];
231 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 229 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
232 TestObjectV8Internal::dateAttributeAttributeSetter(v8Value, info); 230 TestObjectV8Internal::dateAttributeAttributeSetter(v8Value, info);
233 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 231 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
234 } 232 }
235 233
236 static void stringAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Va lue>& info) 234 static void stringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va lue>& info)
237 { 235 {
238 v8::Local<v8::Object> holder = info.Holder(); 236 v8::Local<v8::Object> holder = info.Holder();
239 TestObject* impl = V8TestObject::toImpl(holder); 237 TestObject* impl = V8TestObject::toImpl(holder);
240 v8SetReturnValueString(info, impl->stringAttribute(), info.GetIsolate()); 238 v8SetReturnValueString(info, impl->stringAttribute(), info.GetIsolate());
241 } 239 }
242 240
243 static void stringAttributeAttributeGetterCallback(const v8::FunctionCallbackInf o<v8::Value>& info) 241 static void stringAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8 ::PropertyCallbackInfo<v8::Value>& info)
244 { 242 {
245 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 243 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
246 TestObjectV8Internal::stringAttributeAttributeGetter(info); 244 TestObjectV8Internal::stringAttributeAttributeGetter(info);
247 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 245 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
248 } 246 }
249 247
250 static void stringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v 8::FunctionCallbackInfo<v8::Value>& info) 248 static void stringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v 8::PropertyCallbackInfo<void>& info)
251 { 249 {
252 v8::Local<v8::Object> holder = info.Holder(); 250 v8::Local<v8::Object> holder = info.Holder();
253 TestObject* impl = V8TestObject::toImpl(holder); 251 TestObject* impl = V8TestObject::toImpl(holder);
254 V8StringResource<> cppValue = v8Value; 252 V8StringResource<> cppValue = v8Value;
255 if (!cppValue.prepare()) 253 if (!cppValue.prepare())
256 return; 254 return;
257 impl->setStringAttribute(cppValue); 255 impl->setStringAttribute(cppValue);
258 } 256 }
259 257
260 static void stringAttributeAttributeSetterCallback(const v8::FunctionCallbackInf o<v8::Value>& info) 258 static void stringAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
261 { 259 {
262 v8::Local<v8::Value> v8Value = info[0];
263 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 260 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
264 TestObjectV8Internal::stringAttributeAttributeSetter(v8Value, info); 261 TestObjectV8Internal::stringAttributeAttributeSetter(v8Value, info);
265 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 262 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
266 } 263 }
267 264
268 static void byteStringAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8 ::Value>& info) 265 static void byteStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info)
269 { 266 {
270 v8::Local<v8::Object> holder = info.Holder(); 267 v8::Local<v8::Object> holder = info.Holder();
271 TestObject* impl = V8TestObject::toImpl(holder); 268 TestObject* impl = V8TestObject::toImpl(holder);
272 v8SetReturnValueString(info, impl->byteStringAttribute(), info.GetIsolate()) ; 269 v8SetReturnValueString(info, impl->byteStringAttribute(), info.GetIsolate()) ;
273 } 270 }
274 271
275 static void byteStringAttributeAttributeGetterCallback(const v8::FunctionCallbac kInfo<v8::Value>& info) 272 static void byteStringAttributeAttributeGetterCallback(v8::Local<v8::Name>, cons t v8::PropertyCallbackInfo<v8::Value>& info)
276 { 273 {
277 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 274 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
278 TestObjectV8Internal::byteStringAttributeAttributeGetter(info); 275 TestObjectV8Internal::byteStringAttributeAttributeGetter(info);
279 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 276 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
280 } 277 }
281 278
282 static void byteStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::FunctionCallbackInfo<v8::Value>& info) 279 static void byteStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info)
283 { 280 {
284 v8::Local<v8::Object> holder = info.Holder(); 281 v8::Local<v8::Object> holder = info.Holder();
285 ExceptionState exceptionState(ExceptionState::SetterContext, "byteStringAttr ibute", "TestObject", holder, info.GetIsolate()); 282 ExceptionState exceptionState(ExceptionState::SetterContext, "byteStringAttr ibute", "TestObject", holder, info.GetIsolate());
286 TestObject* impl = V8TestObject::toImpl(holder); 283 TestObject* impl = V8TestObject::toImpl(holder);
287 V8StringResource<> cppValue = toByteString(info.GetIsolate(), v8Value, excep tionState); 284 V8StringResource<> cppValue = toByteString(info.GetIsolate(), v8Value, excep tionState);
288 if (exceptionState.throwIfNeeded()) 285 if (exceptionState.throwIfNeeded())
289 return; 286 return;
290 impl->setByteStringAttribute(cppValue); 287 impl->setByteStringAttribute(cppValue);
291 } 288 }
292 289
293 static void byteStringAttributeAttributeSetterCallback(const v8::FunctionCallbac kInfo<v8::Value>& info) 290 static void byteStringAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
294 { 291 {
295 v8::Local<v8::Value> v8Value = info[0];
296 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 292 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
297 TestObjectV8Internal::byteStringAttributeAttributeSetter(v8Value, info); 293 TestObjectV8Internal::byteStringAttributeAttributeSetter(v8Value, info);
298 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 294 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
299 } 295 }
300 296
301 static void usvStringAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8: :Value>& info) 297 static void usvStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8: :Value>& info)
302 { 298 {
303 v8::Local<v8::Object> holder = info.Holder(); 299 v8::Local<v8::Object> holder = info.Holder();
304 TestObject* impl = V8TestObject::toImpl(holder); 300 TestObject* impl = V8TestObject::toImpl(holder);
305 v8SetReturnValueString(info, impl->usvStringAttribute(), info.GetIsolate()); 301 v8SetReturnValueString(info, impl->usvStringAttribute(), info.GetIsolate());
306 } 302 }
307 303
308 static void usvStringAttributeAttributeGetterCallback(const v8::FunctionCallback Info<v8::Value>& info) 304 static void usvStringAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
309 { 305 {
310 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 306 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
311 TestObjectV8Internal::usvStringAttributeAttributeGetter(info); 307 TestObjectV8Internal::usvStringAttributeAttributeGetter(info);
312 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 308 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
313 } 309 }
314 310
315 static void usvStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons t v8::FunctionCallbackInfo<v8::Value>& info) 311 static void usvStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons t v8::PropertyCallbackInfo<void>& info)
316 { 312 {
317 v8::Local<v8::Object> holder = info.Holder(); 313 v8::Local<v8::Object> holder = info.Holder();
318 ExceptionState exceptionState(ExceptionState::SetterContext, "usvStringAttri bute", "TestObject", holder, info.GetIsolate()); 314 ExceptionState exceptionState(ExceptionState::SetterContext, "usvStringAttri bute", "TestObject", holder, info.GetIsolate());
319 TestObject* impl = V8TestObject::toImpl(holder); 315 TestObject* impl = V8TestObject::toImpl(holder);
320 V8StringResource<> cppValue = toUSVString(info.GetIsolate(), v8Value, except ionState); 316 V8StringResource<> cppValue = toUSVString(info.GetIsolate(), v8Value, except ionState);
321 if (exceptionState.throwIfNeeded()) 317 if (exceptionState.throwIfNeeded())
322 return; 318 return;
323 impl->setUsvStringAttribute(cppValue); 319 impl->setUsvStringAttribute(cppValue);
324 } 320 }
325 321
326 static void usvStringAttributeAttributeSetterCallback(const v8::FunctionCallback Info<v8::Value>& info) 322 static void usvStringAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::L ocal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
327 { 323 {
328 v8::Local<v8::Value> v8Value = info[0];
329 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 324 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
330 TestObjectV8Internal::usvStringAttributeAttributeSetter(v8Value, info); 325 TestObjectV8Internal::usvStringAttributeAttributeSetter(v8Value, info);
331 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 326 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
332 } 327 }
333 328
334 static void domTimeStampAttributeAttributeGetter(const v8::FunctionCallbackInfo< v8::Value>& info) 329 static void domTimeStampAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info)
335 { 330 {
336 v8::Local<v8::Object> holder = info.Holder(); 331 v8::Local<v8::Object> holder = info.Holder();
337 TestObject* impl = V8TestObject::toImpl(holder); 332 TestObject* impl = V8TestObject::toImpl(holder);
338 v8SetReturnValue(info, static_cast<double>(impl->domTimeStampAttribute())); 333 v8SetReturnValue(info, static_cast<double>(impl->domTimeStampAttribute()));
339 } 334 }
340 335
341 static void domTimeStampAttributeAttributeGetterCallback(const v8::FunctionCallb ackInfo<v8::Value>& info) 336 static void domTimeStampAttributeAttributeGetterCallback(v8::Local<v8::Name>, co nst v8::PropertyCallbackInfo<v8::Value>& info)
342 { 337 {
343 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 338 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
344 TestObjectV8Internal::domTimeStampAttributeAttributeGetter(info); 339 TestObjectV8Internal::domTimeStampAttributeAttributeGetter(info);
345 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 340 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
346 } 341 }
347 342
348 static void domTimeStampAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::FunctionCallbackInfo<v8::Value>& info) 343 static void domTimeStampAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info)
349 { 344 {
350 v8::Local<v8::Object> holder = info.Holder(); 345 v8::Local<v8::Object> holder = info.Holder();
351 ExceptionState exceptionState(ExceptionState::SetterContext, "domTimeStampAt tribute", "TestObject", holder, info.GetIsolate()); 346 ExceptionState exceptionState(ExceptionState::SetterContext, "domTimeStampAt tribute", "TestObject", holder, info.GetIsolate());
352 TestObject* impl = V8TestObject::toImpl(holder); 347 TestObject* impl = V8TestObject::toImpl(holder);
353 unsigned long long cppValue = toUInt64(info.GetIsolate(), v8Value, NormalCon version, exceptionState); 348 unsigned long long cppValue = toUInt64(info.GetIsolate(), v8Value, NormalCon version, exceptionState);
354 if (exceptionState.throwIfNeeded()) 349 if (exceptionState.throwIfNeeded())
355 return; 350 return;
356 impl->setDomTimeStampAttribute(cppValue); 351 impl->setDomTimeStampAttribute(cppValue);
357 } 352 }
358 353
359 static void domTimeStampAttributeAttributeSetterCallback(const v8::FunctionCallb ackInfo<v8::Value>& info) 354 static void domTimeStampAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
360 { 355 {
361 v8::Local<v8::Value> v8Value = info[0];
362 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 356 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
363 TestObjectV8Internal::domTimeStampAttributeAttributeSetter(v8Value, info); 357 TestObjectV8Internal::domTimeStampAttributeAttributeSetter(v8Value, info);
364 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 358 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
365 } 359 }
366 360
367 static void booleanAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::V alue>& info) 361 static void booleanAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info)
368 { 362 {
369 v8::Local<v8::Object> holder = info.Holder(); 363 v8::Local<v8::Object> holder = info.Holder();
370 TestObject* impl = V8TestObject::toImpl(holder); 364 TestObject* impl = V8TestObject::toImpl(holder);
371 v8SetReturnValueBool(info, impl->booleanAttribute()); 365 v8SetReturnValueBool(info, impl->booleanAttribute());
372 } 366 }
373 367
374 static void booleanAttributeAttributeGetterCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 368 static void booleanAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v 8::PropertyCallbackInfo<v8::Value>& info)
375 { 369 {
376 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 370 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
377 TestObjectV8Internal::booleanAttributeAttributeGetter(info); 371 TestObjectV8Internal::booleanAttributeAttributeGetter(info);
378 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 372 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
379 } 373 }
380 374
381 static void booleanAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 375 static void booleanAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
382 { 376 {
383 v8::Local<v8::Object> holder = info.Holder(); 377 v8::Local<v8::Object> holder = info.Holder();
384 TestObject* impl = V8TestObject::toImpl(holder); 378 TestObject* impl = V8TestObject::toImpl(holder);
385 bool cppValue = v8Value->BooleanValue(); 379 bool cppValue = v8Value->BooleanValue();
386 impl->setBooleanAttribute(cppValue); 380 impl->setBooleanAttribute(cppValue);
387 } 381 }
388 382
389 static void booleanAttributeAttributeSetterCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 383 static void booleanAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Loc al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
390 { 384 {
391 v8::Local<v8::Value> v8Value = info[0];
392 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 385 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
393 TestObjectV8Internal::booleanAttributeAttributeSetter(v8Value, info); 386 TestObjectV8Internal::booleanAttributeAttributeSetter(v8Value, info);
394 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 387 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
395 } 388 }
396 389
397 static void byteAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Valu e>& info) 390 static void byteAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu e>& info)
398 { 391 {
399 v8::Local<v8::Object> holder = info.Holder(); 392 v8::Local<v8::Object> holder = info.Holder();
400 TestObject* impl = V8TestObject::toImpl(holder); 393 TestObject* impl = V8TestObject::toImpl(holder);
401 v8SetReturnValueInt(info, impl->byteAttribute()); 394 v8SetReturnValueInt(info, impl->byteAttribute());
402 } 395 }
403 396
404 static void byteAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo< v8::Value>& info) 397 static void byteAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8:: PropertyCallbackInfo<v8::Value>& info)
405 { 398 {
406 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 399 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
407 TestObjectV8Internal::byteAttributeAttributeGetter(info); 400 TestObjectV8Internal::byteAttributeAttributeGetter(info);
408 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 401 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
409 } 402 }
410 403
411 static void byteAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :FunctionCallbackInfo<v8::Value>& info) 404 static void byteAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info)
412 { 405 {
413 v8::Local<v8::Object> holder = info.Holder(); 406 v8::Local<v8::Object> holder = info.Holder();
414 ExceptionState exceptionState(ExceptionState::SetterContext, "byteAttribute" , "TestObject", holder, info.GetIsolate()); 407 ExceptionState exceptionState(ExceptionState::SetterContext, "byteAttribute" , "TestObject", holder, info.GetIsolate());
415 TestObject* impl = V8TestObject::toImpl(holder); 408 TestObject* impl = V8TestObject::toImpl(holder);
416 int cppValue = toInt8(info.GetIsolate(), v8Value, NormalConversion, exceptio nState); 409 int cppValue = toInt8(info.GetIsolate(), v8Value, NormalConversion, exceptio nState);
417 if (exceptionState.throwIfNeeded()) 410 if (exceptionState.throwIfNeeded())
418 return; 411 return;
419 impl->setByteAttribute(cppValue); 412 impl->setByteAttribute(cppValue);
420 } 413 }
421 414
422 static void byteAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo< v8::Value>& info) 415 static void byteAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local< v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
423 { 416 {
424 v8::Local<v8::Value> v8Value = info[0];
425 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 417 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
426 TestObjectV8Internal::byteAttributeAttributeSetter(v8Value, info); 418 TestObjectV8Internal::byteAttributeAttributeSetter(v8Value, info);
427 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 419 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
428 } 420 }
429 421
430 static void doubleAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Va lue>& info) 422 static void doubleAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va lue>& info)
431 { 423 {
432 v8::Local<v8::Object> holder = info.Holder(); 424 v8::Local<v8::Object> holder = info.Holder();
433 TestObject* impl = V8TestObject::toImpl(holder); 425 TestObject* impl = V8TestObject::toImpl(holder);
434 v8SetReturnValue(info, impl->doubleAttribute()); 426 v8SetReturnValue(info, impl->doubleAttribute());
435 } 427 }
436 428
437 static void doubleAttributeAttributeGetterCallback(const v8::FunctionCallbackInf o<v8::Value>& info) 429 static void doubleAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8 ::PropertyCallbackInfo<v8::Value>& info)
438 { 430 {
439 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 431 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
440 TestObjectV8Internal::doubleAttributeAttributeGetter(info); 432 TestObjectV8Internal::doubleAttributeAttributeGetter(info);
441 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 433 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
442 } 434 }
443 435
444 static void doubleAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v 8::FunctionCallbackInfo<v8::Value>& info) 436 static void doubleAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v 8::PropertyCallbackInfo<void>& info)
445 { 437 {
446 v8::Local<v8::Object> holder = info.Holder(); 438 v8::Local<v8::Object> holder = info.Holder();
447 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleAttribut e", "TestObject", holder, info.GetIsolate()); 439 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleAttribut e", "TestObject", holder, info.GetIsolate());
448 TestObject* impl = V8TestObject::toImpl(holder); 440 TestObject* impl = V8TestObject::toImpl(holder);
449 double cppValue = toRestrictedDouble(info.GetIsolate(), v8Value, exceptionSt ate); 441 double cppValue = toRestrictedDouble(info.GetIsolate(), v8Value, exceptionSt ate);
450 if (exceptionState.throwIfNeeded()) 442 if (exceptionState.throwIfNeeded())
451 return; 443 return;
452 impl->setDoubleAttribute(cppValue); 444 impl->setDoubleAttribute(cppValue);
453 } 445 }
454 446
455 static void doubleAttributeAttributeSetterCallback(const v8::FunctionCallbackInf o<v8::Value>& info) 447 static void doubleAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
456 { 448 {
457 v8::Local<v8::Value> v8Value = info[0];
458 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 449 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
459 TestObjectV8Internal::doubleAttributeAttributeSetter(v8Value, info); 450 TestObjectV8Internal::doubleAttributeAttributeSetter(v8Value, info);
460 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 451 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
461 } 452 }
462 453
463 static void floatAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Val ue>& info) 454 static void floatAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val ue>& info)
464 { 455 {
465 v8::Local<v8::Object> holder = info.Holder(); 456 v8::Local<v8::Object> holder = info.Holder();
466 TestObject* impl = V8TestObject::toImpl(holder); 457 TestObject* impl = V8TestObject::toImpl(holder);
467 v8SetReturnValue(info, impl->floatAttribute()); 458 v8SetReturnValue(info, impl->floatAttribute());
468 } 459 }
469 460
470 static void floatAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 461 static void floatAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8: :PropertyCallbackInfo<v8::Value>& info)
471 { 462 {
472 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 463 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
473 TestObjectV8Internal::floatAttributeAttributeGetter(info); 464 TestObjectV8Internal::floatAttributeAttributeGetter(info);
474 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 465 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
475 } 466 }
476 467
477 static void floatAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::FunctionCallbackInfo<v8::Value>& info) 468 static void floatAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::PropertyCallbackInfo<void>& info)
478 { 469 {
479 v8::Local<v8::Object> holder = info.Holder(); 470 v8::Local<v8::Object> holder = info.Holder();
480 ExceptionState exceptionState(ExceptionState::SetterContext, "floatAttribute ", "TestObject", holder, info.GetIsolate()); 471 ExceptionState exceptionState(ExceptionState::SetterContext, "floatAttribute ", "TestObject", holder, info.GetIsolate());
481 TestObject* impl = V8TestObject::toImpl(holder); 472 TestObject* impl = V8TestObject::toImpl(holder);
482 float cppValue = toRestrictedFloat(info.GetIsolate(), v8Value, exceptionStat e); 473 float cppValue = toRestrictedFloat(info.GetIsolate(), v8Value, exceptionStat e);
483 if (exceptionState.throwIfNeeded()) 474 if (exceptionState.throwIfNeeded())
484 return; 475 return;
485 impl->setFloatAttribute(cppValue); 476 impl->setFloatAttribute(cppValue);
486 } 477 }
487 478
488 static void floatAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 479 static void floatAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local <v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
489 { 480 {
490 v8::Local<v8::Value> v8Value = info[0];
491 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 481 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
492 TestObjectV8Internal::floatAttributeAttributeSetter(v8Value, info); 482 TestObjectV8Internal::floatAttributeAttributeSetter(v8Value, info);
493 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 483 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
494 } 484 }
495 485
496 static void longAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Valu e>& info) 486 static void longAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu e>& info)
497 { 487 {
498 v8::Local<v8::Object> holder = info.Holder(); 488 v8::Local<v8::Object> holder = info.Holder();
499 TestObject* impl = V8TestObject::toImpl(holder); 489 TestObject* impl = V8TestObject::toImpl(holder);
500 v8SetReturnValueInt(info, impl->longAttribute()); 490 v8SetReturnValueInt(info, impl->longAttribute());
501 } 491 }
502 492
503 static void longAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo< v8::Value>& info) 493 static void longAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8:: PropertyCallbackInfo<v8::Value>& info)
504 { 494 {
505 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 495 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
506 TestObjectV8Internal::longAttributeAttributeGetter(info); 496 TestObjectV8Internal::longAttributeAttributeGetter(info);
507 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 497 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
508 } 498 }
509 499
510 static void longAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :FunctionCallbackInfo<v8::Value>& info) 500 static void longAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info)
511 { 501 {
512 v8::Local<v8::Object> holder = info.Holder(); 502 v8::Local<v8::Object> holder = info.Holder();
513 ExceptionState exceptionState(ExceptionState::SetterContext, "longAttribute" , "TestObject", holder, info.GetIsolate()); 503 ExceptionState exceptionState(ExceptionState::SetterContext, "longAttribute" , "TestObject", holder, info.GetIsolate());
514 TestObject* impl = V8TestObject::toImpl(holder); 504 TestObject* impl = V8TestObject::toImpl(holder);
515 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 505 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
516 if (exceptionState.throwIfNeeded()) 506 if (exceptionState.throwIfNeeded())
517 return; 507 return;
518 impl->setLongAttribute(cppValue); 508 impl->setLongAttribute(cppValue);
519 } 509 }
520 510
521 static void longAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo< v8::Value>& info) 511 static void longAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local< v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
522 { 512 {
523 v8::Local<v8::Value> v8Value = info[0];
524 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 513 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
525 TestObjectV8Internal::longAttributeAttributeSetter(v8Value, info); 514 TestObjectV8Internal::longAttributeAttributeSetter(v8Value, info);
526 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 515 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
527 } 516 }
528 517
529 static void longLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8:: Value>& info) 518 static void longLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8:: Value>& info)
530 { 519 {
531 v8::Local<v8::Object> holder = info.Holder(); 520 v8::Local<v8::Object> holder = info.Holder();
532 TestObject* impl = V8TestObject::toImpl(holder); 521 TestObject* impl = V8TestObject::toImpl(holder);
533 v8SetReturnValue(info, static_cast<double>(impl->longLongAttribute())); 522 v8SetReturnValue(info, static_cast<double>(impl->longLongAttribute()));
534 } 523 }
535 524
536 static void longLongAttributeAttributeGetterCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) 525 static void longLongAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
537 { 526 {
538 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 527 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
539 TestObjectV8Internal::longLongAttributeAttributeGetter(info); 528 TestObjectV8Internal::longLongAttributeAttributeGetter(info);
540 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 529 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
541 } 530 }
542 531
543 static void longLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 532 static void longLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
544 { 533 {
545 v8::Local<v8::Object> holder = info.Holder(); 534 v8::Local<v8::Object> holder = info.Holder();
546 ExceptionState exceptionState(ExceptionState::SetterContext, "longLongAttrib ute", "TestObject", holder, info.GetIsolate()); 535 ExceptionState exceptionState(ExceptionState::SetterContext, "longLongAttrib ute", "TestObject", holder, info.GetIsolate());
547 TestObject* impl = V8TestObject::toImpl(holder); 536 TestObject* impl = V8TestObject::toImpl(holder);
548 long long cppValue = toInt64(info.GetIsolate(), v8Value, NormalConversion, e xceptionState); 537 long long cppValue = toInt64(info.GetIsolate(), v8Value, NormalConversion, e xceptionState);
549 if (exceptionState.throwIfNeeded()) 538 if (exceptionState.throwIfNeeded())
550 return; 539 return;
551 impl->setLongLongAttribute(cppValue); 540 impl->setLongLongAttribute(cppValue);
552 } 541 }
553 542
554 static void longLongAttributeAttributeSetterCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) 543 static void longLongAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
555 { 544 {
556 v8::Local<v8::Value> v8Value = info[0];
557 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 545 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
558 TestObjectV8Internal::longLongAttributeAttributeSetter(v8Value, info); 546 TestObjectV8Internal::longLongAttributeAttributeSetter(v8Value, info);
559 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 547 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
560 } 548 }
561 549
562 static void octetAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Val ue>& info) 550 static void octetAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val ue>& info)
563 { 551 {
564 v8::Local<v8::Object> holder = info.Holder(); 552 v8::Local<v8::Object> holder = info.Holder();
565 TestObject* impl = V8TestObject::toImpl(holder); 553 TestObject* impl = V8TestObject::toImpl(holder);
566 v8SetReturnValueUnsigned(info, impl->octetAttribute()); 554 v8SetReturnValueUnsigned(info, impl->octetAttribute());
567 } 555 }
568 556
569 static void octetAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 557 static void octetAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8: :PropertyCallbackInfo<v8::Value>& info)
570 { 558 {
571 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 559 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
572 TestObjectV8Internal::octetAttributeAttributeGetter(info); 560 TestObjectV8Internal::octetAttributeAttributeGetter(info);
573 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 561 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
574 } 562 }
575 563
576 static void octetAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::FunctionCallbackInfo<v8::Value>& info) 564 static void octetAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::PropertyCallbackInfo<void>& info)
577 { 565 {
578 v8::Local<v8::Object> holder = info.Holder(); 566 v8::Local<v8::Object> holder = info.Holder();
579 ExceptionState exceptionState(ExceptionState::SetterContext, "octetAttribute ", "TestObject", holder, info.GetIsolate()); 567 ExceptionState exceptionState(ExceptionState::SetterContext, "octetAttribute ", "TestObject", holder, info.GetIsolate());
580 TestObject* impl = V8TestObject::toImpl(holder); 568 TestObject* impl = V8TestObject::toImpl(holder);
581 unsigned cppValue = toUInt8(info.GetIsolate(), v8Value, NormalConversion, ex ceptionState); 569 unsigned cppValue = toUInt8(info.GetIsolate(), v8Value, NormalConversion, ex ceptionState);
582 if (exceptionState.throwIfNeeded()) 570 if (exceptionState.throwIfNeeded())
583 return; 571 return;
584 impl->setOctetAttribute(cppValue); 572 impl->setOctetAttribute(cppValue);
585 } 573 }
586 574
587 static void octetAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 575 static void octetAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local <v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
588 { 576 {
589 v8::Local<v8::Value> v8Value = info[0];
590 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 577 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
591 TestObjectV8Internal::octetAttributeAttributeSetter(v8Value, info); 578 TestObjectV8Internal::octetAttributeAttributeSetter(v8Value, info);
592 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 579 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
593 } 580 }
594 581
595 static void shortAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Val ue>& info) 582 static void shortAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val ue>& info)
596 { 583 {
597 v8::Local<v8::Object> holder = info.Holder(); 584 v8::Local<v8::Object> holder = info.Holder();
598 TestObject* impl = V8TestObject::toImpl(holder); 585 TestObject* impl = V8TestObject::toImpl(holder);
599 v8SetReturnValueInt(info, impl->shortAttribute()); 586 v8SetReturnValueInt(info, impl->shortAttribute());
600 } 587 }
601 588
602 static void shortAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 589 static void shortAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8: :PropertyCallbackInfo<v8::Value>& info)
603 { 590 {
604 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 591 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
605 TestObjectV8Internal::shortAttributeAttributeGetter(info); 592 TestObjectV8Internal::shortAttributeAttributeGetter(info);
606 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 593 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
607 } 594 }
608 595
609 static void shortAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::FunctionCallbackInfo<v8::Value>& info) 596 static void shortAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::PropertyCallbackInfo<void>& info)
610 { 597 {
611 v8::Local<v8::Object> holder = info.Holder(); 598 v8::Local<v8::Object> holder = info.Holder();
612 ExceptionState exceptionState(ExceptionState::SetterContext, "shortAttribute ", "TestObject", holder, info.GetIsolate()); 599 ExceptionState exceptionState(ExceptionState::SetterContext, "shortAttribute ", "TestObject", holder, info.GetIsolate());
613 TestObject* impl = V8TestObject::toImpl(holder); 600 TestObject* impl = V8TestObject::toImpl(holder);
614 int cppValue = toInt16(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 601 int cppValue = toInt16(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
615 if (exceptionState.throwIfNeeded()) 602 if (exceptionState.throwIfNeeded())
616 return; 603 return;
617 impl->setShortAttribute(cppValue); 604 impl->setShortAttribute(cppValue);
618 } 605 }
619 606
620 static void shortAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 607 static void shortAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local <v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
621 { 608 {
622 v8::Local<v8::Value> v8Value = info[0];
623 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 609 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
624 TestObjectV8Internal::shortAttributeAttributeSetter(v8Value, info); 610 TestObjectV8Internal::shortAttributeAttributeSetter(v8Value, info);
625 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 611 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
626 } 612 }
627 613
628 static void unrestrictedDoubleAttributeAttributeGetter(const v8::FunctionCallbac kInfo<v8::Value>& info) 614 static void unrestrictedDoubleAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info)
629 { 615 {
630 v8::Local<v8::Object> holder = info.Holder(); 616 v8::Local<v8::Object> holder = info.Holder();
631 TestObject* impl = V8TestObject::toImpl(holder); 617 TestObject* impl = V8TestObject::toImpl(holder);
632 v8SetReturnValue(info, impl->unrestrictedDoubleAttribute()); 618 v8SetReturnValue(info, impl->unrestrictedDoubleAttribute());
633 } 619 }
634 620
635 static void unrestrictedDoubleAttributeAttributeGetterCallback(const v8::Functio nCallbackInfo<v8::Value>& info) 621 static void unrestrictedDoubleAttributeAttributeGetterCallback(v8::Local<v8::Nam e>, const v8::PropertyCallbackInfo<v8::Value>& info)
636 { 622 {
637 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 623 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
638 TestObjectV8Internal::unrestrictedDoubleAttributeAttributeGetter(info); 624 TestObjectV8Internal::unrestrictedDoubleAttributeAttributeGetter(info);
639 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 625 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
640 } 626 }
641 627
642 static void unrestrictedDoubleAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::FunctionCallbackInfo<v8::Value>& info) 628 static void unrestrictedDoubleAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::PropertyCallbackInfo<void>& info)
643 { 629 {
644 v8::Local<v8::Object> holder = info.Holder(); 630 v8::Local<v8::Object> holder = info.Holder();
645 ExceptionState exceptionState(ExceptionState::SetterContext, "unrestrictedDo ubleAttribute", "TestObject", holder, info.GetIsolate()); 631 ExceptionState exceptionState(ExceptionState::SetterContext, "unrestrictedDo ubleAttribute", "TestObject", holder, info.GetIsolate());
646 TestObject* impl = V8TestObject::toImpl(holder); 632 TestObject* impl = V8TestObject::toImpl(holder);
647 double cppValue = toDouble(info.GetIsolate(), v8Value, exceptionState); 633 double cppValue = toDouble(info.GetIsolate(), v8Value, exceptionState);
648 if (exceptionState.throwIfNeeded()) 634 if (exceptionState.throwIfNeeded())
649 return; 635 return;
650 impl->setUnrestrictedDoubleAttribute(cppValue); 636 impl->setUnrestrictedDoubleAttribute(cppValue);
651 } 637 }
652 638
653 static void unrestrictedDoubleAttributeAttributeSetterCallback(const v8::Functio nCallbackInfo<v8::Value>& info) 639 static void unrestrictedDoubleAttributeAttributeSetterCallback(v8::Local<v8::Nam e>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
654 { 640 {
655 v8::Local<v8::Value> v8Value = info[0];
656 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 641 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
657 TestObjectV8Internal::unrestrictedDoubleAttributeAttributeSetter(v8Value, in fo); 642 TestObjectV8Internal::unrestrictedDoubleAttributeAttributeSetter(v8Value, in fo);
658 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 643 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
659 } 644 }
660 645
661 static void unrestrictedFloatAttributeAttributeGetter(const v8::FunctionCallback Info<v8::Value>& info) 646 static void unrestrictedFloatAttributeAttributeGetter(const v8::PropertyCallback Info<v8::Value>& info)
662 { 647 {
663 v8::Local<v8::Object> holder = info.Holder(); 648 v8::Local<v8::Object> holder = info.Holder();
664 TestObject* impl = V8TestObject::toImpl(holder); 649 TestObject* impl = V8TestObject::toImpl(holder);
665 v8SetReturnValue(info, impl->unrestrictedFloatAttribute()); 650 v8SetReturnValue(info, impl->unrestrictedFloatAttribute());
666 } 651 }
667 652
668 static void unrestrictedFloatAttributeAttributeGetterCallback(const v8::Function CallbackInfo<v8::Value>& info) 653 static void unrestrictedFloatAttributeAttributeGetterCallback(v8::Local<v8::Name >, const v8::PropertyCallbackInfo<v8::Value>& info)
669 { 654 {
670 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 655 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
671 TestObjectV8Internal::unrestrictedFloatAttributeAttributeGetter(info); 656 TestObjectV8Internal::unrestrictedFloatAttributeAttributeGetter(info);
672 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 657 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
673 } 658 }
674 659
675 static void unrestrictedFloatAttributeAttributeSetter(v8::Local<v8::Value> v8Val ue, const v8::FunctionCallbackInfo<v8::Value>& info) 660 static void unrestrictedFloatAttributeAttributeSetter(v8::Local<v8::Value> v8Val ue, const v8::PropertyCallbackInfo<void>& info)
676 { 661 {
677 v8::Local<v8::Object> holder = info.Holder(); 662 v8::Local<v8::Object> holder = info.Holder();
678 ExceptionState exceptionState(ExceptionState::SetterContext, "unrestrictedFl oatAttribute", "TestObject", holder, info.GetIsolate()); 663 ExceptionState exceptionState(ExceptionState::SetterContext, "unrestrictedFl oatAttribute", "TestObject", holder, info.GetIsolate());
679 TestObject* impl = V8TestObject::toImpl(holder); 664 TestObject* impl = V8TestObject::toImpl(holder);
680 float cppValue = toFloat(info.GetIsolate(), v8Value, exceptionState); 665 float cppValue = toFloat(info.GetIsolate(), v8Value, exceptionState);
681 if (exceptionState.throwIfNeeded()) 666 if (exceptionState.throwIfNeeded())
682 return; 667 return;
683 impl->setUnrestrictedFloatAttribute(cppValue); 668 impl->setUnrestrictedFloatAttribute(cppValue);
684 } 669 }
685 670
686 static void unrestrictedFloatAttributeAttributeSetterCallback(const v8::Function CallbackInfo<v8::Value>& info) 671 static void unrestrictedFloatAttributeAttributeSetterCallback(v8::Local<v8::Name >, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
687 { 672 {
688 v8::Local<v8::Value> v8Value = info[0];
689 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 673 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
690 TestObjectV8Internal::unrestrictedFloatAttributeAttributeSetter(v8Value, inf o); 674 TestObjectV8Internal::unrestrictedFloatAttributeAttributeSetter(v8Value, inf o);
691 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 675 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
692 } 676 }
693 677
694 static void unsignedLongAttributeAttributeGetter(const v8::FunctionCallbackInfo< v8::Value>& info) 678 static void unsignedLongAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info)
695 { 679 {
696 v8::Local<v8::Object> holder = info.Holder(); 680 v8::Local<v8::Object> holder = info.Holder();
697 TestObject* impl = V8TestObject::toImpl(holder); 681 TestObject* impl = V8TestObject::toImpl(holder);
698 v8SetReturnValueUnsigned(info, impl->unsignedLongAttribute()); 682 v8SetReturnValueUnsigned(info, impl->unsignedLongAttribute());
699 } 683 }
700 684
701 static void unsignedLongAttributeAttributeGetterCallback(const v8::FunctionCallb ackInfo<v8::Value>& info) 685 static void unsignedLongAttributeAttributeGetterCallback(v8::Local<v8::Name>, co nst v8::PropertyCallbackInfo<v8::Value>& info)
702 { 686 {
703 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 687 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
704 TestObjectV8Internal::unsignedLongAttributeAttributeGetter(info); 688 TestObjectV8Internal::unsignedLongAttributeAttributeGetter(info);
705 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 689 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
706 } 690 }
707 691
708 static void unsignedLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::FunctionCallbackInfo<v8::Value>& info) 692 static void unsignedLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info)
709 { 693 {
710 v8::Local<v8::Object> holder = info.Holder(); 694 v8::Local<v8::Object> holder = info.Holder();
711 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedLongAt tribute", "TestObject", holder, info.GetIsolate()); 695 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedLongAt tribute", "TestObject", holder, info.GetIsolate());
712 TestObject* impl = V8TestObject::toImpl(holder); 696 TestObject* impl = V8TestObject::toImpl(holder);
713 unsigned cppValue = toUInt32(info.GetIsolate(), v8Value, NormalConversion, e xceptionState); 697 unsigned cppValue = toUInt32(info.GetIsolate(), v8Value, NormalConversion, e xceptionState);
714 if (exceptionState.throwIfNeeded()) 698 if (exceptionState.throwIfNeeded())
715 return; 699 return;
716 impl->setUnsignedLongAttribute(cppValue); 700 impl->setUnsignedLongAttribute(cppValue);
717 } 701 }
718 702
719 static void unsignedLongAttributeAttributeSetterCallback(const v8::FunctionCallb ackInfo<v8::Value>& info) 703 static void unsignedLongAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
720 { 704 {
721 v8::Local<v8::Value> v8Value = info[0];
722 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 705 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
723 TestObjectV8Internal::unsignedLongAttributeAttributeSetter(v8Value, info); 706 TestObjectV8Internal::unsignedLongAttributeAttributeSetter(v8Value, info);
724 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 707 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
725 } 708 }
726 709
727 static void unsignedLongLongAttributeAttributeGetter(const v8::FunctionCallbackI nfo<v8::Value>& info) 710 static void unsignedLongLongAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info)
728 { 711 {
729 v8::Local<v8::Object> holder = info.Holder(); 712 v8::Local<v8::Object> holder = info.Holder();
730 TestObject* impl = V8TestObject::toImpl(holder); 713 TestObject* impl = V8TestObject::toImpl(holder);
731 v8SetReturnValue(info, static_cast<double>(impl->unsignedLongLongAttribute() )); 714 v8SetReturnValue(info, static_cast<double>(impl->unsignedLongLongAttribute() ));
732 } 715 }
733 716
734 static void unsignedLongLongAttributeAttributeGetterCallback(const v8::FunctionC allbackInfo<v8::Value>& info) 717 static void unsignedLongLongAttributeAttributeGetterCallback(v8::Local<v8::Name> , const v8::PropertyCallbackInfo<v8::Value>& info)
735 { 718 {
736 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 719 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
737 TestObjectV8Internal::unsignedLongLongAttributeAttributeGetter(info); 720 TestObjectV8Internal::unsignedLongLongAttributeAttributeGetter(info);
738 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 721 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
739 } 722 }
740 723
741 static void unsignedLongLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::FunctionCallbackInfo<v8::Value>& info) 724 static void unsignedLongLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::PropertyCallbackInfo<void>& info)
742 { 725 {
743 v8::Local<v8::Object> holder = info.Holder(); 726 v8::Local<v8::Object> holder = info.Holder();
744 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedLongLo ngAttribute", "TestObject", holder, info.GetIsolate()); 727 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedLongLo ngAttribute", "TestObject", holder, info.GetIsolate());
745 TestObject* impl = V8TestObject::toImpl(holder); 728 TestObject* impl = V8TestObject::toImpl(holder);
746 unsigned long long cppValue = toUInt64(info.GetIsolate(), v8Value, NormalCon version, exceptionState); 729 unsigned long long cppValue = toUInt64(info.GetIsolate(), v8Value, NormalCon version, exceptionState);
747 if (exceptionState.throwIfNeeded()) 730 if (exceptionState.throwIfNeeded())
748 return; 731 return;
749 impl->setUnsignedLongLongAttribute(cppValue); 732 impl->setUnsignedLongLongAttribute(cppValue);
750 } 733 }
751 734
752 static void unsignedLongLongAttributeAttributeSetterCallback(const v8::FunctionC allbackInfo<v8::Value>& info) 735 static void unsignedLongLongAttributeAttributeSetterCallback(v8::Local<v8::Name> , v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
753 { 736 {
754 v8::Local<v8::Value> v8Value = info[0];
755 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 737 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
756 TestObjectV8Internal::unsignedLongLongAttributeAttributeSetter(v8Value, info ); 738 TestObjectV8Internal::unsignedLongLongAttributeAttributeSetter(v8Value, info );
757 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 739 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
758 } 740 }
759 741
760 static void unsignedShortAttributeAttributeGetter(const v8::FunctionCallbackInfo <v8::Value>& info) 742 static void unsignedShortAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info)
761 { 743 {
762 v8::Local<v8::Object> holder = info.Holder(); 744 v8::Local<v8::Object> holder = info.Holder();
763 TestObject* impl = V8TestObject::toImpl(holder); 745 TestObject* impl = V8TestObject::toImpl(holder);
764 v8SetReturnValueUnsigned(info, impl->unsignedShortAttribute()); 746 v8SetReturnValueUnsigned(info, impl->unsignedShortAttribute());
765 } 747 }
766 748
767 static void unsignedShortAttributeAttributeGetterCallback(const v8::FunctionCall backInfo<v8::Value>& info) 749 static void unsignedShortAttributeAttributeGetterCallback(v8::Local<v8::Name>, c onst v8::PropertyCallbackInfo<v8::Value>& info)
768 { 750 {
769 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 751 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
770 TestObjectV8Internal::unsignedShortAttributeAttributeGetter(info); 752 TestObjectV8Internal::unsignedShortAttributeAttributeGetter(info);
771 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 753 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
772 } 754 }
773 755
774 static void unsignedShortAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 756 static void unsignedShortAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
775 { 757 {
776 v8::Local<v8::Object> holder = info.Holder(); 758 v8::Local<v8::Object> holder = info.Holder();
777 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedShortA ttribute", "TestObject", holder, info.GetIsolate()); 759 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedShortA ttribute", "TestObject", holder, info.GetIsolate());
778 TestObject* impl = V8TestObject::toImpl(holder); 760 TestObject* impl = V8TestObject::toImpl(holder);
779 unsigned cppValue = toUInt16(info.GetIsolate(), v8Value, NormalConversion, e xceptionState); 761 unsigned cppValue = toUInt16(info.GetIsolate(), v8Value, NormalConversion, e xceptionState);
780 if (exceptionState.throwIfNeeded()) 762 if (exceptionState.throwIfNeeded())
781 return; 763 return;
782 impl->setUnsignedShortAttribute(cppValue); 764 impl->setUnsignedShortAttribute(cppValue);
783 } 765 }
784 766
785 static void unsignedShortAttributeAttributeSetterCallback(const v8::FunctionCall backInfo<v8::Value>& info) 767 static void unsignedShortAttributeAttributeSetterCallback(v8::Local<v8::Name>, v 8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
786 { 768 {
787 v8::Local<v8::Value> v8Value = info[0];
788 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 769 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
789 TestObjectV8Internal::unsignedShortAttributeAttributeSetter(v8Value, info); 770 TestObjectV8Internal::unsignedShortAttributeAttributeSetter(v8Value, info);
790 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 771 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
791 } 772 }
792 773
793 static void testInterfaceEmptyAttributeAttributeGetter(const v8::FunctionCallbac kInfo<v8::Value>& info) 774 static void testInterfaceEmptyAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info)
794 { 775 {
795 v8::Local<v8::Object> holder = info.Holder(); 776 v8::Local<v8::Object> holder = info.Holder();
796 TestObject* impl = V8TestObject::toImpl(holder); 777 TestObject* impl = V8TestObject::toImpl(holder);
797 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceEmptyAttribute()), impl); 778 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceEmptyAttribute()), impl);
798 } 779 }
799 780
800 static void testInterfaceEmptyAttributeAttributeGetterCallback(const v8::Functio nCallbackInfo<v8::Value>& info) 781 static void testInterfaceEmptyAttributeAttributeGetterCallback(v8::Local<v8::Nam e>, const v8::PropertyCallbackInfo<v8::Value>& info)
801 { 782 {
802 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 783 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
803 TestObjectV8Internal::testInterfaceEmptyAttributeAttributeGetter(info); 784 TestObjectV8Internal::testInterfaceEmptyAttributeAttributeGetter(info);
804 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 785 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
805 } 786 }
806 787
807 static void testInterfaceEmptyAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::FunctionCallbackInfo<v8::Value>& info) 788 static void testInterfaceEmptyAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::PropertyCallbackInfo<void>& info)
808 { 789 {
809 v8::Local<v8::Object> holder = info.Holder(); 790 v8::Local<v8::Object> holder = info.Holder();
810 TestObject* impl = V8TestObject::toImpl(holder); 791 TestObject* impl = V8TestObject::toImpl(holder);
811 TestInterfaceEmpty* cppValue = V8TestInterfaceEmpty::toImplWithTypeCheck(inf o.GetIsolate(), v8Value); 792 TestInterfaceEmpty* cppValue = V8TestInterfaceEmpty::toImplWithTypeCheck(inf o.GetIsolate(), v8Value);
812 impl->setTestInterfaceEmptyAttribute(WTF::getPtr(cppValue)); 793 impl->setTestInterfaceEmptyAttribute(WTF::getPtr(cppValue));
813 } 794 }
814 795
815 static void testInterfaceEmptyAttributeAttributeSetterCallback(const v8::Functio nCallbackInfo<v8::Value>& info) 796 static void testInterfaceEmptyAttributeAttributeSetterCallback(v8::Local<v8::Nam e>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
816 { 797 {
817 v8::Local<v8::Value> v8Value = info[0];
818 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 798 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
819 TestObjectV8Internal::testInterfaceEmptyAttributeAttributeSetter(v8Value, in fo); 799 TestObjectV8Internal::testInterfaceEmptyAttributeAttributeSetter(v8Value, in fo);
820 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 800 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
821 } 801 }
822 802
823 static void testObjectAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8 ::Value>& info) 803 static void testObjectAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info)
824 { 804 {
825 v8::Local<v8::Object> holder = info.Holder(); 805 v8::Local<v8::Object> holder = info.Holder();
826 TestObject* impl = V8TestObject::toImpl(holder); 806 TestObject* impl = V8TestObject::toImpl(holder);
827 v8SetReturnValueFast(info, WTF::getPtr(impl->testObjectAttribute()), impl); 807 v8SetReturnValueFast(info, WTF::getPtr(impl->testObjectAttribute()), impl);
828 } 808 }
829 809
830 static void testObjectAttributeAttributeGetterCallback(const v8::FunctionCallbac kInfo<v8::Value>& info) 810 static void testObjectAttributeAttributeGetterCallback(v8::Local<v8::Name>, cons t v8::PropertyCallbackInfo<v8::Value>& info)
831 { 811 {
832 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 812 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
833 TestObjectV8Internal::testObjectAttributeAttributeGetter(info); 813 TestObjectV8Internal::testObjectAttributeAttributeGetter(info);
834 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 814 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
835 } 815 }
836 816
837 static void testObjectAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::FunctionCallbackInfo<v8::Value>& info) 817 static void testObjectAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info)
838 { 818 {
839 v8::Local<v8::Object> holder = info.Holder(); 819 v8::Local<v8::Object> holder = info.Holder();
840 TestObject* impl = V8TestObject::toImpl(holder); 820 TestObject* impl = V8TestObject::toImpl(holder);
841 TestObject* cppValue = V8TestObject::toImplWithTypeCheck(info.GetIsolate(), v8Value); 821 TestObject* cppValue = V8TestObject::toImplWithTypeCheck(info.GetIsolate(), v8Value);
842 impl->setTestObjectAttribute(WTF::getPtr(cppValue)); 822 impl->setTestObjectAttribute(WTF::getPtr(cppValue));
843 } 823 }
844 824
845 static void testObjectAttributeAttributeSetterCallback(const v8::FunctionCallbac kInfo<v8::Value>& info) 825 static void testObjectAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
846 { 826 {
847 v8::Local<v8::Value> v8Value = info[0];
848 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 827 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
849 TestObjectV8Internal::testObjectAttributeAttributeSetter(v8Value, info); 828 TestObjectV8Internal::testObjectAttributeAttributeSetter(v8Value, info);
850 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 829 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
851 } 830 }
852 831
853 static void voidCallbackFunctionAttributeAttributeGetter(const v8::FunctionCallb ackInfo<v8::Value>& info) 832 static void voidCallbackFunctionAttributeAttributeGetter(const v8::PropertyCallb ackInfo<v8::Value>& info)
854 { 833 {
855 v8::Local<v8::Object> holder = info.Holder(); 834 v8::Local<v8::Object> holder = info.Holder();
856 TestObject* impl = V8TestObject::toImpl(holder); 835 TestObject* impl = V8TestObject::toImpl(holder);
857 v8SetReturnValue(info, impl->voidCallbackFunctionAttribute().v8Value()); 836 v8SetReturnValue(info, impl->voidCallbackFunctionAttribute().v8Value());
858 } 837 }
859 838
860 static void voidCallbackFunctionAttributeAttributeGetterCallback(const v8::Funct ionCallbackInfo<v8::Value>& info) 839 static void voidCallbackFunctionAttributeAttributeGetterCallback(v8::Local<v8::N ame>, const v8::PropertyCallbackInfo<v8::Value>& info)
861 { 840 {
862 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 841 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
863 TestObjectV8Internal::voidCallbackFunctionAttributeAttributeGetter(info); 842 TestObjectV8Internal::voidCallbackFunctionAttributeAttributeGetter(info);
864 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 843 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
865 } 844 }
866 845
867 static void voidCallbackFunctionAttributeAttributeSetter(v8::Local<v8::Value> v8 Value, const v8::FunctionCallbackInfo<v8::Value>& info) 846 static void voidCallbackFunctionAttributeAttributeSetter(v8::Local<v8::Value> v8 Value, const v8::PropertyCallbackInfo<void>& info)
868 { 847 {
869 v8::Local<v8::Object> holder = info.Holder(); 848 v8::Local<v8::Object> holder = info.Holder();
870 TestObject* impl = V8TestObject::toImpl(holder); 849 TestObject* impl = V8TestObject::toImpl(holder);
871 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value); 850 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value);
872 impl->setVoidCallbackFunctionAttribute(cppValue); 851 impl->setVoidCallbackFunctionAttribute(cppValue);
873 } 852 }
874 853
875 static void voidCallbackFunctionAttributeAttributeSetterCallback(const v8::Funct ionCallbackInfo<v8::Value>& info) 854 static void voidCallbackFunctionAttributeAttributeSetterCallback(v8::Local<v8::N ame>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
876 { 855 {
877 v8::Local<v8::Value> v8Value = info[0];
878 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 856 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
879 TestObjectV8Internal::voidCallbackFunctionAttributeAttributeSetter(v8Value, info); 857 TestObjectV8Internal::voidCallbackFunctionAttributeAttributeSetter(v8Value, info);
880 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 858 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
881 } 859 }
882 860
883 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeGetter(const v8:: FunctionCallbackInfo<v8::Value>& info) 861 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeGetter(const v8:: PropertyCallbackInfo<v8::Value>& info)
884 { 862 {
885 v8::Local<v8::Object> holder = info.Holder(); 863 v8::Local<v8::Object> holder = info.Holder();
886 TestObject* impl = V8TestObject::toImpl(holder); 864 TestObject* impl = V8TestObject::toImpl(holder);
887 v8SetReturnValue(info, impl->anyCallbackFunctionOptionalAnyArgAttribute().v8 Value()); 865 v8SetReturnValue(info, impl->anyCallbackFunctionOptionalAnyArgAttribute().v8 Value());
888 } 866 }
889 867
890 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeGetterCallback(co nst v8::FunctionCallbackInfo<v8::Value>& info) 868 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeGetterCallback(v8 ::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
891 { 869 {
892 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 870 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
893 TestObjectV8Internal::anyCallbackFunctionOptionalAnyArgAttributeAttributeGet ter(info); 871 TestObjectV8Internal::anyCallbackFunctionOptionalAnyArgAttributeAttributeGet ter(info);
894 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 872 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
895 } 873 }
896 874
897 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeSetter(v8::Local< v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 875 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeSetter(v8::Local< v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
898 { 876 {
899 v8::Local<v8::Object> holder = info.Holder(); 877 v8::Local<v8::Object> holder = info.Holder();
900 TestObject* impl = V8TestObject::toImpl(holder); 878 TestObject* impl = V8TestObject::toImpl(holder);
901 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value); 879 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value);
902 impl->setAnyCallbackFunctionOptionalAnyArgAttribute(cppValue); 880 impl->setAnyCallbackFunctionOptionalAnyArgAttribute(cppValue);
903 } 881 }
904 882
905 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeSetterCallback(co nst v8::FunctionCallbackInfo<v8::Value>& info) 883 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeSetterCallback(v8 ::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo< void>& info)
906 { 884 {
907 v8::Local<v8::Value> v8Value = info[0];
908 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 885 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
909 TestObjectV8Internal::anyCallbackFunctionOptionalAnyArgAttributeAttributeSet ter(v8Value, info); 886 TestObjectV8Internal::anyCallbackFunctionOptionalAnyArgAttributeAttributeSet ter(v8Value, info);
910 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 887 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
911 } 888 }
912 889
913 static void cssAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value >& info) 890 static void cssAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value >& info)
914 { 891 {
915 v8::Local<v8::Object> holder = info.Holder(); 892 v8::Local<v8::Object> holder = info.Holder();
916 TestObject* impl = V8TestObject::toImpl(holder); 893 TestObject* impl = V8TestObject::toImpl(holder);
917 v8SetReturnValueInt(info, impl->cssAttribute()); 894 v8SetReturnValueInt(info, impl->cssAttribute());
918 } 895 }
919 896
920 static void cssAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) 897 static void cssAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8::P ropertyCallbackInfo<v8::Value>& info)
921 { 898 {
922 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 899 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
923 TestObjectV8Internal::cssAttributeAttributeGetter(info); 900 TestObjectV8Internal::cssAttributeAttributeGetter(info);
924 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 901 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
925 } 902 }
926 903
927 static void cssAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: FunctionCallbackInfo<v8::Value>& info) 904 static void cssAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: PropertyCallbackInfo<void>& info)
928 { 905 {
929 v8::Local<v8::Object> holder = info.Holder(); 906 v8::Local<v8::Object> holder = info.Holder();
930 ExceptionState exceptionState(ExceptionState::SetterContext, "cssAttribute", "TestObject", holder, info.GetIsolate()); 907 ExceptionState exceptionState(ExceptionState::SetterContext, "cssAttribute", "TestObject", holder, info.GetIsolate());
931 TestObject* impl = V8TestObject::toImpl(holder); 908 TestObject* impl = V8TestObject::toImpl(holder);
932 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 909 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
933 if (exceptionState.throwIfNeeded()) 910 if (exceptionState.throwIfNeeded())
934 return; 911 return;
935 impl->setCSSAttribute(cppValue); 912 impl->setCSSAttribute(cppValue);
936 } 913 }
937 914
938 static void cssAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) 915 static void cssAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v 8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
939 { 916 {
940 v8::Local<v8::Value> v8Value = info[0];
941 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 917 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
942 TestObjectV8Internal::cssAttributeAttributeSetter(v8Value, info); 918 TestObjectV8Internal::cssAttributeAttributeSetter(v8Value, info);
943 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 919 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
944 } 920 }
945 921
946 static void imeAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value >& info) 922 static void imeAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value >& info)
947 { 923 {
948 v8::Local<v8::Object> holder = info.Holder(); 924 v8::Local<v8::Object> holder = info.Holder();
949 TestObject* impl = V8TestObject::toImpl(holder); 925 TestObject* impl = V8TestObject::toImpl(holder);
950 v8SetReturnValueInt(info, impl->imeAttribute()); 926 v8SetReturnValueInt(info, impl->imeAttribute());
951 } 927 }
952 928
953 static void imeAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) 929 static void imeAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8::P ropertyCallbackInfo<v8::Value>& info)
954 { 930 {
955 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 931 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
956 TestObjectV8Internal::imeAttributeAttributeGetter(info); 932 TestObjectV8Internal::imeAttributeAttributeGetter(info);
957 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 933 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
958 } 934 }
959 935
960 static void imeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: FunctionCallbackInfo<v8::Value>& info) 936 static void imeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: PropertyCallbackInfo<void>& info)
961 { 937 {
962 v8::Local<v8::Object> holder = info.Holder(); 938 v8::Local<v8::Object> holder = info.Holder();
963 ExceptionState exceptionState(ExceptionState::SetterContext, "imeAttribute", "TestObject", holder, info.GetIsolate()); 939 ExceptionState exceptionState(ExceptionState::SetterContext, "imeAttribute", "TestObject", holder, info.GetIsolate());
964 TestObject* impl = V8TestObject::toImpl(holder); 940 TestObject* impl = V8TestObject::toImpl(holder);
965 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 941 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
966 if (exceptionState.throwIfNeeded()) 942 if (exceptionState.throwIfNeeded())
967 return; 943 return;
968 impl->setIMEAttribute(cppValue); 944 impl->setIMEAttribute(cppValue);
969 } 945 }
970 946
971 static void imeAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) 947 static void imeAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v 8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
972 { 948 {
973 v8::Local<v8::Value> v8Value = info[0];
974 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 949 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
975 TestObjectV8Internal::imeAttributeAttributeSetter(v8Value, info); 950 TestObjectV8Internal::imeAttributeAttributeSetter(v8Value, info);
976 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 951 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
977 } 952 }
978 953
979 static void svgAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value >& info) 954 static void svgAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value >& info)
980 { 955 {
981 v8::Local<v8::Object> holder = info.Holder(); 956 v8::Local<v8::Object> holder = info.Holder();
982 TestObject* impl = V8TestObject::toImpl(holder); 957 TestObject* impl = V8TestObject::toImpl(holder);
983 v8SetReturnValueInt(info, impl->svgAttribute()); 958 v8SetReturnValueInt(info, impl->svgAttribute());
984 } 959 }
985 960
986 static void svgAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) 961 static void svgAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8::P ropertyCallbackInfo<v8::Value>& info)
987 { 962 {
988 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 963 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
989 TestObjectV8Internal::svgAttributeAttributeGetter(info); 964 TestObjectV8Internal::svgAttributeAttributeGetter(info);
990 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 965 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
991 } 966 }
992 967
993 static void svgAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: FunctionCallbackInfo<v8::Value>& info) 968 static void svgAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: PropertyCallbackInfo<void>& info)
994 { 969 {
995 v8::Local<v8::Object> holder = info.Holder(); 970 v8::Local<v8::Object> holder = info.Holder();
996 ExceptionState exceptionState(ExceptionState::SetterContext, "svgAttribute", "TestObject", holder, info.GetIsolate()); 971 ExceptionState exceptionState(ExceptionState::SetterContext, "svgAttribute", "TestObject", holder, info.GetIsolate());
997 TestObject* impl = V8TestObject::toImpl(holder); 972 TestObject* impl = V8TestObject::toImpl(holder);
998 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 973 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
999 if (exceptionState.throwIfNeeded()) 974 if (exceptionState.throwIfNeeded())
1000 return; 975 return;
1001 impl->setSVGAttribute(cppValue); 976 impl->setSVGAttribute(cppValue);
1002 } 977 }
1003 978
1004 static void svgAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) 979 static void svgAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v 8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1005 { 980 {
1006 v8::Local<v8::Value> v8Value = info[0];
1007 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 981 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1008 TestObjectV8Internal::svgAttributeAttributeSetter(v8Value, info); 982 TestObjectV8Internal::svgAttributeAttributeSetter(v8Value, info);
1009 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 983 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1010 } 984 }
1011 985
1012 static void xmlAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value >& info) 986 static void xmlAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value >& info)
1013 { 987 {
1014 v8::Local<v8::Object> holder = info.Holder(); 988 v8::Local<v8::Object> holder = info.Holder();
1015 TestObject* impl = V8TestObject::toImpl(holder); 989 TestObject* impl = V8TestObject::toImpl(holder);
1016 v8SetReturnValueInt(info, impl->xmlAttribute()); 990 v8SetReturnValueInt(info, impl->xmlAttribute());
1017 } 991 }
1018 992
1019 static void xmlAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) 993 static void xmlAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8::P ropertyCallbackInfo<v8::Value>& info)
1020 { 994 {
1021 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 995 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1022 TestObjectV8Internal::xmlAttributeAttributeGetter(info); 996 TestObjectV8Internal::xmlAttributeAttributeGetter(info);
1023 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 997 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1024 } 998 }
1025 999
1026 static void xmlAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: FunctionCallbackInfo<v8::Value>& info) 1000 static void xmlAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: PropertyCallbackInfo<void>& info)
1027 { 1001 {
1028 v8::Local<v8::Object> holder = info.Holder(); 1002 v8::Local<v8::Object> holder = info.Holder();
1029 ExceptionState exceptionState(ExceptionState::SetterContext, "xmlAttribute", "TestObject", holder, info.GetIsolate()); 1003 ExceptionState exceptionState(ExceptionState::SetterContext, "xmlAttribute", "TestObject", holder, info.GetIsolate());
1030 TestObject* impl = V8TestObject::toImpl(holder); 1004 TestObject* impl = V8TestObject::toImpl(holder);
1031 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 1005 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
1032 if (exceptionState.throwIfNeeded()) 1006 if (exceptionState.throwIfNeeded())
1033 return; 1007 return;
1034 impl->setXMLAttribute(cppValue); 1008 impl->setXMLAttribute(cppValue);
1035 } 1009 }
1036 1010
1037 static void xmlAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) 1011 static void xmlAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v 8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1038 { 1012 {
1039 v8::Local<v8::Value> v8Value = info[0];
1040 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1013 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1041 TestObjectV8Internal::xmlAttributeAttributeSetter(v8Value, info); 1014 TestObjectV8Internal::xmlAttributeAttributeSetter(v8Value, info);
1042 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1015 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1043 } 1016 }
1044 1017
1045 static void nodeFilterAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8 ::Value>& info) 1018 static void nodeFilterAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info)
1046 { 1019 {
1047 v8::Local<v8::Object> holder = info.Holder(); 1020 v8::Local<v8::Object> holder = info.Holder();
1048 TestObject* impl = V8TestObject::toImpl(holder); 1021 TestObject* impl = V8TestObject::toImpl(holder);
1049 v8SetReturnValueFast(info, WTF::getPtr(impl->nodeFilterAttribute()), impl); 1022 v8SetReturnValueFast(info, WTF::getPtr(impl->nodeFilterAttribute()), impl);
1050 } 1023 }
1051 1024
1052 static void nodeFilterAttributeAttributeGetterCallback(const v8::FunctionCallbac kInfo<v8::Value>& info) 1025 static void nodeFilterAttributeAttributeGetterCallback(v8::Local<v8::Name>, cons t v8::PropertyCallbackInfo<v8::Value>& info)
1053 { 1026 {
1054 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1027 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1055 TestObjectV8Internal::nodeFilterAttributeAttributeGetter(info); 1028 TestObjectV8Internal::nodeFilterAttributeAttributeGetter(info);
1056 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1029 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1057 } 1030 }
1058 1031
1059 static void nodeFilterAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::FunctionCallbackInfo<v8::Value>& info) 1032 static void nodeFilterAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info)
1060 { 1033 {
1061 v8::Local<v8::Object> holder = info.Holder(); 1034 v8::Local<v8::Object> holder = info.Holder();
1062 TestObject* impl = V8TestObject::toImpl(holder); 1035 TestObject* impl = V8TestObject::toImpl(holder);
1063 RefPtrWillBeRawPtr<NodeFilter> cppValue = toNodeFilter(v8Value, info.Holder( ), ScriptState::current(info.GetIsolate())); 1036 RefPtrWillBeRawPtr<NodeFilter> cppValue = toNodeFilter(v8Value, info.Holder( ), ScriptState::current(info.GetIsolate()));
1064 impl->setNodeFilterAttribute(WTF::getPtr(cppValue)); 1037 impl->setNodeFilterAttribute(WTF::getPtr(cppValue));
1065 } 1038 }
1066 1039
1067 static void nodeFilterAttributeAttributeSetterCallback(const v8::FunctionCallbac kInfo<v8::Value>& info) 1040 static void nodeFilterAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1068 { 1041 {
1069 v8::Local<v8::Value> v8Value = info[0];
1070 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1042 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1071 TestObjectV8Internal::nodeFilterAttributeAttributeSetter(v8Value, info); 1043 TestObjectV8Internal::nodeFilterAttributeAttributeSetter(v8Value, info);
1072 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1044 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1073 } 1045 }
1074 1046
1075 static void serializedScriptValueAttributeAttributeGetter(const v8::FunctionCall backInfo<v8::Value>& info) 1047 static void serializedScriptValueAttributeAttributeGetter(const v8::PropertyCall backInfo<v8::Value>& info)
1076 { 1048 {
1077 v8::Local<v8::Object> holder = info.Holder(); 1049 v8::Local<v8::Object> holder = info.Holder();
1078 TestObject* impl = V8TestObject::toImpl(holder); 1050 TestObject* impl = V8TestObject::toImpl(holder);
1079 v8SetReturnValue(info, impl->serializedScriptValueAttribute() ? impl->serial izedScriptValueAttribute()->deserialize() : v8::Local<v8::Value>(v8::Null(info.G etIsolate()))); 1051 v8SetReturnValue(info, impl->serializedScriptValueAttribute() ? impl->serial izedScriptValueAttribute()->deserialize() : v8::Local<v8::Value>(v8::Null(info.G etIsolate())));
1080 } 1052 }
1081 1053
1082 static void serializedScriptValueAttributeAttributeGetterCallback(const v8::Func tionCallbackInfo<v8::Value>& info) 1054 static void serializedScriptValueAttributeAttributeGetterCallback(v8::Local<v8:: Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
1083 { 1055 {
1084 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1056 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1085 TestObjectV8Internal::serializedScriptValueAttributeAttributeGetter(info); 1057 TestObjectV8Internal::serializedScriptValueAttributeAttributeGetter(info);
1086 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1058 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1087 } 1059 }
1088 1060
1089 static void serializedScriptValueAttributeAttributeSetter(v8::Local<v8::Value> v 8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 1061 static void serializedScriptValueAttributeAttributeSetter(v8::Local<v8::Value> v 8Value, const v8::PropertyCallbackInfo<void>& info)
1090 { 1062 {
1091 v8::Local<v8::Object> holder = info.Holder(); 1063 v8::Local<v8::Object> holder = info.Holder();
1092 ExceptionState exceptionState(ExceptionState::SetterContext, "serializedScri ptValueAttribute", "TestObject", holder, info.GetIsolate()); 1064 ExceptionState exceptionState(ExceptionState::SetterContext, "serializedScri ptValueAttribute", "TestObject", holder, info.GetIsolate());
1093 TestObject* impl = V8TestObject::toImpl(holder); 1065 TestObject* impl = V8TestObject::toImpl(holder);
1094 RefPtr<SerializedScriptValue> cppValue = SerializedScriptValueFactory::insta nce().create(v8Value, 0, 0, exceptionState, info.GetIsolate()); 1066 RefPtr<SerializedScriptValue> cppValue = SerializedScriptValueFactory::insta nce().create(v8Value, 0, 0, exceptionState, info.GetIsolate());
1095 if (exceptionState.throwIfNeeded()) 1067 if (exceptionState.throwIfNeeded())
1096 return; 1068 return;
1097 impl->setSerializedScriptValueAttribute(WTF::getPtr(cppValue)); 1069 impl->setSerializedScriptValueAttribute(WTF::getPtr(cppValue));
1098 } 1070 }
1099 1071
1100 static void serializedScriptValueAttributeAttributeSetterCallback(const v8::Func tionCallbackInfo<v8::Value>& info) 1072 static void serializedScriptValueAttributeAttributeSetterCallback(v8::Local<v8:: Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1101 { 1073 {
1102 v8::Local<v8::Value> v8Value = info[0];
1103 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1074 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1104 TestObjectV8Internal::serializedScriptValueAttributeAttributeSetter(v8Value, info); 1075 TestObjectV8Internal::serializedScriptValueAttributeAttributeSetter(v8Value, info);
1105 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1076 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1106 } 1077 }
1107 1078
1108 static void anyAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value >& info) 1079 static void anyAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value >& info)
1109 { 1080 {
1110 v8::Local<v8::Object> holder = info.Holder(); 1081 v8::Local<v8::Object> holder = info.Holder();
1111 TestObject* impl = V8TestObject::toImpl(holder); 1082 TestObject* impl = V8TestObject::toImpl(holder);
1112 v8SetReturnValue(info, impl->anyAttribute().v8Value()); 1083 v8SetReturnValue(info, impl->anyAttribute().v8Value());
1113 } 1084 }
1114 1085
1115 static void anyAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) 1086 static void anyAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8::P ropertyCallbackInfo<v8::Value>& info)
1116 { 1087 {
1117 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1088 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1118 TestObjectV8Internal::anyAttributeAttributeGetter(info); 1089 TestObjectV8Internal::anyAttributeAttributeGetter(info);
1119 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1090 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1120 } 1091 }
1121 1092
1122 static void anyAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: FunctionCallbackInfo<v8::Value>& info) 1093 static void anyAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: PropertyCallbackInfo<void>& info)
1123 { 1094 {
1124 v8::Local<v8::Object> holder = info.Holder(); 1095 v8::Local<v8::Object> holder = info.Holder();
1125 TestObject* impl = V8TestObject::toImpl(holder); 1096 TestObject* impl = V8TestObject::toImpl(holder);
1126 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value); 1097 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value);
1127 impl->setAnyAttribute(cppValue); 1098 impl->setAnyAttribute(cppValue);
1128 } 1099 }
1129 1100
1130 static void anyAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) 1101 static void anyAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v 8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1131 { 1102 {
1132 v8::Local<v8::Value> v8Value = info[0];
1133 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1103 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1134 TestObjectV8Internal::anyAttributeAttributeSetter(v8Value, info); 1104 TestObjectV8Internal::anyAttributeAttributeSetter(v8Value, info);
1135 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1105 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1136 } 1106 }
1137 1107
1138 static void promiseAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::V alue>& info) 1108 static void promiseAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info)
1139 { 1109 {
1140 v8::Local<v8::Object> holder = info.Holder(); 1110 v8::Local<v8::Object> holder = info.Holder();
1141 TestObject* impl = V8TestObject::toImpl(holder); 1111 TestObject* impl = V8TestObject::toImpl(holder);
1142 v8SetReturnValue(info, impl->promiseAttribute().v8Value()); 1112 v8SetReturnValue(info, impl->promiseAttribute().v8Value());
1143 } 1113 }
1144 1114
1145 static void promiseAttributeAttributeGetterCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 1115 static void promiseAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v 8::PropertyCallbackInfo<v8::Value>& info)
1146 { 1116 {
1147 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1117 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1148 TestObjectV8Internal::promiseAttributeAttributeGetter(info); 1118 TestObjectV8Internal::promiseAttributeAttributeGetter(info);
1149 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1119 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1150 } 1120 }
1151 1121
1152 static void promiseAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 1122 static void promiseAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1153 { 1123 {
1154 v8::Local<v8::Object> holder = info.Holder(); 1124 v8::Local<v8::Object> holder = info.Holder();
1155 TestObject* impl = V8TestObject::toImpl(holder); 1125 TestObject* impl = V8TestObject::toImpl(holder);
1156 ScriptPromise cppValue = ScriptPromise::cast(ScriptState::current(info.GetIs olate()), v8Value); 1126 ScriptPromise cppValue = ScriptPromise::cast(ScriptState::current(info.GetIs olate()), v8Value);
1157 impl->setPromiseAttribute(cppValue); 1127 impl->setPromiseAttribute(cppValue);
1158 } 1128 }
1159 1129
1160 static void promiseAttributeAttributeSetterCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 1130 static void promiseAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Loc al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1161 { 1131 {
1162 v8::Local<v8::Value> v8Value = info[0];
1163 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1132 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1164 TestObjectV8Internal::promiseAttributeAttributeSetter(v8Value, info); 1133 TestObjectV8Internal::promiseAttributeAttributeSetter(v8Value, info);
1165 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1134 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1166 } 1135 }
1167 1136
1168 static void windowAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Va lue>& info) 1137 static void windowAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va lue>& info)
1169 { 1138 {
1170 v8::Local<v8::Object> holder = info.Holder(); 1139 v8::Local<v8::Object> holder = info.Holder();
1171 TestObject* impl = V8TestObject::toImpl(holder); 1140 TestObject* impl = V8TestObject::toImpl(holder);
1172 v8SetReturnValueFast(info, WTF::getPtr(impl->windowAttribute()), impl); 1141 v8SetReturnValueFast(info, WTF::getPtr(impl->windowAttribute()), impl);
1173 } 1142 }
1174 1143
1175 static void windowAttributeAttributeGetterCallback(const v8::FunctionCallbackInf o<v8::Value>& info) 1144 static void windowAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8 ::PropertyCallbackInfo<v8::Value>& info)
1176 { 1145 {
1177 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1146 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1178 TestObjectV8Internal::windowAttributeAttributeGetter(info); 1147 TestObjectV8Internal::windowAttributeAttributeGetter(info);
1179 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1148 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1180 } 1149 }
1181 1150
1182 static void windowAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v 8::FunctionCallbackInfo<v8::Value>& info) 1151 static void windowAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v 8::PropertyCallbackInfo<void>& info)
1183 { 1152 {
1184 v8::Local<v8::Object> holder = info.Holder(); 1153 v8::Local<v8::Object> holder = info.Holder();
1185 TestObject* impl = V8TestObject::toImpl(holder); 1154 TestObject* impl = V8TestObject::toImpl(holder);
1186 DOMWindow* cppValue = toDOMWindow(info.GetIsolate(), v8Value); 1155 DOMWindow* cppValue = toDOMWindow(info.GetIsolate(), v8Value);
1187 impl->setWindowAttribute(WTF::getPtr(cppValue)); 1156 impl->setWindowAttribute(WTF::getPtr(cppValue));
1188 } 1157 }
1189 1158
1190 static void windowAttributeAttributeSetterCallback(const v8::FunctionCallbackInf o<v8::Value>& info) 1159 static void windowAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1191 { 1160 {
1192 v8::Local<v8::Value> v8Value = info[0];
1193 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1161 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1194 TestObjectV8Internal::windowAttributeAttributeSetter(v8Value, info); 1162 TestObjectV8Internal::windowAttributeAttributeSetter(v8Value, info);
1195 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1163 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1196 } 1164 }
1197 1165
1198 static void documentAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8:: Value>& info) 1166 static void documentAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8:: Value>& info)
1199 { 1167 {
1200 v8::Local<v8::Object> holder = info.Holder(); 1168 v8::Local<v8::Object> holder = info.Holder();
1201 TestObject* impl = V8TestObject::toImpl(holder); 1169 TestObject* impl = V8TestObject::toImpl(holder);
1202 v8SetReturnValueFast(info, WTF::getPtr(impl->documentAttribute()), impl); 1170 v8SetReturnValueFast(info, WTF::getPtr(impl->documentAttribute()), impl);
1203 } 1171 }
1204 1172
1205 static void documentAttributeAttributeGetterCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) 1173 static void documentAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
1206 { 1174 {
1207 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1175 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1208 TestObjectV8Internal::documentAttributeAttributeGetter(info); 1176 TestObjectV8Internal::documentAttributeAttributeGetter(info);
1209 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1177 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1210 } 1178 }
1211 1179
1212 static void documentAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 1180 static void documentAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1213 { 1181 {
1214 v8::Local<v8::Object> holder = info.Holder(); 1182 v8::Local<v8::Object> holder = info.Holder();
1215 TestObject* impl = V8TestObject::toImpl(holder); 1183 TestObject* impl = V8TestObject::toImpl(holder);
1216 Document* cppValue = V8Document::toImplWithTypeCheck(info.GetIsolate(), v8Va lue); 1184 Document* cppValue = V8Document::toImplWithTypeCheck(info.GetIsolate(), v8Va lue);
1217 impl->setDocumentAttribute(WTF::getPtr(cppValue)); 1185 impl->setDocumentAttribute(WTF::getPtr(cppValue));
1218 } 1186 }
1219 1187
1220 static void documentAttributeAttributeSetterCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) 1188 static void documentAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1221 { 1189 {
1222 v8::Local<v8::Value> v8Value = info[0];
1223 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1190 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1224 TestObjectV8Internal::documentAttributeAttributeSetter(v8Value, info); 1191 TestObjectV8Internal::documentAttributeAttributeSetter(v8Value, info);
1225 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1192 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1226 } 1193 }
1227 1194
1228 static void documentFragmentAttributeAttributeGetter(const v8::FunctionCallbackI nfo<v8::Value>& info) 1195 static void documentFragmentAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info)
1229 { 1196 {
1230 v8::Local<v8::Object> holder = info.Holder(); 1197 v8::Local<v8::Object> holder = info.Holder();
1231 TestObject* impl = V8TestObject::toImpl(holder); 1198 TestObject* impl = V8TestObject::toImpl(holder);
1232 v8SetReturnValueFast(info, WTF::getPtr(impl->documentFragmentAttribute()), i mpl); 1199 v8SetReturnValueFast(info, WTF::getPtr(impl->documentFragmentAttribute()), i mpl);
1233 } 1200 }
1234 1201
1235 static void documentFragmentAttributeAttributeGetterCallback(const v8::FunctionC allbackInfo<v8::Value>& info) 1202 static void documentFragmentAttributeAttributeGetterCallback(v8::Local<v8::Name> , const v8::PropertyCallbackInfo<v8::Value>& info)
1236 { 1203 {
1237 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1204 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1238 TestObjectV8Internal::documentFragmentAttributeAttributeGetter(info); 1205 TestObjectV8Internal::documentFragmentAttributeAttributeGetter(info);
1239 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1206 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1240 } 1207 }
1241 1208
1242 static void documentFragmentAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::FunctionCallbackInfo<v8::Value>& info) 1209 static void documentFragmentAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::PropertyCallbackInfo<void>& info)
1243 { 1210 {
1244 v8::Local<v8::Object> holder = info.Holder(); 1211 v8::Local<v8::Object> holder = info.Holder();
1245 TestObject* impl = V8TestObject::toImpl(holder); 1212 TestObject* impl = V8TestObject::toImpl(holder);
1246 DocumentFragment* cppValue = V8DocumentFragment::toImplWithTypeCheck(info.Ge tIsolate(), v8Value); 1213 DocumentFragment* cppValue = V8DocumentFragment::toImplWithTypeCheck(info.Ge tIsolate(), v8Value);
1247 impl->setDocumentFragmentAttribute(WTF::getPtr(cppValue)); 1214 impl->setDocumentFragmentAttribute(WTF::getPtr(cppValue));
1248 } 1215 }
1249 1216
1250 static void documentFragmentAttributeAttributeSetterCallback(const v8::FunctionC allbackInfo<v8::Value>& info) 1217 static void documentFragmentAttributeAttributeSetterCallback(v8::Local<v8::Name> , v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1251 { 1218 {
1252 v8::Local<v8::Value> v8Value = info[0];
1253 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1219 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1254 TestObjectV8Internal::documentFragmentAttributeAttributeSetter(v8Value, info ); 1220 TestObjectV8Internal::documentFragmentAttributeAttributeSetter(v8Value, info );
1255 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1221 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1256 } 1222 }
1257 1223
1258 static void documentTypeAttributeAttributeGetter(const v8::FunctionCallbackInfo< v8::Value>& info) 1224 static void documentTypeAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info)
1259 { 1225 {
1260 v8::Local<v8::Object> holder = info.Holder(); 1226 v8::Local<v8::Object> holder = info.Holder();
1261 TestObject* impl = V8TestObject::toImpl(holder); 1227 TestObject* impl = V8TestObject::toImpl(holder);
1262 v8SetReturnValueFast(info, WTF::getPtr(impl->documentTypeAttribute()), impl) ; 1228 v8SetReturnValueFast(info, WTF::getPtr(impl->documentTypeAttribute()), impl) ;
1263 } 1229 }
1264 1230
1265 static void documentTypeAttributeAttributeGetterCallback(const v8::FunctionCallb ackInfo<v8::Value>& info) 1231 static void documentTypeAttributeAttributeGetterCallback(v8::Local<v8::Name>, co nst v8::PropertyCallbackInfo<v8::Value>& info)
1266 { 1232 {
1267 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1233 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1268 TestObjectV8Internal::documentTypeAttributeAttributeGetter(info); 1234 TestObjectV8Internal::documentTypeAttributeAttributeGetter(info);
1269 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1235 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1270 } 1236 }
1271 1237
1272 static void documentTypeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::FunctionCallbackInfo<v8::Value>& info) 1238 static void documentTypeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info)
1273 { 1239 {
1274 v8::Local<v8::Object> holder = info.Holder(); 1240 v8::Local<v8::Object> holder = info.Holder();
1275 TestObject* impl = V8TestObject::toImpl(holder); 1241 TestObject* impl = V8TestObject::toImpl(holder);
1276 DocumentType* cppValue = V8DocumentType::toImplWithTypeCheck(info.GetIsolate (), v8Value); 1242 DocumentType* cppValue = V8DocumentType::toImplWithTypeCheck(info.GetIsolate (), v8Value);
1277 impl->setDocumentTypeAttribute(WTF::getPtr(cppValue)); 1243 impl->setDocumentTypeAttribute(WTF::getPtr(cppValue));
1278 } 1244 }
1279 1245
1280 static void documentTypeAttributeAttributeSetterCallback(const v8::FunctionCallb ackInfo<v8::Value>& info) 1246 static void documentTypeAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1281 { 1247 {
1282 v8::Local<v8::Value> v8Value = info[0];
1283 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1248 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1284 TestObjectV8Internal::documentTypeAttributeAttributeSetter(v8Value, info); 1249 TestObjectV8Internal::documentTypeAttributeAttributeSetter(v8Value, info);
1285 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1250 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1286 } 1251 }
1287 1252
1288 static void elementAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::V alue>& info) 1253 static void elementAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info)
1289 { 1254 {
1290 v8::Local<v8::Object> holder = info.Holder(); 1255 v8::Local<v8::Object> holder = info.Holder();
1291 TestObject* impl = V8TestObject::toImpl(holder); 1256 TestObject* impl = V8TestObject::toImpl(holder);
1292 v8SetReturnValueFast(info, WTF::getPtr(impl->elementAttribute()), impl); 1257 v8SetReturnValueFast(info, WTF::getPtr(impl->elementAttribute()), impl);
1293 } 1258 }
1294 1259
1295 static void elementAttributeAttributeGetterCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 1260 static void elementAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v 8::PropertyCallbackInfo<v8::Value>& info)
1296 { 1261 {
1297 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1262 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1298 TestObjectV8Internal::elementAttributeAttributeGetter(info); 1263 TestObjectV8Internal::elementAttributeAttributeGetter(info);
1299 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1264 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1300 } 1265 }
1301 1266
1302 static void elementAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 1267 static void elementAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1303 { 1268 {
1304 v8::Local<v8::Object> holder = info.Holder(); 1269 v8::Local<v8::Object> holder = info.Holder();
1305 TestObject* impl = V8TestObject::toImpl(holder); 1270 TestObject* impl = V8TestObject::toImpl(holder);
1306 Element* cppValue = V8Element::toImplWithTypeCheck(info.GetIsolate(), v8Valu e); 1271 Element* cppValue = V8Element::toImplWithTypeCheck(info.GetIsolate(), v8Valu e);
1307 impl->setElementAttribute(WTF::getPtr(cppValue)); 1272 impl->setElementAttribute(WTF::getPtr(cppValue));
1308 } 1273 }
1309 1274
1310 static void elementAttributeAttributeSetterCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 1275 static void elementAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Loc al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1311 { 1276 {
1312 v8::Local<v8::Value> v8Value = info[0];
1313 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1277 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1314 TestObjectV8Internal::elementAttributeAttributeSetter(v8Value, info); 1278 TestObjectV8Internal::elementAttributeAttributeSetter(v8Value, info);
1315 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1279 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1316 } 1280 }
1317 1281
1318 static void nodeAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Valu e>& info) 1282 static void nodeAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu e>& info)
1319 { 1283 {
1320 v8::Local<v8::Object> holder = info.Holder(); 1284 v8::Local<v8::Object> holder = info.Holder();
1321 TestObject* impl = V8TestObject::toImpl(holder); 1285 TestObject* impl = V8TestObject::toImpl(holder);
1322 v8SetReturnValueFast(info, WTF::getPtr(impl->nodeAttribute()), impl); 1286 v8SetReturnValueFast(info, WTF::getPtr(impl->nodeAttribute()), impl);
1323 } 1287 }
1324 1288
1325 static void nodeAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo< v8::Value>& info) 1289 static void nodeAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8:: PropertyCallbackInfo<v8::Value>& info)
1326 { 1290 {
1327 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1291 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1328 TestObjectV8Internal::nodeAttributeAttributeGetter(info); 1292 TestObjectV8Internal::nodeAttributeAttributeGetter(info);
1329 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1293 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1330 } 1294 }
1331 1295
1332 static void nodeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :FunctionCallbackInfo<v8::Value>& info) 1296 static void nodeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info)
1333 { 1297 {
1334 v8::Local<v8::Object> holder = info.Holder(); 1298 v8::Local<v8::Object> holder = info.Holder();
1335 TestObject* impl = V8TestObject::toImpl(holder); 1299 TestObject* impl = V8TestObject::toImpl(holder);
1336 Node* cppValue = V8Node::toImplWithTypeCheck(info.GetIsolate(), v8Value); 1300 Node* cppValue = V8Node::toImplWithTypeCheck(info.GetIsolate(), v8Value);
1337 impl->setNodeAttribute(WTF::getPtr(cppValue)); 1301 impl->setNodeAttribute(WTF::getPtr(cppValue));
1338 } 1302 }
1339 1303
1340 static void nodeAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo< v8::Value>& info) 1304 static void nodeAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local< v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1341 { 1305 {
1342 v8::Local<v8::Value> v8Value = info[0];
1343 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1306 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1344 TestObjectV8Internal::nodeAttributeAttributeSetter(v8Value, info); 1307 TestObjectV8Internal::nodeAttributeAttributeSetter(v8Value, info);
1345 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1308 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1346 } 1309 }
1347 1310
1348 static void shadowRootAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8 ::Value>& info) 1311 static void shadowRootAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info)
1349 { 1312 {
1350 v8::Local<v8::Object> holder = info.Holder(); 1313 v8::Local<v8::Object> holder = info.Holder();
1351 TestObject* impl = V8TestObject::toImpl(holder); 1314 TestObject* impl = V8TestObject::toImpl(holder);
1352 v8SetReturnValueFast(info, WTF::getPtr(impl->shadowRootAttribute()), impl); 1315 v8SetReturnValueFast(info, WTF::getPtr(impl->shadowRootAttribute()), impl);
1353 } 1316 }
1354 1317
1355 static void shadowRootAttributeAttributeGetterCallback(const v8::FunctionCallbac kInfo<v8::Value>& info) 1318 static void shadowRootAttributeAttributeGetterCallback(v8::Local<v8::Name>, cons t v8::PropertyCallbackInfo<v8::Value>& info)
1356 { 1319 {
1357 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1320 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1358 TestObjectV8Internal::shadowRootAttributeAttributeGetter(info); 1321 TestObjectV8Internal::shadowRootAttributeAttributeGetter(info);
1359 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1322 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1360 } 1323 }
1361 1324
1362 static void shadowRootAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::FunctionCallbackInfo<v8::Value>& info) 1325 static void shadowRootAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info)
1363 { 1326 {
1364 v8::Local<v8::Object> holder = info.Holder(); 1327 v8::Local<v8::Object> holder = info.Holder();
1365 TestObject* impl = V8TestObject::toImpl(holder); 1328 TestObject* impl = V8TestObject::toImpl(holder);
1366 ShadowRoot* cppValue = V8ShadowRoot::toImplWithTypeCheck(info.GetIsolate(), v8Value); 1329 ShadowRoot* cppValue = V8ShadowRoot::toImplWithTypeCheck(info.GetIsolate(), v8Value);
1367 impl->setShadowRootAttribute(WTF::getPtr(cppValue)); 1330 impl->setShadowRootAttribute(WTF::getPtr(cppValue));
1368 } 1331 }
1369 1332
1370 static void shadowRootAttributeAttributeSetterCallback(const v8::FunctionCallbac kInfo<v8::Value>& info) 1333 static void shadowRootAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1371 { 1334 {
1372 v8::Local<v8::Value> v8Value = info[0];
1373 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1335 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1374 TestObjectV8Internal::shadowRootAttributeAttributeSetter(v8Value, info); 1336 TestObjectV8Internal::shadowRootAttributeAttributeSetter(v8Value, info);
1375 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1337 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1376 } 1338 }
1377 1339
1378 static void arrayBufferAttributeAttributeGetter(const v8::FunctionCallbackInfo<v 8::Value>& info) 1340 static void arrayBufferAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info)
1379 { 1341 {
1380 v8::Local<v8::Object> holder = info.Holder(); 1342 v8::Local<v8::Object> holder = info.Holder();
1381 TestObject* impl = V8TestObject::toImpl(holder); 1343 TestObject* impl = V8TestObject::toImpl(holder);
1382 v8SetReturnValueFast(info, WTF::getPtr(impl->arrayBufferAttribute()), impl); 1344 v8SetReturnValueFast(info, WTF::getPtr(impl->arrayBufferAttribute()), impl);
1383 } 1345 }
1384 1346
1385 static void arrayBufferAttributeAttributeGetterCallback(const v8::FunctionCallba ckInfo<v8::Value>& info) 1347 static void arrayBufferAttributeAttributeGetterCallback(v8::Local<v8::Name>, con st v8::PropertyCallbackInfo<v8::Value>& info)
1386 { 1348 {
1387 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1349 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1388 TestObjectV8Internal::arrayBufferAttributeAttributeGetter(info); 1350 TestObjectV8Internal::arrayBufferAttributeAttributeGetter(info);
1389 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1351 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1390 } 1352 }
1391 1353
1392 static void arrayBufferAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::FunctionCallbackInfo<v8::Value>& info) 1354 static void arrayBufferAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& info)
1393 { 1355 {
1394 v8::Local<v8::Object> holder = info.Holder(); 1356 v8::Local<v8::Object> holder = info.Holder();
1395 TestObject* impl = V8TestObject::toImpl(holder); 1357 TestObject* impl = V8TestObject::toImpl(holder);
1396 TestArrayBuffer* cppValue = v8Value->IsArrayBuffer() ? V8ArrayBuffer::toImpl (v8::Local<v8::ArrayBuffer>::Cast(v8Value)) : 0; 1358 TestArrayBuffer* cppValue = v8Value->IsArrayBuffer() ? V8ArrayBuffer::toImpl (v8::Local<v8::ArrayBuffer>::Cast(v8Value)) : 0;
1397 impl->setArrayBufferAttribute(WTF::getPtr(cppValue)); 1359 impl->setArrayBufferAttribute(WTF::getPtr(cppValue));
1398 } 1360 }
1399 1361
1400 static void arrayBufferAttributeAttributeSetterCallback(const v8::FunctionCallba ckInfo<v8::Value>& info) 1362 static void arrayBufferAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8: :Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1401 { 1363 {
1402 v8::Local<v8::Value> v8Value = info[0];
1403 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1364 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1404 TestObjectV8Internal::arrayBufferAttributeAttributeSetter(v8Value, info); 1365 TestObjectV8Internal::arrayBufferAttributeAttributeSetter(v8Value, info);
1405 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1366 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1406 } 1367 }
1407 1368
1408 static void float32ArrayAttributeAttributeGetter(const v8::FunctionCallbackInfo< v8::Value>& info) 1369 static void float32ArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info)
1409 { 1370 {
1410 v8::Local<v8::Object> holder = info.Holder(); 1371 v8::Local<v8::Object> holder = info.Holder();
1411 TestObject* impl = V8TestObject::toImpl(holder); 1372 TestObject* impl = V8TestObject::toImpl(holder);
1412 v8SetReturnValueFast(info, WTF::getPtr(impl->float32ArrayAttribute()), impl) ; 1373 v8SetReturnValueFast(info, WTF::getPtr(impl->float32ArrayAttribute()), impl) ;
1413 } 1374 }
1414 1375
1415 static void float32ArrayAttributeAttributeGetterCallback(const v8::FunctionCallb ackInfo<v8::Value>& info) 1376 static void float32ArrayAttributeAttributeGetterCallback(v8::Local<v8::Name>, co nst v8::PropertyCallbackInfo<v8::Value>& info)
1416 { 1377 {
1417 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1378 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1418 TestObjectV8Internal::float32ArrayAttributeAttributeGetter(info); 1379 TestObjectV8Internal::float32ArrayAttributeAttributeGetter(info);
1419 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1380 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1420 } 1381 }
1421 1382
1422 static void float32ArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::FunctionCallbackInfo<v8::Value>& info) 1383 static void float32ArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info)
1423 { 1384 {
1424 v8::Local<v8::Object> holder = info.Holder(); 1385 v8::Local<v8::Object> holder = info.Holder();
1425 TestObject* impl = V8TestObject::toImpl(holder); 1386 TestObject* impl = V8TestObject::toImpl(holder);
1426 DOMFloat32Array* cppValue = v8Value->IsFloat32Array() ? V8Float32Array::toIm pl(v8::Local<v8::Float32Array>::Cast(v8Value)) : 0; 1387 DOMFloat32Array* cppValue = v8Value->IsFloat32Array() ? V8Float32Array::toIm pl(v8::Local<v8::Float32Array>::Cast(v8Value)) : 0;
1427 impl->setFloat32ArrayAttribute(WTF::getPtr(cppValue)); 1388 impl->setFloat32ArrayAttribute(WTF::getPtr(cppValue));
1428 } 1389 }
1429 1390
1430 static void float32ArrayAttributeAttributeSetterCallback(const v8::FunctionCallb ackInfo<v8::Value>& info) 1391 static void float32ArrayAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1431 { 1392 {
1432 v8::Local<v8::Value> v8Value = info[0];
1433 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1393 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1434 TestObjectV8Internal::float32ArrayAttributeAttributeSetter(v8Value, info); 1394 TestObjectV8Internal::float32ArrayAttributeAttributeSetter(v8Value, info);
1435 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1395 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1436 } 1396 }
1437 1397
1438 static void uint8ArrayAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8 ::Value>& info) 1398 static void uint8ArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info)
1439 { 1399 {
1440 v8::Local<v8::Object> holder = info.Holder(); 1400 v8::Local<v8::Object> holder = info.Holder();
1441 TestObject* impl = V8TestObject::toImpl(holder); 1401 TestObject* impl = V8TestObject::toImpl(holder);
1442 v8SetReturnValueFast(info, WTF::getPtr(impl->uint8ArrayAttribute()), impl); 1402 v8SetReturnValueFast(info, WTF::getPtr(impl->uint8ArrayAttribute()), impl);
1443 } 1403 }
1444 1404
1445 static void uint8ArrayAttributeAttributeGetterCallback(const v8::FunctionCallbac kInfo<v8::Value>& info) 1405 static void uint8ArrayAttributeAttributeGetterCallback(v8::Local<v8::Name>, cons t v8::PropertyCallbackInfo<v8::Value>& info)
1446 { 1406 {
1447 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1407 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1448 TestObjectV8Internal::uint8ArrayAttributeAttributeGetter(info); 1408 TestObjectV8Internal::uint8ArrayAttributeAttributeGetter(info);
1449 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1409 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1450 } 1410 }
1451 1411
1452 static void uint8ArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::FunctionCallbackInfo<v8::Value>& info) 1412 static void uint8ArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info)
1453 { 1413 {
1454 v8::Local<v8::Object> holder = info.Holder(); 1414 v8::Local<v8::Object> holder = info.Holder();
1455 TestObject* impl = V8TestObject::toImpl(holder); 1415 TestObject* impl = V8TestObject::toImpl(holder);
1456 DOMUint8Array* cppValue = v8Value->IsUint8Array() ? V8Uint8Array::toImpl(v8: :Local<v8::Uint8Array>::Cast(v8Value)) : 0; 1416 DOMUint8Array* cppValue = v8Value->IsUint8Array() ? V8Uint8Array::toImpl(v8: :Local<v8::Uint8Array>::Cast(v8Value)) : 0;
1457 impl->setUint8ArrayAttribute(WTF::getPtr(cppValue)); 1417 impl->setUint8ArrayAttribute(WTF::getPtr(cppValue));
1458 } 1418 }
1459 1419
1460 static void uint8ArrayAttributeAttributeSetterCallback(const v8::FunctionCallbac kInfo<v8::Value>& info) 1420 static void uint8ArrayAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1461 { 1421 {
1462 v8::Local<v8::Value> v8Value = info[0];
1463 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1422 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1464 TestObjectV8Internal::uint8ArrayAttributeAttributeSetter(v8Value, info); 1423 TestObjectV8Internal::uint8ArrayAttributeAttributeSetter(v8Value, info);
1465 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1424 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1466 } 1425 }
1467 1426
1468 static void selfAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) 1427 static void selfAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
1469 { 1428 {
1470 v8::Local<v8::Object> holder = info.Holder(); 1429 v8::Local<v8::Object> holder = info.Holder();
1471 TestObject* impl = V8TestObject::toImpl(holder); 1430 TestObject* impl = V8TestObject::toImpl(holder);
1472 v8SetReturnValueFast(info, WTF::getPtr(impl->self()), impl); 1431 v8SetReturnValueFast(info, WTF::getPtr(impl->self()), impl);
1473 } 1432 }
1474 1433
1475 static void selfAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value >& info) 1434 static void selfAttributeGetterCallback(v8::Local<v8::Name>, const v8::PropertyC allbackInfo<v8::Value>& info)
1476 { 1435 {
1477 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1436 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1478 TestObjectV8Internal::selfAttributeGetter(info); 1437 TestObjectV8Internal::selfAttributeGetter(info);
1479 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1438 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1480 } 1439 }
1481 1440
1482 static void readonlyEventTargetAttributeAttributeGetter(const v8::FunctionCallba ckInfo<v8::Value>& info) 1441 static void readonlyEventTargetAttributeAttributeGetter(const v8::PropertyCallba ckInfo<v8::Value>& info)
1483 { 1442 {
1484 v8::Local<v8::Object> holder = info.Holder(); 1443 v8::Local<v8::Object> holder = info.Holder();
1485 TestObject* impl = V8TestObject::toImpl(holder); 1444 TestObject* impl = V8TestObject::toImpl(holder);
1486 v8SetReturnValueFast(info, WTF::getPtr(impl->readonlyEventTargetAttribute()) , impl); 1445 v8SetReturnValueFast(info, WTF::getPtr(impl->readonlyEventTargetAttribute()) , impl);
1487 } 1446 }
1488 1447
1489 static void readonlyEventTargetAttributeAttributeGetterCallback(const v8::Functi onCallbackInfo<v8::Value>& info) 1448 static void readonlyEventTargetAttributeAttributeGetterCallback(v8::Local<v8::Na me>, const v8::PropertyCallbackInfo<v8::Value>& info)
1490 { 1449 {
1491 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1450 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1492 TestObjectV8Internal::readonlyEventTargetAttributeAttributeGetter(info); 1451 TestObjectV8Internal::readonlyEventTargetAttributeAttributeGetter(info);
1493 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1452 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1494 } 1453 }
1495 1454
1496 static void readonlyEventTargetOrNullAttributeAttributeGetter(const v8::Function CallbackInfo<v8::Value>& info) 1455 static void readonlyEventTargetOrNullAttributeAttributeGetter(const v8::Property CallbackInfo<v8::Value>& info)
1497 { 1456 {
1498 v8::Local<v8::Object> holder = info.Holder(); 1457 v8::Local<v8::Object> holder = info.Holder();
1499 TestObject* impl = V8TestObject::toImpl(holder); 1458 TestObject* impl = V8TestObject::toImpl(holder);
1500 v8SetReturnValueFast(info, WTF::getPtr(impl->readonlyEventTargetOrNullAttrib ute()), impl); 1459 v8SetReturnValueFast(info, WTF::getPtr(impl->readonlyEventTargetOrNullAttrib ute()), impl);
1501 } 1460 }
1502 1461
1503 static void readonlyEventTargetOrNullAttributeAttributeGetterCallback(const v8:: FunctionCallbackInfo<v8::Value>& info) 1462 static void readonlyEventTargetOrNullAttributeAttributeGetterCallback(v8::Local< v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
1504 { 1463 {
1505 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1464 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1506 TestObjectV8Internal::readonlyEventTargetOrNullAttributeAttributeGetter(info ); 1465 TestObjectV8Internal::readonlyEventTargetOrNullAttributeAttributeGetter(info );
1507 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1466 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1508 } 1467 }
1509 1468
1510 static void readonlyWindowAttributeAttributeGetter(const v8::FunctionCallbackInf o<v8::Value>& info) 1469 static void readonlyWindowAttributeAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info)
1511 { 1470 {
1512 v8::Local<v8::Object> holder = info.Holder(); 1471 v8::Local<v8::Object> holder = info.Holder();
1513 TestObject* impl = V8TestObject::toImpl(holder); 1472 TestObject* impl = V8TestObject::toImpl(holder);
1514 v8SetReturnValueFast(info, WTF::getPtr(impl->readonlyWindowAttribute()), imp l); 1473 v8SetReturnValueFast(info, WTF::getPtr(impl->readonlyWindowAttribute()), imp l);
1515 } 1474 }
1516 1475
1517 static void readonlyWindowAttributeAttributeGetterCallback(const v8::FunctionCal lbackInfo<v8::Value>& info) 1476 static void readonlyWindowAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
1518 { 1477 {
1519 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1478 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1520 TestObjectV8Internal::readonlyWindowAttributeAttributeGetter(info); 1479 TestObjectV8Internal::readonlyWindowAttributeAttributeGetter(info);
1521 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1480 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1522 } 1481 }
1523 1482
1524 static void htmlCollectionAttributeAttributeGetter(const v8::FunctionCallbackInf o<v8::Value>& info) 1483 static void htmlCollectionAttributeAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info)
1525 { 1484 {
1526 v8::Local<v8::Object> holder = info.Holder(); 1485 v8::Local<v8::Object> holder = info.Holder();
1527 TestObject* impl = V8TestObject::toImpl(holder); 1486 TestObject* impl = V8TestObject::toImpl(holder);
1528 v8SetReturnValueFast(info, WTF::getPtr(impl->htmlCollectionAttribute()), imp l); 1487 v8SetReturnValueFast(info, WTF::getPtr(impl->htmlCollectionAttribute()), imp l);
1529 } 1488 }
1530 1489
1531 static void htmlCollectionAttributeAttributeGetterCallback(const v8::FunctionCal lbackInfo<v8::Value>& info) 1490 static void htmlCollectionAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
1532 { 1491 {
1533 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1492 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1534 TestObjectV8Internal::htmlCollectionAttributeAttributeGetter(info); 1493 TestObjectV8Internal::htmlCollectionAttributeAttributeGetter(info);
1535 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1494 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1536 } 1495 }
1537 1496
1538 static void htmlElementAttributeAttributeGetter(const v8::FunctionCallbackInfo<v 8::Value>& info) 1497 static void htmlElementAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info)
1539 { 1498 {
1540 v8::Local<v8::Object> holder = info.Holder(); 1499 v8::Local<v8::Object> holder = info.Holder();
1541 TestObject* impl = V8TestObject::toImpl(holder); 1500 TestObject* impl = V8TestObject::toImpl(holder);
1542 v8SetReturnValueFast(info, WTF::getPtr(impl->htmlElementAttribute()), impl); 1501 v8SetReturnValueFast(info, WTF::getPtr(impl->htmlElementAttribute()), impl);
1543 } 1502 }
1544 1503
1545 static void htmlElementAttributeAttributeGetterCallback(const v8::FunctionCallba ckInfo<v8::Value>& info) 1504 static void htmlElementAttributeAttributeGetterCallback(v8::Local<v8::Name>, con st v8::PropertyCallbackInfo<v8::Value>& info)
1546 { 1505 {
1547 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1506 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1548 TestObjectV8Internal::htmlElementAttributeAttributeGetter(info); 1507 TestObjectV8Internal::htmlElementAttributeAttributeGetter(info);
1549 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1508 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1550 } 1509 }
1551 1510
1552 static void stringArrayAttributeAttributeGetter(const v8::FunctionCallbackInfo<v 8::Value>& info) 1511 static void stringArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info)
1553 { 1512 {
1554 v8::Local<v8::Object> holder = info.Holder(); 1513 v8::Local<v8::Object> holder = info.Holder();
1555 TestObject* impl = V8TestObject::toImpl(holder); 1514 TestObject* impl = V8TestObject::toImpl(holder);
1556 v8SetReturnValue(info, toV8(impl->stringArrayAttribute(), info.Holder(), inf o.GetIsolate())); 1515 v8SetReturnValue(info, toV8(impl->stringArrayAttribute(), info.Holder(), inf o.GetIsolate()));
1557 } 1516 }
1558 1517
1559 static void stringArrayAttributeAttributeGetterCallback(const v8::FunctionCallba ckInfo<v8::Value>& info) 1518 static void stringArrayAttributeAttributeGetterCallback(v8::Local<v8::Name>, con st v8::PropertyCallbackInfo<v8::Value>& info)
1560 { 1519 {
1561 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1520 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1562 TestObjectV8Internal::stringArrayAttributeAttributeGetter(info); 1521 TestObjectV8Internal::stringArrayAttributeAttributeGetter(info);
1563 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1522 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1564 } 1523 }
1565 1524
1566 static void stringArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::FunctionCallbackInfo<v8::Value>& info) 1525 static void stringArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& info)
1567 { 1526 {
1568 v8::Local<v8::Object> holder = info.Holder(); 1527 v8::Local<v8::Object> holder = info.Holder();
1569 ExceptionState exceptionState(ExceptionState::SetterContext, "stringArrayAtt ribute", "TestObject", holder, info.GetIsolate()); 1528 ExceptionState exceptionState(ExceptionState::SetterContext, "stringArrayAtt ribute", "TestObject", holder, info.GetIsolate());
1570 TestObject* impl = V8TestObject::toImpl(holder); 1529 TestObject* impl = V8TestObject::toImpl(holder);
1571 Vector<String> cppValue = toImplArray<String>(v8Value, 0, info.GetIsolate(), exceptionState); 1530 Vector<String> cppValue = toImplArray<String>(v8Value, 0, info.GetIsolate(), exceptionState);
1572 if (exceptionState.throwIfNeeded()) 1531 if (exceptionState.throwIfNeeded())
1573 return; 1532 return;
1574 impl->setStringArrayAttribute(cppValue); 1533 impl->setStringArrayAttribute(cppValue);
1575 } 1534 }
1576 1535
1577 static void stringArrayAttributeAttributeSetterCallback(const v8::FunctionCallba ckInfo<v8::Value>& info) 1536 static void stringArrayAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8: :Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1578 { 1537 {
1579 v8::Local<v8::Value> v8Value = info[0];
1580 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1538 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1581 TestObjectV8Internal::stringArrayAttributeAttributeSetter(v8Value, info); 1539 TestObjectV8Internal::stringArrayAttributeAttributeSetter(v8Value, info);
1582 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1540 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1583 } 1541 }
1584 1542
1585 static void testInterfaceEmptyArrayAttributeAttributeGetter(const v8::FunctionCa llbackInfo<v8::Value>& info) 1543 static void testInterfaceEmptyArrayAttributeAttributeGetter(const v8::PropertyCa llbackInfo<v8::Value>& info)
1586 { 1544 {
1587 v8::Local<v8::Object> holder = info.Holder(); 1545 v8::Local<v8::Object> holder = info.Holder();
1588 TestObject* impl = V8TestObject::toImpl(holder); 1546 TestObject* impl = V8TestObject::toImpl(holder);
1589 v8SetReturnValue(info, toV8(impl->testInterfaceEmptyArrayAttribute(), info.H older(), info.GetIsolate())); 1547 v8SetReturnValue(info, toV8(impl->testInterfaceEmptyArrayAttribute(), info.H older(), info.GetIsolate()));
1590 } 1548 }
1591 1549
1592 static void testInterfaceEmptyArrayAttributeAttributeGetterCallback(const v8::Fu nctionCallbackInfo<v8::Value>& info) 1550 static void testInterfaceEmptyArrayAttributeAttributeGetterCallback(v8::Local<v8 ::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
1593 { 1551 {
1594 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1552 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1595 TestObjectV8Internal::testInterfaceEmptyArrayAttributeAttributeGetter(info); 1553 TestObjectV8Internal::testInterfaceEmptyArrayAttributeAttributeGetter(info);
1596 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1554 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1597 } 1555 }
1598 1556
1599 static void testInterfaceEmptyArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 1557 static void testInterfaceEmptyArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1600 { 1558 {
1601 v8::Local<v8::Object> holder = info.Holder(); 1559 v8::Local<v8::Object> holder = info.Holder();
1602 ExceptionState exceptionState(ExceptionState::SetterContext, "testInterfaceE mptyArrayAttribute", "TestObject", holder, info.GetIsolate()); 1560 ExceptionState exceptionState(ExceptionState::SetterContext, "testInterfaceE mptyArrayAttribute", "TestObject", holder, info.GetIsolate());
1603 TestObject* impl = V8TestObject::toImpl(holder); 1561 TestObject* impl = V8TestObject::toImpl(holder);
1604 Vector<RefPtr<TestInterfaceEmpty>> cppValue = (toRefPtrNativeArray<TestInter faceEmpty, V8TestInterfaceEmpty>(v8Value, 0, info.GetIsolate(), exceptionState)) ; 1562 Vector<RefPtr<TestInterfaceEmpty>> cppValue = (toRefPtrNativeArray<TestInter faceEmpty, V8TestInterfaceEmpty>(v8Value, 0, info.GetIsolate(), exceptionState)) ;
1605 if (exceptionState.throwIfNeeded()) 1563 if (exceptionState.throwIfNeeded())
1606 return; 1564 return;
1607 impl->setTestInterfaceEmptyArrayAttribute(cppValue); 1565 impl->setTestInterfaceEmptyArrayAttribute(cppValue);
1608 } 1566 }
1609 1567
1610 static void testInterfaceEmptyArrayAttributeAttributeSetterCallback(const v8::Fu nctionCallbackInfo<v8::Value>& info) 1568 static void testInterfaceEmptyArrayAttributeAttributeSetterCallback(v8::Local<v8 ::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& inf o)
1611 { 1569 {
1612 v8::Local<v8::Value> v8Value = info[0];
1613 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1570 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1614 TestObjectV8Internal::testInterfaceEmptyArrayAttributeAttributeSetter(v8Valu e, info); 1571 TestObjectV8Internal::testInterfaceEmptyArrayAttributeAttributeSetter(v8Valu e, info);
1615 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1572 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1616 } 1573 }
1617 1574
1618 static void floatArrayAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8 ::Value>& info) 1575 static void floatArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info)
1619 { 1576 {
1620 v8::Local<v8::Object> holder = info.Holder(); 1577 v8::Local<v8::Object> holder = info.Holder();
1621 TestObject* impl = V8TestObject::toImpl(holder); 1578 TestObject* impl = V8TestObject::toImpl(holder);
1622 v8SetReturnValue(info, toV8(impl->floatArrayAttribute(), info.Holder(), info .GetIsolate())); 1579 v8SetReturnValue(info, toV8(impl->floatArrayAttribute(), info.Holder(), info .GetIsolate()));
1623 } 1580 }
1624 1581
1625 static void floatArrayAttributeAttributeGetterCallback(const v8::FunctionCallbac kInfo<v8::Value>& info) 1582 static void floatArrayAttributeAttributeGetterCallback(v8::Local<v8::Name>, cons t v8::PropertyCallbackInfo<v8::Value>& info)
1626 { 1583 {
1627 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1584 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1628 TestObjectV8Internal::floatArrayAttributeAttributeGetter(info); 1585 TestObjectV8Internal::floatArrayAttributeAttributeGetter(info);
1629 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1586 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1630 } 1587 }
1631 1588
1632 static void floatArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::FunctionCallbackInfo<v8::Value>& info) 1589 static void floatArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info)
1633 { 1590 {
1634 v8::Local<v8::Object> holder = info.Holder(); 1591 v8::Local<v8::Object> holder = info.Holder();
1635 ExceptionState exceptionState(ExceptionState::SetterContext, "floatArrayAttr ibute", "TestObject", holder, info.GetIsolate()); 1592 ExceptionState exceptionState(ExceptionState::SetterContext, "floatArrayAttr ibute", "TestObject", holder, info.GetIsolate());
1636 TestObject* impl = V8TestObject::toImpl(holder); 1593 TestObject* impl = V8TestObject::toImpl(holder);
1637 Vector<float> cppValue = toImplArray<float>(v8Value, 0, info.GetIsolate(), e xceptionState); 1594 Vector<float> cppValue = toImplArray<float>(v8Value, 0, info.GetIsolate(), e xceptionState);
1638 if (exceptionState.throwIfNeeded()) 1595 if (exceptionState.throwIfNeeded())
1639 return; 1596 return;
1640 impl->setFloatArrayAttribute(cppValue); 1597 impl->setFloatArrayAttribute(cppValue);
1641 } 1598 }
1642 1599
1643 static void floatArrayAttributeAttributeSetterCallback(const v8::FunctionCallbac kInfo<v8::Value>& info) 1600 static void floatArrayAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1644 { 1601 {
1645 v8::Local<v8::Value> v8Value = info[0];
1646 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1602 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1647 TestObjectV8Internal::floatArrayAttributeAttributeSetter(v8Value, info); 1603 TestObjectV8Internal::floatArrayAttributeAttributeSetter(v8Value, info);
1648 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1604 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1649 } 1605 }
1650 1606
1651 static void stringOrNullAttributeAttributeGetter(const v8::FunctionCallbackInfo< v8::Value>& info) 1607 static void stringOrNullAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info)
1652 { 1608 {
1653 v8::Local<v8::Object> holder = info.Holder(); 1609 v8::Local<v8::Object> holder = info.Holder();
1654 TestObject* impl = V8TestObject::toImpl(holder); 1610 TestObject* impl = V8TestObject::toImpl(holder);
1655 v8SetReturnValueStringOrNull(info, impl->stringOrNullAttribute(), info.GetIs olate()); 1611 v8SetReturnValueStringOrNull(info, impl->stringOrNullAttribute(), info.GetIs olate());
1656 } 1612 }
1657 1613
1658 static void stringOrNullAttributeAttributeGetterCallback(const v8::FunctionCallb ackInfo<v8::Value>& info) 1614 static void stringOrNullAttributeAttributeGetterCallback(v8::Local<v8::Name>, co nst v8::PropertyCallbackInfo<v8::Value>& info)
1659 { 1615 {
1660 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1616 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1661 TestObjectV8Internal::stringOrNullAttributeAttributeGetter(info); 1617 TestObjectV8Internal::stringOrNullAttributeAttributeGetter(info);
1662 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1618 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1663 } 1619 }
1664 1620
1665 static void stringOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::FunctionCallbackInfo<v8::Value>& info) 1621 static void stringOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info)
1666 { 1622 {
1667 v8::Local<v8::Object> holder = info.Holder(); 1623 v8::Local<v8::Object> holder = info.Holder();
1668 TestObject* impl = V8TestObject::toImpl(holder); 1624 TestObject* impl = V8TestObject::toImpl(holder);
1669 V8StringResource<TreatNullAsNullString> cppValue = v8Value; 1625 V8StringResource<TreatNullAsNullString> cppValue = v8Value;
1670 if (!cppValue.prepare()) 1626 if (!cppValue.prepare())
1671 return; 1627 return;
1672 impl->setStringOrNullAttribute(cppValue); 1628 impl->setStringOrNullAttribute(cppValue);
1673 } 1629 }
1674 1630
1675 static void stringOrNullAttributeAttributeSetterCallback(const v8::FunctionCallb ackInfo<v8::Value>& info) 1631 static void stringOrNullAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1676 { 1632 {
1677 v8::Local<v8::Value> v8Value = info[0];
1678 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1633 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1679 TestObjectV8Internal::stringOrNullAttributeAttributeSetter(v8Value, info); 1634 TestObjectV8Internal::stringOrNullAttributeAttributeSetter(v8Value, info);
1680 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1635 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1681 } 1636 }
1682 1637
1683 static void longOrNullAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8 ::Value>& info) 1638 static void longOrNullAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info)
1684 { 1639 {
1685 v8::Local<v8::Object> holder = info.Holder(); 1640 v8::Local<v8::Object> holder = info.Holder();
1686 TestObject* impl = V8TestObject::toImpl(holder); 1641 TestObject* impl = V8TestObject::toImpl(holder);
1687 bool isNull = false; 1642 bool isNull = false;
1688 int cppValue(impl->longOrNullAttribute(isNull)); 1643 int cppValue(impl->longOrNullAttribute(isNull));
1689 if (isNull) { 1644 if (isNull) {
1690 v8SetReturnValueNull(info); 1645 v8SetReturnValueNull(info);
1691 return; 1646 return;
1692 } 1647 }
1693 v8SetReturnValueInt(info, cppValue); 1648 v8SetReturnValueInt(info, cppValue);
1694 } 1649 }
1695 1650
1696 static void longOrNullAttributeAttributeGetterCallback(const v8::FunctionCallbac kInfo<v8::Value>& info) 1651 static void longOrNullAttributeAttributeGetterCallback(v8::Local<v8::Name>, cons t v8::PropertyCallbackInfo<v8::Value>& info)
1697 { 1652 {
1698 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1653 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1699 TestObjectV8Internal::longOrNullAttributeAttributeGetter(info); 1654 TestObjectV8Internal::longOrNullAttributeAttributeGetter(info);
1700 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1655 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1701 } 1656 }
1702 1657
1703 static void longOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::FunctionCallbackInfo<v8::Value>& info) 1658 static void longOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info)
1704 { 1659 {
1705 v8::Local<v8::Object> holder = info.Holder(); 1660 v8::Local<v8::Object> holder = info.Holder();
1706 ExceptionState exceptionState(ExceptionState::SetterContext, "longOrNullAttr ibute", "TestObject", holder, info.GetIsolate()); 1661 ExceptionState exceptionState(ExceptionState::SetterContext, "longOrNullAttr ibute", "TestObject", holder, info.GetIsolate());
1707 TestObject* impl = V8TestObject::toImpl(holder); 1662 TestObject* impl = V8TestObject::toImpl(holder);
1708 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 1663 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
1709 if (exceptionState.throwIfNeeded()) 1664 if (exceptionState.throwIfNeeded())
1710 return; 1665 return;
1711 impl->setLongOrNullAttribute(cppValue); 1666 impl->setLongOrNullAttribute(cppValue);
1712 } 1667 }
1713 1668
1714 static void longOrNullAttributeAttributeSetterCallback(const v8::FunctionCallbac kInfo<v8::Value>& info) 1669 static void longOrNullAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1715 { 1670 {
1716 v8::Local<v8::Value> v8Value = info[0];
1717 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1671 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1718 TestObjectV8Internal::longOrNullAttributeAttributeSetter(v8Value, info); 1672 TestObjectV8Internal::longOrNullAttributeAttributeSetter(v8Value, info);
1719 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1673 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1720 } 1674 }
1721 1675
1722 static void testInterfaceOrNullAttributeAttributeGetter(const v8::FunctionCallba ckInfo<v8::Value>& info) 1676 static void testInterfaceOrNullAttributeAttributeGetter(const v8::PropertyCallba ckInfo<v8::Value>& info)
1723 { 1677 {
1724 v8::Local<v8::Object> holder = info.Holder(); 1678 v8::Local<v8::Object> holder = info.Holder();
1725 TestObject* impl = V8TestObject::toImpl(holder); 1679 TestObject* impl = V8TestObject::toImpl(holder);
1726 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceOrNullAttribute()) , impl); 1680 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceOrNullAttribute()) , impl);
1727 } 1681 }
1728 1682
1729 static void testInterfaceOrNullAttributeAttributeGetterCallback(const v8::Functi onCallbackInfo<v8::Value>& info) 1683 static void testInterfaceOrNullAttributeAttributeGetterCallback(v8::Local<v8::Na me>, const v8::PropertyCallbackInfo<v8::Value>& info)
1730 { 1684 {
1731 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1685 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1732 TestObjectV8Internal::testInterfaceOrNullAttributeAttributeGetter(info); 1686 TestObjectV8Internal::testInterfaceOrNullAttributeAttributeGetter(info);
1733 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1687 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1734 } 1688 }
1735 1689
1736 static void testInterfaceOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8V alue, const v8::FunctionCallbackInfo<v8::Value>& info) 1690 static void testInterfaceOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8V alue, const v8::PropertyCallbackInfo<void>& info)
1737 { 1691 {
1738 v8::Local<v8::Object> holder = info.Holder(); 1692 v8::Local<v8::Object> holder = info.Holder();
1739 TestObject* impl = V8TestObject::toImpl(holder); 1693 TestObject* impl = V8TestObject::toImpl(holder);
1740 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck (info.GetIsolate(), v8Value); 1694 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck (info.GetIsolate(), v8Value);
1741 impl->setTestInterfaceOrNullAttribute(WTF::getPtr(cppValue)); 1695 impl->setTestInterfaceOrNullAttribute(WTF::getPtr(cppValue));
1742 } 1696 }
1743 1697
1744 static void testInterfaceOrNullAttributeAttributeSetterCallback(const v8::Functi onCallbackInfo<v8::Value>& info) 1698 static void testInterfaceOrNullAttributeAttributeSetterCallback(v8::Local<v8::Na me>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1745 { 1699 {
1746 v8::Local<v8::Value> v8Value = info[0];
1747 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1700 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1748 TestObjectV8Internal::testInterfaceOrNullAttributeAttributeSetter(v8Value, i nfo); 1701 TestObjectV8Internal::testInterfaceOrNullAttributeAttributeSetter(v8Value, i nfo);
1749 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1702 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1750 } 1703 }
1751 1704
1752 static void testEnumAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8:: Value>& info) 1705 static void testEnumAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8:: Value>& info)
1753 { 1706 {
1754 v8::Local<v8::Object> holder = info.Holder(); 1707 v8::Local<v8::Object> holder = info.Holder();
1755 TestObject* impl = V8TestObject::toImpl(holder); 1708 TestObject* impl = V8TestObject::toImpl(holder);
1756 v8SetReturnValueString(info, impl->testEnumAttribute(), info.GetIsolate()); 1709 v8SetReturnValueString(info, impl->testEnumAttribute(), info.GetIsolate());
1757 } 1710 }
1758 1711
1759 static void testEnumAttributeAttributeGetterCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) 1712 static void testEnumAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
1760 { 1713 {
1761 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1714 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1762 TestObjectV8Internal::testEnumAttributeAttributeGetter(info); 1715 TestObjectV8Internal::testEnumAttributeAttributeGetter(info);
1763 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1716 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1764 } 1717 }
1765 1718
1766 static void testEnumAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 1719 static void testEnumAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1767 { 1720 {
1768 v8::Local<v8::Object> holder = info.Holder(); 1721 v8::Local<v8::Object> holder = info.Holder();
1769 ExceptionState exceptionState(ExceptionState::SetterContext, "testEnumAttrib ute", "TestObject", holder, info.GetIsolate()); 1722 ExceptionState exceptionState(ExceptionState::SetterContext, "testEnumAttrib ute", "TestObject", holder, info.GetIsolate());
1770 TestObject* impl = V8TestObject::toImpl(holder); 1723 TestObject* impl = V8TestObject::toImpl(holder);
1771 V8StringResource<> cppValue = v8Value; 1724 V8StringResource<> cppValue = v8Value;
1772 if (!cppValue.prepare()) 1725 if (!cppValue.prepare())
1773 return; 1726 return;
1774 static const char* validValues[] = { 1727 static const char* validValues[] = {
1775 "", 1728 "",
1776 "EnumValue1", 1729 "EnumValue1",
1777 "EnumValue2", 1730 "EnumValue2",
1778 "EnumValue3", 1731 "EnumValue3",
1779 }; 1732 };
1780 if (!isValidEnum(cppValue, validValues, WTF_ARRAY_LENGTH(validValues), "Test Enum", exceptionState)) { 1733 if (!isValidEnum(cppValue, validValues, WTF_ARRAY_LENGTH(validValues), "Test Enum", exceptionState)) {
1781 currentExecutionContext(info.GetIsolate())->addConsoleMessage(ConsoleMes sage::create(JSMessageSource, WarningMessageLevel, exceptionState.message())); 1734 currentExecutionContext(info.GetIsolate())->addConsoleMessage(ConsoleMes sage::create(JSMessageSource, WarningMessageLevel, exceptionState.message()));
1782 return; 1735 return;
1783 } 1736 }
1784 impl->setTestEnumAttribute(cppValue); 1737 impl->setTestEnumAttribute(cppValue);
1785 } 1738 }
1786 1739
1787 static void testEnumAttributeAttributeSetterCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) 1740 static void testEnumAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1788 { 1741 {
1789 v8::Local<v8::Value> v8Value = info[0];
1790 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1742 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1791 TestObjectV8Internal::testEnumAttributeAttributeSetter(v8Value, info); 1743 TestObjectV8Internal::testEnumAttributeAttributeSetter(v8Value, info);
1792 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1744 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1793 } 1745 }
1794 1746
1795 static void testEnumOrNullAttributeAttributeGetter(const v8::FunctionCallbackInf o<v8::Value>& info) 1747 static void testEnumOrNullAttributeAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info)
1796 { 1748 {
1797 v8::Local<v8::Object> holder = info.Holder(); 1749 v8::Local<v8::Object> holder = info.Holder();
1798 TestObject* impl = V8TestObject::toImpl(holder); 1750 TestObject* impl = V8TestObject::toImpl(holder);
1799 v8SetReturnValueStringOrNull(info, impl->testEnumOrNullAttribute(), info.Get Isolate()); 1751 v8SetReturnValueStringOrNull(info, impl->testEnumOrNullAttribute(), info.Get Isolate());
1800 } 1752 }
1801 1753
1802 static void testEnumOrNullAttributeAttributeGetterCallback(const v8::FunctionCal lbackInfo<v8::Value>& info) 1754 static void testEnumOrNullAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
1803 { 1755 {
1804 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1756 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1805 TestObjectV8Internal::testEnumOrNullAttributeAttributeGetter(info); 1757 TestObjectV8Internal::testEnumOrNullAttributeAttributeGetter(info);
1806 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1758 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1807 } 1759 }
1808 1760
1809 static void testEnumOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 1761 static void testEnumOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1810 { 1762 {
1811 v8::Local<v8::Object> holder = info.Holder(); 1763 v8::Local<v8::Object> holder = info.Holder();
1812 ExceptionState exceptionState(ExceptionState::SetterContext, "testEnumOrNull Attribute", "TestObject", holder, info.GetIsolate()); 1764 ExceptionState exceptionState(ExceptionState::SetterContext, "testEnumOrNull Attribute", "TestObject", holder, info.GetIsolate());
1813 TestObject* impl = V8TestObject::toImpl(holder); 1765 TestObject* impl = V8TestObject::toImpl(holder);
1814 V8StringResource<TreatNullAsNullString> cppValue = v8Value; 1766 V8StringResource<TreatNullAsNullString> cppValue = v8Value;
1815 if (!cppValue.prepare()) 1767 if (!cppValue.prepare())
1816 return; 1768 return;
1817 static const char* validValues[] = { 1769 static const char* validValues[] = {
1818 "", 1770 "",
1819 "EnumValue1", 1771 "EnumValue1",
1820 "EnumValue2", 1772 "EnumValue2",
1821 "EnumValue3", 1773 "EnumValue3",
1822 }; 1774 };
1823 if (!isValidEnum(cppValue, validValues, WTF_ARRAY_LENGTH(validValues), "Test Enum", exceptionState)) { 1775 if (!isValidEnum(cppValue, validValues, WTF_ARRAY_LENGTH(validValues), "Test Enum", exceptionState)) {
1824 currentExecutionContext(info.GetIsolate())->addConsoleMessage(ConsoleMes sage::create(JSMessageSource, WarningMessageLevel, exceptionState.message())); 1776 currentExecutionContext(info.GetIsolate())->addConsoleMessage(ConsoleMes sage::create(JSMessageSource, WarningMessageLevel, exceptionState.message()));
1825 return; 1777 return;
1826 } 1778 }
1827 impl->setTestEnumOrNullAttribute(cppValue); 1779 impl->setTestEnumOrNullAttribute(cppValue);
1828 } 1780 }
1829 1781
1830 static void testEnumOrNullAttributeAttributeSetterCallback(const v8::FunctionCal lbackInfo<v8::Value>& info) 1782 static void testEnumOrNullAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1831 { 1783 {
1832 v8::Local<v8::Value> v8Value = info[0];
1833 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1784 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1834 TestObjectV8Internal::testEnumOrNullAttributeAttributeSetter(v8Value, info); 1785 TestObjectV8Internal::testEnumOrNullAttributeAttributeSetter(v8Value, info);
1835 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1786 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1836 } 1787 }
1837 1788
1838 static void staticStringAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info) 1789 static void staticStringAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info)
1839 { 1790 {
1840 v8SetReturnValueString(info, TestObject::staticStringAttribute(), info.GetIs olate()); 1791 v8SetReturnValueString(info, TestObject::staticStringAttribute(), info.GetIs olate());
1841 } 1792 }
1842 1793
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
1884 TestObject::setStaticLongAttribute(cppValue); 1835 TestObject::setStaticLongAttribute(cppValue);
1885 } 1836 }
1886 1837
1887 static void staticLongAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1838 static void staticLongAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1888 { 1839 {
1889 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1840 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1890 TestObjectV8Internal::staticLongAttributeAttributeSetter(v8Value, info); 1841 TestObjectV8Internal::staticLongAttributeAttributeSetter(v8Value, info);
1891 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1842 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1892 } 1843 }
1893 1844
1894 static void eventHandlerAttributeAttributeGetter(const v8::FunctionCallbackInfo< v8::Value>& info) 1845 static void eventHandlerAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info)
1895 { 1846 {
1896 v8::Local<v8::Object> holder = info.Holder(); 1847 v8::Local<v8::Object> holder = info.Holder();
1897 TestObject* impl = V8TestObject::toImpl(holder); 1848 TestObject* impl = V8TestObject::toImpl(holder);
1898 EventListener* cppValue(impl->eventHandlerAttribute()); 1849 EventListener* cppValue(impl->eventHandlerAttribute());
1899 v8SetReturnValue(info, cppValue ? v8::Local<v8::Value>(V8AbstractEventListen er::cast(cppValue)->getListenerObject(impl->executionContext())) : v8::Local<v8: :Value>(v8::Null(info.GetIsolate()))); 1850 v8SetReturnValue(info, cppValue ? v8::Local<v8::Value>(V8AbstractEventListen er::cast(cppValue)->getListenerObject(impl->executionContext())) : v8::Local<v8: :Value>(v8::Null(info.GetIsolate())));
1900 } 1851 }
1901 1852
1902 static void eventHandlerAttributeAttributeGetterCallback(const v8::FunctionCallb ackInfo<v8::Value>& info) 1853 static void eventHandlerAttributeAttributeGetterCallback(v8::Local<v8::Name>, co nst v8::PropertyCallbackInfo<v8::Value>& info)
1903 { 1854 {
1904 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1855 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1905 TestObjectV8Internal::eventHandlerAttributeAttributeGetter(info); 1856 TestObjectV8Internal::eventHandlerAttributeAttributeGetter(info);
1906 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1857 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1907 } 1858 }
1908 1859
1909 static void eventHandlerAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::FunctionCallbackInfo<v8::Value>& info) 1860 static void eventHandlerAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info)
1910 { 1861 {
1911 v8::Local<v8::Object> holder = info.Holder(); 1862 v8::Local<v8::Object> holder = info.Holder();
1912 TestObject* impl = V8TestObject::toImpl(holder); 1863 TestObject* impl = V8TestObject::toImpl(holder);
1913 moveEventListenerToNewWrapper(info.GetIsolate(), holder, impl->eventHandlerA ttribute(), v8Value, V8TestObject::eventListenerCacheIndex); 1864 moveEventListenerToNewWrapper(info.GetIsolate(), holder, impl->eventHandlerA ttribute(), v8Value, V8TestObject::eventListenerCacheIndex);
1914 impl->setEventHandlerAttribute(V8EventListenerList::getEventListener(ScriptS tate::current(info.GetIsolate()), v8Value, true, ListenerFindOrCreate)); 1865 impl->setEventHandlerAttribute(V8EventListenerList::getEventListener(ScriptS tate::current(info.GetIsolate()), v8Value, true, ListenerFindOrCreate));
1915 } 1866 }
1916 1867
1917 static void eventHandlerAttributeAttributeSetterCallback(const v8::FunctionCallb ackInfo<v8::Value>& info) 1868 static void eventHandlerAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1918 { 1869 {
1919 v8::Local<v8::Value> v8Value = info[0];
1920 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1870 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1921 TestObjectV8Internal::eventHandlerAttributeAttributeSetter(v8Value, info); 1871 TestObjectV8Internal::eventHandlerAttributeAttributeSetter(v8Value, info);
1922 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1872 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1923 } 1873 }
1924 1874
1925 static void doubleOrStringAttributeAttributeGetter(const v8::FunctionCallbackInf o<v8::Value>& info) 1875 static void doubleOrStringAttributeAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info)
1926 { 1876 {
1927 v8::Local<v8::Object> holder = info.Holder(); 1877 v8::Local<v8::Object> holder = info.Holder();
1928 TestObject* impl = V8TestObject::toImpl(holder); 1878 TestObject* impl = V8TestObject::toImpl(holder);
1929 DoubleOrString result; 1879 DoubleOrString result;
1930 impl->doubleOrStringAttribute(result); 1880 impl->doubleOrStringAttribute(result);
1931 v8SetReturnValue(info, result); 1881 v8SetReturnValue(info, result);
1932 } 1882 }
1933 1883
1934 static void doubleOrStringAttributeAttributeGetterCallback(const v8::FunctionCal lbackInfo<v8::Value>& info) 1884 static void doubleOrStringAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
1935 { 1885 {
1936 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1886 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1937 TestObjectV8Internal::doubleOrStringAttributeAttributeGetter(info); 1887 TestObjectV8Internal::doubleOrStringAttributeAttributeGetter(info);
1938 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1888 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1939 } 1889 }
1940 1890
1941 static void doubleOrStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 1891 static void doubleOrStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1942 { 1892 {
1943 v8::Local<v8::Object> holder = info.Holder(); 1893 v8::Local<v8::Object> holder = info.Holder();
1944 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleOrString Attribute", "TestObject", holder, info.GetIsolate()); 1894 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleOrString Attribute", "TestObject", holder, info.GetIsolate());
1945 TestObject* impl = V8TestObject::toImpl(holder); 1895 TestObject* impl = V8TestObject::toImpl(holder);
1946 DoubleOrString cppValue; 1896 DoubleOrString cppValue;
1947 V8DoubleOrString::toImpl(info.GetIsolate(), v8Value, cppValue, exceptionStat e); 1897 V8DoubleOrString::toImpl(info.GetIsolate(), v8Value, cppValue, exceptionStat e);
1948 if (exceptionState.throwIfNeeded()) 1898 if (exceptionState.throwIfNeeded())
1949 return; 1899 return;
1950 impl->setDoubleOrStringAttribute(cppValue); 1900 impl->setDoubleOrStringAttribute(cppValue);
1951 } 1901 }
1952 1902
1953 static void doubleOrStringAttributeAttributeSetterCallback(const v8::FunctionCal lbackInfo<v8::Value>& info) 1903 static void doubleOrStringAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1954 { 1904 {
1955 v8::Local<v8::Value> v8Value = info[0];
1956 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1905 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1957 TestObjectV8Internal::doubleOrStringAttributeAttributeSetter(v8Value, info); 1906 TestObjectV8Internal::doubleOrStringAttributeAttributeSetter(v8Value, info);
1958 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1907 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1959 } 1908 }
1960 1909
1961 static void doubleOrStringOrNullAttributeAttributeGetter(const v8::FunctionCallb ackInfo<v8::Value>& info) 1910 static void doubleOrStringOrNullAttributeAttributeGetter(const v8::PropertyCallb ackInfo<v8::Value>& info)
1962 { 1911 {
1963 v8::Local<v8::Object> holder = info.Holder(); 1912 v8::Local<v8::Object> holder = info.Holder();
1964 TestObject* impl = V8TestObject::toImpl(holder); 1913 TestObject* impl = V8TestObject::toImpl(holder);
1965 DoubleOrString result; 1914 DoubleOrString result;
1966 impl->doubleOrStringOrNullAttribute(result); 1915 impl->doubleOrStringOrNullAttribute(result);
1967 v8SetReturnValue(info, result); 1916 v8SetReturnValue(info, result);
1968 } 1917 }
1969 1918
1970 static void doubleOrStringOrNullAttributeAttributeGetterCallback(const v8::Funct ionCallbackInfo<v8::Value>& info) 1919 static void doubleOrStringOrNullAttributeAttributeGetterCallback(v8::Local<v8::N ame>, const v8::PropertyCallbackInfo<v8::Value>& info)
1971 { 1920 {
1972 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1921 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1973 TestObjectV8Internal::doubleOrStringOrNullAttributeAttributeGetter(info); 1922 TestObjectV8Internal::doubleOrStringOrNullAttributeAttributeGetter(info);
1974 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1923 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1975 } 1924 }
1976 1925
1977 static void doubleOrStringOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8 Value, const v8::FunctionCallbackInfo<v8::Value>& info) 1926 static void doubleOrStringOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8 Value, const v8::PropertyCallbackInfo<void>& info)
1978 { 1927 {
1979 v8::Local<v8::Object> holder = info.Holder(); 1928 v8::Local<v8::Object> holder = info.Holder();
1980 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleOrString OrNullAttribute", "TestObject", holder, info.GetIsolate()); 1929 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleOrString OrNullAttribute", "TestObject", holder, info.GetIsolate());
1981 TestObject* impl = V8TestObject::toImpl(holder); 1930 TestObject* impl = V8TestObject::toImpl(holder);
1982 DoubleOrString cppValue; 1931 DoubleOrString cppValue;
1983 V8DoubleOrStringOrNull::toImpl(info.GetIsolate(), v8Value, cppValue, excepti onState); 1932 V8DoubleOrStringOrNull::toImpl(info.GetIsolate(), v8Value, cppValue, excepti onState);
1984 if (exceptionState.throwIfNeeded()) 1933 if (exceptionState.throwIfNeeded())
1985 return; 1934 return;
1986 impl->setDoubleOrStringOrNullAttribute(cppValue); 1935 impl->setDoubleOrStringOrNullAttribute(cppValue);
1987 } 1936 }
1988 1937
1989 static void doubleOrStringOrNullAttributeAttributeSetterCallback(const v8::Funct ionCallbackInfo<v8::Value>& info) 1938 static void doubleOrStringOrNullAttributeAttributeSetterCallback(v8::Local<v8::N ame>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1990 { 1939 {
1991 v8::Local<v8::Value> v8Value = info[0];
1992 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1940 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1993 TestObjectV8Internal::doubleOrStringOrNullAttributeAttributeSetter(v8Value, info); 1941 TestObjectV8Internal::doubleOrStringOrNullAttributeAttributeSetter(v8Value, info);
1994 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1942 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1995 } 1943 }
1996 1944
1997 static void doubleOrNullStringAttributeAttributeGetter(const v8::FunctionCallbac kInfo<v8::Value>& info) 1945 static void doubleOrNullStringAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info)
1998 { 1946 {
1999 v8::Local<v8::Object> holder = info.Holder(); 1947 v8::Local<v8::Object> holder = info.Holder();
2000 TestObject* impl = V8TestObject::toImpl(holder); 1948 TestObject* impl = V8TestObject::toImpl(holder);
2001 DoubleOrString result; 1949 DoubleOrString result;
2002 impl->doubleOrNullStringAttribute(result); 1950 impl->doubleOrNullStringAttribute(result);
2003 v8SetReturnValue(info, result); 1951 v8SetReturnValue(info, result);
2004 } 1952 }
2005 1953
2006 static void doubleOrNullStringAttributeAttributeGetterCallback(const v8::Functio nCallbackInfo<v8::Value>& info) 1954 static void doubleOrNullStringAttributeAttributeGetterCallback(v8::Local<v8::Nam e>, const v8::PropertyCallbackInfo<v8::Value>& info)
2007 { 1955 {
2008 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1956 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2009 TestObjectV8Internal::doubleOrNullStringAttributeAttributeGetter(info); 1957 TestObjectV8Internal::doubleOrNullStringAttributeAttributeGetter(info);
2010 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1958 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2011 } 1959 }
2012 1960
2013 static void doubleOrNullStringAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::FunctionCallbackInfo<v8::Value>& info) 1961 static void doubleOrNullStringAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::PropertyCallbackInfo<void>& info)
2014 { 1962 {
2015 v8::Local<v8::Object> holder = info.Holder(); 1963 v8::Local<v8::Object> holder = info.Holder();
2016 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleOrNullSt ringAttribute", "TestObject", holder, info.GetIsolate()); 1964 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleOrNullSt ringAttribute", "TestObject", holder, info.GetIsolate());
2017 TestObject* impl = V8TestObject::toImpl(holder); 1965 TestObject* impl = V8TestObject::toImpl(holder);
2018 DoubleOrString cppValue; 1966 DoubleOrString cppValue;
2019 V8DoubleOrStringOrNull::toImpl(info.GetIsolate(), v8Value, cppValue, excepti onState); 1967 V8DoubleOrStringOrNull::toImpl(info.GetIsolate(), v8Value, cppValue, excepti onState);
2020 if (exceptionState.throwIfNeeded()) 1968 if (exceptionState.throwIfNeeded())
2021 return; 1969 return;
2022 impl->setDoubleOrNullStringAttribute(cppValue); 1970 impl->setDoubleOrNullStringAttribute(cppValue);
2023 } 1971 }
2024 1972
2025 static void doubleOrNullStringAttributeAttributeSetterCallback(const v8::Functio nCallbackInfo<v8::Value>& info) 1973 static void doubleOrNullStringAttributeAttributeSetterCallback(v8::Local<v8::Nam e>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2026 { 1974 {
2027 v8::Local<v8::Value> v8Value = info[0];
2028 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1975 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2029 TestObjectV8Internal::doubleOrNullStringAttributeAttributeSetter(v8Value, in fo); 1976 TestObjectV8Internal::doubleOrNullStringAttributeAttributeSetter(v8Value, in fo);
2030 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1977 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2031 } 1978 }
2032 1979
2033 static void stringOrStringSequenceAttributeAttributeGetter(const v8::FunctionCal lbackInfo<v8::Value>& info) 1980 static void stringOrStringSequenceAttributeAttributeGetter(const v8::PropertyCal lbackInfo<v8::Value>& info)
2034 { 1981 {
2035 v8::Local<v8::Object> holder = info.Holder(); 1982 v8::Local<v8::Object> holder = info.Holder();
2036 TestObject* impl = V8TestObject::toImpl(holder); 1983 TestObject* impl = V8TestObject::toImpl(holder);
2037 StringOrStringSequence result; 1984 StringOrStringSequence result;
2038 impl->stringOrStringSequenceAttribute(result); 1985 impl->stringOrStringSequenceAttribute(result);
2039 v8SetReturnValue(info, result); 1986 v8SetReturnValue(info, result);
2040 } 1987 }
2041 1988
2042 static void stringOrStringSequenceAttributeAttributeGetterCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info) 1989 static void stringOrStringSequenceAttributeAttributeGetterCallback(v8::Local<v8: :Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
2043 { 1990 {
2044 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1991 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2045 TestObjectV8Internal::stringOrStringSequenceAttributeAttributeGetter(info); 1992 TestObjectV8Internal::stringOrStringSequenceAttributeAttributeGetter(info);
2046 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1993 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2047 } 1994 }
2048 1995
2049 static void stringOrStringSequenceAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 1996 static void stringOrStringSequenceAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2050 { 1997 {
2051 v8::Local<v8::Object> holder = info.Holder(); 1998 v8::Local<v8::Object> holder = info.Holder();
2052 ExceptionState exceptionState(ExceptionState::SetterContext, "stringOrString SequenceAttribute", "TestObject", holder, info.GetIsolate()); 1999 ExceptionState exceptionState(ExceptionState::SetterContext, "stringOrString SequenceAttribute", "TestObject", holder, info.GetIsolate());
2053 TestObject* impl = V8TestObject::toImpl(holder); 2000 TestObject* impl = V8TestObject::toImpl(holder);
2054 StringOrStringSequence cppValue; 2001 StringOrStringSequence cppValue;
2055 V8StringOrStringSequence::toImpl(info.GetIsolate(), v8Value, cppValue, excep tionState); 2002 V8StringOrStringSequence::toImpl(info.GetIsolate(), v8Value, cppValue, excep tionState);
2056 if (exceptionState.throwIfNeeded()) 2003 if (exceptionState.throwIfNeeded())
2057 return; 2004 return;
2058 impl->setStringOrStringSequenceAttribute(cppValue); 2005 impl->setStringOrStringSequenceAttribute(cppValue);
2059 } 2006 }
2060 2007
2061 static void stringOrStringSequenceAttributeAttributeSetterCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info) 2008 static void stringOrStringSequenceAttributeAttributeSetterCallback(v8::Local<v8: :Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info )
2062 { 2009 {
2063 v8::Local<v8::Value> v8Value = info[0];
2064 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2010 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2065 TestObjectV8Internal::stringOrStringSequenceAttributeAttributeSetter(v8Value , info); 2011 TestObjectV8Internal::stringOrStringSequenceAttributeAttributeSetter(v8Value , info);
2066 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2012 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2067 } 2013 }
2068 2014
2069 static void testEnumOrDoubleAttributeAttributeGetter(const v8::FunctionCallbackI nfo<v8::Value>& info) 2015 static void testEnumOrDoubleAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info)
2070 { 2016 {
2071 v8::Local<v8::Object> holder = info.Holder(); 2017 v8::Local<v8::Object> holder = info.Holder();
2072 TestObject* impl = V8TestObject::toImpl(holder); 2018 TestObject* impl = V8TestObject::toImpl(holder);
2073 TestEnumOrDouble result; 2019 TestEnumOrDouble result;
2074 impl->testEnumOrDoubleAttribute(result); 2020 impl->testEnumOrDoubleAttribute(result);
2075 v8SetReturnValue(info, result); 2021 v8SetReturnValue(info, result);
2076 } 2022 }
2077 2023
2078 static void testEnumOrDoubleAttributeAttributeGetterCallback(const v8::FunctionC allbackInfo<v8::Value>& info) 2024 static void testEnumOrDoubleAttributeAttributeGetterCallback(v8::Local<v8::Name> , const v8::PropertyCallbackInfo<v8::Value>& info)
2079 { 2025 {
2080 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2026 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2081 TestObjectV8Internal::testEnumOrDoubleAttributeAttributeGetter(info); 2027 TestObjectV8Internal::testEnumOrDoubleAttributeAttributeGetter(info);
2082 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2028 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2083 } 2029 }
2084 2030
2085 static void testEnumOrDoubleAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::FunctionCallbackInfo<v8::Value>& info) 2031 static void testEnumOrDoubleAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::PropertyCallbackInfo<void>& info)
2086 { 2032 {
2087 v8::Local<v8::Object> holder = info.Holder(); 2033 v8::Local<v8::Object> holder = info.Holder();
2088 ExceptionState exceptionState(ExceptionState::SetterContext, "testEnumOrDoub leAttribute", "TestObject", holder, info.GetIsolate()); 2034 ExceptionState exceptionState(ExceptionState::SetterContext, "testEnumOrDoub leAttribute", "TestObject", holder, info.GetIsolate());
2089 TestObject* impl = V8TestObject::toImpl(holder); 2035 TestObject* impl = V8TestObject::toImpl(holder);
2090 TestEnumOrDouble cppValue; 2036 TestEnumOrDouble cppValue;
2091 V8TestEnumOrDouble::toImpl(info.GetIsolate(), v8Value, cppValue, exceptionSt ate); 2037 V8TestEnumOrDouble::toImpl(info.GetIsolate(), v8Value, cppValue, exceptionSt ate);
2092 if (exceptionState.throwIfNeeded()) 2038 if (exceptionState.throwIfNeeded())
2093 return; 2039 return;
2094 impl->setTestEnumOrDoubleAttribute(cppValue); 2040 impl->setTestEnumOrDoubleAttribute(cppValue);
2095 } 2041 }
2096 2042
2097 static void testEnumOrDoubleAttributeAttributeSetterCallback(const v8::FunctionC allbackInfo<v8::Value>& info) 2043 static void testEnumOrDoubleAttributeAttributeSetterCallback(v8::Local<v8::Name> , v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2098 { 2044 {
2099 v8::Local<v8::Value> v8Value = info[0];
2100 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2045 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2101 TestObjectV8Internal::testEnumOrDoubleAttributeAttributeSetter(v8Value, info ); 2046 TestObjectV8Internal::testEnumOrDoubleAttributeAttributeSetter(v8Value, info );
2102 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2047 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2103 } 2048 }
2104 2049
2105 static void unrestrictedDoubleOrStringAttributeAttributeGetter(const v8::Functio nCallbackInfo<v8::Value>& info) 2050 static void unrestrictedDoubleOrStringAttributeAttributeGetter(const v8::Propert yCallbackInfo<v8::Value>& info)
2106 { 2051 {
2107 v8::Local<v8::Object> holder = info.Holder(); 2052 v8::Local<v8::Object> holder = info.Holder();
2108 TestObject* impl = V8TestObject::toImpl(holder); 2053 TestObject* impl = V8TestObject::toImpl(holder);
2109 UnrestrictedDoubleOrString result; 2054 UnrestrictedDoubleOrString result;
2110 impl->unrestrictedDoubleOrStringAttribute(result); 2055 impl->unrestrictedDoubleOrStringAttribute(result);
2111 v8SetReturnValue(info, result); 2056 v8SetReturnValue(info, result);
2112 } 2057 }
2113 2058
2114 static void unrestrictedDoubleOrStringAttributeAttributeGetterCallback(const v8: :FunctionCallbackInfo<v8::Value>& info) 2059 static void unrestrictedDoubleOrStringAttributeAttributeGetterCallback(v8::Local <v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
2115 { 2060 {
2116 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2061 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2117 TestObjectV8Internal::unrestrictedDoubleOrStringAttributeAttributeGetter(inf o); 2062 TestObjectV8Internal::unrestrictedDoubleOrStringAttributeAttributeGetter(inf o);
2118 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2063 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2119 } 2064 }
2120 2065
2121 static void unrestrictedDoubleOrStringAttributeAttributeSetter(v8::Local<v8::Val ue> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 2066 static void unrestrictedDoubleOrStringAttributeAttributeSetter(v8::Local<v8::Val ue> v8Value, const v8::PropertyCallbackInfo<void>& info)
2122 { 2067 {
2123 v8::Local<v8::Object> holder = info.Holder(); 2068 v8::Local<v8::Object> holder = info.Holder();
2124 ExceptionState exceptionState(ExceptionState::SetterContext, "unrestrictedDo ubleOrStringAttribute", "TestObject", holder, info.GetIsolate()); 2069 ExceptionState exceptionState(ExceptionState::SetterContext, "unrestrictedDo ubleOrStringAttribute", "TestObject", holder, info.GetIsolate());
2125 TestObject* impl = V8TestObject::toImpl(holder); 2070 TestObject* impl = V8TestObject::toImpl(holder);
2126 UnrestrictedDoubleOrString cppValue; 2071 UnrestrictedDoubleOrString cppValue;
2127 V8UnrestrictedDoubleOrString::toImpl(info.GetIsolate(), v8Value, cppValue, e xceptionState); 2072 V8UnrestrictedDoubleOrString::toImpl(info.GetIsolate(), v8Value, cppValue, e xceptionState);
2128 if (exceptionState.throwIfNeeded()) 2073 if (exceptionState.throwIfNeeded())
2129 return; 2074 return;
2130 impl->setUnrestrictedDoubleOrStringAttribute(cppValue); 2075 impl->setUnrestrictedDoubleOrStringAttribute(cppValue);
2131 } 2076 }
2132 2077
2133 static void unrestrictedDoubleOrStringAttributeAttributeSetterCallback(const v8: :FunctionCallbackInfo<v8::Value>& info) 2078 static void unrestrictedDoubleOrStringAttributeAttributeSetterCallback(v8::Local <v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2134 { 2079 {
2135 v8::Local<v8::Value> v8Value = info[0];
2136 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2080 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2137 TestObjectV8Internal::unrestrictedDoubleOrStringAttributeAttributeSetter(v8V alue, info); 2081 TestObjectV8Internal::unrestrictedDoubleOrStringAttributeAttributeSetter(v8V alue, info);
2138 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2082 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2139 } 2083 }
2140 2084
2141 static void activityLoggingAccessForAllWorldsLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) 2085 static void activityLoggingAccessForAllWorldsLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
2142 { 2086 {
2143 v8::Local<v8::Object> holder = info.Holder(); 2087 v8::Local<v8::Object> holder = info.Holder();
2144 TestObject* impl = V8TestObject::toImpl(holder); 2088 TestObject* impl = V8TestObject::toImpl(holder);
2145 v8SetReturnValueInt(info, impl->activityLoggingAccessForAllWorldsLongAttribu te()); 2089 v8SetReturnValueInt(info, impl->activityLoggingAccessForAllWorldsLongAttribu te());
2146 } 2090 }
2147 2091
2148 static void activityLoggingAccessForAllWorldsLongAttributeAttributeGetterCallbac k(const v8::FunctionCallbackInfo<v8::Value>& info) 2092 static void activityLoggingAccessForAllWorldsLongAttributeAttributeGetterCallbac k(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
2149 { 2093 {
2150 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2094 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2151 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 2095 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
2152 V8PerContextData* contextData = scriptState->perContextData(); 2096 V8PerContextData* contextData = scriptState->perContextData();
2153 if (contextData && contextData->activityLogger()) 2097 if (contextData && contextData->activityLogger())
2154 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssForAllWorldsLongAttribute"); 2098 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssForAllWorldsLongAttribute");
2155 TestObjectV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttribut eGetter(info); 2099 TestObjectV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttribut eGetter(info);
2156 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2100 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2157 } 2101 }
2158 2102
2159 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetter(v8::Lo cal<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 2103 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetter(v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2160 { 2104 {
2161 v8::Local<v8::Object> holder = info.Holder(); 2105 v8::Local<v8::Object> holder = info.Holder();
2162 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); 2106 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate());
2163 TestObject* impl = V8TestObject::toImpl(holder); 2107 TestObject* impl = V8TestObject::toImpl(holder);
2164 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 2108 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
2165 if (exceptionState.throwIfNeeded()) 2109 if (exceptionState.throwIfNeeded())
2166 return; 2110 return;
2167 impl->setActivityLoggingAccessForAllWorldsLongAttribute(cppValue); 2111 impl->setActivityLoggingAccessForAllWorldsLongAttribute(cppValue);
2168 } 2112 }
2169 2113
2170 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetterCallbac k(const v8::FunctionCallbackInfo<v8::Value>& info) 2114 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetterCallbac k(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI nfo<void>& info)
2171 { 2115 {
2172 v8::Local<v8::Value> v8Value = info[0];
2173 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2116 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2174 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 2117 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
2175 V8PerContextData* contextData = scriptState->perContextData(); 2118 V8PerContextData* contextData = scriptState->perContextData();
2176 if (contextData && contextData->activityLogger()) { 2119 if (contextData && contextData->activityLogger()) {
2177 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce ssForAllWorldsLongAttribute", v8Value); 2120 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce ssForAllWorldsLongAttribute", v8Value);
2178 } 2121 }
2179 TestObjectV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttribut eSetter(v8Value, info); 2122 TestObjectV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttribut eSetter(v8Value, info);
2180 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2123 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2181 } 2124 }
2182 2125
2183 static void activityLoggingGetterForAllWorldsLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) 2126 static void activityLoggingGetterForAllWorldsLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
2184 { 2127 {
2185 v8::Local<v8::Object> holder = info.Holder(); 2128 v8::Local<v8::Object> holder = info.Holder();
2186 TestObject* impl = V8TestObject::toImpl(holder); 2129 TestObject* impl = V8TestObject::toImpl(holder);
2187 v8SetReturnValueInt(info, impl->activityLoggingGetterForAllWorldsLongAttribu te()); 2130 v8SetReturnValueInt(info, impl->activityLoggingGetterForAllWorldsLongAttribu te());
2188 } 2131 }
2189 2132
2190 static void activityLoggingGetterForAllWorldsLongAttributeAttributeGetterCallbac k(const v8::FunctionCallbackInfo<v8::Value>& info) 2133 static void activityLoggingGetterForAllWorldsLongAttributeAttributeGetterCallbac k(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
2191 { 2134 {
2192 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2135 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2193 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 2136 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
2194 V8PerContextData* contextData = scriptState->perContextData(); 2137 V8PerContextData* contextData = scriptState->perContextData();
2195 if (contextData && contextData->activityLogger()) 2138 if (contextData && contextData->activityLogger())
2196 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erForAllWorldsLongAttribute"); 2139 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erForAllWorldsLongAttribute");
2197 TestObjectV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttribut eGetter(info); 2140 TestObjectV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttribut eGetter(info);
2198 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2141 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2199 } 2142 }
2200 2143
2201 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetter(v8::Lo cal<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 2144 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetter(v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2202 { 2145 {
2203 v8::Local<v8::Object> holder = info.Holder(); 2146 v8::Local<v8::Object> holder = info.Holder();
2204 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); 2147 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate());
2205 TestObject* impl = V8TestObject::toImpl(holder); 2148 TestObject* impl = V8TestObject::toImpl(holder);
2206 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 2149 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
2207 if (exceptionState.throwIfNeeded()) 2150 if (exceptionState.throwIfNeeded())
2208 return; 2151 return;
2209 impl->setActivityLoggingGetterForAllWorldsLongAttribute(cppValue); 2152 impl->setActivityLoggingGetterForAllWorldsLongAttribute(cppValue);
2210 } 2153 }
2211 2154
2212 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetterCallbac k(const v8::FunctionCallbackInfo<v8::Value>& info) 2155 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetterCallbac k(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI nfo<void>& info)
2213 { 2156 {
2214 v8::Local<v8::Value> v8Value = info[0];
2215 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2157 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2216 TestObjectV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttribut eSetter(v8Value, info); 2158 TestObjectV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttribut eSetter(v8Value, info);
2217 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2159 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2218 } 2160 }
2219 2161
2220 static void activityLoggingSetterForAllWorldsLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) 2162 static void activityLoggingSetterForAllWorldsLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
2221 { 2163 {
2222 v8::Local<v8::Object> holder = info.Holder(); 2164 v8::Local<v8::Object> holder = info.Holder();
2223 TestObject* impl = V8TestObject::toImpl(holder); 2165 TestObject* impl = V8TestObject::toImpl(holder);
2224 v8SetReturnValueInt(info, impl->activityLoggingSetterForAllWorldsLongAttribu te()); 2166 v8SetReturnValueInt(info, impl->activityLoggingSetterForAllWorldsLongAttribu te());
2225 } 2167 }
2226 2168
2227 static void activityLoggingSetterForAllWorldsLongAttributeAttributeGetterCallbac k(const v8::FunctionCallbackInfo<v8::Value>& info) 2169 static void activityLoggingSetterForAllWorldsLongAttributeAttributeGetterCallbac k(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
2228 { 2170 {
2229 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2171 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2230 TestObjectV8Internal::activityLoggingSetterForAllWorldsLongAttributeAttribut eGetter(info); 2172 TestObjectV8Internal::activityLoggingSetterForAllWorldsLongAttributeAttribut eGetter(info);
2231 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2173 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2232 } 2174 }
2233 2175
2234 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetter(v8::Lo cal<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 2176 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetter(v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2235 { 2177 {
2236 v8::Local<v8::Object> holder = info.Holder(); 2178 v8::Local<v8::Object> holder = info.Holder();
2237 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gSetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); 2179 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gSetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate());
2238 TestObject* impl = V8TestObject::toImpl(holder); 2180 TestObject* impl = V8TestObject::toImpl(holder);
2239 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 2181 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
2240 if (exceptionState.throwIfNeeded()) 2182 if (exceptionState.throwIfNeeded())
2241 return; 2183 return;
2242 impl->setActivityLoggingSetterForAllWorldsLongAttribute(cppValue); 2184 impl->setActivityLoggingSetterForAllWorldsLongAttribute(cppValue);
2243 } 2185 }
2244 2186
2245 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetterCallbac k(const v8::FunctionCallbackInfo<v8::Value>& info) 2187 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetterCallbac k(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI nfo<void>& info)
2246 { 2188 {
2247 v8::Local<v8::Value> v8Value = info[0];
2248 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2189 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2249 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 2190 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
2250 V8PerContextData* contextData = scriptState->perContextData(); 2191 V8PerContextData* contextData = scriptState->perContextData();
2251 if (contextData && contextData->activityLogger()) { 2192 if (contextData && contextData->activityLogger()) {
2252 contextData->activityLogger()->logSetter("TestObject.activityLoggingSett erForAllWorldsLongAttribute", v8Value); 2193 contextData->activityLogger()->logSetter("TestObject.activityLoggingSett erForAllWorldsLongAttribute", v8Value);
2253 } 2194 }
2254 TestObjectV8Internal::activityLoggingSetterForAllWorldsLongAttributeAttribut eSetter(v8Value, info); 2195 TestObjectV8Internal::activityLoggingSetterForAllWorldsLongAttributeAttribut eSetter(v8Value, info);
2255 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2196 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2256 } 2197 }
2257 2198
2258 static void cachedAttributeAnyAttributeAttributeGetter(const v8::FunctionCallbac kInfo<v8::Value>& info) 2199 static void cachedAttributeAnyAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info)
2259 { 2200 {
2260 v8::Local<v8::Object> holder = info.Holder(); 2201 v8::Local<v8::Object> holder = info.Holder();
2261 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cach edAttributeAnyAttribute"); 2202 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cach edAttributeAnyAttribute");
2262 TestObject* impl = V8TestObject::toImpl(holder); 2203 TestObject* impl = V8TestObject::toImpl(holder);
2263 if (!impl->isValueDirty()) { 2204 if (!impl->isValueDirty()) {
2264 v8::Local<v8::Value> v8Value = V8HiddenValue::getHiddenValue(info.GetIso late(), holder, propertyName); 2205 v8::Local<v8::Value> v8Value = V8HiddenValue::getHiddenValue(info.GetIso late(), holder, propertyName);
2265 if (!v8Value.IsEmpty()) { 2206 if (!v8Value.IsEmpty()) {
2266 v8SetReturnValue(info, v8Value); 2207 v8SetReturnValue(info, v8Value);
2267 return; 2208 return;
2268 } 2209 }
2269 } 2210 }
2270 ScriptValue cppValue(impl->cachedAttributeAnyAttribute()); 2211 ScriptValue cppValue(impl->cachedAttributeAnyAttribute());
2271 v8::Local<v8::Value> v8Value(cppValue.v8Value()); 2212 v8::Local<v8::Value> v8Value(cppValue.v8Value());
2272 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, v8Val ue); 2213 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, v8Val ue);
2273 v8SetReturnValue(info, v8Value); 2214 v8SetReturnValue(info, v8Value);
2274 } 2215 }
2275 2216
2276 static void cachedAttributeAnyAttributeAttributeGetterCallback(const v8::Functio nCallbackInfo<v8::Value>& info) 2217 static void cachedAttributeAnyAttributeAttributeGetterCallback(v8::Local<v8::Nam e>, const v8::PropertyCallbackInfo<v8::Value>& info)
2277 { 2218 {
2278 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2219 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2279 TestObjectV8Internal::cachedAttributeAnyAttributeAttributeGetter(info); 2220 TestObjectV8Internal::cachedAttributeAnyAttributeAttributeGetter(info);
2280 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2221 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2281 } 2222 }
2282 2223
2283 static void cachedAttributeAnyAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::FunctionCallbackInfo<v8::Value>& info) 2224 static void cachedAttributeAnyAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::PropertyCallbackInfo<void>& info)
2284 { 2225 {
2285 v8::Local<v8::Object> holder = info.Holder(); 2226 v8::Local<v8::Object> holder = info.Holder();
2286 TestObject* impl = V8TestObject::toImpl(holder); 2227 TestObject* impl = V8TestObject::toImpl(holder);
2287 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value); 2228 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value);
2288 impl->setCachedAttributeAnyAttribute(cppValue); 2229 impl->setCachedAttributeAnyAttribute(cppValue);
2289 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i nfo.GetIsolate(), "cachedAttributeAnyAttribute")); // Invalidate the cached valu e. 2230 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i nfo.GetIsolate(), "cachedAttributeAnyAttribute")); // Invalidate the cached valu e.
2290 } 2231 }
2291 2232
2292 static void cachedAttributeAnyAttributeAttributeSetterCallback(const v8::Functio nCallbackInfo<v8::Value>& info) 2233 static void cachedAttributeAnyAttributeAttributeSetterCallback(v8::Local<v8::Nam e>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2293 { 2234 {
2294 v8::Local<v8::Value> v8Value = info[0];
2295 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2235 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2296 TestObjectV8Internal::cachedAttributeAnyAttributeAttributeSetter(v8Value, in fo); 2236 TestObjectV8Internal::cachedAttributeAnyAttributeAttributeSetter(v8Value, in fo);
2297 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2237 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2298 } 2238 }
2299 2239
2300 static void cachedArrayAttributeAttributeGetter(const v8::FunctionCallbackInfo<v 8::Value>& info) 2240 static void cachedArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info)
2301 { 2241 {
2302 v8::Local<v8::Object> holder = info.Holder(); 2242 v8::Local<v8::Object> holder = info.Holder();
2303 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cach edArrayAttribute"); 2243 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cach edArrayAttribute");
2304 TestObject* impl = V8TestObject::toImpl(holder); 2244 TestObject* impl = V8TestObject::toImpl(holder);
2305 if (!impl->isArrayDirty()) { 2245 if (!impl->isArrayDirty()) {
2306 v8::Local<v8::Value> v8Value = V8HiddenValue::getHiddenValue(info.GetIso late(), holder, propertyName); 2246 v8::Local<v8::Value> v8Value = V8HiddenValue::getHiddenValue(info.GetIso late(), holder, propertyName);
2307 if (!v8Value.IsEmpty()) { 2247 if (!v8Value.IsEmpty()) {
2308 v8SetReturnValue(info, v8Value); 2248 v8SetReturnValue(info, v8Value);
2309 return; 2249 return;
2310 } 2250 }
2311 } 2251 }
2312 Vector<String> cppValue(impl->cachedArrayAttribute()); 2252 Vector<String> cppValue(impl->cachedArrayAttribute());
2313 v8::Local<v8::Value> v8Value(toV8(cppValue, info.Holder(), info.GetIsolate() )); 2253 v8::Local<v8::Value> v8Value(toV8(cppValue, info.Holder(), info.GetIsolate() ));
2314 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, v8Val ue); 2254 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, v8Val ue);
2315 v8SetReturnValue(info, v8Value); 2255 v8SetReturnValue(info, v8Value);
2316 } 2256 }
2317 2257
2318 static void cachedArrayAttributeAttributeGetterCallback(const v8::FunctionCallba ckInfo<v8::Value>& info) 2258 static void cachedArrayAttributeAttributeGetterCallback(v8::Local<v8::Name>, con st v8::PropertyCallbackInfo<v8::Value>& info)
2319 { 2259 {
2320 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2260 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2321 TestObjectV8Internal::cachedArrayAttributeAttributeGetter(info); 2261 TestObjectV8Internal::cachedArrayAttributeAttributeGetter(info);
2322 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2262 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2323 } 2263 }
2324 2264
2325 static void cachedArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::FunctionCallbackInfo<v8::Value>& info) 2265 static void cachedArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& info)
2326 { 2266 {
2327 v8::Local<v8::Object> holder = info.Holder(); 2267 v8::Local<v8::Object> holder = info.Holder();
2328 ExceptionState exceptionState(ExceptionState::SetterContext, "cachedArrayAtt ribute", "TestObject", holder, info.GetIsolate()); 2268 ExceptionState exceptionState(ExceptionState::SetterContext, "cachedArrayAtt ribute", "TestObject", holder, info.GetIsolate());
2329 TestObject* impl = V8TestObject::toImpl(holder); 2269 TestObject* impl = V8TestObject::toImpl(holder);
2330 Vector<String> cppValue = toImplArray<String>(v8Value, 0, info.GetIsolate(), exceptionState); 2270 Vector<String> cppValue = toImplArray<String>(v8Value, 0, info.GetIsolate(), exceptionState);
2331 if (exceptionState.throwIfNeeded()) 2271 if (exceptionState.throwIfNeeded())
2332 return; 2272 return;
2333 impl->setCachedArrayAttribute(cppValue); 2273 impl->setCachedArrayAttribute(cppValue);
2334 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i nfo.GetIsolate(), "cachedArrayAttribute")); // Invalidate the cached value. 2274 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i nfo.GetIsolate(), "cachedArrayAttribute")); // Invalidate the cached value.
2335 } 2275 }
2336 2276
2337 static void cachedArrayAttributeAttributeSetterCallback(const v8::FunctionCallba ckInfo<v8::Value>& info) 2277 static void cachedArrayAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8: :Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2338 { 2278 {
2339 v8::Local<v8::Value> v8Value = info[0];
2340 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2279 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2341 TestObjectV8Internal::cachedArrayAttributeAttributeSetter(v8Value, info); 2280 TestObjectV8Internal::cachedArrayAttributeAttributeSetter(v8Value, info);
2342 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2281 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2343 } 2282 }
2344 2283
2345 static void cachedStringOrNoneAttributeAttributeGetter(const v8::FunctionCallbac kInfo<v8::Value>& info) 2284 static void cachedStringOrNoneAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info)
2346 { 2285 {
2347 v8::Local<v8::Object> holder = info.Holder(); 2286 v8::Local<v8::Object> holder = info.Holder();
2348 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cach edStringOrNoneAttribute"); 2287 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cach edStringOrNoneAttribute");
2349 TestObject* impl = V8TestObject::toImpl(holder); 2288 TestObject* impl = V8TestObject::toImpl(holder);
2350 if (!impl->isStringDirty()) { 2289 if (!impl->isStringDirty()) {
2351 v8::Local<v8::Value> v8Value = V8HiddenValue::getHiddenValue(info.GetIso late(), holder, propertyName); 2290 v8::Local<v8::Value> v8Value = V8HiddenValue::getHiddenValue(info.GetIso late(), holder, propertyName);
2352 if (!v8Value.IsEmpty()) { 2291 if (!v8Value.IsEmpty()) {
2353 v8SetReturnValue(info, v8Value); 2292 v8SetReturnValue(info, v8Value);
2354 return; 2293 return;
2355 } 2294 }
2356 } 2295 }
2357 String cppValue(impl->cachedStringOrNoneAttribute()); 2296 String cppValue(impl->cachedStringOrNoneAttribute());
2358 v8::Local<v8::Value> v8Value(cppValue.isNull() ? v8::Local<v8::Value>(v8::Nu ll(info.GetIsolate())) : v8String(info.GetIsolate(), cppValue)); 2297 v8::Local<v8::Value> v8Value(cppValue.isNull() ? v8::Local<v8::Value>(v8::Nu ll(info.GetIsolate())) : v8String(info.GetIsolate(), cppValue));
2359 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, v8Val ue); 2298 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, v8Val ue);
2360 v8SetReturnValue(info, v8Value); 2299 v8SetReturnValue(info, v8Value);
2361 } 2300 }
2362 2301
2363 static void cachedStringOrNoneAttributeAttributeGetterCallback(const v8::Functio nCallbackInfo<v8::Value>& info) 2302 static void cachedStringOrNoneAttributeAttributeGetterCallback(v8::Local<v8::Nam e>, const v8::PropertyCallbackInfo<v8::Value>& info)
2364 { 2303 {
2365 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2304 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2366 TestObjectV8Internal::cachedStringOrNoneAttributeAttributeGetter(info); 2305 TestObjectV8Internal::cachedStringOrNoneAttributeAttributeGetter(info);
2367 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2306 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2368 } 2307 }
2369 2308
2370 static void cachedStringOrNoneAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::FunctionCallbackInfo<v8::Value>& info) 2309 static void cachedStringOrNoneAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::PropertyCallbackInfo<void>& info)
2371 { 2310 {
2372 v8::Local<v8::Object> holder = info.Holder(); 2311 v8::Local<v8::Object> holder = info.Holder();
2373 TestObject* impl = V8TestObject::toImpl(holder); 2312 TestObject* impl = V8TestObject::toImpl(holder);
2374 V8StringResource<TreatNullAsNullString> cppValue = v8Value; 2313 V8StringResource<TreatNullAsNullString> cppValue = v8Value;
2375 if (!cppValue.prepare()) 2314 if (!cppValue.prepare())
2376 return; 2315 return;
2377 impl->setCachedStringOrNoneAttribute(cppValue); 2316 impl->setCachedStringOrNoneAttribute(cppValue);
2378 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i nfo.GetIsolate(), "cachedStringOrNoneAttribute")); // Invalidate the cached valu e. 2317 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i nfo.GetIsolate(), "cachedStringOrNoneAttribute")); // Invalidate the cached valu e.
2379 } 2318 }
2380 2319
2381 static void cachedStringOrNoneAttributeAttributeSetterCallback(const v8::Functio nCallbackInfo<v8::Value>& info) 2320 static void cachedStringOrNoneAttributeAttributeSetterCallback(v8::Local<v8::Nam e>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2382 { 2321 {
2383 v8::Local<v8::Value> v8Value = info[0];
2384 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2322 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2385 TestObjectV8Internal::cachedStringOrNoneAttributeAttributeSetter(v8Value, in fo); 2323 TestObjectV8Internal::cachedStringOrNoneAttributeAttributeSetter(v8Value, in fo);
2386 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2324 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2387 } 2325 }
2388 2326
2389 static void callWithExecutionContextAnyAttributeAttributeGetter(const v8::Functi onCallbackInfo<v8::Value>& info) 2327 static void callWithExecutionContextAnyAttributeAttributeGetter(const v8::Proper tyCallbackInfo<v8::Value>& info)
2390 { 2328 {
2391 v8::Local<v8::Object> holder = info.Holder(); 2329 v8::Local<v8::Object> holder = info.Holder();
2392 TestObject* impl = V8TestObject::toImpl(holder); 2330 TestObject* impl = V8TestObject::toImpl(holder);
2393 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ()); 2331 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ());
2394 v8SetReturnValue(info, impl->callWithExecutionContextAnyAttribute(executionC ontext).v8Value()); 2332 v8SetReturnValue(info, impl->callWithExecutionContextAnyAttribute(executionC ontext).v8Value());
2395 } 2333 }
2396 2334
2397 static void callWithExecutionContextAnyAttributeAttributeGetterCallback(const v8 ::FunctionCallbackInfo<v8::Value>& info) 2335 static void callWithExecutionContextAnyAttributeAttributeGetterCallback(v8::Loca l<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
2398 { 2336 {
2399 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2337 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2400 TestObjectV8Internal::callWithExecutionContextAnyAttributeAttributeGetter(in fo); 2338 TestObjectV8Internal::callWithExecutionContextAnyAttributeAttributeGetter(in fo);
2401 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2339 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2402 } 2340 }
2403 2341
2404 static void callWithExecutionContextAnyAttributeAttributeSetter(v8::Local<v8::Va lue> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 2342 static void callWithExecutionContextAnyAttributeAttributeSetter(v8::Local<v8::Va lue> v8Value, const v8::PropertyCallbackInfo<void>& info)
2405 { 2343 {
2406 v8::Local<v8::Object> holder = info.Holder(); 2344 v8::Local<v8::Object> holder = info.Holder();
2407 TestObject* impl = V8TestObject::toImpl(holder); 2345 TestObject* impl = V8TestObject::toImpl(holder);
2408 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value); 2346 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value);
2409 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ()); 2347 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ());
2410 impl->setCallWithExecutionContextAnyAttribute(executionContext, cppValue); 2348 impl->setCallWithExecutionContextAnyAttribute(executionContext, cppValue);
2411 } 2349 }
2412 2350
2413 static void callWithExecutionContextAnyAttributeAttributeSetterCallback(const v8 ::FunctionCallbackInfo<v8::Value>& info) 2351 static void callWithExecutionContextAnyAttributeAttributeSetterCallback(v8::Loca l<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2414 { 2352 {
2415 v8::Local<v8::Value> v8Value = info[0];
2416 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2353 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2417 TestObjectV8Internal::callWithExecutionContextAnyAttributeAttributeSetter(v8 Value, info); 2354 TestObjectV8Internal::callWithExecutionContextAnyAttributeAttributeSetter(v8 Value, info);
2418 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2355 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2419 } 2356 }
2420 2357
2421 static void callWithScriptStateAnyAttributeAttributeGetter(const v8::FunctionCal lbackInfo<v8::Value>& info) 2358 static void callWithScriptStateAnyAttributeAttributeGetter(const v8::PropertyCal lbackInfo<v8::Value>& info)
2422 { 2359 {
2423 v8::Local<v8::Object> holder = info.Holder(); 2360 v8::Local<v8::Object> holder = info.Holder();
2424 TestObject* impl = V8TestObject::toImpl(holder); 2361 TestObject* impl = V8TestObject::toImpl(holder);
2425 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); 2362 ScriptState* scriptState = ScriptState::current(info.GetIsolate());
2426 v8SetReturnValue(info, impl->callWithScriptStateAnyAttribute(scriptState).v8 Value()); 2363 v8SetReturnValue(info, impl->callWithScriptStateAnyAttribute(scriptState).v8 Value());
2427 } 2364 }
2428 2365
2429 static void callWithScriptStateAnyAttributeAttributeGetterCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info) 2366 static void callWithScriptStateAnyAttributeAttributeGetterCallback(v8::Local<v8: :Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
2430 { 2367 {
2431 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2368 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2432 TestObjectV8Internal::callWithScriptStateAnyAttributeAttributeGetter(info); 2369 TestObjectV8Internal::callWithScriptStateAnyAttributeAttributeGetter(info);
2433 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2370 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2434 } 2371 }
2435 2372
2436 static void callWithScriptStateAnyAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 2373 static void callWithScriptStateAnyAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2437 { 2374 {
2438 v8::Local<v8::Object> holder = info.Holder(); 2375 v8::Local<v8::Object> holder = info.Holder();
2439 TestObject* impl = V8TestObject::toImpl(holder); 2376 TestObject* impl = V8TestObject::toImpl(holder);
2440 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value); 2377 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value);
2441 impl->setCallWithScriptStateAnyAttribute(scriptState, cppValue); 2378 impl->setCallWithScriptStateAnyAttribute(scriptState, cppValue);
2442 } 2379 }
2443 2380
2444 static void callWithScriptStateAnyAttributeAttributeSetterCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info) 2381 static void callWithScriptStateAnyAttributeAttributeSetterCallback(v8::Local<v8: :Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info )
2445 { 2382 {
2446 v8::Local<v8::Value> v8Value = info[0];
2447 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2383 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2448 TestObjectV8Internal::callWithScriptStateAnyAttributeAttributeSetter(v8Value , info); 2384 TestObjectV8Internal::callWithScriptStateAnyAttributeAttributeSetter(v8Value , info);
2449 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2385 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2450 } 2386 }
2451 2387
2452 static void callWithExecutionContextAndScriptStateAnyAttributeAttributeGetter(co nst v8::FunctionCallbackInfo<v8::Value>& info) 2388 static void callWithExecutionContextAndScriptStateAnyAttributeAttributeGetter(co nst v8::PropertyCallbackInfo<v8::Value>& info)
2453 { 2389 {
2454 v8::Local<v8::Object> holder = info.Holder(); 2390 v8::Local<v8::Object> holder = info.Holder();
2455 TestObject* impl = V8TestObject::toImpl(holder); 2391 TestObject* impl = V8TestObject::toImpl(holder);
2456 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ()); 2392 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ());
2457 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); 2393 ScriptState* scriptState = ScriptState::current(info.GetIsolate());
2458 v8SetReturnValue(info, impl->callWithExecutionContextAndScriptStateAnyAttrib ute(scriptState, executionContext).v8Value()); 2394 v8SetReturnValue(info, impl->callWithExecutionContextAndScriptStateAnyAttrib ute(scriptState, executionContext).v8Value());
2459 } 2395 }
2460 2396
2461 static void callWithExecutionContextAndScriptStateAnyAttributeAttributeGetterCal lback(const v8::FunctionCallbackInfo<v8::Value>& info) 2397 static void callWithExecutionContextAndScriptStateAnyAttributeAttributeGetterCal lback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
2462 { 2398 {
2463 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2399 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2464 TestObjectV8Internal::callWithExecutionContextAndScriptStateAnyAttributeAttr ibuteGetter(info); 2400 TestObjectV8Internal::callWithExecutionContextAndScriptStateAnyAttributeAttr ibuteGetter(info);
2465 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2401 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2466 } 2402 }
2467 2403
2468 static void callWithExecutionContextAndScriptStateAnyAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 2404 static void callWithExecutionContextAndScriptStateAnyAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2469 { 2405 {
2470 v8::Local<v8::Object> holder = info.Holder(); 2406 v8::Local<v8::Object> holder = info.Holder();
2471 TestObject* impl = V8TestObject::toImpl(holder); 2407 TestObject* impl = V8TestObject::toImpl(holder);
2472 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value); 2408 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value);
2473 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ()); 2409 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ());
2474 impl->setCallWithExecutionContextAndScriptStateAnyAttribute(scriptState, exe cutionContext, cppValue); 2410 impl->setCallWithExecutionContextAndScriptStateAnyAttribute(scriptState, exe cutionContext, cppValue);
2475 } 2411 }
2476 2412
2477 static void callWithExecutionContextAndScriptStateAnyAttributeAttributeSetterCal lback(const v8::FunctionCallbackInfo<v8::Value>& info) 2413 static void callWithExecutionContextAndScriptStateAnyAttributeAttributeSetterCal lback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallb ackInfo<void>& info)
2478 { 2414 {
2479 v8::Local<v8::Value> v8Value = info[0];
2480 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2415 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2481 TestObjectV8Internal::callWithExecutionContextAndScriptStateAnyAttributeAttr ibuteSetter(v8Value, info); 2416 TestObjectV8Internal::callWithExecutionContextAndScriptStateAnyAttributeAttr ibuteSetter(v8Value, info);
2482 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2417 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2483 } 2418 }
2484 2419
2485 static void checkSecurityForNodeReadonlyDocumentAttributeAttributeGetter(const v 8::FunctionCallbackInfo<v8::Value>& info) 2420 static void checkSecurityForNodeReadonlyDocumentAttributeAttributeGetter(const v 8::PropertyCallbackInfo<v8::Value>& info)
2486 { 2421 {
2487 v8::Local<v8::Object> holder = info.Holder(); 2422 v8::Local<v8::Object> holder = info.Holder();
2488 TestObject* impl = V8TestObject::toImpl(holder); 2423 TestObject* impl = V8TestObject::toImpl(holder);
2489 ExceptionState exceptionState(ExceptionState::GetterContext, "checkSecurityF orNodeReadonlyDocumentAttribute", "TestObject", holder, info.GetIsolate()); 2424 ExceptionState exceptionState(ExceptionState::GetterContext, "checkSecurityF orNodeReadonlyDocumentAttribute", "TestObject", holder, info.GetIsolate());
2490 if (!BindingSecurity::shouldAllowAccessToNode(info.GetIsolate(), impl->check SecurityForNodeReadonlyDocumentAttribute(), exceptionState)) { 2425 if (!BindingSecurity::shouldAllowAccessToNode(info.GetIsolate(), impl->check SecurityForNodeReadonlyDocumentAttribute(), exceptionState)) {
2491 v8SetReturnValueNull(info); 2426 v8SetReturnValueNull(info);
2492 exceptionState.throwIfNeeded(); 2427 exceptionState.throwIfNeeded();
2493 return; 2428 return;
2494 } 2429 }
2495 v8SetReturnValueFast(info, WTF::getPtr(impl->checkSecurityForNodeReadonlyDoc umentAttribute()), impl); 2430 v8SetReturnValueFast(info, WTF::getPtr(impl->checkSecurityForNodeReadonlyDoc umentAttribute()), impl);
2496 } 2431 }
2497 2432
2498 static void checkSecurityForNodeReadonlyDocumentAttributeAttributeGetterCallback (const v8::FunctionCallbackInfo<v8::Value>& info) 2433 static void checkSecurityForNodeReadonlyDocumentAttributeAttributeGetterCallback (v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
2499 { 2434 {
2500 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2435 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2501 TestObjectV8Internal::checkSecurityForNodeReadonlyDocumentAttributeAttribute Getter(info); 2436 TestObjectV8Internal::checkSecurityForNodeReadonlyDocumentAttributeAttribute Getter(info);
2502 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2437 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2503 } 2438 }
2504 2439
2505 #if ENABLE(CONDITION) 2440 #if ENABLE(CONDITION)
2506 static void conditionalLongAttributeAttributeGetter(const v8::FunctionCallbackIn fo<v8::Value>& info) 2441 static void conditionalLongAttributeAttributeGetter(const v8::PropertyCallbackIn fo<v8::Value>& info)
2507 { 2442 {
2508 v8::Local<v8::Object> holder = info.Holder(); 2443 v8::Local<v8::Object> holder = info.Holder();
2509 TestObject* impl = V8TestObject::toImpl(holder); 2444 TestObject* impl = V8TestObject::toImpl(holder);
2510 v8SetReturnValueInt(info, impl->conditionalLongAttribute()); 2445 v8SetReturnValueInt(info, impl->conditionalLongAttribute());
2511 } 2446 }
2512 #endif // ENABLE(CONDITION) 2447 #endif // ENABLE(CONDITION)
2513 2448
2514 #if ENABLE(CONDITION) 2449 #if ENABLE(CONDITION)
2515 static void conditionalLongAttributeAttributeGetterCallback(const v8::FunctionCa llbackInfo<v8::Value>& info) 2450 static void conditionalLongAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
2516 { 2451 {
2517 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2452 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2518 TestObjectV8Internal::conditionalLongAttributeAttributeGetter(info); 2453 TestObjectV8Internal::conditionalLongAttributeAttributeGetter(info);
2519 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2454 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2520 } 2455 }
2521 #endif // ENABLE(CONDITION) 2456 #endif // ENABLE(CONDITION)
2522 2457
2523 #if ENABLE(CONDITION) 2458 #if ENABLE(CONDITION)
2524 static void conditionalLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value , const v8::FunctionCallbackInfo<v8::Value>& info) 2459 static void conditionalLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value , const v8::PropertyCallbackInfo<void>& info)
2525 { 2460 {
2526 v8::Local<v8::Object> holder = info.Holder(); 2461 v8::Local<v8::Object> holder = info.Holder();
2527 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalLon gAttribute", "TestObject", holder, info.GetIsolate()); 2462 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalLon gAttribute", "TestObject", holder, info.GetIsolate());
2528 TestObject* impl = V8TestObject::toImpl(holder); 2463 TestObject* impl = V8TestObject::toImpl(holder);
2529 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 2464 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
2530 if (exceptionState.throwIfNeeded()) 2465 if (exceptionState.throwIfNeeded())
2531 return; 2466 return;
2532 impl->setConditionalLongAttribute(cppValue); 2467 impl->setConditionalLongAttribute(cppValue);
2533 } 2468 }
2534 #endif // ENABLE(CONDITION) 2469 #endif // ENABLE(CONDITION)
2535 2470
2536 #if ENABLE(CONDITION) 2471 #if ENABLE(CONDITION)
2537 static void conditionalLongAttributeAttributeSetterCallback(const v8::FunctionCa llbackInfo<v8::Value>& info) 2472 static void conditionalLongAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2538 { 2473 {
2539 v8::Local<v8::Value> v8Value = info[0];
2540 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2474 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2541 TestObjectV8Internal::conditionalLongAttributeAttributeSetter(v8Value, info) ; 2475 TestObjectV8Internal::conditionalLongAttributeAttributeSetter(v8Value, info) ;
2542 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2476 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2543 } 2477 }
2544 #endif // ENABLE(CONDITION) 2478 #endif // ENABLE(CONDITION)
2545 2479
2546 static void testInterfaceEmptyConstructorAttributeAttributeSetter(v8::Local<v8:: Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2480 static void testInterfaceEmptyConstructorAttributeAttributeSetter(v8::Local<v8:: Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2547 { 2481 {
2548 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "test InterfaceEmptyConstructorAttribute"); 2482 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "test InterfaceEmptyConstructorAttribute");
2549 TestObjectForceSetAttributeOnThis(propertyName, v8Value, info); 2483 TestObjectForceSetAttributeOnThis(propertyName, v8Value, info);
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
2662 2596
2663 #if ENABLE(CONDITION) 2597 #if ENABLE(CONDITION)
2664 static void customLongAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2598 static void customLongAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2665 { 2599 {
2666 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2600 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2667 V8TestObject::customLongAttributeAttributeSetterCustom(v8Value, info); 2601 V8TestObject::customLongAttributeAttributeSetterCustom(v8Value, info);
2668 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2602 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2669 } 2603 }
2670 #endif // ENABLE(CONDITION) 2604 #endif // ENABLE(CONDITION)
2671 2605
2672 static void customElementsCallbacksReadonlyLongAttributeAttributeGetter(const v8 ::FunctionCallbackInfo<v8::Value>& info) 2606 static void customElementsCallbacksReadonlyLongAttributeAttributeGetter(const v8 ::PropertyCallbackInfo<v8::Value>& info)
2673 { 2607 {
2674 v8::Local<v8::Object> holder = info.Holder(); 2608 v8::Local<v8::Object> holder = info.Holder();
2675 TestObject* impl = V8TestObject::toImpl(holder); 2609 TestObject* impl = V8TestObject::toImpl(holder);
2676 v8SetReturnValueInt(info, impl->customElementsCallbacksReadonlyLongAttribute ()); 2610 v8SetReturnValueInt(info, impl->customElementsCallbacksReadonlyLongAttribute ());
2677 } 2611 }
2678 2612
2679 static void customElementsCallbacksReadonlyLongAttributeAttributeGetterCallback( const v8::FunctionCallbackInfo<v8::Value>& info) 2613 static void customElementsCallbacksReadonlyLongAttributeAttributeGetterCallback( v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
2680 { 2614 {
2681 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2615 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2682 TestObjectV8Internal::customElementsCallbacksReadonlyLongAttributeAttributeG etter(info); 2616 TestObjectV8Internal::customElementsCallbacksReadonlyLongAttributeAttributeG etter(info);
2683 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2617 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2684 } 2618 }
2685 2619
2686 static void deprecatedLongAttributeAttributeGetter(const v8::FunctionCallbackInf o<v8::Value>& info) 2620 static void deprecatedLongAttributeAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info)
2687 { 2621 {
2688 v8::Local<v8::Object> holder = info.Holder(); 2622 v8::Local<v8::Object> holder = info.Holder();
2689 TestObject* impl = V8TestObject::toImpl(holder); 2623 TestObject* impl = V8TestObject::toImpl(holder);
2690 v8SetReturnValueInt(info, impl->deprecatedLongAttribute()); 2624 v8SetReturnValueInt(info, impl->deprecatedLongAttribute());
2691 } 2625 }
2692 2626
2693 static void deprecatedLongAttributeAttributeGetterCallback(const v8::FunctionCal lbackInfo<v8::Value>& info) 2627 static void deprecatedLongAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
2694 { 2628 {
2695 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2629 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2696 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe cutionContext(info.GetIsolate()), UseCounter::LongAttribute); 2630 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe cutionContext(info.GetIsolate()), UseCounter::LongAttribute);
2697 TestObjectV8Internal::deprecatedLongAttributeAttributeGetter(info); 2631 TestObjectV8Internal::deprecatedLongAttributeAttributeGetter(info);
2698 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2632 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2699 } 2633 }
2700 2634
2701 static void deprecatedLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 2635 static void deprecatedLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2702 { 2636 {
2703 v8::Local<v8::Object> holder = info.Holder(); 2637 v8::Local<v8::Object> holder = info.Holder();
2704 ExceptionState exceptionState(ExceptionState::SetterContext, "deprecatedLong Attribute", "TestObject", holder, info.GetIsolate()); 2638 ExceptionState exceptionState(ExceptionState::SetterContext, "deprecatedLong Attribute", "TestObject", holder, info.GetIsolate());
2705 TestObject* impl = V8TestObject::toImpl(holder); 2639 TestObject* impl = V8TestObject::toImpl(holder);
2706 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 2640 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
2707 if (exceptionState.throwIfNeeded()) 2641 if (exceptionState.throwIfNeeded())
2708 return; 2642 return;
2709 impl->setDeprecatedLongAttribute(cppValue); 2643 impl->setDeprecatedLongAttribute(cppValue);
2710 } 2644 }
2711 2645
2712 static void deprecatedLongAttributeAttributeSetterCallback(const v8::FunctionCal lbackInfo<v8::Value>& info) 2646 static void deprecatedLongAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2713 { 2647 {
2714 v8::Local<v8::Value> v8Value = info[0];
2715 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2648 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2716 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe cutionContext(info.GetIsolate()), UseCounter::LongAttribute); 2649 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe cutionContext(info.GetIsolate()), UseCounter::LongAttribute);
2717 TestObjectV8Internal::deprecatedLongAttributeAttributeSetter(v8Value, info); 2650 TestObjectV8Internal::deprecatedLongAttributeAttributeSetter(v8Value, info);
2718 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2651 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2719 } 2652 }
2720 2653
2721 static void enforceRangeLongAttributeAttributeGetter(const v8::FunctionCallbackI nfo<v8::Value>& info) 2654 static void enforceRangeLongAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info)
2722 { 2655 {
2723 v8::Local<v8::Object> holder = info.Holder(); 2656 v8::Local<v8::Object> holder = info.Holder();
2724 TestObject* impl = V8TestObject::toImpl(holder); 2657 TestObject* impl = V8TestObject::toImpl(holder);
2725 v8SetReturnValueInt(info, impl->enforceRangeLongAttribute()); 2658 v8SetReturnValueInt(info, impl->enforceRangeLongAttribute());
2726 } 2659 }
2727 2660
2728 static void enforceRangeLongAttributeAttributeGetterCallback(const v8::FunctionC allbackInfo<v8::Value>& info) 2661 static void enforceRangeLongAttributeAttributeGetterCallback(v8::Local<v8::Name> , const v8::PropertyCallbackInfo<v8::Value>& info)
2729 { 2662 {
2730 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2663 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2731 TestObjectV8Internal::enforceRangeLongAttributeAttributeGetter(info); 2664 TestObjectV8Internal::enforceRangeLongAttributeAttributeGetter(info);
2732 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2665 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2733 } 2666 }
2734 2667
2735 static void enforceRangeLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::FunctionCallbackInfo<v8::Value>& info) 2668 static void enforceRangeLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::PropertyCallbackInfo<void>& info)
2736 { 2669 {
2737 v8::Local<v8::Object> holder = info.Holder(); 2670 v8::Local<v8::Object> holder = info.Holder();
2738 ExceptionState exceptionState(ExceptionState::SetterContext, "enforceRangeLo ngAttribute", "TestObject", holder, info.GetIsolate()); 2671 ExceptionState exceptionState(ExceptionState::SetterContext, "enforceRangeLo ngAttribute", "TestObject", holder, info.GetIsolate());
2739 TestObject* impl = V8TestObject::toImpl(holder); 2672 TestObject* impl = V8TestObject::toImpl(holder);
2740 int cppValue = toInt32(info.GetIsolate(), v8Value, EnforceRange, exceptionSt ate); 2673 int cppValue = toInt32(info.GetIsolate(), v8Value, EnforceRange, exceptionSt ate);
2741 if (exceptionState.throwIfNeeded()) 2674 if (exceptionState.throwIfNeeded())
2742 return; 2675 return;
2743 impl->setEnforceRangeLongAttribute(cppValue); 2676 impl->setEnforceRangeLongAttribute(cppValue);
2744 } 2677 }
2745 2678
2746 static void enforceRangeLongAttributeAttributeSetterCallback(const v8::FunctionC allbackInfo<v8::Value>& info) 2679 static void enforceRangeLongAttributeAttributeSetterCallback(v8::Local<v8::Name> , v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2747 { 2680 {
2748 v8::Local<v8::Value> v8Value = info[0];
2749 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2681 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2750 TestObjectV8Internal::enforceRangeLongAttributeAttributeSetter(v8Value, info ); 2682 TestObjectV8Internal::enforceRangeLongAttributeAttributeSetter(v8Value, info );
2751 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2683 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2752 } 2684 }
2753 2685
2754 static void exposeJSAccessorsLongAttributeAttributeGetter(const v8::FunctionCall backInfo<v8::Value>& info) 2686 static void exposeJSAccessorsLongAttributeAttributeGetter(const v8::FunctionCall backInfo<v8::Value>& info)
2755 { 2687 {
2756 v8::Local<v8::Object> holder = info.Holder(); 2688 v8::Local<v8::Object> holder = info.Holder();
2757 TestObject* impl = V8TestObject::toImpl(holder); 2689 TestObject* impl = V8TestObject::toImpl(holder);
2758 v8SetReturnValueInt(info, impl->exposeJSAccessorsLongAttribute()); 2690 v8SetReturnValueInt(info, impl->exposeJSAccessorsLongAttribute());
(...skipping 18 matching lines...) Expand all
2777 } 2709 }
2778 2710
2779 static void exposeJSAccessorsLongAttributeAttributeSetterCallback(const v8::Func tionCallbackInfo<v8::Value>& info) 2711 static void exposeJSAccessorsLongAttributeAttributeSetterCallback(const v8::Func tionCallbackInfo<v8::Value>& info)
2780 { 2712 {
2781 v8::Local<v8::Value> v8Value = info[0]; 2713 v8::Local<v8::Value> v8Value = info[0];
2782 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2714 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2783 TestObjectV8Internal::exposeJSAccessorsLongAttributeAttributeSetter(v8Value, info); 2715 TestObjectV8Internal::exposeJSAccessorsLongAttributeAttributeSetter(v8Value, info);
2784 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2716 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2785 } 2717 }
2786 2718
2787 static void implementedAsLongAttributeAttributeGetter(const v8::FunctionCallback Info<v8::Value>& info) 2719 static void implementedAsLongAttributeAttributeGetter(const v8::PropertyCallback Info<v8::Value>& info)
2788 { 2720 {
2789 v8::Local<v8::Object> holder = info.Holder(); 2721 v8::Local<v8::Object> holder = info.Holder();
2790 TestObject* impl = V8TestObject::toImpl(holder); 2722 TestObject* impl = V8TestObject::toImpl(holder);
2791 v8SetReturnValueInt(info, impl->implementedAsName()); 2723 v8SetReturnValueInt(info, impl->implementedAsName());
2792 } 2724 }
2793 2725
2794 static void implementedAsLongAttributeAttributeGetterCallback(const v8::Function CallbackInfo<v8::Value>& info) 2726 static void implementedAsLongAttributeAttributeGetterCallback(v8::Local<v8::Name >, const v8::PropertyCallbackInfo<v8::Value>& info)
2795 { 2727 {
2796 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2728 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2797 TestObjectV8Internal::implementedAsLongAttributeAttributeGetter(info); 2729 TestObjectV8Internal::implementedAsLongAttributeAttributeGetter(info);
2798 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2730 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2799 } 2731 }
2800 2732
2801 static void implementedAsLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val ue, const v8::FunctionCallbackInfo<v8::Value>& info) 2733 static void implementedAsLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val ue, const v8::PropertyCallbackInfo<void>& info)
2802 { 2734 {
2803 v8::Local<v8::Object> holder = info.Holder(); 2735 v8::Local<v8::Object> holder = info.Holder();
2804 ExceptionState exceptionState(ExceptionState::SetterContext, "implementedAsL ongAttribute", "TestObject", holder, info.GetIsolate()); 2736 ExceptionState exceptionState(ExceptionState::SetterContext, "implementedAsL ongAttribute", "TestObject", holder, info.GetIsolate());
2805 TestObject* impl = V8TestObject::toImpl(holder); 2737 TestObject* impl = V8TestObject::toImpl(holder);
2806 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 2738 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
2807 if (exceptionState.throwIfNeeded()) 2739 if (exceptionState.throwIfNeeded())
2808 return; 2740 return;
2809 impl->setImplementedAsName(cppValue); 2741 impl->setImplementedAsName(cppValue);
2810 } 2742 }
2811 2743
2812 static void implementedAsLongAttributeAttributeSetterCallback(const v8::Function CallbackInfo<v8::Value>& info) 2744 static void implementedAsLongAttributeAttributeSetterCallback(v8::Local<v8::Name >, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2813 { 2745 {
2814 v8::Local<v8::Value> v8Value = info[0];
2815 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2746 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2816 TestObjectV8Internal::implementedAsLongAttributeAttributeSetter(v8Value, inf o); 2747 TestObjectV8Internal::implementedAsLongAttributeAttributeSetter(v8Value, inf o);
2817 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2748 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2818 } 2749 }
2819 2750
2820 static void customImplementedAsLongAttributeAttributeGetterCallback(v8::Local<v8 ::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) 2751 static void customImplementedAsLongAttributeAttributeGetterCallback(v8::Local<v8 ::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
2821 { 2752 {
2822 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2753 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2823 V8TestObject::customImplementedAsLongAttributeAttributeGetterCustom(info); 2754 V8TestObject::customImplementedAsLongAttributeAttributeGetterCustom(info);
2824 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2755 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
2870 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2801 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2871 } 2802 }
2872 2803
2873 static void customSetterImplementedAsLongAttributeAttributeSetterCallback(v8::Lo cal<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info) 2804 static void customSetterImplementedAsLongAttributeAttributeSetterCallback(v8::Lo cal<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info)
2874 { 2805 {
2875 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2806 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2876 V8TestObject::customSetterImplementedAsLongAttributeAttributeSetterCustom(v8 Value, info); 2807 V8TestObject::customSetterImplementedAsLongAttributeAttributeSetterCustom(v8 Value, info);
2877 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2808 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2878 } 2809 }
2879 2810
2880 static void measureAsLongAttributeAttributeGetter(const v8::FunctionCallbackInfo <v8::Value>& info) 2811 static void measureAsLongAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info)
2881 { 2812 {
2882 v8::Local<v8::Object> holder = info.Holder(); 2813 v8::Local<v8::Object> holder = info.Holder();
2883 TestObject* impl = V8TestObject::toImpl(holder); 2814 TestObject* impl = V8TestObject::toImpl(holder);
2884 v8SetReturnValueInt(info, impl->measureAsLongAttribute()); 2815 v8SetReturnValueInt(info, impl->measureAsLongAttribute());
2885 } 2816 }
2886 2817
2887 static void measureAsLongAttributeAttributeGetterCallback(const v8::FunctionCall backInfo<v8::Value>& info) 2818 static void measureAsLongAttributeAttributeGetterCallback(v8::Local<v8::Name>, c onst v8::PropertyCallbackInfo<v8::Value>& info)
2888 { 2819 {
2889 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2820 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2890 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::TestFeature); 2821 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::TestFeature);
2891 TestObjectV8Internal::measureAsLongAttributeAttributeGetter(info); 2822 TestObjectV8Internal::measureAsLongAttributeAttributeGetter(info);
2892 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2823 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2893 } 2824 }
2894 2825
2895 static void measureAsLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 2826 static void measureAsLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2896 { 2827 {
2897 v8::Local<v8::Object> holder = info.Holder(); 2828 v8::Local<v8::Object> holder = info.Holder();
2898 ExceptionState exceptionState(ExceptionState::SetterContext, "measureAsLongA ttribute", "TestObject", holder, info.GetIsolate()); 2829 ExceptionState exceptionState(ExceptionState::SetterContext, "measureAsLongA ttribute", "TestObject", holder, info.GetIsolate());
2899 TestObject* impl = V8TestObject::toImpl(holder); 2830 TestObject* impl = V8TestObject::toImpl(holder);
2900 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 2831 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
2901 if (exceptionState.throwIfNeeded()) 2832 if (exceptionState.throwIfNeeded())
2902 return; 2833 return;
2903 impl->setMeasureAsLongAttribute(cppValue); 2834 impl->setMeasureAsLongAttribute(cppValue);
2904 } 2835 }
2905 2836
2906 static void measureAsLongAttributeAttributeSetterCallback(const v8::FunctionCall backInfo<v8::Value>& info) 2837 static void measureAsLongAttributeAttributeSetterCallback(v8::Local<v8::Name>, v 8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2907 { 2838 {
2908 v8::Local<v8::Value> v8Value = info[0];
2909 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2839 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2910 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::TestFeature); 2840 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::TestFeature);
2911 TestObjectV8Internal::measureAsLongAttributeAttributeSetter(v8Value, info); 2841 TestObjectV8Internal::measureAsLongAttributeAttributeSetter(v8Value, info);
2912 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2842 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2913 } 2843 }
2914 2844
2915 static void notEnumerableLongAttributeAttributeGetter(const v8::FunctionCallback Info<v8::Value>& info) 2845 static void notEnumerableLongAttributeAttributeGetter(const v8::PropertyCallback Info<v8::Value>& info)
2916 { 2846 {
2917 v8::Local<v8::Object> holder = info.Holder(); 2847 v8::Local<v8::Object> holder = info.Holder();
2918 TestObject* impl = V8TestObject::toImpl(holder); 2848 TestObject* impl = V8TestObject::toImpl(holder);
2919 v8SetReturnValueInt(info, impl->notEnumerableLongAttribute()); 2849 v8SetReturnValueInt(info, impl->notEnumerableLongAttribute());
2920 } 2850 }
2921 2851
2922 static void notEnumerableLongAttributeAttributeGetterCallback(const v8::Function CallbackInfo<v8::Value>& info) 2852 static void notEnumerableLongAttributeAttributeGetterCallback(v8::Local<v8::Name >, const v8::PropertyCallbackInfo<v8::Value>& info)
2923 { 2853 {
2924 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2854 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2925 TestObjectV8Internal::notEnumerableLongAttributeAttributeGetter(info); 2855 TestObjectV8Internal::notEnumerableLongAttributeAttributeGetter(info);
2926 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2856 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2927 } 2857 }
2928 2858
2929 static void notEnumerableLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val ue, const v8::FunctionCallbackInfo<v8::Value>& info) 2859 static void notEnumerableLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val ue, const v8::PropertyCallbackInfo<void>& info)
2930 { 2860 {
2931 v8::Local<v8::Object> holder = info.Holder(); 2861 v8::Local<v8::Object> holder = info.Holder();
2932 ExceptionState exceptionState(ExceptionState::SetterContext, "notEnumerableL ongAttribute", "TestObject", holder, info.GetIsolate()); 2862 ExceptionState exceptionState(ExceptionState::SetterContext, "notEnumerableL ongAttribute", "TestObject", holder, info.GetIsolate());
2933 TestObject* impl = V8TestObject::toImpl(holder); 2863 TestObject* impl = V8TestObject::toImpl(holder);
2934 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 2864 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
2935 if (exceptionState.throwIfNeeded()) 2865 if (exceptionState.throwIfNeeded())
2936 return; 2866 return;
2937 impl->setNotEnumerableLongAttribute(cppValue); 2867 impl->setNotEnumerableLongAttribute(cppValue);
2938 } 2868 }
2939 2869
2940 static void notEnumerableLongAttributeAttributeSetterCallback(const v8::Function CallbackInfo<v8::Value>& info) 2870 static void notEnumerableLongAttributeAttributeSetterCallback(v8::Local<v8::Name >, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2941 { 2871 {
2942 v8::Local<v8::Value> v8Value = info[0];
2943 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2872 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2944 TestObjectV8Internal::notEnumerableLongAttributeAttributeSetter(v8Value, inf o); 2873 TestObjectV8Internal::notEnumerableLongAttributeAttributeSetter(v8Value, inf o);
2945 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2874 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2946 } 2875 }
2947 2876
2948 static void perContextEnabledLongAttributeAttributeGetter(const v8::FunctionCall backInfo<v8::Value>& info) 2877 static void perContextEnabledLongAttributeAttributeGetter(const v8::PropertyCall backInfo<v8::Value>& info)
2949 { 2878 {
2950 v8::Local<v8::Object> holder = info.Holder(); 2879 v8::Local<v8::Object> holder = info.Holder();
2951 TestObject* impl = V8TestObject::toImpl(holder); 2880 TestObject* impl = V8TestObject::toImpl(holder);
2952 v8SetReturnValueInt(info, impl->perContextEnabledLongAttribute()); 2881 v8SetReturnValueInt(info, impl->perContextEnabledLongAttribute());
2953 } 2882 }
2954 2883
2955 static void perContextEnabledLongAttributeAttributeGetterCallback(const v8::Func tionCallbackInfo<v8::Value>& info) 2884 static void perContextEnabledLongAttributeAttributeGetterCallback(v8::Local<v8:: Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
2956 { 2885 {
2957 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2886 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2958 TestObjectV8Internal::perContextEnabledLongAttributeAttributeGetter(info); 2887 TestObjectV8Internal::perContextEnabledLongAttributeAttributeGetter(info);
2959 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2888 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2960 } 2889 }
2961 2890
2962 static void perContextEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> v 8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 2891 static void perContextEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> v 8Value, const v8::PropertyCallbackInfo<void>& info)
2963 { 2892 {
2964 v8::Local<v8::Object> holder = info.Holder(); 2893 v8::Local<v8::Object> holder = info.Holder();
2965 ExceptionState exceptionState(ExceptionState::SetterContext, "perContextEnab ledLongAttribute", "TestObject", holder, info.GetIsolate()); 2894 ExceptionState exceptionState(ExceptionState::SetterContext, "perContextEnab ledLongAttribute", "TestObject", holder, info.GetIsolate());
2966 TestObject* impl = V8TestObject::toImpl(holder); 2895 TestObject* impl = V8TestObject::toImpl(holder);
2967 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 2896 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
2968 if (exceptionState.throwIfNeeded()) 2897 if (exceptionState.throwIfNeeded())
2969 return; 2898 return;
2970 impl->setPerContextEnabledLongAttribute(cppValue); 2899 impl->setPerContextEnabledLongAttribute(cppValue);
2971 } 2900 }
2972 2901
2973 static void perContextEnabledLongAttributeAttributeSetterCallback(const v8::Func tionCallbackInfo<v8::Value>& info) 2902 static void perContextEnabledLongAttributeAttributeSetterCallback(v8::Local<v8:: Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2974 { 2903 {
2975 v8::Local<v8::Value> v8Value = info[0];
2976 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2904 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2977 TestObjectV8Internal::perContextEnabledLongAttributeAttributeSetter(v8Value, info); 2905 TestObjectV8Internal::perContextEnabledLongAttributeAttributeSetter(v8Value, info);
2978 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2906 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2979 } 2907 }
2980 2908
2981 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetter(c onst v8::FunctionCallbackInfo<v8::Value>& info) 2909 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetter(c onst v8::PropertyCallbackInfo<v8::Value>& info)
2982 { 2910 {
2983 v8::Local<v8::Object> holder = info.Holder(); 2911 v8::Local<v8::Object> holder = info.Holder();
2984 TestObject* impl = V8TestObject::toImpl(holder); 2912 TestObject* impl = V8TestObject::toImpl(holder);
2985 RefPtr<TestInterfaceEmpty> cppValue(impl->perWorldBindingsReadonlyTestInterf aceEmptyAttribute()); 2913 RefPtr<TestInterfaceEmpty> cppValue(impl->perWorldBindingsReadonlyTestInterf aceEmptyAttribute());
2986 if (cppValue && DOMDataStore::setReturnValue(info.GetReturnValue(), cppValue .get())) 2914 if (cppValue && DOMDataStore::setReturnValue(info.GetReturnValue(), cppValue .get()))
2987 return; 2915 return;
2988 v8::Local<v8::Value> v8Value(toV8(cppValue.get(), holder, info.GetIsolate()) ); 2916 v8::Local<v8::Value> v8Value(toV8(cppValue.get(), holder, info.GetIsolate()) );
2989 if (!v8Value.IsEmpty()) { 2917 if (!v8Value.IsEmpty()) {
2990 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString( info.GetIsolate(), "perWorldBindingsReadonlyTestInterfaceEmptyAttribute"), v8Val ue); 2918 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString( info.GetIsolate(), "perWorldBindingsReadonlyTestInterfaceEmptyAttribute"), v8Val ue);
2991 v8SetReturnValue(info, v8Value); 2919 v8SetReturnValue(info, v8Value);
2992 } 2920 }
2993 } 2921 }
2994 2922
2995 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCa llback(const v8::FunctionCallbackInfo<v8::Value>& info) 2923 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCa llback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
2996 { 2924 {
2997 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2925 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2998 TestObjectV8Internal::perWorldBindingsReadonlyTestInterfaceEmptyAttributeAtt ributeGetter(info); 2926 TestObjectV8Internal::perWorldBindingsReadonlyTestInterfaceEmptyAttributeAtt ributeGetter(info);
2999 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2927 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3000 } 2928 }
3001 2929
3002 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterFo rMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) 2930 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterFo rMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info)
3003 { 2931 {
3004 v8::Local<v8::Object> holder = info.Holder(); 2932 v8::Local<v8::Object> holder = info.Holder();
3005 TestObject* impl = V8TestObject::toImpl(holder); 2933 TestObject* impl = V8TestObject::toImpl(holder);
3006 RefPtr<TestInterfaceEmpty> cppValue(impl->perWorldBindingsReadonlyTestInterf aceEmptyAttribute()); 2934 RefPtr<TestInterfaceEmpty> cppValue(impl->perWorldBindingsReadonlyTestInterf aceEmptyAttribute());
3007 if (cppValue && DOMDataStore::setReturnValueForMainWorld(info.GetReturnValue (), cppValue.get())) 2935 if (cppValue && DOMDataStore::setReturnValueForMainWorld(info.GetReturnValue (), cppValue.get()))
3008 return; 2936 return;
3009 v8::Local<v8::Value> v8Value(toV8(cppValue.get(), holder, info.GetIsolate()) ); 2937 v8::Local<v8::Value> v8Value(toV8(cppValue.get(), holder, info.GetIsolate()) );
3010 if (!v8Value.IsEmpty()) { 2938 if (!v8Value.IsEmpty()) {
3011 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString( info.GetIsolate(), "perWorldBindingsReadonlyTestInterfaceEmptyAttribute"), v8Val ue); 2939 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString( info.GetIsolate(), "perWorldBindingsReadonlyTestInterfaceEmptyAttribute"), v8Val ue);
3012 v8SetReturnValue(info, v8Value); 2940 v8SetReturnValue(info, v8Value);
3013 } 2941 }
3014 } 2942 }
3015 2943
3016 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCa llbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) 2944 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCa llbackForMainWorld(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value >& info)
3017 { 2945 {
3018 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2946 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3019 TestObjectV8Internal::perWorldBindingsReadonlyTestInterfaceEmptyAttributeAtt ributeGetterForMainWorld(info); 2947 TestObjectV8Internal::perWorldBindingsReadonlyTestInterfaceEmptyAttributeAtt ributeGetterForMainWorld(info);
3020 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2948 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3021 } 2949 }
3022 2950
3023 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetter(co nst v8::FunctionCallbackInfo<v8::Value>& info) 2951 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetter(co nst v8::PropertyCallbackInfo<v8::Value>& info)
3024 { 2952 {
3025 v8::Local<v8::Object> holder = info.Holder(); 2953 v8::Local<v8::Object> holder = info.Holder();
3026 TestObject* impl = V8TestObject::toImpl(holder); 2954 TestObject* impl = V8TestObject::toImpl(holder);
3027 v8SetReturnValueInt(info, impl->activityLoggingAccessPerWorldBindingsLongAtt ribute()); 2955 v8SetReturnValueInt(info, impl->activityLoggingAccessPerWorldBindingsLongAtt ribute());
3028 } 2956 }
3029 2957
3030 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCal lback(const v8::FunctionCallbackInfo<v8::Value>& info) 2958 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCal lback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
3031 { 2959 {
3032 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2960 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3033 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 2961 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
3034 V8PerContextData* contextData = scriptState->perContextData(); 2962 V8PerContextData* contextData = scriptState->perContextData();
3035 if (contextData && contextData->activityLogger()) 2963 if (contextData && contextData->activityLogger())
3036 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssPerWorldBindingsLongAttribute"); 2964 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssPerWorldBindingsLongAttribute");
3037 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteGetter(info); 2965 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteGetter(info);
3038 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2966 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3039 } 2967 }
3040 2968
3041 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 2969 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3042 { 2970 {
3043 v8::Local<v8::Object> holder = info.Holder(); 2971 v8::Local<v8::Object> holder = info.Holder();
3044 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); 2972 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate());
3045 TestObject* impl = V8TestObject::toImpl(holder); 2973 TestObject* impl = V8TestObject::toImpl(holder);
3046 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 2974 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
3047 if (exceptionState.throwIfNeeded()) 2975 if (exceptionState.throwIfNeeded())
3048 return; 2976 return;
3049 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); 2977 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue);
3050 } 2978 }
3051 2979
3052 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal lback(const v8::FunctionCallbackInfo<v8::Value>& info) 2980 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal lback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallb ackInfo<void>& info)
3053 { 2981 {
3054 v8::Local<v8::Value> v8Value = info[0];
3055 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2982 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3056 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 2983 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
3057 V8PerContextData* contextData = scriptState->perContextData(); 2984 V8PerContextData* contextData = scriptState->perContextData();
3058 if (contextData && contextData->activityLogger()) { 2985 if (contextData && contextData->activityLogger()) {
3059 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce ssPerWorldBindingsLongAttribute", v8Value); 2986 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce ssPerWorldBindingsLongAttribute", v8Value);
3060 } 2987 }
3061 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteSetter(v8Value, info); 2988 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteSetter(v8Value, info);
3062 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2989 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3063 } 2990 }
3064 2991
3065 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterFor MainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) 2992 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterFor MainWorld(const v8::PropertyCallbackInfo<v8::Value>& info)
3066 { 2993 {
3067 v8::Local<v8::Object> holder = info.Holder(); 2994 v8::Local<v8::Object> holder = info.Holder();
3068 TestObject* impl = V8TestObject::toImpl(holder); 2995 TestObject* impl = V8TestObject::toImpl(holder);
3069 v8SetReturnValueInt(info, impl->activityLoggingAccessPerWorldBindingsLongAtt ribute()); 2996 v8SetReturnValueInt(info, impl->activityLoggingAccessPerWorldBindingsLongAtt ribute());
3070 } 2997 }
3071 2998
3072 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCal lbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) 2999 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCal lbackForMainWorld(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value> & info)
3073 { 3000 {
3074 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3001 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3075 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 3002 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
3076 V8PerContextData* contextData = scriptState->perContextData(); 3003 V8PerContextData* contextData = scriptState->perContextData();
3077 if (contextData && contextData->activityLogger()) 3004 if (contextData && contextData->activityLogger())
3078 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssPerWorldBindingsLongAttribute"); 3005 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssPerWorldBindingsLongAttribute");
3079 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteGetterForMainWorld(info); 3006 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteGetterForMainWorld(info);
3080 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3007 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3081 } 3008 }
3082 3009
3083 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterFor MainWorld(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value >& info) 3010 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterFor MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo)
3084 { 3011 {
3085 v8::Local<v8::Object> holder = info.Holder(); 3012 v8::Local<v8::Object> holder = info.Holder();
3086 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); 3013 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate());
3087 TestObject* impl = V8TestObject::toImpl(holder); 3014 TestObject* impl = V8TestObject::toImpl(holder);
3088 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 3015 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
3089 if (exceptionState.throwIfNeeded()) 3016 if (exceptionState.throwIfNeeded())
3090 return; 3017 return;
3091 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); 3018 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue);
3092 } 3019 }
3093 3020
3094 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal lbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) 3021 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal lbackForMainWorld(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::P ropertyCallbackInfo<void>& info)
3095 { 3022 {
3096 v8::Local<v8::Value> v8Value = info[0];
3097 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3023 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3098 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 3024 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
3099 V8PerContextData* contextData = scriptState->perContextData(); 3025 V8PerContextData* contextData = scriptState->perContextData();
3100 if (contextData && contextData->activityLogger()) { 3026 if (contextData && contextData->activityLogger()) {
3101 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce ssPerWorldBindingsLongAttribute", v8Value); 3027 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce ssPerWorldBindingsLongAttribute", v8Value);
3102 } 3028 }
3103 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteSetterForMainWorld(v8Value, info); 3029 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteSetterForMainWorld(v8Value, info);
3104 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3030 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3105 } 3031 }
3106 3032
3107 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) 3033 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
3108 { 3034 {
3109 v8::Local<v8::Object> holder = info.Holder(); 3035 v8::Local<v8::Object> holder = info.Holder();
3110 TestObject* impl = V8TestObject::toImpl(holder); 3036 TestObject* impl = V8TestObject::toImpl(holder);
3111 v8SetReturnValueInt(info, impl->activityLoggingAccessForIsolatedWorldsPerWor ldBindingsLongAttribute()); 3037 v8SetReturnValueInt(info, impl->activityLoggingAccessForIsolatedWorldsPerWor ldBindingsLongAttribute());
3112 } 3038 }
3113 3039
3114 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 3040 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterCallback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::V alue>& info)
3115 { 3041 {
3116 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3042 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3117 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 3043 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
3118 V8PerContextData* contextData = scriptState->perContextData(); 3044 V8PerContextData* contextData = scriptState->perContextData();
3119 if (contextData && contextData->activityLogger()) 3045 if (contextData && contextData->activityLogger())
3120 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssForIsolatedWorldsPerWorldBindingsLongAttribute"); 3046 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssForIsolatedWorldsPerWorldBindingsLongAttribute");
3121 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetter(info); 3047 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetter(info);
3122 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3048 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3123 } 3049 }
3124 3050
3125 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8:: Value>& info) 3051 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info)
3126 { 3052 {
3127 v8::Local<v8::Object> holder = info.Holder(); 3053 v8::Local<v8::Object> holder = info.Holder();
3128 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate()); 3054 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate());
3129 TestObject* impl = V8TestObject::toImpl(holder); 3055 TestObject* impl = V8TestObject::toImpl(holder);
3130 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 3056 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
3131 if (exceptionState.throwIfNeeded()) 3057 if (exceptionState.throwIfNeeded())
3132 return; 3058 return;
3133 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue); 3059 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue);
3134 } 3060 }
3135 3061
3136 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 3062 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3137 { 3063 {
3138 v8::Local<v8::Value> v8Value = info[0];
3139 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3064 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3140 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 3065 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
3141 V8PerContextData* contextData = scriptState->perContextData(); 3066 V8PerContextData* contextData = scriptState->perContextData();
3142 if (contextData && contextData->activityLogger()) { 3067 if (contextData && contextData->activityLogger()) {
3143 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce ssForIsolatedWorldsPerWorldBindingsLongAttribute", v8Value); 3068 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce ssForIsolatedWorldsPerWorldBindingsLongAttribute", v8Value);
3144 } 3069 }
3145 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings LongAttributeAttributeSetter(v8Value, info); 3070 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings LongAttributeAttributeSetter(v8Value, info);
3146 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3071 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3147 } 3072 }
3148 3073
3149 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) 3074 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterForMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info)
3150 { 3075 {
3151 v8::Local<v8::Object> holder = info.Holder(); 3076 v8::Local<v8::Object> holder = info.Holder();
3152 TestObject* impl = V8TestObject::toImpl(holder); 3077 TestObject* impl = V8TestObject::toImpl(holder);
3153 v8SetReturnValueInt(info, impl->activityLoggingAccessForIsolatedWorldsPerWor ldBindingsLongAttribute()); 3078 v8SetReturnValueInt(info, impl->activityLoggingAccessForIsolatedWorldsPerWor ldBindingsLongAttribute());
3154 } 3079 }
3155 3080
3156 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterCallbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& in fo) 3081 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterCallbackForMainWorld(v8::Local<v8::Name>, const v8::PropertyCallba ckInfo<v8::Value>& info)
3157 { 3082 {
3158 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3083 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3159 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetterForMainWorld(info); 3084 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetterForMainWorld(info);
3160 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3085 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3161 } 3086 }
3162 3087
3163 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterForMainWorld(v8::Local<v8::Value> v8Value, const v8::FunctionCallb ackInfo<v8::Value>& info) 3088 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterForMainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallb ackInfo<void>& info)
3164 { 3089 {
3165 v8::Local<v8::Object> holder = info.Holder(); 3090 v8::Local<v8::Object> holder = info.Holder();
3166 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate()); 3091 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate());
3167 TestObject* impl = V8TestObject::toImpl(holder); 3092 TestObject* impl = V8TestObject::toImpl(holder);
3168 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 3093 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
3169 if (exceptionState.throwIfNeeded()) 3094 if (exceptionState.throwIfNeeded())
3170 return; 3095 return;
3171 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue); 3096 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue);
3172 } 3097 }
3173 3098
3174 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& in fo) 3099 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallbackForMainWorld(v8::Local<v8::Name>, v8::Local<v8::Value> v8V alue, const v8::PropertyCallbackInfo<void>& info)
3175 { 3100 {
3176 v8::Local<v8::Value> v8Value = info[0];
3177 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3101 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3178 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings LongAttributeAttributeSetterForMainWorld(v8Value, info); 3102 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings LongAttributeAttributeSetterForMainWorld(v8Value, info);
3179 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3103 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3180 } 3104 }
3181 3105
3182 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetter(co nst v8::FunctionCallbackInfo<v8::Value>& info) 3106 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetter(co nst v8::PropertyCallbackInfo<v8::Value>& info)
3183 { 3107 {
3184 v8::Local<v8::Object> holder = info.Holder(); 3108 v8::Local<v8::Object> holder = info.Holder();
3185 TestObject* impl = V8TestObject::toImpl(holder); 3109 TestObject* impl = V8TestObject::toImpl(holder);
3186 v8SetReturnValueInt(info, impl->activityLoggingGetterPerWorldBindingsLongAtt ribute()); 3110 v8SetReturnValueInt(info, impl->activityLoggingGetterPerWorldBindingsLongAtt ribute());
3187 } 3111 }
3188 3112
3189 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCal lback(const v8::FunctionCallbackInfo<v8::Value>& info) 3113 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCal lback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
3190 { 3114 {
3191 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3115 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3192 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 3116 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
3193 V8PerContextData* contextData = scriptState->perContextData(); 3117 V8PerContextData* contextData = scriptState->perContextData();
3194 if (contextData && contextData->activityLogger()) 3118 if (contextData && contextData->activityLogger())
3195 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erPerWorldBindingsLongAttribute"); 3119 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erPerWorldBindingsLongAttribute");
3196 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteGetter(info); 3120 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteGetter(info);
3197 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3121 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3198 } 3122 }
3199 3123
3200 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 3124 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3201 { 3125 {
3202 v8::Local<v8::Object> holder = info.Holder(); 3126 v8::Local<v8::Object> holder = info.Holder();
3203 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); 3127 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate());
3204 TestObject* impl = V8TestObject::toImpl(holder); 3128 TestObject* impl = V8TestObject::toImpl(holder);
3205 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 3129 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
3206 if (exceptionState.throwIfNeeded()) 3130 if (exceptionState.throwIfNeeded())
3207 return; 3131 return;
3208 impl->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue); 3132 impl->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue);
3209 } 3133 }
3210 3134
3211 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCal lback(const v8::FunctionCallbackInfo<v8::Value>& info) 3135 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCal lback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallb ackInfo<void>& info)
3212 { 3136 {
3213 v8::Local<v8::Value> v8Value = info[0];
3214 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3137 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3215 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteSetter(v8Value, info); 3138 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteSetter(v8Value, info);
3216 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3139 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3217 } 3140 }
3218 3141
3219 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterFor MainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) 3142 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterFor MainWorld(const v8::PropertyCallbackInfo<v8::Value>& info)
3220 { 3143 {
3221 v8::Local<v8::Object> holder = info.Holder(); 3144 v8::Local<v8::Object> holder = info.Holder();
3222 TestObject* impl = V8TestObject::toImpl(holder); 3145 TestObject* impl = V8TestObject::toImpl(holder);
3223 v8SetReturnValueInt(info, impl->activityLoggingGetterPerWorldBindingsLongAtt ribute()); 3146 v8SetReturnValueInt(info, impl->activityLoggingGetterPerWorldBindingsLongAtt ribute());
3224 } 3147 }
3225 3148
3226 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCal lbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) 3149 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCal lbackForMainWorld(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value> & info)
3227 { 3150 {
3228 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3151 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3229 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 3152 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
3230 V8PerContextData* contextData = scriptState->perContextData(); 3153 V8PerContextData* contextData = scriptState->perContextData();
3231 if (contextData && contextData->activityLogger()) 3154 if (contextData && contextData->activityLogger())
3232 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erPerWorldBindingsLongAttribute"); 3155 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erPerWorldBindingsLongAttribute");
3233 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteGetterForMainWorld(info); 3156 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteGetterForMainWorld(info);
3234 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3157 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3235 } 3158 }
3236 3159
3237 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterFor MainWorld(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value >& info) 3160 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterFor MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo)
3238 { 3161 {
3239 v8::Local<v8::Object> holder = info.Holder(); 3162 v8::Local<v8::Object> holder = info.Holder();
3240 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); 3163 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate());
3241 TestObject* impl = V8TestObject::toImpl(holder); 3164 TestObject* impl = V8TestObject::toImpl(holder);
3242 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 3165 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
3243 if (exceptionState.throwIfNeeded()) 3166 if (exceptionState.throwIfNeeded())
3244 return; 3167 return;
3245 impl->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue); 3168 impl->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue);
3246 } 3169 }
3247 3170
3248 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCal lbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) 3171 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCal lbackForMainWorld(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::P ropertyCallbackInfo<void>& info)
3249 { 3172 {
3250 v8::Local<v8::Value> v8Value = info[0];
3251 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3173 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3252 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteSetterForMainWorld(v8Value, info); 3174 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteSetterForMainWorld(v8Value, info);
3253 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3175 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3254 } 3176 }
3255 3177
3256 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) 3178 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
3257 { 3179 {
3258 v8::Local<v8::Object> holder = info.Holder(); 3180 v8::Local<v8::Object> holder = info.Holder();
3259 TestObject* impl = V8TestObject::toImpl(holder); 3181 TestObject* impl = V8TestObject::toImpl(holder);
3260 v8SetReturnValueInt(info, impl->activityLoggingGetterForIsolatedWorldsPerWor ldBindingsLongAttribute()); 3182 v8SetReturnValueInt(info, impl->activityLoggingGetterForIsolatedWorldsPerWor ldBindingsLongAttribute());
3261 } 3183 }
3262 3184
3263 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 3185 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterCallback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::V alue>& info)
3264 { 3186 {
3265 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3187 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3266 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 3188 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
3267 V8PerContextData* contextData = scriptState->perContextData(); 3189 V8PerContextData* contextData = scriptState->perContextData();
3268 if (contextData && contextData->activityLogger()) 3190 if (contextData && contextData->activityLogger())
3269 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erForIsolatedWorldsPerWorldBindingsLongAttribute"); 3191 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erForIsolatedWorldsPerWorldBindingsLongAttribute");
3270 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetter(info); 3192 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetter(info);
3271 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3193 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3272 } 3194 }
3273 3195
3274 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8:: Value>& info) 3196 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info)
3275 { 3197 {
3276 v8::Local<v8::Object> holder = info.Holder(); 3198 v8::Local<v8::Object> holder = info.Holder();
3277 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate()); 3199 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate());
3278 TestObject* impl = V8TestObject::toImpl(holder); 3200 TestObject* impl = V8TestObject::toImpl(holder);
3279 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 3201 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
3280 if (exceptionState.throwIfNeeded()) 3202 if (exceptionState.throwIfNeeded())
3281 return; 3203 return;
3282 impl->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue); 3204 impl->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue);
3283 } 3205 }
3284 3206
3285 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 3207 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3286 { 3208 {
3287 v8::Local<v8::Value> v8Value = info[0];
3288 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3209 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3289 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings LongAttributeAttributeSetter(v8Value, info); 3210 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings LongAttributeAttributeSetter(v8Value, info);
3290 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3211 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3291 } 3212 }
3292 3213
3293 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) 3214 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterForMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info)
3294 { 3215 {
3295 v8::Local<v8::Object> holder = info.Holder(); 3216 v8::Local<v8::Object> holder = info.Holder();
3296 TestObject* impl = V8TestObject::toImpl(holder); 3217 TestObject* impl = V8TestObject::toImpl(holder);
3297 v8SetReturnValueInt(info, impl->activityLoggingGetterForIsolatedWorldsPerWor ldBindingsLongAttribute()); 3218 v8SetReturnValueInt(info, impl->activityLoggingGetterForIsolatedWorldsPerWor ldBindingsLongAttribute());
3298 } 3219 }
3299 3220
3300 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterCallbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& in fo) 3221 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterCallbackForMainWorld(v8::Local<v8::Name>, const v8::PropertyCallba ckInfo<v8::Value>& info)
3301 { 3222 {
3302 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3223 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3303 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetterForMainWorld(info); 3224 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetterForMainWorld(info);
3304 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3225 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3305 } 3226 }
3306 3227
3307 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterForMainWorld(v8::Local<v8::Value> v8Value, const v8::FunctionCallb ackInfo<v8::Value>& info) 3228 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterForMainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallb ackInfo<void>& info)
3308 { 3229 {
3309 v8::Local<v8::Object> holder = info.Holder(); 3230 v8::Local<v8::Object> holder = info.Holder();
3310 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate()); 3231 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate());
3311 TestObject* impl = V8TestObject::toImpl(holder); 3232 TestObject* impl = V8TestObject::toImpl(holder);
3312 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 3233 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
3313 if (exceptionState.throwIfNeeded()) 3234 if (exceptionState.throwIfNeeded())
3314 return; 3235 return;
3315 impl->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue); 3236 impl->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue);
3316 } 3237 }
3317 3238
3318 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& in fo) 3239 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallbackForMainWorld(v8::Local<v8::Name>, v8::Local<v8::Value> v8V alue, const v8::PropertyCallbackInfo<void>& info)
3319 { 3240 {
3320 v8::Local<v8::Value> v8Value = info[0];
3321 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3241 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3322 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings LongAttributeAttributeSetterForMainWorld(v8Value, info); 3242 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings LongAttributeAttributeSetterForMainWorld(v8Value, info);
3323 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3243 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3324 } 3244 }
3325 3245
3326 static void locationAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 3246 static void locationAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& i nfo)
3327 { 3247 {
3328 v8::Local<v8::Object> holder = info.Holder(); 3248 v8::Local<v8::Object> holder = info.Holder();
3329 TestObject* impl = V8TestObject::toImpl(holder); 3249 TestObject* impl = V8TestObject::toImpl(holder);
3330 v8SetReturnValueFast(info, WTF::getPtr(impl->location()), impl); 3250 v8SetReturnValueFast(info, WTF::getPtr(impl->location()), impl);
3331 } 3251 }
3332 3252
3333 static void locationAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 3253 static void locationAttributeGetterCallback(v8::Local<v8::Name>, const v8::Prope rtyCallbackInfo<v8::Value>& info)
3334 { 3254 {
3335 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3255 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3336 TestObjectV8Internal::locationAttributeGetter(info); 3256 TestObjectV8Internal::locationAttributeGetter(info);
3337 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3257 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3338 } 3258 }
3339 3259
3340 static void locationAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Func tionCallbackInfo<v8::Value>& info) 3260 static void locationAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Prop ertyCallbackInfo<void>& info)
3341 { 3261 {
3342 v8::Local<v8::Object> holder = info.Holder(); 3262 v8::Local<v8::Object> holder = info.Holder();
3343 TestObject* proxyImpl = V8TestObject::toImpl(holder); 3263 TestObject* proxyImpl = V8TestObject::toImpl(holder);
3344 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->location()); 3264 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->location());
3345 if (!impl) 3265 if (!impl)
3346 return; 3266 return;
3347 V8StringResource<> cppValue = v8Value; 3267 V8StringResource<> cppValue = v8Value;
3348 if (!cppValue.prepare()) 3268 if (!cppValue.prepare())
3349 return; 3269 return;
3350 impl->setHref(cppValue); 3270 impl->setHref(cppValue);
3351 } 3271 }
3352 3272
3353 static void locationAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 3273 static void locationAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v8::V alue> v8Value, const v8::PropertyCallbackInfo<void>& info)
3354 { 3274 {
3355 v8::Local<v8::Value> v8Value = info[0];
3356 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3275 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3357 TestObjectV8Internal::locationAttributeSetter(v8Value, info); 3276 TestObjectV8Internal::locationAttributeSetter(v8Value, info);
3358 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3277 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3359 } 3278 }
3360 3279
3361 static void locationWithExceptionAttributeGetter(const v8::FunctionCallbackInfo< v8::Value>& info) 3280 static void locationWithExceptionAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info)
3362 { 3281 {
3363 v8::Local<v8::Object> holder = info.Holder(); 3282 v8::Local<v8::Object> holder = info.Holder();
3364 TestObject* impl = V8TestObject::toImpl(holder); 3283 TestObject* impl = V8TestObject::toImpl(holder);
3365 v8SetReturnValueFast(info, WTF::getPtr(impl->locationWithException()), impl) ; 3284 v8SetReturnValueFast(info, WTF::getPtr(impl->locationWithException()), impl) ;
3366 } 3285 }
3367 3286
3368 static void locationWithExceptionAttributeGetterCallback(const v8::FunctionCallb ackInfo<v8::Value>& info) 3287 static void locationWithExceptionAttributeGetterCallback(v8::Local<v8::Name>, co nst v8::PropertyCallbackInfo<v8::Value>& info)
3369 { 3288 {
3370 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3289 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3371 TestObjectV8Internal::locationWithExceptionAttributeGetter(info); 3290 TestObjectV8Internal::locationWithExceptionAttributeGetter(info);
3372 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3291 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3373 } 3292 }
3374 3293
3375 static void locationWithExceptionAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::FunctionCallbackInfo<v8::Value>& info) 3294 static void locationWithExceptionAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info)
3376 { 3295 {
3377 v8::Local<v8::Object> holder = info.Holder(); 3296 v8::Local<v8::Object> holder = info.Holder();
3378 ExceptionState exceptionState(ExceptionState::SetterContext, "locationWithEx ception", "TestObject", holder, info.GetIsolate()); 3297 ExceptionState exceptionState(ExceptionState::SetterContext, "locationWithEx ception", "TestObject", holder, info.GetIsolate());
3379 TestObject* proxyImpl = V8TestObject::toImpl(holder); 3298 TestObject* proxyImpl = V8TestObject::toImpl(holder);
3380 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithExcep tion()); 3299 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithExcep tion());
3381 if (!impl) 3300 if (!impl)
3382 return; 3301 return;
3383 V8StringResource<> cppValue = v8Value; 3302 V8StringResource<> cppValue = v8Value;
3384 if (!cppValue.prepare()) 3303 if (!cppValue.prepare())
3385 return; 3304 return;
3386 impl->setHrefThrows(cppValue, exceptionState); 3305 impl->setHrefThrows(cppValue, exceptionState);
3387 exceptionState.throwIfNeeded(); 3306 exceptionState.throwIfNeeded();
3388 } 3307 }
3389 3308
3390 static void locationWithExceptionAttributeSetterCallback(const v8::FunctionCallb ackInfo<v8::Value>& info) 3309 static void locationWithExceptionAttributeSetterCallback(v8::Local<v8::Name>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3391 { 3310 {
3392 v8::Local<v8::Value> v8Value = info[0];
3393 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3311 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3394 TestObjectV8Internal::locationWithExceptionAttributeSetter(v8Value, info); 3312 TestObjectV8Internal::locationWithExceptionAttributeSetter(v8Value, info);
3395 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3313 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3396 } 3314 }
3397 3315
3398 static void locationWithCallWithAttributeGetter(const v8::FunctionCallbackInfo<v 8::Value>& info) 3316 static void locationWithCallWithAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info)
3399 { 3317 {
3400 v8::Local<v8::Object> holder = info.Holder(); 3318 v8::Local<v8::Object> holder = info.Holder();
3401 TestObject* impl = V8TestObject::toImpl(holder); 3319 TestObject* impl = V8TestObject::toImpl(holder);
3402 v8SetReturnValueFast(info, WTF::getPtr(impl->locationWithCallWith()), impl); 3320 v8SetReturnValueFast(info, WTF::getPtr(impl->locationWithCallWith()), impl);
3403 } 3321 }
3404 3322
3405 static void locationWithCallWithAttributeGetterCallback(const v8::FunctionCallba ckInfo<v8::Value>& info) 3323 static void locationWithCallWithAttributeGetterCallback(v8::Local<v8::Name>, con st v8::PropertyCallbackInfo<v8::Value>& info)
3406 { 3324 {
3407 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3325 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3408 TestObjectV8Internal::locationWithCallWithAttributeGetter(info); 3326 TestObjectV8Internal::locationWithCallWithAttributeGetter(info);
3409 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3327 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3410 } 3328 }
3411 3329
3412 static void locationWithCallWithAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::FunctionCallbackInfo<v8::Value>& info) 3330 static void locationWithCallWithAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& info)
3413 { 3331 {
3414 v8::Local<v8::Object> holder = info.Holder(); 3332 v8::Local<v8::Object> holder = info.Holder();
3415 TestObject* proxyImpl = V8TestObject::toImpl(holder); 3333 TestObject* proxyImpl = V8TestObject::toImpl(holder);
3416 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithCallW ith()); 3334 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithCallW ith());
3417 if (!impl) 3335 if (!impl)
3418 return; 3336 return;
3419 V8StringResource<> cppValue = v8Value; 3337 V8StringResource<> cppValue = v8Value;
3420 if (!cppValue.prepare()) 3338 if (!cppValue.prepare())
3421 return; 3339 return;
3422 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ()); 3340 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ());
3423 impl->setHrefCallWith(executionContext, callingDOMWindow(info.GetIsolate()), enteredDOMWindow(info.GetIsolate()), cppValue); 3341 impl->setHrefCallWith(executionContext, callingDOMWindow(info.GetIsolate()), enteredDOMWindow(info.GetIsolate()), cppValue);
3424 } 3342 }
3425 3343
3426 static void locationWithCallWithAttributeSetterCallback(const v8::FunctionCallba ckInfo<v8::Value>& info) 3344 static void locationWithCallWithAttributeSetterCallback(v8::Local<v8::Name>, v8: :Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3427 { 3345 {
3428 v8::Local<v8::Value> v8Value = info[0];
3429 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3346 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3430 TestObjectV8Internal::locationWithCallWithAttributeSetter(v8Value, info); 3347 TestObjectV8Internal::locationWithCallWithAttributeSetter(v8Value, info);
3431 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3348 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3432 } 3349 }
3433 3350
3434 static void locationByteStringAttributeGetter(const v8::FunctionCallbackInfo<v8: :Value>& info) 3351 static void locationByteStringAttributeGetter(const v8::PropertyCallbackInfo<v8: :Value>& info)
3435 { 3352 {
3436 v8::Local<v8::Object> holder = info.Holder(); 3353 v8::Local<v8::Object> holder = info.Holder();
3437 TestObject* impl = V8TestObject::toImpl(holder); 3354 TestObject* impl = V8TestObject::toImpl(holder);
3438 v8SetReturnValueFast(info, WTF::getPtr(impl->locationByteString()), impl); 3355 v8SetReturnValueFast(info, WTF::getPtr(impl->locationByteString()), impl);
3439 } 3356 }
3440 3357
3441 static void locationByteStringAttributeGetterCallback(const v8::FunctionCallback Info<v8::Value>& info) 3358 static void locationByteStringAttributeGetterCallback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
3442 { 3359 {
3443 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3360 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3444 TestObjectV8Internal::locationByteStringAttributeGetter(info); 3361 TestObjectV8Internal::locationByteStringAttributeGetter(info);
3445 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3362 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3446 } 3363 }
3447 3364
3448 static void locationByteStringAttributeSetter(v8::Local<v8::Value> v8Value, cons t v8::FunctionCallbackInfo<v8::Value>& info) 3365 static void locationByteStringAttributeSetter(v8::Local<v8::Value> v8Value, cons t v8::PropertyCallbackInfo<void>& info)
3449 { 3366 {
3450 v8::Local<v8::Object> holder = info.Holder(); 3367 v8::Local<v8::Object> holder = info.Holder();
3451 ExceptionState exceptionState(ExceptionState::SetterContext, "locationByteSt ring", "TestObject", holder, info.GetIsolate()); 3368 ExceptionState exceptionState(ExceptionState::SetterContext, "locationByteSt ring", "TestObject", holder, info.GetIsolate());
3452 TestObject* proxyImpl = V8TestObject::toImpl(holder); 3369 TestObject* proxyImpl = V8TestObject::toImpl(holder);
3453 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationByteStrin g()); 3370 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationByteStrin g());
3454 if (!impl) 3371 if (!impl)
3455 return; 3372 return;
3456 V8StringResource<> cppValue = toByteString(info.GetIsolate(), v8Value, excep tionState); 3373 V8StringResource<> cppValue = toByteString(info.GetIsolate(), v8Value, excep tionState);
3457 if (exceptionState.throwIfNeeded()) 3374 if (exceptionState.throwIfNeeded())
3458 return; 3375 return;
3459 impl->setHrefByteString(cppValue); 3376 impl->setHrefByteString(cppValue);
3460 } 3377 }
3461 3378
3462 static void locationByteStringAttributeSetterCallback(const v8::FunctionCallback Info<v8::Value>& info) 3379 static void locationByteStringAttributeSetterCallback(v8::Local<v8::Name>, v8::L ocal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3463 { 3380 {
3464 v8::Local<v8::Value> v8Value = info[0];
3465 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3381 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3466 TestObjectV8Internal::locationByteStringAttributeSetter(v8Value, info); 3382 TestObjectV8Internal::locationByteStringAttributeSetter(v8Value, info);
3467 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3383 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3468 } 3384 }
3469 3385
3470 static void locationWithPerWorldBindingsAttributeGetter(const v8::FunctionCallba ckInfo<v8::Value>& info) 3386 static void locationWithPerWorldBindingsAttributeGetter(const v8::PropertyCallba ckInfo<v8::Value>& info)
3471 { 3387 {
3472 v8::Local<v8::Object> holder = info.Holder(); 3388 v8::Local<v8::Object> holder = info.Holder();
3473 TestObject* impl = V8TestObject::toImpl(holder); 3389 TestObject* impl = V8TestObject::toImpl(holder);
3474 v8SetReturnValueFast(info, WTF::getPtr(impl->locationWithPerWorldBindings()) , impl); 3390 v8SetReturnValueFast(info, WTF::getPtr(impl->locationWithPerWorldBindings()) , impl);
3475 } 3391 }
3476 3392
3477 static void locationWithPerWorldBindingsAttributeGetterCallback(const v8::Functi onCallbackInfo<v8::Value>& info) 3393 static void locationWithPerWorldBindingsAttributeGetterCallback(v8::Local<v8::Na me>, const v8::PropertyCallbackInfo<v8::Value>& info)
3478 { 3394 {
3479 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3395 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3480 TestObjectV8Internal::locationWithPerWorldBindingsAttributeGetter(info); 3396 TestObjectV8Internal::locationWithPerWorldBindingsAttributeGetter(info);
3481 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3397 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3482 } 3398 }
3483 3399
3484 static void locationWithPerWorldBindingsAttributeSetter(v8::Local<v8::Value> v8V alue, const v8::FunctionCallbackInfo<v8::Value>& info) 3400 static void locationWithPerWorldBindingsAttributeSetter(v8::Local<v8::Value> v8V alue, const v8::PropertyCallbackInfo<void>& info)
3485 { 3401 {
3486 v8::Local<v8::Object> holder = info.Holder(); 3402 v8::Local<v8::Object> holder = info.Holder();
3487 TestObject* proxyImpl = V8TestObject::toImpl(holder); 3403 TestObject* proxyImpl = V8TestObject::toImpl(holder);
3488 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithPerWo rldBindings()); 3404 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithPerWo rldBindings());
3489 if (!impl) 3405 if (!impl)
3490 return; 3406 return;
3491 V8StringResource<> cppValue = v8Value; 3407 V8StringResource<> cppValue = v8Value;
3492 if (!cppValue.prepare()) 3408 if (!cppValue.prepare())
3493 return; 3409 return;
3494 impl->setHref(cppValue); 3410 impl->setHref(cppValue);
3495 } 3411 }
3496 3412
3497 static void locationWithPerWorldBindingsAttributeSetterCallback(const v8::Functi onCallbackInfo<v8::Value>& info) 3413 static void locationWithPerWorldBindingsAttributeSetterCallback(v8::Local<v8::Na me>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3498 { 3414 {
3499 v8::Local<v8::Value> v8Value = info[0];
3500 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3415 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3501 TestObjectV8Internal::locationWithPerWorldBindingsAttributeSetter(v8Value, i nfo); 3416 TestObjectV8Internal::locationWithPerWorldBindingsAttributeSetter(v8Value, i nfo);
3502 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3417 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3503 } 3418 }
3504 3419
3505 static void locationWithPerWorldBindingsAttributeGetterForMainWorld(const v8::Fu nctionCallbackInfo<v8::Value>& info) 3420 static void locationWithPerWorldBindingsAttributeGetterForMainWorld(const v8::Pr opertyCallbackInfo<v8::Value>& info)
3506 { 3421 {
3507 v8::Local<v8::Object> holder = info.Holder(); 3422 v8::Local<v8::Object> holder = info.Holder();
3508 TestObject* impl = V8TestObject::toImpl(holder); 3423 TestObject* impl = V8TestObject::toImpl(holder);
3509 v8SetReturnValueForMainWorld(info, WTF::getPtr(impl->locationWithPerWorldBin dings())); 3424 v8SetReturnValueForMainWorld(info, WTF::getPtr(impl->locationWithPerWorldBin dings()));
3510 } 3425 }
3511 3426
3512 static void locationWithPerWorldBindingsAttributeGetterCallbackForMainWorld(cons t v8::FunctionCallbackInfo<v8::Value>& info) 3427 static void locationWithPerWorldBindingsAttributeGetterCallbackForMainWorld(v8:: Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
3513 { 3428 {
3514 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3429 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3515 TestObjectV8Internal::locationWithPerWorldBindingsAttributeGetterForMainWorl d(info); 3430 TestObjectV8Internal::locationWithPerWorldBindingsAttributeGetterForMainWorl d(info);
3516 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3431 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3517 } 3432 }
3518 3433
3519 static void locationWithPerWorldBindingsAttributeSetterForMainWorld(v8::Local<v8 ::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 3434 static void locationWithPerWorldBindingsAttributeSetterForMainWorld(v8::Local<v8 ::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3520 { 3435 {
3521 v8::Local<v8::Object> holder = info.Holder(); 3436 v8::Local<v8::Object> holder = info.Holder();
3522 TestObject* proxyImpl = V8TestObject::toImpl(holder); 3437 TestObject* proxyImpl = V8TestObject::toImpl(holder);
3523 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithPerWo rldBindings()); 3438 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithPerWo rldBindings());
3524 if (!impl) 3439 if (!impl)
3525 return; 3440 return;
3526 V8StringResource<> cppValue = v8Value; 3441 V8StringResource<> cppValue = v8Value;
3527 if (!cppValue.prepare()) 3442 if (!cppValue.prepare())
3528 return; 3443 return;
3529 impl->setHref(cppValue); 3444 impl->setHref(cppValue);
3530 } 3445 }
3531 3446
3532 static void locationWithPerWorldBindingsAttributeSetterCallbackForMainWorld(cons t v8::FunctionCallbackInfo<v8::Value>& info) 3447 static void locationWithPerWorldBindingsAttributeSetterCallbackForMainWorld(v8:: Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<vo id>& info)
3533 { 3448 {
3534 v8::Local<v8::Value> v8Value = info[0];
3535 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3449 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3536 TestObjectV8Internal::locationWithPerWorldBindingsAttributeSetterForMainWorl d(v8Value, info); 3450 TestObjectV8Internal::locationWithPerWorldBindingsAttributeSetterForMainWorl d(v8Value, info);
3537 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3451 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3538 } 3452 }
3539 3453
3540 static void locationTypeCheckingInterfaceAttributeGetter(const v8::FunctionCallb ackInfo<v8::Value>& info) 3454 static void locationTypeCheckingInterfaceAttributeGetter(const v8::PropertyCallb ackInfo<v8::Value>& info)
3541 { 3455 {
3542 v8::Local<v8::Object> holder = info.Holder(); 3456 v8::Local<v8::Object> holder = info.Holder();
3543 TestObject* impl = V8TestObject::toImpl(holder); 3457 TestObject* impl = V8TestObject::toImpl(holder);
3544 v8SetReturnValueFast(info, WTF::getPtr(impl->locationTypeCheckingInterface() ), impl); 3458 v8SetReturnValueFast(info, WTF::getPtr(impl->locationTypeCheckingInterface() ), impl);
3545 } 3459 }
3546 3460
3547 static void locationTypeCheckingInterfaceAttributeGetterCallback(const v8::Funct ionCallbackInfo<v8::Value>& info) 3461 static void locationTypeCheckingInterfaceAttributeGetterCallback(v8::Local<v8::N ame>, const v8::PropertyCallbackInfo<v8::Value>& info)
3548 { 3462 {
3549 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3463 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3550 TestObjectV8Internal::locationTypeCheckingInterfaceAttributeGetter(info); 3464 TestObjectV8Internal::locationTypeCheckingInterfaceAttributeGetter(info);
3551 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3465 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3552 } 3466 }
3553 3467
3554 static void locationTypeCheckingInterfaceAttributeSetter(v8::Local<v8::Value> v8 Value, const v8::FunctionCallbackInfo<v8::Value>& info) 3468 static void locationTypeCheckingInterfaceAttributeSetter(v8::Local<v8::Value> v8 Value, const v8::PropertyCallbackInfo<void>& info)
3555 { 3469 {
3556 v8::Local<v8::Object> holder = info.Holder(); 3470 v8::Local<v8::Object> holder = info.Holder();
3557 TestObject* proxyImpl = V8TestObject::toImpl(holder); 3471 TestObject* proxyImpl = V8TestObject::toImpl(holder);
3558 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationTypeCheck ingInterface()); 3472 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationTypeCheck ingInterface());
3559 if (!impl) 3473 if (!impl)
3560 return; 3474 return;
3561 V8StringResource<> cppValue = v8Value; 3475 V8StringResource<> cppValue = v8Value;
3562 if (!cppValue.prepare()) 3476 if (!cppValue.prepare())
3563 return; 3477 return;
3564 impl->setHref(cppValue); 3478 impl->setHref(cppValue);
3565 } 3479 }
3566 3480
3567 static void locationTypeCheckingInterfaceAttributeSetterCallback(const v8::Funct ionCallbackInfo<v8::Value>& info) 3481 static void locationTypeCheckingInterfaceAttributeSetterCallback(v8::Local<v8::N ame>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3568 { 3482 {
3569 v8::Local<v8::Value> v8Value = info[0];
3570 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3483 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3571 TestObjectV8Internal::locationTypeCheckingInterfaceAttributeSetter(v8Value, info); 3484 TestObjectV8Internal::locationTypeCheckingInterfaceAttributeSetter(v8Value, info);
3572 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3485 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3573 } 3486 }
3574 3487
3575 static void locationGarbageCollectedAttributeGetter(const v8::FunctionCallbackIn fo<v8::Value>& info) 3488 static void locationGarbageCollectedAttributeGetter(const v8::PropertyCallbackIn fo<v8::Value>& info)
3576 { 3489 {
3577 v8::Local<v8::Object> holder = info.Holder(); 3490 v8::Local<v8::Object> holder = info.Holder();
3578 TestObject* impl = V8TestObject::toImpl(holder); 3491 TestObject* impl = V8TestObject::toImpl(holder);
3579 RawPtr<TestInterfaceGarbageCollected> cppValue(impl->locationGarbageCollecte d()); 3492 RawPtr<TestInterfaceGarbageCollected> cppValue(impl->locationGarbageCollecte d());
3580 if (cppValue && DOMDataStore::setReturnValue(info.GetReturnValue(), cppValue .get())) 3493 if (cppValue && DOMDataStore::setReturnValue(info.GetReturnValue(), cppValue .get()))
3581 return; 3494 return;
3582 v8::Local<v8::Value> v8Value(toV8(cppValue.get(), holder, info.GetIsolate()) ); 3495 v8::Local<v8::Value> v8Value(toV8(cppValue.get(), holder, info.GetIsolate()) );
3583 if (!v8Value.IsEmpty()) { 3496 if (!v8Value.IsEmpty()) {
3584 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString( info.GetIsolate(), "locationGarbageCollected"), v8Value); 3497 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString( info.GetIsolate(), "locationGarbageCollected"), v8Value);
3585 v8SetReturnValue(info, v8Value); 3498 v8SetReturnValue(info, v8Value);
3586 } 3499 }
3587 } 3500 }
3588 3501
3589 static void locationGarbageCollectedAttributeGetterCallback(const v8::FunctionCa llbackInfo<v8::Value>& info) 3502 static void locationGarbageCollectedAttributeGetterCallback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
3590 { 3503 {
3591 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3504 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3592 TestObjectV8Internal::locationGarbageCollectedAttributeGetter(info); 3505 TestObjectV8Internal::locationGarbageCollectedAttributeGetter(info);
3593 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3506 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3594 } 3507 }
3595 3508
3596 static void locationGarbageCollectedAttributeSetter(v8::Local<v8::Value> v8Value , const v8::FunctionCallbackInfo<v8::Value>& info) 3509 static void locationGarbageCollectedAttributeSetter(v8::Local<v8::Value> v8Value , const v8::PropertyCallbackInfo<void>& info)
3597 { 3510 {
3598 v8::Local<v8::Object> holder = info.Holder(); 3511 v8::Local<v8::Object> holder = info.Holder();
3599 TestObject* proxyImpl = V8TestObject::toImpl(holder); 3512 TestObject* proxyImpl = V8TestObject::toImpl(holder);
3600 RawPtr<TestInterfaceGarbageCollected> impl = WTF::getPtr(proxyImpl->location GarbageCollected()); 3513 RawPtr<TestInterfaceGarbageCollected> impl = WTF::getPtr(proxyImpl->location GarbageCollected());
3601 if (!impl) 3514 if (!impl)
3602 return; 3515 return;
3603 TestInterfaceGarbageCollected* cppValue = V8TestInterfaceGarbageCollected::t oImplWithTypeCheck(info.GetIsolate(), v8Value); 3516 TestInterfaceGarbageCollected* cppValue = V8TestInterfaceGarbageCollected::t oImplWithTypeCheck(info.GetIsolate(), v8Value);
3604 impl->setAttr1(WTF::getPtr(cppValue)); 3517 impl->setAttr1(WTF::getPtr(cppValue));
3605 } 3518 }
3606 3519
3607 static void locationGarbageCollectedAttributeSetterCallback(const v8::FunctionCa llbackInfo<v8::Value>& info) 3520 static void locationGarbageCollectedAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3608 { 3521 {
3609 v8::Local<v8::Value> v8Value = info[0];
3610 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3522 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3611 TestObjectV8Internal::locationGarbageCollectedAttributeSetter(v8Value, info) ; 3523 TestObjectV8Internal::locationGarbageCollectedAttributeSetter(v8Value, info) ;
3612 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3524 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3613 } 3525 }
3614 3526
3615 static void locationWillBeGarbageCollectedAttributeGetter(const v8::FunctionCall backInfo<v8::Value>& info) 3527 static void locationWillBeGarbageCollectedAttributeGetter(const v8::PropertyCall backInfo<v8::Value>& info)
3616 { 3528 {
3617 v8::Local<v8::Object> holder = info.Holder(); 3529 v8::Local<v8::Object> holder = info.Holder();
3618 TestObject* impl = V8TestObject::toImpl(holder); 3530 TestObject* impl = V8TestObject::toImpl(holder);
3619 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> cppValue(impl->locat ionWillBeGarbageCollected()); 3531 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> cppValue(impl->locat ionWillBeGarbageCollected());
3620 if (cppValue && DOMDataStore::setReturnValue(info.GetReturnValue(), cppValue .get())) 3532 if (cppValue && DOMDataStore::setReturnValue(info.GetReturnValue(), cppValue .get()))
3621 return; 3533 return;
3622 v8::Local<v8::Value> v8Value(toV8(cppValue.get(), holder, info.GetIsolate()) ); 3534 v8::Local<v8::Value> v8Value(toV8(cppValue.get(), holder, info.GetIsolate()) );
3623 if (!v8Value.IsEmpty()) { 3535 if (!v8Value.IsEmpty()) {
3624 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString( info.GetIsolate(), "locationWillBeGarbageCollected"), v8Value); 3536 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString( info.GetIsolate(), "locationWillBeGarbageCollected"), v8Value);
3625 v8SetReturnValue(info, v8Value); 3537 v8SetReturnValue(info, v8Value);
3626 } 3538 }
3627 } 3539 }
3628 3540
3629 static void locationWillBeGarbageCollectedAttributeGetterCallback(const v8::Func tionCallbackInfo<v8::Value>& info) 3541 static void locationWillBeGarbageCollectedAttributeGetterCallback(v8::Local<v8:: Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
3630 { 3542 {
3631 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3543 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3632 TestObjectV8Internal::locationWillBeGarbageCollectedAttributeGetter(info); 3544 TestObjectV8Internal::locationWillBeGarbageCollectedAttributeGetter(info);
3633 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3545 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3634 } 3546 }
3635 3547
3636 static void locationWillBeGarbageCollectedAttributeSetter(v8::Local<v8::Value> v 8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 3548 static void locationWillBeGarbageCollectedAttributeSetter(v8::Local<v8::Value> v 8Value, const v8::PropertyCallbackInfo<void>& info)
3637 { 3549 {
3638 v8::Local<v8::Object> holder = info.Holder(); 3550 v8::Local<v8::Object> holder = info.Holder();
3639 TestObject* proxyImpl = V8TestObject::toImpl(holder); 3551 TestObject* proxyImpl = V8TestObject::toImpl(holder);
3640 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> impl = WTF::getPtr(p roxyImpl->locationWillBeGarbageCollected()); 3552 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> impl = WTF::getPtr(p roxyImpl->locationWillBeGarbageCollected());
3641 if (!impl) 3553 if (!impl)
3642 return; 3554 return;
3643 TestInterfaceWillBeGarbageCollected* cppValue = V8TestInterfaceWillBeGarbage Collected::toImplWithTypeCheck(info.GetIsolate(), v8Value); 3555 TestInterfaceWillBeGarbageCollected* cppValue = V8TestInterfaceWillBeGarbage Collected::toImplWithTypeCheck(info.GetIsolate(), v8Value);
3644 impl->setAttr1(WTF::getPtr(cppValue)); 3556 impl->setAttr1(WTF::getPtr(cppValue));
3645 } 3557 }
3646 3558
3647 static void locationWillBeGarbageCollectedAttributeSetterCallback(const v8::Func tionCallbackInfo<v8::Value>& info) 3559 static void locationWillBeGarbageCollectedAttributeSetterCallback(v8::Local<v8:: Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3648 { 3560 {
3649 v8::Local<v8::Value> v8Value = info[0];
3650 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3561 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3651 TestObjectV8Internal::locationWillBeGarbageCollectedAttributeSetter(v8Value, info); 3562 TestObjectV8Internal::locationWillBeGarbageCollectedAttributeSetter(v8Value, info);
3652 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3563 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3653 } 3564 }
3654 3565
3655 static void raisesExceptionLongAttributeAttributeGetter(const v8::FunctionCallba ckInfo<v8::Value>& info) 3566 static void raisesExceptionLongAttributeAttributeGetter(const v8::PropertyCallba ckInfo<v8::Value>& info)
3656 { 3567 {
3657 v8::Local<v8::Object> holder = info.Holder(); 3568 v8::Local<v8::Object> holder = info.Holder();
3658 TestObject* impl = V8TestObject::toImpl(holder); 3569 TestObject* impl = V8TestObject::toImpl(holder);
3659 ExceptionState exceptionState(ExceptionState::GetterContext, "raisesExceptio nLongAttribute", "TestObject", holder, info.GetIsolate()); 3570 ExceptionState exceptionState(ExceptionState::GetterContext, "raisesExceptio nLongAttribute", "TestObject", holder, info.GetIsolate());
3660 int cppValue(impl->raisesExceptionLongAttribute(exceptionState)); 3571 int cppValue(impl->raisesExceptionLongAttribute(exceptionState));
3661 if (UNLIKELY(exceptionState.throwIfNeeded())) 3572 if (UNLIKELY(exceptionState.throwIfNeeded()))
3662 return; 3573 return;
3663 v8SetReturnValueInt(info, cppValue); 3574 v8SetReturnValueInt(info, cppValue);
3664 } 3575 }
3665 3576
3666 static void raisesExceptionLongAttributeAttributeGetterCallback(const v8::Functi onCallbackInfo<v8::Value>& info) 3577 static void raisesExceptionLongAttributeAttributeGetterCallback(v8::Local<v8::Na me>, const v8::PropertyCallbackInfo<v8::Value>& info)
3667 { 3578 {
3668 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3579 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3669 TestObjectV8Internal::raisesExceptionLongAttributeAttributeGetter(info); 3580 TestObjectV8Internal::raisesExceptionLongAttributeAttributeGetter(info);
3670 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3581 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3671 } 3582 }
3672 3583
3673 static void raisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Value> v8V alue, const v8::FunctionCallbackInfo<v8::Value>& info) 3584 static void raisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Value> v8V alue, const v8::PropertyCallbackInfo<void>& info)
3674 { 3585 {
3675 v8::Local<v8::Object> holder = info.Holder(); 3586 v8::Local<v8::Object> holder = info.Holder();
3676 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio nLongAttribute", "TestObject", holder, info.GetIsolate()); 3587 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio nLongAttribute", "TestObject", holder, info.GetIsolate());
3677 TestObject* impl = V8TestObject::toImpl(holder); 3588 TestObject* impl = V8TestObject::toImpl(holder);
3678 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 3589 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
3679 if (exceptionState.throwIfNeeded()) 3590 if (exceptionState.throwIfNeeded())
3680 return; 3591 return;
3681 impl->setRaisesExceptionLongAttribute(cppValue, exceptionState); 3592 impl->setRaisesExceptionLongAttribute(cppValue, exceptionState);
3682 exceptionState.throwIfNeeded(); 3593 exceptionState.throwIfNeeded();
3683 } 3594 }
3684 3595
3685 static void raisesExceptionLongAttributeAttributeSetterCallback(const v8::Functi onCallbackInfo<v8::Value>& info) 3596 static void raisesExceptionLongAttributeAttributeSetterCallback(v8::Local<v8::Na me>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3686 { 3597 {
3687 v8::Local<v8::Value> v8Value = info[0];
3688 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3598 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3689 TestObjectV8Internal::raisesExceptionLongAttributeAttributeSetter(v8Value, i nfo); 3599 TestObjectV8Internal::raisesExceptionLongAttributeAttributeSetter(v8Value, i nfo);
3690 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3600 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3691 } 3601 }
3692 3602
3693 static void raisesExceptionGetterLongAttributeAttributeGetter(const v8::Function CallbackInfo<v8::Value>& info) 3603 static void raisesExceptionGetterLongAttributeAttributeGetter(const v8::Property CallbackInfo<v8::Value>& info)
3694 { 3604 {
3695 v8::Local<v8::Object> holder = info.Holder(); 3605 v8::Local<v8::Object> holder = info.Holder();
3696 TestObject* impl = V8TestObject::toImpl(holder); 3606 TestObject* impl = V8TestObject::toImpl(holder);
3697 ExceptionState exceptionState(ExceptionState::GetterContext, "raisesExceptio nGetterLongAttribute", "TestObject", holder, info.GetIsolate()); 3607 ExceptionState exceptionState(ExceptionState::GetterContext, "raisesExceptio nGetterLongAttribute", "TestObject", holder, info.GetIsolate());
3698 int cppValue(impl->raisesExceptionGetterLongAttribute(exceptionState)); 3608 int cppValue(impl->raisesExceptionGetterLongAttribute(exceptionState));
3699 if (UNLIKELY(exceptionState.throwIfNeeded())) 3609 if (UNLIKELY(exceptionState.throwIfNeeded()))
3700 return; 3610 return;
3701 v8SetReturnValueInt(info, cppValue); 3611 v8SetReturnValueInt(info, cppValue);
3702 } 3612 }
3703 3613
3704 static void raisesExceptionGetterLongAttributeAttributeGetterCallback(const v8:: FunctionCallbackInfo<v8::Value>& info) 3614 static void raisesExceptionGetterLongAttributeAttributeGetterCallback(v8::Local< v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
3705 { 3615 {
3706 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3616 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3707 TestObjectV8Internal::raisesExceptionGetterLongAttributeAttributeGetter(info ); 3617 TestObjectV8Internal::raisesExceptionGetterLongAttributeAttributeGetter(info );
3708 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3618 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3709 } 3619 }
3710 3620
3711 static void raisesExceptionGetterLongAttributeAttributeSetter(v8::Local<v8::Valu e> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 3621 static void raisesExceptionGetterLongAttributeAttributeSetter(v8::Local<v8::Valu e> v8Value, const v8::PropertyCallbackInfo<void>& info)
3712 { 3622 {
3713 v8::Local<v8::Object> holder = info.Holder(); 3623 v8::Local<v8::Object> holder = info.Holder();
3714 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio nGetterLongAttribute", "TestObject", holder, info.GetIsolate()); 3624 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio nGetterLongAttribute", "TestObject", holder, info.GetIsolate());
3715 TestObject* impl = V8TestObject::toImpl(holder); 3625 TestObject* impl = V8TestObject::toImpl(holder);
3716 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 3626 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
3717 if (exceptionState.throwIfNeeded()) 3627 if (exceptionState.throwIfNeeded())
3718 return; 3628 return;
3719 impl->setRaisesExceptionGetterLongAttribute(cppValue); 3629 impl->setRaisesExceptionGetterLongAttribute(cppValue);
3720 } 3630 }
3721 3631
3722 static void raisesExceptionGetterLongAttributeAttributeSetterCallback(const v8:: FunctionCallbackInfo<v8::Value>& info) 3632 static void raisesExceptionGetterLongAttributeAttributeSetterCallback(v8::Local< v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& i nfo)
3723 { 3633 {
3724 v8::Local<v8::Value> v8Value = info[0];
3725 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3634 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3726 TestObjectV8Internal::raisesExceptionGetterLongAttributeAttributeSetter(v8Va lue, info); 3635 TestObjectV8Internal::raisesExceptionGetterLongAttributeAttributeSetter(v8Va lue, info);
3727 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3636 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3728 } 3637 }
3729 3638
3730 static void setterRaisesExceptionLongAttributeAttributeGetter(const v8::Function CallbackInfo<v8::Value>& info) 3639 static void setterRaisesExceptionLongAttributeAttributeGetter(const v8::Property CallbackInfo<v8::Value>& info)
3731 { 3640 {
3732 v8::Local<v8::Object> holder = info.Holder(); 3641 v8::Local<v8::Object> holder = info.Holder();
3733 TestObject* impl = V8TestObject::toImpl(holder); 3642 TestObject* impl = V8TestObject::toImpl(holder);
3734 v8SetReturnValueInt(info, impl->setterRaisesExceptionLongAttribute()); 3643 v8SetReturnValueInt(info, impl->setterRaisesExceptionLongAttribute());
3735 } 3644 }
3736 3645
3737 static void setterRaisesExceptionLongAttributeAttributeGetterCallback(const v8:: FunctionCallbackInfo<v8::Value>& info) 3646 static void setterRaisesExceptionLongAttributeAttributeGetterCallback(v8::Local< v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
3738 { 3647 {
3739 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3648 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3740 TestObjectV8Internal::setterRaisesExceptionLongAttributeAttributeGetter(info ); 3649 TestObjectV8Internal::setterRaisesExceptionLongAttributeAttributeGetter(info );
3741 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3650 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3742 } 3651 }
3743 3652
3744 static void setterRaisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Valu e> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 3653 static void setterRaisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Valu e> v8Value, const v8::PropertyCallbackInfo<void>& info)
3745 { 3654 {
3746 v8::Local<v8::Object> holder = info.Holder(); 3655 v8::Local<v8::Object> holder = info.Holder();
3747 ExceptionState exceptionState(ExceptionState::SetterContext, "setterRaisesEx ceptionLongAttribute", "TestObject", holder, info.GetIsolate()); 3656 ExceptionState exceptionState(ExceptionState::SetterContext, "setterRaisesEx ceptionLongAttribute", "TestObject", holder, info.GetIsolate());
3748 TestObject* impl = V8TestObject::toImpl(holder); 3657 TestObject* impl = V8TestObject::toImpl(holder);
3749 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 3658 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
3750 if (exceptionState.throwIfNeeded()) 3659 if (exceptionState.throwIfNeeded())
3751 return; 3660 return;
3752 impl->setSetterRaisesExceptionLongAttribute(cppValue, exceptionState); 3661 impl->setSetterRaisesExceptionLongAttribute(cppValue, exceptionState);
3753 exceptionState.throwIfNeeded(); 3662 exceptionState.throwIfNeeded();
3754 } 3663 }
3755 3664
3756 static void setterRaisesExceptionLongAttributeAttributeSetterCallback(const v8:: FunctionCallbackInfo<v8::Value>& info) 3665 static void setterRaisesExceptionLongAttributeAttributeSetterCallback(v8::Local< v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& i nfo)
3757 { 3666 {
3758 v8::Local<v8::Value> v8Value = info[0];
3759 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3667 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3760 TestObjectV8Internal::setterRaisesExceptionLongAttributeAttributeSetter(v8Va lue, info); 3668 TestObjectV8Internal::setterRaisesExceptionLongAttributeAttributeSetter(v8Va lue, info);
3761 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3669 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3762 } 3670 }
3763 3671
3764 static void raisesExceptionTestInterfaceEmptyAttributeAttributeGetter(const v8:: FunctionCallbackInfo<v8::Value>& info) 3672 static void raisesExceptionTestInterfaceEmptyAttributeAttributeGetter(const v8:: PropertyCallbackInfo<v8::Value>& info)
3765 { 3673 {
3766 v8::Local<v8::Object> holder = info.Holder(); 3674 v8::Local<v8::Object> holder = info.Holder();
3767 TestObject* impl = V8TestObject::toImpl(holder); 3675 TestObject* impl = V8TestObject::toImpl(holder);
3768 ExceptionState exceptionState(ExceptionState::GetterContext, "raisesExceptio nTestInterfaceEmptyAttribute", "TestObject", holder, info.GetIsolate()); 3676 ExceptionState exceptionState(ExceptionState::GetterContext, "raisesExceptio nTestInterfaceEmptyAttribute", "TestObject", holder, info.GetIsolate());
3769 RefPtr<TestInterfaceEmpty> cppValue(impl->raisesExceptionTestInterfaceEmptyA ttribute(exceptionState)); 3677 RefPtr<TestInterfaceEmpty> cppValue(impl->raisesExceptionTestInterfaceEmptyA ttribute(exceptionState));
3770 if (UNLIKELY(exceptionState.throwIfNeeded())) 3678 if (UNLIKELY(exceptionState.throwIfNeeded()))
3771 return; 3679 return;
3772 v8SetReturnValueFast(info, WTF::getPtr(cppValue.release()), impl); 3680 v8SetReturnValueFast(info, WTF::getPtr(cppValue.release()), impl);
3773 } 3681 }
3774 3682
3775 static void raisesExceptionTestInterfaceEmptyAttributeAttributeGetterCallback(co nst v8::FunctionCallbackInfo<v8::Value>& info) 3683 static void raisesExceptionTestInterfaceEmptyAttributeAttributeGetterCallback(v8 ::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
3776 { 3684 {
3777 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3685 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3778 TestObjectV8Internal::raisesExceptionTestInterfaceEmptyAttributeAttributeGet ter(info); 3686 TestObjectV8Internal::raisesExceptionTestInterfaceEmptyAttributeAttributeGet ter(info);
3779 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3687 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3780 } 3688 }
3781 3689
3782 static void raisesExceptionTestInterfaceEmptyAttributeAttributeSetter(v8::Local< v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 3690 static void raisesExceptionTestInterfaceEmptyAttributeAttributeSetter(v8::Local< v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3783 { 3691 {
3784 v8::Local<v8::Object> holder = info.Holder(); 3692 v8::Local<v8::Object> holder = info.Holder();
3785 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio nTestInterfaceEmptyAttribute", "TestObject", holder, info.GetIsolate()); 3693 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio nTestInterfaceEmptyAttribute", "TestObject", holder, info.GetIsolate());
3786 TestObject* impl = V8TestObject::toImpl(holder); 3694 TestObject* impl = V8TestObject::toImpl(holder);
3787 TestInterfaceEmpty* cppValue = V8TestInterfaceEmpty::toImplWithTypeCheck(inf o.GetIsolate(), v8Value); 3695 TestInterfaceEmpty* cppValue = V8TestInterfaceEmpty::toImplWithTypeCheck(inf o.GetIsolate(), v8Value);
3788 impl->setRaisesExceptionTestInterfaceEmptyAttribute(WTF::getPtr(cppValue), e xceptionState); 3696 impl->setRaisesExceptionTestInterfaceEmptyAttribute(WTF::getPtr(cppValue), e xceptionState);
3789 exceptionState.throwIfNeeded(); 3697 exceptionState.throwIfNeeded();
3790 } 3698 }
3791 3699
3792 static void raisesExceptionTestInterfaceEmptyAttributeAttributeSetterCallback(co nst v8::FunctionCallbackInfo<v8::Value>& info) 3700 static void raisesExceptionTestInterfaceEmptyAttributeAttributeSetterCallback(v8 ::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo< void>& info)
3793 { 3701 {
3794 v8::Local<v8::Value> v8Value = info[0];
3795 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3702 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3796 TestObjectV8Internal::raisesExceptionTestInterfaceEmptyAttributeAttributeSet ter(v8Value, info); 3703 TestObjectV8Internal::raisesExceptionTestInterfaceEmptyAttributeAttributeSet ter(v8Value, info);
3797 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3704 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3798 } 3705 }
3799 3706
3800 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeGetter(cons t v8::FunctionCallbackInfo<v8::Value>& info) 3707 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeGetter(cons t v8::PropertyCallbackInfo<v8::Value>& info)
3801 { 3708 {
3802 v8::Local<v8::Object> holder = info.Holder(); 3709 v8::Local<v8::Object> holder = info.Holder();
3803 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cach edAttributeRaisesExceptionGetterAnyAttribute"); 3710 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cach edAttributeRaisesExceptionGetterAnyAttribute");
3804 TestObject* impl = V8TestObject::toImpl(holder); 3711 TestObject* impl = V8TestObject::toImpl(holder);
3805 if (!impl->isValueDirty()) { 3712 if (!impl->isValueDirty()) {
3806 v8::Local<v8::Value> v8Value = V8HiddenValue::getHiddenValue(info.GetIso late(), holder, propertyName); 3713 v8::Local<v8::Value> v8Value = V8HiddenValue::getHiddenValue(info.GetIso late(), holder, propertyName);
3807 if (!v8Value.IsEmpty()) { 3714 if (!v8Value.IsEmpty()) {
3808 v8SetReturnValue(info, v8Value); 3715 v8SetReturnValue(info, v8Value);
3809 return; 3716 return;
3810 } 3717 }
3811 } 3718 }
3812 ExceptionState exceptionState(ExceptionState::GetterContext, "cachedAttribut eRaisesExceptionGetterAnyAttribute", "TestObject", holder, info.GetIsolate()); 3719 ExceptionState exceptionState(ExceptionState::GetterContext, "cachedAttribut eRaisesExceptionGetterAnyAttribute", "TestObject", holder, info.GetIsolate());
3813 ScriptValue cppValue(impl->cachedAttributeRaisesExceptionGetterAnyAttribute( exceptionState)); 3720 ScriptValue cppValue(impl->cachedAttributeRaisesExceptionGetterAnyAttribute( exceptionState));
3814 if (UNLIKELY(exceptionState.throwIfNeeded())) 3721 if (UNLIKELY(exceptionState.throwIfNeeded()))
3815 return; 3722 return;
3816 v8::Local<v8::Value> v8Value(cppValue.v8Value()); 3723 v8::Local<v8::Value> v8Value(cppValue.v8Value());
3817 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, v8Val ue); 3724 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, v8Val ue);
3818 v8SetReturnValue(info, v8Value); 3725 v8SetReturnValue(info, v8Value);
3819 } 3726 }
3820 3727
3821 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeGetterCallb ack(const v8::FunctionCallbackInfo<v8::Value>& info) 3728 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeGetterCallb ack(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
3822 { 3729 {
3823 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3730 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3824 TestObjectV8Internal::cachedAttributeRaisesExceptionGetterAnyAttributeAttrib uteGetter(info); 3731 TestObjectV8Internal::cachedAttributeRaisesExceptionGetterAnyAttributeAttrib uteGetter(info);
3825 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3732 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3826 } 3733 }
3827 3734
3828 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeSetter(v8:: Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 3735 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeSetter(v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3829 { 3736 {
3830 v8::Local<v8::Object> holder = info.Holder(); 3737 v8::Local<v8::Object> holder = info.Holder();
3831 ExceptionState exceptionState(ExceptionState::SetterContext, "cachedAttribut eRaisesExceptionGetterAnyAttribute", "TestObject", holder, info.GetIsolate()); 3738 ExceptionState exceptionState(ExceptionState::SetterContext, "cachedAttribut eRaisesExceptionGetterAnyAttribute", "TestObject", holder, info.GetIsolate());
3832 TestObject* impl = V8TestObject::toImpl(holder); 3739 TestObject* impl = V8TestObject::toImpl(holder);
3833 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value); 3740 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value);
3834 impl->setCachedAttributeRaisesExceptionGetterAnyAttribute(cppValue, exceptio nState); 3741 impl->setCachedAttributeRaisesExceptionGetterAnyAttribute(cppValue, exceptio nState);
3835 exceptionState.throwIfNeeded(); 3742 exceptionState.throwIfNeeded();
3836 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i nfo.GetIsolate(), "cachedAttributeRaisesExceptionGetterAnyAttribute")); // Inval idate the cached value. 3743 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i nfo.GetIsolate(), "cachedAttributeRaisesExceptionGetterAnyAttribute")); // Inval idate the cached value.
3837 } 3744 }
3838 3745
3839 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeSetterCallb ack(const v8::FunctionCallbackInfo<v8::Value>& info) 3746 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeSetterCallb ack(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac kInfo<void>& info)
3840 { 3747 {
3841 v8::Local<v8::Value> v8Value = info[0];
3842 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3748 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3843 TestObjectV8Internal::cachedAttributeRaisesExceptionGetterAnyAttributeAttrib uteSetter(v8Value, info); 3749 TestObjectV8Internal::cachedAttributeRaisesExceptionGetterAnyAttributeAttrib uteSetter(v8Value, info);
3844 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3750 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3845 } 3751 }
3846 3752
3847 static void reflectTestInterfaceAttributeAttributeGetter(const v8::FunctionCallb ackInfo<v8::Value>& info) 3753 static void reflectTestInterfaceAttributeAttributeGetter(const v8::PropertyCallb ackInfo<v8::Value>& info)
3848 { 3754 {
3849 v8::Local<v8::Object> holder = info.Holder(); 3755 v8::Local<v8::Object> holder = info.Holder();
3850 TestObject* impl = V8TestObject::toImpl(holder); 3756 TestObject* impl = V8TestObject::toImpl(holder);
3851 v8SetReturnValueFast(info, WTF::getPtr(impl->fastGetAttribute(HTMLNames::ref lecttestinterfaceattributeAttr)), impl); 3757 v8SetReturnValueFast(info, WTF::getPtr(impl->fastGetAttribute(HTMLNames::ref lecttestinterfaceattributeAttr)), impl);
3852 } 3758 }
3853 3759
3854 static void reflectTestInterfaceAttributeAttributeGetterCallback(const v8::Funct ionCallbackInfo<v8::Value>& info) 3760 static void reflectTestInterfaceAttributeAttributeGetterCallback(v8::Local<v8::N ame>, const v8::PropertyCallbackInfo<v8::Value>& info)
3855 { 3761 {
3856 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3762 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3857 TestObjectV8Internal::reflectTestInterfaceAttributeAttributeGetter(info); 3763 TestObjectV8Internal::reflectTestInterfaceAttributeAttributeGetter(info);
3858 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3764 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3859 } 3765 }
3860 3766
3861 static void reflectTestInterfaceAttributeAttributeSetter(v8::Local<v8::Value> v8 Value, const v8::FunctionCallbackInfo<v8::Value>& info) 3767 static void reflectTestInterfaceAttributeAttributeSetter(v8::Local<v8::Value> v8 Value, const v8::PropertyCallbackInfo<void>& info)
3862 { 3768 {
3863 v8::Local<v8::Object> holder = info.Holder(); 3769 v8::Local<v8::Object> holder = info.Holder();
3864 TestObject* impl = V8TestObject::toImpl(holder); 3770 TestObject* impl = V8TestObject::toImpl(holder);
3865 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck (info.GetIsolate(), v8Value); 3771 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck (info.GetIsolate(), v8Value);
3866 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3772 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3867 impl->setAttribute(HTMLNames::reflecttestinterfaceattributeAttr, WTF::getPtr (cppValue)); 3773 impl->setAttribute(HTMLNames::reflecttestinterfaceattributeAttr, WTF::getPtr (cppValue));
3868 } 3774 }
3869 3775
3870 static void reflectTestInterfaceAttributeAttributeSetterCallback(const v8::Funct ionCallbackInfo<v8::Value>& info) 3776 static void reflectTestInterfaceAttributeAttributeSetterCallback(v8::Local<v8::N ame>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3871 { 3777 {
3872 v8::Local<v8::Value> v8Value = info[0];
3873 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3778 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3874 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3779 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3875 TestObjectV8Internal::reflectTestInterfaceAttributeAttributeSetter(v8Value, info); 3780 TestObjectV8Internal::reflectTestInterfaceAttributeAttributeSetter(v8Value, info);
3876 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3781 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3877 } 3782 }
3878 3783
3879 static void reflectReflectedNameAttributeTestAttributeAttributeGetter(const v8:: FunctionCallbackInfo<v8::Value>& info) 3784 static void reflectReflectedNameAttributeTestAttributeAttributeGetter(const v8:: PropertyCallbackInfo<v8::Value>& info)
3880 { 3785 {
3881 v8::Local<v8::Object> holder = info.Holder(); 3786 v8::Local<v8::Object> holder = info.Holder();
3882 TestObject* impl = V8TestObject::toImpl(holder); 3787 TestObject* impl = V8TestObject::toImpl(holder);
3883 v8SetReturnValueFast(info, WTF::getPtr(impl->fastGetAttribute(HTMLNames::ref lectedNameAttributeAttr)), impl); 3788 v8SetReturnValueFast(info, WTF::getPtr(impl->fastGetAttribute(HTMLNames::ref lectedNameAttributeAttr)), impl);
3884 } 3789 }
3885 3790
3886 static void reflectReflectedNameAttributeTestAttributeAttributeGetterCallback(co nst v8::FunctionCallbackInfo<v8::Value>& info) 3791 static void reflectReflectedNameAttributeTestAttributeAttributeGetterCallback(v8 ::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
3887 { 3792 {
3888 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3793 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3889 TestObjectV8Internal::reflectReflectedNameAttributeTestAttributeAttributeGet ter(info); 3794 TestObjectV8Internal::reflectReflectedNameAttributeTestAttributeAttributeGet ter(info);
3890 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3795 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3891 } 3796 }
3892 3797
3893 static void reflectReflectedNameAttributeTestAttributeAttributeSetter(v8::Local< v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 3798 static void reflectReflectedNameAttributeTestAttributeAttributeSetter(v8::Local< v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3894 { 3799 {
3895 v8::Local<v8::Object> holder = info.Holder(); 3800 v8::Local<v8::Object> holder = info.Holder();
3896 TestObject* impl = V8TestObject::toImpl(holder); 3801 TestObject* impl = V8TestObject::toImpl(holder);
3897 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck (info.GetIsolate(), v8Value); 3802 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck (info.GetIsolate(), v8Value);
3898 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3803 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3899 impl->setAttribute(HTMLNames::reflectedNameAttributeAttr, WTF::getPtr(cppVal ue)); 3804 impl->setAttribute(HTMLNames::reflectedNameAttributeAttr, WTF::getPtr(cppVal ue));
3900 } 3805 }
3901 3806
3902 static void reflectReflectedNameAttributeTestAttributeAttributeSetterCallback(co nst v8::FunctionCallbackInfo<v8::Value>& info) 3807 static void reflectReflectedNameAttributeTestAttributeAttributeSetterCallback(v8 ::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo< void>& info)
3903 { 3808 {
3904 v8::Local<v8::Value> v8Value = info[0];
3905 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3809 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3906 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3810 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3907 TestObjectV8Internal::reflectReflectedNameAttributeTestAttributeAttributeSet ter(v8Value, info); 3811 TestObjectV8Internal::reflectReflectedNameAttributeTestAttributeAttributeSet ter(v8Value, info);
3908 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3812 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3909 } 3813 }
3910 3814
3911 static void reflectBooleanAttributeAttributeGetter(const v8::FunctionCallbackInf o<v8::Value>& info) 3815 static void reflectBooleanAttributeAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info)
3912 { 3816 {
3913 v8::Local<v8::Object> holder = info.Holder(); 3817 v8::Local<v8::Object> holder = info.Holder();
3914 TestObject* impl = V8TestObject::toImpl(holder); 3818 TestObject* impl = V8TestObject::toImpl(holder);
3915 v8SetReturnValueBool(info, impl->fastHasAttribute(HTMLNames::reflectbooleana ttributeAttr)); 3819 v8SetReturnValueBool(info, impl->fastHasAttribute(HTMLNames::reflectbooleana ttributeAttr));
3916 } 3820 }
3917 3821
3918 static void reflectBooleanAttributeAttributeGetterCallback(const v8::FunctionCal lbackInfo<v8::Value>& info) 3822 static void reflectBooleanAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
3919 { 3823 {
3920 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3824 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3921 TestObjectV8Internal::reflectBooleanAttributeAttributeGetter(info); 3825 TestObjectV8Internal::reflectBooleanAttributeAttributeGetter(info);
3922 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3826 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3923 } 3827 }
3924 3828
3925 static void reflectBooleanAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 3829 static void reflectBooleanAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3926 { 3830 {
3927 v8::Local<v8::Object> holder = info.Holder(); 3831 v8::Local<v8::Object> holder = info.Holder();
3928 TestObject* impl = V8TestObject::toImpl(holder); 3832 TestObject* impl = V8TestObject::toImpl(holder);
3929 bool cppValue = v8Value->BooleanValue(); 3833 bool cppValue = v8Value->BooleanValue();
3930 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3834 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3931 impl->setBooleanAttribute(HTMLNames::reflectbooleanattributeAttr, cppValue); 3835 impl->setBooleanAttribute(HTMLNames::reflectbooleanattributeAttr, cppValue);
3932 } 3836 }
3933 3837
3934 static void reflectBooleanAttributeAttributeSetterCallback(const v8::FunctionCal lbackInfo<v8::Value>& info) 3838 static void reflectBooleanAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3935 { 3839 {
3936 v8::Local<v8::Value> v8Value = info[0];
3937 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3840 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3938 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3841 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3939 TestObjectV8Internal::reflectBooleanAttributeAttributeSetter(v8Value, info); 3842 TestObjectV8Internal::reflectBooleanAttributeAttributeSetter(v8Value, info);
3940 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3843 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3941 } 3844 }
3942 3845
3943 static void reflectLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v 8::Value>& info) 3846 static void reflectLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info)
3944 { 3847 {
3945 v8::Local<v8::Object> holder = info.Holder(); 3848 v8::Local<v8::Object> holder = info.Holder();
3946 TestObject* impl = V8TestObject::toImpl(holder); 3849 TestObject* impl = V8TestObject::toImpl(holder);
3947 v8SetReturnValueInt(info, impl->getIntegralAttribute(HTMLNames::reflectlonga ttributeAttr)); 3850 v8SetReturnValueInt(info, impl->getIntegralAttribute(HTMLNames::reflectlonga ttributeAttr));
3948 } 3851 }
3949 3852
3950 static void reflectLongAttributeAttributeGetterCallback(const v8::FunctionCallba ckInfo<v8::Value>& info) 3853 static void reflectLongAttributeAttributeGetterCallback(v8::Local<v8::Name>, con st v8::PropertyCallbackInfo<v8::Value>& info)
3951 { 3854 {
3952 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3855 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3953 TestObjectV8Internal::reflectLongAttributeAttributeGetter(info); 3856 TestObjectV8Internal::reflectLongAttributeAttributeGetter(info);
3954 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3857 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3955 } 3858 }
3956 3859
3957 static void reflectLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::FunctionCallbackInfo<v8::Value>& info) 3860 static void reflectLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& info)
3958 { 3861 {
3959 v8::Local<v8::Object> holder = info.Holder(); 3862 v8::Local<v8::Object> holder = info.Holder();
3960 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectLongAtt ribute", "TestObject", holder, info.GetIsolate()); 3863 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectLongAtt ribute", "TestObject", holder, info.GetIsolate());
3961 TestObject* impl = V8TestObject::toImpl(holder); 3864 TestObject* impl = V8TestObject::toImpl(holder);
3962 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 3865 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
3963 if (exceptionState.throwIfNeeded()) 3866 if (exceptionState.throwIfNeeded())
3964 return; 3867 return;
3965 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3868 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3966 impl->setIntegralAttribute(HTMLNames::reflectlongattributeAttr, cppValue); 3869 impl->setIntegralAttribute(HTMLNames::reflectlongattributeAttr, cppValue);
3967 } 3870 }
3968 3871
3969 static void reflectLongAttributeAttributeSetterCallback(const v8::FunctionCallba ckInfo<v8::Value>& info) 3872 static void reflectLongAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8: :Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3970 { 3873 {
3971 v8::Local<v8::Value> v8Value = info[0];
3972 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3874 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3973 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3875 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3974 TestObjectV8Internal::reflectLongAttributeAttributeSetter(v8Value, info); 3876 TestObjectV8Internal::reflectLongAttributeAttributeSetter(v8Value, info);
3975 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3877 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3976 } 3878 }
3977 3879
3978 static void reflectUnsignedShortAttributeAttributeGetter(const v8::FunctionCallb ackInfo<v8::Value>& info) 3880 static void reflectUnsignedShortAttributeAttributeGetter(const v8::PropertyCallb ackInfo<v8::Value>& info)
3979 { 3881 {
3980 v8::Local<v8::Object> holder = info.Holder(); 3882 v8::Local<v8::Object> holder = info.Holder();
3981 TestObject* impl = V8TestObject::toImpl(holder); 3883 TestObject* impl = V8TestObject::toImpl(holder);
3982 v8SetReturnValueUnsigned(info, std::max(0, static_cast<int>(impl->fastGetAtt ribute(HTMLNames::reflectunsignedshortattributeAttr)))); 3884 v8SetReturnValueUnsigned(info, std::max(0, static_cast<int>(impl->fastGetAtt ribute(HTMLNames::reflectunsignedshortattributeAttr))));
3983 } 3885 }
3984 3886
3985 static void reflectUnsignedShortAttributeAttributeGetterCallback(const v8::Funct ionCallbackInfo<v8::Value>& info) 3887 static void reflectUnsignedShortAttributeAttributeGetterCallback(v8::Local<v8::N ame>, const v8::PropertyCallbackInfo<v8::Value>& info)
3986 { 3888 {
3987 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3889 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3988 TestObjectV8Internal::reflectUnsignedShortAttributeAttributeGetter(info); 3890 TestObjectV8Internal::reflectUnsignedShortAttributeAttributeGetter(info);
3989 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3891 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3990 } 3892 }
3991 3893
3992 static void reflectUnsignedShortAttributeAttributeSetter(v8::Local<v8::Value> v8 Value, const v8::FunctionCallbackInfo<v8::Value>& info) 3894 static void reflectUnsignedShortAttributeAttributeSetter(v8::Local<v8::Value> v8 Value, const v8::PropertyCallbackInfo<void>& info)
3993 { 3895 {
3994 v8::Local<v8::Object> holder = info.Holder(); 3896 v8::Local<v8::Object> holder = info.Holder();
3995 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne dShortAttribute", "TestObject", holder, info.GetIsolate()); 3897 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne dShortAttribute", "TestObject", holder, info.GetIsolate());
3996 TestObject* impl = V8TestObject::toImpl(holder); 3898 TestObject* impl = V8TestObject::toImpl(holder);
3997 unsigned cppValue = toUInt16(info.GetIsolate(), v8Value, NormalConversion, e xceptionState); 3899 unsigned cppValue = toUInt16(info.GetIsolate(), v8Value, NormalConversion, e xceptionState);
3998 if (exceptionState.throwIfNeeded()) 3900 if (exceptionState.throwIfNeeded())
3999 return; 3901 return;
4000 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3902 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4001 impl->setAttribute(HTMLNames::reflectunsignedshortattributeAttr, cppValue); 3903 impl->setAttribute(HTMLNames::reflectunsignedshortattributeAttr, cppValue);
4002 } 3904 }
4003 3905
4004 static void reflectUnsignedShortAttributeAttributeSetterCallback(const v8::Funct ionCallbackInfo<v8::Value>& info) 3906 static void reflectUnsignedShortAttributeAttributeSetterCallback(v8::Local<v8::N ame>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4005 { 3907 {
4006 v8::Local<v8::Value> v8Value = info[0];
4007 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3908 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4008 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3909 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4009 TestObjectV8Internal::reflectUnsignedShortAttributeAttributeSetter(v8Value, info); 3910 TestObjectV8Internal::reflectUnsignedShortAttributeAttributeSetter(v8Value, info);
4010 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3911 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4011 } 3912 }
4012 3913
4013 static void reflectUnsignedLongAttributeAttributeGetter(const v8::FunctionCallba ckInfo<v8::Value>& info) 3914 static void reflectUnsignedLongAttributeAttributeGetter(const v8::PropertyCallba ckInfo<v8::Value>& info)
4014 { 3915 {
4015 v8::Local<v8::Object> holder = info.Holder(); 3916 v8::Local<v8::Object> holder = info.Holder();
4016 TestObject* impl = V8TestObject::toImpl(holder); 3917 TestObject* impl = V8TestObject::toImpl(holder);
4017 v8SetReturnValueUnsigned(info, std::max(0, static_cast<int>(impl->getIntegra lAttribute(HTMLNames::reflectunsignedlongattributeAttr)))); 3918 v8SetReturnValueUnsigned(info, std::max(0, static_cast<int>(impl->getIntegra lAttribute(HTMLNames::reflectunsignedlongattributeAttr))));
4018 } 3919 }
4019 3920
4020 static void reflectUnsignedLongAttributeAttributeGetterCallback(const v8::Functi onCallbackInfo<v8::Value>& info) 3921 static void reflectUnsignedLongAttributeAttributeGetterCallback(v8::Local<v8::Na me>, const v8::PropertyCallbackInfo<v8::Value>& info)
4021 { 3922 {
4022 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3923 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4023 TestObjectV8Internal::reflectUnsignedLongAttributeAttributeGetter(info); 3924 TestObjectV8Internal::reflectUnsignedLongAttributeAttributeGetter(info);
4024 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3925 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4025 } 3926 }
4026 3927
4027 static void reflectUnsignedLongAttributeAttributeSetter(v8::Local<v8::Value> v8V alue, const v8::FunctionCallbackInfo<v8::Value>& info) 3928 static void reflectUnsignedLongAttributeAttributeSetter(v8::Local<v8::Value> v8V alue, const v8::PropertyCallbackInfo<void>& info)
4028 { 3929 {
4029 v8::Local<v8::Object> holder = info.Holder(); 3930 v8::Local<v8::Object> holder = info.Holder();
4030 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne dLongAttribute", "TestObject", holder, info.GetIsolate()); 3931 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne dLongAttribute", "TestObject", holder, info.GetIsolate());
4031 TestObject* impl = V8TestObject::toImpl(holder); 3932 TestObject* impl = V8TestObject::toImpl(holder);
4032 unsigned cppValue = toUInt32(info.GetIsolate(), v8Value, NormalConversion, e xceptionState); 3933 unsigned cppValue = toUInt32(info.GetIsolate(), v8Value, NormalConversion, e xceptionState);
4033 if (exceptionState.throwIfNeeded()) 3934 if (exceptionState.throwIfNeeded())
4034 return; 3935 return;
4035 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3936 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4036 impl->setUnsignedIntegralAttribute(HTMLNames::reflectunsignedlongattributeAt tr, cppValue); 3937 impl->setUnsignedIntegralAttribute(HTMLNames::reflectunsignedlongattributeAt tr, cppValue);
4037 } 3938 }
4038 3939
4039 static void reflectUnsignedLongAttributeAttributeSetterCallback(const v8::Functi onCallbackInfo<v8::Value>& info) 3940 static void reflectUnsignedLongAttributeAttributeSetterCallback(v8::Local<v8::Na me>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4040 { 3941 {
4041 v8::Local<v8::Value> v8Value = info[0];
4042 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3942 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4043 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3943 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4044 TestObjectV8Internal::reflectUnsignedLongAttributeAttributeSetter(v8Value, i nfo); 3944 TestObjectV8Internal::reflectUnsignedLongAttributeAttributeSetter(v8Value, i nfo);
4045 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3945 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4046 } 3946 }
4047 3947
4048 static void idAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) 3948 static void idAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
4049 { 3949 {
4050 v8::Local<v8::Object> holder = info.Holder(); 3950 v8::Local<v8::Object> holder = info.Holder();
4051 TestObject* impl = V8TestObject::toImpl(holder); 3951 TestObject* impl = V8TestObject::toImpl(holder);
4052 v8SetReturnValueString(info, impl->getIdAttribute(), info.GetIsolate()); 3952 v8SetReturnValueString(info, impl->getIdAttribute(), info.GetIsolate());
4053 } 3953 }
4054 3954
4055 static void idAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 3955 static void idAttributeGetterCallback(v8::Local<v8::Name>, const v8::PropertyCal lbackInfo<v8::Value>& info)
4056 { 3956 {
4057 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3957 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4058 TestObjectV8Internal::idAttributeGetter(info); 3958 TestObjectV8Internal::idAttributeGetter(info);
4059 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3959 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4060 } 3960 }
4061 3961
4062 static void idAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCa llbackInfo<v8::Value>& info) 3962 static void idAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCa llbackInfo<void>& info)
4063 { 3963 {
4064 v8::Local<v8::Object> holder = info.Holder(); 3964 v8::Local<v8::Object> holder = info.Holder();
4065 TestObject* impl = V8TestObject::toImpl(holder); 3965 TestObject* impl = V8TestObject::toImpl(holder);
4066 V8StringResource<> cppValue = v8Value; 3966 V8StringResource<> cppValue = v8Value;
4067 if (!cppValue.prepare()) 3967 if (!cppValue.prepare())
4068 return; 3968 return;
4069 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3969 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4070 impl->setAttribute(HTMLNames::idAttr, cppValue); 3970 impl->setAttribute(HTMLNames::idAttr, cppValue);
4071 } 3971 }
4072 3972
4073 static void idAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 3973 static void idAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4074 { 3974 {
4075 v8::Local<v8::Value> v8Value = info[0];
4076 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3975 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4077 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3976 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4078 TestObjectV8Internal::idAttributeSetter(v8Value, info); 3977 TestObjectV8Internal::idAttributeSetter(v8Value, info);
4079 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3978 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4080 } 3979 }
4081 3980
4082 static void nameAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) 3981 static void nameAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
4083 { 3982 {
4084 v8::Local<v8::Object> holder = info.Holder(); 3983 v8::Local<v8::Object> holder = info.Holder();
4085 TestObject* impl = V8TestObject::toImpl(holder); 3984 TestObject* impl = V8TestObject::toImpl(holder);
4086 v8SetReturnValueString(info, impl->getNameAttribute(), info.GetIsolate()); 3985 v8SetReturnValueString(info, impl->getNameAttribute(), info.GetIsolate());
4087 } 3986 }
4088 3987
4089 static void nameAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value >& info) 3988 static void nameAttributeGetterCallback(v8::Local<v8::Name>, const v8::PropertyC allbackInfo<v8::Value>& info)
4090 { 3989 {
4091 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3990 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4092 TestObjectV8Internal::nameAttributeGetter(info); 3991 TestObjectV8Internal::nameAttributeGetter(info);
4093 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3992 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4094 } 3993 }
4095 3994
4096 static void nameAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Function CallbackInfo<v8::Value>& info) 3995 static void nameAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Property CallbackInfo<void>& info)
4097 { 3996 {
4098 v8::Local<v8::Object> holder = info.Holder(); 3997 v8::Local<v8::Object> holder = info.Holder();
4099 TestObject* impl = V8TestObject::toImpl(holder); 3998 TestObject* impl = V8TestObject::toImpl(holder);
4100 V8StringResource<> cppValue = v8Value; 3999 V8StringResource<> cppValue = v8Value;
4101 if (!cppValue.prepare()) 4000 if (!cppValue.prepare())
4102 return; 4001 return;
4103 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4002 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4104 impl->setAttribute(HTMLNames::nameAttr, cppValue); 4003 impl->setAttribute(HTMLNames::nameAttr, cppValue);
4105 } 4004 }
4106 4005
4107 static void nameAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value >& info) 4006 static void nameAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v8::Value > v8Value, const v8::PropertyCallbackInfo<void>& info)
4108 { 4007 {
4109 v8::Local<v8::Value> v8Value = info[0];
4110 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4008 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4111 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4009 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4112 TestObjectV8Internal::nameAttributeSetter(v8Value, info); 4010 TestObjectV8Internal::nameAttributeSetter(v8Value, info);
4113 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4011 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4114 } 4012 }
4115 4013
4116 static void classAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info ) 4014 static void classAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info )
4117 { 4015 {
4118 v8::Local<v8::Object> holder = info.Holder(); 4016 v8::Local<v8::Object> holder = info.Holder();
4119 TestObject* impl = V8TestObject::toImpl(holder); 4017 TestObject* impl = V8TestObject::toImpl(holder);
4120 v8SetReturnValueString(info, impl->getClassAttribute(), info.GetIsolate()); 4018 v8SetReturnValueString(info, impl->getClassAttribute(), info.GetIsolate());
4121 } 4019 }
4122 4020
4123 static void classAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Valu e>& info) 4021 static void classAttributeGetterCallback(v8::Local<v8::Name>, const v8::Property CallbackInfo<v8::Value>& info)
4124 { 4022 {
4125 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4023 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4126 TestObjectV8Internal::classAttributeGetter(info); 4024 TestObjectV8Internal::classAttributeGetter(info);
4127 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4025 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4128 } 4026 }
4129 4027
4130 static void classAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Functio nCallbackInfo<v8::Value>& info) 4028 static void classAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Propert yCallbackInfo<void>& info)
4131 { 4029 {
4132 v8::Local<v8::Object> holder = info.Holder(); 4030 v8::Local<v8::Object> holder = info.Holder();
4133 TestObject* impl = V8TestObject::toImpl(holder); 4031 TestObject* impl = V8TestObject::toImpl(holder);
4134 V8StringResource<> cppValue = v8Value; 4032 V8StringResource<> cppValue = v8Value;
4135 if (!cppValue.prepare()) 4033 if (!cppValue.prepare())
4136 return; 4034 return;
4137 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4035 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4138 impl->setAttribute(HTMLNames::classAttr, cppValue); 4036 impl->setAttribute(HTMLNames::classAttr, cppValue);
4139 } 4037 }
4140 4038
4141 static void classAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Valu e>& info) 4039 static void classAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v8::Valu e> v8Value, const v8::PropertyCallbackInfo<void>& info)
4142 { 4040 {
4143 v8::Local<v8::Value> v8Value = info[0];
4144 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4041 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4145 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4042 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4146 TestObjectV8Internal::classAttributeSetter(v8Value, info); 4043 TestObjectV8Internal::classAttributeSetter(v8Value, info);
4147 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4044 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4148 } 4045 }
4149 4046
4150 static void reflectedIdAttributeGetter(const v8::FunctionCallbackInfo<v8::Value> & info) 4047 static void reflectedIdAttributeGetter(const v8::PropertyCallbackInfo<v8::Value> & info)
4151 { 4048 {
4152 v8::Local<v8::Object> holder = info.Holder(); 4049 v8::Local<v8::Object> holder = info.Holder();
4153 TestObject* impl = V8TestObject::toImpl(holder); 4050 TestObject* impl = V8TestObject::toImpl(holder);
4154 v8SetReturnValueString(info, impl->getIdAttribute(), info.GetIsolate()); 4051 v8SetReturnValueString(info, impl->getIdAttribute(), info.GetIsolate());
4155 } 4052 }
4156 4053
4157 static void reflectedIdAttributeGetterCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info) 4054 static void reflectedIdAttributeGetterCallback(v8::Local<v8::Name>, const v8::Pr opertyCallbackInfo<v8::Value>& info)
4158 { 4055 {
4159 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4056 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4160 TestObjectV8Internal::reflectedIdAttributeGetter(info); 4057 TestObjectV8Internal::reflectedIdAttributeGetter(info);
4161 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4058 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4162 } 4059 }
4163 4060
4164 static void reflectedIdAttributeSetter(v8::Local<v8::Value> v8Value, const v8::F unctionCallbackInfo<v8::Value>& info) 4061 static void reflectedIdAttributeSetter(v8::Local<v8::Value> v8Value, const v8::P ropertyCallbackInfo<void>& info)
4165 { 4062 {
4166 v8::Local<v8::Object> holder = info.Holder(); 4063 v8::Local<v8::Object> holder = info.Holder();
4167 TestObject* impl = V8TestObject::toImpl(holder); 4064 TestObject* impl = V8TestObject::toImpl(holder);
4168 V8StringResource<> cppValue = v8Value; 4065 V8StringResource<> cppValue = v8Value;
4169 if (!cppValue.prepare()) 4066 if (!cppValue.prepare())
4170 return; 4067 return;
4171 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4068 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4172 impl->setAttribute(HTMLNames::idAttr, cppValue); 4069 impl->setAttribute(HTMLNames::idAttr, cppValue);
4173 } 4070 }
4174 4071
4175 static void reflectedIdAttributeSetterCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info) 4072 static void reflectedIdAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v8 ::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4176 { 4073 {
4177 v8::Local<v8::Value> v8Value = info[0];
4178 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4074 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4179 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4075 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4180 TestObjectV8Internal::reflectedIdAttributeSetter(v8Value, info); 4076 TestObjectV8Internal::reflectedIdAttributeSetter(v8Value, info);
4181 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4077 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4182 } 4078 }
4183 4079
4184 static void reflectedNameAttributeGetter(const v8::FunctionCallbackInfo<v8::Valu e>& info) 4080 static void reflectedNameAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu e>& info)
4185 { 4081 {
4186 v8::Local<v8::Object> holder = info.Holder(); 4082 v8::Local<v8::Object> holder = info.Holder();
4187 TestObject* impl = V8TestObject::toImpl(holder); 4083 TestObject* impl = V8TestObject::toImpl(holder);
4188 v8SetReturnValueString(info, impl->getNameAttribute(), info.GetIsolate()); 4084 v8SetReturnValueString(info, impl->getNameAttribute(), info.GetIsolate());
4189 } 4085 }
4190 4086
4191 static void reflectedNameAttributeGetterCallback(const v8::FunctionCallbackInfo< v8::Value>& info) 4087 static void reflectedNameAttributeGetterCallback(v8::Local<v8::Name>, const v8:: PropertyCallbackInfo<v8::Value>& info)
4192 { 4088 {
4193 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4089 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4194 TestObjectV8Internal::reflectedNameAttributeGetter(info); 4090 TestObjectV8Internal::reflectedNameAttributeGetter(info);
4195 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4091 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4196 } 4092 }
4197 4093
4198 static void reflectedNameAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :FunctionCallbackInfo<v8::Value>& info) 4094 static void reflectedNameAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info)
4199 { 4095 {
4200 v8::Local<v8::Object> holder = info.Holder(); 4096 v8::Local<v8::Object> holder = info.Holder();
4201 TestObject* impl = V8TestObject::toImpl(holder); 4097 TestObject* impl = V8TestObject::toImpl(holder);
4202 V8StringResource<> cppValue = v8Value; 4098 V8StringResource<> cppValue = v8Value;
4203 if (!cppValue.prepare()) 4099 if (!cppValue.prepare())
4204 return; 4100 return;
4205 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4101 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4206 impl->setAttribute(HTMLNames::nameAttr, cppValue); 4102 impl->setAttribute(HTMLNames::nameAttr, cppValue);
4207 } 4103 }
4208 4104
4209 static void reflectedNameAttributeSetterCallback(const v8::FunctionCallbackInfo< v8::Value>& info) 4105 static void reflectedNameAttributeSetterCallback(v8::Local<v8::Name>, v8::Local< v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4210 { 4106 {
4211 v8::Local<v8::Value> v8Value = info[0];
4212 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4107 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4213 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4108 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4214 TestObjectV8Internal::reflectedNameAttributeSetter(v8Value, info); 4109 TestObjectV8Internal::reflectedNameAttributeSetter(v8Value, info);
4215 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4110 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4216 } 4111 }
4217 4112
4218 static void reflectedClassAttributeGetter(const v8::FunctionCallbackInfo<v8::Val ue>& info) 4113 static void reflectedClassAttributeGetter(const v8::PropertyCallbackInfo<v8::Val ue>& info)
4219 { 4114 {
4220 v8::Local<v8::Object> holder = info.Holder(); 4115 v8::Local<v8::Object> holder = info.Holder();
4221 TestObject* impl = V8TestObject::toImpl(holder); 4116 TestObject* impl = V8TestObject::toImpl(holder);
4222 v8SetReturnValueString(info, impl->getClassAttribute(), info.GetIsolate()); 4117 v8SetReturnValueString(info, impl->getClassAttribute(), info.GetIsolate());
4223 } 4118 }
4224 4119
4225 static void reflectedClassAttributeGetterCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 4120 static void reflectedClassAttributeGetterCallback(v8::Local<v8::Name>, const v8: :PropertyCallbackInfo<v8::Value>& info)
4226 { 4121 {
4227 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4122 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4228 TestObjectV8Internal::reflectedClassAttributeGetter(info); 4123 TestObjectV8Internal::reflectedClassAttributeGetter(info);
4229 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4124 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4230 } 4125 }
4231 4126
4232 static void reflectedClassAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::FunctionCallbackInfo<v8::Value>& info) 4127 static void reflectedClassAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::PropertyCallbackInfo<void>& info)
4233 { 4128 {
4234 v8::Local<v8::Object> holder = info.Holder(); 4129 v8::Local<v8::Object> holder = info.Holder();
4235 TestObject* impl = V8TestObject::toImpl(holder); 4130 TestObject* impl = V8TestObject::toImpl(holder);
4236 V8StringResource<> cppValue = v8Value; 4131 V8StringResource<> cppValue = v8Value;
4237 if (!cppValue.prepare()) 4132 if (!cppValue.prepare())
4238 return; 4133 return;
4239 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4134 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4240 impl->setAttribute(HTMLNames::classAttr, cppValue); 4135 impl->setAttribute(HTMLNames::classAttr, cppValue);
4241 } 4136 }
4242 4137
4243 static void reflectedClassAttributeSetterCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 4138 static void reflectedClassAttributeSetterCallback(v8::Local<v8::Name>, v8::Local <v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4244 { 4139 {
4245 v8::Local<v8::Value> v8Value = info[0];
4246 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4140 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4247 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4141 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4248 TestObjectV8Internal::reflectedClassAttributeSetter(v8Value, info); 4142 TestObjectV8Internal::reflectedClassAttributeSetter(v8Value, info);
4249 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4143 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4250 } 4144 }
4251 4145
4252 static void limitedToOnlyOneAttributeAttributeGetter(const v8::FunctionCallbackI nfo<v8::Value>& info) 4146 static void limitedToOnlyOneAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info)
4253 { 4147 {
4254 v8::Local<v8::Object> holder = info.Holder(); 4148 v8::Local<v8::Object> holder = info.Holder();
4255 TestObject* impl = V8TestObject::toImpl(holder); 4149 TestObject* impl = V8TestObject::toImpl(holder);
4256 String cppValue(impl->fastGetAttribute(HTMLNames::limitedtoonlyoneattributeA ttr)); 4150 String cppValue(impl->fastGetAttribute(HTMLNames::limitedtoonlyoneattributeA ttr));
4257 if (cppValue.isEmpty()) { 4151 if (cppValue.isEmpty()) {
4258 ; 4152 ;
4259 } else if (equalIgnoringCase(cppValue, "unique")) { 4153 } else if (equalIgnoringCase(cppValue, "unique")) {
4260 cppValue = "unique"; 4154 cppValue = "unique";
4261 } else { 4155 } else {
4262 cppValue = ""; 4156 cppValue = "";
4263 } 4157 }
4264 v8SetReturnValueString(info, cppValue, info.GetIsolate()); 4158 v8SetReturnValueString(info, cppValue, info.GetIsolate());
4265 } 4159 }
4266 4160
4267 static void limitedToOnlyOneAttributeAttributeGetterCallback(const v8::FunctionC allbackInfo<v8::Value>& info) 4161 static void limitedToOnlyOneAttributeAttributeGetterCallback(v8::Local<v8::Name> , const v8::PropertyCallbackInfo<v8::Value>& info)
4268 { 4162 {
4269 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4163 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4270 TestObjectV8Internal::limitedToOnlyOneAttributeAttributeGetter(info); 4164 TestObjectV8Internal::limitedToOnlyOneAttributeAttributeGetter(info);
4271 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4165 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4272 } 4166 }
4273 4167
4274 static void limitedToOnlyOneAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::FunctionCallbackInfo<v8::Value>& info) 4168 static void limitedToOnlyOneAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::PropertyCallbackInfo<void>& info)
4275 { 4169 {
4276 v8::Local<v8::Object> holder = info.Holder(); 4170 v8::Local<v8::Object> holder = info.Holder();
4277 TestObject* impl = V8TestObject::toImpl(holder); 4171 TestObject* impl = V8TestObject::toImpl(holder);
4278 V8StringResource<> cppValue = v8Value; 4172 V8StringResource<> cppValue = v8Value;
4279 if (!cppValue.prepare()) 4173 if (!cppValue.prepare())
4280 return; 4174 return;
4281 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4175 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4282 impl->setAttribute(HTMLNames::limitedtoonlyoneattributeAttr, cppValue); 4176 impl->setAttribute(HTMLNames::limitedtoonlyoneattributeAttr, cppValue);
4283 } 4177 }
4284 4178
4285 static void limitedToOnlyOneAttributeAttributeSetterCallback(const v8::FunctionC allbackInfo<v8::Value>& info) 4179 static void limitedToOnlyOneAttributeAttributeSetterCallback(v8::Local<v8::Name> , v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4286 { 4180 {
4287 v8::Local<v8::Value> v8Value = info[0];
4288 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4181 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4289 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4182 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4290 TestObjectV8Internal::limitedToOnlyOneAttributeAttributeSetter(v8Value, info ); 4183 TestObjectV8Internal::limitedToOnlyOneAttributeAttributeSetter(v8Value, info );
4291 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4184 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4292 } 4185 }
4293 4186
4294 static void limitedToOnlyAttributeAttributeGetter(const v8::FunctionCallbackInfo <v8::Value>& info) 4187 static void limitedToOnlyAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info)
4295 { 4188 {
4296 v8::Local<v8::Object> holder = info.Holder(); 4189 v8::Local<v8::Object> holder = info.Holder();
4297 TestObject* impl = V8TestObject::toImpl(holder); 4190 TestObject* impl = V8TestObject::toImpl(holder);
4298 String cppValue(impl->fastGetAttribute(HTMLNames::limitedtoonlyattributeAttr )); 4191 String cppValue(impl->fastGetAttribute(HTMLNames::limitedtoonlyattributeAttr ));
4299 if (cppValue.isEmpty()) { 4192 if (cppValue.isEmpty()) {
4300 ; 4193 ;
4301 } else if (equalIgnoringCase(cppValue, "Per")) { 4194 } else if (equalIgnoringCase(cppValue, "Per")) {
4302 cppValue = "Per"; 4195 cppValue = "Per";
4303 } else if (equalIgnoringCase(cppValue, "Paal")) { 4196 } else if (equalIgnoringCase(cppValue, "Paal")) {
4304 cppValue = "Paal"; 4197 cppValue = "Paal";
4305 } else if (equalIgnoringCase(cppValue, "Espen")) { 4198 } else if (equalIgnoringCase(cppValue, "Espen")) {
4306 cppValue = "Espen"; 4199 cppValue = "Espen";
4307 } else { 4200 } else {
4308 cppValue = ""; 4201 cppValue = "";
4309 } 4202 }
4310 v8SetReturnValueString(info, cppValue, info.GetIsolate()); 4203 v8SetReturnValueString(info, cppValue, info.GetIsolate());
4311 } 4204 }
4312 4205
4313 static void limitedToOnlyAttributeAttributeGetterCallback(const v8::FunctionCall backInfo<v8::Value>& info) 4206 static void limitedToOnlyAttributeAttributeGetterCallback(v8::Local<v8::Name>, c onst v8::PropertyCallbackInfo<v8::Value>& info)
4314 { 4207 {
4315 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4208 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4316 TestObjectV8Internal::limitedToOnlyAttributeAttributeGetter(info); 4209 TestObjectV8Internal::limitedToOnlyAttributeAttributeGetter(info);
4317 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4210 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4318 } 4211 }
4319 4212
4320 static void limitedToOnlyAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 4213 static void limitedToOnlyAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4321 { 4214 {
4322 v8::Local<v8::Object> holder = info.Holder(); 4215 v8::Local<v8::Object> holder = info.Holder();
4323 TestObject* impl = V8TestObject::toImpl(holder); 4216 TestObject* impl = V8TestObject::toImpl(holder);
4324 V8StringResource<> cppValue = v8Value; 4217 V8StringResource<> cppValue = v8Value;
4325 if (!cppValue.prepare()) 4218 if (!cppValue.prepare())
4326 return; 4219 return;
4327 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4220 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4328 impl->setAttribute(HTMLNames::limitedtoonlyattributeAttr, cppValue); 4221 impl->setAttribute(HTMLNames::limitedtoonlyattributeAttr, cppValue);
4329 } 4222 }
4330 4223
4331 static void limitedToOnlyAttributeAttributeSetterCallback(const v8::FunctionCall backInfo<v8::Value>& info) 4224 static void limitedToOnlyAttributeAttributeSetterCallback(v8::Local<v8::Name>, v 8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4332 { 4225 {
4333 v8::Local<v8::Value> v8Value = info[0];
4334 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4226 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4335 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4227 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4336 TestObjectV8Internal::limitedToOnlyAttributeAttributeSetter(v8Value, info); 4228 TestObjectV8Internal::limitedToOnlyAttributeAttributeSetter(v8Value, info);
4337 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4229 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4338 } 4230 }
4339 4231
4340 static void limitedToOnlyOtherAttributeAttributeGetter(const v8::FunctionCallbac kInfo<v8::Value>& info) 4232 static void limitedToOnlyOtherAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info)
4341 { 4233 {
4342 v8::Local<v8::Object> holder = info.Holder(); 4234 v8::Local<v8::Object> holder = info.Holder();
4343 TestObject* impl = V8TestObject::toImpl(holder); 4235 TestObject* impl = V8TestObject::toImpl(holder);
4344 String cppValue(impl->fastGetAttribute(HTMLNames::otherAttr)); 4236 String cppValue(impl->fastGetAttribute(HTMLNames::otherAttr));
4345 if (cppValue.isEmpty()) { 4237 if (cppValue.isEmpty()) {
4346 ; 4238 ;
4347 } else if (equalIgnoringCase(cppValue, "Value1")) { 4239 } else if (equalIgnoringCase(cppValue, "Value1")) {
4348 cppValue = "Value1"; 4240 cppValue = "Value1";
4349 } else if (equalIgnoringCase(cppValue, "Value2")) { 4241 } else if (equalIgnoringCase(cppValue, "Value2")) {
4350 cppValue = "Value2"; 4242 cppValue = "Value2";
4351 } else { 4243 } else {
4352 cppValue = ""; 4244 cppValue = "";
4353 } 4245 }
4354 v8SetReturnValueString(info, cppValue, info.GetIsolate()); 4246 v8SetReturnValueString(info, cppValue, info.GetIsolate());
4355 } 4247 }
4356 4248
4357 static void limitedToOnlyOtherAttributeAttributeGetterCallback(const v8::Functio nCallbackInfo<v8::Value>& info) 4249 static void limitedToOnlyOtherAttributeAttributeGetterCallback(v8::Local<v8::Nam e>, const v8::PropertyCallbackInfo<v8::Value>& info)
4358 { 4250 {
4359 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4251 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4360 TestObjectV8Internal::limitedToOnlyOtherAttributeAttributeGetter(info); 4252 TestObjectV8Internal::limitedToOnlyOtherAttributeAttributeGetter(info);
4361 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4253 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4362 } 4254 }
4363 4255
4364 static void limitedToOnlyOtherAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::FunctionCallbackInfo<v8::Value>& info) 4256 static void limitedToOnlyOtherAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::PropertyCallbackInfo<void>& info)
4365 { 4257 {
4366 v8::Local<v8::Object> holder = info.Holder(); 4258 v8::Local<v8::Object> holder = info.Holder();
4367 TestObject* impl = V8TestObject::toImpl(holder); 4259 TestObject* impl = V8TestObject::toImpl(holder);
4368 V8StringResource<> cppValue = v8Value; 4260 V8StringResource<> cppValue = v8Value;
4369 if (!cppValue.prepare()) 4261 if (!cppValue.prepare())
4370 return; 4262 return;
4371 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4263 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4372 impl->setAttribute(HTMLNames::otherAttr, cppValue); 4264 impl->setAttribute(HTMLNames::otherAttr, cppValue);
4373 } 4265 }
4374 4266
4375 static void limitedToOnlyOtherAttributeAttributeSetterCallback(const v8::Functio nCallbackInfo<v8::Value>& info) 4267 static void limitedToOnlyOtherAttributeAttributeSetterCallback(v8::Local<v8::Nam e>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4376 { 4268 {
4377 v8::Local<v8::Value> v8Value = info[0];
4378 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4269 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4379 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4270 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4380 TestObjectV8Internal::limitedToOnlyOtherAttributeAttributeSetter(v8Value, in fo); 4271 TestObjectV8Internal::limitedToOnlyOtherAttributeAttributeSetter(v8Value, in fo);
4381 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4272 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4382 } 4273 }
4383 4274
4384 static void limitedWithMissingDefaultAttributeAttributeGetter(const v8::Function CallbackInfo<v8::Value>& info) 4275 static void limitedWithMissingDefaultAttributeAttributeGetter(const v8::Property CallbackInfo<v8::Value>& info)
4385 { 4276 {
4386 v8::Local<v8::Object> holder = info.Holder(); 4277 v8::Local<v8::Object> holder = info.Holder();
4387 TestObject* impl = V8TestObject::toImpl(holder); 4278 TestObject* impl = V8TestObject::toImpl(holder);
4388 String cppValue(impl->fastGetAttribute(HTMLNames::limitedwithmissingdefaulta ttributeAttr)); 4279 String cppValue(impl->fastGetAttribute(HTMLNames::limitedwithmissingdefaulta ttributeAttr));
4389 if (cppValue.isEmpty()) { 4280 if (cppValue.isEmpty()) {
4390 cppValue = "rsa"; 4281 cppValue = "rsa";
4391 } else if (equalIgnoringCase(cppValue, "rsa")) { 4282 } else if (equalIgnoringCase(cppValue, "rsa")) {
4392 cppValue = "rsa"; 4283 cppValue = "rsa";
4393 } else if (equalIgnoringCase(cppValue, "dsa")) { 4284 } else if (equalIgnoringCase(cppValue, "dsa")) {
4394 cppValue = "dsa"; 4285 cppValue = "dsa";
4395 } else { 4286 } else {
4396 cppValue = ""; 4287 cppValue = "";
4397 } 4288 }
4398 v8SetReturnValueString(info, cppValue, info.GetIsolate()); 4289 v8SetReturnValueString(info, cppValue, info.GetIsolate());
4399 } 4290 }
4400 4291
4401 static void limitedWithMissingDefaultAttributeAttributeGetterCallback(const v8:: FunctionCallbackInfo<v8::Value>& info) 4292 static void limitedWithMissingDefaultAttributeAttributeGetterCallback(v8::Local< v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
4402 { 4293 {
4403 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4294 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4404 TestObjectV8Internal::limitedWithMissingDefaultAttributeAttributeGetter(info ); 4295 TestObjectV8Internal::limitedWithMissingDefaultAttributeAttributeGetter(info );
4405 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4296 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4406 } 4297 }
4407 4298
4408 static void limitedWithMissingDefaultAttributeAttributeSetter(v8::Local<v8::Valu e> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 4299 static void limitedWithMissingDefaultAttributeAttributeSetter(v8::Local<v8::Valu e> v8Value, const v8::PropertyCallbackInfo<void>& info)
4409 { 4300 {
4410 v8::Local<v8::Object> holder = info.Holder(); 4301 v8::Local<v8::Object> holder = info.Holder();
4411 TestObject* impl = V8TestObject::toImpl(holder); 4302 TestObject* impl = V8TestObject::toImpl(holder);
4412 V8StringResource<> cppValue = v8Value; 4303 V8StringResource<> cppValue = v8Value;
4413 if (!cppValue.prepare()) 4304 if (!cppValue.prepare())
4414 return; 4305 return;
4415 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4306 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4416 impl->setAttribute(HTMLNames::limitedwithmissingdefaultattributeAttr, cppVal ue); 4307 impl->setAttribute(HTMLNames::limitedwithmissingdefaultattributeAttr, cppVal ue);
4417 } 4308 }
4418 4309
4419 static void limitedWithMissingDefaultAttributeAttributeSetterCallback(const v8:: FunctionCallbackInfo<v8::Value>& info) 4310 static void limitedWithMissingDefaultAttributeAttributeSetterCallback(v8::Local< v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& i nfo)
4420 { 4311 {
4421 v8::Local<v8::Value> v8Value = info[0];
4422 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4312 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4423 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4313 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4424 TestObjectV8Internal::limitedWithMissingDefaultAttributeAttributeSetter(v8Va lue, info); 4314 TestObjectV8Internal::limitedWithMissingDefaultAttributeAttributeSetter(v8Va lue, info);
4425 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4315 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4426 } 4316 }
4427 4317
4428 static void limitedWithInvalidMissingDefaultAttributeAttributeGetter(const v8::F unctionCallbackInfo<v8::Value>& info) 4318 static void limitedWithInvalidMissingDefaultAttributeAttributeGetter(const v8::P ropertyCallbackInfo<v8::Value>& info)
4429 { 4319 {
4430 v8::Local<v8::Object> holder = info.Holder(); 4320 v8::Local<v8::Object> holder = info.Holder();
4431 TestObject* impl = V8TestObject::toImpl(holder); 4321 TestObject* impl = V8TestObject::toImpl(holder);
4432 String cppValue(impl->fastGetAttribute(HTMLNames::limitedwithinvalidmissingd efaultattributeAttr)); 4322 String cppValue(impl->fastGetAttribute(HTMLNames::limitedwithinvalidmissingd efaultattributeAttr));
4433 if (cppValue.isEmpty()) { 4323 if (cppValue.isEmpty()) {
4434 cppValue = "auto"; 4324 cppValue = "auto";
4435 } else if (equalIgnoringCase(cppValue, "ltr")) { 4325 } else if (equalIgnoringCase(cppValue, "ltr")) {
4436 cppValue = "ltr"; 4326 cppValue = "ltr";
4437 } else if (equalIgnoringCase(cppValue, "rtl")) { 4327 } else if (equalIgnoringCase(cppValue, "rtl")) {
4438 cppValue = "rtl"; 4328 cppValue = "rtl";
4439 } else if (equalIgnoringCase(cppValue, "auto")) { 4329 } else if (equalIgnoringCase(cppValue, "auto")) {
4440 cppValue = "auto"; 4330 cppValue = "auto";
4441 } else { 4331 } else {
4442 cppValue = "ltr"; 4332 cppValue = "ltr";
4443 } 4333 }
4444 v8SetReturnValueString(info, cppValue, info.GetIsolate()); 4334 v8SetReturnValueString(info, cppValue, info.GetIsolate());
4445 } 4335 }
4446 4336
4447 static void limitedWithInvalidMissingDefaultAttributeAttributeGetterCallback(con st v8::FunctionCallbackInfo<v8::Value>& info) 4337 static void limitedWithInvalidMissingDefaultAttributeAttributeGetterCallback(v8: :Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
4448 { 4338 {
4449 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4339 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4450 TestObjectV8Internal::limitedWithInvalidMissingDefaultAttributeAttributeGett er(info); 4340 TestObjectV8Internal::limitedWithInvalidMissingDefaultAttributeAttributeGett er(info);
4451 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4341 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4452 } 4342 }
4453 4343
4454 static void limitedWithInvalidMissingDefaultAttributeAttributeSetter(v8::Local<v 8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 4344 static void limitedWithInvalidMissingDefaultAttributeAttributeSetter(v8::Local<v 8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4455 { 4345 {
4456 v8::Local<v8::Object> holder = info.Holder(); 4346 v8::Local<v8::Object> holder = info.Holder();
4457 TestObject* impl = V8TestObject::toImpl(holder); 4347 TestObject* impl = V8TestObject::toImpl(holder);
4458 V8StringResource<> cppValue = v8Value; 4348 V8StringResource<> cppValue = v8Value;
4459 if (!cppValue.prepare()) 4349 if (!cppValue.prepare())
4460 return; 4350 return;
4461 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4351 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4462 impl->setAttribute(HTMLNames::limitedwithinvalidmissingdefaultattributeAttr, cppValue); 4352 impl->setAttribute(HTMLNames::limitedwithinvalidmissingdefaultattributeAttr, cppValue);
4463 } 4353 }
4464 4354
4465 static void limitedWithInvalidMissingDefaultAttributeAttributeSetterCallback(con st v8::FunctionCallbackInfo<v8::Value>& info) 4355 static void limitedWithInvalidMissingDefaultAttributeAttributeSetterCallback(v8: :Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<v oid>& info)
4466 { 4356 {
4467 v8::Local<v8::Value> v8Value = info[0];
4468 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4357 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4469 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4358 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4470 TestObjectV8Internal::limitedWithInvalidMissingDefaultAttributeAttributeSett er(v8Value, info); 4359 TestObjectV8Internal::limitedWithInvalidMissingDefaultAttributeAttributeSett er(v8Value, info);
4471 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4360 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4472 } 4361 }
4473 4362
4474 static void corsSettingAttributeAttributeGetter(const v8::FunctionCallbackInfo<v 8::Value>& info) 4363 static void corsSettingAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info)
4475 { 4364 {
4476 v8::Local<v8::Object> holder = info.Holder(); 4365 v8::Local<v8::Object> holder = info.Holder();
4477 TestObject* impl = V8TestObject::toImpl(holder); 4366 TestObject* impl = V8TestObject::toImpl(holder);
4478 String cppValue(impl->fastGetAttribute(HTMLNames::corssettingattributeAttr)) ; 4367 String cppValue(impl->fastGetAttribute(HTMLNames::corssettingattributeAttr)) ;
4479 if (cppValue.isNull()) { 4368 if (cppValue.isNull()) {
4480 ; 4369 ;
4481 } else if (cppValue.isEmpty()) { 4370 } else if (cppValue.isEmpty()) {
4482 cppValue = "anonymous"; 4371 cppValue = "anonymous";
4483 } else if (equalIgnoringCase(cppValue, "anonymous")) { 4372 } else if (equalIgnoringCase(cppValue, "anonymous")) {
4484 cppValue = "anonymous"; 4373 cppValue = "anonymous";
4485 } else if (equalIgnoringCase(cppValue, "use-credentials")) { 4374 } else if (equalIgnoringCase(cppValue, "use-credentials")) {
4486 cppValue = "use-credentials"; 4375 cppValue = "use-credentials";
4487 } else { 4376 } else {
4488 cppValue = "anonymous"; 4377 cppValue = "anonymous";
4489 } 4378 }
4490 v8SetReturnValueString(info, cppValue, info.GetIsolate()); 4379 v8SetReturnValueString(info, cppValue, info.GetIsolate());
4491 } 4380 }
4492 4381
4493 static void corsSettingAttributeAttributeGetterCallback(const v8::FunctionCallba ckInfo<v8::Value>& info) 4382 static void corsSettingAttributeAttributeGetterCallback(v8::Local<v8::Name>, con st v8::PropertyCallbackInfo<v8::Value>& info)
4494 { 4383 {
4495 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4384 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4496 TestObjectV8Internal::corsSettingAttributeAttributeGetter(info); 4385 TestObjectV8Internal::corsSettingAttributeAttributeGetter(info);
4497 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4386 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4498 } 4387 }
4499 4388
4500 static void limitedWithEmptyMissingInvalidAttributeAttributeGetter(const v8::Fun ctionCallbackInfo<v8::Value>& info) 4389 static void limitedWithEmptyMissingInvalidAttributeAttributeGetter(const v8::Pro pertyCallbackInfo<v8::Value>& info)
4501 { 4390 {
4502 v8::Local<v8::Object> holder = info.Holder(); 4391 v8::Local<v8::Object> holder = info.Holder();
4503 TestObject* impl = V8TestObject::toImpl(holder); 4392 TestObject* impl = V8TestObject::toImpl(holder);
4504 String cppValue(impl->fastGetAttribute(HTMLNames::limitedwithemptymissinginv alidattributeAttr)); 4393 String cppValue(impl->fastGetAttribute(HTMLNames::limitedwithemptymissinginv alidattributeAttr));
4505 if (cppValue.isNull()) { 4394 if (cppValue.isNull()) {
4506 cppValue = "missing"; 4395 cppValue = "missing";
4507 } else if (cppValue.isEmpty()) { 4396 } else if (cppValue.isEmpty()) {
4508 cppValue = "empty"; 4397 cppValue = "empty";
4509 } else if (equalIgnoringCase(cppValue, "empty")) { 4398 } else if (equalIgnoringCase(cppValue, "empty")) {
4510 cppValue = "empty"; 4399 cppValue = "empty";
4511 } else if (equalIgnoringCase(cppValue, "missing")) { 4400 } else if (equalIgnoringCase(cppValue, "missing")) {
4512 cppValue = "missing"; 4401 cppValue = "missing";
4513 } else if (equalIgnoringCase(cppValue, "invalid")) { 4402 } else if (equalIgnoringCase(cppValue, "invalid")) {
4514 cppValue = "invalid"; 4403 cppValue = "invalid";
4515 } else if (equalIgnoringCase(cppValue, "a-normal")) { 4404 } else if (equalIgnoringCase(cppValue, "a-normal")) {
4516 cppValue = "a-normal"; 4405 cppValue = "a-normal";
4517 } else { 4406 } else {
4518 cppValue = "invalid"; 4407 cppValue = "invalid";
4519 } 4408 }
4520 v8SetReturnValueString(info, cppValue, info.GetIsolate()); 4409 v8SetReturnValueString(info, cppValue, info.GetIsolate());
4521 } 4410 }
4522 4411
4523 static void limitedWithEmptyMissingInvalidAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 4412 static void limitedWithEmptyMissingInvalidAttributeAttributeGetterCallback(v8::L ocal<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
4524 { 4413 {
4525 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4414 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4526 TestObjectV8Internal::limitedWithEmptyMissingInvalidAttributeAttributeGetter (info); 4415 TestObjectV8Internal::limitedWithEmptyMissingInvalidAttributeAttributeGetter (info);
4527 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4416 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4528 } 4417 }
4529 4418
4530 static void replaceableReadonlyLongAttributeAttributeGetter(const v8::FunctionCa llbackInfo<v8::Value>& info) 4419 static void replaceableReadonlyLongAttributeAttributeGetter(const v8::PropertyCa llbackInfo<v8::Value>& info)
4531 { 4420 {
4532 v8::Local<v8::Object> holder = info.Holder(); 4421 v8::Local<v8::Object> holder = info.Holder();
4533 TestObject* impl = V8TestObject::toImpl(holder); 4422 TestObject* impl = V8TestObject::toImpl(holder);
4534 v8SetReturnValueInt(info, impl->replaceableReadonlyLongAttribute()); 4423 v8SetReturnValueInt(info, impl->replaceableReadonlyLongAttribute());
4535 } 4424 }
4536 4425
4537 static void replaceableReadonlyLongAttributeAttributeGetterCallback(const v8::Fu nctionCallbackInfo<v8::Value>& info) 4426 static void replaceableReadonlyLongAttributeAttributeGetterCallback(v8::Local<v8 ::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
4538 { 4427 {
4539 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4428 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4540 TestObjectV8Internal::replaceableReadonlyLongAttributeAttributeGetter(info); 4429 TestObjectV8Internal::replaceableReadonlyLongAttributeAttributeGetter(info);
4541 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4430 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4542 } 4431 }
4543 4432
4544 static void replaceableReadonlyLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 4433 static void replaceableReadonlyLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4545 { 4434 {
4546 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "repl aceableReadonlyLongAttribute"); 4435 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "repl aceableReadonlyLongAttribute");
4547 TestObjectForceSetAttributeOnThis(propertyName, v8Value, info); 4436 TestObjectForceSetAttributeOnThis(propertyName, v8Value, info);
4548 } 4437 }
4549 4438
4550 static void replaceableReadonlyLongAttributeAttributeSetterCallback(const v8::Fu nctionCallbackInfo<v8::Value>& info) 4439 static void replaceableReadonlyLongAttributeAttributeSetterCallback(v8::Local<v8 ::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& inf o)
4551 { 4440 {
4552 v8::Local<v8::Value> v8Value = info[0];
4553 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4441 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4554 TestObjectV8Internal::replaceableReadonlyLongAttributeAttributeSetter(v8Valu e, info); 4442 TestObjectV8Internal::replaceableReadonlyLongAttributeAttributeSetter(v8Valu e, info);
4555 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4443 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4556 } 4444 }
4557 4445
4558 static void replaceableReadonlyLongAccessorAttributeGetter(const v8::FunctionCal lbackInfo<v8::Value>& info) 4446 static void replaceableReadonlyLongAccessorAttributeGetter(const v8::FunctionCal lbackInfo<v8::Value>& info)
4559 { 4447 {
4560 v8::Local<v8::Object> holder = info.Holder(); 4448 v8::Local<v8::Object> holder = info.Holder();
4561 TestObject* impl = V8TestObject::toImpl(holder); 4449 TestObject* impl = V8TestObject::toImpl(holder);
4562 v8SetReturnValueInt(info, impl->replaceableReadonlyLongAccessor()); 4450 v8SetReturnValueInt(info, impl->replaceableReadonlyLongAccessor());
(...skipping 13 matching lines...) Expand all
4576 } 4464 }
4577 4465
4578 static void replaceableReadonlyLongAccessorAttributeSetterCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info) 4466 static void replaceableReadonlyLongAccessorAttributeSetterCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info)
4579 { 4467 {
4580 v8::Local<v8::Value> v8Value = info[0]; 4468 v8::Local<v8::Value> v8Value = info[0];
4581 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4469 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4582 TestObjectV8Internal::replaceableReadonlyLongAccessorAttributeSetter(v8Value , info); 4470 TestObjectV8Internal::replaceableReadonlyLongAccessorAttributeSetter(v8Value , info);
4583 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4471 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4584 } 4472 }
4585 4473
4586 static void locationPutForwardsAttributeGetter(const v8::FunctionCallbackInfo<v8 ::Value>& info) 4474 static void locationPutForwardsAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info)
4587 { 4475 {
4588 v8::Local<v8::Object> holder = info.Holder(); 4476 v8::Local<v8::Object> holder = info.Holder();
4589 TestObject* impl = V8TestObject::toImpl(holder); 4477 TestObject* impl = V8TestObject::toImpl(holder);
4590 v8SetReturnValueFast(info, WTF::getPtr(impl->locationPutForwards()), impl); 4478 v8SetReturnValueFast(info, WTF::getPtr(impl->locationPutForwards()), impl);
4591 } 4479 }
4592 4480
4593 static void locationPutForwardsAttributeGetterCallback(const v8::FunctionCallbac kInfo<v8::Value>& info) 4481 static void locationPutForwardsAttributeGetterCallback(v8::Local<v8::Name>, cons t v8::PropertyCallbackInfo<v8::Value>& info)
4594 { 4482 {
4595 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4483 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4596 TestObjectV8Internal::locationPutForwardsAttributeGetter(info); 4484 TestObjectV8Internal::locationPutForwardsAttributeGetter(info);
4597 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4485 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4598 } 4486 }
4599 4487
4600 static void locationPutForwardsAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::FunctionCallbackInfo<v8::Value>& info) 4488 static void locationPutForwardsAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info)
4601 { 4489 {
4602 v8::Local<v8::Object> holder = info.Holder(); 4490 v8::Local<v8::Object> holder = info.Holder();
4603 TestObject* proxyImpl = V8TestObject::toImpl(holder); 4491 TestObject* proxyImpl = V8TestObject::toImpl(holder);
4604 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationPutForwar ds()); 4492 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationPutForwar ds());
4605 if (!impl) 4493 if (!impl)
4606 return; 4494 return;
4607 V8StringResource<> cppValue = v8Value; 4495 V8StringResource<> cppValue = v8Value;
4608 if (!cppValue.prepare()) 4496 if (!cppValue.prepare())
4609 return; 4497 return;
4610 impl->setHref(cppValue); 4498 impl->setHref(cppValue);
4611 } 4499 }
4612 4500
4613 static void locationPutForwardsAttributeSetterCallback(const v8::FunctionCallbac kInfo<v8::Value>& info) 4501 static void locationPutForwardsAttributeSetterCallback(v8::Local<v8::Name>, v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4614 { 4502 {
4615 v8::Local<v8::Value> v8Value = info[0];
4616 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4503 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4617 TestObjectV8Internal::locationPutForwardsAttributeSetter(v8Value, info); 4504 TestObjectV8Internal::locationPutForwardsAttributeSetter(v8Value, info);
4618 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4505 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4619 } 4506 }
4620 4507
4621 static void runtimeEnabledLongAttributeAttributeGetter(const v8::FunctionCallbac kInfo<v8::Value>& info) 4508 static void runtimeEnabledLongAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info)
4622 { 4509 {
4623 v8::Local<v8::Object> holder = info.Holder(); 4510 v8::Local<v8::Object> holder = info.Holder();
4624 TestObject* impl = V8TestObject::toImpl(holder); 4511 TestObject* impl = V8TestObject::toImpl(holder);
4625 v8SetReturnValueInt(info, impl->runtimeEnabledLongAttribute()); 4512 v8SetReturnValueInt(info, impl->runtimeEnabledLongAttribute());
4626 } 4513 }
4627 4514
4628 static void runtimeEnabledLongAttributeAttributeGetterCallback(const v8::Functio nCallbackInfo<v8::Value>& info) 4515 static void runtimeEnabledLongAttributeAttributeGetterCallback(v8::Local<v8::Nam e>, const v8::PropertyCallbackInfo<v8::Value>& info)
4629 { 4516 {
4630 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4517 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4631 TestObjectV8Internal::runtimeEnabledLongAttributeAttributeGetter(info); 4518 TestObjectV8Internal::runtimeEnabledLongAttributeAttributeGetter(info);
4632 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4519 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4633 } 4520 }
4634 4521
4635 static void runtimeEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::FunctionCallbackInfo<v8::Value>& info) 4522 static void runtimeEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::PropertyCallbackInfo<void>& info)
4636 { 4523 {
4637 v8::Local<v8::Object> holder = info.Holder(); 4524 v8::Local<v8::Object> holder = info.Holder();
4638 ExceptionState exceptionState(ExceptionState::SetterContext, "runtimeEnabled LongAttribute", "TestObject", holder, info.GetIsolate()); 4525 ExceptionState exceptionState(ExceptionState::SetterContext, "runtimeEnabled LongAttribute", "TestObject", holder, info.GetIsolate());
4639 TestObject* impl = V8TestObject::toImpl(holder); 4526 TestObject* impl = V8TestObject::toImpl(holder);
4640 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 4527 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
4641 if (exceptionState.throwIfNeeded()) 4528 if (exceptionState.throwIfNeeded())
4642 return; 4529 return;
4643 impl->setRuntimeEnabledLongAttribute(cppValue); 4530 impl->setRuntimeEnabledLongAttribute(cppValue);
4644 } 4531 }
4645 4532
4646 static void runtimeEnabledLongAttributeAttributeSetterCallback(const v8::Functio nCallbackInfo<v8::Value>& info) 4533 static void runtimeEnabledLongAttributeAttributeSetterCallback(v8::Local<v8::Nam e>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4647 { 4534 {
4648 v8::Local<v8::Value> v8Value = info[0];
4649 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4535 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4650 TestObjectV8Internal::runtimeEnabledLongAttributeAttributeSetter(v8Value, in fo); 4536 TestObjectV8Internal::runtimeEnabledLongAttributeAttributeSetter(v8Value, in fo);
4651 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4537 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4652 } 4538 }
4653 4539
4654 static void perContextEnabledRuntimeEnabledLongAttributeAttributeGetter(const v8 ::FunctionCallbackInfo<v8::Value>& info) 4540 static void perContextEnabledRuntimeEnabledLongAttributeAttributeGetter(const v8 ::PropertyCallbackInfo<v8::Value>& info)
4655 { 4541 {
4656 v8::Local<v8::Object> holder = info.Holder(); 4542 v8::Local<v8::Object> holder = info.Holder();
4657 TestObject* impl = V8TestObject::toImpl(holder); 4543 TestObject* impl = V8TestObject::toImpl(holder);
4658 v8SetReturnValueInt(info, impl->perContextEnabledRuntimeEnabledLongAttribute ()); 4544 v8SetReturnValueInt(info, impl->perContextEnabledRuntimeEnabledLongAttribute ());
4659 } 4545 }
4660 4546
4661 static void perContextEnabledRuntimeEnabledLongAttributeAttributeGetterCallback( const v8::FunctionCallbackInfo<v8::Value>& info) 4547 static void perContextEnabledRuntimeEnabledLongAttributeAttributeGetterCallback( v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
4662 { 4548 {
4663 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4549 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4664 TestObjectV8Internal::perContextEnabledRuntimeEnabledLongAttributeAttributeG etter(info); 4550 TestObjectV8Internal::perContextEnabledRuntimeEnabledLongAttributeAttributeG etter(info);
4665 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4551 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4666 } 4552 }
4667 4553
4668 static void perContextEnabledRuntimeEnabledLongAttributeAttributeSetter(v8::Loca l<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 4554 static void perContextEnabledRuntimeEnabledLongAttributeAttributeSetter(v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4669 { 4555 {
4670 v8::Local<v8::Object> holder = info.Holder(); 4556 v8::Local<v8::Object> holder = info.Holder();
4671 ExceptionState exceptionState(ExceptionState::SetterContext, "perContextEnab ledRuntimeEnabledLongAttribute", "TestObject", holder, info.GetIsolate()); 4557 ExceptionState exceptionState(ExceptionState::SetterContext, "perContextEnab ledRuntimeEnabledLongAttribute", "TestObject", holder, info.GetIsolate());
4672 TestObject* impl = V8TestObject::toImpl(holder); 4558 TestObject* impl = V8TestObject::toImpl(holder);
4673 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 4559 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
4674 if (exceptionState.throwIfNeeded()) 4560 if (exceptionState.throwIfNeeded())
4675 return; 4561 return;
4676 impl->setPerContextEnabledRuntimeEnabledLongAttribute(cppValue); 4562 impl->setPerContextEnabledRuntimeEnabledLongAttribute(cppValue);
4677 } 4563 }
4678 4564
4679 static void perContextEnabledRuntimeEnabledLongAttributeAttributeSetterCallback( const v8::FunctionCallbackInfo<v8::Value>& info) 4565 static void perContextEnabledRuntimeEnabledLongAttributeAttributeSetterCallback( v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInf o<void>& info)
4680 { 4566 {
4681 v8::Local<v8::Value> v8Value = info[0];
4682 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4567 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4683 TestObjectV8Internal::perContextEnabledRuntimeEnabledLongAttributeAttributeS etter(v8Value, info); 4568 TestObjectV8Internal::perContextEnabledRuntimeEnabledLongAttributeAttributeS etter(v8Value, info);
4684 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4569 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4685 } 4570 }
4686 4571
4687 #if ENABLE(CONDITION) 4572 #if ENABLE(CONDITION)
4688 static void conditionalRuntimeEnabledLongAttributeAttributeGetter(const v8::Func tionCallbackInfo<v8::Value>& info) 4573 static void conditionalRuntimeEnabledLongAttributeAttributeGetter(const v8::Prop ertyCallbackInfo<v8::Value>& info)
4689 { 4574 {
4690 v8::Local<v8::Object> holder = info.Holder(); 4575 v8::Local<v8::Object> holder = info.Holder();
4691 TestObject* impl = V8TestObject::toImpl(holder); 4576 TestObject* impl = V8TestObject::toImpl(holder);
4692 v8SetReturnValueInt(info, impl->conditionalRuntimeEnabledLongAttribute()); 4577 v8SetReturnValueInt(info, impl->conditionalRuntimeEnabledLongAttribute());
4693 } 4578 }
4694 #endif // ENABLE(CONDITION) 4579 #endif // ENABLE(CONDITION)
4695 4580
4696 #if ENABLE(CONDITION) 4581 #if ENABLE(CONDITION)
4697 static void conditionalRuntimeEnabledLongAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 4582 static void conditionalRuntimeEnabledLongAttributeAttributeGetterCallback(v8::Lo cal<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
4698 { 4583 {
4699 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4584 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4700 TestObjectV8Internal::conditionalRuntimeEnabledLongAttributeAttributeGetter( info); 4585 TestObjectV8Internal::conditionalRuntimeEnabledLongAttributeAttributeGetter( info);
4701 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4586 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4702 } 4587 }
4703 #endif // ENABLE(CONDITION) 4588 #endif // ENABLE(CONDITION)
4704 4589
4705 #if ENABLE(CONDITION) 4590 #if ENABLE(CONDITION)
4706 static void conditionalRuntimeEnabledLongAttributeAttributeSetter(v8::Local<v8:: Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 4591 static void conditionalRuntimeEnabledLongAttributeAttributeSetter(v8::Local<v8:: Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4707 { 4592 {
4708 v8::Local<v8::Object> holder = info.Holder(); 4593 v8::Local<v8::Object> holder = info.Holder();
4709 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalRun timeEnabledLongAttribute", "TestObject", holder, info.GetIsolate()); 4594 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalRun timeEnabledLongAttribute", "TestObject", holder, info.GetIsolate());
4710 TestObject* impl = V8TestObject::toImpl(holder); 4595 TestObject* impl = V8TestObject::toImpl(holder);
4711 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 4596 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
4712 if (exceptionState.throwIfNeeded()) 4597 if (exceptionState.throwIfNeeded())
4713 return; 4598 return;
4714 impl->setConditionalRuntimeEnabledLongAttribute(cppValue); 4599 impl->setConditionalRuntimeEnabledLongAttribute(cppValue);
4715 } 4600 }
4716 #endif // ENABLE(CONDITION) 4601 #endif // ENABLE(CONDITION)
4717 4602
4718 #if ENABLE(CONDITION) 4603 #if ENABLE(CONDITION)
4719 static void conditionalRuntimeEnabledLongAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 4604 static void conditionalRuntimeEnabledLongAttributeAttributeSetterCallback(v8::Lo cal<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info)
4720 { 4605 {
4721 v8::Local<v8::Value> v8Value = info[0];
4722 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4606 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4723 TestObjectV8Internal::conditionalRuntimeEnabledLongAttributeAttributeSetter( v8Value, info); 4607 TestObjectV8Internal::conditionalRuntimeEnabledLongAttributeAttributeSetter( v8Value, info);
4724 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4608 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4725 } 4609 }
4726 #endif // ENABLE(CONDITION) 4610 #endif // ENABLE(CONDITION)
4727 4611
4728 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeGett er(const v8::FunctionCallbackInfo<v8::Value>& info) 4612 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeGett er(const v8::PropertyCallbackInfo<v8::Value>& info)
4729 { 4613 {
4730 v8::Local<v8::Object> holder = info.Holder(); 4614 v8::Local<v8::Object> holder = info.Holder();
4731 TestObject* impl = V8TestObject::toImpl(holder); 4615 TestObject* impl = V8TestObject::toImpl(holder);
4732 v8SetReturnValueString(info, impl->setterCallWithActiveWindowAndFirstWindowS tringAttribute(), info.GetIsolate()); 4616 v8SetReturnValueString(info, impl->setterCallWithActiveWindowAndFirstWindowS tringAttribute(), info.GetIsolate());
4733 } 4617 }
4734 4618
4735 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeGett erCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 4619 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeGett erCallback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
4736 { 4620 {
4737 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4621 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4738 TestObjectV8Internal::setterCallWithActiveWindowAndFirstWindowStringAttribut eAttributeGetter(info); 4622 TestObjectV8Internal::setterCallWithActiveWindowAndFirstWindowStringAttribut eAttributeGetter(info);
4739 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4623 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4740 } 4624 }
4741 4625
4742 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeSett er(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info ) 4626 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeSett er(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4743 { 4627 {
4744 v8::Local<v8::Object> holder = info.Holder(); 4628 v8::Local<v8::Object> holder = info.Holder();
4745 TestObject* impl = V8TestObject::toImpl(holder); 4629 TestObject* impl = V8TestObject::toImpl(holder);
4746 V8StringResource<> cppValue = v8Value; 4630 V8StringResource<> cppValue = v8Value;
4747 if (!cppValue.prepare()) 4631 if (!cppValue.prepare())
4748 return; 4632 return;
4749 impl->setSetterCallWithActiveWindowAndFirstWindowStringAttribute(callingDOMW indow(info.GetIsolate()), enteredDOMWindow(info.GetIsolate()), cppValue); 4633 impl->setSetterCallWithActiveWindowAndFirstWindowStringAttribute(callingDOMW indow(info.GetIsolate()), enteredDOMWindow(info.GetIsolate()), cppValue);
4750 } 4634 }
4751 4635
4752 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeSett erCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 4636 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeSett erCallback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::Property CallbackInfo<void>& info)
4753 { 4637 {
4754 v8::Local<v8::Value> v8Value = info[0];
4755 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4638 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4756 TestObjectV8Internal::setterCallWithActiveWindowAndFirstWindowStringAttribut eAttributeSetter(v8Value, info); 4639 TestObjectV8Internal::setterCallWithActiveWindowAndFirstWindowStringAttribut eAttributeSetter(v8Value, info);
4757 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4640 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4758 } 4641 }
4759 4642
4760 static void setterCallWithExecutionContextStringAttributeAttributeGetter(const v 8::FunctionCallbackInfo<v8::Value>& info) 4643 static void setterCallWithExecutionContextStringAttributeAttributeGetter(const v 8::PropertyCallbackInfo<v8::Value>& info)
4761 { 4644 {
4762 v8::Local<v8::Object> holder = info.Holder(); 4645 v8::Local<v8::Object> holder = info.Holder();
4763 TestObject* impl = V8TestObject::toImpl(holder); 4646 TestObject* impl = V8TestObject::toImpl(holder);
4764 v8SetReturnValueString(info, impl->setterCallWithExecutionContextStringAttri bute(), info.GetIsolate()); 4647 v8SetReturnValueString(info, impl->setterCallWithExecutionContextStringAttri bute(), info.GetIsolate());
4765 } 4648 }
4766 4649
4767 static void setterCallWithExecutionContextStringAttributeAttributeGetterCallback (const v8::FunctionCallbackInfo<v8::Value>& info) 4650 static void setterCallWithExecutionContextStringAttributeAttributeGetterCallback (v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
4768 { 4651 {
4769 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4652 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4770 TestObjectV8Internal::setterCallWithExecutionContextStringAttributeAttribute Getter(info); 4653 TestObjectV8Internal::setterCallWithExecutionContextStringAttributeAttribute Getter(info);
4771 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4654 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4772 } 4655 }
4773 4656
4774 static void setterCallWithExecutionContextStringAttributeAttributeSetter(v8::Loc al<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 4657 static void setterCallWithExecutionContextStringAttributeAttributeSetter(v8::Loc al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4775 { 4658 {
4776 v8::Local<v8::Object> holder = info.Holder(); 4659 v8::Local<v8::Object> holder = info.Holder();
4777 TestObject* impl = V8TestObject::toImpl(holder); 4660 TestObject* impl = V8TestObject::toImpl(holder);
4778 V8StringResource<> cppValue = v8Value; 4661 V8StringResource<> cppValue = v8Value;
4779 if (!cppValue.prepare()) 4662 if (!cppValue.prepare())
4780 return; 4663 return;
4781 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ()); 4664 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ());
4782 impl->setSetterCallWithExecutionContextStringAttribute(executionContext, cpp Value); 4665 impl->setSetterCallWithExecutionContextStringAttribute(executionContext, cpp Value);
4783 } 4666 }
4784 4667
4785 static void setterCallWithExecutionContextStringAttributeAttributeSetterCallback (const v8::FunctionCallbackInfo<v8::Value>& info) 4668 static void setterCallWithExecutionContextStringAttributeAttributeSetterCallback (v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackIn fo<void>& info)
4786 { 4669 {
4787 v8::Local<v8::Value> v8Value = info[0];
4788 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4670 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4789 TestObjectV8Internal::setterCallWithExecutionContextStringAttributeAttribute Setter(v8Value, info); 4671 TestObjectV8Internal::setterCallWithExecutionContextStringAttributeAttribute Setter(v8Value, info);
4790 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4672 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4791 } 4673 }
4792 4674
4793 static void treatNullAsEmptyStringStringAttributeAttributeGetter(const v8::Funct ionCallbackInfo<v8::Value>& info) 4675 static void treatNullAsEmptyStringStringAttributeAttributeGetter(const v8::Prope rtyCallbackInfo<v8::Value>& info)
4794 { 4676 {
4795 v8::Local<v8::Object> holder = info.Holder(); 4677 v8::Local<v8::Object> holder = info.Holder();
4796 TestObject* impl = V8TestObject::toImpl(holder); 4678 TestObject* impl = V8TestObject::toImpl(holder);
4797 v8SetReturnValueString(info, impl->treatNullAsEmptyStringStringAttribute(), info.GetIsolate()); 4679 v8SetReturnValueString(info, impl->treatNullAsEmptyStringStringAttribute(), info.GetIsolate());
4798 } 4680 }
4799 4681
4800 static void treatNullAsEmptyStringStringAttributeAttributeGetterCallback(const v 8::FunctionCallbackInfo<v8::Value>& info) 4682 static void treatNullAsEmptyStringStringAttributeAttributeGetterCallback(v8::Loc al<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
4801 { 4683 {
4802 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4684 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4803 TestObjectV8Internal::treatNullAsEmptyStringStringAttributeAttributeGetter(i nfo); 4685 TestObjectV8Internal::treatNullAsEmptyStringStringAttributeAttributeGetter(i nfo);
4804 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4686 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4805 } 4687 }
4806 4688
4807 static void treatNullAsEmptyStringStringAttributeAttributeSetter(v8::Local<v8::V alue> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 4689 static void treatNullAsEmptyStringStringAttributeAttributeSetter(v8::Local<v8::V alue> v8Value, const v8::PropertyCallbackInfo<void>& info)
4808 { 4690 {
4809 v8::Local<v8::Object> holder = info.Holder(); 4691 v8::Local<v8::Object> holder = info.Holder();
4810 TestObject* impl = V8TestObject::toImpl(holder); 4692 TestObject* impl = V8TestObject::toImpl(holder);
4811 V8StringResource<TreatNullAsEmptyString> cppValue = v8Value; 4693 V8StringResource<TreatNullAsEmptyString> cppValue = v8Value;
4812 if (!cppValue.prepare()) 4694 if (!cppValue.prepare())
4813 return; 4695 return;
4814 impl->setTreatNullAsEmptyStringStringAttribute(cppValue); 4696 impl->setTreatNullAsEmptyStringStringAttribute(cppValue);
4815 } 4697 }
4816 4698
4817 static void treatNullAsEmptyStringStringAttributeAttributeSetterCallback(const v 8::FunctionCallbackInfo<v8::Value>& info) 4699 static void treatNullAsEmptyStringStringAttributeAttributeSetterCallback(v8::Loc al<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void> & info)
4818 { 4700 {
4819 v8::Local<v8::Value> v8Value = info[0];
4820 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4701 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4821 TestObjectV8Internal::treatNullAsEmptyStringStringAttributeAttributeSetter(v 8Value, info); 4702 TestObjectV8Internal::treatNullAsEmptyStringStringAttributeAttributeSetter(v 8Value, info);
4822 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4703 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4823 } 4704 }
4824 4705
4825 static void treatNullAsNullStringStringAttributeAttributeGetter(const v8::Functi onCallbackInfo<v8::Value>& info) 4706 static void treatNullAsNullStringStringAttributeAttributeGetter(const v8::Proper tyCallbackInfo<v8::Value>& info)
4826 { 4707 {
4827 v8::Local<v8::Object> holder = info.Holder(); 4708 v8::Local<v8::Object> holder = info.Holder();
4828 TestObject* impl = V8TestObject::toImpl(holder); 4709 TestObject* impl = V8TestObject::toImpl(holder);
4829 v8SetReturnValueString(info, impl->treatNullAsNullStringStringAttribute(), i nfo.GetIsolate()); 4710 v8SetReturnValueString(info, impl->treatNullAsNullStringStringAttribute(), i nfo.GetIsolate());
4830 } 4711 }
4831 4712
4832 static void treatNullAsNullStringStringAttributeAttributeGetterCallback(const v8 ::FunctionCallbackInfo<v8::Value>& info) 4713 static void treatNullAsNullStringStringAttributeAttributeGetterCallback(v8::Loca l<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
4833 { 4714 {
4834 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4715 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4835 TestObjectV8Internal::treatNullAsNullStringStringAttributeAttributeGetter(in fo); 4716 TestObjectV8Internal::treatNullAsNullStringStringAttributeAttributeGetter(in fo);
4836 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4717 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4837 } 4718 }
4838 4719
4839 static void treatNullAsNullStringStringAttributeAttributeSetter(v8::Local<v8::Va lue> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 4720 static void treatNullAsNullStringStringAttributeAttributeSetter(v8::Local<v8::Va lue> v8Value, const v8::PropertyCallbackInfo<void>& info)
4840 { 4721 {
4841 v8::Local<v8::Object> holder = info.Holder(); 4722 v8::Local<v8::Object> holder = info.Holder();
4842 TestObject* impl = V8TestObject::toImpl(holder); 4723 TestObject* impl = V8TestObject::toImpl(holder);
4843 V8StringResource<TreatNullAsNullString> cppValue = v8Value; 4724 V8StringResource<TreatNullAsNullString> cppValue = v8Value;
4844 if (!cppValue.prepare()) 4725 if (!cppValue.prepare())
4845 return; 4726 return;
4846 impl->setTreatNullAsNullStringStringAttribute(cppValue); 4727 impl->setTreatNullAsNullStringStringAttribute(cppValue);
4847 } 4728 }
4848 4729
4849 static void treatNullAsNullStringStringAttributeAttributeSetterCallback(const v8 ::FunctionCallbackInfo<v8::Value>& info) 4730 static void treatNullAsNullStringStringAttributeAttributeSetterCallback(v8::Loca l<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4850 { 4731 {
4851 v8::Local<v8::Value> v8Value = info[0];
4852 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4732 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4853 TestObjectV8Internal::treatNullAsNullStringStringAttributeAttributeSetter(v8 Value, info); 4733 TestObjectV8Internal::treatNullAsNullStringStringAttributeAttributeSetter(v8 Value, info);
4854 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4734 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4855 } 4735 }
4856 4736
4857 static void treatReturnedNullStringAsNullStringAttributeAttributeGetter(const v8 ::FunctionCallbackInfo<v8::Value>& info) 4737 static void treatReturnedNullStringAsNullStringAttributeAttributeGetter(const v8 ::PropertyCallbackInfo<v8::Value>& info)
4858 { 4738 {
4859 v8::Local<v8::Object> holder = info.Holder(); 4739 v8::Local<v8::Object> holder = info.Holder();
4860 TestObject* impl = V8TestObject::toImpl(holder); 4740 TestObject* impl = V8TestObject::toImpl(holder);
4861 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullString Attribute(), info.GetIsolate()); 4741 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullString Attribute(), info.GetIsolate());
4862 } 4742 }
4863 4743
4864 static void treatReturnedNullStringAsNullStringAttributeAttributeGetterCallback( const v8::FunctionCallbackInfo<v8::Value>& info) 4744 static void treatReturnedNullStringAsNullStringAttributeAttributeGetterCallback( v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
4865 { 4745 {
4866 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4746 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4867 TestObjectV8Internal::treatReturnedNullStringAsNullStringAttributeAttributeG etter(info); 4747 TestObjectV8Internal::treatReturnedNullStringAsNullStringAttributeAttributeG etter(info);
4868 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4748 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4869 } 4749 }
4870 4750
4871 static void treatReturnedNullStringAsNullStringAttributeAttributeSetter(v8::Loca l<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 4751 static void treatReturnedNullStringAsNullStringAttributeAttributeSetter(v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4872 { 4752 {
4873 v8::Local<v8::Object> holder = info.Holder(); 4753 v8::Local<v8::Object> holder = info.Holder();
4874 TestObject* impl = V8TestObject::toImpl(holder); 4754 TestObject* impl = V8TestObject::toImpl(holder);
4875 V8StringResource<> cppValue = v8Value; 4755 V8StringResource<> cppValue = v8Value;
4876 if (!cppValue.prepare()) 4756 if (!cppValue.prepare())
4877 return; 4757 return;
4878 impl->setTreatReturnedNullStringAsNullStringAttribute(cppValue); 4758 impl->setTreatReturnedNullStringAsNullStringAttribute(cppValue);
4879 } 4759 }
4880 4760
4881 static void treatReturnedNullStringAsNullStringAttributeAttributeSetterCallback( const v8::FunctionCallbackInfo<v8::Value>& info) 4761 static void treatReturnedNullStringAsNullStringAttributeAttributeSetterCallback( v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInf o<void>& info)
4882 { 4762 {
4883 v8::Local<v8::Value> v8Value = info[0];
4884 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4763 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4885 TestObjectV8Internal::treatReturnedNullStringAsNullStringAttributeAttributeS etter(v8Value, info); 4764 TestObjectV8Internal::treatReturnedNullStringAsNullStringAttributeAttributeS etter(v8Value, info);
4886 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4765 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4887 } 4766 }
4888 4767
4889 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeGetter(con st v8::FunctionCallbackInfo<v8::Value>& info) 4768 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeGetter(con st v8::PropertyCallbackInfo<v8::Value>& info)
4890 { 4769 {
4891 v8::Local<v8::Object> holder = info.Holder(); 4770 v8::Local<v8::Object> holder = info.Holder();
4892 TestObject* impl = V8TestObject::toImpl(holder); 4771 TestObject* impl = V8TestObject::toImpl(holder);
4893 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef inedStringAttribute(), info.GetIsolate()); 4772 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef inedStringAttribute(), info.GetIsolate());
4894 } 4773 }
4895 4774
4896 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeGetterCall back(const v8::FunctionCallbackInfo<v8::Value>& info) 4775 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeGetterCall back(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
4897 { 4776 {
4898 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4777 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4899 TestObjectV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAttri buteGetter(info); 4778 TestObjectV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAttri buteGetter(info);
4900 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4779 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4901 } 4780 }
4902 4781
4903 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeSetter(v8: :Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 4782 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeSetter(v8: :Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4904 { 4783 {
4905 v8::Local<v8::Object> holder = info.Holder(); 4784 v8::Local<v8::Object> holder = info.Holder();
4906 TestObject* impl = V8TestObject::toImpl(holder); 4785 TestObject* impl = V8TestObject::toImpl(holder);
4907 V8StringResource<> cppValue = v8Value; 4786 V8StringResource<> cppValue = v8Value;
4908 if (!cppValue.prepare()) 4787 if (!cppValue.prepare())
4909 return; 4788 return;
4910 impl->setTreatReturnedNullStringAsUndefinedStringAttribute(cppValue); 4789 impl->setTreatReturnedNullStringAsUndefinedStringAttribute(cppValue);
4911 } 4790 }
4912 4791
4913 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeSetterCall back(const v8::FunctionCallbackInfo<v8::Value>& info) 4792 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeSetterCall back(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallba ckInfo<void>& info)
4914 { 4793 {
4915 v8::Local<v8::Value> v8Value = info[0];
4916 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4794 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4917 TestObjectV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAttri buteSetter(v8Value, info); 4795 TestObjectV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAttri buteSetter(v8Value, info);
4918 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4796 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4919 } 4797 }
4920 4798
4921 static void cachedTreatReturnedNullStringAsUndefinedStringAttributeAttributeGett er(const v8::FunctionCallbackInfo<v8::Value>& info) 4799 static void cachedTreatReturnedNullStringAsUndefinedStringAttributeAttributeGett er(const v8::PropertyCallbackInfo<v8::Value>& info)
4922 { 4800 {
4923 v8::Local<v8::Object> holder = info.Holder(); 4801 v8::Local<v8::Object> holder = info.Holder();
4924 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cach edTreatReturnedNullStringAsUndefinedStringAttribute"); 4802 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cach edTreatReturnedNullStringAsUndefinedStringAttribute");
4925 TestObject* impl = V8TestObject::toImpl(holder); 4803 TestObject* impl = V8TestObject::toImpl(holder);
4926 if (!impl->isStringDirty()) { 4804 if (!impl->isStringDirty()) {
4927 v8::Local<v8::Value> v8Value = V8HiddenValue::getHiddenValue(info.GetIso late(), holder, propertyName); 4805 v8::Local<v8::Value> v8Value = V8HiddenValue::getHiddenValue(info.GetIso late(), holder, propertyName);
4928 if (!v8Value.IsEmpty()) { 4806 if (!v8Value.IsEmpty()) {
4929 v8SetReturnValue(info, v8Value); 4807 v8SetReturnValue(info, v8Value);
4930 return; 4808 return;
4931 } 4809 }
4932 } 4810 }
4933 String cppValue(impl->cachedTreatReturnedNullStringAsUndefinedStringAttribut e()); 4811 String cppValue(impl->cachedTreatReturnedNullStringAsUndefinedStringAttribut e());
4934 v8::Local<v8::Value> v8Value(cppValue.isNull() ? v8Undefined() : v8String(in fo.GetIsolate(), cppValue)); 4812 v8::Local<v8::Value> v8Value(cppValue.isNull() ? v8Undefined() : v8String(in fo.GetIsolate(), cppValue));
4935 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, v8Val ue); 4813 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, v8Val ue);
4936 v8SetReturnValue(info, v8Value); 4814 v8SetReturnValue(info, v8Value);
4937 } 4815 }
4938 4816
4939 static void cachedTreatReturnedNullStringAsUndefinedStringAttributeAttributeGett erCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 4817 static void cachedTreatReturnedNullStringAsUndefinedStringAttributeAttributeGett erCallback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
4940 { 4818 {
4941 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4819 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4942 TestObjectV8Internal::cachedTreatReturnedNullStringAsUndefinedStringAttribut eAttributeGetter(info); 4820 TestObjectV8Internal::cachedTreatReturnedNullStringAsUndefinedStringAttribut eAttributeGetter(info);
4943 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4821 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4944 } 4822 }
4945 4823
4946 static void cachedTreatReturnedNullStringAsUndefinedStringAttributeAttributeSett er(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info ) 4824 static void cachedTreatReturnedNullStringAsUndefinedStringAttributeAttributeSett er(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4947 { 4825 {
4948 v8::Local<v8::Object> holder = info.Holder(); 4826 v8::Local<v8::Object> holder = info.Holder();
4949 TestObject* impl = V8TestObject::toImpl(holder); 4827 TestObject* impl = V8TestObject::toImpl(holder);
4950 V8StringResource<> cppValue = v8Value; 4828 V8StringResource<> cppValue = v8Value;
4951 if (!cppValue.prepare()) 4829 if (!cppValue.prepare())
4952 return; 4830 return;
4953 impl->setCachedTreatReturnedNullStringAsUndefinedStringAttribute(cppValue); 4831 impl->setCachedTreatReturnedNullStringAsUndefinedStringAttribute(cppValue);
4954 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i nfo.GetIsolate(), "cachedTreatReturnedNullStringAsUndefinedStringAttribute")); / / Invalidate the cached value. 4832 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i nfo.GetIsolate(), "cachedTreatReturnedNullStringAsUndefinedStringAttribute")); / / Invalidate the cached value.
4955 } 4833 }
4956 4834
4957 static void cachedTreatReturnedNullStringAsUndefinedStringAttributeAttributeSett erCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 4835 static void cachedTreatReturnedNullStringAsUndefinedStringAttributeAttributeSett erCallback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::Property CallbackInfo<void>& info)
4958 { 4836 {
4959 v8::Local<v8::Value> v8Value = info[0];
4960 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4837 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4961 TestObjectV8Internal::cachedTreatReturnedNullStringAsUndefinedStringAttribut eAttributeSetter(v8Value, info); 4838 TestObjectV8Internal::cachedTreatReturnedNullStringAsUndefinedStringAttribut eAttributeSetter(v8Value, info);
4962 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4839 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4963 } 4840 }
4964 4841
4965 static void treatReturnedNullStringAsNullByteStringAttributeAttributeGetter(cons t v8::FunctionCallbackInfo<v8::Value>& info) 4842 static void treatReturnedNullStringAsNullByteStringAttributeAttributeGetter(cons t v8::PropertyCallbackInfo<v8::Value>& info)
4966 { 4843 {
4967 v8::Local<v8::Object> holder = info.Holder(); 4844 v8::Local<v8::Object> holder = info.Holder();
4968 TestObject* impl = V8TestObject::toImpl(holder); 4845 TestObject* impl = V8TestObject::toImpl(holder);
4969 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullByteSt ringAttribute(), info.GetIsolate()); 4846 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullByteSt ringAttribute(), info.GetIsolate());
4970 } 4847 }
4971 4848
4972 static void treatReturnedNullStringAsNullByteStringAttributeAttributeGetterCallb ack(const v8::FunctionCallbackInfo<v8::Value>& info) 4849 static void treatReturnedNullStringAsNullByteStringAttributeAttributeGetterCallb ack(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
4973 { 4850 {
4974 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4851 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4975 TestObjectV8Internal::treatReturnedNullStringAsNullByteStringAttributeAttrib uteGetter(info); 4852 TestObjectV8Internal::treatReturnedNullStringAsNullByteStringAttributeAttrib uteGetter(info);
4976 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4853 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4977 } 4854 }
4978 4855
4979 static void treatReturnedNullStringAsNullByteStringAttributeAttributeSetter(v8:: Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 4856 static void treatReturnedNullStringAsNullByteStringAttributeAttributeSetter(v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4980 { 4857 {
4981 v8::Local<v8::Object> holder = info.Holder(); 4858 v8::Local<v8::Object> holder = info.Holder();
4982 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN ullStringAsNullByteStringAttribute", "TestObject", holder, info.GetIsolate()); 4859 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN ullStringAsNullByteStringAttribute", "TestObject", holder, info.GetIsolate());
4983 TestObject* impl = V8TestObject::toImpl(holder); 4860 TestObject* impl = V8TestObject::toImpl(holder);
4984 V8StringResource<> cppValue = toByteString(info.GetIsolate(), v8Value, excep tionState); 4861 V8StringResource<> cppValue = toByteString(info.GetIsolate(), v8Value, excep tionState);
4985 if (exceptionState.throwIfNeeded()) 4862 if (exceptionState.throwIfNeeded())
4986 return; 4863 return;
4987 impl->setTreatReturnedNullStringAsNullByteStringAttribute(cppValue); 4864 impl->setTreatReturnedNullStringAsNullByteStringAttribute(cppValue);
4988 } 4865 }
4989 4866
4990 static void treatReturnedNullStringAsNullByteStringAttributeAttributeSetterCallb ack(const v8::FunctionCallbackInfo<v8::Value>& info) 4867 static void treatReturnedNullStringAsNullByteStringAttributeAttributeSetterCallb ack(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac kInfo<void>& info)
4991 { 4868 {
4992 v8::Local<v8::Value> v8Value = info[0];
4993 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4869 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4994 TestObjectV8Internal::treatReturnedNullStringAsNullByteStringAttributeAttrib uteSetter(v8Value, info); 4870 TestObjectV8Internal::treatReturnedNullStringAsNullByteStringAttributeAttrib uteSetter(v8Value, info);
4995 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4871 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4996 } 4872 }
4997 4873
4998 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeGetter (const v8::FunctionCallbackInfo<v8::Value>& info) 4874 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeGetter (const v8::PropertyCallbackInfo<v8::Value>& info)
4999 { 4875 {
5000 v8::Local<v8::Object> holder = info.Holder(); 4876 v8::Local<v8::Object> holder = info.Holder();
5001 TestObject* impl = V8TestObject::toImpl(holder); 4877 TestObject* impl = V8TestObject::toImpl(holder);
5002 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef inedByteStringAttribute(), info.GetIsolate()); 4878 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef inedByteStringAttribute(), info.GetIsolate());
5003 } 4879 }
5004 4880
5005 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeGetter Callback(const v8::FunctionCallbackInfo<v8::Value>& info) 4881 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeGetter Callback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
5006 { 4882 {
5007 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4883 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
5008 TestObjectV8Internal::treatReturnedNullStringAsUndefinedByteStringAttributeA ttributeGetter(info); 4884 TestObjectV8Internal::treatReturnedNullStringAsUndefinedByteStringAttributeA ttributeGetter(info);
5009 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4885 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5010 } 4886 }
5011 4887
5012 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeSetter (v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 4888 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeSetter (v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
5013 { 4889 {
5014 v8::Local<v8::Object> holder = info.Holder(); 4890 v8::Local<v8::Object> holder = info.Holder();
5015 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN ullStringAsUndefinedByteStringAttribute", "TestObject", holder, info.GetIsolate( )); 4891 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN ullStringAsUndefinedByteStringAttribute", "TestObject", holder, info.GetIsolate( ));
5016 TestObject* impl = V8TestObject::toImpl(holder); 4892 TestObject* impl = V8TestObject::toImpl(holder);
5017 V8StringResource<> cppValue = toByteString(info.GetIsolate(), v8Value, excep tionState); 4893 V8StringResource<> cppValue = toByteString(info.GetIsolate(), v8Value, excep tionState);
5018 if (exceptionState.throwIfNeeded()) 4894 if (exceptionState.throwIfNeeded())
5019 return; 4895 return;
5020 impl->setTreatReturnedNullStringAsUndefinedByteStringAttribute(cppValue); 4896 impl->setTreatReturnedNullStringAsUndefinedByteStringAttribute(cppValue);
5021 } 4897 }
5022 4898
5023 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeSetter Callback(const v8::FunctionCallbackInfo<v8::Value>& info) 4899 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeSetter Callback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCa llbackInfo<void>& info)
5024 { 4900 {
5025 v8::Local<v8::Value> v8Value = info[0];
5026 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4901 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
5027 TestObjectV8Internal::treatReturnedNullStringAsUndefinedByteStringAttributeA ttributeSetter(v8Value, info); 4902 TestObjectV8Internal::treatReturnedNullStringAsUndefinedByteStringAttributeA ttributeSetter(v8Value, info);
5028 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4903 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5029 } 4904 }
5030 4905
5031 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) 4906 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
5032 { 4907 {
5033 v8::Local<v8::Object> holder = info.Holder(); 4908 v8::Local<v8::Object> holder = info.Holder();
5034 TestObject* impl = V8TestObject::toImpl(holder); 4909 TestObject* impl = V8TestObject::toImpl(holder);
5035 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullUSVStr ingAttribute(), info.GetIsolate()); 4910 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullUSVStr ingAttribute(), info.GetIsolate());
5036 } 4911 }
5037 4912
5038 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeGetterCallba ck(const v8::FunctionCallbackInfo<v8::Value>& info) 4913 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeGetterCallba ck(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
5039 { 4914 {
5040 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4915 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
5041 TestObjectV8Internal::treatReturnedNullStringAsNullUSVStringAttributeAttribu teGetter(info); 4916 TestObjectV8Internal::treatReturnedNullStringAsNullUSVStringAttributeAttribu teGetter(info);
5042 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4917 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5043 } 4918 }
5044 4919
5045 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeSetter(v8::L ocal<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 4920 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeSetter(v8::L ocal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
5046 { 4921 {
5047 v8::Local<v8::Object> holder = info.Holder(); 4922 v8::Local<v8::Object> holder = info.Holder();
5048 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN ullStringAsNullUSVStringAttribute", "TestObject", holder, info.GetIsolate()); 4923 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN ullStringAsNullUSVStringAttribute", "TestObject", holder, info.GetIsolate());
5049 TestObject* impl = V8TestObject::toImpl(holder); 4924 TestObject* impl = V8TestObject::toImpl(holder);
5050 V8StringResource<> cppValue = toUSVString(info.GetIsolate(), v8Value, except ionState); 4925 V8StringResource<> cppValue = toUSVString(info.GetIsolate(), v8Value, except ionState);
5051 if (exceptionState.throwIfNeeded()) 4926 if (exceptionState.throwIfNeeded())
5052 return; 4927 return;
5053 impl->setTreatReturnedNullStringAsNullUSVStringAttribute(cppValue); 4928 impl->setTreatReturnedNullStringAsNullUSVStringAttribute(cppValue);
5054 } 4929 }
5055 4930
5056 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeSetterCallba ck(const v8::FunctionCallbackInfo<v8::Value>& info) 4931 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeSetterCallba ck(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallback Info<void>& info)
5057 { 4932 {
5058 v8::Local<v8::Value> v8Value = info[0];
5059 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4933 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
5060 TestObjectV8Internal::treatReturnedNullStringAsNullUSVStringAttributeAttribu teSetter(v8Value, info); 4934 TestObjectV8Internal::treatReturnedNullStringAsNullUSVStringAttributeAttribu teSetter(v8Value, info);
5061 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4935 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5062 } 4936 }
5063 4937
5064 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeGetter( const v8::FunctionCallbackInfo<v8::Value>& info) 4938 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeGetter( const v8::PropertyCallbackInfo<v8::Value>& info)
5065 { 4939 {
5066 v8::Local<v8::Object> holder = info.Holder(); 4940 v8::Local<v8::Object> holder = info.Holder();
5067 TestObject* impl = V8TestObject::toImpl(holder); 4941 TestObject* impl = V8TestObject::toImpl(holder);
5068 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef inedUSVStringAttribute(), info.GetIsolate()); 4942 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef inedUSVStringAttribute(), info.GetIsolate());
5069 } 4943 }
5070 4944
5071 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeGetterC allback(const v8::FunctionCallbackInfo<v8::Value>& info) 4945 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeGetterC allback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
5072 { 4946 {
5073 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4947 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
5074 TestObjectV8Internal::treatReturnedNullStringAsUndefinedUSVStringAttributeAt tributeGetter(info); 4948 TestObjectV8Internal::treatReturnedNullStringAsUndefinedUSVStringAttributeAt tributeGetter(info);
5075 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4949 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5076 } 4950 }
5077 4951
5078 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeSetter( v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 4952 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeSetter( v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
5079 { 4953 {
5080 v8::Local<v8::Object> holder = info.Holder(); 4954 v8::Local<v8::Object> holder = info.Holder();
5081 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN ullStringAsUndefinedUSVStringAttribute", "TestObject", holder, info.GetIsolate() ); 4955 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN ullStringAsUndefinedUSVStringAttribute", "TestObject", holder, info.GetIsolate() );
5082 TestObject* impl = V8TestObject::toImpl(holder); 4956 TestObject* impl = V8TestObject::toImpl(holder);
5083 V8StringResource<> cppValue = toUSVString(info.GetIsolate(), v8Value, except ionState); 4957 V8StringResource<> cppValue = toUSVString(info.GetIsolate(), v8Value, except ionState);
5084 if (exceptionState.throwIfNeeded()) 4958 if (exceptionState.throwIfNeeded())
5085 return; 4959 return;
5086 impl->setTreatReturnedNullStringAsUndefinedUSVStringAttribute(cppValue); 4960 impl->setTreatReturnedNullStringAsUndefinedUSVStringAttribute(cppValue);
5087 } 4961 }
5088 4962
5089 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeSetterC allback(const v8::FunctionCallbackInfo<v8::Value>& info) 4963 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeSetterC allback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCal lbackInfo<void>& info)
5090 { 4964 {
5091 v8::Local<v8::Value> v8Value = info[0];
5092 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4965 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
5093 TestObjectV8Internal::treatReturnedNullStringAsUndefinedUSVStringAttributeAt tributeSetter(v8Value, info); 4966 TestObjectV8Internal::treatReturnedNullStringAsUndefinedUSVStringAttributeAt tributeSetter(v8Value, info);
5094 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4967 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5095 } 4968 }
5096 4969
5097 static void typeCheckingInterfaceFloatAttributeAttributeGetter(const v8::Functio nCallbackInfo<v8::Value>& info) 4970 static void typeCheckingInterfaceFloatAttributeAttributeGetter(const v8::Propert yCallbackInfo<v8::Value>& info)
5098 { 4971 {
5099 v8::Local<v8::Object> holder = info.Holder(); 4972 v8::Local<v8::Object> holder = info.Holder();
5100 TestObject* impl = V8TestObject::toImpl(holder); 4973 TestObject* impl = V8TestObject::toImpl(holder);
5101 v8SetReturnValue(info, impl->typeCheckingInterfaceFloatAttribute()); 4974 v8SetReturnValue(info, impl->typeCheckingInterfaceFloatAttribute());
5102 } 4975 }
5103 4976
5104 static void typeCheckingInterfaceFloatAttributeAttributeGetterCallback(const v8: :FunctionCallbackInfo<v8::Value>& info) 4977 static void typeCheckingInterfaceFloatAttributeAttributeGetterCallback(v8::Local <v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
5105 { 4978 {
5106 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4979 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
5107 TestObjectV8Internal::typeCheckingInterfaceFloatAttributeAttributeGetter(inf o); 4980 TestObjectV8Internal::typeCheckingInterfaceFloatAttributeAttributeGetter(inf o);
5108 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4981 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5109 } 4982 }
5110 4983
5111 static void typeCheckingInterfaceFloatAttributeAttributeSetter(v8::Local<v8::Val ue> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 4984 static void typeCheckingInterfaceFloatAttributeAttributeSetter(v8::Local<v8::Val ue> v8Value, const v8::PropertyCallbackInfo<void>& info)
5112 { 4985 {
5113 v8::Local<v8::Object> holder = info.Holder(); 4986 v8::Local<v8::Object> holder = info.Holder();
5114 ExceptionState exceptionState(ExceptionState::SetterContext, "typeCheckingIn terfaceFloatAttribute", "TestObject", holder, info.GetIsolate()); 4987 ExceptionState exceptionState(ExceptionState::SetterContext, "typeCheckingIn terfaceFloatAttribute", "TestObject", holder, info.GetIsolate());
5115 TestObject* impl = V8TestObject::toImpl(holder); 4988 TestObject* impl = V8TestObject::toImpl(holder);
5116 float cppValue = toRestrictedFloat(info.GetIsolate(), v8Value, exceptionStat e); 4989 float cppValue = toRestrictedFloat(info.GetIsolate(), v8Value, exceptionStat e);
5117 if (exceptionState.throwIfNeeded()) 4990 if (exceptionState.throwIfNeeded())
5118 return; 4991 return;
5119 impl->setTypeCheckingInterfaceFloatAttribute(cppValue); 4992 impl->setTypeCheckingInterfaceFloatAttribute(cppValue);
5120 } 4993 }
5121 4994
5122 static void typeCheckingInterfaceFloatAttributeAttributeSetterCallback(const v8: :FunctionCallbackInfo<v8::Value>& info) 4995 static void typeCheckingInterfaceFloatAttributeAttributeSetterCallback(v8::Local <v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
5123 { 4996 {
5124 v8::Local<v8::Value> v8Value = info[0];
5125 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4997 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
5126 TestObjectV8Internal::typeCheckingInterfaceFloatAttributeAttributeSetter(v8V alue, info); 4998 TestObjectV8Internal::typeCheckingInterfaceFloatAttributeAttributeSetter(v8V alue, info);
5127 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4999 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5128 } 5000 }
5129 5001
5130 static void typeCheckingInterfaceTestInterfaceAttributeAttributeGetter(const v8: :FunctionCallbackInfo<v8::Value>& info) 5002 static void typeCheckingInterfaceTestInterfaceAttributeAttributeGetter(const v8: :PropertyCallbackInfo<v8::Value>& info)
5131 { 5003 {
5132 v8::Local<v8::Object> holder = info.Holder(); 5004 v8::Local<v8::Object> holder = info.Holder();
5133 TestObject* impl = V8TestObject::toImpl(holder); 5005 TestObject* impl = V8TestObject::toImpl(holder);
5134 v8SetReturnValueFast(info, WTF::getPtr(impl->typeCheckingInterfaceTestInterf aceAttribute()), impl); 5006 v8SetReturnValueFast(info, WTF::getPtr(impl->typeCheckingInterfaceTestInterf aceAttribute()), impl);
5135 } 5007 }
5136 5008
5137 static void typeCheckingInterfaceTestInterfaceAttributeAttributeGetterCallback(c onst v8::FunctionCallbackInfo<v8::Value>& info) 5009 static void typeCheckingInterfaceTestInterfaceAttributeAttributeGetterCallback(v 8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
5138 { 5010 {
5139 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 5011 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
5140 TestObjectV8Internal::typeCheckingInterfaceTestInterfaceAttributeAttributeGe tter(info); 5012 TestObjectV8Internal::typeCheckingInterfaceTestInterfaceAttributeAttributeGe tter(info);
5141 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5013 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5142 } 5014 }
5143 5015
5144 static void typeCheckingInterfaceTestInterfaceAttributeAttributeSetter(v8::Local <v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 5016 static void typeCheckingInterfaceTestInterfaceAttributeAttributeSetter(v8::Local <v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
5145 { 5017 {
5146 v8::Local<v8::Object> holder = info.Holder(); 5018 v8::Local<v8::Object> holder = info.Holder();
5147 ExceptionState exceptionState(ExceptionState::SetterContext, "typeCheckingIn terfaceTestInterfaceAttribute", "TestObject", holder, info.GetIsolate()); 5019 ExceptionState exceptionState(ExceptionState::SetterContext, "typeCheckingIn terfaceTestInterfaceAttribute", "TestObject", holder, info.GetIsolate());
5148 TestObject* impl = V8TestObject::toImpl(holder); 5020 TestObject* impl = V8TestObject::toImpl(holder);
5149 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck (info.GetIsolate(), v8Value); 5021 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck (info.GetIsolate(), v8Value);
5150 if (!cppValue) { 5022 if (!cppValue) {
5151 exceptionState.throwTypeError("The provided value is not of type 'TestIn terface'."); 5023 exceptionState.throwTypeError("The provided value is not of type 'TestIn terface'.");
5152 exceptionState.throwIfNeeded(); 5024 exceptionState.throwIfNeeded();
5153 return; 5025 return;
5154 } 5026 }
5155 impl->setTypeCheckingInterfaceTestInterfaceAttribute(WTF::getPtr(cppValue)); 5027 impl->setTypeCheckingInterfaceTestInterfaceAttribute(WTF::getPtr(cppValue));
5156 } 5028 }
5157 5029
5158 static void typeCheckingInterfaceTestInterfaceAttributeAttributeSetterCallback(c onst v8::FunctionCallbackInfo<v8::Value>& info) 5030 static void typeCheckingInterfaceTestInterfaceAttributeAttributeSetterCallback(v 8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo <void>& info)
5159 { 5031 {
5160 v8::Local<v8::Value> v8Value = info[0];
5161 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 5032 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
5162 TestObjectV8Internal::typeCheckingInterfaceTestInterfaceAttributeAttributeSe tter(v8Value, info); 5033 TestObjectV8Internal::typeCheckingInterfaceTestInterfaceAttributeAttributeSe tter(v8Value, info);
5163 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5034 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5164 } 5035 }
5165 5036
5166 static void typeCheckingInterfaceTestInterfaceOrNullAttributeAttributeGetter(con st v8::FunctionCallbackInfo<v8::Value>& info) 5037 static void typeCheckingInterfaceTestInterfaceOrNullAttributeAttributeGetter(con st v8::PropertyCallbackInfo<v8::Value>& info)
5167 { 5038 {
5168 v8::Local<v8::Object> holder = info.Holder(); 5039 v8::Local<v8::Object> holder = info.Holder();
5169 TestObject* impl = V8TestObject::toImpl(holder); 5040 TestObject* impl = V8TestObject::toImpl(holder);
5170 v8SetReturnValueFast(info, WTF::getPtr(impl->typeCheckingInterfaceTestInterf aceOrNullAttribute()), impl); 5041 v8SetReturnValueFast(info, WTF::getPtr(impl->typeCheckingInterfaceTestInterf aceOrNullAttribute()), impl);
5171 } 5042 }
5172 5043
5173 static void typeCheckingInterfaceTestInterfaceOrNullAttributeAttributeGetterCall back(const v8::FunctionCallbackInfo<v8::Value>& info) 5044 static void typeCheckingInterfaceTestInterfaceOrNullAttributeAttributeGetterCall back(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
5174 { 5045 {
5175 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 5046 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
5176 TestObjectV8Internal::typeCheckingInterfaceTestInterfaceOrNullAttributeAttri buteGetter(info); 5047 TestObjectV8Internal::typeCheckingInterfaceTestInterfaceOrNullAttributeAttri buteGetter(info);
5177 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5048 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5178 } 5049 }
5179 5050
5180 static void typeCheckingInterfaceTestInterfaceOrNullAttributeAttributeSetter(v8: :Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 5051 static void typeCheckingInterfaceTestInterfaceOrNullAttributeAttributeSetter(v8: :Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
5181 { 5052 {
5182 v8::Local<v8::Object> holder = info.Holder(); 5053 v8::Local<v8::Object> holder = info.Holder();
5183 ExceptionState exceptionState(ExceptionState::SetterContext, "typeCheckingIn terfaceTestInterfaceOrNullAttribute", "TestObject", holder, info.GetIsolate()); 5054 ExceptionState exceptionState(ExceptionState::SetterContext, "typeCheckingIn terfaceTestInterfaceOrNullAttribute", "TestObject", holder, info.GetIsolate());
5184 TestObject* impl = V8TestObject::toImpl(holder); 5055 TestObject* impl = V8TestObject::toImpl(holder);
5185 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck (info.GetIsolate(), v8Value); 5056 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck (info.GetIsolate(), v8Value);
5186 if (!cppValue && !isUndefinedOrNull(v8Value)) { 5057 if (!cppValue && !isUndefinedOrNull(v8Value)) {
5187 exceptionState.throwTypeError("The provided value is not of type 'TestIn terface'."); 5058 exceptionState.throwTypeError("The provided value is not of type 'TestIn terface'.");
5188 exceptionState.throwIfNeeded(); 5059 exceptionState.throwIfNeeded();
5189 return; 5060 return;
5190 } 5061 }
5191 impl->setTypeCheckingInterfaceTestInterfaceOrNullAttribute(WTF::getPtr(cppVa lue)); 5062 impl->setTypeCheckingInterfaceTestInterfaceOrNullAttribute(WTF::getPtr(cppVa lue));
5192 } 5063 }
5193 5064
5194 static void typeCheckingInterfaceTestInterfaceOrNullAttributeAttributeSetterCall back(const v8::FunctionCallbackInfo<v8::Value>& info) 5065 static void typeCheckingInterfaceTestInterfaceOrNullAttributeAttributeSetterCall back(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallba ckInfo<void>& info)
5195 { 5066 {
5196 v8::Local<v8::Value> v8Value = info[0];
5197 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 5067 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
5198 TestObjectV8Internal::typeCheckingInterfaceTestInterfaceOrNullAttributeAttri buteSetter(v8Value, info); 5068 TestObjectV8Internal::typeCheckingInterfaceTestInterfaceOrNullAttributeAttri buteSetter(v8Value, info);
5199 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5069 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5200 } 5070 }
5201 5071
5202 static void urlStringAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8: :Value>& info) 5072 static void urlStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8: :Value>& info)
5203 { 5073 {
5204 v8::Local<v8::Object> holder = info.Holder(); 5074 v8::Local<v8::Object> holder = info.Holder();
5205 TestObject* impl = V8TestObject::toImpl(holder); 5075 TestObject* impl = V8TestObject::toImpl(holder);
5206 v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::urlstringattri buteAttr), info.GetIsolate()); 5076 v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::urlstringattri buteAttr), info.GetIsolate());
5207 } 5077 }
5208 5078
5209 static void urlStringAttributeAttributeGetterCallback(const v8::FunctionCallback Info<v8::Value>& info) 5079 static void urlStringAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
5210 { 5080 {
5211 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 5081 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
5212 TestObjectV8Internal::urlStringAttributeAttributeGetter(info); 5082 TestObjectV8Internal::urlStringAttributeAttributeGetter(info);
5213 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5083 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5214 } 5084 }
5215 5085
5216 static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons t v8::FunctionCallbackInfo<v8::Value>& info) 5086 static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons t v8::PropertyCallbackInfo<void>& info)
5217 { 5087 {
5218 v8::Local<v8::Object> holder = info.Holder(); 5088 v8::Local<v8::Object> holder = info.Holder();
5219 TestObject* impl = V8TestObject::toImpl(holder); 5089 TestObject* impl = V8TestObject::toImpl(holder);
5220 V8StringResource<> cppValue = v8Value; 5090 V8StringResource<> cppValue = v8Value;
5221 if (!cppValue.prepare()) 5091 if (!cppValue.prepare())
5222 return; 5092 return;
5223 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 5093 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
5224 impl->setAttribute(HTMLNames::urlstringattributeAttr, cppValue); 5094 impl->setAttribute(HTMLNames::urlstringattributeAttr, cppValue);
5225 } 5095 }
5226 5096
5227 static void urlStringAttributeAttributeSetterCallback(const v8::FunctionCallback Info<v8::Value>& info) 5097 static void urlStringAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::L ocal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
5228 { 5098 {
5229 v8::Local<v8::Value> v8Value = info[0];
5230 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 5099 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
5231 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 5100 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
5232 TestObjectV8Internal::urlStringAttributeAttributeSetter(v8Value, info); 5101 TestObjectV8Internal::urlStringAttributeAttributeSetter(v8Value, info);
5233 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5102 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5234 } 5103 }
5235 5104
5236 static void urlStringAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8: :Value>& info) 5105 static void urlStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8: :Value>& info)
5237 { 5106 {
5238 v8::Local<v8::Object> holder = info.Holder(); 5107 v8::Local<v8::Object> holder = info.Holder();
5239 TestObject* impl = V8TestObject::toImpl(holder); 5108 TestObject* impl = V8TestObject::toImpl(holder);
5240 v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::reflectUrlAttr ibuteAttr), info.GetIsolate()); 5109 v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::reflectUrlAttr ibuteAttr), info.GetIsolate());
5241 } 5110 }
5242 5111
5243 static void urlStringAttributeAttributeGetterCallback(const v8::FunctionCallback Info<v8::Value>& info) 5112 static void urlStringAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
5244 { 5113 {
5245 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 5114 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
5246 TestObjectV8Internal::urlStringAttributeAttributeGetter(info); 5115 TestObjectV8Internal::urlStringAttributeAttributeGetter(info);
5247 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5116 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5248 } 5117 }
5249 5118
5250 static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons t v8::FunctionCallbackInfo<v8::Value>& info) 5119 static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons t v8::PropertyCallbackInfo<void>& info)
5251 { 5120 {
5252 v8::Local<v8::Object> holder = info.Holder(); 5121 v8::Local<v8::Object> holder = info.Holder();
5253 TestObject* impl = V8TestObject::toImpl(holder); 5122 TestObject* impl = V8TestObject::toImpl(holder);
5254 V8StringResource<> cppValue = v8Value; 5123 V8StringResource<> cppValue = v8Value;
5255 if (!cppValue.prepare()) 5124 if (!cppValue.prepare())
5256 return; 5125 return;
5257 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 5126 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
5258 impl->setAttribute(HTMLNames::reflectUrlAttributeAttr, cppValue); 5127 impl->setAttribute(HTMLNames::reflectUrlAttributeAttr, cppValue);
5259 } 5128 }
5260 5129
5261 static void urlStringAttributeAttributeSetterCallback(const v8::FunctionCallback Info<v8::Value>& info) 5130 static void urlStringAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::L ocal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
5262 { 5131 {
5263 v8::Local<v8::Value> v8Value = info[0];
5264 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 5132 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
5265 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 5133 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
5266 TestObjectV8Internal::urlStringAttributeAttributeSetter(v8Value, info); 5134 TestObjectV8Internal::urlStringAttributeAttributeSetter(v8Value, info);
5267 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5135 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5268 } 5136 }
5269 5137
5270 static void unforgeableLongAttributeAttributeGetter(const v8::PropertyCallbackIn fo<v8::Value>& info) 5138 static void unforgeableLongAttributeAttributeGetter(const v8::PropertyCallbackIn fo<v8::Value>& info)
5271 { 5139 {
5272 v8::Local<v8::Object> holder = info.Holder(); 5140 v8::Local<v8::Object> holder = info.Holder();
5273 TestObject* impl = V8TestObject::toImpl(holder); 5141 TestObject* impl = V8TestObject::toImpl(holder);
(...skipping 18 matching lines...) Expand all
5292 impl->setUnforgeableLongAttribute(cppValue); 5160 impl->setUnforgeableLongAttribute(cppValue);
5293 } 5161 }
5294 5162
5295 static void unforgeableLongAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 5163 static void unforgeableLongAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
5296 { 5164 {
5297 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 5165 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
5298 TestObjectV8Internal::unforgeableLongAttributeAttributeSetter(v8Value, info) ; 5166 TestObjectV8Internal::unforgeableLongAttributeAttributeSetter(v8Value, info) ;
5299 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5167 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5300 } 5168 }
5301 5169
5302 static void measuredLongAttributeAttributeGetter(const v8::FunctionCallbackInfo< v8::Value>& info) 5170 static void measuredLongAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info)
5303 { 5171 {
5304 v8::Local<v8::Object> holder = info.Holder(); 5172 v8::Local<v8::Object> holder = info.Holder();
5305 TestObject* impl = V8TestObject::toImpl(holder); 5173 TestObject* impl = V8TestObject::toImpl(holder);
5306 v8SetReturnValueInt(info, impl->measuredLongAttribute()); 5174 v8SetReturnValueInt(info, impl->measuredLongAttribute());
5307 } 5175 }
5308 5176
5309 static void measuredLongAttributeAttributeGetterCallback(const v8::FunctionCallb ackInfo<v8::Value>& info) 5177 static void measuredLongAttributeAttributeGetterCallback(v8::Local<v8::Name>, co nst v8::PropertyCallbackInfo<v8::Value>& info)
5310 { 5178 {
5311 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 5179 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
5312 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestObject_MeasuredLongAttribute_AttributeG etter); 5180 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestObject_MeasuredLongAttribute_AttributeG etter);
5313 TestObjectV8Internal::measuredLongAttributeAttributeGetter(info); 5181 TestObjectV8Internal::measuredLongAttributeAttributeGetter(info);
5314 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5182 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5315 } 5183 }
5316 5184
5317 static void measuredLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::FunctionCallbackInfo<v8::Value>& info) 5185 static void measuredLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info)
5318 { 5186 {
5319 v8::Local<v8::Object> holder = info.Holder(); 5187 v8::Local<v8::Object> holder = info.Holder();
5320 ExceptionState exceptionState(ExceptionState::SetterContext, "measuredLongAt tribute", "TestObject", holder, info.GetIsolate()); 5188 ExceptionState exceptionState(ExceptionState::SetterContext, "measuredLongAt tribute", "TestObject", holder, info.GetIsolate());
5321 TestObject* impl = V8TestObject::toImpl(holder); 5189 TestObject* impl = V8TestObject::toImpl(holder);
5322 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 5190 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
5323 if (exceptionState.throwIfNeeded()) 5191 if (exceptionState.throwIfNeeded())
5324 return; 5192 return;
5325 impl->setMeasuredLongAttribute(cppValue); 5193 impl->setMeasuredLongAttribute(cppValue);
5326 } 5194 }
5327 5195
5328 static void measuredLongAttributeAttributeSetterCallback(const v8::FunctionCallb ackInfo<v8::Value>& info) 5196 static void measuredLongAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
5329 { 5197 {
5330 v8::Local<v8::Value> v8Value = info[0];
5331 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 5198 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
5332 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestObject_MeasuredLongAttribute_AttributeS etter); 5199 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestObject_MeasuredLongAttribute_AttributeS etter);
5333 TestObjectV8Internal::measuredLongAttributeAttributeSetter(v8Value, info); 5200 TestObjectV8Internal::measuredLongAttributeAttributeSetter(v8Value, info);
5334 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5201 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5335 } 5202 }
5336 5203
5337 static void sameObjectAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8 ::Value>& info) 5204 static void sameObjectAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info)
5338 { 5205 {
5339 v8::Local<v8::Object> holder = info.Holder(); 5206 v8::Local<v8::Object> holder = info.Holder();
5340 TestObject* impl = V8TestObject::toImpl(holder); 5207 TestObject* impl = V8TestObject::toImpl(holder);
5341 v8SetReturnValueFast(info, WTF::getPtr(impl->sameObjectAttribute()), impl); 5208 v8SetReturnValueFast(info, WTF::getPtr(impl->sameObjectAttribute()), impl);
5342 } 5209 }
5343 5210
5344 static void sameObjectAttributeAttributeGetterCallback(const v8::FunctionCallbac kInfo<v8::Value>& info) 5211 static void sameObjectAttributeAttributeGetterCallback(v8::Local<v8::Name>, cons t v8::PropertyCallbackInfo<v8::Value>& info)
5345 { 5212 {
5346 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 5213 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
5347 TestObjectV8Internal::sameObjectAttributeAttributeGetter(info); 5214 TestObjectV8Internal::sameObjectAttributeAttributeGetter(info);
5348 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5215 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5349 } 5216 }
5350 5217
5351 static void sameObjectAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::FunctionCallbackInfo<v8::Value>& info) 5218 static void sameObjectAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info)
5352 { 5219 {
5353 v8::Local<v8::Object> holder = info.Holder(); 5220 v8::Local<v8::Object> holder = info.Holder();
5354 TestObject* impl = V8TestObject::toImpl(holder); 5221 TestObject* impl = V8TestObject::toImpl(holder);
5355 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck (info.GetIsolate(), v8Value); 5222 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck (info.GetIsolate(), v8Value);
5356 impl->setSameObjectAttribute(WTF::getPtr(cppValue)); 5223 impl->setSameObjectAttribute(WTF::getPtr(cppValue));
5357 } 5224 }
5358 5225
5359 static void sameObjectAttributeAttributeSetterCallback(const v8::FunctionCallbac kInfo<v8::Value>& info) 5226 static void sameObjectAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
5360 { 5227 {
5361 v8::Local<v8::Value> v8Value = info[0];
5362 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 5228 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
5363 TestObjectV8Internal::sameObjectAttributeAttributeSetter(v8Value, info); 5229 TestObjectV8Internal::sameObjectAttributeAttributeSetter(v8Value, info);
5364 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5230 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5365 } 5231 }
5366 5232
5367 static void testInterfaceAttributeAttributeGetter(const v8::FunctionCallbackInfo <v8::Value>& info) 5233 static void testInterfaceAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info)
5368 { 5234 {
5369 v8::Local<v8::Object> holder = info.Holder(); 5235 v8::Local<v8::Object> holder = info.Holder();
5370 TestObject* impl = V8TestObject::toImpl(holder); 5236 TestObject* impl = V8TestObject::toImpl(holder);
5371 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceAttribute()), impl ); 5237 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceAttribute()), impl );
5372 } 5238 }
5373 5239
5374 static void testInterfaceAttributeAttributeGetterCallback(const v8::FunctionCall backInfo<v8::Value>& info) 5240 static void testInterfaceAttributeAttributeGetterCallback(v8::Local<v8::Name>, c onst v8::PropertyCallbackInfo<v8::Value>& info)
5375 { 5241 {
5376 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 5242 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
5377 TestObjectV8Internal::testInterfaceAttributeAttributeGetter(info); 5243 TestObjectV8Internal::testInterfaceAttributeAttributeGetter(info);
5378 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5244 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5379 } 5245 }
5380 5246
5381 static void testInterfaceAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 5247 static void testInterfaceAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
5382 { 5248 {
5383 v8::Local<v8::Object> holder = info.Holder(); 5249 v8::Local<v8::Object> holder = info.Holder();
5384 TestObject* impl = V8TestObject::toImpl(holder); 5250 TestObject* impl = V8TestObject::toImpl(holder);
5385 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck (info.GetIsolate(), v8Value); 5251 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck (info.GetIsolate(), v8Value);
5386 impl->setTestInterfaceAttribute(WTF::getPtr(cppValue)); 5252 impl->setTestInterfaceAttribute(WTF::getPtr(cppValue));
5387 } 5253 }
5388 5254
5389 static void testInterfaceAttributeAttributeSetterCallback(const v8::FunctionCall backInfo<v8::Value>& info) 5255 static void testInterfaceAttributeAttributeSetterCallback(v8::Local<v8::Name>, v 8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
5390 { 5256 {
5391 v8::Local<v8::Value> v8Value = info[0];
5392 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 5257 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
5393 TestObjectV8Internal::testInterfaceAttributeAttributeSetter(v8Value, info); 5258 TestObjectV8Internal::testInterfaceAttributeAttributeSetter(v8Value, info);
5394 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5259 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5395 } 5260 }
5396 5261
5397 static void testInterfaceGarbageCollectedAttributeAttributeGetter(const v8::Func tionCallbackInfo<v8::Value>& info) 5262 static void testInterfaceGarbageCollectedAttributeAttributeGetter(const v8::Prop ertyCallbackInfo<v8::Value>& info)
5398 { 5263 {
5399 v8::Local<v8::Object> holder = info.Holder(); 5264 v8::Local<v8::Object> holder = info.Holder();
5400 TestObject* impl = V8TestObject::toImpl(holder); 5265 TestObject* impl = V8TestObject::toImpl(holder);
5401 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceGarbageCollectedAt tribute()), impl); 5266 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceGarbageCollectedAt tribute()), impl);
5402 } 5267 }
5403 5268
5404 static void testInterfaceGarbageCollectedAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 5269 static void testInterfaceGarbageCollectedAttributeAttributeGetterCallback(v8::Lo cal<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
5405 { 5270 {
5406 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 5271 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
5407 TestObjectV8Internal::testInterfaceGarbageCollectedAttributeAttributeGetter( info); 5272 TestObjectV8Internal::testInterfaceGarbageCollectedAttributeAttributeGetter( info);
5408 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5273 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5409 } 5274 }
5410 5275
5411 static void testInterfaceGarbageCollectedAttributeAttributeSetter(v8::Local<v8:: Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 5276 static void testInterfaceGarbageCollectedAttributeAttributeSetter(v8::Local<v8:: Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
5412 { 5277 {
5413 v8::Local<v8::Object> holder = info.Holder(); 5278 v8::Local<v8::Object> holder = info.Holder();
5414 TestObject* impl = V8TestObject::toImpl(holder); 5279 TestObject* impl = V8TestObject::toImpl(holder);
5415 TestInterfaceGarbageCollected* cppValue = V8TestInterfaceGarbageCollected::t oImplWithTypeCheck(info.GetIsolate(), v8Value); 5280 TestInterfaceGarbageCollected* cppValue = V8TestInterfaceGarbageCollected::t oImplWithTypeCheck(info.GetIsolate(), v8Value);
5416 impl->setTestInterfaceGarbageCollectedAttribute(WTF::getPtr(cppValue)); 5281 impl->setTestInterfaceGarbageCollectedAttribute(WTF::getPtr(cppValue));
5417 } 5282 }
5418 5283
5419 static void testInterfaceGarbageCollectedAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 5284 static void testInterfaceGarbageCollectedAttributeAttributeSetterCallback(v8::Lo cal<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info)
5420 { 5285 {
5421 v8::Local<v8::Value> v8Value = info[0];
5422 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 5286 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
5423 TestObjectV8Internal::testInterfaceGarbageCollectedAttributeAttributeSetter( v8Value, info); 5287 TestObjectV8Internal::testInterfaceGarbageCollectedAttributeAttributeSetter( v8Value, info);
5424 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5288 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5425 } 5289 }
5426 5290
5427 static void testInterfaceGarbageCollectedOrNullAttributeAttributeGetter(const v8 ::FunctionCallbackInfo<v8::Value>& info) 5291 static void testInterfaceGarbageCollectedOrNullAttributeAttributeGetter(const v8 ::PropertyCallbackInfo<v8::Value>& info)
5428 { 5292 {
5429 v8::Local<v8::Object> holder = info.Holder(); 5293 v8::Local<v8::Object> holder = info.Holder();
5430 TestObject* impl = V8TestObject::toImpl(holder); 5294 TestObject* impl = V8TestObject::toImpl(holder);
5431 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceGarbageCollectedOr NullAttribute()), impl); 5295 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceGarbageCollectedOr NullAttribute()), impl);
5432 } 5296 }
5433 5297
5434 static void testInterfaceGarbageCollectedOrNullAttributeAttributeGetterCallback( const v8::FunctionCallbackInfo<v8::Value>& info) 5298 static void testInterfaceGarbageCollectedOrNullAttributeAttributeGetterCallback( v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
5435 { 5299 {
5436 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 5300 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
5437 TestObjectV8Internal::testInterfaceGarbageCollectedOrNullAttributeAttributeG etter(info); 5301 TestObjectV8Internal::testInterfaceGarbageCollectedOrNullAttributeAttributeG etter(info);
5438 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5302 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5439 } 5303 }
5440 5304
5441 static void testInterfaceGarbageCollectedOrNullAttributeAttributeSetter(v8::Loca l<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 5305 static void testInterfaceGarbageCollectedOrNullAttributeAttributeSetter(v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
5442 { 5306 {
5443 v8::Local<v8::Object> holder = info.Holder(); 5307 v8::Local<v8::Object> holder = info.Holder();
5444 TestObject* impl = V8TestObject::toImpl(holder); 5308 TestObject* impl = V8TestObject::toImpl(holder);
5445 TestInterfaceGarbageCollected* cppValue = V8TestInterfaceGarbageCollected::t oImplWithTypeCheck(info.GetIsolate(), v8Value); 5309 TestInterfaceGarbageCollected* cppValue = V8TestInterfaceGarbageCollected::t oImplWithTypeCheck(info.GetIsolate(), v8Value);
5446 impl->setTestInterfaceGarbageCollectedOrNullAttribute(WTF::getPtr(cppValue)) ; 5310 impl->setTestInterfaceGarbageCollectedOrNullAttribute(WTF::getPtr(cppValue)) ;
5447 } 5311 }
5448 5312
5449 static void testInterfaceGarbageCollectedOrNullAttributeAttributeSetterCallback( const v8::FunctionCallbackInfo<v8::Value>& info) 5313 static void testInterfaceGarbageCollectedOrNullAttributeAttributeSetterCallback( v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInf o<void>& info)
5450 { 5314 {
5451 v8::Local<v8::Value> v8Value = info[0];
5452 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 5315 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
5453 TestObjectV8Internal::testInterfaceGarbageCollectedOrNullAttributeAttributeS etter(v8Value, info); 5316 TestObjectV8Internal::testInterfaceGarbageCollectedOrNullAttributeAttributeS etter(v8Value, info);
5454 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5317 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5455 } 5318 }
5456 5319
5457 static void testInterfaceWillBeGarbageCollectedAttributeAttributeGetter(const v8 ::FunctionCallbackInfo<v8::Value>& info) 5320 static void testInterfaceWillBeGarbageCollectedAttributeAttributeGetter(const v8 ::PropertyCallbackInfo<v8::Value>& info)
5458 { 5321 {
5459 v8::Local<v8::Object> holder = info.Holder(); 5322 v8::Local<v8::Object> holder = info.Holder();
5460 TestObject* impl = V8TestObject::toImpl(holder); 5323 TestObject* impl = V8TestObject::toImpl(holder);
5461 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceWillBeGarbageColle ctedAttribute()), impl); 5324 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceWillBeGarbageColle ctedAttribute()), impl);
5462 } 5325 }
5463 5326
5464 static void testInterfaceWillBeGarbageCollectedAttributeAttributeGetterCallback( const v8::FunctionCallbackInfo<v8::Value>& info) 5327 static void testInterfaceWillBeGarbageCollectedAttributeAttributeGetterCallback( v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
5465 { 5328 {
5466 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 5329 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
5467 TestObjectV8Internal::testInterfaceWillBeGarbageCollectedAttributeAttributeG etter(info); 5330 TestObjectV8Internal::testInterfaceWillBeGarbageCollectedAttributeAttributeG etter(info);
5468 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5331 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5469 } 5332 }
5470 5333
5471 static void testInterfaceWillBeGarbageCollectedAttributeAttributeSetter(v8::Loca l<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 5334 static void testInterfaceWillBeGarbageCollectedAttributeAttributeSetter(v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
5472 { 5335 {
5473 v8::Local<v8::Object> holder = info.Holder(); 5336 v8::Local<v8::Object> holder = info.Holder();
5474 TestObject* impl = V8TestObject::toImpl(holder); 5337 TestObject* impl = V8TestObject::toImpl(holder);
5475 TestInterfaceWillBeGarbageCollected* cppValue = V8TestInterfaceWillBeGarbage Collected::toImplWithTypeCheck(info.GetIsolate(), v8Value); 5338 TestInterfaceWillBeGarbageCollected* cppValue = V8TestInterfaceWillBeGarbage Collected::toImplWithTypeCheck(info.GetIsolate(), v8Value);
5476 impl->setTestInterfaceWillBeGarbageCollectedAttribute(WTF::getPtr(cppValue)) ; 5339 impl->setTestInterfaceWillBeGarbageCollectedAttribute(WTF::getPtr(cppValue)) ;
5477 } 5340 }
5478 5341
5479 static void testInterfaceWillBeGarbageCollectedAttributeAttributeSetterCallback( const v8::FunctionCallbackInfo<v8::Value>& info) 5342 static void testInterfaceWillBeGarbageCollectedAttributeAttributeSetterCallback( v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInf o<void>& info)
5480 { 5343 {
5481 v8::Local<v8::Value> v8Value = info[0];
5482 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 5344 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
5483 TestObjectV8Internal::testInterfaceWillBeGarbageCollectedAttributeAttributeS etter(v8Value, info); 5345 TestObjectV8Internal::testInterfaceWillBeGarbageCollectedAttributeAttributeS etter(v8Value, info);
5484 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5346 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5485 } 5347 }
5486 5348
5487 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeGetter(co nst v8::FunctionCallbackInfo<v8::Value>& info) 5349 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeGetter(co nst v8::PropertyCallbackInfo<v8::Value>& info)
5488 { 5350 {
5489 v8::Local<v8::Object> holder = info.Holder(); 5351 v8::Local<v8::Object> holder = info.Holder();
5490 TestObject* impl = V8TestObject::toImpl(holder); 5352 TestObject* impl = V8TestObject::toImpl(holder);
5491 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceWillBeGarbageColle ctedOrNullAttribute()), impl); 5353 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceWillBeGarbageColle ctedOrNullAttribute()), impl);
5492 } 5354 }
5493 5355
5494 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeGetterCal lback(const v8::FunctionCallbackInfo<v8::Value>& info) 5356 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeGetterCal lback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
5495 { 5357 {
5496 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 5358 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
5497 TestObjectV8Internal::testInterfaceWillBeGarbageCollectedOrNullAttributeAttr ibuteGetter(info); 5359 TestObjectV8Internal::testInterfaceWillBeGarbageCollectedOrNullAttributeAttr ibuteGetter(info);
5498 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5360 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5499 } 5361 }
5500 5362
5501 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 5363 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
5502 { 5364 {
5503 v8::Local<v8::Object> holder = info.Holder(); 5365 v8::Local<v8::Object> holder = info.Holder();
5504 TestObject* impl = V8TestObject::toImpl(holder); 5366 TestObject* impl = V8TestObject::toImpl(holder);
5505 TestInterfaceWillBeGarbageCollected* cppValue = V8TestInterfaceWillBeGarbage Collected::toImplWithTypeCheck(info.GetIsolate(), v8Value); 5367 TestInterfaceWillBeGarbageCollected* cppValue = V8TestInterfaceWillBeGarbage Collected::toImplWithTypeCheck(info.GetIsolate(), v8Value);
5506 impl->setTestInterfaceWillBeGarbageCollectedOrNullAttribute(WTF::getPtr(cppV alue)); 5368 impl->setTestInterfaceWillBeGarbageCollectedOrNullAttribute(WTF::getPtr(cppV alue));
5507 } 5369 }
5508 5370
5509 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeSetterCal lback(const v8::FunctionCallbackInfo<v8::Value>& info) 5371 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeSetterCal lback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallb ackInfo<void>& info)
5510 { 5372 {
5511 v8::Local<v8::Value> v8Value = info[0];
5512 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 5373 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
5513 TestObjectV8Internal::testInterfaceWillBeGarbageCollectedOrNullAttributeAttr ibuteSetter(v8Value, info); 5374 TestObjectV8Internal::testInterfaceWillBeGarbageCollectedOrNullAttributeAttr ibuteSetter(v8Value, info);
5514 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5375 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5515 } 5376 }
5516 5377
5517 static void readonlyShortAttributeAttributeGetter(const v8::FunctionCallbackInfo <v8::Value>& info) 5378 static void readonlyShortAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info)
5518 { 5379 {
5519 v8::Local<v8::Object> holder = info.Holder(); 5380 v8::Local<v8::Object> holder = info.Holder();
5520 TestObject* impl = V8TestObject::toImpl(holder); 5381 TestObject* impl = V8TestObject::toImpl(holder);
5521 int result = 0; 5382 int result = 0;
5522 if (!V8TestObject::PrivateScript::readonlyShortAttributeAttributeGetter(toLo calFrame(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, &r esult)) 5383 if (!V8TestObject::PrivateScript::readonlyShortAttributeAttributeGetter(toLo calFrame(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, &r esult))
5523 return; 5384 return;
5524 v8SetReturnValueInt(info, result); 5385 v8SetReturnValueInt(info, result);
5525 } 5386 }
5526 5387
5527 static void readonlyShortAttributeAttributeGetterCallback(const v8::FunctionCall backInfo<v8::Value>& info) 5388 static void readonlyShortAttributeAttributeGetterCallback(v8::Local<v8::Name>, c onst v8::PropertyCallbackInfo<v8::Value>& info)
5528 { 5389 {
5529 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 5390 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
5530 TestObjectV8Internal::readonlyShortAttributeAttributeGetter(info); 5391 TestObjectV8Internal::readonlyShortAttributeAttributeGetter(info);
5531 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5392 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5532 } 5393 }
5533 5394
5534 static void shortAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Val ue>& info) 5395 static void shortAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val ue>& info)
5535 { 5396 {
5536 v8::Local<v8::Object> holder = info.Holder(); 5397 v8::Local<v8::Object> holder = info.Holder();
5537 TestObject* impl = V8TestObject::toImpl(holder); 5398 TestObject* impl = V8TestObject::toImpl(holder);
5538 int result = 0; 5399 int result = 0;
5539 if (!V8TestObject::PrivateScript::shortAttributeAttributeGetter(toLocalFrame (toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, &result)) 5400 if (!V8TestObject::PrivateScript::shortAttributeAttributeGetter(toLocalFrame (toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, &result))
5540 return; 5401 return;
5541 v8SetReturnValueInt(info, result); 5402 v8SetReturnValueInt(info, result);
5542 } 5403 }
5543 5404
5544 static void shortAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 5405 static void shortAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8: :PropertyCallbackInfo<v8::Value>& info)
5545 { 5406 {
5546 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 5407 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
5547 TestObjectV8Internal::shortAttributeAttributeGetter(info); 5408 TestObjectV8Internal::shortAttributeAttributeGetter(info);
5548 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5409 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5549 } 5410 }
5550 5411
5551 static void shortAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::FunctionCallbackInfo<v8::Value>& info) 5412 static void shortAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::PropertyCallbackInfo<void>& info)
5552 { 5413 {
5553 v8::Local<v8::Object> holder = info.Holder(); 5414 v8::Local<v8::Object> holder = info.Holder();
5554 ExceptionState exceptionState(ExceptionState::SetterContext, "shortAttribute ", "TestObject", holder, info.GetIsolate()); 5415 ExceptionState exceptionState(ExceptionState::SetterContext, "shortAttribute ", "TestObject", holder, info.GetIsolate());
5555 TestObject* impl = V8TestObject::toImpl(holder); 5416 TestObject* impl = V8TestObject::toImpl(holder);
5556 int cppValue = toInt16(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 5417 int cppValue = toInt16(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
5557 if (exceptionState.throwIfNeeded()) 5418 if (exceptionState.throwIfNeeded())
5558 return; 5419 return;
5559 V8TestObject::PrivateScript::shortAttributeAttributeSetter(toLocalFrame(toFr ameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, cppValue); 5420 V8TestObject::PrivateScript::shortAttributeAttributeSetter(toLocalFrame(toFr ameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, cppValue);
5560 } 5421 }
5561 5422
5562 static void shortAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 5423 static void shortAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local <v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
5563 { 5424 {
5564 v8::Local<v8::Value> v8Value = info[0];
5565 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 5425 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
5566 TestObjectV8Internal::shortAttributeAttributeSetter(v8Value, info); 5426 TestObjectV8Internal::shortAttributeAttributeSetter(v8Value, info);
5567 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5427 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5568 } 5428 }
5569 5429
5570 static void stringAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Va lue>& info) 5430 static void stringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va lue>& info)
5571 { 5431 {
5572 v8::Local<v8::Object> holder = info.Holder(); 5432 v8::Local<v8::Object> holder = info.Holder();
5573 TestObject* impl = V8TestObject::toImpl(holder); 5433 TestObject* impl = V8TestObject::toImpl(holder);
5574 String result; 5434 String result;
5575 if (!V8TestObject::PrivateScript::stringAttributeAttributeGetter(toLocalFram e(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, &result)) 5435 if (!V8TestObject::PrivateScript::stringAttributeAttributeGetter(toLocalFram e(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, &result))
5576 return; 5436 return;
5577 v8SetReturnValueString(info, result, info.GetIsolate()); 5437 v8SetReturnValueString(info, result, info.GetIsolate());
5578 } 5438 }
5579 5439
5580 static void stringAttributeAttributeGetterCallback(const v8::FunctionCallbackInf o<v8::Value>& info) 5440 static void stringAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8 ::PropertyCallbackInfo<v8::Value>& info)
5581 { 5441 {
5582 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 5442 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
5583 TestObjectV8Internal::stringAttributeAttributeGetter(info); 5443 TestObjectV8Internal::stringAttributeAttributeGetter(info);
5584 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5444 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5585 } 5445 }
5586 5446
5587 static void stringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v 8::FunctionCallbackInfo<v8::Value>& info) 5447 static void stringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v 8::PropertyCallbackInfo<void>& info)
5588 { 5448 {
5589 v8::Local<v8::Object> holder = info.Holder(); 5449 v8::Local<v8::Object> holder = info.Holder();
5590 TestObject* impl = V8TestObject::toImpl(holder); 5450 TestObject* impl = V8TestObject::toImpl(holder);
5591 V8StringResource<> cppValue = v8Value; 5451 V8StringResource<> cppValue = v8Value;
5592 if (!cppValue.prepare()) 5452 if (!cppValue.prepare())
5593 return; 5453 return;
5594 V8TestObject::PrivateScript::stringAttributeAttributeSetter(toLocalFrame(toF rameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, cppValue); 5454 V8TestObject::PrivateScript::stringAttributeAttributeSetter(toLocalFrame(toF rameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, cppValue);
5595 } 5455 }
5596 5456
5597 static void stringAttributeAttributeSetterCallback(const v8::FunctionCallbackInf o<v8::Value>& info) 5457 static void stringAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
5598 { 5458 {
5599 v8::Local<v8::Value> v8Value = info[0];
5600 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 5459 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
5601 TestObjectV8Internal::stringAttributeAttributeSetter(v8Value, info); 5460 TestObjectV8Internal::stringAttributeAttributeSetter(v8Value, info);
5602 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5461 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5603 } 5462 }
5604 5463
5605 static void nodeAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Valu e>& info) 5464 static void nodeAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu e>& info)
5606 { 5465 {
5607 v8::Local<v8::Object> holder = info.Holder(); 5466 v8::Local<v8::Object> holder = info.Holder();
5608 TestObject* impl = V8TestObject::toImpl(holder); 5467 TestObject* impl = V8TestObject::toImpl(holder);
5609 RefPtrWillBeRawPtr<Node> result = nullptr; 5468 RefPtrWillBeRawPtr<Node> result = nullptr;
5610 if (!V8TestObject::PrivateScript::nodeAttributeAttributeGetter(toLocalFrame( toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, &result)) 5469 if (!V8TestObject::PrivateScript::nodeAttributeAttributeGetter(toLocalFrame( toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, &result))
5611 return; 5470 return;
5612 v8SetReturnValueFast(info, WTF::getPtr(result.release()), impl); 5471 v8SetReturnValueFast(info, WTF::getPtr(result.release()), impl);
5613 } 5472 }
5614 5473
5615 static void nodeAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo< v8::Value>& info) 5474 static void nodeAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8:: PropertyCallbackInfo<v8::Value>& info)
5616 { 5475 {
5617 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 5476 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
5618 TestObjectV8Internal::nodeAttributeAttributeGetter(info); 5477 TestObjectV8Internal::nodeAttributeAttributeGetter(info);
5619 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5478 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5620 } 5479 }
5621 5480
5622 static void nodeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :FunctionCallbackInfo<v8::Value>& info) 5481 static void nodeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info)
5623 { 5482 {
5624 v8::Local<v8::Object> holder = info.Holder(); 5483 v8::Local<v8::Object> holder = info.Holder();
5625 TestObject* impl = V8TestObject::toImpl(holder); 5484 TestObject* impl = V8TestObject::toImpl(holder);
5626 Node* cppValue = V8Node::toImplWithTypeCheck(info.GetIsolate(), v8Value); 5485 Node* cppValue = V8Node::toImplWithTypeCheck(info.GetIsolate(), v8Value);
5627 V8TestObject::PrivateScript::nodeAttributeAttributeSetter(toLocalFrame(toFra meIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, cppValue); 5486 V8TestObject::PrivateScript::nodeAttributeAttributeSetter(toLocalFrame(toFra meIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, cppValue);
5628 } 5487 }
5629 5488
5630 static void nodeAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo< v8::Value>& info) 5489 static void nodeAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local< v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
5631 { 5490 {
5632 v8::Local<v8::Value> v8Value = info[0];
5633 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 5491 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
5634 TestObjectV8Internal::nodeAttributeAttributeSetter(v8Value, info); 5492 TestObjectV8Internal::nodeAttributeAttributeSetter(v8Value, info);
5635 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5493 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5636 } 5494 }
5637 5495
5638 static void attributeImplementedInCPPForPrivateScriptOnlyAttributeGetter(const v 8::FunctionCallbackInfo<v8::Value>& info) 5496 static void attributeImplementedInCPPForPrivateScriptOnlyAttributeGetter(const v 8::PropertyCallbackInfo<v8::Value>& info)
5639 { 5497 {
5640 v8::Local<v8::Object> holder = info.Holder(); 5498 v8::Local<v8::Object> holder = info.Holder();
5641 TestObject* impl = V8TestObject::toImpl(holder); 5499 TestObject* impl = V8TestObject::toImpl(holder);
5642 v8SetReturnValueString(info, impl->attributeImplementedInCPPForPrivateScript Only(), info.GetIsolate()); 5500 v8SetReturnValueString(info, impl->attributeImplementedInCPPForPrivateScript Only(), info.GetIsolate());
5643 } 5501 }
5644 5502
5645 static void attributeImplementedInCPPForPrivateScriptOnlyAttributeGetterCallback (const v8::FunctionCallbackInfo<v8::Value>& info) 5503 static void attributeImplementedInCPPForPrivateScriptOnlyAttributeGetterCallback (v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info)
5646 { 5504 {
5647 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 5505 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
5648 TestObjectV8Internal::attributeImplementedInCPPForPrivateScriptOnlyAttribute Getter(info); 5506 TestObjectV8Internal::attributeImplementedInCPPForPrivateScriptOnlyAttribute Getter(info);
5649 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5507 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5650 } 5508 }
5651 5509
5652 static void attributeImplementedInCPPForPrivateScriptOnlyAttributeSetter(v8::Loc al<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 5510 static void attributeImplementedInCPPForPrivateScriptOnlyAttributeSetter(v8::Loc al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
5653 { 5511 {
5654 v8::Local<v8::Object> holder = info.Holder(); 5512 v8::Local<v8::Object> holder = info.Holder();
5655 TestObject* impl = V8TestObject::toImpl(holder); 5513 TestObject* impl = V8TestObject::toImpl(holder);
5656 V8StringResource<> cppValue = v8Value; 5514 V8StringResource<> cppValue = v8Value;
5657 if (!cppValue.prepare()) 5515 if (!cppValue.prepare())
5658 return; 5516 return;
5659 impl->setAttributeImplementedInCPPForPrivateScriptOnly(cppValue); 5517 impl->setAttributeImplementedInCPPForPrivateScriptOnly(cppValue);
5660 } 5518 }
5661 5519
5662 static void attributeImplementedInCPPForPrivateScriptOnlyAttributeSetterCallback (const v8::FunctionCallbackInfo<v8::Value>& info) 5520 static void attributeImplementedInCPPForPrivateScriptOnlyAttributeSetterCallback (v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackIn fo<void>& info)
5663 { 5521 {
5664 v8::Local<v8::Value> v8Value = info[0];
5665 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 5522 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
5666 TestObjectV8Internal::attributeImplementedInCPPForPrivateScriptOnlyAttribute Setter(v8Value, info); 5523 TestObjectV8Internal::attributeImplementedInCPPForPrivateScriptOnlyAttribute Setter(v8Value, info);
5667 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5524 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5668 } 5525 }
5669 5526
5670 static void enumForPrivateScriptAttributeGetter(const v8::FunctionCallbackInfo<v 8::Value>& info) 5527 static void enumForPrivateScriptAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info)
5671 { 5528 {
5672 v8::Local<v8::Object> holder = info.Holder(); 5529 v8::Local<v8::Object> holder = info.Holder();
5673 TestObject* impl = V8TestObject::toImpl(holder); 5530 TestObject* impl = V8TestObject::toImpl(holder);
5674 String result; 5531 String result;
5675 if (!V8TestObject::PrivateScript::enumForPrivateScriptAttributeGetter(toLoca lFrame(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, &res ult)) 5532 if (!V8TestObject::PrivateScript::enumForPrivateScriptAttributeGetter(toLoca lFrame(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, &res ult))
5676 return; 5533 return;
5677 v8SetReturnValueString(info, result, info.GetIsolate()); 5534 v8SetReturnValueString(info, result, info.GetIsolate());
5678 } 5535 }
5679 5536
5680 static void enumForPrivateScriptAttributeGetterCallback(const v8::FunctionCallba ckInfo<v8::Value>& info) 5537 static void enumForPrivateScriptAttributeGetterCallback(v8::Local<v8::Name>, con st v8::PropertyCallbackInfo<v8::Value>& info)
5681 { 5538 {
5682 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 5539 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
5683 TestObjectV8Internal::enumForPrivateScriptAttributeGetter(info); 5540 TestObjectV8Internal::enumForPrivateScriptAttributeGetter(info);
5684 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5541 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5685 } 5542 }
5686 5543
5687 static void enumForPrivateScriptAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::FunctionCallbackInfo<v8::Value>& info) 5544 static void enumForPrivateScriptAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& info)
5688 { 5545 {
5689 v8::Local<v8::Object> holder = info.Holder(); 5546 v8::Local<v8::Object> holder = info.Holder();
5690 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", holder, info.GetIsolate()); 5547 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", holder, info.GetIsolate());
5691 TestObject* impl = V8TestObject::toImpl(holder); 5548 TestObject* impl = V8TestObject::toImpl(holder);
5692 V8StringResource<> cppValue = v8Value; 5549 V8StringResource<> cppValue = v8Value;
5693 if (!cppValue.prepare()) 5550 if (!cppValue.prepare())
5694 return; 5551 return;
5695 static const char* validValues[] = { 5552 static const char* validValues[] = {
5696 "", 5553 "",
5697 "EnumValue1", 5554 "EnumValue1",
5698 "EnumValue2", 5555 "EnumValue2",
5699 "EnumValue3", 5556 "EnumValue3",
5700 }; 5557 };
5701 if (!isValidEnum(cppValue, validValues, WTF_ARRAY_LENGTH(validValues), "Test Enum", exceptionState)) { 5558 if (!isValidEnum(cppValue, validValues, WTF_ARRAY_LENGTH(validValues), "Test Enum", exceptionState)) {
5702 currentExecutionContext(info.GetIsolate())->addConsoleMessage(ConsoleMes sage::create(JSMessageSource, WarningMessageLevel, exceptionState.message())); 5559 currentExecutionContext(info.GetIsolate())->addConsoleMessage(ConsoleMes sage::create(JSMessageSource, WarningMessageLevel, exceptionState.message()));
5703 return; 5560 return;
5704 } 5561 }
5705 V8TestObject::PrivateScript::enumForPrivateScriptAttributeSetter(toLocalFram e(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, cppValue) ; 5562 V8TestObject::PrivateScript::enumForPrivateScriptAttributeSetter(toLocalFram e(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, cppValue) ;
5706 } 5563 }
5707 5564
5708 static void enumForPrivateScriptAttributeSetterCallback(const v8::FunctionCallba ckInfo<v8::Value>& info) 5565 static void enumForPrivateScriptAttributeSetterCallback(v8::Local<v8::Name>, v8: :Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
5709 { 5566 {
5710 v8::Local<v8::Value> v8Value = info[0];
5711 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 5567 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
5712 TestObjectV8Internal::enumForPrivateScriptAttributeSetter(v8Value, info); 5568 TestObjectV8Internal::enumForPrivateScriptAttributeSetter(v8Value, info);
5713 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5569 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5714 } 5570 }
5715 5571
5716 static void testInterfaceEmptyConstructorAttributeConstructorGetterCallback(v8:: Local<v8::Name> property, const v8::PropertyCallbackInfo<v8::Value>& info) 5572 static void testInterfaceEmptyConstructorAttributeConstructorGetterCallback(v8:: Local<v8::Name> property, const v8::PropertyCallbackInfo<v8::Value>& info)
5717 { 5573 {
5718 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 5574 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
5719 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe cutionContext(info.GetIsolate()), UseCounter::deprecatedTestInterfaceEmptyConstr uctorAttribute); 5575 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe cutionContext(info.GetIsolate()), UseCounter::deprecatedTestInterfaceEmptyConstr uctorAttribute);
5720 v8ConstructorAttributeGetter(property, info); 5576 v8ConstructorAttributeGetter(property, info);
(...skipping 6568 matching lines...) Expand 10 before | Expand all | Expand 10 after
12289 static void namedPropertyEnumeratorCallback(const v8::PropertyCallbackInfo<v8::A rray>& info) 12145 static void namedPropertyEnumeratorCallback(const v8::PropertyCallbackInfo<v8::A rray>& info)
12290 { 12146 {
12291 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMNamedProperty"); 12147 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMNamedProperty");
12292 TestObjectV8Internal::namedPropertyEnumerator(info); 12148 TestObjectV8Internal::namedPropertyEnumerator(info);
12293 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 12149 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
12294 } 12150 }
12295 12151
12296 } // namespace TestObjectV8Internal 12152 } // namespace TestObjectV8Internal
12297 12153
12298 static const V8DOMConfiguration::AttributeConfiguration V8TestObjectAttributes[] = { 12154 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)
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}, 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},
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}, 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},
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}, 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},
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}, 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},
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}, 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},
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}, 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},
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}, 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},
12306 #if ENABLE(CONDITION) 12240 #if ENABLE(CONDITION)
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}, 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},
12308 #endif // ENABLE(CONDITION) 12242 #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},
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}, 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},
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}, 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},
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}, 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},
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},
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}, 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},
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},
12313 }; 12321 };
12314 12322
12315 static const V8DOMConfiguration::AccessorConfiguration V8TestObjectAccessors[] = { 12323 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},
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}, 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},
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},
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}, 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},
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},
12468 }; 12326 };
12469 12327
12470 static const V8DOMConfiguration::MethodConfiguration V8TestObjectMethods[] = { 12328 static const V8DOMConfiguration::MethodConfiguration V8TestObjectMethods[] = {
12471 {"voidMethod", TestObjectV8Internal::voidMethodMethodCallback, 0, 0, V8DOMCo nfiguration::ExposedToAllScripts}, 12329 {"voidMethod", TestObjectV8Internal::voidMethodMethodCallback, 0, 0, V8DOMCo nfiguration::ExposedToAllScripts},
12472 {"dateMethod", TestObjectV8Internal::dateMethodMethodCallback, 0, 0, V8DOMCo nfiguration::ExposedToAllScripts}, 12330 {"dateMethod", TestObjectV8Internal::dateMethodMethodCallback, 0, 0, V8DOMCo nfiguration::ExposedToAllScripts},
12473 {"stringMethod", TestObjectV8Internal::stringMethodMethodCallback, 0, 0, V8D OMConfiguration::ExposedToAllScripts}, 12331 {"stringMethod", TestObjectV8Internal::stringMethodMethodCallback, 0, 0, V8D OMConfiguration::ExposedToAllScripts},
12474 {"byteStringMethod", TestObjectV8Internal::byteStringMethodMethodCallback, 0 , 0, V8DOMConfiguration::ExposedToAllScripts}, 12332 {"byteStringMethod", TestObjectV8Internal::byteStringMethodMethodCallback, 0 , 0, V8DOMConfiguration::ExposedToAllScripts},
12475 {"usvStringMethod", TestObjectV8Internal::usvStringMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 12333 {"usvStringMethod", TestObjectV8Internal::usvStringMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
12476 {"readonlyDOMTimeStampMethod", TestObjectV8Internal::readonlyDOMTimeStampMet hodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 12334 {"readonlyDOMTimeStampMethod", TestObjectV8Internal::readonlyDOMTimeStampMet hodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
12477 {"booleanMethod", TestObjectV8Internal::booleanMethodMethodCallback, 0, 0, V 8DOMConfiguration::ExposedToAllScripts}, 12335 {"booleanMethod", TestObjectV8Internal::booleanMethodMethodCallback, 0, 0, V 8DOMConfiguration::ExposedToAllScripts},
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
12720 v8::Local<v8::Signature> defaultSignature; 12578 v8::Local<v8::Signature> defaultSignature;
12721 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, func tionTemplate, "TestObject", v8::Local<v8::FunctionTemplate>(), V8TestObject::int ernalFieldCount, 12579 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, func tionTemplate, "TestObject", v8::Local<v8::FunctionTemplate>(), V8TestObject::int ernalFieldCount,
12722 V8TestObjectAttributes, WTF_ARRAY_LENGTH(V8TestObjectAttributes), 12580 V8TestObjectAttributes, WTF_ARRAY_LENGTH(V8TestObjectAttributes),
12723 V8TestObjectAccessors, WTF_ARRAY_LENGTH(V8TestObjectAccessors), 12581 V8TestObjectAccessors, WTF_ARRAY_LENGTH(V8TestObjectAccessors),
12724 V8TestObjectMethods, WTF_ARRAY_LENGTH(V8TestObjectMethods)); 12582 V8TestObjectMethods, WTF_ARRAY_LENGTH(V8TestObjectMethods));
12725 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT emplate(); 12583 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT emplate();
12726 ALLOW_UNUSED_LOCAL(instanceTemplate); 12584 ALLOW_UNUSED_LOCAL(instanceTemplate);
12727 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp eTemplate(); 12585 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp eTemplate();
12728 ALLOW_UNUSED_LOCAL(prototypeTemplate); 12586 ALLOW_UNUSED_LOCAL(prototypeTemplate);
12729 if (RuntimeEnabledFeatures::featureNameEnabled()) { 12587 if (RuntimeEnabledFeatures::featureNameEnabled()) {
12730 static const V8DOMConfiguration::AccessorConfiguration accessorConfigura tion =\ 12588 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu ration =\
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}; 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};
12732 V8DOMConfiguration::installAccessor(isolate, prototypeTemplate, defaultS ignature, accessorConfiguration); 12590 V8DOMConfiguration::installAttribute(isolate, instanceTemplate, prototyp eTemplate, attributeConfiguration);
12733 } 12591 }
12734 #if ENABLE(CONDITION) 12592 #if ENABLE(CONDITION)
12735 if (RuntimeEnabledFeatures::featureNameEnabled()) { 12593 if (RuntimeEnabledFeatures::featureNameEnabled()) {
12736 static const V8DOMConfiguration::AccessorConfiguration accessorConfigura tion =\ 12594 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu ration =\
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}; 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};
12738 V8DOMConfiguration::installAccessor(isolate, prototypeTemplate, defaultS ignature, accessorConfiguration); 12596 V8DOMConfiguration::installAttribute(isolate, instanceTemplate, prototyp eTemplate, attributeConfiguration);
12739 } 12597 }
12740 #endif // ENABLE(CONDITION) 12598 #endif // ENABLE(CONDITION)
12741 static const V8DOMConfiguration::ConstantConfiguration V8TestObjectConstants [] = { 12599 static const V8DOMConfiguration::ConstantConfiguration V8TestObjectConstants [] = {
12742 {"CONST_VALUE_0", 0, 0, 0, V8DOMConfiguration::ConstantTypeUnsignedShort }, 12600 {"CONST_VALUE_0", 0, 0, 0, V8DOMConfiguration::ConstantTypeUnsignedShort },
12743 {"CONST_VALUE_1", 1, 0, 0, V8DOMConfiguration::ConstantTypeUnsignedShort }, 12601 {"CONST_VALUE_1", 1, 0, 0, V8DOMConfiguration::ConstantTypeUnsignedShort },
12744 {"CONST_VALUE_2", 2, 0, 0, V8DOMConfiguration::ConstantTypeUnsignedShort }, 12602 {"CONST_VALUE_2", 2, 0, 0, V8DOMConfiguration::ConstantTypeUnsignedShort },
12745 {"CONST_VALUE_4", 4, 0, 0, V8DOMConfiguration::ConstantTypeUnsignedShort }, 12603 {"CONST_VALUE_4", 4, 0, 0, V8DOMConfiguration::ConstantTypeUnsignedShort },
12746 {"CONST_VALUE_8", 8, 0, 0, V8DOMConfiguration::ConstantTypeUnsignedShort }, 12604 {"CONST_VALUE_8", 8, 0, 0, V8DOMConfiguration::ConstantTypeUnsignedShort },
12747 {"CONST_VALUE_9", -1, 0, 0, V8DOMConfiguration::ConstantTypeShort}, 12605 {"CONST_VALUE_9", -1, 0, 0, V8DOMConfiguration::ConstantTypeShort},
12748 {"CONST_VALUE_10", 0, 0, "my constant string", V8DOMConfiguration::Const antTypeString}, 12606 {"CONST_VALUE_10", 0, 0, "my constant string", V8DOMConfiguration::Const antTypeString},
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
12875 { 12733 {
12876 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu e)) : 0; 12734 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu e)) : 0;
12877 } 12735 }
12878 12736
12879 void V8TestObject::installConditionallyEnabledProperties(v8::Local<v8::Object> i nstanceObject, v8::Isolate* isolate) 12737 void V8TestObject::installConditionallyEnabledProperties(v8::Local<v8::Object> i nstanceObject, v8::Isolate* isolate)
12880 { 12738 {
12881 v8::Local<v8::Object> prototypeObject = v8::Local<v8::Object>::Cast(instance Object->GetPrototype()); 12739 v8::Local<v8::Object> prototypeObject = v8::Local<v8::Object>::Cast(instance Object->GetPrototype());
12882 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont ext()); 12740 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont ext());
12883 12741
12884 if (context && context->isDocument() && ContextFeatures::featureNameEnabled( toDocument(context))) { 12742 if (context && context->isDocument() && ContextFeatures::featureNameEnabled( toDocument(context))) {
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}; 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};
12886 V8DOMConfiguration::installAccessor(isolate, prototypeObject, accessorCo nfiguration); 12744 V8DOMConfiguration::installAttribute(isolate, instanceObject, prototypeO bject, attributeConfiguration);
12887 } 12745 }
12888 if (context && context->isDocument() && ContextFeatures::featureNameEnabled( toDocument(context))) { 12746 if (context && context->isDocument() && ContextFeatures::featureNameEnabled( toDocument(context))) {
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}; 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};
12890 V8DOMConfiguration::installAccessor(isolate, prototypeObject, accessorCo nfiguration); 12748 V8DOMConfiguration::installAttribute(isolate, instanceObject, prototypeO bject, attributeConfiguration);
12891 } 12749 }
12892 } 12750 }
12893 12751
12894 void V8TestObject::installConditionallyEnabledMethods(v8::Local<v8::Object> prot otypeObject, v8::Isolate* isolate) 12752 void V8TestObject::installConditionallyEnabledMethods(v8::Local<v8::Object> prot otypeObject, v8::Isolate* isolate)
12895 { 12753 {
12896 v8::Local<v8::Signature> defaultSignature = v8::Signature::New(isolate, domT emplate(isolate)); 12754 v8::Local<v8::Signature> defaultSignature = v8::Signature::New(isolate, domT emplate(isolate));
12897 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont ext()); 12755 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont ext());
12898 ASSERT(context); 12756 ASSERT(context);
12899 12757
12900 if (context && context->isDocument() && ContextFeatures::featureNameEnabled( toDocument(context))) { 12758 if (context && context->isDocument() && ContextFeatures::featureNameEnabled( toDocument(context))) {
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after
13395 return false; 13253 return false;
13396 13254
13397 ScriptState::Scope scope(scriptState); 13255 ScriptState::Scope scope(scriptState);
13398 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate()); 13256 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate());
13399 13257
13400 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ; 13258 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ;
13401 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue)); 13259 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue));
13402 } 13260 }
13403 13261
13404 } // namespace blink 13262 } // 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