| 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 inline v8::Handle<v8::Value> toV8(TestNode* impl, v8::Handle<v8::Object> creatio
nContext, v8::Isolate* isolate) | 76 inline v8::Handle<v8::Value> toV8(TestNode* impl, v8::Handle<v8::Object> creatio
nContext, v8::Isolate* isolate) |
| 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 inline UnsafePersistent<v8::Object> toV8Persistent(TestNode* impl, v8::Handle<v8
::Object> creationContext, v8::Isolate* isolate) |
| 87 { |
| 88 ASSERT(impl); |
| 89 |
| 90 UnsafePersistent<v8::Object> wrapperPersistent = DOMDataStore::getWrapperPer
sistent<V8TestNode>(impl, isolate); |
| 91 if (LIKELY(!wrapperPersistent.isEmpty())) |
| 92 return wrapperPersistent; |
| 93 |
| 94 wrap(impl, creationContext, isolate); |
| 95 |
| 96 wrapperPersistent = DOMDataStore::getWrapperPersistent<V8TestNode>(impl, iso
late); |
| 97 ASSERT(!wrapperPersistent.isEmpty()); |
| 98 return wrapperPersistent; |
| 99 } |
| 100 |
| 86 template<typename CallbackInfo> | 101 template<typename CallbackInfo> |
| 87 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestNode* impl, v
8::Handle<v8::Object> creationContext) | 102 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestNode* impl, v
8::Handle<v8::Object> creationContext) |
| 88 { | 103 { |
| 89 if (UNLIKELY(!impl)) { | 104 if (UNLIKELY(!impl)) { |
| 90 v8SetReturnValueNull(callbackInfo); | 105 v8SetReturnValueNull(callbackInfo); |
| 91 return; | 106 return; |
| 92 } | 107 } |
| 93 if (DOMDataStore::setReturnValueFromWrapper<V8TestNode>(callbackInfo.GetRetu
rnValue(), impl)) | 108 if (DOMDataStore::setReturnValueFromWrapper<V8TestNode>(callbackInfo.GetRetu
rnValue(), impl)) |
| 94 return; | 109 return; |
| 95 v8::Handle<v8::Object> wrapper = wrap(impl, creationContext, callbackInfo.Ge
tIsolate()); | 110 v8::Handle<v8::Object> wrapper = wrap(impl, creationContext, callbackInfo.Ge
tIsolate()); |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 | 157 |
| 143 template<class CallbackInfo, class Wrappable> | 158 template<class CallbackInfo, class Wrappable> |
| 144 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te
stNode > impl, Wrappable* wrappable) | 159 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te
stNode > impl, Wrappable* wrappable) |
| 145 { | 160 { |
| 146 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); | 161 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); |
| 147 } | 162 } |
| 148 | 163 |
| 149 } | 164 } |
| 150 | 165 |
| 151 #endif // V8TestNode_h | 166 #endif // V8TestNode_h |
| OLD | NEW |