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 if (!V8DoubleOrString::toImpl(info.GetIsolate(), v8Value, cppValue, exceptio
nState)) { |
1793 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8DoubleOrString::toImpl(info.GetIs
olate(), v8Value, cppValue, exceptionState), exceptionState); | 1856 exceptionState.throwException(); |
| 1857 return; |
| 1858 } |
1794 impl->setDoubleOrStringAttribute(cppValue); | 1859 impl->setDoubleOrStringAttribute(cppValue); |
1795 } | 1860 } |
1796 | 1861 |
1797 static void doubleOrStringAttributeAttributeSetterCallback(v8::Local<v8::String>
, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1862 static void doubleOrStringAttributeAttributeSetterCallback(v8::Local<v8::String>
, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1798 { | 1863 { |
1799 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1864 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
1800 TestObjectV8Internal::doubleOrStringAttributeAttributeSetter(v8Value, info); | 1865 TestObjectV8Internal::doubleOrStringAttributeAttributeSetter(v8Value, info); |
1801 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1866 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1802 } | 1867 } |
1803 | 1868 |
(...skipping 10 matching lines...) Expand all Loading... |
1814 { | 1879 { |
1815 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1880 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
1816 TestObjectV8Internal::doubleOrStringOrNullAttributeAttributeGetter(info); | 1881 TestObjectV8Internal::doubleOrStringOrNullAttributeAttributeGetter(info); |
1817 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1882 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1818 } | 1883 } |
1819 | 1884 |
1820 static void doubleOrStringOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8
Value, const v8::PropertyCallbackInfo<void>& info) | 1885 static void doubleOrStringOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8
Value, const v8::PropertyCallbackInfo<void>& info) |
1821 { | 1886 { |
1822 v8::Local<v8::Object> holder = info.Holder(); | 1887 v8::Local<v8::Object> holder = info.Holder(); |
1823 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleOrString
OrNullAttribute", "TestObject", holder, info.GetIsolate()); | 1888 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleOrString
OrNullAttribute", "TestObject", holder, info.GetIsolate()); |
| 1889 TestObject* impl = V8TestObject::toImpl(holder); |
1824 DoubleOrString cppValue; | 1890 DoubleOrString cppValue; |
1825 TestObject* impl = V8TestObject::toImpl(holder); | 1891 if (!V8DoubleOrStringOrNull::toImpl(info.GetIsolate(), v8Value, cppValue, ex
ceptionState)) { |
1826 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8DoubleOrStringOrNull::toImpl(info
.GetIsolate(), v8Value, cppValue, exceptionState), exceptionState); | 1892 exceptionState.throwException(); |
| 1893 return; |
| 1894 } |
1827 impl->setDoubleOrStringOrNullAttribute(cppValue); | 1895 impl->setDoubleOrStringOrNullAttribute(cppValue); |
1828 } | 1896 } |
1829 | 1897 |
1830 static void doubleOrStringOrNullAttributeAttributeSetterCallback(v8::Local<v8::S
tring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info
) | 1898 static void doubleOrStringOrNullAttributeAttributeSetterCallback(v8::Local<v8::S
tring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info
) |
1831 { | 1899 { |
1832 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1900 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
1833 TestObjectV8Internal::doubleOrStringOrNullAttributeAttributeSetter(v8Value,
info); | 1901 TestObjectV8Internal::doubleOrStringOrNullAttributeAttributeSetter(v8Value,
info); |
1834 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1902 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1835 } | 1903 } |
1836 | 1904 |
(...skipping 10 matching lines...) Expand all Loading... |
1847 { | 1915 { |
1848 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1916 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
1849 TestObjectV8Internal::doubleOrNullStringAttributeAttributeGetter(info); | 1917 TestObjectV8Internal::doubleOrNullStringAttributeAttributeGetter(info); |
1850 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1918 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1851 } | 1919 } |
1852 | 1920 |
1853 static void doubleOrNullStringAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) | 1921 static void doubleOrNullStringAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) |
1854 { | 1922 { |
1855 v8::Local<v8::Object> holder = info.Holder(); | 1923 v8::Local<v8::Object> holder = info.Holder(); |
1856 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleOrNullSt
ringAttribute", "TestObject", holder, info.GetIsolate()); | 1924 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleOrNullSt
ringAttribute", "TestObject", holder, info.GetIsolate()); |
| 1925 TestObject* impl = V8TestObject::toImpl(holder); |
1857 DoubleOrString cppValue; | 1926 DoubleOrString cppValue; |
1858 TestObject* impl = V8TestObject::toImpl(holder); | 1927 if (!V8DoubleOrStringOrNull::toImpl(info.GetIsolate(), v8Value, cppValue, ex
ceptionState)) { |
1859 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8DoubleOrStringOrNull::toImpl(info
.GetIsolate(), v8Value, cppValue, exceptionState), exceptionState); | 1928 exceptionState.throwException(); |
| 1929 return; |
| 1930 } |
1860 impl->setDoubleOrNullStringAttribute(cppValue); | 1931 impl->setDoubleOrNullStringAttribute(cppValue); |
1861 } | 1932 } |
1862 | 1933 |
1863 static void doubleOrNullStringAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1934 static void doubleOrNullStringAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1864 { | 1935 { |
1865 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1936 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
1866 TestObjectV8Internal::doubleOrNullStringAttributeAttributeSetter(v8Value, in
fo); | 1937 TestObjectV8Internal::doubleOrNullStringAttributeAttributeSetter(v8Value, in
fo); |
1867 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1938 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1868 } | 1939 } |
1869 | 1940 |
(...skipping 10 matching lines...) Expand all Loading... |
1880 { | 1951 { |
1881 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1952 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
1882 TestObjectV8Internal::stringOrStringSequenceAttributeAttributeGetter(info); | 1953 TestObjectV8Internal::stringOrStringSequenceAttributeAttributeGetter(info); |
1883 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1954 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1884 } | 1955 } |
1885 | 1956 |
1886 static void stringOrStringSequenceAttributeAttributeSetter(v8::Local<v8::Value>
v8Value, const v8::PropertyCallbackInfo<void>& info) | 1957 static void stringOrStringSequenceAttributeAttributeSetter(v8::Local<v8::Value>
v8Value, const v8::PropertyCallbackInfo<void>& info) |
1887 { | 1958 { |
1888 v8::Local<v8::Object> holder = info.Holder(); | 1959 v8::Local<v8::Object> holder = info.Holder(); |
1889 ExceptionState exceptionState(ExceptionState::SetterContext, "stringOrString
SequenceAttribute", "TestObject", holder, info.GetIsolate()); | 1960 ExceptionState exceptionState(ExceptionState::SetterContext, "stringOrString
SequenceAttribute", "TestObject", holder, info.GetIsolate()); |
| 1961 TestObject* impl = V8TestObject::toImpl(holder); |
1890 StringOrStringSequence cppValue; | 1962 StringOrStringSequence cppValue; |
1891 TestObject* impl = V8TestObject::toImpl(holder); | 1963 if (!V8StringOrStringSequence::toImpl(info.GetIsolate(), v8Value, cppValue,
exceptionState)) { |
1892 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8StringOrStringSequence::toImpl(in
fo.GetIsolate(), v8Value, cppValue, exceptionState), exceptionState); | 1964 exceptionState.throwException(); |
| 1965 return; |
| 1966 } |
1893 impl->setStringOrStringSequenceAttribute(cppValue); | 1967 impl->setStringOrStringSequenceAttribute(cppValue); |
1894 } | 1968 } |
1895 | 1969 |
1896 static void stringOrStringSequenceAttributeAttributeSetterCallback(v8::Local<v8:
:String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in
fo) | 1970 static void stringOrStringSequenceAttributeAttributeSetterCallback(v8::Local<v8:
:String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in
fo) |
1897 { | 1971 { |
1898 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1972 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
1899 TestObjectV8Internal::stringOrStringSequenceAttributeAttributeSetter(v8Value
, info); | 1973 TestObjectV8Internal::stringOrStringSequenceAttributeAttributeSetter(v8Value
, info); |
1900 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1974 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1901 } | 1975 } |
1902 | 1976 |
(...skipping 10 matching lines...) Expand all Loading... |
1913 { | 1987 { |
1914 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1988 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
1915 TestObjectV8Internal::testEnumOrDoubleAttributeAttributeGetter(info); | 1989 TestObjectV8Internal::testEnumOrDoubleAttributeAttributeGetter(info); |
1916 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1990 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1917 } | 1991 } |
1918 | 1992 |
1919 static void testEnumOrDoubleAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::PropertyCallbackInfo<void>& info) | 1993 static void testEnumOrDoubleAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::PropertyCallbackInfo<void>& info) |
1920 { | 1994 { |
1921 v8::Local<v8::Object> holder = info.Holder(); | 1995 v8::Local<v8::Object> holder = info.Holder(); |
1922 ExceptionState exceptionState(ExceptionState::SetterContext, "testEnumOrDoub
leAttribute", "TestObject", holder, info.GetIsolate()); | 1996 ExceptionState exceptionState(ExceptionState::SetterContext, "testEnumOrDoub
leAttribute", "TestObject", holder, info.GetIsolate()); |
| 1997 TestObject* impl = V8TestObject::toImpl(holder); |
1923 TestEnumOrDouble cppValue; | 1998 TestEnumOrDouble cppValue; |
1924 TestObject* impl = V8TestObject::toImpl(holder); | 1999 if (!V8TestEnumOrDouble::toImpl(info.GetIsolate(), v8Value, cppValue, except
ionState)) { |
1925 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8TestEnumOrDouble::toImpl(info.Get
Isolate(), v8Value, cppValue, exceptionState), exceptionState); | 2000 exceptionState.throwException(); |
| 2001 return; |
| 2002 } |
1926 impl->setTestEnumOrDoubleAttribute(cppValue); | 2003 impl->setTestEnumOrDoubleAttribute(cppValue); |
1927 } | 2004 } |
1928 | 2005 |
1929 static void testEnumOrDoubleAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2006 static void testEnumOrDoubleAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1930 { | 2007 { |
1931 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2008 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
1932 TestObjectV8Internal::testEnumOrDoubleAttributeAttributeSetter(v8Value, info
); | 2009 TestObjectV8Internal::testEnumOrDoubleAttributeAttributeSetter(v8Value, info
); |
1933 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2010 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1934 } | 2011 } |
1935 | 2012 |
(...skipping 10 matching lines...) Expand all Loading... |
1946 { | 2023 { |
1947 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 2024 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
1948 TestObjectV8Internal::unrestrictedDoubleOrStringAttributeAttributeGetter(inf
o); | 2025 TestObjectV8Internal::unrestrictedDoubleOrStringAttributeAttributeGetter(inf
o); |
1949 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2026 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1950 } | 2027 } |
1951 | 2028 |
1952 static void unrestrictedDoubleOrStringAttributeAttributeSetter(v8::Local<v8::Val
ue> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2029 static void unrestrictedDoubleOrStringAttributeAttributeSetter(v8::Local<v8::Val
ue> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1953 { | 2030 { |
1954 v8::Local<v8::Object> holder = info.Holder(); | 2031 v8::Local<v8::Object> holder = info.Holder(); |
1955 ExceptionState exceptionState(ExceptionState::SetterContext, "unrestrictedDo
ubleOrStringAttribute", "TestObject", holder, info.GetIsolate()); | 2032 ExceptionState exceptionState(ExceptionState::SetterContext, "unrestrictedDo
ubleOrStringAttribute", "TestObject", holder, info.GetIsolate()); |
| 2033 TestObject* impl = V8TestObject::toImpl(holder); |
1956 UnrestrictedDoubleOrString cppValue; | 2034 UnrestrictedDoubleOrString cppValue; |
1957 TestObject* impl = V8TestObject::toImpl(holder); | 2035 if (!V8UnrestrictedDoubleOrString::toImpl(info.GetIsolate(), v8Value, cppVal
ue, exceptionState)) { |
1958 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8UnrestrictedDoubleOrString::toImp
l(info.GetIsolate(), v8Value, cppValue, exceptionState), exceptionState); | 2036 exceptionState.throwException(); |
| 2037 return; |
| 2038 } |
1959 impl->setUnrestrictedDoubleOrStringAttribute(cppValue); | 2039 impl->setUnrestrictedDoubleOrStringAttribute(cppValue); |
1960 } | 2040 } |
1961 | 2041 |
1962 static void unrestrictedDoubleOrStringAttributeAttributeSetterCallback(v8::Local
<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>
& info) | 2042 static void unrestrictedDoubleOrStringAttributeAttributeSetterCallback(v8::Local
<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>
& info) |
1963 { | 2043 { |
1964 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2044 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
1965 TestObjectV8Internal::unrestrictedDoubleOrStringAttributeAttributeSetter(v8V
alue, info); | 2045 TestObjectV8Internal::unrestrictedDoubleOrStringAttributeAttributeSetter(v8V
alue, info); |
1966 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2046 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1967 } | 2047 } |
1968 | 2048 |
(...skipping 13 matching lines...) Expand all Loading... |
1982 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce
ssForAllWorldsLongAttribute"); | 2062 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce
ssForAllWorldsLongAttribute"); |
1983 TestObjectV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttribut
eGetter(info); | 2063 TestObjectV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttribut
eGetter(info); |
1984 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2064 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1985 } | 2065 } |
1986 | 2066 |
1987 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetter(v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2067 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetter(v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1988 { | 2068 { |
1989 v8::Local<v8::Object> holder = info.Holder(); | 2069 v8::Local<v8::Object> holder = info.Holder(); |
1990 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); | 2070 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); |
1991 TestObject* impl = V8TestObject::toImpl(holder); | 2071 TestObject* impl = V8TestObject::toImpl(holder); |
1992 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 2072 int cppValue = toInt32(v8Value, exceptionState); |
| 2073 if (exceptionState.throwIfNeeded()) |
| 2074 return; |
1993 impl->setActivityLoggingAccessForAllWorldsLongAttribute(cppValue); | 2075 impl->setActivityLoggingAccessForAllWorldsLongAttribute(cppValue); |
1994 } | 2076 } |
1995 | 2077 |
1996 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetterCallbac
k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac
kInfo<void>& info) | 2078 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetterCallbac
k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac
kInfo<void>& info) |
1997 { | 2079 { |
1998 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2080 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
1999 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); | 2081 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); |
2000 V8PerContextData* contextData = scriptState->perContextData(); | 2082 V8PerContextData* contextData = scriptState->perContextData(); |
2001 if (contextData && contextData->activityLogger()) { | 2083 if (contextData && contextData->activityLogger()) { |
2002 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce
ssForAllWorldsLongAttribute", v8Value); | 2084 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce
ssForAllWorldsLongAttribute", v8Value); |
(...skipping 18 matching lines...) Expand all Loading... |
2021 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett
erForAllWorldsLongAttribute"); | 2103 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett
erForAllWorldsLongAttribute"); |
2022 TestObjectV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttribut
eGetter(info); | 2104 TestObjectV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttribut
eGetter(info); |
2023 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2105 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2024 } | 2106 } |
2025 | 2107 |
2026 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetter(v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2108 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetter(v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2027 { | 2109 { |
2028 v8::Local<v8::Object> holder = info.Holder(); | 2110 v8::Local<v8::Object> holder = info.Holder(); |
2029 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); | 2111 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); |
2030 TestObject* impl = V8TestObject::toImpl(holder); | 2112 TestObject* impl = V8TestObject::toImpl(holder); |
2031 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 2113 int cppValue = toInt32(v8Value, exceptionState); |
| 2114 if (exceptionState.throwIfNeeded()) |
| 2115 return; |
2032 impl->setActivityLoggingGetterForAllWorldsLongAttribute(cppValue); | 2116 impl->setActivityLoggingGetterForAllWorldsLongAttribute(cppValue); |
2033 } | 2117 } |
2034 | 2118 |
2035 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetterCallbac
k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac
kInfo<void>& info) | 2119 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetterCallbac
k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac
kInfo<void>& info) |
2036 { | 2120 { |
2037 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2121 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2038 TestObjectV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttribut
eSetter(v8Value, info); | 2122 TestObjectV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttribut
eSetter(v8Value, info); |
2039 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2123 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2040 } | 2124 } |
2041 | 2125 |
2042 static void activityLoggingSetterForAllWorldsLongAttributeAttributeGetter(const
v8::PropertyCallbackInfo<v8::Value>& info) | 2126 static void activityLoggingSetterForAllWorldsLongAttributeAttributeGetter(const
v8::PropertyCallbackInfo<v8::Value>& info) |
2043 { | 2127 { |
2044 v8::Local<v8::Object> holder = info.Holder(); | 2128 v8::Local<v8::Object> holder = info.Holder(); |
2045 TestObject* impl = V8TestObject::toImpl(holder); | 2129 TestObject* impl = V8TestObject::toImpl(holder); |
2046 v8SetReturnValueInt(info, impl->activityLoggingSetterForAllWorldsLongAttribu
te()); | 2130 v8SetReturnValueInt(info, impl->activityLoggingSetterForAllWorldsLongAttribu
te()); |
2047 } | 2131 } |
2048 | 2132 |
2049 static void activityLoggingSetterForAllWorldsLongAttributeAttributeGetterCallbac
k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2133 static void activityLoggingSetterForAllWorldsLongAttributeAttributeGetterCallbac
k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2050 { | 2134 { |
2051 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 2135 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
2052 TestObjectV8Internal::activityLoggingSetterForAllWorldsLongAttributeAttribut
eGetter(info); | 2136 TestObjectV8Internal::activityLoggingSetterForAllWorldsLongAttributeAttribut
eGetter(info); |
2053 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2137 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2054 } | 2138 } |
2055 | 2139 |
2056 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetter(v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2140 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetter(v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2057 { | 2141 { |
2058 v8::Local<v8::Object> holder = info.Holder(); | 2142 v8::Local<v8::Object> holder = info.Holder(); |
2059 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gSetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); | 2143 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gSetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); |
2060 TestObject* impl = V8TestObject::toImpl(holder); | 2144 TestObject* impl = V8TestObject::toImpl(holder); |
2061 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 2145 int cppValue = toInt32(v8Value, exceptionState); |
| 2146 if (exceptionState.throwIfNeeded()) |
| 2147 return; |
2062 impl->setActivityLoggingSetterForAllWorldsLongAttribute(cppValue); | 2148 impl->setActivityLoggingSetterForAllWorldsLongAttribute(cppValue); |
2063 } | 2149 } |
2064 | 2150 |
2065 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetterCallbac
k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac
kInfo<void>& info) | 2151 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetterCallbac
k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac
kInfo<void>& info) |
2066 { | 2152 { |
2067 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2153 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2068 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); | 2154 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); |
2069 V8PerContextData* contextData = scriptState->perContextData(); | 2155 V8PerContextData* contextData = scriptState->perContextData(); |
2070 if (contextData && contextData->activityLogger()) { | 2156 if (contextData && contextData->activityLogger()) { |
2071 contextData->activityLogger()->logSetter("TestObject.activityLoggingSett
erForAllWorldsLongAttribute", v8Value); | 2157 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"); | 2222 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
2137 TestObjectV8Internal::cachedArrayAttributeAttributeGetter(info); | 2223 TestObjectV8Internal::cachedArrayAttributeAttributeGetter(info); |
2138 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2224 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2139 } | 2225 } |
2140 | 2226 |
2141 static void cachedArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::PropertyCallbackInfo<void>& info) | 2227 static void cachedArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::PropertyCallbackInfo<void>& info) |
2142 { | 2228 { |
2143 v8::Local<v8::Object> holder = info.Holder(); | 2229 v8::Local<v8::Object> holder = info.Holder(); |
2144 ExceptionState exceptionState(ExceptionState::SetterContext, "cachedArrayAtt
ribute", "TestObject", holder, info.GetIsolate()); | 2230 ExceptionState exceptionState(ExceptionState::SetterContext, "cachedArrayAtt
ribute", "TestObject", holder, info.GetIsolate()); |
2145 TestObject* impl = V8TestObject::toImpl(holder); | 2231 TestObject* impl = V8TestObject::toImpl(holder); |
2146 TONATIVE_VOID_EXCEPTIONSTATE(Vector<String>, cppValue, toImplArray<String>(v
8Value, 0, info.GetIsolate(), exceptionState), exceptionState); | 2232 Vector<String> cppValue = toImplArray<String>(v8Value, 0, info.GetIsolate(),
exceptionState); |
| 2233 if (exceptionState.throwIfNeeded()) |
| 2234 return; |
2147 impl->setCachedArrayAttribute(cppValue); | 2235 impl->setCachedArrayAttribute(cppValue); |
2148 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i
nfo.GetIsolate(), "cachedArrayAttribute")); // Invalidate the cached value. | 2236 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i
nfo.GetIsolate(), "cachedArrayAttribute")); // Invalidate the cached value. |
2149 } | 2237 } |
2150 | 2238 |
2151 static void cachedArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2239 static void cachedArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2152 { | 2240 { |
2153 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2241 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2154 TestObjectV8Internal::cachedArrayAttributeAttributeSetter(v8Value, info); | 2242 TestObjectV8Internal::cachedArrayAttributeAttributeSetter(v8Value, info); |
2155 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2243 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2156 } | 2244 } |
(...skipping 19 matching lines...) Expand all Loading... |
2176 { | 2264 { |
2177 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 2265 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
2178 TestObjectV8Internal::cachedStringOrNoneAttributeAttributeGetter(info); | 2266 TestObjectV8Internal::cachedStringOrNoneAttributeAttributeGetter(info); |
2179 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2267 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2180 } | 2268 } |
2181 | 2269 |
2182 static void cachedStringOrNoneAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) | 2270 static void cachedStringOrNoneAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) |
2183 { | 2271 { |
2184 v8::Local<v8::Object> holder = info.Holder(); | 2272 v8::Local<v8::Object> holder = info.Holder(); |
2185 TestObject* impl = V8TestObject::toImpl(holder); | 2273 TestObject* impl = V8TestObject::toImpl(holder); |
2186 TOSTRING_VOID(V8StringResource<TreatNullAsNullString>, cppValue, v8Value); | 2274 V8StringResource<TreatNullAsNullString> cppValue = v8Value; |
| 2275 if (!cppValue.prepare()) |
| 2276 return; |
2187 impl->setCachedStringOrNoneAttribute(cppValue); | 2277 impl->setCachedStringOrNoneAttribute(cppValue); |
2188 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i
nfo.GetIsolate(), "cachedStringOrNoneAttribute")); // Invalidate the cached valu
e. | 2278 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i
nfo.GetIsolate(), "cachedStringOrNoneAttribute")); // Invalidate the cached valu
e. |
2189 } | 2279 } |
2190 | 2280 |
2191 static void cachedStringOrNoneAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2281 static void cachedStringOrNoneAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2192 { | 2282 { |
2193 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2283 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2194 TestObjectV8Internal::cachedStringOrNoneAttributeAttributeSetter(v8Value, in
fo); | 2284 TestObjectV8Internal::cachedStringOrNoneAttributeAttributeSetter(v8Value, in
fo); |
2195 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2285 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2196 } | 2286 } |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2325 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2415 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2326 } | 2416 } |
2327 #endif // ENABLE(CONDITION) | 2417 #endif // ENABLE(CONDITION) |
2328 | 2418 |
2329 #if ENABLE(CONDITION) | 2419 #if ENABLE(CONDITION) |
2330 static void conditionalLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value
, const v8::PropertyCallbackInfo<void>& info) | 2420 static void conditionalLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value
, const v8::PropertyCallbackInfo<void>& info) |
2331 { | 2421 { |
2332 v8::Local<v8::Object> holder = info.Holder(); | 2422 v8::Local<v8::Object> holder = info.Holder(); |
2333 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalLon
gAttribute", "TestObject", holder, info.GetIsolate()); | 2423 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalLon
gAttribute", "TestObject", holder, info.GetIsolate()); |
2334 TestObject* impl = V8TestObject::toImpl(holder); | 2424 TestObject* impl = V8TestObject::toImpl(holder); |
2335 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 2425 int cppValue = toInt32(v8Value, exceptionState); |
| 2426 if (exceptionState.throwIfNeeded()) |
| 2427 return; |
2336 impl->setConditionalLongAttribute(cppValue); | 2428 impl->setConditionalLongAttribute(cppValue); |
2337 } | 2429 } |
2338 #endif // ENABLE(CONDITION) | 2430 #endif // ENABLE(CONDITION) |
2339 | 2431 |
2340 #if ENABLE(CONDITION) | 2432 #if ENABLE(CONDITION) |
2341 static void conditionalLongAttributeAttributeSetterCallback(v8::Local<v8::String
>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2433 static void conditionalLongAttributeAttributeSetterCallback(v8::Local<v8::String
>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2342 { | 2434 { |
2343 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2435 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2344 TestObjectV8Internal::conditionalLongAttributeAttributeSetter(v8Value, info)
; | 2436 TestObjectV8Internal::conditionalLongAttributeAttributeSetter(v8Value, info)
; |
2345 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2437 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
(...skipping 19 matching lines...) Expand all Loading... |
2365 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 2457 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
2366 V8TestObject::customGetterLongAttributeAttributeGetterCustom(info); | 2458 V8TestObject::customGetterLongAttributeAttributeGetterCustom(info); |
2367 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2459 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2368 } | 2460 } |
2369 | 2461 |
2370 static void customGetterLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::PropertyCallbackInfo<void>& info) | 2462 static void customGetterLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::PropertyCallbackInfo<void>& info) |
2371 { | 2463 { |
2372 v8::Local<v8::Object> holder = info.Holder(); | 2464 v8::Local<v8::Object> holder = info.Holder(); |
2373 ExceptionState exceptionState(ExceptionState::SetterContext, "customGetterLo
ngAttribute", "TestObject", holder, info.GetIsolate()); | 2465 ExceptionState exceptionState(ExceptionState::SetterContext, "customGetterLo
ngAttribute", "TestObject", holder, info.GetIsolate()); |
2374 TestObject* impl = V8TestObject::toImpl(holder); | 2466 TestObject* impl = V8TestObject::toImpl(holder); |
2375 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 2467 int cppValue = toInt32(v8Value, exceptionState); |
| 2468 if (exceptionState.throwIfNeeded()) |
| 2469 return; |
2376 impl->setCustomGetterLongAttribute(cppValue); | 2470 impl->setCustomGetterLongAttribute(cppValue); |
2377 } | 2471 } |
2378 | 2472 |
2379 static void customGetterLongAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2473 static void customGetterLongAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2380 { | 2474 { |
2381 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2475 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2382 TestObjectV8Internal::customGetterLongAttributeAttributeSetter(v8Value, info
); | 2476 TestObjectV8Internal::customGetterLongAttributeAttributeSetter(v8Value, info
); |
2383 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2477 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2384 } | 2478 } |
2385 | 2479 |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2456 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe
cutionContext(info.GetIsolate()), UseCounter::LongAttribute); | 2550 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe
cutionContext(info.GetIsolate()), UseCounter::LongAttribute); |
2457 TestObjectV8Internal::deprecatedLongAttributeAttributeGetter(info); | 2551 TestObjectV8Internal::deprecatedLongAttributeAttributeGetter(info); |
2458 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2552 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2459 } | 2553 } |
2460 | 2554 |
2461 static void deprecatedLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) | 2555 static void deprecatedLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) |
2462 { | 2556 { |
2463 v8::Local<v8::Object> holder = info.Holder(); | 2557 v8::Local<v8::Object> holder = info.Holder(); |
2464 ExceptionState exceptionState(ExceptionState::SetterContext, "deprecatedLong
Attribute", "TestObject", holder, info.GetIsolate()); | 2558 ExceptionState exceptionState(ExceptionState::SetterContext, "deprecatedLong
Attribute", "TestObject", holder, info.GetIsolate()); |
2465 TestObject* impl = V8TestObject::toImpl(holder); | 2559 TestObject* impl = V8TestObject::toImpl(holder); |
2466 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 2560 int cppValue = toInt32(v8Value, exceptionState); |
| 2561 if (exceptionState.throwIfNeeded()) |
| 2562 return; |
2467 impl->setDeprecatedLongAttribute(cppValue); | 2563 impl->setDeprecatedLongAttribute(cppValue); |
2468 } | 2564 } |
2469 | 2565 |
2470 static void deprecatedLongAttributeAttributeSetterCallback(v8::Local<v8::String>
, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2566 static void deprecatedLongAttributeAttributeSetterCallback(v8::Local<v8::String>
, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2471 { | 2567 { |
2472 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2568 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2473 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe
cutionContext(info.GetIsolate()), UseCounter::LongAttribute); | 2569 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe
cutionContext(info.GetIsolate()), UseCounter::LongAttribute); |
2474 TestObjectV8Internal::deprecatedLongAttributeAttributeSetter(v8Value, info); | 2570 TestObjectV8Internal::deprecatedLongAttributeAttributeSetter(v8Value, info); |
2475 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2571 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2476 } | 2572 } |
(...skipping 10 matching lines...) Expand all Loading... |
2487 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 2583 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
2488 TestObjectV8Internal::enforceRangeLongAttributeAttributeGetter(info); | 2584 TestObjectV8Internal::enforceRangeLongAttributeAttributeGetter(info); |
2489 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2585 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2490 } | 2586 } |
2491 | 2587 |
2492 static void enforceRangeLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::PropertyCallbackInfo<void>& info) | 2588 static void enforceRangeLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::PropertyCallbackInfo<void>& info) |
2493 { | 2589 { |
2494 v8::Local<v8::Object> holder = info.Holder(); | 2590 v8::Local<v8::Object> holder = info.Holder(); |
2495 ExceptionState exceptionState(ExceptionState::SetterContext, "enforceRangeLo
ngAttribute", "TestObject", holder, info.GetIsolate()); | 2591 ExceptionState exceptionState(ExceptionState::SetterContext, "enforceRangeLo
ngAttribute", "TestObject", holder, info.GetIsolate()); |
2496 TestObject* impl = V8TestObject::toImpl(holder); | 2592 TestObject* impl = V8TestObject::toImpl(holder); |
2497 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, EnforceRange, e
xceptionState), exceptionState); | 2593 int cppValue = toInt32(v8Value, EnforceRange, exceptionState); |
| 2594 if (exceptionState.throwIfNeeded()) |
| 2595 return; |
2498 impl->setEnforceRangeLongAttribute(cppValue); | 2596 impl->setEnforceRangeLongAttribute(cppValue); |
2499 } | 2597 } |
2500 | 2598 |
2501 static void enforceRangeLongAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2599 static void enforceRangeLongAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2502 { | 2600 { |
2503 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2601 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2504 TestObjectV8Internal::enforceRangeLongAttributeAttributeSetter(v8Value, info
); | 2602 TestObjectV8Internal::enforceRangeLongAttributeAttributeSetter(v8Value, info
); |
2505 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2603 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2506 } | 2604 } |
2507 | 2605 |
2508 static void exposeJSAccessorsLongAttributeAttributeGetter(const v8::FunctionCall
backInfo<v8::Value>& info) | 2606 static void exposeJSAccessorsLongAttributeAttributeGetter(const v8::FunctionCall
backInfo<v8::Value>& info) |
2509 { | 2607 { |
2510 v8::Local<v8::Object> holder = info.Holder(); | 2608 v8::Local<v8::Object> holder = info.Holder(); |
2511 TestObject* impl = V8TestObject::toImpl(holder); | 2609 TestObject* impl = V8TestObject::toImpl(holder); |
2512 v8SetReturnValueInt(info, impl->exposeJSAccessorsLongAttribute()); | 2610 v8SetReturnValueInt(info, impl->exposeJSAccessorsLongAttribute()); |
2513 } | 2611 } |
2514 | 2612 |
2515 static void exposeJSAccessorsLongAttributeAttributeGetterCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) | 2613 static void exposeJSAccessorsLongAttributeAttributeGetterCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
2516 { | 2614 { |
2517 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 2615 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
2518 TestObjectV8Internal::exposeJSAccessorsLongAttributeAttributeGetter(info); | 2616 TestObjectV8Internal::exposeJSAccessorsLongAttributeAttributeGetter(info); |
2519 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2617 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2520 } | 2618 } |
2521 | 2619 |
2522 static void exposeJSAccessorsLongAttributeAttributeSetter(v8::Local<v8::Value> v
8Value, const v8::FunctionCallbackInfo<v8::Value>& info) | 2620 static void exposeJSAccessorsLongAttributeAttributeSetter(v8::Local<v8::Value> v
8Value, const v8::FunctionCallbackInfo<v8::Value>& info) |
2523 { | 2621 { |
2524 v8::Local<v8::Object> holder = info.Holder(); | 2622 v8::Local<v8::Object> holder = info.Holder(); |
2525 ExceptionState exceptionState(ExceptionState::SetterContext, "exposeJSAccess
orsLongAttribute", "TestObject", holder, info.GetIsolate()); | 2623 ExceptionState exceptionState(ExceptionState::SetterContext, "exposeJSAccess
orsLongAttribute", "TestObject", holder, info.GetIsolate()); |
2526 TestObject* impl = V8TestObject::toImpl(holder); | 2624 TestObject* impl = V8TestObject::toImpl(holder); |
2527 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 2625 int cppValue = toInt32(v8Value, exceptionState); |
| 2626 if (exceptionState.throwIfNeeded()) |
| 2627 return; |
2528 impl->setExposeJSAccessorsLongAttribute(cppValue); | 2628 impl->setExposeJSAccessorsLongAttribute(cppValue); |
2529 } | 2629 } |
2530 | 2630 |
2531 static void exposeJSAccessorsLongAttributeAttributeSetterCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) | 2631 static void exposeJSAccessorsLongAttributeAttributeSetterCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
2532 { | 2632 { |
2533 v8::Local<v8::Value> v8Value = info[0]; | 2633 v8::Local<v8::Value> v8Value = info[0]; |
2534 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2634 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2535 TestObjectV8Internal::exposeJSAccessorsLongAttributeAttributeSetter(v8Value,
info); | 2635 TestObjectV8Internal::exposeJSAccessorsLongAttributeAttributeSetter(v8Value,
info); |
2536 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2636 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2537 } | 2637 } |
(...skipping 10 matching lines...) Expand all Loading... |
2548 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 2648 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
2549 TestObjectV8Internal::implementedAsLongAttributeAttributeGetter(info); | 2649 TestObjectV8Internal::implementedAsLongAttributeAttributeGetter(info); |
2550 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2650 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2551 } | 2651 } |
2552 | 2652 |
2553 static void implementedAsLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val
ue, const v8::PropertyCallbackInfo<void>& info) | 2653 static void implementedAsLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val
ue, const v8::PropertyCallbackInfo<void>& info) |
2554 { | 2654 { |
2555 v8::Local<v8::Object> holder = info.Holder(); | 2655 v8::Local<v8::Object> holder = info.Holder(); |
2556 ExceptionState exceptionState(ExceptionState::SetterContext, "implementedAsL
ongAttribute", "TestObject", holder, info.GetIsolate()); | 2656 ExceptionState exceptionState(ExceptionState::SetterContext, "implementedAsL
ongAttribute", "TestObject", holder, info.GetIsolate()); |
2557 TestObject* impl = V8TestObject::toImpl(holder); | 2657 TestObject* impl = V8TestObject::toImpl(holder); |
2558 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 2658 int cppValue = toInt32(v8Value, exceptionState); |
| 2659 if (exceptionState.throwIfNeeded()) |
| 2660 return; |
2559 impl->setImplementedAsName(cppValue); | 2661 impl->setImplementedAsName(cppValue); |
2560 } | 2662 } |
2561 | 2663 |
2562 static void implementedAsLongAttributeAttributeSetterCallback(v8::Local<v8::Stri
ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2664 static void implementedAsLongAttributeAttributeSetterCallback(v8::Local<v8::Stri
ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2563 { | 2665 { |
2564 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2666 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2565 TestObjectV8Internal::implementedAsLongAttributeAttributeSetter(v8Value, inf
o); | 2667 TestObjectV8Internal::implementedAsLongAttributeAttributeSetter(v8Value, inf
o); |
2566 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2668 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2567 } | 2669 } |
2568 | 2670 |
(...skipping 16 matching lines...) Expand all Loading... |
2585 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 2687 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
2586 V8TestObject::customGetterImplementedAsLongAttributeAttributeGetterCustom(in
fo); | 2688 V8TestObject::customGetterImplementedAsLongAttributeAttributeGetterCustom(in
fo); |
2587 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2689 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2588 } | 2690 } |
2589 | 2691 |
2590 static void customGetterImplementedAsLongAttributeAttributeSetter(v8::Local<v8::
Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2692 static void customGetterImplementedAsLongAttributeAttributeSetter(v8::Local<v8::
Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2591 { | 2693 { |
2592 v8::Local<v8::Object> holder = info.Holder(); | 2694 v8::Local<v8::Object> holder = info.Holder(); |
2593 ExceptionState exceptionState(ExceptionState::SetterContext, "customGetterIm
plementedAsLongAttribute", "TestObject", holder, info.GetIsolate()); | 2695 ExceptionState exceptionState(ExceptionState::SetterContext, "customGetterIm
plementedAsLongAttribute", "TestObject", holder, info.GetIsolate()); |
2594 TestObject* impl = V8TestObject::toImpl(holder); | 2696 TestObject* impl = V8TestObject::toImpl(holder); |
2595 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 2697 int cppValue = toInt32(v8Value, exceptionState); |
| 2698 if (exceptionState.throwIfNeeded()) |
| 2699 return; |
2596 impl->setImplementedAsNameWithCustomGetter(cppValue); | 2700 impl->setImplementedAsNameWithCustomGetter(cppValue); |
2597 } | 2701 } |
2598 | 2702 |
2599 static void customGetterImplementedAsLongAttributeAttributeSetterCallback(v8::Lo
cal<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<vo
id>& info) | 2703 static void customGetterImplementedAsLongAttributeAttributeSetterCallback(v8::Lo
cal<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<vo
id>& info) |
2600 { | 2704 { |
2601 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2705 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2602 TestObjectV8Internal::customGetterImplementedAsLongAttributeAttributeSetter(
v8Value, info); | 2706 TestObjectV8Internal::customGetterImplementedAsLongAttributeAttributeSetter(
v8Value, info); |
2603 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2707 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2604 } | 2708 } |
2605 | 2709 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2637 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte
xt(info.GetIsolate()), UseCounter::TestFeature); | 2741 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte
xt(info.GetIsolate()), UseCounter::TestFeature); |
2638 TestObjectV8Internal::measureAsLongAttributeAttributeGetter(info); | 2742 TestObjectV8Internal::measureAsLongAttributeAttributeGetter(info); |
2639 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2743 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2640 } | 2744 } |
2641 | 2745 |
2642 static void measureAsLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) | 2746 static void measureAsLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) |
2643 { | 2747 { |
2644 v8::Local<v8::Object> holder = info.Holder(); | 2748 v8::Local<v8::Object> holder = info.Holder(); |
2645 ExceptionState exceptionState(ExceptionState::SetterContext, "measureAsLongA
ttribute", "TestObject", holder, info.GetIsolate()); | 2749 ExceptionState exceptionState(ExceptionState::SetterContext, "measureAsLongA
ttribute", "TestObject", holder, info.GetIsolate()); |
2646 TestObject* impl = V8TestObject::toImpl(holder); | 2750 TestObject* impl = V8TestObject::toImpl(holder); |
2647 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 2751 int cppValue = toInt32(v8Value, exceptionState); |
| 2752 if (exceptionState.throwIfNeeded()) |
| 2753 return; |
2648 impl->setMeasureAsLongAttribute(cppValue); | 2754 impl->setMeasureAsLongAttribute(cppValue); |
2649 } | 2755 } |
2650 | 2756 |
2651 static void measureAsLongAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2757 static void measureAsLongAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2652 { | 2758 { |
2653 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2759 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2654 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte
xt(info.GetIsolate()), UseCounter::TestFeature); | 2760 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte
xt(info.GetIsolate()), UseCounter::TestFeature); |
2655 TestObjectV8Internal::measureAsLongAttributeAttributeSetter(v8Value, info); | 2761 TestObjectV8Internal::measureAsLongAttributeAttributeSetter(v8Value, info); |
2656 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2762 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2657 } | 2763 } |
(...skipping 10 matching lines...) Expand all Loading... |
2668 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 2774 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
2669 TestObjectV8Internal::notEnumerableLongAttributeAttributeGetter(info); | 2775 TestObjectV8Internal::notEnumerableLongAttributeAttributeGetter(info); |
2670 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2776 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2671 } | 2777 } |
2672 | 2778 |
2673 static void notEnumerableLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val
ue, const v8::PropertyCallbackInfo<void>& info) | 2779 static void notEnumerableLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val
ue, const v8::PropertyCallbackInfo<void>& info) |
2674 { | 2780 { |
2675 v8::Local<v8::Object> holder = info.Holder(); | 2781 v8::Local<v8::Object> holder = info.Holder(); |
2676 ExceptionState exceptionState(ExceptionState::SetterContext, "notEnumerableL
ongAttribute", "TestObject", holder, info.GetIsolate()); | 2782 ExceptionState exceptionState(ExceptionState::SetterContext, "notEnumerableL
ongAttribute", "TestObject", holder, info.GetIsolate()); |
2677 TestObject* impl = V8TestObject::toImpl(holder); | 2783 TestObject* impl = V8TestObject::toImpl(holder); |
2678 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 2784 int cppValue = toInt32(v8Value, exceptionState); |
| 2785 if (exceptionState.throwIfNeeded()) |
| 2786 return; |
2679 impl->setNotEnumerableLongAttribute(cppValue); | 2787 impl->setNotEnumerableLongAttribute(cppValue); |
2680 } | 2788 } |
2681 | 2789 |
2682 static void notEnumerableLongAttributeAttributeSetterCallback(v8::Local<v8::Stri
ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2790 static void notEnumerableLongAttributeAttributeSetterCallback(v8::Local<v8::Stri
ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2683 { | 2791 { |
2684 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2792 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2685 TestObjectV8Internal::notEnumerableLongAttributeAttributeSetter(v8Value, inf
o); | 2793 TestObjectV8Internal::notEnumerableLongAttributeAttributeSetter(v8Value, inf
o); |
2686 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2794 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2687 } | 2795 } |
2688 | 2796 |
2689 static void perContextEnabledLongAttributeAttributeGetter(const v8::PropertyCall
backInfo<v8::Value>& info) | 2797 static void perContextEnabledLongAttributeAttributeGetter(const v8::PropertyCall
backInfo<v8::Value>& info) |
2690 { | 2798 { |
2691 v8::Local<v8::Object> holder = info.Holder(); | 2799 v8::Local<v8::Object> holder = info.Holder(); |
2692 TestObject* impl = V8TestObject::toImpl(holder); | 2800 TestObject* impl = V8TestObject::toImpl(holder); |
2693 v8SetReturnValueInt(info, impl->perContextEnabledLongAttribute()); | 2801 v8SetReturnValueInt(info, impl->perContextEnabledLongAttribute()); |
2694 } | 2802 } |
2695 | 2803 |
2696 static void perContextEnabledLongAttributeAttributeGetterCallback(v8::Local<v8::
String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2804 static void perContextEnabledLongAttributeAttributeGetterCallback(v8::Local<v8::
String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2697 { | 2805 { |
2698 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 2806 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
2699 TestObjectV8Internal::perContextEnabledLongAttributeAttributeGetter(info); | 2807 TestObjectV8Internal::perContextEnabledLongAttributeAttributeGetter(info); |
2700 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2808 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2701 } | 2809 } |
2702 | 2810 |
2703 static void perContextEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> v
8Value, const v8::PropertyCallbackInfo<void>& info) | 2811 static void perContextEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> v
8Value, const v8::PropertyCallbackInfo<void>& info) |
2704 { | 2812 { |
2705 v8::Local<v8::Object> holder = info.Holder(); | 2813 v8::Local<v8::Object> holder = info.Holder(); |
2706 ExceptionState exceptionState(ExceptionState::SetterContext, "perContextEnab
ledLongAttribute", "TestObject", holder, info.GetIsolate()); | 2814 ExceptionState exceptionState(ExceptionState::SetterContext, "perContextEnab
ledLongAttribute", "TestObject", holder, info.GetIsolate()); |
2707 TestObject* impl = V8TestObject::toImpl(holder); | 2815 TestObject* impl = V8TestObject::toImpl(holder); |
2708 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 2816 int cppValue = toInt32(v8Value, exceptionState); |
| 2817 if (exceptionState.throwIfNeeded()) |
| 2818 return; |
2709 impl->setPerContextEnabledLongAttribute(cppValue); | 2819 impl->setPerContextEnabledLongAttribute(cppValue); |
2710 } | 2820 } |
2711 | 2821 |
2712 static void perContextEnabledLongAttributeAttributeSetterCallback(v8::Local<v8::
String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& inf
o) | 2822 static void perContextEnabledLongAttributeAttributeSetterCallback(v8::Local<v8::
String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& inf
o) |
2713 { | 2823 { |
2714 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2824 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2715 TestObjectV8Internal::perContextEnabledLongAttributeAttributeSetter(v8Value,
info); | 2825 TestObjectV8Internal::perContextEnabledLongAttributeAttributeSetter(v8Value,
info); |
2716 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2826 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2717 } | 2827 } |
2718 | 2828 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2774 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce
ssPerWorldBindingsLongAttribute"); | 2884 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce
ssPerWorldBindingsLongAttribute"); |
2775 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr
ibuteGetter(info); | 2885 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr
ibuteGetter(info); |
2776 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2886 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2777 } | 2887 } |
2778 | 2888 |
2779 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetter(v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2889 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetter(v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2780 { | 2890 { |
2781 v8::Local<v8::Object> holder = info.Holder(); | 2891 v8::Local<v8::Object> holder = info.Holder(); |
2782 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); | 2892 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); |
2783 TestObject* impl = V8TestObject::toImpl(holder); | 2893 TestObject* impl = V8TestObject::toImpl(holder); |
2784 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 2894 int cppValue = toInt32(v8Value, exceptionState); |
| 2895 if (exceptionState.throwIfNeeded()) |
| 2896 return; |
2785 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); | 2897 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); |
2786 } | 2898 } |
2787 | 2899 |
2788 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal
lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal
lbackInfo<void>& info) | 2900 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal
lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal
lbackInfo<void>& info) |
2789 { | 2901 { |
2790 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2902 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2791 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); | 2903 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); |
2792 V8PerContextData* contextData = scriptState->perContextData(); | 2904 V8PerContextData* contextData = scriptState->perContextData(); |
2793 if (contextData && contextData->activityLogger()) { | 2905 if (contextData && contextData->activityLogger()) { |
2794 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce
ssPerWorldBindingsLongAttribute", v8Value); | 2906 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce
ssPerWorldBindingsLongAttribute", v8Value); |
(...skipping 18 matching lines...) Expand all Loading... |
2813 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce
ssPerWorldBindingsLongAttribute"); | 2925 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce
ssPerWorldBindingsLongAttribute"); |
2814 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr
ibuteGetterForMainWorld(info); | 2926 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr
ibuteGetterForMainWorld(info); |
2815 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2927 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2816 } | 2928 } |
2817 | 2929 |
2818 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterFor
MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in
fo) | 2930 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterFor
MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in
fo) |
2819 { | 2931 { |
2820 v8::Local<v8::Object> holder = info.Holder(); | 2932 v8::Local<v8::Object> holder = info.Holder(); |
2821 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); | 2933 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); |
2822 TestObject* impl = V8TestObject::toImpl(holder); | 2934 TestObject* impl = V8TestObject::toImpl(holder); |
2823 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 2935 int cppValue = toInt32(v8Value, exceptionState); |
| 2936 if (exceptionState.throwIfNeeded()) |
| 2937 return; |
2824 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); | 2938 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); |
2825 } | 2939 } |
2826 | 2940 |
2827 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal
lbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) | 2941 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal
lbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) |
2828 { | 2942 { |
2829 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2943 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2830 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); | 2944 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); |
2831 V8PerContextData* contextData = scriptState->perContextData(); | 2945 V8PerContextData* contextData = scriptState->perContextData(); |
2832 if (contextData && contextData->activityLogger()) { | 2946 if (contextData && contextData->activityLogger()) { |
2833 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce
ssPerWorldBindingsLongAttribute", v8Value); | 2947 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce
ssPerWorldBindingsLongAttribute", v8Value); |
(...skipping 18 matching lines...) Expand all Loading... |
2852 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce
ssForIsolatedWorldsPerWorldBindingsLongAttribute"); | 2966 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce
ssForIsolatedWorldsPerWorldBindingsLongAttribute"); |
2853 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings
LongAttributeAttributeGetter(info); | 2967 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings
LongAttributeAttributeGetter(info); |
2854 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2968 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2855 } | 2969 } |
2856 | 2970 |
2857 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void
>& info) | 2971 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void
>& info) |
2858 { | 2972 { |
2859 v8::Local<v8::Object> holder = info.Holder(); | 2973 v8::Local<v8::Object> holder = info.Holder(); |
2860 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in
fo.GetIsolate()); | 2974 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in
fo.GetIsolate()); |
2861 TestObject* impl = V8TestObject::toImpl(holder); | 2975 TestObject* impl = V8TestObject::toImpl(holder); |
2862 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 2976 int cppValue = toInt32(v8Value, exceptionState); |
| 2977 if (exceptionState.throwIfNeeded()) |
| 2978 return; |
2863 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute
(cppValue); | 2979 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute
(cppValue); |
2864 } | 2980 } |
2865 | 2981 |
2866 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) | 2982 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) |
2867 { | 2983 { |
2868 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2984 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2869 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); | 2985 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); |
2870 V8PerContextData* contextData = scriptState->perContextData(); | 2986 V8PerContextData* contextData = scriptState->perContextData(); |
2871 if (contextData && contextData->activityLogger()) { | 2987 if (contextData && contextData->activityLogger()) { |
2872 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce
ssForIsolatedWorldsPerWorldBindingsLongAttribute", v8Value); | 2988 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce
ssForIsolatedWorldsPerWorldBindingsLongAttribute", v8Value); |
(...skipping 14 matching lines...) Expand all Loading... |
2887 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3003 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
2888 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings
LongAttributeAttributeGetterForMainWorld(info); | 3004 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings
LongAttributeAttributeGetterForMainWorld(info); |
2889 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3005 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2890 } | 3006 } |
2891 | 3007 |
2892 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterForMainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallb
ackInfo<void>& info) | 3008 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterForMainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallb
ackInfo<void>& info) |
2893 { | 3009 { |
2894 v8::Local<v8::Object> holder = info.Holder(); | 3010 v8::Local<v8::Object> holder = info.Holder(); |
2895 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in
fo.GetIsolate()); | 3011 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in
fo.GetIsolate()); |
2896 TestObject* impl = V8TestObject::toImpl(holder); | 3012 TestObject* impl = V8TestObject::toImpl(holder); |
2897 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 3013 int cppValue = toInt32(v8Value, exceptionState); |
| 3014 if (exceptionState.throwIfNeeded()) |
| 3015 return; |
2898 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute
(cppValue); | 3016 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute
(cppValue); |
2899 } | 3017 } |
2900 | 3018 |
2901 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v
8Value, const v8::PropertyCallbackInfo<void>& info) | 3019 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v
8Value, const v8::PropertyCallbackInfo<void>& info) |
2902 { | 3020 { |
2903 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3021 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2904 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings
LongAttributeAttributeSetterForMainWorld(v8Value, info); | 3022 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings
LongAttributeAttributeSetterForMainWorld(v8Value, info); |
2905 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3023 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2906 } | 3024 } |
2907 | 3025 |
(...skipping 13 matching lines...) Expand all Loading... |
2921 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett
erPerWorldBindingsLongAttribute"); | 3039 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett
erPerWorldBindingsLongAttribute"); |
2922 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr
ibuteGetter(info); | 3040 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr
ibuteGetter(info); |
2923 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3041 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2924 } | 3042 } |
2925 | 3043 |
2926 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetter(v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3044 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetter(v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2927 { | 3045 { |
2928 v8::Local<v8::Object> holder = info.Holder(); | 3046 v8::Local<v8::Object> holder = info.Holder(); |
2929 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); | 3047 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); |
2930 TestObject* impl = V8TestObject::toImpl(holder); | 3048 TestObject* impl = V8TestObject::toImpl(holder); |
2931 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 3049 int cppValue = toInt32(v8Value, exceptionState); |
| 3050 if (exceptionState.throwIfNeeded()) |
| 3051 return; |
2932 impl->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue); | 3052 impl->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue); |
2933 } | 3053 } |
2934 | 3054 |
2935 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCal
lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal
lbackInfo<void>& info) | 3055 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCal
lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal
lbackInfo<void>& info) |
2936 { | 3056 { |
2937 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3057 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2938 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr
ibuteSetter(v8Value, info); | 3058 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr
ibuteSetter(v8Value, info); |
2939 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3059 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2940 } | 3060 } |
2941 | 3061 |
(...skipping 13 matching lines...) Expand all Loading... |
2955 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett
erPerWorldBindingsLongAttribute"); | 3075 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett
erPerWorldBindingsLongAttribute"); |
2956 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr
ibuteGetterForMainWorld(info); | 3076 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr
ibuteGetterForMainWorld(info); |
2957 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3077 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2958 } | 3078 } |
2959 | 3079 |
2960 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterFor
MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in
fo) | 3080 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterFor
MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in
fo) |
2961 { | 3081 { |
2962 v8::Local<v8::Object> holder = info.Holder(); | 3082 v8::Local<v8::Object> holder = info.Holder(); |
2963 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); | 3083 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); |
2964 TestObject* impl = V8TestObject::toImpl(holder); | 3084 TestObject* impl = V8TestObject::toImpl(holder); |
2965 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 3085 int cppValue = toInt32(v8Value, exceptionState); |
| 3086 if (exceptionState.throwIfNeeded()) |
| 3087 return; |
2966 impl->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue); | 3088 impl->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue); |
2967 } | 3089 } |
2968 | 3090 |
2969 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCal
lbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) | 3091 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCal
lbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) |
2970 { | 3092 { |
2971 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3093 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2972 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr
ibuteSetterForMainWorld(v8Value, info); | 3094 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr
ibuteSetterForMainWorld(v8Value, info); |
2973 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3095 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2974 } | 3096 } |
2975 | 3097 |
(...skipping 13 matching lines...) Expand all Loading... |
2989 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett
erForIsolatedWorldsPerWorldBindingsLongAttribute"); | 3111 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett
erForIsolatedWorldsPerWorldBindingsLongAttribute"); |
2990 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings
LongAttributeAttributeGetter(info); | 3112 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings
LongAttributeAttributeGetter(info); |
2991 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3113 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2992 } | 3114 } |
2993 | 3115 |
2994 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void
>& info) | 3116 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void
>& info) |
2995 { | 3117 { |
2996 v8::Local<v8::Object> holder = info.Holder(); | 3118 v8::Local<v8::Object> holder = info.Holder(); |
2997 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in
fo.GetIsolate()); | 3119 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in
fo.GetIsolate()); |
2998 TestObject* impl = V8TestObject::toImpl(holder); | 3120 TestObject* impl = V8TestObject::toImpl(holder); |
2999 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 3121 int cppValue = toInt32(v8Value, exceptionState); |
| 3122 if (exceptionState.throwIfNeeded()) |
| 3123 return; |
3000 impl->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute
(cppValue); | 3124 impl->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute
(cppValue); |
3001 } | 3125 } |
3002 | 3126 |
3003 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) | 3127 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) |
3004 { | 3128 { |
3005 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3129 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3006 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings
LongAttributeAttributeSetter(v8Value, info); | 3130 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings
LongAttributeAttributeSetter(v8Value, info); |
3007 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3131 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3008 } | 3132 } |
3009 | 3133 |
3010 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterForMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) | 3134 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterForMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) |
3011 { | 3135 { |
3012 v8::Local<v8::Object> holder = info.Holder(); | 3136 v8::Local<v8::Object> holder = info.Holder(); |
3013 TestObject* impl = V8TestObject::toImpl(holder); | 3137 TestObject* impl = V8TestObject::toImpl(holder); |
3014 v8SetReturnValueInt(info, impl->activityLoggingGetterForIsolatedWorldsPerWor
ldBindingsLongAttribute()); | 3138 v8SetReturnValueInt(info, impl->activityLoggingGetterForIsolatedWorldsPerWor
ldBindingsLongAttribute()); |
3015 } | 3139 } |
3016 | 3140 |
3017 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterCallbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCall
backInfo<v8::Value>& info) | 3141 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterCallbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCall
backInfo<v8::Value>& info) |
3018 { | 3142 { |
3019 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3143 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
3020 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings
LongAttributeAttributeGetterForMainWorld(info); | 3144 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings
LongAttributeAttributeGetterForMainWorld(info); |
3021 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3145 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3022 } | 3146 } |
3023 | 3147 |
3024 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterForMainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallb
ackInfo<void>& info) | 3148 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterForMainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallb
ackInfo<void>& info) |
3025 { | 3149 { |
3026 v8::Local<v8::Object> holder = info.Holder(); | 3150 v8::Local<v8::Object> holder = info.Holder(); |
3027 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in
fo.GetIsolate()); | 3151 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in
fo.GetIsolate()); |
3028 TestObject* impl = V8TestObject::toImpl(holder); | 3152 TestObject* impl = V8TestObject::toImpl(holder); |
3029 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 3153 int cppValue = toInt32(v8Value, exceptionState); |
| 3154 if (exceptionState.throwIfNeeded()) |
| 3155 return; |
3030 impl->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute
(cppValue); | 3156 impl->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute
(cppValue); |
3031 } | 3157 } |
3032 | 3158 |
3033 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v
8Value, const v8::PropertyCallbackInfo<void>& info) | 3159 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v
8Value, const v8::PropertyCallbackInfo<void>& info) |
3034 { | 3160 { |
3035 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3161 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3036 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings
LongAttributeAttributeSetterForMainWorld(v8Value, info); | 3162 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings
LongAttributeAttributeSetterForMainWorld(v8Value, info); |
3037 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3163 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3038 } | 3164 } |
3039 | 3165 |
(...skipping 11 matching lines...) Expand all Loading... |
3051 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3177 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3052 } | 3178 } |
3053 | 3179 |
3054 static void locationAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Prop
ertyCallbackInfo<void>& info) | 3180 static void locationAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Prop
ertyCallbackInfo<void>& info) |
3055 { | 3181 { |
3056 v8::Local<v8::Object> holder = info.Holder(); | 3182 v8::Local<v8::Object> holder = info.Holder(); |
3057 TestObject* proxyImpl = V8TestObject::toImpl(holder); | 3183 TestObject* proxyImpl = V8TestObject::toImpl(holder); |
3058 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->location()); | 3184 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->location()); |
3059 if (!impl) | 3185 if (!impl) |
3060 return; | 3186 return; |
3061 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 3187 V8StringResource<> cppValue = v8Value; |
| 3188 if (!cppValue.prepare()) |
| 3189 return; |
3062 impl->setHref(cppValue); | 3190 impl->setHref(cppValue); |
3063 } | 3191 } |
3064 | 3192 |
3065 static void locationAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8:
:Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3193 static void locationAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8:
:Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3066 { | 3194 { |
3067 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3195 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3068 TestObjectV8Internal::locationAttributeSetter(v8Value, info); | 3196 TestObjectV8Internal::locationAttributeSetter(v8Value, info); |
3069 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3197 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3070 } | 3198 } |
3071 | 3199 |
(...skipping 12 matching lines...) Expand all Loading... |
3084 } | 3212 } |
3085 | 3213 |
3086 static void locationWithExceptionAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) | 3214 static void locationWithExceptionAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) |
3087 { | 3215 { |
3088 v8::Local<v8::Object> holder = info.Holder(); | 3216 v8::Local<v8::Object> holder = info.Holder(); |
3089 ExceptionState exceptionState(ExceptionState::SetterContext, "locationWithEx
ception", "TestObject", holder, info.GetIsolate()); | 3217 ExceptionState exceptionState(ExceptionState::SetterContext, "locationWithEx
ception", "TestObject", holder, info.GetIsolate()); |
3090 TestObject* proxyImpl = V8TestObject::toImpl(holder); | 3218 TestObject* proxyImpl = V8TestObject::toImpl(holder); |
3091 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithExcep
tion()); | 3219 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithExcep
tion()); |
3092 if (!impl) | 3220 if (!impl) |
3093 return; | 3221 return; |
3094 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 3222 V8StringResource<> cppValue = v8Value; |
| 3223 if (!cppValue.prepare()) |
| 3224 return; |
3095 impl->setHrefThrows(cppValue, exceptionState); | 3225 impl->setHrefThrows(cppValue, exceptionState); |
3096 exceptionState.throwIfNeeded(); | 3226 exceptionState.throwIfNeeded(); |
3097 } | 3227 } |
3098 | 3228 |
3099 static void locationWithExceptionAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3229 static void locationWithExceptionAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3100 { | 3230 { |
3101 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3231 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3102 TestObjectV8Internal::locationWithExceptionAttributeSetter(v8Value, info); | 3232 TestObjectV8Internal::locationWithExceptionAttributeSetter(v8Value, info); |
3103 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3233 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3104 } | 3234 } |
(...skipping 12 matching lines...) Expand all Loading... |
3117 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3247 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3118 } | 3248 } |
3119 | 3249 |
3120 static void locationWithCallWithAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::PropertyCallbackInfo<void>& info) | 3250 static void locationWithCallWithAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::PropertyCallbackInfo<void>& info) |
3121 { | 3251 { |
3122 v8::Local<v8::Object> holder = info.Holder(); | 3252 v8::Local<v8::Object> holder = info.Holder(); |
3123 TestObject* proxyImpl = V8TestObject::toImpl(holder); | 3253 TestObject* proxyImpl = V8TestObject::toImpl(holder); |
3124 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithCallW
ith()); | 3254 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithCallW
ith()); |
3125 if (!impl) | 3255 if (!impl) |
3126 return; | 3256 return; |
3127 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 3257 V8StringResource<> cppValue = v8Value; |
| 3258 if (!cppValue.prepare()) |
| 3259 return; |
3128 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate
()); | 3260 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate
()); |
3129 impl->setHrefCallWith(executionContext, callingDOMWindow(info.GetIsolate()),
enteredDOMWindow(info.GetIsolate()), cppValue); | 3261 impl->setHrefCallWith(executionContext, callingDOMWindow(info.GetIsolate()),
enteredDOMWindow(info.GetIsolate()), cppValue); |
3130 } | 3262 } |
3131 | 3263 |
3132 static void locationWithCallWithAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3264 static void locationWithCallWithAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3133 { | 3265 { |
3134 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3266 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3135 TestObjectV8Internal::locationWithCallWithAttributeSetter(v8Value, info); | 3267 TestObjectV8Internal::locationWithCallWithAttributeSetter(v8Value, info); |
3136 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3268 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3137 } | 3269 } |
(...skipping 13 matching lines...) Expand all Loading... |
3151 } | 3283 } |
3152 | 3284 |
3153 static void locationByteStringAttributeSetter(v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) | 3285 static void locationByteStringAttributeSetter(v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) |
3154 { | 3286 { |
3155 v8::Local<v8::Object> holder = info.Holder(); | 3287 v8::Local<v8::Object> holder = info.Holder(); |
3156 ExceptionState exceptionState(ExceptionState::SetterContext, "locationByteSt
ring", "TestObject", holder, info.GetIsolate()); | 3288 ExceptionState exceptionState(ExceptionState::SetterContext, "locationByteSt
ring", "TestObject", holder, info.GetIsolate()); |
3157 TestObject* proxyImpl = V8TestObject::toImpl(holder); | 3289 TestObject* proxyImpl = V8TestObject::toImpl(holder); |
3158 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationByteStrin
g()); | 3290 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationByteStrin
g()); |
3159 if (!impl) | 3291 if (!impl) |
3160 return; | 3292 return; |
3161 TONATIVE_VOID_EXCEPTIONSTATE(V8StringResource<>, cppValue, toByteString(v8Va
lue, exceptionState), exceptionState); | 3293 V8StringResource<> cppValue = toByteString(v8Value, exceptionState); |
| 3294 if (exceptionState.throwIfNeeded()) |
| 3295 return; |
3162 impl->setHrefByteString(cppValue); | 3296 impl->setHrefByteString(cppValue); |
3163 } | 3297 } |
3164 | 3298 |
3165 static void locationByteStringAttributeSetterCallback(v8::Local<v8::String>, v8:
:Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3299 static void locationByteStringAttributeSetterCallback(v8::Local<v8::String>, v8:
:Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3166 { | 3300 { |
3167 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3301 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3168 TestObjectV8Internal::locationByteStringAttributeSetter(v8Value, info); | 3302 TestObjectV8Internal::locationByteStringAttributeSetter(v8Value, info); |
3169 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3303 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3170 } | 3304 } |
3171 | 3305 |
(...skipping 11 matching lines...) Expand all Loading... |
3183 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3317 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3184 } | 3318 } |
3185 | 3319 |
3186 static void locationWithPerWorldBindingsAttributeSetter(v8::Local<v8::Value> v8V
alue, const v8::PropertyCallbackInfo<void>& info) | 3320 static void locationWithPerWorldBindingsAttributeSetter(v8::Local<v8::Value> v8V
alue, const v8::PropertyCallbackInfo<void>& info) |
3187 { | 3321 { |
3188 v8::Local<v8::Object> holder = info.Holder(); | 3322 v8::Local<v8::Object> holder = info.Holder(); |
3189 TestObject* proxyImpl = V8TestObject::toImpl(holder); | 3323 TestObject* proxyImpl = V8TestObject::toImpl(holder); |
3190 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithPerWo
rldBindings()); | 3324 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithPerWo
rldBindings()); |
3191 if (!impl) | 3325 if (!impl) |
3192 return; | 3326 return; |
3193 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 3327 V8StringResource<> cppValue = v8Value; |
| 3328 if (!cppValue.prepare()) |
| 3329 return; |
3194 impl->setHref(cppValue); | 3330 impl->setHref(cppValue); |
3195 } | 3331 } |
3196 | 3332 |
3197 static void locationWithPerWorldBindingsAttributeSetterCallback(v8::Local<v8::St
ring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3333 static void locationWithPerWorldBindingsAttributeSetterCallback(v8::Local<v8::St
ring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3198 { | 3334 { |
3199 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3335 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3200 TestObjectV8Internal::locationWithPerWorldBindingsAttributeSetter(v8Value, i
nfo); | 3336 TestObjectV8Internal::locationWithPerWorldBindingsAttributeSetter(v8Value, i
nfo); |
3201 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3337 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3202 } | 3338 } |
3203 | 3339 |
(...skipping 11 matching lines...) Expand all Loading... |
3215 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3351 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3216 } | 3352 } |
3217 | 3353 |
3218 static void locationWithPerWorldBindingsAttributeSetterForMainWorld(v8::Local<v8
::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3354 static void locationWithPerWorldBindingsAttributeSetterForMainWorld(v8::Local<v8
::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3219 { | 3355 { |
3220 v8::Local<v8::Object> holder = info.Holder(); | 3356 v8::Local<v8::Object> holder = info.Holder(); |
3221 TestObject* proxyImpl = V8TestObject::toImpl(holder); | 3357 TestObject* proxyImpl = V8TestObject::toImpl(holder); |
3222 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithPerWo
rldBindings()); | 3358 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithPerWo
rldBindings()); |
3223 if (!impl) | 3359 if (!impl) |
3224 return; | 3360 return; |
3225 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 3361 V8StringResource<> cppValue = v8Value; |
| 3362 if (!cppValue.prepare()) |
| 3363 return; |
3226 impl->setHref(cppValue); | 3364 impl->setHref(cppValue); |
3227 } | 3365 } |
3228 | 3366 |
3229 static void locationWithPerWorldBindingsAttributeSetterCallbackForMainWorld(v8::
Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<
void>& info) | 3367 static void locationWithPerWorldBindingsAttributeSetterCallbackForMainWorld(v8::
Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<
void>& info) |
3230 { | 3368 { |
3231 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3369 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3232 TestObjectV8Internal::locationWithPerWorldBindingsAttributeSetterForMainWorl
d(v8Value, info); | 3370 TestObjectV8Internal::locationWithPerWorldBindingsAttributeSetterForMainWorl
d(v8Value, info); |
3233 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3371 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3234 } | 3372 } |
3235 | 3373 |
(...skipping 11 matching lines...) Expand all Loading... |
3247 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3385 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3248 } | 3386 } |
3249 | 3387 |
3250 static void locationTypeCheckingInterfaceAttributeSetter(v8::Local<v8::Value> v8
Value, const v8::PropertyCallbackInfo<void>& info) | 3388 static void locationTypeCheckingInterfaceAttributeSetter(v8::Local<v8::Value> v8
Value, const v8::PropertyCallbackInfo<void>& info) |
3251 { | 3389 { |
3252 v8::Local<v8::Object> holder = info.Holder(); | 3390 v8::Local<v8::Object> holder = info.Holder(); |
3253 TestObject* proxyImpl = V8TestObject::toImpl(holder); | 3391 TestObject* proxyImpl = V8TestObject::toImpl(holder); |
3254 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationTypeCheck
ingInterface()); | 3392 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationTypeCheck
ingInterface()); |
3255 if (!impl) | 3393 if (!impl) |
3256 return; | 3394 return; |
3257 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 3395 V8StringResource<> cppValue = v8Value; |
| 3396 if (!cppValue.prepare()) |
| 3397 return; |
3258 impl->setHref(cppValue); | 3398 impl->setHref(cppValue); |
3259 } | 3399 } |
3260 | 3400 |
3261 static void locationTypeCheckingInterfaceAttributeSetterCallback(v8::Local<v8::S
tring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info
) | 3401 static void locationTypeCheckingInterfaceAttributeSetterCallback(v8::Local<v8::S
tring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info
) |
3262 { | 3402 { |
3263 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3403 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3264 TestObjectV8Internal::locationTypeCheckingInterfaceAttributeSetter(v8Value,
info); | 3404 TestObjectV8Internal::locationTypeCheckingInterfaceAttributeSetter(v8Value,
info); |
3265 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3405 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3266 } | 3406 } |
3267 | 3407 |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3359 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3499 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
3360 TestObjectV8Internal::raisesExceptionLongAttributeAttributeGetter(info); | 3500 TestObjectV8Internal::raisesExceptionLongAttributeAttributeGetter(info); |
3361 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3501 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3362 } | 3502 } |
3363 | 3503 |
3364 static void raisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Value> v8V
alue, const v8::PropertyCallbackInfo<void>& info) | 3504 static void raisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Value> v8V
alue, const v8::PropertyCallbackInfo<void>& info) |
3365 { | 3505 { |
3366 v8::Local<v8::Object> holder = info.Holder(); | 3506 v8::Local<v8::Object> holder = info.Holder(); |
3367 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio
nLongAttribute", "TestObject", holder, info.GetIsolate()); | 3507 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio
nLongAttribute", "TestObject", holder, info.GetIsolate()); |
3368 TestObject* impl = V8TestObject::toImpl(holder); | 3508 TestObject* impl = V8TestObject::toImpl(holder); |
3369 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 3509 int cppValue = toInt32(v8Value, exceptionState); |
| 3510 if (exceptionState.throwIfNeeded()) |
| 3511 return; |
3370 impl->setRaisesExceptionLongAttribute(cppValue, exceptionState); | 3512 impl->setRaisesExceptionLongAttribute(cppValue, exceptionState); |
3371 exceptionState.throwIfNeeded(); | 3513 exceptionState.throwIfNeeded(); |
3372 } | 3514 } |
3373 | 3515 |
3374 static void raisesExceptionLongAttributeAttributeSetterCallback(v8::Local<v8::St
ring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3516 static void raisesExceptionLongAttributeAttributeSetterCallback(v8::Local<v8::St
ring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3375 { | 3517 { |
3376 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3518 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3377 TestObjectV8Internal::raisesExceptionLongAttributeAttributeSetter(v8Value, i
nfo); | 3519 TestObjectV8Internal::raisesExceptionLongAttributeAttributeSetter(v8Value, i
nfo); |
3378 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3520 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3379 } | 3521 } |
(...skipping 14 matching lines...) Expand all Loading... |
3394 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3536 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
3395 TestObjectV8Internal::raisesExceptionGetterLongAttributeAttributeGetter(info
); | 3537 TestObjectV8Internal::raisesExceptionGetterLongAttributeAttributeGetter(info
); |
3396 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3538 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3397 } | 3539 } |
3398 | 3540 |
3399 static void raisesExceptionGetterLongAttributeAttributeSetter(v8::Local<v8::Valu
e> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3541 static void raisesExceptionGetterLongAttributeAttributeSetter(v8::Local<v8::Valu
e> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3400 { | 3542 { |
3401 v8::Local<v8::Object> holder = info.Holder(); | 3543 v8::Local<v8::Object> holder = info.Holder(); |
3402 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio
nGetterLongAttribute", "TestObject", holder, info.GetIsolate()); | 3544 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio
nGetterLongAttribute", "TestObject", holder, info.GetIsolate()); |
3403 TestObject* impl = V8TestObject::toImpl(holder); | 3545 TestObject* impl = V8TestObject::toImpl(holder); |
3404 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 3546 int cppValue = toInt32(v8Value, exceptionState); |
| 3547 if (exceptionState.throwIfNeeded()) |
| 3548 return; |
3405 impl->setRaisesExceptionGetterLongAttribute(cppValue); | 3549 impl->setRaisesExceptionGetterLongAttribute(cppValue); |
3406 } | 3550 } |
3407 | 3551 |
3408 static void raisesExceptionGetterLongAttributeAttributeSetterCallback(v8::Local<
v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>&
info) | 3552 static void raisesExceptionGetterLongAttributeAttributeSetterCallback(v8::Local<
v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>&
info) |
3409 { | 3553 { |
3410 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3554 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3411 TestObjectV8Internal::raisesExceptionGetterLongAttributeAttributeSetter(v8Va
lue, info); | 3555 TestObjectV8Internal::raisesExceptionGetterLongAttributeAttributeSetter(v8Va
lue, info); |
3412 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3556 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3413 } | 3557 } |
3414 | 3558 |
3415 static void setterRaisesExceptionLongAttributeAttributeGetter(const v8::Property
CallbackInfo<v8::Value>& info) | 3559 static void setterRaisesExceptionLongAttributeAttributeGetter(const v8::Property
CallbackInfo<v8::Value>& info) |
3416 { | 3560 { |
3417 v8::Local<v8::Object> holder = info.Holder(); | 3561 v8::Local<v8::Object> holder = info.Holder(); |
3418 TestObject* impl = V8TestObject::toImpl(holder); | 3562 TestObject* impl = V8TestObject::toImpl(holder); |
3419 v8SetReturnValueInt(info, impl->setterRaisesExceptionLongAttribute()); | 3563 v8SetReturnValueInt(info, impl->setterRaisesExceptionLongAttribute()); |
3420 } | 3564 } |
3421 | 3565 |
3422 static void setterRaisesExceptionLongAttributeAttributeGetterCallback(v8::Local<
v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3566 static void setterRaisesExceptionLongAttributeAttributeGetterCallback(v8::Local<
v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
3423 { | 3567 { |
3424 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3568 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
3425 TestObjectV8Internal::setterRaisesExceptionLongAttributeAttributeGetter(info
); | 3569 TestObjectV8Internal::setterRaisesExceptionLongAttributeAttributeGetter(info
); |
3426 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3570 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3427 } | 3571 } |
3428 | 3572 |
3429 static void setterRaisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Valu
e> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3573 static void setterRaisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Valu
e> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3430 { | 3574 { |
3431 v8::Local<v8::Object> holder = info.Holder(); | 3575 v8::Local<v8::Object> holder = info.Holder(); |
3432 ExceptionState exceptionState(ExceptionState::SetterContext, "setterRaisesEx
ceptionLongAttribute", "TestObject", holder, info.GetIsolate()); | 3576 ExceptionState exceptionState(ExceptionState::SetterContext, "setterRaisesEx
ceptionLongAttribute", "TestObject", holder, info.GetIsolate()); |
3433 TestObject* impl = V8TestObject::toImpl(holder); | 3577 TestObject* impl = V8TestObject::toImpl(holder); |
3434 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 3578 int cppValue = toInt32(v8Value, exceptionState); |
| 3579 if (exceptionState.throwIfNeeded()) |
| 3580 return; |
3435 impl->setSetterRaisesExceptionLongAttribute(cppValue, exceptionState); | 3581 impl->setSetterRaisesExceptionLongAttribute(cppValue, exceptionState); |
3436 exceptionState.throwIfNeeded(); | 3582 exceptionState.throwIfNeeded(); |
3437 } | 3583 } |
3438 | 3584 |
3439 static void setterRaisesExceptionLongAttributeAttributeSetterCallback(v8::Local<
v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>&
info) | 3585 static void setterRaisesExceptionLongAttributeAttributeSetterCallback(v8::Local<
v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>&
info) |
3440 { | 3586 { |
3441 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3587 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3442 TestObjectV8Internal::setterRaisesExceptionLongAttributeAttributeSetter(v8Va
lue, info); | 3588 TestObjectV8Internal::setterRaisesExceptionLongAttributeAttributeSetter(v8Va
lue, info); |
3443 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3589 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3444 } | 3590 } |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3628 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3774 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
3629 TestObjectV8Internal::reflectLongAttributeAttributeGetter(info); | 3775 TestObjectV8Internal::reflectLongAttributeAttributeGetter(info); |
3630 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3776 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3631 } | 3777 } |
3632 | 3778 |
3633 static void reflectLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::PropertyCallbackInfo<void>& info) | 3779 static void reflectLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::PropertyCallbackInfo<void>& info) |
3634 { | 3780 { |
3635 v8::Local<v8::Object> holder = info.Holder(); | 3781 v8::Local<v8::Object> holder = info.Holder(); |
3636 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectLongAtt
ribute", "TestObject", holder, info.GetIsolate()); | 3782 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectLongAtt
ribute", "TestObject", holder, info.GetIsolate()); |
3637 TestObject* impl = V8TestObject::toImpl(holder); | 3783 TestObject* impl = V8TestObject::toImpl(holder); |
3638 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 3784 int cppValue = toInt32(v8Value, exceptionState); |
| 3785 if (exceptionState.throwIfNeeded()) |
| 3786 return; |
3639 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 3787 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
3640 impl->setIntegralAttribute(HTMLNames::reflectlongattributeAttr, cppValue); | 3788 impl->setIntegralAttribute(HTMLNames::reflectlongattributeAttr, cppValue); |
3641 } | 3789 } |
3642 | 3790 |
3643 static void reflectLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3791 static void reflectLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3644 { | 3792 { |
3645 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3793 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3646 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 3794 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
3647 TestObjectV8Internal::reflectLongAttributeAttributeSetter(v8Value, info); | 3795 TestObjectV8Internal::reflectLongAttributeAttributeSetter(v8Value, info); |
3648 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3796 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
(...skipping 11 matching lines...) Expand all Loading... |
3660 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3808 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
3661 TestObjectV8Internal::reflectUnsignedShortAttributeAttributeGetter(info); | 3809 TestObjectV8Internal::reflectUnsignedShortAttributeAttributeGetter(info); |
3662 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3810 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3663 } | 3811 } |
3664 | 3812 |
3665 static void reflectUnsignedShortAttributeAttributeSetter(v8::Local<v8::Value> v8
Value, const v8::PropertyCallbackInfo<void>& info) | 3813 static void reflectUnsignedShortAttributeAttributeSetter(v8::Local<v8::Value> v8
Value, const v8::PropertyCallbackInfo<void>& info) |
3666 { | 3814 { |
3667 v8::Local<v8::Object> holder = info.Holder(); | 3815 v8::Local<v8::Object> holder = info.Holder(); |
3668 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne
dShortAttribute", "TestObject", holder, info.GetIsolate()); | 3816 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne
dShortAttribute", "TestObject", holder, info.GetIsolate()); |
3669 TestObject* impl = V8TestObject::toImpl(holder); | 3817 TestObject* impl = V8TestObject::toImpl(holder); |
3670 TONATIVE_VOID_EXCEPTIONSTATE(unsigned, cppValue, toUInt16(v8Value, exception
State), exceptionState); | 3818 unsigned cppValue = toUInt16(v8Value, exceptionState); |
| 3819 if (exceptionState.throwIfNeeded()) |
| 3820 return; |
3671 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 3821 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
3672 impl->setAttribute(HTMLNames::reflectunsignedshortattributeAttr, cppValue); | 3822 impl->setAttribute(HTMLNames::reflectunsignedshortattributeAttr, cppValue); |
3673 } | 3823 } |
3674 | 3824 |
3675 static void reflectUnsignedShortAttributeAttributeSetterCallback(v8::Local<v8::S
tring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info
) | 3825 static void reflectUnsignedShortAttributeAttributeSetterCallback(v8::Local<v8::S
tring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info
) |
3676 { | 3826 { |
3677 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3827 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3678 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 3828 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
3679 TestObjectV8Internal::reflectUnsignedShortAttributeAttributeSetter(v8Value,
info); | 3829 TestObjectV8Internal::reflectUnsignedShortAttributeAttributeSetter(v8Value,
info); |
3680 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3830 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
(...skipping 11 matching lines...) Expand all Loading... |
3692 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3842 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
3693 TestObjectV8Internal::reflectUnsignedLongAttributeAttributeGetter(info); | 3843 TestObjectV8Internal::reflectUnsignedLongAttributeAttributeGetter(info); |
3694 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3844 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3695 } | 3845 } |
3696 | 3846 |
3697 static void reflectUnsignedLongAttributeAttributeSetter(v8::Local<v8::Value> v8V
alue, const v8::PropertyCallbackInfo<void>& info) | 3847 static void reflectUnsignedLongAttributeAttributeSetter(v8::Local<v8::Value> v8V
alue, const v8::PropertyCallbackInfo<void>& info) |
3698 { | 3848 { |
3699 v8::Local<v8::Object> holder = info.Holder(); | 3849 v8::Local<v8::Object> holder = info.Holder(); |
3700 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne
dLongAttribute", "TestObject", holder, info.GetIsolate()); | 3850 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne
dLongAttribute", "TestObject", holder, info.GetIsolate()); |
3701 TestObject* impl = V8TestObject::toImpl(holder); | 3851 TestObject* impl = V8TestObject::toImpl(holder); |
3702 TONATIVE_VOID_EXCEPTIONSTATE(unsigned, cppValue, toUInt32(v8Value, exception
State), exceptionState); | 3852 unsigned cppValue = toUInt32(v8Value, exceptionState); |
| 3853 if (exceptionState.throwIfNeeded()) |
| 3854 return; |
3703 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 3855 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
3704 impl->setUnsignedIntegralAttribute(HTMLNames::reflectunsignedlongattributeAt
tr, cppValue); | 3856 impl->setUnsignedIntegralAttribute(HTMLNames::reflectunsignedlongattributeAt
tr, cppValue); |
3705 } | 3857 } |
3706 | 3858 |
3707 static void reflectUnsignedLongAttributeAttributeSetterCallback(v8::Local<v8::St
ring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3859 static void reflectUnsignedLongAttributeAttributeSetterCallback(v8::Local<v8::St
ring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3708 { | 3860 { |
3709 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3861 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3710 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 3862 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
3711 TestObjectV8Internal::reflectUnsignedLongAttributeAttributeSetter(v8Value, i
nfo); | 3863 TestObjectV8Internal::reflectUnsignedLongAttributeAttributeSetter(v8Value, i
nfo); |
3712 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3864 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
(...skipping 10 matching lines...) Expand all Loading... |
3723 { | 3875 { |
3724 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3876 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
3725 TestObjectV8Internal::idAttributeGetter(info); | 3877 TestObjectV8Internal::idAttributeGetter(info); |
3726 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3878 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3727 } | 3879 } |
3728 | 3880 |
3729 static void idAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCa
llbackInfo<void>& info) | 3881 static void idAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCa
llbackInfo<void>& info) |
3730 { | 3882 { |
3731 v8::Local<v8::Object> holder = info.Holder(); | 3883 v8::Local<v8::Object> holder = info.Holder(); |
3732 TestObject* impl = V8TestObject::toImpl(holder); | 3884 TestObject* impl = V8TestObject::toImpl(holder); |
3733 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 3885 V8StringResource<> cppValue = v8Value; |
| 3886 if (!cppValue.prepare()) |
| 3887 return; |
3734 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 3888 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
3735 impl->setAttribute(HTMLNames::idAttr, cppValue); | 3889 impl->setAttribute(HTMLNames::idAttr, cppValue); |
3736 } | 3890 } |
3737 | 3891 |
3738 static void idAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value
> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3892 static void idAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value
> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3739 { | 3893 { |
3740 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3894 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3741 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 3895 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
3742 TestObjectV8Internal::idAttributeSetter(v8Value, info); | 3896 TestObjectV8Internal::idAttributeSetter(v8Value, info); |
3743 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3897 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
(...skipping 10 matching lines...) Expand all Loading... |
3754 { | 3908 { |
3755 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3909 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
3756 TestObjectV8Internal::nameAttributeGetter(info); | 3910 TestObjectV8Internal::nameAttributeGetter(info); |
3757 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3911 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3758 } | 3912 } |
3759 | 3913 |
3760 static void nameAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Property
CallbackInfo<void>& info) | 3914 static void nameAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Property
CallbackInfo<void>& info) |
3761 { | 3915 { |
3762 v8::Local<v8::Object> holder = info.Holder(); | 3916 v8::Local<v8::Object> holder = info.Holder(); |
3763 TestObject* impl = V8TestObject::toImpl(holder); | 3917 TestObject* impl = V8TestObject::toImpl(holder); |
3764 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 3918 V8StringResource<> cppValue = v8Value; |
| 3919 if (!cppValue.prepare()) |
| 3920 return; |
3765 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 3921 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
3766 impl->setAttribute(HTMLNames::nameAttr, cppValue); | 3922 impl->setAttribute(HTMLNames::nameAttr, cppValue); |
3767 } | 3923 } |
3768 | 3924 |
3769 static void nameAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Val
ue> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3925 static void nameAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Val
ue> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3770 { | 3926 { |
3771 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3927 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3772 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 3928 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
3773 TestObjectV8Internal::nameAttributeSetter(v8Value, info); | 3929 TestObjectV8Internal::nameAttributeSetter(v8Value, info); |
3774 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3930 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
(...skipping 10 matching lines...) Expand all Loading... |
3785 { | 3941 { |
3786 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3942 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
3787 TestObjectV8Internal::classAttributeGetter(info); | 3943 TestObjectV8Internal::classAttributeGetter(info); |
3788 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3944 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3789 } | 3945 } |
3790 | 3946 |
3791 static void classAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Propert
yCallbackInfo<void>& info) | 3947 static void classAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Propert
yCallbackInfo<void>& info) |
3792 { | 3948 { |
3793 v8::Local<v8::Object> holder = info.Holder(); | 3949 v8::Local<v8::Object> holder = info.Holder(); |
3794 TestObject* impl = V8TestObject::toImpl(holder); | 3950 TestObject* impl = V8TestObject::toImpl(holder); |
3795 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 3951 V8StringResource<> cppValue = v8Value; |
| 3952 if (!cppValue.prepare()) |
| 3953 return; |
3796 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 3954 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
3797 impl->setAttribute(HTMLNames::classAttr, cppValue); | 3955 impl->setAttribute(HTMLNames::classAttr, cppValue); |
3798 } | 3956 } |
3799 | 3957 |
3800 static void classAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Va
lue> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3958 static void classAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Va
lue> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3801 { | 3959 { |
3802 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3960 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3803 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 3961 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
3804 TestObjectV8Internal::classAttributeSetter(v8Value, info); | 3962 TestObjectV8Internal::classAttributeSetter(v8Value, info); |
3805 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3963 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
(...skipping 10 matching lines...) Expand all Loading... |
3816 { | 3974 { |
3817 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3975 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
3818 TestObjectV8Internal::reflectedIdAttributeGetter(info); | 3976 TestObjectV8Internal::reflectedIdAttributeGetter(info); |
3819 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3977 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3820 } | 3978 } |
3821 | 3979 |
3822 static void reflectedIdAttributeSetter(v8::Local<v8::Value> v8Value, const v8::P
ropertyCallbackInfo<void>& info) | 3980 static void reflectedIdAttributeSetter(v8::Local<v8::Value> v8Value, const v8::P
ropertyCallbackInfo<void>& info) |
3823 { | 3981 { |
3824 v8::Local<v8::Object> holder = info.Holder(); | 3982 v8::Local<v8::Object> holder = info.Holder(); |
3825 TestObject* impl = V8TestObject::toImpl(holder); | 3983 TestObject* impl = V8TestObject::toImpl(holder); |
3826 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 3984 V8StringResource<> cppValue = v8Value; |
| 3985 if (!cppValue.prepare()) |
| 3986 return; |
3827 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 3987 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
3828 impl->setAttribute(HTMLNames::idAttr, cppValue); | 3988 impl->setAttribute(HTMLNames::idAttr, cppValue); |
3829 } | 3989 } |
3830 | 3990 |
3831 static void reflectedIdAttributeSetterCallback(v8::Local<v8::String>, v8::Local<
v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3991 static void reflectedIdAttributeSetterCallback(v8::Local<v8::String>, v8::Local<
v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3832 { | 3992 { |
3833 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3993 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3834 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 3994 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
3835 TestObjectV8Internal::reflectedIdAttributeSetter(v8Value, info); | 3995 TestObjectV8Internal::reflectedIdAttributeSetter(v8Value, info); |
3836 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3996 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
(...skipping 10 matching lines...) Expand all Loading... |
3847 { | 4007 { |
3848 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4008 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
3849 TestObjectV8Internal::reflectedNameAttributeGetter(info); | 4009 TestObjectV8Internal::reflectedNameAttributeGetter(info); |
3850 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4010 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3851 } | 4011 } |
3852 | 4012 |
3853 static void reflectedNameAttributeSetter(v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) | 4013 static void reflectedNameAttributeSetter(v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) |
3854 { | 4014 { |
3855 v8::Local<v8::Object> holder = info.Holder(); | 4015 v8::Local<v8::Object> holder = info.Holder(); |
3856 TestObject* impl = V8TestObject::toImpl(holder); | 4016 TestObject* impl = V8TestObject::toImpl(holder); |
3857 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 4017 V8StringResource<> cppValue = v8Value; |
| 4018 if (!cppValue.prepare()) |
| 4019 return; |
3858 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4020 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
3859 impl->setAttribute(HTMLNames::nameAttr, cppValue); | 4021 impl->setAttribute(HTMLNames::nameAttr, cppValue); |
3860 } | 4022 } |
3861 | 4023 |
3862 static void reflectedNameAttributeSetterCallback(v8::Local<v8::String>, v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4024 static void reflectedNameAttributeSetterCallback(v8::Local<v8::String>, v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3863 { | 4025 { |
3864 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4026 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3865 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4027 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
3866 TestObjectV8Internal::reflectedNameAttributeSetter(v8Value, info); | 4028 TestObjectV8Internal::reflectedNameAttributeSetter(v8Value, info); |
3867 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4029 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
(...skipping 10 matching lines...) Expand all Loading... |
3878 { | 4040 { |
3879 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4041 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
3880 TestObjectV8Internal::reflectedClassAttributeGetter(info); | 4042 TestObjectV8Internal::reflectedClassAttributeGetter(info); |
3881 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4043 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3882 } | 4044 } |
3883 | 4045 |
3884 static void reflectedClassAttributeSetter(v8::Local<v8::Value> v8Value, const v8
::PropertyCallbackInfo<void>& info) | 4046 static void reflectedClassAttributeSetter(v8::Local<v8::Value> v8Value, const v8
::PropertyCallbackInfo<void>& info) |
3885 { | 4047 { |
3886 v8::Local<v8::Object> holder = info.Holder(); | 4048 v8::Local<v8::Object> holder = info.Holder(); |
3887 TestObject* impl = V8TestObject::toImpl(holder); | 4049 TestObject* impl = V8TestObject::toImpl(holder); |
3888 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 4050 V8StringResource<> cppValue = v8Value; |
| 4051 if (!cppValue.prepare()) |
| 4052 return; |
3889 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4053 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
3890 impl->setAttribute(HTMLNames::classAttr, cppValue); | 4054 impl->setAttribute(HTMLNames::classAttr, cppValue); |
3891 } | 4055 } |
3892 | 4056 |
3893 static void reflectedClassAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4057 static void reflectedClassAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3894 { | 4058 { |
3895 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4059 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3896 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4060 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
3897 TestObjectV8Internal::reflectedClassAttributeSetter(v8Value, info); | 4061 TestObjectV8Internal::reflectedClassAttributeSetter(v8Value, info); |
3898 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4062 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
(...skipping 18 matching lines...) Expand all Loading... |
3917 { | 4081 { |
3918 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4082 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
3919 TestObjectV8Internal::limitedToOnlyOneAttributeAttributeGetter(info); | 4083 TestObjectV8Internal::limitedToOnlyOneAttributeAttributeGetter(info); |
3920 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4084 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3921 } | 4085 } |
3922 | 4086 |
3923 static void limitedToOnlyOneAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::PropertyCallbackInfo<void>& info) | 4087 static void limitedToOnlyOneAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::PropertyCallbackInfo<void>& info) |
3924 { | 4088 { |
3925 v8::Local<v8::Object> holder = info.Holder(); | 4089 v8::Local<v8::Object> holder = info.Holder(); |
3926 TestObject* impl = V8TestObject::toImpl(holder); | 4090 TestObject* impl = V8TestObject::toImpl(holder); |
3927 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 4091 V8StringResource<> cppValue = v8Value; |
| 4092 if (!cppValue.prepare()) |
| 4093 return; |
3928 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4094 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
3929 impl->setAttribute(HTMLNames::limitedtoonlyoneattributeAttr, cppValue); | 4095 impl->setAttribute(HTMLNames::limitedtoonlyoneattributeAttr, cppValue); |
3930 } | 4096 } |
3931 | 4097 |
3932 static void limitedToOnlyOneAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4098 static void limitedToOnlyOneAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3933 { | 4099 { |
3934 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4100 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3935 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4101 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
3936 TestObjectV8Internal::limitedToOnlyOneAttributeAttributeSetter(v8Value, info
); | 4102 TestObjectV8Internal::limitedToOnlyOneAttributeAttributeSetter(v8Value, info
); |
3937 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4103 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
(...skipping 22 matching lines...) Expand all Loading... |
3960 { | 4126 { |
3961 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4127 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
3962 TestObjectV8Internal::limitedToOnlyAttributeAttributeGetter(info); | 4128 TestObjectV8Internal::limitedToOnlyAttributeAttributeGetter(info); |
3963 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4129 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3964 } | 4130 } |
3965 | 4131 |
3966 static void limitedToOnlyAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) | 4132 static void limitedToOnlyAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) |
3967 { | 4133 { |
3968 v8::Local<v8::Object> holder = info.Holder(); | 4134 v8::Local<v8::Object> holder = info.Holder(); |
3969 TestObject* impl = V8TestObject::toImpl(holder); | 4135 TestObject* impl = V8TestObject::toImpl(holder); |
3970 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 4136 V8StringResource<> cppValue = v8Value; |
| 4137 if (!cppValue.prepare()) |
| 4138 return; |
3971 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4139 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
3972 impl->setAttribute(HTMLNames::limitedtoonlyattributeAttr, cppValue); | 4140 impl->setAttribute(HTMLNames::limitedtoonlyattributeAttr, cppValue); |
3973 } | 4141 } |
3974 | 4142 |
3975 static void limitedToOnlyAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4143 static void limitedToOnlyAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3976 { | 4144 { |
3977 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4145 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3978 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4146 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
3979 TestObjectV8Internal::limitedToOnlyAttributeAttributeSetter(v8Value, info); | 4147 TestObjectV8Internal::limitedToOnlyAttributeAttributeSetter(v8Value, info); |
3980 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4148 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
(...skipping 20 matching lines...) Expand all Loading... |
4001 { | 4169 { |
4002 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4170 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4003 TestObjectV8Internal::limitedToOnlyOtherAttributeAttributeGetter(info); | 4171 TestObjectV8Internal::limitedToOnlyOtherAttributeAttributeGetter(info); |
4004 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4172 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4005 } | 4173 } |
4006 | 4174 |
4007 static void limitedToOnlyOtherAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) | 4175 static void limitedToOnlyOtherAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) |
4008 { | 4176 { |
4009 v8::Local<v8::Object> holder = info.Holder(); | 4177 v8::Local<v8::Object> holder = info.Holder(); |
4010 TestObject* impl = V8TestObject::toImpl(holder); | 4178 TestObject* impl = V8TestObject::toImpl(holder); |
4011 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 4179 V8StringResource<> cppValue = v8Value; |
| 4180 if (!cppValue.prepare()) |
| 4181 return; |
4012 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4182 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
4013 impl->setAttribute(HTMLNames::otherAttr, cppValue); | 4183 impl->setAttribute(HTMLNames::otherAttr, cppValue); |
4014 } | 4184 } |
4015 | 4185 |
4016 static void limitedToOnlyOtherAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4186 static void limitedToOnlyOtherAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4017 { | 4187 { |
4018 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4188 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4019 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4189 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
4020 TestObjectV8Internal::limitedToOnlyOtherAttributeAttributeSetter(v8Value, in
fo); | 4190 TestObjectV8Internal::limitedToOnlyOtherAttributeAttributeSetter(v8Value, in
fo); |
4021 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4191 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
(...skipping 20 matching lines...) Expand all Loading... |
4042 { | 4212 { |
4043 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4213 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4044 TestObjectV8Internal::limitedWithMissingDefaultAttributeAttributeGetter(info
); | 4214 TestObjectV8Internal::limitedWithMissingDefaultAttributeAttributeGetter(info
); |
4045 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4215 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4046 } | 4216 } |
4047 | 4217 |
4048 static void limitedWithMissingDefaultAttributeAttributeSetter(v8::Local<v8::Valu
e> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4218 static void limitedWithMissingDefaultAttributeAttributeSetter(v8::Local<v8::Valu
e> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4049 { | 4219 { |
4050 v8::Local<v8::Object> holder = info.Holder(); | 4220 v8::Local<v8::Object> holder = info.Holder(); |
4051 TestObject* impl = V8TestObject::toImpl(holder); | 4221 TestObject* impl = V8TestObject::toImpl(holder); |
4052 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 4222 V8StringResource<> cppValue = v8Value; |
| 4223 if (!cppValue.prepare()) |
| 4224 return; |
4053 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4225 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
4054 impl->setAttribute(HTMLNames::limitedwithmissingdefaultattributeAttr, cppVal
ue); | 4226 impl->setAttribute(HTMLNames::limitedwithmissingdefaultattributeAttr, cppVal
ue); |
4055 } | 4227 } |
4056 | 4228 |
4057 static void limitedWithMissingDefaultAttributeAttributeSetterCallback(v8::Local<
v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>&
info) | 4229 static void limitedWithMissingDefaultAttributeAttributeSetterCallback(v8::Local<
v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>&
info) |
4058 { | 4230 { |
4059 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4231 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4060 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4232 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
4061 TestObjectV8Internal::limitedWithMissingDefaultAttributeAttributeSetter(v8Va
lue, info); | 4233 TestObjectV8Internal::limitedWithMissingDefaultAttributeAttributeSetter(v8Va
lue, info); |
4062 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4234 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
(...skipping 22 matching lines...) Expand all Loading... |
4085 { | 4257 { |
4086 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4258 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4087 TestObjectV8Internal::limitedWithInvalidMissingDefaultAttributeAttributeGett
er(info); | 4259 TestObjectV8Internal::limitedWithInvalidMissingDefaultAttributeAttributeGett
er(info); |
4088 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4260 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4089 } | 4261 } |
4090 | 4262 |
4091 static void limitedWithInvalidMissingDefaultAttributeAttributeSetter(v8::Local<v
8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4263 static void limitedWithInvalidMissingDefaultAttributeAttributeSetter(v8::Local<v
8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4092 { | 4264 { |
4093 v8::Local<v8::Object> holder = info.Holder(); | 4265 v8::Local<v8::Object> holder = info.Holder(); |
4094 TestObject* impl = V8TestObject::toImpl(holder); | 4266 TestObject* impl = V8TestObject::toImpl(holder); |
4095 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 4267 V8StringResource<> cppValue = v8Value; |
| 4268 if (!cppValue.prepare()) |
| 4269 return; |
4096 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4270 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
4097 impl->setAttribute(HTMLNames::limitedwithinvalidmissingdefaultattributeAttr,
cppValue); | 4271 impl->setAttribute(HTMLNames::limitedwithinvalidmissingdefaultattributeAttr,
cppValue); |
4098 } | 4272 } |
4099 | 4273 |
4100 static void limitedWithInvalidMissingDefaultAttributeAttributeSetterCallback(v8:
:Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo
<void>& info) | 4274 static void limitedWithInvalidMissingDefaultAttributeAttributeSetterCallback(v8:
:Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo
<void>& info) |
4101 { | 4275 { |
4102 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4276 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4103 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4277 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
4104 TestObjectV8Internal::limitedWithInvalidMissingDefaultAttributeAttributeSett
er(v8Value, info); | 4278 TestObjectV8Internal::limitedWithInvalidMissingDefaultAttributeAttributeSett
er(v8Value, info); |
4105 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4279 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"); | 4363 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4190 } | 4364 } |
4191 | 4365 |
4192 static void locationReplaceableAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::PropertyCallbackInfo<void>& info) | 4366 static void locationReplaceableAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::PropertyCallbackInfo<void>& info) |
4193 { | 4367 { |
4194 v8::Local<v8::Object> holder = info.Holder(); | 4368 v8::Local<v8::Object> holder = info.Holder(); |
4195 TestObject* proxyImpl = V8TestObject::toImpl(holder); | 4369 TestObject* proxyImpl = V8TestObject::toImpl(holder); |
4196 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationReplaceab
le()); | 4370 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationReplaceab
le()); |
4197 if (!impl) | 4371 if (!impl) |
4198 return; | 4372 return; |
4199 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 4373 V8StringResource<> cppValue = v8Value; |
| 4374 if (!cppValue.prepare()) |
| 4375 return; |
4200 impl->setHref(cppValue); | 4376 impl->setHref(cppValue); |
4201 } | 4377 } |
4202 | 4378 |
4203 static void locationReplaceableAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4379 static void locationReplaceableAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4204 { | 4380 { |
4205 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4381 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4206 TestObjectV8Internal::locationReplaceableAttributeSetter(v8Value, info); | 4382 TestObjectV8Internal::locationReplaceableAttributeSetter(v8Value, info); |
4207 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4383 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4208 } | 4384 } |
4209 | 4385 |
4210 static void runtimeEnabledLongAttributeAttributeGetter(const v8::PropertyCallbac
kInfo<v8::Value>& info) | 4386 static void runtimeEnabledLongAttributeAttributeGetter(const v8::PropertyCallbac
kInfo<v8::Value>& info) |
4211 { | 4387 { |
4212 v8::Local<v8::Object> holder = info.Holder(); | 4388 v8::Local<v8::Object> holder = info.Holder(); |
4213 TestObject* impl = V8TestObject::toImpl(holder); | 4389 TestObject* impl = V8TestObject::toImpl(holder); |
4214 v8SetReturnValueInt(info, impl->runtimeEnabledLongAttribute()); | 4390 v8SetReturnValueInt(info, impl->runtimeEnabledLongAttribute()); |
4215 } | 4391 } |
4216 | 4392 |
4217 static void runtimeEnabledLongAttributeAttributeGetterCallback(v8::Local<v8::Str
ing>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4393 static void runtimeEnabledLongAttributeAttributeGetterCallback(v8::Local<v8::Str
ing>, const v8::PropertyCallbackInfo<v8::Value>& info) |
4218 { | 4394 { |
4219 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4395 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4220 TestObjectV8Internal::runtimeEnabledLongAttributeAttributeGetter(info); | 4396 TestObjectV8Internal::runtimeEnabledLongAttributeAttributeGetter(info); |
4221 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4397 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4222 } | 4398 } |
4223 | 4399 |
4224 static void runtimeEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) | 4400 static void runtimeEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) |
4225 { | 4401 { |
4226 v8::Local<v8::Object> holder = info.Holder(); | 4402 v8::Local<v8::Object> holder = info.Holder(); |
4227 ExceptionState exceptionState(ExceptionState::SetterContext, "runtimeEnabled
LongAttribute", "TestObject", holder, info.GetIsolate()); | 4403 ExceptionState exceptionState(ExceptionState::SetterContext, "runtimeEnabled
LongAttribute", "TestObject", holder, info.GetIsolate()); |
4228 TestObject* impl = V8TestObject::toImpl(holder); | 4404 TestObject* impl = V8TestObject::toImpl(holder); |
4229 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 4405 int cppValue = toInt32(v8Value, exceptionState); |
| 4406 if (exceptionState.throwIfNeeded()) |
| 4407 return; |
4230 impl->setRuntimeEnabledLongAttribute(cppValue); | 4408 impl->setRuntimeEnabledLongAttribute(cppValue); |
4231 } | 4409 } |
4232 | 4410 |
4233 static void runtimeEnabledLongAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4411 static void runtimeEnabledLongAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4234 { | 4412 { |
4235 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4413 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4236 TestObjectV8Internal::runtimeEnabledLongAttributeAttributeSetter(v8Value, in
fo); | 4414 TestObjectV8Internal::runtimeEnabledLongAttributeAttributeSetter(v8Value, in
fo); |
4237 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4415 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4238 } | 4416 } |
4239 | 4417 |
4240 static void perContextEnabledRuntimeEnabledLongAttributeAttributeGetter(const v8
::PropertyCallbackInfo<v8::Value>& info) | 4418 static void perContextEnabledRuntimeEnabledLongAttributeAttributeGetter(const v8
::PropertyCallbackInfo<v8::Value>& info) |
4241 { | 4419 { |
4242 v8::Local<v8::Object> holder = info.Holder(); | 4420 v8::Local<v8::Object> holder = info.Holder(); |
4243 TestObject* impl = V8TestObject::toImpl(holder); | 4421 TestObject* impl = V8TestObject::toImpl(holder); |
4244 v8SetReturnValueInt(info, impl->perContextEnabledRuntimeEnabledLongAttribute
()); | 4422 v8SetReturnValueInt(info, impl->perContextEnabledRuntimeEnabledLongAttribute
()); |
4245 } | 4423 } |
4246 | 4424 |
4247 static void perContextEnabledRuntimeEnabledLongAttributeAttributeGetterCallback(
v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4425 static void perContextEnabledRuntimeEnabledLongAttributeAttributeGetterCallback(
v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
4248 { | 4426 { |
4249 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4427 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4250 TestObjectV8Internal::perContextEnabledRuntimeEnabledLongAttributeAttributeG
etter(info); | 4428 TestObjectV8Internal::perContextEnabledRuntimeEnabledLongAttributeAttributeG
etter(info); |
4251 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4429 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4252 } | 4430 } |
4253 | 4431 |
4254 static void perContextEnabledRuntimeEnabledLongAttributeAttributeSetter(v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4432 static void perContextEnabledRuntimeEnabledLongAttributeAttributeSetter(v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4255 { | 4433 { |
4256 v8::Local<v8::Object> holder = info.Holder(); | 4434 v8::Local<v8::Object> holder = info.Holder(); |
4257 ExceptionState exceptionState(ExceptionState::SetterContext, "perContextEnab
ledRuntimeEnabledLongAttribute", "TestObject", holder, info.GetIsolate()); | 4435 ExceptionState exceptionState(ExceptionState::SetterContext, "perContextEnab
ledRuntimeEnabledLongAttribute", "TestObject", holder, info.GetIsolate()); |
4258 TestObject* impl = V8TestObject::toImpl(holder); | 4436 TestObject* impl = V8TestObject::toImpl(holder); |
4259 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 4437 int cppValue = toInt32(v8Value, exceptionState); |
| 4438 if (exceptionState.throwIfNeeded()) |
| 4439 return; |
4260 impl->setPerContextEnabledRuntimeEnabledLongAttribute(cppValue); | 4440 impl->setPerContextEnabledRuntimeEnabledLongAttribute(cppValue); |
4261 } | 4441 } |
4262 | 4442 |
4263 static void perContextEnabledRuntimeEnabledLongAttributeAttributeSetterCallback(
v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI
nfo<void>& info) | 4443 static void perContextEnabledRuntimeEnabledLongAttributeAttributeSetterCallback(
v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI
nfo<void>& info) |
4264 { | 4444 { |
4265 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4445 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4266 TestObjectV8Internal::perContextEnabledRuntimeEnabledLongAttributeAttributeS
etter(v8Value, info); | 4446 TestObjectV8Internal::perContextEnabledRuntimeEnabledLongAttributeAttributeS
etter(v8Value, info); |
4267 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4447 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4268 } | 4448 } |
4269 | 4449 |
(...skipping 14 matching lines...) Expand all Loading... |
4284 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4464 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4285 } | 4465 } |
4286 #endif // ENABLE(CONDITION) | 4466 #endif // ENABLE(CONDITION) |
4287 | 4467 |
4288 #if ENABLE(CONDITION) | 4468 #if ENABLE(CONDITION) |
4289 static void conditionalRuntimeEnabledLongAttributeAttributeSetter(v8::Local<v8::
Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4469 static void conditionalRuntimeEnabledLongAttributeAttributeSetter(v8::Local<v8::
Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4290 { | 4470 { |
4291 v8::Local<v8::Object> holder = info.Holder(); | 4471 v8::Local<v8::Object> holder = info.Holder(); |
4292 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalRun
timeEnabledLongAttribute", "TestObject", holder, info.GetIsolate()); | 4472 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalRun
timeEnabledLongAttribute", "TestObject", holder, info.GetIsolate()); |
4293 TestObject* impl = V8TestObject::toImpl(holder); | 4473 TestObject* impl = V8TestObject::toImpl(holder); |
4294 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 4474 int cppValue = toInt32(v8Value, exceptionState); |
| 4475 if (exceptionState.throwIfNeeded()) |
| 4476 return; |
4295 impl->setConditionalRuntimeEnabledLongAttribute(cppValue); | 4477 impl->setConditionalRuntimeEnabledLongAttribute(cppValue); |
4296 } | 4478 } |
4297 #endif // ENABLE(CONDITION) | 4479 #endif // ENABLE(CONDITION) |
4298 | 4480 |
4299 #if ENABLE(CONDITION) | 4481 #if ENABLE(CONDITION) |
4300 static void conditionalRuntimeEnabledLongAttributeAttributeSetterCallback(v8::Lo
cal<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<vo
id>& info) | 4482 static void conditionalRuntimeEnabledLongAttributeAttributeSetterCallback(v8::Lo
cal<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<vo
id>& info) |
4301 { | 4483 { |
4302 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4484 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4303 TestObjectV8Internal::conditionalRuntimeEnabledLongAttributeAttributeSetter(
v8Value, info); | 4485 TestObjectV8Internal::conditionalRuntimeEnabledLongAttributeAttributeSetter(
v8Value, info); |
4304 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4486 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
(...skipping 11 matching lines...) Expand all Loading... |
4316 { | 4498 { |
4317 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4499 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4318 TestObjectV8Internal::setterCallWithActiveWindowAndFirstWindowStringAttribut
eAttributeGetter(info); | 4500 TestObjectV8Internal::setterCallWithActiveWindowAndFirstWindowStringAttribut
eAttributeGetter(info); |
4319 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4501 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4320 } | 4502 } |
4321 | 4503 |
4322 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeSett
er(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4504 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeSett
er(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4323 { | 4505 { |
4324 v8::Local<v8::Object> holder = info.Holder(); | 4506 v8::Local<v8::Object> holder = info.Holder(); |
4325 TestObject* impl = V8TestObject::toImpl(holder); | 4507 TestObject* impl = V8TestObject::toImpl(holder); |
4326 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 4508 V8StringResource<> cppValue = v8Value; |
| 4509 if (!cppValue.prepare()) |
| 4510 return; |
4327 impl->setSetterCallWithActiveWindowAndFirstWindowStringAttribute(callingDOMW
indow(info.GetIsolate()), enteredDOMWindow(info.GetIsolate()), cppValue); | 4511 impl->setSetterCallWithActiveWindowAndFirstWindowStringAttribute(callingDOMW
indow(info.GetIsolate()), enteredDOMWindow(info.GetIsolate()), cppValue); |
4328 } | 4512 } |
4329 | 4513 |
4330 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeSett
erCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::Proper
tyCallbackInfo<void>& info) | 4514 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeSett
erCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::Proper
tyCallbackInfo<void>& info) |
4331 { | 4515 { |
4332 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4516 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4333 TestObjectV8Internal::setterCallWithActiveWindowAndFirstWindowStringAttribut
eAttributeSetter(v8Value, info); | 4517 TestObjectV8Internal::setterCallWithActiveWindowAndFirstWindowStringAttribut
eAttributeSetter(v8Value, info); |
4334 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4518 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4335 } | 4519 } |
4336 | 4520 |
4337 static void setterCallWithExecutionContextStringAttributeAttributeGetter(const v
8::PropertyCallbackInfo<v8::Value>& info) | 4521 static void setterCallWithExecutionContextStringAttributeAttributeGetter(const v
8::PropertyCallbackInfo<v8::Value>& info) |
4338 { | 4522 { |
4339 v8::Local<v8::Object> holder = info.Holder(); | 4523 v8::Local<v8::Object> holder = info.Holder(); |
4340 TestObject* impl = V8TestObject::toImpl(holder); | 4524 TestObject* impl = V8TestObject::toImpl(holder); |
4341 v8SetReturnValueString(info, impl->setterCallWithExecutionContextStringAttri
bute(), info.GetIsolate()); | 4525 v8SetReturnValueString(info, impl->setterCallWithExecutionContextStringAttri
bute(), info.GetIsolate()); |
4342 } | 4526 } |
4343 | 4527 |
4344 static void setterCallWithExecutionContextStringAttributeAttributeGetterCallback
(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4528 static void setterCallWithExecutionContextStringAttributeAttributeGetterCallback
(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
4345 { | 4529 { |
4346 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4530 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4347 TestObjectV8Internal::setterCallWithExecutionContextStringAttributeAttribute
Getter(info); | 4531 TestObjectV8Internal::setterCallWithExecutionContextStringAttributeAttribute
Getter(info); |
4348 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4532 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4349 } | 4533 } |
4350 | 4534 |
4351 static void setterCallWithExecutionContextStringAttributeAttributeSetter(v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4535 static void setterCallWithExecutionContextStringAttributeAttributeSetter(v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4352 { | 4536 { |
4353 v8::Local<v8::Object> holder = info.Holder(); | 4537 v8::Local<v8::Object> holder = info.Holder(); |
4354 TestObject* impl = V8TestObject::toImpl(holder); | 4538 TestObject* impl = V8TestObject::toImpl(holder); |
4355 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 4539 V8StringResource<> cppValue = v8Value; |
| 4540 if (!cppValue.prepare()) |
| 4541 return; |
4356 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate
()); | 4542 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate
()); |
4357 impl->setSetterCallWithExecutionContextStringAttribute(executionContext, cpp
Value); | 4543 impl->setSetterCallWithExecutionContextStringAttribute(executionContext, cpp
Value); |
4358 } | 4544 } |
4359 | 4545 |
4360 static void setterCallWithExecutionContextStringAttributeAttributeSetterCallback
(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallback
Info<void>& info) | 4546 static void setterCallWithExecutionContextStringAttributeAttributeSetterCallback
(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallback
Info<void>& info) |
4361 { | 4547 { |
4362 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4548 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4363 TestObjectV8Internal::setterCallWithExecutionContextStringAttributeAttribute
Setter(v8Value, info); | 4549 TestObjectV8Internal::setterCallWithExecutionContextStringAttributeAttribute
Setter(v8Value, info); |
4364 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4550 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4365 } | 4551 } |
4366 | 4552 |
4367 static void treatNullAsEmptyStringStringAttributeAttributeGetter(const v8::Prope
rtyCallbackInfo<v8::Value>& info) | 4553 static void treatNullAsEmptyStringStringAttributeAttributeGetter(const v8::Prope
rtyCallbackInfo<v8::Value>& info) |
4368 { | 4554 { |
4369 v8::Local<v8::Object> holder = info.Holder(); | 4555 v8::Local<v8::Object> holder = info.Holder(); |
4370 TestObject* impl = V8TestObject::toImpl(holder); | 4556 TestObject* impl = V8TestObject::toImpl(holder); |
4371 v8SetReturnValueString(info, impl->treatNullAsEmptyStringStringAttribute(),
info.GetIsolate()); | 4557 v8SetReturnValueString(info, impl->treatNullAsEmptyStringStringAttribute(),
info.GetIsolate()); |
4372 } | 4558 } |
4373 | 4559 |
4374 static void treatNullAsEmptyStringStringAttributeAttributeGetterCallback(v8::Loc
al<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4560 static void treatNullAsEmptyStringStringAttributeAttributeGetterCallback(v8::Loc
al<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
4375 { | 4561 { |
4376 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4562 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4377 TestObjectV8Internal::treatNullAsEmptyStringStringAttributeAttributeGetter(i
nfo); | 4563 TestObjectV8Internal::treatNullAsEmptyStringStringAttributeAttributeGetter(i
nfo); |
4378 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4564 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4379 } | 4565 } |
4380 | 4566 |
4381 static void treatNullAsEmptyStringStringAttributeAttributeSetter(v8::Local<v8::V
alue> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4567 static void treatNullAsEmptyStringStringAttributeAttributeSetter(v8::Local<v8::V
alue> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4382 { | 4568 { |
4383 v8::Local<v8::Object> holder = info.Holder(); | 4569 v8::Local<v8::Object> holder = info.Holder(); |
4384 TestObject* impl = V8TestObject::toImpl(holder); | 4570 TestObject* impl = V8TestObject::toImpl(holder); |
4385 TOSTRING_VOID(V8StringResource<TreatNullAsEmptyString>, cppValue, v8Value); | 4571 V8StringResource<TreatNullAsEmptyString> cppValue = v8Value; |
| 4572 if (!cppValue.prepare()) |
| 4573 return; |
4386 impl->setTreatNullAsEmptyStringStringAttribute(cppValue); | 4574 impl->setTreatNullAsEmptyStringStringAttribute(cppValue); |
4387 } | 4575 } |
4388 | 4576 |
4389 static void treatNullAsEmptyStringStringAttributeAttributeSetterCallback(v8::Loc
al<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<voi
d>& info) | 4577 static void treatNullAsEmptyStringStringAttributeAttributeSetterCallback(v8::Loc
al<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<voi
d>& info) |
4390 { | 4578 { |
4391 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4579 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4392 TestObjectV8Internal::treatNullAsEmptyStringStringAttributeAttributeSetter(v
8Value, info); | 4580 TestObjectV8Internal::treatNullAsEmptyStringStringAttributeAttributeSetter(v
8Value, info); |
4393 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4581 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4394 } | 4582 } |
4395 | 4583 |
4396 static void treatNullAsNullStringStringAttributeAttributeGetter(const v8::Proper
tyCallbackInfo<v8::Value>& info) | 4584 static void treatNullAsNullStringStringAttributeAttributeGetter(const v8::Proper
tyCallbackInfo<v8::Value>& info) |
4397 { | 4585 { |
4398 v8::Local<v8::Object> holder = info.Holder(); | 4586 v8::Local<v8::Object> holder = info.Holder(); |
4399 TestObject* impl = V8TestObject::toImpl(holder); | 4587 TestObject* impl = V8TestObject::toImpl(holder); |
4400 v8SetReturnValueString(info, impl->treatNullAsNullStringStringAttribute(), i
nfo.GetIsolate()); | 4588 v8SetReturnValueString(info, impl->treatNullAsNullStringStringAttribute(), i
nfo.GetIsolate()); |
4401 } | 4589 } |
4402 | 4590 |
4403 static void treatNullAsNullStringStringAttributeAttributeGetterCallback(v8::Loca
l<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4591 static void treatNullAsNullStringStringAttributeAttributeGetterCallback(v8::Loca
l<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
4404 { | 4592 { |
4405 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4593 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4406 TestObjectV8Internal::treatNullAsNullStringStringAttributeAttributeGetter(in
fo); | 4594 TestObjectV8Internal::treatNullAsNullStringStringAttributeAttributeGetter(in
fo); |
4407 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4595 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4408 } | 4596 } |
4409 | 4597 |
4410 static void treatNullAsNullStringStringAttributeAttributeSetter(v8::Local<v8::Va
lue> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4598 static void treatNullAsNullStringStringAttributeAttributeSetter(v8::Local<v8::Va
lue> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4411 { | 4599 { |
4412 v8::Local<v8::Object> holder = info.Holder(); | 4600 v8::Local<v8::Object> holder = info.Holder(); |
4413 TestObject* impl = V8TestObject::toImpl(holder); | 4601 TestObject* impl = V8TestObject::toImpl(holder); |
4414 TOSTRING_VOID(V8StringResource<TreatNullAsNullString>, cppValue, v8Value); | 4602 V8StringResource<TreatNullAsNullString> cppValue = v8Value; |
| 4603 if (!cppValue.prepare()) |
| 4604 return; |
4415 impl->setTreatNullAsNullStringStringAttribute(cppValue); | 4605 impl->setTreatNullAsNullStringStringAttribute(cppValue); |
4416 } | 4606 } |
4417 | 4607 |
4418 static void treatNullAsNullStringStringAttributeAttributeSetterCallback(v8::Loca
l<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void
>& info) | 4608 static void treatNullAsNullStringStringAttributeAttributeSetterCallback(v8::Loca
l<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void
>& info) |
4419 { | 4609 { |
4420 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4610 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4421 TestObjectV8Internal::treatNullAsNullStringStringAttributeAttributeSetter(v8
Value, info); | 4611 TestObjectV8Internal::treatNullAsNullStringStringAttributeAttributeSetter(v8
Value, info); |
4422 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4612 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4423 } | 4613 } |
4424 | 4614 |
4425 static void treatReturnedNullStringAsNullStringAttributeAttributeGetter(const v8
::PropertyCallbackInfo<v8::Value>& info) | 4615 static void treatReturnedNullStringAsNullStringAttributeAttributeGetter(const v8
::PropertyCallbackInfo<v8::Value>& info) |
4426 { | 4616 { |
4427 v8::Local<v8::Object> holder = info.Holder(); | 4617 v8::Local<v8::Object> holder = info.Holder(); |
4428 TestObject* impl = V8TestObject::toImpl(holder); | 4618 TestObject* impl = V8TestObject::toImpl(holder); |
4429 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullString
Attribute(), info.GetIsolate()); | 4619 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullString
Attribute(), info.GetIsolate()); |
4430 } | 4620 } |
4431 | 4621 |
4432 static void treatReturnedNullStringAsNullStringAttributeAttributeGetterCallback(
v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4622 static void treatReturnedNullStringAsNullStringAttributeAttributeGetterCallback(
v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
4433 { | 4623 { |
4434 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4624 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4435 TestObjectV8Internal::treatReturnedNullStringAsNullStringAttributeAttributeG
etter(info); | 4625 TestObjectV8Internal::treatReturnedNullStringAsNullStringAttributeAttributeG
etter(info); |
4436 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4626 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4437 } | 4627 } |
4438 | 4628 |
4439 static void treatReturnedNullStringAsNullStringAttributeAttributeSetter(v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4629 static void treatReturnedNullStringAsNullStringAttributeAttributeSetter(v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4440 { | 4630 { |
4441 v8::Local<v8::Object> holder = info.Holder(); | 4631 v8::Local<v8::Object> holder = info.Holder(); |
4442 TestObject* impl = V8TestObject::toImpl(holder); | 4632 TestObject* impl = V8TestObject::toImpl(holder); |
4443 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 4633 V8StringResource<> cppValue = v8Value; |
| 4634 if (!cppValue.prepare()) |
| 4635 return; |
4444 impl->setTreatReturnedNullStringAsNullStringAttribute(cppValue); | 4636 impl->setTreatReturnedNullStringAsNullStringAttribute(cppValue); |
4445 } | 4637 } |
4446 | 4638 |
4447 static void treatReturnedNullStringAsNullStringAttributeAttributeSetterCallback(
v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI
nfo<void>& info) | 4639 static void treatReturnedNullStringAsNullStringAttributeAttributeSetterCallback(
v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI
nfo<void>& info) |
4448 { | 4640 { |
4449 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4641 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4450 TestObjectV8Internal::treatReturnedNullStringAsNullStringAttributeAttributeS
etter(v8Value, info); | 4642 TestObjectV8Internal::treatReturnedNullStringAsNullStringAttributeAttributeS
etter(v8Value, info); |
4451 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4643 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4452 } | 4644 } |
4453 | 4645 |
4454 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeGetter(con
st v8::PropertyCallbackInfo<v8::Value>& info) | 4646 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeGetter(con
st v8::PropertyCallbackInfo<v8::Value>& info) |
4455 { | 4647 { |
4456 v8::Local<v8::Object> holder = info.Holder(); | 4648 v8::Local<v8::Object> holder = info.Holder(); |
4457 TestObject* impl = V8TestObject::toImpl(holder); | 4649 TestObject* impl = V8TestObject::toImpl(holder); |
4458 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef
inedStringAttribute(), info.GetIsolate()); | 4650 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef
inedStringAttribute(), info.GetIsolate()); |
4459 } | 4651 } |
4460 | 4652 |
4461 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeGetterCall
back(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4653 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeGetterCall
back(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
4462 { | 4654 { |
4463 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4655 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4464 TestObjectV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAttri
buteGetter(info); | 4656 TestObjectV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAttri
buteGetter(info); |
4465 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4657 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4466 } | 4658 } |
4467 | 4659 |
4468 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeSetter(v8:
:Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4660 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeSetter(v8:
:Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4469 { | 4661 { |
4470 v8::Local<v8::Object> holder = info.Holder(); | 4662 v8::Local<v8::Object> holder = info.Holder(); |
4471 TestObject* impl = V8TestObject::toImpl(holder); | 4663 TestObject* impl = V8TestObject::toImpl(holder); |
4472 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 4664 V8StringResource<> cppValue = v8Value; |
| 4665 if (!cppValue.prepare()) |
| 4666 return; |
4473 impl->setTreatReturnedNullStringAsUndefinedStringAttribute(cppValue); | 4667 impl->setTreatReturnedNullStringAsUndefinedStringAttribute(cppValue); |
4474 } | 4668 } |
4475 | 4669 |
4476 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeSetterCall
back(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCall
backInfo<void>& info) | 4670 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeSetterCall
back(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCall
backInfo<void>& info) |
4477 { | 4671 { |
4478 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4672 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4479 TestObjectV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAttri
buteSetter(v8Value, info); | 4673 TestObjectV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAttri
buteSetter(v8Value, info); |
4480 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4674 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4481 } | 4675 } |
4482 | 4676 |
(...skipping 18 matching lines...) Expand all Loading... |
4501 { | 4695 { |
4502 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4696 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4503 TestObjectV8Internal::cachedTreatReturnedNullStringAsUndefinedStringAttribut
eAttributeGetter(info); | 4697 TestObjectV8Internal::cachedTreatReturnedNullStringAsUndefinedStringAttribut
eAttributeGetter(info); |
4504 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4698 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4505 } | 4699 } |
4506 | 4700 |
4507 static void cachedTreatReturnedNullStringAsUndefinedStringAttributeAttributeSett
er(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4701 static void cachedTreatReturnedNullStringAsUndefinedStringAttributeAttributeSett
er(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4508 { | 4702 { |
4509 v8::Local<v8::Object> holder = info.Holder(); | 4703 v8::Local<v8::Object> holder = info.Holder(); |
4510 TestObject* impl = V8TestObject::toImpl(holder); | 4704 TestObject* impl = V8TestObject::toImpl(holder); |
4511 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 4705 V8StringResource<> cppValue = v8Value; |
| 4706 if (!cppValue.prepare()) |
| 4707 return; |
4512 impl->setCachedTreatReturnedNullStringAsUndefinedStringAttribute(cppValue); | 4708 impl->setCachedTreatReturnedNullStringAsUndefinedStringAttribute(cppValue); |
4513 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i
nfo.GetIsolate(), "cachedTreatReturnedNullStringAsUndefinedStringAttribute")); /
/ Invalidate the cached value. | 4709 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i
nfo.GetIsolate(), "cachedTreatReturnedNullStringAsUndefinedStringAttribute")); /
/ Invalidate the cached value. |
4514 } | 4710 } |
4515 | 4711 |
4516 static void cachedTreatReturnedNullStringAsUndefinedStringAttributeAttributeSett
erCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::Proper
tyCallbackInfo<void>& info) | 4712 static void cachedTreatReturnedNullStringAsUndefinedStringAttributeAttributeSett
erCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::Proper
tyCallbackInfo<void>& info) |
4517 { | 4713 { |
4518 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4714 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4519 TestObjectV8Internal::cachedTreatReturnedNullStringAsUndefinedStringAttribut
eAttributeSetter(v8Value, info); | 4715 TestObjectV8Internal::cachedTreatReturnedNullStringAsUndefinedStringAttribut
eAttributeSetter(v8Value, info); |
4520 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4716 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4521 } | 4717 } |
(...skipping 10 matching lines...) Expand all Loading... |
4532 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4728 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4533 TestObjectV8Internal::treatReturnedNullStringAsNullByteStringAttributeAttrib
uteGetter(info); | 4729 TestObjectV8Internal::treatReturnedNullStringAsNullByteStringAttributeAttrib
uteGetter(info); |
4534 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4730 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4535 } | 4731 } |
4536 | 4732 |
4537 static void treatReturnedNullStringAsNullByteStringAttributeAttributeSetter(v8::
Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4733 static void treatReturnedNullStringAsNullByteStringAttributeAttributeSetter(v8::
Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4538 { | 4734 { |
4539 v8::Local<v8::Object> holder = info.Holder(); | 4735 v8::Local<v8::Object> holder = info.Holder(); |
4540 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN
ullStringAsNullByteStringAttribute", "TestObject", holder, info.GetIsolate()); | 4736 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN
ullStringAsNullByteStringAttribute", "TestObject", holder, info.GetIsolate()); |
4541 TestObject* impl = V8TestObject::toImpl(holder); | 4737 TestObject* impl = V8TestObject::toImpl(holder); |
4542 TONATIVE_VOID_EXCEPTIONSTATE(V8StringResource<>, cppValue, toByteString(v8Va
lue, exceptionState), exceptionState); | 4738 V8StringResource<> cppValue = toByteString(v8Value, exceptionState); |
| 4739 if (exceptionState.throwIfNeeded()) |
| 4740 return; |
4543 impl->setTreatReturnedNullStringAsNullByteStringAttribute(cppValue); | 4741 impl->setTreatReturnedNullStringAsNullByteStringAttribute(cppValue); |
4544 } | 4742 } |
4545 | 4743 |
4546 static void treatReturnedNullStringAsNullByteStringAttributeAttributeSetterCallb
ack(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallb
ackInfo<void>& info) | 4744 static void treatReturnedNullStringAsNullByteStringAttributeAttributeSetterCallb
ack(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallb
ackInfo<void>& info) |
4547 { | 4745 { |
4548 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4746 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4549 TestObjectV8Internal::treatReturnedNullStringAsNullByteStringAttributeAttrib
uteSetter(v8Value, info); | 4747 TestObjectV8Internal::treatReturnedNullStringAsNullByteStringAttributeAttrib
uteSetter(v8Value, info); |
4550 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4748 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4551 } | 4749 } |
4552 | 4750 |
4553 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeGetter
(const v8::PropertyCallbackInfo<v8::Value>& info) | 4751 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeGetter
(const v8::PropertyCallbackInfo<v8::Value>& info) |
4554 { | 4752 { |
4555 v8::Local<v8::Object> holder = info.Holder(); | 4753 v8::Local<v8::Object> holder = info.Holder(); |
4556 TestObject* impl = V8TestObject::toImpl(holder); | 4754 TestObject* impl = V8TestObject::toImpl(holder); |
4557 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef
inedByteStringAttribute(), info.GetIsolate()); | 4755 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef
inedByteStringAttribute(), info.GetIsolate()); |
4558 } | 4756 } |
4559 | 4757 |
4560 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeGetter
Callback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4758 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeGetter
Callback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
4561 { | 4759 { |
4562 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4760 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4563 TestObjectV8Internal::treatReturnedNullStringAsUndefinedByteStringAttributeA
ttributeGetter(info); | 4761 TestObjectV8Internal::treatReturnedNullStringAsUndefinedByteStringAttributeA
ttributeGetter(info); |
4564 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4762 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4565 } | 4763 } |
4566 | 4764 |
4567 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeSetter
(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4765 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeSetter
(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4568 { | 4766 { |
4569 v8::Local<v8::Object> holder = info.Holder(); | 4767 v8::Local<v8::Object> holder = info.Holder(); |
4570 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN
ullStringAsUndefinedByteStringAttribute", "TestObject", holder, info.GetIsolate(
)); | 4768 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN
ullStringAsUndefinedByteStringAttribute", "TestObject", holder, info.GetIsolate(
)); |
4571 TestObject* impl = V8TestObject::toImpl(holder); | 4769 TestObject* impl = V8TestObject::toImpl(holder); |
4572 TONATIVE_VOID_EXCEPTIONSTATE(V8StringResource<>, cppValue, toByteString(v8Va
lue, exceptionState), exceptionState); | 4770 V8StringResource<> cppValue = toByteString(v8Value, exceptionState); |
| 4771 if (exceptionState.throwIfNeeded()) |
| 4772 return; |
4573 impl->setTreatReturnedNullStringAsUndefinedByteStringAttribute(cppValue); | 4773 impl->setTreatReturnedNullStringAsUndefinedByteStringAttribute(cppValue); |
4574 } | 4774 } |
4575 | 4775 |
4576 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeSetter
Callback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::Property
CallbackInfo<void>& info) | 4776 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeSetter
Callback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::Property
CallbackInfo<void>& info) |
4577 { | 4777 { |
4578 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4778 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4579 TestObjectV8Internal::treatReturnedNullStringAsUndefinedByteStringAttributeA
ttributeSetter(v8Value, info); | 4779 TestObjectV8Internal::treatReturnedNullStringAsUndefinedByteStringAttributeA
ttributeSetter(v8Value, info); |
4580 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4780 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4581 } | 4781 } |
4582 | 4782 |
4583 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeGetter(const
v8::PropertyCallbackInfo<v8::Value>& info) | 4783 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeGetter(const
v8::PropertyCallbackInfo<v8::Value>& info) |
4584 { | 4784 { |
4585 v8::Local<v8::Object> holder = info.Holder(); | 4785 v8::Local<v8::Object> holder = info.Holder(); |
4586 TestObject* impl = V8TestObject::toImpl(holder); | 4786 TestObject* impl = V8TestObject::toImpl(holder); |
4587 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullUSVStr
ingAttribute(), info.GetIsolate()); | 4787 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullUSVStr
ingAttribute(), info.GetIsolate()); |
4588 } | 4788 } |
4589 | 4789 |
4590 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeGetterCallba
ck(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4790 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeGetterCallba
ck(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
4591 { | 4791 { |
4592 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4792 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4593 TestObjectV8Internal::treatReturnedNullStringAsNullUSVStringAttributeAttribu
teGetter(info); | 4793 TestObjectV8Internal::treatReturnedNullStringAsNullUSVStringAttributeAttribu
teGetter(info); |
4594 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4794 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4595 } | 4795 } |
4596 | 4796 |
4597 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeSetter(v8::L
ocal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4797 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeSetter(v8::L
ocal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4598 { | 4798 { |
4599 v8::Local<v8::Object> holder = info.Holder(); | 4799 v8::Local<v8::Object> holder = info.Holder(); |
4600 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN
ullStringAsNullUSVStringAttribute", "TestObject", holder, info.GetIsolate()); | 4800 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN
ullStringAsNullUSVStringAttribute", "TestObject", holder, info.GetIsolate()); |
4601 TestObject* impl = V8TestObject::toImpl(holder); | 4801 TestObject* impl = V8TestObject::toImpl(holder); |
4602 TONATIVE_VOID_EXCEPTIONSTATE(V8StringResource<>, cppValue, toUSVString(v8Val
ue, exceptionState), exceptionState); | 4802 V8StringResource<> cppValue = toUSVString(v8Value, exceptionState); |
| 4803 if (exceptionState.throwIfNeeded()) |
| 4804 return; |
4603 impl->setTreatReturnedNullStringAsNullUSVStringAttribute(cppValue); | 4805 impl->setTreatReturnedNullStringAsNullUSVStringAttribute(cppValue); |
4604 } | 4806 } |
4605 | 4807 |
4606 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeSetterCallba
ck(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallba
ckInfo<void>& info) | 4808 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeSetterCallba
ck(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallba
ckInfo<void>& info) |
4607 { | 4809 { |
4608 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4810 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4609 TestObjectV8Internal::treatReturnedNullStringAsNullUSVStringAttributeAttribu
teSetter(v8Value, info); | 4811 TestObjectV8Internal::treatReturnedNullStringAsNullUSVStringAttributeAttribu
teSetter(v8Value, info); |
4610 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4812 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4611 } | 4813 } |
4612 | 4814 |
4613 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeGetter(
const v8::PropertyCallbackInfo<v8::Value>& info) | 4815 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeGetter(
const v8::PropertyCallbackInfo<v8::Value>& info) |
4614 { | 4816 { |
4615 v8::Local<v8::Object> holder = info.Holder(); | 4817 v8::Local<v8::Object> holder = info.Holder(); |
4616 TestObject* impl = V8TestObject::toImpl(holder); | 4818 TestObject* impl = V8TestObject::toImpl(holder); |
4617 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef
inedUSVStringAttribute(), info.GetIsolate()); | 4819 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef
inedUSVStringAttribute(), info.GetIsolate()); |
4618 } | 4820 } |
4619 | 4821 |
4620 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeGetterC
allback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4822 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeGetterC
allback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
4621 { | 4823 { |
4622 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4824 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4623 TestObjectV8Internal::treatReturnedNullStringAsUndefinedUSVStringAttributeAt
tributeGetter(info); | 4825 TestObjectV8Internal::treatReturnedNullStringAsUndefinedUSVStringAttributeAt
tributeGetter(info); |
4624 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4826 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4625 } | 4827 } |
4626 | 4828 |
4627 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeSetter(
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4829 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeSetter(
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4628 { | 4830 { |
4629 v8::Local<v8::Object> holder = info.Holder(); | 4831 v8::Local<v8::Object> holder = info.Holder(); |
4630 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN
ullStringAsUndefinedUSVStringAttribute", "TestObject", holder, info.GetIsolate()
); | 4832 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN
ullStringAsUndefinedUSVStringAttribute", "TestObject", holder, info.GetIsolate()
); |
4631 TestObject* impl = V8TestObject::toImpl(holder); | 4833 TestObject* impl = V8TestObject::toImpl(holder); |
4632 TONATIVE_VOID_EXCEPTIONSTATE(V8StringResource<>, cppValue, toUSVString(v8Val
ue, exceptionState), exceptionState); | 4834 V8StringResource<> cppValue = toUSVString(v8Value, exceptionState); |
| 4835 if (exceptionState.throwIfNeeded()) |
| 4836 return; |
4633 impl->setTreatReturnedNullStringAsUndefinedUSVStringAttribute(cppValue); | 4837 impl->setTreatReturnedNullStringAsUndefinedUSVStringAttribute(cppValue); |
4634 } | 4838 } |
4635 | 4839 |
4636 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeSetterC
allback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyC
allbackInfo<void>& info) | 4840 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeSetterC
allback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyC
allbackInfo<void>& info) |
4637 { | 4841 { |
4638 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4842 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4639 TestObjectV8Internal::treatReturnedNullStringAsUndefinedUSVStringAttributeAt
tributeSetter(v8Value, info); | 4843 TestObjectV8Internal::treatReturnedNullStringAsUndefinedUSVStringAttributeAt
tributeSetter(v8Value, info); |
4640 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4844 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4641 } | 4845 } |
4642 | 4846 |
4643 static void typeCheckingInterfaceFloatAttributeAttributeGetter(const v8::Propert
yCallbackInfo<v8::Value>& info) | 4847 static void typeCheckingInterfaceFloatAttributeAttributeGetter(const v8::Propert
yCallbackInfo<v8::Value>& info) |
4644 { | 4848 { |
4645 v8::Local<v8::Object> holder = info.Holder(); | 4849 v8::Local<v8::Object> holder = info.Holder(); |
4646 TestObject* impl = V8TestObject::toImpl(holder); | 4850 TestObject* impl = V8TestObject::toImpl(holder); |
4647 v8SetReturnValue(info, impl->typeCheckingInterfaceFloatAttribute()); | 4851 v8SetReturnValue(info, impl->typeCheckingInterfaceFloatAttribute()); |
4648 } | 4852 } |
4649 | 4853 |
4650 static void typeCheckingInterfaceFloatAttributeAttributeGetterCallback(v8::Local
<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4854 static void typeCheckingInterfaceFloatAttributeAttributeGetterCallback(v8::Local
<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
4651 { | 4855 { |
4652 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4856 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4653 TestObjectV8Internal::typeCheckingInterfaceFloatAttributeAttributeGetter(inf
o); | 4857 TestObjectV8Internal::typeCheckingInterfaceFloatAttributeAttributeGetter(inf
o); |
4654 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4858 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4655 } | 4859 } |
4656 | 4860 |
4657 static void typeCheckingInterfaceFloatAttributeAttributeSetter(v8::Local<v8::Val
ue> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4861 static void typeCheckingInterfaceFloatAttributeAttributeSetter(v8::Local<v8::Val
ue> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4658 { | 4862 { |
4659 v8::Local<v8::Object> holder = info.Holder(); | 4863 v8::Local<v8::Object> holder = info.Holder(); |
4660 ExceptionState exceptionState(ExceptionState::SetterContext, "typeCheckingIn
terfaceFloatAttribute", "TestObject", holder, info.GetIsolate()); | 4864 ExceptionState exceptionState(ExceptionState::SetterContext, "typeCheckingIn
terfaceFloatAttribute", "TestObject", holder, info.GetIsolate()); |
4661 TestObject* impl = V8TestObject::toImpl(holder); | 4865 TestObject* impl = V8TestObject::toImpl(holder); |
4662 TONATIVE_VOID_EXCEPTIONSTATE(float, cppValue, toFloat(v8Value, exceptionStat
e), exceptionState); | 4866 float cppValue = toFloat(v8Value, exceptionState); |
| 4867 if (exceptionState.throwIfNeeded()) |
| 4868 return; |
4663 impl->setTypeCheckingInterfaceFloatAttribute(cppValue); | 4869 impl->setTypeCheckingInterfaceFloatAttribute(cppValue); |
4664 } | 4870 } |
4665 | 4871 |
4666 static void typeCheckingInterfaceFloatAttributeAttributeSetterCallback(v8::Local
<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>
& info) | 4872 static void typeCheckingInterfaceFloatAttributeAttributeSetterCallback(v8::Local
<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>
& info) |
4667 { | 4873 { |
4668 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4874 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4669 TestObjectV8Internal::typeCheckingInterfaceFloatAttributeAttributeSetter(v8V
alue, info); | 4875 TestObjectV8Internal::typeCheckingInterfaceFloatAttributeAttributeSetter(v8V
alue, info); |
4670 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4876 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4671 } | 4877 } |
4672 | 4878 |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4751 { | 4957 { |
4752 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4958 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4753 TestObjectV8Internal::urlStringAttributeAttributeGetter(info); | 4959 TestObjectV8Internal::urlStringAttributeAttributeGetter(info); |
4754 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4960 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4755 } | 4961 } |
4756 | 4962 |
4757 static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) | 4963 static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) |
4758 { | 4964 { |
4759 v8::Local<v8::Object> holder = info.Holder(); | 4965 v8::Local<v8::Object> holder = info.Holder(); |
4760 TestObject* impl = V8TestObject::toImpl(holder); | 4966 TestObject* impl = V8TestObject::toImpl(holder); |
4761 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 4967 V8StringResource<> cppValue = v8Value; |
| 4968 if (!cppValue.prepare()) |
| 4969 return; |
4762 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4970 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
4763 impl->setAttribute(HTMLNames::urlstringattributeAttr, cppValue); | 4971 impl->setAttribute(HTMLNames::urlstringattributeAttr, cppValue); |
4764 } | 4972 } |
4765 | 4973 |
4766 static void urlStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:
:Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4974 static void urlStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:
:Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4767 { | 4975 { |
4768 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4976 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4769 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4977 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
4770 TestObjectV8Internal::urlStringAttributeAttributeSetter(v8Value, info); | 4978 TestObjectV8Internal::urlStringAttributeAttributeSetter(v8Value, info); |
4771 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4979 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
(...skipping 10 matching lines...) Expand all Loading... |
4782 { | 4990 { |
4783 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4991 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4784 TestObjectV8Internal::urlStringAttributeAttributeGetter(info); | 4992 TestObjectV8Internal::urlStringAttributeAttributeGetter(info); |
4785 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4993 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4786 } | 4994 } |
4787 | 4995 |
4788 static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) | 4996 static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) |
4789 { | 4997 { |
4790 v8::Local<v8::Object> holder = info.Holder(); | 4998 v8::Local<v8::Object> holder = info.Holder(); |
4791 TestObject* impl = V8TestObject::toImpl(holder); | 4999 TestObject* impl = V8TestObject::toImpl(holder); |
4792 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 5000 V8StringResource<> cppValue = v8Value; |
| 5001 if (!cppValue.prepare()) |
| 5002 return; |
4793 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 5003 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
4794 impl->setAttribute(HTMLNames::reflectUrlAttributeAttr, cppValue); | 5004 impl->setAttribute(HTMLNames::reflectUrlAttributeAttr, cppValue); |
4795 } | 5005 } |
4796 | 5006 |
4797 static void urlStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:
:Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 5007 static void urlStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:
:Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4798 { | 5008 { |
4799 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 5009 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4800 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 5010 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
4801 TestObjectV8Internal::urlStringAttributeAttributeSetter(v8Value, info); | 5011 TestObjectV8Internal::urlStringAttributeAttributeSetter(v8Value, info); |
4802 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5012 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
(...skipping 11 matching lines...) Expand all Loading... |
4814 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 5024 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4815 TestObjectV8Internal::unforgeableLongAttributeAttributeGetter(info); | 5025 TestObjectV8Internal::unforgeableLongAttributeAttributeGetter(info); |
4816 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5026 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4817 } | 5027 } |
4818 | 5028 |
4819 static void unforgeableLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value
, const v8::PropertyCallbackInfo<void>& info) | 5029 static void unforgeableLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value
, const v8::PropertyCallbackInfo<void>& info) |
4820 { | 5030 { |
4821 v8::Local<v8::Object> holder = info.Holder(); | 5031 v8::Local<v8::Object> holder = info.Holder(); |
4822 ExceptionState exceptionState(ExceptionState::SetterContext, "unforgeableLon
gAttribute", "TestObject", holder, info.GetIsolate()); | 5032 ExceptionState exceptionState(ExceptionState::SetterContext, "unforgeableLon
gAttribute", "TestObject", holder, info.GetIsolate()); |
4823 TestObject* impl = V8TestObject::toImpl(holder); | 5033 TestObject* impl = V8TestObject::toImpl(holder); |
4824 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 5034 int cppValue = toInt32(v8Value, exceptionState); |
| 5035 if (exceptionState.throwIfNeeded()) |
| 5036 return; |
4825 impl->setUnforgeableLongAttribute(cppValue); | 5037 impl->setUnforgeableLongAttribute(cppValue); |
4826 } | 5038 } |
4827 | 5039 |
4828 static void unforgeableLongAttributeAttributeSetterCallback(v8::Local<v8::String
>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 5040 static void unforgeableLongAttributeAttributeSetterCallback(v8::Local<v8::String
>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4829 { | 5041 { |
4830 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 5042 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4831 TestObjectV8Internal::unforgeableLongAttributeAttributeSetter(v8Value, info)
; | 5043 TestObjectV8Internal::unforgeableLongAttributeAttributeSetter(v8Value, info)
; |
4832 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5044 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4833 } | 5045 } |
4834 | 5046 |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5009 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 5221 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
5010 TestObjectV8Internal::shortAttributeAttributeGetter(info); | 5222 TestObjectV8Internal::shortAttributeAttributeGetter(info); |
5011 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5223 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5012 } | 5224 } |
5013 | 5225 |
5014 static void shortAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8
::PropertyCallbackInfo<void>& info) | 5226 static void shortAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8
::PropertyCallbackInfo<void>& info) |
5015 { | 5227 { |
5016 v8::Local<v8::Object> holder = info.Holder(); | 5228 v8::Local<v8::Object> holder = info.Holder(); |
5017 ExceptionState exceptionState(ExceptionState::SetterContext, "shortAttribute
", "TestObject", holder, info.GetIsolate()); | 5229 ExceptionState exceptionState(ExceptionState::SetterContext, "shortAttribute
", "TestObject", holder, info.GetIsolate()); |
5018 TestObject* impl = V8TestObject::toImpl(holder); | 5230 TestObject* impl = V8TestObject::toImpl(holder); |
5019 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt16(v8Value, exceptionState)
, exceptionState); | 5231 int cppValue = toInt16(v8Value, exceptionState); |
| 5232 if (exceptionState.throwIfNeeded()) |
| 5233 return; |
5020 V8TestObject::PrivateScript::shortAttributeAttributeSetter(toLocalFrame(toFr
ameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, cppValue); | 5234 V8TestObject::PrivateScript::shortAttributeAttributeSetter(toLocalFrame(toFr
ameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, cppValue); |
5021 } | 5235 } |
5022 | 5236 |
5023 static void shortAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 5237 static void shortAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
5024 { | 5238 { |
5025 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 5239 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
5026 TestObjectV8Internal::shortAttributeAttributeSetter(v8Value, info); | 5240 TestObjectV8Internal::shortAttributeAttributeSetter(v8Value, info); |
5027 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5241 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5028 } | 5242 } |
5029 | 5243 |
(...skipping 11 matching lines...) Expand all Loading... |
5041 { | 5255 { |
5042 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 5256 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
5043 TestObjectV8Internal::stringAttributeAttributeGetter(info); | 5257 TestObjectV8Internal::stringAttributeAttributeGetter(info); |
5044 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5258 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5045 } | 5259 } |
5046 | 5260 |
5047 static void stringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v
8::PropertyCallbackInfo<void>& info) | 5261 static void stringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v
8::PropertyCallbackInfo<void>& info) |
5048 { | 5262 { |
5049 v8::Local<v8::Object> holder = info.Holder(); | 5263 v8::Local<v8::Object> holder = info.Holder(); |
5050 TestObject* impl = V8TestObject::toImpl(holder); | 5264 TestObject* impl = V8TestObject::toImpl(holder); |
5051 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 5265 V8StringResource<> cppValue = v8Value; |
| 5266 if (!cppValue.prepare()) |
| 5267 return; |
5052 V8TestObject::PrivateScript::stringAttributeAttributeSetter(toLocalFrame(toF
rameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, cppValue); | 5268 V8TestObject::PrivateScript::stringAttributeAttributeSetter(toLocalFrame(toF
rameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, cppValue); |
5053 } | 5269 } |
5054 | 5270 |
5055 static void stringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 5271 static void stringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
5056 { | 5272 { |
5057 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 5273 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
5058 TestObjectV8Internal::stringAttributeAttributeSetter(v8Value, info); | 5274 TestObjectV8Internal::stringAttributeAttributeSetter(v8Value, info); |
5059 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5275 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5060 } | 5276 } |
5061 | 5277 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5102 { | 5318 { |
5103 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 5319 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
5104 TestObjectV8Internal::attributeImplementedInCPPForPrivateScriptOnlyAttribute
Getter(info); | 5320 TestObjectV8Internal::attributeImplementedInCPPForPrivateScriptOnlyAttribute
Getter(info); |
5105 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5321 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5106 } | 5322 } |
5107 | 5323 |
5108 static void attributeImplementedInCPPForPrivateScriptOnlyAttributeSetter(v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 5324 static void attributeImplementedInCPPForPrivateScriptOnlyAttributeSetter(v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
5109 { | 5325 { |
5110 v8::Local<v8::Object> holder = info.Holder(); | 5326 v8::Local<v8::Object> holder = info.Holder(); |
5111 TestObject* impl = V8TestObject::toImpl(holder); | 5327 TestObject* impl = V8TestObject::toImpl(holder); |
5112 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 5328 V8StringResource<> cppValue = v8Value; |
| 5329 if (!cppValue.prepare()) |
| 5330 return; |
5113 impl->setAttributeImplementedInCPPForPrivateScriptOnly(cppValue); | 5331 impl->setAttributeImplementedInCPPForPrivateScriptOnly(cppValue); |
5114 } | 5332 } |
5115 | 5333 |
5116 static void attributeImplementedInCPPForPrivateScriptOnlyAttributeSetterCallback
(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallback
Info<void>& info) | 5334 static void attributeImplementedInCPPForPrivateScriptOnlyAttributeSetterCallback
(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallback
Info<void>& info) |
5117 { | 5335 { |
5118 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 5336 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
5119 TestObjectV8Internal::attributeImplementedInCPPForPrivateScriptOnlyAttribute
Setter(v8Value, info); | 5337 TestObjectV8Internal::attributeImplementedInCPPForPrivateScriptOnlyAttribute
Setter(v8Value, info); |
5120 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5338 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5121 } | 5339 } |
5122 | 5340 |
(...skipping 11 matching lines...) Expand all Loading... |
5134 { | 5352 { |
5135 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 5353 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
5136 TestObjectV8Internal::enumForPrivateScriptAttributeGetter(info); | 5354 TestObjectV8Internal::enumForPrivateScriptAttributeGetter(info); |
5137 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5355 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5138 } | 5356 } |
5139 | 5357 |
5140 static void enumForPrivateScriptAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::PropertyCallbackInfo<void>& info) | 5358 static void enumForPrivateScriptAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::PropertyCallbackInfo<void>& info) |
5141 { | 5359 { |
5142 v8::Local<v8::Object> holder = info.Holder(); | 5360 v8::Local<v8::Object> holder = info.Holder(); |
5143 TestObject* impl = V8TestObject::toImpl(holder); | 5361 TestObject* impl = V8TestObject::toImpl(holder); |
5144 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 5362 V8StringResource<> cppValue = v8Value; |
| 5363 if (!cppValue.prepare()) |
| 5364 return; |
5145 String string = cppValue; | 5365 String string = cppValue; |
5146 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || st
ring == "EnumValue3")) | 5366 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || st
ring == "EnumValue3")) |
5147 return; | 5367 return; |
5148 V8TestObject::PrivateScript::enumForPrivateScriptAttributeSetter(toLocalFram
e(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, cppValue)
; | 5368 V8TestObject::PrivateScript::enumForPrivateScriptAttributeSetter(toLocalFram
e(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, cppValue)
; |
5149 } | 5369 } |
5150 | 5370 |
5151 static void enumForPrivateScriptAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 5371 static void enumForPrivateScriptAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
5152 { | 5372 { |
5153 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 5373 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
5154 TestObjectV8Internal::enumForPrivateScriptAttributeSetter(v8Value, info); | 5374 TestObjectV8Internal::enumForPrivateScriptAttributeSetter(v8Value, info); |
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5448 | 5668 |
5449 static void voidMethodStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 5669 static void voidMethodStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
5450 { | 5670 { |
5451 if (UNLIKELY(info.Length() < 1)) { | 5671 if (UNLIKELY(info.Length() < 1)) { |
5452 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "voidMethodStringArg", "TestObject", 1, info.Length()), info.Ge
tIsolate()); | 5672 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "voidMethodStringArg", "TestObject", 1, info.Length()), info.Ge
tIsolate()); |
5453 return; | 5673 return; |
5454 } | 5674 } |
5455 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 5675 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
5456 V8StringResource<> stringArg; | 5676 V8StringResource<> stringArg; |
5457 { | 5677 { |
5458 TOSTRING_VOID_INTERNAL(stringArg, info[0]); | 5678 stringArg = info[0]; |
| 5679 if (!stringArg.prepare()) |
| 5680 return; |
5459 } | 5681 } |
5460 impl->voidMethodStringArg(stringArg); | 5682 impl->voidMethodStringArg(stringArg); |
5461 } | 5683 } |
5462 | 5684 |
5463 static void voidMethodStringArgMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 5685 static void voidMethodStringArgMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
5464 { | 5686 { |
5465 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 5687 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
5466 TestObjectV8Internal::voidMethodStringArgMethod(info); | 5688 TestObjectV8Internal::voidMethodStringArgMethod(info); |
5467 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5689 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5468 } | 5690 } |
5469 | 5691 |
5470 static void voidMethodByteStringArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 5692 static void voidMethodByteStringArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
5471 { | 5693 { |
5472 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodB
yteStringArg", "TestObject", info.Holder(), info.GetIsolate()); | 5694 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodB
yteStringArg", "TestObject", info.Holder(), info.GetIsolate()); |
5473 if (UNLIKELY(info.Length() < 1)) { | 5695 if (UNLIKELY(info.Length() < 1)) { |
5474 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 5696 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
5475 exceptionState.throwIfNeeded(); | 5697 exceptionState.throwIfNeeded(); |
5476 return; | 5698 return; |
5477 } | 5699 } |
5478 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 5700 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
5479 V8StringResource<> stringArg; | 5701 V8StringResource<> stringArg; |
5480 { | 5702 { |
5481 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(stringArg, toByteString(info[0], e
xceptionState), exceptionState); | 5703 stringArg = toByteString(info[0], exceptionState); |
| 5704 if (exceptionState.throwIfNeeded()) |
| 5705 return; |
5482 } | 5706 } |
5483 impl->voidMethodByteStringArg(stringArg); | 5707 impl->voidMethodByteStringArg(stringArg); |
5484 } | 5708 } |
5485 | 5709 |
5486 static void voidMethodByteStringArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) | 5710 static void voidMethodByteStringArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) |
5487 { | 5711 { |
5488 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 5712 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
5489 TestObjectV8Internal::voidMethodByteStringArgMethod(info); | 5713 TestObjectV8Internal::voidMethodByteStringArgMethod(info); |
5490 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5714 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5491 } | 5715 } |
5492 | 5716 |
5493 static void voidMethodUSVStringArgMethod(const v8::FunctionCallbackInfo<v8::Valu
e>& info) | 5717 static void voidMethodUSVStringArgMethod(const v8::FunctionCallbackInfo<v8::Valu
e>& info) |
5494 { | 5718 { |
5495 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
SVStringArg", "TestObject", info.Holder(), info.GetIsolate()); | 5719 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
SVStringArg", "TestObject", info.Holder(), info.GetIsolate()); |
5496 if (UNLIKELY(info.Length() < 1)) { | 5720 if (UNLIKELY(info.Length() < 1)) { |
5497 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 5721 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
5498 exceptionState.throwIfNeeded(); | 5722 exceptionState.throwIfNeeded(); |
5499 return; | 5723 return; |
5500 } | 5724 } |
5501 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 5725 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
5502 V8StringResource<> usvStringArg; | 5726 V8StringResource<> usvStringArg; |
5503 { | 5727 { |
5504 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(usvStringArg, toUSVString(info[0],
exceptionState), exceptionState); | 5728 usvStringArg = toUSVString(info[0], exceptionState); |
| 5729 if (exceptionState.throwIfNeeded()) |
| 5730 return; |
5505 } | 5731 } |
5506 impl->voidMethodUSVStringArg(usvStringArg); | 5732 impl->voidMethodUSVStringArg(usvStringArg); |
5507 } | 5733 } |
5508 | 5734 |
5509 static void voidMethodUSVStringArgMethodCallback(const v8::FunctionCallbackInfo<
v8::Value>& info) | 5735 static void voidMethodUSVStringArgMethodCallback(const v8::FunctionCallbackInfo<
v8::Value>& info) |
5510 { | 5736 { |
5511 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 5737 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
5512 TestObjectV8Internal::voidMethodUSVStringArgMethod(info); | 5738 TestObjectV8Internal::voidMethodUSVStringArgMethod(info); |
5513 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5739 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5514 } | 5740 } |
5515 | 5741 |
5516 static void voidMethodDOMTimeStampArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 5742 static void voidMethodDOMTimeStampArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
5517 { | 5743 { |
5518 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
OMTimeStampArg", "TestObject", info.Holder(), info.GetIsolate()); | 5744 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
OMTimeStampArg", "TestObject", info.Holder(), info.GetIsolate()); |
5519 if (UNLIKELY(info.Length() < 1)) { | 5745 if (UNLIKELY(info.Length() < 1)) { |
5520 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 5746 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
5521 exceptionState.throwIfNeeded(); | 5747 exceptionState.throwIfNeeded(); |
5522 return; | 5748 return; |
5523 } | 5749 } |
5524 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 5750 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
5525 unsigned long long domTimeStampArg; | 5751 unsigned long long domTimeStampArg; |
5526 { | 5752 { |
5527 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(domTimeStampArg, toUInt64(info[0],
exceptionState), exceptionState); | 5753 domTimeStampArg = toUInt64(info[0], exceptionState); |
| 5754 if (exceptionState.throwIfNeeded()) |
| 5755 return; |
5528 } | 5756 } |
5529 impl->voidMethodDOMTimeStampArg(domTimeStampArg); | 5757 impl->voidMethodDOMTimeStampArg(domTimeStampArg); |
5530 } | 5758 } |
5531 | 5759 |
5532 static void voidMethodDOMTimeStampArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 5760 static void voidMethodDOMTimeStampArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
5533 { | 5761 { |
5534 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 5762 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
5535 TestObjectV8Internal::voidMethodDOMTimeStampArgMethod(info); | 5763 TestObjectV8Internal::voidMethodDOMTimeStampArgMethod(info); |
5536 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5764 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5537 } | 5765 } |
(...skipping 23 matching lines...) Expand all Loading... |
5561 { | 5789 { |
5562 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodB
yteArg", "TestObject", info.Holder(), info.GetIsolate()); | 5790 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodB
yteArg", "TestObject", info.Holder(), info.GetIsolate()); |
5563 if (UNLIKELY(info.Length() < 1)) { | 5791 if (UNLIKELY(info.Length() < 1)) { |
5564 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 5792 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
5565 exceptionState.throwIfNeeded(); | 5793 exceptionState.throwIfNeeded(); |
5566 return; | 5794 return; |
5567 } | 5795 } |
5568 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 5796 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
5569 int byteArg; | 5797 int byteArg; |
5570 { | 5798 { |
5571 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(byteArg, toInt8(info[0], exception
State), exceptionState); | 5799 byteArg = toInt8(info[0], exceptionState); |
| 5800 if (exceptionState.throwIfNeeded()) |
| 5801 return; |
5572 } | 5802 } |
5573 impl->voidMethodByteArg(byteArg); | 5803 impl->voidMethodByteArg(byteArg); |
5574 } | 5804 } |
5575 | 5805 |
5576 static void voidMethodByteArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 5806 static void voidMethodByteArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
5577 { | 5807 { |
5578 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 5808 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
5579 TestObjectV8Internal::voidMethodByteArgMethod(info); | 5809 TestObjectV8Internal::voidMethodByteArgMethod(info); |
5580 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5810 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5581 } | 5811 } |
5582 | 5812 |
5583 static void voidMethodDoubleArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 5813 static void voidMethodDoubleArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
5584 { | 5814 { |
5585 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
oubleArg", "TestObject", info.Holder(), info.GetIsolate()); | 5815 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
oubleArg", "TestObject", info.Holder(), info.GetIsolate()); |
5586 if (UNLIKELY(info.Length() < 1)) { | 5816 if (UNLIKELY(info.Length() < 1)) { |
5587 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 5817 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
5588 exceptionState.throwIfNeeded(); | 5818 exceptionState.throwIfNeeded(); |
5589 return; | 5819 return; |
5590 } | 5820 } |
5591 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 5821 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
5592 double doubleArg; | 5822 double doubleArg; |
5593 { | 5823 { |
5594 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(doubleArg, toDouble(info[0], excep
tionState), exceptionState); | 5824 doubleArg = toDouble(info[0], exceptionState); |
| 5825 if (exceptionState.throwIfNeeded()) |
| 5826 return; |
5595 } | 5827 } |
5596 impl->voidMethodDoubleArg(doubleArg); | 5828 impl->voidMethodDoubleArg(doubleArg); |
5597 } | 5829 } |
5598 | 5830 |
5599 static void voidMethodDoubleArgMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 5831 static void voidMethodDoubleArgMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
5600 { | 5832 { |
5601 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 5833 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
5602 TestObjectV8Internal::voidMethodDoubleArgMethod(info); | 5834 TestObjectV8Internal::voidMethodDoubleArgMethod(info); |
5603 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5835 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5604 } | 5836 } |
5605 | 5837 |
5606 static void voidMethodFloatArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 5838 static void voidMethodFloatArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
5607 { | 5839 { |
5608 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodF
loatArg", "TestObject", info.Holder(), info.GetIsolate()); | 5840 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodF
loatArg", "TestObject", info.Holder(), info.GetIsolate()); |
5609 if (UNLIKELY(info.Length() < 1)) { | 5841 if (UNLIKELY(info.Length() < 1)) { |
5610 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 5842 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
5611 exceptionState.throwIfNeeded(); | 5843 exceptionState.throwIfNeeded(); |
5612 return; | 5844 return; |
5613 } | 5845 } |
5614 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 5846 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
5615 float floatArg; | 5847 float floatArg; |
5616 { | 5848 { |
5617 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(floatArg, toFloat(info[0], excepti
onState), exceptionState); | 5849 floatArg = toFloat(info[0], exceptionState); |
| 5850 if (exceptionState.throwIfNeeded()) |
| 5851 return; |
5618 } | 5852 } |
5619 impl->voidMethodFloatArg(floatArg); | 5853 impl->voidMethodFloatArg(floatArg); |
5620 } | 5854 } |
5621 | 5855 |
5622 static void voidMethodFloatArgMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) | 5856 static void voidMethodFloatArgMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) |
5623 { | 5857 { |
5624 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 5858 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
5625 TestObjectV8Internal::voidMethodFloatArgMethod(info); | 5859 TestObjectV8Internal::voidMethodFloatArgMethod(info); |
5626 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5860 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5627 } | 5861 } |
5628 | 5862 |
5629 static void voidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 5863 static void voidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
5630 { | 5864 { |
5631 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArg", "TestObject", info.Holder(), info.GetIsolate()); | 5865 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArg", "TestObject", info.Holder(), info.GetIsolate()); |
5632 if (UNLIKELY(info.Length() < 1)) { | 5866 if (UNLIKELY(info.Length() < 1)) { |
5633 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 5867 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
5634 exceptionState.throwIfNeeded(); | 5868 exceptionState.throwIfNeeded(); |
5635 return; | 5869 return; |
5636 } | 5870 } |
5637 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 5871 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
5638 int longArg; | 5872 int longArg; |
5639 { | 5873 { |
5640 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); | 5874 longArg = toInt32(info[0], exceptionState); |
| 5875 if (exceptionState.throwIfNeeded()) |
| 5876 return; |
5641 } | 5877 } |
5642 impl->voidMethodLongArg(longArg); | 5878 impl->voidMethodLongArg(longArg); |
5643 } | 5879 } |
5644 | 5880 |
5645 static void voidMethodLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 5881 static void voidMethodLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
5646 { | 5882 { |
5647 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 5883 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
5648 TestObjectV8Internal::voidMethodLongArgMethod(info); | 5884 TestObjectV8Internal::voidMethodLongArgMethod(info); |
5649 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5885 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5650 } | 5886 } |
5651 | 5887 |
5652 static void voidMethodLongLongArgMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) | 5888 static void voidMethodLongLongArgMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) |
5653 { | 5889 { |
5654 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 5890 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
5655 if (UNLIKELY(info.Length() < 1)) { | 5891 if (UNLIKELY(info.Length() < 1)) { |
5656 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 5892 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
5657 exceptionState.throwIfNeeded(); | 5893 exceptionState.throwIfNeeded(); |
5658 return; | 5894 return; |
5659 } | 5895 } |
5660 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 5896 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
5661 long long longLongArg; | 5897 long long longLongArg; |
5662 { | 5898 { |
5663 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longLongArg, toInt64(info[0], exce
ptionState), exceptionState); | 5899 longLongArg = toInt64(info[0], exceptionState); |
| 5900 if (exceptionState.throwIfNeeded()) |
| 5901 return; |
5664 } | 5902 } |
5665 impl->voidMethodLongLongArg(longLongArg); | 5903 impl->voidMethodLongLongArg(longLongArg); |
5666 } | 5904 } |
5667 | 5905 |
5668 static void voidMethodLongLongArgMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) | 5906 static void voidMethodLongLongArgMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) |
5669 { | 5907 { |
5670 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 5908 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
5671 TestObjectV8Internal::voidMethodLongLongArgMethod(info); | 5909 TestObjectV8Internal::voidMethodLongLongArgMethod(info); |
5672 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5910 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5673 } | 5911 } |
5674 | 5912 |
5675 static void voidMethodOctetArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 5913 static void voidMethodOctetArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
5676 { | 5914 { |
5677 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO
ctetArg", "TestObject", info.Holder(), info.GetIsolate()); | 5915 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO
ctetArg", "TestObject", info.Holder(), info.GetIsolate()); |
5678 if (UNLIKELY(info.Length() < 1)) { | 5916 if (UNLIKELY(info.Length() < 1)) { |
5679 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 5917 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
5680 exceptionState.throwIfNeeded(); | 5918 exceptionState.throwIfNeeded(); |
5681 return; | 5919 return; |
5682 } | 5920 } |
5683 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 5921 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
5684 unsigned octetArg; | 5922 unsigned octetArg; |
5685 { | 5923 { |
5686 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(octetArg, toUInt8(info[0], excepti
onState), exceptionState); | 5924 octetArg = toUInt8(info[0], exceptionState); |
| 5925 if (exceptionState.throwIfNeeded()) |
| 5926 return; |
5687 } | 5927 } |
5688 impl->voidMethodOctetArg(octetArg); | 5928 impl->voidMethodOctetArg(octetArg); |
5689 } | 5929 } |
5690 | 5930 |
5691 static void voidMethodOctetArgMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) | 5931 static void voidMethodOctetArgMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) |
5692 { | 5932 { |
5693 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 5933 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
5694 TestObjectV8Internal::voidMethodOctetArgMethod(info); | 5934 TestObjectV8Internal::voidMethodOctetArgMethod(info); |
5695 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5935 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5696 } | 5936 } |
5697 | 5937 |
5698 static void voidMethodShortArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 5938 static void voidMethodShortArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
5699 { | 5939 { |
5700 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
hortArg", "TestObject", info.Holder(), info.GetIsolate()); | 5940 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
hortArg", "TestObject", info.Holder(), info.GetIsolate()); |
5701 if (UNLIKELY(info.Length() < 1)) { | 5941 if (UNLIKELY(info.Length() < 1)) { |
5702 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 5942 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
5703 exceptionState.throwIfNeeded(); | 5943 exceptionState.throwIfNeeded(); |
5704 return; | 5944 return; |
5705 } | 5945 } |
5706 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 5946 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
5707 int shortArg; | 5947 int shortArg; |
5708 { | 5948 { |
5709 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(shortArg, toInt16(info[0], excepti
onState), exceptionState); | 5949 shortArg = toInt16(info[0], exceptionState); |
| 5950 if (exceptionState.throwIfNeeded()) |
| 5951 return; |
5710 } | 5952 } |
5711 impl->voidMethodShortArg(shortArg); | 5953 impl->voidMethodShortArg(shortArg); |
5712 } | 5954 } |
5713 | 5955 |
5714 static void voidMethodShortArgMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) | 5956 static void voidMethodShortArgMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) |
5715 { | 5957 { |
5716 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 5958 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
5717 TestObjectV8Internal::voidMethodShortArgMethod(info); | 5959 TestObjectV8Internal::voidMethodShortArgMethod(info); |
5718 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5960 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5719 } | 5961 } |
5720 | 5962 |
5721 static void voidMethodUnsignedLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 5963 static void voidMethodUnsignedLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
5722 { | 5964 { |
5723 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
nsignedLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 5965 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
nsignedLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
5724 if (UNLIKELY(info.Length() < 1)) { | 5966 if (UNLIKELY(info.Length() < 1)) { |
5725 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 5967 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
5726 exceptionState.throwIfNeeded(); | 5968 exceptionState.throwIfNeeded(); |
5727 return; | 5969 return; |
5728 } | 5970 } |
5729 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 5971 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
5730 unsigned unsignedLongArg; | 5972 unsigned unsignedLongArg; |
5731 { | 5973 { |
5732 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(unsignedLongArg, toUInt32(info[0],
exceptionState), exceptionState); | 5974 unsignedLongArg = toUInt32(info[0], exceptionState); |
| 5975 if (exceptionState.throwIfNeeded()) |
| 5976 return; |
5733 } | 5977 } |
5734 impl->voidMethodUnsignedLongArg(unsignedLongArg); | 5978 impl->voidMethodUnsignedLongArg(unsignedLongArg); |
5735 } | 5979 } |
5736 | 5980 |
5737 static void voidMethodUnsignedLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 5981 static void voidMethodUnsignedLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
5738 { | 5982 { |
5739 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 5983 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
5740 TestObjectV8Internal::voidMethodUnsignedLongArgMethod(info); | 5984 TestObjectV8Internal::voidMethodUnsignedLongArgMethod(info); |
5741 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5985 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5742 } | 5986 } |
5743 | 5987 |
5744 static void voidMethodUnsignedLongLongArgMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) | 5988 static void voidMethodUnsignedLongLongArgMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) |
5745 { | 5989 { |
5746 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
nsignedLongLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 5990 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
nsignedLongLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
5747 if (UNLIKELY(info.Length() < 1)) { | 5991 if (UNLIKELY(info.Length() < 1)) { |
5748 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 5992 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
5749 exceptionState.throwIfNeeded(); | 5993 exceptionState.throwIfNeeded(); |
5750 return; | 5994 return; |
5751 } | 5995 } |
5752 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 5996 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
5753 unsigned long long unsignedLongLongArg; | 5997 unsigned long long unsignedLongLongArg; |
5754 { | 5998 { |
5755 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(unsignedLongLongArg, toUInt64(info
[0], exceptionState), exceptionState); | 5999 unsignedLongLongArg = toUInt64(info[0], exceptionState); |
| 6000 if (exceptionState.throwIfNeeded()) |
| 6001 return; |
5756 } | 6002 } |
5757 impl->voidMethodUnsignedLongLongArg(unsignedLongLongArg); | 6003 impl->voidMethodUnsignedLongLongArg(unsignedLongLongArg); |
5758 } | 6004 } |
5759 | 6005 |
5760 static void voidMethodUnsignedLongLongArgMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) | 6006 static void voidMethodUnsignedLongLongArgMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
5761 { | 6007 { |
5762 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 6008 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
5763 TestObjectV8Internal::voidMethodUnsignedLongLongArgMethod(info); | 6009 TestObjectV8Internal::voidMethodUnsignedLongLongArgMethod(info); |
5764 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 6010 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5765 } | 6011 } |
5766 | 6012 |
5767 static void voidMethodUnsignedShortArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) | 6013 static void voidMethodUnsignedShortArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) |
5768 { | 6014 { |
5769 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
nsignedShortArg", "TestObject", info.Holder(), info.GetIsolate()); | 6015 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
nsignedShortArg", "TestObject", info.Holder(), info.GetIsolate()); |
5770 if (UNLIKELY(info.Length() < 1)) { | 6016 if (UNLIKELY(info.Length() < 1)) { |
5771 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 6017 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
5772 exceptionState.throwIfNeeded(); | 6018 exceptionState.throwIfNeeded(); |
5773 return; | 6019 return; |
5774 } | 6020 } |
5775 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 6021 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
5776 unsigned unsignedShortArg; | 6022 unsigned unsignedShortArg; |
5777 { | 6023 { |
5778 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(unsignedShortArg, toUInt16(info[0]
, exceptionState), exceptionState); | 6024 unsignedShortArg = toUInt16(info[0], exceptionState); |
| 6025 if (exceptionState.throwIfNeeded()) |
| 6026 return; |
5779 } | 6027 } |
5780 impl->voidMethodUnsignedShortArg(unsignedShortArg); | 6028 impl->voidMethodUnsignedShortArg(unsignedShortArg); |
5781 } | 6029 } |
5782 | 6030 |
5783 static void voidMethodUnsignedShortArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 6031 static void voidMethodUnsignedShortArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
5784 { | 6032 { |
5785 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 6033 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
5786 TestObjectV8Internal::voidMethodUnsignedShortArgMethod(info); | 6034 TestObjectV8Internal::voidMethodUnsignedShortArgMethod(info); |
5787 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 6035 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5788 } | 6036 } |
(...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()); | 6074 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsolate()); |
5827 if (UNLIKELY(info.Length() < 2)) { | 6075 if (UNLIKELY(info.Length() < 2)) { |
5828 setMinimumArityTypeError(exceptionState, 2, info.Length()); | 6076 setMinimumArityTypeError(exceptionState, 2, info.Length()); |
5829 exceptionState.throwIfNeeded(); | 6077 exceptionState.throwIfNeeded(); |
5830 return; | 6078 return; |
5831 } | 6079 } |
5832 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 6080 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
5833 int longArg; | 6081 int longArg; |
5834 TestInterfaceEmpty* testInterfaceEmptyArg; | 6082 TestInterfaceEmpty* testInterfaceEmptyArg; |
5835 { | 6083 { |
5836 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); | 6084 longArg = toInt32(info[0], exceptionState); |
| 6085 if (exceptionState.throwIfNeeded()) |
| 6086 return; |
5837 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.G
etIsolate(), info[1]); | 6087 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.G
etIsolate(), info[1]); |
5838 } | 6088 } |
5839 impl->voidMethodLongArgTestInterfaceEmptyArg(longArg, testInterfaceEmptyArg)
; | 6089 impl->voidMethodLongArgTestInterfaceEmptyArg(longArg, testInterfaceEmptyArg)
; |
5840 } | 6090 } |
5841 | 6091 |
5842 static void voidMethodLongArgTestInterfaceEmptyArgMethodCallback(const v8::Funct
ionCallbackInfo<v8::Value>& info) | 6092 static void voidMethodLongArgTestInterfaceEmptyArgMethodCallback(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
5843 { | 6093 { |
5844 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 6094 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
5845 TestObjectV8Internal::voidMethodLongArgTestInterfaceEmptyArgMethod(info); | 6095 TestObjectV8Internal::voidMethodLongArgTestInterfaceEmptyArgMethod(info); |
5846 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 6096 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6366 { | 6616 { |
6367 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodA
rrayLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 6617 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodA
rrayLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
6368 if (UNLIKELY(info.Length() < 1)) { | 6618 if (UNLIKELY(info.Length() < 1)) { |
6369 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 6619 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
6370 exceptionState.throwIfNeeded(); | 6620 exceptionState.throwIfNeeded(); |
6371 return; | 6621 return; |
6372 } | 6622 } |
6373 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 6623 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
6374 Vector<int> arrayLongArg; | 6624 Vector<int> arrayLongArg; |
6375 { | 6625 { |
6376 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arrayLongArg, toImplArray<int>(inf
o[0], 1, info.GetIsolate(), exceptionState), exceptionState); | 6626 arrayLongArg = toImplArray<int>(info[0], 1, info.GetIsolate(), exception
State); |
| 6627 if (exceptionState.throwIfNeeded()) |
| 6628 return; |
6377 } | 6629 } |
6378 impl->voidMethodArrayLongArg(arrayLongArg); | 6630 impl->voidMethodArrayLongArg(arrayLongArg); |
6379 } | 6631 } |
6380 | 6632 |
6381 static void voidMethodArrayLongArgMethodCallback(const v8::FunctionCallbackInfo<
v8::Value>& info) | 6633 static void voidMethodArrayLongArgMethodCallback(const v8::FunctionCallbackInfo<
v8::Value>& info) |
6382 { | 6634 { |
6383 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 6635 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
6384 TestObjectV8Internal::voidMethodArrayLongArgMethod(info); | 6636 TestObjectV8Internal::voidMethodArrayLongArgMethod(info); |
6385 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 6637 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
6386 } | 6638 } |
6387 | 6639 |
6388 static void voidMethodArrayStringArgMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 6640 static void voidMethodArrayStringArgMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
6389 { | 6641 { |
6390 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodA
rrayStringArg", "TestObject", info.Holder(), info.GetIsolate()); | 6642 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodA
rrayStringArg", "TestObject", info.Holder(), info.GetIsolate()); |
6391 if (UNLIKELY(info.Length() < 1)) { | 6643 if (UNLIKELY(info.Length() < 1)) { |
6392 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 6644 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
6393 exceptionState.throwIfNeeded(); | 6645 exceptionState.throwIfNeeded(); |
6394 return; | 6646 return; |
6395 } | 6647 } |
6396 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 6648 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
6397 Vector<String> arrayStringArg; | 6649 Vector<String> arrayStringArg; |
6398 { | 6650 { |
6399 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arrayStringArg, toImplArray<String
>(info[0], 1, info.GetIsolate(), exceptionState), exceptionState); | 6651 arrayStringArg = toImplArray<String>(info[0], 1, info.GetIsolate(), exce
ptionState); |
| 6652 if (exceptionState.throwIfNeeded()) |
| 6653 return; |
6400 } | 6654 } |
6401 impl->voidMethodArrayStringArg(arrayStringArg); | 6655 impl->voidMethodArrayStringArg(arrayStringArg); |
6402 } | 6656 } |
6403 | 6657 |
6404 static void voidMethodArrayStringArgMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) | 6658 static void voidMethodArrayStringArgMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) |
6405 { | 6659 { |
6406 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 6660 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
6407 TestObjectV8Internal::voidMethodArrayStringArgMethod(info); | 6661 TestObjectV8Internal::voidMethodArrayStringArgMethod(info); |
6408 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 6662 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
6409 } | 6663 } |
6410 | 6664 |
6411 static void voidMethodArrayTestInterfaceEmptyArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 6665 static void voidMethodArrayTestInterfaceEmptyArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
6412 { | 6666 { |
6413 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodA
rrayTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsolate()); | 6667 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodA
rrayTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsolate()); |
6414 if (UNLIKELY(info.Length() < 1)) { | 6668 if (UNLIKELY(info.Length() < 1)) { |
6415 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 6669 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
6416 exceptionState.throwIfNeeded(); | 6670 exceptionState.throwIfNeeded(); |
6417 return; | 6671 return; |
6418 } | 6672 } |
6419 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 6673 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
6420 Vector<RefPtr<TestInterfaceEmpty>> arrayTestInterfaceEmptyArg; | 6674 Vector<RefPtr<TestInterfaceEmpty>> arrayTestInterfaceEmptyArg; |
6421 { | 6675 { |
6422 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arrayTestInterfaceEmptyArg, (toRef
PtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1, info.GetIso
late(), exceptionState)), exceptionState); | 6676 arrayTestInterfaceEmptyArg = (toRefPtrNativeArray<TestInterfaceEmpty, V8
TestInterfaceEmpty>(info[0], 1, info.GetIsolate(), exceptionState)); |
| 6677 if (exceptionState.throwIfNeeded()) |
| 6678 return; |
6423 } | 6679 } |
6424 impl->voidMethodArrayTestInterfaceEmptyArg(arrayTestInterfaceEmptyArg); | 6680 impl->voidMethodArrayTestInterfaceEmptyArg(arrayTestInterfaceEmptyArg); |
6425 } | 6681 } |
6426 | 6682 |
6427 static void voidMethodArrayTestInterfaceEmptyArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) | 6683 static void voidMethodArrayTestInterfaceEmptyArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) |
6428 { | 6684 { |
6429 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 6685 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
6430 TestObjectV8Internal::voidMethodArrayTestInterfaceEmptyArgMethod(info); | 6686 TestObjectV8Internal::voidMethodArrayTestInterfaceEmptyArgMethod(info); |
6431 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 6687 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
6432 } | 6688 } |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6474 { | 6730 { |
6475 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
equenceLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 6731 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
equenceLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
6476 if (UNLIKELY(info.Length() < 1)) { | 6732 if (UNLIKELY(info.Length() < 1)) { |
6477 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 6733 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
6478 exceptionState.throwIfNeeded(); | 6734 exceptionState.throwIfNeeded(); |
6479 return; | 6735 return; |
6480 } | 6736 } |
6481 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 6737 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
6482 Vector<int> longSequenceArg; | 6738 Vector<int> longSequenceArg; |
6483 { | 6739 { |
6484 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longSequenceArg, toImplArray<int>(
info[0], 1, info.GetIsolate(), exceptionState), exceptionState); | 6740 longSequenceArg = toImplArray<int>(info[0], 1, info.GetIsolate(), except
ionState); |
| 6741 if (exceptionState.throwIfNeeded()) |
| 6742 return; |
6485 } | 6743 } |
6486 impl->voidMethodSequenceLongArg(longSequenceArg); | 6744 impl->voidMethodSequenceLongArg(longSequenceArg); |
6487 } | 6745 } |
6488 | 6746 |
6489 static void voidMethodSequenceLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 6747 static void voidMethodSequenceLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
6490 { | 6748 { |
6491 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 6749 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
6492 TestObjectV8Internal::voidMethodSequenceLongArgMethod(info); | 6750 TestObjectV8Internal::voidMethodSequenceLongArgMethod(info); |
6493 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 6751 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
6494 } | 6752 } |
6495 | 6753 |
6496 static void voidMethodSequenceStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 6754 static void voidMethodSequenceStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
6497 { | 6755 { |
6498 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
equenceStringArg", "TestObject", info.Holder(), info.GetIsolate()); | 6756 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
equenceStringArg", "TestObject", info.Holder(), info.GetIsolate()); |
6499 if (UNLIKELY(info.Length() < 1)) { | 6757 if (UNLIKELY(info.Length() < 1)) { |
6500 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 6758 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
6501 exceptionState.throwIfNeeded(); | 6759 exceptionState.throwIfNeeded(); |
6502 return; | 6760 return; |
6503 } | 6761 } |
6504 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 6762 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
6505 Vector<String> stringSequenceArg; | 6763 Vector<String> stringSequenceArg; |
6506 { | 6764 { |
6507 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(stringSequenceArg, toImplArray<Str
ing>(info[0], 1, info.GetIsolate(), exceptionState), exceptionState); | 6765 stringSequenceArg = toImplArray<String>(info[0], 1, info.GetIsolate(), e
xceptionState); |
| 6766 if (exceptionState.throwIfNeeded()) |
| 6767 return; |
6508 } | 6768 } |
6509 impl->voidMethodSequenceStringArg(stringSequenceArg); | 6769 impl->voidMethodSequenceStringArg(stringSequenceArg); |
6510 } | 6770 } |
6511 | 6771 |
6512 static void voidMethodSequenceStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 6772 static void voidMethodSequenceStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
6513 { | 6773 { |
6514 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 6774 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
6515 TestObjectV8Internal::voidMethodSequenceStringArgMethod(info); | 6775 TestObjectV8Internal::voidMethodSequenceStringArgMethod(info); |
6516 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 6776 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
6517 } | 6777 } |
6518 | 6778 |
6519 static void voidMethodSequenceTestInterfaceEmptyArgMethod(const v8::FunctionCall
backInfo<v8::Value>& info) | 6779 static void voidMethodSequenceTestInterfaceEmptyArgMethod(const v8::FunctionCall
backInfo<v8::Value>& info) |
6520 { | 6780 { |
6521 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
equenceTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsolate()); | 6781 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
equenceTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsolate()); |
6522 if (UNLIKELY(info.Length() < 1)) { | 6782 if (UNLIKELY(info.Length() < 1)) { |
6523 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 6783 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
6524 exceptionState.throwIfNeeded(); | 6784 exceptionState.throwIfNeeded(); |
6525 return; | 6785 return; |
6526 } | 6786 } |
6527 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 6787 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
6528 Vector<RefPtr<TestInterfaceEmpty>> testInterfaceEmptySequenceArg; | 6788 Vector<RefPtr<TestInterfaceEmpty>> testInterfaceEmptySequenceArg; |
6529 { | 6789 { |
6530 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(testInterfaceEmptySequenceArg, (to
RefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1, info.Get
Isolate(), exceptionState)), exceptionState); | 6790 testInterfaceEmptySequenceArg = (toRefPtrNativeArray<TestInterfaceEmpty,
V8TestInterfaceEmpty>(info[0], 1, info.GetIsolate(), exceptionState)); |
| 6791 if (exceptionState.throwIfNeeded()) |
| 6792 return; |
6531 } | 6793 } |
6532 impl->voidMethodSequenceTestInterfaceEmptyArg(testInterfaceEmptySequenceArg)
; | 6794 impl->voidMethodSequenceTestInterfaceEmptyArg(testInterfaceEmptySequenceArg)
; |
6533 } | 6795 } |
6534 | 6796 |
6535 static void voidMethodSequenceTestInterfaceEmptyArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) | 6797 static void voidMethodSequenceTestInterfaceEmptyArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
6536 { | 6798 { |
6537 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 6799 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
6538 TestObjectV8Internal::voidMethodSequenceTestInterfaceEmptyArgMethod(info); | 6800 TestObjectV8Internal::voidMethodSequenceTestInterfaceEmptyArgMethod(info); |
6539 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 6801 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
6540 } | 6802 } |
6541 | 6803 |
6542 static void voidMethodSequenceSequenceDOMStringArgMethod(const v8::FunctionCallb
ackInfo<v8::Value>& info) | 6804 static void voidMethodSequenceSequenceDOMStringArgMethod(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
6543 { | 6805 { |
6544 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
equenceSequenceDOMStringArg", "TestObject", info.Holder(), info.GetIsolate()); | 6806 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
equenceSequenceDOMStringArg", "TestObject", info.Holder(), info.GetIsolate()); |
6545 if (UNLIKELY(info.Length() < 1)) { | 6807 if (UNLIKELY(info.Length() < 1)) { |
6546 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 6808 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
6547 exceptionState.throwIfNeeded(); | 6809 exceptionState.throwIfNeeded(); |
6548 return; | 6810 return; |
6549 } | 6811 } |
6550 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 6812 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
6551 Vector<Vector<String>> stringSequenceSequenceArg; | 6813 Vector<Vector<String>> stringSequenceSequenceArg; |
6552 { | 6814 { |
6553 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(stringSequenceSequenceArg, toImplA
rray<Vector<String>>(info[0], 1, info.GetIsolate(), exceptionState), exceptionSt
ate); | 6815 stringSequenceSequenceArg = toImplArray<Vector<String>>(info[0], 1, info
.GetIsolate(), exceptionState); |
| 6816 if (exceptionState.throwIfNeeded()) |
| 6817 return; |
6554 } | 6818 } |
6555 impl->voidMethodSequenceSequenceDOMStringArg(stringSequenceSequenceArg); | 6819 impl->voidMethodSequenceSequenceDOMStringArg(stringSequenceSequenceArg); |
6556 } | 6820 } |
6557 | 6821 |
6558 static void voidMethodSequenceSequenceDOMStringArgMethodCallback(const v8::Funct
ionCallbackInfo<v8::Value>& info) | 6822 static void voidMethodSequenceSequenceDOMStringArgMethodCallback(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
6559 { | 6823 { |
6560 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 6824 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
6561 TestObjectV8Internal::voidMethodSequenceSequenceDOMStringArgMethod(info); | 6825 TestObjectV8Internal::voidMethodSequenceSequenceDOMStringArgMethod(info); |
6562 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 6826 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
6563 } | 6827 } |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6686 { | 6950 { |
6687 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
oubleOrDOMStringArg", "TestObject", info.Holder(), info.GetIsolate()); | 6951 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
oubleOrDOMStringArg", "TestObject", info.Holder(), info.GetIsolate()); |
6688 if (UNLIKELY(info.Length() < 1)) { | 6952 if (UNLIKELY(info.Length() < 1)) { |
6689 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 6953 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
6690 exceptionState.throwIfNeeded(); | 6954 exceptionState.throwIfNeeded(); |
6691 return; | 6955 return; |
6692 } | 6956 } |
6693 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 6957 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
6694 DoubleOrString arg; | 6958 DoubleOrString arg; |
6695 { | 6959 { |
6696 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8DoubleOrString::toImpl(info.G
etIsolate(), info[0], arg, exceptionState), exceptionState); | 6960 if (!V8DoubleOrString::toImpl(info.GetIsolate(), info[0], arg, exception
State)) { |
| 6961 exceptionState.throwException(); |
| 6962 return; |
| 6963 } |
6697 } | 6964 } |
6698 impl->voidMethodDoubleOrDOMStringArg(arg); | 6965 impl->voidMethodDoubleOrDOMStringArg(arg); |
6699 } | 6966 } |
6700 | 6967 |
6701 static void voidMethodDoubleOrDOMStringArgMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) | 6968 static void voidMethodDoubleOrDOMStringArgMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
6702 { | 6969 { |
6703 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 6970 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
6704 TestObjectV8Internal::voidMethodDoubleOrDOMStringArgMethod(info); | 6971 TestObjectV8Internal::voidMethodDoubleOrDOMStringArgMethod(info); |
6705 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 6972 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
6706 } | 6973 } |
6707 | 6974 |
6708 static void voidMethodDoubleOrDOMStringOrNullArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 6975 static void voidMethodDoubleOrDOMStringOrNullArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
6709 { | 6976 { |
6710 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
oubleOrDOMStringOrNullArg", "TestObject", info.Holder(), info.GetIsolate()); | 6977 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
oubleOrDOMStringOrNullArg", "TestObject", info.Holder(), info.GetIsolate()); |
6711 if (UNLIKELY(info.Length() < 1)) { | 6978 if (UNLIKELY(info.Length() < 1)) { |
6712 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 6979 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
6713 exceptionState.throwIfNeeded(); | 6980 exceptionState.throwIfNeeded(); |
6714 return; | 6981 return; |
6715 } | 6982 } |
6716 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 6983 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
6717 DoubleOrString arg; | 6984 DoubleOrString arg; |
6718 { | 6985 { |
6719 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8DoubleOrStringOrNull::toImpl(
info.GetIsolate(), info[0], arg, exceptionState), exceptionState); | 6986 if (!V8DoubleOrStringOrNull::toImpl(info.GetIsolate(), info[0], arg, exc
eptionState)) { |
| 6987 exceptionState.throwException(); |
| 6988 return; |
| 6989 } |
6720 } | 6990 } |
6721 impl->voidMethodDoubleOrDOMStringOrNullArg(arg); | 6991 impl->voidMethodDoubleOrDOMStringOrNullArg(arg); |
6722 } | 6992 } |
6723 | 6993 |
6724 static void voidMethodDoubleOrDOMStringOrNullArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) | 6994 static void voidMethodDoubleOrDOMStringOrNullArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) |
6725 { | 6995 { |
6726 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 6996 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
6727 TestObjectV8Internal::voidMethodDoubleOrDOMStringOrNullArgMethod(info); | 6997 TestObjectV8Internal::voidMethodDoubleOrDOMStringOrNullArgMethod(info); |
6728 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 6998 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
6729 } | 6999 } |
6730 | 7000 |
6731 static void voidMethodDoubleOrNullOrDOMStringArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 7001 static void voidMethodDoubleOrNullOrDOMStringArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
6732 { | 7002 { |
6733 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
oubleOrNullOrDOMStringArg", "TestObject", info.Holder(), info.GetIsolate()); | 7003 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
oubleOrNullOrDOMStringArg", "TestObject", info.Holder(), info.GetIsolate()); |
6734 if (UNLIKELY(info.Length() < 1)) { | 7004 if (UNLIKELY(info.Length() < 1)) { |
6735 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 7005 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
6736 exceptionState.throwIfNeeded(); | 7006 exceptionState.throwIfNeeded(); |
6737 return; | 7007 return; |
6738 } | 7008 } |
6739 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7009 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
6740 DoubleOrString arg; | 7010 DoubleOrString arg; |
6741 { | 7011 { |
6742 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8DoubleOrStringOrNull::toImpl(
info.GetIsolate(), info[0], arg, exceptionState), exceptionState); | 7012 if (!V8DoubleOrStringOrNull::toImpl(info.GetIsolate(), info[0], arg, exc
eptionState)) { |
| 7013 exceptionState.throwException(); |
| 7014 return; |
| 7015 } |
6743 } | 7016 } |
6744 impl->voidMethodDoubleOrNullOrDOMStringArg(arg); | 7017 impl->voidMethodDoubleOrNullOrDOMStringArg(arg); |
6745 } | 7018 } |
6746 | 7019 |
6747 static void voidMethodDoubleOrNullOrDOMStringArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) | 7020 static void voidMethodDoubleOrNullOrDOMStringArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) |
6748 { | 7021 { |
6749 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7022 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
6750 TestObjectV8Internal::voidMethodDoubleOrNullOrDOMStringArgMethod(info); | 7023 TestObjectV8Internal::voidMethodDoubleOrNullOrDOMStringArgMethod(info); |
6751 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7024 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
6752 } | 7025 } |
6753 | 7026 |
6754 static void voidMethodDOMStringOrArrayBufferOrArrayBufferViewArgMethod(const v8:
:FunctionCallbackInfo<v8::Value>& info) | 7027 static void voidMethodDOMStringOrArrayBufferOrArrayBufferViewArgMethod(const v8:
:FunctionCallbackInfo<v8::Value>& info) |
6755 { | 7028 { |
6756 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
OMStringOrArrayBufferOrArrayBufferViewArg", "TestObject", info.Holder(), info.Ge
tIsolate()); | 7029 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
OMStringOrArrayBufferOrArrayBufferViewArg", "TestObject", info.Holder(), info.Ge
tIsolate()); |
6757 if (UNLIKELY(info.Length() < 1)) { | 7030 if (UNLIKELY(info.Length() < 1)) { |
6758 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 7031 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
6759 exceptionState.throwIfNeeded(); | 7032 exceptionState.throwIfNeeded(); |
6760 return; | 7033 return; |
6761 } | 7034 } |
6762 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7035 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
6763 StringOrArrayBufferOrArrayBufferView arg; | 7036 StringOrArrayBufferOrArrayBufferView arg; |
6764 { | 7037 { |
6765 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8StringOrArrayBufferOrArrayBuf
ferView::toImpl(info.GetIsolate(), info[0], arg, exceptionState), exceptionState
); | 7038 if (!V8StringOrArrayBufferOrArrayBufferView::toImpl(info.GetIsolate(), i
nfo[0], arg, exceptionState)) { |
| 7039 exceptionState.throwException(); |
| 7040 return; |
| 7041 } |
6766 } | 7042 } |
6767 impl->voidMethodDOMStringOrArrayBufferOrArrayBufferViewArg(arg); | 7043 impl->voidMethodDOMStringOrArrayBufferOrArrayBufferViewArg(arg); |
6768 } | 7044 } |
6769 | 7045 |
6770 static void voidMethodDOMStringOrArrayBufferOrArrayBufferViewArgMethodCallback(c
onst v8::FunctionCallbackInfo<v8::Value>& info) | 7046 static void voidMethodDOMStringOrArrayBufferOrArrayBufferViewArgMethodCallback(c
onst v8::FunctionCallbackInfo<v8::Value>& info) |
6771 { | 7047 { |
6772 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7048 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
6773 TestObjectV8Internal::voidMethodDOMStringOrArrayBufferOrArrayBufferViewArgMe
thod(info); | 7049 TestObjectV8Internal::voidMethodDOMStringOrArrayBufferOrArrayBufferViewArgMe
thod(info); |
6774 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7050 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
6775 } | 7051 } |
6776 | 7052 |
6777 static void voidMethodArrayBufferOrArrayBufferViewOrDictionaryArgMethod(const v8
::FunctionCallbackInfo<v8::Value>& info) | 7053 static void voidMethodArrayBufferOrArrayBufferViewOrDictionaryArgMethod(const v8
::FunctionCallbackInfo<v8::Value>& info) |
6778 { | 7054 { |
6779 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodA
rrayBufferOrArrayBufferViewOrDictionaryArg", "TestObject", info.Holder(), info.G
etIsolate()); | 7055 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodA
rrayBufferOrArrayBufferViewOrDictionaryArg", "TestObject", info.Holder(), info.G
etIsolate()); |
6780 if (UNLIKELY(info.Length() < 1)) { | 7056 if (UNLIKELY(info.Length() < 1)) { |
6781 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 7057 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
6782 exceptionState.throwIfNeeded(); | 7058 exceptionState.throwIfNeeded(); |
6783 return; | 7059 return; |
6784 } | 7060 } |
6785 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7061 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
6786 ArrayBufferOrArrayBufferViewOrDictionary arg; | 7062 ArrayBufferOrArrayBufferViewOrDictionary arg; |
6787 { | 7063 { |
6788 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8ArrayBufferOrArrayBufferViewO
rDictionary::toImpl(info.GetIsolate(), info[0], arg, exceptionState), exceptionS
tate); | 7064 if (!V8ArrayBufferOrArrayBufferViewOrDictionary::toImpl(info.GetIsolate(
), info[0], arg, exceptionState)) { |
| 7065 exceptionState.throwException(); |
| 7066 return; |
| 7067 } |
6789 } | 7068 } |
6790 impl->voidMethodArrayBufferOrArrayBufferViewOrDictionaryArg(arg); | 7069 impl->voidMethodArrayBufferOrArrayBufferViewOrDictionaryArg(arg); |
6791 } | 7070 } |
6792 | 7071 |
6793 static void voidMethodArrayBufferOrArrayBufferViewOrDictionaryArgMethodCallback(
const v8::FunctionCallbackInfo<v8::Value>& info) | 7072 static void voidMethodArrayBufferOrArrayBufferViewOrDictionaryArgMethodCallback(
const v8::FunctionCallbackInfo<v8::Value>& info) |
6794 { | 7073 { |
6795 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7074 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
6796 TestObjectV8Internal::voidMethodArrayBufferOrArrayBufferViewOrDictionaryArgM
ethod(info); | 7075 TestObjectV8Internal::voidMethodArrayBufferOrArrayBufferViewOrDictionaryArgM
ethod(info); |
6797 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7076 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
6798 } | 7077 } |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6908 | 7187 |
6909 static void voidMethodTestEnumArgMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) | 7188 static void voidMethodTestEnumArgMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) |
6910 { | 7189 { |
6911 if (UNLIKELY(info.Length() < 1)) { | 7190 if (UNLIKELY(info.Length() < 1)) { |
6912 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "voidMethodTestEnumArg", "TestObject", 1, info.Length()), info.
GetIsolate()); | 7191 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "voidMethodTestEnumArg", "TestObject", 1, info.Length()), info.
GetIsolate()); |
6913 return; | 7192 return; |
6914 } | 7193 } |
6915 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7194 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
6916 V8StringResource<> testEnumTypeArg; | 7195 V8StringResource<> testEnumTypeArg; |
6917 { | 7196 { |
6918 TOSTRING_VOID_INTERNAL(testEnumTypeArg, info[0]); | 7197 testEnumTypeArg = info[0]; |
| 7198 if (!testEnumTypeArg.prepare()) |
| 7199 return; |
6919 String string = testEnumTypeArg; | 7200 String string = testEnumTypeArg; |
6920 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" |
| string == "EnumValue3")) { | 7201 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.")); | 7202 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessage
s::failedToExecute("voidMethodTestEnumArg", "TestObject", "parameter 1 ('" + str
ing + "') is not a valid enum value.")); |
6922 return; | 7203 return; |
6923 } | 7204 } |
6924 } | 7205 } |
6925 impl->voidMethodTestEnumArg(testEnumTypeArg); | 7206 impl->voidMethodTestEnumArg(testEnumTypeArg); |
6926 } | 7207 } |
6927 | 7208 |
6928 static void voidMethodTestEnumArgMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) | 7209 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); | 7258 TestObjectV8Internal::nullableTestDictionaryMethodMethod(info); |
6978 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7259 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
6979 } | 7260 } |
6980 | 7261 |
6981 static void passPermissiveDictionaryMethodMethod(const v8::FunctionCallbackInfo<
v8::Value>& info) | 7262 static void passPermissiveDictionaryMethodMethod(const v8::FunctionCallbackInfo<
v8::Value>& info) |
6982 { | 7263 { |
6983 ExceptionState exceptionState(ExceptionState::ExecutionContext, "passPermiss
iveDictionaryMethod", "TestObject", info.Holder(), info.GetIsolate()); | 7264 ExceptionState exceptionState(ExceptionState::ExecutionContext, "passPermiss
iveDictionaryMethod", "TestObject", info.Holder(), info.GetIsolate()); |
6984 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7265 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
6985 TestDictionary arg; | 7266 TestDictionary arg; |
6986 { | 7267 { |
6987 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8TestDictionary::toImpl(info.G
etIsolate(), info[0], arg, exceptionState), exceptionState); | 7268 if (!V8TestDictionary::toImpl(info.GetIsolate(), info[0], arg, exception
State)) { |
| 7269 exceptionState.throwException(); |
| 7270 return; |
| 7271 } |
6988 } | 7272 } |
6989 impl->passPermissiveDictionaryMethod(arg); | 7273 impl->passPermissiveDictionaryMethod(arg); |
6990 } | 7274 } |
6991 | 7275 |
6992 static void passPermissiveDictionaryMethodMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) | 7276 static void passPermissiveDictionaryMethodMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
6993 { | 7277 { |
6994 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7278 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
6995 TestObjectV8Internal::passPermissiveDictionaryMethodMethod(info); | 7279 TestObjectV8Internal::passPermissiveDictionaryMethodMethod(info); |
6996 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7280 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
6997 } | 7281 } |
6998 | 7282 |
6999 static void nodeFilterMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) | 7283 static void nodeFilterMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) |
7000 { | 7284 { |
7001 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7285 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
7002 v8SetReturnValue(info, impl->nodeFilterMethod()); | 7286 v8SetReturnValue(info, impl->nodeFilterMethod()); |
7003 } | 7287 } |
7004 | 7288 |
7005 static void nodeFilterMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 7289 static void nodeFilterMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
7006 { | 7290 { |
7007 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7291 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
7008 TestObjectV8Internal::nodeFilterMethodMethod(info); | 7292 TestObjectV8Internal::nodeFilterMethodMethod(info); |
7009 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7293 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7010 } | 7294 } |
7011 | 7295 |
7012 static void promiseMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 7296 static void promiseMethodMethodPromise(const v8::FunctionCallbackInfo<v8::Value>
& info, ExceptionState& exceptionState) |
7013 { | 7297 { |
7014 ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseMeth
od", "TestObject", info.Holder(), info.GetIsolate()); | |
7015 if (UNLIKELY(info.Length() < 3)) { | 7298 if (UNLIKELY(info.Length() < 3)) { |
7016 setMinimumArityTypeError(exceptionState, 3, info.Length()); | 7299 setMinimumArityTypeError(exceptionState, 3, info.Length()); |
7017 v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.G
etIsolate())).v8Value()); | |
7018 return; | 7300 return; |
7019 } | 7301 } |
7020 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7302 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
7021 int arg1; | 7303 int arg1; |
7022 Dictionary arg2; | 7304 Dictionary arg2; |
7023 V8StringResource<> arg3; | 7305 V8StringResource<> arg3; |
7024 Vector<String> variadic; | 7306 Vector<String> variadic; |
7025 { | 7307 { |
7026 TONATIVE_VOID_EXCEPTIONSTATE_PROMISE_INTERNAL(arg1, toInt32(info[0], exc
eptionState), exceptionState, info, ScriptState::current(info.GetIsolate())); | 7308 arg1 = toInt32(info[0], exceptionState); |
| 7309 if (exceptionState.hadException()) |
| 7310 return; |
7027 if (!isUndefinedOrNull(info[1]) && !info[1]->IsObject()) { | 7311 if (!isUndefinedOrNull(info[1]) && !info[1]->IsObject()) { |
7028 exceptionState.throwTypeError("parameter 2 ('arg2') is not an object
."); | 7312 exceptionState.throwTypeError("parameter 2 ('arg2') is not an object
."); |
7029 v8SetReturnValue(info, exceptionState.reject(ScriptState::current(in
fo.GetIsolate())).v8Value()); | |
7030 return; | 7313 return; |
7031 } | 7314 } |
7032 TONATIVE_VOID_EXCEPTIONSTATE_PROMISE_INTERNAL(arg2, Dictionary(info[1],
info.GetIsolate(), exceptionState), exceptionState, info, ScriptState::current(i
nfo.GetIsolate())); | 7315 arg2 = Dictionary(info[1], info.GetIsolate(), exceptionState); |
7033 TOSTRING_VOID_EXCEPTIONSTATE_PROMISE_INTERNAL(arg3, info[2], exceptionSt
ate, info, ScriptState::current(info.GetIsolate())); | 7316 if (exceptionState.hadException()) |
7034 TONATIVE_VOID_EXCEPTIONSTATE_PROMISE_INTERNAL(variadic, toImplArguments<
String>(info, 3, exceptionState), exceptionState, info, ScriptState::current(inf
o.GetIsolate())); | 7317 return; |
| 7318 arg3 = info[2]; |
| 7319 if (!arg3.prepare(exceptionState)) |
| 7320 return; |
| 7321 variadic = toImplArguments<String>(info, 3, exceptionState); |
| 7322 if (exceptionState.hadException()) |
| 7323 return; |
7035 } | 7324 } |
7036 v8SetReturnValue(info, impl->promiseMethod(arg1, arg2, arg3, variadic).v8Val
ue()); | 7325 v8SetReturnValue(info, impl->promiseMethod(arg1, arg2, arg3, variadic).v8Val
ue()); |
7037 } | 7326 } |
7038 | 7327 |
| 7328 static void promiseMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 7329 { |
| 7330 ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseMeth
od", "TestObject", info.Holder(), info.GetIsolate()); |
| 7331 promiseMethodMethodPromise(info, exceptionState); |
| 7332 if (exceptionState.hadException()) |
| 7333 v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.G
etIsolate())).v8Value()); |
| 7334 } |
| 7335 |
7039 static void promiseMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value
>& info) | 7336 static void promiseMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value
>& info) |
7040 { | 7337 { |
7041 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7338 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
7042 TestObjectV8Internal::promiseMethodMethod(info); | 7339 TestObjectV8Internal::promiseMethodMethod(info); |
7043 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7340 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7044 } | 7341 } |
7045 | 7342 |
7046 static void promiseMethodWithoutExceptionStateMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 7343 static void promiseMethodWithoutExceptionStateMethodPromise(const v8::FunctionCa
llbackInfo<v8::Value>& info, ExceptionState& exceptionState) |
7047 { | 7344 { |
7048 ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseMeth
odWithoutExceptionState", "TestObject", info.Holder(), info.GetIsolate()); | |
7049 if (UNLIKELY(info.Length() < 1)) { | 7345 if (UNLIKELY(info.Length() < 1)) { |
7050 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 7346 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
7051 v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.G
etIsolate())).v8Value()); | |
7052 return; | 7347 return; |
7053 } | 7348 } |
7054 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7349 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
7055 Dictionary arg1; | 7350 Dictionary arg1; |
7056 { | 7351 { |
7057 if (!isUndefinedOrNull(info[0]) && !info[0]->IsObject()) { | 7352 if (!isUndefinedOrNull(info[0]) && !info[0]->IsObject()) { |
7058 exceptionState.throwTypeError("parameter 1 ('arg1') is not an object
."); | 7353 exceptionState.throwTypeError("parameter 1 ('arg1') is not an object
."); |
7059 v8SetReturnValue(info, exceptionState.reject(ScriptState::current(in
fo.GetIsolate())).v8Value()); | |
7060 return; | 7354 return; |
7061 } | 7355 } |
7062 TONATIVE_VOID_EXCEPTIONSTATE_PROMISE_INTERNAL(arg1, Dictionary(info[0],
info.GetIsolate(), exceptionState), exceptionState, info, ScriptState::current(i
nfo.GetIsolate())); | 7356 arg1 = Dictionary(info[0], info.GetIsolate(), exceptionState); |
| 7357 if (exceptionState.hadException()) |
| 7358 return; |
7063 } | 7359 } |
7064 v8SetReturnValue(info, impl->promiseMethodWithoutExceptionState(arg1).v8Valu
e()); | 7360 v8SetReturnValue(info, impl->promiseMethodWithoutExceptionState(arg1).v8Valu
e()); |
7065 } | 7361 } |
7066 | 7362 |
| 7363 static void promiseMethodWithoutExceptionStateMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
| 7364 { |
| 7365 ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseMeth
odWithoutExceptionState", "TestObject", info.Holder(), info.GetIsolate()); |
| 7366 promiseMethodWithoutExceptionStateMethodPromise(info, exceptionState); |
| 7367 if (exceptionState.hadException()) |
| 7368 v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.G
etIsolate())).v8Value()); |
| 7369 } |
| 7370 |
7067 static void promiseMethodWithoutExceptionStateMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) | 7371 static void promiseMethodWithoutExceptionStateMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) |
7068 { | 7372 { |
7069 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7373 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
7070 TestObjectV8Internal::promiseMethodWithoutExceptionStateMethod(info); | 7374 TestObjectV8Internal::promiseMethodWithoutExceptionStateMethod(info); |
7071 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7375 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7072 } | 7376 } |
7073 | 7377 |
7074 static void serializedScriptValueMethodMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 7378 static void serializedScriptValueMethodMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
7075 { | 7379 { |
7076 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7380 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
(...skipping 29 matching lines...) Expand all Loading... |
7106 return; | 7410 return; |
7107 } | 7411 } |
7108 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7412 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
7109 Dictionary dictionaryArg; | 7413 Dictionary dictionaryArg; |
7110 { | 7414 { |
7111 if (!isUndefinedOrNull(info[0]) && !info[0]->IsObject()) { | 7415 if (!isUndefinedOrNull(info[0]) && !info[0]->IsObject()) { |
7112 exceptionState.throwTypeError("parameter 1 ('dictionaryArg') is not
an object."); | 7416 exceptionState.throwTypeError("parameter 1 ('dictionaryArg') is not
an object."); |
7113 exceptionState.throwIfNeeded(); | 7417 exceptionState.throwIfNeeded(); |
7114 return; | 7418 return; |
7115 } | 7419 } |
7116 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(dictionaryArg, Dictionary(info[0],
info.GetIsolate(), exceptionState), exceptionState); | 7420 dictionaryArg = Dictionary(info[0], info.GetIsolate(), exceptionState); |
| 7421 if (exceptionState.throwIfNeeded()) |
| 7422 return; |
7117 } | 7423 } |
7118 impl->voidMethodDictionaryArg(dictionaryArg); | 7424 impl->voidMethodDictionaryArg(dictionaryArg); |
7119 } | 7425 } |
7120 | 7426 |
7121 static void voidMethodDictionaryArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) | 7427 static void voidMethodDictionaryArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) |
7122 { | 7428 { |
7123 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7429 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
7124 TestObjectV8Internal::voidMethodDictionaryArgMethod(info); | 7430 TestObjectV8Internal::voidMethodDictionaryArgMethod(info); |
7125 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7431 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7126 } | 7432 } |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7175 { | 7481 { |
7176 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
erializedScriptValueArg", "TestObject", info.Holder(), info.GetIsolate()); | 7482 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
erializedScriptValueArg", "TestObject", info.Holder(), info.GetIsolate()); |
7177 if (UNLIKELY(info.Length() < 1)) { | 7483 if (UNLIKELY(info.Length() < 1)) { |
7178 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 7484 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
7179 exceptionState.throwIfNeeded(); | 7485 exceptionState.throwIfNeeded(); |
7180 return; | 7486 return; |
7181 } | 7487 } |
7182 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7488 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
7183 RefPtr<SerializedScriptValue> serializedScriptValueArg; | 7489 RefPtr<SerializedScriptValue> serializedScriptValueArg; |
7184 { | 7490 { |
7185 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(serializedScriptValueArg, Serializ
edScriptValueFactory::instance().create(info[0], 0, 0, exceptionState, info.GetI
solate()), exceptionState); | 7491 serializedScriptValueArg = SerializedScriptValueFactory::instance().crea
te(info[0], 0, 0, exceptionState, info.GetIsolate()); |
| 7492 if (exceptionState.throwIfNeeded()) |
| 7493 return; |
7186 } | 7494 } |
7187 impl->voidMethodSerializedScriptValueArg(serializedScriptValueArg); | 7495 impl->voidMethodSerializedScriptValueArg(serializedScriptValueArg); |
7188 } | 7496 } |
7189 | 7497 |
7190 static void voidMethodSerializedScriptValueArgMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) | 7498 static void voidMethodSerializedScriptValueArgMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) |
7191 { | 7499 { |
7192 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7500 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
7193 TestObjectV8Internal::voidMethodSerializedScriptValueArgMethod(info); | 7501 TestObjectV8Internal::voidMethodSerializedScriptValueArgMethod(info); |
7194 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7502 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7195 } | 7503 } |
(...skipping 23 matching lines...) Expand all Loading... |
7219 { | 7527 { |
7220 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
ictionarySequenceArg", "TestObject", info.Holder(), info.GetIsolate()); | 7528 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
ictionarySequenceArg", "TestObject", info.Holder(), info.GetIsolate()); |
7221 if (UNLIKELY(info.Length() < 1)) { | 7529 if (UNLIKELY(info.Length() < 1)) { |
7222 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 7530 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
7223 exceptionState.throwIfNeeded(); | 7531 exceptionState.throwIfNeeded(); |
7224 return; | 7532 return; |
7225 } | 7533 } |
7226 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7534 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
7227 Vector<Dictionary> dictionarySequenceArg; | 7535 Vector<Dictionary> dictionarySequenceArg; |
7228 { | 7536 { |
7229 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(dictionarySequenceArg, toImplArray
<Dictionary>(info[0], 1, info.GetIsolate(), exceptionState), exceptionState); | 7537 dictionarySequenceArg = toImplArray<Dictionary>(info[0], 1, info.GetIsol
ate(), exceptionState); |
| 7538 if (exceptionState.throwIfNeeded()) |
| 7539 return; |
7230 } | 7540 } |
7231 impl->voidMethodDictionarySequenceArg(dictionarySequenceArg); | 7541 impl->voidMethodDictionarySequenceArg(dictionarySequenceArg); |
7232 } | 7542 } |
7233 | 7543 |
7234 static void voidMethodDictionarySequenceArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) | 7544 static void voidMethodDictionarySequenceArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
7235 { | 7545 { |
7236 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7546 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
7237 TestObjectV8Internal::voidMethodDictionarySequenceArgMethod(info); | 7547 TestObjectV8Internal::voidMethodDictionarySequenceArgMethod(info); |
7238 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7548 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7239 } | 7549 } |
7240 | 7550 |
7241 static void voidMethodStringArgLongArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) | 7551 static void voidMethodStringArgLongArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) |
7242 { | 7552 { |
7243 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
tringArgLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 7553 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
tringArgLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
7244 if (UNLIKELY(info.Length() < 2)) { | 7554 if (UNLIKELY(info.Length() < 2)) { |
7245 setMinimumArityTypeError(exceptionState, 2, info.Length()); | 7555 setMinimumArityTypeError(exceptionState, 2, info.Length()); |
7246 exceptionState.throwIfNeeded(); | 7556 exceptionState.throwIfNeeded(); |
7247 return; | 7557 return; |
7248 } | 7558 } |
7249 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7559 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
7250 V8StringResource<> stringArg; | 7560 V8StringResource<> stringArg; |
7251 int longArg; | 7561 int longArg; |
7252 { | 7562 { |
7253 TOSTRING_VOID_INTERNAL(stringArg, info[0]); | 7563 stringArg = info[0]; |
7254 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[1], exceptio
nState), exceptionState); | 7564 if (!stringArg.prepare()) |
| 7565 return; |
| 7566 longArg = toInt32(info[1], exceptionState); |
| 7567 if (exceptionState.throwIfNeeded()) |
| 7568 return; |
7255 } | 7569 } |
7256 impl->voidMethodStringArgLongArg(stringArg, longArg); | 7570 impl->voidMethodStringArgLongArg(stringArg, longArg); |
7257 } | 7571 } |
7258 | 7572 |
7259 static void voidMethodStringArgLongArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 7573 static void voidMethodStringArgLongArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
7260 { | 7574 { |
7261 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7575 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
7262 TestObjectV8Internal::voidMethodStringArgLongArgMethod(info); | 7576 TestObjectV8Internal::voidMethodStringArgLongArgMethod(info); |
7263 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7577 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7264 } | 7578 } |
7265 | 7579 |
7266 static void voidMethodOptionalStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 7580 static void voidMethodOptionalStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
7267 { | 7581 { |
7268 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7582 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
7269 V8StringResource<> optionalStringArg; | 7583 V8StringResource<> optionalStringArg; |
7270 { | 7584 { |
7271 if (UNLIKELY(info.Length() <= 0)) { | 7585 if (UNLIKELY(info.Length() <= 0)) { |
7272 impl->voidMethodOptionalStringArg(); | 7586 impl->voidMethodOptionalStringArg(); |
7273 return; | 7587 return; |
7274 } | 7588 } |
7275 TOSTRING_VOID_INTERNAL(optionalStringArg, info[0]); | 7589 optionalStringArg = info[0]; |
| 7590 if (!optionalStringArg.prepare()) |
| 7591 return; |
7276 } | 7592 } |
7277 impl->voidMethodOptionalStringArg(optionalStringArg); | 7593 impl->voidMethodOptionalStringArg(optionalStringArg); |
7278 } | 7594 } |
7279 | 7595 |
7280 static void voidMethodOptionalStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 7596 static void voidMethodOptionalStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
7281 { | 7597 { |
7282 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7598 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
7283 TestObjectV8Internal::voidMethodOptionalStringArgMethod(info); | 7599 TestObjectV8Internal::voidMethodOptionalStringArgMethod(info); |
7284 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7600 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7285 } | 7601 } |
(...skipping 22 matching lines...) Expand all Loading... |
7308 static void voidMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 7624 static void voidMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
7309 { | 7625 { |
7310 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO
ptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 7626 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO
ptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
7311 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7627 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
7312 int optionalLongArg; | 7628 int optionalLongArg; |
7313 { | 7629 { |
7314 if (UNLIKELY(info.Length() <= 0)) { | 7630 if (UNLIKELY(info.Length() <= 0)) { |
7315 impl->voidMethodOptionalLongArg(); | 7631 impl->voidMethodOptionalLongArg(); |
7316 return; | 7632 return; |
7317 } | 7633 } |
7318 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0],
exceptionState), exceptionState); | 7634 optionalLongArg = toInt32(info[0], exceptionState); |
| 7635 if (exceptionState.throwIfNeeded()) |
| 7636 return; |
7319 } | 7637 } |
7320 impl->voidMethodOptionalLongArg(optionalLongArg); | 7638 impl->voidMethodOptionalLongArg(optionalLongArg); |
7321 } | 7639 } |
7322 | 7640 |
7323 static void voidMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 7641 static void voidMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
7324 { | 7642 { |
7325 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7643 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
7326 TestObjectV8Internal::voidMethodOptionalLongArgMethod(info); | 7644 TestObjectV8Internal::voidMethodOptionalLongArgMethod(info); |
7327 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7645 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7328 } | 7646 } |
7329 | 7647 |
7330 static void stringMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 7648 static void stringMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
7331 { | 7649 { |
7332 ExceptionState exceptionState(ExceptionState::ExecutionContext, "stringMetho
dOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 7650 ExceptionState exceptionState(ExceptionState::ExecutionContext, "stringMetho
dOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
7333 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7651 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
7334 int optionalLongArg; | 7652 int optionalLongArg; |
7335 { | 7653 { |
7336 if (UNLIKELY(info.Length() <= 0)) { | 7654 if (UNLIKELY(info.Length() <= 0)) { |
7337 v8SetReturnValueString(info, impl->stringMethodOptionalLongArg(), in
fo.GetIsolate()); | 7655 v8SetReturnValueString(info, impl->stringMethodOptionalLongArg(), in
fo.GetIsolate()); |
7338 return; | 7656 return; |
7339 } | 7657 } |
7340 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0],
exceptionState), exceptionState); | 7658 optionalLongArg = toInt32(info[0], exceptionState); |
| 7659 if (exceptionState.throwIfNeeded()) |
| 7660 return; |
7341 } | 7661 } |
7342 v8SetReturnValueString(info, impl->stringMethodOptionalLongArg(optionalLongA
rg), info.GetIsolate()); | 7662 v8SetReturnValueString(info, impl->stringMethodOptionalLongArg(optionalLongA
rg), info.GetIsolate()); |
7343 } | 7663 } |
7344 | 7664 |
7345 static void stringMethodOptionalLongArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 7665 static void stringMethodOptionalLongArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
7346 { | 7666 { |
7347 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7667 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
7348 TestObjectV8Internal::stringMethodOptionalLongArgMethod(info); | 7668 TestObjectV8Internal::stringMethodOptionalLongArgMethod(info); |
7349 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7669 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7350 } | 7670 } |
7351 | 7671 |
7352 static void testInterfaceEmptyMethodOptionalLongArgMethod(const v8::FunctionCall
backInfo<v8::Value>& info) | 7672 static void testInterfaceEmptyMethodOptionalLongArgMethod(const v8::FunctionCall
backInfo<v8::Value>& info) |
7353 { | 7673 { |
7354 ExceptionState exceptionState(ExceptionState::ExecutionContext, "testInterfa
ceEmptyMethodOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 7674 ExceptionState exceptionState(ExceptionState::ExecutionContext, "testInterfa
ceEmptyMethodOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
7355 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7675 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
7356 int optionalLongArg; | 7676 int optionalLongArg; |
7357 { | 7677 { |
7358 if (UNLIKELY(info.Length() <= 0)) { | 7678 if (UNLIKELY(info.Length() <= 0)) { |
7359 v8SetReturnValue(info, impl->testInterfaceEmptyMethodOptionalLongArg
()); | 7679 v8SetReturnValue(info, impl->testInterfaceEmptyMethodOptionalLongArg
()); |
7360 return; | 7680 return; |
7361 } | 7681 } |
7362 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0],
exceptionState), exceptionState); | 7682 optionalLongArg = toInt32(info[0], exceptionState); |
| 7683 if (exceptionState.throwIfNeeded()) |
| 7684 return; |
7363 } | 7685 } |
7364 v8SetReturnValue(info, impl->testInterfaceEmptyMethodOptionalLongArg(optiona
lLongArg)); | 7686 v8SetReturnValue(info, impl->testInterfaceEmptyMethodOptionalLongArg(optiona
lLongArg)); |
7365 } | 7687 } |
7366 | 7688 |
7367 static void testInterfaceEmptyMethodOptionalLongArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) | 7689 static void testInterfaceEmptyMethodOptionalLongArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
7368 { | 7690 { |
7369 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7691 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
7370 TestObjectV8Internal::testInterfaceEmptyMethodOptionalLongArgMethod(info); | 7692 TestObjectV8Internal::testInterfaceEmptyMethodOptionalLongArgMethod(info); |
7371 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7693 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7372 } | 7694 } |
7373 | 7695 |
7374 static void longMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 7696 static void longMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
7375 { | 7697 { |
7376 ExceptionState exceptionState(ExceptionState::ExecutionContext, "longMethodO
ptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 7698 ExceptionState exceptionState(ExceptionState::ExecutionContext, "longMethodO
ptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
7377 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7699 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
7378 int optionalLongArg; | 7700 int optionalLongArg; |
7379 { | 7701 { |
7380 if (UNLIKELY(info.Length() <= 0)) { | 7702 if (UNLIKELY(info.Length() <= 0)) { |
7381 v8SetReturnValueInt(info, impl->longMethodOptionalLongArg()); | 7703 v8SetReturnValueInt(info, impl->longMethodOptionalLongArg()); |
7382 return; | 7704 return; |
7383 } | 7705 } |
7384 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0],
exceptionState), exceptionState); | 7706 optionalLongArg = toInt32(info[0], exceptionState); |
| 7707 if (exceptionState.throwIfNeeded()) |
| 7708 return; |
7385 } | 7709 } |
7386 v8SetReturnValueInt(info, impl->longMethodOptionalLongArg(optionalLongArg)); | 7710 v8SetReturnValueInt(info, impl->longMethodOptionalLongArg(optionalLongArg)); |
7387 } | 7711 } |
7388 | 7712 |
7389 static void longMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 7713 static void longMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
7390 { | 7714 { |
7391 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7715 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
7392 TestObjectV8Internal::longMethodOptionalLongArgMethod(info); | 7716 TestObjectV8Internal::longMethodOptionalLongArgMethod(info); |
7393 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7717 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7394 } | 7718 } |
7395 | 7719 |
7396 static void voidMethodLongArgOptionalLongArgMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) | 7720 static void voidMethodLongArgOptionalLongArgMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) |
7397 { | 7721 { |
7398 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 7722 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
7399 if (UNLIKELY(info.Length() < 1)) { | 7723 if (UNLIKELY(info.Length() < 1)) { |
7400 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 7724 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
7401 exceptionState.throwIfNeeded(); | 7725 exceptionState.throwIfNeeded(); |
7402 return; | 7726 return; |
7403 } | 7727 } |
7404 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7728 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
7405 int longArg; | 7729 int longArg; |
7406 int optionalLongArg; | 7730 int optionalLongArg; |
7407 { | 7731 { |
7408 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); | 7732 longArg = toInt32(info[0], exceptionState); |
| 7733 if (exceptionState.throwIfNeeded()) |
| 7734 return; |
7409 if (UNLIKELY(info.Length() <= 1)) { | 7735 if (UNLIKELY(info.Length() <= 1)) { |
7410 impl->voidMethodLongArgOptionalLongArg(longArg); | 7736 impl->voidMethodLongArgOptionalLongArg(longArg); |
7411 return; | 7737 return; |
7412 } | 7738 } |
7413 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[1],
exceptionState), exceptionState); | 7739 optionalLongArg = toInt32(info[1], exceptionState); |
| 7740 if (exceptionState.throwIfNeeded()) |
| 7741 return; |
7414 } | 7742 } |
7415 impl->voidMethodLongArgOptionalLongArg(longArg, optionalLongArg); | 7743 impl->voidMethodLongArgOptionalLongArg(longArg, optionalLongArg); |
7416 } | 7744 } |
7417 | 7745 |
7418 static void voidMethodLongArgOptionalLongArgMethodCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) | 7746 static void voidMethodLongArgOptionalLongArgMethodCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
7419 { | 7747 { |
7420 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7748 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
7421 TestObjectV8Internal::voidMethodLongArgOptionalLongArgMethod(info); | 7749 TestObjectV8Internal::voidMethodLongArgOptionalLongArgMethod(info); |
7422 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7750 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7423 } | 7751 } |
7424 | 7752 |
7425 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethod(const v8::Func
tionCallbackInfo<v8::Value>& info) | 7753 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethod(const v8::Func
tionCallbackInfo<v8::Value>& info) |
7426 { | 7754 { |
7427 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgOptionalLongArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsol
ate()); | 7755 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgOptionalLongArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsol
ate()); |
7428 if (UNLIKELY(info.Length() < 1)) { | 7756 if (UNLIKELY(info.Length() < 1)) { |
7429 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 7757 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
7430 exceptionState.throwIfNeeded(); | 7758 exceptionState.throwIfNeeded(); |
7431 return; | 7759 return; |
7432 } | 7760 } |
7433 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7761 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
7434 int longArg; | 7762 int longArg; |
7435 int optionalLongArg1; | 7763 int optionalLongArg1; |
7436 int optionalLongArg2; | 7764 int optionalLongArg2; |
7437 { | 7765 { |
7438 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); | 7766 longArg = toInt32(info[0], exceptionState); |
| 7767 if (exceptionState.throwIfNeeded()) |
| 7768 return; |
7439 if (UNLIKELY(info.Length() <= 1)) { | 7769 if (UNLIKELY(info.Length() <= 1)) { |
7440 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg); | 7770 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg); |
7441 return; | 7771 return; |
7442 } | 7772 } |
7443 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg1, toInt32(info[1],
exceptionState), exceptionState); | 7773 optionalLongArg1 = toInt32(info[1], exceptionState); |
| 7774 if (exceptionState.throwIfNeeded()) |
| 7775 return; |
7444 if (UNLIKELY(info.Length() <= 2)) { | 7776 if (UNLIKELY(info.Length() <= 2)) { |
7445 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optio
nalLongArg1); | 7777 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optio
nalLongArg1); |
7446 return; | 7778 return; |
7447 } | 7779 } |
7448 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg2, toInt32(info[2],
exceptionState), exceptionState); | 7780 optionalLongArg2 = toInt32(info[2], exceptionState); |
| 7781 if (exceptionState.throwIfNeeded()) |
| 7782 return; |
7449 } | 7783 } |
7450 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optionalLongA
rg1, optionalLongArg2); | 7784 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optionalLongA
rg1, optionalLongArg2); |
7451 } | 7785 } |
7452 | 7786 |
7453 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethodCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) | 7787 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethodCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) |
7454 { | 7788 { |
7455 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7789 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
7456 TestObjectV8Internal::voidMethodLongArgOptionalLongArgOptionalLongArgMethod(
info); | 7790 TestObjectV8Internal::voidMethodLongArgOptionalLongArgOptionalLongArgMethod(
info); |
7457 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7791 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7458 } | 7792 } |
7459 | 7793 |
7460 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethod(const v8::Funct
ionCallbackInfo<v8::Value>& info) | 7794 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethod(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
7461 { | 7795 { |
7462 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgOptionalTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsola
te()); | 7796 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgOptionalTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsola
te()); |
7463 if (UNLIKELY(info.Length() < 1)) { | 7797 if (UNLIKELY(info.Length() < 1)) { |
7464 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 7798 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
7465 exceptionState.throwIfNeeded(); | 7799 exceptionState.throwIfNeeded(); |
7466 return; | 7800 return; |
7467 } | 7801 } |
7468 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7802 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
7469 int longArg; | 7803 int longArg; |
7470 TestInterfaceEmpty* optionalTestInterfaceEmpty; | 7804 TestInterfaceEmpty* optionalTestInterfaceEmpty; |
7471 { | 7805 { |
7472 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); | 7806 longArg = toInt32(info[0], exceptionState); |
| 7807 if (exceptionState.throwIfNeeded()) |
| 7808 return; |
7473 if (UNLIKELY(info.Length() <= 1)) { | 7809 if (UNLIKELY(info.Length() <= 1)) { |
7474 impl->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg); | 7810 impl->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg); |
7475 return; | 7811 return; |
7476 } | 7812 } |
7477 optionalTestInterfaceEmpty = V8TestInterfaceEmpty::toImplWithTypeCheck(i
nfo.GetIsolate(), info[1]); | 7813 optionalTestInterfaceEmpty = V8TestInterfaceEmpty::toImplWithTypeCheck(i
nfo.GetIsolate(), info[1]); |
7478 } | 7814 } |
7479 impl->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg, optionalTestIn
terfaceEmpty); | 7815 impl->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg, optionalTestIn
terfaceEmpty); |
7480 } | 7816 } |
7481 | 7817 |
7482 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback(const v
8::FunctionCallbackInfo<v8::Value>& info) | 7818 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback(const v
8::FunctionCallbackInfo<v8::Value>& info) |
(...skipping 13 matching lines...) Expand all Loading... |
7496 } | 7832 } |
7497 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7833 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
7498 TestInterfaceEmpty* optionalTestInterfaceEmpty; | 7834 TestInterfaceEmpty* optionalTestInterfaceEmpty; |
7499 int longArg; | 7835 int longArg; |
7500 { | 7836 { |
7501 optionalTestInterfaceEmpty = V8TestInterfaceEmpty::toImplWithTypeCheck(i
nfo.GetIsolate(), info[0]); | 7837 optionalTestInterfaceEmpty = V8TestInterfaceEmpty::toImplWithTypeCheck(i
nfo.GetIsolate(), info[0]); |
7502 if (UNLIKELY(info.Length() <= 1)) { | 7838 if (UNLIKELY(info.Length() <= 1)) { |
7503 impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInt
erfaceEmpty); | 7839 impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInt
erfaceEmpty); |
7504 return; | 7840 return; |
7505 } | 7841 } |
7506 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[1], exceptio
nState), exceptionState); | 7842 longArg = toInt32(info[1], exceptionState); |
| 7843 if (exceptionState.throwIfNeeded()) |
| 7844 return; |
7507 } | 7845 } |
7508 impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfaceEm
pty, longArg); | 7846 impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfaceEm
pty, longArg); |
7509 } | 7847 } |
7510 | 7848 |
7511 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethodCallback(const v
8::FunctionCallbackInfo<v8::Value>& info) | 7849 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethodCallback(const v
8::FunctionCallbackInfo<v8::Value>& info) |
7512 { | 7850 { |
7513 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7851 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
7514 TestObjectV8Internal::voidMethodTestInterfaceEmptyArgOptionalLongArgMethod(i
nfo); | 7852 TestObjectV8Internal::voidMethodTestInterfaceEmptyArgOptionalLongArgMethod(i
nfo); |
7515 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7853 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7516 } | 7854 } |
7517 | 7855 |
7518 static void voidMethodOptionalDictionaryArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) | 7856 static void voidMethodOptionalDictionaryArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) |
7519 { | 7857 { |
7520 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO
ptionalDictionaryArg", "TestObject", info.Holder(), info.GetIsolate()); | 7858 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO
ptionalDictionaryArg", "TestObject", info.Holder(), info.GetIsolate()); |
7521 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7859 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
7522 Dictionary optionalDictionaryArg; | 7860 Dictionary optionalDictionaryArg; |
7523 { | 7861 { |
7524 if (!isUndefinedOrNull(info[0]) && !info[0]->IsObject()) { | 7862 if (!isUndefinedOrNull(info[0]) && !info[0]->IsObject()) { |
7525 exceptionState.throwTypeError("parameter 1 ('optionalDictionaryArg')
is not an object."); | 7863 exceptionState.throwTypeError("parameter 1 ('optionalDictionaryArg')
is not an object."); |
7526 exceptionState.throwIfNeeded(); | 7864 exceptionState.throwIfNeeded(); |
7527 return; | 7865 return; |
7528 } | 7866 } |
7529 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalDictionaryArg, Dictionary(
info[0], info.GetIsolate(), exceptionState), exceptionState); | 7867 optionalDictionaryArg = Dictionary(info[0], info.GetIsolate(), exception
State); |
| 7868 if (exceptionState.throwIfNeeded()) |
| 7869 return; |
7530 } | 7870 } |
7531 impl->voidMethodOptionalDictionaryArg(optionalDictionaryArg); | 7871 impl->voidMethodOptionalDictionaryArg(optionalDictionaryArg); |
7532 } | 7872 } |
7533 | 7873 |
7534 static void voidMethodOptionalDictionaryArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) | 7874 static void voidMethodOptionalDictionaryArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
7535 { | 7875 { |
7536 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7876 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
7537 TestObjectV8Internal::voidMethodOptionalDictionaryArgMethod(info); | 7877 TestObjectV8Internal::voidMethodOptionalDictionaryArgMethod(info); |
7538 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7878 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7539 } | 7879 } |
7540 | 7880 |
7541 static void voidMethodDefaultByteStringArgMethod(const v8::FunctionCallbackInfo<
v8::Value>& info) | 7881 static void voidMethodDefaultByteStringArgMethod(const v8::FunctionCallbackInfo<
v8::Value>& info) |
7542 { | 7882 { |
7543 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultByteStringArg", "TestObject", info.Holder(), info.GetIsolate()); | 7883 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultByteStringArg", "TestObject", info.Holder(), info.GetIsolate()); |
7544 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7884 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
7545 V8StringResource<> defaultByteStringArg; | 7885 V8StringResource<> defaultByteStringArg; |
7546 { | 7886 { |
7547 if (!info[0]->IsUndefined()) { | 7887 if (!info[0]->IsUndefined()) { |
7548 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultByteStringArg, toByteSt
ring(info[0], exceptionState), exceptionState); | 7888 defaultByteStringArg = toByteString(info[0], exceptionState); |
| 7889 if (exceptionState.throwIfNeeded()) |
| 7890 return; |
7549 } else { | 7891 } else { |
7550 defaultByteStringArg = String("foo"); | 7892 defaultByteStringArg = String("foo"); |
7551 } | 7893 } |
7552 } | 7894 } |
7553 impl->voidMethodDefaultByteStringArg(defaultByteStringArg); | 7895 impl->voidMethodDefaultByteStringArg(defaultByteStringArg); |
7554 } | 7896 } |
7555 | 7897 |
7556 static void voidMethodDefaultByteStringArgMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) | 7898 static void voidMethodDefaultByteStringArgMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
7557 { | 7899 { |
7558 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7900 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
7559 TestObjectV8Internal::voidMethodDefaultByteStringArgMethod(info); | 7901 TestObjectV8Internal::voidMethodDefaultByteStringArgMethod(info); |
7560 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7902 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7561 } | 7903 } |
7562 | 7904 |
7563 static void voidMethodDefaultStringArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) | 7905 static void voidMethodDefaultStringArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) |
7564 { | 7906 { |
7565 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7907 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
7566 V8StringResource<> defaultStringArg; | 7908 V8StringResource<> defaultStringArg; |
7567 { | 7909 { |
7568 if (!info[0]->IsUndefined()) { | 7910 if (!info[0]->IsUndefined()) { |
7569 TOSTRING_VOID_INTERNAL(defaultStringArg, info[0]); | 7911 defaultStringArg = info[0]; |
| 7912 if (!defaultStringArg.prepare()) |
| 7913 return; |
7570 } else { | 7914 } else { |
7571 defaultStringArg = String("foo"); | 7915 defaultStringArg = String("foo"); |
7572 } | 7916 } |
7573 } | 7917 } |
7574 impl->voidMethodDefaultStringArg(defaultStringArg); | 7918 impl->voidMethodDefaultStringArg(defaultStringArg); |
7575 } | 7919 } |
7576 | 7920 |
7577 static void voidMethodDefaultStringArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 7921 static void voidMethodDefaultStringArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
7578 { | 7922 { |
7579 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7923 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
7580 TestObjectV8Internal::voidMethodDefaultStringArgMethod(info); | 7924 TestObjectV8Internal::voidMethodDefaultStringArgMethod(info); |
7581 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7925 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7582 } | 7926 } |
7583 | 7927 |
7584 static void voidMethodDefaultIntegerArgsMethod(const v8::FunctionCallbackInfo<v8
::Value>& info) | 7928 static void voidMethodDefaultIntegerArgsMethod(const v8::FunctionCallbackInfo<v8
::Value>& info) |
7585 { | 7929 { |
7586 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultIntegerArgs", "TestObject", info.Holder(), info.GetIsolate()); | 7930 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultIntegerArgs", "TestObject", info.Holder(), info.GetIsolate()); |
7587 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7931 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
7588 int defaultLongArg; | 7932 int defaultLongArg; |
7589 long long defaultLongLongArg; | 7933 long long defaultLongLongArg; |
7590 unsigned defaultUnsignedArg; | 7934 unsigned defaultUnsignedArg; |
7591 { | 7935 { |
7592 if (!info[0]->IsUndefined()) { | 7936 if (!info[0]->IsUndefined()) { |
7593 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultLongArg, toInt32(info[0
], exceptionState), exceptionState); | 7937 defaultLongArg = toInt32(info[0], exceptionState); |
| 7938 if (exceptionState.throwIfNeeded()) |
| 7939 return; |
7594 } else { | 7940 } else { |
7595 defaultLongArg = 10; | 7941 defaultLongArg = 10; |
7596 } | 7942 } |
7597 if (!info[1]->IsUndefined()) { | 7943 if (!info[1]->IsUndefined()) { |
7598 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultLongLongArg, toInt64(in
fo[1], exceptionState), exceptionState); | 7944 defaultLongLongArg = toInt64(info[1], exceptionState); |
| 7945 if (exceptionState.throwIfNeeded()) |
| 7946 return; |
7599 } else { | 7947 } else { |
7600 defaultLongLongArg = -10; | 7948 defaultLongLongArg = -10; |
7601 } | 7949 } |
7602 if (!info[2]->IsUndefined()) { | 7950 if (!info[2]->IsUndefined()) { |
7603 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultUnsignedArg, toUInt32(i
nfo[2], exceptionState), exceptionState); | 7951 defaultUnsignedArg = toUInt32(info[2], exceptionState); |
| 7952 if (exceptionState.throwIfNeeded()) |
| 7953 return; |
7604 } else { | 7954 } else { |
7605 defaultUnsignedArg = 4294967295u; | 7955 defaultUnsignedArg = 4294967295u; |
7606 } | 7956 } |
7607 } | 7957 } |
7608 impl->voidMethodDefaultIntegerArgs(defaultLongArg, defaultLongLongArg, defau
ltUnsignedArg); | 7958 impl->voidMethodDefaultIntegerArgs(defaultLongArg, defaultLongLongArg, defau
ltUnsignedArg); |
7609 } | 7959 } |
7610 | 7960 |
7611 static void voidMethodDefaultIntegerArgsMethodCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 7961 static void voidMethodDefaultIntegerArgsMethodCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
7612 { | 7962 { |
7613 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7963 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
7614 TestObjectV8Internal::voidMethodDefaultIntegerArgsMethod(info); | 7964 TestObjectV8Internal::voidMethodDefaultIntegerArgsMethod(info); |
7615 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7965 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7616 } | 7966 } |
7617 | 7967 |
7618 static void voidMethodDefaultDoubleArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) | 7968 static void voidMethodDefaultDoubleArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) |
7619 { | 7969 { |
7620 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultDoubleArg", "TestObject", info.Holder(), info.GetIsolate()); | 7970 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultDoubleArg", "TestObject", info.Holder(), info.GetIsolate()); |
7621 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7971 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
7622 double defaultDoubleArg; | 7972 double defaultDoubleArg; |
7623 { | 7973 { |
7624 if (!info[0]->IsUndefined()) { | 7974 if (!info[0]->IsUndefined()) { |
7625 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultDoubleArg, toDouble(inf
o[0], exceptionState), exceptionState); | 7975 defaultDoubleArg = toDouble(info[0], exceptionState); |
| 7976 if (exceptionState.throwIfNeeded()) |
| 7977 return; |
7626 } else { | 7978 } else { |
7627 defaultDoubleArg = 0.5; | 7979 defaultDoubleArg = 0.5; |
7628 } | 7980 } |
7629 } | 7981 } |
7630 impl->voidMethodDefaultDoubleArg(defaultDoubleArg); | 7982 impl->voidMethodDefaultDoubleArg(defaultDoubleArg); |
7631 } | 7983 } |
7632 | 7984 |
7633 static void voidMethodDefaultDoubleArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 7985 static void voidMethodDefaultDoubleArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
7634 { | 7986 { |
7635 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7987 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"); | 8031 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7680 } | 8032 } |
7681 | 8033 |
7682 static void voidMethodDefaultNullableByteStringArgMethod(const v8::FunctionCallb
ackInfo<v8::Value>& info) | 8034 static void voidMethodDefaultNullableByteStringArgMethod(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
7683 { | 8035 { |
7684 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultNullableByteStringArg", "TestObject", info.Holder(), info.GetIsolate()); | 8036 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultNullableByteStringArg", "TestObject", info.Holder(), info.GetIsolate()); |
7685 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8037 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
7686 V8StringResource<TreatNullAsNullString> defaultStringArg; | 8038 V8StringResource<TreatNullAsNullString> defaultStringArg; |
7687 { | 8039 { |
7688 if (!info[0]->IsUndefined()) { | 8040 if (!info[0]->IsUndefined()) { |
7689 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultStringArg, toByteString
(info[0], exceptionState), exceptionState); | 8041 defaultStringArg = toByteString(info[0], exceptionState); |
| 8042 if (exceptionState.throwIfNeeded()) |
| 8043 return; |
7690 } else { | 8044 } else { |
7691 defaultStringArg = nullptr; | 8045 defaultStringArg = nullptr; |
7692 } | 8046 } |
7693 } | 8047 } |
7694 impl->voidMethodDefaultNullableByteStringArg(defaultStringArg); | 8048 impl->voidMethodDefaultNullableByteStringArg(defaultStringArg); |
7695 } | 8049 } |
7696 | 8050 |
7697 static void voidMethodDefaultNullableByteStringArgMethodCallback(const v8::Funct
ionCallbackInfo<v8::Value>& info) | 8051 static void voidMethodDefaultNullableByteStringArgMethodCallback(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
7698 { | 8052 { |
7699 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 8053 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
7700 TestObjectV8Internal::voidMethodDefaultNullableByteStringArgMethod(info); | 8054 TestObjectV8Internal::voidMethodDefaultNullableByteStringArgMethod(info); |
7701 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 8055 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7702 } | 8056 } |
7703 | 8057 |
7704 static void voidMethodDefaultNullableStringArgMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 8058 static void voidMethodDefaultNullableStringArgMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
7705 { | 8059 { |
7706 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8060 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
7707 V8StringResource<TreatNullAsNullString> defaultStringArg; | 8061 V8StringResource<TreatNullAsNullString> defaultStringArg; |
7708 { | 8062 { |
7709 if (!info[0]->IsUndefined()) { | 8063 if (!info[0]->IsUndefined()) { |
7710 TOSTRING_VOID_INTERNAL(defaultStringArg, info[0]); | 8064 defaultStringArg = info[0]; |
| 8065 if (!defaultStringArg.prepare()) |
| 8066 return; |
7711 } else { | 8067 } else { |
7712 defaultStringArg = nullptr; | 8068 defaultStringArg = nullptr; |
7713 } | 8069 } |
7714 } | 8070 } |
7715 impl->voidMethodDefaultNullableStringArg(defaultStringArg); | 8071 impl->voidMethodDefaultNullableStringArg(defaultStringArg); |
7716 } | 8072 } |
7717 | 8073 |
7718 static void voidMethodDefaultNullableStringArgMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) | 8074 static void voidMethodDefaultNullableStringArgMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) |
7719 { | 8075 { |
7720 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 8076 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
(...skipping 24 matching lines...) Expand all Loading... |
7745 | 8101 |
7746 static void voidMethodDefaultDoubleOrStringArgsMethod(const v8::FunctionCallback
Info<v8::Value>& info) | 8102 static void voidMethodDefaultDoubleOrStringArgsMethod(const v8::FunctionCallback
Info<v8::Value>& info) |
7747 { | 8103 { |
7748 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultDoubleOrStringArgs", "TestObject", info.Holder(), info.GetIsolate()); | 8104 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultDoubleOrStringArgs", "TestObject", info.Holder(), info.GetIsolate()); |
7749 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8105 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
7750 DoubleOrString defaultLongArg; | 8106 DoubleOrString defaultLongArg; |
7751 DoubleOrString defaultStringArg; | 8107 DoubleOrString defaultStringArg; |
7752 DoubleOrString defaultNullArg; | 8108 DoubleOrString defaultNullArg; |
7753 { | 8109 { |
7754 if (!info[0]->IsUndefined()) { | 8110 if (!info[0]->IsUndefined()) { |
7755 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8DoubleOrString::toImpl(in
fo.GetIsolate(), info[0], defaultLongArg, exceptionState), exceptionState); | 8111 if (!V8DoubleOrString::toImpl(info.GetIsolate(), info[0], defaultLon
gArg, exceptionState)) { |
| 8112 exceptionState.throwException(); |
| 8113 return; |
| 8114 } |
7756 } else { | 8115 } else { |
7757 defaultLongArg.setDouble(10); | 8116 defaultLongArg.setDouble(10); |
7758 } | 8117 } |
7759 if (!info[1]->IsUndefined()) { | 8118 if (!info[1]->IsUndefined()) { |
7760 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8DoubleOrStringOrNull::toI
mpl(info.GetIsolate(), info[1], defaultStringArg, exceptionState), exceptionStat
e); | 8119 if (!V8DoubleOrStringOrNull::toImpl(info.GetIsolate(), info[1], defa
ultStringArg, exceptionState)) { |
| 8120 exceptionState.throwException(); |
| 8121 return; |
| 8122 } |
7761 } else { | 8123 } else { |
7762 defaultStringArg.setString(String("foo")); | 8124 defaultStringArg.setString(String("foo")); |
7763 } | 8125 } |
7764 if (!info[2]->IsUndefined()) { | 8126 if (!info[2]->IsUndefined()) { |
7765 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8DoubleOrStringOrNull::toI
mpl(info.GetIsolate(), info[2], defaultNullArg, exceptionState), exceptionState)
; | 8127 if (!V8DoubleOrStringOrNull::toImpl(info.GetIsolate(), info[2], defa
ultNullArg, exceptionState)) { |
| 8128 exceptionState.throwException(); |
| 8129 return; |
| 8130 } |
7766 } else { | 8131 } else { |
7767 /* null default value */; | 8132 /* null default value */; |
7768 } | 8133 } |
7769 } | 8134 } |
7770 impl->voidMethodDefaultDoubleOrStringArgs(defaultLongArg, defaultStringArg,
defaultNullArg); | 8135 impl->voidMethodDefaultDoubleOrStringArgs(defaultLongArg, defaultStringArg,
defaultNullArg); |
7771 } | 8136 } |
7772 | 8137 |
7773 static void voidMethodDefaultDoubleOrStringArgsMethodCallback(const v8::Function
CallbackInfo<v8::Value>& info) | 8138 static void voidMethodDefaultDoubleOrStringArgsMethodCallback(const v8::Function
CallbackInfo<v8::Value>& info) |
7774 { | 8139 { |
7775 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 8140 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
7776 TestObjectV8Internal::voidMethodDefaultDoubleOrStringArgsMethod(info); | 8141 TestObjectV8Internal::voidMethodDefaultDoubleOrStringArgsMethod(info); |
7777 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 8142 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7778 } | 8143 } |
7779 | 8144 |
7780 static void voidMethodDefaultStringSequenceArgMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 8145 static void voidMethodDefaultStringSequenceArgMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
7781 { | 8146 { |
7782 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultStringSequenceArg", "TestObject", info.Holder(), info.GetIsolate()); | 8147 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultStringSequenceArg", "TestObject", info.Holder(), info.GetIsolate()); |
7783 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8148 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
7784 Vector<String> defaultStringSequenceArg; | 8149 Vector<String> defaultStringSequenceArg; |
7785 { | 8150 { |
7786 if (!info[0]->IsUndefined()) { | 8151 if (!info[0]->IsUndefined()) { |
7787 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultStringSequenceArg, toIm
plArray<String>(info[0], 1, info.GetIsolate(), exceptionState), exceptionState); | 8152 defaultStringSequenceArg = toImplArray<String>(info[0], 1, info.GetI
solate(), exceptionState); |
| 8153 if (exceptionState.throwIfNeeded()) |
| 8154 return; |
7788 } else { | 8155 } else { |
7789 /* Nothing to do */; | 8156 /* Nothing to do */; |
7790 } | 8157 } |
7791 } | 8158 } |
7792 impl->voidMethodDefaultStringSequenceArg(defaultStringSequenceArg); | 8159 impl->voidMethodDefaultStringSequenceArg(defaultStringSequenceArg); |
7793 } | 8160 } |
7794 | 8161 |
7795 static void voidMethodDefaultStringSequenceArgMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) | 8162 static void voidMethodDefaultStringSequenceArgMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) |
7796 { | 8163 { |
7797 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 8164 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
7798 TestObjectV8Internal::voidMethodDefaultStringSequenceArgMethod(info); | 8165 TestObjectV8Internal::voidMethodDefaultStringSequenceArgMethod(info); |
7799 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 8166 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7800 } | 8167 } |
7801 | 8168 |
7802 static void voidMethodVariadicStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 8169 static void voidMethodVariadicStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
7803 { | 8170 { |
7804 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodV
ariadicStringArg", "TestObject", info.Holder(), info.GetIsolate()); | 8171 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodV
ariadicStringArg", "TestObject", info.Holder(), info.GetIsolate()); |
7805 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8172 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
7806 Vector<String> variadicStringArgs; | 8173 Vector<String> variadicStringArgs; |
7807 { | 8174 { |
7808 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(variadicStringArgs, toImplArgument
s<String>(info, 0, exceptionState), exceptionState); | 8175 variadicStringArgs = toImplArguments<String>(info, 0, exceptionState); |
| 8176 if (exceptionState.throwIfNeeded()) |
| 8177 return; |
7809 } | 8178 } |
7810 impl->voidMethodVariadicStringArg(variadicStringArgs); | 8179 impl->voidMethodVariadicStringArg(variadicStringArgs); |
7811 } | 8180 } |
7812 | 8181 |
7813 static void voidMethodVariadicStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 8182 static void voidMethodVariadicStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
7814 { | 8183 { |
7815 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 8184 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
7816 TestObjectV8Internal::voidMethodVariadicStringArgMethod(info); | 8185 TestObjectV8Internal::voidMethodVariadicStringArgMethod(info); |
7817 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 8186 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7818 } | 8187 } |
7819 | 8188 |
7820 static void voidMethodStringArgVariadicStringArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 8189 static void voidMethodStringArgVariadicStringArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
7821 { | 8190 { |
7822 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
tringArgVariadicStringArg", "TestObject", info.Holder(), info.GetIsolate()); | 8191 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
tringArgVariadicStringArg", "TestObject", info.Holder(), info.GetIsolate()); |
7823 if (UNLIKELY(info.Length() < 1)) { | 8192 if (UNLIKELY(info.Length() < 1)) { |
7824 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 8193 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
7825 exceptionState.throwIfNeeded(); | 8194 exceptionState.throwIfNeeded(); |
7826 return; | 8195 return; |
7827 } | 8196 } |
7828 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8197 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
7829 V8StringResource<> stringArg; | 8198 V8StringResource<> stringArg; |
7830 Vector<String> variadicStringArgs; | 8199 Vector<String> variadicStringArgs; |
7831 { | 8200 { |
7832 TOSTRING_VOID_INTERNAL(stringArg, info[0]); | 8201 stringArg = info[0]; |
7833 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(variadicStringArgs, toImplArgument
s<String>(info, 1, exceptionState), exceptionState); | 8202 if (!stringArg.prepare()) |
| 8203 return; |
| 8204 variadicStringArgs = toImplArguments<String>(info, 1, exceptionState); |
| 8205 if (exceptionState.throwIfNeeded()) |
| 8206 return; |
7834 } | 8207 } |
7835 impl->voidMethodStringArgVariadicStringArg(stringArg, variadicStringArgs); | 8208 impl->voidMethodStringArgVariadicStringArg(stringArg, variadicStringArgs); |
7836 } | 8209 } |
7837 | 8210 |
7838 static void voidMethodStringArgVariadicStringArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) | 8211 static void voidMethodStringArgVariadicStringArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) |
7839 { | 8212 { |
7840 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 8213 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
7841 TestObjectV8Internal::voidMethodStringArgVariadicStringArgMethod(info); | 8214 TestObjectV8Internal::voidMethodStringArgVariadicStringArgMethod(info); |
7842 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 8215 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7843 } | 8216 } |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7948 TestObjectV8Internal::voidMethodVariadicTestInterfaceWillBeGarbageCollectedA
rgMethod(info); | 8321 TestObjectV8Internal::voidMethodVariadicTestInterfaceWillBeGarbageCollectedA
rgMethod(info); |
7949 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 8322 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7950 } | 8323 } |
7951 | 8324 |
7952 static void overloadedMethodA1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8325 static void overloadedMethodA1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
7953 { | 8326 { |
7954 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodA", "TestObject", info.Holder(), info.GetIsolate()); | 8327 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodA", "TestObject", info.Holder(), info.GetIsolate()); |
7955 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8328 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
7956 int longArg; | 8329 int longArg; |
7957 { | 8330 { |
7958 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); | 8331 longArg = toInt32(info[0], exceptionState); |
| 8332 if (exceptionState.throwIfNeeded()) |
| 8333 return; |
7959 } | 8334 } |
7960 impl->overloadedMethodA(longArg); | 8335 impl->overloadedMethodA(longArg); |
7961 } | 8336 } |
7962 | 8337 |
7963 static void overloadedMethodA2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8338 static void overloadedMethodA2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
7964 { | 8339 { |
7965 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodA", "TestObject", info.Holder(), info.GetIsolate()); | 8340 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodA", "TestObject", info.Holder(), info.GetIsolate()); |
7966 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8341 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
7967 int longArg1; | 8342 int longArg1; |
7968 int longArg2; | 8343 int longArg2; |
7969 { | 8344 { |
7970 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg1, toInt32(info[0], excepti
onState), exceptionState); | 8345 longArg1 = toInt32(info[0], exceptionState); |
7971 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg2, toInt32(info[1], excepti
onState), exceptionState); | 8346 if (exceptionState.throwIfNeeded()) |
| 8347 return; |
| 8348 longArg2 = toInt32(info[1], exceptionState); |
| 8349 if (exceptionState.throwIfNeeded()) |
| 8350 return; |
7972 } | 8351 } |
7973 impl->overloadedMethodA(longArg1, longArg2); | 8352 impl->overloadedMethodA(longArg1, longArg2); |
7974 } | 8353 } |
7975 | 8354 |
7976 static void overloadedMethodAMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 8355 static void overloadedMethodAMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
7977 { | 8356 { |
7978 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodA", "TestObject", info.Holder(), info.GetIsolate()); | 8357 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodA", "TestObject", info.Holder(), info.GetIsolate()); |
7979 switch (std::min(2, info.Length())) { | 8358 switch (std::min(2, info.Length())) { |
7980 case 1: | 8359 case 1: |
7981 if (true) { | 8360 if (true) { |
(...skipping 10 matching lines...) Expand all Loading... |
7992 default: | 8371 default: |
7993 break; | 8372 break; |
7994 } | 8373 } |
7995 if (info.Length() < 1) { | 8374 if (info.Length() < 1) { |
7996 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 8375 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
7997 exceptionState.throwIfNeeded(); | 8376 exceptionState.throwIfNeeded(); |
7998 return; | 8377 return; |
7999 } | 8378 } |
8000 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 8379 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
8001 exceptionState.throwIfNeeded(); | 8380 exceptionState.throwIfNeeded(); |
| 8381 return; |
8002 } | 8382 } |
8003 | 8383 |
8004 static void overloadedMethodAMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 8384 static void overloadedMethodAMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
8005 { | 8385 { |
8006 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 8386 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
8007 TestObjectV8Internal::overloadedMethodAMethod(info); | 8387 TestObjectV8Internal::overloadedMethodAMethod(info); |
8008 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 8388 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
8009 } | 8389 } |
8010 | 8390 |
8011 static void overloadedMethodB1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8391 static void overloadedMethodB1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
8012 { | 8392 { |
8013 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodB", "TestObject", info.Holder(), info.GetIsolate()); | 8393 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodB", "TestObject", info.Holder(), info.GetIsolate()); |
8014 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8394 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8015 int longArg; | 8395 int longArg; |
8016 { | 8396 { |
8017 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); | 8397 longArg = toInt32(info[0], exceptionState); |
| 8398 if (exceptionState.throwIfNeeded()) |
| 8399 return; |
8018 } | 8400 } |
8019 impl->overloadedMethodB(longArg); | 8401 impl->overloadedMethodB(longArg); |
8020 } | 8402 } |
8021 | 8403 |
8022 static void overloadedMethodB2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8404 static void overloadedMethodB2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
8023 { | 8405 { |
8024 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodB", "TestObject", info.Holder(), info.GetIsolate()); | 8406 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodB", "TestObject", info.Holder(), info.GetIsolate()); |
8025 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8407 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8026 V8StringResource<> stringArg; | 8408 V8StringResource<> stringArg; |
8027 int longArg; | 8409 int longArg; |
8028 { | 8410 { |
8029 TOSTRING_VOID_INTERNAL(stringArg, info[0]); | 8411 stringArg = info[0]; |
| 8412 if (!stringArg.prepare()) |
| 8413 return; |
8030 if (UNLIKELY(info.Length() <= 1)) { | 8414 if (UNLIKELY(info.Length() <= 1)) { |
8031 impl->overloadedMethodB(stringArg); | 8415 impl->overloadedMethodB(stringArg); |
8032 return; | 8416 return; |
8033 } | 8417 } |
8034 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[1], exceptio
nState), exceptionState); | 8418 longArg = toInt32(info[1], exceptionState); |
| 8419 if (exceptionState.throwIfNeeded()) |
| 8420 return; |
8035 } | 8421 } |
8036 impl->overloadedMethodB(stringArg, longArg); | 8422 impl->overloadedMethodB(stringArg, longArg); |
8037 } | 8423 } |
8038 | 8424 |
8039 static void overloadedMethodBMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 8425 static void overloadedMethodBMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
8040 { | 8426 { |
8041 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodB", "TestObject", info.Holder(), info.GetIsolate()); | 8427 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodB", "TestObject", info.Holder(), info.GetIsolate()); |
8042 switch (std::min(2, info.Length())) { | 8428 switch (std::min(2, info.Length())) { |
8043 case 1: | 8429 case 1: |
8044 if (info[0]->IsNumber()) { | 8430 if (info[0]->IsNumber()) { |
(...skipping 18 matching lines...) Expand all Loading... |
8063 default: | 8449 default: |
8064 break; | 8450 break; |
8065 } | 8451 } |
8066 if (info.Length() < 1) { | 8452 if (info.Length() < 1) { |
8067 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 8453 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
8068 exceptionState.throwIfNeeded(); | 8454 exceptionState.throwIfNeeded(); |
8069 return; | 8455 return; |
8070 } | 8456 } |
8071 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 8457 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
8072 exceptionState.throwIfNeeded(); | 8458 exceptionState.throwIfNeeded(); |
| 8459 return; |
8073 } | 8460 } |
8074 | 8461 |
8075 static void overloadedMethodBMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 8462 static void overloadedMethodBMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
8076 { | 8463 { |
8077 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 8464 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
8078 TestObjectV8Internal::overloadedMethodBMethod(info); | 8465 TestObjectV8Internal::overloadedMethodBMethod(info); |
8079 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 8466 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
8080 } | 8467 } |
8081 | 8468 |
8082 static void overloadedMethodC1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8469 static void overloadedMethodC1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
8083 { | 8470 { |
8084 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodC", "TestObject", info.Holder(), info.GetIsolate()); | 8471 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodC", "TestObject", info.Holder(), info.GetIsolate()); |
8085 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8472 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8086 int longArg; | 8473 int longArg; |
8087 { | 8474 { |
8088 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); | 8475 longArg = toInt32(info[0], exceptionState); |
| 8476 if (exceptionState.throwIfNeeded()) |
| 8477 return; |
8089 } | 8478 } |
8090 impl->overloadedMethodC(longArg); | 8479 impl->overloadedMethodC(longArg); |
8091 } | 8480 } |
8092 | 8481 |
8093 static void overloadedMethodC2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8482 static void overloadedMethodC2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
8094 { | 8483 { |
8095 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8484 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8096 TestInterfaceEmpty* testInterfaceEmptyArg; | 8485 TestInterfaceEmpty* testInterfaceEmptyArg; |
8097 { | 8486 { |
8098 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.G
etIsolate(), info[0]); | 8487 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.G
etIsolate(), info[0]); |
(...skipping 18 matching lines...) Expand all Loading... |
8117 default: | 8506 default: |
8118 break; | 8507 break; |
8119 } | 8508 } |
8120 if (info.Length() < 1) { | 8509 if (info.Length() < 1) { |
8121 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 8510 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
8122 exceptionState.throwIfNeeded(); | 8511 exceptionState.throwIfNeeded(); |
8123 return; | 8512 return; |
8124 } | 8513 } |
8125 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 8514 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
8126 exceptionState.throwIfNeeded(); | 8515 exceptionState.throwIfNeeded(); |
| 8516 return; |
8127 } | 8517 } |
8128 | 8518 |
8129 static void overloadedMethodCMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 8519 static void overloadedMethodCMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
8130 { | 8520 { |
8131 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 8521 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
8132 TestObjectV8Internal::overloadedMethodCMethod(info); | 8522 TestObjectV8Internal::overloadedMethodCMethod(info); |
8133 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 8523 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
8134 } | 8524 } |
8135 | 8525 |
8136 static void overloadedMethodD1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8526 static void overloadedMethodD1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
8137 { | 8527 { |
8138 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodD", "TestObject", info.Holder(), info.GetIsolate()); | 8528 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodD", "TestObject", info.Holder(), info.GetIsolate()); |
8139 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8529 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8140 int longArg; | 8530 int longArg; |
8141 { | 8531 { |
8142 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); | 8532 longArg = toInt32(info[0], exceptionState); |
| 8533 if (exceptionState.throwIfNeeded()) |
| 8534 return; |
8143 } | 8535 } |
8144 impl->overloadedMethodD(longArg); | 8536 impl->overloadedMethodD(longArg); |
8145 } | 8537 } |
8146 | 8538 |
8147 static void overloadedMethodD2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8539 static void overloadedMethodD2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
8148 { | 8540 { |
8149 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodD", "TestObject", info.Holder(), info.GetIsolate()); | 8541 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodD", "TestObject", info.Holder(), info.GetIsolate()); |
8150 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8542 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8151 Vector<int> longArrayArg; | 8543 Vector<int> longArrayArg; |
8152 { | 8544 { |
8153 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArrayArg, toImplArray<int>(inf
o[0], 1, info.GetIsolate(), exceptionState), exceptionState); | 8545 longArrayArg = toImplArray<int>(info[0], 1, info.GetIsolate(), exception
State); |
| 8546 if (exceptionState.throwIfNeeded()) |
| 8547 return; |
8154 } | 8548 } |
8155 impl->overloadedMethodD(longArrayArg); | 8549 impl->overloadedMethodD(longArrayArg); |
8156 } | 8550 } |
8157 | 8551 |
8158 static void overloadedMethodDMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 8552 static void overloadedMethodDMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
8159 { | 8553 { |
8160 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodD", "TestObject", info.Holder(), info.GetIsolate()); | 8554 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodD", "TestObject", info.Holder(), info.GetIsolate()); |
8161 switch (std::min(1, info.Length())) { | 8555 switch (std::min(1, info.Length())) { |
8162 case 1: | 8556 case 1: |
8163 if (info[0]->IsArray()) { | 8557 if (info[0]->IsArray()) { |
8164 overloadedMethodD2Method(info); | 8558 overloadedMethodD2Method(info); |
8165 return; | 8559 return; |
8166 } | 8560 } |
8167 if (true) { | 8561 if (true) { |
8168 overloadedMethodD1Method(info); | 8562 overloadedMethodD1Method(info); |
8169 return; | 8563 return; |
8170 } | 8564 } |
8171 break; | 8565 break; |
8172 default: | 8566 default: |
8173 break; | 8567 break; |
8174 } | 8568 } |
8175 if (info.Length() < 1) { | 8569 if (info.Length() < 1) { |
8176 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 8570 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
8177 exceptionState.throwIfNeeded(); | 8571 exceptionState.throwIfNeeded(); |
8178 return; | 8572 return; |
8179 } | 8573 } |
8180 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 8574 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
8181 exceptionState.throwIfNeeded(); | 8575 exceptionState.throwIfNeeded(); |
| 8576 return; |
8182 } | 8577 } |
8183 | 8578 |
8184 static void overloadedMethodDMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 8579 static void overloadedMethodDMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
8185 { | 8580 { |
8186 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 8581 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
8187 TestObjectV8Internal::overloadedMethodDMethod(info); | 8582 TestObjectV8Internal::overloadedMethodDMethod(info); |
8188 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 8583 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
8189 } | 8584 } |
8190 | 8585 |
8191 static void overloadedMethodE1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8586 static void overloadedMethodE1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
8192 { | 8587 { |
8193 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodE", "TestObject", info.Holder(), info.GetIsolate()); | 8588 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodE", "TestObject", info.Holder(), info.GetIsolate()); |
8194 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8589 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8195 int longArg; | 8590 int longArg; |
8196 { | 8591 { |
8197 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); | 8592 longArg = toInt32(info[0], exceptionState); |
| 8593 if (exceptionState.throwIfNeeded()) |
| 8594 return; |
8198 } | 8595 } |
8199 impl->overloadedMethodE(longArg); | 8596 impl->overloadedMethodE(longArg); |
8200 } | 8597 } |
8201 | 8598 |
8202 static void overloadedMethodE2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8599 static void overloadedMethodE2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
8203 { | 8600 { |
8204 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8601 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8205 TestInterfaceEmpty* testInterfaceEmptyOrNullArg; | 8602 TestInterfaceEmpty* testInterfaceEmptyOrNullArg; |
8206 { | 8603 { |
8207 testInterfaceEmptyOrNullArg = V8TestInterfaceEmpty::toImplWithTypeCheck(
info.GetIsolate(), info[0]); | 8604 testInterfaceEmptyOrNullArg = V8TestInterfaceEmpty::toImplWithTypeCheck(
info.GetIsolate(), info[0]); |
(...skipping 22 matching lines...) Expand all Loading... |
8230 default: | 8627 default: |
8231 break; | 8628 break; |
8232 } | 8629 } |
8233 if (info.Length() < 1) { | 8630 if (info.Length() < 1) { |
8234 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 8631 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
8235 exceptionState.throwIfNeeded(); | 8632 exceptionState.throwIfNeeded(); |
8236 return; | 8633 return; |
8237 } | 8634 } |
8238 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 8635 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
8239 exceptionState.throwIfNeeded(); | 8636 exceptionState.throwIfNeeded(); |
| 8637 return; |
8240 } | 8638 } |
8241 | 8639 |
8242 static void overloadedMethodEMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 8640 static void overloadedMethodEMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
8243 { | 8641 { |
8244 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 8642 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
8245 TestObjectV8Internal::overloadedMethodEMethod(info); | 8643 TestObjectV8Internal::overloadedMethodEMethod(info); |
8246 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 8644 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
8247 } | 8645 } |
8248 | 8646 |
8249 static void overloadedMethodF1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8647 static void overloadedMethodF1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
8250 { | 8648 { |
8251 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8649 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8252 V8StringResource<> stringArg; | 8650 V8StringResource<> stringArg; |
8253 { | 8651 { |
8254 if (UNLIKELY(info.Length() <= 0)) { | 8652 if (UNLIKELY(info.Length() <= 0)) { |
8255 impl->overloadedMethodF(); | 8653 impl->overloadedMethodF(); |
8256 return; | 8654 return; |
8257 } | 8655 } |
8258 TOSTRING_VOID_INTERNAL(stringArg, info[0]); | 8656 stringArg = info[0]; |
| 8657 if (!stringArg.prepare()) |
| 8658 return; |
8259 } | 8659 } |
8260 impl->overloadedMethodF(stringArg); | 8660 impl->overloadedMethodF(stringArg); |
8261 } | 8661 } |
8262 | 8662 |
8263 static void overloadedMethodF2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8663 static void overloadedMethodF2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
8264 { | 8664 { |
8265 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodF", "TestObject", info.Holder(), info.GetIsolate()); | 8665 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodF", "TestObject", info.Holder(), info.GetIsolate()); |
8266 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8666 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8267 double doubleArg; | 8667 double doubleArg; |
8268 { | 8668 { |
8269 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(doubleArg, toDouble(info[0], excep
tionState), exceptionState); | 8669 doubleArg = toDouble(info[0], exceptionState); |
| 8670 if (exceptionState.throwIfNeeded()) |
| 8671 return; |
8270 } | 8672 } |
8271 impl->overloadedMethodF(doubleArg); | 8673 impl->overloadedMethodF(doubleArg); |
8272 } | 8674 } |
8273 | 8675 |
8274 static void overloadedMethodFMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 8676 static void overloadedMethodFMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
8275 { | 8677 { |
8276 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodF", "TestObject", info.Holder(), info.GetIsolate()); | 8678 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodF", "TestObject", info.Holder(), info.GetIsolate()); |
8277 switch (std::min(1, info.Length())) { | 8679 switch (std::min(1, info.Length())) { |
8278 case 0: | 8680 case 0: |
8279 if (true) { | 8681 if (true) { |
(...skipping 17 matching lines...) Expand all Loading... |
8297 if (true) { | 8699 if (true) { |
8298 overloadedMethodF2Method(info); | 8700 overloadedMethodF2Method(info); |
8299 return; | 8701 return; |
8300 } | 8702 } |
8301 break; | 8703 break; |
8302 default: | 8704 default: |
8303 break; | 8705 break; |
8304 } | 8706 } |
8305 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 8707 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
8306 exceptionState.throwIfNeeded(); | 8708 exceptionState.throwIfNeeded(); |
| 8709 return; |
8307 } | 8710 } |
8308 | 8711 |
8309 static void overloadedMethodFMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 8712 static void overloadedMethodFMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
8310 { | 8713 { |
8311 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 8714 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
8312 TestObjectV8Internal::overloadedMethodFMethod(info); | 8715 TestObjectV8Internal::overloadedMethodFMethod(info); |
8313 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 8716 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
8314 } | 8717 } |
8315 | 8718 |
8316 static void overloadedMethodG1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8719 static void overloadedMethodG1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
8317 { | 8720 { |
8318 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodG", "TestObject", info.Holder(), info.GetIsolate()); | 8721 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodG", "TestObject", info.Holder(), info.GetIsolate()); |
8319 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8722 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8320 int longArg; | 8723 int longArg; |
8321 { | 8724 { |
8322 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); | 8725 longArg = toInt32(info[0], exceptionState); |
| 8726 if (exceptionState.throwIfNeeded()) |
| 8727 return; |
8323 } | 8728 } |
8324 impl->overloadedMethodG(longArg); | 8729 impl->overloadedMethodG(longArg); |
8325 } | 8730 } |
8326 | 8731 |
8327 static void overloadedMethodG2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8732 static void overloadedMethodG2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
8328 { | 8733 { |
8329 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8734 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8330 TestInterfaceEmpty* testInterfaceEmptyOrNullArg; | 8735 TestInterfaceEmpty* testInterfaceEmptyOrNullArg; |
8331 { | 8736 { |
8332 if (!info[0]->IsUndefined()) { | 8737 if (!info[0]->IsUndefined()) { |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8364 if (true) { | 8769 if (true) { |
8365 overloadedMethodG1Method(info); | 8770 overloadedMethodG1Method(info); |
8366 return; | 8771 return; |
8367 } | 8772 } |
8368 break; | 8773 break; |
8369 default: | 8774 default: |
8370 break; | 8775 break; |
8371 } | 8776 } |
8372 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 8777 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
8373 exceptionState.throwIfNeeded(); | 8778 exceptionState.throwIfNeeded(); |
| 8779 return; |
8374 } | 8780 } |
8375 | 8781 |
8376 static void overloadedMethodGMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 8782 static void overloadedMethodGMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
8377 { | 8783 { |
8378 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 8784 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
8379 TestObjectV8Internal::overloadedMethodGMethod(info); | 8785 TestObjectV8Internal::overloadedMethodGMethod(info); |
8380 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 8786 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
8381 } | 8787 } |
8382 | 8788 |
8383 static void overloadedMethodH1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8789 static void overloadedMethodH1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8417 default: | 8823 default: |
8418 break; | 8824 break; |
8419 } | 8825 } |
8420 if (info.Length() < 1) { | 8826 if (info.Length() < 1) { |
8421 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 8827 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
8422 exceptionState.throwIfNeeded(); | 8828 exceptionState.throwIfNeeded(); |
8423 return; | 8829 return; |
8424 } | 8830 } |
8425 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 8831 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
8426 exceptionState.throwIfNeeded(); | 8832 exceptionState.throwIfNeeded(); |
| 8833 return; |
8427 } | 8834 } |
8428 | 8835 |
8429 static void overloadedMethodHMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 8836 static void overloadedMethodHMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
8430 { | 8837 { |
8431 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 8838 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
8432 TestObjectV8Internal::overloadedMethodHMethod(info); | 8839 TestObjectV8Internal::overloadedMethodHMethod(info); |
8433 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 8840 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
8434 } | 8841 } |
8435 | 8842 |
8436 static void overloadedMethodI1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8843 static void overloadedMethodI1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
8437 { | 8844 { |
8438 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8845 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8439 V8StringResource<> stringArg; | 8846 V8StringResource<> stringArg; |
8440 { | 8847 { |
8441 TOSTRING_VOID_INTERNAL(stringArg, info[0]); | 8848 stringArg = info[0]; |
| 8849 if (!stringArg.prepare()) |
| 8850 return; |
8442 } | 8851 } |
8443 impl->overloadedMethodI(stringArg); | 8852 impl->overloadedMethodI(stringArg); |
8444 } | 8853 } |
8445 | 8854 |
8446 static void overloadedMethodI2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8855 static void overloadedMethodI2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
8447 { | 8856 { |
8448 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodI", "TestObject", info.Holder(), info.GetIsolate()); | 8857 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodI", "TestObject", info.Holder(), info.GetIsolate()); |
8449 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8858 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8450 double doubleArg; | 8859 double doubleArg; |
8451 { | 8860 { |
8452 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(doubleArg, toDouble(info[0], excep
tionState), exceptionState); | 8861 doubleArg = toDouble(info[0], exceptionState); |
| 8862 if (exceptionState.throwIfNeeded()) |
| 8863 return; |
8453 } | 8864 } |
8454 impl->overloadedMethodI(doubleArg); | 8865 impl->overloadedMethodI(doubleArg); |
8455 } | 8866 } |
8456 | 8867 |
8457 static void overloadedMethodIMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 8868 static void overloadedMethodIMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
8458 { | 8869 { |
8459 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodI", "TestObject", info.Holder(), info.GetIsolate()); | 8870 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodI", "TestObject", info.Holder(), info.GetIsolate()); |
8460 switch (std::min(1, info.Length())) { | 8871 switch (std::min(1, info.Length())) { |
8461 case 1: | 8872 case 1: |
8462 if (info[0]->IsNumber()) { | 8873 if (info[0]->IsNumber()) { |
(...skipping 12 matching lines...) Expand all Loading... |
8475 default: | 8886 default: |
8476 break; | 8887 break; |
8477 } | 8888 } |
8478 if (info.Length() < 1) { | 8889 if (info.Length() < 1) { |
8479 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 8890 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
8480 exceptionState.throwIfNeeded(); | 8891 exceptionState.throwIfNeeded(); |
8481 return; | 8892 return; |
8482 } | 8893 } |
8483 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 8894 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
8484 exceptionState.throwIfNeeded(); | 8895 exceptionState.throwIfNeeded(); |
| 8896 return; |
8485 } | 8897 } |
8486 | 8898 |
8487 static void overloadedMethodIMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 8899 static void overloadedMethodIMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
8488 { | 8900 { |
8489 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 8901 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
8490 TestObjectV8Internal::overloadedMethodIMethod(info); | 8902 TestObjectV8Internal::overloadedMethodIMethod(info); |
8491 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 8903 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
8492 } | 8904 } |
8493 | 8905 |
8494 static void overloadedMethodJ1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8906 static void overloadedMethodJ1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
8495 { | 8907 { |
8496 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8908 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8497 V8StringResource<> stringArg; | 8909 V8StringResource<> stringArg; |
8498 { | 8910 { |
8499 TOSTRING_VOID_INTERNAL(stringArg, info[0]); | 8911 stringArg = info[0]; |
| 8912 if (!stringArg.prepare()) |
| 8913 return; |
8500 } | 8914 } |
8501 impl->overloadedMethodJ(stringArg); | 8915 impl->overloadedMethodJ(stringArg); |
8502 } | 8916 } |
8503 | 8917 |
8504 static void overloadedMethodJ2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8918 static void overloadedMethodJ2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
8505 { | 8919 { |
8506 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodJ", "TestObject", info.Holder(), info.GetIsolate()); | 8920 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodJ", "TestObject", info.Holder(), info.GetIsolate()); |
8507 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8921 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8508 TestDictionary testDictionaryArg; | 8922 TestDictionary testDictionaryArg; |
8509 { | 8923 { |
8510 if (!isUndefinedOrNull(info[0]) && !info[0]->IsObject()) { | 8924 if (!isUndefinedOrNull(info[0]) && !info[0]->IsObject()) { |
8511 exceptionState.throwTypeError("parameter 1 ('testDictionaryArg') is
not an object."); | 8925 exceptionState.throwTypeError("parameter 1 ('testDictionaryArg') is
not an object."); |
8512 exceptionState.throwIfNeeded(); | 8926 exceptionState.throwIfNeeded(); |
8513 return; | 8927 return; |
8514 } | 8928 } |
8515 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8TestDictionary::toImpl(info.G
etIsolate(), info[0], testDictionaryArg, exceptionState), exceptionState); | 8929 if (!V8TestDictionary::toImpl(info.GetIsolate(), info[0], testDictionary
Arg, exceptionState)) { |
| 8930 exceptionState.throwException(); |
| 8931 return; |
| 8932 } |
8516 } | 8933 } |
8517 impl->overloadedMethodJ(testDictionaryArg); | 8934 impl->overloadedMethodJ(testDictionaryArg); |
8518 } | 8935 } |
8519 | 8936 |
8520 static void overloadedMethodJMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 8937 static void overloadedMethodJMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
8521 { | 8938 { |
8522 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodJ", "TestObject", info.Holder(), info.GetIsolate()); | 8939 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodJ", "TestObject", info.Holder(), info.GetIsolate()); |
8523 switch (std::min(1, info.Length())) { | 8940 switch (std::min(1, info.Length())) { |
8524 case 1: | 8941 case 1: |
8525 if (info[0]->IsObject()) { | 8942 if (info[0]->IsObject()) { |
8526 overloadedMethodJ2Method(info); | 8943 overloadedMethodJ2Method(info); |
8527 return; | 8944 return; |
8528 } | 8945 } |
8529 if (true) { | 8946 if (true) { |
8530 overloadedMethodJ1Method(info); | 8947 overloadedMethodJ1Method(info); |
8531 return; | 8948 return; |
8532 } | 8949 } |
8533 break; | 8950 break; |
8534 default: | 8951 default: |
8535 break; | 8952 break; |
8536 } | 8953 } |
8537 if (info.Length() < 1) { | 8954 if (info.Length() < 1) { |
8538 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 8955 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
8539 exceptionState.throwIfNeeded(); | 8956 exceptionState.throwIfNeeded(); |
8540 return; | 8957 return; |
8541 } | 8958 } |
8542 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 8959 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
8543 exceptionState.throwIfNeeded(); | 8960 exceptionState.throwIfNeeded(); |
| 8961 return; |
8544 } | 8962 } |
8545 | 8963 |
8546 static void overloadedMethodJMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 8964 static void overloadedMethodJMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
8547 { | 8965 { |
8548 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 8966 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
8549 TestObjectV8Internal::overloadedMethodJMethod(info); | 8967 TestObjectV8Internal::overloadedMethodJMethod(info); |
8550 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 8968 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
8551 } | 8969 } |
8552 | 8970 |
8553 static void overloadedMethodK1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8971 static void overloadedMethodK1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
8554 { | 8972 { |
8555 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8973 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8556 ScriptValue functionArg; | 8974 ScriptValue functionArg; |
8557 { | 8975 { |
8558 if (!info[0]->IsFunction()) { | 8976 if (!info[0]->IsFunction()) { |
8559 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessage
s::failedToExecute("overloadedMethodK", "TestObject", "The callback provided as
parameter 1 is not a function.")); | 8977 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessage
s::failedToExecute("overloadedMethodK", "TestObject", "The callback provided as
parameter 1 is not a function.")); |
8560 return; | 8978 return; |
8561 } | 8979 } |
8562 functionArg = ScriptValue(ScriptState::current(info.GetIsolate()), info[
0]); | 8980 functionArg = ScriptValue(ScriptState::current(info.GetIsolate()), info[
0]); |
8563 } | 8981 } |
8564 impl->overloadedMethodK(functionArg); | 8982 impl->overloadedMethodK(functionArg); |
8565 } | 8983 } |
8566 | 8984 |
8567 static void overloadedMethodK2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8985 static void overloadedMethodK2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
8568 { | 8986 { |
8569 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8987 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8570 V8StringResource<> stringArg; | 8988 V8StringResource<> stringArg; |
8571 { | 8989 { |
8572 TOSTRING_VOID_INTERNAL(stringArg, info[0]); | 8990 stringArg = info[0]; |
| 8991 if (!stringArg.prepare()) |
| 8992 return; |
8573 } | 8993 } |
8574 impl->overloadedMethodK(stringArg); | 8994 impl->overloadedMethodK(stringArg); |
8575 } | 8995 } |
8576 | 8996 |
8577 static void overloadedMethodKMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 8997 static void overloadedMethodKMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
8578 { | 8998 { |
8579 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodK", "TestObject", info.Holder(), info.GetIsolate()); | 8999 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodK", "TestObject", info.Holder(), info.GetIsolate()); |
8580 switch (std::min(1, info.Length())) { | 9000 switch (std::min(1, info.Length())) { |
8581 case 1: | 9001 case 1: |
8582 if (info[0]->IsFunction()) { | 9002 if (info[0]->IsFunction()) { |
8583 overloadedMethodK1Method(info); | 9003 overloadedMethodK1Method(info); |
8584 return; | 9004 return; |
8585 } | 9005 } |
8586 if (true) { | 9006 if (true) { |
8587 overloadedMethodK2Method(info); | 9007 overloadedMethodK2Method(info); |
8588 return; | 9008 return; |
8589 } | 9009 } |
8590 break; | 9010 break; |
8591 default: | 9011 default: |
8592 break; | 9012 break; |
8593 } | 9013 } |
8594 if (info.Length() < 1) { | 9014 if (info.Length() < 1) { |
8595 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 9015 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
8596 exceptionState.throwIfNeeded(); | 9016 exceptionState.throwIfNeeded(); |
8597 return; | 9017 return; |
8598 } | 9018 } |
8599 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 9019 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
8600 exceptionState.throwIfNeeded(); | 9020 exceptionState.throwIfNeeded(); |
| 9021 return; |
8601 } | 9022 } |
8602 | 9023 |
8603 static void overloadedMethodKMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 9024 static void overloadedMethodKMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
8604 { | 9025 { |
8605 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 9026 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
8606 TestObjectV8Internal::overloadedMethodKMethod(info); | 9027 TestObjectV8Internal::overloadedMethodKMethod(info); |
8607 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9028 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
8608 } | 9029 } |
8609 | 9030 |
8610 static void overloadedMethodL1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 9031 static void overloadedMethodL1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
8611 { | 9032 { |
8612 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodL", "TestObject", info.Holder(), info.GetIsolate()); | 9033 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodL", "TestObject", info.Holder(), info.GetIsolate()); |
8613 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9034 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8614 int longArg; | 9035 int longArg; |
8615 Vector<ScriptValue> restArgs; | 9036 Vector<ScriptValue> restArgs; |
8616 { | 9037 { |
8617 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); | 9038 longArg = toInt32(info[0], exceptionState); |
8618 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(restArgs, toImplArguments<ScriptVa
lue>(info, 1, exceptionState), exceptionState); | 9039 if (exceptionState.throwIfNeeded()) |
| 9040 return; |
| 9041 restArgs = toImplArguments<ScriptValue>(info, 1, exceptionState); |
| 9042 if (exceptionState.throwIfNeeded()) |
| 9043 return; |
8619 } | 9044 } |
8620 impl->overloadedMethodL(longArg, restArgs); | 9045 impl->overloadedMethodL(longArg, restArgs); |
8621 } | 9046 } |
8622 | 9047 |
8623 static void overloadedMethodL2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 9048 static void overloadedMethodL2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
8624 { | 9049 { |
8625 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodL", "TestObject", info.Holder(), info.GetIsolate()); | 9050 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodL", "TestObject", info.Holder(), info.GetIsolate()); |
8626 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9051 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8627 V8StringResource<> stringArg; | 9052 V8StringResource<> stringArg; |
8628 Vector<ScriptValue> restArgs; | 9053 Vector<ScriptValue> restArgs; |
8629 { | 9054 { |
8630 TOSTRING_VOID_INTERNAL(stringArg, info[0]); | 9055 stringArg = info[0]; |
8631 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(restArgs, toImplArguments<ScriptVa
lue>(info, 1, exceptionState), exceptionState); | 9056 if (!stringArg.prepare()) |
| 9057 return; |
| 9058 restArgs = toImplArguments<ScriptValue>(info, 1, exceptionState); |
| 9059 if (exceptionState.throwIfNeeded()) |
| 9060 return; |
8632 } | 9061 } |
8633 impl->overloadedMethodL(stringArg, restArgs); | 9062 impl->overloadedMethodL(stringArg, restArgs); |
8634 } | 9063 } |
8635 | 9064 |
8636 static void overloadedMethodLMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 9065 static void overloadedMethodLMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
8637 { | 9066 { |
8638 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodL", "TestObject", info.Holder(), info.GetIsolate()); | 9067 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodL", "TestObject", info.Holder(), info.GetIsolate()); |
8639 switch (std::min(2, info.Length())) { | 9068 switch (std::min(2, info.Length())) { |
8640 case 1: | 9069 case 1: |
8641 if (info[0]->IsNumber()) { | 9070 if (info[0]->IsNumber()) { |
(...skipping 26 matching lines...) Expand all Loading... |
8668 default: | 9097 default: |
8669 break; | 9098 break; |
8670 } | 9099 } |
8671 if (info.Length() < 1) { | 9100 if (info.Length() < 1) { |
8672 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 9101 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
8673 exceptionState.throwIfNeeded(); | 9102 exceptionState.throwIfNeeded(); |
8674 return; | 9103 return; |
8675 } | 9104 } |
8676 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 9105 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
8677 exceptionState.throwIfNeeded(); | 9106 exceptionState.throwIfNeeded(); |
| 9107 return; |
8678 } | 9108 } |
8679 | 9109 |
8680 static void overloadedMethodLMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 9110 static void overloadedMethodLMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
8681 { | 9111 { |
8682 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 9112 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
8683 TestObjectV8Internal::overloadedMethodLMethod(info); | 9113 TestObjectV8Internal::overloadedMethodLMethod(info); |
8684 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9114 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
8685 } | 9115 } |
8686 | 9116 |
8687 static void promiseOverloadMethod1Method(const v8::FunctionCallbackInfo<v8::Valu
e>& info) | 9117 static void promiseOverloadMethod1Method(const v8::FunctionCallbackInfo<v8::Valu
e>& info) |
8688 { | 9118 { |
8689 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9119 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8690 v8SetReturnValue(info, impl->promiseOverloadMethod().v8Value()); | 9120 v8SetReturnValue(info, impl->promiseOverloadMethod().v8Value()); |
8691 } | 9121 } |
8692 | 9122 |
| 9123 static void promiseOverloadMethod2MethodPromise(const v8::FunctionCallbackInfo<v
8::Value>& info, ExceptionState& exceptionState) |
| 9124 { |
| 9125 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 9126 DOMWindow* arg1; |
| 9127 double arg2; |
| 9128 { |
| 9129 arg1 = toDOMWindow(info.GetIsolate(), info[0]); |
| 9130 arg2 = toDouble(info[1], exceptionState); |
| 9131 if (exceptionState.hadException()) |
| 9132 return; |
| 9133 } |
| 9134 v8SetReturnValue(info, impl->promiseOverloadMethod(arg1, arg2).v8Value()); |
| 9135 } |
| 9136 |
8693 static void promiseOverloadMethod2Method(const v8::FunctionCallbackInfo<v8::Valu
e>& info) | 9137 static void promiseOverloadMethod2Method(const v8::FunctionCallbackInfo<v8::Valu
e>& info) |
8694 { | 9138 { |
8695 ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseOver
loadMethod", "TestObject", info.Holder(), info.GetIsolate()); | 9139 ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseOver
loadMethod", "TestObject", info.Holder(), info.GetIsolate()); |
| 9140 promiseOverloadMethod2MethodPromise(info, exceptionState); |
| 9141 if (exceptionState.hadException()) |
| 9142 v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.G
etIsolate())).v8Value()); |
| 9143 } |
| 9144 |
| 9145 static void promiseOverloadMethod3MethodPromise(const v8::FunctionCallbackInfo<v
8::Value>& info, ExceptionState& exceptionState) |
| 9146 { |
8696 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9147 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8697 DOMWindow* arg1; | 9148 Document* arg1; |
8698 double arg2; | 9149 double arg2; |
8699 { | 9150 { |
8700 arg1 = toDOMWindow(info.GetIsolate(), info[0]); | 9151 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())); | 9152 arg2 = toDouble(info[1], exceptionState); |
| 9153 if (exceptionState.hadException()) |
| 9154 return; |
8702 } | 9155 } |
8703 v8SetReturnValue(info, impl->promiseOverloadMethod(arg1, arg2).v8Value()); | 9156 v8SetReturnValue(info, impl->promiseOverloadMethod(arg1, arg2).v8Value()); |
8704 } | 9157 } |
8705 | 9158 |
8706 static void promiseOverloadMethod3Method(const v8::FunctionCallbackInfo<v8::Valu
e>& info) | 9159 static void promiseOverloadMethod3Method(const v8::FunctionCallbackInfo<v8::Valu
e>& info) |
8707 { | 9160 { |
8708 ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseOver
loadMethod", "TestObject", info.Holder(), info.GetIsolate()); | 9161 ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseOver
loadMethod", "TestObject", info.Holder(), info.GetIsolate()); |
8709 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9162 promiseOverloadMethod3MethodPromise(info, exceptionState); |
8710 Document* arg1; | 9163 if (exceptionState.hadException()) |
8711 double arg2; | 9164 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 } | 9165 } |
8718 | 9166 |
8719 static void promiseOverloadMethodMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) | 9167 static void promiseOverloadMethodMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) |
8720 { | 9168 { |
8721 ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseOver
loadMethod", "TestObject", info.Holder(), info.GetIsolate()); | 9169 ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseOver
loadMethod", "TestObject", info.Holder(), info.GetIsolate()); |
8722 switch (std::min(2, info.Length())) { | 9170 switch (std::min(2, info.Length())) { |
8723 case 0: | 9171 case 0: |
8724 if (true) { | 9172 if (true) { |
8725 promiseOverloadMethod1Method(info); | 9173 promiseOverloadMethod1Method(info); |
8726 return; | 9174 return; |
(...skipping 12 matching lines...) Expand all Loading... |
8739 default: | 9187 default: |
8740 if (info.Length() >= 0) { | 9188 if (info.Length() >= 0) { |
8741 setArityTypeError(exceptionState, "[0, 2]", info.Length()); | 9189 setArityTypeError(exceptionState, "[0, 2]", info.Length()); |
8742 v8SetReturnValue(info, exceptionState.reject(ScriptState::current(in
fo.GetIsolate())).v8Value()); | 9190 v8SetReturnValue(info, exceptionState.reject(ScriptState::current(in
fo.GetIsolate())).v8Value()); |
8743 return; | 9191 return; |
8744 } | 9192 } |
8745 break; | 9193 break; |
8746 } | 9194 } |
8747 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 9195 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
8748 v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.GetIs
olate())).v8Value()); | 9196 v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.GetIs
olate())).v8Value()); |
| 9197 return; |
8749 } | 9198 } |
8750 | 9199 |
8751 static void promiseOverloadMethodMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) | 9200 static void promiseOverloadMethodMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) |
8752 { | 9201 { |
8753 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 9202 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
8754 TestObjectV8Internal::promiseOverloadMethodMethod(info); | 9203 TestObjectV8Internal::promiseOverloadMethodMethod(info); |
8755 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9204 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
8756 } | 9205 } |
8757 | 9206 |
8758 static void overloadedPerWorldBindingsMethod1Method(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 9207 static void overloadedPerWorldBindingsMethod1Method(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
8759 { | 9208 { |
8760 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9209 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8761 impl->overloadedPerWorldBindingsMethod(); | 9210 impl->overloadedPerWorldBindingsMethod(); |
8762 } | 9211 } |
8763 | 9212 |
8764 static void overloadedPerWorldBindingsMethod1MethodForMainWorld(const v8::Functi
onCallbackInfo<v8::Value>& info) | 9213 static void overloadedPerWorldBindingsMethod1MethodForMainWorld(const v8::Functi
onCallbackInfo<v8::Value>& info) |
8765 { | 9214 { |
8766 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9215 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8767 impl->overloadedPerWorldBindingsMethod(); | 9216 impl->overloadedPerWorldBindingsMethod(); |
8768 } | 9217 } |
8769 | 9218 |
8770 static void overloadedPerWorldBindingsMethod2Method(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 9219 static void overloadedPerWorldBindingsMethod2Method(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
8771 { | 9220 { |
8772 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP
erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate()); | 9221 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP
erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate()); |
8773 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9222 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8774 int longArg; | 9223 int longArg; |
8775 { | 9224 { |
8776 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); | 9225 longArg = toInt32(info[0], exceptionState); |
| 9226 if (exceptionState.throwIfNeeded()) |
| 9227 return; |
8777 } | 9228 } |
8778 impl->overloadedPerWorldBindingsMethod(longArg); | 9229 impl->overloadedPerWorldBindingsMethod(longArg); |
8779 } | 9230 } |
8780 | 9231 |
8781 static void overloadedPerWorldBindingsMethodMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) | 9232 static void overloadedPerWorldBindingsMethodMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) |
8782 { | 9233 { |
8783 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP
erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate()); | 9234 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP
erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate()); |
8784 switch (std::min(1, info.Length())) { | 9235 switch (std::min(1, info.Length())) { |
8785 case 0: | 9236 case 0: |
8786 if (true) { | 9237 if (true) { |
8787 overloadedPerWorldBindingsMethod1Method(info); | 9238 overloadedPerWorldBindingsMethod1Method(info); |
8788 return; | 9239 return; |
8789 } | 9240 } |
8790 break; | 9241 break; |
8791 case 1: | 9242 case 1: |
8792 if (true) { | 9243 if (true) { |
8793 overloadedPerWorldBindingsMethod2Method(info); | 9244 overloadedPerWorldBindingsMethod2Method(info); |
8794 return; | 9245 return; |
8795 } | 9246 } |
8796 break; | 9247 break; |
8797 default: | 9248 default: |
8798 break; | 9249 break; |
8799 } | 9250 } |
8800 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 9251 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
8801 exceptionState.throwIfNeeded(); | 9252 exceptionState.throwIfNeeded(); |
| 9253 return; |
8802 } | 9254 } |
8803 | 9255 |
8804 static void overloadedPerWorldBindingsMethodMethodCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) | 9256 static void overloadedPerWorldBindingsMethodMethodCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
8805 { | 9257 { |
8806 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 9258 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
8807 TestObjectV8Internal::overloadedPerWorldBindingsMethodMethod(info); | 9259 TestObjectV8Internal::overloadedPerWorldBindingsMethodMethod(info); |
8808 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9260 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
8809 } | 9261 } |
8810 | 9262 |
8811 static void overloadedPerWorldBindingsMethod2MethodForMainWorld(const v8::Functi
onCallbackInfo<v8::Value>& info) | 9263 static void overloadedPerWorldBindingsMethod2MethodForMainWorld(const v8::Functi
onCallbackInfo<v8::Value>& info) |
8812 { | 9264 { |
8813 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP
erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate()); | 9265 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP
erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate()); |
8814 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9266 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8815 int longArg; | 9267 int longArg; |
8816 { | 9268 { |
8817 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); | 9269 longArg = toInt32(info[0], exceptionState); |
| 9270 if (exceptionState.throwIfNeeded()) |
| 9271 return; |
8818 } | 9272 } |
8819 impl->overloadedPerWorldBindingsMethod(longArg); | 9273 impl->overloadedPerWorldBindingsMethod(longArg); |
8820 } | 9274 } |
8821 | 9275 |
8822 static void overloadedPerWorldBindingsMethodMethodForMainWorld(const v8::Functio
nCallbackInfo<v8::Value>& info) | 9276 static void overloadedPerWorldBindingsMethodMethodForMainWorld(const v8::Functio
nCallbackInfo<v8::Value>& info) |
8823 { | 9277 { |
8824 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP
erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate()); | 9278 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP
erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate()); |
8825 switch (std::min(1, info.Length())) { | 9279 switch (std::min(1, info.Length())) { |
8826 case 0: | 9280 case 0: |
8827 if (true) { | 9281 if (true) { |
8828 overloadedPerWorldBindingsMethod1MethodForMainWorld(info); | 9282 overloadedPerWorldBindingsMethod1MethodForMainWorld(info); |
8829 return; | 9283 return; |
8830 } | 9284 } |
8831 break; | 9285 break; |
8832 case 1: | 9286 case 1: |
8833 if (true) { | 9287 if (true) { |
8834 overloadedPerWorldBindingsMethod2MethodForMainWorld(info); | 9288 overloadedPerWorldBindingsMethod2MethodForMainWorld(info); |
8835 return; | 9289 return; |
8836 } | 9290 } |
8837 break; | 9291 break; |
8838 default: | 9292 default: |
8839 break; | 9293 break; |
8840 } | 9294 } |
8841 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 9295 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
8842 exceptionState.throwIfNeeded(); | 9296 exceptionState.throwIfNeeded(); |
| 9297 return; |
8843 } | 9298 } |
8844 | 9299 |
8845 static void overloadedPerWorldBindingsMethodMethodCallbackForMainWorld(const v8:
:FunctionCallbackInfo<v8::Value>& info) | 9300 static void overloadedPerWorldBindingsMethodMethodCallbackForMainWorld(const v8:
:FunctionCallbackInfo<v8::Value>& info) |
8846 { | 9301 { |
8847 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 9302 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
8848 TestObjectV8Internal::overloadedPerWorldBindingsMethodMethodForMainWorld(inf
o); | 9303 TestObjectV8Internal::overloadedPerWorldBindingsMethodMethodForMainWorld(inf
o); |
8849 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9304 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
8850 } | 9305 } |
8851 | 9306 |
8852 static void overloadedStaticMethod1Method(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 9307 static void overloadedStaticMethod1Method(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
8853 { | 9308 { |
8854 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS
taticMethod", "TestObject", info.Holder(), info.GetIsolate()); | 9309 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS
taticMethod", "TestObject", info.Holder(), info.GetIsolate()); |
8855 int longArg; | 9310 int longArg; |
8856 { | 9311 { |
8857 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); | 9312 longArg = toInt32(info[0], exceptionState); |
| 9313 if (exceptionState.throwIfNeeded()) |
| 9314 return; |
8858 } | 9315 } |
8859 TestObject::overloadedStaticMethod(longArg); | 9316 TestObject::overloadedStaticMethod(longArg); |
8860 } | 9317 } |
8861 | 9318 |
8862 static void overloadedStaticMethod2Method(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 9319 static void overloadedStaticMethod2Method(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
8863 { | 9320 { |
8864 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS
taticMethod", "TestObject", info.Holder(), info.GetIsolate()); | 9321 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS
taticMethod", "TestObject", info.Holder(), info.GetIsolate()); |
8865 int longArg1; | 9322 int longArg1; |
8866 int longArg2; | 9323 int longArg2; |
8867 { | 9324 { |
8868 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg1, toInt32(info[0], excepti
onState), exceptionState); | 9325 longArg1 = toInt32(info[0], exceptionState); |
8869 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg2, toInt32(info[1], excepti
onState), exceptionState); | 9326 if (exceptionState.throwIfNeeded()) |
| 9327 return; |
| 9328 longArg2 = toInt32(info[1], exceptionState); |
| 9329 if (exceptionState.throwIfNeeded()) |
| 9330 return; |
8870 } | 9331 } |
8871 TestObject::overloadedStaticMethod(longArg1, longArg2); | 9332 TestObject::overloadedStaticMethod(longArg1, longArg2); |
8872 } | 9333 } |
8873 | 9334 |
8874 static void overloadedStaticMethodMethod(const v8::FunctionCallbackInfo<v8::Valu
e>& info) | 9335 static void overloadedStaticMethodMethod(const v8::FunctionCallbackInfo<v8::Valu
e>& info) |
8875 { | 9336 { |
8876 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS
taticMethod", "TestObject", info.Holder(), info.GetIsolate()); | 9337 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS
taticMethod", "TestObject", info.Holder(), info.GetIsolate()); |
8877 switch (std::min(2, info.Length())) { | 9338 switch (std::min(2, info.Length())) { |
8878 case 1: | 9339 case 1: |
8879 if (true) { | 9340 if (true) { |
(...skipping 10 matching lines...) Expand all Loading... |
8890 default: | 9351 default: |
8891 break; | 9352 break; |
8892 } | 9353 } |
8893 if (info.Length() < 1) { | 9354 if (info.Length() < 1) { |
8894 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 9355 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
8895 exceptionState.throwIfNeeded(); | 9356 exceptionState.throwIfNeeded(); |
8896 return; | 9357 return; |
8897 } | 9358 } |
8898 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 9359 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
8899 exceptionState.throwIfNeeded(); | 9360 exceptionState.throwIfNeeded(); |
| 9361 return; |
8900 } | 9362 } |
8901 | 9363 |
8902 static void overloadedStaticMethodMethodCallback(const v8::FunctionCallbackInfo<
v8::Value>& info) | 9364 static void overloadedStaticMethodMethodCallback(const v8::FunctionCallbackInfo<
v8::Value>& info) |
8903 { | 9365 { |
8904 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 9366 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
8905 TestObjectV8Internal::overloadedStaticMethodMethod(info); | 9367 TestObjectV8Internal::overloadedStaticMethodMethod(info); |
8906 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9368 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
8907 } | 9369 } |
8908 | 9370 |
8909 static void voidMethodClampUnsignedShortArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) | 9371 static void voidMethodClampUnsignedShortArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) |
8910 { | 9372 { |
8911 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodC
lampUnsignedShortArg", "TestObject", info.Holder(), info.GetIsolate()); | 9373 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodC
lampUnsignedShortArg", "TestObject", info.Holder(), info.GetIsolate()); |
8912 if (UNLIKELY(info.Length() < 1)) { | 9374 if (UNLIKELY(info.Length() < 1)) { |
8913 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 9375 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
8914 exceptionState.throwIfNeeded(); | 9376 exceptionState.throwIfNeeded(); |
8915 return; | 9377 return; |
8916 } | 9378 } |
8917 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9379 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8918 unsigned clampUnsignedShortArg; | 9380 unsigned clampUnsignedShortArg; |
8919 { | 9381 { |
8920 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(clampUnsignedShortArg, toUInt16(in
fo[0], Clamp, exceptionState), exceptionState); | 9382 clampUnsignedShortArg = toUInt16(info[0], Clamp, exceptionState); |
| 9383 if (exceptionState.throwIfNeeded()) |
| 9384 return; |
8921 } | 9385 } |
8922 impl->voidMethodClampUnsignedShortArg(clampUnsignedShortArg); | 9386 impl->voidMethodClampUnsignedShortArg(clampUnsignedShortArg); |
8923 } | 9387 } |
8924 | 9388 |
8925 static void voidMethodClampUnsignedShortArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) | 9389 static void voidMethodClampUnsignedShortArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
8926 { | 9390 { |
8927 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 9391 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
8928 TestObjectV8Internal::voidMethodClampUnsignedShortArgMethod(info); | 9392 TestObjectV8Internal::voidMethodClampUnsignedShortArgMethod(info); |
8929 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9393 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
8930 } | 9394 } |
8931 | 9395 |
8932 static void voidMethodClampUnsignedLongArgMethod(const v8::FunctionCallbackInfo<
v8::Value>& info) | 9396 static void voidMethodClampUnsignedLongArgMethod(const v8::FunctionCallbackInfo<
v8::Value>& info) |
8933 { | 9397 { |
8934 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodC
lampUnsignedLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 9398 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodC
lampUnsignedLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
8935 if (UNLIKELY(info.Length() < 1)) { | 9399 if (UNLIKELY(info.Length() < 1)) { |
8936 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 9400 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
8937 exceptionState.throwIfNeeded(); | 9401 exceptionState.throwIfNeeded(); |
8938 return; | 9402 return; |
8939 } | 9403 } |
8940 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9404 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8941 unsigned clampUnsignedLongArg; | 9405 unsigned clampUnsignedLongArg; |
8942 { | 9406 { |
8943 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(clampUnsignedLongArg, toUInt32(inf
o[0], Clamp, exceptionState), exceptionState); | 9407 clampUnsignedLongArg = toUInt32(info[0], Clamp, exceptionState); |
| 9408 if (exceptionState.throwIfNeeded()) |
| 9409 return; |
8944 } | 9410 } |
8945 impl->voidMethodClampUnsignedLongArg(clampUnsignedLongArg); | 9411 impl->voidMethodClampUnsignedLongArg(clampUnsignedLongArg); |
8946 } | 9412 } |
8947 | 9413 |
8948 static void voidMethodClampUnsignedLongArgMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) | 9414 static void voidMethodClampUnsignedLongArgMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
8949 { | 9415 { |
8950 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 9416 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
8951 TestObjectV8Internal::voidMethodClampUnsignedLongArgMethod(info); | 9417 TestObjectV8Internal::voidMethodClampUnsignedLongArgMethod(info); |
8952 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9418 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
8953 } | 9419 } |
(...skipping 14 matching lines...) Expand all Loading... |
8968 TestObjectV8Internal::voidMethodDefaultUndefinedTestInterfaceEmptyArgMethod(
info); | 9434 TestObjectV8Internal::voidMethodDefaultUndefinedTestInterfaceEmptyArgMethod(
info); |
8969 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9435 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
8970 } | 9436 } |
8971 | 9437 |
8972 static void voidMethodDefaultUndefinedLongArgMethod(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 9438 static void voidMethodDefaultUndefinedLongArgMethod(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
8973 { | 9439 { |
8974 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultUndefinedLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 9440 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultUndefinedLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
8975 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9441 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8976 int defaultUndefinedLongArg; | 9442 int defaultUndefinedLongArg; |
8977 { | 9443 { |
8978 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultUndefinedLongArg, toInt32(i
nfo[0], exceptionState), exceptionState); | 9444 defaultUndefinedLongArg = toInt32(info[0], exceptionState); |
| 9445 if (exceptionState.throwIfNeeded()) |
| 9446 return; |
8979 } | 9447 } |
8980 impl->voidMethodDefaultUndefinedLongArg(defaultUndefinedLongArg); | 9448 impl->voidMethodDefaultUndefinedLongArg(defaultUndefinedLongArg); |
8981 } | 9449 } |
8982 | 9450 |
8983 static void voidMethodDefaultUndefinedLongArgMethodCallback(const v8::FunctionCa
llbackInfo<v8::Value>& info) | 9451 static void voidMethodDefaultUndefinedLongArgMethodCallback(const v8::FunctionCa
llbackInfo<v8::Value>& info) |
8984 { | 9452 { |
8985 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 9453 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
8986 TestObjectV8Internal::voidMethodDefaultUndefinedLongArgMethod(info); | 9454 TestObjectV8Internal::voidMethodDefaultUndefinedLongArgMethod(info); |
8987 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9455 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
8988 } | 9456 } |
8989 | 9457 |
8990 static void voidMethodDefaultUndefinedStringArgMethod(const v8::FunctionCallback
Info<v8::Value>& info) | 9458 static void voidMethodDefaultUndefinedStringArgMethod(const v8::FunctionCallback
Info<v8::Value>& info) |
8991 { | 9459 { |
8992 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9460 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8993 V8StringResource<> defaultUndefinedStringArg; | 9461 V8StringResource<> defaultUndefinedStringArg; |
8994 { | 9462 { |
8995 TOSTRING_VOID_INTERNAL(defaultUndefinedStringArg, info[0]); | 9463 defaultUndefinedStringArg = info[0]; |
| 9464 if (!defaultUndefinedStringArg.prepare()) |
| 9465 return; |
8996 } | 9466 } |
8997 impl->voidMethodDefaultUndefinedStringArg(defaultUndefinedStringArg); | 9467 impl->voidMethodDefaultUndefinedStringArg(defaultUndefinedStringArg); |
8998 } | 9468 } |
8999 | 9469 |
9000 static void voidMethodDefaultUndefinedStringArgMethodCallback(const v8::Function
CallbackInfo<v8::Value>& info) | 9470 static void voidMethodDefaultUndefinedStringArgMethodCallback(const v8::Function
CallbackInfo<v8::Value>& info) |
9001 { | 9471 { |
9002 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 9472 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
9003 TestObjectV8Internal::voidMethodDefaultUndefinedStringArgMethod(info); | 9473 TestObjectV8Internal::voidMethodDefaultUndefinedStringArgMethod(info); |
9004 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9474 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
9005 } | 9475 } |
9006 | 9476 |
9007 static void voidMethodEnforceRangeLongArgMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) | 9477 static void voidMethodEnforceRangeLongArgMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) |
9008 { | 9478 { |
9009 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodE
nforceRangeLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 9479 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodE
nforceRangeLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
9010 if (UNLIKELY(info.Length() < 1)) { | 9480 if (UNLIKELY(info.Length() < 1)) { |
9011 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 9481 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
9012 exceptionState.throwIfNeeded(); | 9482 exceptionState.throwIfNeeded(); |
9013 return; | 9483 return; |
9014 } | 9484 } |
9015 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9485 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
9016 int enforceRangeLongArg; | 9486 int enforceRangeLongArg; |
9017 { | 9487 { |
9018 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(enforceRangeLongArg, toInt32(info[
0], EnforceRange, exceptionState), exceptionState); | 9488 enforceRangeLongArg = toInt32(info[0], EnforceRange, exceptionState); |
| 9489 if (exceptionState.throwIfNeeded()) |
| 9490 return; |
9019 } | 9491 } |
9020 impl->voidMethodEnforceRangeLongArg(enforceRangeLongArg); | 9492 impl->voidMethodEnforceRangeLongArg(enforceRangeLongArg); |
9021 } | 9493 } |
9022 | 9494 |
9023 static void voidMethodEnforceRangeLongArgMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) | 9495 static void voidMethodEnforceRangeLongArgMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
9024 { | 9496 { |
9025 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 9497 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
9026 TestObjectV8Internal::voidMethodEnforceRangeLongArgMethod(info); | 9498 TestObjectV8Internal::voidMethodEnforceRangeLongArgMethod(info); |
9027 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9499 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
9028 } | 9500 } |
9029 | 9501 |
9030 static void voidMethodTreatNullAsEmptyStringStringArgMethod(const v8::FunctionCa
llbackInfo<v8::Value>& info) | 9502 static void voidMethodTreatNullAsEmptyStringStringArgMethod(const v8::FunctionCa
llbackInfo<v8::Value>& info) |
9031 { | 9503 { |
9032 if (UNLIKELY(info.Length() < 1)) { | 9504 if (UNLIKELY(info.Length() < 1)) { |
9033 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "voidMethodTreatNullAsEmptyStringStringArg", "TestObject", 1, i
nfo.Length()), info.GetIsolate()); | 9505 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "voidMethodTreatNullAsEmptyStringStringArg", "TestObject", 1, i
nfo.Length()), info.GetIsolate()); |
9034 return; | 9506 return; |
9035 } | 9507 } |
9036 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9508 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
9037 V8StringResource<TreatNullAsEmptyString> treatNullAsEmptyStringStringArg; | 9509 V8StringResource<TreatNullAsEmptyString> treatNullAsEmptyStringStringArg; |
9038 { | 9510 { |
9039 TOSTRING_VOID_INTERNAL(treatNullAsEmptyStringStringArg, info[0]); | 9511 treatNullAsEmptyStringStringArg = info[0]; |
| 9512 if (!treatNullAsEmptyStringStringArg.prepare()) |
| 9513 return; |
9040 } | 9514 } |
9041 impl->voidMethodTreatNullAsEmptyStringStringArg(treatNullAsEmptyStringString
Arg); | 9515 impl->voidMethodTreatNullAsEmptyStringStringArg(treatNullAsEmptyStringString
Arg); |
9042 } | 9516 } |
9043 | 9517 |
9044 static void voidMethodTreatNullAsEmptyStringStringArgMethodCallback(const v8::Fu
nctionCallbackInfo<v8::Value>& info) | 9518 static void voidMethodTreatNullAsEmptyStringStringArgMethodCallback(const v8::Fu
nctionCallbackInfo<v8::Value>& info) |
9045 { | 9519 { |
9046 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 9520 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
9047 TestObjectV8Internal::voidMethodTreatNullAsEmptyStringStringArgMethod(info); | 9521 TestObjectV8Internal::voidMethodTreatNullAsEmptyStringStringArgMethod(info); |
9048 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9522 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
9049 } | 9523 } |
9050 | 9524 |
9051 static void voidMethodTreatNullAsNullStringStringArgMethod(const v8::FunctionCal
lbackInfo<v8::Value>& info) | 9525 static void voidMethodTreatNullAsNullStringStringArgMethod(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
9052 { | 9526 { |
9053 if (UNLIKELY(info.Length() < 1)) { | 9527 if (UNLIKELY(info.Length() < 1)) { |
9054 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "voidMethodTreatNullAsNullStringStringArg", "TestObject", 1, in
fo.Length()), info.GetIsolate()); | 9528 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "voidMethodTreatNullAsNullStringStringArg", "TestObject", 1, in
fo.Length()), info.GetIsolate()); |
9055 return; | 9529 return; |
9056 } | 9530 } |
9057 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9531 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
9058 V8StringResource<TreatNullAsNullString> treatNullAsNullStringStringArg; | 9532 V8StringResource<TreatNullAsNullString> treatNullAsNullStringStringArg; |
9059 { | 9533 { |
9060 TOSTRING_VOID_INTERNAL(treatNullAsNullStringStringArg, info[0]); | 9534 treatNullAsNullStringStringArg = info[0]; |
| 9535 if (!treatNullAsNullStringStringArg.prepare()) |
| 9536 return; |
9061 } | 9537 } |
9062 impl->voidMethodTreatNullAsNullStringStringArg(treatNullAsNullStringStringAr
g); | 9538 impl->voidMethodTreatNullAsNullStringStringArg(treatNullAsNullStringStringAr
g); |
9063 } | 9539 } |
9064 | 9540 |
9065 static void voidMethodTreatNullAsNullStringStringArgMethodCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) | 9541 static void voidMethodTreatNullAsNullStringStringArgMethodCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) |
9066 { | 9542 { |
9067 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 9543 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
9068 TestObjectV8Internal::voidMethodTreatNullAsNullStringStringArgMethod(info); | 9544 TestObjectV8Internal::voidMethodTreatNullAsNullStringStringArgMethod(info); |
9069 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9545 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
9070 } | 9546 } |
9071 | 9547 |
9072 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe
thod(const v8::FunctionCallbackInfo<v8::Value>& info) | 9548 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe
thod(const v8::FunctionCallbackInfo<v8::Value>& info) |
9073 { | 9549 { |
9074 if (UNLIKELY(info.Length() < 1)) { | 9550 if (UNLIKELY(info.Length() < 1)) { |
9075 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStrin
gArg", "TestObject", 1, info.Length()), info.GetIsolate()); | 9551 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStrin
gArg", "TestObject", 1, info.Length()), info.GetIsolate()); |
9076 return; | 9552 return; |
9077 } | 9553 } |
9078 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9554 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
9079 V8StringResource<TreatNullAndUndefinedAsNullString> treatNullAsNullStringStr
ingArg; | 9555 V8StringResource<TreatNullAndUndefinedAsNullString> treatNullAsNullStringStr
ingArg; |
9080 { | 9556 { |
9081 TOSTRING_VOID_INTERNAL(treatNullAsNullStringStringArg, info[0]); | 9557 treatNullAsNullStringStringArg = info[0]; |
| 9558 if (!treatNullAsNullStringStringArg.prepare()) |
| 9559 return; |
9082 } | 9560 } |
9083 impl->voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg(tre
atNullAsNullStringStringArg); | 9561 impl->voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg(tre
atNullAsNullStringStringArg); |
9084 } | 9562 } |
9085 | 9563 |
9086 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe
thodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) | 9564 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe
thodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
9087 { | 9565 { |
9088 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 9566 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
9089 TestObjectV8Internal::voidMethodTreatNullAsNullStringTreatUndefinedAsNullStr
ingStringArgMethod(info); | 9567 TestObjectV8Internal::voidMethodTreatNullAsNullStringTreatUndefinedAsNullStr
ingStringArgMethod(info); |
9090 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9568 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
9091 } | 9569 } |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9374 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9852 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
9375 impl->DeprecateAsOverloadedMethod(); | 9853 impl->DeprecateAsOverloadedMethod(); |
9376 } | 9854 } |
9377 | 9855 |
9378 static void DeprecateAsOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8
::Value>& info) | 9856 static void DeprecateAsOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8
::Value>& info) |
9379 { | 9857 { |
9380 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs
OverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); | 9858 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs
OverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); |
9381 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9859 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
9382 int arg; | 9860 int arg; |
9383 { | 9861 { |
9384 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta
te), exceptionState); | 9862 arg = toInt32(info[0], exceptionState); |
| 9863 if (exceptionState.throwIfNeeded()) |
| 9864 return; |
9385 } | 9865 } |
9386 impl->DeprecateAsOverloadedMethod(arg); | 9866 impl->DeprecateAsOverloadedMethod(arg); |
9387 } | 9867 } |
9388 | 9868 |
9389 static void DeprecateAsOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 9869 static void DeprecateAsOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
9390 { | 9870 { |
9391 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs
OverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); | 9871 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs
OverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); |
9392 switch (std::min(1, info.Length())) { | 9872 switch (std::min(1, info.Length())) { |
9393 case 0: | 9873 case 0: |
9394 if (true) { | 9874 if (true) { |
9395 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), ca
llingExecutionContext(info.GetIsolate()), UseCounter::TestFeatureA); | 9875 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), ca
llingExecutionContext(info.GetIsolate()), UseCounter::TestFeatureA); |
9396 DeprecateAsOverloadedMethod1Method(info); | 9876 DeprecateAsOverloadedMethod1Method(info); |
9397 return; | 9877 return; |
9398 } | 9878 } |
9399 break; | 9879 break; |
9400 case 1: | 9880 case 1: |
9401 if (true) { | 9881 if (true) { |
9402 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), ca
llingExecutionContext(info.GetIsolate()), UseCounter::TestFeatureB); | 9882 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), ca
llingExecutionContext(info.GetIsolate()), UseCounter::TestFeatureB); |
9403 DeprecateAsOverloadedMethod2Method(info); | 9883 DeprecateAsOverloadedMethod2Method(info); |
9404 return; | 9884 return; |
9405 } | 9885 } |
9406 break; | 9886 break; |
9407 default: | 9887 default: |
9408 break; | 9888 break; |
9409 } | 9889 } |
9410 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 9890 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
9411 exceptionState.throwIfNeeded(); | 9891 exceptionState.throwIfNeeded(); |
| 9892 return; |
9412 } | 9893 } |
9413 | 9894 |
9414 static void DeprecateAsOverloadedMethodMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 9895 static void DeprecateAsOverloadedMethodMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
9415 { | 9896 { |
9416 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 9897 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
9417 TestObjectV8Internal::DeprecateAsOverloadedMethodMethod(info); | 9898 TestObjectV8Internal::DeprecateAsOverloadedMethodMethod(info); |
9418 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9899 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
9419 } | 9900 } |
9420 | 9901 |
9421 static void DeprecateAsSameValueOverloadedMethod1Method(const v8::FunctionCallba
ckInfo<v8::Value>& info) | 9902 static void DeprecateAsSameValueOverloadedMethod1Method(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
9422 { | 9903 { |
9423 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9904 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
9424 impl->DeprecateAsSameValueOverloadedMethod(); | 9905 impl->DeprecateAsSameValueOverloadedMethod(); |
9425 } | 9906 } |
9426 | 9907 |
9427 static void DeprecateAsSameValueOverloadedMethod2Method(const v8::FunctionCallba
ckInfo<v8::Value>& info) | 9908 static void DeprecateAsSameValueOverloadedMethod2Method(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
9428 { | 9909 { |
9429 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs
SameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); | 9910 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs
SameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); |
9430 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9911 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
9431 int arg; | 9912 int arg; |
9432 { | 9913 { |
9433 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta
te), exceptionState); | 9914 arg = toInt32(info[0], exceptionState); |
| 9915 if (exceptionState.throwIfNeeded()) |
| 9916 return; |
9434 } | 9917 } |
9435 impl->DeprecateAsSameValueOverloadedMethod(arg); | 9918 impl->DeprecateAsSameValueOverloadedMethod(arg); |
9436 } | 9919 } |
9437 | 9920 |
9438 static void DeprecateAsSameValueOverloadedMethodMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 9921 static void DeprecateAsSameValueOverloadedMethodMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
9439 { | 9922 { |
9440 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs
SameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); | 9923 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs
SameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); |
9441 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe
cutionContext(info.GetIsolate()), UseCounter::TestFeature); | 9924 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe
cutionContext(info.GetIsolate()), UseCounter::TestFeature); |
9442 switch (std::min(1, info.Length())) { | 9925 switch (std::min(1, info.Length())) { |
9443 case 0: | 9926 case 0: |
9444 if (true) { | 9927 if (true) { |
9445 DeprecateAsSameValueOverloadedMethod1Method(info); | 9928 DeprecateAsSameValueOverloadedMethod1Method(info); |
9446 return; | 9929 return; |
9447 } | 9930 } |
9448 break; | 9931 break; |
9449 case 1: | 9932 case 1: |
9450 if (true) { | 9933 if (true) { |
9451 DeprecateAsSameValueOverloadedMethod2Method(info); | 9934 DeprecateAsSameValueOverloadedMethod2Method(info); |
9452 return; | 9935 return; |
9453 } | 9936 } |
9454 break; | 9937 break; |
9455 default: | 9938 default: |
9456 break; | 9939 break; |
9457 } | 9940 } |
9458 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 9941 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
9459 exceptionState.throwIfNeeded(); | 9942 exceptionState.throwIfNeeded(); |
| 9943 return; |
9460 } | 9944 } |
9461 | 9945 |
9462 static void DeprecateAsSameValueOverloadedMethodMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) | 9946 static void DeprecateAsSameValueOverloadedMethodMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) |
9463 { | 9947 { |
9464 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 9948 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
9465 TestObjectV8Internal::DeprecateAsSameValueOverloadedMethodMethod(info); | 9949 TestObjectV8Internal::DeprecateAsSameValueOverloadedMethodMethod(info); |
9466 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9950 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
9467 } | 9951 } |
9468 | 9952 |
9469 static void measureAsOverloadedMethod1Method(const v8::FunctionCallbackInfo<v8::
Value>& info) | 9953 static void measureAsOverloadedMethod1Method(const v8::FunctionCallbackInfo<v8::
Value>& info) |
9470 { | 9954 { |
9471 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9955 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
9472 impl->measureAsOverloadedMethod(); | 9956 impl->measureAsOverloadedMethod(); |
9473 } | 9957 } |
9474 | 9958 |
9475 static void measureAsOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8::
Value>& info) | 9959 static void measureAsOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8::
Value>& info) |
9476 { | 9960 { |
9477 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsOv
erloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); | 9961 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsOv
erloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); |
9478 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9962 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
9479 int arg; | 9963 int arg; |
9480 { | 9964 { |
9481 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta
te), exceptionState); | 9965 arg = toInt32(info[0], exceptionState); |
| 9966 if (exceptionState.throwIfNeeded()) |
| 9967 return; |
9482 } | 9968 } |
9483 impl->measureAsOverloadedMethod(arg); | 9969 impl->measureAsOverloadedMethod(arg); |
9484 } | 9970 } |
9485 | 9971 |
9486 static void measureAsOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 9972 static void measureAsOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
9487 { | 9973 { |
9488 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsOv
erloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); | 9974 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsOv
erloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); |
9489 switch (std::min(1, info.Length())) { | 9975 switch (std::min(1, info.Length())) { |
9490 case 0: | 9976 case 0: |
9491 if (true) { | 9977 if (true) { |
9492 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecut
ionContext(info.GetIsolate()), UseCounter::TestFeatureA); | 9978 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecut
ionContext(info.GetIsolate()), UseCounter::TestFeatureA); |
9493 measureAsOverloadedMethod1Method(info); | 9979 measureAsOverloadedMethod1Method(info); |
9494 return; | 9980 return; |
9495 } | 9981 } |
9496 break; | 9982 break; |
9497 case 1: | 9983 case 1: |
9498 if (true) { | 9984 if (true) { |
9499 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecut
ionContext(info.GetIsolate()), UseCounter::TestFeatureB); | 9985 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecut
ionContext(info.GetIsolate()), UseCounter::TestFeatureB); |
9500 measureAsOverloadedMethod2Method(info); | 9986 measureAsOverloadedMethod2Method(info); |
9501 return; | 9987 return; |
9502 } | 9988 } |
9503 break; | 9989 break; |
9504 default: | 9990 default: |
9505 break; | 9991 break; |
9506 } | 9992 } |
9507 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 9993 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
9508 exceptionState.throwIfNeeded(); | 9994 exceptionState.throwIfNeeded(); |
| 9995 return; |
9509 } | 9996 } |
9510 | 9997 |
9511 static void measureAsOverloadedMethodMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 9998 static void measureAsOverloadedMethodMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
9512 { | 9999 { |
9513 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 10000 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
9514 TestObjectV8Internal::measureAsOverloadedMethodMethod(info); | 10001 TestObjectV8Internal::measureAsOverloadedMethodMethod(info); |
9515 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 10002 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
9516 } | 10003 } |
9517 | 10004 |
9518 static void measureAsSameValueOverloadedMethod1Method(const v8::FunctionCallback
Info<v8::Value>& info) | 10005 static void measureAsSameValueOverloadedMethod1Method(const v8::FunctionCallback
Info<v8::Value>& info) |
9519 { | 10006 { |
9520 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 10007 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
9521 impl->measureAsSameValueOverloadedMethod(); | 10008 impl->measureAsSameValueOverloadedMethod(); |
9522 } | 10009 } |
9523 | 10010 |
9524 static void measureAsSameValueOverloadedMethod2Method(const v8::FunctionCallback
Info<v8::Value>& info) | 10011 static void measureAsSameValueOverloadedMethod2Method(const v8::FunctionCallback
Info<v8::Value>& info) |
9525 { | 10012 { |
9526 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsSa
meValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); | 10013 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsSa
meValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); |
9527 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 10014 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
9528 int arg; | 10015 int arg; |
9529 { | 10016 { |
9530 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta
te), exceptionState); | 10017 arg = toInt32(info[0], exceptionState); |
| 10018 if (exceptionState.throwIfNeeded()) |
| 10019 return; |
9531 } | 10020 } |
9532 impl->measureAsSameValueOverloadedMethod(arg); | 10021 impl->measureAsSameValueOverloadedMethod(arg); |
9533 } | 10022 } |
9534 | 10023 |
9535 static void measureAsSameValueOverloadedMethodMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 10024 static void measureAsSameValueOverloadedMethodMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
9536 { | 10025 { |
9537 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsSa
meValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); | 10026 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsSa
meValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); |
9538 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte
xt(info.GetIsolate()), UseCounter::TestFeature); | 10027 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte
xt(info.GetIsolate()), UseCounter::TestFeature); |
9539 switch (std::min(1, info.Length())) { | 10028 switch (std::min(1, info.Length())) { |
9540 case 0: | 10029 case 0: |
9541 if (true) { | 10030 if (true) { |
9542 measureAsSameValueOverloadedMethod1Method(info); | 10031 measureAsSameValueOverloadedMethod1Method(info); |
9543 return; | 10032 return; |
9544 } | 10033 } |
9545 break; | 10034 break; |
9546 case 1: | 10035 case 1: |
9547 if (true) { | 10036 if (true) { |
9548 measureAsSameValueOverloadedMethod2Method(info); | 10037 measureAsSameValueOverloadedMethod2Method(info); |
9549 return; | 10038 return; |
9550 } | 10039 } |
9551 break; | 10040 break; |
9552 default: | 10041 default: |
9553 break; | 10042 break; |
9554 } | 10043 } |
9555 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 10044 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
9556 exceptionState.throwIfNeeded(); | 10045 exceptionState.throwIfNeeded(); |
| 10046 return; |
9557 } | 10047 } |
9558 | 10048 |
9559 static void measureAsSameValueOverloadedMethodMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) | 10049 static void measureAsSameValueOverloadedMethodMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) |
9560 { | 10050 { |
9561 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 10051 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
9562 TestObjectV8Internal::measureAsSameValueOverloadedMethodMethod(info); | 10052 TestObjectV8Internal::measureAsSameValueOverloadedMethodMethod(info); |
9563 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 10053 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
9564 } | 10054 } |
9565 | 10055 |
9566 static void deprecateAsMeasureAsSameValueOverloadedMethod1Method(const v8::Funct
ionCallbackInfo<v8::Value>& info) | 10056 static void deprecateAsMeasureAsSameValueOverloadedMethod1Method(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
9567 { | 10057 { |
9568 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 10058 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
9569 impl->deprecateAsMeasureAsSameValueOverloadedMethod(); | 10059 impl->deprecateAsMeasureAsSameValueOverloadedMethod(); |
9570 } | 10060 } |
9571 | 10061 |
9572 static void deprecateAsMeasureAsSameValueOverloadedMethod2Method(const v8::Funct
ionCallbackInfo<v8::Value>& info) | 10062 static void deprecateAsMeasureAsSameValueOverloadedMethod2Method(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
9573 { | 10063 { |
9574 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs
MeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat
e()); | 10064 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs
MeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat
e()); |
9575 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 10065 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
9576 int arg; | 10066 int arg; |
9577 { | 10067 { |
9578 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta
te), exceptionState); | 10068 arg = toInt32(info[0], exceptionState); |
| 10069 if (exceptionState.throwIfNeeded()) |
| 10070 return; |
9579 } | 10071 } |
9580 impl->deprecateAsMeasureAsSameValueOverloadedMethod(arg); | 10072 impl->deprecateAsMeasureAsSameValueOverloadedMethod(arg); |
9581 } | 10073 } |
9582 | 10074 |
9583 static void deprecateAsMeasureAsSameValueOverloadedMethodMethod(const v8::Functi
onCallbackInfo<v8::Value>& info) | 10075 static void deprecateAsMeasureAsSameValueOverloadedMethodMethod(const v8::Functi
onCallbackInfo<v8::Value>& info) |
9584 { | 10076 { |
9585 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs
MeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat
e()); | 10077 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs
MeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat
e()); |
9586 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte
xt(info.GetIsolate()), UseCounter::TestFeature); | 10078 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte
xt(info.GetIsolate()), UseCounter::TestFeature); |
9587 switch (std::min(1, info.Length())) { | 10079 switch (std::min(1, info.Length())) { |
9588 case 0: | 10080 case 0: |
9589 if (true) { | 10081 if (true) { |
9590 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), ca
llingExecutionContext(info.GetIsolate()), UseCounter::TestFeatureA); | 10082 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), ca
llingExecutionContext(info.GetIsolate()), UseCounter::TestFeatureA); |
9591 deprecateAsMeasureAsSameValueOverloadedMethod1Method(info); | 10083 deprecateAsMeasureAsSameValueOverloadedMethod1Method(info); |
9592 return; | 10084 return; |
9593 } | 10085 } |
9594 break; | 10086 break; |
9595 case 1: | 10087 case 1: |
9596 if (true) { | 10088 if (true) { |
9597 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), ca
llingExecutionContext(info.GetIsolate()), UseCounter::TestFeatureB); | 10089 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), ca
llingExecutionContext(info.GetIsolate()), UseCounter::TestFeatureB); |
9598 deprecateAsMeasureAsSameValueOverloadedMethod2Method(info); | 10090 deprecateAsMeasureAsSameValueOverloadedMethod2Method(info); |
9599 return; | 10091 return; |
9600 } | 10092 } |
9601 break; | 10093 break; |
9602 default: | 10094 default: |
9603 break; | 10095 break; |
9604 } | 10096 } |
9605 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 10097 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
9606 exceptionState.throwIfNeeded(); | 10098 exceptionState.throwIfNeeded(); |
| 10099 return; |
9607 } | 10100 } |
9608 | 10101 |
9609 static void deprecateAsMeasureAsSameValueOverloadedMethodMethodCallback(const v8
::FunctionCallbackInfo<v8::Value>& info) | 10102 static void deprecateAsMeasureAsSameValueOverloadedMethodMethodCallback(const v8
::FunctionCallbackInfo<v8::Value>& info) |
9610 { | 10103 { |
9611 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 10104 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
9612 TestObjectV8Internal::deprecateAsMeasureAsSameValueOverloadedMethodMethod(in
fo); | 10105 TestObjectV8Internal::deprecateAsMeasureAsSameValueOverloadedMethodMethod(in
fo); |
9613 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 10106 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
9614 } | 10107 } |
9615 | 10108 |
9616 static void deprecateAsSameValueMeasureAsOverloadedMethod1Method(const v8::Funct
ionCallbackInfo<v8::Value>& info) | 10109 static void deprecateAsSameValueMeasureAsOverloadedMethod1Method(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
9617 { | 10110 { |
9618 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 10111 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
9619 impl->deprecateAsSameValueMeasureAsOverloadedMethod(); | 10112 impl->deprecateAsSameValueMeasureAsOverloadedMethod(); |
9620 } | 10113 } |
9621 | 10114 |
9622 static void deprecateAsSameValueMeasureAsOverloadedMethod2Method(const v8::Funct
ionCallbackInfo<v8::Value>& info) | 10115 static void deprecateAsSameValueMeasureAsOverloadedMethod2Method(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
9623 { | 10116 { |
9624 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs
SameValueMeasureAsOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat
e()); | 10117 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs
SameValueMeasureAsOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat
e()); |
9625 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 10118 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
9626 int arg; | 10119 int arg; |
9627 { | 10120 { |
9628 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta
te), exceptionState); | 10121 arg = toInt32(info[0], exceptionState); |
| 10122 if (exceptionState.throwIfNeeded()) |
| 10123 return; |
9629 } | 10124 } |
9630 impl->deprecateAsSameValueMeasureAsOverloadedMethod(arg); | 10125 impl->deprecateAsSameValueMeasureAsOverloadedMethod(arg); |
9631 } | 10126 } |
9632 | 10127 |
9633 static void deprecateAsSameValueMeasureAsOverloadedMethodMethod(const v8::Functi
onCallbackInfo<v8::Value>& info) | 10128 static void deprecateAsSameValueMeasureAsOverloadedMethodMethod(const v8::Functi
onCallbackInfo<v8::Value>& info) |
9634 { | 10129 { |
9635 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs
SameValueMeasureAsOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat
e()); | 10130 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs
SameValueMeasureAsOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat
e()); |
9636 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe
cutionContext(info.GetIsolate()), UseCounter::TestFeature); | 10131 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe
cutionContext(info.GetIsolate()), UseCounter::TestFeature); |
9637 switch (std::min(1, info.Length())) { | 10132 switch (std::min(1, info.Length())) { |
9638 case 0: | 10133 case 0: |
9639 if (true) { | 10134 if (true) { |
9640 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecut
ionContext(info.GetIsolate()), UseCounter::TestFeatureA); | 10135 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecut
ionContext(info.GetIsolate()), UseCounter::TestFeatureA); |
9641 deprecateAsSameValueMeasureAsOverloadedMethod1Method(info); | 10136 deprecateAsSameValueMeasureAsOverloadedMethod1Method(info); |
9642 return; | 10137 return; |
9643 } | 10138 } |
9644 break; | 10139 break; |
9645 case 1: | 10140 case 1: |
9646 if (true) { | 10141 if (true) { |
9647 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecut
ionContext(info.GetIsolate()), UseCounter::TestFeatureB); | 10142 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecut
ionContext(info.GetIsolate()), UseCounter::TestFeatureB); |
9648 deprecateAsSameValueMeasureAsOverloadedMethod2Method(info); | 10143 deprecateAsSameValueMeasureAsOverloadedMethod2Method(info); |
9649 return; | 10144 return; |
9650 } | 10145 } |
9651 break; | 10146 break; |
9652 default: | 10147 default: |
9653 break; | 10148 break; |
9654 } | 10149 } |
9655 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 10150 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
9656 exceptionState.throwIfNeeded(); | 10151 exceptionState.throwIfNeeded(); |
| 10152 return; |
9657 } | 10153 } |
9658 | 10154 |
9659 static void deprecateAsSameValueMeasureAsOverloadedMethodMethodCallback(const v8
::FunctionCallbackInfo<v8::Value>& info) | 10155 static void deprecateAsSameValueMeasureAsOverloadedMethodMethodCallback(const v8
::FunctionCallbackInfo<v8::Value>& info) |
9660 { | 10156 { |
9661 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 10157 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
9662 TestObjectV8Internal::deprecateAsSameValueMeasureAsOverloadedMethodMethod(in
fo); | 10158 TestObjectV8Internal::deprecateAsSameValueMeasureAsOverloadedMethodMethod(in
fo); |
9663 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 10159 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
9664 } | 10160 } |
9665 | 10161 |
9666 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethod1Method(const
v8::FunctionCallbackInfo<v8::Value>& info) | 10162 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethod1Method(const
v8::FunctionCallbackInfo<v8::Value>& info) |
9667 { | 10163 { |
9668 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 10164 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
9669 impl->deprecateAsSameValueMeasureAsSameValueOverloadedMethod(); | 10165 impl->deprecateAsSameValueMeasureAsSameValueOverloadedMethod(); |
9670 } | 10166 } |
9671 | 10167 |
9672 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethod2Method(const
v8::FunctionCallbackInfo<v8::Value>& info) | 10168 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethod2Method(const
v8::FunctionCallbackInfo<v8::Value>& info) |
9673 { | 10169 { |
9674 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs
SameValueMeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info.
GetIsolate()); | 10170 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs
SameValueMeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info.
GetIsolate()); |
9675 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 10171 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
9676 int arg; | 10172 int arg; |
9677 { | 10173 { |
9678 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta
te), exceptionState); | 10174 arg = toInt32(info[0], exceptionState); |
| 10175 if (exceptionState.throwIfNeeded()) |
| 10176 return; |
9679 } | 10177 } |
9680 impl->deprecateAsSameValueMeasureAsSameValueOverloadedMethod(arg); | 10178 impl->deprecateAsSameValueMeasureAsSameValueOverloadedMethod(arg); |
9681 } | 10179 } |
9682 | 10180 |
9683 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethodMethod(const v
8::FunctionCallbackInfo<v8::Value>& info) | 10181 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethodMethod(const v
8::FunctionCallbackInfo<v8::Value>& info) |
9684 { | 10182 { |
9685 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs
SameValueMeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info.
GetIsolate()); | 10183 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs
SameValueMeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info.
GetIsolate()); |
9686 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte
xt(info.GetIsolate()), UseCounter::TestFeatureB); | 10184 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte
xt(info.GetIsolate()), UseCounter::TestFeatureB); |
9687 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe
cutionContext(info.GetIsolate()), UseCounter::TestFeatureA); | 10185 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe
cutionContext(info.GetIsolate()), UseCounter::TestFeatureA); |
9688 switch (std::min(1, info.Length())) { | 10186 switch (std::min(1, info.Length())) { |
9689 case 0: | 10187 case 0: |
9690 if (true) { | 10188 if (true) { |
9691 deprecateAsSameValueMeasureAsSameValueOverloadedMethod1Method(info); | 10189 deprecateAsSameValueMeasureAsSameValueOverloadedMethod1Method(info); |
9692 return; | 10190 return; |
9693 } | 10191 } |
9694 break; | 10192 break; |
9695 case 1: | 10193 case 1: |
9696 if (true) { | 10194 if (true) { |
9697 deprecateAsSameValueMeasureAsSameValueOverloadedMethod2Method(info); | 10195 deprecateAsSameValueMeasureAsSameValueOverloadedMethod2Method(info); |
9698 return; | 10196 return; |
9699 } | 10197 } |
9700 break; | 10198 break; |
9701 default: | 10199 default: |
9702 break; | 10200 break; |
9703 } | 10201 } |
9704 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 10202 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
9705 exceptionState.throwIfNeeded(); | 10203 exceptionState.throwIfNeeded(); |
| 10204 return; |
9706 } | 10205 } |
9707 | 10206 |
9708 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethodMethodCallback
(const v8::FunctionCallbackInfo<v8::Value>& info) | 10207 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethodMethodCallback
(const v8::FunctionCallbackInfo<v8::Value>& info) |
9709 { | 10208 { |
9710 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 10209 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
9711 TestObjectV8Internal::deprecateAsSameValueMeasureAsSameValueOverloadedMethod
Method(info); | 10210 TestObjectV8Internal::deprecateAsSameValueMeasureAsSameValueOverloadedMethod
Method(info); |
9712 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 10211 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
9713 } | 10212 } |
9714 | 10213 |
9715 static void notEnumerableVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 10214 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; | 10422 int optionalLongArg; |
9924 { | 10423 { |
9925 if (UNLIKELY(info.Length() <= 0)) { | 10424 if (UNLIKELY(info.Length() <= 0)) { |
9926 impl->raisesExceptionVoidMethodOptionalLongArg(exceptionState); | 10425 impl->raisesExceptionVoidMethodOptionalLongArg(exceptionState); |
9927 if (exceptionState.hadException()) { | 10426 if (exceptionState.hadException()) { |
9928 exceptionState.throwIfNeeded(); | 10427 exceptionState.throwIfNeeded(); |
9929 return; | 10428 return; |
9930 } | 10429 } |
9931 return; | 10430 return; |
9932 } | 10431 } |
9933 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0],
exceptionState), exceptionState); | 10432 optionalLongArg = toInt32(info[0], exceptionState); |
| 10433 if (exceptionState.throwIfNeeded()) |
| 10434 return; |
9934 } | 10435 } |
9935 impl->raisesExceptionVoidMethodOptionalLongArg(optionalLongArg, exceptionSta
te); | 10436 impl->raisesExceptionVoidMethodOptionalLongArg(optionalLongArg, exceptionSta
te); |
9936 if (exceptionState.hadException()) { | 10437 if (exceptionState.hadException()) { |
9937 exceptionState.throwIfNeeded(); | 10438 exceptionState.throwIfNeeded(); |
9938 return; | 10439 return; |
9939 } | 10440 } |
9940 } | 10441 } |
9941 | 10442 |
9942 static void raisesExceptionVoidMethodOptionalLongArgMethodCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) | 10443 static void raisesExceptionVoidMethodOptionalLongArgMethodCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) |
9943 { | 10444 { |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10032 { | 10533 { |
10033 ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithExe
cutionContextRaisesExceptionVoidMethodLongArg", "TestObject", info.Holder(), inf
o.GetIsolate()); | 10534 ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithExe
cutionContextRaisesExceptionVoidMethodLongArg", "TestObject", info.Holder(), inf
o.GetIsolate()); |
10034 if (UNLIKELY(info.Length() < 1)) { | 10535 if (UNLIKELY(info.Length() < 1)) { |
10035 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 10536 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
10036 exceptionState.throwIfNeeded(); | 10537 exceptionState.throwIfNeeded(); |
10037 return; | 10538 return; |
10038 } | 10539 } |
10039 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 10540 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
10040 int longArg; | 10541 int longArg; |
10041 { | 10542 { |
10042 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); | 10543 longArg = toInt32(info[0], exceptionState); |
| 10544 if (exceptionState.throwIfNeeded()) |
| 10545 return; |
10043 } | 10546 } |
10044 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate
()); | 10547 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate
()); |
10045 impl->callWithExecutionContextRaisesExceptionVoidMethodLongArg(executionCont
ext, longArg, exceptionState); | 10548 impl->callWithExecutionContextRaisesExceptionVoidMethodLongArg(executionCont
ext, longArg, exceptionState); |
10046 if (exceptionState.hadException()) { | 10549 if (exceptionState.hadException()) { |
10047 exceptionState.throwIfNeeded(); | 10550 exceptionState.throwIfNeeded(); |
10048 return; | 10551 return; |
10049 } | 10552 } |
10050 } | 10553 } |
10051 | 10554 |
10052 static void callWithExecutionContextRaisesExceptionVoidMethodLongArgMethodCallba
ck(const v8::FunctionCallbackInfo<v8::Value>& info) | 10555 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"); | 10596 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
10094 TestObjectV8Internal::perWorldBindingsRuntimeEnabledVoidMethodMethodForMainW
orld(info); | 10597 TestObjectV8Internal::perWorldBindingsRuntimeEnabledVoidMethodMethodForMainW
orld(info); |
10095 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 10598 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
10096 } | 10599 } |
10097 | 10600 |
10098 static void runtimeEnabledOverloadedVoidMethod1Method(const v8::FunctionCallback
Info<v8::Value>& info) | 10601 static void runtimeEnabledOverloadedVoidMethod1Method(const v8::FunctionCallback
Info<v8::Value>& info) |
10099 { | 10602 { |
10100 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 10603 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
10101 V8StringResource<> stringArg; | 10604 V8StringResource<> stringArg; |
10102 { | 10605 { |
10103 TOSTRING_VOID_INTERNAL(stringArg, info[0]); | 10606 stringArg = info[0]; |
| 10607 if (!stringArg.prepare()) |
| 10608 return; |
10104 } | 10609 } |
10105 impl->runtimeEnabledOverloadedVoidMethod(stringArg); | 10610 impl->runtimeEnabledOverloadedVoidMethod(stringArg); |
10106 } | 10611 } |
10107 | 10612 |
10108 static void runtimeEnabledOverloadedVoidMethod2Method(const v8::FunctionCallback
Info<v8::Value>& info) | 10613 static void runtimeEnabledOverloadedVoidMethod2Method(const v8::FunctionCallback
Info<v8::Value>& info) |
10109 { | 10614 { |
10110 ExceptionState exceptionState(ExceptionState::ExecutionContext, "runtimeEnab
ledOverloadedVoidMethod", "TestObject", info.Holder(), info.GetIsolate()); | 10615 ExceptionState exceptionState(ExceptionState::ExecutionContext, "runtimeEnab
ledOverloadedVoidMethod", "TestObject", info.Holder(), info.GetIsolate()); |
10111 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 10616 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
10112 int longArg; | 10617 int longArg; |
10113 { | 10618 { |
10114 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); | 10619 longArg = toInt32(info[0], exceptionState); |
| 10620 if (exceptionState.throwIfNeeded()) |
| 10621 return; |
10115 } | 10622 } |
10116 impl->runtimeEnabledOverloadedVoidMethod(longArg); | 10623 impl->runtimeEnabledOverloadedVoidMethod(longArg); |
10117 } | 10624 } |
10118 | 10625 |
10119 static void runtimeEnabledOverloadedVoidMethodMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 10626 static void runtimeEnabledOverloadedVoidMethodMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
10120 { | 10627 { |
10121 ExceptionState exceptionState(ExceptionState::ExecutionContext, "runtimeEnab
ledOverloadedVoidMethod", "TestObject", info.Holder(), info.GetIsolate()); | 10628 ExceptionState exceptionState(ExceptionState::ExecutionContext, "runtimeEnab
ledOverloadedVoidMethod", "TestObject", info.Holder(), info.GetIsolate()); |
10122 switch (std::min(1, info.Length())) { | 10629 switch (std::min(1, info.Length())) { |
10123 case 1: | 10630 case 1: |
10124 if (info[0]->IsNumber()) { | 10631 if (info[0]->IsNumber()) { |
(...skipping 12 matching lines...) Expand all Loading... |
10137 default: | 10644 default: |
10138 break; | 10645 break; |
10139 } | 10646 } |
10140 if (info.Length() < 1) { | 10647 if (info.Length() < 1) { |
10141 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 10648 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
10142 exceptionState.throwIfNeeded(); | 10649 exceptionState.throwIfNeeded(); |
10143 return; | 10650 return; |
10144 } | 10651 } |
10145 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 10652 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
10146 exceptionState.throwIfNeeded(); | 10653 exceptionState.throwIfNeeded(); |
| 10654 return; |
10147 } | 10655 } |
10148 | 10656 |
10149 static void runtimeEnabledOverloadedVoidMethodMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) | 10657 static void runtimeEnabledOverloadedVoidMethodMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) |
10150 { | 10658 { |
10151 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 10659 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
10152 TestObjectV8Internal::runtimeEnabledOverloadedVoidMethodMethod(info); | 10660 TestObjectV8Internal::runtimeEnabledOverloadedVoidMethodMethod(info); |
10153 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 10661 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
10154 } | 10662 } |
10155 | 10663 |
10156 static void partiallyRuntimeEnabledOverloadedVoidMethod1Method(const v8::Functio
nCallbackInfo<v8::Value>& info) | 10664 static void partiallyRuntimeEnabledOverloadedVoidMethod1Method(const v8::Functio
nCallbackInfo<v8::Value>& info) |
10157 { | 10665 { |
10158 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 10666 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
10159 V8StringResource<> stringArg; | 10667 V8StringResource<> stringArg; |
10160 { | 10668 { |
10161 TOSTRING_VOID_INTERNAL(stringArg, info[0]); | 10669 stringArg = info[0]; |
| 10670 if (!stringArg.prepare()) |
| 10671 return; |
10162 } | 10672 } |
10163 impl->partiallyRuntimeEnabledOverloadedVoidMethod(stringArg); | 10673 impl->partiallyRuntimeEnabledOverloadedVoidMethod(stringArg); |
10164 } | 10674 } |
10165 | 10675 |
10166 static void partiallyRuntimeEnabledOverloadedVoidMethod2Method(const v8::Functio
nCallbackInfo<v8::Value>& info) | 10676 static void partiallyRuntimeEnabledOverloadedVoidMethod2Method(const v8::Functio
nCallbackInfo<v8::Value>& info) |
10167 { | 10677 { |
10168 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 10678 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
10169 TestInterfaceImplementation* testInterface; | 10679 TestInterfaceImplementation* testInterface; |
10170 { | 10680 { |
10171 testInterface = V8TestInterface::toImplWithTypeCheck(info.GetIsolate(),
info[0]); | 10681 testInterface = V8TestInterface::toImplWithTypeCheck(info.GetIsolate(),
info[0]); |
10172 } | 10682 } |
10173 impl->partiallyRuntimeEnabledOverloadedVoidMethod(testInterface); | 10683 impl->partiallyRuntimeEnabledOverloadedVoidMethod(testInterface); |
10174 } | 10684 } |
10175 | 10685 |
10176 static void partiallyRuntimeEnabledOverloadedVoidMethod3Method(const v8::Functio
nCallbackInfo<v8::Value>& info) | 10686 static void partiallyRuntimeEnabledOverloadedVoidMethod3Method(const v8::Functio
nCallbackInfo<v8::Value>& info) |
10177 { | 10687 { |
10178 ExceptionState exceptionState(ExceptionState::ExecutionContext, "partiallyRu
ntimeEnabledOverloadedVoidMethod", "TestObject", info.Holder(), info.GetIsolate(
)); | 10688 ExceptionState exceptionState(ExceptionState::ExecutionContext, "partiallyRu
ntimeEnabledOverloadedVoidMethod", "TestObject", info.Holder(), info.GetIsolate(
)); |
10179 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 10689 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
10180 int longArg; | 10690 int longArg; |
10181 V8StringResource<> stringArg; | 10691 V8StringResource<> stringArg; |
10182 { | 10692 { |
10183 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); | 10693 longArg = toInt32(info[0], exceptionState); |
10184 TOSTRING_VOID_INTERNAL(stringArg, info[1]); | 10694 if (exceptionState.throwIfNeeded()) |
| 10695 return; |
| 10696 stringArg = info[1]; |
| 10697 if (!stringArg.prepare()) |
| 10698 return; |
10185 } | 10699 } |
10186 impl->partiallyRuntimeEnabledOverloadedVoidMethod(longArg, stringArg); | 10700 impl->partiallyRuntimeEnabledOverloadedVoidMethod(longArg, stringArg); |
10187 } | 10701 } |
10188 | 10702 |
10189 static int partiallyRuntimeEnabledOverloadedVoidMethodMethodLength() | 10703 static int partiallyRuntimeEnabledOverloadedVoidMethodMethodLength() |
10190 { | 10704 { |
10191 if (RuntimeEnabledFeatures::featureName1Enabled()) { | 10705 if (RuntimeEnabledFeatures::featureName1Enabled()) { |
10192 return 1; | 10706 return 1; |
10193 } | 10707 } |
10194 if (RuntimeEnabledFeatures::featureName2Enabled()) { | 10708 if (RuntimeEnabledFeatures::featureName2Enabled()) { |
(...skipping 29 matching lines...) Expand all Loading... |
10224 default: | 10738 default: |
10225 break; | 10739 break; |
10226 } | 10740 } |
10227 if (info.Length() < TestObjectV8Internal::partiallyRuntimeEnabledOverloadedV
oidMethodMethodLength()) { | 10741 if (info.Length() < TestObjectV8Internal::partiallyRuntimeEnabledOverloadedV
oidMethodMethodLength()) { |
10228 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(Test
ObjectV8Internal::partiallyRuntimeEnabledOverloadedVoidMethodMethodLength(), inf
o.Length())); | 10742 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(Test
ObjectV8Internal::partiallyRuntimeEnabledOverloadedVoidMethodMethodLength(), inf
o.Length())); |
10229 exceptionState.throwIfNeeded(); | 10743 exceptionState.throwIfNeeded(); |
10230 return; | 10744 return; |
10231 } | 10745 } |
10232 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 10746 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
10233 exceptionState.throwIfNeeded(); | 10747 exceptionState.throwIfNeeded(); |
| 10748 return; |
10234 } | 10749 } |
10235 | 10750 |
10236 static void partiallyRuntimeEnabledOverloadedVoidMethodMethodCallback(const v8::
FunctionCallbackInfo<v8::Value>& info) | 10751 static void partiallyRuntimeEnabledOverloadedVoidMethodMethodCallback(const v8::
FunctionCallbackInfo<v8::Value>& info) |
10237 { | 10752 { |
10238 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 10753 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
10239 TestObjectV8Internal::partiallyRuntimeEnabledOverloadedVoidMethodMethod(info
); | 10754 TestObjectV8Internal::partiallyRuntimeEnabledOverloadedVoidMethodMethod(info
); |
10240 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 10755 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
10241 } | 10756 } |
10242 | 10757 |
10243 static void treatReturnedNullStringAsNullStringMethodMethod(const v8::FunctionCa
llbackInfo<v8::Value>& info) | 10758 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()); | 10985 ExceptionState exceptionState(ExceptionState::ExecutionContext, "typeCheckin
gUnrestrictedVoidMethodFloatArgDoubleArg", "TestObject", info.Holder(), info.Get
Isolate()); |
10471 if (UNLIKELY(info.Length() < 2)) { | 10986 if (UNLIKELY(info.Length() < 2)) { |
10472 setMinimumArityTypeError(exceptionState, 2, info.Length()); | 10987 setMinimumArityTypeError(exceptionState, 2, info.Length()); |
10473 exceptionState.throwIfNeeded(); | 10988 exceptionState.throwIfNeeded(); |
10474 return; | 10989 return; |
10475 } | 10990 } |
10476 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 10991 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
10477 float floatArg; | 10992 float floatArg; |
10478 double doubleArg; | 10993 double doubleArg; |
10479 { | 10994 { |
10480 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(floatArg, toRestrictedFloat(info[0
], exceptionState), exceptionState); | 10995 floatArg = toRestrictedFloat(info[0], exceptionState); |
10481 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(doubleArg, toRestrictedDouble(info
[1], exceptionState), exceptionState); | 10996 if (exceptionState.throwIfNeeded()) |
| 10997 return; |
| 10998 doubleArg = toRestrictedDouble(info[1], exceptionState); |
| 10999 if (exceptionState.throwIfNeeded()) |
| 11000 return; |
10482 } | 11001 } |
10483 impl->typeCheckingUnrestrictedVoidMethodFloatArgDoubleArg(floatArg, doubleAr
g); | 11002 impl->typeCheckingUnrestrictedVoidMethodFloatArgDoubleArg(floatArg, doubleAr
g); |
10484 } | 11003 } |
10485 | 11004 |
10486 static void typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMethodCallback(co
nst v8::FunctionCallbackInfo<v8::Value>& info) | 11005 static void typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMethodCallback(co
nst v8::FunctionCallbackInfo<v8::Value>& info) |
10487 { | 11006 { |
10488 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 11007 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
10489 TestObjectV8Internal::typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMet
hod(info); | 11008 TestObjectV8Internal::typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMet
hod(info); |
10490 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 11009 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
10491 } | 11010 } |
(...skipping 15 matching lines...) Expand all Loading... |
10507 { | 11026 { |
10508 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT
estInterfaceGarbageCollectedSequenceArg", "TestObject", info.Holder(), info.GetI
solate()); | 11027 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT
estInterfaceGarbageCollectedSequenceArg", "TestObject", info.Holder(), info.GetI
solate()); |
10509 if (UNLIKELY(info.Length() < 1)) { | 11028 if (UNLIKELY(info.Length() < 1)) { |
10510 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 11029 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
10511 exceptionState.throwIfNeeded(); | 11030 exceptionState.throwIfNeeded(); |
10512 return; | 11031 return; |
10513 } | 11032 } |
10514 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 11033 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
10515 HeapVector<Member<TestInterfaceGarbageCollected>> testInterfaceGarbageCollec
tedSequenceArg; | 11034 HeapVector<Member<TestInterfaceGarbageCollected>> testInterfaceGarbageCollec
tedSequenceArg; |
10516 { | 11035 { |
10517 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(testInterfaceGarbageCollectedSeque
nceArg, (toMemberNativeArray<TestInterfaceGarbageCollected, V8TestInterfaceGarba
geCollected>(info[0], 1, info.GetIsolate(), exceptionState)), exceptionState); | 11036 testInterfaceGarbageCollectedSequenceArg = (toMemberNativeArray<TestInte
rfaceGarbageCollected, V8TestInterfaceGarbageCollected>(info[0], 1, info.GetIsol
ate(), exceptionState)); |
| 11037 if (exceptionState.throwIfNeeded()) |
| 11038 return; |
10518 } | 11039 } |
10519 impl->voidMethodTestInterfaceGarbageCollectedSequenceArg(testInterfaceGarbag
eCollectedSequenceArg); | 11040 impl->voidMethodTestInterfaceGarbageCollectedSequenceArg(testInterfaceGarbag
eCollectedSequenceArg); |
10520 } | 11041 } |
10521 | 11042 |
10522 static void voidMethodTestInterfaceGarbageCollectedSequenceArgMethodCallback(con
st v8::FunctionCallbackInfo<v8::Value>& info) | 11043 static void voidMethodTestInterfaceGarbageCollectedSequenceArgMethodCallback(con
st v8::FunctionCallbackInfo<v8::Value>& info) |
10523 { | 11044 { |
10524 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 11045 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
10525 TestObjectV8Internal::voidMethodTestInterfaceGarbageCollectedSequenceArgMeth
od(info); | 11046 TestObjectV8Internal::voidMethodTestInterfaceGarbageCollectedSequenceArgMeth
od(info); |
10526 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 11047 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
10527 } | 11048 } |
10528 | 11049 |
10529 static void voidMethodTestInterfaceGarbageCollectedArrayArgMethod(const v8::Func
tionCallbackInfo<v8::Value>& info) | 11050 static void voidMethodTestInterfaceGarbageCollectedArrayArgMethod(const v8::Func
tionCallbackInfo<v8::Value>& info) |
10530 { | 11051 { |
10531 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT
estInterfaceGarbageCollectedArrayArg", "TestObject", info.Holder(), info.GetIsol
ate()); | 11052 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT
estInterfaceGarbageCollectedArrayArg", "TestObject", info.Holder(), info.GetIsol
ate()); |
10532 if (UNLIKELY(info.Length() < 1)) { | 11053 if (UNLIKELY(info.Length() < 1)) { |
10533 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 11054 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
10534 exceptionState.throwIfNeeded(); | 11055 exceptionState.throwIfNeeded(); |
10535 return; | 11056 return; |
10536 } | 11057 } |
10537 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 11058 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
10538 HeapVector<Member<TestInterfaceGarbageCollected>> testInterfaceGarbageCollec
tedArrayArg; | 11059 HeapVector<Member<TestInterfaceGarbageCollected>> testInterfaceGarbageCollec
tedArrayArg; |
10539 { | 11060 { |
10540 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(testInterfaceGarbageCollectedArray
Arg, (toMemberNativeArray<TestInterfaceGarbageCollected, V8TestInterfaceGarbageC
ollected>(info[0], 1, info.GetIsolate(), exceptionState)), exceptionState); | 11061 testInterfaceGarbageCollectedArrayArg = (toMemberNativeArray<TestInterfa
ceGarbageCollected, V8TestInterfaceGarbageCollected>(info[0], 1, info.GetIsolate
(), exceptionState)); |
| 11062 if (exceptionState.throwIfNeeded()) |
| 11063 return; |
10541 } | 11064 } |
10542 impl->voidMethodTestInterfaceGarbageCollectedArrayArg(testInterfaceGarbageCo
llectedArrayArg); | 11065 impl->voidMethodTestInterfaceGarbageCollectedArrayArg(testInterfaceGarbageCo
llectedArrayArg); |
10543 } | 11066 } |
10544 | 11067 |
10545 static void voidMethodTestInterfaceGarbageCollectedArrayArgMethodCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) | 11068 static void voidMethodTestInterfaceGarbageCollectedArrayArgMethodCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) |
10546 { | 11069 { |
10547 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 11070 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
10548 TestObjectV8Internal::voidMethodTestInterfaceGarbageCollectedArrayArgMethod(
info); | 11071 TestObjectV8Internal::voidMethodTestInterfaceGarbageCollectedArrayArgMethod(
info); |
10549 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 11072 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
10550 } | 11073 } |
10551 | 11074 |
10552 static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethod(const
v8::FunctionCallbackInfo<v8::Value>& info) | 11075 static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethod(const
v8::FunctionCallbackInfo<v8::Value>& info) |
10553 { | 11076 { |
10554 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT
estInterfaceWillBeGarbageCollectedSequenceArg", "TestObject", info.Holder(), inf
o.GetIsolate()); | 11077 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT
estInterfaceWillBeGarbageCollectedSequenceArg", "TestObject", info.Holder(), inf
o.GetIsolate()); |
10555 if (UNLIKELY(info.Length() < 1)) { | 11078 if (UNLIKELY(info.Length() < 1)) { |
10556 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 11079 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
10557 exceptionState.throwIfNeeded(); | 11080 exceptionState.throwIfNeeded(); |
10558 return; | 11081 return; |
10559 } | 11082 } |
10560 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 11083 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
10561 WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected>> te
stInterfaceWillBeGarbageCollectedSequenceArg; | 11084 WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected>> te
stInterfaceWillBeGarbageCollectedSequenceArg; |
10562 { | 11085 { |
10563 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(testInterfaceWillBeGarbageCollecte
dSequenceArg, (toRefPtrWillBeMemberNativeArray<TestInterfaceWillBeGarbageCollect
ed, V8TestInterfaceWillBeGarbageCollected>(info[0], 1, info.GetIsolate(), except
ionState)), exceptionState); | 11086 testInterfaceWillBeGarbageCollectedSequenceArg = (toRefPtrWillBeMemberNa
tiveArray<TestInterfaceWillBeGarbageCollected, V8TestInterfaceWillBeGarbageColle
cted>(info[0], 1, info.GetIsolate(), exceptionState)); |
| 11087 if (exceptionState.throwIfNeeded()) |
| 11088 return; |
10564 } | 11089 } |
10565 impl->voidMethodTestInterfaceWillBeGarbageCollectedSequenceArg(testInterface
WillBeGarbageCollectedSequenceArg); | 11090 impl->voidMethodTestInterfaceWillBeGarbageCollectedSequenceArg(testInterface
WillBeGarbageCollectedSequenceArg); |
10566 } | 11091 } |
10567 | 11092 |
10568 static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethodCallba
ck(const v8::FunctionCallbackInfo<v8::Value>& info) | 11093 static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethodCallba
ck(const v8::FunctionCallbackInfo<v8::Value>& info) |
10569 { | 11094 { |
10570 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 11095 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
10571 TestObjectV8Internal::voidMethodTestInterfaceWillBeGarbageCollectedSequenceA
rgMethod(info); | 11096 TestObjectV8Internal::voidMethodTestInterfaceWillBeGarbageCollectedSequenceA
rgMethod(info); |
10572 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 11097 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
10573 } | 11098 } |
10574 | 11099 |
10575 static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethod(const v8
::FunctionCallbackInfo<v8::Value>& info) | 11100 static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethod(const v8
::FunctionCallbackInfo<v8::Value>& info) |
10576 { | 11101 { |
10577 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT
estInterfaceWillBeGarbageCollectedArrayArg", "TestObject", info.Holder(), info.G
etIsolate()); | 11102 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT
estInterfaceWillBeGarbageCollectedArrayArg", "TestObject", info.Holder(), info.G
etIsolate()); |
10578 if (UNLIKELY(info.Length() < 1)) { | 11103 if (UNLIKELY(info.Length() < 1)) { |
10579 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 11104 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
10580 exceptionState.throwIfNeeded(); | 11105 exceptionState.throwIfNeeded(); |
10581 return; | 11106 return; |
10582 } | 11107 } |
10583 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 11108 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
10584 WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected>> te
stInterfaceWillBeGarbageCollectedArrayArg; | 11109 WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected>> te
stInterfaceWillBeGarbageCollectedArrayArg; |
10585 { | 11110 { |
10586 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(testInterfaceWillBeGarbageCollecte
dArrayArg, (toRefPtrWillBeMemberNativeArray<TestInterfaceWillBeGarbageCollected,
V8TestInterfaceWillBeGarbageCollected>(info[0], 1, info.GetIsolate(), exception
State)), exceptionState); | 11111 testInterfaceWillBeGarbageCollectedArrayArg = (toRefPtrWillBeMemberNativ
eArray<TestInterfaceWillBeGarbageCollected, V8TestInterfaceWillBeGarbageCollecte
d>(info[0], 1, info.GetIsolate(), exceptionState)); |
| 11112 if (exceptionState.throwIfNeeded()) |
| 11113 return; |
10587 } | 11114 } |
10588 impl->voidMethodTestInterfaceWillBeGarbageCollectedArrayArg(testInterfaceWil
lBeGarbageCollectedArrayArg); | 11115 impl->voidMethodTestInterfaceWillBeGarbageCollectedArrayArg(testInterfaceWil
lBeGarbageCollectedArrayArg); |
10589 } | 11116 } |
10590 | 11117 |
10591 static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethodCallback(
const v8::FunctionCallbackInfo<v8::Value>& info) | 11118 static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethodCallback(
const v8::FunctionCallbackInfo<v8::Value>& info) |
10592 { | 11119 { |
10593 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 11120 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
10594 TestObjectV8Internal::voidMethodTestInterfaceWillBeGarbageCollectedArrayArgM
ethod(info); | 11121 TestObjectV8Internal::voidMethodTestInterfaceWillBeGarbageCollectedArrayArgM
ethod(info); |
10595 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 11122 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
10596 } | 11123 } |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10628 { | 11155 { |
10629 ExceptionState exceptionState(ExceptionState::ExecutionContext, "shortMethod
WithShortArgumentImplementedInPrivateScript", "TestObject", info.Holder(), info.
GetIsolate()); | 11156 ExceptionState exceptionState(ExceptionState::ExecutionContext, "shortMethod
WithShortArgumentImplementedInPrivateScript", "TestObject", info.Holder(), info.
GetIsolate()); |
10630 if (UNLIKELY(info.Length() < 1)) { | 11157 if (UNLIKELY(info.Length() < 1)) { |
10631 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 11158 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
10632 exceptionState.throwIfNeeded(); | 11159 exceptionState.throwIfNeeded(); |
10633 return; | 11160 return; |
10634 } | 11161 } |
10635 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 11162 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
10636 int value; | 11163 int value; |
10637 { | 11164 { |
10638 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(value, toInt16(info[0], exceptionS
tate), exceptionState); | 11165 value = toInt16(info[0], exceptionState); |
| 11166 if (exceptionState.throwIfNeeded()) |
| 11167 return; |
10639 } | 11168 } |
10640 int result = 0; | 11169 int result = 0; |
10641 if (!V8TestObject::PrivateScript::shortMethodWithShortArgumentImplementedInP
rivateScriptMethod(toLocalFrame(toFrameIfNotDetached(info.GetIsolate()->GetCurre
ntContext())), impl, value, &result)) | 11170 if (!V8TestObject::PrivateScript::shortMethodWithShortArgumentImplementedInP
rivateScriptMethod(toLocalFrame(toFrameIfNotDetached(info.GetIsolate()->GetCurre
ntContext())), impl, value, &result)) |
10642 return; | 11171 return; |
10643 v8SetReturnValueInt(info, result); | 11172 v8SetReturnValueInt(info, result); |
10644 } | 11173 } |
10645 | 11174 |
10646 static void shortMethodWithShortArgumentImplementedInPrivateScriptMethodCallback
(const v8::FunctionCallbackInfo<v8::Value>& info) | 11175 static void shortMethodWithShortArgumentImplementedInPrivateScriptMethodCallback
(const v8::FunctionCallbackInfo<v8::Value>& info) |
10647 { | 11176 { |
10648 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 11177 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
10649 TestObjectV8Internal::shortMethodWithShortArgumentImplementedInPrivateScript
Method(info); | 11178 TestObjectV8Internal::shortMethodWithShortArgumentImplementedInPrivateScript
Method(info); |
10650 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 11179 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
10651 } | 11180 } |
10652 | 11181 |
10653 static void stringMethodWithStringArgumentImplementedInPrivateScriptMethod(const
v8::FunctionCallbackInfo<v8::Value>& info) | 11182 static void stringMethodWithStringArgumentImplementedInPrivateScriptMethod(const
v8::FunctionCallbackInfo<v8::Value>& info) |
10654 { | 11183 { |
10655 if (UNLIKELY(info.Length() < 1)) { | 11184 if (UNLIKELY(info.Length() < 1)) { |
10656 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "stringMethodWithStringArgumentImplementedInPrivateScript", "Te
stObject", 1, info.Length()), info.GetIsolate()); | 11185 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "stringMethodWithStringArgumentImplementedInPrivateScript", "Te
stObject", 1, info.Length()), info.GetIsolate()); |
10657 return; | 11186 return; |
10658 } | 11187 } |
10659 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 11188 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
10660 V8StringResource<> value; | 11189 V8StringResource<> value; |
10661 { | 11190 { |
10662 TOSTRING_VOID_INTERNAL(value, info[0]); | 11191 value = info[0]; |
| 11192 if (!value.prepare()) |
| 11193 return; |
10663 } | 11194 } |
10664 String result; | 11195 String result; |
10665 if (!V8TestObject::PrivateScript::stringMethodWithStringArgumentImplementedI
nPrivateScriptMethod(toLocalFrame(toFrameIfNotDetached(info.GetIsolate()->GetCur
rentContext())), impl, value, &result)) | 11196 if (!V8TestObject::PrivateScript::stringMethodWithStringArgumentImplementedI
nPrivateScriptMethod(toLocalFrame(toFrameIfNotDetached(info.GetIsolate()->GetCur
rentContext())), impl, value, &result)) |
10666 return; | 11197 return; |
10667 v8SetReturnValueString(info, result, info.GetIsolate()); | 11198 v8SetReturnValueString(info, result, info.GetIsolate()); |
10668 } | 11199 } |
10669 | 11200 |
10670 static void stringMethodWithStringArgumentImplementedInPrivateScriptMethodCallba
ck(const v8::FunctionCallbackInfo<v8::Value>& info) | 11201 static void stringMethodWithStringArgumentImplementedInPrivateScriptMethodCallba
ck(const v8::FunctionCallbackInfo<v8::Value>& info) |
10671 { | 11202 { |
10672 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 11203 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10708 } | 11239 } |
10709 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 11240 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
10710 Document* document; | 11241 Document* document; |
10711 Node* node; | 11242 Node* node; |
10712 int value1; | 11243 int value1; |
10713 double value2; | 11244 double value2; |
10714 V8StringResource<> string; | 11245 V8StringResource<> string; |
10715 { | 11246 { |
10716 document = V8Document::toImplWithTypeCheck(info.GetIsolate(), info[0]); | 11247 document = V8Document::toImplWithTypeCheck(info.GetIsolate(), info[0]); |
10717 node = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[1]); | 11248 node = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[1]); |
10718 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(value1, toInt16(info[2], exception
State), exceptionState); | 11249 value1 = toInt16(info[2], exceptionState); |
10719 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(value2, toDouble(info[3], exceptio
nState), exceptionState); | 11250 if (exceptionState.throwIfNeeded()) |
10720 TOSTRING_VOID_INTERNAL(string, info[4]); | 11251 return; |
| 11252 value2 = toDouble(info[3], exceptionState); |
| 11253 if (exceptionState.throwIfNeeded()) |
| 11254 return; |
| 11255 string = info[4]; |
| 11256 if (!string.prepare()) |
| 11257 return; |
10721 } | 11258 } |
10722 RefPtrWillBeRawPtr<Node> result = nullptr; | 11259 RefPtrWillBeRawPtr<Node> result = nullptr; |
10723 if (!V8TestObject::PrivateScript::nodeMethodWithVariousArgumentsImplementedI
nPrivateScriptMethod(toLocalFrame(toFrameIfNotDetached(info.GetIsolate()->GetCur
rentContext())), impl, document, node, value1, value2, string, &result)) | 11260 if (!V8TestObject::PrivateScript::nodeMethodWithVariousArgumentsImplementedI
nPrivateScriptMethod(toLocalFrame(toFrameIfNotDetached(info.GetIsolate()->GetCur
rentContext())), impl, document, node, value1, value2, string, &result)) |
10724 return; | 11261 return; |
10725 v8SetReturnValue(info, result.release()); | 11262 v8SetReturnValue(info, result.release()); |
10726 } | 11263 } |
10727 | 11264 |
10728 static void nodeMethodWithVariousArgumentsImplementedInPrivateScriptMethodCallba
ck(const v8::FunctionCallbackInfo<v8::Value>& info) | 11265 static void nodeMethodWithVariousArgumentsImplementedInPrivateScriptMethodCallba
ck(const v8::FunctionCallbackInfo<v8::Value>& info) |
10729 { | 11266 { |
10730 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 11267 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
10731 TestObjectV8Internal::nodeMethodWithVariousArgumentsImplementedInPrivateScri
ptMethod(info); | 11268 TestObjectV8Internal::nodeMethodWithVariousArgumentsImplementedInPrivateScri
ptMethod(info); |
10732 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 11269 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
10733 } | 11270 } |
10734 | 11271 |
10735 static void methodImplementedInCPPForPrivateScriptOnlyMethod(const v8::FunctionC
allbackInfo<v8::Value>& info) | 11272 static void methodImplementedInCPPForPrivateScriptOnlyMethod(const v8::FunctionC
allbackInfo<v8::Value>& info) |
10736 { | 11273 { |
10737 ExceptionState exceptionState(ExceptionState::ExecutionContext, "methodImple
mentedInCPPForPrivateScriptOnly", "TestObject", info.Holder(), info.GetIsolate()
); | 11274 ExceptionState exceptionState(ExceptionState::ExecutionContext, "methodImple
mentedInCPPForPrivateScriptOnly", "TestObject", info.Holder(), info.GetIsolate()
); |
10738 if (UNLIKELY(info.Length() < 2)) { | 11275 if (UNLIKELY(info.Length() < 2)) { |
10739 setMinimumArityTypeError(exceptionState, 2, info.Length()); | 11276 setMinimumArityTypeError(exceptionState, 2, info.Length()); |
10740 exceptionState.throwIfNeeded(); | 11277 exceptionState.throwIfNeeded(); |
10741 return; | 11278 return; |
10742 } | 11279 } |
10743 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 11280 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
10744 int value1; | 11281 int value1; |
10745 int value2; | 11282 int value2; |
10746 { | 11283 { |
10747 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(value1, toInt16(info[0], exception
State), exceptionState); | 11284 value1 = toInt16(info[0], exceptionState); |
10748 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(value2, toInt16(info[1], exception
State), exceptionState); | 11285 if (exceptionState.throwIfNeeded()) |
| 11286 return; |
| 11287 value2 = toInt16(info[1], exceptionState); |
| 11288 if (exceptionState.throwIfNeeded()) |
| 11289 return; |
10749 } | 11290 } |
10750 v8SetReturnValueInt(info, impl->methodImplementedInCPPForPrivateScriptOnly(v
alue1, value2)); | 11291 v8SetReturnValueInt(info, impl->methodImplementedInCPPForPrivateScriptOnly(v
alue1, value2)); |
10751 } | 11292 } |
10752 | 11293 |
10753 static void methodImplementedInCPPForPrivateScriptOnlyMethodCallback(const v8::F
unctionCallbackInfo<v8::Value>& info) | 11294 static void methodImplementedInCPPForPrivateScriptOnlyMethodCallback(const v8::F
unctionCallbackInfo<v8::Value>& info) |
10754 { | 11295 { |
10755 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 11296 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
10756 TestObjectV8Internal::methodImplementedInCPPForPrivateScriptOnlyMethod(info)
; | 11297 TestObjectV8Internal::methodImplementedInCPPForPrivateScriptOnlyMethod(info)
; |
10757 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 11298 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
10758 } | 11299 } |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10824 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 11365 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
10825 exceptionState.throwIfNeeded(); | 11366 exceptionState.throwIfNeeded(); |
10826 return; | 11367 return; |
10827 } | 11368 } |
10828 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 11369 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
10829 ScriptValue callback; | 11370 ScriptValue callback; |
10830 ScriptValue thisArg; | 11371 ScriptValue thisArg; |
10831 { | 11372 { |
10832 if (!info[0]->IsFunction()) { | 11373 if (!info[0]->IsFunction()) { |
10833 exceptionState.throwTypeError("The callback provided as parameter 1
is not a function."); | 11374 exceptionState.throwTypeError("The callback provided as parameter 1
is not a function."); |
10834 exceptionState.throwIfNeeded(); | 11375 exceptionState.throwIfNeeded(); |
10835 return; | 11376 return; |
10836 } | 11377 } |
10837 callback = ScriptValue(ScriptState::current(info.GetIsolate()), info[0])
; | 11378 callback = ScriptValue(ScriptState::current(info.GetIsolate()), info[0])
; |
10838 thisArg = ScriptValue(ScriptState::current(info.GetIsolate()), info[1]); | 11379 thisArg = ScriptValue(ScriptState::current(info.GetIsolate()), info[1]); |
10839 } | 11380 } |
10840 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); | 11381 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); |
10841 impl->forEachForBinding(scriptState, ScriptValue(scriptState, info.This()),
callback, thisArg, exceptionState); | 11382 impl->forEachForBinding(scriptState, ScriptValue(scriptState, info.This()),
callback, thisArg, exceptionState); |
10842 if (exceptionState.hadException()) { | 11383 if (exceptionState.hadException()) { |
10843 exceptionState.throwIfNeeded(); | 11384 exceptionState.throwIfNeeded(); |
10844 return; | 11385 return; |
(...skipping 11 matching lines...) Expand all Loading... |
10856 { | 11397 { |
10857 ExceptionState exceptionState(ExceptionState::ExecutionContext, "has", "Test
Object", info.Holder(), info.GetIsolate()); | 11398 ExceptionState exceptionState(ExceptionState::ExecutionContext, "has", "Test
Object", info.Holder(), info.GetIsolate()); |
10858 if (UNLIKELY(info.Length() < 1)) { | 11399 if (UNLIKELY(info.Length() < 1)) { |
10859 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 11400 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
10860 exceptionState.throwIfNeeded(); | 11401 exceptionState.throwIfNeeded(); |
10861 return; | 11402 return; |
10862 } | 11403 } |
10863 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 11404 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
10864 int key; | 11405 int key; |
10865 { | 11406 { |
10866 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(key, toInt32(info[0], exceptionSta
te), exceptionState); | 11407 key = toInt32(info[0], exceptionState); |
| 11408 if (exceptionState.throwIfNeeded()) |
| 11409 return; |
10867 } | 11410 } |
10868 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); | 11411 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); |
10869 bool result = impl->hasForBinding(scriptState, key, exceptionState); | 11412 bool result = impl->hasForBinding(scriptState, key, exceptionState); |
10870 if (exceptionState.hadException()) { | 11413 if (exceptionState.hadException()) { |
10871 exceptionState.throwIfNeeded(); | 11414 exceptionState.throwIfNeeded(); |
10872 return; | 11415 return; |
10873 } | 11416 } |
10874 v8SetReturnValueBool(info, result); | 11417 v8SetReturnValueBool(info, result); |
10875 } | 11418 } |
10876 | 11419 |
10877 static void hasMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) | 11420 static void hasMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
10878 { | 11421 { |
10879 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 11422 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
10880 TestObjectV8Internal::hasMethod(info); | 11423 TestObjectV8Internal::hasMethod(info); |
10881 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 11424 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
10882 } | 11425 } |
10883 | 11426 |
10884 static void getMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 11427 static void getMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
10885 { | 11428 { |
10886 ExceptionState exceptionState(ExceptionState::ExecutionContext, "get", "Test
Object", info.Holder(), info.GetIsolate()); | 11429 ExceptionState exceptionState(ExceptionState::ExecutionContext, "get", "Test
Object", info.Holder(), info.GetIsolate()); |
10887 if (UNLIKELY(info.Length() < 1)) { | 11430 if (UNLIKELY(info.Length() < 1)) { |
10888 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 11431 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
10889 exceptionState.throwIfNeeded(); | 11432 exceptionState.throwIfNeeded(); |
10890 return; | 11433 return; |
10891 } | 11434 } |
10892 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 11435 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
10893 int key; | 11436 int key; |
10894 { | 11437 { |
10895 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(key, toInt32(info[0], exceptionSta
te), exceptionState); | 11438 key = toInt32(info[0], exceptionState); |
| 11439 if (exceptionState.throwIfNeeded()) |
| 11440 return; |
10896 } | 11441 } |
10897 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); | 11442 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); |
10898 ScriptValue result = impl->getForBinding(scriptState, key, exceptionState); | 11443 ScriptValue result = impl->getForBinding(scriptState, key, exceptionState); |
10899 if (exceptionState.hadException()) { | 11444 if (exceptionState.hadException()) { |
10900 exceptionState.throwIfNeeded(); | 11445 exceptionState.throwIfNeeded(); |
10901 return; | 11446 return; |
10902 } | 11447 } |
10903 v8SetReturnValue(info, result.v8Value()); | 11448 v8SetReturnValue(info, result.v8Value()); |
10904 } | 11449 } |
10905 | 11450 |
(...skipping 27 matching lines...) Expand all Loading... |
10933 { | 11478 { |
10934 ExceptionState exceptionState(ExceptionState::ExecutionContext, "delete", "T
estObject", info.Holder(), info.GetIsolate()); | 11479 ExceptionState exceptionState(ExceptionState::ExecutionContext, "delete", "T
estObject", info.Holder(), info.GetIsolate()); |
10935 if (UNLIKELY(info.Length() < 1)) { | 11480 if (UNLIKELY(info.Length() < 1)) { |
10936 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 11481 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
10937 exceptionState.throwIfNeeded(); | 11482 exceptionState.throwIfNeeded(); |
10938 return; | 11483 return; |
10939 } | 11484 } |
10940 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 11485 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
10941 int key; | 11486 int key; |
10942 { | 11487 { |
10943 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(key, toInt32(info[0], exceptionSta
te), exceptionState); | 11488 key = toInt32(info[0], exceptionState); |
| 11489 if (exceptionState.throwIfNeeded()) |
| 11490 return; |
10944 } | 11491 } |
10945 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); | 11492 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); |
10946 bool result = impl->deleteForBinding(scriptState, key, exceptionState); | 11493 bool result = impl->deleteForBinding(scriptState, key, exceptionState); |
10947 if (exceptionState.hadException()) { | 11494 if (exceptionState.hadException()) { |
10948 exceptionState.throwIfNeeded(); | 11495 exceptionState.throwIfNeeded(); |
10949 return; | 11496 return; |
10950 } | 11497 } |
10951 v8SetReturnValueBool(info, result); | 11498 v8SetReturnValueBool(info, result); |
10952 } | 11499 } |
10953 | 11500 |
10954 static void deleteMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info
) | 11501 static void deleteMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info
) |
10955 { | 11502 { |
10956 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 11503 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
10957 TestObjectV8Internal::deleteMethod(info); | 11504 TestObjectV8Internal::deleteMethod(info); |
10958 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 11505 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
10959 } | 11506 } |
10960 | 11507 |
10961 static void setMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 11508 static void setMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
10962 { | 11509 { |
10963 ExceptionState exceptionState(ExceptionState::ExecutionContext, "set", "Test
Object", info.Holder(), info.GetIsolate()); | 11510 ExceptionState exceptionState(ExceptionState::ExecutionContext, "set", "Test
Object", info.Holder(), info.GetIsolate()); |
10964 if (UNLIKELY(info.Length() < 2)) { | 11511 if (UNLIKELY(info.Length() < 2)) { |
10965 setMinimumArityTypeError(exceptionState, 2, info.Length()); | 11512 setMinimumArityTypeError(exceptionState, 2, info.Length()); |
10966 exceptionState.throwIfNeeded(); | 11513 exceptionState.throwIfNeeded(); |
10967 return; | 11514 return; |
10968 } | 11515 } |
10969 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 11516 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
10970 int key; | 11517 int key; |
10971 StringOrDouble value; | 11518 StringOrDouble value; |
10972 { | 11519 { |
10973 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(key, toInt32(info[0], exceptionSta
te), exceptionState); | 11520 key = toInt32(info[0], exceptionState); |
10974 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8StringOrDouble::toImpl(info.G
etIsolate(), info[1], value, exceptionState), exceptionState); | 11521 if (exceptionState.throwIfNeeded()) |
| 11522 return; |
| 11523 if (!V8StringOrDouble::toImpl(info.GetIsolate(), info[1], value, excepti
onState)) { |
| 11524 exceptionState.throwException(); |
| 11525 return; |
| 11526 } |
10975 } | 11527 } |
10976 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); | 11528 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); |
10977 RefPtr<TestObject> result = impl->setForBinding(scriptState, key, value, exc
eptionState); | 11529 RefPtr<TestObject> result = impl->setForBinding(scriptState, key, value, exc
eptionState); |
10978 if (exceptionState.hadException()) { | 11530 if (exceptionState.hadException()) { |
10979 exceptionState.throwIfNeeded(); | 11531 exceptionState.throwIfNeeded(); |
10980 return; | 11532 return; |
10981 } | 11533 } |
10982 v8SetReturnValue(info, result.release()); | 11534 v8SetReturnValue(info, result.release()); |
10983 } | 11535 } |
10984 | 11536 |
(...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11662 return false; | 12214 return false; |
11663 | 12215 |
11664 ScriptState::Scope scope(scriptState); | 12216 ScriptState::Scope scope(scriptState); |
11665 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); | 12217 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); |
11666 | 12218 |
11667 v8::Local<v8::Value> *argv = 0; | 12219 v8::Local<v8::Value> *argv = 0; |
11668 ExceptionState exceptionState(ExceptionState::ExecutionContext, "shortMethod
ImplementedInPrivateScript", "TestObject", scriptState->context()->Global(), scr
iptState->isolate()); | 12220 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); | 12221 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMMethod(scriptState
, scriptStateInUserScript, "TestObject", "shortMethodImplementedInPrivateScript"
, holder, 0, argv); |
11670 if (v8Value.IsEmpty()) | 12222 if (v8Value.IsEmpty()) |
11671 return false; | 12223 return false; |
11672 TONATIVE_DEFAULT_EXCEPTIONSTATE(int, cppValue, toInt16(v8Value, exceptionSta
te), exceptionState, false); | 12224 int cppValue = toInt16(v8Value, exceptionState); |
| 12225 if (exceptionState.throwIfNeeded()) |
| 12226 return false; |
11673 *result = cppValue; | 12227 *result = cppValue; |
11674 RELEASE_ASSERT(!exceptionState.hadException()); | 12228 RELEASE_ASSERT(!exceptionState.hadException()); |
11675 return true; | 12229 return true; |
11676 } | 12230 } |
11677 | 12231 |
11678 bool V8TestObject::PrivateScript::shortMethodWithShortArgumentImplementedInPriva
teScriptMethod(LocalFrame* frame, TestObject* holderImpl, int value, int* result
) | 12232 bool V8TestObject::PrivateScript::shortMethodWithShortArgumentImplementedInPriva
teScriptMethod(LocalFrame* frame, TestObject* holderImpl, int value, int* result
) |
11679 { | 12233 { |
11680 if (!frame) | 12234 if (!frame) |
11681 return false; | 12235 return false; |
11682 v8::HandleScope handleScope(toIsolate(frame)); | 12236 v8::HandleScope handleScope(toIsolate(frame)); |
11683 ScriptForbiddenScope::AllowUserAgentScript script; | 12237 ScriptForbiddenScope::AllowUserAgentScript script; |
11684 v8::Local<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrappe
rWorld::privateScriptIsolatedWorld()); | 12238 v8::Local<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrappe
rWorld::privateScriptIsolatedWorld()); |
11685 if (contextInPrivateScript.IsEmpty()) | 12239 if (contextInPrivateScript.IsEmpty()) |
11686 return false; | 12240 return false; |
11687 ScriptState* scriptState = ScriptState::from(contextInPrivateScript); | 12241 ScriptState* scriptState = ScriptState::from(contextInPrivateScript); |
11688 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame); | 12242 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame); |
11689 if (!scriptState->executionContext()) | 12243 if (!scriptState->executionContext()) |
11690 return false; | 12244 return false; |
11691 | 12245 |
11692 ScriptState::Scope scope(scriptState); | 12246 ScriptState::Scope scope(scriptState); |
11693 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); | 12247 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); |
11694 | 12248 |
11695 v8::Local<v8::Value> valueHandle = v8::Integer::New(scriptState->isolate(),
value); | 12249 v8::Local<v8::Value> valueHandle = v8::Integer::New(scriptState->isolate(),
value); |
11696 v8::Local<v8::Value> argv[] = { valueHandle }; | 12250 v8::Local<v8::Value> argv[] = { valueHandle }; |
11697 ExceptionState exceptionState(ExceptionState::ExecutionContext, "shortMethod
WithShortArgumentImplementedInPrivateScript", "TestObject", scriptState->context
()->Global(), scriptState->isolate()); | 12251 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); | 12252 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMMethod(scriptState
, scriptStateInUserScript, "TestObject", "shortMethodWithShortArgumentImplemente
dInPrivateScript", holder, 1, argv); |
11699 if (v8Value.IsEmpty()) | 12253 if (v8Value.IsEmpty()) |
11700 return false; | 12254 return false; |
11701 TONATIVE_DEFAULT_EXCEPTIONSTATE(int, cppValue, toInt16(v8Value, exceptionSta
te), exceptionState, false); | 12255 int cppValue = toInt16(v8Value, exceptionState); |
| 12256 if (exceptionState.throwIfNeeded()) |
| 12257 return false; |
11702 *result = cppValue; | 12258 *result = cppValue; |
11703 RELEASE_ASSERT(!exceptionState.hadException()); | 12259 RELEASE_ASSERT(!exceptionState.hadException()); |
11704 return true; | 12260 return true; |
11705 } | 12261 } |
11706 | 12262 |
11707 bool V8TestObject::PrivateScript::stringMethodWithStringArgumentImplementedInPri
vateScriptMethod(LocalFrame* frame, TestObject* holderImpl, String value, String
* result) | 12263 bool V8TestObject::PrivateScript::stringMethodWithStringArgumentImplementedInPri
vateScriptMethod(LocalFrame* frame, TestObject* holderImpl, String value, String
* result) |
11708 { | 12264 { |
11709 if (!frame) | 12265 if (!frame) |
11710 return false; | 12266 return false; |
11711 v8::HandleScope handleScope(toIsolate(frame)); | 12267 v8::HandleScope handleScope(toIsolate(frame)); |
11712 ScriptForbiddenScope::AllowUserAgentScript script; | 12268 ScriptForbiddenScope::AllowUserAgentScript script; |
11713 v8::Local<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrappe
rWorld::privateScriptIsolatedWorld()); | 12269 v8::Local<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrappe
rWorld::privateScriptIsolatedWorld()); |
11714 if (contextInPrivateScript.IsEmpty()) | 12270 if (contextInPrivateScript.IsEmpty()) |
11715 return false; | 12271 return false; |
11716 ScriptState* scriptState = ScriptState::from(contextInPrivateScript); | 12272 ScriptState* scriptState = ScriptState::from(contextInPrivateScript); |
11717 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame); | 12273 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame); |
11718 if (!scriptState->executionContext()) | 12274 if (!scriptState->executionContext()) |
11719 return false; | 12275 return false; |
11720 | 12276 |
11721 ScriptState::Scope scope(scriptState); | 12277 ScriptState::Scope scope(scriptState); |
11722 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); | 12278 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); |
11723 | 12279 |
11724 v8::Local<v8::Value> valueHandle = v8String(scriptState->isolate(), value); | 12280 v8::Local<v8::Value> valueHandle = v8String(scriptState->isolate(), value); |
11725 v8::Local<v8::Value> argv[] = { valueHandle }; | 12281 v8::Local<v8::Value> argv[] = { valueHandle }; |
11726 ExceptionState exceptionState(ExceptionState::ExecutionContext, "stringMetho
dWithStringArgumentImplementedInPrivateScript", "TestObject", scriptState->conte
xt()->Global(), scriptState->isolate()); | 12282 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); | 12283 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMMethod(scriptState
, scriptStateInUserScript, "TestObject", "stringMethodWithStringArgumentImplemen
tedInPrivateScript", holder, 1, argv); |
11728 if (v8Value.IsEmpty()) | 12284 if (v8Value.IsEmpty()) |
11729 return false; | 12285 return false; |
11730 TOSTRING_DEFAULT(V8StringResource<>, cppValue, v8Value, false); | 12286 V8StringResource<> cppValue = v8Value; |
| 12287 if (!cppValue.prepare()) |
| 12288 return false; |
11731 *result = cppValue; | 12289 *result = cppValue; |
11732 RELEASE_ASSERT(!exceptionState.hadException()); | 12290 RELEASE_ASSERT(!exceptionState.hadException()); |
11733 return true; | 12291 return true; |
11734 } | 12292 } |
11735 | 12293 |
11736 bool V8TestObject::PrivateScript::nodeMethodWithNodeArgumentImplementedInPrivate
ScriptMethod(LocalFrame* frame, TestObject* holderImpl, PassRefPtrWillBeRawPtr<N
ode> value, RefPtrWillBeRawPtr<Node>* result) | 12294 bool V8TestObject::PrivateScript::nodeMethodWithNodeArgumentImplementedInPrivate
ScriptMethod(LocalFrame* frame, TestObject* holderImpl, PassRefPtrWillBeRawPtr<N
ode> value, RefPtrWillBeRawPtr<Node>* result) |
11737 { | 12295 { |
11738 if (!frame) | 12296 if (!frame) |
11739 return false; | 12297 return false; |
11740 v8::HandleScope handleScope(toIsolate(frame)); | 12298 v8::HandleScope handleScope(toIsolate(frame)); |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11812 ScriptState::Scope scope(scriptState); | 12370 ScriptState::Scope scope(scriptState); |
11813 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); | 12371 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); |
11814 | 12372 |
11815 v8::Local<v8::Value> value1Handle = v8::Integer::New(scriptState->isolate(),
value1); | 12373 v8::Local<v8::Value> value1Handle = v8::Integer::New(scriptState->isolate(),
value1); |
11816 v8::Local<v8::Value> value2Handle = v8::Integer::New(scriptState->isolate(),
value2); | 12374 v8::Local<v8::Value> value2Handle = v8::Integer::New(scriptState->isolate(),
value2); |
11817 v8::Local<v8::Value> argv[] = { value1Handle, value2Handle }; | 12375 v8::Local<v8::Value> argv[] = { value1Handle, value2Handle }; |
11818 ExceptionState exceptionState(ExceptionState::ExecutionContext, "methodForPr
ivateScriptOnly", "TestObject", scriptState->context()->Global(), scriptState->i
solate()); | 12376 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); | 12377 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMMethod(scriptState
, scriptStateInUserScript, "TestObject", "methodForPrivateScriptOnly", holder, 2
, argv); |
11820 if (v8Value.IsEmpty()) | 12378 if (v8Value.IsEmpty()) |
11821 return false; | 12379 return false; |
11822 TONATIVE_DEFAULT_EXCEPTIONSTATE(int, cppValue, toInt16(v8Value, exceptionSta
te), exceptionState, false); | 12380 int cppValue = toInt16(v8Value, exceptionState); |
| 12381 if (exceptionState.throwIfNeeded()) |
| 12382 return false; |
11823 *result = cppValue; | 12383 *result = cppValue; |
11824 RELEASE_ASSERT(!exceptionState.hadException()); | 12384 RELEASE_ASSERT(!exceptionState.hadException()); |
11825 return true; | 12385 return true; |
11826 } | 12386 } |
11827 | 12387 |
11828 bool V8TestObject::PrivateScript::readonlyShortAttributeAttributeGetter(LocalFra
me* frame, TestObject* holderImpl, int* result) | 12388 bool V8TestObject::PrivateScript::readonlyShortAttributeAttributeGetter(LocalFra
me* frame, TestObject* holderImpl, int* result) |
11829 { | 12389 { |
11830 if (!frame) | 12390 if (!frame) |
11831 return false; | 12391 return false; |
11832 v8::HandleScope handleScope(toIsolate(frame)); | 12392 v8::HandleScope handleScope(toIsolate(frame)); |
11833 ScriptForbiddenScope::AllowUserAgentScript script; | 12393 ScriptForbiddenScope::AllowUserAgentScript script; |
11834 v8::Local<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrappe
rWorld::privateScriptIsolatedWorld()); | 12394 v8::Local<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrappe
rWorld::privateScriptIsolatedWorld()); |
11835 if (contextInPrivateScript.IsEmpty()) | 12395 if (contextInPrivateScript.IsEmpty()) |
11836 return false; | 12396 return false; |
11837 ScriptState* scriptState = ScriptState::from(contextInPrivateScript); | 12397 ScriptState* scriptState = ScriptState::from(contextInPrivateScript); |
11838 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame); | 12398 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame); |
11839 if (!scriptState->executionContext()) | 12399 if (!scriptState->executionContext()) |
11840 return false; | 12400 return false; |
11841 | 12401 |
11842 ScriptState::Scope scope(scriptState); | 12402 ScriptState::Scope scope(scriptState); |
11843 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); | 12403 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); |
11844 | 12404 |
11845 ExceptionState exceptionState(ExceptionState::GetterContext, "readonlyShortA
ttribute", "TestObject", scriptState->context()->Global(), scriptState->isolate(
)); | 12405 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); | 12406 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMAttributeGetter(sc
riptState, scriptStateInUserScript, "TestObject", "readonlyShortAttribute", hold
er); |
11847 if (v8Value.IsEmpty()) | 12407 if (v8Value.IsEmpty()) |
11848 return false; | 12408 return false; |
11849 TONATIVE_DEFAULT_EXCEPTIONSTATE(int, cppValue, toInt16(v8Value, exceptionSta
te), exceptionState, false); | 12409 int cppValue = toInt16(v8Value, exceptionState); |
| 12410 if (exceptionState.throwIfNeeded()) |
| 12411 return false; |
11850 RELEASE_ASSERT(!exceptionState.hadException()); | 12412 RELEASE_ASSERT(!exceptionState.hadException()); |
11851 *result = cppValue; | 12413 *result = cppValue; |
11852 return true; | 12414 return true; |
11853 } | 12415 } |
11854 | 12416 |
11855 bool V8TestObject::PrivateScript::shortAttributeAttributeGetter(LocalFrame* fram
e, TestObject* holderImpl, int* result) | 12417 bool V8TestObject::PrivateScript::shortAttributeAttributeGetter(LocalFrame* fram
e, TestObject* holderImpl, int* result) |
11856 { | 12418 { |
11857 if (!frame) | 12419 if (!frame) |
11858 return false; | 12420 return false; |
11859 v8::HandleScope handleScope(toIsolate(frame)); | 12421 v8::HandleScope handleScope(toIsolate(frame)); |
11860 ScriptForbiddenScope::AllowUserAgentScript script; | 12422 ScriptForbiddenScope::AllowUserAgentScript script; |
11861 v8::Local<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrappe
rWorld::privateScriptIsolatedWorld()); | 12423 v8::Local<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrappe
rWorld::privateScriptIsolatedWorld()); |
11862 if (contextInPrivateScript.IsEmpty()) | 12424 if (contextInPrivateScript.IsEmpty()) |
11863 return false; | 12425 return false; |
11864 ScriptState* scriptState = ScriptState::from(contextInPrivateScript); | 12426 ScriptState* scriptState = ScriptState::from(contextInPrivateScript); |
11865 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame); | 12427 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame); |
11866 if (!scriptState->executionContext()) | 12428 if (!scriptState->executionContext()) |
11867 return false; | 12429 return false; |
11868 | 12430 |
11869 ScriptState::Scope scope(scriptState); | 12431 ScriptState::Scope scope(scriptState); |
11870 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); | 12432 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); |
11871 | 12433 |
11872 ExceptionState exceptionState(ExceptionState::GetterContext, "shortAttribute
", "TestObject", scriptState->context()->Global(), scriptState->isolate()); | 12434 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); | 12435 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMAttributeGetter(sc
riptState, scriptStateInUserScript, "TestObject", "shortAttribute", holder); |
11874 if (v8Value.IsEmpty()) | 12436 if (v8Value.IsEmpty()) |
11875 return false; | 12437 return false; |
11876 TONATIVE_DEFAULT_EXCEPTIONSTATE(int, cppValue, toInt16(v8Value, exceptionSta
te), exceptionState, false); | 12438 int cppValue = toInt16(v8Value, exceptionState); |
| 12439 if (exceptionState.throwIfNeeded()) |
| 12440 return false; |
11877 RELEASE_ASSERT(!exceptionState.hadException()); | 12441 RELEASE_ASSERT(!exceptionState.hadException()); |
11878 *result = cppValue; | 12442 *result = cppValue; |
11879 return true; | 12443 return true; |
11880 } | 12444 } |
11881 | 12445 |
11882 bool V8TestObject::PrivateScript::shortAttributeAttributeSetter(LocalFrame* fram
e, TestObject* holderImpl, int cppValue) | 12446 bool V8TestObject::PrivateScript::shortAttributeAttributeSetter(LocalFrame* fram
e, TestObject* holderImpl, int cppValue) |
11883 { | 12447 { |
11884 if (!frame) | 12448 if (!frame) |
11885 return false; | 12449 return false; |
11886 v8::HandleScope handleScope(toIsolate(frame)); | 12450 v8::HandleScope handleScope(toIsolate(frame)); |
(...skipping 27 matching lines...) Expand all Loading... |
11914 if (!scriptState->executionContext()) | 12478 if (!scriptState->executionContext()) |
11915 return false; | 12479 return false; |
11916 | 12480 |
11917 ScriptState::Scope scope(scriptState); | 12481 ScriptState::Scope scope(scriptState); |
11918 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); | 12482 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); |
11919 | 12483 |
11920 ExceptionState exceptionState(ExceptionState::GetterContext, "stringAttribut
e", "TestObject", scriptState->context()->Global(), scriptState->isolate()); | 12484 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); | 12485 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMAttributeGetter(sc
riptState, scriptStateInUserScript, "TestObject", "stringAttribute", holder); |
11922 if (v8Value.IsEmpty()) | 12486 if (v8Value.IsEmpty()) |
11923 return false; | 12487 return false; |
11924 TOSTRING_DEFAULT(V8StringResource<>, cppValue, v8Value, false); | 12488 V8StringResource<> cppValue = v8Value; |
| 12489 if (!cppValue.prepare()) |
| 12490 return false; |
11925 RELEASE_ASSERT(!exceptionState.hadException()); | 12491 RELEASE_ASSERT(!exceptionState.hadException()); |
11926 *result = cppValue; | 12492 *result = cppValue; |
11927 return true; | 12493 return true; |
11928 } | 12494 } |
11929 | 12495 |
11930 bool V8TestObject::PrivateScript::stringAttributeAttributeSetter(LocalFrame* fra
me, TestObject* holderImpl, String cppValue) | 12496 bool V8TestObject::PrivateScript::stringAttributeAttributeSetter(LocalFrame* fra
me, TestObject* holderImpl, String cppValue) |
11931 { | 12497 { |
11932 if (!frame) | 12498 if (!frame) |
11933 return false; | 12499 return false; |
11934 v8::HandleScope handleScope(toIsolate(frame)); | 12500 v8::HandleScope handleScope(toIsolate(frame)); |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12010 if (!scriptState->executionContext()) | 12576 if (!scriptState->executionContext()) |
12011 return false; | 12577 return false; |
12012 | 12578 |
12013 ScriptState::Scope scope(scriptState); | 12579 ScriptState::Scope scope(scriptState); |
12014 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); | 12580 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); |
12015 | 12581 |
12016 ExceptionState exceptionState(ExceptionState::GetterContext, "attributeForPr
ivateScriptOnly", "TestObject", scriptState->context()->Global(), scriptState->i
solate()); | 12582 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); | 12583 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMAttributeGetter(sc
riptState, scriptStateInUserScript, "TestObject", "attributeForPrivateScriptOnly
", holder); |
12018 if (v8Value.IsEmpty()) | 12584 if (v8Value.IsEmpty()) |
12019 return false; | 12585 return false; |
12020 TOSTRING_DEFAULT(V8StringResource<>, cppValue, v8Value, false); | 12586 V8StringResource<> cppValue = v8Value; |
| 12587 if (!cppValue.prepare()) |
| 12588 return false; |
12021 RELEASE_ASSERT(!exceptionState.hadException()); | 12589 RELEASE_ASSERT(!exceptionState.hadException()); |
12022 *result = cppValue; | 12590 *result = cppValue; |
12023 return true; | 12591 return true; |
12024 } | 12592 } |
12025 | 12593 |
12026 bool V8TestObject::PrivateScript::attributeForPrivateScriptOnlyAttributeSetter(L
ocalFrame* frame, TestObject* holderImpl, String cppValue) | 12594 bool V8TestObject::PrivateScript::attributeForPrivateScriptOnlyAttributeSetter(L
ocalFrame* frame, TestObject* holderImpl, String cppValue) |
12027 { | 12595 { |
12028 if (!frame) | 12596 if (!frame) |
12029 return false; | 12597 return false; |
12030 v8::HandleScope handleScope(toIsolate(frame)); | 12598 v8::HandleScope handleScope(toIsolate(frame)); |
(...skipping 27 matching lines...) Expand all Loading... |
12058 if (!scriptState->executionContext()) | 12626 if (!scriptState->executionContext()) |
12059 return false; | 12627 return false; |
12060 | 12628 |
12061 ScriptState::Scope scope(scriptState); | 12629 ScriptState::Scope scope(scriptState); |
12062 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); | 12630 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); |
12063 | 12631 |
12064 ExceptionState exceptionState(ExceptionState::GetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; | 12632 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
); | 12633 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMAttributeGetter(sc
riptState, scriptStateInUserScript, "TestObject", "enumForPrivateScript", holder
); |
12066 if (v8Value.IsEmpty()) | 12634 if (v8Value.IsEmpty()) |
12067 return false; | 12635 return false; |
12068 TOSTRING_DEFAULT(V8StringResource<>, cppValue, v8Value, false); | 12636 V8StringResource<> cppValue = v8Value; |
| 12637 if (!cppValue.prepare()) |
| 12638 return false; |
12069 RELEASE_ASSERT(!exceptionState.hadException()); | 12639 RELEASE_ASSERT(!exceptionState.hadException()); |
12070 *result = cppValue; | 12640 *result = cppValue; |
12071 return true; | 12641 return true; |
12072 } | 12642 } |
12073 | 12643 |
12074 bool V8TestObject::PrivateScript::enumForPrivateScriptAttributeSetter(LocalFrame
* frame, TestObject* holderImpl, String cppValue) | 12644 bool V8TestObject::PrivateScript::enumForPrivateScriptAttributeSetter(LocalFrame
* frame, TestObject* holderImpl, String cppValue) |
12075 { | 12645 { |
12076 if (!frame) | 12646 if (!frame) |
12077 return false; | 12647 return false; |
12078 v8::HandleScope handleScope(toIsolate(frame)); | 12648 v8::HandleScope handleScope(toIsolate(frame)); |
12079 ScriptForbiddenScope::AllowUserAgentScript script; | 12649 ScriptForbiddenScope::AllowUserAgentScript script; |
12080 v8::Local<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrappe
rWorld::privateScriptIsolatedWorld()); | 12650 v8::Local<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrappe
rWorld::privateScriptIsolatedWorld()); |
12081 if (contextInPrivateScript.IsEmpty()) | 12651 if (contextInPrivateScript.IsEmpty()) |
12082 return false; | 12652 return false; |
12083 ScriptState* scriptState = ScriptState::from(contextInPrivateScript); | 12653 ScriptState* scriptState = ScriptState::from(contextInPrivateScript); |
12084 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame); | 12654 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame); |
12085 if (!scriptState->executionContext()) | 12655 if (!scriptState->executionContext()) |
12086 return false; | 12656 return false; |
12087 | 12657 |
12088 ScriptState::Scope scope(scriptState); | 12658 ScriptState::Scope scope(scriptState); |
12089 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); | 12659 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); |
12090 | 12660 |
12091 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; | 12661 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)); | 12662 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); |
12093 } | 12663 } |
12094 | 12664 |
12095 } // namespace blink | 12665 } // namespace blink |
OLD | NEW |