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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 class WrapperTypeTraits<TestNamedConstructor > { | 62 class WrapperTypeTraits<TestNamedConstructor > { |
63 public: | 63 public: |
64 static WrapperTypeInfo* info() { return &V8TestNamedConstructor::info; } | 64 static WrapperTypeInfo* info() { return &V8TestNamedConstructor::info; } |
65 }; | 65 }; |
66 | 66 |
67 | 67 |
68 inline v8::Handle<v8::Object> wrap(TestNamedConstructor* impl, v8::Handle<v8::Ob
ject> creationContext, v8::Isolate* isolate) | 68 inline v8::Handle<v8::Object> wrap(TestNamedConstructor* impl, v8::Handle<v8::Ob
ject> creationContext, v8::Isolate* isolate) |
69 { | 69 { |
70 ASSERT(impl); | 70 ASSERT(impl); |
71 ASSERT(DOMDataStore::getWrapper(impl, isolate).IsEmpty()); | 71 ASSERT(DOMDataStore::getWrapper(impl, isolate).IsEmpty()); |
| 72 if (ScriptWrappable::wrapperCanBeStoredInObject(impl)) { |
| 73 const WrapperTypeInfo* actualInfo = ScriptWrappable::getTypeInfoFromObje
ct(impl); |
| 74 // Might be a XXXConstructor::info instead of an XXX::info. These will b
oth have |
| 75 // the same object de-ref functions, though, so use that as the basis of
the check. |
| 76 RELEASE_ASSERT(actualInfo->derefObjectFunction == V8TestNamedConstructor
::info.derefObjectFunction); |
| 77 } |
72 return V8TestNamedConstructor::createWrapper(impl, creationContext, isolate)
; | 78 return V8TestNamedConstructor::createWrapper(impl, creationContext, isolate)
; |
73 } | 79 } |
74 | 80 |
75 inline v8::Handle<v8::Value> toV8(TestNamedConstructor* impl, v8::Handle<v8::Obj
ect> creationContext, v8::Isolate* isolate) | 81 inline v8::Handle<v8::Value> toV8(TestNamedConstructor* impl, v8::Handle<v8::Obj
ect> creationContext, v8::Isolate* isolate) |
76 { | 82 { |
77 if (UNLIKELY(!impl)) | 83 if (UNLIKELY(!impl)) |
78 return v8NullWithCheck(isolate); | 84 return v8NullWithCheck(isolate); |
79 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper(impl, isolate); | 85 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper(impl, isolate); |
80 if (!wrapper.IsEmpty()) | 86 if (!wrapper.IsEmpty()) |
81 return wrapper; | 87 return wrapper; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 } | 136 } |
131 | 137 |
132 inline v8::Handle<v8::Value> toV8(PassRefPtr< TestNamedConstructor > impl, v8::H
andle<v8::Object> creationContext, v8::Isolate* isolate) | 138 inline v8::Handle<v8::Value> toV8(PassRefPtr< TestNamedConstructor > impl, v8::H
andle<v8::Object> creationContext, v8::Isolate* isolate) |
133 { | 139 { |
134 return toV8(impl.get(), creationContext, isolate); | 140 return toV8(impl.get(), creationContext, isolate); |
135 } | 141 } |
136 | 142 |
137 } | 143 } |
138 | 144 |
139 #endif // V8TestNamedConstructor_h | 145 #endif // V8TestNamedConstructor_h |
OLD | NEW |