| 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 "V8TestTypedefs.h" | 8 #include "V8TestTypedefs.h" |
| 9 | 9 |
| 10 #include "RuntimeEnabledFeatures.h" | 10 #include "RuntimeEnabledFeatures.h" |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 static void TestTypedefsReplaceableAttributeSetterCallback(v8::Local<v8::String>
name, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 95 static void TestTypedefsReplaceableAttributeSetterCallback(v8::Local<v8::String>
name, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 96 { | 96 { |
| 97 TestTypedefsV8Internal::TestTypedefsReplaceableAttributeSetter(name, v8Value
, info); | 97 TestTypedefsV8Internal::TestTypedefsReplaceableAttributeSetter(name, v8Value
, info); |
| 98 } | 98 } |
| 99 | 99 |
| 100 static void voidMethodArrayOfLongsArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 100 static void voidMethodArrayOfLongsArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 101 { | 101 { |
| 102 TestTypedefs* impl = V8TestTypedefs::toNative(info.Holder()); | 102 TestTypedefs* impl = V8TestTypedefs::toNative(info.Holder()); |
| 103 Vector<int> arrayOfLongsArg; | 103 Vector<int> arrayOfLongsArg; |
| 104 { | 104 { |
| 105 v8::TryCatch block; | 105 V8TryPropagate block; |
| 106 if (UNLIKELY(info.Length() <= 0)) { | 106 if (UNLIKELY(info.Length() <= 0)) { |
| 107 impl->voidMethodArrayOfLongsArg(); | 107 impl->voidMethodArrayOfLongsArg(); |
| 108 return; | 108 return; |
| 109 } | 109 } |
| 110 TONATIVE_VOID_INTERNAL(arrayOfLongsArg, toNativeArray<int>(info[0], 1, i
nfo.GetIsolate())); | 110 TONATIVE_VOID_INTERNAL(arrayOfLongsArg, toNativeArray<int>(info[0], 1, i
nfo.GetIsolate())); |
| 111 } | 111 } |
| 112 impl->voidMethodArrayOfLongsArg(arrayOfLongsArg); | 112 impl->voidMethodArrayOfLongsArg(arrayOfLongsArg); |
| 113 } | 113 } |
| 114 | 114 |
| 115 static void voidMethodArrayOfLongsArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 115 static void voidMethodArrayOfLongsArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
| 116 { | 116 { |
| 117 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 117 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 118 TestTypedefsV8Internal::voidMethodArrayOfLongsArgMethod(info); | 118 TestTypedefsV8Internal::voidMethodArrayOfLongsArgMethod(info); |
| 119 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 119 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 120 } | 120 } |
| 121 | 121 |
| 122 static void voidMethodFloatArgStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 122 static void voidMethodFloatArgStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
| 123 { | 123 { |
| 124 if (UNLIKELY(info.Length() < 2)) { | 124 if (UNLIKELY(info.Length() < 2)) { |
| 125 throwMinimumArityTypeErrorForMethod("voidMethodFloatArgStringArg", "Test
Typedefs", 2, info.Length(), info.GetIsolate()); | 125 throwMinimumArityTypeErrorForMethod("voidMethodFloatArgStringArg", "Test
Typedefs", 2, info.Length(), info.GetIsolate()); |
| 126 return; | 126 return; |
| 127 } | 127 } |
| 128 TestTypedefs* impl = V8TestTypedefs::toNative(info.Holder()); | 128 TestTypedefs* impl = V8TestTypedefs::toNative(info.Holder()); |
| 129 float floatArg; | 129 float floatArg; |
| 130 V8StringResource<> stringArg; | 130 V8StringResource<> stringArg; |
| 131 { | 131 { |
| 132 v8::TryCatch block; | 132 V8TryPropagate block; |
| 133 TONATIVE_VOID_INTERNAL(floatArg, static_cast<float>(info[0]->NumberValue
())); | 133 TONATIVE_VOID_INTERNAL(floatArg, static_cast<float>(info[0]->NumberValue
())); |
| 134 TOSTRING_VOID_INTERNAL(stringArg, info[1]); | 134 TOSTRING_VOID_INTERNAL(stringArg, info[1]); |
| 135 } | 135 } |
| 136 impl->voidMethodFloatArgStringArg(floatArg, stringArg); | 136 impl->voidMethodFloatArgStringArg(floatArg, stringArg); |
| 137 } | 137 } |
| 138 | 138 |
| 139 static void voidMethodFloatArgStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 139 static void voidMethodFloatArgStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
| 140 { | 140 { |
| 141 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 141 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 142 TestTypedefsV8Internal::voidMethodFloatArgStringArgMethod(info); | 142 TestTypedefsV8Internal::voidMethodFloatArgStringArgMethod(info); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 170 | 170 |
| 171 static void uLongLongMethodTestInterfaceEmptyTypeSequenceArgMethod(const v8::Fun
ctionCallbackInfo<v8::Value>& info) | 171 static void uLongLongMethodTestInterfaceEmptyTypeSequenceArgMethod(const v8::Fun
ctionCallbackInfo<v8::Value>& info) |
| 172 { | 172 { |
| 173 if (UNLIKELY(info.Length() < 1)) { | 173 if (UNLIKELY(info.Length() < 1)) { |
| 174 throwMinimumArityTypeErrorForMethod("uLongLongMethodTestInterfaceEmptyTy
peSequenceArg", "TestTypedefs", 1, info.Length(), info.GetIsolate()); | 174 throwMinimumArityTypeErrorForMethod("uLongLongMethodTestInterfaceEmptyTy
peSequenceArg", "TestTypedefs", 1, info.Length(), info.GetIsolate()); |
| 175 return; | 175 return; |
| 176 } | 176 } |
| 177 TestTypedefs* impl = V8TestTypedefs::toNative(info.Holder()); | 177 TestTypedefs* impl = V8TestTypedefs::toNative(info.Holder()); |
| 178 Vector<RefPtr<TestInterfaceEmpty> > testInterfaceEmptyTypeSequenceArg; | 178 Vector<RefPtr<TestInterfaceEmpty> > testInterfaceEmptyTypeSequenceArg; |
| 179 { | 179 { |
| 180 v8::TryCatch block; | 180 V8TryPropagate block; |
| 181 TONATIVE_VOID_INTERNAL(testInterfaceEmptyTypeSequenceArg, (toRefPtrNativ
eArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1, info.GetIsolate()))
); | 181 TONATIVE_VOID_INTERNAL(testInterfaceEmptyTypeSequenceArg, (toRefPtrNativ
eArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1, info.GetIsolate()))
); |
| 182 } | 182 } |
| 183 v8SetReturnValue(info, static_cast<double>(impl->uLongLongMethodTestInterfac
eEmptyTypeSequenceArg(testInterfaceEmptyTypeSequenceArg))); | 183 v8SetReturnValue(info, static_cast<double>(impl->uLongLongMethodTestInterfac
eEmptyTypeSequenceArg(testInterfaceEmptyTypeSequenceArg))); |
| 184 } | 184 } |
| 185 | 185 |
| 186 static void uLongLongMethodTestInterfaceEmptyTypeSequenceArgMethodCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) | 186 static void uLongLongMethodTestInterfaceEmptyTypeSequenceArgMethodCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) |
| 187 { | 187 { |
| 188 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 188 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 189 TestTypedefsV8Internal::uLongLongMethodTestInterfaceEmptyTypeSequenceArgMeth
od(info); | 189 TestTypedefsV8Internal::uLongLongMethodTestInterfaceEmptyTypeSequenceArgMeth
od(info); |
| 190 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 190 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 218 | 218 |
| 219 static void arrayOfStringsMethodArrayOfStringsArgMethod(const v8::FunctionCallba
ckInfo<v8::Value>& info) | 219 static void arrayOfStringsMethodArrayOfStringsArgMethod(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
| 220 { | 220 { |
| 221 if (UNLIKELY(info.Length() < 1)) { | 221 if (UNLIKELY(info.Length() < 1)) { |
| 222 throwMinimumArityTypeErrorForMethod("arrayOfStringsMethodArrayOfStringsA
rg", "TestTypedefs", 1, info.Length(), info.GetIsolate()); | 222 throwMinimumArityTypeErrorForMethod("arrayOfStringsMethodArrayOfStringsA
rg", "TestTypedefs", 1, info.Length(), info.GetIsolate()); |
| 223 return; | 223 return; |
| 224 } | 224 } |
| 225 TestTypedefs* impl = V8TestTypedefs::toNative(info.Holder()); | 225 TestTypedefs* impl = V8TestTypedefs::toNative(info.Holder()); |
| 226 Vector<String> arrayOfStringsArg; | 226 Vector<String> arrayOfStringsArg; |
| 227 { | 227 { |
| 228 v8::TryCatch block; | 228 V8TryPropagate block; |
| 229 TONATIVE_VOID_INTERNAL(arrayOfStringsArg, toNativeArray<String>(info[0],
1, info.GetIsolate())); | 229 TONATIVE_VOID_INTERNAL(arrayOfStringsArg, toNativeArray<String>(info[0],
1, info.GetIsolate())); |
| 230 } | 230 } |
| 231 v8SetReturnValue(info, v8Array(impl->arrayOfStringsMethodArrayOfStringsArg(a
rrayOfStringsArg), info.Holder(), info.GetIsolate())); | 231 v8SetReturnValue(info, v8Array(impl->arrayOfStringsMethodArrayOfStringsArg(a
rrayOfStringsArg), info.Holder(), info.GetIsolate())); |
| 232 } | 232 } |
| 233 | 233 |
| 234 static void arrayOfStringsMethodArrayOfStringsArgMethodCallback(const v8::Functi
onCallbackInfo<v8::Value>& info) | 234 static void arrayOfStringsMethodArrayOfStringsArgMethodCallback(const v8::Functi
onCallbackInfo<v8::Value>& info) |
| 235 { | 235 { |
| 236 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 236 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 237 TestTypedefsV8Internal::arrayOfStringsMethodArrayOfStringsArgMethod(info); | 237 TestTypedefsV8Internal::arrayOfStringsMethodArrayOfStringsArgMethod(info); |
| 238 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 238 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 239 } | 239 } |
| 240 | 240 |
| 241 static void stringArrayMethodStringArrayArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) | 241 static void stringArrayMethodStringArrayArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) |
| 242 { | 242 { |
| 243 if (UNLIKELY(info.Length() < 1)) { | 243 if (UNLIKELY(info.Length() < 1)) { |
| 244 throwMinimumArityTypeErrorForMethod("stringArrayMethodStringArrayArg", "
TestTypedefs", 1, info.Length(), info.GetIsolate()); | 244 throwMinimumArityTypeErrorForMethod("stringArrayMethodStringArrayArg", "
TestTypedefs", 1, info.Length(), info.GetIsolate()); |
| 245 return; | 245 return; |
| 246 } | 246 } |
| 247 TestTypedefs* impl = V8TestTypedefs::toNative(info.Holder()); | 247 TestTypedefs* impl = V8TestTypedefs::toNative(info.Holder()); |
| 248 Vector<String> stringArrayArg; | 248 Vector<String> stringArrayArg; |
| 249 { | 249 { |
| 250 v8::TryCatch block; | 250 V8TryPropagate block; |
| 251 TONATIVE_VOID_INTERNAL(stringArrayArg, toNativeArray<String>(info[0], 1,
info.GetIsolate())); | 251 TONATIVE_VOID_INTERNAL(stringArrayArg, toNativeArray<String>(info[0], 1,
info.GetIsolate())); |
| 252 } | 252 } |
| 253 v8SetReturnValue(info, v8Array(impl->stringArrayMethodStringArrayArg(stringA
rrayArg), info.Holder(), info.GetIsolate())); | 253 v8SetReturnValue(info, v8Array(impl->stringArrayMethodStringArrayArg(stringA
rrayArg), info.Holder(), info.GetIsolate())); |
| 254 } | 254 } |
| 255 | 255 |
| 256 static void stringArrayMethodStringArrayArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) | 256 static void stringArrayMethodStringArrayArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
| 257 { | 257 { |
| 258 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 258 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 259 TestTypedefsV8Internal::stringArrayMethodStringArrayArgMethod(info); | 259 TestTypedefsV8Internal::stringArrayMethodStringArrayArgMethod(info); |
| 260 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 260 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 261 } | 261 } |
| 262 | 262 |
| 263 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) | 263 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 264 { | 264 { |
| 265 v8::Isolate* isolate = info.GetIsolate(); | 265 v8::Isolate* isolate = info.GetIsolate(); |
| 266 if (UNLIKELY(info.Length() < 1)) { | 266 if (UNLIKELY(info.Length() < 1)) { |
| 267 throwMinimumArityTypeErrorForConstructor("TestTypedefs", 1, info.Length(
), info.GetIsolate()); | 267 throwMinimumArityTypeErrorForConstructor("TestTypedefs", 1, info.Length(
), info.GetIsolate()); |
| 268 return; | 268 return; |
| 269 } | 269 } |
| 270 V8StringResource<> stringArg; | 270 V8StringResource<> stringArg; |
| 271 { | 271 { |
| 272 TOSTRING_VOID_INTERNAL_NOTRYCATCH(stringArg, info[0]); | 272 TOSTRING_VOID_INTERNAL(stringArg, info[0]); |
| 273 } | 273 } |
| 274 RefPtr<TestTypedefs> impl = TestTypedefs::create(stringArg); | 274 RefPtr<TestTypedefs> impl = TestTypedefs::create(stringArg); |
| 275 | 275 |
| 276 v8::Handle<v8::Object> wrapper = info.Holder(); | 276 v8::Handle<v8::Object> wrapper = info.Holder(); |
| 277 V8DOMWrapper::associateObjectWithWrapper<V8TestTypedefs>(impl.release(), &V8
TestTypedefs::wrapperTypeInfo, wrapper, isolate, WrapperConfiguration::Independe
nt); | 277 V8DOMWrapper::associateObjectWithWrapper<V8TestTypedefs>(impl.release(), &V8
TestTypedefs::wrapperTypeInfo, wrapper, isolate, WrapperConfiguration::Independe
nt); |
| 278 v8SetReturnValue(info, wrapper); | 278 v8SetReturnValue(info, wrapper); |
| 279 } | 279 } |
| 280 | 280 |
| 281 } // namespace TestTypedefsV8Internal | 281 } // namespace TestTypedefsV8Internal |
| 282 | 282 |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 fromInternalPointer(object)->deref(); | 384 fromInternalPointer(object)->deref(); |
| 385 } | 385 } |
| 386 | 386 |
| 387 template<> | 387 template<> |
| 388 v8::Handle<v8::Value> toV8NoInline(TestTypedefs* impl, v8::Handle<v8::Object> cr
eationContext, v8::Isolate* isolate) | 388 v8::Handle<v8::Value> toV8NoInline(TestTypedefs* impl, v8::Handle<v8::Object> cr
eationContext, v8::Isolate* isolate) |
| 389 { | 389 { |
| 390 return toV8(impl, creationContext, isolate); | 390 return toV8(impl, creationContext, isolate); |
| 391 } | 391 } |
| 392 | 392 |
| 393 } // namespace WebCore | 393 } // namespace WebCore |
| OLD | NEW |