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 "V8TestInterfaceNode.h" | 8 #include "V8TestInterfaceNode.h" |
9 | 9 |
10 #include "HTMLNames.h" | 10 #include "HTMLNames.h" |
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 TestInterfaceNode* V8TestInterfaceNode::toNativeWithTypeCheck(v8::Isolate* isola
te, v8::Handle<v8::Value> value) | 353 TestInterfaceNode* V8TestInterfaceNode::toNativeWithTypeCheck(v8::Isolate* isola
te, v8::Handle<v8::Value> value) |
354 { | 354 { |
355 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje
ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) :
0; | 355 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje
ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) :
0; |
356 } | 356 } |
357 | 357 |
358 EventTarget* V8TestInterfaceNode::toEventTarget(v8::Handle<v8::Object> object) | 358 EventTarget* V8TestInterfaceNode::toEventTarget(v8::Handle<v8::Object> object) |
359 { | 359 { |
360 return toNative(object); | 360 return toNative(object); |
361 } | 361 } |
362 | 362 |
| 363 v8::Handle<v8::Object> wrap(TestInterfaceNode* impl, v8::Handle<v8::Object> crea
tionContext, v8::Isolate* isolate) |
| 364 { |
| 365 ASSERT(impl); |
| 366 ASSERT(!DOMDataStore::containsWrapper<V8TestInterfaceNode>(impl, isolate)); |
| 367 return V8TestInterfaceNode::createWrapper(impl, creationContext, isolate); |
| 368 } |
| 369 |
363 v8::Handle<v8::Object> V8TestInterfaceNode::createWrapper(PassRefPtrWillBeRawPtr
<TestInterfaceNode> impl, v8::Handle<v8::Object> creationContext, v8::Isolate* i
solate) | 370 v8::Handle<v8::Object> V8TestInterfaceNode::createWrapper(PassRefPtrWillBeRawPtr
<TestInterfaceNode> impl, v8::Handle<v8::Object> creationContext, v8::Isolate* i
solate) |
364 { | 371 { |
365 ASSERT(impl); | 372 ASSERT(impl); |
366 ASSERT(!DOMDataStore::containsWrapper<V8TestInterfaceNode>(impl.get(), isola
te)); | 373 ASSERT(!DOMDataStore::containsWrapper<V8TestInterfaceNode>(impl.get(), isola
te)); |
367 if (ScriptWrappable::wrapperCanBeStoredInObject(impl.get())) { | 374 if (ScriptWrappable::wrapperCanBeStoredInObject(impl.get())) { |
368 const WrapperTypeInfo* actualInfo = ScriptWrappable::fromObject(impl.get
())->typeInfo(); | 375 const WrapperTypeInfo* actualInfo = ScriptWrappable::fromObject(impl.get
())->typeInfo(); |
369 // Might be a XXXConstructor::wrapperTypeInfo instead of an XXX::wrapper
TypeInfo. These will both have | 376 // Might be a XXXConstructor::wrapperTypeInfo instead of an XXX::wrapper
TypeInfo. These will both have |
370 // the same object de-ref functions, though, so use that as the basis of
the check. | 377 // the same object de-ref functions, though, so use that as the basis of
the check. |
371 RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(actualInfo->derefObjectFunction
== wrapperTypeInfo.derefObjectFunction); | 378 RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(actualInfo->derefObjectFunction
== wrapperTypeInfo.derefObjectFunction); |
372 } | 379 } |
(...skipping 14 matching lines...) Expand all Loading... |
387 #endif // !ENABLE(OILPAN) | 394 #endif // !ENABLE(OILPAN) |
388 } | 395 } |
389 | 396 |
390 template<> | 397 template<> |
391 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNode* impl, v8::Handle<v8::Objec
t> creationContext, v8::Isolate* isolate) | 398 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNode* impl, v8::Handle<v8::Objec
t> creationContext, v8::Isolate* isolate) |
392 { | 399 { |
393 return toV8(impl, creationContext, isolate); | 400 return toV8(impl, creationContext, isolate); |
394 } | 401 } |
395 | 402 |
396 } // namespace WebCore | 403 } // namespace WebCore |
OLD | NEW |