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

Side by Side Diff: Source/bindings/tests/results/V8TestCustomAccessors.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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 { 82 {
83 if (UNLIKELY(!impl)) 83 if (UNLIKELY(!impl))
84 return v8NullWithCheck(isolate); 84 return v8NullWithCheck(isolate);
85 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestCustomAccesso rs>(impl, isolate); 85 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestCustomAccesso rs>(impl, isolate);
86 if (!wrapper.IsEmpty()) 86 if (!wrapper.IsEmpty())
87 return wrapper; 87 return wrapper;
88 return wrap(impl, creationContext, isolate); 88 return wrap(impl, creationContext, isolate);
89 } 89 }
90 90
91 template<typename CallbackInfo> 91 template<typename CallbackInfo>
92 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestCustomAccesso rs* impl, v8::Handle<v8::Object> creationContext) 92 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestCustomAccesso rs* impl)
93 { 93 {
94 if (UNLIKELY(!impl)) { 94 if (UNLIKELY(!impl)) {
95 v8SetReturnValueNull(callbackInfo); 95 v8SetReturnValueNull(callbackInfo);
96 return; 96 return;
97 } 97 }
98 if (DOMDataStore::setReturnValueFromWrapper<V8TestCustomAccessors>(callbackI nfo.GetReturnValue(), impl)) 98 if (DOMDataStore::setReturnValueFromWrapper<V8TestCustomAccessors>(callbackI nfo.GetReturnValue(), impl))
99 return; 99 return;
100 v8::Handle<v8::Object> wrapper = wrap(impl, creationContext, callbackInfo.Ge tIsolate()); 100 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI nfo.GetIsolate());
101 v8SetReturnValue(callbackInfo, wrapper); 101 v8SetReturnValue(callbackInfo, wrapper);
102 } 102 }
103 103
104 template<typename CallbackInfo> 104 template<typename CallbackInfo>
105 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, TestC ustomAccessors* impl, v8::Handle<v8::Object> creationContext) 105 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, TestC ustomAccessors* impl)
106 { 106 {
107 ASSERT(worldType(callbackInfo.GetIsolate()) == MainWorld); 107 ASSERT(worldType(callbackInfo.GetIsolate()) == MainWorld);
108 if (UNLIKELY(!impl)) { 108 if (UNLIKELY(!impl)) {
109 v8SetReturnValueNull(callbackInfo); 109 v8SetReturnValueNull(callbackInfo);
110 return; 110 return;
111 } 111 }
112 if (DOMDataStore::setReturnValueFromWrapperForMainWorld<V8TestCustomAccessor s>(callbackInfo.GetReturnValue(), impl)) 112 if (DOMDataStore::setReturnValueFromWrapperForMainWorld<V8TestCustomAccessor s>(callbackInfo.GetReturnValue(), impl))
113 return; 113 return;
114 v8::Handle<v8::Value> wrapper = wrap(impl, creationContext, callbackInfo.Get Isolate()); 114 v8::Handle<v8::Value> wrapper = wrap(impl, callbackInfo.Holder(), callbackIn fo.GetIsolate());
115 v8SetReturnValue(callbackInfo, wrapper); 115 v8SetReturnValue(callbackInfo, wrapper);
116 } 116 }
117 117
118 template<class CallbackInfo, class Wrappable> 118 template<class CallbackInfo, class Wrappable>
119 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, TestCustomAcc essors* impl, Wrappable* wrappable) 119 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, TestCustomAcc essors* impl, Wrappable* wrappable)
120 { 120 {
121 if (UNLIKELY(!impl)) { 121 if (UNLIKELY(!impl)) {
122 v8SetReturnValueNull(callbackInfo); 122 v8SetReturnValueNull(callbackInfo);
123 return; 123 return;
124 } 124 }
125 if (DOMDataStore::setReturnValueFromWrapperFast<V8TestCustomAccessors>(callb ackInfo.GetReturnValue(), impl, callbackInfo.Holder(), wrappable)) 125 if (DOMDataStore::setReturnValueFromWrapperFast<V8TestCustomAccessors>(callb ackInfo.GetReturnValue(), impl, callbackInfo.Holder(), wrappable))
126 return; 126 return;
127 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI nfo.GetIsolate()); 127 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI nfo.GetIsolate());
128 v8SetReturnValue(callbackInfo, wrapper); 128 v8SetReturnValue(callbackInfo, wrapper);
129 } 129 }
130 130
131 inline v8::Handle<v8::Value> toV8(PassRefPtr<TestCustomAccessors > impl, v8::Han dle<v8::Object> creationContext, v8::Isolate* isolate) 131 inline v8::Handle<v8::Value> toV8(PassRefPtr<TestCustomAccessors > impl, v8::Han dle<v8::Object> creationContext, v8::Isolate* isolate)
132 { 132 {
133 return toV8(impl.get(), creationContext, isolate); 133 return toV8(impl.get(), creationContext, isolate);
134 } 134 }
135 135
136 template<class CallbackInfo> 136 template<class CallbackInfo>
137 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, PassRefPtr<TestCu stomAccessors > impl, v8::Handle<v8::Object> creationContext) 137 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, PassRefPtr<TestCu stomAccessors > impl)
138 { 138 {
139 v8SetReturnValue(callbackInfo, impl.get(), creationContext); 139 v8SetReturnValue(callbackInfo, impl.get());
140 } 140 }
141 141
142 template<class CallbackInfo> 142 template<class CallbackInfo>
143 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, PassR efPtr<TestCustomAccessors > impl, v8::Handle<v8::Object> creationContext) 143 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, PassR efPtr<TestCustomAccessors > impl)
144 { 144 {
145 v8SetReturnValueForMainWorld(callbackInfo, impl.get(), creationContext); 145 v8SetReturnValueForMainWorld(callbackInfo, impl.get());
146 } 146 }
147 147
148 template<class CallbackInfo, class Wrappable> 148 template<class CallbackInfo, class Wrappable>
149 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te stCustomAccessors > impl, Wrappable* wrappable) 149 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te stCustomAccessors > impl, Wrappable* wrappable)
150 { 150 {
151 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); 151 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable);
152 } 152 }
153 153
154 } 154 }
155 155
156 #endif // V8TestCustomAccessors_h 156 #endif // V8TestCustomAccessors_h
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestConstants.h ('k') | Source/bindings/tests/results/V8TestEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698