| 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 | 98 |
| 99 bool V8TestInterfaceEmpty::HasInstanceInAnyWorld(v8::Handle<v8::Value> value, v8
::Isolate* isolate) | 99 bool V8TestInterfaceEmpty::HasInstanceInAnyWorld(v8::Handle<v8::Value> value, v8
::Isolate* isolate) |
| 100 { | 100 { |
| 101 return V8PerIsolateData::from(isolate)->hasInstance(&info, value, MainWorld) | 101 return V8PerIsolateData::from(isolate)->hasInstance(&info, value, MainWorld) |
| 102 || V8PerIsolateData::from(isolate)->hasInstance(&info, value, IsolatedWo
rld) | 102 || V8PerIsolateData::from(isolate)->hasInstance(&info, value, IsolatedWo
rld) |
| 103 || V8PerIsolateData::from(isolate)->hasInstance(&info, value, WorkerWorl
d); | 103 || V8PerIsolateData::from(isolate)->hasInstance(&info, value, WorkerWorl
d); |
| 104 } | 104 } |
| 105 | 105 |
| 106 v8::Handle<v8::Object> V8TestInterfaceEmpty::createWrapper(PassRefPtr<TestInterf
aceEmpty> impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) | 106 v8::Handle<v8::Object> V8TestInterfaceEmpty::createWrapper(PassRefPtr<TestInterf
aceEmpty> impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) |
| 107 { | 107 { |
| 108 ASSERT(impl.get()); | 108 ASSERT(impl); |
| 109 ASSERT(!DOMDataStore::containsWrapper<V8TestInterfaceEmpty>(impl.get(), isol
ate)); | 109 ASSERT(!DOMDataStore::containsWrapper<V8TestInterfaceEmpty>(impl.get(), isol
ate)); |
| 110 if (ScriptWrappable::wrapperCanBeStoredInObject(impl.get())) { | 110 if (ScriptWrappable::wrapperCanBeStoredInObject(impl.get())) { |
| 111 const WrapperTypeInfo* actualInfo = ScriptWrappable::getTypeInfoFromObje
ct(impl.get()); | 111 const WrapperTypeInfo* actualInfo = ScriptWrappable::getTypeInfoFromObje
ct(impl.get()); |
| 112 // Might be a XXXConstructor::info instead of an XXX::info. These will b
oth have | 112 // Might be a XXXConstructor::info instead of an XXX::info. These will b
oth have |
| 113 // the same object de-ref functions, though, so use that as the basis of
the check. | 113 // the same object de-ref functions, though, so use that as the basis of
the check. |
| 114 RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(actualInfo->derefObjectFunction
== info.derefObjectFunction); | 114 RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(actualInfo->derefObjectFunction
== info.derefObjectFunction); |
| 115 } | 115 } |
| 116 | 116 |
| 117 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext
, &info, toInternalPointer(impl.get()), isolate); | 117 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext
, &info, toInternalPointer(impl.get()), isolate); |
| 118 if (UNLIKELY(wrapper.IsEmpty())) | 118 if (UNLIKELY(wrapper.IsEmpty())) |
| 119 return wrapper; | 119 return wrapper; |
| 120 | 120 |
| 121 installPerContextProperties(wrapper, impl.get(), isolate); | 121 installPerContextProperties(wrapper, impl.get(), isolate); |
| 122 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceEmpty>(impl, &info,
wrapper, isolate, WrapperConfiguration::Independent); | 122 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceEmpty>(impl, &info,
wrapper, isolate, WrapperConfiguration::Independent); |
| 123 return wrapper; | 123 return wrapper; |
| 124 } | 124 } |
| 125 | 125 |
| 126 void V8TestInterfaceEmpty::derefObject(void* object) | 126 void V8TestInterfaceEmpty::derefObject(void* object) |
| 127 { | 127 { |
| 128 fromInternalPointer(object)->deref(); | 128 fromInternalPointer(object)->deref(); |
| 129 } | 129 } |
| 130 | 130 |
| 131 } // namespace WebCore | 131 } // namespace WebCore |
| OLD | NEW |