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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 inline v8::Handle<v8::Value> toV8(TestNamedConstructor* impl, v8::Handle<v8::Obj
ect> creationContext, v8::Isolate* isolate) | 80 inline v8::Handle<v8::Value> toV8(TestNamedConstructor* impl, v8::Handle<v8::Obj
ect> creationContext, v8::Isolate* isolate) |
81 { | 81 { |
82 if (UNLIKELY(!impl)) | 82 if (UNLIKELY(!impl)) |
83 return v8NullWithCheck(isolate); | 83 return v8NullWithCheck(isolate); |
84 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestNamedConstruc
tor>(impl, isolate); | 84 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestNamedConstruc
tor>(impl, isolate); |
85 if (!wrapper.IsEmpty()) | 85 if (!wrapper.IsEmpty()) |
86 return wrapper; | 86 return wrapper; |
87 return wrap(impl, creationContext, isolate); | 87 return wrap(impl, creationContext, isolate); |
88 } | 88 } |
89 | 89 |
| 90 inline UnsafePersistent<v8::Object> toV8Persistent(TestNamedConstructor* impl, v
8::Handle<v8::Object> creationContext, v8::Isolate* isolate) |
| 91 { |
| 92 ASSERT(impl); |
| 93 |
| 94 UnsafePersistent<v8::Object> wrapperPersistent = DOMDataStore::getWrapperPer
sistent<V8TestNamedConstructor>(impl, isolate); |
| 95 if (LIKELY(!wrapperPersistent.isEmpty())) |
| 96 return wrapperPersistent; |
| 97 |
| 98 wrap(impl, creationContext, isolate); |
| 99 |
| 100 wrapperPersistent = DOMDataStore::getWrapperPersistent<V8TestNamedConstructo
r>(impl, isolate); |
| 101 ASSERT(!wrapperPersistent.isEmpty()); |
| 102 return wrapperPersistent; |
| 103 } |
| 104 |
90 template<typename CallbackInfo> | 105 template<typename CallbackInfo> |
91 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestNamedConstruc
tor* impl, v8::Handle<v8::Object> creationContext) | 106 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestNamedConstruc
tor* impl, v8::Handle<v8::Object> creationContext) |
92 { | 107 { |
93 if (UNLIKELY(!impl)) { | 108 if (UNLIKELY(!impl)) { |
94 v8SetReturnValueNull(callbackInfo); | 109 v8SetReturnValueNull(callbackInfo); |
95 return; | 110 return; |
96 } | 111 } |
97 if (DOMDataStore::setReturnValueFromWrapper<V8TestNamedConstructor>(callback
Info.GetReturnValue(), impl)) | 112 if (DOMDataStore::setReturnValueFromWrapper<V8TestNamedConstructor>(callback
Info.GetReturnValue(), impl)) |
98 return; | 113 return; |
99 v8::Handle<v8::Object> wrapper = wrap(impl, creationContext, callbackInfo.Ge
tIsolate()); | 114 v8::Handle<v8::Object> wrapper = wrap(impl, creationContext, callbackInfo.Ge
tIsolate()); |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 | 161 |
147 template<class CallbackInfo, class Wrappable> | 162 template<class CallbackInfo, class Wrappable> |
148 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te
stNamedConstructor > impl, Wrappable* wrappable) | 163 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te
stNamedConstructor > impl, Wrappable* wrappable) |
149 { | 164 { |
150 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); | 165 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); |
151 } | 166 } |
152 | 167 |
153 } | 168 } |
154 | 169 |
155 #endif // V8TestNamedConstructor_h | 170 #endif // V8TestNamedConstructor_h |
OLD | NEW |