| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 | 168 |
| 169 static void dateAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8
::PropertyCallbackInfo<v8::Value>& info) | 169 static void dateAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8
::PropertyCallbackInfo<v8::Value>& info) |
| 170 { | 170 { |
| 171 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 171 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 172 TestObjectPythonV8Internal::dateAttributeAttributeGetter(info); | 172 TestObjectPythonV8Internal::dateAttributeAttributeGetter(info); |
| 173 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 173 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 174 } | 174 } |
| 175 | 175 |
| 176 static void dateAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8:
:PropertyCallbackInfo<void>& info) | 176 static void dateAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8:
:PropertyCallbackInfo<void>& info) |
| 177 { | 177 { |
| 178 ExceptionState exceptionState(ExceptionState::SetterContext, "dateAttribute"
, "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 178 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 179 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 179 V8TRYCATCH_VOID(double, cppValue, toWebCoreDate(jsValue)); | 180 V8TRYCATCH_VOID(double, cppValue, toWebCoreDate(jsValue)); |
| 180 imp->setDateAttribute(cppValue); | 181 imp->setDateAttribute(cppValue); |
| 181 } | 182 } |
| 182 | 183 |
| 183 static void dateAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca
l<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 184 static void dateAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca
l<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 184 { | 185 { |
| 185 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 186 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 186 TestObjectPythonV8Internal::dateAttributeAttributeSetter(jsValue, info); | 187 TestObjectPythonV8Internal::dateAttributeAttributeSetter(jsValue, info); |
| 187 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 188 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 188 } | 189 } |
| 189 | 190 |
| 190 static void stringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va
lue>& info) | 191 static void stringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va
lue>& info) |
| 191 { | 192 { |
| 192 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 193 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 193 v8SetReturnValueString(info, imp->stringAttribute(), info.GetIsolate()); | 194 v8SetReturnValueString(info, imp->stringAttribute(), info.GetIsolate()); |
| 194 } | 195 } |
| 195 | 196 |
| 196 static void stringAttributeAttributeGetterCallback(v8::Local<v8::String>, const
v8::PropertyCallbackInfo<v8::Value>& info) | 197 static void stringAttributeAttributeGetterCallback(v8::Local<v8::String>, const
v8::PropertyCallbackInfo<v8::Value>& info) |
| 197 { | 198 { |
| 198 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 199 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 199 TestObjectPythonV8Internal::stringAttributeAttributeGetter(info); | 200 TestObjectPythonV8Internal::stringAttributeAttributeGetter(info); |
| 200 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 201 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 201 } | 202 } |
| 202 | 203 |
| 203 static void stringAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v
8::PropertyCallbackInfo<void>& info) | 204 static void stringAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v
8::PropertyCallbackInfo<void>& info) |
| 204 { | 205 { |
| 206 ExceptionState exceptionState(ExceptionState::SetterContext, "stringAttribut
e", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 205 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 207 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 206 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 208 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
| 207 imp->setStringAttribute(cppValue); | 209 imp->setStringAttribute(cppValue); |
| 208 } | 210 } |
| 209 | 211 |
| 210 static void stringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo
cal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 212 static void stringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo
cal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 211 { | 213 { |
| 212 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 214 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 213 TestObjectPythonV8Internal::stringAttributeAttributeSetter(jsValue, info); | 215 TestObjectPythonV8Internal::stringAttributeAttributeSetter(jsValue, info); |
| 214 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 216 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 235 | 237 |
| 236 static void booleanAttributeAttributeGetterCallback(v8::Local<v8::String>, const
v8::PropertyCallbackInfo<v8::Value>& info) | 238 static void booleanAttributeAttributeGetterCallback(v8::Local<v8::String>, const
v8::PropertyCallbackInfo<v8::Value>& info) |
| 237 { | 239 { |
| 238 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 240 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 239 TestObjectPythonV8Internal::booleanAttributeAttributeGetter(info); | 241 TestObjectPythonV8Internal::booleanAttributeAttributeGetter(info); |
| 240 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 242 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 241 } | 243 } |
| 242 | 244 |
| 243 static void booleanAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const
v8::PropertyCallbackInfo<void>& info) | 245 static void booleanAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const
v8::PropertyCallbackInfo<void>& info) |
| 244 { | 246 { |
| 247 ExceptionState exceptionState(ExceptionState::SetterContext, "booleanAttribu
te", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 245 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 248 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 246 V8TRYCATCH_VOID(bool, cppValue, jsValue->BooleanValue()); | 249 V8TRYCATCH_VOID(bool, cppValue, jsValue->BooleanValue()); |
| 247 imp->setBooleanAttribute(cppValue); | 250 imp->setBooleanAttribute(cppValue); |
| 248 } | 251 } |
| 249 | 252 |
| 250 static void booleanAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::L
ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 253 static void booleanAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::L
ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 251 { | 254 { |
| 252 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 255 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 253 TestObjectPythonV8Internal::booleanAttributeAttributeSetter(jsValue, info); | 256 TestObjectPythonV8Internal::booleanAttributeAttributeSetter(jsValue, info); |
| 254 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 257 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 255 } | 258 } |
| 256 | 259 |
| 257 static void byteAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu
e>& info) | 260 static void byteAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu
e>& info) |
| 258 { | 261 { |
| 259 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 262 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 260 v8SetReturnValueInt(info, imp->byteAttribute()); | 263 v8SetReturnValueInt(info, imp->byteAttribute()); |
| 261 } | 264 } |
| 262 | 265 |
| 263 static void byteAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8
::PropertyCallbackInfo<v8::Value>& info) | 266 static void byteAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8
::PropertyCallbackInfo<v8::Value>& info) |
| 264 { | 267 { |
| 265 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 268 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 266 TestObjectPythonV8Internal::byteAttributeAttributeGetter(info); | 269 TestObjectPythonV8Internal::byteAttributeAttributeGetter(info); |
| 267 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 270 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 268 } | 271 } |
| 269 | 272 |
| 270 static void byteAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8:
:PropertyCallbackInfo<void>& info) | 273 static void byteAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8:
:PropertyCallbackInfo<void>& info) |
| 271 { | 274 { |
| 275 ExceptionState exceptionState(ExceptionState::SetterContext, "byteAttribute"
, "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 272 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 276 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 273 V8TRYCATCH_VOID(int, cppValue, toInt8(jsValue)); | 277 V8TRYCATCH_VOID(int, cppValue, toInt8(jsValue)); |
| 274 imp->setByteAttribute(cppValue); | 278 imp->setByteAttribute(cppValue); |
| 275 } | 279 } |
| 276 | 280 |
| 277 static void byteAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca
l<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 281 static void byteAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca
l<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 278 { | 282 { |
| 279 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 283 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 280 TestObjectPythonV8Internal::byteAttributeAttributeSetter(jsValue, info); | 284 TestObjectPythonV8Internal::byteAttributeAttributeSetter(jsValue, info); |
| 281 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 285 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 282 } | 286 } |
| 283 | 287 |
| 284 static void doubleAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va
lue>& info) | 288 static void doubleAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va
lue>& info) |
| 285 { | 289 { |
| 286 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 290 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 287 v8SetReturnValue(info, imp->doubleAttribute()); | 291 v8SetReturnValue(info, imp->doubleAttribute()); |
| 288 } | 292 } |
| 289 | 293 |
| 290 static void doubleAttributeAttributeGetterCallback(v8::Local<v8::String>, const
v8::PropertyCallbackInfo<v8::Value>& info) | 294 static void doubleAttributeAttributeGetterCallback(v8::Local<v8::String>, const
v8::PropertyCallbackInfo<v8::Value>& info) |
| 291 { | 295 { |
| 292 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 296 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 293 TestObjectPythonV8Internal::doubleAttributeAttributeGetter(info); | 297 TestObjectPythonV8Internal::doubleAttributeAttributeGetter(info); |
| 294 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 298 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 295 } | 299 } |
| 296 | 300 |
| 297 static void doubleAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v
8::PropertyCallbackInfo<void>& info) | 301 static void doubleAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v
8::PropertyCallbackInfo<void>& info) |
| 298 { | 302 { |
| 303 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleAttribut
e", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 299 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 304 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 300 V8TRYCATCH_VOID(double, cppValue, static_cast<double>(jsValue->NumberValue()
)); | 305 V8TRYCATCH_VOID(double, cppValue, static_cast<double>(jsValue->NumberValue()
)); |
| 301 imp->setDoubleAttribute(cppValue); | 306 imp->setDoubleAttribute(cppValue); |
| 302 } | 307 } |
| 303 | 308 |
| 304 static void doubleAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo
cal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 309 static void doubleAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo
cal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 305 { | 310 { |
| 306 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 311 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 307 TestObjectPythonV8Internal::doubleAttributeAttributeSetter(jsValue, info); | 312 TestObjectPythonV8Internal::doubleAttributeAttributeSetter(jsValue, info); |
| 308 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 313 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 309 } | 314 } |
| 310 | 315 |
| 311 static void floatAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val
ue>& info) | 316 static void floatAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val
ue>& info) |
| 312 { | 317 { |
| 313 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 318 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 314 v8SetReturnValue(info, imp->floatAttribute()); | 319 v8SetReturnValue(info, imp->floatAttribute()); |
| 315 } | 320 } |
| 316 | 321 |
| 317 static void floatAttributeAttributeGetterCallback(v8::Local<v8::String>, const v
8::PropertyCallbackInfo<v8::Value>& info) | 322 static void floatAttributeAttributeGetterCallback(v8::Local<v8::String>, const v
8::PropertyCallbackInfo<v8::Value>& info) |
| 318 { | 323 { |
| 319 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 324 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 320 TestObjectPythonV8Internal::floatAttributeAttributeGetter(info); | 325 TestObjectPythonV8Internal::floatAttributeAttributeGetter(info); |
| 321 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 326 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 322 } | 327 } |
| 323 | 328 |
| 324 static void floatAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8
::PropertyCallbackInfo<void>& info) | 329 static void floatAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8
::PropertyCallbackInfo<void>& info) |
| 325 { | 330 { |
| 331 ExceptionState exceptionState(ExceptionState::SetterContext, "floatAttribute
", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 326 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 332 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 327 V8TRYCATCH_VOID(float, cppValue, static_cast<float>(jsValue->NumberValue()))
; | 333 V8TRYCATCH_VOID(float, cppValue, static_cast<float>(jsValue->NumberValue()))
; |
| 328 imp->setFloatAttribute(cppValue); | 334 imp->setFloatAttribute(cppValue); |
| 329 } | 335 } |
| 330 | 336 |
| 331 static void floatAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
al<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 337 static void floatAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
al<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 332 { | 338 { |
| 333 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 339 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 334 TestObjectPythonV8Internal::floatAttributeAttributeSetter(jsValue, info); | 340 TestObjectPythonV8Internal::floatAttributeAttributeSetter(jsValue, info); |
| 335 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 341 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 336 } | 342 } |
| 337 | 343 |
| 338 static void longAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu
e>& info) | 344 static void longAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu
e>& info) |
| 339 { | 345 { |
| 340 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 346 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 341 v8SetReturnValueInt(info, imp->longAttribute()); | 347 v8SetReturnValueInt(info, imp->longAttribute()); |
| 342 } | 348 } |
| 343 | 349 |
| 344 static void longAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8
::PropertyCallbackInfo<v8::Value>& info) | 350 static void longAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8
::PropertyCallbackInfo<v8::Value>& info) |
| 345 { | 351 { |
| 346 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 352 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 347 TestObjectPythonV8Internal::longAttributeAttributeGetter(info); | 353 TestObjectPythonV8Internal::longAttributeAttributeGetter(info); |
| 348 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 354 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 349 } | 355 } |
| 350 | 356 |
| 351 static void longAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8:
:PropertyCallbackInfo<void>& info) | 357 static void longAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8:
:PropertyCallbackInfo<void>& info) |
| 352 { | 358 { |
| 359 ExceptionState exceptionState(ExceptionState::SetterContext, "longAttribute"
, "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 353 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 360 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 354 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); | 361 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
| 355 imp->setLongAttribute(cppValue); | 362 imp->setLongAttribute(cppValue); |
| 356 } | 363 } |
| 357 | 364 |
| 358 static void longAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca
l<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 365 static void longAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca
l<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 359 { | 366 { |
| 360 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 367 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 361 TestObjectPythonV8Internal::longAttributeAttributeSetter(jsValue, info); | 368 TestObjectPythonV8Internal::longAttributeAttributeSetter(jsValue, info); |
| 362 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 369 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 363 } | 370 } |
| 364 | 371 |
| 365 static void longLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::
Value>& info) | 372 static void longLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::
Value>& info) |
| 366 { | 373 { |
| 367 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 374 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 368 v8SetReturnValue(info, static_cast<double>(imp->longLongAttribute())); | 375 v8SetReturnValue(info, static_cast<double>(imp->longLongAttribute())); |
| 369 } | 376 } |
| 370 | 377 |
| 371 static void longLongAttributeAttributeGetterCallback(v8::Local<v8::String>, cons
t v8::PropertyCallbackInfo<v8::Value>& info) | 378 static void longLongAttributeAttributeGetterCallback(v8::Local<v8::String>, cons
t v8::PropertyCallbackInfo<v8::Value>& info) |
| 372 { | 379 { |
| 373 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 380 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 374 TestObjectPythonV8Internal::longLongAttributeAttributeGetter(info); | 381 TestObjectPythonV8Internal::longLongAttributeAttributeGetter(info); |
| 375 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 382 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 376 } | 383 } |
| 377 | 384 |
| 378 static void longLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const
v8::PropertyCallbackInfo<void>& info) | 385 static void longLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const
v8::PropertyCallbackInfo<void>& info) |
| 379 { | 386 { |
| 387 ExceptionState exceptionState(ExceptionState::SetterContext, "longLongAttrib
ute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 380 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 388 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 381 V8TRYCATCH_VOID(long long, cppValue, toInt64(jsValue)); | 389 V8TRYCATCH_VOID(long long, cppValue, toInt64(jsValue)); |
| 382 imp->setLongLongAttribute(cppValue); | 390 imp->setLongLongAttribute(cppValue); |
| 383 } | 391 } |
| 384 | 392 |
| 385 static void longLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::
Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 393 static void longLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::
Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 386 { | 394 { |
| 387 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 395 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 388 TestObjectPythonV8Internal::longLongAttributeAttributeSetter(jsValue, info); | 396 TestObjectPythonV8Internal::longLongAttributeAttributeSetter(jsValue, info); |
| 389 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 397 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 390 } | 398 } |
| 391 | 399 |
| 392 static void octetAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val
ue>& info) | 400 static void octetAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val
ue>& info) |
| 393 { | 401 { |
| 394 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 402 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 395 v8SetReturnValueUnsigned(info, imp->octetAttribute()); | 403 v8SetReturnValueUnsigned(info, imp->octetAttribute()); |
| 396 } | 404 } |
| 397 | 405 |
| 398 static void octetAttributeAttributeGetterCallback(v8::Local<v8::String>, const v
8::PropertyCallbackInfo<v8::Value>& info) | 406 static void octetAttributeAttributeGetterCallback(v8::Local<v8::String>, const v
8::PropertyCallbackInfo<v8::Value>& info) |
| 399 { | 407 { |
| 400 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 408 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 401 TestObjectPythonV8Internal::octetAttributeAttributeGetter(info); | 409 TestObjectPythonV8Internal::octetAttributeAttributeGetter(info); |
| 402 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 410 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 403 } | 411 } |
| 404 | 412 |
| 405 static void octetAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8
::PropertyCallbackInfo<void>& info) | 413 static void octetAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8
::PropertyCallbackInfo<void>& info) |
| 406 { | 414 { |
| 415 ExceptionState exceptionState(ExceptionState::SetterContext, "octetAttribute
", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 407 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 416 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 408 V8TRYCATCH_VOID(unsigned, cppValue, toUInt8(jsValue)); | 417 V8TRYCATCH_VOID(unsigned, cppValue, toUInt8(jsValue)); |
| 409 imp->setOctetAttribute(cppValue); | 418 imp->setOctetAttribute(cppValue); |
| 410 } | 419 } |
| 411 | 420 |
| 412 static void octetAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
al<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 421 static void octetAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
al<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 413 { | 422 { |
| 414 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 423 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 415 TestObjectPythonV8Internal::octetAttributeAttributeSetter(jsValue, info); | 424 TestObjectPythonV8Internal::octetAttributeAttributeSetter(jsValue, info); |
| 416 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 425 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 417 } | 426 } |
| 418 | 427 |
| 419 static void shortAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val
ue>& info) | 428 static void shortAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val
ue>& info) |
| 420 { | 429 { |
| 421 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 430 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 422 v8SetReturnValueInt(info, imp->shortAttribute()); | 431 v8SetReturnValueInt(info, imp->shortAttribute()); |
| 423 } | 432 } |
| 424 | 433 |
| 425 static void shortAttributeAttributeGetterCallback(v8::Local<v8::String>, const v
8::PropertyCallbackInfo<v8::Value>& info) | 434 static void shortAttributeAttributeGetterCallback(v8::Local<v8::String>, const v
8::PropertyCallbackInfo<v8::Value>& info) |
| 426 { | 435 { |
| 427 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 436 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 428 TestObjectPythonV8Internal::shortAttributeAttributeGetter(info); | 437 TestObjectPythonV8Internal::shortAttributeAttributeGetter(info); |
| 429 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 438 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 430 } | 439 } |
| 431 | 440 |
| 432 static void shortAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8
::PropertyCallbackInfo<void>& info) | 441 static void shortAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8
::PropertyCallbackInfo<void>& info) |
| 433 { | 442 { |
| 443 ExceptionState exceptionState(ExceptionState::SetterContext, "shortAttribute
", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 434 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 444 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 435 V8TRYCATCH_VOID(int, cppValue, toInt16(jsValue)); | 445 V8TRYCATCH_VOID(int, cppValue, toInt16(jsValue)); |
| 436 imp->setShortAttribute(cppValue); | 446 imp->setShortAttribute(cppValue); |
| 437 } | 447 } |
| 438 | 448 |
| 439 static void shortAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
al<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 449 static void shortAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
al<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 440 { | 450 { |
| 441 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 451 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 442 TestObjectPythonV8Internal::shortAttributeAttributeSetter(jsValue, info); | 452 TestObjectPythonV8Internal::shortAttributeAttributeSetter(jsValue, info); |
| 443 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 453 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 444 } | 454 } |
| 445 | 455 |
| 446 static void unsignedLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) | 456 static void unsignedLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) |
| 447 { | 457 { |
| 448 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 458 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 449 v8SetReturnValueUnsigned(info, imp->unsignedLongAttribute()); | 459 v8SetReturnValueUnsigned(info, imp->unsignedLongAttribute()); |
| 450 } | 460 } |
| 451 | 461 |
| 452 static void unsignedLongAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 462 static void unsignedLongAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
| 453 { | 463 { |
| 454 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 464 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 455 TestObjectPythonV8Internal::unsignedLongAttributeAttributeGetter(info); | 465 TestObjectPythonV8Internal::unsignedLongAttributeAttributeGetter(info); |
| 456 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 466 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 457 } | 467 } |
| 458 | 468 |
| 459 static void unsignedLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, c
onst v8::PropertyCallbackInfo<void>& info) | 469 static void unsignedLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, c
onst v8::PropertyCallbackInfo<void>& info) |
| 460 { | 470 { |
| 471 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedLongAt
tribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 461 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 472 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 462 V8TRYCATCH_VOID(unsigned, cppValue, toUInt32(jsValue)); | 473 V8TRYCATCH_VOID(unsigned, cppValue, toUInt32(jsValue)); |
| 463 imp->setUnsignedLongAttribute(cppValue); | 474 imp->setUnsignedLongAttribute(cppValue); |
| 464 } | 475 } |
| 465 | 476 |
| 466 static void unsignedLongAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 477 static void unsignedLongAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 467 { | 478 { |
| 468 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 479 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 469 TestObjectPythonV8Internal::unsignedLongAttributeAttributeSetter(jsValue, in
fo); | 480 TestObjectPythonV8Internal::unsignedLongAttributeAttributeSetter(jsValue, in
fo); |
| 470 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 481 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 471 } | 482 } |
| 472 | 483 |
| 473 static void unsignedLongLongAttributeAttributeGetter(const v8::PropertyCallbackI
nfo<v8::Value>& info) | 484 static void unsignedLongLongAttributeAttributeGetter(const v8::PropertyCallbackI
nfo<v8::Value>& info) |
| 474 { | 485 { |
| 475 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 486 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 476 v8SetReturnValue(info, static_cast<double>(imp->unsignedLongLongAttribute())
); | 487 v8SetReturnValue(info, static_cast<double>(imp->unsignedLongLongAttribute())
); |
| 477 } | 488 } |
| 478 | 489 |
| 479 static void unsignedLongLongAttributeAttributeGetterCallback(v8::Local<v8::Strin
g>, const v8::PropertyCallbackInfo<v8::Value>& info) | 490 static void unsignedLongLongAttributeAttributeGetterCallback(v8::Local<v8::Strin
g>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 480 { | 491 { |
| 481 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 492 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 482 TestObjectPythonV8Internal::unsignedLongLongAttributeAttributeGetter(info); | 493 TestObjectPythonV8Internal::unsignedLongLongAttributeAttributeGetter(info); |
| 483 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 494 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 484 } | 495 } |
| 485 | 496 |
| 486 static void unsignedLongLongAttributeAttributeSetter(v8::Local<v8::Value> jsValu
e, const v8::PropertyCallbackInfo<void>& info) | 497 static void unsignedLongLongAttributeAttributeSetter(v8::Local<v8::Value> jsValu
e, const v8::PropertyCallbackInfo<void>& info) |
| 487 { | 498 { |
| 499 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedLongLo
ngAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 488 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 500 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 489 V8TRYCATCH_VOID(unsigned long long, cppValue, toUInt64(jsValue)); | 501 V8TRYCATCH_VOID(unsigned long long, cppValue, toUInt64(jsValue)); |
| 490 imp->setUnsignedLongLongAttribute(cppValue); | 502 imp->setUnsignedLongLongAttribute(cppValue); |
| 491 } | 503 } |
| 492 | 504 |
| 493 static void unsignedLongLongAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 505 static void unsignedLongLongAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 494 { | 506 { |
| 495 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 507 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 496 TestObjectPythonV8Internal::unsignedLongLongAttributeAttributeSetter(jsValue
, info); | 508 TestObjectPythonV8Internal::unsignedLongLongAttributeAttributeSetter(jsValue
, info); |
| 497 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 509 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 498 } | 510 } |
| 499 | 511 |
| 500 static void unsignedShortAttributeAttributeGetter(const v8::PropertyCallbackInfo
<v8::Value>& info) | 512 static void unsignedShortAttributeAttributeGetter(const v8::PropertyCallbackInfo
<v8::Value>& info) |
| 501 { | 513 { |
| 502 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 514 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 503 v8SetReturnValueUnsigned(info, imp->unsignedShortAttribute()); | 515 v8SetReturnValueUnsigned(info, imp->unsignedShortAttribute()); |
| 504 } | 516 } |
| 505 | 517 |
| 506 static void unsignedShortAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 518 static void unsignedShortAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
| 507 { | 519 { |
| 508 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 520 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 509 TestObjectPythonV8Internal::unsignedShortAttributeAttributeGetter(info); | 521 TestObjectPythonV8Internal::unsignedShortAttributeAttributeGetter(info); |
| 510 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 522 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 511 } | 523 } |
| 512 | 524 |
| 513 static void unsignedShortAttributeAttributeSetter(v8::Local<v8::Value> jsValue,
const v8::PropertyCallbackInfo<void>& info) | 525 static void unsignedShortAttributeAttributeSetter(v8::Local<v8::Value> jsValue,
const v8::PropertyCallbackInfo<void>& info) |
| 514 { | 526 { |
| 527 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedShortA
ttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 515 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 528 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 516 V8TRYCATCH_VOID(unsigned, cppValue, toUInt16(jsValue)); | 529 V8TRYCATCH_VOID(unsigned, cppValue, toUInt16(jsValue)); |
| 517 imp->setUnsignedShortAttribute(cppValue); | 530 imp->setUnsignedShortAttribute(cppValue); |
| 518 } | 531 } |
| 519 | 532 |
| 520 static void unsignedShortAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 533 static void unsignedShortAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 521 { | 534 { |
| 522 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 535 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 523 TestObjectPythonV8Internal::unsignedShortAttributeAttributeSetter(jsValue, i
nfo); | 536 TestObjectPythonV8Internal::unsignedShortAttributeAttributeSetter(jsValue, i
nfo); |
| 524 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 537 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 525 } | 538 } |
| 526 | 539 |
| 527 static void cssAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value
>& info) | 540 static void cssAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value
>& info) |
| 528 { | 541 { |
| 529 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 542 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 530 v8SetReturnValueInt(info, imp->cssAttribute()); | 543 v8SetReturnValueInt(info, imp->cssAttribute()); |
| 531 } | 544 } |
| 532 | 545 |
| 533 static void cssAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8:
:PropertyCallbackInfo<v8::Value>& info) | 546 static void cssAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8:
:PropertyCallbackInfo<v8::Value>& info) |
| 534 { | 547 { |
| 535 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 548 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 536 TestObjectPythonV8Internal::cssAttributeAttributeGetter(info); | 549 TestObjectPythonV8Internal::cssAttributeAttributeGetter(info); |
| 537 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 550 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 538 } | 551 } |
| 539 | 552 |
| 540 static void cssAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::
PropertyCallbackInfo<void>& info) | 553 static void cssAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::
PropertyCallbackInfo<void>& info) |
| 541 { | 554 { |
| 555 ExceptionState exceptionState(ExceptionState::SetterContext, "cssAttribute",
"TestObjectPython", info.Holder(), info.GetIsolate()); |
| 542 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 556 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 543 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); | 557 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
| 544 imp->setCSSAttribute(cppValue); | 558 imp->setCSSAttribute(cppValue); |
| 545 } | 559 } |
| 546 | 560 |
| 547 static void cssAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local
<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 561 static void cssAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local
<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 548 { | 562 { |
| 549 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 563 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 550 TestObjectPythonV8Internal::cssAttributeAttributeSetter(jsValue, info); | 564 TestObjectPythonV8Internal::cssAttributeAttributeSetter(jsValue, info); |
| 551 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 565 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 552 } | 566 } |
| 553 | 567 |
| 554 static void imeAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value
>& info) | 568 static void imeAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value
>& info) |
| 555 { | 569 { |
| 556 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 570 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 557 v8SetReturnValueInt(info, imp->imeAttribute()); | 571 v8SetReturnValueInt(info, imp->imeAttribute()); |
| 558 } | 572 } |
| 559 | 573 |
| 560 static void imeAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8:
:PropertyCallbackInfo<v8::Value>& info) | 574 static void imeAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8:
:PropertyCallbackInfo<v8::Value>& info) |
| 561 { | 575 { |
| 562 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 576 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 563 TestObjectPythonV8Internal::imeAttributeAttributeGetter(info); | 577 TestObjectPythonV8Internal::imeAttributeAttributeGetter(info); |
| 564 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 578 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 565 } | 579 } |
| 566 | 580 |
| 567 static void imeAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::
PropertyCallbackInfo<void>& info) | 581 static void imeAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::
PropertyCallbackInfo<void>& info) |
| 568 { | 582 { |
| 583 ExceptionState exceptionState(ExceptionState::SetterContext, "imeAttribute",
"TestObjectPython", info.Holder(), info.GetIsolate()); |
| 569 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 584 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 570 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); | 585 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
| 571 imp->setIMEAttribute(cppValue); | 586 imp->setIMEAttribute(cppValue); |
| 572 } | 587 } |
| 573 | 588 |
| 574 static void imeAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local
<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 589 static void imeAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local
<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 575 { | 590 { |
| 576 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 591 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 577 TestObjectPythonV8Internal::imeAttributeAttributeSetter(jsValue, info); | 592 TestObjectPythonV8Internal::imeAttributeAttributeSetter(jsValue, info); |
| 578 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 593 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 579 } | 594 } |
| 580 | 595 |
| 581 static void svgAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value
>& info) | 596 static void svgAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value
>& info) |
| 582 { | 597 { |
| 583 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 598 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 584 v8SetReturnValueInt(info, imp->svgAttribute()); | 599 v8SetReturnValueInt(info, imp->svgAttribute()); |
| 585 } | 600 } |
| 586 | 601 |
| 587 static void svgAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8:
:PropertyCallbackInfo<v8::Value>& info) | 602 static void svgAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8:
:PropertyCallbackInfo<v8::Value>& info) |
| 588 { | 603 { |
| 589 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 604 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 590 TestObjectPythonV8Internal::svgAttributeAttributeGetter(info); | 605 TestObjectPythonV8Internal::svgAttributeAttributeGetter(info); |
| 591 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 606 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 592 } | 607 } |
| 593 | 608 |
| 594 static void svgAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::
PropertyCallbackInfo<void>& info) | 609 static void svgAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::
PropertyCallbackInfo<void>& info) |
| 595 { | 610 { |
| 611 ExceptionState exceptionState(ExceptionState::SetterContext, "svgAttribute",
"TestObjectPython", info.Holder(), info.GetIsolate()); |
| 596 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 612 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 597 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); | 613 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
| 598 imp->setSVGAttribute(cppValue); | 614 imp->setSVGAttribute(cppValue); |
| 599 } | 615 } |
| 600 | 616 |
| 601 static void svgAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local
<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 617 static void svgAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local
<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 602 { | 618 { |
| 603 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 619 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 604 TestObjectPythonV8Internal::svgAttributeAttributeSetter(jsValue, info); | 620 TestObjectPythonV8Internal::svgAttributeAttributeSetter(jsValue, info); |
| 605 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 621 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 606 } | 622 } |
| 607 | 623 |
| 608 static void xmlAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value
>& info) | 624 static void xmlAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value
>& info) |
| 609 { | 625 { |
| 610 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 626 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 611 v8SetReturnValueInt(info, imp->xmlAttribute()); | 627 v8SetReturnValueInt(info, imp->xmlAttribute()); |
| 612 } | 628 } |
| 613 | 629 |
| 614 static void xmlAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8:
:PropertyCallbackInfo<v8::Value>& info) | 630 static void xmlAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8:
:PropertyCallbackInfo<v8::Value>& info) |
| 615 { | 631 { |
| 616 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 632 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 617 TestObjectPythonV8Internal::xmlAttributeAttributeGetter(info); | 633 TestObjectPythonV8Internal::xmlAttributeAttributeGetter(info); |
| 618 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 634 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 619 } | 635 } |
| 620 | 636 |
| 621 static void xmlAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::
PropertyCallbackInfo<void>& info) | 637 static void xmlAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::
PropertyCallbackInfo<void>& info) |
| 622 { | 638 { |
| 639 ExceptionState exceptionState(ExceptionState::SetterContext, "xmlAttribute",
"TestObjectPython", info.Holder(), info.GetIsolate()); |
| 623 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 640 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 624 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); | 641 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
| 625 imp->setXMLAttribute(cppValue); | 642 imp->setXMLAttribute(cppValue); |
| 626 } | 643 } |
| 627 | 644 |
| 628 static void xmlAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local
<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 645 static void xmlAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local
<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 629 { | 646 { |
| 630 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 647 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 631 TestObjectPythonV8Internal::xmlAttributeAttributeSetter(jsValue, info); | 648 TestObjectPythonV8Internal::xmlAttributeAttributeSetter(jsValue, info); |
| 632 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 649 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 633 } | 650 } |
| 634 | 651 |
| 635 static void nodeFilterAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) | 652 static void nodeFilterAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) |
| 636 { | 653 { |
| 637 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 654 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 638 v8SetReturnValueFast(info, imp->nodeFilterAttribute(), imp); | 655 v8SetReturnValueFast(info, imp->nodeFilterAttribute(), imp); |
| 639 } | 656 } |
| 640 | 657 |
| 641 static void nodeFilterAttributeAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) | 658 static void nodeFilterAttributeAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) |
| 642 { | 659 { |
| 643 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 660 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 644 TestObjectPythonV8Internal::nodeFilterAttributeAttributeGetter(info); | 661 TestObjectPythonV8Internal::nodeFilterAttributeAttributeGetter(info); |
| 645 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 662 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 646 } | 663 } |
| 647 | 664 |
| 648 static void nodeFilterAttributeAttributeSetter(v8::Local<v8::Value> jsValue, con
st v8::PropertyCallbackInfo<void>& info) | 665 static void nodeFilterAttributeAttributeSetter(v8::Local<v8::Value> jsValue, con
st v8::PropertyCallbackInfo<void>& info) |
| 649 { | 666 { |
| 667 ExceptionState exceptionState(ExceptionState::SetterContext, "nodeFilterAttr
ibute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 650 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 668 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 651 V8TRYCATCH_VOID(RefPtr<NodeFilter>, cppValue, toNodeFilter(jsValue, info.Get
Isolate())); | 669 V8TRYCATCH_VOID(RefPtr<NodeFilter>, cppValue, toNodeFilter(jsValue, info.Get
Isolate())); |
| 652 imp->setNodeFilterAttribute(WTF::getPtr(cppValue)); | 670 imp->setNodeFilterAttribute(WTF::getPtr(cppValue)); |
| 653 } | 671 } |
| 654 | 672 |
| 655 static void nodeFilterAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 673 static void nodeFilterAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 656 { | 674 { |
| 657 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 675 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 658 TestObjectPythonV8Internal::nodeFilterAttributeAttributeSetter(jsValue, info
); | 676 TestObjectPythonV8Internal::nodeFilterAttributeAttributeSetter(jsValue, info
); |
| 659 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 677 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 660 } | 678 } |
| 661 | 679 |
| 662 static void serializedScriptValueAttributeAttributeGetter(const v8::PropertyCall
backInfo<v8::Value>& info) | 680 static void serializedScriptValueAttributeAttributeGetter(const v8::PropertyCall
backInfo<v8::Value>& info) |
| 663 { | 681 { |
| 664 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 682 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 665 v8SetReturnValue(info, imp->serializedScriptValueAttribute() ? imp->serializ
edScriptValueAttribute()->deserialize() : v8::Handle<v8::Value>(v8::Null(info.Ge
tIsolate()))); | 683 v8SetReturnValue(info, imp->serializedScriptValueAttribute() ? imp->serializ
edScriptValueAttribute()->deserialize() : v8::Handle<v8::Value>(v8::Null(info.Ge
tIsolate()))); |
| 666 } | 684 } |
| 667 | 685 |
| 668 static void serializedScriptValueAttributeAttributeGetterCallback(v8::Local<v8::
String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 686 static void serializedScriptValueAttributeAttributeGetterCallback(v8::Local<v8::
String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 669 { | 687 { |
| 670 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 688 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 671 TestObjectPythonV8Internal::serializedScriptValueAttributeAttributeGetter(in
fo); | 689 TestObjectPythonV8Internal::serializedScriptValueAttributeAttributeGetter(in
fo); |
| 672 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 690 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 673 } | 691 } |
| 674 | 692 |
| 675 static void serializedScriptValueAttributeAttributeSetter(v8::Local<v8::Value> j
sValue, const v8::PropertyCallbackInfo<void>& info) | 693 static void serializedScriptValueAttributeAttributeSetter(v8::Local<v8::Value> j
sValue, const v8::PropertyCallbackInfo<void>& info) |
| 676 { | 694 { |
| 695 ExceptionState exceptionState(ExceptionState::SetterContext, "serializedScri
ptValueAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 677 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 696 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 678 V8TRYCATCH_VOID(RefPtr<SerializedScriptValue>, cppValue, SerializedScriptVal
ue::create(jsValue, info.GetIsolate())); | 697 V8TRYCATCH_VOID(RefPtr<SerializedScriptValue>, cppValue, SerializedScriptVal
ue::create(jsValue, info.GetIsolate())); |
| 679 imp->setSerializedScriptValueAttribute(WTF::getPtr(cppValue)); | 698 imp->setSerializedScriptValueAttribute(WTF::getPtr(cppValue)); |
| 680 } | 699 } |
| 681 | 700 |
| 682 static void serializedScriptValueAttributeAttributeSetterCallback(v8::Local<v8::
String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& inf
o) | 701 static void serializedScriptValueAttributeAttributeSetterCallback(v8::Local<v8::
String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& inf
o) |
| 683 { | 702 { |
| 684 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 703 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 685 TestObjectPythonV8Internal::serializedScriptValueAttributeAttributeSetter(js
Value, info); | 704 TestObjectPythonV8Internal::serializedScriptValueAttributeAttributeSetter(js
Value, info); |
| 686 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 705 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 687 } | 706 } |
| 688 | 707 |
| 689 static void anyAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value
>& info) | 708 static void anyAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value
>& info) |
| 690 { | 709 { |
| 691 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 710 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 692 v8SetReturnValue(info, imp->anyAttribute().v8Value()); | 711 v8SetReturnValue(info, imp->anyAttribute().v8Value()); |
| 693 } | 712 } |
| 694 | 713 |
| 695 static void anyAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8:
:PropertyCallbackInfo<v8::Value>& info) | 714 static void anyAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8:
:PropertyCallbackInfo<v8::Value>& info) |
| 696 { | 715 { |
| 697 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 716 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 698 TestObjectPythonV8Internal::anyAttributeAttributeGetter(info); | 717 TestObjectPythonV8Internal::anyAttributeAttributeGetter(info); |
| 699 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 718 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 700 } | 719 } |
| 701 | 720 |
| 702 static void anyAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::
PropertyCallbackInfo<void>& info) | 721 static void anyAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::
PropertyCallbackInfo<void>& info) |
| 703 { | 722 { |
| 723 ExceptionState exceptionState(ExceptionState::SetterContext, "anyAttribute",
"TestObjectPython", info.Holder(), info.GetIsolate()); |
| 704 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 724 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 705 V8TRYCATCH_VOID(ScriptValue, cppValue, ScriptValue(jsValue, info.GetIsolate(
))); | 725 V8TRYCATCH_VOID(ScriptValue, cppValue, ScriptValue(jsValue, info.GetIsolate(
))); |
| 706 imp->setAnyAttribute(cppValue); | 726 imp->setAnyAttribute(cppValue); |
| 707 } | 727 } |
| 708 | 728 |
| 709 static void anyAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local
<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 729 static void anyAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local
<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 710 { | 730 { |
| 711 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 731 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 712 TestObjectPythonV8Internal::anyAttributeAttributeSetter(jsValue, info); | 732 TestObjectPythonV8Internal::anyAttributeAttributeSetter(jsValue, info); |
| 713 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 733 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 714 } | 734 } |
| 715 | 735 |
| 716 static void promiseAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::V
alue>& info) | 736 static void promiseAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::V
alue>& info) |
| 717 { | 737 { |
| 718 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 738 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 719 v8SetReturnValue(info, imp->promiseAttribute().v8Value()); | 739 v8SetReturnValue(info, imp->promiseAttribute().v8Value()); |
| 720 } | 740 } |
| 721 | 741 |
| 722 static void promiseAttributeAttributeGetterCallback(v8::Local<v8::String>, const
v8::PropertyCallbackInfo<v8::Value>& info) | 742 static void promiseAttributeAttributeGetterCallback(v8::Local<v8::String>, const
v8::PropertyCallbackInfo<v8::Value>& info) |
| 723 { | 743 { |
| 724 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 744 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 725 TestObjectPythonV8Internal::promiseAttributeAttributeGetter(info); | 745 TestObjectPythonV8Internal::promiseAttributeAttributeGetter(info); |
| 726 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 746 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 727 } | 747 } |
| 728 | 748 |
| 729 static void promiseAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const
v8::PropertyCallbackInfo<void>& info) | 749 static void promiseAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const
v8::PropertyCallbackInfo<void>& info) |
| 730 { | 750 { |
| 751 ExceptionState exceptionState(ExceptionState::SetterContext, "promiseAttribu
te", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 731 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 752 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 732 V8TRYCATCH_VOID(ScriptPromise, cppValue, ScriptPromise(jsValue)); | 753 V8TRYCATCH_VOID(ScriptPromise, cppValue, ScriptPromise(jsValue)); |
| 733 imp->setPromiseAttribute(cppValue); | 754 imp->setPromiseAttribute(cppValue); |
| 734 } | 755 } |
| 735 | 756 |
| 736 static void promiseAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::L
ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 757 static void promiseAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::L
ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 737 { | 758 { |
| 738 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 759 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 739 TestObjectPythonV8Internal::promiseAttributeAttributeSetter(jsValue, info); | 760 TestObjectPythonV8Internal::promiseAttributeAttributeSetter(jsValue, info); |
| 740 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 761 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 741 } | 762 } |
| 742 | 763 |
| 743 static void documentAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::
Value>& info) | 764 static void documentAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::
Value>& info) |
| 744 { | 765 { |
| 745 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 766 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 746 v8SetReturnValueFast(info, imp->documentAttribute(), imp); | 767 v8SetReturnValueFast(info, imp->documentAttribute(), imp); |
| 747 } | 768 } |
| 748 | 769 |
| 749 static void documentAttributeAttributeGetterCallback(v8::Local<v8::String>, cons
t v8::PropertyCallbackInfo<v8::Value>& info) | 770 static void documentAttributeAttributeGetterCallback(v8::Local<v8::String>, cons
t v8::PropertyCallbackInfo<v8::Value>& info) |
| 750 { | 771 { |
| 751 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 772 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 752 TestObjectPythonV8Internal::documentAttributeAttributeGetter(info); | 773 TestObjectPythonV8Internal::documentAttributeAttributeGetter(info); |
| 753 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 774 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 754 } | 775 } |
| 755 | 776 |
| 756 static void documentAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const
v8::PropertyCallbackInfo<void>& info) | 777 static void documentAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const
v8::PropertyCallbackInfo<void>& info) |
| 757 { | 778 { |
| 779 ExceptionState exceptionState(ExceptionState::SetterContext, "documentAttrib
ute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 758 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 780 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 759 V8TRYCATCH_VOID(Document*, cppValue, V8Document::hasInstance(jsValue, info.G
etIsolate(), worldType(info.GetIsolate())) ? V8Document::toNative(v8::Handle<v8:
:Object>::Cast(jsValue)) : 0); | 781 V8TRYCATCH_VOID(Document*, cppValue, V8Document::hasInstance(jsValue, info.G
etIsolate(), worldType(info.GetIsolate())) ? V8Document::toNative(v8::Handle<v8:
:Object>::Cast(jsValue)) : 0); |
| 760 imp->setDocumentAttribute(WTF::getPtr(cppValue)); | 782 imp->setDocumentAttribute(WTF::getPtr(cppValue)); |
| 761 } | 783 } |
| 762 | 784 |
| 763 static void documentAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::
Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 785 static void documentAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::
Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 764 { | 786 { |
| 765 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 787 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 766 TestObjectPythonV8Internal::documentAttributeAttributeSetter(jsValue, info); | 788 TestObjectPythonV8Internal::documentAttributeAttributeSetter(jsValue, info); |
| 767 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 789 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 768 } | 790 } |
| 769 | 791 |
| 770 static void documentFragmentAttributeAttributeGetter(const v8::PropertyCallbackI
nfo<v8::Value>& info) | 792 static void documentFragmentAttributeAttributeGetter(const v8::PropertyCallbackI
nfo<v8::Value>& info) |
| 771 { | 793 { |
| 772 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 794 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 773 v8SetReturnValueFast(info, imp->documentFragmentAttribute(), imp); | 795 v8SetReturnValueFast(info, imp->documentFragmentAttribute(), imp); |
| 774 } | 796 } |
| 775 | 797 |
| 776 static void documentFragmentAttributeAttributeGetterCallback(v8::Local<v8::Strin
g>, const v8::PropertyCallbackInfo<v8::Value>& info) | 798 static void documentFragmentAttributeAttributeGetterCallback(v8::Local<v8::Strin
g>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 777 { | 799 { |
| 778 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 800 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 779 TestObjectPythonV8Internal::documentFragmentAttributeAttributeGetter(info); | 801 TestObjectPythonV8Internal::documentFragmentAttributeAttributeGetter(info); |
| 780 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 802 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 781 } | 803 } |
| 782 | 804 |
| 783 static void documentFragmentAttributeAttributeSetter(v8::Local<v8::Value> jsValu
e, const v8::PropertyCallbackInfo<void>& info) | 805 static void documentFragmentAttributeAttributeSetter(v8::Local<v8::Value> jsValu
e, const v8::PropertyCallbackInfo<void>& info) |
| 784 { | 806 { |
| 807 ExceptionState exceptionState(ExceptionState::SetterContext, "documentFragme
ntAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 785 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 808 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 786 V8TRYCATCH_VOID(DocumentFragment*, cppValue, V8DocumentFragment::hasInstance
(jsValue, info.GetIsolate(), worldType(info.GetIsolate())) ? V8DocumentFragment:
:toNative(v8::Handle<v8::Object>::Cast(jsValue)) : 0); | 809 V8TRYCATCH_VOID(DocumentFragment*, cppValue, V8DocumentFragment::hasInstance
(jsValue, info.GetIsolate(), worldType(info.GetIsolate())) ? V8DocumentFragment:
:toNative(v8::Handle<v8::Object>::Cast(jsValue)) : 0); |
| 787 imp->setDocumentFragmentAttribute(WTF::getPtr(cppValue)); | 810 imp->setDocumentFragmentAttribute(WTF::getPtr(cppValue)); |
| 788 } | 811 } |
| 789 | 812 |
| 790 static void documentFragmentAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 813 static void documentFragmentAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 791 { | 814 { |
| 792 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 815 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 793 TestObjectPythonV8Internal::documentFragmentAttributeAttributeSetter(jsValue
, info); | 816 TestObjectPythonV8Internal::documentFragmentAttributeAttributeSetter(jsValue
, info); |
| 794 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 817 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 795 } | 818 } |
| 796 | 819 |
| 797 static void documentTypeAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) | 820 static void documentTypeAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) |
| 798 { | 821 { |
| 799 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 822 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 800 v8SetReturnValueFast(info, imp->documentTypeAttribute(), imp); | 823 v8SetReturnValueFast(info, imp->documentTypeAttribute(), imp); |
| 801 } | 824 } |
| 802 | 825 |
| 803 static void documentTypeAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 826 static void documentTypeAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
| 804 { | 827 { |
| 805 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 828 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 806 TestObjectPythonV8Internal::documentTypeAttributeAttributeGetter(info); | 829 TestObjectPythonV8Internal::documentTypeAttributeAttributeGetter(info); |
| 807 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 830 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 808 } | 831 } |
| 809 | 832 |
| 810 static void documentTypeAttributeAttributeSetter(v8::Local<v8::Value> jsValue, c
onst v8::PropertyCallbackInfo<void>& info) | 833 static void documentTypeAttributeAttributeSetter(v8::Local<v8::Value> jsValue, c
onst v8::PropertyCallbackInfo<void>& info) |
| 811 { | 834 { |
| 835 ExceptionState exceptionState(ExceptionState::SetterContext, "documentTypeAt
tribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 812 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 836 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 813 V8TRYCATCH_VOID(DocumentType*, cppValue, V8DocumentType::hasInstance(jsValue
, info.GetIsolate(), worldType(info.GetIsolate())) ? V8DocumentType::toNative(v8
::Handle<v8::Object>::Cast(jsValue)) : 0); | 837 V8TRYCATCH_VOID(DocumentType*, cppValue, V8DocumentType::hasInstance(jsValue
, info.GetIsolate(), worldType(info.GetIsolate())) ? V8DocumentType::toNative(v8
::Handle<v8::Object>::Cast(jsValue)) : 0); |
| 814 imp->setDocumentTypeAttribute(WTF::getPtr(cppValue)); | 838 imp->setDocumentTypeAttribute(WTF::getPtr(cppValue)); |
| 815 } | 839 } |
| 816 | 840 |
| 817 static void documentTypeAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 841 static void documentTypeAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 818 { | 842 { |
| 819 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 843 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 820 TestObjectPythonV8Internal::documentTypeAttributeAttributeSetter(jsValue, in
fo); | 844 TestObjectPythonV8Internal::documentTypeAttributeAttributeSetter(jsValue, in
fo); |
| 821 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 845 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 822 } | 846 } |
| 823 | 847 |
| 824 static void elementAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::V
alue>& info) | 848 static void elementAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::V
alue>& info) |
| 825 { | 849 { |
| 826 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 850 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 827 v8SetReturnValueFast(info, imp->elementAttribute(), imp); | 851 v8SetReturnValueFast(info, imp->elementAttribute(), imp); |
| 828 } | 852 } |
| 829 | 853 |
| 830 static void elementAttributeAttributeGetterCallback(v8::Local<v8::String>, const
v8::PropertyCallbackInfo<v8::Value>& info) | 854 static void elementAttributeAttributeGetterCallback(v8::Local<v8::String>, const
v8::PropertyCallbackInfo<v8::Value>& info) |
| 831 { | 855 { |
| 832 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 856 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 833 TestObjectPythonV8Internal::elementAttributeAttributeGetter(info); | 857 TestObjectPythonV8Internal::elementAttributeAttributeGetter(info); |
| 834 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 858 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 835 } | 859 } |
| 836 | 860 |
| 837 static void elementAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const
v8::PropertyCallbackInfo<void>& info) | 861 static void elementAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const
v8::PropertyCallbackInfo<void>& info) |
| 838 { | 862 { |
| 863 ExceptionState exceptionState(ExceptionState::SetterContext, "elementAttribu
te", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 839 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 864 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 840 V8TRYCATCH_VOID(Element*, cppValue, V8Element::hasInstance(jsValue, info.Get
Isolate(), worldType(info.GetIsolate())) ? V8Element::toNative(v8::Handle<v8::Ob
ject>::Cast(jsValue)) : 0); | 865 V8TRYCATCH_VOID(Element*, cppValue, V8Element::hasInstance(jsValue, info.Get
Isolate(), worldType(info.GetIsolate())) ? V8Element::toNative(v8::Handle<v8::Ob
ject>::Cast(jsValue)) : 0); |
| 841 imp->setElementAttribute(WTF::getPtr(cppValue)); | 866 imp->setElementAttribute(WTF::getPtr(cppValue)); |
| 842 } | 867 } |
| 843 | 868 |
| 844 static void elementAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::L
ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 869 static void elementAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::L
ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 845 { | 870 { |
| 846 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 871 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 847 TestObjectPythonV8Internal::elementAttributeAttributeSetter(jsValue, info); | 872 TestObjectPythonV8Internal::elementAttributeAttributeSetter(jsValue, info); |
| 848 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 873 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 849 } | 874 } |
| 850 | 875 |
| 851 static void entityAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va
lue>& info) | 876 static void entityAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va
lue>& info) |
| 852 { | 877 { |
| 853 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 878 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 854 v8SetReturnValueFast(info, imp->entityAttribute(), imp); | 879 v8SetReturnValueFast(info, imp->entityAttribute(), imp); |
| 855 } | 880 } |
| 856 | 881 |
| 857 static void entityAttributeAttributeGetterCallback(v8::Local<v8::String>, const
v8::PropertyCallbackInfo<v8::Value>& info) | 882 static void entityAttributeAttributeGetterCallback(v8::Local<v8::String>, const
v8::PropertyCallbackInfo<v8::Value>& info) |
| 858 { | 883 { |
| 859 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 884 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 860 TestObjectPythonV8Internal::entityAttributeAttributeGetter(info); | 885 TestObjectPythonV8Internal::entityAttributeAttributeGetter(info); |
| 861 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 886 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 862 } | 887 } |
| 863 | 888 |
| 864 static void entityAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v
8::PropertyCallbackInfo<void>& info) | 889 static void entityAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v
8::PropertyCallbackInfo<void>& info) |
| 865 { | 890 { |
| 891 ExceptionState exceptionState(ExceptionState::SetterContext, "entityAttribut
e", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 866 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 892 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 867 V8TRYCATCH_VOID(Entity*, cppValue, V8Entity::hasInstance(jsValue, info.GetIs
olate(), worldType(info.GetIsolate())) ? V8Entity::toNative(v8::Handle<v8::Objec
t>::Cast(jsValue)) : 0); | 893 V8TRYCATCH_VOID(Entity*, cppValue, V8Entity::hasInstance(jsValue, info.GetIs
olate(), worldType(info.GetIsolate())) ? V8Entity::toNative(v8::Handle<v8::Objec
t>::Cast(jsValue)) : 0); |
| 868 imp->setEntityAttribute(WTF::getPtr(cppValue)); | 894 imp->setEntityAttribute(WTF::getPtr(cppValue)); |
| 869 } | 895 } |
| 870 | 896 |
| 871 static void entityAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo
cal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 897 static void entityAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo
cal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 872 { | 898 { |
| 873 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 899 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 874 TestObjectPythonV8Internal::entityAttributeAttributeSetter(jsValue, info); | 900 TestObjectPythonV8Internal::entityAttributeAttributeSetter(jsValue, info); |
| 875 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 901 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 876 } | 902 } |
| 877 | 903 |
| 878 static void nodeAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu
e>& info) | 904 static void nodeAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu
e>& info) |
| 879 { | 905 { |
| 880 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 906 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 881 v8SetReturnValueFast(info, imp->nodeAttribute(), imp); | 907 v8SetReturnValueFast(info, imp->nodeAttribute(), imp); |
| 882 } | 908 } |
| 883 | 909 |
| 884 static void nodeAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8
::PropertyCallbackInfo<v8::Value>& info) | 910 static void nodeAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8
::PropertyCallbackInfo<v8::Value>& info) |
| 885 { | 911 { |
| 886 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 912 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 887 TestObjectPythonV8Internal::nodeAttributeAttributeGetter(info); | 913 TestObjectPythonV8Internal::nodeAttributeAttributeGetter(info); |
| 888 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 914 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 889 } | 915 } |
| 890 | 916 |
| 891 static void nodeAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8:
:PropertyCallbackInfo<void>& info) | 917 static void nodeAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8:
:PropertyCallbackInfo<void>& info) |
| 892 { | 918 { |
| 919 ExceptionState exceptionState(ExceptionState::SetterContext, "nodeAttribute"
, "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 893 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 920 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 894 V8TRYCATCH_VOID(Node*, cppValue, V8Node::hasInstance(jsValue, info.GetIsolat
e(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Ca
st(jsValue)) : 0); | 921 V8TRYCATCH_VOID(Node*, cppValue, V8Node::hasInstance(jsValue, info.GetIsolat
e(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Ca
st(jsValue)) : 0); |
| 895 imp->setNodeAttribute(WTF::getPtr(cppValue)); | 922 imp->setNodeAttribute(WTF::getPtr(cppValue)); |
| 896 } | 923 } |
| 897 | 924 |
| 898 static void nodeAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca
l<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 925 static void nodeAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca
l<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 899 { | 926 { |
| 900 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 927 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 901 TestObjectPythonV8Internal::nodeAttributeAttributeSetter(jsValue, info); | 928 TestObjectPythonV8Internal::nodeAttributeAttributeSetter(jsValue, info); |
| 902 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 929 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 903 } | 930 } |
| 904 | 931 |
| 905 static void shadowRootAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) | 932 static void shadowRootAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) |
| 906 { | 933 { |
| 907 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 934 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 908 v8SetReturnValueFast(info, imp->shadowRootAttribute(), imp); | 935 v8SetReturnValueFast(info, imp->shadowRootAttribute(), imp); |
| 909 } | 936 } |
| 910 | 937 |
| 911 static void shadowRootAttributeAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) | 938 static void shadowRootAttributeAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) |
| 912 { | 939 { |
| 913 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 940 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 914 TestObjectPythonV8Internal::shadowRootAttributeAttributeGetter(info); | 941 TestObjectPythonV8Internal::shadowRootAttributeAttributeGetter(info); |
| 915 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 942 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 916 } | 943 } |
| 917 | 944 |
| 918 static void shadowRootAttributeAttributeSetter(v8::Local<v8::Value> jsValue, con
st v8::PropertyCallbackInfo<void>& info) | 945 static void shadowRootAttributeAttributeSetter(v8::Local<v8::Value> jsValue, con
st v8::PropertyCallbackInfo<void>& info) |
| 919 { | 946 { |
| 947 ExceptionState exceptionState(ExceptionState::SetterContext, "shadowRootAttr
ibute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 920 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 948 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 921 V8TRYCATCH_VOID(ShadowRoot*, cppValue, V8ShadowRoot::hasInstance(jsValue, in
fo.GetIsolate(), worldType(info.GetIsolate())) ? V8ShadowRoot::toNative(v8::Hand
le<v8::Object>::Cast(jsValue)) : 0); | 949 V8TRYCATCH_VOID(ShadowRoot*, cppValue, V8ShadowRoot::hasInstance(jsValue, in
fo.GetIsolate(), worldType(info.GetIsolate())) ? V8ShadowRoot::toNative(v8::Hand
le<v8::Object>::Cast(jsValue)) : 0); |
| 922 imp->setShadowRootAttribute(WTF::getPtr(cppValue)); | 950 imp->setShadowRootAttribute(WTF::getPtr(cppValue)); |
| 923 } | 951 } |
| 924 | 952 |
| 925 static void shadowRootAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 953 static void shadowRootAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 926 { | 954 { |
| 927 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 955 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 928 TestObjectPythonV8Internal::shadowRootAttributeAttributeSetter(jsValue, info
); | 956 TestObjectPythonV8Internal::shadowRootAttributeAttributeSetter(jsValue, info
); |
| 929 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 957 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 930 } | 958 } |
| 931 | 959 |
| 932 static void arrayBufferAttributeAttributeGetter(const v8::PropertyCallbackInfo<v
8::Value>& info) | 960 static void arrayBufferAttributeAttributeGetter(const v8::PropertyCallbackInfo<v
8::Value>& info) |
| 933 { | 961 { |
| 934 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 962 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 935 v8SetReturnValueFast(info, imp->arrayBufferAttribute(), imp); | 963 v8SetReturnValueFast(info, imp->arrayBufferAttribute(), imp); |
| 936 } | 964 } |
| 937 | 965 |
| 938 static void arrayBufferAttributeAttributeGetterCallback(v8::Local<v8::String>, c
onst v8::PropertyCallbackInfo<v8::Value>& info) | 966 static void arrayBufferAttributeAttributeGetterCallback(v8::Local<v8::String>, c
onst v8::PropertyCallbackInfo<v8::Value>& info) |
| 939 { | 967 { |
| 940 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 968 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 941 TestObjectPythonV8Internal::arrayBufferAttributeAttributeGetter(info); | 969 TestObjectPythonV8Internal::arrayBufferAttributeAttributeGetter(info); |
| 942 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 970 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 943 } | 971 } |
| 944 | 972 |
| 945 static void arrayBufferAttributeAttributeSetter(v8::Local<v8::Value> jsValue, co
nst v8::PropertyCallbackInfo<void>& info) | 973 static void arrayBufferAttributeAttributeSetter(v8::Local<v8::Value> jsValue, co
nst v8::PropertyCallbackInfo<void>& info) |
| 946 { | 974 { |
| 975 ExceptionState exceptionState(ExceptionState::SetterContext, "arrayBufferAtt
ribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 947 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 976 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 948 V8TRYCATCH_VOID(ArrayBuffer*, cppValue, jsValue->IsArrayBuffer() ? V8ArrayBu
ffer::toNative(v8::Handle<v8::ArrayBuffer>::Cast(jsValue)) : 0); | 977 V8TRYCATCH_VOID(ArrayBuffer*, cppValue, jsValue->IsArrayBuffer() ? V8ArrayBu
ffer::toNative(v8::Handle<v8::ArrayBuffer>::Cast(jsValue)) : 0); |
| 949 imp->setArrayBufferAttribute(WTF::getPtr(cppValue)); | 978 imp->setArrayBufferAttribute(WTF::getPtr(cppValue)); |
| 950 } | 979 } |
| 951 | 980 |
| 952 static void arrayBufferAttributeAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 981 static void arrayBufferAttributeAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 953 { | 982 { |
| 954 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 983 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 955 TestObjectPythonV8Internal::arrayBufferAttributeAttributeSetter(jsValue, inf
o); | 984 TestObjectPythonV8Internal::arrayBufferAttributeAttributeSetter(jsValue, inf
o); |
| 956 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 985 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 957 } | 986 } |
| 958 | 987 |
| 959 static void float32ArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) | 988 static void float32ArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) |
| 960 { | 989 { |
| 961 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 990 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 962 v8SetReturnValueFast(info, imp->float32ArrayAttribute(), imp); | 991 v8SetReturnValueFast(info, imp->float32ArrayAttribute(), imp); |
| 963 } | 992 } |
| 964 | 993 |
| 965 static void float32ArrayAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 994 static void float32ArrayAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
| 966 { | 995 { |
| 967 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 996 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 968 TestObjectPythonV8Internal::float32ArrayAttributeAttributeGetter(info); | 997 TestObjectPythonV8Internal::float32ArrayAttributeAttributeGetter(info); |
| 969 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 998 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 970 } | 999 } |
| 971 | 1000 |
| 972 static void float32ArrayAttributeAttributeSetter(v8::Local<v8::Value> jsValue, c
onst v8::PropertyCallbackInfo<void>& info) | 1001 static void float32ArrayAttributeAttributeSetter(v8::Local<v8::Value> jsValue, c
onst v8::PropertyCallbackInfo<void>& info) |
| 973 { | 1002 { |
| 1003 ExceptionState exceptionState(ExceptionState::SetterContext, "float32ArrayAt
tribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 974 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1004 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 975 V8TRYCATCH_VOID(Float32Array*, cppValue, jsValue->IsFloat32Array() ? V8Float
32Array::toNative(v8::Handle<v8::Float32Array>::Cast(jsValue)) : 0); | 1005 V8TRYCATCH_VOID(Float32Array*, cppValue, jsValue->IsFloat32Array() ? V8Float
32Array::toNative(v8::Handle<v8::Float32Array>::Cast(jsValue)) : 0); |
| 976 imp->setFloat32ArrayAttribute(WTF::getPtr(cppValue)); | 1006 imp->setFloat32ArrayAttribute(WTF::getPtr(cppValue)); |
| 977 } | 1007 } |
| 978 | 1008 |
| 979 static void float32ArrayAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1009 static void float32ArrayAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 980 { | 1010 { |
| 981 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1011 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 982 TestObjectPythonV8Internal::float32ArrayAttributeAttributeSetter(jsValue, in
fo); | 1012 TestObjectPythonV8Internal::float32ArrayAttributeAttributeSetter(jsValue, in
fo); |
| 983 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1013 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 984 } | 1014 } |
| 985 | 1015 |
| 986 static void uint8ArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) | 1016 static void uint8ArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) |
| 987 { | 1017 { |
| 988 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1018 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 989 v8SetReturnValueFast(info, imp->uint8ArrayAttribute(), imp); | 1019 v8SetReturnValueFast(info, imp->uint8ArrayAttribute(), imp); |
| 990 } | 1020 } |
| 991 | 1021 |
| 992 static void uint8ArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) | 1022 static void uint8ArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) |
| 993 { | 1023 { |
| 994 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1024 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 995 TestObjectPythonV8Internal::uint8ArrayAttributeAttributeGetter(info); | 1025 TestObjectPythonV8Internal::uint8ArrayAttributeAttributeGetter(info); |
| 996 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1026 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 997 } | 1027 } |
| 998 | 1028 |
| 999 static void uint8ArrayAttributeAttributeSetter(v8::Local<v8::Value> jsValue, con
st v8::PropertyCallbackInfo<void>& info) | 1029 static void uint8ArrayAttributeAttributeSetter(v8::Local<v8::Value> jsValue, con
st v8::PropertyCallbackInfo<void>& info) |
| 1000 { | 1030 { |
| 1031 ExceptionState exceptionState(ExceptionState::SetterContext, "uint8ArrayAttr
ibute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 1001 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1032 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1002 V8TRYCATCH_VOID(Uint8Array*, cppValue, jsValue->IsUint8Array() ? V8Uint8Arra
y::toNative(v8::Handle<v8::Uint8Array>::Cast(jsValue)) : 0); | 1033 V8TRYCATCH_VOID(Uint8Array*, cppValue, jsValue->IsUint8Array() ? V8Uint8Arra
y::toNative(v8::Handle<v8::Uint8Array>::Cast(jsValue)) : 0); |
| 1003 imp->setUint8ArrayAttribute(WTF::getPtr(cppValue)); | 1034 imp->setUint8ArrayAttribute(WTF::getPtr(cppValue)); |
| 1004 } | 1035 } |
| 1005 | 1036 |
| 1006 static void uint8ArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1037 static void uint8ArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 1007 { | 1038 { |
| 1008 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1039 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 1009 TestObjectPythonV8Internal::uint8ArrayAttributeAttributeSetter(jsValue, info
); | 1040 TestObjectPythonV8Internal::uint8ArrayAttributeAttributeSetter(jsValue, info
); |
| 1010 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1041 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1011 } | 1042 } |
| 1012 | 1043 |
| 1013 static void testInterfaceEmptyAttributeAttributeGetter(const v8::PropertyCallbac
kInfo<v8::Value>& info) | 1044 static void testInterfaceEmptyAttributeAttributeGetter(const v8::PropertyCallbac
kInfo<v8::Value>& info) |
| 1014 { | 1045 { |
| 1015 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1046 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1016 v8SetReturnValueFast(info, imp->testInterfaceEmptyAttribute(), imp); | 1047 v8SetReturnValueFast(info, imp->testInterfaceEmptyAttribute(), imp); |
| 1017 } | 1048 } |
| 1018 | 1049 |
| 1019 static void testInterfaceEmptyAttributeAttributeGetterCallback(v8::Local<v8::Str
ing>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1050 static void testInterfaceEmptyAttributeAttributeGetterCallback(v8::Local<v8::Str
ing>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 1020 { | 1051 { |
| 1021 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1052 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1022 TestObjectPythonV8Internal::testInterfaceEmptyAttributeAttributeGetter(info)
; | 1053 TestObjectPythonV8Internal::testInterfaceEmptyAttributeAttributeGetter(info)
; |
| 1023 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1054 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1024 } | 1055 } |
| 1025 | 1056 |
| 1026 static void testInterfaceEmptyAttributeAttributeSetter(v8::Local<v8::Value> jsVa
lue, const v8::PropertyCallbackInfo<void>& info) | 1057 static void testInterfaceEmptyAttributeAttributeSetter(v8::Local<v8::Value> jsVa
lue, const v8::PropertyCallbackInfo<void>& info) |
| 1027 { | 1058 { |
| 1059 ExceptionState exceptionState(ExceptionState::SetterContext, "testInterfaceE
mptyAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 1028 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1060 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1029 V8TRYCATCH_VOID(TestInterfaceEmpty*, cppValue, V8TestInterfaceEmpty::hasInst
ance(jsValue, info.GetIsolate(), worldType(info.GetIsolate())) ? V8TestInterface
Empty::toNative(v8::Handle<v8::Object>::Cast(jsValue)) : 0); | 1061 V8TRYCATCH_VOID(TestInterfaceEmpty*, cppValue, V8TestInterfaceEmpty::hasInst
ance(jsValue, info.GetIsolate(), worldType(info.GetIsolate())) ? V8TestInterface
Empty::toNative(v8::Handle<v8::Object>::Cast(jsValue)) : 0); |
| 1030 imp->setTestInterfaceEmptyAttribute(WTF::getPtr(cppValue)); | 1062 imp->setTestInterfaceEmptyAttribute(WTF::getPtr(cppValue)); |
| 1031 } | 1063 } |
| 1032 | 1064 |
| 1033 static void testInterfaceEmptyAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1065 static void testInterfaceEmptyAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 1034 { | 1066 { |
| 1035 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1067 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 1036 TestObjectPythonV8Internal::testInterfaceEmptyAttributeAttributeSetter(jsVal
ue, info); | 1068 TestObjectPythonV8Internal::testInterfaceEmptyAttributeAttributeSetter(jsVal
ue, info); |
| 1037 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1069 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1038 } | 1070 } |
| 1039 | 1071 |
| 1040 static void selfAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) | 1072 static void selfAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
| 1041 { | 1073 { |
| 1042 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1074 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1043 v8SetReturnValueFast(info, imp->self(), imp); | 1075 v8SetReturnValueFast(info, imp->self(), imp); |
| 1044 } | 1076 } |
| 1045 | 1077 |
| 1046 static void selfAttributeGetterCallback(v8::Local<v8::String>, const v8::Propert
yCallbackInfo<v8::Value>& info) | 1078 static void selfAttributeGetterCallback(v8::Local<v8::String>, const v8::Propert
yCallbackInfo<v8::Value>& info) |
| 1047 { | 1079 { |
| 1048 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1080 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1049 TestObjectPythonV8Internal::selfAttributeGetter(info); | 1081 TestObjectPythonV8Internal::selfAttributeGetter(info); |
| 1050 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1082 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1051 } | 1083 } |
| 1052 | 1084 |
| 1053 static void selfAttributeSetter(v8::Local<v8::Value> jsValue, const v8::Property
CallbackInfo<void>& info) | 1085 static void selfAttributeSetter(v8::Local<v8::Value> jsValue, const v8::Property
CallbackInfo<void>& info) |
| 1054 { | 1086 { |
| 1087 ExceptionState exceptionState(ExceptionState::SetterContext, "self", "TestOb
jectPython", info.Holder(), info.GetIsolate()); |
| 1055 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1088 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1056 V8TRYCATCH_VOID(TestInterfaceEmpty*, cppValue, V8TestInterfaceEmpty::hasInst
ance(jsValue, info.GetIsolate(), worldType(info.GetIsolate())) ? V8TestInterface
Empty::toNative(v8::Handle<v8::Object>::Cast(jsValue)) : 0); | 1089 V8TRYCATCH_VOID(TestInterfaceEmpty*, cppValue, V8TestInterfaceEmpty::hasInst
ance(jsValue, info.GetIsolate(), worldType(info.GetIsolate())) ? V8TestInterface
Empty::toNative(v8::Handle<v8::Object>::Cast(jsValue)) : 0); |
| 1057 imp->setSelf(WTF::getPtr(cppValue)); | 1090 imp->setSelf(WTF::getPtr(cppValue)); |
| 1058 } | 1091 } |
| 1059 | 1092 |
| 1060 static void selfAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Val
ue> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1093 static void selfAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Val
ue> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 1061 { | 1094 { |
| 1062 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1095 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 1063 TestObjectPythonV8Internal::selfAttributeSetter(jsValue, info); | 1096 TestObjectPythonV8Internal::selfAttributeSetter(jsValue, info); |
| 1064 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1097 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 1085 | 1118 |
| 1086 static void htmlCollectionAttributeAttributeGetterCallback(v8::Local<v8::String>
, const v8::PropertyCallbackInfo<v8::Value>& info) | 1119 static void htmlCollectionAttributeAttributeGetterCallback(v8::Local<v8::String>
, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 1087 { | 1120 { |
| 1088 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1121 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1089 TestObjectPythonV8Internal::htmlCollectionAttributeAttributeGetter(info); | 1122 TestObjectPythonV8Internal::htmlCollectionAttributeAttributeGetter(info); |
| 1090 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1123 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1091 } | 1124 } |
| 1092 | 1125 |
| 1093 static void htmlCollectionAttributeAttributeSetter(v8::Local<v8::Value> jsValue,
const v8::PropertyCallbackInfo<void>& info) | 1126 static void htmlCollectionAttributeAttributeSetter(v8::Local<v8::Value> jsValue,
const v8::PropertyCallbackInfo<void>& info) |
| 1094 { | 1127 { |
| 1128 ExceptionState exceptionState(ExceptionState::SetterContext, "htmlCollection
Attribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 1095 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1129 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1096 V8TRYCATCH_VOID(HTMLCollection*, cppValue, V8HTMLCollection::hasInstance(jsV
alue, info.GetIsolate(), worldType(info.GetIsolate())) ? V8HTMLCollection::toNat
ive(v8::Handle<v8::Object>::Cast(jsValue)) : 0); | 1130 V8TRYCATCH_VOID(HTMLCollection*, cppValue, V8HTMLCollection::hasInstance(jsV
alue, info.GetIsolate(), worldType(info.GetIsolate())) ? V8HTMLCollection::toNat
ive(v8::Handle<v8::Object>::Cast(jsValue)) : 0); |
| 1097 imp->setHTMLCollectionAttribute(WTF::getPtr(cppValue)); | 1131 imp->setHTMLCollectionAttribute(WTF::getPtr(cppValue)); |
| 1098 } | 1132 } |
| 1099 | 1133 |
| 1100 static void htmlCollectionAttributeAttributeSetterCallback(v8::Local<v8::String>
, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1134 static void htmlCollectionAttributeAttributeSetterCallback(v8::Local<v8::String>
, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 1101 { | 1135 { |
| 1102 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1136 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 1103 TestObjectPythonV8Internal::htmlCollectionAttributeAttributeSetter(jsValue,
info); | 1137 TestObjectPythonV8Internal::htmlCollectionAttributeAttributeSetter(jsValue,
info); |
| 1104 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1138 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1105 } | 1139 } |
| 1106 | 1140 |
| 1107 static void htmlElementAttributeAttributeGetter(const v8::PropertyCallbackInfo<v
8::Value>& info) | 1141 static void htmlElementAttributeAttributeGetter(const v8::PropertyCallbackInfo<v
8::Value>& info) |
| 1108 { | 1142 { |
| 1109 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1143 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1110 v8SetReturnValueFast(info, imp->htmlElementAttribute(), imp); | 1144 v8SetReturnValueFast(info, imp->htmlElementAttribute(), imp); |
| 1111 } | 1145 } |
| 1112 | 1146 |
| 1113 static void htmlElementAttributeAttributeGetterCallback(v8::Local<v8::String>, c
onst v8::PropertyCallbackInfo<v8::Value>& info) | 1147 static void htmlElementAttributeAttributeGetterCallback(v8::Local<v8::String>, c
onst v8::PropertyCallbackInfo<v8::Value>& info) |
| 1114 { | 1148 { |
| 1115 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1149 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1116 TestObjectPythonV8Internal::htmlElementAttributeAttributeGetter(info); | 1150 TestObjectPythonV8Internal::htmlElementAttributeAttributeGetter(info); |
| 1117 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1151 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1118 } | 1152 } |
| 1119 | 1153 |
| 1120 static void htmlElementAttributeAttributeSetter(v8::Local<v8::Value> jsValue, co
nst v8::PropertyCallbackInfo<void>& info) | 1154 static void htmlElementAttributeAttributeSetter(v8::Local<v8::Value> jsValue, co
nst v8::PropertyCallbackInfo<void>& info) |
| 1121 { | 1155 { |
| 1156 ExceptionState exceptionState(ExceptionState::SetterContext, "htmlElementAtt
ribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 1122 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1157 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1123 V8TRYCATCH_VOID(HTMLElement*, cppValue, V8HTMLElement::hasInstance(jsValue,
info.GetIsolate(), worldType(info.GetIsolate())) ? V8HTMLElement::toNative(v8::H
andle<v8::Object>::Cast(jsValue)) : 0); | 1158 V8TRYCATCH_VOID(HTMLElement*, cppValue, V8HTMLElement::hasInstance(jsValue,
info.GetIsolate(), worldType(info.GetIsolate())) ? V8HTMLElement::toNative(v8::H
andle<v8::Object>::Cast(jsValue)) : 0); |
| 1124 imp->setHTMLElementAttribute(WTF::getPtr(cppValue)); | 1159 imp->setHTMLElementAttribute(WTF::getPtr(cppValue)); |
| 1125 } | 1160 } |
| 1126 | 1161 |
| 1127 static void htmlElementAttributeAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1162 static void htmlElementAttributeAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 1128 { | 1163 { |
| 1129 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1164 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 1130 TestObjectPythonV8Internal::htmlElementAttributeAttributeSetter(jsValue, inf
o); | 1165 TestObjectPythonV8Internal::htmlElementAttributeAttributeSetter(jsValue, inf
o); |
| 1131 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1166 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1132 } | 1167 } |
| 1133 | 1168 |
| 1134 static void stringArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v
8::Value>& info) | 1169 static void stringArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v
8::Value>& info) |
| 1135 { | 1170 { |
| 1136 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1171 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1137 v8SetReturnValue(info, v8Array(imp->stringArrayAttribute(), info.GetIsolate(
))); | 1172 v8SetReturnValue(info, v8Array(imp->stringArrayAttribute(), info.GetIsolate(
))); |
| 1138 } | 1173 } |
| 1139 | 1174 |
| 1140 static void stringArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, c
onst v8::PropertyCallbackInfo<v8::Value>& info) | 1175 static void stringArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, c
onst v8::PropertyCallbackInfo<v8::Value>& info) |
| 1141 { | 1176 { |
| 1142 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1177 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1143 TestObjectPythonV8Internal::stringArrayAttributeAttributeGetter(info); | 1178 TestObjectPythonV8Internal::stringArrayAttributeAttributeGetter(info); |
| 1144 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1179 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1145 } | 1180 } |
| 1146 | 1181 |
| 1147 static void stringArrayAttributeAttributeSetter(v8::Local<v8::Value> jsValue, co
nst v8::PropertyCallbackInfo<void>& info) | 1182 static void stringArrayAttributeAttributeSetter(v8::Local<v8::Value> jsValue, co
nst v8::PropertyCallbackInfo<void>& info) |
| 1148 { | 1183 { |
| 1184 ExceptionState exceptionState(ExceptionState::SetterContext, "stringArrayAtt
ribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 1149 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1185 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1150 V8TRYCATCH_VOID(Vector<String>, cppValue, toNativeArray<String>(jsValue, 0,
info.GetIsolate())); | 1186 V8TRYCATCH_VOID(Vector<String>, cppValue, toNativeArray<String>(jsValue, 0,
info.GetIsolate())); |
| 1151 imp->setStringArrayAttribute(cppValue); | 1187 imp->setStringArrayAttribute(cppValue); |
| 1152 } | 1188 } |
| 1153 | 1189 |
| 1154 static void stringArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1190 static void stringArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 1155 { | 1191 { |
| 1156 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1192 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 1157 TestObjectPythonV8Internal::stringArrayAttributeAttributeSetter(jsValue, inf
o); | 1193 TestObjectPythonV8Internal::stringArrayAttributeAttributeSetter(jsValue, inf
o); |
| 1158 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1194 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1159 } | 1195 } |
| 1160 | 1196 |
| 1161 static void testInterfaceEmptyArrayAttributeAttributeGetter(const v8::PropertyCa
llbackInfo<v8::Value>& info) | 1197 static void testInterfaceEmptyArrayAttributeAttributeGetter(const v8::PropertyCa
llbackInfo<v8::Value>& info) |
| 1162 { | 1198 { |
| 1163 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1199 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1164 v8SetReturnValue(info, v8Array(imp->testInterfaceEmptyArrayAttribute(), info
.GetIsolate())); | 1200 v8SetReturnValue(info, v8Array(imp->testInterfaceEmptyArrayAttribute(), info
.GetIsolate())); |
| 1165 } | 1201 } |
| 1166 | 1202 |
| 1167 static void testInterfaceEmptyArrayAttributeAttributeGetterCallback(v8::Local<v8
::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1203 static void testInterfaceEmptyArrayAttributeAttributeGetterCallback(v8::Local<v8
::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 1168 { | 1204 { |
| 1169 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1205 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1170 TestObjectPythonV8Internal::testInterfaceEmptyArrayAttributeAttributeGetter(
info); | 1206 TestObjectPythonV8Internal::testInterfaceEmptyArrayAttributeAttributeGetter(
info); |
| 1171 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1207 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1172 } | 1208 } |
| 1173 | 1209 |
| 1174 static void testInterfaceEmptyArrayAttributeAttributeSetter(v8::Local<v8::Value>
jsValue, const v8::PropertyCallbackInfo<void>& info) | 1210 static void testInterfaceEmptyArrayAttributeAttributeSetter(v8::Local<v8::Value>
jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 1175 { | 1211 { |
| 1212 ExceptionState exceptionState(ExceptionState::SetterContext, "testInterfaceE
mptyArrayAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 1176 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1213 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1177 V8TRYCATCH_VOID(Vector<RefPtr<TestInterfaceEmpty> >, cppValue, (toRefPtrNati
veArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(jsValue, 0, info.GetIsolate())
)); | 1214 V8TRYCATCH_VOID(Vector<RefPtr<TestInterfaceEmpty> >, cppValue, (toRefPtrNati
veArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(jsValue, 0, info.GetIsolate())
)); |
| 1178 imp->setTestInterfaceEmptyArrayAttribute(cppValue); | 1215 imp->setTestInterfaceEmptyArrayAttribute(cppValue); |
| 1179 } | 1216 } |
| 1180 | 1217 |
| 1181 static void testInterfaceEmptyArrayAttributeAttributeSetterCallback(v8::Local<v8
::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& i
nfo) | 1218 static void testInterfaceEmptyArrayAttributeAttributeSetterCallback(v8::Local<v8
::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& i
nfo) |
| 1182 { | 1219 { |
| 1183 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1220 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 1184 TestObjectPythonV8Internal::testInterfaceEmptyArrayAttributeAttributeSetter(
jsValue, info); | 1221 TestObjectPythonV8Internal::testInterfaceEmptyArrayAttributeAttributeSetter(
jsValue, info); |
| 1185 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1222 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1186 } | 1223 } |
| 1187 | 1224 |
| 1188 static void floatArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) | 1225 static void floatArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) |
| 1189 { | 1226 { |
| 1190 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1227 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1191 v8SetReturnValue(info, v8Array(imp->floatArrayAttribute(), info.GetIsolate()
)); | 1228 v8SetReturnValue(info, v8Array(imp->floatArrayAttribute(), info.GetIsolate()
)); |
| 1192 } | 1229 } |
| 1193 | 1230 |
| 1194 static void floatArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) | 1231 static void floatArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) |
| 1195 { | 1232 { |
| 1196 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1233 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1197 TestObjectPythonV8Internal::floatArrayAttributeAttributeGetter(info); | 1234 TestObjectPythonV8Internal::floatArrayAttributeAttributeGetter(info); |
| 1198 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1235 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1199 } | 1236 } |
| 1200 | 1237 |
| 1201 static void floatArrayAttributeAttributeSetter(v8::Local<v8::Value> jsValue, con
st v8::PropertyCallbackInfo<void>& info) | 1238 static void floatArrayAttributeAttributeSetter(v8::Local<v8::Value> jsValue, con
st v8::PropertyCallbackInfo<void>& info) |
| 1202 { | 1239 { |
| 1240 ExceptionState exceptionState(ExceptionState::SetterContext, "floatArrayAttr
ibute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 1203 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1241 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1204 V8TRYCATCH_VOID(Vector<float>, cppValue, toNativeArray<float>(jsValue, 0, in
fo.GetIsolate())); | 1242 V8TRYCATCH_VOID(Vector<float>, cppValue, toNativeArray<float>(jsValue, 0, in
fo.GetIsolate())); |
| 1205 imp->setFloatArrayAttribute(cppValue); | 1243 imp->setFloatArrayAttribute(cppValue); |
| 1206 } | 1244 } |
| 1207 | 1245 |
| 1208 static void floatArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1246 static void floatArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 1209 { | 1247 { |
| 1210 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1248 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 1211 TestObjectPythonV8Internal::floatArrayAttributeAttributeSetter(jsValue, info
); | 1249 TestObjectPythonV8Internal::floatArrayAttributeAttributeSetter(jsValue, info
); |
| 1212 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1250 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 1226 | 1264 |
| 1227 static void nullableStringAttributeAttributeGetterCallback(v8::Local<v8::String>
, const v8::PropertyCallbackInfo<v8::Value>& info) | 1265 static void nullableStringAttributeAttributeGetterCallback(v8::Local<v8::String>
, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 1228 { | 1266 { |
| 1229 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1267 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1230 TestObjectPythonV8Internal::nullableStringAttributeAttributeGetter(info); | 1268 TestObjectPythonV8Internal::nullableStringAttributeAttributeGetter(info); |
| 1231 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1269 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1232 } | 1270 } |
| 1233 | 1271 |
| 1234 static void nullableStringAttributeAttributeSetter(v8::Local<v8::Value> jsValue,
const v8::PropertyCallbackInfo<void>& info) | 1272 static void nullableStringAttributeAttributeSetter(v8::Local<v8::Value> jsValue,
const v8::PropertyCallbackInfo<void>& info) |
| 1235 { | 1273 { |
| 1274 ExceptionState exceptionState(ExceptionState::SetterContext, "nullableString
Attribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 1236 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1275 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1237 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 1276 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
| 1238 imp->setNullableStringAttribute(cppValue); | 1277 imp->setNullableStringAttribute(cppValue); |
| 1239 } | 1278 } |
| 1240 | 1279 |
| 1241 static void nullableStringAttributeAttributeSetterCallback(v8::Local<v8::String>
, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1280 static void nullableStringAttributeAttributeSetterCallback(v8::Local<v8::String>
, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 1242 { | 1281 { |
| 1243 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1282 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 1244 TestObjectPythonV8Internal::nullableStringAttributeAttributeSetter(jsValue,
info); | 1283 TestObjectPythonV8Internal::nullableStringAttributeAttributeSetter(jsValue,
info); |
| 1245 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1284 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 1259 | 1298 |
| 1260 static void nullableLongAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 1299 static void nullableLongAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
| 1261 { | 1300 { |
| 1262 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1301 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1263 TestObjectPythonV8Internal::nullableLongAttributeAttributeGetter(info); | 1302 TestObjectPythonV8Internal::nullableLongAttributeAttributeGetter(info); |
| 1264 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1303 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1265 } | 1304 } |
| 1266 | 1305 |
| 1267 static void nullableLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, c
onst v8::PropertyCallbackInfo<void>& info) | 1306 static void nullableLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, c
onst v8::PropertyCallbackInfo<void>& info) |
| 1268 { | 1307 { |
| 1308 ExceptionState exceptionState(ExceptionState::SetterContext, "nullableLongAt
tribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 1269 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1309 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1270 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); | 1310 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
| 1271 imp->setNullableLongAttribute(cppValue); | 1311 imp->setNullableLongAttribute(cppValue); |
| 1272 } | 1312 } |
| 1273 | 1313 |
| 1274 static void nullableLongAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1314 static void nullableLongAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 1275 { | 1315 { |
| 1276 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1316 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 1277 TestObjectPythonV8Internal::nullableLongAttributeAttributeSetter(jsValue, in
fo); | 1317 TestObjectPythonV8Internal::nullableLongAttributeAttributeSetter(jsValue, in
fo); |
| 1278 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1318 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1279 } | 1319 } |
| 1280 | 1320 |
| 1281 static void testEnumAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::
Value>& info) | 1321 static void testEnumAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::
Value>& info) |
| 1282 { | 1322 { |
| 1283 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1323 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1284 v8SetReturnValueString(info, imp->testEnumAttribute(), info.GetIsolate()); | 1324 v8SetReturnValueString(info, imp->testEnumAttribute(), info.GetIsolate()); |
| 1285 } | 1325 } |
| 1286 | 1326 |
| 1287 static void testEnumAttributeAttributeGetterCallback(v8::Local<v8::String>, cons
t v8::PropertyCallbackInfo<v8::Value>& info) | 1327 static void testEnumAttributeAttributeGetterCallback(v8::Local<v8::String>, cons
t v8::PropertyCallbackInfo<v8::Value>& info) |
| 1288 { | 1328 { |
| 1289 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1329 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1290 TestObjectPythonV8Internal::testEnumAttributeAttributeGetter(info); | 1330 TestObjectPythonV8Internal::testEnumAttributeAttributeGetter(info); |
| 1291 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1331 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1292 } | 1332 } |
| 1293 | 1333 |
| 1294 static void testEnumAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const
v8::PropertyCallbackInfo<void>& info) | 1334 static void testEnumAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const
v8::PropertyCallbackInfo<void>& info) |
| 1295 { | 1335 { |
| 1336 ExceptionState exceptionState(ExceptionState::SetterContext, "testEnumAttrib
ute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 1296 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1337 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1297 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 1338 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
| 1298 String string = cppValue; | 1339 String string = cppValue; |
| 1299 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || st
ring == "EnumValue3")) | 1340 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || st
ring == "EnumValue3")) |
| 1300 return; | 1341 return; |
| 1301 imp->setTestEnumAttribute(cppValue); | 1342 imp->setTestEnumAttribute(cppValue); |
| 1302 } | 1343 } |
| 1303 | 1344 |
| 1304 static void testEnumAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::
Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1345 static void testEnumAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::
Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 1305 { | 1346 { |
| 1306 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1347 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 1307 TestObjectPythonV8Internal::testEnumAttributeAttributeSetter(jsValue, info); | 1348 TestObjectPythonV8Internal::testEnumAttributeAttributeSetter(jsValue, info); |
| 1308 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1349 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1309 } | 1350 } |
| 1310 | 1351 |
| 1311 static void staticStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) | 1352 static void staticStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) |
| 1312 { | 1353 { |
| 1313 v8SetReturnValueString(info, TestObjectPython::staticStringAttribute(), info
.GetIsolate()); | 1354 v8SetReturnValueString(info, TestObjectPython::staticStringAttribute(), info
.GetIsolate()); |
| 1314 } | 1355 } |
| 1315 | 1356 |
| 1316 static void staticStringAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 1357 static void staticStringAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
| 1317 { | 1358 { |
| 1318 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1359 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1319 TestObjectPythonV8Internal::staticStringAttributeAttributeGetter(info); | 1360 TestObjectPythonV8Internal::staticStringAttributeAttributeGetter(info); |
| 1320 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1361 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1321 } | 1362 } |
| 1322 | 1363 |
| 1323 static void staticStringAttributeAttributeSetter(v8::Local<v8::Value> jsValue, c
onst v8::PropertyCallbackInfo<void>& info) | 1364 static void staticStringAttributeAttributeSetter(v8::Local<v8::Value> jsValue, c
onst v8::PropertyCallbackInfo<void>& info) |
| 1324 { | 1365 { |
| 1366 ExceptionState exceptionState(ExceptionState::SetterContext, "staticStringAt
tribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 1325 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 1367 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
| 1326 TestObjectPython::setStaticStringAttribute(cppValue); | 1368 TestObjectPython::setStaticStringAttribute(cppValue); |
| 1327 } | 1369 } |
| 1328 | 1370 |
| 1329 static void staticStringAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1371 static void staticStringAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 1330 { | 1372 { |
| 1331 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1373 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 1332 TestObjectPythonV8Internal::staticStringAttributeAttributeSetter(jsValue, in
fo); | 1374 TestObjectPythonV8Internal::staticStringAttributeAttributeSetter(jsValue, in
fo); |
| 1333 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1375 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1334 } | 1376 } |
| 1335 | 1377 |
| 1336 static void staticLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) | 1378 static void staticLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) |
| 1337 { | 1379 { |
| 1338 v8SetReturnValueInt(info, TestObjectPython::staticLongAttribute()); | 1380 v8SetReturnValueInt(info, TestObjectPython::staticLongAttribute()); |
| 1339 } | 1381 } |
| 1340 | 1382 |
| 1341 static void staticLongAttributeAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) | 1383 static void staticLongAttributeAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) |
| 1342 { | 1384 { |
| 1343 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1385 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1344 TestObjectPythonV8Internal::staticLongAttributeAttributeGetter(info); | 1386 TestObjectPythonV8Internal::staticLongAttributeAttributeGetter(info); |
| 1345 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1387 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1346 } | 1388 } |
| 1347 | 1389 |
| 1348 static void staticLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, con
st v8::PropertyCallbackInfo<void>& info) | 1390 static void staticLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, con
st v8::PropertyCallbackInfo<void>& info) |
| 1349 { | 1391 { |
| 1392 ExceptionState exceptionState(ExceptionState::SetterContext, "staticLongAttr
ibute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 1350 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); | 1393 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
| 1351 TestObjectPython::setStaticLongAttribute(cppValue); | 1394 TestObjectPython::setStaticLongAttribute(cppValue); |
| 1352 } | 1395 } |
| 1353 | 1396 |
| 1354 static void staticLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1397 static void staticLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 1355 { | 1398 { |
| 1356 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1399 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 1357 TestObjectPythonV8Internal::staticLongAttributeAttributeSetter(jsValue, info
); | 1400 TestObjectPythonV8Internal::staticLongAttributeAttributeSetter(jsValue, info
); |
| 1358 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1401 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1359 } | 1402 } |
| 1360 | 1403 |
| 1361 static void eventHandlerAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) | 1404 static void eventHandlerAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) |
| 1362 { | 1405 { |
| 1363 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1406 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1364 EventListener* jsValue = imp->eventHandlerAttribute(isolatedWorldForIsolate(
info.GetIsolate())); | 1407 EventListener* jsValue = imp->eventHandlerAttribute(isolatedWorldForIsolate(
info.GetIsolate())); |
| 1365 v8SetReturnValue(info, jsValue ? v8::Handle<v8::Value>(V8AbstractEventListen
er::cast(jsValue)->getListenerObject(imp->executionContext())) : v8::Handle<v8::
Value>(v8::Null(info.GetIsolate()))); | 1408 v8SetReturnValue(info, jsValue ? v8::Handle<v8::Value>(V8AbstractEventListen
er::cast(jsValue)->getListenerObject(imp->executionContext())) : v8::Handle<v8::
Value>(v8::Null(info.GetIsolate()))); |
| 1366 } | 1409 } |
| 1367 | 1410 |
| 1368 static void eventHandlerAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 1411 static void eventHandlerAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
| 1369 { | 1412 { |
| 1370 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1413 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1371 TestObjectPythonV8Internal::eventHandlerAttributeAttributeGetter(info); | 1414 TestObjectPythonV8Internal::eventHandlerAttributeAttributeGetter(info); |
| 1372 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1415 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1373 } | 1416 } |
| 1374 | 1417 |
| 1375 static void eventHandlerAttributeAttributeSetter(v8::Local<v8::Value> jsValue, c
onst v8::PropertyCallbackInfo<void>& info) | 1418 static void eventHandlerAttributeAttributeSetter(v8::Local<v8::Value> jsValue, c
onst v8::PropertyCallbackInfo<void>& info) |
| 1376 { | 1419 { |
| 1420 ExceptionState exceptionState(ExceptionState::SetterContext, "eventHandlerAt
tribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 1377 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1421 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1378 transferHiddenDependency(info.Holder(), imp->eventHandlerAttribute(isolatedW
orldForIsolate(info.GetIsolate())), jsValue, V8TestObjectPython::eventListenerCa
cheIndex, info.GetIsolate()); | 1422 transferHiddenDependency(info.Holder(), imp->eventHandlerAttribute(isolatedW
orldForIsolate(info.GetIsolate())), jsValue, V8TestObjectPython::eventListenerCa
cheIndex, info.GetIsolate()); |
| 1379 imp->setEventHandlerAttribute(V8EventListenerList::getEventListener(jsValue,
true, ListenerFindOrCreate), isolatedWorldForIsolate(info.GetIsolate())); | 1423 imp->setEventHandlerAttribute(V8EventListenerList::getEventListener(jsValue,
true, ListenerFindOrCreate), isolatedWorldForIsolate(info.GetIsolate())); |
| 1380 } | 1424 } |
| 1381 | 1425 |
| 1382 static void eventHandlerAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1426 static void eventHandlerAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 1383 { | 1427 { |
| 1384 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1428 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 1385 TestObjectPythonV8Internal::eventHandlerAttributeAttributeSetter(jsValue, in
fo); | 1429 TestObjectPythonV8Internal::eventHandlerAttributeAttributeSetter(jsValue, in
fo); |
| 1386 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1430 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 1397 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1441 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1398 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 1442 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
| 1399 if (contextData && contextData->activityLogger()) | 1443 if (contextData && contextData->activityLogger()) |
| 1400 contextData->activityLogger()->log("TestObjectPython.activityLoggingAcce
ssForAllWorldsLongAttribute", 0, 0, "Getter"); | 1444 contextData->activityLogger()->log("TestObjectPython.activityLoggingAcce
ssForAllWorldsLongAttribute", 0, 0, "Getter"); |
| 1401 TestObjectPythonV8Internal::activityLoggingAccessForAllWorldsLongAttributeAt
tributeGetter(info); | 1445 TestObjectPythonV8Internal::activityLoggingAccessForAllWorldsLongAttributeAt
tributeGetter(info); |
| 1402 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1446 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1403 } | 1447 } |
| 1404 | 1448 |
| 1405 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetter(v8::Lo
cal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1449 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetter(v8::Lo
cal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 1406 { | 1450 { |
| 1451 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessForAllWorldsLongAttribute", "TestObjectPython", info.Holder(), info.GetIs
olate()); |
| 1407 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1452 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1408 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); | 1453 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
| 1409 imp->setActivityLoggingAccessForAllWorldsLongAttribute(cppValue); | 1454 imp->setActivityLoggingAccessForAllWorldsLongAttribute(cppValue); |
| 1410 } | 1455 } |
| 1411 | 1456 |
| 1412 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetterCallbac
k(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbac
kInfo<void>& info) | 1457 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetterCallbac
k(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbac
kInfo<void>& info) |
| 1413 { | 1458 { |
| 1414 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1459 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 1415 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 1460 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
| 1416 if (contextData && contextData->activityLogger()) { | 1461 if (contextData && contextData->activityLogger()) { |
| (...skipping 15 matching lines...) Expand all Loading... |
| 1432 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1477 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1433 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 1478 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
| 1434 if (contextData && contextData->activityLogger()) | 1479 if (contextData && contextData->activityLogger()) |
| 1435 contextData->activityLogger()->log("TestObjectPython.activityLoggingGett
erForAllWorldsLongAttribute", 0, 0, "Getter"); | 1480 contextData->activityLogger()->log("TestObjectPython.activityLoggingGett
erForAllWorldsLongAttribute", 0, 0, "Getter"); |
| 1436 TestObjectPythonV8Internal::activityLoggingGetterForAllWorldsLongAttributeAt
tributeGetter(info); | 1481 TestObjectPythonV8Internal::activityLoggingGetterForAllWorldsLongAttributeAt
tributeGetter(info); |
| 1437 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1482 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1438 } | 1483 } |
| 1439 | 1484 |
| 1440 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetter(v8::Lo
cal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1485 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetter(v8::Lo
cal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 1441 { | 1486 { |
| 1487 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterForAllWorldsLongAttribute", "TestObjectPython", info.Holder(), info.GetIs
olate()); |
| 1442 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1488 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1443 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); | 1489 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
| 1444 imp->setActivityLoggingGetterForAllWorldsLongAttribute(cppValue); | 1490 imp->setActivityLoggingGetterForAllWorldsLongAttribute(cppValue); |
| 1445 } | 1491 } |
| 1446 | 1492 |
| 1447 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetterCallbac
k(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbac
kInfo<void>& info) | 1493 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetterCallbac
k(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbac
kInfo<void>& info) |
| 1448 { | 1494 { |
| 1449 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1495 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 1450 TestObjectPythonV8Internal::activityLoggingGetterForAllWorldsLongAttributeAt
tributeSetter(jsValue, info); | 1496 TestObjectPythonV8Internal::activityLoggingGetterForAllWorldsLongAttributeAt
tributeSetter(jsValue, info); |
| 1451 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1497 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1452 } | 1498 } |
| 1453 | 1499 |
| 1454 static void activityLoggingSetterForAllWorldsLongAttributeAttributeGetter(const
v8::PropertyCallbackInfo<v8::Value>& info) | 1500 static void activityLoggingSetterForAllWorldsLongAttributeAttributeGetter(const
v8::PropertyCallbackInfo<v8::Value>& info) |
| 1455 { | 1501 { |
| 1456 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1502 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1457 v8SetReturnValueInt(info, imp->activityLoggingSetterForAllWorldsLongAttribut
e()); | 1503 v8SetReturnValueInt(info, imp->activityLoggingSetterForAllWorldsLongAttribut
e()); |
| 1458 } | 1504 } |
| 1459 | 1505 |
| 1460 static void activityLoggingSetterForAllWorldsLongAttributeAttributeGetterCallbac
k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1506 static void activityLoggingSetterForAllWorldsLongAttributeAttributeGetterCallbac
k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 1461 { | 1507 { |
| 1462 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1508 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1463 TestObjectPythonV8Internal::activityLoggingSetterForAllWorldsLongAttributeAt
tributeGetter(info); | 1509 TestObjectPythonV8Internal::activityLoggingSetterForAllWorldsLongAttributeAt
tributeGetter(info); |
| 1464 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1510 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1465 } | 1511 } |
| 1466 | 1512 |
| 1467 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetter(v8::Lo
cal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1513 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetter(v8::Lo
cal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 1468 { | 1514 { |
| 1515 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gSetterForAllWorldsLongAttribute", "TestObjectPython", info.Holder(), info.GetIs
olate()); |
| 1469 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1516 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1470 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); | 1517 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
| 1471 imp->setActivityLoggingSetterForAllWorldsLongAttribute(cppValue); | 1518 imp->setActivityLoggingSetterForAllWorldsLongAttribute(cppValue); |
| 1472 } | 1519 } |
| 1473 | 1520 |
| 1474 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetterCallbac
k(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbac
kInfo<void>& info) | 1521 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetterCallbac
k(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbac
kInfo<void>& info) |
| 1475 { | 1522 { |
| 1476 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1523 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 1477 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 1524 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
| 1478 if (contextData && contextData->activityLogger()) { | 1525 if (contextData && contextData->activityLogger()) { |
| (...skipping 22 matching lines...) Expand all Loading... |
| 1501 | 1548 |
| 1502 static void cachedAttributeAnyAttributeAttributeGetterCallback(v8::Local<v8::Str
ing>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1549 static void cachedAttributeAnyAttributeAttributeGetterCallback(v8::Local<v8::Str
ing>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 1503 { | 1550 { |
| 1504 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1551 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1505 TestObjectPythonV8Internal::cachedAttributeAnyAttributeAttributeGetter(info)
; | 1552 TestObjectPythonV8Internal::cachedAttributeAnyAttributeAttributeGetter(info)
; |
| 1506 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1553 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1507 } | 1554 } |
| 1508 | 1555 |
| 1509 static void cachedAttributeAnyAttributeAttributeSetter(v8::Local<v8::Value> jsVa
lue, const v8::PropertyCallbackInfo<void>& info) | 1556 static void cachedAttributeAnyAttributeAttributeSetter(v8::Local<v8::Value> jsVa
lue, const v8::PropertyCallbackInfo<void>& info) |
| 1510 { | 1557 { |
| 1558 ExceptionState exceptionState(ExceptionState::SetterContext, "cachedAttribut
eAnyAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 1511 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1559 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1512 V8TRYCATCH_VOID(ScriptValue, cppValue, ScriptValue(jsValue, info.GetIsolate(
))); | 1560 V8TRYCATCH_VOID(ScriptValue, cppValue, ScriptValue(jsValue, info.GetIsolate(
))); |
| 1513 imp->setCachedAttributeAnyAttribute(cppValue); | 1561 imp->setCachedAttributeAnyAttribute(cppValue); |
| 1514 info.Holder()->DeleteHiddenValue(v8::String::NewFromUtf8(info.GetIsolate(),
"cachedAttributeAnyAttribute", v8::String::kInternalizedString)); // Invalidate
the cached value. | 1562 info.Holder()->DeleteHiddenValue(v8::String::NewFromUtf8(info.GetIsolate(),
"cachedAttributeAnyAttribute", v8::String::kInternalizedString)); // Invalidate
the cached value. |
| 1515 } | 1563 } |
| 1516 | 1564 |
| 1517 static void cachedAttributeAnyAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1565 static void cachedAttributeAnyAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 1518 { | 1566 { |
| 1519 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1567 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 1520 TestObjectPythonV8Internal::cachedAttributeAnyAttributeAttributeSetter(jsVal
ue, info); | 1568 TestObjectPythonV8Internal::cachedAttributeAnyAttributeAttributeSetter(jsVal
ue, info); |
| 1521 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1569 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1522 } | 1570 } |
| 1523 | 1571 |
| 1524 static void callWithExecutionContextAnyAttributeAttributeGetter(const v8::Proper
tyCallbackInfo<v8::Value>& info) | 1572 static void callWithExecutionContextAnyAttributeAttributeGetter(const v8::Proper
tyCallbackInfo<v8::Value>& info) |
| 1525 { | 1573 { |
| 1526 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1574 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1527 ExecutionContext* scriptContext = getExecutionContext(); | 1575 ExecutionContext* scriptContext = getExecutionContext(); |
| 1528 v8SetReturnValue(info, imp->callWithExecutionContextAnyAttribute(scriptConte
xt).v8Value()); | 1576 v8SetReturnValue(info, imp->callWithExecutionContextAnyAttribute(scriptConte
xt).v8Value()); |
| 1529 } | 1577 } |
| 1530 | 1578 |
| 1531 static void callWithExecutionContextAnyAttributeAttributeGetterCallback(v8::Loca
l<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1579 static void callWithExecutionContextAnyAttributeAttributeGetterCallback(v8::Loca
l<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 1532 { | 1580 { |
| 1533 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1581 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1534 TestObjectPythonV8Internal::callWithExecutionContextAnyAttributeAttributeGet
ter(info); | 1582 TestObjectPythonV8Internal::callWithExecutionContextAnyAttributeAttributeGet
ter(info); |
| 1535 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1583 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1536 } | 1584 } |
| 1537 | 1585 |
| 1538 static void callWithExecutionContextAnyAttributeAttributeSetter(v8::Local<v8::Va
lue> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1586 static void callWithExecutionContextAnyAttributeAttributeSetter(v8::Local<v8::Va
lue> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 1539 { | 1587 { |
| 1588 ExceptionState exceptionState(ExceptionState::SetterContext, "callWithExecut
ionContextAnyAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 1540 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1589 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1541 V8TRYCATCH_VOID(ScriptValue, cppValue, ScriptValue(jsValue, info.GetIsolate(
))); | 1590 V8TRYCATCH_VOID(ScriptValue, cppValue, ScriptValue(jsValue, info.GetIsolate(
))); |
| 1542 ExecutionContext* scriptContext = getExecutionContext(); | 1591 ExecutionContext* scriptContext = getExecutionContext(); |
| 1543 imp->setCallWithExecutionContextAnyAttribute(scriptContext, cppValue); | 1592 imp->setCallWithExecutionContextAnyAttribute(scriptContext, cppValue); |
| 1544 } | 1593 } |
| 1545 | 1594 |
| 1546 static void callWithExecutionContextAnyAttributeAttributeSetterCallback(v8::Loca
l<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void
>& info) | 1595 static void callWithExecutionContextAnyAttributeAttributeSetterCallback(v8::Loca
l<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void
>& info) |
| 1547 { | 1596 { |
| 1548 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1597 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 1549 TestObjectPythonV8Internal::callWithExecutionContextAnyAttributeAttributeSet
ter(jsValue, info); | 1598 TestObjectPythonV8Internal::callWithExecutionContextAnyAttributeAttributeSet
ter(jsValue, info); |
| 1550 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1599 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1551 } | 1600 } |
| 1552 | 1601 |
| 1553 static void checkSecurityForNodeReadonlyDocumentAttributeAttributeGetter(const v
8::PropertyCallbackInfo<v8::Value>& info) | 1602 static void checkSecurityForNodeReadonlyDocumentAttributeAttributeGetter(const v
8::PropertyCallbackInfo<v8::Value>& info) |
| 1554 { | 1603 { |
| 1555 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1604 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1556 ExceptionState exceptionState(info.Holder(), info.GetIsolate()); | 1605 ExceptionState exceptionState(ExceptionState::GetterContext, "checkSecurityF
orNodeReadonlyDocumentAttribute", "TestObjectPython" ,info.Holder(), info.GetIso
late()); |
| 1557 if (!BindingSecurity::shouldAllowAccessToNode(imp->checkSecurityForNodeReado
nlyDocumentAttribute(), exceptionState)) { | 1606 if (!BindingSecurity::shouldAllowAccessToNode(imp->checkSecurityForNodeReado
nlyDocumentAttribute(), exceptionState)) { |
| 1558 v8SetReturnValueNull(info); | 1607 v8SetReturnValueNull(info); |
| 1559 exceptionState.throwIfNeeded(); | 1608 exceptionState.throwIfNeeded(); |
| 1560 return; | 1609 return; |
| 1561 } | 1610 } |
| 1562 v8SetReturnValueFast(info, imp->checkSecurityForNodeReadonlyDocumentAttribut
e(), imp); | 1611 v8SetReturnValueFast(info, imp->checkSecurityForNodeReadonlyDocumentAttribut
e(), imp); |
| 1563 } | 1612 } |
| 1564 | 1613 |
| 1565 static void checkSecurityForNodeReadonlyDocumentAttributeAttributeGetterCallback
(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1614 static void checkSecurityForNodeReadonlyDocumentAttributeAttributeGetterCallback
(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 1566 { | 1615 { |
| (...skipping 15 matching lines...) Expand all Loading... |
| 1582 { | 1631 { |
| 1583 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1632 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1584 TestObjectPythonV8Internal::conditionalLongAttributeAttributeGetter(info); | 1633 TestObjectPythonV8Internal::conditionalLongAttributeAttributeGetter(info); |
| 1585 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1634 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1586 } | 1635 } |
| 1587 #endif // ENABLE(CONDITION) | 1636 #endif // ENABLE(CONDITION) |
| 1588 | 1637 |
| 1589 #if ENABLE(CONDITION) | 1638 #if ENABLE(CONDITION) |
| 1590 static void conditionalLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue
, const v8::PropertyCallbackInfo<void>& info) | 1639 static void conditionalLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue
, const v8::PropertyCallbackInfo<void>& info) |
| 1591 { | 1640 { |
| 1641 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalLon
gAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 1592 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1642 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1593 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); | 1643 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
| 1594 imp->setConditionalLongAttribute(cppValue); | 1644 imp->setConditionalLongAttribute(cppValue); |
| 1595 } | 1645 } |
| 1596 #endif // ENABLE(CONDITION) | 1646 #endif // ENABLE(CONDITION) |
| 1597 | 1647 |
| 1598 #if ENABLE(CONDITION) | 1648 #if ENABLE(CONDITION) |
| 1599 static void conditionalLongAttributeAttributeSetterCallback(v8::Local<v8::String
>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1649 static void conditionalLongAttributeAttributeSetterCallback(v8::Local<v8::String
>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 1600 { | 1650 { |
| 1601 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1651 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 1617 { | 1667 { |
| 1618 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1668 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1619 TestObjectPythonV8Internal::conditionalAndLongAttributeAttributeGetter(info)
; | 1669 TestObjectPythonV8Internal::conditionalAndLongAttributeAttributeGetter(info)
; |
| 1620 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1670 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1621 } | 1671 } |
| 1622 #endif // ENABLE(CONDITION_1) && ENABLE(CONDITION_2) | 1672 #endif // ENABLE(CONDITION_1) && ENABLE(CONDITION_2) |
| 1623 | 1673 |
| 1624 #if ENABLE(CONDITION_1) && ENABLE(CONDITION_2) | 1674 #if ENABLE(CONDITION_1) && ENABLE(CONDITION_2) |
| 1625 static void conditionalAndLongAttributeAttributeSetter(v8::Local<v8::Value> jsVa
lue, const v8::PropertyCallbackInfo<void>& info) | 1675 static void conditionalAndLongAttributeAttributeSetter(v8::Local<v8::Value> jsVa
lue, const v8::PropertyCallbackInfo<void>& info) |
| 1626 { | 1676 { |
| 1677 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalAnd
LongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 1627 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1678 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1628 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); | 1679 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
| 1629 imp->setConditionalAndLongAttribute(cppValue); | 1680 imp->setConditionalAndLongAttribute(cppValue); |
| 1630 } | 1681 } |
| 1631 #endif // ENABLE(CONDITION_1) && ENABLE(CONDITION_2) | 1682 #endif // ENABLE(CONDITION_1) && ENABLE(CONDITION_2) |
| 1632 | 1683 |
| 1633 #if ENABLE(CONDITION_1) && ENABLE(CONDITION_2) | 1684 #if ENABLE(CONDITION_1) && ENABLE(CONDITION_2) |
| 1634 static void conditionalAndLongAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1685 static void conditionalAndLongAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 1635 { | 1686 { |
| 1636 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1687 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 1652 { | 1703 { |
| 1653 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1704 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1654 TestObjectPythonV8Internal::conditionalOrLongAttributeAttributeGetter(info); | 1705 TestObjectPythonV8Internal::conditionalOrLongAttributeAttributeGetter(info); |
| 1655 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1706 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1656 } | 1707 } |
| 1657 #endif // ENABLE(CONDITION_1) || ENABLE(CONDITION_2) | 1708 #endif // ENABLE(CONDITION_1) || ENABLE(CONDITION_2) |
| 1658 | 1709 |
| 1659 #if ENABLE(CONDITION_1) || ENABLE(CONDITION_2) | 1710 #if ENABLE(CONDITION_1) || ENABLE(CONDITION_2) |
| 1660 static void conditionalOrLongAttributeAttributeSetter(v8::Local<v8::Value> jsVal
ue, const v8::PropertyCallbackInfo<void>& info) | 1711 static void conditionalOrLongAttributeAttributeSetter(v8::Local<v8::Value> jsVal
ue, const v8::PropertyCallbackInfo<void>& info) |
| 1661 { | 1712 { |
| 1713 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalOrL
ongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 1662 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1714 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1663 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); | 1715 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
| 1664 imp->setConditionalOrLongAttribute(cppValue); | 1716 imp->setConditionalOrLongAttribute(cppValue); |
| 1665 } | 1717 } |
| 1666 #endif // ENABLE(CONDITION_1) || ENABLE(CONDITION_2) | 1718 #endif // ENABLE(CONDITION_1) || ENABLE(CONDITION_2) |
| 1667 | 1719 |
| 1668 #if ENABLE(CONDITION_1) || ENABLE(CONDITION_2) | 1720 #if ENABLE(CONDITION_1) || ENABLE(CONDITION_2) |
| 1669 static void conditionalOrLongAttributeAttributeSetterCallback(v8::Local<v8::Stri
ng>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1721 static void conditionalOrLongAttributeAttributeSetterCallback(v8::Local<v8::Stri
ng>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 1670 { | 1722 { |
| 1671 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1723 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 1690 | 1742 |
| 1691 static void customGetterLongAttributeAttributeGetterCallback(v8::Local<v8::Strin
g>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1743 static void customGetterLongAttributeAttributeGetterCallback(v8::Local<v8::Strin
g>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 1692 { | 1744 { |
| 1693 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1745 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1694 V8TestObjectPython::customGetterLongAttributeAttributeGetterCustom(info); | 1746 V8TestObjectPython::customGetterLongAttributeAttributeGetterCustom(info); |
| 1695 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1747 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1696 } | 1748 } |
| 1697 | 1749 |
| 1698 static void customGetterLongAttributeAttributeSetter(v8::Local<v8::Value> jsValu
e, const v8::PropertyCallbackInfo<void>& info) | 1750 static void customGetterLongAttributeAttributeSetter(v8::Local<v8::Value> jsValu
e, const v8::PropertyCallbackInfo<void>& info) |
| 1699 { | 1751 { |
| 1752 ExceptionState exceptionState(ExceptionState::SetterContext, "customGetterLo
ngAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 1700 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1753 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1701 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); | 1754 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
| 1702 imp->setCustomGetterLongAttribute(cppValue); | 1755 imp->setCustomGetterLongAttribute(cppValue); |
| 1703 } | 1756 } |
| 1704 | 1757 |
| 1705 static void customGetterLongAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1758 static void customGetterLongAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 1706 { | 1759 { |
| 1707 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1760 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 1708 TestObjectPythonV8Internal::customGetterLongAttributeAttributeSetter(jsValue
, info); | 1761 TestObjectPythonV8Internal::customGetterLongAttributeAttributeSetter(jsValue
, info); |
| 1709 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1762 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1776 static void deprecatedLongAttributeAttributeGetterCallback(v8::Local<v8::String>
, const v8::PropertyCallbackInfo<v8::Value>& info) | 1829 static void deprecatedLongAttributeAttributeGetterCallback(v8::Local<v8::String>
, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 1777 { | 1830 { |
| 1778 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1831 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1779 UseCounter::countDeprecation(activeExecutionContext(), UseCounter::LongAttri
bute); | 1832 UseCounter::countDeprecation(activeExecutionContext(), UseCounter::LongAttri
bute); |
| 1780 TestObjectPythonV8Internal::deprecatedLongAttributeAttributeGetter(info); | 1833 TestObjectPythonV8Internal::deprecatedLongAttributeAttributeGetter(info); |
| 1781 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1834 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1782 } | 1835 } |
| 1783 | 1836 |
| 1784 static void deprecatedLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue,
const v8::PropertyCallbackInfo<void>& info) | 1837 static void deprecatedLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue,
const v8::PropertyCallbackInfo<void>& info) |
| 1785 { | 1838 { |
| 1839 ExceptionState exceptionState(ExceptionState::SetterContext, "deprecatedLong
Attribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 1786 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1840 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1787 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); | 1841 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
| 1788 imp->setDeprecatedLongAttribute(cppValue); | 1842 imp->setDeprecatedLongAttribute(cppValue); |
| 1789 } | 1843 } |
| 1790 | 1844 |
| 1791 static void deprecatedLongAttributeAttributeSetterCallback(v8::Local<v8::String>
, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1845 static void deprecatedLongAttributeAttributeSetterCallback(v8::Local<v8::String>
, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 1792 { | 1846 { |
| 1793 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1847 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 1794 UseCounter::countDeprecation(activeExecutionContext(), UseCounter::LongAttri
bute); | 1848 UseCounter::countDeprecation(activeExecutionContext(), UseCounter::LongAttri
bute); |
| 1795 TestObjectPythonV8Internal::deprecatedLongAttributeAttributeSetter(jsValue,
info); | 1849 TestObjectPythonV8Internal::deprecatedLongAttributeAttributeSetter(jsValue,
info); |
| 1796 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1850 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1797 } | 1851 } |
| 1798 | 1852 |
| 1799 static void enforceRangeLongAttributeAttributeGetter(const v8::PropertyCallbackI
nfo<v8::Value>& info) | 1853 static void enforceRangeLongAttributeAttributeGetter(const v8::PropertyCallbackI
nfo<v8::Value>& info) |
| 1800 { | 1854 { |
| 1801 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1855 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1802 v8SetReturnValueInt(info, imp->enforceRangeLongAttribute()); | 1856 v8SetReturnValueInt(info, imp->enforceRangeLongAttribute()); |
| 1803 } | 1857 } |
| 1804 | 1858 |
| 1805 static void enforceRangeLongAttributeAttributeGetterCallback(v8::Local<v8::Strin
g>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1859 static void enforceRangeLongAttributeAttributeGetterCallback(v8::Local<v8::Strin
g>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 1806 { | 1860 { |
| 1807 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1861 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1808 TestObjectPythonV8Internal::enforceRangeLongAttributeAttributeGetter(info); | 1862 TestObjectPythonV8Internal::enforceRangeLongAttributeAttributeGetter(info); |
| 1809 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1863 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1810 } | 1864 } |
| 1811 | 1865 |
| 1812 static void enforceRangeLongAttributeAttributeSetter(v8::Local<v8::Value> jsValu
e, const v8::PropertyCallbackInfo<void>& info) | 1866 static void enforceRangeLongAttributeAttributeSetter(v8::Local<v8::Value> jsValu
e, const v8::PropertyCallbackInfo<void>& info) |
| 1813 { | 1867 { |
| 1868 ExceptionState exceptionState(ExceptionState::SetterContext, "enforceRangeLo
ngAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 1814 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1869 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1815 V8TRYCATCH_WITH_TYPECHECK_VOID(int, cppValue, toInt32(jsValue, EnforceRange,
ok), info.GetIsolate()); | 1870 V8TRYCATCH_WITH_TYPECHECK_VOID(int, cppValue, toInt32(jsValue, EnforceRange,
ok), info.GetIsolate()); |
| 1816 imp->setEnforceRangeLongAttribute(cppValue); | 1871 imp->setEnforceRangeLongAttribute(cppValue); |
| 1817 } | 1872 } |
| 1818 | 1873 |
| 1819 static void enforceRangeLongAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1874 static void enforceRangeLongAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 1820 { | 1875 { |
| 1821 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1876 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 1822 TestObjectPythonV8Internal::enforceRangeLongAttributeAttributeSetter(jsValue
, info); | 1877 TestObjectPythonV8Internal::enforceRangeLongAttributeAttributeSetter(jsValue
, info); |
| 1823 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1878 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1824 } | 1879 } |
| 1825 | 1880 |
| 1826 static void exposeJSAccessorsLongAttributeAttributeGetter(const v8::FunctionCall
backInfo<v8::Value>& info) | 1881 static void exposeJSAccessorsLongAttributeAttributeGetter(const v8::FunctionCall
backInfo<v8::Value>& info) |
| 1827 { | 1882 { |
| 1828 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1883 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1829 v8SetReturnValueInt(info, imp->exposeJSAccessorsLongAttribute()); | 1884 v8SetReturnValueInt(info, imp->exposeJSAccessorsLongAttribute()); |
| 1830 } | 1885 } |
| 1831 | 1886 |
| 1832 static void exposeJSAccessorsLongAttributeAttributeGetterCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) | 1887 static void exposeJSAccessorsLongAttributeAttributeGetterCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
| 1833 { | 1888 { |
| 1834 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1889 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1835 TestObjectPythonV8Internal::exposeJSAccessorsLongAttributeAttributeGetter(in
fo); | 1890 TestObjectPythonV8Internal::exposeJSAccessorsLongAttributeAttributeGetter(in
fo); |
| 1836 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1891 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1837 } | 1892 } |
| 1838 | 1893 |
| 1839 static void exposeJSAccessorsLongAttributeAttributeSetter(v8::Local<v8::Value> j
sValue, const v8::FunctionCallbackInfo<v8::Value>& info) | 1894 static void exposeJSAccessorsLongAttributeAttributeSetter(v8::Local<v8::Value> j
sValue, const v8::FunctionCallbackInfo<v8::Value>& info) |
| 1840 { | 1895 { |
| 1896 ExceptionState exceptionState(ExceptionState::SetterContext, "exposeJSAccess
orsLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 1841 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1897 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1842 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); | 1898 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
| 1843 imp->setExposeJSAccessorsLongAttribute(cppValue); | 1899 imp->setExposeJSAccessorsLongAttribute(cppValue); |
| 1844 } | 1900 } |
| 1845 | 1901 |
| 1846 static void exposeJSAccessorsLongAttributeAttributeSetterCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) | 1902 static void exposeJSAccessorsLongAttributeAttributeSetterCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
| 1847 { | 1903 { |
| 1848 v8::Local<v8::Value> jsValue = info[0]; | 1904 v8::Local<v8::Value> jsValue = info[0]; |
| 1849 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1905 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 1850 TestObjectPythonV8Internal::exposeJSAccessorsLongAttributeAttributeSetter(js
Value, info); | 1906 TestObjectPythonV8Internal::exposeJSAccessorsLongAttributeAttributeSetter(js
Value, info); |
| 1851 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1907 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1852 } | 1908 } |
| 1853 | 1909 |
| 1854 static void getterRaisesExceptionLongAttributeAttributeGetter(const v8::Property
CallbackInfo<v8::Value>& info) | 1910 static void getterRaisesExceptionLongAttributeAttributeGetter(const v8::Property
CallbackInfo<v8::Value>& info) |
| 1855 { | 1911 { |
| 1856 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1912 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1857 ExceptionState exceptionState(info.Holder(), info.GetIsolate()); | 1913 ExceptionState exceptionState(ExceptionState::GetterContext, "getterRaisesEx
ceptionLongAttribute", "TestObjectPython" ,info.Holder(), info.GetIsolate()); |
| 1858 int jsValue = imp->getterRaisesExceptionLongAttribute(exceptionState); | 1914 int jsValue = imp->getterRaisesExceptionLongAttribute(exceptionState); |
| 1859 if (UNLIKELY(exceptionState.throwIfNeeded())) | 1915 if (UNLIKELY(exceptionState.throwIfNeeded())) |
| 1860 return; | 1916 return; |
| 1861 v8SetReturnValueInt(info, jsValue); | 1917 v8SetReturnValueInt(info, jsValue); |
| 1862 } | 1918 } |
| 1863 | 1919 |
| 1864 static void getterRaisesExceptionLongAttributeAttributeGetterCallback(v8::Local<
v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1920 static void getterRaisesExceptionLongAttributeAttributeGetterCallback(v8::Local<
v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 1865 { | 1921 { |
| 1866 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1922 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1867 TestObjectPythonV8Internal::getterRaisesExceptionLongAttributeAttributeGette
r(info); | 1923 TestObjectPythonV8Internal::getterRaisesExceptionLongAttributeAttributeGette
r(info); |
| 1868 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1924 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1869 } | 1925 } |
| 1870 | 1926 |
| 1871 static void getterRaisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Valu
e> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1927 static void getterRaisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Valu
e> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 1872 { | 1928 { |
| 1929 ExceptionState exceptionState(ExceptionState::SetterContext, "getterRaisesEx
ceptionLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 1873 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1930 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1874 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); | 1931 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
| 1875 imp->setGetterRaisesExceptionLongAttribute(cppValue); | 1932 imp->setGetterRaisesExceptionLongAttribute(cppValue); |
| 1876 } | 1933 } |
| 1877 | 1934 |
| 1878 static void getterRaisesExceptionLongAttributeAttributeSetterCallback(v8::Local<
v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>&
info) | 1935 static void getterRaisesExceptionLongAttributeAttributeSetterCallback(v8::Local<
v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>&
info) |
| 1879 { | 1936 { |
| 1880 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1937 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 1881 TestObjectPythonV8Internal::getterRaisesExceptionLongAttributeAttributeSette
r(jsValue, info); | 1938 TestObjectPythonV8Internal::getterRaisesExceptionLongAttributeAttributeSette
r(jsValue, info); |
| 1882 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1939 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1883 } | 1940 } |
| 1884 | 1941 |
| 1885 static void implementedAsLongAttributeAttributeGetter(const v8::PropertyCallback
Info<v8::Value>& info) | 1942 static void implementedAsLongAttributeAttributeGetter(const v8::PropertyCallback
Info<v8::Value>& info) |
| 1886 { | 1943 { |
| 1887 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1944 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1888 v8SetReturnValueInt(info, imp->implementedAsName()); | 1945 v8SetReturnValueInt(info, imp->implementedAsName()); |
| 1889 } | 1946 } |
| 1890 | 1947 |
| 1891 static void implementedAsLongAttributeAttributeGetterCallback(v8::Local<v8::Stri
ng>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1948 static void implementedAsLongAttributeAttributeGetterCallback(v8::Local<v8::Stri
ng>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 1892 { | 1949 { |
| 1893 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1950 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1894 TestObjectPythonV8Internal::implementedAsLongAttributeAttributeGetter(info); | 1951 TestObjectPythonV8Internal::implementedAsLongAttributeAttributeGetter(info); |
| 1895 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1952 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1896 } | 1953 } |
| 1897 | 1954 |
| 1898 static void implementedAsLongAttributeAttributeSetter(v8::Local<v8::Value> jsVal
ue, const v8::PropertyCallbackInfo<void>& info) | 1955 static void implementedAsLongAttributeAttributeSetter(v8::Local<v8::Value> jsVal
ue, const v8::PropertyCallbackInfo<void>& info) |
| 1899 { | 1956 { |
| 1957 ExceptionState exceptionState(ExceptionState::SetterContext, "implementedAsL
ongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 1900 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1958 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1901 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); | 1959 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
| 1902 imp->setImplementedAsName(cppValue); | 1960 imp->setImplementedAsName(cppValue); |
| 1903 } | 1961 } |
| 1904 | 1962 |
| 1905 static void implementedAsLongAttributeAttributeSetterCallback(v8::Local<v8::Stri
ng>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1963 static void implementedAsLongAttributeAttributeSetterCallback(v8::Local<v8::Stri
ng>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 1906 { | 1964 { |
| 1907 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1965 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 1908 TestObjectPythonV8Internal::implementedAsLongAttributeAttributeSetter(jsValu
e, info); | 1966 TestObjectPythonV8Internal::implementedAsLongAttributeAttributeSetter(jsValu
e, info); |
| 1909 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1967 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 1925 | 1983 |
| 1926 static void customGetterImplementedAsLongAttributeAttributeGetterCallback(v8::Lo
cal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1984 static void customGetterImplementedAsLongAttributeAttributeGetterCallback(v8::Lo
cal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 1927 { | 1985 { |
| 1928 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1986 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1929 V8TestObjectPython::customGetterImplementedAsLongAttributeAttributeGetterCus
tom(info); | 1987 V8TestObjectPython::customGetterImplementedAsLongAttributeAttributeGetterCus
tom(info); |
| 1930 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1988 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1931 } | 1989 } |
| 1932 | 1990 |
| 1933 static void customGetterImplementedAsLongAttributeAttributeSetter(v8::Local<v8::
Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1991 static void customGetterImplementedAsLongAttributeAttributeSetter(v8::Local<v8::
Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 1934 { | 1992 { |
| 1993 ExceptionState exceptionState(ExceptionState::SetterContext, "customGetterIm
plementedAsLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate())
; |
| 1935 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1994 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1936 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); | 1995 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
| 1937 imp->setImplementedAsNameWithCustomGetter(cppValue); | 1996 imp->setImplementedAsNameWithCustomGetter(cppValue); |
| 1938 } | 1997 } |
| 1939 | 1998 |
| 1940 static void customGetterImplementedAsLongAttributeAttributeSetterCallback(v8::Lo
cal<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<vo
id>& info) | 1999 static void customGetterImplementedAsLongAttributeAttributeSetterCallback(v8::Lo
cal<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<vo
id>& info) |
| 1941 { | 2000 { |
| 1942 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2001 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 1943 TestObjectPythonV8Internal::customGetterImplementedAsLongAttributeAttributeS
etter(jsValue, info); | 2002 TestObjectPythonV8Internal::customGetterImplementedAsLongAttributeAttributeS
etter(jsValue, info); |
| 1944 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2003 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| (...skipping 28 matching lines...) Expand all Loading... |
| 1973 static void measureAsLongAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 2032 static void measureAsLongAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
| 1974 { | 2033 { |
| 1975 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2034 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1976 UseCounter::count(activeDOMWindow(), UseCounter::TestFeature); | 2035 UseCounter::count(activeDOMWindow(), UseCounter::TestFeature); |
| 1977 TestObjectPythonV8Internal::measureAsLongAttributeAttributeGetter(info); | 2036 TestObjectPythonV8Internal::measureAsLongAttributeAttributeGetter(info); |
| 1978 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2037 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1979 } | 2038 } |
| 1980 | 2039 |
| 1981 static void measureAsLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue,
const v8::PropertyCallbackInfo<void>& info) | 2040 static void measureAsLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue,
const v8::PropertyCallbackInfo<void>& info) |
| 1982 { | 2041 { |
| 2042 ExceptionState exceptionState(ExceptionState::SetterContext, "measureAsLongA
ttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 1983 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2043 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1984 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); | 2044 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
| 1985 imp->setMeasureAsLongAttribute(cppValue); | 2045 imp->setMeasureAsLongAttribute(cppValue); |
| 1986 } | 2046 } |
| 1987 | 2047 |
| 1988 static void measureAsLongAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2048 static void measureAsLongAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 1989 { | 2049 { |
| 1990 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2050 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 1991 UseCounter::count(activeDOMWindow(), UseCounter::TestFeature); | 2051 UseCounter::count(activeDOMWindow(), UseCounter::TestFeature); |
| 1992 TestObjectPythonV8Internal::measureAsLongAttributeAttributeSetter(jsValue, i
nfo); | 2052 TestObjectPythonV8Internal::measureAsLongAttributeAttributeSetter(jsValue, i
nfo); |
| 1993 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2053 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1994 } | 2054 } |
| 1995 | 2055 |
| 1996 static void notEnumerableLongAttributeAttributeGetter(const v8::PropertyCallback
Info<v8::Value>& info) | 2056 static void notEnumerableLongAttributeAttributeGetter(const v8::PropertyCallback
Info<v8::Value>& info) |
| 1997 { | 2057 { |
| 1998 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2058 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1999 v8SetReturnValueInt(info, imp->notEnumerableLongAttribute()); | 2059 v8SetReturnValueInt(info, imp->notEnumerableLongAttribute()); |
| 2000 } | 2060 } |
| 2001 | 2061 |
| 2002 static void notEnumerableLongAttributeAttributeGetterCallback(v8::Local<v8::Stri
ng>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2062 static void notEnumerableLongAttributeAttributeGetterCallback(v8::Local<v8::Stri
ng>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 2003 { | 2063 { |
| 2004 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2064 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 2005 TestObjectPythonV8Internal::notEnumerableLongAttributeAttributeGetter(info); | 2065 TestObjectPythonV8Internal::notEnumerableLongAttributeAttributeGetter(info); |
| 2006 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2066 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2007 } | 2067 } |
| 2008 | 2068 |
| 2009 static void notEnumerableLongAttributeAttributeSetter(v8::Local<v8::Value> jsVal
ue, const v8::PropertyCallbackInfo<void>& info) | 2069 static void notEnumerableLongAttributeAttributeSetter(v8::Local<v8::Value> jsVal
ue, const v8::PropertyCallbackInfo<void>& info) |
| 2010 { | 2070 { |
| 2071 ExceptionState exceptionState(ExceptionState::SetterContext, "notEnumerableL
ongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 2011 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2072 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2012 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); | 2073 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
| 2013 imp->setNotEnumerableLongAttribute(cppValue); | 2074 imp->setNotEnumerableLongAttribute(cppValue); |
| 2014 } | 2075 } |
| 2015 | 2076 |
| 2016 static void notEnumerableLongAttributeAttributeSetterCallback(v8::Local<v8::Stri
ng>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2077 static void notEnumerableLongAttributeAttributeSetterCallback(v8::Local<v8::Stri
ng>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 2017 { | 2078 { |
| 2018 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2079 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 2019 TestObjectPythonV8Internal::notEnumerableLongAttributeAttributeSetter(jsValu
e, info); | 2080 TestObjectPythonV8Internal::notEnumerableLongAttributeAttributeSetter(jsValu
e, info); |
| 2020 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2081 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2021 } | 2082 } |
| 2022 | 2083 |
| 2023 static void perContextEnabledLongAttributeAttributeGetter(const v8::PropertyCall
backInfo<v8::Value>& info) | 2084 static void perContextEnabledLongAttributeAttributeGetter(const v8::PropertyCall
backInfo<v8::Value>& info) |
| 2024 { | 2085 { |
| 2025 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2086 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2026 v8SetReturnValueInt(info, imp->perContextEnabledLongAttribute()); | 2087 v8SetReturnValueInt(info, imp->perContextEnabledLongAttribute()); |
| 2027 } | 2088 } |
| 2028 | 2089 |
| 2029 static void perContextEnabledLongAttributeAttributeGetterCallback(v8::Local<v8::
String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2090 static void perContextEnabledLongAttributeAttributeGetterCallback(v8::Local<v8::
String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 2030 { | 2091 { |
| 2031 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2092 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 2032 TestObjectPythonV8Internal::perContextEnabledLongAttributeAttributeGetter(in
fo); | 2093 TestObjectPythonV8Internal::perContextEnabledLongAttributeAttributeGetter(in
fo); |
| 2033 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2094 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2034 } | 2095 } |
| 2035 | 2096 |
| 2036 static void perContextEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> j
sValue, const v8::PropertyCallbackInfo<void>& info) | 2097 static void perContextEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> j
sValue, const v8::PropertyCallbackInfo<void>& info) |
| 2037 { | 2098 { |
| 2099 ExceptionState exceptionState(ExceptionState::SetterContext, "perContextEnab
ledLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 2038 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2100 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2039 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); | 2101 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
| 2040 imp->setPerContextEnabledLongAttribute(cppValue); | 2102 imp->setPerContextEnabledLongAttribute(cppValue); |
| 2041 } | 2103 } |
| 2042 | 2104 |
| 2043 static void perContextEnabledLongAttributeAttributeSetterCallback(v8::Local<v8::
String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& inf
o) | 2105 static void perContextEnabledLongAttributeAttributeSetterCallback(v8::Local<v8::
String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& inf
o) |
| 2044 { | 2106 { |
| 2045 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2107 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 2046 TestObjectPythonV8Internal::perContextEnabledLongAttributeAttributeSetter(js
Value, info); | 2108 TestObjectPythonV8Internal::perContextEnabledLongAttributeAttributeSetter(js
Value, info); |
| 2047 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2109 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2048 } | 2110 } |
| 2049 | 2111 |
| 2050 static void perWorldBindingsLongAttributeAttributeGetter(const v8::PropertyCallb
ackInfo<v8::Value>& info) | 2112 static void perWorldBindingsLongAttributeAttributeGetter(const v8::PropertyCallb
ackInfo<v8::Value>& info) |
| 2051 { | 2113 { |
| 2052 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2114 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2053 v8SetReturnValueInt(info, imp->perWorldBindingsLongAttribute()); | 2115 v8SetReturnValueInt(info, imp->perWorldBindingsLongAttribute()); |
| 2054 } | 2116 } |
| 2055 | 2117 |
| 2056 static void perWorldBindingsLongAttributeAttributeGetterCallback(v8::Local<v8::S
tring>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2118 static void perWorldBindingsLongAttributeAttributeGetterCallback(v8::Local<v8::S
tring>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 2057 { | 2119 { |
| 2058 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2120 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 2059 TestObjectPythonV8Internal::perWorldBindingsLongAttributeAttributeGetter(inf
o); | 2121 TestObjectPythonV8Internal::perWorldBindingsLongAttributeAttributeGetter(inf
o); |
| 2060 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2122 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2061 } | 2123 } |
| 2062 | 2124 |
| 2063 static void perWorldBindingsLongAttributeAttributeSetter(v8::Local<v8::Value> js
Value, const v8::PropertyCallbackInfo<void>& info) | 2125 static void perWorldBindingsLongAttributeAttributeSetter(v8::Local<v8::Value> js
Value, const v8::PropertyCallbackInfo<void>& info) |
| 2064 { | 2126 { |
| 2127 ExceptionState exceptionState(ExceptionState::SetterContext, "perWorldBindin
gsLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 2065 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2128 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2066 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); | 2129 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
| 2067 imp->setPerWorldBindingsLongAttribute(cppValue); | 2130 imp->setPerWorldBindingsLongAttribute(cppValue); |
| 2068 } | 2131 } |
| 2069 | 2132 |
| 2070 static void perWorldBindingsLongAttributeAttributeSetterCallback(v8::Local<v8::S
tring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info
) | 2133 static void perWorldBindingsLongAttributeAttributeSetterCallback(v8::Local<v8::S
tring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info
) |
| 2071 { | 2134 { |
| 2072 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2135 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 2073 TestObjectPythonV8Internal::perWorldBindingsLongAttributeAttributeSetter(jsV
alue, info); | 2136 TestObjectPythonV8Internal::perWorldBindingsLongAttributeAttributeSetter(jsV
alue, info); |
| 2074 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2137 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2075 } | 2138 } |
| 2076 | 2139 |
| 2077 static void perWorldBindingsLongAttributeAttributeGetterForMainWorld(const v8::P
ropertyCallbackInfo<v8::Value>& info) | 2140 static void perWorldBindingsLongAttributeAttributeGetterForMainWorld(const v8::P
ropertyCallbackInfo<v8::Value>& info) |
| 2078 { | 2141 { |
| 2079 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2142 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2080 v8SetReturnValueInt(info, imp->perWorldBindingsLongAttribute()); | 2143 v8SetReturnValueInt(info, imp->perWorldBindingsLongAttribute()); |
| 2081 } | 2144 } |
| 2082 | 2145 |
| 2083 static void perWorldBindingsLongAttributeAttributeGetterCallbackForMainWorld(v8:
:Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2146 static void perWorldBindingsLongAttributeAttributeGetterCallbackForMainWorld(v8:
:Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 2084 { | 2147 { |
| 2085 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2148 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 2086 TestObjectPythonV8Internal::perWorldBindingsLongAttributeAttributeGetterForM
ainWorld(info); | 2149 TestObjectPythonV8Internal::perWorldBindingsLongAttributeAttributeGetterForM
ainWorld(info); |
| 2087 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2150 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2088 } | 2151 } |
| 2089 | 2152 |
| 2090 static void perWorldBindingsLongAttributeAttributeSetterForMainWorld(v8::Local<v
8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2153 static void perWorldBindingsLongAttributeAttributeSetterForMainWorld(v8::Local<v
8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 2091 { | 2154 { |
| 2155 ExceptionState exceptionState(ExceptionState::SetterContext, "perWorldBindin
gsLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 2092 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2156 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2093 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); | 2157 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
| 2094 imp->setPerWorldBindingsLongAttribute(cppValue); | 2158 imp->setPerWorldBindingsLongAttribute(cppValue); |
| 2095 } | 2159 } |
| 2096 | 2160 |
| 2097 static void perWorldBindingsLongAttributeAttributeSetterCallbackForMainWorld(v8:
:Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo
<void>& info) | 2161 static void perWorldBindingsLongAttributeAttributeSetterCallbackForMainWorld(v8:
:Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo
<void>& info) |
| 2098 { | 2162 { |
| 2099 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2163 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 2100 TestObjectPythonV8Internal::perWorldBindingsLongAttributeAttributeSetterForM
ainWorld(jsValue, info); | 2164 TestObjectPythonV8Internal::perWorldBindingsLongAttributeAttributeSetterForM
ainWorld(jsValue, info); |
| 2101 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2165 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2138 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2202 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 2139 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 2203 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
| 2140 if (contextData && contextData->activityLogger()) | 2204 if (contextData && contextData->activityLogger()) |
| 2141 contextData->activityLogger()->log("TestObjectPython.activityLoggingAcce
ssPerWorldBindingsLongAttribute", 0, 0, "Getter"); | 2205 contextData->activityLogger()->log("TestObjectPython.activityLoggingAcce
ssPerWorldBindingsLongAttribute", 0, 0, "Getter"); |
| 2142 TestObjectPythonV8Internal::activityLoggingAccessPerWorldBindingsLongAttribu
teAttributeGetter(info); | 2206 TestObjectPythonV8Internal::activityLoggingAccessPerWorldBindingsLongAttribu
teAttributeGetter(info); |
| 2143 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2207 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2144 } | 2208 } |
| 2145 | 2209 |
| 2146 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetter(v8
::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2210 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetter(v8
::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 2147 { | 2211 { |
| 2212 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessPerWorldBindingsLongAttribute", "TestObjectPython", info.Holder(), info.G
etIsolate()); |
| 2148 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2213 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2149 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); | 2214 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
| 2150 imp->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); | 2215 imp->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); |
| 2151 } | 2216 } |
| 2152 | 2217 |
| 2153 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal
lback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCal
lbackInfo<void>& info) | 2218 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal
lback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCal
lbackInfo<void>& info) |
| 2154 { | 2219 { |
| 2155 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2220 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 2156 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 2221 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
| 2157 if (contextData && contextData->activityLogger()) { | 2222 if (contextData && contextData->activityLogger()) { |
| (...skipping 15 matching lines...) Expand all Loading... |
| 2173 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2238 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 2174 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 2239 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
| 2175 if (contextData && contextData->activityLogger()) | 2240 if (contextData && contextData->activityLogger()) |
| 2176 contextData->activityLogger()->log("TestObjectPython.activityLoggingAcce
ssPerWorldBindingsLongAttribute", 0, 0, "Getter"); | 2241 contextData->activityLogger()->log("TestObjectPython.activityLoggingAcce
ssPerWorldBindingsLongAttribute", 0, 0, "Getter"); |
| 2177 TestObjectPythonV8Internal::activityLoggingAccessPerWorldBindingsLongAttribu
teAttributeGetterForMainWorld(info); | 2242 TestObjectPythonV8Internal::activityLoggingAccessPerWorldBindingsLongAttribu
teAttributeGetterForMainWorld(info); |
| 2178 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2243 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2179 } | 2244 } |
| 2180 | 2245 |
| 2181 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterFor
MainWorld(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& in
fo) | 2246 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterFor
MainWorld(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& in
fo) |
| 2182 { | 2247 { |
| 2248 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessPerWorldBindingsLongAttribute", "TestObjectPython", info.Holder(), info.G
etIsolate()); |
| 2183 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2249 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2184 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); | 2250 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
| 2185 imp->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); | 2251 imp->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); |
| 2186 } | 2252 } |
| 2187 | 2253 |
| 2188 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal
lbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8:
:PropertyCallbackInfo<void>& info) | 2254 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal
lbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8:
:PropertyCallbackInfo<void>& info) |
| 2189 { | 2255 { |
| 2190 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2256 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 2191 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 2257 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
| 2192 if (contextData && contextData->activityLogger()) { | 2258 if (contextData && contextData->activityLogger()) { |
| (...skipping 15 matching lines...) Expand all Loading... |
| 2208 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2274 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 2209 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 2275 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
| 2210 if (contextData && contextData->activityLogger()) | 2276 if (contextData && contextData->activityLogger()) |
| 2211 contextData->activityLogger()->log("TestObjectPython.activityLoggingAcce
ssForIsolatedWorldsPerWorldBindingsLongAttribute", 0, 0, "Getter"); | 2277 contextData->activityLogger()->log("TestObjectPython.activityLoggingAcce
ssForIsolatedWorldsPerWorldBindingsLongAttribute", 0, 0, "Getter"); |
| 2212 TestObjectPythonV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBi
ndingsLongAttributeAttributeGetter(info); | 2278 TestObjectPythonV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBi
ndingsLongAttributeAttributeGetter(info); |
| 2213 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2279 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2214 } | 2280 } |
| 2215 | 2281 |
| 2216 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void
>& info) | 2282 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void
>& info) |
| 2217 { | 2283 { |
| 2284 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObjectPython", info
.Holder(), info.GetIsolate()); |
| 2218 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2285 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2219 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); | 2286 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
| 2220 imp->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute(
cppValue); | 2287 imp->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute(
cppValue); |
| 2221 } | 2288 } |
| 2222 | 2289 |
| 2223 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, cons
t v8::PropertyCallbackInfo<void>& info) | 2290 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, cons
t v8::PropertyCallbackInfo<void>& info) |
| 2224 { | 2291 { |
| 2225 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2292 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 2226 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 2293 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
| 2227 if (contextData && contextData->activityLogger()) { | 2294 if (contextData && contextData->activityLogger()) { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 2240 | 2307 |
| 2241 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterCallbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCall
backInfo<v8::Value>& info) | 2308 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterCallbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCall
backInfo<v8::Value>& info) |
| 2242 { | 2309 { |
| 2243 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2310 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 2244 TestObjectPythonV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBi
ndingsLongAttributeAttributeGetterForMainWorld(info); | 2311 TestObjectPythonV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBi
ndingsLongAttributeAttributeGetterForMainWorld(info); |
| 2245 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2312 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2246 } | 2313 } |
| 2247 | 2314 |
| 2248 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterForMainWorld(v8::Local<v8::Value> jsValue, const v8::PropertyCallb
ackInfo<void>& info) | 2315 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterForMainWorld(v8::Local<v8::Value> jsValue, const v8::PropertyCallb
ackInfo<void>& info) |
| 2249 { | 2316 { |
| 2317 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObjectPython", info
.Holder(), info.GetIsolate()); |
| 2250 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2318 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2251 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); | 2319 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
| 2252 imp->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute(
cppValue); | 2320 imp->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute(
cppValue); |
| 2253 } | 2321 } |
| 2254 | 2322 |
| 2255 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> j
sValue, const v8::PropertyCallbackInfo<void>& info) | 2323 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> j
sValue, const v8::PropertyCallbackInfo<void>& info) |
| 2256 { | 2324 { |
| 2257 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2325 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 2258 TestObjectPythonV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBi
ndingsLongAttributeAttributeSetterForMainWorld(jsValue, info); | 2326 TestObjectPythonV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBi
ndingsLongAttributeAttributeSetterForMainWorld(jsValue, info); |
| 2259 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2327 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 2270 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2338 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 2271 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 2339 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
| 2272 if (contextData && contextData->activityLogger()) | 2340 if (contextData && contextData->activityLogger()) |
| 2273 contextData->activityLogger()->log("TestObjectPython.activityLoggingGett
erPerWorldBindingsLongAttribute", 0, 0, "Getter"); | 2341 contextData->activityLogger()->log("TestObjectPython.activityLoggingGett
erPerWorldBindingsLongAttribute", 0, 0, "Getter"); |
| 2274 TestObjectPythonV8Internal::activityLoggingGetterPerWorldBindingsLongAttribu
teAttributeGetter(info); | 2342 TestObjectPythonV8Internal::activityLoggingGetterPerWorldBindingsLongAttribu
teAttributeGetter(info); |
| 2275 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2343 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2276 } | 2344 } |
| 2277 | 2345 |
| 2278 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetter(v8
::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2346 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetter(v8
::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 2279 { | 2347 { |
| 2348 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterPerWorldBindingsLongAttribute", "TestObjectPython", info.Holder(), info.G
etIsolate()); |
| 2280 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2349 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2281 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); | 2350 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
| 2282 imp->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue); | 2351 imp->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue); |
| 2283 } | 2352 } |
| 2284 | 2353 |
| 2285 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCal
lback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCal
lbackInfo<void>& info) | 2354 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCal
lback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCal
lbackInfo<void>& info) |
| 2286 { | 2355 { |
| 2287 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2356 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 2288 TestObjectPythonV8Internal::activityLoggingGetterPerWorldBindingsLongAttribu
teAttributeSetter(jsValue, info); | 2357 TestObjectPythonV8Internal::activityLoggingGetterPerWorldBindingsLongAttribu
teAttributeSetter(jsValue, info); |
| 2289 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2358 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 2300 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2369 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 2301 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 2370 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
| 2302 if (contextData && contextData->activityLogger()) | 2371 if (contextData && contextData->activityLogger()) |
| 2303 contextData->activityLogger()->log("TestObjectPython.activityLoggingGett
erPerWorldBindingsLongAttribute", 0, 0, "Getter"); | 2372 contextData->activityLogger()->log("TestObjectPython.activityLoggingGett
erPerWorldBindingsLongAttribute", 0, 0, "Getter"); |
| 2304 TestObjectPythonV8Internal::activityLoggingGetterPerWorldBindingsLongAttribu
teAttributeGetterForMainWorld(info); | 2373 TestObjectPythonV8Internal::activityLoggingGetterPerWorldBindingsLongAttribu
teAttributeGetterForMainWorld(info); |
| 2305 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2374 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2306 } | 2375 } |
| 2307 | 2376 |
| 2308 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterFor
MainWorld(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& in
fo) | 2377 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterFor
MainWorld(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& in
fo) |
| 2309 { | 2378 { |
| 2379 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterPerWorldBindingsLongAttribute", "TestObjectPython", info.Holder(), info.G
etIsolate()); |
| 2310 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2380 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2311 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); | 2381 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
| 2312 imp->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue); | 2382 imp->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue); |
| 2313 } | 2383 } |
| 2314 | 2384 |
| 2315 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCal
lbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8:
:PropertyCallbackInfo<void>& info) | 2385 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCal
lbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8:
:PropertyCallbackInfo<void>& info) |
| 2316 { | 2386 { |
| 2317 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2387 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 2318 TestObjectPythonV8Internal::activityLoggingGetterPerWorldBindingsLongAttribu
teAttributeSetterForMainWorld(jsValue, info); | 2388 TestObjectPythonV8Internal::activityLoggingGetterPerWorldBindingsLongAttribu
teAttributeSetterForMainWorld(jsValue, info); |
| 2319 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2389 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 2330 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2400 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 2331 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 2401 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
| 2332 if (contextData && contextData->activityLogger()) | 2402 if (contextData && contextData->activityLogger()) |
| 2333 contextData->activityLogger()->log("TestObjectPython.activityLoggingGett
erForIsolatedWorldsPerWorldBindingsLongAttribute", 0, 0, "Getter"); | 2403 contextData->activityLogger()->log("TestObjectPython.activityLoggingGett
erForIsolatedWorldsPerWorldBindingsLongAttribute", 0, 0, "Getter"); |
| 2334 TestObjectPythonV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBi
ndingsLongAttributeAttributeGetter(info); | 2404 TestObjectPythonV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBi
ndingsLongAttributeAttributeGetter(info); |
| 2335 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2405 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2336 } | 2406 } |
| 2337 | 2407 |
| 2338 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void
>& info) | 2408 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void
>& info) |
| 2339 { | 2409 { |
| 2410 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObjectPython", info
.Holder(), info.GetIsolate()); |
| 2340 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2411 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2341 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); | 2412 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
| 2342 imp->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute(
cppValue); | 2413 imp->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute(
cppValue); |
| 2343 } | 2414 } |
| 2344 | 2415 |
| 2345 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, cons
t v8::PropertyCallbackInfo<void>& info) | 2416 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, cons
t v8::PropertyCallbackInfo<void>& info) |
| 2346 { | 2417 { |
| 2347 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2418 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 2348 TestObjectPythonV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBi
ndingsLongAttributeAttributeSetter(jsValue, info); | 2419 TestObjectPythonV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBi
ndingsLongAttributeAttributeSetter(jsValue, info); |
| 2349 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2420 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2350 } | 2421 } |
| 2351 | 2422 |
| 2352 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterForMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) | 2423 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterForMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) |
| 2353 { | 2424 { |
| 2354 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2425 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2355 v8SetReturnValueInt(info, imp->activityLoggingGetterForIsolatedWorldsPerWorl
dBindingsLongAttribute()); | 2426 v8SetReturnValueInt(info, imp->activityLoggingGetterForIsolatedWorldsPerWorl
dBindingsLongAttribute()); |
| 2356 } | 2427 } |
| 2357 | 2428 |
| 2358 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterCallbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCall
backInfo<v8::Value>& info) | 2429 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterCallbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCall
backInfo<v8::Value>& info) |
| 2359 { | 2430 { |
| 2360 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2431 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 2361 TestObjectPythonV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBi
ndingsLongAttributeAttributeGetterForMainWorld(info); | 2432 TestObjectPythonV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBi
ndingsLongAttributeAttributeGetterForMainWorld(info); |
| 2362 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2433 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2363 } | 2434 } |
| 2364 | 2435 |
| 2365 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterForMainWorld(v8::Local<v8::Value> jsValue, const v8::PropertyCallb
ackInfo<void>& info) | 2436 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterForMainWorld(v8::Local<v8::Value> jsValue, const v8::PropertyCallb
ackInfo<void>& info) |
| 2366 { | 2437 { |
| 2438 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObjectPython", info
.Holder(), info.GetIsolate()); |
| 2367 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2439 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2368 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); | 2440 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
| 2369 imp->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute(
cppValue); | 2441 imp->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute(
cppValue); |
| 2370 } | 2442 } |
| 2371 | 2443 |
| 2372 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> j
sValue, const v8::PropertyCallbackInfo<void>& info) | 2444 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> j
sValue, const v8::PropertyCallbackInfo<void>& info) |
| 2373 { | 2445 { |
| 2374 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2446 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 2375 TestObjectPythonV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBi
ndingsLongAttributeAttributeSetterForMainWorld(jsValue, info); | 2447 TestObjectPythonV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBi
ndingsLongAttributeAttributeSetterForMainWorld(jsValue, info); |
| 2376 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2448 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2377 } | 2449 } |
| 2378 | 2450 |
| 2379 static void raisesExceptionLongAttributeAttributeGetter(const v8::PropertyCallba
ckInfo<v8::Value>& info) | 2451 static void raisesExceptionLongAttributeAttributeGetter(const v8::PropertyCallba
ckInfo<v8::Value>& info) |
| 2380 { | 2452 { |
| 2381 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2453 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2382 ExceptionState exceptionState(info.Holder(), info.GetIsolate()); | 2454 ExceptionState exceptionState(ExceptionState::GetterContext, "raisesExceptio
nLongAttribute", "TestObjectPython" ,info.Holder(), info.GetIsolate()); |
| 2383 int jsValue = imp->raisesExceptionLongAttribute(exceptionState); | 2455 int jsValue = imp->raisesExceptionLongAttribute(exceptionState); |
| 2384 if (UNLIKELY(exceptionState.throwIfNeeded())) | 2456 if (UNLIKELY(exceptionState.throwIfNeeded())) |
| 2385 return; | 2457 return; |
| 2386 v8SetReturnValueInt(info, jsValue); | 2458 v8SetReturnValueInt(info, jsValue); |
| 2387 } | 2459 } |
| 2388 | 2460 |
| 2389 static void raisesExceptionLongAttributeAttributeGetterCallback(v8::Local<v8::St
ring>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2461 static void raisesExceptionLongAttributeAttributeGetterCallback(v8::Local<v8::St
ring>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 2390 { | 2462 { |
| 2391 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2463 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 2392 TestObjectPythonV8Internal::raisesExceptionLongAttributeAttributeGetter(info
); | 2464 TestObjectPythonV8Internal::raisesExceptionLongAttributeAttributeGetter(info
); |
| 2393 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2465 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2394 } | 2466 } |
| 2395 | 2467 |
| 2396 static void raisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Value> jsV
alue, const v8::PropertyCallbackInfo<void>& info) | 2468 static void raisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Value> jsV
alue, const v8::PropertyCallbackInfo<void>& info) |
| 2397 { | 2469 { |
| 2470 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio
nLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 2398 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2471 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2399 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); | 2472 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
| 2400 ExceptionState exceptionState(info.Holder(), info.GetIsolate()); | |
| 2401 imp->setRaisesExceptionLongAttribute(cppValue, exceptionState); | 2473 imp->setRaisesExceptionLongAttribute(cppValue, exceptionState); |
| 2402 exceptionState.throwIfNeeded(); | 2474 exceptionState.throwIfNeeded(); |
| 2403 } | 2475 } |
| 2404 | 2476 |
| 2405 static void raisesExceptionLongAttributeAttributeSetterCallback(v8::Local<v8::St
ring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2477 static void raisesExceptionLongAttributeAttributeSetterCallback(v8::Local<v8::St
ring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 2406 { | 2478 { |
| 2407 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2479 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 2408 TestObjectPythonV8Internal::raisesExceptionLongAttributeAttributeSetter(jsVa
lue, info); | 2480 TestObjectPythonV8Internal::raisesExceptionLongAttributeAttributeSetter(jsVa
lue, info); |
| 2409 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2481 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2410 } | 2482 } |
| 2411 | 2483 |
| 2412 static void reflectTestInterfaceAttributeAttributeGetter(const v8::PropertyCallb
ackInfo<v8::Value>& info) | 2484 static void reflectTestInterfaceAttributeAttributeGetter(const v8::PropertyCallb
ackInfo<v8::Value>& info) |
| 2413 { | 2485 { |
| 2414 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2486 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2415 v8SetReturnValueFast(info, imp->fastGetAttribute(HTMLNames::reflecttestinter
faceattributeAttr), imp); | 2487 v8SetReturnValueFast(info, imp->fastGetAttribute(HTMLNames::reflecttestinter
faceattributeAttr), imp); |
| 2416 } | 2488 } |
| 2417 | 2489 |
| 2418 static void reflectTestInterfaceAttributeAttributeGetterCallback(v8::Local<v8::S
tring>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2490 static void reflectTestInterfaceAttributeAttributeGetterCallback(v8::Local<v8::S
tring>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 2419 { | 2491 { |
| 2420 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2492 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 2421 TestObjectPythonV8Internal::reflectTestInterfaceAttributeAttributeGetter(inf
o); | 2493 TestObjectPythonV8Internal::reflectTestInterfaceAttributeAttributeGetter(inf
o); |
| 2422 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2494 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2423 } | 2495 } |
| 2424 | 2496 |
| 2425 static void reflectTestInterfaceAttributeAttributeSetter(v8::Local<v8::Value> js
Value, const v8::PropertyCallbackInfo<void>& info) | 2497 static void reflectTestInterfaceAttributeAttributeSetter(v8::Local<v8::Value> js
Value, const v8::PropertyCallbackInfo<void>& info) |
| 2426 { | 2498 { |
| 2499 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectTestInt
erfaceAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 2427 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2500 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2428 V8TRYCATCH_VOID(TestInterface*, cppValue, V8TestInterface::hasInstance(jsVal
ue, info.GetIsolate(), worldType(info.GetIsolate())) ? V8TestInterface::toNative
(v8::Handle<v8::Object>::Cast(jsValue)) : 0); | 2501 V8TRYCATCH_VOID(TestInterface*, cppValue, V8TestInterface::hasInstance(jsVal
ue, info.GetIsolate(), worldType(info.GetIsolate())) ? V8TestInterface::toNative
(v8::Handle<v8::Object>::Cast(jsValue)) : 0); |
| 2429 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 2502 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
| 2430 imp->setAttribute(HTMLNames::reflecttestinterfaceattributeAttr, WTF::getPtr(
cppValue)); | 2503 imp->setAttribute(HTMLNames::reflecttestinterfaceattributeAttr, WTF::getPtr(
cppValue)); |
| 2431 } | 2504 } |
| 2432 | 2505 |
| 2433 static void reflectTestInterfaceAttributeAttributeSetterCallback(v8::Local<v8::S
tring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info
) | 2506 static void reflectTestInterfaceAttributeAttributeSetterCallback(v8::Local<v8::S
tring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info
) |
| 2434 { | 2507 { |
| 2435 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2508 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 2436 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 2509 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
| 2437 TestObjectPythonV8Internal::reflectTestInterfaceAttributeAttributeSetter(jsV
alue, info); | 2510 TestObjectPythonV8Internal::reflectTestInterfaceAttributeAttributeSetter(jsV
alue, info); |
| 2438 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2511 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2439 } | 2512 } |
| 2440 | 2513 |
| 2441 static void reflectReflectedNameAttributeTestAttributeAttributeGetter(const v8::
PropertyCallbackInfo<v8::Value>& info) | 2514 static void reflectReflectedNameAttributeTestAttributeAttributeGetter(const v8::
PropertyCallbackInfo<v8::Value>& info) |
| 2442 { | 2515 { |
| 2443 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2516 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2444 v8SetReturnValueFast(info, imp->fastGetAttribute(HTMLNames::reflectedNameAtt
ributeAttr), imp); | 2517 v8SetReturnValueFast(info, imp->fastGetAttribute(HTMLNames::reflectedNameAtt
ributeAttr), imp); |
| 2445 } | 2518 } |
| 2446 | 2519 |
| 2447 static void reflectReflectedNameAttributeTestAttributeAttributeGetterCallback(v8
::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2520 static void reflectReflectedNameAttributeTestAttributeAttributeGetterCallback(v8
::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 2448 { | 2521 { |
| 2449 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2522 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 2450 TestObjectPythonV8Internal::reflectReflectedNameAttributeTestAttributeAttrib
uteGetter(info); | 2523 TestObjectPythonV8Internal::reflectReflectedNameAttributeTestAttributeAttrib
uteGetter(info); |
| 2451 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2524 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2452 } | 2525 } |
| 2453 | 2526 |
| 2454 static void reflectReflectedNameAttributeTestAttributeAttributeSetter(v8::Local<
v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2527 static void reflectReflectedNameAttributeTestAttributeAttributeSetter(v8::Local<
v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 2455 { | 2528 { |
| 2529 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectReflect
edNameAttributeTestAttribute", "TestObjectPython", info.Holder(), info.GetIsolat
e()); |
| 2456 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2530 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2457 V8TRYCATCH_VOID(TestInterface*, cppValue, V8TestInterface::hasInstance(jsVal
ue, info.GetIsolate(), worldType(info.GetIsolate())) ? V8TestInterface::toNative
(v8::Handle<v8::Object>::Cast(jsValue)) : 0); | 2531 V8TRYCATCH_VOID(TestInterface*, cppValue, V8TestInterface::hasInstance(jsVal
ue, info.GetIsolate(), worldType(info.GetIsolate())) ? V8TestInterface::toNative
(v8::Handle<v8::Object>::Cast(jsValue)) : 0); |
| 2458 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 2532 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
| 2459 imp->setAttribute(HTMLNames::reflectedNameAttributeAttr, WTF::getPtr(cppValu
e)); | 2533 imp->setAttribute(HTMLNames::reflectedNameAttributeAttr, WTF::getPtr(cppValu
e)); |
| 2460 } | 2534 } |
| 2461 | 2535 |
| 2462 static void reflectReflectedNameAttributeTestAttributeAttributeSetterCallback(v8
::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInf
o<void>& info) | 2536 static void reflectReflectedNameAttributeTestAttributeAttributeSetterCallback(v8
::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInf
o<void>& info) |
| 2463 { | 2537 { |
| 2464 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2538 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 2465 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 2539 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
| 2466 TestObjectPythonV8Internal::reflectReflectedNameAttributeTestAttributeAttrib
uteSetter(jsValue, info); | 2540 TestObjectPythonV8Internal::reflectReflectedNameAttributeTestAttributeAttrib
uteSetter(jsValue, info); |
| 2467 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2541 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2468 } | 2542 } |
| 2469 | 2543 |
| 2470 static void reflectBooleanAttributeAttributeGetter(const v8::PropertyCallbackInf
o<v8::Value>& info) | 2544 static void reflectBooleanAttributeAttributeGetter(const v8::PropertyCallbackInf
o<v8::Value>& info) |
| 2471 { | 2545 { |
| 2472 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2546 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2473 v8SetReturnValueBool(info, imp->fastHasAttribute(HTMLNames::reflectbooleanat
tributeAttr)); | 2547 v8SetReturnValueBool(info, imp->fastHasAttribute(HTMLNames::reflectbooleanat
tributeAttr)); |
| 2474 } | 2548 } |
| 2475 | 2549 |
| 2476 static void reflectBooleanAttributeAttributeGetterCallback(v8::Local<v8::String>
, const v8::PropertyCallbackInfo<v8::Value>& info) | 2550 static void reflectBooleanAttributeAttributeGetterCallback(v8::Local<v8::String>
, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 2477 { | 2551 { |
| 2478 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2552 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 2479 TestObjectPythonV8Internal::reflectBooleanAttributeAttributeGetter(info); | 2553 TestObjectPythonV8Internal::reflectBooleanAttributeAttributeGetter(info); |
| 2480 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2554 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2481 } | 2555 } |
| 2482 | 2556 |
| 2483 static void reflectBooleanAttributeAttributeSetter(v8::Local<v8::Value> jsValue,
const v8::PropertyCallbackInfo<void>& info) | 2557 static void reflectBooleanAttributeAttributeSetter(v8::Local<v8::Value> jsValue,
const v8::PropertyCallbackInfo<void>& info) |
| 2484 { | 2558 { |
| 2559 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectBoolean
Attribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 2485 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2560 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2486 V8TRYCATCH_VOID(bool, cppValue, jsValue->BooleanValue()); | 2561 V8TRYCATCH_VOID(bool, cppValue, jsValue->BooleanValue()); |
| 2487 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 2562 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
| 2488 imp->setBooleanAttribute(HTMLNames::reflectbooleanattributeAttr, cppValue); | 2563 imp->setBooleanAttribute(HTMLNames::reflectbooleanattributeAttr, cppValue); |
| 2489 } | 2564 } |
| 2490 | 2565 |
| 2491 static void reflectBooleanAttributeAttributeSetterCallback(v8::Local<v8::String>
, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2566 static void reflectBooleanAttributeAttributeSetterCallback(v8::Local<v8::String>
, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 2492 { | 2567 { |
| 2493 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2568 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 2494 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 2569 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
| 2495 TestObjectPythonV8Internal::reflectBooleanAttributeAttributeSetter(jsValue,
info); | 2570 TestObjectPythonV8Internal::reflectBooleanAttributeAttributeSetter(jsValue,
info); |
| 2496 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2571 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2497 } | 2572 } |
| 2498 | 2573 |
| 2499 static void reflectLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v
8::Value>& info) | 2574 static void reflectLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v
8::Value>& info) |
| 2500 { | 2575 { |
| 2501 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2576 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2502 v8SetReturnValueInt(info, imp->getIntegralAttribute(HTMLNames::reflectlongat
tributeAttr)); | 2577 v8SetReturnValueInt(info, imp->getIntegralAttribute(HTMLNames::reflectlongat
tributeAttr)); |
| 2503 } | 2578 } |
| 2504 | 2579 |
| 2505 static void reflectLongAttributeAttributeGetterCallback(v8::Local<v8::String>, c
onst v8::PropertyCallbackInfo<v8::Value>& info) | 2580 static void reflectLongAttributeAttributeGetterCallback(v8::Local<v8::String>, c
onst v8::PropertyCallbackInfo<v8::Value>& info) |
| 2506 { | 2581 { |
| 2507 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2582 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 2508 TestObjectPythonV8Internal::reflectLongAttributeAttributeGetter(info); | 2583 TestObjectPythonV8Internal::reflectLongAttributeAttributeGetter(info); |
| 2509 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2584 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2510 } | 2585 } |
| 2511 | 2586 |
| 2512 static void reflectLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, co
nst v8::PropertyCallbackInfo<void>& info) | 2587 static void reflectLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, co
nst v8::PropertyCallbackInfo<void>& info) |
| 2513 { | 2588 { |
| 2589 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectLongAtt
ribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 2514 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2590 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2515 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); | 2591 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
| 2516 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 2592 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
| 2517 imp->setIntegralAttribute(HTMLNames::reflectlongattributeAttr, cppValue); | 2593 imp->setIntegralAttribute(HTMLNames::reflectlongattributeAttr, cppValue); |
| 2518 } | 2594 } |
| 2519 | 2595 |
| 2520 static void reflectLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2596 static void reflectLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 2521 { | 2597 { |
| 2522 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2598 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 2523 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 2599 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
| 2524 TestObjectPythonV8Internal::reflectLongAttributeAttributeSetter(jsValue, inf
o); | 2600 TestObjectPythonV8Internal::reflectLongAttributeAttributeSetter(jsValue, inf
o); |
| 2525 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2601 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2526 } | 2602 } |
| 2527 | 2603 |
| 2528 static void reflectUnsignedShortAttributeAttributeGetter(const v8::PropertyCallb
ackInfo<v8::Value>& info) | 2604 static void reflectUnsignedShortAttributeAttributeGetter(const v8::PropertyCallb
ackInfo<v8::Value>& info) |
| 2529 { | 2605 { |
| 2530 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2606 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2531 v8SetReturnValueUnsigned(info, std::max(0, imp->fastGetAttribute(HTMLNames::
reflectunsignedshortattributeAttr))); | 2607 v8SetReturnValueUnsigned(info, std::max(0, imp->fastGetAttribute(HTMLNames::
reflectunsignedshortattributeAttr))); |
| 2532 } | 2608 } |
| 2533 | 2609 |
| 2534 static void reflectUnsignedShortAttributeAttributeGetterCallback(v8::Local<v8::S
tring>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2610 static void reflectUnsignedShortAttributeAttributeGetterCallback(v8::Local<v8::S
tring>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 2535 { | 2611 { |
| 2536 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2612 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 2537 TestObjectPythonV8Internal::reflectUnsignedShortAttributeAttributeGetter(inf
o); | 2613 TestObjectPythonV8Internal::reflectUnsignedShortAttributeAttributeGetter(inf
o); |
| 2538 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2614 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2539 } | 2615 } |
| 2540 | 2616 |
| 2541 static void reflectUnsignedShortAttributeAttributeSetter(v8::Local<v8::Value> js
Value, const v8::PropertyCallbackInfo<void>& info) | 2617 static void reflectUnsignedShortAttributeAttributeSetter(v8::Local<v8::Value> js
Value, const v8::PropertyCallbackInfo<void>& info) |
| 2542 { | 2618 { |
| 2619 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne
dShortAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 2543 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2620 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2544 V8TRYCATCH_VOID(unsigned, cppValue, toUInt16(jsValue)); | 2621 V8TRYCATCH_VOID(unsigned, cppValue, toUInt16(jsValue)); |
| 2545 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 2622 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
| 2546 imp->setAttribute(HTMLNames::reflectunsignedshortattributeAttr, cppValue); | 2623 imp->setAttribute(HTMLNames::reflectunsignedshortattributeAttr, cppValue); |
| 2547 } | 2624 } |
| 2548 | 2625 |
| 2549 static void reflectUnsignedShortAttributeAttributeSetterCallback(v8::Local<v8::S
tring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info
) | 2626 static void reflectUnsignedShortAttributeAttributeSetterCallback(v8::Local<v8::S
tring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info
) |
| 2550 { | 2627 { |
| 2551 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2628 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 2552 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 2629 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
| 2553 TestObjectPythonV8Internal::reflectUnsignedShortAttributeAttributeSetter(jsV
alue, info); | 2630 TestObjectPythonV8Internal::reflectUnsignedShortAttributeAttributeSetter(jsV
alue, info); |
| 2554 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2631 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2555 } | 2632 } |
| 2556 | 2633 |
| 2557 static void reflectUnsignedLongAttributeAttributeGetter(const v8::PropertyCallba
ckInfo<v8::Value>& info) | 2634 static void reflectUnsignedLongAttributeAttributeGetter(const v8::PropertyCallba
ckInfo<v8::Value>& info) |
| 2558 { | 2635 { |
| 2559 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2636 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2560 v8SetReturnValueUnsigned(info, std::max(0, imp->getIntegralAttribute(HTMLNam
es::reflectunsignedlongattributeAttr))); | 2637 v8SetReturnValueUnsigned(info, std::max(0, imp->getIntegralAttribute(HTMLNam
es::reflectunsignedlongattributeAttr))); |
| 2561 } | 2638 } |
| 2562 | 2639 |
| 2563 static void reflectUnsignedLongAttributeAttributeGetterCallback(v8::Local<v8::St
ring>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2640 static void reflectUnsignedLongAttributeAttributeGetterCallback(v8::Local<v8::St
ring>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 2564 { | 2641 { |
| 2565 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2642 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 2566 TestObjectPythonV8Internal::reflectUnsignedLongAttributeAttributeGetter(info
); | 2643 TestObjectPythonV8Internal::reflectUnsignedLongAttributeAttributeGetter(info
); |
| 2567 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2644 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2568 } | 2645 } |
| 2569 | 2646 |
| 2570 static void reflectUnsignedLongAttributeAttributeSetter(v8::Local<v8::Value> jsV
alue, const v8::PropertyCallbackInfo<void>& info) | 2647 static void reflectUnsignedLongAttributeAttributeSetter(v8::Local<v8::Value> jsV
alue, const v8::PropertyCallbackInfo<void>& info) |
| 2571 { | 2648 { |
| 2649 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne
dLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 2572 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2650 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2573 V8TRYCATCH_VOID(unsigned, cppValue, toUInt32(jsValue)); | 2651 V8TRYCATCH_VOID(unsigned, cppValue, toUInt32(jsValue)); |
| 2574 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 2652 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
| 2575 imp->setUnsignedIntegralAttribute(HTMLNames::reflectunsignedlongattributeAtt
r, cppValue); | 2653 imp->setUnsignedIntegralAttribute(HTMLNames::reflectunsignedlongattributeAtt
r, cppValue); |
| 2576 } | 2654 } |
| 2577 | 2655 |
| 2578 static void reflectUnsignedLongAttributeAttributeSetterCallback(v8::Local<v8::St
ring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2656 static void reflectUnsignedLongAttributeAttributeSetterCallback(v8::Local<v8::St
ring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 2579 { | 2657 { |
| 2580 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2658 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 2581 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 2659 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
| 2582 TestObjectPythonV8Internal::reflectUnsignedLongAttributeAttributeSetter(jsVa
lue, info); | 2660 TestObjectPythonV8Internal::reflectUnsignedLongAttributeAttributeSetter(jsVa
lue, info); |
| 2583 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2661 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2584 } | 2662 } |
| 2585 | 2663 |
| 2586 static void idAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) | 2664 static void idAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
| 2587 { | 2665 { |
| 2588 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2666 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2589 v8SetReturnValueString(info, imp->getIdAttribute(), info.GetIsolate()); | 2667 v8SetReturnValueString(info, imp->getIdAttribute(), info.GetIsolate()); |
| 2590 } | 2668 } |
| 2591 | 2669 |
| 2592 static void idAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyC
allbackInfo<v8::Value>& info) | 2670 static void idAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyC
allbackInfo<v8::Value>& info) |
| 2593 { | 2671 { |
| 2594 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2672 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 2595 TestObjectPythonV8Internal::idAttributeGetter(info); | 2673 TestObjectPythonV8Internal::idAttributeGetter(info); |
| 2596 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2674 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2597 } | 2675 } |
| 2598 | 2676 |
| 2599 static void idAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCa
llbackInfo<void>& info) | 2677 static void idAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCa
llbackInfo<void>& info) |
| 2600 { | 2678 { |
| 2679 ExceptionState exceptionState(ExceptionState::SetterContext, "id", "TestObje
ctPython", info.Holder(), info.GetIsolate()); |
| 2601 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2680 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2602 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 2681 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
| 2603 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 2682 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
| 2604 imp->setAttribute(HTMLNames::idAttr, cppValue); | 2683 imp->setAttribute(HTMLNames::idAttr, cppValue); |
| 2605 } | 2684 } |
| 2606 | 2685 |
| 2607 static void idAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value
> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2686 static void idAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value
> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 2608 { | 2687 { |
| 2609 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2688 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 2610 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 2689 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
| 2611 TestObjectPythonV8Internal::idAttributeSetter(jsValue, info); | 2690 TestObjectPythonV8Internal::idAttributeSetter(jsValue, info); |
| 2612 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2691 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2613 } | 2692 } |
| 2614 | 2693 |
| 2615 static void nameAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) | 2694 static void nameAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
| 2616 { | 2695 { |
| 2617 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2696 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2618 v8SetReturnValueString(info, imp->getNameAttribute(), info.GetIsolate()); | 2697 v8SetReturnValueString(info, imp->getNameAttribute(), info.GetIsolate()); |
| 2619 } | 2698 } |
| 2620 | 2699 |
| 2621 static void nameAttributeGetterCallback(v8::Local<v8::String>, const v8::Propert
yCallbackInfo<v8::Value>& info) | 2700 static void nameAttributeGetterCallback(v8::Local<v8::String>, const v8::Propert
yCallbackInfo<v8::Value>& info) |
| 2622 { | 2701 { |
| 2623 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2702 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 2624 TestObjectPythonV8Internal::nameAttributeGetter(info); | 2703 TestObjectPythonV8Internal::nameAttributeGetter(info); |
| 2625 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2704 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2626 } | 2705 } |
| 2627 | 2706 |
| 2628 static void nameAttributeSetter(v8::Local<v8::Value> jsValue, const v8::Property
CallbackInfo<void>& info) | 2707 static void nameAttributeSetter(v8::Local<v8::Value> jsValue, const v8::Property
CallbackInfo<void>& info) |
| 2629 { | 2708 { |
| 2709 ExceptionState exceptionState(ExceptionState::SetterContext, "name", "TestOb
jectPython", info.Holder(), info.GetIsolate()); |
| 2630 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2710 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2631 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 2711 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
| 2632 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 2712 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
| 2633 imp->setAttribute(HTMLNames::nameAttr, cppValue); | 2713 imp->setAttribute(HTMLNames::nameAttr, cppValue); |
| 2634 } | 2714 } |
| 2635 | 2715 |
| 2636 static void nameAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Val
ue> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2716 static void nameAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Val
ue> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 2637 { | 2717 { |
| 2638 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2718 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 2639 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 2719 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
| 2640 TestObjectPythonV8Internal::nameAttributeSetter(jsValue, info); | 2720 TestObjectPythonV8Internal::nameAttributeSetter(jsValue, info); |
| 2641 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2721 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2642 } | 2722 } |
| 2643 | 2723 |
| 2644 static void classAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info
) | 2724 static void classAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info
) |
| 2645 { | 2725 { |
| 2646 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2726 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2647 v8SetReturnValueString(info, imp->getClassAttribute(), info.GetIsolate()); | 2727 v8SetReturnValueString(info, imp->getClassAttribute(), info.GetIsolate()); |
| 2648 } | 2728 } |
| 2649 | 2729 |
| 2650 static void classAttributeGetterCallback(v8::Local<v8::String>, const v8::Proper
tyCallbackInfo<v8::Value>& info) | 2730 static void classAttributeGetterCallback(v8::Local<v8::String>, const v8::Proper
tyCallbackInfo<v8::Value>& info) |
| 2651 { | 2731 { |
| 2652 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2732 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 2653 TestObjectPythonV8Internal::classAttributeGetter(info); | 2733 TestObjectPythonV8Internal::classAttributeGetter(info); |
| 2654 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2734 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2655 } | 2735 } |
| 2656 | 2736 |
| 2657 static void classAttributeSetter(v8::Local<v8::Value> jsValue, const v8::Propert
yCallbackInfo<void>& info) | 2737 static void classAttributeSetter(v8::Local<v8::Value> jsValue, const v8::Propert
yCallbackInfo<void>& info) |
| 2658 { | 2738 { |
| 2739 ExceptionState exceptionState(ExceptionState::SetterContext, "class", "TestO
bjectPython", info.Holder(), info.GetIsolate()); |
| 2659 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2740 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2660 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 2741 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
| 2661 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 2742 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
| 2662 imp->setAttribute(HTMLNames::classAttr, cppValue); | 2743 imp->setAttribute(HTMLNames::classAttr, cppValue); |
| 2663 } | 2744 } |
| 2664 | 2745 |
| 2665 static void classAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Va
lue> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2746 static void classAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Va
lue> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 2666 { | 2747 { |
| 2667 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2748 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 2668 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 2749 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
| 2669 TestObjectPythonV8Internal::classAttributeSetter(jsValue, info); | 2750 TestObjectPythonV8Internal::classAttributeSetter(jsValue, info); |
| 2670 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2751 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2671 } | 2752 } |
| 2672 | 2753 |
| 2673 static void reflectedIdAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>
& info) | 2754 static void reflectedIdAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>
& info) |
| 2674 { | 2755 { |
| 2675 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2756 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2676 v8SetReturnValueString(info, imp->getIdAttribute(), info.GetIsolate()); | 2757 v8SetReturnValueString(info, imp->getIdAttribute(), info.GetIsolate()); |
| 2677 } | 2758 } |
| 2678 | 2759 |
| 2679 static void reflectedIdAttributeGetterCallback(v8::Local<v8::String>, const v8::
PropertyCallbackInfo<v8::Value>& info) | 2760 static void reflectedIdAttributeGetterCallback(v8::Local<v8::String>, const v8::
PropertyCallbackInfo<v8::Value>& info) |
| 2680 { | 2761 { |
| 2681 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2762 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 2682 TestObjectPythonV8Internal::reflectedIdAttributeGetter(info); | 2763 TestObjectPythonV8Internal::reflectedIdAttributeGetter(info); |
| 2683 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2764 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2684 } | 2765 } |
| 2685 | 2766 |
| 2686 static void reflectedIdAttributeSetter(v8::Local<v8::Value> jsValue, const v8::P
ropertyCallbackInfo<void>& info) | 2767 static void reflectedIdAttributeSetter(v8::Local<v8::Value> jsValue, const v8::P
ropertyCallbackInfo<void>& info) |
| 2687 { | 2768 { |
| 2769 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectedId",
"TestObjectPython", info.Holder(), info.GetIsolate()); |
| 2688 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2770 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2689 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 2771 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
| 2690 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 2772 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
| 2691 imp->setAttribute(HTMLNames::idAttr, cppValue); | 2773 imp->setAttribute(HTMLNames::idAttr, cppValue); |
| 2692 } | 2774 } |
| 2693 | 2775 |
| 2694 static void reflectedIdAttributeSetterCallback(v8::Local<v8::String>, v8::Local<
v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2776 static void reflectedIdAttributeSetterCallback(v8::Local<v8::String>, v8::Local<
v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 2695 { | 2777 { |
| 2696 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2778 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 2697 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 2779 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
| 2698 TestObjectPythonV8Internal::reflectedIdAttributeSetter(jsValue, info); | 2780 TestObjectPythonV8Internal::reflectedIdAttributeSetter(jsValue, info); |
| 2699 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2781 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2700 } | 2782 } |
| 2701 | 2783 |
| 2702 static void reflectedNameAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu
e>& info) | 2784 static void reflectedNameAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu
e>& info) |
| 2703 { | 2785 { |
| 2704 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2786 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2705 v8SetReturnValueString(info, imp->getNameAttribute(), info.GetIsolate()); | 2787 v8SetReturnValueString(info, imp->getNameAttribute(), info.GetIsolate()); |
| 2706 } | 2788 } |
| 2707 | 2789 |
| 2708 static void reflectedNameAttributeGetterCallback(v8::Local<v8::String>, const v8
::PropertyCallbackInfo<v8::Value>& info) | 2790 static void reflectedNameAttributeGetterCallback(v8::Local<v8::String>, const v8
::PropertyCallbackInfo<v8::Value>& info) |
| 2709 { | 2791 { |
| 2710 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2792 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 2711 TestObjectPythonV8Internal::reflectedNameAttributeGetter(info); | 2793 TestObjectPythonV8Internal::reflectedNameAttributeGetter(info); |
| 2712 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2794 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2713 } | 2795 } |
| 2714 | 2796 |
| 2715 static void reflectedNameAttributeSetter(v8::Local<v8::Value> jsValue, const v8:
:PropertyCallbackInfo<void>& info) | 2797 static void reflectedNameAttributeSetter(v8::Local<v8::Value> jsValue, const v8:
:PropertyCallbackInfo<void>& info) |
| 2716 { | 2798 { |
| 2799 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectedName"
, "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 2717 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2800 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2718 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 2801 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
| 2719 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 2802 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
| 2720 imp->setAttribute(HTMLNames::nameAttr, cppValue); | 2803 imp->setAttribute(HTMLNames::nameAttr, cppValue); |
| 2721 } | 2804 } |
| 2722 | 2805 |
| 2723 static void reflectedNameAttributeSetterCallback(v8::Local<v8::String>, v8::Loca
l<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2806 static void reflectedNameAttributeSetterCallback(v8::Local<v8::String>, v8::Loca
l<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 2724 { | 2807 { |
| 2725 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2808 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 2726 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 2809 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
| 2727 TestObjectPythonV8Internal::reflectedNameAttributeSetter(jsValue, info); | 2810 TestObjectPythonV8Internal::reflectedNameAttributeSetter(jsValue, info); |
| 2728 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2811 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2729 } | 2812 } |
| 2730 | 2813 |
| 2731 static void reflectedClassAttributeGetter(const v8::PropertyCallbackInfo<v8::Val
ue>& info) | 2814 static void reflectedClassAttributeGetter(const v8::PropertyCallbackInfo<v8::Val
ue>& info) |
| 2732 { | 2815 { |
| 2733 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2816 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2734 v8SetReturnValueString(info, imp->getClassAttribute(), info.GetIsolate()); | 2817 v8SetReturnValueString(info, imp->getClassAttribute(), info.GetIsolate()); |
| 2735 } | 2818 } |
| 2736 | 2819 |
| 2737 static void reflectedClassAttributeGetterCallback(v8::Local<v8::String>, const v
8::PropertyCallbackInfo<v8::Value>& info) | 2820 static void reflectedClassAttributeGetterCallback(v8::Local<v8::String>, const v
8::PropertyCallbackInfo<v8::Value>& info) |
| 2738 { | 2821 { |
| 2739 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2822 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 2740 TestObjectPythonV8Internal::reflectedClassAttributeGetter(info); | 2823 TestObjectPythonV8Internal::reflectedClassAttributeGetter(info); |
| 2741 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2824 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2742 } | 2825 } |
| 2743 | 2826 |
| 2744 static void reflectedClassAttributeSetter(v8::Local<v8::Value> jsValue, const v8
::PropertyCallbackInfo<void>& info) | 2827 static void reflectedClassAttributeSetter(v8::Local<v8::Value> jsValue, const v8
::PropertyCallbackInfo<void>& info) |
| 2745 { | 2828 { |
| 2829 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectedClass
", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 2746 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2830 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2747 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 2831 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
| 2748 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 2832 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
| 2749 imp->setAttribute(HTMLNames::classAttr, cppValue); | 2833 imp->setAttribute(HTMLNames::classAttr, cppValue); |
| 2750 } | 2834 } |
| 2751 | 2835 |
| 2752 static void reflectedClassAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
al<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2836 static void reflectedClassAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
al<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 2753 { | 2837 { |
| 2754 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2838 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 2755 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 2839 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 2778 | 2862 |
| 2779 static void runtimeEnabledLongAttributeAttributeGetterCallback(v8::Local<v8::Str
ing>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2863 static void runtimeEnabledLongAttributeAttributeGetterCallback(v8::Local<v8::Str
ing>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 2780 { | 2864 { |
| 2781 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2865 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 2782 TestObjectPythonV8Internal::runtimeEnabledLongAttributeAttributeGetter(info)
; | 2866 TestObjectPythonV8Internal::runtimeEnabledLongAttributeAttributeGetter(info)
; |
| 2783 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2867 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2784 } | 2868 } |
| 2785 | 2869 |
| 2786 static void runtimeEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> jsVa
lue, const v8::PropertyCallbackInfo<void>& info) | 2870 static void runtimeEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> jsVa
lue, const v8::PropertyCallbackInfo<void>& info) |
| 2787 { | 2871 { |
| 2872 ExceptionState exceptionState(ExceptionState::SetterContext, "runtimeEnabled
LongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 2788 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2873 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2789 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); | 2874 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
| 2790 imp->setRuntimeEnabledLongAttribute(cppValue); | 2875 imp->setRuntimeEnabledLongAttribute(cppValue); |
| 2791 } | 2876 } |
| 2792 | 2877 |
| 2793 static void runtimeEnabledLongAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2878 static void runtimeEnabledLongAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 2794 { | 2879 { |
| 2795 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2880 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 2796 TestObjectPythonV8Internal::runtimeEnabledLongAttributeAttributeSetter(jsVal
ue, info); | 2881 TestObjectPythonV8Internal::runtimeEnabledLongAttributeAttributeSetter(jsVal
ue, info); |
| 2797 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2882 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 2810 { | 2895 { |
| 2811 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2896 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 2812 TestObjectPythonV8Internal::conditionalRuntimeEnabledLongAttributeAttributeG
etter(info); | 2897 TestObjectPythonV8Internal::conditionalRuntimeEnabledLongAttributeAttributeG
etter(info); |
| 2813 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2898 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2814 } | 2899 } |
| 2815 #endif // ENABLE(CONDITION) | 2900 #endif // ENABLE(CONDITION) |
| 2816 | 2901 |
| 2817 #if ENABLE(CONDITION) | 2902 #if ENABLE(CONDITION) |
| 2818 static void conditionalRuntimeEnabledLongAttributeAttributeSetter(v8::Local<v8::
Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2903 static void conditionalRuntimeEnabledLongAttributeAttributeSetter(v8::Local<v8::
Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 2819 { | 2904 { |
| 2905 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalRun
timeEnabledLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate())
; |
| 2820 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2906 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2821 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); | 2907 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
| 2822 imp->setConditionalRuntimeEnabledLongAttribute(cppValue); | 2908 imp->setConditionalRuntimeEnabledLongAttribute(cppValue); |
| 2823 } | 2909 } |
| 2824 #endif // ENABLE(CONDITION) | 2910 #endif // ENABLE(CONDITION) |
| 2825 | 2911 |
| 2826 #if ENABLE(CONDITION) | 2912 #if ENABLE(CONDITION) |
| 2827 static void conditionalRuntimeEnabledLongAttributeAttributeSetterCallback(v8::Lo
cal<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<vo
id>& info) | 2913 static void conditionalRuntimeEnabledLongAttributeAttributeSetterCallback(v8::Lo
cal<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<vo
id>& info) |
| 2828 { | 2914 { |
| 2829 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2915 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 2840 | 2926 |
| 2841 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeGett
erCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& inf
o) | 2927 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeGett
erCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& inf
o) |
| 2842 { | 2928 { |
| 2843 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2929 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 2844 TestObjectPythonV8Internal::setterCallWithActiveWindowAndFirstWindowStringAt
tributeAttributeGetter(info); | 2930 TestObjectPythonV8Internal::setterCallWithActiveWindowAndFirstWindowStringAt
tributeAttributeGetter(info); |
| 2845 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2931 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2846 } | 2932 } |
| 2847 | 2933 |
| 2848 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeSett
er(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2934 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeSett
er(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 2849 { | 2935 { |
| 2936 ExceptionState exceptionState(ExceptionState::SetterContext, "setterCallWith
ActiveWindowAndFirstWindowStringAttribute", "TestObjectPython", info.Holder(), i
nfo.GetIsolate()); |
| 2850 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2937 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2851 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 2938 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
| 2852 imp->setSetterCallWithActiveWindowAndFirstWindowStringAttribute(activeDOMWin
dow(), firstDOMWindow(), cppValue); | 2939 imp->setSetterCallWithActiveWindowAndFirstWindowStringAttribute(activeDOMWin
dow(), firstDOMWindow(), cppValue); |
| 2853 } | 2940 } |
| 2854 | 2941 |
| 2855 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeSett
erCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::Proper
tyCallbackInfo<void>& info) | 2942 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeSett
erCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::Proper
tyCallbackInfo<void>& info) |
| 2856 { | 2943 { |
| 2857 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2944 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 2858 TestObjectPythonV8Internal::setterCallWithActiveWindowAndFirstWindowStringAt
tributeAttributeSetter(jsValue, info); | 2945 TestObjectPythonV8Internal::setterCallWithActiveWindowAndFirstWindowStringAt
tributeAttributeSetter(jsValue, info); |
| 2859 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2946 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2860 } | 2947 } |
| 2861 | 2948 |
| 2862 static void setterRaisesExceptionLongAttributeAttributeGetter(const v8::Property
CallbackInfo<v8::Value>& info) | 2949 static void setterRaisesExceptionLongAttributeAttributeGetter(const v8::Property
CallbackInfo<v8::Value>& info) |
| 2863 { | 2950 { |
| 2864 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2951 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2865 v8SetReturnValueInt(info, imp->setterRaisesExceptionLongAttribute()); | 2952 v8SetReturnValueInt(info, imp->setterRaisesExceptionLongAttribute()); |
| 2866 } | 2953 } |
| 2867 | 2954 |
| 2868 static void setterRaisesExceptionLongAttributeAttributeGetterCallback(v8::Local<
v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2955 static void setterRaisesExceptionLongAttributeAttributeGetterCallback(v8::Local<
v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 2869 { | 2956 { |
| 2870 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2957 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 2871 TestObjectPythonV8Internal::setterRaisesExceptionLongAttributeAttributeGette
r(info); | 2958 TestObjectPythonV8Internal::setterRaisesExceptionLongAttributeAttributeGette
r(info); |
| 2872 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2959 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2873 } | 2960 } |
| 2874 | 2961 |
| 2875 static void setterRaisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Valu
e> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2962 static void setterRaisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Valu
e> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 2876 { | 2963 { |
| 2964 ExceptionState exceptionState(ExceptionState::SetterContext, "setterRaisesEx
ceptionLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 2877 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2965 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2878 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); | 2966 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
| 2879 ExceptionState exceptionState(info.Holder(), info.GetIsolate()); | |
| 2880 imp->setSetterRaisesExceptionLongAttribute(cppValue, exceptionState); | 2967 imp->setSetterRaisesExceptionLongAttribute(cppValue, exceptionState); |
| 2881 exceptionState.throwIfNeeded(); | 2968 exceptionState.throwIfNeeded(); |
| 2882 } | 2969 } |
| 2883 | 2970 |
| 2884 static void setterRaisesExceptionLongAttributeAttributeSetterCallback(v8::Local<
v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>&
info) | 2971 static void setterRaisesExceptionLongAttributeAttributeSetterCallback(v8::Local<
v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>&
info) |
| 2885 { | 2972 { |
| 2886 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2973 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 2887 TestObjectPythonV8Internal::setterRaisesExceptionLongAttributeAttributeSette
r(jsValue, info); | 2974 TestObjectPythonV8Internal::setterRaisesExceptionLongAttributeAttributeSette
r(jsValue, info); |
| 2888 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2975 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2889 } | 2976 } |
| 2890 | 2977 |
| 2891 static void strictTypeCheckingFloatAttributeAttributeGetter(const v8::PropertyCa
llbackInfo<v8::Value>& info) | 2978 static void strictTypeCheckingFloatAttributeAttributeGetter(const v8::PropertyCa
llbackInfo<v8::Value>& info) |
| 2892 { | 2979 { |
| 2893 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2980 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2894 v8SetReturnValue(info, imp->strictTypeCheckingFloatAttribute()); | 2981 v8SetReturnValue(info, imp->strictTypeCheckingFloatAttribute()); |
| 2895 } | 2982 } |
| 2896 | 2983 |
| 2897 static void strictTypeCheckingFloatAttributeAttributeGetterCallback(v8::Local<v8
::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2984 static void strictTypeCheckingFloatAttributeAttributeGetterCallback(v8::Local<v8
::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 2898 { | 2985 { |
| 2899 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2986 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 2900 TestObjectPythonV8Internal::strictTypeCheckingFloatAttributeAttributeGetter(
info); | 2987 TestObjectPythonV8Internal::strictTypeCheckingFloatAttributeAttributeGetter(
info); |
| 2901 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2988 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2902 } | 2989 } |
| 2903 | 2990 |
| 2904 static void strictTypeCheckingFloatAttributeAttributeSetter(v8::Local<v8::Value>
jsValue, const v8::PropertyCallbackInfo<void>& info) | 2991 static void strictTypeCheckingFloatAttributeAttributeSetter(v8::Local<v8::Value>
jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 2905 { | 2992 { |
| 2993 ExceptionState exceptionState(ExceptionState::SetterContext, "strictTypeChec
kingFloatAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 2906 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2994 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2907 V8TRYCATCH_VOID(float, cppValue, static_cast<float>(jsValue->NumberValue()))
; | 2995 V8TRYCATCH_VOID(float, cppValue, static_cast<float>(jsValue->NumberValue()))
; |
| 2908 imp->setStrictTypeCheckingFloatAttribute(cppValue); | 2996 imp->setStrictTypeCheckingFloatAttribute(cppValue); |
| 2909 } | 2997 } |
| 2910 | 2998 |
| 2911 static void strictTypeCheckingFloatAttributeAttributeSetterCallback(v8::Local<v8
::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& i
nfo) | 2999 static void strictTypeCheckingFloatAttributeAttributeSetterCallback(v8::Local<v8
::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& i
nfo) |
| 2912 { | 3000 { |
| 2913 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3001 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 2914 TestObjectPythonV8Internal::strictTypeCheckingFloatAttributeAttributeSetter(
jsValue, info); | 3002 TestObjectPythonV8Internal::strictTypeCheckingFloatAttributeAttributeSetter(
jsValue, info); |
| 2915 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3003 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2916 } | 3004 } |
| 2917 | 3005 |
| 2918 static void strictTypeCheckingTestInterfaceAttributeAttributeGetter(const v8::Pr
opertyCallbackInfo<v8::Value>& info) | 3006 static void strictTypeCheckingTestInterfaceAttributeAttributeGetter(const v8::Pr
opertyCallbackInfo<v8::Value>& info) |
| 2919 { | 3007 { |
| 2920 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3008 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2921 v8SetReturnValueFast(info, imp->strictTypeCheckingTestInterfaceAttribute(),
imp); | 3009 v8SetReturnValueFast(info, imp->strictTypeCheckingTestInterfaceAttribute(),
imp); |
| 2922 } | 3010 } |
| 2923 | 3011 |
| 2924 static void strictTypeCheckingTestInterfaceAttributeAttributeGetterCallback(v8::
Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3012 static void strictTypeCheckingTestInterfaceAttributeAttributeGetterCallback(v8::
Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 2925 { | 3013 { |
| 2926 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3014 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 2927 TestObjectPythonV8Internal::strictTypeCheckingTestInterfaceAttributeAttribut
eGetter(info); | 3015 TestObjectPythonV8Internal::strictTypeCheckingTestInterfaceAttributeAttribut
eGetter(info); |
| 2928 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3016 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2929 } | 3017 } |
| 2930 | 3018 |
| 2931 static void strictTypeCheckingTestInterfaceAttributeAttributeSetter(v8::Local<v8
::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 3019 static void strictTypeCheckingTestInterfaceAttributeAttributeSetter(v8::Local<v8
::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 2932 { | 3020 { |
| 3021 ExceptionState exceptionState(ExceptionState::SetterContext, "strictTypeChec
kingTestInterfaceAttribute", "TestObjectPython", info.Holder(), info.GetIsolate(
)); |
| 2933 if (!isUndefinedOrNull(jsValue) && !V8TestInterface::hasInstance(jsValue, in
fo.GetIsolate(), worldType(info.GetIsolate()))) { | 3022 if (!isUndefinedOrNull(jsValue) && !V8TestInterface::hasInstance(jsValue, in
fo.GetIsolate(), worldType(info.GetIsolate()))) { |
| 2934 throwTypeError(ExceptionMessages::failedToSet("strictTypeCheckingTestInt
erfaceAttribute", "TestObjectPython", "The provided value is not of type 'TestIn
terface'."), info.GetIsolate()); | 3023 exceptionState.throwTypeError("The provided value is not of type 'TestIn
terface'."); |
| 3024 exceptionState.throwIfNeeded(); |
| 2935 return; | 3025 return; |
| 2936 } | 3026 } |
| 2937 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3027 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2938 V8TRYCATCH_VOID(TestInterface*, cppValue, V8TestInterface::hasInstance(jsVal
ue, info.GetIsolate(), worldType(info.GetIsolate())) ? V8TestInterface::toNative
(v8::Handle<v8::Object>::Cast(jsValue)) : 0); | 3028 V8TRYCATCH_VOID(TestInterface*, cppValue, V8TestInterface::hasInstance(jsVal
ue, info.GetIsolate(), worldType(info.GetIsolate())) ? V8TestInterface::toNative
(v8::Handle<v8::Object>::Cast(jsValue)) : 0); |
| 2939 imp->setStrictTypeCheckingTestInterfaceAttribute(WTF::getPtr(cppValue)); | 3029 imp->setStrictTypeCheckingTestInterfaceAttribute(WTF::getPtr(cppValue)); |
| 2940 } | 3030 } |
| 2941 | 3031 |
| 2942 static void strictTypeCheckingTestInterfaceAttributeAttributeSetterCallback(v8::
Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<
void>& info) | 3032 static void strictTypeCheckingTestInterfaceAttributeAttributeSetterCallback(v8::
Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<
void>& info) |
| 2943 { | 3033 { |
| 2944 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3034 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 2945 TestObjectPythonV8Internal::strictTypeCheckingTestInterfaceAttributeAttribut
eSetter(jsValue, info); | 3035 TestObjectPythonV8Internal::strictTypeCheckingTestInterfaceAttributeAttribut
eSetter(jsValue, info); |
| 2946 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3036 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2947 } | 3037 } |
| 2948 | 3038 |
| 2949 static void treatNullAsNullStringStringAttributeAttributeGetter(const v8::Proper
tyCallbackInfo<v8::Value>& info) | 3039 static void treatNullAsNullStringStringAttributeAttributeGetter(const v8::Proper
tyCallbackInfo<v8::Value>& info) |
| 2950 { | 3040 { |
| 2951 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3041 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2952 v8SetReturnValueString(info, imp->treatNullAsNullStringStringAttribute(), in
fo.GetIsolate()); | 3042 v8SetReturnValueString(info, imp->treatNullAsNullStringStringAttribute(), in
fo.GetIsolate()); |
| 2953 } | 3043 } |
| 2954 | 3044 |
| 2955 static void treatNullAsNullStringStringAttributeAttributeGetterCallback(v8::Loca
l<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3045 static void treatNullAsNullStringStringAttributeAttributeGetterCallback(v8::Loca
l<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 2956 { | 3046 { |
| 2957 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3047 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 2958 TestObjectPythonV8Internal::treatNullAsNullStringStringAttributeAttributeGet
ter(info); | 3048 TestObjectPythonV8Internal::treatNullAsNullStringStringAttributeAttributeGet
ter(info); |
| 2959 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3049 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2960 } | 3050 } |
| 2961 | 3051 |
| 2962 static void treatNullAsNullStringStringAttributeAttributeSetter(v8::Local<v8::Va
lue> jsValue, const v8::PropertyCallbackInfo<void>& info) | 3052 static void treatNullAsNullStringStringAttributeAttributeSetter(v8::Local<v8::Va
lue> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 2963 { | 3053 { |
| 3054 ExceptionState exceptionState(ExceptionState::SetterContext, "treatNullAsNul
lStringStringAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 2964 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3055 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2965 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, cppVal
ue, jsValue); | 3056 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, cppVal
ue, jsValue); |
| 2966 imp->setTreatNullAsNullStringStringAttribute(cppValue); | 3057 imp->setTreatNullAsNullStringStringAttribute(cppValue); |
| 2967 } | 3058 } |
| 2968 | 3059 |
| 2969 static void treatNullAsNullStringStringAttributeAttributeSetterCallback(v8::Loca
l<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void
>& info) | 3060 static void treatNullAsNullStringStringAttributeAttributeSetterCallback(v8::Loca
l<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void
>& info) |
| 2970 { | 3061 { |
| 2971 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3062 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 2972 TestObjectPythonV8Internal::treatNullAsNullStringStringAttributeAttributeSet
ter(jsValue, info); | 3063 TestObjectPythonV8Internal::treatNullAsNullStringStringAttributeAttributeSet
ter(jsValue, info); |
| 2973 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3064 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2974 } | 3065 } |
| 2975 | 3066 |
| 2976 static void treatReturnedNullStringAsNullStringAttributeAttributeGetter(const v8
::PropertyCallbackInfo<v8::Value>& info) | 3067 static void treatReturnedNullStringAsNullStringAttributeAttributeGetter(const v8
::PropertyCallbackInfo<v8::Value>& info) |
| 2977 { | 3068 { |
| 2978 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3069 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2979 v8SetReturnValueStringOrNull(info, imp->treatReturnedNullStringAsNullStringA
ttribute(), info.GetIsolate()); | 3070 v8SetReturnValueStringOrNull(info, imp->treatReturnedNullStringAsNullStringA
ttribute(), info.GetIsolate()); |
| 2980 } | 3071 } |
| 2981 | 3072 |
| 2982 static void treatReturnedNullStringAsNullStringAttributeAttributeGetterCallback(
v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3073 static void treatReturnedNullStringAsNullStringAttributeAttributeGetterCallback(
v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 2983 { | 3074 { |
| 2984 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3075 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 2985 TestObjectPythonV8Internal::treatReturnedNullStringAsNullStringAttributeAttr
ibuteGetter(info); | 3076 TestObjectPythonV8Internal::treatReturnedNullStringAsNullStringAttributeAttr
ibuteGetter(info); |
| 2986 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3077 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2987 } | 3078 } |
| 2988 | 3079 |
| 2989 static void treatReturnedNullStringAsNullStringAttributeAttributeSetter(v8::Loca
l<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 3080 static void treatReturnedNullStringAsNullStringAttributeAttributeSetter(v8::Loca
l<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 2990 { | 3081 { |
| 3082 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN
ullStringAsNullStringAttribute", "TestObjectPython", info.Holder(), info.GetIsol
ate()); |
| 2991 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3083 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2992 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 3084 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
| 2993 imp->setTreatReturnedNullStringAsNullStringAttribute(cppValue); | 3085 imp->setTreatReturnedNullStringAsNullStringAttribute(cppValue); |
| 2994 } | 3086 } |
| 2995 | 3087 |
| 2996 static void treatReturnedNullStringAsNullStringAttributeAttributeSetterCallback(
v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackI
nfo<void>& info) | 3088 static void treatReturnedNullStringAsNullStringAttributeAttributeSetterCallback(
v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackI
nfo<void>& info) |
| 2997 { | 3089 { |
| 2998 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3090 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 2999 TestObjectPythonV8Internal::treatReturnedNullStringAsNullStringAttributeAttr
ibuteSetter(jsValue, info); | 3091 TestObjectPythonV8Internal::treatReturnedNullStringAsNullStringAttributeAttr
ibuteSetter(jsValue, info); |
| 3000 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3092 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3001 } | 3093 } |
| 3002 | 3094 |
| 3003 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeGetter(con
st v8::PropertyCallbackInfo<v8::Value>& info) | 3095 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeGetter(con
st v8::PropertyCallbackInfo<v8::Value>& info) |
| 3004 { | 3096 { |
| 3005 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3097 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3006 v8SetReturnValueStringOrUndefined(info, imp->treatReturnedNullStringAsUndefi
nedStringAttribute(), info.GetIsolate()); | 3098 v8SetReturnValueStringOrUndefined(info, imp->treatReturnedNullStringAsUndefi
nedStringAttribute(), info.GetIsolate()); |
| 3007 } | 3099 } |
| 3008 | 3100 |
| 3009 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeGetterCall
back(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3101 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeGetterCall
back(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 3010 { | 3102 { |
| 3011 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3103 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 3012 TestObjectPythonV8Internal::treatReturnedNullStringAsUndefinedStringAttribut
eAttributeGetter(info); | 3104 TestObjectPythonV8Internal::treatReturnedNullStringAsUndefinedStringAttribut
eAttributeGetter(info); |
| 3013 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3105 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3014 } | 3106 } |
| 3015 | 3107 |
| 3016 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeSetter(v8:
:Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 3108 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeSetter(v8:
:Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 3017 { | 3109 { |
| 3110 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN
ullStringAsUndefinedStringAttribute", "TestObjectPython", info.Holder(), info.Ge
tIsolate()); |
| 3018 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3111 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3019 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 3112 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
| 3020 imp->setTreatReturnedNullStringAsUndefinedStringAttribute(cppValue); | 3113 imp->setTreatReturnedNullStringAsUndefinedStringAttribute(cppValue); |
| 3021 } | 3114 } |
| 3022 | 3115 |
| 3023 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeSetterCall
back(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCall
backInfo<void>& info) | 3116 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeSetterCall
back(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCall
backInfo<void>& info) |
| 3024 { | 3117 { |
| 3025 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3118 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 3026 TestObjectPythonV8Internal::treatReturnedNullStringAsUndefinedStringAttribut
eAttributeSetter(jsValue, info); | 3119 TestObjectPythonV8Internal::treatReturnedNullStringAsUndefinedStringAttribut
eAttributeSetter(jsValue, info); |
| 3027 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3120 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3028 } | 3121 } |
| 3029 | 3122 |
| 3030 static void urlStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8:
:Value>& info) | 3123 static void urlStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8:
:Value>& info) |
| 3031 { | 3124 { |
| 3032 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3125 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3033 v8SetReturnValueString(info, imp->getURLAttribute(HTMLNames::urlstringattrib
uteAttr), info.GetIsolate()); | 3126 v8SetReturnValueString(info, imp->getURLAttribute(HTMLNames::urlstringattrib
uteAttr), info.GetIsolate()); |
| 3034 } | 3127 } |
| 3035 | 3128 |
| 3036 static void urlStringAttributeAttributeGetterCallback(v8::Local<v8::String>, con
st v8::PropertyCallbackInfo<v8::Value>& info) | 3129 static void urlStringAttributeAttributeGetterCallback(v8::Local<v8::String>, con
st v8::PropertyCallbackInfo<v8::Value>& info) |
| 3037 { | 3130 { |
| 3038 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3131 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 3039 TestObjectPythonV8Internal::urlStringAttributeAttributeGetter(info); | 3132 TestObjectPythonV8Internal::urlStringAttributeAttributeGetter(info); |
| 3040 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3133 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3041 } | 3134 } |
| 3042 | 3135 |
| 3043 static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> jsValue, cons
t v8::PropertyCallbackInfo<void>& info) | 3136 static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> jsValue, cons
t v8::PropertyCallbackInfo<void>& info) |
| 3044 { | 3137 { |
| 3138 ExceptionState exceptionState(ExceptionState::SetterContext, "urlStringAttri
bute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 3045 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3139 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3046 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 3140 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
| 3047 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3141 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
| 3048 imp->setAttribute(HTMLNames::urlstringattributeAttr, cppValue); | 3142 imp->setAttribute(HTMLNames::urlstringattributeAttr, cppValue); |
| 3049 } | 3143 } |
| 3050 | 3144 |
| 3051 static void urlStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:
:Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 3145 static void urlStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:
:Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 3052 { | 3146 { |
| 3053 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3147 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 3054 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3148 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
| 3055 TestObjectPythonV8Internal::urlStringAttributeAttributeSetter(jsValue, info)
; | 3149 TestObjectPythonV8Internal::urlStringAttributeAttributeSetter(jsValue, info)
; |
| 3056 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3150 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3057 } | 3151 } |
| 3058 | 3152 |
| 3059 static void urlStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8:
:Value>& info) | 3153 static void urlStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8:
:Value>& info) |
| 3060 { | 3154 { |
| 3061 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3155 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3062 v8SetReturnValueString(info, imp->getURLAttribute(HTMLNames::ReflectUrlAttri
buteAttr), info.GetIsolate()); | 3156 v8SetReturnValueString(info, imp->getURLAttribute(HTMLNames::ReflectUrlAttri
buteAttr), info.GetIsolate()); |
| 3063 } | 3157 } |
| 3064 | 3158 |
| 3065 static void urlStringAttributeAttributeGetterCallback(v8::Local<v8::String>, con
st v8::PropertyCallbackInfo<v8::Value>& info) | 3159 static void urlStringAttributeAttributeGetterCallback(v8::Local<v8::String>, con
st v8::PropertyCallbackInfo<v8::Value>& info) |
| 3066 { | 3160 { |
| 3067 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3161 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 3068 TestObjectPythonV8Internal::urlStringAttributeAttributeGetter(info); | 3162 TestObjectPythonV8Internal::urlStringAttributeAttributeGetter(info); |
| 3069 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3163 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3070 } | 3164 } |
| 3071 | 3165 |
| 3072 static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> jsValue, cons
t v8::PropertyCallbackInfo<void>& info) | 3166 static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> jsValue, cons
t v8::PropertyCallbackInfo<void>& info) |
| 3073 { | 3167 { |
| 3168 ExceptionState exceptionState(ExceptionState::SetterContext, "urlStringAttri
bute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 3074 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3169 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3075 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 3170 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
| 3076 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3171 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
| 3077 imp->setAttribute(HTMLNames::ReflectUrlAttributeAttr, cppValue); | 3172 imp->setAttribute(HTMLNames::ReflectUrlAttributeAttr, cppValue); |
| 3078 } | 3173 } |
| 3079 | 3174 |
| 3080 static void urlStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:
:Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 3175 static void urlStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:
:Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 3081 { | 3176 { |
| 3082 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3177 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 3083 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3178 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 3096 | 3191 |
| 3097 static void unforgeableLongAttributeAttributeGetterCallback(v8::Local<v8::String
>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3192 static void unforgeableLongAttributeAttributeGetterCallback(v8::Local<v8::String
>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 3098 { | 3193 { |
| 3099 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3194 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 3100 TestObjectPythonV8Internal::unforgeableLongAttributeAttributeGetter(info); | 3195 TestObjectPythonV8Internal::unforgeableLongAttributeAttributeGetter(info); |
| 3101 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3196 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3102 } | 3197 } |
| 3103 | 3198 |
| 3104 static void unforgeableLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue
, const v8::PropertyCallbackInfo<void>& info) | 3199 static void unforgeableLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue
, const v8::PropertyCallbackInfo<void>& info) |
| 3105 { | 3200 { |
| 3201 ExceptionState exceptionState(ExceptionState::SetterContext, "unforgeableLon
gAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 3106 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3202 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3107 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); | 3203 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
| 3108 imp->setUnforgeableLongAttribute(cppValue); | 3204 imp->setUnforgeableLongAttribute(cppValue); |
| 3109 } | 3205 } |
| 3110 | 3206 |
| 3111 static void unforgeableLongAttributeAttributeSetterCallback(v8::Local<v8::String
>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 3207 static void unforgeableLongAttributeAttributeSetterCallback(v8::Local<v8::String
>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 3112 { | 3208 { |
| 3113 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3209 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 3114 TestObjectPythonV8Internal::unforgeableLongAttributeAttributeSetter(jsValue,
info); | 3210 TestObjectPythonV8Internal::unforgeableLongAttributeAttributeSetter(jsValue,
info); |
| 3115 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3211 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 3130 info.This()->ForceSet(name, jsValue); | 3226 info.This()->ForceSet(name, jsValue); |
| 3131 } | 3227 } |
| 3132 | 3228 |
| 3133 static void TestObjectPythonReplaceableAttributeSetterCallback(v8::Local<v8::Str
ing> name, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& i
nfo) | 3229 static void TestObjectPythonReplaceableAttributeSetterCallback(v8::Local<v8::Str
ing> name, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& i
nfo) |
| 3134 { | 3230 { |
| 3135 TestObjectPythonV8Internal::TestObjectPythonReplaceableAttributeSetter(name,
jsValue, info); | 3231 TestObjectPythonV8Internal::TestObjectPythonReplaceableAttributeSetter(name,
jsValue, info); |
| 3136 } | 3232 } |
| 3137 | 3233 |
| 3138 static void voidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 3234 static void voidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 3139 { | 3235 { |
| 3236 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethod"
, "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 3140 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3237 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3141 imp->voidMethod(); | 3238 imp->voidMethod(); |
| 3142 } | 3239 } |
| 3143 | 3240 |
| 3144 static void voidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) | 3241 static void voidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 3145 { | 3242 { |
| 3146 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3243 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3147 TestObjectPythonV8Internal::voidMethodMethod(info); | 3244 TestObjectPythonV8Internal::voidMethodMethod(info); |
| 3148 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3245 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3149 } | 3246 } |
| 3150 | 3247 |
| 3151 static void staticVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) | 3248 static void staticVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) |
| 3152 { | 3249 { |
| 3250 ExceptionState exceptionState(ExceptionState::ExecutionContext, "staticVoidM
ethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 3153 TestObjectPython::staticVoidMethod(); | 3251 TestObjectPython::staticVoidMethod(); |
| 3154 } | 3252 } |
| 3155 | 3253 |
| 3156 static void staticVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 3254 static void staticVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
| 3157 { | 3255 { |
| 3158 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3256 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3159 TestObjectPythonV8Internal::staticVoidMethodMethod(info); | 3257 TestObjectPythonV8Internal::staticVoidMethodMethod(info); |
| 3160 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3258 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3161 } | 3259 } |
| 3162 | 3260 |
| 3163 static void dateMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 3261 static void dateMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 3164 { | 3262 { |
| 3263 ExceptionState exceptionState(ExceptionState::ExecutionContext, "dateMethod"
, "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 3165 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3264 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3166 v8SetReturnValue(info, v8DateOrNull(imp->dateMethod(), info.GetIsolate())); | 3265 v8SetReturnValue(info, v8DateOrNull(imp->dateMethod(), info.GetIsolate())); |
| 3167 } | 3266 } |
| 3168 | 3267 |
| 3169 static void dateMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) | 3268 static void dateMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 3170 { | 3269 { |
| 3171 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3270 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3172 TestObjectPythonV8Internal::dateMethodMethod(info); | 3271 TestObjectPythonV8Internal::dateMethodMethod(info); |
| 3173 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3272 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3174 } | 3273 } |
| 3175 | 3274 |
| 3176 static void stringMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 3275 static void stringMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 3177 { | 3276 { |
| 3277 ExceptionState exceptionState(ExceptionState::ExecutionContext, "stringMetho
d", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 3178 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3278 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3179 v8SetReturnValueString(info, imp->stringMethod(), info.GetIsolate()); | 3279 v8SetReturnValueString(info, imp->stringMethod(), info.GetIsolate()); |
| 3180 } | 3280 } |
| 3181 | 3281 |
| 3182 static void stringMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>
& info) | 3282 static void stringMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>
& info) |
| 3183 { | 3283 { |
| 3184 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3284 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3185 TestObjectPythonV8Internal::stringMethodMethod(info); | 3285 TestObjectPythonV8Internal::stringMethodMethod(info); |
| 3186 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3286 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3187 } | 3287 } |
| 3188 | 3288 |
| 3189 static void readonlyDOMTimeStampMethodMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) | 3289 static void readonlyDOMTimeStampMethodMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) |
| 3190 { | 3290 { |
| 3291 ExceptionState exceptionState(ExceptionState::ExecutionContext, "readonlyDOM
TimeStampMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 3191 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3292 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3192 v8SetReturnValue(info, static_cast<double>(imp->readonlyDOMTimeStampMethod()
)); | 3293 v8SetReturnValue(info, static_cast<double>(imp->readonlyDOMTimeStampMethod()
)); |
| 3193 } | 3294 } |
| 3194 | 3295 |
| 3195 static void readonlyDOMTimeStampMethodMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 3296 static void readonlyDOMTimeStampMethodMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
| 3196 { | 3297 { |
| 3197 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3298 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3198 TestObjectPythonV8Internal::readonlyDOMTimeStampMethodMethod(info); | 3299 TestObjectPythonV8Internal::readonlyDOMTimeStampMethodMethod(info); |
| 3199 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3300 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3200 } | 3301 } |
| 3201 | 3302 |
| 3202 static void booleanMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 3303 static void booleanMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 3203 { | 3304 { |
| 3305 ExceptionState exceptionState(ExceptionState::ExecutionContext, "booleanMeth
od", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 3204 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3306 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3205 v8SetReturnValueBool(info, imp->booleanMethod()); | 3307 v8SetReturnValueBool(info, imp->booleanMethod()); |
| 3206 } | 3308 } |
| 3207 | 3309 |
| 3208 static void booleanMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value
>& info) | 3310 static void booleanMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value
>& info) |
| 3209 { | 3311 { |
| 3210 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3312 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3211 TestObjectPythonV8Internal::booleanMethodMethod(info); | 3313 TestObjectPythonV8Internal::booleanMethodMethod(info); |
| 3212 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3314 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3213 } | 3315 } |
| 3214 | 3316 |
| 3215 static void byteMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 3317 static void byteMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 3216 { | 3318 { |
| 3319 ExceptionState exceptionState(ExceptionState::ExecutionContext, "byteMethod"
, "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 3217 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3320 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3218 v8SetReturnValueInt(info, imp->byteMethod()); | 3321 v8SetReturnValueInt(info, imp->byteMethod()); |
| 3219 } | 3322 } |
| 3220 | 3323 |
| 3221 static void byteMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) | 3324 static void byteMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 3222 { | 3325 { |
| 3223 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3326 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3224 TestObjectPythonV8Internal::byteMethodMethod(info); | 3327 TestObjectPythonV8Internal::byteMethodMethod(info); |
| 3225 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3328 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3226 } | 3329 } |
| 3227 | 3330 |
| 3228 static void doubleMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 3331 static void doubleMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 3229 { | 3332 { |
| 3333 ExceptionState exceptionState(ExceptionState::ExecutionContext, "doubleMetho
d", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 3230 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3334 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3231 v8SetReturnValue(info, imp->doubleMethod()); | 3335 v8SetReturnValue(info, imp->doubleMethod()); |
| 3232 } | 3336 } |
| 3233 | 3337 |
| 3234 static void doubleMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>
& info) | 3338 static void doubleMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>
& info) |
| 3235 { | 3339 { |
| 3236 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3340 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3237 TestObjectPythonV8Internal::doubleMethodMethod(info); | 3341 TestObjectPythonV8Internal::doubleMethodMethod(info); |
| 3238 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3342 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3239 } | 3343 } |
| 3240 | 3344 |
| 3241 static void floatMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 3345 static void floatMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 3242 { | 3346 { |
| 3347 ExceptionState exceptionState(ExceptionState::ExecutionContext, "floatMethod
", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 3243 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3348 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3244 v8SetReturnValue(info, imp->floatMethod()); | 3349 v8SetReturnValue(info, imp->floatMethod()); |
| 3245 } | 3350 } |
| 3246 | 3351 |
| 3247 static void floatMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) | 3352 static void floatMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 3248 { | 3353 { |
| 3249 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3354 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3250 TestObjectPythonV8Internal::floatMethodMethod(info); | 3355 TestObjectPythonV8Internal::floatMethodMethod(info); |
| 3251 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3356 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3252 } | 3357 } |
| 3253 | 3358 |
| 3254 static void longMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 3359 static void longMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 3255 { | 3360 { |
| 3361 ExceptionState exceptionState(ExceptionState::ExecutionContext, "longMethod"
, "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 3256 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3362 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3257 v8SetReturnValueInt(info, imp->longMethod()); | 3363 v8SetReturnValueInt(info, imp->longMethod()); |
| 3258 } | 3364 } |
| 3259 | 3365 |
| 3260 static void longMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) | 3366 static void longMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 3261 { | 3367 { |
| 3262 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3368 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3263 TestObjectPythonV8Internal::longMethodMethod(info); | 3369 TestObjectPythonV8Internal::longMethodMethod(info); |
| 3264 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3370 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3265 } | 3371 } |
| 3266 | 3372 |
| 3267 static void longLongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info
) | 3373 static void longLongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info
) |
| 3268 { | 3374 { |
| 3375 ExceptionState exceptionState(ExceptionState::ExecutionContext, "longLongMet
hod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 3269 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3376 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3270 v8SetReturnValue(info, static_cast<double>(imp->longLongMethod())); | 3377 v8SetReturnValue(info, static_cast<double>(imp->longLongMethod())); |
| 3271 } | 3378 } |
| 3272 | 3379 |
| 3273 static void longLongMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Valu
e>& info) | 3380 static void longLongMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Valu
e>& info) |
| 3274 { | 3381 { |
| 3275 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3382 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3276 TestObjectPythonV8Internal::longLongMethodMethod(info); | 3383 TestObjectPythonV8Internal::longLongMethodMethod(info); |
| 3277 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3384 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3278 } | 3385 } |
| 3279 | 3386 |
| 3280 static void octetMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 3387 static void octetMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 3281 { | 3388 { |
| 3389 ExceptionState exceptionState(ExceptionState::ExecutionContext, "octetMethod
", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 3282 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3390 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3283 v8SetReturnValueUnsigned(info, imp->octetMethod()); | 3391 v8SetReturnValueUnsigned(info, imp->octetMethod()); |
| 3284 } | 3392 } |
| 3285 | 3393 |
| 3286 static void octetMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) | 3394 static void octetMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 3287 { | 3395 { |
| 3288 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3396 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3289 TestObjectPythonV8Internal::octetMethodMethod(info); | 3397 TestObjectPythonV8Internal::octetMethodMethod(info); |
| 3290 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3398 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3291 } | 3399 } |
| 3292 | 3400 |
| 3293 static void shortMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 3401 static void shortMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 3294 { | 3402 { |
| 3403 ExceptionState exceptionState(ExceptionState::ExecutionContext, "shortMethod
", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 3295 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3404 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3296 v8SetReturnValueInt(info, imp->shortMethod()); | 3405 v8SetReturnValueInt(info, imp->shortMethod()); |
| 3297 } | 3406 } |
| 3298 | 3407 |
| 3299 static void shortMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) | 3408 static void shortMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 3300 { | 3409 { |
| 3301 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3410 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3302 TestObjectPythonV8Internal::shortMethodMethod(info); | 3411 TestObjectPythonV8Internal::shortMethodMethod(info); |
| 3303 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3412 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3304 } | 3413 } |
| 3305 | 3414 |
| 3306 static void unsignedLongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 3415 static void unsignedLongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 3307 { | 3416 { |
| 3417 ExceptionState exceptionState(ExceptionState::ExecutionContext, "unsignedLon
gMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 3308 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3418 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3309 v8SetReturnValueUnsigned(info, imp->unsignedLongMethod()); | 3419 v8SetReturnValueUnsigned(info, imp->unsignedLongMethod()); |
| 3310 } | 3420 } |
| 3311 | 3421 |
| 3312 static void unsignedLongMethodMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) | 3422 static void unsignedLongMethodMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) |
| 3313 { | 3423 { |
| 3314 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3424 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3315 TestObjectPythonV8Internal::unsignedLongMethodMethod(info); | 3425 TestObjectPythonV8Internal::unsignedLongMethodMethod(info); |
| 3316 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3426 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3317 } | 3427 } |
| 3318 | 3428 |
| 3319 static void unsignedLongLongMethodMethod(const v8::FunctionCallbackInfo<v8::Valu
e>& info) | 3429 static void unsignedLongLongMethodMethod(const v8::FunctionCallbackInfo<v8::Valu
e>& info) |
| 3320 { | 3430 { |
| 3431 ExceptionState exceptionState(ExceptionState::ExecutionContext, "unsignedLon
gLongMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 3321 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3432 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3322 v8SetReturnValue(info, static_cast<double>(imp->unsignedLongLongMethod())); | 3433 v8SetReturnValue(info, static_cast<double>(imp->unsignedLongLongMethod())); |
| 3323 } | 3434 } |
| 3324 | 3435 |
| 3325 static void unsignedLongLongMethodMethodCallback(const v8::FunctionCallbackInfo<
v8::Value>& info) | 3436 static void unsignedLongLongMethodMethodCallback(const v8::FunctionCallbackInfo<
v8::Value>& info) |
| 3326 { | 3437 { |
| 3327 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3438 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3328 TestObjectPythonV8Internal::unsignedLongLongMethodMethod(info); | 3439 TestObjectPythonV8Internal::unsignedLongLongMethodMethod(info); |
| 3329 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3440 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3330 } | 3441 } |
| 3331 | 3442 |
| 3332 static void unsignedShortMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 3443 static void unsignedShortMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 3333 { | 3444 { |
| 3445 ExceptionState exceptionState(ExceptionState::ExecutionContext, "unsignedSho
rtMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 3334 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3446 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3335 v8SetReturnValueUnsigned(info, imp->unsignedShortMethod()); | 3447 v8SetReturnValueUnsigned(info, imp->unsignedShortMethod()); |
| 3336 } | 3448 } |
| 3337 | 3449 |
| 3338 static void unsignedShortMethodMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 3450 static void unsignedShortMethodMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
| 3339 { | 3451 { |
| 3340 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3452 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3341 TestObjectPythonV8Internal::unsignedShortMethodMethod(info); | 3453 TestObjectPythonV8Internal::unsignedShortMethodMethod(info); |
| 3342 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3454 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3343 } | 3455 } |
| 3344 | 3456 |
| 3345 static void voidMethodDateArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 3457 static void voidMethodDateArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
| 3346 { | 3458 { |
| 3459 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
ateArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 3347 if (UNLIKELY(info.Length() < 1)) { | 3460 if (UNLIKELY(info.Length() < 1)) { |
| 3348 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDateArg", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); | 3461 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDateArg", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); |
| 3349 return; | 3462 return; |
| 3350 } | 3463 } |
| 3351 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3464 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3352 V8TRYCATCH_VOID(double, dateArg, toWebCoreDate(info[0])); | 3465 V8TRYCATCH_VOID(double, dateArg, toWebCoreDate(info[0])); |
| 3353 imp->voidMethodDateArg(dateArg); | 3466 imp->voidMethodDateArg(dateArg); |
| 3354 } | 3467 } |
| 3355 | 3468 |
| 3356 static void voidMethodDateArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 3469 static void voidMethodDateArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 3357 { | 3470 { |
| 3358 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3471 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3359 TestObjectPythonV8Internal::voidMethodDateArgMethod(info); | 3472 TestObjectPythonV8Internal::voidMethodDateArgMethod(info); |
| 3360 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3473 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3361 } | 3474 } |
| 3362 | 3475 |
| 3363 static void voidMethodStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 3476 static void voidMethodStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 3364 { | 3477 { |
| 3478 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
tringArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 3365 if (UNLIKELY(info.Length() < 1)) { | 3479 if (UNLIKELY(info.Length() < 1)) { |
| 3366 throwTypeError(ExceptionMessages::failedToExecute("voidMethodStringArg",
"TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), i
nfo.GetIsolate()); | 3480 throwTypeError(ExceptionMessages::failedToExecute("voidMethodStringArg",
"TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), i
nfo.GetIsolate()); |
| 3367 return; | 3481 return; |
| 3368 } | 3482 } |
| 3369 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3483 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3370 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, stringArg, info[0])
; | 3484 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, stringArg, info[0])
; |
| 3371 imp->voidMethodStringArg(stringArg); | 3485 imp->voidMethodStringArg(stringArg); |
| 3372 } | 3486 } |
| 3373 | 3487 |
| 3374 static void voidMethodStringArgMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 3488 static void voidMethodStringArgMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
| 3375 { | 3489 { |
| 3376 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3490 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3377 TestObjectPythonV8Internal::voidMethodStringArgMethod(info); | 3491 TestObjectPythonV8Internal::voidMethodStringArgMethod(info); |
| 3378 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3492 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3379 } | 3493 } |
| 3380 | 3494 |
| 3381 static void voidMethodBooleanArgMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) | 3495 static void voidMethodBooleanArgMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) |
| 3382 { | 3496 { |
| 3497 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodB
ooleanArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 3383 if (UNLIKELY(info.Length() < 1)) { | 3498 if (UNLIKELY(info.Length() < 1)) { |
| 3384 throwTypeError(ExceptionMessages::failedToExecute("voidMethodBooleanArg"
, "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())),
info.GetIsolate()); | 3499 throwTypeError(ExceptionMessages::failedToExecute("voidMethodBooleanArg"
, "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())),
info.GetIsolate()); |
| 3385 return; | 3500 return; |
| 3386 } | 3501 } |
| 3387 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3502 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3388 V8TRYCATCH_VOID(bool, booleanArg, info[0]->BooleanValue()); | 3503 V8TRYCATCH_VOID(bool, booleanArg, info[0]->BooleanValue()); |
| 3389 imp->voidMethodBooleanArg(booleanArg); | 3504 imp->voidMethodBooleanArg(booleanArg); |
| 3390 } | 3505 } |
| 3391 | 3506 |
| 3392 static void voidMethodBooleanArgMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) | 3507 static void voidMethodBooleanArgMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) |
| 3393 { | 3508 { |
| 3394 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3509 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3395 TestObjectPythonV8Internal::voidMethodBooleanArgMethod(info); | 3510 TestObjectPythonV8Internal::voidMethodBooleanArgMethod(info); |
| 3396 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3511 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3397 } | 3512 } |
| 3398 | 3513 |
| 3399 static void voidMethodByteArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 3514 static void voidMethodByteArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
| 3400 { | 3515 { |
| 3516 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodB
yteArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 3401 if (UNLIKELY(info.Length() < 1)) { | 3517 if (UNLIKELY(info.Length() < 1)) { |
| 3402 throwTypeError(ExceptionMessages::failedToExecute("voidMethodByteArg", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); | 3518 throwTypeError(ExceptionMessages::failedToExecute("voidMethodByteArg", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); |
| 3403 return; | 3519 return; |
| 3404 } | 3520 } |
| 3405 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3521 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3406 V8TRYCATCH_VOID(int, byteArg, toInt8(info[0])); | 3522 V8TRYCATCH_VOID(int, byteArg, toInt8(info[0])); |
| 3407 imp->voidMethodByteArg(byteArg); | 3523 imp->voidMethodByteArg(byteArg); |
| 3408 } | 3524 } |
| 3409 | 3525 |
| 3410 static void voidMethodByteArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 3526 static void voidMethodByteArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 3411 { | 3527 { |
| 3412 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3528 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3413 TestObjectPythonV8Internal::voidMethodByteArgMethod(info); | 3529 TestObjectPythonV8Internal::voidMethodByteArgMethod(info); |
| 3414 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3530 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3415 } | 3531 } |
| 3416 | 3532 |
| 3417 static void voidMethodDoubleArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 3533 static void voidMethodDoubleArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 3418 { | 3534 { |
| 3535 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
oubleArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 3419 if (UNLIKELY(info.Length() < 1)) { | 3536 if (UNLIKELY(info.Length() < 1)) { |
| 3420 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDoubleArg",
"TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), i
nfo.GetIsolate()); | 3537 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDoubleArg",
"TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), i
nfo.GetIsolate()); |
| 3421 return; | 3538 return; |
| 3422 } | 3539 } |
| 3423 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3540 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3424 V8TRYCATCH_VOID(double, doubleArg, static_cast<double>(info[0]->NumberValue(
))); | 3541 V8TRYCATCH_VOID(double, doubleArg, static_cast<double>(info[0]->NumberValue(
))); |
| 3425 imp->voidMethodDoubleArg(doubleArg); | 3542 imp->voidMethodDoubleArg(doubleArg); |
| 3426 } | 3543 } |
| 3427 | 3544 |
| 3428 static void voidMethodDoubleArgMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 3545 static void voidMethodDoubleArgMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
| 3429 { | 3546 { |
| 3430 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3547 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3431 TestObjectPythonV8Internal::voidMethodDoubleArgMethod(info); | 3548 TestObjectPythonV8Internal::voidMethodDoubleArgMethod(info); |
| 3432 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3549 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3433 } | 3550 } |
| 3434 | 3551 |
| 3435 static void voidMethodFloatArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 3552 static void voidMethodFloatArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 3436 { | 3553 { |
| 3554 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodF
loatArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 3437 if (UNLIKELY(info.Length() < 1)) { | 3555 if (UNLIKELY(info.Length() < 1)) { |
| 3438 throwTypeError(ExceptionMessages::failedToExecute("voidMethodFloatArg",
"TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), in
fo.GetIsolate()); | 3556 throwTypeError(ExceptionMessages::failedToExecute("voidMethodFloatArg",
"TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), in
fo.GetIsolate()); |
| 3439 return; | 3557 return; |
| 3440 } | 3558 } |
| 3441 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3559 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3442 V8TRYCATCH_VOID(float, floatArg, static_cast<float>(info[0]->NumberValue()))
; | 3560 V8TRYCATCH_VOID(float, floatArg, static_cast<float>(info[0]->NumberValue()))
; |
| 3443 imp->voidMethodFloatArg(floatArg); | 3561 imp->voidMethodFloatArg(floatArg); |
| 3444 } | 3562 } |
| 3445 | 3563 |
| 3446 static void voidMethodFloatArgMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) | 3564 static void voidMethodFloatArgMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) |
| 3447 { | 3565 { |
| 3448 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3566 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3449 TestObjectPythonV8Internal::voidMethodFloatArgMethod(info); | 3567 TestObjectPythonV8Internal::voidMethodFloatArgMethod(info); |
| 3450 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3568 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3451 } | 3569 } |
| 3452 | 3570 |
| 3453 static void voidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 3571 static void voidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
| 3454 { | 3572 { |
| 3573 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 3455 if (UNLIKELY(info.Length() < 1)) { | 3574 if (UNLIKELY(info.Length() < 1)) { |
| 3456 throwTypeError(ExceptionMessages::failedToExecute("voidMethodLongArg", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); | 3575 throwTypeError(ExceptionMessages::failedToExecute("voidMethodLongArg", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); |
| 3457 return; | 3576 return; |
| 3458 } | 3577 } |
| 3459 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3578 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3460 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); | 3579 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); |
| 3461 imp->voidMethodLongArg(longArg); | 3580 imp->voidMethodLongArg(longArg); |
| 3462 } | 3581 } |
| 3463 | 3582 |
| 3464 static void voidMethodLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 3583 static void voidMethodLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 3465 { | 3584 { |
| 3466 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3585 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3467 TestObjectPythonV8Internal::voidMethodLongArgMethod(info); | 3586 TestObjectPythonV8Internal::voidMethodLongArgMethod(info); |
| 3468 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3587 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3469 } | 3588 } |
| 3470 | 3589 |
| 3471 static void voidMethodLongLongArgMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) | 3590 static void voidMethodLongLongArgMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) |
| 3472 { | 3591 { |
| 3592 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 3473 if (UNLIKELY(info.Length() < 1)) { | 3593 if (UNLIKELY(info.Length() < 1)) { |
| 3474 throwTypeError(ExceptionMessages::failedToExecute("voidMethodLongLongArg
", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())),
info.GetIsolate()); | 3594 throwTypeError(ExceptionMessages::failedToExecute("voidMethodLongLongArg
", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())),
info.GetIsolate()); |
| 3475 return; | 3595 return; |
| 3476 } | 3596 } |
| 3477 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3597 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3478 V8TRYCATCH_VOID(long long, longLongArg, toInt64(info[0])); | 3598 V8TRYCATCH_VOID(long long, longLongArg, toInt64(info[0])); |
| 3479 imp->voidMethodLongLongArg(longLongArg); | 3599 imp->voidMethodLongLongArg(longLongArg); |
| 3480 } | 3600 } |
| 3481 | 3601 |
| 3482 static void voidMethodLongLongArgMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) | 3602 static void voidMethodLongLongArgMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) |
| 3483 { | 3603 { |
| 3484 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3604 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3485 TestObjectPythonV8Internal::voidMethodLongLongArgMethod(info); | 3605 TestObjectPythonV8Internal::voidMethodLongLongArgMethod(info); |
| 3486 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3606 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3487 } | 3607 } |
| 3488 | 3608 |
| 3489 static void voidMethodOctetArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 3609 static void voidMethodOctetArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 3490 { | 3610 { |
| 3611 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO
ctetArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 3491 if (UNLIKELY(info.Length() < 1)) { | 3612 if (UNLIKELY(info.Length() < 1)) { |
| 3492 throwTypeError(ExceptionMessages::failedToExecute("voidMethodOctetArg",
"TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), in
fo.GetIsolate()); | 3613 throwTypeError(ExceptionMessages::failedToExecute("voidMethodOctetArg",
"TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), in
fo.GetIsolate()); |
| 3493 return; | 3614 return; |
| 3494 } | 3615 } |
| 3495 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3616 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3496 V8TRYCATCH_VOID(unsigned, octetArg, toUInt8(info[0])); | 3617 V8TRYCATCH_VOID(unsigned, octetArg, toUInt8(info[0])); |
| 3497 imp->voidMethodOctetArg(octetArg); | 3618 imp->voidMethodOctetArg(octetArg); |
| 3498 } | 3619 } |
| 3499 | 3620 |
| 3500 static void voidMethodOctetArgMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) | 3621 static void voidMethodOctetArgMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) |
| 3501 { | 3622 { |
| 3502 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3623 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3503 TestObjectPythonV8Internal::voidMethodOctetArgMethod(info); | 3624 TestObjectPythonV8Internal::voidMethodOctetArgMethod(info); |
| 3504 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3625 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3505 } | 3626 } |
| 3506 | 3627 |
| 3507 static void voidMethodShortArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 3628 static void voidMethodShortArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 3508 { | 3629 { |
| 3630 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
hortArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 3509 if (UNLIKELY(info.Length() < 1)) { | 3631 if (UNLIKELY(info.Length() < 1)) { |
| 3510 throwTypeError(ExceptionMessages::failedToExecute("voidMethodShortArg",
"TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), in
fo.GetIsolate()); | 3632 throwTypeError(ExceptionMessages::failedToExecute("voidMethodShortArg",
"TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), in
fo.GetIsolate()); |
| 3511 return; | 3633 return; |
| 3512 } | 3634 } |
| 3513 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3635 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3514 V8TRYCATCH_VOID(int, shortArg, toInt16(info[0])); | 3636 V8TRYCATCH_VOID(int, shortArg, toInt16(info[0])); |
| 3515 imp->voidMethodShortArg(shortArg); | 3637 imp->voidMethodShortArg(shortArg); |
| 3516 } | 3638 } |
| 3517 | 3639 |
| 3518 static void voidMethodShortArgMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) | 3640 static void voidMethodShortArgMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) |
| 3519 { | 3641 { |
| 3520 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3642 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3521 TestObjectPythonV8Internal::voidMethodShortArgMethod(info); | 3643 TestObjectPythonV8Internal::voidMethodShortArgMethod(info); |
| 3522 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3644 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3523 } | 3645 } |
| 3524 | 3646 |
| 3525 static void voidMethodUnsignedLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 3647 static void voidMethodUnsignedLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 3526 { | 3648 { |
| 3649 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
nsignedLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 3527 if (UNLIKELY(info.Length() < 1)) { | 3650 if (UNLIKELY(info.Length() < 1)) { |
| 3528 throwTypeError(ExceptionMessages::failedToExecute("voidMethodUnsignedLon
gArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length(
))), info.GetIsolate()); | 3651 throwTypeError(ExceptionMessages::failedToExecute("voidMethodUnsignedLon
gArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length(
))), info.GetIsolate()); |
| 3529 return; | 3652 return; |
| 3530 } | 3653 } |
| 3531 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3654 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3532 V8TRYCATCH_VOID(unsigned, unsignedLongArg, toUInt32(info[0])); | 3655 V8TRYCATCH_VOID(unsigned, unsignedLongArg, toUInt32(info[0])); |
| 3533 imp->voidMethodUnsignedLongArg(unsignedLongArg); | 3656 imp->voidMethodUnsignedLongArg(unsignedLongArg); |
| 3534 } | 3657 } |
| 3535 | 3658 |
| 3536 static void voidMethodUnsignedLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 3659 static void voidMethodUnsignedLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
| 3537 { | 3660 { |
| 3538 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3661 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3539 TestObjectPythonV8Internal::voidMethodUnsignedLongArgMethod(info); | 3662 TestObjectPythonV8Internal::voidMethodUnsignedLongArgMethod(info); |
| 3540 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3663 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3541 } | 3664 } |
| 3542 | 3665 |
| 3543 static void voidMethodUnsignedLongLongArgMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) | 3666 static void voidMethodUnsignedLongLongArgMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) |
| 3544 { | 3667 { |
| 3668 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
nsignedLongLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 3545 if (UNLIKELY(info.Length() < 1)) { | 3669 if (UNLIKELY(info.Length() < 1)) { |
| 3546 throwTypeError(ExceptionMessages::failedToExecute("voidMethodUnsignedLon
gLongArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Len
gth())), info.GetIsolate()); | 3670 throwTypeError(ExceptionMessages::failedToExecute("voidMethodUnsignedLon
gLongArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Len
gth())), info.GetIsolate()); |
| 3547 return; | 3671 return; |
| 3548 } | 3672 } |
| 3549 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3673 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3550 V8TRYCATCH_VOID(unsigned long long, unsignedLongLongArg, toUInt64(info[0])); | 3674 V8TRYCATCH_VOID(unsigned long long, unsignedLongLongArg, toUInt64(info[0])); |
| 3551 imp->voidMethodUnsignedLongLongArg(unsignedLongLongArg); | 3675 imp->voidMethodUnsignedLongLongArg(unsignedLongLongArg); |
| 3552 } | 3676 } |
| 3553 | 3677 |
| 3554 static void voidMethodUnsignedLongLongArgMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) | 3678 static void voidMethodUnsignedLongLongArgMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
| 3555 { | 3679 { |
| 3556 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3680 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3557 TestObjectPythonV8Internal::voidMethodUnsignedLongLongArgMethod(info); | 3681 TestObjectPythonV8Internal::voidMethodUnsignedLongLongArgMethod(info); |
| 3558 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3682 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3559 } | 3683 } |
| 3560 | 3684 |
| 3561 static void voidMethodUnsignedShortArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) | 3685 static void voidMethodUnsignedShortArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) |
| 3562 { | 3686 { |
| 3687 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
nsignedShortArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 3563 if (UNLIKELY(info.Length() < 1)) { | 3688 if (UNLIKELY(info.Length() < 1)) { |
| 3564 throwTypeError(ExceptionMessages::failedToExecute("voidMethodUnsignedSho
rtArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length
())), info.GetIsolate()); | 3689 throwTypeError(ExceptionMessages::failedToExecute("voidMethodUnsignedSho
rtArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length
())), info.GetIsolate()); |
| 3565 return; | 3690 return; |
| 3566 } | 3691 } |
| 3567 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3692 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3568 V8TRYCATCH_VOID(unsigned, unsignedShortArg, toUInt16(info[0])); | 3693 V8TRYCATCH_VOID(unsigned, unsignedShortArg, toUInt16(info[0])); |
| 3569 imp->voidMethodUnsignedShortArg(unsignedShortArg); | 3694 imp->voidMethodUnsignedShortArg(unsignedShortArg); |
| 3570 } | 3695 } |
| 3571 | 3696 |
| 3572 static void voidMethodUnsignedShortArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 3697 static void voidMethodUnsignedShortArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
| 3573 { | 3698 { |
| 3574 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3699 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3575 TestObjectPythonV8Internal::voidMethodUnsignedShortArgMethod(info); | 3700 TestObjectPythonV8Internal::voidMethodUnsignedShortArgMethod(info); |
| 3576 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3701 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3577 } | 3702 } |
| 3578 | 3703 |
| 3579 static void testInterfaceEmptyMethodMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 3704 static void testInterfaceEmptyMethodMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
| 3580 { | 3705 { |
| 3706 ExceptionState exceptionState(ExceptionState::ExecutionContext, "testInterfa
ceEmptyMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 3581 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3707 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3582 v8SetReturnValue(info, imp->testInterfaceEmptyMethod()); | 3708 v8SetReturnValue(info, imp->testInterfaceEmptyMethod()); |
| 3583 } | 3709 } |
| 3584 | 3710 |
| 3585 static void testInterfaceEmptyMethodMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) | 3711 static void testInterfaceEmptyMethodMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) |
| 3586 { | 3712 { |
| 3587 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3713 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3588 TestObjectPythonV8Internal::testInterfaceEmptyMethodMethod(info); | 3714 TestObjectPythonV8Internal::testInterfaceEmptyMethodMethod(info); |
| 3589 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3715 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3590 } | 3716 } |
| 3591 | 3717 |
| 3592 static void voidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) | 3718 static void voidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) |
| 3593 { | 3719 { |
| 3720 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT
estInterfaceEmptyArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 3594 if (UNLIKELY(info.Length() < 1)) { | 3721 if (UNLIKELY(info.Length() < 1)) { |
| 3595 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInterfa
ceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.L
ength())), info.GetIsolate()); | 3722 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInterfa
ceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.L
ength())), info.GetIsolate()); |
| 3596 return; | 3723 return; |
| 3597 } | 3724 } |
| 3598 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3725 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3599 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE
mpty::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate())) ? V8
TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0); | 3726 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE
mpty::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate())) ? V8
TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0); |
| 3600 imp->voidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg); | 3727 imp->voidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg); |
| 3601 } | 3728 } |
| 3602 | 3729 |
| 3603 static void voidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) | 3730 static void voidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
| 3604 { | 3731 { |
| 3605 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3732 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3606 TestObjectPythonV8Internal::voidMethodTestInterfaceEmptyArgMethod(info); | 3733 TestObjectPythonV8Internal::voidMethodTestInterfaceEmptyArgMethod(info); |
| 3607 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3734 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3608 } | 3735 } |
| 3609 | 3736 |
| 3610 static void voidMethodLongArgTestInterfaceEmptyArgMethod(const v8::FunctionCallb
ackInfo<v8::Value>& info) | 3737 static void voidMethodLongArgTestInterfaceEmptyArgMethod(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
| 3611 { | 3738 { |
| 3739 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgTestInterfaceEmptyArg", "TestObjectPython", info.Holder(), info.GetIsolate
()); |
| 3612 if (UNLIKELY(info.Length() < 2)) { | 3740 if (UNLIKELY(info.Length() < 2)) { |
| 3613 throwTypeError(ExceptionMessages::failedToExecute("voidMethodLongArgTest
InterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(2,
info.Length())), info.GetIsolate()); | 3741 throwTypeError(ExceptionMessages::failedToExecute("voidMethodLongArgTest
InterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(2,
info.Length())), info.GetIsolate()); |
| 3614 return; | 3742 return; |
| 3615 } | 3743 } |
| 3616 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3744 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3617 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); | 3745 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); |
| 3618 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE
mpty::hasInstance(info[1], info.GetIsolate(), worldType(info.GetIsolate())) ? V8
TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[1])) : 0); | 3746 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE
mpty::hasInstance(info[1], info.GetIsolate(), worldType(info.GetIsolate())) ? V8
TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[1])) : 0); |
| 3619 imp->voidMethodLongArgTestInterfaceEmptyArg(longArg, testInterfaceEmptyArg); | 3747 imp->voidMethodLongArgTestInterfaceEmptyArg(longArg, testInterfaceEmptyArg); |
| 3620 } | 3748 } |
| 3621 | 3749 |
| 3622 static void voidMethodLongArgTestInterfaceEmptyArgMethodCallback(const v8::Funct
ionCallbackInfo<v8::Value>& info) | 3750 static void voidMethodLongArgTestInterfaceEmptyArgMethodCallback(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
| 3623 { | 3751 { |
| 3624 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3752 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3625 TestObjectPythonV8Internal::voidMethodLongArgTestInterfaceEmptyArgMethod(inf
o); | 3753 TestObjectPythonV8Internal::voidMethodLongArgTestInterfaceEmptyArgMethod(inf
o); |
| 3626 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3754 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3627 } | 3755 } |
| 3628 | 3756 |
| 3629 static void compareHowMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) | 3757 static void compareHowMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) |
| 3630 { | 3758 { |
| 3759 ExceptionState exceptionState(ExceptionState::ExecutionContext, "compareHowM
ethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 3631 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3760 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3632 v8SetReturnValue(info, imp->compareHowMethod()); | 3761 v8SetReturnValue(info, imp->compareHowMethod()); |
| 3633 } | 3762 } |
| 3634 | 3763 |
| 3635 static void compareHowMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 3764 static void compareHowMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
| 3636 { | 3765 { |
| 3637 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3766 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3638 TestObjectPythonV8Internal::compareHowMethodMethod(info); | 3767 TestObjectPythonV8Internal::compareHowMethodMethod(info); |
| 3639 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3768 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3640 } | 3769 } |
| 3641 | 3770 |
| 3642 static void anyMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 3771 static void anyMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 3643 { | 3772 { |
| 3773 ExceptionState exceptionState(ExceptionState::ExecutionContext, "anyMethod",
"TestObjectPython", info.Holder(), info.GetIsolate()); |
| 3644 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3774 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3645 v8SetReturnValue(info, imp->anyMethod().v8Value()); | 3775 v8SetReturnValue(info, imp->anyMethod().v8Value()); |
| 3646 } | 3776 } |
| 3647 | 3777 |
| 3648 static void anyMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 3778 static void anyMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
| 3649 { | 3779 { |
| 3650 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3780 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3651 TestObjectPythonV8Internal::anyMethodMethod(info); | 3781 TestObjectPythonV8Internal::anyMethodMethod(info); |
| 3652 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3782 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3653 } | 3783 } |
| 3654 | 3784 |
| 3655 static void voidMethodMediaQueryListListenerArgMethod(const v8::FunctionCallback
Info<v8::Value>& info) | 3785 static void voidMethodMediaQueryListListenerArgMethod(const v8::FunctionCallback
Info<v8::Value>& info) |
| 3656 { | 3786 { |
| 3787 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodM
ediaQueryListListenerArg", "TestObjectPython", info.Holder(), info.GetIsolate())
; |
| 3657 if (UNLIKELY(info.Length() < 1)) { | 3788 if (UNLIKELY(info.Length() < 1)) { |
| 3658 throwTypeError(ExceptionMessages::failedToExecute("voidMethodMediaQueryL
istListenerArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, in
fo.Length())), info.GetIsolate()); | 3789 throwTypeError(ExceptionMessages::failedToExecute("voidMethodMediaQueryL
istListenerArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, in
fo.Length())), info.GetIsolate()); |
| 3659 return; | 3790 return; |
| 3660 } | 3791 } |
| 3661 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3792 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3662 V8TRYCATCH_VOID(RefPtr<MediaQueryListListener>, mediaQueryListListenerArg, M
ediaQueryListListener::create(ScriptValue(info[0], info.GetIsolate()))); | 3793 V8TRYCATCH_VOID(RefPtr<MediaQueryListListener>, mediaQueryListListenerArg, M
ediaQueryListListener::create(ScriptValue(info[0], info.GetIsolate()))); |
| 3663 imp->voidMethodMediaQueryListListenerArg(mediaQueryListListenerArg); | 3794 imp->voidMethodMediaQueryListListenerArg(mediaQueryListListenerArg); |
| 3664 } | 3795 } |
| 3665 | 3796 |
| 3666 static void voidMethodMediaQueryListListenerArgMethodCallback(const v8::Function
CallbackInfo<v8::Value>& info) | 3797 static void voidMethodMediaQueryListListenerArgMethodCallback(const v8::Function
CallbackInfo<v8::Value>& info) |
| 3667 { | 3798 { |
| 3668 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3799 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3669 TestObjectPythonV8Internal::voidMethodMediaQueryListListenerArgMethod(info); | 3800 TestObjectPythonV8Internal::voidMethodMediaQueryListListenerArgMethod(info); |
| 3670 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3801 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3671 } | 3802 } |
| 3672 | 3803 |
| 3673 static void voidMethodCompareHowArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 3804 static void voidMethodCompareHowArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
| 3674 { | 3805 { |
| 3806 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodC
ompareHowArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 3675 if (UNLIKELY(info.Length() < 1)) { | 3807 if (UNLIKELY(info.Length() < 1)) { |
| 3676 throwTypeError(ExceptionMessages::failedToExecute("voidMethodCompareHowA
rg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())
), info.GetIsolate()); | 3808 throwTypeError(ExceptionMessages::failedToExecute("voidMethodCompareHowA
rg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())
), info.GetIsolate()); |
| 3677 return; | 3809 return; |
| 3678 } | 3810 } |
| 3679 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3811 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3680 V8TRYCATCH_VOID(Range::CompareHow, compareHowArg, static_cast<Range::Compare
How>(info[0]->Int32Value())); | 3812 V8TRYCATCH_VOID(Range::CompareHow, compareHowArg, static_cast<Range::Compare
How>(info[0]->Int32Value())); |
| 3681 imp->voidMethodCompareHowArg(compareHowArg); | 3813 imp->voidMethodCompareHowArg(compareHowArg); |
| 3682 } | 3814 } |
| 3683 | 3815 |
| 3684 static void voidMethodCompareHowArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) | 3816 static void voidMethodCompareHowArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) |
| 3685 { | 3817 { |
| 3686 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3818 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3687 TestObjectPythonV8Internal::voidMethodCompareHowArgMethod(info); | 3819 TestObjectPythonV8Internal::voidMethodCompareHowArgMethod(info); |
| 3688 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3820 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3689 } | 3821 } |
| 3690 | 3822 |
| 3691 static void voidMethodAnyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) | 3823 static void voidMethodAnyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) |
| 3692 { | 3824 { |
| 3825 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodA
nyArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 3693 if (UNLIKELY(info.Length() < 1)) { | 3826 if (UNLIKELY(info.Length() < 1)) { |
| 3694 throwTypeError(ExceptionMessages::failedToExecute("voidMethodAnyArg", "T
estObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info
.GetIsolate()); | 3827 throwTypeError(ExceptionMessages::failedToExecute("voidMethodAnyArg", "T
estObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info
.GetIsolate()); |
| 3695 return; | 3828 return; |
| 3696 } | 3829 } |
| 3697 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3830 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3698 V8TRYCATCH_VOID(ScriptValue, anyArg, ScriptValue(info[0], info.GetIsolate())
); | 3831 V8TRYCATCH_VOID(ScriptValue, anyArg, ScriptValue(info[0], info.GetIsolate())
); |
| 3699 imp->voidMethodAnyArg(anyArg); | 3832 imp->voidMethodAnyArg(anyArg); |
| 3700 } | 3833 } |
| 3701 | 3834 |
| 3702 static void voidMethodAnyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 3835 static void voidMethodAnyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
| 3703 { | 3836 { |
| 3704 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3837 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3705 TestObjectPythonV8Internal::voidMethodAnyArgMethod(info); | 3838 TestObjectPythonV8Internal::voidMethodAnyArgMethod(info); |
| 3706 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3839 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3707 } | 3840 } |
| 3708 | 3841 |
| 3709 static void voidMethodAttrArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 3842 static void voidMethodAttrArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
| 3710 { | 3843 { |
| 3844 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodA
ttrArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 3711 if (UNLIKELY(info.Length() < 1)) { | 3845 if (UNLIKELY(info.Length() < 1)) { |
| 3712 throwTypeError(ExceptionMessages::failedToExecute("voidMethodAttrArg", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); | 3846 throwTypeError(ExceptionMessages::failedToExecute("voidMethodAttrArg", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); |
| 3713 return; | 3847 return; |
| 3714 } | 3848 } |
| 3715 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3849 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3716 V8TRYCATCH_VOID(Attr*, attrArg, V8Attr::hasInstance(info[0], info.GetIsolate
(), worldType(info.GetIsolate())) ? V8Attr::toNative(v8::Handle<v8::Object>::Cas
t(info[0])) : 0); | 3850 V8TRYCATCH_VOID(Attr*, attrArg, V8Attr::hasInstance(info[0], info.GetIsolate
(), worldType(info.GetIsolate())) ? V8Attr::toNative(v8::Handle<v8::Object>::Cas
t(info[0])) : 0); |
| 3717 imp->voidMethodAttrArg(attrArg); | 3851 imp->voidMethodAttrArg(attrArg); |
| 3718 } | 3852 } |
| 3719 | 3853 |
| 3720 static void voidMethodAttrArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 3854 static void voidMethodAttrArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 3721 { | 3855 { |
| 3722 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3856 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3723 TestObjectPythonV8Internal::voidMethodAttrArgMethod(info); | 3857 TestObjectPythonV8Internal::voidMethodAttrArgMethod(info); |
| 3724 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3858 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3725 } | 3859 } |
| 3726 | 3860 |
| 3727 static void voidMethodDocumentArgMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) | 3861 static void voidMethodDocumentArgMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) |
| 3728 { | 3862 { |
| 3863 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
ocumentArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 3729 if (UNLIKELY(info.Length() < 1)) { | 3864 if (UNLIKELY(info.Length() < 1)) { |
| 3730 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDocumentArg
", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())),
info.GetIsolate()); | 3865 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDocumentArg
", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())),
info.GetIsolate()); |
| 3731 return; | 3866 return; |
| 3732 } | 3867 } |
| 3733 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3868 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3734 V8TRYCATCH_VOID(Document*, documentArg, V8Document::hasInstance(info[0], inf
o.GetIsolate(), worldType(info.GetIsolate())) ? V8Document::toNative(v8::Handle<
v8::Object>::Cast(info[0])) : 0); | 3869 V8TRYCATCH_VOID(Document*, documentArg, V8Document::hasInstance(info[0], inf
o.GetIsolate(), worldType(info.GetIsolate())) ? V8Document::toNative(v8::Handle<
v8::Object>::Cast(info[0])) : 0); |
| 3735 imp->voidMethodDocumentArg(documentArg); | 3870 imp->voidMethodDocumentArg(documentArg); |
| 3736 } | 3871 } |
| 3737 | 3872 |
| 3738 static void voidMethodDocumentArgMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) | 3873 static void voidMethodDocumentArgMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) |
| 3739 { | 3874 { |
| 3740 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3875 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3741 TestObjectPythonV8Internal::voidMethodDocumentArgMethod(info); | 3876 TestObjectPythonV8Internal::voidMethodDocumentArgMethod(info); |
| 3742 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3877 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3743 } | 3878 } |
| 3744 | 3879 |
| 3745 static void voidMethodDocumentTypeArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 3880 static void voidMethodDocumentTypeArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 3746 { | 3881 { |
| 3882 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
ocumentTypeArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 3747 if (UNLIKELY(info.Length() < 1)) { | 3883 if (UNLIKELY(info.Length() < 1)) { |
| 3748 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDocumentTyp
eArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length(
))), info.GetIsolate()); | 3884 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDocumentTyp
eArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length(
))), info.GetIsolate()); |
| 3749 return; | 3885 return; |
| 3750 } | 3886 } |
| 3751 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3887 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3752 V8TRYCATCH_VOID(DocumentType*, documentTypeArg, V8DocumentType::hasInstance(
info[0], info.GetIsolate(), worldType(info.GetIsolate())) ? V8DocumentType::toNa
tive(v8::Handle<v8::Object>::Cast(info[0])) : 0); | 3888 V8TRYCATCH_VOID(DocumentType*, documentTypeArg, V8DocumentType::hasInstance(
info[0], info.GetIsolate(), worldType(info.GetIsolate())) ? V8DocumentType::toNa
tive(v8::Handle<v8::Object>::Cast(info[0])) : 0); |
| 3753 imp->voidMethodDocumentTypeArg(documentTypeArg); | 3889 imp->voidMethodDocumentTypeArg(documentTypeArg); |
| 3754 } | 3890 } |
| 3755 | 3891 |
| 3756 static void voidMethodDocumentTypeArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 3892 static void voidMethodDocumentTypeArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
| 3757 { | 3893 { |
| 3758 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3894 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3759 TestObjectPythonV8Internal::voidMethodDocumentTypeArgMethod(info); | 3895 TestObjectPythonV8Internal::voidMethodDocumentTypeArgMethod(info); |
| 3760 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3896 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3761 } | 3897 } |
| 3762 | 3898 |
| 3763 static void voidMethodElementArgMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) | 3899 static void voidMethodElementArgMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) |
| 3764 { | 3900 { |
| 3901 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodE
lementArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 3765 if (UNLIKELY(info.Length() < 1)) { | 3902 if (UNLIKELY(info.Length() < 1)) { |
| 3766 throwTypeError(ExceptionMessages::failedToExecute("voidMethodElementArg"
, "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())),
info.GetIsolate()); | 3903 throwTypeError(ExceptionMessages::failedToExecute("voidMethodElementArg"
, "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())),
info.GetIsolate()); |
| 3767 return; | 3904 return; |
| 3768 } | 3905 } |
| 3769 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3906 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3770 V8TRYCATCH_VOID(Element*, elementArg, V8Element::hasInstance(info[0], info.G
etIsolate(), worldType(info.GetIsolate())) ? V8Element::toNative(v8::Handle<v8::
Object>::Cast(info[0])) : 0); | 3907 V8TRYCATCH_VOID(Element*, elementArg, V8Element::hasInstance(info[0], info.G
etIsolate(), worldType(info.GetIsolate())) ? V8Element::toNative(v8::Handle<v8::
Object>::Cast(info[0])) : 0); |
| 3771 imp->voidMethodElementArg(elementArg); | 3908 imp->voidMethodElementArg(elementArg); |
| 3772 } | 3909 } |
| 3773 | 3910 |
| 3774 static void voidMethodElementArgMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) | 3911 static void voidMethodElementArgMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) |
| 3775 { | 3912 { |
| 3776 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3913 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3777 TestObjectPythonV8Internal::voidMethodElementArgMethod(info); | 3914 TestObjectPythonV8Internal::voidMethodElementArgMethod(info); |
| 3778 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3915 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3779 } | 3916 } |
| 3780 | 3917 |
| 3781 static void voidMethodNodeArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 3918 static void voidMethodNodeArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
| 3782 { | 3919 { |
| 3920 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodN
odeArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 3783 if (UNLIKELY(info.Length() < 1)) { | 3921 if (UNLIKELY(info.Length() < 1)) { |
| 3784 throwTypeError(ExceptionMessages::failedToExecute("voidMethodNodeArg", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); | 3922 throwTypeError(ExceptionMessages::failedToExecute("voidMethodNodeArg", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); |
| 3785 return; | 3923 return; |
| 3786 } | 3924 } |
| 3787 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3925 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3788 V8TRYCATCH_VOID(Node*, nodeArg, V8Node::hasInstance(info[0], info.GetIsolate
(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Cas
t(info[0])) : 0); | 3926 V8TRYCATCH_VOID(Node*, nodeArg, V8Node::hasInstance(info[0], info.GetIsolate
(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Cas
t(info[0])) : 0); |
| 3789 imp->voidMethodNodeArg(nodeArg); | 3927 imp->voidMethodNodeArg(nodeArg); |
| 3790 } | 3928 } |
| 3791 | 3929 |
| 3792 static void voidMethodNodeArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 3930 static void voidMethodNodeArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 3793 { | 3931 { |
| 3794 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3932 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3795 TestObjectPythonV8Internal::voidMethodNodeArgMethod(info); | 3933 TestObjectPythonV8Internal::voidMethodNodeArgMethod(info); |
| 3796 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3934 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3797 } | 3935 } |
| 3798 | 3936 |
| 3799 static void arrayBufferMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 3937 static void arrayBufferMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
| 3800 { | 3938 { |
| 3939 ExceptionState exceptionState(ExceptionState::ExecutionContext, "arrayBuffer
Method", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 3801 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3940 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3802 v8SetReturnValue(info, imp->arrayBufferMethod()); | 3941 v8SetReturnValue(info, imp->arrayBufferMethod()); |
| 3803 } | 3942 } |
| 3804 | 3943 |
| 3805 static void arrayBufferMethodMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 3944 static void arrayBufferMethodMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 3806 { | 3945 { |
| 3807 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3946 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3808 TestObjectPythonV8Internal::arrayBufferMethodMethod(info); | 3947 TestObjectPythonV8Internal::arrayBufferMethodMethod(info); |
| 3809 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3948 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3810 } | 3949 } |
| 3811 | 3950 |
| 3812 static void arrayBufferViewMethodMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) | 3951 static void arrayBufferViewMethodMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) |
| 3813 { | 3952 { |
| 3953 ExceptionState exceptionState(ExceptionState::ExecutionContext, "arrayBuffer
ViewMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 3814 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3954 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3815 v8SetReturnValue(info, imp->arrayBufferViewMethod()); | 3955 v8SetReturnValue(info, imp->arrayBufferViewMethod()); |
| 3816 } | 3956 } |
| 3817 | 3957 |
| 3818 static void arrayBufferViewMethodMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) | 3958 static void arrayBufferViewMethodMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) |
| 3819 { | 3959 { |
| 3820 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3960 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3821 TestObjectPythonV8Internal::arrayBufferViewMethodMethod(info); | 3961 TestObjectPythonV8Internal::arrayBufferViewMethodMethod(info); |
| 3822 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3962 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3823 } | 3963 } |
| 3824 | 3964 |
| 3825 static void float32ArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 3965 static void float32ArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 3826 { | 3966 { |
| 3967 ExceptionState exceptionState(ExceptionState::ExecutionContext, "float32Arra
yMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 3827 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3968 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3828 v8SetReturnValue(info, imp->float32ArrayMethod()); | 3969 v8SetReturnValue(info, imp->float32ArrayMethod()); |
| 3829 } | 3970 } |
| 3830 | 3971 |
| 3831 static void float32ArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) | 3972 static void float32ArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) |
| 3832 { | 3973 { |
| 3833 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3974 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3834 TestObjectPythonV8Internal::float32ArrayMethodMethod(info); | 3975 TestObjectPythonV8Internal::float32ArrayMethodMethod(info); |
| 3835 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3976 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3836 } | 3977 } |
| 3837 | 3978 |
| 3838 static void int32ArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) | 3979 static void int32ArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) |
| 3839 { | 3980 { |
| 3981 ExceptionState exceptionState(ExceptionState::ExecutionContext, "int32ArrayM
ethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 3840 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3982 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3841 v8SetReturnValue(info, imp->int32ArrayMethod()); | 3983 v8SetReturnValue(info, imp->int32ArrayMethod()); |
| 3842 } | 3984 } |
| 3843 | 3985 |
| 3844 static void int32ArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 3986 static void int32ArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
| 3845 { | 3987 { |
| 3846 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3988 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3847 TestObjectPythonV8Internal::int32ArrayMethodMethod(info); | 3989 TestObjectPythonV8Internal::int32ArrayMethodMethod(info); |
| 3848 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3990 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3849 } | 3991 } |
| 3850 | 3992 |
| 3851 static void uint8ArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) | 3993 static void uint8ArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) |
| 3852 { | 3994 { |
| 3995 ExceptionState exceptionState(ExceptionState::ExecutionContext, "uint8ArrayM
ethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 3853 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3996 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3854 v8SetReturnValue(info, imp->uint8ArrayMethod()); | 3997 v8SetReturnValue(info, imp->uint8ArrayMethod()); |
| 3855 } | 3998 } |
| 3856 | 3999 |
| 3857 static void uint8ArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 4000 static void uint8ArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
| 3858 { | 4001 { |
| 3859 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4002 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3860 TestObjectPythonV8Internal::uint8ArrayMethodMethod(info); | 4003 TestObjectPythonV8Internal::uint8ArrayMethodMethod(info); |
| 3861 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4004 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3862 } | 4005 } |
| 3863 | 4006 |
| 3864 static void voidMethodArrayBufferArgMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 4007 static void voidMethodArrayBufferArgMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
| 3865 { | 4008 { |
| 4009 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodA
rrayBufferArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 3866 if (UNLIKELY(info.Length() < 1)) { | 4010 if (UNLIKELY(info.Length() < 1)) { |
| 3867 throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayBuffer
Arg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length()
)), info.GetIsolate()); | 4011 throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayBuffer
Arg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length()
)), info.GetIsolate()); |
| 3868 return; | 4012 return; |
| 3869 } | 4013 } |
| 3870 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4014 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3871 V8TRYCATCH_VOID(ArrayBuffer*, arrayBufferArg, info[0]->IsArrayBuffer() ? V8A
rrayBuffer::toNative(v8::Handle<v8::ArrayBuffer>::Cast(info[0])) : 0); | 4015 V8TRYCATCH_VOID(ArrayBuffer*, arrayBufferArg, info[0]->IsArrayBuffer() ? V8A
rrayBuffer::toNative(v8::Handle<v8::ArrayBuffer>::Cast(info[0])) : 0); |
| 3872 imp->voidMethodArrayBufferArg(arrayBufferArg); | 4016 imp->voidMethodArrayBufferArg(arrayBufferArg); |
| 3873 } | 4017 } |
| 3874 | 4018 |
| 3875 static void voidMethodArrayBufferArgMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) | 4019 static void voidMethodArrayBufferArgMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) |
| 3876 { | 4020 { |
| 3877 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4021 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3878 TestObjectPythonV8Internal::voidMethodArrayBufferArgMethod(info); | 4022 TestObjectPythonV8Internal::voidMethodArrayBufferArgMethod(info); |
| 3879 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4023 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3880 } | 4024 } |
| 3881 | 4025 |
| 3882 static void voidMethodArrayBufferViewArgMethod(const v8::FunctionCallbackInfo<v8
::Value>& info) | 4026 static void voidMethodArrayBufferViewArgMethod(const v8::FunctionCallbackInfo<v8
::Value>& info) |
| 3883 { | 4027 { |
| 4028 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodA
rrayBufferViewArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 3884 if (UNLIKELY(info.Length() < 1)) { | 4029 if (UNLIKELY(info.Length() < 1)) { |
| 3885 throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayBuffer
ViewArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Leng
th())), info.GetIsolate()); | 4030 throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayBuffer
ViewArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Leng
th())), info.GetIsolate()); |
| 3886 return; | 4031 return; |
| 3887 } | 4032 } |
| 3888 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4033 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3889 V8TRYCATCH_VOID(ArrayBufferView*, arrayBufferViewArg, info[0]->IsArrayBuffer
View() ? V8ArrayBufferView::toNative(v8::Handle<v8::ArrayBufferView>::Cast(info[
0])) : 0); | 4034 V8TRYCATCH_VOID(ArrayBufferView*, arrayBufferViewArg, info[0]->IsArrayBuffer
View() ? V8ArrayBufferView::toNative(v8::Handle<v8::ArrayBufferView>::Cast(info[
0])) : 0); |
| 3890 imp->voidMethodArrayBufferViewArg(arrayBufferViewArg); | 4035 imp->voidMethodArrayBufferViewArg(arrayBufferViewArg); |
| 3891 } | 4036 } |
| 3892 | 4037 |
| 3893 static void voidMethodArrayBufferViewArgMethodCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 4038 static void voidMethodArrayBufferViewArgMethodCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
| 3894 { | 4039 { |
| 3895 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4040 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3896 TestObjectPythonV8Internal::voidMethodArrayBufferViewArgMethod(info); | 4041 TestObjectPythonV8Internal::voidMethodArrayBufferViewArgMethod(info); |
| 3897 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4042 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3898 } | 4043 } |
| 3899 | 4044 |
| 3900 static void voidMethodFloat32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 4045 static void voidMethodFloat32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 3901 { | 4046 { |
| 4047 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodF
loat32ArrayArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 3902 if (UNLIKELY(info.Length() < 1)) { | 4048 if (UNLIKELY(info.Length() < 1)) { |
| 3903 throwTypeError(ExceptionMessages::failedToExecute("voidMethodFloat32Arra
yArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length(
))), info.GetIsolate()); | 4049 throwTypeError(ExceptionMessages::failedToExecute("voidMethodFloat32Arra
yArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length(
))), info.GetIsolate()); |
| 3904 return; | 4050 return; |
| 3905 } | 4051 } |
| 3906 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4052 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3907 V8TRYCATCH_VOID(Float32Array*, float32ArrayArg, info[0]->IsFloat32Array() ?
V8Float32Array::toNative(v8::Handle<v8::Float32Array>::Cast(info[0])) : 0); | 4053 V8TRYCATCH_VOID(Float32Array*, float32ArrayArg, info[0]->IsFloat32Array() ?
V8Float32Array::toNative(v8::Handle<v8::Float32Array>::Cast(info[0])) : 0); |
| 3908 imp->voidMethodFloat32ArrayArg(float32ArrayArg); | 4054 imp->voidMethodFloat32ArrayArg(float32ArrayArg); |
| 3909 } | 4055 } |
| 3910 | 4056 |
| 3911 static void voidMethodFloat32ArrayArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 4057 static void voidMethodFloat32ArrayArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
| 3912 { | 4058 { |
| 3913 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4059 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3914 TestObjectPythonV8Internal::voidMethodFloat32ArrayArgMethod(info); | 4060 TestObjectPythonV8Internal::voidMethodFloat32ArrayArgMethod(info); |
| 3915 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4061 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3916 } | 4062 } |
| 3917 | 4063 |
| 3918 static void voidMethodInt32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 4064 static void voidMethodInt32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
| 3919 { | 4065 { |
| 4066 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodI
nt32ArrayArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 3920 if (UNLIKELY(info.Length() < 1)) { | 4067 if (UNLIKELY(info.Length() < 1)) { |
| 3921 throwTypeError(ExceptionMessages::failedToExecute("voidMethodInt32ArrayA
rg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())
), info.GetIsolate()); | 4068 throwTypeError(ExceptionMessages::failedToExecute("voidMethodInt32ArrayA
rg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())
), info.GetIsolate()); |
| 3922 return; | 4069 return; |
| 3923 } | 4070 } |
| 3924 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4071 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3925 V8TRYCATCH_VOID(Int32Array*, int32ArrayArg, info[0]->IsInt32Array() ? V8Int3
2Array::toNative(v8::Handle<v8::Int32Array>::Cast(info[0])) : 0); | 4072 V8TRYCATCH_VOID(Int32Array*, int32ArrayArg, info[0]->IsInt32Array() ? V8Int3
2Array::toNative(v8::Handle<v8::Int32Array>::Cast(info[0])) : 0); |
| 3926 imp->voidMethodInt32ArrayArg(int32ArrayArg); | 4073 imp->voidMethodInt32ArrayArg(int32ArrayArg); |
| 3927 } | 4074 } |
| 3928 | 4075 |
| 3929 static void voidMethodInt32ArrayArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) | 4076 static void voidMethodInt32ArrayArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) |
| 3930 { | 4077 { |
| 3931 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4078 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3932 TestObjectPythonV8Internal::voidMethodInt32ArrayArgMethod(info); | 4079 TestObjectPythonV8Internal::voidMethodInt32ArrayArgMethod(info); |
| 3933 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4080 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3934 } | 4081 } |
| 3935 | 4082 |
| 3936 static void voidMethodUint8ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 4083 static void voidMethodUint8ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
| 3937 { | 4084 { |
| 4085 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
int8ArrayArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 3938 if (UNLIKELY(info.Length() < 1)) { | 4086 if (UNLIKELY(info.Length() < 1)) { |
| 3939 throwTypeError(ExceptionMessages::failedToExecute("voidMethodUint8ArrayA
rg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())
), info.GetIsolate()); | 4087 throwTypeError(ExceptionMessages::failedToExecute("voidMethodUint8ArrayA
rg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())
), info.GetIsolate()); |
| 3940 return; | 4088 return; |
| 3941 } | 4089 } |
| 3942 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4090 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3943 V8TRYCATCH_VOID(Uint8Array*, uint8ArrayArg, info[0]->IsUint8Array() ? V8Uint
8Array::toNative(v8::Handle<v8::Uint8Array>::Cast(info[0])) : 0); | 4091 V8TRYCATCH_VOID(Uint8Array*, uint8ArrayArg, info[0]->IsUint8Array() ? V8Uint
8Array::toNative(v8::Handle<v8::Uint8Array>::Cast(info[0])) : 0); |
| 3944 imp->voidMethodUint8ArrayArg(uint8ArrayArg); | 4092 imp->voidMethodUint8ArrayArg(uint8ArrayArg); |
| 3945 } | 4093 } |
| 3946 | 4094 |
| 3947 static void voidMethodUint8ArrayArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) | 4095 static void voidMethodUint8ArrayArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) |
| 3948 { | 4096 { |
| 3949 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4097 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3950 TestObjectPythonV8Internal::voidMethodUint8ArrayArgMethod(info); | 4098 TestObjectPythonV8Internal::voidMethodUint8ArrayArgMethod(info); |
| 3951 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4099 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3952 } | 4100 } |
| 3953 | 4101 |
| 3954 static void longArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& inf
o) | 4102 static void longArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& inf
o) |
| 3955 { | 4103 { |
| 4104 ExceptionState exceptionState(ExceptionState::ExecutionContext, "longArrayMe
thod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 3956 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4105 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3957 v8SetReturnValue(info, v8Array(imp->longArrayMethod(), info.GetIsolate())); | 4106 v8SetReturnValue(info, v8Array(imp->longArrayMethod(), info.GetIsolate())); |
| 3958 } | 4107 } |
| 3959 | 4108 |
| 3960 static void longArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 4109 static void longArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
| 3961 { | 4110 { |
| 3962 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4111 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3963 TestObjectPythonV8Internal::longArrayMethodMethod(info); | 4112 TestObjectPythonV8Internal::longArrayMethodMethod(info); |
| 3964 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4113 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3965 } | 4114 } |
| 3966 | 4115 |
| 3967 static void stringArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 4116 static void stringArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
| 3968 { | 4117 { |
| 4118 ExceptionState exceptionState(ExceptionState::ExecutionContext, "stringArray
Method", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 3969 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4119 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3970 v8SetReturnValue(info, v8Array(imp->stringArrayMethod(), info.GetIsolate()))
; | 4120 v8SetReturnValue(info, v8Array(imp->stringArrayMethod(), info.GetIsolate()))
; |
| 3971 } | 4121 } |
| 3972 | 4122 |
| 3973 static void stringArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 4123 static void stringArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 3974 { | 4124 { |
| 3975 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4125 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3976 TestObjectPythonV8Internal::stringArrayMethodMethod(info); | 4126 TestObjectPythonV8Internal::stringArrayMethodMethod(info); |
| 3977 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4127 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3978 } | 4128 } |
| 3979 | 4129 |
| 3980 static void testInterfaceEmptyArrayMethodMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) | 4130 static void testInterfaceEmptyArrayMethodMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) |
| 3981 { | 4131 { |
| 4132 ExceptionState exceptionState(ExceptionState::ExecutionContext, "testInterfa
ceEmptyArrayMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 3982 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4133 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3983 v8SetReturnValue(info, v8Array(imp->testInterfaceEmptyArrayMethod(), info.Ge
tIsolate())); | 4134 v8SetReturnValue(info, v8Array(imp->testInterfaceEmptyArrayMethod(), info.Ge
tIsolate())); |
| 3984 } | 4135 } |
| 3985 | 4136 |
| 3986 static void testInterfaceEmptyArrayMethodMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) | 4137 static void testInterfaceEmptyArrayMethodMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
| 3987 { | 4138 { |
| 3988 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4139 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3989 TestObjectPythonV8Internal::testInterfaceEmptyArrayMethodMethod(info); | 4140 TestObjectPythonV8Internal::testInterfaceEmptyArrayMethodMethod(info); |
| 3990 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4141 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3991 } | 4142 } |
| 3992 | 4143 |
| 3993 static void voidMethodArrayLongArgMethod(const v8::FunctionCallbackInfo<v8::Valu
e>& info) | 4144 static void voidMethodArrayLongArgMethod(const v8::FunctionCallbackInfo<v8::Valu
e>& info) |
| 3994 { | 4145 { |
| 4146 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodA
rrayLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 3995 if (UNLIKELY(info.Length() < 1)) { | 4147 if (UNLIKELY(info.Length() < 1)) { |
| 3996 throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayLongAr
g", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length()))
, info.GetIsolate()); | 4148 throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayLongAr
g", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length()))
, info.GetIsolate()); |
| 3997 return; | 4149 return; |
| 3998 } | 4150 } |
| 3999 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4151 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4000 V8TRYCATCH_VOID(Vector<int>, arrayLongArg, toNativeArray<int>(info[0], 1, in
fo.GetIsolate())); | 4152 V8TRYCATCH_VOID(Vector<int>, arrayLongArg, toNativeArray<int>(info[0], 1, in
fo.GetIsolate())); |
| 4001 imp->voidMethodArrayLongArg(arrayLongArg); | 4153 imp->voidMethodArrayLongArg(arrayLongArg); |
| 4002 } | 4154 } |
| 4003 | 4155 |
| 4004 static void voidMethodArrayLongArgMethodCallback(const v8::FunctionCallbackInfo<
v8::Value>& info) | 4156 static void voidMethodArrayLongArgMethodCallback(const v8::FunctionCallbackInfo<
v8::Value>& info) |
| 4005 { | 4157 { |
| 4006 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4158 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4007 TestObjectPythonV8Internal::voidMethodArrayLongArgMethod(info); | 4159 TestObjectPythonV8Internal::voidMethodArrayLongArgMethod(info); |
| 4008 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4160 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4009 } | 4161 } |
| 4010 | 4162 |
| 4011 static void voidMethodArrayStringArgMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 4163 static void voidMethodArrayStringArgMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
| 4012 { | 4164 { |
| 4165 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodA
rrayStringArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 4013 if (UNLIKELY(info.Length() < 1)) { | 4166 if (UNLIKELY(info.Length() < 1)) { |
| 4014 throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayString
Arg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length()
)), info.GetIsolate()); | 4167 throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayString
Arg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length()
)), info.GetIsolate()); |
| 4015 return; | 4168 return; |
| 4016 } | 4169 } |
| 4017 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4170 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4018 V8TRYCATCH_VOID(Vector<String>, arrayStringArg, toNativeArray<String>(info[0
], 1, info.GetIsolate())); | 4171 V8TRYCATCH_VOID(Vector<String>, arrayStringArg, toNativeArray<String>(info[0
], 1, info.GetIsolate())); |
| 4019 imp->voidMethodArrayStringArg(arrayStringArg); | 4172 imp->voidMethodArrayStringArg(arrayStringArg); |
| 4020 } | 4173 } |
| 4021 | 4174 |
| 4022 static void voidMethodArrayStringArgMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) | 4175 static void voidMethodArrayStringArgMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) |
| 4023 { | 4176 { |
| 4024 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4177 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4025 TestObjectPythonV8Internal::voidMethodArrayStringArgMethod(info); | 4178 TestObjectPythonV8Internal::voidMethodArrayStringArgMethod(info); |
| 4026 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4179 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4027 } | 4180 } |
| 4028 | 4181 |
| 4029 static void voidMethodArrayTestInterfaceEmptyArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 4182 static void voidMethodArrayTestInterfaceEmptyArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
| 4030 { | 4183 { |
| 4184 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodA
rrayTestInterfaceEmptyArg", "TestObjectPython", info.Holder(), info.GetIsolate()
); |
| 4031 if (UNLIKELY(info.Length() < 1)) { | 4185 if (UNLIKELY(info.Length() < 1)) { |
| 4032 throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayTestIn
terfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, i
nfo.Length())), info.GetIsolate()); | 4186 throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayTestIn
terfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, i
nfo.Length())), info.GetIsolate()); |
| 4033 return; | 4187 return; |
| 4034 } | 4188 } |
| 4035 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4189 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4036 V8TRYCATCH_VOID(Vector<RefPtr<TestInterfaceEmpty> >, arrayTestInterfaceEmpty
Arg, (toRefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1,
info.GetIsolate()))); | 4190 V8TRYCATCH_VOID(Vector<RefPtr<TestInterfaceEmpty> >, arrayTestInterfaceEmpty
Arg, (toRefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1,
info.GetIsolate()))); |
| 4037 imp->voidMethodArrayTestInterfaceEmptyArg(arrayTestInterfaceEmptyArg); | 4191 imp->voidMethodArrayTestInterfaceEmptyArg(arrayTestInterfaceEmptyArg); |
| 4038 } | 4192 } |
| 4039 | 4193 |
| 4040 static void voidMethodArrayTestInterfaceEmptyArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) | 4194 static void voidMethodArrayTestInterfaceEmptyArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) |
| 4041 { | 4195 { |
| 4042 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4196 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4043 TestObjectPythonV8Internal::voidMethodArrayTestInterfaceEmptyArgMethod(info)
; | 4197 TestObjectPythonV8Internal::voidMethodArrayTestInterfaceEmptyArgMethod(info)
; |
| 4044 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4198 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4045 } | 4199 } |
| 4046 | 4200 |
| 4047 static void sequenceLongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 4201 static void sequenceLongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 4048 { | 4202 { |
| 4203 ExceptionState exceptionState(ExceptionState::ExecutionContext, "sequenceLon
gMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 4049 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4204 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4050 v8SetReturnValue(info, v8Array(imp->sequenceLongMethod(), info.GetIsolate())
); | 4205 v8SetReturnValue(info, v8Array(imp->sequenceLongMethod(), info.GetIsolate())
); |
| 4051 } | 4206 } |
| 4052 | 4207 |
| 4053 static void sequenceLongMethodMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) | 4208 static void sequenceLongMethodMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) |
| 4054 { | 4209 { |
| 4055 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4210 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4056 TestObjectPythonV8Internal::sequenceLongMethodMethod(info); | 4211 TestObjectPythonV8Internal::sequenceLongMethodMethod(info); |
| 4057 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4212 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4058 } | 4213 } |
| 4059 | 4214 |
| 4060 static void sequenceStringMethodMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) | 4215 static void sequenceStringMethodMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) |
| 4061 { | 4216 { |
| 4217 ExceptionState exceptionState(ExceptionState::ExecutionContext, "sequenceStr
ingMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 4062 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4218 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4063 v8SetReturnValue(info, v8Array(imp->sequenceStringMethod(), info.GetIsolate(
))); | 4219 v8SetReturnValue(info, v8Array(imp->sequenceStringMethod(), info.GetIsolate(
))); |
| 4064 } | 4220 } |
| 4065 | 4221 |
| 4066 static void sequenceStringMethodMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) | 4222 static void sequenceStringMethodMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) |
| 4067 { | 4223 { |
| 4068 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4224 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4069 TestObjectPythonV8Internal::sequenceStringMethodMethod(info); | 4225 TestObjectPythonV8Internal::sequenceStringMethodMethod(info); |
| 4070 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4226 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4071 } | 4227 } |
| 4072 | 4228 |
| 4073 static void sequenceTestInterfaceEmptyMethodMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) | 4229 static void sequenceTestInterfaceEmptyMethodMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) |
| 4074 { | 4230 { |
| 4231 ExceptionState exceptionState(ExceptionState::ExecutionContext, "sequenceTes
tInterfaceEmptyMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 4075 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4232 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4076 v8SetReturnValue(info, v8Array(imp->sequenceTestInterfaceEmptyMethod(), info
.GetIsolate())); | 4233 v8SetReturnValue(info, v8Array(imp->sequenceTestInterfaceEmptyMethod(), info
.GetIsolate())); |
| 4077 } | 4234 } |
| 4078 | 4235 |
| 4079 static void sequenceTestInterfaceEmptyMethodMethodCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) | 4236 static void sequenceTestInterfaceEmptyMethodMethodCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
| 4080 { | 4237 { |
| 4081 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4238 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4082 TestObjectPythonV8Internal::sequenceTestInterfaceEmptyMethodMethod(info); | 4239 TestObjectPythonV8Internal::sequenceTestInterfaceEmptyMethodMethod(info); |
| 4083 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4240 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4084 } | 4241 } |
| 4085 | 4242 |
| 4086 static void voidMethodSequenceLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 4243 static void voidMethodSequenceLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 4087 { | 4244 { |
| 4245 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
equenceLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 4088 if (UNLIKELY(info.Length() < 1)) { | 4246 if (UNLIKELY(info.Length() < 1)) { |
| 4089 throwTypeError(ExceptionMessages::failedToExecute("voidMethodSequenceLon
gArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length(
))), info.GetIsolate()); | 4247 throwTypeError(ExceptionMessages::failedToExecute("voidMethodSequenceLon
gArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length(
))), info.GetIsolate()); |
| 4090 return; | 4248 return; |
| 4091 } | 4249 } |
| 4092 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4250 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4093 V8TRYCATCH_VOID(Vector<int>, sequenceLongArg, toNativeArray<int>(info[0], 1,
info.GetIsolate())); | 4251 V8TRYCATCH_VOID(Vector<int>, sequenceLongArg, toNativeArray<int>(info[0], 1,
info.GetIsolate())); |
| 4094 imp->voidMethodSequenceLongArg(sequenceLongArg); | 4252 imp->voidMethodSequenceLongArg(sequenceLongArg); |
| 4095 } | 4253 } |
| 4096 | 4254 |
| 4097 static void voidMethodSequenceLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 4255 static void voidMethodSequenceLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
| 4098 { | 4256 { |
| 4099 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4257 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4100 TestObjectPythonV8Internal::voidMethodSequenceLongArgMethod(info); | 4258 TestObjectPythonV8Internal::voidMethodSequenceLongArgMethod(info); |
| 4101 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4259 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4102 } | 4260 } |
| 4103 | 4261 |
| 4104 static void voidMethodSequenceStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 4262 static void voidMethodSequenceStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
| 4105 { | 4263 { |
| 4264 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
equenceStringArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 4106 if (UNLIKELY(info.Length() < 1)) { | 4265 if (UNLIKELY(info.Length() < 1)) { |
| 4107 throwTypeError(ExceptionMessages::failedToExecute("voidMethodSequenceStr
ingArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Lengt
h())), info.GetIsolate()); | 4266 throwTypeError(ExceptionMessages::failedToExecute("voidMethodSequenceStr
ingArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Lengt
h())), info.GetIsolate()); |
| 4108 return; | 4267 return; |
| 4109 } | 4268 } |
| 4110 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4269 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4111 V8TRYCATCH_VOID(Vector<String>, sequenceStringArg, toNativeArray<String>(inf
o[0], 1, info.GetIsolate())); | 4270 V8TRYCATCH_VOID(Vector<String>, sequenceStringArg, toNativeArray<String>(inf
o[0], 1, info.GetIsolate())); |
| 4112 imp->voidMethodSequenceStringArg(sequenceStringArg); | 4271 imp->voidMethodSequenceStringArg(sequenceStringArg); |
| 4113 } | 4272 } |
| 4114 | 4273 |
| 4115 static void voidMethodSequenceStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 4274 static void voidMethodSequenceStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
| 4116 { | 4275 { |
| 4117 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4276 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4118 TestObjectPythonV8Internal::voidMethodSequenceStringArgMethod(info); | 4277 TestObjectPythonV8Internal::voidMethodSequenceStringArgMethod(info); |
| 4119 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4278 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4120 } | 4279 } |
| 4121 | 4280 |
| 4122 static void voidMethodSequenceTestInterfaceEmptyArgMethod(const v8::FunctionCall
backInfo<v8::Value>& info) | 4281 static void voidMethodSequenceTestInterfaceEmptyArgMethod(const v8::FunctionCall
backInfo<v8::Value>& info) |
| 4123 { | 4282 { |
| 4283 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
equenceTestInterfaceEmptyArg", "TestObjectPython", info.Holder(), info.GetIsolat
e()); |
| 4124 if (UNLIKELY(info.Length() < 1)) { | 4284 if (UNLIKELY(info.Length() < 1)) { |
| 4125 throwTypeError(ExceptionMessages::failedToExecute("voidMethodSequenceTes
tInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1
, info.Length())), info.GetIsolate()); | 4285 throwTypeError(ExceptionMessages::failedToExecute("voidMethodSequenceTes
tInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1
, info.Length())), info.GetIsolate()); |
| 4126 return; | 4286 return; |
| 4127 } | 4287 } |
| 4128 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4288 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4129 V8TRYCATCH_VOID(Vector<RefPtr<TestInterfaceEmpty> >, sequenceTestInterfaceEm
ptyArg, (toRefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0],
1, info.GetIsolate()))); | 4289 V8TRYCATCH_VOID(Vector<RefPtr<TestInterfaceEmpty> >, sequenceTestInterfaceEm
ptyArg, (toRefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0],
1, info.GetIsolate()))); |
| 4130 imp->voidMethodSequenceTestInterfaceEmptyArg(sequenceTestInterfaceEmptyArg); | 4290 imp->voidMethodSequenceTestInterfaceEmptyArg(sequenceTestInterfaceEmptyArg); |
| 4131 } | 4291 } |
| 4132 | 4292 |
| 4133 static void voidMethodSequenceTestInterfaceEmptyArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) | 4293 static void voidMethodSequenceTestInterfaceEmptyArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
| 4134 { | 4294 { |
| 4135 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4295 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4136 TestObjectPythonV8Internal::voidMethodSequenceTestInterfaceEmptyArgMethod(in
fo); | 4296 TestObjectPythonV8Internal::voidMethodSequenceTestInterfaceEmptyArgMethod(in
fo); |
| 4137 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4297 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4138 } | 4298 } |
| 4139 | 4299 |
| 4140 static void voidMethodNullableStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 4300 static void voidMethodNullableStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
| 4141 { | 4301 { |
| 4302 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodN
ullableStringArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 4142 if (UNLIKELY(info.Length() < 1)) { | 4303 if (UNLIKELY(info.Length() < 1)) { |
| 4143 throwTypeError(ExceptionMessages::failedToExecute("voidMethodNullableStr
ingArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Lengt
h())), info.GetIsolate()); | 4304 throwTypeError(ExceptionMessages::failedToExecute("voidMethodNullableStr
ingArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Lengt
h())), info.GetIsolate()); |
| 4144 return; | 4305 return; |
| 4145 } | 4306 } |
| 4146 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4307 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4147 V8TRYCATCH_VOID(TestInterfaceEmpty*, nullableTestInterfaceEmptyArg, V8TestIn
terfaceEmpty::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate(
))) ? V8TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0)
; | 4308 V8TRYCATCH_VOID(TestInterfaceEmpty*, nullableTestInterfaceEmptyArg, V8TestIn
terfaceEmpty::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate(
))) ? V8TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0)
; |
| 4148 imp->voidMethodNullableStringArg(nullableTestInterfaceEmptyArg); | 4309 imp->voidMethodNullableStringArg(nullableTestInterfaceEmptyArg); |
| 4149 } | 4310 } |
| 4150 | 4311 |
| 4151 static void voidMethodNullableStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 4312 static void voidMethodNullableStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
| 4152 { | 4313 { |
| 4153 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4314 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4154 TestObjectPythonV8Internal::voidMethodNullableStringArgMethod(info); | 4315 TestObjectPythonV8Internal::voidMethodNullableStringArgMethod(info); |
| 4155 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4316 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4156 } | 4317 } |
| 4157 | 4318 |
| 4158 static void testEnumMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info
) | 4319 static void testEnumMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info
) |
| 4159 { | 4320 { |
| 4321 ExceptionState exceptionState(ExceptionState::ExecutionContext, "testEnumMet
hod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 4160 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4322 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4161 v8SetReturnValueString(info, imp->testEnumMethod(), info.GetIsolate()); | 4323 v8SetReturnValueString(info, imp->testEnumMethod(), info.GetIsolate()); |
| 4162 } | 4324 } |
| 4163 | 4325 |
| 4164 static void testEnumMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Valu
e>& info) | 4326 static void testEnumMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Valu
e>& info) |
| 4165 { | 4327 { |
| 4166 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4328 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4167 TestObjectPythonV8Internal::testEnumMethodMethod(info); | 4329 TestObjectPythonV8Internal::testEnumMethodMethod(info); |
| 4168 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4330 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4169 } | 4331 } |
| 4170 | 4332 |
| 4171 static void voidMethodTestEnumArgMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) | 4333 static void voidMethodTestEnumArgMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) |
| 4172 { | 4334 { |
| 4335 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT
estEnumArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 4173 if (UNLIKELY(info.Length() < 1)) { | 4336 if (UNLIKELY(info.Length() < 1)) { |
| 4174 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestEnumArg
", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())),
info.GetIsolate()); | 4337 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestEnumArg
", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())),
info.GetIsolate()); |
| 4175 return; | 4338 return; |
| 4176 } | 4339 } |
| 4177 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4340 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4178 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, testEnumTypeArg, in
fo[0]); | 4341 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, testEnumTypeArg, in
fo[0]); |
| 4179 String string = testEnumTypeArg; | 4342 String string = testEnumTypeArg; |
| 4180 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || st
ring == "EnumValue3")) { | 4343 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || st
ring == "EnumValue3")) { |
| 4181 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestEnumArg
", "TestObjectPython", "parameter 1 ('" + string + "') is not a valid enum value
."), info.GetIsolate()); | 4344 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestEnumArg
", "TestObjectPython", "parameter 1 ('" + string + "') is not a valid enum value
."), info.GetIsolate()); |
| 4182 return; | 4345 return; |
| 4183 } | 4346 } |
| 4184 imp->voidMethodTestEnumArg(testEnumTypeArg); | 4347 imp->voidMethodTestEnumArg(testEnumTypeArg); |
| 4185 } | 4348 } |
| 4186 | 4349 |
| 4187 static void voidMethodTestEnumArgMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) | 4350 static void voidMethodTestEnumArgMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) |
| 4188 { | 4351 { |
| 4189 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4352 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4190 TestObjectPythonV8Internal::voidMethodTestEnumArgMethod(info); | 4353 TestObjectPythonV8Internal::voidMethodTestEnumArgMethod(info); |
| 4191 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4354 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4192 } | 4355 } |
| 4193 | 4356 |
| 4194 static void dictionaryMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) | 4357 static void dictionaryMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) |
| 4195 { | 4358 { |
| 4359 ExceptionState exceptionState(ExceptionState::ExecutionContext, "dictionaryM
ethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 4196 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4360 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4197 v8SetReturnValue(info, imp->dictionaryMethod()); | 4361 v8SetReturnValue(info, imp->dictionaryMethod()); |
| 4198 } | 4362 } |
| 4199 | 4363 |
| 4200 static void dictionaryMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 4364 static void dictionaryMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
| 4201 { | 4365 { |
| 4202 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4366 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4203 TestObjectPythonV8Internal::dictionaryMethodMethod(info); | 4367 TestObjectPythonV8Internal::dictionaryMethodMethod(info); |
| 4204 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4368 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4205 } | 4369 } |
| 4206 | 4370 |
| 4207 static void nodeFilterMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) | 4371 static void nodeFilterMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) |
| 4208 { | 4372 { |
| 4373 ExceptionState exceptionState(ExceptionState::ExecutionContext, "nodeFilterM
ethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 4209 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4374 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4210 v8SetReturnValue(info, imp->nodeFilterMethod()); | 4375 v8SetReturnValue(info, imp->nodeFilterMethod()); |
| 4211 } | 4376 } |
| 4212 | 4377 |
| 4213 static void nodeFilterMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 4378 static void nodeFilterMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
| 4214 { | 4379 { |
| 4215 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4380 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4216 TestObjectPythonV8Internal::nodeFilterMethodMethod(info); | 4381 TestObjectPythonV8Internal::nodeFilterMethodMethod(info); |
| 4217 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4382 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4218 } | 4383 } |
| 4219 | 4384 |
| 4220 static void promiseMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 4385 static void promiseMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 4221 { | 4386 { |
| 4387 ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseMeth
od", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 4222 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4388 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4223 v8SetReturnValue(info, imp->promiseMethod().v8Value()); | 4389 v8SetReturnValue(info, imp->promiseMethod().v8Value()); |
| 4224 } | 4390 } |
| 4225 | 4391 |
| 4226 static void promiseMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value
>& info) | 4392 static void promiseMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value
>& info) |
| 4227 { | 4393 { |
| 4228 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4394 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4229 TestObjectPythonV8Internal::promiseMethodMethod(info); | 4395 TestObjectPythonV8Internal::promiseMethodMethod(info); |
| 4230 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4396 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4231 } | 4397 } |
| 4232 | 4398 |
| 4233 static void serializedScriptValueMethodMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 4399 static void serializedScriptValueMethodMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
| 4234 { | 4400 { |
| 4401 ExceptionState exceptionState(ExceptionState::ExecutionContext, "serializedS
criptValueMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 4235 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4402 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4236 v8SetReturnValue(info, imp->serializedScriptValueMethod() ? imp->serializedS
criptValueMethod()->deserialize() : v8::Handle<v8::Value>(v8::Null(info.GetIsola
te()))); | 4403 v8SetReturnValue(info, imp->serializedScriptValueMethod() ? imp->serializedS
criptValueMethod()->deserialize() : v8::Handle<v8::Value>(v8::Null(info.GetIsola
te()))); |
| 4237 } | 4404 } |
| 4238 | 4405 |
| 4239 static void serializedScriptValueMethodMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 4406 static void serializedScriptValueMethodMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
| 4240 { | 4407 { |
| 4241 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4408 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4242 TestObjectPythonV8Internal::serializedScriptValueMethodMethod(info); | 4409 TestObjectPythonV8Internal::serializedScriptValueMethodMethod(info); |
| 4243 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4410 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4244 } | 4411 } |
| 4245 | 4412 |
| 4246 static void xPathNSResolverMethodMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) | 4413 static void xPathNSResolverMethodMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) |
| 4247 { | 4414 { |
| 4415 ExceptionState exceptionState(ExceptionState::ExecutionContext, "xPathNSReso
lverMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 4248 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4416 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4249 v8SetReturnValue(info, imp->xPathNSResolverMethod()); | 4417 v8SetReturnValue(info, imp->xPathNSResolverMethod()); |
| 4250 } | 4418 } |
| 4251 | 4419 |
| 4252 static void xPathNSResolverMethodMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) | 4420 static void xPathNSResolverMethodMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) |
| 4253 { | 4421 { |
| 4254 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4422 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4255 TestObjectPythonV8Internal::xPathNSResolverMethodMethod(info); | 4423 TestObjectPythonV8Internal::xPathNSResolverMethodMethod(info); |
| 4256 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4424 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4257 } | 4425 } |
| 4258 | 4426 |
| 4259 static void voidMethodDictionaryArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 4427 static void voidMethodDictionaryArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
| 4260 { | 4428 { |
| 4429 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
ictionaryArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 4261 if (UNLIKELY(info.Length() < 1)) { | 4430 if (UNLIKELY(info.Length() < 1)) { |
| 4262 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDictionaryA
rg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())
), info.GetIsolate()); | 4431 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDictionaryA
rg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())
), info.GetIsolate()); |
| 4263 return; | 4432 return; |
| 4264 } | 4433 } |
| 4265 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4434 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4266 V8TRYCATCH_VOID(Dictionary, dictionaryArg, Dictionary(info[0], info.GetIsola
te())); | 4435 V8TRYCATCH_VOID(Dictionary, dictionaryArg, Dictionary(info[0], info.GetIsola
te())); |
| 4267 if (!dictionaryArg.isUndefinedOrNull() && !dictionaryArg.isObject()) { | 4436 if (!dictionaryArg.isUndefinedOrNull() && !dictionaryArg.isObject()) { |
| 4268 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDictionaryA
rg", "TestObjectPython", "parameter 1 ('dictionaryArg') is not an object."), inf
o.GetIsolate()); | 4437 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDictionaryA
rg", "TestObjectPython", "parameter 1 ('dictionaryArg') is not an object."), inf
o.GetIsolate()); |
| 4269 return; | 4438 return; |
| 4270 } | 4439 } |
| 4271 imp->voidMethodDictionaryArg(dictionaryArg); | 4440 imp->voidMethodDictionaryArg(dictionaryArg); |
| 4272 } | 4441 } |
| 4273 | 4442 |
| 4274 static void voidMethodDictionaryArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) | 4443 static void voidMethodDictionaryArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) |
| 4275 { | 4444 { |
| 4276 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4445 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4277 TestObjectPythonV8Internal::voidMethodDictionaryArgMethod(info); | 4446 TestObjectPythonV8Internal::voidMethodDictionaryArgMethod(info); |
| 4278 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4447 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4279 } | 4448 } |
| 4280 | 4449 |
| 4281 static void voidMethodNodeFilterArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 4450 static void voidMethodNodeFilterArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
| 4282 { | 4451 { |
| 4452 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodN
odeFilterArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 4283 if (UNLIKELY(info.Length() < 1)) { | 4453 if (UNLIKELY(info.Length() < 1)) { |
| 4284 throwTypeError(ExceptionMessages::failedToExecute("voidMethodNodeFilterA
rg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())
), info.GetIsolate()); | 4454 throwTypeError(ExceptionMessages::failedToExecute("voidMethodNodeFilterA
rg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())
), info.GetIsolate()); |
| 4285 return; | 4455 return; |
| 4286 } | 4456 } |
| 4287 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4457 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4288 V8TRYCATCH_VOID(RefPtr<NodeFilter>, nodeFilterArg, toNodeFilter(info[0], inf
o.GetIsolate())); | 4458 V8TRYCATCH_VOID(RefPtr<NodeFilter>, nodeFilterArg, toNodeFilter(info[0], inf
o.GetIsolate())); |
| 4289 imp->voidMethodNodeFilterArg(nodeFilterArg.release()); | 4459 imp->voidMethodNodeFilterArg(nodeFilterArg.release()); |
| 4290 } | 4460 } |
| 4291 | 4461 |
| 4292 static void voidMethodNodeFilterArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) | 4462 static void voidMethodNodeFilterArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) |
| 4293 { | 4463 { |
| 4294 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4464 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4295 TestObjectPythonV8Internal::voidMethodNodeFilterArgMethod(info); | 4465 TestObjectPythonV8Internal::voidMethodNodeFilterArgMethod(info); |
| 4296 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4466 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4297 } | 4467 } |
| 4298 | 4468 |
| 4299 static void voidMethodPromiseArgMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) | 4469 static void voidMethodPromiseArgMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) |
| 4300 { | 4470 { |
| 4471 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodP
romiseArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 4301 if (UNLIKELY(info.Length() < 1)) { | 4472 if (UNLIKELY(info.Length() < 1)) { |
| 4302 throwTypeError(ExceptionMessages::failedToExecute("voidMethodPromiseArg"
, "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())),
info.GetIsolate()); | 4473 throwTypeError(ExceptionMessages::failedToExecute("voidMethodPromiseArg"
, "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())),
info.GetIsolate()); |
| 4303 return; | 4474 return; |
| 4304 } | 4475 } |
| 4305 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4476 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4306 V8TRYCATCH_VOID(ScriptPromise, promiseArg, ScriptPromise(info[0])); | 4477 V8TRYCATCH_VOID(ScriptPromise, promiseArg, ScriptPromise(info[0])); |
| 4307 if (!promiseArg.isUndefinedOrNull() && !promiseArg.isObject()) { | 4478 if (!promiseArg.isUndefinedOrNull() && !promiseArg.isObject()) { |
| 4308 throwTypeError(ExceptionMessages::failedToExecute("voidMethodPromiseArg"
, "TestObjectPython", "parameter 1 ('promiseArg') is not an object."), info.GetI
solate()); | 4479 throwTypeError(ExceptionMessages::failedToExecute("voidMethodPromiseArg"
, "TestObjectPython", "parameter 1 ('promiseArg') is not an object."), info.GetI
solate()); |
| 4309 return; | 4480 return; |
| 4310 } | 4481 } |
| 4311 imp->voidMethodPromiseArg(promiseArg); | 4482 imp->voidMethodPromiseArg(promiseArg); |
| 4312 } | 4483 } |
| 4313 | 4484 |
| 4314 static void voidMethodPromiseArgMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) | 4485 static void voidMethodPromiseArgMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) |
| 4315 { | 4486 { |
| 4316 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4487 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4317 TestObjectPythonV8Internal::voidMethodPromiseArgMethod(info); | 4488 TestObjectPythonV8Internal::voidMethodPromiseArgMethod(info); |
| 4318 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4489 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4319 } | 4490 } |
| 4320 | 4491 |
| 4321 static void voidMethodSerializedScriptValueArgMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 4492 static void voidMethodSerializedScriptValueArgMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
| 4322 { | 4493 { |
| 4494 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
erializedScriptValueArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 4323 if (UNLIKELY(info.Length() < 1)) { | 4495 if (UNLIKELY(info.Length() < 1)) { |
| 4324 throwTypeError(ExceptionMessages::failedToExecute("voidMethodSerializedS
criptValueArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, inf
o.Length())), info.GetIsolate()); | 4496 throwTypeError(ExceptionMessages::failedToExecute("voidMethodSerializedS
criptValueArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, inf
o.Length())), info.GetIsolate()); |
| 4325 return; | 4497 return; |
| 4326 } | 4498 } |
| 4327 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4499 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4328 bool serializedScriptValueArgDidThrow = false; | 4500 bool serializedScriptValueArgDidThrow = false; |
| 4329 RefPtr<SerializedScriptValue> serializedScriptValueArg = SerializedScriptVal
ue::create(info[0], 0, 0, serializedScriptValueArgDidThrow, info.GetIsolate()); | 4501 RefPtr<SerializedScriptValue> serializedScriptValueArg = SerializedScriptVal
ue::create(info[0], 0, 0, serializedScriptValueArgDidThrow, info.GetIsolate()); |
| 4330 if (serializedScriptValueArgDidThrow) | 4502 if (serializedScriptValueArgDidThrow) |
| 4331 return; | 4503 return; |
| 4332 imp->voidMethodSerializedScriptValueArg(serializedScriptValueArg); | 4504 imp->voidMethodSerializedScriptValueArg(serializedScriptValueArg); |
| 4333 } | 4505 } |
| 4334 | 4506 |
| 4335 static void voidMethodSerializedScriptValueArgMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) | 4507 static void voidMethodSerializedScriptValueArgMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) |
| 4336 { | 4508 { |
| 4337 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4509 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4338 TestObjectPythonV8Internal::voidMethodSerializedScriptValueArgMethod(info); | 4510 TestObjectPythonV8Internal::voidMethodSerializedScriptValueArgMethod(info); |
| 4339 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4511 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4340 } | 4512 } |
| 4341 | 4513 |
| 4342 static void voidMethodXPathNSResolverArgMethod(const v8::FunctionCallbackInfo<v8
::Value>& info) | 4514 static void voidMethodXPathNSResolverArgMethod(const v8::FunctionCallbackInfo<v8
::Value>& info) |
| 4343 { | 4515 { |
| 4516 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodX
PathNSResolverArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 4344 if (UNLIKELY(info.Length() < 1)) { | 4517 if (UNLIKELY(info.Length() < 1)) { |
| 4345 throwTypeError(ExceptionMessages::failedToExecute("voidMethodXPathNSReso
lverArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Leng
th())), info.GetIsolate()); | 4518 throwTypeError(ExceptionMessages::failedToExecute("voidMethodXPathNSReso
lverArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Leng
th())), info.GetIsolate()); |
| 4346 return; | 4519 return; |
| 4347 } | 4520 } |
| 4348 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4521 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4349 V8TRYCATCH_VOID(RefPtr<XPathNSResolver>, xPathNSResolverArg, toXPathNSResolv
er(info[0], info.GetIsolate())); | 4522 V8TRYCATCH_VOID(RefPtr<XPathNSResolver>, xPathNSResolverArg, toXPathNSResolv
er(info[0], info.GetIsolate())); |
| 4350 imp->voidMethodXPathNSResolverArg(xPathNSResolverArg.release()); | 4523 imp->voidMethodXPathNSResolverArg(xPathNSResolverArg.release()); |
| 4351 } | 4524 } |
| 4352 | 4525 |
| 4353 static void voidMethodXPathNSResolverArgMethodCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 4526 static void voidMethodXPathNSResolverArgMethodCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
| 4354 { | 4527 { |
| 4355 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4528 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4356 TestObjectPythonV8Internal::voidMethodXPathNSResolverArgMethod(info); | 4529 TestObjectPythonV8Internal::voidMethodXPathNSResolverArgMethod(info); |
| 4357 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4530 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4358 } | 4531 } |
| 4359 | 4532 |
| 4360 static void voidMethodSequenceDictionaryArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) | 4533 static void voidMethodSequenceDictionaryArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) |
| 4361 { | 4534 { |
| 4535 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
equenceDictionaryArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 4362 if (UNLIKELY(info.Length() < 1)) { | 4536 if (UNLIKELY(info.Length() < 1)) { |
| 4363 throwTypeError(ExceptionMessages::failedToExecute("voidMethodSequenceDic
tionaryArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.L
ength())), info.GetIsolate()); | 4537 throwTypeError(ExceptionMessages::failedToExecute("voidMethodSequenceDic
tionaryArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.L
ength())), info.GetIsolate()); |
| 4364 return; | 4538 return; |
| 4365 } | 4539 } |
| 4366 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4540 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4367 V8TRYCATCH_VOID(Vector<Dictionary>, sequenceDictionaryArg, toNativeArray<Dic
tionary>(info[0], 1, info.GetIsolate())); | 4541 V8TRYCATCH_VOID(Vector<Dictionary>, sequenceDictionaryArg, toNativeArray<Dic
tionary>(info[0], 1, info.GetIsolate())); |
| 4368 imp->voidMethodSequenceDictionaryArg(sequenceDictionaryArg); | 4542 imp->voidMethodSequenceDictionaryArg(sequenceDictionaryArg); |
| 4369 } | 4543 } |
| 4370 | 4544 |
| 4371 static void voidMethodSequenceDictionaryArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) | 4545 static void voidMethodSequenceDictionaryArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
| 4372 { | 4546 { |
| 4373 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4547 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4374 TestObjectPythonV8Internal::voidMethodSequenceDictionaryArgMethod(info); | 4548 TestObjectPythonV8Internal::voidMethodSequenceDictionaryArgMethod(info); |
| 4375 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4549 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4376 } | 4550 } |
| 4377 | 4551 |
| 4378 static void voidMethodStringArgLongArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) | 4552 static void voidMethodStringArgLongArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) |
| 4379 { | 4553 { |
| 4554 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
tringArgLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 4380 if (UNLIKELY(info.Length() < 2)) { | 4555 if (UNLIKELY(info.Length() < 2)) { |
| 4381 throwTypeError(ExceptionMessages::failedToExecute("voidMethodStringArgLo
ngArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(2, info.Length
())), info.GetIsolate()); | 4556 throwTypeError(ExceptionMessages::failedToExecute("voidMethodStringArgLo
ngArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(2, info.Length
())), info.GetIsolate()); |
| 4382 return; | 4557 return; |
| 4383 } | 4558 } |
| 4384 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4559 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4385 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, stringArg, info[0])
; | 4560 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, stringArg, info[0])
; |
| 4386 V8TRYCATCH_VOID(int, longArg, toInt32(info[1])); | 4561 V8TRYCATCH_VOID(int, longArg, toInt32(info[1])); |
| 4387 imp->voidMethodStringArgLongArg(stringArg, longArg); | 4562 imp->voidMethodStringArgLongArg(stringArg, longArg); |
| 4388 } | 4563 } |
| 4389 | 4564 |
| 4390 static void voidMethodStringArgLongArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 4565 static void voidMethodStringArgLongArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
| 4391 { | 4566 { |
| 4392 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4567 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4393 TestObjectPythonV8Internal::voidMethodStringArgLongArgMethod(info); | 4568 TestObjectPythonV8Internal::voidMethodStringArgLongArgMethod(info); |
| 4394 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4569 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4395 } | 4570 } |
| 4396 | 4571 |
| 4397 static void voidMethodOptionalStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 4572 static void voidMethodOptionalStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
| 4398 { | 4573 { |
| 4574 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO
ptionalStringArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 4399 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4575 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4400 if (UNLIKELY(info.Length() <= 0)) { | 4576 if (UNLIKELY(info.Length() <= 0)) { |
| 4401 imp->voidMethodOptionalStringArg(); | 4577 imp->voidMethodOptionalStringArg(); |
| 4402 return; | 4578 return; |
| 4403 } | 4579 } |
| 4404 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, optionalStringArg,
info[0]); | 4580 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, optionalStringArg,
info[0]); |
| 4405 imp->voidMethodOptionalStringArg(optionalStringArg); | 4581 imp->voidMethodOptionalStringArg(optionalStringArg); |
| 4406 } | 4582 } |
| 4407 | 4583 |
| 4408 static void voidMethodOptionalStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 4584 static void voidMethodOptionalStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
| 4409 { | 4585 { |
| 4410 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4586 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4411 TestObjectPythonV8Internal::voidMethodOptionalStringArgMethod(info); | 4587 TestObjectPythonV8Internal::voidMethodOptionalStringArgMethod(info); |
| 4412 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4588 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4413 } | 4589 } |
| 4414 | 4590 |
| 4415 static void voidMethodOptionalTestInterfaceEmptyArgMethod(const v8::FunctionCall
backInfo<v8::Value>& info) | 4591 static void voidMethodOptionalTestInterfaceEmptyArgMethod(const v8::FunctionCall
backInfo<v8::Value>& info) |
| 4416 { | 4592 { |
| 4593 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO
ptionalTestInterfaceEmptyArg", "TestObjectPython", info.Holder(), info.GetIsolat
e()); |
| 4417 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4594 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4418 if (UNLIKELY(info.Length() <= 0)) { | 4595 if (UNLIKELY(info.Length() <= 0)) { |
| 4419 imp->voidMethodOptionalTestInterfaceEmptyArg(); | 4596 imp->voidMethodOptionalTestInterfaceEmptyArg(); |
| 4420 return; | 4597 return; |
| 4421 } | 4598 } |
| 4422 V8TRYCATCH_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmptyArg, V8TestIn
terfaceEmpty::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate(
))) ? V8TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0)
; | 4599 V8TRYCATCH_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmptyArg, V8TestIn
terfaceEmpty::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate(
))) ? V8TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0)
; |
| 4423 imp->voidMethodOptionalTestInterfaceEmptyArg(optionalTestInterfaceEmptyArg); | 4600 imp->voidMethodOptionalTestInterfaceEmptyArg(optionalTestInterfaceEmptyArg); |
| 4424 } | 4601 } |
| 4425 | 4602 |
| 4426 static void voidMethodOptionalTestInterfaceEmptyArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) | 4603 static void voidMethodOptionalTestInterfaceEmptyArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
| 4427 { | 4604 { |
| 4428 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4605 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4429 TestObjectPythonV8Internal::voidMethodOptionalTestInterfaceEmptyArgMethod(in
fo); | 4606 TestObjectPythonV8Internal::voidMethodOptionalTestInterfaceEmptyArgMethod(in
fo); |
| 4430 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4607 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4431 } | 4608 } |
| 4432 | 4609 |
| 4433 static void voidMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 4610 static void voidMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 4434 { | 4611 { |
| 4612 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO
ptionalLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 4435 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4613 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4436 if (UNLIKELY(info.Length() <= 0)) { | 4614 if (UNLIKELY(info.Length() <= 0)) { |
| 4437 imp->voidMethodOptionalLongArg(); | 4615 imp->voidMethodOptionalLongArg(); |
| 4438 return; | 4616 return; |
| 4439 } | 4617 } |
| 4440 V8TRYCATCH_VOID(int, optionalLongArg, toInt32(info[0])); | 4618 V8TRYCATCH_VOID(int, optionalLongArg, toInt32(info[0])); |
| 4441 imp->voidMethodOptionalLongArg(optionalLongArg); | 4619 imp->voidMethodOptionalLongArg(optionalLongArg); |
| 4442 } | 4620 } |
| 4443 | 4621 |
| 4444 static void voidMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 4622 static void voidMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
| 4445 { | 4623 { |
| 4446 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4624 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4447 TestObjectPythonV8Internal::voidMethodOptionalLongArgMethod(info); | 4625 TestObjectPythonV8Internal::voidMethodOptionalLongArgMethod(info); |
| 4448 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4626 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4449 } | 4627 } |
| 4450 | 4628 |
| 4451 static void stringMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 4629 static void stringMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
| 4452 { | 4630 { |
| 4631 ExceptionState exceptionState(ExceptionState::ExecutionContext, "stringMetho
dOptionalLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 4453 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4632 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4454 if (UNLIKELY(info.Length() <= 0)) { | 4633 if (UNLIKELY(info.Length() <= 0)) { |
| 4455 v8SetReturnValueString(info, imp->stringMethodOptionalLongArg(), info.Ge
tIsolate()); | 4634 v8SetReturnValueString(info, imp->stringMethodOptionalLongArg(), info.Ge
tIsolate()); |
| 4456 return; | 4635 return; |
| 4457 } | 4636 } |
| 4458 V8TRYCATCH_VOID(int, optionalLongArg, toInt32(info[0])); | 4637 V8TRYCATCH_VOID(int, optionalLongArg, toInt32(info[0])); |
| 4459 v8SetReturnValueString(info, imp->stringMethodOptionalLongArg(optionalLongAr
g), info.GetIsolate()); | 4638 v8SetReturnValueString(info, imp->stringMethodOptionalLongArg(optionalLongAr
g), info.GetIsolate()); |
| 4460 } | 4639 } |
| 4461 | 4640 |
| 4462 static void stringMethodOptionalLongArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 4641 static void stringMethodOptionalLongArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
| 4463 { | 4642 { |
| 4464 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4643 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4465 TestObjectPythonV8Internal::stringMethodOptionalLongArgMethod(info); | 4644 TestObjectPythonV8Internal::stringMethodOptionalLongArgMethod(info); |
| 4466 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4645 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4467 } | 4646 } |
| 4468 | 4647 |
| 4469 static void testInterfaceEmptyMethodOptionalLongArgMethod(const v8::FunctionCall
backInfo<v8::Value>& info) | 4648 static void testInterfaceEmptyMethodOptionalLongArgMethod(const v8::FunctionCall
backInfo<v8::Value>& info) |
| 4470 { | 4649 { |
| 4650 ExceptionState exceptionState(ExceptionState::ExecutionContext, "testInterfa
ceEmptyMethodOptionalLongArg", "TestObjectPython", info.Holder(), info.GetIsolat
e()); |
| 4471 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4651 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4472 if (UNLIKELY(info.Length() <= 0)) { | 4652 if (UNLIKELY(info.Length() <= 0)) { |
| 4473 v8SetReturnValue(info, imp->testInterfaceEmptyMethodOptionalLongArg()); | 4653 v8SetReturnValue(info, imp->testInterfaceEmptyMethodOptionalLongArg()); |
| 4474 return; | 4654 return; |
| 4475 } | 4655 } |
| 4476 V8TRYCATCH_VOID(int, optionalLongArg, toInt32(info[0])); | 4656 V8TRYCATCH_VOID(int, optionalLongArg, toInt32(info[0])); |
| 4477 v8SetReturnValue(info, imp->testInterfaceEmptyMethodOptionalLongArg(optional
LongArg)); | 4657 v8SetReturnValue(info, imp->testInterfaceEmptyMethodOptionalLongArg(optional
LongArg)); |
| 4478 } | 4658 } |
| 4479 | 4659 |
| 4480 static void testInterfaceEmptyMethodOptionalLongArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) | 4660 static void testInterfaceEmptyMethodOptionalLongArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
| 4481 { | 4661 { |
| 4482 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4662 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4483 TestObjectPythonV8Internal::testInterfaceEmptyMethodOptionalLongArgMethod(in
fo); | 4663 TestObjectPythonV8Internal::testInterfaceEmptyMethodOptionalLongArgMethod(in
fo); |
| 4484 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4664 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4485 } | 4665 } |
| 4486 | 4666 |
| 4487 static void longMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 4667 static void longMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 4488 { | 4668 { |
| 4669 ExceptionState exceptionState(ExceptionState::ExecutionContext, "longMethodO
ptionalLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 4489 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4670 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4490 if (UNLIKELY(info.Length() <= 0)) { | 4671 if (UNLIKELY(info.Length() <= 0)) { |
| 4491 v8SetReturnValueInt(info, imp->longMethodOptionalLongArg()); | 4672 v8SetReturnValueInt(info, imp->longMethodOptionalLongArg()); |
| 4492 return; | 4673 return; |
| 4493 } | 4674 } |
| 4494 V8TRYCATCH_VOID(int, optionalLongArg, toInt32(info[0])); | 4675 V8TRYCATCH_VOID(int, optionalLongArg, toInt32(info[0])); |
| 4495 v8SetReturnValueInt(info, imp->longMethodOptionalLongArg(optionalLongArg)); | 4676 v8SetReturnValueInt(info, imp->longMethodOptionalLongArg(optionalLongArg)); |
| 4496 } | 4677 } |
| 4497 | 4678 |
| 4498 static void longMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 4679 static void longMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
| 4499 { | 4680 { |
| 4500 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4681 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4501 TestObjectPythonV8Internal::longMethodOptionalLongArgMethod(info); | 4682 TestObjectPythonV8Internal::longMethodOptionalLongArgMethod(info); |
| 4502 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4683 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4503 } | 4684 } |
| 4504 | 4685 |
| 4505 static void voidMethodLongArgOptionalLongArgMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) | 4686 static void voidMethodLongArgOptionalLongArgMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) |
| 4506 { | 4687 { |
| 4688 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgOptionalLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 4507 if (UNLIKELY(info.Length() < 1)) { | 4689 if (UNLIKELY(info.Length() < 1)) { |
| 4508 throwTypeError(ExceptionMessages::failedToExecute("voidMethodLongArgOpti
onalLongArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.
Length())), info.GetIsolate()); | 4690 throwTypeError(ExceptionMessages::failedToExecute("voidMethodLongArgOpti
onalLongArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.
Length())), info.GetIsolate()); |
| 4509 return; | 4691 return; |
| 4510 } | 4692 } |
| 4511 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4693 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4512 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); | 4694 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); |
| 4513 if (UNLIKELY(info.Length() <= 1)) { | 4695 if (UNLIKELY(info.Length() <= 1)) { |
| 4514 imp->voidMethodLongArgOptionalLongArg(longArg); | 4696 imp->voidMethodLongArgOptionalLongArg(longArg); |
| 4515 return; | 4697 return; |
| 4516 } | 4698 } |
| 4517 V8TRYCATCH_VOID(int, optionalLongArg, toInt32(info[1])); | 4699 V8TRYCATCH_VOID(int, optionalLongArg, toInt32(info[1])); |
| 4518 imp->voidMethodLongArgOptionalLongArg(longArg, optionalLongArg); | 4700 imp->voidMethodLongArgOptionalLongArg(longArg, optionalLongArg); |
| 4519 } | 4701 } |
| 4520 | 4702 |
| 4521 static void voidMethodLongArgOptionalLongArgMethodCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) | 4703 static void voidMethodLongArgOptionalLongArgMethodCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
| 4522 { | 4704 { |
| 4523 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4705 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4524 TestObjectPythonV8Internal::voidMethodLongArgOptionalLongArgMethod(info); | 4706 TestObjectPythonV8Internal::voidMethodLongArgOptionalLongArgMethod(info); |
| 4525 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4707 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4526 } | 4708 } |
| 4527 | 4709 |
| 4528 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethod(const v8::Func
tionCallbackInfo<v8::Value>& info) | 4710 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethod(const v8::Func
tionCallbackInfo<v8::Value>& info) |
| 4529 { | 4711 { |
| 4712 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgOptionalLongArgOptionalLongArg", "TestObjectPython", info.Holder(), info.G
etIsolate()); |
| 4530 if (UNLIKELY(info.Length() < 1)) { | 4713 if (UNLIKELY(info.Length() < 1)) { |
| 4531 throwTypeError(ExceptionMessages::failedToExecute("voidMethodLongArgOpti
onalLongArgOptionalLongArg", "TestObjectPython", ExceptionMessages::notEnoughArg
uments(1, info.Length())), info.GetIsolate()); | 4714 throwTypeError(ExceptionMessages::failedToExecute("voidMethodLongArgOpti
onalLongArgOptionalLongArg", "TestObjectPython", ExceptionMessages::notEnoughArg
uments(1, info.Length())), info.GetIsolate()); |
| 4532 return; | 4715 return; |
| 4533 } | 4716 } |
| 4534 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4717 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4535 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); | 4718 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); |
| 4536 if (UNLIKELY(info.Length() <= 1)) { | 4719 if (UNLIKELY(info.Length() <= 1)) { |
| 4537 imp->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg); | 4720 imp->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg); |
| 4538 return; | 4721 return; |
| 4539 } | 4722 } |
| 4540 V8TRYCATCH_VOID(int, optionalLongArg1, toInt32(info[1])); | 4723 V8TRYCATCH_VOID(int, optionalLongArg1, toInt32(info[1])); |
| 4541 if (UNLIKELY(info.Length() <= 2)) { | 4724 if (UNLIKELY(info.Length() <= 2)) { |
| 4542 imp->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optionalLo
ngArg1); | 4725 imp->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optionalLo
ngArg1); |
| 4543 return; | 4726 return; |
| 4544 } | 4727 } |
| 4545 V8TRYCATCH_VOID(int, optionalLongArg2, toInt32(info[2])); | 4728 V8TRYCATCH_VOID(int, optionalLongArg2, toInt32(info[2])); |
| 4546 imp->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optionalLongAr
g1, optionalLongArg2); | 4729 imp->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optionalLongAr
g1, optionalLongArg2); |
| 4547 } | 4730 } |
| 4548 | 4731 |
| 4549 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethodCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) | 4732 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethodCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) |
| 4550 { | 4733 { |
| 4551 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4734 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4552 TestObjectPythonV8Internal::voidMethodLongArgOptionalLongArgOptionalLongArgM
ethod(info); | 4735 TestObjectPythonV8Internal::voidMethodLongArgOptionalLongArgOptionalLongArgM
ethod(info); |
| 4553 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4736 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4554 } | 4737 } |
| 4555 | 4738 |
| 4556 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethod(const v8::Funct
ionCallbackInfo<v8::Value>& info) | 4739 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethod(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
| 4557 { | 4740 { |
| 4741 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgOptionalTestInterfaceEmptyArg", "TestObjectPython", info.Holder(), info.Ge
tIsolate()); |
| 4558 if (UNLIKELY(info.Length() < 1)) { | 4742 if (UNLIKELY(info.Length() < 1)) { |
| 4559 throwTypeError(ExceptionMessages::failedToExecute("voidMethodLongArgOpti
onalTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArgu
ments(1, info.Length())), info.GetIsolate()); | 4743 throwTypeError(ExceptionMessages::failedToExecute("voidMethodLongArgOpti
onalTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArgu
ments(1, info.Length())), info.GetIsolate()); |
| 4560 return; | 4744 return; |
| 4561 } | 4745 } |
| 4562 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4746 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4563 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); | 4747 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); |
| 4564 if (UNLIKELY(info.Length() <= 1)) { | 4748 if (UNLIKELY(info.Length() <= 1)) { |
| 4565 imp->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg); | 4749 imp->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg); |
| 4566 return; | 4750 return; |
| 4567 } | 4751 } |
| 4568 V8TRYCATCH_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmpty, V8TestInter
faceEmpty::hasInstance(info[1], info.GetIsolate(), worldType(info.GetIsolate()))
? V8TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[1])) : 0); | 4752 V8TRYCATCH_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmpty, V8TestInter
faceEmpty::hasInstance(info[1], info.GetIsolate(), worldType(info.GetIsolate()))
? V8TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[1])) : 0); |
| 4569 imp->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg, optionalTestInt
erfaceEmpty); | 4753 imp->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg, optionalTestInt
erfaceEmpty); |
| 4570 } | 4754 } |
| 4571 | 4755 |
| 4572 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback(const v
8::FunctionCallbackInfo<v8::Value>& info) | 4756 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback(const v
8::FunctionCallbackInfo<v8::Value>& info) |
| 4573 { | 4757 { |
| 4574 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4758 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4575 TestObjectPythonV8Internal::voidMethodLongArgOptionalTestInterfaceEmptyArgMe
thod(info); | 4759 TestObjectPythonV8Internal::voidMethodLongArgOptionalTestInterfaceEmptyArgMe
thod(info); |
| 4576 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4760 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4577 } | 4761 } |
| 4578 | 4762 |
| 4579 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethod(const v8::Funct
ionCallbackInfo<v8::Value>& info) | 4763 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethod(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
| 4580 { | 4764 { |
| 4765 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT
estInterfaceEmptyArgOptionalLongArg", "TestObjectPython", info.Holder(), info.Ge
tIsolate()); |
| 4581 if (UNLIKELY(info.Length() < 1)) { | 4766 if (UNLIKELY(info.Length() < 1)) { |
| 4582 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInterfa
ceEmptyArgOptionalLongArg", "TestObjectPython", ExceptionMessages::notEnoughArgu
ments(1, info.Length())), info.GetIsolate()); | 4767 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInterfa
ceEmptyArgOptionalLongArg", "TestObjectPython", ExceptionMessages::notEnoughArgu
ments(1, info.Length())), info.GetIsolate()); |
| 4583 return; | 4768 return; |
| 4584 } | 4769 } |
| 4585 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4770 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4586 V8TRYCATCH_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmpty, V8TestInter
faceEmpty::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate()))
? V8TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0); | 4771 V8TRYCATCH_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmpty, V8TestInter
faceEmpty::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate()))
? V8TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0); |
| 4587 if (UNLIKELY(info.Length() <= 1)) { | 4772 if (UNLIKELY(info.Length() <= 1)) { |
| 4588 imp->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfac
eEmpty); | 4773 imp->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfac
eEmpty); |
| 4589 return; | 4774 return; |
| 4590 } | 4775 } |
| 4591 V8TRYCATCH_VOID(int, longArg, toInt32(info[1])); | 4776 V8TRYCATCH_VOID(int, longArg, toInt32(info[1])); |
| 4592 imp->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfaceEmp
ty, longArg); | 4777 imp->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfaceEmp
ty, longArg); |
| 4593 } | 4778 } |
| 4594 | 4779 |
| 4595 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethodCallback(const v
8::FunctionCallbackInfo<v8::Value>& info) | 4780 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethodCallback(const v
8::FunctionCallbackInfo<v8::Value>& info) |
| 4596 { | 4781 { |
| 4597 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4782 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4598 TestObjectPythonV8Internal::voidMethodTestInterfaceEmptyArgOptionalLongArgMe
thod(info); | 4783 TestObjectPythonV8Internal::voidMethodTestInterfaceEmptyArgOptionalLongArgMe
thod(info); |
| 4599 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4784 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4600 } | 4785 } |
| 4601 | 4786 |
| 4602 static void voidMethodOptionalDictionaryArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) | 4787 static void voidMethodOptionalDictionaryArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) |
| 4603 { | 4788 { |
| 4789 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO
ptionalDictionaryArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 4604 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4790 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4605 V8TRYCATCH_VOID(Dictionary, optionalDictionaryArg, Dictionary(info[0], info.
GetIsolate())); | 4791 V8TRYCATCH_VOID(Dictionary, optionalDictionaryArg, Dictionary(info[0], info.
GetIsolate())); |
| 4606 if (!optionalDictionaryArg.isUndefinedOrNull() && !optionalDictionaryArg.isO
bject()) { | 4792 if (!optionalDictionaryArg.isUndefinedOrNull() && !optionalDictionaryArg.isO
bject()) { |
| 4607 throwTypeError(ExceptionMessages::failedToExecute("voidMethodOptionalDic
tionaryArg", "TestObjectPython", "parameter 1 ('optionalDictionaryArg') is not a
n object."), info.GetIsolate()); | 4793 throwTypeError(ExceptionMessages::failedToExecute("voidMethodOptionalDic
tionaryArg", "TestObjectPython", "parameter 1 ('optionalDictionaryArg') is not a
n object."), info.GetIsolate()); |
| 4608 return; | 4794 return; |
| 4609 } | 4795 } |
| 4610 imp->voidMethodOptionalDictionaryArg(optionalDictionaryArg); | 4796 imp->voidMethodOptionalDictionaryArg(optionalDictionaryArg); |
| 4611 } | 4797 } |
| 4612 | 4798 |
| 4613 static void voidMethodOptionalDictionaryArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) | 4799 static void voidMethodOptionalDictionaryArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
| 4614 { | 4800 { |
| 4615 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4801 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4616 TestObjectPythonV8Internal::voidMethodOptionalDictionaryArgMethod(info); | 4802 TestObjectPythonV8Internal::voidMethodOptionalDictionaryArgMethod(info); |
| 4617 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4803 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4618 } | 4804 } |
| 4619 | 4805 |
| 4620 static void voidMethodVariadicStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 4806 static void voidMethodVariadicStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
| 4621 { | 4807 { |
| 4808 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodV
ariadicStringArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 4622 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4809 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4623 V8TRYCATCH_VOID(Vector<String>, variadicStringArgs, toNativeArguments<String
>(info, 0)); | 4810 V8TRYCATCH_VOID(Vector<String>, variadicStringArgs, toNativeArguments<String
>(info, 0)); |
| 4624 imp->voidMethodVariadicStringArg(variadicStringArgs); | 4811 imp->voidMethodVariadicStringArg(variadicStringArgs); |
| 4625 } | 4812 } |
| 4626 | 4813 |
| 4627 static void voidMethodVariadicStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 4814 static void voidMethodVariadicStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
| 4628 { | 4815 { |
| 4629 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4816 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4630 TestObjectPythonV8Internal::voidMethodVariadicStringArgMethod(info); | 4817 TestObjectPythonV8Internal::voidMethodVariadicStringArgMethod(info); |
| 4631 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4818 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4632 } | 4819 } |
| 4633 | 4820 |
| 4634 static void voidMethodStringArgVariadicStringArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 4821 static void voidMethodStringArgVariadicStringArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
| 4635 { | 4822 { |
| 4823 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
tringArgVariadicStringArg", "TestObjectPython", info.Holder(), info.GetIsolate()
); |
| 4636 if (UNLIKELY(info.Length() < 1)) { | 4824 if (UNLIKELY(info.Length() < 1)) { |
| 4637 throwTypeError(ExceptionMessages::failedToExecute("voidMethodStringArgVa
riadicStringArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, i
nfo.Length())), info.GetIsolate()); | 4825 throwTypeError(ExceptionMessages::failedToExecute("voidMethodStringArgVa
riadicStringArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, i
nfo.Length())), info.GetIsolate()); |
| 4638 return; | 4826 return; |
| 4639 } | 4827 } |
| 4640 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4828 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4641 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, stringArg, info[0])
; | 4829 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, stringArg, info[0])
; |
| 4642 V8TRYCATCH_VOID(Vector<String>, variadicStringArgs, toNativeArguments<String
>(info, 1)); | 4830 V8TRYCATCH_VOID(Vector<String>, variadicStringArgs, toNativeArguments<String
>(info, 1)); |
| 4643 imp->voidMethodStringArgVariadicStringArg(stringArg, variadicStringArgs); | 4831 imp->voidMethodStringArgVariadicStringArg(stringArg, variadicStringArgs); |
| 4644 } | 4832 } |
| 4645 | 4833 |
| 4646 static void voidMethodStringArgVariadicStringArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) | 4834 static void voidMethodStringArgVariadicStringArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) |
| 4647 { | 4835 { |
| 4648 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4836 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4649 TestObjectPythonV8Internal::voidMethodStringArgVariadicStringArgMethod(info)
; | 4837 TestObjectPythonV8Internal::voidMethodStringArgVariadicStringArgMethod(info)
; |
| 4650 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4838 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4651 } | 4839 } |
| 4652 | 4840 |
| 4653 static void voidMethodVariadicTestInterfaceEmptyArgMethod(const v8::FunctionCall
backInfo<v8::Value>& info) | 4841 static void voidMethodVariadicTestInterfaceEmptyArgMethod(const v8::FunctionCall
backInfo<v8::Value>& info) |
| 4654 { | 4842 { |
| 4843 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodV
ariadicTestInterfaceEmptyArg", "TestObjectPython", info.Holder(), info.GetIsolat
e()); |
| 4655 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4844 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4656 Vector<RefPtr<TestInterfaceEmpty> > variadicTestInterfaceEmptyArgs; | 4845 Vector<RefPtr<TestInterfaceEmpty> > variadicTestInterfaceEmptyArgs; |
| 4657 for (int i = 0; i < info.Length(); ++i) { | 4846 for (int i = 0; i < info.Length(); ++i) { |
| 4658 if (!V8TestInterfaceEmpty::hasInstance(info[i], info.GetIsolate(), world
Type(info.GetIsolate()))) { | 4847 if (!V8TestInterfaceEmpty::hasInstance(info[i], info.GetIsolate(), world
Type(info.GetIsolate()))) { |
| 4659 throwTypeError(ExceptionMessages::failedToExecute("voidMethodVariadi
cTestInterfaceEmptyArg", "TestObjectPython", "parameter 1 is not of type 'TestIn
terfaceEmpty'."), info.GetIsolate()); | 4848 throwTypeError(ExceptionMessages::failedToExecute("voidMethodVariadi
cTestInterfaceEmptyArg", "TestObjectPython", "parameter 1 is not of type 'TestIn
terfaceEmpty'."), info.GetIsolate()); |
| 4660 return; | 4849 return; |
| 4661 } | 4850 } |
| 4662 variadicTestInterfaceEmptyArgs.append(V8TestInterfaceEmpty::toNative(v8:
:Handle<v8::Object>::Cast(info[i]))); | 4851 variadicTestInterfaceEmptyArgs.append(V8TestInterfaceEmpty::toNative(v8:
:Handle<v8::Object>::Cast(info[i]))); |
| 4663 } | 4852 } |
| 4664 imp->voidMethodVariadicTestInterfaceEmptyArg(variadicTestInterfaceEmptyArgs)
; | 4853 imp->voidMethodVariadicTestInterfaceEmptyArg(variadicTestInterfaceEmptyArgs)
; |
| 4665 } | 4854 } |
| 4666 | 4855 |
| 4667 static void voidMethodVariadicTestInterfaceEmptyArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) | 4856 static void voidMethodVariadicTestInterfaceEmptyArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
| 4668 { | 4857 { |
| 4669 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4858 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4670 TestObjectPythonV8Internal::voidMethodVariadicTestInterfaceEmptyArgMethod(in
fo); | 4859 TestObjectPythonV8Internal::voidMethodVariadicTestInterfaceEmptyArgMethod(in
fo); |
| 4671 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4860 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4672 } | 4861 } |
| 4673 | 4862 |
| 4674 static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethod(c
onst v8::FunctionCallbackInfo<v8::Value>& info) | 4863 static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethod(c
onst v8::FunctionCallbackInfo<v8::Value>& info) |
| 4675 { | 4864 { |
| 4865 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT
estInterfaceEmptyArgVariadicTestInterfaceEmptyArg", "TestObjectPython", info.Hol
der(), info.GetIsolate()); |
| 4676 if (UNLIKELY(info.Length() < 1)) { | 4866 if (UNLIKELY(info.Length() < 1)) { |
| 4677 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInterfa
ceEmptyArgVariadicTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages:
:notEnoughArguments(1, info.Length())), info.GetIsolate()); | 4867 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInterfa
ceEmptyArgVariadicTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages:
:notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| 4678 return; | 4868 return; |
| 4679 } | 4869 } |
| 4680 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4870 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4681 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE
mpty::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate())) ? V8
TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0); | 4871 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE
mpty::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate())) ? V8
TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0); |
| 4682 Vector<RefPtr<TestInterfaceEmpty> > variadicTestInterfaceEmptyArgs; | 4872 Vector<RefPtr<TestInterfaceEmpty> > variadicTestInterfaceEmptyArgs; |
| 4683 for (int i = 1; i < info.Length(); ++i) { | 4873 for (int i = 1; i < info.Length(); ++i) { |
| 4684 if (!V8TestInterfaceEmpty::hasInstance(info[i], info.GetIsolate(), world
Type(info.GetIsolate()))) { | 4874 if (!V8TestInterfaceEmpty::hasInstance(info[i], info.GetIsolate(), world
Type(info.GetIsolate()))) { |
| 4685 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInt
erfaceEmptyArgVariadicTestInterfaceEmptyArg", "TestObjectPython", "parameter 2 i
s not of type 'TestInterfaceEmpty'."), info.GetIsolate()); | 4875 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInt
erfaceEmptyArgVariadicTestInterfaceEmptyArg", "TestObjectPython", "parameter 2 i
s not of type 'TestInterfaceEmpty'."), info.GetIsolate()); |
| 4686 return; | 4876 return; |
| 4687 } | 4877 } |
| 4688 variadicTestInterfaceEmptyArgs.append(V8TestInterfaceEmpty::toNative(v8:
:Handle<v8::Object>::Cast(info[i]))); | 4878 variadicTestInterfaceEmptyArgs.append(V8TestInterfaceEmpty::toNative(v8:
:Handle<v8::Object>::Cast(info[i]))); |
| 4689 } | 4879 } |
| 4690 imp->voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg(testInterf
aceEmptyArg, variadicTestInterfaceEmptyArgs); | 4880 imp->voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg(testInterf
aceEmptyArg, variadicTestInterfaceEmptyArgs); |
| 4691 } | 4881 } |
| 4692 | 4882 |
| 4693 static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethodCa
llback(const v8::FunctionCallbackInfo<v8::Value>& info) | 4883 static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethodCa
llback(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 4694 { | 4884 { |
| 4695 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4885 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4696 TestObjectPythonV8Internal::voidMethodTestInterfaceEmptyArgVariadicTestInter
faceEmptyArgMethod(info); | 4886 TestObjectPythonV8Internal::voidMethodTestInterfaceEmptyArgVariadicTestInter
faceEmptyArgMethod(info); |
| 4697 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4887 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4698 } | 4888 } |
| 4699 | 4889 |
| 4700 static void overloadedMethodA1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 4890 static void overloadedMethodA1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 4701 { | 4891 { |
| 4892 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodA", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 4702 if (UNLIKELY(info.Length() < 1)) { | 4893 if (UNLIKELY(info.Length() < 1)) { |
| 4703 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodA", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); | 4894 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodA", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); |
| 4704 return; | 4895 return; |
| 4705 } | 4896 } |
| 4706 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4897 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4707 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); | 4898 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); |
| 4708 imp->overloadedMethodA(longArg); | 4899 imp->overloadedMethodA(longArg); |
| 4709 } | 4900 } |
| 4710 | 4901 |
| 4711 static void overloadedMethodA2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 4902 static void overloadedMethodA2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 4712 { | 4903 { |
| 4904 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodA", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 4713 if (UNLIKELY(info.Length() < 2)) { | 4905 if (UNLIKELY(info.Length() < 2)) { |
| 4714 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodA", "
TestObjectPython", ExceptionMessages::notEnoughArguments(2, info.Length())), inf
o.GetIsolate()); | 4906 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodA", "
TestObjectPython", ExceptionMessages::notEnoughArguments(2, info.Length())), inf
o.GetIsolate()); |
| 4715 return; | 4907 return; |
| 4716 } | 4908 } |
| 4717 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4909 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4718 V8TRYCATCH_VOID(int, longArg1, toInt32(info[0])); | 4910 V8TRYCATCH_VOID(int, longArg1, toInt32(info[0])); |
| 4719 V8TRYCATCH_VOID(int, longArg2, toInt32(info[1])); | 4911 V8TRYCATCH_VOID(int, longArg2, toInt32(info[1])); |
| 4720 imp->overloadedMethodA(longArg1, longArg2); | 4912 imp->overloadedMethodA(longArg1, longArg2); |
| 4721 } | 4913 } |
| 4722 | 4914 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 4739 | 4931 |
| 4740 static void overloadedMethodAMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 4932 static void overloadedMethodAMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 4741 { | 4933 { |
| 4742 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4934 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4743 TestObjectPythonV8Internal::overloadedMethodAMethod(info); | 4935 TestObjectPythonV8Internal::overloadedMethodAMethod(info); |
| 4744 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4936 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4745 } | 4937 } |
| 4746 | 4938 |
| 4747 static void overloadedMethodB1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 4939 static void overloadedMethodB1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 4748 { | 4940 { |
| 4941 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodB", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 4749 if (UNLIKELY(info.Length() < 1)) { | 4942 if (UNLIKELY(info.Length() < 1)) { |
| 4750 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodB", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); | 4943 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodB", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); |
| 4751 return; | 4944 return; |
| 4752 } | 4945 } |
| 4753 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4946 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4754 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); | 4947 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); |
| 4755 imp->overloadedMethodB(longArg); | 4948 imp->overloadedMethodB(longArg); |
| 4756 } | 4949 } |
| 4757 | 4950 |
| 4758 static void overloadedMethodB2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 4951 static void overloadedMethodB2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 4759 { | 4952 { |
| 4953 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodB", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 4760 if (UNLIKELY(info.Length() < 1)) { | 4954 if (UNLIKELY(info.Length() < 1)) { |
| 4761 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodB", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); | 4955 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodB", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); |
| 4762 return; | 4956 return; |
| 4763 } | 4957 } |
| 4764 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4958 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4765 V8TRYCATCH_VOID(int, longArg1, toInt32(info[0])); | 4959 V8TRYCATCH_VOID(int, longArg1, toInt32(info[0])); |
| 4766 if (UNLIKELY(info.Length() <= 1)) { | 4960 if (UNLIKELY(info.Length() <= 1)) { |
| 4767 imp->overloadedMethodB(longArg1); | 4961 imp->overloadedMethodB(longArg1); |
| 4768 return; | 4962 return; |
| 4769 } | 4963 } |
| (...skipping 20 matching lines...) Expand all Loading... |
| 4790 | 4984 |
| 4791 static void overloadedMethodBMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 4985 static void overloadedMethodBMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 4792 { | 4986 { |
| 4793 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4987 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4794 TestObjectPythonV8Internal::overloadedMethodBMethod(info); | 4988 TestObjectPythonV8Internal::overloadedMethodBMethod(info); |
| 4795 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4989 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4796 } | 4990 } |
| 4797 | 4991 |
| 4798 static void overloadedMethodC1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 4992 static void overloadedMethodC1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 4799 { | 4993 { |
| 4994 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodC", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 4800 if (UNLIKELY(info.Length() < 1)) { | 4995 if (UNLIKELY(info.Length() < 1)) { |
| 4801 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodC", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); | 4996 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodC", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); |
| 4802 return; | 4997 return; |
| 4803 } | 4998 } |
| 4804 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4999 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4805 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); | 5000 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); |
| 4806 imp->overloadedMethodC(longArg); | 5001 imp->overloadedMethodC(longArg); |
| 4807 } | 5002 } |
| 4808 | 5003 |
| 4809 static void overloadedMethodC2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 5004 static void overloadedMethodC2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 4810 { | 5005 { |
| 5006 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodC", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 4811 if (UNLIKELY(info.Length() < 1)) { | 5007 if (UNLIKELY(info.Length() < 1)) { |
| 4812 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodC", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); | 5008 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodC", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); |
| 4813 return; | 5009 return; |
| 4814 } | 5010 } |
| 4815 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5011 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4816 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); | 5012 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); |
| 4817 V8TRYCATCH_VOID(Vector<int>, longArgs, toNativeArguments<int>(info, 1)); | 5013 V8TRYCATCH_VOID(Vector<int>, longArgs, toNativeArguments<int>(info, 1)); |
| 4818 imp->overloadedMethodC(longArg, longArgs); | 5014 imp->overloadedMethodC(longArg, longArgs); |
| 4819 } | 5015 } |
| 4820 | 5016 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 4837 | 5033 |
| 4838 static void overloadedMethodCMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 5034 static void overloadedMethodCMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 4839 { | 5035 { |
| 4840 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5036 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4841 TestObjectPythonV8Internal::overloadedMethodCMethod(info); | 5037 TestObjectPythonV8Internal::overloadedMethodCMethod(info); |
| 4842 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5038 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4843 } | 5039 } |
| 4844 | 5040 |
| 4845 static void overloadedMethodD1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 5041 static void overloadedMethodD1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 4846 { | 5042 { |
| 5043 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodD", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 4847 if (UNLIKELY(info.Length() < 1)) { | 5044 if (UNLIKELY(info.Length() < 1)) { |
| 4848 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodD", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); | 5045 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodD", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); |
| 4849 return; | 5046 return; |
| 4850 } | 5047 } |
| 4851 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5048 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4852 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); | 5049 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); |
| 4853 imp->overloadedMethodD(longArg); | 5050 imp->overloadedMethodD(longArg); |
| 4854 } | 5051 } |
| 4855 | 5052 |
| 4856 static void overloadedMethodD2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 5053 static void overloadedMethodD2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 4857 { | 5054 { |
| 5055 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodD", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 4858 if (UNLIKELY(info.Length() < 1)) { | 5056 if (UNLIKELY(info.Length() < 1)) { |
| 4859 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodD", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); | 5057 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodD", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); |
| 4860 return; | 5058 return; |
| 4861 } | 5059 } |
| 4862 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5060 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4863 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE
mpty::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate())) ? V8
TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0); | 5061 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE
mpty::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate())) ? V8
TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0); |
| 4864 imp->overloadedMethodD(testInterfaceEmptyArg); | 5062 imp->overloadedMethodD(testInterfaceEmptyArg); |
| 4865 } | 5063 } |
| 4866 | 5064 |
| 4867 static void overloadedMethodDMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 5065 static void overloadedMethodDMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
| (...skipping 15 matching lines...) Expand all Loading... |
| 4883 | 5081 |
| 4884 static void overloadedMethodDMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 5082 static void overloadedMethodDMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 4885 { | 5083 { |
| 4886 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5084 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4887 TestObjectPythonV8Internal::overloadedMethodDMethod(info); | 5085 TestObjectPythonV8Internal::overloadedMethodDMethod(info); |
| 4888 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5086 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4889 } | 5087 } |
| 4890 | 5088 |
| 4891 static void overloadedMethodE1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 5089 static void overloadedMethodE1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 4892 { | 5090 { |
| 5091 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodE", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 4893 if (UNLIKELY(info.Length() < 1)) { | 5092 if (UNLIKELY(info.Length() < 1)) { |
| 4894 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodE", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); | 5093 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodE", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); |
| 4895 return; | 5094 return; |
| 4896 } | 5095 } |
| 4897 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5096 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4898 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); | 5097 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); |
| 4899 imp->overloadedMethodE(longArg); | 5098 imp->overloadedMethodE(longArg); |
| 4900 } | 5099 } |
| 4901 | 5100 |
| 4902 static void overloadedMethodE2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 5101 static void overloadedMethodE2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 4903 { | 5102 { |
| 5103 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodE", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 4904 if (UNLIKELY(info.Length() < 1)) { | 5104 if (UNLIKELY(info.Length() < 1)) { |
| 4905 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodE", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); | 5105 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodE", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); |
| 4906 return; | 5106 return; |
| 4907 } | 5107 } |
| 4908 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5108 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4909 V8TRYCATCH_VOID(Vector<int>, longArrayArg, toNativeArray<int>(info[0], 1, in
fo.GetIsolate())); | 5109 V8TRYCATCH_VOID(Vector<int>, longArrayArg, toNativeArray<int>(info[0], 1, in
fo.GetIsolate())); |
| 4910 imp->overloadedMethodE(longArrayArg); | 5110 imp->overloadedMethodE(longArrayArg); |
| 4911 } | 5111 } |
| 4912 | 5112 |
| 4913 static void overloadedMethodEMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 5113 static void overloadedMethodEMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
| (...skipping 15 matching lines...) Expand all Loading... |
| 4929 | 5129 |
| 4930 static void overloadedMethodEMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 5130 static void overloadedMethodEMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 4931 { | 5131 { |
| 4932 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5132 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4933 TestObjectPythonV8Internal::overloadedMethodEMethod(info); | 5133 TestObjectPythonV8Internal::overloadedMethodEMethod(info); |
| 4934 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5134 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4935 } | 5135 } |
| 4936 | 5136 |
| 4937 static void overloadedMethodF1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 5137 static void overloadedMethodF1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 4938 { | 5138 { |
| 5139 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodF", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 4939 if (UNLIKELY(info.Length() < 1)) { | 5140 if (UNLIKELY(info.Length() < 1)) { |
| 4940 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodF", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); | 5141 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodF", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); |
| 4941 return; | 5142 return; |
| 4942 } | 5143 } |
| 4943 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5144 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4944 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); | 5145 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); |
| 4945 imp->overloadedMethodF(longArg); | 5146 imp->overloadedMethodF(longArg); |
| 4946 } | 5147 } |
| 4947 | 5148 |
| 4948 static void overloadedMethodF2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 5149 static void overloadedMethodF2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 4949 { | 5150 { |
| 5151 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodF", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 4950 if (UNLIKELY(info.Length() < 1)) { | 5152 if (UNLIKELY(info.Length() < 1)) { |
| 4951 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodF", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); | 5153 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodF", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); |
| 4952 return; | 5154 return; |
| 4953 } | 5155 } |
| 4954 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5156 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4955 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyNullableArg, V8TestIn
terfaceEmpty::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate(
))) ? V8TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0)
; | 5157 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyNullableArg, V8TestIn
terfaceEmpty::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate(
))) ? V8TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0)
; |
| 4956 imp->overloadedMethodF(testInterfaceEmptyNullableArg); | 5158 imp->overloadedMethodF(testInterfaceEmptyNullableArg); |
| 4957 } | 5159 } |
| 4958 | 5160 |
| 4959 static void overloadedMethodFMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 5161 static void overloadedMethodFMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
| (...skipping 15 matching lines...) Expand all Loading... |
| 4975 | 5177 |
| 4976 static void overloadedMethodFMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 5178 static void overloadedMethodFMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 4977 { | 5179 { |
| 4978 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5180 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4979 TestObjectPythonV8Internal::overloadedMethodFMethod(info); | 5181 TestObjectPythonV8Internal::overloadedMethodFMethod(info); |
| 4980 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5182 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4981 } | 5183 } |
| 4982 | 5184 |
| 4983 static void overloadedMethodG1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 5185 static void overloadedMethodG1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 4984 { | 5186 { |
| 5187 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodG", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 4985 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5188 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4986 imp->overloadedMethodG(); | 5189 imp->overloadedMethodG(); |
| 4987 } | 5190 } |
| 4988 | 5191 |
| 4989 static void overloadedMethodG2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 5192 static void overloadedMethodG2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 4990 { | 5193 { |
| 5194 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodG", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 4991 if (UNLIKELY(info.Length() < 1)) { | 5195 if (UNLIKELY(info.Length() < 1)) { |
| 4992 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodG", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); | 5196 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodG", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); |
| 4993 return; | 5197 return; |
| 4994 } | 5198 } |
| 4995 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5199 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4996 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, strictTypeCheckingS
tringArg, info[0]); | 5200 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, strictTypeCheckingS
tringArg, info[0]); |
| 4997 imp->overloadedMethodG(strictTypeCheckingStringArg); | 5201 imp->overloadedMethodG(strictTypeCheckingStringArg); |
| 4998 } | 5202 } |
| 4999 | 5203 |
| 5000 static void overloadedMethodGMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 5204 static void overloadedMethodGMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
| (...skipping 11 matching lines...) Expand all Loading... |
| 5012 | 5216 |
| 5013 static void overloadedMethodGMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 5217 static void overloadedMethodGMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 5014 { | 5218 { |
| 5015 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5219 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5016 TestObjectPythonV8Internal::overloadedMethodGMethod(info); | 5220 TestObjectPythonV8Internal::overloadedMethodGMethod(info); |
| 5017 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5221 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5018 } | 5222 } |
| 5019 | 5223 |
| 5020 static void overloadedPerWorldBindingsMethod1Method(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 5224 static void overloadedPerWorldBindingsMethod1Method(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
| 5021 { | 5225 { |
| 5226 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP
erWorldBindingsMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 5022 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5227 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5023 imp->overloadedPerWorldBindingsMethod(); | 5228 imp->overloadedPerWorldBindingsMethod(); |
| 5024 } | 5229 } |
| 5025 | 5230 |
| 5026 static void overloadedPerWorldBindingsMethod1MethodForMainWorld(const v8::Functi
onCallbackInfo<v8::Value>& info) | 5231 static void overloadedPerWorldBindingsMethod1MethodForMainWorld(const v8::Functi
onCallbackInfo<v8::Value>& info) |
| 5027 { | 5232 { |
| 5233 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP
erWorldBindingsMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 5028 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5234 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5029 imp->overloadedPerWorldBindingsMethod(); | 5235 imp->overloadedPerWorldBindingsMethod(); |
| 5030 } | 5236 } |
| 5031 | 5237 |
| 5032 static void overloadedPerWorldBindingsMethod2Method(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 5238 static void overloadedPerWorldBindingsMethod2Method(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
| 5033 { | 5239 { |
| 5240 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP
erWorldBindingsMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 5034 if (UNLIKELY(info.Length() < 1)) { | 5241 if (UNLIKELY(info.Length() < 1)) { |
| 5035 throwTypeError(ExceptionMessages::failedToExecute("overloadedPerWorldBin
dingsMethod", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.
Length())), info.GetIsolate()); | 5242 throwTypeError(ExceptionMessages::failedToExecute("overloadedPerWorldBin
dingsMethod", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.
Length())), info.GetIsolate()); |
| 5036 return; | 5243 return; |
| 5037 } | 5244 } |
| 5038 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5245 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5039 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); | 5246 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); |
| 5040 imp->overloadedPerWorldBindingsMethod(longArg); | 5247 imp->overloadedPerWorldBindingsMethod(longArg); |
| 5041 } | 5248 } |
| 5042 | 5249 |
| 5043 static void overloadedPerWorldBindingsMethodMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) | 5250 static void overloadedPerWorldBindingsMethodMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) |
| (...skipping 11 matching lines...) Expand all Loading... |
| 5055 | 5262 |
| 5056 static void overloadedPerWorldBindingsMethodMethodCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) | 5263 static void overloadedPerWorldBindingsMethodMethodCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
| 5057 { | 5264 { |
| 5058 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5265 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5059 TestObjectPythonV8Internal::overloadedPerWorldBindingsMethodMethod(info); | 5266 TestObjectPythonV8Internal::overloadedPerWorldBindingsMethodMethod(info); |
| 5060 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5267 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5061 } | 5268 } |
| 5062 | 5269 |
| 5063 static void overloadedPerWorldBindingsMethod2MethodForMainWorld(const v8::Functi
onCallbackInfo<v8::Value>& info) | 5270 static void overloadedPerWorldBindingsMethod2MethodForMainWorld(const v8::Functi
onCallbackInfo<v8::Value>& info) |
| 5064 { | 5271 { |
| 5272 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP
erWorldBindingsMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 5065 if (UNLIKELY(info.Length() < 1)) { | 5273 if (UNLIKELY(info.Length() < 1)) { |
| 5066 throwTypeError(ExceptionMessages::failedToExecute("overloadedPerWorldBin
dingsMethod", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.
Length())), info.GetIsolate()); | 5274 throwTypeError(ExceptionMessages::failedToExecute("overloadedPerWorldBin
dingsMethod", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.
Length())), info.GetIsolate()); |
| 5067 return; | 5275 return; |
| 5068 } | 5276 } |
| 5069 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5277 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5070 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); | 5278 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); |
| 5071 imp->overloadedPerWorldBindingsMethod(longArg); | 5279 imp->overloadedPerWorldBindingsMethod(longArg); |
| 5072 } | 5280 } |
| 5073 | 5281 |
| 5074 static void overloadedPerWorldBindingsMethodMethodForMainWorld(const v8::Functio
nCallbackInfo<v8::Value>& info) | 5282 static void overloadedPerWorldBindingsMethodMethodForMainWorld(const v8::Functio
nCallbackInfo<v8::Value>& info) |
| (...skipping 11 matching lines...) Expand all Loading... |
| 5086 | 5294 |
| 5087 static void overloadedPerWorldBindingsMethodMethodCallbackForMainWorld(const v8:
:FunctionCallbackInfo<v8::Value>& info) | 5295 static void overloadedPerWorldBindingsMethodMethodCallbackForMainWorld(const v8:
:FunctionCallbackInfo<v8::Value>& info) |
| 5088 { | 5296 { |
| 5089 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5297 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5090 TestObjectPythonV8Internal::overloadedPerWorldBindingsMethodMethodForMainWor
ld(info); | 5298 TestObjectPythonV8Internal::overloadedPerWorldBindingsMethodMethodForMainWor
ld(info); |
| 5091 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5299 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5092 } | 5300 } |
| 5093 | 5301 |
| 5094 static void overloadedStaticMethod1Method(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 5302 static void overloadedStaticMethod1Method(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
| 5095 { | 5303 { |
| 5304 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS
taticMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 5096 if (UNLIKELY(info.Length() < 1)) { | 5305 if (UNLIKELY(info.Length() < 1)) { |
| 5097 throwTypeError(ExceptionMessages::failedToExecute("overloadedStaticMetho
d", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length()))
, info.GetIsolate()); | 5306 throwTypeError(ExceptionMessages::failedToExecute("overloadedStaticMetho
d", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length()))
, info.GetIsolate()); |
| 5098 return; | 5307 return; |
| 5099 } | 5308 } |
| 5100 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); | 5309 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); |
| 5101 TestObjectPython::overloadedStaticMethod(longArg); | 5310 TestObjectPython::overloadedStaticMethod(longArg); |
| 5102 } | 5311 } |
| 5103 | 5312 |
| 5104 static void overloadedStaticMethod2Method(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 5313 static void overloadedStaticMethod2Method(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
| 5105 { | 5314 { |
| 5315 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS
taticMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 5106 if (UNLIKELY(info.Length() < 2)) { | 5316 if (UNLIKELY(info.Length() < 2)) { |
| 5107 throwTypeError(ExceptionMessages::failedToExecute("overloadedStaticMetho
d", "TestObjectPython", ExceptionMessages::notEnoughArguments(2, info.Length()))
, info.GetIsolate()); | 5317 throwTypeError(ExceptionMessages::failedToExecute("overloadedStaticMetho
d", "TestObjectPython", ExceptionMessages::notEnoughArguments(2, info.Length()))
, info.GetIsolate()); |
| 5108 return; | 5318 return; |
| 5109 } | 5319 } |
| 5110 V8TRYCATCH_VOID(int, longArg1, toInt32(info[0])); | 5320 V8TRYCATCH_VOID(int, longArg1, toInt32(info[0])); |
| 5111 V8TRYCATCH_VOID(int, longArg2, toInt32(info[1])); | 5321 V8TRYCATCH_VOID(int, longArg2, toInt32(info[1])); |
| 5112 TestObjectPython::overloadedStaticMethod(longArg1, longArg2); | 5322 TestObjectPython::overloadedStaticMethod(longArg1, longArg2); |
| 5113 } | 5323 } |
| 5114 | 5324 |
| 5115 static void overloadedStaticMethodMethod(const v8::FunctionCallbackInfo<v8::Valu
e>& info) | 5325 static void overloadedStaticMethodMethod(const v8::FunctionCallbackInfo<v8::Valu
e>& info) |
| (...skipping 15 matching lines...) Expand all Loading... |
| 5131 | 5341 |
| 5132 static void overloadedStaticMethodMethodCallback(const v8::FunctionCallbackInfo<
v8::Value>& info) | 5342 static void overloadedStaticMethodMethodCallback(const v8::FunctionCallbackInfo<
v8::Value>& info) |
| 5133 { | 5343 { |
| 5134 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5344 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5135 TestObjectPythonV8Internal::overloadedStaticMethodMethod(info); | 5345 TestObjectPythonV8Internal::overloadedStaticMethodMethod(info); |
| 5136 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5346 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5137 } | 5347 } |
| 5138 | 5348 |
| 5139 static void addEventListenerMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) | 5349 static void addEventListenerMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) |
| 5140 { | 5350 { |
| 5351 ExceptionState exceptionState(ExceptionState::ExecutionContext, "addEventLis
tener", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 5141 EventTarget* impl = V8TestObjectPython::toNative(info.Holder()); | 5352 EventTarget* impl = V8TestObjectPython::toNative(info.Holder()); |
| 5142 if (DOMWindow* window = impl->toDOMWindow()) { | 5353 if (DOMWindow* window = impl->toDOMWindow()) { |
| 5143 ExceptionState exceptionState(info.Holder(), info.GetIsolate()); | |
| 5144 if (!BindingSecurity::shouldAllowAccessToFrame(window->frame(), exceptio
nState)) { | 5354 if (!BindingSecurity::shouldAllowAccessToFrame(window->frame(), exceptio
nState)) { |
| 5145 exceptionState.throwIfNeeded(); | 5355 exceptionState.throwIfNeeded(); |
| 5146 return; | 5356 return; |
| 5147 } | 5357 } |
| 5148 if (!window->document()) | 5358 if (!window->document()) |
| 5149 return; | 5359 return; |
| 5150 } | 5360 } |
| 5151 RefPtr<EventListener> listener = V8EventListenerList::getEventListener(info[
1], false, ListenerFindOrCreate); | 5361 RefPtr<EventListener> listener = V8EventListenerList::getEventListener(info[
1], false, ListenerFindOrCreate); |
| 5152 if (listener) { | 5362 if (listener) { |
| 5153 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, ev
entName, info[0]); | 5363 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, ev
entName, info[0]); |
| 5154 impl->addEventListener(eventName, listener, info[2]->BooleanValue()); | 5364 impl->addEventListener(eventName, listener, info[2]->BooleanValue()); |
| 5155 if (!impl->toNode()) | 5365 if (!impl->toNode()) |
| 5156 createHiddenDependency(info.Holder(), info[1], V8TestObjectPython::e
ventListenerCacheIndex, info.GetIsolate()); | 5366 createHiddenDependency(info.Holder(), info[1], V8TestObjectPython::e
ventListenerCacheIndex, info.GetIsolate()); |
| 5157 } | 5367 } |
| 5158 } | 5368 } |
| 5159 | 5369 |
| 5160 static void addEventListenerMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 5370 static void addEventListenerMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
| 5161 { | 5371 { |
| 5162 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5372 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5163 TestObjectPythonV8Internal::addEventListenerMethod(info); | 5373 TestObjectPythonV8Internal::addEventListenerMethod(info); |
| 5164 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5374 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5165 } | 5375 } |
| 5166 | 5376 |
| 5167 static void removeEventListenerMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 5377 static void removeEventListenerMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 5168 { | 5378 { |
| 5379 ExceptionState exceptionState(ExceptionState::ExecutionContext, "removeEvent
Listener", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 5169 EventTarget* impl = V8TestObjectPython::toNative(info.Holder()); | 5380 EventTarget* impl = V8TestObjectPython::toNative(info.Holder()); |
| 5170 if (DOMWindow* window = impl->toDOMWindow()) { | 5381 if (DOMWindow* window = impl->toDOMWindow()) { |
| 5171 ExceptionState exceptionState(info.Holder(), info.GetIsolate()); | |
| 5172 if (!BindingSecurity::shouldAllowAccessToFrame(window->frame(), exceptio
nState)) { | 5382 if (!BindingSecurity::shouldAllowAccessToFrame(window->frame(), exceptio
nState)) { |
| 5173 exceptionState.throwIfNeeded(); | 5383 exceptionState.throwIfNeeded(); |
| 5174 return; | 5384 return; |
| 5175 } | 5385 } |
| 5176 if (!window->document()) | 5386 if (!window->document()) |
| 5177 return; | 5387 return; |
| 5178 } | 5388 } |
| 5179 RefPtr<EventListener> listener = V8EventListenerList::getEventListener(info[
1], false, ListenerFindOnly); | 5389 RefPtr<EventListener> listener = V8EventListenerList::getEventListener(info[
1], false, ListenerFindOnly); |
| 5180 if (listener) { | 5390 if (listener) { |
| 5181 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, ev
entName, info[0]); | 5391 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, ev
entName, info[0]); |
| 5182 impl->removeEventListener(eventName, listener.get(), info[2]->BooleanVal
ue()); | 5392 impl->removeEventListener(eventName, listener.get(), info[2]->BooleanVal
ue()); |
| 5183 if (!impl->toNode()) | 5393 if (!impl->toNode()) |
| 5184 removeHiddenDependency(info.Holder(), info[1], V8TestObjectPython::e
ventListenerCacheIndex, info.GetIsolate()); | 5394 removeHiddenDependency(info.Holder(), info[1], V8TestObjectPython::e
ventListenerCacheIndex, info.GetIsolate()); |
| 5185 } | 5395 } |
| 5186 } | 5396 } |
| 5187 | 5397 |
| 5188 static void removeEventListenerMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 5398 static void removeEventListenerMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
| 5189 { | 5399 { |
| 5190 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5400 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5191 TestObjectPythonV8Internal::removeEventListenerMethod(info); | 5401 TestObjectPythonV8Internal::removeEventListenerMethod(info); |
| 5192 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5402 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5193 } | 5403 } |
| 5194 | 5404 |
| 5195 static void voidMethodClampUnsignedShortArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) | 5405 static void voidMethodClampUnsignedShortArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) |
| 5196 { | 5406 { |
| 5407 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodC
lampUnsignedShortArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 5197 if (UNLIKELY(info.Length() < 1)) { | 5408 if (UNLIKELY(info.Length() < 1)) { |
| 5198 throwTypeError(ExceptionMessages::failedToExecute("voidMethodClampUnsign
edShortArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.L
ength())), info.GetIsolate()); | 5409 throwTypeError(ExceptionMessages::failedToExecute("voidMethodClampUnsign
edShortArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.L
ength())), info.GetIsolate()); |
| 5199 return; | 5410 return; |
| 5200 } | 5411 } |
| 5201 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5412 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5202 unsigned clampUnsignedShortArg = 0; | 5413 unsigned clampUnsignedShortArg = 0; |
| 5203 V8TRYCATCH_VOID(double, clampUnsignedShortArgNativeValue, info[0]->NumberVal
ue()); | 5414 V8TRYCATCH_VOID(double, clampUnsignedShortArgNativeValue, info[0]->NumberVal
ue()); |
| 5204 if (!std::isnan(clampUnsignedShortArgNativeValue)) | 5415 if (!std::isnan(clampUnsignedShortArgNativeValue)) |
| 5205 clampUnsignedShortArg = clampTo<unsigned short>(clampUnsignedShortArgNat
iveValue); | 5416 clampUnsignedShortArg = clampTo<unsigned short>(clampUnsignedShortArgNat
iveValue); |
| 5206 imp->voidMethodClampUnsignedShortArg(clampUnsignedShortArg); | 5417 imp->voidMethodClampUnsignedShortArg(clampUnsignedShortArg); |
| 5207 } | 5418 } |
| 5208 | 5419 |
| 5209 static void voidMethodClampUnsignedShortArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) | 5420 static void voidMethodClampUnsignedShortArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
| 5210 { | 5421 { |
| 5211 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5422 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5212 TestObjectPythonV8Internal::voidMethodClampUnsignedShortArgMethod(info); | 5423 TestObjectPythonV8Internal::voidMethodClampUnsignedShortArgMethod(info); |
| 5213 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5424 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5214 } | 5425 } |
| 5215 | 5426 |
| 5216 static void voidMethodClampUnsignedLongArgMethod(const v8::FunctionCallbackInfo<
v8::Value>& info) | 5427 static void voidMethodClampUnsignedLongArgMethod(const v8::FunctionCallbackInfo<
v8::Value>& info) |
| 5217 { | 5428 { |
| 5429 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodC
lampUnsignedLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 5218 if (UNLIKELY(info.Length() < 1)) { | 5430 if (UNLIKELY(info.Length() < 1)) { |
| 5219 throwTypeError(ExceptionMessages::failedToExecute("voidMethodClampUnsign
edLongArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Le
ngth())), info.GetIsolate()); | 5431 throwTypeError(ExceptionMessages::failedToExecute("voidMethodClampUnsign
edLongArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Le
ngth())), info.GetIsolate()); |
| 5220 return; | 5432 return; |
| 5221 } | 5433 } |
| 5222 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5434 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5223 unsigned clampUnsignedLongArg = 0; | 5435 unsigned clampUnsignedLongArg = 0; |
| 5224 V8TRYCATCH_VOID(double, clampUnsignedLongArgNativeValue, info[0]->NumberValu
e()); | 5436 V8TRYCATCH_VOID(double, clampUnsignedLongArgNativeValue, info[0]->NumberValu
e()); |
| 5225 if (!std::isnan(clampUnsignedLongArgNativeValue)) | 5437 if (!std::isnan(clampUnsignedLongArgNativeValue)) |
| 5226 clampUnsignedLongArg = clampTo<unsigned long>(clampUnsignedLongArgNative
Value); | 5438 clampUnsignedLongArg = clampTo<unsigned long>(clampUnsignedLongArgNative
Value); |
| 5227 imp->voidMethodClampUnsignedLongArg(clampUnsignedLongArg); | 5439 imp->voidMethodClampUnsignedLongArg(clampUnsignedLongArg); |
| 5228 } | 5440 } |
| 5229 | 5441 |
| 5230 static void voidMethodClampUnsignedLongArgMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) | 5442 static void voidMethodClampUnsignedLongArgMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
| 5231 { | 5443 { |
| 5232 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5444 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5233 TestObjectPythonV8Internal::voidMethodClampUnsignedLongArgMethod(info); | 5445 TestObjectPythonV8Internal::voidMethodClampUnsignedLongArgMethod(info); |
| 5234 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5446 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5235 } | 5447 } |
| 5236 | 5448 |
| 5237 static void voidMethodDefaultUndefinedTestInterfaceEmptyArgMethod(const v8::Func
tionCallbackInfo<v8::Value>& info) | 5449 static void voidMethodDefaultUndefinedTestInterfaceEmptyArgMethod(const v8::Func
tionCallbackInfo<v8::Value>& info) |
| 5238 { | 5450 { |
| 5451 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultUndefinedTestInterfaceEmptyArg", "TestObjectPython", info.Holder(), info.G
etIsolate()); |
| 5239 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5452 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5240 V8TRYCATCH_VOID(TestInterfaceEmpty*, defaultUndefinedTestInterfaceEmptyArg,
V8TestInterfaceEmpty::hasInstance(info[0], info.GetIsolate(), worldType(info.Get
Isolate())) ? V8TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[0
])) : 0); | 5453 V8TRYCATCH_VOID(TestInterfaceEmpty*, defaultUndefinedTestInterfaceEmptyArg,
V8TestInterfaceEmpty::hasInstance(info[0], info.GetIsolate(), worldType(info.Get
Isolate())) ? V8TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[0
])) : 0); |
| 5241 imp->voidMethodDefaultUndefinedTestInterfaceEmptyArg(defaultUndefinedTestInt
erfaceEmptyArg); | 5454 imp->voidMethodDefaultUndefinedTestInterfaceEmptyArg(defaultUndefinedTestInt
erfaceEmptyArg); |
| 5242 } | 5455 } |
| 5243 | 5456 |
| 5244 static void voidMethodDefaultUndefinedTestInterfaceEmptyArgMethodCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) | 5457 static void voidMethodDefaultUndefinedTestInterfaceEmptyArgMethodCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) |
| 5245 { | 5458 { |
| 5246 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5459 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5247 TestObjectPythonV8Internal::voidMethodDefaultUndefinedTestInterfaceEmptyArgM
ethod(info); | 5460 TestObjectPythonV8Internal::voidMethodDefaultUndefinedTestInterfaceEmptyArgM
ethod(info); |
| 5248 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5461 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5249 } | 5462 } |
| 5250 | 5463 |
| 5251 static void voidMethodDefaultUndefinedLongArgMethod(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 5464 static void voidMethodDefaultUndefinedLongArgMethod(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
| 5252 { | 5465 { |
| 5466 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultUndefinedLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 5253 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5467 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5254 V8TRYCATCH_VOID(int, defaultUndefinedLongArg, toInt32(info[0])); | 5468 V8TRYCATCH_VOID(int, defaultUndefinedLongArg, toInt32(info[0])); |
| 5255 imp->voidMethodDefaultUndefinedLongArg(defaultUndefinedLongArg); | 5469 imp->voidMethodDefaultUndefinedLongArg(defaultUndefinedLongArg); |
| 5256 } | 5470 } |
| 5257 | 5471 |
| 5258 static void voidMethodDefaultUndefinedLongArgMethodCallback(const v8::FunctionCa
llbackInfo<v8::Value>& info) | 5472 static void voidMethodDefaultUndefinedLongArgMethodCallback(const v8::FunctionCa
llbackInfo<v8::Value>& info) |
| 5259 { | 5473 { |
| 5260 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5474 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5261 TestObjectPythonV8Internal::voidMethodDefaultUndefinedLongArgMethod(info); | 5475 TestObjectPythonV8Internal::voidMethodDefaultUndefinedLongArgMethod(info); |
| 5262 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5476 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5263 } | 5477 } |
| 5264 | 5478 |
| 5265 static void voidMethodDefaultUndefinedStringArgMethod(const v8::FunctionCallback
Info<v8::Value>& info) | 5479 static void voidMethodDefaultUndefinedStringArgMethod(const v8::FunctionCallback
Info<v8::Value>& info) |
| 5266 { | 5480 { |
| 5481 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultUndefinedStringArg", "TestObjectPython", info.Holder(), info.GetIsolate())
; |
| 5267 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5482 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5268 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, defaultUndefinedStr
ingArg, info[0]); | 5483 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, defaultUndefinedStr
ingArg, info[0]); |
| 5269 imp->voidMethodDefaultUndefinedStringArg(defaultUndefinedStringArg); | 5484 imp->voidMethodDefaultUndefinedStringArg(defaultUndefinedStringArg); |
| 5270 } | 5485 } |
| 5271 | 5486 |
| 5272 static void voidMethodDefaultUndefinedStringArgMethodCallback(const v8::Function
CallbackInfo<v8::Value>& info) | 5487 static void voidMethodDefaultUndefinedStringArgMethodCallback(const v8::Function
CallbackInfo<v8::Value>& info) |
| 5273 { | 5488 { |
| 5274 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5489 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5275 TestObjectPythonV8Internal::voidMethodDefaultUndefinedStringArgMethod(info); | 5490 TestObjectPythonV8Internal::voidMethodDefaultUndefinedStringArgMethod(info); |
| 5276 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5491 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5277 } | 5492 } |
| 5278 | 5493 |
| 5279 static void voidMethodDefaultNullStringStringArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 5494 static void voidMethodDefaultNullStringStringArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
| 5280 { | 5495 { |
| 5496 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultNullStringStringArg", "TestObjectPython", info.Holder(), info.GetIsolate()
); |
| 5281 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5497 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5282 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, defaultNullStringSt
ringArg, argumentOrNull(info, 0)); | 5498 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, defaultNullStringSt
ringArg, argumentOrNull(info, 0)); |
| 5283 imp->voidMethodDefaultNullStringStringArg(defaultNullStringStringArg); | 5499 imp->voidMethodDefaultNullStringStringArg(defaultNullStringStringArg); |
| 5284 } | 5500 } |
| 5285 | 5501 |
| 5286 static void voidMethodDefaultNullStringStringArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) | 5502 static void voidMethodDefaultNullStringStringArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) |
| 5287 { | 5503 { |
| 5288 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5504 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5289 TestObjectPythonV8Internal::voidMethodDefaultNullStringStringArgMethod(info)
; | 5505 TestObjectPythonV8Internal::voidMethodDefaultNullStringStringArgMethod(info)
; |
| 5290 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5506 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5291 } | 5507 } |
| 5292 | 5508 |
| 5293 static void voidMethodEnforceRangeLongArgMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) | 5509 static void voidMethodEnforceRangeLongArgMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) |
| 5294 { | 5510 { |
| 5511 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodE
nforceRangeLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 5295 if (UNLIKELY(info.Length() < 1)) { | 5512 if (UNLIKELY(info.Length() < 1)) { |
| 5296 throwTypeError(ExceptionMessages::failedToExecute("voidMethodEnforceRang
eLongArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Len
gth())), info.GetIsolate()); | 5513 throwTypeError(ExceptionMessages::failedToExecute("voidMethodEnforceRang
eLongArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Len
gth())), info.GetIsolate()); |
| 5297 return; | 5514 return; |
| 5298 } | 5515 } |
| 5299 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5516 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5300 V8TRYCATCH_WITH_TYPECHECK_VOID(int, enforceRangeLongArg, toInt32(info[0], En
forceRange, ok), info.GetIsolate()); | 5517 V8TRYCATCH_WITH_TYPECHECK_VOID(int, enforceRangeLongArg, toInt32(info[0], En
forceRange, ok), info.GetIsolate()); |
| 5301 imp->voidMethodEnforceRangeLongArg(enforceRangeLongArg); | 5518 imp->voidMethodEnforceRangeLongArg(enforceRangeLongArg); |
| 5302 } | 5519 } |
| 5303 | 5520 |
| 5304 static void voidMethodEnforceRangeLongArgMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) | 5521 static void voidMethodEnforceRangeLongArgMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
| 5305 { | 5522 { |
| 5306 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5523 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5307 TestObjectPythonV8Internal::voidMethodEnforceRangeLongArgMethod(info); | 5524 TestObjectPythonV8Internal::voidMethodEnforceRangeLongArgMethod(info); |
| 5308 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5525 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5309 } | 5526 } |
| 5310 | 5527 |
| 5311 static void voidMethodTreatNullAsNullStringStringArgMethod(const v8::FunctionCal
lbackInfo<v8::Value>& info) | 5528 static void voidMethodTreatNullAsNullStringStringArgMethod(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
| 5312 { | 5529 { |
| 5530 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT
reatNullAsNullStringStringArg", "TestObjectPython", info.Holder(), info.GetIsola
te()); |
| 5313 if (UNLIKELY(info.Length() < 1)) { | 5531 if (UNLIKELY(info.Length() < 1)) { |
| 5314 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTreatNullAs
NullStringStringArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(
1, info.Length())), info.GetIsolate()); | 5532 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTreatNullAs
NullStringStringArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(
1, info.Length())), info.GetIsolate()); |
| 5315 return; | 5533 return; |
| 5316 } | 5534 } |
| 5317 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5535 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5318 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, treatN
ullAsNullStringStringArg, info[0]); | 5536 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, treatN
ullAsNullStringStringArg, info[0]); |
| 5319 imp->voidMethodTreatNullAsNullStringStringArg(treatNullAsNullStringStringArg
); | 5537 imp->voidMethodTreatNullAsNullStringStringArg(treatNullAsNullStringStringArg
); |
| 5320 } | 5538 } |
| 5321 | 5539 |
| 5322 static void voidMethodTreatNullAsNullStringStringArgMethodCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) | 5540 static void voidMethodTreatNullAsNullStringStringArgMethodCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) |
| 5323 { | 5541 { |
| 5324 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5542 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5325 TestObjectPythonV8Internal::voidMethodTreatNullAsNullStringStringArgMethod(i
nfo); | 5543 TestObjectPythonV8Internal::voidMethodTreatNullAsNullStringStringArgMethod(i
nfo); |
| 5326 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5544 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5327 } | 5545 } |
| 5328 | 5546 |
| 5329 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe
thod(const v8::FunctionCallbackInfo<v8::Value>& info) | 5547 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe
thod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 5330 { | 5548 { |
| 5549 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT
reatNullAsNullStringTreatUndefinedAsNullStringStringArg", "TestObjectPython", in
fo.Holder(), info.GetIsolate()); |
| 5331 if (UNLIKELY(info.Length() < 1)) { | 5550 if (UNLIKELY(info.Length() < 1)) { |
| 5332 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTreatNullAs
NullStringTreatUndefinedAsNullStringStringArg", "TestObjectPython", ExceptionMes
sages::notEnoughArguments(1, info.Length())), info.GetIsolate()); | 5551 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTreatNullAs
NullStringTreatUndefinedAsNullStringStringArg", "TestObjectPython", ExceptionMes
sages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| 5333 return; | 5552 return; |
| 5334 } | 5553 } |
| 5335 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5554 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5336 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithUndefinedOrNullChe
ck>, treatNullAsNullStringStringArg, info[0]); | 5555 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithUndefinedOrNullChe
ck>, treatNullAsNullStringStringArg, info[0]); |
| 5337 imp->voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg(trea
tNullAsNullStringStringArg); | 5556 imp->voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg(trea
tNullAsNullStringStringArg); |
| 5338 } | 5557 } |
| 5339 | 5558 |
| 5340 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe
thodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) | 5559 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe
thodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 5341 { | 5560 { |
| 5342 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5561 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5343 TestObjectPythonV8Internal::voidMethodTreatNullAsNullStringTreatUndefinedAsN
ullStringStringArgMethod(info); | 5562 TestObjectPythonV8Internal::voidMethodTreatNullAsNullStringTreatUndefinedAsN
ullStringStringArgMethod(info); |
| 5344 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5563 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5345 } | 5564 } |
| 5346 | 5565 |
| 5347 static void activityLoggingAccessForAllWorldsMethodMethod(const v8::FunctionCall
backInfo<v8::Value>& info) | 5566 static void activityLoggingAccessForAllWorldsMethodMethod(const v8::FunctionCall
backInfo<v8::Value>& info) |
| 5348 { | 5567 { |
| 5568 ExceptionState exceptionState(ExceptionState::ExecutionContext, "activityLog
gingAccessForAllWorldsMethod", "TestObjectPython", info.Holder(), info.GetIsolat
e()); |
| 5349 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5569 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5350 imp->activityLoggingAccessForAllWorldsMethod(); | 5570 imp->activityLoggingAccessForAllWorldsMethod(); |
| 5351 } | 5571 } |
| 5352 | 5572 |
| 5353 static void activityLoggingAccessForAllWorldsMethodMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) | 5573 static void activityLoggingAccessForAllWorldsMethodMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
| 5354 { | 5574 { |
| 5355 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5575 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5356 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 5576 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
| 5357 if (contextData && contextData->activityLogger()) { | 5577 if (contextData && contextData->activityLogger()) { |
| 5358 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle
<v8::Value> >(info, 0); | 5578 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle
<v8::Value> >(info, 0); |
| 5359 contextData->activityLogger()->log("TestObjectPython.activityLoggingAcce
ssForAllWorldsMethod", info.Length(), loggerArgs.data(), "Method"); | 5579 contextData->activityLogger()->log("TestObjectPython.activityLoggingAcce
ssForAllWorldsMethod", info.Length(), loggerArgs.data(), "Method"); |
| 5360 } | 5580 } |
| 5361 TestObjectPythonV8Internal::activityLoggingAccessForAllWorldsMethodMethod(in
fo); | 5581 TestObjectPythonV8Internal::activityLoggingAccessForAllWorldsMethodMethod(in
fo); |
| 5362 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5582 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5363 } | 5583 } |
| 5364 | 5584 |
| 5365 static void callWithScriptStateVoidMethodMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) | 5585 static void callWithScriptStateVoidMethodMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) |
| 5366 { | 5586 { |
| 5587 ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithScr
iptStateVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 5367 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5588 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5368 ScriptState* currentState = ScriptState::current(); | 5589 ScriptState* currentState = ScriptState::current(); |
| 5369 if (!currentState) | 5590 if (!currentState) |
| 5370 return; | 5591 return; |
| 5371 ScriptState& state = *currentState; | 5592 ScriptState& state = *currentState; |
| 5372 imp->callWithScriptStateVoidMethod(&state); | 5593 imp->callWithScriptStateVoidMethod(&state); |
| 5373 if (state.hadException()) { | 5594 if (state.hadException()) { |
| 5374 v8::Local<v8::Value> exception = state.exception(); | 5595 v8::Local<v8::Value> exception = state.exception(); |
| 5375 state.clearException(); | 5596 state.clearException(); |
| 5376 throwError(exception, info.GetIsolate()); | 5597 throwError(exception, info.GetIsolate()); |
| 5377 return; | 5598 return; |
| 5378 } | 5599 } |
| 5379 } | 5600 } |
| 5380 | 5601 |
| 5381 static void callWithScriptStateVoidMethodMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) | 5602 static void callWithScriptStateVoidMethodMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
| 5382 { | 5603 { |
| 5383 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5604 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5384 TestObjectPythonV8Internal::callWithScriptStateVoidMethodMethod(info); | 5605 TestObjectPythonV8Internal::callWithScriptStateVoidMethodMethod(info); |
| 5385 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5606 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5386 } | 5607 } |
| 5387 | 5608 |
| 5388 static void callWithScriptStateLongMethodMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) | 5609 static void callWithScriptStateLongMethodMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) |
| 5389 { | 5610 { |
| 5611 ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithScr
iptStateLongMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 5390 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5612 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5391 ScriptState* currentState = ScriptState::current(); | 5613 ScriptState* currentState = ScriptState::current(); |
| 5392 if (!currentState) | 5614 if (!currentState) |
| 5393 return; | 5615 return; |
| 5394 ScriptState& state = *currentState; | 5616 ScriptState& state = *currentState; |
| 5395 int result = imp->callWithScriptStateLongMethod(&state); | 5617 int result = imp->callWithScriptStateLongMethod(&state); |
| 5396 if (state.hadException()) { | 5618 if (state.hadException()) { |
| 5397 v8::Local<v8::Value> exception = state.exception(); | 5619 v8::Local<v8::Value> exception = state.exception(); |
| 5398 state.clearException(); | 5620 state.clearException(); |
| 5399 throwError(exception, info.GetIsolate()); | 5621 throwError(exception, info.GetIsolate()); |
| 5400 return; | 5622 return; |
| 5401 } | 5623 } |
| 5402 v8SetReturnValueInt(info, result); | 5624 v8SetReturnValueInt(info, result); |
| 5403 } | 5625 } |
| 5404 | 5626 |
| 5405 static void callWithScriptStateLongMethodMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) | 5627 static void callWithScriptStateLongMethodMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
| 5406 { | 5628 { |
| 5407 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5629 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5408 TestObjectPythonV8Internal::callWithScriptStateLongMethodMethod(info); | 5630 TestObjectPythonV8Internal::callWithScriptStateLongMethodMethod(info); |
| 5409 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5631 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5410 } | 5632 } |
| 5411 | 5633 |
| 5412 static void callWithExecutionContextVoidMethodMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 5634 static void callWithExecutionContextVoidMethodMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
| 5413 { | 5635 { |
| 5636 ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithExe
cutionContextVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 5414 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5637 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5415 ExecutionContext* scriptContext = getExecutionContext(); | 5638 ExecutionContext* scriptContext = getExecutionContext(); |
| 5416 imp->callWithExecutionContextVoidMethod(scriptContext); | 5639 imp->callWithExecutionContextVoidMethod(scriptContext); |
| 5417 } | 5640 } |
| 5418 | 5641 |
| 5419 static void callWithExecutionContextVoidMethodMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) | 5642 static void callWithExecutionContextVoidMethodMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) |
| 5420 { | 5643 { |
| 5421 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5644 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5422 TestObjectPythonV8Internal::callWithExecutionContextVoidMethodMethod(info); | 5645 TestObjectPythonV8Internal::callWithExecutionContextVoidMethodMethod(info); |
| 5423 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5646 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5424 } | 5647 } |
| 5425 | 5648 |
| 5426 static void callWithScriptStateExecutionContextVoidMethodMethod(const v8::Functi
onCallbackInfo<v8::Value>& info) | 5649 static void callWithScriptStateExecutionContextVoidMethodMethod(const v8::Functi
onCallbackInfo<v8::Value>& info) |
| 5427 { | 5650 { |
| 5651 ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithScr
iptStateExecutionContextVoidMethod", "TestObjectPython", info.Holder(), info.Get
Isolate()); |
| 5428 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5652 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5429 ScriptState* currentState = ScriptState::current(); | 5653 ScriptState* currentState = ScriptState::current(); |
| 5430 if (!currentState) | 5654 if (!currentState) |
| 5431 return; | 5655 return; |
| 5432 ScriptState& state = *currentState; | 5656 ScriptState& state = *currentState; |
| 5433 ExecutionContext* scriptContext = getExecutionContext(); | 5657 ExecutionContext* scriptContext = getExecutionContext(); |
| 5434 imp->callWithScriptStateExecutionContextVoidMethod(&state, scriptContext); | 5658 imp->callWithScriptStateExecutionContextVoidMethod(&state, scriptContext); |
| 5435 if (state.hadException()) { | 5659 if (state.hadException()) { |
| 5436 v8::Local<v8::Value> exception = state.exception(); | 5660 v8::Local<v8::Value> exception = state.exception(); |
| 5437 state.clearException(); | 5661 state.clearException(); |
| 5438 throwError(exception, info.GetIsolate()); | 5662 throwError(exception, info.GetIsolate()); |
| 5439 return; | 5663 return; |
| 5440 } | 5664 } |
| 5441 } | 5665 } |
| 5442 | 5666 |
| 5443 static void callWithScriptStateExecutionContextVoidMethodMethodCallback(const v8
::FunctionCallbackInfo<v8::Value>& info) | 5667 static void callWithScriptStateExecutionContextVoidMethodMethodCallback(const v8
::FunctionCallbackInfo<v8::Value>& info) |
| 5444 { | 5668 { |
| 5445 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5669 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5446 TestObjectPythonV8Internal::callWithScriptStateExecutionContextVoidMethodMet
hod(info); | 5670 TestObjectPythonV8Internal::callWithScriptStateExecutionContextVoidMethodMet
hod(info); |
| 5447 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5671 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5448 } | 5672 } |
| 5449 | 5673 |
| 5450 static void callWithScriptStateScriptArgumentsVoidMethodMethod(const v8::Functio
nCallbackInfo<v8::Value>& info) | 5674 static void callWithScriptStateScriptArgumentsVoidMethodMethod(const v8::Functio
nCallbackInfo<v8::Value>& info) |
| 5451 { | 5675 { |
| 5676 ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithScr
iptStateScriptArgumentsVoidMethod", "TestObjectPython", info.Holder(), info.GetI
solate()); |
| 5452 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5677 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5453 ScriptState* currentState = ScriptState::current(); | 5678 ScriptState* currentState = ScriptState::current(); |
| 5454 if (!currentState) | 5679 if (!currentState) |
| 5455 return; | 5680 return; |
| 5456 ScriptState& state = *currentState; | 5681 ScriptState& state = *currentState; |
| 5457 RefPtr<ScriptArguments> scriptArguments(createScriptArguments(info, 0)); | 5682 RefPtr<ScriptArguments> scriptArguments(createScriptArguments(info, 0)); |
| 5458 imp->callWithScriptStateScriptArgumentsVoidMethod(&state, scriptArguments.re
lease()); | 5683 imp->callWithScriptStateScriptArgumentsVoidMethod(&state, scriptArguments.re
lease()); |
| 5459 if (state.hadException()) { | 5684 if (state.hadException()) { |
| 5460 v8::Local<v8::Value> exception = state.exception(); | 5685 v8::Local<v8::Value> exception = state.exception(); |
| 5461 state.clearException(); | 5686 state.clearException(); |
| 5462 throwError(exception, info.GetIsolate()); | 5687 throwError(exception, info.GetIsolate()); |
| 5463 return; | 5688 return; |
| 5464 } | 5689 } |
| 5465 } | 5690 } |
| 5466 | 5691 |
| 5467 static void callWithScriptStateScriptArgumentsVoidMethodMethodCallback(const v8:
:FunctionCallbackInfo<v8::Value>& info) | 5692 static void callWithScriptStateScriptArgumentsVoidMethodMethodCallback(const v8:
:FunctionCallbackInfo<v8::Value>& info) |
| 5468 { | 5693 { |
| 5469 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5694 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5470 TestObjectPythonV8Internal::callWithScriptStateScriptArgumentsVoidMethodMeth
od(info); | 5695 TestObjectPythonV8Internal::callWithScriptStateScriptArgumentsVoidMethodMeth
od(info); |
| 5471 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5696 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5472 } | 5697 } |
| 5473 | 5698 |
| 5474 static void callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMethod
(const v8::FunctionCallbackInfo<v8::Value>& info) | 5699 static void callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMethod
(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 5475 { | 5700 { |
| 5701 ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithScr
iptStateScriptArgumentsVoidMethodOptionalBooleanArg", "TestObjectPython", info.H
older(), info.GetIsolate()); |
| 5476 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5702 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5477 if (UNLIKELY(info.Length() <= 0)) { | 5703 if (UNLIKELY(info.Length() <= 0)) { |
| 5478 ScriptState* currentState = ScriptState::current(); | 5704 ScriptState* currentState = ScriptState::current(); |
| 5479 if (!currentState) | 5705 if (!currentState) |
| 5480 return; | 5706 return; |
| 5481 ScriptState& state = *currentState; | 5707 ScriptState& state = *currentState; |
| 5482 RefPtr<ScriptArguments> scriptArguments(createScriptArguments(info, 1)); | 5708 RefPtr<ScriptArguments> scriptArguments(createScriptArguments(info, 1)); |
| 5483 imp->callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg(&sta
te, scriptArguments.release()); | 5709 imp->callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg(&sta
te, scriptArguments.release()); |
| 5484 if (state.hadException()) { | 5710 if (state.hadException()) { |
| 5485 v8::Local<v8::Value> exception = state.exception(); | 5711 v8::Local<v8::Value> exception = state.exception(); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 5506 | 5732 |
| 5507 static void callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMethod
Callback(const v8::FunctionCallbackInfo<v8::Value>& info) | 5733 static void callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMethod
Callback(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 5508 { | 5734 { |
| 5509 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5735 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5510 TestObjectPythonV8Internal::callWithScriptStateScriptArgumentsVoidMethodOpti
onalBooleanArgMethod(info); | 5736 TestObjectPythonV8Internal::callWithScriptStateScriptArgumentsVoidMethodOpti
onalBooleanArgMethod(info); |
| 5511 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5737 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5512 } | 5738 } |
| 5513 | 5739 |
| 5514 static void callWithActiveWindowMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) | 5740 static void callWithActiveWindowMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) |
| 5515 { | 5741 { |
| 5742 ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithAct
iveWindow", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 5516 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5743 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5517 imp->callWithActiveWindow(activeDOMWindow()); | 5744 imp->callWithActiveWindow(activeDOMWindow()); |
| 5518 } | 5745 } |
| 5519 | 5746 |
| 5520 static void callWithActiveWindowMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) | 5747 static void callWithActiveWindowMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) |
| 5521 { | 5748 { |
| 5522 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5749 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5523 TestObjectPythonV8Internal::callWithActiveWindowMethod(info); | 5750 TestObjectPythonV8Internal::callWithActiveWindowMethod(info); |
| 5524 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5751 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5525 } | 5752 } |
| 5526 | 5753 |
| 5527 static void callWithActiveWindowScriptWindowMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) | 5754 static void callWithActiveWindowScriptWindowMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) |
| 5528 { | 5755 { |
| 5756 ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithAct
iveWindowScriptWindow", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 5529 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5757 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5530 imp->callWithActiveWindowScriptWindow(activeDOMWindow(), firstDOMWindow()); | 5758 imp->callWithActiveWindowScriptWindow(activeDOMWindow(), firstDOMWindow()); |
| 5531 } | 5759 } |
| 5532 | 5760 |
| 5533 static void callWithActiveWindowScriptWindowMethodCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) | 5761 static void callWithActiveWindowScriptWindowMethodCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
| 5534 { | 5762 { |
| 5535 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5763 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5536 TestObjectPythonV8Internal::callWithActiveWindowScriptWindowMethod(info); | 5764 TestObjectPythonV8Internal::callWithActiveWindowScriptWindowMethod(info); |
| 5537 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5765 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5538 } | 5766 } |
| 5539 | 5767 |
| 5540 static void checkSecurityForNodeVoidMethodMethod(const v8::FunctionCallbackInfo<
v8::Value>& info) | 5768 static void checkSecurityForNodeVoidMethodMethod(const v8::FunctionCallbackInfo<
v8::Value>& info) |
| 5541 { | 5769 { |
| 5770 ExceptionState exceptionState(ExceptionState::ExecutionContext, "checkSecuri
tyForNodeVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 5542 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5771 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5543 if (!BindingSecurity::shouldAllowAccessToNode(imp->checkSecurityForNodeVoidM
ethod(exceptionState), exceptionState)) { | 5772 if (!BindingSecurity::shouldAllowAccessToNode(imp->checkSecurityForNodeVoidM
ethod(exceptionState), exceptionState)) { |
| 5544 v8SetReturnValueNull(info); | 5773 v8SetReturnValueNull(info); |
| 5545 exceptionState.throwIfNeeded(); | 5774 exceptionState.throwIfNeeded(); |
| 5546 return; | 5775 return; |
| 5547 } | 5776 } |
| 5548 imp->checkSecurityForNodeVoidMethod(); | 5777 imp->checkSecurityForNodeVoidMethod(); |
| 5549 } | 5778 } |
| 5550 | 5779 |
| 5551 static void checkSecurityForNodeVoidMethodMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) | 5780 static void checkSecurityForNodeVoidMethodMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
| 5552 { | 5781 { |
| 5553 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5782 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5554 TestObjectPythonV8Internal::checkSecurityForNodeVoidMethodMethod(info); | 5783 TestObjectPythonV8Internal::checkSecurityForNodeVoidMethodMethod(info); |
| 5555 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5784 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5556 } | 5785 } |
| 5557 | 5786 |
| 5558 #if ENABLE(CONDITION) | 5787 #if ENABLE(CONDITION) |
| 5559 static void conditionalConditionVoidMethodMethod(const v8::FunctionCallbackInfo<
v8::Value>& info) | 5788 static void conditionalConditionVoidMethodMethod(const v8::FunctionCallbackInfo<
v8::Value>& info) |
| 5560 { | 5789 { |
| 5790 ExceptionState exceptionState(ExceptionState::ExecutionContext, "conditional
ConditionVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 5561 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5791 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5562 imp->conditionalConditionVoidMethod(); | 5792 imp->conditionalConditionVoidMethod(); |
| 5563 } | 5793 } |
| 5564 #endif // ENABLE(CONDITION) | 5794 #endif // ENABLE(CONDITION) |
| 5565 | 5795 |
| 5566 #if ENABLE(CONDITION) | 5796 #if ENABLE(CONDITION) |
| 5567 static void conditionalConditionVoidMethodMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) | 5797 static void conditionalConditionVoidMethodMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
| 5568 { | 5798 { |
| 5569 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5799 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5570 TestObjectPythonV8Internal::conditionalConditionVoidMethodMethod(info); | 5800 TestObjectPythonV8Internal::conditionalConditionVoidMethodMethod(info); |
| 5571 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5801 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5572 } | 5802 } |
| 5573 #endif // ENABLE(CONDITION) | 5803 #endif // ENABLE(CONDITION) |
| 5574 | 5804 |
| 5575 #if ENABLE(CONDITION_1) && ENABLE(CONDITION_2) | 5805 #if ENABLE(CONDITION_1) && ENABLE(CONDITION_2) |
| 5576 static void conditionalCondition1AndCondition2VoidMethodMethod(const v8::Functio
nCallbackInfo<v8::Value>& info) | 5806 static void conditionalCondition1AndCondition2VoidMethodMethod(const v8::Functio
nCallbackInfo<v8::Value>& info) |
| 5577 { | 5807 { |
| 5808 ExceptionState exceptionState(ExceptionState::ExecutionContext, "conditional
Condition1AndCondition2VoidMethod", "TestObjectPython", info.Holder(), info.GetI
solate()); |
| 5578 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5809 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5579 imp->conditionalCondition1AndCondition2VoidMethod(); | 5810 imp->conditionalCondition1AndCondition2VoidMethod(); |
| 5580 } | 5811 } |
| 5581 #endif // ENABLE(CONDITION_1) && ENABLE(CONDITION_2) | 5812 #endif // ENABLE(CONDITION_1) && ENABLE(CONDITION_2) |
| 5582 | 5813 |
| 5583 #if ENABLE(CONDITION_1) && ENABLE(CONDITION_2) | 5814 #if ENABLE(CONDITION_1) && ENABLE(CONDITION_2) |
| 5584 static void conditionalCondition1AndCondition2VoidMethodMethodCallback(const v8:
:FunctionCallbackInfo<v8::Value>& info) | 5815 static void conditionalCondition1AndCondition2VoidMethodMethodCallback(const v8:
:FunctionCallbackInfo<v8::Value>& info) |
| 5585 { | 5816 { |
| 5586 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5817 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5587 TestObjectPythonV8Internal::conditionalCondition1AndCondition2VoidMethodMeth
od(info); | 5818 TestObjectPythonV8Internal::conditionalCondition1AndCondition2VoidMethodMeth
od(info); |
| 5588 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5819 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5589 } | 5820 } |
| 5590 #endif // ENABLE(CONDITION_1) && ENABLE(CONDITION_2) | 5821 #endif // ENABLE(CONDITION_1) && ENABLE(CONDITION_2) |
| 5591 | 5822 |
| 5592 #if ENABLE(CONDITION) | 5823 #if ENABLE(CONDITION) |
| 5593 static void conditionalConditionStaticVoidMethodMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 5824 static void conditionalConditionStaticVoidMethodMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
| 5594 { | 5825 { |
| 5826 ExceptionState exceptionState(ExceptionState::ExecutionContext, "conditional
ConditionStaticVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()
); |
| 5595 TestObjectPython::conditionalConditionStaticVoidMethod(); | 5827 TestObjectPython::conditionalConditionStaticVoidMethod(); |
| 5596 } | 5828 } |
| 5597 #endif // ENABLE(CONDITION) | 5829 #endif // ENABLE(CONDITION) |
| 5598 | 5830 |
| 5599 #if ENABLE(CONDITION) | 5831 #if ENABLE(CONDITION) |
| 5600 static void conditionalConditionStaticVoidMethodMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) | 5832 static void conditionalConditionStaticVoidMethodMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) |
| 5601 { | 5833 { |
| 5602 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5834 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5603 TestObjectPythonV8Internal::conditionalConditionStaticVoidMethodMethod(info)
; | 5835 TestObjectPythonV8Internal::conditionalConditionStaticVoidMethodMethod(info)
; |
| 5604 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5836 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 5616 static void conditionalConditionCustomVoidMethodMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) | 5848 static void conditionalConditionCustomVoidMethodMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) |
| 5617 { | 5849 { |
| 5618 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5850 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5619 V8TestObjectPython::conditionalConditionCustomVoidMethodMethodCustom(info); | 5851 V8TestObjectPython::conditionalConditionCustomVoidMethodMethodCustom(info); |
| 5620 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5852 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5621 } | 5853 } |
| 5622 #endif // ENABLE(CONDITION) | 5854 #endif // ENABLE(CONDITION) |
| 5623 | 5855 |
| 5624 static void customElementCallbacksVoidMethodMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) | 5856 static void customElementCallbacksVoidMethodMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) |
| 5625 { | 5857 { |
| 5858 ExceptionState exceptionState(ExceptionState::ExecutionContext, "customEleme
ntCallbacksVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 5626 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5859 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5627 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 5860 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
| 5628 imp->customElementCallbacksVoidMethod(); | 5861 imp->customElementCallbacksVoidMethod(); |
| 5629 } | 5862 } |
| 5630 | 5863 |
| 5631 static void customElementCallbacksVoidMethodMethodCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) | 5864 static void customElementCallbacksVoidMethodMethodCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
| 5632 { | 5865 { |
| 5633 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5866 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5634 TestObjectPythonV8Internal::customElementCallbacksVoidMethodMethod(info); | 5867 TestObjectPythonV8Internal::customElementCallbacksVoidMethodMethod(info); |
| 5635 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5868 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5636 } | 5869 } |
| 5637 | 5870 |
| 5638 static void deprecatedVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) | 5871 static void deprecatedVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) |
| 5639 { | 5872 { |
| 5873 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecatedV
oidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 5640 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5874 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5641 imp->deprecatedVoidMethod(); | 5875 imp->deprecatedVoidMethod(); |
| 5642 } | 5876 } |
| 5643 | 5877 |
| 5644 static void deprecatedVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) | 5878 static void deprecatedVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) |
| 5645 { | 5879 { |
| 5646 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5880 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5647 UseCounter::countDeprecation(activeExecutionContext(), UseCounter::voidMetho
d); | 5881 UseCounter::countDeprecation(activeExecutionContext(), UseCounter::voidMetho
d); |
| 5648 TestObjectPythonV8Internal::deprecatedVoidMethodMethod(info); | 5882 TestObjectPythonV8Internal::deprecatedVoidMethodMethod(info); |
| 5649 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5883 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5650 } | 5884 } |
| 5651 | 5885 |
| 5652 static void doNotCheckSignatureVoidMethodMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) | 5886 static void doNotCheckSignatureVoidMethodMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) |
| 5653 { | 5887 { |
| 5888 ExceptionState exceptionState(ExceptionState::ExecutionContext, "doNotCheckS
ignatureVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 5654 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5889 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5655 imp->doNotCheckSignatureVoidMethod(); | 5890 imp->doNotCheckSignatureVoidMethod(); |
| 5656 } | 5891 } |
| 5657 | 5892 |
| 5658 static void doNotCheckSignatureVoidMethodMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) | 5893 static void doNotCheckSignatureVoidMethodMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
| 5659 { | 5894 { |
| 5660 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5895 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5661 TestObjectPythonV8Internal::doNotCheckSignatureVoidMethodMethod(info); | 5896 TestObjectPythonV8Internal::doNotCheckSignatureVoidMethodMethod(info); |
| 5662 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5897 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5663 } | 5898 } |
| 5664 | 5899 |
| 5665 static void implementedAsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 5900 static void implementedAsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
| 5666 { | 5901 { |
| 5902 ExceptionState exceptionState(ExceptionState::ExecutionContext, "implemented
AsVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 5667 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5903 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5668 imp->implementedAsMethodName(); | 5904 imp->implementedAsMethodName(); |
| 5669 } | 5905 } |
| 5670 | 5906 |
| 5671 static void implementedAsVoidMethodMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) | 5907 static void implementedAsVoidMethodMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) |
| 5672 { | 5908 { |
| 5673 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5909 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5674 TestObjectPythonV8Internal::implementedAsVoidMethodMethod(info); | 5910 TestObjectPythonV8Internal::implementedAsVoidMethodMethod(info); |
| 5675 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5911 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5676 } | 5912 } |
| 5677 | 5913 |
| 5678 static void measureAsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 5914 static void measureAsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 5679 { | 5915 { |
| 5916 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsVo
idMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 5680 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5917 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5681 imp->measureAsVoidMethod(); | 5918 imp->measureAsVoidMethod(); |
| 5682 } | 5919 } |
| 5683 | 5920 |
| 5684 static void measureAsVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 5921 static void measureAsVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
| 5685 { | 5922 { |
| 5686 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5923 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5687 UseCounter::count(activeDOMWindow(), UseCounter::TestFeature); | 5924 UseCounter::count(activeDOMWindow(), UseCounter::TestFeature); |
| 5688 TestObjectPythonV8Internal::measureAsVoidMethodMethod(info); | 5925 TestObjectPythonV8Internal::measureAsVoidMethodMethod(info); |
| 5689 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5926 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5690 } | 5927 } |
| 5691 | 5928 |
| 5692 static void notEnumerableVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 5929 static void notEnumerableVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
| 5693 { | 5930 { |
| 5931 ExceptionState exceptionState(ExceptionState::ExecutionContext, "notEnumerab
leVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 5694 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5932 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5695 imp->notEnumerableVoidMethod(); | 5933 imp->notEnumerableVoidMethod(); |
| 5696 } | 5934 } |
| 5697 | 5935 |
| 5698 static void notEnumerableVoidMethodMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) | 5936 static void notEnumerableVoidMethodMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) |
| 5699 { | 5937 { |
| 5700 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5938 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5701 TestObjectPythonV8Internal::notEnumerableVoidMethodMethod(info); | 5939 TestObjectPythonV8Internal::notEnumerableVoidMethodMethod(info); |
| 5702 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5940 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5703 } | 5941 } |
| 5704 | 5942 |
| 5705 static void perContextEnabledVoidMethodMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 5943 static void perContextEnabledVoidMethodMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
| 5706 { | 5944 { |
| 5945 ExceptionState exceptionState(ExceptionState::ExecutionContext, "perContextE
nabledVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 5707 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5946 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5708 imp->perContextEnabledVoidMethod(); | 5947 imp->perContextEnabledVoidMethod(); |
| 5709 } | 5948 } |
| 5710 | 5949 |
| 5711 static void perContextEnabledVoidMethodMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 5950 static void perContextEnabledVoidMethodMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
| 5712 { | 5951 { |
| 5713 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5952 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5714 TestObjectPythonV8Internal::perContextEnabledVoidMethodMethod(info); | 5953 TestObjectPythonV8Internal::perContextEnabledVoidMethodMethod(info); |
| 5715 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5954 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5716 } | 5955 } |
| 5717 | 5956 |
| 5718 static void perWorldBindingsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) | 5957 static void perWorldBindingsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) |
| 5719 { | 5958 { |
| 5959 ExceptionState exceptionState(ExceptionState::ExecutionContext, "perWorldBin
dingsVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 5720 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5960 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5721 imp->perWorldBindingsVoidMethod(); | 5961 imp->perWorldBindingsVoidMethod(); |
| 5722 } | 5962 } |
| 5723 | 5963 |
| 5724 static void perWorldBindingsVoidMethodMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 5964 static void perWorldBindingsVoidMethodMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
| 5725 { | 5965 { |
| 5726 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5966 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5727 TestObjectPythonV8Internal::perWorldBindingsVoidMethodMethod(info); | 5967 TestObjectPythonV8Internal::perWorldBindingsVoidMethodMethod(info); |
| 5728 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5968 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5729 } | 5969 } |
| 5730 | 5970 |
| 5731 static void perWorldBindingsVoidMethodMethodForMainWorld(const v8::FunctionCallb
ackInfo<v8::Value>& info) | 5971 static void perWorldBindingsVoidMethodMethodForMainWorld(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
| 5732 { | 5972 { |
| 5973 ExceptionState exceptionState(ExceptionState::ExecutionContext, "perWorldBin
dingsVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 5733 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5974 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5734 imp->perWorldBindingsVoidMethod(); | 5975 imp->perWorldBindingsVoidMethod(); |
| 5735 } | 5976 } |
| 5736 | 5977 |
| 5737 static void perWorldBindingsVoidMethodMethodCallbackForMainWorld(const v8::Funct
ionCallbackInfo<v8::Value>& info) | 5978 static void perWorldBindingsVoidMethodMethodCallbackForMainWorld(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
| 5738 { | 5979 { |
| 5739 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5980 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5740 TestObjectPythonV8Internal::perWorldBindingsVoidMethodMethodForMainWorld(inf
o); | 5981 TestObjectPythonV8Internal::perWorldBindingsVoidMethodMethodForMainWorld(inf
o); |
| 5741 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5982 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5742 } | 5983 } |
| 5743 | 5984 |
| 5744 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethod(const v8
::FunctionCallbackInfo<v8::Value>& info) | 5985 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethod(const v8
::FunctionCallbackInfo<v8::Value>& info) |
| 5745 { | 5986 { |
| 5987 ExceptionState exceptionState(ExceptionState::ExecutionContext, "activityLog
gingForAllWorldsPerWorldBindingsVoidMethod", "TestObjectPython", info.Holder(),
info.GetIsolate()); |
| 5746 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5988 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5747 imp->activityLoggingForAllWorldsPerWorldBindingsVoidMethod(); | 5989 imp->activityLoggingForAllWorldsPerWorldBindingsVoidMethod(); |
| 5748 } | 5990 } |
| 5749 | 5991 |
| 5750 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallback(
const v8::FunctionCallbackInfo<v8::Value>& info) | 5992 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallback(
const v8::FunctionCallbackInfo<v8::Value>& info) |
| 5751 { | 5993 { |
| 5752 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5994 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5753 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 5995 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
| 5754 if (contextData && contextData->activityLogger()) { | 5996 if (contextData && contextData->activityLogger()) { |
| 5755 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle
<v8::Value> >(info, 0); | 5997 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle
<v8::Value> >(info, 0); |
| 5756 contextData->activityLogger()->log("TestObjectPython.activityLoggingForA
llWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data(), "Method")
; | 5998 contextData->activityLogger()->log("TestObjectPython.activityLoggingForA
llWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data(), "Method")
; |
| 5757 } | 5999 } |
| 5758 TestObjectPythonV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidM
ethodMethod(info); | 6000 TestObjectPythonV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidM
ethodMethod(info); |
| 5759 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 6001 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5760 } | 6002 } |
| 5761 | 6003 |
| 5762 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodForMainWo
rld(const v8::FunctionCallbackInfo<v8::Value>& info) | 6004 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodForMainWo
rld(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 5763 { | 6005 { |
| 6006 ExceptionState exceptionState(ExceptionState::ExecutionContext, "activityLog
gingForAllWorldsPerWorldBindingsVoidMethod", "TestObjectPython", info.Holder(),
info.GetIsolate()); |
| 5764 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6007 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5765 imp->activityLoggingForAllWorldsPerWorldBindingsVoidMethod(); | 6008 imp->activityLoggingForAllWorldsPerWorldBindingsVoidMethod(); |
| 5766 } | 6009 } |
| 5767 | 6010 |
| 5768 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallbackF
orMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) | 6011 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallbackF
orMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 5769 { | 6012 { |
| 5770 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6013 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5771 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 6014 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
| 5772 if (contextData && contextData->activityLogger()) { | 6015 if (contextData && contextData->activityLogger()) { |
| 5773 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle
<v8::Value> >(info, 0); | 6016 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle
<v8::Value> >(info, 0); |
| 5774 contextData->activityLogger()->log("TestObjectPython.activityLoggingForA
llWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data(), "Method")
; | 6017 contextData->activityLogger()->log("TestObjectPython.activityLoggingForA
llWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data(), "Method")
; |
| 5775 } | 6018 } |
| 5776 TestObjectPythonV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidM
ethodMethodForMainWorld(info); | 6019 TestObjectPythonV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidM
ethodMethodForMainWorld(info); |
| 5777 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 6020 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5778 } | 6021 } |
| 5779 | 6022 |
| 5780 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethod(con
st v8::FunctionCallbackInfo<v8::Value>& info) | 6023 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethod(con
st v8::FunctionCallbackInfo<v8::Value>& info) |
| 5781 { | 6024 { |
| 6025 ExceptionState exceptionState(ExceptionState::ExecutionContext, "activityLog
gingForIsolatedWorldsPerWorldBindingsVoidMethod", "TestObjectPython", info.Holde
r(), info.GetIsolate()); |
| 5782 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6026 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5783 imp->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod(); | 6027 imp->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod(); |
| 5784 } | 6028 } |
| 5785 | 6029 |
| 5786 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCall
back(const v8::FunctionCallbackInfo<v8::Value>& info) | 6030 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCall
back(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 5787 { | 6031 { |
| 5788 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6032 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5789 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 6033 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
| 5790 if (contextData && contextData->activityLogger()) { | 6034 if (contextData && contextData->activityLogger()) { |
| 5791 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle
<v8::Value> >(info, 0); | 6035 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle
<v8::Value> >(info, 0); |
| 5792 contextData->activityLogger()->log("TestObjectPython.activityLoggingForI
solatedWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data(), "Met
hod"); | 6036 contextData->activityLogger()->log("TestObjectPython.activityLoggingForI
solatedWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data(), "Met
hod"); |
| 5793 } | 6037 } |
| 5794 TestObjectPythonV8Internal::activityLoggingForIsolatedWorldsPerWorldBindings
VoidMethodMethod(info); | 6038 TestObjectPythonV8Internal::activityLoggingForIsolatedWorldsPerWorldBindings
VoidMethodMethod(info); |
| 5795 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 6039 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5796 } | 6040 } |
| 5797 | 6041 |
| 5798 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodForM
ainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) | 6042 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodForM
ainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 5799 { | 6043 { |
| 6044 ExceptionState exceptionState(ExceptionState::ExecutionContext, "activityLog
gingForIsolatedWorldsPerWorldBindingsVoidMethod", "TestObjectPython", info.Holde
r(), info.GetIsolate()); |
| 5800 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6045 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5801 imp->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod(); | 6046 imp->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod(); |
| 5802 } | 6047 } |
| 5803 | 6048 |
| 5804 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCall
backForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) | 6049 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCall
backForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 5805 { | 6050 { |
| 5806 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6051 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5807 TestObjectPythonV8Internal::activityLoggingForIsolatedWorldsPerWorldBindings
VoidMethodMethodForMainWorld(info); | 6052 TestObjectPythonV8Internal::activityLoggingForIsolatedWorldsPerWorldBindings
VoidMethodMethodForMainWorld(info); |
| 5808 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 6053 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5809 } | 6054 } |
| 5810 | 6055 |
| 5811 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethod(const v8::Func
tionCallbackInfo<v8::Value>& info) | 6056 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethod(const v8::Func
tionCallbackInfo<v8::Value>& info) |
| 5812 { | 6057 { |
| 6058 ExceptionState exceptionState(ExceptionState::ExecutionContext, "perWorldBin
dingsVoidMethodTestInterfaceEmptyArg", "TestObjectPython", info.Holder(), info.G
etIsolate()); |
| 5813 if (UNLIKELY(info.Length() < 1)) { | 6059 if (UNLIKELY(info.Length() < 1)) { |
| 5814 throwTypeError(ExceptionMessages::failedToExecute("perWorldBindingsVoidM
ethodTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArg
uments(1, info.Length())), info.GetIsolate()); | 6060 throwTypeError(ExceptionMessages::failedToExecute("perWorldBindingsVoidM
ethodTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArg
uments(1, info.Length())), info.GetIsolate()); |
| 5815 return; | 6061 return; |
| 5816 } | 6062 } |
| 5817 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6063 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5818 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE
mpty::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate())) ? V8
TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0); | 6064 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE
mpty::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate())) ? V8
TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0); |
| 5819 imp->perWorldBindingsVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg); | 6065 imp->perWorldBindingsVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg); |
| 5820 } | 6066 } |
| 5821 | 6067 |
| 5822 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) | 6068 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) |
| 5823 { | 6069 { |
| 5824 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6070 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5825 TestObjectPythonV8Internal::perWorldBindingsVoidMethodTestInterfaceEmptyArgM
ethod(info); | 6071 TestObjectPythonV8Internal::perWorldBindingsVoidMethodTestInterfaceEmptyArgM
ethod(info); |
| 5826 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 6072 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5827 } | 6073 } |
| 5828 | 6074 |
| 5829 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodForMainWorld(co
nst v8::FunctionCallbackInfo<v8::Value>& info) | 6075 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodForMainWorld(co
nst v8::FunctionCallbackInfo<v8::Value>& info) |
| 5830 { | 6076 { |
| 6077 ExceptionState exceptionState(ExceptionState::ExecutionContext, "perWorldBin
dingsVoidMethodTestInterfaceEmptyArg", "TestObjectPython", info.Holder(), info.G
etIsolate()); |
| 5831 if (UNLIKELY(info.Length() < 1)) { | 6078 if (UNLIKELY(info.Length() < 1)) { |
| 5832 throwTypeError(ExceptionMessages::failedToExecute("perWorldBindingsVoidM
ethodTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArg
uments(1, info.Length())), info.GetIsolate()); | 6079 throwTypeError(ExceptionMessages::failedToExecute("perWorldBindingsVoidM
ethodTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArg
uments(1, info.Length())), info.GetIsolate()); |
| 5833 return; | 6080 return; |
| 5834 } | 6081 } |
| 5835 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6082 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5836 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE
mpty::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate())) ? V8
TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0); | 6083 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE
mpty::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate())) ? V8
TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0); |
| 5837 imp->perWorldBindingsVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg); | 6084 imp->perWorldBindingsVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg); |
| 5838 } | 6085 } |
| 5839 | 6086 |
| 5840 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallbackForMain
World(const v8::FunctionCallbackInfo<v8::Value>& info) | 6087 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallbackForMain
World(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 5841 { | 6088 { |
| 5842 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6089 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5843 TestObjectPythonV8Internal::perWorldBindingsVoidMethodTestInterfaceEmptyArgM
ethodForMainWorld(info); | 6090 TestObjectPythonV8Internal::perWorldBindingsVoidMethodTestInterfaceEmptyArgM
ethodForMainWorld(info); |
| 5844 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 6091 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5845 } | 6092 } |
| 5846 | 6093 |
| 5847 static void raisesExceptionVoidMethodMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 6094 static void raisesExceptionVoidMethodMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 5848 { | 6095 { |
| 6096 ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExcep
tionVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 5849 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6097 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5850 ExceptionState exceptionState(info.Holder(), info.GetIsolate()); | |
| 5851 imp->raisesExceptionVoidMethod(exceptionState); | 6098 imp->raisesExceptionVoidMethod(exceptionState); |
| 5852 if (exceptionState.throwIfNeeded()) | 6099 if (exceptionState.throwIfNeeded()) |
| 5853 return; | 6100 return; |
| 5854 } | 6101 } |
| 5855 | 6102 |
| 5856 static void raisesExceptionVoidMethodMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 6103 static void raisesExceptionVoidMethodMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
| 5857 { | 6104 { |
| 5858 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6105 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5859 TestObjectPythonV8Internal::raisesExceptionVoidMethodMethod(info); | 6106 TestObjectPythonV8Internal::raisesExceptionVoidMethodMethod(info); |
| 5860 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 6107 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5861 } | 6108 } |
| 5862 | 6109 |
| 5863 static void raisesExceptionVoidMethodOptionalLongArgMethod(const v8::FunctionCal
lbackInfo<v8::Value>& info) | 6110 static void raisesExceptionVoidMethodOptionalLongArgMethod(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
| 5864 { | 6111 { |
| 6112 ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExcep
tionVoidMethodOptionalLongArg", "TestObjectPython", info.Holder(), info.GetIsola
te()); |
| 5865 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6113 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5866 ExceptionState exceptionState(info.Holder(), info.GetIsolate()); | |
| 5867 if (UNLIKELY(info.Length() <= 0)) { | 6114 if (UNLIKELY(info.Length() <= 0)) { |
| 5868 imp->raisesExceptionVoidMethodOptionalLongArg(exceptionState); | 6115 imp->raisesExceptionVoidMethodOptionalLongArg(exceptionState); |
| 5869 if (exceptionState.throwIfNeeded()) | 6116 if (exceptionState.throwIfNeeded()) |
| 5870 return; | 6117 return; |
| 5871 return; | 6118 return; |
| 5872 } | 6119 } |
| 5873 V8TRYCATCH_VOID(int, optionalLongArg, toInt32(info[0])); | 6120 V8TRYCATCH_VOID(int, optionalLongArg, toInt32(info[0])); |
| 5874 imp->raisesExceptionVoidMethodOptionalLongArg(optionalLongArg, exceptionStat
e); | 6121 imp->raisesExceptionVoidMethodOptionalLongArg(optionalLongArg, exceptionStat
e); |
| 5875 if (exceptionState.throwIfNeeded()) | 6122 if (exceptionState.throwIfNeeded()) |
| 5876 return; | 6123 return; |
| 5877 } | 6124 } |
| 5878 | 6125 |
| 5879 static void raisesExceptionVoidMethodOptionalLongArgMethodCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) | 6126 static void raisesExceptionVoidMethodOptionalLongArgMethodCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) |
| 5880 { | 6127 { |
| 5881 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6128 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5882 TestObjectPythonV8Internal::raisesExceptionVoidMethodOptionalLongArgMethod(i
nfo); | 6129 TestObjectPythonV8Internal::raisesExceptionVoidMethodOptionalLongArgMethod(i
nfo); |
| 5883 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 6130 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5884 } | 6131 } |
| 5885 | 6132 |
| 5886 static void readOnlyVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 6133 static void readOnlyVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 5887 { | 6134 { |
| 6135 ExceptionState exceptionState(ExceptionState::ExecutionContext, "readOnlyVoi
dMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 5888 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6136 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5889 imp->readOnlyVoidMethod(); | 6137 imp->readOnlyVoidMethod(); |
| 5890 } | 6138 } |
| 5891 | 6139 |
| 5892 static void readOnlyVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) | 6140 static void readOnlyVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) |
| 5893 { | 6141 { |
| 5894 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6142 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5895 TestObjectPythonV8Internal::readOnlyVoidMethodMethod(info); | 6143 TestObjectPythonV8Internal::readOnlyVoidMethodMethod(info); |
| 5896 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 6144 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5897 } | 6145 } |
| 5898 | 6146 |
| 5899 static void notEnumerableReadOnlyVoidMethodMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) | 6147 static void notEnumerableReadOnlyVoidMethodMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) |
| 5900 { | 6148 { |
| 6149 ExceptionState exceptionState(ExceptionState::ExecutionContext, "notEnumerab
leReadOnlyVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 5901 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6150 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5902 imp->notEnumerableReadOnlyVoidMethod(); | 6151 imp->notEnumerableReadOnlyVoidMethod(); |
| 5903 } | 6152 } |
| 5904 | 6153 |
| 5905 static void notEnumerableReadOnlyVoidMethodMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) | 6154 static void notEnumerableReadOnlyVoidMethodMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
| 5906 { | 6155 { |
| 5907 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6156 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5908 TestObjectPythonV8Internal::notEnumerableReadOnlyVoidMethodMethod(info); | 6157 TestObjectPythonV8Internal::notEnumerableReadOnlyVoidMethodMethod(info); |
| 5909 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 6158 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5910 } | 6159 } |
| 5911 | 6160 |
| 5912 static void runtimeEnabledVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 6161 static void runtimeEnabledVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
| 5913 { | 6162 { |
| 6163 ExceptionState exceptionState(ExceptionState::ExecutionContext, "runtimeEnab
ledVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 5914 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6164 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5915 imp->runtimeEnabledVoidMethod(); | 6165 imp->runtimeEnabledVoidMethod(); |
| 5916 } | 6166 } |
| 5917 | 6167 |
| 5918 static void runtimeEnabledVoidMethodMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) | 6168 static void runtimeEnabledVoidMethodMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) |
| 5919 { | 6169 { |
| 5920 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6170 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5921 TestObjectPythonV8Internal::runtimeEnabledVoidMethodMethod(info); | 6171 TestObjectPythonV8Internal::runtimeEnabledVoidMethodMethod(info); |
| 5922 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 6172 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5923 } | 6173 } |
| 5924 | 6174 |
| 5925 static void perWorldBindingsRuntimeEnabledVoidMethodMethod(const v8::FunctionCal
lbackInfo<v8::Value>& info) | 6175 static void perWorldBindingsRuntimeEnabledVoidMethodMethod(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
| 5926 { | 6176 { |
| 6177 ExceptionState exceptionState(ExceptionState::ExecutionContext, "perWorldBin
dingsRuntimeEnabledVoidMethod", "TestObjectPython", info.Holder(), info.GetIsola
te()); |
| 5927 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6178 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5928 imp->perWorldBindingsRuntimeEnabledVoidMethod(); | 6179 imp->perWorldBindingsRuntimeEnabledVoidMethod(); |
| 5929 } | 6180 } |
| 5930 | 6181 |
| 5931 static void perWorldBindingsRuntimeEnabledVoidMethodMethodCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) | 6182 static void perWorldBindingsRuntimeEnabledVoidMethodMethodCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) |
| 5932 { | 6183 { |
| 5933 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6184 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5934 TestObjectPythonV8Internal::perWorldBindingsRuntimeEnabledVoidMethodMethod(i
nfo); | 6185 TestObjectPythonV8Internal::perWorldBindingsRuntimeEnabledVoidMethodMethod(i
nfo); |
| 5935 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 6186 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5936 } | 6187 } |
| 5937 | 6188 |
| 5938 static void perWorldBindingsRuntimeEnabledVoidMethodMethodForMainWorld(const v8:
:FunctionCallbackInfo<v8::Value>& info) | 6189 static void perWorldBindingsRuntimeEnabledVoidMethodMethodForMainWorld(const v8:
:FunctionCallbackInfo<v8::Value>& info) |
| 5939 { | 6190 { |
| 6191 ExceptionState exceptionState(ExceptionState::ExecutionContext, "perWorldBin
dingsRuntimeEnabledVoidMethod", "TestObjectPython", info.Holder(), info.GetIsola
te()); |
| 5940 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6192 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5941 imp->perWorldBindingsRuntimeEnabledVoidMethod(); | 6193 imp->perWorldBindingsRuntimeEnabledVoidMethod(); |
| 5942 } | 6194 } |
| 5943 | 6195 |
| 5944 static void perWorldBindingsRuntimeEnabledVoidMethodMethodCallbackForMainWorld(c
onst v8::FunctionCallbackInfo<v8::Value>& info) | 6196 static void perWorldBindingsRuntimeEnabledVoidMethodMethodCallbackForMainWorld(c
onst v8::FunctionCallbackInfo<v8::Value>& info) |
| 5945 { | 6197 { |
| 5946 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6198 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5947 TestObjectPythonV8Internal::perWorldBindingsRuntimeEnabledVoidMethodMethodFo
rMainWorld(info); | 6199 TestObjectPythonV8Internal::perWorldBindingsRuntimeEnabledVoidMethodMethodFo
rMainWorld(info); |
| 5948 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 6200 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5949 } | 6201 } |
| 5950 | 6202 |
| 5951 static void strictTypeCheckingVoidMethodTestInterfaceEmptyArgMethod(const v8::Fu
nctionCallbackInfo<v8::Value>& info) | 6203 static void strictTypeCheckingVoidMethodTestInterfaceEmptyArgMethod(const v8::Fu
nctionCallbackInfo<v8::Value>& info) |
| 5952 { | 6204 { |
| 6205 ExceptionState exceptionState(ExceptionState::ExecutionContext, "strictTypeC
heckingVoidMethodTestInterfaceEmptyArg", "TestObjectPython", info.Holder(), info
.GetIsolate()); |
| 5953 if (UNLIKELY(info.Length() < 1)) { | 6206 if (UNLIKELY(info.Length() < 1)) { |
| 5954 throwTypeError(ExceptionMessages::failedToExecute("strictTypeCheckingVoi
dMethodTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughA
rguments(1, info.Length())), info.GetIsolate()); | 6207 throwTypeError(ExceptionMessages::failedToExecute("strictTypeCheckingVoi
dMethodTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughA
rguments(1, info.Length())), info.GetIsolate()); |
| 5955 return; | 6208 return; |
| 5956 } | 6209 } |
| 5957 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6210 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5958 if (info.Length() > 0 && !isUndefinedOrNull(info[0]) && !V8TestInterfaceEmpt
y::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate()))) { | 6211 if (info.Length() > 0 && !isUndefinedOrNull(info[0]) && !V8TestInterfaceEmpt
y::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate()))) { |
| 5959 throwTypeError(ExceptionMessages::failedToExecute("strictTypeCheckingVoi
dMethodTestInterfaceEmptyArg", "TestObjectPython", "parameter 1 is not of type '
TestInterfaceEmpty'."), info.GetIsolate()); | 6212 throwTypeError(ExceptionMessages::failedToExecute("strictTypeCheckingVoi
dMethodTestInterfaceEmptyArg", "TestObjectPython", "parameter 1 is not of type '
TestInterfaceEmpty'."), info.GetIsolate()); |
| 5960 return; | 6213 return; |
| 5961 } | 6214 } |
| 5962 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE
mpty::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate())) ? V8
TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0); | 6215 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE
mpty::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate())) ? V8
TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0); |
| 5963 imp->strictTypeCheckingVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg
); | 6216 imp->strictTypeCheckingVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg
); |
| 5964 } | 6217 } |
| 5965 | 6218 |
| 5966 static void strictTypeCheckingVoidMethodTestInterfaceEmptyArgMethodCallback(cons
t v8::FunctionCallbackInfo<v8::Value>& info) | 6219 static void strictTypeCheckingVoidMethodTestInterfaceEmptyArgMethodCallback(cons
t v8::FunctionCallbackInfo<v8::Value>& info) |
| 5967 { | 6220 { |
| 5968 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6221 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5969 TestObjectPythonV8Internal::strictTypeCheckingVoidMethodTestInterfaceEmptyAr
gMethod(info); | 6222 TestObjectPythonV8Internal::strictTypeCheckingVoidMethodTestInterfaceEmptyAr
gMethod(info); |
| 5970 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 6223 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5971 } | 6224 } |
| 5972 | 6225 |
| 5973 static void treatReturnedNullStringAsNullStringMethodMethod(const v8::FunctionCa
llbackInfo<v8::Value>& info) | 6226 static void treatReturnedNullStringAsNullStringMethodMethod(const v8::FunctionCa
llbackInfo<v8::Value>& info) |
| 5974 { | 6227 { |
| 6228 ExceptionState exceptionState(ExceptionState::ExecutionContext, "treatReturn
edNullStringAsNullStringMethod", "TestObjectPython", info.Holder(), info.GetIsol
ate()); |
| 5975 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6229 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5976 v8SetReturnValueStringOrNull(info, imp->treatReturnedNullStringAsNullStringM
ethod(), info.GetIsolate()); | 6230 v8SetReturnValueStringOrNull(info, imp->treatReturnedNullStringAsNullStringM
ethod(), info.GetIsolate()); |
| 5977 } | 6231 } |
| 5978 | 6232 |
| 5979 static void treatReturnedNullStringAsNullStringMethodMethodCallback(const v8::Fu
nctionCallbackInfo<v8::Value>& info) | 6233 static void treatReturnedNullStringAsNullStringMethodMethodCallback(const v8::Fu
nctionCallbackInfo<v8::Value>& info) |
| 5980 { | 6234 { |
| 5981 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6235 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5982 TestObjectPythonV8Internal::treatReturnedNullStringAsNullStringMethodMethod(
info); | 6236 TestObjectPythonV8Internal::treatReturnedNullStringAsNullStringMethodMethod(
info); |
| 5983 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 6237 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5984 } | 6238 } |
| 5985 | 6239 |
| 5986 static void treatReturnedNullStringAsUndefinedStringMethodMethod(const v8::Funct
ionCallbackInfo<v8::Value>& info) | 6240 static void treatReturnedNullStringAsUndefinedStringMethodMethod(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
| 5987 { | 6241 { |
| 6242 ExceptionState exceptionState(ExceptionState::ExecutionContext, "treatReturn
edNullStringAsUndefinedStringMethod", "TestObjectPython", info.Holder(), info.Ge
tIsolate()); |
| 5988 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6243 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5989 v8SetReturnValueStringOrUndefined(info, imp->treatReturnedNullStringAsUndefi
nedStringMethod(), info.GetIsolate()); | 6244 v8SetReturnValueStringOrUndefined(info, imp->treatReturnedNullStringAsUndefi
nedStringMethod(), info.GetIsolate()); |
| 5990 } | 6245 } |
| 5991 | 6246 |
| 5992 static void treatReturnedNullStringAsUndefinedStringMethodMethodCallback(const v
8::FunctionCallbackInfo<v8::Value>& info) | 6247 static void treatReturnedNullStringAsUndefinedStringMethodMethodCallback(const v
8::FunctionCallbackInfo<v8::Value>& info) |
| 5993 { | 6248 { |
| 5994 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6249 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5995 TestObjectPythonV8Internal::treatReturnedNullStringAsUndefinedStringMethodMe
thod(info); | 6250 TestObjectPythonV8Internal::treatReturnedNullStringAsUndefinedStringMethodMe
thod(info); |
| 5996 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 6251 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5997 } | 6252 } |
| 5998 | 6253 |
| 5999 static void unforgeableVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) | 6254 static void unforgeableVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) |
| 6000 { | 6255 { |
| 6256 ExceptionState exceptionState(ExceptionState::ExecutionContext, "unforgeable
VoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| 6001 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6257 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 6002 imp->unforgeableVoidMethod(); | 6258 imp->unforgeableVoidMethod(); |
| 6003 } | 6259 } |
| 6004 | 6260 |
| 6005 static void unforgeableVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) | 6261 static void unforgeableVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) |
| 6006 { | 6262 { |
| 6007 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6263 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 6008 TestObjectPythonV8Internal::unforgeableVoidMethodMethod(info); | 6264 TestObjectPythonV8Internal::unforgeableVoidMethodMethod(info); |
| 6009 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 6265 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 6010 } | 6266 } |
| (...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6497 fromInternalPointer(object)->deref(); | 6753 fromInternalPointer(object)->deref(); |
| 6498 } | 6754 } |
| 6499 | 6755 |
| 6500 template<> | 6756 template<> |
| 6501 v8::Handle<v8::Value> toV8NoInline(TestObjectPython* impl, v8::Handle<v8::Object
> creationContext, v8::Isolate* isolate) | 6757 v8::Handle<v8::Value> toV8NoInline(TestObjectPython* impl, v8::Handle<v8::Object
> creationContext, v8::Isolate* isolate) |
| 6502 { | 6758 { |
| 6503 return toV8(impl, creationContext, isolate); | 6759 return toV8(impl, creationContext, isolate); |
| 6504 } | 6760 } |
| 6505 | 6761 |
| 6506 } // namespace WebCore | 6762 } // namespace WebCore |
| OLD | NEW |