| 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 "V8TestInterfaceEventConstructor.h" | 8 #include "V8TestInterfaceEventConstructor.h" |
| 9 | 9 |
| 10 #include "bindings/core/v8/Dictionary.h" | 10 #include "bindings/core/v8/Dictionary.h" |
| (...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 374 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); | 374 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); |
| 375 } | 375 } |
| 376 | 376 |
| 377 v8::Handle<v8::Object> V8TestInterfaceEventConstructor::findInstanceInPrototypeC
hain(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) | 377 v8::Handle<v8::Object> V8TestInterfaceEventConstructor::findInstanceInPrototypeC
hain(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) |
| 378 { | 378 { |
| 379 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); | 379 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
| 380 } | 380 } |
| 381 | 381 |
| 382 TestInterfaceEventConstructor* V8TestInterfaceEventConstructor::toNativeWithType
Check(v8::Isolate* isolate, v8::Handle<v8::Value> value) | 382 TestInterfaceEventConstructor* V8TestInterfaceEventConstructor::toNativeWithType
Check(v8::Isolate* isolate, v8::Handle<v8::Value> value) |
| 383 { | 383 { |
| 384 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje
ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) :
0; | 384 return hasInstance(value, isolate) ? fromInternalPointer(blink::toInternalPo
inter(v8::Handle<v8::Object>::Cast(value))) : 0; |
| 385 } | 385 } |
| 386 | 386 |
| 387 v8::Handle<v8::Object> wrap(TestInterfaceEventConstructor* impl, v8::Handle<v8::
Object> creationContext, v8::Isolate* isolate) | 387 v8::Handle<v8::Object> wrap(TestInterfaceEventConstructor* impl, v8::Handle<v8::
Object> creationContext, v8::Isolate* isolate) |
| 388 { | 388 { |
| 389 ASSERT(impl); | 389 ASSERT(impl); |
| 390 ASSERT(!DOMDataStore::containsWrapper<V8TestInterfaceEventConstructor>(impl,
isolate)); | 390 ASSERT(!DOMDataStore::containsWrapper<V8TestInterfaceEventConstructor>(impl,
isolate)); |
| 391 return V8TestInterfaceEventConstructor::createWrapper(impl, creationContext,
isolate); | 391 return V8TestInterfaceEventConstructor::createWrapper(impl, creationContext,
isolate); |
| 392 } | 392 } |
| 393 | 393 |
| 394 v8::Handle<v8::Object> V8TestInterfaceEventConstructor::createWrapper(PassRefPtr
WillBeRawPtr<TestInterfaceEventConstructor> impl, v8::Handle<v8::Object> creatio
nContext, v8::Isolate* isolate) | 394 v8::Handle<v8::Object> V8TestInterfaceEventConstructor::createWrapper(PassRefPtr
WillBeRawPtr<TestInterfaceEventConstructor> impl, v8::Handle<v8::Object> creatio
nContext, v8::Isolate* isolate) |
| 395 { | 395 { |
| 396 ASSERT(impl); | 396 ASSERT(impl); |
| 397 ASSERT(!DOMDataStore::containsWrapper<V8TestInterfaceEventConstructor>(impl.
get(), isolate)); | 397 ASSERT(!DOMDataStore::containsWrapper<V8TestInterfaceEventConstructor>(impl.
get(), isolate)); |
| 398 if (ScriptWrappable::wrapperCanBeStoredInObject(impl.get())) { | 398 if (ScriptWrappable::wrapperCanBeStoredInObject(impl.get())) { |
| 399 const WrapperTypeInfo* actualInfo = ScriptWrappable::fromObject(impl.get
())->typeInfo(); | 399 const WrapperTypeInfo* actualInfo = ScriptWrappable::fromObject(impl.get
())->typeInfo(); |
| 400 // Might be a XXXConstructor::wrapperTypeInfo instead of an XXX::wrapper
TypeInfo. These will both have | 400 // Might be a XXXConstructor::wrapperTypeInfo instead of an XXX::wrapper
TypeInfo. These will both have |
| 401 // the same object de-ref functions, though, so use that as the basis of
the check. | 401 // the same object de-ref functions, though, so use that as the basis of
the check. |
| 402 RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(actualInfo->derefObjectFunction
== wrapperTypeInfo.derefObjectFunction); | 402 RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(actualInfo->derefObjectFunction
== wrapperTypeInfo.derefObjectFunction); |
| 403 } | 403 } |
| 404 | 404 |
| 405 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext
, &wrapperTypeInfo, toInternalPointer(impl.get()), isolate); | 405 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext
, &wrapperTypeInfo, toInternalPointer(impl.get()), isolate); |
| 406 if (UNLIKELY(wrapper.IsEmpty())) | 406 if (UNLIKELY(wrapper.IsEmpty())) |
| 407 return wrapper; | 407 return wrapper; |
| 408 | 408 |
| 409 installPerContextEnabledProperties(wrapper, impl.get(), isolate); | 409 installPerContextEnabledProperties(wrapper, impl.get(), isolate); |
| 410 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceEventConstructor>(im
pl, &wrapperTypeInfo, wrapper, isolate, WrapperConfiguration::Independent); | 410 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceEventConstructor>(im
pl, &wrapperTypeInfo, wrapper, isolate, WrapperConfiguration::Independent); |
| 411 return wrapper; | 411 return wrapper; |
| 412 } | 412 } |
| 413 | 413 |
| 414 void V8TestInterfaceEventConstructor::derefObject(void* object) | 414 void V8TestInterfaceEventConstructor::derefObject(ScriptWrappableBase* internalP
ointer) |
| 415 { | 415 { |
| 416 #if !ENABLE(OILPAN) | 416 #if !ENABLE(OILPAN) |
| 417 fromInternalPointer(object)->deref(); | 417 fromInternalPointer(internalPointer)->deref(); |
| 418 #endif // !ENABLE(OILPAN) | 418 #endif // !ENABLE(OILPAN) |
| 419 } | 419 } |
| 420 | 420 |
| 421 template<> | 421 template<> |
| 422 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEventConstructor* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) | 422 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEventConstructor* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) |
| 423 { | 423 { |
| 424 return toV8(impl, creationContext, isolate); | 424 return toV8(impl, creationContext, isolate); |
| 425 } | 425 } |
| 426 | 426 |
| 427 } // namespace blink | 427 } // namespace blink |
| OLD | NEW |