| OLD | NEW |
| 1 /* | 1 /* |
| 2 This file is part of the Blink open source project. | 2 This file is part of the Blink open source project. |
| 3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! | 3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! |
| 4 | 4 |
| 5 This library is free software; you can redistribute it and/or | 5 This library is free software; you can redistribute it and/or |
| 6 modify it under the terms of the GNU Library General Public | 6 modify it under the terms of the GNU Library General Public |
| 7 License as published by the Free Software Foundation; either | 7 License as published by the Free Software Foundation; either |
| 8 version 2 of the License, or (at your option) any later version. | 8 version 2 of the License, or (at your option) any later version. |
| 9 | 9 |
| 10 This library is distributed in the hope that it will be useful, | 10 This library is distributed in the hope that it will be useful, |
| (...skipping 1821 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1832 static void floatArrayAttrGetterCallback(v8::Local<v8::String> name, const v8::P
ropertyCallbackInfo<v8::Value>& info) | 1832 static void floatArrayAttrGetterCallback(v8::Local<v8::String> name, const v8::P
ropertyCallbackInfo<v8::Value>& info) |
| 1833 { | 1833 { |
| 1834 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1834 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1835 TestObjV8Internal::floatArrayAttrGetter(name, info); | 1835 TestObjV8Internal::floatArrayAttrGetter(name, info); |
| 1836 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1836 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1837 } | 1837 } |
| 1838 | 1838 |
| 1839 static void floatArrayAttrSetter(v8::Local<v8::String> name, v8::Local<v8::Value
> value, const v8::PropertyCallbackInfo<void>& info) | 1839 static void floatArrayAttrSetter(v8::Local<v8::String> name, v8::Local<v8::Value
> value, const v8::PropertyCallbackInfo<void>& info) |
| 1840 { | 1840 { |
| 1841 TestObj* imp = V8TestObject::toNative(info.Holder()); | 1841 TestObj* imp = V8TestObject::toNative(info.Holder()); |
| 1842 V8TRYCATCH_VOID(Vector<float>, v, toNativeArray<float>(value)); | 1842 V8TRYCATCH_VOID(Vector<float>, v, toNativeArray<float>(value, info.GetIsolat
e())); |
| 1843 imp->setFloatArray(v); | 1843 imp->setFloatArray(v); |
| 1844 return; | 1844 return; |
| 1845 } | 1845 } |
| 1846 | 1846 |
| 1847 static void floatArrayAttrSetterCallback(v8::Local<v8::String> name, v8::Local<v
8::Value> value, const v8::PropertyCallbackInfo<void>& info) | 1847 static void floatArrayAttrSetterCallback(v8::Local<v8::String> name, v8::Local<v
8::Value> value, const v8::PropertyCallbackInfo<void>& info) |
| 1848 { | 1848 { |
| 1849 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1849 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 1850 TestObjV8Internal::floatArrayAttrSetter(name, value, info); | 1850 TestObjV8Internal::floatArrayAttrSetter(name, value, info); |
| 1851 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1851 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1852 } | 1852 } |
| 1853 | 1853 |
| 1854 static void doubleArrayAttrGetter(v8::Local<v8::String> name, const v8::Property
CallbackInfo<v8::Value>& info) | 1854 static void doubleArrayAttrGetter(v8::Local<v8::String> name, const v8::Property
CallbackInfo<v8::Value>& info) |
| 1855 { | 1855 { |
| 1856 TestObj* imp = V8TestObject::toNative(info.Holder()); | 1856 TestObj* imp = V8TestObject::toNative(info.Holder()); |
| 1857 v8SetReturnValue(info, v8Array(imp->doubleArray(), info.GetIsolate())); | 1857 v8SetReturnValue(info, v8Array(imp->doubleArray(), info.GetIsolate())); |
| 1858 return; | 1858 return; |
| 1859 } | 1859 } |
| 1860 | 1860 |
| 1861 static void doubleArrayAttrGetterCallback(v8::Local<v8::String> name, const v8::
PropertyCallbackInfo<v8::Value>& info) | 1861 static void doubleArrayAttrGetterCallback(v8::Local<v8::String> name, const v8::
PropertyCallbackInfo<v8::Value>& info) |
| 1862 { | 1862 { |
| 1863 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1863 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1864 TestObjV8Internal::doubleArrayAttrGetter(name, info); | 1864 TestObjV8Internal::doubleArrayAttrGetter(name, info); |
| 1865 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1865 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1866 } | 1866 } |
| 1867 | 1867 |
| 1868 static void doubleArrayAttrSetter(v8::Local<v8::String> name, v8::Local<v8::Valu
e> value, const v8::PropertyCallbackInfo<void>& info) | 1868 static void doubleArrayAttrSetter(v8::Local<v8::String> name, v8::Local<v8::Valu
e> value, const v8::PropertyCallbackInfo<void>& info) |
| 1869 { | 1869 { |
| 1870 TestObj* imp = V8TestObject::toNative(info.Holder()); | 1870 TestObj* imp = V8TestObject::toNative(info.Holder()); |
| 1871 V8TRYCATCH_VOID(Vector<double>, v, toNativeArray<double>(value)); | 1871 V8TRYCATCH_VOID(Vector<double>, v, toNativeArray<double>(value, info.GetIsol
ate())); |
| 1872 imp->setDoubleArray(v); | 1872 imp->setDoubleArray(v); |
| 1873 return; | 1873 return; |
| 1874 } | 1874 } |
| 1875 | 1875 |
| 1876 static void doubleArrayAttrSetterCallback(v8::Local<v8::String> name, v8::Local<
v8::Value> value, const v8::PropertyCallbackInfo<void>& info) | 1876 static void doubleArrayAttrSetterCallback(v8::Local<v8::String> name, v8::Local<
v8::Value> value, const v8::PropertyCallbackInfo<void>& info) |
| 1877 { | 1877 { |
| 1878 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1878 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 1879 TestObjV8Internal::doubleArrayAttrSetter(name, value, info); | 1879 TestObjV8Internal::doubleArrayAttrSetter(name, value, info); |
| 1880 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1880 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1881 } | 1881 } |
| (...skipping 2205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4087 return; | 4087 return; |
| 4088 } | 4088 } |
| 4089 | 4089 |
| 4090 static void overloadedMethod7Method(const v8::FunctionCallbackInfo<v8::Value>& a
rgs) | 4090 static void overloadedMethod7Method(const v8::FunctionCallbackInfo<v8::Value>& a
rgs) |
| 4091 { | 4091 { |
| 4092 if (args.Length() < 1) { | 4092 if (args.Length() < 1) { |
| 4093 throwNotEnoughArgumentsError(args.GetIsolate()); | 4093 throwNotEnoughArgumentsError(args.GetIsolate()); |
| 4094 return; | 4094 return; |
| 4095 } | 4095 } |
| 4096 TestObj* imp = V8TestObject::toNative(args.Holder()); | 4096 TestObj* imp = V8TestObject::toNative(args.Holder()); |
| 4097 V8TRYCATCH_VOID(Vector<String>, arrayArg, toNativeArray<String>(args[0])); | 4097 V8TRYCATCH_VOID(Vector<String>, arrayArg, toNativeArray<String>(args[0], arg
s.GetIsolate())); |
| 4098 imp->overloadedMethod(arrayArg); | 4098 imp->overloadedMethod(arrayArg); |
| 4099 | 4099 |
| 4100 return; | 4100 return; |
| 4101 } | 4101 } |
| 4102 | 4102 |
| 4103 static void overloadedMethod8Method(const v8::FunctionCallbackInfo<v8::Value>& a
rgs) | 4103 static void overloadedMethod8Method(const v8::FunctionCallbackInfo<v8::Value>& a
rgs) |
| 4104 { | 4104 { |
| 4105 if (args.Length() < 1) { | 4105 if (args.Length() < 1) { |
| 4106 throwNotEnoughArgumentsError(args.GetIsolate()); | 4106 throwNotEnoughArgumentsError(args.GetIsolate()); |
| 4107 return; | 4107 return; |
| 4108 } | 4108 } |
| 4109 TestObj* imp = V8TestObject::toNative(args.Holder()); | 4109 TestObj* imp = V8TestObject::toNative(args.Holder()); |
| 4110 V8TRYCATCH_VOID(TestObj*, objArg, V8TestObject::HasInstance(args[0], args.Ge
tIsolate(), worldType(args.GetIsolate())) ? V8TestObject::toNative(v8::Handle<v8
::Object>::Cast(args[0])) : 0); | 4110 V8TRYCATCH_VOID(TestObj*, objArg, V8TestObject::HasInstance(args[0], args.Ge
tIsolate(), worldType(args.GetIsolate())) ? V8TestObject::toNative(v8::Handle<v8
::Object>::Cast(args[0])) : 0); |
| 4111 imp->overloadedMethod(objArg); | 4111 imp->overloadedMethod(objArg); |
| 4112 | 4112 |
| 4113 return; | 4113 return; |
| 4114 } | 4114 } |
| 4115 | 4115 |
| 4116 static void overloadedMethod9Method(const v8::FunctionCallbackInfo<v8::Value>& a
rgs) | 4116 static void overloadedMethod9Method(const v8::FunctionCallbackInfo<v8::Value>& a
rgs) |
| 4117 { | 4117 { |
| 4118 if (args.Length() < 1) { | 4118 if (args.Length() < 1) { |
| 4119 throwNotEnoughArgumentsError(args.GetIsolate()); | 4119 throwNotEnoughArgumentsError(args.GetIsolate()); |
| 4120 return; | 4120 return; |
| 4121 } | 4121 } |
| 4122 TestObj* imp = V8TestObject::toNative(args.Holder()); | 4122 TestObj* imp = V8TestObject::toNative(args.Holder()); |
| 4123 V8TRYCATCH_VOID(Vector<String>, arrayArg, toNativeArray<String>(args[0])); | 4123 V8TRYCATCH_VOID(Vector<String>, arrayArg, toNativeArray<String>(args[0], arg
s.GetIsolate())); |
| 4124 imp->overloadedMethod(arrayArg); | 4124 imp->overloadedMethod(arrayArg); |
| 4125 | 4125 |
| 4126 return; | 4126 return; |
| 4127 } | 4127 } |
| 4128 | 4128 |
| 4129 static void overloadedMethod10Method(const v8::FunctionCallbackInfo<v8::Value>&
args) | 4129 static void overloadedMethod10Method(const v8::FunctionCallbackInfo<v8::Value>&
args) |
| 4130 { | 4130 { |
| 4131 if (args.Length() < 1) { | 4131 if (args.Length() < 1) { |
| 4132 throwNotEnoughArgumentsError(args.GetIsolate()); | 4132 throwNotEnoughArgumentsError(args.GetIsolate()); |
| 4133 return; | 4133 return; |
| 4134 } | 4134 } |
| 4135 TestObj* imp = V8TestObject::toNative(args.Holder()); | 4135 TestObj* imp = V8TestObject::toNative(args.Holder()); |
| 4136 V8TRYCATCH_VOID(Vector<unsigned>, arrayArg, toNativeArray<unsigned>(args[0])
); | 4136 V8TRYCATCH_VOID(Vector<unsigned>, arrayArg, toNativeArray<unsigned>(args[0],
args.GetIsolate())); |
| 4137 imp->overloadedMethod(arrayArg); | 4137 imp->overloadedMethod(arrayArg); |
| 4138 | 4138 |
| 4139 return; | 4139 return; |
| 4140 } | 4140 } |
| 4141 | 4141 |
| 4142 static void overloadedMethod11Method(const v8::FunctionCallbackInfo<v8::Value>&
args) | 4142 static void overloadedMethod11Method(const v8::FunctionCallbackInfo<v8::Value>&
args) |
| 4143 { | 4143 { |
| 4144 if (args.Length() < 1) { | 4144 if (args.Length() < 1) { |
| 4145 throwNotEnoughArgumentsError(args.GetIsolate()); | 4145 throwNotEnoughArgumentsError(args.GetIsolate()); |
| 4146 return; | 4146 return; |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4422 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4422 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4423 } | 4423 } |
| 4424 | 4424 |
| 4425 static void methodWithUnsignedLongSequenceMethod(const v8::FunctionCallbackInfo<
v8::Value>& args) | 4425 static void methodWithUnsignedLongSequenceMethod(const v8::FunctionCallbackInfo<
v8::Value>& args) |
| 4426 { | 4426 { |
| 4427 if (args.Length() < 1) { | 4427 if (args.Length() < 1) { |
| 4428 throwNotEnoughArgumentsError(args.GetIsolate()); | 4428 throwNotEnoughArgumentsError(args.GetIsolate()); |
| 4429 return; | 4429 return; |
| 4430 } | 4430 } |
| 4431 TestObj* imp = V8TestObject::toNative(args.Holder()); | 4431 TestObj* imp = V8TestObject::toNative(args.Holder()); |
| 4432 V8TRYCATCH_VOID(Vector<unsigned>, unsignedLongSequence, toNativeArray<unsign
ed>(args[0])); | 4432 V8TRYCATCH_VOID(Vector<unsigned>, unsignedLongSequence, toNativeArray<unsign
ed>(args[0], args.GetIsolate())); |
| 4433 imp->methodWithUnsignedLongSequence(unsignedLongSequence); | 4433 imp->methodWithUnsignedLongSequence(unsignedLongSequence); |
| 4434 | 4434 |
| 4435 return; | 4435 return; |
| 4436 } | 4436 } |
| 4437 | 4437 |
| 4438 static void methodWithUnsignedLongSequenceMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& args) | 4438 static void methodWithUnsignedLongSequenceMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& args) |
| 4439 { | 4439 { |
| 4440 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4440 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4441 TestObjV8Internal::methodWithUnsignedLongSequenceMethod(args); | 4441 TestObjV8Internal::methodWithUnsignedLongSequenceMethod(args); |
| 4442 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4442 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4443 } | 4443 } |
| 4444 | 4444 |
| 4445 static void stringArrayFunctionMethod(const v8::FunctionCallbackInfo<v8::Value>&
args) | 4445 static void stringArrayFunctionMethod(const v8::FunctionCallbackInfo<v8::Value>&
args) |
| 4446 { | 4446 { |
| 4447 if (args.Length() < 1) { | 4447 if (args.Length() < 1) { |
| 4448 throwNotEnoughArgumentsError(args.GetIsolate()); | 4448 throwNotEnoughArgumentsError(args.GetIsolate()); |
| 4449 return; | 4449 return; |
| 4450 } | 4450 } |
| 4451 TestObj* imp = V8TestObject::toNative(args.Holder()); | 4451 TestObj* imp = V8TestObject::toNative(args.Holder()); |
| 4452 ExceptionState es(args.GetIsolate()); | 4452 ExceptionState es(args.GetIsolate()); |
| 4453 V8TRYCATCH_VOID(Vector<String>, values, toNativeArray<String>(args[0])); | 4453 V8TRYCATCH_VOID(Vector<String>, values, toNativeArray<String>(args[0], args.
GetIsolate())); |
| 4454 Vector<String> result = imp->stringArrayFunction(values, es); | 4454 Vector<String> result = imp->stringArrayFunction(values, es); |
| 4455 if (es.throwIfNeeded()) | 4455 if (es.throwIfNeeded()) |
| 4456 return; | 4456 return; |
| 4457 v8SetReturnValue(args, v8Array(result, args.GetIsolate())); | 4457 v8SetReturnValue(args, v8Array(result, args.GetIsolate())); |
| 4458 return; | 4458 return; |
| 4459 } | 4459 } |
| 4460 | 4460 |
| 4461 static void stringArrayFunctionMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& args) | 4461 static void stringArrayFunctionMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& args) |
| 4462 { | 4462 { |
| 4463 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4463 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| (...skipping 1267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5731 installPerContextProperties(wrapper, impl.get(), isolate); | 5731 installPerContextProperties(wrapper, impl.get(), isolate); |
| 5732 V8DOMWrapper::associateObjectWithWrapper<V8TestObject>(impl, &info, wrapper,
isolate, WrapperConfiguration::Independent); | 5732 V8DOMWrapper::associateObjectWithWrapper<V8TestObject>(impl, &info, wrapper,
isolate, WrapperConfiguration::Independent); |
| 5733 return wrapper; | 5733 return wrapper; |
| 5734 } | 5734 } |
| 5735 void V8TestObject::derefObject(void* object) | 5735 void V8TestObject::derefObject(void* object) |
| 5736 { | 5736 { |
| 5737 fromInternalPointer(object)->deref(); | 5737 fromInternalPointer(object)->deref(); |
| 5738 } | 5738 } |
| 5739 | 5739 |
| 5740 } // namespace WebCore | 5740 } // namespace WebCore |
| OLD | NEW |