OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! | 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! |
6 | 6 |
7 #include "config.h" | 7 #include "config.h" |
8 #include "V8TestObject.h" | 8 #include "V8TestObject.h" |
9 | 9 |
10 #include "bindings/core/v8/V8HTMLCollection.h" | 10 #include "bindings/core/v8/V8HTMLCollection.h" |
(...skipping 1354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1365 { | 1365 { |
1366 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1366 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
1367 TestObjectV8Internal::readonlyEventTargetAttributeAttributeGetter(info); | 1367 TestObjectV8Internal::readonlyEventTargetAttributeAttributeGetter(info); |
1368 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1368 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1369 } | 1369 } |
1370 | 1370 |
1371 static void readonlyEventTargetOrNullAttributeAttributeGetter(const v8::Property
CallbackInfo<v8::Value>& info) | 1371 static void readonlyEventTargetOrNullAttributeAttributeGetter(const v8::Property
CallbackInfo<v8::Value>& info) |
1372 { | 1372 { |
1373 v8::Handle<v8::Object> holder = info.Holder(); | 1373 v8::Handle<v8::Object> holder = info.Holder(); |
1374 TestObject* impl = V8TestObject::toNative(holder); | 1374 TestObject* impl = V8TestObject::toNative(holder); |
1375 bool isNull = false; | 1375 RefPtrWillBeRawPtr<EventTarget> cppValue(impl->readonlyEventTargetOrNullAttr
ibute()); |
1376 RefPtrWillBeRawPtr<EventTarget> cppValue(impl->readonlyEventTargetOrNullAttr
ibute(isNull)); | 1376 if (!cppValue) { |
1377 if (isNull) { | |
1378 v8SetReturnValueNull(info); | 1377 v8SetReturnValueNull(info); |
1379 return; | 1378 return; |
1380 } | 1379 } |
1381 v8SetReturnValueFast(info, WTF::getPtr(cppValue.release()), impl); | 1380 v8SetReturnValueFast(info, WTF::getPtr(cppValue.release()), impl); |
1382 } | 1381 } |
1383 | 1382 |
1384 static void readonlyEventTargetOrNullAttributeAttributeGetterCallback(v8::Local<
v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1383 static void readonlyEventTargetOrNullAttributeAttributeGetterCallback(v8::Local<
v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
1385 { | 1384 { |
1386 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1385 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
1387 TestObjectV8Internal::readonlyEventTargetOrNullAttributeAttributeGetter(info
); | 1386 TestObjectV8Internal::readonlyEventTargetOrNullAttributeAttributeGetter(info
); |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1585 { | 1584 { |
1586 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1585 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
1587 TestObjectV8Internal::longOrNullAttributeAttributeSetter(v8Value, info); | 1586 TestObjectV8Internal::longOrNullAttributeAttributeSetter(v8Value, info); |
1588 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1587 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1589 } | 1588 } |
1590 | 1589 |
1591 static void testInterfaceOrNullAttributeAttributeGetter(const v8::PropertyCallba
ckInfo<v8::Value>& info) | 1590 static void testInterfaceOrNullAttributeAttributeGetter(const v8::PropertyCallba
ckInfo<v8::Value>& info) |
1592 { | 1591 { |
1593 v8::Handle<v8::Object> holder = info.Holder(); | 1592 v8::Handle<v8::Object> holder = info.Holder(); |
1594 TestObject* impl = V8TestObject::toNative(holder); | 1593 TestObject* impl = V8TestObject::toNative(holder); |
1595 bool isNull = false; | 1594 RefPtr<TestInterfaceImplementation> cppValue(impl->testInterfaceOrNullAttrib
ute()); |
1596 RefPtr<TestInterfaceImplementation> cppValue(impl->testInterfaceOrNullAttrib
ute(isNull)); | 1595 if (!cppValue) { |
1597 if (isNull) { | |
1598 v8SetReturnValueNull(info); | 1596 v8SetReturnValueNull(info); |
1599 return; | 1597 return; |
1600 } | 1598 } |
1601 v8SetReturnValueFast(info, WTF::getPtr(cppValue.release()), impl); | 1599 v8SetReturnValueFast(info, WTF::getPtr(cppValue.release()), impl); |
1602 } | 1600 } |
1603 | 1601 |
1604 static void testInterfaceOrNullAttributeAttributeGetterCallback(v8::Local<v8::St
ring>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1602 static void testInterfaceOrNullAttributeAttributeGetterCallback(v8::Local<v8::St
ring>, const v8::PropertyCallbackInfo<v8::Value>& info) |
1605 { | 1603 { |
1606 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1604 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
1607 TestObjectV8Internal::testInterfaceOrNullAttributeAttributeGetter(info); | 1605 TestObjectV8Internal::testInterfaceOrNullAttributeAttributeGetter(info); |
(...skipping 2761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4369 impl->setTreatReturnedNullStringAsUndefinedScalarValueStringAttribute(cppVal
ue); | 4367 impl->setTreatReturnedNullStringAsUndefinedScalarValueStringAttribute(cppVal
ue); |
4370 } | 4368 } |
4371 | 4369 |
4372 static void treatReturnedNullStringAsUndefinedScalarValueStringAttributeAttribut
eSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::P
ropertyCallbackInfo<void>& info) | 4370 static void treatReturnedNullStringAsUndefinedScalarValueStringAttributeAttribut
eSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::P
ropertyCallbackInfo<void>& info) |
4373 { | 4371 { |
4374 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4372 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4375 TestObjectV8Internal::treatReturnedNullStringAsUndefinedScalarValueStringAtt
ributeAttributeSetter(v8Value, info); | 4373 TestObjectV8Internal::treatReturnedNullStringAsUndefinedScalarValueStringAtt
ributeAttributeSetter(v8Value, info); |
4376 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4374 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4377 } | 4375 } |
4378 | 4376 |
4379 static void typeCheckingInterfaceNullableStringFloatAttributeAttributeGetter(con
st v8::PropertyCallbackInfo<v8::Value>& info) | 4377 static void typeCheckingInterfaceFloatAttributeAttributeGetter(const v8::Propert
yCallbackInfo<v8::Value>& info) |
4380 { | 4378 { |
4381 v8::Handle<v8::Object> holder = info.Holder(); | 4379 v8::Handle<v8::Object> holder = info.Holder(); |
4382 TestObject* impl = V8TestObject::toNative(holder); | 4380 TestObject* impl = V8TestObject::toNative(holder); |
4383 v8SetReturnValue(info, impl->typeCheckingInterfaceNullableStringFloatAttribu
te()); | 4381 v8SetReturnValue(info, impl->typeCheckingInterfaceFloatAttribute()); |
4384 } | 4382 } |
4385 | 4383 |
4386 static void typeCheckingInterfaceNullableStringFloatAttributeAttributeGetterCall
back(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4384 static void typeCheckingInterfaceFloatAttributeAttributeGetterCallback(v8::Local
<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
4387 { | 4385 { |
4388 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4386 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4389 TestObjectV8Internal::typeCheckingInterfaceNullableStringFloatAttributeAttri
buteGetter(info); | 4387 TestObjectV8Internal::typeCheckingInterfaceFloatAttributeAttributeGetter(inf
o); |
4390 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4388 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4391 } | 4389 } |
4392 | 4390 |
4393 static void typeCheckingInterfaceNullableStringFloatAttributeAttributeSetter(v8:
:Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4391 static void typeCheckingInterfaceFloatAttributeAttributeSetter(v8::Local<v8::Val
ue> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4394 { | 4392 { |
4395 v8::Handle<v8::Object> holder = info.Holder(); | 4393 v8::Handle<v8::Object> holder = info.Holder(); |
4396 TestObject* impl = V8TestObject::toNative(holder); | 4394 TestObject* impl = V8TestObject::toNative(holder); |
4397 TONATIVE_VOID(float, cppValue, static_cast<float>(v8Value->NumberValue())); | 4395 TONATIVE_VOID(float, cppValue, static_cast<float>(v8Value->NumberValue())); |
4398 impl->setTypeCheckingInterfaceNullableStringFloatAttribute(cppValue); | 4396 impl->setTypeCheckingInterfaceFloatAttribute(cppValue); |
4399 } | 4397 } |
4400 | 4398 |
4401 static void typeCheckingInterfaceNullableStringFloatAttributeAttributeSetterCall
back(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCall
backInfo<void>& info) | 4399 static void typeCheckingInterfaceFloatAttributeAttributeSetterCallback(v8::Local
<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>
& info) |
4402 { | 4400 { |
4403 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4401 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4404 TestObjectV8Internal::typeCheckingInterfaceNullableStringFloatAttributeAttri
buteSetter(v8Value, info); | 4402 TestObjectV8Internal::typeCheckingInterfaceFloatAttributeAttributeSetter(v8V
alue, info); |
4405 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4403 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4406 } | 4404 } |
4407 | 4405 |
4408 static void typeCheckingInterfaceTestInterfaceAttributeAttributeGetter(const v8:
:PropertyCallbackInfo<v8::Value>& info) | 4406 static void typeCheckingInterfaceTestInterfaceAttributeAttributeGetter(const v8:
:PropertyCallbackInfo<v8::Value>& info) |
4409 { | 4407 { |
4410 v8::Handle<v8::Object> holder = info.Holder(); | 4408 v8::Handle<v8::Object> holder = info.Holder(); |
4411 TestObject* impl = V8TestObject::toNative(holder); | 4409 TestObject* impl = V8TestObject::toNative(holder); |
4412 v8SetReturnValueFast(info, WTF::getPtr(impl->typeCheckingInterfaceTestInterf
aceAttribute()), impl); | 4410 v8SetReturnValueFast(info, WTF::getPtr(impl->typeCheckingInterfaceTestInterf
aceAttribute()), impl); |
4413 } | 4411 } |
4414 | 4412 |
(...skipping 18 matching lines...) Expand all Loading... |
4433 impl->setTypeCheckingInterfaceTestInterfaceAttribute(WTF::getPtr(cppValue)); | 4431 impl->setTypeCheckingInterfaceTestInterfaceAttribute(WTF::getPtr(cppValue)); |
4434 } | 4432 } |
4435 | 4433 |
4436 static void typeCheckingInterfaceTestInterfaceAttributeAttributeSetterCallback(v
8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackIn
fo<void>& info) | 4434 static void typeCheckingInterfaceTestInterfaceAttributeAttributeSetterCallback(v
8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackIn
fo<void>& info) |
4437 { | 4435 { |
4438 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4436 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4439 TestObjectV8Internal::typeCheckingInterfaceTestInterfaceAttributeAttributeSe
tter(v8Value, info); | 4437 TestObjectV8Internal::typeCheckingInterfaceTestInterfaceAttributeAttributeSe
tter(v8Value, info); |
4440 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4438 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4441 } | 4439 } |
4442 | 4440 |
4443 static void typeCheckingNullableTestInterfaceOrNullAttributeAttributeGetter(cons
t v8::PropertyCallbackInfo<v8::Value>& info) | 4441 static void typeCheckingInterfaceTestInterfaceOrNullAttributeAttributeGetter(con
st v8::PropertyCallbackInfo<v8::Value>& info) |
4444 { | 4442 { |
4445 v8::Handle<v8::Object> holder = info.Holder(); | 4443 v8::Handle<v8::Object> holder = info.Holder(); |
4446 TestObject* impl = V8TestObject::toNative(holder); | 4444 TestObject* impl = V8TestObject::toNative(holder); |
4447 RefPtr<TestInterfaceImplementation> cppValue(impl->typeCheckingNullableTestI
nterfaceOrNullAttribute()); | 4445 RefPtr<TestInterfaceImplementation> cppValue(impl->typeCheckingInterfaceTest
InterfaceOrNullAttribute()); |
4448 if (!cppValue) { | 4446 if (!cppValue) { |
4449 v8SetReturnValueNull(info); | 4447 v8SetReturnValueNull(info); |
4450 return; | 4448 return; |
4451 } | |
4452 v8SetReturnValueFast(info, WTF::getPtr(cppValue.release()), impl); | |
4453 } | |
4454 | |
4455 static void typeCheckingNullableTestInterfaceOrNullAttributeAttributeGetterCallb
ack(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | |
4456 { | |
4457 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | |
4458 TestObjectV8Internal::typeCheckingNullableTestInterfaceOrNullAttributeAttrib
uteGetter(info); | |
4459 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | |
4460 } | |
4461 | |
4462 static void typeCheckingNullableTestInterfaceOrNullAttributeAttributeSetter(v8::
Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | |
4463 { | |
4464 v8::Handle<v8::Object> holder = info.Holder(); | |
4465 ExceptionState exceptionState(ExceptionState::SetterContext, "typeCheckingNu
llableTestInterfaceOrNullAttribute", "TestObject", holder, info.GetIsolate()); | |
4466 TestObject* impl = V8TestObject::toNative(holder); | |
4467 TONATIVE_VOID(TestInterfaceImplementation*, cppValue, V8TestInterface::toNat
iveWithTypeCheck(info.GetIsolate(), v8Value)); | |
4468 impl->setTypeCheckingNullableTestInterfaceOrNullAttribute(WTF::getPtr(cppVal
ue)); | |
4469 } | |
4470 | |
4471 static void typeCheckingNullableTestInterfaceOrNullAttributeAttributeSetterCallb
ack(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallb
ackInfo<void>& info) | |
4472 { | |
4473 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | |
4474 TestObjectV8Internal::typeCheckingNullableTestInterfaceOrNullAttributeAttrib
uteSetter(v8Value, info); | |
4475 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | |
4476 } | |
4477 | |
4478 static void typeCheckingInterfaceNullableTestInterfaceOrNullAttributeAttributeGe
tter(const v8::PropertyCallbackInfo<v8::Value>& info) | |
4479 { | |
4480 v8::Handle<v8::Object> holder = info.Holder(); | |
4481 TestObject* impl = V8TestObject::toNative(holder); | |
4482 RefPtr<TestInterfaceImplementation> cppValue(impl->typeCheckingInterfaceNull
ableTestInterfaceOrNullAttribute()); | |
4483 if (!cppValue) { | |
4484 v8SetReturnValueNull(info); | |
4485 return; | |
4486 } | 4449 } |
4487 v8SetReturnValueFast(info, WTF::getPtr(cppValue.release()), impl); | 4450 v8SetReturnValueFast(info, WTF::getPtr(cppValue.release()), impl); |
4488 } | 4451 } |
4489 | 4452 |
4490 static void typeCheckingInterfaceNullableTestInterfaceOrNullAttributeAttributeGe
tterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& i
nfo) | 4453 static void typeCheckingInterfaceTestInterfaceOrNullAttributeAttributeGetterCall
back(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
4491 { | 4454 { |
4492 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4455 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4493 TestObjectV8Internal::typeCheckingInterfaceNullableTestInterfaceOrNullAttrib
uteAttributeGetter(info); | 4456 TestObjectV8Internal::typeCheckingInterfaceTestInterfaceOrNullAttributeAttri
buteGetter(info); |
4494 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4457 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4495 } | 4458 } |
4496 | 4459 |
4497 static void typeCheckingInterfaceNullableTestInterfaceOrNullAttributeAttributeSe
tter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4460 static void typeCheckingInterfaceTestInterfaceOrNullAttributeAttributeSetter(v8:
:Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4498 { | 4461 { |
4499 v8::Handle<v8::Object> holder = info.Holder(); | 4462 v8::Handle<v8::Object> holder = info.Holder(); |
4500 ExceptionState exceptionState(ExceptionState::SetterContext, "typeCheckingIn
terfaceNullableTestInterfaceOrNullAttribute", "TestObject", holder, info.GetIsol
ate()); | 4463 ExceptionState exceptionState(ExceptionState::SetterContext, "typeCheckingIn
terfaceTestInterfaceOrNullAttribute", "TestObject", holder, info.GetIsolate()); |
4501 if (!isUndefinedOrNull(v8Value) && !V8TestInterface::hasInstance(v8Value, in
fo.GetIsolate())) { | 4464 if (!isUndefinedOrNull(v8Value) && !V8TestInterface::hasInstance(v8Value, in
fo.GetIsolate())) { |
4502 exceptionState.throwTypeError("The provided value is not of type 'TestIn
terface'."); | 4465 exceptionState.throwTypeError("The provided value is not of type 'TestIn
terface'."); |
4503 exceptionState.throwIfNeeded(); | 4466 exceptionState.throwIfNeeded(); |
4504 return; | 4467 return; |
4505 } | 4468 } |
4506 TestObject* impl = V8TestObject::toNative(holder); | 4469 TestObject* impl = V8TestObject::toNative(holder); |
4507 TONATIVE_VOID(TestInterfaceImplementation*, cppValue, V8TestInterface::toNat
iveWithTypeCheck(info.GetIsolate(), v8Value)); | 4470 TONATIVE_VOID(TestInterfaceImplementation*, cppValue, V8TestInterface::toNat
iveWithTypeCheck(info.GetIsolate(), v8Value)); |
4508 impl->setTypeCheckingInterfaceNullableTestInterfaceOrNullAttribute(WTF::getP
tr(cppValue)); | 4471 impl->setTypeCheckingInterfaceTestInterfaceOrNullAttribute(WTF::getPtr(cppVa
lue)); |
4509 } | 4472 } |
4510 | 4473 |
4511 static void typeCheckingInterfaceNullableTestInterfaceOrNullAttributeAttributeSe
tterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::Prop
ertyCallbackInfo<void>& info) | 4474 static void typeCheckingInterfaceTestInterfaceOrNullAttributeAttributeSetterCall
back(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCall
backInfo<void>& info) |
4512 { | 4475 { |
4513 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4476 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4514 TestObjectV8Internal::typeCheckingInterfaceNullableTestInterfaceOrNullAttrib
uteAttributeSetter(v8Value, info); | 4477 TestObjectV8Internal::typeCheckingInterfaceTestInterfaceOrNullAttributeAttri
buteSetter(v8Value, info); |
4515 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4478 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4516 } | 4479 } |
4517 | 4480 |
4518 static void urlStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8:
:Value>& info) | 4481 static void urlStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8:
:Value>& info) |
4519 { | 4482 { |
4520 v8::Handle<v8::Object> holder = info.Holder(); | 4483 v8::Handle<v8::Object> holder = info.Holder(); |
4521 TestObject* impl = V8TestObject::toNative(holder); | 4484 TestObject* impl = V8TestObject::toNative(holder); |
4522 v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::urlstringattri
buteAttr), info.GetIsolate()); | 4485 v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::urlstringattri
buteAttr), info.GetIsolate()); |
4523 } | 4486 } |
4524 | 4487 |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4741 { | 4704 { |
4742 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4705 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4743 TestObjectV8Internal::testInterfaceGarbageCollectedAttributeAttributeSetter(
v8Value, info); | 4706 TestObjectV8Internal::testInterfaceGarbageCollectedAttributeAttributeSetter(
v8Value, info); |
4744 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4707 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4745 } | 4708 } |
4746 | 4709 |
4747 static void testInterfaceGarbageCollectedOrNullAttributeAttributeGetter(const v8
::PropertyCallbackInfo<v8::Value>& info) | 4710 static void testInterfaceGarbageCollectedOrNullAttributeAttributeGetter(const v8
::PropertyCallbackInfo<v8::Value>& info) |
4748 { | 4711 { |
4749 v8::Handle<v8::Object> holder = info.Holder(); | 4712 v8::Handle<v8::Object> holder = info.Holder(); |
4750 TestObject* impl = V8TestObject::toNative(holder); | 4713 TestObject* impl = V8TestObject::toNative(holder); |
4751 bool isNull = false; | 4714 RawPtr<TestInterfaceGarbageCollected> cppValue(impl->testInterfaceGarbageCol
lectedOrNullAttribute()); |
4752 RawPtr<TestInterfaceGarbageCollected> cppValue(impl->testInterfaceGarbageCol
lectedOrNullAttribute(isNull)); | 4715 if (!cppValue) { |
4753 if (isNull) { | |
4754 v8SetReturnValueNull(info); | 4716 v8SetReturnValueNull(info); |
4755 return; | 4717 return; |
4756 } | 4718 } |
4757 v8SetReturnValueFast(info, WTF::getPtr(cppValue.release()), impl); | 4719 v8SetReturnValueFast(info, WTF::getPtr(cppValue.release()), impl); |
4758 } | 4720 } |
4759 | 4721 |
4760 static void testInterfaceGarbageCollectedOrNullAttributeAttributeGetterCallback(
v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4722 static void testInterfaceGarbageCollectedOrNullAttributeAttributeGetterCallback(
v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
4761 { | 4723 { |
4762 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4724 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4763 TestObjectV8Internal::testInterfaceGarbageCollectedOrNullAttributeAttributeG
etter(info); | 4725 TestObjectV8Internal::testInterfaceGarbageCollectedOrNullAttributeAttributeG
etter(info); |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4805 { | 4767 { |
4806 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4768 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4807 TestObjectV8Internal::testInterfaceWillBeGarbageCollectedAttributeAttributeS
etter(v8Value, info); | 4769 TestObjectV8Internal::testInterfaceWillBeGarbageCollectedAttributeAttributeS
etter(v8Value, info); |
4808 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4770 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4809 } | 4771 } |
4810 | 4772 |
4811 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeGetter(co
nst v8::PropertyCallbackInfo<v8::Value>& info) | 4773 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeGetter(co
nst v8::PropertyCallbackInfo<v8::Value>& info) |
4812 { | 4774 { |
4813 v8::Handle<v8::Object> holder = info.Holder(); | 4775 v8::Handle<v8::Object> holder = info.Holder(); |
4814 TestObject* impl = V8TestObject::toNative(holder); | 4776 TestObject* impl = V8TestObject::toNative(holder); |
4815 bool isNull = false; | 4777 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> cppValue(impl->testI
nterfaceWillBeGarbageCollectedOrNullAttribute()); |
4816 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> cppValue(impl->testI
nterfaceWillBeGarbageCollectedOrNullAttribute(isNull)); | 4778 if (!cppValue) { |
4817 if (isNull) { | |
4818 v8SetReturnValueNull(info); | 4779 v8SetReturnValueNull(info); |
4819 return; | 4780 return; |
4820 } | 4781 } |
4821 v8SetReturnValueFast(info, WTF::getPtr(cppValue.release()), impl); | 4782 v8SetReturnValueFast(info, WTF::getPtr(cppValue.release()), impl); |
4822 } | 4783 } |
4823 | 4784 |
4824 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeGetterCal
lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4785 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeGetterCal
lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
4825 { | 4786 { |
4826 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4787 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4827 TestObjectV8Internal::testInterfaceWillBeGarbageCollectedOrNullAttributeAttr
ibuteGetter(info); | 4788 TestObjectV8Internal::testInterfaceWillBeGarbageCollectedOrNullAttributeAttr
ibuteGetter(info); |
(...skipping 4693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9521 impl->typeCheckingInterfaceVoidMethodTestInterfaceEmptyVariadicArg(testInter
faceEmptyArg); | 9482 impl->typeCheckingInterfaceVoidMethodTestInterfaceEmptyVariadicArg(testInter
faceEmptyArg); |
9522 } | 9483 } |
9523 | 9484 |
9524 static void typeCheckingInterfaceVoidMethodTestInterfaceEmptyVariadicArgMethodCa
llback(const v8::FunctionCallbackInfo<v8::Value>& info) | 9485 static void typeCheckingInterfaceVoidMethodTestInterfaceEmptyVariadicArgMethodCa
llback(const v8::FunctionCallbackInfo<v8::Value>& info) |
9525 { | 9486 { |
9526 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 9487 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
9527 TestObjectV8Internal::typeCheckingInterfaceVoidMethodTestInterfaceEmptyVaria
dicArgMethod(info); | 9488 TestObjectV8Internal::typeCheckingInterfaceVoidMethodTestInterfaceEmptyVaria
dicArgMethod(info); |
9528 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9489 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
9529 } | 9490 } |
9530 | 9491 |
9531 static void typeCheckingNullableVoidMethodTestInterfaceEmptyOrNullArgMethod(cons
t v8::FunctionCallbackInfo<v8::Value>& info) | |
9532 { | |
9533 if (UNLIKELY(info.Length() < 1)) { | |
9534 throwMinimumArityTypeErrorForMethod("typeCheckingNullableVoidMethodTestI
nterfaceEmptyOrNullArg", "TestObject", 1, info.Length(), info.GetIsolate()); | |
9535 return; | |
9536 } | |
9537 TestObject* impl = V8TestObject::toNative(info.Holder()); | |
9538 TestInterfaceEmpty* testInterfaceEmptyOrNullArg; | |
9539 { | |
9540 v8::TryCatch block; | |
9541 V8RethrowTryCatchScope rethrow(block); | |
9542 TONATIVE_VOID_INTERNAL(testInterfaceEmptyOrNullArg, V8TestInterfaceEmpty
::toNativeWithTypeCheck(info.GetIsolate(), info[0])); | |
9543 } | |
9544 impl->typeCheckingNullableVoidMethodTestInterfaceEmptyOrNullArg(testInterfac
eEmptyOrNullArg); | |
9545 } | |
9546 | |
9547 static void typeCheckingNullableVoidMethodTestInterfaceEmptyOrNullArgMethodCallb
ack(const v8::FunctionCallbackInfo<v8::Value>& info) | |
9548 { | |
9549 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | |
9550 TestObjectV8Internal::typeCheckingNullableVoidMethodTestInterfaceEmptyOrNull
ArgMethod(info); | |
9551 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | |
9552 } | |
9553 | |
9554 static void typeCheckingInterfaceNullableVoidMethodTestInterfaceEmptyOrNullArgMe
thod(const v8::FunctionCallbackInfo<v8::Value>& info) | |
9555 { | |
9556 if (UNLIKELY(info.Length() < 1)) { | |
9557 throwMinimumArityTypeErrorForMethod("typeCheckingInterfaceNullableVoidMe
thodTestInterfaceEmptyOrNullArg", "TestObject", 1, info.Length(), info.GetIsolat
e()); | |
9558 return; | |
9559 } | |
9560 TestObject* impl = V8TestObject::toNative(info.Holder()); | |
9561 TestInterfaceEmpty* testInterfaceEmptyOrNullArg; | |
9562 { | |
9563 v8::TryCatch block; | |
9564 V8RethrowTryCatchScope rethrow(block); | |
9565 if (info.Length() > 0 && !isUndefinedOrNull(info[0]) && !V8TestInterface
Empty::hasInstance(info[0], info.GetIsolate())) { | |
9566 throwTypeError(ExceptionMessages::failedToExecute("typeCheckingInter
faceNullableVoidMethodTestInterfaceEmptyOrNullArg", "TestObject", "parameter 1 i
s not of type 'TestInterfaceEmpty'."), info.GetIsolate()); | |
9567 return; | |
9568 } | |
9569 TONATIVE_VOID_INTERNAL(testInterfaceEmptyOrNullArg, V8TestInterfaceEmpty
::toNativeWithTypeCheck(info.GetIsolate(), info[0])); | |
9570 } | |
9571 impl->typeCheckingInterfaceNullableVoidMethodTestInterfaceEmptyOrNullArg(tes
tInterfaceEmptyOrNullArg); | |
9572 } | |
9573 | |
9574 static void typeCheckingInterfaceNullableVoidMethodTestInterfaceEmptyOrNullArgMe
thodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) | |
9575 { | |
9576 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | |
9577 TestObjectV8Internal::typeCheckingInterfaceNullableVoidMethodTestInterfaceEm
ptyOrNullArgMethod(info); | |
9578 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | |
9579 } | |
9580 | |
9581 static void typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMethod(const v8::
FunctionCallbackInfo<v8::Value>& info) | 9492 static void typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMethod(const v8::
FunctionCallbackInfo<v8::Value>& info) |
9582 { | 9493 { |
9583 if (UNLIKELY(info.Length() < 2)) { | 9494 if (UNLIKELY(info.Length() < 2)) { |
9584 throwMinimumArityTypeErrorForMethod("typeCheckingUnrestrictedVoidMethodF
loatArgDoubleArg", "TestObject", 2, info.Length(), info.GetIsolate()); | 9495 throwMinimumArityTypeErrorForMethod("typeCheckingUnrestrictedVoidMethodF
loatArgDoubleArg", "TestObject", 2, info.Length(), info.GetIsolate()); |
9585 return; | 9496 return; |
9586 } | 9497 } |
9587 TestObject* impl = V8TestObject::toNative(info.Holder()); | 9498 TestObject* impl = V8TestObject::toNative(info.Holder()); |
9588 float floatArg; | 9499 float floatArg; |
9589 double doubleArg; | 9500 double doubleArg; |
9590 { | 9501 { |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9868 {"locationReplaceable", TestObjectV8Internal::locationReplaceableAttributeGe
tterCallback, TestObjectV8Internal::locationReplaceableAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt
tribute>(v8::None), 0 /* on instance */}, | 9779 {"locationReplaceable", TestObjectV8Internal::locationReplaceableAttributeGe
tterCallback, TestObjectV8Internal::locationReplaceableAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt
tribute>(v8::None), 0 /* on instance */}, |
9869 {"setterCallWithActiveWindowAndFirstWindowStringAttribute", TestObjectV8Inte
rnal::setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeGetterCall
back, TestObjectV8Internal::setterCallWithActiveWindowAndFirstWindowStringAttrib
uteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT)
, static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 9780 {"setterCallWithActiveWindowAndFirstWindowStringAttribute", TestObjectV8Inte
rnal::setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeGetterCall
back, TestObjectV8Internal::setterCallWithActiveWindowAndFirstWindowStringAttrib
uteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT)
, static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
9870 {"setterCallWithExecutionContextStringAttribute", TestObjectV8Internal::sett
erCallWithExecutionContextStringAttributeAttributeGetterCallback, TestObjectV8In
ternal::setterCallWithExecutionContextStringAttributeAttributeSetterCallback, 0,
0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttr
ibute>(v8::None), 0 /* on instance */}, | 9781 {"setterCallWithExecutionContextStringAttribute", TestObjectV8Internal::sett
erCallWithExecutionContextStringAttributeAttributeGetterCallback, TestObjectV8In
ternal::setterCallWithExecutionContextStringAttributeAttributeSetterCallback, 0,
0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttr
ibute>(v8::None), 0 /* on instance */}, |
9871 {"treatNullAsNullStringStringAttribute", TestObjectV8Internal::treatNullAsNu
llStringStringAttributeAttributeGetterCallback, TestObjectV8Internal::treatNullA
sNullStringStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Acce
ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i
nstance */}, | 9782 {"treatNullAsNullStringStringAttribute", TestObjectV8Internal::treatNullAsNu
llStringStringAttributeAttributeGetterCallback, TestObjectV8Internal::treatNullA
sNullStringStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Acce
ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i
nstance */}, |
9872 {"treatReturnedNullStringAsNullStringAttribute", TestObjectV8Internal::treat
ReturnedNullStringAsNullStringAttributeAttributeGetterCallback, TestObjectV8Inte
rnal::treatReturnedNullStringAsNullStringAttributeAttributeSetterCallback, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribu
te>(v8::None), 0 /* on instance */}, | 9783 {"treatReturnedNullStringAsNullStringAttribute", TestObjectV8Internal::treat
ReturnedNullStringAsNullStringAttributeAttributeGetterCallback, TestObjectV8Inte
rnal::treatReturnedNullStringAsNullStringAttributeAttributeSetterCallback, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribu
te>(v8::None), 0 /* on instance */}, |
9873 {"treatReturnedNullStringAsUndefinedStringAttribute", TestObjectV8Internal::
treatReturnedNullStringAsUndefinedStringAttributeAttributeGetterCallback, TestOb
jectV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAttributeSetter
Callback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::
PropertyAttribute>(v8::None), 0 /* on instance */}, | 9784 {"treatReturnedNullStringAsUndefinedStringAttribute", TestObjectV8Internal::
treatReturnedNullStringAsUndefinedStringAttributeAttributeGetterCallback, TestOb
jectV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAttributeSetter
Callback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::
PropertyAttribute>(v8::None), 0 /* on instance */}, |
9874 {"treatReturnedNullStringAsNullByteStringAttribute", TestObjectV8Internal::t
reatReturnedNullStringAsNullByteStringAttributeAttributeGetterCallback, TestObje
ctV8Internal::treatReturnedNullStringAsNullByteStringAttributeAttributeSetterCal
lback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pro
pertyAttribute>(v8::None), 0 /* on instance */}, | 9785 {"treatReturnedNullStringAsNullByteStringAttribute", TestObjectV8Internal::t
reatReturnedNullStringAsNullByteStringAttributeAttributeGetterCallback, TestObje
ctV8Internal::treatReturnedNullStringAsNullByteStringAttributeAttributeSetterCal
lback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pro
pertyAttribute>(v8::None), 0 /* on instance */}, |
9875 {"treatReturnedNullStringAsUndefinedByteStringAttribute", TestObjectV8Intern
al::treatReturnedNullStringAsUndefinedByteStringAttributeAttributeGetterCallback
, TestObjectV8Internal::treatReturnedNullStringAsUndefinedByteStringAttributeAtt
ributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stat
ic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 9786 {"treatReturnedNullStringAsUndefinedByteStringAttribute", TestObjectV8Intern
al::treatReturnedNullStringAsUndefinedByteStringAttributeAttributeGetterCallback
, TestObjectV8Internal::treatReturnedNullStringAsUndefinedByteStringAttributeAtt
ributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stat
ic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
9876 {"treatReturnedNullStringAsNullScalarValueStringAttribute", TestObjectV8Inte
rnal::treatReturnedNullStringAsNullScalarValueStringAttributeAttributeGetterCall
back, TestObjectV8Internal::treatReturnedNullStringAsNullScalarValueStringAttrib
uteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT)
, static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 9787 {"treatReturnedNullStringAsNullScalarValueStringAttribute", TestObjectV8Inte
rnal::treatReturnedNullStringAsNullScalarValueStringAttributeAttributeGetterCall
back, TestObjectV8Internal::treatReturnedNullStringAsNullScalarValueStringAttrib
uteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT)
, static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
9877 {"treatReturnedNullStringAsUndefinedScalarValueStringAttribute", TestObjectV
8Internal::treatReturnedNullStringAsUndefinedScalarValueStringAttributeAttribute
GetterCallback, TestObjectV8Internal::treatReturnedNullStringAsUndefinedScalarVa
lueStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessContro
l>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance
*/}, | 9788 {"treatReturnedNullStringAsUndefinedScalarValueStringAttribute", TestObjectV
8Internal::treatReturnedNullStringAsUndefinedScalarValueStringAttributeAttribute
GetterCallback, TestObjectV8Internal::treatReturnedNullStringAsUndefinedScalarVa
lueStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessContro
l>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance
*/}, |
9878 {"typeCheckingInterfaceNullableStringFloatAttribute", TestObjectV8Internal::
typeCheckingInterfaceNullableStringFloatAttributeAttributeGetterCallback, TestOb
jectV8Internal::typeCheckingInterfaceNullableStringFloatAttributeAttributeSetter
Callback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::
PropertyAttribute>(v8::None), 0 /* on instance */}, | 9789 {"typeCheckingInterfaceFloatAttribute", TestObjectV8Internal::typeCheckingIn
terfaceFloatAttributeAttributeGetterCallback, TestObjectV8Internal::typeChecking
InterfaceFloatAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessC
ontrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on inst
ance */}, |
9879 {"typeCheckingInterfaceTestInterfaceAttribute", TestObjectV8Internal::typeCh
eckingInterfaceTestInterfaceAttributeAttributeGetterCallback, TestObjectV8Intern
al::typeCheckingInterfaceTestInterfaceAttributeAttributeSetterCallback, 0, 0, 0,
static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>
(v8::None), 0 /* on instance */}, | 9790 {"typeCheckingInterfaceTestInterfaceAttribute", TestObjectV8Internal::typeCh
eckingInterfaceTestInterfaceAttributeAttributeGetterCallback, TestObjectV8Intern
al::typeCheckingInterfaceTestInterfaceAttributeAttributeSetterCallback, 0, 0, 0,
static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>
(v8::None), 0 /* on instance */}, |
9880 {"typeCheckingNullableTestInterfaceOrNullAttribute", TestObjectV8Internal::t
ypeCheckingNullableTestInterfaceOrNullAttributeAttributeGetterCallback, TestObje
ctV8Internal::typeCheckingNullableTestInterfaceOrNullAttributeAttributeSetterCal
lback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pro
pertyAttribute>(v8::None), 0 /* on instance */}, | 9791 {"typeCheckingInterfaceTestInterfaceOrNullAttribute", TestObjectV8Internal::
typeCheckingInterfaceTestInterfaceOrNullAttributeAttributeGetterCallback, TestOb
jectV8Internal::typeCheckingInterfaceTestInterfaceOrNullAttributeAttributeSetter
Callback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::
PropertyAttribute>(v8::None), 0 /* on instance */}, |
9881 {"typeCheckingInterfaceNullableTestInterfaceOrNullAttribute", TestObjectV8In
ternal::typeCheckingInterfaceNullableTestInterfaceOrNullAttributeAttributeGetter
Callback, TestObjectV8Internal::typeCheckingInterfaceNullableTestInterfaceOrNull
AttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DE
FAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | |
9882 {"urlStringAttribute", TestObjectV8Internal::urlStringAttributeAttributeGett
erCallback, TestObjectV8Internal::urlStringAttributeAttributeSetterCallback, 0,
0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri
bute>(v8::None), 0 /* on instance */}, | 9792 {"urlStringAttribute", TestObjectV8Internal::urlStringAttributeAttributeGett
erCallback, TestObjectV8Internal::urlStringAttributeAttributeSetterCallback, 0,
0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri
bute>(v8::None), 0 /* on instance */}, |
9883 {"urlStringAttribute", TestObjectV8Internal::urlStringAttributeAttributeGett
erCallback, TestObjectV8Internal::urlStringAttributeAttributeSetterCallback, 0,
0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri
bute>(v8::None), 0 /* on instance */}, | 9793 {"urlStringAttribute", TestObjectV8Internal::urlStringAttributeAttributeGett
erCallback, TestObjectV8Internal::urlStringAttributeAttributeSetterCallback, 0,
0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri
bute>(v8::None), 0 /* on instance */}, |
9884 {"unforgeableLongAttribute", TestObjectV8Internal::unforgeableLongAttributeA
ttributeGetterCallback, TestObjectV8Internal::unforgeableLongAttributeAttributeS
etterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::PROHIBITS_OVERWRITING
), static_cast<v8::PropertyAttribute>(v8::DontDelete), 0 /* on instance */}, | 9794 {"unforgeableLongAttribute", TestObjectV8Internal::unforgeableLongAttributeA
ttributeGetterCallback, TestObjectV8Internal::unforgeableLongAttributeAttributeS
etterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::PROHIBITS_OVERWRITING
), static_cast<v8::PropertyAttribute>(v8::DontDelete), 0 /* on instance */}, |
9885 {"activityLoggingSetterOnlyLogPreviousValueAttribute", TestObjectV8Internal:
:activityLoggingSetterOnlyLogPreviousValueAttributeAttributeGetterCallback, Test
ObjectV8Internal::activityLoggingSetterOnlyLogPreviousValueAttributeAttributeSet
terCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v
8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 9795 {"activityLoggingSetterOnlyLogPreviousValueAttribute", TestObjectV8Internal:
:activityLoggingSetterOnlyLogPreviousValueAttributeAttributeGetterCallback, Test
ObjectV8Internal::activityLoggingSetterOnlyLogPreviousValueAttributeAttributeSet
terCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v
8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
9886 {"activityLoggingLogPreviousValueInterfaceAttribute", TestObjectV8Internal::
activityLoggingLogPreviousValueInterfaceAttributeAttributeGetterCallback, TestOb
jectV8Internal::activityLoggingLogPreviousValueInterfaceAttributeAttributeSetter
Callback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::
PropertyAttribute>(v8::None), 0 /* on instance */}, | 9796 {"activityLoggingLogPreviousValueInterfaceAttribute", TestObjectV8Internal::
activityLoggingLogPreviousValueInterfaceAttributeAttributeGetterCallback, TestOb
jectV8Internal::activityLoggingLogPreviousValueInterfaceAttributeAttributeSetter
Callback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::
PropertyAttribute>(v8::None), 0 /* on instance */}, |
9887 {"testInterfaceAttribute", TestObjectV8Internal::testInterfaceAttributeAttri
buteGetterCallback, TestObjectV8Internal::testInterfaceAttributeAttributeSetterC
allback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P
ropertyAttribute>(v8::None), 0 /* on instance */}, | 9797 {"testInterfaceAttribute", TestObjectV8Internal::testInterfaceAttributeAttri
buteGetterCallback, TestObjectV8Internal::testInterfaceAttributeAttributeSetterC
allback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P
ropertyAttribute>(v8::None), 0 /* on instance */}, |
9888 {"testInterfaceGarbageCollectedAttribute", TestObjectV8Internal::testInterfa
ceGarbageCollectedAttributeAttributeGetterCallback, TestObjectV8Internal::testIn
terfaceGarbageCollectedAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8
::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /
* on instance */}, | 9798 {"testInterfaceGarbageCollectedAttribute", TestObjectV8Internal::testInterfa
ceGarbageCollectedAttributeAttributeGetterCallback, TestObjectV8Internal::testIn
terfaceGarbageCollectedAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8
::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /
* on instance */}, |
9889 {"testInterfaceGarbageCollectedOrNullAttribute", TestObjectV8Internal::testI
nterfaceGarbageCollectedOrNullAttributeAttributeGetterCallback, TestObjectV8Inte
rnal::testInterfaceGarbageCollectedOrNullAttributeAttributeSetterCallback, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribu
te>(v8::None), 0 /* on instance */}, | 9799 {"testInterfaceGarbageCollectedOrNullAttribute", TestObjectV8Internal::testI
nterfaceGarbageCollectedOrNullAttributeAttributeGetterCallback, TestObjectV8Inte
rnal::testInterfaceGarbageCollectedOrNullAttributeAttributeSetterCallback, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribu
te>(v8::None), 0 /* on instance */}, |
9890 {"testInterfaceWillBeGarbageCollectedAttribute", TestObjectV8Internal::testI
nterfaceWillBeGarbageCollectedAttributeAttributeGetterCallback, TestObjectV8Inte
rnal::testInterfaceWillBeGarbageCollectedAttributeAttributeSetterCallback, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribu
te>(v8::None), 0 /* on instance */}, | 9800 {"testInterfaceWillBeGarbageCollectedAttribute", TestObjectV8Internal::testI
nterfaceWillBeGarbageCollectedAttributeAttributeGetterCallback, TestObjectV8Inte
rnal::testInterfaceWillBeGarbageCollectedAttributeAttributeSetterCallback, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribu
te>(v8::None), 0 /* on instance */}, |
9891 {"testInterfaceWillBeGarbageCollectedOrNullAttribute", TestObjectV8Internal:
:testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeGetterCallback, Test
ObjectV8Internal::testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeSet
terCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v
8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 9801 {"testInterfaceWillBeGarbageCollectedOrNullAttribute", TestObjectV8Internal:
:testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeGetterCallback, Test
ObjectV8Internal::testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeSet
terCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v
8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10076 {"callWithExecutionContextRaisesExceptionVoidMethodLongArg", TestObjectV8Int
ernal::callWithExecutionContextRaisesExceptionVoidMethodLongArgMethodCallback, 0
, 1}, | 9986 {"callWithExecutionContextRaisesExceptionVoidMethodLongArg", TestObjectV8Int
ernal::callWithExecutionContextRaisesExceptionVoidMethodLongArgMethodCallback, 0
, 1}, |
10077 {"partiallyRuntimeEnabledOverloadedVoidMethod", TestObjectV8Internal::partia
llyRuntimeEnabledOverloadedVoidMethodMethodCallback, 0, 1}, | 9987 {"partiallyRuntimeEnabledOverloadedVoidMethod", TestObjectV8Internal::partia
llyRuntimeEnabledOverloadedVoidMethodMethodCallback, 0, 1}, |
10078 {"treatReturnedNullStringAsNullStringMethod", TestObjectV8Internal::treatRet
urnedNullStringAsNullStringMethodMethodCallback, 0, 0}, | 9988 {"treatReturnedNullStringAsNullStringMethod", TestObjectV8Internal::treatRet
urnedNullStringAsNullStringMethodMethodCallback, 0, 0}, |
10079 {"treatReturnedNullStringAsUndefinedStringMethod", TestObjectV8Internal::tre
atReturnedNullStringAsUndefinedStringMethodMethodCallback, 0, 0}, | 9989 {"treatReturnedNullStringAsUndefinedStringMethod", TestObjectV8Internal::tre
atReturnedNullStringAsUndefinedStringMethodMethodCallback, 0, 0}, |
10080 {"treatReturnedNullStringAsNullByteStringMethod", TestObjectV8Internal::trea
tReturnedNullStringAsNullByteStringMethodMethodCallback, 0, 0}, | 9990 {"treatReturnedNullStringAsNullByteStringMethod", TestObjectV8Internal::trea
tReturnedNullStringAsNullByteStringMethodMethodCallback, 0, 0}, |
10081 {"treatReturnedNullStringAsUndefinedByteStringMethod", TestObjectV8Internal:
:treatReturnedNullStringAsUndefinedByteStringMethodMethodCallback, 0, 0}, | 9991 {"treatReturnedNullStringAsUndefinedByteStringMethod", TestObjectV8Internal:
:treatReturnedNullStringAsUndefinedByteStringMethodMethodCallback, 0, 0}, |
10082 {"treatReturnedNullStringAsNullScalarValueStringMethod", TestObjectV8Interna
l::treatReturnedNullStringAsNullScalarValueStringMethodMethodCallback, 0, 0}, | 9992 {"treatReturnedNullStringAsNullScalarValueStringMethod", TestObjectV8Interna
l::treatReturnedNullStringAsNullScalarValueStringMethodMethodCallback, 0, 0}, |
10083 {"treatReturnedNullStringAsUndefinedScalarValueStringMethod", TestObjectV8In
ternal::treatReturnedNullStringAsUndefinedScalarValueStringMethodMethodCallback,
0, 0}, | 9993 {"treatReturnedNullStringAsUndefinedScalarValueStringMethod", TestObjectV8In
ternal::treatReturnedNullStringAsUndefinedScalarValueStringMethodMethodCallback,
0, 0}, |
10084 {"typeCheckingInterfaceVoidMethodTestInterfaceEmptyArg", TestObjectV8Interna
l::typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMethodCallback, 0, 1}, | 9994 {"typeCheckingInterfaceVoidMethodTestInterfaceEmptyArg", TestObjectV8Interna
l::typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMethodCallback, 0, 1}, |
10085 {"typeCheckingInterfaceVoidMethodTestInterfaceEmptyVariadicArg", TestObjectV
8Internal::typeCheckingInterfaceVoidMethodTestInterfaceEmptyVariadicArgMethodCal
lback, 0, 0}, | 9995 {"typeCheckingInterfaceVoidMethodTestInterfaceEmptyVariadicArg", TestObjectV
8Internal::typeCheckingInterfaceVoidMethodTestInterfaceEmptyVariadicArgMethodCal
lback, 0, 0}, |
10086 {"typeCheckingNullableVoidMethodTestInterfaceEmptyOrNullArg", TestObjectV8In
ternal::typeCheckingNullableVoidMethodTestInterfaceEmptyOrNullArgMethodCallback,
0, 1}, | |
10087 {"typeCheckingInterfaceNullableVoidMethodTestInterfaceEmptyOrNullArg", TestO
bjectV8Internal::typeCheckingInterfaceNullableVoidMethodTestInterfaceEmptyOrNull
ArgMethodCallback, 0, 1}, | |
10088 {"typeCheckingUnrestrictedVoidMethodFloatArgDoubleArg", TestObjectV8Internal
::typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMethodCallback, 0, 2}, | 9996 {"typeCheckingUnrestrictedVoidMethodFloatArgDoubleArg", TestObjectV8Internal
::typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMethodCallback, 0, 2}, |
10089 {"voidMethodTestInterfaceGarbageCollectedSequenceArg", TestObjectV8Internal:
:voidMethodTestInterfaceGarbageCollectedSequenceArgMethodCallback, 0, 1}, | 9997 {"voidMethodTestInterfaceGarbageCollectedSequenceArg", TestObjectV8Internal:
:voidMethodTestInterfaceGarbageCollectedSequenceArgMethodCallback, 0, 1}, |
10090 {"voidMethodTestInterfaceGarbageCollectedArrayArg", TestObjectV8Internal::vo
idMethodTestInterfaceGarbageCollectedArrayArgMethodCallback, 0, 1}, | 9998 {"voidMethodTestInterfaceGarbageCollectedArrayArg", TestObjectV8Internal::vo
idMethodTestInterfaceGarbageCollectedArrayArgMethodCallback, 0, 1}, |
10091 {"voidMethodTestInterfaceWillBeGarbageCollectedSequenceArg", TestObjectV8Int
ernal::voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethodCallback, 0
, 1}, | 9999 {"voidMethodTestInterfaceWillBeGarbageCollectedSequenceArg", TestObjectV8Int
ernal::voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethodCallback, 0
, 1}, |
10092 {"voidMethodTestInterfaceWillBeGarbageCollectedArrayArg", TestObjectV8Intern
al::voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethodCallback, 0, 1}, | 10000 {"voidMethodTestInterfaceWillBeGarbageCollectedArrayArg", TestObjectV8Intern
al::voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethodCallback, 0, 1}, |
10093 {"toString", TestObjectV8Internal::toStringMethodCallback, 0, 0}, | 10001 {"toString", TestObjectV8Internal::toStringMethodCallback, 0, 0}, |
10094 }; | 10002 }; |
10095 | 10003 |
10096 static void configureV8TestObjectTemplate(v8::Handle<v8::FunctionTemplate> funct
ionTemplate, v8::Isolate* isolate) | 10004 static void configureV8TestObjectTemplate(v8::Handle<v8::FunctionTemplate> funct
ionTemplate, v8::Isolate* isolate) |
10097 { | 10005 { |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10286 fromInternalPointer(object)->deref(); | 10194 fromInternalPointer(object)->deref(); |
10287 } | 10195 } |
10288 | 10196 |
10289 template<> | 10197 template<> |
10290 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea
tionContext, v8::Isolate* isolate) | 10198 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea
tionContext, v8::Isolate* isolate) |
10291 { | 10199 { |
10292 return toV8(impl, creationContext, isolate); | 10200 return toV8(impl, creationContext, isolate); |
10293 } | 10201 } |
10294 | 10202 |
10295 } // namespace WebCore | 10203 } // namespace WebCore |
OLD | NEW |