| 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, |
| 11 but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 Library General Public License for more details. | 13 Library General Public License for more details. |
| 14 | 14 |
| 15 You should have received a copy of the GNU Library General Public License | 15 You should have received a copy of the GNU Library General Public License |
| 16 along with this library; see the file COPYING.LIB. If not, write to | 16 along with this library; see the file COPYING.LIB. If not, write to |
| 17 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 17 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
| 18 Boston, MA 02111-1307, USA. | 18 Boston, MA 02111-1307, USA. |
| 19 */ | 19 */ |
| 20 | 20 |
| 21 #include "config.h" | 21 #include "config.h" |
| 22 #include "V8TestOverloadedConstructors.h" | 22 #include "V8TestOverloadedConstructors.h" |
| 23 | 23 |
| 24 #include "RuntimeEnabledFeatures.h" | 24 #include "RuntimeEnabledFeatures.h" |
| 25 #include "V8Blob.h" | 25 #include "V8Blob.h" |
| 26 #include "bindings/v8/ExceptionMessages.h" |
| 26 #include "bindings/v8/ExceptionState.h" | 27 #include "bindings/v8/ExceptionState.h" |
| 27 #include "bindings/v8/ScriptController.h" | 28 #include "bindings/v8/ScriptController.h" |
| 28 #include "bindings/v8/V8Binding.h" | 29 #include "bindings/v8/V8Binding.h" |
| 29 #include "bindings/v8/V8DOMConfiguration.h" | 30 #include "bindings/v8/V8DOMConfiguration.h" |
| 30 #include "bindings/v8/V8DOMWrapper.h" | 31 #include "bindings/v8/V8DOMWrapper.h" |
| 31 #include "bindings/v8/V8ObjectConstructor.h" | 32 #include "bindings/v8/V8ObjectConstructor.h" |
| 32 #include "bindings/v8/custom/V8ArrayBufferCustom.h" | 33 #include "bindings/v8/custom/V8ArrayBufferCustom.h" |
| 33 #include "bindings/v8/custom/V8ArrayBufferViewCustom.h" | 34 #include "bindings/v8/custom/V8ArrayBufferViewCustom.h" |
| 34 #include "core/dom/ContextFeatures.h" | 35 #include "core/dom/ContextFeatures.h" |
| 35 #include "core/dom/Document.h" | 36 #include "core/dom/Document.h" |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 } | 121 } |
| 121 if ((args.Length() == 1 && (V8Blob::HasInstance(args[0], args.GetIsolate(),
worldType(args.GetIsolate()))))) { | 122 if ((args.Length() == 1 && (V8Blob::HasInstance(args[0], args.GetIsolate(),
worldType(args.GetIsolate()))))) { |
| 122 TestOverloadedConstructorsV8Internal::constructor3(args); | 123 TestOverloadedConstructorsV8Internal::constructor3(args); |
| 123 return; | 124 return; |
| 124 } | 125 } |
| 125 if (args.Length() == 1) { | 126 if (args.Length() == 1) { |
| 126 TestOverloadedConstructorsV8Internal::constructor4(args); | 127 TestOverloadedConstructorsV8Internal::constructor4(args); |
| 127 return; | 128 return; |
| 128 } | 129 } |
| 129 if (UNLIKELY(args.Length() < 1)) { | 130 if (UNLIKELY(args.Length() < 1)) { |
| 130 throwNotEnoughArgumentsError(args.GetIsolate()); | 131 throwTypeError(ExceptionMessages::failedToConstruct("TestOverloadedConst
ructors", ExceptionMessages::notEnoughArguments(1, args.Length())), args.GetIsol
ate()); |
| 131 return; | 132 return; |
| 132 } | 133 } |
| 133 throwTypeError(args.GetIsolate()); | 134 throwTypeError(args.GetIsolate()); |
| 134 return; | 135 return; |
| 135 } | 136 } |
| 136 | 137 |
| 137 } // namespace TestOverloadedConstructorsV8Internal | 138 } // namespace TestOverloadedConstructorsV8Internal |
| 138 | 139 |
| 139 void V8TestOverloadedConstructors::constructorCallback(const v8::FunctionCallbac
kInfo<v8::Value>& args) | 140 void V8TestOverloadedConstructors::constructorCallback(const v8::FunctionCallbac
kInfo<v8::Value>& args) |
| 140 { | 141 { |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 V8DOMWrapper::associateObjectWithWrapper<V8TestOverloadedConstructors>(impl,
&info, wrapper, isolate, WrapperConfiguration::Independent); | 216 V8DOMWrapper::associateObjectWithWrapper<V8TestOverloadedConstructors>(impl,
&info, wrapper, isolate, WrapperConfiguration::Independent); |
| 216 return wrapper; | 217 return wrapper; |
| 217 } | 218 } |
| 218 | 219 |
| 219 void V8TestOverloadedConstructors::derefObject(void* object) | 220 void V8TestOverloadedConstructors::derefObject(void* object) |
| 220 { | 221 { |
| 221 fromInternalPointer(object)->deref(); | 222 fromInternalPointer(object)->deref(); |
| 222 } | 223 } |
| 223 | 224 |
| 224 } // namespace WebCore | 225 } // namespace WebCore |
| OLD | NEW |