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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 60 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
61 TestTypedefsV8Internal::uLongLongAttributeAttributeGetter(info); | 61 TestTypedefsV8Internal::uLongLongAttributeAttributeGetter(info); |
62 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 62 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
63 } | 63 } |
64 | 64 |
65 static void uLongLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) | 65 static void uLongLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) |
66 { | 66 { |
67 v8::Handle<v8::Object> holder = info.Holder(); | 67 v8::Handle<v8::Object> holder = info.Holder(); |
68 ExceptionState exceptionState(ExceptionState::SetterContext, "uLongLongAttri
bute", "TestTypedefs", holder, info.GetIsolate()); | 68 ExceptionState exceptionState(ExceptionState::SetterContext, "uLongLongAttri
bute", "TestTypedefs", holder, info.GetIsolate()); |
69 TestTypedefs* impl = V8TestTypedefs::toNative(holder); | 69 TestTypedefs* impl = V8TestTypedefs::toNative(holder); |
70 V8TRYCATCH_EXCEPTION_VOID(unsigned long long, cppValue, toUInt64(v8Value, ex
ceptionState), exceptionState); | 70 TONATIVE_VOID_EXCEPTIONSTATE(unsigned long long, cppValue, toUInt64(v8Value,
exceptionState), exceptionState); |
71 impl->setULongLongAttribute(cppValue); | 71 impl->setULongLongAttribute(cppValue); |
72 } | 72 } |
73 | 73 |
74 static void uLongLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:
:Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 74 static void uLongLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:
:Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
75 { | 75 { |
76 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 76 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
77 TestTypedefsV8Internal::uLongLongAttributeAttributeSetter(v8Value, info); | 77 TestTypedefsV8Internal::uLongLongAttributeAttributeSetter(v8Value, info); |
78 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 78 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
79 } | 79 } |
80 | 80 |
(...skipping 17 matching lines...) Expand all Loading... |
98 TestTypedefsV8Internal::TestTypedefsReplaceableAttributeSetter(name, v8Value
, info); | 98 TestTypedefsV8Internal::TestTypedefsReplaceableAttributeSetter(name, v8Value
, info); |
99 } | 99 } |
100 | 100 |
101 static void voidMethodArrayOfLongsArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 101 static void voidMethodArrayOfLongsArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
102 { | 102 { |
103 TestTypedefs* impl = V8TestTypedefs::toNative(info.Holder()); | 103 TestTypedefs* impl = V8TestTypedefs::toNative(info.Holder()); |
104 if (UNLIKELY(info.Length() <= 0)) { | 104 if (UNLIKELY(info.Length() <= 0)) { |
105 impl->voidMethodArrayOfLongsArg(); | 105 impl->voidMethodArrayOfLongsArg(); |
106 return; | 106 return; |
107 } | 107 } |
108 V8TRYCATCH_VOID(Vector<int>, arrayOfLongsArg, toNativeArray<int>(info[0], 1,
info.GetIsolate())); | 108 TONATIVE_VOID(Vector<int>, arrayOfLongsArg, toNativeArray<int>(info[0], 1, i
nfo.GetIsolate())); |
109 impl->voidMethodArrayOfLongsArg(arrayOfLongsArg); | 109 impl->voidMethodArrayOfLongsArg(arrayOfLongsArg); |
110 } | 110 } |
111 | 111 |
112 static void voidMethodArrayOfLongsArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 112 static void voidMethodArrayOfLongsArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
113 { | 113 { |
114 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 114 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
115 TestTypedefsV8Internal::voidMethodArrayOfLongsArgMethod(info); | 115 TestTypedefsV8Internal::voidMethodArrayOfLongsArgMethod(info); |
116 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 116 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
117 } | 117 } |
118 | 118 |
119 static void voidMethodFloatArgStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 119 static void voidMethodFloatArgStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
120 { | 120 { |
121 if (UNLIKELY(info.Length() < 2)) { | 121 if (UNLIKELY(info.Length() < 2)) { |
122 throwArityTypeErrorForMethod("voidMethodFloatArgStringArg", "TestTypedef
s", 2, info.Length(), info.GetIsolate()); | 122 throwArityTypeErrorForMethod("voidMethodFloatArgStringArg", "TestTypedef
s", 2, info.Length(), info.GetIsolate()); |
123 return; | 123 return; |
124 } | 124 } |
125 TestTypedefs* impl = V8TestTypedefs::toNative(info.Holder()); | 125 TestTypedefs* impl = V8TestTypedefs::toNative(info.Holder()); |
126 V8TRYCATCH_VOID(float, floatArg, static_cast<float>(info[0]->NumberValue()))
; | 126 TONATIVE_VOID(float, floatArg, static_cast<float>(info[0]->NumberValue())); |
127 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, stringArg, info[1])
; | 127 TOSTRING_VOID(V8StringResource<>, stringArg, info[1]); |
128 impl->voidMethodFloatArgStringArg(floatArg, stringArg); | 128 impl->voidMethodFloatArgStringArg(floatArg, stringArg); |
129 } | 129 } |
130 | 130 |
131 static void voidMethodFloatArgStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 131 static void voidMethodFloatArgStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
132 { | 132 { |
133 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 133 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
134 TestTypedefsV8Internal::voidMethodFloatArgStringArgMethod(info); | 134 TestTypedefsV8Internal::voidMethodFloatArgStringArgMethod(info); |
135 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 135 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
136 } | 136 } |
137 | 137 |
(...skipping 19 matching lines...) Expand all Loading... |
157 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 157 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
158 } | 158 } |
159 | 159 |
160 static void uLongLongMethodTestInterfaceEmptyTypeSequenceArgMethod(const v8::Fun
ctionCallbackInfo<v8::Value>& info) | 160 static void uLongLongMethodTestInterfaceEmptyTypeSequenceArgMethod(const v8::Fun
ctionCallbackInfo<v8::Value>& info) |
161 { | 161 { |
162 if (UNLIKELY(info.Length() < 1)) { | 162 if (UNLIKELY(info.Length() < 1)) { |
163 throwArityTypeErrorForMethod("uLongLongMethodTestInterfaceEmptyTypeSeque
nceArg", "TestTypedefs", 1, info.Length(), info.GetIsolate()); | 163 throwArityTypeErrorForMethod("uLongLongMethodTestInterfaceEmptyTypeSeque
nceArg", "TestTypedefs", 1, info.Length(), info.GetIsolate()); |
164 return; | 164 return; |
165 } | 165 } |
166 TestTypedefs* impl = V8TestTypedefs::toNative(info.Holder()); | 166 TestTypedefs* impl = V8TestTypedefs::toNative(info.Holder()); |
167 V8TRYCATCH_VOID(Vector<RefPtr<TestInterfaceEmpty> >, testInterfaceEmptyTypeS
equenceArg, (toRefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[
0], 1, info.GetIsolate()))); | 167 TONATIVE_VOID(Vector<RefPtr<TestInterfaceEmpty> >, testInterfaceEmptyTypeSeq
uenceArg, (toRefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0]
, 1, info.GetIsolate()))); |
168 v8SetReturnValue(info, static_cast<double>(impl->uLongLongMethodTestInterfac
eEmptyTypeSequenceArg(testInterfaceEmptyTypeSequenceArg))); | 168 v8SetReturnValue(info, static_cast<double>(impl->uLongLongMethodTestInterfac
eEmptyTypeSequenceArg(testInterfaceEmptyTypeSequenceArg))); |
169 } | 169 } |
170 | 170 |
171 static void uLongLongMethodTestInterfaceEmptyTypeSequenceArgMethodCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) | 171 static void uLongLongMethodTestInterfaceEmptyTypeSequenceArgMethodCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) |
172 { | 172 { |
173 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 173 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
174 TestTypedefsV8Internal::uLongLongMethodTestInterfaceEmptyTypeSequenceArgMeth
od(info); | 174 TestTypedefsV8Internal::uLongLongMethodTestInterfaceEmptyTypeSequenceArgMeth
od(info); |
175 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 175 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
176 } | 176 } |
177 | 177 |
(...skipping 23 matching lines...) Expand all Loading... |
201 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 201 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
202 } | 202 } |
203 | 203 |
204 static void arrayOfStringsMethodArrayOfStringsArgMethod(const v8::FunctionCallba
ckInfo<v8::Value>& info) | 204 static void arrayOfStringsMethodArrayOfStringsArgMethod(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
205 { | 205 { |
206 if (UNLIKELY(info.Length() < 1)) { | 206 if (UNLIKELY(info.Length() < 1)) { |
207 throwArityTypeErrorForMethod("arrayOfStringsMethodArrayOfStringsArg", "T
estTypedefs", 1, info.Length(), info.GetIsolate()); | 207 throwArityTypeErrorForMethod("arrayOfStringsMethodArrayOfStringsArg", "T
estTypedefs", 1, info.Length(), info.GetIsolate()); |
208 return; | 208 return; |
209 } | 209 } |
210 TestTypedefs* impl = V8TestTypedefs::toNative(info.Holder()); | 210 TestTypedefs* impl = V8TestTypedefs::toNative(info.Holder()); |
211 V8TRYCATCH_VOID(Vector<String>, arrayOfStringsArg, toNativeArray<String>(inf
o[0], 1, info.GetIsolate())); | 211 TONATIVE_VOID(Vector<String>, arrayOfStringsArg, toNativeArray<String>(info[
0], 1, info.GetIsolate())); |
212 v8SetReturnValue(info, v8Array(impl->arrayOfStringsMethodArrayOfStringsArg(a
rrayOfStringsArg), info.GetIsolate())); | 212 v8SetReturnValue(info, v8Array(impl->arrayOfStringsMethodArrayOfStringsArg(a
rrayOfStringsArg), info.GetIsolate())); |
213 } | 213 } |
214 | 214 |
215 static void arrayOfStringsMethodArrayOfStringsArgMethodCallback(const v8::Functi
onCallbackInfo<v8::Value>& info) | 215 static void arrayOfStringsMethodArrayOfStringsArgMethodCallback(const v8::Functi
onCallbackInfo<v8::Value>& info) |
216 { | 216 { |
217 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 217 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
218 TestTypedefsV8Internal::arrayOfStringsMethodArrayOfStringsArgMethod(info); | 218 TestTypedefsV8Internal::arrayOfStringsMethodArrayOfStringsArgMethod(info); |
219 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 219 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
220 } | 220 } |
221 | 221 |
222 static void stringArrayMethodStringArrayArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) | 222 static void stringArrayMethodStringArrayArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) |
223 { | 223 { |
224 if (UNLIKELY(info.Length() < 1)) { | 224 if (UNLIKELY(info.Length() < 1)) { |
225 throwArityTypeErrorForMethod("stringArrayMethodStringArrayArg", "TestTyp
edefs", 1, info.Length(), info.GetIsolate()); | 225 throwArityTypeErrorForMethod("stringArrayMethodStringArrayArg", "TestTyp
edefs", 1, info.Length(), info.GetIsolate()); |
226 return; | 226 return; |
227 } | 227 } |
228 TestTypedefs* impl = V8TestTypedefs::toNative(info.Holder()); | 228 TestTypedefs* impl = V8TestTypedefs::toNative(info.Holder()); |
229 V8TRYCATCH_VOID(Vector<String>, stringArrayArg, toNativeArray<String>(info[0
], 1, info.GetIsolate())); | 229 TONATIVE_VOID(Vector<String>, stringArrayArg, toNativeArray<String>(info[0],
1, info.GetIsolate())); |
230 v8SetReturnValue(info, v8Array(impl->stringArrayMethodStringArrayArg(stringA
rrayArg), info.GetIsolate())); | 230 v8SetReturnValue(info, v8Array(impl->stringArrayMethodStringArrayArg(stringA
rrayArg), info.GetIsolate())); |
231 } | 231 } |
232 | 232 |
233 static void stringArrayMethodStringArrayArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) | 233 static void stringArrayMethodStringArrayArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
234 { | 234 { |
235 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 235 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
236 TestTypedefsV8Internal::stringArrayMethodStringArrayArgMethod(info); | 236 TestTypedefsV8Internal::stringArrayMethodStringArrayArgMethod(info); |
237 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 237 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
238 } | 238 } |
239 | 239 |
240 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) | 240 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) |
241 { | 241 { |
242 v8::Isolate* isolate = info.GetIsolate(); | 242 v8::Isolate* isolate = info.GetIsolate(); |
243 if (UNLIKELY(info.Length() < 1)) { | 243 if (UNLIKELY(info.Length() < 1)) { |
244 throwArityTypeErrorForConstructor("TestTypedefs", 1, info.Length(), info
.GetIsolate()); | 244 throwArityTypeErrorForConstructor("TestTypedefs", 1, info.Length(), info
.GetIsolate()); |
245 return; | 245 return; |
246 } | 246 } |
247 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, stringArg, info[0])
; | 247 TOSTRING_VOID(V8StringResource<>, stringArg, info[0]); |
248 RefPtr<TestTypedefs> impl = TestTypedefs::create(stringArg); | 248 RefPtr<TestTypedefs> impl = TestTypedefs::create(stringArg); |
249 | 249 |
250 v8::Handle<v8::Object> wrapper = info.Holder(); | 250 v8::Handle<v8::Object> wrapper = info.Holder(); |
251 V8DOMWrapper::associateObjectWithWrapper<V8TestTypedefs>(impl.release(), &V8
TestTypedefs::wrapperTypeInfo, wrapper, isolate, WrapperConfiguration::Independe
nt); | 251 V8DOMWrapper::associateObjectWithWrapper<V8TestTypedefs>(impl.release(), &V8
TestTypedefs::wrapperTypeInfo, wrapper, isolate, WrapperConfiguration::Independe
nt); |
252 v8SetReturnValue(info, wrapper); | 252 v8SetReturnValue(info, wrapper); |
253 } | 253 } |
254 | 254 |
255 } // namespace TestTypedefsV8Internal | 255 } // namespace TestTypedefsV8Internal |
256 | 256 |
257 static const V8DOMConfiguration::AttributeConfiguration V8TestTypedefsAttributes
[] = { | 257 static const V8DOMConfiguration::AttributeConfiguration V8TestTypedefsAttributes
[] = { |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 fromInternalPointer(object)->deref(); | 358 fromInternalPointer(object)->deref(); |
359 } | 359 } |
360 | 360 |
361 template<> | 361 template<> |
362 v8::Handle<v8::Value> toV8NoInline(TestTypedefs* impl, v8::Handle<v8::Object> cr
eationContext, v8::Isolate* isolate) | 362 v8::Handle<v8::Value> toV8NoInline(TestTypedefs* impl, v8::Handle<v8::Object> cr
eationContext, v8::Isolate* isolate) |
363 { | 363 { |
364 return toV8(impl, creationContext, isolate); | 364 return toV8(impl, creationContext, isolate); |
365 } | 365 } |
366 | 366 |
367 } // namespace WebCore | 367 } // namespace WebCore |
OLD | NEW |