| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 { | 83 { |
| 84 if (UNLIKELY(!impl)) | 84 if (UNLIKELY(!impl)) |
| 85 return v8NullWithCheck(isolate); | 85 return v8NullWithCheck(isolate); |
| 86 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestObject>(impl,
isolate); | 86 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestObject>(impl,
isolate); |
| 87 if (!wrapper.IsEmpty()) | 87 if (!wrapper.IsEmpty()) |
| 88 return wrapper; | 88 return wrapper; |
| 89 return wrap(impl, creationContext, isolate); | 89 return wrap(impl, creationContext, isolate); |
| 90 } | 90 } |
| 91 | 91 |
| 92 template<typename CallbackInfo> | 92 template<typename CallbackInfo> |
| 93 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestObj* impl, v8
::Handle<v8::Object> creationContext) | 93 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestObj* impl) |
| 94 { | 94 { |
| 95 if (UNLIKELY(!impl)) { | 95 if (UNLIKELY(!impl)) { |
| 96 v8SetReturnValueNull(callbackInfo); | 96 v8SetReturnValueNull(callbackInfo); |
| 97 return; | 97 return; |
| 98 } | 98 } |
| 99 if (DOMDataStore::setReturnValueFromWrapper<V8TestObject>(callbackInfo.GetRe
turnValue(), impl)) | 99 if (DOMDataStore::setReturnValueFromWrapper<V8TestObject>(callbackInfo.GetRe
turnValue(), impl)) |
| 100 return; | 100 return; |
| 101 v8::Handle<v8::Object> wrapper = wrap(impl, creationContext, callbackInfo.Ge
tIsolate()); | 101 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI
nfo.GetIsolate()); |
| 102 v8SetReturnValue(callbackInfo, wrapper); | 102 v8SetReturnValue(callbackInfo, wrapper); |
| 103 } | 103 } |
| 104 | 104 |
| 105 template<typename CallbackInfo> | 105 template<typename CallbackInfo> |
| 106 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, TestO
bj* impl, v8::Handle<v8::Object> creationContext) | 106 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, TestO
bj* impl) |
| 107 { | 107 { |
| 108 ASSERT(worldType(callbackInfo.GetIsolate()) == MainWorld); | 108 ASSERT(worldType(callbackInfo.GetIsolate()) == MainWorld); |
| 109 if (UNLIKELY(!impl)) { | 109 if (UNLIKELY(!impl)) { |
| 110 v8SetReturnValueNull(callbackInfo); | 110 v8SetReturnValueNull(callbackInfo); |
| 111 return; | 111 return; |
| 112 } | 112 } |
| 113 if (DOMDataStore::setReturnValueFromWrapperForMainWorld<V8TestObject>(callba
ckInfo.GetReturnValue(), impl)) | 113 if (DOMDataStore::setReturnValueFromWrapperForMainWorld<V8TestObject>(callba
ckInfo.GetReturnValue(), impl)) |
| 114 return; | 114 return; |
| 115 v8::Handle<v8::Value> wrapper = wrap(impl, creationContext, callbackInfo.Get
Isolate()); | 115 v8::Handle<v8::Value> wrapper = wrap(impl, callbackInfo.Holder(), callbackIn
fo.GetIsolate()); |
| 116 v8SetReturnValue(callbackInfo, wrapper); | 116 v8SetReturnValue(callbackInfo, wrapper); |
| 117 } | 117 } |
| 118 | 118 |
| 119 template<class CallbackInfo, class Wrappable> | 119 template<class CallbackInfo, class Wrappable> |
| 120 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, TestObj* impl
, Wrappable* wrappable) | 120 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, TestObj* impl
, Wrappable* wrappable) |
| 121 { | 121 { |
| 122 if (UNLIKELY(!impl)) { | 122 if (UNLIKELY(!impl)) { |
| 123 v8SetReturnValueNull(callbackInfo); | 123 v8SetReturnValueNull(callbackInfo); |
| 124 return; | 124 return; |
| 125 } | 125 } |
| 126 if (DOMDataStore::setReturnValueFromWrapperFast<V8TestObject>(callbackInfo.G
etReturnValue(), impl, callbackInfo.Holder(), wrappable)) | 126 if (DOMDataStore::setReturnValueFromWrapperFast<V8TestObject>(callbackInfo.G
etReturnValue(), impl, callbackInfo.Holder(), wrappable)) |
| 127 return; | 127 return; |
| 128 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI
nfo.GetIsolate()); | 128 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI
nfo.GetIsolate()); |
| 129 v8SetReturnValue(callbackInfo, wrapper); | 129 v8SetReturnValue(callbackInfo, wrapper); |
| 130 } | 130 } |
| 131 | 131 |
| 132 inline v8::Handle<v8::Value> toV8(PassRefPtr<TestObj > impl, v8::Handle<v8::Obje
ct> creationContext, v8::Isolate* isolate) | 132 inline v8::Handle<v8::Value> toV8(PassRefPtr<TestObj > impl, v8::Handle<v8::Obje
ct> creationContext, v8::Isolate* isolate) |
| 133 { | 133 { |
| 134 return toV8(impl.get(), creationContext, isolate); | 134 return toV8(impl.get(), creationContext, isolate); |
| 135 } | 135 } |
| 136 | 136 |
| 137 template<class CallbackInfo> | 137 template<class CallbackInfo> |
| 138 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, PassRefPtr<TestOb
j > impl, v8::Handle<v8::Object> creationContext) | 138 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, PassRefPtr<TestOb
j > impl) |
| 139 { | 139 { |
| 140 v8SetReturnValue(callbackInfo, impl.get(), creationContext); | 140 v8SetReturnValue(callbackInfo, impl.get()); |
| 141 } | 141 } |
| 142 | 142 |
| 143 template<class CallbackInfo> | 143 template<class CallbackInfo> |
| 144 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, PassR
efPtr<TestObj > impl, v8::Handle<v8::Object> creationContext) | 144 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, PassR
efPtr<TestObj > impl) |
| 145 { | 145 { |
| 146 v8SetReturnValueForMainWorld(callbackInfo, impl.get(), creationContext); | 146 v8SetReturnValueForMainWorld(callbackInfo, impl.get()); |
| 147 } | 147 } |
| 148 | 148 |
| 149 template<class CallbackInfo, class Wrappable> | 149 template<class CallbackInfo, class Wrappable> |
| 150 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te
stObj > impl, Wrappable* wrappable) | 150 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te
stObj > impl, Wrappable* wrappable) |
| 151 { | 151 { |
| 152 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); | 152 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); |
| 153 } | 153 } |
| 154 | 154 |
| 155 } | 155 } |
| 156 | 156 |
| 157 #endif // V8TestObject_h | 157 #endif // V8TestObject_h |
| OLD | NEW |