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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 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) |
76 { | 76 { |
77 if (UNLIKELY(!impl)) | 77 if (UNLIKELY(!impl)) |
78 return v8NullWithCheck(isolate); | 78 return v8NullWithCheck(isolate); |
79 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestEventConstruc
tor>(impl, isolate); | 79 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestEventConstruc
tor>(impl, isolate); |
80 if (!wrapper.IsEmpty()) | 80 if (!wrapper.IsEmpty()) |
81 return wrapper; | 81 return wrapper; |
82 return wrap(impl, creationContext, isolate); | 82 return wrap(impl, creationContext, isolate); |
83 } | 83 } |
84 | 84 |
| 85 inline UnsafePersistent<v8::Object> toV8Persistent(TestEventConstructor* impl, v
8::Handle<v8::Object> creationContext, v8::Isolate* isolate) |
| 86 { |
| 87 ASSERT(impl); |
| 88 |
| 89 UnsafePersistent<v8::Object> wrapperPersistent = DOMDataStore::getWrapperPer
sistent<V8TestEventConstructor>(impl, isolate); |
| 90 if (LIKELY(!wrapperPersistent.isEmpty())) |
| 91 return wrapperPersistent; |
| 92 |
| 93 wrap(impl, creationContext, isolate); |
| 94 |
| 95 wrapperPersistent = DOMDataStore::getWrapperPersistent<V8TestEventConstructo
r>(impl, isolate); |
| 96 ASSERT(!wrapperPersistent.isEmpty()); |
| 97 return wrapperPersistent; |
| 98 } |
| 99 |
85 template<typename CallbackInfo> | 100 template<typename CallbackInfo> |
86 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestEventConstruc
tor* impl, v8::Handle<v8::Object> creationContext) | 101 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestEventConstruc
tor* impl, v8::Handle<v8::Object> creationContext) |
87 { | 102 { |
88 if (UNLIKELY(!impl)) { | 103 if (UNLIKELY(!impl)) { |
89 v8SetReturnValueNull(callbackInfo); | 104 v8SetReturnValueNull(callbackInfo); |
90 return; | 105 return; |
91 } | 106 } |
92 if (DOMDataStore::setReturnValueFromWrapper<V8TestEventConstructor>(callback
Info.GetReturnValue(), impl)) | 107 if (DOMDataStore::setReturnValueFromWrapper<V8TestEventConstructor>(callback
Info.GetReturnValue(), impl)) |
93 return; | 108 return; |
94 v8::Handle<v8::Object> wrapper = wrap(impl, creationContext, callbackInfo.Ge
tIsolate()); | 109 v8::Handle<v8::Object> wrapper = wrap(impl, creationContext, callbackInfo.Ge
tIsolate()); |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te
stEventConstructor > impl, Wrappable* wrappable) | 158 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te
stEventConstructor > impl, Wrappable* wrappable) |
144 { | 159 { |
145 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); | 160 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); |
146 } | 161 } |
147 | 162 |
148 bool fillTestEventConstructorInit(TestEventConstructorInit&, const Dictionary&); | 163 bool fillTestEventConstructorInit(TestEventConstructorInit&, const Dictionary&); |
149 | 164 |
150 } | 165 } |
151 | 166 |
152 #endif // V8TestEventConstructor_h | 167 #endif // V8TestEventConstructor_h |
OLD | NEW |