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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 class WrapperTypeTraits<TestSerializedScriptValueInterface > { | 56 class WrapperTypeTraits<TestSerializedScriptValueInterface > { |
57 public: | 57 public: |
58 static WrapperTypeInfo* info() { return &V8TestSerializedScriptValueInterfac
e::info; } | 58 static WrapperTypeInfo* info() { return &V8TestSerializedScriptValueInterfac
e::info; } |
59 }; | 59 }; |
60 | 60 |
61 | 61 |
62 inline v8::Handle<v8::Object> wrap(TestSerializedScriptValueInterface* impl, v8:
:Handle<v8::Object> creationContext, v8::Isolate* isolate) | 62 inline v8::Handle<v8::Object> wrap(TestSerializedScriptValueInterface* impl, v8:
:Handle<v8::Object> creationContext, v8::Isolate* isolate) |
63 { | 63 { |
64 ASSERT(impl); | 64 ASSERT(impl); |
65 ASSERT(DOMDataStore::getWrapper(impl, isolate).IsEmpty()); | 65 ASSERT(DOMDataStore::getWrapper(impl, isolate).IsEmpty()); |
| 66 if (ScriptWrappable::wrapperCanBeStoredInObject(impl)) { |
| 67 const WrapperTypeInfo* actualInfo = ScriptWrappable::getTypeInfoFromObje
ct(impl); |
| 68 // Might be a XXXConstructor::info instead of an XXX::info. These will b
oth have |
| 69 // the same object de-ref functions, though, so use that as the basis of
the check. |
| 70 RELEASE_ASSERT(actualInfo->derefObjectFunction == V8TestSerializedScript
ValueInterface::info.derefObjectFunction); |
| 71 } |
66 return V8TestSerializedScriptValueInterface::createWrapper(impl, creationCon
text, isolate); | 72 return V8TestSerializedScriptValueInterface::createWrapper(impl, creationCon
text, isolate); |
67 } | 73 } |
68 | 74 |
69 inline v8::Handle<v8::Value> toV8(TestSerializedScriptValueInterface* impl, v8::
Handle<v8::Object> creationContext, v8::Isolate* isolate) | 75 inline v8::Handle<v8::Value> toV8(TestSerializedScriptValueInterface* impl, v8::
Handle<v8::Object> creationContext, v8::Isolate* isolate) |
70 { | 76 { |
71 if (UNLIKELY(!impl)) | 77 if (UNLIKELY(!impl)) |
72 return v8NullWithCheck(isolate); | 78 return v8NullWithCheck(isolate); |
73 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper(impl, isolate); | 79 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper(impl, isolate); |
74 if (!wrapper.IsEmpty()) | 80 if (!wrapper.IsEmpty()) |
75 return wrapper; | 81 return wrapper; |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 inline v8::Handle<v8::Value> toV8(PassRefPtr< TestSerializedScriptValueInterface
> impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) | 132 inline v8::Handle<v8::Value> toV8(PassRefPtr< TestSerializedScriptValueInterface
> impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) |
127 { | 133 { |
128 return toV8(impl.get(), creationContext, isolate); | 134 return toV8(impl.get(), creationContext, isolate); |
129 } | 135 } |
130 | 136 |
131 } | 137 } |
132 | 138 |
133 #endif // ENABLE(Condition1) || ENABLE(Condition2) | 139 #endif // ENABLE(Condition1) || ENABLE(Condition2) |
134 | 140 |
135 #endif // V8TestSerializedScriptValueInterface_h | 141 #endif // V8TestSerializedScriptValueInterface_h |
OLD | NEW |