| 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 745 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 756 TestInterfaceV8Internal::implementsMethod1Method(args); | 756 TestInterfaceV8Internal::implementsMethod1Method(args); |
| 757 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 757 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 758 } | 758 } |
| 759 | 759 |
| 760 #endif // ENABLE(Condition22) || ENABLE(Condition23) | 760 #endif // ENABLE(Condition22) || ENABLE(Condition23) |
| 761 | 761 |
| 762 #if ENABLE(Condition22) || ENABLE(Condition23) | 762 #if ENABLE(Condition22) || ENABLE(Condition23) |
| 763 | 763 |
| 764 static void implementsMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& a
rgs) | 764 static void implementsMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& a
rgs) |
| 765 { | 765 { |
| 766 if (args.Length() < 2) { | 766 if (UNLIKELY(args.Length() < 2)) { |
| 767 throwNotEnoughArgumentsError(args.GetIsolate()); | 767 throwNotEnoughArgumentsError(args.GetIsolate()); |
| 768 return; | 768 return; |
| 769 } | 769 } |
| 770 TestInterface* imp = V8TestInterface::toNative(args.Holder()); | 770 TestInterface* imp = V8TestInterface::toNative(args.Holder()); |
| 771 ExceptionState es(args.GetIsolate()); | 771 ExceptionState es(args.GetIsolate()); |
| 772 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, strArg, args[0]); | 772 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, strArg, args[0]); |
| 773 V8TRYCATCH_VOID(TestObj*, objArg, V8TestObject::HasInstance(args[1], args.Ge
tIsolate(), worldType(args.GetIsolate())) ? V8TestObject::toNative(v8::Handle<v8
::Object>::Cast(args[1])) : 0); | 773 V8TRYCATCH_VOID(TestObj*, objArg, V8TestObject::HasInstance(args[1], args.Ge
tIsolate(), worldType(args.GetIsolate())) ? V8TestObject::toNative(v8::Handle<v8
::Object>::Cast(args[1])) : 0); |
| 774 ScriptExecutionContext* scriptContext = getScriptExecutionContext(); | 774 ScriptExecutionContext* scriptContext = getScriptExecutionContext(); |
| 775 RefPtr<TestObj> result = TestImplements::implementsMethod2(scriptContext, im
p, strArg, objArg, es); | 775 RefPtr<TestObj> result = TestImplements::implementsMethod2(scriptContext, im
p, strArg, objArg, es); |
| 776 if (es.throwIfNeeded()) | 776 if (es.throwIfNeeded()) |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 845 TestInterfaceV8Internal::supplementalMethod1Method(args); | 845 TestInterfaceV8Internal::supplementalMethod1Method(args); |
| 846 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 846 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 847 } | 847 } |
| 848 | 848 |
| 849 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 849 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 850 | 850 |
| 851 #if ENABLE(Condition11) || ENABLE(Condition12) | 851 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 852 | 852 |
| 853 static void supplementalMethod2Method(const v8::FunctionCallbackInfo<v8::Value>&
args) | 853 static void supplementalMethod2Method(const v8::FunctionCallbackInfo<v8::Value>&
args) |
| 854 { | 854 { |
| 855 if (args.Length() < 2) { | 855 if (UNLIKELY(args.Length() < 2)) { |
| 856 throwNotEnoughArgumentsError(args.GetIsolate()); | 856 throwNotEnoughArgumentsError(args.GetIsolate()); |
| 857 return; | 857 return; |
| 858 } | 858 } |
| 859 TestInterface* imp = V8TestInterface::toNative(args.Holder()); | 859 TestInterface* imp = V8TestInterface::toNative(args.Holder()); |
| 860 ExceptionState es(args.GetIsolate()); | 860 ExceptionState es(args.GetIsolate()); |
| 861 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, strArg, args[0]); | 861 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, strArg, args[0]); |
| 862 V8TRYCATCH_VOID(TestObj*, objArg, V8TestObject::HasInstance(args[1], args.Ge
tIsolate(), worldType(args.GetIsolate())) ? V8TestObject::toNative(v8::Handle<v8
::Object>::Cast(args[1])) : 0); | 862 V8TRYCATCH_VOID(TestObj*, objArg, V8TestObject::HasInstance(args[1], args.Ge
tIsolate(), worldType(args.GetIsolate())) ? V8TestObject::toNative(v8::Handle<v8
::Object>::Cast(args[1])) : 0); |
| 863 ScriptExecutionContext* scriptContext = getScriptExecutionContext(); | 863 ScriptExecutionContext* scriptContext = getScriptExecutionContext(); |
| 864 RefPtr<TestObj> result = TestPartialInterface::supplementalMethod2(scriptCon
text, imp, strArg, objArg, es); | 864 RefPtr<TestObj> result = TestPartialInterface::supplementalMethod2(scriptCon
text, imp, strArg, objArg, es); |
| 865 if (es.throwIfNeeded()) | 865 if (es.throwIfNeeded()) |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 909 { | 909 { |
| 910 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 910 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 911 TestInterfaceV8Internal::supplementalMethod4Method(args); | 911 TestInterfaceV8Internal::supplementalMethod4Method(args); |
| 912 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 912 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 913 } | 913 } |
| 914 | 914 |
| 915 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 915 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 916 | 916 |
| 917 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& args) | 917 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& args) |
| 918 { | 918 { |
| 919 if (args.Length() < 1) { | 919 if (UNLIKELY(args.Length() < 1)) { |
| 920 throwNotEnoughArgumentsError(args.GetIsolate()); | 920 throwNotEnoughArgumentsError(args.GetIsolate()); |
| 921 return; | 921 return; |
| 922 } | 922 } |
| 923 ExceptionState es(args.GetIsolate()); | 923 ExceptionState es(args.GetIsolate()); |
| 924 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, str1, args[0]); | 924 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, str1, args[0]); |
| 925 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, str2, args[1]); | 925 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, str2, args[1]); |
| 926 | 926 |
| 927 ScriptExecutionContext* context = getScriptExecutionContext(); | 927 ScriptExecutionContext* context = getScriptExecutionContext(); |
| 928 RefPtr<TestInterface> impl = TestInterface::create(context, str1, str2, es); | 928 RefPtr<TestInterface> impl = TestInterface::create(context, str1, str2, es); |
| 929 v8::Handle<v8::Object> wrapper = args.Holder(); | 929 v8::Handle<v8::Object> wrapper = args.Holder(); |
| (...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1254 } | 1254 } |
| 1255 | 1255 |
| 1256 void V8TestInterface::derefObject(void* object) | 1256 void V8TestInterface::derefObject(void* object) |
| 1257 { | 1257 { |
| 1258 fromInternalPointer(object)->deref(); | 1258 fromInternalPointer(object)->deref(); |
| 1259 } | 1259 } |
| 1260 | 1260 |
| 1261 } // namespace WebCore | 1261 } // namespace WebCore |
| 1262 | 1262 |
| 1263 #endif // ENABLE(Condition1) || ENABLE(Condition2) | 1263 #endif // ENABLE(Condition1) || ENABLE(Condition2) |
| OLD | NEW |