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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 static void shortAttrAttributeGetterCallback(v8::Local<v8::String>, const v8::Pr
opertyCallbackInfo<v8::Value>& info) | 295 static void shortAttrAttributeGetterCallback(v8::Local<v8::String>, const v8::Pr
opertyCallbackInfo<v8::Value>& info) |
296 { | 296 { |
297 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 297 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
298 TestObjV8Internal::shortAttrAttributeGetter(info); | 298 TestObjV8Internal::shortAttrAttributeGetter(info); |
299 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 299 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
300 } | 300 } |
301 | 301 |
302 static void shortAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::Pro
pertyCallbackInfo<void>& info) | 302 static void shortAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::Pro
pertyCallbackInfo<void>& info) |
303 { | 303 { |
304 TestObj* imp = V8TestObject::toNative(info.Holder()); | 304 TestObj* imp = V8TestObject::toNative(info.Holder()); |
305 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); | 305 V8TRYCATCH_VOID(int, cppValue, toInt16(jsValue)); |
306 imp->setShortAttr(cppValue); | 306 imp->setShortAttr(cppValue); |
307 } | 307 } |
308 | 308 |
309 static void shortAttrAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8
::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 309 static void shortAttrAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8
::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
310 { | 310 { |
311 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 311 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
312 TestObjV8Internal::shortAttrAttributeSetter(jsValue, info); | 312 TestObjV8Internal::shortAttrAttributeSetter(jsValue, info); |
313 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 313 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
314 } | 314 } |
315 | 315 |
316 static void unsignedShortAttrAttributeGetter(const v8::PropertyCallbackInfo<v8::
Value>& info) | 316 static void unsignedShortAttrAttributeGetter(const v8::PropertyCallbackInfo<v8::
Value>& info) |
317 { | 317 { |
318 TestObj* imp = V8TestObject::toNative(info.Holder()); | 318 TestObj* imp = V8TestObject::toNative(info.Holder()); |
319 v8SetReturnValueUnsigned(info, imp->unsignedShortAttr()); | 319 v8SetReturnValueUnsigned(info, imp->unsignedShortAttr()); |
320 } | 320 } |
321 | 321 |
322 static void unsignedShortAttrAttributeGetterCallback(v8::Local<v8::String>, cons
t v8::PropertyCallbackInfo<v8::Value>& info) | 322 static void unsignedShortAttrAttributeGetterCallback(v8::Local<v8::String>, cons
t v8::PropertyCallbackInfo<v8::Value>& info) |
323 { | 323 { |
324 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 324 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
325 TestObjV8Internal::unsignedShortAttrAttributeGetter(info); | 325 TestObjV8Internal::unsignedShortAttrAttributeGetter(info); |
326 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 326 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
327 } | 327 } |
328 | 328 |
329 static void unsignedShortAttrAttributeSetter(v8::Local<v8::Value> jsValue, const
v8::PropertyCallbackInfo<void>& info) | 329 static void unsignedShortAttrAttributeSetter(v8::Local<v8::Value> jsValue, const
v8::PropertyCallbackInfo<void>& info) |
330 { | 330 { |
331 TestObj* imp = V8TestObject::toNative(info.Holder()); | 331 TestObj* imp = V8TestObject::toNative(info.Holder()); |
332 V8TRYCATCH_VOID(unsigned, cppValue, toUInt32(jsValue)); | 332 V8TRYCATCH_VOID(unsigned, cppValue, toUInt16(jsValue)); |
333 imp->setUnsignedShortAttr(cppValue); | 333 imp->setUnsignedShortAttr(cppValue); |
334 } | 334 } |
335 | 335 |
336 static void unsignedShortAttrAttributeSetterCallback(v8::Local<v8::String>, v8::
Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 336 static void unsignedShortAttrAttributeSetterCallback(v8::Local<v8::String>, v8::
Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
337 { | 337 { |
338 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 338 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
339 TestObjV8Internal::unsignedShortAttrAttributeSetter(jsValue, info); | 339 TestObjV8Internal::unsignedShortAttrAttributeSetter(jsValue, info); |
340 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 340 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
341 } | 341 } |
342 | 342 |
(...skipping 981 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1324 imp->setEnforcedRangeOctetAttr(cppValue); | 1324 imp->setEnforcedRangeOctetAttr(cppValue); |
1325 } | 1325 } |
1326 | 1326 |
1327 static void enforcedRangeOctetAttrAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1327 static void enforcedRangeOctetAttrAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
1328 { | 1328 { |
1329 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1329 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1330 TestObjV8Internal::enforcedRangeOctetAttrAttributeSetter(jsValue, info); | 1330 TestObjV8Internal::enforcedRangeOctetAttrAttributeSetter(jsValue, info); |
1331 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1331 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
1332 } | 1332 } |
1333 | 1333 |
| 1334 static void enforcedRangeShortAttrAttributeGetter(const v8::PropertyCallbackInfo
<v8::Value>& info) |
| 1335 { |
| 1336 TestObj* imp = V8TestObject::toNative(info.Holder()); |
| 1337 v8SetReturnValueInt(info, imp->enforcedRangeShortAttr()); |
| 1338 } |
| 1339 |
| 1340 static void enforcedRangeShortAttrAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
| 1341 { |
| 1342 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1343 TestObjV8Internal::enforcedRangeShortAttrAttributeGetter(info); |
| 1344 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1345 } |
| 1346 |
| 1347 static void enforcedRangeShortAttrAttributeSetter(v8::Local<v8::Value> jsValue,
const v8::PropertyCallbackInfo<void>& info) |
| 1348 { |
| 1349 TestObj* imp = V8TestObject::toNative(info.Holder()); |
| 1350 V8TRYCATCH_WITH_TYPECHECK_VOID(int, cppValue, toInt16(jsValue, EnforceRange,
ok), info.GetIsolate()); |
| 1351 imp->setEnforcedRangeShortAttr(cppValue); |
| 1352 } |
| 1353 |
| 1354 static void enforcedRangeShortAttrAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 1355 { |
| 1356 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 1357 TestObjV8Internal::enforcedRangeShortAttrAttributeSetter(jsValue, info); |
| 1358 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1359 } |
| 1360 |
| 1361 static void enforcedRangeUnsignedShortAttrAttributeGetter(const v8::PropertyCall
backInfo<v8::Value>& info) |
| 1362 { |
| 1363 TestObj* imp = V8TestObject::toNative(info.Holder()); |
| 1364 v8SetReturnValueUnsigned(info, imp->enforcedRangeUnsignedShortAttr()); |
| 1365 } |
| 1366 |
| 1367 static void enforcedRangeUnsignedShortAttrAttributeGetterCallback(v8::Local<v8::
String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 1368 { |
| 1369 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1370 TestObjV8Internal::enforcedRangeUnsignedShortAttrAttributeGetter(info); |
| 1371 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1372 } |
| 1373 |
| 1374 static void enforcedRangeUnsignedShortAttrAttributeSetter(v8::Local<v8::Value> j
sValue, const v8::PropertyCallbackInfo<void>& info) |
| 1375 { |
| 1376 TestObj* imp = V8TestObject::toNative(info.Holder()); |
| 1377 V8TRYCATCH_WITH_TYPECHECK_VOID(unsigned, cppValue, toUInt16(jsValue, Enforce
Range, ok), info.GetIsolate()); |
| 1378 imp->setEnforcedRangeUnsignedShortAttr(cppValue); |
| 1379 } |
| 1380 |
| 1381 static void enforcedRangeUnsignedShortAttrAttributeSetterCallback(v8::Local<v8::
String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& inf
o) |
| 1382 { |
| 1383 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 1384 TestObjV8Internal::enforcedRangeUnsignedShortAttrAttributeSetter(jsValue, in
fo); |
| 1385 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1386 } |
| 1387 |
1334 static void enforcedRangeLongAttrAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) | 1388 static void enforcedRangeLongAttrAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) |
1335 { | 1389 { |
1336 TestObj* imp = V8TestObject::toNative(info.Holder()); | 1390 TestObj* imp = V8TestObject::toNative(info.Holder()); |
1337 v8SetReturnValueInt(info, imp->enforcedRangeLongAttr()); | 1391 v8SetReturnValueInt(info, imp->enforcedRangeLongAttr()); |
1338 } | 1392 } |
1339 | 1393 |
1340 static void enforcedRangeLongAttrAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 1394 static void enforcedRangeLongAttrAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
1341 { | 1395 { |
1342 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1396 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1343 TestObjV8Internal::enforcedRangeLongAttrAttributeGetter(info); | 1397 TestObjV8Internal::enforcedRangeLongAttrAttributeGetter(info); |
(...skipping 2234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3578 imp->methodWithEnforceRangeUInt8(value); | 3632 imp->methodWithEnforceRangeUInt8(value); |
3579 } | 3633 } |
3580 | 3634 |
3581 static void methodWithEnforceRangeUInt8MethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 3635 static void methodWithEnforceRangeUInt8MethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
3582 { | 3636 { |
3583 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3637 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
3584 TestObjV8Internal::methodWithEnforceRangeUInt8Method(info); | 3638 TestObjV8Internal::methodWithEnforceRangeUInt8Method(info); |
3585 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3639 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
3586 } | 3640 } |
3587 | 3641 |
| 3642 static void methodWithEnforceRangeInt16Method(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
| 3643 { |
| 3644 if (UNLIKELY(info.Length() < 1)) { |
| 3645 throwTypeError(ExceptionMessages::failedToExecute("methodWithEnforceRang
eInt16", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())),
info.GetIsolate()); |
| 3646 return; |
| 3647 } |
| 3648 TestObj* imp = V8TestObject::toNative(info.Holder()); |
| 3649 V8TRYCATCH_WITH_TYPECHECK_VOID(int, value, toInt16(info[0], EnforceRange, ok
), info.GetIsolate()); |
| 3650 imp->methodWithEnforceRangeInt16(value); |
| 3651 } |
| 3652 |
| 3653 static void methodWithEnforceRangeInt16MethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
| 3654 { |
| 3655 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3656 TestObjV8Internal::methodWithEnforceRangeInt16Method(info); |
| 3657 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3658 } |
| 3659 |
| 3660 static void methodWithEnforceRangeUInt16Method(const v8::FunctionCallbackInfo<v8
::Value>& info) |
| 3661 { |
| 3662 if (UNLIKELY(info.Length() < 1)) { |
| 3663 throwTypeError(ExceptionMessages::failedToExecute("methodWithEnforceRang
eUInt16", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length()))
, info.GetIsolate()); |
| 3664 return; |
| 3665 } |
| 3666 TestObj* imp = V8TestObject::toNative(info.Holder()); |
| 3667 V8TRYCATCH_WITH_TYPECHECK_VOID(unsigned, value, toUInt16(info[0], EnforceRan
ge, ok), info.GetIsolate()); |
| 3668 imp->methodWithEnforceRangeUInt16(value); |
| 3669 } |
| 3670 |
| 3671 static void methodWithEnforceRangeUInt16MethodCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
| 3672 { |
| 3673 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3674 TestObjV8Internal::methodWithEnforceRangeUInt16Method(info); |
| 3675 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3676 } |
| 3677 |
3588 static void methodWithEnforceRangeInt32Method(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 3678 static void methodWithEnforceRangeInt32Method(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
3589 { | 3679 { |
3590 if (UNLIKELY(info.Length() < 1)) { | 3680 if (UNLIKELY(info.Length() < 1)) { |
3591 throwTypeError(ExceptionMessages::failedToExecute("methodWithEnforceRang
eInt32", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())),
info.GetIsolate()); | 3681 throwTypeError(ExceptionMessages::failedToExecute("methodWithEnforceRang
eInt32", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())),
info.GetIsolate()); |
3592 return; | 3682 return; |
3593 } | 3683 } |
3594 TestObj* imp = V8TestObject::toNative(info.Holder()); | 3684 TestObj* imp = V8TestObject::toNative(info.Holder()); |
3595 V8TRYCATCH_WITH_TYPECHECK_VOID(int, value, toInt32(info[0], EnforceRange, ok
), info.GetIsolate()); | 3685 V8TRYCATCH_WITH_TYPECHECK_VOID(int, value, toInt32(info[0], EnforceRange, ok
), info.GetIsolate()); |
3596 imp->methodWithEnforceRangeInt32(value); | 3686 imp->methodWithEnforceRangeInt32(value); |
3597 } | 3687 } |
(...skipping 1333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4931 {"withScriptStateAttribute", TestObjV8Internal::withScriptStateAttributeAttr
ibuteGetterCallback, TestObjV8Internal::withScriptStateAttributeAttributeSetterC
allback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P
ropertyAttribute>(v8::None), 0 /* on instance */}, | 5021 {"withScriptStateAttribute", TestObjV8Internal::withScriptStateAttributeAttr
ibuteGetterCallback, TestObjV8Internal::withScriptStateAttributeAttributeSetterC
allback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P
ropertyAttribute>(v8::None), 0 /* on instance */}, |
4932 {"withExecutionContextAttribute", TestObjV8Internal::withExecutionContextAtt
ributeAttributeGetterCallback, TestObjV8Internal::withExecutionContextAttributeA
ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st
atic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 5022 {"withExecutionContextAttribute", TestObjV8Internal::withExecutionContextAtt
ributeAttributeGetterCallback, TestObjV8Internal::withExecutionContextAttributeA
ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st
atic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
4933 {"withActiveWindowAndFirstWindowAttribute", TestObjV8Internal::withActiveWin
dowAndFirstWindowAttributeAttributeGetterCallback, TestObjV8Internal::withActive
WindowAndFirstWindowAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::A
ccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* o
n instance */}, | 5023 {"withActiveWindowAndFirstWindowAttribute", TestObjV8Internal::withActiveWin
dowAndFirstWindowAttributeAttributeGetterCallback, TestObjV8Internal::withActive
WindowAndFirstWindowAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::A
ccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* o
n instance */}, |
4934 {"withScriptStateAttributeRaises", TestObjV8Internal::withScriptStateAttribu
teRaisesAttributeGetterCallback, TestObjV8Internal::withScriptStateAttributeRais
esAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT),
static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 5024 {"withScriptStateAttributeRaises", TestObjV8Internal::withScriptStateAttribu
teRaisesAttributeGetterCallback, TestObjV8Internal::withScriptStateAttributeRais
esAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT),
static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
4935 {"withExecutionContextAttributeRaises", TestObjV8Internal::withExecutionCont
extAttributeRaisesAttributeGetterCallback, TestObjV8Internal::withExecutionConte
xtAttributeRaisesAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl
>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance *
/}, | 5025 {"withExecutionContextAttributeRaises", TestObjV8Internal::withExecutionCont
extAttributeRaisesAttributeGetterCallback, TestObjV8Internal::withExecutionConte
xtAttributeRaisesAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl
>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance *
/}, |
4936 {"withExecutionContextAndScriptStateAttribute", TestObjV8Internal::withExecu
tionContextAndScriptStateAttributeAttributeGetterCallback, TestObjV8Internal::wi
thExecutionContextAndScriptStateAttributeAttributeSetterCallback, 0, 0, 0, stati
c_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::N
one), 0 /* on instance */}, | 5026 {"withExecutionContextAndScriptStateAttribute", TestObjV8Internal::withExecu
tionContextAndScriptStateAttributeAttributeGetterCallback, TestObjV8Internal::wi
thExecutionContextAndScriptStateAttributeAttributeSetterCallback, 0, 0, 0, stati
c_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::N
one), 0 /* on instance */}, |
4937 {"withExecutionContextAndScriptStateAttributeRaises", TestObjV8Internal::wit
hExecutionContextAndScriptStateAttributeRaisesAttributeGetterCallback, TestObjV8
Internal::withExecutionContextAndScriptStateAttributeRaisesAttributeSetterCallba
ck, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Proper
tyAttribute>(v8::None), 0 /* on instance */}, | 5027 {"withExecutionContextAndScriptStateAttributeRaises", TestObjV8Internal::wit
hExecutionContextAndScriptStateAttributeRaisesAttributeGetterCallback, TestObjV8
Internal::withExecutionContextAndScriptStateAttributeRaisesAttributeSetterCallba
ck, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Proper
tyAttribute>(v8::None), 0 /* on instance */}, |
4938 {"withExecutionContextAndScriptStateWithSpacesAttribute", TestObjV8Internal:
:withExecutionContextAndScriptStateWithSpacesAttributeAttributeGetterCallback, T
estObjV8Internal::withExecutionContextAndScriptStateWithSpacesAttributeAttribute
SetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cas
t<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 5028 {"withExecutionContextAndScriptStateWithSpacesAttribute", TestObjV8Internal:
:withExecutionContextAndScriptStateWithSpacesAttributeAttributeGetterCallback, T
estObjV8Internal::withExecutionContextAndScriptStateWithSpacesAttributeAttribute
SetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cas
t<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
4939 {"enforcedRangeByteAttr", TestObjV8Internal::enforcedRangeByteAttrAttributeG
etterCallback, TestObjV8Internal::enforcedRangeByteAttrAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt
tribute>(v8::None), 0 /* on instance */}, | 5029 {"enforcedRangeByteAttr", TestObjV8Internal::enforcedRangeByteAttrAttributeG
etterCallback, TestObjV8Internal::enforcedRangeByteAttrAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt
tribute>(v8::None), 0 /* on instance */}, |
4940 {"enforcedRangeOctetAttr", TestObjV8Internal::enforcedRangeOctetAttrAttribut
eGetterCallback, TestObjV8Internal::enforcedRangeOctetAttrAttributeSetterCallbac
k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert
yAttribute>(v8::None), 0 /* on instance */}, | 5030 {"enforcedRangeOctetAttr", TestObjV8Internal::enforcedRangeOctetAttrAttribut
eGetterCallback, TestObjV8Internal::enforcedRangeOctetAttrAttributeSetterCallbac
k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert
yAttribute>(v8::None), 0 /* on instance */}, |
| 5031 {"enforcedRangeShortAttr", TestObjV8Internal::enforcedRangeShortAttrAttribut
eGetterCallback, TestObjV8Internal::enforcedRangeShortAttrAttributeSetterCallbac
k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert
yAttribute>(v8::None), 0 /* on instance */}, |
| 5032 {"enforcedRangeUnsignedShortAttr", TestObjV8Internal::enforcedRangeUnsignedS
hortAttrAttributeGetterCallback, TestObjV8Internal::enforcedRangeUnsignedShortAt
trAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT),
static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
4941 {"enforcedRangeLongAttr", TestObjV8Internal::enforcedRangeLongAttrAttributeG
etterCallback, TestObjV8Internal::enforcedRangeLongAttrAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt
tribute>(v8::None), 0 /* on instance */}, | 5033 {"enforcedRangeLongAttr", TestObjV8Internal::enforcedRangeLongAttrAttributeG
etterCallback, TestObjV8Internal::enforcedRangeLongAttrAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt
tribute>(v8::None), 0 /* on instance */}, |
4942 {"enforcedRangeUnsignedLongAttr", TestObjV8Internal::enforcedRangeUnsignedLo
ngAttrAttributeGetterCallback, TestObjV8Internal::enforcedRangeUnsignedLongAttrA
ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st
atic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 5034 {"enforcedRangeUnsignedLongAttr", TestObjV8Internal::enforcedRangeUnsignedLo
ngAttrAttributeGetterCallback, TestObjV8Internal::enforcedRangeUnsignedLongAttrA
ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st
atic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
4943 {"enforcedRangeLongLongAttr", TestObjV8Internal::enforcedRangeLongLongAttrAt
tributeGetterCallback, TestObjV8Internal::enforcedRangeLongLongAttrAttributeSett
erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8
::PropertyAttribute>(v8::None), 0 /* on instance */}, | 5035 {"enforcedRangeLongLongAttr", TestObjV8Internal::enforcedRangeLongLongAttrAt
tributeGetterCallback, TestObjV8Internal::enforcedRangeLongLongAttrAttributeSett
erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8
::PropertyAttribute>(v8::None), 0 /* on instance */}, |
4944 {"enforcedRangeUnsignedLongLongAttr", TestObjV8Internal::enforcedRangeUnsign
edLongLongAttrAttributeGetterCallback, TestObjV8Internal::enforcedRangeUnsignedL
ongLongAttrAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::
DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 5036 {"enforcedRangeUnsignedLongLongAttr", TestObjV8Internal::enforcedRangeUnsign
edLongLongAttrAttributeGetterCallback, TestObjV8Internal::enforcedRangeUnsignedL
ongLongAttrAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::
DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
4945 #if ENABLE(Condition1) | 5037 #if ENABLE(Condition1) |
4946 {"conditionalAttr1", TestObjV8Internal::conditionalAttr1AttributeGetterCallb
ack, TestObjV8Internal::conditionalAttr1AttributeSetterCallback, 0, 0, 0, static
_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No
ne), 0 /* on instance */}, | 5038 {"conditionalAttr1", TestObjV8Internal::conditionalAttr1AttributeGetterCallb
ack, TestObjV8Internal::conditionalAttr1AttributeSetterCallback, 0, 0, 0, static
_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No
ne), 0 /* on instance */}, |
4947 #endif // ENABLE(Condition1) | 5039 #endif // ENABLE(Condition1) |
4948 #if ENABLE(Condition1) && ENABLE(Condition2) | 5040 #if ENABLE(Condition1) && ENABLE(Condition2) |
4949 {"conditionalAttr2", TestObjV8Internal::conditionalAttr2AttributeGetterCallb
ack, TestObjV8Internal::conditionalAttr2AttributeSetterCallback, 0, 0, 0, static
_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No
ne), 0 /* on instance */}, | 5041 {"conditionalAttr2", TestObjV8Internal::conditionalAttr2AttributeGetterCallb
ack, TestObjV8Internal::conditionalAttr2AttributeSetterCallback, 0, 0, 0, static
_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No
ne), 0 /* on instance */}, |
4950 #endif // ENABLE(Condition1) && ENABLE(Condition2) | 5042 #endif // ENABLE(Condition1) && ENABLE(Condition2) |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5024 {"methodWithNonOptionalArgAndTwoOptionalArgs", TestObjV8Internal::methodWith
NonOptionalArgAndTwoOptionalArgsMethodCallback, 0, 1}, | 5116 {"methodWithNonOptionalArgAndTwoOptionalArgs", TestObjV8Internal::methodWith
NonOptionalArgAndTwoOptionalArgsMethodCallback, 0, 1}, |
5025 {"methodWithOptionalString", TestObjV8Internal::methodWithOptionalStringMeth
odCallback, 0, 0}, | 5117 {"methodWithOptionalString", TestObjV8Internal::methodWithOptionalStringMeth
odCallback, 0, 0}, |
5026 {"methodWithOptionalStringIsUndefined", TestObjV8Internal::methodWithOptiona
lStringIsUndefinedMethodCallback, 0, 0}, | 5118 {"methodWithOptionalStringIsUndefined", TestObjV8Internal::methodWithOptiona
lStringIsUndefinedMethodCallback, 0, 0}, |
5027 {"methodWithOptionalStringIsNullString", TestObjV8Internal::methodWithOption
alStringIsNullStringMethodCallback, 0, 0}, | 5119 {"methodWithOptionalStringIsNullString", TestObjV8Internal::methodWithOption
alStringIsNullStringMethodCallback, 0, 0}, |
5028 {"methodWithCallbackArg", TestObjV8Internal::methodWithCallbackArgMethodCall
back, 0, 1}, | 5120 {"methodWithCallbackArg", TestObjV8Internal::methodWithCallbackArgMethodCall
back, 0, 1}, |
5029 {"methodWithNonCallbackArgAndCallbackArg", TestObjV8Internal::methodWithNonC
allbackArgAndCallbackArgMethodCallback, 0, 2}, | 5121 {"methodWithNonCallbackArgAndCallbackArg", TestObjV8Internal::methodWithNonC
allbackArgAndCallbackArgMethodCallback, 0, 2}, |
5030 {"methodWithCallbackAndOptionalArg", TestObjV8Internal::methodWithCallbackAn
dOptionalArgMethodCallback, 0, 0}, | 5122 {"methodWithCallbackAndOptionalArg", TestObjV8Internal::methodWithCallbackAn
dOptionalArgMethodCallback, 0, 0}, |
5031 {"methodWithNullableCallbackArg", TestObjV8Internal::methodWithNullableCallb
ackArgMethodCallback, 0, 1}, | 5123 {"methodWithNullableCallbackArg", TestObjV8Internal::methodWithNullableCallb
ackArgMethodCallback, 0, 1}, |
5032 {"methodWithEnforceRangeInt8", TestObjV8Internal::methodWithEnforceRangeInt8
MethodCallback, 0, 1}, | 5124 {"methodWithEnforceRangeInt8", TestObjV8Internal::methodWithEnforceRangeInt8
MethodCallback, 0, 1}, |
5033 {"methodWithEnforceRangeUInt8", TestObjV8Internal::methodWithEnforceRangeUIn
t8MethodCallback, 0, 1}, | 5125 {"methodWithEnforceRangeUInt8", TestObjV8Internal::methodWithEnforceRangeUIn
t8MethodCallback, 0, 1}, |
| 5126 {"methodWithEnforceRangeInt16", TestObjV8Internal::methodWithEnforceRangeInt
16MethodCallback, 0, 1}, |
| 5127 {"methodWithEnforceRangeUInt16", TestObjV8Internal::methodWithEnforceRangeUI
nt16MethodCallback, 0, 1}, |
5034 {"methodWithEnforceRangeInt32", TestObjV8Internal::methodWithEnforceRangeInt
32MethodCallback, 0, 1}, | 5128 {"methodWithEnforceRangeInt32", TestObjV8Internal::methodWithEnforceRangeInt
32MethodCallback, 0, 1}, |
5035 {"methodWithEnforceRangeUInt32", TestObjV8Internal::methodWithEnforceRangeUI
nt32MethodCallback, 0, 1}, | 5129 {"methodWithEnforceRangeUInt32", TestObjV8Internal::methodWithEnforceRangeUI
nt32MethodCallback, 0, 1}, |
5036 {"methodWithEnforceRangeInt64", TestObjV8Internal::methodWithEnforceRangeInt
64MethodCallback, 0, 1}, | 5130 {"methodWithEnforceRangeInt64", TestObjV8Internal::methodWithEnforceRangeInt
64MethodCallback, 0, 1}, |
5037 {"methodWithEnforceRangeUInt64", TestObjV8Internal::methodWithEnforceRangeUI
nt64MethodCallback, 0, 1}, | 5131 {"methodWithEnforceRangeUInt64", TestObjV8Internal::methodWithEnforceRangeUI
nt64MethodCallback, 0, 1}, |
5038 #if ENABLE(Condition1) | 5132 #if ENABLE(Condition1) |
5039 {"conditionalMethod1", TestObjV8Internal::conditionalMethod1MethodCallback,
0, 0}, | 5133 {"conditionalMethod1", TestObjV8Internal::conditionalMethod1MethodCallback,
0, 0}, |
5040 #endif // ENABLE(Condition1) | 5134 #endif // ENABLE(Condition1) |
5041 #if ENABLE(Condition1) && ENABLE(Condition2) | 5135 #if ENABLE(Condition1) && ENABLE(Condition2) |
5042 {"conditionalMethod2", TestObjV8Internal::conditionalMethod2MethodCallback,
0, 0}, | 5136 {"conditionalMethod2", TestObjV8Internal::conditionalMethod2MethodCallback,
0, 0}, |
5043 #endif // ENABLE(Condition1) && ENABLE(Condition2) | 5137 #endif // ENABLE(Condition1) && ENABLE(Condition2) |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5260 V8DOMWrapper::associateObjectWithWrapper<V8TestObject>(impl, &wrapperTypeInf
o, wrapper, isolate, WrapperConfiguration::Independent); | 5354 V8DOMWrapper::associateObjectWithWrapper<V8TestObject>(impl, &wrapperTypeInf
o, wrapper, isolate, WrapperConfiguration::Independent); |
5261 return wrapper; | 5355 return wrapper; |
5262 } | 5356 } |
5263 | 5357 |
5264 void V8TestObject::derefObject(void* object) | 5358 void V8TestObject::derefObject(void* object) |
5265 { | 5359 { |
5266 fromInternalPointer(object)->deref(); | 5360 fromInternalPointer(object)->deref(); |
5267 } | 5361 } |
5268 | 5362 |
5269 } // namespace WebCore | 5363 } // namespace WebCore |
OLD | NEW |