| 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 { | 106 { |
| 107 return V8PerIsolateData::from(isolate)->hasInstance(&info, value, MainWorld) | 107 return V8PerIsolateData::from(isolate)->hasInstance(&info, value, MainWorld) |
| 108 || V8PerIsolateData::from(isolate)->hasInstance(&info, value, IsolatedWo
rld) | 108 || V8PerIsolateData::from(isolate)->hasInstance(&info, value, IsolatedWo
rld) |
| 109 || V8PerIsolateData::from(isolate)->hasInstance(&info, value, WorkerWorl
d); | 109 || V8PerIsolateData::from(isolate)->hasInstance(&info, value, WorkerWorl
d); |
| 110 } | 110 } |
| 111 | 111 |
| 112 | 112 |
| 113 v8::Handle<v8::Object> V8TestExtendedEvent::createWrapper(PassRefPtr<Event> impl
, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) | 113 v8::Handle<v8::Object> V8TestExtendedEvent::createWrapper(PassRefPtr<Event> impl
, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) |
| 114 { | 114 { |
| 115 ASSERT(impl.get()); | 115 ASSERT(impl.get()); |
| 116 ASSERT(DOMDataStore::getWrapper(impl.get(), isolate).IsEmpty()); | 116 ASSERT(DOMDataStore::getWrapper<V8TestExtendedEvent>(impl.get(), isolate).Is
Empty()); |
| 117 ASSERT(static_cast<void*>(static_cast<Event*>(impl.get())) == static_cast<vo
id*>(impl.get())); | |
| 118 | 117 |
| 119 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext
, &info, impl.get(), isolate); | 118 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext
, &info, toWrappedType(impl.get()), isolate); |
| 120 if (UNLIKELY(wrapper.IsEmpty())) | 119 if (UNLIKELY(wrapper.IsEmpty())) |
| 121 return wrapper; | 120 return wrapper; |
| 122 installPerContextProperties(wrapper, impl.get(), isolate); | 121 installPerContextProperties(wrapper, impl.get(), isolate); |
| 123 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, Wrap
perConfiguration::Independent); | 122 V8DOMWrapper::associateObjectWithWrapper<V8TestExtendedEvent>(impl, &info, w
rapper, isolate, WrapperConfiguration::Independent); |
| 124 return wrapper; | 123 return wrapper; |
| 125 } | 124 } |
| 126 void V8TestExtendedEvent::derefObject(void* object) | 125 void V8TestExtendedEvent::derefObject(void* object) |
| 127 { | 126 { |
| 128 static_cast<Event*>(object)->deref(); | 127 fromWrappedType(object)->deref(); |
| 129 } | 128 } |
| 130 | 129 |
| 131 } // namespace WebCore | 130 } // namespace WebCore |
| 132 | 131 |
| 133 #endif // ENABLE(TEST) | 132 #endif // ENABLE(TEST) |
| OLD | NEW |