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

Side by Side Diff: Source/bindings/tests/results/V8Float64Array.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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 { 73 {
74 if (UNLIKELY(!impl)) 74 if (UNLIKELY(!impl))
75 return v8NullWithCheck(isolate); 75 return v8NullWithCheck(isolate);
76 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8Float64Array>(imp l, isolate); 76 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8Float64Array>(imp l, isolate);
77 if (!wrapper.IsEmpty()) 77 if (!wrapper.IsEmpty())
78 return wrapper; 78 return wrapper;
79 return wrap(impl, creationContext, isolate); 79 return wrap(impl, creationContext, isolate);
80 } 80 }
81 81
82 template<typename CallbackInfo> 82 template<typename CallbackInfo>
83 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, Float64Array* imp l, v8::Handle<v8::Object> creationContext) 83 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, Float64Array* imp l)
84 { 84 {
85 if (UNLIKELY(!impl)) { 85 if (UNLIKELY(!impl)) {
86 v8SetReturnValueNull(callbackInfo); 86 v8SetReturnValueNull(callbackInfo);
87 return; 87 return;
88 } 88 }
89 if (DOMDataStore::setReturnValueFromWrapper<V8Float64Array>(callbackInfo.Get ReturnValue(), impl)) 89 if (DOMDataStore::setReturnValueFromWrapper<V8Float64Array>(callbackInfo.Get ReturnValue(), impl))
90 return; 90 return;
91 v8::Handle<v8::Object> wrapper = wrap(impl, creationContext, callbackInfo.Ge tIsolate()); 91 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI nfo.GetIsolate());
92 v8SetReturnValue(callbackInfo, wrapper); 92 v8SetReturnValue(callbackInfo, wrapper);
93 } 93 }
94 94
95 template<typename CallbackInfo> 95 template<typename CallbackInfo>
96 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, Float 64Array* impl, v8::Handle<v8::Object> creationContext) 96 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, Float 64Array* impl)
97 { 97 {
98 ASSERT(worldType(callbackInfo.GetIsolate()) == MainWorld); 98 ASSERT(worldType(callbackInfo.GetIsolate()) == MainWorld);
99 if (UNLIKELY(!impl)) { 99 if (UNLIKELY(!impl)) {
100 v8SetReturnValueNull(callbackInfo); 100 v8SetReturnValueNull(callbackInfo);
101 return; 101 return;
102 } 102 }
103 if (DOMDataStore::setReturnValueFromWrapperForMainWorld<V8Float64Array>(call backInfo.GetReturnValue(), impl)) 103 if (DOMDataStore::setReturnValueFromWrapperForMainWorld<V8Float64Array>(call backInfo.GetReturnValue(), impl))
104 return; 104 return;
105 v8::Handle<v8::Value> wrapper = wrap(impl, creationContext, callbackInfo.Get Isolate()); 105 v8::Handle<v8::Value> wrapper = wrap(impl, callbackInfo.Holder(), callbackIn fo.GetIsolate());
106 v8SetReturnValue(callbackInfo, wrapper); 106 v8SetReturnValue(callbackInfo, wrapper);
107 } 107 }
108 108
109 template<class CallbackInfo, class Wrappable> 109 template<class CallbackInfo, class Wrappable>
110 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, Float64Array* impl, Wrappable* wrappable) 110 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, Float64Array* impl, Wrappable* wrappable)
111 { 111 {
112 if (UNLIKELY(!impl)) { 112 if (UNLIKELY(!impl)) {
113 v8SetReturnValueNull(callbackInfo); 113 v8SetReturnValueNull(callbackInfo);
114 return; 114 return;
115 } 115 }
116 if (DOMDataStore::setReturnValueFromWrapperFast<V8Float64Array>(callbackInfo .GetReturnValue(), impl, callbackInfo.Holder(), wrappable)) 116 if (DOMDataStore::setReturnValueFromWrapperFast<V8Float64Array>(callbackInfo .GetReturnValue(), impl, callbackInfo.Holder(), wrappable))
117 return; 117 return;
118 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI nfo.GetIsolate()); 118 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI nfo.GetIsolate());
119 v8SetReturnValue(callbackInfo, wrapper); 119 v8SetReturnValue(callbackInfo, wrapper);
120 } 120 }
121 121
122 inline v8::Handle<v8::Value> toV8(PassRefPtr<Float64Array > impl, v8::Handle<v8: :Object> creationContext, v8::Isolate* isolate) 122 inline v8::Handle<v8::Value> toV8(PassRefPtr<Float64Array > impl, v8::Handle<v8: :Object> creationContext, v8::Isolate* isolate)
123 { 123 {
124 return toV8(impl.get(), creationContext, isolate); 124 return toV8(impl.get(), creationContext, isolate);
125 } 125 }
126 126
127 template<class CallbackInfo> 127 template<class CallbackInfo>
128 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, PassRefPtr<Float6 4Array > impl, v8::Handle<v8::Object> creationContext) 128 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, PassRefPtr<Float6 4Array > impl)
129 { 129 {
130 v8SetReturnValue(callbackInfo, impl.get(), creationContext); 130 v8SetReturnValue(callbackInfo, impl.get());
131 } 131 }
132 132
133 template<class CallbackInfo> 133 template<class CallbackInfo>
134 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, PassR efPtr<Float64Array > impl, v8::Handle<v8::Object> creationContext) 134 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, PassR efPtr<Float64Array > impl)
135 { 135 {
136 v8SetReturnValueForMainWorld(callbackInfo, impl.get(), creationContext); 136 v8SetReturnValueForMainWorld(callbackInfo, impl.get());
137 } 137 }
138 138
139 template<class CallbackInfo, class Wrappable> 139 template<class CallbackInfo, class Wrappable>
140 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Fl oat64Array > impl, Wrappable* wrappable) 140 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Fl oat64Array > impl, Wrappable* wrappable)
141 { 141 {
142 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); 142 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable);
143 } 143 }
144 144
145 } 145 }
146 146
147 #endif // V8Float64Array_h 147 #endif // V8Float64Array_h
OLDNEW
« no previous file with comments | « Source/bindings/scripts/code_generator_v8.pm ('k') | Source/bindings/tests/results/V8Float64Array.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698