| 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 10 matching lines...) Expand all Loading... |
| 21 #include "config.h" | 21 #include "config.h" |
| 22 #if ENABLE(Condition1) || ENABLE(Condition2) | 22 #if ENABLE(Condition1) || ENABLE(Condition2) |
| 23 #include "V8TestInterface.h" | 23 #include "V8TestInterface.h" |
| 24 | 24 |
| 25 #include "RuntimeEnabledFeatures.h" | 25 #include "RuntimeEnabledFeatures.h" |
| 26 #include "V8Node.h" | 26 #include "V8Node.h" |
| 27 #include "V8NodeList.h" | 27 #include "V8NodeList.h" |
| 28 #include "V8TestObject.h" | 28 #include "V8TestObject.h" |
| 29 #include "bindings/tests/idls/TestImplements.h" | 29 #include "bindings/tests/idls/TestImplements.h" |
| 30 #include "bindings/tests/idls/TestPartialInterface.h" | 30 #include "bindings/tests/idls/TestPartialInterface.h" |
| 31 #include "bindings/v8/ExceptionMessages.h" |
| 31 #include "bindings/v8/ExceptionState.h" | 32 #include "bindings/v8/ExceptionState.h" |
| 32 #include "bindings/v8/ScriptController.h" | 33 #include "bindings/v8/ScriptController.h" |
| 33 #include "bindings/v8/V8Binding.h" | 34 #include "bindings/v8/V8Binding.h" |
| 34 #include "bindings/v8/V8DOMConfiguration.h" | 35 #include "bindings/v8/V8DOMConfiguration.h" |
| 35 #include "bindings/v8/V8DOMWrapper.h" | 36 #include "bindings/v8/V8DOMWrapper.h" |
| 36 #include "bindings/v8/V8ObjectConstructor.h" | 37 #include "bindings/v8/V8ObjectConstructor.h" |
| 37 #include "core/dom/ContextFeatures.h" | 38 #include "core/dom/ContextFeatures.h" |
| 38 #include "core/dom/Document.h" | 39 #include "core/dom/Document.h" |
| 39 #include "core/platform/chromium/TraceEvent.h" | 40 #include "core/platform/chromium/TraceEvent.h" |
| 40 #include "wtf/GetPtr.h" | 41 #include "wtf/GetPtr.h" |
| (...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 756 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 757 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 757 } | 758 } |
| 758 | 759 |
| 759 #endif // ENABLE(Condition22) || ENABLE(Condition23) | 760 #endif // ENABLE(Condition22) || ENABLE(Condition23) |
| 760 | 761 |
| 761 #if ENABLE(Condition22) || ENABLE(Condition23) | 762 #if ENABLE(Condition22) || ENABLE(Condition23) |
| 762 | 763 |
| 763 static void implementsMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& a
rgs) | 764 static void implementsMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& a
rgs) |
| 764 { | 765 { |
| 765 if (UNLIKELY(args.Length() < 2)) { | 766 if (UNLIKELY(args.Length() < 2)) { |
| 766 throwNotEnoughArgumentsError(args.GetIsolate()); | 767 throwTypeError(ExceptionMessages::failedToExecute("implementsMethod2", "
TestInterface", ExceptionMessages::notEnoughArguments(2, args.Length())), args.G
etIsolate()); |
| 767 return; | 768 return; |
| 768 } | 769 } |
| 769 TestInterface* imp = V8TestInterface::toNative(args.Holder()); | 770 TestInterface* imp = V8TestInterface::toNative(args.Holder()); |
| 770 ExceptionState es(args.GetIsolate()); | 771 ExceptionState es(args.GetIsolate()); |
| 771 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, strArg, args[0]); | 772 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, strArg, args[0]); |
| 772 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); |
| 773 ScriptExecutionContext* scriptContext = getScriptExecutionContext(); | 774 ScriptExecutionContext* scriptContext = getScriptExecutionContext(); |
| 774 RefPtr<TestObj> result = TestImplements::implementsMethod2(scriptContext, im
p, strArg, objArg, es); | 775 RefPtr<TestObj> result = TestImplements::implementsMethod2(scriptContext, im
p, strArg, objArg, es); |
| 775 if (es.throwIfNeeded()) | 776 if (es.throwIfNeeded()) |
| 776 return; | 777 return; |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 845 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 846 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 846 } | 847 } |
| 847 | 848 |
| 848 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 849 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 849 | 850 |
| 850 #if ENABLE(Condition11) || ENABLE(Condition12) | 851 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 851 | 852 |
| 852 static void supplementalMethod2Method(const v8::FunctionCallbackInfo<v8::Value>&
args) | 853 static void supplementalMethod2Method(const v8::FunctionCallbackInfo<v8::Value>&
args) |
| 853 { | 854 { |
| 854 if (UNLIKELY(args.Length() < 2)) { | 855 if (UNLIKELY(args.Length() < 2)) { |
| 855 throwNotEnoughArgumentsError(args.GetIsolate()); | 856 throwTypeError(ExceptionMessages::failedToExecute("supplementalMethod2",
"TestInterface", ExceptionMessages::notEnoughArguments(2, args.Length())), args
.GetIsolate()); |
| 856 return; | 857 return; |
| 857 } | 858 } |
| 858 TestInterface* imp = V8TestInterface::toNative(args.Holder()); | 859 TestInterface* imp = V8TestInterface::toNative(args.Holder()); |
| 859 ExceptionState es(args.GetIsolate()); | 860 ExceptionState es(args.GetIsolate()); |
| 860 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, strArg, args[0]); | 861 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, strArg, args[0]); |
| 861 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); |
| 862 ScriptExecutionContext* scriptContext = getScriptExecutionContext(); | 863 ScriptExecutionContext* scriptContext = getScriptExecutionContext(); |
| 863 RefPtr<TestObj> result = TestPartialInterface::supplementalMethod2(scriptCon
text, imp, strArg, objArg, es); | 864 RefPtr<TestObj> result = TestPartialInterface::supplementalMethod2(scriptCon
text, imp, strArg, objArg, es); |
| 864 if (es.throwIfNeeded()) | 865 if (es.throwIfNeeded()) |
| 865 return; | 866 return; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 909 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 910 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 910 TestInterfaceV8Internal::supplementalMethod4Method(args); | 911 TestInterfaceV8Internal::supplementalMethod4Method(args); |
| 911 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 912 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 912 } | 913 } |
| 913 | 914 |
| 914 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 915 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 915 | 916 |
| 916 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& args) | 917 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& args) |
| 917 { | 918 { |
| 918 if (UNLIKELY(args.Length() < 1)) { | 919 if (UNLIKELY(args.Length() < 1)) { |
| 919 throwNotEnoughArgumentsError(args.GetIsolate()); | 920 throwTypeError(ExceptionMessages::failedToExecute("Constructor", "TestIn
terface", ExceptionMessages::notEnoughArguments(1, args.Length())), args.GetIsol
ate()); |
| 920 return; | 921 return; |
| 921 } | 922 } |
| 922 ExceptionState es(args.GetIsolate()); | 923 ExceptionState es(args.GetIsolate()); |
| 923 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, str1, args[0]); | 924 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, str1, args[0]); |
| 924 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, str2, args[1]); | 925 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, str2, args[1]); |
| 925 | 926 |
| 926 ScriptExecutionContext* context = getScriptExecutionContext(); | 927 ScriptExecutionContext* context = getScriptExecutionContext(); |
| 927 RefPtr<TestInterface> impl = TestInterface::create(context, str1, str2, es); | 928 RefPtr<TestInterface> impl = TestInterface::create(context, str1, str2, es); |
| 928 v8::Handle<v8::Object> wrapper = args.Holder(); | 929 v8::Handle<v8::Object> wrapper = args.Holder(); |
| 929 if (es.throwIfNeeded()) | 930 if (es.throwIfNeeded()) |
| (...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1253 } | 1254 } |
| 1254 | 1255 |
| 1255 void V8TestInterface::derefObject(void* object) | 1256 void V8TestInterface::derefObject(void* object) |
| 1256 { | 1257 { |
| 1257 fromInternalPointer(object)->deref(); | 1258 fromInternalPointer(object)->deref(); |
| 1258 } | 1259 } |
| 1259 | 1260 |
| 1260 } // namespace WebCore | 1261 } // namespace WebCore |
| 1261 | 1262 |
| 1262 #endif // ENABLE(Condition1) || ENABLE(Condition2) | 1263 #endif // ENABLE(Condition1) || ENABLE(Condition2) |
| OLD | NEW |