OLD | NEW |
1 /* | 1 /* |
2 This file is part of the Blink open source project. | 2 This file is part of the Blink open source project. |
3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! | 3 This file has been auto-generated by CodeGeneratorV8.pm. 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 class WrapperTypeTraits<TestEventTarget > { | 59 class WrapperTypeTraits<TestEventTarget > { |
60 public: | 60 public: |
61 static WrapperTypeInfo* info() { return &V8TestEventTarget::info; } | 61 static WrapperTypeInfo* info() { return &V8TestEventTarget::info; } |
62 }; | 62 }; |
63 | 63 |
64 | 64 |
65 inline v8::Handle<v8::Object> wrap(TestEventTarget* impl, v8::Handle<v8::Object>
creationContext, v8::Isolate* isolate) | 65 inline v8::Handle<v8::Object> wrap(TestEventTarget* impl, v8::Handle<v8::Object>
creationContext, v8::Isolate* isolate) |
66 { | 66 { |
67 ASSERT(impl); | 67 ASSERT(impl); |
68 ASSERT(DOMDataStore::getWrapper(impl, isolate).IsEmpty()); | 68 ASSERT(DOMDataStore::getWrapper(impl, isolate).IsEmpty()); |
| 69 if (ScriptWrappable::wrapperCanBeStoredInObject(impl)) { |
| 70 const WrapperTypeInfo* actualInfo = ScriptWrappable::getTypeInfoFromObje
ct(impl); |
| 71 // Might be a XXXConstructor::info instead of an XXX::info. These will b
oth have |
| 72 // the same object de-ref functions, though, so use that as the basis of
the check. |
| 73 RELEASE_ASSERT(actualInfo->derefObjectFunction == V8TestEventTarget::inf
o.derefObjectFunction); |
| 74 } |
69 return V8TestEventTarget::createWrapper(impl, creationContext, isolate); | 75 return V8TestEventTarget::createWrapper(impl, creationContext, isolate); |
70 } | 76 } |
71 | 77 |
72 inline v8::Handle<v8::Value> toV8(TestEventTarget* impl, v8::Handle<v8::Object>
creationContext, v8::Isolate* isolate) | 78 inline v8::Handle<v8::Value> toV8(TestEventTarget* impl, v8::Handle<v8::Object>
creationContext, v8::Isolate* isolate) |
73 { | 79 { |
74 if (UNLIKELY(!impl)) | 80 if (UNLIKELY(!impl)) |
75 return v8NullWithCheck(isolate); | 81 return v8NullWithCheck(isolate); |
76 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper(impl, isolate); | 82 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper(impl, isolate); |
77 if (!wrapper.IsEmpty()) | 83 if (!wrapper.IsEmpty()) |
78 return wrapper; | 84 return wrapper; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 } | 133 } |
128 | 134 |
129 inline v8::Handle<v8::Value> toV8(PassRefPtr< TestEventTarget > impl, v8::Handle
<v8::Object> creationContext, v8::Isolate* isolate) | 135 inline v8::Handle<v8::Value> toV8(PassRefPtr< TestEventTarget > impl, v8::Handle
<v8::Object> creationContext, v8::Isolate* isolate) |
130 { | 136 { |
131 return toV8(impl.get(), creationContext, isolate); | 137 return toV8(impl.get(), creationContext, isolate); |
132 } | 138 } |
133 | 139 |
134 } | 140 } |
135 | 141 |
136 #endif // V8TestEventTarget_h | 142 #endif // V8TestEventTarget_h |
OLD | NEW |