OLD | NEW |
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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 { | 108 { |
109 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 109 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
110 TestObjectV8Internal::stringifierAttributeAttributeGetter(info); | 110 TestObjectV8Internal::stringifierAttributeAttributeGetter(info); |
111 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 111 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
112 } | 112 } |
113 | 113 |
114 static void stringifierAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::PropertyCallbackInfo<void>& info) | 114 static void stringifierAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::PropertyCallbackInfo<void>& info) |
115 { | 115 { |
116 v8::Local<v8::Object> holder = info.Holder(); | 116 v8::Local<v8::Object> holder = info.Holder(); |
117 TestObject* impl = V8TestObject::toImpl(holder); | 117 TestObject* impl = V8TestObject::toImpl(holder); |
118 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 118 V8StringResource<> cppValue = v8Value; |
| 119 if (!cppValue.prepare()) |
| 120 return; |
119 impl->setStringifierAttribute(cppValue); | 121 impl->setStringifierAttribute(cppValue); |
120 } | 122 } |
121 | 123 |
122 static void stringifierAttributeAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 124 static void stringifierAttributeAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
123 { | 125 { |
124 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 126 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
125 TestObjectV8Internal::stringifierAttributeAttributeSetter(v8Value, info); | 127 TestObjectV8Internal::stringifierAttributeAttributeSetter(v8Value, info); |
126 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 128 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
127 } | 129 } |
128 | 130 |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 { | 217 { |
216 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 218 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
217 TestObjectV8Internal::stringAttributeAttributeGetter(info); | 219 TestObjectV8Internal::stringAttributeAttributeGetter(info); |
218 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 220 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
219 } | 221 } |
220 | 222 |
221 static void stringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v
8::PropertyCallbackInfo<void>& info) | 223 static void stringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v
8::PropertyCallbackInfo<void>& info) |
222 { | 224 { |
223 v8::Local<v8::Object> holder = info.Holder(); | 225 v8::Local<v8::Object> holder = info.Holder(); |
224 TestObject* impl = V8TestObject::toImpl(holder); | 226 TestObject* impl = V8TestObject::toImpl(holder); |
225 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 227 V8StringResource<> cppValue = v8Value; |
| 228 if (!cppValue.prepare()) |
| 229 return; |
226 impl->setStringAttribute(cppValue); | 230 impl->setStringAttribute(cppValue); |
227 } | 231 } |
228 | 232 |
229 static void stringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 233 static void stringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
230 { | 234 { |
231 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 235 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
232 TestObjectV8Internal::stringAttributeAttributeSetter(v8Value, info); | 236 TestObjectV8Internal::stringAttributeAttributeSetter(v8Value, info); |
233 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 237 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
234 } | 238 } |
235 | 239 |
236 static void byteStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) | 240 static void byteStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) |
237 { | 241 { |
238 v8::Local<v8::Object> holder = info.Holder(); | 242 v8::Local<v8::Object> holder = info.Holder(); |
239 TestObject* impl = V8TestObject::toImpl(holder); | 243 TestObject* impl = V8TestObject::toImpl(holder); |
240 v8SetReturnValueString(info, impl->byteStringAttribute(), info.GetIsolate())
; | 244 v8SetReturnValueString(info, impl->byteStringAttribute(), info.GetIsolate())
; |
241 } | 245 } |
242 | 246 |
243 static void byteStringAttributeAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) | 247 static void byteStringAttributeAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) |
244 { | 248 { |
245 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 249 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
246 TestObjectV8Internal::byteStringAttributeAttributeGetter(info); | 250 TestObjectV8Internal::byteStringAttributeAttributeGetter(info); |
247 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 251 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
248 } | 252 } |
249 | 253 |
250 static void byteStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::PropertyCallbackInfo<void>& info) | 254 static void byteStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::PropertyCallbackInfo<void>& info) |
251 { | 255 { |
252 v8::Local<v8::Object> holder = info.Holder(); | 256 v8::Local<v8::Object> holder = info.Holder(); |
253 ExceptionState exceptionState(ExceptionState::SetterContext, "byteStringAttr
ibute", "TestObject", holder, info.GetIsolate()); | 257 ExceptionState exceptionState(ExceptionState::SetterContext, "byteStringAttr
ibute", "TestObject", holder, info.GetIsolate()); |
254 TestObject* impl = V8TestObject::toImpl(holder); | 258 TestObject* impl = V8TestObject::toImpl(holder); |
255 TONATIVE_VOID_EXCEPTIONSTATE(V8StringResource<>, cppValue, toByteString(v8Va
lue, exceptionState), exceptionState); | 259 V8StringResource<> cppValue = toByteString(v8Value, exceptionState); |
| 260 if (exceptionState.throwIfNeeded()) |
| 261 return; |
256 impl->setByteStringAttribute(cppValue); | 262 impl->setByteStringAttribute(cppValue); |
257 } | 263 } |
258 | 264 |
259 static void byteStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 265 static void byteStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
260 { | 266 { |
261 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 267 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
262 TestObjectV8Internal::byteStringAttributeAttributeSetter(v8Value, info); | 268 TestObjectV8Internal::byteStringAttributeAttributeSetter(v8Value, info); |
263 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 269 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
264 } | 270 } |
265 | 271 |
266 static void usvStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8:
:Value>& info) | 272 static void usvStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8:
:Value>& info) |
267 { | 273 { |
268 v8::Local<v8::Object> holder = info.Holder(); | 274 v8::Local<v8::Object> holder = info.Holder(); |
269 TestObject* impl = V8TestObject::toImpl(holder); | 275 TestObject* impl = V8TestObject::toImpl(holder); |
270 v8SetReturnValueString(info, impl->usvStringAttribute(), info.GetIsolate()); | 276 v8SetReturnValueString(info, impl->usvStringAttribute(), info.GetIsolate()); |
271 } | 277 } |
272 | 278 |
273 static void usvStringAttributeAttributeGetterCallback(v8::Local<v8::String>, con
st v8::PropertyCallbackInfo<v8::Value>& info) | 279 static void usvStringAttributeAttributeGetterCallback(v8::Local<v8::String>, con
st v8::PropertyCallbackInfo<v8::Value>& info) |
274 { | 280 { |
275 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 281 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
276 TestObjectV8Internal::usvStringAttributeAttributeGetter(info); | 282 TestObjectV8Internal::usvStringAttributeAttributeGetter(info); |
277 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 283 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
278 } | 284 } |
279 | 285 |
280 static void usvStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) | 286 static void usvStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) |
281 { | 287 { |
282 v8::Local<v8::Object> holder = info.Holder(); | 288 v8::Local<v8::Object> holder = info.Holder(); |
283 ExceptionState exceptionState(ExceptionState::SetterContext, "usvStringAttri
bute", "TestObject", holder, info.GetIsolate()); | 289 ExceptionState exceptionState(ExceptionState::SetterContext, "usvStringAttri
bute", "TestObject", holder, info.GetIsolate()); |
284 TestObject* impl = V8TestObject::toImpl(holder); | 290 TestObject* impl = V8TestObject::toImpl(holder); |
285 TONATIVE_VOID_EXCEPTIONSTATE(V8StringResource<>, cppValue, toUSVString(v8Val
ue, exceptionState), exceptionState); | 291 V8StringResource<> cppValue = toUSVString(v8Value, exceptionState); |
| 292 if (exceptionState.throwIfNeeded()) |
| 293 return; |
286 impl->setUsvStringAttribute(cppValue); | 294 impl->setUsvStringAttribute(cppValue); |
287 } | 295 } |
288 | 296 |
289 static void usvStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:
:Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 297 static void usvStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:
:Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
290 { | 298 { |
291 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 299 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
292 TestObjectV8Internal::usvStringAttributeAttributeSetter(v8Value, info); | 300 TestObjectV8Internal::usvStringAttributeAttributeSetter(v8Value, info); |
293 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 301 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
294 } | 302 } |
295 | 303 |
296 static void domTimeStampAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) | 304 static void domTimeStampAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) |
297 { | 305 { |
298 v8::Local<v8::Object> holder = info.Holder(); | 306 v8::Local<v8::Object> holder = info.Holder(); |
299 TestObject* impl = V8TestObject::toImpl(holder); | 307 TestObject* impl = V8TestObject::toImpl(holder); |
300 v8SetReturnValue(info, static_cast<double>(impl->domTimeStampAttribute())); | 308 v8SetReturnValue(info, static_cast<double>(impl->domTimeStampAttribute())); |
301 } | 309 } |
302 | 310 |
303 static void domTimeStampAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 311 static void domTimeStampAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
304 { | 312 { |
305 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 313 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
306 TestObjectV8Internal::domTimeStampAttributeAttributeGetter(info); | 314 TestObjectV8Internal::domTimeStampAttributeAttributeGetter(info); |
307 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 315 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
308 } | 316 } |
309 | 317 |
310 static void domTimeStampAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) | 318 static void domTimeStampAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) |
311 { | 319 { |
312 v8::Local<v8::Object> holder = info.Holder(); | 320 v8::Local<v8::Object> holder = info.Holder(); |
313 ExceptionState exceptionState(ExceptionState::SetterContext, "domTimeStampAt
tribute", "TestObject", holder, info.GetIsolate()); | 321 ExceptionState exceptionState(ExceptionState::SetterContext, "domTimeStampAt
tribute", "TestObject", holder, info.GetIsolate()); |
314 TestObject* impl = V8TestObject::toImpl(holder); | 322 TestObject* impl = V8TestObject::toImpl(holder); |
315 TONATIVE_VOID_EXCEPTIONSTATE(unsigned long long, cppValue, toUInt64(v8Value,
exceptionState), exceptionState); | 323 unsigned long long cppValue = toUInt64(v8Value, exceptionState); |
| 324 if (exceptionState.throwIfNeeded()) |
| 325 return; |
316 impl->setDomTimeStampAttribute(cppValue); | 326 impl->setDomTimeStampAttribute(cppValue); |
317 } | 327 } |
318 | 328 |
319 static void domTimeStampAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 329 static void domTimeStampAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
320 { | 330 { |
321 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 331 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
322 TestObjectV8Internal::domTimeStampAttributeAttributeSetter(v8Value, info); | 332 TestObjectV8Internal::domTimeStampAttributeAttributeSetter(v8Value, info); |
323 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 333 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
324 } | 334 } |
325 | 335 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 374 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
365 TestObjectV8Internal::byteAttributeAttributeGetter(info); | 375 TestObjectV8Internal::byteAttributeAttributeGetter(info); |
366 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 376 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
367 } | 377 } |
368 | 378 |
369 static void byteAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) | 379 static void byteAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) |
370 { | 380 { |
371 v8::Local<v8::Object> holder = info.Holder(); | 381 v8::Local<v8::Object> holder = info.Holder(); |
372 ExceptionState exceptionState(ExceptionState::SetterContext, "byteAttribute"
, "TestObject", holder, info.GetIsolate()); | 382 ExceptionState exceptionState(ExceptionState::SetterContext, "byteAttribute"
, "TestObject", holder, info.GetIsolate()); |
373 TestObject* impl = V8TestObject::toImpl(holder); | 383 TestObject* impl = V8TestObject::toImpl(holder); |
374 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt8(v8Value, exceptionState),
exceptionState); | 384 int cppValue = toInt8(v8Value, exceptionState); |
| 385 if (exceptionState.throwIfNeeded()) |
| 386 return; |
375 impl->setByteAttribute(cppValue); | 387 impl->setByteAttribute(cppValue); |
376 } | 388 } |
377 | 389 |
378 static void byteAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 390 static void byteAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
379 { | 391 { |
380 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 392 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
381 TestObjectV8Internal::byteAttributeAttributeSetter(v8Value, info); | 393 TestObjectV8Internal::byteAttributeAttributeSetter(v8Value, info); |
382 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 394 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
383 } | 395 } |
384 | 396 |
385 static void doubleAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va
lue>& info) | 397 static void doubleAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va
lue>& info) |
386 { | 398 { |
387 v8::Local<v8::Object> holder = info.Holder(); | 399 v8::Local<v8::Object> holder = info.Holder(); |
388 TestObject* impl = V8TestObject::toImpl(holder); | 400 TestObject* impl = V8TestObject::toImpl(holder); |
389 v8SetReturnValue(info, impl->doubleAttribute()); | 401 v8SetReturnValue(info, impl->doubleAttribute()); |
390 } | 402 } |
391 | 403 |
392 static void doubleAttributeAttributeGetterCallback(v8::Local<v8::String>, const
v8::PropertyCallbackInfo<v8::Value>& info) | 404 static void doubleAttributeAttributeGetterCallback(v8::Local<v8::String>, const
v8::PropertyCallbackInfo<v8::Value>& info) |
393 { | 405 { |
394 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 406 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
395 TestObjectV8Internal::doubleAttributeAttributeGetter(info); | 407 TestObjectV8Internal::doubleAttributeAttributeGetter(info); |
396 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 408 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
397 } | 409 } |
398 | 410 |
399 static void doubleAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v
8::PropertyCallbackInfo<void>& info) | 411 static void doubleAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v
8::PropertyCallbackInfo<void>& info) |
400 { | 412 { |
401 v8::Local<v8::Object> holder = info.Holder(); | 413 v8::Local<v8::Object> holder = info.Holder(); |
402 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleAttribut
e", "TestObject", holder, info.GetIsolate()); | 414 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleAttribut
e", "TestObject", holder, info.GetIsolate()); |
403 TestObject* impl = V8TestObject::toImpl(holder); | 415 TestObject* impl = V8TestObject::toImpl(holder); |
404 TONATIVE_VOID_EXCEPTIONSTATE(double, cppValue, toDouble(v8Value, exceptionSt
ate), exceptionState); | 416 double cppValue = toDouble(v8Value, exceptionState); |
| 417 if (exceptionState.throwIfNeeded()) |
| 418 return; |
405 impl->setDoubleAttribute(cppValue); | 419 impl->setDoubleAttribute(cppValue); |
406 } | 420 } |
407 | 421 |
408 static void doubleAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 422 static void doubleAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
409 { | 423 { |
410 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 424 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
411 TestObjectV8Internal::doubleAttributeAttributeSetter(v8Value, info); | 425 TestObjectV8Internal::doubleAttributeAttributeSetter(v8Value, info); |
412 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 426 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
413 } | 427 } |
414 | 428 |
415 static void floatAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val
ue>& info) | 429 static void floatAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val
ue>& info) |
416 { | 430 { |
417 v8::Local<v8::Object> holder = info.Holder(); | 431 v8::Local<v8::Object> holder = info.Holder(); |
418 TestObject* impl = V8TestObject::toImpl(holder); | 432 TestObject* impl = V8TestObject::toImpl(holder); |
419 v8SetReturnValue(info, impl->floatAttribute()); | 433 v8SetReturnValue(info, impl->floatAttribute()); |
420 } | 434 } |
421 | 435 |
422 static void floatAttributeAttributeGetterCallback(v8::Local<v8::String>, const v
8::PropertyCallbackInfo<v8::Value>& info) | 436 static void floatAttributeAttributeGetterCallback(v8::Local<v8::String>, const v
8::PropertyCallbackInfo<v8::Value>& info) |
423 { | 437 { |
424 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 438 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
425 TestObjectV8Internal::floatAttributeAttributeGetter(info); | 439 TestObjectV8Internal::floatAttributeAttributeGetter(info); |
426 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 440 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
427 } | 441 } |
428 | 442 |
429 static void floatAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8
::PropertyCallbackInfo<void>& info) | 443 static void floatAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8
::PropertyCallbackInfo<void>& info) |
430 { | 444 { |
431 v8::Local<v8::Object> holder = info.Holder(); | 445 v8::Local<v8::Object> holder = info.Holder(); |
432 ExceptionState exceptionState(ExceptionState::SetterContext, "floatAttribute
", "TestObject", holder, info.GetIsolate()); | 446 ExceptionState exceptionState(ExceptionState::SetterContext, "floatAttribute
", "TestObject", holder, info.GetIsolate()); |
433 TestObject* impl = V8TestObject::toImpl(holder); | 447 TestObject* impl = V8TestObject::toImpl(holder); |
434 TONATIVE_VOID_EXCEPTIONSTATE(float, cppValue, toFloat(v8Value, exceptionStat
e), exceptionState); | 448 float cppValue = toFloat(v8Value, exceptionState); |
| 449 if (exceptionState.throwIfNeeded()) |
| 450 return; |
435 impl->setFloatAttribute(cppValue); | 451 impl->setFloatAttribute(cppValue); |
436 } | 452 } |
437 | 453 |
438 static void floatAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 454 static void floatAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
439 { | 455 { |
440 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 456 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
441 TestObjectV8Internal::floatAttributeAttributeSetter(v8Value, info); | 457 TestObjectV8Internal::floatAttributeAttributeSetter(v8Value, info); |
442 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 458 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
443 } | 459 } |
444 | 460 |
445 static void longAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu
e>& info) | 461 static void longAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu
e>& info) |
446 { | 462 { |
447 v8::Local<v8::Object> holder = info.Holder(); | 463 v8::Local<v8::Object> holder = info.Holder(); |
448 TestObject* impl = V8TestObject::toImpl(holder); | 464 TestObject* impl = V8TestObject::toImpl(holder); |
449 v8SetReturnValueInt(info, impl->longAttribute()); | 465 v8SetReturnValueInt(info, impl->longAttribute()); |
450 } | 466 } |
451 | 467 |
452 static void longAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8
::PropertyCallbackInfo<v8::Value>& info) | 468 static void longAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8
::PropertyCallbackInfo<v8::Value>& info) |
453 { | 469 { |
454 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 470 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
455 TestObjectV8Internal::longAttributeAttributeGetter(info); | 471 TestObjectV8Internal::longAttributeAttributeGetter(info); |
456 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 472 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
457 } | 473 } |
458 | 474 |
459 static void longAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) | 475 static void longAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) |
460 { | 476 { |
461 v8::Local<v8::Object> holder = info.Holder(); | 477 v8::Local<v8::Object> holder = info.Holder(); |
462 ExceptionState exceptionState(ExceptionState::SetterContext, "longAttribute"
, "TestObject", holder, info.GetIsolate()); | 478 ExceptionState exceptionState(ExceptionState::SetterContext, "longAttribute"
, "TestObject", holder, info.GetIsolate()); |
463 TestObject* impl = V8TestObject::toImpl(holder); | 479 TestObject* impl = V8TestObject::toImpl(holder); |
464 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 480 int cppValue = toInt32(v8Value, exceptionState); |
| 481 if (exceptionState.throwIfNeeded()) |
| 482 return; |
465 impl->setLongAttribute(cppValue); | 483 impl->setLongAttribute(cppValue); |
466 } | 484 } |
467 | 485 |
468 static void longAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 486 static void longAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
469 { | 487 { |
470 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 488 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
471 TestObjectV8Internal::longAttributeAttributeSetter(v8Value, info); | 489 TestObjectV8Internal::longAttributeAttributeSetter(v8Value, info); |
472 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 490 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
473 } | 491 } |
474 | 492 |
475 static void longLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::
Value>& info) | 493 static void longLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::
Value>& info) |
476 { | 494 { |
477 v8::Local<v8::Object> holder = info.Holder(); | 495 v8::Local<v8::Object> holder = info.Holder(); |
478 TestObject* impl = V8TestObject::toImpl(holder); | 496 TestObject* impl = V8TestObject::toImpl(holder); |
479 v8SetReturnValue(info, static_cast<double>(impl->longLongAttribute())); | 497 v8SetReturnValue(info, static_cast<double>(impl->longLongAttribute())); |
480 } | 498 } |
481 | 499 |
482 static void longLongAttributeAttributeGetterCallback(v8::Local<v8::String>, cons
t v8::PropertyCallbackInfo<v8::Value>& info) | 500 static void longLongAttributeAttributeGetterCallback(v8::Local<v8::String>, cons
t v8::PropertyCallbackInfo<v8::Value>& info) |
483 { | 501 { |
484 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 502 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
485 TestObjectV8Internal::longLongAttributeAttributeGetter(info); | 503 TestObjectV8Internal::longLongAttributeAttributeGetter(info); |
486 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 504 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
487 } | 505 } |
488 | 506 |
489 static void longLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const
v8::PropertyCallbackInfo<void>& info) | 507 static void longLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const
v8::PropertyCallbackInfo<void>& info) |
490 { | 508 { |
491 v8::Local<v8::Object> holder = info.Holder(); | 509 v8::Local<v8::Object> holder = info.Holder(); |
492 ExceptionState exceptionState(ExceptionState::SetterContext, "longLongAttrib
ute", "TestObject", holder, info.GetIsolate()); | 510 ExceptionState exceptionState(ExceptionState::SetterContext, "longLongAttrib
ute", "TestObject", holder, info.GetIsolate()); |
493 TestObject* impl = V8TestObject::toImpl(holder); | 511 TestObject* impl = V8TestObject::toImpl(holder); |
494 TONATIVE_VOID_EXCEPTIONSTATE(long long, cppValue, toInt64(v8Value, exception
State), exceptionState); | 512 long long cppValue = toInt64(v8Value, exceptionState); |
| 513 if (exceptionState.throwIfNeeded()) |
| 514 return; |
495 impl->setLongLongAttribute(cppValue); | 515 impl->setLongLongAttribute(cppValue); |
496 } | 516 } |
497 | 517 |
498 static void longLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::
Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 518 static void longLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::
Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
499 { | 519 { |
500 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 520 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
501 TestObjectV8Internal::longLongAttributeAttributeSetter(v8Value, info); | 521 TestObjectV8Internal::longLongAttributeAttributeSetter(v8Value, info); |
502 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 522 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
503 } | 523 } |
504 | 524 |
505 static void octetAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val
ue>& info) | 525 static void octetAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val
ue>& info) |
506 { | 526 { |
507 v8::Local<v8::Object> holder = info.Holder(); | 527 v8::Local<v8::Object> holder = info.Holder(); |
508 TestObject* impl = V8TestObject::toImpl(holder); | 528 TestObject* impl = V8TestObject::toImpl(holder); |
509 v8SetReturnValueUnsigned(info, impl->octetAttribute()); | 529 v8SetReturnValueUnsigned(info, impl->octetAttribute()); |
510 } | 530 } |
511 | 531 |
512 static void octetAttributeAttributeGetterCallback(v8::Local<v8::String>, const v
8::PropertyCallbackInfo<v8::Value>& info) | 532 static void octetAttributeAttributeGetterCallback(v8::Local<v8::String>, const v
8::PropertyCallbackInfo<v8::Value>& info) |
513 { | 533 { |
514 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 534 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
515 TestObjectV8Internal::octetAttributeAttributeGetter(info); | 535 TestObjectV8Internal::octetAttributeAttributeGetter(info); |
516 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 536 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
517 } | 537 } |
518 | 538 |
519 static void octetAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8
::PropertyCallbackInfo<void>& info) | 539 static void octetAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8
::PropertyCallbackInfo<void>& info) |
520 { | 540 { |
521 v8::Local<v8::Object> holder = info.Holder(); | 541 v8::Local<v8::Object> holder = info.Holder(); |
522 ExceptionState exceptionState(ExceptionState::SetterContext, "octetAttribute
", "TestObject", holder, info.GetIsolate()); | 542 ExceptionState exceptionState(ExceptionState::SetterContext, "octetAttribute
", "TestObject", holder, info.GetIsolate()); |
523 TestObject* impl = V8TestObject::toImpl(holder); | 543 TestObject* impl = V8TestObject::toImpl(holder); |
524 TONATIVE_VOID_EXCEPTIONSTATE(unsigned, cppValue, toUInt8(v8Value, exceptionS
tate), exceptionState); | 544 unsigned cppValue = toUInt8(v8Value, exceptionState); |
| 545 if (exceptionState.throwIfNeeded()) |
| 546 return; |
525 impl->setOctetAttribute(cppValue); | 547 impl->setOctetAttribute(cppValue); |
526 } | 548 } |
527 | 549 |
528 static void octetAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 550 static void octetAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
529 { | 551 { |
530 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 552 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
531 TestObjectV8Internal::octetAttributeAttributeSetter(v8Value, info); | 553 TestObjectV8Internal::octetAttributeAttributeSetter(v8Value, info); |
532 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 554 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
533 } | 555 } |
534 | 556 |
535 static void shortAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val
ue>& info) | 557 static void shortAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val
ue>& info) |
536 { | 558 { |
537 v8::Local<v8::Object> holder = info.Holder(); | 559 v8::Local<v8::Object> holder = info.Holder(); |
538 TestObject* impl = V8TestObject::toImpl(holder); | 560 TestObject* impl = V8TestObject::toImpl(holder); |
539 v8SetReturnValueInt(info, impl->shortAttribute()); | 561 v8SetReturnValueInt(info, impl->shortAttribute()); |
540 } | 562 } |
541 | 563 |
542 static void shortAttributeAttributeGetterCallback(v8::Local<v8::String>, const v
8::PropertyCallbackInfo<v8::Value>& info) | 564 static void shortAttributeAttributeGetterCallback(v8::Local<v8::String>, const v
8::PropertyCallbackInfo<v8::Value>& info) |
543 { | 565 { |
544 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 566 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
545 TestObjectV8Internal::shortAttributeAttributeGetter(info); | 567 TestObjectV8Internal::shortAttributeAttributeGetter(info); |
546 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 568 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
547 } | 569 } |
548 | 570 |
549 static void shortAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8
::PropertyCallbackInfo<void>& info) | 571 static void shortAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8
::PropertyCallbackInfo<void>& info) |
550 { | 572 { |
551 v8::Local<v8::Object> holder = info.Holder(); | 573 v8::Local<v8::Object> holder = info.Holder(); |
552 ExceptionState exceptionState(ExceptionState::SetterContext, "shortAttribute
", "TestObject", holder, info.GetIsolate()); | 574 ExceptionState exceptionState(ExceptionState::SetterContext, "shortAttribute
", "TestObject", holder, info.GetIsolate()); |
553 TestObject* impl = V8TestObject::toImpl(holder); | 575 TestObject* impl = V8TestObject::toImpl(holder); |
554 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt16(v8Value, exceptionState)
, exceptionState); | 576 int cppValue = toInt16(v8Value, exceptionState); |
| 577 if (exceptionState.throwIfNeeded()) |
| 578 return; |
555 impl->setShortAttribute(cppValue); | 579 impl->setShortAttribute(cppValue); |
556 } | 580 } |
557 | 581 |
558 static void shortAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 582 static void shortAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
559 { | 583 { |
560 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 584 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
561 TestObjectV8Internal::shortAttributeAttributeSetter(v8Value, info); | 585 TestObjectV8Internal::shortAttributeAttributeSetter(v8Value, info); |
562 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 586 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
563 } | 587 } |
564 | 588 |
565 static void unrestrictedDoubleAttributeAttributeGetter(const v8::PropertyCallbac
kInfo<v8::Value>& info) | 589 static void unrestrictedDoubleAttributeAttributeGetter(const v8::PropertyCallbac
kInfo<v8::Value>& info) |
566 { | 590 { |
567 v8::Local<v8::Object> holder = info.Holder(); | 591 v8::Local<v8::Object> holder = info.Holder(); |
568 TestObject* impl = V8TestObject::toImpl(holder); | 592 TestObject* impl = V8TestObject::toImpl(holder); |
569 v8SetReturnValue(info, impl->unrestrictedDoubleAttribute()); | 593 v8SetReturnValue(info, impl->unrestrictedDoubleAttribute()); |
570 } | 594 } |
571 | 595 |
572 static void unrestrictedDoubleAttributeAttributeGetterCallback(v8::Local<v8::Str
ing>, const v8::PropertyCallbackInfo<v8::Value>& info) | 596 static void unrestrictedDoubleAttributeAttributeGetterCallback(v8::Local<v8::Str
ing>, const v8::PropertyCallbackInfo<v8::Value>& info) |
573 { | 597 { |
574 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 598 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
575 TestObjectV8Internal::unrestrictedDoubleAttributeAttributeGetter(info); | 599 TestObjectV8Internal::unrestrictedDoubleAttributeAttributeGetter(info); |
576 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 600 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
577 } | 601 } |
578 | 602 |
579 static void unrestrictedDoubleAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) | 603 static void unrestrictedDoubleAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) |
580 { | 604 { |
581 v8::Local<v8::Object> holder = info.Holder(); | 605 v8::Local<v8::Object> holder = info.Holder(); |
582 ExceptionState exceptionState(ExceptionState::SetterContext, "unrestrictedDo
ubleAttribute", "TestObject", holder, info.GetIsolate()); | 606 ExceptionState exceptionState(ExceptionState::SetterContext, "unrestrictedDo
ubleAttribute", "TestObject", holder, info.GetIsolate()); |
583 TestObject* impl = V8TestObject::toImpl(holder); | 607 TestObject* impl = V8TestObject::toImpl(holder); |
584 TONATIVE_VOID_EXCEPTIONSTATE(double, cppValue, toDouble(v8Value, exceptionSt
ate), exceptionState); | 608 double cppValue = toDouble(v8Value, exceptionState); |
| 609 if (exceptionState.throwIfNeeded()) |
| 610 return; |
585 impl->setUnrestrictedDoubleAttribute(cppValue); | 611 impl->setUnrestrictedDoubleAttribute(cppValue); |
586 } | 612 } |
587 | 613 |
588 static void unrestrictedDoubleAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 614 static void unrestrictedDoubleAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
589 { | 615 { |
590 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 616 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
591 TestObjectV8Internal::unrestrictedDoubleAttributeAttributeSetter(v8Value, in
fo); | 617 TestObjectV8Internal::unrestrictedDoubleAttributeAttributeSetter(v8Value, in
fo); |
592 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 618 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
593 } | 619 } |
594 | 620 |
595 static void unrestrictedFloatAttributeAttributeGetter(const v8::PropertyCallback
Info<v8::Value>& info) | 621 static void unrestrictedFloatAttributeAttributeGetter(const v8::PropertyCallback
Info<v8::Value>& info) |
596 { | 622 { |
597 v8::Local<v8::Object> holder = info.Holder(); | 623 v8::Local<v8::Object> holder = info.Holder(); |
598 TestObject* impl = V8TestObject::toImpl(holder); | 624 TestObject* impl = V8TestObject::toImpl(holder); |
599 v8SetReturnValue(info, impl->unrestrictedFloatAttribute()); | 625 v8SetReturnValue(info, impl->unrestrictedFloatAttribute()); |
600 } | 626 } |
601 | 627 |
602 static void unrestrictedFloatAttributeAttributeGetterCallback(v8::Local<v8::Stri
ng>, const v8::PropertyCallbackInfo<v8::Value>& info) | 628 static void unrestrictedFloatAttributeAttributeGetterCallback(v8::Local<v8::Stri
ng>, const v8::PropertyCallbackInfo<v8::Value>& info) |
603 { | 629 { |
604 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 630 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
605 TestObjectV8Internal::unrestrictedFloatAttributeAttributeGetter(info); | 631 TestObjectV8Internal::unrestrictedFloatAttributeAttributeGetter(info); |
606 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 632 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
607 } | 633 } |
608 | 634 |
609 static void unrestrictedFloatAttributeAttributeSetter(v8::Local<v8::Value> v8Val
ue, const v8::PropertyCallbackInfo<void>& info) | 635 static void unrestrictedFloatAttributeAttributeSetter(v8::Local<v8::Value> v8Val
ue, const v8::PropertyCallbackInfo<void>& info) |
610 { | 636 { |
611 v8::Local<v8::Object> holder = info.Holder(); | 637 v8::Local<v8::Object> holder = info.Holder(); |
612 ExceptionState exceptionState(ExceptionState::SetterContext, "unrestrictedFl
oatAttribute", "TestObject", holder, info.GetIsolate()); | 638 ExceptionState exceptionState(ExceptionState::SetterContext, "unrestrictedFl
oatAttribute", "TestObject", holder, info.GetIsolate()); |
613 TestObject* impl = V8TestObject::toImpl(holder); | 639 TestObject* impl = V8TestObject::toImpl(holder); |
614 TONATIVE_VOID_EXCEPTIONSTATE(float, cppValue, toFloat(v8Value, exceptionStat
e), exceptionState); | 640 float cppValue = toFloat(v8Value, exceptionState); |
| 641 if (exceptionState.throwIfNeeded()) |
| 642 return; |
615 impl->setUnrestrictedFloatAttribute(cppValue); | 643 impl->setUnrestrictedFloatAttribute(cppValue); |
616 } | 644 } |
617 | 645 |
618 static void unrestrictedFloatAttributeAttributeSetterCallback(v8::Local<v8::Stri
ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 646 static void unrestrictedFloatAttributeAttributeSetterCallback(v8::Local<v8::Stri
ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
619 { | 647 { |
620 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 648 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
621 TestObjectV8Internal::unrestrictedFloatAttributeAttributeSetter(v8Value, inf
o); | 649 TestObjectV8Internal::unrestrictedFloatAttributeAttributeSetter(v8Value, inf
o); |
622 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 650 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
623 } | 651 } |
624 | 652 |
625 static void unsignedLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) | 653 static void unsignedLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) |
626 { | 654 { |
627 v8::Local<v8::Object> holder = info.Holder(); | 655 v8::Local<v8::Object> holder = info.Holder(); |
628 TestObject* impl = V8TestObject::toImpl(holder); | 656 TestObject* impl = V8TestObject::toImpl(holder); |
629 v8SetReturnValueUnsigned(info, impl->unsignedLongAttribute()); | 657 v8SetReturnValueUnsigned(info, impl->unsignedLongAttribute()); |
630 } | 658 } |
631 | 659 |
632 static void unsignedLongAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 660 static void unsignedLongAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
633 { | 661 { |
634 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 662 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
635 TestObjectV8Internal::unsignedLongAttributeAttributeGetter(info); | 663 TestObjectV8Internal::unsignedLongAttributeAttributeGetter(info); |
636 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 664 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
637 } | 665 } |
638 | 666 |
639 static void unsignedLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) | 667 static void unsignedLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) |
640 { | 668 { |
641 v8::Local<v8::Object> holder = info.Holder(); | 669 v8::Local<v8::Object> holder = info.Holder(); |
642 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedLongAt
tribute", "TestObject", holder, info.GetIsolate()); | 670 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedLongAt
tribute", "TestObject", holder, info.GetIsolate()); |
643 TestObject* impl = V8TestObject::toImpl(holder); | 671 TestObject* impl = V8TestObject::toImpl(holder); |
644 TONATIVE_VOID_EXCEPTIONSTATE(unsigned, cppValue, toUInt32(v8Value, exception
State), exceptionState); | 672 unsigned cppValue = toUInt32(v8Value, exceptionState); |
| 673 if (exceptionState.throwIfNeeded()) |
| 674 return; |
645 impl->setUnsignedLongAttribute(cppValue); | 675 impl->setUnsignedLongAttribute(cppValue); |
646 } | 676 } |
647 | 677 |
648 static void unsignedLongAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 678 static void unsignedLongAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
649 { | 679 { |
650 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 680 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
651 TestObjectV8Internal::unsignedLongAttributeAttributeSetter(v8Value, info); | 681 TestObjectV8Internal::unsignedLongAttributeAttributeSetter(v8Value, info); |
652 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 682 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
653 } | 683 } |
654 | 684 |
655 static void unsignedLongLongAttributeAttributeGetter(const v8::PropertyCallbackI
nfo<v8::Value>& info) | 685 static void unsignedLongLongAttributeAttributeGetter(const v8::PropertyCallbackI
nfo<v8::Value>& info) |
656 { | 686 { |
657 v8::Local<v8::Object> holder = info.Holder(); | 687 v8::Local<v8::Object> holder = info.Holder(); |
658 TestObject* impl = V8TestObject::toImpl(holder); | 688 TestObject* impl = V8TestObject::toImpl(holder); |
659 v8SetReturnValue(info, static_cast<double>(impl->unsignedLongLongAttribute()
)); | 689 v8SetReturnValue(info, static_cast<double>(impl->unsignedLongLongAttribute()
)); |
660 } | 690 } |
661 | 691 |
662 static void unsignedLongLongAttributeAttributeGetterCallback(v8::Local<v8::Strin
g>, const v8::PropertyCallbackInfo<v8::Value>& info) | 692 static void unsignedLongLongAttributeAttributeGetterCallback(v8::Local<v8::Strin
g>, const v8::PropertyCallbackInfo<v8::Value>& info) |
663 { | 693 { |
664 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 694 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
665 TestObjectV8Internal::unsignedLongLongAttributeAttributeGetter(info); | 695 TestObjectV8Internal::unsignedLongLongAttributeAttributeGetter(info); |
666 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 696 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
667 } | 697 } |
668 | 698 |
669 static void unsignedLongLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::PropertyCallbackInfo<void>& info) | 699 static void unsignedLongLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::PropertyCallbackInfo<void>& info) |
670 { | 700 { |
671 v8::Local<v8::Object> holder = info.Holder(); | 701 v8::Local<v8::Object> holder = info.Holder(); |
672 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedLongLo
ngAttribute", "TestObject", holder, info.GetIsolate()); | 702 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedLongLo
ngAttribute", "TestObject", holder, info.GetIsolate()); |
673 TestObject* impl = V8TestObject::toImpl(holder); | 703 TestObject* impl = V8TestObject::toImpl(holder); |
674 TONATIVE_VOID_EXCEPTIONSTATE(unsigned long long, cppValue, toUInt64(v8Value,
exceptionState), exceptionState); | 704 unsigned long long cppValue = toUInt64(v8Value, exceptionState); |
| 705 if (exceptionState.throwIfNeeded()) |
| 706 return; |
675 impl->setUnsignedLongLongAttribute(cppValue); | 707 impl->setUnsignedLongLongAttribute(cppValue); |
676 } | 708 } |
677 | 709 |
678 static void unsignedLongLongAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 710 static void unsignedLongLongAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
679 { | 711 { |
680 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 712 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
681 TestObjectV8Internal::unsignedLongLongAttributeAttributeSetter(v8Value, info
); | 713 TestObjectV8Internal::unsignedLongLongAttributeAttributeSetter(v8Value, info
); |
682 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 714 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
683 } | 715 } |
684 | 716 |
685 static void unsignedShortAttributeAttributeGetter(const v8::PropertyCallbackInfo
<v8::Value>& info) | 717 static void unsignedShortAttributeAttributeGetter(const v8::PropertyCallbackInfo
<v8::Value>& info) |
686 { | 718 { |
687 v8::Local<v8::Object> holder = info.Holder(); | 719 v8::Local<v8::Object> holder = info.Holder(); |
688 TestObject* impl = V8TestObject::toImpl(holder); | 720 TestObject* impl = V8TestObject::toImpl(holder); |
689 v8SetReturnValueUnsigned(info, impl->unsignedShortAttribute()); | 721 v8SetReturnValueUnsigned(info, impl->unsignedShortAttribute()); |
690 } | 722 } |
691 | 723 |
692 static void unsignedShortAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 724 static void unsignedShortAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
693 { | 725 { |
694 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 726 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
695 TestObjectV8Internal::unsignedShortAttributeAttributeGetter(info); | 727 TestObjectV8Internal::unsignedShortAttributeAttributeGetter(info); |
696 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 728 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
697 } | 729 } |
698 | 730 |
699 static void unsignedShortAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) | 731 static void unsignedShortAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) |
700 { | 732 { |
701 v8::Local<v8::Object> holder = info.Holder(); | 733 v8::Local<v8::Object> holder = info.Holder(); |
702 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedShortA
ttribute", "TestObject", holder, info.GetIsolate()); | 734 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedShortA
ttribute", "TestObject", holder, info.GetIsolate()); |
703 TestObject* impl = V8TestObject::toImpl(holder); | 735 TestObject* impl = V8TestObject::toImpl(holder); |
704 TONATIVE_VOID_EXCEPTIONSTATE(unsigned, cppValue, toUInt16(v8Value, exception
State), exceptionState); | 736 unsigned cppValue = toUInt16(v8Value, exceptionState); |
| 737 if (exceptionState.throwIfNeeded()) |
| 738 return; |
705 impl->setUnsignedShortAttribute(cppValue); | 739 impl->setUnsignedShortAttribute(cppValue); |
706 } | 740 } |
707 | 741 |
708 static void unsignedShortAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 742 static void unsignedShortAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
709 { | 743 { |
710 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 744 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
711 TestObjectV8Internal::unsignedShortAttributeAttributeSetter(v8Value, info); | 745 TestObjectV8Internal::unsignedShortAttributeAttributeSetter(v8Value, info); |
712 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 746 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
713 } | 747 } |
714 | 748 |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
840 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 874 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
841 TestObjectV8Internal::cssAttributeAttributeGetter(info); | 875 TestObjectV8Internal::cssAttributeAttributeGetter(info); |
842 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 876 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
843 } | 877 } |
844 | 878 |
845 static void cssAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::
PropertyCallbackInfo<void>& info) | 879 static void cssAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::
PropertyCallbackInfo<void>& info) |
846 { | 880 { |
847 v8::Local<v8::Object> holder = info.Holder(); | 881 v8::Local<v8::Object> holder = info.Holder(); |
848 ExceptionState exceptionState(ExceptionState::SetterContext, "cssAttribute",
"TestObject", holder, info.GetIsolate()); | 882 ExceptionState exceptionState(ExceptionState::SetterContext, "cssAttribute",
"TestObject", holder, info.GetIsolate()); |
849 TestObject* impl = V8TestObject::toImpl(holder); | 883 TestObject* impl = V8TestObject::toImpl(holder); |
850 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 884 int cppValue = toInt32(v8Value, exceptionState); |
| 885 if (exceptionState.throwIfNeeded()) |
| 886 return; |
851 impl->setCSSAttribute(cppValue); | 887 impl->setCSSAttribute(cppValue); |
852 } | 888 } |
853 | 889 |
854 static void cssAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local
<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 890 static void cssAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local
<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
855 { | 891 { |
856 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 892 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
857 TestObjectV8Internal::cssAttributeAttributeSetter(v8Value, info); | 893 TestObjectV8Internal::cssAttributeAttributeSetter(v8Value, info); |
858 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 894 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
859 } | 895 } |
860 | 896 |
861 static void imeAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value
>& info) | 897 static void imeAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value
>& info) |
862 { | 898 { |
863 v8::Local<v8::Object> holder = info.Holder(); | 899 v8::Local<v8::Object> holder = info.Holder(); |
864 TestObject* impl = V8TestObject::toImpl(holder); | 900 TestObject* impl = V8TestObject::toImpl(holder); |
865 v8SetReturnValueInt(info, impl->imeAttribute()); | 901 v8SetReturnValueInt(info, impl->imeAttribute()); |
866 } | 902 } |
867 | 903 |
868 static void imeAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8:
:PropertyCallbackInfo<v8::Value>& info) | 904 static void imeAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8:
:PropertyCallbackInfo<v8::Value>& info) |
869 { | 905 { |
870 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 906 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
871 TestObjectV8Internal::imeAttributeAttributeGetter(info); | 907 TestObjectV8Internal::imeAttributeAttributeGetter(info); |
872 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 908 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
873 } | 909 } |
874 | 910 |
875 static void imeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::
PropertyCallbackInfo<void>& info) | 911 static void imeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::
PropertyCallbackInfo<void>& info) |
876 { | 912 { |
877 v8::Local<v8::Object> holder = info.Holder(); | 913 v8::Local<v8::Object> holder = info.Holder(); |
878 ExceptionState exceptionState(ExceptionState::SetterContext, "imeAttribute",
"TestObject", holder, info.GetIsolate()); | 914 ExceptionState exceptionState(ExceptionState::SetterContext, "imeAttribute",
"TestObject", holder, info.GetIsolate()); |
879 TestObject* impl = V8TestObject::toImpl(holder); | 915 TestObject* impl = V8TestObject::toImpl(holder); |
880 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 916 int cppValue = toInt32(v8Value, exceptionState); |
| 917 if (exceptionState.throwIfNeeded()) |
| 918 return; |
881 impl->setIMEAttribute(cppValue); | 919 impl->setIMEAttribute(cppValue); |
882 } | 920 } |
883 | 921 |
884 static void imeAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local
<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 922 static void imeAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local
<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
885 { | 923 { |
886 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 924 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
887 TestObjectV8Internal::imeAttributeAttributeSetter(v8Value, info); | 925 TestObjectV8Internal::imeAttributeAttributeSetter(v8Value, info); |
888 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 926 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
889 } | 927 } |
890 | 928 |
891 static void svgAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value
>& info) | 929 static void svgAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value
>& info) |
892 { | 930 { |
893 v8::Local<v8::Object> holder = info.Holder(); | 931 v8::Local<v8::Object> holder = info.Holder(); |
894 TestObject* impl = V8TestObject::toImpl(holder); | 932 TestObject* impl = V8TestObject::toImpl(holder); |
895 v8SetReturnValueInt(info, impl->svgAttribute()); | 933 v8SetReturnValueInt(info, impl->svgAttribute()); |
896 } | 934 } |
897 | 935 |
898 static void svgAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8:
:PropertyCallbackInfo<v8::Value>& info) | 936 static void svgAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8:
:PropertyCallbackInfo<v8::Value>& info) |
899 { | 937 { |
900 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 938 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
901 TestObjectV8Internal::svgAttributeAttributeGetter(info); | 939 TestObjectV8Internal::svgAttributeAttributeGetter(info); |
902 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 940 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
903 } | 941 } |
904 | 942 |
905 static void svgAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::
PropertyCallbackInfo<void>& info) | 943 static void svgAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::
PropertyCallbackInfo<void>& info) |
906 { | 944 { |
907 v8::Local<v8::Object> holder = info.Holder(); | 945 v8::Local<v8::Object> holder = info.Holder(); |
908 ExceptionState exceptionState(ExceptionState::SetterContext, "svgAttribute",
"TestObject", holder, info.GetIsolate()); | 946 ExceptionState exceptionState(ExceptionState::SetterContext, "svgAttribute",
"TestObject", holder, info.GetIsolate()); |
909 TestObject* impl = V8TestObject::toImpl(holder); | 947 TestObject* impl = V8TestObject::toImpl(holder); |
910 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 948 int cppValue = toInt32(v8Value, exceptionState); |
| 949 if (exceptionState.throwIfNeeded()) |
| 950 return; |
911 impl->setSVGAttribute(cppValue); | 951 impl->setSVGAttribute(cppValue); |
912 } | 952 } |
913 | 953 |
914 static void svgAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local
<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 954 static void svgAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local
<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
915 { | 955 { |
916 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 956 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
917 TestObjectV8Internal::svgAttributeAttributeSetter(v8Value, info); | 957 TestObjectV8Internal::svgAttributeAttributeSetter(v8Value, info); |
918 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 958 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
919 } | 959 } |
920 | 960 |
921 static void xmlAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value
>& info) | 961 static void xmlAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value
>& info) |
922 { | 962 { |
923 v8::Local<v8::Object> holder = info.Holder(); | 963 v8::Local<v8::Object> holder = info.Holder(); |
924 TestObject* impl = V8TestObject::toImpl(holder); | 964 TestObject* impl = V8TestObject::toImpl(holder); |
925 v8SetReturnValueInt(info, impl->xmlAttribute()); | 965 v8SetReturnValueInt(info, impl->xmlAttribute()); |
926 } | 966 } |
927 | 967 |
928 static void xmlAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8:
:PropertyCallbackInfo<v8::Value>& info) | 968 static void xmlAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8:
:PropertyCallbackInfo<v8::Value>& info) |
929 { | 969 { |
930 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 970 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
931 TestObjectV8Internal::xmlAttributeAttributeGetter(info); | 971 TestObjectV8Internal::xmlAttributeAttributeGetter(info); |
932 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 972 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
933 } | 973 } |
934 | 974 |
935 static void xmlAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::
PropertyCallbackInfo<void>& info) | 975 static void xmlAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::
PropertyCallbackInfo<void>& info) |
936 { | 976 { |
937 v8::Local<v8::Object> holder = info.Holder(); | 977 v8::Local<v8::Object> holder = info.Holder(); |
938 ExceptionState exceptionState(ExceptionState::SetterContext, "xmlAttribute",
"TestObject", holder, info.GetIsolate()); | 978 ExceptionState exceptionState(ExceptionState::SetterContext, "xmlAttribute",
"TestObject", holder, info.GetIsolate()); |
939 TestObject* impl = V8TestObject::toImpl(holder); | 979 TestObject* impl = V8TestObject::toImpl(holder); |
940 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 980 int cppValue = toInt32(v8Value, exceptionState); |
| 981 if (exceptionState.throwIfNeeded()) |
| 982 return; |
941 impl->setXMLAttribute(cppValue); | 983 impl->setXMLAttribute(cppValue); |
942 } | 984 } |
943 | 985 |
944 static void xmlAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local
<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 986 static void xmlAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local
<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
945 { | 987 { |
946 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 988 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
947 TestObjectV8Internal::xmlAttributeAttributeSetter(v8Value, info); | 989 TestObjectV8Internal::xmlAttributeAttributeSetter(v8Value, info); |
948 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 990 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
949 } | 991 } |
950 | 992 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
989 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1031 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
990 TestObjectV8Internal::serializedScriptValueAttributeAttributeGetter(info); | 1032 TestObjectV8Internal::serializedScriptValueAttributeAttributeGetter(info); |
991 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1033 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
992 } | 1034 } |
993 | 1035 |
994 static void serializedScriptValueAttributeAttributeSetter(v8::Local<v8::Value> v
8Value, const v8::PropertyCallbackInfo<void>& info) | 1036 static void serializedScriptValueAttributeAttributeSetter(v8::Local<v8::Value> v
8Value, const v8::PropertyCallbackInfo<void>& info) |
995 { | 1037 { |
996 v8::Local<v8::Object> holder = info.Holder(); | 1038 v8::Local<v8::Object> holder = info.Holder(); |
997 ExceptionState exceptionState(ExceptionState::SetterContext, "serializedScri
ptValueAttribute", "TestObject", holder, info.GetIsolate()); | 1039 ExceptionState exceptionState(ExceptionState::SetterContext, "serializedScri
ptValueAttribute", "TestObject", holder, info.GetIsolate()); |
998 TestObject* impl = V8TestObject::toImpl(holder); | 1040 TestObject* impl = V8TestObject::toImpl(holder); |
999 TONATIVE_VOID_EXCEPTIONSTATE(RefPtr<SerializedScriptValue>, cppValue, Serial
izedScriptValueFactory::instance().create(v8Value, 0, 0, exceptionState, info.Ge
tIsolate()), exceptionState); | 1041 RefPtr<SerializedScriptValue> cppValue = SerializedScriptValueFactory::insta
nce().create(v8Value, 0, 0, exceptionState, info.GetIsolate()); |
| 1042 if (exceptionState.throwIfNeeded()) |
| 1043 return; |
1000 impl->setSerializedScriptValueAttribute(WTF::getPtr(cppValue)); | 1044 impl->setSerializedScriptValueAttribute(WTF::getPtr(cppValue)); |
1001 } | 1045 } |
1002 | 1046 |
1003 static void serializedScriptValueAttributeAttributeSetterCallback(v8::Local<v8::
String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& inf
o) | 1047 static void serializedScriptValueAttributeAttributeSetterCallback(v8::Local<v8::
String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& inf
o) |
1004 { | 1048 { |
1005 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1049 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
1006 TestObjectV8Internal::serializedScriptValueAttributeAttributeSetter(v8Value,
info); | 1050 TestObjectV8Internal::serializedScriptValueAttributeAttributeSetter(v8Value,
info); |
1007 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1051 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1008 } | 1052 } |
1009 | 1053 |
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1451 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1495 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
1452 TestObjectV8Internal::stringArrayAttributeAttributeGetter(info); | 1496 TestObjectV8Internal::stringArrayAttributeAttributeGetter(info); |
1453 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1497 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1454 } | 1498 } |
1455 | 1499 |
1456 static void stringArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::PropertyCallbackInfo<void>& info) | 1500 static void stringArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::PropertyCallbackInfo<void>& info) |
1457 { | 1501 { |
1458 v8::Local<v8::Object> holder = info.Holder(); | 1502 v8::Local<v8::Object> holder = info.Holder(); |
1459 ExceptionState exceptionState(ExceptionState::SetterContext, "stringArrayAtt
ribute", "TestObject", holder, info.GetIsolate()); | 1503 ExceptionState exceptionState(ExceptionState::SetterContext, "stringArrayAtt
ribute", "TestObject", holder, info.GetIsolate()); |
1460 TestObject* impl = V8TestObject::toImpl(holder); | 1504 TestObject* impl = V8TestObject::toImpl(holder); |
1461 TONATIVE_VOID_EXCEPTIONSTATE(Vector<String>, cppValue, toImplArray<String>(v
8Value, 0, info.GetIsolate(), exceptionState), exceptionState); | 1505 Vector<String> cppValue = toImplArray<String>(v8Value, 0, info.GetIsolate(),
exceptionState); |
| 1506 if (exceptionState.throwIfNeeded()) |
| 1507 return; |
1462 impl->setStringArrayAttribute(cppValue); | 1508 impl->setStringArrayAttribute(cppValue); |
1463 } | 1509 } |
1464 | 1510 |
1465 static void stringArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1511 static void stringArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1466 { | 1512 { |
1467 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1513 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
1468 TestObjectV8Internal::stringArrayAttributeAttributeSetter(v8Value, info); | 1514 TestObjectV8Internal::stringArrayAttributeAttributeSetter(v8Value, info); |
1469 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1515 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1470 } | 1516 } |
1471 | 1517 |
1472 static void testInterfaceEmptyArrayAttributeAttributeGetter(const v8::PropertyCa
llbackInfo<v8::Value>& info) | 1518 static void testInterfaceEmptyArrayAttributeAttributeGetter(const v8::PropertyCa
llbackInfo<v8::Value>& info) |
1473 { | 1519 { |
1474 v8::Local<v8::Object> holder = info.Holder(); | 1520 v8::Local<v8::Object> holder = info.Holder(); |
1475 TestObject* impl = V8TestObject::toImpl(holder); | 1521 TestObject* impl = V8TestObject::toImpl(holder); |
1476 v8SetReturnValue(info, toV8(impl->testInterfaceEmptyArrayAttribute(), info.H
older(), info.GetIsolate())); | 1522 v8SetReturnValue(info, toV8(impl->testInterfaceEmptyArrayAttribute(), info.H
older(), info.GetIsolate())); |
1477 } | 1523 } |
1478 | 1524 |
1479 static void testInterfaceEmptyArrayAttributeAttributeGetterCallback(v8::Local<v8
::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1525 static void testInterfaceEmptyArrayAttributeAttributeGetterCallback(v8::Local<v8
::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
1480 { | 1526 { |
1481 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1527 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
1482 TestObjectV8Internal::testInterfaceEmptyArrayAttributeAttributeGetter(info); | 1528 TestObjectV8Internal::testInterfaceEmptyArrayAttributeAttributeGetter(info); |
1483 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1529 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1484 } | 1530 } |
1485 | 1531 |
1486 static void testInterfaceEmptyArrayAttributeAttributeSetter(v8::Local<v8::Value>
v8Value, const v8::PropertyCallbackInfo<void>& info) | 1532 static void testInterfaceEmptyArrayAttributeAttributeSetter(v8::Local<v8::Value>
v8Value, const v8::PropertyCallbackInfo<void>& info) |
1487 { | 1533 { |
1488 v8::Local<v8::Object> holder = info.Holder(); | 1534 v8::Local<v8::Object> holder = info.Holder(); |
1489 ExceptionState exceptionState(ExceptionState::SetterContext, "testInterfaceE
mptyArrayAttribute", "TestObject", holder, info.GetIsolate()); | 1535 ExceptionState exceptionState(ExceptionState::SetterContext, "testInterfaceE
mptyArrayAttribute", "TestObject", holder, info.GetIsolate()); |
1490 TestObject* impl = V8TestObject::toImpl(holder); | 1536 TestObject* impl = V8TestObject::toImpl(holder); |
1491 TONATIVE_VOID_EXCEPTIONSTATE(Vector<RefPtr<TestInterfaceEmpty>>, cppValue, (
toRefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(v8Value, 0, info.G
etIsolate(), exceptionState)), exceptionState); | 1537 Vector<RefPtr<TestInterfaceEmpty>> cppValue = (toRefPtrNativeArray<TestInter
faceEmpty, V8TestInterfaceEmpty>(v8Value, 0, info.GetIsolate(), exceptionState))
; |
| 1538 if (exceptionState.throwIfNeeded()) |
| 1539 return; |
1492 impl->setTestInterfaceEmptyArrayAttribute(cppValue); | 1540 impl->setTestInterfaceEmptyArrayAttribute(cppValue); |
1493 } | 1541 } |
1494 | 1542 |
1495 static void testInterfaceEmptyArrayAttributeAttributeSetterCallback(v8::Local<v8
::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& i
nfo) | 1543 static void testInterfaceEmptyArrayAttributeAttributeSetterCallback(v8::Local<v8
::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& i
nfo) |
1496 { | 1544 { |
1497 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1545 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
1498 TestObjectV8Internal::testInterfaceEmptyArrayAttributeAttributeSetter(v8Valu
e, info); | 1546 TestObjectV8Internal::testInterfaceEmptyArrayAttributeAttributeSetter(v8Valu
e, info); |
1499 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1547 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1500 } | 1548 } |
1501 | 1549 |
1502 static void floatArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) | 1550 static void floatArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) |
1503 { | 1551 { |
1504 v8::Local<v8::Object> holder = info.Holder(); | 1552 v8::Local<v8::Object> holder = info.Holder(); |
1505 TestObject* impl = V8TestObject::toImpl(holder); | 1553 TestObject* impl = V8TestObject::toImpl(holder); |
1506 v8SetReturnValue(info, toV8(impl->floatArrayAttribute(), info.Holder(), info
.GetIsolate())); | 1554 v8SetReturnValue(info, toV8(impl->floatArrayAttribute(), info.Holder(), info
.GetIsolate())); |
1507 } | 1555 } |
1508 | 1556 |
1509 static void floatArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) | 1557 static void floatArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) |
1510 { | 1558 { |
1511 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1559 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
1512 TestObjectV8Internal::floatArrayAttributeAttributeGetter(info); | 1560 TestObjectV8Internal::floatArrayAttributeAttributeGetter(info); |
1513 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1561 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1514 } | 1562 } |
1515 | 1563 |
1516 static void floatArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::PropertyCallbackInfo<void>& info) | 1564 static void floatArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::PropertyCallbackInfo<void>& info) |
1517 { | 1565 { |
1518 v8::Local<v8::Object> holder = info.Holder(); | 1566 v8::Local<v8::Object> holder = info.Holder(); |
1519 ExceptionState exceptionState(ExceptionState::SetterContext, "floatArrayAttr
ibute", "TestObject", holder, info.GetIsolate()); | 1567 ExceptionState exceptionState(ExceptionState::SetterContext, "floatArrayAttr
ibute", "TestObject", holder, info.GetIsolate()); |
1520 TestObject* impl = V8TestObject::toImpl(holder); | 1568 TestObject* impl = V8TestObject::toImpl(holder); |
1521 TONATIVE_VOID_EXCEPTIONSTATE(Vector<float>, cppValue, toImplArray<float>(v8V
alue, 0, info.GetIsolate(), exceptionState), exceptionState); | 1569 Vector<float> cppValue = toImplArray<float>(v8Value, 0, info.GetIsolate(), e
xceptionState); |
| 1570 if (exceptionState.throwIfNeeded()) |
| 1571 return; |
1522 impl->setFloatArrayAttribute(cppValue); | 1572 impl->setFloatArrayAttribute(cppValue); |
1523 } | 1573 } |
1524 | 1574 |
1525 static void floatArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1575 static void floatArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1526 { | 1576 { |
1527 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1577 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
1528 TestObjectV8Internal::floatArrayAttributeAttributeSetter(v8Value, info); | 1578 TestObjectV8Internal::floatArrayAttributeAttributeSetter(v8Value, info); |
1529 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1579 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1530 } | 1580 } |
1531 | 1581 |
1532 static void stringOrNullAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) | 1582 static void stringOrNullAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) |
1533 { | 1583 { |
1534 v8::Local<v8::Object> holder = info.Holder(); | 1584 v8::Local<v8::Object> holder = info.Holder(); |
1535 TestObject* impl = V8TestObject::toImpl(holder); | 1585 TestObject* impl = V8TestObject::toImpl(holder); |
1536 v8SetReturnValueStringOrNull(info, impl->stringOrNullAttribute(), info.GetIs
olate()); | 1586 v8SetReturnValueStringOrNull(info, impl->stringOrNullAttribute(), info.GetIs
olate()); |
1537 } | 1587 } |
1538 | 1588 |
1539 static void stringOrNullAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 1589 static void stringOrNullAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
1540 { | 1590 { |
1541 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1591 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
1542 TestObjectV8Internal::stringOrNullAttributeAttributeGetter(info); | 1592 TestObjectV8Internal::stringOrNullAttributeAttributeGetter(info); |
1543 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1593 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1544 } | 1594 } |
1545 | 1595 |
1546 static void stringOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) | 1596 static void stringOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) |
1547 { | 1597 { |
1548 v8::Local<v8::Object> holder = info.Holder(); | 1598 v8::Local<v8::Object> holder = info.Holder(); |
1549 TestObject* impl = V8TestObject::toImpl(holder); | 1599 TestObject* impl = V8TestObject::toImpl(holder); |
1550 TOSTRING_VOID(V8StringResource<TreatNullAsNullString>, cppValue, v8Value); | 1600 V8StringResource<TreatNullAsNullString> cppValue = v8Value; |
| 1601 if (!cppValue.prepare()) |
| 1602 return; |
1551 impl->setStringOrNullAttribute(cppValue); | 1603 impl->setStringOrNullAttribute(cppValue); |
1552 } | 1604 } |
1553 | 1605 |
1554 static void stringOrNullAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1606 static void stringOrNullAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1555 { | 1607 { |
1556 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1608 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
1557 TestObjectV8Internal::stringOrNullAttributeAttributeSetter(v8Value, info); | 1609 TestObjectV8Internal::stringOrNullAttributeAttributeSetter(v8Value, info); |
1558 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1610 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1559 } | 1611 } |
1560 | 1612 |
(...skipping 15 matching lines...) Expand all Loading... |
1576 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1628 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
1577 TestObjectV8Internal::longOrNullAttributeAttributeGetter(info); | 1629 TestObjectV8Internal::longOrNullAttributeAttributeGetter(info); |
1578 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1630 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1579 } | 1631 } |
1580 | 1632 |
1581 static void longOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::PropertyCallbackInfo<void>& info) | 1633 static void longOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::PropertyCallbackInfo<void>& info) |
1582 { | 1634 { |
1583 v8::Local<v8::Object> holder = info.Holder(); | 1635 v8::Local<v8::Object> holder = info.Holder(); |
1584 ExceptionState exceptionState(ExceptionState::SetterContext, "longOrNullAttr
ibute", "TestObject", holder, info.GetIsolate()); | 1636 ExceptionState exceptionState(ExceptionState::SetterContext, "longOrNullAttr
ibute", "TestObject", holder, info.GetIsolate()); |
1585 TestObject* impl = V8TestObject::toImpl(holder); | 1637 TestObject* impl = V8TestObject::toImpl(holder); |
1586 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 1638 int cppValue = toInt32(v8Value, exceptionState); |
| 1639 if (exceptionState.throwIfNeeded()) |
| 1640 return; |
1587 impl->setLongOrNullAttribute(cppValue); | 1641 impl->setLongOrNullAttribute(cppValue); |
1588 } | 1642 } |
1589 | 1643 |
1590 static void longOrNullAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1644 static void longOrNullAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1591 { | 1645 { |
1592 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1646 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
1593 TestObjectV8Internal::longOrNullAttributeAttributeSetter(v8Value, info); | 1647 TestObjectV8Internal::longOrNullAttributeAttributeSetter(v8Value, info); |
1594 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1648 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1595 } | 1649 } |
1596 | 1650 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1634 { | 1688 { |
1635 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1689 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
1636 TestObjectV8Internal::testEnumAttributeAttributeGetter(info); | 1690 TestObjectV8Internal::testEnumAttributeAttributeGetter(info); |
1637 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1691 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1638 } | 1692 } |
1639 | 1693 |
1640 static void testEnumAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const
v8::PropertyCallbackInfo<void>& info) | 1694 static void testEnumAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const
v8::PropertyCallbackInfo<void>& info) |
1641 { | 1695 { |
1642 v8::Local<v8::Object> holder = info.Holder(); | 1696 v8::Local<v8::Object> holder = info.Holder(); |
1643 TestObject* impl = V8TestObject::toImpl(holder); | 1697 TestObject* impl = V8TestObject::toImpl(holder); |
1644 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 1698 V8StringResource<> cppValue = v8Value; |
| 1699 if (!cppValue.prepare()) |
| 1700 return; |
1645 String string = cppValue; | 1701 String string = cppValue; |
1646 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || st
ring == "EnumValue3")) | 1702 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || st
ring == "EnumValue3")) |
1647 return; | 1703 return; |
1648 impl->setTestEnumAttribute(cppValue); | 1704 impl->setTestEnumAttribute(cppValue); |
1649 } | 1705 } |
1650 | 1706 |
1651 static void testEnumAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::
Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1707 static void testEnumAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::
Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1652 { | 1708 { |
1653 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1709 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
1654 TestObjectV8Internal::testEnumAttributeAttributeSetter(v8Value, info); | 1710 TestObjectV8Internal::testEnumAttributeAttributeSetter(v8Value, info); |
(...skipping 11 matching lines...) Expand all Loading... |
1666 { | 1722 { |
1667 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1723 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
1668 TestObjectV8Internal::testEnumOrNullAttributeAttributeGetter(info); | 1724 TestObjectV8Internal::testEnumOrNullAttributeAttributeGetter(info); |
1669 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1725 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1670 } | 1726 } |
1671 | 1727 |
1672 static void testEnumOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) | 1728 static void testEnumOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) |
1673 { | 1729 { |
1674 v8::Local<v8::Object> holder = info.Holder(); | 1730 v8::Local<v8::Object> holder = info.Holder(); |
1675 TestObject* impl = V8TestObject::toImpl(holder); | 1731 TestObject* impl = V8TestObject::toImpl(holder); |
1676 TOSTRING_VOID(V8StringResource<TreatNullAsNullString>, cppValue, v8Value); | 1732 V8StringResource<TreatNullAsNullString> cppValue = v8Value; |
| 1733 if (!cppValue.prepare()) |
| 1734 return; |
1677 String string = cppValue; | 1735 String string = cppValue; |
1678 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || st
ring == "EnumValue3")) | 1736 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || st
ring == "EnumValue3")) |
1679 return; | 1737 return; |
1680 impl->setTestEnumOrNullAttribute(cppValue); | 1738 impl->setTestEnumOrNullAttribute(cppValue); |
1681 } | 1739 } |
1682 | 1740 |
1683 static void testEnumOrNullAttributeAttributeSetterCallback(v8::Local<v8::String>
, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1741 static void testEnumOrNullAttributeAttributeSetterCallback(v8::Local<v8::String>
, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1684 { | 1742 { |
1685 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1743 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
1686 TestObjectV8Internal::testEnumOrNullAttributeAttributeSetter(v8Value, info); | 1744 TestObjectV8Internal::testEnumOrNullAttributeAttributeSetter(v8Value, info); |
1687 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1745 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1688 } | 1746 } |
1689 | 1747 |
1690 static void staticStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) | 1748 static void staticStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) |
1691 { | 1749 { |
1692 v8SetReturnValueString(info, TestObject::staticStringAttribute(), info.GetIs
olate()); | 1750 v8SetReturnValueString(info, TestObject::staticStringAttribute(), info.GetIs
olate()); |
1693 } | 1751 } |
1694 | 1752 |
1695 static void staticStringAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 1753 static void staticStringAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
1696 { | 1754 { |
1697 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1755 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
1698 TestObjectV8Internal::staticStringAttributeAttributeGetter(info); | 1756 TestObjectV8Internal::staticStringAttributeAttributeGetter(info); |
1699 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1757 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1700 } | 1758 } |
1701 | 1759 |
1702 static void staticStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) | 1760 static void staticStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) |
1703 { | 1761 { |
1704 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 1762 V8StringResource<> cppValue = v8Value; |
| 1763 if (!cppValue.prepare()) |
| 1764 return; |
1705 TestObject::setStaticStringAttribute(cppValue); | 1765 TestObject::setStaticStringAttribute(cppValue); |
1706 } | 1766 } |
1707 | 1767 |
1708 static void staticStringAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1768 static void staticStringAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1709 { | 1769 { |
1710 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1770 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
1711 TestObjectV8Internal::staticStringAttributeAttributeSetter(v8Value, info); | 1771 TestObjectV8Internal::staticStringAttributeAttributeSetter(v8Value, info); |
1712 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1772 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1713 } | 1773 } |
1714 | 1774 |
1715 static void staticLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) | 1775 static void staticLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) |
1716 { | 1776 { |
1717 v8SetReturnValueInt(info, TestObject::staticLongAttribute()); | 1777 v8SetReturnValueInt(info, TestObject::staticLongAttribute()); |
1718 } | 1778 } |
1719 | 1779 |
1720 static void staticLongAttributeAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) | 1780 static void staticLongAttributeAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) |
1721 { | 1781 { |
1722 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1782 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
1723 TestObjectV8Internal::staticLongAttributeAttributeGetter(info); | 1783 TestObjectV8Internal::staticLongAttributeAttributeGetter(info); |
1724 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1784 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1725 } | 1785 } |
1726 | 1786 |
1727 static void staticLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::PropertyCallbackInfo<void>& info) | 1787 static void staticLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::PropertyCallbackInfo<void>& info) |
1728 { | 1788 { |
1729 ExceptionState exceptionState(ExceptionState::SetterContext, "staticLongAttr
ibute", "TestObject", holder, info.GetIsolate()); | 1789 ExceptionState exceptionState(ExceptionState::SetterContext, "staticLongAttr
ibute", "TestObject", holder, info.GetIsolate()); |
1730 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 1790 int cppValue = toInt32(v8Value, exceptionState); |
| 1791 if (exceptionState.throwIfNeeded()) |
| 1792 return; |
1731 TestObject::setStaticLongAttribute(cppValue); | 1793 TestObject::setStaticLongAttribute(cppValue); |
1732 } | 1794 } |
1733 | 1795 |
1734 static void staticLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1796 static void staticLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1735 { | 1797 { |
1736 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1798 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
1737 TestObjectV8Internal::staticLongAttributeAttributeSetter(v8Value, info); | 1799 TestObjectV8Internal::staticLongAttributeAttributeSetter(v8Value, info); |
1738 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1800 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1739 } | 1801 } |
1740 | 1802 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1781 { | 1843 { |
1782 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1844 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
1783 TestObjectV8Internal::doubleOrStringAttributeAttributeGetter(info); | 1845 TestObjectV8Internal::doubleOrStringAttributeAttributeGetter(info); |
1784 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1846 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1785 } | 1847 } |
1786 | 1848 |
1787 static void doubleOrStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) | 1849 static void doubleOrStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) |
1788 { | 1850 { |
1789 v8::Local<v8::Object> holder = info.Holder(); | 1851 v8::Local<v8::Object> holder = info.Holder(); |
1790 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleOrString
Attribute", "TestObject", holder, info.GetIsolate()); | 1852 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleOrString
Attribute", "TestObject", holder, info.GetIsolate()); |
| 1853 TestObject* impl = V8TestObject::toImpl(holder); |
1791 DoubleOrString cppValue; | 1854 DoubleOrString cppValue; |
1792 TestObject* impl = V8TestObject::toImpl(holder); | 1855 V8DoubleOrString::toImpl(info.GetIsolate(), v8Value, cppValue, exceptionStat
e); |
1793 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8DoubleOrString::toImpl(info.GetIs
olate(), v8Value, cppValue, exceptionState), exceptionState); | 1856 if (exceptionState.throwIfNeeded()) |
| 1857 return; |
1794 impl->setDoubleOrStringAttribute(cppValue); | 1858 impl->setDoubleOrStringAttribute(cppValue); |
1795 } | 1859 } |
1796 | 1860 |
1797 static void doubleOrStringAttributeAttributeSetterCallback(v8::Local<v8::String>
, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1861 static void doubleOrStringAttributeAttributeSetterCallback(v8::Local<v8::String>
, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1798 { | 1862 { |
1799 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1863 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
1800 TestObjectV8Internal::doubleOrStringAttributeAttributeSetter(v8Value, info); | 1864 TestObjectV8Internal::doubleOrStringAttributeAttributeSetter(v8Value, info); |
1801 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1865 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1802 } | 1866 } |
1803 | 1867 |
(...skipping 10 matching lines...) Expand all Loading... |
1814 { | 1878 { |
1815 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1879 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
1816 TestObjectV8Internal::doubleOrStringOrNullAttributeAttributeGetter(info); | 1880 TestObjectV8Internal::doubleOrStringOrNullAttributeAttributeGetter(info); |
1817 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1881 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1818 } | 1882 } |
1819 | 1883 |
1820 static void doubleOrStringOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8
Value, const v8::PropertyCallbackInfo<void>& info) | 1884 static void doubleOrStringOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8
Value, const v8::PropertyCallbackInfo<void>& info) |
1821 { | 1885 { |
1822 v8::Local<v8::Object> holder = info.Holder(); | 1886 v8::Local<v8::Object> holder = info.Holder(); |
1823 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleOrString
OrNullAttribute", "TestObject", holder, info.GetIsolate()); | 1887 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleOrString
OrNullAttribute", "TestObject", holder, info.GetIsolate()); |
| 1888 TestObject* impl = V8TestObject::toImpl(holder); |
1824 DoubleOrString cppValue; | 1889 DoubleOrString cppValue; |
1825 TestObject* impl = V8TestObject::toImpl(holder); | 1890 V8DoubleOrStringOrNull::toImpl(info.GetIsolate(), v8Value, cppValue, excepti
onState); |
1826 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8DoubleOrStringOrNull::toImpl(info
.GetIsolate(), v8Value, cppValue, exceptionState), exceptionState); | 1891 if (exceptionState.throwIfNeeded()) |
| 1892 return; |
1827 impl->setDoubleOrStringOrNullAttribute(cppValue); | 1893 impl->setDoubleOrStringOrNullAttribute(cppValue); |
1828 } | 1894 } |
1829 | 1895 |
1830 static void doubleOrStringOrNullAttributeAttributeSetterCallback(v8::Local<v8::S
tring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info
) | 1896 static void doubleOrStringOrNullAttributeAttributeSetterCallback(v8::Local<v8::S
tring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info
) |
1831 { | 1897 { |
1832 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1898 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
1833 TestObjectV8Internal::doubleOrStringOrNullAttributeAttributeSetter(v8Value,
info); | 1899 TestObjectV8Internal::doubleOrStringOrNullAttributeAttributeSetter(v8Value,
info); |
1834 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1900 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1835 } | 1901 } |
1836 | 1902 |
(...skipping 10 matching lines...) Expand all Loading... |
1847 { | 1913 { |
1848 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1914 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
1849 TestObjectV8Internal::doubleOrNullStringAttributeAttributeGetter(info); | 1915 TestObjectV8Internal::doubleOrNullStringAttributeAttributeGetter(info); |
1850 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1916 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1851 } | 1917 } |
1852 | 1918 |
1853 static void doubleOrNullStringAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) | 1919 static void doubleOrNullStringAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) |
1854 { | 1920 { |
1855 v8::Local<v8::Object> holder = info.Holder(); | 1921 v8::Local<v8::Object> holder = info.Holder(); |
1856 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleOrNullSt
ringAttribute", "TestObject", holder, info.GetIsolate()); | 1922 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleOrNullSt
ringAttribute", "TestObject", holder, info.GetIsolate()); |
| 1923 TestObject* impl = V8TestObject::toImpl(holder); |
1857 DoubleOrString cppValue; | 1924 DoubleOrString cppValue; |
1858 TestObject* impl = V8TestObject::toImpl(holder); | 1925 V8DoubleOrStringOrNull::toImpl(info.GetIsolate(), v8Value, cppValue, excepti
onState); |
1859 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8DoubleOrStringOrNull::toImpl(info
.GetIsolate(), v8Value, cppValue, exceptionState), exceptionState); | 1926 if (exceptionState.throwIfNeeded()) |
| 1927 return; |
1860 impl->setDoubleOrNullStringAttribute(cppValue); | 1928 impl->setDoubleOrNullStringAttribute(cppValue); |
1861 } | 1929 } |
1862 | 1930 |
1863 static void doubleOrNullStringAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1931 static void doubleOrNullStringAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1864 { | 1932 { |
1865 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1933 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
1866 TestObjectV8Internal::doubleOrNullStringAttributeAttributeSetter(v8Value, in
fo); | 1934 TestObjectV8Internal::doubleOrNullStringAttributeAttributeSetter(v8Value, in
fo); |
1867 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1935 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1868 } | 1936 } |
1869 | 1937 |
(...skipping 10 matching lines...) Expand all Loading... |
1880 { | 1948 { |
1881 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1949 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
1882 TestObjectV8Internal::stringOrStringSequenceAttributeAttributeGetter(info); | 1950 TestObjectV8Internal::stringOrStringSequenceAttributeAttributeGetter(info); |
1883 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1951 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1884 } | 1952 } |
1885 | 1953 |
1886 static void stringOrStringSequenceAttributeAttributeSetter(v8::Local<v8::Value>
v8Value, const v8::PropertyCallbackInfo<void>& info) | 1954 static void stringOrStringSequenceAttributeAttributeSetter(v8::Local<v8::Value>
v8Value, const v8::PropertyCallbackInfo<void>& info) |
1887 { | 1955 { |
1888 v8::Local<v8::Object> holder = info.Holder(); | 1956 v8::Local<v8::Object> holder = info.Holder(); |
1889 ExceptionState exceptionState(ExceptionState::SetterContext, "stringOrString
SequenceAttribute", "TestObject", holder, info.GetIsolate()); | 1957 ExceptionState exceptionState(ExceptionState::SetterContext, "stringOrString
SequenceAttribute", "TestObject", holder, info.GetIsolate()); |
| 1958 TestObject* impl = V8TestObject::toImpl(holder); |
1890 StringOrStringSequence cppValue; | 1959 StringOrStringSequence cppValue; |
1891 TestObject* impl = V8TestObject::toImpl(holder); | 1960 V8StringOrStringSequence::toImpl(info.GetIsolate(), v8Value, cppValue, excep
tionState); |
1892 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8StringOrStringSequence::toImpl(in
fo.GetIsolate(), v8Value, cppValue, exceptionState), exceptionState); | 1961 if (exceptionState.throwIfNeeded()) |
| 1962 return; |
1893 impl->setStringOrStringSequenceAttribute(cppValue); | 1963 impl->setStringOrStringSequenceAttribute(cppValue); |
1894 } | 1964 } |
1895 | 1965 |
1896 static void stringOrStringSequenceAttributeAttributeSetterCallback(v8::Local<v8:
:String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in
fo) | 1966 static void stringOrStringSequenceAttributeAttributeSetterCallback(v8::Local<v8:
:String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in
fo) |
1897 { | 1967 { |
1898 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1968 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
1899 TestObjectV8Internal::stringOrStringSequenceAttributeAttributeSetter(v8Value
, info); | 1969 TestObjectV8Internal::stringOrStringSequenceAttributeAttributeSetter(v8Value
, info); |
1900 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1970 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1901 } | 1971 } |
1902 | 1972 |
(...skipping 10 matching lines...) Expand all Loading... |
1913 { | 1983 { |
1914 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1984 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
1915 TestObjectV8Internal::testEnumOrDoubleAttributeAttributeGetter(info); | 1985 TestObjectV8Internal::testEnumOrDoubleAttributeAttributeGetter(info); |
1916 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1986 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1917 } | 1987 } |
1918 | 1988 |
1919 static void testEnumOrDoubleAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::PropertyCallbackInfo<void>& info) | 1989 static void testEnumOrDoubleAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::PropertyCallbackInfo<void>& info) |
1920 { | 1990 { |
1921 v8::Local<v8::Object> holder = info.Holder(); | 1991 v8::Local<v8::Object> holder = info.Holder(); |
1922 ExceptionState exceptionState(ExceptionState::SetterContext, "testEnumOrDoub
leAttribute", "TestObject", holder, info.GetIsolate()); | 1992 ExceptionState exceptionState(ExceptionState::SetterContext, "testEnumOrDoub
leAttribute", "TestObject", holder, info.GetIsolate()); |
| 1993 TestObject* impl = V8TestObject::toImpl(holder); |
1923 TestEnumOrDouble cppValue; | 1994 TestEnumOrDouble cppValue; |
1924 TestObject* impl = V8TestObject::toImpl(holder); | 1995 V8TestEnumOrDouble::toImpl(info.GetIsolate(), v8Value, cppValue, exceptionSt
ate); |
1925 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8TestEnumOrDouble::toImpl(info.Get
Isolate(), v8Value, cppValue, exceptionState), exceptionState); | 1996 if (exceptionState.throwIfNeeded()) |
| 1997 return; |
1926 impl->setTestEnumOrDoubleAttribute(cppValue); | 1998 impl->setTestEnumOrDoubleAttribute(cppValue); |
1927 } | 1999 } |
1928 | 2000 |
1929 static void testEnumOrDoubleAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2001 static void testEnumOrDoubleAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1930 { | 2002 { |
1931 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2003 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
1932 TestObjectV8Internal::testEnumOrDoubleAttributeAttributeSetter(v8Value, info
); | 2004 TestObjectV8Internal::testEnumOrDoubleAttributeAttributeSetter(v8Value, info
); |
1933 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2005 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1934 } | 2006 } |
1935 | 2007 |
(...skipping 10 matching lines...) Expand all Loading... |
1946 { | 2018 { |
1947 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 2019 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
1948 TestObjectV8Internal::unrestrictedDoubleOrStringAttributeAttributeGetter(inf
o); | 2020 TestObjectV8Internal::unrestrictedDoubleOrStringAttributeAttributeGetter(inf
o); |
1949 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2021 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1950 } | 2022 } |
1951 | 2023 |
1952 static void unrestrictedDoubleOrStringAttributeAttributeSetter(v8::Local<v8::Val
ue> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2024 static void unrestrictedDoubleOrStringAttributeAttributeSetter(v8::Local<v8::Val
ue> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1953 { | 2025 { |
1954 v8::Local<v8::Object> holder = info.Holder(); | 2026 v8::Local<v8::Object> holder = info.Holder(); |
1955 ExceptionState exceptionState(ExceptionState::SetterContext, "unrestrictedDo
ubleOrStringAttribute", "TestObject", holder, info.GetIsolate()); | 2027 ExceptionState exceptionState(ExceptionState::SetterContext, "unrestrictedDo
ubleOrStringAttribute", "TestObject", holder, info.GetIsolate()); |
| 2028 TestObject* impl = V8TestObject::toImpl(holder); |
1956 UnrestrictedDoubleOrString cppValue; | 2029 UnrestrictedDoubleOrString cppValue; |
1957 TestObject* impl = V8TestObject::toImpl(holder); | 2030 V8UnrestrictedDoubleOrString::toImpl(info.GetIsolate(), v8Value, cppValue, e
xceptionState); |
1958 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8UnrestrictedDoubleOrString::toImp
l(info.GetIsolate(), v8Value, cppValue, exceptionState), exceptionState); | 2031 if (exceptionState.throwIfNeeded()) |
| 2032 return; |
1959 impl->setUnrestrictedDoubleOrStringAttribute(cppValue); | 2033 impl->setUnrestrictedDoubleOrStringAttribute(cppValue); |
1960 } | 2034 } |
1961 | 2035 |
1962 static void unrestrictedDoubleOrStringAttributeAttributeSetterCallback(v8::Local
<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>
& info) | 2036 static void unrestrictedDoubleOrStringAttributeAttributeSetterCallback(v8::Local
<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>
& info) |
1963 { | 2037 { |
1964 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2038 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
1965 TestObjectV8Internal::unrestrictedDoubleOrStringAttributeAttributeSetter(v8V
alue, info); | 2039 TestObjectV8Internal::unrestrictedDoubleOrStringAttributeAttributeSetter(v8V
alue, info); |
1966 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2040 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1967 } | 2041 } |
1968 | 2042 |
(...skipping 13 matching lines...) Expand all Loading... |
1982 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce
ssForAllWorldsLongAttribute"); | 2056 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce
ssForAllWorldsLongAttribute"); |
1983 TestObjectV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttribut
eGetter(info); | 2057 TestObjectV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttribut
eGetter(info); |
1984 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2058 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1985 } | 2059 } |
1986 | 2060 |
1987 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetter(v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2061 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetter(v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1988 { | 2062 { |
1989 v8::Local<v8::Object> holder = info.Holder(); | 2063 v8::Local<v8::Object> holder = info.Holder(); |
1990 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); | 2064 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); |
1991 TestObject* impl = V8TestObject::toImpl(holder); | 2065 TestObject* impl = V8TestObject::toImpl(holder); |
1992 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 2066 int cppValue = toInt32(v8Value, exceptionState); |
| 2067 if (exceptionState.throwIfNeeded()) |
| 2068 return; |
1993 impl->setActivityLoggingAccessForAllWorldsLongAttribute(cppValue); | 2069 impl->setActivityLoggingAccessForAllWorldsLongAttribute(cppValue); |
1994 } | 2070 } |
1995 | 2071 |
1996 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetterCallbac
k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac
kInfo<void>& info) | 2072 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetterCallbac
k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac
kInfo<void>& info) |
1997 { | 2073 { |
1998 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2074 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
1999 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); | 2075 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); |
2000 V8PerContextData* contextData = scriptState->perContextData(); | 2076 V8PerContextData* contextData = scriptState->perContextData(); |
2001 if (contextData && contextData->activityLogger()) { | 2077 if (contextData && contextData->activityLogger()) { |
2002 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce
ssForAllWorldsLongAttribute", v8Value); | 2078 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce
ssForAllWorldsLongAttribute", v8Value); |
(...skipping 18 matching lines...) Expand all Loading... |
2021 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett
erForAllWorldsLongAttribute"); | 2097 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett
erForAllWorldsLongAttribute"); |
2022 TestObjectV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttribut
eGetter(info); | 2098 TestObjectV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttribut
eGetter(info); |
2023 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2099 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2024 } | 2100 } |
2025 | 2101 |
2026 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetter(v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2102 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetter(v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2027 { | 2103 { |
2028 v8::Local<v8::Object> holder = info.Holder(); | 2104 v8::Local<v8::Object> holder = info.Holder(); |
2029 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); | 2105 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); |
2030 TestObject* impl = V8TestObject::toImpl(holder); | 2106 TestObject* impl = V8TestObject::toImpl(holder); |
2031 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 2107 int cppValue = toInt32(v8Value, exceptionState); |
| 2108 if (exceptionState.throwIfNeeded()) |
| 2109 return; |
2032 impl->setActivityLoggingGetterForAllWorldsLongAttribute(cppValue); | 2110 impl->setActivityLoggingGetterForAllWorldsLongAttribute(cppValue); |
2033 } | 2111 } |
2034 | 2112 |
2035 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetterCallbac
k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac
kInfo<void>& info) | 2113 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetterCallbac
k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac
kInfo<void>& info) |
2036 { | 2114 { |
2037 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2115 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2038 TestObjectV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttribut
eSetter(v8Value, info); | 2116 TestObjectV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttribut
eSetter(v8Value, info); |
2039 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2117 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2040 } | 2118 } |
2041 | 2119 |
2042 static void activityLoggingSetterForAllWorldsLongAttributeAttributeGetter(const
v8::PropertyCallbackInfo<v8::Value>& info) | 2120 static void activityLoggingSetterForAllWorldsLongAttributeAttributeGetter(const
v8::PropertyCallbackInfo<v8::Value>& info) |
2043 { | 2121 { |
2044 v8::Local<v8::Object> holder = info.Holder(); | 2122 v8::Local<v8::Object> holder = info.Holder(); |
2045 TestObject* impl = V8TestObject::toImpl(holder); | 2123 TestObject* impl = V8TestObject::toImpl(holder); |
2046 v8SetReturnValueInt(info, impl->activityLoggingSetterForAllWorldsLongAttribu
te()); | 2124 v8SetReturnValueInt(info, impl->activityLoggingSetterForAllWorldsLongAttribu
te()); |
2047 } | 2125 } |
2048 | 2126 |
2049 static void activityLoggingSetterForAllWorldsLongAttributeAttributeGetterCallbac
k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2127 static void activityLoggingSetterForAllWorldsLongAttributeAttributeGetterCallbac
k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2050 { | 2128 { |
2051 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 2129 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
2052 TestObjectV8Internal::activityLoggingSetterForAllWorldsLongAttributeAttribut
eGetter(info); | 2130 TestObjectV8Internal::activityLoggingSetterForAllWorldsLongAttributeAttribut
eGetter(info); |
2053 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2131 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2054 } | 2132 } |
2055 | 2133 |
2056 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetter(v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2134 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetter(v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2057 { | 2135 { |
2058 v8::Local<v8::Object> holder = info.Holder(); | 2136 v8::Local<v8::Object> holder = info.Holder(); |
2059 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gSetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); | 2137 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gSetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); |
2060 TestObject* impl = V8TestObject::toImpl(holder); | 2138 TestObject* impl = V8TestObject::toImpl(holder); |
2061 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 2139 int cppValue = toInt32(v8Value, exceptionState); |
| 2140 if (exceptionState.throwIfNeeded()) |
| 2141 return; |
2062 impl->setActivityLoggingSetterForAllWorldsLongAttribute(cppValue); | 2142 impl->setActivityLoggingSetterForAllWorldsLongAttribute(cppValue); |
2063 } | 2143 } |
2064 | 2144 |
2065 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetterCallbac
k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac
kInfo<void>& info) | 2145 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetterCallbac
k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac
kInfo<void>& info) |
2066 { | 2146 { |
2067 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2147 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2068 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); | 2148 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); |
2069 V8PerContextData* contextData = scriptState->perContextData(); | 2149 V8PerContextData* contextData = scriptState->perContextData(); |
2070 if (contextData && contextData->activityLogger()) { | 2150 if (contextData && contextData->activityLogger()) { |
2071 contextData->activityLogger()->logSetter("TestObject.activityLoggingSett
erForAllWorldsLongAttribute", v8Value); | 2151 contextData->activityLogger()->logSetter("TestObject.activityLoggingSett
erForAllWorldsLongAttribute", v8Value); |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2136 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 2216 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
2137 TestObjectV8Internal::cachedArrayAttributeAttributeGetter(info); | 2217 TestObjectV8Internal::cachedArrayAttributeAttributeGetter(info); |
2138 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2218 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2139 } | 2219 } |
2140 | 2220 |
2141 static void cachedArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::PropertyCallbackInfo<void>& info) | 2221 static void cachedArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::PropertyCallbackInfo<void>& info) |
2142 { | 2222 { |
2143 v8::Local<v8::Object> holder = info.Holder(); | 2223 v8::Local<v8::Object> holder = info.Holder(); |
2144 ExceptionState exceptionState(ExceptionState::SetterContext, "cachedArrayAtt
ribute", "TestObject", holder, info.GetIsolate()); | 2224 ExceptionState exceptionState(ExceptionState::SetterContext, "cachedArrayAtt
ribute", "TestObject", holder, info.GetIsolate()); |
2145 TestObject* impl = V8TestObject::toImpl(holder); | 2225 TestObject* impl = V8TestObject::toImpl(holder); |
2146 TONATIVE_VOID_EXCEPTIONSTATE(Vector<String>, cppValue, toImplArray<String>(v
8Value, 0, info.GetIsolate(), exceptionState), exceptionState); | 2226 Vector<String> cppValue = toImplArray<String>(v8Value, 0, info.GetIsolate(),
exceptionState); |
| 2227 if (exceptionState.throwIfNeeded()) |
| 2228 return; |
2147 impl->setCachedArrayAttribute(cppValue); | 2229 impl->setCachedArrayAttribute(cppValue); |
2148 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i
nfo.GetIsolate(), "cachedArrayAttribute")); // Invalidate the cached value. | 2230 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i
nfo.GetIsolate(), "cachedArrayAttribute")); // Invalidate the cached value. |
2149 } | 2231 } |
2150 | 2232 |
2151 static void cachedArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2233 static void cachedArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2152 { | 2234 { |
2153 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2235 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2154 TestObjectV8Internal::cachedArrayAttributeAttributeSetter(v8Value, info); | 2236 TestObjectV8Internal::cachedArrayAttributeAttributeSetter(v8Value, info); |
2155 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2237 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2156 } | 2238 } |
(...skipping 19 matching lines...) Expand all Loading... |
2176 { | 2258 { |
2177 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 2259 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
2178 TestObjectV8Internal::cachedStringOrNoneAttributeAttributeGetter(info); | 2260 TestObjectV8Internal::cachedStringOrNoneAttributeAttributeGetter(info); |
2179 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2261 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2180 } | 2262 } |
2181 | 2263 |
2182 static void cachedStringOrNoneAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) | 2264 static void cachedStringOrNoneAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) |
2183 { | 2265 { |
2184 v8::Local<v8::Object> holder = info.Holder(); | 2266 v8::Local<v8::Object> holder = info.Holder(); |
2185 TestObject* impl = V8TestObject::toImpl(holder); | 2267 TestObject* impl = V8TestObject::toImpl(holder); |
2186 TOSTRING_VOID(V8StringResource<TreatNullAsNullString>, cppValue, v8Value); | 2268 V8StringResource<TreatNullAsNullString> cppValue = v8Value; |
| 2269 if (!cppValue.prepare()) |
| 2270 return; |
2187 impl->setCachedStringOrNoneAttribute(cppValue); | 2271 impl->setCachedStringOrNoneAttribute(cppValue); |
2188 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i
nfo.GetIsolate(), "cachedStringOrNoneAttribute")); // Invalidate the cached valu
e. | 2272 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i
nfo.GetIsolate(), "cachedStringOrNoneAttribute")); // Invalidate the cached valu
e. |
2189 } | 2273 } |
2190 | 2274 |
2191 static void cachedStringOrNoneAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2275 static void cachedStringOrNoneAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2192 { | 2276 { |
2193 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2277 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2194 TestObjectV8Internal::cachedStringOrNoneAttributeAttributeSetter(v8Value, in
fo); | 2278 TestObjectV8Internal::cachedStringOrNoneAttributeAttributeSetter(v8Value, in
fo); |
2195 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2279 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2196 } | 2280 } |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2325 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2409 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2326 } | 2410 } |
2327 #endif // ENABLE(CONDITION) | 2411 #endif // ENABLE(CONDITION) |
2328 | 2412 |
2329 #if ENABLE(CONDITION) | 2413 #if ENABLE(CONDITION) |
2330 static void conditionalLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value
, const v8::PropertyCallbackInfo<void>& info) | 2414 static void conditionalLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value
, const v8::PropertyCallbackInfo<void>& info) |
2331 { | 2415 { |
2332 v8::Local<v8::Object> holder = info.Holder(); | 2416 v8::Local<v8::Object> holder = info.Holder(); |
2333 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalLon
gAttribute", "TestObject", holder, info.GetIsolate()); | 2417 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalLon
gAttribute", "TestObject", holder, info.GetIsolate()); |
2334 TestObject* impl = V8TestObject::toImpl(holder); | 2418 TestObject* impl = V8TestObject::toImpl(holder); |
2335 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 2419 int cppValue = toInt32(v8Value, exceptionState); |
| 2420 if (exceptionState.throwIfNeeded()) |
| 2421 return; |
2336 impl->setConditionalLongAttribute(cppValue); | 2422 impl->setConditionalLongAttribute(cppValue); |
2337 } | 2423 } |
2338 #endif // ENABLE(CONDITION) | 2424 #endif // ENABLE(CONDITION) |
2339 | 2425 |
2340 #if ENABLE(CONDITION) | 2426 #if ENABLE(CONDITION) |
2341 static void conditionalLongAttributeAttributeSetterCallback(v8::Local<v8::String
>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2427 static void conditionalLongAttributeAttributeSetterCallback(v8::Local<v8::String
>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2342 { | 2428 { |
2343 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2429 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2344 TestObjectV8Internal::conditionalLongAttributeAttributeSetter(v8Value, info)
; | 2430 TestObjectV8Internal::conditionalLongAttributeAttributeSetter(v8Value, info)
; |
2345 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2431 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
(...skipping 19 matching lines...) Expand all Loading... |
2365 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 2451 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
2366 V8TestObject::customGetterLongAttributeAttributeGetterCustom(info); | 2452 V8TestObject::customGetterLongAttributeAttributeGetterCustom(info); |
2367 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2453 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2368 } | 2454 } |
2369 | 2455 |
2370 static void customGetterLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::PropertyCallbackInfo<void>& info) | 2456 static void customGetterLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::PropertyCallbackInfo<void>& info) |
2371 { | 2457 { |
2372 v8::Local<v8::Object> holder = info.Holder(); | 2458 v8::Local<v8::Object> holder = info.Holder(); |
2373 ExceptionState exceptionState(ExceptionState::SetterContext, "customGetterLo
ngAttribute", "TestObject", holder, info.GetIsolate()); | 2459 ExceptionState exceptionState(ExceptionState::SetterContext, "customGetterLo
ngAttribute", "TestObject", holder, info.GetIsolate()); |
2374 TestObject* impl = V8TestObject::toImpl(holder); | 2460 TestObject* impl = V8TestObject::toImpl(holder); |
2375 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 2461 int cppValue = toInt32(v8Value, exceptionState); |
| 2462 if (exceptionState.throwIfNeeded()) |
| 2463 return; |
2376 impl->setCustomGetterLongAttribute(cppValue); | 2464 impl->setCustomGetterLongAttribute(cppValue); |
2377 } | 2465 } |
2378 | 2466 |
2379 static void customGetterLongAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2467 static void customGetterLongAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2380 { | 2468 { |
2381 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2469 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2382 TestObjectV8Internal::customGetterLongAttributeAttributeSetter(v8Value, info
); | 2470 TestObjectV8Internal::customGetterLongAttributeAttributeSetter(v8Value, info
); |
2383 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2471 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2384 } | 2472 } |
2385 | 2473 |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2456 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe
cutionContext(info.GetIsolate()), UseCounter::LongAttribute); | 2544 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe
cutionContext(info.GetIsolate()), UseCounter::LongAttribute); |
2457 TestObjectV8Internal::deprecatedLongAttributeAttributeGetter(info); | 2545 TestObjectV8Internal::deprecatedLongAttributeAttributeGetter(info); |
2458 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2546 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2459 } | 2547 } |
2460 | 2548 |
2461 static void deprecatedLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) | 2549 static void deprecatedLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) |
2462 { | 2550 { |
2463 v8::Local<v8::Object> holder = info.Holder(); | 2551 v8::Local<v8::Object> holder = info.Holder(); |
2464 ExceptionState exceptionState(ExceptionState::SetterContext, "deprecatedLong
Attribute", "TestObject", holder, info.GetIsolate()); | 2552 ExceptionState exceptionState(ExceptionState::SetterContext, "deprecatedLong
Attribute", "TestObject", holder, info.GetIsolate()); |
2465 TestObject* impl = V8TestObject::toImpl(holder); | 2553 TestObject* impl = V8TestObject::toImpl(holder); |
2466 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 2554 int cppValue = toInt32(v8Value, exceptionState); |
| 2555 if (exceptionState.throwIfNeeded()) |
| 2556 return; |
2467 impl->setDeprecatedLongAttribute(cppValue); | 2557 impl->setDeprecatedLongAttribute(cppValue); |
2468 } | 2558 } |
2469 | 2559 |
2470 static void deprecatedLongAttributeAttributeSetterCallback(v8::Local<v8::String>
, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2560 static void deprecatedLongAttributeAttributeSetterCallback(v8::Local<v8::String>
, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2471 { | 2561 { |
2472 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2562 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2473 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe
cutionContext(info.GetIsolate()), UseCounter::LongAttribute); | 2563 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe
cutionContext(info.GetIsolate()), UseCounter::LongAttribute); |
2474 TestObjectV8Internal::deprecatedLongAttributeAttributeSetter(v8Value, info); | 2564 TestObjectV8Internal::deprecatedLongAttributeAttributeSetter(v8Value, info); |
2475 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2565 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2476 } | 2566 } |
(...skipping 10 matching lines...) Expand all Loading... |
2487 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 2577 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
2488 TestObjectV8Internal::enforceRangeLongAttributeAttributeGetter(info); | 2578 TestObjectV8Internal::enforceRangeLongAttributeAttributeGetter(info); |
2489 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2579 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2490 } | 2580 } |
2491 | 2581 |
2492 static void enforceRangeLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::PropertyCallbackInfo<void>& info) | 2582 static void enforceRangeLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::PropertyCallbackInfo<void>& info) |
2493 { | 2583 { |
2494 v8::Local<v8::Object> holder = info.Holder(); | 2584 v8::Local<v8::Object> holder = info.Holder(); |
2495 ExceptionState exceptionState(ExceptionState::SetterContext, "enforceRangeLo
ngAttribute", "TestObject", holder, info.GetIsolate()); | 2585 ExceptionState exceptionState(ExceptionState::SetterContext, "enforceRangeLo
ngAttribute", "TestObject", holder, info.GetIsolate()); |
2496 TestObject* impl = V8TestObject::toImpl(holder); | 2586 TestObject* impl = V8TestObject::toImpl(holder); |
2497 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, EnforceRange, e
xceptionState), exceptionState); | 2587 int cppValue = toInt32(v8Value, EnforceRange, exceptionState); |
| 2588 if (exceptionState.throwIfNeeded()) |
| 2589 return; |
2498 impl->setEnforceRangeLongAttribute(cppValue); | 2590 impl->setEnforceRangeLongAttribute(cppValue); |
2499 } | 2591 } |
2500 | 2592 |
2501 static void enforceRangeLongAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2593 static void enforceRangeLongAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2502 { | 2594 { |
2503 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2595 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2504 TestObjectV8Internal::enforceRangeLongAttributeAttributeSetter(v8Value, info
); | 2596 TestObjectV8Internal::enforceRangeLongAttributeAttributeSetter(v8Value, info
); |
2505 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2597 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2506 } | 2598 } |
2507 | 2599 |
2508 static void exposeJSAccessorsLongAttributeAttributeGetter(const v8::FunctionCall
backInfo<v8::Value>& info) | 2600 static void exposeJSAccessorsLongAttributeAttributeGetter(const v8::FunctionCall
backInfo<v8::Value>& info) |
2509 { | 2601 { |
2510 v8::Local<v8::Object> holder = info.Holder(); | 2602 v8::Local<v8::Object> holder = info.Holder(); |
2511 TestObject* impl = V8TestObject::toImpl(holder); | 2603 TestObject* impl = V8TestObject::toImpl(holder); |
2512 v8SetReturnValueInt(info, impl->exposeJSAccessorsLongAttribute()); | 2604 v8SetReturnValueInt(info, impl->exposeJSAccessorsLongAttribute()); |
2513 } | 2605 } |
2514 | 2606 |
2515 static void exposeJSAccessorsLongAttributeAttributeGetterCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) | 2607 static void exposeJSAccessorsLongAttributeAttributeGetterCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
2516 { | 2608 { |
2517 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 2609 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
2518 TestObjectV8Internal::exposeJSAccessorsLongAttributeAttributeGetter(info); | 2610 TestObjectV8Internal::exposeJSAccessorsLongAttributeAttributeGetter(info); |
2519 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2611 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2520 } | 2612 } |
2521 | 2613 |
2522 static void exposeJSAccessorsLongAttributeAttributeSetter(v8::Local<v8::Value> v
8Value, const v8::FunctionCallbackInfo<v8::Value>& info) | 2614 static void exposeJSAccessorsLongAttributeAttributeSetter(v8::Local<v8::Value> v
8Value, const v8::FunctionCallbackInfo<v8::Value>& info) |
2523 { | 2615 { |
2524 v8::Local<v8::Object> holder = info.Holder(); | 2616 v8::Local<v8::Object> holder = info.Holder(); |
2525 ExceptionState exceptionState(ExceptionState::SetterContext, "exposeJSAccess
orsLongAttribute", "TestObject", holder, info.GetIsolate()); | 2617 ExceptionState exceptionState(ExceptionState::SetterContext, "exposeJSAccess
orsLongAttribute", "TestObject", holder, info.GetIsolate()); |
2526 TestObject* impl = V8TestObject::toImpl(holder); | 2618 TestObject* impl = V8TestObject::toImpl(holder); |
2527 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 2619 int cppValue = toInt32(v8Value, exceptionState); |
| 2620 if (exceptionState.throwIfNeeded()) |
| 2621 return; |
2528 impl->setExposeJSAccessorsLongAttribute(cppValue); | 2622 impl->setExposeJSAccessorsLongAttribute(cppValue); |
2529 } | 2623 } |
2530 | 2624 |
2531 static void exposeJSAccessorsLongAttributeAttributeSetterCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) | 2625 static void exposeJSAccessorsLongAttributeAttributeSetterCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
2532 { | 2626 { |
2533 v8::Local<v8::Value> v8Value = info[0]; | 2627 v8::Local<v8::Value> v8Value = info[0]; |
2534 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2628 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2535 TestObjectV8Internal::exposeJSAccessorsLongAttributeAttributeSetter(v8Value,
info); | 2629 TestObjectV8Internal::exposeJSAccessorsLongAttributeAttributeSetter(v8Value,
info); |
2536 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2630 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2537 } | 2631 } |
(...skipping 10 matching lines...) Expand all Loading... |
2548 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 2642 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
2549 TestObjectV8Internal::implementedAsLongAttributeAttributeGetter(info); | 2643 TestObjectV8Internal::implementedAsLongAttributeAttributeGetter(info); |
2550 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2644 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2551 } | 2645 } |
2552 | 2646 |
2553 static void implementedAsLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val
ue, const v8::PropertyCallbackInfo<void>& info) | 2647 static void implementedAsLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val
ue, const v8::PropertyCallbackInfo<void>& info) |
2554 { | 2648 { |
2555 v8::Local<v8::Object> holder = info.Holder(); | 2649 v8::Local<v8::Object> holder = info.Holder(); |
2556 ExceptionState exceptionState(ExceptionState::SetterContext, "implementedAsL
ongAttribute", "TestObject", holder, info.GetIsolate()); | 2650 ExceptionState exceptionState(ExceptionState::SetterContext, "implementedAsL
ongAttribute", "TestObject", holder, info.GetIsolate()); |
2557 TestObject* impl = V8TestObject::toImpl(holder); | 2651 TestObject* impl = V8TestObject::toImpl(holder); |
2558 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 2652 int cppValue = toInt32(v8Value, exceptionState); |
| 2653 if (exceptionState.throwIfNeeded()) |
| 2654 return; |
2559 impl->setImplementedAsName(cppValue); | 2655 impl->setImplementedAsName(cppValue); |
2560 } | 2656 } |
2561 | 2657 |
2562 static void implementedAsLongAttributeAttributeSetterCallback(v8::Local<v8::Stri
ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2658 static void implementedAsLongAttributeAttributeSetterCallback(v8::Local<v8::Stri
ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2563 { | 2659 { |
2564 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2660 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2565 TestObjectV8Internal::implementedAsLongAttributeAttributeSetter(v8Value, inf
o); | 2661 TestObjectV8Internal::implementedAsLongAttributeAttributeSetter(v8Value, inf
o); |
2566 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2662 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2567 } | 2663 } |
2568 | 2664 |
(...skipping 16 matching lines...) Expand all Loading... |
2585 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 2681 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
2586 V8TestObject::customGetterImplementedAsLongAttributeAttributeGetterCustom(in
fo); | 2682 V8TestObject::customGetterImplementedAsLongAttributeAttributeGetterCustom(in
fo); |
2587 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2683 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2588 } | 2684 } |
2589 | 2685 |
2590 static void customGetterImplementedAsLongAttributeAttributeSetter(v8::Local<v8::
Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2686 static void customGetterImplementedAsLongAttributeAttributeSetter(v8::Local<v8::
Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2591 { | 2687 { |
2592 v8::Local<v8::Object> holder = info.Holder(); | 2688 v8::Local<v8::Object> holder = info.Holder(); |
2593 ExceptionState exceptionState(ExceptionState::SetterContext, "customGetterIm
plementedAsLongAttribute", "TestObject", holder, info.GetIsolate()); | 2689 ExceptionState exceptionState(ExceptionState::SetterContext, "customGetterIm
plementedAsLongAttribute", "TestObject", holder, info.GetIsolate()); |
2594 TestObject* impl = V8TestObject::toImpl(holder); | 2690 TestObject* impl = V8TestObject::toImpl(holder); |
2595 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 2691 int cppValue = toInt32(v8Value, exceptionState); |
| 2692 if (exceptionState.throwIfNeeded()) |
| 2693 return; |
2596 impl->setImplementedAsNameWithCustomGetter(cppValue); | 2694 impl->setImplementedAsNameWithCustomGetter(cppValue); |
2597 } | 2695 } |
2598 | 2696 |
2599 static void customGetterImplementedAsLongAttributeAttributeSetterCallback(v8::Lo
cal<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<vo
id>& info) | 2697 static void customGetterImplementedAsLongAttributeAttributeSetterCallback(v8::Lo
cal<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<vo
id>& info) |
2600 { | 2698 { |
2601 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2699 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2602 TestObjectV8Internal::customGetterImplementedAsLongAttributeAttributeSetter(
v8Value, info); | 2700 TestObjectV8Internal::customGetterImplementedAsLongAttributeAttributeSetter(
v8Value, info); |
2603 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2701 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2604 } | 2702 } |
2605 | 2703 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2637 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte
xt(info.GetIsolate()), UseCounter::TestFeature); | 2735 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte
xt(info.GetIsolate()), UseCounter::TestFeature); |
2638 TestObjectV8Internal::measureAsLongAttributeAttributeGetter(info); | 2736 TestObjectV8Internal::measureAsLongAttributeAttributeGetter(info); |
2639 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2737 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2640 } | 2738 } |
2641 | 2739 |
2642 static void measureAsLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) | 2740 static void measureAsLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) |
2643 { | 2741 { |
2644 v8::Local<v8::Object> holder = info.Holder(); | 2742 v8::Local<v8::Object> holder = info.Holder(); |
2645 ExceptionState exceptionState(ExceptionState::SetterContext, "measureAsLongA
ttribute", "TestObject", holder, info.GetIsolate()); | 2743 ExceptionState exceptionState(ExceptionState::SetterContext, "measureAsLongA
ttribute", "TestObject", holder, info.GetIsolate()); |
2646 TestObject* impl = V8TestObject::toImpl(holder); | 2744 TestObject* impl = V8TestObject::toImpl(holder); |
2647 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 2745 int cppValue = toInt32(v8Value, exceptionState); |
| 2746 if (exceptionState.throwIfNeeded()) |
| 2747 return; |
2648 impl->setMeasureAsLongAttribute(cppValue); | 2748 impl->setMeasureAsLongAttribute(cppValue); |
2649 } | 2749 } |
2650 | 2750 |
2651 static void measureAsLongAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2751 static void measureAsLongAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2652 { | 2752 { |
2653 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2753 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2654 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte
xt(info.GetIsolate()), UseCounter::TestFeature); | 2754 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte
xt(info.GetIsolate()), UseCounter::TestFeature); |
2655 TestObjectV8Internal::measureAsLongAttributeAttributeSetter(v8Value, info); | 2755 TestObjectV8Internal::measureAsLongAttributeAttributeSetter(v8Value, info); |
2656 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2756 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2657 } | 2757 } |
(...skipping 10 matching lines...) Expand all Loading... |
2668 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 2768 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
2669 TestObjectV8Internal::notEnumerableLongAttributeAttributeGetter(info); | 2769 TestObjectV8Internal::notEnumerableLongAttributeAttributeGetter(info); |
2670 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2770 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2671 } | 2771 } |
2672 | 2772 |
2673 static void notEnumerableLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val
ue, const v8::PropertyCallbackInfo<void>& info) | 2773 static void notEnumerableLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val
ue, const v8::PropertyCallbackInfo<void>& info) |
2674 { | 2774 { |
2675 v8::Local<v8::Object> holder = info.Holder(); | 2775 v8::Local<v8::Object> holder = info.Holder(); |
2676 ExceptionState exceptionState(ExceptionState::SetterContext, "notEnumerableL
ongAttribute", "TestObject", holder, info.GetIsolate()); | 2776 ExceptionState exceptionState(ExceptionState::SetterContext, "notEnumerableL
ongAttribute", "TestObject", holder, info.GetIsolate()); |
2677 TestObject* impl = V8TestObject::toImpl(holder); | 2777 TestObject* impl = V8TestObject::toImpl(holder); |
2678 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 2778 int cppValue = toInt32(v8Value, exceptionState); |
| 2779 if (exceptionState.throwIfNeeded()) |
| 2780 return; |
2679 impl->setNotEnumerableLongAttribute(cppValue); | 2781 impl->setNotEnumerableLongAttribute(cppValue); |
2680 } | 2782 } |
2681 | 2783 |
2682 static void notEnumerableLongAttributeAttributeSetterCallback(v8::Local<v8::Stri
ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2784 static void notEnumerableLongAttributeAttributeSetterCallback(v8::Local<v8::Stri
ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2683 { | 2785 { |
2684 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2786 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2685 TestObjectV8Internal::notEnumerableLongAttributeAttributeSetter(v8Value, inf
o); | 2787 TestObjectV8Internal::notEnumerableLongAttributeAttributeSetter(v8Value, inf
o); |
2686 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2788 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2687 } | 2789 } |
2688 | 2790 |
2689 static void perContextEnabledLongAttributeAttributeGetter(const v8::PropertyCall
backInfo<v8::Value>& info) | 2791 static void perContextEnabledLongAttributeAttributeGetter(const v8::PropertyCall
backInfo<v8::Value>& info) |
2690 { | 2792 { |
2691 v8::Local<v8::Object> holder = info.Holder(); | 2793 v8::Local<v8::Object> holder = info.Holder(); |
2692 TestObject* impl = V8TestObject::toImpl(holder); | 2794 TestObject* impl = V8TestObject::toImpl(holder); |
2693 v8SetReturnValueInt(info, impl->perContextEnabledLongAttribute()); | 2795 v8SetReturnValueInt(info, impl->perContextEnabledLongAttribute()); |
2694 } | 2796 } |
2695 | 2797 |
2696 static void perContextEnabledLongAttributeAttributeGetterCallback(v8::Local<v8::
String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2798 static void perContextEnabledLongAttributeAttributeGetterCallback(v8::Local<v8::
String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2697 { | 2799 { |
2698 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 2800 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
2699 TestObjectV8Internal::perContextEnabledLongAttributeAttributeGetter(info); | 2801 TestObjectV8Internal::perContextEnabledLongAttributeAttributeGetter(info); |
2700 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2802 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2701 } | 2803 } |
2702 | 2804 |
2703 static void perContextEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> v
8Value, const v8::PropertyCallbackInfo<void>& info) | 2805 static void perContextEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> v
8Value, const v8::PropertyCallbackInfo<void>& info) |
2704 { | 2806 { |
2705 v8::Local<v8::Object> holder = info.Holder(); | 2807 v8::Local<v8::Object> holder = info.Holder(); |
2706 ExceptionState exceptionState(ExceptionState::SetterContext, "perContextEnab
ledLongAttribute", "TestObject", holder, info.GetIsolate()); | 2808 ExceptionState exceptionState(ExceptionState::SetterContext, "perContextEnab
ledLongAttribute", "TestObject", holder, info.GetIsolate()); |
2707 TestObject* impl = V8TestObject::toImpl(holder); | 2809 TestObject* impl = V8TestObject::toImpl(holder); |
2708 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 2810 int cppValue = toInt32(v8Value, exceptionState); |
| 2811 if (exceptionState.throwIfNeeded()) |
| 2812 return; |
2709 impl->setPerContextEnabledLongAttribute(cppValue); | 2813 impl->setPerContextEnabledLongAttribute(cppValue); |
2710 } | 2814 } |
2711 | 2815 |
2712 static void perContextEnabledLongAttributeAttributeSetterCallback(v8::Local<v8::
String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& inf
o) | 2816 static void perContextEnabledLongAttributeAttributeSetterCallback(v8::Local<v8::
String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& inf
o) |
2713 { | 2817 { |
2714 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2818 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2715 TestObjectV8Internal::perContextEnabledLongAttributeAttributeSetter(v8Value,
info); | 2819 TestObjectV8Internal::perContextEnabledLongAttributeAttributeSetter(v8Value,
info); |
2716 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2820 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2717 } | 2821 } |
2718 | 2822 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2774 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce
ssPerWorldBindingsLongAttribute"); | 2878 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce
ssPerWorldBindingsLongAttribute"); |
2775 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr
ibuteGetter(info); | 2879 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr
ibuteGetter(info); |
2776 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2880 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2777 } | 2881 } |
2778 | 2882 |
2779 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetter(v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2883 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetter(v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2780 { | 2884 { |
2781 v8::Local<v8::Object> holder = info.Holder(); | 2885 v8::Local<v8::Object> holder = info.Holder(); |
2782 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); | 2886 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); |
2783 TestObject* impl = V8TestObject::toImpl(holder); | 2887 TestObject* impl = V8TestObject::toImpl(holder); |
2784 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 2888 int cppValue = toInt32(v8Value, exceptionState); |
| 2889 if (exceptionState.throwIfNeeded()) |
| 2890 return; |
2785 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); | 2891 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); |
2786 } | 2892 } |
2787 | 2893 |
2788 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal
lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal
lbackInfo<void>& info) | 2894 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal
lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal
lbackInfo<void>& info) |
2789 { | 2895 { |
2790 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2896 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2791 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); | 2897 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); |
2792 V8PerContextData* contextData = scriptState->perContextData(); | 2898 V8PerContextData* contextData = scriptState->perContextData(); |
2793 if (contextData && contextData->activityLogger()) { | 2899 if (contextData && contextData->activityLogger()) { |
2794 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce
ssPerWorldBindingsLongAttribute", v8Value); | 2900 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce
ssPerWorldBindingsLongAttribute", v8Value); |
(...skipping 18 matching lines...) Expand all Loading... |
2813 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce
ssPerWorldBindingsLongAttribute"); | 2919 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce
ssPerWorldBindingsLongAttribute"); |
2814 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr
ibuteGetterForMainWorld(info); | 2920 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr
ibuteGetterForMainWorld(info); |
2815 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2921 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2816 } | 2922 } |
2817 | 2923 |
2818 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterFor
MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in
fo) | 2924 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterFor
MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in
fo) |
2819 { | 2925 { |
2820 v8::Local<v8::Object> holder = info.Holder(); | 2926 v8::Local<v8::Object> holder = info.Holder(); |
2821 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); | 2927 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); |
2822 TestObject* impl = V8TestObject::toImpl(holder); | 2928 TestObject* impl = V8TestObject::toImpl(holder); |
2823 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 2929 int cppValue = toInt32(v8Value, exceptionState); |
| 2930 if (exceptionState.throwIfNeeded()) |
| 2931 return; |
2824 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); | 2932 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); |
2825 } | 2933 } |
2826 | 2934 |
2827 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal
lbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) | 2935 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal
lbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) |
2828 { | 2936 { |
2829 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2937 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2830 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); | 2938 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); |
2831 V8PerContextData* contextData = scriptState->perContextData(); | 2939 V8PerContextData* contextData = scriptState->perContextData(); |
2832 if (contextData && contextData->activityLogger()) { | 2940 if (contextData && contextData->activityLogger()) { |
2833 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce
ssPerWorldBindingsLongAttribute", v8Value); | 2941 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce
ssPerWorldBindingsLongAttribute", v8Value); |
(...skipping 18 matching lines...) Expand all Loading... |
2852 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce
ssForIsolatedWorldsPerWorldBindingsLongAttribute"); | 2960 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce
ssForIsolatedWorldsPerWorldBindingsLongAttribute"); |
2853 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings
LongAttributeAttributeGetter(info); | 2961 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings
LongAttributeAttributeGetter(info); |
2854 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2962 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2855 } | 2963 } |
2856 | 2964 |
2857 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void
>& info) | 2965 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void
>& info) |
2858 { | 2966 { |
2859 v8::Local<v8::Object> holder = info.Holder(); | 2967 v8::Local<v8::Object> holder = info.Holder(); |
2860 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in
fo.GetIsolate()); | 2968 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in
fo.GetIsolate()); |
2861 TestObject* impl = V8TestObject::toImpl(holder); | 2969 TestObject* impl = V8TestObject::toImpl(holder); |
2862 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 2970 int cppValue = toInt32(v8Value, exceptionState); |
| 2971 if (exceptionState.throwIfNeeded()) |
| 2972 return; |
2863 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute
(cppValue); | 2973 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute
(cppValue); |
2864 } | 2974 } |
2865 | 2975 |
2866 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) | 2976 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) |
2867 { | 2977 { |
2868 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2978 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2869 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); | 2979 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); |
2870 V8PerContextData* contextData = scriptState->perContextData(); | 2980 V8PerContextData* contextData = scriptState->perContextData(); |
2871 if (contextData && contextData->activityLogger()) { | 2981 if (contextData && contextData->activityLogger()) { |
2872 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce
ssForIsolatedWorldsPerWorldBindingsLongAttribute", v8Value); | 2982 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce
ssForIsolatedWorldsPerWorldBindingsLongAttribute", v8Value); |
(...skipping 14 matching lines...) Expand all Loading... |
2887 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 2997 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
2888 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings
LongAttributeAttributeGetterForMainWorld(info); | 2998 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings
LongAttributeAttributeGetterForMainWorld(info); |
2889 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2999 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2890 } | 3000 } |
2891 | 3001 |
2892 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterForMainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallb
ackInfo<void>& info) | 3002 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterForMainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallb
ackInfo<void>& info) |
2893 { | 3003 { |
2894 v8::Local<v8::Object> holder = info.Holder(); | 3004 v8::Local<v8::Object> holder = info.Holder(); |
2895 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in
fo.GetIsolate()); | 3005 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in
fo.GetIsolate()); |
2896 TestObject* impl = V8TestObject::toImpl(holder); | 3006 TestObject* impl = V8TestObject::toImpl(holder); |
2897 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 3007 int cppValue = toInt32(v8Value, exceptionState); |
| 3008 if (exceptionState.throwIfNeeded()) |
| 3009 return; |
2898 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute
(cppValue); | 3010 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute
(cppValue); |
2899 } | 3011 } |
2900 | 3012 |
2901 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v
8Value, const v8::PropertyCallbackInfo<void>& info) | 3013 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v
8Value, const v8::PropertyCallbackInfo<void>& info) |
2902 { | 3014 { |
2903 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3015 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2904 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings
LongAttributeAttributeSetterForMainWorld(v8Value, info); | 3016 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings
LongAttributeAttributeSetterForMainWorld(v8Value, info); |
2905 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3017 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2906 } | 3018 } |
2907 | 3019 |
(...skipping 13 matching lines...) Expand all Loading... |
2921 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett
erPerWorldBindingsLongAttribute"); | 3033 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett
erPerWorldBindingsLongAttribute"); |
2922 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr
ibuteGetter(info); | 3034 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr
ibuteGetter(info); |
2923 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3035 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2924 } | 3036 } |
2925 | 3037 |
2926 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetter(v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3038 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetter(v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2927 { | 3039 { |
2928 v8::Local<v8::Object> holder = info.Holder(); | 3040 v8::Local<v8::Object> holder = info.Holder(); |
2929 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); | 3041 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); |
2930 TestObject* impl = V8TestObject::toImpl(holder); | 3042 TestObject* impl = V8TestObject::toImpl(holder); |
2931 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 3043 int cppValue = toInt32(v8Value, exceptionState); |
| 3044 if (exceptionState.throwIfNeeded()) |
| 3045 return; |
2932 impl->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue); | 3046 impl->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue); |
2933 } | 3047 } |
2934 | 3048 |
2935 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCal
lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal
lbackInfo<void>& info) | 3049 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCal
lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal
lbackInfo<void>& info) |
2936 { | 3050 { |
2937 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3051 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2938 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr
ibuteSetter(v8Value, info); | 3052 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr
ibuteSetter(v8Value, info); |
2939 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3053 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2940 } | 3054 } |
2941 | 3055 |
(...skipping 13 matching lines...) Expand all Loading... |
2955 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett
erPerWorldBindingsLongAttribute"); | 3069 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett
erPerWorldBindingsLongAttribute"); |
2956 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr
ibuteGetterForMainWorld(info); | 3070 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr
ibuteGetterForMainWorld(info); |
2957 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3071 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2958 } | 3072 } |
2959 | 3073 |
2960 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterFor
MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in
fo) | 3074 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterFor
MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in
fo) |
2961 { | 3075 { |
2962 v8::Local<v8::Object> holder = info.Holder(); | 3076 v8::Local<v8::Object> holder = info.Holder(); |
2963 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); | 3077 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); |
2964 TestObject* impl = V8TestObject::toImpl(holder); | 3078 TestObject* impl = V8TestObject::toImpl(holder); |
2965 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 3079 int cppValue = toInt32(v8Value, exceptionState); |
| 3080 if (exceptionState.throwIfNeeded()) |
| 3081 return; |
2966 impl->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue); | 3082 impl->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue); |
2967 } | 3083 } |
2968 | 3084 |
2969 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCal
lbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) | 3085 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCal
lbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) |
2970 { | 3086 { |
2971 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3087 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2972 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr
ibuteSetterForMainWorld(v8Value, info); | 3088 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr
ibuteSetterForMainWorld(v8Value, info); |
2973 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3089 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2974 } | 3090 } |
2975 | 3091 |
(...skipping 13 matching lines...) Expand all Loading... |
2989 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett
erForIsolatedWorldsPerWorldBindingsLongAttribute"); | 3105 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett
erForIsolatedWorldsPerWorldBindingsLongAttribute"); |
2990 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings
LongAttributeAttributeGetter(info); | 3106 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings
LongAttributeAttributeGetter(info); |
2991 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3107 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2992 } | 3108 } |
2993 | 3109 |
2994 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void
>& info) | 3110 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void
>& info) |
2995 { | 3111 { |
2996 v8::Local<v8::Object> holder = info.Holder(); | 3112 v8::Local<v8::Object> holder = info.Holder(); |
2997 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in
fo.GetIsolate()); | 3113 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in
fo.GetIsolate()); |
2998 TestObject* impl = V8TestObject::toImpl(holder); | 3114 TestObject* impl = V8TestObject::toImpl(holder); |
2999 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 3115 int cppValue = toInt32(v8Value, exceptionState); |
| 3116 if (exceptionState.throwIfNeeded()) |
| 3117 return; |
3000 impl->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute
(cppValue); | 3118 impl->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute
(cppValue); |
3001 } | 3119 } |
3002 | 3120 |
3003 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) | 3121 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) |
3004 { | 3122 { |
3005 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3123 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3006 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings
LongAttributeAttributeSetter(v8Value, info); | 3124 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings
LongAttributeAttributeSetter(v8Value, info); |
3007 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3125 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3008 } | 3126 } |
3009 | 3127 |
3010 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterForMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) | 3128 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterForMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) |
3011 { | 3129 { |
3012 v8::Local<v8::Object> holder = info.Holder(); | 3130 v8::Local<v8::Object> holder = info.Holder(); |
3013 TestObject* impl = V8TestObject::toImpl(holder); | 3131 TestObject* impl = V8TestObject::toImpl(holder); |
3014 v8SetReturnValueInt(info, impl->activityLoggingGetterForIsolatedWorldsPerWor
ldBindingsLongAttribute()); | 3132 v8SetReturnValueInt(info, impl->activityLoggingGetterForIsolatedWorldsPerWor
ldBindingsLongAttribute()); |
3015 } | 3133 } |
3016 | 3134 |
3017 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterCallbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCall
backInfo<v8::Value>& info) | 3135 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterCallbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCall
backInfo<v8::Value>& info) |
3018 { | 3136 { |
3019 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3137 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
3020 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings
LongAttributeAttributeGetterForMainWorld(info); | 3138 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings
LongAttributeAttributeGetterForMainWorld(info); |
3021 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3139 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3022 } | 3140 } |
3023 | 3141 |
3024 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterForMainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallb
ackInfo<void>& info) | 3142 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterForMainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallb
ackInfo<void>& info) |
3025 { | 3143 { |
3026 v8::Local<v8::Object> holder = info.Holder(); | 3144 v8::Local<v8::Object> holder = info.Holder(); |
3027 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in
fo.GetIsolate()); | 3145 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in
fo.GetIsolate()); |
3028 TestObject* impl = V8TestObject::toImpl(holder); | 3146 TestObject* impl = V8TestObject::toImpl(holder); |
3029 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 3147 int cppValue = toInt32(v8Value, exceptionState); |
| 3148 if (exceptionState.throwIfNeeded()) |
| 3149 return; |
3030 impl->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute
(cppValue); | 3150 impl->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute
(cppValue); |
3031 } | 3151 } |
3032 | 3152 |
3033 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v
8Value, const v8::PropertyCallbackInfo<void>& info) | 3153 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v
8Value, const v8::PropertyCallbackInfo<void>& info) |
3034 { | 3154 { |
3035 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3155 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3036 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings
LongAttributeAttributeSetterForMainWorld(v8Value, info); | 3156 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings
LongAttributeAttributeSetterForMainWorld(v8Value, info); |
3037 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3157 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3038 } | 3158 } |
3039 | 3159 |
(...skipping 11 matching lines...) Expand all Loading... |
3051 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3171 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3052 } | 3172 } |
3053 | 3173 |
3054 static void locationAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Prop
ertyCallbackInfo<void>& info) | 3174 static void locationAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Prop
ertyCallbackInfo<void>& info) |
3055 { | 3175 { |
3056 v8::Local<v8::Object> holder = info.Holder(); | 3176 v8::Local<v8::Object> holder = info.Holder(); |
3057 TestObject* proxyImpl = V8TestObject::toImpl(holder); | 3177 TestObject* proxyImpl = V8TestObject::toImpl(holder); |
3058 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->location()); | 3178 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->location()); |
3059 if (!impl) | 3179 if (!impl) |
3060 return; | 3180 return; |
3061 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 3181 V8StringResource<> cppValue = v8Value; |
| 3182 if (!cppValue.prepare()) |
| 3183 return; |
3062 impl->setHref(cppValue); | 3184 impl->setHref(cppValue); |
3063 } | 3185 } |
3064 | 3186 |
3065 static void locationAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8:
:Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3187 static void locationAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8:
:Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3066 { | 3188 { |
3067 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3189 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3068 TestObjectV8Internal::locationAttributeSetter(v8Value, info); | 3190 TestObjectV8Internal::locationAttributeSetter(v8Value, info); |
3069 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3191 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3070 } | 3192 } |
3071 | 3193 |
(...skipping 12 matching lines...) Expand all Loading... |
3084 } | 3206 } |
3085 | 3207 |
3086 static void locationWithExceptionAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) | 3208 static void locationWithExceptionAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) |
3087 { | 3209 { |
3088 v8::Local<v8::Object> holder = info.Holder(); | 3210 v8::Local<v8::Object> holder = info.Holder(); |
3089 ExceptionState exceptionState(ExceptionState::SetterContext, "locationWithEx
ception", "TestObject", holder, info.GetIsolate()); | 3211 ExceptionState exceptionState(ExceptionState::SetterContext, "locationWithEx
ception", "TestObject", holder, info.GetIsolate()); |
3090 TestObject* proxyImpl = V8TestObject::toImpl(holder); | 3212 TestObject* proxyImpl = V8TestObject::toImpl(holder); |
3091 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithExcep
tion()); | 3213 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithExcep
tion()); |
3092 if (!impl) | 3214 if (!impl) |
3093 return; | 3215 return; |
3094 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 3216 V8StringResource<> cppValue = v8Value; |
| 3217 if (!cppValue.prepare()) |
| 3218 return; |
3095 impl->setHrefThrows(cppValue, exceptionState); | 3219 impl->setHrefThrows(cppValue, exceptionState); |
3096 exceptionState.throwIfNeeded(); | 3220 exceptionState.throwIfNeeded(); |
3097 } | 3221 } |
3098 | 3222 |
3099 static void locationWithExceptionAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3223 static void locationWithExceptionAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3100 { | 3224 { |
3101 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3225 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3102 TestObjectV8Internal::locationWithExceptionAttributeSetter(v8Value, info); | 3226 TestObjectV8Internal::locationWithExceptionAttributeSetter(v8Value, info); |
3103 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3227 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3104 } | 3228 } |
(...skipping 12 matching lines...) Expand all Loading... |
3117 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3241 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3118 } | 3242 } |
3119 | 3243 |
3120 static void locationWithCallWithAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::PropertyCallbackInfo<void>& info) | 3244 static void locationWithCallWithAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::PropertyCallbackInfo<void>& info) |
3121 { | 3245 { |
3122 v8::Local<v8::Object> holder = info.Holder(); | 3246 v8::Local<v8::Object> holder = info.Holder(); |
3123 TestObject* proxyImpl = V8TestObject::toImpl(holder); | 3247 TestObject* proxyImpl = V8TestObject::toImpl(holder); |
3124 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithCallW
ith()); | 3248 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithCallW
ith()); |
3125 if (!impl) | 3249 if (!impl) |
3126 return; | 3250 return; |
3127 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 3251 V8StringResource<> cppValue = v8Value; |
| 3252 if (!cppValue.prepare()) |
| 3253 return; |
3128 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate
()); | 3254 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate
()); |
3129 impl->setHrefCallWith(executionContext, callingDOMWindow(info.GetIsolate()),
enteredDOMWindow(info.GetIsolate()), cppValue); | 3255 impl->setHrefCallWith(executionContext, callingDOMWindow(info.GetIsolate()),
enteredDOMWindow(info.GetIsolate()), cppValue); |
3130 } | 3256 } |
3131 | 3257 |
3132 static void locationWithCallWithAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3258 static void locationWithCallWithAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3133 { | 3259 { |
3134 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3260 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3135 TestObjectV8Internal::locationWithCallWithAttributeSetter(v8Value, info); | 3261 TestObjectV8Internal::locationWithCallWithAttributeSetter(v8Value, info); |
3136 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3262 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3137 } | 3263 } |
(...skipping 13 matching lines...) Expand all Loading... |
3151 } | 3277 } |
3152 | 3278 |
3153 static void locationByteStringAttributeSetter(v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) | 3279 static void locationByteStringAttributeSetter(v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) |
3154 { | 3280 { |
3155 v8::Local<v8::Object> holder = info.Holder(); | 3281 v8::Local<v8::Object> holder = info.Holder(); |
3156 ExceptionState exceptionState(ExceptionState::SetterContext, "locationByteSt
ring", "TestObject", holder, info.GetIsolate()); | 3282 ExceptionState exceptionState(ExceptionState::SetterContext, "locationByteSt
ring", "TestObject", holder, info.GetIsolate()); |
3157 TestObject* proxyImpl = V8TestObject::toImpl(holder); | 3283 TestObject* proxyImpl = V8TestObject::toImpl(holder); |
3158 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationByteStrin
g()); | 3284 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationByteStrin
g()); |
3159 if (!impl) | 3285 if (!impl) |
3160 return; | 3286 return; |
3161 TONATIVE_VOID_EXCEPTIONSTATE(V8StringResource<>, cppValue, toByteString(v8Va
lue, exceptionState), exceptionState); | 3287 V8StringResource<> cppValue = toByteString(v8Value, exceptionState); |
| 3288 if (exceptionState.throwIfNeeded()) |
| 3289 return; |
3162 impl->setHrefByteString(cppValue); | 3290 impl->setHrefByteString(cppValue); |
3163 } | 3291 } |
3164 | 3292 |
3165 static void locationByteStringAttributeSetterCallback(v8::Local<v8::String>, v8:
:Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3293 static void locationByteStringAttributeSetterCallback(v8::Local<v8::String>, v8:
:Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3166 { | 3294 { |
3167 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3295 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3168 TestObjectV8Internal::locationByteStringAttributeSetter(v8Value, info); | 3296 TestObjectV8Internal::locationByteStringAttributeSetter(v8Value, info); |
3169 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3297 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3170 } | 3298 } |
3171 | 3299 |
(...skipping 11 matching lines...) Expand all Loading... |
3183 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3311 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3184 } | 3312 } |
3185 | 3313 |
3186 static void locationWithPerWorldBindingsAttributeSetter(v8::Local<v8::Value> v8V
alue, const v8::PropertyCallbackInfo<void>& info) | 3314 static void locationWithPerWorldBindingsAttributeSetter(v8::Local<v8::Value> v8V
alue, const v8::PropertyCallbackInfo<void>& info) |
3187 { | 3315 { |
3188 v8::Local<v8::Object> holder = info.Holder(); | 3316 v8::Local<v8::Object> holder = info.Holder(); |
3189 TestObject* proxyImpl = V8TestObject::toImpl(holder); | 3317 TestObject* proxyImpl = V8TestObject::toImpl(holder); |
3190 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithPerWo
rldBindings()); | 3318 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithPerWo
rldBindings()); |
3191 if (!impl) | 3319 if (!impl) |
3192 return; | 3320 return; |
3193 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 3321 V8StringResource<> cppValue = v8Value; |
| 3322 if (!cppValue.prepare()) |
| 3323 return; |
3194 impl->setHref(cppValue); | 3324 impl->setHref(cppValue); |
3195 } | 3325 } |
3196 | 3326 |
3197 static void locationWithPerWorldBindingsAttributeSetterCallback(v8::Local<v8::St
ring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3327 static void locationWithPerWorldBindingsAttributeSetterCallback(v8::Local<v8::St
ring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3198 { | 3328 { |
3199 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3329 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3200 TestObjectV8Internal::locationWithPerWorldBindingsAttributeSetter(v8Value, i
nfo); | 3330 TestObjectV8Internal::locationWithPerWorldBindingsAttributeSetter(v8Value, i
nfo); |
3201 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3331 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3202 } | 3332 } |
3203 | 3333 |
(...skipping 11 matching lines...) Expand all Loading... |
3215 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3345 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3216 } | 3346 } |
3217 | 3347 |
3218 static void locationWithPerWorldBindingsAttributeSetterForMainWorld(v8::Local<v8
::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3348 static void locationWithPerWorldBindingsAttributeSetterForMainWorld(v8::Local<v8
::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3219 { | 3349 { |
3220 v8::Local<v8::Object> holder = info.Holder(); | 3350 v8::Local<v8::Object> holder = info.Holder(); |
3221 TestObject* proxyImpl = V8TestObject::toImpl(holder); | 3351 TestObject* proxyImpl = V8TestObject::toImpl(holder); |
3222 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithPerWo
rldBindings()); | 3352 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithPerWo
rldBindings()); |
3223 if (!impl) | 3353 if (!impl) |
3224 return; | 3354 return; |
3225 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 3355 V8StringResource<> cppValue = v8Value; |
| 3356 if (!cppValue.prepare()) |
| 3357 return; |
3226 impl->setHref(cppValue); | 3358 impl->setHref(cppValue); |
3227 } | 3359 } |
3228 | 3360 |
3229 static void locationWithPerWorldBindingsAttributeSetterCallbackForMainWorld(v8::
Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<
void>& info) | 3361 static void locationWithPerWorldBindingsAttributeSetterCallbackForMainWorld(v8::
Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<
void>& info) |
3230 { | 3362 { |
3231 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3363 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3232 TestObjectV8Internal::locationWithPerWorldBindingsAttributeSetterForMainWorl
d(v8Value, info); | 3364 TestObjectV8Internal::locationWithPerWorldBindingsAttributeSetterForMainWorl
d(v8Value, info); |
3233 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3365 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3234 } | 3366 } |
3235 | 3367 |
(...skipping 11 matching lines...) Expand all Loading... |
3247 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3379 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3248 } | 3380 } |
3249 | 3381 |
3250 static void locationTypeCheckingInterfaceAttributeSetter(v8::Local<v8::Value> v8
Value, const v8::PropertyCallbackInfo<void>& info) | 3382 static void locationTypeCheckingInterfaceAttributeSetter(v8::Local<v8::Value> v8
Value, const v8::PropertyCallbackInfo<void>& info) |
3251 { | 3383 { |
3252 v8::Local<v8::Object> holder = info.Holder(); | 3384 v8::Local<v8::Object> holder = info.Holder(); |
3253 TestObject* proxyImpl = V8TestObject::toImpl(holder); | 3385 TestObject* proxyImpl = V8TestObject::toImpl(holder); |
3254 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationTypeCheck
ingInterface()); | 3386 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationTypeCheck
ingInterface()); |
3255 if (!impl) | 3387 if (!impl) |
3256 return; | 3388 return; |
3257 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 3389 V8StringResource<> cppValue = v8Value; |
| 3390 if (!cppValue.prepare()) |
| 3391 return; |
3258 impl->setHref(cppValue); | 3392 impl->setHref(cppValue); |
3259 } | 3393 } |
3260 | 3394 |
3261 static void locationTypeCheckingInterfaceAttributeSetterCallback(v8::Local<v8::S
tring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info
) | 3395 static void locationTypeCheckingInterfaceAttributeSetterCallback(v8::Local<v8::S
tring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info
) |
3262 { | 3396 { |
3263 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3397 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3264 TestObjectV8Internal::locationTypeCheckingInterfaceAttributeSetter(v8Value,
info); | 3398 TestObjectV8Internal::locationTypeCheckingInterfaceAttributeSetter(v8Value,
info); |
3265 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3399 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3266 } | 3400 } |
3267 | 3401 |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3359 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3493 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
3360 TestObjectV8Internal::raisesExceptionLongAttributeAttributeGetter(info); | 3494 TestObjectV8Internal::raisesExceptionLongAttributeAttributeGetter(info); |
3361 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3495 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3362 } | 3496 } |
3363 | 3497 |
3364 static void raisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Value> v8V
alue, const v8::PropertyCallbackInfo<void>& info) | 3498 static void raisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Value> v8V
alue, const v8::PropertyCallbackInfo<void>& info) |
3365 { | 3499 { |
3366 v8::Local<v8::Object> holder = info.Holder(); | 3500 v8::Local<v8::Object> holder = info.Holder(); |
3367 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio
nLongAttribute", "TestObject", holder, info.GetIsolate()); | 3501 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio
nLongAttribute", "TestObject", holder, info.GetIsolate()); |
3368 TestObject* impl = V8TestObject::toImpl(holder); | 3502 TestObject* impl = V8TestObject::toImpl(holder); |
3369 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 3503 int cppValue = toInt32(v8Value, exceptionState); |
| 3504 if (exceptionState.throwIfNeeded()) |
| 3505 return; |
3370 impl->setRaisesExceptionLongAttribute(cppValue, exceptionState); | 3506 impl->setRaisesExceptionLongAttribute(cppValue, exceptionState); |
3371 exceptionState.throwIfNeeded(); | 3507 exceptionState.throwIfNeeded(); |
3372 } | 3508 } |
3373 | 3509 |
3374 static void raisesExceptionLongAttributeAttributeSetterCallback(v8::Local<v8::St
ring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3510 static void raisesExceptionLongAttributeAttributeSetterCallback(v8::Local<v8::St
ring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3375 { | 3511 { |
3376 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3512 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3377 TestObjectV8Internal::raisesExceptionLongAttributeAttributeSetter(v8Value, i
nfo); | 3513 TestObjectV8Internal::raisesExceptionLongAttributeAttributeSetter(v8Value, i
nfo); |
3378 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3514 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3379 } | 3515 } |
(...skipping 14 matching lines...) Expand all Loading... |
3394 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3530 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
3395 TestObjectV8Internal::raisesExceptionGetterLongAttributeAttributeGetter(info
); | 3531 TestObjectV8Internal::raisesExceptionGetterLongAttributeAttributeGetter(info
); |
3396 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3532 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3397 } | 3533 } |
3398 | 3534 |
3399 static void raisesExceptionGetterLongAttributeAttributeSetter(v8::Local<v8::Valu
e> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3535 static void raisesExceptionGetterLongAttributeAttributeSetter(v8::Local<v8::Valu
e> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3400 { | 3536 { |
3401 v8::Local<v8::Object> holder = info.Holder(); | 3537 v8::Local<v8::Object> holder = info.Holder(); |
3402 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio
nGetterLongAttribute", "TestObject", holder, info.GetIsolate()); | 3538 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio
nGetterLongAttribute", "TestObject", holder, info.GetIsolate()); |
3403 TestObject* impl = V8TestObject::toImpl(holder); | 3539 TestObject* impl = V8TestObject::toImpl(holder); |
3404 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 3540 int cppValue = toInt32(v8Value, exceptionState); |
| 3541 if (exceptionState.throwIfNeeded()) |
| 3542 return; |
3405 impl->setRaisesExceptionGetterLongAttribute(cppValue); | 3543 impl->setRaisesExceptionGetterLongAttribute(cppValue); |
3406 } | 3544 } |
3407 | 3545 |
3408 static void raisesExceptionGetterLongAttributeAttributeSetterCallback(v8::Local<
v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>&
info) | 3546 static void raisesExceptionGetterLongAttributeAttributeSetterCallback(v8::Local<
v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>&
info) |
3409 { | 3547 { |
3410 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3548 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3411 TestObjectV8Internal::raisesExceptionGetterLongAttributeAttributeSetter(v8Va
lue, info); | 3549 TestObjectV8Internal::raisesExceptionGetterLongAttributeAttributeSetter(v8Va
lue, info); |
3412 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3550 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3413 } | 3551 } |
3414 | 3552 |
3415 static void setterRaisesExceptionLongAttributeAttributeGetter(const v8::Property
CallbackInfo<v8::Value>& info) | 3553 static void setterRaisesExceptionLongAttributeAttributeGetter(const v8::Property
CallbackInfo<v8::Value>& info) |
3416 { | 3554 { |
3417 v8::Local<v8::Object> holder = info.Holder(); | 3555 v8::Local<v8::Object> holder = info.Holder(); |
3418 TestObject* impl = V8TestObject::toImpl(holder); | 3556 TestObject* impl = V8TestObject::toImpl(holder); |
3419 v8SetReturnValueInt(info, impl->setterRaisesExceptionLongAttribute()); | 3557 v8SetReturnValueInt(info, impl->setterRaisesExceptionLongAttribute()); |
3420 } | 3558 } |
3421 | 3559 |
3422 static void setterRaisesExceptionLongAttributeAttributeGetterCallback(v8::Local<
v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3560 static void setterRaisesExceptionLongAttributeAttributeGetterCallback(v8::Local<
v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
3423 { | 3561 { |
3424 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3562 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
3425 TestObjectV8Internal::setterRaisesExceptionLongAttributeAttributeGetter(info
); | 3563 TestObjectV8Internal::setterRaisesExceptionLongAttributeAttributeGetter(info
); |
3426 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3564 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3427 } | 3565 } |
3428 | 3566 |
3429 static void setterRaisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Valu
e> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3567 static void setterRaisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Valu
e> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3430 { | 3568 { |
3431 v8::Local<v8::Object> holder = info.Holder(); | 3569 v8::Local<v8::Object> holder = info.Holder(); |
3432 ExceptionState exceptionState(ExceptionState::SetterContext, "setterRaisesEx
ceptionLongAttribute", "TestObject", holder, info.GetIsolate()); | 3570 ExceptionState exceptionState(ExceptionState::SetterContext, "setterRaisesEx
ceptionLongAttribute", "TestObject", holder, info.GetIsolate()); |
3433 TestObject* impl = V8TestObject::toImpl(holder); | 3571 TestObject* impl = V8TestObject::toImpl(holder); |
3434 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 3572 int cppValue = toInt32(v8Value, exceptionState); |
| 3573 if (exceptionState.throwIfNeeded()) |
| 3574 return; |
3435 impl->setSetterRaisesExceptionLongAttribute(cppValue, exceptionState); | 3575 impl->setSetterRaisesExceptionLongAttribute(cppValue, exceptionState); |
3436 exceptionState.throwIfNeeded(); | 3576 exceptionState.throwIfNeeded(); |
3437 } | 3577 } |
3438 | 3578 |
3439 static void setterRaisesExceptionLongAttributeAttributeSetterCallback(v8::Local<
v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>&
info) | 3579 static void setterRaisesExceptionLongAttributeAttributeSetterCallback(v8::Local<
v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>&
info) |
3440 { | 3580 { |
3441 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3581 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3442 TestObjectV8Internal::setterRaisesExceptionLongAttributeAttributeSetter(v8Va
lue, info); | 3582 TestObjectV8Internal::setterRaisesExceptionLongAttributeAttributeSetter(v8Va
lue, info); |
3443 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3583 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3444 } | 3584 } |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3628 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3768 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
3629 TestObjectV8Internal::reflectLongAttributeAttributeGetter(info); | 3769 TestObjectV8Internal::reflectLongAttributeAttributeGetter(info); |
3630 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3770 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3631 } | 3771 } |
3632 | 3772 |
3633 static void reflectLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::PropertyCallbackInfo<void>& info) | 3773 static void reflectLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::PropertyCallbackInfo<void>& info) |
3634 { | 3774 { |
3635 v8::Local<v8::Object> holder = info.Holder(); | 3775 v8::Local<v8::Object> holder = info.Holder(); |
3636 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectLongAtt
ribute", "TestObject", holder, info.GetIsolate()); | 3776 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectLongAtt
ribute", "TestObject", holder, info.GetIsolate()); |
3637 TestObject* impl = V8TestObject::toImpl(holder); | 3777 TestObject* impl = V8TestObject::toImpl(holder); |
3638 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 3778 int cppValue = toInt32(v8Value, exceptionState); |
| 3779 if (exceptionState.throwIfNeeded()) |
| 3780 return; |
3639 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 3781 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
3640 impl->setIntegralAttribute(HTMLNames::reflectlongattributeAttr, cppValue); | 3782 impl->setIntegralAttribute(HTMLNames::reflectlongattributeAttr, cppValue); |
3641 } | 3783 } |
3642 | 3784 |
3643 static void reflectLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3785 static void reflectLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3644 { | 3786 { |
3645 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3787 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3646 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 3788 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
3647 TestObjectV8Internal::reflectLongAttributeAttributeSetter(v8Value, info); | 3789 TestObjectV8Internal::reflectLongAttributeAttributeSetter(v8Value, info); |
3648 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3790 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
(...skipping 11 matching lines...) Expand all Loading... |
3660 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3802 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
3661 TestObjectV8Internal::reflectUnsignedShortAttributeAttributeGetter(info); | 3803 TestObjectV8Internal::reflectUnsignedShortAttributeAttributeGetter(info); |
3662 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3804 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3663 } | 3805 } |
3664 | 3806 |
3665 static void reflectUnsignedShortAttributeAttributeSetter(v8::Local<v8::Value> v8
Value, const v8::PropertyCallbackInfo<void>& info) | 3807 static void reflectUnsignedShortAttributeAttributeSetter(v8::Local<v8::Value> v8
Value, const v8::PropertyCallbackInfo<void>& info) |
3666 { | 3808 { |
3667 v8::Local<v8::Object> holder = info.Holder(); | 3809 v8::Local<v8::Object> holder = info.Holder(); |
3668 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne
dShortAttribute", "TestObject", holder, info.GetIsolate()); | 3810 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne
dShortAttribute", "TestObject", holder, info.GetIsolate()); |
3669 TestObject* impl = V8TestObject::toImpl(holder); | 3811 TestObject* impl = V8TestObject::toImpl(holder); |
3670 TONATIVE_VOID_EXCEPTIONSTATE(unsigned, cppValue, toUInt16(v8Value, exception
State), exceptionState); | 3812 unsigned cppValue = toUInt16(v8Value, exceptionState); |
| 3813 if (exceptionState.throwIfNeeded()) |
| 3814 return; |
3671 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 3815 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
3672 impl->setAttribute(HTMLNames::reflectunsignedshortattributeAttr, cppValue); | 3816 impl->setAttribute(HTMLNames::reflectunsignedshortattributeAttr, cppValue); |
3673 } | 3817 } |
3674 | 3818 |
3675 static void reflectUnsignedShortAttributeAttributeSetterCallback(v8::Local<v8::S
tring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info
) | 3819 static void reflectUnsignedShortAttributeAttributeSetterCallback(v8::Local<v8::S
tring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info
) |
3676 { | 3820 { |
3677 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3821 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3678 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 3822 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
3679 TestObjectV8Internal::reflectUnsignedShortAttributeAttributeSetter(v8Value,
info); | 3823 TestObjectV8Internal::reflectUnsignedShortAttributeAttributeSetter(v8Value,
info); |
3680 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3824 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
(...skipping 11 matching lines...) Expand all Loading... |
3692 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3836 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
3693 TestObjectV8Internal::reflectUnsignedLongAttributeAttributeGetter(info); | 3837 TestObjectV8Internal::reflectUnsignedLongAttributeAttributeGetter(info); |
3694 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3838 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3695 } | 3839 } |
3696 | 3840 |
3697 static void reflectUnsignedLongAttributeAttributeSetter(v8::Local<v8::Value> v8V
alue, const v8::PropertyCallbackInfo<void>& info) | 3841 static void reflectUnsignedLongAttributeAttributeSetter(v8::Local<v8::Value> v8V
alue, const v8::PropertyCallbackInfo<void>& info) |
3698 { | 3842 { |
3699 v8::Local<v8::Object> holder = info.Holder(); | 3843 v8::Local<v8::Object> holder = info.Holder(); |
3700 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne
dLongAttribute", "TestObject", holder, info.GetIsolate()); | 3844 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne
dLongAttribute", "TestObject", holder, info.GetIsolate()); |
3701 TestObject* impl = V8TestObject::toImpl(holder); | 3845 TestObject* impl = V8TestObject::toImpl(holder); |
3702 TONATIVE_VOID_EXCEPTIONSTATE(unsigned, cppValue, toUInt32(v8Value, exception
State), exceptionState); | 3846 unsigned cppValue = toUInt32(v8Value, exceptionState); |
| 3847 if (exceptionState.throwIfNeeded()) |
| 3848 return; |
3703 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 3849 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
3704 impl->setUnsignedIntegralAttribute(HTMLNames::reflectunsignedlongattributeAt
tr, cppValue); | 3850 impl->setUnsignedIntegralAttribute(HTMLNames::reflectunsignedlongattributeAt
tr, cppValue); |
3705 } | 3851 } |
3706 | 3852 |
3707 static void reflectUnsignedLongAttributeAttributeSetterCallback(v8::Local<v8::St
ring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3853 static void reflectUnsignedLongAttributeAttributeSetterCallback(v8::Local<v8::St
ring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3708 { | 3854 { |
3709 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3855 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3710 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 3856 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
3711 TestObjectV8Internal::reflectUnsignedLongAttributeAttributeSetter(v8Value, i
nfo); | 3857 TestObjectV8Internal::reflectUnsignedLongAttributeAttributeSetter(v8Value, i
nfo); |
3712 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3858 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
(...skipping 10 matching lines...) Expand all Loading... |
3723 { | 3869 { |
3724 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3870 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
3725 TestObjectV8Internal::idAttributeGetter(info); | 3871 TestObjectV8Internal::idAttributeGetter(info); |
3726 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3872 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3727 } | 3873 } |
3728 | 3874 |
3729 static void idAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCa
llbackInfo<void>& info) | 3875 static void idAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCa
llbackInfo<void>& info) |
3730 { | 3876 { |
3731 v8::Local<v8::Object> holder = info.Holder(); | 3877 v8::Local<v8::Object> holder = info.Holder(); |
3732 TestObject* impl = V8TestObject::toImpl(holder); | 3878 TestObject* impl = V8TestObject::toImpl(holder); |
3733 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 3879 V8StringResource<> cppValue = v8Value; |
| 3880 if (!cppValue.prepare()) |
| 3881 return; |
3734 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 3882 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
3735 impl->setAttribute(HTMLNames::idAttr, cppValue); | 3883 impl->setAttribute(HTMLNames::idAttr, cppValue); |
3736 } | 3884 } |
3737 | 3885 |
3738 static void idAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value
> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3886 static void idAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value
> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3739 { | 3887 { |
3740 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3888 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3741 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 3889 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
3742 TestObjectV8Internal::idAttributeSetter(v8Value, info); | 3890 TestObjectV8Internal::idAttributeSetter(v8Value, info); |
3743 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3891 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
(...skipping 10 matching lines...) Expand all Loading... |
3754 { | 3902 { |
3755 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3903 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
3756 TestObjectV8Internal::nameAttributeGetter(info); | 3904 TestObjectV8Internal::nameAttributeGetter(info); |
3757 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3905 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3758 } | 3906 } |
3759 | 3907 |
3760 static void nameAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Property
CallbackInfo<void>& info) | 3908 static void nameAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Property
CallbackInfo<void>& info) |
3761 { | 3909 { |
3762 v8::Local<v8::Object> holder = info.Holder(); | 3910 v8::Local<v8::Object> holder = info.Holder(); |
3763 TestObject* impl = V8TestObject::toImpl(holder); | 3911 TestObject* impl = V8TestObject::toImpl(holder); |
3764 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 3912 V8StringResource<> cppValue = v8Value; |
| 3913 if (!cppValue.prepare()) |
| 3914 return; |
3765 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 3915 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
3766 impl->setAttribute(HTMLNames::nameAttr, cppValue); | 3916 impl->setAttribute(HTMLNames::nameAttr, cppValue); |
3767 } | 3917 } |
3768 | 3918 |
3769 static void nameAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Val
ue> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3919 static void nameAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Val
ue> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3770 { | 3920 { |
3771 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3921 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3772 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 3922 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
3773 TestObjectV8Internal::nameAttributeSetter(v8Value, info); | 3923 TestObjectV8Internal::nameAttributeSetter(v8Value, info); |
3774 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3924 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
(...skipping 10 matching lines...) Expand all Loading... |
3785 { | 3935 { |
3786 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3936 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
3787 TestObjectV8Internal::classAttributeGetter(info); | 3937 TestObjectV8Internal::classAttributeGetter(info); |
3788 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3938 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3789 } | 3939 } |
3790 | 3940 |
3791 static void classAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Propert
yCallbackInfo<void>& info) | 3941 static void classAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Propert
yCallbackInfo<void>& info) |
3792 { | 3942 { |
3793 v8::Local<v8::Object> holder = info.Holder(); | 3943 v8::Local<v8::Object> holder = info.Holder(); |
3794 TestObject* impl = V8TestObject::toImpl(holder); | 3944 TestObject* impl = V8TestObject::toImpl(holder); |
3795 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 3945 V8StringResource<> cppValue = v8Value; |
| 3946 if (!cppValue.prepare()) |
| 3947 return; |
3796 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 3948 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
3797 impl->setAttribute(HTMLNames::classAttr, cppValue); | 3949 impl->setAttribute(HTMLNames::classAttr, cppValue); |
3798 } | 3950 } |
3799 | 3951 |
3800 static void classAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Va
lue> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3952 static void classAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Va
lue> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3801 { | 3953 { |
3802 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3954 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3803 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 3955 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
3804 TestObjectV8Internal::classAttributeSetter(v8Value, info); | 3956 TestObjectV8Internal::classAttributeSetter(v8Value, info); |
3805 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3957 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
(...skipping 10 matching lines...) Expand all Loading... |
3816 { | 3968 { |
3817 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3969 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
3818 TestObjectV8Internal::reflectedIdAttributeGetter(info); | 3970 TestObjectV8Internal::reflectedIdAttributeGetter(info); |
3819 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3971 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3820 } | 3972 } |
3821 | 3973 |
3822 static void reflectedIdAttributeSetter(v8::Local<v8::Value> v8Value, const v8::P
ropertyCallbackInfo<void>& info) | 3974 static void reflectedIdAttributeSetter(v8::Local<v8::Value> v8Value, const v8::P
ropertyCallbackInfo<void>& info) |
3823 { | 3975 { |
3824 v8::Local<v8::Object> holder = info.Holder(); | 3976 v8::Local<v8::Object> holder = info.Holder(); |
3825 TestObject* impl = V8TestObject::toImpl(holder); | 3977 TestObject* impl = V8TestObject::toImpl(holder); |
3826 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 3978 V8StringResource<> cppValue = v8Value; |
| 3979 if (!cppValue.prepare()) |
| 3980 return; |
3827 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 3981 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
3828 impl->setAttribute(HTMLNames::idAttr, cppValue); | 3982 impl->setAttribute(HTMLNames::idAttr, cppValue); |
3829 } | 3983 } |
3830 | 3984 |
3831 static void reflectedIdAttributeSetterCallback(v8::Local<v8::String>, v8::Local<
v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3985 static void reflectedIdAttributeSetterCallback(v8::Local<v8::String>, v8::Local<
v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3832 { | 3986 { |
3833 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3987 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3834 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 3988 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
3835 TestObjectV8Internal::reflectedIdAttributeSetter(v8Value, info); | 3989 TestObjectV8Internal::reflectedIdAttributeSetter(v8Value, info); |
3836 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3990 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
(...skipping 10 matching lines...) Expand all Loading... |
3847 { | 4001 { |
3848 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4002 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
3849 TestObjectV8Internal::reflectedNameAttributeGetter(info); | 4003 TestObjectV8Internal::reflectedNameAttributeGetter(info); |
3850 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4004 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3851 } | 4005 } |
3852 | 4006 |
3853 static void reflectedNameAttributeSetter(v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) | 4007 static void reflectedNameAttributeSetter(v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) |
3854 { | 4008 { |
3855 v8::Local<v8::Object> holder = info.Holder(); | 4009 v8::Local<v8::Object> holder = info.Holder(); |
3856 TestObject* impl = V8TestObject::toImpl(holder); | 4010 TestObject* impl = V8TestObject::toImpl(holder); |
3857 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 4011 V8StringResource<> cppValue = v8Value; |
| 4012 if (!cppValue.prepare()) |
| 4013 return; |
3858 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4014 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
3859 impl->setAttribute(HTMLNames::nameAttr, cppValue); | 4015 impl->setAttribute(HTMLNames::nameAttr, cppValue); |
3860 } | 4016 } |
3861 | 4017 |
3862 static void reflectedNameAttributeSetterCallback(v8::Local<v8::String>, v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4018 static void reflectedNameAttributeSetterCallback(v8::Local<v8::String>, v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3863 { | 4019 { |
3864 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4020 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3865 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4021 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
3866 TestObjectV8Internal::reflectedNameAttributeSetter(v8Value, info); | 4022 TestObjectV8Internal::reflectedNameAttributeSetter(v8Value, info); |
3867 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4023 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
(...skipping 10 matching lines...) Expand all Loading... |
3878 { | 4034 { |
3879 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4035 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
3880 TestObjectV8Internal::reflectedClassAttributeGetter(info); | 4036 TestObjectV8Internal::reflectedClassAttributeGetter(info); |
3881 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4037 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3882 } | 4038 } |
3883 | 4039 |
3884 static void reflectedClassAttributeSetter(v8::Local<v8::Value> v8Value, const v8
::PropertyCallbackInfo<void>& info) | 4040 static void reflectedClassAttributeSetter(v8::Local<v8::Value> v8Value, const v8
::PropertyCallbackInfo<void>& info) |
3885 { | 4041 { |
3886 v8::Local<v8::Object> holder = info.Holder(); | 4042 v8::Local<v8::Object> holder = info.Holder(); |
3887 TestObject* impl = V8TestObject::toImpl(holder); | 4043 TestObject* impl = V8TestObject::toImpl(holder); |
3888 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 4044 V8StringResource<> cppValue = v8Value; |
| 4045 if (!cppValue.prepare()) |
| 4046 return; |
3889 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4047 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
3890 impl->setAttribute(HTMLNames::classAttr, cppValue); | 4048 impl->setAttribute(HTMLNames::classAttr, cppValue); |
3891 } | 4049 } |
3892 | 4050 |
3893 static void reflectedClassAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4051 static void reflectedClassAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3894 { | 4052 { |
3895 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4053 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3896 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4054 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
3897 TestObjectV8Internal::reflectedClassAttributeSetter(v8Value, info); | 4055 TestObjectV8Internal::reflectedClassAttributeSetter(v8Value, info); |
3898 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4056 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
(...skipping 18 matching lines...) Expand all Loading... |
3917 { | 4075 { |
3918 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4076 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
3919 TestObjectV8Internal::limitedToOnlyOneAttributeAttributeGetter(info); | 4077 TestObjectV8Internal::limitedToOnlyOneAttributeAttributeGetter(info); |
3920 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4078 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3921 } | 4079 } |
3922 | 4080 |
3923 static void limitedToOnlyOneAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::PropertyCallbackInfo<void>& info) | 4081 static void limitedToOnlyOneAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::PropertyCallbackInfo<void>& info) |
3924 { | 4082 { |
3925 v8::Local<v8::Object> holder = info.Holder(); | 4083 v8::Local<v8::Object> holder = info.Holder(); |
3926 TestObject* impl = V8TestObject::toImpl(holder); | 4084 TestObject* impl = V8TestObject::toImpl(holder); |
3927 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 4085 V8StringResource<> cppValue = v8Value; |
| 4086 if (!cppValue.prepare()) |
| 4087 return; |
3928 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4088 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
3929 impl->setAttribute(HTMLNames::limitedtoonlyoneattributeAttr, cppValue); | 4089 impl->setAttribute(HTMLNames::limitedtoonlyoneattributeAttr, cppValue); |
3930 } | 4090 } |
3931 | 4091 |
3932 static void limitedToOnlyOneAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4092 static void limitedToOnlyOneAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3933 { | 4093 { |
3934 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4094 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3935 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4095 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
3936 TestObjectV8Internal::limitedToOnlyOneAttributeAttributeSetter(v8Value, info
); | 4096 TestObjectV8Internal::limitedToOnlyOneAttributeAttributeSetter(v8Value, info
); |
3937 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4097 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
(...skipping 22 matching lines...) Expand all Loading... |
3960 { | 4120 { |
3961 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4121 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
3962 TestObjectV8Internal::limitedToOnlyAttributeAttributeGetter(info); | 4122 TestObjectV8Internal::limitedToOnlyAttributeAttributeGetter(info); |
3963 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4123 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3964 } | 4124 } |
3965 | 4125 |
3966 static void limitedToOnlyAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) | 4126 static void limitedToOnlyAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) |
3967 { | 4127 { |
3968 v8::Local<v8::Object> holder = info.Holder(); | 4128 v8::Local<v8::Object> holder = info.Holder(); |
3969 TestObject* impl = V8TestObject::toImpl(holder); | 4129 TestObject* impl = V8TestObject::toImpl(holder); |
3970 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 4130 V8StringResource<> cppValue = v8Value; |
| 4131 if (!cppValue.prepare()) |
| 4132 return; |
3971 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4133 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
3972 impl->setAttribute(HTMLNames::limitedtoonlyattributeAttr, cppValue); | 4134 impl->setAttribute(HTMLNames::limitedtoonlyattributeAttr, cppValue); |
3973 } | 4135 } |
3974 | 4136 |
3975 static void limitedToOnlyAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4137 static void limitedToOnlyAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3976 { | 4138 { |
3977 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4139 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3978 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4140 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
3979 TestObjectV8Internal::limitedToOnlyAttributeAttributeSetter(v8Value, info); | 4141 TestObjectV8Internal::limitedToOnlyAttributeAttributeSetter(v8Value, info); |
3980 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4142 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
(...skipping 20 matching lines...) Expand all Loading... |
4001 { | 4163 { |
4002 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4164 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4003 TestObjectV8Internal::limitedToOnlyOtherAttributeAttributeGetter(info); | 4165 TestObjectV8Internal::limitedToOnlyOtherAttributeAttributeGetter(info); |
4004 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4166 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4005 } | 4167 } |
4006 | 4168 |
4007 static void limitedToOnlyOtherAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) | 4169 static void limitedToOnlyOtherAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) |
4008 { | 4170 { |
4009 v8::Local<v8::Object> holder = info.Holder(); | 4171 v8::Local<v8::Object> holder = info.Holder(); |
4010 TestObject* impl = V8TestObject::toImpl(holder); | 4172 TestObject* impl = V8TestObject::toImpl(holder); |
4011 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 4173 V8StringResource<> cppValue = v8Value; |
| 4174 if (!cppValue.prepare()) |
| 4175 return; |
4012 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4176 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
4013 impl->setAttribute(HTMLNames::otherAttr, cppValue); | 4177 impl->setAttribute(HTMLNames::otherAttr, cppValue); |
4014 } | 4178 } |
4015 | 4179 |
4016 static void limitedToOnlyOtherAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4180 static void limitedToOnlyOtherAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4017 { | 4181 { |
4018 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4182 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4019 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4183 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
4020 TestObjectV8Internal::limitedToOnlyOtherAttributeAttributeSetter(v8Value, in
fo); | 4184 TestObjectV8Internal::limitedToOnlyOtherAttributeAttributeSetter(v8Value, in
fo); |
4021 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4185 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
(...skipping 20 matching lines...) Expand all Loading... |
4042 { | 4206 { |
4043 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4207 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4044 TestObjectV8Internal::limitedWithMissingDefaultAttributeAttributeGetter(info
); | 4208 TestObjectV8Internal::limitedWithMissingDefaultAttributeAttributeGetter(info
); |
4045 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4209 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4046 } | 4210 } |
4047 | 4211 |
4048 static void limitedWithMissingDefaultAttributeAttributeSetter(v8::Local<v8::Valu
e> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4212 static void limitedWithMissingDefaultAttributeAttributeSetter(v8::Local<v8::Valu
e> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4049 { | 4213 { |
4050 v8::Local<v8::Object> holder = info.Holder(); | 4214 v8::Local<v8::Object> holder = info.Holder(); |
4051 TestObject* impl = V8TestObject::toImpl(holder); | 4215 TestObject* impl = V8TestObject::toImpl(holder); |
4052 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 4216 V8StringResource<> cppValue = v8Value; |
| 4217 if (!cppValue.prepare()) |
| 4218 return; |
4053 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4219 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
4054 impl->setAttribute(HTMLNames::limitedwithmissingdefaultattributeAttr, cppVal
ue); | 4220 impl->setAttribute(HTMLNames::limitedwithmissingdefaultattributeAttr, cppVal
ue); |
4055 } | 4221 } |
4056 | 4222 |
4057 static void limitedWithMissingDefaultAttributeAttributeSetterCallback(v8::Local<
v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>&
info) | 4223 static void limitedWithMissingDefaultAttributeAttributeSetterCallback(v8::Local<
v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>&
info) |
4058 { | 4224 { |
4059 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4225 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4060 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4226 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
4061 TestObjectV8Internal::limitedWithMissingDefaultAttributeAttributeSetter(v8Va
lue, info); | 4227 TestObjectV8Internal::limitedWithMissingDefaultAttributeAttributeSetter(v8Va
lue, info); |
4062 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4228 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
(...skipping 22 matching lines...) Expand all Loading... |
4085 { | 4251 { |
4086 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4252 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4087 TestObjectV8Internal::limitedWithInvalidMissingDefaultAttributeAttributeGett
er(info); | 4253 TestObjectV8Internal::limitedWithInvalidMissingDefaultAttributeAttributeGett
er(info); |
4088 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4254 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4089 } | 4255 } |
4090 | 4256 |
4091 static void limitedWithInvalidMissingDefaultAttributeAttributeSetter(v8::Local<v
8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4257 static void limitedWithInvalidMissingDefaultAttributeAttributeSetter(v8::Local<v
8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4092 { | 4258 { |
4093 v8::Local<v8::Object> holder = info.Holder(); | 4259 v8::Local<v8::Object> holder = info.Holder(); |
4094 TestObject* impl = V8TestObject::toImpl(holder); | 4260 TestObject* impl = V8TestObject::toImpl(holder); |
4095 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 4261 V8StringResource<> cppValue = v8Value; |
| 4262 if (!cppValue.prepare()) |
| 4263 return; |
4096 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4264 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
4097 impl->setAttribute(HTMLNames::limitedwithinvalidmissingdefaultattributeAttr,
cppValue); | 4265 impl->setAttribute(HTMLNames::limitedwithinvalidmissingdefaultattributeAttr,
cppValue); |
4098 } | 4266 } |
4099 | 4267 |
4100 static void limitedWithInvalidMissingDefaultAttributeAttributeSetterCallback(v8:
:Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo
<void>& info) | 4268 static void limitedWithInvalidMissingDefaultAttributeAttributeSetterCallback(v8:
:Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo
<void>& info) |
4101 { | 4269 { |
4102 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4270 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4103 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4271 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
4104 TestObjectV8Internal::limitedWithInvalidMissingDefaultAttributeAttributeSett
er(v8Value, info); | 4272 TestObjectV8Internal::limitedWithInvalidMissingDefaultAttributeAttributeSett
er(v8Value, info); |
4105 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4273 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4189 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4357 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4190 } | 4358 } |
4191 | 4359 |
4192 static void locationReplaceableAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::PropertyCallbackInfo<void>& info) | 4360 static void locationReplaceableAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::PropertyCallbackInfo<void>& info) |
4193 { | 4361 { |
4194 v8::Local<v8::Object> holder = info.Holder(); | 4362 v8::Local<v8::Object> holder = info.Holder(); |
4195 TestObject* proxyImpl = V8TestObject::toImpl(holder); | 4363 TestObject* proxyImpl = V8TestObject::toImpl(holder); |
4196 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationReplaceab
le()); | 4364 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationReplaceab
le()); |
4197 if (!impl) | 4365 if (!impl) |
4198 return; | 4366 return; |
4199 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 4367 V8StringResource<> cppValue = v8Value; |
| 4368 if (!cppValue.prepare()) |
| 4369 return; |
4200 impl->setHref(cppValue); | 4370 impl->setHref(cppValue); |
4201 } | 4371 } |
4202 | 4372 |
4203 static void locationReplaceableAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4373 static void locationReplaceableAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4204 { | 4374 { |
4205 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4375 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4206 TestObjectV8Internal::locationReplaceableAttributeSetter(v8Value, info); | 4376 TestObjectV8Internal::locationReplaceableAttributeSetter(v8Value, info); |
4207 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4377 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4208 } | 4378 } |
4209 | 4379 |
4210 static void runtimeEnabledLongAttributeAttributeGetter(const v8::PropertyCallbac
kInfo<v8::Value>& info) | 4380 static void runtimeEnabledLongAttributeAttributeGetter(const v8::PropertyCallbac
kInfo<v8::Value>& info) |
4211 { | 4381 { |
4212 v8::Local<v8::Object> holder = info.Holder(); | 4382 v8::Local<v8::Object> holder = info.Holder(); |
4213 TestObject* impl = V8TestObject::toImpl(holder); | 4383 TestObject* impl = V8TestObject::toImpl(holder); |
4214 v8SetReturnValueInt(info, impl->runtimeEnabledLongAttribute()); | 4384 v8SetReturnValueInt(info, impl->runtimeEnabledLongAttribute()); |
4215 } | 4385 } |
4216 | 4386 |
4217 static void runtimeEnabledLongAttributeAttributeGetterCallback(v8::Local<v8::Str
ing>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4387 static void runtimeEnabledLongAttributeAttributeGetterCallback(v8::Local<v8::Str
ing>, const v8::PropertyCallbackInfo<v8::Value>& info) |
4218 { | 4388 { |
4219 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4389 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4220 TestObjectV8Internal::runtimeEnabledLongAttributeAttributeGetter(info); | 4390 TestObjectV8Internal::runtimeEnabledLongAttributeAttributeGetter(info); |
4221 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4391 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4222 } | 4392 } |
4223 | 4393 |
4224 static void runtimeEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) | 4394 static void runtimeEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) |
4225 { | 4395 { |
4226 v8::Local<v8::Object> holder = info.Holder(); | 4396 v8::Local<v8::Object> holder = info.Holder(); |
4227 ExceptionState exceptionState(ExceptionState::SetterContext, "runtimeEnabled
LongAttribute", "TestObject", holder, info.GetIsolate()); | 4397 ExceptionState exceptionState(ExceptionState::SetterContext, "runtimeEnabled
LongAttribute", "TestObject", holder, info.GetIsolate()); |
4228 TestObject* impl = V8TestObject::toImpl(holder); | 4398 TestObject* impl = V8TestObject::toImpl(holder); |
4229 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 4399 int cppValue = toInt32(v8Value, exceptionState); |
| 4400 if (exceptionState.throwIfNeeded()) |
| 4401 return; |
4230 impl->setRuntimeEnabledLongAttribute(cppValue); | 4402 impl->setRuntimeEnabledLongAttribute(cppValue); |
4231 } | 4403 } |
4232 | 4404 |
4233 static void runtimeEnabledLongAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4405 static void runtimeEnabledLongAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4234 { | 4406 { |
4235 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4407 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4236 TestObjectV8Internal::runtimeEnabledLongAttributeAttributeSetter(v8Value, in
fo); | 4408 TestObjectV8Internal::runtimeEnabledLongAttributeAttributeSetter(v8Value, in
fo); |
4237 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4409 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4238 } | 4410 } |
4239 | 4411 |
4240 static void perContextEnabledRuntimeEnabledLongAttributeAttributeGetter(const v8
::PropertyCallbackInfo<v8::Value>& info) | 4412 static void perContextEnabledRuntimeEnabledLongAttributeAttributeGetter(const v8
::PropertyCallbackInfo<v8::Value>& info) |
4241 { | 4413 { |
4242 v8::Local<v8::Object> holder = info.Holder(); | 4414 v8::Local<v8::Object> holder = info.Holder(); |
4243 TestObject* impl = V8TestObject::toImpl(holder); | 4415 TestObject* impl = V8TestObject::toImpl(holder); |
4244 v8SetReturnValueInt(info, impl->perContextEnabledRuntimeEnabledLongAttribute
()); | 4416 v8SetReturnValueInt(info, impl->perContextEnabledRuntimeEnabledLongAttribute
()); |
4245 } | 4417 } |
4246 | 4418 |
4247 static void perContextEnabledRuntimeEnabledLongAttributeAttributeGetterCallback(
v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4419 static void perContextEnabledRuntimeEnabledLongAttributeAttributeGetterCallback(
v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
4248 { | 4420 { |
4249 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4421 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4250 TestObjectV8Internal::perContextEnabledRuntimeEnabledLongAttributeAttributeG
etter(info); | 4422 TestObjectV8Internal::perContextEnabledRuntimeEnabledLongAttributeAttributeG
etter(info); |
4251 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4423 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4252 } | 4424 } |
4253 | 4425 |
4254 static void perContextEnabledRuntimeEnabledLongAttributeAttributeSetter(v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4426 static void perContextEnabledRuntimeEnabledLongAttributeAttributeSetter(v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4255 { | 4427 { |
4256 v8::Local<v8::Object> holder = info.Holder(); | 4428 v8::Local<v8::Object> holder = info.Holder(); |
4257 ExceptionState exceptionState(ExceptionState::SetterContext, "perContextEnab
ledRuntimeEnabledLongAttribute", "TestObject", holder, info.GetIsolate()); | 4429 ExceptionState exceptionState(ExceptionState::SetterContext, "perContextEnab
ledRuntimeEnabledLongAttribute", "TestObject", holder, info.GetIsolate()); |
4258 TestObject* impl = V8TestObject::toImpl(holder); | 4430 TestObject* impl = V8TestObject::toImpl(holder); |
4259 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 4431 int cppValue = toInt32(v8Value, exceptionState); |
| 4432 if (exceptionState.throwIfNeeded()) |
| 4433 return; |
4260 impl->setPerContextEnabledRuntimeEnabledLongAttribute(cppValue); | 4434 impl->setPerContextEnabledRuntimeEnabledLongAttribute(cppValue); |
4261 } | 4435 } |
4262 | 4436 |
4263 static void perContextEnabledRuntimeEnabledLongAttributeAttributeSetterCallback(
v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI
nfo<void>& info) | 4437 static void perContextEnabledRuntimeEnabledLongAttributeAttributeSetterCallback(
v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI
nfo<void>& info) |
4264 { | 4438 { |
4265 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4439 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4266 TestObjectV8Internal::perContextEnabledRuntimeEnabledLongAttributeAttributeS
etter(v8Value, info); | 4440 TestObjectV8Internal::perContextEnabledRuntimeEnabledLongAttributeAttributeS
etter(v8Value, info); |
4267 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4441 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4268 } | 4442 } |
4269 | 4443 |
(...skipping 14 matching lines...) Expand all Loading... |
4284 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4458 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4285 } | 4459 } |
4286 #endif // ENABLE(CONDITION) | 4460 #endif // ENABLE(CONDITION) |
4287 | 4461 |
4288 #if ENABLE(CONDITION) | 4462 #if ENABLE(CONDITION) |
4289 static void conditionalRuntimeEnabledLongAttributeAttributeSetter(v8::Local<v8::
Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4463 static void conditionalRuntimeEnabledLongAttributeAttributeSetter(v8::Local<v8::
Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4290 { | 4464 { |
4291 v8::Local<v8::Object> holder = info.Holder(); | 4465 v8::Local<v8::Object> holder = info.Holder(); |
4292 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalRun
timeEnabledLongAttribute", "TestObject", holder, info.GetIsolate()); | 4466 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalRun
timeEnabledLongAttribute", "TestObject", holder, info.GetIsolate()); |
4293 TestObject* impl = V8TestObject::toImpl(holder); | 4467 TestObject* impl = V8TestObject::toImpl(holder); |
4294 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 4468 int cppValue = toInt32(v8Value, exceptionState); |
| 4469 if (exceptionState.throwIfNeeded()) |
| 4470 return; |
4295 impl->setConditionalRuntimeEnabledLongAttribute(cppValue); | 4471 impl->setConditionalRuntimeEnabledLongAttribute(cppValue); |
4296 } | 4472 } |
4297 #endif // ENABLE(CONDITION) | 4473 #endif // ENABLE(CONDITION) |
4298 | 4474 |
4299 #if ENABLE(CONDITION) | 4475 #if ENABLE(CONDITION) |
4300 static void conditionalRuntimeEnabledLongAttributeAttributeSetterCallback(v8::Lo
cal<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<vo
id>& info) | 4476 static void conditionalRuntimeEnabledLongAttributeAttributeSetterCallback(v8::Lo
cal<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<vo
id>& info) |
4301 { | 4477 { |
4302 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4478 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4303 TestObjectV8Internal::conditionalRuntimeEnabledLongAttributeAttributeSetter(
v8Value, info); | 4479 TestObjectV8Internal::conditionalRuntimeEnabledLongAttributeAttributeSetter(
v8Value, info); |
4304 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4480 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
(...skipping 11 matching lines...) Expand all Loading... |
4316 { | 4492 { |
4317 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4493 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4318 TestObjectV8Internal::setterCallWithActiveWindowAndFirstWindowStringAttribut
eAttributeGetter(info); | 4494 TestObjectV8Internal::setterCallWithActiveWindowAndFirstWindowStringAttribut
eAttributeGetter(info); |
4319 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4495 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4320 } | 4496 } |
4321 | 4497 |
4322 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeSett
er(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4498 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeSett
er(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4323 { | 4499 { |
4324 v8::Local<v8::Object> holder = info.Holder(); | 4500 v8::Local<v8::Object> holder = info.Holder(); |
4325 TestObject* impl = V8TestObject::toImpl(holder); | 4501 TestObject* impl = V8TestObject::toImpl(holder); |
4326 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 4502 V8StringResource<> cppValue = v8Value; |
| 4503 if (!cppValue.prepare()) |
| 4504 return; |
4327 impl->setSetterCallWithActiveWindowAndFirstWindowStringAttribute(callingDOMW
indow(info.GetIsolate()), enteredDOMWindow(info.GetIsolate()), cppValue); | 4505 impl->setSetterCallWithActiveWindowAndFirstWindowStringAttribute(callingDOMW
indow(info.GetIsolate()), enteredDOMWindow(info.GetIsolate()), cppValue); |
4328 } | 4506 } |
4329 | 4507 |
4330 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeSett
erCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::Proper
tyCallbackInfo<void>& info) | 4508 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeSett
erCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::Proper
tyCallbackInfo<void>& info) |
4331 { | 4509 { |
4332 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4510 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4333 TestObjectV8Internal::setterCallWithActiveWindowAndFirstWindowStringAttribut
eAttributeSetter(v8Value, info); | 4511 TestObjectV8Internal::setterCallWithActiveWindowAndFirstWindowStringAttribut
eAttributeSetter(v8Value, info); |
4334 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4512 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4335 } | 4513 } |
4336 | 4514 |
4337 static void setterCallWithExecutionContextStringAttributeAttributeGetter(const v
8::PropertyCallbackInfo<v8::Value>& info) | 4515 static void setterCallWithExecutionContextStringAttributeAttributeGetter(const v
8::PropertyCallbackInfo<v8::Value>& info) |
4338 { | 4516 { |
4339 v8::Local<v8::Object> holder = info.Holder(); | 4517 v8::Local<v8::Object> holder = info.Holder(); |
4340 TestObject* impl = V8TestObject::toImpl(holder); | 4518 TestObject* impl = V8TestObject::toImpl(holder); |
4341 v8SetReturnValueString(info, impl->setterCallWithExecutionContextStringAttri
bute(), info.GetIsolate()); | 4519 v8SetReturnValueString(info, impl->setterCallWithExecutionContextStringAttri
bute(), info.GetIsolate()); |
4342 } | 4520 } |
4343 | 4521 |
4344 static void setterCallWithExecutionContextStringAttributeAttributeGetterCallback
(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4522 static void setterCallWithExecutionContextStringAttributeAttributeGetterCallback
(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
4345 { | 4523 { |
4346 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4524 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4347 TestObjectV8Internal::setterCallWithExecutionContextStringAttributeAttribute
Getter(info); | 4525 TestObjectV8Internal::setterCallWithExecutionContextStringAttributeAttribute
Getter(info); |
4348 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4526 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4349 } | 4527 } |
4350 | 4528 |
4351 static void setterCallWithExecutionContextStringAttributeAttributeSetter(v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4529 static void setterCallWithExecutionContextStringAttributeAttributeSetter(v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4352 { | 4530 { |
4353 v8::Local<v8::Object> holder = info.Holder(); | 4531 v8::Local<v8::Object> holder = info.Holder(); |
4354 TestObject* impl = V8TestObject::toImpl(holder); | 4532 TestObject* impl = V8TestObject::toImpl(holder); |
4355 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 4533 V8StringResource<> cppValue = v8Value; |
| 4534 if (!cppValue.prepare()) |
| 4535 return; |
4356 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate
()); | 4536 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate
()); |
4357 impl->setSetterCallWithExecutionContextStringAttribute(executionContext, cpp
Value); | 4537 impl->setSetterCallWithExecutionContextStringAttribute(executionContext, cpp
Value); |
4358 } | 4538 } |
4359 | 4539 |
4360 static void setterCallWithExecutionContextStringAttributeAttributeSetterCallback
(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallback
Info<void>& info) | 4540 static void setterCallWithExecutionContextStringAttributeAttributeSetterCallback
(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallback
Info<void>& info) |
4361 { | 4541 { |
4362 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4542 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4363 TestObjectV8Internal::setterCallWithExecutionContextStringAttributeAttribute
Setter(v8Value, info); | 4543 TestObjectV8Internal::setterCallWithExecutionContextStringAttributeAttribute
Setter(v8Value, info); |
4364 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4544 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4365 } | 4545 } |
4366 | 4546 |
4367 static void treatNullAsEmptyStringStringAttributeAttributeGetter(const v8::Prope
rtyCallbackInfo<v8::Value>& info) | 4547 static void treatNullAsEmptyStringStringAttributeAttributeGetter(const v8::Prope
rtyCallbackInfo<v8::Value>& info) |
4368 { | 4548 { |
4369 v8::Local<v8::Object> holder = info.Holder(); | 4549 v8::Local<v8::Object> holder = info.Holder(); |
4370 TestObject* impl = V8TestObject::toImpl(holder); | 4550 TestObject* impl = V8TestObject::toImpl(holder); |
4371 v8SetReturnValueString(info, impl->treatNullAsEmptyStringStringAttribute(),
info.GetIsolate()); | 4551 v8SetReturnValueString(info, impl->treatNullAsEmptyStringStringAttribute(),
info.GetIsolate()); |
4372 } | 4552 } |
4373 | 4553 |
4374 static void treatNullAsEmptyStringStringAttributeAttributeGetterCallback(v8::Loc
al<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4554 static void treatNullAsEmptyStringStringAttributeAttributeGetterCallback(v8::Loc
al<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
4375 { | 4555 { |
4376 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4556 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4377 TestObjectV8Internal::treatNullAsEmptyStringStringAttributeAttributeGetter(i
nfo); | 4557 TestObjectV8Internal::treatNullAsEmptyStringStringAttributeAttributeGetter(i
nfo); |
4378 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4558 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4379 } | 4559 } |
4380 | 4560 |
4381 static void treatNullAsEmptyStringStringAttributeAttributeSetter(v8::Local<v8::V
alue> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4561 static void treatNullAsEmptyStringStringAttributeAttributeSetter(v8::Local<v8::V
alue> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4382 { | 4562 { |
4383 v8::Local<v8::Object> holder = info.Holder(); | 4563 v8::Local<v8::Object> holder = info.Holder(); |
4384 TestObject* impl = V8TestObject::toImpl(holder); | 4564 TestObject* impl = V8TestObject::toImpl(holder); |
4385 TOSTRING_VOID(V8StringResource<TreatNullAsEmptyString>, cppValue, v8Value); | 4565 V8StringResource<TreatNullAsEmptyString> cppValue = v8Value; |
| 4566 if (!cppValue.prepare()) |
| 4567 return; |
4386 impl->setTreatNullAsEmptyStringStringAttribute(cppValue); | 4568 impl->setTreatNullAsEmptyStringStringAttribute(cppValue); |
4387 } | 4569 } |
4388 | 4570 |
4389 static void treatNullAsEmptyStringStringAttributeAttributeSetterCallback(v8::Loc
al<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<voi
d>& info) | 4571 static void treatNullAsEmptyStringStringAttributeAttributeSetterCallback(v8::Loc
al<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<voi
d>& info) |
4390 { | 4572 { |
4391 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4573 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4392 TestObjectV8Internal::treatNullAsEmptyStringStringAttributeAttributeSetter(v
8Value, info); | 4574 TestObjectV8Internal::treatNullAsEmptyStringStringAttributeAttributeSetter(v
8Value, info); |
4393 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4575 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4394 } | 4576 } |
4395 | 4577 |
4396 static void treatNullAsNullStringStringAttributeAttributeGetter(const v8::Proper
tyCallbackInfo<v8::Value>& info) | 4578 static void treatNullAsNullStringStringAttributeAttributeGetter(const v8::Proper
tyCallbackInfo<v8::Value>& info) |
4397 { | 4579 { |
4398 v8::Local<v8::Object> holder = info.Holder(); | 4580 v8::Local<v8::Object> holder = info.Holder(); |
4399 TestObject* impl = V8TestObject::toImpl(holder); | 4581 TestObject* impl = V8TestObject::toImpl(holder); |
4400 v8SetReturnValueString(info, impl->treatNullAsNullStringStringAttribute(), i
nfo.GetIsolate()); | 4582 v8SetReturnValueString(info, impl->treatNullAsNullStringStringAttribute(), i
nfo.GetIsolate()); |
4401 } | 4583 } |
4402 | 4584 |
4403 static void treatNullAsNullStringStringAttributeAttributeGetterCallback(v8::Loca
l<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4585 static void treatNullAsNullStringStringAttributeAttributeGetterCallback(v8::Loca
l<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
4404 { | 4586 { |
4405 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4587 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4406 TestObjectV8Internal::treatNullAsNullStringStringAttributeAttributeGetter(in
fo); | 4588 TestObjectV8Internal::treatNullAsNullStringStringAttributeAttributeGetter(in
fo); |
4407 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4589 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4408 } | 4590 } |
4409 | 4591 |
4410 static void treatNullAsNullStringStringAttributeAttributeSetter(v8::Local<v8::Va
lue> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4592 static void treatNullAsNullStringStringAttributeAttributeSetter(v8::Local<v8::Va
lue> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4411 { | 4593 { |
4412 v8::Local<v8::Object> holder = info.Holder(); | 4594 v8::Local<v8::Object> holder = info.Holder(); |
4413 TestObject* impl = V8TestObject::toImpl(holder); | 4595 TestObject* impl = V8TestObject::toImpl(holder); |
4414 TOSTRING_VOID(V8StringResource<TreatNullAsNullString>, cppValue, v8Value); | 4596 V8StringResource<TreatNullAsNullString> cppValue = v8Value; |
| 4597 if (!cppValue.prepare()) |
| 4598 return; |
4415 impl->setTreatNullAsNullStringStringAttribute(cppValue); | 4599 impl->setTreatNullAsNullStringStringAttribute(cppValue); |
4416 } | 4600 } |
4417 | 4601 |
4418 static void treatNullAsNullStringStringAttributeAttributeSetterCallback(v8::Loca
l<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void
>& info) | 4602 static void treatNullAsNullStringStringAttributeAttributeSetterCallback(v8::Loca
l<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void
>& info) |
4419 { | 4603 { |
4420 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4604 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4421 TestObjectV8Internal::treatNullAsNullStringStringAttributeAttributeSetter(v8
Value, info); | 4605 TestObjectV8Internal::treatNullAsNullStringStringAttributeAttributeSetter(v8
Value, info); |
4422 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4606 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4423 } | 4607 } |
4424 | 4608 |
4425 static void treatReturnedNullStringAsNullStringAttributeAttributeGetter(const v8
::PropertyCallbackInfo<v8::Value>& info) | 4609 static void treatReturnedNullStringAsNullStringAttributeAttributeGetter(const v8
::PropertyCallbackInfo<v8::Value>& info) |
4426 { | 4610 { |
4427 v8::Local<v8::Object> holder = info.Holder(); | 4611 v8::Local<v8::Object> holder = info.Holder(); |
4428 TestObject* impl = V8TestObject::toImpl(holder); | 4612 TestObject* impl = V8TestObject::toImpl(holder); |
4429 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullString
Attribute(), info.GetIsolate()); | 4613 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullString
Attribute(), info.GetIsolate()); |
4430 } | 4614 } |
4431 | 4615 |
4432 static void treatReturnedNullStringAsNullStringAttributeAttributeGetterCallback(
v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4616 static void treatReturnedNullStringAsNullStringAttributeAttributeGetterCallback(
v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
4433 { | 4617 { |
4434 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4618 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4435 TestObjectV8Internal::treatReturnedNullStringAsNullStringAttributeAttributeG
etter(info); | 4619 TestObjectV8Internal::treatReturnedNullStringAsNullStringAttributeAttributeG
etter(info); |
4436 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4620 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4437 } | 4621 } |
4438 | 4622 |
4439 static void treatReturnedNullStringAsNullStringAttributeAttributeSetter(v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4623 static void treatReturnedNullStringAsNullStringAttributeAttributeSetter(v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4440 { | 4624 { |
4441 v8::Local<v8::Object> holder = info.Holder(); | 4625 v8::Local<v8::Object> holder = info.Holder(); |
4442 TestObject* impl = V8TestObject::toImpl(holder); | 4626 TestObject* impl = V8TestObject::toImpl(holder); |
4443 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 4627 V8StringResource<> cppValue = v8Value; |
| 4628 if (!cppValue.prepare()) |
| 4629 return; |
4444 impl->setTreatReturnedNullStringAsNullStringAttribute(cppValue); | 4630 impl->setTreatReturnedNullStringAsNullStringAttribute(cppValue); |
4445 } | 4631 } |
4446 | 4632 |
4447 static void treatReturnedNullStringAsNullStringAttributeAttributeSetterCallback(
v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI
nfo<void>& info) | 4633 static void treatReturnedNullStringAsNullStringAttributeAttributeSetterCallback(
v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI
nfo<void>& info) |
4448 { | 4634 { |
4449 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4635 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4450 TestObjectV8Internal::treatReturnedNullStringAsNullStringAttributeAttributeS
etter(v8Value, info); | 4636 TestObjectV8Internal::treatReturnedNullStringAsNullStringAttributeAttributeS
etter(v8Value, info); |
4451 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4637 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4452 } | 4638 } |
4453 | 4639 |
4454 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeGetter(con
st v8::PropertyCallbackInfo<v8::Value>& info) | 4640 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeGetter(con
st v8::PropertyCallbackInfo<v8::Value>& info) |
4455 { | 4641 { |
4456 v8::Local<v8::Object> holder = info.Holder(); | 4642 v8::Local<v8::Object> holder = info.Holder(); |
4457 TestObject* impl = V8TestObject::toImpl(holder); | 4643 TestObject* impl = V8TestObject::toImpl(holder); |
4458 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef
inedStringAttribute(), info.GetIsolate()); | 4644 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef
inedStringAttribute(), info.GetIsolate()); |
4459 } | 4645 } |
4460 | 4646 |
4461 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeGetterCall
back(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4647 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeGetterCall
back(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
4462 { | 4648 { |
4463 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4649 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4464 TestObjectV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAttri
buteGetter(info); | 4650 TestObjectV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAttri
buteGetter(info); |
4465 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4651 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4466 } | 4652 } |
4467 | 4653 |
4468 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeSetter(v8:
:Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4654 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeSetter(v8:
:Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4469 { | 4655 { |
4470 v8::Local<v8::Object> holder = info.Holder(); | 4656 v8::Local<v8::Object> holder = info.Holder(); |
4471 TestObject* impl = V8TestObject::toImpl(holder); | 4657 TestObject* impl = V8TestObject::toImpl(holder); |
4472 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 4658 V8StringResource<> cppValue = v8Value; |
| 4659 if (!cppValue.prepare()) |
| 4660 return; |
4473 impl->setTreatReturnedNullStringAsUndefinedStringAttribute(cppValue); | 4661 impl->setTreatReturnedNullStringAsUndefinedStringAttribute(cppValue); |
4474 } | 4662 } |
4475 | 4663 |
4476 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeSetterCall
back(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCall
backInfo<void>& info) | 4664 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeSetterCall
back(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCall
backInfo<void>& info) |
4477 { | 4665 { |
4478 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4666 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4479 TestObjectV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAttri
buteSetter(v8Value, info); | 4667 TestObjectV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAttri
buteSetter(v8Value, info); |
4480 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4668 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4481 } | 4669 } |
4482 | 4670 |
(...skipping 18 matching lines...) Expand all Loading... |
4501 { | 4689 { |
4502 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4690 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4503 TestObjectV8Internal::cachedTreatReturnedNullStringAsUndefinedStringAttribut
eAttributeGetter(info); | 4691 TestObjectV8Internal::cachedTreatReturnedNullStringAsUndefinedStringAttribut
eAttributeGetter(info); |
4504 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4692 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4505 } | 4693 } |
4506 | 4694 |
4507 static void cachedTreatReturnedNullStringAsUndefinedStringAttributeAttributeSett
er(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4695 static void cachedTreatReturnedNullStringAsUndefinedStringAttributeAttributeSett
er(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4508 { | 4696 { |
4509 v8::Local<v8::Object> holder = info.Holder(); | 4697 v8::Local<v8::Object> holder = info.Holder(); |
4510 TestObject* impl = V8TestObject::toImpl(holder); | 4698 TestObject* impl = V8TestObject::toImpl(holder); |
4511 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 4699 V8StringResource<> cppValue = v8Value; |
| 4700 if (!cppValue.prepare()) |
| 4701 return; |
4512 impl->setCachedTreatReturnedNullStringAsUndefinedStringAttribute(cppValue); | 4702 impl->setCachedTreatReturnedNullStringAsUndefinedStringAttribute(cppValue); |
4513 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i
nfo.GetIsolate(), "cachedTreatReturnedNullStringAsUndefinedStringAttribute")); /
/ Invalidate the cached value. | 4703 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i
nfo.GetIsolate(), "cachedTreatReturnedNullStringAsUndefinedStringAttribute")); /
/ Invalidate the cached value. |
4514 } | 4704 } |
4515 | 4705 |
4516 static void cachedTreatReturnedNullStringAsUndefinedStringAttributeAttributeSett
erCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::Proper
tyCallbackInfo<void>& info) | 4706 static void cachedTreatReturnedNullStringAsUndefinedStringAttributeAttributeSett
erCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::Proper
tyCallbackInfo<void>& info) |
4517 { | 4707 { |
4518 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4708 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4519 TestObjectV8Internal::cachedTreatReturnedNullStringAsUndefinedStringAttribut
eAttributeSetter(v8Value, info); | 4709 TestObjectV8Internal::cachedTreatReturnedNullStringAsUndefinedStringAttribut
eAttributeSetter(v8Value, info); |
4520 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4710 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4521 } | 4711 } |
(...skipping 10 matching lines...) Expand all Loading... |
4532 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4722 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4533 TestObjectV8Internal::treatReturnedNullStringAsNullByteStringAttributeAttrib
uteGetter(info); | 4723 TestObjectV8Internal::treatReturnedNullStringAsNullByteStringAttributeAttrib
uteGetter(info); |
4534 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4724 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4535 } | 4725 } |
4536 | 4726 |
4537 static void treatReturnedNullStringAsNullByteStringAttributeAttributeSetter(v8::
Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4727 static void treatReturnedNullStringAsNullByteStringAttributeAttributeSetter(v8::
Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4538 { | 4728 { |
4539 v8::Local<v8::Object> holder = info.Holder(); | 4729 v8::Local<v8::Object> holder = info.Holder(); |
4540 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN
ullStringAsNullByteStringAttribute", "TestObject", holder, info.GetIsolate()); | 4730 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN
ullStringAsNullByteStringAttribute", "TestObject", holder, info.GetIsolate()); |
4541 TestObject* impl = V8TestObject::toImpl(holder); | 4731 TestObject* impl = V8TestObject::toImpl(holder); |
4542 TONATIVE_VOID_EXCEPTIONSTATE(V8StringResource<>, cppValue, toByteString(v8Va
lue, exceptionState), exceptionState); | 4732 V8StringResource<> cppValue = toByteString(v8Value, exceptionState); |
| 4733 if (exceptionState.throwIfNeeded()) |
| 4734 return; |
4543 impl->setTreatReturnedNullStringAsNullByteStringAttribute(cppValue); | 4735 impl->setTreatReturnedNullStringAsNullByteStringAttribute(cppValue); |
4544 } | 4736 } |
4545 | 4737 |
4546 static void treatReturnedNullStringAsNullByteStringAttributeAttributeSetterCallb
ack(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallb
ackInfo<void>& info) | 4738 static void treatReturnedNullStringAsNullByteStringAttributeAttributeSetterCallb
ack(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallb
ackInfo<void>& info) |
4547 { | 4739 { |
4548 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4740 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4549 TestObjectV8Internal::treatReturnedNullStringAsNullByteStringAttributeAttrib
uteSetter(v8Value, info); | 4741 TestObjectV8Internal::treatReturnedNullStringAsNullByteStringAttributeAttrib
uteSetter(v8Value, info); |
4550 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4742 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4551 } | 4743 } |
4552 | 4744 |
4553 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeGetter
(const v8::PropertyCallbackInfo<v8::Value>& info) | 4745 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeGetter
(const v8::PropertyCallbackInfo<v8::Value>& info) |
4554 { | 4746 { |
4555 v8::Local<v8::Object> holder = info.Holder(); | 4747 v8::Local<v8::Object> holder = info.Holder(); |
4556 TestObject* impl = V8TestObject::toImpl(holder); | 4748 TestObject* impl = V8TestObject::toImpl(holder); |
4557 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef
inedByteStringAttribute(), info.GetIsolate()); | 4749 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef
inedByteStringAttribute(), info.GetIsolate()); |
4558 } | 4750 } |
4559 | 4751 |
4560 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeGetter
Callback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4752 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeGetter
Callback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
4561 { | 4753 { |
4562 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4754 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4563 TestObjectV8Internal::treatReturnedNullStringAsUndefinedByteStringAttributeA
ttributeGetter(info); | 4755 TestObjectV8Internal::treatReturnedNullStringAsUndefinedByteStringAttributeA
ttributeGetter(info); |
4564 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4756 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4565 } | 4757 } |
4566 | 4758 |
4567 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeSetter
(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4759 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeSetter
(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4568 { | 4760 { |
4569 v8::Local<v8::Object> holder = info.Holder(); | 4761 v8::Local<v8::Object> holder = info.Holder(); |
4570 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN
ullStringAsUndefinedByteStringAttribute", "TestObject", holder, info.GetIsolate(
)); | 4762 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN
ullStringAsUndefinedByteStringAttribute", "TestObject", holder, info.GetIsolate(
)); |
4571 TestObject* impl = V8TestObject::toImpl(holder); | 4763 TestObject* impl = V8TestObject::toImpl(holder); |
4572 TONATIVE_VOID_EXCEPTIONSTATE(V8StringResource<>, cppValue, toByteString(v8Va
lue, exceptionState), exceptionState); | 4764 V8StringResource<> cppValue = toByteString(v8Value, exceptionState); |
| 4765 if (exceptionState.throwIfNeeded()) |
| 4766 return; |
4573 impl->setTreatReturnedNullStringAsUndefinedByteStringAttribute(cppValue); | 4767 impl->setTreatReturnedNullStringAsUndefinedByteStringAttribute(cppValue); |
4574 } | 4768 } |
4575 | 4769 |
4576 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeSetter
Callback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::Property
CallbackInfo<void>& info) | 4770 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeSetter
Callback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::Property
CallbackInfo<void>& info) |
4577 { | 4771 { |
4578 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4772 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4579 TestObjectV8Internal::treatReturnedNullStringAsUndefinedByteStringAttributeA
ttributeSetter(v8Value, info); | 4773 TestObjectV8Internal::treatReturnedNullStringAsUndefinedByteStringAttributeA
ttributeSetter(v8Value, info); |
4580 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4774 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4581 } | 4775 } |
4582 | 4776 |
4583 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeGetter(const
v8::PropertyCallbackInfo<v8::Value>& info) | 4777 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeGetter(const
v8::PropertyCallbackInfo<v8::Value>& info) |
4584 { | 4778 { |
4585 v8::Local<v8::Object> holder = info.Holder(); | 4779 v8::Local<v8::Object> holder = info.Holder(); |
4586 TestObject* impl = V8TestObject::toImpl(holder); | 4780 TestObject* impl = V8TestObject::toImpl(holder); |
4587 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullUSVStr
ingAttribute(), info.GetIsolate()); | 4781 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullUSVStr
ingAttribute(), info.GetIsolate()); |
4588 } | 4782 } |
4589 | 4783 |
4590 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeGetterCallba
ck(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4784 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeGetterCallba
ck(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
4591 { | 4785 { |
4592 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4786 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4593 TestObjectV8Internal::treatReturnedNullStringAsNullUSVStringAttributeAttribu
teGetter(info); | 4787 TestObjectV8Internal::treatReturnedNullStringAsNullUSVStringAttributeAttribu
teGetter(info); |
4594 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4788 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4595 } | 4789 } |
4596 | 4790 |
4597 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeSetter(v8::L
ocal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4791 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeSetter(v8::L
ocal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4598 { | 4792 { |
4599 v8::Local<v8::Object> holder = info.Holder(); | 4793 v8::Local<v8::Object> holder = info.Holder(); |
4600 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN
ullStringAsNullUSVStringAttribute", "TestObject", holder, info.GetIsolate()); | 4794 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN
ullStringAsNullUSVStringAttribute", "TestObject", holder, info.GetIsolate()); |
4601 TestObject* impl = V8TestObject::toImpl(holder); | 4795 TestObject* impl = V8TestObject::toImpl(holder); |
4602 TONATIVE_VOID_EXCEPTIONSTATE(V8StringResource<>, cppValue, toUSVString(v8Val
ue, exceptionState), exceptionState); | 4796 V8StringResource<> cppValue = toUSVString(v8Value, exceptionState); |
| 4797 if (exceptionState.throwIfNeeded()) |
| 4798 return; |
4603 impl->setTreatReturnedNullStringAsNullUSVStringAttribute(cppValue); | 4799 impl->setTreatReturnedNullStringAsNullUSVStringAttribute(cppValue); |
4604 } | 4800 } |
4605 | 4801 |
4606 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeSetterCallba
ck(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallba
ckInfo<void>& info) | 4802 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeSetterCallba
ck(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallba
ckInfo<void>& info) |
4607 { | 4803 { |
4608 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4804 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4609 TestObjectV8Internal::treatReturnedNullStringAsNullUSVStringAttributeAttribu
teSetter(v8Value, info); | 4805 TestObjectV8Internal::treatReturnedNullStringAsNullUSVStringAttributeAttribu
teSetter(v8Value, info); |
4610 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4806 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4611 } | 4807 } |
4612 | 4808 |
4613 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeGetter(
const v8::PropertyCallbackInfo<v8::Value>& info) | 4809 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeGetter(
const v8::PropertyCallbackInfo<v8::Value>& info) |
4614 { | 4810 { |
4615 v8::Local<v8::Object> holder = info.Holder(); | 4811 v8::Local<v8::Object> holder = info.Holder(); |
4616 TestObject* impl = V8TestObject::toImpl(holder); | 4812 TestObject* impl = V8TestObject::toImpl(holder); |
4617 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef
inedUSVStringAttribute(), info.GetIsolate()); | 4813 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef
inedUSVStringAttribute(), info.GetIsolate()); |
4618 } | 4814 } |
4619 | 4815 |
4620 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeGetterC
allback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4816 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeGetterC
allback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
4621 { | 4817 { |
4622 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4818 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4623 TestObjectV8Internal::treatReturnedNullStringAsUndefinedUSVStringAttributeAt
tributeGetter(info); | 4819 TestObjectV8Internal::treatReturnedNullStringAsUndefinedUSVStringAttributeAt
tributeGetter(info); |
4624 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4820 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4625 } | 4821 } |
4626 | 4822 |
4627 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeSetter(
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4823 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeSetter(
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4628 { | 4824 { |
4629 v8::Local<v8::Object> holder = info.Holder(); | 4825 v8::Local<v8::Object> holder = info.Holder(); |
4630 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN
ullStringAsUndefinedUSVStringAttribute", "TestObject", holder, info.GetIsolate()
); | 4826 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN
ullStringAsUndefinedUSVStringAttribute", "TestObject", holder, info.GetIsolate()
); |
4631 TestObject* impl = V8TestObject::toImpl(holder); | 4827 TestObject* impl = V8TestObject::toImpl(holder); |
4632 TONATIVE_VOID_EXCEPTIONSTATE(V8StringResource<>, cppValue, toUSVString(v8Val
ue, exceptionState), exceptionState); | 4828 V8StringResource<> cppValue = toUSVString(v8Value, exceptionState); |
| 4829 if (exceptionState.throwIfNeeded()) |
| 4830 return; |
4633 impl->setTreatReturnedNullStringAsUndefinedUSVStringAttribute(cppValue); | 4831 impl->setTreatReturnedNullStringAsUndefinedUSVStringAttribute(cppValue); |
4634 } | 4832 } |
4635 | 4833 |
4636 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeSetterC
allback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyC
allbackInfo<void>& info) | 4834 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeSetterC
allback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyC
allbackInfo<void>& info) |
4637 { | 4835 { |
4638 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4836 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4639 TestObjectV8Internal::treatReturnedNullStringAsUndefinedUSVStringAttributeAt
tributeSetter(v8Value, info); | 4837 TestObjectV8Internal::treatReturnedNullStringAsUndefinedUSVStringAttributeAt
tributeSetter(v8Value, info); |
4640 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4838 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4641 } | 4839 } |
4642 | 4840 |
4643 static void typeCheckingInterfaceFloatAttributeAttributeGetter(const v8::Propert
yCallbackInfo<v8::Value>& info) | 4841 static void typeCheckingInterfaceFloatAttributeAttributeGetter(const v8::Propert
yCallbackInfo<v8::Value>& info) |
4644 { | 4842 { |
4645 v8::Local<v8::Object> holder = info.Holder(); | 4843 v8::Local<v8::Object> holder = info.Holder(); |
4646 TestObject* impl = V8TestObject::toImpl(holder); | 4844 TestObject* impl = V8TestObject::toImpl(holder); |
4647 v8SetReturnValue(info, impl->typeCheckingInterfaceFloatAttribute()); | 4845 v8SetReturnValue(info, impl->typeCheckingInterfaceFloatAttribute()); |
4648 } | 4846 } |
4649 | 4847 |
4650 static void typeCheckingInterfaceFloatAttributeAttributeGetterCallback(v8::Local
<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4848 static void typeCheckingInterfaceFloatAttributeAttributeGetterCallback(v8::Local
<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
4651 { | 4849 { |
4652 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4850 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4653 TestObjectV8Internal::typeCheckingInterfaceFloatAttributeAttributeGetter(inf
o); | 4851 TestObjectV8Internal::typeCheckingInterfaceFloatAttributeAttributeGetter(inf
o); |
4654 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4852 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4655 } | 4853 } |
4656 | 4854 |
4657 static void typeCheckingInterfaceFloatAttributeAttributeSetter(v8::Local<v8::Val
ue> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4855 static void typeCheckingInterfaceFloatAttributeAttributeSetter(v8::Local<v8::Val
ue> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4658 { | 4856 { |
4659 v8::Local<v8::Object> holder = info.Holder(); | 4857 v8::Local<v8::Object> holder = info.Holder(); |
4660 ExceptionState exceptionState(ExceptionState::SetterContext, "typeCheckingIn
terfaceFloatAttribute", "TestObject", holder, info.GetIsolate()); | 4858 ExceptionState exceptionState(ExceptionState::SetterContext, "typeCheckingIn
terfaceFloatAttribute", "TestObject", holder, info.GetIsolate()); |
4661 TestObject* impl = V8TestObject::toImpl(holder); | 4859 TestObject* impl = V8TestObject::toImpl(holder); |
4662 TONATIVE_VOID_EXCEPTIONSTATE(float, cppValue, toFloat(v8Value, exceptionStat
e), exceptionState); | 4860 float cppValue = toFloat(v8Value, exceptionState); |
| 4861 if (exceptionState.throwIfNeeded()) |
| 4862 return; |
4663 impl->setTypeCheckingInterfaceFloatAttribute(cppValue); | 4863 impl->setTypeCheckingInterfaceFloatAttribute(cppValue); |
4664 } | 4864 } |
4665 | 4865 |
4666 static void typeCheckingInterfaceFloatAttributeAttributeSetterCallback(v8::Local
<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>
& info) | 4866 static void typeCheckingInterfaceFloatAttributeAttributeSetterCallback(v8::Local
<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>
& info) |
4667 { | 4867 { |
4668 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4868 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4669 TestObjectV8Internal::typeCheckingInterfaceFloatAttributeAttributeSetter(v8V
alue, info); | 4869 TestObjectV8Internal::typeCheckingInterfaceFloatAttributeAttributeSetter(v8V
alue, info); |
4670 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4870 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4671 } | 4871 } |
4672 | 4872 |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4751 { | 4951 { |
4752 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4952 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4753 TestObjectV8Internal::urlStringAttributeAttributeGetter(info); | 4953 TestObjectV8Internal::urlStringAttributeAttributeGetter(info); |
4754 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4954 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4755 } | 4955 } |
4756 | 4956 |
4757 static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) | 4957 static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) |
4758 { | 4958 { |
4759 v8::Local<v8::Object> holder = info.Holder(); | 4959 v8::Local<v8::Object> holder = info.Holder(); |
4760 TestObject* impl = V8TestObject::toImpl(holder); | 4960 TestObject* impl = V8TestObject::toImpl(holder); |
4761 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 4961 V8StringResource<> cppValue = v8Value; |
| 4962 if (!cppValue.prepare()) |
| 4963 return; |
4762 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4964 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
4763 impl->setAttribute(HTMLNames::urlstringattributeAttr, cppValue); | 4965 impl->setAttribute(HTMLNames::urlstringattributeAttr, cppValue); |
4764 } | 4966 } |
4765 | 4967 |
4766 static void urlStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:
:Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4968 static void urlStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:
:Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4767 { | 4969 { |
4768 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4970 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4769 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4971 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
4770 TestObjectV8Internal::urlStringAttributeAttributeSetter(v8Value, info); | 4972 TestObjectV8Internal::urlStringAttributeAttributeSetter(v8Value, info); |
4771 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4973 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
(...skipping 10 matching lines...) Expand all Loading... |
4782 { | 4984 { |
4783 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4985 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4784 TestObjectV8Internal::urlStringAttributeAttributeGetter(info); | 4986 TestObjectV8Internal::urlStringAttributeAttributeGetter(info); |
4785 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4987 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4786 } | 4988 } |
4787 | 4989 |
4788 static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) | 4990 static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) |
4789 { | 4991 { |
4790 v8::Local<v8::Object> holder = info.Holder(); | 4992 v8::Local<v8::Object> holder = info.Holder(); |
4791 TestObject* impl = V8TestObject::toImpl(holder); | 4993 TestObject* impl = V8TestObject::toImpl(holder); |
4792 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 4994 V8StringResource<> cppValue = v8Value; |
| 4995 if (!cppValue.prepare()) |
| 4996 return; |
4793 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4997 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
4794 impl->setAttribute(HTMLNames::reflectUrlAttributeAttr, cppValue); | 4998 impl->setAttribute(HTMLNames::reflectUrlAttributeAttr, cppValue); |
4795 } | 4999 } |
4796 | 5000 |
4797 static void urlStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:
:Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 5001 static void urlStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:
:Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4798 { | 5002 { |
4799 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 5003 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4800 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 5004 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
4801 TestObjectV8Internal::urlStringAttributeAttributeSetter(v8Value, info); | 5005 TestObjectV8Internal::urlStringAttributeAttributeSetter(v8Value, info); |
4802 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5006 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
(...skipping 11 matching lines...) Expand all Loading... |
4814 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 5018 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4815 TestObjectV8Internal::unforgeableLongAttributeAttributeGetter(info); | 5019 TestObjectV8Internal::unforgeableLongAttributeAttributeGetter(info); |
4816 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5020 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4817 } | 5021 } |
4818 | 5022 |
4819 static void unforgeableLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value
, const v8::PropertyCallbackInfo<void>& info) | 5023 static void unforgeableLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value
, const v8::PropertyCallbackInfo<void>& info) |
4820 { | 5024 { |
4821 v8::Local<v8::Object> holder = info.Holder(); | 5025 v8::Local<v8::Object> holder = info.Holder(); |
4822 ExceptionState exceptionState(ExceptionState::SetterContext, "unforgeableLon
gAttribute", "TestObject", holder, info.GetIsolate()); | 5026 ExceptionState exceptionState(ExceptionState::SetterContext, "unforgeableLon
gAttribute", "TestObject", holder, info.GetIsolate()); |
4823 TestObject* impl = V8TestObject::toImpl(holder); | 5027 TestObject* impl = V8TestObject::toImpl(holder); |
4824 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 5028 int cppValue = toInt32(v8Value, exceptionState); |
| 5029 if (exceptionState.throwIfNeeded()) |
| 5030 return; |
4825 impl->setUnforgeableLongAttribute(cppValue); | 5031 impl->setUnforgeableLongAttribute(cppValue); |
4826 } | 5032 } |
4827 | 5033 |
4828 static void unforgeableLongAttributeAttributeSetterCallback(v8::Local<v8::String
>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 5034 static void unforgeableLongAttributeAttributeSetterCallback(v8::Local<v8::String
>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4829 { | 5035 { |
4830 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 5036 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4831 TestObjectV8Internal::unforgeableLongAttributeAttributeSetter(v8Value, info)
; | 5037 TestObjectV8Internal::unforgeableLongAttributeAttributeSetter(v8Value, info)
; |
4832 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5038 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4833 } | 5039 } |
4834 | 5040 |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5009 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 5215 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
5010 TestObjectV8Internal::shortAttributeAttributeGetter(info); | 5216 TestObjectV8Internal::shortAttributeAttributeGetter(info); |
5011 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5217 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5012 } | 5218 } |
5013 | 5219 |
5014 static void shortAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8
::PropertyCallbackInfo<void>& info) | 5220 static void shortAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8
::PropertyCallbackInfo<void>& info) |
5015 { | 5221 { |
5016 v8::Local<v8::Object> holder = info.Holder(); | 5222 v8::Local<v8::Object> holder = info.Holder(); |
5017 ExceptionState exceptionState(ExceptionState::SetterContext, "shortAttribute
", "TestObject", holder, info.GetIsolate()); | 5223 ExceptionState exceptionState(ExceptionState::SetterContext, "shortAttribute
", "TestObject", holder, info.GetIsolate()); |
5018 TestObject* impl = V8TestObject::toImpl(holder); | 5224 TestObject* impl = V8TestObject::toImpl(holder); |
5019 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt16(v8Value, exceptionState)
, exceptionState); | 5225 int cppValue = toInt16(v8Value, exceptionState); |
| 5226 if (exceptionState.throwIfNeeded()) |
| 5227 return; |
5020 V8TestObject::PrivateScript::shortAttributeAttributeSetter(toLocalFrame(toFr
ameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, cppValue); | 5228 V8TestObject::PrivateScript::shortAttributeAttributeSetter(toLocalFrame(toFr
ameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, cppValue); |
5021 } | 5229 } |
5022 | 5230 |
5023 static void shortAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 5231 static void shortAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
5024 { | 5232 { |
5025 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 5233 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
5026 TestObjectV8Internal::shortAttributeAttributeSetter(v8Value, info); | 5234 TestObjectV8Internal::shortAttributeAttributeSetter(v8Value, info); |
5027 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5235 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5028 } | 5236 } |
5029 | 5237 |
(...skipping 11 matching lines...) Expand all Loading... |
5041 { | 5249 { |
5042 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 5250 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
5043 TestObjectV8Internal::stringAttributeAttributeGetter(info); | 5251 TestObjectV8Internal::stringAttributeAttributeGetter(info); |
5044 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5252 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5045 } | 5253 } |
5046 | 5254 |
5047 static void stringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v
8::PropertyCallbackInfo<void>& info) | 5255 static void stringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v
8::PropertyCallbackInfo<void>& info) |
5048 { | 5256 { |
5049 v8::Local<v8::Object> holder = info.Holder(); | 5257 v8::Local<v8::Object> holder = info.Holder(); |
5050 TestObject* impl = V8TestObject::toImpl(holder); | 5258 TestObject* impl = V8TestObject::toImpl(holder); |
5051 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 5259 V8StringResource<> cppValue = v8Value; |
| 5260 if (!cppValue.prepare()) |
| 5261 return; |
5052 V8TestObject::PrivateScript::stringAttributeAttributeSetter(toLocalFrame(toF
rameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, cppValue); | 5262 V8TestObject::PrivateScript::stringAttributeAttributeSetter(toLocalFrame(toF
rameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, cppValue); |
5053 } | 5263 } |
5054 | 5264 |
5055 static void stringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 5265 static void stringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
5056 { | 5266 { |
5057 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 5267 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
5058 TestObjectV8Internal::stringAttributeAttributeSetter(v8Value, info); | 5268 TestObjectV8Internal::stringAttributeAttributeSetter(v8Value, info); |
5059 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5269 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5060 } | 5270 } |
5061 | 5271 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5102 { | 5312 { |
5103 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 5313 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
5104 TestObjectV8Internal::attributeImplementedInCPPForPrivateScriptOnlyAttribute
Getter(info); | 5314 TestObjectV8Internal::attributeImplementedInCPPForPrivateScriptOnlyAttribute
Getter(info); |
5105 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5315 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5106 } | 5316 } |
5107 | 5317 |
5108 static void attributeImplementedInCPPForPrivateScriptOnlyAttributeSetter(v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 5318 static void attributeImplementedInCPPForPrivateScriptOnlyAttributeSetter(v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
5109 { | 5319 { |
5110 v8::Local<v8::Object> holder = info.Holder(); | 5320 v8::Local<v8::Object> holder = info.Holder(); |
5111 TestObject* impl = V8TestObject::toImpl(holder); | 5321 TestObject* impl = V8TestObject::toImpl(holder); |
5112 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 5322 V8StringResource<> cppValue = v8Value; |
| 5323 if (!cppValue.prepare()) |
| 5324 return; |
5113 impl->setAttributeImplementedInCPPForPrivateScriptOnly(cppValue); | 5325 impl->setAttributeImplementedInCPPForPrivateScriptOnly(cppValue); |
5114 } | 5326 } |
5115 | 5327 |
5116 static void attributeImplementedInCPPForPrivateScriptOnlyAttributeSetterCallback
(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallback
Info<void>& info) | 5328 static void attributeImplementedInCPPForPrivateScriptOnlyAttributeSetterCallback
(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallback
Info<void>& info) |
5117 { | 5329 { |
5118 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 5330 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
5119 TestObjectV8Internal::attributeImplementedInCPPForPrivateScriptOnlyAttribute
Setter(v8Value, info); | 5331 TestObjectV8Internal::attributeImplementedInCPPForPrivateScriptOnlyAttribute
Setter(v8Value, info); |
5120 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5332 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5121 } | 5333 } |
5122 | 5334 |
(...skipping 11 matching lines...) Expand all Loading... |
5134 { | 5346 { |
5135 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 5347 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
5136 TestObjectV8Internal::enumForPrivateScriptAttributeGetter(info); | 5348 TestObjectV8Internal::enumForPrivateScriptAttributeGetter(info); |
5137 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5349 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5138 } | 5350 } |
5139 | 5351 |
5140 static void enumForPrivateScriptAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::PropertyCallbackInfo<void>& info) | 5352 static void enumForPrivateScriptAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::PropertyCallbackInfo<void>& info) |
5141 { | 5353 { |
5142 v8::Local<v8::Object> holder = info.Holder(); | 5354 v8::Local<v8::Object> holder = info.Holder(); |
5143 TestObject* impl = V8TestObject::toImpl(holder); | 5355 TestObject* impl = V8TestObject::toImpl(holder); |
5144 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 5356 V8StringResource<> cppValue = v8Value; |
| 5357 if (!cppValue.prepare()) |
| 5358 return; |
5145 String string = cppValue; | 5359 String string = cppValue; |
5146 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || st
ring == "EnumValue3")) | 5360 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || st
ring == "EnumValue3")) |
5147 return; | 5361 return; |
5148 V8TestObject::PrivateScript::enumForPrivateScriptAttributeSetter(toLocalFram
e(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, cppValue)
; | 5362 V8TestObject::PrivateScript::enumForPrivateScriptAttributeSetter(toLocalFram
e(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, cppValue)
; |
5149 } | 5363 } |
5150 | 5364 |
5151 static void enumForPrivateScriptAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 5365 static void enumForPrivateScriptAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
5152 { | 5366 { |
5153 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 5367 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
5154 TestObjectV8Internal::enumForPrivateScriptAttributeSetter(v8Value, info); | 5368 TestObjectV8Internal::enumForPrivateScriptAttributeSetter(v8Value, info); |
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5448 | 5662 |
5449 static void voidMethodStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 5663 static void voidMethodStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
5450 { | 5664 { |
5451 if (UNLIKELY(info.Length() < 1)) { | 5665 if (UNLIKELY(info.Length() < 1)) { |
5452 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "voidMethodStringArg", "TestObject", 1, info.Length()), info.Ge
tIsolate()); | 5666 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "voidMethodStringArg", "TestObject", 1, info.Length()), info.Ge
tIsolate()); |
5453 return; | 5667 return; |
5454 } | 5668 } |
5455 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 5669 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
5456 V8StringResource<> stringArg; | 5670 V8StringResource<> stringArg; |
5457 { | 5671 { |
5458 TOSTRING_VOID_INTERNAL(stringArg, info[0]); | 5672 stringArg = info[0]; |
| 5673 if (!stringArg.prepare()) |
| 5674 return; |
5459 } | 5675 } |
5460 impl->voidMethodStringArg(stringArg); | 5676 impl->voidMethodStringArg(stringArg); |
5461 } | 5677 } |
5462 | 5678 |
5463 static void voidMethodStringArgMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 5679 static void voidMethodStringArgMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
5464 { | 5680 { |
5465 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 5681 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
5466 TestObjectV8Internal::voidMethodStringArgMethod(info); | 5682 TestObjectV8Internal::voidMethodStringArgMethod(info); |
5467 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5683 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5468 } | 5684 } |
5469 | 5685 |
5470 static void voidMethodByteStringArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 5686 static void voidMethodByteStringArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
5471 { | 5687 { |
5472 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodB
yteStringArg", "TestObject", info.Holder(), info.GetIsolate()); | 5688 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodB
yteStringArg", "TestObject", info.Holder(), info.GetIsolate()); |
5473 if (UNLIKELY(info.Length() < 1)) { | 5689 if (UNLIKELY(info.Length() < 1)) { |
5474 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 5690 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
5475 exceptionState.throwIfNeeded(); | 5691 exceptionState.throwIfNeeded(); |
5476 return; | 5692 return; |
5477 } | 5693 } |
5478 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 5694 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
5479 V8StringResource<> stringArg; | 5695 V8StringResource<> stringArg; |
5480 { | 5696 { |
5481 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(stringArg, toByteString(info[0], e
xceptionState), exceptionState); | 5697 stringArg = toByteString(info[0], exceptionState); |
| 5698 if (exceptionState.throwIfNeeded()) |
| 5699 return; |
5482 } | 5700 } |
5483 impl->voidMethodByteStringArg(stringArg); | 5701 impl->voidMethodByteStringArg(stringArg); |
5484 } | 5702 } |
5485 | 5703 |
5486 static void voidMethodByteStringArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) | 5704 static void voidMethodByteStringArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) |
5487 { | 5705 { |
5488 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 5706 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
5489 TestObjectV8Internal::voidMethodByteStringArgMethod(info); | 5707 TestObjectV8Internal::voidMethodByteStringArgMethod(info); |
5490 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5708 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5491 } | 5709 } |
5492 | 5710 |
5493 static void voidMethodUSVStringArgMethod(const v8::FunctionCallbackInfo<v8::Valu
e>& info) | 5711 static void voidMethodUSVStringArgMethod(const v8::FunctionCallbackInfo<v8::Valu
e>& info) |
5494 { | 5712 { |
5495 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
SVStringArg", "TestObject", info.Holder(), info.GetIsolate()); | 5713 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
SVStringArg", "TestObject", info.Holder(), info.GetIsolate()); |
5496 if (UNLIKELY(info.Length() < 1)) { | 5714 if (UNLIKELY(info.Length() < 1)) { |
5497 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 5715 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
5498 exceptionState.throwIfNeeded(); | 5716 exceptionState.throwIfNeeded(); |
5499 return; | 5717 return; |
5500 } | 5718 } |
5501 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 5719 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
5502 V8StringResource<> usvStringArg; | 5720 V8StringResource<> usvStringArg; |
5503 { | 5721 { |
5504 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(usvStringArg, toUSVString(info[0],
exceptionState), exceptionState); | 5722 usvStringArg = toUSVString(info[0], exceptionState); |
| 5723 if (exceptionState.throwIfNeeded()) |
| 5724 return; |
5505 } | 5725 } |
5506 impl->voidMethodUSVStringArg(usvStringArg); | 5726 impl->voidMethodUSVStringArg(usvStringArg); |
5507 } | 5727 } |
5508 | 5728 |
5509 static void voidMethodUSVStringArgMethodCallback(const v8::FunctionCallbackInfo<
v8::Value>& info) | 5729 static void voidMethodUSVStringArgMethodCallback(const v8::FunctionCallbackInfo<
v8::Value>& info) |
5510 { | 5730 { |
5511 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 5731 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
5512 TestObjectV8Internal::voidMethodUSVStringArgMethod(info); | 5732 TestObjectV8Internal::voidMethodUSVStringArgMethod(info); |
5513 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5733 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5514 } | 5734 } |
5515 | 5735 |
5516 static void voidMethodDOMTimeStampArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 5736 static void voidMethodDOMTimeStampArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
5517 { | 5737 { |
5518 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
OMTimeStampArg", "TestObject", info.Holder(), info.GetIsolate()); | 5738 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
OMTimeStampArg", "TestObject", info.Holder(), info.GetIsolate()); |
5519 if (UNLIKELY(info.Length() < 1)) { | 5739 if (UNLIKELY(info.Length() < 1)) { |
5520 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 5740 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
5521 exceptionState.throwIfNeeded(); | 5741 exceptionState.throwIfNeeded(); |
5522 return; | 5742 return; |
5523 } | 5743 } |
5524 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 5744 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
5525 unsigned long long domTimeStampArg; | 5745 unsigned long long domTimeStampArg; |
5526 { | 5746 { |
5527 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(domTimeStampArg, toUInt64(info[0],
exceptionState), exceptionState); | 5747 domTimeStampArg = toUInt64(info[0], exceptionState); |
| 5748 if (exceptionState.throwIfNeeded()) |
| 5749 return; |
5528 } | 5750 } |
5529 impl->voidMethodDOMTimeStampArg(domTimeStampArg); | 5751 impl->voidMethodDOMTimeStampArg(domTimeStampArg); |
5530 } | 5752 } |
5531 | 5753 |
5532 static void voidMethodDOMTimeStampArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 5754 static void voidMethodDOMTimeStampArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
5533 { | 5755 { |
5534 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 5756 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
5535 TestObjectV8Internal::voidMethodDOMTimeStampArgMethod(info); | 5757 TestObjectV8Internal::voidMethodDOMTimeStampArgMethod(info); |
5536 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5758 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5537 } | 5759 } |
(...skipping 23 matching lines...) Expand all Loading... |
5561 { | 5783 { |
5562 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodB
yteArg", "TestObject", info.Holder(), info.GetIsolate()); | 5784 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodB
yteArg", "TestObject", info.Holder(), info.GetIsolate()); |
5563 if (UNLIKELY(info.Length() < 1)) { | 5785 if (UNLIKELY(info.Length() < 1)) { |
5564 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 5786 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
5565 exceptionState.throwIfNeeded(); | 5787 exceptionState.throwIfNeeded(); |
5566 return; | 5788 return; |
5567 } | 5789 } |
5568 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 5790 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
5569 int byteArg; | 5791 int byteArg; |
5570 { | 5792 { |
5571 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(byteArg, toInt8(info[0], exception
State), exceptionState); | 5793 byteArg = toInt8(info[0], exceptionState); |
| 5794 if (exceptionState.throwIfNeeded()) |
| 5795 return; |
5572 } | 5796 } |
5573 impl->voidMethodByteArg(byteArg); | 5797 impl->voidMethodByteArg(byteArg); |
5574 } | 5798 } |
5575 | 5799 |
5576 static void voidMethodByteArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 5800 static void voidMethodByteArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
5577 { | 5801 { |
5578 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 5802 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
5579 TestObjectV8Internal::voidMethodByteArgMethod(info); | 5803 TestObjectV8Internal::voidMethodByteArgMethod(info); |
5580 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5804 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5581 } | 5805 } |
5582 | 5806 |
5583 static void voidMethodDoubleArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 5807 static void voidMethodDoubleArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
5584 { | 5808 { |
5585 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
oubleArg", "TestObject", info.Holder(), info.GetIsolate()); | 5809 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
oubleArg", "TestObject", info.Holder(), info.GetIsolate()); |
5586 if (UNLIKELY(info.Length() < 1)) { | 5810 if (UNLIKELY(info.Length() < 1)) { |
5587 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 5811 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
5588 exceptionState.throwIfNeeded(); | 5812 exceptionState.throwIfNeeded(); |
5589 return; | 5813 return; |
5590 } | 5814 } |
5591 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 5815 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
5592 double doubleArg; | 5816 double doubleArg; |
5593 { | 5817 { |
5594 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(doubleArg, toDouble(info[0], excep
tionState), exceptionState); | 5818 doubleArg = toDouble(info[0], exceptionState); |
| 5819 if (exceptionState.throwIfNeeded()) |
| 5820 return; |
5595 } | 5821 } |
5596 impl->voidMethodDoubleArg(doubleArg); | 5822 impl->voidMethodDoubleArg(doubleArg); |
5597 } | 5823 } |
5598 | 5824 |
5599 static void voidMethodDoubleArgMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 5825 static void voidMethodDoubleArgMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
5600 { | 5826 { |
5601 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 5827 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
5602 TestObjectV8Internal::voidMethodDoubleArgMethod(info); | 5828 TestObjectV8Internal::voidMethodDoubleArgMethod(info); |
5603 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5829 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5604 } | 5830 } |
5605 | 5831 |
5606 static void voidMethodFloatArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 5832 static void voidMethodFloatArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
5607 { | 5833 { |
5608 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodF
loatArg", "TestObject", info.Holder(), info.GetIsolate()); | 5834 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodF
loatArg", "TestObject", info.Holder(), info.GetIsolate()); |
5609 if (UNLIKELY(info.Length() < 1)) { | 5835 if (UNLIKELY(info.Length() < 1)) { |
5610 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 5836 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
5611 exceptionState.throwIfNeeded(); | 5837 exceptionState.throwIfNeeded(); |
5612 return; | 5838 return; |
5613 } | 5839 } |
5614 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 5840 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
5615 float floatArg; | 5841 float floatArg; |
5616 { | 5842 { |
5617 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(floatArg, toFloat(info[0], excepti
onState), exceptionState); | 5843 floatArg = toFloat(info[0], exceptionState); |
| 5844 if (exceptionState.throwIfNeeded()) |
| 5845 return; |
5618 } | 5846 } |
5619 impl->voidMethodFloatArg(floatArg); | 5847 impl->voidMethodFloatArg(floatArg); |
5620 } | 5848 } |
5621 | 5849 |
5622 static void voidMethodFloatArgMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) | 5850 static void voidMethodFloatArgMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) |
5623 { | 5851 { |
5624 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 5852 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
5625 TestObjectV8Internal::voidMethodFloatArgMethod(info); | 5853 TestObjectV8Internal::voidMethodFloatArgMethod(info); |
5626 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5854 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5627 } | 5855 } |
5628 | 5856 |
5629 static void voidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 5857 static void voidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
5630 { | 5858 { |
5631 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArg", "TestObject", info.Holder(), info.GetIsolate()); | 5859 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArg", "TestObject", info.Holder(), info.GetIsolate()); |
5632 if (UNLIKELY(info.Length() < 1)) { | 5860 if (UNLIKELY(info.Length() < 1)) { |
5633 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 5861 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
5634 exceptionState.throwIfNeeded(); | 5862 exceptionState.throwIfNeeded(); |
5635 return; | 5863 return; |
5636 } | 5864 } |
5637 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 5865 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
5638 int longArg; | 5866 int longArg; |
5639 { | 5867 { |
5640 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); | 5868 longArg = toInt32(info[0], exceptionState); |
| 5869 if (exceptionState.throwIfNeeded()) |
| 5870 return; |
5641 } | 5871 } |
5642 impl->voidMethodLongArg(longArg); | 5872 impl->voidMethodLongArg(longArg); |
5643 } | 5873 } |
5644 | 5874 |
5645 static void voidMethodLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 5875 static void voidMethodLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
5646 { | 5876 { |
5647 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 5877 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
5648 TestObjectV8Internal::voidMethodLongArgMethod(info); | 5878 TestObjectV8Internal::voidMethodLongArgMethod(info); |
5649 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5879 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5650 } | 5880 } |
5651 | 5881 |
5652 static void voidMethodLongLongArgMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) | 5882 static void voidMethodLongLongArgMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) |
5653 { | 5883 { |
5654 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 5884 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
5655 if (UNLIKELY(info.Length() < 1)) { | 5885 if (UNLIKELY(info.Length() < 1)) { |
5656 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 5886 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
5657 exceptionState.throwIfNeeded(); | 5887 exceptionState.throwIfNeeded(); |
5658 return; | 5888 return; |
5659 } | 5889 } |
5660 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 5890 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
5661 long long longLongArg; | 5891 long long longLongArg; |
5662 { | 5892 { |
5663 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longLongArg, toInt64(info[0], exce
ptionState), exceptionState); | 5893 longLongArg = toInt64(info[0], exceptionState); |
| 5894 if (exceptionState.throwIfNeeded()) |
| 5895 return; |
5664 } | 5896 } |
5665 impl->voidMethodLongLongArg(longLongArg); | 5897 impl->voidMethodLongLongArg(longLongArg); |
5666 } | 5898 } |
5667 | 5899 |
5668 static void voidMethodLongLongArgMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) | 5900 static void voidMethodLongLongArgMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) |
5669 { | 5901 { |
5670 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 5902 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
5671 TestObjectV8Internal::voidMethodLongLongArgMethod(info); | 5903 TestObjectV8Internal::voidMethodLongLongArgMethod(info); |
5672 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5904 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5673 } | 5905 } |
5674 | 5906 |
5675 static void voidMethodOctetArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 5907 static void voidMethodOctetArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
5676 { | 5908 { |
5677 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO
ctetArg", "TestObject", info.Holder(), info.GetIsolate()); | 5909 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO
ctetArg", "TestObject", info.Holder(), info.GetIsolate()); |
5678 if (UNLIKELY(info.Length() < 1)) { | 5910 if (UNLIKELY(info.Length() < 1)) { |
5679 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 5911 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
5680 exceptionState.throwIfNeeded(); | 5912 exceptionState.throwIfNeeded(); |
5681 return; | 5913 return; |
5682 } | 5914 } |
5683 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 5915 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
5684 unsigned octetArg; | 5916 unsigned octetArg; |
5685 { | 5917 { |
5686 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(octetArg, toUInt8(info[0], excepti
onState), exceptionState); | 5918 octetArg = toUInt8(info[0], exceptionState); |
| 5919 if (exceptionState.throwIfNeeded()) |
| 5920 return; |
5687 } | 5921 } |
5688 impl->voidMethodOctetArg(octetArg); | 5922 impl->voidMethodOctetArg(octetArg); |
5689 } | 5923 } |
5690 | 5924 |
5691 static void voidMethodOctetArgMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) | 5925 static void voidMethodOctetArgMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) |
5692 { | 5926 { |
5693 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 5927 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
5694 TestObjectV8Internal::voidMethodOctetArgMethod(info); | 5928 TestObjectV8Internal::voidMethodOctetArgMethod(info); |
5695 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5929 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5696 } | 5930 } |
5697 | 5931 |
5698 static void voidMethodShortArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 5932 static void voidMethodShortArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
5699 { | 5933 { |
5700 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
hortArg", "TestObject", info.Holder(), info.GetIsolate()); | 5934 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
hortArg", "TestObject", info.Holder(), info.GetIsolate()); |
5701 if (UNLIKELY(info.Length() < 1)) { | 5935 if (UNLIKELY(info.Length() < 1)) { |
5702 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 5936 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
5703 exceptionState.throwIfNeeded(); | 5937 exceptionState.throwIfNeeded(); |
5704 return; | 5938 return; |
5705 } | 5939 } |
5706 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 5940 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
5707 int shortArg; | 5941 int shortArg; |
5708 { | 5942 { |
5709 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(shortArg, toInt16(info[0], excepti
onState), exceptionState); | 5943 shortArg = toInt16(info[0], exceptionState); |
| 5944 if (exceptionState.throwIfNeeded()) |
| 5945 return; |
5710 } | 5946 } |
5711 impl->voidMethodShortArg(shortArg); | 5947 impl->voidMethodShortArg(shortArg); |
5712 } | 5948 } |
5713 | 5949 |
5714 static void voidMethodShortArgMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) | 5950 static void voidMethodShortArgMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) |
5715 { | 5951 { |
5716 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 5952 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
5717 TestObjectV8Internal::voidMethodShortArgMethod(info); | 5953 TestObjectV8Internal::voidMethodShortArgMethod(info); |
5718 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5954 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5719 } | 5955 } |
5720 | 5956 |
5721 static void voidMethodUnsignedLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 5957 static void voidMethodUnsignedLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
5722 { | 5958 { |
5723 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
nsignedLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 5959 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
nsignedLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
5724 if (UNLIKELY(info.Length() < 1)) { | 5960 if (UNLIKELY(info.Length() < 1)) { |
5725 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 5961 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
5726 exceptionState.throwIfNeeded(); | 5962 exceptionState.throwIfNeeded(); |
5727 return; | 5963 return; |
5728 } | 5964 } |
5729 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 5965 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
5730 unsigned unsignedLongArg; | 5966 unsigned unsignedLongArg; |
5731 { | 5967 { |
5732 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(unsignedLongArg, toUInt32(info[0],
exceptionState), exceptionState); | 5968 unsignedLongArg = toUInt32(info[0], exceptionState); |
| 5969 if (exceptionState.throwIfNeeded()) |
| 5970 return; |
5733 } | 5971 } |
5734 impl->voidMethodUnsignedLongArg(unsignedLongArg); | 5972 impl->voidMethodUnsignedLongArg(unsignedLongArg); |
5735 } | 5973 } |
5736 | 5974 |
5737 static void voidMethodUnsignedLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 5975 static void voidMethodUnsignedLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
5738 { | 5976 { |
5739 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 5977 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
5740 TestObjectV8Internal::voidMethodUnsignedLongArgMethod(info); | 5978 TestObjectV8Internal::voidMethodUnsignedLongArgMethod(info); |
5741 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5979 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5742 } | 5980 } |
5743 | 5981 |
5744 static void voidMethodUnsignedLongLongArgMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) | 5982 static void voidMethodUnsignedLongLongArgMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) |
5745 { | 5983 { |
5746 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
nsignedLongLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 5984 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
nsignedLongLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
5747 if (UNLIKELY(info.Length() < 1)) { | 5985 if (UNLIKELY(info.Length() < 1)) { |
5748 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 5986 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
5749 exceptionState.throwIfNeeded(); | 5987 exceptionState.throwIfNeeded(); |
5750 return; | 5988 return; |
5751 } | 5989 } |
5752 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 5990 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
5753 unsigned long long unsignedLongLongArg; | 5991 unsigned long long unsignedLongLongArg; |
5754 { | 5992 { |
5755 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(unsignedLongLongArg, toUInt64(info
[0], exceptionState), exceptionState); | 5993 unsignedLongLongArg = toUInt64(info[0], exceptionState); |
| 5994 if (exceptionState.throwIfNeeded()) |
| 5995 return; |
5756 } | 5996 } |
5757 impl->voidMethodUnsignedLongLongArg(unsignedLongLongArg); | 5997 impl->voidMethodUnsignedLongLongArg(unsignedLongLongArg); |
5758 } | 5998 } |
5759 | 5999 |
5760 static void voidMethodUnsignedLongLongArgMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) | 6000 static void voidMethodUnsignedLongLongArgMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
5761 { | 6001 { |
5762 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 6002 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
5763 TestObjectV8Internal::voidMethodUnsignedLongLongArgMethod(info); | 6003 TestObjectV8Internal::voidMethodUnsignedLongLongArgMethod(info); |
5764 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 6004 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5765 } | 6005 } |
5766 | 6006 |
5767 static void voidMethodUnsignedShortArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) | 6007 static void voidMethodUnsignedShortArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) |
5768 { | 6008 { |
5769 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
nsignedShortArg", "TestObject", info.Holder(), info.GetIsolate()); | 6009 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
nsignedShortArg", "TestObject", info.Holder(), info.GetIsolate()); |
5770 if (UNLIKELY(info.Length() < 1)) { | 6010 if (UNLIKELY(info.Length() < 1)) { |
5771 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 6011 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
5772 exceptionState.throwIfNeeded(); | 6012 exceptionState.throwIfNeeded(); |
5773 return; | 6013 return; |
5774 } | 6014 } |
5775 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 6015 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
5776 unsigned unsignedShortArg; | 6016 unsigned unsignedShortArg; |
5777 { | 6017 { |
5778 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(unsignedShortArg, toUInt16(info[0]
, exceptionState), exceptionState); | 6018 unsignedShortArg = toUInt16(info[0], exceptionState); |
| 6019 if (exceptionState.throwIfNeeded()) |
| 6020 return; |
5779 } | 6021 } |
5780 impl->voidMethodUnsignedShortArg(unsignedShortArg); | 6022 impl->voidMethodUnsignedShortArg(unsignedShortArg); |
5781 } | 6023 } |
5782 | 6024 |
5783 static void voidMethodUnsignedShortArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 6025 static void voidMethodUnsignedShortArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
5784 { | 6026 { |
5785 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 6027 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
5786 TestObjectV8Internal::voidMethodUnsignedShortArgMethod(info); | 6028 TestObjectV8Internal::voidMethodUnsignedShortArgMethod(info); |
5787 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 6029 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5788 } | 6030 } |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5826 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsolate()); | 6068 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsolate()); |
5827 if (UNLIKELY(info.Length() < 2)) { | 6069 if (UNLIKELY(info.Length() < 2)) { |
5828 setMinimumArityTypeError(exceptionState, 2, info.Length()); | 6070 setMinimumArityTypeError(exceptionState, 2, info.Length()); |
5829 exceptionState.throwIfNeeded(); | 6071 exceptionState.throwIfNeeded(); |
5830 return; | 6072 return; |
5831 } | 6073 } |
5832 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 6074 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
5833 int longArg; | 6075 int longArg; |
5834 TestInterfaceEmpty* testInterfaceEmptyArg; | 6076 TestInterfaceEmpty* testInterfaceEmptyArg; |
5835 { | 6077 { |
5836 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); | 6078 longArg = toInt32(info[0], exceptionState); |
| 6079 if (exceptionState.throwIfNeeded()) |
| 6080 return; |
5837 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.G
etIsolate(), info[1]); | 6081 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.G
etIsolate(), info[1]); |
5838 } | 6082 } |
5839 impl->voidMethodLongArgTestInterfaceEmptyArg(longArg, testInterfaceEmptyArg)
; | 6083 impl->voidMethodLongArgTestInterfaceEmptyArg(longArg, testInterfaceEmptyArg)
; |
5840 } | 6084 } |
5841 | 6085 |
5842 static void voidMethodLongArgTestInterfaceEmptyArgMethodCallback(const v8::Funct
ionCallbackInfo<v8::Value>& info) | 6086 static void voidMethodLongArgTestInterfaceEmptyArgMethodCallback(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
5843 { | 6087 { |
5844 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 6088 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
5845 TestObjectV8Internal::voidMethodLongArgTestInterfaceEmptyArgMethod(info); | 6089 TestObjectV8Internal::voidMethodLongArgTestInterfaceEmptyArgMethod(info); |
5846 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 6090 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6366 { | 6610 { |
6367 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodA
rrayLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 6611 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodA
rrayLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
6368 if (UNLIKELY(info.Length() < 1)) { | 6612 if (UNLIKELY(info.Length() < 1)) { |
6369 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 6613 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
6370 exceptionState.throwIfNeeded(); | 6614 exceptionState.throwIfNeeded(); |
6371 return; | 6615 return; |
6372 } | 6616 } |
6373 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 6617 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
6374 Vector<int> arrayLongArg; | 6618 Vector<int> arrayLongArg; |
6375 { | 6619 { |
6376 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arrayLongArg, toImplArray<int>(inf
o[0], 1, info.GetIsolate(), exceptionState), exceptionState); | 6620 arrayLongArg = toImplArray<int>(info[0], 1, info.GetIsolate(), exception
State); |
| 6621 if (exceptionState.throwIfNeeded()) |
| 6622 return; |
6377 } | 6623 } |
6378 impl->voidMethodArrayLongArg(arrayLongArg); | 6624 impl->voidMethodArrayLongArg(arrayLongArg); |
6379 } | 6625 } |
6380 | 6626 |
6381 static void voidMethodArrayLongArgMethodCallback(const v8::FunctionCallbackInfo<
v8::Value>& info) | 6627 static void voidMethodArrayLongArgMethodCallback(const v8::FunctionCallbackInfo<
v8::Value>& info) |
6382 { | 6628 { |
6383 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 6629 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
6384 TestObjectV8Internal::voidMethodArrayLongArgMethod(info); | 6630 TestObjectV8Internal::voidMethodArrayLongArgMethod(info); |
6385 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 6631 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
6386 } | 6632 } |
6387 | 6633 |
6388 static void voidMethodArrayStringArgMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 6634 static void voidMethodArrayStringArgMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
6389 { | 6635 { |
6390 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodA
rrayStringArg", "TestObject", info.Holder(), info.GetIsolate()); | 6636 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodA
rrayStringArg", "TestObject", info.Holder(), info.GetIsolate()); |
6391 if (UNLIKELY(info.Length() < 1)) { | 6637 if (UNLIKELY(info.Length() < 1)) { |
6392 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 6638 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
6393 exceptionState.throwIfNeeded(); | 6639 exceptionState.throwIfNeeded(); |
6394 return; | 6640 return; |
6395 } | 6641 } |
6396 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 6642 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
6397 Vector<String> arrayStringArg; | 6643 Vector<String> arrayStringArg; |
6398 { | 6644 { |
6399 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arrayStringArg, toImplArray<String
>(info[0], 1, info.GetIsolate(), exceptionState), exceptionState); | 6645 arrayStringArg = toImplArray<String>(info[0], 1, info.GetIsolate(), exce
ptionState); |
| 6646 if (exceptionState.throwIfNeeded()) |
| 6647 return; |
6400 } | 6648 } |
6401 impl->voidMethodArrayStringArg(arrayStringArg); | 6649 impl->voidMethodArrayStringArg(arrayStringArg); |
6402 } | 6650 } |
6403 | 6651 |
6404 static void voidMethodArrayStringArgMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) | 6652 static void voidMethodArrayStringArgMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) |
6405 { | 6653 { |
6406 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 6654 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
6407 TestObjectV8Internal::voidMethodArrayStringArgMethod(info); | 6655 TestObjectV8Internal::voidMethodArrayStringArgMethod(info); |
6408 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 6656 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
6409 } | 6657 } |
6410 | 6658 |
6411 static void voidMethodArrayTestInterfaceEmptyArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 6659 static void voidMethodArrayTestInterfaceEmptyArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
6412 { | 6660 { |
6413 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodA
rrayTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsolate()); | 6661 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodA
rrayTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsolate()); |
6414 if (UNLIKELY(info.Length() < 1)) { | 6662 if (UNLIKELY(info.Length() < 1)) { |
6415 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 6663 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
6416 exceptionState.throwIfNeeded(); | 6664 exceptionState.throwIfNeeded(); |
6417 return; | 6665 return; |
6418 } | 6666 } |
6419 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 6667 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
6420 Vector<RefPtr<TestInterfaceEmpty>> arrayTestInterfaceEmptyArg; | 6668 Vector<RefPtr<TestInterfaceEmpty>> arrayTestInterfaceEmptyArg; |
6421 { | 6669 { |
6422 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arrayTestInterfaceEmptyArg, (toRef
PtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1, info.GetIso
late(), exceptionState)), exceptionState); | 6670 arrayTestInterfaceEmptyArg = (toRefPtrNativeArray<TestInterfaceEmpty, V8
TestInterfaceEmpty>(info[0], 1, info.GetIsolate(), exceptionState)); |
| 6671 if (exceptionState.throwIfNeeded()) |
| 6672 return; |
6423 } | 6673 } |
6424 impl->voidMethodArrayTestInterfaceEmptyArg(arrayTestInterfaceEmptyArg); | 6674 impl->voidMethodArrayTestInterfaceEmptyArg(arrayTestInterfaceEmptyArg); |
6425 } | 6675 } |
6426 | 6676 |
6427 static void voidMethodArrayTestInterfaceEmptyArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) | 6677 static void voidMethodArrayTestInterfaceEmptyArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) |
6428 { | 6678 { |
6429 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 6679 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
6430 TestObjectV8Internal::voidMethodArrayTestInterfaceEmptyArgMethod(info); | 6680 TestObjectV8Internal::voidMethodArrayTestInterfaceEmptyArgMethod(info); |
6431 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 6681 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
6432 } | 6682 } |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6474 { | 6724 { |
6475 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
equenceLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 6725 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
equenceLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
6476 if (UNLIKELY(info.Length() < 1)) { | 6726 if (UNLIKELY(info.Length() < 1)) { |
6477 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 6727 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
6478 exceptionState.throwIfNeeded(); | 6728 exceptionState.throwIfNeeded(); |
6479 return; | 6729 return; |
6480 } | 6730 } |
6481 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 6731 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
6482 Vector<int> longSequenceArg; | 6732 Vector<int> longSequenceArg; |
6483 { | 6733 { |
6484 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longSequenceArg, toImplArray<int>(
info[0], 1, info.GetIsolate(), exceptionState), exceptionState); | 6734 longSequenceArg = toImplArray<int>(info[0], 1, info.GetIsolate(), except
ionState); |
| 6735 if (exceptionState.throwIfNeeded()) |
| 6736 return; |
6485 } | 6737 } |
6486 impl->voidMethodSequenceLongArg(longSequenceArg); | 6738 impl->voidMethodSequenceLongArg(longSequenceArg); |
6487 } | 6739 } |
6488 | 6740 |
6489 static void voidMethodSequenceLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 6741 static void voidMethodSequenceLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
6490 { | 6742 { |
6491 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 6743 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
6492 TestObjectV8Internal::voidMethodSequenceLongArgMethod(info); | 6744 TestObjectV8Internal::voidMethodSequenceLongArgMethod(info); |
6493 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 6745 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
6494 } | 6746 } |
6495 | 6747 |
6496 static void voidMethodSequenceStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 6748 static void voidMethodSequenceStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
6497 { | 6749 { |
6498 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
equenceStringArg", "TestObject", info.Holder(), info.GetIsolate()); | 6750 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
equenceStringArg", "TestObject", info.Holder(), info.GetIsolate()); |
6499 if (UNLIKELY(info.Length() < 1)) { | 6751 if (UNLIKELY(info.Length() < 1)) { |
6500 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 6752 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
6501 exceptionState.throwIfNeeded(); | 6753 exceptionState.throwIfNeeded(); |
6502 return; | 6754 return; |
6503 } | 6755 } |
6504 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 6756 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
6505 Vector<String> stringSequenceArg; | 6757 Vector<String> stringSequenceArg; |
6506 { | 6758 { |
6507 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(stringSequenceArg, toImplArray<Str
ing>(info[0], 1, info.GetIsolate(), exceptionState), exceptionState); | 6759 stringSequenceArg = toImplArray<String>(info[0], 1, info.GetIsolate(), e
xceptionState); |
| 6760 if (exceptionState.throwIfNeeded()) |
| 6761 return; |
6508 } | 6762 } |
6509 impl->voidMethodSequenceStringArg(stringSequenceArg); | 6763 impl->voidMethodSequenceStringArg(stringSequenceArg); |
6510 } | 6764 } |
6511 | 6765 |
6512 static void voidMethodSequenceStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 6766 static void voidMethodSequenceStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
6513 { | 6767 { |
6514 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 6768 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
6515 TestObjectV8Internal::voidMethodSequenceStringArgMethod(info); | 6769 TestObjectV8Internal::voidMethodSequenceStringArgMethod(info); |
6516 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 6770 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
6517 } | 6771 } |
6518 | 6772 |
6519 static void voidMethodSequenceTestInterfaceEmptyArgMethod(const v8::FunctionCall
backInfo<v8::Value>& info) | 6773 static void voidMethodSequenceTestInterfaceEmptyArgMethod(const v8::FunctionCall
backInfo<v8::Value>& info) |
6520 { | 6774 { |
6521 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
equenceTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsolate()); | 6775 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
equenceTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsolate()); |
6522 if (UNLIKELY(info.Length() < 1)) { | 6776 if (UNLIKELY(info.Length() < 1)) { |
6523 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 6777 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
6524 exceptionState.throwIfNeeded(); | 6778 exceptionState.throwIfNeeded(); |
6525 return; | 6779 return; |
6526 } | 6780 } |
6527 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 6781 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
6528 Vector<RefPtr<TestInterfaceEmpty>> testInterfaceEmptySequenceArg; | 6782 Vector<RefPtr<TestInterfaceEmpty>> testInterfaceEmptySequenceArg; |
6529 { | 6783 { |
6530 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(testInterfaceEmptySequenceArg, (to
RefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1, info.Get
Isolate(), exceptionState)), exceptionState); | 6784 testInterfaceEmptySequenceArg = (toRefPtrNativeArray<TestInterfaceEmpty,
V8TestInterfaceEmpty>(info[0], 1, info.GetIsolate(), exceptionState)); |
| 6785 if (exceptionState.throwIfNeeded()) |
| 6786 return; |
6531 } | 6787 } |
6532 impl->voidMethodSequenceTestInterfaceEmptyArg(testInterfaceEmptySequenceArg)
; | 6788 impl->voidMethodSequenceTestInterfaceEmptyArg(testInterfaceEmptySequenceArg)
; |
6533 } | 6789 } |
6534 | 6790 |
6535 static void voidMethodSequenceTestInterfaceEmptyArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) | 6791 static void voidMethodSequenceTestInterfaceEmptyArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
6536 { | 6792 { |
6537 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 6793 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
6538 TestObjectV8Internal::voidMethodSequenceTestInterfaceEmptyArgMethod(info); | 6794 TestObjectV8Internal::voidMethodSequenceTestInterfaceEmptyArgMethod(info); |
6539 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 6795 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
6540 } | 6796 } |
6541 | 6797 |
6542 static void voidMethodSequenceSequenceDOMStringArgMethod(const v8::FunctionCallb
ackInfo<v8::Value>& info) | 6798 static void voidMethodSequenceSequenceDOMStringArgMethod(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
6543 { | 6799 { |
6544 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
equenceSequenceDOMStringArg", "TestObject", info.Holder(), info.GetIsolate()); | 6800 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
equenceSequenceDOMStringArg", "TestObject", info.Holder(), info.GetIsolate()); |
6545 if (UNLIKELY(info.Length() < 1)) { | 6801 if (UNLIKELY(info.Length() < 1)) { |
6546 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 6802 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
6547 exceptionState.throwIfNeeded(); | 6803 exceptionState.throwIfNeeded(); |
6548 return; | 6804 return; |
6549 } | 6805 } |
6550 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 6806 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
6551 Vector<Vector<String>> stringSequenceSequenceArg; | 6807 Vector<Vector<String>> stringSequenceSequenceArg; |
6552 { | 6808 { |
6553 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(stringSequenceSequenceArg, toImplA
rray<Vector<String>>(info[0], 1, info.GetIsolate(), exceptionState), exceptionSt
ate); | 6809 stringSequenceSequenceArg = toImplArray<Vector<String>>(info[0], 1, info
.GetIsolate(), exceptionState); |
| 6810 if (exceptionState.throwIfNeeded()) |
| 6811 return; |
6554 } | 6812 } |
6555 impl->voidMethodSequenceSequenceDOMStringArg(stringSequenceSequenceArg); | 6813 impl->voidMethodSequenceSequenceDOMStringArg(stringSequenceSequenceArg); |
6556 } | 6814 } |
6557 | 6815 |
6558 static void voidMethodSequenceSequenceDOMStringArgMethodCallback(const v8::Funct
ionCallbackInfo<v8::Value>& info) | 6816 static void voidMethodSequenceSequenceDOMStringArgMethodCallback(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
6559 { | 6817 { |
6560 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 6818 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
6561 TestObjectV8Internal::voidMethodSequenceSequenceDOMStringArgMethod(info); | 6819 TestObjectV8Internal::voidMethodSequenceSequenceDOMStringArgMethod(info); |
6562 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 6820 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
6563 } | 6821 } |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6686 { | 6944 { |
6687 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
oubleOrDOMStringArg", "TestObject", info.Holder(), info.GetIsolate()); | 6945 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
oubleOrDOMStringArg", "TestObject", info.Holder(), info.GetIsolate()); |
6688 if (UNLIKELY(info.Length() < 1)) { | 6946 if (UNLIKELY(info.Length() < 1)) { |
6689 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 6947 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
6690 exceptionState.throwIfNeeded(); | 6948 exceptionState.throwIfNeeded(); |
6691 return; | 6949 return; |
6692 } | 6950 } |
6693 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 6951 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
6694 DoubleOrString arg; | 6952 DoubleOrString arg; |
6695 { | 6953 { |
6696 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8DoubleOrString::toImpl(info.G
etIsolate(), info[0], arg, exceptionState), exceptionState); | 6954 V8DoubleOrString::toImpl(info.GetIsolate(), info[0], arg, exceptionState
); |
| 6955 if (exceptionState.throwIfNeeded()) |
| 6956 return; |
6697 } | 6957 } |
6698 impl->voidMethodDoubleOrDOMStringArg(arg); | 6958 impl->voidMethodDoubleOrDOMStringArg(arg); |
6699 } | 6959 } |
6700 | 6960 |
6701 static void voidMethodDoubleOrDOMStringArgMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) | 6961 static void voidMethodDoubleOrDOMStringArgMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
6702 { | 6962 { |
6703 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 6963 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
6704 TestObjectV8Internal::voidMethodDoubleOrDOMStringArgMethod(info); | 6964 TestObjectV8Internal::voidMethodDoubleOrDOMStringArgMethod(info); |
6705 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 6965 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
6706 } | 6966 } |
6707 | 6967 |
6708 static void voidMethodDoubleOrDOMStringOrNullArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 6968 static void voidMethodDoubleOrDOMStringOrNullArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
6709 { | 6969 { |
6710 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
oubleOrDOMStringOrNullArg", "TestObject", info.Holder(), info.GetIsolate()); | 6970 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
oubleOrDOMStringOrNullArg", "TestObject", info.Holder(), info.GetIsolate()); |
6711 if (UNLIKELY(info.Length() < 1)) { | 6971 if (UNLIKELY(info.Length() < 1)) { |
6712 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 6972 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
6713 exceptionState.throwIfNeeded(); | 6973 exceptionState.throwIfNeeded(); |
6714 return; | 6974 return; |
6715 } | 6975 } |
6716 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 6976 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
6717 DoubleOrString arg; | 6977 DoubleOrString arg; |
6718 { | 6978 { |
6719 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8DoubleOrStringOrNull::toImpl(
info.GetIsolate(), info[0], arg, exceptionState), exceptionState); | 6979 V8DoubleOrStringOrNull::toImpl(info.GetIsolate(), info[0], arg, exceptio
nState); |
| 6980 if (exceptionState.throwIfNeeded()) |
| 6981 return; |
6720 } | 6982 } |
6721 impl->voidMethodDoubleOrDOMStringOrNullArg(arg); | 6983 impl->voidMethodDoubleOrDOMStringOrNullArg(arg); |
6722 } | 6984 } |
6723 | 6985 |
6724 static void voidMethodDoubleOrDOMStringOrNullArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) | 6986 static void voidMethodDoubleOrDOMStringOrNullArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) |
6725 { | 6987 { |
6726 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 6988 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
6727 TestObjectV8Internal::voidMethodDoubleOrDOMStringOrNullArgMethod(info); | 6989 TestObjectV8Internal::voidMethodDoubleOrDOMStringOrNullArgMethod(info); |
6728 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 6990 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
6729 } | 6991 } |
6730 | 6992 |
6731 static void voidMethodDoubleOrNullOrDOMStringArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 6993 static void voidMethodDoubleOrNullOrDOMStringArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
6732 { | 6994 { |
6733 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
oubleOrNullOrDOMStringArg", "TestObject", info.Holder(), info.GetIsolate()); | 6995 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
oubleOrNullOrDOMStringArg", "TestObject", info.Holder(), info.GetIsolate()); |
6734 if (UNLIKELY(info.Length() < 1)) { | 6996 if (UNLIKELY(info.Length() < 1)) { |
6735 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 6997 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
6736 exceptionState.throwIfNeeded(); | 6998 exceptionState.throwIfNeeded(); |
6737 return; | 6999 return; |
6738 } | 7000 } |
6739 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7001 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
6740 DoubleOrString arg; | 7002 DoubleOrString arg; |
6741 { | 7003 { |
6742 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8DoubleOrStringOrNull::toImpl(
info.GetIsolate(), info[0], arg, exceptionState), exceptionState); | 7004 V8DoubleOrStringOrNull::toImpl(info.GetIsolate(), info[0], arg, exceptio
nState); |
| 7005 if (exceptionState.throwIfNeeded()) |
| 7006 return; |
6743 } | 7007 } |
6744 impl->voidMethodDoubleOrNullOrDOMStringArg(arg); | 7008 impl->voidMethodDoubleOrNullOrDOMStringArg(arg); |
6745 } | 7009 } |
6746 | 7010 |
6747 static void voidMethodDoubleOrNullOrDOMStringArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) | 7011 static void voidMethodDoubleOrNullOrDOMStringArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) |
6748 { | 7012 { |
6749 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7013 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
6750 TestObjectV8Internal::voidMethodDoubleOrNullOrDOMStringArgMethod(info); | 7014 TestObjectV8Internal::voidMethodDoubleOrNullOrDOMStringArgMethod(info); |
6751 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7015 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
6752 } | 7016 } |
6753 | 7017 |
6754 static void voidMethodDOMStringOrArrayBufferOrArrayBufferViewArgMethod(const v8:
:FunctionCallbackInfo<v8::Value>& info) | 7018 static void voidMethodDOMStringOrArrayBufferOrArrayBufferViewArgMethod(const v8:
:FunctionCallbackInfo<v8::Value>& info) |
6755 { | 7019 { |
6756 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
OMStringOrArrayBufferOrArrayBufferViewArg", "TestObject", info.Holder(), info.Ge
tIsolate()); | 7020 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
OMStringOrArrayBufferOrArrayBufferViewArg", "TestObject", info.Holder(), info.Ge
tIsolate()); |
6757 if (UNLIKELY(info.Length() < 1)) { | 7021 if (UNLIKELY(info.Length() < 1)) { |
6758 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 7022 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
6759 exceptionState.throwIfNeeded(); | 7023 exceptionState.throwIfNeeded(); |
6760 return; | 7024 return; |
6761 } | 7025 } |
6762 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7026 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
6763 StringOrArrayBufferOrArrayBufferView arg; | 7027 StringOrArrayBufferOrArrayBufferView arg; |
6764 { | 7028 { |
6765 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8StringOrArrayBufferOrArrayBuf
ferView::toImpl(info.GetIsolate(), info[0], arg, exceptionState), exceptionState
); | 7029 V8StringOrArrayBufferOrArrayBufferView::toImpl(info.GetIsolate(), info[0
], arg, exceptionState); |
| 7030 if (exceptionState.throwIfNeeded()) |
| 7031 return; |
6766 } | 7032 } |
6767 impl->voidMethodDOMStringOrArrayBufferOrArrayBufferViewArg(arg); | 7033 impl->voidMethodDOMStringOrArrayBufferOrArrayBufferViewArg(arg); |
6768 } | 7034 } |
6769 | 7035 |
6770 static void voidMethodDOMStringOrArrayBufferOrArrayBufferViewArgMethodCallback(c
onst v8::FunctionCallbackInfo<v8::Value>& info) | 7036 static void voidMethodDOMStringOrArrayBufferOrArrayBufferViewArgMethodCallback(c
onst v8::FunctionCallbackInfo<v8::Value>& info) |
6771 { | 7037 { |
6772 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7038 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
6773 TestObjectV8Internal::voidMethodDOMStringOrArrayBufferOrArrayBufferViewArgMe
thod(info); | 7039 TestObjectV8Internal::voidMethodDOMStringOrArrayBufferOrArrayBufferViewArgMe
thod(info); |
6774 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7040 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
6775 } | 7041 } |
6776 | 7042 |
6777 static void voidMethodArrayBufferOrArrayBufferViewOrDictionaryArgMethod(const v8
::FunctionCallbackInfo<v8::Value>& info) | 7043 static void voidMethodArrayBufferOrArrayBufferViewOrDictionaryArgMethod(const v8
::FunctionCallbackInfo<v8::Value>& info) |
6778 { | 7044 { |
6779 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodA
rrayBufferOrArrayBufferViewOrDictionaryArg", "TestObject", info.Holder(), info.G
etIsolate()); | 7045 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodA
rrayBufferOrArrayBufferViewOrDictionaryArg", "TestObject", info.Holder(), info.G
etIsolate()); |
6780 if (UNLIKELY(info.Length() < 1)) { | 7046 if (UNLIKELY(info.Length() < 1)) { |
6781 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 7047 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
6782 exceptionState.throwIfNeeded(); | 7048 exceptionState.throwIfNeeded(); |
6783 return; | 7049 return; |
6784 } | 7050 } |
6785 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7051 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
6786 ArrayBufferOrArrayBufferViewOrDictionary arg; | 7052 ArrayBufferOrArrayBufferViewOrDictionary arg; |
6787 { | 7053 { |
6788 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8ArrayBufferOrArrayBufferViewO
rDictionary::toImpl(info.GetIsolate(), info[0], arg, exceptionState), exceptionS
tate); | 7054 V8ArrayBufferOrArrayBufferViewOrDictionary::toImpl(info.GetIsolate(), in
fo[0], arg, exceptionState); |
| 7055 if (exceptionState.throwIfNeeded()) |
| 7056 return; |
6789 } | 7057 } |
6790 impl->voidMethodArrayBufferOrArrayBufferViewOrDictionaryArg(arg); | 7058 impl->voidMethodArrayBufferOrArrayBufferViewOrDictionaryArg(arg); |
6791 } | 7059 } |
6792 | 7060 |
6793 static void voidMethodArrayBufferOrArrayBufferViewOrDictionaryArgMethodCallback(
const v8::FunctionCallbackInfo<v8::Value>& info) | 7061 static void voidMethodArrayBufferOrArrayBufferViewOrDictionaryArgMethodCallback(
const v8::FunctionCallbackInfo<v8::Value>& info) |
6794 { | 7062 { |
6795 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7063 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
6796 TestObjectV8Internal::voidMethodArrayBufferOrArrayBufferViewOrDictionaryArgM
ethod(info); | 7064 TestObjectV8Internal::voidMethodArrayBufferOrArrayBufferViewOrDictionaryArgM
ethod(info); |
6797 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7065 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
6798 } | 7066 } |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6908 | 7176 |
6909 static void voidMethodTestEnumArgMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) | 7177 static void voidMethodTestEnumArgMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) |
6910 { | 7178 { |
6911 if (UNLIKELY(info.Length() < 1)) { | 7179 if (UNLIKELY(info.Length() < 1)) { |
6912 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "voidMethodTestEnumArg", "TestObject", 1, info.Length()), info.
GetIsolate()); | 7180 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "voidMethodTestEnumArg", "TestObject", 1, info.Length()), info.
GetIsolate()); |
6913 return; | 7181 return; |
6914 } | 7182 } |
6915 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7183 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
6916 V8StringResource<> testEnumTypeArg; | 7184 V8StringResource<> testEnumTypeArg; |
6917 { | 7185 { |
6918 TOSTRING_VOID_INTERNAL(testEnumTypeArg, info[0]); | 7186 testEnumTypeArg = info[0]; |
| 7187 if (!testEnumTypeArg.prepare()) |
| 7188 return; |
6919 String string = testEnumTypeArg; | 7189 String string = testEnumTypeArg; |
6920 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" |
| string == "EnumValue3")) { | 7190 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" |
| string == "EnumValue3")) { |
6921 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessage
s::failedToExecute("voidMethodTestEnumArg", "TestObject", "parameter 1 ('" + str
ing + "') is not a valid enum value.")); | 7191 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessage
s::failedToExecute("voidMethodTestEnumArg", "TestObject", "parameter 1 ('" + str
ing + "') is not a valid enum value.")); |
6922 return; | 7192 return; |
6923 } | 7193 } |
6924 } | 7194 } |
6925 impl->voidMethodTestEnumArg(testEnumTypeArg); | 7195 impl->voidMethodTestEnumArg(testEnumTypeArg); |
6926 } | 7196 } |
6927 | 7197 |
6928 static void voidMethodTestEnumArgMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) | 7198 static void voidMethodTestEnumArgMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6977 TestObjectV8Internal::nullableTestDictionaryMethodMethod(info); | 7247 TestObjectV8Internal::nullableTestDictionaryMethodMethod(info); |
6978 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7248 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
6979 } | 7249 } |
6980 | 7250 |
6981 static void passPermissiveDictionaryMethodMethod(const v8::FunctionCallbackInfo<
v8::Value>& info) | 7251 static void passPermissiveDictionaryMethodMethod(const v8::FunctionCallbackInfo<
v8::Value>& info) |
6982 { | 7252 { |
6983 ExceptionState exceptionState(ExceptionState::ExecutionContext, "passPermiss
iveDictionaryMethod", "TestObject", info.Holder(), info.GetIsolate()); | 7253 ExceptionState exceptionState(ExceptionState::ExecutionContext, "passPermiss
iveDictionaryMethod", "TestObject", info.Holder(), info.GetIsolate()); |
6984 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7254 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
6985 TestDictionary arg; | 7255 TestDictionary arg; |
6986 { | 7256 { |
6987 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8TestDictionary::toImpl(info.G
etIsolate(), info[0], arg, exceptionState), exceptionState); | 7257 V8TestDictionary::toImpl(info.GetIsolate(), info[0], arg, exceptionState
); |
| 7258 if (exceptionState.throwIfNeeded()) |
| 7259 return; |
6988 } | 7260 } |
6989 impl->passPermissiveDictionaryMethod(arg); | 7261 impl->passPermissiveDictionaryMethod(arg); |
6990 } | 7262 } |
6991 | 7263 |
6992 static void passPermissiveDictionaryMethodMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) | 7264 static void passPermissiveDictionaryMethodMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
6993 { | 7265 { |
6994 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7266 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
6995 TestObjectV8Internal::passPermissiveDictionaryMethodMethod(info); | 7267 TestObjectV8Internal::passPermissiveDictionaryMethodMethod(info); |
6996 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7268 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
6997 } | 7269 } |
6998 | 7270 |
6999 static void nodeFilterMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) | 7271 static void nodeFilterMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) |
7000 { | 7272 { |
7001 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7273 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
7002 v8SetReturnValue(info, impl->nodeFilterMethod()); | 7274 v8SetReturnValue(info, impl->nodeFilterMethod()); |
7003 } | 7275 } |
7004 | 7276 |
7005 static void nodeFilterMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 7277 static void nodeFilterMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
7006 { | 7278 { |
7007 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7279 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
7008 TestObjectV8Internal::nodeFilterMethodMethod(info); | 7280 TestObjectV8Internal::nodeFilterMethodMethod(info); |
7009 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7281 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7010 } | 7282 } |
7011 | 7283 |
7012 static void promiseMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 7284 static void promiseMethodMethodPromise(const v8::FunctionCallbackInfo<v8::Value>
& info, ExceptionState& exceptionState) |
7013 { | 7285 { |
7014 ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseMeth
od", "TestObject", info.Holder(), info.GetIsolate()); | |
7015 if (UNLIKELY(info.Length() < 3)) { | 7286 if (UNLIKELY(info.Length() < 3)) { |
7016 setMinimumArityTypeError(exceptionState, 3, info.Length()); | 7287 setMinimumArityTypeError(exceptionState, 3, info.Length()); |
7017 v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.G
etIsolate())).v8Value()); | |
7018 return; | 7288 return; |
7019 } | 7289 } |
7020 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7290 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
7021 int arg1; | 7291 int arg1; |
7022 Dictionary arg2; | 7292 Dictionary arg2; |
7023 V8StringResource<> arg3; | 7293 V8StringResource<> arg3; |
7024 Vector<String> variadic; | 7294 Vector<String> variadic; |
7025 { | 7295 { |
7026 TONATIVE_VOID_EXCEPTIONSTATE_PROMISE_INTERNAL(arg1, toInt32(info[0], exc
eptionState), exceptionState, info, ScriptState::current(info.GetIsolate())); | 7296 arg1 = toInt32(info[0], exceptionState); |
| 7297 if (exceptionState.hadException()) |
| 7298 return; |
7027 if (!isUndefinedOrNull(info[1]) && !info[1]->IsObject()) { | 7299 if (!isUndefinedOrNull(info[1]) && !info[1]->IsObject()) { |
7028 exceptionState.throwTypeError("parameter 2 ('arg2') is not an object
."); | 7300 exceptionState.throwTypeError("parameter 2 ('arg2') is not an object
."); |
7029 v8SetReturnValue(info, exceptionState.reject(ScriptState::current(in
fo.GetIsolate())).v8Value()); | |
7030 return; | 7301 return; |
7031 } | 7302 } |
7032 TONATIVE_VOID_EXCEPTIONSTATE_PROMISE_INTERNAL(arg2, Dictionary(info[1],
info.GetIsolate(), exceptionState), exceptionState, info, ScriptState::current(i
nfo.GetIsolate())); | 7303 arg2 = Dictionary(info[1], info.GetIsolate(), exceptionState); |
7033 TOSTRING_VOID_EXCEPTIONSTATE_PROMISE_INTERNAL(arg3, info[2], exceptionSt
ate, info, ScriptState::current(info.GetIsolate())); | 7304 if (exceptionState.hadException()) |
7034 TONATIVE_VOID_EXCEPTIONSTATE_PROMISE_INTERNAL(variadic, toImplArguments<
String>(info, 3, exceptionState), exceptionState, info, ScriptState::current(inf
o.GetIsolate())); | 7305 return; |
| 7306 arg3 = info[2]; |
| 7307 if (!arg3.prepare(exceptionState)) |
| 7308 return; |
| 7309 variadic = toImplArguments<String>(info, 3, exceptionState); |
| 7310 if (exceptionState.hadException()) |
| 7311 return; |
7035 } | 7312 } |
7036 v8SetReturnValue(info, impl->promiseMethod(arg1, arg2, arg3, variadic).v8Val
ue()); | 7313 v8SetReturnValue(info, impl->promiseMethod(arg1, arg2, arg3, variadic).v8Val
ue()); |
7037 } | 7314 } |
7038 | 7315 |
| 7316 static void promiseMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 7317 { |
| 7318 ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseMeth
od", "TestObject", info.Holder(), info.GetIsolate()); |
| 7319 promiseMethodMethodPromise(info, exceptionState); |
| 7320 if (exceptionState.hadException()) |
| 7321 v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.G
etIsolate())).v8Value()); |
| 7322 } |
| 7323 |
7039 static void promiseMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value
>& info) | 7324 static void promiseMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value
>& info) |
7040 { | 7325 { |
7041 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7326 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
7042 TestObjectV8Internal::promiseMethodMethod(info); | 7327 TestObjectV8Internal::promiseMethodMethod(info); |
7043 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7328 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7044 } | 7329 } |
7045 | 7330 |
7046 static void promiseMethodWithoutExceptionStateMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 7331 static void promiseMethodWithoutExceptionStateMethodPromise(const v8::FunctionCa
llbackInfo<v8::Value>& info, ExceptionState& exceptionState) |
7047 { | 7332 { |
7048 ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseMeth
odWithoutExceptionState", "TestObject", info.Holder(), info.GetIsolate()); | |
7049 if (UNLIKELY(info.Length() < 1)) { | 7333 if (UNLIKELY(info.Length() < 1)) { |
7050 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 7334 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
7051 v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.G
etIsolate())).v8Value()); | |
7052 return; | 7335 return; |
7053 } | 7336 } |
7054 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7337 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
7055 Dictionary arg1; | 7338 Dictionary arg1; |
7056 { | 7339 { |
7057 if (!isUndefinedOrNull(info[0]) && !info[0]->IsObject()) { | 7340 if (!isUndefinedOrNull(info[0]) && !info[0]->IsObject()) { |
7058 exceptionState.throwTypeError("parameter 1 ('arg1') is not an object
."); | 7341 exceptionState.throwTypeError("parameter 1 ('arg1') is not an object
."); |
7059 v8SetReturnValue(info, exceptionState.reject(ScriptState::current(in
fo.GetIsolate())).v8Value()); | |
7060 return; | 7342 return; |
7061 } | 7343 } |
7062 TONATIVE_VOID_EXCEPTIONSTATE_PROMISE_INTERNAL(arg1, Dictionary(info[0],
info.GetIsolate(), exceptionState), exceptionState, info, ScriptState::current(i
nfo.GetIsolate())); | 7344 arg1 = Dictionary(info[0], info.GetIsolate(), exceptionState); |
| 7345 if (exceptionState.hadException()) |
| 7346 return; |
7063 } | 7347 } |
7064 v8SetReturnValue(info, impl->promiseMethodWithoutExceptionState(arg1).v8Valu
e()); | 7348 v8SetReturnValue(info, impl->promiseMethodWithoutExceptionState(arg1).v8Valu
e()); |
7065 } | 7349 } |
7066 | 7350 |
| 7351 static void promiseMethodWithoutExceptionStateMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
| 7352 { |
| 7353 ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseMeth
odWithoutExceptionState", "TestObject", info.Holder(), info.GetIsolate()); |
| 7354 promiseMethodWithoutExceptionStateMethodPromise(info, exceptionState); |
| 7355 if (exceptionState.hadException()) |
| 7356 v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.G
etIsolate())).v8Value()); |
| 7357 } |
| 7358 |
7067 static void promiseMethodWithoutExceptionStateMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) | 7359 static void promiseMethodWithoutExceptionStateMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) |
7068 { | 7360 { |
7069 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7361 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
7070 TestObjectV8Internal::promiseMethodWithoutExceptionStateMethod(info); | 7362 TestObjectV8Internal::promiseMethodWithoutExceptionStateMethod(info); |
7071 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7363 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7072 } | 7364 } |
7073 | 7365 |
7074 static void serializedScriptValueMethodMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 7366 static void serializedScriptValueMethodMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
7075 { | 7367 { |
7076 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7368 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
(...skipping 29 matching lines...) Expand all Loading... |
7106 return; | 7398 return; |
7107 } | 7399 } |
7108 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7400 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
7109 Dictionary dictionaryArg; | 7401 Dictionary dictionaryArg; |
7110 { | 7402 { |
7111 if (!isUndefinedOrNull(info[0]) && !info[0]->IsObject()) { | 7403 if (!isUndefinedOrNull(info[0]) && !info[0]->IsObject()) { |
7112 exceptionState.throwTypeError("parameter 1 ('dictionaryArg') is not
an object."); | 7404 exceptionState.throwTypeError("parameter 1 ('dictionaryArg') is not
an object."); |
7113 exceptionState.throwIfNeeded(); | 7405 exceptionState.throwIfNeeded(); |
7114 return; | 7406 return; |
7115 } | 7407 } |
7116 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(dictionaryArg, Dictionary(info[0],
info.GetIsolate(), exceptionState), exceptionState); | 7408 dictionaryArg = Dictionary(info[0], info.GetIsolate(), exceptionState); |
| 7409 if (exceptionState.throwIfNeeded()) |
| 7410 return; |
7117 } | 7411 } |
7118 impl->voidMethodDictionaryArg(dictionaryArg); | 7412 impl->voidMethodDictionaryArg(dictionaryArg); |
7119 } | 7413 } |
7120 | 7414 |
7121 static void voidMethodDictionaryArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) | 7415 static void voidMethodDictionaryArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) |
7122 { | 7416 { |
7123 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7417 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
7124 TestObjectV8Internal::voidMethodDictionaryArgMethod(info); | 7418 TestObjectV8Internal::voidMethodDictionaryArgMethod(info); |
7125 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7419 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7126 } | 7420 } |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7175 { | 7469 { |
7176 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
erializedScriptValueArg", "TestObject", info.Holder(), info.GetIsolate()); | 7470 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
erializedScriptValueArg", "TestObject", info.Holder(), info.GetIsolate()); |
7177 if (UNLIKELY(info.Length() < 1)) { | 7471 if (UNLIKELY(info.Length() < 1)) { |
7178 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 7472 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
7179 exceptionState.throwIfNeeded(); | 7473 exceptionState.throwIfNeeded(); |
7180 return; | 7474 return; |
7181 } | 7475 } |
7182 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7476 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
7183 RefPtr<SerializedScriptValue> serializedScriptValueArg; | 7477 RefPtr<SerializedScriptValue> serializedScriptValueArg; |
7184 { | 7478 { |
7185 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(serializedScriptValueArg, Serializ
edScriptValueFactory::instance().create(info[0], 0, 0, exceptionState, info.GetI
solate()), exceptionState); | 7479 serializedScriptValueArg = SerializedScriptValueFactory::instance().crea
te(info[0], 0, 0, exceptionState, info.GetIsolate()); |
| 7480 if (exceptionState.throwIfNeeded()) |
| 7481 return; |
7186 } | 7482 } |
7187 impl->voidMethodSerializedScriptValueArg(serializedScriptValueArg); | 7483 impl->voidMethodSerializedScriptValueArg(serializedScriptValueArg); |
7188 } | 7484 } |
7189 | 7485 |
7190 static void voidMethodSerializedScriptValueArgMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) | 7486 static void voidMethodSerializedScriptValueArgMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) |
7191 { | 7487 { |
7192 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7488 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
7193 TestObjectV8Internal::voidMethodSerializedScriptValueArgMethod(info); | 7489 TestObjectV8Internal::voidMethodSerializedScriptValueArgMethod(info); |
7194 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7490 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7195 } | 7491 } |
(...skipping 23 matching lines...) Expand all Loading... |
7219 { | 7515 { |
7220 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
ictionarySequenceArg", "TestObject", info.Holder(), info.GetIsolate()); | 7516 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
ictionarySequenceArg", "TestObject", info.Holder(), info.GetIsolate()); |
7221 if (UNLIKELY(info.Length() < 1)) { | 7517 if (UNLIKELY(info.Length() < 1)) { |
7222 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 7518 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
7223 exceptionState.throwIfNeeded(); | 7519 exceptionState.throwIfNeeded(); |
7224 return; | 7520 return; |
7225 } | 7521 } |
7226 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7522 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
7227 Vector<Dictionary> dictionarySequenceArg; | 7523 Vector<Dictionary> dictionarySequenceArg; |
7228 { | 7524 { |
7229 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(dictionarySequenceArg, toImplArray
<Dictionary>(info[0], 1, info.GetIsolate(), exceptionState), exceptionState); | 7525 dictionarySequenceArg = toImplArray<Dictionary>(info[0], 1, info.GetIsol
ate(), exceptionState); |
| 7526 if (exceptionState.throwIfNeeded()) |
| 7527 return; |
7230 } | 7528 } |
7231 impl->voidMethodDictionarySequenceArg(dictionarySequenceArg); | 7529 impl->voidMethodDictionarySequenceArg(dictionarySequenceArg); |
7232 } | 7530 } |
7233 | 7531 |
7234 static void voidMethodDictionarySequenceArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) | 7532 static void voidMethodDictionarySequenceArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
7235 { | 7533 { |
7236 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7534 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
7237 TestObjectV8Internal::voidMethodDictionarySequenceArgMethod(info); | 7535 TestObjectV8Internal::voidMethodDictionarySequenceArgMethod(info); |
7238 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7536 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7239 } | 7537 } |
7240 | 7538 |
7241 static void voidMethodStringArgLongArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) | 7539 static void voidMethodStringArgLongArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) |
7242 { | 7540 { |
7243 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
tringArgLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 7541 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
tringArgLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
7244 if (UNLIKELY(info.Length() < 2)) { | 7542 if (UNLIKELY(info.Length() < 2)) { |
7245 setMinimumArityTypeError(exceptionState, 2, info.Length()); | 7543 setMinimumArityTypeError(exceptionState, 2, info.Length()); |
7246 exceptionState.throwIfNeeded(); | 7544 exceptionState.throwIfNeeded(); |
7247 return; | 7545 return; |
7248 } | 7546 } |
7249 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7547 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
7250 V8StringResource<> stringArg; | 7548 V8StringResource<> stringArg; |
7251 int longArg; | 7549 int longArg; |
7252 { | 7550 { |
7253 TOSTRING_VOID_INTERNAL(stringArg, info[0]); | 7551 stringArg = info[0]; |
7254 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[1], exceptio
nState), exceptionState); | 7552 if (!stringArg.prepare()) |
| 7553 return; |
| 7554 longArg = toInt32(info[1], exceptionState); |
| 7555 if (exceptionState.throwIfNeeded()) |
| 7556 return; |
7255 } | 7557 } |
7256 impl->voidMethodStringArgLongArg(stringArg, longArg); | 7558 impl->voidMethodStringArgLongArg(stringArg, longArg); |
7257 } | 7559 } |
7258 | 7560 |
7259 static void voidMethodStringArgLongArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 7561 static void voidMethodStringArgLongArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
7260 { | 7562 { |
7261 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7563 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
7262 TestObjectV8Internal::voidMethodStringArgLongArgMethod(info); | 7564 TestObjectV8Internal::voidMethodStringArgLongArgMethod(info); |
7263 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7565 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7264 } | 7566 } |
7265 | 7567 |
7266 static void voidMethodOptionalStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 7568 static void voidMethodOptionalStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
7267 { | 7569 { |
7268 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7570 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
7269 V8StringResource<> optionalStringArg; | 7571 V8StringResource<> optionalStringArg; |
7270 { | 7572 { |
7271 if (UNLIKELY(info.Length() <= 0)) { | 7573 if (UNLIKELY(info.Length() <= 0)) { |
7272 impl->voidMethodOptionalStringArg(); | 7574 impl->voidMethodOptionalStringArg(); |
7273 return; | 7575 return; |
7274 } | 7576 } |
7275 TOSTRING_VOID_INTERNAL(optionalStringArg, info[0]); | 7577 optionalStringArg = info[0]; |
| 7578 if (!optionalStringArg.prepare()) |
| 7579 return; |
7276 } | 7580 } |
7277 impl->voidMethodOptionalStringArg(optionalStringArg); | 7581 impl->voidMethodOptionalStringArg(optionalStringArg); |
7278 } | 7582 } |
7279 | 7583 |
7280 static void voidMethodOptionalStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 7584 static void voidMethodOptionalStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
7281 { | 7585 { |
7282 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7586 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
7283 TestObjectV8Internal::voidMethodOptionalStringArgMethod(info); | 7587 TestObjectV8Internal::voidMethodOptionalStringArgMethod(info); |
7284 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7588 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7285 } | 7589 } |
(...skipping 22 matching lines...) Expand all Loading... |
7308 static void voidMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 7612 static void voidMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
7309 { | 7613 { |
7310 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO
ptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 7614 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO
ptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
7311 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7615 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
7312 int optionalLongArg; | 7616 int optionalLongArg; |
7313 { | 7617 { |
7314 if (UNLIKELY(info.Length() <= 0)) { | 7618 if (UNLIKELY(info.Length() <= 0)) { |
7315 impl->voidMethodOptionalLongArg(); | 7619 impl->voidMethodOptionalLongArg(); |
7316 return; | 7620 return; |
7317 } | 7621 } |
7318 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0],
exceptionState), exceptionState); | 7622 optionalLongArg = toInt32(info[0], exceptionState); |
| 7623 if (exceptionState.throwIfNeeded()) |
| 7624 return; |
7319 } | 7625 } |
7320 impl->voidMethodOptionalLongArg(optionalLongArg); | 7626 impl->voidMethodOptionalLongArg(optionalLongArg); |
7321 } | 7627 } |
7322 | 7628 |
7323 static void voidMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 7629 static void voidMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
7324 { | 7630 { |
7325 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7631 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
7326 TestObjectV8Internal::voidMethodOptionalLongArgMethod(info); | 7632 TestObjectV8Internal::voidMethodOptionalLongArgMethod(info); |
7327 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7633 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7328 } | 7634 } |
7329 | 7635 |
7330 static void stringMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 7636 static void stringMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
7331 { | 7637 { |
7332 ExceptionState exceptionState(ExceptionState::ExecutionContext, "stringMetho
dOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 7638 ExceptionState exceptionState(ExceptionState::ExecutionContext, "stringMetho
dOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
7333 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7639 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
7334 int optionalLongArg; | 7640 int optionalLongArg; |
7335 { | 7641 { |
7336 if (UNLIKELY(info.Length() <= 0)) { | 7642 if (UNLIKELY(info.Length() <= 0)) { |
7337 v8SetReturnValueString(info, impl->stringMethodOptionalLongArg(), in
fo.GetIsolate()); | 7643 v8SetReturnValueString(info, impl->stringMethodOptionalLongArg(), in
fo.GetIsolate()); |
7338 return; | 7644 return; |
7339 } | 7645 } |
7340 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0],
exceptionState), exceptionState); | 7646 optionalLongArg = toInt32(info[0], exceptionState); |
| 7647 if (exceptionState.throwIfNeeded()) |
| 7648 return; |
7341 } | 7649 } |
7342 v8SetReturnValueString(info, impl->stringMethodOptionalLongArg(optionalLongA
rg), info.GetIsolate()); | 7650 v8SetReturnValueString(info, impl->stringMethodOptionalLongArg(optionalLongA
rg), info.GetIsolate()); |
7343 } | 7651 } |
7344 | 7652 |
7345 static void stringMethodOptionalLongArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 7653 static void stringMethodOptionalLongArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
7346 { | 7654 { |
7347 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7655 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
7348 TestObjectV8Internal::stringMethodOptionalLongArgMethod(info); | 7656 TestObjectV8Internal::stringMethodOptionalLongArgMethod(info); |
7349 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7657 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7350 } | 7658 } |
7351 | 7659 |
7352 static void testInterfaceEmptyMethodOptionalLongArgMethod(const v8::FunctionCall
backInfo<v8::Value>& info) | 7660 static void testInterfaceEmptyMethodOptionalLongArgMethod(const v8::FunctionCall
backInfo<v8::Value>& info) |
7353 { | 7661 { |
7354 ExceptionState exceptionState(ExceptionState::ExecutionContext, "testInterfa
ceEmptyMethodOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 7662 ExceptionState exceptionState(ExceptionState::ExecutionContext, "testInterfa
ceEmptyMethodOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
7355 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7663 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
7356 int optionalLongArg; | 7664 int optionalLongArg; |
7357 { | 7665 { |
7358 if (UNLIKELY(info.Length() <= 0)) { | 7666 if (UNLIKELY(info.Length() <= 0)) { |
7359 v8SetReturnValue(info, impl->testInterfaceEmptyMethodOptionalLongArg
()); | 7667 v8SetReturnValue(info, impl->testInterfaceEmptyMethodOptionalLongArg
()); |
7360 return; | 7668 return; |
7361 } | 7669 } |
7362 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0],
exceptionState), exceptionState); | 7670 optionalLongArg = toInt32(info[0], exceptionState); |
| 7671 if (exceptionState.throwIfNeeded()) |
| 7672 return; |
7363 } | 7673 } |
7364 v8SetReturnValue(info, impl->testInterfaceEmptyMethodOptionalLongArg(optiona
lLongArg)); | 7674 v8SetReturnValue(info, impl->testInterfaceEmptyMethodOptionalLongArg(optiona
lLongArg)); |
7365 } | 7675 } |
7366 | 7676 |
7367 static void testInterfaceEmptyMethodOptionalLongArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) | 7677 static void testInterfaceEmptyMethodOptionalLongArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
7368 { | 7678 { |
7369 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7679 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
7370 TestObjectV8Internal::testInterfaceEmptyMethodOptionalLongArgMethod(info); | 7680 TestObjectV8Internal::testInterfaceEmptyMethodOptionalLongArgMethod(info); |
7371 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7681 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7372 } | 7682 } |
7373 | 7683 |
7374 static void longMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 7684 static void longMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
7375 { | 7685 { |
7376 ExceptionState exceptionState(ExceptionState::ExecutionContext, "longMethodO
ptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 7686 ExceptionState exceptionState(ExceptionState::ExecutionContext, "longMethodO
ptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
7377 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7687 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
7378 int optionalLongArg; | 7688 int optionalLongArg; |
7379 { | 7689 { |
7380 if (UNLIKELY(info.Length() <= 0)) { | 7690 if (UNLIKELY(info.Length() <= 0)) { |
7381 v8SetReturnValueInt(info, impl->longMethodOptionalLongArg()); | 7691 v8SetReturnValueInt(info, impl->longMethodOptionalLongArg()); |
7382 return; | 7692 return; |
7383 } | 7693 } |
7384 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0],
exceptionState), exceptionState); | 7694 optionalLongArg = toInt32(info[0], exceptionState); |
| 7695 if (exceptionState.throwIfNeeded()) |
| 7696 return; |
7385 } | 7697 } |
7386 v8SetReturnValueInt(info, impl->longMethodOptionalLongArg(optionalLongArg)); | 7698 v8SetReturnValueInt(info, impl->longMethodOptionalLongArg(optionalLongArg)); |
7387 } | 7699 } |
7388 | 7700 |
7389 static void longMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 7701 static void longMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
7390 { | 7702 { |
7391 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7703 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
7392 TestObjectV8Internal::longMethodOptionalLongArgMethod(info); | 7704 TestObjectV8Internal::longMethodOptionalLongArgMethod(info); |
7393 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7705 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7394 } | 7706 } |
7395 | 7707 |
7396 static void voidMethodLongArgOptionalLongArgMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) | 7708 static void voidMethodLongArgOptionalLongArgMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) |
7397 { | 7709 { |
7398 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 7710 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
7399 if (UNLIKELY(info.Length() < 1)) { | 7711 if (UNLIKELY(info.Length() < 1)) { |
7400 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 7712 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
7401 exceptionState.throwIfNeeded(); | 7713 exceptionState.throwIfNeeded(); |
7402 return; | 7714 return; |
7403 } | 7715 } |
7404 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7716 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
7405 int longArg; | 7717 int longArg; |
7406 int optionalLongArg; | 7718 int optionalLongArg; |
7407 { | 7719 { |
7408 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); | 7720 longArg = toInt32(info[0], exceptionState); |
| 7721 if (exceptionState.throwIfNeeded()) |
| 7722 return; |
7409 if (UNLIKELY(info.Length() <= 1)) { | 7723 if (UNLIKELY(info.Length() <= 1)) { |
7410 impl->voidMethodLongArgOptionalLongArg(longArg); | 7724 impl->voidMethodLongArgOptionalLongArg(longArg); |
7411 return; | 7725 return; |
7412 } | 7726 } |
7413 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[1],
exceptionState), exceptionState); | 7727 optionalLongArg = toInt32(info[1], exceptionState); |
| 7728 if (exceptionState.throwIfNeeded()) |
| 7729 return; |
7414 } | 7730 } |
7415 impl->voidMethodLongArgOptionalLongArg(longArg, optionalLongArg); | 7731 impl->voidMethodLongArgOptionalLongArg(longArg, optionalLongArg); |
7416 } | 7732 } |
7417 | 7733 |
7418 static void voidMethodLongArgOptionalLongArgMethodCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) | 7734 static void voidMethodLongArgOptionalLongArgMethodCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
7419 { | 7735 { |
7420 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7736 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
7421 TestObjectV8Internal::voidMethodLongArgOptionalLongArgMethod(info); | 7737 TestObjectV8Internal::voidMethodLongArgOptionalLongArgMethod(info); |
7422 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7738 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7423 } | 7739 } |
7424 | 7740 |
7425 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethod(const v8::Func
tionCallbackInfo<v8::Value>& info) | 7741 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethod(const v8::Func
tionCallbackInfo<v8::Value>& info) |
7426 { | 7742 { |
7427 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgOptionalLongArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsol
ate()); | 7743 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgOptionalLongArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsol
ate()); |
7428 if (UNLIKELY(info.Length() < 1)) { | 7744 if (UNLIKELY(info.Length() < 1)) { |
7429 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 7745 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
7430 exceptionState.throwIfNeeded(); | 7746 exceptionState.throwIfNeeded(); |
7431 return; | 7747 return; |
7432 } | 7748 } |
7433 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7749 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
7434 int longArg; | 7750 int longArg; |
7435 int optionalLongArg1; | 7751 int optionalLongArg1; |
7436 int optionalLongArg2; | 7752 int optionalLongArg2; |
7437 { | 7753 { |
7438 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); | 7754 longArg = toInt32(info[0], exceptionState); |
| 7755 if (exceptionState.throwIfNeeded()) |
| 7756 return; |
7439 if (UNLIKELY(info.Length() <= 1)) { | 7757 if (UNLIKELY(info.Length() <= 1)) { |
7440 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg); | 7758 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg); |
7441 return; | 7759 return; |
7442 } | 7760 } |
7443 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg1, toInt32(info[1],
exceptionState), exceptionState); | 7761 optionalLongArg1 = toInt32(info[1], exceptionState); |
| 7762 if (exceptionState.throwIfNeeded()) |
| 7763 return; |
7444 if (UNLIKELY(info.Length() <= 2)) { | 7764 if (UNLIKELY(info.Length() <= 2)) { |
7445 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optio
nalLongArg1); | 7765 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optio
nalLongArg1); |
7446 return; | 7766 return; |
7447 } | 7767 } |
7448 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg2, toInt32(info[2],
exceptionState), exceptionState); | 7768 optionalLongArg2 = toInt32(info[2], exceptionState); |
| 7769 if (exceptionState.throwIfNeeded()) |
| 7770 return; |
7449 } | 7771 } |
7450 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optionalLongA
rg1, optionalLongArg2); | 7772 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optionalLongA
rg1, optionalLongArg2); |
7451 } | 7773 } |
7452 | 7774 |
7453 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethodCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) | 7775 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethodCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) |
7454 { | 7776 { |
7455 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7777 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
7456 TestObjectV8Internal::voidMethodLongArgOptionalLongArgOptionalLongArgMethod(
info); | 7778 TestObjectV8Internal::voidMethodLongArgOptionalLongArgOptionalLongArgMethod(
info); |
7457 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7779 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7458 } | 7780 } |
7459 | 7781 |
7460 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethod(const v8::Funct
ionCallbackInfo<v8::Value>& info) | 7782 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethod(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
7461 { | 7783 { |
7462 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgOptionalTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsola
te()); | 7784 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgOptionalTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsola
te()); |
7463 if (UNLIKELY(info.Length() < 1)) { | 7785 if (UNLIKELY(info.Length() < 1)) { |
7464 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 7786 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
7465 exceptionState.throwIfNeeded(); | 7787 exceptionState.throwIfNeeded(); |
7466 return; | 7788 return; |
7467 } | 7789 } |
7468 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7790 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
7469 int longArg; | 7791 int longArg; |
7470 TestInterfaceEmpty* optionalTestInterfaceEmpty; | 7792 TestInterfaceEmpty* optionalTestInterfaceEmpty; |
7471 { | 7793 { |
7472 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); | 7794 longArg = toInt32(info[0], exceptionState); |
| 7795 if (exceptionState.throwIfNeeded()) |
| 7796 return; |
7473 if (UNLIKELY(info.Length() <= 1)) { | 7797 if (UNLIKELY(info.Length() <= 1)) { |
7474 impl->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg); | 7798 impl->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg); |
7475 return; | 7799 return; |
7476 } | 7800 } |
7477 optionalTestInterfaceEmpty = V8TestInterfaceEmpty::toImplWithTypeCheck(i
nfo.GetIsolate(), info[1]); | 7801 optionalTestInterfaceEmpty = V8TestInterfaceEmpty::toImplWithTypeCheck(i
nfo.GetIsolate(), info[1]); |
7478 } | 7802 } |
7479 impl->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg, optionalTestIn
terfaceEmpty); | 7803 impl->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg, optionalTestIn
terfaceEmpty); |
7480 } | 7804 } |
7481 | 7805 |
7482 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback(const v
8::FunctionCallbackInfo<v8::Value>& info) | 7806 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback(const v
8::FunctionCallbackInfo<v8::Value>& info) |
(...skipping 13 matching lines...) Expand all Loading... |
7496 } | 7820 } |
7497 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7821 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
7498 TestInterfaceEmpty* optionalTestInterfaceEmpty; | 7822 TestInterfaceEmpty* optionalTestInterfaceEmpty; |
7499 int longArg; | 7823 int longArg; |
7500 { | 7824 { |
7501 optionalTestInterfaceEmpty = V8TestInterfaceEmpty::toImplWithTypeCheck(i
nfo.GetIsolate(), info[0]); | 7825 optionalTestInterfaceEmpty = V8TestInterfaceEmpty::toImplWithTypeCheck(i
nfo.GetIsolate(), info[0]); |
7502 if (UNLIKELY(info.Length() <= 1)) { | 7826 if (UNLIKELY(info.Length() <= 1)) { |
7503 impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInt
erfaceEmpty); | 7827 impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInt
erfaceEmpty); |
7504 return; | 7828 return; |
7505 } | 7829 } |
7506 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[1], exceptio
nState), exceptionState); | 7830 longArg = toInt32(info[1], exceptionState); |
| 7831 if (exceptionState.throwIfNeeded()) |
| 7832 return; |
7507 } | 7833 } |
7508 impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfaceEm
pty, longArg); | 7834 impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfaceEm
pty, longArg); |
7509 } | 7835 } |
7510 | 7836 |
7511 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethodCallback(const v
8::FunctionCallbackInfo<v8::Value>& info) | 7837 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethodCallback(const v
8::FunctionCallbackInfo<v8::Value>& info) |
7512 { | 7838 { |
7513 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7839 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
7514 TestObjectV8Internal::voidMethodTestInterfaceEmptyArgOptionalLongArgMethod(i
nfo); | 7840 TestObjectV8Internal::voidMethodTestInterfaceEmptyArgOptionalLongArgMethod(i
nfo); |
7515 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7841 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7516 } | 7842 } |
7517 | 7843 |
7518 static void voidMethodOptionalDictionaryArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) | 7844 static void voidMethodOptionalDictionaryArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) |
7519 { | 7845 { |
7520 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO
ptionalDictionaryArg", "TestObject", info.Holder(), info.GetIsolate()); | 7846 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO
ptionalDictionaryArg", "TestObject", info.Holder(), info.GetIsolate()); |
7521 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7847 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
7522 Dictionary optionalDictionaryArg; | 7848 Dictionary optionalDictionaryArg; |
7523 { | 7849 { |
7524 if (!isUndefinedOrNull(info[0]) && !info[0]->IsObject()) { | 7850 if (!isUndefinedOrNull(info[0]) && !info[0]->IsObject()) { |
7525 exceptionState.throwTypeError("parameter 1 ('optionalDictionaryArg')
is not an object."); | 7851 exceptionState.throwTypeError("parameter 1 ('optionalDictionaryArg')
is not an object."); |
7526 exceptionState.throwIfNeeded(); | 7852 exceptionState.throwIfNeeded(); |
7527 return; | 7853 return; |
7528 } | 7854 } |
7529 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalDictionaryArg, Dictionary(
info[0], info.GetIsolate(), exceptionState), exceptionState); | 7855 optionalDictionaryArg = Dictionary(info[0], info.GetIsolate(), exception
State); |
| 7856 if (exceptionState.throwIfNeeded()) |
| 7857 return; |
7530 } | 7858 } |
7531 impl->voidMethodOptionalDictionaryArg(optionalDictionaryArg); | 7859 impl->voidMethodOptionalDictionaryArg(optionalDictionaryArg); |
7532 } | 7860 } |
7533 | 7861 |
7534 static void voidMethodOptionalDictionaryArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) | 7862 static void voidMethodOptionalDictionaryArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
7535 { | 7863 { |
7536 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7864 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
7537 TestObjectV8Internal::voidMethodOptionalDictionaryArgMethod(info); | 7865 TestObjectV8Internal::voidMethodOptionalDictionaryArgMethod(info); |
7538 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7866 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7539 } | 7867 } |
7540 | 7868 |
7541 static void voidMethodDefaultByteStringArgMethod(const v8::FunctionCallbackInfo<
v8::Value>& info) | 7869 static void voidMethodDefaultByteStringArgMethod(const v8::FunctionCallbackInfo<
v8::Value>& info) |
7542 { | 7870 { |
7543 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultByteStringArg", "TestObject", info.Holder(), info.GetIsolate()); | 7871 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultByteStringArg", "TestObject", info.Holder(), info.GetIsolate()); |
7544 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7872 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
7545 V8StringResource<> defaultByteStringArg; | 7873 V8StringResource<> defaultByteStringArg; |
7546 { | 7874 { |
7547 if (!info[0]->IsUndefined()) { | 7875 if (!info[0]->IsUndefined()) { |
7548 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultByteStringArg, toByteSt
ring(info[0], exceptionState), exceptionState); | 7876 defaultByteStringArg = toByteString(info[0], exceptionState); |
| 7877 if (exceptionState.throwIfNeeded()) |
| 7878 return; |
7549 } else { | 7879 } else { |
7550 defaultByteStringArg = String("foo"); | 7880 defaultByteStringArg = String("foo"); |
7551 } | 7881 } |
7552 } | 7882 } |
7553 impl->voidMethodDefaultByteStringArg(defaultByteStringArg); | 7883 impl->voidMethodDefaultByteStringArg(defaultByteStringArg); |
7554 } | 7884 } |
7555 | 7885 |
7556 static void voidMethodDefaultByteStringArgMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) | 7886 static void voidMethodDefaultByteStringArgMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
7557 { | 7887 { |
7558 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7888 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
7559 TestObjectV8Internal::voidMethodDefaultByteStringArgMethod(info); | 7889 TestObjectV8Internal::voidMethodDefaultByteStringArgMethod(info); |
7560 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7890 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7561 } | 7891 } |
7562 | 7892 |
7563 static void voidMethodDefaultStringArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) | 7893 static void voidMethodDefaultStringArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) |
7564 { | 7894 { |
7565 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7895 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
7566 V8StringResource<> defaultStringArg; | 7896 V8StringResource<> defaultStringArg; |
7567 { | 7897 { |
7568 if (!info[0]->IsUndefined()) { | 7898 if (!info[0]->IsUndefined()) { |
7569 TOSTRING_VOID_INTERNAL(defaultStringArg, info[0]); | 7899 defaultStringArg = info[0]; |
| 7900 if (!defaultStringArg.prepare()) |
| 7901 return; |
7570 } else { | 7902 } else { |
7571 defaultStringArg = String("foo"); | 7903 defaultStringArg = String("foo"); |
7572 } | 7904 } |
7573 } | 7905 } |
7574 impl->voidMethodDefaultStringArg(defaultStringArg); | 7906 impl->voidMethodDefaultStringArg(defaultStringArg); |
7575 } | 7907 } |
7576 | 7908 |
7577 static void voidMethodDefaultStringArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 7909 static void voidMethodDefaultStringArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
7578 { | 7910 { |
7579 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7911 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
7580 TestObjectV8Internal::voidMethodDefaultStringArgMethod(info); | 7912 TestObjectV8Internal::voidMethodDefaultStringArgMethod(info); |
7581 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7913 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7582 } | 7914 } |
7583 | 7915 |
7584 static void voidMethodDefaultIntegerArgsMethod(const v8::FunctionCallbackInfo<v8
::Value>& info) | 7916 static void voidMethodDefaultIntegerArgsMethod(const v8::FunctionCallbackInfo<v8
::Value>& info) |
7585 { | 7917 { |
7586 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultIntegerArgs", "TestObject", info.Holder(), info.GetIsolate()); | 7918 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultIntegerArgs", "TestObject", info.Holder(), info.GetIsolate()); |
7587 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7919 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
7588 int defaultLongArg; | 7920 int defaultLongArg; |
7589 long long defaultLongLongArg; | 7921 long long defaultLongLongArg; |
7590 unsigned defaultUnsignedArg; | 7922 unsigned defaultUnsignedArg; |
7591 { | 7923 { |
7592 if (!info[0]->IsUndefined()) { | 7924 if (!info[0]->IsUndefined()) { |
7593 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultLongArg, toInt32(info[0
], exceptionState), exceptionState); | 7925 defaultLongArg = toInt32(info[0], exceptionState); |
| 7926 if (exceptionState.throwIfNeeded()) |
| 7927 return; |
7594 } else { | 7928 } else { |
7595 defaultLongArg = 10; | 7929 defaultLongArg = 10; |
7596 } | 7930 } |
7597 if (!info[1]->IsUndefined()) { | 7931 if (!info[1]->IsUndefined()) { |
7598 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultLongLongArg, toInt64(in
fo[1], exceptionState), exceptionState); | 7932 defaultLongLongArg = toInt64(info[1], exceptionState); |
| 7933 if (exceptionState.throwIfNeeded()) |
| 7934 return; |
7599 } else { | 7935 } else { |
7600 defaultLongLongArg = -10; | 7936 defaultLongLongArg = -10; |
7601 } | 7937 } |
7602 if (!info[2]->IsUndefined()) { | 7938 if (!info[2]->IsUndefined()) { |
7603 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultUnsignedArg, toUInt32(i
nfo[2], exceptionState), exceptionState); | 7939 defaultUnsignedArg = toUInt32(info[2], exceptionState); |
| 7940 if (exceptionState.throwIfNeeded()) |
| 7941 return; |
7604 } else { | 7942 } else { |
7605 defaultUnsignedArg = 4294967295u; | 7943 defaultUnsignedArg = 4294967295u; |
7606 } | 7944 } |
7607 } | 7945 } |
7608 impl->voidMethodDefaultIntegerArgs(defaultLongArg, defaultLongLongArg, defau
ltUnsignedArg); | 7946 impl->voidMethodDefaultIntegerArgs(defaultLongArg, defaultLongLongArg, defau
ltUnsignedArg); |
7609 } | 7947 } |
7610 | 7948 |
7611 static void voidMethodDefaultIntegerArgsMethodCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 7949 static void voidMethodDefaultIntegerArgsMethodCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
7612 { | 7950 { |
7613 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7951 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
7614 TestObjectV8Internal::voidMethodDefaultIntegerArgsMethod(info); | 7952 TestObjectV8Internal::voidMethodDefaultIntegerArgsMethod(info); |
7615 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7953 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7616 } | 7954 } |
7617 | 7955 |
7618 static void voidMethodDefaultDoubleArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) | 7956 static void voidMethodDefaultDoubleArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) |
7619 { | 7957 { |
7620 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultDoubleArg", "TestObject", info.Holder(), info.GetIsolate()); | 7958 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultDoubleArg", "TestObject", info.Holder(), info.GetIsolate()); |
7621 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7959 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
7622 double defaultDoubleArg; | 7960 double defaultDoubleArg; |
7623 { | 7961 { |
7624 if (!info[0]->IsUndefined()) { | 7962 if (!info[0]->IsUndefined()) { |
7625 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultDoubleArg, toDouble(inf
o[0], exceptionState), exceptionState); | 7963 defaultDoubleArg = toDouble(info[0], exceptionState); |
| 7964 if (exceptionState.throwIfNeeded()) |
| 7965 return; |
7626 } else { | 7966 } else { |
7627 defaultDoubleArg = 0.5; | 7967 defaultDoubleArg = 0.5; |
7628 } | 7968 } |
7629 } | 7969 } |
7630 impl->voidMethodDefaultDoubleArg(defaultDoubleArg); | 7970 impl->voidMethodDefaultDoubleArg(defaultDoubleArg); |
7631 } | 7971 } |
7632 | 7972 |
7633 static void voidMethodDefaultDoubleArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 7973 static void voidMethodDefaultDoubleArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
7634 { | 7974 { |
7635 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7975 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7679 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 8019 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7680 } | 8020 } |
7681 | 8021 |
7682 static void voidMethodDefaultNullableByteStringArgMethod(const v8::FunctionCallb
ackInfo<v8::Value>& info) | 8022 static void voidMethodDefaultNullableByteStringArgMethod(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
7683 { | 8023 { |
7684 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultNullableByteStringArg", "TestObject", info.Holder(), info.GetIsolate()); | 8024 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultNullableByteStringArg", "TestObject", info.Holder(), info.GetIsolate()); |
7685 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8025 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
7686 V8StringResource<TreatNullAsNullString> defaultStringArg; | 8026 V8StringResource<TreatNullAsNullString> defaultStringArg; |
7687 { | 8027 { |
7688 if (!info[0]->IsUndefined()) { | 8028 if (!info[0]->IsUndefined()) { |
7689 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultStringArg, toByteString
(info[0], exceptionState), exceptionState); | 8029 defaultStringArg = toByteString(info[0], exceptionState); |
| 8030 if (exceptionState.throwIfNeeded()) |
| 8031 return; |
7690 } else { | 8032 } else { |
7691 defaultStringArg = nullptr; | 8033 defaultStringArg = nullptr; |
7692 } | 8034 } |
7693 } | 8035 } |
7694 impl->voidMethodDefaultNullableByteStringArg(defaultStringArg); | 8036 impl->voidMethodDefaultNullableByteStringArg(defaultStringArg); |
7695 } | 8037 } |
7696 | 8038 |
7697 static void voidMethodDefaultNullableByteStringArgMethodCallback(const v8::Funct
ionCallbackInfo<v8::Value>& info) | 8039 static void voidMethodDefaultNullableByteStringArgMethodCallback(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
7698 { | 8040 { |
7699 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 8041 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
7700 TestObjectV8Internal::voidMethodDefaultNullableByteStringArgMethod(info); | 8042 TestObjectV8Internal::voidMethodDefaultNullableByteStringArgMethod(info); |
7701 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 8043 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7702 } | 8044 } |
7703 | 8045 |
7704 static void voidMethodDefaultNullableStringArgMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 8046 static void voidMethodDefaultNullableStringArgMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
7705 { | 8047 { |
7706 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8048 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
7707 V8StringResource<TreatNullAsNullString> defaultStringArg; | 8049 V8StringResource<TreatNullAsNullString> defaultStringArg; |
7708 { | 8050 { |
7709 if (!info[0]->IsUndefined()) { | 8051 if (!info[0]->IsUndefined()) { |
7710 TOSTRING_VOID_INTERNAL(defaultStringArg, info[0]); | 8052 defaultStringArg = info[0]; |
| 8053 if (!defaultStringArg.prepare()) |
| 8054 return; |
7711 } else { | 8055 } else { |
7712 defaultStringArg = nullptr; | 8056 defaultStringArg = nullptr; |
7713 } | 8057 } |
7714 } | 8058 } |
7715 impl->voidMethodDefaultNullableStringArg(defaultStringArg); | 8059 impl->voidMethodDefaultNullableStringArg(defaultStringArg); |
7716 } | 8060 } |
7717 | 8061 |
7718 static void voidMethodDefaultNullableStringArgMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) | 8062 static void voidMethodDefaultNullableStringArgMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) |
7719 { | 8063 { |
7720 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 8064 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
(...skipping 24 matching lines...) Expand all Loading... |
7745 | 8089 |
7746 static void voidMethodDefaultDoubleOrStringArgsMethod(const v8::FunctionCallback
Info<v8::Value>& info) | 8090 static void voidMethodDefaultDoubleOrStringArgsMethod(const v8::FunctionCallback
Info<v8::Value>& info) |
7747 { | 8091 { |
7748 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultDoubleOrStringArgs", "TestObject", info.Holder(), info.GetIsolate()); | 8092 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultDoubleOrStringArgs", "TestObject", info.Holder(), info.GetIsolate()); |
7749 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8093 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
7750 DoubleOrString defaultLongArg; | 8094 DoubleOrString defaultLongArg; |
7751 DoubleOrString defaultStringArg; | 8095 DoubleOrString defaultStringArg; |
7752 DoubleOrString defaultNullArg; | 8096 DoubleOrString defaultNullArg; |
7753 { | 8097 { |
7754 if (!info[0]->IsUndefined()) { | 8098 if (!info[0]->IsUndefined()) { |
7755 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8DoubleOrString::toImpl(in
fo.GetIsolate(), info[0], defaultLongArg, exceptionState), exceptionState); | 8099 V8DoubleOrString::toImpl(info.GetIsolate(), info[0], defaultLongArg,
exceptionState); |
| 8100 if (exceptionState.throwIfNeeded()) |
| 8101 return; |
7756 } else { | 8102 } else { |
7757 defaultLongArg.setDouble(10); | 8103 defaultLongArg.setDouble(10); |
7758 } | 8104 } |
7759 if (!info[1]->IsUndefined()) { | 8105 if (!info[1]->IsUndefined()) { |
7760 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8DoubleOrStringOrNull::toI
mpl(info.GetIsolate(), info[1], defaultStringArg, exceptionState), exceptionStat
e); | 8106 V8DoubleOrStringOrNull::toImpl(info.GetIsolate(), info[1], defaultSt
ringArg, exceptionState); |
| 8107 if (exceptionState.throwIfNeeded()) |
| 8108 return; |
7761 } else { | 8109 } else { |
7762 defaultStringArg.setString(String("foo")); | 8110 defaultStringArg.setString(String("foo")); |
7763 } | 8111 } |
7764 if (!info[2]->IsUndefined()) { | 8112 if (!info[2]->IsUndefined()) { |
7765 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8DoubleOrStringOrNull::toI
mpl(info.GetIsolate(), info[2], defaultNullArg, exceptionState), exceptionState)
; | 8113 V8DoubleOrStringOrNull::toImpl(info.GetIsolate(), info[2], defaultNu
llArg, exceptionState); |
| 8114 if (exceptionState.throwIfNeeded()) |
| 8115 return; |
7766 } else { | 8116 } else { |
7767 /* null default value */; | 8117 /* null default value */; |
7768 } | 8118 } |
7769 } | 8119 } |
7770 impl->voidMethodDefaultDoubleOrStringArgs(defaultLongArg, defaultStringArg,
defaultNullArg); | 8120 impl->voidMethodDefaultDoubleOrStringArgs(defaultLongArg, defaultStringArg,
defaultNullArg); |
7771 } | 8121 } |
7772 | 8122 |
7773 static void voidMethodDefaultDoubleOrStringArgsMethodCallback(const v8::Function
CallbackInfo<v8::Value>& info) | 8123 static void voidMethodDefaultDoubleOrStringArgsMethodCallback(const v8::Function
CallbackInfo<v8::Value>& info) |
7774 { | 8124 { |
7775 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 8125 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
7776 TestObjectV8Internal::voidMethodDefaultDoubleOrStringArgsMethod(info); | 8126 TestObjectV8Internal::voidMethodDefaultDoubleOrStringArgsMethod(info); |
7777 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 8127 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7778 } | 8128 } |
7779 | 8129 |
7780 static void voidMethodDefaultStringSequenceArgMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 8130 static void voidMethodDefaultStringSequenceArgMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
7781 { | 8131 { |
7782 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultStringSequenceArg", "TestObject", info.Holder(), info.GetIsolate()); | 8132 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultStringSequenceArg", "TestObject", info.Holder(), info.GetIsolate()); |
7783 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8133 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
7784 Vector<String> defaultStringSequenceArg; | 8134 Vector<String> defaultStringSequenceArg; |
7785 { | 8135 { |
7786 if (!info[0]->IsUndefined()) { | 8136 if (!info[0]->IsUndefined()) { |
7787 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultStringSequenceArg, toIm
plArray<String>(info[0], 1, info.GetIsolate(), exceptionState), exceptionState); | 8137 defaultStringSequenceArg = toImplArray<String>(info[0], 1, info.GetI
solate(), exceptionState); |
| 8138 if (exceptionState.throwIfNeeded()) |
| 8139 return; |
7788 } else { | 8140 } else { |
7789 /* Nothing to do */; | 8141 /* Nothing to do */; |
7790 } | 8142 } |
7791 } | 8143 } |
7792 impl->voidMethodDefaultStringSequenceArg(defaultStringSequenceArg); | 8144 impl->voidMethodDefaultStringSequenceArg(defaultStringSequenceArg); |
7793 } | 8145 } |
7794 | 8146 |
7795 static void voidMethodDefaultStringSequenceArgMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) | 8147 static void voidMethodDefaultStringSequenceArgMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) |
7796 { | 8148 { |
7797 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 8149 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
7798 TestObjectV8Internal::voidMethodDefaultStringSequenceArgMethod(info); | 8150 TestObjectV8Internal::voidMethodDefaultStringSequenceArgMethod(info); |
7799 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 8151 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7800 } | 8152 } |
7801 | 8153 |
7802 static void voidMethodVariadicStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 8154 static void voidMethodVariadicStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
7803 { | 8155 { |
7804 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodV
ariadicStringArg", "TestObject", info.Holder(), info.GetIsolate()); | 8156 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodV
ariadicStringArg", "TestObject", info.Holder(), info.GetIsolate()); |
7805 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8157 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
7806 Vector<String> variadicStringArgs; | 8158 Vector<String> variadicStringArgs; |
7807 { | 8159 { |
7808 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(variadicStringArgs, toImplArgument
s<String>(info, 0, exceptionState), exceptionState); | 8160 variadicStringArgs = toImplArguments<String>(info, 0, exceptionState); |
| 8161 if (exceptionState.throwIfNeeded()) |
| 8162 return; |
7809 } | 8163 } |
7810 impl->voidMethodVariadicStringArg(variadicStringArgs); | 8164 impl->voidMethodVariadicStringArg(variadicStringArgs); |
7811 } | 8165 } |
7812 | 8166 |
7813 static void voidMethodVariadicStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 8167 static void voidMethodVariadicStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
7814 { | 8168 { |
7815 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 8169 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
7816 TestObjectV8Internal::voidMethodVariadicStringArgMethod(info); | 8170 TestObjectV8Internal::voidMethodVariadicStringArgMethod(info); |
7817 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 8171 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7818 } | 8172 } |
7819 | 8173 |
7820 static void voidMethodStringArgVariadicStringArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 8174 static void voidMethodStringArgVariadicStringArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
7821 { | 8175 { |
7822 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
tringArgVariadicStringArg", "TestObject", info.Holder(), info.GetIsolate()); | 8176 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
tringArgVariadicStringArg", "TestObject", info.Holder(), info.GetIsolate()); |
7823 if (UNLIKELY(info.Length() < 1)) { | 8177 if (UNLIKELY(info.Length() < 1)) { |
7824 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 8178 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
7825 exceptionState.throwIfNeeded(); | 8179 exceptionState.throwIfNeeded(); |
7826 return; | 8180 return; |
7827 } | 8181 } |
7828 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8182 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
7829 V8StringResource<> stringArg; | 8183 V8StringResource<> stringArg; |
7830 Vector<String> variadicStringArgs; | 8184 Vector<String> variadicStringArgs; |
7831 { | 8185 { |
7832 TOSTRING_VOID_INTERNAL(stringArg, info[0]); | 8186 stringArg = info[0]; |
7833 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(variadicStringArgs, toImplArgument
s<String>(info, 1, exceptionState), exceptionState); | 8187 if (!stringArg.prepare()) |
| 8188 return; |
| 8189 variadicStringArgs = toImplArguments<String>(info, 1, exceptionState); |
| 8190 if (exceptionState.throwIfNeeded()) |
| 8191 return; |
7834 } | 8192 } |
7835 impl->voidMethodStringArgVariadicStringArg(stringArg, variadicStringArgs); | 8193 impl->voidMethodStringArgVariadicStringArg(stringArg, variadicStringArgs); |
7836 } | 8194 } |
7837 | 8195 |
7838 static void voidMethodStringArgVariadicStringArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) | 8196 static void voidMethodStringArgVariadicStringArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) |
7839 { | 8197 { |
7840 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 8198 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
7841 TestObjectV8Internal::voidMethodStringArgVariadicStringArgMethod(info); | 8199 TestObjectV8Internal::voidMethodStringArgVariadicStringArgMethod(info); |
7842 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 8200 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7843 } | 8201 } |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7948 TestObjectV8Internal::voidMethodVariadicTestInterfaceWillBeGarbageCollectedA
rgMethod(info); | 8306 TestObjectV8Internal::voidMethodVariadicTestInterfaceWillBeGarbageCollectedA
rgMethod(info); |
7949 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 8307 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7950 } | 8308 } |
7951 | 8309 |
7952 static void overloadedMethodA1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8310 static void overloadedMethodA1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
7953 { | 8311 { |
7954 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodA", "TestObject", info.Holder(), info.GetIsolate()); | 8312 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodA", "TestObject", info.Holder(), info.GetIsolate()); |
7955 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8313 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
7956 int longArg; | 8314 int longArg; |
7957 { | 8315 { |
7958 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); | 8316 longArg = toInt32(info[0], exceptionState); |
| 8317 if (exceptionState.throwIfNeeded()) |
| 8318 return; |
7959 } | 8319 } |
7960 impl->overloadedMethodA(longArg); | 8320 impl->overloadedMethodA(longArg); |
7961 } | 8321 } |
7962 | 8322 |
7963 static void overloadedMethodA2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8323 static void overloadedMethodA2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
7964 { | 8324 { |
7965 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodA", "TestObject", info.Holder(), info.GetIsolate()); | 8325 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodA", "TestObject", info.Holder(), info.GetIsolate()); |
7966 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8326 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
7967 int longArg1; | 8327 int longArg1; |
7968 int longArg2; | 8328 int longArg2; |
7969 { | 8329 { |
7970 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg1, toInt32(info[0], excepti
onState), exceptionState); | 8330 longArg1 = toInt32(info[0], exceptionState); |
7971 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg2, toInt32(info[1], excepti
onState), exceptionState); | 8331 if (exceptionState.throwIfNeeded()) |
| 8332 return; |
| 8333 longArg2 = toInt32(info[1], exceptionState); |
| 8334 if (exceptionState.throwIfNeeded()) |
| 8335 return; |
7972 } | 8336 } |
7973 impl->overloadedMethodA(longArg1, longArg2); | 8337 impl->overloadedMethodA(longArg1, longArg2); |
7974 } | 8338 } |
7975 | 8339 |
7976 static void overloadedMethodAMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 8340 static void overloadedMethodAMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
7977 { | 8341 { |
7978 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodA", "TestObject", info.Holder(), info.GetIsolate()); | 8342 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodA", "TestObject", info.Holder(), info.GetIsolate()); |
7979 switch (std::min(2, info.Length())) { | 8343 switch (std::min(2, info.Length())) { |
7980 case 1: | 8344 case 1: |
7981 if (true) { | 8345 if (true) { |
(...skipping 10 matching lines...) Expand all Loading... |
7992 default: | 8356 default: |
7993 break; | 8357 break; |
7994 } | 8358 } |
7995 if (info.Length() < 1) { | 8359 if (info.Length() < 1) { |
7996 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 8360 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
7997 exceptionState.throwIfNeeded(); | 8361 exceptionState.throwIfNeeded(); |
7998 return; | 8362 return; |
7999 } | 8363 } |
8000 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 8364 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
8001 exceptionState.throwIfNeeded(); | 8365 exceptionState.throwIfNeeded(); |
| 8366 return; |
8002 } | 8367 } |
8003 | 8368 |
8004 static void overloadedMethodAMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 8369 static void overloadedMethodAMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
8005 { | 8370 { |
8006 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 8371 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
8007 TestObjectV8Internal::overloadedMethodAMethod(info); | 8372 TestObjectV8Internal::overloadedMethodAMethod(info); |
8008 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 8373 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
8009 } | 8374 } |
8010 | 8375 |
8011 static void overloadedMethodB1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8376 static void overloadedMethodB1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
8012 { | 8377 { |
8013 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodB", "TestObject", info.Holder(), info.GetIsolate()); | 8378 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodB", "TestObject", info.Holder(), info.GetIsolate()); |
8014 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8379 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8015 int longArg; | 8380 int longArg; |
8016 { | 8381 { |
8017 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); | 8382 longArg = toInt32(info[0], exceptionState); |
| 8383 if (exceptionState.throwIfNeeded()) |
| 8384 return; |
8018 } | 8385 } |
8019 impl->overloadedMethodB(longArg); | 8386 impl->overloadedMethodB(longArg); |
8020 } | 8387 } |
8021 | 8388 |
8022 static void overloadedMethodB2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8389 static void overloadedMethodB2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
8023 { | 8390 { |
8024 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodB", "TestObject", info.Holder(), info.GetIsolate()); | 8391 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodB", "TestObject", info.Holder(), info.GetIsolate()); |
8025 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8392 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8026 V8StringResource<> stringArg; | 8393 V8StringResource<> stringArg; |
8027 int longArg; | 8394 int longArg; |
8028 { | 8395 { |
8029 TOSTRING_VOID_INTERNAL(stringArg, info[0]); | 8396 stringArg = info[0]; |
| 8397 if (!stringArg.prepare()) |
| 8398 return; |
8030 if (UNLIKELY(info.Length() <= 1)) { | 8399 if (UNLIKELY(info.Length() <= 1)) { |
8031 impl->overloadedMethodB(stringArg); | 8400 impl->overloadedMethodB(stringArg); |
8032 return; | 8401 return; |
8033 } | 8402 } |
8034 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[1], exceptio
nState), exceptionState); | 8403 longArg = toInt32(info[1], exceptionState); |
| 8404 if (exceptionState.throwIfNeeded()) |
| 8405 return; |
8035 } | 8406 } |
8036 impl->overloadedMethodB(stringArg, longArg); | 8407 impl->overloadedMethodB(stringArg, longArg); |
8037 } | 8408 } |
8038 | 8409 |
8039 static void overloadedMethodBMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 8410 static void overloadedMethodBMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
8040 { | 8411 { |
8041 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodB", "TestObject", info.Holder(), info.GetIsolate()); | 8412 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodB", "TestObject", info.Holder(), info.GetIsolate()); |
8042 switch (std::min(2, info.Length())) { | 8413 switch (std::min(2, info.Length())) { |
8043 case 1: | 8414 case 1: |
8044 if (info[0]->IsNumber()) { | 8415 if (info[0]->IsNumber()) { |
(...skipping 18 matching lines...) Expand all Loading... |
8063 default: | 8434 default: |
8064 break; | 8435 break; |
8065 } | 8436 } |
8066 if (info.Length() < 1) { | 8437 if (info.Length() < 1) { |
8067 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 8438 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
8068 exceptionState.throwIfNeeded(); | 8439 exceptionState.throwIfNeeded(); |
8069 return; | 8440 return; |
8070 } | 8441 } |
8071 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 8442 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
8072 exceptionState.throwIfNeeded(); | 8443 exceptionState.throwIfNeeded(); |
| 8444 return; |
8073 } | 8445 } |
8074 | 8446 |
8075 static void overloadedMethodBMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 8447 static void overloadedMethodBMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
8076 { | 8448 { |
8077 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 8449 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
8078 TestObjectV8Internal::overloadedMethodBMethod(info); | 8450 TestObjectV8Internal::overloadedMethodBMethod(info); |
8079 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 8451 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
8080 } | 8452 } |
8081 | 8453 |
8082 static void overloadedMethodC1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8454 static void overloadedMethodC1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
8083 { | 8455 { |
8084 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodC", "TestObject", info.Holder(), info.GetIsolate()); | 8456 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodC", "TestObject", info.Holder(), info.GetIsolate()); |
8085 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8457 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8086 int longArg; | 8458 int longArg; |
8087 { | 8459 { |
8088 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); | 8460 longArg = toInt32(info[0], exceptionState); |
| 8461 if (exceptionState.throwIfNeeded()) |
| 8462 return; |
8089 } | 8463 } |
8090 impl->overloadedMethodC(longArg); | 8464 impl->overloadedMethodC(longArg); |
8091 } | 8465 } |
8092 | 8466 |
8093 static void overloadedMethodC2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8467 static void overloadedMethodC2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
8094 { | 8468 { |
8095 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8469 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8096 TestInterfaceEmpty* testInterfaceEmptyArg; | 8470 TestInterfaceEmpty* testInterfaceEmptyArg; |
8097 { | 8471 { |
8098 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.G
etIsolate(), info[0]); | 8472 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.G
etIsolate(), info[0]); |
(...skipping 18 matching lines...) Expand all Loading... |
8117 default: | 8491 default: |
8118 break; | 8492 break; |
8119 } | 8493 } |
8120 if (info.Length() < 1) { | 8494 if (info.Length() < 1) { |
8121 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 8495 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
8122 exceptionState.throwIfNeeded(); | 8496 exceptionState.throwIfNeeded(); |
8123 return; | 8497 return; |
8124 } | 8498 } |
8125 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 8499 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
8126 exceptionState.throwIfNeeded(); | 8500 exceptionState.throwIfNeeded(); |
| 8501 return; |
8127 } | 8502 } |
8128 | 8503 |
8129 static void overloadedMethodCMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 8504 static void overloadedMethodCMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
8130 { | 8505 { |
8131 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 8506 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
8132 TestObjectV8Internal::overloadedMethodCMethod(info); | 8507 TestObjectV8Internal::overloadedMethodCMethod(info); |
8133 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 8508 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
8134 } | 8509 } |
8135 | 8510 |
8136 static void overloadedMethodD1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8511 static void overloadedMethodD1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
8137 { | 8512 { |
8138 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodD", "TestObject", info.Holder(), info.GetIsolate()); | 8513 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodD", "TestObject", info.Holder(), info.GetIsolate()); |
8139 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8514 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8140 int longArg; | 8515 int longArg; |
8141 { | 8516 { |
8142 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); | 8517 longArg = toInt32(info[0], exceptionState); |
| 8518 if (exceptionState.throwIfNeeded()) |
| 8519 return; |
8143 } | 8520 } |
8144 impl->overloadedMethodD(longArg); | 8521 impl->overloadedMethodD(longArg); |
8145 } | 8522 } |
8146 | 8523 |
8147 static void overloadedMethodD2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8524 static void overloadedMethodD2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
8148 { | 8525 { |
8149 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodD", "TestObject", info.Holder(), info.GetIsolate()); | 8526 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodD", "TestObject", info.Holder(), info.GetIsolate()); |
8150 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8527 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8151 Vector<int> longArrayArg; | 8528 Vector<int> longArrayArg; |
8152 { | 8529 { |
8153 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArrayArg, toImplArray<int>(inf
o[0], 1, info.GetIsolate(), exceptionState), exceptionState); | 8530 longArrayArg = toImplArray<int>(info[0], 1, info.GetIsolate(), exception
State); |
| 8531 if (exceptionState.throwIfNeeded()) |
| 8532 return; |
8154 } | 8533 } |
8155 impl->overloadedMethodD(longArrayArg); | 8534 impl->overloadedMethodD(longArrayArg); |
8156 } | 8535 } |
8157 | 8536 |
8158 static void overloadedMethodDMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 8537 static void overloadedMethodDMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
8159 { | 8538 { |
8160 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodD", "TestObject", info.Holder(), info.GetIsolate()); | 8539 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodD", "TestObject", info.Holder(), info.GetIsolate()); |
8161 switch (std::min(1, info.Length())) { | 8540 switch (std::min(1, info.Length())) { |
8162 case 1: | 8541 case 1: |
8163 if (info[0]->IsArray()) { | 8542 if (info[0]->IsArray()) { |
8164 overloadedMethodD2Method(info); | 8543 overloadedMethodD2Method(info); |
8165 return; | 8544 return; |
8166 } | 8545 } |
8167 if (true) { | 8546 if (true) { |
8168 overloadedMethodD1Method(info); | 8547 overloadedMethodD1Method(info); |
8169 return; | 8548 return; |
8170 } | 8549 } |
8171 break; | 8550 break; |
8172 default: | 8551 default: |
8173 break; | 8552 break; |
8174 } | 8553 } |
8175 if (info.Length() < 1) { | 8554 if (info.Length() < 1) { |
8176 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 8555 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
8177 exceptionState.throwIfNeeded(); | 8556 exceptionState.throwIfNeeded(); |
8178 return; | 8557 return; |
8179 } | 8558 } |
8180 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 8559 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
8181 exceptionState.throwIfNeeded(); | 8560 exceptionState.throwIfNeeded(); |
| 8561 return; |
8182 } | 8562 } |
8183 | 8563 |
8184 static void overloadedMethodDMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 8564 static void overloadedMethodDMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
8185 { | 8565 { |
8186 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 8566 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
8187 TestObjectV8Internal::overloadedMethodDMethod(info); | 8567 TestObjectV8Internal::overloadedMethodDMethod(info); |
8188 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 8568 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
8189 } | 8569 } |
8190 | 8570 |
8191 static void overloadedMethodE1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8571 static void overloadedMethodE1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
8192 { | 8572 { |
8193 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodE", "TestObject", info.Holder(), info.GetIsolate()); | 8573 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodE", "TestObject", info.Holder(), info.GetIsolate()); |
8194 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8574 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8195 int longArg; | 8575 int longArg; |
8196 { | 8576 { |
8197 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); | 8577 longArg = toInt32(info[0], exceptionState); |
| 8578 if (exceptionState.throwIfNeeded()) |
| 8579 return; |
8198 } | 8580 } |
8199 impl->overloadedMethodE(longArg); | 8581 impl->overloadedMethodE(longArg); |
8200 } | 8582 } |
8201 | 8583 |
8202 static void overloadedMethodE2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8584 static void overloadedMethodE2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
8203 { | 8585 { |
8204 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8586 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8205 TestInterfaceEmpty* testInterfaceEmptyOrNullArg; | 8587 TestInterfaceEmpty* testInterfaceEmptyOrNullArg; |
8206 { | 8588 { |
8207 testInterfaceEmptyOrNullArg = V8TestInterfaceEmpty::toImplWithTypeCheck(
info.GetIsolate(), info[0]); | 8589 testInterfaceEmptyOrNullArg = V8TestInterfaceEmpty::toImplWithTypeCheck(
info.GetIsolate(), info[0]); |
(...skipping 22 matching lines...) Expand all Loading... |
8230 default: | 8612 default: |
8231 break; | 8613 break; |
8232 } | 8614 } |
8233 if (info.Length() < 1) { | 8615 if (info.Length() < 1) { |
8234 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 8616 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
8235 exceptionState.throwIfNeeded(); | 8617 exceptionState.throwIfNeeded(); |
8236 return; | 8618 return; |
8237 } | 8619 } |
8238 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 8620 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
8239 exceptionState.throwIfNeeded(); | 8621 exceptionState.throwIfNeeded(); |
| 8622 return; |
8240 } | 8623 } |
8241 | 8624 |
8242 static void overloadedMethodEMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 8625 static void overloadedMethodEMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
8243 { | 8626 { |
8244 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 8627 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
8245 TestObjectV8Internal::overloadedMethodEMethod(info); | 8628 TestObjectV8Internal::overloadedMethodEMethod(info); |
8246 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 8629 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
8247 } | 8630 } |
8248 | 8631 |
8249 static void overloadedMethodF1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8632 static void overloadedMethodF1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
8250 { | 8633 { |
8251 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8634 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8252 V8StringResource<> stringArg; | 8635 V8StringResource<> stringArg; |
8253 { | 8636 { |
8254 if (UNLIKELY(info.Length() <= 0)) { | 8637 if (UNLIKELY(info.Length() <= 0)) { |
8255 impl->overloadedMethodF(); | 8638 impl->overloadedMethodF(); |
8256 return; | 8639 return; |
8257 } | 8640 } |
8258 TOSTRING_VOID_INTERNAL(stringArg, info[0]); | 8641 stringArg = info[0]; |
| 8642 if (!stringArg.prepare()) |
| 8643 return; |
8259 } | 8644 } |
8260 impl->overloadedMethodF(stringArg); | 8645 impl->overloadedMethodF(stringArg); |
8261 } | 8646 } |
8262 | 8647 |
8263 static void overloadedMethodF2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8648 static void overloadedMethodF2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
8264 { | 8649 { |
8265 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodF", "TestObject", info.Holder(), info.GetIsolate()); | 8650 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodF", "TestObject", info.Holder(), info.GetIsolate()); |
8266 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8651 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8267 double doubleArg; | 8652 double doubleArg; |
8268 { | 8653 { |
8269 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(doubleArg, toDouble(info[0], excep
tionState), exceptionState); | 8654 doubleArg = toDouble(info[0], exceptionState); |
| 8655 if (exceptionState.throwIfNeeded()) |
| 8656 return; |
8270 } | 8657 } |
8271 impl->overloadedMethodF(doubleArg); | 8658 impl->overloadedMethodF(doubleArg); |
8272 } | 8659 } |
8273 | 8660 |
8274 static void overloadedMethodFMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 8661 static void overloadedMethodFMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
8275 { | 8662 { |
8276 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodF", "TestObject", info.Holder(), info.GetIsolate()); | 8663 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodF", "TestObject", info.Holder(), info.GetIsolate()); |
8277 switch (std::min(1, info.Length())) { | 8664 switch (std::min(1, info.Length())) { |
8278 case 0: | 8665 case 0: |
8279 if (true) { | 8666 if (true) { |
(...skipping 17 matching lines...) Expand all Loading... |
8297 if (true) { | 8684 if (true) { |
8298 overloadedMethodF2Method(info); | 8685 overloadedMethodF2Method(info); |
8299 return; | 8686 return; |
8300 } | 8687 } |
8301 break; | 8688 break; |
8302 default: | 8689 default: |
8303 break; | 8690 break; |
8304 } | 8691 } |
8305 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 8692 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
8306 exceptionState.throwIfNeeded(); | 8693 exceptionState.throwIfNeeded(); |
| 8694 return; |
8307 } | 8695 } |
8308 | 8696 |
8309 static void overloadedMethodFMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 8697 static void overloadedMethodFMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
8310 { | 8698 { |
8311 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 8699 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
8312 TestObjectV8Internal::overloadedMethodFMethod(info); | 8700 TestObjectV8Internal::overloadedMethodFMethod(info); |
8313 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 8701 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
8314 } | 8702 } |
8315 | 8703 |
8316 static void overloadedMethodG1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8704 static void overloadedMethodG1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
8317 { | 8705 { |
8318 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodG", "TestObject", info.Holder(), info.GetIsolate()); | 8706 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodG", "TestObject", info.Holder(), info.GetIsolate()); |
8319 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8707 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8320 int longArg; | 8708 int longArg; |
8321 { | 8709 { |
8322 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); | 8710 longArg = toInt32(info[0], exceptionState); |
| 8711 if (exceptionState.throwIfNeeded()) |
| 8712 return; |
8323 } | 8713 } |
8324 impl->overloadedMethodG(longArg); | 8714 impl->overloadedMethodG(longArg); |
8325 } | 8715 } |
8326 | 8716 |
8327 static void overloadedMethodG2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8717 static void overloadedMethodG2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
8328 { | 8718 { |
8329 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8719 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8330 TestInterfaceEmpty* testInterfaceEmptyOrNullArg; | 8720 TestInterfaceEmpty* testInterfaceEmptyOrNullArg; |
8331 { | 8721 { |
8332 if (!info[0]->IsUndefined()) { | 8722 if (!info[0]->IsUndefined()) { |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8364 if (true) { | 8754 if (true) { |
8365 overloadedMethodG1Method(info); | 8755 overloadedMethodG1Method(info); |
8366 return; | 8756 return; |
8367 } | 8757 } |
8368 break; | 8758 break; |
8369 default: | 8759 default: |
8370 break; | 8760 break; |
8371 } | 8761 } |
8372 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 8762 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
8373 exceptionState.throwIfNeeded(); | 8763 exceptionState.throwIfNeeded(); |
| 8764 return; |
8374 } | 8765 } |
8375 | 8766 |
8376 static void overloadedMethodGMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 8767 static void overloadedMethodGMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
8377 { | 8768 { |
8378 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 8769 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
8379 TestObjectV8Internal::overloadedMethodGMethod(info); | 8770 TestObjectV8Internal::overloadedMethodGMethod(info); |
8380 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 8771 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
8381 } | 8772 } |
8382 | 8773 |
8383 static void overloadedMethodH1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8774 static void overloadedMethodH1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8417 default: | 8808 default: |
8418 break; | 8809 break; |
8419 } | 8810 } |
8420 if (info.Length() < 1) { | 8811 if (info.Length() < 1) { |
8421 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 8812 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
8422 exceptionState.throwIfNeeded(); | 8813 exceptionState.throwIfNeeded(); |
8423 return; | 8814 return; |
8424 } | 8815 } |
8425 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 8816 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
8426 exceptionState.throwIfNeeded(); | 8817 exceptionState.throwIfNeeded(); |
| 8818 return; |
8427 } | 8819 } |
8428 | 8820 |
8429 static void overloadedMethodHMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 8821 static void overloadedMethodHMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
8430 { | 8822 { |
8431 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 8823 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
8432 TestObjectV8Internal::overloadedMethodHMethod(info); | 8824 TestObjectV8Internal::overloadedMethodHMethod(info); |
8433 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 8825 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
8434 } | 8826 } |
8435 | 8827 |
8436 static void overloadedMethodI1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8828 static void overloadedMethodI1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
8437 { | 8829 { |
8438 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8830 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8439 V8StringResource<> stringArg; | 8831 V8StringResource<> stringArg; |
8440 { | 8832 { |
8441 TOSTRING_VOID_INTERNAL(stringArg, info[0]); | 8833 stringArg = info[0]; |
| 8834 if (!stringArg.prepare()) |
| 8835 return; |
8442 } | 8836 } |
8443 impl->overloadedMethodI(stringArg); | 8837 impl->overloadedMethodI(stringArg); |
8444 } | 8838 } |
8445 | 8839 |
8446 static void overloadedMethodI2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8840 static void overloadedMethodI2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
8447 { | 8841 { |
8448 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodI", "TestObject", info.Holder(), info.GetIsolate()); | 8842 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodI", "TestObject", info.Holder(), info.GetIsolate()); |
8449 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8843 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8450 double doubleArg; | 8844 double doubleArg; |
8451 { | 8845 { |
8452 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(doubleArg, toDouble(info[0], excep
tionState), exceptionState); | 8846 doubleArg = toDouble(info[0], exceptionState); |
| 8847 if (exceptionState.throwIfNeeded()) |
| 8848 return; |
8453 } | 8849 } |
8454 impl->overloadedMethodI(doubleArg); | 8850 impl->overloadedMethodI(doubleArg); |
8455 } | 8851 } |
8456 | 8852 |
8457 static void overloadedMethodIMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 8853 static void overloadedMethodIMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
8458 { | 8854 { |
8459 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodI", "TestObject", info.Holder(), info.GetIsolate()); | 8855 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodI", "TestObject", info.Holder(), info.GetIsolate()); |
8460 switch (std::min(1, info.Length())) { | 8856 switch (std::min(1, info.Length())) { |
8461 case 1: | 8857 case 1: |
8462 if (info[0]->IsNumber()) { | 8858 if (info[0]->IsNumber()) { |
(...skipping 12 matching lines...) Expand all Loading... |
8475 default: | 8871 default: |
8476 break; | 8872 break; |
8477 } | 8873 } |
8478 if (info.Length() < 1) { | 8874 if (info.Length() < 1) { |
8479 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 8875 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
8480 exceptionState.throwIfNeeded(); | 8876 exceptionState.throwIfNeeded(); |
8481 return; | 8877 return; |
8482 } | 8878 } |
8483 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 8879 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
8484 exceptionState.throwIfNeeded(); | 8880 exceptionState.throwIfNeeded(); |
| 8881 return; |
8485 } | 8882 } |
8486 | 8883 |
8487 static void overloadedMethodIMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 8884 static void overloadedMethodIMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
8488 { | 8885 { |
8489 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 8886 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
8490 TestObjectV8Internal::overloadedMethodIMethod(info); | 8887 TestObjectV8Internal::overloadedMethodIMethod(info); |
8491 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 8888 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
8492 } | 8889 } |
8493 | 8890 |
8494 static void overloadedMethodJ1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8891 static void overloadedMethodJ1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
8495 { | 8892 { |
8496 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8893 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8497 V8StringResource<> stringArg; | 8894 V8StringResource<> stringArg; |
8498 { | 8895 { |
8499 TOSTRING_VOID_INTERNAL(stringArg, info[0]); | 8896 stringArg = info[0]; |
| 8897 if (!stringArg.prepare()) |
| 8898 return; |
8500 } | 8899 } |
8501 impl->overloadedMethodJ(stringArg); | 8900 impl->overloadedMethodJ(stringArg); |
8502 } | 8901 } |
8503 | 8902 |
8504 static void overloadedMethodJ2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8903 static void overloadedMethodJ2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
8505 { | 8904 { |
8506 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodJ", "TestObject", info.Holder(), info.GetIsolate()); | 8905 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodJ", "TestObject", info.Holder(), info.GetIsolate()); |
8507 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8906 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8508 TestDictionary testDictionaryArg; | 8907 TestDictionary testDictionaryArg; |
8509 { | 8908 { |
8510 if (!isUndefinedOrNull(info[0]) && !info[0]->IsObject()) { | 8909 if (!isUndefinedOrNull(info[0]) && !info[0]->IsObject()) { |
8511 exceptionState.throwTypeError("parameter 1 ('testDictionaryArg') is
not an object."); | 8910 exceptionState.throwTypeError("parameter 1 ('testDictionaryArg') is
not an object."); |
8512 exceptionState.throwIfNeeded(); | 8911 exceptionState.throwIfNeeded(); |
8513 return; | 8912 return; |
8514 } | 8913 } |
8515 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8TestDictionary::toImpl(info.G
etIsolate(), info[0], testDictionaryArg, exceptionState), exceptionState); | 8914 V8TestDictionary::toImpl(info.GetIsolate(), info[0], testDictionaryArg,
exceptionState); |
| 8915 if (exceptionState.throwIfNeeded()) |
| 8916 return; |
8516 } | 8917 } |
8517 impl->overloadedMethodJ(testDictionaryArg); | 8918 impl->overloadedMethodJ(testDictionaryArg); |
8518 } | 8919 } |
8519 | 8920 |
8520 static void overloadedMethodJMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 8921 static void overloadedMethodJMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
8521 { | 8922 { |
8522 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodJ", "TestObject", info.Holder(), info.GetIsolate()); | 8923 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodJ", "TestObject", info.Holder(), info.GetIsolate()); |
8523 switch (std::min(1, info.Length())) { | 8924 switch (std::min(1, info.Length())) { |
8524 case 1: | 8925 case 1: |
8525 if (info[0]->IsObject()) { | 8926 if (info[0]->IsObject()) { |
8526 overloadedMethodJ2Method(info); | 8927 overloadedMethodJ2Method(info); |
8527 return; | 8928 return; |
8528 } | 8929 } |
8529 if (true) { | 8930 if (true) { |
8530 overloadedMethodJ1Method(info); | 8931 overloadedMethodJ1Method(info); |
8531 return; | 8932 return; |
8532 } | 8933 } |
8533 break; | 8934 break; |
8534 default: | 8935 default: |
8535 break; | 8936 break; |
8536 } | 8937 } |
8537 if (info.Length() < 1) { | 8938 if (info.Length() < 1) { |
8538 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 8939 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
8539 exceptionState.throwIfNeeded(); | 8940 exceptionState.throwIfNeeded(); |
8540 return; | 8941 return; |
8541 } | 8942 } |
8542 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 8943 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
8543 exceptionState.throwIfNeeded(); | 8944 exceptionState.throwIfNeeded(); |
| 8945 return; |
8544 } | 8946 } |
8545 | 8947 |
8546 static void overloadedMethodJMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 8948 static void overloadedMethodJMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
8547 { | 8949 { |
8548 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 8950 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
8549 TestObjectV8Internal::overloadedMethodJMethod(info); | 8951 TestObjectV8Internal::overloadedMethodJMethod(info); |
8550 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 8952 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
8551 } | 8953 } |
8552 | 8954 |
8553 static void overloadedMethodK1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8955 static void overloadedMethodK1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
8554 { | 8956 { |
8555 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8957 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8556 ScriptValue functionArg; | 8958 ScriptValue functionArg; |
8557 { | 8959 { |
8558 if (!info[0]->IsFunction()) { | 8960 if (!info[0]->IsFunction()) { |
8559 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessage
s::failedToExecute("overloadedMethodK", "TestObject", "The callback provided as
parameter 1 is not a function.")); | 8961 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessage
s::failedToExecute("overloadedMethodK", "TestObject", "The callback provided as
parameter 1 is not a function.")); |
8560 return; | 8962 return; |
8561 } | 8963 } |
8562 functionArg = ScriptValue(ScriptState::current(info.GetIsolate()), info[
0]); | 8964 functionArg = ScriptValue(ScriptState::current(info.GetIsolate()), info[
0]); |
8563 } | 8965 } |
8564 impl->overloadedMethodK(functionArg); | 8966 impl->overloadedMethodK(functionArg); |
8565 } | 8967 } |
8566 | 8968 |
8567 static void overloadedMethodK2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8969 static void overloadedMethodK2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
8568 { | 8970 { |
8569 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8971 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8570 V8StringResource<> stringArg; | 8972 V8StringResource<> stringArg; |
8571 { | 8973 { |
8572 TOSTRING_VOID_INTERNAL(stringArg, info[0]); | 8974 stringArg = info[0]; |
| 8975 if (!stringArg.prepare()) |
| 8976 return; |
8573 } | 8977 } |
8574 impl->overloadedMethodK(stringArg); | 8978 impl->overloadedMethodK(stringArg); |
8575 } | 8979 } |
8576 | 8980 |
8577 static void overloadedMethodKMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 8981 static void overloadedMethodKMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
8578 { | 8982 { |
8579 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodK", "TestObject", info.Holder(), info.GetIsolate()); | 8983 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodK", "TestObject", info.Holder(), info.GetIsolate()); |
8580 switch (std::min(1, info.Length())) { | 8984 switch (std::min(1, info.Length())) { |
8581 case 1: | 8985 case 1: |
8582 if (info[0]->IsFunction()) { | 8986 if (info[0]->IsFunction()) { |
8583 overloadedMethodK1Method(info); | 8987 overloadedMethodK1Method(info); |
8584 return; | 8988 return; |
8585 } | 8989 } |
8586 if (true) { | 8990 if (true) { |
8587 overloadedMethodK2Method(info); | 8991 overloadedMethodK2Method(info); |
8588 return; | 8992 return; |
8589 } | 8993 } |
8590 break; | 8994 break; |
8591 default: | 8995 default: |
8592 break; | 8996 break; |
8593 } | 8997 } |
8594 if (info.Length() < 1) { | 8998 if (info.Length() < 1) { |
8595 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 8999 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
8596 exceptionState.throwIfNeeded(); | 9000 exceptionState.throwIfNeeded(); |
8597 return; | 9001 return; |
8598 } | 9002 } |
8599 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 9003 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
8600 exceptionState.throwIfNeeded(); | 9004 exceptionState.throwIfNeeded(); |
| 9005 return; |
8601 } | 9006 } |
8602 | 9007 |
8603 static void overloadedMethodKMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 9008 static void overloadedMethodKMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
8604 { | 9009 { |
8605 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 9010 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
8606 TestObjectV8Internal::overloadedMethodKMethod(info); | 9011 TestObjectV8Internal::overloadedMethodKMethod(info); |
8607 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9012 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
8608 } | 9013 } |
8609 | 9014 |
8610 static void overloadedMethodL1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 9015 static void overloadedMethodL1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
8611 { | 9016 { |
8612 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodL", "TestObject", info.Holder(), info.GetIsolate()); | 9017 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodL", "TestObject", info.Holder(), info.GetIsolate()); |
8613 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9018 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8614 int longArg; | 9019 int longArg; |
8615 Vector<ScriptValue> restArgs; | 9020 Vector<ScriptValue> restArgs; |
8616 { | 9021 { |
8617 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); | 9022 longArg = toInt32(info[0], exceptionState); |
8618 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(restArgs, toImplArguments<ScriptVa
lue>(info, 1, exceptionState), exceptionState); | 9023 if (exceptionState.throwIfNeeded()) |
| 9024 return; |
| 9025 restArgs = toImplArguments<ScriptValue>(info, 1, exceptionState); |
| 9026 if (exceptionState.throwIfNeeded()) |
| 9027 return; |
8619 } | 9028 } |
8620 impl->overloadedMethodL(longArg, restArgs); | 9029 impl->overloadedMethodL(longArg, restArgs); |
8621 } | 9030 } |
8622 | 9031 |
8623 static void overloadedMethodL2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 9032 static void overloadedMethodL2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
8624 { | 9033 { |
8625 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodL", "TestObject", info.Holder(), info.GetIsolate()); | 9034 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodL", "TestObject", info.Holder(), info.GetIsolate()); |
8626 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9035 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8627 V8StringResource<> stringArg; | 9036 V8StringResource<> stringArg; |
8628 Vector<ScriptValue> restArgs; | 9037 Vector<ScriptValue> restArgs; |
8629 { | 9038 { |
8630 TOSTRING_VOID_INTERNAL(stringArg, info[0]); | 9039 stringArg = info[0]; |
8631 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(restArgs, toImplArguments<ScriptVa
lue>(info, 1, exceptionState), exceptionState); | 9040 if (!stringArg.prepare()) |
| 9041 return; |
| 9042 restArgs = toImplArguments<ScriptValue>(info, 1, exceptionState); |
| 9043 if (exceptionState.throwIfNeeded()) |
| 9044 return; |
8632 } | 9045 } |
8633 impl->overloadedMethodL(stringArg, restArgs); | 9046 impl->overloadedMethodL(stringArg, restArgs); |
8634 } | 9047 } |
8635 | 9048 |
8636 static void overloadedMethodLMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 9049 static void overloadedMethodLMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
8637 { | 9050 { |
8638 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodL", "TestObject", info.Holder(), info.GetIsolate()); | 9051 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodL", "TestObject", info.Holder(), info.GetIsolate()); |
8639 switch (std::min(2, info.Length())) { | 9052 switch (std::min(2, info.Length())) { |
8640 case 1: | 9053 case 1: |
8641 if (info[0]->IsNumber()) { | 9054 if (info[0]->IsNumber()) { |
(...skipping 26 matching lines...) Expand all Loading... |
8668 default: | 9081 default: |
8669 break; | 9082 break; |
8670 } | 9083 } |
8671 if (info.Length() < 1) { | 9084 if (info.Length() < 1) { |
8672 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 9085 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
8673 exceptionState.throwIfNeeded(); | 9086 exceptionState.throwIfNeeded(); |
8674 return; | 9087 return; |
8675 } | 9088 } |
8676 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 9089 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
8677 exceptionState.throwIfNeeded(); | 9090 exceptionState.throwIfNeeded(); |
| 9091 return; |
8678 } | 9092 } |
8679 | 9093 |
8680 static void overloadedMethodLMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 9094 static void overloadedMethodLMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
8681 { | 9095 { |
8682 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 9096 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
8683 TestObjectV8Internal::overloadedMethodLMethod(info); | 9097 TestObjectV8Internal::overloadedMethodLMethod(info); |
8684 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9098 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
8685 } | 9099 } |
8686 | 9100 |
8687 static void promiseOverloadMethod1Method(const v8::FunctionCallbackInfo<v8::Valu
e>& info) | 9101 static void promiseOverloadMethod1Method(const v8::FunctionCallbackInfo<v8::Valu
e>& info) |
8688 { | 9102 { |
8689 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9103 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8690 v8SetReturnValue(info, impl->promiseOverloadMethod().v8Value()); | 9104 v8SetReturnValue(info, impl->promiseOverloadMethod().v8Value()); |
8691 } | 9105 } |
8692 | 9106 |
| 9107 static void promiseOverloadMethod2MethodPromise(const v8::FunctionCallbackInfo<v
8::Value>& info, ExceptionState& exceptionState) |
| 9108 { |
| 9109 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 9110 DOMWindow* arg1; |
| 9111 double arg2; |
| 9112 { |
| 9113 arg1 = toDOMWindow(info.GetIsolate(), info[0]); |
| 9114 arg2 = toDouble(info[1], exceptionState); |
| 9115 if (exceptionState.hadException()) |
| 9116 return; |
| 9117 } |
| 9118 v8SetReturnValue(info, impl->promiseOverloadMethod(arg1, arg2).v8Value()); |
| 9119 } |
| 9120 |
8693 static void promiseOverloadMethod2Method(const v8::FunctionCallbackInfo<v8::Valu
e>& info) | 9121 static void promiseOverloadMethod2Method(const v8::FunctionCallbackInfo<v8::Valu
e>& info) |
8694 { | 9122 { |
8695 ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseOver
loadMethod", "TestObject", info.Holder(), info.GetIsolate()); | 9123 ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseOver
loadMethod", "TestObject", info.Holder(), info.GetIsolate()); |
| 9124 promiseOverloadMethod2MethodPromise(info, exceptionState); |
| 9125 if (exceptionState.hadException()) |
| 9126 v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.G
etIsolate())).v8Value()); |
| 9127 } |
| 9128 |
| 9129 static void promiseOverloadMethod3MethodPromise(const v8::FunctionCallbackInfo<v
8::Value>& info, ExceptionState& exceptionState) |
| 9130 { |
8696 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9131 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8697 DOMWindow* arg1; | 9132 Document* arg1; |
8698 double arg2; | 9133 double arg2; |
8699 { | 9134 { |
8700 arg1 = toDOMWindow(info.GetIsolate(), info[0]); | 9135 arg1 = V8Document::toImplWithTypeCheck(info.GetIsolate(), info[0]); |
8701 TONATIVE_VOID_EXCEPTIONSTATE_PROMISE_INTERNAL(arg2, toDouble(info[1], ex
ceptionState), exceptionState, info, ScriptState::current(info.GetIsolate())); | 9136 arg2 = toDouble(info[1], exceptionState); |
| 9137 if (exceptionState.hadException()) |
| 9138 return; |
8702 } | 9139 } |
8703 v8SetReturnValue(info, impl->promiseOverloadMethod(arg1, arg2).v8Value()); | 9140 v8SetReturnValue(info, impl->promiseOverloadMethod(arg1, arg2).v8Value()); |
8704 } | 9141 } |
8705 | 9142 |
8706 static void promiseOverloadMethod3Method(const v8::FunctionCallbackInfo<v8::Valu
e>& info) | 9143 static void promiseOverloadMethod3Method(const v8::FunctionCallbackInfo<v8::Valu
e>& info) |
8707 { | 9144 { |
8708 ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseOver
loadMethod", "TestObject", info.Holder(), info.GetIsolate()); | 9145 ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseOver
loadMethod", "TestObject", info.Holder(), info.GetIsolate()); |
8709 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9146 promiseOverloadMethod3MethodPromise(info, exceptionState); |
8710 Document* arg1; | 9147 if (exceptionState.hadException()) |
8711 double arg2; | 9148 v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.G
etIsolate())).v8Value()); |
8712 { | |
8713 arg1 = V8Document::toImplWithTypeCheck(info.GetIsolate(), info[0]); | |
8714 TONATIVE_VOID_EXCEPTIONSTATE_PROMISE_INTERNAL(arg2, toDouble(info[1], ex
ceptionState), exceptionState, info, ScriptState::current(info.GetIsolate())); | |
8715 } | |
8716 v8SetReturnValue(info, impl->promiseOverloadMethod(arg1, arg2).v8Value()); | |
8717 } | 9149 } |
8718 | 9150 |
8719 static void promiseOverloadMethodMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) | 9151 static void promiseOverloadMethodMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) |
8720 { | 9152 { |
8721 ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseOver
loadMethod", "TestObject", info.Holder(), info.GetIsolate()); | 9153 ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseOver
loadMethod", "TestObject", info.Holder(), info.GetIsolate()); |
8722 switch (std::min(2, info.Length())) { | 9154 switch (std::min(2, info.Length())) { |
8723 case 0: | 9155 case 0: |
8724 if (true) { | 9156 if (true) { |
8725 promiseOverloadMethod1Method(info); | 9157 promiseOverloadMethod1Method(info); |
8726 return; | 9158 return; |
(...skipping 12 matching lines...) Expand all Loading... |
8739 default: | 9171 default: |
8740 if (info.Length() >= 0) { | 9172 if (info.Length() >= 0) { |
8741 setArityTypeError(exceptionState, "[0, 2]", info.Length()); | 9173 setArityTypeError(exceptionState, "[0, 2]", info.Length()); |
8742 v8SetReturnValue(info, exceptionState.reject(ScriptState::current(in
fo.GetIsolate())).v8Value()); | 9174 v8SetReturnValue(info, exceptionState.reject(ScriptState::current(in
fo.GetIsolate())).v8Value()); |
8743 return; | 9175 return; |
8744 } | 9176 } |
8745 break; | 9177 break; |
8746 } | 9178 } |
8747 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 9179 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
8748 v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.GetIs
olate())).v8Value()); | 9180 v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.GetIs
olate())).v8Value()); |
| 9181 return; |
8749 } | 9182 } |
8750 | 9183 |
8751 static void promiseOverloadMethodMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) | 9184 static void promiseOverloadMethodMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) |
8752 { | 9185 { |
8753 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 9186 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
8754 TestObjectV8Internal::promiseOverloadMethodMethod(info); | 9187 TestObjectV8Internal::promiseOverloadMethodMethod(info); |
8755 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9188 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
8756 } | 9189 } |
8757 | 9190 |
8758 static void overloadedPerWorldBindingsMethod1Method(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 9191 static void overloadedPerWorldBindingsMethod1Method(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
8759 { | 9192 { |
8760 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9193 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8761 impl->overloadedPerWorldBindingsMethod(); | 9194 impl->overloadedPerWorldBindingsMethod(); |
8762 } | 9195 } |
8763 | 9196 |
8764 static void overloadedPerWorldBindingsMethod1MethodForMainWorld(const v8::Functi
onCallbackInfo<v8::Value>& info) | 9197 static void overloadedPerWorldBindingsMethod1MethodForMainWorld(const v8::Functi
onCallbackInfo<v8::Value>& info) |
8765 { | 9198 { |
8766 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9199 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8767 impl->overloadedPerWorldBindingsMethod(); | 9200 impl->overloadedPerWorldBindingsMethod(); |
8768 } | 9201 } |
8769 | 9202 |
8770 static void overloadedPerWorldBindingsMethod2Method(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 9203 static void overloadedPerWorldBindingsMethod2Method(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
8771 { | 9204 { |
8772 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP
erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate()); | 9205 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP
erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate()); |
8773 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9206 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8774 int longArg; | 9207 int longArg; |
8775 { | 9208 { |
8776 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); | 9209 longArg = toInt32(info[0], exceptionState); |
| 9210 if (exceptionState.throwIfNeeded()) |
| 9211 return; |
8777 } | 9212 } |
8778 impl->overloadedPerWorldBindingsMethod(longArg); | 9213 impl->overloadedPerWorldBindingsMethod(longArg); |
8779 } | 9214 } |
8780 | 9215 |
8781 static void overloadedPerWorldBindingsMethodMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) | 9216 static void overloadedPerWorldBindingsMethodMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) |
8782 { | 9217 { |
8783 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP
erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate()); | 9218 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP
erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate()); |
8784 switch (std::min(1, info.Length())) { | 9219 switch (std::min(1, info.Length())) { |
8785 case 0: | 9220 case 0: |
8786 if (true) { | 9221 if (true) { |
8787 overloadedPerWorldBindingsMethod1Method(info); | 9222 overloadedPerWorldBindingsMethod1Method(info); |
8788 return; | 9223 return; |
8789 } | 9224 } |
8790 break; | 9225 break; |
8791 case 1: | 9226 case 1: |
8792 if (true) { | 9227 if (true) { |
8793 overloadedPerWorldBindingsMethod2Method(info); | 9228 overloadedPerWorldBindingsMethod2Method(info); |
8794 return; | 9229 return; |
8795 } | 9230 } |
8796 break; | 9231 break; |
8797 default: | 9232 default: |
8798 break; | 9233 break; |
8799 } | 9234 } |
8800 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 9235 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
8801 exceptionState.throwIfNeeded(); | 9236 exceptionState.throwIfNeeded(); |
| 9237 return; |
8802 } | 9238 } |
8803 | 9239 |
8804 static void overloadedPerWorldBindingsMethodMethodCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) | 9240 static void overloadedPerWorldBindingsMethodMethodCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
8805 { | 9241 { |
8806 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 9242 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
8807 TestObjectV8Internal::overloadedPerWorldBindingsMethodMethod(info); | 9243 TestObjectV8Internal::overloadedPerWorldBindingsMethodMethod(info); |
8808 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9244 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
8809 } | 9245 } |
8810 | 9246 |
8811 static void overloadedPerWorldBindingsMethod2MethodForMainWorld(const v8::Functi
onCallbackInfo<v8::Value>& info) | 9247 static void overloadedPerWorldBindingsMethod2MethodForMainWorld(const v8::Functi
onCallbackInfo<v8::Value>& info) |
8812 { | 9248 { |
8813 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP
erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate()); | 9249 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP
erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate()); |
8814 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9250 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8815 int longArg; | 9251 int longArg; |
8816 { | 9252 { |
8817 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); | 9253 longArg = toInt32(info[0], exceptionState); |
| 9254 if (exceptionState.throwIfNeeded()) |
| 9255 return; |
8818 } | 9256 } |
8819 impl->overloadedPerWorldBindingsMethod(longArg); | 9257 impl->overloadedPerWorldBindingsMethod(longArg); |
8820 } | 9258 } |
8821 | 9259 |
8822 static void overloadedPerWorldBindingsMethodMethodForMainWorld(const v8::Functio
nCallbackInfo<v8::Value>& info) | 9260 static void overloadedPerWorldBindingsMethodMethodForMainWorld(const v8::Functio
nCallbackInfo<v8::Value>& info) |
8823 { | 9261 { |
8824 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP
erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate()); | 9262 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP
erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate()); |
8825 switch (std::min(1, info.Length())) { | 9263 switch (std::min(1, info.Length())) { |
8826 case 0: | 9264 case 0: |
8827 if (true) { | 9265 if (true) { |
8828 overloadedPerWorldBindingsMethod1MethodForMainWorld(info); | 9266 overloadedPerWorldBindingsMethod1MethodForMainWorld(info); |
8829 return; | 9267 return; |
8830 } | 9268 } |
8831 break; | 9269 break; |
8832 case 1: | 9270 case 1: |
8833 if (true) { | 9271 if (true) { |
8834 overloadedPerWorldBindingsMethod2MethodForMainWorld(info); | 9272 overloadedPerWorldBindingsMethod2MethodForMainWorld(info); |
8835 return; | 9273 return; |
8836 } | 9274 } |
8837 break; | 9275 break; |
8838 default: | 9276 default: |
8839 break; | 9277 break; |
8840 } | 9278 } |
8841 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 9279 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
8842 exceptionState.throwIfNeeded(); | 9280 exceptionState.throwIfNeeded(); |
| 9281 return; |
8843 } | 9282 } |
8844 | 9283 |
8845 static void overloadedPerWorldBindingsMethodMethodCallbackForMainWorld(const v8:
:FunctionCallbackInfo<v8::Value>& info) | 9284 static void overloadedPerWorldBindingsMethodMethodCallbackForMainWorld(const v8:
:FunctionCallbackInfo<v8::Value>& info) |
8846 { | 9285 { |
8847 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 9286 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
8848 TestObjectV8Internal::overloadedPerWorldBindingsMethodMethodForMainWorld(inf
o); | 9287 TestObjectV8Internal::overloadedPerWorldBindingsMethodMethodForMainWorld(inf
o); |
8849 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9288 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
8850 } | 9289 } |
8851 | 9290 |
8852 static void overloadedStaticMethod1Method(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 9291 static void overloadedStaticMethod1Method(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
8853 { | 9292 { |
8854 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS
taticMethod", "TestObject", info.Holder(), info.GetIsolate()); | 9293 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS
taticMethod", "TestObject", info.Holder(), info.GetIsolate()); |
8855 int longArg; | 9294 int longArg; |
8856 { | 9295 { |
8857 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); | 9296 longArg = toInt32(info[0], exceptionState); |
| 9297 if (exceptionState.throwIfNeeded()) |
| 9298 return; |
8858 } | 9299 } |
8859 TestObject::overloadedStaticMethod(longArg); | 9300 TestObject::overloadedStaticMethod(longArg); |
8860 } | 9301 } |
8861 | 9302 |
8862 static void overloadedStaticMethod2Method(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 9303 static void overloadedStaticMethod2Method(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
8863 { | 9304 { |
8864 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS
taticMethod", "TestObject", info.Holder(), info.GetIsolate()); | 9305 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS
taticMethod", "TestObject", info.Holder(), info.GetIsolate()); |
8865 int longArg1; | 9306 int longArg1; |
8866 int longArg2; | 9307 int longArg2; |
8867 { | 9308 { |
8868 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg1, toInt32(info[0], excepti
onState), exceptionState); | 9309 longArg1 = toInt32(info[0], exceptionState); |
8869 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg2, toInt32(info[1], excepti
onState), exceptionState); | 9310 if (exceptionState.throwIfNeeded()) |
| 9311 return; |
| 9312 longArg2 = toInt32(info[1], exceptionState); |
| 9313 if (exceptionState.throwIfNeeded()) |
| 9314 return; |
8870 } | 9315 } |
8871 TestObject::overloadedStaticMethod(longArg1, longArg2); | 9316 TestObject::overloadedStaticMethod(longArg1, longArg2); |
8872 } | 9317 } |
8873 | 9318 |
8874 static void overloadedStaticMethodMethod(const v8::FunctionCallbackInfo<v8::Valu
e>& info) | 9319 static void overloadedStaticMethodMethod(const v8::FunctionCallbackInfo<v8::Valu
e>& info) |
8875 { | 9320 { |
8876 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS
taticMethod", "TestObject", info.Holder(), info.GetIsolate()); | 9321 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS
taticMethod", "TestObject", info.Holder(), info.GetIsolate()); |
8877 switch (std::min(2, info.Length())) { | 9322 switch (std::min(2, info.Length())) { |
8878 case 1: | 9323 case 1: |
8879 if (true) { | 9324 if (true) { |
(...skipping 10 matching lines...) Expand all Loading... |
8890 default: | 9335 default: |
8891 break; | 9336 break; |
8892 } | 9337 } |
8893 if (info.Length() < 1) { | 9338 if (info.Length() < 1) { |
8894 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 9339 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
8895 exceptionState.throwIfNeeded(); | 9340 exceptionState.throwIfNeeded(); |
8896 return; | 9341 return; |
8897 } | 9342 } |
8898 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 9343 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
8899 exceptionState.throwIfNeeded(); | 9344 exceptionState.throwIfNeeded(); |
| 9345 return; |
8900 } | 9346 } |
8901 | 9347 |
8902 static void overloadedStaticMethodMethodCallback(const v8::FunctionCallbackInfo<
v8::Value>& info) | 9348 static void overloadedStaticMethodMethodCallback(const v8::FunctionCallbackInfo<
v8::Value>& info) |
8903 { | 9349 { |
8904 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 9350 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
8905 TestObjectV8Internal::overloadedStaticMethodMethod(info); | 9351 TestObjectV8Internal::overloadedStaticMethodMethod(info); |
8906 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9352 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
8907 } | 9353 } |
8908 | 9354 |
8909 static void voidMethodClampUnsignedShortArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) | 9355 static void voidMethodClampUnsignedShortArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) |
8910 { | 9356 { |
8911 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodC
lampUnsignedShortArg", "TestObject", info.Holder(), info.GetIsolate()); | 9357 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodC
lampUnsignedShortArg", "TestObject", info.Holder(), info.GetIsolate()); |
8912 if (UNLIKELY(info.Length() < 1)) { | 9358 if (UNLIKELY(info.Length() < 1)) { |
8913 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 9359 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
8914 exceptionState.throwIfNeeded(); | 9360 exceptionState.throwIfNeeded(); |
8915 return; | 9361 return; |
8916 } | 9362 } |
8917 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9363 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8918 unsigned clampUnsignedShortArg; | 9364 unsigned clampUnsignedShortArg; |
8919 { | 9365 { |
8920 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(clampUnsignedShortArg, toUInt16(in
fo[0], Clamp, exceptionState), exceptionState); | 9366 clampUnsignedShortArg = toUInt16(info[0], Clamp, exceptionState); |
| 9367 if (exceptionState.throwIfNeeded()) |
| 9368 return; |
8921 } | 9369 } |
8922 impl->voidMethodClampUnsignedShortArg(clampUnsignedShortArg); | 9370 impl->voidMethodClampUnsignedShortArg(clampUnsignedShortArg); |
8923 } | 9371 } |
8924 | 9372 |
8925 static void voidMethodClampUnsignedShortArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) | 9373 static void voidMethodClampUnsignedShortArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
8926 { | 9374 { |
8927 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 9375 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
8928 TestObjectV8Internal::voidMethodClampUnsignedShortArgMethod(info); | 9376 TestObjectV8Internal::voidMethodClampUnsignedShortArgMethod(info); |
8929 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9377 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
8930 } | 9378 } |
8931 | 9379 |
8932 static void voidMethodClampUnsignedLongArgMethod(const v8::FunctionCallbackInfo<
v8::Value>& info) | 9380 static void voidMethodClampUnsignedLongArgMethod(const v8::FunctionCallbackInfo<
v8::Value>& info) |
8933 { | 9381 { |
8934 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodC
lampUnsignedLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 9382 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodC
lampUnsignedLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
8935 if (UNLIKELY(info.Length() < 1)) { | 9383 if (UNLIKELY(info.Length() < 1)) { |
8936 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 9384 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
8937 exceptionState.throwIfNeeded(); | 9385 exceptionState.throwIfNeeded(); |
8938 return; | 9386 return; |
8939 } | 9387 } |
8940 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9388 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8941 unsigned clampUnsignedLongArg; | 9389 unsigned clampUnsignedLongArg; |
8942 { | 9390 { |
8943 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(clampUnsignedLongArg, toUInt32(inf
o[0], Clamp, exceptionState), exceptionState); | 9391 clampUnsignedLongArg = toUInt32(info[0], Clamp, exceptionState); |
| 9392 if (exceptionState.throwIfNeeded()) |
| 9393 return; |
8944 } | 9394 } |
8945 impl->voidMethodClampUnsignedLongArg(clampUnsignedLongArg); | 9395 impl->voidMethodClampUnsignedLongArg(clampUnsignedLongArg); |
8946 } | 9396 } |
8947 | 9397 |
8948 static void voidMethodClampUnsignedLongArgMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) | 9398 static void voidMethodClampUnsignedLongArgMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
8949 { | 9399 { |
8950 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 9400 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
8951 TestObjectV8Internal::voidMethodClampUnsignedLongArgMethod(info); | 9401 TestObjectV8Internal::voidMethodClampUnsignedLongArgMethod(info); |
8952 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9402 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
8953 } | 9403 } |
(...skipping 14 matching lines...) Expand all Loading... |
8968 TestObjectV8Internal::voidMethodDefaultUndefinedTestInterfaceEmptyArgMethod(
info); | 9418 TestObjectV8Internal::voidMethodDefaultUndefinedTestInterfaceEmptyArgMethod(
info); |
8969 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9419 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
8970 } | 9420 } |
8971 | 9421 |
8972 static void voidMethodDefaultUndefinedLongArgMethod(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 9422 static void voidMethodDefaultUndefinedLongArgMethod(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
8973 { | 9423 { |
8974 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultUndefinedLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 9424 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultUndefinedLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
8975 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9425 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8976 int defaultUndefinedLongArg; | 9426 int defaultUndefinedLongArg; |
8977 { | 9427 { |
8978 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultUndefinedLongArg, toInt32(i
nfo[0], exceptionState), exceptionState); | 9428 defaultUndefinedLongArg = toInt32(info[0], exceptionState); |
| 9429 if (exceptionState.throwIfNeeded()) |
| 9430 return; |
8979 } | 9431 } |
8980 impl->voidMethodDefaultUndefinedLongArg(defaultUndefinedLongArg); | 9432 impl->voidMethodDefaultUndefinedLongArg(defaultUndefinedLongArg); |
8981 } | 9433 } |
8982 | 9434 |
8983 static void voidMethodDefaultUndefinedLongArgMethodCallback(const v8::FunctionCa
llbackInfo<v8::Value>& info) | 9435 static void voidMethodDefaultUndefinedLongArgMethodCallback(const v8::FunctionCa
llbackInfo<v8::Value>& info) |
8984 { | 9436 { |
8985 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 9437 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
8986 TestObjectV8Internal::voidMethodDefaultUndefinedLongArgMethod(info); | 9438 TestObjectV8Internal::voidMethodDefaultUndefinedLongArgMethod(info); |
8987 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9439 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
8988 } | 9440 } |
8989 | 9441 |
8990 static void voidMethodDefaultUndefinedStringArgMethod(const v8::FunctionCallback
Info<v8::Value>& info) | 9442 static void voidMethodDefaultUndefinedStringArgMethod(const v8::FunctionCallback
Info<v8::Value>& info) |
8991 { | 9443 { |
8992 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9444 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8993 V8StringResource<> defaultUndefinedStringArg; | 9445 V8StringResource<> defaultUndefinedStringArg; |
8994 { | 9446 { |
8995 TOSTRING_VOID_INTERNAL(defaultUndefinedStringArg, info[0]); | 9447 defaultUndefinedStringArg = info[0]; |
| 9448 if (!defaultUndefinedStringArg.prepare()) |
| 9449 return; |
8996 } | 9450 } |
8997 impl->voidMethodDefaultUndefinedStringArg(defaultUndefinedStringArg); | 9451 impl->voidMethodDefaultUndefinedStringArg(defaultUndefinedStringArg); |
8998 } | 9452 } |
8999 | 9453 |
9000 static void voidMethodDefaultUndefinedStringArgMethodCallback(const v8::Function
CallbackInfo<v8::Value>& info) | 9454 static void voidMethodDefaultUndefinedStringArgMethodCallback(const v8::Function
CallbackInfo<v8::Value>& info) |
9001 { | 9455 { |
9002 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 9456 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
9003 TestObjectV8Internal::voidMethodDefaultUndefinedStringArgMethod(info); | 9457 TestObjectV8Internal::voidMethodDefaultUndefinedStringArgMethod(info); |
9004 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9458 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
9005 } | 9459 } |
9006 | 9460 |
9007 static void voidMethodEnforceRangeLongArgMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) | 9461 static void voidMethodEnforceRangeLongArgMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) |
9008 { | 9462 { |
9009 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodE
nforceRangeLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 9463 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodE
nforceRangeLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
9010 if (UNLIKELY(info.Length() < 1)) { | 9464 if (UNLIKELY(info.Length() < 1)) { |
9011 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 9465 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
9012 exceptionState.throwIfNeeded(); | 9466 exceptionState.throwIfNeeded(); |
9013 return; | 9467 return; |
9014 } | 9468 } |
9015 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9469 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
9016 int enforceRangeLongArg; | 9470 int enforceRangeLongArg; |
9017 { | 9471 { |
9018 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(enforceRangeLongArg, toInt32(info[
0], EnforceRange, exceptionState), exceptionState); | 9472 enforceRangeLongArg = toInt32(info[0], EnforceRange, exceptionState); |
| 9473 if (exceptionState.throwIfNeeded()) |
| 9474 return; |
9019 } | 9475 } |
9020 impl->voidMethodEnforceRangeLongArg(enforceRangeLongArg); | 9476 impl->voidMethodEnforceRangeLongArg(enforceRangeLongArg); |
9021 } | 9477 } |
9022 | 9478 |
9023 static void voidMethodEnforceRangeLongArgMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) | 9479 static void voidMethodEnforceRangeLongArgMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
9024 { | 9480 { |
9025 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 9481 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
9026 TestObjectV8Internal::voidMethodEnforceRangeLongArgMethod(info); | 9482 TestObjectV8Internal::voidMethodEnforceRangeLongArgMethod(info); |
9027 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9483 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
9028 } | 9484 } |
9029 | 9485 |
9030 static void voidMethodTreatNullAsEmptyStringStringArgMethod(const v8::FunctionCa
llbackInfo<v8::Value>& info) | 9486 static void voidMethodTreatNullAsEmptyStringStringArgMethod(const v8::FunctionCa
llbackInfo<v8::Value>& info) |
9031 { | 9487 { |
9032 if (UNLIKELY(info.Length() < 1)) { | 9488 if (UNLIKELY(info.Length() < 1)) { |
9033 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "voidMethodTreatNullAsEmptyStringStringArg", "TestObject", 1, i
nfo.Length()), info.GetIsolate()); | 9489 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "voidMethodTreatNullAsEmptyStringStringArg", "TestObject", 1, i
nfo.Length()), info.GetIsolate()); |
9034 return; | 9490 return; |
9035 } | 9491 } |
9036 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9492 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
9037 V8StringResource<TreatNullAsEmptyString> treatNullAsEmptyStringStringArg; | 9493 V8StringResource<TreatNullAsEmptyString> treatNullAsEmptyStringStringArg; |
9038 { | 9494 { |
9039 TOSTRING_VOID_INTERNAL(treatNullAsEmptyStringStringArg, info[0]); | 9495 treatNullAsEmptyStringStringArg = info[0]; |
| 9496 if (!treatNullAsEmptyStringStringArg.prepare()) |
| 9497 return; |
9040 } | 9498 } |
9041 impl->voidMethodTreatNullAsEmptyStringStringArg(treatNullAsEmptyStringString
Arg); | 9499 impl->voidMethodTreatNullAsEmptyStringStringArg(treatNullAsEmptyStringString
Arg); |
9042 } | 9500 } |
9043 | 9501 |
9044 static void voidMethodTreatNullAsEmptyStringStringArgMethodCallback(const v8::Fu
nctionCallbackInfo<v8::Value>& info) | 9502 static void voidMethodTreatNullAsEmptyStringStringArgMethodCallback(const v8::Fu
nctionCallbackInfo<v8::Value>& info) |
9045 { | 9503 { |
9046 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 9504 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
9047 TestObjectV8Internal::voidMethodTreatNullAsEmptyStringStringArgMethod(info); | 9505 TestObjectV8Internal::voidMethodTreatNullAsEmptyStringStringArgMethod(info); |
9048 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9506 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
9049 } | 9507 } |
9050 | 9508 |
9051 static void voidMethodTreatNullAsNullStringStringArgMethod(const v8::FunctionCal
lbackInfo<v8::Value>& info) | 9509 static void voidMethodTreatNullAsNullStringStringArgMethod(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
9052 { | 9510 { |
9053 if (UNLIKELY(info.Length() < 1)) { | 9511 if (UNLIKELY(info.Length() < 1)) { |
9054 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "voidMethodTreatNullAsNullStringStringArg", "TestObject", 1, in
fo.Length()), info.GetIsolate()); | 9512 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "voidMethodTreatNullAsNullStringStringArg", "TestObject", 1, in
fo.Length()), info.GetIsolate()); |
9055 return; | 9513 return; |
9056 } | 9514 } |
9057 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9515 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
9058 V8StringResource<TreatNullAsNullString> treatNullAsNullStringStringArg; | 9516 V8StringResource<TreatNullAsNullString> treatNullAsNullStringStringArg; |
9059 { | 9517 { |
9060 TOSTRING_VOID_INTERNAL(treatNullAsNullStringStringArg, info[0]); | 9518 treatNullAsNullStringStringArg = info[0]; |
| 9519 if (!treatNullAsNullStringStringArg.prepare()) |
| 9520 return; |
9061 } | 9521 } |
9062 impl->voidMethodTreatNullAsNullStringStringArg(treatNullAsNullStringStringAr
g); | 9522 impl->voidMethodTreatNullAsNullStringStringArg(treatNullAsNullStringStringAr
g); |
9063 } | 9523 } |
9064 | 9524 |
9065 static void voidMethodTreatNullAsNullStringStringArgMethodCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) | 9525 static void voidMethodTreatNullAsNullStringStringArgMethodCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) |
9066 { | 9526 { |
9067 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 9527 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
9068 TestObjectV8Internal::voidMethodTreatNullAsNullStringStringArgMethod(info); | 9528 TestObjectV8Internal::voidMethodTreatNullAsNullStringStringArgMethod(info); |
9069 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9529 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
9070 } | 9530 } |
9071 | 9531 |
9072 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe
thod(const v8::FunctionCallbackInfo<v8::Value>& info) | 9532 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe
thod(const v8::FunctionCallbackInfo<v8::Value>& info) |
9073 { | 9533 { |
9074 if (UNLIKELY(info.Length() < 1)) { | 9534 if (UNLIKELY(info.Length() < 1)) { |
9075 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStrin
gArg", "TestObject", 1, info.Length()), info.GetIsolate()); | 9535 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStrin
gArg", "TestObject", 1, info.Length()), info.GetIsolate()); |
9076 return; | 9536 return; |
9077 } | 9537 } |
9078 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9538 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
9079 V8StringResource<TreatNullAndUndefinedAsNullString> treatNullAsNullStringStr
ingArg; | 9539 V8StringResource<TreatNullAndUndefinedAsNullString> treatNullAsNullStringStr
ingArg; |
9080 { | 9540 { |
9081 TOSTRING_VOID_INTERNAL(treatNullAsNullStringStringArg, info[0]); | 9541 treatNullAsNullStringStringArg = info[0]; |
| 9542 if (!treatNullAsNullStringStringArg.prepare()) |
| 9543 return; |
9082 } | 9544 } |
9083 impl->voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg(tre
atNullAsNullStringStringArg); | 9545 impl->voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg(tre
atNullAsNullStringStringArg); |
9084 } | 9546 } |
9085 | 9547 |
9086 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe
thodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) | 9548 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe
thodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
9087 { | 9549 { |
9088 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 9550 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
9089 TestObjectV8Internal::voidMethodTreatNullAsNullStringTreatUndefinedAsNullStr
ingStringArgMethod(info); | 9551 TestObjectV8Internal::voidMethodTreatNullAsNullStringTreatUndefinedAsNullStr
ingStringArgMethod(info); |
9090 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9552 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
9091 } | 9553 } |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9374 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9836 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
9375 impl->DeprecateAsOverloadedMethod(); | 9837 impl->DeprecateAsOverloadedMethod(); |
9376 } | 9838 } |
9377 | 9839 |
9378 static void DeprecateAsOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8
::Value>& info) | 9840 static void DeprecateAsOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8
::Value>& info) |
9379 { | 9841 { |
9380 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs
OverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); | 9842 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs
OverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); |
9381 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9843 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
9382 int arg; | 9844 int arg; |
9383 { | 9845 { |
9384 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta
te), exceptionState); | 9846 arg = toInt32(info[0], exceptionState); |
| 9847 if (exceptionState.throwIfNeeded()) |
| 9848 return; |
9385 } | 9849 } |
9386 impl->DeprecateAsOverloadedMethod(arg); | 9850 impl->DeprecateAsOverloadedMethod(arg); |
9387 } | 9851 } |
9388 | 9852 |
9389 static void DeprecateAsOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 9853 static void DeprecateAsOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
9390 { | 9854 { |
9391 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs
OverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); | 9855 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs
OverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); |
9392 switch (std::min(1, info.Length())) { | 9856 switch (std::min(1, info.Length())) { |
9393 case 0: | 9857 case 0: |
9394 if (true) { | 9858 if (true) { |
9395 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), ca
llingExecutionContext(info.GetIsolate()), UseCounter::TestFeatureA); | 9859 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), ca
llingExecutionContext(info.GetIsolate()), UseCounter::TestFeatureA); |
9396 DeprecateAsOverloadedMethod1Method(info); | 9860 DeprecateAsOverloadedMethod1Method(info); |
9397 return; | 9861 return; |
9398 } | 9862 } |
9399 break; | 9863 break; |
9400 case 1: | 9864 case 1: |
9401 if (true) { | 9865 if (true) { |
9402 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), ca
llingExecutionContext(info.GetIsolate()), UseCounter::TestFeatureB); | 9866 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), ca
llingExecutionContext(info.GetIsolate()), UseCounter::TestFeatureB); |
9403 DeprecateAsOverloadedMethod2Method(info); | 9867 DeprecateAsOverloadedMethod2Method(info); |
9404 return; | 9868 return; |
9405 } | 9869 } |
9406 break; | 9870 break; |
9407 default: | 9871 default: |
9408 break; | 9872 break; |
9409 } | 9873 } |
9410 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 9874 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
9411 exceptionState.throwIfNeeded(); | 9875 exceptionState.throwIfNeeded(); |
| 9876 return; |
9412 } | 9877 } |
9413 | 9878 |
9414 static void DeprecateAsOverloadedMethodMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 9879 static void DeprecateAsOverloadedMethodMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
9415 { | 9880 { |
9416 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 9881 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
9417 TestObjectV8Internal::DeprecateAsOverloadedMethodMethod(info); | 9882 TestObjectV8Internal::DeprecateAsOverloadedMethodMethod(info); |
9418 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9883 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
9419 } | 9884 } |
9420 | 9885 |
9421 static void DeprecateAsSameValueOverloadedMethod1Method(const v8::FunctionCallba
ckInfo<v8::Value>& info) | 9886 static void DeprecateAsSameValueOverloadedMethod1Method(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
9422 { | 9887 { |
9423 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9888 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
9424 impl->DeprecateAsSameValueOverloadedMethod(); | 9889 impl->DeprecateAsSameValueOverloadedMethod(); |
9425 } | 9890 } |
9426 | 9891 |
9427 static void DeprecateAsSameValueOverloadedMethod2Method(const v8::FunctionCallba
ckInfo<v8::Value>& info) | 9892 static void DeprecateAsSameValueOverloadedMethod2Method(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
9428 { | 9893 { |
9429 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs
SameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); | 9894 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs
SameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); |
9430 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9895 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
9431 int arg; | 9896 int arg; |
9432 { | 9897 { |
9433 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta
te), exceptionState); | 9898 arg = toInt32(info[0], exceptionState); |
| 9899 if (exceptionState.throwIfNeeded()) |
| 9900 return; |
9434 } | 9901 } |
9435 impl->DeprecateAsSameValueOverloadedMethod(arg); | 9902 impl->DeprecateAsSameValueOverloadedMethod(arg); |
9436 } | 9903 } |
9437 | 9904 |
9438 static void DeprecateAsSameValueOverloadedMethodMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 9905 static void DeprecateAsSameValueOverloadedMethodMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
9439 { | 9906 { |
9440 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs
SameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); | 9907 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs
SameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); |
9441 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe
cutionContext(info.GetIsolate()), UseCounter::TestFeature); | 9908 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe
cutionContext(info.GetIsolate()), UseCounter::TestFeature); |
9442 switch (std::min(1, info.Length())) { | 9909 switch (std::min(1, info.Length())) { |
9443 case 0: | 9910 case 0: |
9444 if (true) { | 9911 if (true) { |
9445 DeprecateAsSameValueOverloadedMethod1Method(info); | 9912 DeprecateAsSameValueOverloadedMethod1Method(info); |
9446 return; | 9913 return; |
9447 } | 9914 } |
9448 break; | 9915 break; |
9449 case 1: | 9916 case 1: |
9450 if (true) { | 9917 if (true) { |
9451 DeprecateAsSameValueOverloadedMethod2Method(info); | 9918 DeprecateAsSameValueOverloadedMethod2Method(info); |
9452 return; | 9919 return; |
9453 } | 9920 } |
9454 break; | 9921 break; |
9455 default: | 9922 default: |
9456 break; | 9923 break; |
9457 } | 9924 } |
9458 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 9925 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
9459 exceptionState.throwIfNeeded(); | 9926 exceptionState.throwIfNeeded(); |
| 9927 return; |
9460 } | 9928 } |
9461 | 9929 |
9462 static void DeprecateAsSameValueOverloadedMethodMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) | 9930 static void DeprecateAsSameValueOverloadedMethodMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) |
9463 { | 9931 { |
9464 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 9932 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
9465 TestObjectV8Internal::DeprecateAsSameValueOverloadedMethodMethod(info); | 9933 TestObjectV8Internal::DeprecateAsSameValueOverloadedMethodMethod(info); |
9466 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9934 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
9467 } | 9935 } |
9468 | 9936 |
9469 static void measureAsOverloadedMethod1Method(const v8::FunctionCallbackInfo<v8::
Value>& info) | 9937 static void measureAsOverloadedMethod1Method(const v8::FunctionCallbackInfo<v8::
Value>& info) |
9470 { | 9938 { |
9471 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9939 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
9472 impl->measureAsOverloadedMethod(); | 9940 impl->measureAsOverloadedMethod(); |
9473 } | 9941 } |
9474 | 9942 |
9475 static void measureAsOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8::
Value>& info) | 9943 static void measureAsOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8::
Value>& info) |
9476 { | 9944 { |
9477 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsOv
erloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); | 9945 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsOv
erloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); |
9478 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9946 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
9479 int arg; | 9947 int arg; |
9480 { | 9948 { |
9481 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta
te), exceptionState); | 9949 arg = toInt32(info[0], exceptionState); |
| 9950 if (exceptionState.throwIfNeeded()) |
| 9951 return; |
9482 } | 9952 } |
9483 impl->measureAsOverloadedMethod(arg); | 9953 impl->measureAsOverloadedMethod(arg); |
9484 } | 9954 } |
9485 | 9955 |
9486 static void measureAsOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 9956 static void measureAsOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
9487 { | 9957 { |
9488 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsOv
erloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); | 9958 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsOv
erloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); |
9489 switch (std::min(1, info.Length())) { | 9959 switch (std::min(1, info.Length())) { |
9490 case 0: | 9960 case 0: |
9491 if (true) { | 9961 if (true) { |
9492 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecut
ionContext(info.GetIsolate()), UseCounter::TestFeatureA); | 9962 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecut
ionContext(info.GetIsolate()), UseCounter::TestFeatureA); |
9493 measureAsOverloadedMethod1Method(info); | 9963 measureAsOverloadedMethod1Method(info); |
9494 return; | 9964 return; |
9495 } | 9965 } |
9496 break; | 9966 break; |
9497 case 1: | 9967 case 1: |
9498 if (true) { | 9968 if (true) { |
9499 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecut
ionContext(info.GetIsolate()), UseCounter::TestFeatureB); | 9969 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecut
ionContext(info.GetIsolate()), UseCounter::TestFeatureB); |
9500 measureAsOverloadedMethod2Method(info); | 9970 measureAsOverloadedMethod2Method(info); |
9501 return; | 9971 return; |
9502 } | 9972 } |
9503 break; | 9973 break; |
9504 default: | 9974 default: |
9505 break; | 9975 break; |
9506 } | 9976 } |
9507 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 9977 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
9508 exceptionState.throwIfNeeded(); | 9978 exceptionState.throwIfNeeded(); |
| 9979 return; |
9509 } | 9980 } |
9510 | 9981 |
9511 static void measureAsOverloadedMethodMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 9982 static void measureAsOverloadedMethodMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
9512 { | 9983 { |
9513 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 9984 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
9514 TestObjectV8Internal::measureAsOverloadedMethodMethod(info); | 9985 TestObjectV8Internal::measureAsOverloadedMethodMethod(info); |
9515 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9986 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
9516 } | 9987 } |
9517 | 9988 |
9518 static void measureAsSameValueOverloadedMethod1Method(const v8::FunctionCallback
Info<v8::Value>& info) | 9989 static void measureAsSameValueOverloadedMethod1Method(const v8::FunctionCallback
Info<v8::Value>& info) |
9519 { | 9990 { |
9520 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9991 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
9521 impl->measureAsSameValueOverloadedMethod(); | 9992 impl->measureAsSameValueOverloadedMethod(); |
9522 } | 9993 } |
9523 | 9994 |
9524 static void measureAsSameValueOverloadedMethod2Method(const v8::FunctionCallback
Info<v8::Value>& info) | 9995 static void measureAsSameValueOverloadedMethod2Method(const v8::FunctionCallback
Info<v8::Value>& info) |
9525 { | 9996 { |
9526 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsSa
meValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); | 9997 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsSa
meValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); |
9527 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9998 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
9528 int arg; | 9999 int arg; |
9529 { | 10000 { |
9530 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta
te), exceptionState); | 10001 arg = toInt32(info[0], exceptionState); |
| 10002 if (exceptionState.throwIfNeeded()) |
| 10003 return; |
9531 } | 10004 } |
9532 impl->measureAsSameValueOverloadedMethod(arg); | 10005 impl->measureAsSameValueOverloadedMethod(arg); |
9533 } | 10006 } |
9534 | 10007 |
9535 static void measureAsSameValueOverloadedMethodMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 10008 static void measureAsSameValueOverloadedMethodMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
9536 { | 10009 { |
9537 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsSa
meValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); | 10010 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsSa
meValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); |
9538 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte
xt(info.GetIsolate()), UseCounter::TestFeature); | 10011 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte
xt(info.GetIsolate()), UseCounter::TestFeature); |
9539 switch (std::min(1, info.Length())) { | 10012 switch (std::min(1, info.Length())) { |
9540 case 0: | 10013 case 0: |
9541 if (true) { | 10014 if (true) { |
9542 measureAsSameValueOverloadedMethod1Method(info); | 10015 measureAsSameValueOverloadedMethod1Method(info); |
9543 return; | 10016 return; |
9544 } | 10017 } |
9545 break; | 10018 break; |
9546 case 1: | 10019 case 1: |
9547 if (true) { | 10020 if (true) { |
9548 measureAsSameValueOverloadedMethod2Method(info); | 10021 measureAsSameValueOverloadedMethod2Method(info); |
9549 return; | 10022 return; |
9550 } | 10023 } |
9551 break; | 10024 break; |
9552 default: | 10025 default: |
9553 break; | 10026 break; |
9554 } | 10027 } |
9555 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 10028 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
9556 exceptionState.throwIfNeeded(); | 10029 exceptionState.throwIfNeeded(); |
| 10030 return; |
9557 } | 10031 } |
9558 | 10032 |
9559 static void measureAsSameValueOverloadedMethodMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) | 10033 static void measureAsSameValueOverloadedMethodMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) |
9560 { | 10034 { |
9561 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 10035 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
9562 TestObjectV8Internal::measureAsSameValueOverloadedMethodMethod(info); | 10036 TestObjectV8Internal::measureAsSameValueOverloadedMethodMethod(info); |
9563 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 10037 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
9564 } | 10038 } |
9565 | 10039 |
9566 static void deprecateAsMeasureAsSameValueOverloadedMethod1Method(const v8::Funct
ionCallbackInfo<v8::Value>& info) | 10040 static void deprecateAsMeasureAsSameValueOverloadedMethod1Method(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
9567 { | 10041 { |
9568 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 10042 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
9569 impl->deprecateAsMeasureAsSameValueOverloadedMethod(); | 10043 impl->deprecateAsMeasureAsSameValueOverloadedMethod(); |
9570 } | 10044 } |
9571 | 10045 |
9572 static void deprecateAsMeasureAsSameValueOverloadedMethod2Method(const v8::Funct
ionCallbackInfo<v8::Value>& info) | 10046 static void deprecateAsMeasureAsSameValueOverloadedMethod2Method(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
9573 { | 10047 { |
9574 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs
MeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat
e()); | 10048 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs
MeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat
e()); |
9575 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 10049 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
9576 int arg; | 10050 int arg; |
9577 { | 10051 { |
9578 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta
te), exceptionState); | 10052 arg = toInt32(info[0], exceptionState); |
| 10053 if (exceptionState.throwIfNeeded()) |
| 10054 return; |
9579 } | 10055 } |
9580 impl->deprecateAsMeasureAsSameValueOverloadedMethod(arg); | 10056 impl->deprecateAsMeasureAsSameValueOverloadedMethod(arg); |
9581 } | 10057 } |
9582 | 10058 |
9583 static void deprecateAsMeasureAsSameValueOverloadedMethodMethod(const v8::Functi
onCallbackInfo<v8::Value>& info) | 10059 static void deprecateAsMeasureAsSameValueOverloadedMethodMethod(const v8::Functi
onCallbackInfo<v8::Value>& info) |
9584 { | 10060 { |
9585 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs
MeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat
e()); | 10061 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs
MeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat
e()); |
9586 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte
xt(info.GetIsolate()), UseCounter::TestFeature); | 10062 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte
xt(info.GetIsolate()), UseCounter::TestFeature); |
9587 switch (std::min(1, info.Length())) { | 10063 switch (std::min(1, info.Length())) { |
9588 case 0: | 10064 case 0: |
9589 if (true) { | 10065 if (true) { |
9590 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), ca
llingExecutionContext(info.GetIsolate()), UseCounter::TestFeatureA); | 10066 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), ca
llingExecutionContext(info.GetIsolate()), UseCounter::TestFeatureA); |
9591 deprecateAsMeasureAsSameValueOverloadedMethod1Method(info); | 10067 deprecateAsMeasureAsSameValueOverloadedMethod1Method(info); |
9592 return; | 10068 return; |
9593 } | 10069 } |
9594 break; | 10070 break; |
9595 case 1: | 10071 case 1: |
9596 if (true) { | 10072 if (true) { |
9597 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), ca
llingExecutionContext(info.GetIsolate()), UseCounter::TestFeatureB); | 10073 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), ca
llingExecutionContext(info.GetIsolate()), UseCounter::TestFeatureB); |
9598 deprecateAsMeasureAsSameValueOverloadedMethod2Method(info); | 10074 deprecateAsMeasureAsSameValueOverloadedMethod2Method(info); |
9599 return; | 10075 return; |
9600 } | 10076 } |
9601 break; | 10077 break; |
9602 default: | 10078 default: |
9603 break; | 10079 break; |
9604 } | 10080 } |
9605 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 10081 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
9606 exceptionState.throwIfNeeded(); | 10082 exceptionState.throwIfNeeded(); |
| 10083 return; |
9607 } | 10084 } |
9608 | 10085 |
9609 static void deprecateAsMeasureAsSameValueOverloadedMethodMethodCallback(const v8
::FunctionCallbackInfo<v8::Value>& info) | 10086 static void deprecateAsMeasureAsSameValueOverloadedMethodMethodCallback(const v8
::FunctionCallbackInfo<v8::Value>& info) |
9610 { | 10087 { |
9611 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 10088 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
9612 TestObjectV8Internal::deprecateAsMeasureAsSameValueOverloadedMethodMethod(in
fo); | 10089 TestObjectV8Internal::deprecateAsMeasureAsSameValueOverloadedMethodMethod(in
fo); |
9613 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 10090 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
9614 } | 10091 } |
9615 | 10092 |
9616 static void deprecateAsSameValueMeasureAsOverloadedMethod1Method(const v8::Funct
ionCallbackInfo<v8::Value>& info) | 10093 static void deprecateAsSameValueMeasureAsOverloadedMethod1Method(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
9617 { | 10094 { |
9618 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 10095 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
9619 impl->deprecateAsSameValueMeasureAsOverloadedMethod(); | 10096 impl->deprecateAsSameValueMeasureAsOverloadedMethod(); |
9620 } | 10097 } |
9621 | 10098 |
9622 static void deprecateAsSameValueMeasureAsOverloadedMethod2Method(const v8::Funct
ionCallbackInfo<v8::Value>& info) | 10099 static void deprecateAsSameValueMeasureAsOverloadedMethod2Method(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
9623 { | 10100 { |
9624 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs
SameValueMeasureAsOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat
e()); | 10101 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs
SameValueMeasureAsOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat
e()); |
9625 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 10102 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
9626 int arg; | 10103 int arg; |
9627 { | 10104 { |
9628 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta
te), exceptionState); | 10105 arg = toInt32(info[0], exceptionState); |
| 10106 if (exceptionState.throwIfNeeded()) |
| 10107 return; |
9629 } | 10108 } |
9630 impl->deprecateAsSameValueMeasureAsOverloadedMethod(arg); | 10109 impl->deprecateAsSameValueMeasureAsOverloadedMethod(arg); |
9631 } | 10110 } |
9632 | 10111 |
9633 static void deprecateAsSameValueMeasureAsOverloadedMethodMethod(const v8::Functi
onCallbackInfo<v8::Value>& info) | 10112 static void deprecateAsSameValueMeasureAsOverloadedMethodMethod(const v8::Functi
onCallbackInfo<v8::Value>& info) |
9634 { | 10113 { |
9635 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs
SameValueMeasureAsOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat
e()); | 10114 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs
SameValueMeasureAsOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat
e()); |
9636 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe
cutionContext(info.GetIsolate()), UseCounter::TestFeature); | 10115 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe
cutionContext(info.GetIsolate()), UseCounter::TestFeature); |
9637 switch (std::min(1, info.Length())) { | 10116 switch (std::min(1, info.Length())) { |
9638 case 0: | 10117 case 0: |
9639 if (true) { | 10118 if (true) { |
9640 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecut
ionContext(info.GetIsolate()), UseCounter::TestFeatureA); | 10119 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecut
ionContext(info.GetIsolate()), UseCounter::TestFeatureA); |
9641 deprecateAsSameValueMeasureAsOverloadedMethod1Method(info); | 10120 deprecateAsSameValueMeasureAsOverloadedMethod1Method(info); |
9642 return; | 10121 return; |
9643 } | 10122 } |
9644 break; | 10123 break; |
9645 case 1: | 10124 case 1: |
9646 if (true) { | 10125 if (true) { |
9647 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecut
ionContext(info.GetIsolate()), UseCounter::TestFeatureB); | 10126 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecut
ionContext(info.GetIsolate()), UseCounter::TestFeatureB); |
9648 deprecateAsSameValueMeasureAsOverloadedMethod2Method(info); | 10127 deprecateAsSameValueMeasureAsOverloadedMethod2Method(info); |
9649 return; | 10128 return; |
9650 } | 10129 } |
9651 break; | 10130 break; |
9652 default: | 10131 default: |
9653 break; | 10132 break; |
9654 } | 10133 } |
9655 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 10134 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
9656 exceptionState.throwIfNeeded(); | 10135 exceptionState.throwIfNeeded(); |
| 10136 return; |
9657 } | 10137 } |
9658 | 10138 |
9659 static void deprecateAsSameValueMeasureAsOverloadedMethodMethodCallback(const v8
::FunctionCallbackInfo<v8::Value>& info) | 10139 static void deprecateAsSameValueMeasureAsOverloadedMethodMethodCallback(const v8
::FunctionCallbackInfo<v8::Value>& info) |
9660 { | 10140 { |
9661 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 10141 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
9662 TestObjectV8Internal::deprecateAsSameValueMeasureAsOverloadedMethodMethod(in
fo); | 10142 TestObjectV8Internal::deprecateAsSameValueMeasureAsOverloadedMethodMethod(in
fo); |
9663 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 10143 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
9664 } | 10144 } |
9665 | 10145 |
9666 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethod1Method(const
v8::FunctionCallbackInfo<v8::Value>& info) | 10146 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethod1Method(const
v8::FunctionCallbackInfo<v8::Value>& info) |
9667 { | 10147 { |
9668 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 10148 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
9669 impl->deprecateAsSameValueMeasureAsSameValueOverloadedMethod(); | 10149 impl->deprecateAsSameValueMeasureAsSameValueOverloadedMethod(); |
9670 } | 10150 } |
9671 | 10151 |
9672 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethod2Method(const
v8::FunctionCallbackInfo<v8::Value>& info) | 10152 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethod2Method(const
v8::FunctionCallbackInfo<v8::Value>& info) |
9673 { | 10153 { |
9674 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs
SameValueMeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info.
GetIsolate()); | 10154 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs
SameValueMeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info.
GetIsolate()); |
9675 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 10155 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
9676 int arg; | 10156 int arg; |
9677 { | 10157 { |
9678 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta
te), exceptionState); | 10158 arg = toInt32(info[0], exceptionState); |
| 10159 if (exceptionState.throwIfNeeded()) |
| 10160 return; |
9679 } | 10161 } |
9680 impl->deprecateAsSameValueMeasureAsSameValueOverloadedMethod(arg); | 10162 impl->deprecateAsSameValueMeasureAsSameValueOverloadedMethod(arg); |
9681 } | 10163 } |
9682 | 10164 |
9683 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethodMethod(const v
8::FunctionCallbackInfo<v8::Value>& info) | 10165 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethodMethod(const v
8::FunctionCallbackInfo<v8::Value>& info) |
9684 { | 10166 { |
9685 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs
SameValueMeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info.
GetIsolate()); | 10167 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs
SameValueMeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info.
GetIsolate()); |
9686 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte
xt(info.GetIsolate()), UseCounter::TestFeatureB); | 10168 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte
xt(info.GetIsolate()), UseCounter::TestFeatureB); |
9687 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe
cutionContext(info.GetIsolate()), UseCounter::TestFeatureA); | 10169 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe
cutionContext(info.GetIsolate()), UseCounter::TestFeatureA); |
9688 switch (std::min(1, info.Length())) { | 10170 switch (std::min(1, info.Length())) { |
9689 case 0: | 10171 case 0: |
9690 if (true) { | 10172 if (true) { |
9691 deprecateAsSameValueMeasureAsSameValueOverloadedMethod1Method(info); | 10173 deprecateAsSameValueMeasureAsSameValueOverloadedMethod1Method(info); |
9692 return; | 10174 return; |
9693 } | 10175 } |
9694 break; | 10176 break; |
9695 case 1: | 10177 case 1: |
9696 if (true) { | 10178 if (true) { |
9697 deprecateAsSameValueMeasureAsSameValueOverloadedMethod2Method(info); | 10179 deprecateAsSameValueMeasureAsSameValueOverloadedMethod2Method(info); |
9698 return; | 10180 return; |
9699 } | 10181 } |
9700 break; | 10182 break; |
9701 default: | 10183 default: |
9702 break; | 10184 break; |
9703 } | 10185 } |
9704 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 10186 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
9705 exceptionState.throwIfNeeded(); | 10187 exceptionState.throwIfNeeded(); |
| 10188 return; |
9706 } | 10189 } |
9707 | 10190 |
9708 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethodMethodCallback
(const v8::FunctionCallbackInfo<v8::Value>& info) | 10191 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethodMethodCallback
(const v8::FunctionCallbackInfo<v8::Value>& info) |
9709 { | 10192 { |
9710 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 10193 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
9711 TestObjectV8Internal::deprecateAsSameValueMeasureAsSameValueOverloadedMethod
Method(info); | 10194 TestObjectV8Internal::deprecateAsSameValueMeasureAsSameValueOverloadedMethod
Method(info); |
9712 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 10195 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
9713 } | 10196 } |
9714 | 10197 |
9715 static void notEnumerableVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 10198 static void notEnumerableVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9923 int optionalLongArg; | 10406 int optionalLongArg; |
9924 { | 10407 { |
9925 if (UNLIKELY(info.Length() <= 0)) { | 10408 if (UNLIKELY(info.Length() <= 0)) { |
9926 impl->raisesExceptionVoidMethodOptionalLongArg(exceptionState); | 10409 impl->raisesExceptionVoidMethodOptionalLongArg(exceptionState); |
9927 if (exceptionState.hadException()) { | 10410 if (exceptionState.hadException()) { |
9928 exceptionState.throwIfNeeded(); | 10411 exceptionState.throwIfNeeded(); |
9929 return; | 10412 return; |
9930 } | 10413 } |
9931 return; | 10414 return; |
9932 } | 10415 } |
9933 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0],
exceptionState), exceptionState); | 10416 optionalLongArg = toInt32(info[0], exceptionState); |
| 10417 if (exceptionState.throwIfNeeded()) |
| 10418 return; |
9934 } | 10419 } |
9935 impl->raisesExceptionVoidMethodOptionalLongArg(optionalLongArg, exceptionSta
te); | 10420 impl->raisesExceptionVoidMethodOptionalLongArg(optionalLongArg, exceptionSta
te); |
9936 if (exceptionState.hadException()) { | 10421 if (exceptionState.hadException()) { |
9937 exceptionState.throwIfNeeded(); | 10422 exceptionState.throwIfNeeded(); |
9938 return; | 10423 return; |
9939 } | 10424 } |
9940 } | 10425 } |
9941 | 10426 |
9942 static void raisesExceptionVoidMethodOptionalLongArgMethodCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) | 10427 static void raisesExceptionVoidMethodOptionalLongArgMethodCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) |
9943 { | 10428 { |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10032 { | 10517 { |
10033 ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithExe
cutionContextRaisesExceptionVoidMethodLongArg", "TestObject", info.Holder(), inf
o.GetIsolate()); | 10518 ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithExe
cutionContextRaisesExceptionVoidMethodLongArg", "TestObject", info.Holder(), inf
o.GetIsolate()); |
10034 if (UNLIKELY(info.Length() < 1)) { | 10519 if (UNLIKELY(info.Length() < 1)) { |
10035 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 10520 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
10036 exceptionState.throwIfNeeded(); | 10521 exceptionState.throwIfNeeded(); |
10037 return; | 10522 return; |
10038 } | 10523 } |
10039 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 10524 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
10040 int longArg; | 10525 int longArg; |
10041 { | 10526 { |
10042 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); | 10527 longArg = toInt32(info[0], exceptionState); |
| 10528 if (exceptionState.throwIfNeeded()) |
| 10529 return; |
10043 } | 10530 } |
10044 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate
()); | 10531 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate
()); |
10045 impl->callWithExecutionContextRaisesExceptionVoidMethodLongArg(executionCont
ext, longArg, exceptionState); | 10532 impl->callWithExecutionContextRaisesExceptionVoidMethodLongArg(executionCont
ext, longArg, exceptionState); |
10046 if (exceptionState.hadException()) { | 10533 if (exceptionState.hadException()) { |
10047 exceptionState.throwIfNeeded(); | 10534 exceptionState.throwIfNeeded(); |
10048 return; | 10535 return; |
10049 } | 10536 } |
10050 } | 10537 } |
10051 | 10538 |
10052 static void callWithExecutionContextRaisesExceptionVoidMethodLongArgMethodCallba
ck(const v8::FunctionCallbackInfo<v8::Value>& info) | 10539 static void callWithExecutionContextRaisesExceptionVoidMethodLongArgMethodCallba
ck(const v8::FunctionCallbackInfo<v8::Value>& info) |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10093 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 10580 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
10094 TestObjectV8Internal::perWorldBindingsRuntimeEnabledVoidMethodMethodForMainW
orld(info); | 10581 TestObjectV8Internal::perWorldBindingsRuntimeEnabledVoidMethodMethodForMainW
orld(info); |
10095 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 10582 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
10096 } | 10583 } |
10097 | 10584 |
10098 static void runtimeEnabledOverloadedVoidMethod1Method(const v8::FunctionCallback
Info<v8::Value>& info) | 10585 static void runtimeEnabledOverloadedVoidMethod1Method(const v8::FunctionCallback
Info<v8::Value>& info) |
10099 { | 10586 { |
10100 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 10587 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
10101 V8StringResource<> stringArg; | 10588 V8StringResource<> stringArg; |
10102 { | 10589 { |
10103 TOSTRING_VOID_INTERNAL(stringArg, info[0]); | 10590 stringArg = info[0]; |
| 10591 if (!stringArg.prepare()) |
| 10592 return; |
10104 } | 10593 } |
10105 impl->runtimeEnabledOverloadedVoidMethod(stringArg); | 10594 impl->runtimeEnabledOverloadedVoidMethod(stringArg); |
10106 } | 10595 } |
10107 | 10596 |
10108 static void runtimeEnabledOverloadedVoidMethod2Method(const v8::FunctionCallback
Info<v8::Value>& info) | 10597 static void runtimeEnabledOverloadedVoidMethod2Method(const v8::FunctionCallback
Info<v8::Value>& info) |
10109 { | 10598 { |
10110 ExceptionState exceptionState(ExceptionState::ExecutionContext, "runtimeEnab
ledOverloadedVoidMethod", "TestObject", info.Holder(), info.GetIsolate()); | 10599 ExceptionState exceptionState(ExceptionState::ExecutionContext, "runtimeEnab
ledOverloadedVoidMethod", "TestObject", info.Holder(), info.GetIsolate()); |
10111 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 10600 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
10112 int longArg; | 10601 int longArg; |
10113 { | 10602 { |
10114 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); | 10603 longArg = toInt32(info[0], exceptionState); |
| 10604 if (exceptionState.throwIfNeeded()) |
| 10605 return; |
10115 } | 10606 } |
10116 impl->runtimeEnabledOverloadedVoidMethod(longArg); | 10607 impl->runtimeEnabledOverloadedVoidMethod(longArg); |
10117 } | 10608 } |
10118 | 10609 |
10119 static void runtimeEnabledOverloadedVoidMethodMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 10610 static void runtimeEnabledOverloadedVoidMethodMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
10120 { | 10611 { |
10121 ExceptionState exceptionState(ExceptionState::ExecutionContext, "runtimeEnab
ledOverloadedVoidMethod", "TestObject", info.Holder(), info.GetIsolate()); | 10612 ExceptionState exceptionState(ExceptionState::ExecutionContext, "runtimeEnab
ledOverloadedVoidMethod", "TestObject", info.Holder(), info.GetIsolate()); |
10122 switch (std::min(1, info.Length())) { | 10613 switch (std::min(1, info.Length())) { |
10123 case 1: | 10614 case 1: |
10124 if (info[0]->IsNumber()) { | 10615 if (info[0]->IsNumber()) { |
(...skipping 12 matching lines...) Expand all Loading... |
10137 default: | 10628 default: |
10138 break; | 10629 break; |
10139 } | 10630 } |
10140 if (info.Length() < 1) { | 10631 if (info.Length() < 1) { |
10141 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 10632 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
10142 exceptionState.throwIfNeeded(); | 10633 exceptionState.throwIfNeeded(); |
10143 return; | 10634 return; |
10144 } | 10635 } |
10145 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 10636 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
10146 exceptionState.throwIfNeeded(); | 10637 exceptionState.throwIfNeeded(); |
| 10638 return; |
10147 } | 10639 } |
10148 | 10640 |
10149 static void runtimeEnabledOverloadedVoidMethodMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) | 10641 static void runtimeEnabledOverloadedVoidMethodMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) |
10150 { | 10642 { |
10151 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 10643 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
10152 TestObjectV8Internal::runtimeEnabledOverloadedVoidMethodMethod(info); | 10644 TestObjectV8Internal::runtimeEnabledOverloadedVoidMethodMethod(info); |
10153 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 10645 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
10154 } | 10646 } |
10155 | 10647 |
10156 static void partiallyRuntimeEnabledOverloadedVoidMethod1Method(const v8::Functio
nCallbackInfo<v8::Value>& info) | 10648 static void partiallyRuntimeEnabledOverloadedVoidMethod1Method(const v8::Functio
nCallbackInfo<v8::Value>& info) |
10157 { | 10649 { |
10158 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 10650 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
10159 V8StringResource<> stringArg; | 10651 V8StringResource<> stringArg; |
10160 { | 10652 { |
10161 TOSTRING_VOID_INTERNAL(stringArg, info[0]); | 10653 stringArg = info[0]; |
| 10654 if (!stringArg.prepare()) |
| 10655 return; |
10162 } | 10656 } |
10163 impl->partiallyRuntimeEnabledOverloadedVoidMethod(stringArg); | 10657 impl->partiallyRuntimeEnabledOverloadedVoidMethod(stringArg); |
10164 } | 10658 } |
10165 | 10659 |
10166 static void partiallyRuntimeEnabledOverloadedVoidMethod2Method(const v8::Functio
nCallbackInfo<v8::Value>& info) | 10660 static void partiallyRuntimeEnabledOverloadedVoidMethod2Method(const v8::Functio
nCallbackInfo<v8::Value>& info) |
10167 { | 10661 { |
10168 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 10662 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
10169 TestInterfaceImplementation* testInterface; | 10663 TestInterfaceImplementation* testInterface; |
10170 { | 10664 { |
10171 testInterface = V8TestInterface::toImplWithTypeCheck(info.GetIsolate(),
info[0]); | 10665 testInterface = V8TestInterface::toImplWithTypeCheck(info.GetIsolate(),
info[0]); |
10172 } | 10666 } |
10173 impl->partiallyRuntimeEnabledOverloadedVoidMethod(testInterface); | 10667 impl->partiallyRuntimeEnabledOverloadedVoidMethod(testInterface); |
10174 } | 10668 } |
10175 | 10669 |
10176 static void partiallyRuntimeEnabledOverloadedVoidMethod3Method(const v8::Functio
nCallbackInfo<v8::Value>& info) | 10670 static void partiallyRuntimeEnabledOverloadedVoidMethod3Method(const v8::Functio
nCallbackInfo<v8::Value>& info) |
10177 { | 10671 { |
10178 ExceptionState exceptionState(ExceptionState::ExecutionContext, "partiallyRu
ntimeEnabledOverloadedVoidMethod", "TestObject", info.Holder(), info.GetIsolate(
)); | 10672 ExceptionState exceptionState(ExceptionState::ExecutionContext, "partiallyRu
ntimeEnabledOverloadedVoidMethod", "TestObject", info.Holder(), info.GetIsolate(
)); |
10179 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 10673 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
10180 int longArg; | 10674 int longArg; |
10181 V8StringResource<> stringArg; | 10675 V8StringResource<> stringArg; |
10182 { | 10676 { |
10183 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); | 10677 longArg = toInt32(info[0], exceptionState); |
10184 TOSTRING_VOID_INTERNAL(stringArg, info[1]); | 10678 if (exceptionState.throwIfNeeded()) |
| 10679 return; |
| 10680 stringArg = info[1]; |
| 10681 if (!stringArg.prepare()) |
| 10682 return; |
10185 } | 10683 } |
10186 impl->partiallyRuntimeEnabledOverloadedVoidMethod(longArg, stringArg); | 10684 impl->partiallyRuntimeEnabledOverloadedVoidMethod(longArg, stringArg); |
10187 } | 10685 } |
10188 | 10686 |
10189 static int partiallyRuntimeEnabledOverloadedVoidMethodMethodLength() | 10687 static int partiallyRuntimeEnabledOverloadedVoidMethodMethodLength() |
10190 { | 10688 { |
10191 if (RuntimeEnabledFeatures::featureName1Enabled()) { | 10689 if (RuntimeEnabledFeatures::featureName1Enabled()) { |
10192 return 1; | 10690 return 1; |
10193 } | 10691 } |
10194 if (RuntimeEnabledFeatures::featureName2Enabled()) { | 10692 if (RuntimeEnabledFeatures::featureName2Enabled()) { |
(...skipping 29 matching lines...) Expand all Loading... |
10224 default: | 10722 default: |
10225 break; | 10723 break; |
10226 } | 10724 } |
10227 if (info.Length() < TestObjectV8Internal::partiallyRuntimeEnabledOverloadedV
oidMethodMethodLength()) { | 10725 if (info.Length() < TestObjectV8Internal::partiallyRuntimeEnabledOverloadedV
oidMethodMethodLength()) { |
10228 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(Test
ObjectV8Internal::partiallyRuntimeEnabledOverloadedVoidMethodMethodLength(), inf
o.Length())); | 10726 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(Test
ObjectV8Internal::partiallyRuntimeEnabledOverloadedVoidMethodMethodLength(), inf
o.Length())); |
10229 exceptionState.throwIfNeeded(); | 10727 exceptionState.throwIfNeeded(); |
10230 return; | 10728 return; |
10231 } | 10729 } |
10232 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 10730 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
10233 exceptionState.throwIfNeeded(); | 10731 exceptionState.throwIfNeeded(); |
| 10732 return; |
10234 } | 10733 } |
10235 | 10734 |
10236 static void partiallyRuntimeEnabledOverloadedVoidMethodMethodCallback(const v8::
FunctionCallbackInfo<v8::Value>& info) | 10735 static void partiallyRuntimeEnabledOverloadedVoidMethodMethodCallback(const v8::
FunctionCallbackInfo<v8::Value>& info) |
10237 { | 10736 { |
10238 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 10737 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
10239 TestObjectV8Internal::partiallyRuntimeEnabledOverloadedVoidMethodMethod(info
); | 10738 TestObjectV8Internal::partiallyRuntimeEnabledOverloadedVoidMethodMethod(info
); |
10240 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 10739 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
10241 } | 10740 } |
10242 | 10741 |
10243 static void treatReturnedNullStringAsNullStringMethodMethod(const v8::FunctionCa
llbackInfo<v8::Value>& info) | 10742 static void treatReturnedNullStringAsNullStringMethodMethod(const v8::FunctionCa
llbackInfo<v8::Value>& info) |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10470 ExceptionState exceptionState(ExceptionState::ExecutionContext, "typeCheckin
gUnrestrictedVoidMethodFloatArgDoubleArg", "TestObject", info.Holder(), info.Get
Isolate()); | 10969 ExceptionState exceptionState(ExceptionState::ExecutionContext, "typeCheckin
gUnrestrictedVoidMethodFloatArgDoubleArg", "TestObject", info.Holder(), info.Get
Isolate()); |
10471 if (UNLIKELY(info.Length() < 2)) { | 10970 if (UNLIKELY(info.Length() < 2)) { |
10472 setMinimumArityTypeError(exceptionState, 2, info.Length()); | 10971 setMinimumArityTypeError(exceptionState, 2, info.Length()); |
10473 exceptionState.throwIfNeeded(); | 10972 exceptionState.throwIfNeeded(); |
10474 return; | 10973 return; |
10475 } | 10974 } |
10476 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 10975 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
10477 float floatArg; | 10976 float floatArg; |
10478 double doubleArg; | 10977 double doubleArg; |
10479 { | 10978 { |
10480 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(floatArg, toRestrictedFloat(info[0
], exceptionState), exceptionState); | 10979 floatArg = toRestrictedFloat(info[0], exceptionState); |
10481 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(doubleArg, toRestrictedDouble(info
[1], exceptionState), exceptionState); | 10980 if (exceptionState.throwIfNeeded()) |
| 10981 return; |
| 10982 doubleArg = toRestrictedDouble(info[1], exceptionState); |
| 10983 if (exceptionState.throwIfNeeded()) |
| 10984 return; |
10482 } | 10985 } |
10483 impl->typeCheckingUnrestrictedVoidMethodFloatArgDoubleArg(floatArg, doubleAr
g); | 10986 impl->typeCheckingUnrestrictedVoidMethodFloatArgDoubleArg(floatArg, doubleAr
g); |
10484 } | 10987 } |
10485 | 10988 |
10486 static void typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMethodCallback(co
nst v8::FunctionCallbackInfo<v8::Value>& info) | 10989 static void typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMethodCallback(co
nst v8::FunctionCallbackInfo<v8::Value>& info) |
10487 { | 10990 { |
10488 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 10991 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
10489 TestObjectV8Internal::typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMet
hod(info); | 10992 TestObjectV8Internal::typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMet
hod(info); |
10490 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 10993 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
10491 } | 10994 } |
(...skipping 15 matching lines...) Expand all Loading... |
10507 { | 11010 { |
10508 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT
estInterfaceGarbageCollectedSequenceArg", "TestObject", info.Holder(), info.GetI
solate()); | 11011 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT
estInterfaceGarbageCollectedSequenceArg", "TestObject", info.Holder(), info.GetI
solate()); |
10509 if (UNLIKELY(info.Length() < 1)) { | 11012 if (UNLIKELY(info.Length() < 1)) { |
10510 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 11013 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
10511 exceptionState.throwIfNeeded(); | 11014 exceptionState.throwIfNeeded(); |
10512 return; | 11015 return; |
10513 } | 11016 } |
10514 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 11017 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
10515 HeapVector<Member<TestInterfaceGarbageCollected>> testInterfaceGarbageCollec
tedSequenceArg; | 11018 HeapVector<Member<TestInterfaceGarbageCollected>> testInterfaceGarbageCollec
tedSequenceArg; |
10516 { | 11019 { |
10517 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(testInterfaceGarbageCollectedSeque
nceArg, (toMemberNativeArray<TestInterfaceGarbageCollected, V8TestInterfaceGarba
geCollected>(info[0], 1, info.GetIsolate(), exceptionState)), exceptionState); | 11020 testInterfaceGarbageCollectedSequenceArg = (toMemberNativeArray<TestInte
rfaceGarbageCollected, V8TestInterfaceGarbageCollected>(info[0], 1, info.GetIsol
ate(), exceptionState)); |
| 11021 if (exceptionState.throwIfNeeded()) |
| 11022 return; |
10518 } | 11023 } |
10519 impl->voidMethodTestInterfaceGarbageCollectedSequenceArg(testInterfaceGarbag
eCollectedSequenceArg); | 11024 impl->voidMethodTestInterfaceGarbageCollectedSequenceArg(testInterfaceGarbag
eCollectedSequenceArg); |
10520 } | 11025 } |
10521 | 11026 |
10522 static void voidMethodTestInterfaceGarbageCollectedSequenceArgMethodCallback(con
st v8::FunctionCallbackInfo<v8::Value>& info) | 11027 static void voidMethodTestInterfaceGarbageCollectedSequenceArgMethodCallback(con
st v8::FunctionCallbackInfo<v8::Value>& info) |
10523 { | 11028 { |
10524 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 11029 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
10525 TestObjectV8Internal::voidMethodTestInterfaceGarbageCollectedSequenceArgMeth
od(info); | 11030 TestObjectV8Internal::voidMethodTestInterfaceGarbageCollectedSequenceArgMeth
od(info); |
10526 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 11031 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
10527 } | 11032 } |
10528 | 11033 |
10529 static void voidMethodTestInterfaceGarbageCollectedArrayArgMethod(const v8::Func
tionCallbackInfo<v8::Value>& info) | 11034 static void voidMethodTestInterfaceGarbageCollectedArrayArgMethod(const v8::Func
tionCallbackInfo<v8::Value>& info) |
10530 { | 11035 { |
10531 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT
estInterfaceGarbageCollectedArrayArg", "TestObject", info.Holder(), info.GetIsol
ate()); | 11036 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT
estInterfaceGarbageCollectedArrayArg", "TestObject", info.Holder(), info.GetIsol
ate()); |
10532 if (UNLIKELY(info.Length() < 1)) { | 11037 if (UNLIKELY(info.Length() < 1)) { |
10533 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 11038 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
10534 exceptionState.throwIfNeeded(); | 11039 exceptionState.throwIfNeeded(); |
10535 return; | 11040 return; |
10536 } | 11041 } |
10537 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 11042 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
10538 HeapVector<Member<TestInterfaceGarbageCollected>> testInterfaceGarbageCollec
tedArrayArg; | 11043 HeapVector<Member<TestInterfaceGarbageCollected>> testInterfaceGarbageCollec
tedArrayArg; |
10539 { | 11044 { |
10540 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(testInterfaceGarbageCollectedArray
Arg, (toMemberNativeArray<TestInterfaceGarbageCollected, V8TestInterfaceGarbageC
ollected>(info[0], 1, info.GetIsolate(), exceptionState)), exceptionState); | 11045 testInterfaceGarbageCollectedArrayArg = (toMemberNativeArray<TestInterfa
ceGarbageCollected, V8TestInterfaceGarbageCollected>(info[0], 1, info.GetIsolate
(), exceptionState)); |
| 11046 if (exceptionState.throwIfNeeded()) |
| 11047 return; |
10541 } | 11048 } |
10542 impl->voidMethodTestInterfaceGarbageCollectedArrayArg(testInterfaceGarbageCo
llectedArrayArg); | 11049 impl->voidMethodTestInterfaceGarbageCollectedArrayArg(testInterfaceGarbageCo
llectedArrayArg); |
10543 } | 11050 } |
10544 | 11051 |
10545 static void voidMethodTestInterfaceGarbageCollectedArrayArgMethodCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) | 11052 static void voidMethodTestInterfaceGarbageCollectedArrayArgMethodCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) |
10546 { | 11053 { |
10547 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 11054 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
10548 TestObjectV8Internal::voidMethodTestInterfaceGarbageCollectedArrayArgMethod(
info); | 11055 TestObjectV8Internal::voidMethodTestInterfaceGarbageCollectedArrayArgMethod(
info); |
10549 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 11056 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
10550 } | 11057 } |
10551 | 11058 |
10552 static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethod(const
v8::FunctionCallbackInfo<v8::Value>& info) | 11059 static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethod(const
v8::FunctionCallbackInfo<v8::Value>& info) |
10553 { | 11060 { |
10554 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT
estInterfaceWillBeGarbageCollectedSequenceArg", "TestObject", info.Holder(), inf
o.GetIsolate()); | 11061 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT
estInterfaceWillBeGarbageCollectedSequenceArg", "TestObject", info.Holder(), inf
o.GetIsolate()); |
10555 if (UNLIKELY(info.Length() < 1)) { | 11062 if (UNLIKELY(info.Length() < 1)) { |
10556 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 11063 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
10557 exceptionState.throwIfNeeded(); | 11064 exceptionState.throwIfNeeded(); |
10558 return; | 11065 return; |
10559 } | 11066 } |
10560 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 11067 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
10561 WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected>> te
stInterfaceWillBeGarbageCollectedSequenceArg; | 11068 WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected>> te
stInterfaceWillBeGarbageCollectedSequenceArg; |
10562 { | 11069 { |
10563 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(testInterfaceWillBeGarbageCollecte
dSequenceArg, (toRefPtrWillBeMemberNativeArray<TestInterfaceWillBeGarbageCollect
ed, V8TestInterfaceWillBeGarbageCollected>(info[0], 1, info.GetIsolate(), except
ionState)), exceptionState); | 11070 testInterfaceWillBeGarbageCollectedSequenceArg = (toRefPtrWillBeMemberNa
tiveArray<TestInterfaceWillBeGarbageCollected, V8TestInterfaceWillBeGarbageColle
cted>(info[0], 1, info.GetIsolate(), exceptionState)); |
| 11071 if (exceptionState.throwIfNeeded()) |
| 11072 return; |
10564 } | 11073 } |
10565 impl->voidMethodTestInterfaceWillBeGarbageCollectedSequenceArg(testInterface
WillBeGarbageCollectedSequenceArg); | 11074 impl->voidMethodTestInterfaceWillBeGarbageCollectedSequenceArg(testInterface
WillBeGarbageCollectedSequenceArg); |
10566 } | 11075 } |
10567 | 11076 |
10568 static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethodCallba
ck(const v8::FunctionCallbackInfo<v8::Value>& info) | 11077 static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethodCallba
ck(const v8::FunctionCallbackInfo<v8::Value>& info) |
10569 { | 11078 { |
10570 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 11079 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
10571 TestObjectV8Internal::voidMethodTestInterfaceWillBeGarbageCollectedSequenceA
rgMethod(info); | 11080 TestObjectV8Internal::voidMethodTestInterfaceWillBeGarbageCollectedSequenceA
rgMethod(info); |
10572 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 11081 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
10573 } | 11082 } |
10574 | 11083 |
10575 static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethod(const v8
::FunctionCallbackInfo<v8::Value>& info) | 11084 static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethod(const v8
::FunctionCallbackInfo<v8::Value>& info) |
10576 { | 11085 { |
10577 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT
estInterfaceWillBeGarbageCollectedArrayArg", "TestObject", info.Holder(), info.G
etIsolate()); | 11086 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT
estInterfaceWillBeGarbageCollectedArrayArg", "TestObject", info.Holder(), info.G
etIsolate()); |
10578 if (UNLIKELY(info.Length() < 1)) { | 11087 if (UNLIKELY(info.Length() < 1)) { |
10579 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 11088 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
10580 exceptionState.throwIfNeeded(); | 11089 exceptionState.throwIfNeeded(); |
10581 return; | 11090 return; |
10582 } | 11091 } |
10583 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 11092 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
10584 WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected>> te
stInterfaceWillBeGarbageCollectedArrayArg; | 11093 WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected>> te
stInterfaceWillBeGarbageCollectedArrayArg; |
10585 { | 11094 { |
10586 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(testInterfaceWillBeGarbageCollecte
dArrayArg, (toRefPtrWillBeMemberNativeArray<TestInterfaceWillBeGarbageCollected,
V8TestInterfaceWillBeGarbageCollected>(info[0], 1, info.GetIsolate(), exception
State)), exceptionState); | 11095 testInterfaceWillBeGarbageCollectedArrayArg = (toRefPtrWillBeMemberNativ
eArray<TestInterfaceWillBeGarbageCollected, V8TestInterfaceWillBeGarbageCollecte
d>(info[0], 1, info.GetIsolate(), exceptionState)); |
| 11096 if (exceptionState.throwIfNeeded()) |
| 11097 return; |
10587 } | 11098 } |
10588 impl->voidMethodTestInterfaceWillBeGarbageCollectedArrayArg(testInterfaceWil
lBeGarbageCollectedArrayArg); | 11099 impl->voidMethodTestInterfaceWillBeGarbageCollectedArrayArg(testInterfaceWil
lBeGarbageCollectedArrayArg); |
10589 } | 11100 } |
10590 | 11101 |
10591 static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethodCallback(
const v8::FunctionCallbackInfo<v8::Value>& info) | 11102 static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethodCallback(
const v8::FunctionCallbackInfo<v8::Value>& info) |
10592 { | 11103 { |
10593 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 11104 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
10594 TestObjectV8Internal::voidMethodTestInterfaceWillBeGarbageCollectedArrayArgM
ethod(info); | 11105 TestObjectV8Internal::voidMethodTestInterfaceWillBeGarbageCollectedArrayArgM
ethod(info); |
10595 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 11106 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
10596 } | 11107 } |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10628 { | 11139 { |
10629 ExceptionState exceptionState(ExceptionState::ExecutionContext, "shortMethod
WithShortArgumentImplementedInPrivateScript", "TestObject", info.Holder(), info.
GetIsolate()); | 11140 ExceptionState exceptionState(ExceptionState::ExecutionContext, "shortMethod
WithShortArgumentImplementedInPrivateScript", "TestObject", info.Holder(), info.
GetIsolate()); |
10630 if (UNLIKELY(info.Length() < 1)) { | 11141 if (UNLIKELY(info.Length() < 1)) { |
10631 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 11142 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
10632 exceptionState.throwIfNeeded(); | 11143 exceptionState.throwIfNeeded(); |
10633 return; | 11144 return; |
10634 } | 11145 } |
10635 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 11146 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
10636 int value; | 11147 int value; |
10637 { | 11148 { |
10638 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(value, toInt16(info[0], exceptionS
tate), exceptionState); | 11149 value = toInt16(info[0], exceptionState); |
| 11150 if (exceptionState.throwIfNeeded()) |
| 11151 return; |
10639 } | 11152 } |
10640 int result = 0; | 11153 int result = 0; |
10641 if (!V8TestObject::PrivateScript::shortMethodWithShortArgumentImplementedInP
rivateScriptMethod(toLocalFrame(toFrameIfNotDetached(info.GetIsolate()->GetCurre
ntContext())), impl, value, &result)) | 11154 if (!V8TestObject::PrivateScript::shortMethodWithShortArgumentImplementedInP
rivateScriptMethod(toLocalFrame(toFrameIfNotDetached(info.GetIsolate()->GetCurre
ntContext())), impl, value, &result)) |
10642 return; | 11155 return; |
10643 v8SetReturnValueInt(info, result); | 11156 v8SetReturnValueInt(info, result); |
10644 } | 11157 } |
10645 | 11158 |
10646 static void shortMethodWithShortArgumentImplementedInPrivateScriptMethodCallback
(const v8::FunctionCallbackInfo<v8::Value>& info) | 11159 static void shortMethodWithShortArgumentImplementedInPrivateScriptMethodCallback
(const v8::FunctionCallbackInfo<v8::Value>& info) |
10647 { | 11160 { |
10648 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 11161 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
10649 TestObjectV8Internal::shortMethodWithShortArgumentImplementedInPrivateScript
Method(info); | 11162 TestObjectV8Internal::shortMethodWithShortArgumentImplementedInPrivateScript
Method(info); |
10650 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 11163 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
10651 } | 11164 } |
10652 | 11165 |
10653 static void stringMethodWithStringArgumentImplementedInPrivateScriptMethod(const
v8::FunctionCallbackInfo<v8::Value>& info) | 11166 static void stringMethodWithStringArgumentImplementedInPrivateScriptMethod(const
v8::FunctionCallbackInfo<v8::Value>& info) |
10654 { | 11167 { |
10655 if (UNLIKELY(info.Length() < 1)) { | 11168 if (UNLIKELY(info.Length() < 1)) { |
10656 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "stringMethodWithStringArgumentImplementedInPrivateScript", "Te
stObject", 1, info.Length()), info.GetIsolate()); | 11169 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "stringMethodWithStringArgumentImplementedInPrivateScript", "Te
stObject", 1, info.Length()), info.GetIsolate()); |
10657 return; | 11170 return; |
10658 } | 11171 } |
10659 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 11172 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
10660 V8StringResource<> value; | 11173 V8StringResource<> value; |
10661 { | 11174 { |
10662 TOSTRING_VOID_INTERNAL(value, info[0]); | 11175 value = info[0]; |
| 11176 if (!value.prepare()) |
| 11177 return; |
10663 } | 11178 } |
10664 String result; | 11179 String result; |
10665 if (!V8TestObject::PrivateScript::stringMethodWithStringArgumentImplementedI
nPrivateScriptMethod(toLocalFrame(toFrameIfNotDetached(info.GetIsolate()->GetCur
rentContext())), impl, value, &result)) | 11180 if (!V8TestObject::PrivateScript::stringMethodWithStringArgumentImplementedI
nPrivateScriptMethod(toLocalFrame(toFrameIfNotDetached(info.GetIsolate()->GetCur
rentContext())), impl, value, &result)) |
10666 return; | 11181 return; |
10667 v8SetReturnValueString(info, result, info.GetIsolate()); | 11182 v8SetReturnValueString(info, result, info.GetIsolate()); |
10668 } | 11183 } |
10669 | 11184 |
10670 static void stringMethodWithStringArgumentImplementedInPrivateScriptMethodCallba
ck(const v8::FunctionCallbackInfo<v8::Value>& info) | 11185 static void stringMethodWithStringArgumentImplementedInPrivateScriptMethodCallba
ck(const v8::FunctionCallbackInfo<v8::Value>& info) |
10671 { | 11186 { |
10672 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 11187 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10708 } | 11223 } |
10709 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 11224 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
10710 Document* document; | 11225 Document* document; |
10711 Node* node; | 11226 Node* node; |
10712 int value1; | 11227 int value1; |
10713 double value2; | 11228 double value2; |
10714 V8StringResource<> string; | 11229 V8StringResource<> string; |
10715 { | 11230 { |
10716 document = V8Document::toImplWithTypeCheck(info.GetIsolate(), info[0]); | 11231 document = V8Document::toImplWithTypeCheck(info.GetIsolate(), info[0]); |
10717 node = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[1]); | 11232 node = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[1]); |
10718 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(value1, toInt16(info[2], exception
State), exceptionState); | 11233 value1 = toInt16(info[2], exceptionState); |
10719 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(value2, toDouble(info[3], exceptio
nState), exceptionState); | 11234 if (exceptionState.throwIfNeeded()) |
10720 TOSTRING_VOID_INTERNAL(string, info[4]); | 11235 return; |
| 11236 value2 = toDouble(info[3], exceptionState); |
| 11237 if (exceptionState.throwIfNeeded()) |
| 11238 return; |
| 11239 string = info[4]; |
| 11240 if (!string.prepare()) |
| 11241 return; |
10721 } | 11242 } |
10722 RefPtrWillBeRawPtr<Node> result = nullptr; | 11243 RefPtrWillBeRawPtr<Node> result = nullptr; |
10723 if (!V8TestObject::PrivateScript::nodeMethodWithVariousArgumentsImplementedI
nPrivateScriptMethod(toLocalFrame(toFrameIfNotDetached(info.GetIsolate()->GetCur
rentContext())), impl, document, node, value1, value2, string, &result)) | 11244 if (!V8TestObject::PrivateScript::nodeMethodWithVariousArgumentsImplementedI
nPrivateScriptMethod(toLocalFrame(toFrameIfNotDetached(info.GetIsolate()->GetCur
rentContext())), impl, document, node, value1, value2, string, &result)) |
10724 return; | 11245 return; |
10725 v8SetReturnValue(info, result.release()); | 11246 v8SetReturnValue(info, result.release()); |
10726 } | 11247 } |
10727 | 11248 |
10728 static void nodeMethodWithVariousArgumentsImplementedInPrivateScriptMethodCallba
ck(const v8::FunctionCallbackInfo<v8::Value>& info) | 11249 static void nodeMethodWithVariousArgumentsImplementedInPrivateScriptMethodCallba
ck(const v8::FunctionCallbackInfo<v8::Value>& info) |
10729 { | 11250 { |
10730 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 11251 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
10731 TestObjectV8Internal::nodeMethodWithVariousArgumentsImplementedInPrivateScri
ptMethod(info); | 11252 TestObjectV8Internal::nodeMethodWithVariousArgumentsImplementedInPrivateScri
ptMethod(info); |
10732 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 11253 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
10733 } | 11254 } |
10734 | 11255 |
10735 static void methodImplementedInCPPForPrivateScriptOnlyMethod(const v8::FunctionC
allbackInfo<v8::Value>& info) | 11256 static void methodImplementedInCPPForPrivateScriptOnlyMethod(const v8::FunctionC
allbackInfo<v8::Value>& info) |
10736 { | 11257 { |
10737 ExceptionState exceptionState(ExceptionState::ExecutionContext, "methodImple
mentedInCPPForPrivateScriptOnly", "TestObject", info.Holder(), info.GetIsolate()
); | 11258 ExceptionState exceptionState(ExceptionState::ExecutionContext, "methodImple
mentedInCPPForPrivateScriptOnly", "TestObject", info.Holder(), info.GetIsolate()
); |
10738 if (UNLIKELY(info.Length() < 2)) { | 11259 if (UNLIKELY(info.Length() < 2)) { |
10739 setMinimumArityTypeError(exceptionState, 2, info.Length()); | 11260 setMinimumArityTypeError(exceptionState, 2, info.Length()); |
10740 exceptionState.throwIfNeeded(); | 11261 exceptionState.throwIfNeeded(); |
10741 return; | 11262 return; |
10742 } | 11263 } |
10743 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 11264 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
10744 int value1; | 11265 int value1; |
10745 int value2; | 11266 int value2; |
10746 { | 11267 { |
10747 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(value1, toInt16(info[0], exception
State), exceptionState); | 11268 value1 = toInt16(info[0], exceptionState); |
10748 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(value2, toInt16(info[1], exception
State), exceptionState); | 11269 if (exceptionState.throwIfNeeded()) |
| 11270 return; |
| 11271 value2 = toInt16(info[1], exceptionState); |
| 11272 if (exceptionState.throwIfNeeded()) |
| 11273 return; |
10749 } | 11274 } |
10750 v8SetReturnValueInt(info, impl->methodImplementedInCPPForPrivateScriptOnly(v
alue1, value2)); | 11275 v8SetReturnValueInt(info, impl->methodImplementedInCPPForPrivateScriptOnly(v
alue1, value2)); |
10751 } | 11276 } |
10752 | 11277 |
10753 static void methodImplementedInCPPForPrivateScriptOnlyMethodCallback(const v8::F
unctionCallbackInfo<v8::Value>& info) | 11278 static void methodImplementedInCPPForPrivateScriptOnlyMethodCallback(const v8::F
unctionCallbackInfo<v8::Value>& info) |
10754 { | 11279 { |
10755 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 11280 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
10756 TestObjectV8Internal::methodImplementedInCPPForPrivateScriptOnlyMethod(info)
; | 11281 TestObjectV8Internal::methodImplementedInCPPForPrivateScriptOnlyMethod(info)
; |
10757 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 11282 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
10758 } | 11283 } |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10824 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 11349 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
10825 exceptionState.throwIfNeeded(); | 11350 exceptionState.throwIfNeeded(); |
10826 return; | 11351 return; |
10827 } | 11352 } |
10828 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 11353 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
10829 ScriptValue callback; | 11354 ScriptValue callback; |
10830 ScriptValue thisArg; | 11355 ScriptValue thisArg; |
10831 { | 11356 { |
10832 if (!info[0]->IsFunction()) { | 11357 if (!info[0]->IsFunction()) { |
10833 exceptionState.throwTypeError("The callback provided as parameter 1
is not a function."); | 11358 exceptionState.throwTypeError("The callback provided as parameter 1
is not a function."); |
10834 exceptionState.throwIfNeeded(); | 11359 exceptionState.throwIfNeeded(); |
10835 return; | 11360 return; |
10836 } | 11361 } |
10837 callback = ScriptValue(ScriptState::current(info.GetIsolate()), info[0])
; | 11362 callback = ScriptValue(ScriptState::current(info.GetIsolate()), info[0])
; |
10838 thisArg = ScriptValue(ScriptState::current(info.GetIsolate()), info[1]); | 11363 thisArg = ScriptValue(ScriptState::current(info.GetIsolate()), info[1]); |
10839 } | 11364 } |
10840 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); | 11365 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); |
10841 impl->forEachForBinding(scriptState, ScriptValue(scriptState, info.This()),
callback, thisArg, exceptionState); | 11366 impl->forEachForBinding(scriptState, ScriptValue(scriptState, info.This()),
callback, thisArg, exceptionState); |
10842 if (exceptionState.hadException()) { | 11367 if (exceptionState.hadException()) { |
10843 exceptionState.throwIfNeeded(); | 11368 exceptionState.throwIfNeeded(); |
10844 return; | 11369 return; |
(...skipping 11 matching lines...) Expand all Loading... |
10856 { | 11381 { |
10857 ExceptionState exceptionState(ExceptionState::ExecutionContext, "has", "Test
Object", info.Holder(), info.GetIsolate()); | 11382 ExceptionState exceptionState(ExceptionState::ExecutionContext, "has", "Test
Object", info.Holder(), info.GetIsolate()); |
10858 if (UNLIKELY(info.Length() < 1)) { | 11383 if (UNLIKELY(info.Length() < 1)) { |
10859 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 11384 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
10860 exceptionState.throwIfNeeded(); | 11385 exceptionState.throwIfNeeded(); |
10861 return; | 11386 return; |
10862 } | 11387 } |
10863 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 11388 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
10864 int key; | 11389 int key; |
10865 { | 11390 { |
10866 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(key, toInt32(info[0], exceptionSta
te), exceptionState); | 11391 key = toInt32(info[0], exceptionState); |
| 11392 if (exceptionState.throwIfNeeded()) |
| 11393 return; |
10867 } | 11394 } |
10868 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); | 11395 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); |
10869 bool result = impl->hasForBinding(scriptState, key, exceptionState); | 11396 bool result = impl->hasForBinding(scriptState, key, exceptionState); |
10870 if (exceptionState.hadException()) { | 11397 if (exceptionState.hadException()) { |
10871 exceptionState.throwIfNeeded(); | 11398 exceptionState.throwIfNeeded(); |
10872 return; | 11399 return; |
10873 } | 11400 } |
10874 v8SetReturnValueBool(info, result); | 11401 v8SetReturnValueBool(info, result); |
10875 } | 11402 } |
10876 | 11403 |
10877 static void hasMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) | 11404 static void hasMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
10878 { | 11405 { |
10879 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 11406 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
10880 TestObjectV8Internal::hasMethod(info); | 11407 TestObjectV8Internal::hasMethod(info); |
10881 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 11408 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
10882 } | 11409 } |
10883 | 11410 |
10884 static void getMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 11411 static void getMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
10885 { | 11412 { |
10886 ExceptionState exceptionState(ExceptionState::ExecutionContext, "get", "Test
Object", info.Holder(), info.GetIsolate()); | 11413 ExceptionState exceptionState(ExceptionState::ExecutionContext, "get", "Test
Object", info.Holder(), info.GetIsolate()); |
10887 if (UNLIKELY(info.Length() < 1)) { | 11414 if (UNLIKELY(info.Length() < 1)) { |
10888 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 11415 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
10889 exceptionState.throwIfNeeded(); | 11416 exceptionState.throwIfNeeded(); |
10890 return; | 11417 return; |
10891 } | 11418 } |
10892 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 11419 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
10893 int key; | 11420 int key; |
10894 { | 11421 { |
10895 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(key, toInt32(info[0], exceptionSta
te), exceptionState); | 11422 key = toInt32(info[0], exceptionState); |
| 11423 if (exceptionState.throwIfNeeded()) |
| 11424 return; |
10896 } | 11425 } |
10897 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); | 11426 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); |
10898 ScriptValue result = impl->getForBinding(scriptState, key, exceptionState); | 11427 ScriptValue result = impl->getForBinding(scriptState, key, exceptionState); |
10899 if (exceptionState.hadException()) { | 11428 if (exceptionState.hadException()) { |
10900 exceptionState.throwIfNeeded(); | 11429 exceptionState.throwIfNeeded(); |
10901 return; | 11430 return; |
10902 } | 11431 } |
10903 v8SetReturnValue(info, result.v8Value()); | 11432 v8SetReturnValue(info, result.v8Value()); |
10904 } | 11433 } |
10905 | 11434 |
(...skipping 27 matching lines...) Expand all Loading... |
10933 { | 11462 { |
10934 ExceptionState exceptionState(ExceptionState::ExecutionContext, "delete", "T
estObject", info.Holder(), info.GetIsolate()); | 11463 ExceptionState exceptionState(ExceptionState::ExecutionContext, "delete", "T
estObject", info.Holder(), info.GetIsolate()); |
10935 if (UNLIKELY(info.Length() < 1)) { | 11464 if (UNLIKELY(info.Length() < 1)) { |
10936 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 11465 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
10937 exceptionState.throwIfNeeded(); | 11466 exceptionState.throwIfNeeded(); |
10938 return; | 11467 return; |
10939 } | 11468 } |
10940 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 11469 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
10941 int key; | 11470 int key; |
10942 { | 11471 { |
10943 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(key, toInt32(info[0], exceptionSta
te), exceptionState); | 11472 key = toInt32(info[0], exceptionState); |
| 11473 if (exceptionState.throwIfNeeded()) |
| 11474 return; |
10944 } | 11475 } |
10945 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); | 11476 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); |
10946 bool result = impl->deleteForBinding(scriptState, key, exceptionState); | 11477 bool result = impl->deleteForBinding(scriptState, key, exceptionState); |
10947 if (exceptionState.hadException()) { | 11478 if (exceptionState.hadException()) { |
10948 exceptionState.throwIfNeeded(); | 11479 exceptionState.throwIfNeeded(); |
10949 return; | 11480 return; |
10950 } | 11481 } |
10951 v8SetReturnValueBool(info, result); | 11482 v8SetReturnValueBool(info, result); |
10952 } | 11483 } |
10953 | 11484 |
10954 static void deleteMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info
) | 11485 static void deleteMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info
) |
10955 { | 11486 { |
10956 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 11487 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
10957 TestObjectV8Internal::deleteMethod(info); | 11488 TestObjectV8Internal::deleteMethod(info); |
10958 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 11489 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
10959 } | 11490 } |
10960 | 11491 |
10961 static void setMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 11492 static void setMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
10962 { | 11493 { |
10963 ExceptionState exceptionState(ExceptionState::ExecutionContext, "set", "Test
Object", info.Holder(), info.GetIsolate()); | 11494 ExceptionState exceptionState(ExceptionState::ExecutionContext, "set", "Test
Object", info.Holder(), info.GetIsolate()); |
10964 if (UNLIKELY(info.Length() < 2)) { | 11495 if (UNLIKELY(info.Length() < 2)) { |
10965 setMinimumArityTypeError(exceptionState, 2, info.Length()); | 11496 setMinimumArityTypeError(exceptionState, 2, info.Length()); |
10966 exceptionState.throwIfNeeded(); | 11497 exceptionState.throwIfNeeded(); |
10967 return; | 11498 return; |
10968 } | 11499 } |
10969 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 11500 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
10970 int key; | 11501 int key; |
10971 StringOrDouble value; | 11502 StringOrDouble value; |
10972 { | 11503 { |
10973 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(key, toInt32(info[0], exceptionSta
te), exceptionState); | 11504 key = toInt32(info[0], exceptionState); |
10974 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8StringOrDouble::toImpl(info.G
etIsolate(), info[1], value, exceptionState), exceptionState); | 11505 if (exceptionState.throwIfNeeded()) |
| 11506 return; |
| 11507 V8StringOrDouble::toImpl(info.GetIsolate(), info[1], value, exceptionSta
te); |
| 11508 if (exceptionState.throwIfNeeded()) |
| 11509 return; |
10975 } | 11510 } |
10976 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); | 11511 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); |
10977 RefPtr<TestObject> result = impl->setForBinding(scriptState, key, value, exc
eptionState); | 11512 RefPtr<TestObject> result = impl->setForBinding(scriptState, key, value, exc
eptionState); |
10978 if (exceptionState.hadException()) { | 11513 if (exceptionState.hadException()) { |
10979 exceptionState.throwIfNeeded(); | 11514 exceptionState.throwIfNeeded(); |
10980 return; | 11515 return; |
10981 } | 11516 } |
10982 v8SetReturnValue(info, result.release()); | 11517 v8SetReturnValue(info, result.release()); |
10983 } | 11518 } |
10984 | 11519 |
(...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11662 return false; | 12197 return false; |
11663 | 12198 |
11664 ScriptState::Scope scope(scriptState); | 12199 ScriptState::Scope scope(scriptState); |
11665 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); | 12200 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); |
11666 | 12201 |
11667 v8::Local<v8::Value> *argv = 0; | 12202 v8::Local<v8::Value> *argv = 0; |
11668 ExceptionState exceptionState(ExceptionState::ExecutionContext, "shortMethod
ImplementedInPrivateScript", "TestObject", scriptState->context()->Global(), scr
iptState->isolate()); | 12203 ExceptionState exceptionState(ExceptionState::ExecutionContext, "shortMethod
ImplementedInPrivateScript", "TestObject", scriptState->context()->Global(), scr
iptState->isolate()); |
11669 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMMethod(scriptState
, scriptStateInUserScript, "TestObject", "shortMethodImplementedInPrivateScript"
, holder, 0, argv); | 12204 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMMethod(scriptState
, scriptStateInUserScript, "TestObject", "shortMethodImplementedInPrivateScript"
, holder, 0, argv); |
11670 if (v8Value.IsEmpty()) | 12205 if (v8Value.IsEmpty()) |
11671 return false; | 12206 return false; |
11672 TONATIVE_DEFAULT_EXCEPTIONSTATE(int, cppValue, toInt16(v8Value, exceptionSta
te), exceptionState, false); | 12207 int cppValue = toInt16(v8Value, exceptionState); |
| 12208 if (exceptionState.throwIfNeeded()) |
| 12209 return false; |
11673 *result = cppValue; | 12210 *result = cppValue; |
11674 RELEASE_ASSERT(!exceptionState.hadException()); | 12211 RELEASE_ASSERT(!exceptionState.hadException()); |
11675 return true; | 12212 return true; |
11676 } | 12213 } |
11677 | 12214 |
11678 bool V8TestObject::PrivateScript::shortMethodWithShortArgumentImplementedInPriva
teScriptMethod(LocalFrame* frame, TestObject* holderImpl, int value, int* result
) | 12215 bool V8TestObject::PrivateScript::shortMethodWithShortArgumentImplementedInPriva
teScriptMethod(LocalFrame* frame, TestObject* holderImpl, int value, int* result
) |
11679 { | 12216 { |
11680 if (!frame) | 12217 if (!frame) |
11681 return false; | 12218 return false; |
11682 v8::HandleScope handleScope(toIsolate(frame)); | 12219 v8::HandleScope handleScope(toIsolate(frame)); |
11683 ScriptForbiddenScope::AllowUserAgentScript script; | 12220 ScriptForbiddenScope::AllowUserAgentScript script; |
11684 v8::Local<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrappe
rWorld::privateScriptIsolatedWorld()); | 12221 v8::Local<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrappe
rWorld::privateScriptIsolatedWorld()); |
11685 if (contextInPrivateScript.IsEmpty()) | 12222 if (contextInPrivateScript.IsEmpty()) |
11686 return false; | 12223 return false; |
11687 ScriptState* scriptState = ScriptState::from(contextInPrivateScript); | 12224 ScriptState* scriptState = ScriptState::from(contextInPrivateScript); |
11688 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame); | 12225 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame); |
11689 if (!scriptState->executionContext()) | 12226 if (!scriptState->executionContext()) |
11690 return false; | 12227 return false; |
11691 | 12228 |
11692 ScriptState::Scope scope(scriptState); | 12229 ScriptState::Scope scope(scriptState); |
11693 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); | 12230 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); |
11694 | 12231 |
11695 v8::Local<v8::Value> valueHandle = v8::Integer::New(scriptState->isolate(),
value); | 12232 v8::Local<v8::Value> valueHandle = v8::Integer::New(scriptState->isolate(),
value); |
11696 v8::Local<v8::Value> argv[] = { valueHandle }; | 12233 v8::Local<v8::Value> argv[] = { valueHandle }; |
11697 ExceptionState exceptionState(ExceptionState::ExecutionContext, "shortMethod
WithShortArgumentImplementedInPrivateScript", "TestObject", scriptState->context
()->Global(), scriptState->isolate()); | 12234 ExceptionState exceptionState(ExceptionState::ExecutionContext, "shortMethod
WithShortArgumentImplementedInPrivateScript", "TestObject", scriptState->context
()->Global(), scriptState->isolate()); |
11698 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMMethod(scriptState
, scriptStateInUserScript, "TestObject", "shortMethodWithShortArgumentImplemente
dInPrivateScript", holder, 1, argv); | 12235 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMMethod(scriptState
, scriptStateInUserScript, "TestObject", "shortMethodWithShortArgumentImplemente
dInPrivateScript", holder, 1, argv); |
11699 if (v8Value.IsEmpty()) | 12236 if (v8Value.IsEmpty()) |
11700 return false; | 12237 return false; |
11701 TONATIVE_DEFAULT_EXCEPTIONSTATE(int, cppValue, toInt16(v8Value, exceptionSta
te), exceptionState, false); | 12238 int cppValue = toInt16(v8Value, exceptionState); |
| 12239 if (exceptionState.throwIfNeeded()) |
| 12240 return false; |
11702 *result = cppValue; | 12241 *result = cppValue; |
11703 RELEASE_ASSERT(!exceptionState.hadException()); | 12242 RELEASE_ASSERT(!exceptionState.hadException()); |
11704 return true; | 12243 return true; |
11705 } | 12244 } |
11706 | 12245 |
11707 bool V8TestObject::PrivateScript::stringMethodWithStringArgumentImplementedInPri
vateScriptMethod(LocalFrame* frame, TestObject* holderImpl, String value, String
* result) | 12246 bool V8TestObject::PrivateScript::stringMethodWithStringArgumentImplementedInPri
vateScriptMethod(LocalFrame* frame, TestObject* holderImpl, String value, String
* result) |
11708 { | 12247 { |
11709 if (!frame) | 12248 if (!frame) |
11710 return false; | 12249 return false; |
11711 v8::HandleScope handleScope(toIsolate(frame)); | 12250 v8::HandleScope handleScope(toIsolate(frame)); |
11712 ScriptForbiddenScope::AllowUserAgentScript script; | 12251 ScriptForbiddenScope::AllowUserAgentScript script; |
11713 v8::Local<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrappe
rWorld::privateScriptIsolatedWorld()); | 12252 v8::Local<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrappe
rWorld::privateScriptIsolatedWorld()); |
11714 if (contextInPrivateScript.IsEmpty()) | 12253 if (contextInPrivateScript.IsEmpty()) |
11715 return false; | 12254 return false; |
11716 ScriptState* scriptState = ScriptState::from(contextInPrivateScript); | 12255 ScriptState* scriptState = ScriptState::from(contextInPrivateScript); |
11717 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame); | 12256 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame); |
11718 if (!scriptState->executionContext()) | 12257 if (!scriptState->executionContext()) |
11719 return false; | 12258 return false; |
11720 | 12259 |
11721 ScriptState::Scope scope(scriptState); | 12260 ScriptState::Scope scope(scriptState); |
11722 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); | 12261 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); |
11723 | 12262 |
11724 v8::Local<v8::Value> valueHandle = v8String(scriptState->isolate(), value); | 12263 v8::Local<v8::Value> valueHandle = v8String(scriptState->isolate(), value); |
11725 v8::Local<v8::Value> argv[] = { valueHandle }; | 12264 v8::Local<v8::Value> argv[] = { valueHandle }; |
11726 ExceptionState exceptionState(ExceptionState::ExecutionContext, "stringMetho
dWithStringArgumentImplementedInPrivateScript", "TestObject", scriptState->conte
xt()->Global(), scriptState->isolate()); | 12265 ExceptionState exceptionState(ExceptionState::ExecutionContext, "stringMetho
dWithStringArgumentImplementedInPrivateScript", "TestObject", scriptState->conte
xt()->Global(), scriptState->isolate()); |
11727 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMMethod(scriptState
, scriptStateInUserScript, "TestObject", "stringMethodWithStringArgumentImplemen
tedInPrivateScript", holder, 1, argv); | 12266 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMMethod(scriptState
, scriptStateInUserScript, "TestObject", "stringMethodWithStringArgumentImplemen
tedInPrivateScript", holder, 1, argv); |
11728 if (v8Value.IsEmpty()) | 12267 if (v8Value.IsEmpty()) |
11729 return false; | 12268 return false; |
11730 TOSTRING_DEFAULT(V8StringResource<>, cppValue, v8Value, false); | 12269 V8StringResource<> cppValue = v8Value; |
| 12270 if (!cppValue.prepare()) |
| 12271 return false; |
11731 *result = cppValue; | 12272 *result = cppValue; |
11732 RELEASE_ASSERT(!exceptionState.hadException()); | 12273 RELEASE_ASSERT(!exceptionState.hadException()); |
11733 return true; | 12274 return true; |
11734 } | 12275 } |
11735 | 12276 |
11736 bool V8TestObject::PrivateScript::nodeMethodWithNodeArgumentImplementedInPrivate
ScriptMethod(LocalFrame* frame, TestObject* holderImpl, PassRefPtrWillBeRawPtr<N
ode> value, RefPtrWillBeRawPtr<Node>* result) | 12277 bool V8TestObject::PrivateScript::nodeMethodWithNodeArgumentImplementedInPrivate
ScriptMethod(LocalFrame* frame, TestObject* holderImpl, PassRefPtrWillBeRawPtr<N
ode> value, RefPtrWillBeRawPtr<Node>* result) |
11737 { | 12278 { |
11738 if (!frame) | 12279 if (!frame) |
11739 return false; | 12280 return false; |
11740 v8::HandleScope handleScope(toIsolate(frame)); | 12281 v8::HandleScope handleScope(toIsolate(frame)); |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11812 ScriptState::Scope scope(scriptState); | 12353 ScriptState::Scope scope(scriptState); |
11813 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); | 12354 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); |
11814 | 12355 |
11815 v8::Local<v8::Value> value1Handle = v8::Integer::New(scriptState->isolate(),
value1); | 12356 v8::Local<v8::Value> value1Handle = v8::Integer::New(scriptState->isolate(),
value1); |
11816 v8::Local<v8::Value> value2Handle = v8::Integer::New(scriptState->isolate(),
value2); | 12357 v8::Local<v8::Value> value2Handle = v8::Integer::New(scriptState->isolate(),
value2); |
11817 v8::Local<v8::Value> argv[] = { value1Handle, value2Handle }; | 12358 v8::Local<v8::Value> argv[] = { value1Handle, value2Handle }; |
11818 ExceptionState exceptionState(ExceptionState::ExecutionContext, "methodForPr
ivateScriptOnly", "TestObject", scriptState->context()->Global(), scriptState->i
solate()); | 12359 ExceptionState exceptionState(ExceptionState::ExecutionContext, "methodForPr
ivateScriptOnly", "TestObject", scriptState->context()->Global(), scriptState->i
solate()); |
11819 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMMethod(scriptState
, scriptStateInUserScript, "TestObject", "methodForPrivateScriptOnly", holder, 2
, argv); | 12360 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMMethod(scriptState
, scriptStateInUserScript, "TestObject", "methodForPrivateScriptOnly", holder, 2
, argv); |
11820 if (v8Value.IsEmpty()) | 12361 if (v8Value.IsEmpty()) |
11821 return false; | 12362 return false; |
11822 TONATIVE_DEFAULT_EXCEPTIONSTATE(int, cppValue, toInt16(v8Value, exceptionSta
te), exceptionState, false); | 12363 int cppValue = toInt16(v8Value, exceptionState); |
| 12364 if (exceptionState.throwIfNeeded()) |
| 12365 return false; |
11823 *result = cppValue; | 12366 *result = cppValue; |
11824 RELEASE_ASSERT(!exceptionState.hadException()); | 12367 RELEASE_ASSERT(!exceptionState.hadException()); |
11825 return true; | 12368 return true; |
11826 } | 12369 } |
11827 | 12370 |
11828 bool V8TestObject::PrivateScript::readonlyShortAttributeAttributeGetter(LocalFra
me* frame, TestObject* holderImpl, int* result) | 12371 bool V8TestObject::PrivateScript::readonlyShortAttributeAttributeGetter(LocalFra
me* frame, TestObject* holderImpl, int* result) |
11829 { | 12372 { |
11830 if (!frame) | 12373 if (!frame) |
11831 return false; | 12374 return false; |
11832 v8::HandleScope handleScope(toIsolate(frame)); | 12375 v8::HandleScope handleScope(toIsolate(frame)); |
11833 ScriptForbiddenScope::AllowUserAgentScript script; | 12376 ScriptForbiddenScope::AllowUserAgentScript script; |
11834 v8::Local<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrappe
rWorld::privateScriptIsolatedWorld()); | 12377 v8::Local<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrappe
rWorld::privateScriptIsolatedWorld()); |
11835 if (contextInPrivateScript.IsEmpty()) | 12378 if (contextInPrivateScript.IsEmpty()) |
11836 return false; | 12379 return false; |
11837 ScriptState* scriptState = ScriptState::from(contextInPrivateScript); | 12380 ScriptState* scriptState = ScriptState::from(contextInPrivateScript); |
11838 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame); | 12381 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame); |
11839 if (!scriptState->executionContext()) | 12382 if (!scriptState->executionContext()) |
11840 return false; | 12383 return false; |
11841 | 12384 |
11842 ScriptState::Scope scope(scriptState); | 12385 ScriptState::Scope scope(scriptState); |
11843 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); | 12386 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); |
11844 | 12387 |
11845 ExceptionState exceptionState(ExceptionState::GetterContext, "readonlyShortA
ttribute", "TestObject", scriptState->context()->Global(), scriptState->isolate(
)); | 12388 ExceptionState exceptionState(ExceptionState::GetterContext, "readonlyShortA
ttribute", "TestObject", scriptState->context()->Global(), scriptState->isolate(
)); |
11846 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMAttributeGetter(sc
riptState, scriptStateInUserScript, "TestObject", "readonlyShortAttribute", hold
er); | 12389 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMAttributeGetter(sc
riptState, scriptStateInUserScript, "TestObject", "readonlyShortAttribute", hold
er); |
11847 if (v8Value.IsEmpty()) | 12390 if (v8Value.IsEmpty()) |
11848 return false; | 12391 return false; |
11849 TONATIVE_DEFAULT_EXCEPTIONSTATE(int, cppValue, toInt16(v8Value, exceptionSta
te), exceptionState, false); | 12392 int cppValue = toInt16(v8Value, exceptionState); |
| 12393 if (exceptionState.throwIfNeeded()) |
| 12394 return false; |
11850 RELEASE_ASSERT(!exceptionState.hadException()); | 12395 RELEASE_ASSERT(!exceptionState.hadException()); |
11851 *result = cppValue; | 12396 *result = cppValue; |
11852 return true; | 12397 return true; |
11853 } | 12398 } |
11854 | 12399 |
11855 bool V8TestObject::PrivateScript::shortAttributeAttributeGetter(LocalFrame* fram
e, TestObject* holderImpl, int* result) | 12400 bool V8TestObject::PrivateScript::shortAttributeAttributeGetter(LocalFrame* fram
e, TestObject* holderImpl, int* result) |
11856 { | 12401 { |
11857 if (!frame) | 12402 if (!frame) |
11858 return false; | 12403 return false; |
11859 v8::HandleScope handleScope(toIsolate(frame)); | 12404 v8::HandleScope handleScope(toIsolate(frame)); |
11860 ScriptForbiddenScope::AllowUserAgentScript script; | 12405 ScriptForbiddenScope::AllowUserAgentScript script; |
11861 v8::Local<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrappe
rWorld::privateScriptIsolatedWorld()); | 12406 v8::Local<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrappe
rWorld::privateScriptIsolatedWorld()); |
11862 if (contextInPrivateScript.IsEmpty()) | 12407 if (contextInPrivateScript.IsEmpty()) |
11863 return false; | 12408 return false; |
11864 ScriptState* scriptState = ScriptState::from(contextInPrivateScript); | 12409 ScriptState* scriptState = ScriptState::from(contextInPrivateScript); |
11865 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame); | 12410 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame); |
11866 if (!scriptState->executionContext()) | 12411 if (!scriptState->executionContext()) |
11867 return false; | 12412 return false; |
11868 | 12413 |
11869 ScriptState::Scope scope(scriptState); | 12414 ScriptState::Scope scope(scriptState); |
11870 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); | 12415 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); |
11871 | 12416 |
11872 ExceptionState exceptionState(ExceptionState::GetterContext, "shortAttribute
", "TestObject", scriptState->context()->Global(), scriptState->isolate()); | 12417 ExceptionState exceptionState(ExceptionState::GetterContext, "shortAttribute
", "TestObject", scriptState->context()->Global(), scriptState->isolate()); |
11873 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMAttributeGetter(sc
riptState, scriptStateInUserScript, "TestObject", "shortAttribute", holder); | 12418 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMAttributeGetter(sc
riptState, scriptStateInUserScript, "TestObject", "shortAttribute", holder); |
11874 if (v8Value.IsEmpty()) | 12419 if (v8Value.IsEmpty()) |
11875 return false; | 12420 return false; |
11876 TONATIVE_DEFAULT_EXCEPTIONSTATE(int, cppValue, toInt16(v8Value, exceptionSta
te), exceptionState, false); | 12421 int cppValue = toInt16(v8Value, exceptionState); |
| 12422 if (exceptionState.throwIfNeeded()) |
| 12423 return false; |
11877 RELEASE_ASSERT(!exceptionState.hadException()); | 12424 RELEASE_ASSERT(!exceptionState.hadException()); |
11878 *result = cppValue; | 12425 *result = cppValue; |
11879 return true; | 12426 return true; |
11880 } | 12427 } |
11881 | 12428 |
11882 bool V8TestObject::PrivateScript::shortAttributeAttributeSetter(LocalFrame* fram
e, TestObject* holderImpl, int cppValue) | 12429 bool V8TestObject::PrivateScript::shortAttributeAttributeSetter(LocalFrame* fram
e, TestObject* holderImpl, int cppValue) |
11883 { | 12430 { |
11884 if (!frame) | 12431 if (!frame) |
11885 return false; | 12432 return false; |
11886 v8::HandleScope handleScope(toIsolate(frame)); | 12433 v8::HandleScope handleScope(toIsolate(frame)); |
(...skipping 27 matching lines...) Expand all Loading... |
11914 if (!scriptState->executionContext()) | 12461 if (!scriptState->executionContext()) |
11915 return false; | 12462 return false; |
11916 | 12463 |
11917 ScriptState::Scope scope(scriptState); | 12464 ScriptState::Scope scope(scriptState); |
11918 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); | 12465 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); |
11919 | 12466 |
11920 ExceptionState exceptionState(ExceptionState::GetterContext, "stringAttribut
e", "TestObject", scriptState->context()->Global(), scriptState->isolate()); | 12467 ExceptionState exceptionState(ExceptionState::GetterContext, "stringAttribut
e", "TestObject", scriptState->context()->Global(), scriptState->isolate()); |
11921 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMAttributeGetter(sc
riptState, scriptStateInUserScript, "TestObject", "stringAttribute", holder); | 12468 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMAttributeGetter(sc
riptState, scriptStateInUserScript, "TestObject", "stringAttribute", holder); |
11922 if (v8Value.IsEmpty()) | 12469 if (v8Value.IsEmpty()) |
11923 return false; | 12470 return false; |
11924 TOSTRING_DEFAULT(V8StringResource<>, cppValue, v8Value, false); | 12471 V8StringResource<> cppValue = v8Value; |
| 12472 if (!cppValue.prepare()) |
| 12473 return false; |
11925 RELEASE_ASSERT(!exceptionState.hadException()); | 12474 RELEASE_ASSERT(!exceptionState.hadException()); |
11926 *result = cppValue; | 12475 *result = cppValue; |
11927 return true; | 12476 return true; |
11928 } | 12477 } |
11929 | 12478 |
11930 bool V8TestObject::PrivateScript::stringAttributeAttributeSetter(LocalFrame* fra
me, TestObject* holderImpl, String cppValue) | 12479 bool V8TestObject::PrivateScript::stringAttributeAttributeSetter(LocalFrame* fra
me, TestObject* holderImpl, String cppValue) |
11931 { | 12480 { |
11932 if (!frame) | 12481 if (!frame) |
11933 return false; | 12482 return false; |
11934 v8::HandleScope handleScope(toIsolate(frame)); | 12483 v8::HandleScope handleScope(toIsolate(frame)); |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12010 if (!scriptState->executionContext()) | 12559 if (!scriptState->executionContext()) |
12011 return false; | 12560 return false; |
12012 | 12561 |
12013 ScriptState::Scope scope(scriptState); | 12562 ScriptState::Scope scope(scriptState); |
12014 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); | 12563 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); |
12015 | 12564 |
12016 ExceptionState exceptionState(ExceptionState::GetterContext, "attributeForPr
ivateScriptOnly", "TestObject", scriptState->context()->Global(), scriptState->i
solate()); | 12565 ExceptionState exceptionState(ExceptionState::GetterContext, "attributeForPr
ivateScriptOnly", "TestObject", scriptState->context()->Global(), scriptState->i
solate()); |
12017 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMAttributeGetter(sc
riptState, scriptStateInUserScript, "TestObject", "attributeForPrivateScriptOnly
", holder); | 12566 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMAttributeGetter(sc
riptState, scriptStateInUserScript, "TestObject", "attributeForPrivateScriptOnly
", holder); |
12018 if (v8Value.IsEmpty()) | 12567 if (v8Value.IsEmpty()) |
12019 return false; | 12568 return false; |
12020 TOSTRING_DEFAULT(V8StringResource<>, cppValue, v8Value, false); | 12569 V8StringResource<> cppValue = v8Value; |
| 12570 if (!cppValue.prepare()) |
| 12571 return false; |
12021 RELEASE_ASSERT(!exceptionState.hadException()); | 12572 RELEASE_ASSERT(!exceptionState.hadException()); |
12022 *result = cppValue; | 12573 *result = cppValue; |
12023 return true; | 12574 return true; |
12024 } | 12575 } |
12025 | 12576 |
12026 bool V8TestObject::PrivateScript::attributeForPrivateScriptOnlyAttributeSetter(L
ocalFrame* frame, TestObject* holderImpl, String cppValue) | 12577 bool V8TestObject::PrivateScript::attributeForPrivateScriptOnlyAttributeSetter(L
ocalFrame* frame, TestObject* holderImpl, String cppValue) |
12027 { | 12578 { |
12028 if (!frame) | 12579 if (!frame) |
12029 return false; | 12580 return false; |
12030 v8::HandleScope handleScope(toIsolate(frame)); | 12581 v8::HandleScope handleScope(toIsolate(frame)); |
(...skipping 27 matching lines...) Expand all Loading... |
12058 if (!scriptState->executionContext()) | 12609 if (!scriptState->executionContext()) |
12059 return false; | 12610 return false; |
12060 | 12611 |
12061 ScriptState::Scope scope(scriptState); | 12612 ScriptState::Scope scope(scriptState); |
12062 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); | 12613 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); |
12063 | 12614 |
12064 ExceptionState exceptionState(ExceptionState::GetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; | 12615 ExceptionState exceptionState(ExceptionState::GetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; |
12065 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMAttributeGetter(sc
riptState, scriptStateInUserScript, "TestObject", "enumForPrivateScript", holder
); | 12616 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMAttributeGetter(sc
riptState, scriptStateInUserScript, "TestObject", "enumForPrivateScript", holder
); |
12066 if (v8Value.IsEmpty()) | 12617 if (v8Value.IsEmpty()) |
12067 return false; | 12618 return false; |
12068 TOSTRING_DEFAULT(V8StringResource<>, cppValue, v8Value, false); | 12619 V8StringResource<> cppValue = v8Value; |
| 12620 if (!cppValue.prepare()) |
| 12621 return false; |
12069 RELEASE_ASSERT(!exceptionState.hadException()); | 12622 RELEASE_ASSERT(!exceptionState.hadException()); |
12070 *result = cppValue; | 12623 *result = cppValue; |
12071 return true; | 12624 return true; |
12072 } | 12625 } |
12073 | 12626 |
12074 bool V8TestObject::PrivateScript::enumForPrivateScriptAttributeSetter(LocalFrame
* frame, TestObject* holderImpl, String cppValue) | 12627 bool V8TestObject::PrivateScript::enumForPrivateScriptAttributeSetter(LocalFrame
* frame, TestObject* holderImpl, String cppValue) |
12075 { | 12628 { |
12076 if (!frame) | 12629 if (!frame) |
12077 return false; | 12630 return false; |
12078 v8::HandleScope handleScope(toIsolate(frame)); | 12631 v8::HandleScope handleScope(toIsolate(frame)); |
12079 ScriptForbiddenScope::AllowUserAgentScript script; | 12632 ScriptForbiddenScope::AllowUserAgentScript script; |
12080 v8::Local<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrappe
rWorld::privateScriptIsolatedWorld()); | 12633 v8::Local<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrappe
rWorld::privateScriptIsolatedWorld()); |
12081 if (contextInPrivateScript.IsEmpty()) | 12634 if (contextInPrivateScript.IsEmpty()) |
12082 return false; | 12635 return false; |
12083 ScriptState* scriptState = ScriptState::from(contextInPrivateScript); | 12636 ScriptState* scriptState = ScriptState::from(contextInPrivateScript); |
12084 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame); | 12637 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame); |
12085 if (!scriptState->executionContext()) | 12638 if (!scriptState->executionContext()) |
12086 return false; | 12639 return false; |
12087 | 12640 |
12088 ScriptState::Scope scope(scriptState); | 12641 ScriptState::Scope scope(scriptState); |
12089 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); | 12642 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); |
12090 | 12643 |
12091 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; | 12644 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; |
12092 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); | 12645 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); |
12093 } | 12646 } |
12094 | 12647 |
12095 } // namespace blink | 12648 } // namespace blink |
OLD | NEW |