| OLD | NEW |
| 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 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 } | 275 } |
| 276 | 276 |
| 277 static void funcMethod(const v8::FunctionCallbackInfo<v8::Value>& args) | 277 static void funcMethod(const v8::FunctionCallbackInfo<v8::Value>& args) |
| 278 { | 278 { |
| 279 TestTypedefs* imp = V8TestTypedefs::toNative(args.Holder()); | 279 TestTypedefs* imp = V8TestTypedefs::toNative(args.Holder()); |
| 280 if (args.Length() <= 0) { | 280 if (args.Length() <= 0) { |
| 281 imp->func(); | 281 imp->func(); |
| 282 | 282 |
| 283 return; | 283 return; |
| 284 } | 284 } |
| 285 V8TRYCATCH_VOID(Vector<int>, x, toNativeArray<int>(args[0])); | 285 V8TRYCATCH_VOID(Vector<int>, x, toNativeArray<int>(args[0], args.GetIsolate(
))); |
| 286 imp->func(x); | 286 imp->func(x); |
| 287 | 287 |
| 288 return; | 288 return; |
| 289 } | 289 } |
| 290 | 290 |
| 291 static void funcMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& args) | 291 static void funcMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& args) |
| 292 { | 292 { |
| 293 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 293 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 294 TestTypedefsV8Internal::funcMethod(args); | 294 TestTypedefsV8Internal::funcMethod(args); |
| 295 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 295 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 348 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 349 } | 349 } |
| 350 | 350 |
| 351 static void nullableArrayArgMethod(const v8::FunctionCallbackInfo<v8::Value>& ar
gs) | 351 static void nullableArrayArgMethod(const v8::FunctionCallbackInfo<v8::Value>& ar
gs) |
| 352 { | 352 { |
| 353 if (args.Length() < 1) { | 353 if (args.Length() < 1) { |
| 354 throwNotEnoughArgumentsError(args.GetIsolate()); | 354 throwNotEnoughArgumentsError(args.GetIsolate()); |
| 355 return; | 355 return; |
| 356 } | 356 } |
| 357 TestTypedefs* imp = V8TestTypedefs::toNative(args.Holder()); | 357 TestTypedefs* imp = V8TestTypedefs::toNative(args.Holder()); |
| 358 V8TRYCATCH_VOID(Vector<String>, arrayArg, toNativeArray<String>(args[0])); | 358 V8TRYCATCH_VOID(Vector<String>, arrayArg, toNativeArray<String>(args[0], arg
s.GetIsolate())); |
| 359 imp->nullableArrayArg(arrayArg); | 359 imp->nullableArrayArg(arrayArg); |
| 360 | 360 |
| 361 return; | 361 return; |
| 362 } | 362 } |
| 363 | 363 |
| 364 static void nullableArrayArgMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& args) | 364 static void nullableArrayArgMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& args) |
| 365 { | 365 { |
| 366 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 366 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 367 TestTypedefsV8Internal::nullableArrayArgMethod(args); | 367 TestTypedefsV8Internal::nullableArrayArgMethod(args); |
| 368 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 368 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 415 } | 415 } |
| 416 | 416 |
| 417 static void stringArrayFunctionMethod(const v8::FunctionCallbackInfo<v8::Value>&
args) | 417 static void stringArrayFunctionMethod(const v8::FunctionCallbackInfo<v8::Value>&
args) |
| 418 { | 418 { |
| 419 if (args.Length() < 1) { | 419 if (args.Length() < 1) { |
| 420 throwNotEnoughArgumentsError(args.GetIsolate()); | 420 throwNotEnoughArgumentsError(args.GetIsolate()); |
| 421 return; | 421 return; |
| 422 } | 422 } |
| 423 TestTypedefs* imp = V8TestTypedefs::toNative(args.Holder()); | 423 TestTypedefs* imp = V8TestTypedefs::toNative(args.Holder()); |
| 424 ExceptionState es(args.GetIsolate()); | 424 ExceptionState es(args.GetIsolate()); |
| 425 V8TRYCATCH_VOID(Vector<String>, values, toNativeArray<String>(args[0])); | 425 V8TRYCATCH_VOID(Vector<String>, values, toNativeArray<String>(args[0], args.
GetIsolate())); |
| 426 Vector<String> result = imp->stringArrayFunction(values, es); | 426 Vector<String> result = imp->stringArrayFunction(values, es); |
| 427 if (es.throwIfNeeded()) | 427 if (es.throwIfNeeded()) |
| 428 return; | 428 return; |
| 429 v8SetReturnValue(args, v8Array(result, args.GetIsolate())); | 429 v8SetReturnValue(args, v8Array(result, args.GetIsolate())); |
| 430 return; | 430 return; |
| 431 } | 431 } |
| 432 | 432 |
| 433 static void stringArrayFunctionMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& args) | 433 static void stringArrayFunctionMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& args) |
| 434 { | 434 { |
| 435 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 435 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 436 TestTypedefsV8Internal::stringArrayFunctionMethod(args); | 436 TestTypedefsV8Internal::stringArrayFunctionMethod(args); |
| 437 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 437 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 438 } | 438 } |
| 439 | 439 |
| 440 static void stringArrayFunction2Method(const v8::FunctionCallbackInfo<v8::Value>
& args) | 440 static void stringArrayFunction2Method(const v8::FunctionCallbackInfo<v8::Value>
& args) |
| 441 { | 441 { |
| 442 if (args.Length() < 1) { | 442 if (args.Length() < 1) { |
| 443 throwNotEnoughArgumentsError(args.GetIsolate()); | 443 throwNotEnoughArgumentsError(args.GetIsolate()); |
| 444 return; | 444 return; |
| 445 } | 445 } |
| 446 TestTypedefs* imp = V8TestTypedefs::toNative(args.Holder()); | 446 TestTypedefs* imp = V8TestTypedefs::toNative(args.Holder()); |
| 447 ExceptionState es(args.GetIsolate()); | 447 ExceptionState es(args.GetIsolate()); |
| 448 V8TRYCATCH_VOID(Vector<String>, values, toNativeArray<String>(args[0])); | 448 V8TRYCATCH_VOID(Vector<String>, values, toNativeArray<String>(args[0], args.
GetIsolate())); |
| 449 Vector<String> result = imp->stringArrayFunction2(values, es); | 449 Vector<String> result = imp->stringArrayFunction2(values, es); |
| 450 if (es.throwIfNeeded()) | 450 if (es.throwIfNeeded()) |
| 451 return; | 451 return; |
| 452 v8SetReturnValue(args, v8Array(result, args.GetIsolate())); | 452 v8SetReturnValue(args, v8Array(result, args.GetIsolate())); |
| 453 return; | 453 return; |
| 454 } | 454 } |
| 455 | 455 |
| 456 static void stringArrayFunction2MethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& args) | 456 static void stringArrayFunction2MethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& args) |
| 457 { | 457 { |
| 458 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 458 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 612 installPerContextProperties(wrapper, impl.get(), isolate); | 612 installPerContextProperties(wrapper, impl.get(), isolate); |
| 613 V8DOMWrapper::associateObjectWithWrapper<V8TestTypedefs>(impl, &info, wrappe
r, isolate, WrapperConfiguration::Independent); | 613 V8DOMWrapper::associateObjectWithWrapper<V8TestTypedefs>(impl, &info, wrappe
r, isolate, WrapperConfiguration::Independent); |
| 614 return wrapper; | 614 return wrapper; |
| 615 } | 615 } |
| 616 void V8TestTypedefs::derefObject(void* object) | 616 void V8TestTypedefs::derefObject(void* object) |
| 617 { | 617 { |
| 618 fromInternalPointer(object)->deref(); | 618 fromInternalPointer(object)->deref(); |
| 619 } | 619 } |
| 620 | 620 |
| 621 } // namespace WebCore | 621 } // namespace WebCore |
| OLD | NEW |