| 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 911 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 922 } | 922 } |
| 923 | 923 |
| 924 static void TestInterfaceImplementationForceSetAttributeOnThisCallback(v8::Local
<v8::String> name, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<
void>& info) | 924 static void TestInterfaceImplementationForceSetAttributeOnThisCallback(v8::Local
<v8::String> name, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<
void>& info) |
| 925 { | 925 { |
| 926 TestInterfaceImplementationV8Internal::TestInterfaceImplementationForceSetAt
tributeOnThis(name, v8Value, info); | 926 TestInterfaceImplementationV8Internal::TestInterfaceImplementationForceSetAt
tributeOnThis(name, v8Value, info); |
| 927 } | 927 } |
| 928 | 928 |
| 929 static void voidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) | 929 static void voidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) |
| 930 { | 930 { |
| 931 if (UNLIKELY(info.Length() < 1)) { | 931 if (UNLIKELY(info.Length() < 1)) { |
| 932 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v
oidMethodTestInterfaceEmptyArg", "TestInterface", 1, info.Length(), info.GetIsol
ate()), info.GetIsolate()); | 932 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "voidMethodTestInterfaceEmptyArg", "TestInterface", 1, info.Len
gth()), info.GetIsolate()); |
| 933 return; | 933 return; |
| 934 } | 934 } |
| 935 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); | 935 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); |
| 936 TestInterfaceEmpty* testInterfaceEmptyArg; | 936 TestInterfaceEmpty* testInterfaceEmptyArg; |
| 937 { | 937 { |
| 938 if (info.Length() > 0 && !V8TestInterfaceEmpty::hasInstance(info[0], inf
o.GetIsolate())) { | 938 if (info.Length() > 0 && !V8TestInterfaceEmpty::hasInstance(info[0], inf
o.GetIsolate())) { |
| 939 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute(
"voidMethodTestInterfaceEmptyArg", "TestInterface", "parameter 1 is not of type
'TestInterfaceEmpty'."), info.GetIsolate()); | 939 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute(
"voidMethodTestInterfaceEmptyArg", "TestInterface", "parameter 1 is not of type
'TestInterfaceEmpty'."), info.GetIsolate()); |
| 940 return; | 940 return; |
| 941 } | 941 } |
| 942 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImpl(v8::Handle<v8::Obje
ct>::Cast(info[0])); | 942 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImpl(v8::Handle<v8::Obje
ct>::Cast(info[0])); |
| (...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1363 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 1363 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 1364 TestInterfaceImplementationV8Internal::partialCallWithExecutionContextRaises
ExceptionVoidMethodMethod(info); | 1364 TestInterfaceImplementationV8Internal::partialCallWithExecutionContextRaises
ExceptionVoidMethodMethod(info); |
| 1365 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1365 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 1366 } | 1366 } |
| 1367 #endif // ENABLE(PARTIAL_CONDITION) | 1367 #endif // ENABLE(PARTIAL_CONDITION) |
| 1368 | 1368 |
| 1369 #if ENABLE(PARTIAL_CONDITION) | 1369 #if ENABLE(PARTIAL_CONDITION) |
| 1370 static void partialVoidMethodPartialCallbackTypeArgMethod(const v8::FunctionCall
backInfo<v8::Value>& info) | 1370 static void partialVoidMethodPartialCallbackTypeArgMethod(const v8::FunctionCall
backInfo<v8::Value>& info) |
| 1371 { | 1371 { |
| 1372 if (UNLIKELY(info.Length() < 1)) { | 1372 if (UNLIKELY(info.Length() < 1)) { |
| 1373 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("p
artialVoidMethodPartialCallbackTypeArg", "TestInterface", 1, info.Length(), info
.GetIsolate()), info.GetIsolate()); | 1373 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "partialVoidMethodPartialCallbackTypeArg", "TestInterface", 1,
info.Length()), info.GetIsolate()); |
| 1374 return; | 1374 return; |
| 1375 } | 1375 } |
| 1376 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); | 1376 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); |
| 1377 ScriptValue partialCallbackTypeArg; | 1377 ScriptValue partialCallbackTypeArg; |
| 1378 { | 1378 { |
| 1379 partialCallbackTypeArg = ScriptValue(ScriptState::current(info.GetIsolat
e()), info[0]); | 1379 partialCallbackTypeArg = ScriptValue(ScriptState::current(info.GetIsolat
e()), info[0]); |
| 1380 } | 1380 } |
| 1381 TestPartialInterface::partialVoidMethodPartialCallbackTypeArg(*impl, partial
CallbackTypeArg); | 1381 TestPartialInterface::partialVoidMethodPartialCallbackTypeArg(*impl, partial
CallbackTypeArg); |
| 1382 } | 1382 } |
| 1383 #endif // ENABLE(PARTIAL_CONDITION) | 1383 #endif // ENABLE(PARTIAL_CONDITION) |
| (...skipping 804 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2188 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void (
*method)(const v8::FunctionCallbackInfo<v8::Value>&)) | 2188 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void (
*method)(const v8::FunctionCallbackInfo<v8::Value>&)) |
| 2189 { | 2189 { |
| 2190 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt
erface = method; | 2190 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt
erface = method; |
| 2191 } | 2191 } |
| 2192 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(
void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) | 2192 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(
void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) |
| 2193 { | 2193 { |
| 2194 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart
ialInterface = method; | 2194 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart
ialInterface = method; |
| 2195 } | 2195 } |
| 2196 } // namespace blink | 2196 } // namespace blink |
| 2197 #endif // ENABLE(CONDITION) | 2197 #endif // ENABLE(CONDITION) |
| OLD | NEW |