| 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 || V8PerIsolateData::from(isolate)->hasInstance(&info, value, WorkerWorl
d); | 134 || V8PerIsolateData::from(isolate)->hasInstance(&info, value, WorkerWorl
d); |
| 135 } | 135 } |
| 136 | 136 |
| 137 EventTarget* V8TestNode::toEventTarget(v8::Handle<v8::Object> object) | 137 EventTarget* V8TestNode::toEventTarget(v8::Handle<v8::Object> object) |
| 138 { | 138 { |
| 139 return toNative(object); | 139 return toNative(object); |
| 140 } | 140 } |
| 141 | 141 |
| 142 v8::Handle<v8::Object> V8TestNode::createWrapper(PassRefPtr<TestNode> impl, v8::
Handle<v8::Object> creationContext, v8::Isolate* isolate) | 142 v8::Handle<v8::Object> V8TestNode::createWrapper(PassRefPtr<TestNode> impl, v8::
Handle<v8::Object> creationContext, v8::Isolate* isolate) |
| 143 { | 143 { |
| 144 ASSERT(impl.get()); | 144 ASSERT(impl); |
| 145 ASSERT(!DOMDataStore::containsWrapper<V8TestNode>(impl.get(), isolate)); | 145 ASSERT(!DOMDataStore::containsWrapper<V8TestNode>(impl.get(), isolate)); |
| 146 if (ScriptWrappable::wrapperCanBeStoredInObject(impl.get())) { | 146 if (ScriptWrappable::wrapperCanBeStoredInObject(impl.get())) { |
| 147 const WrapperTypeInfo* actualInfo = ScriptWrappable::getTypeInfoFromObje
ct(impl.get()); | 147 const WrapperTypeInfo* actualInfo = ScriptWrappable::getTypeInfoFromObje
ct(impl.get()); |
| 148 // Might be a XXXConstructor::info instead of an XXX::info. These will b
oth have | 148 // Might be a XXXConstructor::info instead of an XXX::info. These will b
oth have |
| 149 // the same object de-ref functions, though, so use that as the basis of
the check. | 149 // the same object de-ref functions, though, so use that as the basis of
the check. |
| 150 RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(actualInfo->derefObjectFunction
== info.derefObjectFunction); | 150 RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(actualInfo->derefObjectFunction
== info.derefObjectFunction); |
| 151 } | 151 } |
| 152 | 152 |
| 153 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext
, &info, toInternalPointer(impl.get()), isolate); | 153 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext
, &info, toInternalPointer(impl.get()), isolate); |
| 154 if (UNLIKELY(wrapper.IsEmpty())) | 154 if (UNLIKELY(wrapper.IsEmpty())) |
| 155 return wrapper; | 155 return wrapper; |
| 156 | 156 |
| 157 installPerContextProperties(wrapper, impl.get(), isolate); | 157 installPerContextProperties(wrapper, impl.get(), isolate); |
| 158 V8DOMWrapper::associateObjectWithWrapper<V8TestNode>(impl, &info, wrapper, i
solate, WrapperConfiguration::Dependent); | 158 V8DOMWrapper::associateObjectWithWrapper<V8TestNode>(impl, &info, wrapper, i
solate, WrapperConfiguration::Dependent); |
| 159 return wrapper; | 159 return wrapper; |
| 160 } | 160 } |
| 161 | 161 |
| 162 void V8TestNode::derefObject(void* object) | 162 void V8TestNode::derefObject(void* object) |
| 163 { | 163 { |
| 164 fromInternalPointer(object)->deref(); | 164 fromInternalPointer(object)->deref(); |
| 165 } | 165 } |
| 166 | 166 |
| 167 } // namespace WebCore | 167 } // namespace WebCore |
| OLD | NEW |