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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 { | 120 { |
121 return V8PerIsolateData::from(isolate)->hasInstance(&info, value, MainWorld) | 121 return V8PerIsolateData::from(isolate)->hasInstance(&info, value, MainWorld) |
122 || V8PerIsolateData::from(isolate)->hasInstance(&info, value, IsolatedWo
rld) | 122 || V8PerIsolateData::from(isolate)->hasInstance(&info, value, IsolatedWo
rld) |
123 || V8PerIsolateData::from(isolate)->hasInstance(&info, value, WorkerWorl
d); | 123 || V8PerIsolateData::from(isolate)->hasInstance(&info, value, WorkerWorl
d); |
124 } | 124 } |
125 | 125 |
126 | 126 |
127 v8::Handle<v8::Object> V8TestException::createWrapper(PassRefPtr<TestException>
impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) | 127 v8::Handle<v8::Object> V8TestException::createWrapper(PassRefPtr<TestException>
impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) |
128 { | 128 { |
129 ASSERT(impl.get()); | 129 ASSERT(impl.get()); |
130 ASSERT(DOMDataStore::getWrapper(impl.get(), isolate).IsEmpty()); | 130 ASSERT(DOMDataStore::getWrapper<V8TestException>(impl.get(), isolate).IsEmpt
y()); |
131 | 131 |
132 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext
, &info, impl.get(), isolate); | 132 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext
, &info, toInternalPointer(impl.get()), isolate); |
133 if (UNLIKELY(wrapper.IsEmpty())) | 133 if (UNLIKELY(wrapper.IsEmpty())) |
134 return wrapper; | 134 return wrapper; |
135 installPerContextProperties(wrapper, impl.get(), isolate); | 135 installPerContextProperties(wrapper, impl.get(), isolate); |
136 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, Wrap
perConfiguration::Independent); | 136 V8DOMWrapper::associateObjectWithWrapper<V8TestException>(impl, &info, wrapp
er, isolate, WrapperConfiguration::Independent); |
137 return wrapper; | 137 return wrapper; |
138 } | 138 } |
139 void V8TestException::derefObject(void* object) | 139 void V8TestException::derefObject(void* object) |
140 { | 140 { |
141 static_cast<TestException*>(object)->deref(); | 141 fromInternalPointer(object)->deref(); |
142 } | 142 } |
143 | 143 |
144 } // namespace WebCore | 144 } // namespace WebCore |
OLD | NEW |