Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(240)

Side by Side Diff: Source/bindings/tests/results/V8TestOverloadedConstructors.h

Issue 50073004: We don't need to pass |creationContext| to v8SetReturnValue family (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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<V8TestOverloadedCon structors>(impl, isolate); 78 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestOverloadedCon structors>(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, TestOverloadedCon structors* impl, v8::Handle<v8::Object> creationContext) 85 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestOverloadedCon structors* 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<V8TestOverloadedConstructors>(ca llbackInfo.GetReturnValue(), impl)) 91 if (DOMDataStore::setReturnValueFromWrapper<V8TestOverloadedConstructors>(ca llbackInfo.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, TestO verloadedConstructors* impl, v8::Handle<v8::Object> creationContext) 98 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, TestO verloadedConstructors* 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<V8TestOverloadedCons tructors>(callbackInfo.GetReturnValue(), impl)) 105 if (DOMDataStore::setReturnValueFromWrapperForMainWorld<V8TestOverloadedCons tructors>(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, TestOverloade dConstructors* impl, Wrappable* wrappable) 112 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, TestOverloade dConstructors* 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<V8TestOverloadedConstructors >(callbackInfo.GetReturnValue(), impl, callbackInfo.Holder(), wrappable)) 118 if (DOMDataStore::setReturnValueFromWrapperFast<V8TestOverloadedConstructors >(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<TestOverloadedConstructors > impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) 124 inline v8::Handle<v8::Value> toV8(PassRefPtr<TestOverloadedConstructors > 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<TestOv erloadedConstructors > impl, v8::Handle<v8::Object> creationContext) 130 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, PassRefPtr<TestOv erloadedConstructors > 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<TestOverloadedConstructors > impl, v8::Handle<v8::Object> creationContext) 136 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, PassR efPtr<TestOverloadedConstructors > 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 stOverloadedConstructors > impl, Wrappable* wrappable) 142 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te stOverloadedConstructors > 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 // V8TestOverloadedConstructors_h 149 #endif // V8TestOverloadedConstructors_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698