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 1129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1140 TestPartialInterfaceImplementation::partial2StaticVoidMethod(); | 1140 TestPartialInterfaceImplementation::partial2StaticVoidMethod(); |
1141 } | 1141 } |
1142 | 1142 |
1143 static void partial2StaticVoidMethodMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) | 1143 static void partial2StaticVoidMethodMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) |
1144 { | 1144 { |
1145 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 1145 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
1146 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethod(info); | 1146 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethod(info); |
1147 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1147 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1148 } | 1148 } |
1149 | 1149 |
| 1150 static void toStringMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 1151 { |
| 1152 TestInterfaceImplementation* impl = V8TestInterface::toNative(info.Holder())
; |
| 1153 v8SetReturnValueString(info, impl->toString(), info.GetIsolate()); |
| 1154 } |
| 1155 |
| 1156 static void toStringMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in
fo) |
| 1157 { |
| 1158 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 1159 TestInterfaceImplementationV8Internal::toStringMethod(info); |
| 1160 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 1161 } |
| 1162 |
1150 static void indexedPropertyGetter(uint32_t index, const v8::PropertyCallbackInfo
<v8::Value>& info) | 1163 static void indexedPropertyGetter(uint32_t index, const v8::PropertyCallbackInfo
<v8::Value>& info) |
1151 { | 1164 { |
1152 TestInterfaceImplementation* impl = V8TestInterface::toNative(info.Holder())
; | 1165 TestInterfaceImplementation* impl = V8TestInterface::toNative(info.Holder())
; |
1153 String result = impl->anonymousIndexedGetter(index); | 1166 String result = impl->anonymousIndexedGetter(index); |
1154 if (result.isNull()) | 1167 if (result.isNull()) |
1155 return; | 1168 return; |
1156 v8SetReturnValueString(info, result, info.GetIsolate()); | 1169 v8SetReturnValueString(info, result, info.GetIsolate()); |
1157 } | 1170 } |
1158 | 1171 |
1159 static void indexedPropertyGetterCallback(uint32_t index, const v8::PropertyCall
backInfo<v8::Value>& info) | 1172 static void indexedPropertyGetterCallback(uint32_t index, const v8::PropertyCall
backInfo<v8::Value>& info) |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1424 #if ENABLE(PARTIAL_CONDITION) | 1437 #if ENABLE(PARTIAL_CONDITION) |
1425 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { | 1438 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { |
1426 prototypeTemplate->Set(v8AtomicString(isolate, "partialCallWithExecution
ContextRaisesExceptionVoidMethod"), v8::FunctionTemplate::New(isolate, TestInter
faceImplementationV8Internal::partialCallWithExecutionContextRaisesExceptionVoid
MethodMethodCallback, v8Undefined(), defaultSignature, 0)); | 1439 prototypeTemplate->Set(v8AtomicString(isolate, "partialCallWithExecution
ContextRaisesExceptionVoidMethod"), v8::FunctionTemplate::New(isolate, TestInter
faceImplementationV8Internal::partialCallWithExecutionContextRaisesExceptionVoid
MethodMethodCallback, v8Undefined(), defaultSignature, 0)); |
1427 } | 1440 } |
1428 #endif // ENABLE(PARTIAL_CONDITION) | 1441 #endif // ENABLE(PARTIAL_CONDITION) |
1429 #if ENABLE(PARTIAL_CONDITION) | 1442 #if ENABLE(PARTIAL_CONDITION) |
1430 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { | 1443 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { |
1431 prototypeTemplate->Set(v8AtomicString(isolate, "partialVoidMethodPartial
CallbackTypeArg"), v8::FunctionTemplate::New(isolate, TestInterfaceImplementatio
nV8Internal::partialVoidMethodPartialCallbackTypeArgMethodCallback, v8Undefined(
), defaultSignature, 1)); | 1444 prototypeTemplate->Set(v8AtomicString(isolate, "partialVoidMethodPartial
CallbackTypeArg"), v8::FunctionTemplate::New(isolate, TestInterfaceImplementatio
nV8Internal::partialVoidMethodPartialCallbackTypeArgMethodCallback, v8Undefined(
), defaultSignature, 1)); |
1432 } | 1445 } |
1433 #endif // ENABLE(PARTIAL_CONDITION) | 1446 #endif // ENABLE(PARTIAL_CONDITION) |
| 1447 prototypeTemplate->Set(v8AtomicString(isolate, "toString"), v8::FunctionTemp
late::New(isolate, TestInterfaceImplementationV8Internal::toStringMethodCallback
, v8Undefined(), defaultSignature, 0), static_cast<v8::PropertyAttribute>(v8::Do
ntDelete | v8::DontEnum)); |
1434 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "staticStrin
gAttribute"), TestInterfaceImplementationV8Internal::staticStringAttributeAttrib
uteGetterCallback, TestInterfaceImplementationV8Internal::staticStringAttributeA
ttributeSetterCallback, v8::External::New(isolate, 0), static_cast<v8::PropertyA
ttribute>(v8::None), v8::Handle<v8::AccessorSignature>(), static_cast<v8::Access
Control>(v8::DEFAULT)); | 1448 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "staticStrin
gAttribute"), TestInterfaceImplementationV8Internal::staticStringAttributeAttrib
uteGetterCallback, TestInterfaceImplementationV8Internal::staticStringAttributeA
ttributeSetterCallback, v8::External::New(isolate, 0), static_cast<v8::PropertyA
ttribute>(v8::None), v8::Handle<v8::AccessorSignature>(), static_cast<v8::Access
Control>(v8::DEFAULT)); |
1435 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "implementsS
taticReadOnlyLongAttribute"), TestInterfaceImplementationV8Internal::implementsS
taticReadOnlyLongAttributeAttributeGetterCallback, 0, v8::External::New(isolate,
0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSignat
ure>(), static_cast<v8::AccessControl>(v8::DEFAULT)); | 1449 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "implementsS
taticReadOnlyLongAttribute"), TestInterfaceImplementationV8Internal::implementsS
taticReadOnlyLongAttributeAttributeGetterCallback, 0, v8::External::New(isolate,
0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSignat
ure>(), static_cast<v8::AccessControl>(v8::DEFAULT)); |
1436 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "implementsS
taticStringAttribute"), TestInterfaceImplementationV8Internal::implementsStaticS
tringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::im
plementsStaticStringAttributeAttributeSetterCallback, v8::External::New(isolate,
0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSignat
ure>(), static_cast<v8::AccessControl>(v8::DEFAULT)); | 1450 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "implementsS
taticStringAttribute"), TestInterfaceImplementationV8Internal::implementsStaticS
tringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::im
plementsStaticStringAttributeAttributeSetterCallback, v8::External::New(isolate,
0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSignat
ure>(), static_cast<v8::AccessControl>(v8::DEFAULT)); |
1437 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "implements2
StaticStringAttribute"), TestInterfaceImplementationV8Internal::implements2Stati
cStringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::
implements2StaticStringAttributeAttributeSetterCallback, v8::External::New(isola
te, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSig
nature>(), static_cast<v8::AccessControl>(v8::DEFAULT)); | 1451 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "implements2
StaticStringAttribute"), TestInterfaceImplementationV8Internal::implements2Stati
cStringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::
implements2StaticStringAttributeAttributeSetterCallback, v8::External::New(isola
te, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSig
nature>(), static_cast<v8::AccessControl>(v8::DEFAULT)); |
1438 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "implements3
StaticStringAttribute"), TestInterfaceImplementationV8Internal::implements3Stati
cStringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::
implements3StaticStringAttributeAttributeSetterCallback, v8::External::New(isola
te, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSig
nature>(), static_cast<v8::AccessControl>(v8::DEFAULT)); | 1452 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "implements3
StaticStringAttribute"), TestInterfaceImplementationV8Internal::implements3Stati
cStringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::
implements3StaticStringAttributeAttributeSetterCallback, v8::External::New(isola
te, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSig
nature>(), static_cast<v8::AccessControl>(v8::DEFAULT)); |
1439 #if ENABLE(PARTIAL_CONDITION) | 1453 #if ENABLE(PARTIAL_CONDITION) |
1440 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "partialStat
icLongAttribute"), TestInterfaceImplementationV8Internal::partialStaticLongAttri
buteAttributeGetterCallback, TestInterfaceImplementationV8Internal::partialStati
cLongAttributeAttributeSetterCallback, v8::External::New(isolate, 0), static_cas
t<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSignature>(), static_
cast<v8::AccessControl>(v8::DEFAULT)); | 1454 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "partialStat
icLongAttribute"), TestInterfaceImplementationV8Internal::partialStaticLongAttri
buteAttributeGetterCallback, TestInterfaceImplementationV8Internal::partialStati
cLongAttributeAttributeSetterCallback, v8::External::New(isolate, 0), static_cas
t<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSignature>(), static_
cast<v8::AccessControl>(v8::DEFAULT)); |
1441 #endif // ENABLE(PARTIAL_CONDITION) | 1455 #endif // ENABLE(PARTIAL_CONDITION) |
1442 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "partial2Sta
ticLongAttribute"), TestInterfaceImplementationV8Internal::partial2StaticLongAtt
ributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::partial2St
aticLongAttributeAttributeSetterCallback, v8::External::New(isolate, 0), static_
cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSignature>(), stat
ic_cast<v8::AccessControl>(v8::DEFAULT)); | 1456 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "partial2Sta
ticLongAttribute"), TestInterfaceImplementationV8Internal::partial2StaticLongAtt
ributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::partial2St
aticLongAttributeAttributeSetterCallback, v8::External::New(isolate, 0), static_
cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSignature>(), stat
ic_cast<v8::AccessControl>(v8::DEFAULT)); |
1443 | 1457 |
(...skipping 63 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 |