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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 | 189 |
190 bool V8TestExtendedEvent::HasInstanceInAnyWorld(v8::Handle<v8::Value> value, v8:
:Isolate* isolate) | 190 bool V8TestExtendedEvent::HasInstanceInAnyWorld(v8::Handle<v8::Value> value, v8:
:Isolate* isolate) |
191 { | 191 { |
192 return V8PerIsolateData::from(isolate)->hasInstance(&info, value, MainWorld) | 192 return V8PerIsolateData::from(isolate)->hasInstance(&info, value, MainWorld) |
193 || V8PerIsolateData::from(isolate)->hasInstance(&info, value, IsolatedWo
rld) | 193 || V8PerIsolateData::from(isolate)->hasInstance(&info, value, IsolatedWo
rld) |
194 || V8PerIsolateData::from(isolate)->hasInstance(&info, value, WorkerWorl
d); | 194 || V8PerIsolateData::from(isolate)->hasInstance(&info, value, WorkerWorl
d); |
195 } | 195 } |
196 | 196 |
197 v8::Handle<v8::Object> V8TestExtendedEvent::createWrapper(PassRefPtr<Event> impl
, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) | 197 v8::Handle<v8::Object> V8TestExtendedEvent::createWrapper(PassRefPtr<Event> impl
, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) |
198 { | 198 { |
199 ASSERT(impl.get()); | 199 ASSERT(impl); |
200 ASSERT(!DOMDataStore::containsWrapper<V8TestExtendedEvent>(impl.get(), isola
te)); | 200 ASSERT(!DOMDataStore::containsWrapper<V8TestExtendedEvent>(impl.get(), isola
te)); |
201 if (ScriptWrappable::wrapperCanBeStoredInObject(impl.get())) { | 201 if (ScriptWrappable::wrapperCanBeStoredInObject(impl.get())) { |
202 const WrapperTypeInfo* actualInfo = ScriptWrappable::getTypeInfoFromObje
ct(impl.get()); | 202 const WrapperTypeInfo* actualInfo = ScriptWrappable::getTypeInfoFromObje
ct(impl.get()); |
203 // Might be a XXXConstructor::info instead of an XXX::info. These will b
oth have | 203 // Might be a XXXConstructor::info instead of an XXX::info. These will b
oth have |
204 // the same object de-ref functions, though, so use that as the basis of
the check. | 204 // the same object de-ref functions, though, so use that as the basis of
the check. |
205 RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(actualInfo->derefObjectFunction
== info.derefObjectFunction); | 205 RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(actualInfo->derefObjectFunction
== info.derefObjectFunction); |
206 } | 206 } |
207 | 207 |
208 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext
, &info, toInternalPointer(impl.get()), isolate); | 208 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext
, &info, toInternalPointer(impl.get()), isolate); |
209 if (UNLIKELY(wrapper.IsEmpty())) | 209 if (UNLIKELY(wrapper.IsEmpty())) |
210 return wrapper; | 210 return wrapper; |
211 | 211 |
212 installPerContextProperties(wrapper, impl.get(), isolate); | 212 installPerContextProperties(wrapper, impl.get(), isolate); |
213 V8DOMWrapper::associateObjectWithWrapper<V8TestExtendedEvent>(impl, &info, w
rapper, isolate, WrapperConfiguration::Independent); | 213 V8DOMWrapper::associateObjectWithWrapper<V8TestExtendedEvent>(impl, &info, w
rapper, isolate, WrapperConfiguration::Independent); |
214 return wrapper; | 214 return wrapper; |
215 } | 215 } |
216 | 216 |
217 void V8TestExtendedEvent::derefObject(void* object) | 217 void V8TestExtendedEvent::derefObject(void* object) |
218 { | 218 { |
219 fromInternalPointer(object)->deref(); | 219 fromInternalPointer(object)->deref(); |
220 } | 220 } |
221 | 221 |
222 } // namespace WebCore | 222 } // namespace WebCore |
223 | 223 |
224 #endif // ENABLE(TEST) | 224 #endif // ENABLE(TEST) |
OLD | NEW |