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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 | 65 |
66 template <typename T> void V8_USE(T) { } | 66 template <typename T> void V8_USE(T) { } |
67 | 67 |
68 static void constructor1(const v8::FunctionCallbackInfo<v8::Value>& args) | 68 static void constructor1(const v8::FunctionCallbackInfo<v8::Value>& args) |
69 { | 69 { |
70 V8TRYCATCH_VOID(ArrayBuffer*, arrayBuffer, args[0]->IsArrayBuffer() ? V8Arra
yBuffer::toNative(v8::Handle<v8::ArrayBuffer>::Cast(args[0])) : 0); | 70 V8TRYCATCH_VOID(ArrayBuffer*, arrayBuffer, args[0]->IsArrayBuffer() ? V8Arra
yBuffer::toNative(v8::Handle<v8::ArrayBuffer>::Cast(args[0])) : 0); |
71 | 71 |
72 RefPtr<TestOverloadedConstructors> impl = TestOverloadedConstructors::create
(arrayBuffer); | 72 RefPtr<TestOverloadedConstructors> impl = TestOverloadedConstructors::create
(arrayBuffer); |
73 v8::Handle<v8::Object> wrapper = args.Holder(); | 73 v8::Handle<v8::Object> wrapper = args.Holder(); |
74 | 74 |
75 V8DOMWrapper::associateObjectWithWrapper(impl.release(), &V8TestOverloadedCo
nstructors::info, wrapper, args.GetIsolate(), WrapperConfiguration::Dependent); | 75 V8DOMWrapper::associateObjectWithWrapper<V8TestOverloadedConstructors>(impl.
release(), &V8TestOverloadedConstructors::info, wrapper, args.GetIsolate(), Wrap
perConfiguration::Dependent); |
76 args.GetReturnValue().Set(wrapper); | 76 args.GetReturnValue().Set(wrapper); |
77 } | 77 } |
78 | 78 |
79 static void constructor2(const v8::FunctionCallbackInfo<v8::Value>& args) | 79 static void constructor2(const v8::FunctionCallbackInfo<v8::Value>& args) |
80 { | 80 { |
81 V8TRYCATCH_VOID(ArrayBufferView*, arrayBufferView, V8ArrayBufferView::HasIns
tance(args[0], args.GetIsolate(), worldType(args.GetIsolate())) ? V8ArrayBufferV
iew::toNative(v8::Handle<v8::Object>::Cast(args[0])) : 0); | 81 V8TRYCATCH_VOID(ArrayBufferView*, arrayBufferView, V8ArrayBufferView::HasIns
tance(args[0], args.GetIsolate(), worldType(args.GetIsolate())) ? V8ArrayBufferV
iew::toNative(v8::Handle<v8::Object>::Cast(args[0])) : 0); |
82 | 82 |
83 RefPtr<TestOverloadedConstructors> impl = TestOverloadedConstructors::create
(arrayBufferView); | 83 RefPtr<TestOverloadedConstructors> impl = TestOverloadedConstructors::create
(arrayBufferView); |
84 v8::Handle<v8::Object> wrapper = args.Holder(); | 84 v8::Handle<v8::Object> wrapper = args.Holder(); |
85 | 85 |
86 V8DOMWrapper::associateObjectWithWrapper(impl.release(), &V8TestOverloadedCo
nstructors::info, wrapper, args.GetIsolate(), WrapperConfiguration::Dependent); | 86 V8DOMWrapper::associateObjectWithWrapper<V8TestOverloadedConstructors>(impl.
release(), &V8TestOverloadedConstructors::info, wrapper, args.GetIsolate(), Wrap
perConfiguration::Dependent); |
87 args.GetReturnValue().Set(wrapper); | 87 args.GetReturnValue().Set(wrapper); |
88 } | 88 } |
89 | 89 |
90 static void constructor3(const v8::FunctionCallbackInfo<v8::Value>& args) | 90 static void constructor3(const v8::FunctionCallbackInfo<v8::Value>& args) |
91 { | 91 { |
92 V8TRYCATCH_VOID(Blob*, blob, V8Blob::HasInstance(args[0], args.GetIsolate(),
worldType(args.GetIsolate())) ? V8Blob::toNative(v8::Handle<v8::Object>::Cast(a
rgs[0])) : 0); | 92 V8TRYCATCH_VOID(Blob*, blob, V8Blob::HasInstance(args[0], args.GetIsolate(),
worldType(args.GetIsolate())) ? V8Blob::toNative(v8::Handle<v8::Object>::Cast(a
rgs[0])) : 0); |
93 | 93 |
94 RefPtr<TestOverloadedConstructors> impl = TestOverloadedConstructors::create
(blob); | 94 RefPtr<TestOverloadedConstructors> impl = TestOverloadedConstructors::create
(blob); |
95 v8::Handle<v8::Object> wrapper = args.Holder(); | 95 v8::Handle<v8::Object> wrapper = args.Holder(); |
96 | 96 |
97 V8DOMWrapper::associateObjectWithWrapper(impl.release(), &V8TestOverloadedCo
nstructors::info, wrapper, args.GetIsolate(), WrapperConfiguration::Dependent); | 97 V8DOMWrapper::associateObjectWithWrapper<V8TestOverloadedConstructors>(impl.
release(), &V8TestOverloadedConstructors::info, wrapper, args.GetIsolate(), Wrap
perConfiguration::Dependent); |
98 args.GetReturnValue().Set(wrapper); | 98 args.GetReturnValue().Set(wrapper); |
99 } | 99 } |
100 | 100 |
101 static void constructor4(const v8::FunctionCallbackInfo<v8::Value>& args) | 101 static void constructor4(const v8::FunctionCallbackInfo<v8::Value>& args) |
102 { | 102 { |
103 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, string, args[0]); | 103 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, string, args[0]); |
104 | 104 |
105 RefPtr<TestOverloadedConstructors> impl = TestOverloadedConstructors::create
(string); | 105 RefPtr<TestOverloadedConstructors> impl = TestOverloadedConstructors::create
(string); |
106 v8::Handle<v8::Object> wrapper = args.Holder(); | 106 v8::Handle<v8::Object> wrapper = args.Holder(); |
107 | 107 |
108 V8DOMWrapper::associateObjectWithWrapper(impl.release(), &V8TestOverloadedCo
nstructors::info, wrapper, args.GetIsolate(), WrapperConfiguration::Dependent); | 108 V8DOMWrapper::associateObjectWithWrapper<V8TestOverloadedConstructors>(impl.
release(), &V8TestOverloadedConstructors::info, wrapper, args.GetIsolate(), Wrap
perConfiguration::Dependent); |
109 args.GetReturnValue().Set(wrapper); | 109 args.GetReturnValue().Set(wrapper); |
110 } | 110 } |
111 | 111 |
112 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& args) | 112 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& args) |
113 { | 113 { |
114 if ((args.Length() == 1 && (V8ArrayBuffer::HasInstance(args[0], args.GetIsol
ate(), worldType(args.GetIsolate()))))) { | 114 if ((args.Length() == 1 && (V8ArrayBuffer::HasInstance(args[0], args.GetIsol
ate(), worldType(args.GetIsolate()))))) { |
115 TestOverloadedConstructorsV8Internal::constructor1(args); | 115 TestOverloadedConstructorsV8Internal::constructor1(args); |
116 return; | 116 return; |
117 } | 117 } |
118 if ((args.Length() == 1 && (V8ArrayBufferView::HasInstance(args[0], args.Get
Isolate(), worldType(args.GetIsolate()))))) { | 118 if ((args.Length() == 1 && (V8ArrayBufferView::HasInstance(args[0], args.Get
Isolate(), worldType(args.GetIsolate()))))) { |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 { | 194 { |
195 return V8PerIsolateData::from(isolate)->hasInstance(&info, value, MainWorld) | 195 return V8PerIsolateData::from(isolate)->hasInstance(&info, value, MainWorld) |
196 || V8PerIsolateData::from(isolate)->hasInstance(&info, value, IsolatedWo
rld) | 196 || V8PerIsolateData::from(isolate)->hasInstance(&info, value, IsolatedWo
rld) |
197 || V8PerIsolateData::from(isolate)->hasInstance(&info, value, WorkerWorl
d); | 197 || V8PerIsolateData::from(isolate)->hasInstance(&info, value, WorkerWorl
d); |
198 } | 198 } |
199 | 199 |
200 | 200 |
201 v8::Handle<v8::Object> V8TestOverloadedConstructors::createWrapper(PassRefPtr<Te
stOverloadedConstructors> impl, v8::Handle<v8::Object> creationContext, v8::Isol
ate* isolate) | 201 v8::Handle<v8::Object> V8TestOverloadedConstructors::createWrapper(PassRefPtr<Te
stOverloadedConstructors> impl, v8::Handle<v8::Object> creationContext, v8::Isol
ate* isolate) |
202 { | 202 { |
203 ASSERT(impl.get()); | 203 ASSERT(impl.get()); |
204 ASSERT(DOMDataStore::getWrapper(impl.get(), isolate).IsEmpty()); | 204 ASSERT(DOMDataStore::getWrapper<V8TestOverloadedConstructors>(impl.get(), is
olate).IsEmpty()); |
205 | 205 |
206 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext
, &info, impl.get(), isolate); | 206 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext
, &info, toInternalPointer(impl.get()), isolate); |
207 if (UNLIKELY(wrapper.IsEmpty())) | 207 if (UNLIKELY(wrapper.IsEmpty())) |
208 return wrapper; | 208 return wrapper; |
209 installPerContextProperties(wrapper, impl.get(), isolate); | 209 installPerContextProperties(wrapper, impl.get(), isolate); |
210 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, Wrap
perConfiguration::Independent); | 210 V8DOMWrapper::associateObjectWithWrapper<V8TestOverloadedConstructors>(impl,
&info, wrapper, isolate, WrapperConfiguration::Independent); |
211 return wrapper; | 211 return wrapper; |
212 } | 212 } |
213 void V8TestOverloadedConstructors::derefObject(void* object) | 213 void V8TestOverloadedConstructors::derefObject(void* object) |
214 { | 214 { |
215 static_cast<TestOverloadedConstructors*>(object)->deref(); | 215 fromInternalPointer(object)->deref(); |
216 } | 216 } |
217 | 217 |
218 } // namespace WebCore | 218 } // namespace WebCore |
OLD | NEW |