Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(450)

Side by Side Diff: Source/bindings/tests/results/V8TestObject.cpp

Issue 38063003: Improve TypeError messages from failed array conversions. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Improve TypeError messages from failed array conversions. Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 1664 matching lines...) Expand 10 before | Expand all | Expand 10 after
1675 static void floatArrayAttributeGetterCallback(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info) 1675 static void floatArrayAttributeGetterCallback(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info)
1676 { 1676 {
1677 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1677 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1678 TestObjV8Internal::floatArrayAttributeGetter(name, info); 1678 TestObjV8Internal::floatArrayAttributeGetter(name, info);
1679 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 1679 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
1680 } 1680 }
1681 1681
1682 static void floatArrayAttributeSetter(v8::Local<v8::String> name, v8::Local<v8:: Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1682 static void floatArrayAttributeSetter(v8::Local<v8::String> name, v8::Local<v8:: Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
1683 { 1683 {
1684 TestObj* imp = V8TestObject::toNative(info.Holder()); 1684 TestObj* imp = V8TestObject::toNative(info.Holder());
1685 V8TRYCATCH_VOID(Vector<float>, cppValue, toNativeArray<float>(jsValue, info. GetIsolate())); 1685 V8TRYCATCH_VOID(Vector<float>, cppValue, toNativeArray<float>(jsValue, 0, in fo.GetIsolate()));
1686 imp->setFloatArray(cppValue); 1686 imp->setFloatArray(cppValue);
1687 } 1687 }
1688 1688
1689 static void floatArrayAttributeSetterCallback(v8::Local<v8::String> name, v8::Lo cal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1689 static void floatArrayAttributeSetterCallback(v8::Local<v8::String> name, v8::Lo cal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
1690 { 1690 {
1691 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1691 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1692 TestObjV8Internal::floatArrayAttributeSetter(name, jsValue, info); 1692 TestObjV8Internal::floatArrayAttributeSetter(name, jsValue, info);
1693 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 1693 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
1694 } 1694 }
1695 1695
1696 static void doubleArrayAttributeGetter(v8::Local<v8::String> name, const v8::Pro pertyCallbackInfo<v8::Value>& info) 1696 static void doubleArrayAttributeGetter(v8::Local<v8::String> name, const v8::Pro pertyCallbackInfo<v8::Value>& info)
1697 { 1697 {
1698 TestObj* imp = V8TestObject::toNative(info.Holder()); 1698 TestObj* imp = V8TestObject::toNative(info.Holder());
1699 v8SetReturnValue(info, v8Array(imp->doubleArray(), info.GetIsolate())); 1699 v8SetReturnValue(info, v8Array(imp->doubleArray(), info.GetIsolate()));
1700 } 1700 }
1701 1701
1702 static void doubleArrayAttributeGetterCallback(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info) 1702 static void doubleArrayAttributeGetterCallback(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info)
1703 { 1703 {
1704 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1704 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1705 TestObjV8Internal::doubleArrayAttributeGetter(name, info); 1705 TestObjV8Internal::doubleArrayAttributeGetter(name, info);
1706 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 1706 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
1707 } 1707 }
1708 1708
1709 static void doubleArrayAttributeSetter(v8::Local<v8::String> name, v8::Local<v8: :Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1709 static void doubleArrayAttributeSetter(v8::Local<v8::String> name, v8::Local<v8: :Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
1710 { 1710 {
1711 TestObj* imp = V8TestObject::toNative(info.Holder()); 1711 TestObj* imp = V8TestObject::toNative(info.Holder());
1712 V8TRYCATCH_VOID(Vector<double>, cppValue, toNativeArray<double>(jsValue, inf o.GetIsolate())); 1712 V8TRYCATCH_VOID(Vector<double>, cppValue, toNativeArray<double>(jsValue, 0, info.GetIsolate()));
1713 imp->setDoubleArray(cppValue); 1713 imp->setDoubleArray(cppValue);
1714 } 1714 }
1715 1715
1716 static void doubleArrayAttributeSetterCallback(v8::Local<v8::String> name, v8::L ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1716 static void doubleArrayAttributeSetterCallback(v8::Local<v8::String> name, v8::L ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
1717 { 1717 {
1718 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1718 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1719 TestObjV8Internal::doubleArrayAttributeSetter(name, jsValue, info); 1719 TestObjV8Internal::doubleArrayAttributeSetter(name, jsValue, info);
1720 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 1720 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
1721 } 1721 }
1722 1722
1723 static void messagePortArrayAttributeGetter(v8::Local<v8::String> name, const v8 ::PropertyCallbackInfo<v8::Value>& info) 1723 static void messagePortArrayAttributeGetter(v8::Local<v8::String> name, const v8 ::PropertyCallbackInfo<v8::Value>& info)
1724 { 1724 {
1725 TestObj* imp = V8TestObject::toNative(info.Holder()); 1725 TestObj* imp = V8TestObject::toNative(info.Holder());
1726 v8SetReturnValue(info, v8Array(imp->messagePortArray(), info.GetIsolate())); 1726 v8SetReturnValue(info, v8Array(imp->messagePortArray(), info.GetIsolate()));
1727 } 1727 }
1728 1728
1729 static void messagePortArrayAttributeGetterCallback(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info) 1729 static void messagePortArrayAttributeGetterCallback(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info)
1730 { 1730 {
1731 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1731 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1732 TestObjV8Internal::messagePortArrayAttributeGetter(name, info); 1732 TestObjV8Internal::messagePortArrayAttributeGetter(name, info);
1733 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 1733 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
1734 } 1734 }
1735 1735
1736 static void messagePortArrayAttributeSetter(v8::Local<v8::String> name, v8::Loca l<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1736 static void messagePortArrayAttributeSetter(v8::Local<v8::String> name, v8::Loca l<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
1737 { 1737 {
1738 TestObj* imp = V8TestObject::toNative(info.Holder()); 1738 TestObj* imp = V8TestObject::toNative(info.Holder());
1739 V8TRYCATCH_VOID(Vector<RefPtr<MessagePort> >, cppValue, (toRefPtrNativeArray <MessagePort, V8MessagePort>(jsValue, info.GetIsolate()))); 1739 V8TRYCATCH_VOID(Vector<RefPtr<MessagePort> >, cppValue, (toRefPtrNativeArray <MessagePort, V8MessagePort>(jsValue, 0, info.GetIsolate())));
1740 imp->setMessagePortArray(cppValue); 1740 imp->setMessagePortArray(cppValue);
1741 } 1741 }
1742 1742
1743 static void messagePortArrayAttributeSetterCallback(v8::Local<v8::String> name, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1743 static void messagePortArrayAttributeSetterCallback(v8::Local<v8::String> name, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
1744 { 1744 {
1745 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1745 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1746 TestObjV8Internal::messagePortArrayAttributeSetter(name, jsValue, info); 1746 TestObjV8Internal::messagePortArrayAttributeSetter(name, jsValue, info);
1747 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 1747 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
1748 } 1748 }
1749 1749
(...skipping 1178 matching lines...) Expand 10 before | Expand all | Expand 10 after
2928 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 2928 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
2929 } 2929 }
2930 2930
2931 static void methodWithSequenceArgMethod(const v8::FunctionCallbackInfo<v8::Value >& args) 2931 static void methodWithSequenceArgMethod(const v8::FunctionCallbackInfo<v8::Value >& args)
2932 { 2932 {
2933 if (UNLIKELY(args.Length() < 1)) { 2933 if (UNLIKELY(args.Length() < 1)) {
2934 throwTypeError(ExceptionMessages::failedToExecute("methodWithSequenceArg ", "TestObject", ExceptionMessages::notEnoughArguments(1, args.Length())), args. GetIsolate()); 2934 throwTypeError(ExceptionMessages::failedToExecute("methodWithSequenceArg ", "TestObject", ExceptionMessages::notEnoughArguments(1, args.Length())), args. GetIsolate());
2935 return; 2935 return;
2936 } 2936 }
2937 TestObj* imp = V8TestObject::toNative(args.Holder()); 2937 TestObj* imp = V8TestObject::toNative(args.Holder());
2938 V8TRYCATCH_VOID(Vector<RefPtr<TestInterface> >, sequenceArg, (toRefPtrNative Array<TestInterface, V8TestInterface>(args[0], args.GetIsolate()))); 2938 V8TRYCATCH_VOID(Vector<RefPtr<TestInterface> >, sequenceArg, (toRefPtrNative Array<TestInterface, V8TestInterface>(args[0], 1, args.GetIsolate())));
2939 imp->methodWithSequenceArg(sequenceArg); 2939 imp->methodWithSequenceArg(sequenceArg);
2940 2940
2941 return; 2941 return;
2942 } 2942 }
2943 2943
2944 static void methodWithSequenceArgMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& args) 2944 static void methodWithSequenceArgMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& args)
2945 { 2945 {
2946 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 2946 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
2947 TestObjV8Internal::methodWithSequenceArgMethod(args); 2947 TestObjV8Internal::methodWithSequenceArgMethod(args);
2948 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 2948 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
(...skipping 1015 matching lines...) Expand 10 before | Expand all | Expand 10 after
3964 } 3964 }
3965 3965
3966 static void overloadedMethod7Method(const v8::FunctionCallbackInfo<v8::Value>& a rgs) 3966 static void overloadedMethod7Method(const v8::FunctionCallbackInfo<v8::Value>& a rgs)
3967 { 3967 {
3968 if (UNLIKELY(args.Length() < 1)) { 3968 if (UNLIKELY(args.Length() < 1)) {
3969 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethod", "T estObject", ExceptionMessages::notEnoughArguments(1, args.Length())), args.GetIs olate()); 3969 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethod", "T estObject", ExceptionMessages::notEnoughArguments(1, args.Length())), args.GetIs olate());
3970 return; 3970 return;
3971 } 3971 }
3972 TestObj* imp = V8TestObject::toNative(args.Holder()); 3972 TestObj* imp = V8TestObject::toNative(args.Holder());
3973 bool arrayArgIsNull = args[0]->IsNull(); 3973 bool arrayArgIsNull = args[0]->IsNull();
3974 V8TRYCATCH_VOID(Vector<String>, arrayArg, toNativeArray<String>(args[0], arg s.GetIsolate())); 3974 V8TRYCATCH_VOID(Vector<String>, arrayArg, toNativeArray<String>(args[0], 1, args.GetIsolate()));
3975 imp->overloadedMethod(arrayArgIsNull ? 0 : &arrayArg); 3975 imp->overloadedMethod(arrayArgIsNull ? 0 : &arrayArg);
3976 3976
3977 return; 3977 return;
3978 } 3978 }
3979 3979
3980 static void overloadedMethod8Method(const v8::FunctionCallbackInfo<v8::Value>& a rgs) 3980 static void overloadedMethod8Method(const v8::FunctionCallbackInfo<v8::Value>& a rgs)
3981 { 3981 {
3982 if (UNLIKELY(args.Length() < 1)) { 3982 if (UNLIKELY(args.Length() < 1)) {
3983 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethod", "T estObject", ExceptionMessages::notEnoughArguments(1, args.Length())), args.GetIs olate()); 3983 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethod", "T estObject", ExceptionMessages::notEnoughArguments(1, args.Length())), args.GetIs olate());
3984 return; 3984 return;
3985 } 3985 }
3986 TestObj* imp = V8TestObject::toNative(args.Holder()); 3986 TestObj* imp = V8TestObject::toNative(args.Holder());
3987 V8TRYCATCH_VOID(TestObj*, objArg, V8TestObject::HasInstance(args[0], args.Ge tIsolate(), worldType(args.GetIsolate())) ? V8TestObject::toNative(v8::Handle<v8 ::Object>::Cast(args[0])) : 0); 3987 V8TRYCATCH_VOID(TestObj*, objArg, V8TestObject::HasInstance(args[0], args.Ge tIsolate(), worldType(args.GetIsolate())) ? V8TestObject::toNative(v8::Handle<v8 ::Object>::Cast(args[0])) : 0);
3988 imp->overloadedMethod(objArg); 3988 imp->overloadedMethod(objArg);
3989 3989
3990 return; 3990 return;
3991 } 3991 }
3992 3992
3993 static void overloadedMethod9Method(const v8::FunctionCallbackInfo<v8::Value>& a rgs) 3993 static void overloadedMethod9Method(const v8::FunctionCallbackInfo<v8::Value>& a rgs)
3994 { 3994 {
3995 if (UNLIKELY(args.Length() < 1)) { 3995 if (UNLIKELY(args.Length() < 1)) {
3996 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethod", "T estObject", ExceptionMessages::notEnoughArguments(1, args.Length())), args.GetIs olate()); 3996 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethod", "T estObject", ExceptionMessages::notEnoughArguments(1, args.Length())), args.GetIs olate());
3997 return; 3997 return;
3998 } 3998 }
3999 TestObj* imp = V8TestObject::toNative(args.Holder()); 3999 TestObj* imp = V8TestObject::toNative(args.Holder());
4000 V8TRYCATCH_VOID(Vector<String>, arrayArg, toNativeArray<String>(args[0], arg s.GetIsolate())); 4000 V8TRYCATCH_VOID(Vector<String>, arrayArg, toNativeArray<String>(args[0], 1, args.GetIsolate()));
4001 imp->overloadedMethod(arrayArg); 4001 imp->overloadedMethod(arrayArg);
4002 4002
4003 return; 4003 return;
4004 } 4004 }
4005 4005
4006 static void overloadedMethod10Method(const v8::FunctionCallbackInfo<v8::Value>& args) 4006 static void overloadedMethod10Method(const v8::FunctionCallbackInfo<v8::Value>& args)
4007 { 4007 {
4008 if (UNLIKELY(args.Length() < 1)) { 4008 if (UNLIKELY(args.Length() < 1)) {
4009 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethod", "T estObject", ExceptionMessages::notEnoughArguments(1, args.Length())), args.GetIs olate()); 4009 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethod", "T estObject", ExceptionMessages::notEnoughArguments(1, args.Length())), args.GetIs olate());
4010 return; 4010 return;
4011 } 4011 }
4012 TestObj* imp = V8TestObject::toNative(args.Holder()); 4012 TestObj* imp = V8TestObject::toNative(args.Holder());
4013 V8TRYCATCH_VOID(Vector<unsigned>, arrayArg, toNativeArray<unsigned>(args[0], args.GetIsolate())); 4013 V8TRYCATCH_VOID(Vector<unsigned>, arrayArg, toNativeArray<unsigned>(args[0], 1, args.GetIsolate()));
4014 imp->overloadedMethod(arrayArg); 4014 imp->overloadedMethod(arrayArg);
4015 4015
4016 return; 4016 return;
4017 } 4017 }
4018 4018
4019 static void overloadedMethod11Method(const v8::FunctionCallbackInfo<v8::Value>& args) 4019 static void overloadedMethod11Method(const v8::FunctionCallbackInfo<v8::Value>& args)
4020 { 4020 {
4021 if (UNLIKELY(args.Length() < 1)) { 4021 if (UNLIKELY(args.Length() < 1)) {
4022 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethod", "T estObject", ExceptionMessages::notEnoughArguments(1, args.Length())), args.GetIs olate()); 4022 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethod", "T estObject", ExceptionMessages::notEnoughArguments(1, args.Length())), args.GetIs olate());
4023 return; 4023 return;
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
4259 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 4259 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
4260 } 4260 }
4261 4261
4262 static void methodWithUnsignedLongSequenceMethod(const v8::FunctionCallbackInfo< v8::Value>& args) 4262 static void methodWithUnsignedLongSequenceMethod(const v8::FunctionCallbackInfo< v8::Value>& args)
4263 { 4263 {
4264 if (UNLIKELY(args.Length() < 1)) { 4264 if (UNLIKELY(args.Length() < 1)) {
4265 throwTypeError(ExceptionMessages::failedToExecute("methodWithUnsignedLon gSequence", "TestObject", ExceptionMessages::notEnoughArguments(1, args.Length() )), args.GetIsolate()); 4265 throwTypeError(ExceptionMessages::failedToExecute("methodWithUnsignedLon gSequence", "TestObject", ExceptionMessages::notEnoughArguments(1, args.Length() )), args.GetIsolate());
4266 return; 4266 return;
4267 } 4267 }
4268 TestObj* imp = V8TestObject::toNative(args.Holder()); 4268 TestObj* imp = V8TestObject::toNative(args.Holder());
4269 V8TRYCATCH_VOID(Vector<unsigned>, unsignedLongSequence, toNativeArray<unsign ed>(args[0], args.GetIsolate())); 4269 V8TRYCATCH_VOID(Vector<unsigned>, unsignedLongSequence, toNativeArray<unsign ed>(args[0], 1, args.GetIsolate()));
4270 imp->methodWithUnsignedLongSequence(unsignedLongSequence); 4270 imp->methodWithUnsignedLongSequence(unsignedLongSequence);
4271 4271
4272 return; 4272 return;
4273 } 4273 }
4274 4274
4275 static void methodWithUnsignedLongSequenceMethodCallback(const v8::FunctionCallb ackInfo<v8::Value>& args) 4275 static void methodWithUnsignedLongSequenceMethodCallback(const v8::FunctionCallb ackInfo<v8::Value>& args)
4276 { 4276 {
4277 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4277 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4278 TestObjV8Internal::methodWithUnsignedLongSequenceMethod(args); 4278 TestObjV8Internal::methodWithUnsignedLongSequenceMethod(args);
4279 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 4279 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
4280 } 4280 }
4281 4281
4282 static void stringArrayFunctionMethod(const v8::FunctionCallbackInfo<v8::Value>& args) 4282 static void stringArrayFunctionMethod(const v8::FunctionCallbackInfo<v8::Value>& args)
4283 { 4283 {
4284 if (UNLIKELY(args.Length() < 1)) { 4284 if (UNLIKELY(args.Length() < 1)) {
4285 throwTypeError(ExceptionMessages::failedToExecute("stringArrayFunction", "TestObject", ExceptionMessages::notEnoughArguments(1, args.Length())), args.Ge tIsolate()); 4285 throwTypeError(ExceptionMessages::failedToExecute("stringArrayFunction", "TestObject", ExceptionMessages::notEnoughArguments(1, args.Length())), args.Ge tIsolate());
4286 return; 4286 return;
4287 } 4287 }
4288 TestObj* imp = V8TestObject::toNative(args.Holder()); 4288 TestObj* imp = V8TestObject::toNative(args.Holder());
4289 ExceptionState es(args.GetIsolate()); 4289 ExceptionState es(args.GetIsolate());
4290 V8TRYCATCH_VOID(Vector<String>, values, toNativeArray<String>(args[0], args. GetIsolate())); 4290 V8TRYCATCH_VOID(Vector<String>, values, toNativeArray<String>(args[0], 1, ar gs.GetIsolate()));
4291 Vector<String> result = imp->stringArrayFunction(values, es); 4291 Vector<String> result = imp->stringArrayFunction(values, es);
4292 if (es.throwIfNeeded()) 4292 if (es.throwIfNeeded())
4293 return; 4293 return;
4294 v8SetReturnValue(args, v8Array(result, args.GetIsolate())); 4294 v8SetReturnValue(args, v8Array(result, args.GetIsolate()));
4295 return; 4295 return;
4296 } 4296 }
4297 4297
4298 static void stringArrayFunctionMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& args) 4298 static void stringArrayFunctionMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& args)
4299 { 4299 {
4300 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4300 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
(...skipping 1231 matching lines...) Expand 10 before | Expand all | Expand 10 after
5532 V8DOMWrapper::associateObjectWithWrapper<V8TestObject>(impl, &info, wrapper, isolate, WrapperConfiguration::Independent); 5532 V8DOMWrapper::associateObjectWithWrapper<V8TestObject>(impl, &info, wrapper, isolate, WrapperConfiguration::Independent);
5533 return wrapper; 5533 return wrapper;
5534 } 5534 }
5535 5535
5536 void V8TestObject::derefObject(void* object) 5536 void V8TestObject::derefObject(void* object)
5537 { 5537 {
5538 fromInternalPointer(object)->deref(); 5538 fromInternalPointer(object)->deref();
5539 } 5539 }
5540 5540
5541 } // namespace WebCore 5541 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/scripts/unstable/v8_types.py ('k') | Source/bindings/tests/results/V8TestObjectPython.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698