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

Side by Side Diff: Source/bindings/tests/results/V8TestObject.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 "V8TestObject.h" 8 #include "V8TestObject.h"
9 9
10 #include "bindings/core/v8/BindingSecurity.h" 10 #include "bindings/core/v8/BindingSecurity.h"
(...skipping 5220 matching lines...) Expand 10 before | Expand all | Expand 10 after
5231 static void staticVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info) 5231 static void staticVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info)
5232 { 5232 {
5233 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5233 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5234 TestObjectV8Internal::staticVoidMethodMethod(info); 5234 TestObjectV8Internal::staticVoidMethodMethod(info);
5235 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5235 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5236 } 5236 }
5237 5237
5238 static void dateMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 5238 static void dateMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
5239 { 5239 {
5240 TestObject* impl = V8TestObject::toNative(info.Holder()); 5240 TestObject* impl = V8TestObject::toNative(info.Holder());
5241 v8SetReturnValue(info, v8DateOrNaN(impl->dateMethod(), info.GetIsolate())); 5241 double result = impl->dateMethod();
5242 v8SetReturnValue(info, v8DateOrNaN(result, info.GetIsolate()));
5242 } 5243 }
5243 5244
5244 static void dateMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 5245 static void dateMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
5245 { 5246 {
5246 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5247 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5247 TestObjectV8Internal::dateMethodMethod(info); 5248 TestObjectV8Internal::dateMethodMethod(info);
5248 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5249 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5249 } 5250 }
5250 5251
5251 static void stringMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 5252 static void stringMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
5252 { 5253 {
5253 TestObject* impl = V8TestObject::toNative(info.Holder()); 5254 TestObject* impl = V8TestObject::toNative(info.Holder());
5254 v8SetReturnValueString(info, impl->stringMethod(), info.GetIsolate()); 5255 String result = impl->stringMethod();
5256 v8SetReturnValueString(info, result, info.GetIsolate());
5255 } 5257 }
5256 5258
5257 static void stringMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value> & info) 5259 static void stringMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value> & info)
5258 { 5260 {
5259 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5261 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5260 TestObjectV8Internal::stringMethodMethod(info); 5262 TestObjectV8Internal::stringMethodMethod(info);
5261 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5263 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5262 } 5264 }
5263 5265
5264 static void byteStringMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo) 5266 static void byteStringMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo)
5265 { 5267 {
5266 TestObject* impl = V8TestObject::toNative(info.Holder()); 5268 TestObject* impl = V8TestObject::toNative(info.Holder());
5267 v8SetReturnValueString(info, impl->byteStringMethod(), info.GetIsolate()); 5269 String result = impl->byteStringMethod();
5270 v8SetReturnValueString(info, result, info.GetIsolate());
5268 } 5271 }
5269 5272
5270 static void byteStringMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info) 5273 static void byteStringMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info)
5271 { 5274 {
5272 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5275 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5273 TestObjectV8Internal::byteStringMethodMethod(info); 5276 TestObjectV8Internal::byteStringMethodMethod(info);
5274 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5277 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5275 } 5278 }
5276 5279
5277 static void scalarValueStringMethodMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) 5280 static void scalarValueStringMethodMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info)
5278 { 5281 {
5279 TestObject* impl = V8TestObject::toNative(info.Holder()); 5282 TestObject* impl = V8TestObject::toNative(info.Holder());
5280 v8SetReturnValueString(info, impl->scalarValueStringMethod(), info.GetIsolat e()); 5283 String result = impl->scalarValueStringMethod();
5284 v8SetReturnValueString(info, result, info.GetIsolate());
5281 } 5285 }
5282 5286
5283 static void scalarValueStringMethodMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 5287 static void scalarValueStringMethodMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
5284 { 5288 {
5285 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5289 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5286 TestObjectV8Internal::scalarValueStringMethodMethod(info); 5290 TestObjectV8Internal::scalarValueStringMethodMethod(info);
5287 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5291 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5288 } 5292 }
5289 5293
5290 static void readonlyDOMTimeStampMethodMethod(const v8::FunctionCallbackInfo<v8:: Value>& info) 5294 static void readonlyDOMTimeStampMethodMethod(const v8::FunctionCallbackInfo<v8:: Value>& info)
5291 { 5295 {
5292 TestObject* impl = V8TestObject::toNative(info.Holder()); 5296 TestObject* impl = V8TestObject::toNative(info.Holder());
5293 v8SetReturnValue(info, static_cast<double>(impl->readonlyDOMTimeStampMethod( ))); 5297 unsigned long long result = impl->readonlyDOMTimeStampMethod();
5298 v8SetReturnValue(info, static_cast<double>(result));
5294 } 5299 }
5295 5300
5296 static void readonlyDOMTimeStampMethodMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) 5301 static void readonlyDOMTimeStampMethodMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info)
5297 { 5302 {
5298 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5303 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5299 TestObjectV8Internal::readonlyDOMTimeStampMethodMethod(info); 5304 TestObjectV8Internal::readonlyDOMTimeStampMethodMethod(info);
5300 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5305 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5301 } 5306 }
5302 5307
5303 static void booleanMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 5308 static void booleanMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
5304 { 5309 {
5305 TestObject* impl = V8TestObject::toNative(info.Holder()); 5310 TestObject* impl = V8TestObject::toNative(info.Holder());
5306 v8SetReturnValueBool(info, impl->booleanMethod()); 5311 bool result = impl->booleanMethod();
5312 v8SetReturnValueBool(info, result);
5307 } 5313 }
5308 5314
5309 static void booleanMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value >& info) 5315 static void booleanMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value >& info)
5310 { 5316 {
5311 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5317 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5312 TestObjectV8Internal::booleanMethodMethod(info); 5318 TestObjectV8Internal::booleanMethodMethod(info);
5313 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5319 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5314 } 5320 }
5315 5321
5316 static void byteMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 5322 static void byteMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
5317 { 5323 {
5318 TestObject* impl = V8TestObject::toNative(info.Holder()); 5324 TestObject* impl = V8TestObject::toNative(info.Holder());
5319 v8SetReturnValueInt(info, impl->byteMethod()); 5325 int result = impl->byteMethod();
5326 v8SetReturnValueInt(info, result);
5320 } 5327 }
5321 5328
5322 static void byteMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 5329 static void byteMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
5323 { 5330 {
5324 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5331 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5325 TestObjectV8Internal::byteMethodMethod(info); 5332 TestObjectV8Internal::byteMethodMethod(info);
5326 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5333 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5327 } 5334 }
5328 5335
5329 static void doubleMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 5336 static void doubleMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
5330 { 5337 {
5331 TestObject* impl = V8TestObject::toNative(info.Holder()); 5338 TestObject* impl = V8TestObject::toNative(info.Holder());
5332 v8SetReturnValue(info, impl->doubleMethod()); 5339 double result = impl->doubleMethod();
5340 v8SetReturnValue(info, result);
5333 } 5341 }
5334 5342
5335 static void doubleMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value> & info) 5343 static void doubleMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value> & info)
5336 { 5344 {
5337 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5345 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5338 TestObjectV8Internal::doubleMethodMethod(info); 5346 TestObjectV8Internal::doubleMethodMethod(info);
5339 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5347 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5340 } 5348 }
5341 5349
5342 static void floatMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 5350 static void floatMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
5343 { 5351 {
5344 TestObject* impl = V8TestObject::toNative(info.Holder()); 5352 TestObject* impl = V8TestObject::toNative(info.Holder());
5345 v8SetReturnValue(info, impl->floatMethod()); 5353 float result = impl->floatMethod();
5354 v8SetReturnValue(info, result);
5346 } 5355 }
5347 5356
5348 static void floatMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 5357 static void floatMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
5349 { 5358 {
5350 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5359 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5351 TestObjectV8Internal::floatMethodMethod(info); 5360 TestObjectV8Internal::floatMethodMethod(info);
5352 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5361 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5353 } 5362 }
5354 5363
5355 static void longMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 5364 static void longMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
5356 { 5365 {
5357 TestObject* impl = V8TestObject::toNative(info.Holder()); 5366 TestObject* impl = V8TestObject::toNative(info.Holder());
5358 v8SetReturnValueInt(info, impl->longMethod()); 5367 int result = impl->longMethod();
5368 v8SetReturnValueInt(info, result);
5359 } 5369 }
5360 5370
5361 static void longMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 5371 static void longMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
5362 { 5372 {
5363 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5373 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5364 TestObjectV8Internal::longMethodMethod(info); 5374 TestObjectV8Internal::longMethodMethod(info);
5365 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5375 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5366 } 5376 }
5367 5377
5368 static void longLongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info ) 5378 static void longLongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info )
5369 { 5379 {
5370 TestObject* impl = V8TestObject::toNative(info.Holder()); 5380 TestObject* impl = V8TestObject::toNative(info.Holder());
5371 v8SetReturnValue(info, static_cast<double>(impl->longLongMethod())); 5381 long long result = impl->longLongMethod();
Daniel Bratell 2014/07/11 12:29:39 Here it will possibly do two type conversions. Fir
5382 v8SetReturnValue(info, static_cast<double>(result));
5372 } 5383 }
5373 5384
5374 static void longLongMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Valu e>& info) 5385 static void longLongMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Valu e>& info)
5375 { 5386 {
5376 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5387 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5377 TestObjectV8Internal::longLongMethodMethod(info); 5388 TestObjectV8Internal::longLongMethodMethod(info);
5378 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5389 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5379 } 5390 }
5380 5391
5381 static void octetMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 5392 static void octetMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
5382 { 5393 {
5383 TestObject* impl = V8TestObject::toNative(info.Holder()); 5394 TestObject* impl = V8TestObject::toNative(info.Holder());
5384 v8SetReturnValueUnsigned(info, impl->octetMethod()); 5395 unsigned result = impl->octetMethod();
5396 v8SetReturnValueUnsigned(info, result);
5385 } 5397 }
5386 5398
5387 static void octetMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 5399 static void octetMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
5388 { 5400 {
5389 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5401 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5390 TestObjectV8Internal::octetMethodMethod(info); 5402 TestObjectV8Internal::octetMethodMethod(info);
5391 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5403 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5392 } 5404 }
5393 5405
5394 static void shortMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 5406 static void shortMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
5395 { 5407 {
5396 TestObject* impl = V8TestObject::toNative(info.Holder()); 5408 TestObject* impl = V8TestObject::toNative(info.Holder());
5397 v8SetReturnValueInt(info, impl->shortMethod()); 5409 int result = impl->shortMethod();
5410 v8SetReturnValueInt(info, result);
5398 } 5411 }
5399 5412
5400 static void shortMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 5413 static void shortMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
5401 { 5414 {
5402 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5415 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5403 TestObjectV8Internal::shortMethodMethod(info); 5416 TestObjectV8Internal::shortMethodMethod(info);
5404 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5417 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5405 } 5418 }
5406 5419
5407 static void unsignedLongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 5420 static void unsignedLongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
5408 { 5421 {
5409 TestObject* impl = V8TestObject::toNative(info.Holder()); 5422 TestObject* impl = V8TestObject::toNative(info.Holder());
5410 v8SetReturnValueUnsigned(info, impl->unsignedLongMethod()); 5423 unsigned result = impl->unsignedLongMethod();
5424 v8SetReturnValueUnsigned(info, result);
5411 } 5425 }
5412 5426
5413 static void unsignedLongMethodMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info) 5427 static void unsignedLongMethodMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info)
5414 { 5428 {
5415 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5429 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5416 TestObjectV8Internal::unsignedLongMethodMethod(info); 5430 TestObjectV8Internal::unsignedLongMethodMethod(info);
5417 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5431 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5418 } 5432 }
5419 5433
5420 static void unsignedLongLongMethodMethod(const v8::FunctionCallbackInfo<v8::Valu e>& info) 5434 static void unsignedLongLongMethodMethod(const v8::FunctionCallbackInfo<v8::Valu e>& info)
5421 { 5435 {
5422 TestObject* impl = V8TestObject::toNative(info.Holder()); 5436 TestObject* impl = V8TestObject::toNative(info.Holder());
5423 v8SetReturnValue(info, static_cast<double>(impl->unsignedLongLongMethod())); 5437 unsigned long long result = impl->unsignedLongLongMethod();
5438 v8SetReturnValue(info, static_cast<double>(result));
5424 } 5439 }
5425 5440
5426 static void unsignedLongLongMethodMethodCallback(const v8::FunctionCallbackInfo< v8::Value>& info) 5441 static void unsignedLongLongMethodMethodCallback(const v8::FunctionCallbackInfo< v8::Value>& info)
5427 { 5442 {
5428 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5443 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5429 TestObjectV8Internal::unsignedLongLongMethodMethod(info); 5444 TestObjectV8Internal::unsignedLongLongMethodMethod(info);
5430 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5445 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5431 } 5446 }
5432 5447
5433 static void unsignedShortMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 5448 static void unsignedShortMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
5434 { 5449 {
5435 TestObject* impl = V8TestObject::toNative(info.Holder()); 5450 TestObject* impl = V8TestObject::toNative(info.Holder());
5436 v8SetReturnValueUnsigned(info, impl->unsignedShortMethod()); 5451 unsigned result = impl->unsignedShortMethod();
5452 v8SetReturnValueUnsigned(info, result);
5437 } 5453 }
5438 5454
5439 static void unsignedShortMethodMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info) 5455 static void unsignedShortMethodMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info)
5440 { 5456 {
5441 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5457 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5442 TestObjectV8Internal::unsignedShortMethodMethod(info); 5458 TestObjectV8Internal::unsignedShortMethodMethod(info);
5443 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5459 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5444 } 5460 }
5445 5461
5446 static void voidMethodDateArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 5462 static void voidMethodDateArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
5816 static void voidMethodUnsignedShortArgMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) 5832 static void voidMethodUnsignedShortArgMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info)
5817 { 5833 {
5818 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5834 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5819 TestObjectV8Internal::voidMethodUnsignedShortArgMethod(info); 5835 TestObjectV8Internal::voidMethodUnsignedShortArgMethod(info);
5820 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5836 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5821 } 5837 }
5822 5838
5823 static void testInterfaceEmptyMethodMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info) 5839 static void testInterfaceEmptyMethodMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info)
5824 { 5840 {
5825 TestObject* impl = V8TestObject::toNative(info.Holder()); 5841 TestObject* impl = V8TestObject::toNative(info.Holder());
5826 v8SetReturnValue(info, impl->testInterfaceEmptyMethod()); 5842 RefPtr<TestInterfaceEmpty> result = impl->testInterfaceEmptyMethod();
Daniel Bratell 2014/07/11 12:29:39 Is this equivalent?
5843 v8SetReturnValue(info, result.release());
5827 } 5844 }
5828 5845
5829 static void testInterfaceEmptyMethodMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info) 5846 static void testInterfaceEmptyMethodMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info)
5830 { 5847 {
5831 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5848 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5832 TestObjectV8Internal::testInterfaceEmptyMethodMethod(info); 5849 TestObjectV8Internal::testInterfaceEmptyMethodMethod(info);
5833 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5850 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5834 } 5851 }
5835 5852
5836 static void voidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info) 5853 static void voidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info)
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
5878 static void voidMethodLongArgTestInterfaceEmptyArgMethodCallback(const v8::Funct ionCallbackInfo<v8::Value>& info) 5895 static void voidMethodLongArgTestInterfaceEmptyArgMethodCallback(const v8::Funct ionCallbackInfo<v8::Value>& info)
5879 { 5896 {
5880 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5897 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5881 TestObjectV8Internal::voidMethodLongArgTestInterfaceEmptyArgMethod(info); 5898 TestObjectV8Internal::voidMethodLongArgTestInterfaceEmptyArgMethod(info);
5882 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5899 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5883 } 5900 }
5884 5901
5885 static void voidCallbackFunctionMethodMethod(const v8::FunctionCallbackInfo<v8:: Value>& info) 5902 static void voidCallbackFunctionMethodMethod(const v8::FunctionCallbackInfo<v8:: Value>& info)
5886 { 5903 {
5887 TestObject* impl = V8TestObject::toNative(info.Holder()); 5904 TestObject* impl = V8TestObject::toNative(info.Holder());
5888 v8SetReturnValue(info, impl->voidCallbackFunctionMethod().v8Value()); 5905 ScriptValue result = impl->voidCallbackFunctionMethod();
5906 v8SetReturnValue(info, result.v8Value());
5889 } 5907 }
5890 5908
5891 static void voidCallbackFunctionMethodMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) 5909 static void voidCallbackFunctionMethodMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info)
5892 { 5910 {
5893 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5911 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5894 TestObjectV8Internal::voidCallbackFunctionMethodMethod(info); 5912 TestObjectV8Internal::voidCallbackFunctionMethodMethod(info);
5895 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5913 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5896 } 5914 }
5897 5915
5898 static void anyCallbackFunctionOptionalAnyArgMethodMethod(const v8::FunctionCall backInfo<v8::Value>& info) 5916 static void anyCallbackFunctionOptionalAnyArgMethodMethod(const v8::FunctionCall backInfo<v8::Value>& info)
5899 { 5917 {
5900 TestObject* impl = V8TestObject::toNative(info.Holder()); 5918 TestObject* impl = V8TestObject::toNative(info.Holder());
5901 v8SetReturnValue(info, impl->anyCallbackFunctionOptionalAnyArgMethod().v8Val ue()); 5919 ScriptValue result = impl->anyCallbackFunctionOptionalAnyArgMethod();
5920 v8SetReturnValue(info, result.v8Value());
5902 } 5921 }
5903 5922
5904 static void anyCallbackFunctionOptionalAnyArgMethodMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info) 5923 static void anyCallbackFunctionOptionalAnyArgMethodMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info)
5905 { 5924 {
5906 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5925 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5907 TestObjectV8Internal::anyCallbackFunctionOptionalAnyArgMethodMethod(info); 5926 TestObjectV8Internal::anyCallbackFunctionOptionalAnyArgMethodMethod(info);
5908 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5927 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5909 } 5928 }
5910 5929
5911 static void voidMethodVoidCallbackFunctionArgMethod(const v8::FunctionCallbackIn fo<v8::Value>& info) 5930 static void voidMethodVoidCallbackFunctionArgMethod(const v8::FunctionCallbackIn fo<v8::Value>& info)
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
5950 static void voidMethodAnyCallbackFunctionOptionalAnyArgMethodCallback(const v8:: FunctionCallbackInfo<v8::Value>& info) 5969 static void voidMethodAnyCallbackFunctionOptionalAnyArgMethodCallback(const v8:: FunctionCallbackInfo<v8::Value>& info)
5951 { 5970 {
5952 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5971 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5953 TestObjectV8Internal::voidMethodAnyCallbackFunctionOptionalAnyArgMethod(info ); 5972 TestObjectV8Internal::voidMethodAnyCallbackFunctionOptionalAnyArgMethod(info );
5954 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5973 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5955 } 5974 }
5956 5975
5957 static void compareHowMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo) 5976 static void compareHowMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo)
5958 { 5977 {
5959 TestObject* impl = V8TestObject::toNative(info.Holder()); 5978 TestObject* impl = V8TestObject::toNative(info.Holder());
5960 v8SetReturnValue(info, impl->compareHowMethod()); 5979 Range::CompareHow result = impl->compareHowMethod();
5980 v8SetReturnValue(info, result.release());
5961 } 5981 }
5962 5982
5963 static void compareHowMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info) 5983 static void compareHowMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info)
5964 { 5984 {
5965 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5985 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5966 TestObjectV8Internal::compareHowMethodMethod(info); 5986 TestObjectV8Internal::compareHowMethodMethod(info);
5967 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5987 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5968 } 5988 }
5969 5989
5970 static void anyMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 5990 static void anyMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
5971 { 5991 {
5972 TestObject* impl = V8TestObject::toNative(info.Holder()); 5992 TestObject* impl = V8TestObject::toNative(info.Holder());
5973 v8SetReturnValue(info, impl->anyMethod().v8Value()); 5993 ScriptValue result = impl->anyMethod();
5994 v8SetReturnValue(info, result.v8Value());
5974 } 5995 }
5975 5996
5976 static void anyMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 5997 static void anyMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
5977 { 5998 {
5978 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5999 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5979 TestObjectV8Internal::anyMethodMethod(info); 6000 TestObjectV8Internal::anyMethodMethod(info);
5980 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6001 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5981 } 6002 }
5982 6003
5983 static void voidMethodCompareHowArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) 6004 static void voidMethodCompareHowArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info)
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
6183 static void voidMethodNodeArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 6204 static void voidMethodNodeArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
6184 { 6205 {
6185 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6206 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6186 TestObjectV8Internal::voidMethodNodeArgMethod(info); 6207 TestObjectV8Internal::voidMethodNodeArgMethod(info);
6187 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6208 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6188 } 6209 }
6189 6210
6190 static void arrayBufferMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 6211 static void arrayBufferMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
6191 { 6212 {
6192 TestObject* impl = V8TestObject::toNative(info.Holder()); 6213 TestObject* impl = V8TestObject::toNative(info.Holder());
6193 v8SetReturnValue(info, impl->arrayBufferMethod()); 6214 RefPtr<ArrayBuffer> result = impl->arrayBufferMethod();
6215 v8SetReturnValue(info, result.release());
6194 } 6216 }
6195 6217
6196 static void arrayBufferMethodMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 6218 static void arrayBufferMethodMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
6197 { 6219 {
6198 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6220 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6199 TestObjectV8Internal::arrayBufferMethodMethod(info); 6221 TestObjectV8Internal::arrayBufferMethodMethod(info);
6200 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6222 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6201 } 6223 }
6202 6224
6203 static void arrayBufferViewMethodMethod(const v8::FunctionCallbackInfo<v8::Value >& info) 6225 static void arrayBufferViewMethodMethod(const v8::FunctionCallbackInfo<v8::Value >& info)
6204 { 6226 {
6205 TestObject* impl = V8TestObject::toNative(info.Holder()); 6227 TestObject* impl = V8TestObject::toNative(info.Holder());
6206 v8SetReturnValue(info, impl->arrayBufferViewMethod()); 6228 RefPtr<ArrayBufferView> result = impl->arrayBufferViewMethod();
6229 v8SetReturnValue(info, result.release());
6207 } 6230 }
6208 6231
6209 static void arrayBufferViewMethodMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) 6232 static void arrayBufferViewMethodMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
6210 { 6233 {
6211 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6234 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6212 TestObjectV8Internal::arrayBufferViewMethodMethod(info); 6235 TestObjectV8Internal::arrayBufferViewMethodMethod(info);
6213 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6236 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6214 } 6237 }
6215 6238
6216 static void float32ArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 6239 static void float32ArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
6217 { 6240 {
6218 TestObject* impl = V8TestObject::toNative(info.Holder()); 6241 TestObject* impl = V8TestObject::toNative(info.Holder());
6219 v8SetReturnValue(info, impl->float32ArrayMethod()); 6242 RefPtr<Float32Array> result = impl->float32ArrayMethod();
6243 v8SetReturnValue(info, result.release());
6220 } 6244 }
6221 6245
6222 static void float32ArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info) 6246 static void float32ArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info)
6223 { 6247 {
6224 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6248 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6225 TestObjectV8Internal::float32ArrayMethodMethod(info); 6249 TestObjectV8Internal::float32ArrayMethodMethod(info);
6226 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6250 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6227 } 6251 }
6228 6252
6229 static void int32ArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo) 6253 static void int32ArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo)
6230 { 6254 {
6231 TestObject* impl = V8TestObject::toNative(info.Holder()); 6255 TestObject* impl = V8TestObject::toNative(info.Holder());
6232 v8SetReturnValue(info, impl->int32ArrayMethod()); 6256 RefPtr<Int32Array> result = impl->int32ArrayMethod();
6257 v8SetReturnValue(info, result.release());
6233 } 6258 }
6234 6259
6235 static void int32ArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info) 6260 static void int32ArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info)
6236 { 6261 {
6237 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6262 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6238 TestObjectV8Internal::int32ArrayMethodMethod(info); 6263 TestObjectV8Internal::int32ArrayMethodMethod(info);
6239 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6264 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6240 } 6265 }
6241 6266
6242 static void uint8ArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo) 6267 static void uint8ArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo)
6243 { 6268 {
6244 TestObject* impl = V8TestObject::toNative(info.Holder()); 6269 TestObject* impl = V8TestObject::toNative(info.Holder());
6245 v8SetReturnValue(info, impl->uint8ArrayMethod()); 6270 RefPtr<Uint8Array> result = impl->uint8ArrayMethod();
6271 v8SetReturnValue(info, result.release());
6246 } 6272 }
6247 6273
6248 static void uint8ArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info) 6274 static void uint8ArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info)
6249 { 6275 {
6250 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6276 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6251 TestObjectV8Internal::uint8ArrayMethodMethod(info); 6277 TestObjectV8Internal::uint8ArrayMethodMethod(info);
6252 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6278 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6253 } 6279 }
6254 6280
6255 static void voidMethodArrayBufferArgMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info) 6281 static void voidMethodArrayBufferArgMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info)
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
6386 static void voidMethodUint8ArrayArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 6412 static void voidMethodUint8ArrayArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
6387 { 6413 {
6388 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6414 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6389 TestObjectV8Internal::voidMethodUint8ArrayArgMethod(info); 6415 TestObjectV8Internal::voidMethodUint8ArrayArgMethod(info);
6390 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6416 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6391 } 6417 }
6392 6418
6393 static void longArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& inf o) 6419 static void longArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& inf o)
6394 { 6420 {
6395 TestObject* impl = V8TestObject::toNative(info.Holder()); 6421 TestObject* impl = V8TestObject::toNative(info.Holder());
6396 v8SetReturnValue(info, v8Array(impl->longArrayMethod(), info.Holder(), info. GetIsolate())); 6422 Vector<int> result = impl->longArrayMethod();
Daniel Bratell 2014/07/11 12:29:39 Looks like this might introduce a vector copy whic
6423 v8SetReturnValue(info, v8Array(result, info.Holder(), info.GetIsolate()));
6397 } 6424 }
6398 6425
6399 static void longArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Val ue>& info) 6426 static void longArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Val ue>& info)
6400 { 6427 {
6401 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6428 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6402 TestObjectV8Internal::longArrayMethodMethod(info); 6429 TestObjectV8Internal::longArrayMethodMethod(info);
6403 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6430 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6404 } 6431 }
6405 6432
6406 static void stringArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 6433 static void stringArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
6407 { 6434 {
6408 TestObject* impl = V8TestObject::toNative(info.Holder()); 6435 TestObject* impl = V8TestObject::toNative(info.Holder());
6409 v8SetReturnValue(info, v8Array(impl->stringArrayMethod(), info.Holder(), inf o.GetIsolate())); 6436 Vector<String> result = impl->stringArrayMethod();
6437 v8SetReturnValue(info, v8Array(result, info.Holder(), info.GetIsolate()));
6410 } 6438 }
6411 6439
6412 static void stringArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 6440 static void stringArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
6413 { 6441 {
6414 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6442 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6415 TestObjectV8Internal::stringArrayMethodMethod(info); 6443 TestObjectV8Internal::stringArrayMethodMethod(info);
6416 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6444 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6417 } 6445 }
6418 6446
6419 static void testInterfaceEmptyArrayMethodMethod(const v8::FunctionCallbackInfo<v 8::Value>& info) 6447 static void testInterfaceEmptyArrayMethodMethod(const v8::FunctionCallbackInfo<v 8::Value>& info)
6420 { 6448 {
6421 TestObject* impl = V8TestObject::toNative(info.Holder()); 6449 TestObject* impl = V8TestObject::toNative(info.Holder());
6422 v8SetReturnValue(info, v8Array(impl->testInterfaceEmptyArrayMethod(), info.H older(), info.GetIsolate())); 6450 Vector<RefPtr<TestInterfaceEmpty> > result = impl->testInterfaceEmptyArrayMe thod();
6451 v8SetReturnValue(info, v8Array(result, info.Holder(), info.GetIsolate()));
6423 } 6452 }
6424 6453
6425 static void testInterfaceEmptyArrayMethodMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info) 6454 static void testInterfaceEmptyArrayMethodMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info)
6426 { 6455 {
6427 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6456 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6428 TestObjectV8Internal::testInterfaceEmptyArrayMethodMethod(info); 6457 TestObjectV8Internal::testInterfaceEmptyArrayMethodMethod(info);
6429 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6458 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6430 } 6459 }
6431 6460
6432 static void voidMethodArrayLongArgMethod(const v8::FunctionCallbackInfo<v8::Valu e>& info) 6461 static void voidMethodArrayLongArgMethod(const v8::FunctionCallbackInfo<v8::Valu e>& info)
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
6494 static void voidMethodArrayTestInterfaceEmptyArgMethodCallback(const v8::Functio nCallbackInfo<v8::Value>& info) 6523 static void voidMethodArrayTestInterfaceEmptyArgMethodCallback(const v8::Functio nCallbackInfo<v8::Value>& info)
6495 { 6524 {
6496 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6525 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6497 TestObjectV8Internal::voidMethodArrayTestInterfaceEmptyArgMethod(info); 6526 TestObjectV8Internal::voidMethodArrayTestInterfaceEmptyArgMethod(info);
6498 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6527 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6499 } 6528 }
6500 6529
6501 static void longSequenceMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 6530 static void longSequenceMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
6502 { 6531 {
6503 TestObject* impl = V8TestObject::toNative(info.Holder()); 6532 TestObject* impl = V8TestObject::toNative(info.Holder());
6504 v8SetReturnValue(info, v8Array(impl->longSequenceMethod(), info.Holder(), in fo.GetIsolate())); 6533 Vector<int> result = impl->longSequenceMethod();
6534 v8SetReturnValue(info, v8Array(result, info.Holder(), info.GetIsolate()));
6505 } 6535 }
6506 6536
6507 static void longSequenceMethodMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info) 6537 static void longSequenceMethodMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info)
6508 { 6538 {
6509 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6539 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6510 TestObjectV8Internal::longSequenceMethodMethod(info); 6540 TestObjectV8Internal::longSequenceMethodMethod(info);
6511 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6541 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6512 } 6542 }
6513 6543
6514 static void stringSequenceMethodMethod(const v8::FunctionCallbackInfo<v8::Value> & info) 6544 static void stringSequenceMethodMethod(const v8::FunctionCallbackInfo<v8::Value> & info)
6515 { 6545 {
6516 TestObject* impl = V8TestObject::toNative(info.Holder()); 6546 TestObject* impl = V8TestObject::toNative(info.Holder());
6517 v8SetReturnValue(info, v8Array(impl->stringSequenceMethod(), info.Holder(), info.GetIsolate())); 6547 Vector<String> result = impl->stringSequenceMethod();
6548 v8SetReturnValue(info, v8Array(result, info.Holder(), info.GetIsolate()));
6518 } 6549 }
6519 6550
6520 static void stringSequenceMethodMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info) 6551 static void stringSequenceMethodMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info)
6521 { 6552 {
6522 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6553 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6523 TestObjectV8Internal::stringSequenceMethodMethod(info); 6554 TestObjectV8Internal::stringSequenceMethodMethod(info);
6524 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6555 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6525 } 6556 }
6526 6557
6527 static void testInterfaceEmptySequenceMethodMethod(const v8::FunctionCallbackInf o<v8::Value>& info) 6558 static void testInterfaceEmptySequenceMethodMethod(const v8::FunctionCallbackInf o<v8::Value>& info)
6528 { 6559 {
6529 TestObject* impl = V8TestObject::toNative(info.Holder()); 6560 TestObject* impl = V8TestObject::toNative(info.Holder());
6530 v8SetReturnValue(info, v8Array(impl->testInterfaceEmptySequenceMethod(), inf o.Holder(), info.GetIsolate())); 6561 Vector<RefPtr<TestInterfaceEmpty> > result = impl->testInterfaceEmptySequenc eMethod();
6562 v8SetReturnValue(info, v8Array(result, info.Holder(), info.GetIsolate()));
6531 } 6563 }
6532 6564
6533 static void testInterfaceEmptySequenceMethodMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info) 6565 static void testInterfaceEmptySequenceMethodMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info)
6534 { 6566 {
6535 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6567 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6536 TestObjectV8Internal::testInterfaceEmptySequenceMethodMethod(info); 6568 TestObjectV8Internal::testInterfaceEmptySequenceMethodMethod(info);
6537 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6569 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6538 } 6570 }
6539 6571
6540 static void voidMethodSequenceLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 6572 static void voidMethodSequenceLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
6619 static void nullableLongMethodMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info) 6651 static void nullableLongMethodMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info)
6620 { 6652 {
6621 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6653 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6622 TestObjectV8Internal::nullableLongMethodMethod(info); 6654 TestObjectV8Internal::nullableLongMethodMethod(info);
6623 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6655 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6624 } 6656 }
6625 6657
6626 static void nullableStringMethodMethod(const v8::FunctionCallbackInfo<v8::Value> & info) 6658 static void nullableStringMethodMethod(const v8::FunctionCallbackInfo<v8::Value> & info)
6627 { 6659 {
6628 TestObject* impl = V8TestObject::toNative(info.Holder()); 6660 TestObject* impl = V8TestObject::toNative(info.Holder());
6629 v8SetReturnValueStringOrNull(info, impl->nullableStringMethod(), info.GetIso late()); 6661 String result = impl->nullableStringMethod();
6662 v8SetReturnValueStringOrNull(info, result, info.GetIsolate());
6630 } 6663 }
6631 6664
6632 static void nullableStringMethodMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info) 6665 static void nullableStringMethodMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info)
6633 { 6666 {
6634 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6667 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6635 TestObjectV8Internal::nullableStringMethodMethod(info); 6668 TestObjectV8Internal::nullableStringMethodMethod(info);
6636 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6669 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6637 } 6670 }
6638 6671
6639 static void nullableTestInterfaceMethodMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) 6672 static void nullableTestInterfaceMethodMethod(const v8::FunctionCallbackInfo<v8: :Value>& info)
6640 { 6673 {
6641 TestObject* impl = V8TestObject::toNative(info.Holder()); 6674 TestObject* impl = V8TestObject::toNative(info.Holder());
6642 v8SetReturnValue(info, impl->nullableTestInterfaceMethod()); 6675 RefPtr<TestInterfaceImplementation> result = impl->nullableTestInterfaceMeth od();
6676 v8SetReturnValue(info, result.release());
6643 } 6677 }
6644 6678
6645 static void nullableTestInterfaceMethodMethodCallback(const v8::FunctionCallback Info<v8::Value>& info) 6679 static void nullableTestInterfaceMethodMethodCallback(const v8::FunctionCallback Info<v8::Value>& info)
6646 { 6680 {
6647 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6681 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6648 TestObjectV8Internal::nullableTestInterfaceMethodMethod(info); 6682 TestObjectV8Internal::nullableTestInterfaceMethodMethod(info);
6649 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6683 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6650 } 6684 }
6651 6685
6652 static void nullableLongSequenceMethodMethod(const v8::FunctionCallbackInfo<v8:: Value>& info) 6686 static void nullableLongSequenceMethodMethod(const v8::FunctionCallbackInfo<v8:: Value>& info)
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
6758 static void voidMethodTestCallbackInterfaceOrNullArgMethodCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info) 6792 static void voidMethodTestCallbackInterfaceOrNullArgMethodCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info)
6759 { 6793 {
6760 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6794 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6761 TestObjectV8Internal::voidMethodTestCallbackInterfaceOrNullArgMethod(info); 6795 TestObjectV8Internal::voidMethodTestCallbackInterfaceOrNullArgMethod(info);
6762 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6796 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6763 } 6797 }
6764 6798
6765 static void testEnumMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info ) 6799 static void testEnumMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info )
6766 { 6800 {
6767 TestObject* impl = V8TestObject::toNative(info.Holder()); 6801 TestObject* impl = V8TestObject::toNative(info.Holder());
6768 v8SetReturnValueString(info, impl->testEnumMethod(), info.GetIsolate()); 6802 String result = impl->testEnumMethod();
6803 v8SetReturnValueString(info, result, info.GetIsolate());
6769 } 6804 }
6770 6805
6771 static void testEnumMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Valu e>& info) 6806 static void testEnumMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Valu e>& info)
6772 { 6807 {
6773 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6808 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6774 TestObjectV8Internal::testEnumMethodMethod(info); 6809 TestObjectV8Internal::testEnumMethodMethod(info);
6775 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6810 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6776 } 6811 }
6777 6812
6778 static void voidMethodTestEnumArgMethod(const v8::FunctionCallbackInfo<v8::Value >& info) 6813 static void voidMethodTestEnumArgMethod(const v8::FunctionCallbackInfo<v8::Value >& info)
(...skipping 20 matching lines...) Expand all
6799 static void voidMethodTestEnumArgMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) 6834 static void voidMethodTestEnumArgMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
6800 { 6835 {
6801 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6836 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6802 TestObjectV8Internal::voidMethodTestEnumArgMethod(info); 6837 TestObjectV8Internal::voidMethodTestEnumArgMethod(info);
6803 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6838 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6804 } 6839 }
6805 6840
6806 static void dictionaryMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo) 6841 static void dictionaryMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo)
6807 { 6842 {
6808 TestObject* impl = V8TestObject::toNative(info.Holder()); 6843 TestObject* impl = V8TestObject::toNative(info.Holder());
6809 v8SetReturnValue(info, impl->dictionaryMethod()); 6844 Dictionary result = impl->dictionaryMethod();
6845 v8SetReturnValue(info, result.release());
6810 } 6846 }
6811 6847
6812 static void dictionaryMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info) 6848 static void dictionaryMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info)
6813 { 6849 {
6814 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6850 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6815 TestObjectV8Internal::dictionaryMethodMethod(info); 6851 TestObjectV8Internal::dictionaryMethodMethod(info);
6816 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6852 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6817 } 6853 }
6818 6854
6819 static void nodeFilterMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo) 6855 static void nodeFilterMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo)
6820 { 6856 {
6821 TestObject* impl = V8TestObject::toNative(info.Holder()); 6857 TestObject* impl = V8TestObject::toNative(info.Holder());
6822 v8SetReturnValue(info, impl->nodeFilterMethod()); 6858 RefPtrWillBeRawPtr<NodeFilter> result = impl->nodeFilterMethod();
6859 v8SetReturnValue(info, result.release());
6823 } 6860 }
6824 6861
6825 static void nodeFilterMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info) 6862 static void nodeFilterMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info)
6826 { 6863 {
6827 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6864 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6828 TestObjectV8Internal::nodeFilterMethodMethod(info); 6865 TestObjectV8Internal::nodeFilterMethodMethod(info);
6829 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6866 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6830 } 6867 }
6831 6868
6832 static void promiseMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 6869 static void promiseMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
6833 { 6870 {
6834 TestObject* impl = V8TestObject::toNative(info.Holder()); 6871 TestObject* impl = V8TestObject::toNative(info.Holder());
6835 v8SetReturnValue(info, impl->promiseMethod().v8Value()); 6872 ScriptPromise result = impl->promiseMethod();
6873 v8SetReturnValue(info, result.v8Value());
6836 } 6874 }
6837 6875
6838 static void promiseMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value >& info) 6876 static void promiseMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value >& info)
6839 { 6877 {
6840 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6878 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6841 TestObjectV8Internal::promiseMethodMethod(info); 6879 TestObjectV8Internal::promiseMethodMethod(info);
6842 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6880 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6843 } 6881 }
6844 6882
6845 static void serializedScriptValueMethodMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) 6883 static void serializedScriptValueMethodMethod(const v8::FunctionCallbackInfo<v8: :Value>& info)
6846 { 6884 {
6847 TestObject* impl = V8TestObject::toNative(info.Holder()); 6885 TestObject* impl = V8TestObject::toNative(info.Holder());
6848 v8SetReturnValue(info, impl->serializedScriptValueMethod() ? impl->serialize dScriptValueMethod()->deserialize() : v8::Handle<v8::Value>(v8::Null(info.GetIso late()))); 6886 RefPtr<SerializedScriptValue> result = impl->serializedScriptValueMethod();
6887 v8SetReturnValue(info, result ? result->deserialize() : v8::Handle<v8::Value >(v8::Null(info.GetIsolate())));
6849 } 6888 }
6850 6889
6851 static void serializedScriptValueMethodMethodCallback(const v8::FunctionCallback Info<v8::Value>& info) 6890 static void serializedScriptValueMethodMethodCallback(const v8::FunctionCallback Info<v8::Value>& info)
6852 { 6891 {
6853 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6892 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6854 TestObjectV8Internal::serializedScriptValueMethodMethod(info); 6893 TestObjectV8Internal::serializedScriptValueMethodMethod(info);
6855 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6894 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6856 } 6895 }
6857 6896
6858 static void xPathNSResolverMethodMethod(const v8::FunctionCallbackInfo<v8::Value >& info) 6897 static void xPathNSResolverMethodMethod(const v8::FunctionCallbackInfo<v8::Value >& info)
6859 { 6898 {
6860 TestObject* impl = V8TestObject::toNative(info.Holder()); 6899 TestObject* impl = V8TestObject::toNative(info.Holder());
6861 v8SetReturnValue(info, impl->xPathNSResolverMethod()); 6900 RefPtrWillBeRawPtr<XPathNSResolver> result = impl->xPathNSResolverMethod();
6901 v8SetReturnValue(info, result.release());
6862 } 6902 }
6863 6903
6864 static void xPathNSResolverMethodMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) 6904 static void xPathNSResolverMethodMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
6865 { 6905 {
6866 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6906 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6867 TestObjectV8Internal::xPathNSResolverMethodMethod(info); 6907 TestObjectV8Internal::xPathNSResolverMethodMethod(info);
6868 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6908 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6869 } 6909 }
6870 6910
6871 static void voidMethodDictionaryArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) 6911 static void voidMethodDictionaryArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info)
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
7113 7153
7114 static void stringMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) 7154 static void stringMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info)
7115 { 7155 {
7116 ExceptionState exceptionState(ExceptionState::ExecutionContext, "stringMetho dOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); 7156 ExceptionState exceptionState(ExceptionState::ExecutionContext, "stringMetho dOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate());
7117 TestObject* impl = V8TestObject::toNative(info.Holder()); 7157 TestObject* impl = V8TestObject::toNative(info.Holder());
7118 int optionalLongArg; 7158 int optionalLongArg;
7119 { 7159 {
7120 v8::TryCatch block; 7160 v8::TryCatch block;
7121 V8RethrowTryCatchScope rethrow(block); 7161 V8RethrowTryCatchScope rethrow(block);
7122 if (UNLIKELY(info.Length() <= 0)) { 7162 if (UNLIKELY(info.Length() <= 0)) {
7123 v8SetReturnValueString(info, impl->stringMethodOptionalLongArg(), in fo.GetIsolate()); 7163 String result = impl->stringMethodOptionalLongArg();
7164 v8SetReturnValueString(info, result, info.GetIsolate());
7124 return; 7165 return;
7125 } 7166 }
7126 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0], exceptionState), exceptionState); 7167 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0], exceptionState), exceptionState);
7127 } 7168 }
7128 v8SetReturnValueString(info, impl->stringMethodOptionalLongArg(optionalLongA rg), info.GetIsolate()); 7169 String result = impl->stringMethodOptionalLongArg(optionalLongArg);
7170 v8SetReturnValueString(info, result, info.GetIsolate());
7129 } 7171 }
7130 7172
7131 static void stringMethodOptionalLongArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info) 7173 static void stringMethodOptionalLongArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info)
7132 { 7174 {
7133 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 7175 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
7134 TestObjectV8Internal::stringMethodOptionalLongArgMethod(info); 7176 TestObjectV8Internal::stringMethodOptionalLongArgMethod(info);
7135 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 7177 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
7136 } 7178 }
7137 7179
7138 static void testInterfaceEmptyMethodOptionalLongArgMethod(const v8::FunctionCall backInfo<v8::Value>& info) 7180 static void testInterfaceEmptyMethodOptionalLongArgMethod(const v8::FunctionCall backInfo<v8::Value>& info)
7139 { 7181 {
7140 ExceptionState exceptionState(ExceptionState::ExecutionContext, "testInterfa ceEmptyMethodOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); 7182 ExceptionState exceptionState(ExceptionState::ExecutionContext, "testInterfa ceEmptyMethodOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate());
7141 TestObject* impl = V8TestObject::toNative(info.Holder()); 7183 TestObject* impl = V8TestObject::toNative(info.Holder());
7142 int optionalLongArg; 7184 int optionalLongArg;
7143 { 7185 {
7144 v8::TryCatch block; 7186 v8::TryCatch block;
7145 V8RethrowTryCatchScope rethrow(block); 7187 V8RethrowTryCatchScope rethrow(block);
7146 if (UNLIKELY(info.Length() <= 0)) { 7188 if (UNLIKELY(info.Length() <= 0)) {
7147 v8SetReturnValue(info, impl->testInterfaceEmptyMethodOptionalLongArg ()); 7189 RefPtr<TestInterfaceEmpty> result = impl->testInterfaceEmptyMethodOp tionalLongArg();
7190 v8SetReturnValue(info, result.release());
7148 return; 7191 return;
7149 } 7192 }
7150 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0], exceptionState), exceptionState); 7193 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0], exceptionState), exceptionState);
7151 } 7194 }
7152 v8SetReturnValue(info, impl->testInterfaceEmptyMethodOptionalLongArg(optiona lLongArg)); 7195 RefPtr<TestInterfaceEmpty> result = impl->testInterfaceEmptyMethodOptionalLo ngArg(optionalLongArg);
7196 v8SetReturnValue(info, result.release());
7153 } 7197 }
7154 7198
7155 static void testInterfaceEmptyMethodOptionalLongArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info) 7199 static void testInterfaceEmptyMethodOptionalLongArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info)
7156 { 7200 {
7157 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 7201 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
7158 TestObjectV8Internal::testInterfaceEmptyMethodOptionalLongArgMethod(info); 7202 TestObjectV8Internal::testInterfaceEmptyMethodOptionalLongArgMethod(info);
7159 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 7203 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
7160 } 7204 }
7161 7205
7162 static void longMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 7206 static void longMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
7163 { 7207 {
7164 ExceptionState exceptionState(ExceptionState::ExecutionContext, "longMethodO ptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); 7208 ExceptionState exceptionState(ExceptionState::ExecutionContext, "longMethodO ptionalLongArg", "TestObject", info.Holder(), info.GetIsolate());
7165 TestObject* impl = V8TestObject::toNative(info.Holder()); 7209 TestObject* impl = V8TestObject::toNative(info.Holder());
7166 int optionalLongArg; 7210 int optionalLongArg;
7167 { 7211 {
7168 v8::TryCatch block; 7212 v8::TryCatch block;
7169 V8RethrowTryCatchScope rethrow(block); 7213 V8RethrowTryCatchScope rethrow(block);
7170 if (UNLIKELY(info.Length() <= 0)) { 7214 if (UNLIKELY(info.Length() <= 0)) {
7171 v8SetReturnValueInt(info, impl->longMethodOptionalLongArg()); 7215 int result = impl->longMethodOptionalLongArg();
7216 v8SetReturnValueInt(info, result);
7172 return; 7217 return;
7173 } 7218 }
7174 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0], exceptionState), exceptionState); 7219 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0], exceptionState), exceptionState);
7175 } 7220 }
7176 v8SetReturnValueInt(info, impl->longMethodOptionalLongArg(optionalLongArg)); 7221 int result = impl->longMethodOptionalLongArg(optionalLongArg);
7222 v8SetReturnValueInt(info, result);
7177 } 7223 }
7178 7224
7179 static void longMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 7225 static void longMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
7180 { 7226 {
7181 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 7227 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
7182 TestObjectV8Internal::longMethodOptionalLongArgMethod(info); 7228 TestObjectV8Internal::longMethodOptionalLongArgMethod(info);
7183 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 7229 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
7184 } 7230 }
7185 7231
7186 static void voidMethodLongArgOptionalLongArgMethod(const v8::FunctionCallbackInf o<v8::Value>& info) 7232 static void voidMethodLongArgOptionalLongArgMethod(const v8::FunctionCallbackInf o<v8::Value>& info)
(...skipping 2620 matching lines...) Expand 10 before | Expand all | Expand 10 after
9807 static void partiallyRuntimeEnabledOverloadedVoidMethodMethodCallback(const v8:: FunctionCallbackInfo<v8::Value>& info) 9853 static void partiallyRuntimeEnabledOverloadedVoidMethodMethodCallback(const v8:: FunctionCallbackInfo<v8::Value>& info)
9808 { 9854 {
9809 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 9855 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
9810 TestObjectV8Internal::partiallyRuntimeEnabledOverloadedVoidMethodMethod(info ); 9856 TestObjectV8Internal::partiallyRuntimeEnabledOverloadedVoidMethodMethod(info );
9811 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 9857 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
9812 } 9858 }
9813 9859
9814 static void treatReturnedNullStringAsNullStringMethodMethod(const v8::FunctionCa llbackInfo<v8::Value>& info) 9860 static void treatReturnedNullStringAsNullStringMethodMethod(const v8::FunctionCa llbackInfo<v8::Value>& info)
9815 { 9861 {
9816 TestObject* impl = V8TestObject::toNative(info.Holder()); 9862 TestObject* impl = V8TestObject::toNative(info.Holder());
9817 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullString Method(), info.GetIsolate()); 9863 String result = impl->treatReturnedNullStringAsNullStringMethod();
9864 v8SetReturnValueStringOrNull(info, result, info.GetIsolate());
9818 } 9865 }
9819 9866
9820 static void treatReturnedNullStringAsNullStringMethodMethodCallback(const v8::Fu nctionCallbackInfo<v8::Value>& info) 9867 static void treatReturnedNullStringAsNullStringMethodMethodCallback(const v8::Fu nctionCallbackInfo<v8::Value>& info)
9821 { 9868 {
9822 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 9869 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
9823 TestObjectV8Internal::treatReturnedNullStringAsNullStringMethodMethod(info); 9870 TestObjectV8Internal::treatReturnedNullStringAsNullStringMethodMethod(info);
9824 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 9871 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
9825 } 9872 }
9826 9873
9827 static void treatReturnedNullStringAsUndefinedStringMethodMethod(const v8::Funct ionCallbackInfo<v8::Value>& info) 9874 static void treatReturnedNullStringAsUndefinedStringMethodMethod(const v8::Funct ionCallbackInfo<v8::Value>& info)
9828 { 9875 {
9829 TestObject* impl = V8TestObject::toNative(info.Holder()); 9876 TestObject* impl = V8TestObject::toNative(info.Holder());
9830 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef inedStringMethod(), info.GetIsolate()); 9877 String result = impl->treatReturnedNullStringAsUndefinedStringMethod();
9878 v8SetReturnValueStringOrUndefined(info, result, info.GetIsolate());
9831 } 9879 }
9832 9880
9833 static void treatReturnedNullStringAsUndefinedStringMethodMethodCallback(const v 8::FunctionCallbackInfo<v8::Value>& info) 9881 static void treatReturnedNullStringAsUndefinedStringMethodMethodCallback(const v 8::FunctionCallbackInfo<v8::Value>& info)
9834 { 9882 {
9835 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 9883 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
9836 TestObjectV8Internal::treatReturnedNullStringAsUndefinedStringMethodMethod(i nfo); 9884 TestObjectV8Internal::treatReturnedNullStringAsUndefinedStringMethodMethod(i nfo);
9837 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 9885 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
9838 } 9886 }
9839 9887
9840 static void treatReturnedNullStringAsNullByteStringMethodMethod(const v8::Functi onCallbackInfo<v8::Value>& info) 9888 static void treatReturnedNullStringAsNullByteStringMethodMethod(const v8::Functi onCallbackInfo<v8::Value>& info)
9841 { 9889 {
9842 TestObject* impl = V8TestObject::toNative(info.Holder()); 9890 TestObject* impl = V8TestObject::toNative(info.Holder());
9843 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullByteSt ringMethod(), info.GetIsolate()); 9891 String result = impl->treatReturnedNullStringAsNullByteStringMethod();
9892 v8SetReturnValueStringOrNull(info, result, info.GetIsolate());
9844 } 9893 }
9845 9894
9846 static void treatReturnedNullStringAsNullByteStringMethodMethodCallback(const v8 ::FunctionCallbackInfo<v8::Value>& info) 9895 static void treatReturnedNullStringAsNullByteStringMethodMethodCallback(const v8 ::FunctionCallbackInfo<v8::Value>& info)
9847 { 9896 {
9848 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 9897 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
9849 TestObjectV8Internal::treatReturnedNullStringAsNullByteStringMethodMethod(in fo); 9898 TestObjectV8Internal::treatReturnedNullStringAsNullByteStringMethodMethod(in fo);
9850 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 9899 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
9851 } 9900 }
9852 9901
9853 static void treatReturnedNullStringAsUndefinedByteStringMethodMethod(const v8::F unctionCallbackInfo<v8::Value>& info) 9902 static void treatReturnedNullStringAsUndefinedByteStringMethodMethod(const v8::F unctionCallbackInfo<v8::Value>& info)
9854 { 9903 {
9855 TestObject* impl = V8TestObject::toNative(info.Holder()); 9904 TestObject* impl = V8TestObject::toNative(info.Holder());
9856 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef inedByteStringMethod(), info.GetIsolate()); 9905 String result = impl->treatReturnedNullStringAsUndefinedByteStringMethod();
9906 v8SetReturnValueStringOrUndefined(info, result, info.GetIsolate());
9857 } 9907 }
9858 9908
9859 static void treatReturnedNullStringAsUndefinedByteStringMethodMethodCallback(con st v8::FunctionCallbackInfo<v8::Value>& info) 9909 static void treatReturnedNullStringAsUndefinedByteStringMethodMethodCallback(con st v8::FunctionCallbackInfo<v8::Value>& info)
9860 { 9910 {
9861 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 9911 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
9862 TestObjectV8Internal::treatReturnedNullStringAsUndefinedByteStringMethodMeth od(info); 9912 TestObjectV8Internal::treatReturnedNullStringAsUndefinedByteStringMethodMeth od(info);
9863 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 9913 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
9864 } 9914 }
9865 9915
9866 static void treatReturnedNullStringAsNullScalarValueStringMethodMethod(const v8: :FunctionCallbackInfo<v8::Value>& info) 9916 static void treatReturnedNullStringAsNullScalarValueStringMethodMethod(const v8: :FunctionCallbackInfo<v8::Value>& info)
9867 { 9917 {
9868 TestObject* impl = V8TestObject::toNative(info.Holder()); 9918 TestObject* impl = V8TestObject::toNative(info.Holder());
9869 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullScalar ValueStringMethod(), info.GetIsolate()); 9919 String result = impl->treatReturnedNullStringAsNullScalarValueStringMethod() ;
9920 v8SetReturnValueStringOrNull(info, result, info.GetIsolate());
9870 } 9921 }
9871 9922
9872 static void treatReturnedNullStringAsNullScalarValueStringMethodMethodCallback(c onst v8::FunctionCallbackInfo<v8::Value>& info) 9923 static void treatReturnedNullStringAsNullScalarValueStringMethodMethodCallback(c onst v8::FunctionCallbackInfo<v8::Value>& info)
9873 { 9924 {
9874 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 9925 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
9875 TestObjectV8Internal::treatReturnedNullStringAsNullScalarValueStringMethodMe thod(info); 9926 TestObjectV8Internal::treatReturnedNullStringAsNullScalarValueStringMethodMe thod(info);
9876 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 9927 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
9877 } 9928 }
9878 9929
9879 static void treatReturnedNullStringAsUndefinedScalarValueStringMethodMethod(cons t v8::FunctionCallbackInfo<v8::Value>& info) 9930 static void treatReturnedNullStringAsUndefinedScalarValueStringMethodMethod(cons t v8::FunctionCallbackInfo<v8::Value>& info)
9880 { 9931 {
9881 TestObject* impl = V8TestObject::toNative(info.Holder()); 9932 TestObject* impl = V8TestObject::toNative(info.Holder());
9882 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef inedScalarValueStringMethod(), info.GetIsolate()); 9933 String result = impl->treatReturnedNullStringAsUndefinedScalarValueStringMet hod();
9934 v8SetReturnValueStringOrUndefined(info, result, info.GetIsolate());
9883 } 9935 }
9884 9936
9885 static void treatReturnedNullStringAsUndefinedScalarValueStringMethodMethodCallb ack(const v8::FunctionCallbackInfo<v8::Value>& info) 9937 static void treatReturnedNullStringAsUndefinedScalarValueStringMethodMethodCallb ack(const v8::FunctionCallbackInfo<v8::Value>& info)
9886 { 9938 {
9887 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 9939 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
9888 TestObjectV8Internal::treatReturnedNullStringAsUndefinedScalarValueStringMet hodMethod(info); 9940 TestObjectV8Internal::treatReturnedNullStringAsUndefinedScalarValueStringMet hodMethod(info);
9889 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 9941 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
9890 } 9942 }
9891 9943
9892 static void typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMethod(const v8: :FunctionCallbackInfo<v8::Value>& info) 9944 static void typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMethod(const v8: :FunctionCallbackInfo<v8::Value>& info)
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after
10385 static void nodeMethodWithVariousArgumentsImplementedInPrivateScriptMethodCallba ck(const v8::FunctionCallbackInfo<v8::Value>& info) 10437 static void nodeMethodWithVariousArgumentsImplementedInPrivateScriptMethodCallba ck(const v8::FunctionCallbackInfo<v8::Value>& info)
10386 { 10438 {
10387 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 10439 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
10388 TestObjectV8Internal::nodeMethodWithVariousArgumentsImplementedInPrivateScri ptMethod(info); 10440 TestObjectV8Internal::nodeMethodWithVariousArgumentsImplementedInPrivateScri ptMethod(info);
10389 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 10441 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
10390 } 10442 }
10391 10443
10392 static void toStringMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 10444 static void toStringMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
10393 { 10445 {
10394 TestObject* impl = V8TestObject::toNative(info.Holder()); 10446 TestObject* impl = V8TestObject::toNative(info.Holder());
10395 v8SetReturnValueString(info, impl->stringifierAttribute(), info.GetIsolate() ); 10447 String result = impl->stringifierAttribute();
10448 v8SetReturnValueString(info, result, info.GetIsolate());
10396 } 10449 }
10397 10450
10398 static void toStringMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in fo) 10451 static void toStringMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in fo)
10399 { 10452 {
10400 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 10453 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
10401 TestObjectV8Internal::toStringMethod(info); 10454 TestObjectV8Internal::toStringMethod(info);
10402 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 10455 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
10403 } 10456 }
10404 10457
10405 } // namespace TestObjectV8Internal 10458 } // namespace TestObjectV8Internal
(...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after
10981 fromInternalPointer(object)->deref(); 11034 fromInternalPointer(object)->deref();
10982 } 11035 }
10983 11036
10984 template<> 11037 template<>
10985 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate) 11038 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate)
10986 { 11039 {
10987 return toV8(impl, creationContext, isolate); 11040 return toV8(impl, creationContext, isolate);
10988 } 11041 }
10989 11042
10990 } // namespace WebCore 11043 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestInterfaceNode.cpp ('k') | Source/bindings/tests/results/V8TestTypedefs.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698