| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 class WrapperTypeTraits<TestInterface > { | 59 class WrapperTypeTraits<TestInterface > { |
| 60 public: | 60 public: |
| 61 static WrapperTypeInfo* info() { return &V8TestInterface::info; } | 61 static WrapperTypeInfo* info() { return &V8TestInterface::info; } |
| 62 }; | 62 }; |
| 63 | 63 |
| 64 | 64 |
| 65 inline v8::Handle<v8::Object> wrap(TestInterface* impl, v8::Handle<v8::Object> c
reationContext, v8::Isolate* isolate) | 65 inline v8::Handle<v8::Object> wrap(TestInterface* impl, v8::Handle<v8::Object> c
reationContext, 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 if (actualInfo != &V8TestInterface::info) |
| 72 CRASH(); |
| 73 } |
| 69 return V8TestInterface::createWrapper(impl, creationContext, isolate); | 74 return V8TestInterface::createWrapper(impl, creationContext, isolate); |
| 70 } | 75 } |
| 71 | 76 |
| 72 inline v8::Handle<v8::Value> toV8(TestInterface* impl, v8::Handle<v8::Object> cr
eationContext, v8::Isolate* isolate) | 77 inline v8::Handle<v8::Value> toV8(TestInterface* impl, v8::Handle<v8::Object> cr
eationContext, v8::Isolate* isolate) |
| 73 { | 78 { |
| 74 if (UNLIKELY(!impl)) | 79 if (UNLIKELY(!impl)) |
| 75 return v8NullWithCheck(isolate); | 80 return v8NullWithCheck(isolate); |
| 76 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper(impl, isolate); | 81 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper(impl, isolate); |
| 77 if (!wrapper.IsEmpty()) | 82 if (!wrapper.IsEmpty()) |
| 78 return wrapper; | 83 return wrapper; |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 inline v8::Handle<v8::Value> toV8(PassRefPtr< TestInterface > impl, v8::Handle<v
8::Object> creationContext, v8::Isolate* isolate) | 134 inline v8::Handle<v8::Value> toV8(PassRefPtr< TestInterface > impl, v8::Handle<v
8::Object> creationContext, v8::Isolate* isolate) |
| 130 { | 135 { |
| 131 return toV8(impl.get(), creationContext, isolate); | 136 return toV8(impl.get(), creationContext, isolate); |
| 132 } | 137 } |
| 133 | 138 |
| 134 } | 139 } |
| 135 | 140 |
| 136 #endif // V8TestInterface_h | 141 #endif // V8TestInterface_h |
| 137 #endif // ENABLE(Condition1) || ENABLE(Condition2) | 142 #endif // ENABLE(Condition1) || ENABLE(Condition2) |
| 138 | 143 |
| OLD | NEW |