| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! | 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! |
| 6 | 6 |
| 7 #include "config.h" | 7 #include "config.h" |
| 8 #include "V8TestInterfaceGarbageCollected.h" | 8 #include "V8TestInterfaceGarbageCollected.h" |
| 9 | 9 |
| 10 #include "RuntimeEnabledFeatures.h" | 10 #include "RuntimeEnabledFeatures.h" |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 TestInterfaceGarbageCollected* V8TestInterfaceGarbageCollected::toNativeWithType
Check(v8::Isolate* isolate, v8::Handle<v8::Value> value) | 186 TestInterfaceGarbageCollected* V8TestInterfaceGarbageCollected::toNativeWithType
Check(v8::Isolate* isolate, v8::Handle<v8::Value> value) |
| 187 { | 187 { |
| 188 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje
ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) :
0; | 188 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje
ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) :
0; |
| 189 } | 189 } |
| 190 | 190 |
| 191 EventTarget* V8TestInterfaceGarbageCollected::toEventTarget(v8::Handle<v8::Objec
t> object) | 191 EventTarget* V8TestInterfaceGarbageCollected::toEventTarget(v8::Handle<v8::Objec
t> object) |
| 192 { | 192 { |
| 193 return toNative(object); | 193 return toNative(object); |
| 194 } | 194 } |
| 195 | 195 |
| 196 v8::Handle<v8::Object> wrap(TestInterfaceGarbageCollected* impl, v8::Handle<v8::
Object> creationContext, v8::Isolate* isolate) |
| 197 { |
| 198 ASSERT(impl); |
| 199 ASSERT(!DOMDataStore::containsWrapper<V8TestInterfaceGarbageCollected>(impl,
isolate)); |
| 200 return V8TestInterfaceGarbageCollected::createWrapper(impl, creationContext,
isolate); |
| 201 } |
| 202 |
| 196 v8::Handle<v8::Object> V8TestInterfaceGarbageCollected::createWrapper(RawPtr<Tes
tInterfaceGarbageCollected> impl, v8::Handle<v8::Object> creationContext, v8::Is
olate* isolate) | 203 v8::Handle<v8::Object> V8TestInterfaceGarbageCollected::createWrapper(RawPtr<Tes
tInterfaceGarbageCollected> impl, v8::Handle<v8::Object> creationContext, v8::Is
olate* isolate) |
| 197 { | 204 { |
| 198 ASSERT(impl); | 205 ASSERT(impl); |
| 199 ASSERT(!DOMDataStore::containsWrapper<V8TestInterfaceGarbageCollected>(impl.
get(), isolate)); | 206 ASSERT(!DOMDataStore::containsWrapper<V8TestInterfaceGarbageCollected>(impl.
get(), isolate)); |
| 200 if (ScriptWrappable::wrapperCanBeStoredInObject(impl.get())) { | 207 if (ScriptWrappable::wrapperCanBeStoredInObject(impl.get())) { |
| 201 const WrapperTypeInfo* actualInfo = ScriptWrappable::fromObject(impl.get
())->typeInfo(); | 208 const WrapperTypeInfo* actualInfo = ScriptWrappable::fromObject(impl.get
())->typeInfo(); |
| 202 // Might be a XXXConstructor::wrapperTypeInfo instead of an XXX::wrapper
TypeInfo. These will both have | 209 // Might be a XXXConstructor::wrapperTypeInfo instead of an XXX::wrapper
TypeInfo. These will both have |
| 203 // the same object de-ref functions, though, so use that as the basis of
the check. | 210 // the same object de-ref functions, though, so use that as the basis of
the check. |
| 204 RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(actualInfo->derefObjectFunction
== wrapperTypeInfo.derefObjectFunction); | 211 RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(actualInfo->derefObjectFunction
== wrapperTypeInfo.derefObjectFunction); |
| 205 } | 212 } |
| (...skipping 11 matching lines...) Expand all Loading... |
| 217 { | 224 { |
| 218 } | 225 } |
| 219 | 226 |
| 220 template<> | 227 template<> |
| 221 v8::Handle<v8::Value> toV8NoInline(TestInterfaceGarbageCollected* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) | 228 v8::Handle<v8::Value> toV8NoInline(TestInterfaceGarbageCollected* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) |
| 222 { | 229 { |
| 223 return toV8(impl, creationContext, isolate); | 230 return toV8(impl, creationContext, isolate); |
| 224 } | 231 } |
| 225 | 232 |
| 226 } // namespace WebCore | 233 } // namespace WebCore |
| OLD | NEW |