| 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 886 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 897 impl->voidMethod(); | 897 impl->voidMethod(); |
| 898 } | 898 } |
| 899 | 899 |
| 900 static void voidMethodMethodCallbackForMainWorld(const v8::FunctionCallbackInfo<
v8::Value>& info) | 900 static void voidMethodMethodCallbackForMainWorld(const v8::FunctionCallbackInfo<
v8::Value>& info) |
| 901 { | 901 { |
| 902 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 902 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 903 TestInterfaceImplementationV8Internal::voidMethodMethodForMainWorld(info); | 903 TestInterfaceImplementationV8Internal::voidMethodMethodForMainWorld(info); |
| 904 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 904 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 905 } | 905 } |
| 906 | 906 |
| 907 static void toStringMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 908 { |
| 909 TestInterfaceImplementation* impl = V8TestInterface::toNative(info.Holder())
; |
| 910 v8SetReturnValueString(info, impl->toString(), info.GetIsolate()); |
| 911 } |
| 912 |
| 913 static void toStringMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in
fo) |
| 914 { |
| 915 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 916 TestInterfaceImplementationV8Internal::toStringMethod(info); |
| 917 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 918 } |
| 919 |
| 907 static void implementsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) | 920 static void implementsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) |
| 908 { | 921 { |
| 909 TestInterfaceImplementation* impl = V8TestInterface::toNative(info.Holder())
; | 922 TestInterfaceImplementation* impl = V8TestInterface::toNative(info.Holder())
; |
| 910 impl->implementsVoidMethod(); | 923 impl->implementsVoidMethod(); |
| 911 } | 924 } |
| 912 | 925 |
| 913 static void implementsVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) | 926 static void implementsVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) |
| 914 { | 927 { |
| 915 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 928 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 916 TestInterfaceImplementationV8Internal::implementsVoidMethodMethod(info); | 929 TestInterfaceImplementationV8Internal::implementsVoidMethodMethod(info); |
| (...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1394 {"PARTIAL2_UNSIGNED_SHORT", 0}, | 1407 {"PARTIAL2_UNSIGNED_SHORT", 0}, |
| 1395 }; | 1408 }; |
| 1396 V8DOMConfiguration::installConstants(functionTemplate, prototypeTemplate, V8
TestInterfaceConstants, WTF_ARRAY_LENGTH(V8TestInterfaceConstants), isolate); | 1409 V8DOMConfiguration::installConstants(functionTemplate, prototypeTemplate, V8
TestInterfaceConstants, WTF_ARRAY_LENGTH(V8TestInterfaceConstants), isolate); |
| 1397 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { | 1410 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { |
| 1398 static const V8DOMConfiguration::ConstantConfiguration constantConfigura
tion = {"PARTIAL_UNSIGNED_SHORT", static_cast<signed int>(0)}; | 1411 static const V8DOMConfiguration::ConstantConfiguration constantConfigura
tion = {"PARTIAL_UNSIGNED_SHORT", static_cast<signed int>(0)}; |
| 1399 V8DOMConfiguration::installConstants(functionTemplate, prototypeTemplate
, &constantConfiguration, 1, isolate); | 1412 V8DOMConfiguration::installConstants(functionTemplate, prototypeTemplate
, &constantConfiguration, 1, isolate); |
| 1400 } | 1413 } |
| 1401 functionTemplate->InstanceTemplate()->SetIndexedPropertyHandler(TestInterfac
eImplementationV8Internal::indexedPropertyGetterCallback, TestInterfaceImplement
ationV8Internal::indexedPropertySetterCallback, 0, TestInterfaceImplementationV8
Internal::indexedPropertyDeleterCallback, indexedPropertyEnumerator<TestInterfac
eImplementation>); | 1414 functionTemplate->InstanceTemplate()->SetIndexedPropertyHandler(TestInterfac
eImplementationV8Internal::indexedPropertyGetterCallback, TestInterfaceImplement
ationV8Internal::indexedPropertySetterCallback, 0, TestInterfaceImplementationV8
Internal::indexedPropertyDeleterCallback, indexedPropertyEnumerator<TestInterfac
eImplementation>); |
| 1402 functionTemplate->InstanceTemplate()->SetNamedPropertyHandler(TestInterfaceI
mplementationV8Internal::namedPropertyGetterCallback, TestInterfaceImplementatio
nV8Internal::namedPropertySetterCallback, TestInterfaceImplementationV8Internal:
:namedPropertyQueryCallback, TestInterfaceImplementationV8Internal::namedPropert
yDeleterCallback, TestInterfaceImplementationV8Internal::namedPropertyEnumerator
Callback); | 1415 functionTemplate->InstanceTemplate()->SetNamedPropertyHandler(TestInterfaceI
mplementationV8Internal::namedPropertyGetterCallback, TestInterfaceImplementatio
nV8Internal::namedPropertySetterCallback, TestInterfaceImplementationV8Internal:
:namedPropertyQueryCallback, TestInterfaceImplementationV8Internal::namedPropert
yDeleterCallback, TestInterfaceImplementationV8Internal::namedPropertyEnumerator
Callback); |
| 1403 functionTemplate->InstanceTemplate()->SetCallAsFunctionHandler(V8TestInterfa
ce::legacyCallCustom); | 1416 functionTemplate->InstanceTemplate()->SetCallAsFunctionHandler(V8TestInterfa
ce::legacyCallCustom); |
| 1417 prototypeTemplate->Set(v8AtomicString(isolate, "toString"), v8::FunctionTemp
late::New(isolate, TestInterfaceImplementationV8Internal::toStringMethodCallback
, v8Undefined(), defaultSignature, 0), static_cast<v8::PropertyAttribute>(v8::Do
ntDelete | v8::DontEnum)); |
| 1404 functionTemplate->Set(v8AtomicString(isolate, "implementsStaticVoidMethod"),
v8::FunctionTemplate::New(isolate, TestInterfaceImplementationV8Internal::imple
mentsStaticVoidMethodMethodCallback, v8Undefined(), v8::Local<v8::Signature>(),
0)); | 1418 functionTemplate->Set(v8AtomicString(isolate, "implementsStaticVoidMethod"),
v8::FunctionTemplate::New(isolate, TestInterfaceImplementationV8Internal::imple
mentsStaticVoidMethodMethodCallback, v8Undefined(), v8::Local<v8::Signature>(),
0)); |
| 1405 if (RuntimeEnabledFeatures::implements2FeatureNameEnabled()) { | 1419 if (RuntimeEnabledFeatures::implements2FeatureNameEnabled()) { |
| 1406 prototypeTemplate->Set(v8AtomicString(isolate, "implements2VoidMethod"),
v8::FunctionTemplate::New(isolate, TestInterfaceImplementationV8Internal::imple
ments2VoidMethodMethodCallback, v8Undefined(), defaultSignature, 0)); | 1420 prototypeTemplate->Set(v8AtomicString(isolate, "implements2VoidMethod"),
v8::FunctionTemplate::New(isolate, TestInterfaceImplementationV8Internal::imple
ments2VoidMethodMethodCallback, v8Undefined(), defaultSignature, 0)); |
| 1407 } | 1421 } |
| 1408 functionTemplate->Set(v8AtomicString(isolate, "implements3StaticVoidMethod")
, v8::FunctionTemplate::New(isolate, TestInterfaceImplementationV8Internal::impl
ements3StaticVoidMethodMethodCallback, v8Undefined(), v8::Local<v8::Signature>()
, 0)); | 1422 functionTemplate->Set(v8AtomicString(isolate, "implements3StaticVoidMethod")
, v8::FunctionTemplate::New(isolate, TestInterfaceImplementationV8Internal::impl
ements3StaticVoidMethodMethodCallback, v8Undefined(), v8::Local<v8::Signature>()
, 0)); |
| 1409 #if ENABLE(PARTIAL_CONDITION) | 1423 #if ENABLE(PARTIAL_CONDITION) |
| 1410 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { | 1424 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { |
| 1411 prototypeTemplate->Set(v8AtomicString(isolate, "partialVoidMethod"), v8:
:FunctionTemplate::New(isolate, TestInterfaceImplementationV8Internal::partialVo
idMethodMethodCallback, v8Undefined(), defaultSignature, 0)); | 1425 prototypeTemplate->Set(v8AtomicString(isolate, "partialVoidMethod"), v8:
:FunctionTemplate::New(isolate, TestInterfaceImplementationV8Internal::partialVo
idMethodMethodCallback, v8Undefined(), defaultSignature, 0)); |
| 1412 } | 1426 } |
| 1413 #endif // ENABLE(PARTIAL_CONDITION) | 1427 #endif // ENABLE(PARTIAL_CONDITION) |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1507 } | 1521 } |
| 1508 | 1522 |
| 1509 template<> | 1523 template<> |
| 1510 v8::Handle<v8::Value> toV8NoInline(TestInterfaceImplementation* impl, v8::Handle
<v8::Object> creationContext, v8::Isolate* isolate) | 1524 v8::Handle<v8::Value> toV8NoInline(TestInterfaceImplementation* impl, v8::Handle
<v8::Object> creationContext, v8::Isolate* isolate) |
| 1511 { | 1525 { |
| 1512 return toV8(impl, creationContext, isolate); | 1526 return toV8(impl, creationContext, isolate); |
| 1513 } | 1527 } |
| 1514 | 1528 |
| 1515 } // namespace WebCore | 1529 } // namespace WebCore |
| 1516 #endif // ENABLE(CONDITION) | 1530 #endif // ENABLE(CONDITION) |
| OLD | NEW |