OLD | NEW |
1 /* | 1 /* |
2 This file is part of the WebKit open source project. | 2 This file is part of the WebKit open source project. |
3 This file has been generated by generate-bindings.pl. DO NOT MODIFY! | 3 This file has been generated by generate-bindings.pl. 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 class WrapperTypeTraits<TestEventConstructor > { | 57 class WrapperTypeTraits<TestEventConstructor > { |
58 public: | 58 public: |
59 static WrapperTypeInfo* info() { return &V8TestEventConstructor::info; } | 59 static WrapperTypeInfo* info() { return &V8TestEventConstructor::info; } |
60 }; | 60 }; |
61 | 61 |
62 | 62 |
63 inline v8::Handle<v8::Object> wrap(TestEventConstructor* impl, v8::Handle<v8::Ob
ject> creationContext, v8::Isolate* isolate) | 63 inline v8::Handle<v8::Object> wrap(TestEventConstructor* impl, v8::Handle<v8::Ob
ject> creationContext, v8::Isolate* isolate) |
64 { | 64 { |
65 ASSERT(impl); | 65 ASSERT(impl); |
66 ASSERT(DOMDataStore::getWrapper(impl, isolate).IsEmpty()); | 66 ASSERT(DOMDataStore::getWrapper(impl, isolate).IsEmpty()); |
| 67 if (ScriptWrappable::wrapperCanBeStoredInObject(impl)) { |
| 68 const WrapperTypeInfo* actualInfo = ScriptWrappable::getTypeInfoFromObje
ct(impl); |
| 69 if (actualInfo != &V8TestEventConstructor::info) |
| 70 CRASH(); |
| 71 } |
67 return V8TestEventConstructor::createWrapper(impl, creationContext, isolate)
; | 72 return V8TestEventConstructor::createWrapper(impl, creationContext, isolate)
; |
68 } | 73 } |
69 | 74 |
70 inline v8::Handle<v8::Value> toV8(TestEventConstructor* impl, v8::Handle<v8::Obj
ect> creationContext, v8::Isolate* isolate) | 75 inline v8::Handle<v8::Value> toV8(TestEventConstructor* impl, v8::Handle<v8::Obj
ect> creationContext, v8::Isolate* isolate) |
71 { | 76 { |
72 if (UNLIKELY(!impl)) | 77 if (UNLIKELY(!impl)) |
73 return v8NullWithCheck(isolate); | 78 return v8NullWithCheck(isolate); |
74 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper(impl, isolate); | 79 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper(impl, isolate); |
75 if (!wrapper.IsEmpty()) | 80 if (!wrapper.IsEmpty()) |
76 return wrapper; | 81 return wrapper; |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 inline v8::Handle<v8::Value> toV8(PassRefPtr< TestEventConstructor > impl, v8::H
andle<v8::Object> creationContext, v8::Isolate* isolate) | 132 inline v8::Handle<v8::Value> toV8(PassRefPtr< TestEventConstructor > impl, v8::H
andle<v8::Object> creationContext, v8::Isolate* isolate) |
128 { | 133 { |
129 return toV8(impl.get(), creationContext, isolate); | 134 return toV8(impl.get(), creationContext, isolate); |
130 } | 135 } |
131 | 136 |
132 bool fillTestEventConstructorInit(TestEventConstructorInit&, const Dictionary&); | 137 bool fillTestEventConstructorInit(TestEventConstructorInit&, const Dictionary&); |
133 | 138 |
134 } | 139 } |
135 | 140 |
136 #endif // V8TestEventConstructor_h | 141 #endif // V8TestEventConstructor_h |
OLD | NEW |