OLD | NEW |
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 #if ENABLE(CONDITION) | 8 #if ENABLE(CONDITION) |
9 #include "V8TestInterface.h" | 9 #include "V8TestInterface.h" |
10 | 10 |
(...skipping 794 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
805 TestInterfaceImplementation* impl = V8TestInterface::toNative(info.Holder())
; | 805 TestInterfaceImplementation* impl = V8TestInterface::toNative(info.Holder())
; |
806 TOSTRING_VOID(V8StringResource<>, strArg, info[0]); | 806 TOSTRING_VOID(V8StringResource<>, strArg, info[0]); |
807 if (info.Length() > 1 && !V8TestInterfaceEmpty::hasInstance(info[1], info.Ge
tIsolate())) { | 807 if (info.Length() > 1 && !V8TestInterfaceEmpty::hasInstance(info[1], info.Ge
tIsolate())) { |
808 exceptionState.throwTypeError("parameter 2 is not of type 'TestInterface
Empty'."); | 808 exceptionState.throwTypeError("parameter 2 is not of type 'TestInterface
Empty'."); |
809 exceptionState.throwIfNeeded(); | 809 exceptionState.throwIfNeeded(); |
810 return; | 810 return; |
811 } | 811 } |
812 TONATIVE_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceEmp
ty::toNativeWithTypeCheck(info.GetIsolate(), info[1])); | 812 TONATIVE_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceEmp
ty::toNativeWithTypeCheck(info.GetIsolate(), info[1])); |
813 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate())
; | 813 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate())
; |
814 RefPtr<TestInterfaceEmpty> result = impl->implementsComplexMethod(scriptCont
ext, strArg, testInterfaceEmptyArg, exceptionState); | 814 RefPtr<TestInterfaceEmpty> result = impl->implementsComplexMethod(scriptCont
ext, strArg, testInterfaceEmptyArg, exceptionState); |
815 if (exceptionState.throwIfNeeded()) | 815 if (exceptionState.hadException()) { |
| 816 exceptionState.throwIfNeeded(); |
816 return; | 817 return; |
| 818 } |
817 v8SetReturnValue(info, result.release()); | 819 v8SetReturnValue(info, result.release()); |
818 } | 820 } |
819 | 821 |
820 static void implementsComplexMethodMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) | 822 static void implementsComplexMethodMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) |
821 { | 823 { |
822 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 824 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
823 TestInterfaceImplementationV8Internal::implementsComplexMethodMethod(info); | 825 TestInterfaceImplementationV8Internal::implementsComplexMethodMethod(info); |
824 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 826 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
825 } | 827 } |
826 | 828 |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
942 #endif // ENABLE(PARTIAL_CONDITION) | 944 #endif // ENABLE(PARTIAL_CONDITION) |
943 | 945 |
944 #if ENABLE(PARTIAL_CONDITION) | 946 #if ENABLE(PARTIAL_CONDITION) |
945 static void partialCallWithExecutionContextRaisesExceptionVoidMethodMethod(const
v8::FunctionCallbackInfo<v8::Value>& info) | 947 static void partialCallWithExecutionContextRaisesExceptionVoidMethodMethod(const
v8::FunctionCallbackInfo<v8::Value>& info) |
946 { | 948 { |
947 ExceptionState exceptionState(ExceptionState::ExecutionContext, "partialCall
WithExecutionContextRaisesExceptionVoidMethod", "TestInterface", info.Holder(),
info.GetIsolate()); | 949 ExceptionState exceptionState(ExceptionState::ExecutionContext, "partialCall
WithExecutionContextRaisesExceptionVoidMethod", "TestInterface", info.Holder(),
info.GetIsolate()); |
948 TestInterfaceImplementation* impl = V8TestInterface::toNative(info.Holder())
; | 950 TestInterfaceImplementation* impl = V8TestInterface::toNative(info.Holder())
; |
949 ASSERT(impl); | 951 ASSERT(impl); |
950 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate())
; | 952 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate())
; |
951 TestPartialInterface::partialCallWithExecutionContextRaisesExceptionVoidMeth
od(scriptContext, *impl, exceptionState); | 953 TestPartialInterface::partialCallWithExecutionContextRaisesExceptionVoidMeth
od(scriptContext, *impl, exceptionState); |
952 if (exceptionState.throwIfNeeded()) | 954 if (exceptionState.hadException()) { |
| 955 exceptionState.throwIfNeeded(); |
953 return; | 956 return; |
| 957 } |
954 } | 958 } |
955 #endif // ENABLE(PARTIAL_CONDITION) | 959 #endif // ENABLE(PARTIAL_CONDITION) |
956 | 960 |
957 #if ENABLE(PARTIAL_CONDITION) | 961 #if ENABLE(PARTIAL_CONDITION) |
958 static void partialCallWithExecutionContextRaisesExceptionVoidMethodMethodCallba
ck(const v8::FunctionCallbackInfo<v8::Value>& info) | 962 static void partialCallWithExecutionContextRaisesExceptionVoidMethodMethodCallba
ck(const v8::FunctionCallbackInfo<v8::Value>& info) |
959 { | 963 { |
960 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 964 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
961 TestInterfaceImplementationV8Internal::partialCallWithExecutionContextRaises
ExceptionVoidMethodMethod(info); | 965 TestInterfaceImplementationV8Internal::partialCallWithExecutionContextRaises
ExceptionVoidMethodMethod(info); |
962 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 966 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
963 } | 967 } |
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1371 } | 1375 } |
1372 | 1376 |
1373 template<> | 1377 template<> |
1374 v8::Handle<v8::Value> toV8NoInline(TestInterfaceImplementation* impl, v8::Handle
<v8::Object> creationContext, v8::Isolate* isolate) | 1378 v8::Handle<v8::Value> toV8NoInline(TestInterfaceImplementation* impl, v8::Handle
<v8::Object> creationContext, v8::Isolate* isolate) |
1375 { | 1379 { |
1376 return toV8(impl, creationContext, isolate); | 1380 return toV8(impl, creationContext, isolate); |
1377 } | 1381 } |
1378 | 1382 |
1379 } // namespace WebCore | 1383 } // namespace WebCore |
1380 #endif // ENABLE(CONDITION) | 1384 #endif // ENABLE(CONDITION) |
OLD | NEW |