| 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 #include "V8TestObject.h" | 8 #include "V8TestObject.h" |
| 9 | 9 |
| 10 #include "bindings/core/v8/V8HTMLCollection.h" | 10 #include "bindings/core/v8/V8HTMLCollection.h" |
| (...skipping 9141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9152 } | 9152 } |
| 9153 } | 9153 } |
| 9154 | 9154 |
| 9155 static void callWithExecutionContextRaisesExceptionVoidMethodLongArgMethodCallba
ck(const v8::FunctionCallbackInfo<v8::Value>& info) | 9155 static void callWithExecutionContextRaisesExceptionVoidMethodLongArgMethodCallba
ck(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 9156 { | 9156 { |
| 9157 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 9157 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 9158 TestObjectV8Internal::callWithExecutionContextRaisesExceptionVoidMethodLongA
rgMethod(info); | 9158 TestObjectV8Internal::callWithExecutionContextRaisesExceptionVoidMethodLongA
rgMethod(info); |
| 9159 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9159 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 9160 } | 9160 } |
| 9161 | 9161 |
| 9162 static void readOnlyVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | |
| 9163 { | |
| 9164 TestObject* impl = V8TestObject::toNative(info.Holder()); | |
| 9165 impl->readOnlyVoidMethod(); | |
| 9166 } | |
| 9167 | |
| 9168 static void readOnlyVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) | |
| 9169 { | |
| 9170 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | |
| 9171 TestObjectV8Internal::readOnlyVoidMethodMethod(info); | |
| 9172 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | |
| 9173 } | |
| 9174 | |
| 9175 static void notEnumerableReadOnlyVoidMethodMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) | |
| 9176 { | |
| 9177 TestObject* impl = V8TestObject::toNative(info.Holder()); | |
| 9178 impl->notEnumerableReadOnlyVoidMethod(); | |
| 9179 } | |
| 9180 | |
| 9181 static void notEnumerableReadOnlyVoidMethodMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) | |
| 9182 { | |
| 9183 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | |
| 9184 TestObjectV8Internal::notEnumerableReadOnlyVoidMethodMethod(info); | |
| 9185 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | |
| 9186 } | |
| 9187 | |
| 9188 static void runtimeEnabledVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 9162 static void runtimeEnabledVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
| 9189 { | 9163 { |
| 9190 TestObject* impl = V8TestObject::toNative(info.Holder()); | 9164 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 9191 impl->runtimeEnabledVoidMethod(); | 9165 impl->runtimeEnabledVoidMethod(); |
| 9192 } | 9166 } |
| 9193 | 9167 |
| 9194 static void runtimeEnabledVoidMethodMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) | 9168 static void runtimeEnabledVoidMethodMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) |
| 9195 { | 9169 { |
| 9196 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 9170 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 9197 TestObjectV8Internal::runtimeEnabledVoidMethodMethod(info); | 9171 TestObjectV8Internal::runtimeEnabledVoidMethodMethod(info); |
| (...skipping 910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10108 V8DOMConfiguration::installMethodCustomSignature(functionTemplate, v8::Local
<v8::Signature>(), v8::None, conditionalConditionStaticVoidMethodMethodConfigura
tion, isolate); | 10082 V8DOMConfiguration::installMethodCustomSignature(functionTemplate, v8::Local
<v8::Signature>(), v8::None, conditionalConditionStaticVoidMethodMethodConfigura
tion, isolate); |
| 10109 #endif // ENABLE(CONDITION) | 10083 #endif // ENABLE(CONDITION) |
| 10110 static const V8DOMConfiguration::MethodConfiguration doNotCheckSignatureVoid
MethodMethodConfiguration = { | 10084 static const V8DOMConfiguration::MethodConfiguration doNotCheckSignatureVoid
MethodMethodConfiguration = { |
| 10111 "doNotCheckSignatureVoidMethod", TestObjectV8Internal::doNotCheckSignatu
reVoidMethodMethodCallback, 0, 0 | 10085 "doNotCheckSignatureVoidMethod", TestObjectV8Internal::doNotCheckSignatu
reVoidMethodMethodCallback, 0, 0 |
| 10112 }; | 10086 }; |
| 10113 V8DOMConfiguration::installMethodCustomSignature(prototypeTemplate, v8::Loca
l<v8::Signature>(), v8::None, doNotCheckSignatureVoidMethodMethodConfiguration,
isolate); | 10087 V8DOMConfiguration::installMethodCustomSignature(prototypeTemplate, v8::Loca
l<v8::Signature>(), v8::None, doNotCheckSignatureVoidMethodMethodConfiguration,
isolate); |
| 10114 static const V8DOMConfiguration::MethodConfiguration notEnumerableVoidMethod
MethodConfiguration = { | 10088 static const V8DOMConfiguration::MethodConfiguration notEnumerableVoidMethod
MethodConfiguration = { |
| 10115 "notEnumerableVoidMethod", TestObjectV8Internal::notEnumerableVoidMethod
MethodCallback, 0, 0 | 10089 "notEnumerableVoidMethod", TestObjectV8Internal::notEnumerableVoidMethod
MethodCallback, 0, 0 |
| 10116 }; | 10090 }; |
| 10117 V8DOMConfiguration::installMethodCustomSignature(prototypeTemplate, defaultS
ignature, static_cast<v8::PropertyAttribute>(v8::DontDelete | v8::DontEnum), not
EnumerableVoidMethodMethodConfiguration, isolate); | 10091 V8DOMConfiguration::installMethodCustomSignature(prototypeTemplate, defaultS
ignature, static_cast<v8::PropertyAttribute>(v8::DontDelete | v8::DontEnum), not
EnumerableVoidMethodMethodConfiguration, isolate); |
| 10118 static const V8DOMConfiguration::MethodConfiguration readOnlyVoidMethodMetho
dConfiguration = { | |
| 10119 "readOnlyVoidMethod", TestObjectV8Internal::readOnlyVoidMethodMethodCall
back, 0, 0 | |
| 10120 }; | |
| 10121 V8DOMConfiguration::installMethodCustomSignature(prototypeTemplate, defaultS
ignature, static_cast<v8::PropertyAttribute>(v8::DontDelete | v8::ReadOnly), rea
dOnlyVoidMethodMethodConfiguration, isolate); | |
| 10122 static const V8DOMConfiguration::MethodConfiguration notEnumerableReadOnlyVo
idMethodMethodConfiguration = { | |
| 10123 "notEnumerableReadOnlyVoidMethod", TestObjectV8Internal::notEnumerableRe
adOnlyVoidMethodMethodCallback, 0, 0 | |
| 10124 }; | |
| 10125 V8DOMConfiguration::installMethodCustomSignature(prototypeTemplate, defaultS
ignature, static_cast<v8::PropertyAttribute>(v8::DontDelete | v8::DontEnum | v8:
:ReadOnly), notEnumerableReadOnlyVoidMethodMethodConfiguration, isolate); | |
| 10126 if (RuntimeEnabledFeatures::featureNameEnabled()) { | 10092 if (RuntimeEnabledFeatures::featureNameEnabled()) { |
| 10127 static const V8DOMConfiguration::MethodConfiguration runtimeEnabledVoidM
ethodMethodConfiguration = { | 10093 static const V8DOMConfiguration::MethodConfiguration runtimeEnabledVoidM
ethodMethodConfiguration = { |
| 10128 "runtimeEnabledVoidMethod", TestObjectV8Internal::runtimeEnabledVoid
MethodMethodCallback, 0, 0 | 10094 "runtimeEnabledVoidMethod", TestObjectV8Internal::runtimeEnabledVoid
MethodMethodCallback, 0, 0 |
| 10129 }; | 10095 }; |
| 10130 V8DOMConfiguration::installMethodCustomSignature(prototypeTemplate, defa
ultSignature, v8::None, runtimeEnabledVoidMethodMethodConfiguration, isolate); | 10096 V8DOMConfiguration::installMethodCustomSignature(prototypeTemplate, defa
ultSignature, v8::None, runtimeEnabledVoidMethodMethodConfiguration, isolate); |
| 10131 } | 10097 } |
| 10132 if (RuntimeEnabledFeatures::featureNameEnabled()) { | 10098 if (RuntimeEnabledFeatures::featureNameEnabled()) { |
| 10133 static const V8DOMConfiguration::MethodConfiguration perWorldBindingsRun
timeEnabledVoidMethodMethodConfiguration = { | 10099 static const V8DOMConfiguration::MethodConfiguration perWorldBindingsRun
timeEnabledVoidMethodMethodConfiguration = { |
| 10134 "perWorldBindingsRuntimeEnabledVoidMethod", TestObjectV8Internal::pe
rWorldBindingsRuntimeEnabledVoidMethodMethodCallback, TestObjectV8Internal::perW
orldBindingsRuntimeEnabledVoidMethodMethodCallbackForMainWorld, 0 | 10100 "perWorldBindingsRuntimeEnabledVoidMethod", TestObjectV8Internal::pe
rWorldBindingsRuntimeEnabledVoidMethodMethodCallback, TestObjectV8Internal::perW
orldBindingsRuntimeEnabledVoidMethodMethodCallbackForMainWorld, 0 |
| 10135 }; | 10101 }; |
| 10136 V8DOMConfiguration::installMethodCustomSignature(prototypeTemplate, defa
ultSignature, v8::None, perWorldBindingsRuntimeEnabledVoidMethodMethodConfigurat
ion, isolate); | 10102 V8DOMConfiguration::installMethodCustomSignature(prototypeTemplate, defa
ultSignature, v8::None, perWorldBindingsRuntimeEnabledVoidMethodMethodConfigurat
ion, isolate); |
| 10137 } | 10103 } |
| 10138 if (RuntimeEnabledFeatures::featureNameEnabled()) { | 10104 if (RuntimeEnabledFeatures::featureNameEnabled()) { |
| 10139 static const V8DOMConfiguration::MethodConfiguration runtimeEnabledOverl
oadedVoidMethodMethodConfiguration = { | 10105 static const V8DOMConfiguration::MethodConfiguration runtimeEnabledOverl
oadedVoidMethodMethodConfiguration = { |
| 10140 "runtimeEnabledOverloadedVoidMethod", TestObjectV8Internal::runtimeE
nabledOverloadedVoidMethodMethodCallback, 0, 1 | 10106 "runtimeEnabledOverloadedVoidMethod", TestObjectV8Internal::runtimeE
nabledOverloadedVoidMethodMethodCallback, 0, 1 |
| 10141 }; | 10107 }; |
| 10142 V8DOMConfiguration::installMethodCustomSignature(prototypeTemplate, defa
ultSignature, v8::None, runtimeEnabledOverloadedVoidMethodMethodConfiguration, i
solate); | 10108 V8DOMConfiguration::installMethodCustomSignature(prototypeTemplate, defa
ultSignature, v8::None, runtimeEnabledOverloadedVoidMethodMethodConfiguration, i
solate); |
| 10143 } | 10109 } |
| 10144 static const V8DOMConfiguration::MethodConfiguration unforgeableVoidMethodMe
thodConfiguration = { | 10110 static const V8DOMConfiguration::MethodConfiguration unforgeableVoidMethodMe
thodConfiguration = { |
| 10145 "unforgeableVoidMethod", TestObjectV8Internal::unforgeableVoidMethodMeth
odCallback, 0, 0 | 10111 "unforgeableVoidMethod", TestObjectV8Internal::unforgeableVoidMethodMeth
odCallback, 0, 0 |
| 10146 }; | 10112 }; |
| 10147 V8DOMConfiguration::installMethodCustomSignature(instanceTemplate, defaultSi
gnature, v8::None, unforgeableVoidMethodMethodConfiguration, isolate); | 10113 V8DOMConfiguration::installMethodCustomSignature(instanceTemplate, defaultSi
gnature, static_cast<v8::PropertyAttribute>(v8::DontDelete | v8::ReadOnly), unfo
rgeableVoidMethodMethodConfiguration, isolate); |
| 10148 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "staticStrin
gAttribute"), TestObjectV8Internal::staticStringAttributeAttributeGetterCallback
, TestObjectV8Internal::staticStringAttributeAttributeSetterCallback, v8::Extern
al::New(isolate, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8
::AccessorSignature>(), static_cast<v8::AccessControl>(v8::DEFAULT)); | 10114 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "staticStrin
gAttribute"), TestObjectV8Internal::staticStringAttributeAttributeGetterCallback
, TestObjectV8Internal::staticStringAttributeAttributeSetterCallback, v8::Extern
al::New(isolate, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8
::AccessorSignature>(), static_cast<v8::AccessControl>(v8::DEFAULT)); |
| 10149 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "staticLongA
ttribute"), TestObjectV8Internal::staticLongAttributeAttributeGetterCallback, Te
stObjectV8Internal::staticLongAttributeAttributeSetterCallback, v8::External::Ne
w(isolate, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::Acce
ssorSignature>(), static_cast<v8::AccessControl>(v8::DEFAULT)); | 10115 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "staticLongA
ttribute"), TestObjectV8Internal::staticLongAttributeAttributeGetterCallback, Te
stObjectV8Internal::staticLongAttributeAttributeSetterCallback, v8::External::Ne
w(isolate, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::Acce
ssorSignature>(), static_cast<v8::AccessControl>(v8::DEFAULT)); |
| 10150 | 10116 |
| 10151 // Custom toString template | 10117 // Custom toString template |
| 10152 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); | 10118 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); |
| 10153 } | 10119 } |
| 10154 | 10120 |
| 10155 v8::Handle<v8::FunctionTemplate> V8TestObject::domTemplate(v8::Isolate* isolate) | 10121 v8::Handle<v8::FunctionTemplate> V8TestObject::domTemplate(v8::Isolate* isolate) |
| 10156 { | 10122 { |
| 10157 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), configureV8TestObjectTemplate); | 10123 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), configureV8TestObjectTemplate); |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10228 fromInternalPointer(object)->deref(); | 10194 fromInternalPointer(object)->deref(); |
| 10229 } | 10195 } |
| 10230 | 10196 |
| 10231 template<> | 10197 template<> |
| 10232 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea
tionContext, v8::Isolate* isolate) | 10198 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea
tionContext, v8::Isolate* isolate) |
| 10233 { | 10199 { |
| 10234 return toV8(impl, creationContext, isolate); | 10200 return toV8(impl, creationContext, isolate); |
| 10235 } | 10201 } |
| 10236 | 10202 |
| 10237 } // namespace WebCore | 10203 } // namespace WebCore |
| OLD | NEW |