| 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 { | 75 { |
| 76 if (UNLIKELY(!impl)) | 76 if (UNLIKELY(!impl)) |
| 77 return v8NullWithCheck(isolate); | 77 return v8NullWithCheck(isolate); |
| 78 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestSerializedScr
iptValueInterface>(impl, isolate); | 78 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestSerializedScr
iptValueInterface>(impl, isolate); |
| 79 if (!wrapper.IsEmpty()) | 79 if (!wrapper.IsEmpty()) |
| 80 return wrapper; | 80 return wrapper; |
| 81 return wrap(impl, creationContext, isolate); | 81 return wrap(impl, creationContext, isolate); |
| 82 } | 82 } |
| 83 | 83 |
| 84 template<typename CallbackInfo> | 84 template<typename CallbackInfo> |
| 85 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestSerializedScr
iptValueInterface* impl, v8::Handle<v8::Object> creationContext) | 85 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestSerializedScr
iptValueInterface* impl) |
| 86 { | 86 { |
| 87 if (UNLIKELY(!impl)) { | 87 if (UNLIKELY(!impl)) { |
| 88 v8SetReturnValueNull(callbackInfo); | 88 v8SetReturnValueNull(callbackInfo); |
| 89 return; | 89 return; |
| 90 } | 90 } |
| 91 if (DOMDataStore::setReturnValueFromWrapper<V8TestSerializedScriptValueInter
face>(callbackInfo.GetReturnValue(), impl)) | 91 if (DOMDataStore::setReturnValueFromWrapper<V8TestSerializedScriptValueInter
face>(callbackInfo.GetReturnValue(), impl)) |
| 92 return; | 92 return; |
| 93 v8::Handle<v8::Object> wrapper = wrap(impl, creationContext, callbackInfo.Ge
tIsolate()); | 93 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI
nfo.GetIsolate()); |
| 94 v8SetReturnValue(callbackInfo, wrapper); | 94 v8SetReturnValue(callbackInfo, wrapper); |
| 95 } | 95 } |
| 96 | 96 |
| 97 template<typename CallbackInfo> | 97 template<typename CallbackInfo> |
| 98 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, TestS
erializedScriptValueInterface* impl, v8::Handle<v8::Object> creationContext) | 98 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, TestS
erializedScriptValueInterface* impl) |
| 99 { | 99 { |
| 100 ASSERT(worldType(callbackInfo.GetIsolate()) == MainWorld); | 100 ASSERT(worldType(callbackInfo.GetIsolate()) == MainWorld); |
| 101 if (UNLIKELY(!impl)) { | 101 if (UNLIKELY(!impl)) { |
| 102 v8SetReturnValueNull(callbackInfo); | 102 v8SetReturnValueNull(callbackInfo); |
| 103 return; | 103 return; |
| 104 } | 104 } |
| 105 if (DOMDataStore::setReturnValueFromWrapperForMainWorld<V8TestSerializedScri
ptValueInterface>(callbackInfo.GetReturnValue(), impl)) | 105 if (DOMDataStore::setReturnValueFromWrapperForMainWorld<V8TestSerializedScri
ptValueInterface>(callbackInfo.GetReturnValue(), impl)) |
| 106 return; | 106 return; |
| 107 v8::Handle<v8::Value> wrapper = wrap(impl, creationContext, callbackInfo.Get
Isolate()); | 107 v8::Handle<v8::Value> wrapper = wrap(impl, callbackInfo.Holder(), callbackIn
fo.GetIsolate()); |
| 108 v8SetReturnValue(callbackInfo, wrapper); | 108 v8SetReturnValue(callbackInfo, wrapper); |
| 109 } | 109 } |
| 110 | 110 |
| 111 template<class CallbackInfo, class Wrappable> | 111 template<class CallbackInfo, class Wrappable> |
| 112 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, TestSerialize
dScriptValueInterface* impl, Wrappable* wrappable) | 112 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, TestSerialize
dScriptValueInterface* impl, Wrappable* wrappable) |
| 113 { | 113 { |
| 114 if (UNLIKELY(!impl)) { | 114 if (UNLIKELY(!impl)) { |
| 115 v8SetReturnValueNull(callbackInfo); | 115 v8SetReturnValueNull(callbackInfo); |
| 116 return; | 116 return; |
| 117 } | 117 } |
| 118 if (DOMDataStore::setReturnValueFromWrapperFast<V8TestSerializedScriptValueI
nterface>(callbackInfo.GetReturnValue(), impl, callbackInfo.Holder(), wrappable)
) | 118 if (DOMDataStore::setReturnValueFromWrapperFast<V8TestSerializedScriptValueI
nterface>(callbackInfo.GetReturnValue(), impl, callbackInfo.Holder(), wrappable)
) |
| 119 return; | 119 return; |
| 120 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI
nfo.GetIsolate()); | 120 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI
nfo.GetIsolate()); |
| 121 v8SetReturnValue(callbackInfo, wrapper); | 121 v8SetReturnValue(callbackInfo, wrapper); |
| 122 } | 122 } |
| 123 | 123 |
| 124 inline v8::Handle<v8::Value> toV8(PassRefPtr<TestSerializedScriptValueInterface
> impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) | 124 inline v8::Handle<v8::Value> toV8(PassRefPtr<TestSerializedScriptValueInterface
> impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) |
| 125 { | 125 { |
| 126 return toV8(impl.get(), creationContext, isolate); | 126 return toV8(impl.get(), creationContext, isolate); |
| 127 } | 127 } |
| 128 | 128 |
| 129 template<class CallbackInfo> | 129 template<class CallbackInfo> |
| 130 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, PassRefPtr<TestSe
rializedScriptValueInterface > impl, v8::Handle<v8::Object> creationContext) | 130 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, PassRefPtr<TestSe
rializedScriptValueInterface > impl) |
| 131 { | 131 { |
| 132 v8SetReturnValue(callbackInfo, impl.get(), creationContext); | 132 v8SetReturnValue(callbackInfo, impl.get()); |
| 133 } | 133 } |
| 134 | 134 |
| 135 template<class CallbackInfo> | 135 template<class CallbackInfo> |
| 136 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, PassR
efPtr<TestSerializedScriptValueInterface > impl, v8::Handle<v8::Object> creation
Context) | 136 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, PassR
efPtr<TestSerializedScriptValueInterface > impl) |
| 137 { | 137 { |
| 138 v8SetReturnValueForMainWorld(callbackInfo, impl.get(), creationContext); | 138 v8SetReturnValueForMainWorld(callbackInfo, impl.get()); |
| 139 } | 139 } |
| 140 | 140 |
| 141 template<class CallbackInfo, class Wrappable> | 141 template<class CallbackInfo, class Wrappable> |
| 142 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te
stSerializedScriptValueInterface > impl, Wrappable* wrappable) | 142 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te
stSerializedScriptValueInterface > impl, Wrappable* wrappable) |
| 143 { | 143 { |
| 144 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); | 144 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); |
| 145 } | 145 } |
| 146 | 146 |
| 147 } | 147 } |
| 148 | 148 |
| 149 #endif // ENABLE(Condition1) || ENABLE(Condition2) | 149 #endif // ENABLE(Condition1) || ENABLE(Condition2) |
| 150 | 150 |
| 151 #endif // V8TestSerializedScriptValueInterface_h | 151 #endif // V8TestSerializedScriptValueInterface_h |
| OLD | NEW |