| 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 TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(
), return); |
| 119 impl->setStringifierAttribute(cppValue); | 119 impl->setStringifierAttribute(cppValue); |
| 120 } | 120 } |
| 121 | 121 |
| 122 static void stringifierAttributeAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 122 static void stringifierAttributeAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 123 { | 123 { |
| 124 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 124 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 125 TestObjectV8Internal::stringifierAttributeAttributeSetter(v8Value, info); | 125 TestObjectV8Internal::stringifierAttributeAttributeSetter(v8Value, info); |
| 126 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 126 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 127 } | 127 } |
| 128 | 128 |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 { | 215 { |
| 216 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 216 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 217 TestObjectV8Internal::stringAttributeAttributeGetter(info); | 217 TestObjectV8Internal::stringAttributeAttributeGetter(info); |
| 218 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 218 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 219 } | 219 } |
| 220 | 220 |
| 221 static void stringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v
8::PropertyCallbackInfo<void>& info) | 221 static void stringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v
8::PropertyCallbackInfo<void>& info) |
| 222 { | 222 { |
| 223 v8::Local<v8::Object> holder = info.Holder(); | 223 v8::Local<v8::Object> holder = info.Holder(); |
| 224 TestObject* impl = V8TestObject::toImpl(holder); | 224 TestObject* impl = V8TestObject::toImpl(holder); |
| 225 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 225 TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(
), return); |
| 226 impl->setStringAttribute(cppValue); | 226 impl->setStringAttribute(cppValue); |
| 227 } | 227 } |
| 228 | 228 |
| 229 static void stringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 229 static void stringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 230 { | 230 { |
| 231 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 231 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 232 TestObjectV8Internal::stringAttributeAttributeSetter(v8Value, info); | 232 TestObjectV8Internal::stringAttributeAttributeSetter(v8Value, info); |
| 233 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 233 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 234 } | 234 } |
| 235 | 235 |
| 236 static void byteStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) | 236 static void byteStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) |
| 237 { | 237 { |
| 238 v8::Local<v8::Object> holder = info.Holder(); | 238 v8::Local<v8::Object> holder = info.Holder(); |
| 239 TestObject* impl = V8TestObject::toImpl(holder); | 239 TestObject* impl = V8TestObject::toImpl(holder); |
| 240 v8SetReturnValueString(info, impl->byteStringAttribute(), info.GetIsolate())
; | 240 v8SetReturnValueString(info, impl->byteStringAttribute(), info.GetIsolate())
; |
| 241 } | 241 } |
| 242 | 242 |
| 243 static void byteStringAttributeAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) | 243 static void byteStringAttributeAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) |
| 244 { | 244 { |
| 245 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 245 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 246 TestObjectV8Internal::byteStringAttributeAttributeGetter(info); | 246 TestObjectV8Internal::byteStringAttributeAttributeGetter(info); |
| 247 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 247 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 248 } | 248 } |
| 249 | 249 |
| 250 static void byteStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::PropertyCallbackInfo<void>& info) | 250 static void byteStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::PropertyCallbackInfo<void>& info) |
| 251 { | 251 { |
| 252 v8::Local<v8::Object> holder = info.Holder(); | 252 v8::Local<v8::Object> holder = info.Holder(); |
| 253 ExceptionState exceptionState(ExceptionState::SetterContext, "byteStringAttr
ibute", "TestObject", holder, info.GetIsolate()); | 253 ExceptionState exceptionState(ExceptionState::SetterContext, "byteStringAttr
ibute", "TestObject", holder, info.GetIsolate()); |
| 254 TestObject* impl = V8TestObject::toImpl(holder); | 254 TestObject* impl = V8TestObject::toImpl(holder); |
| 255 TONATIVE_VOID_EXCEPTIONSTATE(V8StringResource<>, cppValue, toByteString(v8Va
lue, exceptionState), exceptionState); | 255 TONATIVE_DECLARE(V8StringResource<>, cppValue, convertAndThrow(cppValue = to
ByteString(v8Value, exceptionState), exceptionState), return); |
| 256 impl->setByteStringAttribute(cppValue); | 256 impl->setByteStringAttribute(cppValue); |
| 257 } | 257 } |
| 258 | 258 |
| 259 static void byteStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 259 static void byteStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 260 { | 260 { |
| 261 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 261 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 262 TestObjectV8Internal::byteStringAttributeAttributeSetter(v8Value, info); | 262 TestObjectV8Internal::byteStringAttributeAttributeSetter(v8Value, info); |
| 263 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 263 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 264 } | 264 } |
| 265 | 265 |
| 266 static void usvStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8:
:Value>& info) | 266 static void usvStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8:
:Value>& info) |
| 267 { | 267 { |
| 268 v8::Local<v8::Object> holder = info.Holder(); | 268 v8::Local<v8::Object> holder = info.Holder(); |
| 269 TestObject* impl = V8TestObject::toImpl(holder); | 269 TestObject* impl = V8TestObject::toImpl(holder); |
| 270 v8SetReturnValueString(info, impl->usvStringAttribute(), info.GetIsolate()); | 270 v8SetReturnValueString(info, impl->usvStringAttribute(), info.GetIsolate()); |
| 271 } | 271 } |
| 272 | 272 |
| 273 static void usvStringAttributeAttributeGetterCallback(v8::Local<v8::String>, con
st v8::PropertyCallbackInfo<v8::Value>& info) | 273 static void usvStringAttributeAttributeGetterCallback(v8::Local<v8::String>, con
st v8::PropertyCallbackInfo<v8::Value>& info) |
| 274 { | 274 { |
| 275 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 275 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 276 TestObjectV8Internal::usvStringAttributeAttributeGetter(info); | 276 TestObjectV8Internal::usvStringAttributeAttributeGetter(info); |
| 277 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 277 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 278 } | 278 } |
| 279 | 279 |
| 280 static void usvStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) | 280 static void usvStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) |
| 281 { | 281 { |
| 282 v8::Local<v8::Object> holder = info.Holder(); | 282 v8::Local<v8::Object> holder = info.Holder(); |
| 283 ExceptionState exceptionState(ExceptionState::SetterContext, "usvStringAttri
bute", "TestObject", holder, info.GetIsolate()); | 283 ExceptionState exceptionState(ExceptionState::SetterContext, "usvStringAttri
bute", "TestObject", holder, info.GetIsolate()); |
| 284 TestObject* impl = V8TestObject::toImpl(holder); | 284 TestObject* impl = V8TestObject::toImpl(holder); |
| 285 TONATIVE_VOID_EXCEPTIONSTATE(V8StringResource<>, cppValue, toUSVString(v8Val
ue, exceptionState), exceptionState); | 285 TONATIVE_DECLARE(V8StringResource<>, cppValue, convertAndThrow(cppValue = to
USVString(v8Value, exceptionState), exceptionState), return); |
| 286 impl->setUsvStringAttribute(cppValue); | 286 impl->setUsvStringAttribute(cppValue); |
| 287 } | 287 } |
| 288 | 288 |
| 289 static void usvStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:
:Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 289 static void usvStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:
:Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 290 { | 290 { |
| 291 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 291 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 292 TestObjectV8Internal::usvStringAttributeAttributeSetter(v8Value, info); | 292 TestObjectV8Internal::usvStringAttributeAttributeSetter(v8Value, info); |
| 293 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 293 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 294 } | 294 } |
| 295 | 295 |
| 296 static void domTimeStampAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) | 296 static void domTimeStampAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) |
| 297 { | 297 { |
| 298 v8::Local<v8::Object> holder = info.Holder(); | 298 v8::Local<v8::Object> holder = info.Holder(); |
| 299 TestObject* impl = V8TestObject::toImpl(holder); | 299 TestObject* impl = V8TestObject::toImpl(holder); |
| 300 v8SetReturnValue(info, static_cast<double>(impl->domTimeStampAttribute())); | 300 v8SetReturnValue(info, static_cast<double>(impl->domTimeStampAttribute())); |
| 301 } | 301 } |
| 302 | 302 |
| 303 static void domTimeStampAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 303 static void domTimeStampAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
| 304 { | 304 { |
| 305 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 305 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 306 TestObjectV8Internal::domTimeStampAttributeAttributeGetter(info); | 306 TestObjectV8Internal::domTimeStampAttributeAttributeGetter(info); |
| 307 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 307 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 308 } | 308 } |
| 309 | 309 |
| 310 static void domTimeStampAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) | 310 static void domTimeStampAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) |
| 311 { | 311 { |
| 312 v8::Local<v8::Object> holder = info.Holder(); | 312 v8::Local<v8::Object> holder = info.Holder(); |
| 313 ExceptionState exceptionState(ExceptionState::SetterContext, "domTimeStampAt
tribute", "TestObject", holder, info.GetIsolate()); | 313 ExceptionState exceptionState(ExceptionState::SetterContext, "domTimeStampAt
tribute", "TestObject", holder, info.GetIsolate()); |
| 314 TestObject* impl = V8TestObject::toImpl(holder); | 314 TestObject* impl = V8TestObject::toImpl(holder); |
| 315 TONATIVE_VOID_EXCEPTIONSTATE(unsigned long long, cppValue, toUInt64(v8Value,
exceptionState), exceptionState); | 315 TONATIVE_DECLARE(unsigned long long, cppValue, convertAndThrow(cppValue = to
UInt64(v8Value, exceptionState), exceptionState), return); |
| 316 impl->setDomTimeStampAttribute(cppValue); | 316 impl->setDomTimeStampAttribute(cppValue); |
| 317 } | 317 } |
| 318 | 318 |
| 319 static void domTimeStampAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 319 static void domTimeStampAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 320 { | 320 { |
| 321 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 321 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 322 TestObjectV8Internal::domTimeStampAttributeAttributeSetter(v8Value, info); | 322 TestObjectV8Internal::domTimeStampAttributeAttributeSetter(v8Value, info); |
| 323 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 323 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 324 } | 324 } |
| 325 | 325 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 364 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 364 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 365 TestObjectV8Internal::byteAttributeAttributeGetter(info); | 365 TestObjectV8Internal::byteAttributeAttributeGetter(info); |
| 366 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 366 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 367 } | 367 } |
| 368 | 368 |
| 369 static void byteAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) | 369 static void byteAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) |
| 370 { | 370 { |
| 371 v8::Local<v8::Object> holder = info.Holder(); | 371 v8::Local<v8::Object> holder = info.Holder(); |
| 372 ExceptionState exceptionState(ExceptionState::SetterContext, "byteAttribute"
, "TestObject", holder, info.GetIsolate()); | 372 ExceptionState exceptionState(ExceptionState::SetterContext, "byteAttribute"
, "TestObject", holder, info.GetIsolate()); |
| 373 TestObject* impl = V8TestObject::toImpl(holder); | 373 TestObject* impl = V8TestObject::toImpl(holder); |
| 374 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt8(v8Value, exceptionState),
exceptionState); | 374 TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt8(v8Value, e
xceptionState), exceptionState), return); |
| 375 impl->setByteAttribute(cppValue); | 375 impl->setByteAttribute(cppValue); |
| 376 } | 376 } |
| 377 | 377 |
| 378 static void byteAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 378 static void byteAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 379 { | 379 { |
| 380 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 380 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 381 TestObjectV8Internal::byteAttributeAttributeSetter(v8Value, info); | 381 TestObjectV8Internal::byteAttributeAttributeSetter(v8Value, info); |
| 382 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 382 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 383 } | 383 } |
| 384 | 384 |
| 385 static void doubleAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va
lue>& info) | 385 static void doubleAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va
lue>& info) |
| 386 { | 386 { |
| 387 v8::Local<v8::Object> holder = info.Holder(); | 387 v8::Local<v8::Object> holder = info.Holder(); |
| 388 TestObject* impl = V8TestObject::toImpl(holder); | 388 TestObject* impl = V8TestObject::toImpl(holder); |
| 389 v8SetReturnValue(info, impl->doubleAttribute()); | 389 v8SetReturnValue(info, impl->doubleAttribute()); |
| 390 } | 390 } |
| 391 | 391 |
| 392 static void doubleAttributeAttributeGetterCallback(v8::Local<v8::String>, const
v8::PropertyCallbackInfo<v8::Value>& info) | 392 static void doubleAttributeAttributeGetterCallback(v8::Local<v8::String>, const
v8::PropertyCallbackInfo<v8::Value>& info) |
| 393 { | 393 { |
| 394 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 394 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 395 TestObjectV8Internal::doubleAttributeAttributeGetter(info); | 395 TestObjectV8Internal::doubleAttributeAttributeGetter(info); |
| 396 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 396 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 397 } | 397 } |
| 398 | 398 |
| 399 static void doubleAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v
8::PropertyCallbackInfo<void>& info) | 399 static void doubleAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v
8::PropertyCallbackInfo<void>& info) |
| 400 { | 400 { |
| 401 v8::Local<v8::Object> holder = info.Holder(); | 401 v8::Local<v8::Object> holder = info.Holder(); |
| 402 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleAttribut
e", "TestObject", holder, info.GetIsolate()); | 402 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleAttribut
e", "TestObject", holder, info.GetIsolate()); |
| 403 TestObject* impl = V8TestObject::toImpl(holder); | 403 TestObject* impl = V8TestObject::toImpl(holder); |
| 404 TONATIVE_VOID_EXCEPTIONSTATE(double, cppValue, toDouble(v8Value, exceptionSt
ate), exceptionState); | 404 TONATIVE_DECLARE(double, cppValue, convertAndThrow(cppValue = toDouble(v8Val
ue, exceptionState), exceptionState), return); |
| 405 impl->setDoubleAttribute(cppValue); | 405 impl->setDoubleAttribute(cppValue); |
| 406 } | 406 } |
| 407 | 407 |
| 408 static void doubleAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 408 static void doubleAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 409 { | 409 { |
| 410 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 410 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 411 TestObjectV8Internal::doubleAttributeAttributeSetter(v8Value, info); | 411 TestObjectV8Internal::doubleAttributeAttributeSetter(v8Value, info); |
| 412 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 412 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 413 } | 413 } |
| 414 | 414 |
| 415 static void floatAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val
ue>& info) | 415 static void floatAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val
ue>& info) |
| 416 { | 416 { |
| 417 v8::Local<v8::Object> holder = info.Holder(); | 417 v8::Local<v8::Object> holder = info.Holder(); |
| 418 TestObject* impl = V8TestObject::toImpl(holder); | 418 TestObject* impl = V8TestObject::toImpl(holder); |
| 419 v8SetReturnValue(info, impl->floatAttribute()); | 419 v8SetReturnValue(info, impl->floatAttribute()); |
| 420 } | 420 } |
| 421 | 421 |
| 422 static void floatAttributeAttributeGetterCallback(v8::Local<v8::String>, const v
8::PropertyCallbackInfo<v8::Value>& info) | 422 static void floatAttributeAttributeGetterCallback(v8::Local<v8::String>, const v
8::PropertyCallbackInfo<v8::Value>& info) |
| 423 { | 423 { |
| 424 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 424 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 425 TestObjectV8Internal::floatAttributeAttributeGetter(info); | 425 TestObjectV8Internal::floatAttributeAttributeGetter(info); |
| 426 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 426 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 427 } | 427 } |
| 428 | 428 |
| 429 static void floatAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8
::PropertyCallbackInfo<void>& info) | 429 static void floatAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8
::PropertyCallbackInfo<void>& info) |
| 430 { | 430 { |
| 431 v8::Local<v8::Object> holder = info.Holder(); | 431 v8::Local<v8::Object> holder = info.Holder(); |
| 432 ExceptionState exceptionState(ExceptionState::SetterContext, "floatAttribute
", "TestObject", holder, info.GetIsolate()); | 432 ExceptionState exceptionState(ExceptionState::SetterContext, "floatAttribute
", "TestObject", holder, info.GetIsolate()); |
| 433 TestObject* impl = V8TestObject::toImpl(holder); | 433 TestObject* impl = V8TestObject::toImpl(holder); |
| 434 TONATIVE_VOID_EXCEPTIONSTATE(float, cppValue, toFloat(v8Value, exceptionStat
e), exceptionState); | 434 TONATIVE_DECLARE(float, cppValue, convertAndThrow(cppValue = toFloat(v8Value
, exceptionState), exceptionState), return); |
| 435 impl->setFloatAttribute(cppValue); | 435 impl->setFloatAttribute(cppValue); |
| 436 } | 436 } |
| 437 | 437 |
| 438 static void floatAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 438 static void floatAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 439 { | 439 { |
| 440 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 440 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 441 TestObjectV8Internal::floatAttributeAttributeSetter(v8Value, info); | 441 TestObjectV8Internal::floatAttributeAttributeSetter(v8Value, info); |
| 442 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 442 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 443 } | 443 } |
| 444 | 444 |
| 445 static void longAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu
e>& info) | 445 static void longAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu
e>& info) |
| 446 { | 446 { |
| 447 v8::Local<v8::Object> holder = info.Holder(); | 447 v8::Local<v8::Object> holder = info.Holder(); |
| 448 TestObject* impl = V8TestObject::toImpl(holder); | 448 TestObject* impl = V8TestObject::toImpl(holder); |
| 449 v8SetReturnValueInt(info, impl->longAttribute()); | 449 v8SetReturnValueInt(info, impl->longAttribute()); |
| 450 } | 450 } |
| 451 | 451 |
| 452 static void longAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8
::PropertyCallbackInfo<v8::Value>& info) | 452 static void longAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8
::PropertyCallbackInfo<v8::Value>& info) |
| 453 { | 453 { |
| 454 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 454 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 455 TestObjectV8Internal::longAttributeAttributeGetter(info); | 455 TestObjectV8Internal::longAttributeAttributeGetter(info); |
| 456 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 456 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 457 } | 457 } |
| 458 | 458 |
| 459 static void longAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) | 459 static void longAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) |
| 460 { | 460 { |
| 461 v8::Local<v8::Object> holder = info.Holder(); | 461 v8::Local<v8::Object> holder = info.Holder(); |
| 462 ExceptionState exceptionState(ExceptionState::SetterContext, "longAttribute"
, "TestObject", holder, info.GetIsolate()); | 462 ExceptionState exceptionState(ExceptionState::SetterContext, "longAttribute"
, "TestObject", holder, info.GetIsolate()); |
| 463 TestObject* impl = V8TestObject::toImpl(holder); | 463 TestObject* impl = V8TestObject::toImpl(holder); |
| 464 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 464 TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value,
exceptionState), exceptionState), return); |
| 465 impl->setLongAttribute(cppValue); | 465 impl->setLongAttribute(cppValue); |
| 466 } | 466 } |
| 467 | 467 |
| 468 static void longAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 468 static void longAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 469 { | 469 { |
| 470 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 470 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 471 TestObjectV8Internal::longAttributeAttributeSetter(v8Value, info); | 471 TestObjectV8Internal::longAttributeAttributeSetter(v8Value, info); |
| 472 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 472 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 473 } | 473 } |
| 474 | 474 |
| 475 static void longLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::
Value>& info) | 475 static void longLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::
Value>& info) |
| 476 { | 476 { |
| 477 v8::Local<v8::Object> holder = info.Holder(); | 477 v8::Local<v8::Object> holder = info.Holder(); |
| 478 TestObject* impl = V8TestObject::toImpl(holder); | 478 TestObject* impl = V8TestObject::toImpl(holder); |
| 479 v8SetReturnValue(info, static_cast<double>(impl->longLongAttribute())); | 479 v8SetReturnValue(info, static_cast<double>(impl->longLongAttribute())); |
| 480 } | 480 } |
| 481 | 481 |
| 482 static void longLongAttributeAttributeGetterCallback(v8::Local<v8::String>, cons
t v8::PropertyCallbackInfo<v8::Value>& info) | 482 static void longLongAttributeAttributeGetterCallback(v8::Local<v8::String>, cons
t v8::PropertyCallbackInfo<v8::Value>& info) |
| 483 { | 483 { |
| 484 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 484 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 485 TestObjectV8Internal::longLongAttributeAttributeGetter(info); | 485 TestObjectV8Internal::longLongAttributeAttributeGetter(info); |
| 486 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 486 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 487 } | 487 } |
| 488 | 488 |
| 489 static void longLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const
v8::PropertyCallbackInfo<void>& info) | 489 static void longLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const
v8::PropertyCallbackInfo<void>& info) |
| 490 { | 490 { |
| 491 v8::Local<v8::Object> holder = info.Holder(); | 491 v8::Local<v8::Object> holder = info.Holder(); |
| 492 ExceptionState exceptionState(ExceptionState::SetterContext, "longLongAttrib
ute", "TestObject", holder, info.GetIsolate()); | 492 ExceptionState exceptionState(ExceptionState::SetterContext, "longLongAttrib
ute", "TestObject", holder, info.GetIsolate()); |
| 493 TestObject* impl = V8TestObject::toImpl(holder); | 493 TestObject* impl = V8TestObject::toImpl(holder); |
| 494 TONATIVE_VOID_EXCEPTIONSTATE(long long, cppValue, toInt64(v8Value, exception
State), exceptionState); | 494 TONATIVE_DECLARE(long long, cppValue, convertAndThrow(cppValue = toInt64(v8V
alue, exceptionState), exceptionState), return); |
| 495 impl->setLongLongAttribute(cppValue); | 495 impl->setLongLongAttribute(cppValue); |
| 496 } | 496 } |
| 497 | 497 |
| 498 static void longLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::
Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 498 static void longLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::
Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 499 { | 499 { |
| 500 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 500 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 501 TestObjectV8Internal::longLongAttributeAttributeSetter(v8Value, info); | 501 TestObjectV8Internal::longLongAttributeAttributeSetter(v8Value, info); |
| 502 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 502 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 503 } | 503 } |
| 504 | 504 |
| 505 static void octetAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val
ue>& info) | 505 static void octetAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val
ue>& info) |
| 506 { | 506 { |
| 507 v8::Local<v8::Object> holder = info.Holder(); | 507 v8::Local<v8::Object> holder = info.Holder(); |
| 508 TestObject* impl = V8TestObject::toImpl(holder); | 508 TestObject* impl = V8TestObject::toImpl(holder); |
| 509 v8SetReturnValueUnsigned(info, impl->octetAttribute()); | 509 v8SetReturnValueUnsigned(info, impl->octetAttribute()); |
| 510 } | 510 } |
| 511 | 511 |
| 512 static void octetAttributeAttributeGetterCallback(v8::Local<v8::String>, const v
8::PropertyCallbackInfo<v8::Value>& info) | 512 static void octetAttributeAttributeGetterCallback(v8::Local<v8::String>, const v
8::PropertyCallbackInfo<v8::Value>& info) |
| 513 { | 513 { |
| 514 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 514 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 515 TestObjectV8Internal::octetAttributeAttributeGetter(info); | 515 TestObjectV8Internal::octetAttributeAttributeGetter(info); |
| 516 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 516 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 517 } | 517 } |
| 518 | 518 |
| 519 static void octetAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8
::PropertyCallbackInfo<void>& info) | 519 static void octetAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8
::PropertyCallbackInfo<void>& info) |
| 520 { | 520 { |
| 521 v8::Local<v8::Object> holder = info.Holder(); | 521 v8::Local<v8::Object> holder = info.Holder(); |
| 522 ExceptionState exceptionState(ExceptionState::SetterContext, "octetAttribute
", "TestObject", holder, info.GetIsolate()); | 522 ExceptionState exceptionState(ExceptionState::SetterContext, "octetAttribute
", "TestObject", holder, info.GetIsolate()); |
| 523 TestObject* impl = V8TestObject::toImpl(holder); | 523 TestObject* impl = V8TestObject::toImpl(holder); |
| 524 TONATIVE_VOID_EXCEPTIONSTATE(unsigned, cppValue, toUInt8(v8Value, exceptionS
tate), exceptionState); | 524 TONATIVE_DECLARE(unsigned, cppValue, convertAndThrow(cppValue = toUInt8(v8Va
lue, exceptionState), exceptionState), return); |
| 525 impl->setOctetAttribute(cppValue); | 525 impl->setOctetAttribute(cppValue); |
| 526 } | 526 } |
| 527 | 527 |
| 528 static void octetAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 528 static void octetAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 529 { | 529 { |
| 530 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 530 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 531 TestObjectV8Internal::octetAttributeAttributeSetter(v8Value, info); | 531 TestObjectV8Internal::octetAttributeAttributeSetter(v8Value, info); |
| 532 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 532 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 533 } | 533 } |
| 534 | 534 |
| 535 static void shortAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val
ue>& info) | 535 static void shortAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val
ue>& info) |
| 536 { | 536 { |
| 537 v8::Local<v8::Object> holder = info.Holder(); | 537 v8::Local<v8::Object> holder = info.Holder(); |
| 538 TestObject* impl = V8TestObject::toImpl(holder); | 538 TestObject* impl = V8TestObject::toImpl(holder); |
| 539 v8SetReturnValueInt(info, impl->shortAttribute()); | 539 v8SetReturnValueInt(info, impl->shortAttribute()); |
| 540 } | 540 } |
| 541 | 541 |
| 542 static void shortAttributeAttributeGetterCallback(v8::Local<v8::String>, const v
8::PropertyCallbackInfo<v8::Value>& info) | 542 static void shortAttributeAttributeGetterCallback(v8::Local<v8::String>, const v
8::PropertyCallbackInfo<v8::Value>& info) |
| 543 { | 543 { |
| 544 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 544 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 545 TestObjectV8Internal::shortAttributeAttributeGetter(info); | 545 TestObjectV8Internal::shortAttributeAttributeGetter(info); |
| 546 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 546 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 547 } | 547 } |
| 548 | 548 |
| 549 static void shortAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8
::PropertyCallbackInfo<void>& info) | 549 static void shortAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8
::PropertyCallbackInfo<void>& info) |
| 550 { | 550 { |
| 551 v8::Local<v8::Object> holder = info.Holder(); | 551 v8::Local<v8::Object> holder = info.Holder(); |
| 552 ExceptionState exceptionState(ExceptionState::SetterContext, "shortAttribute
", "TestObject", holder, info.GetIsolate()); | 552 ExceptionState exceptionState(ExceptionState::SetterContext, "shortAttribute
", "TestObject", holder, info.GetIsolate()); |
| 553 TestObject* impl = V8TestObject::toImpl(holder); | 553 TestObject* impl = V8TestObject::toImpl(holder); |
| 554 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt16(v8Value, exceptionState)
, exceptionState); | 554 TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt16(v8Value,
exceptionState), exceptionState), return); |
| 555 impl->setShortAttribute(cppValue); | 555 impl->setShortAttribute(cppValue); |
| 556 } | 556 } |
| 557 | 557 |
| 558 static void shortAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 558 static void shortAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 559 { | 559 { |
| 560 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 560 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 561 TestObjectV8Internal::shortAttributeAttributeSetter(v8Value, info); | 561 TestObjectV8Internal::shortAttributeAttributeSetter(v8Value, info); |
| 562 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 562 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 563 } | 563 } |
| 564 | 564 |
| 565 static void unrestrictedDoubleAttributeAttributeGetter(const v8::PropertyCallbac
kInfo<v8::Value>& info) | 565 static void unrestrictedDoubleAttributeAttributeGetter(const v8::PropertyCallbac
kInfo<v8::Value>& info) |
| 566 { | 566 { |
| 567 v8::Local<v8::Object> holder = info.Holder(); | 567 v8::Local<v8::Object> holder = info.Holder(); |
| 568 TestObject* impl = V8TestObject::toImpl(holder); | 568 TestObject* impl = V8TestObject::toImpl(holder); |
| 569 v8SetReturnValue(info, impl->unrestrictedDoubleAttribute()); | 569 v8SetReturnValue(info, impl->unrestrictedDoubleAttribute()); |
| 570 } | 570 } |
| 571 | 571 |
| 572 static void unrestrictedDoubleAttributeAttributeGetterCallback(v8::Local<v8::Str
ing>, const v8::PropertyCallbackInfo<v8::Value>& info) | 572 static void unrestrictedDoubleAttributeAttributeGetterCallback(v8::Local<v8::Str
ing>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 573 { | 573 { |
| 574 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 574 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 575 TestObjectV8Internal::unrestrictedDoubleAttributeAttributeGetter(info); | 575 TestObjectV8Internal::unrestrictedDoubleAttributeAttributeGetter(info); |
| 576 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 576 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 577 } | 577 } |
| 578 | 578 |
| 579 static void unrestrictedDoubleAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) | 579 static void unrestrictedDoubleAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) |
| 580 { | 580 { |
| 581 v8::Local<v8::Object> holder = info.Holder(); | 581 v8::Local<v8::Object> holder = info.Holder(); |
| 582 ExceptionState exceptionState(ExceptionState::SetterContext, "unrestrictedDo
ubleAttribute", "TestObject", holder, info.GetIsolate()); | 582 ExceptionState exceptionState(ExceptionState::SetterContext, "unrestrictedDo
ubleAttribute", "TestObject", holder, info.GetIsolate()); |
| 583 TestObject* impl = V8TestObject::toImpl(holder); | 583 TestObject* impl = V8TestObject::toImpl(holder); |
| 584 TONATIVE_VOID_EXCEPTIONSTATE(double, cppValue, toDouble(v8Value, exceptionSt
ate), exceptionState); | 584 TONATIVE_DECLARE(double, cppValue, convertAndThrow(cppValue = toDouble(v8Val
ue, exceptionState), exceptionState), return); |
| 585 impl->setUnrestrictedDoubleAttribute(cppValue); | 585 impl->setUnrestrictedDoubleAttribute(cppValue); |
| 586 } | 586 } |
| 587 | 587 |
| 588 static void unrestrictedDoubleAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 588 static void unrestrictedDoubleAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 589 { | 589 { |
| 590 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 590 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 591 TestObjectV8Internal::unrestrictedDoubleAttributeAttributeSetter(v8Value, in
fo); | 591 TestObjectV8Internal::unrestrictedDoubleAttributeAttributeSetter(v8Value, in
fo); |
| 592 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 592 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 593 } | 593 } |
| 594 | 594 |
| 595 static void unrestrictedFloatAttributeAttributeGetter(const v8::PropertyCallback
Info<v8::Value>& info) | 595 static void unrestrictedFloatAttributeAttributeGetter(const v8::PropertyCallback
Info<v8::Value>& info) |
| 596 { | 596 { |
| 597 v8::Local<v8::Object> holder = info.Holder(); | 597 v8::Local<v8::Object> holder = info.Holder(); |
| 598 TestObject* impl = V8TestObject::toImpl(holder); | 598 TestObject* impl = V8TestObject::toImpl(holder); |
| 599 v8SetReturnValue(info, impl->unrestrictedFloatAttribute()); | 599 v8SetReturnValue(info, impl->unrestrictedFloatAttribute()); |
| 600 } | 600 } |
| 601 | 601 |
| 602 static void unrestrictedFloatAttributeAttributeGetterCallback(v8::Local<v8::Stri
ng>, const v8::PropertyCallbackInfo<v8::Value>& info) | 602 static void unrestrictedFloatAttributeAttributeGetterCallback(v8::Local<v8::Stri
ng>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 603 { | 603 { |
| 604 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 604 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 605 TestObjectV8Internal::unrestrictedFloatAttributeAttributeGetter(info); | 605 TestObjectV8Internal::unrestrictedFloatAttributeAttributeGetter(info); |
| 606 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 606 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 607 } | 607 } |
| 608 | 608 |
| 609 static void unrestrictedFloatAttributeAttributeSetter(v8::Local<v8::Value> v8Val
ue, const v8::PropertyCallbackInfo<void>& info) | 609 static void unrestrictedFloatAttributeAttributeSetter(v8::Local<v8::Value> v8Val
ue, const v8::PropertyCallbackInfo<void>& info) |
| 610 { | 610 { |
| 611 v8::Local<v8::Object> holder = info.Holder(); | 611 v8::Local<v8::Object> holder = info.Holder(); |
| 612 ExceptionState exceptionState(ExceptionState::SetterContext, "unrestrictedFl
oatAttribute", "TestObject", holder, info.GetIsolate()); | 612 ExceptionState exceptionState(ExceptionState::SetterContext, "unrestrictedFl
oatAttribute", "TestObject", holder, info.GetIsolate()); |
| 613 TestObject* impl = V8TestObject::toImpl(holder); | 613 TestObject* impl = V8TestObject::toImpl(holder); |
| 614 TONATIVE_VOID_EXCEPTIONSTATE(float, cppValue, toFloat(v8Value, exceptionStat
e), exceptionState); | 614 TONATIVE_DECLARE(float, cppValue, convertAndThrow(cppValue = toFloat(v8Value
, exceptionState), exceptionState), return); |
| 615 impl->setUnrestrictedFloatAttribute(cppValue); | 615 impl->setUnrestrictedFloatAttribute(cppValue); |
| 616 } | 616 } |
| 617 | 617 |
| 618 static void unrestrictedFloatAttributeAttributeSetterCallback(v8::Local<v8::Stri
ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 618 static void unrestrictedFloatAttributeAttributeSetterCallback(v8::Local<v8::Stri
ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 619 { | 619 { |
| 620 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 620 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 621 TestObjectV8Internal::unrestrictedFloatAttributeAttributeSetter(v8Value, inf
o); | 621 TestObjectV8Internal::unrestrictedFloatAttributeAttributeSetter(v8Value, inf
o); |
| 622 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 622 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 623 } | 623 } |
| 624 | 624 |
| 625 static void unsignedLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) | 625 static void unsignedLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) |
| 626 { | 626 { |
| 627 v8::Local<v8::Object> holder = info.Holder(); | 627 v8::Local<v8::Object> holder = info.Holder(); |
| 628 TestObject* impl = V8TestObject::toImpl(holder); | 628 TestObject* impl = V8TestObject::toImpl(holder); |
| 629 v8SetReturnValueUnsigned(info, impl->unsignedLongAttribute()); | 629 v8SetReturnValueUnsigned(info, impl->unsignedLongAttribute()); |
| 630 } | 630 } |
| 631 | 631 |
| 632 static void unsignedLongAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 632 static void unsignedLongAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
| 633 { | 633 { |
| 634 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 634 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 635 TestObjectV8Internal::unsignedLongAttributeAttributeGetter(info); | 635 TestObjectV8Internal::unsignedLongAttributeAttributeGetter(info); |
| 636 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 636 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 637 } | 637 } |
| 638 | 638 |
| 639 static void unsignedLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) | 639 static void unsignedLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) |
| 640 { | 640 { |
| 641 v8::Local<v8::Object> holder = info.Holder(); | 641 v8::Local<v8::Object> holder = info.Holder(); |
| 642 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedLongAt
tribute", "TestObject", holder, info.GetIsolate()); | 642 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedLongAt
tribute", "TestObject", holder, info.GetIsolate()); |
| 643 TestObject* impl = V8TestObject::toImpl(holder); | 643 TestObject* impl = V8TestObject::toImpl(holder); |
| 644 TONATIVE_VOID_EXCEPTIONSTATE(unsigned, cppValue, toUInt32(v8Value, exception
State), exceptionState); | 644 TONATIVE_DECLARE(unsigned, cppValue, convertAndThrow(cppValue = toUInt32(v8V
alue, exceptionState), exceptionState), return); |
| 645 impl->setUnsignedLongAttribute(cppValue); | 645 impl->setUnsignedLongAttribute(cppValue); |
| 646 } | 646 } |
| 647 | 647 |
| 648 static void unsignedLongAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 648 static void unsignedLongAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 649 { | 649 { |
| 650 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 650 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 651 TestObjectV8Internal::unsignedLongAttributeAttributeSetter(v8Value, info); | 651 TestObjectV8Internal::unsignedLongAttributeAttributeSetter(v8Value, info); |
| 652 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 652 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 653 } | 653 } |
| 654 | 654 |
| 655 static void unsignedLongLongAttributeAttributeGetter(const v8::PropertyCallbackI
nfo<v8::Value>& info) | 655 static void unsignedLongLongAttributeAttributeGetter(const v8::PropertyCallbackI
nfo<v8::Value>& info) |
| 656 { | 656 { |
| 657 v8::Local<v8::Object> holder = info.Holder(); | 657 v8::Local<v8::Object> holder = info.Holder(); |
| 658 TestObject* impl = V8TestObject::toImpl(holder); | 658 TestObject* impl = V8TestObject::toImpl(holder); |
| 659 v8SetReturnValue(info, static_cast<double>(impl->unsignedLongLongAttribute()
)); | 659 v8SetReturnValue(info, static_cast<double>(impl->unsignedLongLongAttribute()
)); |
| 660 } | 660 } |
| 661 | 661 |
| 662 static void unsignedLongLongAttributeAttributeGetterCallback(v8::Local<v8::Strin
g>, const v8::PropertyCallbackInfo<v8::Value>& info) | 662 static void unsignedLongLongAttributeAttributeGetterCallback(v8::Local<v8::Strin
g>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 663 { | 663 { |
| 664 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 664 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 665 TestObjectV8Internal::unsignedLongLongAttributeAttributeGetter(info); | 665 TestObjectV8Internal::unsignedLongLongAttributeAttributeGetter(info); |
| 666 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 666 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 667 } | 667 } |
| 668 | 668 |
| 669 static void unsignedLongLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::PropertyCallbackInfo<void>& info) | 669 static void unsignedLongLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::PropertyCallbackInfo<void>& info) |
| 670 { | 670 { |
| 671 v8::Local<v8::Object> holder = info.Holder(); | 671 v8::Local<v8::Object> holder = info.Holder(); |
| 672 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedLongLo
ngAttribute", "TestObject", holder, info.GetIsolate()); | 672 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedLongLo
ngAttribute", "TestObject", holder, info.GetIsolate()); |
| 673 TestObject* impl = V8TestObject::toImpl(holder); | 673 TestObject* impl = V8TestObject::toImpl(holder); |
| 674 TONATIVE_VOID_EXCEPTIONSTATE(unsigned long long, cppValue, toUInt64(v8Value,
exceptionState), exceptionState); | 674 TONATIVE_DECLARE(unsigned long long, cppValue, convertAndThrow(cppValue = to
UInt64(v8Value, exceptionState), exceptionState), return); |
| 675 impl->setUnsignedLongLongAttribute(cppValue); | 675 impl->setUnsignedLongLongAttribute(cppValue); |
| 676 } | 676 } |
| 677 | 677 |
| 678 static void unsignedLongLongAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 678 static void unsignedLongLongAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 679 { | 679 { |
| 680 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 680 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 681 TestObjectV8Internal::unsignedLongLongAttributeAttributeSetter(v8Value, info
); | 681 TestObjectV8Internal::unsignedLongLongAttributeAttributeSetter(v8Value, info
); |
| 682 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 682 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 683 } | 683 } |
| 684 | 684 |
| 685 static void unsignedShortAttributeAttributeGetter(const v8::PropertyCallbackInfo
<v8::Value>& info) | 685 static void unsignedShortAttributeAttributeGetter(const v8::PropertyCallbackInfo
<v8::Value>& info) |
| 686 { | 686 { |
| 687 v8::Local<v8::Object> holder = info.Holder(); | 687 v8::Local<v8::Object> holder = info.Holder(); |
| 688 TestObject* impl = V8TestObject::toImpl(holder); | 688 TestObject* impl = V8TestObject::toImpl(holder); |
| 689 v8SetReturnValueUnsigned(info, impl->unsignedShortAttribute()); | 689 v8SetReturnValueUnsigned(info, impl->unsignedShortAttribute()); |
| 690 } | 690 } |
| 691 | 691 |
| 692 static void unsignedShortAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 692 static void unsignedShortAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
| 693 { | 693 { |
| 694 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 694 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 695 TestObjectV8Internal::unsignedShortAttributeAttributeGetter(info); | 695 TestObjectV8Internal::unsignedShortAttributeAttributeGetter(info); |
| 696 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 696 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 697 } | 697 } |
| 698 | 698 |
| 699 static void unsignedShortAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) | 699 static void unsignedShortAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) |
| 700 { | 700 { |
| 701 v8::Local<v8::Object> holder = info.Holder(); | 701 v8::Local<v8::Object> holder = info.Holder(); |
| 702 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedShortA
ttribute", "TestObject", holder, info.GetIsolate()); | 702 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedShortA
ttribute", "TestObject", holder, info.GetIsolate()); |
| 703 TestObject* impl = V8TestObject::toImpl(holder); | 703 TestObject* impl = V8TestObject::toImpl(holder); |
| 704 TONATIVE_VOID_EXCEPTIONSTATE(unsigned, cppValue, toUInt16(v8Value, exception
State), exceptionState); | 704 TONATIVE_DECLARE(unsigned, cppValue, convertAndThrow(cppValue = toUInt16(v8V
alue, exceptionState), exceptionState), return); |
| 705 impl->setUnsignedShortAttribute(cppValue); | 705 impl->setUnsignedShortAttribute(cppValue); |
| 706 } | 706 } |
| 707 | 707 |
| 708 static void unsignedShortAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 708 static void unsignedShortAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 709 { | 709 { |
| 710 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 710 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 711 TestObjectV8Internal::unsignedShortAttributeAttributeSetter(v8Value, info); | 711 TestObjectV8Internal::unsignedShortAttributeAttributeSetter(v8Value, info); |
| 712 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 712 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 713 } | 713 } |
| 714 | 714 |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 840 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 840 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 841 TestObjectV8Internal::cssAttributeAttributeGetter(info); | 841 TestObjectV8Internal::cssAttributeAttributeGetter(info); |
| 842 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 842 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 843 } | 843 } |
| 844 | 844 |
| 845 static void cssAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::
PropertyCallbackInfo<void>& info) | 845 static void cssAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::
PropertyCallbackInfo<void>& info) |
| 846 { | 846 { |
| 847 v8::Local<v8::Object> holder = info.Holder(); | 847 v8::Local<v8::Object> holder = info.Holder(); |
| 848 ExceptionState exceptionState(ExceptionState::SetterContext, "cssAttribute",
"TestObject", holder, info.GetIsolate()); | 848 ExceptionState exceptionState(ExceptionState::SetterContext, "cssAttribute",
"TestObject", holder, info.GetIsolate()); |
| 849 TestObject* impl = V8TestObject::toImpl(holder); | 849 TestObject* impl = V8TestObject::toImpl(holder); |
| 850 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 850 TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value,
exceptionState), exceptionState), return); |
| 851 impl->setCSSAttribute(cppValue); | 851 impl->setCSSAttribute(cppValue); |
| 852 } | 852 } |
| 853 | 853 |
| 854 static void cssAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local
<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 854 static void cssAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local
<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 855 { | 855 { |
| 856 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 856 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 857 TestObjectV8Internal::cssAttributeAttributeSetter(v8Value, info); | 857 TestObjectV8Internal::cssAttributeAttributeSetter(v8Value, info); |
| 858 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 858 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 859 } | 859 } |
| 860 | 860 |
| 861 static void imeAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value
>& info) | 861 static void imeAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value
>& info) |
| 862 { | 862 { |
| 863 v8::Local<v8::Object> holder = info.Holder(); | 863 v8::Local<v8::Object> holder = info.Holder(); |
| 864 TestObject* impl = V8TestObject::toImpl(holder); | 864 TestObject* impl = V8TestObject::toImpl(holder); |
| 865 v8SetReturnValueInt(info, impl->imeAttribute()); | 865 v8SetReturnValueInt(info, impl->imeAttribute()); |
| 866 } | 866 } |
| 867 | 867 |
| 868 static void imeAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8:
:PropertyCallbackInfo<v8::Value>& info) | 868 static void imeAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8:
:PropertyCallbackInfo<v8::Value>& info) |
| 869 { | 869 { |
| 870 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 870 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 871 TestObjectV8Internal::imeAttributeAttributeGetter(info); | 871 TestObjectV8Internal::imeAttributeAttributeGetter(info); |
| 872 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 872 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 873 } | 873 } |
| 874 | 874 |
| 875 static void imeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::
PropertyCallbackInfo<void>& info) | 875 static void imeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::
PropertyCallbackInfo<void>& info) |
| 876 { | 876 { |
| 877 v8::Local<v8::Object> holder = info.Holder(); | 877 v8::Local<v8::Object> holder = info.Holder(); |
| 878 ExceptionState exceptionState(ExceptionState::SetterContext, "imeAttribute",
"TestObject", holder, info.GetIsolate()); | 878 ExceptionState exceptionState(ExceptionState::SetterContext, "imeAttribute",
"TestObject", holder, info.GetIsolate()); |
| 879 TestObject* impl = V8TestObject::toImpl(holder); | 879 TestObject* impl = V8TestObject::toImpl(holder); |
| 880 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 880 TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value,
exceptionState), exceptionState), return); |
| 881 impl->setIMEAttribute(cppValue); | 881 impl->setIMEAttribute(cppValue); |
| 882 } | 882 } |
| 883 | 883 |
| 884 static void imeAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local
<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 884 static void imeAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local
<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 885 { | 885 { |
| 886 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 886 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 887 TestObjectV8Internal::imeAttributeAttributeSetter(v8Value, info); | 887 TestObjectV8Internal::imeAttributeAttributeSetter(v8Value, info); |
| 888 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 888 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 889 } | 889 } |
| 890 | 890 |
| 891 static void svgAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value
>& info) | 891 static void svgAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value
>& info) |
| 892 { | 892 { |
| 893 v8::Local<v8::Object> holder = info.Holder(); | 893 v8::Local<v8::Object> holder = info.Holder(); |
| 894 TestObject* impl = V8TestObject::toImpl(holder); | 894 TestObject* impl = V8TestObject::toImpl(holder); |
| 895 v8SetReturnValueInt(info, impl->svgAttribute()); | 895 v8SetReturnValueInt(info, impl->svgAttribute()); |
| 896 } | 896 } |
| 897 | 897 |
| 898 static void svgAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8:
:PropertyCallbackInfo<v8::Value>& info) | 898 static void svgAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8:
:PropertyCallbackInfo<v8::Value>& info) |
| 899 { | 899 { |
| 900 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 900 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 901 TestObjectV8Internal::svgAttributeAttributeGetter(info); | 901 TestObjectV8Internal::svgAttributeAttributeGetter(info); |
| 902 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 902 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 903 } | 903 } |
| 904 | 904 |
| 905 static void svgAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::
PropertyCallbackInfo<void>& info) | 905 static void svgAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::
PropertyCallbackInfo<void>& info) |
| 906 { | 906 { |
| 907 v8::Local<v8::Object> holder = info.Holder(); | 907 v8::Local<v8::Object> holder = info.Holder(); |
| 908 ExceptionState exceptionState(ExceptionState::SetterContext, "svgAttribute",
"TestObject", holder, info.GetIsolate()); | 908 ExceptionState exceptionState(ExceptionState::SetterContext, "svgAttribute",
"TestObject", holder, info.GetIsolate()); |
| 909 TestObject* impl = V8TestObject::toImpl(holder); | 909 TestObject* impl = V8TestObject::toImpl(holder); |
| 910 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 910 TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value,
exceptionState), exceptionState), return); |
| 911 impl->setSVGAttribute(cppValue); | 911 impl->setSVGAttribute(cppValue); |
| 912 } | 912 } |
| 913 | 913 |
| 914 static void svgAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local
<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 914 static void svgAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local
<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 915 { | 915 { |
| 916 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 916 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 917 TestObjectV8Internal::svgAttributeAttributeSetter(v8Value, info); | 917 TestObjectV8Internal::svgAttributeAttributeSetter(v8Value, info); |
| 918 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 918 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 919 } | 919 } |
| 920 | 920 |
| 921 static void xmlAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value
>& info) | 921 static void xmlAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value
>& info) |
| 922 { | 922 { |
| 923 v8::Local<v8::Object> holder = info.Holder(); | 923 v8::Local<v8::Object> holder = info.Holder(); |
| 924 TestObject* impl = V8TestObject::toImpl(holder); | 924 TestObject* impl = V8TestObject::toImpl(holder); |
| 925 v8SetReturnValueInt(info, impl->xmlAttribute()); | 925 v8SetReturnValueInt(info, impl->xmlAttribute()); |
| 926 } | 926 } |
| 927 | 927 |
| 928 static void xmlAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8:
:PropertyCallbackInfo<v8::Value>& info) | 928 static void xmlAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8:
:PropertyCallbackInfo<v8::Value>& info) |
| 929 { | 929 { |
| 930 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 930 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 931 TestObjectV8Internal::xmlAttributeAttributeGetter(info); | 931 TestObjectV8Internal::xmlAttributeAttributeGetter(info); |
| 932 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 932 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 933 } | 933 } |
| 934 | 934 |
| 935 static void xmlAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::
PropertyCallbackInfo<void>& info) | 935 static void xmlAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::
PropertyCallbackInfo<void>& info) |
| 936 { | 936 { |
| 937 v8::Local<v8::Object> holder = info.Holder(); | 937 v8::Local<v8::Object> holder = info.Holder(); |
| 938 ExceptionState exceptionState(ExceptionState::SetterContext, "xmlAttribute",
"TestObject", holder, info.GetIsolate()); | 938 ExceptionState exceptionState(ExceptionState::SetterContext, "xmlAttribute",
"TestObject", holder, info.GetIsolate()); |
| 939 TestObject* impl = V8TestObject::toImpl(holder); | 939 TestObject* impl = V8TestObject::toImpl(holder); |
| 940 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 940 TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value,
exceptionState), exceptionState), return); |
| 941 impl->setXMLAttribute(cppValue); | 941 impl->setXMLAttribute(cppValue); |
| 942 } | 942 } |
| 943 | 943 |
| 944 static void xmlAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local
<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 944 static void xmlAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local
<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 945 { | 945 { |
| 946 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 946 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 947 TestObjectV8Internal::xmlAttributeAttributeSetter(v8Value, info); | 947 TestObjectV8Internal::xmlAttributeAttributeSetter(v8Value, info); |
| 948 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 948 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 949 } | 949 } |
| 950 | 950 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 989 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 989 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 990 TestObjectV8Internal::serializedScriptValueAttributeAttributeGetter(info); | 990 TestObjectV8Internal::serializedScriptValueAttributeAttributeGetter(info); |
| 991 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 991 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 992 } | 992 } |
| 993 | 993 |
| 994 static void serializedScriptValueAttributeAttributeSetter(v8::Local<v8::Value> v
8Value, const v8::PropertyCallbackInfo<void>& info) | 994 static void serializedScriptValueAttributeAttributeSetter(v8::Local<v8::Value> v
8Value, const v8::PropertyCallbackInfo<void>& info) |
| 995 { | 995 { |
| 996 v8::Local<v8::Object> holder = info.Holder(); | 996 v8::Local<v8::Object> holder = info.Holder(); |
| 997 ExceptionState exceptionState(ExceptionState::SetterContext, "serializedScri
ptValueAttribute", "TestObject", holder, info.GetIsolate()); | 997 ExceptionState exceptionState(ExceptionState::SetterContext, "serializedScri
ptValueAttribute", "TestObject", holder, info.GetIsolate()); |
| 998 TestObject* impl = V8TestObject::toImpl(holder); | 998 TestObject* impl = V8TestObject::toImpl(holder); |
| 999 TONATIVE_VOID_EXCEPTIONSTATE(RefPtr<SerializedScriptValue>, cppValue, Serial
izedScriptValueFactory::instance().create(v8Value, 0, 0, exceptionState, info.Ge
tIsolate()), exceptionState); | 999 TONATIVE_DECLARE(RefPtr<SerializedScriptValue>, cppValue, convertAndThrow(cp
pValue = SerializedScriptValueFactory::instance().create(v8Value, 0, 0, exceptio
nState, info.GetIsolate()), exceptionState), return); |
| 1000 impl->setSerializedScriptValueAttribute(WTF::getPtr(cppValue)); | 1000 impl->setSerializedScriptValueAttribute(WTF::getPtr(cppValue)); |
| 1001 } | 1001 } |
| 1002 | 1002 |
| 1003 static void serializedScriptValueAttributeAttributeSetterCallback(v8::Local<v8::
String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& inf
o) | 1003 static void serializedScriptValueAttributeAttributeSetterCallback(v8::Local<v8::
String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& inf
o) |
| 1004 { | 1004 { |
| 1005 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1005 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 1006 TestObjectV8Internal::serializedScriptValueAttributeAttributeSetter(v8Value,
info); | 1006 TestObjectV8Internal::serializedScriptValueAttributeAttributeSetter(v8Value,
info); |
| 1007 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1007 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 1008 } | 1008 } |
| 1009 | 1009 |
| (...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1451 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1451 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 1452 TestObjectV8Internal::stringArrayAttributeAttributeGetter(info); | 1452 TestObjectV8Internal::stringArrayAttributeAttributeGetter(info); |
| 1453 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1453 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 1454 } | 1454 } |
| 1455 | 1455 |
| 1456 static void stringArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::PropertyCallbackInfo<void>& info) | 1456 static void stringArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::PropertyCallbackInfo<void>& info) |
| 1457 { | 1457 { |
| 1458 v8::Local<v8::Object> holder = info.Holder(); | 1458 v8::Local<v8::Object> holder = info.Holder(); |
| 1459 ExceptionState exceptionState(ExceptionState::SetterContext, "stringArrayAtt
ribute", "TestObject", holder, info.GetIsolate()); | 1459 ExceptionState exceptionState(ExceptionState::SetterContext, "stringArrayAtt
ribute", "TestObject", holder, info.GetIsolate()); |
| 1460 TestObject* impl = V8TestObject::toImpl(holder); | 1460 TestObject* impl = V8TestObject::toImpl(holder); |
| 1461 TONATIVE_VOID_EXCEPTIONSTATE(Vector<String>, cppValue, toImplArray<String>(v
8Value, 0, info.GetIsolate(), exceptionState), exceptionState); | 1461 TONATIVE_DECLARE(Vector<String>, cppValue, convertAndThrow(cppValue = toImpl
Array<String>(v8Value, 0, info.GetIsolate(), exceptionState), exceptionState), r
eturn); |
| 1462 impl->setStringArrayAttribute(cppValue); | 1462 impl->setStringArrayAttribute(cppValue); |
| 1463 } | 1463 } |
| 1464 | 1464 |
| 1465 static void stringArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1465 static void stringArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 1466 { | 1466 { |
| 1467 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1467 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 1468 TestObjectV8Internal::stringArrayAttributeAttributeSetter(v8Value, info); | 1468 TestObjectV8Internal::stringArrayAttributeAttributeSetter(v8Value, info); |
| 1469 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1469 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 1470 } | 1470 } |
| 1471 | 1471 |
| 1472 static void testInterfaceEmptyArrayAttributeAttributeGetter(const v8::PropertyCa
llbackInfo<v8::Value>& info) | 1472 static void testInterfaceEmptyArrayAttributeAttributeGetter(const v8::PropertyCa
llbackInfo<v8::Value>& info) |
| 1473 { | 1473 { |
| 1474 v8::Local<v8::Object> holder = info.Holder(); | 1474 v8::Local<v8::Object> holder = info.Holder(); |
| 1475 TestObject* impl = V8TestObject::toImpl(holder); | 1475 TestObject* impl = V8TestObject::toImpl(holder); |
| 1476 v8SetReturnValue(info, toV8(impl->testInterfaceEmptyArrayAttribute(), info.H
older(), info.GetIsolate())); | 1476 v8SetReturnValue(info, toV8(impl->testInterfaceEmptyArrayAttribute(), info.H
older(), info.GetIsolate())); |
| 1477 } | 1477 } |
| 1478 | 1478 |
| 1479 static void testInterfaceEmptyArrayAttributeAttributeGetterCallback(v8::Local<v8
::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1479 static void testInterfaceEmptyArrayAttributeAttributeGetterCallback(v8::Local<v8
::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 1480 { | 1480 { |
| 1481 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1481 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 1482 TestObjectV8Internal::testInterfaceEmptyArrayAttributeAttributeGetter(info); | 1482 TestObjectV8Internal::testInterfaceEmptyArrayAttributeAttributeGetter(info); |
| 1483 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1483 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 1484 } | 1484 } |
| 1485 | 1485 |
| 1486 static void testInterfaceEmptyArrayAttributeAttributeSetter(v8::Local<v8::Value>
v8Value, const v8::PropertyCallbackInfo<void>& info) | 1486 static void testInterfaceEmptyArrayAttributeAttributeSetter(v8::Local<v8::Value>
v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 1487 { | 1487 { |
| 1488 v8::Local<v8::Object> holder = info.Holder(); | 1488 v8::Local<v8::Object> holder = info.Holder(); |
| 1489 ExceptionState exceptionState(ExceptionState::SetterContext, "testInterfaceE
mptyArrayAttribute", "TestObject", holder, info.GetIsolate()); | 1489 ExceptionState exceptionState(ExceptionState::SetterContext, "testInterfaceE
mptyArrayAttribute", "TestObject", holder, info.GetIsolate()); |
| 1490 TestObject* impl = V8TestObject::toImpl(holder); | 1490 TestObject* impl = V8TestObject::toImpl(holder); |
| 1491 TONATIVE_VOID_EXCEPTIONSTATE(Vector<RefPtr<TestInterfaceEmpty>>, cppValue, (
toRefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(v8Value, 0, info.G
etIsolate(), exceptionState)), exceptionState); | 1491 TONATIVE_DECLARE(Vector<RefPtr<TestInterfaceEmpty>>, cppValue, convertAndThr
ow(cppValue = (toRefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(v8V
alue, 0, info.GetIsolate(), exceptionState)), exceptionState), return); |
| 1492 impl->setTestInterfaceEmptyArrayAttribute(cppValue); | 1492 impl->setTestInterfaceEmptyArrayAttribute(cppValue); |
| 1493 } | 1493 } |
| 1494 | 1494 |
| 1495 static void testInterfaceEmptyArrayAttributeAttributeSetterCallback(v8::Local<v8
::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& i
nfo) | 1495 static void testInterfaceEmptyArrayAttributeAttributeSetterCallback(v8::Local<v8
::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& i
nfo) |
| 1496 { | 1496 { |
| 1497 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1497 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 1498 TestObjectV8Internal::testInterfaceEmptyArrayAttributeAttributeSetter(v8Valu
e, info); | 1498 TestObjectV8Internal::testInterfaceEmptyArrayAttributeAttributeSetter(v8Valu
e, info); |
| 1499 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1499 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 1500 } | 1500 } |
| 1501 | 1501 |
| 1502 static void floatArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) | 1502 static void floatArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) |
| 1503 { | 1503 { |
| 1504 v8::Local<v8::Object> holder = info.Holder(); | 1504 v8::Local<v8::Object> holder = info.Holder(); |
| 1505 TestObject* impl = V8TestObject::toImpl(holder); | 1505 TestObject* impl = V8TestObject::toImpl(holder); |
| 1506 v8SetReturnValue(info, toV8(impl->floatArrayAttribute(), info.Holder(), info
.GetIsolate())); | 1506 v8SetReturnValue(info, toV8(impl->floatArrayAttribute(), info.Holder(), info
.GetIsolate())); |
| 1507 } | 1507 } |
| 1508 | 1508 |
| 1509 static void floatArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) | 1509 static void floatArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) |
| 1510 { | 1510 { |
| 1511 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1511 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 1512 TestObjectV8Internal::floatArrayAttributeAttributeGetter(info); | 1512 TestObjectV8Internal::floatArrayAttributeAttributeGetter(info); |
| 1513 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1513 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 1514 } | 1514 } |
| 1515 | 1515 |
| 1516 static void floatArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::PropertyCallbackInfo<void>& info) | 1516 static void floatArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::PropertyCallbackInfo<void>& info) |
| 1517 { | 1517 { |
| 1518 v8::Local<v8::Object> holder = info.Holder(); | 1518 v8::Local<v8::Object> holder = info.Holder(); |
| 1519 ExceptionState exceptionState(ExceptionState::SetterContext, "floatArrayAttr
ibute", "TestObject", holder, info.GetIsolate()); | 1519 ExceptionState exceptionState(ExceptionState::SetterContext, "floatArrayAttr
ibute", "TestObject", holder, info.GetIsolate()); |
| 1520 TestObject* impl = V8TestObject::toImpl(holder); | 1520 TestObject* impl = V8TestObject::toImpl(holder); |
| 1521 TONATIVE_VOID_EXCEPTIONSTATE(Vector<float>, cppValue, toImplArray<float>(v8V
alue, 0, info.GetIsolate(), exceptionState), exceptionState); | 1521 TONATIVE_DECLARE(Vector<float>, cppValue, convertAndThrow(cppValue = toImplA
rray<float>(v8Value, 0, info.GetIsolate(), exceptionState), exceptionState), ret
urn); |
| 1522 impl->setFloatArrayAttribute(cppValue); | 1522 impl->setFloatArrayAttribute(cppValue); |
| 1523 } | 1523 } |
| 1524 | 1524 |
| 1525 static void floatArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1525 static void floatArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 1526 { | 1526 { |
| 1527 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1527 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 1528 TestObjectV8Internal::floatArrayAttributeAttributeSetter(v8Value, info); | 1528 TestObjectV8Internal::floatArrayAttributeAttributeSetter(v8Value, info); |
| 1529 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1529 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 1530 } | 1530 } |
| 1531 | 1531 |
| 1532 static void stringOrNullAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) | 1532 static void stringOrNullAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) |
| 1533 { | 1533 { |
| 1534 v8::Local<v8::Object> holder = info.Holder(); | 1534 v8::Local<v8::Object> holder = info.Holder(); |
| 1535 TestObject* impl = V8TestObject::toImpl(holder); | 1535 TestObject* impl = V8TestObject::toImpl(holder); |
| 1536 v8SetReturnValueStringOrNull(info, impl->stringOrNullAttribute(), info.GetIs
olate()); | 1536 v8SetReturnValueStringOrNull(info, impl->stringOrNullAttribute(), info.GetIs
olate()); |
| 1537 } | 1537 } |
| 1538 | 1538 |
| 1539 static void stringOrNullAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 1539 static void stringOrNullAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
| 1540 { | 1540 { |
| 1541 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1541 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 1542 TestObjectV8Internal::stringOrNullAttributeAttributeGetter(info); | 1542 TestObjectV8Internal::stringOrNullAttributeAttributeGetter(info); |
| 1543 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1543 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 1544 } | 1544 } |
| 1545 | 1545 |
| 1546 static void stringOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) | 1546 static void stringOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) |
| 1547 { | 1547 { |
| 1548 v8::Local<v8::Object> holder = info.Holder(); | 1548 v8::Local<v8::Object> holder = info.Holder(); |
| 1549 TestObject* impl = V8TestObject::toImpl(holder); | 1549 TestObject* impl = V8TestObject::toImpl(holder); |
| 1550 TOSTRING_VOID(V8StringResource<TreatNullAsNullString>, cppValue, v8Value); | 1550 TONATIVE_DECLARE(V8StringResource<TreatNullAsNullString>, cppValue, (cppValu
e = v8Value).prepare(), return); |
| 1551 impl->setStringOrNullAttribute(cppValue); | 1551 impl->setStringOrNullAttribute(cppValue); |
| 1552 } | 1552 } |
| 1553 | 1553 |
| 1554 static void stringOrNullAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1554 static void stringOrNullAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 1555 { | 1555 { |
| 1556 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1556 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 1557 TestObjectV8Internal::stringOrNullAttributeAttributeSetter(v8Value, info); | 1557 TestObjectV8Internal::stringOrNullAttributeAttributeSetter(v8Value, info); |
| 1558 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1558 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 1559 } | 1559 } |
| 1560 | 1560 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 1576 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1576 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 1577 TestObjectV8Internal::longOrNullAttributeAttributeGetter(info); | 1577 TestObjectV8Internal::longOrNullAttributeAttributeGetter(info); |
| 1578 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1578 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 1579 } | 1579 } |
| 1580 | 1580 |
| 1581 static void longOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::PropertyCallbackInfo<void>& info) | 1581 static void longOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::PropertyCallbackInfo<void>& info) |
| 1582 { | 1582 { |
| 1583 v8::Local<v8::Object> holder = info.Holder(); | 1583 v8::Local<v8::Object> holder = info.Holder(); |
| 1584 ExceptionState exceptionState(ExceptionState::SetterContext, "longOrNullAttr
ibute", "TestObject", holder, info.GetIsolate()); | 1584 ExceptionState exceptionState(ExceptionState::SetterContext, "longOrNullAttr
ibute", "TestObject", holder, info.GetIsolate()); |
| 1585 TestObject* impl = V8TestObject::toImpl(holder); | 1585 TestObject* impl = V8TestObject::toImpl(holder); |
| 1586 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 1586 TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value,
exceptionState), exceptionState), return); |
| 1587 impl->setLongOrNullAttribute(cppValue); | 1587 impl->setLongOrNullAttribute(cppValue); |
| 1588 } | 1588 } |
| 1589 | 1589 |
| 1590 static void longOrNullAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1590 static void longOrNullAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 1591 { | 1591 { |
| 1592 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1592 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 1593 TestObjectV8Internal::longOrNullAttributeAttributeSetter(v8Value, info); | 1593 TestObjectV8Internal::longOrNullAttributeAttributeSetter(v8Value, info); |
| 1594 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1594 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 1595 } | 1595 } |
| 1596 | 1596 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1634 { | 1634 { |
| 1635 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1635 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 1636 TestObjectV8Internal::testEnumAttributeAttributeGetter(info); | 1636 TestObjectV8Internal::testEnumAttributeAttributeGetter(info); |
| 1637 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1637 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 1638 } | 1638 } |
| 1639 | 1639 |
| 1640 static void testEnumAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const
v8::PropertyCallbackInfo<void>& info) | 1640 static void testEnumAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const
v8::PropertyCallbackInfo<void>& info) |
| 1641 { | 1641 { |
| 1642 v8::Local<v8::Object> holder = info.Holder(); | 1642 v8::Local<v8::Object> holder = info.Holder(); |
| 1643 TestObject* impl = V8TestObject::toImpl(holder); | 1643 TestObject* impl = V8TestObject::toImpl(holder); |
| 1644 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 1644 TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(
), return); |
| 1645 String string = cppValue; | 1645 String string = cppValue; |
| 1646 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || st
ring == "EnumValue3")) | 1646 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || st
ring == "EnumValue3")) |
| 1647 return; | 1647 return; |
| 1648 impl->setTestEnumAttribute(cppValue); | 1648 impl->setTestEnumAttribute(cppValue); |
| 1649 } | 1649 } |
| 1650 | 1650 |
| 1651 static void testEnumAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::
Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1651 static void testEnumAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::
Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 1652 { | 1652 { |
| 1653 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1653 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 1654 TestObjectV8Internal::testEnumAttributeAttributeSetter(v8Value, info); | 1654 TestObjectV8Internal::testEnumAttributeAttributeSetter(v8Value, info); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 1666 { | 1666 { |
| 1667 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1667 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 1668 TestObjectV8Internal::testEnumOrNullAttributeAttributeGetter(info); | 1668 TestObjectV8Internal::testEnumOrNullAttributeAttributeGetter(info); |
| 1669 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1669 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 1670 } | 1670 } |
| 1671 | 1671 |
| 1672 static void testEnumOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) | 1672 static void testEnumOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) |
| 1673 { | 1673 { |
| 1674 v8::Local<v8::Object> holder = info.Holder(); | 1674 v8::Local<v8::Object> holder = info.Holder(); |
| 1675 TestObject* impl = V8TestObject::toImpl(holder); | 1675 TestObject* impl = V8TestObject::toImpl(holder); |
| 1676 TOSTRING_VOID(V8StringResource<TreatNullAsNullString>, cppValue, v8Value); | 1676 TONATIVE_DECLARE(V8StringResource<TreatNullAsNullString>, cppValue, (cppValu
e = v8Value).prepare(), return); |
| 1677 String string = cppValue; | 1677 String string = cppValue; |
| 1678 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || st
ring == "EnumValue3")) | 1678 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || st
ring == "EnumValue3")) |
| 1679 return; | 1679 return; |
| 1680 impl->setTestEnumOrNullAttribute(cppValue); | 1680 impl->setTestEnumOrNullAttribute(cppValue); |
| 1681 } | 1681 } |
| 1682 | 1682 |
| 1683 static void testEnumOrNullAttributeAttributeSetterCallback(v8::Local<v8::String>
, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1683 static void testEnumOrNullAttributeAttributeSetterCallback(v8::Local<v8::String>
, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 1684 { | 1684 { |
| 1685 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1685 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 1686 TestObjectV8Internal::testEnumOrNullAttributeAttributeSetter(v8Value, info); | 1686 TestObjectV8Internal::testEnumOrNullAttributeAttributeSetter(v8Value, info); |
| 1687 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1687 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 1688 } | 1688 } |
| 1689 | 1689 |
| 1690 static void staticStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) | 1690 static void staticStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) |
| 1691 { | 1691 { |
| 1692 v8SetReturnValueString(info, TestObject::staticStringAttribute(), info.GetIs
olate()); | 1692 v8SetReturnValueString(info, TestObject::staticStringAttribute(), info.GetIs
olate()); |
| 1693 } | 1693 } |
| 1694 | 1694 |
| 1695 static void staticStringAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 1695 static void staticStringAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
| 1696 { | 1696 { |
| 1697 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1697 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 1698 TestObjectV8Internal::staticStringAttributeAttributeGetter(info); | 1698 TestObjectV8Internal::staticStringAttributeAttributeGetter(info); |
| 1699 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1699 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 1700 } | 1700 } |
| 1701 | 1701 |
| 1702 static void staticStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) | 1702 static void staticStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) |
| 1703 { | 1703 { |
| 1704 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 1704 TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(
), return); |
| 1705 TestObject::setStaticStringAttribute(cppValue); | 1705 TestObject::setStaticStringAttribute(cppValue); |
| 1706 } | 1706 } |
| 1707 | 1707 |
| 1708 static void staticStringAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1708 static void staticStringAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 1709 { | 1709 { |
| 1710 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1710 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 1711 TestObjectV8Internal::staticStringAttributeAttributeSetter(v8Value, info); | 1711 TestObjectV8Internal::staticStringAttributeAttributeSetter(v8Value, info); |
| 1712 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1712 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 1713 } | 1713 } |
| 1714 | 1714 |
| 1715 static void staticLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) | 1715 static void staticLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) |
| 1716 { | 1716 { |
| 1717 v8SetReturnValueInt(info, TestObject::staticLongAttribute()); | 1717 v8SetReturnValueInt(info, TestObject::staticLongAttribute()); |
| 1718 } | 1718 } |
| 1719 | 1719 |
| 1720 static void staticLongAttributeAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) | 1720 static void staticLongAttributeAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) |
| 1721 { | 1721 { |
| 1722 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1722 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 1723 TestObjectV8Internal::staticLongAttributeAttributeGetter(info); | 1723 TestObjectV8Internal::staticLongAttributeAttributeGetter(info); |
| 1724 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1724 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 1725 } | 1725 } |
| 1726 | 1726 |
| 1727 static void staticLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::PropertyCallbackInfo<void>& info) | 1727 static void staticLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::PropertyCallbackInfo<void>& info) |
| 1728 { | 1728 { |
| 1729 ExceptionState exceptionState(ExceptionState::SetterContext, "staticLongAttr
ibute", "TestObject", holder, info.GetIsolate()); | 1729 ExceptionState exceptionState(ExceptionState::SetterContext, "staticLongAttr
ibute", "TestObject", holder, info.GetIsolate()); |
| 1730 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 1730 TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value,
exceptionState), exceptionState), return); |
| 1731 TestObject::setStaticLongAttribute(cppValue); | 1731 TestObject::setStaticLongAttribute(cppValue); |
| 1732 } | 1732 } |
| 1733 | 1733 |
| 1734 static void staticLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1734 static void staticLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 1735 { | 1735 { |
| 1736 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1736 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 1737 TestObjectV8Internal::staticLongAttributeAttributeSetter(v8Value, info); | 1737 TestObjectV8Internal::staticLongAttributeAttributeSetter(v8Value, info); |
| 1738 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1738 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 1739 } | 1739 } |
| 1740 | 1740 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1781 { | 1781 { |
| 1782 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1782 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 1783 TestObjectV8Internal::doubleOrStringAttributeAttributeGetter(info); | 1783 TestObjectV8Internal::doubleOrStringAttributeAttributeGetter(info); |
| 1784 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1784 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 1785 } | 1785 } |
| 1786 | 1786 |
| 1787 static void doubleOrStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) | 1787 static void doubleOrStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) |
| 1788 { | 1788 { |
| 1789 v8::Local<v8::Object> holder = info.Holder(); | 1789 v8::Local<v8::Object> holder = info.Holder(); |
| 1790 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleOrString
Attribute", "TestObject", holder, info.GetIsolate()); | 1790 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleOrString
Attribute", "TestObject", holder, info.GetIsolate()); |
| 1791 DoubleOrString cppValue; | |
| 1792 TestObject* impl = V8TestObject::toImpl(holder); | 1791 TestObject* impl = V8TestObject::toImpl(holder); |
| 1793 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8DoubleOrString::toImpl(info.GetIs
olate(), v8Value, cppValue, exceptionState), exceptionState); | 1792 TONATIVE_DECLARE(DoubleOrString, cppValue, V8DoubleOrString::toImpl(info.Get
Isolate(), v8Value, cppValue, exceptionState), return exceptionState.throwExcept
ion()); |
| 1794 impl->setDoubleOrStringAttribute(cppValue); | 1793 impl->setDoubleOrStringAttribute(cppValue); |
| 1795 } | 1794 } |
| 1796 | 1795 |
| 1797 static void doubleOrStringAttributeAttributeSetterCallback(v8::Local<v8::String>
, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1796 static void doubleOrStringAttributeAttributeSetterCallback(v8::Local<v8::String>
, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 1798 { | 1797 { |
| 1799 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1798 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 1800 TestObjectV8Internal::doubleOrStringAttributeAttributeSetter(v8Value, info); | 1799 TestObjectV8Internal::doubleOrStringAttributeAttributeSetter(v8Value, info); |
| 1801 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1800 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 1802 } | 1801 } |
| 1803 | 1802 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 1814 { | 1813 { |
| 1815 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1814 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 1816 TestObjectV8Internal::doubleOrStringOrNullAttributeAttributeGetter(info); | 1815 TestObjectV8Internal::doubleOrStringOrNullAttributeAttributeGetter(info); |
| 1817 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1816 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 1818 } | 1817 } |
| 1819 | 1818 |
| 1820 static void doubleOrStringOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8
Value, const v8::PropertyCallbackInfo<void>& info) | 1819 static void doubleOrStringOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8
Value, const v8::PropertyCallbackInfo<void>& info) |
| 1821 { | 1820 { |
| 1822 v8::Local<v8::Object> holder = info.Holder(); | 1821 v8::Local<v8::Object> holder = info.Holder(); |
| 1823 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleOrString
OrNullAttribute", "TestObject", holder, info.GetIsolate()); | 1822 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleOrString
OrNullAttribute", "TestObject", holder, info.GetIsolate()); |
| 1824 DoubleOrString cppValue; | |
| 1825 TestObject* impl = V8TestObject::toImpl(holder); | 1823 TestObject* impl = V8TestObject::toImpl(holder); |
| 1826 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8DoubleOrStringOrNull::toImpl(info
.GetIsolate(), v8Value, cppValue, exceptionState), exceptionState); | 1824 TONATIVE_DECLARE(DoubleOrString, cppValue, V8DoubleOrStringOrNull::toImpl(in
fo.GetIsolate(), v8Value, cppValue, exceptionState), return exceptionState.throw
Exception()); |
| 1827 impl->setDoubleOrStringOrNullAttribute(cppValue); | 1825 impl->setDoubleOrStringOrNullAttribute(cppValue); |
| 1828 } | 1826 } |
| 1829 | 1827 |
| 1830 static void doubleOrStringOrNullAttributeAttributeSetterCallback(v8::Local<v8::S
tring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info
) | 1828 static void doubleOrStringOrNullAttributeAttributeSetterCallback(v8::Local<v8::S
tring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info
) |
| 1831 { | 1829 { |
| 1832 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1830 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 1833 TestObjectV8Internal::doubleOrStringOrNullAttributeAttributeSetter(v8Value,
info); | 1831 TestObjectV8Internal::doubleOrStringOrNullAttributeAttributeSetter(v8Value,
info); |
| 1834 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1832 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 1835 } | 1833 } |
| 1836 | 1834 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 1847 { | 1845 { |
| 1848 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1846 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 1849 TestObjectV8Internal::doubleOrNullStringAttributeAttributeGetter(info); | 1847 TestObjectV8Internal::doubleOrNullStringAttributeAttributeGetter(info); |
| 1850 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1848 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 1851 } | 1849 } |
| 1852 | 1850 |
| 1853 static void doubleOrNullStringAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) | 1851 static void doubleOrNullStringAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) |
| 1854 { | 1852 { |
| 1855 v8::Local<v8::Object> holder = info.Holder(); | 1853 v8::Local<v8::Object> holder = info.Holder(); |
| 1856 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleOrNullSt
ringAttribute", "TestObject", holder, info.GetIsolate()); | 1854 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleOrNullSt
ringAttribute", "TestObject", holder, info.GetIsolate()); |
| 1857 DoubleOrString cppValue; | |
| 1858 TestObject* impl = V8TestObject::toImpl(holder); | 1855 TestObject* impl = V8TestObject::toImpl(holder); |
| 1859 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8DoubleOrStringOrNull::toImpl(info
.GetIsolate(), v8Value, cppValue, exceptionState), exceptionState); | 1856 TONATIVE_DECLARE(DoubleOrString, cppValue, V8DoubleOrStringOrNull::toImpl(in
fo.GetIsolate(), v8Value, cppValue, exceptionState), return exceptionState.throw
Exception()); |
| 1860 impl->setDoubleOrNullStringAttribute(cppValue); | 1857 impl->setDoubleOrNullStringAttribute(cppValue); |
| 1861 } | 1858 } |
| 1862 | 1859 |
| 1863 static void doubleOrNullStringAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1860 static void doubleOrNullStringAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 1864 { | 1861 { |
| 1865 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1862 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 1866 TestObjectV8Internal::doubleOrNullStringAttributeAttributeSetter(v8Value, in
fo); | 1863 TestObjectV8Internal::doubleOrNullStringAttributeAttributeSetter(v8Value, in
fo); |
| 1867 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1864 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 1868 } | 1865 } |
| 1869 | 1866 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 1880 { | 1877 { |
| 1881 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1878 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 1882 TestObjectV8Internal::stringOrStringSequenceAttributeAttributeGetter(info); | 1879 TestObjectV8Internal::stringOrStringSequenceAttributeAttributeGetter(info); |
| 1883 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1880 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 1884 } | 1881 } |
| 1885 | 1882 |
| 1886 static void stringOrStringSequenceAttributeAttributeSetter(v8::Local<v8::Value>
v8Value, const v8::PropertyCallbackInfo<void>& info) | 1883 static void stringOrStringSequenceAttributeAttributeSetter(v8::Local<v8::Value>
v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 1887 { | 1884 { |
| 1888 v8::Local<v8::Object> holder = info.Holder(); | 1885 v8::Local<v8::Object> holder = info.Holder(); |
| 1889 ExceptionState exceptionState(ExceptionState::SetterContext, "stringOrString
SequenceAttribute", "TestObject", holder, info.GetIsolate()); | 1886 ExceptionState exceptionState(ExceptionState::SetterContext, "stringOrString
SequenceAttribute", "TestObject", holder, info.GetIsolate()); |
| 1890 StringOrStringSequence cppValue; | |
| 1891 TestObject* impl = V8TestObject::toImpl(holder); | 1887 TestObject* impl = V8TestObject::toImpl(holder); |
| 1892 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8StringOrStringSequence::toImpl(in
fo.GetIsolate(), v8Value, cppValue, exceptionState), exceptionState); | 1888 TONATIVE_DECLARE(StringOrStringSequence, cppValue, V8StringOrStringSequence:
:toImpl(info.GetIsolate(), v8Value, cppValue, exceptionState), return exceptionS
tate.throwException()); |
| 1893 impl->setStringOrStringSequenceAttribute(cppValue); | 1889 impl->setStringOrStringSequenceAttribute(cppValue); |
| 1894 } | 1890 } |
| 1895 | 1891 |
| 1896 static void stringOrStringSequenceAttributeAttributeSetterCallback(v8::Local<v8:
:String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in
fo) | 1892 static void stringOrStringSequenceAttributeAttributeSetterCallback(v8::Local<v8:
:String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in
fo) |
| 1897 { | 1893 { |
| 1898 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1894 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 1899 TestObjectV8Internal::stringOrStringSequenceAttributeAttributeSetter(v8Value
, info); | 1895 TestObjectV8Internal::stringOrStringSequenceAttributeAttributeSetter(v8Value
, info); |
| 1900 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1896 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 1901 } | 1897 } |
| 1902 | 1898 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 1913 { | 1909 { |
| 1914 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1910 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 1915 TestObjectV8Internal::testEnumOrDoubleAttributeAttributeGetter(info); | 1911 TestObjectV8Internal::testEnumOrDoubleAttributeAttributeGetter(info); |
| 1916 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1912 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 1917 } | 1913 } |
| 1918 | 1914 |
| 1919 static void testEnumOrDoubleAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::PropertyCallbackInfo<void>& info) | 1915 static void testEnumOrDoubleAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::PropertyCallbackInfo<void>& info) |
| 1920 { | 1916 { |
| 1921 v8::Local<v8::Object> holder = info.Holder(); | 1917 v8::Local<v8::Object> holder = info.Holder(); |
| 1922 ExceptionState exceptionState(ExceptionState::SetterContext, "testEnumOrDoub
leAttribute", "TestObject", holder, info.GetIsolate()); | 1918 ExceptionState exceptionState(ExceptionState::SetterContext, "testEnumOrDoub
leAttribute", "TestObject", holder, info.GetIsolate()); |
| 1923 TestEnumOrDouble cppValue; | |
| 1924 TestObject* impl = V8TestObject::toImpl(holder); | 1919 TestObject* impl = V8TestObject::toImpl(holder); |
| 1925 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8TestEnumOrDouble::toImpl(info.Get
Isolate(), v8Value, cppValue, exceptionState), exceptionState); | 1920 TONATIVE_DECLARE(TestEnumOrDouble, cppValue, V8TestEnumOrDouble::toImpl(info
.GetIsolate(), v8Value, cppValue, exceptionState), return exceptionState.throwEx
ception()); |
| 1926 impl->setTestEnumOrDoubleAttribute(cppValue); | 1921 impl->setTestEnumOrDoubleAttribute(cppValue); |
| 1927 } | 1922 } |
| 1928 | 1923 |
| 1929 static void testEnumOrDoubleAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1924 static void testEnumOrDoubleAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 1930 { | 1925 { |
| 1931 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1926 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 1932 TestObjectV8Internal::testEnumOrDoubleAttributeAttributeSetter(v8Value, info
); | 1927 TestObjectV8Internal::testEnumOrDoubleAttributeAttributeSetter(v8Value, info
); |
| 1933 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1928 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 1934 } | 1929 } |
| 1935 | 1930 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 1946 { | 1941 { |
| 1947 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1942 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 1948 TestObjectV8Internal::unrestrictedDoubleOrStringAttributeAttributeGetter(inf
o); | 1943 TestObjectV8Internal::unrestrictedDoubleOrStringAttributeAttributeGetter(inf
o); |
| 1949 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1944 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 1950 } | 1945 } |
| 1951 | 1946 |
| 1952 static void unrestrictedDoubleOrStringAttributeAttributeSetter(v8::Local<v8::Val
ue> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1947 static void unrestrictedDoubleOrStringAttributeAttributeSetter(v8::Local<v8::Val
ue> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 1953 { | 1948 { |
| 1954 v8::Local<v8::Object> holder = info.Holder(); | 1949 v8::Local<v8::Object> holder = info.Holder(); |
| 1955 ExceptionState exceptionState(ExceptionState::SetterContext, "unrestrictedDo
ubleOrStringAttribute", "TestObject", holder, info.GetIsolate()); | 1950 ExceptionState exceptionState(ExceptionState::SetterContext, "unrestrictedDo
ubleOrStringAttribute", "TestObject", holder, info.GetIsolate()); |
| 1956 UnrestrictedDoubleOrString cppValue; | |
| 1957 TestObject* impl = V8TestObject::toImpl(holder); | 1951 TestObject* impl = V8TestObject::toImpl(holder); |
| 1958 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8UnrestrictedDoubleOrString::toImp
l(info.GetIsolate(), v8Value, cppValue, exceptionState), exceptionState); | 1952 TONATIVE_DECLARE(UnrestrictedDoubleOrString, cppValue, V8UnrestrictedDoubleO
rString::toImpl(info.GetIsolate(), v8Value, cppValue, exceptionState), return ex
ceptionState.throwException()); |
| 1959 impl->setUnrestrictedDoubleOrStringAttribute(cppValue); | 1953 impl->setUnrestrictedDoubleOrStringAttribute(cppValue); |
| 1960 } | 1954 } |
| 1961 | 1955 |
| 1962 static void unrestrictedDoubleOrStringAttributeAttributeSetterCallback(v8::Local
<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>
& info) | 1956 static void unrestrictedDoubleOrStringAttributeAttributeSetterCallback(v8::Local
<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>
& info) |
| 1963 { | 1957 { |
| 1964 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1958 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 1965 TestObjectV8Internal::unrestrictedDoubleOrStringAttributeAttributeSetter(v8V
alue, info); | 1959 TestObjectV8Internal::unrestrictedDoubleOrStringAttributeAttributeSetter(v8V
alue, info); |
| 1966 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1960 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 1967 } | 1961 } |
| 1968 | 1962 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 1982 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce
ssForAllWorldsLongAttribute"); | 1976 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce
ssForAllWorldsLongAttribute"); |
| 1983 TestObjectV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttribut
eGetter(info); | 1977 TestObjectV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttribut
eGetter(info); |
| 1984 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1978 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 1985 } | 1979 } |
| 1986 | 1980 |
| 1987 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetter(v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1981 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetter(v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 1988 { | 1982 { |
| 1989 v8::Local<v8::Object> holder = info.Holder(); | 1983 v8::Local<v8::Object> holder = info.Holder(); |
| 1990 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); | 1984 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); |
| 1991 TestObject* impl = V8TestObject::toImpl(holder); | 1985 TestObject* impl = V8TestObject::toImpl(holder); |
| 1992 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 1986 TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value,
exceptionState), exceptionState), return); |
| 1993 impl->setActivityLoggingAccessForAllWorldsLongAttribute(cppValue); | 1987 impl->setActivityLoggingAccessForAllWorldsLongAttribute(cppValue); |
| 1994 } | 1988 } |
| 1995 | 1989 |
| 1996 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetterCallbac
k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac
kInfo<void>& info) | 1990 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetterCallbac
k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac
kInfo<void>& info) |
| 1997 { | 1991 { |
| 1998 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1992 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 1999 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); | 1993 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); |
| 2000 V8PerContextData* contextData = scriptState->perContextData(); | 1994 V8PerContextData* contextData = scriptState->perContextData(); |
| 2001 if (contextData && contextData->activityLogger()) { | 1995 if (contextData && contextData->activityLogger()) { |
| 2002 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce
ssForAllWorldsLongAttribute", v8Value); | 1996 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce
ssForAllWorldsLongAttribute", v8Value); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 2021 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett
erForAllWorldsLongAttribute"); | 2015 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett
erForAllWorldsLongAttribute"); |
| 2022 TestObjectV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttribut
eGetter(info); | 2016 TestObjectV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttribut
eGetter(info); |
| 2023 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2017 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 2024 } | 2018 } |
| 2025 | 2019 |
| 2026 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetter(v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2020 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetter(v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 2027 { | 2021 { |
| 2028 v8::Local<v8::Object> holder = info.Holder(); | 2022 v8::Local<v8::Object> holder = info.Holder(); |
| 2029 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); | 2023 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); |
| 2030 TestObject* impl = V8TestObject::toImpl(holder); | 2024 TestObject* impl = V8TestObject::toImpl(holder); |
| 2031 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 2025 TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value,
exceptionState), exceptionState), return); |
| 2032 impl->setActivityLoggingGetterForAllWorldsLongAttribute(cppValue); | 2026 impl->setActivityLoggingGetterForAllWorldsLongAttribute(cppValue); |
| 2033 } | 2027 } |
| 2034 | 2028 |
| 2035 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetterCallbac
k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac
kInfo<void>& info) | 2029 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetterCallbac
k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac
kInfo<void>& info) |
| 2036 { | 2030 { |
| 2037 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2031 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 2038 TestObjectV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttribut
eSetter(v8Value, info); | 2032 TestObjectV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttribut
eSetter(v8Value, info); |
| 2039 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2033 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 2040 } | 2034 } |
| 2041 | 2035 |
| 2042 static void activityLoggingSetterForAllWorldsLongAttributeAttributeGetter(const
v8::PropertyCallbackInfo<v8::Value>& info) | 2036 static void activityLoggingSetterForAllWorldsLongAttributeAttributeGetter(const
v8::PropertyCallbackInfo<v8::Value>& info) |
| 2043 { | 2037 { |
| 2044 v8::Local<v8::Object> holder = info.Holder(); | 2038 v8::Local<v8::Object> holder = info.Holder(); |
| 2045 TestObject* impl = V8TestObject::toImpl(holder); | 2039 TestObject* impl = V8TestObject::toImpl(holder); |
| 2046 v8SetReturnValueInt(info, impl->activityLoggingSetterForAllWorldsLongAttribu
te()); | 2040 v8SetReturnValueInt(info, impl->activityLoggingSetterForAllWorldsLongAttribu
te()); |
| 2047 } | 2041 } |
| 2048 | 2042 |
| 2049 static void activityLoggingSetterForAllWorldsLongAttributeAttributeGetterCallbac
k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2043 static void activityLoggingSetterForAllWorldsLongAttributeAttributeGetterCallbac
k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 2050 { | 2044 { |
| 2051 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 2045 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 2052 TestObjectV8Internal::activityLoggingSetterForAllWorldsLongAttributeAttribut
eGetter(info); | 2046 TestObjectV8Internal::activityLoggingSetterForAllWorldsLongAttributeAttribut
eGetter(info); |
| 2053 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2047 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 2054 } | 2048 } |
| 2055 | 2049 |
| 2056 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetter(v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2050 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetter(v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 2057 { | 2051 { |
| 2058 v8::Local<v8::Object> holder = info.Holder(); | 2052 v8::Local<v8::Object> holder = info.Holder(); |
| 2059 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gSetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); | 2053 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gSetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); |
| 2060 TestObject* impl = V8TestObject::toImpl(holder); | 2054 TestObject* impl = V8TestObject::toImpl(holder); |
| 2061 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 2055 TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value,
exceptionState), exceptionState), return); |
| 2062 impl->setActivityLoggingSetterForAllWorldsLongAttribute(cppValue); | 2056 impl->setActivityLoggingSetterForAllWorldsLongAttribute(cppValue); |
| 2063 } | 2057 } |
| 2064 | 2058 |
| 2065 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetterCallbac
k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac
kInfo<void>& info) | 2059 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetterCallbac
k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac
kInfo<void>& info) |
| 2066 { | 2060 { |
| 2067 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2061 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 2068 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); | 2062 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); |
| 2069 V8PerContextData* contextData = scriptState->perContextData(); | 2063 V8PerContextData* contextData = scriptState->perContextData(); |
| 2070 if (contextData && contextData->activityLogger()) { | 2064 if (contextData && contextData->activityLogger()) { |
| 2071 contextData->activityLogger()->logSetter("TestObject.activityLoggingSett
erForAllWorldsLongAttribute", v8Value); | 2065 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"); | 2130 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 2137 TestObjectV8Internal::cachedArrayAttributeAttributeGetter(info); | 2131 TestObjectV8Internal::cachedArrayAttributeAttributeGetter(info); |
| 2138 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2132 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 2139 } | 2133 } |
| 2140 | 2134 |
| 2141 static void cachedArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::PropertyCallbackInfo<void>& info) | 2135 static void cachedArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::PropertyCallbackInfo<void>& info) |
| 2142 { | 2136 { |
| 2143 v8::Local<v8::Object> holder = info.Holder(); | 2137 v8::Local<v8::Object> holder = info.Holder(); |
| 2144 ExceptionState exceptionState(ExceptionState::SetterContext, "cachedArrayAtt
ribute", "TestObject", holder, info.GetIsolate()); | 2138 ExceptionState exceptionState(ExceptionState::SetterContext, "cachedArrayAtt
ribute", "TestObject", holder, info.GetIsolate()); |
| 2145 TestObject* impl = V8TestObject::toImpl(holder); | 2139 TestObject* impl = V8TestObject::toImpl(holder); |
| 2146 TONATIVE_VOID_EXCEPTIONSTATE(Vector<String>, cppValue, toImplArray<String>(v
8Value, 0, info.GetIsolate(), exceptionState), exceptionState); | 2140 TONATIVE_DECLARE(Vector<String>, cppValue, convertAndThrow(cppValue = toImpl
Array<String>(v8Value, 0, info.GetIsolate(), exceptionState), exceptionState), r
eturn); |
| 2147 impl->setCachedArrayAttribute(cppValue); | 2141 impl->setCachedArrayAttribute(cppValue); |
| 2148 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i
nfo.GetIsolate(), "cachedArrayAttribute")); // Invalidate the cached value. | 2142 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i
nfo.GetIsolate(), "cachedArrayAttribute")); // Invalidate the cached value. |
| 2149 } | 2143 } |
| 2150 | 2144 |
| 2151 static void cachedArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2145 static void cachedArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 2152 { | 2146 { |
| 2153 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2147 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 2154 TestObjectV8Internal::cachedArrayAttributeAttributeSetter(v8Value, info); | 2148 TestObjectV8Internal::cachedArrayAttributeAttributeSetter(v8Value, info); |
| 2155 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2149 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 2156 } | 2150 } |
| (...skipping 19 matching lines...) Expand all Loading... |
| 2176 { | 2170 { |
| 2177 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 2171 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 2178 TestObjectV8Internal::cachedStringOrNoneAttributeAttributeGetter(info); | 2172 TestObjectV8Internal::cachedStringOrNoneAttributeAttributeGetter(info); |
| 2179 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2173 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 2180 } | 2174 } |
| 2181 | 2175 |
| 2182 static void cachedStringOrNoneAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) | 2176 static void cachedStringOrNoneAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) |
| 2183 { | 2177 { |
| 2184 v8::Local<v8::Object> holder = info.Holder(); | 2178 v8::Local<v8::Object> holder = info.Holder(); |
| 2185 TestObject* impl = V8TestObject::toImpl(holder); | 2179 TestObject* impl = V8TestObject::toImpl(holder); |
| 2186 TOSTRING_VOID(V8StringResource<TreatNullAsNullString>, cppValue, v8Value); | 2180 TONATIVE_DECLARE(V8StringResource<TreatNullAsNullString>, cppValue, (cppValu
e = v8Value).prepare(), return); |
| 2187 impl->setCachedStringOrNoneAttribute(cppValue); | 2181 impl->setCachedStringOrNoneAttribute(cppValue); |
| 2188 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i
nfo.GetIsolate(), "cachedStringOrNoneAttribute")); // Invalidate the cached valu
e. | 2182 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i
nfo.GetIsolate(), "cachedStringOrNoneAttribute")); // Invalidate the cached valu
e. |
| 2189 } | 2183 } |
| 2190 | 2184 |
| 2191 static void cachedStringOrNoneAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2185 static void cachedStringOrNoneAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 2192 { | 2186 { |
| 2193 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2187 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 2194 TestObjectV8Internal::cachedStringOrNoneAttributeAttributeSetter(v8Value, in
fo); | 2188 TestObjectV8Internal::cachedStringOrNoneAttributeAttributeSetter(v8Value, in
fo); |
| 2195 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2189 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 2196 } | 2190 } |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2325 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2319 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 2326 } | 2320 } |
| 2327 #endif // ENABLE(CONDITION) | 2321 #endif // ENABLE(CONDITION) |
| 2328 | 2322 |
| 2329 #if ENABLE(CONDITION) | 2323 #if ENABLE(CONDITION) |
| 2330 static void conditionalLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value
, const v8::PropertyCallbackInfo<void>& info) | 2324 static void conditionalLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value
, const v8::PropertyCallbackInfo<void>& info) |
| 2331 { | 2325 { |
| 2332 v8::Local<v8::Object> holder = info.Holder(); | 2326 v8::Local<v8::Object> holder = info.Holder(); |
| 2333 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalLon
gAttribute", "TestObject", holder, info.GetIsolate()); | 2327 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalLon
gAttribute", "TestObject", holder, info.GetIsolate()); |
| 2334 TestObject* impl = V8TestObject::toImpl(holder); | 2328 TestObject* impl = V8TestObject::toImpl(holder); |
| 2335 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 2329 TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value,
exceptionState), exceptionState), return); |
| 2336 impl->setConditionalLongAttribute(cppValue); | 2330 impl->setConditionalLongAttribute(cppValue); |
| 2337 } | 2331 } |
| 2338 #endif // ENABLE(CONDITION) | 2332 #endif // ENABLE(CONDITION) |
| 2339 | 2333 |
| 2340 #if ENABLE(CONDITION) | 2334 #if ENABLE(CONDITION) |
| 2341 static void conditionalLongAttributeAttributeSetterCallback(v8::Local<v8::String
>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2335 static void conditionalLongAttributeAttributeSetterCallback(v8::Local<v8::String
>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 2342 { | 2336 { |
| 2343 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2337 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 2344 TestObjectV8Internal::conditionalLongAttributeAttributeSetter(v8Value, info)
; | 2338 TestObjectV8Internal::conditionalLongAttributeAttributeSetter(v8Value, info)
; |
| 2345 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2339 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 2365 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 2359 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 2366 V8TestObject::customGetterLongAttributeAttributeGetterCustom(info); | 2360 V8TestObject::customGetterLongAttributeAttributeGetterCustom(info); |
| 2367 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2361 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 2368 } | 2362 } |
| 2369 | 2363 |
| 2370 static void customGetterLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::PropertyCallbackInfo<void>& info) | 2364 static void customGetterLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::PropertyCallbackInfo<void>& info) |
| 2371 { | 2365 { |
| 2372 v8::Local<v8::Object> holder = info.Holder(); | 2366 v8::Local<v8::Object> holder = info.Holder(); |
| 2373 ExceptionState exceptionState(ExceptionState::SetterContext, "customGetterLo
ngAttribute", "TestObject", holder, info.GetIsolate()); | 2367 ExceptionState exceptionState(ExceptionState::SetterContext, "customGetterLo
ngAttribute", "TestObject", holder, info.GetIsolate()); |
| 2374 TestObject* impl = V8TestObject::toImpl(holder); | 2368 TestObject* impl = V8TestObject::toImpl(holder); |
| 2375 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 2369 TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value,
exceptionState), exceptionState), return); |
| 2376 impl->setCustomGetterLongAttribute(cppValue); | 2370 impl->setCustomGetterLongAttribute(cppValue); |
| 2377 } | 2371 } |
| 2378 | 2372 |
| 2379 static void customGetterLongAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2373 static void customGetterLongAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 2380 { | 2374 { |
| 2381 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2375 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 2382 TestObjectV8Internal::customGetterLongAttributeAttributeSetter(v8Value, info
); | 2376 TestObjectV8Internal::customGetterLongAttributeAttributeSetter(v8Value, info
); |
| 2383 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2377 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 2384 } | 2378 } |
| 2385 | 2379 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2456 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe
cutionContext(info.GetIsolate()), UseCounter::LongAttribute); | 2450 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe
cutionContext(info.GetIsolate()), UseCounter::LongAttribute); |
| 2457 TestObjectV8Internal::deprecatedLongAttributeAttributeGetter(info); | 2451 TestObjectV8Internal::deprecatedLongAttributeAttributeGetter(info); |
| 2458 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2452 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 2459 } | 2453 } |
| 2460 | 2454 |
| 2461 static void deprecatedLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) | 2455 static void deprecatedLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) |
| 2462 { | 2456 { |
| 2463 v8::Local<v8::Object> holder = info.Holder(); | 2457 v8::Local<v8::Object> holder = info.Holder(); |
| 2464 ExceptionState exceptionState(ExceptionState::SetterContext, "deprecatedLong
Attribute", "TestObject", holder, info.GetIsolate()); | 2458 ExceptionState exceptionState(ExceptionState::SetterContext, "deprecatedLong
Attribute", "TestObject", holder, info.GetIsolate()); |
| 2465 TestObject* impl = V8TestObject::toImpl(holder); | 2459 TestObject* impl = V8TestObject::toImpl(holder); |
| 2466 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 2460 TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value,
exceptionState), exceptionState), return); |
| 2467 impl->setDeprecatedLongAttribute(cppValue); | 2461 impl->setDeprecatedLongAttribute(cppValue); |
| 2468 } | 2462 } |
| 2469 | 2463 |
| 2470 static void deprecatedLongAttributeAttributeSetterCallback(v8::Local<v8::String>
, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2464 static void deprecatedLongAttributeAttributeSetterCallback(v8::Local<v8::String>
, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 2471 { | 2465 { |
| 2472 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2466 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 2473 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe
cutionContext(info.GetIsolate()), UseCounter::LongAttribute); | 2467 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe
cutionContext(info.GetIsolate()), UseCounter::LongAttribute); |
| 2474 TestObjectV8Internal::deprecatedLongAttributeAttributeSetter(v8Value, info); | 2468 TestObjectV8Internal::deprecatedLongAttributeAttributeSetter(v8Value, info); |
| 2475 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2469 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 2476 } | 2470 } |
| (...skipping 10 matching lines...) Expand all Loading... |
| 2487 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 2481 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 2488 TestObjectV8Internal::enforceRangeLongAttributeAttributeGetter(info); | 2482 TestObjectV8Internal::enforceRangeLongAttributeAttributeGetter(info); |
| 2489 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2483 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 2490 } | 2484 } |
| 2491 | 2485 |
| 2492 static void enforceRangeLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::PropertyCallbackInfo<void>& info) | 2486 static void enforceRangeLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::PropertyCallbackInfo<void>& info) |
| 2493 { | 2487 { |
| 2494 v8::Local<v8::Object> holder = info.Holder(); | 2488 v8::Local<v8::Object> holder = info.Holder(); |
| 2495 ExceptionState exceptionState(ExceptionState::SetterContext, "enforceRangeLo
ngAttribute", "TestObject", holder, info.GetIsolate()); | 2489 ExceptionState exceptionState(ExceptionState::SetterContext, "enforceRangeLo
ngAttribute", "TestObject", holder, info.GetIsolate()); |
| 2496 TestObject* impl = V8TestObject::toImpl(holder); | 2490 TestObject* impl = V8TestObject::toImpl(holder); |
| 2497 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, EnforceRange, e
xceptionState), exceptionState); | 2491 TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value,
EnforceRange, exceptionState), exceptionState), return); |
| 2498 impl->setEnforceRangeLongAttribute(cppValue); | 2492 impl->setEnforceRangeLongAttribute(cppValue); |
| 2499 } | 2493 } |
| 2500 | 2494 |
| 2501 static void enforceRangeLongAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2495 static void enforceRangeLongAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 2502 { | 2496 { |
| 2503 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2497 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 2504 TestObjectV8Internal::enforceRangeLongAttributeAttributeSetter(v8Value, info
); | 2498 TestObjectV8Internal::enforceRangeLongAttributeAttributeSetter(v8Value, info
); |
| 2505 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2499 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 2506 } | 2500 } |
| 2507 | 2501 |
| 2508 static void exposeJSAccessorsLongAttributeAttributeGetter(const v8::FunctionCall
backInfo<v8::Value>& info) | 2502 static void exposeJSAccessorsLongAttributeAttributeGetter(const v8::FunctionCall
backInfo<v8::Value>& info) |
| 2509 { | 2503 { |
| 2510 v8::Local<v8::Object> holder = info.Holder(); | 2504 v8::Local<v8::Object> holder = info.Holder(); |
| 2511 TestObject* impl = V8TestObject::toImpl(holder); | 2505 TestObject* impl = V8TestObject::toImpl(holder); |
| 2512 v8SetReturnValueInt(info, impl->exposeJSAccessorsLongAttribute()); | 2506 v8SetReturnValueInt(info, impl->exposeJSAccessorsLongAttribute()); |
| 2513 } | 2507 } |
| 2514 | 2508 |
| 2515 static void exposeJSAccessorsLongAttributeAttributeGetterCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) | 2509 static void exposeJSAccessorsLongAttributeAttributeGetterCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
| 2516 { | 2510 { |
| 2517 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 2511 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 2518 TestObjectV8Internal::exposeJSAccessorsLongAttributeAttributeGetter(info); | 2512 TestObjectV8Internal::exposeJSAccessorsLongAttributeAttributeGetter(info); |
| 2519 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2513 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 2520 } | 2514 } |
| 2521 | 2515 |
| 2522 static void exposeJSAccessorsLongAttributeAttributeSetter(v8::Local<v8::Value> v
8Value, const v8::FunctionCallbackInfo<v8::Value>& info) | 2516 static void exposeJSAccessorsLongAttributeAttributeSetter(v8::Local<v8::Value> v
8Value, const v8::FunctionCallbackInfo<v8::Value>& info) |
| 2523 { | 2517 { |
| 2524 v8::Local<v8::Object> holder = info.Holder(); | 2518 v8::Local<v8::Object> holder = info.Holder(); |
| 2525 ExceptionState exceptionState(ExceptionState::SetterContext, "exposeJSAccess
orsLongAttribute", "TestObject", holder, info.GetIsolate()); | 2519 ExceptionState exceptionState(ExceptionState::SetterContext, "exposeJSAccess
orsLongAttribute", "TestObject", holder, info.GetIsolate()); |
| 2526 TestObject* impl = V8TestObject::toImpl(holder); | 2520 TestObject* impl = V8TestObject::toImpl(holder); |
| 2527 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 2521 TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value,
exceptionState), exceptionState), return); |
| 2528 impl->setExposeJSAccessorsLongAttribute(cppValue); | 2522 impl->setExposeJSAccessorsLongAttribute(cppValue); |
| 2529 } | 2523 } |
| 2530 | 2524 |
| 2531 static void exposeJSAccessorsLongAttributeAttributeSetterCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) | 2525 static void exposeJSAccessorsLongAttributeAttributeSetterCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
| 2532 { | 2526 { |
| 2533 v8::Local<v8::Value> v8Value = info[0]; | 2527 v8::Local<v8::Value> v8Value = info[0]; |
| 2534 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2528 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 2535 TestObjectV8Internal::exposeJSAccessorsLongAttributeAttributeSetter(v8Value,
info); | 2529 TestObjectV8Internal::exposeJSAccessorsLongAttributeAttributeSetter(v8Value,
info); |
| 2536 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2530 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 2537 } | 2531 } |
| (...skipping 10 matching lines...) Expand all Loading... |
| 2548 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 2542 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 2549 TestObjectV8Internal::implementedAsLongAttributeAttributeGetter(info); | 2543 TestObjectV8Internal::implementedAsLongAttributeAttributeGetter(info); |
| 2550 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2544 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 2551 } | 2545 } |
| 2552 | 2546 |
| 2553 static void implementedAsLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val
ue, const v8::PropertyCallbackInfo<void>& info) | 2547 static void implementedAsLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val
ue, const v8::PropertyCallbackInfo<void>& info) |
| 2554 { | 2548 { |
| 2555 v8::Local<v8::Object> holder = info.Holder(); | 2549 v8::Local<v8::Object> holder = info.Holder(); |
| 2556 ExceptionState exceptionState(ExceptionState::SetterContext, "implementedAsL
ongAttribute", "TestObject", holder, info.GetIsolate()); | 2550 ExceptionState exceptionState(ExceptionState::SetterContext, "implementedAsL
ongAttribute", "TestObject", holder, info.GetIsolate()); |
| 2557 TestObject* impl = V8TestObject::toImpl(holder); | 2551 TestObject* impl = V8TestObject::toImpl(holder); |
| 2558 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 2552 TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value,
exceptionState), exceptionState), return); |
| 2559 impl->setImplementedAsName(cppValue); | 2553 impl->setImplementedAsName(cppValue); |
| 2560 } | 2554 } |
| 2561 | 2555 |
| 2562 static void implementedAsLongAttributeAttributeSetterCallback(v8::Local<v8::Stri
ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2556 static void implementedAsLongAttributeAttributeSetterCallback(v8::Local<v8::Stri
ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 2563 { | 2557 { |
| 2564 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2558 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 2565 TestObjectV8Internal::implementedAsLongAttributeAttributeSetter(v8Value, inf
o); | 2559 TestObjectV8Internal::implementedAsLongAttributeAttributeSetter(v8Value, inf
o); |
| 2566 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2560 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 2567 } | 2561 } |
| 2568 | 2562 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 2585 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 2579 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 2586 V8TestObject::customGetterImplementedAsLongAttributeAttributeGetterCustom(in
fo); | 2580 V8TestObject::customGetterImplementedAsLongAttributeAttributeGetterCustom(in
fo); |
| 2587 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2581 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 2588 } | 2582 } |
| 2589 | 2583 |
| 2590 static void customGetterImplementedAsLongAttributeAttributeSetter(v8::Local<v8::
Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2584 static void customGetterImplementedAsLongAttributeAttributeSetter(v8::Local<v8::
Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 2591 { | 2585 { |
| 2592 v8::Local<v8::Object> holder = info.Holder(); | 2586 v8::Local<v8::Object> holder = info.Holder(); |
| 2593 ExceptionState exceptionState(ExceptionState::SetterContext, "customGetterIm
plementedAsLongAttribute", "TestObject", holder, info.GetIsolate()); | 2587 ExceptionState exceptionState(ExceptionState::SetterContext, "customGetterIm
plementedAsLongAttribute", "TestObject", holder, info.GetIsolate()); |
| 2594 TestObject* impl = V8TestObject::toImpl(holder); | 2588 TestObject* impl = V8TestObject::toImpl(holder); |
| 2595 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 2589 TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value,
exceptionState), exceptionState), return); |
| 2596 impl->setImplementedAsNameWithCustomGetter(cppValue); | 2590 impl->setImplementedAsNameWithCustomGetter(cppValue); |
| 2597 } | 2591 } |
| 2598 | 2592 |
| 2599 static void customGetterImplementedAsLongAttributeAttributeSetterCallback(v8::Lo
cal<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<vo
id>& info) | 2593 static void customGetterImplementedAsLongAttributeAttributeSetterCallback(v8::Lo
cal<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<vo
id>& info) |
| 2600 { | 2594 { |
| 2601 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2595 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 2602 TestObjectV8Internal::customGetterImplementedAsLongAttributeAttributeSetter(
v8Value, info); | 2596 TestObjectV8Internal::customGetterImplementedAsLongAttributeAttributeSetter(
v8Value, info); |
| 2603 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2597 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 2604 } | 2598 } |
| 2605 | 2599 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2637 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte
xt(info.GetIsolate()), UseCounter::TestFeature); | 2631 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte
xt(info.GetIsolate()), UseCounter::TestFeature); |
| 2638 TestObjectV8Internal::measureAsLongAttributeAttributeGetter(info); | 2632 TestObjectV8Internal::measureAsLongAttributeAttributeGetter(info); |
| 2639 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2633 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 2640 } | 2634 } |
| 2641 | 2635 |
| 2642 static void measureAsLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) | 2636 static void measureAsLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) |
| 2643 { | 2637 { |
| 2644 v8::Local<v8::Object> holder = info.Holder(); | 2638 v8::Local<v8::Object> holder = info.Holder(); |
| 2645 ExceptionState exceptionState(ExceptionState::SetterContext, "measureAsLongA
ttribute", "TestObject", holder, info.GetIsolate()); | 2639 ExceptionState exceptionState(ExceptionState::SetterContext, "measureAsLongA
ttribute", "TestObject", holder, info.GetIsolate()); |
| 2646 TestObject* impl = V8TestObject::toImpl(holder); | 2640 TestObject* impl = V8TestObject::toImpl(holder); |
| 2647 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 2641 TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value,
exceptionState), exceptionState), return); |
| 2648 impl->setMeasureAsLongAttribute(cppValue); | 2642 impl->setMeasureAsLongAttribute(cppValue); |
| 2649 } | 2643 } |
| 2650 | 2644 |
| 2651 static void measureAsLongAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2645 static void measureAsLongAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 2652 { | 2646 { |
| 2653 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2647 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 2654 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte
xt(info.GetIsolate()), UseCounter::TestFeature); | 2648 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte
xt(info.GetIsolate()), UseCounter::TestFeature); |
| 2655 TestObjectV8Internal::measureAsLongAttributeAttributeSetter(v8Value, info); | 2649 TestObjectV8Internal::measureAsLongAttributeAttributeSetter(v8Value, info); |
| 2656 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2650 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 2657 } | 2651 } |
| (...skipping 10 matching lines...) Expand all Loading... |
| 2668 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 2662 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 2669 TestObjectV8Internal::notEnumerableLongAttributeAttributeGetter(info); | 2663 TestObjectV8Internal::notEnumerableLongAttributeAttributeGetter(info); |
| 2670 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2664 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 2671 } | 2665 } |
| 2672 | 2666 |
| 2673 static void notEnumerableLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val
ue, const v8::PropertyCallbackInfo<void>& info) | 2667 static void notEnumerableLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val
ue, const v8::PropertyCallbackInfo<void>& info) |
| 2674 { | 2668 { |
| 2675 v8::Local<v8::Object> holder = info.Holder(); | 2669 v8::Local<v8::Object> holder = info.Holder(); |
| 2676 ExceptionState exceptionState(ExceptionState::SetterContext, "notEnumerableL
ongAttribute", "TestObject", holder, info.GetIsolate()); | 2670 ExceptionState exceptionState(ExceptionState::SetterContext, "notEnumerableL
ongAttribute", "TestObject", holder, info.GetIsolate()); |
| 2677 TestObject* impl = V8TestObject::toImpl(holder); | 2671 TestObject* impl = V8TestObject::toImpl(holder); |
| 2678 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 2672 TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value,
exceptionState), exceptionState), return); |
| 2679 impl->setNotEnumerableLongAttribute(cppValue); | 2673 impl->setNotEnumerableLongAttribute(cppValue); |
| 2680 } | 2674 } |
| 2681 | 2675 |
| 2682 static void notEnumerableLongAttributeAttributeSetterCallback(v8::Local<v8::Stri
ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2676 static void notEnumerableLongAttributeAttributeSetterCallback(v8::Local<v8::Stri
ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 2683 { | 2677 { |
| 2684 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2678 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 2685 TestObjectV8Internal::notEnumerableLongAttributeAttributeSetter(v8Value, inf
o); | 2679 TestObjectV8Internal::notEnumerableLongAttributeAttributeSetter(v8Value, inf
o); |
| 2686 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2680 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 2687 } | 2681 } |
| 2688 | 2682 |
| 2689 static void perContextEnabledLongAttributeAttributeGetter(const v8::PropertyCall
backInfo<v8::Value>& info) | 2683 static void perContextEnabledLongAttributeAttributeGetter(const v8::PropertyCall
backInfo<v8::Value>& info) |
| 2690 { | 2684 { |
| 2691 v8::Local<v8::Object> holder = info.Holder(); | 2685 v8::Local<v8::Object> holder = info.Holder(); |
| 2692 TestObject* impl = V8TestObject::toImpl(holder); | 2686 TestObject* impl = V8TestObject::toImpl(holder); |
| 2693 v8SetReturnValueInt(info, impl->perContextEnabledLongAttribute()); | 2687 v8SetReturnValueInt(info, impl->perContextEnabledLongAttribute()); |
| 2694 } | 2688 } |
| 2695 | 2689 |
| 2696 static void perContextEnabledLongAttributeAttributeGetterCallback(v8::Local<v8::
String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2690 static void perContextEnabledLongAttributeAttributeGetterCallback(v8::Local<v8::
String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 2697 { | 2691 { |
| 2698 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 2692 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 2699 TestObjectV8Internal::perContextEnabledLongAttributeAttributeGetter(info); | 2693 TestObjectV8Internal::perContextEnabledLongAttributeAttributeGetter(info); |
| 2700 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2694 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 2701 } | 2695 } |
| 2702 | 2696 |
| 2703 static void perContextEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> v
8Value, const v8::PropertyCallbackInfo<void>& info) | 2697 static void perContextEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> v
8Value, const v8::PropertyCallbackInfo<void>& info) |
| 2704 { | 2698 { |
| 2705 v8::Local<v8::Object> holder = info.Holder(); | 2699 v8::Local<v8::Object> holder = info.Holder(); |
| 2706 ExceptionState exceptionState(ExceptionState::SetterContext, "perContextEnab
ledLongAttribute", "TestObject", holder, info.GetIsolate()); | 2700 ExceptionState exceptionState(ExceptionState::SetterContext, "perContextEnab
ledLongAttribute", "TestObject", holder, info.GetIsolate()); |
| 2707 TestObject* impl = V8TestObject::toImpl(holder); | 2701 TestObject* impl = V8TestObject::toImpl(holder); |
| 2708 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 2702 TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value,
exceptionState), exceptionState), return); |
| 2709 impl->setPerContextEnabledLongAttribute(cppValue); | 2703 impl->setPerContextEnabledLongAttribute(cppValue); |
| 2710 } | 2704 } |
| 2711 | 2705 |
| 2712 static void perContextEnabledLongAttributeAttributeSetterCallback(v8::Local<v8::
String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& inf
o) | 2706 static void perContextEnabledLongAttributeAttributeSetterCallback(v8::Local<v8::
String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& inf
o) |
| 2713 { | 2707 { |
| 2714 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2708 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 2715 TestObjectV8Internal::perContextEnabledLongAttributeAttributeSetter(v8Value,
info); | 2709 TestObjectV8Internal::perContextEnabledLongAttributeAttributeSetter(v8Value,
info); |
| 2716 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2710 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 2717 } | 2711 } |
| 2718 | 2712 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2774 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce
ssPerWorldBindingsLongAttribute"); | 2768 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce
ssPerWorldBindingsLongAttribute"); |
| 2775 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr
ibuteGetter(info); | 2769 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr
ibuteGetter(info); |
| 2776 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2770 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 2777 } | 2771 } |
| 2778 | 2772 |
| 2779 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetter(v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2773 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetter(v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 2780 { | 2774 { |
| 2781 v8::Local<v8::Object> holder = info.Holder(); | 2775 v8::Local<v8::Object> holder = info.Holder(); |
| 2782 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); | 2776 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); |
| 2783 TestObject* impl = V8TestObject::toImpl(holder); | 2777 TestObject* impl = V8TestObject::toImpl(holder); |
| 2784 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 2778 TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value,
exceptionState), exceptionState), return); |
| 2785 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); | 2779 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); |
| 2786 } | 2780 } |
| 2787 | 2781 |
| 2788 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal
lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal
lbackInfo<void>& info) | 2782 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal
lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal
lbackInfo<void>& info) |
| 2789 { | 2783 { |
| 2790 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2784 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 2791 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); | 2785 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); |
| 2792 V8PerContextData* contextData = scriptState->perContextData(); | 2786 V8PerContextData* contextData = scriptState->perContextData(); |
| 2793 if (contextData && contextData->activityLogger()) { | 2787 if (contextData && contextData->activityLogger()) { |
| 2794 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce
ssPerWorldBindingsLongAttribute", v8Value); | 2788 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce
ssPerWorldBindingsLongAttribute", v8Value); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 2813 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce
ssPerWorldBindingsLongAttribute"); | 2807 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce
ssPerWorldBindingsLongAttribute"); |
| 2814 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr
ibuteGetterForMainWorld(info); | 2808 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr
ibuteGetterForMainWorld(info); |
| 2815 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2809 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 2816 } | 2810 } |
| 2817 | 2811 |
| 2818 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterFor
MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in
fo) | 2812 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterFor
MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in
fo) |
| 2819 { | 2813 { |
| 2820 v8::Local<v8::Object> holder = info.Holder(); | 2814 v8::Local<v8::Object> holder = info.Holder(); |
| 2821 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); | 2815 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); |
| 2822 TestObject* impl = V8TestObject::toImpl(holder); | 2816 TestObject* impl = V8TestObject::toImpl(holder); |
| 2823 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 2817 TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value,
exceptionState), exceptionState), return); |
| 2824 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); | 2818 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); |
| 2825 } | 2819 } |
| 2826 | 2820 |
| 2827 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal
lbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) | 2821 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal
lbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) |
| 2828 { | 2822 { |
| 2829 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2823 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 2830 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); | 2824 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); |
| 2831 V8PerContextData* contextData = scriptState->perContextData(); | 2825 V8PerContextData* contextData = scriptState->perContextData(); |
| 2832 if (contextData && contextData->activityLogger()) { | 2826 if (contextData && contextData->activityLogger()) { |
| 2833 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce
ssPerWorldBindingsLongAttribute", v8Value); | 2827 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce
ssPerWorldBindingsLongAttribute", v8Value); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 2852 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce
ssForIsolatedWorldsPerWorldBindingsLongAttribute"); | 2846 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce
ssForIsolatedWorldsPerWorldBindingsLongAttribute"); |
| 2853 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings
LongAttributeAttributeGetter(info); | 2847 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings
LongAttributeAttributeGetter(info); |
| 2854 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2848 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 2855 } | 2849 } |
| 2856 | 2850 |
| 2857 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void
>& info) | 2851 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void
>& info) |
| 2858 { | 2852 { |
| 2859 v8::Local<v8::Object> holder = info.Holder(); | 2853 v8::Local<v8::Object> holder = info.Holder(); |
| 2860 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in
fo.GetIsolate()); | 2854 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in
fo.GetIsolate()); |
| 2861 TestObject* impl = V8TestObject::toImpl(holder); | 2855 TestObject* impl = V8TestObject::toImpl(holder); |
| 2862 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 2856 TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value,
exceptionState), exceptionState), return); |
| 2863 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute
(cppValue); | 2857 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute
(cppValue); |
| 2864 } | 2858 } |
| 2865 | 2859 |
| 2866 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) | 2860 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) |
| 2867 { | 2861 { |
| 2868 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2862 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 2869 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); | 2863 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); |
| 2870 V8PerContextData* contextData = scriptState->perContextData(); | 2864 V8PerContextData* contextData = scriptState->perContextData(); |
| 2871 if (contextData && contextData->activityLogger()) { | 2865 if (contextData && contextData->activityLogger()) { |
| 2872 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce
ssForIsolatedWorldsPerWorldBindingsLongAttribute", v8Value); | 2866 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce
ssForIsolatedWorldsPerWorldBindingsLongAttribute", v8Value); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 2887 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 2881 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 2888 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings
LongAttributeAttributeGetterForMainWorld(info); | 2882 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings
LongAttributeAttributeGetterForMainWorld(info); |
| 2889 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2883 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 2890 } | 2884 } |
| 2891 | 2885 |
| 2892 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterForMainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallb
ackInfo<void>& info) | 2886 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterForMainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallb
ackInfo<void>& info) |
| 2893 { | 2887 { |
| 2894 v8::Local<v8::Object> holder = info.Holder(); | 2888 v8::Local<v8::Object> holder = info.Holder(); |
| 2895 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in
fo.GetIsolate()); | 2889 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in
fo.GetIsolate()); |
| 2896 TestObject* impl = V8TestObject::toImpl(holder); | 2890 TestObject* impl = V8TestObject::toImpl(holder); |
| 2897 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 2891 TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value,
exceptionState), exceptionState), return); |
| 2898 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute
(cppValue); | 2892 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute
(cppValue); |
| 2899 } | 2893 } |
| 2900 | 2894 |
| 2901 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v
8Value, const v8::PropertyCallbackInfo<void>& info) | 2895 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v
8Value, const v8::PropertyCallbackInfo<void>& info) |
| 2902 { | 2896 { |
| 2903 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2897 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 2904 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings
LongAttributeAttributeSetterForMainWorld(v8Value, info); | 2898 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings
LongAttributeAttributeSetterForMainWorld(v8Value, info); |
| 2905 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2899 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 2906 } | 2900 } |
| 2907 | 2901 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 2921 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett
erPerWorldBindingsLongAttribute"); | 2915 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett
erPerWorldBindingsLongAttribute"); |
| 2922 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr
ibuteGetter(info); | 2916 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr
ibuteGetter(info); |
| 2923 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2917 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 2924 } | 2918 } |
| 2925 | 2919 |
| 2926 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetter(v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2920 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetter(v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 2927 { | 2921 { |
| 2928 v8::Local<v8::Object> holder = info.Holder(); | 2922 v8::Local<v8::Object> holder = info.Holder(); |
| 2929 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); | 2923 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); |
| 2930 TestObject* impl = V8TestObject::toImpl(holder); | 2924 TestObject* impl = V8TestObject::toImpl(holder); |
| 2931 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 2925 TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value,
exceptionState), exceptionState), return); |
| 2932 impl->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue); | 2926 impl->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue); |
| 2933 } | 2927 } |
| 2934 | 2928 |
| 2935 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCal
lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal
lbackInfo<void>& info) | 2929 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCal
lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal
lbackInfo<void>& info) |
| 2936 { | 2930 { |
| 2937 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2931 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 2938 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr
ibuteSetter(v8Value, info); | 2932 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr
ibuteSetter(v8Value, info); |
| 2939 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2933 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 2940 } | 2934 } |
| 2941 | 2935 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 2955 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett
erPerWorldBindingsLongAttribute"); | 2949 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett
erPerWorldBindingsLongAttribute"); |
| 2956 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr
ibuteGetterForMainWorld(info); | 2950 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr
ibuteGetterForMainWorld(info); |
| 2957 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2951 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 2958 } | 2952 } |
| 2959 | 2953 |
| 2960 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterFor
MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in
fo) | 2954 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterFor
MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in
fo) |
| 2961 { | 2955 { |
| 2962 v8::Local<v8::Object> holder = info.Holder(); | 2956 v8::Local<v8::Object> holder = info.Holder(); |
| 2963 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); | 2957 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); |
| 2964 TestObject* impl = V8TestObject::toImpl(holder); | 2958 TestObject* impl = V8TestObject::toImpl(holder); |
| 2965 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 2959 TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value,
exceptionState), exceptionState), return); |
| 2966 impl->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue); | 2960 impl->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue); |
| 2967 } | 2961 } |
| 2968 | 2962 |
| 2969 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCal
lbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) | 2963 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCal
lbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) |
| 2970 { | 2964 { |
| 2971 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2965 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 2972 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr
ibuteSetterForMainWorld(v8Value, info); | 2966 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr
ibuteSetterForMainWorld(v8Value, info); |
| 2973 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2967 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 2974 } | 2968 } |
| 2975 | 2969 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 2989 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett
erForIsolatedWorldsPerWorldBindingsLongAttribute"); | 2983 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett
erForIsolatedWorldsPerWorldBindingsLongAttribute"); |
| 2990 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings
LongAttributeAttributeGetter(info); | 2984 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings
LongAttributeAttributeGetter(info); |
| 2991 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2985 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 2992 } | 2986 } |
| 2993 | 2987 |
| 2994 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void
>& info) | 2988 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void
>& info) |
| 2995 { | 2989 { |
| 2996 v8::Local<v8::Object> holder = info.Holder(); | 2990 v8::Local<v8::Object> holder = info.Holder(); |
| 2997 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in
fo.GetIsolate()); | 2991 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in
fo.GetIsolate()); |
| 2998 TestObject* impl = V8TestObject::toImpl(holder); | 2992 TestObject* impl = V8TestObject::toImpl(holder); |
| 2999 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 2993 TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value,
exceptionState), exceptionState), return); |
| 3000 impl->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute
(cppValue); | 2994 impl->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute
(cppValue); |
| 3001 } | 2995 } |
| 3002 | 2996 |
| 3003 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) | 2997 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) |
| 3004 { | 2998 { |
| 3005 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2999 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 3006 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings
LongAttributeAttributeSetter(v8Value, info); | 3000 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings
LongAttributeAttributeSetter(v8Value, info); |
| 3007 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3001 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 3008 } | 3002 } |
| 3009 | 3003 |
| 3010 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterForMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) | 3004 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterForMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) |
| 3011 { | 3005 { |
| 3012 v8::Local<v8::Object> holder = info.Holder(); | 3006 v8::Local<v8::Object> holder = info.Holder(); |
| 3013 TestObject* impl = V8TestObject::toImpl(holder); | 3007 TestObject* impl = V8TestObject::toImpl(holder); |
| 3014 v8SetReturnValueInt(info, impl->activityLoggingGetterForIsolatedWorldsPerWor
ldBindingsLongAttribute()); | 3008 v8SetReturnValueInt(info, impl->activityLoggingGetterForIsolatedWorldsPerWor
ldBindingsLongAttribute()); |
| 3015 } | 3009 } |
| 3016 | 3010 |
| 3017 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterCallbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCall
backInfo<v8::Value>& info) | 3011 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterCallbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCall
backInfo<v8::Value>& info) |
| 3018 { | 3012 { |
| 3019 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3013 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 3020 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings
LongAttributeAttributeGetterForMainWorld(info); | 3014 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings
LongAttributeAttributeGetterForMainWorld(info); |
| 3021 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3015 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 3022 } | 3016 } |
| 3023 | 3017 |
| 3024 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterForMainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallb
ackInfo<void>& info) | 3018 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterForMainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallb
ackInfo<void>& info) |
| 3025 { | 3019 { |
| 3026 v8::Local<v8::Object> holder = info.Holder(); | 3020 v8::Local<v8::Object> holder = info.Holder(); |
| 3027 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in
fo.GetIsolate()); | 3021 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in
fo.GetIsolate()); |
| 3028 TestObject* impl = V8TestObject::toImpl(holder); | 3022 TestObject* impl = V8TestObject::toImpl(holder); |
| 3029 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 3023 TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value,
exceptionState), exceptionState), return); |
| 3030 impl->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute
(cppValue); | 3024 impl->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute
(cppValue); |
| 3031 } | 3025 } |
| 3032 | 3026 |
| 3033 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v
8Value, const v8::PropertyCallbackInfo<void>& info) | 3027 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v
8Value, const v8::PropertyCallbackInfo<void>& info) |
| 3034 { | 3028 { |
| 3035 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3029 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 3036 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings
LongAttributeAttributeSetterForMainWorld(v8Value, info); | 3030 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings
LongAttributeAttributeSetterForMainWorld(v8Value, info); |
| 3037 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3031 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 3038 } | 3032 } |
| 3039 | 3033 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 3051 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3045 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 3052 } | 3046 } |
| 3053 | 3047 |
| 3054 static void locationAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Prop
ertyCallbackInfo<void>& info) | 3048 static void locationAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Prop
ertyCallbackInfo<void>& info) |
| 3055 { | 3049 { |
| 3056 v8::Local<v8::Object> holder = info.Holder(); | 3050 v8::Local<v8::Object> holder = info.Holder(); |
| 3057 TestObject* proxyImpl = V8TestObject::toImpl(holder); | 3051 TestObject* proxyImpl = V8TestObject::toImpl(holder); |
| 3058 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->location()); | 3052 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->location()); |
| 3059 if (!impl) | 3053 if (!impl) |
| 3060 return; | 3054 return; |
| 3061 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 3055 TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(
), return); |
| 3062 impl->setHref(cppValue); | 3056 impl->setHref(cppValue); |
| 3063 } | 3057 } |
| 3064 | 3058 |
| 3065 static void locationAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8:
:Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3059 static void locationAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8:
:Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 3066 { | 3060 { |
| 3067 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3061 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 3068 TestObjectV8Internal::locationAttributeSetter(v8Value, info); | 3062 TestObjectV8Internal::locationAttributeSetter(v8Value, info); |
| 3069 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3063 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 3070 } | 3064 } |
| 3071 | 3065 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 3084 } | 3078 } |
| 3085 | 3079 |
| 3086 static void locationWithExceptionAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) | 3080 static void locationWithExceptionAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) |
| 3087 { | 3081 { |
| 3088 v8::Local<v8::Object> holder = info.Holder(); | 3082 v8::Local<v8::Object> holder = info.Holder(); |
| 3089 ExceptionState exceptionState(ExceptionState::SetterContext, "locationWithEx
ception", "TestObject", holder, info.GetIsolate()); | 3083 ExceptionState exceptionState(ExceptionState::SetterContext, "locationWithEx
ception", "TestObject", holder, info.GetIsolate()); |
| 3090 TestObject* proxyImpl = V8TestObject::toImpl(holder); | 3084 TestObject* proxyImpl = V8TestObject::toImpl(holder); |
| 3091 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithExcep
tion()); | 3085 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithExcep
tion()); |
| 3092 if (!impl) | 3086 if (!impl) |
| 3093 return; | 3087 return; |
| 3094 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 3088 TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(
), return); |
| 3095 impl->setHrefThrows(cppValue, exceptionState); | 3089 impl->setHrefThrows(cppValue, exceptionState); |
| 3096 exceptionState.throwIfNeeded(); | 3090 exceptionState.throwIfNeeded(); |
| 3097 } | 3091 } |
| 3098 | 3092 |
| 3099 static void locationWithExceptionAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3093 static void locationWithExceptionAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 3100 { | 3094 { |
| 3101 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3095 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 3102 TestObjectV8Internal::locationWithExceptionAttributeSetter(v8Value, info); | 3096 TestObjectV8Internal::locationWithExceptionAttributeSetter(v8Value, info); |
| 3103 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3097 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 3104 } | 3098 } |
| (...skipping 12 matching lines...) Expand all Loading... |
| 3117 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3111 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 3118 } | 3112 } |
| 3119 | 3113 |
| 3120 static void locationWithCallWithAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::PropertyCallbackInfo<void>& info) | 3114 static void locationWithCallWithAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::PropertyCallbackInfo<void>& info) |
| 3121 { | 3115 { |
| 3122 v8::Local<v8::Object> holder = info.Holder(); | 3116 v8::Local<v8::Object> holder = info.Holder(); |
| 3123 TestObject* proxyImpl = V8TestObject::toImpl(holder); | 3117 TestObject* proxyImpl = V8TestObject::toImpl(holder); |
| 3124 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithCallW
ith()); | 3118 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithCallW
ith()); |
| 3125 if (!impl) | 3119 if (!impl) |
| 3126 return; | 3120 return; |
| 3127 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 3121 TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(
), return); |
| 3128 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate
()); | 3122 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate
()); |
| 3129 impl->setHrefCallWith(executionContext, callingDOMWindow(info.GetIsolate()),
enteredDOMWindow(info.GetIsolate()), cppValue); | 3123 impl->setHrefCallWith(executionContext, callingDOMWindow(info.GetIsolate()),
enteredDOMWindow(info.GetIsolate()), cppValue); |
| 3130 } | 3124 } |
| 3131 | 3125 |
| 3132 static void locationWithCallWithAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3126 static void locationWithCallWithAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 3133 { | 3127 { |
| 3134 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3128 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 3135 TestObjectV8Internal::locationWithCallWithAttributeSetter(v8Value, info); | 3129 TestObjectV8Internal::locationWithCallWithAttributeSetter(v8Value, info); |
| 3136 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3130 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 3137 } | 3131 } |
| (...skipping 13 matching lines...) Expand all Loading... |
| 3151 } | 3145 } |
| 3152 | 3146 |
| 3153 static void locationByteStringAttributeSetter(v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) | 3147 static void locationByteStringAttributeSetter(v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) |
| 3154 { | 3148 { |
| 3155 v8::Local<v8::Object> holder = info.Holder(); | 3149 v8::Local<v8::Object> holder = info.Holder(); |
| 3156 ExceptionState exceptionState(ExceptionState::SetterContext, "locationByteSt
ring", "TestObject", holder, info.GetIsolate()); | 3150 ExceptionState exceptionState(ExceptionState::SetterContext, "locationByteSt
ring", "TestObject", holder, info.GetIsolate()); |
| 3157 TestObject* proxyImpl = V8TestObject::toImpl(holder); | 3151 TestObject* proxyImpl = V8TestObject::toImpl(holder); |
| 3158 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationByteStrin
g()); | 3152 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationByteStrin
g()); |
| 3159 if (!impl) | 3153 if (!impl) |
| 3160 return; | 3154 return; |
| 3161 TONATIVE_VOID_EXCEPTIONSTATE(V8StringResource<>, cppValue, toByteString(v8Va
lue, exceptionState), exceptionState); | 3155 TONATIVE_DECLARE(V8StringResource<>, cppValue, convertAndThrow(cppValue = to
ByteString(v8Value, exceptionState), exceptionState), return); |
| 3162 impl->setHrefByteString(cppValue); | 3156 impl->setHrefByteString(cppValue); |
| 3163 } | 3157 } |
| 3164 | 3158 |
| 3165 static void locationByteStringAttributeSetterCallback(v8::Local<v8::String>, v8:
:Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3159 static void locationByteStringAttributeSetterCallback(v8::Local<v8::String>, v8:
:Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 3166 { | 3160 { |
| 3167 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3161 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 3168 TestObjectV8Internal::locationByteStringAttributeSetter(v8Value, info); | 3162 TestObjectV8Internal::locationByteStringAttributeSetter(v8Value, info); |
| 3169 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3163 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 3170 } | 3164 } |
| 3171 | 3165 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 3183 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3177 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 3184 } | 3178 } |
| 3185 | 3179 |
| 3186 static void locationWithPerWorldBindingsAttributeSetter(v8::Local<v8::Value> v8V
alue, const v8::PropertyCallbackInfo<void>& info) | 3180 static void locationWithPerWorldBindingsAttributeSetter(v8::Local<v8::Value> v8V
alue, const v8::PropertyCallbackInfo<void>& info) |
| 3187 { | 3181 { |
| 3188 v8::Local<v8::Object> holder = info.Holder(); | 3182 v8::Local<v8::Object> holder = info.Holder(); |
| 3189 TestObject* proxyImpl = V8TestObject::toImpl(holder); | 3183 TestObject* proxyImpl = V8TestObject::toImpl(holder); |
| 3190 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithPerWo
rldBindings()); | 3184 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithPerWo
rldBindings()); |
| 3191 if (!impl) | 3185 if (!impl) |
| 3192 return; | 3186 return; |
| 3193 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 3187 TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(
), return); |
| 3194 impl->setHref(cppValue); | 3188 impl->setHref(cppValue); |
| 3195 } | 3189 } |
| 3196 | 3190 |
| 3197 static void locationWithPerWorldBindingsAttributeSetterCallback(v8::Local<v8::St
ring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3191 static void locationWithPerWorldBindingsAttributeSetterCallback(v8::Local<v8::St
ring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 3198 { | 3192 { |
| 3199 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3193 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 3200 TestObjectV8Internal::locationWithPerWorldBindingsAttributeSetter(v8Value, i
nfo); | 3194 TestObjectV8Internal::locationWithPerWorldBindingsAttributeSetter(v8Value, i
nfo); |
| 3201 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3195 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 3202 } | 3196 } |
| 3203 | 3197 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 3215 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3209 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 3216 } | 3210 } |
| 3217 | 3211 |
| 3218 static void locationWithPerWorldBindingsAttributeSetterForMainWorld(v8::Local<v8
::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3212 static void locationWithPerWorldBindingsAttributeSetterForMainWorld(v8::Local<v8
::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 3219 { | 3213 { |
| 3220 v8::Local<v8::Object> holder = info.Holder(); | 3214 v8::Local<v8::Object> holder = info.Holder(); |
| 3221 TestObject* proxyImpl = V8TestObject::toImpl(holder); | 3215 TestObject* proxyImpl = V8TestObject::toImpl(holder); |
| 3222 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithPerWo
rldBindings()); | 3216 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithPerWo
rldBindings()); |
| 3223 if (!impl) | 3217 if (!impl) |
| 3224 return; | 3218 return; |
| 3225 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 3219 TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(
), return); |
| 3226 impl->setHref(cppValue); | 3220 impl->setHref(cppValue); |
| 3227 } | 3221 } |
| 3228 | 3222 |
| 3229 static void locationWithPerWorldBindingsAttributeSetterCallbackForMainWorld(v8::
Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<
void>& info) | 3223 static void locationWithPerWorldBindingsAttributeSetterCallbackForMainWorld(v8::
Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<
void>& info) |
| 3230 { | 3224 { |
| 3231 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3225 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 3232 TestObjectV8Internal::locationWithPerWorldBindingsAttributeSetterForMainWorl
d(v8Value, info); | 3226 TestObjectV8Internal::locationWithPerWorldBindingsAttributeSetterForMainWorl
d(v8Value, info); |
| 3233 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3227 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 3234 } | 3228 } |
| 3235 | 3229 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 3247 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3241 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 3248 } | 3242 } |
| 3249 | 3243 |
| 3250 static void locationTypeCheckingInterfaceAttributeSetter(v8::Local<v8::Value> v8
Value, const v8::PropertyCallbackInfo<void>& info) | 3244 static void locationTypeCheckingInterfaceAttributeSetter(v8::Local<v8::Value> v8
Value, const v8::PropertyCallbackInfo<void>& info) |
| 3251 { | 3245 { |
| 3252 v8::Local<v8::Object> holder = info.Holder(); | 3246 v8::Local<v8::Object> holder = info.Holder(); |
| 3253 TestObject* proxyImpl = V8TestObject::toImpl(holder); | 3247 TestObject* proxyImpl = V8TestObject::toImpl(holder); |
| 3254 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationTypeCheck
ingInterface()); | 3248 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationTypeCheck
ingInterface()); |
| 3255 if (!impl) | 3249 if (!impl) |
| 3256 return; | 3250 return; |
| 3257 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 3251 TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(
), return); |
| 3258 impl->setHref(cppValue); | 3252 impl->setHref(cppValue); |
| 3259 } | 3253 } |
| 3260 | 3254 |
| 3261 static void locationTypeCheckingInterfaceAttributeSetterCallback(v8::Local<v8::S
tring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info
) | 3255 static void locationTypeCheckingInterfaceAttributeSetterCallback(v8::Local<v8::S
tring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info
) |
| 3262 { | 3256 { |
| 3263 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3257 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 3264 TestObjectV8Internal::locationTypeCheckingInterfaceAttributeSetter(v8Value,
info); | 3258 TestObjectV8Internal::locationTypeCheckingInterfaceAttributeSetter(v8Value,
info); |
| 3265 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3259 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 3266 } | 3260 } |
| 3267 | 3261 |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3359 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3353 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 3360 TestObjectV8Internal::raisesExceptionLongAttributeAttributeGetter(info); | 3354 TestObjectV8Internal::raisesExceptionLongAttributeAttributeGetter(info); |
| 3361 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3355 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 3362 } | 3356 } |
| 3363 | 3357 |
| 3364 static void raisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Value> v8V
alue, const v8::PropertyCallbackInfo<void>& info) | 3358 static void raisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Value> v8V
alue, const v8::PropertyCallbackInfo<void>& info) |
| 3365 { | 3359 { |
| 3366 v8::Local<v8::Object> holder = info.Holder(); | 3360 v8::Local<v8::Object> holder = info.Holder(); |
| 3367 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio
nLongAttribute", "TestObject", holder, info.GetIsolate()); | 3361 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio
nLongAttribute", "TestObject", holder, info.GetIsolate()); |
| 3368 TestObject* impl = V8TestObject::toImpl(holder); | 3362 TestObject* impl = V8TestObject::toImpl(holder); |
| 3369 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 3363 TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value,
exceptionState), exceptionState), return); |
| 3370 impl->setRaisesExceptionLongAttribute(cppValue, exceptionState); | 3364 impl->setRaisesExceptionLongAttribute(cppValue, exceptionState); |
| 3371 exceptionState.throwIfNeeded(); | 3365 exceptionState.throwIfNeeded(); |
| 3372 } | 3366 } |
| 3373 | 3367 |
| 3374 static void raisesExceptionLongAttributeAttributeSetterCallback(v8::Local<v8::St
ring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3368 static void raisesExceptionLongAttributeAttributeSetterCallback(v8::Local<v8::St
ring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 3375 { | 3369 { |
| 3376 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3370 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 3377 TestObjectV8Internal::raisesExceptionLongAttributeAttributeSetter(v8Value, i
nfo); | 3371 TestObjectV8Internal::raisesExceptionLongAttributeAttributeSetter(v8Value, i
nfo); |
| 3378 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3372 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 3379 } | 3373 } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 3394 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3388 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 3395 TestObjectV8Internal::raisesExceptionGetterLongAttributeAttributeGetter(info
); | 3389 TestObjectV8Internal::raisesExceptionGetterLongAttributeAttributeGetter(info
); |
| 3396 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3390 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 3397 } | 3391 } |
| 3398 | 3392 |
| 3399 static void raisesExceptionGetterLongAttributeAttributeSetter(v8::Local<v8::Valu
e> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3393 static void raisesExceptionGetterLongAttributeAttributeSetter(v8::Local<v8::Valu
e> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 3400 { | 3394 { |
| 3401 v8::Local<v8::Object> holder = info.Holder(); | 3395 v8::Local<v8::Object> holder = info.Holder(); |
| 3402 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio
nGetterLongAttribute", "TestObject", holder, info.GetIsolate()); | 3396 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio
nGetterLongAttribute", "TestObject", holder, info.GetIsolate()); |
| 3403 TestObject* impl = V8TestObject::toImpl(holder); | 3397 TestObject* impl = V8TestObject::toImpl(holder); |
| 3404 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 3398 TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value,
exceptionState), exceptionState), return); |
| 3405 impl->setRaisesExceptionGetterLongAttribute(cppValue); | 3399 impl->setRaisesExceptionGetterLongAttribute(cppValue); |
| 3406 } | 3400 } |
| 3407 | 3401 |
| 3408 static void raisesExceptionGetterLongAttributeAttributeSetterCallback(v8::Local<
v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>&
info) | 3402 static void raisesExceptionGetterLongAttributeAttributeSetterCallback(v8::Local<
v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>&
info) |
| 3409 { | 3403 { |
| 3410 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3404 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 3411 TestObjectV8Internal::raisesExceptionGetterLongAttributeAttributeSetter(v8Va
lue, info); | 3405 TestObjectV8Internal::raisesExceptionGetterLongAttributeAttributeSetter(v8Va
lue, info); |
| 3412 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3406 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 3413 } | 3407 } |
| 3414 | 3408 |
| 3415 static void setterRaisesExceptionLongAttributeAttributeGetter(const v8::Property
CallbackInfo<v8::Value>& info) | 3409 static void setterRaisesExceptionLongAttributeAttributeGetter(const v8::Property
CallbackInfo<v8::Value>& info) |
| 3416 { | 3410 { |
| 3417 v8::Local<v8::Object> holder = info.Holder(); | 3411 v8::Local<v8::Object> holder = info.Holder(); |
| 3418 TestObject* impl = V8TestObject::toImpl(holder); | 3412 TestObject* impl = V8TestObject::toImpl(holder); |
| 3419 v8SetReturnValueInt(info, impl->setterRaisesExceptionLongAttribute()); | 3413 v8SetReturnValueInt(info, impl->setterRaisesExceptionLongAttribute()); |
| 3420 } | 3414 } |
| 3421 | 3415 |
| 3422 static void setterRaisesExceptionLongAttributeAttributeGetterCallback(v8::Local<
v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3416 static void setterRaisesExceptionLongAttributeAttributeGetterCallback(v8::Local<
v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 3423 { | 3417 { |
| 3424 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3418 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 3425 TestObjectV8Internal::setterRaisesExceptionLongAttributeAttributeGetter(info
); | 3419 TestObjectV8Internal::setterRaisesExceptionLongAttributeAttributeGetter(info
); |
| 3426 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3420 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 3427 } | 3421 } |
| 3428 | 3422 |
| 3429 static void setterRaisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Valu
e> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3423 static void setterRaisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Valu
e> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 3430 { | 3424 { |
| 3431 v8::Local<v8::Object> holder = info.Holder(); | 3425 v8::Local<v8::Object> holder = info.Holder(); |
| 3432 ExceptionState exceptionState(ExceptionState::SetterContext, "setterRaisesEx
ceptionLongAttribute", "TestObject", holder, info.GetIsolate()); | 3426 ExceptionState exceptionState(ExceptionState::SetterContext, "setterRaisesEx
ceptionLongAttribute", "TestObject", holder, info.GetIsolate()); |
| 3433 TestObject* impl = V8TestObject::toImpl(holder); | 3427 TestObject* impl = V8TestObject::toImpl(holder); |
| 3434 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 3428 TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value,
exceptionState), exceptionState), return); |
| 3435 impl->setSetterRaisesExceptionLongAttribute(cppValue, exceptionState); | 3429 impl->setSetterRaisesExceptionLongAttribute(cppValue, exceptionState); |
| 3436 exceptionState.throwIfNeeded(); | 3430 exceptionState.throwIfNeeded(); |
| 3437 } | 3431 } |
| 3438 | 3432 |
| 3439 static void setterRaisesExceptionLongAttributeAttributeSetterCallback(v8::Local<
v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>&
info) | 3433 static void setterRaisesExceptionLongAttributeAttributeSetterCallback(v8::Local<
v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>&
info) |
| 3440 { | 3434 { |
| 3441 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3435 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 3442 TestObjectV8Internal::setterRaisesExceptionLongAttributeAttributeSetter(v8Va
lue, info); | 3436 TestObjectV8Internal::setterRaisesExceptionLongAttributeAttributeSetter(v8Va
lue, info); |
| 3443 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3437 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 3444 } | 3438 } |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3628 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3622 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 3629 TestObjectV8Internal::reflectLongAttributeAttributeGetter(info); | 3623 TestObjectV8Internal::reflectLongAttributeAttributeGetter(info); |
| 3630 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3624 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 3631 } | 3625 } |
| 3632 | 3626 |
| 3633 static void reflectLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::PropertyCallbackInfo<void>& info) | 3627 static void reflectLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::PropertyCallbackInfo<void>& info) |
| 3634 { | 3628 { |
| 3635 v8::Local<v8::Object> holder = info.Holder(); | 3629 v8::Local<v8::Object> holder = info.Holder(); |
| 3636 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectLongAtt
ribute", "TestObject", holder, info.GetIsolate()); | 3630 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectLongAtt
ribute", "TestObject", holder, info.GetIsolate()); |
| 3637 TestObject* impl = V8TestObject::toImpl(holder); | 3631 TestObject* impl = V8TestObject::toImpl(holder); |
| 3638 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 3632 TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value,
exceptionState), exceptionState), return); |
| 3639 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 3633 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
| 3640 impl->setIntegralAttribute(HTMLNames::reflectlongattributeAttr, cppValue); | 3634 impl->setIntegralAttribute(HTMLNames::reflectlongattributeAttr, cppValue); |
| 3641 } | 3635 } |
| 3642 | 3636 |
| 3643 static void reflectLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3637 static void reflectLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 3644 { | 3638 { |
| 3645 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3639 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 3646 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 3640 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
| 3647 TestObjectV8Internal::reflectLongAttributeAttributeSetter(v8Value, info); | 3641 TestObjectV8Internal::reflectLongAttributeAttributeSetter(v8Value, info); |
| 3648 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3642 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 3660 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3654 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 3661 TestObjectV8Internal::reflectUnsignedShortAttributeAttributeGetter(info); | 3655 TestObjectV8Internal::reflectUnsignedShortAttributeAttributeGetter(info); |
| 3662 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3656 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 3663 } | 3657 } |
| 3664 | 3658 |
| 3665 static void reflectUnsignedShortAttributeAttributeSetter(v8::Local<v8::Value> v8
Value, const v8::PropertyCallbackInfo<void>& info) | 3659 static void reflectUnsignedShortAttributeAttributeSetter(v8::Local<v8::Value> v8
Value, const v8::PropertyCallbackInfo<void>& info) |
| 3666 { | 3660 { |
| 3667 v8::Local<v8::Object> holder = info.Holder(); | 3661 v8::Local<v8::Object> holder = info.Holder(); |
| 3668 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne
dShortAttribute", "TestObject", holder, info.GetIsolate()); | 3662 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne
dShortAttribute", "TestObject", holder, info.GetIsolate()); |
| 3669 TestObject* impl = V8TestObject::toImpl(holder); | 3663 TestObject* impl = V8TestObject::toImpl(holder); |
| 3670 TONATIVE_VOID_EXCEPTIONSTATE(unsigned, cppValue, toUInt16(v8Value, exception
State), exceptionState); | 3664 TONATIVE_DECLARE(unsigned, cppValue, convertAndThrow(cppValue = toUInt16(v8V
alue, exceptionState), exceptionState), return); |
| 3671 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 3665 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
| 3672 impl->setAttribute(HTMLNames::reflectunsignedshortattributeAttr, cppValue); | 3666 impl->setAttribute(HTMLNames::reflectunsignedshortattributeAttr, cppValue); |
| 3673 } | 3667 } |
| 3674 | 3668 |
| 3675 static void reflectUnsignedShortAttributeAttributeSetterCallback(v8::Local<v8::S
tring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info
) | 3669 static void reflectUnsignedShortAttributeAttributeSetterCallback(v8::Local<v8::S
tring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info
) |
| 3676 { | 3670 { |
| 3677 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3671 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 3678 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 3672 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
| 3679 TestObjectV8Internal::reflectUnsignedShortAttributeAttributeSetter(v8Value,
info); | 3673 TestObjectV8Internal::reflectUnsignedShortAttributeAttributeSetter(v8Value,
info); |
| 3680 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3674 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 3692 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3686 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 3693 TestObjectV8Internal::reflectUnsignedLongAttributeAttributeGetter(info); | 3687 TestObjectV8Internal::reflectUnsignedLongAttributeAttributeGetter(info); |
| 3694 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3688 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 3695 } | 3689 } |
| 3696 | 3690 |
| 3697 static void reflectUnsignedLongAttributeAttributeSetter(v8::Local<v8::Value> v8V
alue, const v8::PropertyCallbackInfo<void>& info) | 3691 static void reflectUnsignedLongAttributeAttributeSetter(v8::Local<v8::Value> v8V
alue, const v8::PropertyCallbackInfo<void>& info) |
| 3698 { | 3692 { |
| 3699 v8::Local<v8::Object> holder = info.Holder(); | 3693 v8::Local<v8::Object> holder = info.Holder(); |
| 3700 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne
dLongAttribute", "TestObject", holder, info.GetIsolate()); | 3694 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne
dLongAttribute", "TestObject", holder, info.GetIsolate()); |
| 3701 TestObject* impl = V8TestObject::toImpl(holder); | 3695 TestObject* impl = V8TestObject::toImpl(holder); |
| 3702 TONATIVE_VOID_EXCEPTIONSTATE(unsigned, cppValue, toUInt32(v8Value, exception
State), exceptionState); | 3696 TONATIVE_DECLARE(unsigned, cppValue, convertAndThrow(cppValue = toUInt32(v8V
alue, exceptionState), exceptionState), return); |
| 3703 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 3697 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
| 3704 impl->setUnsignedIntegralAttribute(HTMLNames::reflectunsignedlongattributeAt
tr, cppValue); | 3698 impl->setUnsignedIntegralAttribute(HTMLNames::reflectunsignedlongattributeAt
tr, cppValue); |
| 3705 } | 3699 } |
| 3706 | 3700 |
| 3707 static void reflectUnsignedLongAttributeAttributeSetterCallback(v8::Local<v8::St
ring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3701 static void reflectUnsignedLongAttributeAttributeSetterCallback(v8::Local<v8::St
ring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 3708 { | 3702 { |
| 3709 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3703 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 3710 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 3704 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
| 3711 TestObjectV8Internal::reflectUnsignedLongAttributeAttributeSetter(v8Value, i
nfo); | 3705 TestObjectV8Internal::reflectUnsignedLongAttributeAttributeSetter(v8Value, i
nfo); |
| 3712 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3706 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 3723 { | 3717 { |
| 3724 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3718 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 3725 TestObjectV8Internal::idAttributeGetter(info); | 3719 TestObjectV8Internal::idAttributeGetter(info); |
| 3726 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3720 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 3727 } | 3721 } |
| 3728 | 3722 |
| 3729 static void idAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCa
llbackInfo<void>& info) | 3723 static void idAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCa
llbackInfo<void>& info) |
| 3730 { | 3724 { |
| 3731 v8::Local<v8::Object> holder = info.Holder(); | 3725 v8::Local<v8::Object> holder = info.Holder(); |
| 3732 TestObject* impl = V8TestObject::toImpl(holder); | 3726 TestObject* impl = V8TestObject::toImpl(holder); |
| 3733 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 3727 TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(
), return); |
| 3734 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 3728 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
| 3735 impl->setAttribute(HTMLNames::idAttr, cppValue); | 3729 impl->setAttribute(HTMLNames::idAttr, cppValue); |
| 3736 } | 3730 } |
| 3737 | 3731 |
| 3738 static void idAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value
> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3732 static void idAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value
> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 3739 { | 3733 { |
| 3740 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3734 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 3741 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 3735 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
| 3742 TestObjectV8Internal::idAttributeSetter(v8Value, info); | 3736 TestObjectV8Internal::idAttributeSetter(v8Value, info); |
| 3743 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3737 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 3754 { | 3748 { |
| 3755 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3749 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 3756 TestObjectV8Internal::nameAttributeGetter(info); | 3750 TestObjectV8Internal::nameAttributeGetter(info); |
| 3757 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3751 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 3758 } | 3752 } |
| 3759 | 3753 |
| 3760 static void nameAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Property
CallbackInfo<void>& info) | 3754 static void nameAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Property
CallbackInfo<void>& info) |
| 3761 { | 3755 { |
| 3762 v8::Local<v8::Object> holder = info.Holder(); | 3756 v8::Local<v8::Object> holder = info.Holder(); |
| 3763 TestObject* impl = V8TestObject::toImpl(holder); | 3757 TestObject* impl = V8TestObject::toImpl(holder); |
| 3764 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 3758 TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(
), return); |
| 3765 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 3759 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
| 3766 impl->setAttribute(HTMLNames::nameAttr, cppValue); | 3760 impl->setAttribute(HTMLNames::nameAttr, cppValue); |
| 3767 } | 3761 } |
| 3768 | 3762 |
| 3769 static void nameAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Val
ue> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3763 static void nameAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Val
ue> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 3770 { | 3764 { |
| 3771 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3765 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 3772 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 3766 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
| 3773 TestObjectV8Internal::nameAttributeSetter(v8Value, info); | 3767 TestObjectV8Internal::nameAttributeSetter(v8Value, info); |
| 3774 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3768 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 3785 { | 3779 { |
| 3786 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3780 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 3787 TestObjectV8Internal::classAttributeGetter(info); | 3781 TestObjectV8Internal::classAttributeGetter(info); |
| 3788 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3782 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 3789 } | 3783 } |
| 3790 | 3784 |
| 3791 static void classAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Propert
yCallbackInfo<void>& info) | 3785 static void classAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Propert
yCallbackInfo<void>& info) |
| 3792 { | 3786 { |
| 3793 v8::Local<v8::Object> holder = info.Holder(); | 3787 v8::Local<v8::Object> holder = info.Holder(); |
| 3794 TestObject* impl = V8TestObject::toImpl(holder); | 3788 TestObject* impl = V8TestObject::toImpl(holder); |
| 3795 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 3789 TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(
), return); |
| 3796 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 3790 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
| 3797 impl->setAttribute(HTMLNames::classAttr, cppValue); | 3791 impl->setAttribute(HTMLNames::classAttr, cppValue); |
| 3798 } | 3792 } |
| 3799 | 3793 |
| 3800 static void classAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Va
lue> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3794 static void classAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Va
lue> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 3801 { | 3795 { |
| 3802 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3796 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 3803 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 3797 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
| 3804 TestObjectV8Internal::classAttributeSetter(v8Value, info); | 3798 TestObjectV8Internal::classAttributeSetter(v8Value, info); |
| 3805 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3799 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 3816 { | 3810 { |
| 3817 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3811 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 3818 TestObjectV8Internal::reflectedIdAttributeGetter(info); | 3812 TestObjectV8Internal::reflectedIdAttributeGetter(info); |
| 3819 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3813 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 3820 } | 3814 } |
| 3821 | 3815 |
| 3822 static void reflectedIdAttributeSetter(v8::Local<v8::Value> v8Value, const v8::P
ropertyCallbackInfo<void>& info) | 3816 static void reflectedIdAttributeSetter(v8::Local<v8::Value> v8Value, const v8::P
ropertyCallbackInfo<void>& info) |
| 3823 { | 3817 { |
| 3824 v8::Local<v8::Object> holder = info.Holder(); | 3818 v8::Local<v8::Object> holder = info.Holder(); |
| 3825 TestObject* impl = V8TestObject::toImpl(holder); | 3819 TestObject* impl = V8TestObject::toImpl(holder); |
| 3826 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 3820 TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(
), return); |
| 3827 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 3821 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
| 3828 impl->setAttribute(HTMLNames::idAttr, cppValue); | 3822 impl->setAttribute(HTMLNames::idAttr, cppValue); |
| 3829 } | 3823 } |
| 3830 | 3824 |
| 3831 static void reflectedIdAttributeSetterCallback(v8::Local<v8::String>, v8::Local<
v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3825 static void reflectedIdAttributeSetterCallback(v8::Local<v8::String>, v8::Local<
v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 3832 { | 3826 { |
| 3833 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3827 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 3834 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 3828 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
| 3835 TestObjectV8Internal::reflectedIdAttributeSetter(v8Value, info); | 3829 TestObjectV8Internal::reflectedIdAttributeSetter(v8Value, info); |
| 3836 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3830 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 3847 { | 3841 { |
| 3848 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3842 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 3849 TestObjectV8Internal::reflectedNameAttributeGetter(info); | 3843 TestObjectV8Internal::reflectedNameAttributeGetter(info); |
| 3850 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3844 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 3851 } | 3845 } |
| 3852 | 3846 |
| 3853 static void reflectedNameAttributeSetter(v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) | 3847 static void reflectedNameAttributeSetter(v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) |
| 3854 { | 3848 { |
| 3855 v8::Local<v8::Object> holder = info.Holder(); | 3849 v8::Local<v8::Object> holder = info.Holder(); |
| 3856 TestObject* impl = V8TestObject::toImpl(holder); | 3850 TestObject* impl = V8TestObject::toImpl(holder); |
| 3857 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 3851 TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(
), return); |
| 3858 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 3852 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
| 3859 impl->setAttribute(HTMLNames::nameAttr, cppValue); | 3853 impl->setAttribute(HTMLNames::nameAttr, cppValue); |
| 3860 } | 3854 } |
| 3861 | 3855 |
| 3862 static void reflectedNameAttributeSetterCallback(v8::Local<v8::String>, v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3856 static void reflectedNameAttributeSetterCallback(v8::Local<v8::String>, v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 3863 { | 3857 { |
| 3864 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3858 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 3865 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 3859 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
| 3866 TestObjectV8Internal::reflectedNameAttributeSetter(v8Value, info); | 3860 TestObjectV8Internal::reflectedNameAttributeSetter(v8Value, info); |
| 3867 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3861 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 3878 { | 3872 { |
| 3879 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3873 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 3880 TestObjectV8Internal::reflectedClassAttributeGetter(info); | 3874 TestObjectV8Internal::reflectedClassAttributeGetter(info); |
| 3881 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3875 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 3882 } | 3876 } |
| 3883 | 3877 |
| 3884 static void reflectedClassAttributeSetter(v8::Local<v8::Value> v8Value, const v8
::PropertyCallbackInfo<void>& info) | 3878 static void reflectedClassAttributeSetter(v8::Local<v8::Value> v8Value, const v8
::PropertyCallbackInfo<void>& info) |
| 3885 { | 3879 { |
| 3886 v8::Local<v8::Object> holder = info.Holder(); | 3880 v8::Local<v8::Object> holder = info.Holder(); |
| 3887 TestObject* impl = V8TestObject::toImpl(holder); | 3881 TestObject* impl = V8TestObject::toImpl(holder); |
| 3888 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 3882 TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(
), return); |
| 3889 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 3883 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
| 3890 impl->setAttribute(HTMLNames::classAttr, cppValue); | 3884 impl->setAttribute(HTMLNames::classAttr, cppValue); |
| 3891 } | 3885 } |
| 3892 | 3886 |
| 3893 static void reflectedClassAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3887 static void reflectedClassAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 3894 { | 3888 { |
| 3895 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3889 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 3896 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 3890 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
| 3897 TestObjectV8Internal::reflectedClassAttributeSetter(v8Value, info); | 3891 TestObjectV8Internal::reflectedClassAttributeSetter(v8Value, info); |
| 3898 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3892 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 3917 { | 3911 { |
| 3918 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3912 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 3919 TestObjectV8Internal::limitedToOnlyOneAttributeAttributeGetter(info); | 3913 TestObjectV8Internal::limitedToOnlyOneAttributeAttributeGetter(info); |
| 3920 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3914 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 3921 } | 3915 } |
| 3922 | 3916 |
| 3923 static void limitedToOnlyOneAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::PropertyCallbackInfo<void>& info) | 3917 static void limitedToOnlyOneAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::PropertyCallbackInfo<void>& info) |
| 3924 { | 3918 { |
| 3925 v8::Local<v8::Object> holder = info.Holder(); | 3919 v8::Local<v8::Object> holder = info.Holder(); |
| 3926 TestObject* impl = V8TestObject::toImpl(holder); | 3920 TestObject* impl = V8TestObject::toImpl(holder); |
| 3927 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 3921 TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(
), return); |
| 3928 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 3922 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
| 3929 impl->setAttribute(HTMLNames::limitedtoonlyoneattributeAttr, cppValue); | 3923 impl->setAttribute(HTMLNames::limitedtoonlyoneattributeAttr, cppValue); |
| 3930 } | 3924 } |
| 3931 | 3925 |
| 3932 static void limitedToOnlyOneAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3926 static void limitedToOnlyOneAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 3933 { | 3927 { |
| 3934 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3928 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 3935 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 3929 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
| 3936 TestObjectV8Internal::limitedToOnlyOneAttributeAttributeSetter(v8Value, info
); | 3930 TestObjectV8Internal::limitedToOnlyOneAttributeAttributeSetter(v8Value, info
); |
| 3937 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3931 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 3960 { | 3954 { |
| 3961 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3955 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 3962 TestObjectV8Internal::limitedToOnlyAttributeAttributeGetter(info); | 3956 TestObjectV8Internal::limitedToOnlyAttributeAttributeGetter(info); |
| 3963 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3957 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 3964 } | 3958 } |
| 3965 | 3959 |
| 3966 static void limitedToOnlyAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) | 3960 static void limitedToOnlyAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) |
| 3967 { | 3961 { |
| 3968 v8::Local<v8::Object> holder = info.Holder(); | 3962 v8::Local<v8::Object> holder = info.Holder(); |
| 3969 TestObject* impl = V8TestObject::toImpl(holder); | 3963 TestObject* impl = V8TestObject::toImpl(holder); |
| 3970 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 3964 TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(
), return); |
| 3971 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 3965 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
| 3972 impl->setAttribute(HTMLNames::limitedtoonlyattributeAttr, cppValue); | 3966 impl->setAttribute(HTMLNames::limitedtoonlyattributeAttr, cppValue); |
| 3973 } | 3967 } |
| 3974 | 3968 |
| 3975 static void limitedToOnlyAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3969 static void limitedToOnlyAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 3976 { | 3970 { |
| 3977 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3971 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 3978 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 3972 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
| 3979 TestObjectV8Internal::limitedToOnlyAttributeAttributeSetter(v8Value, info); | 3973 TestObjectV8Internal::limitedToOnlyAttributeAttributeSetter(v8Value, info); |
| 3980 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3974 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 4001 { | 3995 { |
| 4002 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3996 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 4003 TestObjectV8Internal::limitedToOnlyOtherAttributeAttributeGetter(info); | 3997 TestObjectV8Internal::limitedToOnlyOtherAttributeAttributeGetter(info); |
| 4004 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3998 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 4005 } | 3999 } |
| 4006 | 4000 |
| 4007 static void limitedToOnlyOtherAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) | 4001 static void limitedToOnlyOtherAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) |
| 4008 { | 4002 { |
| 4009 v8::Local<v8::Object> holder = info.Holder(); | 4003 v8::Local<v8::Object> holder = info.Holder(); |
| 4010 TestObject* impl = V8TestObject::toImpl(holder); | 4004 TestObject* impl = V8TestObject::toImpl(holder); |
| 4011 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 4005 TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(
), return); |
| 4012 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4006 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
| 4013 impl->setAttribute(HTMLNames::otherAttr, cppValue); | 4007 impl->setAttribute(HTMLNames::otherAttr, cppValue); |
| 4014 } | 4008 } |
| 4015 | 4009 |
| 4016 static void limitedToOnlyOtherAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4010 static void limitedToOnlyOtherAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 4017 { | 4011 { |
| 4018 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4012 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 4019 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4013 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
| 4020 TestObjectV8Internal::limitedToOnlyOtherAttributeAttributeSetter(v8Value, in
fo); | 4014 TestObjectV8Internal::limitedToOnlyOtherAttributeAttributeSetter(v8Value, in
fo); |
| 4021 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4015 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 4042 { | 4036 { |
| 4043 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4037 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 4044 TestObjectV8Internal::limitedWithMissingDefaultAttributeAttributeGetter(info
); | 4038 TestObjectV8Internal::limitedWithMissingDefaultAttributeAttributeGetter(info
); |
| 4045 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4039 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 4046 } | 4040 } |
| 4047 | 4041 |
| 4048 static void limitedWithMissingDefaultAttributeAttributeSetter(v8::Local<v8::Valu
e> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4042 static void limitedWithMissingDefaultAttributeAttributeSetter(v8::Local<v8::Valu
e> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 4049 { | 4043 { |
| 4050 v8::Local<v8::Object> holder = info.Holder(); | 4044 v8::Local<v8::Object> holder = info.Holder(); |
| 4051 TestObject* impl = V8TestObject::toImpl(holder); | 4045 TestObject* impl = V8TestObject::toImpl(holder); |
| 4052 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 4046 TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(
), return); |
| 4053 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4047 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
| 4054 impl->setAttribute(HTMLNames::limitedwithmissingdefaultattributeAttr, cppVal
ue); | 4048 impl->setAttribute(HTMLNames::limitedwithmissingdefaultattributeAttr, cppVal
ue); |
| 4055 } | 4049 } |
| 4056 | 4050 |
| 4057 static void limitedWithMissingDefaultAttributeAttributeSetterCallback(v8::Local<
v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>&
info) | 4051 static void limitedWithMissingDefaultAttributeAttributeSetterCallback(v8::Local<
v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>&
info) |
| 4058 { | 4052 { |
| 4059 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4053 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 4060 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4054 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
| 4061 TestObjectV8Internal::limitedWithMissingDefaultAttributeAttributeSetter(v8Va
lue, info); | 4055 TestObjectV8Internal::limitedWithMissingDefaultAttributeAttributeSetter(v8Va
lue, info); |
| 4062 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4056 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 4085 { | 4079 { |
| 4086 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4080 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 4087 TestObjectV8Internal::limitedWithInvalidMissingDefaultAttributeAttributeGett
er(info); | 4081 TestObjectV8Internal::limitedWithInvalidMissingDefaultAttributeAttributeGett
er(info); |
| 4088 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4082 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 4089 } | 4083 } |
| 4090 | 4084 |
| 4091 static void limitedWithInvalidMissingDefaultAttributeAttributeSetter(v8::Local<v
8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4085 static void limitedWithInvalidMissingDefaultAttributeAttributeSetter(v8::Local<v
8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 4092 { | 4086 { |
| 4093 v8::Local<v8::Object> holder = info.Holder(); | 4087 v8::Local<v8::Object> holder = info.Holder(); |
| 4094 TestObject* impl = V8TestObject::toImpl(holder); | 4088 TestObject* impl = V8TestObject::toImpl(holder); |
| 4095 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 4089 TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(
), return); |
| 4096 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4090 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
| 4097 impl->setAttribute(HTMLNames::limitedwithinvalidmissingdefaultattributeAttr,
cppValue); | 4091 impl->setAttribute(HTMLNames::limitedwithinvalidmissingdefaultattributeAttr,
cppValue); |
| 4098 } | 4092 } |
| 4099 | 4093 |
| 4100 static void limitedWithInvalidMissingDefaultAttributeAttributeSetterCallback(v8:
:Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo
<void>& info) | 4094 static void limitedWithInvalidMissingDefaultAttributeAttributeSetterCallback(v8:
:Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo
<void>& info) |
| 4101 { | 4095 { |
| 4102 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4096 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 4103 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4097 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
| 4104 TestObjectV8Internal::limitedWithInvalidMissingDefaultAttributeAttributeSett
er(v8Value, info); | 4098 TestObjectV8Internal::limitedWithInvalidMissingDefaultAttributeAttributeSett
er(v8Value, info); |
| 4105 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4099 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"); | 4183 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 4190 } | 4184 } |
| 4191 | 4185 |
| 4192 static void locationReplaceableAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::PropertyCallbackInfo<void>& info) | 4186 static void locationReplaceableAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::PropertyCallbackInfo<void>& info) |
| 4193 { | 4187 { |
| 4194 v8::Local<v8::Object> holder = info.Holder(); | 4188 v8::Local<v8::Object> holder = info.Holder(); |
| 4195 TestObject* proxyImpl = V8TestObject::toImpl(holder); | 4189 TestObject* proxyImpl = V8TestObject::toImpl(holder); |
| 4196 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationReplaceab
le()); | 4190 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationReplaceab
le()); |
| 4197 if (!impl) | 4191 if (!impl) |
| 4198 return; | 4192 return; |
| 4199 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 4193 TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(
), return); |
| 4200 impl->setHref(cppValue); | 4194 impl->setHref(cppValue); |
| 4201 } | 4195 } |
| 4202 | 4196 |
| 4203 static void locationReplaceableAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4197 static void locationReplaceableAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 4204 { | 4198 { |
| 4205 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4199 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 4206 TestObjectV8Internal::locationReplaceableAttributeSetter(v8Value, info); | 4200 TestObjectV8Internal::locationReplaceableAttributeSetter(v8Value, info); |
| 4207 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4201 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 4208 } | 4202 } |
| 4209 | 4203 |
| 4210 static void runtimeEnabledLongAttributeAttributeGetter(const v8::PropertyCallbac
kInfo<v8::Value>& info) | 4204 static void runtimeEnabledLongAttributeAttributeGetter(const v8::PropertyCallbac
kInfo<v8::Value>& info) |
| 4211 { | 4205 { |
| 4212 v8::Local<v8::Object> holder = info.Holder(); | 4206 v8::Local<v8::Object> holder = info.Holder(); |
| 4213 TestObject* impl = V8TestObject::toImpl(holder); | 4207 TestObject* impl = V8TestObject::toImpl(holder); |
| 4214 v8SetReturnValueInt(info, impl->runtimeEnabledLongAttribute()); | 4208 v8SetReturnValueInt(info, impl->runtimeEnabledLongAttribute()); |
| 4215 } | 4209 } |
| 4216 | 4210 |
| 4217 static void runtimeEnabledLongAttributeAttributeGetterCallback(v8::Local<v8::Str
ing>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4211 static void runtimeEnabledLongAttributeAttributeGetterCallback(v8::Local<v8::Str
ing>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 4218 { | 4212 { |
| 4219 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4213 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 4220 TestObjectV8Internal::runtimeEnabledLongAttributeAttributeGetter(info); | 4214 TestObjectV8Internal::runtimeEnabledLongAttributeAttributeGetter(info); |
| 4221 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4215 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 4222 } | 4216 } |
| 4223 | 4217 |
| 4224 static void runtimeEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) | 4218 static void runtimeEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) |
| 4225 { | 4219 { |
| 4226 v8::Local<v8::Object> holder = info.Holder(); | 4220 v8::Local<v8::Object> holder = info.Holder(); |
| 4227 ExceptionState exceptionState(ExceptionState::SetterContext, "runtimeEnabled
LongAttribute", "TestObject", holder, info.GetIsolate()); | 4221 ExceptionState exceptionState(ExceptionState::SetterContext, "runtimeEnabled
LongAttribute", "TestObject", holder, info.GetIsolate()); |
| 4228 TestObject* impl = V8TestObject::toImpl(holder); | 4222 TestObject* impl = V8TestObject::toImpl(holder); |
| 4229 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 4223 TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value,
exceptionState), exceptionState), return); |
| 4230 impl->setRuntimeEnabledLongAttribute(cppValue); | 4224 impl->setRuntimeEnabledLongAttribute(cppValue); |
| 4231 } | 4225 } |
| 4232 | 4226 |
| 4233 static void runtimeEnabledLongAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4227 static void runtimeEnabledLongAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 4234 { | 4228 { |
| 4235 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4229 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 4236 TestObjectV8Internal::runtimeEnabledLongAttributeAttributeSetter(v8Value, in
fo); | 4230 TestObjectV8Internal::runtimeEnabledLongAttributeAttributeSetter(v8Value, in
fo); |
| 4237 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4231 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 4238 } | 4232 } |
| 4239 | 4233 |
| 4240 static void perContextEnabledRuntimeEnabledLongAttributeAttributeGetter(const v8
::PropertyCallbackInfo<v8::Value>& info) | 4234 static void perContextEnabledRuntimeEnabledLongAttributeAttributeGetter(const v8
::PropertyCallbackInfo<v8::Value>& info) |
| 4241 { | 4235 { |
| 4242 v8::Local<v8::Object> holder = info.Holder(); | 4236 v8::Local<v8::Object> holder = info.Holder(); |
| 4243 TestObject* impl = V8TestObject::toImpl(holder); | 4237 TestObject* impl = V8TestObject::toImpl(holder); |
| 4244 v8SetReturnValueInt(info, impl->perContextEnabledRuntimeEnabledLongAttribute
()); | 4238 v8SetReturnValueInt(info, impl->perContextEnabledRuntimeEnabledLongAttribute
()); |
| 4245 } | 4239 } |
| 4246 | 4240 |
| 4247 static void perContextEnabledRuntimeEnabledLongAttributeAttributeGetterCallback(
v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4241 static void perContextEnabledRuntimeEnabledLongAttributeAttributeGetterCallback(
v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 4248 { | 4242 { |
| 4249 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4243 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 4250 TestObjectV8Internal::perContextEnabledRuntimeEnabledLongAttributeAttributeG
etter(info); | 4244 TestObjectV8Internal::perContextEnabledRuntimeEnabledLongAttributeAttributeG
etter(info); |
| 4251 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4245 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 4252 } | 4246 } |
| 4253 | 4247 |
| 4254 static void perContextEnabledRuntimeEnabledLongAttributeAttributeSetter(v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4248 static void perContextEnabledRuntimeEnabledLongAttributeAttributeSetter(v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 4255 { | 4249 { |
| 4256 v8::Local<v8::Object> holder = info.Holder(); | 4250 v8::Local<v8::Object> holder = info.Holder(); |
| 4257 ExceptionState exceptionState(ExceptionState::SetterContext, "perContextEnab
ledRuntimeEnabledLongAttribute", "TestObject", holder, info.GetIsolate()); | 4251 ExceptionState exceptionState(ExceptionState::SetterContext, "perContextEnab
ledRuntimeEnabledLongAttribute", "TestObject", holder, info.GetIsolate()); |
| 4258 TestObject* impl = V8TestObject::toImpl(holder); | 4252 TestObject* impl = V8TestObject::toImpl(holder); |
| 4259 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 4253 TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value,
exceptionState), exceptionState), return); |
| 4260 impl->setPerContextEnabledRuntimeEnabledLongAttribute(cppValue); | 4254 impl->setPerContextEnabledRuntimeEnabledLongAttribute(cppValue); |
| 4261 } | 4255 } |
| 4262 | 4256 |
| 4263 static void perContextEnabledRuntimeEnabledLongAttributeAttributeSetterCallback(
v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI
nfo<void>& info) | 4257 static void perContextEnabledRuntimeEnabledLongAttributeAttributeSetterCallback(
v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI
nfo<void>& info) |
| 4264 { | 4258 { |
| 4265 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4259 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 4266 TestObjectV8Internal::perContextEnabledRuntimeEnabledLongAttributeAttributeS
etter(v8Value, info); | 4260 TestObjectV8Internal::perContextEnabledRuntimeEnabledLongAttributeAttributeS
etter(v8Value, info); |
| 4267 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4261 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 4268 } | 4262 } |
| 4269 | 4263 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 4284 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4278 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 4285 } | 4279 } |
| 4286 #endif // ENABLE(CONDITION) | 4280 #endif // ENABLE(CONDITION) |
| 4287 | 4281 |
| 4288 #if ENABLE(CONDITION) | 4282 #if ENABLE(CONDITION) |
| 4289 static void conditionalRuntimeEnabledLongAttributeAttributeSetter(v8::Local<v8::
Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4283 static void conditionalRuntimeEnabledLongAttributeAttributeSetter(v8::Local<v8::
Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 4290 { | 4284 { |
| 4291 v8::Local<v8::Object> holder = info.Holder(); | 4285 v8::Local<v8::Object> holder = info.Holder(); |
| 4292 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalRun
timeEnabledLongAttribute", "TestObject", holder, info.GetIsolate()); | 4286 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalRun
timeEnabledLongAttribute", "TestObject", holder, info.GetIsolate()); |
| 4293 TestObject* impl = V8TestObject::toImpl(holder); | 4287 TestObject* impl = V8TestObject::toImpl(holder); |
| 4294 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 4288 TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value,
exceptionState), exceptionState), return); |
| 4295 impl->setConditionalRuntimeEnabledLongAttribute(cppValue); | 4289 impl->setConditionalRuntimeEnabledLongAttribute(cppValue); |
| 4296 } | 4290 } |
| 4297 #endif // ENABLE(CONDITION) | 4291 #endif // ENABLE(CONDITION) |
| 4298 | 4292 |
| 4299 #if ENABLE(CONDITION) | 4293 #if ENABLE(CONDITION) |
| 4300 static void conditionalRuntimeEnabledLongAttributeAttributeSetterCallback(v8::Lo
cal<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<vo
id>& info) | 4294 static void conditionalRuntimeEnabledLongAttributeAttributeSetterCallback(v8::Lo
cal<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<vo
id>& info) |
| 4301 { | 4295 { |
| 4302 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4296 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 4303 TestObjectV8Internal::conditionalRuntimeEnabledLongAttributeAttributeSetter(
v8Value, info); | 4297 TestObjectV8Internal::conditionalRuntimeEnabledLongAttributeAttributeSetter(
v8Value, info); |
| 4304 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4298 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 4316 { | 4310 { |
| 4317 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4311 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 4318 TestObjectV8Internal::setterCallWithActiveWindowAndFirstWindowStringAttribut
eAttributeGetter(info); | 4312 TestObjectV8Internal::setterCallWithActiveWindowAndFirstWindowStringAttribut
eAttributeGetter(info); |
| 4319 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4313 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 4320 } | 4314 } |
| 4321 | 4315 |
| 4322 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeSett
er(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4316 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeSett
er(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 4323 { | 4317 { |
| 4324 v8::Local<v8::Object> holder = info.Holder(); | 4318 v8::Local<v8::Object> holder = info.Holder(); |
| 4325 TestObject* impl = V8TestObject::toImpl(holder); | 4319 TestObject* impl = V8TestObject::toImpl(holder); |
| 4326 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 4320 TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(
), return); |
| 4327 impl->setSetterCallWithActiveWindowAndFirstWindowStringAttribute(callingDOMW
indow(info.GetIsolate()), enteredDOMWindow(info.GetIsolate()), cppValue); | 4321 impl->setSetterCallWithActiveWindowAndFirstWindowStringAttribute(callingDOMW
indow(info.GetIsolate()), enteredDOMWindow(info.GetIsolate()), cppValue); |
| 4328 } | 4322 } |
| 4329 | 4323 |
| 4330 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeSett
erCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::Proper
tyCallbackInfo<void>& info) | 4324 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeSett
erCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::Proper
tyCallbackInfo<void>& info) |
| 4331 { | 4325 { |
| 4332 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4326 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 4333 TestObjectV8Internal::setterCallWithActiveWindowAndFirstWindowStringAttribut
eAttributeSetter(v8Value, info); | 4327 TestObjectV8Internal::setterCallWithActiveWindowAndFirstWindowStringAttribut
eAttributeSetter(v8Value, info); |
| 4334 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4328 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 4335 } | 4329 } |
| 4336 | 4330 |
| 4337 static void setterCallWithExecutionContextStringAttributeAttributeGetter(const v
8::PropertyCallbackInfo<v8::Value>& info) | 4331 static void setterCallWithExecutionContextStringAttributeAttributeGetter(const v
8::PropertyCallbackInfo<v8::Value>& info) |
| 4338 { | 4332 { |
| 4339 v8::Local<v8::Object> holder = info.Holder(); | 4333 v8::Local<v8::Object> holder = info.Holder(); |
| 4340 TestObject* impl = V8TestObject::toImpl(holder); | 4334 TestObject* impl = V8TestObject::toImpl(holder); |
| 4341 v8SetReturnValueString(info, impl->setterCallWithExecutionContextStringAttri
bute(), info.GetIsolate()); | 4335 v8SetReturnValueString(info, impl->setterCallWithExecutionContextStringAttri
bute(), info.GetIsolate()); |
| 4342 } | 4336 } |
| 4343 | 4337 |
| 4344 static void setterCallWithExecutionContextStringAttributeAttributeGetterCallback
(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4338 static void setterCallWithExecutionContextStringAttributeAttributeGetterCallback
(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 4345 { | 4339 { |
| 4346 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4340 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 4347 TestObjectV8Internal::setterCallWithExecutionContextStringAttributeAttribute
Getter(info); | 4341 TestObjectV8Internal::setterCallWithExecutionContextStringAttributeAttribute
Getter(info); |
| 4348 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4342 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 4349 } | 4343 } |
| 4350 | 4344 |
| 4351 static void setterCallWithExecutionContextStringAttributeAttributeSetter(v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4345 static void setterCallWithExecutionContextStringAttributeAttributeSetter(v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 4352 { | 4346 { |
| 4353 v8::Local<v8::Object> holder = info.Holder(); | 4347 v8::Local<v8::Object> holder = info.Holder(); |
| 4354 TestObject* impl = V8TestObject::toImpl(holder); | 4348 TestObject* impl = V8TestObject::toImpl(holder); |
| 4355 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 4349 TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(
), return); |
| 4356 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate
()); | 4350 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate
()); |
| 4357 impl->setSetterCallWithExecutionContextStringAttribute(executionContext, cpp
Value); | 4351 impl->setSetterCallWithExecutionContextStringAttribute(executionContext, cpp
Value); |
| 4358 } | 4352 } |
| 4359 | 4353 |
| 4360 static void setterCallWithExecutionContextStringAttributeAttributeSetterCallback
(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallback
Info<void>& info) | 4354 static void setterCallWithExecutionContextStringAttributeAttributeSetterCallback
(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallback
Info<void>& info) |
| 4361 { | 4355 { |
| 4362 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4356 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 4363 TestObjectV8Internal::setterCallWithExecutionContextStringAttributeAttribute
Setter(v8Value, info); | 4357 TestObjectV8Internal::setterCallWithExecutionContextStringAttributeAttribute
Setter(v8Value, info); |
| 4364 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4358 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 4365 } | 4359 } |
| 4366 | 4360 |
| 4367 static void treatNullAsEmptyStringStringAttributeAttributeGetter(const v8::Prope
rtyCallbackInfo<v8::Value>& info) | 4361 static void treatNullAsEmptyStringStringAttributeAttributeGetter(const v8::Prope
rtyCallbackInfo<v8::Value>& info) |
| 4368 { | 4362 { |
| 4369 v8::Local<v8::Object> holder = info.Holder(); | 4363 v8::Local<v8::Object> holder = info.Holder(); |
| 4370 TestObject* impl = V8TestObject::toImpl(holder); | 4364 TestObject* impl = V8TestObject::toImpl(holder); |
| 4371 v8SetReturnValueString(info, impl->treatNullAsEmptyStringStringAttribute(),
info.GetIsolate()); | 4365 v8SetReturnValueString(info, impl->treatNullAsEmptyStringStringAttribute(),
info.GetIsolate()); |
| 4372 } | 4366 } |
| 4373 | 4367 |
| 4374 static void treatNullAsEmptyStringStringAttributeAttributeGetterCallback(v8::Loc
al<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4368 static void treatNullAsEmptyStringStringAttributeAttributeGetterCallback(v8::Loc
al<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 4375 { | 4369 { |
| 4376 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4370 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 4377 TestObjectV8Internal::treatNullAsEmptyStringStringAttributeAttributeGetter(i
nfo); | 4371 TestObjectV8Internal::treatNullAsEmptyStringStringAttributeAttributeGetter(i
nfo); |
| 4378 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4372 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 4379 } | 4373 } |
| 4380 | 4374 |
| 4381 static void treatNullAsEmptyStringStringAttributeAttributeSetter(v8::Local<v8::V
alue> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4375 static void treatNullAsEmptyStringStringAttributeAttributeSetter(v8::Local<v8::V
alue> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 4382 { | 4376 { |
| 4383 v8::Local<v8::Object> holder = info.Holder(); | 4377 v8::Local<v8::Object> holder = info.Holder(); |
| 4384 TestObject* impl = V8TestObject::toImpl(holder); | 4378 TestObject* impl = V8TestObject::toImpl(holder); |
| 4385 TOSTRING_VOID(V8StringResource<TreatNullAsEmptyString>, cppValue, v8Value); | 4379 TONATIVE_DECLARE(V8StringResource<TreatNullAsEmptyString>, cppValue, (cppVal
ue = v8Value).prepare(), return); |
| 4386 impl->setTreatNullAsEmptyStringStringAttribute(cppValue); | 4380 impl->setTreatNullAsEmptyStringStringAttribute(cppValue); |
| 4387 } | 4381 } |
| 4388 | 4382 |
| 4389 static void treatNullAsEmptyStringStringAttributeAttributeSetterCallback(v8::Loc
al<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<voi
d>& info) | 4383 static void treatNullAsEmptyStringStringAttributeAttributeSetterCallback(v8::Loc
al<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<voi
d>& info) |
| 4390 { | 4384 { |
| 4391 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4385 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 4392 TestObjectV8Internal::treatNullAsEmptyStringStringAttributeAttributeSetter(v
8Value, info); | 4386 TestObjectV8Internal::treatNullAsEmptyStringStringAttributeAttributeSetter(v
8Value, info); |
| 4393 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4387 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 4394 } | 4388 } |
| 4395 | 4389 |
| 4396 static void treatNullAsNullStringStringAttributeAttributeGetter(const v8::Proper
tyCallbackInfo<v8::Value>& info) | 4390 static void treatNullAsNullStringStringAttributeAttributeGetter(const v8::Proper
tyCallbackInfo<v8::Value>& info) |
| 4397 { | 4391 { |
| 4398 v8::Local<v8::Object> holder = info.Holder(); | 4392 v8::Local<v8::Object> holder = info.Holder(); |
| 4399 TestObject* impl = V8TestObject::toImpl(holder); | 4393 TestObject* impl = V8TestObject::toImpl(holder); |
| 4400 v8SetReturnValueString(info, impl->treatNullAsNullStringStringAttribute(), i
nfo.GetIsolate()); | 4394 v8SetReturnValueString(info, impl->treatNullAsNullStringStringAttribute(), i
nfo.GetIsolate()); |
| 4401 } | 4395 } |
| 4402 | 4396 |
| 4403 static void treatNullAsNullStringStringAttributeAttributeGetterCallback(v8::Loca
l<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4397 static void treatNullAsNullStringStringAttributeAttributeGetterCallback(v8::Loca
l<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 4404 { | 4398 { |
| 4405 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4399 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 4406 TestObjectV8Internal::treatNullAsNullStringStringAttributeAttributeGetter(in
fo); | 4400 TestObjectV8Internal::treatNullAsNullStringStringAttributeAttributeGetter(in
fo); |
| 4407 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4401 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 4408 } | 4402 } |
| 4409 | 4403 |
| 4410 static void treatNullAsNullStringStringAttributeAttributeSetter(v8::Local<v8::Va
lue> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4404 static void treatNullAsNullStringStringAttributeAttributeSetter(v8::Local<v8::Va
lue> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 4411 { | 4405 { |
| 4412 v8::Local<v8::Object> holder = info.Holder(); | 4406 v8::Local<v8::Object> holder = info.Holder(); |
| 4413 TestObject* impl = V8TestObject::toImpl(holder); | 4407 TestObject* impl = V8TestObject::toImpl(holder); |
| 4414 TOSTRING_VOID(V8StringResource<TreatNullAsNullString>, cppValue, v8Value); | 4408 TONATIVE_DECLARE(V8StringResource<TreatNullAsNullString>, cppValue, (cppValu
e = v8Value).prepare(), return); |
| 4415 impl->setTreatNullAsNullStringStringAttribute(cppValue); | 4409 impl->setTreatNullAsNullStringStringAttribute(cppValue); |
| 4416 } | 4410 } |
| 4417 | 4411 |
| 4418 static void treatNullAsNullStringStringAttributeAttributeSetterCallback(v8::Loca
l<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void
>& info) | 4412 static void treatNullAsNullStringStringAttributeAttributeSetterCallback(v8::Loca
l<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void
>& info) |
| 4419 { | 4413 { |
| 4420 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4414 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 4421 TestObjectV8Internal::treatNullAsNullStringStringAttributeAttributeSetter(v8
Value, info); | 4415 TestObjectV8Internal::treatNullAsNullStringStringAttributeAttributeSetter(v8
Value, info); |
| 4422 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4416 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 4423 } | 4417 } |
| 4424 | 4418 |
| 4425 static void treatReturnedNullStringAsNullStringAttributeAttributeGetter(const v8
::PropertyCallbackInfo<v8::Value>& info) | 4419 static void treatReturnedNullStringAsNullStringAttributeAttributeGetter(const v8
::PropertyCallbackInfo<v8::Value>& info) |
| 4426 { | 4420 { |
| 4427 v8::Local<v8::Object> holder = info.Holder(); | 4421 v8::Local<v8::Object> holder = info.Holder(); |
| 4428 TestObject* impl = V8TestObject::toImpl(holder); | 4422 TestObject* impl = V8TestObject::toImpl(holder); |
| 4429 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullString
Attribute(), info.GetIsolate()); | 4423 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullString
Attribute(), info.GetIsolate()); |
| 4430 } | 4424 } |
| 4431 | 4425 |
| 4432 static void treatReturnedNullStringAsNullStringAttributeAttributeGetterCallback(
v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4426 static void treatReturnedNullStringAsNullStringAttributeAttributeGetterCallback(
v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 4433 { | 4427 { |
| 4434 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4428 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 4435 TestObjectV8Internal::treatReturnedNullStringAsNullStringAttributeAttributeG
etter(info); | 4429 TestObjectV8Internal::treatReturnedNullStringAsNullStringAttributeAttributeG
etter(info); |
| 4436 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4430 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 4437 } | 4431 } |
| 4438 | 4432 |
| 4439 static void treatReturnedNullStringAsNullStringAttributeAttributeSetter(v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4433 static void treatReturnedNullStringAsNullStringAttributeAttributeSetter(v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 4440 { | 4434 { |
| 4441 v8::Local<v8::Object> holder = info.Holder(); | 4435 v8::Local<v8::Object> holder = info.Holder(); |
| 4442 TestObject* impl = V8TestObject::toImpl(holder); | 4436 TestObject* impl = V8TestObject::toImpl(holder); |
| 4443 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 4437 TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(
), return); |
| 4444 impl->setTreatReturnedNullStringAsNullStringAttribute(cppValue); | 4438 impl->setTreatReturnedNullStringAsNullStringAttribute(cppValue); |
| 4445 } | 4439 } |
| 4446 | 4440 |
| 4447 static void treatReturnedNullStringAsNullStringAttributeAttributeSetterCallback(
v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI
nfo<void>& info) | 4441 static void treatReturnedNullStringAsNullStringAttributeAttributeSetterCallback(
v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI
nfo<void>& info) |
| 4448 { | 4442 { |
| 4449 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4443 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 4450 TestObjectV8Internal::treatReturnedNullStringAsNullStringAttributeAttributeS
etter(v8Value, info); | 4444 TestObjectV8Internal::treatReturnedNullStringAsNullStringAttributeAttributeS
etter(v8Value, info); |
| 4451 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4445 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 4452 } | 4446 } |
| 4453 | 4447 |
| 4454 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeGetter(con
st v8::PropertyCallbackInfo<v8::Value>& info) | 4448 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeGetter(con
st v8::PropertyCallbackInfo<v8::Value>& info) |
| 4455 { | 4449 { |
| 4456 v8::Local<v8::Object> holder = info.Holder(); | 4450 v8::Local<v8::Object> holder = info.Holder(); |
| 4457 TestObject* impl = V8TestObject::toImpl(holder); | 4451 TestObject* impl = V8TestObject::toImpl(holder); |
| 4458 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef
inedStringAttribute(), info.GetIsolate()); | 4452 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef
inedStringAttribute(), info.GetIsolate()); |
| 4459 } | 4453 } |
| 4460 | 4454 |
| 4461 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeGetterCall
back(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4455 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeGetterCall
back(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 4462 { | 4456 { |
| 4463 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4457 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 4464 TestObjectV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAttri
buteGetter(info); | 4458 TestObjectV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAttri
buteGetter(info); |
| 4465 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4459 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 4466 } | 4460 } |
| 4467 | 4461 |
| 4468 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeSetter(v8:
:Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4462 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeSetter(v8:
:Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 4469 { | 4463 { |
| 4470 v8::Local<v8::Object> holder = info.Holder(); | 4464 v8::Local<v8::Object> holder = info.Holder(); |
| 4471 TestObject* impl = V8TestObject::toImpl(holder); | 4465 TestObject* impl = V8TestObject::toImpl(holder); |
| 4472 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 4466 TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(
), return); |
| 4473 impl->setTreatReturnedNullStringAsUndefinedStringAttribute(cppValue); | 4467 impl->setTreatReturnedNullStringAsUndefinedStringAttribute(cppValue); |
| 4474 } | 4468 } |
| 4475 | 4469 |
| 4476 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeSetterCall
back(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCall
backInfo<void>& info) | 4470 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeSetterCall
back(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCall
backInfo<void>& info) |
| 4477 { | 4471 { |
| 4478 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4472 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 4479 TestObjectV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAttri
buteSetter(v8Value, info); | 4473 TestObjectV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAttri
buteSetter(v8Value, info); |
| 4480 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4474 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 4481 } | 4475 } |
| 4482 | 4476 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 4501 { | 4495 { |
| 4502 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4496 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 4503 TestObjectV8Internal::cachedTreatReturnedNullStringAsUndefinedStringAttribut
eAttributeGetter(info); | 4497 TestObjectV8Internal::cachedTreatReturnedNullStringAsUndefinedStringAttribut
eAttributeGetter(info); |
| 4504 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4498 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 4505 } | 4499 } |
| 4506 | 4500 |
| 4507 static void cachedTreatReturnedNullStringAsUndefinedStringAttributeAttributeSett
er(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4501 static void cachedTreatReturnedNullStringAsUndefinedStringAttributeAttributeSett
er(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 4508 { | 4502 { |
| 4509 v8::Local<v8::Object> holder = info.Holder(); | 4503 v8::Local<v8::Object> holder = info.Holder(); |
| 4510 TestObject* impl = V8TestObject::toImpl(holder); | 4504 TestObject* impl = V8TestObject::toImpl(holder); |
| 4511 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 4505 TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(
), return); |
| 4512 impl->setCachedTreatReturnedNullStringAsUndefinedStringAttribute(cppValue); | 4506 impl->setCachedTreatReturnedNullStringAsUndefinedStringAttribute(cppValue); |
| 4513 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i
nfo.GetIsolate(), "cachedTreatReturnedNullStringAsUndefinedStringAttribute")); /
/ Invalidate the cached value. | 4507 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i
nfo.GetIsolate(), "cachedTreatReturnedNullStringAsUndefinedStringAttribute")); /
/ Invalidate the cached value. |
| 4514 } | 4508 } |
| 4515 | 4509 |
| 4516 static void cachedTreatReturnedNullStringAsUndefinedStringAttributeAttributeSett
erCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::Proper
tyCallbackInfo<void>& info) | 4510 static void cachedTreatReturnedNullStringAsUndefinedStringAttributeAttributeSett
erCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::Proper
tyCallbackInfo<void>& info) |
| 4517 { | 4511 { |
| 4518 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4512 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 4519 TestObjectV8Internal::cachedTreatReturnedNullStringAsUndefinedStringAttribut
eAttributeSetter(v8Value, info); | 4513 TestObjectV8Internal::cachedTreatReturnedNullStringAsUndefinedStringAttribut
eAttributeSetter(v8Value, info); |
| 4520 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4514 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 4521 } | 4515 } |
| (...skipping 10 matching lines...) Expand all Loading... |
| 4532 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4526 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 4533 TestObjectV8Internal::treatReturnedNullStringAsNullByteStringAttributeAttrib
uteGetter(info); | 4527 TestObjectV8Internal::treatReturnedNullStringAsNullByteStringAttributeAttrib
uteGetter(info); |
| 4534 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4528 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 4535 } | 4529 } |
| 4536 | 4530 |
| 4537 static void treatReturnedNullStringAsNullByteStringAttributeAttributeSetter(v8::
Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4531 static void treatReturnedNullStringAsNullByteStringAttributeAttributeSetter(v8::
Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 4538 { | 4532 { |
| 4539 v8::Local<v8::Object> holder = info.Holder(); | 4533 v8::Local<v8::Object> holder = info.Holder(); |
| 4540 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN
ullStringAsNullByteStringAttribute", "TestObject", holder, info.GetIsolate()); | 4534 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN
ullStringAsNullByteStringAttribute", "TestObject", holder, info.GetIsolate()); |
| 4541 TestObject* impl = V8TestObject::toImpl(holder); | 4535 TestObject* impl = V8TestObject::toImpl(holder); |
| 4542 TONATIVE_VOID_EXCEPTIONSTATE(V8StringResource<>, cppValue, toByteString(v8Va
lue, exceptionState), exceptionState); | 4536 TONATIVE_DECLARE(V8StringResource<>, cppValue, convertAndThrow(cppValue = to
ByteString(v8Value, exceptionState), exceptionState), return); |
| 4543 impl->setTreatReturnedNullStringAsNullByteStringAttribute(cppValue); | 4537 impl->setTreatReturnedNullStringAsNullByteStringAttribute(cppValue); |
| 4544 } | 4538 } |
| 4545 | 4539 |
| 4546 static void treatReturnedNullStringAsNullByteStringAttributeAttributeSetterCallb
ack(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallb
ackInfo<void>& info) | 4540 static void treatReturnedNullStringAsNullByteStringAttributeAttributeSetterCallb
ack(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallb
ackInfo<void>& info) |
| 4547 { | 4541 { |
| 4548 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4542 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 4549 TestObjectV8Internal::treatReturnedNullStringAsNullByteStringAttributeAttrib
uteSetter(v8Value, info); | 4543 TestObjectV8Internal::treatReturnedNullStringAsNullByteStringAttributeAttrib
uteSetter(v8Value, info); |
| 4550 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4544 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 4551 } | 4545 } |
| 4552 | 4546 |
| 4553 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeGetter
(const v8::PropertyCallbackInfo<v8::Value>& info) | 4547 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeGetter
(const v8::PropertyCallbackInfo<v8::Value>& info) |
| 4554 { | 4548 { |
| 4555 v8::Local<v8::Object> holder = info.Holder(); | 4549 v8::Local<v8::Object> holder = info.Holder(); |
| 4556 TestObject* impl = V8TestObject::toImpl(holder); | 4550 TestObject* impl = V8TestObject::toImpl(holder); |
| 4557 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef
inedByteStringAttribute(), info.GetIsolate()); | 4551 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef
inedByteStringAttribute(), info.GetIsolate()); |
| 4558 } | 4552 } |
| 4559 | 4553 |
| 4560 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeGetter
Callback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4554 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeGetter
Callback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 4561 { | 4555 { |
| 4562 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4556 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 4563 TestObjectV8Internal::treatReturnedNullStringAsUndefinedByteStringAttributeA
ttributeGetter(info); | 4557 TestObjectV8Internal::treatReturnedNullStringAsUndefinedByteStringAttributeA
ttributeGetter(info); |
| 4564 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4558 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 4565 } | 4559 } |
| 4566 | 4560 |
| 4567 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeSetter
(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4561 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeSetter
(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 4568 { | 4562 { |
| 4569 v8::Local<v8::Object> holder = info.Holder(); | 4563 v8::Local<v8::Object> holder = info.Holder(); |
| 4570 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN
ullStringAsUndefinedByteStringAttribute", "TestObject", holder, info.GetIsolate(
)); | 4564 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN
ullStringAsUndefinedByteStringAttribute", "TestObject", holder, info.GetIsolate(
)); |
| 4571 TestObject* impl = V8TestObject::toImpl(holder); | 4565 TestObject* impl = V8TestObject::toImpl(holder); |
| 4572 TONATIVE_VOID_EXCEPTIONSTATE(V8StringResource<>, cppValue, toByteString(v8Va
lue, exceptionState), exceptionState); | 4566 TONATIVE_DECLARE(V8StringResource<>, cppValue, convertAndThrow(cppValue = to
ByteString(v8Value, exceptionState), exceptionState), return); |
| 4573 impl->setTreatReturnedNullStringAsUndefinedByteStringAttribute(cppValue); | 4567 impl->setTreatReturnedNullStringAsUndefinedByteStringAttribute(cppValue); |
| 4574 } | 4568 } |
| 4575 | 4569 |
| 4576 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeSetter
Callback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::Property
CallbackInfo<void>& info) | 4570 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeSetter
Callback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::Property
CallbackInfo<void>& info) |
| 4577 { | 4571 { |
| 4578 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4572 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 4579 TestObjectV8Internal::treatReturnedNullStringAsUndefinedByteStringAttributeA
ttributeSetter(v8Value, info); | 4573 TestObjectV8Internal::treatReturnedNullStringAsUndefinedByteStringAttributeA
ttributeSetter(v8Value, info); |
| 4580 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4574 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 4581 } | 4575 } |
| 4582 | 4576 |
| 4583 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeGetter(const
v8::PropertyCallbackInfo<v8::Value>& info) | 4577 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeGetter(const
v8::PropertyCallbackInfo<v8::Value>& info) |
| 4584 { | 4578 { |
| 4585 v8::Local<v8::Object> holder = info.Holder(); | 4579 v8::Local<v8::Object> holder = info.Holder(); |
| 4586 TestObject* impl = V8TestObject::toImpl(holder); | 4580 TestObject* impl = V8TestObject::toImpl(holder); |
| 4587 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullUSVStr
ingAttribute(), info.GetIsolate()); | 4581 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullUSVStr
ingAttribute(), info.GetIsolate()); |
| 4588 } | 4582 } |
| 4589 | 4583 |
| 4590 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeGetterCallba
ck(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4584 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeGetterCallba
ck(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 4591 { | 4585 { |
| 4592 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4586 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 4593 TestObjectV8Internal::treatReturnedNullStringAsNullUSVStringAttributeAttribu
teGetter(info); | 4587 TestObjectV8Internal::treatReturnedNullStringAsNullUSVStringAttributeAttribu
teGetter(info); |
| 4594 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4588 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 4595 } | 4589 } |
| 4596 | 4590 |
| 4597 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeSetter(v8::L
ocal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4591 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeSetter(v8::L
ocal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 4598 { | 4592 { |
| 4599 v8::Local<v8::Object> holder = info.Holder(); | 4593 v8::Local<v8::Object> holder = info.Holder(); |
| 4600 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN
ullStringAsNullUSVStringAttribute", "TestObject", holder, info.GetIsolate()); | 4594 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN
ullStringAsNullUSVStringAttribute", "TestObject", holder, info.GetIsolate()); |
| 4601 TestObject* impl = V8TestObject::toImpl(holder); | 4595 TestObject* impl = V8TestObject::toImpl(holder); |
| 4602 TONATIVE_VOID_EXCEPTIONSTATE(V8StringResource<>, cppValue, toUSVString(v8Val
ue, exceptionState), exceptionState); | 4596 TONATIVE_DECLARE(V8StringResource<>, cppValue, convertAndThrow(cppValue = to
USVString(v8Value, exceptionState), exceptionState), return); |
| 4603 impl->setTreatReturnedNullStringAsNullUSVStringAttribute(cppValue); | 4597 impl->setTreatReturnedNullStringAsNullUSVStringAttribute(cppValue); |
| 4604 } | 4598 } |
| 4605 | 4599 |
| 4606 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeSetterCallba
ck(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallba
ckInfo<void>& info) | 4600 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeSetterCallba
ck(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallba
ckInfo<void>& info) |
| 4607 { | 4601 { |
| 4608 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4602 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 4609 TestObjectV8Internal::treatReturnedNullStringAsNullUSVStringAttributeAttribu
teSetter(v8Value, info); | 4603 TestObjectV8Internal::treatReturnedNullStringAsNullUSVStringAttributeAttribu
teSetter(v8Value, info); |
| 4610 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4604 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 4611 } | 4605 } |
| 4612 | 4606 |
| 4613 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeGetter(
const v8::PropertyCallbackInfo<v8::Value>& info) | 4607 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeGetter(
const v8::PropertyCallbackInfo<v8::Value>& info) |
| 4614 { | 4608 { |
| 4615 v8::Local<v8::Object> holder = info.Holder(); | 4609 v8::Local<v8::Object> holder = info.Holder(); |
| 4616 TestObject* impl = V8TestObject::toImpl(holder); | 4610 TestObject* impl = V8TestObject::toImpl(holder); |
| 4617 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef
inedUSVStringAttribute(), info.GetIsolate()); | 4611 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef
inedUSVStringAttribute(), info.GetIsolate()); |
| 4618 } | 4612 } |
| 4619 | 4613 |
| 4620 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeGetterC
allback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4614 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeGetterC
allback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 4621 { | 4615 { |
| 4622 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4616 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 4623 TestObjectV8Internal::treatReturnedNullStringAsUndefinedUSVStringAttributeAt
tributeGetter(info); | 4617 TestObjectV8Internal::treatReturnedNullStringAsUndefinedUSVStringAttributeAt
tributeGetter(info); |
| 4624 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4618 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 4625 } | 4619 } |
| 4626 | 4620 |
| 4627 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeSetter(
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4621 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeSetter(
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 4628 { | 4622 { |
| 4629 v8::Local<v8::Object> holder = info.Holder(); | 4623 v8::Local<v8::Object> holder = info.Holder(); |
| 4630 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN
ullStringAsUndefinedUSVStringAttribute", "TestObject", holder, info.GetIsolate()
); | 4624 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN
ullStringAsUndefinedUSVStringAttribute", "TestObject", holder, info.GetIsolate()
); |
| 4631 TestObject* impl = V8TestObject::toImpl(holder); | 4625 TestObject* impl = V8TestObject::toImpl(holder); |
| 4632 TONATIVE_VOID_EXCEPTIONSTATE(V8StringResource<>, cppValue, toUSVString(v8Val
ue, exceptionState), exceptionState); | 4626 TONATIVE_DECLARE(V8StringResource<>, cppValue, convertAndThrow(cppValue = to
USVString(v8Value, exceptionState), exceptionState), return); |
| 4633 impl->setTreatReturnedNullStringAsUndefinedUSVStringAttribute(cppValue); | 4627 impl->setTreatReturnedNullStringAsUndefinedUSVStringAttribute(cppValue); |
| 4634 } | 4628 } |
| 4635 | 4629 |
| 4636 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeSetterC
allback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyC
allbackInfo<void>& info) | 4630 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeSetterC
allback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyC
allbackInfo<void>& info) |
| 4637 { | 4631 { |
| 4638 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4632 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 4639 TestObjectV8Internal::treatReturnedNullStringAsUndefinedUSVStringAttributeAt
tributeSetter(v8Value, info); | 4633 TestObjectV8Internal::treatReturnedNullStringAsUndefinedUSVStringAttributeAt
tributeSetter(v8Value, info); |
| 4640 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4634 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 4641 } | 4635 } |
| 4642 | 4636 |
| 4643 static void typeCheckingInterfaceFloatAttributeAttributeGetter(const v8::Propert
yCallbackInfo<v8::Value>& info) | 4637 static void typeCheckingInterfaceFloatAttributeAttributeGetter(const v8::Propert
yCallbackInfo<v8::Value>& info) |
| 4644 { | 4638 { |
| 4645 v8::Local<v8::Object> holder = info.Holder(); | 4639 v8::Local<v8::Object> holder = info.Holder(); |
| 4646 TestObject* impl = V8TestObject::toImpl(holder); | 4640 TestObject* impl = V8TestObject::toImpl(holder); |
| 4647 v8SetReturnValue(info, impl->typeCheckingInterfaceFloatAttribute()); | 4641 v8SetReturnValue(info, impl->typeCheckingInterfaceFloatAttribute()); |
| 4648 } | 4642 } |
| 4649 | 4643 |
| 4650 static void typeCheckingInterfaceFloatAttributeAttributeGetterCallback(v8::Local
<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4644 static void typeCheckingInterfaceFloatAttributeAttributeGetterCallback(v8::Local
<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 4651 { | 4645 { |
| 4652 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4646 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 4653 TestObjectV8Internal::typeCheckingInterfaceFloatAttributeAttributeGetter(inf
o); | 4647 TestObjectV8Internal::typeCheckingInterfaceFloatAttributeAttributeGetter(inf
o); |
| 4654 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4648 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 4655 } | 4649 } |
| 4656 | 4650 |
| 4657 static void typeCheckingInterfaceFloatAttributeAttributeSetter(v8::Local<v8::Val
ue> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4651 static void typeCheckingInterfaceFloatAttributeAttributeSetter(v8::Local<v8::Val
ue> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 4658 { | 4652 { |
| 4659 v8::Local<v8::Object> holder = info.Holder(); | 4653 v8::Local<v8::Object> holder = info.Holder(); |
| 4660 ExceptionState exceptionState(ExceptionState::SetterContext, "typeCheckingIn
terfaceFloatAttribute", "TestObject", holder, info.GetIsolate()); | 4654 ExceptionState exceptionState(ExceptionState::SetterContext, "typeCheckingIn
terfaceFloatAttribute", "TestObject", holder, info.GetIsolate()); |
| 4661 TestObject* impl = V8TestObject::toImpl(holder); | 4655 TestObject* impl = V8TestObject::toImpl(holder); |
| 4662 TONATIVE_VOID_EXCEPTIONSTATE(float, cppValue, toFloat(v8Value, exceptionStat
e), exceptionState); | 4656 TONATIVE_DECLARE(float, cppValue, convertAndThrow(cppValue = toFloat(v8Value
, exceptionState), exceptionState), return); |
| 4663 impl->setTypeCheckingInterfaceFloatAttribute(cppValue); | 4657 impl->setTypeCheckingInterfaceFloatAttribute(cppValue); |
| 4664 } | 4658 } |
| 4665 | 4659 |
| 4666 static void typeCheckingInterfaceFloatAttributeAttributeSetterCallback(v8::Local
<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>
& info) | 4660 static void typeCheckingInterfaceFloatAttributeAttributeSetterCallback(v8::Local
<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>
& info) |
| 4667 { | 4661 { |
| 4668 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4662 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 4669 TestObjectV8Internal::typeCheckingInterfaceFloatAttributeAttributeSetter(v8V
alue, info); | 4663 TestObjectV8Internal::typeCheckingInterfaceFloatAttributeAttributeSetter(v8V
alue, info); |
| 4670 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4664 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 4671 } | 4665 } |
| 4672 | 4666 |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4751 { | 4745 { |
| 4752 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4746 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 4753 TestObjectV8Internal::urlStringAttributeAttributeGetter(info); | 4747 TestObjectV8Internal::urlStringAttributeAttributeGetter(info); |
| 4754 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4748 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 4755 } | 4749 } |
| 4756 | 4750 |
| 4757 static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) | 4751 static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) |
| 4758 { | 4752 { |
| 4759 v8::Local<v8::Object> holder = info.Holder(); | 4753 v8::Local<v8::Object> holder = info.Holder(); |
| 4760 TestObject* impl = V8TestObject::toImpl(holder); | 4754 TestObject* impl = V8TestObject::toImpl(holder); |
| 4761 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 4755 TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(
), return); |
| 4762 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4756 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
| 4763 impl->setAttribute(HTMLNames::urlstringattributeAttr, cppValue); | 4757 impl->setAttribute(HTMLNames::urlstringattributeAttr, cppValue); |
| 4764 } | 4758 } |
| 4765 | 4759 |
| 4766 static void urlStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:
:Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4760 static void urlStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:
:Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 4767 { | 4761 { |
| 4768 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4762 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 4769 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4763 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
| 4770 TestObjectV8Internal::urlStringAttributeAttributeSetter(v8Value, info); | 4764 TestObjectV8Internal::urlStringAttributeAttributeSetter(v8Value, info); |
| 4771 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4765 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 4782 { | 4776 { |
| 4783 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4777 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 4784 TestObjectV8Internal::urlStringAttributeAttributeGetter(info); | 4778 TestObjectV8Internal::urlStringAttributeAttributeGetter(info); |
| 4785 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4779 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 4786 } | 4780 } |
| 4787 | 4781 |
| 4788 static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) | 4782 static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) |
| 4789 { | 4783 { |
| 4790 v8::Local<v8::Object> holder = info.Holder(); | 4784 v8::Local<v8::Object> holder = info.Holder(); |
| 4791 TestObject* impl = V8TestObject::toImpl(holder); | 4785 TestObject* impl = V8TestObject::toImpl(holder); |
| 4792 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 4786 TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(
), return); |
| 4793 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4787 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
| 4794 impl->setAttribute(HTMLNames::reflectUrlAttributeAttr, cppValue); | 4788 impl->setAttribute(HTMLNames::reflectUrlAttributeAttr, cppValue); |
| 4795 } | 4789 } |
| 4796 | 4790 |
| 4797 static void urlStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:
:Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4791 static void urlStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:
:Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 4798 { | 4792 { |
| 4799 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4793 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 4800 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4794 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
| 4801 TestObjectV8Internal::urlStringAttributeAttributeSetter(v8Value, info); | 4795 TestObjectV8Internal::urlStringAttributeAttributeSetter(v8Value, info); |
| 4802 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4796 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 4814 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4808 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 4815 TestObjectV8Internal::unforgeableLongAttributeAttributeGetter(info); | 4809 TestObjectV8Internal::unforgeableLongAttributeAttributeGetter(info); |
| 4816 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4810 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 4817 } | 4811 } |
| 4818 | 4812 |
| 4819 static void unforgeableLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value
, const v8::PropertyCallbackInfo<void>& info) | 4813 static void unforgeableLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value
, const v8::PropertyCallbackInfo<void>& info) |
| 4820 { | 4814 { |
| 4821 v8::Local<v8::Object> holder = info.Holder(); | 4815 v8::Local<v8::Object> holder = info.Holder(); |
| 4822 ExceptionState exceptionState(ExceptionState::SetterContext, "unforgeableLon
gAttribute", "TestObject", holder, info.GetIsolate()); | 4816 ExceptionState exceptionState(ExceptionState::SetterContext, "unforgeableLon
gAttribute", "TestObject", holder, info.GetIsolate()); |
| 4823 TestObject* impl = V8TestObject::toImpl(holder); | 4817 TestObject* impl = V8TestObject::toImpl(holder); |
| 4824 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 4818 TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value,
exceptionState), exceptionState), return); |
| 4825 impl->setUnforgeableLongAttribute(cppValue); | 4819 impl->setUnforgeableLongAttribute(cppValue); |
| 4826 } | 4820 } |
| 4827 | 4821 |
| 4828 static void unforgeableLongAttributeAttributeSetterCallback(v8::Local<v8::String
>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4822 static void unforgeableLongAttributeAttributeSetterCallback(v8::Local<v8::String
>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 4829 { | 4823 { |
| 4830 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4824 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 4831 TestObjectV8Internal::unforgeableLongAttributeAttributeSetter(v8Value, info)
; | 4825 TestObjectV8Internal::unforgeableLongAttributeAttributeSetter(v8Value, info)
; |
| 4832 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4826 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 4833 } | 4827 } |
| 4834 | 4828 |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5009 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 5003 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 5010 TestObjectV8Internal::shortAttributeAttributeGetter(info); | 5004 TestObjectV8Internal::shortAttributeAttributeGetter(info); |
| 5011 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5005 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 5012 } | 5006 } |
| 5013 | 5007 |
| 5014 static void shortAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8
::PropertyCallbackInfo<void>& info) | 5008 static void shortAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8
::PropertyCallbackInfo<void>& info) |
| 5015 { | 5009 { |
| 5016 v8::Local<v8::Object> holder = info.Holder(); | 5010 v8::Local<v8::Object> holder = info.Holder(); |
| 5017 ExceptionState exceptionState(ExceptionState::SetterContext, "shortAttribute
", "TestObject", holder, info.GetIsolate()); | 5011 ExceptionState exceptionState(ExceptionState::SetterContext, "shortAttribute
", "TestObject", holder, info.GetIsolate()); |
| 5018 TestObject* impl = V8TestObject::toImpl(holder); | 5012 TestObject* impl = V8TestObject::toImpl(holder); |
| 5019 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt16(v8Value, exceptionState)
, exceptionState); | 5013 TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt16(v8Value,
exceptionState), exceptionState), return); |
| 5020 V8TestObject::PrivateScript::shortAttributeAttributeSetter(toLocalFrame(toFr
ameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, cppValue); | 5014 V8TestObject::PrivateScript::shortAttributeAttributeSetter(toLocalFrame(toFr
ameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, cppValue); |
| 5021 } | 5015 } |
| 5022 | 5016 |
| 5023 static void shortAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 5017 static void shortAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 5024 { | 5018 { |
| 5025 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 5019 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 5026 TestObjectV8Internal::shortAttributeAttributeSetter(v8Value, info); | 5020 TestObjectV8Internal::shortAttributeAttributeSetter(v8Value, info); |
| 5027 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5021 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 5028 } | 5022 } |
| 5029 | 5023 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 5041 { | 5035 { |
| 5042 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 5036 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 5043 TestObjectV8Internal::stringAttributeAttributeGetter(info); | 5037 TestObjectV8Internal::stringAttributeAttributeGetter(info); |
| 5044 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5038 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 5045 } | 5039 } |
| 5046 | 5040 |
| 5047 static void stringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v
8::PropertyCallbackInfo<void>& info) | 5041 static void stringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v
8::PropertyCallbackInfo<void>& info) |
| 5048 { | 5042 { |
| 5049 v8::Local<v8::Object> holder = info.Holder(); | 5043 v8::Local<v8::Object> holder = info.Holder(); |
| 5050 TestObject* impl = V8TestObject::toImpl(holder); | 5044 TestObject* impl = V8TestObject::toImpl(holder); |
| 5051 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 5045 TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(
), return); |
| 5052 V8TestObject::PrivateScript::stringAttributeAttributeSetter(toLocalFrame(toF
rameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, cppValue); | 5046 V8TestObject::PrivateScript::stringAttributeAttributeSetter(toLocalFrame(toF
rameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, cppValue); |
| 5053 } | 5047 } |
| 5054 | 5048 |
| 5055 static void stringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 5049 static void stringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 5056 { | 5050 { |
| 5057 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 5051 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 5058 TestObjectV8Internal::stringAttributeAttributeSetter(v8Value, info); | 5052 TestObjectV8Internal::stringAttributeAttributeSetter(v8Value, info); |
| 5059 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5053 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 5060 } | 5054 } |
| 5061 | 5055 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5102 { | 5096 { |
| 5103 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 5097 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 5104 TestObjectV8Internal::attributeImplementedInCPPForPrivateScriptOnlyAttribute
Getter(info); | 5098 TestObjectV8Internal::attributeImplementedInCPPForPrivateScriptOnlyAttribute
Getter(info); |
| 5105 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5099 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 5106 } | 5100 } |
| 5107 | 5101 |
| 5108 static void attributeImplementedInCPPForPrivateScriptOnlyAttributeSetter(v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 5102 static void attributeImplementedInCPPForPrivateScriptOnlyAttributeSetter(v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 5109 { | 5103 { |
| 5110 v8::Local<v8::Object> holder = info.Holder(); | 5104 v8::Local<v8::Object> holder = info.Holder(); |
| 5111 TestObject* impl = V8TestObject::toImpl(holder); | 5105 TestObject* impl = V8TestObject::toImpl(holder); |
| 5112 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 5106 TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(
), return); |
| 5113 impl->setAttributeImplementedInCPPForPrivateScriptOnly(cppValue); | 5107 impl->setAttributeImplementedInCPPForPrivateScriptOnly(cppValue); |
| 5114 } | 5108 } |
| 5115 | 5109 |
| 5116 static void attributeImplementedInCPPForPrivateScriptOnlyAttributeSetterCallback
(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallback
Info<void>& info) | 5110 static void attributeImplementedInCPPForPrivateScriptOnlyAttributeSetterCallback
(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallback
Info<void>& info) |
| 5117 { | 5111 { |
| 5118 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 5112 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 5119 TestObjectV8Internal::attributeImplementedInCPPForPrivateScriptOnlyAttribute
Setter(v8Value, info); | 5113 TestObjectV8Internal::attributeImplementedInCPPForPrivateScriptOnlyAttribute
Setter(v8Value, info); |
| 5120 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5114 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 5121 } | 5115 } |
| 5122 | 5116 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 5134 { | 5128 { |
| 5135 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 5129 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 5136 TestObjectV8Internal::enumForPrivateScriptAttributeGetter(info); | 5130 TestObjectV8Internal::enumForPrivateScriptAttributeGetter(info); |
| 5137 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5131 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 5138 } | 5132 } |
| 5139 | 5133 |
| 5140 static void enumForPrivateScriptAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::PropertyCallbackInfo<void>& info) | 5134 static void enumForPrivateScriptAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::PropertyCallbackInfo<void>& info) |
| 5141 { | 5135 { |
| 5142 v8::Local<v8::Object> holder = info.Holder(); | 5136 v8::Local<v8::Object> holder = info.Holder(); |
| 5143 TestObject* impl = V8TestObject::toImpl(holder); | 5137 TestObject* impl = V8TestObject::toImpl(holder); |
| 5144 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 5138 TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(
), return); |
| 5145 String string = cppValue; | 5139 String string = cppValue; |
| 5146 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || st
ring == "EnumValue3")) | 5140 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || st
ring == "EnumValue3")) |
| 5147 return; | 5141 return; |
| 5148 V8TestObject::PrivateScript::enumForPrivateScriptAttributeSetter(toLocalFram
e(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, cppValue)
; | 5142 V8TestObject::PrivateScript::enumForPrivateScriptAttributeSetter(toLocalFram
e(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, cppValue)
; |
| 5149 } | 5143 } |
| 5150 | 5144 |
| 5151 static void enumForPrivateScriptAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 5145 static void enumForPrivateScriptAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 5152 { | 5146 { |
| 5153 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 5147 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 5154 TestObjectV8Internal::enumForPrivateScriptAttributeSetter(v8Value, info); | 5148 TestObjectV8Internal::enumForPrivateScriptAttributeSetter(v8Value, info); |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5448 | 5442 |
| 5449 static void voidMethodStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 5443 static void voidMethodStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 5450 { | 5444 { |
| 5451 if (UNLIKELY(info.Length() < 1)) { | 5445 if (UNLIKELY(info.Length() < 1)) { |
| 5452 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "voidMethodStringArg", "TestObject", 1, info.Length()), info.Ge
tIsolate()); | 5446 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "voidMethodStringArg", "TestObject", 1, info.Length()), info.Ge
tIsolate()); |
| 5453 return; | 5447 return; |
| 5454 } | 5448 } |
| 5455 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 5449 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 5456 V8StringResource<> stringArg; | 5450 V8StringResource<> stringArg; |
| 5457 { | 5451 { |
| 5458 TOSTRING_VOID_INTERNAL(stringArg, info[0]); | 5452 TONATIVE_CONVERT((stringArg = info[0]).prepare(), return); |
| 5459 } | 5453 } |
| 5460 impl->voidMethodStringArg(stringArg); | 5454 impl->voidMethodStringArg(stringArg); |
| 5461 } | 5455 } |
| 5462 | 5456 |
| 5463 static void voidMethodStringArgMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 5457 static void voidMethodStringArgMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
| 5464 { | 5458 { |
| 5465 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 5459 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 5466 TestObjectV8Internal::voidMethodStringArgMethod(info); | 5460 TestObjectV8Internal::voidMethodStringArgMethod(info); |
| 5467 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5461 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 5468 } | 5462 } |
| 5469 | 5463 |
| 5470 static void voidMethodByteStringArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 5464 static void voidMethodByteStringArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
| 5471 { | 5465 { |
| 5472 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodB
yteStringArg", "TestObject", info.Holder(), info.GetIsolate()); | 5466 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodB
yteStringArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 5473 if (UNLIKELY(info.Length() < 1)) { | 5467 if (UNLIKELY(info.Length() < 1)) { |
| 5474 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 5468 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 5475 exceptionState.throwIfNeeded(); | 5469 exceptionState.throwIfNeeded(); |
| 5476 return; | 5470 return; |
| 5477 } | 5471 } |
| 5478 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 5472 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 5479 V8StringResource<> stringArg; | 5473 V8StringResource<> stringArg; |
| 5480 { | 5474 { |
| 5481 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(stringArg, toByteString(info[0], e
xceptionState), exceptionState); | 5475 TONATIVE_CONVERT(convertAndThrow(stringArg = toByteString(info[0], excep
tionState), exceptionState), return); |
| 5482 } | 5476 } |
| 5483 impl->voidMethodByteStringArg(stringArg); | 5477 impl->voidMethodByteStringArg(stringArg); |
| 5484 } | 5478 } |
| 5485 | 5479 |
| 5486 static void voidMethodByteStringArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) | 5480 static void voidMethodByteStringArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) |
| 5487 { | 5481 { |
| 5488 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 5482 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 5489 TestObjectV8Internal::voidMethodByteStringArgMethod(info); | 5483 TestObjectV8Internal::voidMethodByteStringArgMethod(info); |
| 5490 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5484 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 5491 } | 5485 } |
| 5492 | 5486 |
| 5493 static void voidMethodUSVStringArgMethod(const v8::FunctionCallbackInfo<v8::Valu
e>& info) | 5487 static void voidMethodUSVStringArgMethod(const v8::FunctionCallbackInfo<v8::Valu
e>& info) |
| 5494 { | 5488 { |
| 5495 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
SVStringArg", "TestObject", info.Holder(), info.GetIsolate()); | 5489 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
SVStringArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 5496 if (UNLIKELY(info.Length() < 1)) { | 5490 if (UNLIKELY(info.Length() < 1)) { |
| 5497 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 5491 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 5498 exceptionState.throwIfNeeded(); | 5492 exceptionState.throwIfNeeded(); |
| 5499 return; | 5493 return; |
| 5500 } | 5494 } |
| 5501 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 5495 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 5502 V8StringResource<> usvStringArg; | 5496 V8StringResource<> usvStringArg; |
| 5503 { | 5497 { |
| 5504 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(usvStringArg, toUSVString(info[0],
exceptionState), exceptionState); | 5498 TONATIVE_CONVERT(convertAndThrow(usvStringArg = toUSVString(info[0], exc
eptionState), exceptionState), return); |
| 5505 } | 5499 } |
| 5506 impl->voidMethodUSVStringArg(usvStringArg); | 5500 impl->voidMethodUSVStringArg(usvStringArg); |
| 5507 } | 5501 } |
| 5508 | 5502 |
| 5509 static void voidMethodUSVStringArgMethodCallback(const v8::FunctionCallbackInfo<
v8::Value>& info) | 5503 static void voidMethodUSVStringArgMethodCallback(const v8::FunctionCallbackInfo<
v8::Value>& info) |
| 5510 { | 5504 { |
| 5511 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 5505 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 5512 TestObjectV8Internal::voidMethodUSVStringArgMethod(info); | 5506 TestObjectV8Internal::voidMethodUSVStringArgMethod(info); |
| 5513 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5507 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 5514 } | 5508 } |
| 5515 | 5509 |
| 5516 static void voidMethodDOMTimeStampArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 5510 static void voidMethodDOMTimeStampArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 5517 { | 5511 { |
| 5518 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
OMTimeStampArg", "TestObject", info.Holder(), info.GetIsolate()); | 5512 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
OMTimeStampArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 5519 if (UNLIKELY(info.Length() < 1)) { | 5513 if (UNLIKELY(info.Length() < 1)) { |
| 5520 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 5514 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 5521 exceptionState.throwIfNeeded(); | 5515 exceptionState.throwIfNeeded(); |
| 5522 return; | 5516 return; |
| 5523 } | 5517 } |
| 5524 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 5518 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 5525 unsigned long long domTimeStampArg; | 5519 unsigned long long domTimeStampArg; |
| 5526 { | 5520 { |
| 5527 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(domTimeStampArg, toUInt64(info[0],
exceptionState), exceptionState); | 5521 TONATIVE_CONVERT(convertAndThrow(domTimeStampArg = toUInt64(info[0], exc
eptionState), exceptionState), return); |
| 5528 } | 5522 } |
| 5529 impl->voidMethodDOMTimeStampArg(domTimeStampArg); | 5523 impl->voidMethodDOMTimeStampArg(domTimeStampArg); |
| 5530 } | 5524 } |
| 5531 | 5525 |
| 5532 static void voidMethodDOMTimeStampArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 5526 static void voidMethodDOMTimeStampArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
| 5533 { | 5527 { |
| 5534 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 5528 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 5535 TestObjectV8Internal::voidMethodDOMTimeStampArgMethod(info); | 5529 TestObjectV8Internal::voidMethodDOMTimeStampArgMethod(info); |
| 5536 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5530 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 5537 } | 5531 } |
| (...skipping 23 matching lines...) Expand all Loading... |
| 5561 { | 5555 { |
| 5562 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodB
yteArg", "TestObject", info.Holder(), info.GetIsolate()); | 5556 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodB
yteArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 5563 if (UNLIKELY(info.Length() < 1)) { | 5557 if (UNLIKELY(info.Length() < 1)) { |
| 5564 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 5558 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 5565 exceptionState.throwIfNeeded(); | 5559 exceptionState.throwIfNeeded(); |
| 5566 return; | 5560 return; |
| 5567 } | 5561 } |
| 5568 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 5562 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 5569 int byteArg; | 5563 int byteArg; |
| 5570 { | 5564 { |
| 5571 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(byteArg, toInt8(info[0], exception
State), exceptionState); | 5565 TONATIVE_CONVERT(convertAndThrow(byteArg = toInt8(info[0], exceptionStat
e), exceptionState), return); |
| 5572 } | 5566 } |
| 5573 impl->voidMethodByteArg(byteArg); | 5567 impl->voidMethodByteArg(byteArg); |
| 5574 } | 5568 } |
| 5575 | 5569 |
| 5576 static void voidMethodByteArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 5570 static void voidMethodByteArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 5577 { | 5571 { |
| 5578 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 5572 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 5579 TestObjectV8Internal::voidMethodByteArgMethod(info); | 5573 TestObjectV8Internal::voidMethodByteArgMethod(info); |
| 5580 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5574 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 5581 } | 5575 } |
| 5582 | 5576 |
| 5583 static void voidMethodDoubleArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 5577 static void voidMethodDoubleArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 5584 { | 5578 { |
| 5585 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
oubleArg", "TestObject", info.Holder(), info.GetIsolate()); | 5579 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
oubleArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 5586 if (UNLIKELY(info.Length() < 1)) { | 5580 if (UNLIKELY(info.Length() < 1)) { |
| 5587 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 5581 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 5588 exceptionState.throwIfNeeded(); | 5582 exceptionState.throwIfNeeded(); |
| 5589 return; | 5583 return; |
| 5590 } | 5584 } |
| 5591 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 5585 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 5592 double doubleArg; | 5586 double doubleArg; |
| 5593 { | 5587 { |
| 5594 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(doubleArg, toDouble(info[0], excep
tionState), exceptionState); | 5588 TONATIVE_CONVERT(convertAndThrow(doubleArg = toDouble(info[0], exception
State), exceptionState), return); |
| 5595 } | 5589 } |
| 5596 impl->voidMethodDoubleArg(doubleArg); | 5590 impl->voidMethodDoubleArg(doubleArg); |
| 5597 } | 5591 } |
| 5598 | 5592 |
| 5599 static void voidMethodDoubleArgMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 5593 static void voidMethodDoubleArgMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
| 5600 { | 5594 { |
| 5601 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 5595 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 5602 TestObjectV8Internal::voidMethodDoubleArgMethod(info); | 5596 TestObjectV8Internal::voidMethodDoubleArgMethod(info); |
| 5603 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5597 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 5604 } | 5598 } |
| 5605 | 5599 |
| 5606 static void voidMethodFloatArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 5600 static void voidMethodFloatArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 5607 { | 5601 { |
| 5608 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodF
loatArg", "TestObject", info.Holder(), info.GetIsolate()); | 5602 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodF
loatArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 5609 if (UNLIKELY(info.Length() < 1)) { | 5603 if (UNLIKELY(info.Length() < 1)) { |
| 5610 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 5604 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 5611 exceptionState.throwIfNeeded(); | 5605 exceptionState.throwIfNeeded(); |
| 5612 return; | 5606 return; |
| 5613 } | 5607 } |
| 5614 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 5608 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 5615 float floatArg; | 5609 float floatArg; |
| 5616 { | 5610 { |
| 5617 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(floatArg, toFloat(info[0], excepti
onState), exceptionState); | 5611 TONATIVE_CONVERT(convertAndThrow(floatArg = toFloat(info[0], exceptionSt
ate), exceptionState), return); |
| 5618 } | 5612 } |
| 5619 impl->voidMethodFloatArg(floatArg); | 5613 impl->voidMethodFloatArg(floatArg); |
| 5620 } | 5614 } |
| 5621 | 5615 |
| 5622 static void voidMethodFloatArgMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) | 5616 static void voidMethodFloatArgMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) |
| 5623 { | 5617 { |
| 5624 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 5618 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 5625 TestObjectV8Internal::voidMethodFloatArgMethod(info); | 5619 TestObjectV8Internal::voidMethodFloatArgMethod(info); |
| 5626 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5620 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 5627 } | 5621 } |
| 5628 | 5622 |
| 5629 static void voidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 5623 static void voidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
| 5630 { | 5624 { |
| 5631 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArg", "TestObject", info.Holder(), info.GetIsolate()); | 5625 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 5632 if (UNLIKELY(info.Length() < 1)) { | 5626 if (UNLIKELY(info.Length() < 1)) { |
| 5633 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 5627 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 5634 exceptionState.throwIfNeeded(); | 5628 exceptionState.throwIfNeeded(); |
| 5635 return; | 5629 return; |
| 5636 } | 5630 } |
| 5637 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 5631 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 5638 int longArg; | 5632 int longArg; |
| 5639 { | 5633 { |
| 5640 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); | 5634 TONATIVE_CONVERT(convertAndThrow(longArg = toInt32(info[0], exceptionSta
te), exceptionState), return); |
| 5641 } | 5635 } |
| 5642 impl->voidMethodLongArg(longArg); | 5636 impl->voidMethodLongArg(longArg); |
| 5643 } | 5637 } |
| 5644 | 5638 |
| 5645 static void voidMethodLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 5639 static void voidMethodLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 5646 { | 5640 { |
| 5647 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 5641 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 5648 TestObjectV8Internal::voidMethodLongArgMethod(info); | 5642 TestObjectV8Internal::voidMethodLongArgMethod(info); |
| 5649 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5643 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 5650 } | 5644 } |
| 5651 | 5645 |
| 5652 static void voidMethodLongLongArgMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) | 5646 static void voidMethodLongLongArgMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) |
| 5653 { | 5647 { |
| 5654 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 5648 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 5655 if (UNLIKELY(info.Length() < 1)) { | 5649 if (UNLIKELY(info.Length() < 1)) { |
| 5656 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 5650 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 5657 exceptionState.throwIfNeeded(); | 5651 exceptionState.throwIfNeeded(); |
| 5658 return; | 5652 return; |
| 5659 } | 5653 } |
| 5660 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 5654 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 5661 long long longLongArg; | 5655 long long longLongArg; |
| 5662 { | 5656 { |
| 5663 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longLongArg, toInt64(info[0], exce
ptionState), exceptionState); | 5657 TONATIVE_CONVERT(convertAndThrow(longLongArg = toInt64(info[0], exceptio
nState), exceptionState), return); |
| 5664 } | 5658 } |
| 5665 impl->voidMethodLongLongArg(longLongArg); | 5659 impl->voidMethodLongLongArg(longLongArg); |
| 5666 } | 5660 } |
| 5667 | 5661 |
| 5668 static void voidMethodLongLongArgMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) | 5662 static void voidMethodLongLongArgMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) |
| 5669 { | 5663 { |
| 5670 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 5664 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 5671 TestObjectV8Internal::voidMethodLongLongArgMethod(info); | 5665 TestObjectV8Internal::voidMethodLongLongArgMethod(info); |
| 5672 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5666 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 5673 } | 5667 } |
| 5674 | 5668 |
| 5675 static void voidMethodOctetArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 5669 static void voidMethodOctetArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 5676 { | 5670 { |
| 5677 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO
ctetArg", "TestObject", info.Holder(), info.GetIsolate()); | 5671 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO
ctetArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 5678 if (UNLIKELY(info.Length() < 1)) { | 5672 if (UNLIKELY(info.Length() < 1)) { |
| 5679 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 5673 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 5680 exceptionState.throwIfNeeded(); | 5674 exceptionState.throwIfNeeded(); |
| 5681 return; | 5675 return; |
| 5682 } | 5676 } |
| 5683 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 5677 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 5684 unsigned octetArg; | 5678 unsigned octetArg; |
| 5685 { | 5679 { |
| 5686 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(octetArg, toUInt8(info[0], excepti
onState), exceptionState); | 5680 TONATIVE_CONVERT(convertAndThrow(octetArg = toUInt8(info[0], exceptionSt
ate), exceptionState), return); |
| 5687 } | 5681 } |
| 5688 impl->voidMethodOctetArg(octetArg); | 5682 impl->voidMethodOctetArg(octetArg); |
| 5689 } | 5683 } |
| 5690 | 5684 |
| 5691 static void voidMethodOctetArgMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) | 5685 static void voidMethodOctetArgMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) |
| 5692 { | 5686 { |
| 5693 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 5687 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 5694 TestObjectV8Internal::voidMethodOctetArgMethod(info); | 5688 TestObjectV8Internal::voidMethodOctetArgMethod(info); |
| 5695 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5689 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 5696 } | 5690 } |
| 5697 | 5691 |
| 5698 static void voidMethodShortArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 5692 static void voidMethodShortArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 5699 { | 5693 { |
| 5700 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
hortArg", "TestObject", info.Holder(), info.GetIsolate()); | 5694 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
hortArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 5701 if (UNLIKELY(info.Length() < 1)) { | 5695 if (UNLIKELY(info.Length() < 1)) { |
| 5702 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 5696 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 5703 exceptionState.throwIfNeeded(); | 5697 exceptionState.throwIfNeeded(); |
| 5704 return; | 5698 return; |
| 5705 } | 5699 } |
| 5706 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 5700 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 5707 int shortArg; | 5701 int shortArg; |
| 5708 { | 5702 { |
| 5709 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(shortArg, toInt16(info[0], excepti
onState), exceptionState); | 5703 TONATIVE_CONVERT(convertAndThrow(shortArg = toInt16(info[0], exceptionSt
ate), exceptionState), return); |
| 5710 } | 5704 } |
| 5711 impl->voidMethodShortArg(shortArg); | 5705 impl->voidMethodShortArg(shortArg); |
| 5712 } | 5706 } |
| 5713 | 5707 |
| 5714 static void voidMethodShortArgMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) | 5708 static void voidMethodShortArgMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) |
| 5715 { | 5709 { |
| 5716 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 5710 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 5717 TestObjectV8Internal::voidMethodShortArgMethod(info); | 5711 TestObjectV8Internal::voidMethodShortArgMethod(info); |
| 5718 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5712 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 5719 } | 5713 } |
| 5720 | 5714 |
| 5721 static void voidMethodUnsignedLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 5715 static void voidMethodUnsignedLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 5722 { | 5716 { |
| 5723 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
nsignedLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 5717 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
nsignedLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 5724 if (UNLIKELY(info.Length() < 1)) { | 5718 if (UNLIKELY(info.Length() < 1)) { |
| 5725 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 5719 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 5726 exceptionState.throwIfNeeded(); | 5720 exceptionState.throwIfNeeded(); |
| 5727 return; | 5721 return; |
| 5728 } | 5722 } |
| 5729 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 5723 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 5730 unsigned unsignedLongArg; | 5724 unsigned unsignedLongArg; |
| 5731 { | 5725 { |
| 5732 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(unsignedLongArg, toUInt32(info[0],
exceptionState), exceptionState); | 5726 TONATIVE_CONVERT(convertAndThrow(unsignedLongArg = toUInt32(info[0], exc
eptionState), exceptionState), return); |
| 5733 } | 5727 } |
| 5734 impl->voidMethodUnsignedLongArg(unsignedLongArg); | 5728 impl->voidMethodUnsignedLongArg(unsignedLongArg); |
| 5735 } | 5729 } |
| 5736 | 5730 |
| 5737 static void voidMethodUnsignedLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 5731 static void voidMethodUnsignedLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
| 5738 { | 5732 { |
| 5739 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 5733 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 5740 TestObjectV8Internal::voidMethodUnsignedLongArgMethod(info); | 5734 TestObjectV8Internal::voidMethodUnsignedLongArgMethod(info); |
| 5741 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5735 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 5742 } | 5736 } |
| 5743 | 5737 |
| 5744 static void voidMethodUnsignedLongLongArgMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) | 5738 static void voidMethodUnsignedLongLongArgMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) |
| 5745 { | 5739 { |
| 5746 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
nsignedLongLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 5740 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
nsignedLongLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 5747 if (UNLIKELY(info.Length() < 1)) { | 5741 if (UNLIKELY(info.Length() < 1)) { |
| 5748 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 5742 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 5749 exceptionState.throwIfNeeded(); | 5743 exceptionState.throwIfNeeded(); |
| 5750 return; | 5744 return; |
| 5751 } | 5745 } |
| 5752 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 5746 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 5753 unsigned long long unsignedLongLongArg; | 5747 unsigned long long unsignedLongLongArg; |
| 5754 { | 5748 { |
| 5755 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(unsignedLongLongArg, toUInt64(info
[0], exceptionState), exceptionState); | 5749 TONATIVE_CONVERT(convertAndThrow(unsignedLongLongArg = toUInt64(info[0],
exceptionState), exceptionState), return); |
| 5756 } | 5750 } |
| 5757 impl->voidMethodUnsignedLongLongArg(unsignedLongLongArg); | 5751 impl->voidMethodUnsignedLongLongArg(unsignedLongLongArg); |
| 5758 } | 5752 } |
| 5759 | 5753 |
| 5760 static void voidMethodUnsignedLongLongArgMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) | 5754 static void voidMethodUnsignedLongLongArgMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
| 5761 { | 5755 { |
| 5762 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 5756 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 5763 TestObjectV8Internal::voidMethodUnsignedLongLongArgMethod(info); | 5757 TestObjectV8Internal::voidMethodUnsignedLongLongArgMethod(info); |
| 5764 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5758 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 5765 } | 5759 } |
| 5766 | 5760 |
| 5767 static void voidMethodUnsignedShortArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) | 5761 static void voidMethodUnsignedShortArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) |
| 5768 { | 5762 { |
| 5769 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
nsignedShortArg", "TestObject", info.Holder(), info.GetIsolate()); | 5763 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
nsignedShortArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 5770 if (UNLIKELY(info.Length() < 1)) { | 5764 if (UNLIKELY(info.Length() < 1)) { |
| 5771 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 5765 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 5772 exceptionState.throwIfNeeded(); | 5766 exceptionState.throwIfNeeded(); |
| 5773 return; | 5767 return; |
| 5774 } | 5768 } |
| 5775 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 5769 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 5776 unsigned unsignedShortArg; | 5770 unsigned unsignedShortArg; |
| 5777 { | 5771 { |
| 5778 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(unsignedShortArg, toUInt16(info[0]
, exceptionState), exceptionState); | 5772 TONATIVE_CONVERT(convertAndThrow(unsignedShortArg = toUInt16(info[0], ex
ceptionState), exceptionState), return); |
| 5779 } | 5773 } |
| 5780 impl->voidMethodUnsignedShortArg(unsignedShortArg); | 5774 impl->voidMethodUnsignedShortArg(unsignedShortArg); |
| 5781 } | 5775 } |
| 5782 | 5776 |
| 5783 static void voidMethodUnsignedShortArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 5777 static void voidMethodUnsignedShortArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
| 5784 { | 5778 { |
| 5785 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 5779 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 5786 TestObjectV8Internal::voidMethodUnsignedShortArgMethod(info); | 5780 TestObjectV8Internal::voidMethodUnsignedShortArgMethod(info); |
| 5787 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5781 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 5788 } | 5782 } |
| (...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()); | 5820 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 5827 if (UNLIKELY(info.Length() < 2)) { | 5821 if (UNLIKELY(info.Length() < 2)) { |
| 5828 setMinimumArityTypeError(exceptionState, 2, info.Length()); | 5822 setMinimumArityTypeError(exceptionState, 2, info.Length()); |
| 5829 exceptionState.throwIfNeeded(); | 5823 exceptionState.throwIfNeeded(); |
| 5830 return; | 5824 return; |
| 5831 } | 5825 } |
| 5832 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 5826 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 5833 int longArg; | 5827 int longArg; |
| 5834 TestInterfaceEmpty* testInterfaceEmptyArg; | 5828 TestInterfaceEmpty* testInterfaceEmptyArg; |
| 5835 { | 5829 { |
| 5836 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); | 5830 TONATIVE_CONVERT(convertAndThrow(longArg = toInt32(info[0], exceptionSta
te), exceptionState), return); |
| 5837 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.G
etIsolate(), info[1]); | 5831 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.G
etIsolate(), info[1]); |
| 5838 } | 5832 } |
| 5839 impl->voidMethodLongArgTestInterfaceEmptyArg(longArg, testInterfaceEmptyArg)
; | 5833 impl->voidMethodLongArgTestInterfaceEmptyArg(longArg, testInterfaceEmptyArg)
; |
| 5840 } | 5834 } |
| 5841 | 5835 |
| 5842 static void voidMethodLongArgTestInterfaceEmptyArgMethodCallback(const v8::Funct
ionCallbackInfo<v8::Value>& info) | 5836 static void voidMethodLongArgTestInterfaceEmptyArgMethodCallback(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
| 5843 { | 5837 { |
| 5844 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 5838 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 5845 TestObjectV8Internal::voidMethodLongArgTestInterfaceEmptyArgMethod(info); | 5839 TestObjectV8Internal::voidMethodLongArgTestInterfaceEmptyArgMethod(info); |
| 5846 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5840 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| (...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6366 { | 6360 { |
| 6367 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodA
rrayLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 6361 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodA
rrayLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 6368 if (UNLIKELY(info.Length() < 1)) { | 6362 if (UNLIKELY(info.Length() < 1)) { |
| 6369 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 6363 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 6370 exceptionState.throwIfNeeded(); | 6364 exceptionState.throwIfNeeded(); |
| 6371 return; | 6365 return; |
| 6372 } | 6366 } |
| 6373 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 6367 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 6374 Vector<int> arrayLongArg; | 6368 Vector<int> arrayLongArg; |
| 6375 { | 6369 { |
| 6376 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arrayLongArg, toImplArray<int>(inf
o[0], 1, info.GetIsolate(), exceptionState), exceptionState); | 6370 TONATIVE_CONVERT(convertAndThrow(arrayLongArg = toImplArray<int>(info[0]
, 1, info.GetIsolate(), exceptionState), exceptionState), return); |
| 6377 } | 6371 } |
| 6378 impl->voidMethodArrayLongArg(arrayLongArg); | 6372 impl->voidMethodArrayLongArg(arrayLongArg); |
| 6379 } | 6373 } |
| 6380 | 6374 |
| 6381 static void voidMethodArrayLongArgMethodCallback(const v8::FunctionCallbackInfo<
v8::Value>& info) | 6375 static void voidMethodArrayLongArgMethodCallback(const v8::FunctionCallbackInfo<
v8::Value>& info) |
| 6382 { | 6376 { |
| 6383 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 6377 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 6384 TestObjectV8Internal::voidMethodArrayLongArgMethod(info); | 6378 TestObjectV8Internal::voidMethodArrayLongArgMethod(info); |
| 6385 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 6379 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 6386 } | 6380 } |
| 6387 | 6381 |
| 6388 static void voidMethodArrayStringArgMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 6382 static void voidMethodArrayStringArgMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
| 6389 { | 6383 { |
| 6390 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodA
rrayStringArg", "TestObject", info.Holder(), info.GetIsolate()); | 6384 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodA
rrayStringArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 6391 if (UNLIKELY(info.Length() < 1)) { | 6385 if (UNLIKELY(info.Length() < 1)) { |
| 6392 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 6386 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 6393 exceptionState.throwIfNeeded(); | 6387 exceptionState.throwIfNeeded(); |
| 6394 return; | 6388 return; |
| 6395 } | 6389 } |
| 6396 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 6390 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 6397 Vector<String> arrayStringArg; | 6391 Vector<String> arrayStringArg; |
| 6398 { | 6392 { |
| 6399 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arrayStringArg, toImplArray<String
>(info[0], 1, info.GetIsolate(), exceptionState), exceptionState); | 6393 TONATIVE_CONVERT(convertAndThrow(arrayStringArg = toImplArray<String>(in
fo[0], 1, info.GetIsolate(), exceptionState), exceptionState), return); |
| 6400 } | 6394 } |
| 6401 impl->voidMethodArrayStringArg(arrayStringArg); | 6395 impl->voidMethodArrayStringArg(arrayStringArg); |
| 6402 } | 6396 } |
| 6403 | 6397 |
| 6404 static void voidMethodArrayStringArgMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) | 6398 static void voidMethodArrayStringArgMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) |
| 6405 { | 6399 { |
| 6406 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 6400 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 6407 TestObjectV8Internal::voidMethodArrayStringArgMethod(info); | 6401 TestObjectV8Internal::voidMethodArrayStringArgMethod(info); |
| 6408 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 6402 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 6409 } | 6403 } |
| 6410 | 6404 |
| 6411 static void voidMethodArrayTestInterfaceEmptyArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 6405 static void voidMethodArrayTestInterfaceEmptyArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
| 6412 { | 6406 { |
| 6413 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodA
rrayTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsolate()); | 6407 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodA
rrayTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 6414 if (UNLIKELY(info.Length() < 1)) { | 6408 if (UNLIKELY(info.Length() < 1)) { |
| 6415 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 6409 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 6416 exceptionState.throwIfNeeded(); | 6410 exceptionState.throwIfNeeded(); |
| 6417 return; | 6411 return; |
| 6418 } | 6412 } |
| 6419 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 6413 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 6420 Vector<RefPtr<TestInterfaceEmpty>> arrayTestInterfaceEmptyArg; | 6414 Vector<RefPtr<TestInterfaceEmpty>> arrayTestInterfaceEmptyArg; |
| 6421 { | 6415 { |
| 6422 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arrayTestInterfaceEmptyArg, (toRef
PtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1, info.GetIso
late(), exceptionState)), exceptionState); | 6416 TONATIVE_CONVERT(convertAndThrow(arrayTestInterfaceEmptyArg = (toRefPtrN
ativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1, info.GetIsolate
(), exceptionState)), exceptionState), return); |
| 6423 } | 6417 } |
| 6424 impl->voidMethodArrayTestInterfaceEmptyArg(arrayTestInterfaceEmptyArg); | 6418 impl->voidMethodArrayTestInterfaceEmptyArg(arrayTestInterfaceEmptyArg); |
| 6425 } | 6419 } |
| 6426 | 6420 |
| 6427 static void voidMethodArrayTestInterfaceEmptyArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) | 6421 static void voidMethodArrayTestInterfaceEmptyArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) |
| 6428 { | 6422 { |
| 6429 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 6423 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 6430 TestObjectV8Internal::voidMethodArrayTestInterfaceEmptyArgMethod(info); | 6424 TestObjectV8Internal::voidMethodArrayTestInterfaceEmptyArgMethod(info); |
| 6431 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 6425 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 6432 } | 6426 } |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6474 { | 6468 { |
| 6475 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
equenceLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 6469 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
equenceLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 6476 if (UNLIKELY(info.Length() < 1)) { | 6470 if (UNLIKELY(info.Length() < 1)) { |
| 6477 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 6471 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 6478 exceptionState.throwIfNeeded(); | 6472 exceptionState.throwIfNeeded(); |
| 6479 return; | 6473 return; |
| 6480 } | 6474 } |
| 6481 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 6475 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 6482 Vector<int> longSequenceArg; | 6476 Vector<int> longSequenceArg; |
| 6483 { | 6477 { |
| 6484 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longSequenceArg, toImplArray<int>(
info[0], 1, info.GetIsolate(), exceptionState), exceptionState); | 6478 TONATIVE_CONVERT(convertAndThrow(longSequenceArg = toImplArray<int>(info
[0], 1, info.GetIsolate(), exceptionState), exceptionState), return); |
| 6485 } | 6479 } |
| 6486 impl->voidMethodSequenceLongArg(longSequenceArg); | 6480 impl->voidMethodSequenceLongArg(longSequenceArg); |
| 6487 } | 6481 } |
| 6488 | 6482 |
| 6489 static void voidMethodSequenceLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 6483 static void voidMethodSequenceLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
| 6490 { | 6484 { |
| 6491 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 6485 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 6492 TestObjectV8Internal::voidMethodSequenceLongArgMethod(info); | 6486 TestObjectV8Internal::voidMethodSequenceLongArgMethod(info); |
| 6493 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 6487 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 6494 } | 6488 } |
| 6495 | 6489 |
| 6496 static void voidMethodSequenceStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 6490 static void voidMethodSequenceStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
| 6497 { | 6491 { |
| 6498 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
equenceStringArg", "TestObject", info.Holder(), info.GetIsolate()); | 6492 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
equenceStringArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 6499 if (UNLIKELY(info.Length() < 1)) { | 6493 if (UNLIKELY(info.Length() < 1)) { |
| 6500 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 6494 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 6501 exceptionState.throwIfNeeded(); | 6495 exceptionState.throwIfNeeded(); |
| 6502 return; | 6496 return; |
| 6503 } | 6497 } |
| 6504 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 6498 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 6505 Vector<String> stringSequenceArg; | 6499 Vector<String> stringSequenceArg; |
| 6506 { | 6500 { |
| 6507 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(stringSequenceArg, toImplArray<Str
ing>(info[0], 1, info.GetIsolate(), exceptionState), exceptionState); | 6501 TONATIVE_CONVERT(convertAndThrow(stringSequenceArg = toImplArray<String>
(info[0], 1, info.GetIsolate(), exceptionState), exceptionState), return); |
| 6508 } | 6502 } |
| 6509 impl->voidMethodSequenceStringArg(stringSequenceArg); | 6503 impl->voidMethodSequenceStringArg(stringSequenceArg); |
| 6510 } | 6504 } |
| 6511 | 6505 |
| 6512 static void voidMethodSequenceStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 6506 static void voidMethodSequenceStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
| 6513 { | 6507 { |
| 6514 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 6508 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 6515 TestObjectV8Internal::voidMethodSequenceStringArgMethod(info); | 6509 TestObjectV8Internal::voidMethodSequenceStringArgMethod(info); |
| 6516 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 6510 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 6517 } | 6511 } |
| 6518 | 6512 |
| 6519 static void voidMethodSequenceTestInterfaceEmptyArgMethod(const v8::FunctionCall
backInfo<v8::Value>& info) | 6513 static void voidMethodSequenceTestInterfaceEmptyArgMethod(const v8::FunctionCall
backInfo<v8::Value>& info) |
| 6520 { | 6514 { |
| 6521 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
equenceTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsolate()); | 6515 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
equenceTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 6522 if (UNLIKELY(info.Length() < 1)) { | 6516 if (UNLIKELY(info.Length() < 1)) { |
| 6523 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 6517 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 6524 exceptionState.throwIfNeeded(); | 6518 exceptionState.throwIfNeeded(); |
| 6525 return; | 6519 return; |
| 6526 } | 6520 } |
| 6527 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 6521 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 6528 Vector<RefPtr<TestInterfaceEmpty>> testInterfaceEmptySequenceArg; | 6522 Vector<RefPtr<TestInterfaceEmpty>> testInterfaceEmptySequenceArg; |
| 6529 { | 6523 { |
| 6530 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(testInterfaceEmptySequenceArg, (to
RefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1, info.Get
Isolate(), exceptionState)), exceptionState); | 6524 TONATIVE_CONVERT(convertAndThrow(testInterfaceEmptySequenceArg = (toRefP
trNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1, info.GetIsol
ate(), exceptionState)), exceptionState), return); |
| 6531 } | 6525 } |
| 6532 impl->voidMethodSequenceTestInterfaceEmptyArg(testInterfaceEmptySequenceArg)
; | 6526 impl->voidMethodSequenceTestInterfaceEmptyArg(testInterfaceEmptySequenceArg)
; |
| 6533 } | 6527 } |
| 6534 | 6528 |
| 6535 static void voidMethodSequenceTestInterfaceEmptyArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) | 6529 static void voidMethodSequenceTestInterfaceEmptyArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
| 6536 { | 6530 { |
| 6537 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 6531 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 6538 TestObjectV8Internal::voidMethodSequenceTestInterfaceEmptyArgMethod(info); | 6532 TestObjectV8Internal::voidMethodSequenceTestInterfaceEmptyArgMethod(info); |
| 6539 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 6533 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 6540 } | 6534 } |
| 6541 | 6535 |
| 6542 static void voidMethodSequenceSequenceDOMStringArgMethod(const v8::FunctionCallb
ackInfo<v8::Value>& info) | 6536 static void voidMethodSequenceSequenceDOMStringArgMethod(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
| 6543 { | 6537 { |
| 6544 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
equenceSequenceDOMStringArg", "TestObject", info.Holder(), info.GetIsolate()); | 6538 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
equenceSequenceDOMStringArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 6545 if (UNLIKELY(info.Length() < 1)) { | 6539 if (UNLIKELY(info.Length() < 1)) { |
| 6546 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 6540 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 6547 exceptionState.throwIfNeeded(); | 6541 exceptionState.throwIfNeeded(); |
| 6548 return; | 6542 return; |
| 6549 } | 6543 } |
| 6550 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 6544 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 6551 Vector<Vector<String>> stringSequenceSequenceArg; | 6545 Vector<Vector<String>> stringSequenceSequenceArg; |
| 6552 { | 6546 { |
| 6553 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(stringSequenceSequenceArg, toImplA
rray<Vector<String>>(info[0], 1, info.GetIsolate(), exceptionState), exceptionSt
ate); | 6547 TONATIVE_CONVERT(convertAndThrow(stringSequenceSequenceArg = toImplArray
<Vector<String>>(info[0], 1, info.GetIsolate(), exceptionState), exceptionState)
, return); |
| 6554 } | 6548 } |
| 6555 impl->voidMethodSequenceSequenceDOMStringArg(stringSequenceSequenceArg); | 6549 impl->voidMethodSequenceSequenceDOMStringArg(stringSequenceSequenceArg); |
| 6556 } | 6550 } |
| 6557 | 6551 |
| 6558 static void voidMethodSequenceSequenceDOMStringArgMethodCallback(const v8::Funct
ionCallbackInfo<v8::Value>& info) | 6552 static void voidMethodSequenceSequenceDOMStringArgMethodCallback(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
| 6559 { | 6553 { |
| 6560 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 6554 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 6561 TestObjectV8Internal::voidMethodSequenceSequenceDOMStringArgMethod(info); | 6555 TestObjectV8Internal::voidMethodSequenceSequenceDOMStringArgMethod(info); |
| 6562 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 6556 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 6563 } | 6557 } |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6686 { | 6680 { |
| 6687 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
oubleOrDOMStringArg", "TestObject", info.Holder(), info.GetIsolate()); | 6681 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
oubleOrDOMStringArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 6688 if (UNLIKELY(info.Length() < 1)) { | 6682 if (UNLIKELY(info.Length() < 1)) { |
| 6689 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 6683 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 6690 exceptionState.throwIfNeeded(); | 6684 exceptionState.throwIfNeeded(); |
| 6691 return; | 6685 return; |
| 6692 } | 6686 } |
| 6693 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 6687 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 6694 DoubleOrString arg; | 6688 DoubleOrString arg; |
| 6695 { | 6689 { |
| 6696 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8DoubleOrString::toImpl(info.G
etIsolate(), info[0], arg, exceptionState), exceptionState); | 6690 TONATIVE_CONVERT(V8DoubleOrString::toImpl(info.GetIsolate(), info[0], ar
g, exceptionState), return exceptionState.throwException()); |
| 6697 } | 6691 } |
| 6698 impl->voidMethodDoubleOrDOMStringArg(arg); | 6692 impl->voidMethodDoubleOrDOMStringArg(arg); |
| 6699 } | 6693 } |
| 6700 | 6694 |
| 6701 static void voidMethodDoubleOrDOMStringArgMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) | 6695 static void voidMethodDoubleOrDOMStringArgMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
| 6702 { | 6696 { |
| 6703 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 6697 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 6704 TestObjectV8Internal::voidMethodDoubleOrDOMStringArgMethod(info); | 6698 TestObjectV8Internal::voidMethodDoubleOrDOMStringArgMethod(info); |
| 6705 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 6699 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 6706 } | 6700 } |
| 6707 | 6701 |
| 6708 static void voidMethodDoubleOrDOMStringOrNullArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 6702 static void voidMethodDoubleOrDOMStringOrNullArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
| 6709 { | 6703 { |
| 6710 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
oubleOrDOMStringOrNullArg", "TestObject", info.Holder(), info.GetIsolate()); | 6704 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
oubleOrDOMStringOrNullArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 6711 if (UNLIKELY(info.Length() < 1)) { | 6705 if (UNLIKELY(info.Length() < 1)) { |
| 6712 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 6706 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 6713 exceptionState.throwIfNeeded(); | 6707 exceptionState.throwIfNeeded(); |
| 6714 return; | 6708 return; |
| 6715 } | 6709 } |
| 6716 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 6710 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 6717 DoubleOrString arg; | 6711 DoubleOrString arg; |
| 6718 { | 6712 { |
| 6719 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8DoubleOrStringOrNull::toImpl(
info.GetIsolate(), info[0], arg, exceptionState), exceptionState); | 6713 TONATIVE_CONVERT(V8DoubleOrStringOrNull::toImpl(info.GetIsolate(), info[
0], arg, exceptionState), return exceptionState.throwException()); |
| 6720 } | 6714 } |
| 6721 impl->voidMethodDoubleOrDOMStringOrNullArg(arg); | 6715 impl->voidMethodDoubleOrDOMStringOrNullArg(arg); |
| 6722 } | 6716 } |
| 6723 | 6717 |
| 6724 static void voidMethodDoubleOrDOMStringOrNullArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) | 6718 static void voidMethodDoubleOrDOMStringOrNullArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) |
| 6725 { | 6719 { |
| 6726 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 6720 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 6727 TestObjectV8Internal::voidMethodDoubleOrDOMStringOrNullArgMethod(info); | 6721 TestObjectV8Internal::voidMethodDoubleOrDOMStringOrNullArgMethod(info); |
| 6728 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 6722 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 6729 } | 6723 } |
| 6730 | 6724 |
| 6731 static void voidMethodDoubleOrNullOrDOMStringArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 6725 static void voidMethodDoubleOrNullOrDOMStringArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
| 6732 { | 6726 { |
| 6733 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
oubleOrNullOrDOMStringArg", "TestObject", info.Holder(), info.GetIsolate()); | 6727 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
oubleOrNullOrDOMStringArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 6734 if (UNLIKELY(info.Length() < 1)) { | 6728 if (UNLIKELY(info.Length() < 1)) { |
| 6735 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 6729 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 6736 exceptionState.throwIfNeeded(); | 6730 exceptionState.throwIfNeeded(); |
| 6737 return; | 6731 return; |
| 6738 } | 6732 } |
| 6739 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 6733 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 6740 DoubleOrString arg; | 6734 DoubleOrString arg; |
| 6741 { | 6735 { |
| 6742 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8DoubleOrStringOrNull::toImpl(
info.GetIsolate(), info[0], arg, exceptionState), exceptionState); | 6736 TONATIVE_CONVERT(V8DoubleOrStringOrNull::toImpl(info.GetIsolate(), info[
0], arg, exceptionState), return exceptionState.throwException()); |
| 6743 } | 6737 } |
| 6744 impl->voidMethodDoubleOrNullOrDOMStringArg(arg); | 6738 impl->voidMethodDoubleOrNullOrDOMStringArg(arg); |
| 6745 } | 6739 } |
| 6746 | 6740 |
| 6747 static void voidMethodDoubleOrNullOrDOMStringArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) | 6741 static void voidMethodDoubleOrNullOrDOMStringArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) |
| 6748 { | 6742 { |
| 6749 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 6743 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 6750 TestObjectV8Internal::voidMethodDoubleOrNullOrDOMStringArgMethod(info); | 6744 TestObjectV8Internal::voidMethodDoubleOrNullOrDOMStringArgMethod(info); |
| 6751 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 6745 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 6752 } | 6746 } |
| 6753 | 6747 |
| 6754 static void voidMethodDOMStringOrArrayBufferOrArrayBufferViewArgMethod(const v8:
:FunctionCallbackInfo<v8::Value>& info) | 6748 static void voidMethodDOMStringOrArrayBufferOrArrayBufferViewArgMethod(const v8:
:FunctionCallbackInfo<v8::Value>& info) |
| 6755 { | 6749 { |
| 6756 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
OMStringOrArrayBufferOrArrayBufferViewArg", "TestObject", info.Holder(), info.Ge
tIsolate()); | 6750 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
OMStringOrArrayBufferOrArrayBufferViewArg", "TestObject", info.Holder(), info.Ge
tIsolate()); |
| 6757 if (UNLIKELY(info.Length() < 1)) { | 6751 if (UNLIKELY(info.Length() < 1)) { |
| 6758 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 6752 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 6759 exceptionState.throwIfNeeded(); | 6753 exceptionState.throwIfNeeded(); |
| 6760 return; | 6754 return; |
| 6761 } | 6755 } |
| 6762 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 6756 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 6763 StringOrArrayBufferOrArrayBufferView arg; | 6757 StringOrArrayBufferOrArrayBufferView arg; |
| 6764 { | 6758 { |
| 6765 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8StringOrArrayBufferOrArrayBuf
ferView::toImpl(info.GetIsolate(), info[0], arg, exceptionState), exceptionState
); | 6759 TONATIVE_CONVERT(V8StringOrArrayBufferOrArrayBufferView::toImpl(info.Get
Isolate(), info[0], arg, exceptionState), return exceptionState.throwException()
); |
| 6766 } | 6760 } |
| 6767 impl->voidMethodDOMStringOrArrayBufferOrArrayBufferViewArg(arg); | 6761 impl->voidMethodDOMStringOrArrayBufferOrArrayBufferViewArg(arg); |
| 6768 } | 6762 } |
| 6769 | 6763 |
| 6770 static void voidMethodDOMStringOrArrayBufferOrArrayBufferViewArgMethodCallback(c
onst v8::FunctionCallbackInfo<v8::Value>& info) | 6764 static void voidMethodDOMStringOrArrayBufferOrArrayBufferViewArgMethodCallback(c
onst v8::FunctionCallbackInfo<v8::Value>& info) |
| 6771 { | 6765 { |
| 6772 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 6766 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 6773 TestObjectV8Internal::voidMethodDOMStringOrArrayBufferOrArrayBufferViewArgMe
thod(info); | 6767 TestObjectV8Internal::voidMethodDOMStringOrArrayBufferOrArrayBufferViewArgMe
thod(info); |
| 6774 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 6768 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 6775 } | 6769 } |
| 6776 | 6770 |
| 6777 static void voidMethodArrayBufferOrArrayBufferViewOrDictionaryArgMethod(const v8
::FunctionCallbackInfo<v8::Value>& info) | 6771 static void voidMethodArrayBufferOrArrayBufferViewOrDictionaryArgMethod(const v8
::FunctionCallbackInfo<v8::Value>& info) |
| 6778 { | 6772 { |
| 6779 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodA
rrayBufferOrArrayBufferViewOrDictionaryArg", "TestObject", info.Holder(), info.G
etIsolate()); | 6773 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodA
rrayBufferOrArrayBufferViewOrDictionaryArg", "TestObject", info.Holder(), info.G
etIsolate()); |
| 6780 if (UNLIKELY(info.Length() < 1)) { | 6774 if (UNLIKELY(info.Length() < 1)) { |
| 6781 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 6775 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 6782 exceptionState.throwIfNeeded(); | 6776 exceptionState.throwIfNeeded(); |
| 6783 return; | 6777 return; |
| 6784 } | 6778 } |
| 6785 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 6779 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 6786 ArrayBufferOrArrayBufferViewOrDictionary arg; | 6780 ArrayBufferOrArrayBufferViewOrDictionary arg; |
| 6787 { | 6781 { |
| 6788 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8ArrayBufferOrArrayBufferViewO
rDictionary::toImpl(info.GetIsolate(), info[0], arg, exceptionState), exceptionS
tate); | 6782 TONATIVE_CONVERT(V8ArrayBufferOrArrayBufferViewOrDictionary::toImpl(info
.GetIsolate(), info[0], arg, exceptionState), return exceptionState.throwExcepti
on()); |
| 6789 } | 6783 } |
| 6790 impl->voidMethodArrayBufferOrArrayBufferViewOrDictionaryArg(arg); | 6784 impl->voidMethodArrayBufferOrArrayBufferViewOrDictionaryArg(arg); |
| 6791 } | 6785 } |
| 6792 | 6786 |
| 6793 static void voidMethodArrayBufferOrArrayBufferViewOrDictionaryArgMethodCallback(
const v8::FunctionCallbackInfo<v8::Value>& info) | 6787 static void voidMethodArrayBufferOrArrayBufferViewOrDictionaryArgMethodCallback(
const v8::FunctionCallbackInfo<v8::Value>& info) |
| 6794 { | 6788 { |
| 6795 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 6789 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 6796 TestObjectV8Internal::voidMethodArrayBufferOrArrayBufferViewOrDictionaryArgM
ethod(info); | 6790 TestObjectV8Internal::voidMethodArrayBufferOrArrayBufferViewOrDictionaryArgM
ethod(info); |
| 6797 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 6791 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 6798 } | 6792 } |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6908 | 6902 |
| 6909 static void voidMethodTestEnumArgMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) | 6903 static void voidMethodTestEnumArgMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) |
| 6910 { | 6904 { |
| 6911 if (UNLIKELY(info.Length() < 1)) { | 6905 if (UNLIKELY(info.Length() < 1)) { |
| 6912 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "voidMethodTestEnumArg", "TestObject", 1, info.Length()), info.
GetIsolate()); | 6906 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "voidMethodTestEnumArg", "TestObject", 1, info.Length()), info.
GetIsolate()); |
| 6913 return; | 6907 return; |
| 6914 } | 6908 } |
| 6915 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 6909 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 6916 V8StringResource<> testEnumTypeArg; | 6910 V8StringResource<> testEnumTypeArg; |
| 6917 { | 6911 { |
| 6918 TOSTRING_VOID_INTERNAL(testEnumTypeArg, info[0]); | 6912 TONATIVE_CONVERT((testEnumTypeArg = info[0]).prepare(), return); |
| 6919 String string = testEnumTypeArg; | 6913 String string = testEnumTypeArg; |
| 6920 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" |
| string == "EnumValue3")) { | 6914 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.")); | 6915 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessage
s::failedToExecute("voidMethodTestEnumArg", "TestObject", "parameter 1 ('" + str
ing + "') is not a valid enum value.")); |
| 6922 return; | 6916 return; |
| 6923 } | 6917 } |
| 6924 } | 6918 } |
| 6925 impl->voidMethodTestEnumArg(testEnumTypeArg); | 6919 impl->voidMethodTestEnumArg(testEnumTypeArg); |
| 6926 } | 6920 } |
| 6927 | 6921 |
| 6928 static void voidMethodTestEnumArgMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) | 6922 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); | 6971 TestObjectV8Internal::nullableTestDictionaryMethodMethod(info); |
| 6978 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 6972 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 6979 } | 6973 } |
| 6980 | 6974 |
| 6981 static void passPermissiveDictionaryMethodMethod(const v8::FunctionCallbackInfo<
v8::Value>& info) | 6975 static void passPermissiveDictionaryMethodMethod(const v8::FunctionCallbackInfo<
v8::Value>& info) |
| 6982 { | 6976 { |
| 6983 ExceptionState exceptionState(ExceptionState::ExecutionContext, "passPermiss
iveDictionaryMethod", "TestObject", info.Holder(), info.GetIsolate()); | 6977 ExceptionState exceptionState(ExceptionState::ExecutionContext, "passPermiss
iveDictionaryMethod", "TestObject", info.Holder(), info.GetIsolate()); |
| 6984 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 6978 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 6985 TestDictionary arg; | 6979 TestDictionary arg; |
| 6986 { | 6980 { |
| 6987 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8TestDictionary::toImpl(info.G
etIsolate(), info[0], arg, exceptionState), exceptionState); | 6981 TONATIVE_CONVERT(V8TestDictionary::toImpl(info.GetIsolate(), info[0], ar
g, exceptionState), return exceptionState.throwException()); |
| 6988 } | 6982 } |
| 6989 impl->passPermissiveDictionaryMethod(arg); | 6983 impl->passPermissiveDictionaryMethod(arg); |
| 6990 } | 6984 } |
| 6991 | 6985 |
| 6992 static void passPermissiveDictionaryMethodMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) | 6986 static void passPermissiveDictionaryMethodMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
| 6993 { | 6987 { |
| 6994 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 6988 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 6995 TestObjectV8Internal::passPermissiveDictionaryMethodMethod(info); | 6989 TestObjectV8Internal::passPermissiveDictionaryMethodMethod(info); |
| 6996 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 6990 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 6997 } | 6991 } |
| 6998 | 6992 |
| 6999 static void nodeFilterMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) | 6993 static void nodeFilterMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) |
| 7000 { | 6994 { |
| 7001 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 6995 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 7002 v8SetReturnValue(info, impl->nodeFilterMethod()); | 6996 v8SetReturnValue(info, impl->nodeFilterMethod()); |
| 7003 } | 6997 } |
| 7004 | 6998 |
| 7005 static void nodeFilterMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 6999 static void nodeFilterMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
| 7006 { | 7000 { |
| 7007 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7001 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 7008 TestObjectV8Internal::nodeFilterMethodMethod(info); | 7002 TestObjectV8Internal::nodeFilterMethodMethod(info); |
| 7009 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7003 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 7010 } | 7004 } |
| 7011 | 7005 |
| 7012 static void promiseMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 7006 static void promiseMethodMethodPromise(const v8::FunctionCallbackInfo<v8::Value>
& info, ExceptionState& exceptionState) |
| 7013 { | 7007 { |
| 7014 ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseMeth
od", "TestObject", info.Holder(), info.GetIsolate()); | |
| 7015 if (UNLIKELY(info.Length() < 3)) { | 7008 if (UNLIKELY(info.Length() < 3)) { |
| 7016 setMinimumArityTypeError(exceptionState, 3, info.Length()); | 7009 setMinimumArityTypeError(exceptionState, 3, info.Length()); |
| 7017 v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.G
etIsolate())).v8Value()); | |
| 7018 return; | 7010 return; |
| 7019 } | 7011 } |
| 7020 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7012 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 7021 int arg1; | 7013 int arg1; |
| 7022 Dictionary arg2; | 7014 Dictionary arg2; |
| 7023 V8StringResource<> arg3; | 7015 V8StringResource<> arg3; |
| 7024 Vector<String> variadic; | 7016 Vector<String> variadic; |
| 7025 { | 7017 { |
| 7026 TONATIVE_VOID_EXCEPTIONSTATE_PROMISE_INTERNAL(arg1, toInt32(info[0], exc
eptionState), exceptionState, info, ScriptState::current(info.GetIsolate())); | 7018 TONATIVE_CONVERT(convertAndCheck(arg1 = toInt32(info[0], exceptionState)
, exceptionState), return); |
| 7027 if (!isUndefinedOrNull(info[1]) && !info[1]->IsObject()) { | 7019 if (!isUndefinedOrNull(info[1]) && !info[1]->IsObject()) { |
| 7028 exceptionState.throwTypeError("parameter 2 ('arg2') is not an object
."); | 7020 exceptionState.throwTypeError("parameter 2 ('arg2') is not an object
."); |
| 7029 v8SetReturnValue(info, exceptionState.reject(ScriptState::current(in
fo.GetIsolate())).v8Value()); | |
| 7030 return; | 7021 return; |
| 7031 } | 7022 } |
| 7032 TONATIVE_VOID_EXCEPTIONSTATE_PROMISE_INTERNAL(arg2, Dictionary(info[1],
info.GetIsolate(), exceptionState), exceptionState, info, ScriptState::current(i
nfo.GetIsolate())); | 7023 TONATIVE_CONVERT(convertAndCheck(arg2 = Dictionary(info[1], info.GetIsol
ate(), exceptionState), exceptionState), return); |
| 7033 TOSTRING_VOID_EXCEPTIONSTATE_PROMISE_INTERNAL(arg3, info[2], exceptionSt
ate, info, ScriptState::current(info.GetIsolate())); | 7024 TONATIVE_CONVERT((arg3 = info[2]).prepare(exceptionState), return); |
| 7034 TONATIVE_VOID_EXCEPTIONSTATE_PROMISE_INTERNAL(variadic, toImplArguments<
String>(info, 3, exceptionState), exceptionState, info, ScriptState::current(inf
o.GetIsolate())); | 7025 TONATIVE_CONVERT(convertAndCheck(variadic = toImplArguments<String>(info
, 3, exceptionState), exceptionState), return); |
| 7035 } | 7026 } |
| 7036 v8SetReturnValue(info, impl->promiseMethod(arg1, arg2, arg3, variadic).v8Val
ue()); | 7027 v8SetReturnValue(info, impl->promiseMethod(arg1, arg2, arg3, variadic).v8Val
ue()); |
| 7037 } | 7028 } |
| 7038 | 7029 |
| 7030 static void promiseMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 7031 { |
| 7032 ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseMeth
od", "TestObject", info.Holder(), info.GetIsolate()); |
| 7033 promiseMethodMethodPromise(info, exceptionState); |
| 7034 if (exceptionState.hadException()) |
| 7035 v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.G
etIsolate())).v8Value()); |
| 7036 } |
| 7037 |
| 7039 static void promiseMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value
>& info) | 7038 static void promiseMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value
>& info) |
| 7040 { | 7039 { |
| 7041 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7040 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 7042 TestObjectV8Internal::promiseMethodMethod(info); | 7041 TestObjectV8Internal::promiseMethodMethod(info); |
| 7043 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7042 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 7044 } | 7043 } |
| 7045 | 7044 |
| 7046 static void promiseMethodWithoutExceptionStateMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 7045 static void promiseMethodWithoutExceptionStateMethodPromise(const v8::FunctionCa
llbackInfo<v8::Value>& info, ExceptionState& exceptionState) |
| 7047 { | 7046 { |
| 7048 ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseMeth
odWithoutExceptionState", "TestObject", info.Holder(), info.GetIsolate()); | |
| 7049 if (UNLIKELY(info.Length() < 1)) { | 7047 if (UNLIKELY(info.Length() < 1)) { |
| 7050 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 7048 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 7051 v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.G
etIsolate())).v8Value()); | |
| 7052 return; | 7049 return; |
| 7053 } | 7050 } |
| 7054 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7051 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 7055 Dictionary arg1; | 7052 Dictionary arg1; |
| 7056 { | 7053 { |
| 7057 if (!isUndefinedOrNull(info[0]) && !info[0]->IsObject()) { | 7054 if (!isUndefinedOrNull(info[0]) && !info[0]->IsObject()) { |
| 7058 exceptionState.throwTypeError("parameter 1 ('arg1') is not an object
."); | 7055 exceptionState.throwTypeError("parameter 1 ('arg1') is not an object
."); |
| 7059 v8SetReturnValue(info, exceptionState.reject(ScriptState::current(in
fo.GetIsolate())).v8Value()); | |
| 7060 return; | 7056 return; |
| 7061 } | 7057 } |
| 7062 TONATIVE_VOID_EXCEPTIONSTATE_PROMISE_INTERNAL(arg1, Dictionary(info[0],
info.GetIsolate(), exceptionState), exceptionState, info, ScriptState::current(i
nfo.GetIsolate())); | 7058 TONATIVE_CONVERT(convertAndCheck(arg1 = Dictionary(info[0], info.GetIsol
ate(), exceptionState), exceptionState), return); |
| 7063 } | 7059 } |
| 7064 v8SetReturnValue(info, impl->promiseMethodWithoutExceptionState(arg1).v8Valu
e()); | 7060 v8SetReturnValue(info, impl->promiseMethodWithoutExceptionState(arg1).v8Valu
e()); |
| 7065 } | 7061 } |
| 7066 | 7062 |
| 7063 static void promiseMethodWithoutExceptionStateMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
| 7064 { |
| 7065 ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseMeth
odWithoutExceptionState", "TestObject", info.Holder(), info.GetIsolate()); |
| 7066 promiseMethodWithoutExceptionStateMethodPromise(info, exceptionState); |
| 7067 if (exceptionState.hadException()) |
| 7068 v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.G
etIsolate())).v8Value()); |
| 7069 } |
| 7070 |
| 7067 static void promiseMethodWithoutExceptionStateMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) | 7071 static void promiseMethodWithoutExceptionStateMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) |
| 7068 { | 7072 { |
| 7069 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7073 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 7070 TestObjectV8Internal::promiseMethodWithoutExceptionStateMethod(info); | 7074 TestObjectV8Internal::promiseMethodWithoutExceptionStateMethod(info); |
| 7071 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7075 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 7072 } | 7076 } |
| 7073 | 7077 |
| 7074 static void serializedScriptValueMethodMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 7078 static void serializedScriptValueMethodMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
| 7075 { | 7079 { |
| 7076 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7080 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 7106 return; | 7110 return; |
| 7107 } | 7111 } |
| 7108 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7112 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 7109 Dictionary dictionaryArg; | 7113 Dictionary dictionaryArg; |
| 7110 { | 7114 { |
| 7111 if (!isUndefinedOrNull(info[0]) && !info[0]->IsObject()) { | 7115 if (!isUndefinedOrNull(info[0]) && !info[0]->IsObject()) { |
| 7112 exceptionState.throwTypeError("parameter 1 ('dictionaryArg') is not
an object."); | 7116 exceptionState.throwTypeError("parameter 1 ('dictionaryArg') is not
an object."); |
| 7113 exceptionState.throwIfNeeded(); | 7117 exceptionState.throwIfNeeded(); |
| 7114 return; | 7118 return; |
| 7115 } | 7119 } |
| 7116 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(dictionaryArg, Dictionary(info[0],
info.GetIsolate(), exceptionState), exceptionState); | 7120 TONATIVE_CONVERT(convertAndThrow(dictionaryArg = Dictionary(info[0], inf
o.GetIsolate(), exceptionState), exceptionState), return); |
| 7117 } | 7121 } |
| 7118 impl->voidMethodDictionaryArg(dictionaryArg); | 7122 impl->voidMethodDictionaryArg(dictionaryArg); |
| 7119 } | 7123 } |
| 7120 | 7124 |
| 7121 static void voidMethodDictionaryArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) | 7125 static void voidMethodDictionaryArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) |
| 7122 { | 7126 { |
| 7123 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7127 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 7124 TestObjectV8Internal::voidMethodDictionaryArgMethod(info); | 7128 TestObjectV8Internal::voidMethodDictionaryArgMethod(info); |
| 7125 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7129 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 7126 } | 7130 } |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7175 { | 7179 { |
| 7176 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
erializedScriptValueArg", "TestObject", info.Holder(), info.GetIsolate()); | 7180 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
erializedScriptValueArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 7177 if (UNLIKELY(info.Length() < 1)) { | 7181 if (UNLIKELY(info.Length() < 1)) { |
| 7178 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 7182 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 7179 exceptionState.throwIfNeeded(); | 7183 exceptionState.throwIfNeeded(); |
| 7180 return; | 7184 return; |
| 7181 } | 7185 } |
| 7182 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7186 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 7183 RefPtr<SerializedScriptValue> serializedScriptValueArg; | 7187 RefPtr<SerializedScriptValue> serializedScriptValueArg; |
| 7184 { | 7188 { |
| 7185 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(serializedScriptValueArg, Serializ
edScriptValueFactory::instance().create(info[0], 0, 0, exceptionState, info.GetI
solate()), exceptionState); | 7189 TONATIVE_CONVERT(convertAndThrow(serializedScriptValueArg = SerializedSc
riptValueFactory::instance().create(info[0], 0, 0, exceptionState, info.GetIsola
te()), exceptionState), return); |
| 7186 } | 7190 } |
| 7187 impl->voidMethodSerializedScriptValueArg(serializedScriptValueArg); | 7191 impl->voidMethodSerializedScriptValueArg(serializedScriptValueArg); |
| 7188 } | 7192 } |
| 7189 | 7193 |
| 7190 static void voidMethodSerializedScriptValueArgMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) | 7194 static void voidMethodSerializedScriptValueArgMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) |
| 7191 { | 7195 { |
| 7192 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7196 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 7193 TestObjectV8Internal::voidMethodSerializedScriptValueArgMethod(info); | 7197 TestObjectV8Internal::voidMethodSerializedScriptValueArgMethod(info); |
| 7194 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7198 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 7195 } | 7199 } |
| (...skipping 23 matching lines...) Expand all Loading... |
| 7219 { | 7223 { |
| 7220 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
ictionarySequenceArg", "TestObject", info.Holder(), info.GetIsolate()); | 7224 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
ictionarySequenceArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 7221 if (UNLIKELY(info.Length() < 1)) { | 7225 if (UNLIKELY(info.Length() < 1)) { |
| 7222 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 7226 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 7223 exceptionState.throwIfNeeded(); | 7227 exceptionState.throwIfNeeded(); |
| 7224 return; | 7228 return; |
| 7225 } | 7229 } |
| 7226 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7230 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 7227 Vector<Dictionary> dictionarySequenceArg; | 7231 Vector<Dictionary> dictionarySequenceArg; |
| 7228 { | 7232 { |
| 7229 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(dictionarySequenceArg, toImplArray
<Dictionary>(info[0], 1, info.GetIsolate(), exceptionState), exceptionState); | 7233 TONATIVE_CONVERT(convertAndThrow(dictionarySequenceArg = toImplArray<Dic
tionary>(info[0], 1, info.GetIsolate(), exceptionState), exceptionState), return
); |
| 7230 } | 7234 } |
| 7231 impl->voidMethodDictionarySequenceArg(dictionarySequenceArg); | 7235 impl->voidMethodDictionarySequenceArg(dictionarySequenceArg); |
| 7232 } | 7236 } |
| 7233 | 7237 |
| 7234 static void voidMethodDictionarySequenceArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) | 7238 static void voidMethodDictionarySequenceArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
| 7235 { | 7239 { |
| 7236 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7240 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 7237 TestObjectV8Internal::voidMethodDictionarySequenceArgMethod(info); | 7241 TestObjectV8Internal::voidMethodDictionarySequenceArgMethod(info); |
| 7238 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7242 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 7239 } | 7243 } |
| 7240 | 7244 |
| 7241 static void voidMethodStringArgLongArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) | 7245 static void voidMethodStringArgLongArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) |
| 7242 { | 7246 { |
| 7243 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
tringArgLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 7247 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
tringArgLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 7244 if (UNLIKELY(info.Length() < 2)) { | 7248 if (UNLIKELY(info.Length() < 2)) { |
| 7245 setMinimumArityTypeError(exceptionState, 2, info.Length()); | 7249 setMinimumArityTypeError(exceptionState, 2, info.Length()); |
| 7246 exceptionState.throwIfNeeded(); | 7250 exceptionState.throwIfNeeded(); |
| 7247 return; | 7251 return; |
| 7248 } | 7252 } |
| 7249 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7253 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 7250 V8StringResource<> stringArg; | 7254 V8StringResource<> stringArg; |
| 7251 int longArg; | 7255 int longArg; |
| 7252 { | 7256 { |
| 7253 TOSTRING_VOID_INTERNAL(stringArg, info[0]); | 7257 TONATIVE_CONVERT((stringArg = info[0]).prepare(), return); |
| 7254 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[1], exceptio
nState), exceptionState); | 7258 TONATIVE_CONVERT(convertAndThrow(longArg = toInt32(info[1], exceptionSta
te), exceptionState), return); |
| 7255 } | 7259 } |
| 7256 impl->voidMethodStringArgLongArg(stringArg, longArg); | 7260 impl->voidMethodStringArgLongArg(stringArg, longArg); |
| 7257 } | 7261 } |
| 7258 | 7262 |
| 7259 static void voidMethodStringArgLongArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 7263 static void voidMethodStringArgLongArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
| 7260 { | 7264 { |
| 7261 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7265 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 7262 TestObjectV8Internal::voidMethodStringArgLongArgMethod(info); | 7266 TestObjectV8Internal::voidMethodStringArgLongArgMethod(info); |
| 7263 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7267 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 7264 } | 7268 } |
| 7265 | 7269 |
| 7266 static void voidMethodOptionalStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 7270 static void voidMethodOptionalStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
| 7267 { | 7271 { |
| 7268 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7272 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 7269 V8StringResource<> optionalStringArg; | 7273 V8StringResource<> optionalStringArg; |
| 7270 { | 7274 { |
| 7271 if (UNLIKELY(info.Length() <= 0)) { | 7275 if (UNLIKELY(info.Length() <= 0)) { |
| 7272 impl->voidMethodOptionalStringArg(); | 7276 impl->voidMethodOptionalStringArg(); |
| 7273 return; | 7277 return; |
| 7274 } | 7278 } |
| 7275 TOSTRING_VOID_INTERNAL(optionalStringArg, info[0]); | 7279 TONATIVE_CONVERT((optionalStringArg = info[0]).prepare(), return); |
| 7276 } | 7280 } |
| 7277 impl->voidMethodOptionalStringArg(optionalStringArg); | 7281 impl->voidMethodOptionalStringArg(optionalStringArg); |
| 7278 } | 7282 } |
| 7279 | 7283 |
| 7280 static void voidMethodOptionalStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 7284 static void voidMethodOptionalStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
| 7281 { | 7285 { |
| 7282 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7286 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 7283 TestObjectV8Internal::voidMethodOptionalStringArgMethod(info); | 7287 TestObjectV8Internal::voidMethodOptionalStringArgMethod(info); |
| 7284 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7288 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 7285 } | 7289 } |
| (...skipping 22 matching lines...) Expand all Loading... |
| 7308 static void voidMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 7312 static void voidMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 7309 { | 7313 { |
| 7310 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO
ptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 7314 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO
ptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 7311 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7315 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 7312 int optionalLongArg; | 7316 int optionalLongArg; |
| 7313 { | 7317 { |
| 7314 if (UNLIKELY(info.Length() <= 0)) { | 7318 if (UNLIKELY(info.Length() <= 0)) { |
| 7315 impl->voidMethodOptionalLongArg(); | 7319 impl->voidMethodOptionalLongArg(); |
| 7316 return; | 7320 return; |
| 7317 } | 7321 } |
| 7318 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0],
exceptionState), exceptionState); | 7322 TONATIVE_CONVERT(convertAndThrow(optionalLongArg = toInt32(info[0], exce
ptionState), exceptionState), return); |
| 7319 } | 7323 } |
| 7320 impl->voidMethodOptionalLongArg(optionalLongArg); | 7324 impl->voidMethodOptionalLongArg(optionalLongArg); |
| 7321 } | 7325 } |
| 7322 | 7326 |
| 7323 static void voidMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 7327 static void voidMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
| 7324 { | 7328 { |
| 7325 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7329 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 7326 TestObjectV8Internal::voidMethodOptionalLongArgMethod(info); | 7330 TestObjectV8Internal::voidMethodOptionalLongArgMethod(info); |
| 7327 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7331 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 7328 } | 7332 } |
| 7329 | 7333 |
| 7330 static void stringMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 7334 static void stringMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
| 7331 { | 7335 { |
| 7332 ExceptionState exceptionState(ExceptionState::ExecutionContext, "stringMetho
dOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 7336 ExceptionState exceptionState(ExceptionState::ExecutionContext, "stringMetho
dOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 7333 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7337 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 7334 int optionalLongArg; | 7338 int optionalLongArg; |
| 7335 { | 7339 { |
| 7336 if (UNLIKELY(info.Length() <= 0)) { | 7340 if (UNLIKELY(info.Length() <= 0)) { |
| 7337 v8SetReturnValueString(info, impl->stringMethodOptionalLongArg(), in
fo.GetIsolate()); | 7341 v8SetReturnValueString(info, impl->stringMethodOptionalLongArg(), in
fo.GetIsolate()); |
| 7338 return; | 7342 return; |
| 7339 } | 7343 } |
| 7340 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0],
exceptionState), exceptionState); | 7344 TONATIVE_CONVERT(convertAndThrow(optionalLongArg = toInt32(info[0], exce
ptionState), exceptionState), return); |
| 7341 } | 7345 } |
| 7342 v8SetReturnValueString(info, impl->stringMethodOptionalLongArg(optionalLongA
rg), info.GetIsolate()); | 7346 v8SetReturnValueString(info, impl->stringMethodOptionalLongArg(optionalLongA
rg), info.GetIsolate()); |
| 7343 } | 7347 } |
| 7344 | 7348 |
| 7345 static void stringMethodOptionalLongArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 7349 static void stringMethodOptionalLongArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
| 7346 { | 7350 { |
| 7347 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7351 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 7348 TestObjectV8Internal::stringMethodOptionalLongArgMethod(info); | 7352 TestObjectV8Internal::stringMethodOptionalLongArgMethod(info); |
| 7349 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7353 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 7350 } | 7354 } |
| 7351 | 7355 |
| 7352 static void testInterfaceEmptyMethodOptionalLongArgMethod(const v8::FunctionCall
backInfo<v8::Value>& info) | 7356 static void testInterfaceEmptyMethodOptionalLongArgMethod(const v8::FunctionCall
backInfo<v8::Value>& info) |
| 7353 { | 7357 { |
| 7354 ExceptionState exceptionState(ExceptionState::ExecutionContext, "testInterfa
ceEmptyMethodOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 7358 ExceptionState exceptionState(ExceptionState::ExecutionContext, "testInterfa
ceEmptyMethodOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 7355 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7359 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 7356 int optionalLongArg; | 7360 int optionalLongArg; |
| 7357 { | 7361 { |
| 7358 if (UNLIKELY(info.Length() <= 0)) { | 7362 if (UNLIKELY(info.Length() <= 0)) { |
| 7359 v8SetReturnValue(info, impl->testInterfaceEmptyMethodOptionalLongArg
()); | 7363 v8SetReturnValue(info, impl->testInterfaceEmptyMethodOptionalLongArg
()); |
| 7360 return; | 7364 return; |
| 7361 } | 7365 } |
| 7362 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0],
exceptionState), exceptionState); | 7366 TONATIVE_CONVERT(convertAndThrow(optionalLongArg = toInt32(info[0], exce
ptionState), exceptionState), return); |
| 7363 } | 7367 } |
| 7364 v8SetReturnValue(info, impl->testInterfaceEmptyMethodOptionalLongArg(optiona
lLongArg)); | 7368 v8SetReturnValue(info, impl->testInterfaceEmptyMethodOptionalLongArg(optiona
lLongArg)); |
| 7365 } | 7369 } |
| 7366 | 7370 |
| 7367 static void testInterfaceEmptyMethodOptionalLongArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) | 7371 static void testInterfaceEmptyMethodOptionalLongArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
| 7368 { | 7372 { |
| 7369 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7373 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 7370 TestObjectV8Internal::testInterfaceEmptyMethodOptionalLongArgMethod(info); | 7374 TestObjectV8Internal::testInterfaceEmptyMethodOptionalLongArgMethod(info); |
| 7371 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7375 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 7372 } | 7376 } |
| 7373 | 7377 |
| 7374 static void longMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 7378 static void longMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 7375 { | 7379 { |
| 7376 ExceptionState exceptionState(ExceptionState::ExecutionContext, "longMethodO
ptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 7380 ExceptionState exceptionState(ExceptionState::ExecutionContext, "longMethodO
ptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 7377 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7381 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 7378 int optionalLongArg; | 7382 int optionalLongArg; |
| 7379 { | 7383 { |
| 7380 if (UNLIKELY(info.Length() <= 0)) { | 7384 if (UNLIKELY(info.Length() <= 0)) { |
| 7381 v8SetReturnValueInt(info, impl->longMethodOptionalLongArg()); | 7385 v8SetReturnValueInt(info, impl->longMethodOptionalLongArg()); |
| 7382 return; | 7386 return; |
| 7383 } | 7387 } |
| 7384 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0],
exceptionState), exceptionState); | 7388 TONATIVE_CONVERT(convertAndThrow(optionalLongArg = toInt32(info[0], exce
ptionState), exceptionState), return); |
| 7385 } | 7389 } |
| 7386 v8SetReturnValueInt(info, impl->longMethodOptionalLongArg(optionalLongArg)); | 7390 v8SetReturnValueInt(info, impl->longMethodOptionalLongArg(optionalLongArg)); |
| 7387 } | 7391 } |
| 7388 | 7392 |
| 7389 static void longMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 7393 static void longMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
| 7390 { | 7394 { |
| 7391 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7395 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 7392 TestObjectV8Internal::longMethodOptionalLongArgMethod(info); | 7396 TestObjectV8Internal::longMethodOptionalLongArgMethod(info); |
| 7393 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7397 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 7394 } | 7398 } |
| 7395 | 7399 |
| 7396 static void voidMethodLongArgOptionalLongArgMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) | 7400 static void voidMethodLongArgOptionalLongArgMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) |
| 7397 { | 7401 { |
| 7398 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 7402 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 7399 if (UNLIKELY(info.Length() < 1)) { | 7403 if (UNLIKELY(info.Length() < 1)) { |
| 7400 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 7404 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 7401 exceptionState.throwIfNeeded(); | 7405 exceptionState.throwIfNeeded(); |
| 7402 return; | 7406 return; |
| 7403 } | 7407 } |
| 7404 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7408 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 7405 int longArg; | 7409 int longArg; |
| 7406 int optionalLongArg; | 7410 int optionalLongArg; |
| 7407 { | 7411 { |
| 7408 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); | 7412 TONATIVE_CONVERT(convertAndThrow(longArg = toInt32(info[0], exceptionSta
te), exceptionState), return); |
| 7409 if (UNLIKELY(info.Length() <= 1)) { | 7413 if (UNLIKELY(info.Length() <= 1)) { |
| 7410 impl->voidMethodLongArgOptionalLongArg(longArg); | 7414 impl->voidMethodLongArgOptionalLongArg(longArg); |
| 7411 return; | 7415 return; |
| 7412 } | 7416 } |
| 7413 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[1],
exceptionState), exceptionState); | 7417 TONATIVE_CONVERT(convertAndThrow(optionalLongArg = toInt32(info[1], exce
ptionState), exceptionState), return); |
| 7414 } | 7418 } |
| 7415 impl->voidMethodLongArgOptionalLongArg(longArg, optionalLongArg); | 7419 impl->voidMethodLongArgOptionalLongArg(longArg, optionalLongArg); |
| 7416 } | 7420 } |
| 7417 | 7421 |
| 7418 static void voidMethodLongArgOptionalLongArgMethodCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) | 7422 static void voidMethodLongArgOptionalLongArgMethodCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
| 7419 { | 7423 { |
| 7420 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7424 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 7421 TestObjectV8Internal::voidMethodLongArgOptionalLongArgMethod(info); | 7425 TestObjectV8Internal::voidMethodLongArgOptionalLongArgMethod(info); |
| 7422 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7426 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 7423 } | 7427 } |
| 7424 | 7428 |
| 7425 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethod(const v8::Func
tionCallbackInfo<v8::Value>& info) | 7429 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethod(const v8::Func
tionCallbackInfo<v8::Value>& info) |
| 7426 { | 7430 { |
| 7427 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgOptionalLongArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsol
ate()); | 7431 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgOptionalLongArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsol
ate()); |
| 7428 if (UNLIKELY(info.Length() < 1)) { | 7432 if (UNLIKELY(info.Length() < 1)) { |
| 7429 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 7433 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 7430 exceptionState.throwIfNeeded(); | 7434 exceptionState.throwIfNeeded(); |
| 7431 return; | 7435 return; |
| 7432 } | 7436 } |
| 7433 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7437 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 7434 int longArg; | 7438 int longArg; |
| 7435 int optionalLongArg1; | 7439 int optionalLongArg1; |
| 7436 int optionalLongArg2; | 7440 int optionalLongArg2; |
| 7437 { | 7441 { |
| 7438 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); | 7442 TONATIVE_CONVERT(convertAndThrow(longArg = toInt32(info[0], exceptionSta
te), exceptionState), return); |
| 7439 if (UNLIKELY(info.Length() <= 1)) { | 7443 if (UNLIKELY(info.Length() <= 1)) { |
| 7440 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg); | 7444 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg); |
| 7441 return; | 7445 return; |
| 7442 } | 7446 } |
| 7443 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg1, toInt32(info[1],
exceptionState), exceptionState); | 7447 TONATIVE_CONVERT(convertAndThrow(optionalLongArg1 = toInt32(info[1], exc
eptionState), exceptionState), return); |
| 7444 if (UNLIKELY(info.Length() <= 2)) { | 7448 if (UNLIKELY(info.Length() <= 2)) { |
| 7445 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optio
nalLongArg1); | 7449 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optio
nalLongArg1); |
| 7446 return; | 7450 return; |
| 7447 } | 7451 } |
| 7448 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg2, toInt32(info[2],
exceptionState), exceptionState); | 7452 TONATIVE_CONVERT(convertAndThrow(optionalLongArg2 = toInt32(info[2], exc
eptionState), exceptionState), return); |
| 7449 } | 7453 } |
| 7450 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optionalLongA
rg1, optionalLongArg2); | 7454 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optionalLongA
rg1, optionalLongArg2); |
| 7451 } | 7455 } |
| 7452 | 7456 |
| 7453 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethodCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) | 7457 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethodCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) |
| 7454 { | 7458 { |
| 7455 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7459 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 7456 TestObjectV8Internal::voidMethodLongArgOptionalLongArgOptionalLongArgMethod(
info); | 7460 TestObjectV8Internal::voidMethodLongArgOptionalLongArgOptionalLongArgMethod(
info); |
| 7457 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7461 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 7458 } | 7462 } |
| 7459 | 7463 |
| 7460 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethod(const v8::Funct
ionCallbackInfo<v8::Value>& info) | 7464 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethod(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
| 7461 { | 7465 { |
| 7462 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgOptionalTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsola
te()); | 7466 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgOptionalTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsola
te()); |
| 7463 if (UNLIKELY(info.Length() < 1)) { | 7467 if (UNLIKELY(info.Length() < 1)) { |
| 7464 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 7468 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 7465 exceptionState.throwIfNeeded(); | 7469 exceptionState.throwIfNeeded(); |
| 7466 return; | 7470 return; |
| 7467 } | 7471 } |
| 7468 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7472 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 7469 int longArg; | 7473 int longArg; |
| 7470 TestInterfaceEmpty* optionalTestInterfaceEmpty; | 7474 TestInterfaceEmpty* optionalTestInterfaceEmpty; |
| 7471 { | 7475 { |
| 7472 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); | 7476 TONATIVE_CONVERT(convertAndThrow(longArg = toInt32(info[0], exceptionSta
te), exceptionState), return); |
| 7473 if (UNLIKELY(info.Length() <= 1)) { | 7477 if (UNLIKELY(info.Length() <= 1)) { |
| 7474 impl->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg); | 7478 impl->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg); |
| 7475 return; | 7479 return; |
| 7476 } | 7480 } |
| 7477 optionalTestInterfaceEmpty = V8TestInterfaceEmpty::toImplWithTypeCheck(i
nfo.GetIsolate(), info[1]); | 7481 optionalTestInterfaceEmpty = V8TestInterfaceEmpty::toImplWithTypeCheck(i
nfo.GetIsolate(), info[1]); |
| 7478 } | 7482 } |
| 7479 impl->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg, optionalTestIn
terfaceEmpty); | 7483 impl->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg, optionalTestIn
terfaceEmpty); |
| 7480 } | 7484 } |
| 7481 | 7485 |
| 7482 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback(const v
8::FunctionCallbackInfo<v8::Value>& info) | 7486 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback(const v
8::FunctionCallbackInfo<v8::Value>& info) |
| (...skipping 13 matching lines...) Expand all Loading... |
| 7496 } | 7500 } |
| 7497 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7501 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 7498 TestInterfaceEmpty* optionalTestInterfaceEmpty; | 7502 TestInterfaceEmpty* optionalTestInterfaceEmpty; |
| 7499 int longArg; | 7503 int longArg; |
| 7500 { | 7504 { |
| 7501 optionalTestInterfaceEmpty = V8TestInterfaceEmpty::toImplWithTypeCheck(i
nfo.GetIsolate(), info[0]); | 7505 optionalTestInterfaceEmpty = V8TestInterfaceEmpty::toImplWithTypeCheck(i
nfo.GetIsolate(), info[0]); |
| 7502 if (UNLIKELY(info.Length() <= 1)) { | 7506 if (UNLIKELY(info.Length() <= 1)) { |
| 7503 impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInt
erfaceEmpty); | 7507 impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInt
erfaceEmpty); |
| 7504 return; | 7508 return; |
| 7505 } | 7509 } |
| 7506 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[1], exceptio
nState), exceptionState); | 7510 TONATIVE_CONVERT(convertAndThrow(longArg = toInt32(info[1], exceptionSta
te), exceptionState), return); |
| 7507 } | 7511 } |
| 7508 impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfaceEm
pty, longArg); | 7512 impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfaceEm
pty, longArg); |
| 7509 } | 7513 } |
| 7510 | 7514 |
| 7511 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethodCallback(const v
8::FunctionCallbackInfo<v8::Value>& info) | 7515 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethodCallback(const v
8::FunctionCallbackInfo<v8::Value>& info) |
| 7512 { | 7516 { |
| 7513 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7517 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 7514 TestObjectV8Internal::voidMethodTestInterfaceEmptyArgOptionalLongArgMethod(i
nfo); | 7518 TestObjectV8Internal::voidMethodTestInterfaceEmptyArgOptionalLongArgMethod(i
nfo); |
| 7515 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7519 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 7516 } | 7520 } |
| 7517 | 7521 |
| 7518 static void voidMethodOptionalDictionaryArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) | 7522 static void voidMethodOptionalDictionaryArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) |
| 7519 { | 7523 { |
| 7520 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO
ptionalDictionaryArg", "TestObject", info.Holder(), info.GetIsolate()); | 7524 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO
ptionalDictionaryArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 7521 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7525 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 7522 Dictionary optionalDictionaryArg; | 7526 Dictionary optionalDictionaryArg; |
| 7523 { | 7527 { |
| 7524 if (!isUndefinedOrNull(info[0]) && !info[0]->IsObject()) { | 7528 if (!isUndefinedOrNull(info[0]) && !info[0]->IsObject()) { |
| 7525 exceptionState.throwTypeError("parameter 1 ('optionalDictionaryArg')
is not an object."); | 7529 exceptionState.throwTypeError("parameter 1 ('optionalDictionaryArg')
is not an object."); |
| 7526 exceptionState.throwIfNeeded(); | 7530 exceptionState.throwIfNeeded(); |
| 7527 return; | 7531 return; |
| 7528 } | 7532 } |
| 7529 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalDictionaryArg, Dictionary(
info[0], info.GetIsolate(), exceptionState), exceptionState); | 7533 TONATIVE_CONVERT(convertAndThrow(optionalDictionaryArg = Dictionary(info
[0], info.GetIsolate(), exceptionState), exceptionState), return); |
| 7530 } | 7534 } |
| 7531 impl->voidMethodOptionalDictionaryArg(optionalDictionaryArg); | 7535 impl->voidMethodOptionalDictionaryArg(optionalDictionaryArg); |
| 7532 } | 7536 } |
| 7533 | 7537 |
| 7534 static void voidMethodOptionalDictionaryArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) | 7538 static void voidMethodOptionalDictionaryArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
| 7535 { | 7539 { |
| 7536 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7540 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 7537 TestObjectV8Internal::voidMethodOptionalDictionaryArgMethod(info); | 7541 TestObjectV8Internal::voidMethodOptionalDictionaryArgMethod(info); |
| 7538 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7542 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 7539 } | 7543 } |
| 7540 | 7544 |
| 7541 static void voidMethodDefaultByteStringArgMethod(const v8::FunctionCallbackInfo<
v8::Value>& info) | 7545 static void voidMethodDefaultByteStringArgMethod(const v8::FunctionCallbackInfo<
v8::Value>& info) |
| 7542 { | 7546 { |
| 7543 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultByteStringArg", "TestObject", info.Holder(), info.GetIsolate()); | 7547 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultByteStringArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 7544 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7548 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 7545 V8StringResource<> defaultByteStringArg; | 7549 V8StringResource<> defaultByteStringArg; |
| 7546 { | 7550 { |
| 7547 if (!info[0]->IsUndefined()) { | 7551 if (!info[0]->IsUndefined()) { |
| 7548 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultByteStringArg, toByteSt
ring(info[0], exceptionState), exceptionState); | 7552 TONATIVE_CONVERT(convertAndThrow(defaultByteStringArg = toByteString
(info[0], exceptionState), exceptionState), return); |
| 7549 } else { | 7553 } else { |
| 7550 defaultByteStringArg = String("foo"); | 7554 defaultByteStringArg = String("foo"); |
| 7551 } | 7555 } |
| 7552 } | 7556 } |
| 7553 impl->voidMethodDefaultByteStringArg(defaultByteStringArg); | 7557 impl->voidMethodDefaultByteStringArg(defaultByteStringArg); |
| 7554 } | 7558 } |
| 7555 | 7559 |
| 7556 static void voidMethodDefaultByteStringArgMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) | 7560 static void voidMethodDefaultByteStringArgMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
| 7557 { | 7561 { |
| 7558 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7562 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 7559 TestObjectV8Internal::voidMethodDefaultByteStringArgMethod(info); | 7563 TestObjectV8Internal::voidMethodDefaultByteStringArgMethod(info); |
| 7560 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7564 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 7561 } | 7565 } |
| 7562 | 7566 |
| 7563 static void voidMethodDefaultStringArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) | 7567 static void voidMethodDefaultStringArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) |
| 7564 { | 7568 { |
| 7565 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7569 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 7566 V8StringResource<> defaultStringArg; | 7570 V8StringResource<> defaultStringArg; |
| 7567 { | 7571 { |
| 7568 if (!info[0]->IsUndefined()) { | 7572 if (!info[0]->IsUndefined()) { |
| 7569 TOSTRING_VOID_INTERNAL(defaultStringArg, info[0]); | 7573 TONATIVE_CONVERT((defaultStringArg = info[0]).prepare(), return); |
| 7570 } else { | 7574 } else { |
| 7571 defaultStringArg = String("foo"); | 7575 defaultStringArg = String("foo"); |
| 7572 } | 7576 } |
| 7573 } | 7577 } |
| 7574 impl->voidMethodDefaultStringArg(defaultStringArg); | 7578 impl->voidMethodDefaultStringArg(defaultStringArg); |
| 7575 } | 7579 } |
| 7576 | 7580 |
| 7577 static void voidMethodDefaultStringArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 7581 static void voidMethodDefaultStringArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
| 7578 { | 7582 { |
| 7579 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7583 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 7580 TestObjectV8Internal::voidMethodDefaultStringArgMethod(info); | 7584 TestObjectV8Internal::voidMethodDefaultStringArgMethod(info); |
| 7581 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7585 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 7582 } | 7586 } |
| 7583 | 7587 |
| 7584 static void voidMethodDefaultIntegerArgsMethod(const v8::FunctionCallbackInfo<v8
::Value>& info) | 7588 static void voidMethodDefaultIntegerArgsMethod(const v8::FunctionCallbackInfo<v8
::Value>& info) |
| 7585 { | 7589 { |
| 7586 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultIntegerArgs", "TestObject", info.Holder(), info.GetIsolate()); | 7590 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultIntegerArgs", "TestObject", info.Holder(), info.GetIsolate()); |
| 7587 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7591 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 7588 int defaultLongArg; | 7592 int defaultLongArg; |
| 7589 long long defaultLongLongArg; | 7593 long long defaultLongLongArg; |
| 7590 unsigned defaultUnsignedArg; | 7594 unsigned defaultUnsignedArg; |
| 7591 { | 7595 { |
| 7592 if (!info[0]->IsUndefined()) { | 7596 if (!info[0]->IsUndefined()) { |
| 7593 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultLongArg, toInt32(info[0
], exceptionState), exceptionState); | 7597 TONATIVE_CONVERT(convertAndThrow(defaultLongArg = toInt32(info[0], e
xceptionState), exceptionState), return); |
| 7594 } else { | 7598 } else { |
| 7595 defaultLongArg = 10; | 7599 defaultLongArg = 10; |
| 7596 } | 7600 } |
| 7597 if (!info[1]->IsUndefined()) { | 7601 if (!info[1]->IsUndefined()) { |
| 7598 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultLongLongArg, toInt64(in
fo[1], exceptionState), exceptionState); | 7602 TONATIVE_CONVERT(convertAndThrow(defaultLongLongArg = toInt64(info[1
], exceptionState), exceptionState), return); |
| 7599 } else { | 7603 } else { |
| 7600 defaultLongLongArg = -10; | 7604 defaultLongLongArg = -10; |
| 7601 } | 7605 } |
| 7602 if (!info[2]->IsUndefined()) { | 7606 if (!info[2]->IsUndefined()) { |
| 7603 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultUnsignedArg, toUInt32(i
nfo[2], exceptionState), exceptionState); | 7607 TONATIVE_CONVERT(convertAndThrow(defaultUnsignedArg = toUInt32(info[
2], exceptionState), exceptionState), return); |
| 7604 } else { | 7608 } else { |
| 7605 defaultUnsignedArg = 4294967295u; | 7609 defaultUnsignedArg = 4294967295u; |
| 7606 } | 7610 } |
| 7607 } | 7611 } |
| 7608 impl->voidMethodDefaultIntegerArgs(defaultLongArg, defaultLongLongArg, defau
ltUnsignedArg); | 7612 impl->voidMethodDefaultIntegerArgs(defaultLongArg, defaultLongLongArg, defau
ltUnsignedArg); |
| 7609 } | 7613 } |
| 7610 | 7614 |
| 7611 static void voidMethodDefaultIntegerArgsMethodCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 7615 static void voidMethodDefaultIntegerArgsMethodCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
| 7612 { | 7616 { |
| 7613 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7617 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 7614 TestObjectV8Internal::voidMethodDefaultIntegerArgsMethod(info); | 7618 TestObjectV8Internal::voidMethodDefaultIntegerArgsMethod(info); |
| 7615 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7619 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 7616 } | 7620 } |
| 7617 | 7621 |
| 7618 static void voidMethodDefaultDoubleArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) | 7622 static void voidMethodDefaultDoubleArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) |
| 7619 { | 7623 { |
| 7620 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultDoubleArg", "TestObject", info.Holder(), info.GetIsolate()); | 7624 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultDoubleArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 7621 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7625 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 7622 double defaultDoubleArg; | 7626 double defaultDoubleArg; |
| 7623 { | 7627 { |
| 7624 if (!info[0]->IsUndefined()) { | 7628 if (!info[0]->IsUndefined()) { |
| 7625 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultDoubleArg, toDouble(inf
o[0], exceptionState), exceptionState); | 7629 TONATIVE_CONVERT(convertAndThrow(defaultDoubleArg = toDouble(info[0]
, exceptionState), exceptionState), return); |
| 7626 } else { | 7630 } else { |
| 7627 defaultDoubleArg = 0.5; | 7631 defaultDoubleArg = 0.5; |
| 7628 } | 7632 } |
| 7629 } | 7633 } |
| 7630 impl->voidMethodDefaultDoubleArg(defaultDoubleArg); | 7634 impl->voidMethodDefaultDoubleArg(defaultDoubleArg); |
| 7631 } | 7635 } |
| 7632 | 7636 |
| 7633 static void voidMethodDefaultDoubleArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 7637 static void voidMethodDefaultDoubleArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
| 7634 { | 7638 { |
| 7635 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7639 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"); | 7683 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 7680 } | 7684 } |
| 7681 | 7685 |
| 7682 static void voidMethodDefaultNullableByteStringArgMethod(const v8::FunctionCallb
ackInfo<v8::Value>& info) | 7686 static void voidMethodDefaultNullableByteStringArgMethod(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
| 7683 { | 7687 { |
| 7684 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultNullableByteStringArg", "TestObject", info.Holder(), info.GetIsolate()); | 7688 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultNullableByteStringArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 7685 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7689 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 7686 V8StringResource<TreatNullAsNullString> defaultStringArg; | 7690 V8StringResource<TreatNullAsNullString> defaultStringArg; |
| 7687 { | 7691 { |
| 7688 if (!info[0]->IsUndefined()) { | 7692 if (!info[0]->IsUndefined()) { |
| 7689 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultStringArg, toByteString
(info[0], exceptionState), exceptionState); | 7693 TONATIVE_CONVERT(convertAndThrow(defaultStringArg = toByteString(inf
o[0], exceptionState), exceptionState), return); |
| 7690 } else { | 7694 } else { |
| 7691 defaultStringArg = nullptr; | 7695 defaultStringArg = nullptr; |
| 7692 } | 7696 } |
| 7693 } | 7697 } |
| 7694 impl->voidMethodDefaultNullableByteStringArg(defaultStringArg); | 7698 impl->voidMethodDefaultNullableByteStringArg(defaultStringArg); |
| 7695 } | 7699 } |
| 7696 | 7700 |
| 7697 static void voidMethodDefaultNullableByteStringArgMethodCallback(const v8::Funct
ionCallbackInfo<v8::Value>& info) | 7701 static void voidMethodDefaultNullableByteStringArgMethodCallback(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
| 7698 { | 7702 { |
| 7699 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7703 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 7700 TestObjectV8Internal::voidMethodDefaultNullableByteStringArgMethod(info); | 7704 TestObjectV8Internal::voidMethodDefaultNullableByteStringArgMethod(info); |
| 7701 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7705 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 7702 } | 7706 } |
| 7703 | 7707 |
| 7704 static void voidMethodDefaultNullableStringArgMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 7708 static void voidMethodDefaultNullableStringArgMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
| 7705 { | 7709 { |
| 7706 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7710 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 7707 V8StringResource<TreatNullAsNullString> defaultStringArg; | 7711 V8StringResource<TreatNullAsNullString> defaultStringArg; |
| 7708 { | 7712 { |
| 7709 if (!info[0]->IsUndefined()) { | 7713 if (!info[0]->IsUndefined()) { |
| 7710 TOSTRING_VOID_INTERNAL(defaultStringArg, info[0]); | 7714 TONATIVE_CONVERT((defaultStringArg = info[0]).prepare(), return); |
| 7711 } else { | 7715 } else { |
| 7712 defaultStringArg = nullptr; | 7716 defaultStringArg = nullptr; |
| 7713 } | 7717 } |
| 7714 } | 7718 } |
| 7715 impl->voidMethodDefaultNullableStringArg(defaultStringArg); | 7719 impl->voidMethodDefaultNullableStringArg(defaultStringArg); |
| 7716 } | 7720 } |
| 7717 | 7721 |
| 7718 static void voidMethodDefaultNullableStringArgMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) | 7722 static void voidMethodDefaultNullableStringArgMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) |
| 7719 { | 7723 { |
| 7720 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7724 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 7745 | 7749 |
| 7746 static void voidMethodDefaultDoubleOrStringArgsMethod(const v8::FunctionCallback
Info<v8::Value>& info) | 7750 static void voidMethodDefaultDoubleOrStringArgsMethod(const v8::FunctionCallback
Info<v8::Value>& info) |
| 7747 { | 7751 { |
| 7748 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultDoubleOrStringArgs", "TestObject", info.Holder(), info.GetIsolate()); | 7752 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultDoubleOrStringArgs", "TestObject", info.Holder(), info.GetIsolate()); |
| 7749 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7753 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 7750 DoubleOrString defaultLongArg; | 7754 DoubleOrString defaultLongArg; |
| 7751 DoubleOrString defaultStringArg; | 7755 DoubleOrString defaultStringArg; |
| 7752 DoubleOrString defaultNullArg; | 7756 DoubleOrString defaultNullArg; |
| 7753 { | 7757 { |
| 7754 if (!info[0]->IsUndefined()) { | 7758 if (!info[0]->IsUndefined()) { |
| 7755 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8DoubleOrString::toImpl(in
fo.GetIsolate(), info[0], defaultLongArg, exceptionState), exceptionState); | 7759 TONATIVE_CONVERT(V8DoubleOrString::toImpl(info.GetIsolate(), info[0]
, defaultLongArg, exceptionState), return exceptionState.throwException()); |
| 7756 } else { | 7760 } else { |
| 7757 defaultLongArg.setDouble(10); | 7761 defaultLongArg.setDouble(10); |
| 7758 } | 7762 } |
| 7759 if (!info[1]->IsUndefined()) { | 7763 if (!info[1]->IsUndefined()) { |
| 7760 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8DoubleOrStringOrNull::toI
mpl(info.GetIsolate(), info[1], defaultStringArg, exceptionState), exceptionStat
e); | 7764 TONATIVE_CONVERT(V8DoubleOrStringOrNull::toImpl(info.GetIsolate(), i
nfo[1], defaultStringArg, exceptionState), return exceptionState.throwException(
)); |
| 7761 } else { | 7765 } else { |
| 7762 defaultStringArg.setString(String("foo")); | 7766 defaultStringArg.setString(String("foo")); |
| 7763 } | 7767 } |
| 7764 if (!info[2]->IsUndefined()) { | 7768 if (!info[2]->IsUndefined()) { |
| 7765 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8DoubleOrStringOrNull::toI
mpl(info.GetIsolate(), info[2], defaultNullArg, exceptionState), exceptionState)
; | 7769 TONATIVE_CONVERT(V8DoubleOrStringOrNull::toImpl(info.GetIsolate(), i
nfo[2], defaultNullArg, exceptionState), return exceptionState.throwException())
; |
| 7766 } else { | 7770 } else { |
| 7767 /* null default value */; | 7771 /* null default value */; |
| 7768 } | 7772 } |
| 7769 } | 7773 } |
| 7770 impl->voidMethodDefaultDoubleOrStringArgs(defaultLongArg, defaultStringArg,
defaultNullArg); | 7774 impl->voidMethodDefaultDoubleOrStringArgs(defaultLongArg, defaultStringArg,
defaultNullArg); |
| 7771 } | 7775 } |
| 7772 | 7776 |
| 7773 static void voidMethodDefaultDoubleOrStringArgsMethodCallback(const v8::Function
CallbackInfo<v8::Value>& info) | 7777 static void voidMethodDefaultDoubleOrStringArgsMethodCallback(const v8::Function
CallbackInfo<v8::Value>& info) |
| 7774 { | 7778 { |
| 7775 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7779 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 7776 TestObjectV8Internal::voidMethodDefaultDoubleOrStringArgsMethod(info); | 7780 TestObjectV8Internal::voidMethodDefaultDoubleOrStringArgsMethod(info); |
| 7777 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7781 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 7778 } | 7782 } |
| 7779 | 7783 |
| 7780 static void voidMethodDefaultStringSequenceArgMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 7784 static void voidMethodDefaultStringSequenceArgMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
| 7781 { | 7785 { |
| 7782 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultStringSequenceArg", "TestObject", info.Holder(), info.GetIsolate()); | 7786 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultStringSequenceArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 7783 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7787 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 7784 Vector<String> defaultStringSequenceArg; | 7788 Vector<String> defaultStringSequenceArg; |
| 7785 { | 7789 { |
| 7786 if (!info[0]->IsUndefined()) { | 7790 if (!info[0]->IsUndefined()) { |
| 7787 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultStringSequenceArg, toIm
plArray<String>(info[0], 1, info.GetIsolate(), exceptionState), exceptionState); | 7791 TONATIVE_CONVERT(convertAndThrow(defaultStringSequenceArg = toImplAr
ray<String>(info[0], 1, info.GetIsolate(), exceptionState), exceptionState), ret
urn); |
| 7788 } else { | 7792 } else { |
| 7789 /* Nothing to do */; | 7793 /* Nothing to do */; |
| 7790 } | 7794 } |
| 7791 } | 7795 } |
| 7792 impl->voidMethodDefaultStringSequenceArg(defaultStringSequenceArg); | 7796 impl->voidMethodDefaultStringSequenceArg(defaultStringSequenceArg); |
| 7793 } | 7797 } |
| 7794 | 7798 |
| 7795 static void voidMethodDefaultStringSequenceArgMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) | 7799 static void voidMethodDefaultStringSequenceArgMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) |
| 7796 { | 7800 { |
| 7797 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7801 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 7798 TestObjectV8Internal::voidMethodDefaultStringSequenceArgMethod(info); | 7802 TestObjectV8Internal::voidMethodDefaultStringSequenceArgMethod(info); |
| 7799 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7803 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 7800 } | 7804 } |
| 7801 | 7805 |
| 7802 static void voidMethodVariadicStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 7806 static void voidMethodVariadicStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
| 7803 { | 7807 { |
| 7804 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodV
ariadicStringArg", "TestObject", info.Holder(), info.GetIsolate()); | 7808 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodV
ariadicStringArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 7805 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7809 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 7806 Vector<String> variadicStringArgs; | 7810 Vector<String> variadicStringArgs; |
| 7807 { | 7811 { |
| 7808 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(variadicStringArgs, toImplArgument
s<String>(info, 0, exceptionState), exceptionState); | 7812 TONATIVE_CONVERT(convertAndThrow(variadicStringArgs = toImplArguments<St
ring>(info, 0, exceptionState), exceptionState), return); |
| 7809 } | 7813 } |
| 7810 impl->voidMethodVariadicStringArg(variadicStringArgs); | 7814 impl->voidMethodVariadicStringArg(variadicStringArgs); |
| 7811 } | 7815 } |
| 7812 | 7816 |
| 7813 static void voidMethodVariadicStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 7817 static void voidMethodVariadicStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
| 7814 { | 7818 { |
| 7815 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7819 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 7816 TestObjectV8Internal::voidMethodVariadicStringArgMethod(info); | 7820 TestObjectV8Internal::voidMethodVariadicStringArgMethod(info); |
| 7817 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7821 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 7818 } | 7822 } |
| 7819 | 7823 |
| 7820 static void voidMethodStringArgVariadicStringArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 7824 static void voidMethodStringArgVariadicStringArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
| 7821 { | 7825 { |
| 7822 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
tringArgVariadicStringArg", "TestObject", info.Holder(), info.GetIsolate()); | 7826 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
tringArgVariadicStringArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 7823 if (UNLIKELY(info.Length() < 1)) { | 7827 if (UNLIKELY(info.Length() < 1)) { |
| 7824 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 7828 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 7825 exceptionState.throwIfNeeded(); | 7829 exceptionState.throwIfNeeded(); |
| 7826 return; | 7830 return; |
| 7827 } | 7831 } |
| 7828 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7832 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 7829 V8StringResource<> stringArg; | 7833 V8StringResource<> stringArg; |
| 7830 Vector<String> variadicStringArgs; | 7834 Vector<String> variadicStringArgs; |
| 7831 { | 7835 { |
| 7832 TOSTRING_VOID_INTERNAL(stringArg, info[0]); | 7836 TONATIVE_CONVERT((stringArg = info[0]).prepare(), return); |
| 7833 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(variadicStringArgs, toImplArgument
s<String>(info, 1, exceptionState), exceptionState); | 7837 TONATIVE_CONVERT(convertAndThrow(variadicStringArgs = toImplArguments<St
ring>(info, 1, exceptionState), exceptionState), return); |
| 7834 } | 7838 } |
| 7835 impl->voidMethodStringArgVariadicStringArg(stringArg, variadicStringArgs); | 7839 impl->voidMethodStringArgVariadicStringArg(stringArg, variadicStringArgs); |
| 7836 } | 7840 } |
| 7837 | 7841 |
| 7838 static void voidMethodStringArgVariadicStringArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) | 7842 static void voidMethodStringArgVariadicStringArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) |
| 7839 { | 7843 { |
| 7840 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7844 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 7841 TestObjectV8Internal::voidMethodStringArgVariadicStringArgMethod(info); | 7845 TestObjectV8Internal::voidMethodStringArgVariadicStringArgMethod(info); |
| 7842 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7846 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 7843 } | 7847 } |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7948 TestObjectV8Internal::voidMethodVariadicTestInterfaceWillBeGarbageCollectedA
rgMethod(info); | 7952 TestObjectV8Internal::voidMethodVariadicTestInterfaceWillBeGarbageCollectedA
rgMethod(info); |
| 7949 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7953 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 7950 } | 7954 } |
| 7951 | 7955 |
| 7952 static void overloadedMethodA1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 7956 static void overloadedMethodA1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 7953 { | 7957 { |
| 7954 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodA", "TestObject", info.Holder(), info.GetIsolate()); | 7958 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodA", "TestObject", info.Holder(), info.GetIsolate()); |
| 7955 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7959 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 7956 int longArg; | 7960 int longArg; |
| 7957 { | 7961 { |
| 7958 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); | 7962 TONATIVE_CONVERT(convertAndThrow(longArg = toInt32(info[0], exceptionSta
te), exceptionState), return); |
| 7959 } | 7963 } |
| 7960 impl->overloadedMethodA(longArg); | 7964 impl->overloadedMethodA(longArg); |
| 7961 } | 7965 } |
| 7962 | 7966 |
| 7963 static void overloadedMethodA2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 7967 static void overloadedMethodA2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 7964 { | 7968 { |
| 7965 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodA", "TestObject", info.Holder(), info.GetIsolate()); | 7969 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodA", "TestObject", info.Holder(), info.GetIsolate()); |
| 7966 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7970 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 7967 int longArg1; | 7971 int longArg1; |
| 7968 int longArg2; | 7972 int longArg2; |
| 7969 { | 7973 { |
| 7970 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg1, toInt32(info[0], excepti
onState), exceptionState); | 7974 TONATIVE_CONVERT(convertAndThrow(longArg1 = toInt32(info[0], exceptionSt
ate), exceptionState), return); |
| 7971 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg2, toInt32(info[1], excepti
onState), exceptionState); | 7975 TONATIVE_CONVERT(convertAndThrow(longArg2 = toInt32(info[1], exceptionSt
ate), exceptionState), return); |
| 7972 } | 7976 } |
| 7973 impl->overloadedMethodA(longArg1, longArg2); | 7977 impl->overloadedMethodA(longArg1, longArg2); |
| 7974 } | 7978 } |
| 7975 | 7979 |
| 7976 static void overloadedMethodAMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 7980 static void overloadedMethodAMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
| 7977 { | 7981 { |
| 7978 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodA", "TestObject", info.Holder(), info.GetIsolate()); | 7982 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodA", "TestObject", info.Holder(), info.GetIsolate()); |
| 7979 switch (std::min(2, info.Length())) { | 7983 switch (std::min(2, info.Length())) { |
| 7980 case 1: | 7984 case 1: |
| 7981 if (true) { | 7985 if (true) { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 7992 default: | 7996 default: |
| 7993 break; | 7997 break; |
| 7994 } | 7998 } |
| 7995 if (info.Length() < 1) { | 7999 if (info.Length() < 1) { |
| 7996 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 8000 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
| 7997 exceptionState.throwIfNeeded(); | 8001 exceptionState.throwIfNeeded(); |
| 7998 return; | 8002 return; |
| 7999 } | 8003 } |
| 8000 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 8004 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 8001 exceptionState.throwIfNeeded(); | 8005 exceptionState.throwIfNeeded(); |
| 8006 return; |
| 8002 } | 8007 } |
| 8003 | 8008 |
| 8004 static void overloadedMethodAMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 8009 static void overloadedMethodAMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 8005 { | 8010 { |
| 8006 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 8011 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 8007 TestObjectV8Internal::overloadedMethodAMethod(info); | 8012 TestObjectV8Internal::overloadedMethodAMethod(info); |
| 8008 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 8013 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 8009 } | 8014 } |
| 8010 | 8015 |
| 8011 static void overloadedMethodB1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8016 static void overloadedMethodB1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 8012 { | 8017 { |
| 8013 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodB", "TestObject", info.Holder(), info.GetIsolate()); | 8018 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodB", "TestObject", info.Holder(), info.GetIsolate()); |
| 8014 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8019 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 8015 int longArg; | 8020 int longArg; |
| 8016 { | 8021 { |
| 8017 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); | 8022 TONATIVE_CONVERT(convertAndThrow(longArg = toInt32(info[0], exceptionSta
te), exceptionState), return); |
| 8018 } | 8023 } |
| 8019 impl->overloadedMethodB(longArg); | 8024 impl->overloadedMethodB(longArg); |
| 8020 } | 8025 } |
| 8021 | 8026 |
| 8022 static void overloadedMethodB2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8027 static void overloadedMethodB2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 8023 { | 8028 { |
| 8024 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodB", "TestObject", info.Holder(), info.GetIsolate()); | 8029 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodB", "TestObject", info.Holder(), info.GetIsolate()); |
| 8025 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8030 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 8026 V8StringResource<> stringArg; | 8031 V8StringResource<> stringArg; |
| 8027 int longArg; | 8032 int longArg; |
| 8028 { | 8033 { |
| 8029 TOSTRING_VOID_INTERNAL(stringArg, info[0]); | 8034 TONATIVE_CONVERT((stringArg = info[0]).prepare(), return); |
| 8030 if (UNLIKELY(info.Length() <= 1)) { | 8035 if (UNLIKELY(info.Length() <= 1)) { |
| 8031 impl->overloadedMethodB(stringArg); | 8036 impl->overloadedMethodB(stringArg); |
| 8032 return; | 8037 return; |
| 8033 } | 8038 } |
| 8034 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[1], exceptio
nState), exceptionState); | 8039 TONATIVE_CONVERT(convertAndThrow(longArg = toInt32(info[1], exceptionSta
te), exceptionState), return); |
| 8035 } | 8040 } |
| 8036 impl->overloadedMethodB(stringArg, longArg); | 8041 impl->overloadedMethodB(stringArg, longArg); |
| 8037 } | 8042 } |
| 8038 | 8043 |
| 8039 static void overloadedMethodBMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 8044 static void overloadedMethodBMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
| 8040 { | 8045 { |
| 8041 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodB", "TestObject", info.Holder(), info.GetIsolate()); | 8046 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodB", "TestObject", info.Holder(), info.GetIsolate()); |
| 8042 switch (std::min(2, info.Length())) { | 8047 switch (std::min(2, info.Length())) { |
| 8043 case 1: | 8048 case 1: |
| 8044 if (info[0]->IsNumber()) { | 8049 if (info[0]->IsNumber()) { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 8063 default: | 8068 default: |
| 8064 break; | 8069 break; |
| 8065 } | 8070 } |
| 8066 if (info.Length() < 1) { | 8071 if (info.Length() < 1) { |
| 8067 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 8072 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
| 8068 exceptionState.throwIfNeeded(); | 8073 exceptionState.throwIfNeeded(); |
| 8069 return; | 8074 return; |
| 8070 } | 8075 } |
| 8071 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 8076 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 8072 exceptionState.throwIfNeeded(); | 8077 exceptionState.throwIfNeeded(); |
| 8078 return; |
| 8073 } | 8079 } |
| 8074 | 8080 |
| 8075 static void overloadedMethodBMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 8081 static void overloadedMethodBMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 8076 { | 8082 { |
| 8077 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 8083 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 8078 TestObjectV8Internal::overloadedMethodBMethod(info); | 8084 TestObjectV8Internal::overloadedMethodBMethod(info); |
| 8079 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 8085 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 8080 } | 8086 } |
| 8081 | 8087 |
| 8082 static void overloadedMethodC1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8088 static void overloadedMethodC1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 8083 { | 8089 { |
| 8084 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodC", "TestObject", info.Holder(), info.GetIsolate()); | 8090 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodC", "TestObject", info.Holder(), info.GetIsolate()); |
| 8085 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8091 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 8086 int longArg; | 8092 int longArg; |
| 8087 { | 8093 { |
| 8088 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); | 8094 TONATIVE_CONVERT(convertAndThrow(longArg = toInt32(info[0], exceptionSta
te), exceptionState), return); |
| 8089 } | 8095 } |
| 8090 impl->overloadedMethodC(longArg); | 8096 impl->overloadedMethodC(longArg); |
| 8091 } | 8097 } |
| 8092 | 8098 |
| 8093 static void overloadedMethodC2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8099 static void overloadedMethodC2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 8094 { | 8100 { |
| 8095 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8101 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 8096 TestInterfaceEmpty* testInterfaceEmptyArg; | 8102 TestInterfaceEmpty* testInterfaceEmptyArg; |
| 8097 { | 8103 { |
| 8098 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.G
etIsolate(), info[0]); | 8104 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.G
etIsolate(), info[0]); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 8117 default: | 8123 default: |
| 8118 break; | 8124 break; |
| 8119 } | 8125 } |
| 8120 if (info.Length() < 1) { | 8126 if (info.Length() < 1) { |
| 8121 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 8127 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
| 8122 exceptionState.throwIfNeeded(); | 8128 exceptionState.throwIfNeeded(); |
| 8123 return; | 8129 return; |
| 8124 } | 8130 } |
| 8125 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 8131 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 8126 exceptionState.throwIfNeeded(); | 8132 exceptionState.throwIfNeeded(); |
| 8133 return; |
| 8127 } | 8134 } |
| 8128 | 8135 |
| 8129 static void overloadedMethodCMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 8136 static void overloadedMethodCMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 8130 { | 8137 { |
| 8131 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 8138 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 8132 TestObjectV8Internal::overloadedMethodCMethod(info); | 8139 TestObjectV8Internal::overloadedMethodCMethod(info); |
| 8133 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 8140 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 8134 } | 8141 } |
| 8135 | 8142 |
| 8136 static void overloadedMethodD1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8143 static void overloadedMethodD1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 8137 { | 8144 { |
| 8138 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodD", "TestObject", info.Holder(), info.GetIsolate()); | 8145 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodD", "TestObject", info.Holder(), info.GetIsolate()); |
| 8139 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8146 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 8140 int longArg; | 8147 int longArg; |
| 8141 { | 8148 { |
| 8142 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); | 8149 TONATIVE_CONVERT(convertAndThrow(longArg = toInt32(info[0], exceptionSta
te), exceptionState), return); |
| 8143 } | 8150 } |
| 8144 impl->overloadedMethodD(longArg); | 8151 impl->overloadedMethodD(longArg); |
| 8145 } | 8152 } |
| 8146 | 8153 |
| 8147 static void overloadedMethodD2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8154 static void overloadedMethodD2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 8148 { | 8155 { |
| 8149 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodD", "TestObject", info.Holder(), info.GetIsolate()); | 8156 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodD", "TestObject", info.Holder(), info.GetIsolate()); |
| 8150 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8157 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 8151 Vector<int> longArrayArg; | 8158 Vector<int> longArrayArg; |
| 8152 { | 8159 { |
| 8153 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArrayArg, toImplArray<int>(inf
o[0], 1, info.GetIsolate(), exceptionState), exceptionState); | 8160 TONATIVE_CONVERT(convertAndThrow(longArrayArg = toImplArray<int>(info[0]
, 1, info.GetIsolate(), exceptionState), exceptionState), return); |
| 8154 } | 8161 } |
| 8155 impl->overloadedMethodD(longArrayArg); | 8162 impl->overloadedMethodD(longArrayArg); |
| 8156 } | 8163 } |
| 8157 | 8164 |
| 8158 static void overloadedMethodDMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 8165 static void overloadedMethodDMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
| 8159 { | 8166 { |
| 8160 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodD", "TestObject", info.Holder(), info.GetIsolate()); | 8167 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodD", "TestObject", info.Holder(), info.GetIsolate()); |
| 8161 switch (std::min(1, info.Length())) { | 8168 switch (std::min(1, info.Length())) { |
| 8162 case 1: | 8169 case 1: |
| 8163 if (info[0]->IsArray()) { | 8170 if (info[0]->IsArray()) { |
| 8164 overloadedMethodD2Method(info); | 8171 overloadedMethodD2Method(info); |
| 8165 return; | 8172 return; |
| 8166 } | 8173 } |
| 8167 if (true) { | 8174 if (true) { |
| 8168 overloadedMethodD1Method(info); | 8175 overloadedMethodD1Method(info); |
| 8169 return; | 8176 return; |
| 8170 } | 8177 } |
| 8171 break; | 8178 break; |
| 8172 default: | 8179 default: |
| 8173 break; | 8180 break; |
| 8174 } | 8181 } |
| 8175 if (info.Length() < 1) { | 8182 if (info.Length() < 1) { |
| 8176 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 8183 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
| 8177 exceptionState.throwIfNeeded(); | 8184 exceptionState.throwIfNeeded(); |
| 8178 return; | 8185 return; |
| 8179 } | 8186 } |
| 8180 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 8187 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 8181 exceptionState.throwIfNeeded(); | 8188 exceptionState.throwIfNeeded(); |
| 8189 return; |
| 8182 } | 8190 } |
| 8183 | 8191 |
| 8184 static void overloadedMethodDMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 8192 static void overloadedMethodDMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 8185 { | 8193 { |
| 8186 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 8194 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 8187 TestObjectV8Internal::overloadedMethodDMethod(info); | 8195 TestObjectV8Internal::overloadedMethodDMethod(info); |
| 8188 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 8196 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 8189 } | 8197 } |
| 8190 | 8198 |
| 8191 static void overloadedMethodE1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8199 static void overloadedMethodE1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 8192 { | 8200 { |
| 8193 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodE", "TestObject", info.Holder(), info.GetIsolate()); | 8201 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodE", "TestObject", info.Holder(), info.GetIsolate()); |
| 8194 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8202 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 8195 int longArg; | 8203 int longArg; |
| 8196 { | 8204 { |
| 8197 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); | 8205 TONATIVE_CONVERT(convertAndThrow(longArg = toInt32(info[0], exceptionSta
te), exceptionState), return); |
| 8198 } | 8206 } |
| 8199 impl->overloadedMethodE(longArg); | 8207 impl->overloadedMethodE(longArg); |
| 8200 } | 8208 } |
| 8201 | 8209 |
| 8202 static void overloadedMethodE2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8210 static void overloadedMethodE2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 8203 { | 8211 { |
| 8204 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8212 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 8205 TestInterfaceEmpty* testInterfaceEmptyOrNullArg; | 8213 TestInterfaceEmpty* testInterfaceEmptyOrNullArg; |
| 8206 { | 8214 { |
| 8207 testInterfaceEmptyOrNullArg = V8TestInterfaceEmpty::toImplWithTypeCheck(
info.GetIsolate(), info[0]); | 8215 testInterfaceEmptyOrNullArg = V8TestInterfaceEmpty::toImplWithTypeCheck(
info.GetIsolate(), info[0]); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 8230 default: | 8238 default: |
| 8231 break; | 8239 break; |
| 8232 } | 8240 } |
| 8233 if (info.Length() < 1) { | 8241 if (info.Length() < 1) { |
| 8234 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 8242 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
| 8235 exceptionState.throwIfNeeded(); | 8243 exceptionState.throwIfNeeded(); |
| 8236 return; | 8244 return; |
| 8237 } | 8245 } |
| 8238 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 8246 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 8239 exceptionState.throwIfNeeded(); | 8247 exceptionState.throwIfNeeded(); |
| 8248 return; |
| 8240 } | 8249 } |
| 8241 | 8250 |
| 8242 static void overloadedMethodEMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 8251 static void overloadedMethodEMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 8243 { | 8252 { |
| 8244 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 8253 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 8245 TestObjectV8Internal::overloadedMethodEMethod(info); | 8254 TestObjectV8Internal::overloadedMethodEMethod(info); |
| 8246 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 8255 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 8247 } | 8256 } |
| 8248 | 8257 |
| 8249 static void overloadedMethodF1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8258 static void overloadedMethodF1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 8250 { | 8259 { |
| 8251 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8260 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 8252 V8StringResource<> stringArg; | 8261 V8StringResource<> stringArg; |
| 8253 { | 8262 { |
| 8254 if (UNLIKELY(info.Length() <= 0)) { | 8263 if (UNLIKELY(info.Length() <= 0)) { |
| 8255 impl->overloadedMethodF(); | 8264 impl->overloadedMethodF(); |
| 8256 return; | 8265 return; |
| 8257 } | 8266 } |
| 8258 TOSTRING_VOID_INTERNAL(stringArg, info[0]); | 8267 TONATIVE_CONVERT((stringArg = info[0]).prepare(), return); |
| 8259 } | 8268 } |
| 8260 impl->overloadedMethodF(stringArg); | 8269 impl->overloadedMethodF(stringArg); |
| 8261 } | 8270 } |
| 8262 | 8271 |
| 8263 static void overloadedMethodF2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8272 static void overloadedMethodF2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 8264 { | 8273 { |
| 8265 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodF", "TestObject", info.Holder(), info.GetIsolate()); | 8274 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodF", "TestObject", info.Holder(), info.GetIsolate()); |
| 8266 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8275 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 8267 double doubleArg; | 8276 double doubleArg; |
| 8268 { | 8277 { |
| 8269 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(doubleArg, toDouble(info[0], excep
tionState), exceptionState); | 8278 TONATIVE_CONVERT(convertAndThrow(doubleArg = toDouble(info[0], exception
State), exceptionState), return); |
| 8270 } | 8279 } |
| 8271 impl->overloadedMethodF(doubleArg); | 8280 impl->overloadedMethodF(doubleArg); |
| 8272 } | 8281 } |
| 8273 | 8282 |
| 8274 static void overloadedMethodFMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 8283 static void overloadedMethodFMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
| 8275 { | 8284 { |
| 8276 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodF", "TestObject", info.Holder(), info.GetIsolate()); | 8285 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodF", "TestObject", info.Holder(), info.GetIsolate()); |
| 8277 switch (std::min(1, info.Length())) { | 8286 switch (std::min(1, info.Length())) { |
| 8278 case 0: | 8287 case 0: |
| 8279 if (true) { | 8288 if (true) { |
| (...skipping 17 matching lines...) Expand all Loading... |
| 8297 if (true) { | 8306 if (true) { |
| 8298 overloadedMethodF2Method(info); | 8307 overloadedMethodF2Method(info); |
| 8299 return; | 8308 return; |
| 8300 } | 8309 } |
| 8301 break; | 8310 break; |
| 8302 default: | 8311 default: |
| 8303 break; | 8312 break; |
| 8304 } | 8313 } |
| 8305 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 8314 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 8306 exceptionState.throwIfNeeded(); | 8315 exceptionState.throwIfNeeded(); |
| 8316 return; |
| 8307 } | 8317 } |
| 8308 | 8318 |
| 8309 static void overloadedMethodFMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 8319 static void overloadedMethodFMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 8310 { | 8320 { |
| 8311 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 8321 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 8312 TestObjectV8Internal::overloadedMethodFMethod(info); | 8322 TestObjectV8Internal::overloadedMethodFMethod(info); |
| 8313 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 8323 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 8314 } | 8324 } |
| 8315 | 8325 |
| 8316 static void overloadedMethodG1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8326 static void overloadedMethodG1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 8317 { | 8327 { |
| 8318 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodG", "TestObject", info.Holder(), info.GetIsolate()); | 8328 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodG", "TestObject", info.Holder(), info.GetIsolate()); |
| 8319 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8329 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 8320 int longArg; | 8330 int longArg; |
| 8321 { | 8331 { |
| 8322 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); | 8332 TONATIVE_CONVERT(convertAndThrow(longArg = toInt32(info[0], exceptionSta
te), exceptionState), return); |
| 8323 } | 8333 } |
| 8324 impl->overloadedMethodG(longArg); | 8334 impl->overloadedMethodG(longArg); |
| 8325 } | 8335 } |
| 8326 | 8336 |
| 8327 static void overloadedMethodG2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8337 static void overloadedMethodG2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 8328 { | 8338 { |
| 8329 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8339 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 8330 TestInterfaceEmpty* testInterfaceEmptyOrNullArg; | 8340 TestInterfaceEmpty* testInterfaceEmptyOrNullArg; |
| 8331 { | 8341 { |
| 8332 if (!info[0]->IsUndefined()) { | 8342 if (!info[0]->IsUndefined()) { |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8364 if (true) { | 8374 if (true) { |
| 8365 overloadedMethodG1Method(info); | 8375 overloadedMethodG1Method(info); |
| 8366 return; | 8376 return; |
| 8367 } | 8377 } |
| 8368 break; | 8378 break; |
| 8369 default: | 8379 default: |
| 8370 break; | 8380 break; |
| 8371 } | 8381 } |
| 8372 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 8382 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 8373 exceptionState.throwIfNeeded(); | 8383 exceptionState.throwIfNeeded(); |
| 8384 return; |
| 8374 } | 8385 } |
| 8375 | 8386 |
| 8376 static void overloadedMethodGMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 8387 static void overloadedMethodGMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 8377 { | 8388 { |
| 8378 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 8389 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 8379 TestObjectV8Internal::overloadedMethodGMethod(info); | 8390 TestObjectV8Internal::overloadedMethodGMethod(info); |
| 8380 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 8391 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 8381 } | 8392 } |
| 8382 | 8393 |
| 8383 static void overloadedMethodH1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8394 static void overloadedMethodH1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8417 default: | 8428 default: |
| 8418 break; | 8429 break; |
| 8419 } | 8430 } |
| 8420 if (info.Length() < 1) { | 8431 if (info.Length() < 1) { |
| 8421 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 8432 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
| 8422 exceptionState.throwIfNeeded(); | 8433 exceptionState.throwIfNeeded(); |
| 8423 return; | 8434 return; |
| 8424 } | 8435 } |
| 8425 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 8436 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 8426 exceptionState.throwIfNeeded(); | 8437 exceptionState.throwIfNeeded(); |
| 8438 return; |
| 8427 } | 8439 } |
| 8428 | 8440 |
| 8429 static void overloadedMethodHMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 8441 static void overloadedMethodHMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 8430 { | 8442 { |
| 8431 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 8443 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 8432 TestObjectV8Internal::overloadedMethodHMethod(info); | 8444 TestObjectV8Internal::overloadedMethodHMethod(info); |
| 8433 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 8445 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 8434 } | 8446 } |
| 8435 | 8447 |
| 8436 static void overloadedMethodI1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8448 static void overloadedMethodI1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 8437 { | 8449 { |
| 8438 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8450 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 8439 V8StringResource<> stringArg; | 8451 V8StringResource<> stringArg; |
| 8440 { | 8452 { |
| 8441 TOSTRING_VOID_INTERNAL(stringArg, info[0]); | 8453 TONATIVE_CONVERT((stringArg = info[0]).prepare(), return); |
| 8442 } | 8454 } |
| 8443 impl->overloadedMethodI(stringArg); | 8455 impl->overloadedMethodI(stringArg); |
| 8444 } | 8456 } |
| 8445 | 8457 |
| 8446 static void overloadedMethodI2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8458 static void overloadedMethodI2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 8447 { | 8459 { |
| 8448 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodI", "TestObject", info.Holder(), info.GetIsolate()); | 8460 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodI", "TestObject", info.Holder(), info.GetIsolate()); |
| 8449 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8461 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 8450 double doubleArg; | 8462 double doubleArg; |
| 8451 { | 8463 { |
| 8452 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(doubleArg, toDouble(info[0], excep
tionState), exceptionState); | 8464 TONATIVE_CONVERT(convertAndThrow(doubleArg = toDouble(info[0], exception
State), exceptionState), return); |
| 8453 } | 8465 } |
| 8454 impl->overloadedMethodI(doubleArg); | 8466 impl->overloadedMethodI(doubleArg); |
| 8455 } | 8467 } |
| 8456 | 8468 |
| 8457 static void overloadedMethodIMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 8469 static void overloadedMethodIMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
| 8458 { | 8470 { |
| 8459 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodI", "TestObject", info.Holder(), info.GetIsolate()); | 8471 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodI", "TestObject", info.Holder(), info.GetIsolate()); |
| 8460 switch (std::min(1, info.Length())) { | 8472 switch (std::min(1, info.Length())) { |
| 8461 case 1: | 8473 case 1: |
| 8462 if (info[0]->IsNumber()) { | 8474 if (info[0]->IsNumber()) { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 8475 default: | 8487 default: |
| 8476 break; | 8488 break; |
| 8477 } | 8489 } |
| 8478 if (info.Length() < 1) { | 8490 if (info.Length() < 1) { |
| 8479 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 8491 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
| 8480 exceptionState.throwIfNeeded(); | 8492 exceptionState.throwIfNeeded(); |
| 8481 return; | 8493 return; |
| 8482 } | 8494 } |
| 8483 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 8495 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 8484 exceptionState.throwIfNeeded(); | 8496 exceptionState.throwIfNeeded(); |
| 8497 return; |
| 8485 } | 8498 } |
| 8486 | 8499 |
| 8487 static void overloadedMethodIMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 8500 static void overloadedMethodIMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 8488 { | 8501 { |
| 8489 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 8502 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 8490 TestObjectV8Internal::overloadedMethodIMethod(info); | 8503 TestObjectV8Internal::overloadedMethodIMethod(info); |
| 8491 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 8504 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 8492 } | 8505 } |
| 8493 | 8506 |
| 8494 static void overloadedMethodJ1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8507 static void overloadedMethodJ1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 8495 { | 8508 { |
| 8496 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8509 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 8497 V8StringResource<> stringArg; | 8510 V8StringResource<> stringArg; |
| 8498 { | 8511 { |
| 8499 TOSTRING_VOID_INTERNAL(stringArg, info[0]); | 8512 TONATIVE_CONVERT((stringArg = info[0]).prepare(), return); |
| 8500 } | 8513 } |
| 8501 impl->overloadedMethodJ(stringArg); | 8514 impl->overloadedMethodJ(stringArg); |
| 8502 } | 8515 } |
| 8503 | 8516 |
| 8504 static void overloadedMethodJ2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8517 static void overloadedMethodJ2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 8505 { | 8518 { |
| 8506 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodJ", "TestObject", info.Holder(), info.GetIsolate()); | 8519 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodJ", "TestObject", info.Holder(), info.GetIsolate()); |
| 8507 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8520 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 8508 TestDictionary testDictionaryArg; | 8521 TestDictionary testDictionaryArg; |
| 8509 { | 8522 { |
| 8510 if (!isUndefinedOrNull(info[0]) && !info[0]->IsObject()) { | 8523 if (!isUndefinedOrNull(info[0]) && !info[0]->IsObject()) { |
| 8511 exceptionState.throwTypeError("parameter 1 ('testDictionaryArg') is
not an object."); | 8524 exceptionState.throwTypeError("parameter 1 ('testDictionaryArg') is
not an object."); |
| 8512 exceptionState.throwIfNeeded(); | 8525 exceptionState.throwIfNeeded(); |
| 8513 return; | 8526 return; |
| 8514 } | 8527 } |
| 8515 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8TestDictionary::toImpl(info.G
etIsolate(), info[0], testDictionaryArg, exceptionState), exceptionState); | 8528 TONATIVE_CONVERT(V8TestDictionary::toImpl(info.GetIsolate(), info[0], te
stDictionaryArg, exceptionState), return exceptionState.throwException()); |
| 8516 } | 8529 } |
| 8517 impl->overloadedMethodJ(testDictionaryArg); | 8530 impl->overloadedMethodJ(testDictionaryArg); |
| 8518 } | 8531 } |
| 8519 | 8532 |
| 8520 static void overloadedMethodJMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 8533 static void overloadedMethodJMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
| 8521 { | 8534 { |
| 8522 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodJ", "TestObject", info.Holder(), info.GetIsolate()); | 8535 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodJ", "TestObject", info.Holder(), info.GetIsolate()); |
| 8523 switch (std::min(1, info.Length())) { | 8536 switch (std::min(1, info.Length())) { |
| 8524 case 1: | 8537 case 1: |
| 8525 if (info[0]->IsObject()) { | 8538 if (info[0]->IsObject()) { |
| 8526 overloadedMethodJ2Method(info); | 8539 overloadedMethodJ2Method(info); |
| 8527 return; | 8540 return; |
| 8528 } | 8541 } |
| 8529 if (true) { | 8542 if (true) { |
| 8530 overloadedMethodJ1Method(info); | 8543 overloadedMethodJ1Method(info); |
| 8531 return; | 8544 return; |
| 8532 } | 8545 } |
| 8533 break; | 8546 break; |
| 8534 default: | 8547 default: |
| 8535 break; | 8548 break; |
| 8536 } | 8549 } |
| 8537 if (info.Length() < 1) { | 8550 if (info.Length() < 1) { |
| 8538 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 8551 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
| 8539 exceptionState.throwIfNeeded(); | 8552 exceptionState.throwIfNeeded(); |
| 8540 return; | 8553 return; |
| 8541 } | 8554 } |
| 8542 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 8555 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 8543 exceptionState.throwIfNeeded(); | 8556 exceptionState.throwIfNeeded(); |
| 8557 return; |
| 8544 } | 8558 } |
| 8545 | 8559 |
| 8546 static void overloadedMethodJMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 8560 static void overloadedMethodJMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 8547 { | 8561 { |
| 8548 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 8562 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 8549 TestObjectV8Internal::overloadedMethodJMethod(info); | 8563 TestObjectV8Internal::overloadedMethodJMethod(info); |
| 8550 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 8564 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 8551 } | 8565 } |
| 8552 | 8566 |
| 8553 static void overloadedMethodK1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8567 static void overloadedMethodK1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 8554 { | 8568 { |
| 8555 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8569 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 8556 ScriptValue functionArg; | 8570 ScriptValue functionArg; |
| 8557 { | 8571 { |
| 8558 if (!info[0]->IsFunction()) { | 8572 if (!info[0]->IsFunction()) { |
| 8559 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessage
s::failedToExecute("overloadedMethodK", "TestObject", "The callback provided as
parameter 1 is not a function.")); | 8573 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessage
s::failedToExecute("overloadedMethodK", "TestObject", "The callback provided as
parameter 1 is not a function.")); |
| 8560 return; | 8574 return; |
| 8561 } | 8575 } |
| 8562 functionArg = ScriptValue(ScriptState::current(info.GetIsolate()), info[
0]); | 8576 functionArg = ScriptValue(ScriptState::current(info.GetIsolate()), info[
0]); |
| 8563 } | 8577 } |
| 8564 impl->overloadedMethodK(functionArg); | 8578 impl->overloadedMethodK(functionArg); |
| 8565 } | 8579 } |
| 8566 | 8580 |
| 8567 static void overloadedMethodK2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8581 static void overloadedMethodK2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 8568 { | 8582 { |
| 8569 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8583 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 8570 V8StringResource<> stringArg; | 8584 V8StringResource<> stringArg; |
| 8571 { | 8585 { |
| 8572 TOSTRING_VOID_INTERNAL(stringArg, info[0]); | 8586 TONATIVE_CONVERT((stringArg = info[0]).prepare(), return); |
| 8573 } | 8587 } |
| 8574 impl->overloadedMethodK(stringArg); | 8588 impl->overloadedMethodK(stringArg); |
| 8575 } | 8589 } |
| 8576 | 8590 |
| 8577 static void overloadedMethodKMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 8591 static void overloadedMethodKMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
| 8578 { | 8592 { |
| 8579 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodK", "TestObject", info.Holder(), info.GetIsolate()); | 8593 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodK", "TestObject", info.Holder(), info.GetIsolate()); |
| 8580 switch (std::min(1, info.Length())) { | 8594 switch (std::min(1, info.Length())) { |
| 8581 case 1: | 8595 case 1: |
| 8582 if (info[0]->IsFunction()) { | 8596 if (info[0]->IsFunction()) { |
| 8583 overloadedMethodK1Method(info); | 8597 overloadedMethodK1Method(info); |
| 8584 return; | 8598 return; |
| 8585 } | 8599 } |
| 8586 if (true) { | 8600 if (true) { |
| 8587 overloadedMethodK2Method(info); | 8601 overloadedMethodK2Method(info); |
| 8588 return; | 8602 return; |
| 8589 } | 8603 } |
| 8590 break; | 8604 break; |
| 8591 default: | 8605 default: |
| 8592 break; | 8606 break; |
| 8593 } | 8607 } |
| 8594 if (info.Length() < 1) { | 8608 if (info.Length() < 1) { |
| 8595 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 8609 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
| 8596 exceptionState.throwIfNeeded(); | 8610 exceptionState.throwIfNeeded(); |
| 8597 return; | 8611 return; |
| 8598 } | 8612 } |
| 8599 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 8613 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 8600 exceptionState.throwIfNeeded(); | 8614 exceptionState.throwIfNeeded(); |
| 8615 return; |
| 8601 } | 8616 } |
| 8602 | 8617 |
| 8603 static void overloadedMethodKMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 8618 static void overloadedMethodKMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 8604 { | 8619 { |
| 8605 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 8620 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 8606 TestObjectV8Internal::overloadedMethodKMethod(info); | 8621 TestObjectV8Internal::overloadedMethodKMethod(info); |
| 8607 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 8622 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 8608 } | 8623 } |
| 8609 | 8624 |
| 8610 static void overloadedMethodL1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8625 static void overloadedMethodL1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 8611 { | 8626 { |
| 8612 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodL", "TestObject", info.Holder(), info.GetIsolate()); | 8627 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodL", "TestObject", info.Holder(), info.GetIsolate()); |
| 8613 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8628 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 8614 int longArg; | 8629 int longArg; |
| 8615 Vector<ScriptValue> restArgs; | 8630 Vector<ScriptValue> restArgs; |
| 8616 { | 8631 { |
| 8617 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); | 8632 TONATIVE_CONVERT(convertAndThrow(longArg = toInt32(info[0], exceptionSta
te), exceptionState), return); |
| 8618 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(restArgs, toImplArguments<ScriptVa
lue>(info, 1, exceptionState), exceptionState); | 8633 TONATIVE_CONVERT(convertAndThrow(restArgs = toImplArguments<ScriptValue>
(info, 1, exceptionState), exceptionState), return); |
| 8619 } | 8634 } |
| 8620 impl->overloadedMethodL(longArg, restArgs); | 8635 impl->overloadedMethodL(longArg, restArgs); |
| 8621 } | 8636 } |
| 8622 | 8637 |
| 8623 static void overloadedMethodL2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8638 static void overloadedMethodL2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 8624 { | 8639 { |
| 8625 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodL", "TestObject", info.Holder(), info.GetIsolate()); | 8640 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodL", "TestObject", info.Holder(), info.GetIsolate()); |
| 8626 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8641 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 8627 V8StringResource<> stringArg; | 8642 V8StringResource<> stringArg; |
| 8628 Vector<ScriptValue> restArgs; | 8643 Vector<ScriptValue> restArgs; |
| 8629 { | 8644 { |
| 8630 TOSTRING_VOID_INTERNAL(stringArg, info[0]); | 8645 TONATIVE_CONVERT((stringArg = info[0]).prepare(), return); |
| 8631 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(restArgs, toImplArguments<ScriptVa
lue>(info, 1, exceptionState), exceptionState); | 8646 TONATIVE_CONVERT(convertAndThrow(restArgs = toImplArguments<ScriptValue>
(info, 1, exceptionState), exceptionState), return); |
| 8632 } | 8647 } |
| 8633 impl->overloadedMethodL(stringArg, restArgs); | 8648 impl->overloadedMethodL(stringArg, restArgs); |
| 8634 } | 8649 } |
| 8635 | 8650 |
| 8636 static void overloadedMethodLMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 8651 static void overloadedMethodLMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
| 8637 { | 8652 { |
| 8638 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodL", "TestObject", info.Holder(), info.GetIsolate()); | 8653 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodL", "TestObject", info.Holder(), info.GetIsolate()); |
| 8639 switch (std::min(2, info.Length())) { | 8654 switch (std::min(2, info.Length())) { |
| 8640 case 1: | 8655 case 1: |
| 8641 if (info[0]->IsNumber()) { | 8656 if (info[0]->IsNumber()) { |
| (...skipping 26 matching lines...) Expand all Loading... |
| 8668 default: | 8683 default: |
| 8669 break; | 8684 break; |
| 8670 } | 8685 } |
| 8671 if (info.Length() < 1) { | 8686 if (info.Length() < 1) { |
| 8672 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 8687 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
| 8673 exceptionState.throwIfNeeded(); | 8688 exceptionState.throwIfNeeded(); |
| 8674 return; | 8689 return; |
| 8675 } | 8690 } |
| 8676 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 8691 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 8677 exceptionState.throwIfNeeded(); | 8692 exceptionState.throwIfNeeded(); |
| 8693 return; |
| 8678 } | 8694 } |
| 8679 | 8695 |
| 8680 static void overloadedMethodLMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 8696 static void overloadedMethodLMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 8681 { | 8697 { |
| 8682 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 8698 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 8683 TestObjectV8Internal::overloadedMethodLMethod(info); | 8699 TestObjectV8Internal::overloadedMethodLMethod(info); |
| 8684 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 8700 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 8685 } | 8701 } |
| 8686 | 8702 |
| 8687 static void promiseOverloadMethod1Method(const v8::FunctionCallbackInfo<v8::Valu
e>& info) | 8703 static void promiseOverloadMethod1Method(const v8::FunctionCallbackInfo<v8::Valu
e>& info) |
| 8688 { | 8704 { |
| 8689 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8705 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 8690 v8SetReturnValue(info, impl->promiseOverloadMethod().v8Value()); | 8706 v8SetReturnValue(info, impl->promiseOverloadMethod().v8Value()); |
| 8691 } | 8707 } |
| 8692 | 8708 |
| 8709 static void promiseOverloadMethod2MethodPromise(const v8::FunctionCallbackInfo<v
8::Value>& info, ExceptionState& exceptionState) |
| 8710 { |
| 8711 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 8712 DOMWindow* arg1; |
| 8713 double arg2; |
| 8714 { |
| 8715 arg1 = toDOMWindow(info.GetIsolate(), info[0]); |
| 8716 TONATIVE_CONVERT(convertAndCheck(arg2 = toDouble(info[1], exceptionState
), exceptionState), return); |
| 8717 } |
| 8718 v8SetReturnValue(info, impl->promiseOverloadMethod(arg1, arg2).v8Value()); |
| 8719 } |
| 8720 |
| 8693 static void promiseOverloadMethod2Method(const v8::FunctionCallbackInfo<v8::Valu
e>& info) | 8721 static void promiseOverloadMethod2Method(const v8::FunctionCallbackInfo<v8::Valu
e>& info) |
| 8694 { | 8722 { |
| 8695 ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseOver
loadMethod", "TestObject", info.Holder(), info.GetIsolate()); | 8723 ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseOver
loadMethod", "TestObject", info.Holder(), info.GetIsolate()); |
| 8724 promiseOverloadMethod2MethodPromise(info, exceptionState); |
| 8725 if (exceptionState.hadException()) |
| 8726 v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.G
etIsolate())).v8Value()); |
| 8727 } |
| 8728 |
| 8729 static void promiseOverloadMethod3MethodPromise(const v8::FunctionCallbackInfo<v
8::Value>& info, ExceptionState& exceptionState) |
| 8730 { |
| 8696 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8731 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 8697 DOMWindow* arg1; | 8732 Document* arg1; |
| 8698 double arg2; | 8733 double arg2; |
| 8699 { | 8734 { |
| 8700 arg1 = toDOMWindow(info.GetIsolate(), info[0]); | 8735 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())); | 8736 TONATIVE_CONVERT(convertAndCheck(arg2 = toDouble(info[1], exceptionState
), exceptionState), return); |
| 8702 } | 8737 } |
| 8703 v8SetReturnValue(info, impl->promiseOverloadMethod(arg1, arg2).v8Value()); | 8738 v8SetReturnValue(info, impl->promiseOverloadMethod(arg1, arg2).v8Value()); |
| 8704 } | 8739 } |
| 8705 | 8740 |
| 8706 static void promiseOverloadMethod3Method(const v8::FunctionCallbackInfo<v8::Valu
e>& info) | 8741 static void promiseOverloadMethod3Method(const v8::FunctionCallbackInfo<v8::Valu
e>& info) |
| 8707 { | 8742 { |
| 8708 ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseOver
loadMethod", "TestObject", info.Holder(), info.GetIsolate()); | 8743 ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseOver
loadMethod", "TestObject", info.Holder(), info.GetIsolate()); |
| 8709 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8744 promiseOverloadMethod3MethodPromise(info, exceptionState); |
| 8710 Document* arg1; | 8745 if (exceptionState.hadException()) |
| 8711 double arg2; | 8746 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 } | 8747 } |
| 8718 | 8748 |
| 8719 static void promiseOverloadMethodMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) | 8749 static void promiseOverloadMethodMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) |
| 8720 { | 8750 { |
| 8721 ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseOver
loadMethod", "TestObject", info.Holder(), info.GetIsolate()); | 8751 ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseOver
loadMethod", "TestObject", info.Holder(), info.GetIsolate()); |
| 8722 switch (std::min(2, info.Length())) { | 8752 switch (std::min(2, info.Length())) { |
| 8723 case 0: | 8753 case 0: |
| 8724 if (true) { | 8754 if (true) { |
| 8725 promiseOverloadMethod1Method(info); | 8755 promiseOverloadMethod1Method(info); |
| 8726 return; | 8756 return; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 8739 default: | 8769 default: |
| 8740 if (info.Length() >= 0) { | 8770 if (info.Length() >= 0) { |
| 8741 setArityTypeError(exceptionState, "[0, 2]", info.Length()); | 8771 setArityTypeError(exceptionState, "[0, 2]", info.Length()); |
| 8742 v8SetReturnValue(info, exceptionState.reject(ScriptState::current(in
fo.GetIsolate())).v8Value()); | 8772 v8SetReturnValue(info, exceptionState.reject(ScriptState::current(in
fo.GetIsolate())).v8Value()); |
| 8743 return; | 8773 return; |
| 8744 } | 8774 } |
| 8745 break; | 8775 break; |
| 8746 } | 8776 } |
| 8747 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."); |
| 8748 v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.GetIs
olate())).v8Value()); | 8778 v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.GetIs
olate())).v8Value()); |
| 8779 return; |
| 8749 } | 8780 } |
| 8750 | 8781 |
| 8751 static void promiseOverloadMethodMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) | 8782 static void promiseOverloadMethodMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) |
| 8752 { | 8783 { |
| 8753 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 8784 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 8754 TestObjectV8Internal::promiseOverloadMethodMethod(info); | 8785 TestObjectV8Internal::promiseOverloadMethodMethod(info); |
| 8755 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 8786 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 8756 } | 8787 } |
| 8757 | 8788 |
| 8758 static void overloadedPerWorldBindingsMethod1Method(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 8789 static void overloadedPerWorldBindingsMethod1Method(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
| 8759 { | 8790 { |
| 8760 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8791 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 8761 impl->overloadedPerWorldBindingsMethod(); | 8792 impl->overloadedPerWorldBindingsMethod(); |
| 8762 } | 8793 } |
| 8763 | 8794 |
| 8764 static void overloadedPerWorldBindingsMethod1MethodForMainWorld(const v8::Functi
onCallbackInfo<v8::Value>& info) | 8795 static void overloadedPerWorldBindingsMethod1MethodForMainWorld(const v8::Functi
onCallbackInfo<v8::Value>& info) |
| 8765 { | 8796 { |
| 8766 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8797 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 8767 impl->overloadedPerWorldBindingsMethod(); | 8798 impl->overloadedPerWorldBindingsMethod(); |
| 8768 } | 8799 } |
| 8769 | 8800 |
| 8770 static void overloadedPerWorldBindingsMethod2Method(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 8801 static void overloadedPerWorldBindingsMethod2Method(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
| 8771 { | 8802 { |
| 8772 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP
erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate()); | 8803 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP
erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate()); |
| 8773 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8804 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 8774 int longArg; | 8805 int longArg; |
| 8775 { | 8806 { |
| 8776 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); | 8807 TONATIVE_CONVERT(convertAndThrow(longArg = toInt32(info[0], exceptionSta
te), exceptionState), return); |
| 8777 } | 8808 } |
| 8778 impl->overloadedPerWorldBindingsMethod(longArg); | 8809 impl->overloadedPerWorldBindingsMethod(longArg); |
| 8779 } | 8810 } |
| 8780 | 8811 |
| 8781 static void overloadedPerWorldBindingsMethodMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) | 8812 static void overloadedPerWorldBindingsMethodMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) |
| 8782 { | 8813 { |
| 8783 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP
erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate()); | 8814 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP
erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate()); |
| 8784 switch (std::min(1, info.Length())) { | 8815 switch (std::min(1, info.Length())) { |
| 8785 case 0: | 8816 case 0: |
| 8786 if (true) { | 8817 if (true) { |
| 8787 overloadedPerWorldBindingsMethod1Method(info); | 8818 overloadedPerWorldBindingsMethod1Method(info); |
| 8788 return; | 8819 return; |
| 8789 } | 8820 } |
| 8790 break; | 8821 break; |
| 8791 case 1: | 8822 case 1: |
| 8792 if (true) { | 8823 if (true) { |
| 8793 overloadedPerWorldBindingsMethod2Method(info); | 8824 overloadedPerWorldBindingsMethod2Method(info); |
| 8794 return; | 8825 return; |
| 8795 } | 8826 } |
| 8796 break; | 8827 break; |
| 8797 default: | 8828 default: |
| 8798 break; | 8829 break; |
| 8799 } | 8830 } |
| 8800 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."); |
| 8801 exceptionState.throwIfNeeded(); | 8832 exceptionState.throwIfNeeded(); |
| 8833 return; |
| 8802 } | 8834 } |
| 8803 | 8835 |
| 8804 static void overloadedPerWorldBindingsMethodMethodCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) | 8836 static void overloadedPerWorldBindingsMethodMethodCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
| 8805 { | 8837 { |
| 8806 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 8838 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 8807 TestObjectV8Internal::overloadedPerWorldBindingsMethodMethod(info); | 8839 TestObjectV8Internal::overloadedPerWorldBindingsMethodMethod(info); |
| 8808 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 8840 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 8809 } | 8841 } |
| 8810 | 8842 |
| 8811 static void overloadedPerWorldBindingsMethod2MethodForMainWorld(const v8::Functi
onCallbackInfo<v8::Value>& info) | 8843 static void overloadedPerWorldBindingsMethod2MethodForMainWorld(const v8::Functi
onCallbackInfo<v8::Value>& info) |
| 8812 { | 8844 { |
| 8813 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP
erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate()); | 8845 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP
erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate()); |
| 8814 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8846 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 8815 int longArg; | 8847 int longArg; |
| 8816 { | 8848 { |
| 8817 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); | 8849 TONATIVE_CONVERT(convertAndThrow(longArg = toInt32(info[0], exceptionSta
te), exceptionState), return); |
| 8818 } | 8850 } |
| 8819 impl->overloadedPerWorldBindingsMethod(longArg); | 8851 impl->overloadedPerWorldBindingsMethod(longArg); |
| 8820 } | 8852 } |
| 8821 | 8853 |
| 8822 static void overloadedPerWorldBindingsMethodMethodForMainWorld(const v8::Functio
nCallbackInfo<v8::Value>& info) | 8854 static void overloadedPerWorldBindingsMethodMethodForMainWorld(const v8::Functio
nCallbackInfo<v8::Value>& info) |
| 8823 { | 8855 { |
| 8824 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP
erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate()); | 8856 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP
erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate()); |
| 8825 switch (std::min(1, info.Length())) { | 8857 switch (std::min(1, info.Length())) { |
| 8826 case 0: | 8858 case 0: |
| 8827 if (true) { | 8859 if (true) { |
| 8828 overloadedPerWorldBindingsMethod1MethodForMainWorld(info); | 8860 overloadedPerWorldBindingsMethod1MethodForMainWorld(info); |
| 8829 return; | 8861 return; |
| 8830 } | 8862 } |
| 8831 break; | 8863 break; |
| 8832 case 1: | 8864 case 1: |
| 8833 if (true) { | 8865 if (true) { |
| 8834 overloadedPerWorldBindingsMethod2MethodForMainWorld(info); | 8866 overloadedPerWorldBindingsMethod2MethodForMainWorld(info); |
| 8835 return; | 8867 return; |
| 8836 } | 8868 } |
| 8837 break; | 8869 break; |
| 8838 default: | 8870 default: |
| 8839 break; | 8871 break; |
| 8840 } | 8872 } |
| 8841 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 8873 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 8842 exceptionState.throwIfNeeded(); | 8874 exceptionState.throwIfNeeded(); |
| 8875 return; |
| 8843 } | 8876 } |
| 8844 | 8877 |
| 8845 static void overloadedPerWorldBindingsMethodMethodCallbackForMainWorld(const v8:
:FunctionCallbackInfo<v8::Value>& info) | 8878 static void overloadedPerWorldBindingsMethodMethodCallbackForMainWorld(const v8:
:FunctionCallbackInfo<v8::Value>& info) |
| 8846 { | 8879 { |
| 8847 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 8880 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 8848 TestObjectV8Internal::overloadedPerWorldBindingsMethodMethodForMainWorld(inf
o); | 8881 TestObjectV8Internal::overloadedPerWorldBindingsMethodMethodForMainWorld(inf
o); |
| 8849 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 8882 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 8850 } | 8883 } |
| 8851 | 8884 |
| 8852 static void overloadedStaticMethod1Method(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 8885 static void overloadedStaticMethod1Method(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
| 8853 { | 8886 { |
| 8854 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS
taticMethod", "TestObject", info.Holder(), info.GetIsolate()); | 8887 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS
taticMethod", "TestObject", info.Holder(), info.GetIsolate()); |
| 8855 int longArg; | 8888 int longArg; |
| 8856 { | 8889 { |
| 8857 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); | 8890 TONATIVE_CONVERT(convertAndThrow(longArg = toInt32(info[0], exceptionSta
te), exceptionState), return); |
| 8858 } | 8891 } |
| 8859 TestObject::overloadedStaticMethod(longArg); | 8892 TestObject::overloadedStaticMethod(longArg); |
| 8860 } | 8893 } |
| 8861 | 8894 |
| 8862 static void overloadedStaticMethod2Method(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 8895 static void overloadedStaticMethod2Method(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
| 8863 { | 8896 { |
| 8864 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS
taticMethod", "TestObject", info.Holder(), info.GetIsolate()); | 8897 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS
taticMethod", "TestObject", info.Holder(), info.GetIsolate()); |
| 8865 int longArg1; | 8898 int longArg1; |
| 8866 int longArg2; | 8899 int longArg2; |
| 8867 { | 8900 { |
| 8868 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg1, toInt32(info[0], excepti
onState), exceptionState); | 8901 TONATIVE_CONVERT(convertAndThrow(longArg1 = toInt32(info[0], exceptionSt
ate), exceptionState), return); |
| 8869 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg2, toInt32(info[1], excepti
onState), exceptionState); | 8902 TONATIVE_CONVERT(convertAndThrow(longArg2 = toInt32(info[1], exceptionSt
ate), exceptionState), return); |
| 8870 } | 8903 } |
| 8871 TestObject::overloadedStaticMethod(longArg1, longArg2); | 8904 TestObject::overloadedStaticMethod(longArg1, longArg2); |
| 8872 } | 8905 } |
| 8873 | 8906 |
| 8874 static void overloadedStaticMethodMethod(const v8::FunctionCallbackInfo<v8::Valu
e>& info) | 8907 static void overloadedStaticMethodMethod(const v8::FunctionCallbackInfo<v8::Valu
e>& info) |
| 8875 { | 8908 { |
| 8876 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS
taticMethod", "TestObject", info.Holder(), info.GetIsolate()); | 8909 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS
taticMethod", "TestObject", info.Holder(), info.GetIsolate()); |
| 8877 switch (std::min(2, info.Length())) { | 8910 switch (std::min(2, info.Length())) { |
| 8878 case 1: | 8911 case 1: |
| 8879 if (true) { | 8912 if (true) { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 8890 default: | 8923 default: |
| 8891 break; | 8924 break; |
| 8892 } | 8925 } |
| 8893 if (info.Length() < 1) { | 8926 if (info.Length() < 1) { |
| 8894 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 8927 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
| 8895 exceptionState.throwIfNeeded(); | 8928 exceptionState.throwIfNeeded(); |
| 8896 return; | 8929 return; |
| 8897 } | 8930 } |
| 8898 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 8931 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 8899 exceptionState.throwIfNeeded(); | 8932 exceptionState.throwIfNeeded(); |
| 8933 return; |
| 8900 } | 8934 } |
| 8901 | 8935 |
| 8902 static void overloadedStaticMethodMethodCallback(const v8::FunctionCallbackInfo<
v8::Value>& info) | 8936 static void overloadedStaticMethodMethodCallback(const v8::FunctionCallbackInfo<
v8::Value>& info) |
| 8903 { | 8937 { |
| 8904 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 8938 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 8905 TestObjectV8Internal::overloadedStaticMethodMethod(info); | 8939 TestObjectV8Internal::overloadedStaticMethodMethod(info); |
| 8906 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 8940 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 8907 } | 8941 } |
| 8908 | 8942 |
| 8909 static void voidMethodClampUnsignedShortArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) | 8943 static void voidMethodClampUnsignedShortArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) |
| 8910 { | 8944 { |
| 8911 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodC
lampUnsignedShortArg", "TestObject", info.Holder(), info.GetIsolate()); | 8945 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodC
lampUnsignedShortArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 8912 if (UNLIKELY(info.Length() < 1)) { | 8946 if (UNLIKELY(info.Length() < 1)) { |
| 8913 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 8947 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 8914 exceptionState.throwIfNeeded(); | 8948 exceptionState.throwIfNeeded(); |
| 8915 return; | 8949 return; |
| 8916 } | 8950 } |
| 8917 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8951 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 8918 unsigned clampUnsignedShortArg; | 8952 unsigned clampUnsignedShortArg; |
| 8919 { | 8953 { |
| 8920 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(clampUnsignedShortArg, toUInt16(in
fo[0], Clamp, exceptionState), exceptionState); | 8954 TONATIVE_CONVERT(convertAndThrow(clampUnsignedShortArg = toUInt16(info[0
], Clamp, exceptionState), exceptionState), return); |
| 8921 } | 8955 } |
| 8922 impl->voidMethodClampUnsignedShortArg(clampUnsignedShortArg); | 8956 impl->voidMethodClampUnsignedShortArg(clampUnsignedShortArg); |
| 8923 } | 8957 } |
| 8924 | 8958 |
| 8925 static void voidMethodClampUnsignedShortArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) | 8959 static void voidMethodClampUnsignedShortArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
| 8926 { | 8960 { |
| 8927 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 8961 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 8928 TestObjectV8Internal::voidMethodClampUnsignedShortArgMethod(info); | 8962 TestObjectV8Internal::voidMethodClampUnsignedShortArgMethod(info); |
| 8929 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 8963 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 8930 } | 8964 } |
| 8931 | 8965 |
| 8932 static void voidMethodClampUnsignedLongArgMethod(const v8::FunctionCallbackInfo<
v8::Value>& info) | 8966 static void voidMethodClampUnsignedLongArgMethod(const v8::FunctionCallbackInfo<
v8::Value>& info) |
| 8933 { | 8967 { |
| 8934 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodC
lampUnsignedLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 8968 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodC
lampUnsignedLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 8935 if (UNLIKELY(info.Length() < 1)) { | 8969 if (UNLIKELY(info.Length() < 1)) { |
| 8936 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 8970 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 8937 exceptionState.throwIfNeeded(); | 8971 exceptionState.throwIfNeeded(); |
| 8938 return; | 8972 return; |
| 8939 } | 8973 } |
| 8940 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8974 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 8941 unsigned clampUnsignedLongArg; | 8975 unsigned clampUnsignedLongArg; |
| 8942 { | 8976 { |
| 8943 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(clampUnsignedLongArg, toUInt32(inf
o[0], Clamp, exceptionState), exceptionState); | 8977 TONATIVE_CONVERT(convertAndThrow(clampUnsignedLongArg = toUInt32(info[0]
, Clamp, exceptionState), exceptionState), return); |
| 8944 } | 8978 } |
| 8945 impl->voidMethodClampUnsignedLongArg(clampUnsignedLongArg); | 8979 impl->voidMethodClampUnsignedLongArg(clampUnsignedLongArg); |
| 8946 } | 8980 } |
| 8947 | 8981 |
| 8948 static void voidMethodClampUnsignedLongArgMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) | 8982 static void voidMethodClampUnsignedLongArgMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
| 8949 { | 8983 { |
| 8950 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 8984 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 8951 TestObjectV8Internal::voidMethodClampUnsignedLongArgMethod(info); | 8985 TestObjectV8Internal::voidMethodClampUnsignedLongArgMethod(info); |
| 8952 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 8986 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 8953 } | 8987 } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 8968 TestObjectV8Internal::voidMethodDefaultUndefinedTestInterfaceEmptyArgMethod(
info); | 9002 TestObjectV8Internal::voidMethodDefaultUndefinedTestInterfaceEmptyArgMethod(
info); |
| 8969 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9003 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 8970 } | 9004 } |
| 8971 | 9005 |
| 8972 static void voidMethodDefaultUndefinedLongArgMethod(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 9006 static void voidMethodDefaultUndefinedLongArgMethod(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
| 8973 { | 9007 { |
| 8974 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultUndefinedLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 9008 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultUndefinedLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 8975 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9009 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 8976 int defaultUndefinedLongArg; | 9010 int defaultUndefinedLongArg; |
| 8977 { | 9011 { |
| 8978 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultUndefinedLongArg, toInt32(i
nfo[0], exceptionState), exceptionState); | 9012 TONATIVE_CONVERT(convertAndThrow(defaultUndefinedLongArg = toInt32(info[
0], exceptionState), exceptionState), return); |
| 8979 } | 9013 } |
| 8980 impl->voidMethodDefaultUndefinedLongArg(defaultUndefinedLongArg); | 9014 impl->voidMethodDefaultUndefinedLongArg(defaultUndefinedLongArg); |
| 8981 } | 9015 } |
| 8982 | 9016 |
| 8983 static void voidMethodDefaultUndefinedLongArgMethodCallback(const v8::FunctionCa
llbackInfo<v8::Value>& info) | 9017 static void voidMethodDefaultUndefinedLongArgMethodCallback(const v8::FunctionCa
llbackInfo<v8::Value>& info) |
| 8984 { | 9018 { |
| 8985 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 9019 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 8986 TestObjectV8Internal::voidMethodDefaultUndefinedLongArgMethod(info); | 9020 TestObjectV8Internal::voidMethodDefaultUndefinedLongArgMethod(info); |
| 8987 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9021 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 8988 } | 9022 } |
| 8989 | 9023 |
| 8990 static void voidMethodDefaultUndefinedStringArgMethod(const v8::FunctionCallback
Info<v8::Value>& info) | 9024 static void voidMethodDefaultUndefinedStringArgMethod(const v8::FunctionCallback
Info<v8::Value>& info) |
| 8991 { | 9025 { |
| 8992 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9026 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 8993 V8StringResource<> defaultUndefinedStringArg; | 9027 V8StringResource<> defaultUndefinedStringArg; |
| 8994 { | 9028 { |
| 8995 TOSTRING_VOID_INTERNAL(defaultUndefinedStringArg, info[0]); | 9029 TONATIVE_CONVERT((defaultUndefinedStringArg = info[0]).prepare(), return
); |
| 8996 } | 9030 } |
| 8997 impl->voidMethodDefaultUndefinedStringArg(defaultUndefinedStringArg); | 9031 impl->voidMethodDefaultUndefinedStringArg(defaultUndefinedStringArg); |
| 8998 } | 9032 } |
| 8999 | 9033 |
| 9000 static void voidMethodDefaultUndefinedStringArgMethodCallback(const v8::Function
CallbackInfo<v8::Value>& info) | 9034 static void voidMethodDefaultUndefinedStringArgMethodCallback(const v8::Function
CallbackInfo<v8::Value>& info) |
| 9001 { | 9035 { |
| 9002 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 9036 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 9003 TestObjectV8Internal::voidMethodDefaultUndefinedStringArgMethod(info); | 9037 TestObjectV8Internal::voidMethodDefaultUndefinedStringArgMethod(info); |
| 9004 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9038 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 9005 } | 9039 } |
| 9006 | 9040 |
| 9007 static void voidMethodEnforceRangeLongArgMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) | 9041 static void voidMethodEnforceRangeLongArgMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) |
| 9008 { | 9042 { |
| 9009 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodE
nforceRangeLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 9043 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodE
nforceRangeLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 9010 if (UNLIKELY(info.Length() < 1)) { | 9044 if (UNLIKELY(info.Length() < 1)) { |
| 9011 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 9045 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 9012 exceptionState.throwIfNeeded(); | 9046 exceptionState.throwIfNeeded(); |
| 9013 return; | 9047 return; |
| 9014 } | 9048 } |
| 9015 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9049 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 9016 int enforceRangeLongArg; | 9050 int enforceRangeLongArg; |
| 9017 { | 9051 { |
| 9018 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(enforceRangeLongArg, toInt32(info[
0], EnforceRange, exceptionState), exceptionState); | 9052 TONATIVE_CONVERT(convertAndThrow(enforceRangeLongArg = toInt32(info[0],
EnforceRange, exceptionState), exceptionState), return); |
| 9019 } | 9053 } |
| 9020 impl->voidMethodEnforceRangeLongArg(enforceRangeLongArg); | 9054 impl->voidMethodEnforceRangeLongArg(enforceRangeLongArg); |
| 9021 } | 9055 } |
| 9022 | 9056 |
| 9023 static void voidMethodEnforceRangeLongArgMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) | 9057 static void voidMethodEnforceRangeLongArgMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
| 9024 { | 9058 { |
| 9025 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 9059 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 9026 TestObjectV8Internal::voidMethodEnforceRangeLongArgMethod(info); | 9060 TestObjectV8Internal::voidMethodEnforceRangeLongArgMethod(info); |
| 9027 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9061 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 9028 } | 9062 } |
| 9029 | 9063 |
| 9030 static void voidMethodTreatNullAsEmptyStringStringArgMethod(const v8::FunctionCa
llbackInfo<v8::Value>& info) | 9064 static void voidMethodTreatNullAsEmptyStringStringArgMethod(const v8::FunctionCa
llbackInfo<v8::Value>& info) |
| 9031 { | 9065 { |
| 9032 if (UNLIKELY(info.Length() < 1)) { | 9066 if (UNLIKELY(info.Length() < 1)) { |
| 9033 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "voidMethodTreatNullAsEmptyStringStringArg", "TestObject", 1, i
nfo.Length()), info.GetIsolate()); | 9067 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "voidMethodTreatNullAsEmptyStringStringArg", "TestObject", 1, i
nfo.Length()), info.GetIsolate()); |
| 9034 return; | 9068 return; |
| 9035 } | 9069 } |
| 9036 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9070 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 9037 V8StringResource<TreatNullAsEmptyString> treatNullAsEmptyStringStringArg; | 9071 V8StringResource<TreatNullAsEmptyString> treatNullAsEmptyStringStringArg; |
| 9038 { | 9072 { |
| 9039 TOSTRING_VOID_INTERNAL(treatNullAsEmptyStringStringArg, info[0]); | 9073 TONATIVE_CONVERT((treatNullAsEmptyStringStringArg = info[0]).prepare(),
return); |
| 9040 } | 9074 } |
| 9041 impl->voidMethodTreatNullAsEmptyStringStringArg(treatNullAsEmptyStringString
Arg); | 9075 impl->voidMethodTreatNullAsEmptyStringStringArg(treatNullAsEmptyStringString
Arg); |
| 9042 } | 9076 } |
| 9043 | 9077 |
| 9044 static void voidMethodTreatNullAsEmptyStringStringArgMethodCallback(const v8::Fu
nctionCallbackInfo<v8::Value>& info) | 9078 static void voidMethodTreatNullAsEmptyStringStringArgMethodCallback(const v8::Fu
nctionCallbackInfo<v8::Value>& info) |
| 9045 { | 9079 { |
| 9046 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 9080 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 9047 TestObjectV8Internal::voidMethodTreatNullAsEmptyStringStringArgMethod(info); | 9081 TestObjectV8Internal::voidMethodTreatNullAsEmptyStringStringArgMethod(info); |
| 9048 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9082 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 9049 } | 9083 } |
| 9050 | 9084 |
| 9051 static void voidMethodTreatNullAsNullStringStringArgMethod(const v8::FunctionCal
lbackInfo<v8::Value>& info) | 9085 static void voidMethodTreatNullAsNullStringStringArgMethod(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
| 9052 { | 9086 { |
| 9053 if (UNLIKELY(info.Length() < 1)) { | 9087 if (UNLIKELY(info.Length() < 1)) { |
| 9054 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "voidMethodTreatNullAsNullStringStringArg", "TestObject", 1, in
fo.Length()), info.GetIsolate()); | 9088 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "voidMethodTreatNullAsNullStringStringArg", "TestObject", 1, in
fo.Length()), info.GetIsolate()); |
| 9055 return; | 9089 return; |
| 9056 } | 9090 } |
| 9057 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9091 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 9058 V8StringResource<TreatNullAsNullString> treatNullAsNullStringStringArg; | 9092 V8StringResource<TreatNullAsNullString> treatNullAsNullStringStringArg; |
| 9059 { | 9093 { |
| 9060 TOSTRING_VOID_INTERNAL(treatNullAsNullStringStringArg, info[0]); | 9094 TONATIVE_CONVERT((treatNullAsNullStringStringArg = info[0]).prepare(), r
eturn); |
| 9061 } | 9095 } |
| 9062 impl->voidMethodTreatNullAsNullStringStringArg(treatNullAsNullStringStringAr
g); | 9096 impl->voidMethodTreatNullAsNullStringStringArg(treatNullAsNullStringStringAr
g); |
| 9063 } | 9097 } |
| 9064 | 9098 |
| 9065 static void voidMethodTreatNullAsNullStringStringArgMethodCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) | 9099 static void voidMethodTreatNullAsNullStringStringArgMethodCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) |
| 9066 { | 9100 { |
| 9067 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 9101 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 9068 TestObjectV8Internal::voidMethodTreatNullAsNullStringStringArgMethod(info); | 9102 TestObjectV8Internal::voidMethodTreatNullAsNullStringStringArgMethod(info); |
| 9069 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9103 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 9070 } | 9104 } |
| 9071 | 9105 |
| 9072 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe
thod(const v8::FunctionCallbackInfo<v8::Value>& info) | 9106 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe
thod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 9073 { | 9107 { |
| 9074 if (UNLIKELY(info.Length() < 1)) { | 9108 if (UNLIKELY(info.Length() < 1)) { |
| 9075 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStrin
gArg", "TestObject", 1, info.Length()), info.GetIsolate()); | 9109 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStrin
gArg", "TestObject", 1, info.Length()), info.GetIsolate()); |
| 9076 return; | 9110 return; |
| 9077 } | 9111 } |
| 9078 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9112 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 9079 V8StringResource<TreatNullAndUndefinedAsNullString> treatNullAsNullStringStr
ingArg; | 9113 V8StringResource<TreatNullAndUndefinedAsNullString> treatNullAsNullStringStr
ingArg; |
| 9080 { | 9114 { |
| 9081 TOSTRING_VOID_INTERNAL(treatNullAsNullStringStringArg, info[0]); | 9115 TONATIVE_CONVERT((treatNullAsNullStringStringArg = info[0]).prepare(), r
eturn); |
| 9082 } | 9116 } |
| 9083 impl->voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg(tre
atNullAsNullStringStringArg); | 9117 impl->voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg(tre
atNullAsNullStringStringArg); |
| 9084 } | 9118 } |
| 9085 | 9119 |
| 9086 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe
thodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) | 9120 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe
thodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 9087 { | 9121 { |
| 9088 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 9122 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 9089 TestObjectV8Internal::voidMethodTreatNullAsNullStringTreatUndefinedAsNullStr
ingStringArgMethod(info); | 9123 TestObjectV8Internal::voidMethodTreatNullAsNullStringTreatUndefinedAsNullStr
ingStringArgMethod(info); |
| 9090 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9124 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 9091 } | 9125 } |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9374 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9408 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 9375 impl->DeprecateAsOverloadedMethod(); | 9409 impl->DeprecateAsOverloadedMethod(); |
| 9376 } | 9410 } |
| 9377 | 9411 |
| 9378 static void DeprecateAsOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8
::Value>& info) | 9412 static void DeprecateAsOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8
::Value>& info) |
| 9379 { | 9413 { |
| 9380 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs
OverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); | 9414 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs
OverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); |
| 9381 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9415 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 9382 int arg; | 9416 int arg; |
| 9383 { | 9417 { |
| 9384 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta
te), exceptionState); | 9418 TONATIVE_CONVERT(convertAndThrow(arg = toInt32(info[0], exceptionState),
exceptionState), return); |
| 9385 } | 9419 } |
| 9386 impl->DeprecateAsOverloadedMethod(arg); | 9420 impl->DeprecateAsOverloadedMethod(arg); |
| 9387 } | 9421 } |
| 9388 | 9422 |
| 9389 static void DeprecateAsOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 9423 static void DeprecateAsOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
| 9390 { | 9424 { |
| 9391 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs
OverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); | 9425 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs
OverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); |
| 9392 switch (std::min(1, info.Length())) { | 9426 switch (std::min(1, info.Length())) { |
| 9393 case 0: | 9427 case 0: |
| 9394 if (true) { | 9428 if (true) { |
| 9395 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), ca
llingExecutionContext(info.GetIsolate()), UseCounter::TestFeatureA); | 9429 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), ca
llingExecutionContext(info.GetIsolate()), UseCounter::TestFeatureA); |
| 9396 DeprecateAsOverloadedMethod1Method(info); | 9430 DeprecateAsOverloadedMethod1Method(info); |
| 9397 return; | 9431 return; |
| 9398 } | 9432 } |
| 9399 break; | 9433 break; |
| 9400 case 1: | 9434 case 1: |
| 9401 if (true) { | 9435 if (true) { |
| 9402 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), ca
llingExecutionContext(info.GetIsolate()), UseCounter::TestFeatureB); | 9436 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), ca
llingExecutionContext(info.GetIsolate()), UseCounter::TestFeatureB); |
| 9403 DeprecateAsOverloadedMethod2Method(info); | 9437 DeprecateAsOverloadedMethod2Method(info); |
| 9404 return; | 9438 return; |
| 9405 } | 9439 } |
| 9406 break; | 9440 break; |
| 9407 default: | 9441 default: |
| 9408 break; | 9442 break; |
| 9409 } | 9443 } |
| 9410 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 9444 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 9411 exceptionState.throwIfNeeded(); | 9445 exceptionState.throwIfNeeded(); |
| 9446 return; |
| 9412 } | 9447 } |
| 9413 | 9448 |
| 9414 static void DeprecateAsOverloadedMethodMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 9449 static void DeprecateAsOverloadedMethodMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
| 9415 { | 9450 { |
| 9416 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 9451 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 9417 TestObjectV8Internal::DeprecateAsOverloadedMethodMethod(info); | 9452 TestObjectV8Internal::DeprecateAsOverloadedMethodMethod(info); |
| 9418 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9453 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 9419 } | 9454 } |
| 9420 | 9455 |
| 9421 static void DeprecateAsSameValueOverloadedMethod1Method(const v8::FunctionCallba
ckInfo<v8::Value>& info) | 9456 static void DeprecateAsSameValueOverloadedMethod1Method(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
| 9422 { | 9457 { |
| 9423 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9458 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 9424 impl->DeprecateAsSameValueOverloadedMethod(); | 9459 impl->DeprecateAsSameValueOverloadedMethod(); |
| 9425 } | 9460 } |
| 9426 | 9461 |
| 9427 static void DeprecateAsSameValueOverloadedMethod2Method(const v8::FunctionCallba
ckInfo<v8::Value>& info) | 9462 static void DeprecateAsSameValueOverloadedMethod2Method(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
| 9428 { | 9463 { |
| 9429 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs
SameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); | 9464 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs
SameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); |
| 9430 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9465 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 9431 int arg; | 9466 int arg; |
| 9432 { | 9467 { |
| 9433 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta
te), exceptionState); | 9468 TONATIVE_CONVERT(convertAndThrow(arg = toInt32(info[0], exceptionState),
exceptionState), return); |
| 9434 } | 9469 } |
| 9435 impl->DeprecateAsSameValueOverloadedMethod(arg); | 9470 impl->DeprecateAsSameValueOverloadedMethod(arg); |
| 9436 } | 9471 } |
| 9437 | 9472 |
| 9438 static void DeprecateAsSameValueOverloadedMethodMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 9473 static void DeprecateAsSameValueOverloadedMethodMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
| 9439 { | 9474 { |
| 9440 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs
SameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); | 9475 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs
SameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); |
| 9441 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe
cutionContext(info.GetIsolate()), UseCounter::TestFeature); | 9476 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe
cutionContext(info.GetIsolate()), UseCounter::TestFeature); |
| 9442 switch (std::min(1, info.Length())) { | 9477 switch (std::min(1, info.Length())) { |
| 9443 case 0: | 9478 case 0: |
| 9444 if (true) { | 9479 if (true) { |
| 9445 DeprecateAsSameValueOverloadedMethod1Method(info); | 9480 DeprecateAsSameValueOverloadedMethod1Method(info); |
| 9446 return; | 9481 return; |
| 9447 } | 9482 } |
| 9448 break; | 9483 break; |
| 9449 case 1: | 9484 case 1: |
| 9450 if (true) { | 9485 if (true) { |
| 9451 DeprecateAsSameValueOverloadedMethod2Method(info); | 9486 DeprecateAsSameValueOverloadedMethod2Method(info); |
| 9452 return; | 9487 return; |
| 9453 } | 9488 } |
| 9454 break; | 9489 break; |
| 9455 default: | 9490 default: |
| 9456 break; | 9491 break; |
| 9457 } | 9492 } |
| 9458 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 9493 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 9459 exceptionState.throwIfNeeded(); | 9494 exceptionState.throwIfNeeded(); |
| 9495 return; |
| 9460 } | 9496 } |
| 9461 | 9497 |
| 9462 static void DeprecateAsSameValueOverloadedMethodMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) | 9498 static void DeprecateAsSameValueOverloadedMethodMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) |
| 9463 { | 9499 { |
| 9464 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 9500 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 9465 TestObjectV8Internal::DeprecateAsSameValueOverloadedMethodMethod(info); | 9501 TestObjectV8Internal::DeprecateAsSameValueOverloadedMethodMethod(info); |
| 9466 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9502 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 9467 } | 9503 } |
| 9468 | 9504 |
| 9469 static void measureAsOverloadedMethod1Method(const v8::FunctionCallbackInfo<v8::
Value>& info) | 9505 static void measureAsOverloadedMethod1Method(const v8::FunctionCallbackInfo<v8::
Value>& info) |
| 9470 { | 9506 { |
| 9471 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9507 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 9472 impl->measureAsOverloadedMethod(); | 9508 impl->measureAsOverloadedMethod(); |
| 9473 } | 9509 } |
| 9474 | 9510 |
| 9475 static void measureAsOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8::
Value>& info) | 9511 static void measureAsOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8::
Value>& info) |
| 9476 { | 9512 { |
| 9477 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsOv
erloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); | 9513 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsOv
erloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); |
| 9478 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9514 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 9479 int arg; | 9515 int arg; |
| 9480 { | 9516 { |
| 9481 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta
te), exceptionState); | 9517 TONATIVE_CONVERT(convertAndThrow(arg = toInt32(info[0], exceptionState),
exceptionState), return); |
| 9482 } | 9518 } |
| 9483 impl->measureAsOverloadedMethod(arg); | 9519 impl->measureAsOverloadedMethod(arg); |
| 9484 } | 9520 } |
| 9485 | 9521 |
| 9486 static void measureAsOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 9522 static void measureAsOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 9487 { | 9523 { |
| 9488 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsOv
erloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); | 9524 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsOv
erloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); |
| 9489 switch (std::min(1, info.Length())) { | 9525 switch (std::min(1, info.Length())) { |
| 9490 case 0: | 9526 case 0: |
| 9491 if (true) { | 9527 if (true) { |
| 9492 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecut
ionContext(info.GetIsolate()), UseCounter::TestFeatureA); | 9528 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecut
ionContext(info.GetIsolate()), UseCounter::TestFeatureA); |
| 9493 measureAsOverloadedMethod1Method(info); | 9529 measureAsOverloadedMethod1Method(info); |
| 9494 return; | 9530 return; |
| 9495 } | 9531 } |
| 9496 break; | 9532 break; |
| 9497 case 1: | 9533 case 1: |
| 9498 if (true) { | 9534 if (true) { |
| 9499 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecut
ionContext(info.GetIsolate()), UseCounter::TestFeatureB); | 9535 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecut
ionContext(info.GetIsolate()), UseCounter::TestFeatureB); |
| 9500 measureAsOverloadedMethod2Method(info); | 9536 measureAsOverloadedMethod2Method(info); |
| 9501 return; | 9537 return; |
| 9502 } | 9538 } |
| 9503 break; | 9539 break; |
| 9504 default: | 9540 default: |
| 9505 break; | 9541 break; |
| 9506 } | 9542 } |
| 9507 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 9543 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 9508 exceptionState.throwIfNeeded(); | 9544 exceptionState.throwIfNeeded(); |
| 9545 return; |
| 9509 } | 9546 } |
| 9510 | 9547 |
| 9511 static void measureAsOverloadedMethodMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 9548 static void measureAsOverloadedMethodMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
| 9512 { | 9549 { |
| 9513 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 9550 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 9514 TestObjectV8Internal::measureAsOverloadedMethodMethod(info); | 9551 TestObjectV8Internal::measureAsOverloadedMethodMethod(info); |
| 9515 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9552 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 9516 } | 9553 } |
| 9517 | 9554 |
| 9518 static void measureAsSameValueOverloadedMethod1Method(const v8::FunctionCallback
Info<v8::Value>& info) | 9555 static void measureAsSameValueOverloadedMethod1Method(const v8::FunctionCallback
Info<v8::Value>& info) |
| 9519 { | 9556 { |
| 9520 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9557 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 9521 impl->measureAsSameValueOverloadedMethod(); | 9558 impl->measureAsSameValueOverloadedMethod(); |
| 9522 } | 9559 } |
| 9523 | 9560 |
| 9524 static void measureAsSameValueOverloadedMethod2Method(const v8::FunctionCallback
Info<v8::Value>& info) | 9561 static void measureAsSameValueOverloadedMethod2Method(const v8::FunctionCallback
Info<v8::Value>& info) |
| 9525 { | 9562 { |
| 9526 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsSa
meValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); | 9563 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsSa
meValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); |
| 9527 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9564 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 9528 int arg; | 9565 int arg; |
| 9529 { | 9566 { |
| 9530 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta
te), exceptionState); | 9567 TONATIVE_CONVERT(convertAndThrow(arg = toInt32(info[0], exceptionState),
exceptionState), return); |
| 9531 } | 9568 } |
| 9532 impl->measureAsSameValueOverloadedMethod(arg); | 9569 impl->measureAsSameValueOverloadedMethod(arg); |
| 9533 } | 9570 } |
| 9534 | 9571 |
| 9535 static void measureAsSameValueOverloadedMethodMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 9572 static void measureAsSameValueOverloadedMethodMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
| 9536 { | 9573 { |
| 9537 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsSa
meValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); | 9574 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsSa
meValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); |
| 9538 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte
xt(info.GetIsolate()), UseCounter::TestFeature); | 9575 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte
xt(info.GetIsolate()), UseCounter::TestFeature); |
| 9539 switch (std::min(1, info.Length())) { | 9576 switch (std::min(1, info.Length())) { |
| 9540 case 0: | 9577 case 0: |
| 9541 if (true) { | 9578 if (true) { |
| 9542 measureAsSameValueOverloadedMethod1Method(info); | 9579 measureAsSameValueOverloadedMethod1Method(info); |
| 9543 return; | 9580 return; |
| 9544 } | 9581 } |
| 9545 break; | 9582 break; |
| 9546 case 1: | 9583 case 1: |
| 9547 if (true) { | 9584 if (true) { |
| 9548 measureAsSameValueOverloadedMethod2Method(info); | 9585 measureAsSameValueOverloadedMethod2Method(info); |
| 9549 return; | 9586 return; |
| 9550 } | 9587 } |
| 9551 break; | 9588 break; |
| 9552 default: | 9589 default: |
| 9553 break; | 9590 break; |
| 9554 } | 9591 } |
| 9555 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 9592 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 9556 exceptionState.throwIfNeeded(); | 9593 exceptionState.throwIfNeeded(); |
| 9594 return; |
| 9557 } | 9595 } |
| 9558 | 9596 |
| 9559 static void measureAsSameValueOverloadedMethodMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) | 9597 static void measureAsSameValueOverloadedMethodMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) |
| 9560 { | 9598 { |
| 9561 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 9599 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 9562 TestObjectV8Internal::measureAsSameValueOverloadedMethodMethod(info); | 9600 TestObjectV8Internal::measureAsSameValueOverloadedMethodMethod(info); |
| 9563 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9601 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 9564 } | 9602 } |
| 9565 | 9603 |
| 9566 static void deprecateAsMeasureAsSameValueOverloadedMethod1Method(const v8::Funct
ionCallbackInfo<v8::Value>& info) | 9604 static void deprecateAsMeasureAsSameValueOverloadedMethod1Method(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
| 9567 { | 9605 { |
| 9568 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9606 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 9569 impl->deprecateAsMeasureAsSameValueOverloadedMethod(); | 9607 impl->deprecateAsMeasureAsSameValueOverloadedMethod(); |
| 9570 } | 9608 } |
| 9571 | 9609 |
| 9572 static void deprecateAsMeasureAsSameValueOverloadedMethod2Method(const v8::Funct
ionCallbackInfo<v8::Value>& info) | 9610 static void deprecateAsMeasureAsSameValueOverloadedMethod2Method(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
| 9573 { | 9611 { |
| 9574 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs
MeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat
e()); | 9612 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs
MeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat
e()); |
| 9575 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9613 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 9576 int arg; | 9614 int arg; |
| 9577 { | 9615 { |
| 9578 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta
te), exceptionState); | 9616 TONATIVE_CONVERT(convertAndThrow(arg = toInt32(info[0], exceptionState),
exceptionState), return); |
| 9579 } | 9617 } |
| 9580 impl->deprecateAsMeasureAsSameValueOverloadedMethod(arg); | 9618 impl->deprecateAsMeasureAsSameValueOverloadedMethod(arg); |
| 9581 } | 9619 } |
| 9582 | 9620 |
| 9583 static void deprecateAsMeasureAsSameValueOverloadedMethodMethod(const v8::Functi
onCallbackInfo<v8::Value>& info) | 9621 static void deprecateAsMeasureAsSameValueOverloadedMethodMethod(const v8::Functi
onCallbackInfo<v8::Value>& info) |
| 9584 { | 9622 { |
| 9585 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs
MeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat
e()); | 9623 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs
MeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat
e()); |
| 9586 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte
xt(info.GetIsolate()), UseCounter::TestFeature); | 9624 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte
xt(info.GetIsolate()), UseCounter::TestFeature); |
| 9587 switch (std::min(1, info.Length())) { | 9625 switch (std::min(1, info.Length())) { |
| 9588 case 0: | 9626 case 0: |
| 9589 if (true) { | 9627 if (true) { |
| 9590 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), ca
llingExecutionContext(info.GetIsolate()), UseCounter::TestFeatureA); | 9628 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), ca
llingExecutionContext(info.GetIsolate()), UseCounter::TestFeatureA); |
| 9591 deprecateAsMeasureAsSameValueOverloadedMethod1Method(info); | 9629 deprecateAsMeasureAsSameValueOverloadedMethod1Method(info); |
| 9592 return; | 9630 return; |
| 9593 } | 9631 } |
| 9594 break; | 9632 break; |
| 9595 case 1: | 9633 case 1: |
| 9596 if (true) { | 9634 if (true) { |
| 9597 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), ca
llingExecutionContext(info.GetIsolate()), UseCounter::TestFeatureB); | 9635 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), ca
llingExecutionContext(info.GetIsolate()), UseCounter::TestFeatureB); |
| 9598 deprecateAsMeasureAsSameValueOverloadedMethod2Method(info); | 9636 deprecateAsMeasureAsSameValueOverloadedMethod2Method(info); |
| 9599 return; | 9637 return; |
| 9600 } | 9638 } |
| 9601 break; | 9639 break; |
| 9602 default: | 9640 default: |
| 9603 break; | 9641 break; |
| 9604 } | 9642 } |
| 9605 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 9643 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 9606 exceptionState.throwIfNeeded(); | 9644 exceptionState.throwIfNeeded(); |
| 9645 return; |
| 9607 } | 9646 } |
| 9608 | 9647 |
| 9609 static void deprecateAsMeasureAsSameValueOverloadedMethodMethodCallback(const v8
::FunctionCallbackInfo<v8::Value>& info) | 9648 static void deprecateAsMeasureAsSameValueOverloadedMethodMethodCallback(const v8
::FunctionCallbackInfo<v8::Value>& info) |
| 9610 { | 9649 { |
| 9611 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 9650 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 9612 TestObjectV8Internal::deprecateAsMeasureAsSameValueOverloadedMethodMethod(in
fo); | 9651 TestObjectV8Internal::deprecateAsMeasureAsSameValueOverloadedMethodMethod(in
fo); |
| 9613 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9652 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 9614 } | 9653 } |
| 9615 | 9654 |
| 9616 static void deprecateAsSameValueMeasureAsOverloadedMethod1Method(const v8::Funct
ionCallbackInfo<v8::Value>& info) | 9655 static void deprecateAsSameValueMeasureAsOverloadedMethod1Method(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
| 9617 { | 9656 { |
| 9618 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9657 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 9619 impl->deprecateAsSameValueMeasureAsOverloadedMethod(); | 9658 impl->deprecateAsSameValueMeasureAsOverloadedMethod(); |
| 9620 } | 9659 } |
| 9621 | 9660 |
| 9622 static void deprecateAsSameValueMeasureAsOverloadedMethod2Method(const v8::Funct
ionCallbackInfo<v8::Value>& info) | 9661 static void deprecateAsSameValueMeasureAsOverloadedMethod2Method(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
| 9623 { | 9662 { |
| 9624 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs
SameValueMeasureAsOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat
e()); | 9663 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs
SameValueMeasureAsOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat
e()); |
| 9625 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9664 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 9626 int arg; | 9665 int arg; |
| 9627 { | 9666 { |
| 9628 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta
te), exceptionState); | 9667 TONATIVE_CONVERT(convertAndThrow(arg = toInt32(info[0], exceptionState),
exceptionState), return); |
| 9629 } | 9668 } |
| 9630 impl->deprecateAsSameValueMeasureAsOverloadedMethod(arg); | 9669 impl->deprecateAsSameValueMeasureAsOverloadedMethod(arg); |
| 9631 } | 9670 } |
| 9632 | 9671 |
| 9633 static void deprecateAsSameValueMeasureAsOverloadedMethodMethod(const v8::Functi
onCallbackInfo<v8::Value>& info) | 9672 static void deprecateAsSameValueMeasureAsOverloadedMethodMethod(const v8::Functi
onCallbackInfo<v8::Value>& info) |
| 9634 { | 9673 { |
| 9635 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs
SameValueMeasureAsOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat
e()); | 9674 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs
SameValueMeasureAsOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat
e()); |
| 9636 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe
cutionContext(info.GetIsolate()), UseCounter::TestFeature); | 9675 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe
cutionContext(info.GetIsolate()), UseCounter::TestFeature); |
| 9637 switch (std::min(1, info.Length())) { | 9676 switch (std::min(1, info.Length())) { |
| 9638 case 0: | 9677 case 0: |
| 9639 if (true) { | 9678 if (true) { |
| 9640 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecut
ionContext(info.GetIsolate()), UseCounter::TestFeatureA); | 9679 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecut
ionContext(info.GetIsolate()), UseCounter::TestFeatureA); |
| 9641 deprecateAsSameValueMeasureAsOverloadedMethod1Method(info); | 9680 deprecateAsSameValueMeasureAsOverloadedMethod1Method(info); |
| 9642 return; | 9681 return; |
| 9643 } | 9682 } |
| 9644 break; | 9683 break; |
| 9645 case 1: | 9684 case 1: |
| 9646 if (true) { | 9685 if (true) { |
| 9647 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecut
ionContext(info.GetIsolate()), UseCounter::TestFeatureB); | 9686 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecut
ionContext(info.GetIsolate()), UseCounter::TestFeatureB); |
| 9648 deprecateAsSameValueMeasureAsOverloadedMethod2Method(info); | 9687 deprecateAsSameValueMeasureAsOverloadedMethod2Method(info); |
| 9649 return; | 9688 return; |
| 9650 } | 9689 } |
| 9651 break; | 9690 break; |
| 9652 default: | 9691 default: |
| 9653 break; | 9692 break; |
| 9654 } | 9693 } |
| 9655 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 9694 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 9656 exceptionState.throwIfNeeded(); | 9695 exceptionState.throwIfNeeded(); |
| 9696 return; |
| 9657 } | 9697 } |
| 9658 | 9698 |
| 9659 static void deprecateAsSameValueMeasureAsOverloadedMethodMethodCallback(const v8
::FunctionCallbackInfo<v8::Value>& info) | 9699 static void deprecateAsSameValueMeasureAsOverloadedMethodMethodCallback(const v8
::FunctionCallbackInfo<v8::Value>& info) |
| 9660 { | 9700 { |
| 9661 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 9701 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 9662 TestObjectV8Internal::deprecateAsSameValueMeasureAsOverloadedMethodMethod(in
fo); | 9702 TestObjectV8Internal::deprecateAsSameValueMeasureAsOverloadedMethodMethod(in
fo); |
| 9663 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9703 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 9664 } | 9704 } |
| 9665 | 9705 |
| 9666 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethod1Method(const
v8::FunctionCallbackInfo<v8::Value>& info) | 9706 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethod1Method(const
v8::FunctionCallbackInfo<v8::Value>& info) |
| 9667 { | 9707 { |
| 9668 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9708 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 9669 impl->deprecateAsSameValueMeasureAsSameValueOverloadedMethod(); | 9709 impl->deprecateAsSameValueMeasureAsSameValueOverloadedMethod(); |
| 9670 } | 9710 } |
| 9671 | 9711 |
| 9672 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethod2Method(const
v8::FunctionCallbackInfo<v8::Value>& info) | 9712 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethod2Method(const
v8::FunctionCallbackInfo<v8::Value>& info) |
| 9673 { | 9713 { |
| 9674 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs
SameValueMeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info.
GetIsolate()); | 9714 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs
SameValueMeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info.
GetIsolate()); |
| 9675 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9715 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 9676 int arg; | 9716 int arg; |
| 9677 { | 9717 { |
| 9678 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta
te), exceptionState); | 9718 TONATIVE_CONVERT(convertAndThrow(arg = toInt32(info[0], exceptionState),
exceptionState), return); |
| 9679 } | 9719 } |
| 9680 impl->deprecateAsSameValueMeasureAsSameValueOverloadedMethod(arg); | 9720 impl->deprecateAsSameValueMeasureAsSameValueOverloadedMethod(arg); |
| 9681 } | 9721 } |
| 9682 | 9722 |
| 9683 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethodMethod(const v
8::FunctionCallbackInfo<v8::Value>& info) | 9723 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethodMethod(const v
8::FunctionCallbackInfo<v8::Value>& info) |
| 9684 { | 9724 { |
| 9685 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs
SameValueMeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info.
GetIsolate()); | 9725 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs
SameValueMeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info.
GetIsolate()); |
| 9686 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte
xt(info.GetIsolate()), UseCounter::TestFeatureB); | 9726 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte
xt(info.GetIsolate()), UseCounter::TestFeatureB); |
| 9687 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe
cutionContext(info.GetIsolate()), UseCounter::TestFeatureA); | 9727 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe
cutionContext(info.GetIsolate()), UseCounter::TestFeatureA); |
| 9688 switch (std::min(1, info.Length())) { | 9728 switch (std::min(1, info.Length())) { |
| 9689 case 0: | 9729 case 0: |
| 9690 if (true) { | 9730 if (true) { |
| 9691 deprecateAsSameValueMeasureAsSameValueOverloadedMethod1Method(info); | 9731 deprecateAsSameValueMeasureAsSameValueOverloadedMethod1Method(info); |
| 9692 return; | 9732 return; |
| 9693 } | 9733 } |
| 9694 break; | 9734 break; |
| 9695 case 1: | 9735 case 1: |
| 9696 if (true) { | 9736 if (true) { |
| 9697 deprecateAsSameValueMeasureAsSameValueOverloadedMethod2Method(info); | 9737 deprecateAsSameValueMeasureAsSameValueOverloadedMethod2Method(info); |
| 9698 return; | 9738 return; |
| 9699 } | 9739 } |
| 9700 break; | 9740 break; |
| 9701 default: | 9741 default: |
| 9702 break; | 9742 break; |
| 9703 } | 9743 } |
| 9704 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 9744 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 9705 exceptionState.throwIfNeeded(); | 9745 exceptionState.throwIfNeeded(); |
| 9746 return; |
| 9706 } | 9747 } |
| 9707 | 9748 |
| 9708 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethodMethodCallback
(const v8::FunctionCallbackInfo<v8::Value>& info) | 9749 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethodMethodCallback
(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 9709 { | 9750 { |
| 9710 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 9751 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 9711 TestObjectV8Internal::deprecateAsSameValueMeasureAsSameValueOverloadedMethod
Method(info); | 9752 TestObjectV8Internal::deprecateAsSameValueMeasureAsSameValueOverloadedMethod
Method(info); |
| 9712 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9753 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 9713 } | 9754 } |
| 9714 | 9755 |
| 9715 static void notEnumerableVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 9756 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; | 9964 int optionalLongArg; |
| 9924 { | 9965 { |
| 9925 if (UNLIKELY(info.Length() <= 0)) { | 9966 if (UNLIKELY(info.Length() <= 0)) { |
| 9926 impl->raisesExceptionVoidMethodOptionalLongArg(exceptionState); | 9967 impl->raisesExceptionVoidMethodOptionalLongArg(exceptionState); |
| 9927 if (exceptionState.hadException()) { | 9968 if (exceptionState.hadException()) { |
| 9928 exceptionState.throwIfNeeded(); | 9969 exceptionState.throwIfNeeded(); |
| 9929 return; | 9970 return; |
| 9930 } | 9971 } |
| 9931 return; | 9972 return; |
| 9932 } | 9973 } |
| 9933 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0],
exceptionState), exceptionState); | 9974 TONATIVE_CONVERT(convertAndThrow(optionalLongArg = toInt32(info[0], exce
ptionState), exceptionState), return); |
| 9934 } | 9975 } |
| 9935 impl->raisesExceptionVoidMethodOptionalLongArg(optionalLongArg, exceptionSta
te); | 9976 impl->raisesExceptionVoidMethodOptionalLongArg(optionalLongArg, exceptionSta
te); |
| 9936 if (exceptionState.hadException()) { | 9977 if (exceptionState.hadException()) { |
| 9937 exceptionState.throwIfNeeded(); | 9978 exceptionState.throwIfNeeded(); |
| 9938 return; | 9979 return; |
| 9939 } | 9980 } |
| 9940 } | 9981 } |
| 9941 | 9982 |
| 9942 static void raisesExceptionVoidMethodOptionalLongArgMethodCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) | 9983 static void raisesExceptionVoidMethodOptionalLongArgMethodCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) |
| 9943 { | 9984 { |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10032 { | 10073 { |
| 10033 ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithExe
cutionContextRaisesExceptionVoidMethodLongArg", "TestObject", info.Holder(), inf
o.GetIsolate()); | 10074 ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithExe
cutionContextRaisesExceptionVoidMethodLongArg", "TestObject", info.Holder(), inf
o.GetIsolate()); |
| 10034 if (UNLIKELY(info.Length() < 1)) { | 10075 if (UNLIKELY(info.Length() < 1)) { |
| 10035 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 10076 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 10036 exceptionState.throwIfNeeded(); | 10077 exceptionState.throwIfNeeded(); |
| 10037 return; | 10078 return; |
| 10038 } | 10079 } |
| 10039 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 10080 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 10040 int longArg; | 10081 int longArg; |
| 10041 { | 10082 { |
| 10042 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); | 10083 TONATIVE_CONVERT(convertAndThrow(longArg = toInt32(info[0], exceptionSta
te), exceptionState), return); |
| 10043 } | 10084 } |
| 10044 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate
()); | 10085 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate
()); |
| 10045 impl->callWithExecutionContextRaisesExceptionVoidMethodLongArg(executionCont
ext, longArg, exceptionState); | 10086 impl->callWithExecutionContextRaisesExceptionVoidMethodLongArg(executionCont
ext, longArg, exceptionState); |
| 10046 if (exceptionState.hadException()) { | 10087 if (exceptionState.hadException()) { |
| 10047 exceptionState.throwIfNeeded(); | 10088 exceptionState.throwIfNeeded(); |
| 10048 return; | 10089 return; |
| 10049 } | 10090 } |
| 10050 } | 10091 } |
| 10051 | 10092 |
| 10052 static void callWithExecutionContextRaisesExceptionVoidMethodLongArgMethodCallba
ck(const v8::FunctionCallbackInfo<v8::Value>& info) | 10093 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"); | 10134 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 10094 TestObjectV8Internal::perWorldBindingsRuntimeEnabledVoidMethodMethodForMainW
orld(info); | 10135 TestObjectV8Internal::perWorldBindingsRuntimeEnabledVoidMethodMethodForMainW
orld(info); |
| 10095 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 10136 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 10096 } | 10137 } |
| 10097 | 10138 |
| 10098 static void runtimeEnabledOverloadedVoidMethod1Method(const v8::FunctionCallback
Info<v8::Value>& info) | 10139 static void runtimeEnabledOverloadedVoidMethod1Method(const v8::FunctionCallback
Info<v8::Value>& info) |
| 10099 { | 10140 { |
| 10100 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 10141 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 10101 V8StringResource<> stringArg; | 10142 V8StringResource<> stringArg; |
| 10102 { | 10143 { |
| 10103 TOSTRING_VOID_INTERNAL(stringArg, info[0]); | 10144 TONATIVE_CONVERT((stringArg = info[0]).prepare(), return); |
| 10104 } | 10145 } |
| 10105 impl->runtimeEnabledOverloadedVoidMethod(stringArg); | 10146 impl->runtimeEnabledOverloadedVoidMethod(stringArg); |
| 10106 } | 10147 } |
| 10107 | 10148 |
| 10108 static void runtimeEnabledOverloadedVoidMethod2Method(const v8::FunctionCallback
Info<v8::Value>& info) | 10149 static void runtimeEnabledOverloadedVoidMethod2Method(const v8::FunctionCallback
Info<v8::Value>& info) |
| 10109 { | 10150 { |
| 10110 ExceptionState exceptionState(ExceptionState::ExecutionContext, "runtimeEnab
ledOverloadedVoidMethod", "TestObject", info.Holder(), info.GetIsolate()); | 10151 ExceptionState exceptionState(ExceptionState::ExecutionContext, "runtimeEnab
ledOverloadedVoidMethod", "TestObject", info.Holder(), info.GetIsolate()); |
| 10111 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 10152 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 10112 int longArg; | 10153 int longArg; |
| 10113 { | 10154 { |
| 10114 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); | 10155 TONATIVE_CONVERT(convertAndThrow(longArg = toInt32(info[0], exceptionSta
te), exceptionState), return); |
| 10115 } | 10156 } |
| 10116 impl->runtimeEnabledOverloadedVoidMethod(longArg); | 10157 impl->runtimeEnabledOverloadedVoidMethod(longArg); |
| 10117 } | 10158 } |
| 10118 | 10159 |
| 10119 static void runtimeEnabledOverloadedVoidMethodMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 10160 static void runtimeEnabledOverloadedVoidMethodMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
| 10120 { | 10161 { |
| 10121 ExceptionState exceptionState(ExceptionState::ExecutionContext, "runtimeEnab
ledOverloadedVoidMethod", "TestObject", info.Holder(), info.GetIsolate()); | 10162 ExceptionState exceptionState(ExceptionState::ExecutionContext, "runtimeEnab
ledOverloadedVoidMethod", "TestObject", info.Holder(), info.GetIsolate()); |
| 10122 switch (std::min(1, info.Length())) { | 10163 switch (std::min(1, info.Length())) { |
| 10123 case 1: | 10164 case 1: |
| 10124 if (info[0]->IsNumber()) { | 10165 if (info[0]->IsNumber()) { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 10137 default: | 10178 default: |
| 10138 break; | 10179 break; |
| 10139 } | 10180 } |
| 10140 if (info.Length() < 1) { | 10181 if (info.Length() < 1) { |
| 10141 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 10182 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
| 10142 exceptionState.throwIfNeeded(); | 10183 exceptionState.throwIfNeeded(); |
| 10143 return; | 10184 return; |
| 10144 } | 10185 } |
| 10145 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 10186 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 10146 exceptionState.throwIfNeeded(); | 10187 exceptionState.throwIfNeeded(); |
| 10188 return; |
| 10147 } | 10189 } |
| 10148 | 10190 |
| 10149 static void runtimeEnabledOverloadedVoidMethodMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) | 10191 static void runtimeEnabledOverloadedVoidMethodMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) |
| 10150 { | 10192 { |
| 10151 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 10193 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 10152 TestObjectV8Internal::runtimeEnabledOverloadedVoidMethodMethod(info); | 10194 TestObjectV8Internal::runtimeEnabledOverloadedVoidMethodMethod(info); |
| 10153 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 10195 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 10154 } | 10196 } |
| 10155 | 10197 |
| 10156 static void partiallyRuntimeEnabledOverloadedVoidMethod1Method(const v8::Functio
nCallbackInfo<v8::Value>& info) | 10198 static void partiallyRuntimeEnabledOverloadedVoidMethod1Method(const v8::Functio
nCallbackInfo<v8::Value>& info) |
| 10157 { | 10199 { |
| 10158 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 10200 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 10159 V8StringResource<> stringArg; | 10201 V8StringResource<> stringArg; |
| 10160 { | 10202 { |
| 10161 TOSTRING_VOID_INTERNAL(stringArg, info[0]); | 10203 TONATIVE_CONVERT((stringArg = info[0]).prepare(), return); |
| 10162 } | 10204 } |
| 10163 impl->partiallyRuntimeEnabledOverloadedVoidMethod(stringArg); | 10205 impl->partiallyRuntimeEnabledOverloadedVoidMethod(stringArg); |
| 10164 } | 10206 } |
| 10165 | 10207 |
| 10166 static void partiallyRuntimeEnabledOverloadedVoidMethod2Method(const v8::Functio
nCallbackInfo<v8::Value>& info) | 10208 static void partiallyRuntimeEnabledOverloadedVoidMethod2Method(const v8::Functio
nCallbackInfo<v8::Value>& info) |
| 10167 { | 10209 { |
| 10168 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 10210 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 10169 TestInterfaceImplementation* testInterface; | 10211 TestInterfaceImplementation* testInterface; |
| 10170 { | 10212 { |
| 10171 testInterface = V8TestInterface::toImplWithTypeCheck(info.GetIsolate(),
info[0]); | 10213 testInterface = V8TestInterface::toImplWithTypeCheck(info.GetIsolate(),
info[0]); |
| 10172 } | 10214 } |
| 10173 impl->partiallyRuntimeEnabledOverloadedVoidMethod(testInterface); | 10215 impl->partiallyRuntimeEnabledOverloadedVoidMethod(testInterface); |
| 10174 } | 10216 } |
| 10175 | 10217 |
| 10176 static void partiallyRuntimeEnabledOverloadedVoidMethod3Method(const v8::Functio
nCallbackInfo<v8::Value>& info) | 10218 static void partiallyRuntimeEnabledOverloadedVoidMethod3Method(const v8::Functio
nCallbackInfo<v8::Value>& info) |
| 10177 { | 10219 { |
| 10178 ExceptionState exceptionState(ExceptionState::ExecutionContext, "partiallyRu
ntimeEnabledOverloadedVoidMethod", "TestObject", info.Holder(), info.GetIsolate(
)); | 10220 ExceptionState exceptionState(ExceptionState::ExecutionContext, "partiallyRu
ntimeEnabledOverloadedVoidMethod", "TestObject", info.Holder(), info.GetIsolate(
)); |
| 10179 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 10221 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 10180 int longArg; | 10222 int longArg; |
| 10181 V8StringResource<> stringArg; | 10223 V8StringResource<> stringArg; |
| 10182 { | 10224 { |
| 10183 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); | 10225 TONATIVE_CONVERT(convertAndThrow(longArg = toInt32(info[0], exceptionSta
te), exceptionState), return); |
| 10184 TOSTRING_VOID_INTERNAL(stringArg, info[1]); | 10226 TONATIVE_CONVERT((stringArg = info[1]).prepare(), return); |
| 10185 } | 10227 } |
| 10186 impl->partiallyRuntimeEnabledOverloadedVoidMethod(longArg, stringArg); | 10228 impl->partiallyRuntimeEnabledOverloadedVoidMethod(longArg, stringArg); |
| 10187 } | 10229 } |
| 10188 | 10230 |
| 10189 static int partiallyRuntimeEnabledOverloadedVoidMethodMethodLength() | 10231 static int partiallyRuntimeEnabledOverloadedVoidMethodMethodLength() |
| 10190 { | 10232 { |
| 10191 if (RuntimeEnabledFeatures::featureName1Enabled()) { | 10233 if (RuntimeEnabledFeatures::featureName1Enabled()) { |
| 10192 return 1; | 10234 return 1; |
| 10193 } | 10235 } |
| 10194 if (RuntimeEnabledFeatures::featureName2Enabled()) { | 10236 if (RuntimeEnabledFeatures::featureName2Enabled()) { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 10224 default: | 10266 default: |
| 10225 break; | 10267 break; |
| 10226 } | 10268 } |
| 10227 if (info.Length() < TestObjectV8Internal::partiallyRuntimeEnabledOverloadedV
oidMethodMethodLength()) { | 10269 if (info.Length() < TestObjectV8Internal::partiallyRuntimeEnabledOverloadedV
oidMethodMethodLength()) { |
| 10228 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(Test
ObjectV8Internal::partiallyRuntimeEnabledOverloadedVoidMethodMethodLength(), inf
o.Length())); | 10270 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(Test
ObjectV8Internal::partiallyRuntimeEnabledOverloadedVoidMethodMethodLength(), inf
o.Length())); |
| 10229 exceptionState.throwIfNeeded(); | 10271 exceptionState.throwIfNeeded(); |
| 10230 return; | 10272 return; |
| 10231 } | 10273 } |
| 10232 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 10274 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 10233 exceptionState.throwIfNeeded(); | 10275 exceptionState.throwIfNeeded(); |
| 10276 return; |
| 10234 } | 10277 } |
| 10235 | 10278 |
| 10236 static void partiallyRuntimeEnabledOverloadedVoidMethodMethodCallback(const v8::
FunctionCallbackInfo<v8::Value>& info) | 10279 static void partiallyRuntimeEnabledOverloadedVoidMethodMethodCallback(const v8::
FunctionCallbackInfo<v8::Value>& info) |
| 10237 { | 10280 { |
| 10238 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 10281 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 10239 TestObjectV8Internal::partiallyRuntimeEnabledOverloadedVoidMethodMethod(info
); | 10282 TestObjectV8Internal::partiallyRuntimeEnabledOverloadedVoidMethodMethod(info
); |
| 10240 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 10283 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 10241 } | 10284 } |
| 10242 | 10285 |
| 10243 static void treatReturnedNullStringAsNullStringMethodMethod(const v8::FunctionCa
llbackInfo<v8::Value>& info) | 10286 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()); | 10513 ExceptionState exceptionState(ExceptionState::ExecutionContext, "typeCheckin
gUnrestrictedVoidMethodFloatArgDoubleArg", "TestObject", info.Holder(), info.Get
Isolate()); |
| 10471 if (UNLIKELY(info.Length() < 2)) { | 10514 if (UNLIKELY(info.Length() < 2)) { |
| 10472 setMinimumArityTypeError(exceptionState, 2, info.Length()); | 10515 setMinimumArityTypeError(exceptionState, 2, info.Length()); |
| 10473 exceptionState.throwIfNeeded(); | 10516 exceptionState.throwIfNeeded(); |
| 10474 return; | 10517 return; |
| 10475 } | 10518 } |
| 10476 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 10519 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 10477 float floatArg; | 10520 float floatArg; |
| 10478 double doubleArg; | 10521 double doubleArg; |
| 10479 { | 10522 { |
| 10480 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(floatArg, toRestrictedFloat(info[0
], exceptionState), exceptionState); | 10523 TONATIVE_CONVERT(convertAndThrow(floatArg = toRestrictedFloat(info[0], e
xceptionState), exceptionState), return); |
| 10481 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(doubleArg, toRestrictedDouble(info
[1], exceptionState), exceptionState); | 10524 TONATIVE_CONVERT(convertAndThrow(doubleArg = toRestrictedDouble(info[1],
exceptionState), exceptionState), return); |
| 10482 } | 10525 } |
| 10483 impl->typeCheckingUnrestrictedVoidMethodFloatArgDoubleArg(floatArg, doubleAr
g); | 10526 impl->typeCheckingUnrestrictedVoidMethodFloatArgDoubleArg(floatArg, doubleAr
g); |
| 10484 } | 10527 } |
| 10485 | 10528 |
| 10486 static void typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMethodCallback(co
nst v8::FunctionCallbackInfo<v8::Value>& info) | 10529 static void typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMethodCallback(co
nst v8::FunctionCallbackInfo<v8::Value>& info) |
| 10487 { | 10530 { |
| 10488 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 10531 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 10489 TestObjectV8Internal::typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMet
hod(info); | 10532 TestObjectV8Internal::typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMet
hod(info); |
| 10490 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 10533 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 10491 } | 10534 } |
| (...skipping 15 matching lines...) Expand all Loading... |
| 10507 { | 10550 { |
| 10508 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT
estInterfaceGarbageCollectedSequenceArg", "TestObject", info.Holder(), info.GetI
solate()); | 10551 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT
estInterfaceGarbageCollectedSequenceArg", "TestObject", info.Holder(), info.GetI
solate()); |
| 10509 if (UNLIKELY(info.Length() < 1)) { | 10552 if (UNLIKELY(info.Length() < 1)) { |
| 10510 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 10553 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 10511 exceptionState.throwIfNeeded(); | 10554 exceptionState.throwIfNeeded(); |
| 10512 return; | 10555 return; |
| 10513 } | 10556 } |
| 10514 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 10557 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 10515 HeapVector<Member<TestInterfaceGarbageCollected>> testInterfaceGarbageCollec
tedSequenceArg; | 10558 HeapVector<Member<TestInterfaceGarbageCollected>> testInterfaceGarbageCollec
tedSequenceArg; |
| 10516 { | 10559 { |
| 10517 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(testInterfaceGarbageCollectedSeque
nceArg, (toMemberNativeArray<TestInterfaceGarbageCollected, V8TestInterfaceGarba
geCollected>(info[0], 1, info.GetIsolate(), exceptionState)), exceptionState); | 10560 TONATIVE_CONVERT(convertAndThrow(testInterfaceGarbageCollectedSequenceAr
g = (toMemberNativeArray<TestInterfaceGarbageCollected, V8TestInterfaceGarbageCo
llected>(info[0], 1, info.GetIsolate(), exceptionState)), exceptionState), retur
n); |
| 10518 } | 10561 } |
| 10519 impl->voidMethodTestInterfaceGarbageCollectedSequenceArg(testInterfaceGarbag
eCollectedSequenceArg); | 10562 impl->voidMethodTestInterfaceGarbageCollectedSequenceArg(testInterfaceGarbag
eCollectedSequenceArg); |
| 10520 } | 10563 } |
| 10521 | 10564 |
| 10522 static void voidMethodTestInterfaceGarbageCollectedSequenceArgMethodCallback(con
st v8::FunctionCallbackInfo<v8::Value>& info) | 10565 static void voidMethodTestInterfaceGarbageCollectedSequenceArgMethodCallback(con
st v8::FunctionCallbackInfo<v8::Value>& info) |
| 10523 { | 10566 { |
| 10524 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 10567 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 10525 TestObjectV8Internal::voidMethodTestInterfaceGarbageCollectedSequenceArgMeth
od(info); | 10568 TestObjectV8Internal::voidMethodTestInterfaceGarbageCollectedSequenceArgMeth
od(info); |
| 10526 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 10569 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 10527 } | 10570 } |
| 10528 | 10571 |
| 10529 static void voidMethodTestInterfaceGarbageCollectedArrayArgMethod(const v8::Func
tionCallbackInfo<v8::Value>& info) | 10572 static void voidMethodTestInterfaceGarbageCollectedArrayArgMethod(const v8::Func
tionCallbackInfo<v8::Value>& info) |
| 10530 { | 10573 { |
| 10531 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT
estInterfaceGarbageCollectedArrayArg", "TestObject", info.Holder(), info.GetIsol
ate()); | 10574 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT
estInterfaceGarbageCollectedArrayArg", "TestObject", info.Holder(), info.GetIsol
ate()); |
| 10532 if (UNLIKELY(info.Length() < 1)) { | 10575 if (UNLIKELY(info.Length() < 1)) { |
| 10533 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 10576 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 10534 exceptionState.throwIfNeeded(); | 10577 exceptionState.throwIfNeeded(); |
| 10535 return; | 10578 return; |
| 10536 } | 10579 } |
| 10537 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 10580 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 10538 HeapVector<Member<TestInterfaceGarbageCollected>> testInterfaceGarbageCollec
tedArrayArg; | 10581 HeapVector<Member<TestInterfaceGarbageCollected>> testInterfaceGarbageCollec
tedArrayArg; |
| 10539 { | 10582 { |
| 10540 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(testInterfaceGarbageCollectedArray
Arg, (toMemberNativeArray<TestInterfaceGarbageCollected, V8TestInterfaceGarbageC
ollected>(info[0], 1, info.GetIsolate(), exceptionState)), exceptionState); | 10583 TONATIVE_CONVERT(convertAndThrow(testInterfaceGarbageCollectedArrayArg =
(toMemberNativeArray<TestInterfaceGarbageCollected, V8TestInterfaceGarbageColle
cted>(info[0], 1, info.GetIsolate(), exceptionState)), exceptionState), return); |
| 10541 } | 10584 } |
| 10542 impl->voidMethodTestInterfaceGarbageCollectedArrayArg(testInterfaceGarbageCo
llectedArrayArg); | 10585 impl->voidMethodTestInterfaceGarbageCollectedArrayArg(testInterfaceGarbageCo
llectedArrayArg); |
| 10543 } | 10586 } |
| 10544 | 10587 |
| 10545 static void voidMethodTestInterfaceGarbageCollectedArrayArgMethodCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) | 10588 static void voidMethodTestInterfaceGarbageCollectedArrayArgMethodCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) |
| 10546 { | 10589 { |
| 10547 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 10590 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 10548 TestObjectV8Internal::voidMethodTestInterfaceGarbageCollectedArrayArgMethod(
info); | 10591 TestObjectV8Internal::voidMethodTestInterfaceGarbageCollectedArrayArgMethod(
info); |
| 10549 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 10592 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 10550 } | 10593 } |
| 10551 | 10594 |
| 10552 static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethod(const
v8::FunctionCallbackInfo<v8::Value>& info) | 10595 static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethod(const
v8::FunctionCallbackInfo<v8::Value>& info) |
| 10553 { | 10596 { |
| 10554 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT
estInterfaceWillBeGarbageCollectedSequenceArg", "TestObject", info.Holder(), inf
o.GetIsolate()); | 10597 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT
estInterfaceWillBeGarbageCollectedSequenceArg", "TestObject", info.Holder(), inf
o.GetIsolate()); |
| 10555 if (UNLIKELY(info.Length() < 1)) { | 10598 if (UNLIKELY(info.Length() < 1)) { |
| 10556 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 10599 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 10557 exceptionState.throwIfNeeded(); | 10600 exceptionState.throwIfNeeded(); |
| 10558 return; | 10601 return; |
| 10559 } | 10602 } |
| 10560 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 10603 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 10561 WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected>> te
stInterfaceWillBeGarbageCollectedSequenceArg; | 10604 WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected>> te
stInterfaceWillBeGarbageCollectedSequenceArg; |
| 10562 { | 10605 { |
| 10563 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(testInterfaceWillBeGarbageCollecte
dSequenceArg, (toRefPtrWillBeMemberNativeArray<TestInterfaceWillBeGarbageCollect
ed, V8TestInterfaceWillBeGarbageCollected>(info[0], 1, info.GetIsolate(), except
ionState)), exceptionState); | 10606 TONATIVE_CONVERT(convertAndThrow(testInterfaceWillBeGarbageCollectedSequ
enceArg = (toRefPtrWillBeMemberNativeArray<TestInterfaceWillBeGarbageCollected,
V8TestInterfaceWillBeGarbageCollected>(info[0], 1, info.GetIsolate(), exceptionS
tate)), exceptionState), return); |
| 10564 } | 10607 } |
| 10565 impl->voidMethodTestInterfaceWillBeGarbageCollectedSequenceArg(testInterface
WillBeGarbageCollectedSequenceArg); | 10608 impl->voidMethodTestInterfaceWillBeGarbageCollectedSequenceArg(testInterface
WillBeGarbageCollectedSequenceArg); |
| 10566 } | 10609 } |
| 10567 | 10610 |
| 10568 static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethodCallba
ck(const v8::FunctionCallbackInfo<v8::Value>& info) | 10611 static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethodCallba
ck(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 10569 { | 10612 { |
| 10570 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 10613 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 10571 TestObjectV8Internal::voidMethodTestInterfaceWillBeGarbageCollectedSequenceA
rgMethod(info); | 10614 TestObjectV8Internal::voidMethodTestInterfaceWillBeGarbageCollectedSequenceA
rgMethod(info); |
| 10572 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 10615 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 10573 } | 10616 } |
| 10574 | 10617 |
| 10575 static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethod(const v8
::FunctionCallbackInfo<v8::Value>& info) | 10618 static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethod(const v8
::FunctionCallbackInfo<v8::Value>& info) |
| 10576 { | 10619 { |
| 10577 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT
estInterfaceWillBeGarbageCollectedArrayArg", "TestObject", info.Holder(), info.G
etIsolate()); | 10620 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT
estInterfaceWillBeGarbageCollectedArrayArg", "TestObject", info.Holder(), info.G
etIsolate()); |
| 10578 if (UNLIKELY(info.Length() < 1)) { | 10621 if (UNLIKELY(info.Length() < 1)) { |
| 10579 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 10622 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 10580 exceptionState.throwIfNeeded(); | 10623 exceptionState.throwIfNeeded(); |
| 10581 return; | 10624 return; |
| 10582 } | 10625 } |
| 10583 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 10626 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 10584 WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected>> te
stInterfaceWillBeGarbageCollectedArrayArg; | 10627 WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected>> te
stInterfaceWillBeGarbageCollectedArrayArg; |
| 10585 { | 10628 { |
| 10586 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(testInterfaceWillBeGarbageCollecte
dArrayArg, (toRefPtrWillBeMemberNativeArray<TestInterfaceWillBeGarbageCollected,
V8TestInterfaceWillBeGarbageCollected>(info[0], 1, info.GetIsolate(), exception
State)), exceptionState); | 10629 TONATIVE_CONVERT(convertAndThrow(testInterfaceWillBeGarbageCollectedArra
yArg = (toRefPtrWillBeMemberNativeArray<TestInterfaceWillBeGarbageCollected, V8T
estInterfaceWillBeGarbageCollected>(info[0], 1, info.GetIsolate(), exceptionStat
e)), exceptionState), return); |
| 10587 } | 10630 } |
| 10588 impl->voidMethodTestInterfaceWillBeGarbageCollectedArrayArg(testInterfaceWil
lBeGarbageCollectedArrayArg); | 10631 impl->voidMethodTestInterfaceWillBeGarbageCollectedArrayArg(testInterfaceWil
lBeGarbageCollectedArrayArg); |
| 10589 } | 10632 } |
| 10590 | 10633 |
| 10591 static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethodCallback(
const v8::FunctionCallbackInfo<v8::Value>& info) | 10634 static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethodCallback(
const v8::FunctionCallbackInfo<v8::Value>& info) |
| 10592 { | 10635 { |
| 10593 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 10636 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 10594 TestObjectV8Internal::voidMethodTestInterfaceWillBeGarbageCollectedArrayArgM
ethod(info); | 10637 TestObjectV8Internal::voidMethodTestInterfaceWillBeGarbageCollectedArrayArgM
ethod(info); |
| 10595 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 10638 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 10596 } | 10639 } |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10628 { | 10671 { |
| 10629 ExceptionState exceptionState(ExceptionState::ExecutionContext, "shortMethod
WithShortArgumentImplementedInPrivateScript", "TestObject", info.Holder(), info.
GetIsolate()); | 10672 ExceptionState exceptionState(ExceptionState::ExecutionContext, "shortMethod
WithShortArgumentImplementedInPrivateScript", "TestObject", info.Holder(), info.
GetIsolate()); |
| 10630 if (UNLIKELY(info.Length() < 1)) { | 10673 if (UNLIKELY(info.Length() < 1)) { |
| 10631 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 10674 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 10632 exceptionState.throwIfNeeded(); | 10675 exceptionState.throwIfNeeded(); |
| 10633 return; | 10676 return; |
| 10634 } | 10677 } |
| 10635 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 10678 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 10636 int value; | 10679 int value; |
| 10637 { | 10680 { |
| 10638 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(value, toInt16(info[0], exceptionS
tate), exceptionState); | 10681 TONATIVE_CONVERT(convertAndThrow(value = toInt16(info[0], exceptionState
), exceptionState), return); |
| 10639 } | 10682 } |
| 10640 int result = 0; | 10683 int result = 0; |
| 10641 if (!V8TestObject::PrivateScript::shortMethodWithShortArgumentImplementedInP
rivateScriptMethod(toLocalFrame(toFrameIfNotDetached(info.GetIsolate()->GetCurre
ntContext())), impl, value, &result)) | 10684 if (!V8TestObject::PrivateScript::shortMethodWithShortArgumentImplementedInP
rivateScriptMethod(toLocalFrame(toFrameIfNotDetached(info.GetIsolate()->GetCurre
ntContext())), impl, value, &result)) |
| 10642 return; | 10685 return; |
| 10643 v8SetReturnValueInt(info, result); | 10686 v8SetReturnValueInt(info, result); |
| 10644 } | 10687 } |
| 10645 | 10688 |
| 10646 static void shortMethodWithShortArgumentImplementedInPrivateScriptMethodCallback
(const v8::FunctionCallbackInfo<v8::Value>& info) | 10689 static void shortMethodWithShortArgumentImplementedInPrivateScriptMethodCallback
(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 10647 { | 10690 { |
| 10648 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 10691 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 10649 TestObjectV8Internal::shortMethodWithShortArgumentImplementedInPrivateScript
Method(info); | 10692 TestObjectV8Internal::shortMethodWithShortArgumentImplementedInPrivateScript
Method(info); |
| 10650 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 10693 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 10651 } | 10694 } |
| 10652 | 10695 |
| 10653 static void stringMethodWithStringArgumentImplementedInPrivateScriptMethod(const
v8::FunctionCallbackInfo<v8::Value>& info) | 10696 static void stringMethodWithStringArgumentImplementedInPrivateScriptMethod(const
v8::FunctionCallbackInfo<v8::Value>& info) |
| 10654 { | 10697 { |
| 10655 if (UNLIKELY(info.Length() < 1)) { | 10698 if (UNLIKELY(info.Length() < 1)) { |
| 10656 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "stringMethodWithStringArgumentImplementedInPrivateScript", "Te
stObject", 1, info.Length()), info.GetIsolate()); | 10699 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "stringMethodWithStringArgumentImplementedInPrivateScript", "Te
stObject", 1, info.Length()), info.GetIsolate()); |
| 10657 return; | 10700 return; |
| 10658 } | 10701 } |
| 10659 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 10702 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 10660 V8StringResource<> value; | 10703 V8StringResource<> value; |
| 10661 { | 10704 { |
| 10662 TOSTRING_VOID_INTERNAL(value, info[0]); | 10705 TONATIVE_CONVERT((value = info[0]).prepare(), return); |
| 10663 } | 10706 } |
| 10664 String result; | 10707 String result; |
| 10665 if (!V8TestObject::PrivateScript::stringMethodWithStringArgumentImplementedI
nPrivateScriptMethod(toLocalFrame(toFrameIfNotDetached(info.GetIsolate()->GetCur
rentContext())), impl, value, &result)) | 10708 if (!V8TestObject::PrivateScript::stringMethodWithStringArgumentImplementedI
nPrivateScriptMethod(toLocalFrame(toFrameIfNotDetached(info.GetIsolate()->GetCur
rentContext())), impl, value, &result)) |
| 10666 return; | 10709 return; |
| 10667 v8SetReturnValueString(info, result, info.GetIsolate()); | 10710 v8SetReturnValueString(info, result, info.GetIsolate()); |
| 10668 } | 10711 } |
| 10669 | 10712 |
| 10670 static void stringMethodWithStringArgumentImplementedInPrivateScriptMethodCallba
ck(const v8::FunctionCallbackInfo<v8::Value>& info) | 10713 static void stringMethodWithStringArgumentImplementedInPrivateScriptMethodCallba
ck(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 10671 { | 10714 { |
| 10672 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 10715 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10708 } | 10751 } |
| 10709 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 10752 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 10710 Document* document; | 10753 Document* document; |
| 10711 Node* node; | 10754 Node* node; |
| 10712 int value1; | 10755 int value1; |
| 10713 double value2; | 10756 double value2; |
| 10714 V8StringResource<> string; | 10757 V8StringResource<> string; |
| 10715 { | 10758 { |
| 10716 document = V8Document::toImplWithTypeCheck(info.GetIsolate(), info[0]); | 10759 document = V8Document::toImplWithTypeCheck(info.GetIsolate(), info[0]); |
| 10717 node = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[1]); | 10760 node = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[1]); |
| 10718 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(value1, toInt16(info[2], exception
State), exceptionState); | 10761 TONATIVE_CONVERT(convertAndThrow(value1 = toInt16(info[2], exceptionStat
e), exceptionState), return); |
| 10719 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(value2, toDouble(info[3], exceptio
nState), exceptionState); | 10762 TONATIVE_CONVERT(convertAndThrow(value2 = toDouble(info[3], exceptionSta
te), exceptionState), return); |
| 10720 TOSTRING_VOID_INTERNAL(string, info[4]); | 10763 TONATIVE_CONVERT((string = info[4]).prepare(), return); |
| 10721 } | 10764 } |
| 10722 RefPtrWillBeRawPtr<Node> result = nullptr; | 10765 RefPtrWillBeRawPtr<Node> result = nullptr; |
| 10723 if (!V8TestObject::PrivateScript::nodeMethodWithVariousArgumentsImplementedI
nPrivateScriptMethod(toLocalFrame(toFrameIfNotDetached(info.GetIsolate()->GetCur
rentContext())), impl, document, node, value1, value2, string, &result)) | 10766 if (!V8TestObject::PrivateScript::nodeMethodWithVariousArgumentsImplementedI
nPrivateScriptMethod(toLocalFrame(toFrameIfNotDetached(info.GetIsolate()->GetCur
rentContext())), impl, document, node, value1, value2, string, &result)) |
| 10724 return; | 10767 return; |
| 10725 v8SetReturnValue(info, result.release()); | 10768 v8SetReturnValue(info, result.release()); |
| 10726 } | 10769 } |
| 10727 | 10770 |
| 10728 static void nodeMethodWithVariousArgumentsImplementedInPrivateScriptMethodCallba
ck(const v8::FunctionCallbackInfo<v8::Value>& info) | 10771 static void nodeMethodWithVariousArgumentsImplementedInPrivateScriptMethodCallba
ck(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 10729 { | 10772 { |
| 10730 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 10773 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 10731 TestObjectV8Internal::nodeMethodWithVariousArgumentsImplementedInPrivateScri
ptMethod(info); | 10774 TestObjectV8Internal::nodeMethodWithVariousArgumentsImplementedInPrivateScri
ptMethod(info); |
| 10732 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 10775 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 10733 } | 10776 } |
| 10734 | 10777 |
| 10735 static void methodImplementedInCPPForPrivateScriptOnlyMethod(const v8::FunctionC
allbackInfo<v8::Value>& info) | 10778 static void methodImplementedInCPPForPrivateScriptOnlyMethod(const v8::FunctionC
allbackInfo<v8::Value>& info) |
| 10736 { | 10779 { |
| 10737 ExceptionState exceptionState(ExceptionState::ExecutionContext, "methodImple
mentedInCPPForPrivateScriptOnly", "TestObject", info.Holder(), info.GetIsolate()
); | 10780 ExceptionState exceptionState(ExceptionState::ExecutionContext, "methodImple
mentedInCPPForPrivateScriptOnly", "TestObject", info.Holder(), info.GetIsolate()
); |
| 10738 if (UNLIKELY(info.Length() < 2)) { | 10781 if (UNLIKELY(info.Length() < 2)) { |
| 10739 setMinimumArityTypeError(exceptionState, 2, info.Length()); | 10782 setMinimumArityTypeError(exceptionState, 2, info.Length()); |
| 10740 exceptionState.throwIfNeeded(); | 10783 exceptionState.throwIfNeeded(); |
| 10741 return; | 10784 return; |
| 10742 } | 10785 } |
| 10743 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 10786 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 10744 int value1; | 10787 int value1; |
| 10745 int value2; | 10788 int value2; |
| 10746 { | 10789 { |
| 10747 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(value1, toInt16(info[0], exception
State), exceptionState); | 10790 TONATIVE_CONVERT(convertAndThrow(value1 = toInt16(info[0], exceptionStat
e), exceptionState), return); |
| 10748 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(value2, toInt16(info[1], exception
State), exceptionState); | 10791 TONATIVE_CONVERT(convertAndThrow(value2 = toInt16(info[1], exceptionStat
e), exceptionState), return); |
| 10749 } | 10792 } |
| 10750 v8SetReturnValueInt(info, impl->methodImplementedInCPPForPrivateScriptOnly(v
alue1, value2)); | 10793 v8SetReturnValueInt(info, impl->methodImplementedInCPPForPrivateScriptOnly(v
alue1, value2)); |
| 10751 } | 10794 } |
| 10752 | 10795 |
| 10753 static void methodImplementedInCPPForPrivateScriptOnlyMethodCallback(const v8::F
unctionCallbackInfo<v8::Value>& info) | 10796 static void methodImplementedInCPPForPrivateScriptOnlyMethodCallback(const v8::F
unctionCallbackInfo<v8::Value>& info) |
| 10754 { | 10797 { |
| 10755 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 10798 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 10756 TestObjectV8Internal::methodImplementedInCPPForPrivateScriptOnlyMethod(info)
; | 10799 TestObjectV8Internal::methodImplementedInCPPForPrivateScriptOnlyMethod(info)
; |
| 10757 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 10800 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 10758 } | 10801 } |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10824 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 10867 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 10825 exceptionState.throwIfNeeded(); | 10868 exceptionState.throwIfNeeded(); |
| 10826 return; | 10869 return; |
| 10827 } | 10870 } |
| 10828 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 10871 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 10829 ScriptValue callback; | 10872 ScriptValue callback; |
| 10830 ScriptValue thisArg; | 10873 ScriptValue thisArg; |
| 10831 { | 10874 { |
| 10832 if (!info[0]->IsFunction()) { | 10875 if (!info[0]->IsFunction()) { |
| 10833 exceptionState.throwTypeError("The callback provided as parameter 1
is not a function."); | 10876 exceptionState.throwTypeError("The callback provided as parameter 1
is not a function."); |
| 10834 exceptionState.throwIfNeeded(); | 10877 exceptionState.throwIfNeeded(); |
| 10835 return; | 10878 return; |
| 10836 } | 10879 } |
| 10837 callback = ScriptValue(ScriptState::current(info.GetIsolate()), info[0])
; | 10880 callback = ScriptValue(ScriptState::current(info.GetIsolate()), info[0])
; |
| 10838 thisArg = ScriptValue(ScriptState::current(info.GetIsolate()), info[1]); | 10881 thisArg = ScriptValue(ScriptState::current(info.GetIsolate()), info[1]); |
| 10839 } | 10882 } |
| 10840 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); | 10883 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); |
| 10841 impl->forEachForBinding(scriptState, ScriptValue(scriptState, info.This()),
callback, thisArg, exceptionState); | 10884 impl->forEachForBinding(scriptState, ScriptValue(scriptState, info.This()),
callback, thisArg, exceptionState); |
| 10842 if (exceptionState.hadException()) { | 10885 if (exceptionState.hadException()) { |
| 10843 exceptionState.throwIfNeeded(); | 10886 exceptionState.throwIfNeeded(); |
| 10844 return; | 10887 return; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 10856 { | 10899 { |
| 10857 ExceptionState exceptionState(ExceptionState::ExecutionContext, "has", "Test
Object", info.Holder(), info.GetIsolate()); | 10900 ExceptionState exceptionState(ExceptionState::ExecutionContext, "has", "Test
Object", info.Holder(), info.GetIsolate()); |
| 10858 if (UNLIKELY(info.Length() < 1)) { | 10901 if (UNLIKELY(info.Length() < 1)) { |
| 10859 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 10902 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 10860 exceptionState.throwIfNeeded(); | 10903 exceptionState.throwIfNeeded(); |
| 10861 return; | 10904 return; |
| 10862 } | 10905 } |
| 10863 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 10906 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 10864 int key; | 10907 int key; |
| 10865 { | 10908 { |
| 10866 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(key, toInt32(info[0], exceptionSta
te), exceptionState); | 10909 TONATIVE_CONVERT(convertAndThrow(key = toInt32(info[0], exceptionState),
exceptionState), return); |
| 10867 } | 10910 } |
| 10868 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); | 10911 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); |
| 10869 bool result = impl->hasForBinding(scriptState, key, exceptionState); | 10912 bool result = impl->hasForBinding(scriptState, key, exceptionState); |
| 10870 if (exceptionState.hadException()) { | 10913 if (exceptionState.hadException()) { |
| 10871 exceptionState.throwIfNeeded(); | 10914 exceptionState.throwIfNeeded(); |
| 10872 return; | 10915 return; |
| 10873 } | 10916 } |
| 10874 v8SetReturnValueBool(info, result); | 10917 v8SetReturnValueBool(info, result); |
| 10875 } | 10918 } |
| 10876 | 10919 |
| 10877 static void hasMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) | 10920 static void hasMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 10878 { | 10921 { |
| 10879 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 10922 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 10880 TestObjectV8Internal::hasMethod(info); | 10923 TestObjectV8Internal::hasMethod(info); |
| 10881 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 10924 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 10882 } | 10925 } |
| 10883 | 10926 |
| 10884 static void getMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 10927 static void getMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 10885 { | 10928 { |
| 10886 ExceptionState exceptionState(ExceptionState::ExecutionContext, "get", "Test
Object", info.Holder(), info.GetIsolate()); | 10929 ExceptionState exceptionState(ExceptionState::ExecutionContext, "get", "Test
Object", info.Holder(), info.GetIsolate()); |
| 10887 if (UNLIKELY(info.Length() < 1)) { | 10930 if (UNLIKELY(info.Length() < 1)) { |
| 10888 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 10931 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 10889 exceptionState.throwIfNeeded(); | 10932 exceptionState.throwIfNeeded(); |
| 10890 return; | 10933 return; |
| 10891 } | 10934 } |
| 10892 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 10935 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 10893 int key; | 10936 int key; |
| 10894 { | 10937 { |
| 10895 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(key, toInt32(info[0], exceptionSta
te), exceptionState); | 10938 TONATIVE_CONVERT(convertAndThrow(key = toInt32(info[0], exceptionState),
exceptionState), return); |
| 10896 } | 10939 } |
| 10897 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); | 10940 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); |
| 10898 ScriptValue result = impl->getForBinding(scriptState, key, exceptionState); | 10941 ScriptValue result = impl->getForBinding(scriptState, key, exceptionState); |
| 10899 if (exceptionState.hadException()) { | 10942 if (exceptionState.hadException()) { |
| 10900 exceptionState.throwIfNeeded(); | 10943 exceptionState.throwIfNeeded(); |
| 10901 return; | 10944 return; |
| 10902 } | 10945 } |
| 10903 v8SetReturnValue(info, result.v8Value()); | 10946 v8SetReturnValue(info, result.v8Value()); |
| 10904 } | 10947 } |
| 10905 | 10948 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 10933 { | 10976 { |
| 10934 ExceptionState exceptionState(ExceptionState::ExecutionContext, "delete", "T
estObject", info.Holder(), info.GetIsolate()); | 10977 ExceptionState exceptionState(ExceptionState::ExecutionContext, "delete", "T
estObject", info.Holder(), info.GetIsolate()); |
| 10935 if (UNLIKELY(info.Length() < 1)) { | 10978 if (UNLIKELY(info.Length() < 1)) { |
| 10936 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 10979 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 10937 exceptionState.throwIfNeeded(); | 10980 exceptionState.throwIfNeeded(); |
| 10938 return; | 10981 return; |
| 10939 } | 10982 } |
| 10940 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 10983 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 10941 int key; | 10984 int key; |
| 10942 { | 10985 { |
| 10943 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(key, toInt32(info[0], exceptionSta
te), exceptionState); | 10986 TONATIVE_CONVERT(convertAndThrow(key = toInt32(info[0], exceptionState),
exceptionState), return); |
| 10944 } | 10987 } |
| 10945 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); | 10988 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); |
| 10946 bool result = impl->deleteForBinding(scriptState, key, exceptionState); | 10989 bool result = impl->deleteForBinding(scriptState, key, exceptionState); |
| 10947 if (exceptionState.hadException()) { | 10990 if (exceptionState.hadException()) { |
| 10948 exceptionState.throwIfNeeded(); | 10991 exceptionState.throwIfNeeded(); |
| 10949 return; | 10992 return; |
| 10950 } | 10993 } |
| 10951 v8SetReturnValueBool(info, result); | 10994 v8SetReturnValueBool(info, result); |
| 10952 } | 10995 } |
| 10953 | 10996 |
| 10954 static void deleteMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info
) | 10997 static void deleteMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info
) |
| 10955 { | 10998 { |
| 10956 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 10999 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 10957 TestObjectV8Internal::deleteMethod(info); | 11000 TestObjectV8Internal::deleteMethod(info); |
| 10958 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 11001 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 10959 } | 11002 } |
| 10960 | 11003 |
| 10961 static void setMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 11004 static void setMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 10962 { | 11005 { |
| 10963 ExceptionState exceptionState(ExceptionState::ExecutionContext, "set", "Test
Object", info.Holder(), info.GetIsolate()); | 11006 ExceptionState exceptionState(ExceptionState::ExecutionContext, "set", "Test
Object", info.Holder(), info.GetIsolate()); |
| 10964 if (UNLIKELY(info.Length() < 2)) { | 11007 if (UNLIKELY(info.Length() < 2)) { |
| 10965 setMinimumArityTypeError(exceptionState, 2, info.Length()); | 11008 setMinimumArityTypeError(exceptionState, 2, info.Length()); |
| 10966 exceptionState.throwIfNeeded(); | 11009 exceptionState.throwIfNeeded(); |
| 10967 return; | 11010 return; |
| 10968 } | 11011 } |
| 10969 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 11012 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 10970 int key; | 11013 int key; |
| 10971 StringOrDouble value; | 11014 StringOrDouble value; |
| 10972 { | 11015 { |
| 10973 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(key, toInt32(info[0], exceptionSta
te), exceptionState); | 11016 TONATIVE_CONVERT(convertAndThrow(key = toInt32(info[0], exceptionState),
exceptionState), return); |
| 10974 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8StringOrDouble::toImpl(info.G
etIsolate(), info[1], value, exceptionState), exceptionState); | 11017 TONATIVE_CONVERT(V8StringOrDouble::toImpl(info.GetIsolate(), info[1], va
lue, exceptionState), return exceptionState.throwException()); |
| 10975 } | 11018 } |
| 10976 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); | 11019 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); |
| 10977 RefPtr<TestObject> result = impl->setForBinding(scriptState, key, value, exc
eptionState); | 11020 RefPtr<TestObject> result = impl->setForBinding(scriptState, key, value, exc
eptionState); |
| 10978 if (exceptionState.hadException()) { | 11021 if (exceptionState.hadException()) { |
| 10979 exceptionState.throwIfNeeded(); | 11022 exceptionState.throwIfNeeded(); |
| 10980 return; | 11023 return; |
| 10981 } | 11024 } |
| 10982 v8SetReturnValue(info, result.release()); | 11025 v8SetReturnValue(info, result.release()); |
| 10983 } | 11026 } |
| 10984 | 11027 |
| (...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11662 return false; | 11705 return false; |
| 11663 | 11706 |
| 11664 ScriptState::Scope scope(scriptState); | 11707 ScriptState::Scope scope(scriptState); |
| 11665 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); | 11708 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); |
| 11666 | 11709 |
| 11667 v8::Local<v8::Value> *argv = 0; | 11710 v8::Local<v8::Value> *argv = 0; |
| 11668 ExceptionState exceptionState(ExceptionState::ExecutionContext, "shortMethod
ImplementedInPrivateScript", "TestObject", scriptState->context()->Global(), scr
iptState->isolate()); | 11711 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); | 11712 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMMethod(scriptState
, scriptStateInUserScript, "TestObject", "shortMethodImplementedInPrivateScript"
, holder, 0, argv); |
| 11670 if (v8Value.IsEmpty()) | 11713 if (v8Value.IsEmpty()) |
| 11671 return false; | 11714 return false; |
| 11672 TONATIVE_DEFAULT_EXCEPTIONSTATE(int, cppValue, toInt16(v8Value, exceptionSta
te), exceptionState, false); | 11715 TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt16(v8Value,
exceptionState), exceptionState), return false); |
| 11673 *result = cppValue; | 11716 *result = cppValue; |
| 11674 RELEASE_ASSERT(!exceptionState.hadException()); | 11717 RELEASE_ASSERT(!exceptionState.hadException()); |
| 11675 return true; | 11718 return true; |
| 11676 } | 11719 } |
| 11677 | 11720 |
| 11678 bool V8TestObject::PrivateScript::shortMethodWithShortArgumentImplementedInPriva
teScriptMethod(LocalFrame* frame, TestObject* holderImpl, int value, int* result
) | 11721 bool V8TestObject::PrivateScript::shortMethodWithShortArgumentImplementedInPriva
teScriptMethod(LocalFrame* frame, TestObject* holderImpl, int value, int* result
) |
| 11679 { | 11722 { |
| 11680 if (!frame) | 11723 if (!frame) |
| 11681 return false; | 11724 return false; |
| 11682 v8::HandleScope handleScope(toIsolate(frame)); | 11725 v8::HandleScope handleScope(toIsolate(frame)); |
| 11683 ScriptForbiddenScope::AllowUserAgentScript script; | 11726 ScriptForbiddenScope::AllowUserAgentScript script; |
| 11684 v8::Local<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrappe
rWorld::privateScriptIsolatedWorld()); | 11727 v8::Local<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrappe
rWorld::privateScriptIsolatedWorld()); |
| 11685 if (contextInPrivateScript.IsEmpty()) | 11728 if (contextInPrivateScript.IsEmpty()) |
| 11686 return false; | 11729 return false; |
| 11687 ScriptState* scriptState = ScriptState::from(contextInPrivateScript); | 11730 ScriptState* scriptState = ScriptState::from(contextInPrivateScript); |
| 11688 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame); | 11731 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame); |
| 11689 if (!scriptState->executionContext()) | 11732 if (!scriptState->executionContext()) |
| 11690 return false; | 11733 return false; |
| 11691 | 11734 |
| 11692 ScriptState::Scope scope(scriptState); | 11735 ScriptState::Scope scope(scriptState); |
| 11693 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); | 11736 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); |
| 11694 | 11737 |
| 11695 v8::Local<v8::Value> valueHandle = v8::Integer::New(scriptState->isolate(),
value); | 11738 v8::Local<v8::Value> valueHandle = v8::Integer::New(scriptState->isolate(),
value); |
| 11696 v8::Local<v8::Value> argv[] = { valueHandle }; | 11739 v8::Local<v8::Value> argv[] = { valueHandle }; |
| 11697 ExceptionState exceptionState(ExceptionState::ExecutionContext, "shortMethod
WithShortArgumentImplementedInPrivateScript", "TestObject", scriptState->context
()->Global(), scriptState->isolate()); | 11740 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); | 11741 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMMethod(scriptState
, scriptStateInUserScript, "TestObject", "shortMethodWithShortArgumentImplemente
dInPrivateScript", holder, 1, argv); |
| 11699 if (v8Value.IsEmpty()) | 11742 if (v8Value.IsEmpty()) |
| 11700 return false; | 11743 return false; |
| 11701 TONATIVE_DEFAULT_EXCEPTIONSTATE(int, cppValue, toInt16(v8Value, exceptionSta
te), exceptionState, false); | 11744 TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt16(v8Value,
exceptionState), exceptionState), return false); |
| 11702 *result = cppValue; | 11745 *result = cppValue; |
| 11703 RELEASE_ASSERT(!exceptionState.hadException()); | 11746 RELEASE_ASSERT(!exceptionState.hadException()); |
| 11704 return true; | 11747 return true; |
| 11705 } | 11748 } |
| 11706 | 11749 |
| 11707 bool V8TestObject::PrivateScript::stringMethodWithStringArgumentImplementedInPri
vateScriptMethod(LocalFrame* frame, TestObject* holderImpl, String value, String
* result) | 11750 bool V8TestObject::PrivateScript::stringMethodWithStringArgumentImplementedInPri
vateScriptMethod(LocalFrame* frame, TestObject* holderImpl, String value, String
* result) |
| 11708 { | 11751 { |
| 11709 if (!frame) | 11752 if (!frame) |
| 11710 return false; | 11753 return false; |
| 11711 v8::HandleScope handleScope(toIsolate(frame)); | 11754 v8::HandleScope handleScope(toIsolate(frame)); |
| 11712 ScriptForbiddenScope::AllowUserAgentScript script; | 11755 ScriptForbiddenScope::AllowUserAgentScript script; |
| 11713 v8::Local<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrappe
rWorld::privateScriptIsolatedWorld()); | 11756 v8::Local<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrappe
rWorld::privateScriptIsolatedWorld()); |
| 11714 if (contextInPrivateScript.IsEmpty()) | 11757 if (contextInPrivateScript.IsEmpty()) |
| 11715 return false; | 11758 return false; |
| 11716 ScriptState* scriptState = ScriptState::from(contextInPrivateScript); | 11759 ScriptState* scriptState = ScriptState::from(contextInPrivateScript); |
| 11717 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame); | 11760 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame); |
| 11718 if (!scriptState->executionContext()) | 11761 if (!scriptState->executionContext()) |
| 11719 return false; | 11762 return false; |
| 11720 | 11763 |
| 11721 ScriptState::Scope scope(scriptState); | 11764 ScriptState::Scope scope(scriptState); |
| 11722 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); | 11765 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); |
| 11723 | 11766 |
| 11724 v8::Local<v8::Value> valueHandle = v8String(scriptState->isolate(), value); | 11767 v8::Local<v8::Value> valueHandle = v8String(scriptState->isolate(), value); |
| 11725 v8::Local<v8::Value> argv[] = { valueHandle }; | 11768 v8::Local<v8::Value> argv[] = { valueHandle }; |
| 11726 ExceptionState exceptionState(ExceptionState::ExecutionContext, "stringMetho
dWithStringArgumentImplementedInPrivateScript", "TestObject", scriptState->conte
xt()->Global(), scriptState->isolate()); | 11769 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); | 11770 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMMethod(scriptState
, scriptStateInUserScript, "TestObject", "stringMethodWithStringArgumentImplemen
tedInPrivateScript", holder, 1, argv); |
| 11728 if (v8Value.IsEmpty()) | 11771 if (v8Value.IsEmpty()) |
| 11729 return false; | 11772 return false; |
| 11730 TOSTRING_DEFAULT(V8StringResource<>, cppValue, v8Value, false); | 11773 TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(
), return false); |
| 11731 *result = cppValue; | 11774 *result = cppValue; |
| 11732 RELEASE_ASSERT(!exceptionState.hadException()); | 11775 RELEASE_ASSERT(!exceptionState.hadException()); |
| 11733 return true; | 11776 return true; |
| 11734 } | 11777 } |
| 11735 | 11778 |
| 11736 bool V8TestObject::PrivateScript::nodeMethodWithNodeArgumentImplementedInPrivate
ScriptMethod(LocalFrame* frame, TestObject* holderImpl, PassRefPtrWillBeRawPtr<N
ode> value, RefPtrWillBeRawPtr<Node>* result) | 11779 bool V8TestObject::PrivateScript::nodeMethodWithNodeArgumentImplementedInPrivate
ScriptMethod(LocalFrame* frame, TestObject* holderImpl, PassRefPtrWillBeRawPtr<N
ode> value, RefPtrWillBeRawPtr<Node>* result) |
| 11737 { | 11780 { |
| 11738 if (!frame) | 11781 if (!frame) |
| 11739 return false; | 11782 return false; |
| 11740 v8::HandleScope handleScope(toIsolate(frame)); | 11783 v8::HandleScope handleScope(toIsolate(frame)); |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11812 ScriptState::Scope scope(scriptState); | 11855 ScriptState::Scope scope(scriptState); |
| 11813 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); | 11856 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); |
| 11814 | 11857 |
| 11815 v8::Local<v8::Value> value1Handle = v8::Integer::New(scriptState->isolate(),
value1); | 11858 v8::Local<v8::Value> value1Handle = v8::Integer::New(scriptState->isolate(),
value1); |
| 11816 v8::Local<v8::Value> value2Handle = v8::Integer::New(scriptState->isolate(),
value2); | 11859 v8::Local<v8::Value> value2Handle = v8::Integer::New(scriptState->isolate(),
value2); |
| 11817 v8::Local<v8::Value> argv[] = { value1Handle, value2Handle }; | 11860 v8::Local<v8::Value> argv[] = { value1Handle, value2Handle }; |
| 11818 ExceptionState exceptionState(ExceptionState::ExecutionContext, "methodForPr
ivateScriptOnly", "TestObject", scriptState->context()->Global(), scriptState->i
solate()); | 11861 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); | 11862 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMMethod(scriptState
, scriptStateInUserScript, "TestObject", "methodForPrivateScriptOnly", holder, 2
, argv); |
| 11820 if (v8Value.IsEmpty()) | 11863 if (v8Value.IsEmpty()) |
| 11821 return false; | 11864 return false; |
| 11822 TONATIVE_DEFAULT_EXCEPTIONSTATE(int, cppValue, toInt16(v8Value, exceptionSta
te), exceptionState, false); | 11865 TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt16(v8Value,
exceptionState), exceptionState), return false); |
| 11823 *result = cppValue; | 11866 *result = cppValue; |
| 11824 RELEASE_ASSERT(!exceptionState.hadException()); | 11867 RELEASE_ASSERT(!exceptionState.hadException()); |
| 11825 return true; | 11868 return true; |
| 11826 } | 11869 } |
| 11827 | 11870 |
| 11828 bool V8TestObject::PrivateScript::readonlyShortAttributeAttributeGetter(LocalFra
me* frame, TestObject* holderImpl, int* result) | 11871 bool V8TestObject::PrivateScript::readonlyShortAttributeAttributeGetter(LocalFra
me* frame, TestObject* holderImpl, int* result) |
| 11829 { | 11872 { |
| 11830 if (!frame) | 11873 if (!frame) |
| 11831 return false; | 11874 return false; |
| 11832 v8::HandleScope handleScope(toIsolate(frame)); | 11875 v8::HandleScope handleScope(toIsolate(frame)); |
| 11833 ScriptForbiddenScope::AllowUserAgentScript script; | 11876 ScriptForbiddenScope::AllowUserAgentScript script; |
| 11834 v8::Local<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrappe
rWorld::privateScriptIsolatedWorld()); | 11877 v8::Local<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrappe
rWorld::privateScriptIsolatedWorld()); |
| 11835 if (contextInPrivateScript.IsEmpty()) | 11878 if (contextInPrivateScript.IsEmpty()) |
| 11836 return false; | 11879 return false; |
| 11837 ScriptState* scriptState = ScriptState::from(contextInPrivateScript); | 11880 ScriptState* scriptState = ScriptState::from(contextInPrivateScript); |
| 11838 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame); | 11881 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame); |
| 11839 if (!scriptState->executionContext()) | 11882 if (!scriptState->executionContext()) |
| 11840 return false; | 11883 return false; |
| 11841 | 11884 |
| 11842 ScriptState::Scope scope(scriptState); | 11885 ScriptState::Scope scope(scriptState); |
| 11843 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); | 11886 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); |
| 11844 | 11887 |
| 11845 ExceptionState exceptionState(ExceptionState::GetterContext, "readonlyShortA
ttribute", "TestObject", scriptState->context()->Global(), scriptState->isolate(
)); | 11888 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); | 11889 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMAttributeGetter(sc
riptState, scriptStateInUserScript, "TestObject", "readonlyShortAttribute", hold
er); |
| 11847 if (v8Value.IsEmpty()) | 11890 if (v8Value.IsEmpty()) |
| 11848 return false; | 11891 return false; |
| 11849 TONATIVE_DEFAULT_EXCEPTIONSTATE(int, cppValue, toInt16(v8Value, exceptionSta
te), exceptionState, false); | 11892 TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt16(v8Value,
exceptionState), exceptionState), return false); |
| 11850 RELEASE_ASSERT(!exceptionState.hadException()); | 11893 RELEASE_ASSERT(!exceptionState.hadException()); |
| 11851 *result = cppValue; | 11894 *result = cppValue; |
| 11852 return true; | 11895 return true; |
| 11853 } | 11896 } |
| 11854 | 11897 |
| 11855 bool V8TestObject::PrivateScript::shortAttributeAttributeGetter(LocalFrame* fram
e, TestObject* holderImpl, int* result) | 11898 bool V8TestObject::PrivateScript::shortAttributeAttributeGetter(LocalFrame* fram
e, TestObject* holderImpl, int* result) |
| 11856 { | 11899 { |
| 11857 if (!frame) | 11900 if (!frame) |
| 11858 return false; | 11901 return false; |
| 11859 v8::HandleScope handleScope(toIsolate(frame)); | 11902 v8::HandleScope handleScope(toIsolate(frame)); |
| 11860 ScriptForbiddenScope::AllowUserAgentScript script; | 11903 ScriptForbiddenScope::AllowUserAgentScript script; |
| 11861 v8::Local<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrappe
rWorld::privateScriptIsolatedWorld()); | 11904 v8::Local<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrappe
rWorld::privateScriptIsolatedWorld()); |
| 11862 if (contextInPrivateScript.IsEmpty()) | 11905 if (contextInPrivateScript.IsEmpty()) |
| 11863 return false; | 11906 return false; |
| 11864 ScriptState* scriptState = ScriptState::from(contextInPrivateScript); | 11907 ScriptState* scriptState = ScriptState::from(contextInPrivateScript); |
| 11865 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame); | 11908 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame); |
| 11866 if (!scriptState->executionContext()) | 11909 if (!scriptState->executionContext()) |
| 11867 return false; | 11910 return false; |
| 11868 | 11911 |
| 11869 ScriptState::Scope scope(scriptState); | 11912 ScriptState::Scope scope(scriptState); |
| 11870 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); | 11913 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); |
| 11871 | 11914 |
| 11872 ExceptionState exceptionState(ExceptionState::GetterContext, "shortAttribute
", "TestObject", scriptState->context()->Global(), scriptState->isolate()); | 11915 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); | 11916 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMAttributeGetter(sc
riptState, scriptStateInUserScript, "TestObject", "shortAttribute", holder); |
| 11874 if (v8Value.IsEmpty()) | 11917 if (v8Value.IsEmpty()) |
| 11875 return false; | 11918 return false; |
| 11876 TONATIVE_DEFAULT_EXCEPTIONSTATE(int, cppValue, toInt16(v8Value, exceptionSta
te), exceptionState, false); | 11919 TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt16(v8Value,
exceptionState), exceptionState), return false); |
| 11877 RELEASE_ASSERT(!exceptionState.hadException()); | 11920 RELEASE_ASSERT(!exceptionState.hadException()); |
| 11878 *result = cppValue; | 11921 *result = cppValue; |
| 11879 return true; | 11922 return true; |
| 11880 } | 11923 } |
| 11881 | 11924 |
| 11882 bool V8TestObject::PrivateScript::shortAttributeAttributeSetter(LocalFrame* fram
e, TestObject* holderImpl, int cppValue) | 11925 bool V8TestObject::PrivateScript::shortAttributeAttributeSetter(LocalFrame* fram
e, TestObject* holderImpl, int cppValue) |
| 11883 { | 11926 { |
| 11884 if (!frame) | 11927 if (!frame) |
| 11885 return false; | 11928 return false; |
| 11886 v8::HandleScope handleScope(toIsolate(frame)); | 11929 v8::HandleScope handleScope(toIsolate(frame)); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 11914 if (!scriptState->executionContext()) | 11957 if (!scriptState->executionContext()) |
| 11915 return false; | 11958 return false; |
| 11916 | 11959 |
| 11917 ScriptState::Scope scope(scriptState); | 11960 ScriptState::Scope scope(scriptState); |
| 11918 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); | 11961 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); |
| 11919 | 11962 |
| 11920 ExceptionState exceptionState(ExceptionState::GetterContext, "stringAttribut
e", "TestObject", scriptState->context()->Global(), scriptState->isolate()); | 11963 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); | 11964 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMAttributeGetter(sc
riptState, scriptStateInUserScript, "TestObject", "stringAttribute", holder); |
| 11922 if (v8Value.IsEmpty()) | 11965 if (v8Value.IsEmpty()) |
| 11923 return false; | 11966 return false; |
| 11924 TOSTRING_DEFAULT(V8StringResource<>, cppValue, v8Value, false); | 11967 TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(
), return false); |
| 11925 RELEASE_ASSERT(!exceptionState.hadException()); | 11968 RELEASE_ASSERT(!exceptionState.hadException()); |
| 11926 *result = cppValue; | 11969 *result = cppValue; |
| 11927 return true; | 11970 return true; |
| 11928 } | 11971 } |
| 11929 | 11972 |
| 11930 bool V8TestObject::PrivateScript::stringAttributeAttributeSetter(LocalFrame* fra
me, TestObject* holderImpl, String cppValue) | 11973 bool V8TestObject::PrivateScript::stringAttributeAttributeSetter(LocalFrame* fra
me, TestObject* holderImpl, String cppValue) |
| 11931 { | 11974 { |
| 11932 if (!frame) | 11975 if (!frame) |
| 11933 return false; | 11976 return false; |
| 11934 v8::HandleScope handleScope(toIsolate(frame)); | 11977 v8::HandleScope handleScope(toIsolate(frame)); |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12010 if (!scriptState->executionContext()) | 12053 if (!scriptState->executionContext()) |
| 12011 return false; | 12054 return false; |
| 12012 | 12055 |
| 12013 ScriptState::Scope scope(scriptState); | 12056 ScriptState::Scope scope(scriptState); |
| 12014 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); | 12057 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); |
| 12015 | 12058 |
| 12016 ExceptionState exceptionState(ExceptionState::GetterContext, "attributeForPr
ivateScriptOnly", "TestObject", scriptState->context()->Global(), scriptState->i
solate()); | 12059 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); | 12060 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMAttributeGetter(sc
riptState, scriptStateInUserScript, "TestObject", "attributeForPrivateScriptOnly
", holder); |
| 12018 if (v8Value.IsEmpty()) | 12061 if (v8Value.IsEmpty()) |
| 12019 return false; | 12062 return false; |
| 12020 TOSTRING_DEFAULT(V8StringResource<>, cppValue, v8Value, false); | 12063 TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(
), return false); |
| 12021 RELEASE_ASSERT(!exceptionState.hadException()); | 12064 RELEASE_ASSERT(!exceptionState.hadException()); |
| 12022 *result = cppValue; | 12065 *result = cppValue; |
| 12023 return true; | 12066 return true; |
| 12024 } | 12067 } |
| 12025 | 12068 |
| 12026 bool V8TestObject::PrivateScript::attributeForPrivateScriptOnlyAttributeSetter(L
ocalFrame* frame, TestObject* holderImpl, String cppValue) | 12069 bool V8TestObject::PrivateScript::attributeForPrivateScriptOnlyAttributeSetter(L
ocalFrame* frame, TestObject* holderImpl, String cppValue) |
| 12027 { | 12070 { |
| 12028 if (!frame) | 12071 if (!frame) |
| 12029 return false; | 12072 return false; |
| 12030 v8::HandleScope handleScope(toIsolate(frame)); | 12073 v8::HandleScope handleScope(toIsolate(frame)); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 12058 if (!scriptState->executionContext()) | 12101 if (!scriptState->executionContext()) |
| 12059 return false; | 12102 return false; |
| 12060 | 12103 |
| 12061 ScriptState::Scope scope(scriptState); | 12104 ScriptState::Scope scope(scriptState); |
| 12062 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); | 12105 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); |
| 12063 | 12106 |
| 12064 ExceptionState exceptionState(ExceptionState::GetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; | 12107 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
); | 12108 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMAttributeGetter(sc
riptState, scriptStateInUserScript, "TestObject", "enumForPrivateScript", holder
); |
| 12066 if (v8Value.IsEmpty()) | 12109 if (v8Value.IsEmpty()) |
| 12067 return false; | 12110 return false; |
| 12068 TOSTRING_DEFAULT(V8StringResource<>, cppValue, v8Value, false); | 12111 TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(
), return false); |
| 12069 RELEASE_ASSERT(!exceptionState.hadException()); | 12112 RELEASE_ASSERT(!exceptionState.hadException()); |
| 12070 *result = cppValue; | 12113 *result = cppValue; |
| 12071 return true; | 12114 return true; |
| 12072 } | 12115 } |
| 12073 | 12116 |
| 12074 bool V8TestObject::PrivateScript::enumForPrivateScriptAttributeSetter(LocalFrame
* frame, TestObject* holderImpl, String cppValue) | 12117 bool V8TestObject::PrivateScript::enumForPrivateScriptAttributeSetter(LocalFrame
* frame, TestObject* holderImpl, String cppValue) |
| 12075 { | 12118 { |
| 12076 if (!frame) | 12119 if (!frame) |
| 12077 return false; | 12120 return false; |
| 12078 v8::HandleScope handleScope(toIsolate(frame)); | 12121 v8::HandleScope handleScope(toIsolate(frame)); |
| 12079 ScriptForbiddenScope::AllowUserAgentScript script; | 12122 ScriptForbiddenScope::AllowUserAgentScript script; |
| 12080 v8::Local<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrappe
rWorld::privateScriptIsolatedWorld()); | 12123 v8::Local<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrappe
rWorld::privateScriptIsolatedWorld()); |
| 12081 if (contextInPrivateScript.IsEmpty()) | 12124 if (contextInPrivateScript.IsEmpty()) |
| 12082 return false; | 12125 return false; |
| 12083 ScriptState* scriptState = ScriptState::from(contextInPrivateScript); | 12126 ScriptState* scriptState = ScriptState::from(contextInPrivateScript); |
| 12084 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame); | 12127 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame); |
| 12085 if (!scriptState->executionContext()) | 12128 if (!scriptState->executionContext()) |
| 12086 return false; | 12129 return false; |
| 12087 | 12130 |
| 12088 ScriptState::Scope scope(scriptState); | 12131 ScriptState::Scope scope(scriptState); |
| 12089 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); | 12132 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); |
| 12090 | 12133 |
| 12091 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; | 12134 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)); | 12135 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); |
| 12093 } | 12136 } |
| 12094 | 12137 |
| 12095 } // namespace blink | 12138 } // namespace blink |
| OLD | NEW |