| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 namespace WebCore { | 55 namespace WebCore { |
| 56 #endif | 56 #endif |
| 57 WrapperTypeInfo V8TestOverloadedConstructors::info = { V8TestOverloadedConstruct
ors::GetTemplate, V8TestOverloadedConstructors::derefObject, 0, 0, 0, V8TestOver
loadedConstructors::installPerContextPrototypeProperties, 0, WrapperTypeObjectPr
ototype }; | 57 WrapperTypeInfo V8TestOverloadedConstructors::info = { V8TestOverloadedConstruct
ors::GetTemplate, V8TestOverloadedConstructors::derefObject, 0, 0, 0, V8TestOver
loadedConstructors::installPerContextPrototypeProperties, 0, WrapperTypeObjectPr
ototype }; |
| 58 | 58 |
| 59 namespace TestOverloadedConstructorsV8Internal { | 59 namespace TestOverloadedConstructorsV8Internal { |
| 60 | 60 |
| 61 template <typename T> void V8_USE(T) { } | 61 template <typename T> void V8_USE(T) { } |
| 62 | 62 |
| 63 static v8::Handle<v8::Value> constructor1(const v8::Arguments& args) | 63 static v8::Handle<v8::Value> constructor1(const v8::Arguments& args) |
| 64 { | 64 { |
| 65 | |
| 66 ExceptionCode ec = 0; | |
| 67 V8TRYCATCH(ArrayBuffer*, arrayBuffer, V8ArrayBuffer::HasInstance(args[0], ar
gs.GetIsolate(), worldType(args.GetIsolate())) ? V8ArrayBuffer::toNative(v8::Han
dle<v8::Object>::Cast(args[0])) : 0); | 65 V8TRYCATCH(ArrayBuffer*, arrayBuffer, V8ArrayBuffer::HasInstance(args[0], ar
gs.GetIsolate(), worldType(args.GetIsolate())) ? V8ArrayBuffer::toNative(v8::Han
dle<v8::Object>::Cast(args[0])) : 0); |
| 68 | 66 |
| 69 RefPtr<TestOverloadedConstructors> impl = TestOverloadedConstructors::create
(arrayBuffer); | 67 RefPtr<TestOverloadedConstructors> impl = TestOverloadedConstructors::create
(arrayBuffer); |
| 70 v8::Handle<v8::Object> wrapper = args.Holder(); | 68 v8::Handle<v8::Object> wrapper = args.Holder(); |
| 71 | 69 |
| 72 V8DOMWrapper::associateObjectWithWrapper(impl.release(), &V8TestOverloadedCo
nstructors::info, wrapper, args.GetIsolate(), WrapperConfiguration::Dependent); | 70 V8DOMWrapper::associateObjectWithWrapper(impl.release(), &V8TestOverloadedCo
nstructors::info, wrapper, args.GetIsolate(), WrapperConfiguration::Dependent); |
| 73 return wrapper; | 71 return wrapper; |
| 74 } | 72 } |
| 75 | 73 |
| 76 static v8::Handle<v8::Value> constructor2(const v8::Arguments& args) | 74 static v8::Handle<v8::Value> constructor2(const v8::Arguments& args) |
| 77 { | 75 { |
| 78 | |
| 79 ExceptionCode ec = 0; | |
| 80 V8TRYCATCH(ArrayBufferView*, arrayBufferView, V8ArrayBufferView::HasInstance
(args[0], args.GetIsolate(), worldType(args.GetIsolate())) ? V8ArrayBufferView::
toNative(v8::Handle<v8::Object>::Cast(args[0])) : 0); | 76 V8TRYCATCH(ArrayBufferView*, arrayBufferView, V8ArrayBufferView::HasInstance
(args[0], args.GetIsolate(), worldType(args.GetIsolate())) ? V8ArrayBufferView::
toNative(v8::Handle<v8::Object>::Cast(args[0])) : 0); |
| 81 | 77 |
| 82 RefPtr<TestOverloadedConstructors> impl = TestOverloadedConstructors::create
(arrayBufferView); | 78 RefPtr<TestOverloadedConstructors> impl = TestOverloadedConstructors::create
(arrayBufferView); |
| 83 v8::Handle<v8::Object> wrapper = args.Holder(); | 79 v8::Handle<v8::Object> wrapper = args.Holder(); |
| 84 | 80 |
| 85 V8DOMWrapper::associateObjectWithWrapper(impl.release(), &V8TestOverloadedCo
nstructors::info, wrapper, args.GetIsolate(), WrapperConfiguration::Dependent); | 81 V8DOMWrapper::associateObjectWithWrapper(impl.release(), &V8TestOverloadedCo
nstructors::info, wrapper, args.GetIsolate(), WrapperConfiguration::Dependent); |
| 86 return wrapper; | 82 return wrapper; |
| 87 } | 83 } |
| 88 | 84 |
| 89 static v8::Handle<v8::Value> constructor3(const v8::Arguments& args) | 85 static v8::Handle<v8::Value> constructor3(const v8::Arguments& args) |
| 90 { | 86 { |
| 91 | |
| 92 ExceptionCode ec = 0; | |
| 93 V8TRYCATCH(Blob*, blob, V8Blob::HasInstance(args[0], args.GetIsolate(), worl
dType(args.GetIsolate())) ? V8Blob::toNative(v8::Handle<v8::Object>::Cast(args[0
])) : 0); | 87 V8TRYCATCH(Blob*, blob, V8Blob::HasInstance(args[0], args.GetIsolate(), worl
dType(args.GetIsolate())) ? V8Blob::toNative(v8::Handle<v8::Object>::Cast(args[0
])) : 0); |
| 94 | 88 |
| 95 RefPtr<TestOverloadedConstructors> impl = TestOverloadedConstructors::create
(blob); | 89 RefPtr<TestOverloadedConstructors> impl = TestOverloadedConstructors::create
(blob); |
| 96 v8::Handle<v8::Object> wrapper = args.Holder(); | 90 v8::Handle<v8::Object> wrapper = args.Holder(); |
| 97 | 91 |
| 98 V8DOMWrapper::associateObjectWithWrapper(impl.release(), &V8TestOverloadedCo
nstructors::info, wrapper, args.GetIsolate(), WrapperConfiguration::Dependent); | 92 V8DOMWrapper::associateObjectWithWrapper(impl.release(), &V8TestOverloadedCo
nstructors::info, wrapper, args.GetIsolate(), WrapperConfiguration::Dependent); |
| 99 return wrapper; | 93 return wrapper; |
| 100 } | 94 } |
| 101 | 95 |
| 102 static v8::Handle<v8::Value> constructor4(const v8::Arguments& args) | 96 static v8::Handle<v8::Value> constructor4(const v8::Arguments& args) |
| 103 { | 97 { |
| 104 | |
| 105 ExceptionCode ec = 0; | |
| 106 V8TRYCATCH_FOR_V8STRINGRESOURCE(V8StringResource<>, string, args[0]); | 98 V8TRYCATCH_FOR_V8STRINGRESOURCE(V8StringResource<>, string, args[0]); |
| 107 | 99 |
| 108 RefPtr<TestOverloadedConstructors> impl = TestOverloadedConstructors::create
(string); | 100 RefPtr<TestOverloadedConstructors> impl = TestOverloadedConstructors::create
(string); |
| 109 v8::Handle<v8::Object> wrapper = args.Holder(); | 101 v8::Handle<v8::Object> wrapper = args.Holder(); |
| 110 | 102 |
| 111 V8DOMWrapper::associateObjectWithWrapper(impl.release(), &V8TestOverloadedCo
nstructors::info, wrapper, args.GetIsolate(), WrapperConfiguration::Dependent); | 103 V8DOMWrapper::associateObjectWithWrapper(impl.release(), &V8TestOverloadedCo
nstructors::info, wrapper, args.GetIsolate(), WrapperConfiguration::Dependent); |
| 112 return wrapper; | 104 return wrapper; |
| 113 } | 105 } |
| 114 | 106 |
| 115 static v8::Handle<v8::Value> constructor(const v8::Arguments& args) | 107 static v8::Handle<v8::Value> constructor(const v8::Arguments& args) |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 installPerContextProperties(wrapper, impl.get(), isolate); | 188 installPerContextProperties(wrapper, impl.get(), isolate); |
| 197 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, Wrap
perConfiguration::Independent); | 189 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, Wrap
perConfiguration::Independent); |
| 198 return wrapper; | 190 return wrapper; |
| 199 } | 191 } |
| 200 void V8TestOverloadedConstructors::derefObject(void* object) | 192 void V8TestOverloadedConstructors::derefObject(void* object) |
| 201 { | 193 { |
| 202 static_cast<TestOverloadedConstructors*>(object)->deref(); | 194 static_cast<TestOverloadedConstructors*>(object)->deref(); |
| 203 } | 195 } |
| 204 | 196 |
| 205 } // namespace WebCore | 197 } // namespace WebCore |
| OLD | NEW |