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

Side by Side Diff: Source/bindings/tests/results/V8TestTypedefs.cpp

Issue 386613002: FYI: Compile fixes when always using a local for method return value Base URL: https://chromium.googlesource.com/chromium/blink.git@idl-nullable-method-return-type
Patch Set: Created 6 years, 5 months 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
6 6
7 #include "config.h" 7 #include "config.h"
8 #include "V8TestTypedefs.h" 8 #include "V8TestTypedefs.h"
9 9
10 #include "bindings/core/v8/ExceptionState.h" 10 #include "bindings/core/v8/ExceptionState.h"
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 throwMinimumArityTypeErrorForMethod("uLongLongMethodTestInterfaceEmptyTy peSequenceArg", "TestTypedefs", 1, info.Length(), info.GetIsolate()); 176 throwMinimumArityTypeErrorForMethod("uLongLongMethodTestInterfaceEmptyTy peSequenceArg", "TestTypedefs", 1, info.Length(), info.GetIsolate());
177 return; 177 return;
178 } 178 }
179 TestTypedefs* impl = V8TestTypedefs::toNative(info.Holder()); 179 TestTypedefs* impl = V8TestTypedefs::toNative(info.Holder());
180 Vector<RefPtr<TestInterfaceEmpty> > testInterfaceEmptyTypeSequenceArg; 180 Vector<RefPtr<TestInterfaceEmpty> > testInterfaceEmptyTypeSequenceArg;
181 { 181 {
182 v8::TryCatch block; 182 v8::TryCatch block;
183 V8RethrowTryCatchScope rethrow(block); 183 V8RethrowTryCatchScope rethrow(block);
184 TONATIVE_VOID_INTERNAL(testInterfaceEmptyTypeSequenceArg, (toRefPtrNativ eArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1, info.GetIsolate())) ); 184 TONATIVE_VOID_INTERNAL(testInterfaceEmptyTypeSequenceArg, (toRefPtrNativ eArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1, info.GetIsolate())) );
185 } 185 }
186 v8SetReturnValue(info, static_cast<double>(impl->uLongLongMethodTestInterfac eEmptyTypeSequenceArg(testInterfaceEmptyTypeSequenceArg))); 186 unsigned long long result = impl->uLongLongMethodTestInterfaceEmptyTypeSeque nceArg(testInterfaceEmptyTypeSequenceArg);
187 v8SetReturnValue(info, static_cast<double>(result));
187 } 188 }
188 189
189 static void uLongLongMethodTestInterfaceEmptyTypeSequenceArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 190 static void uLongLongMethodTestInterfaceEmptyTypeSequenceArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
190 { 191 {
191 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 192 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
192 TestTypedefsV8Internal::uLongLongMethodTestInterfaceEmptyTypeSequenceArgMeth od(info); 193 TestTypedefsV8Internal::uLongLongMethodTestInterfaceEmptyTypeSequenceArgMeth od(info);
193 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 194 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
194 } 195 }
195 196
196 static void testInterfaceOrTestInterfaceEmptyMethodMethod(const v8::FunctionCall backInfo<v8::Value>& info) 197 static void testInterfaceOrTestInterfaceEmptyMethodMethod(const v8::FunctionCall backInfo<v8::Value>& info)
(...skipping 28 matching lines...) Expand all
225 throwMinimumArityTypeErrorForMethod("arrayOfStringsMethodArrayOfStringsA rg", "TestTypedefs", 1, info.Length(), info.GetIsolate()); 226 throwMinimumArityTypeErrorForMethod("arrayOfStringsMethodArrayOfStringsA rg", "TestTypedefs", 1, info.Length(), info.GetIsolate());
226 return; 227 return;
227 } 228 }
228 TestTypedefs* impl = V8TestTypedefs::toNative(info.Holder()); 229 TestTypedefs* impl = V8TestTypedefs::toNative(info.Holder());
229 Vector<String> arrayOfStringsArg; 230 Vector<String> arrayOfStringsArg;
230 { 231 {
231 v8::TryCatch block; 232 v8::TryCatch block;
232 V8RethrowTryCatchScope rethrow(block); 233 V8RethrowTryCatchScope rethrow(block);
233 TONATIVE_VOID_INTERNAL(arrayOfStringsArg, toNativeArray<String>(info[0], 1, info.GetIsolate())); 234 TONATIVE_VOID_INTERNAL(arrayOfStringsArg, toNativeArray<String>(info[0], 1, info.GetIsolate()));
234 } 235 }
235 v8SetReturnValue(info, v8Array(impl->arrayOfStringsMethodArrayOfStringsArg(a rrayOfStringsArg), info.Holder(), info.GetIsolate())); 236 Vector<String> result = impl->arrayOfStringsMethodArrayOfStringsArg(arrayOfS tringsArg);
237 v8SetReturnValue(info, v8Array(result, info.Holder(), info.GetIsolate()));
236 } 238 }
237 239
238 static void arrayOfStringsMethodArrayOfStringsArgMethodCallback(const v8::Functi onCallbackInfo<v8::Value>& info) 240 static void arrayOfStringsMethodArrayOfStringsArgMethodCallback(const v8::Functi onCallbackInfo<v8::Value>& info)
239 { 241 {
240 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 242 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
241 TestTypedefsV8Internal::arrayOfStringsMethodArrayOfStringsArgMethod(info); 243 TestTypedefsV8Internal::arrayOfStringsMethodArrayOfStringsArgMethod(info);
242 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 244 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
243 } 245 }
244 246
245 static void stringArrayMethodStringArrayArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info) 247 static void stringArrayMethodStringArrayArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info)
246 { 248 {
247 if (UNLIKELY(info.Length() < 1)) { 249 if (UNLIKELY(info.Length() < 1)) {
248 throwMinimumArityTypeErrorForMethod("stringArrayMethodStringArrayArg", " TestTypedefs", 1, info.Length(), info.GetIsolate()); 250 throwMinimumArityTypeErrorForMethod("stringArrayMethodStringArrayArg", " TestTypedefs", 1, info.Length(), info.GetIsolate());
249 return; 251 return;
250 } 252 }
251 TestTypedefs* impl = V8TestTypedefs::toNative(info.Holder()); 253 TestTypedefs* impl = V8TestTypedefs::toNative(info.Holder());
252 Vector<String> stringArrayArg; 254 Vector<String> stringArrayArg;
253 { 255 {
254 v8::TryCatch block; 256 v8::TryCatch block;
255 V8RethrowTryCatchScope rethrow(block); 257 V8RethrowTryCatchScope rethrow(block);
256 TONATIVE_VOID_INTERNAL(stringArrayArg, toNativeArray<String>(info[0], 1, info.GetIsolate())); 258 TONATIVE_VOID_INTERNAL(stringArrayArg, toNativeArray<String>(info[0], 1, info.GetIsolate()));
257 } 259 }
258 v8SetReturnValue(info, v8Array(impl->stringArrayMethodStringArrayArg(stringA rrayArg), info.Holder(), info.GetIsolate())); 260 Vector<String> result = impl->stringArrayMethodStringArrayArg(stringArrayArg );
261 v8SetReturnValue(info, v8Array(result, info.Holder(), info.GetIsolate()));
259 } 262 }
260 263
261 static void stringArrayMethodStringArrayArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info) 264 static void stringArrayMethodStringArrayArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info)
262 { 265 {
263 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 266 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
264 TestTypedefsV8Internal::stringArrayMethodStringArrayArgMethod(info); 267 TestTypedefsV8Internal::stringArrayMethodStringArrayArgMethod(info);
265 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 268 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
266 } 269 }
267 270
268 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) 271 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info)
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 fromInternalPointer(object)->deref(); 389 fromInternalPointer(object)->deref();
387 } 390 }
388 391
389 template<> 392 template<>
390 v8::Handle<v8::Value> toV8NoInline(TestTypedefs* impl, v8::Handle<v8::Object> cr eationContext, v8::Isolate* isolate) 393 v8::Handle<v8::Value> toV8NoInline(TestTypedefs* impl, v8::Handle<v8::Object> cr eationContext, v8::Isolate* isolate)
391 { 394 {
392 return toV8(impl, creationContext, isolate); 395 return toV8(impl, creationContext, isolate);
393 } 396 }
394 397
395 } // namespace WebCore 398 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698