| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 { | 77 { |
| 78 if (UNLIKELY(!impl)) | 78 if (UNLIKELY(!impl)) |
| 79 return v8NullWithCheck(isolate); | 79 return v8NullWithCheck(isolate); |
| 80 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestNode>(impl, i
solate); | 80 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestNode>(impl, i
solate); |
| 81 if (!wrapper.IsEmpty()) | 81 if (!wrapper.IsEmpty()) |
| 82 return wrapper; | 82 return wrapper; |
| 83 return wrap(impl, creationContext, isolate); | 83 return wrap(impl, creationContext, isolate); |
| 84 } | 84 } |
| 85 | 85 |
| 86 template<typename CallbackInfo> | 86 template<typename CallbackInfo> |
| 87 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestNode* impl, v
8::Handle<v8::Object> creationContext) | 87 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestNode* impl) |
| 88 { | 88 { |
| 89 if (UNLIKELY(!impl)) { | 89 if (UNLIKELY(!impl)) { |
| 90 v8SetReturnValueNull(callbackInfo); | 90 v8SetReturnValueNull(callbackInfo); |
| 91 return; | 91 return; |
| 92 } | 92 } |
| 93 if (DOMDataStore::setReturnValueFromWrapper<V8TestNode>(callbackInfo.GetRetu
rnValue(), impl)) | 93 if (DOMDataStore::setReturnValueFromWrapper<V8TestNode>(callbackInfo.GetRetu
rnValue(), impl)) |
| 94 return; | 94 return; |
| 95 v8::Handle<v8::Object> wrapper = wrap(impl, creationContext, callbackInfo.Ge
tIsolate()); | 95 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI
nfo.GetIsolate()); |
| 96 v8SetReturnValue(callbackInfo, wrapper); | 96 v8SetReturnValue(callbackInfo, wrapper); |
| 97 } | 97 } |
| 98 | 98 |
| 99 template<typename CallbackInfo> | 99 template<typename CallbackInfo> |
| 100 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, TestN
ode* impl, v8::Handle<v8::Object> creationContext) | 100 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, TestN
ode* impl) |
| 101 { | 101 { |
| 102 ASSERT(worldType(callbackInfo.GetIsolate()) == MainWorld); | 102 ASSERT(worldType(callbackInfo.GetIsolate()) == MainWorld); |
| 103 if (UNLIKELY(!impl)) { | 103 if (UNLIKELY(!impl)) { |
| 104 v8SetReturnValueNull(callbackInfo); | 104 v8SetReturnValueNull(callbackInfo); |
| 105 return; | 105 return; |
| 106 } | 106 } |
| 107 if (DOMDataStore::setReturnValueFromWrapperForMainWorld<V8TestNode>(callback
Info.GetReturnValue(), impl)) | 107 if (DOMDataStore::setReturnValueFromWrapperForMainWorld<V8TestNode>(callback
Info.GetReturnValue(), impl)) |
| 108 return; | 108 return; |
| 109 v8::Handle<v8::Value> wrapper = wrap(impl, creationContext, callbackInfo.Get
Isolate()); | 109 v8::Handle<v8::Value> wrapper = wrap(impl, callbackInfo.Holder(), callbackIn
fo.GetIsolate()); |
| 110 v8SetReturnValue(callbackInfo, wrapper); | 110 v8SetReturnValue(callbackInfo, wrapper); |
| 111 } | 111 } |
| 112 | 112 |
| 113 template<class CallbackInfo, class Wrappable> | 113 template<class CallbackInfo, class Wrappable> |
| 114 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, TestNode* imp
l, Wrappable* wrappable) | 114 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, TestNode* imp
l, Wrappable* wrappable) |
| 115 { | 115 { |
| 116 if (UNLIKELY(!impl)) { | 116 if (UNLIKELY(!impl)) { |
| 117 v8SetReturnValueNull(callbackInfo); | 117 v8SetReturnValueNull(callbackInfo); |
| 118 return; | 118 return; |
| 119 } | 119 } |
| 120 if (DOMDataStore::setReturnValueFromWrapperFast<V8TestNode>(callbackInfo.Get
ReturnValue(), impl, callbackInfo.Holder(), wrappable)) | 120 if (DOMDataStore::setReturnValueFromWrapperFast<V8TestNode>(callbackInfo.Get
ReturnValue(), impl, callbackInfo.Holder(), wrappable)) |
| 121 return; | 121 return; |
| 122 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI
nfo.GetIsolate()); | 122 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI
nfo.GetIsolate()); |
| 123 v8SetReturnValue(callbackInfo, wrapper); | 123 v8SetReturnValue(callbackInfo, wrapper); |
| 124 } | 124 } |
| 125 | 125 |
| 126 inline v8::Handle<v8::Value> toV8(PassRefPtr<TestNode > impl, v8::Handle<v8::Obj
ect> creationContext, v8::Isolate* isolate) | 126 inline v8::Handle<v8::Value> toV8(PassRefPtr<TestNode > impl, v8::Handle<v8::Obj
ect> creationContext, v8::Isolate* isolate) |
| 127 { | 127 { |
| 128 return toV8(impl.get(), creationContext, isolate); | 128 return toV8(impl.get(), creationContext, isolate); |
| 129 } | 129 } |
| 130 | 130 |
| 131 template<class CallbackInfo> | 131 template<class CallbackInfo> |
| 132 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, PassRefPtr<TestNo
de > impl, v8::Handle<v8::Object> creationContext) | 132 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, PassRefPtr<TestNo
de > impl) |
| 133 { | 133 { |
| 134 v8SetReturnValue(callbackInfo, impl.get(), creationContext); | 134 v8SetReturnValue(callbackInfo, impl.get()); |
| 135 } | 135 } |
| 136 | 136 |
| 137 template<class CallbackInfo> | 137 template<class CallbackInfo> |
| 138 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, PassR
efPtr<TestNode > impl, v8::Handle<v8::Object> creationContext) | 138 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, PassR
efPtr<TestNode > impl) |
| 139 { | 139 { |
| 140 v8SetReturnValueForMainWorld(callbackInfo, impl.get(), creationContext); | 140 v8SetReturnValueForMainWorld(callbackInfo, impl.get()); |
| 141 } | 141 } |
| 142 | 142 |
| 143 template<class CallbackInfo, class Wrappable> | 143 template<class CallbackInfo, class Wrappable> |
| 144 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te
stNode > impl, Wrappable* wrappable) | 144 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te
stNode > impl, Wrappable* wrappable) |
| 145 { | 145 { |
| 146 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); | 146 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); |
| 147 } | 147 } |
| 148 | 148 |
| 149 } | 149 } |
| 150 | 150 |
| 151 #endif // V8TestNode_h | 151 #endif // V8TestNode_h |
| OLD | NEW |