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 "RuntimeEnabledFeatures.h" | 10 #include "RuntimeEnabledFeatures.h" |
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
393 v8::Handle<v8::Object> V8TestInterfaceEventConstructor::findInstanceInPrototypeC
hain(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) | 393 v8::Handle<v8::Object> V8TestInterfaceEventConstructor::findInstanceInPrototypeC
hain(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) |
394 { | 394 { |
395 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); | 395 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
396 } | 396 } |
397 | 397 |
398 TestInterfaceEventConstructor* V8TestInterfaceEventConstructor::toNativeWithType
Check(v8::Isolate* isolate, v8::Handle<v8::Value> value) | 398 TestInterfaceEventConstructor* V8TestInterfaceEventConstructor::toNativeWithType
Check(v8::Isolate* isolate, v8::Handle<v8::Value> value) |
399 { | 399 { |
400 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje
ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) :
0; | 400 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje
ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) :
0; |
401 } | 401 } |
402 | 402 |
| 403 v8::Handle<v8::Object> wrap(TestInterfaceEventConstructor* impl, v8::Handle<v8::
Object> creationContext, v8::Isolate* isolate) |
| 404 { |
| 405 ASSERT(impl); |
| 406 ASSERT(!DOMDataStore::containsWrapper<V8TestInterfaceEventConstructor>(impl,
isolate)); |
| 407 return V8TestInterfaceEventConstructor::createWrapper(impl, creationContext,
isolate); |
| 408 } |
| 409 |
403 v8::Handle<v8::Object> V8TestInterfaceEventConstructor::createWrapper(PassRefPtr
WillBeRawPtr<TestInterfaceEventConstructor> impl, v8::Handle<v8::Object> creatio
nContext, v8::Isolate* isolate) | 410 v8::Handle<v8::Object> V8TestInterfaceEventConstructor::createWrapper(PassRefPtr
WillBeRawPtr<TestInterfaceEventConstructor> impl, v8::Handle<v8::Object> creatio
nContext, v8::Isolate* isolate) |
404 { | 411 { |
405 ASSERT(impl); | 412 ASSERT(impl); |
406 ASSERT(!DOMDataStore::containsWrapper<V8TestInterfaceEventConstructor>(impl.
get(), isolate)); | 413 ASSERT(!DOMDataStore::containsWrapper<V8TestInterfaceEventConstructor>(impl.
get(), isolate)); |
407 if (ScriptWrappable::wrapperCanBeStoredInObject(impl.get())) { | 414 if (ScriptWrappable::wrapperCanBeStoredInObject(impl.get())) { |
408 const WrapperTypeInfo* actualInfo = ScriptWrappable::fromObject(impl.get
())->typeInfo(); | 415 const WrapperTypeInfo* actualInfo = ScriptWrappable::fromObject(impl.get
())->typeInfo(); |
409 // Might be a XXXConstructor::wrapperTypeInfo instead of an XXX::wrapper
TypeInfo. These will both have | 416 // Might be a XXXConstructor::wrapperTypeInfo instead of an XXX::wrapper
TypeInfo. These will both have |
410 // the same object de-ref functions, though, so use that as the basis of
the check. | 417 // the same object de-ref functions, though, so use that as the basis of
the check. |
411 RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(actualInfo->derefObjectFunction
== wrapperTypeInfo.derefObjectFunction); | 418 RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(actualInfo->derefObjectFunction
== wrapperTypeInfo.derefObjectFunction); |
412 } | 419 } |
(...skipping 14 matching lines...) Expand all Loading... |
427 #endif // !ENABLE(OILPAN) | 434 #endif // !ENABLE(OILPAN) |
428 } | 435 } |
429 | 436 |
430 template<> | 437 template<> |
431 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEventConstructor* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) | 438 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEventConstructor* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) |
432 { | 439 { |
433 return toV8(impl, creationContext, isolate); | 440 return toV8(impl, creationContext, isolate); |
434 } | 441 } |
435 | 442 |
436 } // namespace WebCore | 443 } // namespace WebCore |
OLD | NEW |