| 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 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 552 return; | 552 return; |
| 553 } | 553 } |
| 554 TestInterface* imp = V8TestInterface::toNative(args.Holder()); | 554 TestInterface* imp = V8TestInterface::toNative(args.Holder()); |
| 555 ExceptionState es(args.GetIsolate()); | 555 ExceptionState es(args.GetIsolate()); |
| 556 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, strArg, args[0]); | 556 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, strArg, args[0]); |
| 557 V8TRYCATCH_VOID(TestObj*, objArg, V8TestObject::HasInstance(args[1], args.Ge
tIsolate(), worldType(args.GetIsolate())) ? V8TestObject::toNative(v8::Handle<v8
::Object>::Cast(args[1])) : 0); | 557 V8TRYCATCH_VOID(TestObj*, objArg, V8TestObject::HasInstance(args[1], args.Ge
tIsolate(), worldType(args.GetIsolate())) ? V8TestObject::toNative(v8::Handle<v8
::Object>::Cast(args[1])) : 0); |
| 558 ExecutionContext* scriptContext = getExecutionContext(); | 558 ExecutionContext* scriptContext = getExecutionContext(); |
| 559 RefPtr<TestObj> result = TestImplements::implementsMethod2(scriptContext, im
p, strArg, objArg, es); | 559 RefPtr<TestObj> result = TestImplements::implementsMethod2(scriptContext, im
p, strArg, objArg, es); |
| 560 if (es.throwIfNeeded()) | 560 if (es.throwIfNeeded()) |
| 561 return; | 561 return; |
| 562 v8SetReturnValue(args, result.release(), args.Holder()); | 562 v8SetReturnValue(args, result.release()); |
| 563 } | 563 } |
| 564 | 564 |
| 565 static void implementsMethod2MethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& args) | 565 static void implementsMethod2MethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& args) |
| 566 { | 566 { |
| 567 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 567 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 568 TestInterfaceV8Internal::implementsMethod2Method(args); | 568 TestInterfaceV8Internal::implementsMethod2Method(args); |
| 569 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 569 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 570 } | 570 } |
| 571 | 571 |
| 572 static void implementsMethod3MethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& args) | 572 static void implementsMethod3MethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& args) |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 618 return; | 618 return; |
| 619 } | 619 } |
| 620 TestInterface* imp = V8TestInterface::toNative(args.Holder()); | 620 TestInterface* imp = V8TestInterface::toNative(args.Holder()); |
| 621 ExceptionState es(args.GetIsolate()); | 621 ExceptionState es(args.GetIsolate()); |
| 622 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, strArg, args[0]); | 622 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, strArg, args[0]); |
| 623 V8TRYCATCH_VOID(TestObj*, objArg, V8TestObject::HasInstance(args[1], args.Ge
tIsolate(), worldType(args.GetIsolate())) ? V8TestObject::toNative(v8::Handle<v8
::Object>::Cast(args[1])) : 0); | 623 V8TRYCATCH_VOID(TestObj*, objArg, V8TestObject::HasInstance(args[1], args.Ge
tIsolate(), worldType(args.GetIsolate())) ? V8TestObject::toNative(v8::Handle<v8
::Object>::Cast(args[1])) : 0); |
| 624 ExecutionContext* scriptContext = getExecutionContext(); | 624 ExecutionContext* scriptContext = getExecutionContext(); |
| 625 RefPtr<TestObj> result = TestPartialInterface::supplementalMethod2(scriptCon
text, imp, strArg, objArg, es); | 625 RefPtr<TestObj> result = TestPartialInterface::supplementalMethod2(scriptCon
text, imp, strArg, objArg, es); |
| 626 if (es.throwIfNeeded()) | 626 if (es.throwIfNeeded()) |
| 627 return; | 627 return; |
| 628 v8SetReturnValue(args, result.release(), args.Holder()); | 628 v8SetReturnValue(args, result.release()); |
| 629 } | 629 } |
| 630 | 630 |
| 631 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 631 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 632 | 632 |
| 633 #if ENABLE(Condition11) || ENABLE(Condition12) | 633 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 634 | 634 |
| 635 static void supplementalMethod2MethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& args) | 635 static void supplementalMethod2MethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& args) |
| 636 { | 636 { |
| 637 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 637 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 638 TestInterfaceV8Internal::supplementalMethod2Method(args); | 638 TestInterfaceV8Internal::supplementalMethod2Method(args); |
| (...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 984 } | 984 } |
| 985 | 985 |
| 986 void V8TestInterface::derefObject(void* object) | 986 void V8TestInterface::derefObject(void* object) |
| 987 { | 987 { |
| 988 fromInternalPointer(object)->deref(); | 988 fromInternalPointer(object)->deref(); |
| 989 } | 989 } |
| 990 | 990 |
| 991 } // namespace WebCore | 991 } // namespace WebCore |
| 992 | 992 |
| 993 #endif // ENABLE(Condition1) || ENABLE(Condition2) | 993 #endif // ENABLE(Condition1) || ENABLE(Condition2) |
| OLD | NEW |